arm
stringlengths
122
13.2M
x86
stringlengths
122
12.4M
filename
stringlengths
18
26
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .subsections_via_symbols
the_stack_data/26700839.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/45451202.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] stur w0, [x29, #-8] str x1, [sp, #16] ldur w0, [x29, #-8] ldr x1, [sp, #16] bl _parse_opts bl _fork str w0, [sp, #12] ldr w8, [sp, #12] subs w8, w8, #0 cset w8, ge tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: mov w8, #111 stur w8, [x29, #-4] b LBB0_5 LBB0_2: ldr w8, [sp, #12] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: bl _accept_loop stur w0, [x29, #-4] b LBB0_5 LBB0_4: bl _connect_loop stur w0, [x29, #-4] b LBB0_5 LBB0_5: ldur w0, [x29, #-4] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function parse_opts _parse_opts: ; @parse_opts .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, _opts@PAGE add x8, x8, _opts@PAGEOFF str x8, [sp, #16] ; 8-byte Folded Spill stur w0, [x29, #-4] stur x1, [x29, #-16] b LBB1_1 LBB1_1: ; =>This Inner Loop Header: Depth=1 ldur w0, [x29, #-4] ldur x1, [x29, #-16] adrp x2, l_.str@PAGE add x2, x2, l_.str@PAGEOFF bl _getopt stur w0, [x29, #-20] adds w8, w0, #1 cset w8, eq tbnz w8, #0, LBB1_7 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 ldur w8, [x29, #-20] str w8, [sp, #12] ; 4-byte Folded Spill subs w8, w8, #112 cset w8, eq tbnz w8, #0, LBB1_5 b LBB1_3 LBB1_3: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #12] ; 4-byte Folded Reload subs w8, w8, #116 cset w8, ne tbnz w8, #0, LBB1_6 b LBB1_4 LBB1_4: ; in Loop: Header=BB1_1 Depth=1 adrp x8, _optarg@GOTPAGE ldr x8, [x8, _optarg@GOTPAGEOFF] ldr x0, [x8] bl _atoi adrp x8, _opts@PAGE str w0, [x8, _opts@PAGEOFF] b LBB1_6 LBB1_5: ; in Loop: Header=BB1_1 Depth=1 adrp x8, _optarg@GOTPAGE ldr x8, [x8, _optarg@GOTPAGEOFF] ldr x0, [x8] bl _atoi ldr x8, [sp, #16] ; 8-byte Folded Reload str w0, [x8, #4] b LBB1_6 LBB1_6: ; in Loop: Header=BB1_1 Depth=1 b LBB1_1 LBB1_7: ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function accept_loop _accept_loop: ; @accept_loop .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, _opts@PAGE add x8, x8, _opts@PAGEOFF str x8, [sp, #8] ; 8-byte Folded Spill strb wzr, [sp, #16] mov w8, #2 strb w8, [sp, #17] b LBB2_1 LBB2_1: ldr x8, [sp, #8] ; 8-byte Folded Reload ldr w8, [x8, #4] and w0, w8, #0xffff bl __OSSwapInt16 and w8, w0, #0xffff str w8, [sp, #4] ; 4-byte Folded Spill b LBB2_2 LBB2_2: ldr w8, [sp, #4] ; 4-byte Folded Reload strh w8, [sp, #18] add x8, sp, #16 str wzr, [sp, #20] str xzr, [sp, #24] add x2, x8, #4 mov w0, #2 adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF bl _inet_pton bl _set_timeout b LBB2_3 LBB2_3: ; =>This Inner Loop Header: Depth=1 add x0, sp, #16 bl _do_accept b LBB2_3 .cfi_endproc ; -- End function .p2align 2 ; -- Begin function connect_loop _connect_loop: ; @connect_loop .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, _opts@PAGE add x8, x8, _opts@PAGEOFF str x8, [sp, #8] ; 8-byte Folded Spill strb wzr, [sp, #16] mov w8, #2 strb w8, [sp, #17] b LBB3_1 LBB3_1: ldr x8, [sp, #8] ; 8-byte Folded Reload ldr w8, [x8, #4] and w0, w8, #0xffff bl __OSSwapInt16 and w8, w0, #0xffff str w8, [sp, #4] ; 4-byte Folded Spill b LBB3_2 LBB3_2: ldr w8, [sp, #4] ; 4-byte Folded Reload strh w8, [sp, #18] add x8, sp, #16 str wzr, [sp, #20] str xzr, [sp, #24] add x2, x8, #4 mov w0, #2 adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF bl _inet_pton bl _set_timeout b LBB3_3 LBB3_3: ; =>This Inner Loop Header: Depth=1 add x0, sp, #16 bl _do_connect b LBB3_3 .cfi_endproc ; -- End function .p2align 2 ; -- Begin function _OSSwapInt16 __OSSwapInt16: ; @_OSSwapInt16 .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 strh w0, [sp, #14] ldrh w9, [sp, #14] ldrh w8, [sp, #14] asr w8, w8, #8 orr w8, w8, w9, lsl #8 and w0, w8, #0xffff add sp, sp, #16 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function set_timeout _set_timeout: ; @set_timeout .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, l___const.set_timeout.action@PAGE add x8, x8, l___const.set_timeout.action@PAGEOFF ldr q0, [x8] mov x1, sp str q0, [sp] mov w0, #14 mov x2, #0 bl _sigaction adrp x8, _opts@PAGE ldr w0, [x8, _opts@PAGEOFF] bl _alarm ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function do_accept _do_accept: ; @do_accept .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] mov w1, #1 stur w1, [x29, #-16] mov w0, #2 mov w2, #6 bl _socket stur w0, [x29, #-20] ldur w8, [x29, #-20] subs w8, w8, #0 cset w8, ge tbnz w8, #0, LBB6_2 b LBB6_1 LBB6_1: b LBB6_5 LBB6_2: ldur w0, [x29, #-20] mov w1, #65535 str w1, [sp, #4] ; 4-byte Folded Spill mov w4, #4 str w4, [sp, #20] ; 4-byte Folded Spill mov x2, x4 sub x3, x29, #16 str x3, [sp, #8] ; 8-byte Folded Spill bl _setsockopt ldr w1, [sp, #4] ; 4-byte Folded Reload ldr x3, [sp, #8] ; 8-byte Folded Reload ldr w4, [sp, #20] ; 4-byte Folded Reload ldur w0, [x29, #-20] mov w2, #512 bl _setsockopt ldur w0, [x29, #-20] ldur x1, [x29, #-8] mov w2, #16 str w2, [sp, #24] ; 4-byte Folded Spill bl _bind ldr w1, [sp, #24] ; 4-byte Folded Reload ldur w0, [x29, #-20] bl _listen ldur w0, [x29, #-20] mov x2, #0 mov x1, x2 bl _accept stur w0, [x29, #-12] ldur w8, [x29, #-12] subs w8, w8, #0 cset w8, lt tbnz w8, #0, LBB6_4 b LBB6_3 LBB6_3: ldur w0, [x29, #-12] bl _close b LBB6_4 LBB6_4: ldur w0, [x29, #-20] bl _close b LBB6_5 LBB6_5: ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function handler _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 w8, [x29, #-4] subs w8, w8, #14 cset w8, eq and w8, w8, #0x1 ands w8, w8, #0x1 cset w0, eq bl __exit .cfi_endproc ; -- End function .p2align 2 ; -- Begin function do_connect _do_connect: ; @do_connect .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] mov w0, #2 mov w1, #1 mov w2, #6 bl _socket stur w0, [x29, #-12] ldur w8, [x29, #-12] subs w8, w8, #0 cset w8, lt tbnz w8, #0, LBB8_2 b LBB8_1 LBB8_1: ldur w0, [x29, #-12] mov x9, sp mov x8, #4 str x8, [x9] mov w1, #4 bl _fcntl b LBB8_2 LBB8_2: ldur w0, [x29, #-12] ldur x1, [x29, #-8] mov w2, #16 bl _connect ldur w0, [x29, #-12] bl _close 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 "t:p:" .section __DATA,__data .p2align 2 ; @opts _opts: .long 10 ; 0xa .long 12345 ; 0x3039 .section __TEXT,__cstring,cstring_literals l_.str.1: ; @.str.1 .asciz "127.0.0.1" .section __DATA,__const .p2align 3 ; @__const.set_timeout.action l___const.set_timeout.action: .quad _handler .long 0 ; 0x0 .long 0 ; 0x0 .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 -8(%rbp), %edi movq -16(%rbp), %rsi callq _parse_opts callq _fork movl %eax, -20(%rbp) cmpl $0, -20(%rbp) jge LBB0_2 ## %bb.1: movl $111, -4(%rbp) jmp LBB0_5 LBB0_2: cmpl $0, -20(%rbp) jle LBB0_4 ## %bb.3: callq _accept_loop movl %eax, -4(%rbp) jmp LBB0_5 LBB0_4: callq _connect_loop movl %eax, -4(%rbp) LBB0_5: movl -4(%rbp), %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function parse_opts _parse_opts: ## @parse_opts .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl %edi, -4(%rbp) movq %rsi, -16(%rbp) LBB1_1: ## =>This Inner Loop Header: Depth=1 movl -4(%rbp), %edi movq -16(%rbp), %rsi leaq L_.str(%rip), %rdx callq _getopt movl %eax, -20(%rbp) cmpl $-1, %eax je LBB1_6 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 movl -20(%rbp), %eax movl %eax, -24(%rbp) ## 4-byte Spill subl $112, %eax je LBB1_4 jmp LBB1_7 LBB1_7: ## in Loop: Header=BB1_1 Depth=1 movl -24(%rbp), %eax ## 4-byte Reload subl $116, %eax jne LBB1_5 jmp LBB1_3 LBB1_3: ## in Loop: Header=BB1_1 Depth=1 movq _optarg@GOTPCREL(%rip), %rax movq (%rax), %rdi callq _atoi movl %eax, _opts(%rip) jmp LBB1_5 LBB1_4: ## in Loop: Header=BB1_1 Depth=1 movq _optarg@GOTPCREL(%rip), %rax movq (%rax), %rdi callq _atoi movl %eax, _opts+4(%rip) LBB1_5: ## in Loop: Header=BB1_1 Depth=1 jmp LBB1_1 LBB1_6: addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function accept_loop _accept_loop: ## @accept_loop .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movb $0, -16(%rbp) movb $2, -15(%rbp) leaq -16(%rbp), %rax addq $2, %rax movq %rax, -24(%rbp) ## 8-byte Spill ## %bb.1: movl _opts+4(%rip), %eax ## kill: def $ax killed $ax killed $eax movzwl %ax, %edi callq __OSSwapInt16 movzwl %ax, %eax movl %eax, -28(%rbp) ## 4-byte Spill ## %bb.2: movq -24(%rbp), %rax ## 8-byte Reload movl -28(%rbp), %ecx ## 4-byte Reload movw %cx, (%rax) leaq -16(%rbp), %rdi addq $4, %rdi xorl %esi, %esi movl $4, %edx callq _memset leaq -16(%rbp), %rdi addq $8, %rdi xorl %esi, %esi movl $8, %edx callq _memset leaq -16(%rbp), %rdx addq $4, %rdx movl $2, %edi leaq L_.str.1(%rip), %rsi callq _inet_pton callq _set_timeout LBB2_3: ## =>This Inner Loop Header: Depth=1 leaq -16(%rbp), %rdi callq _do_accept jmp LBB2_3 .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function connect_loop _connect_loop: ## @connect_loop .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movb $0, -16(%rbp) movb $2, -15(%rbp) leaq -16(%rbp), %rax addq $2, %rax movq %rax, -24(%rbp) ## 8-byte Spill ## %bb.1: movl _opts+4(%rip), %eax ## kill: def $ax killed $ax killed $eax movzwl %ax, %edi callq __OSSwapInt16 movzwl %ax, %eax movl %eax, -28(%rbp) ## 4-byte Spill ## %bb.2: movq -24(%rbp), %rax ## 8-byte Reload movl -28(%rbp), %ecx ## 4-byte Reload movw %cx, (%rax) leaq -16(%rbp), %rdi addq $4, %rdi xorl %esi, %esi movl $4, %edx callq _memset leaq -16(%rbp), %rdi addq $8, %rdi xorl %esi, %esi movl $8, %edx callq _memset leaq -16(%rbp), %rdx addq $4, %rdx movl $2, %edi leaq L_.str.1(%rip), %rsi callq _inet_pton callq _set_timeout LBB3_3: ## =>This Inner Loop Header: Depth=1 leaq -16(%rbp), %rdi callq _do_connect jmp LBB3_3 .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function _OSSwapInt16 __OSSwapInt16: ## @_OSSwapInt16 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movw %di, %ax movw %ax, -2(%rbp) movzwl -2(%rbp), %eax shll $8, %eax movzwl -2(%rbp), %ecx sarl $8, %ecx orl %ecx, %eax ## kill: def $ax killed $ax killed $eax movzwl %ax, %eax popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function set_timeout _set_timeout: ## @set_timeout .cfi_startproc ## %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 l___const.set_timeout.action(%rip), %rax movq %rax, -16(%rbp) movq l___const.set_timeout.action+8(%rip), %rax movq %rax, -8(%rbp) movl $14, %edi leaq -16(%rbp), %rsi xorl %eax, %eax movl %eax, %edx callq _sigaction movl _opts(%rip), %edi callq _alarm addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function do_accept _do_accept: ## @do_accept .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movl $1, -16(%rbp) movl $2, %edi movl $1, %esi movl $6, %edx callq _socket movl %eax, -20(%rbp) cmpl $0, -20(%rbp) jge LBB6_2 ## %bb.1: jmp LBB6_5 LBB6_2: movl -20(%rbp), %edi leaq -16(%rbp), %rcx movl $65535, %esi ## imm = 0xFFFF movl $4, %r8d movl %r8d, %edx callq _setsockopt movl -20(%rbp), %edi leaq -16(%rbp), %rcx movl $65535, %esi ## imm = 0xFFFF movl $512, %edx ## imm = 0x200 movl $4, %r8d callq _setsockopt movl -20(%rbp), %edi movq -8(%rbp), %rsi movl $16, %edx callq _bind movl -20(%rbp), %edi movl $16, %esi callq _listen movl -20(%rbp), %edi xorl %eax, %eax movl %eax, %edx movq %rdx, %rsi callq _accept movl %eax, -12(%rbp) cmpl $0, -12(%rbp) jl LBB6_4 ## %bb.3: movl -12(%rbp), %edi callq _close LBB6_4: movl -20(%rbp), %edi callq _close LBB6_5: addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function handler _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), %eax subl $14, %eax setne %al movzbl %al, %edi callq __exit .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function do_connect _do_connect: ## @do_connect .cfi_startproc ## %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 $2, %edi movl $1, %esi movl $6, %edx callq _socket movl %eax, -12(%rbp) cmpl $0, -12(%rbp) jl LBB8_2 ## %bb.1: movl -12(%rbp), %edi movl $4, %edx movl %edx, %esi movb $0, %al callq _fcntl LBB8_2: movl -12(%rbp), %edi movq -8(%rbp), %rsi movl $16, %edx callq _connect movl -12(%rbp), %edi callq _close addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "t:p:" .section __DATA,__data .p2align 2 ## @opts _opts: .long 10 ## 0xa .long 12345 ## 0x3039 .section __TEXT,__cstring,cstring_literals L_.str.1: ## @.str.1 .asciz "127.0.0.1" .section __DATA,__const .p2align 3 ## @__const.set_timeout.action l___const.set_timeout.action: .quad _handler .long 0 ## 0x0 .long 0 ## 0x0 .subsections_via_symbols
the_stack_data/959886.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _memcmp ; -- Begin function memcmp .p2align 2 _memcmp: ; @memcmp .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 str x0, [sp, #48] str x1, [sp, #40] str w2, [sp, #36] ldr x8, [sp, #48] str x8, [sp, #24] ldr x8, [sp, #40] str x8, [sp, #16] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #36] subs w9, w8, #1 str w9, [sp, #36] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_5 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #24] add x9, x8, #1 str x9, [sp, #24] ldrsb w8, [x8] ldr x9, [sp, #16] add x10, x9, #1 str x10, [sp, #16] ldrsb w9, [x9] subs w8, w8, w9 str w8, [sp, #12] ldr w8, [sp, #12] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: ldr w8, [sp, #12] str w8, [sp, #60] b LBB0_6 LBB0_4: ; in Loop: Header=BB0_1 Depth=1 b LBB0_1 LBB0_5: str wzr, [sp, #60] b LBB0_6 LBB0_6: ldr w0, [sp, #60] add sp, sp, #64 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _memcmp ## -- Begin function memcmp .p2align 4, 0x90 _memcmp: ## @memcmp .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -16(%rbp) movq %rsi, -24(%rbp) movl %edx, -28(%rbp) movq -16(%rbp), %rax movq %rax, -40(%rbp) movq -24(%rbp), %rax movq %rax, -48(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movl -28(%rbp), %eax movl %eax, %ecx addl $-1, %ecx movl %ecx, -28(%rbp) cmpl $0, %eax je LBB0_5 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movq -40(%rbp), %rax movq %rax, %rcx addq $1, %rcx movq %rcx, -40(%rbp) movsbl (%rax), %eax movq -48(%rbp), %rcx movq %rcx, %rdx addq $1, %rdx movq %rdx, -48(%rbp) movsbl (%rcx), %ecx subl %ecx, %eax movl %eax, -52(%rbp) cmpl $0, -52(%rbp) je LBB0_4 ## %bb.3: movl -52(%rbp), %eax movl %eax, -4(%rbp) jmp LBB0_6 LBB0_4: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_1 LBB0_5: movl $0, -4(%rbp) LBB0_6: movl -4(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/182954268.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _merge ; -- Begin function merge .p2align 2 _merge: ; @merge .cfi_startproc ; %bb.0: 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, #128 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] stur x0, [x29, #-16] stur w1, [x29, #-20] stur w2, [x29, #-24] stur w3, [x29, #-28] ldur w8, [x29, #-24] ldur w9, [x29, #-20] subs w8, w8, w9 add w8, w8, #1 stur w8, [x29, #-44] ldur w8, [x29, #-28] ldur w9, [x29, #-24] subs w8, w8, w9 stur w8, [x29, #-48] ldur w8, [x29, #-44] ; kill: def $x8 killed $w8 mov x9, sp stur x9, [x29, #-56] lsl x9, x8, #2 add x9, x9, #15 and x9, x9, #0xfffffffffffffff0 stur x9, [x29, #-104] ; 8-byte Folded Spill adrp x16, ___chkstk_darwin@GOTPAGE ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF] blr x16 ldur x10, [x29, #-104] ; 8-byte Folded Reload mov x9, sp subs x9, x9, x10 mov sp, x9 stur x9, [x29, #-96] ; 8-byte Folded Spill stur x8, [x29, #-64] ldur w8, [x29, #-48] ; kill: def $x8 killed $w8 lsl x9, x8, #2 add x9, x9, #15 and x9, x9, #0xfffffffffffffff0 stur x9, [x29, #-88] ; 8-byte Folded Spill adrp x16, ___chkstk_darwin@GOTPAGE ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF] blr x16 ldur x10, [x29, #-88] ; 8-byte Folded Reload mov x9, sp subs x9, x9, x10 mov sp, x9 stur x9, [x29, #-80] ; 8-byte Folded Spill stur x8, [x29, #-72] stur wzr, [x29, #-32] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-32] ldur w9, [x29, #-44] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_4 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldur x9, [x29, #-96] ; 8-byte Folded Reload ldur x8, [x29, #-16] ldur w10, [x29, #-20] ldur w11, [x29, #-32] add w10, w10, w11 ldr w8, [x8, w10, sxtw #2] ldursw x10, [x29, #-32] str w8, [x9, x10, lsl #2] b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-32] add w8, w8, #1 stur w8, [x29, #-32] b LBB0_1 LBB0_4: stur wzr, [x29, #-36] b LBB0_5 LBB0_5: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-36] ldur w9, [x29, #-48] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_8 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_5 Depth=1 ldur x9, [x29, #-80] ; 8-byte Folded Reload ldur x8, [x29, #-16] ldur w10, [x29, #-24] add w10, w10, #1 ldur w11, [x29, #-36] add w10, w10, w11 ldr w8, [x8, w10, sxtw #2] ldursw x10, [x29, #-36] str w8, [x9, x10, lsl #2] b LBB0_7 LBB0_7: ; in Loop: Header=BB0_5 Depth=1 ldur w8, [x29, #-36] add w8, w8, #1 stur w8, [x29, #-36] b LBB0_5 LBB0_8: stur wzr, [x29, #-32] stur wzr, [x29, #-36] ldur w8, [x29, #-20] stur w8, [x29, #-40] b LBB0_9 LBB0_9: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-32] ldur w9, [x29, #-44] subs w8, w8, w9 cset w8, ge mov w9, #0 stur w9, [x29, #-108] ; 4-byte Folded Spill tbnz w8, #0, LBB0_11 b LBB0_10 LBB0_10: ; in Loop: Header=BB0_9 Depth=1 ldur w8, [x29, #-36] ldur w9, [x29, #-48] subs w8, w8, w9 cset w8, lt stur w8, [x29, #-108] ; 4-byte Folded Spill b LBB0_11 LBB0_11: ; in Loop: Header=BB0_9 Depth=1 ldur w8, [x29, #-108] ; 4-byte Folded Reload tbz w8, #0, LBB0_16 b LBB0_12 LBB0_12: ; in Loop: Header=BB0_9 Depth=1 ldur x9, [x29, #-80] ; 8-byte Folded Reload ldur x8, [x29, #-96] ; 8-byte Folded Reload ldursw x10, [x29, #-32] ldr w8, [x8, x10, lsl #2] ldursw x10, [x29, #-36] ldr w9, [x9, x10, lsl #2] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_14 b LBB0_13 LBB0_13: ; in Loop: Header=BB0_9 Depth=1 ldur x8, [x29, #-96] ; 8-byte Folded Reload ldursw x9, [x29, #-32] ldr w8, [x8, x9, lsl #2] ldur x9, [x29, #-16] ldursw x10, [x29, #-40] str w8, [x9, x10, lsl #2] ldur w8, [x29, #-32] add w8, w8, #1 stur w8, [x29, #-32] b LBB0_15 LBB0_14: ; in Loop: Header=BB0_9 Depth=1 ldur x8, [x29, #-80] ; 8-byte Folded Reload ldursw x9, [x29, #-36] ldr w8, [x8, x9, lsl #2] ldur x9, [x29, #-16] ldursw x10, [x29, #-40] str w8, [x9, x10, lsl #2] ldur w8, [x29, #-36] add w8, w8, #1 stur w8, [x29, #-36] b LBB0_15 LBB0_15: ; in Loop: Header=BB0_9 Depth=1 ldur w8, [x29, #-40] add w8, w8, #1 stur w8, [x29, #-40] b LBB0_9 LBB0_16: b LBB0_17 LBB0_17: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-32] ldur w9, [x29, #-44] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_19 b LBB0_18 LBB0_18: ; in Loop: Header=BB0_17 Depth=1 ldur x8, [x29, #-96] ; 8-byte Folded Reload ldursw x9, [x29, #-32] ldr w8, [x8, x9, lsl #2] ldur x9, [x29, #-16] ldursw x10, [x29, #-40] str w8, [x9, x10, lsl #2] ldur w8, [x29, #-32] add w8, w8, #1 stur w8, [x29, #-32] ldur w8, [x29, #-40] add w8, w8, #1 stur w8, [x29, #-40] b LBB0_17 LBB0_19: b LBB0_20 LBB0_20: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-36] ldur w9, [x29, #-48] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_22 b LBB0_21 LBB0_21: ; in Loop: Header=BB0_20 Depth=1 ldur x8, [x29, #-80] ; 8-byte Folded Reload ldursw x9, [x29, #-36] ldr w8, [x8, x9, lsl #2] ldur x9, [x29, #-16] ldursw x10, [x29, #-40] str w8, [x9, x10, lsl #2] ldur w8, [x29, #-36] add w8, w8, #1 stur w8, [x29, #-36] ldur w8, [x29, #-40] add w8, w8, #1 stur w8, [x29, #-40] b LBB0_20 LBB0_22: ldur x8, [x29, #-56] stur x8, [x29, #-120] ; 8-byte Folded Spill ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_24 b LBB0_23 LBB0_23: bl ___stack_chk_fail LBB0_24: ldur x8, [x29, #-120] ; 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 _mergeSort ; -- Begin function mergeSort .p2align 2 _mergeSort: ; @mergeSort .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] stur w1, [x29, #-12] str w2, [sp, #16] ldur w8, [x29, #-12] ldr w9, [sp, #16] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: ldur w8, [x29, #-12] ldr w9, [sp, #16] ldur w10, [x29, #-12] subs w9, w9, w10 mov w10, #2 sdiv w9, w9, w10 add w8, w8, w9 str w8, [sp, #12] ldur x0, [x29, #-8] ldur w1, [x29, #-12] ldr w2, [sp, #12] bl _mergeSort ldur x0, [x29, #-8] ldr w8, [sp, #12] add w1, w8, #1 ldr w2, [sp, #16] bl _mergeSort ldur x0, [x29, #-8] ldur w1, [x29, #-12] ldr w2, [sp, #12] ldr w3, [sp, #16] bl _merge b LBB1_2 LBB1_2: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _printArray ; -- Begin function printArray .p2align 2 _printArray: ; @printArray .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] stur w1, [x29, #-12] str wzr, [sp, #16] b LBB2_1 LBB2_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #16] ldur w9, [x29, #-12] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB2_4 b LBB2_2 LBB2_2: ; in Loop: Header=BB2_1 Depth=1 ldur x8, [x29, #-8] ldrsw x9, [sp, #16] ldr w9, [x8, x9, lsl #2] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf b LBB2_3 LBB2_3: ; in Loop: Header=BB2_1 Depth=1 ldr w8, [sp, #16] add w8, w8, #1 str w8, [sp, #16] b LBB2_1 LBB2_4: adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@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 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] mov w8, #0 str w8, [sp, #12] ; 4-byte Folded Spill str wzr, [sp, #28] adrp x8, l___const.main.arr@PAGE add x8, x8, l___const.main.arr@PAGEOFF ldr q0, [x8] add x9, sp, #32 str x9, [sp, #16] ; 8-byte Folded Spill str q0, [sp, #32] ldr x8, [x8, #16] str x8, [sp, #48] mov w8, #6 str w8, [sp, #24] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf ldr x0, [sp, #16] ; 8-byte Folded Reload ldr w1, [sp, #24] bl _printArray ldr w1, [sp, #12] ; 4-byte Folded Reload ldr x0, [sp, #16] ; 8-byte Folded Reload ldr w8, [sp, #24] subs w2, w8, #1 bl _mergeSort adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf ldr x0, [sp, #16] ; 8-byte Folded Reload ldr w1, [sp, #24] bl _printArray ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB3_2 b LBB3_1 LBB3_1: bl ___stack_chk_fail LBB3_2: mov w0, #0 ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d " l_.str.1: ; @.str.1 .asciz "\n" .section __TEXT,__const .p2align 2 ; @__const.main.arr l___const.main.arr: .long 12 ; 0xc .long 11 ; 0xb .long 13 ; 0xd .long 5 ; 0x5 .long 6 ; 0x6 .long 7 ; 0x7 .section __TEXT,__cstring,cstring_literals l_.str.2: ; @.str.2 .asciz "Given array is \n" l_.str.3: ; @.str.3 .asciz "\nSorted array is \n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _merge ## -- Begin function merge .p2align 4, 0x90 _merge: ## @merge .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $112, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movq %rdi, -16(%rbp) movl %esi, -20(%rbp) movl %edx, -24(%rbp) movl %ecx, -28(%rbp) movl -24(%rbp), %eax movl -20(%rbp), %ecx subl %ecx, %eax incl %eax movl %eax, -44(%rbp) movl -28(%rbp), %eax movl -24(%rbp), %ecx subl %ecx, %eax movl %eax, -48(%rbp) movl -44(%rbp), %eax ## kill: def $rax killed $eax movq %rax, -104(%rbp) ## 8-byte Spill movq %rsp, %rcx movq %rcx, -56(%rbp) shlq $2, %rax callq ____chkstk_darwin addq $15, %rax andq $-16, %rax subq %rax, %rsp movq -104(%rbp), %rax ## 8-byte Reload movq %rsp, %rcx movq %rcx, -96(%rbp) ## 8-byte Spill movq %rax, -64(%rbp) movl -48(%rbp), %eax ## kill: def $rax killed $eax movq %rax, -88(%rbp) ## 8-byte Spill shlq $2, %rax callq ____chkstk_darwin addq $15, %rax andq $-16, %rax subq %rax, %rsp movq -88(%rbp), %rax ## 8-byte Reload movq %rsp, %rcx movq %rcx, -80(%rbp) ## 8-byte Spill movq %rax, -72(%rbp) movl $0, -32(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movl -32(%rbp), %eax cmpl -44(%rbp), %eax jge LBB0_4 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movq -96(%rbp), %rax ## 8-byte Reload movq -16(%rbp), %rcx movl -20(%rbp), %edx addl -32(%rbp), %edx movslq %edx, %rdx movl (%rcx,%rdx,4), %edx movslq -32(%rbp), %rcx movl %edx, (%rax,%rcx,4) ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movl -32(%rbp), %eax addl $1, %eax movl %eax, -32(%rbp) jmp LBB0_1 LBB0_4: movl $0, -36(%rbp) LBB0_5: ## =>This Inner Loop Header: Depth=1 movl -36(%rbp), %eax cmpl -48(%rbp), %eax jge LBB0_8 ## %bb.6: ## in Loop: Header=BB0_5 Depth=1 movq -80(%rbp), %rax ## 8-byte Reload movq -16(%rbp), %rcx movl -24(%rbp), %edx addl $1, %edx addl -36(%rbp), %edx movslq %edx, %rdx movl (%rcx,%rdx,4), %edx movslq -36(%rbp), %rcx movl %edx, (%rax,%rcx,4) ## %bb.7: ## in Loop: Header=BB0_5 Depth=1 movl -36(%rbp), %eax addl $1, %eax movl %eax, -36(%rbp) jmp LBB0_5 LBB0_8: movl $0, -32(%rbp) movl $0, -36(%rbp) movl -20(%rbp), %eax movl %eax, -40(%rbp) LBB0_9: ## =>This Inner Loop Header: Depth=1 movl -32(%rbp), %ecx xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl -44(%rbp), %ecx movb %al, -105(%rbp) ## 1-byte Spill jge LBB0_11 ## %bb.10: ## in Loop: Header=BB0_9 Depth=1 movl -36(%rbp), %eax cmpl -48(%rbp), %eax setl %al movb %al, -105(%rbp) ## 1-byte Spill LBB0_11: ## in Loop: Header=BB0_9 Depth=1 movb -105(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB0_12 jmp LBB0_16 LBB0_12: ## in Loop: Header=BB0_9 Depth=1 movq -80(%rbp), %rcx ## 8-byte Reload movq -96(%rbp), %rax ## 8-byte Reload movslq -32(%rbp), %rdx movl (%rax,%rdx,4), %eax movslq -36(%rbp), %rdx cmpl (%rcx,%rdx,4), %eax jg LBB0_14 ## %bb.13: ## in Loop: Header=BB0_9 Depth=1 movq -96(%rbp), %rax ## 8-byte Reload movslq -32(%rbp), %rcx movl (%rax,%rcx,4), %edx movq -16(%rbp), %rax movslq -40(%rbp), %rcx movl %edx, (%rax,%rcx,4) movl -32(%rbp), %eax addl $1, %eax movl %eax, -32(%rbp) jmp LBB0_15 LBB0_14: ## in Loop: Header=BB0_9 Depth=1 movq -80(%rbp), %rax ## 8-byte Reload movslq -36(%rbp), %rcx movl (%rax,%rcx,4), %edx movq -16(%rbp), %rax movslq -40(%rbp), %rcx movl %edx, (%rax,%rcx,4) movl -36(%rbp), %eax addl $1, %eax movl %eax, -36(%rbp) LBB0_15: ## in Loop: Header=BB0_9 Depth=1 movl -40(%rbp), %eax addl $1, %eax movl %eax, -40(%rbp) jmp LBB0_9 LBB0_16: jmp LBB0_17 LBB0_17: ## =>This Inner Loop Header: Depth=1 movl -32(%rbp), %eax cmpl -44(%rbp), %eax jge LBB0_19 ## %bb.18: ## in Loop: Header=BB0_17 Depth=1 movq -96(%rbp), %rax ## 8-byte Reload movslq -32(%rbp), %rcx movl (%rax,%rcx,4), %edx movq -16(%rbp), %rax movslq -40(%rbp), %rcx movl %edx, (%rax,%rcx,4) movl -32(%rbp), %eax addl $1, %eax movl %eax, -32(%rbp) movl -40(%rbp), %eax addl $1, %eax movl %eax, -40(%rbp) jmp LBB0_17 LBB0_19: jmp LBB0_20 LBB0_20: ## =>This Inner Loop Header: Depth=1 movl -36(%rbp), %eax cmpl -48(%rbp), %eax jge LBB0_22 ## %bb.21: ## in Loop: Header=BB0_20 Depth=1 movq -80(%rbp), %rax ## 8-byte Reload movslq -36(%rbp), %rcx movl (%rax,%rcx,4), %edx movq -16(%rbp), %rax movslq -40(%rbp), %rcx movl %edx, (%rax,%rcx,4) movl -36(%rbp), %eax addl $1, %eax movl %eax, -36(%rbp) movl -40(%rbp), %eax addl $1, %eax movl %eax, -40(%rbp) jmp LBB0_20 LBB0_22: movq -56(%rbp), %rax movq %rax, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_24 ## %bb.23: movq %rbp, %rsp popq %rbp retq LBB0_24: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _mergeSort ## -- Begin function mergeSort .p2align 4, 0x90 _mergeSort: ## @mergeSort .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) movl %edx, -16(%rbp) movl -12(%rbp), %eax cmpl -16(%rbp), %eax jge LBB1_2 ## %bb.1: movl -12(%rbp), %eax movl %eax, -24(%rbp) ## 4-byte Spill movl -16(%rbp), %eax subl -12(%rbp), %eax movl $2, %ecx cltd idivl %ecx movl %eax, %ecx movl -24(%rbp), %eax ## 4-byte Reload addl %ecx, %eax movl %eax, -20(%rbp) movq -8(%rbp), %rdi movl -12(%rbp), %esi movl -20(%rbp), %edx callq _mergeSort movq -8(%rbp), %rdi movl -20(%rbp), %esi addl $1, %esi movl -16(%rbp), %edx callq _mergeSort movq -8(%rbp), %rdi movl -12(%rbp), %esi movl -20(%rbp), %edx movl -16(%rbp), %ecx callq _merge LBB1_2: addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _printArray ## -- Begin function printArray .p2align 4, 0x90 _printArray: ## @printArray .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) movl $0, -16(%rbp) LBB2_1: ## =>This Inner Loop Header: Depth=1 movl -16(%rbp), %eax cmpl -12(%rbp), %eax jge LBB2_4 ## %bb.2: ## in Loop: Header=BB2_1 Depth=1 movq -8(%rbp), %rax movslq -16(%rbp), %rcx movl (%rax,%rcx,4), %esi leaq L_.str(%rip), %rdi movb $0, %al callq _printf ## %bb.3: ## in Loop: Header=BB2_1 Depth=1 movl -16(%rbp), %eax addl $1, %eax movl %eax, -16(%rbp) jmp LBB2_1 LBB2_4: leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -36(%rbp) movq l___const.main.arr(%rip), %rax movq %rax, -32(%rbp) movq l___const.main.arr+8(%rip), %rax movq %rax, -24(%rbp) movq l___const.main.arr+16(%rip), %rax movq %rax, -16(%rbp) movl $6, -40(%rbp) leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf leaq -32(%rbp), %rdi movl -40(%rbp), %esi callq _printArray leaq -32(%rbp), %rdi movl -40(%rbp), %edx subl $1, %edx xorl %esi, %esi callq _mergeSort leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf leaq -32(%rbp), %rdi movl -40(%rbp), %esi callq _printArray movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB3_2 ## %bb.1: xorl %eax, %eax addq $48, %rsp popq %rbp retq LBB3_2: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d " L_.str.1: ## @.str.1 .asciz "\n" .section __TEXT,__const .p2align 4 ## @__const.main.arr l___const.main.arr: .long 12 ## 0xc .long 11 ## 0xb .long 13 ## 0xd .long 5 ## 0x5 .long 6 ## 0x6 .long 7 ## 0x7 .section __TEXT,__cstring,cstring_literals L_.str.2: ## @.str.2 .asciz "Given array is \n" L_.str.3: ## @.str.3 .asciz "\nSorted array is \n" .subsections_via_symbols
the_stack_data/161081918.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _foo ; -- Begin function foo .p2align 2 _foo: ; @foo .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 str w0, [sp, #44] str x1, [sp, #32] str x2, [sp, #24] str x3, [sp, #16] str wzr, [sp, #12] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #12] ldr w9, [sp, #44] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_4 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #24] ldrsw x9, [sp, #12] ldrsb w8, [x8, x9] ldr x9, [sp, #16] ldrsw x10, [sp, #12] ldrsb w9, [x9, x10] add w8, w8, w9 add w8, w8, #1 asr w8, w8, #1 ldr x9, [sp, #32] ldrsw x10, [sp, #12] strb w8, [x9, x10] b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB0_1 LBB0_4: add sp, sp, #48 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _foo ## -- Begin function foo .p2align 4, 0x90 _foo: ## @foo .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, -4(%rbp) movq %rsi, -16(%rbp) movq %rdx, -24(%rbp) movq %rcx, -32(%rbp) movl $0, -36(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movl -36(%rbp), %eax cmpl -4(%rbp), %eax jge LBB0_4 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movq -24(%rbp), %rax movslq -36(%rbp), %rcx movsbl (%rax,%rcx), %eax movq -32(%rbp), %rcx movslq -36(%rbp), %rdx movsbl (%rcx,%rdx), %ecx addl %ecx, %eax addl $1, %eax sarl $1, %eax movb %al, %dl movq -16(%rbp), %rax movslq -36(%rbp), %rcx movb %dl, (%rax,%rcx) ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movl -36(%rbp), %eax addl $1, %eax movl %eax, -36(%rbp) jmp LBB0_1 LBB0_4: popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/6388085.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] str wzr, [sp, #12] adrp x8, l___const.main.a@PAGE add x8, x8, l___const.main.a@PAGEOFF ldr q0, [x8] str q0, [sp, #16] ldr x8, [x8, #16] str x8, [sp, #32] ldr w8, [sp, #20] str w8, [sp, #8] ldr w9, [sp, #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 x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: bl ___stack_chk_fail LBB0_2: mov w0, #0 ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .section __TEXT,__const .p2align 2 ; @__const.main.a l___const.main.a: .long 2 ; 0x2 .long 2 ; 0x2 .long 3 ; 0x3 .long 3 ; 0x3 .long 4 ; 0x4 .long 5 ; 0x5 .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "a[0][1] = %d\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -36(%rbp) movq l___const.main.a(%rip), %rax movq %rax, -32(%rbp) movq l___const.main.a+8(%rip), %rax movq %rax, -24(%rbp) movq l___const.main.a+16(%rip), %rax movq %rax, -16(%rbp) movl -28(%rbp), %eax movl %eax, -40(%rbp) movl -40(%rbp), %esi leaq L_.str(%rip), %rdi movb $0, %al callq _printf movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_2 ## %bb.1: xorl %eax, %eax addq $48, %rsp popq %rbp retq LBB0_2: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__const .p2align 4 ## @__const.main.a l___const.main.a: .long 2 ## 0x2 .long 2 ## 0x2 .long 3 ## 0x3 .long 3 ## 0x3 .long 4 ## 0x4 .long 5 ## 0x5 .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "a[0][1] = %d\n" .subsections_via_symbols
the_stack_data/132953790.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __TEXT,__literal8,8byte_literals .p2align 3 ; -- Begin function drand lCPI0_0: .quad 0x41dfffffffc00000 ; double 2147483647 .section __TEXT,__text,regular,pure_instructions .globl _drand .p2align 2 _drand: ; @drand .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 _rand scvtf d0, w0 adrp x8, lCPI0_0@PAGE ldr d1, [x8, lCPI0_0@PAGEOFF] fdiv d0, d0, d1 ldp x29, x30, [sp], #16 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .globl _random_element ; -- Begin function random_element .p2align 2 _random_element: ; @random_element .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #24] str x1, [sp, #16] ldr x8, [sp, #24] str x8, [sp, #8] ; 8-byte Folded Spill bl _rand ldr x8, [sp, #8] ; 8-byte Folded Reload ldr x9, [sp, #16] mov x10, x9 sdiv w9, w0, w10 mul w9, w9, w10 subs w9, w0, w9 ldr q0, [x8, w9, sxtw #4] stur q0, [x29, #-16] ldur d0, [x29, #-16] ldur d1, [x29, #-8] ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _chaos_game ; -- Begin function chaos_game .p2align 2 _chaos_game: ; @chaos_game .cfi_startproc ; %bb.0: sub sp, sp, #96 .cfi_def_cfa_offset 96 stp x29, x30, [sp, #80] ; 16-byte Folded Spill add x29, sp, #80 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] stur x1, [x29, #-16] stur x2, [x29, #-24] stur x3, [x29, #-32] bl _drand str d0, [sp, #32] bl _drand str d0, [sp, #40] str xzr, [sp, #24] b LBB2_1 LBB2_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #24] ldur x9, [x29, #-32] subs x8, x8, x9 cset w8, hs tbnz w8, #0, LBB2_4 b LBB2_2 LBB2_2: ; in Loop: Header=BB2_1 Depth=1 ldur x8, [x29, #-24] ldr x9, [sp, #24] ldr q0, [sp, #32] str q0, [x8, x9, lsl #4] ldur x0, [x29, #-8] ldur x1, [x29, #-16] bl _random_element str d0, [sp, #8] str d1, [sp, #16] ldr d0, [sp, #32] ldr d1, [sp, #8] fadd d1, d0, d1 fmov d0, #0.50000000 fmul d1, d0, d1 str d1, [sp, #32] ldr d1, [sp, #40] ldr d2, [sp, #16] fadd d1, d1, d2 fmul d0, d0, d1 str d0, [sp, #40] b LBB2_3 LBB2_3: ; in Loop: Header=BB2_1 Depth=1 ldr x8, [sp, #24] add x8, x8, #1 str x8, [sp, #24] b LBB2_1 LBB2_4: ldp x29, x30, [sp, #80] ; 16-byte Folded Reload add sp, sp, #96 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: stp x28, x27, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w27, -24 .cfi_offset w28, -32 mov w9, #29056 movk w9, #2, lsl #16 adrp x16, ___chkstk_darwin@GOTPAGE ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF] blr x16 sub sp, sp, #39, lsl #12 ; =159744 sub sp, sp, #384 sub x8, x29, #72 adrp x9, ___stack_chk_guard@GOTPAGE ldr x9, [x9, ___stack_chk_guard@GOTPAGEOFF] ldr x9, [x9] stur x9, [x29, #-24] str wzr, [sp, #68] mov x9, #10000 str x9, [sp, #32] ; 8-byte Folded Spill str x9, [sp, #56] sub x9, x29, #72 str x9, [sp, #24] ; 8-byte Folded Spill movi d0, #0000000000000000 str d0, [x8] str d0, [x8, #8] fmov d1, #0.50000000 str d1, [x8, #16] fmov d1, #0.75000000 fsqrt d1, d1 str d1, [x8, #24] fmov d1, #1.00000000 str d1, [x8, #32] str d0, [x8, #40] mov x0, #0 bl _time ; kill: def $w0 killed $w0 killed $x0 bl _srand ldr x0, [sp, #24] ; 8-byte Folded Reload ldr x3, [sp, #32] ; 8-byte Folded Reload mov x1, #3 add x2, sp, #72 bl _chaos_game adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF bl _fopen str x0, [sp, #48] str xzr, [sp, #40] b LBB3_1 LBB3_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #40] mov x9, #10000 subs x8, x8, x9 cset w8, hs tbnz w8, #0, LBB3_4 b LBB3_2 LBB3_2: ; in Loop: Header=BB3_1 Depth=1 ldr x0, [sp, #48] ldr x8, [sp, #40] lsl x9, x8, #4 add x8, sp, #72 ldr d1, [x8, x9] ldr x9, [sp, #40] add x8, x8, x9, lsl #4 ldr d0, [x8, #8] mov x8, sp str d1, [x8] str d0, [x8, #8] adrp x1, l_.str.2@PAGE add x1, x1, l_.str.2@PAGEOFF bl _fprintf b LBB3_3 LBB3_3: ; in Loop: Header=BB3_1 Depth=1 ldr x8, [sp, #40] add x8, x8, #1 str x8, [sp, #40] b LBB3_1 LBB3_4: ldr x0, [sp, #48] bl _fclose ldur x9, [x29, #-24] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB3_6 b LBB3_5 LBB3_5: bl ___stack_chk_fail LBB3_6: mov w0, #0 add sp, sp, #39, lsl #12 ; =159744 add sp, sp, #384 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 "sierpinksi.dat" l_.str.1: ; @.str.1 .asciz "w+" l_.str.2: ; @.str.2 .asciz "%f\t%f\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 drand LCPI0_0: .quad 0x41dfffffffc00000 ## double 2147483647 .section __TEXT,__text,regular,pure_instructions .globl _drand .p2align 4, 0x90 _drand: ## @drand .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp callq _rand cvtsi2sd %eax, %xmm0 movsd LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero divsd %xmm1, %xmm0 popq %rbp retq .cfi_endproc ## -- End function .globl _random_element ## -- Begin function random_element .p2align 4, 0x90 _random_element: ## @random_element .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movq %rdi, -24(%rbp) movq %rsi, -32(%rbp) movq -24(%rbp), %rax movq %rax, -40(%rbp) ## 8-byte Spill callq _rand movl -32(%rbp), %ecx cltd idivl %ecx movq -40(%rbp), %rax ## 8-byte Reload movslq %edx, %rcx shlq $4, %rcx movups (%rax,%rcx), %xmm0 movaps %xmm0, -16(%rbp) movsd -16(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd -8(%rbp), %xmm1 ## xmm1 = mem[0],zero addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ## -- Begin function chaos_game LCPI2_0: .quad 0x3fe0000000000000 ## double 0.5 .section __TEXT,__text,regular,pure_instructions .globl _chaos_game .p2align 4, 0x90 _chaos_game: ## @chaos_game .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $80, %rsp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) movq %rdx, -24(%rbp) movq %rcx, -32(%rbp) callq _drand movsd %xmm0, -48(%rbp) callq _drand movsd %xmm0, -40(%rbp) movq $0, -56(%rbp) LBB2_1: ## =>This Inner Loop Header: Depth=1 movq -56(%rbp), %rax cmpq -32(%rbp), %rax jae LBB2_4 ## %bb.2: ## in Loop: Header=BB2_1 Depth=1 movq -24(%rbp), %rax movq -56(%rbp), %rcx shlq $4, %rcx addq %rcx, %rax movq -48(%rbp), %rcx movq %rcx, (%rax) movq -40(%rbp), %rcx movq %rcx, 8(%rax) movq -8(%rbp), %rdi movq -16(%rbp), %rsi callq _random_element movsd %xmm0, -72(%rbp) movsd %xmm1, -64(%rbp) movsd -48(%rbp), %xmm1 ## xmm1 = mem[0],zero addsd -72(%rbp), %xmm1 movsd LCPI2_0(%rip), %xmm0 ## xmm0 = mem[0],zero mulsd %xmm1, %xmm0 movsd %xmm0, -48(%rbp) movsd -40(%rbp), %xmm1 ## xmm1 = mem[0],zero addsd -64(%rbp), %xmm1 movsd LCPI2_0(%rip), %xmm0 ## xmm0 = mem[0],zero mulsd %xmm1, %xmm0 movsd %xmm0, -40(%rbp) ## %bb.3: ## in Loop: Header=BB2_1 Depth=1 movq -56(%rbp), %rax addq $1, %rax movq %rax, -56(%rbp) jmp LBB2_1 LBB2_4: addq $80, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ## -- Begin function main LCPI3_0: .quad 0x3ff0000000000000 ## double 1 LCPI3_1: .quad 0x3fe8000000000000 ## double 0.75 LCPI3_2: .quad 0x3fe0000000000000 ## double 0.5 .section __TEXT,__text,regular,pure_instructions .globl _main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl $160096, %eax ## imm = 0x27160 callq ____chkstk_darwin subq %rax, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -160068(%rbp) movq $10000, -160080(%rbp) ## imm = 0x2710 xorps %xmm0, %xmm0 movsd %xmm0, -64(%rbp) xorps %xmm0, %xmm0 movsd %xmm0, -56(%rbp) movsd LCPI3_2(%rip), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -48(%rbp) movsd LCPI3_1(%rip), %xmm0 ## xmm0 = mem[0],zero sqrtsd %xmm0, %xmm0 movsd %xmm0, -40(%rbp) movsd LCPI3_0(%rip), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -32(%rbp) xorps %xmm0, %xmm0 movsd %xmm0, -24(%rbp) xorl %eax, %eax movl %eax, %edi callq _time movl %eax, %edi callq _srand leaq -64(%rbp), %rdi leaq -160064(%rbp), %rdx movl $3, %esi movl $10000, %ecx ## imm = 0x2710 callq _chaos_game leaq L_.str(%rip), %rdi leaq L_.str.1(%rip), %rsi callq _fopen movq %rax, -160088(%rbp) movq $0, -160096(%rbp) LBB3_1: ## =>This Inner Loop Header: Depth=1 cmpq $10000, -160096(%rbp) ## imm = 0x2710 jae LBB3_4 ## %bb.2: ## in Loop: Header=BB3_1 Depth=1 movq -160088(%rbp), %rdi movq -160096(%rbp), %rcx leaq -160064(%rbp), %rax shlq $4, %rcx addq %rcx, %rax movsd (%rax), %xmm0 ## xmm0 = mem[0],zero movq -160096(%rbp), %rcx leaq -160064(%rbp), %rax shlq $4, %rcx addq %rcx, %rax movsd 8(%rax), %xmm1 ## xmm1 = mem[0],zero leaq L_.str.2(%rip), %rsi movb $2, %al callq _fprintf ## %bb.3: ## in Loop: Header=BB3_1 Depth=1 movq -160096(%rbp), %rax addq $1, %rax movq %rax, -160096(%rbp) jmp LBB3_1 LBB3_4: movq -160088(%rbp), %rdi callq _fclose movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB3_6 ## %bb.5: xorl %eax, %eax addq $160096, %rsp ## imm = 0x27160 popq %rbp retq LBB3_6: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "sierpinksi.dat" L_.str.1: ## @.str.1 .asciz "w+" L_.str.2: ## @.str.2 .asciz "%f\t%f\n" .subsections_via_symbols
the_stack_data/59513779.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] ldr w8, [sp, #4] ldr w9, [sp, #4] eor w8, w8, w9 str w8, [sp, #8] add sp, sp, #16 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl $0, -4(%rbp) movl -12(%rbp), %eax xorl -12(%rbp), %eax movl %eax, -8(%rbp) xorl %eax, %eax popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/179830959.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] mov x8, #-1 str x8, [sp] ldr x8, [sp] rbit x8, x8 clz x8, x8 ; kill: def $w8 killed $w8 killed $x8 subs w8, w8, #0 cset w9, ne ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: adrp x0, l___func__.main@PAGE add x0, x0, l___func__.main@PAGEOFF adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF mov w2, #5 adrp x3, l_.str.1@PAGE add x3, x3, l_.str.1@PAGEOFF bl ___assert_rtn LBB0_2: b LBB0_3 LBB0_3: mov x8, #1099511627776 str x8, [sp] ldr x8, [sp] rbit x8, x8 clz x8, x8 ; kill: def $w8 killed $w8 killed $x8 subs w8, w8, #40 cset w9, ne ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB0_5 b LBB0_4 LBB0_4: adrp x0, l___func__.main@PAGE add x0, x0, l___func__.main@PAGEOFF adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF mov w2, #9 adrp x3, l_.str.2@PAGE add x3, x3, l_.str.2@PAGEOFF bl ___assert_rtn LBB0_5: b LBB0_6 LBB0_6: mov x8, #285212672 movk x8, #1074, lsl #32 str x8, [sp] ldr x8, [sp] rbit x8, x8 clz x8, x8 ; kill: def $w8 killed $w8 killed $x8 subs w8, w8, #24 cset w9, ne ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB0_8 b LBB0_7 LBB0_7: adrp x0, l___func__.main@PAGE add x0, x0, l___func__.main@PAGEOFF adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF mov w2, #12 adrp x3, l_.str.3@PAGE add x3, x3, l_.str.3@PAGEOFF bl ___assert_rtn LBB0_8: b LBB0_9 LBB0_9: mov x8, #4592 movk x8, #1074, lsl #16 str x8, [sp] ldr x8, [sp] rbit x8, x8 clz x8, x8 ; kill: def $w8 killed $w8 killed $x8 subs w8, w8, #4 cset w9, ne ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB0_11 b LBB0_10 LBB0_10: adrp x0, l___func__.main@PAGE add x0, x0, l___func__.main@PAGEOFF adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF mov w2, #16 adrp x3, l_.str.4@PAGE add x3, x3, l_.str.4@PAGEOFF bl ___assert_rtn LBB0_11: b LBB0_12 LBB0_12: mov w0, #0 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l___func__.main: ; @__func__.main .asciz "main" l_.str: ; @.str .asciz "43886873.c" l_.str.1: ; @.str.1 .asciz "__builtin_ctzl(value) == 0" l_.str.2: ; @.str.2 .asciz "__builtin_ctzl(value) == 40" l_.str.3: ; @.str.3 .asciz "__builtin_ctzl(value) == 24" l_.str.4: ; @.str.4 .asciz "__builtin_ctzl(value) == 4" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) movq $-1, -16(%rbp) movq -16(%rbp), %rax bsfq %rax, %rax ## kill: def $eax killed $eax killed $rax cmpl $0, %eax sete %al xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB0_2 ## %bb.1: leaq L___func__.main(%rip), %rdi leaq L_.str(%rip), %rsi leaq L_.str.1(%rip), %rcx movl $5, %edx callq ___assert_rtn LBB0_2: jmp LBB0_3 LBB0_3: movabsq $1099511627776, %rax ## imm = 0x10000000000 movq %rax, -16(%rbp) movq -16(%rbp), %rax bsfq %rax, %rax ## kill: def $eax killed $eax killed $rax cmpl $40, %eax sete %al xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB0_5 ## %bb.4: leaq L___func__.main(%rip), %rdi leaq L_.str(%rip), %rsi leaq L_.str.2(%rip), %rcx movl $9, %edx callq ___assert_rtn LBB0_5: jmp LBB0_6 LBB0_6: movabsq $4613080088576, %rax ## imm = 0x43211000000 movq %rax, -16(%rbp) movq -16(%rbp), %rax bsfq %rax, %rax ## kill: def $eax killed $eax killed $rax cmpl $24, %eax sete %al xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB0_8 ## %bb.7: leaq L___func__.main(%rip), %rdi leaq L_.str(%rip), %rsi leaq L_.str.3(%rip), %rcx movl $12, %edx callq ___assert_rtn LBB0_8: jmp LBB0_9 LBB0_9: movq $70390256, -16(%rbp) ## imm = 0x43211F0 movq -16(%rbp), %rax bsfq %rax, %rax ## kill: def $eax killed $eax killed $rax cmpl $4, %eax sete %al xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB0_11 ## %bb.10: leaq L___func__.main(%rip), %rdi leaq L_.str(%rip), %rsi leaq L_.str.4(%rip), %rcx movl $16, %edx callq ___assert_rtn LBB0_11: jmp LBB0_12 LBB0_12: xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L___func__.main: ## @__func__.main .asciz "main" L_.str: ## @.str .asciz "43886873.c" L_.str.1: ## @.str.1 .asciz "__builtin_ctzl(value) == 0" L_.str.2: ## @.str.2 .asciz "__builtin_ctzl(value) == 40" L_.str.3: ## @.str.3 .asciz "__builtin_ctzl(value) == 24" L_.str.4: ## @.str.4 .asciz "__builtin_ctzl(value) == 4" .subsections_via_symbols
the_stack_data/43886873.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _firstUniqChar ; -- Begin function firstUniqChar .p2align 2 _firstUniqChar: ; @firstUniqChar .cfi_startproc ; %bb.0: sub sp, sp, #192 .cfi_def_cfa_offset 192 stp x29, x30, [sp, #176] ; 16-byte Folded Spill add x29, sp, #176 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] str x0, [sp, #48] str wzr, [sp, #44] ldr x8, [sp, #48] str x8, [sp, #32] ldr x8, [sp, #32] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: mov w8, #-1 str w8, [sp, #44] ldr w8, [sp, #44] str w8, [sp, #60] b LBB0_16 LBB0_2: b LBB0_3 LBB0_3: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #32] add x9, x8, #1 str x9, [sp, #32] ldrb w8, [x8] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_5 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_3 Depth=1 ldr w8, [sp, #44] add w8, w8, #1 str w8, [sp, #44] b LBB0_3 LBB0_5: ldr w9, [sp, #44] ; 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 add x0, sp, #64 mov w1, #0 mov x2, #104 bl _memset str wzr, [sp, #28] b LBB0_6 LBB0_6: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #28] ldr w9, [sp, #44] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_9 b LBB0_7 LBB0_7: ; in Loop: Header=BB0_6 Depth=1 ldr x8, [sp, #48] ldrsw x9, [sp, #28] ldrsb w8, [x8, x9] subs w8, w8, #97 str w8, [sp, #24] ldrsw x9, [sp, #24] add x8, sp, #64 add x9, x8, x9, lsl #2 ldr w8, [x9] add w8, w8, #1 str w8, [x9] b LBB0_8 LBB0_8: ; in Loop: Header=BB0_6 Depth=1 ldr w8, [sp, #28] add w8, w8, #1 str w8, [sp, #28] b LBB0_6 LBB0_9: str wzr, [sp, #20] b LBB0_10 LBB0_10: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #20] ldr w9, [sp, #44] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_15 b LBB0_11 LBB0_11: ; in Loop: Header=BB0_10 Depth=1 ldr x8, [sp, #48] ldrsw x9, [sp, #20] ldrsb w8, [x8, x9] subs w8, w8, #97 str w8, [sp, #16] ldrsw x9, [sp, #16] add x8, sp, #64 ldr w8, [x8, x9, lsl #2] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB0_13 b LBB0_12 LBB0_12: ldr w8, [sp, #20] str w8, [sp, #60] b LBB0_16 LBB0_13: ; in Loop: Header=BB0_10 Depth=1 b LBB0_14 LBB0_14: ; in Loop: Header=BB0_10 Depth=1 ldr w8, [sp, #20] add w8, w8, #1 str w8, [sp, #20] b LBB0_10 LBB0_15: mov w8, #-1 str w8, [sp, #60] b LBB0_16 LBB0_16: ldr w8, [sp, #60] str w8, [sp, #12] ; 4-byte Folded Spill ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_18 b LBB0_17 LBB0_17: bl ___stack_chk_fail LBB0_18: ldr w0, [sp, #12] ; 4-byte Folded Reload ldp x29, x30, [sp, #176] ; 16-byte Folded Reload add sp, sp, #192 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, l_.str.1@PAGE add x8, x8, l_.str.1@PAGEOFF str x8, [sp, #8] ldr x0, [sp, #8] bl _firstUniqChar mov x9, sp ; implicit-def: $x8 mov x8, x0 str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF 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 "count1:%d\n" l_.str.1: ; @.str.1 .asciz "leetcode" l_.str.2: ; @.str.2 .asciz "%d\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _firstUniqChar ## -- Begin function firstUniqChar .p2align 4, 0x90 _firstUniqChar: ## @firstUniqChar .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $176, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movq %rdi, -128(%rbp) movl $0, -132(%rbp) movq -128(%rbp), %rax movq %rax, -144(%rbp) cmpq $0, -144(%rbp) jne LBB0_2 ## %bb.1: movl $-1, -132(%rbp) movl -132(%rbp), %eax movl %eax, -116(%rbp) jmp LBB0_16 LBB0_2: jmp LBB0_3 LBB0_3: ## =>This Inner Loop Header: Depth=1 movq -144(%rbp), %rax movq %rax, %rcx addq $1, %rcx movq %rcx, -144(%rbp) cmpb $0, (%rax) je LBB0_5 ## %bb.4: ## in Loop: Header=BB0_3 Depth=1 movl -132(%rbp), %eax addl $1, %eax movl %eax, -132(%rbp) jmp LBB0_3 LBB0_5: movl -132(%rbp), %esi leaq L_.str(%rip), %rdi movb $0, %al callq _printf leaq -112(%rbp), %rdi xorl %esi, %esi movl $104, %edx callq _memset movl $0, -148(%rbp) LBB0_6: ## =>This Inner Loop Header: Depth=1 movl -148(%rbp), %eax cmpl -132(%rbp), %eax jge LBB0_9 ## %bb.7: ## in Loop: Header=BB0_6 Depth=1 movq -128(%rbp), %rax movslq -148(%rbp), %rcx movsbl (%rax,%rcx), %eax subl $97, %eax movl %eax, -152(%rbp) movslq -152(%rbp), %rax movl -112(%rbp,%rax,4), %ecx addl $1, %ecx movl %ecx, -112(%rbp,%rax,4) ## %bb.8: ## in Loop: Header=BB0_6 Depth=1 movl -148(%rbp), %eax addl $1, %eax movl %eax, -148(%rbp) jmp LBB0_6 LBB0_9: movl $0, -156(%rbp) LBB0_10: ## =>This Inner Loop Header: Depth=1 movl -156(%rbp), %eax cmpl -132(%rbp), %eax jge LBB0_15 ## %bb.11: ## in Loop: Header=BB0_10 Depth=1 movq -128(%rbp), %rax movslq -156(%rbp), %rcx movsbl (%rax,%rcx), %eax subl $97, %eax movl %eax, -160(%rbp) movslq -160(%rbp), %rax cmpl $1, -112(%rbp,%rax,4) jne LBB0_13 ## %bb.12: movl -156(%rbp), %eax movl %eax, -116(%rbp) jmp LBB0_16 LBB0_13: ## in Loop: Header=BB0_10 Depth=1 jmp LBB0_14 LBB0_14: ## in Loop: Header=BB0_10 Depth=1 movl -156(%rbp), %eax addl $1, %eax movl %eax, -156(%rbp) jmp LBB0_10 LBB0_15: movl $-1, -116(%rbp) LBB0_16: movl -116(%rbp), %eax movl %eax, -164(%rbp) ## 4-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_18 ## %bb.17: movl -164(%rbp), %eax ## 4-byte Reload addq $176, %rsp popq %rbp retq LBB0_18: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp leaq L_.str.1(%rip), %rax movq %rax, -8(%rbp) movq -8(%rbp), %rdi callq _firstUniqChar movl %eax, %esi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "count1:%d\n" L_.str.1: ## @.str.1 .asciz "leetcode" L_.str.2: ## @.str.2 .asciz "%d\n" .subsections_via_symbols
the_stack_data/198579791.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _getint ; -- Begin function getint .p2align 2 _getint: ; @getint .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 _gets ldr x0, [sp, #8] bl _atol mov x8, x0 str w8, [sp, #4] ldr w0, [sp, #4] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _initqueue ; -- Begin function initqueue .p2align 2 _initqueue: ; @initqueue .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] ldr x8, [sp, #8] str wzr, [x8, #4100] ldr x8, [sp, #8] str wzr, [x8, #4096] mov w0, #1 add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _enqueue ; -- Begin function enqueue .p2align 2 _enqueue: ; @enqueue .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #16] str w1, [sp, #12] ldr x8, [sp, #16] ldr w8, [x8, #4100] add w8, w8, #1 mov w10, #1024 sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 ldr x9, [sp, #16] ldr w9, [x9, #4096] subs w8, w8, w9 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 stur wzr, [x29, #-4] b LBB2_4 LBB2_2: ldr w8, [sp, #12] ldr x9, [sp, #16] ldr x10, [sp, #16] ldrsw x10, [x10, #4100] str w8, [x9, x10, lsl #2] ldr x8, [sp, #16] ldr w8, [x8, #4100] add w8, w8, #1 mov w10, #1024 sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 ldr x9, [sp, #16] str w8, [x9, #4100] b LBB2_3 LBB2_3: mov w8, #1 stur w8, [x29, #-4] b LBB2_4 LBB2_4: ldur w0, [x29, #-4] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _dequeue ; -- Begin function dequeue .p2align 2 _dequeue: ; @dequeue .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #16] ldr x8, [sp, #16] ldr w8, [x8, #4096] ldr x9, [sp, #16] ldr w9, [x9, #4100] subs w8, w8, w9 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 stur wzr, [x29, #-4] b LBB3_4 LBB3_2: ldr x8, [sp, #16] ldr x9, [sp, #16] ldrsw x9, [x9, #4096] ldr w8, [x8, x9, lsl #2] str w8, [sp, #12] ldr x8, [sp, #16] ldr w8, [x8, #4096] add w8, w8, #1 mov w10, #1024 sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 ldr x9, [sp, #16] str w8, [x9, #4096] b LBB3_3 LBB3_3: ldr w8, [sp, #12] stur w8, [x29, #-4] b LBB3_4 LBB3_4: ldur w0, [x29, #-4] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 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, #4096] ldr x9, [sp, #8] ldr w9, [x9, #4100] subs w8, w8, w9 cset w8, eq and w0, w8, #0x1 add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _depthfirstsearch ; -- Begin function depthfirstsearch .p2align 2 _depthfirstsearch: ; @depthfirstsearch .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] stur w1, [x29, #-12] str x2, [sp, #24] str x3, [sp, #16] ldr x8, [sp, #16] ldur x9, [x29, #-8] ldursw x10, [x29, #-12] lsl x10, x10, #4 ldrsw x9, [x9, x10] mov x10, #40 mul x9, x9, x10 add x8, x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf ldr x9, [sp, #24] ldursw x10, [x29, #-12] mov w8, #1 str w8, [x9, x10, lsl #2] ldur x8, [x29, #-8] ldursw x9, [x29, #-12] add x8, x8, x9, lsl #4 ldr x8, [x8, #8] str x8, [sp, #8] b LBB5_1 LBB5_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #8] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB5_6 b LBB5_2 LBB5_2: ; in Loop: Header=BB5_1 Depth=1 ldr x8, [sp, #24] ldr x9, [sp, #8] ldrsw x9, [x9] ldr w8, [x8, x9, lsl #2] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB5_4 b LBB5_3 LBB5_3: ; in Loop: Header=BB5_1 Depth=1 ldur x0, [x29, #-8] ldr x8, [sp, #8] ldr w1, [x8] ldr x2, [sp, #24] ldr x3, [sp, #16] bl _depthfirstsearch b LBB5_4 LBB5_4: ; in Loop: Header=BB5_1 Depth=1 b LBB5_5 LBB5_5: ; in Loop: Header=BB5_1 Depth=1 ldr x8, [sp, #8] ldr x8, [x8, #8] str x8, [sp, #8] b LBB5_1 LBB5_6: mov w0, #1 ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _breadthfirstsearch ; -- Begin function breadthfirstsearch .p2align 2 _breadthfirstsearch: ; @breadthfirstsearch .cfi_startproc ; %bb.0: stp x28, x27, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w27, -24 .cfi_offset w28, -32 mov w9, #4160 adrp x16, ___chkstk_darwin@GOTPAGE ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF] blr x16 sub sp, sp, #1, lsl #12 ; =4096 sub sp, sp, #64 stur x0, [x29, #-24] stur w1, [x29, #-28] stur x2, [x29, #-40] stur x3, [x29, #-48] add x0, sp, #24 str x0, [sp, #8] ; 8-byte Folded Spill bl _initqueue ldur x8, [x29, #-48] ldur x9, [x29, #-24] ldursw x10, [x29, #-28] lsl x10, x10, #4 ldrsw x9, [x9, x10] mov x10, #40 mul x9, x9, x10 add x8, x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf ldr x0, [sp, #8] ; 8-byte Folded Reload ldur x9, [x29, #-40] ldursw x10, [x29, #-28] mov w8, #1 str w8, [x9, x10, lsl #2] ldur w1, [x29, #-28] bl _enqueue b LBB6_1 LBB6_1: ; =>This Loop Header: Depth=1 ; Child Loop BB6_3 Depth 2 add x0, sp, #24 bl _isempty subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB6_8 b LBB6_2 LBB6_2: ; in Loop: Header=BB6_1 Depth=1 add x0, sp, #24 bl _dequeue stur w0, [x29, #-28] ldur x8, [x29, #-24] ldursw x9, [x29, #-28] add x8, x8, x9, lsl #4 ldr x8, [x8, #8] str x8, [sp, #16] b LBB6_3 LBB6_3: ; Parent Loop BB6_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr x8, [sp, #16] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB6_7 b LBB6_4 LBB6_4: ; in Loop: Header=BB6_3 Depth=2 ldur x8, [x29, #-40] ldr x9, [sp, #16] ldrsw x9, [x9] ldr w8, [x8, x9, lsl #2] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB6_6 b LBB6_5 LBB6_5: ; in Loop: Header=BB6_3 Depth=2 ldur x8, [x29, #-48] ldur x9, [x29, #-24] ldr x10, [sp, #16] ldrsw x10, [x10] lsl x10, x10, #4 ldrsw x9, [x9, x10] mov x10, #40 mul x9, x9, x10 add x8, x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf ldur x9, [x29, #-40] ldr x8, [sp, #16] ldrsw x10, [x8] mov w8, #1 str w8, [x9, x10, lsl #2] ldr x8, [sp, #16] ldr w1, [x8] add x0, sp, #24 bl _enqueue b LBB6_6 LBB6_6: ; in Loop: Header=BB6_3 Depth=2 ldr x8, [sp, #16] ldr x8, [x8, #8] str x8, [sp, #16] b LBB6_3 LBB6_7: ; in Loop: Header=BB6_1 Depth=1 b LBB6_1 LBB6_8: mov w0, #1 add sp, sp, #1, lsl #12 ; =4096 add sp, sp, #64 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x28, x27, [sp], #32 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .globl _vector ; -- Begin function vector .p2align 2 _vector: ; @vector .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 str x0, [sp, #40] str x1, [sp, #32] str x2, [sp, #24] ldr x8, [sp, #40] ldr s0, [x8, #36] str s0, [sp, #20] ldr x8, [sp, #32] ldr s0, [x8, #36] str s0, [sp, #16] ldr x8, [sp, #40] ldr s0, [x8, #32] str s0, [sp, #12] ldr x8, [sp, #32] ldr s0, [x8, #32] str s0, [sp, #8] ldr s0, [sp, #16] ldr s1, [sp, #20] fsub s0, s0, s1 ldr x8, [sp, #24] str s0, [x8, #36] ldr s0, [sp, #8] ldr s1, [sp, #12] fsub s0, s0, s1 ldr x8, [sp, #24] str s0, [x8, #32] ldr x0, [sp, #24] add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _angle ; -- Begin function angle .p2align 2 _angle: ; @angle .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 s0, [x8, #36] ldr x8, [sp, #16] ldr s1, [x8, #36] ldr x8, [sp, #24] ldr s2, [x8, #32] ldr x8, [sp, #16] ldr s3, [x8, #32] fmul s2, s2, s3 fmadd s0, s0, s1, s2 fcvt d0, s0 ldr x8, [sp, #24] ldr s1, [x8, #36] ldr x8, [sp, #24] ldr s2, [x8, #36] ldr x8, [sp, #24] ldr s3, [x8, #32] ldr x8, [sp, #24] ldr s4, [x8, #32] fmul s3, s3, s4 fmadd s1, s1, s2, s3 fcvt d1, s1 fsqrt d1, d1 ldr x8, [sp, #16] ldr s2, [x8, #36] ldr x8, [sp, #16] ldr s3, [x8, #36] ldr x8, [sp, #16] ldr s4, [x8, #32] ldr x8, [sp, #16] ldr s5, [x8, #32] fmul s4, s4, s5 fmadd s2, s2, s3, s4 fcvt d2, s2 fsqrt d2, d2 fmul d1, d1, d2 fdiv d0, d0, d1 fcvt s0, d0 str s0, [sp, #12] ldr s0, [sp, #12] add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _origintodestination ; -- Begin function origintodestination .p2align 2 _origintodestination: ; @origintodestination .cfi_startproc ; %bb.0: sub sp, sp, #144 .cfi_def_cfa_offset 144 stp x29, x30, [sp, #128] ; 16-byte Folded Spill add x29, sp, #128 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-16] stur w1, [x29, #-20] stur w2, [x29, #-24] stur x3, [x29, #-32] stur x4, [x29, #-40] mov x0, #40 str x0, [sp, #16] ; 8-byte Folded Spill bl _malloc mov x8, x0 ldr x0, [sp, #16] ; 8-byte Folded Reload str x8, [sp, #64] bl _malloc str x0, [sp, #56] mov w8, #1 str w8, [sp, #36] ; 4-byte Folded Spill str w8, [sp, #52] ldur x10, [x29, #-40] ldursw x8, [x29, #-20] mov x12, #40 str x12, [sp, #24] ; 8-byte Folded Spill mul x11, x8, x12 ldur x8, [x29, #-40] ldursw x9, [x29, #-24] mul x9, x9, x12 ldr x2, [sp, #56] add x0, x10, x11 add x1, x8, x9 bl _vector ldr x10, [sp, #24] ; 8-byte Folded Reload str x0, [sp, #56] ldur x8, [x29, #-16] ldursw x9, [x29, #-20] add x8, x8, x9, lsl #4 ldr x8, [x8, #8] stur x8, [x29, #-48] ldur x8, [x29, #-40] ldur x9, [x29, #-16] ldursw x11, [x29, #-20] lsl x11, x11, #4 ldrsw x9, [x9, x11] mul x9, x9, x10 add x8, x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf ldr w8, [sp, #36] ; 4-byte Folded Reload ldur x9, [x29, #-32] ldursw x10, [x29, #-20] str w8, [x9, x10, lsl #2] ldur w8, [x29, #-20] ldur w9, [x29, #-24] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB9_2 b LBB9_1 LBB9_1: mov w8, #-1 stur w8, [x29, #-4] b LBB9_24 LBB9_2: b LBB9_3 LBB9_3: ; =>This Loop Header: Depth=1 ; Child Loop BB9_7 Depth 2 ldr w8, [sp, #52] subs w8, w8, #0 cset w8, lt tbnz w8, #0, LBB9_23 b LBB9_4 LBB9_4: ; in Loop: Header=BB9_3 Depth=1 ldur x8, [x29, #-48] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB9_6 b LBB9_5 LBB9_5: stur wzr, [x29, #-4] b LBB9_24 LBB9_6: ; in Loop: Header=BB9_3 Depth=1 str wzr, [sp, #40] ldur x8, [x29, #-16] ldursw x9, [x29, #-20] add x8, x8, x9, lsl #4 ldr x8, [x8, #8] stur x8, [x29, #-56] b LBB9_7 LBB9_7: ; Parent Loop BB9_3 Depth=1 ; => This Inner Loop Header: Depth=2 ldur x8, [x29, #-56] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB9_16 b LBB9_8 LBB9_8: ; in Loop: Header=BB9_7 Depth=2 ldur x8, [x29, #-32] ldur x9, [x29, #-56] ldrsw x9, [x9] ldr w8, [x8, x9, lsl #2] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB9_15 b LBB9_9 LBB9_9: ; in Loop: Header=BB9_7 Depth=2 ldur x8, [x29, #-40] ldursw x9, [x29, #-20] mov x10, #40 mul x9, x9, x10 add x0, x8, x9 ldur x8, [x29, #-40] ldur x9, [x29, #-56] ldrsw x9, [x9] mul x9, x9, x10 add x1, x8, x9 ldr x2, [sp, #64] bl _vector str x0, [sp, #64] ldr w8, [sp, #40] add w8, w8, #1 str w8, [sp, #40] ldr w8, [sp, #40] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB9_11 b LBB9_10 LBB9_10: ; in Loop: Header=BB9_7 Depth=2 ldur x8, [x29, #-56] ldr w8, [x8] str w8, [sp, #48] ldr x0, [sp, #64] ldr x1, [sp, #56] bl _angle str s0, [sp, #44] b LBB9_14 LBB9_11: ; in Loop: Header=BB9_7 Depth=2 ldr x0, [sp, #64] ldr x1, [sp, #56] bl _angle ldr s1, [sp, #44] fcmp s0, s1 cset w8, le tbnz w8, #0, LBB9_13 b LBB9_12 LBB9_12: ; in Loop: Header=BB9_7 Depth=2 ldr x0, [sp, #64] ldr x1, [sp, #56] bl _angle str s0, [sp, #44] ldur x8, [x29, #-56] ldr w8, [x8] str w8, [sp, #48] b LBB9_13 LBB9_13: ; in Loop: Header=BB9_7 Depth=2 b LBB9_14 LBB9_14: ; in Loop: Header=BB9_7 Depth=2 b LBB9_15 LBB9_15: ; in Loop: Header=BB9_7 Depth=2 ldur x8, [x29, #-56] ldr x8, [x8, #8] stur x8, [x29, #-56] b LBB9_7 LBB9_16: ; in Loop: Header=BB9_3 Depth=1 ldr w8, [sp, #40] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB9_18 b LBB9_17 LBB9_17: stur wzr, [x29, #-4] b LBB9_24 LBB9_18: ; in Loop: Header=BB9_3 Depth=1 ldur x0, [x29, #-16] ldr w1, [sp, #48] ldur w2, [x29, #-24] ldur x3, [x29, #-32] ldur x4, [x29, #-40] bl _origintodestination str w0, [sp, #52] ldr w8, [sp, #52] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB9_20 b LBB9_19 LBB9_19: ; in Loop: Header=BB9_3 Depth=1 ldur x8, [x29, #-40] ldur x9, [x29, #-16] ldursw x10, [x29, #-20] lsl x10, x10, #4 ldrsw x9, [x9, x10] mov x10, #40 mul x9, x9, x10 add x8, x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf b LBB9_20 LBB9_20: ; in Loop: Header=BB9_3 Depth=1 ldr w8, [sp, #52] adds w8, w8, #1 cset w8, ne tbnz w8, #0, LBB9_22 b LBB9_21 LBB9_21: mov w8, #-1 stur w8, [x29, #-4] b LBB9_24 LBB9_22: ; in Loop: Header=BB9_3 Depth=1 ldur x8, [x29, #-48] ldr x8, [x8, #8] stur x8, [x29, #-48] b LBB9_3 LBB9_23: mov w8, #1 stur w8, [x29, #-4] b LBB9_24 LBB9_24: ldur w0, [x29, #-4] ldp x29, x30, [sp, #128] ; 16-byte Folded Reload add sp, sp, #144 ret .cfi_endproc ; -- End function .globl _creategraph ; -- Begin function creategraph .p2align 2 _creategraph: ; @creategraph .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] str x1, [sp, #16] str wzr, [sp, #12] b LBB10_1 LBB10_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #12] subs w8, w8, #25 cset w8, ge tbnz w8, #0, LBB10_4 b LBB10_2 LBB10_2: ; in Loop: Header=BB10_1 Depth=1 ldr w8, [sp, #12] ldur x9, [x29, #-8] ldrsw x10, [sp, #12] lsl x10, x10, #4 str w8, [x9, x10] ldur x8, [x29, #-8] ldrsw x9, [sp, #12] add x8, x8, x9, lsl #4 ; kill: def $x9 killed $xzr str xzr, [x8, #8] b LBB10_3 LBB10_3: ; in Loop: Header=BB10_1 Depth=1 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB10_1 LBB10_4: str wzr, [sp, #12] b LBB10_5 LBB10_5: ; =>This Loop Header: Depth=1 ; Child Loop BB10_7 Depth 2 ldr w8, [sp, #12] subs w8, w8, #25 cset w8, ge tbnz w8, #0, LBB10_14 b LBB10_6 LBB10_6: ; in Loop: Header=BB10_5 Depth=1 mov w8, #24 str w8, [sp, #8] b LBB10_7 LBB10_7: ; Parent Loop BB10_5 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #8] subs w8, w8, #0 cset w8, lt tbnz w8, #0, LBB10_12 b LBB10_8 LBB10_8: ; in Loop: Header=BB10_7 Depth=2 ldr x8, [sp, #16] ldrsw x9, [sp, #12] mov x10, #100 mul x9, x9, x10 add x8, x8, x9 ldrsw x9, [sp, #8] ldr w8, [x8, x9, lsl #2] subs w8, w8, #0 cset w8, gt tbnz w8, #0, LBB10_10 b LBB10_9 LBB10_9: ; in Loop: Header=BB10_7 Depth=2 b LBB10_11 LBB10_10: ; in Loop: Header=BB10_7 Depth=2 mov x0, #16 bl _malloc str x0, [sp] ldr w8, [sp, #8] ldr x9, [sp] str w8, [x9] ldur x8, [x29, #-8] ldrsw x9, [sp, #12] add x8, x8, x9, lsl #4 ldr x8, [x8, #8] ldr x9, [sp] str x8, [x9, #8] ldr x8, [sp] ldur x9, [x29, #-8] ldrsw x10, [sp, #12] add x9, x9, x10, lsl #4 str x8, [x9, #8] b LBB10_11 LBB10_11: ; in Loop: Header=BB10_7 Depth=2 ldr w8, [sp, #8] subs w8, w8, #1 str w8, [sp, #8] b LBB10_7 LBB10_12: ; in Loop: Header=BB10_5 Depth=1 b LBB10_13 LBB10_13: ; in Loop: Header=BB10_5 Depth=1 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB10_5 LBB10_14: mov w0, #1 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _readfile ; -- Begin function readfile .p2align 2 _readfile: ; @readfile .cfi_startproc ; %bb.0: sub sp, sp, #192 .cfi_def_cfa_offset 192 stp x29, x30, [sp, #176] ; 16-byte Folded Spill add x29, sp, #176 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] stur x0, [x29, #-64] stur x1, [x29, #-72] stur x2, [x29, #-80] str x3, [sp, #88] ldr x0, [sp, #88] adrp x1, l_.str.3@PAGE add x1, x1, l_.str.3@PAGEOFF bl _fopen mov x8, x0 str x8, [sp, #80] subs x8, x0, #0 cset w8, eq tbnz w8, #0, LBB11_14 b LBB11_1 LBB11_1: str wzr, [sp, #76] b LBB11_2 LBB11_2: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #76] subs w8, w8, #25 cset w8, ge tbnz w8, #0, LBB11_5 b LBB11_3 LBB11_3: ; in Loop: Header=BB11_2 Depth=1 ldr x0, [sp, #80] sub x12, x29, #56 add x11, x12, #4 add x10, x12, #8 add x8, x12, #12 mov x9, sp sub x13, x29, #40 str x13, [sp, #48] ; 8-byte Folded Spill str x13, [x9] str x12, [x9, #8] str x11, [x9, #16] str x10, [x9, #24] str x8, [x9, #32] adrp x1, l_.str.4@PAGE add x1, x1, l_.str.4@PAGEOFF bl _fscanf ldr x1, [sp, #48] ; 8-byte Folded Reload ldur x8, [x29, #-64] ldrsw x9, [sp, #76] mov x10, #40 str x10, [sp, #56] ; 8-byte Folded Spill mul x9, x9, x10 add x0, x8, x9 mov x2, #32 bl ___strcpy_chk ldr x10, [sp, #56] ; 8-byte Folded Reload ldur s0, [x29, #-56] ldur s1, [x29, #-52] mov w8, #1114636288 fmov s2, w8 fdiv s1, s1, s2 fadd s0, s0, s1 ldur x8, [x29, #-64] ldrsw x9, [sp, #76] mul x9, x9, x10 add x8, x8, x9 str s0, [x8, #32] ldur s0, [x29, #-48] ldur s1, [x29, #-44] fdiv s1, s1, s2 fadd s0, s0, s1 ldur x8, [x29, #-64] ldrsw x9, [sp, #76] mul x9, x9, x10 add x8, x8, x9 str s0, [x8, #36] b LBB11_4 LBB11_4: ; in Loop: Header=BB11_2 Depth=1 ldr w8, [sp, #76] add w8, w8, #1 str w8, [sp, #76] b LBB11_2 LBB11_5: str wzr, [sp, #76] b LBB11_6 LBB11_6: ; =>This Loop Header: Depth=1 ; Child Loop BB11_8 Depth 2 ldr w8, [sp, #76] subs w8, w8, #25 cset w8, ge tbnz w8, #0, LBB11_13 b LBB11_7 LBB11_7: ; in Loop: Header=BB11_6 Depth=1 str wzr, [sp, #72] b LBB11_8 LBB11_8: ; Parent Loop BB11_6 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #72] subs w8, w8, #25 cset w8, ge tbnz w8, #0, LBB11_11 b LBB11_9 LBB11_9: ; in Loop: Header=BB11_8 Depth=2 ldr x0, [sp, #80] mov x9, sp add x8, sp, #68 str x8, [x9] adrp x1, l_.str.5@PAGE add x1, x1, l_.str.5@PAGEOFF bl _fscanf ldr w8, [sp, #68] ldur x9, [x29, #-80] ldrsw x10, [sp, #76] mov x11, #100 mul x10, x10, x11 add x9, x9, x10 ldrsw x10, [sp, #72] str w8, [x9, x10, lsl #2] b LBB11_10 LBB11_10: ; in Loop: Header=BB11_8 Depth=2 ldr w8, [sp, #72] add w8, w8, #1 str w8, [sp, #72] b LBB11_8 LBB11_11: ; in Loop: Header=BB11_6 Depth=1 b LBB11_12 LBB11_12: ; in Loop: Header=BB11_6 Depth=1 ldr w8, [sp, #76] add w8, w8, #1 str w8, [sp, #76] b LBB11_6 LBB11_13: b LBB11_14 LBB11_14: ldr x0, [sp, #80] bl _fclose ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB11_16 b LBB11_15 LBB11_15: bl ___stack_chk_fail LBB11_16: mov w0, #1 ldp x29, x30, [sp, #176] ; 16-byte Folded Reload add sp, sp, #192 ret .cfi_endproc ; -- End function .globl _citylist ; -- Begin function citylist .p2align 2 _citylist: ; @citylist .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _printf stur wzr, [x29, #-12] b LBB12_1 LBB12_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-12] subs w8, w8, #25 cset w8, ge tbnz w8, #0, LBB12_6 b LBB12_2 LBB12_2: ; in Loop: Header=BB12_1 Depth=1 ldur w8, [x29, #-12] ; implicit-def: $x10 mov x10, x8 ldur x8, [x29, #-8] ldursw x9, [x29, #-12] mov x11, #40 mul x9, x9, x11 add x8, x8, x9 mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x0, l_.str.7@PAGE add x0, x0, l_.str.7@PAGEOFF bl _printf ldur w8, [x29, #-12] mov w10, #3 sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 subs w8, w8, #2 cset w8, ne tbnz w8, #0, LBB12_4 b LBB12_3 LBB12_3: ; in Loop: Header=BB12_1 Depth=1 adrp x0, l_.str.8@PAGE add x0, x0, l_.str.8@PAGEOFF bl _printf b LBB12_4 LBB12_4: ; in Loop: Header=BB12_1 Depth=1 b LBB12_5 LBB12_5: ; in Loop: Header=BB12_1 Depth=1 ldur w8, [x29, #-12] add w8, w8, #1 stur w8, [x29, #-12] b LBB12_1 LBB12_6: adrp x0, l_.str.8@PAGE add x0, x0, l_.str.8@PAGEOFF bl _printf mov w0, #1 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _menu ; -- Begin function menu .p2align 2 _menu: ; @menu .cfi_startproc ; %bb.0: stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill .cfi_def_cfa_offset 16 mov x29, sp .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x0, l_.str.9@PAGE add x0, x0, l_.str.9@PAGEOFF bl _printf adrp x0, l_.str.10@PAGE add x0, x0, l_.str.10@PAGEOFF bl _printf adrp x0, l_.str.11@PAGE add x0, x0, l_.str.11@PAGEOFF bl _printf adrp x0, l_.str.12@PAGE add x0, x0, l_.str.12@PAGEOFF bl _printf adrp x0, l_.str.13@PAGE add x0, x0, l_.str.13@PAGEOFF bl _printf mov w0, #1 ldp x29, x30, [sp], #16 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .globl _kernel ; -- Begin function kernel .p2align 2 _kernel: ; @kernel .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, #3696 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] str x0, [sp, #48] str x1, [sp, #40] str wzr, [sp, #28] ldr x1, [sp, #48] ldr x3, [sp, #40] add x0, sp, #2588 add x2, sp, #88 str x2, [sp, #8] ; 8-byte Folded Spill bl _readfile ldr x1, [sp, #8] ; 8-byte Folded Reload ldr x0, [sp, #48] bl _creategraph b LBB14_1 LBB14_1: ; =>This Loop Header: Depth=1 ; Child Loop BB14_24 Depth 2 ; Child Loop BB14_16 Depth 2 ; Child Loop BB14_8 Depth 2 ldr w8, [sp, #28] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB14_34 b LBB14_2 LBB14_2: ; in Loop: Header=BB14_1 Depth=1 bl _menu adrp x0, l_.str.14@PAGE add x0, x0, l_.str.14@PAGEOFF bl _printf add x0, sp, #56 bl _getint str w0, [sp, #32] ldr w8, [sp, #32] subs w8, w8, #1 ; kill: def $x8 killed $w8 str x8, [sp] ; 8-byte Folded Spill subs x8, x8, #3 cset w8, hi tbnz w8, #0, LBB14_32 ; %bb.3: ; in Loop: Header=BB14_1 Depth=1 ldr x11, [sp] ; 8-byte Folded Reload adrp x10, lJTI14_0@PAGE add x10, x10, lJTI14_0@PAGEOFF Ltmp4: adr x8, Ltmp4 ldrsw x9, [x10, x11, lsl #2] add x8, x8, x9 br x8 LBB14_4: ; in Loop: Header=BB14_1 Depth=1 add x0, sp, #2588 bl _citylist adrp x0, l_.str.15@PAGE add x0, x0, l_.str.15@PAGEOFF bl _printf add x0, sp, #56 bl _getint str w0, [sp, #24] ldr w8, [sp, #24] subs w8, w8, #25 cset w8, ge tbnz w8, #0, LBB14_6 b LBB14_5 LBB14_5: ; in Loop: Header=BB14_1 Depth=1 ldr w8, [sp, #24] subs w8, w8, #0 cset w8, ge tbnz w8, #0, LBB14_7 b LBB14_6 LBB14_6: ; in Loop: Header=BB14_1 Depth=1 adrp x0, l_.str.16@PAGE add x0, x0, l_.str.16@PAGEOFF bl _printf b LBB14_33 LBB14_7: ; in Loop: Header=BB14_1 Depth=1 str wzr, [sp, #36] b LBB14_8 LBB14_8: ; Parent Loop BB14_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #36] subs w8, w8, #25 cset w8, ge tbnz w8, #0, LBB14_11 b LBB14_9 LBB14_9: ; in Loop: Header=BB14_8 Depth=2 ldrsw x10, [sp, #36] sub x9, x29, #124 mov w8, #0 str w8, [x9, x10, lsl #2] b LBB14_10 LBB14_10: ; in Loop: Header=BB14_8 Depth=2 ldr w8, [sp, #36] add w8, w8, #1 str w8, [sp, #36] b LBB14_8 LBB14_11: ; in Loop: Header=BB14_1 Depth=1 adrp x0, l_.str.17@PAGE add x0, x0, l_.str.17@PAGEOFF bl _printf adrp x0, l_.str.18@PAGE add x0, x0, l_.str.18@PAGEOFF bl _printf ldr x0, [sp, #48] ldr w1, [sp, #24] sub x2, x29, #124 add x3, sp, #2588 bl _depthfirstsearch adrp x0, l_.str.19@PAGE add x0, x0, l_.str.19@PAGEOFF bl _printf b LBB14_33 LBB14_12: ; in Loop: Header=BB14_1 Depth=1 add x0, sp, #2588 bl _citylist adrp x0, l_.str.15@PAGE add x0, x0, l_.str.15@PAGEOFF bl _printf add x0, sp, #56 bl _getint str w0, [sp, #24] ldr w8, [sp, #24] subs w8, w8, #25 cset w8, ge tbnz w8, #0, LBB14_14 b LBB14_13 LBB14_13: ; in Loop: Header=BB14_1 Depth=1 ldr w8, [sp, #24] subs w8, w8, #0 cset w8, ge tbnz w8, #0, LBB14_15 b LBB14_14 LBB14_14: ; in Loop: Header=BB14_1 Depth=1 adrp x0, l_.str.16@PAGE add x0, x0, l_.str.16@PAGEOFF bl _printf b LBB14_33 LBB14_15: ; in Loop: Header=BB14_1 Depth=1 str wzr, [sp, #36] b LBB14_16 LBB14_16: ; Parent Loop BB14_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #36] subs w8, w8, #25 cset w8, ge tbnz w8, #0, LBB14_19 b LBB14_17 LBB14_17: ; in Loop: Header=BB14_16 Depth=2 ldrsw x10, [sp, #36] sub x9, x29, #124 mov w8, #0 str w8, [x9, x10, lsl #2] b LBB14_18 LBB14_18: ; in Loop: Header=BB14_16 Depth=2 ldr w8, [sp, #36] add w8, w8, #1 str w8, [sp, #36] b LBB14_16 LBB14_19: ; in Loop: Header=BB14_1 Depth=1 adrp x0, l_.str.20@PAGE add x0, x0, l_.str.20@PAGEOFF bl _printf adrp x0, l_.str.18@PAGE add x0, x0, l_.str.18@PAGEOFF bl _printf ldr x0, [sp, #48] ldr w1, [sp, #24] sub x2, x29, #124 add x3, sp, #2588 bl _breadthfirstsearch adrp x0, l_.str.19@PAGE add x0, x0, l_.str.19@PAGEOFF bl _printf b LBB14_33 LBB14_20: ; in Loop: Header=BB14_1 Depth=1 add x0, sp, #2588 bl _citylist adrp x0, l_.str.15@PAGE add x0, x0, l_.str.15@PAGEOFF bl _printf add x0, sp, #56 bl _getint str w0, [sp, #24] ldr w8, [sp, #24] subs w8, w8, #25 cset w8, ge tbnz w8, #0, LBB14_22 b LBB14_21 LBB14_21: ; in Loop: Header=BB14_1 Depth=1 ldr w8, [sp, #24] subs w8, w8, #0 cset w8, ge tbnz w8, #0, LBB14_23 b LBB14_22 LBB14_22: ; in Loop: Header=BB14_1 Depth=1 adrp x0, l_.str.16@PAGE add x0, x0, l_.str.16@PAGEOFF bl _printf b LBB14_33 LBB14_23: ; in Loop: Header=BB14_1 Depth=1 str wzr, [sp, #36] b LBB14_24 LBB14_24: ; Parent Loop BB14_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #36] subs w8, w8, #25 cset w8, ge tbnz w8, #0, LBB14_27 b LBB14_25 LBB14_25: ; in Loop: Header=BB14_24 Depth=2 ldrsw x10, [sp, #36] sub x9, x29, #124 mov w8, #0 str w8, [x9, x10, lsl #2] b LBB14_26 LBB14_26: ; in Loop: Header=BB14_24 Depth=2 ldr w8, [sp, #36] add w8, w8, #1 str w8, [sp, #36] b LBB14_24 LBB14_27: ; in Loop: Header=BB14_1 Depth=1 add x0, sp, #2588 bl _citylist adrp x0, l_.str.21@PAGE add x0, x0, l_.str.21@PAGEOFF bl _printf add x0, sp, #56 bl _getint str w0, [sp, #20] ldr w8, [sp, #20] subs w8, w8, #25 cset w8, ge tbnz w8, #0, LBB14_29 b LBB14_28 LBB14_28: ; in Loop: Header=BB14_1 Depth=1 ldr w8, [sp, #20] subs w8, w8, #0 cset w8, ge tbnz w8, #0, LBB14_30 b LBB14_29 LBB14_29: ; in Loop: Header=BB14_1 Depth=1 adrp x0, l_.str.16@PAGE add x0, x0, l_.str.16@PAGEOFF bl _printf b LBB14_33 LBB14_30: ; in Loop: Header=BB14_1 Depth=1 adrp x0, l_.str.22@PAGE add x0, x0, l_.str.22@PAGEOFF bl _printf adrp x0, l_.str.18@PAGE add x0, x0, l_.str.18@PAGEOFF bl _printf ldr x0, [sp, #48] ldr w1, [sp, #24] ldr w2, [sp, #20] sub x3, x29, #124 add x4, sp, #2588 bl _origintodestination adrp x0, l_.str.19@PAGE add x0, x0, l_.str.19@PAGEOFF bl _printf b LBB14_33 LBB14_31: ; in Loop: Header=BB14_1 Depth=1 mov w8, #1 str w8, [sp, #28] b LBB14_33 LBB14_32: ; in Loop: Header=BB14_1 Depth=1 adrp x0, l_.str.23@PAGE add x0, x0, l_.str.23@PAGEOFF bl _printf b LBB14_33 LBB14_33: ; in Loop: Header=BB14_1 Depth=1 b LBB14_1 LBB14_34: 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, LBB14_36 b LBB14_35 LBB14_35: bl ___stack_chk_fail LBB14_36: mov w0, #1 add sp, sp, #3696 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x28, x27, [sp], #32 ; 16-byte Folded Reload ret .cfi_endproc .p2align 2 lJTI14_0: .long LBB14_4-Ltmp4 .long LBB14_12-Ltmp4 .long LBB14_20-Ltmp4 .long LBB14_31-Ltmp4 ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: stp x28, x27, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w27, -24 .cfi_offset w28, -32 mov w9, #16416 adrp x16, ___chkstk_darwin@GOTPAGE ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF] blr x16 sub sp, sp, #4, lsl #12 ; =16384 sub sp, sp, #32 sub x8, x29, #24 str x8, [sp, #8] ; 8-byte Folded Spill str wzr, [x8, #4] str w0, [x8] stur x1, [x29, #-32] ldur x8, [x29, #-32] ldr x8, [x8, #8] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB15_2 b LBB15_1 LBB15_1: adrp x0, l_.str.24@PAGE add x0, x0, l_.str.24@PAGEOFF bl _printf adrp x0, l_.str.25@PAGE add x0, x0, l_.str.25@PAGEOFF bl _printf ldr x8, [sp, #8] ; 8-byte Folded Reload str wzr, [x8, #4] b LBB15_3 LBB15_2: ldur x8, [x29, #-32] ldr x1, [x8, #8] add x0, sp, #16 bl _kernel ldr x9, [sp, #8] ; 8-byte Folded Reload mov w8, #1 str w8, [x9, #4] b LBB15_3 LBB15_3: ldr x8, [sp, #8] ; 8-byte Folded Reload ldr w0, [x8, #4] add sp, sp, #4, lsl #12 ; =16384 add sp, sp, #32 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x28, x27, [sp], #32 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "queue full" l_.str.1: ; @.str.1 .asciz "queue empty" l_.str.2: ; @.str.2 .asciz "[%s]->" l_.str.3: ; @.str.3 .asciz "r" l_.str.4: ; @.str.4 .asciz "%s %f\302\260%f'N %f\302\260%f'E" l_.str.5: ; @.str.5 .asciz "%d" l_.str.6: ; @.str.6 .asciz "City number:\n" l_.str.7: ; @.str.7 .asciz "%d:%10s\t\t" l_.str.8: ; @.str.8 .asciz "\n" l_.str.9: ; @.str.9 .asciz "+++++++ MENU ++++++\n" l_.str.10: ; @.str.10 .asciz "1. Depth First Search\n" l_.str.11: ; @.str.11 .asciz "2. Breadth First Search\n" l_.str.12: ; @.str.12 .asciz "3. Depth First Search with Origin to Destination\n" l_.str.13: ; @.str.13 .asciz "4. Quit\n" l_.str.14: ; @.str.14 .asciz "Input:" l_.str.15: ; @.str.15 .asciz "input number for start:" l_.str.16: ; @.str.16 .asciz "Error Input!\n" l_.str.17: ; @.str.17 .asciz "Depth First Search :\n" l_.str.18: ; @.str.18 .asciz "Begin->" l_.str.19: ; @.str.19 .asciz "End\n" l_.str.20: ; @.str.20 .asciz "Breadth First Search :\n" l_.str.21: ; @.str.21 .asciz "input number for end:" l_.str.22: ; @.str.22 .asciz "Depth First Search with Origin to Destination:\n" l_.str.23: ; @.str.23 .asciz "Error Input!!\n" l_.str.24: ; @.str.24 .asciz "No file\n" l_.str.25: ; @.str.25 .asciz "EX: ./hw3-17 chcities-location.txt\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _getint ## -- Begin function getint .p2align 4, 0x90 _getint: ## @getint .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) movq -8(%rbp), %rdi callq _gets movq -8(%rbp), %rdi callq _atol ## kill: def $eax killed $eax killed $rax movl %eax, -12(%rbp) movl -12(%rbp), %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _initqueue ## -- Begin function initqueue .p2align 4, 0x90 _initqueue: ## @initqueue .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 $0, 4100(%rax) movq -8(%rbp), %rax movl $0, 4096(%rax) movl $1, %eax popq %rbp retq .cfi_endproc ## -- End function .globl _enqueue ## -- Begin function enqueue .p2align 4, 0x90 _enqueue: ## @enqueue .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -16(%rbp) movl %esi, -20(%rbp) movq -16(%rbp), %rax movl 4100(%rax), %eax addl $1, %eax movl $1024, %ecx ## imm = 0x400 cltd idivl %ecx movq -16(%rbp), %rax cmpl 4096(%rax), %edx jne LBB2_2 ## %bb.1: leaq L_.str(%rip), %rdi movb $0, %al callq _printf movl $0, -4(%rbp) jmp LBB2_4 LBB2_2: movl -20(%rbp), %edx movq -16(%rbp), %rax movq -16(%rbp), %rcx movslq 4100(%rcx), %rcx movl %edx, (%rax,%rcx,4) movq -16(%rbp), %rax movl 4100(%rax), %eax addl $1, %eax movl $1024, %ecx ## imm = 0x400 cltd idivl %ecx movq -16(%rbp), %rax movl %edx, 4100(%rax) ## %bb.3: movl $1, -4(%rbp) LBB2_4: movl -4(%rbp), %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _dequeue ## -- Begin function dequeue .p2align 4, 0x90 _dequeue: ## @dequeue .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -16(%rbp) movq -16(%rbp), %rax movl 4096(%rax), %eax movq -16(%rbp), %rcx cmpl 4100(%rcx), %eax jne LBB3_2 ## %bb.1: leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf movl $0, -4(%rbp) jmp LBB3_4 LBB3_2: movq -16(%rbp), %rax movq -16(%rbp), %rcx movslq 4096(%rcx), %rcx movl (%rax,%rcx,4), %eax movl %eax, -20(%rbp) movq -16(%rbp), %rax movl 4096(%rax), %eax addl $1, %eax movl $1024, %ecx ## imm = 0x400 cltd idivl %ecx movq -16(%rbp), %rax movl %edx, 4096(%rax) ## %bb.3: movl -20(%rbp), %eax movl %eax, -4(%rbp) LBB3_4: movl -4(%rbp), %eax addq $32, %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 movl 4096(%rax), %eax movq -8(%rbp), %rcx cmpl 4100(%rcx), %eax sete %al andb $1, %al movzbl %al, %eax popq %rbp retq .cfi_endproc ## -- End function .globl _depthfirstsearch ## -- Begin function depthfirstsearch .p2align 4, 0x90 _depthfirstsearch: ## @depthfirstsearch .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) movq %rdx, -24(%rbp) movq %rcx, -32(%rbp) movq -32(%rbp), %rsi movq -8(%rbp), %rax movslq -12(%rbp), %rcx shlq $4, %rcx addq %rcx, %rax movslq (%rax), %rax imulq $40, %rax, %rax addq %rax, %rsi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf movq -24(%rbp), %rax movslq -12(%rbp), %rcx movl $1, (%rax,%rcx,4) movq -8(%rbp), %rax movslq -12(%rbp), %rcx shlq $4, %rcx addq %rcx, %rax movq 8(%rax), %rax movq %rax, -40(%rbp) LBB5_1: ## =>This Inner Loop Header: Depth=1 cmpq $0, -40(%rbp) je LBB5_6 ## %bb.2: ## in Loop: Header=BB5_1 Depth=1 movq -24(%rbp), %rax movq -40(%rbp), %rcx movslq (%rcx), %rcx cmpl $0, (%rax,%rcx,4) jne LBB5_4 ## %bb.3: ## in Loop: Header=BB5_1 Depth=1 movq -8(%rbp), %rdi movq -40(%rbp), %rax movl (%rax), %esi movq -24(%rbp), %rdx movq -32(%rbp), %rcx callq _depthfirstsearch LBB5_4: ## in Loop: Header=BB5_1 Depth=1 jmp LBB5_5 LBB5_5: ## in Loop: Header=BB5_1 Depth=1 movq -40(%rbp), %rax movq 8(%rax), %rax movq %rax, -40(%rbp) jmp LBB5_1 LBB5_6: movl $1, %eax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _breadthfirstsearch ## -- Begin function breadthfirstsearch .p2align 4, 0x90 _breadthfirstsearch: ## @breadthfirstsearch .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl $4144, %eax ## imm = 0x1030 callq ____chkstk_darwin subq %rax, %rsp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) movq %rdx, -24(%rbp) movq %rcx, -32(%rbp) leaq -4136(%rbp), %rdi callq _initqueue movq -32(%rbp), %rsi movq -8(%rbp), %rax movslq -12(%rbp), %rcx shlq $4, %rcx addq %rcx, %rax movslq (%rax), %rax imulq $40, %rax, %rax addq %rax, %rsi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf movq -24(%rbp), %rax movslq -12(%rbp), %rcx movl $1, (%rax,%rcx,4) movl -12(%rbp), %esi leaq -4136(%rbp), %rdi callq _enqueue LBB6_1: ## =>This Loop Header: Depth=1 ## Child Loop BB6_3 Depth 2 leaq -4136(%rbp), %rdi callq _isempty cmpl $0, %eax setne %al xorb $-1, %al testb $1, %al jne LBB6_2 jmp LBB6_8 LBB6_2: ## in Loop: Header=BB6_1 Depth=1 leaq -4136(%rbp), %rdi callq _dequeue movl %eax, -12(%rbp) movq -8(%rbp), %rax movslq -12(%rbp), %rcx shlq $4, %rcx addq %rcx, %rax movq 8(%rax), %rax movq %rax, -4144(%rbp) LBB6_3: ## Parent Loop BB6_1 Depth=1 ## => This Inner Loop Header: Depth=2 cmpq $0, -4144(%rbp) je LBB6_7 ## %bb.4: ## in Loop: Header=BB6_3 Depth=2 movq -24(%rbp), %rax movq -4144(%rbp), %rcx movslq (%rcx), %rcx cmpl $0, (%rax,%rcx,4) jne LBB6_6 ## %bb.5: ## in Loop: Header=BB6_3 Depth=2 movq -32(%rbp), %rsi movq -8(%rbp), %rax movq -4144(%rbp), %rcx movslq (%rcx), %rcx shlq $4, %rcx addq %rcx, %rax movslq (%rax), %rax imulq $40, %rax, %rax addq %rax, %rsi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf movq -24(%rbp), %rax movq -4144(%rbp), %rcx movslq (%rcx), %rcx movl $1, (%rax,%rcx,4) movq -4144(%rbp), %rax movl (%rax), %esi leaq -4136(%rbp), %rdi callq _enqueue LBB6_6: ## in Loop: Header=BB6_3 Depth=2 movq -4144(%rbp), %rax movq 8(%rax), %rax movq %rax, -4144(%rbp) jmp LBB6_3 LBB6_7: ## in Loop: Header=BB6_1 Depth=1 jmp LBB6_1 LBB6_8: movl $1, %eax addq $4144, %rsp ## imm = 0x1030 popq %rbp retq .cfi_endproc ## -- End function .globl _vector ## -- Begin function vector .p2align 4, 0x90 _vector: ## @vector .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) movq %rdx, -24(%rbp) movq -8(%rbp), %rax movss 36(%rax), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, -28(%rbp) movq -16(%rbp), %rax movss 36(%rax), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, -32(%rbp) movq -8(%rbp), %rax movss 32(%rax), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, -36(%rbp) movq -16(%rbp), %rax movss 32(%rax), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, -40(%rbp) movss -32(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero subss -28(%rbp), %xmm0 movq -24(%rbp), %rax movss %xmm0, 36(%rax) movss -40(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero subss -36(%rbp), %xmm0 movq -24(%rbp), %rax movss %xmm0, 32(%rax) movq -24(%rbp), %rax popq %rbp retq .cfi_endproc ## -- End function .globl _angle ## -- Begin function angle .p2align 4, 0x90 _angle: ## @angle .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 movss 36(%rax), %xmm0 ## xmm0 = mem[0],zero,zero,zero movq -16(%rbp), %rax movss 36(%rax), %xmm2 ## xmm2 = mem[0],zero,zero,zero movq -8(%rbp), %rax movss 32(%rax), %xmm1 ## xmm1 = mem[0],zero,zero,zero movq -16(%rbp), %rax mulss 32(%rax), %xmm1 mulss %xmm2, %xmm0 addss %xmm1, %xmm0 cvtss2sd %xmm0, %xmm0 movq -8(%rbp), %rax movss 36(%rax), %xmm1 ## xmm1 = mem[0],zero,zero,zero movq -8(%rbp), %rax movss 36(%rax), %xmm3 ## xmm3 = mem[0],zero,zero,zero movq -8(%rbp), %rax movss 32(%rax), %xmm2 ## xmm2 = mem[0],zero,zero,zero movq -8(%rbp), %rax mulss 32(%rax), %xmm2 mulss %xmm3, %xmm1 addss %xmm2, %xmm1 cvtss2sd %xmm1, %xmm1 sqrtsd %xmm1, %xmm1 movq -16(%rbp), %rax movss 36(%rax), %xmm2 ## xmm2 = mem[0],zero,zero,zero movq -16(%rbp), %rax movss 36(%rax), %xmm4 ## xmm4 = mem[0],zero,zero,zero movq -16(%rbp), %rax movss 32(%rax), %xmm3 ## xmm3 = mem[0],zero,zero,zero movq -16(%rbp), %rax mulss 32(%rax), %xmm3 mulss %xmm4, %xmm2 addss %xmm3, %xmm2 cvtss2sd %xmm2, %xmm2 sqrtsd %xmm2, %xmm2 mulsd %xmm2, %xmm1 divsd %xmm1, %xmm0 cvtsd2ss %xmm0, %xmm0 movss %xmm0, -20(%rbp) movss -20(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero popq %rbp retq .cfi_endproc ## -- End function .globl _origintodestination ## -- Begin function origintodestination .p2align 4, 0x90 _origintodestination: ## @origintodestination .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $96, %rsp movq %rdi, -16(%rbp) movl %esi, -20(%rbp) movl %edx, -24(%rbp) movq %rcx, -32(%rbp) movq %r8, -40(%rbp) movl $40, %edi callq _malloc movq %rax, -64(%rbp) movl $40, %edi callq _malloc movq %rax, -72(%rbp) movl $1, -76(%rbp) movq -40(%rbp), %rdi movslq -20(%rbp), %rax imulq $40, %rax, %rax addq %rax, %rdi movq -40(%rbp), %rsi movslq -24(%rbp), %rax imulq $40, %rax, %rax addq %rax, %rsi movq -72(%rbp), %rdx callq _vector movq %rax, -72(%rbp) movq -16(%rbp), %rax movslq -20(%rbp), %rcx shlq $4, %rcx addq %rcx, %rax movq 8(%rax), %rax movq %rax, -48(%rbp) movq -40(%rbp), %rsi movq -16(%rbp), %rax movslq -20(%rbp), %rcx shlq $4, %rcx addq %rcx, %rax movslq (%rax), %rax imulq $40, %rax, %rax addq %rax, %rsi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf movq -32(%rbp), %rax movslq -20(%rbp), %rcx movl $1, (%rax,%rcx,4) movl -20(%rbp), %eax cmpl -24(%rbp), %eax jne LBB9_2 ## %bb.1: movl $-1, -4(%rbp) jmp LBB9_24 LBB9_2: jmp LBB9_3 LBB9_3: ## =>This Loop Header: Depth=1 ## Child Loop BB9_7 Depth 2 cmpl $0, -76(%rbp) jl LBB9_23 ## %bb.4: ## in Loop: Header=BB9_3 Depth=1 cmpq $0, -48(%rbp) jne LBB9_6 ## %bb.5: movl $0, -4(%rbp) jmp LBB9_24 LBB9_6: ## in Loop: Header=BB9_3 Depth=1 movl $0, -88(%rbp) movq -16(%rbp), %rax movslq -20(%rbp), %rcx shlq $4, %rcx addq %rcx, %rax movq 8(%rax), %rax movq %rax, -56(%rbp) LBB9_7: ## Parent Loop BB9_3 Depth=1 ## => This Inner Loop Header: Depth=2 cmpq $0, -56(%rbp) je LBB9_16 ## %bb.8: ## in Loop: Header=BB9_7 Depth=2 movq -32(%rbp), %rax movq -56(%rbp), %rcx movslq (%rcx), %rcx cmpl $0, (%rax,%rcx,4) jne LBB9_15 ## %bb.9: ## in Loop: Header=BB9_7 Depth=2 movq -40(%rbp), %rdi movslq -20(%rbp), %rax imulq $40, %rax, %rax addq %rax, %rdi movq -40(%rbp), %rsi movq -56(%rbp), %rax movslq (%rax), %rax imulq $40, %rax, %rax addq %rax, %rsi movq -64(%rbp), %rdx callq _vector movq %rax, -64(%rbp) movl -88(%rbp), %eax addl $1, %eax movl %eax, -88(%rbp) cmpl $1, -88(%rbp) jne LBB9_11 ## %bb.10: ## in Loop: Header=BB9_7 Depth=2 movq -56(%rbp), %rax movl (%rax), %eax movl %eax, -80(%rbp) movq -64(%rbp), %rdi movq -72(%rbp), %rsi callq _angle movss %xmm0, -84(%rbp) jmp LBB9_14 LBB9_11: ## in Loop: Header=BB9_7 Depth=2 movq -64(%rbp), %rdi movq -72(%rbp), %rsi callq _angle ucomiss -84(%rbp), %xmm0 jbe LBB9_13 ## %bb.12: ## in Loop: Header=BB9_7 Depth=2 movq -64(%rbp), %rdi movq -72(%rbp), %rsi callq _angle movss %xmm0, -84(%rbp) movq -56(%rbp), %rax movl (%rax), %eax movl %eax, -80(%rbp) LBB9_13: ## in Loop: Header=BB9_7 Depth=2 jmp LBB9_14 LBB9_14: ## in Loop: Header=BB9_7 Depth=2 jmp LBB9_15 LBB9_15: ## in Loop: Header=BB9_7 Depth=2 movq -56(%rbp), %rax movq 8(%rax), %rax movq %rax, -56(%rbp) jmp LBB9_7 LBB9_16: ## in Loop: Header=BB9_3 Depth=1 cmpl $0, -88(%rbp) jne LBB9_18 ## %bb.17: movl $0, -4(%rbp) jmp LBB9_24 LBB9_18: ## in Loop: Header=BB9_3 Depth=1 movq -16(%rbp), %rdi movl -80(%rbp), %esi movl -24(%rbp), %edx movq -32(%rbp), %rcx movq -40(%rbp), %r8 callq _origintodestination movl %eax, -76(%rbp) cmpl $0, -76(%rbp) jne LBB9_20 ## %bb.19: ## in Loop: Header=BB9_3 Depth=1 movq -40(%rbp), %rsi movq -16(%rbp), %rax movslq -20(%rbp), %rcx shlq $4, %rcx addq %rcx, %rax movslq (%rax), %rax imulq $40, %rax, %rax addq %rax, %rsi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf LBB9_20: ## in Loop: Header=BB9_3 Depth=1 cmpl $-1, -76(%rbp) jne LBB9_22 ## %bb.21: movl $-1, -4(%rbp) jmp LBB9_24 LBB9_22: ## in Loop: Header=BB9_3 Depth=1 movq -48(%rbp), %rax movq 8(%rax), %rax movq %rax, -48(%rbp) jmp LBB9_3 LBB9_23: movl $1, -4(%rbp) LBB9_24: movl -4(%rbp), %eax addq $96, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _creategraph ## -- Begin function creategraph .p2align 4, 0x90 _creategraph: ## @creategraph .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) movl $0, -20(%rbp) LBB10_1: ## =>This Inner Loop Header: Depth=1 cmpl $25, -20(%rbp) jge LBB10_4 ## %bb.2: ## in Loop: Header=BB10_1 Depth=1 movl -20(%rbp), %ecx movq -8(%rbp), %rax movslq -20(%rbp), %rdx shlq $4, %rdx addq %rdx, %rax movl %ecx, (%rax) movq -8(%rbp), %rax movslq -20(%rbp), %rcx shlq $4, %rcx addq %rcx, %rax movq $0, 8(%rax) ## %bb.3: ## in Loop: Header=BB10_1 Depth=1 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB10_1 LBB10_4: movl $0, -20(%rbp) LBB10_5: ## =>This Loop Header: Depth=1 ## Child Loop BB10_7 Depth 2 cmpl $25, -20(%rbp) jge LBB10_14 ## %bb.6: ## in Loop: Header=BB10_5 Depth=1 movl $24, -24(%rbp) LBB10_7: ## Parent Loop BB10_5 Depth=1 ## => This Inner Loop Header: Depth=2 cmpl $0, -24(%rbp) jl LBB10_12 ## %bb.8: ## in Loop: Header=BB10_7 Depth=2 movq -16(%rbp), %rax movslq -20(%rbp), %rcx imulq $100, %rcx, %rcx addq %rcx, %rax movslq -24(%rbp), %rcx cmpl $0, (%rax,%rcx,4) jg LBB10_10 ## %bb.9: ## in Loop: Header=BB10_7 Depth=2 jmp LBB10_11 LBB10_10: ## in Loop: Header=BB10_7 Depth=2 movl $16, %edi callq _malloc movq %rax, -32(%rbp) movl -24(%rbp), %ecx movq -32(%rbp), %rax movl %ecx, (%rax) movq -8(%rbp), %rax movslq -20(%rbp), %rcx shlq $4, %rcx addq %rcx, %rax movq 8(%rax), %rcx movq -32(%rbp), %rax movq %rcx, 8(%rax) movq -32(%rbp), %rcx movq -8(%rbp), %rax movslq -20(%rbp), %rdx shlq $4, %rdx addq %rdx, %rax movq %rcx, 8(%rax) LBB10_11: ## in Loop: Header=BB10_7 Depth=2 movl -24(%rbp), %eax addl $-1, %eax movl %eax, -24(%rbp) jmp LBB10_7 LBB10_12: ## in Loop: Header=BB10_5 Depth=1 jmp LBB10_13 LBB10_13: ## in Loop: Header=BB10_5 Depth=1 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB10_5 LBB10_14: movl $1, %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__literal4,4byte_literals .p2align 2 ## -- Begin function readfile LCPI11_0: .long 0x42700000 ## float 60 .section __TEXT,__text,regular,pure_instructions .globl _readfile .p2align 4, 0x90 _readfile: ## @readfile .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $128, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movq %rdi, -72(%rbp) movq %rsi, -80(%rbp) movq %rdx, -88(%rbp) movq %rcx, -96(%rbp) movq -96(%rbp), %rdi leaq L_.str.3(%rip), %rsi callq _fopen movq %rax, -104(%rbp) cmpq $0, %rax je LBB11_14 ## %bb.1: movl $0, -108(%rbp) LBB11_2: ## =>This Inner Loop Header: Depth=1 cmpl $25, -108(%rbp) jge LBB11_5 ## %bb.3: ## in Loop: Header=BB11_2 Depth=1 movq -104(%rbp), %rdi leaq -48(%rbp), %rdx leaq -64(%rbp), %rcx leaq -64(%rbp), %r8 addq $4, %r8 leaq -64(%rbp), %r9 addq $8, %r9 leaq -64(%rbp), %rax addq $12, %rax leaq L_.str.4(%rip), %rsi movq %rax, (%rsp) movb $0, %al callq _fscanf movq -72(%rbp), %rdi movslq -108(%rbp), %rax imulq $40, %rax, %rax addq %rax, %rdi leaq -48(%rbp), %rsi movl $32, %edx callq ___strcpy_chk movss -64(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss -60(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero movss LCPI11_0(%rip), %xmm2 ## xmm2 = mem[0],zero,zero,zero divss %xmm2, %xmm1 addss %xmm1, %xmm0 movq -72(%rbp), %rax movslq -108(%rbp), %rcx imulq $40, %rcx, %rcx addq %rcx, %rax movss %xmm0, 32(%rax) movss -56(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss -52(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero movss LCPI11_0(%rip), %xmm2 ## xmm2 = mem[0],zero,zero,zero divss %xmm2, %xmm1 addss %xmm1, %xmm0 movq -72(%rbp), %rax movslq -108(%rbp), %rcx imulq $40, %rcx, %rcx addq %rcx, %rax movss %xmm0, 36(%rax) ## %bb.4: ## in Loop: Header=BB11_2 Depth=1 movl -108(%rbp), %eax addl $1, %eax movl %eax, -108(%rbp) jmp LBB11_2 LBB11_5: movl $0, -108(%rbp) LBB11_6: ## =>This Loop Header: Depth=1 ## Child Loop BB11_8 Depth 2 cmpl $25, -108(%rbp) jge LBB11_13 ## %bb.7: ## in Loop: Header=BB11_6 Depth=1 movl $0, -112(%rbp) LBB11_8: ## Parent Loop BB11_6 Depth=1 ## => This Inner Loop Header: Depth=2 cmpl $25, -112(%rbp) jge LBB11_11 ## %bb.9: ## in Loop: Header=BB11_8 Depth=2 movq -104(%rbp), %rdi leaq L_.str.5(%rip), %rsi leaq -116(%rbp), %rdx movb $0, %al callq _fscanf movl -116(%rbp), %edx movq -88(%rbp), %rax movslq -108(%rbp), %rcx imulq $100, %rcx, %rcx addq %rcx, %rax movslq -112(%rbp), %rcx movl %edx, (%rax,%rcx,4) ## %bb.10: ## in Loop: Header=BB11_8 Depth=2 movl -112(%rbp), %eax addl $1, %eax movl %eax, -112(%rbp) jmp LBB11_8 LBB11_11: ## in Loop: Header=BB11_6 Depth=1 jmp LBB11_12 LBB11_12: ## in Loop: Header=BB11_6 Depth=1 movl -108(%rbp), %eax addl $1, %eax movl %eax, -108(%rbp) jmp LBB11_6 LBB11_13: jmp LBB11_14 LBB11_14: movq -104(%rbp), %rdi callq _fclose movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB11_16 ## %bb.15: movl $1, %eax addq $128, %rsp popq %rbp retq LBB11_16: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _citylist ## -- Begin function citylist .p2align 4, 0x90 _citylist: ## @citylist .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) leaq L_.str.6(%rip), %rdi movb $0, %al callq _printf movl $0, -12(%rbp) LBB12_1: ## =>This Inner Loop Header: Depth=1 cmpl $25, -12(%rbp) jge LBB12_6 ## %bb.2: ## in Loop: Header=BB12_1 Depth=1 movl -12(%rbp), %esi movq -8(%rbp), %rdx movslq -12(%rbp), %rax imulq $40, %rax, %rax addq %rax, %rdx leaq L_.str.7(%rip), %rdi movb $0, %al callq _printf movl -12(%rbp), %eax movl $3, %ecx cltd idivl %ecx cmpl $2, %edx jne LBB12_4 ## %bb.3: ## in Loop: Header=BB12_1 Depth=1 leaq L_.str.8(%rip), %rdi movb $0, %al callq _printf LBB12_4: ## in Loop: Header=BB12_1 Depth=1 jmp LBB12_5 LBB12_5: ## in Loop: Header=BB12_1 Depth=1 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB12_1 LBB12_6: leaq L_.str.8(%rip), %rdi movb $0, %al callq _printf movl $1, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _menu ## -- Begin function menu .p2align 4, 0x90 _menu: ## @menu .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq L_.str.9(%rip), %rdi movb $0, %al callq _printf leaq L_.str.10(%rip), %rdi movb $0, %al callq _printf leaq L_.str.11(%rip), %rdi movb $0, %al callq _printf leaq L_.str.12(%rip), %rdi movb $0, %al callq _printf leaq L_.str.13(%rip), %rdi movb $0, %al callq _printf movl $1, %eax popq %rbp retq .cfi_endproc ## -- End function .globl _kernel ## -- Begin function kernel .p2align 4, 0x90 _kernel: ## @kernel .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $3712, %rsp ## imm = 0xE80 movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movq %rdi, -3672(%rbp) movq %rsi, -3680(%rbp) movl $0, -3692(%rbp) leaq -1120(%rbp), %rdi movq -3672(%rbp), %rsi leaq -3632(%rbp), %rdx movq -3680(%rbp), %rcx callq _readfile movq -3672(%rbp), %rdi leaq -3632(%rbp), %rsi callq _creategraph LBB14_1: ## =>This Loop Header: Depth=1 ## Child Loop BB14_23 Depth 2 ## Child Loop BB14_15 Depth 2 ## Child Loop BB14_7 Depth 2 cmpl $0, -3692(%rbp) setne %al xorb $-1, %al testb $1, %al jne LBB14_2 jmp LBB14_33 LBB14_2: ## in Loop: Header=BB14_1 Depth=1 callq _menu leaq L_.str.14(%rip), %rdi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _printf leaq -3664(%rbp), %rdi callq _getint movl %eax, -3688(%rbp) movl -3688(%rbp), %eax decl %eax movl %eax, %ecx movq %rcx, -3712(%rbp) ## 8-byte Spill subl $3, %eax ja LBB14_31 ## %bb.36: ## in Loop: Header=BB14_1 Depth=1 movq -3712(%rbp), %rax ## 8-byte Reload leaq LJTI14_0(%rip), %rcx movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax LBB14_3: ## in Loop: Header=BB14_1 Depth=1 leaq -1120(%rbp), %rdi callq _citylist leaq L_.str.15(%rip), %rdi movb $0, %al callq _printf leaq -3664(%rbp), %rdi callq _getint movl %eax, -3696(%rbp) cmpl $25, -3696(%rbp) jge LBB14_5 ## %bb.4: ## in Loop: Header=BB14_1 Depth=1 cmpl $0, -3696(%rbp) jge LBB14_6 LBB14_5: ## in Loop: Header=BB14_1 Depth=1 leaq L_.str.16(%rip), %rdi movb $0, %al callq _printf jmp LBB14_32 LBB14_6: ## in Loop: Header=BB14_1 Depth=1 movl $0, -3684(%rbp) LBB14_7: ## Parent Loop BB14_1 Depth=1 ## => This Inner Loop Header: Depth=2 cmpl $25, -3684(%rbp) jge LBB14_10 ## %bb.8: ## in Loop: Header=BB14_7 Depth=2 movslq -3684(%rbp), %rax movl $0, -112(%rbp,%rax,4) ## %bb.9: ## in Loop: Header=BB14_7 Depth=2 movl -3684(%rbp), %eax addl $1, %eax movl %eax, -3684(%rbp) jmp LBB14_7 LBB14_10: ## in Loop: Header=BB14_1 Depth=1 leaq L_.str.17(%rip), %rdi movb $0, %al callq _printf leaq L_.str.18(%rip), %rdi movb $0, %al callq _printf movq -3672(%rbp), %rdi movl -3696(%rbp), %esi leaq -112(%rbp), %rdx leaq -1120(%rbp), %rcx callq _depthfirstsearch leaq L_.str.19(%rip), %rdi movb $0, %al callq _printf jmp LBB14_32 LBB14_11: ## in Loop: Header=BB14_1 Depth=1 leaq -1120(%rbp), %rdi callq _citylist leaq L_.str.15(%rip), %rdi movb $0, %al callq _printf leaq -3664(%rbp), %rdi callq _getint movl %eax, -3696(%rbp) cmpl $25, -3696(%rbp) jge LBB14_13 ## %bb.12: ## in Loop: Header=BB14_1 Depth=1 cmpl $0, -3696(%rbp) jge LBB14_14 LBB14_13: ## in Loop: Header=BB14_1 Depth=1 leaq L_.str.16(%rip), %rdi movb $0, %al callq _printf jmp LBB14_32 LBB14_14: ## in Loop: Header=BB14_1 Depth=1 movl $0, -3684(%rbp) LBB14_15: ## Parent Loop BB14_1 Depth=1 ## => This Inner Loop Header: Depth=2 cmpl $25, -3684(%rbp) jge LBB14_18 ## %bb.16: ## in Loop: Header=BB14_15 Depth=2 movslq -3684(%rbp), %rax movl $0, -112(%rbp,%rax,4) ## %bb.17: ## in Loop: Header=BB14_15 Depth=2 movl -3684(%rbp), %eax addl $1, %eax movl %eax, -3684(%rbp) jmp LBB14_15 LBB14_18: ## in Loop: Header=BB14_1 Depth=1 leaq L_.str.20(%rip), %rdi movb $0, %al callq _printf leaq L_.str.18(%rip), %rdi movb $0, %al callq _printf movq -3672(%rbp), %rdi movl -3696(%rbp), %esi leaq -112(%rbp), %rdx leaq -1120(%rbp), %rcx callq _breadthfirstsearch leaq L_.str.19(%rip), %rdi movb $0, %al callq _printf jmp LBB14_32 LBB14_19: ## in Loop: Header=BB14_1 Depth=1 leaq -1120(%rbp), %rdi callq _citylist leaq L_.str.15(%rip), %rdi movb $0, %al callq _printf leaq -3664(%rbp), %rdi callq _getint movl %eax, -3696(%rbp) cmpl $25, -3696(%rbp) jge LBB14_21 ## %bb.20: ## in Loop: Header=BB14_1 Depth=1 cmpl $0, -3696(%rbp) jge LBB14_22 LBB14_21: ## in Loop: Header=BB14_1 Depth=1 leaq L_.str.16(%rip), %rdi movb $0, %al callq _printf jmp LBB14_32 LBB14_22: ## in Loop: Header=BB14_1 Depth=1 movl $0, -3684(%rbp) LBB14_23: ## Parent Loop BB14_1 Depth=1 ## => This Inner Loop Header: Depth=2 cmpl $25, -3684(%rbp) jge LBB14_26 ## %bb.24: ## in Loop: Header=BB14_23 Depth=2 movslq -3684(%rbp), %rax movl $0, -112(%rbp,%rax,4) ## %bb.25: ## in Loop: Header=BB14_23 Depth=2 movl -3684(%rbp), %eax addl $1, %eax movl %eax, -3684(%rbp) jmp LBB14_23 LBB14_26: ## in Loop: Header=BB14_1 Depth=1 leaq -1120(%rbp), %rdi callq _citylist leaq L_.str.21(%rip), %rdi movb $0, %al callq _printf leaq -3664(%rbp), %rdi callq _getint movl %eax, -3700(%rbp) cmpl $25, -3700(%rbp) jge LBB14_28 ## %bb.27: ## in Loop: Header=BB14_1 Depth=1 cmpl $0, -3700(%rbp) jge LBB14_29 LBB14_28: ## in Loop: Header=BB14_1 Depth=1 leaq L_.str.16(%rip), %rdi movb $0, %al callq _printf jmp LBB14_32 LBB14_29: ## in Loop: Header=BB14_1 Depth=1 leaq L_.str.22(%rip), %rdi movb $0, %al callq _printf leaq L_.str.18(%rip), %rdi movb $0, %al callq _printf movq -3672(%rbp), %rdi movl -3696(%rbp), %esi movl -3700(%rbp), %edx leaq -112(%rbp), %rcx leaq -1120(%rbp), %r8 callq _origintodestination leaq L_.str.19(%rip), %rdi movb $0, %al callq _printf jmp LBB14_32 LBB14_30: ## in Loop: Header=BB14_1 Depth=1 movl $1, -3692(%rbp) jmp LBB14_32 LBB14_31: ## in Loop: Header=BB14_1 Depth=1 leaq L_.str.23(%rip), %rdi movb $0, %al callq _printf LBB14_32: ## in Loop: Header=BB14_1 Depth=1 jmp LBB14_1 LBB14_33: movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB14_35 ## %bb.34: movl $1, %eax addq $3712, %rsp ## imm = 0xE80 popq %rbp retq LBB14_35: callq ___stack_chk_fail ud2 .cfi_endproc .p2align 2, 0x90 .data_region jt32 .set L14_0_set_3, LBB14_3-LJTI14_0 .set L14_0_set_11, LBB14_11-LJTI14_0 .set L14_0_set_19, LBB14_19-LJTI14_0 .set L14_0_set_30, LBB14_30-LJTI14_0 LJTI14_0: .long L14_0_set_3 .long L14_0_set_11 .long L14_0_set_19 .long L14_0_set_30 .end_data_region ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl $16400, %eax ## imm = 0x4010 callq ____chkstk_darwin subq %rax, %rsp movl $0, -4(%rbp) movl %edi, -8(%rbp) movq %rsi, -16(%rbp) movq -16(%rbp), %rax cmpq $0, 8(%rax) jne LBB15_2 ## %bb.1: leaq L_.str.24(%rip), %rdi movb $0, %al callq _printf leaq L_.str.25(%rip), %rdi movb $0, %al callq _printf movl $0, -4(%rbp) jmp LBB15_3 LBB15_2: movq -16(%rbp), %rax movq 8(%rax), %rsi leaq -16400(%rbp), %rdi callq _kernel movl $1, -4(%rbp) LBB15_3: movl -4(%rbp), %eax addq $16400, %rsp ## imm = 0x4010 popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "queue full" L_.str.1: ## @.str.1 .asciz "queue empty" L_.str.2: ## @.str.2 .asciz "[%s]->" L_.str.3: ## @.str.3 .asciz "r" L_.str.4: ## @.str.4 .asciz "%s %f\302\260%f'N %f\302\260%f'E" L_.str.5: ## @.str.5 .asciz "%d" L_.str.6: ## @.str.6 .asciz "City number:\n" L_.str.7: ## @.str.7 .asciz "%d:%10s\t\t" L_.str.8: ## @.str.8 .asciz "\n" L_.str.9: ## @.str.9 .asciz "+++++++ MENU ++++++\n" L_.str.10: ## @.str.10 .asciz "1. Depth First Search\n" L_.str.11: ## @.str.11 .asciz "2. Breadth First Search\n" L_.str.12: ## @.str.12 .asciz "3. Depth First Search with Origin to Destination\n" L_.str.13: ## @.str.13 .asciz "4. Quit\n" L_.str.14: ## @.str.14 .asciz "Input:" L_.str.15: ## @.str.15 .asciz "input number for start:" L_.str.16: ## @.str.16 .asciz "Error Input!\n" L_.str.17: ## @.str.17 .asciz "Depth First Search :\n" L_.str.18: ## @.str.18 .asciz "Begin->" L_.str.19: ## @.str.19 .asciz "End\n" L_.str.20: ## @.str.20 .asciz "Breadth First Search :\n" L_.str.21: ## @.str.21 .asciz "input number for end:" L_.str.22: ## @.str.22 .asciz "Depth First Search with Origin to Destination:\n" L_.str.23: ## @.str.23 .asciz "Error Input!!\n" L_.str.24: ## @.str.24 .asciz "No file\n" L_.str.25: ## @.str.25 .asciz "EX: ./hw3-17 chcities-location.txt\n" .subsections_via_symbols
the_stack_data/132321.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/140766484.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #80 .cfi_def_cfa_offset 80 stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp, #64 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #0 str w8, [sp, #28] ; 4-byte Folded Spill stur wzr, [x29, #-4] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov x9, sp sub x8, x29, #16 str x8, [x9] sub x8, x29, #24 str x8, [x9, #8] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf ldur d0, [x29, #-16] ldur d1, [x29, #-24] fmul d0, d0, d1 str d0, [sp, #32] ldr d0, [sp, #32] mov x8, sp str d0, [x8] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf ldr w0, [sp, #28] ; 4-byte Folded Reload ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Enter two numbers: " l_.str.1: ; @.str.1 .asciz "%lf %lf" l_.str.2: ; @.str.2 .asciz "Product = %.2lf" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl $0, -4(%rbp) leaq L_.str(%rip), %rdi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi leaq -16(%rbp), %rsi leaq -24(%rbp), %rdx movb $0, %al callq _scanf movsd -16(%rbp), %xmm0 ## xmm0 = mem[0],zero mulsd -24(%rbp), %xmm0 movsd %xmm0, -32(%rbp) movsd -32(%rbp), %xmm0 ## xmm0 = mem[0],zero leaq L_.str.2(%rip), %rdi movb $1, %al callq _printf xorl %eax, %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Enter two numbers: " L_.str.1: ## @.str.1 .asciz "%lf %lf" L_.str.2: ## @.str.2 .asciz "Product = %.2lf" .subsections_via_symbols
the_stack_data/132952418.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: ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #432 .cfi_def_cfa_offset 432 stp x28, x27, [sp, #400] ; 16-byte Folded Spill stp x29, x30, [sp, #416] ; 16-byte Folded Spill add x29, sp, #416 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w27, -24 .cfi_offset w28, -32 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] str wzr, [sp, #144] sub x0, x29, #168 sub x1, x29, #72 mov x2, #48 bl _memcpy adrp x8, l___const.main.c1@PAGE add x8, x8, l___const.main.c1@PAGEOFF ldr q0, [x8] str q0, [sp, #112] adrp x8, l___const.main.c2@PAGE add x8, x8, l___const.main.c2@PAGEOFF ldr q0, [x8] str q0, [sp, #96] ldr q0, [sp, #96] str q0, [sp, #112] ldr d0, [sp, #112] ldr d1, [sp, #96] fadd d0, d0, d1 str d0, [sp, #80] ldr d0, [sp, #120] ldr d1, [sp, #104] fadd d0, d0, d1 str d0, [sp, #88] mov x9, sp mov x8, #24 str x8, [x9] mov x8, #8 str x8, [x9, #8] mov x8, #12 str x8, [x9, #16] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf add x11, sp, #56 add x10, x11, #8 add x8, x11, #16 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 w8, #12 str w8, [sp, #40] mov w8, #1 str w8, [sp, #192] mov x9, sp mov x8, #39 str x8, [x9] mov x10, #38 str x10, [x9, #8] str x8, [x9, #16] 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, LBB1_2 b LBB1_1 LBB1_1: bl ___stack_chk_fail LBB1_2: mov w0, #0 ldp x29, x30, [sp, #416] ; 16-byte Folded Reload ldp x28, x27, [sp, #400] ; 16-byte Folded Reload add sp, sp, #432 ret .cfi_endproc ; -- End function .globl _make_complex ; -- Begin function make_complex .p2align 2 _make_complex: ; @make_complex .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str d0, [sp, #8] str d1, [sp] ldr d0, [sp, #8] str d0, [sp, #16] ldr d0, [sp] str d0, [sp, #24] ldr d0, [sp, #16] ldr d1, [sp, #24] add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _add_complex ; -- Begin function add_complex .p2align 2 _add_complex: ; @add_complex .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 str d0, [sp, #16] str d1, [sp, #24] str d2, [sp] str d3, [sp, #8] ldr d0, [sp, #16] ldr d1, [sp] fadd d0, d0, d1 str d0, [sp, #32] ldr d0, [sp, #24] ldr d1, [sp, #8] fadd d0, d0, d1 str d0, [sp, #40] ldr d0, [sp, #32] ldr d1, [sp, #40] add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _make_complex2 ; -- Begin function make_complex2 .p2align 2 _make_complex2: ; @make_complex2 .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str d0, [sp, #8] str d1, [sp] ldr d0, [sp, #8] str d0, [sp, #16] ldr d0, [sp] str d0, [sp, #24] ldr d0, [sp, #16] ldr d1, [sp, #24] add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _add_complex3 ; -- Begin function add_complex3 .p2align 2 _add_complex3: ; @add_complex3 .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 str d0, [sp, #16] str d1, [sp, #24] str d2, [sp] str d3, [sp, #8] ldr d0, [sp, #16] ldr d1, [sp] fadd d0, d0, d1 str d0, [sp, #32] ldr d0, [sp, #24] ldr d1, [sp, #8] fadd d0, d0, d1 str d0, [sp, #40] ldr d0, [sp, #32] ldr d1, [sp, #40] add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _day_of_year ; -- Begin function day_of_year .p2align 2 _day_of_year: ; @day_of_year .cfi_startproc ; %bb.0: sub sp, sp, #128 .cfi_def_cfa_offset 128 stp x29, x30, [sp, #112] ; 16-byte Folded Spill add x29, sp, #112 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] stur x0, [x29, #-24] stur x1, [x29, #-16] ldur x8, [x29, #-24] str x8, [sp, #24] ldur w8, [x29, #-16] str w8, [sp, #32] add x0, sp, #40 adrp x1, l___const.day_of_year.month@PAGE add x1, x1, l___const.day_of_year.month@PAGEOFF mov x2, #48 bl _memcpy ldr w8, [sp, #32] mov w10, #4 sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB6_2 b LBB6_1 LBB6_1: ldr w8, [sp, #32] mov w10, #100 sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB6_3 b LBB6_2 LBB6_2: ldr w8, [sp, #32] mov w10, #400 sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB6_4 b LBB6_3 LBB6_3: mov w8, #29 str w8, [sp, #44] b LBB6_4 LBB6_4: ldr w8, [sp, #28] str w8, [sp, #20] str wzr, [sp, #16] b LBB6_5 LBB6_5: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #16] ldr w9, [sp, #24] subs w9, w9, #1 subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB6_8 b LBB6_6 LBB6_6: ; in Loop: Header=BB6_5 Depth=1 ldrsw x9, [sp, #16] add x8, sp, #40 ldr w9, [x8, x9, lsl #2] ldr w8, [sp, #20] add w8, w8, w9 str w8, [sp, #20] b LBB6_7 LBB6_7: ; in Loop: Header=BB6_5 Depth=1 ldr w8, [sp, #16] add w8, w8, #1 str w8, [sp, #16] b LBB6_5 LBB6_8: ldr w8, [sp, #20] str w8, [sp, #12] ; 4-byte Folded Spill ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB6_10 b LBB6_9 LBB6_9: bl ___stack_chk_fail LBB6_10: ldr w0, [sp, #12] ; 4-byte Folded Reload ldp x29, x30, [sp, #112] ; 16-byte Folded Reload add sp, sp, #128 ret .cfi_endproc ; -- End function .globl _compare_dates ; -- Begin function compare_dates .p2align 2 _compare_dates: ; @compare_dates .cfi_startproc ; %bb.0: sub sp, sp, #96 .cfi_def_cfa_offset 96 stp x29, x30, [sp, #80] ; 16-byte Folded Spill add x29, sp, #80 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] stur x0, [x29, #-24] stur x1, [x29, #-16] ldur x8, [x29, #-24] str x8, [sp, #24] ldur w8, [x29, #-16] str w8, [sp, #32] str x2, [sp, #40] str x3, [sp, #48] ldr x8, [sp, #40] str x8, [sp, #8] ldr w8, [sp, #48] str w8, [sp, #16] ldr w8, [sp, #32] ldr w9, [sp, #16] subs w8, w8, w9 subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB7_2 b LBB7_1 LBB7_1: ldr w8, [sp, #32] ldr w9, [sp, #16] subs w8, w8, w9 cset w8, lt and w9, w8, #0x1 mov w8, #1 ands w9, w9, #0x1 csinv w8, w8, wzr, eq str w8, [sp, #36] b LBB7_7 LBB7_2: ldr w8, [sp, #24] ldr w9, [sp, #8] subs w8, w8, w9 subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB7_4 b LBB7_3 LBB7_3: ldr w8, [sp, #24] ldr w9, [sp, #8] subs w8, w8, w9 cset w8, lt and w9, w8, #0x1 mov w8, #1 ands w9, w9, #0x1 csinv w8, w8, wzr, eq str w8, [sp, #36] b LBB7_7 LBB7_4: ldr w8, [sp, #28] ldr w9, [sp, #12] subs w8, w8, w9 subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB7_6 b LBB7_5 LBB7_5: ldr w8, [sp, #28] ldr w9, [sp, #12] subs w8, w8, w9 cset w8, lt and w9, w8, #0x1 mov w8, #1 ands w9, w9, #0x1 csinv w8, w8, wzr, eq str w8, [sp, #36] b LBB7_7 LBB7_6: str wzr, [sp, #36] b LBB7_7 LBB7_7: ldr w8, [sp, #36] str w8, [sp, #4] ; 4-byte Folded Spill ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB7_9 b LBB7_8 LBB7_8: bl ___stack_chk_fail LBB7_9: ldr w0, [sp, #4] ; 4-byte Folded Reload ldp x29, x30, [sp, #80] ; 16-byte Folded Reload add sp, sp, #96 ret .cfi_endproc ; -- End function .globl _split_time ; -- Begin function split_time .p2align 2 _split_time: ; @split_time .cfi_startproc ; %bb.0: sub sp, sp, #80 .cfi_def_cfa_offset 80 stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp, #64 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] str w0, [sp, #24] ldr w8, [sp, #24] mov w10, #3600 sdiv w8, w8, w10 str w8, [sp, #28] ldr w8, [sp, #24] sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 mov w10, #60 sdiv w8, w8, w10 str w8, [sp, #32] ldr w8, [sp, #24] sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 str w8, [sp, #36] ldur x8, [sp, #28] stur x8, [x29, #-24] ldr w8, [sp, #36] stur w8, [x29, #-16] ldur x8, [x29, #-24] str x8, [sp, #8] ; 8-byte Folded Spill ldur x8, [x29, #-16] str x8, [sp, #16] ; 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, LBB8_2 b LBB8_1 LBB8_1: bl ___stack_chk_fail LBB8_2: ldr x1, [sp, #16] ; 8-byte Folded Reload ldr x0, [sp, #8] ; 8-byte Folded Reload ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .globl _gcd ; -- Begin function gcd .p2align 2 _gcd: ; @gcd .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] str wzr, [sp, #4] b LBB9_1 LBB9_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #12] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB9_3 b LBB9_2 LBB9_2: ; in Loop: Header=BB9_1 Depth=1 ldr w8, [sp, #8] ldr w10, [sp, #12] sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 str w8, [sp, #4] ldr w8, [sp, #12] str w8, [sp, #8] ldr w8, [sp, #4] str w8, [sp, #12] b LBB9_1 LBB9_3: ldr w0, [sp, #8] add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _func_16_7_1 ; -- Begin function func_16_7_1 .p2align 2 _func_16_7_1: ; @func_16_7_1 .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] bl _gcd str w0, [sp, #12] ldr w9, [sp, #12] ldr w8, [sp, #16] sdiv w8, w8, w9 str w8, [sp, #16] ldr w9, [sp, #12] ldr w8, [sp, #20] sdiv w8, w8, w9 str w8, [sp, #20] ldr x8, [sp, #16] stur x8, [x29, #-8] ldur x0, [x29, #-8] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _func_16_7_2 ; -- Begin function func_16_7_2 .p2align 2 _func_16_7_2: ; @func_16_7_2 .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 w8, [sp, #16] ldr w9, [sp, #12] mul w8, w8, w9 ldr w9, [sp, #8] ldr w10, [sp, #20] mul w9, w9, w10 add w8, w8, w9 str w8, [sp] ldr w8, [sp, #20] ldr w9, [sp, #12] mul w8, w8, w9 str w8, [sp, #4] ldr x0, [sp] bl _func_16_7_1 stur x0, [x29, #-8] ldur x0, [x29, #-8] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _func_16_7_3 ; -- Begin function func_16_7_3 .p2align 2 _func_16_7_3: ; @func_16_7_3 .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 w8, [sp, #16] ldr w9, [sp, #12] mul w8, w8, w9 ldr w9, [sp, #8] ldr w10, [sp, #20] mul w9, w9, w10 subs w8, w8, w9 str w8, [sp] ldr w8, [sp, #20] ldr w9, [sp, #12] mul w8, w8, w9 str w8, [sp, #4] ldr x0, [sp] bl _func_16_7_1 stur x0, [x29, #-8] ldur x0, [x29, #-8] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _func_16_7_4 ; -- Begin function func_16_7_4 .p2align 2 _func_16_7_4: ; @func_16_7_4 .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 w8, [sp, #16] ldr w9, [sp, #8] mul w8, w8, w9 str w8, [sp] ldr w8, [sp, #20] ldr w9, [sp, #12] mul w8, w8, w9 str w8, [sp, #4] ldr x0, [sp] bl _func_16_7_1 stur x0, [x29, #-8] ldur x0, [x29, #-8] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _func_16_7_5 ; -- Begin function func_16_7_5 .p2align 2 _func_16_7_5: ; @func_16_7_5 .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 w8, [sp, #16] ldr w9, [sp, #12] mul w8, w8, w9 str w8, [sp] ldr w8, [sp, #20] ldr w9, [sp, #8] mul w8, w8, w9 str w8, [sp, #4] ldr x0, [sp] bl _func_16_7_1 stur x0, [x29, #-8] ldur x0, [x29, #-8] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _func_16_8 ; -- Begin function func_16_8 .p2align 2 _func_16_8: ; @func_16_8 .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 adrp x8, l___const.func_16_8.MAGENTA@PAGE add x8, x8, l___const.func_16_8.MAGENTA@PAGEOFF ldr x9, [x8] str x9, [sp, #16] ldr w8, [x8, #8] str w8, [sp, #24] adrp x8, l___const.func_16_8.MAGENTA99@PAGE add x8, x8, l___const.func_16_8.MAGENTA99@PAGEOFF ldr x9, [x8] str x9, [sp] ldr w8, [x8, #8] str w8, [sp, #8] add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _func_16_9_1_make_color ; -- Begin function func_16_9_1_make_color .p2align 2 _func_16_9_1_make_color: ; @func_16_9_1_make_color .cfi_startproc ; %bb.0: sub sp, sp, #112 .cfi_def_cfa_offset 112 stp x29, x30, [sp, #96] ; 16-byte Folded Spill add x29, sp, #96 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] stur w0, [x29, #-40] stur w1, [x29, #-44] str w2, [sp, #48] ldur w8, [x29, #-40] subs w8, w8, #0 cset w8, ge tbnz w8, #0, LBB16_2 b LBB16_1 LBB16_1: mov w8, #0 str w8, [sp, #44] ; 4-byte Folded Spill b LBB16_3 LBB16_2: ldur w8, [x29, #-40] str w8, [sp, #44] ; 4-byte Folded Spill b LBB16_3 LBB16_3: ldr w8, [sp, #44] ; 4-byte Folded Reload stur w8, [x29, #-40] ldur w8, [x29, #-44] subs w8, w8, #0 cset w8, ge tbnz w8, #0, LBB16_5 b LBB16_4 LBB16_4: mov w8, #0 str w8, [sp, #40] ; 4-byte Folded Spill b LBB16_6 LBB16_5: ldur w8, [x29, #-44] str w8, [sp, #40] ; 4-byte Folded Spill b LBB16_6 LBB16_6: ldr w8, [sp, #40] ; 4-byte Folded Reload stur w8, [x29, #-44] ldr w8, [sp, #48] subs w8, w8, #0 cset w8, ge tbnz w8, #0, LBB16_8 b LBB16_7 LBB16_7: mov w8, #0 str w8, [sp, #36] ; 4-byte Folded Spill b LBB16_9 LBB16_8: ldr w8, [sp, #48] str w8, [sp, #36] ; 4-byte Folded Spill b LBB16_9 LBB16_9: ldr w8, [sp, #36] ; 4-byte Folded Reload str w8, [sp, #48] ldur w8, [x29, #-40] subs w8, w8, #255 cset w8, le tbnz w8, #0, LBB16_11 b LBB16_10 LBB16_10: mov w8, #255 str w8, [sp, #32] ; 4-byte Folded Spill b LBB16_12 LBB16_11: ldur w8, [x29, #-40] str w8, [sp, #32] ; 4-byte Folded Spill b LBB16_12 LBB16_12: ldr w8, [sp, #32] ; 4-byte Folded Reload stur w8, [x29, #-40] ldur w8, [x29, #-44] subs w8, w8, #255 cset w8, le tbnz w8, #0, LBB16_14 b LBB16_13 LBB16_13: mov w8, #255 str w8, [sp, #28] ; 4-byte Folded Spill b LBB16_15 LBB16_14: ldur w8, [x29, #-44] str w8, [sp, #28] ; 4-byte Folded Spill b LBB16_15 LBB16_15: ldr w8, [sp, #28] ; 4-byte Folded Reload stur w8, [x29, #-44] ldr w8, [sp, #48] subs w8, w8, #255 cset w8, le tbnz w8, #0, LBB16_17 b LBB16_16 LBB16_16: mov w8, #255 str w8, [sp, #24] ; 4-byte Folded Spill b LBB16_18 LBB16_17: ldr w8, [sp, #48] str w8, [sp, #24] ; 4-byte Folded Spill b LBB16_18 LBB16_18: ldr w8, [sp, #24] ; 4-byte Folded Reload str w8, [sp, #48] ldur w8, [x29, #-40] stur w8, [x29, #-36] ldur w8, [x29, #-44] stur w8, [x29, #-32] ldr w8, [sp, #48] stur w8, [x29, #-28] ldur x8, [x29, #-36] stur x8, [x29, #-24] ldur w8, [x29, #-28] stur w8, [x29, #-16] ldur x8, [x29, #-24] str x8, [sp, #8] ; 8-byte Folded Spill ldur x8, [x29, #-16] str x8, [sp, #16] ; 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, LBB16_20 b LBB16_19 LBB16_19: bl ___stack_chk_fail LBB16_20: ldr x1, [sp, #16] ; 8-byte Folded Reload ldr x0, [sp, #8] ; 8-byte Folded Reload ldp x29, x30, [sp, #96] ; 16-byte Folded Reload add sp, sp, #112 ret .cfi_endproc ; -- End function .globl _func_16_9_2_getRed ; -- Begin function func_16_9_2_getRed .p2align 2 _func_16_9_2_getRed: ; @func_16_9_2_getRed .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] str x0, [sp, #24] str x1, [sp, #32] ldr x8, [sp, #24] str x8, [sp, #8] ldr w8, [sp, #32] str w8, [sp, #16] ldr w8, [sp, #8] str w8, [sp, #4] ; 4-byte Folded Spill ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB17_2 b LBB17_1 LBB17_1: bl ___stack_chk_fail LBB17_2: ldr w0, [sp, #4] ; 4-byte Folded Reload ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _func_16_9_3_equal_color ; -- Begin function func_16_9_3_equal_color .p2align 2 _func_16_9_3_equal_color: ; @func_16_9_3_equal_color .cfi_startproc ; %bb.0: sub sp, sp, #96 .cfi_def_cfa_offset 96 stp x29, x30, [sp, #80] ; 16-byte Folded Spill add x29, sp, #80 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] stur x0, [x29, #-24] stur x1, [x29, #-16] ldur x8, [x29, #-24] str x8, [sp, #24] ldur w8, [x29, #-16] str w8, [sp, #32] str x2, [sp, #40] str x3, [sp, #48] ldr x8, [sp, #40] str x8, [sp, #8] ldr w8, [sp, #48] str w8, [sp, #16] ldr w8, [sp, #24] ldr w9, [sp, #8] subs w8, w8, w9 cset w8, ne mov w9, #0 str w9, [sp, #4] ; 4-byte Folded Spill tbnz w8, #0, LBB18_3 b LBB18_1 LBB18_1: ldr w8, [sp, #28] ldr w9, [sp, #12] subs w8, w8, w9 cset w8, ne mov w9, #0 str w9, [sp, #4] ; 4-byte Folded Spill tbnz w8, #0, LBB18_3 b LBB18_2 LBB18_2: ldr w8, [sp, #32] ldr w9, [sp, #16] subs w8, w8, w9 cset w8, eq str w8, [sp, #4] ; 4-byte Folded Spill b LBB18_3 LBB18_3: ldr w8, [sp, #4] ; 4-byte Folded Reload str w8, [sp] ; 4-byte Folded Spill ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB18_5 b LBB18_4 LBB18_4: bl ___stack_chk_fail LBB18_5: ldr w8, [sp] ; 4-byte Folded Reload and w0, w8, #0x1 ldp x29, x30, [sp, #80] ; 16-byte Folded Reload add sp, sp, #96 ret .cfi_endproc ; -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ; -- Begin function func_16_9_4_brighter lCPI19_0: .quad 0x3fe6666666666666 ; double 0.69999999999999996 .section __TEXT,__text,regular,pure_instructions .globl _func_16_9_4_brighter .p2align 2 _func_16_9_4_brighter: ; @func_16_9_4_brighter .cfi_startproc ; %bb.0: sub sp, sp, #128 .cfi_def_cfa_offset 128 stp x29, x30, [sp, #112] ; 16-byte Folded Spill add x29, sp, #112 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] stur x0, [x29, #-24] stur x1, [x29, #-16] ldur x8, [x29, #-24] str x8, [sp, #40] ldur w8, [x29, #-16] str w8, [sp, #48] ldr w8, [sp, #40] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB19_4 b LBB19_1 LBB19_1: ldr w8, [sp, #44] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB19_4 b LBB19_2 LBB19_2: ldr w8, [sp, #48] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB19_4 b LBB19_3 LBB19_3: mov w8, #3 str w8, [sp, #56] str w8, [sp, #60] str w8, [sp, #64] b LBB19_26 LBB19_4: ldr w8, [sp, #40] subs w8, w8, #3 cset w8, ge tbnz w8, #0, LBB19_7 b LBB19_5 LBB19_5: ldr w8, [sp, #40] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB19_7 b LBB19_6 LBB19_6: mov w8, #3 str w8, [sp, #36] ; 4-byte Folded Spill b LBB19_8 LBB19_7: ldr w8, [sp, #40] str w8, [sp, #36] ; 4-byte Folded Spill b LBB19_8 LBB19_8: ldr w8, [sp, #36] ; 4-byte Folded Reload str w8, [sp, #40] ldr w8, [sp, #44] subs w8, w8, #3 cset w8, ge tbnz w8, #0, LBB19_11 b LBB19_9 LBB19_9: ldr w8, [sp, #44] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB19_11 b LBB19_10 LBB19_10: mov w8, #3 str w8, [sp, #32] ; 4-byte Folded Spill b LBB19_12 LBB19_11: ldr w8, [sp, #44] str w8, [sp, #32] ; 4-byte Folded Spill b LBB19_12 LBB19_12: ldr w8, [sp, #32] ; 4-byte Folded Reload str w8, [sp, #44] ldr w8, [sp, #48] subs w8, w8, #3 cset w8, ge tbnz w8, #0, LBB19_15 b LBB19_13 LBB19_13: ldr w8, [sp, #48] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB19_15 b LBB19_14 LBB19_14: mov w8, #3 str w8, [sp, #28] ; 4-byte Folded Spill b LBB19_16 LBB19_15: ldr w8, [sp, #48] str w8, [sp, #28] ; 4-byte Folded Spill b LBB19_16 LBB19_16: ldr w8, [sp, #28] ; 4-byte Folded Reload str w8, [sp, #48] ldr s1, [sp, #40] ; implicit-def: $d0 fmov s0, s1 sshll.2d v0, v0, #0 ; kill: def $d0 killed $d0 killed $q0 scvtf d0, d0 adrp x8, lCPI19_0@PAGE ldr d1, [x8, lCPI19_0@PAGEOFF] fdiv d0, d0, d1 fcvtzs w8, d0 str w8, [sp, #40] ldr s2, [sp, #44] ; implicit-def: $d0 fmov s0, s2 sshll.2d v0, v0, #0 ; kill: def $d0 killed $d0 killed $q0 scvtf d0, d0 fdiv d0, d0, d1 fcvtzs w8, d0 str w8, [sp, #44] ldr s2, [sp, #48] ; implicit-def: $d0 fmov s0, s2 sshll.2d v0, v0, #0 ; kill: def $d0 killed $d0 killed $q0 scvtf d0, d0 fdiv d0, d0, d1 fcvtzs w8, d0 str w8, [sp, #48] ldr w8, [sp, #40] subs w8, w8, #255 cset w8, le tbnz w8, #0, LBB19_18 b LBB19_17 LBB19_17: mov w8, #255 str w8, [sp, #24] ; 4-byte Folded Spill b LBB19_19 LBB19_18: ldr w8, [sp, #40] str w8, [sp, #24] ; 4-byte Folded Spill b LBB19_19 LBB19_19: ldr w8, [sp, #24] ; 4-byte Folded Reload str w8, [sp, #40] ldr w8, [sp, #44] subs w8, w8, #255 cset w8, le tbnz w8, #0, LBB19_21 b LBB19_20 LBB19_20: mov w8, #255 str w8, [sp, #20] ; 4-byte Folded Spill b LBB19_22 LBB19_21: ldr w8, [sp, #44] str w8, [sp, #20] ; 4-byte Folded Spill b LBB19_22 LBB19_22: ldr w8, [sp, #20] ; 4-byte Folded Reload str w8, [sp, #44] ldr w8, [sp, #48] subs w8, w8, #255 cset w8, le tbnz w8, #0, LBB19_24 b LBB19_23 LBB19_23: mov w8, #255 str w8, [sp, #16] ; 4-byte Folded Spill b LBB19_25 LBB19_24: ldr w8, [sp, #48] str w8, [sp, #16] ; 4-byte Folded Spill b LBB19_25 LBB19_25: ldr w8, [sp, #16] ; 4-byte Folded Reload str w8, [sp, #48] ldr x8, [sp, #40] str x8, [sp, #56] ldr w8, [sp, #48] str w8, [sp, #64] b LBB19_26 LBB19_26: ldr x8, [sp, #56] stur x8, [x29, #-40] ldr w8, [sp, #64] stur w8, [x29, #-32] ldur x8, [x29, #-40] str x8, [sp] ; 8-byte Folded Spill ldur x8, [x29, #-32] str x8, [sp, #8] ; 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, LBB19_28 b LBB19_27 LBB19_27: bl ___stack_chk_fail LBB19_28: ldr x1, [sp, #8] ; 8-byte Folded Reload ldr x0, [sp] ; 8-byte Folded Reload ldp x29, x30, [sp, #112] ; 16-byte Folded Reload add sp, sp, #128 ret .cfi_endproc ; -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ; -- Begin function func_16_9_5_darker lCPI20_0: .quad 0x3fe6666666666666 ; double 0.69999999999999996 .section __TEXT,__text,regular,pure_instructions .globl _func_16_9_5_darker .p2align 2 _func_16_9_5_darker: ; @func_16_9_5_darker .cfi_startproc ; %bb.0: sub sp, sp, #112 .cfi_def_cfa_offset 112 stp x29, x30, [sp, #96] ; 16-byte Folded Spill add x29, sp, #96 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] stur x0, [x29, #-24] stur x1, [x29, #-16] ldur x8, [x29, #-24] str x8, [sp, #24] ldur w8, [x29, #-16] str w8, [sp, #32] ldr s1, [sp, #24] ; implicit-def: $d0 fmov s0, s1 sshll.2d v0, v0, #0 ; kill: def $d0 killed $d0 killed $q0 scvtf d0, d0 adrp x8, lCPI20_0@PAGE ldr d1, [x8, lCPI20_0@PAGEOFF] fmul d0, d0, d1 fcvtzs w8, d0 str w8, [sp, #24] ldr s2, [sp, #28] ; implicit-def: $d0 fmov s0, s2 sshll.2d v0, v0, #0 ; kill: def $d0 killed $d0 killed $q0 scvtf d0, d0 fmul d0, d0, d1 fcvtzs w8, d0 str w8, [sp, #28] ldr s2, [sp, #32] ; implicit-def: $d0 fmov s0, s2 sshll.2d v0, v0, #0 ; kill: def $d0 killed $d0 killed $q0 scvtf d0, d0 fmul d0, d0, d1 fcvtzs w8, d0 str w8, [sp, #32] ldr x8, [sp, #24] str x8, [sp, #40] ldr w8, [sp, #32] str w8, [sp, #48] ldr x8, [sp, #40] stur x8, [x29, #-40] ldr w8, [sp, #48] stur w8, [x29, #-32] ldur x8, [x29, #-40] str x8, [sp, #8] ; 8-byte Folded Spill ldur x8, [x29, #-32] str x8, [sp, #16] ; 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, LBB20_2 b LBB20_1 LBB20_1: bl ___stack_chk_fail LBB20_2: ldr x1, [sp, #16] ; 8-byte Folded Reload ldr x0, [sp, #8] ; 8-byte Folded Reload ldp x29, x30, [sp, #96] ; 16-byte Folded Reload add sp, sp, #112 ret .cfi_endproc ; -- End function .globl _func_16_10_1_area ; -- Begin function func_16_10_1_area .p2align 2 _func_16_10_1_area: ; @func_16_10_1_area .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp] str x1, [sp, #8] ldr w8, [sp, #8] ldr w9, [sp] subs w0, w8, w9 bl _abs ldr w8, [sp, #12] ldr w9, [sp, #4] subs w8, w8, w9 mul w0, w0, w8 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _func_16_10_2_middle ; -- Begin function func_16_10_2_middle .p2align 2 _func_16_10_2_middle: ; @func_16_10_2_middle .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, #8] str x1, [sp, #16] ldr w8, [sp, #16] ldr w9, [sp, #8] add w8, w8, w9 mov w9, #2 sdiv w8, w8, w9 str w8, [sp, #24] ldr w8, [sp, #20] ldr w10, [sp, #12] add w8, w8, w10 sdiv w8, w8, w9 str w8, [sp, #28] ldr x0, [sp, #24] add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _func_16_10_3_move ; -- Begin function func_16_10_3_move .p2align 2 _func_16_10_3_move: ; @func_16_10_3_move .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 str x0, [sp, #16] str x1, [sp, #24] str w2, [sp, #12] str w3, [sp, #8] ldr w9, [sp, #12] ldr w8, [sp, #24] add w8, w8, w9 str w8, [sp, #24] ldr w9, [sp, #8] ldr w8, [sp, #28] add w8, w8, w9 str w8, [sp, #28] ldr w9, [sp, #12] ldr w8, [sp, #16] add w8, w8, w9 str w8, [sp, #16] ldr w9, [sp, #8] ldr w8, [sp, #20] add w8, w8, w9 str w8, [sp, #20] ldr q0, [sp, #16] str q0, [sp, #32] ldr x0, [sp, #32] ldr x1, [sp, #40] add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _func_16_10_4_include ; -- Begin function func_16_10_4_include .p2align 2 _func_16_10_4_include: ; @func_16_10_4_include .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, #16] str x1, [sp, #24] str x2, [sp, #8] ldr w8, [sp, #8] ldr w9, [sp, #24] subs w8, w8, w9 cset w8, gt mov w9, #0 str w9, [sp, #4] ; 4-byte Folded Spill tbnz w8, #0, LBB24_4 b LBB24_1 LBB24_1: ldr w8, [sp, #8] ldr w9, [sp, #16] subs w8, w8, w9 cset w8, lt mov w9, #0 str w9, [sp, #4] ; 4-byte Folded Spill tbnz w8, #0, LBB24_4 b LBB24_2 LBB24_2: ldr w8, [sp, #12] ldr w9, [sp, #20] subs w8, w8, w9 cset w8, gt mov w9, #0 str w9, [sp, #4] ; 4-byte Folded Spill tbnz w8, #0, LBB24_4 b LBB24_3 LBB24_3: ldr w8, [sp, #12] ldr w9, [sp, #28] subs w8, w8, w9 cset w8, ge str w8, [sp, #4] ; 4-byte Folded Spill b LBB24_4 LBB24_4: ldr w8, [sp, #4] ; 4-byte Folded Reload and w0, w8, #0x1 add sp, sp, #32 ret .cfi_endproc ; -- End function .section __TEXT,__literal16,16byte_literals .p2align 3 ; @__const.main.c1 l___const.main.c1: .quad 0x0000000000000000 ; double 0 .quad 0x3ff0000000000000 ; double 1 .p2align 3 ; @__const.main.c2 l___const.main.c2: .quad 0x3ff0000000000000 ; double 1 .quad 0x0000000000000000 ; double 0 .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%lu %lu %lu\n" l_.str.1: ; @.str.1 .asciz "%p %p %p\n" l_.str.2: ; @.str.2 .asciz "%d %d %d\n" .section __TEXT,__const .p2align 2 ; @__const.day_of_year.month l___const.day_of_year.month: .long 31 ; 0x1f .long 28 ; 0x1c .long 31 ; 0x1f .long 30 ; 0x1e .long 31 ; 0x1f .long 30 ; 0x1e .long 31 ; 0x1f .long 31 ; 0x1f .long 30 ; 0x1e .long 31 ; 0x1f .long 30 ; 0x1e .long 31 ; 0x1f .p2align 2 ; @__const.func_16_8.MAGENTA l___const.func_16_8.MAGENTA: .long 255 ; 0xff .long 0 ; 0x0 .long 255 ; 0xff .p2align 2 ; @__const.func_16_8.MAGENTA99 l___const.func_16_8.MAGENTA99: .long 255 ; 0xff .long 0 ; 0x0 .long 255 ; 0xff .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 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 $384, %rsp ## imm = 0x180 movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -260(%rbp) leaq -152(%rbp), %rdi leaq -56(%rbp), %rsi movl $48, %edx callq _memcpy movq L___const.main.c1(%rip), %rax movq %rax, -296(%rbp) movq L___const.main.c1+8(%rip), %rax movq %rax, -288(%rbp) movq L___const.main.c2(%rip), %rax movq %rax, -312(%rbp) movq L___const.main.c2+8(%rip), %rax movq %rax, -304(%rbp) movq -312(%rbp), %rax movq %rax, -296(%rbp) movq -304(%rbp), %rax movq %rax, -288(%rbp) movsd -296(%rbp), %xmm0 ## xmm0 = mem[0],zero addsd -312(%rbp), %xmm0 movsd %xmm0, -328(%rbp) movsd -288(%rbp), %xmm0 ## xmm0 = mem[0],zero addsd -304(%rbp), %xmm0 movsd %xmm0, -320(%rbp) leaq L_.str(%rip), %rdi movl $24, %esi movl $8, %edx movl $12, %ecx movb $0, %al callq _printf leaq -352(%rbp), %rsi leaq -352(%rbp), %rdx addq $8, %rdx leaq -352(%rbp), %rcx addq $16, %rcx leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf movl $12, -372(%rbp) movl $1, -212(%rbp) leaq L_.str.2(%rip), %rdi movl $39, %ecx movl $38, %edx movl %ecx, %esi movb $0, %al callq _printf movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB1_2 ## %bb.1: xorl %eax, %eax addq $384, %rsp ## imm = 0x180 popq %rbp retq LBB1_2: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _make_complex ## -- Begin function make_complex .p2align 4, 0x90 _make_complex: ## @make_complex .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movsd %xmm0, -24(%rbp) movsd %xmm1, -32(%rbp) movsd -24(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -16(%rbp) movsd -32(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -8(%rbp) movsd -16(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd -8(%rbp), %xmm1 ## xmm1 = mem[0],zero popq %rbp retq .cfi_endproc ## -- End function .globl _add_complex ## -- Begin function add_complex .p2align 4, 0x90 _add_complex: ## @add_complex .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movsd %xmm0, -32(%rbp) movsd %xmm1, -24(%rbp) movsd %xmm2, -48(%rbp) movsd %xmm3, -40(%rbp) movsd -32(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd -48(%rbp), %xmm1 ## xmm1 = mem[0],zero addsd %xmm1, %xmm0 movsd %xmm0, -16(%rbp) movsd -24(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd -40(%rbp), %xmm1 ## xmm1 = mem[0],zero addsd %xmm1, %xmm0 movsd %xmm0, -8(%rbp) movsd -16(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd -8(%rbp), %xmm1 ## xmm1 = mem[0],zero popq %rbp retq .cfi_endproc ## -- End function .globl _make_complex2 ## -- Begin function make_complex2 .p2align 4, 0x90 _make_complex2: ## @make_complex2 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movsd %xmm0, -24(%rbp) movsd %xmm1, -32(%rbp) movsd -24(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -16(%rbp) movsd -32(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -8(%rbp) movsd -16(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd -8(%rbp), %xmm1 ## xmm1 = mem[0],zero popq %rbp retq .cfi_endproc ## -- End function .globl _add_complex3 ## -- Begin function add_complex3 .p2align 4, 0x90 _add_complex3: ## @add_complex3 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movsd %xmm0, -32(%rbp) movsd %xmm1, -24(%rbp) movsd %xmm2, -48(%rbp) movsd %xmm3, -40(%rbp) movsd -32(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd -48(%rbp), %xmm1 ## xmm1 = mem[0],zero addsd %xmm1, %xmm0 movsd %xmm0, -16(%rbp) movsd -24(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd -40(%rbp), %xmm1 ## xmm1 = mem[0],zero addsd %xmm1, %xmm0 movsd %xmm0, -8(%rbp) movsd -16(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd -8(%rbp), %xmm1 ## xmm1 = mem[0],zero popq %rbp retq .cfi_endproc ## -- End function .globl _day_of_year ## -- Begin function day_of_year .p2align 4, 0x90 _day_of_year: ## @day_of_year .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $112, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movq %rdi, -96(%rbp) movl %esi, -88(%rbp) movq -96(%rbp), %rax movq %rax, -80(%rbp) movl -88(%rbp), %eax movl %eax, -72(%rbp) leaq -64(%rbp), %rdi leaq l___const.day_of_year.month(%rip), %rsi movl $48, %edx callq _memcpy movl -72(%rbp), %eax movl $4, %ecx cltd idivl %ecx cmpl $0, %edx jne LBB6_2 ## %bb.1: movl -72(%rbp), %eax movl $100, %ecx cltd idivl %ecx cmpl $0, %edx jne LBB6_3 LBB6_2: movl -72(%rbp), %eax movl $400, %ecx ## imm = 0x190 cltd idivl %ecx cmpl $0, %edx jne LBB6_4 LBB6_3: movl $29, -60(%rbp) LBB6_4: movl -76(%rbp), %eax movl %eax, -100(%rbp) movl $0, -104(%rbp) LBB6_5: ## =>This Inner Loop Header: Depth=1 movl -104(%rbp), %eax movl -80(%rbp), %ecx subl $1, %ecx cmpl %ecx, %eax jge LBB6_8 ## %bb.6: ## in Loop: Header=BB6_5 Depth=1 movslq -104(%rbp), %rax movl -64(%rbp,%rax,4), %eax addl -100(%rbp), %eax movl %eax, -100(%rbp) ## %bb.7: ## in Loop: Header=BB6_5 Depth=1 movl -104(%rbp), %eax addl $1, %eax movl %eax, -104(%rbp) jmp LBB6_5 LBB6_8: movl -100(%rbp), %eax movl %eax, -108(%rbp) ## 4-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB6_10 ## %bb.9: movl -108(%rbp), %eax ## 4-byte Reload addq $112, %rsp popq %rbp retq LBB6_10: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _compare_dates ## -- Begin function compare_dates .p2align 4, 0x90 _compare_dates: ## @compare_dates .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, -32(%rbp) movl %esi, -24(%rbp) movq -32(%rbp), %rax movq %rax, -16(%rbp) movl -24(%rbp), %eax movl %eax, -8(%rbp) movq %rdx, -64(%rbp) movl %ecx, -56(%rbp) movq -64(%rbp), %rax movq %rax, -48(%rbp) movl -56(%rbp), %eax movl %eax, -40(%rbp) movl -8(%rbp), %eax subl -40(%rbp), %eax cmpl $0, %eax je LBB7_2 ## %bb.1: movl -8(%rbp), %edx movl -40(%rbp), %esi movl $1, %eax movl $4294967295, %ecx ## imm = 0xFFFFFFFF cmpl %esi, %edx cmovll %ecx, %eax movl %eax, -4(%rbp) jmp LBB7_7 LBB7_2: movl -16(%rbp), %eax subl -48(%rbp), %eax cmpl $0, %eax je LBB7_4 ## %bb.3: movl -16(%rbp), %edx movl -48(%rbp), %esi movl $1, %eax movl $4294967295, %ecx ## imm = 0xFFFFFFFF cmpl %esi, %edx cmovll %ecx, %eax movl %eax, -4(%rbp) jmp LBB7_7 LBB7_4: movl -12(%rbp), %eax subl -44(%rbp), %eax cmpl $0, %eax je LBB7_6 ## %bb.5: movl -12(%rbp), %edx movl -44(%rbp), %esi movl $1, %eax movl $4294967295, %ecx ## imm = 0xFFFFFFFF cmpl %esi, %edx cmovll %ecx, %eax movl %eax, -4(%rbp) jmp LBB7_7 LBB7_6: movl $0, -4(%rbp) LBB7_7: movl -4(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .globl _split_time ## -- Begin function split_time .p2align 4, 0x90 _split_time: ## @split_time .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, -20(%rbp) movslq -20(%rbp), %rax movl %eax, %ecx imulq $-1851608123, %rax, %rax ## imm = 0x91A2B3C5 shrq $32, %rax ## kill: def $eax killed $eax killed $rax addl %ecx, %eax movl %eax, %ecx shrl $31, %ecx sarl $11, %eax addl %ecx, %eax movl %eax, -16(%rbp) movslq -20(%rbp), %rax movl %eax, %ecx imulq $-1851608123, %rax, %rax ## imm = 0x91A2B3C5 shrq $32, %rax ## kill: def $eax killed $eax killed $rax addl %ecx, %eax movl %eax, %edx shrl $31, %edx sarl $11, %eax addl %edx, %eax imull $3600, %eax, %eax ## imm = 0xE10 subl %eax, %ecx movslq %ecx, %rax imulq $-2004318071, %rax, %rax ## imm = 0x88888889 shrq $32, %rax ## kill: def $eax killed $eax killed $rax addl %ecx, %eax movl %eax, %ecx shrl $31, %ecx sarl $5, %eax addl %ecx, %eax movl %eax, -12(%rbp) movslq -20(%rbp), %rcx movl %ecx, %eax imulq $-2004318071, %rcx, %rcx ## imm = 0x88888889 shrq $32, %rcx ## kill: def $ecx killed $ecx killed $rcx addl %eax, %ecx movl %ecx, %edx shrl $31, %edx sarl $5, %ecx addl %edx, %ecx imull $60, %ecx, %ecx subl %ecx, %eax movl %eax, -8(%rbp) movl -8(%rbp), %eax movl %eax, -32(%rbp) movq -16(%rbp), %rax movq %rax, -40(%rbp) movq -40(%rbp), %rax movl -32(%rbp), %edx popq %rbp retq .cfi_endproc ## -- End function .globl _gcd ## -- Begin function gcd .p2align 4, 0x90 _gcd: ## @gcd .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) movl $0, -12(%rbp) LBB9_1: ## =>This Inner Loop Header: Depth=1 cmpl $0, -4(%rbp) je LBB9_3 ## %bb.2: ## in Loop: Header=BB9_1 Depth=1 movl -8(%rbp), %eax cltd idivl -4(%rbp) movl %edx, -12(%rbp) movl -4(%rbp), %eax movl %eax, -8(%rbp) movl -12(%rbp), %eax movl %eax, -4(%rbp) jmp LBB9_1 LBB9_3: movl -8(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .globl _func_16_7_1 ## -- Begin function func_16_7_1 .p2align 4, 0x90 _func_16_7_1: ## @func_16_7_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 $32, %rsp movq %rdi, -16(%rbp) movq -16(%rbp), %rdi callq _gcd movl %eax, -20(%rbp) movl -20(%rbp), %ecx movl -16(%rbp), %eax cltd idivl %ecx movl %eax, -16(%rbp) movl -20(%rbp), %ecx movl -12(%rbp), %eax cltd idivl %ecx movl %eax, -12(%rbp) movq -16(%rbp), %rax movq %rax, -8(%rbp) movq -8(%rbp), %rax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _func_16_7_2 ## -- Begin function func_16_7_2 .p2align 4, 0x90 _func_16_7_2: ## @func_16_7_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 $32, %rsp movq %rdi, -16(%rbp) movq %rsi, -24(%rbp) movl -16(%rbp), %eax imull -20(%rbp), %eax movl -24(%rbp), %ecx imull -12(%rbp), %ecx addl %ecx, %eax movl %eax, -32(%rbp) movl -12(%rbp), %eax imull -20(%rbp), %eax movl %eax, -28(%rbp) movq -32(%rbp), %rdi callq _func_16_7_1 movq %rax, -8(%rbp) movq -8(%rbp), %rax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _func_16_7_3 ## -- Begin function func_16_7_3 .p2align 4, 0x90 _func_16_7_3: ## @func_16_7_3 .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) movl -16(%rbp), %eax imull -20(%rbp), %eax movl -24(%rbp), %ecx imull -12(%rbp), %ecx subl %ecx, %eax movl %eax, -32(%rbp) movl -12(%rbp), %eax imull -20(%rbp), %eax movl %eax, -28(%rbp) movq -32(%rbp), %rdi callq _func_16_7_1 movq %rax, -8(%rbp) movq -8(%rbp), %rax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _func_16_7_4 ## -- Begin function func_16_7_4 .p2align 4, 0x90 _func_16_7_4: ## @func_16_7_4 .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) movl -16(%rbp), %eax imull -24(%rbp), %eax movl %eax, -32(%rbp) movl -12(%rbp), %eax imull -20(%rbp), %eax movl %eax, -28(%rbp) movq -32(%rbp), %rdi callq _func_16_7_1 movq %rax, -8(%rbp) movq -8(%rbp), %rax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _func_16_7_5 ## -- Begin function func_16_7_5 .p2align 4, 0x90 _func_16_7_5: ## @func_16_7_5 .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) movl -16(%rbp), %eax imull -20(%rbp), %eax movl %eax, -32(%rbp) movl -12(%rbp), %eax imull -24(%rbp), %eax movl %eax, -28(%rbp) movq -32(%rbp), %rdi callq _func_16_7_1 movq %rax, -8(%rbp) movq -8(%rbp), %rax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _func_16_8 ## -- Begin function func_16_8 .p2align 4, 0x90 _func_16_8: ## @func_16_8 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq l___const.func_16_8.MAGENTA(%rip), %rax movq %rax, -16(%rbp) movl l___const.func_16_8.MAGENTA+8(%rip), %eax movl %eax, -8(%rbp) movq l___const.func_16_8.MAGENTA99(%rip), %rax movq %rax, -32(%rbp) movl l___const.func_16_8.MAGENTA99+8(%rip), %eax movl %eax, -24(%rbp) popq %rbp retq .cfi_endproc ## -- End function .globl _func_16_9_1_make_color ## -- Begin function func_16_9_1_make_color .p2align 4, 0x90 _func_16_9_1_make_color: ## @func_16_9_1_make_color .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, -20(%rbp) movl %esi, -24(%rbp) movl %edx, -28(%rbp) cmpl $0, -20(%rbp) jge LBB16_2 ## %bb.1: xorl %eax, %eax movl %eax, -52(%rbp) ## 4-byte Spill jmp LBB16_3 LBB16_2: movl -20(%rbp), %eax movl %eax, -52(%rbp) ## 4-byte Spill LBB16_3: movl -52(%rbp), %eax ## 4-byte Reload movl %eax, -20(%rbp) cmpl $0, -24(%rbp) jge LBB16_5 ## %bb.4: xorl %eax, %eax movl %eax, -56(%rbp) ## 4-byte Spill jmp LBB16_6 LBB16_5: movl -24(%rbp), %eax movl %eax, -56(%rbp) ## 4-byte Spill LBB16_6: movl -56(%rbp), %eax ## 4-byte Reload movl %eax, -24(%rbp) cmpl $0, -28(%rbp) jge LBB16_8 ## %bb.7: xorl %eax, %eax movl %eax, -60(%rbp) ## 4-byte Spill jmp LBB16_9 LBB16_8: movl -28(%rbp), %eax movl %eax, -60(%rbp) ## 4-byte Spill LBB16_9: movl -60(%rbp), %eax ## 4-byte Reload movl %eax, -28(%rbp) cmpl $255, -20(%rbp) jle LBB16_11 ## %bb.10: movl $255, %eax movl %eax, -64(%rbp) ## 4-byte Spill jmp LBB16_12 LBB16_11: movl -20(%rbp), %eax movl %eax, -64(%rbp) ## 4-byte Spill LBB16_12: movl -64(%rbp), %eax ## 4-byte Reload movl %eax, -20(%rbp) cmpl $255, -24(%rbp) jle LBB16_14 ## %bb.13: movl $255, %eax movl %eax, -68(%rbp) ## 4-byte Spill jmp LBB16_15 LBB16_14: movl -24(%rbp), %eax movl %eax, -68(%rbp) ## 4-byte Spill LBB16_15: movl -68(%rbp), %eax ## 4-byte Reload movl %eax, -24(%rbp) cmpl $255, -28(%rbp) jle LBB16_17 ## %bb.16: movl $255, %eax movl %eax, -72(%rbp) ## 4-byte Spill jmp LBB16_18 LBB16_17: movl -28(%rbp), %eax movl %eax, -72(%rbp) ## 4-byte Spill LBB16_18: movl -72(%rbp), %eax ## 4-byte Reload movl %eax, -28(%rbp) movl -20(%rbp), %eax movl %eax, -16(%rbp) movl -24(%rbp), %eax movl %eax, -12(%rbp) movl -28(%rbp), %eax movl %eax, -8(%rbp) movl -8(%rbp), %eax movl %eax, -40(%rbp) movq -16(%rbp), %rax movq %rax, -48(%rbp) movq -48(%rbp), %rax movl -40(%rbp), %edx popq %rbp retq .cfi_endproc ## -- End function .globl _func_16_9_2_getRed ## -- Begin function func_16_9_2_getRed .p2align 4, 0x90 _func_16_9_2_getRed: ## @func_16_9_2_getRed .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, -32(%rbp) movl %esi, -24(%rbp) movq -32(%rbp), %rax movq %rax, -16(%rbp) movl -24(%rbp), %eax movl %eax, -8(%rbp) movl -16(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .globl _func_16_9_3_equal_color ## -- Begin function func_16_9_3_equal_color .p2align 4, 0x90 _func_16_9_3_equal_color: ## @func_16_9_3_equal_color .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, -32(%rbp) movl %esi, -24(%rbp) movq -32(%rbp), %rax movq %rax, -16(%rbp) movl -24(%rbp), %eax movl %eax, -8(%rbp) movq %rdx, -64(%rbp) movl %ecx, -56(%rbp) movq -64(%rbp), %rax movq %rax, -48(%rbp) movl -56(%rbp), %eax movl %eax, -40(%rbp) movl -16(%rbp), %ecx xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl -48(%rbp), %ecx movb %al, -65(%rbp) ## 1-byte Spill jne LBB18_3 ## %bb.1: movl -12(%rbp), %ecx xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl -44(%rbp), %ecx movb %al, -65(%rbp) ## 1-byte Spill jne LBB18_3 ## %bb.2: movl -8(%rbp), %eax cmpl -40(%rbp), %eax sete %al movb %al, -65(%rbp) ## 1-byte Spill LBB18_3: movb -65(%rbp), %al ## 1-byte Reload andb $1, %al movzbl %al, %eax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ## -- Begin function func_16_9_4_brighter LCPI19_0: .quad 0x3fe6666666666666 ## double 0.69999999999999996 .section __TEXT,__text,regular,pure_instructions .globl _func_16_9_4_brighter .p2align 4, 0x90 _func_16_9_4_brighter: ## @func_16_9_4_brighter .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, -48(%rbp) movl %esi, -40(%rbp) movq -48(%rbp), %rax movq %rax, -32(%rbp) movl -40(%rbp), %eax movl %eax, -24(%rbp) cmpl $0, -32(%rbp) jne LBB19_4 ## %bb.1: cmpl $0, -28(%rbp) jne LBB19_4 ## %bb.2: cmpl $0, -24(%rbp) jne LBB19_4 ## %bb.3: movl $3, -16(%rbp) movl $3, -12(%rbp) movl $3, -8(%rbp) jmp LBB19_26 LBB19_4: cmpl $3, -32(%rbp) jge LBB19_7 ## %bb.5: cmpl $0, -32(%rbp) jle LBB19_7 ## %bb.6: movl $3, %eax movl %eax, -68(%rbp) ## 4-byte Spill jmp LBB19_8 LBB19_7: movl -32(%rbp), %eax movl %eax, -68(%rbp) ## 4-byte Spill LBB19_8: movl -68(%rbp), %eax ## 4-byte Reload movl %eax, -32(%rbp) cmpl $3, -28(%rbp) jge LBB19_11 ## %bb.9: cmpl $0, -28(%rbp) jle LBB19_11 ## %bb.10: movl $3, %eax movl %eax, -72(%rbp) ## 4-byte Spill jmp LBB19_12 LBB19_11: movl -28(%rbp), %eax movl %eax, -72(%rbp) ## 4-byte Spill LBB19_12: movl -72(%rbp), %eax ## 4-byte Reload movl %eax, -28(%rbp) cmpl $3, -24(%rbp) jge LBB19_15 ## %bb.13: cmpl $0, -24(%rbp) jle LBB19_15 ## %bb.14: movl $3, %eax movl %eax, -76(%rbp) ## 4-byte Spill jmp LBB19_16 LBB19_15: movl -24(%rbp), %eax movl %eax, -76(%rbp) ## 4-byte Spill LBB19_16: movl -76(%rbp), %eax ## 4-byte Reload movl %eax, -24(%rbp) cvtsi2sdl -32(%rbp), %xmm0 movsd LCPI19_0(%rip), %xmm1 ## xmm1 = mem[0],zero divsd %xmm1, %xmm0 cvttsd2si %xmm0, %eax movl %eax, -32(%rbp) cvtsi2sdl -28(%rbp), %xmm0 movsd LCPI19_0(%rip), %xmm1 ## xmm1 = mem[0],zero divsd %xmm1, %xmm0 cvttsd2si %xmm0, %eax movl %eax, -28(%rbp) cvtsi2sdl -24(%rbp), %xmm0 movsd LCPI19_0(%rip), %xmm1 ## xmm1 = mem[0],zero divsd %xmm1, %xmm0 cvttsd2si %xmm0, %eax movl %eax, -24(%rbp) cmpl $255, -32(%rbp) jle LBB19_18 ## %bb.17: movl $255, %eax movl %eax, -80(%rbp) ## 4-byte Spill jmp LBB19_19 LBB19_18: movl -32(%rbp), %eax movl %eax, -80(%rbp) ## 4-byte Spill LBB19_19: movl -80(%rbp), %eax ## 4-byte Reload movl %eax, -32(%rbp) cmpl $255, -28(%rbp) jle LBB19_21 ## %bb.20: movl $255, %eax movl %eax, -84(%rbp) ## 4-byte Spill jmp LBB19_22 LBB19_21: movl -28(%rbp), %eax movl %eax, -84(%rbp) ## 4-byte Spill LBB19_22: movl -84(%rbp), %eax ## 4-byte Reload movl %eax, -28(%rbp) cmpl $255, -24(%rbp) jle LBB19_24 ## %bb.23: movl $255, %eax movl %eax, -88(%rbp) ## 4-byte Spill jmp LBB19_25 LBB19_24: movl -24(%rbp), %eax movl %eax, -88(%rbp) ## 4-byte Spill LBB19_25: movl -88(%rbp), %eax ## 4-byte Reload movl %eax, -24(%rbp) movq -32(%rbp), %rax movq %rax, -16(%rbp) movl -24(%rbp), %eax movl %eax, -8(%rbp) LBB19_26: movl -8(%rbp), %eax movl %eax, -56(%rbp) movq -16(%rbp), %rax movq %rax, -64(%rbp) movq -64(%rbp), %rax movl -56(%rbp), %edx popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ## -- Begin function func_16_9_5_darker LCPI20_0: .quad 0x3fe6666666666666 ## double 0.69999999999999996 .section __TEXT,__text,regular,pure_instructions .globl _func_16_9_5_darker .p2align 4, 0x90 _func_16_9_5_darker: ## @func_16_9_5_darker .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, -48(%rbp) movl %esi, -40(%rbp) movl -40(%rbp), %eax movl %eax, -24(%rbp) movq -48(%rbp), %rax movq %rax, -32(%rbp) cvtsi2sdl -32(%rbp), %xmm0 movsd LCPI20_0(%rip), %xmm1 ## xmm1 = mem[0],zero mulsd %xmm1, %xmm0 cvttsd2si %xmm0, %eax movl %eax, -32(%rbp) cvtsi2sdl -28(%rbp), %xmm0 mulsd %xmm1, %xmm0 cvttsd2si %xmm0, %eax movl %eax, -28(%rbp) cvtsi2sdl -24(%rbp), %xmm0 mulsd %xmm1, %xmm0 cvttsd2si %xmm0, %eax movl %eax, -24(%rbp) movl -24(%rbp), %eax movl %eax, -8(%rbp) movq -32(%rbp), %rax movq %rax, -16(%rbp) movl -8(%rbp), %eax movl %eax, -56(%rbp) movq -16(%rbp), %rax movq %rax, -64(%rbp) movq -64(%rbp), %rax movl -56(%rbp), %edx popq %rbp retq .cfi_endproc ## -- End function .globl _func_16_10_1_area ## -- Begin function func_16_10_1_area .p2align 4, 0x90 _func_16_10_1_area: ## @func_16_10_1_area .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -16(%rbp) movq %rsi, -8(%rbp) movl -8(%rbp), %edi subl -16(%rbp), %edi callq _abs movl -4(%rbp), %ecx subl -12(%rbp), %ecx imull %ecx, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _func_16_10_2_middle ## -- Begin function func_16_10_2_middle .p2align 4, 0x90 _func_16_10_2_middle: ## @func_16_10_2_middle .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, -24(%rbp) movq %rsi, -16(%rbp) movl -16(%rbp), %eax addl -24(%rbp), %eax movl $2, %ecx cltd idivl %ecx movl %eax, -8(%rbp) movl -12(%rbp), %eax addl -20(%rbp), %eax movl $2, %ecx cltd idivl %ecx movl %eax, -4(%rbp) movq -8(%rbp), %rax popq %rbp retq .cfi_endproc ## -- End function .globl _func_16_10_3_move ## -- Begin function func_16_10_3_move .p2align 4, 0x90 _func_16_10_3_move: ## @func_16_10_3_move .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, -32(%rbp) movq %rsi, -24(%rbp) movl %edx, -36(%rbp) movl %ecx, -40(%rbp) movl -36(%rbp), %ecx movl -24(%rbp), %eax addl %ecx, %eax movl %eax, -24(%rbp) movl -40(%rbp), %ecx movl -20(%rbp), %eax addl %ecx, %eax movl %eax, -20(%rbp) movl -36(%rbp), %ecx movl -32(%rbp), %eax addl %ecx, %eax movl %eax, -32(%rbp) movl -40(%rbp), %ecx movl -28(%rbp), %eax addl %ecx, %eax movl %eax, -28(%rbp) movups -32(%rbp), %xmm0 movaps %xmm0, -16(%rbp) movq -16(%rbp), %rax movq -8(%rbp), %rdx popq %rbp retq .cfi_endproc ## -- End function .globl _func_16_10_4_include ## -- Begin function func_16_10_4_include .p2align 4, 0x90 _func_16_10_4_include: ## @func_16_10_4_include .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -16(%rbp) movq %rsi, -8(%rbp) movq %rdx, -24(%rbp) movl -24(%rbp), %ecx xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl -8(%rbp), %ecx movb %al, -25(%rbp) ## 1-byte Spill jg LBB24_4 ## %bb.1: movl -24(%rbp), %ecx xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl -16(%rbp), %ecx movb %al, -25(%rbp) ## 1-byte Spill jl LBB24_4 ## %bb.2: movl -20(%rbp), %ecx xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl -12(%rbp), %ecx movb %al, -25(%rbp) ## 1-byte Spill jg LBB24_4 ## %bb.3: movl -20(%rbp), %eax cmpl -4(%rbp), %eax setge %al movb %al, -25(%rbp) ## 1-byte Spill LBB24_4: movb -25(%rbp), %al ## 1-byte Reload andb $1, %al movzbl %al, %eax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__literal16,16byte_literals .p2align 3 ## @__const.main.c1 L___const.main.c1: .quad 0x0000000000000000 ## double 0 .quad 0x3ff0000000000000 ## double 1 .p2align 3 ## @__const.main.c2 L___const.main.c2: .quad 0x3ff0000000000000 ## double 1 .quad 0x0000000000000000 ## double 0 .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%lu %lu %lu\n" L_.str.1: ## @.str.1 .asciz "%p %p %p\n" L_.str.2: ## @.str.2 .asciz "%d %d %d\n" .section __TEXT,__const .p2align 4 ## @__const.day_of_year.month l___const.day_of_year.month: .long 31 ## 0x1f .long 28 ## 0x1c .long 31 ## 0x1f .long 30 ## 0x1e .long 31 ## 0x1f .long 30 ## 0x1e .long 31 ## 0x1f .long 31 ## 0x1f .long 30 ## 0x1e .long 31 ## 0x1f .long 30 ## 0x1e .long 31 ## 0x1f .p2align 2 ## @__const.func_16_8.MAGENTA l___const.func_16_8.MAGENTA: .long 255 ## 0xff .long 0 ## 0x0 .long 255 ## 0xff .p2align 2 ## @__const.func_16_8.MAGENTA99 l___const.func_16_8.MAGENTA99: .long 255 ## 0xff .long 0 ## 0x0 .long 255 ## 0xff .subsections_via_symbols
the_stack_data/35686.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov x9, sp sub x8, x29, #8 str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf mov w8, #2 stur w8, [x29, #-12] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-12] ldur w9, [x29, #-8] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_6 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-8] ldur w10, [x29, #-12] sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: b LBB0_6 LBB0_4: ; in Loop: Header=BB0_1 Depth=1 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-12] add w8, w8, #1 stur w8, [x29, #-12] b LBB0_1 LBB0_6: ldur w8, [x29, #-12] ldur w9, [x29, #-8] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_8 b LBB0_7 LBB0_7: 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_9 LBB0_8: ldur w9, [x29, #-8] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf b LBB0_9 LBB0_9: 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 "plz input n=? " l_.str.1: ; @.str.1 .asciz "%d" l_.str.2: ; @.str.2 .asciz "%d is not a prime number.\n" l_.str.3: ; @.str.3 .asciz "%d is a prime number.\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) 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 $2, -12(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movl -12(%rbp), %eax cmpl -8(%rbp), %eax jge LBB0_6 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl -8(%rbp), %eax cltd idivl -12(%rbp) cmpl $0, %edx jne LBB0_4 ## %bb.3: jmp LBB0_6 LBB0_4: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_5 LBB0_5: ## in Loop: Header=BB0_1 Depth=1 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB0_1 LBB0_6: movl -12(%rbp), %eax cmpl -8(%rbp), %eax jge LBB0_8 ## %bb.7: movl -8(%rbp), %esi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf jmp LBB0_9 LBB0_8: movl -8(%rbp), %esi leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf LBB0_9: xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "plz input n=? " L_.str.1: ## @.str.1 .asciz "%d" L_.str.2: ## @.str.2 .asciz "%d is not a prime number.\n" L_.str.3: ## @.str.3 .asciz "%d is a prime number.\n" .subsections_via_symbols
the_stack_data/6387093.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _factln ; -- Begin function factln .p2align 2 _factln: ; @factln .cfi_startproc ; %bb.0: stp x28, x27, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w27, -24 .cfi_offset w28, -32 sub sp, sp, #864 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] str w0, [sp, #36] ldr w8, [sp, #36] subs w8, w8, #0 cset w8, ge tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: mov x9, sp adrp x8, l_.str.1@PAGE add x8, x8, l_.str.1@PAGEOFF str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf b LBB0_2 LBB0_2: ldr w8, [sp, #36] subs w8, w8, #1 cset w8, gt tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: movi d0, #0000000000000000 str d0, [sp, #40] b LBB0_10 LBB0_4: ldr w8, [sp, #36] subs w8, w8, #100 cset w8, gt tbnz w8, #0, LBB0_9 b LBB0_5 LBB0_5: ldrsw x9, [sp, #36] add x8, sp, #48 ldr d0, [x8, x9, lsl #3] fcmp d0, #0.0 cset w8, eq tbnz w8, #0, LBB0_7 b LBB0_6 LBB0_6: ldrsw x9, [sp, #36] add x8, sp, #48 ldr d0, [x8, x9, lsl #3] str d0, [sp, #24] ; 8-byte Folded Spill b LBB0_8 LBB0_7: ldr s1, [sp, #36] ; implicit-def: $d0 fmov s0, s1 sshll.2d v0, v0, #0 ; kill: def $d0 killed $d0 killed $q0 scvtf d0, d0 fmov d1, #1.00000000 fadd d0, d0, d1 bl _gammln ldrsw x9, [sp, #36] add x8, sp, #48 str d0, [x8, x9, lsl #3] str d0, [sp, #24] ; 8-byte Folded Spill b LBB0_8 LBB0_8: ldr d0, [sp, #24] ; 8-byte Folded Reload str d0, [sp, #40] b LBB0_10 LBB0_9: ldr s1, [sp, #36] ; implicit-def: $d0 fmov s0, s1 sshll.2d v0, v0, #0 ; kill: def $d0 killed $d0 killed $q0 scvtf d0, d0 fmov d1, #1.00000000 fadd d0, d0, d1 bl _gammln str d0, [sp, #40] b LBB0_10 LBB0_10: ldr d0, [sp, #40] str d0, [sp, #16] ; 8-byte Folded Spill ldur x9, [x29, #-24] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_12 b LBB0_11 LBB0_11: bl ___stack_chk_fail LBB0_12: ldr d0, [sp, #16] ; 8-byte Folded Reload add sp, sp, #864 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x28, x27, [sp], #32 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ; -- Begin function gammln lCPI1_0: .quad 0x40040d931ff62706 ; double 2.5066282746310007 lCPI1_1: .quad 0x3ff00000000d0ec7 ; double 1.0000000001900149 lCPI1_2: .quad 0xbed6a1181c0e9888 ; double -5.3952393849530003E-6 lCPI1_3: .quad 0x3f53cd7319ec12d8 ; double 0.001208650973866179 lCPI1_4: .quad 0xbff3b5348dcdcc8c ; double -1.231739572450155 lCPI1_5: .quad 0x4038039bf13b4cc6 ; double 24.014098240830911 lCPI1_6: .quad 0xc055a0572b143656 ; double -86.505320329416776 lCPI1_7: .quad 0x40530b869f76170a ; double 76.180091729471457 .section __TEXT,__text,regular,pure_instructions .globl _gammln .p2align 2 _gammln: ; @gammln .cfi_startproc ; %bb.0: sub sp, sp, #144 .cfi_def_cfa_offset 144 stp x29, x30, [sp, #128] ; 16-byte Folded Spill add x29, sp, #128 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] str d0, [sp, #64] sub x0, x29, #56 mov w1, #0 mov x2, #48 bl _memset adrp x8, lCPI1_7@PAGE ldr d0, [x8, lCPI1_7@PAGEOFF] stur d0, [x29, #-56] adrp x8, lCPI1_6@PAGE ldr d0, [x8, lCPI1_6@PAGEOFF] stur d0, [x29, #-48] adrp x8, lCPI1_5@PAGE ldr d0, [x8, lCPI1_5@PAGEOFF] stur d0, [x29, #-40] adrp x8, lCPI1_4@PAGE ldr d0, [x8, lCPI1_4@PAGEOFF] stur d0, [x29, #-32] adrp x8, lCPI1_3@PAGE ldr d0, [x8, lCPI1_3@PAGEOFF] stur d0, [x29, #-24] adrp x8, lCPI1_2@PAGE ldr d0, [x8, lCPI1_2@PAGEOFF] stur d0, [x29, #-16] ldr d0, [sp, #64] str d0, [sp, #48] str d0, [sp, #40] ldr d0, [sp, #48] fmov d1, #5.50000000 fadd d0, d0, d1 str d0, [sp, #32] ldr d0, [sp, #48] fmov d1, #0.50000000 fadd d0, d0, d1 str d0, [sp, #16] ; 8-byte Folded Spill ldr d0, [sp, #32] bl _log fmov d1, d0 ldr d0, [sp, #16] ; 8-byte Folded Reload ldr d2, [sp, #32] fmsub d0, d0, d1, d2 str d0, [sp, #32] adrp x8, lCPI1_1@PAGE ldr d0, [x8, lCPI1_1@PAGEOFF] str d0, [sp, #24] str wzr, [sp, #60] b LBB1_1 LBB1_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #60] subs w8, w8, #6 cset w8, ge tbnz w8, #0, LBB1_4 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 ldrsw x9, [sp, #60] sub x8, x29, #56 ldr d0, [x8, x9, lsl #3] ldr d1, [sp, #40] fmov d2, #1.00000000 fadd d1, d1, d2 str d1, [sp, #40] fdiv d1, d0, d1 ldr d0, [sp, #24] fadd d0, d0, d1 str d0, [sp, #24] b LBB1_3 LBB1_3: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #60] add w8, w8, #1 str w8, [sp, #60] b LBB1_1 LBB1_4: ldr d0, [sp, #32] fneg d0, d0 str d0, [sp] ; 8-byte Folded Spill ldr d1, [sp, #24] adrp x8, lCPI1_0@PAGE ldr d0, [x8, lCPI1_0@PAGEOFF] fmul d0, d0, d1 ldr d1, [sp, #48] fdiv d0, d0, d1 bl _log fmov d1, d0 ldr d0, [sp] ; 8-byte Folded Reload fadd d0, d0, d1 str d0, [sp, #8] ; 8-byte Folded Spill ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB1_6 b LBB1_5 LBB1_5: bl ___stack_chk_fail LBB1_6: ldr d0, [sp, #8] ; 8-byte Folded Reload ldp x29, x30, [sp, #128] ; 16-byte Folded Reload add sp, sp, #144 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%s\n" l_.str.1: ; @.str.1 .asciz "Negative factorial in routine factln" .comm _sn,8,3 ; @sn .comm _cn,8,3 ; @cn .comm _dn,8,3 ; @dn .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 factln LCPI0_0: .quad 0x3ff0000000000000 ## double 1 .section __TEXT,__text,regular,pure_instructions .globl _factln .p2align 4, 0x90 _factln: ## @factln .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $848, %rsp ## imm = 0x350 movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl %edi, -828(%rbp) cmpl $0, -828(%rbp) jge LBB0_2 ## %bb.1: leaq L_.str(%rip), %rdi leaq L_.str.1(%rip), %rsi movb $0, %al callq _printf LBB0_2: cmpl $1, -828(%rbp) jg LBB0_4 ## %bb.3: xorps %xmm0, %xmm0 movsd %xmm0, -824(%rbp) jmp LBB0_10 LBB0_4: cmpl $100, -828(%rbp) jg LBB0_9 ## %bb.5: movslq -828(%rbp), %rax movsd -816(%rbp,%rax,8), %xmm0 ## xmm0 = mem[0],zero xorps %xmm1, %xmm1 ucomisd %xmm1, %xmm0 jne LBB0_6 jp LBB0_6 jmp LBB0_7 LBB0_6: movslq -828(%rbp), %rax movsd -816(%rbp,%rax,8), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -840(%rbp) ## 8-byte Spill jmp LBB0_8 LBB0_7: cvtsi2sdl -828(%rbp), %xmm0 movsd LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero addsd %xmm1, %xmm0 callq _gammln movslq -828(%rbp), %rax movsd %xmm0, -816(%rbp,%rax,8) movsd %xmm0, -840(%rbp) ## 8-byte Spill LBB0_8: movsd -840(%rbp), %xmm0 ## 8-byte Reload ## xmm0 = mem[0],zero movsd %xmm0, -824(%rbp) jmp LBB0_10 LBB0_9: cvtsi2sdl -828(%rbp), %xmm0 movsd LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero addsd %xmm1, %xmm0 callq _gammln movsd %xmm0, -824(%rbp) LBB0_10: movsd -824(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -848(%rbp) ## 8-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_12 ## %bb.11: movsd -848(%rbp), %xmm0 ## 8-byte Reload ## xmm0 = mem[0],zero addq $848, %rsp ## imm = 0x350 popq %rbp retq LBB0_12: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ## -- Begin function gammln LCPI1_0: .quad 0x3ff00000000d0ec7 ## double 1.0000000001900149 LCPI1_1: .quad 0x3fe0000000000000 ## double 0.5 LCPI1_2: .quad 0x4016000000000000 ## double 5.5 LCPI1_3: .quad 0xbed6a1181c0e9888 ## double -5.3952393849530003E-6 LCPI1_4: .quad 0x3f53cd7319ec12d8 ## double 0.001208650973866179 LCPI1_5: .quad 0xbff3b5348dcdcc8c ## double -1.231739572450155 LCPI1_6: .quad 0x4038039bf13b4cc6 ## double 24.014098240830911 LCPI1_7: .quad 0xc055a0572b143656 ## double -86.505320329416776 LCPI1_8: .quad 0x40530b869f76170a ## double 76.180091729471457 LCPI1_9: .quad 0x40040d931ff62706 ## double 2.5066282746310007 LCPI1_10: .quad 0x3ff0000000000000 ## double 1 .section __TEXT,__text,regular,pure_instructions .globl _gammln .p2align 4, 0x90 _gammln: ## @gammln .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $144, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movsd %xmm0, -72(%rbp) leaq -64(%rbp), %rdi xorl %esi, %esi movl $48, %edx callq _memset movsd LCPI1_8(%rip), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -64(%rbp) movsd LCPI1_7(%rip), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -56(%rbp) movsd LCPI1_6(%rip), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -48(%rbp) movsd LCPI1_5(%rip), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -40(%rbp) movsd LCPI1_4(%rip), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -32(%rbp) movsd LCPI1_3(%rip), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -24(%rbp) movsd -72(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -88(%rbp) movsd %xmm0, -96(%rbp) movsd LCPI1_2(%rip), %xmm0 ## xmm0 = mem[0],zero addsd -88(%rbp), %xmm0 movsd %xmm0, -104(%rbp) movsd LCPI1_1(%rip), %xmm0 ## xmm0 = mem[0],zero addsd -88(%rbp), %xmm0 movsd %xmm0, -120(%rbp) ## 8-byte Spill movsd -104(%rbp), %xmm0 ## xmm0 = mem[0],zero callq _log movaps %xmm0, %xmm2 movsd -120(%rbp), %xmm0 ## 8-byte Reload ## xmm0 = mem[0],zero movsd -104(%rbp), %xmm1 ## xmm1 = mem[0],zero movq %xmm0, %rax movabsq $-9223372036854775808, %rcx ## imm = 0x8000000000000000 xorq %rcx, %rax movq %rax, %xmm0 mulsd %xmm2, %xmm0 addsd %xmm1, %xmm0 movsd %xmm0, -104(%rbp) movsd LCPI1_0(%rip), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -112(%rbp) movl $0, -76(%rbp) LBB1_1: ## =>This Inner Loop Header: Depth=1 cmpl $6, -76(%rbp) jge LBB1_4 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 movslq -76(%rbp), %rax movsd -64(%rbp,%rax,8), %xmm0 ## xmm0 = mem[0],zero movsd LCPI1_10(%rip), %xmm1 ## xmm1 = mem[0],zero addsd -96(%rbp), %xmm1 movsd %xmm1, -96(%rbp) divsd %xmm1, %xmm0 addsd -112(%rbp), %xmm0 movsd %xmm0, -112(%rbp) ## %bb.3: ## in Loop: Header=BB1_1 Depth=1 movl -76(%rbp), %eax addl $1, %eax movl %eax, -76(%rbp) jmp LBB1_1 LBB1_4: movsd -104(%rbp), %xmm0 ## xmm0 = mem[0],zero movq %xmm0, %rax movabsq $-9223372036854775808, %rcx ## imm = 0x8000000000000000 xorq %rcx, %rax movq %rax, %xmm0 movsd %xmm0, -136(%rbp) ## 8-byte Spill movsd LCPI1_9(%rip), %xmm0 ## xmm0 = mem[0],zero mulsd -112(%rbp), %xmm0 divsd -88(%rbp), %xmm0 callq _log movaps %xmm0, %xmm1 movsd -136(%rbp), %xmm0 ## 8-byte Reload ## xmm0 = mem[0],zero addsd %xmm1, %xmm0 movsd %xmm0, -128(%rbp) ## 8-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB1_6 ## %bb.5: movsd -128(%rbp), %xmm0 ## 8-byte Reload ## xmm0 = mem[0],zero addq $144, %rsp popq %rbp retq LBB1_6: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%s\n" L_.str.1: ## @.str.1 .asciz "Negative factorial in routine factln" .comm _sn,8,3 ## @sn .comm _cn,8,3 ## @cn .comm _dn,8,3 ## @dn .subsections_via_symbols
the_stack_data/1262883.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] stur wzr, [x29, #-12] mov x9, sp sub x8, x29, #8 str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _scanf ldur w8, [x29, #-8] add w8, w8, #1 stur w8, [x29, #-8] b LBB0_1 LBB0_1: ; =>This Loop Header: Depth=1 ; Child Loop BB0_3 Depth 2 ldur w8, [x29, #-12] mov w9, #34464 movk w9, #1, lsl #16 subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_11 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 mov w8, #1 str w8, [sp, #12] mov w8, #2 str w8, [sp, #16] b LBB0_3 LBB0_3: ; Parent Loop BB0_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #16] ldur w9, [x29, #-8] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_8 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_3 Depth=2 ldur w8, [x29, #-8] ldr w10, [sp, #16] sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_1 Depth=1 str wzr, [sp, #12] b LBB0_8 LBB0_6: ; in Loop: Header=BB0_3 Depth=2 b LBB0_7 LBB0_7: ; in Loop: Header=BB0_3 Depth=2 ldr w8, [sp, #16] add w8, w8, #1 str w8, [sp, #16] b LBB0_3 LBB0_8: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #12] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB0_10 b LBB0_9 LBB0_9: ldur w8, [x29, #-12] add w8, w8, #1 stur w8, [x29, #-12] 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 b LBB0_11 LBB0_10: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-8] add w8, w8, #1 stur w8, [x29, #-8] b LBB0_1 LBB0_11: mov w0, #0 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%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 $0, -12(%rbp) leaq L_.str(%rip), %rdi leaq -8(%rbp), %rsi movb $0, %al callq _scanf movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) LBB0_1: ## =>This Loop Header: Depth=1 ## Child Loop BB0_3 Depth 2 cmpl $100000, -12(%rbp) ## imm = 0x186A0 jge LBB0_11 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl $1, -20(%rbp) movl $2, -16(%rbp) LBB0_3: ## Parent Loop BB0_1 Depth=1 ## => This Inner Loop Header: Depth=2 movl -16(%rbp), %eax cmpl -8(%rbp), %eax jge LBB0_8 ## %bb.4: ## in Loop: Header=BB0_3 Depth=2 movl -8(%rbp), %eax cltd idivl -16(%rbp) cmpl $0, %edx jne LBB0_6 ## %bb.5: ## in Loop: Header=BB0_1 Depth=1 movl $0, -20(%rbp) jmp LBB0_8 LBB0_6: ## in Loop: Header=BB0_3 Depth=2 jmp LBB0_7 LBB0_7: ## in Loop: Header=BB0_3 Depth=2 movl -16(%rbp), %eax addl $1, %eax movl %eax, -16(%rbp) jmp LBB0_3 LBB0_8: ## in Loop: Header=BB0_1 Depth=1 cmpl $1, -20(%rbp) jne LBB0_10 ## %bb.9: movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) movl -8(%rbp), %esi leaq L_.str(%rip), %rdi movb $0, %al callq _printf jmp LBB0_11 LBB0_10: ## in Loop: Header=BB0_1 Depth=1 movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) jmp LBB0_1 LBB0_11: xorl %eax, %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d" .subsections_via_symbols
the_stack_data/68886848.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 w8, #39 strb w8, [sp, #15] mov w8, #34 strb w8, [sp, #14] mov w8, #7 strb w8, [sp, #13] mov w8, #8 strb w8, [sp, #12] mov w8, #12 strb w8, [sp, #11] mov w8, #10 strb w8, [sp, #10] mov w0, #0 add sp, sp, #16 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movb $39, -1(%rbp) movb $34, -2(%rbp) movb $7, -3(%rbp) movb $8, -4(%rbp) movb $12, -5(%rbp) movb $10, -6(%rbp) xorl %eax, %eax popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/97011643.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _increase_neighbours ; -- Begin function increase_neighbours .p2align 2 _increase_neighbours: ; @increase_neighbours .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur w0, [x29, #-4] stur w1, [x29, #-8] stur wzr, [x29, #-12] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-12] subs w8, w8, #8 cset w8, ge tbnz w8, #0, LBB0_14 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-4] ldursw x10, [x29, #-12] adrp x9, _ni@PAGE add x9, x9, _ni@PAGEOFF ldr w9, [x9, x10, lsl #2] add w8, w8, w9 str w8, [sp, #16] ldur w8, [x29, #-8] ldursw x10, [x29, #-12] adrp x9, _nj@PAGE add x9, x9, _nj@PAGEOFF ldr w9, [x9, x10, lsl #2] add w8, w8, w9 str w8, [sp, #12] str wzr, [sp, #8] ldr w8, [sp, #16] subs w8, w8, #0 cset w8, lt tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #16] adrp x9, _y@GOTPAGE ldr x9, [x9, _y@GOTPAGEOFF] ldr w9, [x9] subs w8, w8, w9 cset w8, lt tbnz w8, #0, LBB0_5 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_1 Depth=1 mov w8, #1 str w8, [sp, #8] b LBB0_5 LBB0_5: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #12] subs w8, w8, #0 cset w8, lt tbnz w8, #0, LBB0_7 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #12] adrp x9, _x@GOTPAGE ldr x9, [x9, _x@GOTPAGEOFF] ldr w9, [x9] subs w8, w8, w9 cset w8, lt tbnz w8, #0, LBB0_8 b LBB0_7 LBB0_7: ; in Loop: Header=BB0_1 Depth=1 mov w8, #1 str w8, [sp, #8] b LBB0_8 LBB0_8: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #8] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_12 b LBB0_9 LBB0_9: ; in Loop: Header=BB0_1 Depth=1 adrp x8, _m@GOTPAGE ldr x8, [x8, _m@GOTPAGEOFF] ldr x9, [x8] ldrsw x10, [sp, #16] ldr x9, [x9, x10, lsl #3] ldrsw x10, [sp, #12] add x10, x9, x10, lsl #2 ldr w9, [x10] add w9, w9, #1 str w9, [x10] ldr x8, [x8] ldrsw x9, [sp, #16] ldr x8, [x8, x9, lsl #3] ldrsw x9, [sp, #12] ldr w8, [x8, x9, lsl #2] subs w8, w8, #10 cset w8, ne tbnz w8, #0, LBB0_11 b LBB0_10 LBB0_10: ; in Loop: Header=BB0_1 Depth=1 ldr w0, [sp, #16] ldr w1, [sp, #12] bl _increase_neighbours b LBB0_11 LBB0_11: ; in Loop: Header=BB0_1 Depth=1 b LBB0_12 LBB0_12: ; in Loop: Header=BB0_1 Depth=1 b LBB0_13 LBB0_13: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-12] add w8, w8, #1 stur w8, [x29, #-12] b LBB0_1 LBB0_14: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _step ; -- Begin function step .p2align 2 _step: ; @step .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, _m@GOTPAGE ldr x8, [x8, _m@GOTPAGEOFF] str x8, [sp, #16] ; 8-byte Folded Spill adrp x9, _n_step@PAGE ldr w8, [x9, _n_step@PAGEOFF] add w8, w8, #1 str w8, [x9, _n_step@PAGEOFF] stur wzr, [x29, #-4] stur wzr, [x29, #-8] b LBB1_1 LBB1_1: ; =>This Loop Header: Depth=1 ; Child Loop BB1_3 Depth 2 ldur w8, [x29, #-8] adrp x9, _y@GOTPAGE ldr x9, [x9, _y@GOTPAGEOFF] ldr w9, [x9] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_10 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 stur wzr, [x29, #-12] b LBB1_3 LBB1_3: ; Parent Loop BB1_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldur w8, [x29, #-12] adrp x9, _x@GOTPAGE ldr x9, [x9, _x@GOTPAGEOFF] ldr w9, [x9] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_8 b LBB1_4 LBB1_4: ; in Loop: Header=BB1_3 Depth=2 ldr x8, [sp, #16] ; 8-byte Folded Reload ldr x9, [x8] ldursw x10, [x29, #-8] ldr x9, [x9, x10, lsl #3] ldursw x10, [x29, #-12] add x10, x9, x10, lsl #2 ldr w9, [x10] add w9, w9, #1 str w9, [x10] ldr x8, [x8] ldursw x9, [x29, #-8] ldr x8, [x8, x9, lsl #3] ldursw x9, [x29, #-12] ldr w8, [x8, x9, lsl #2] subs w8, w8, #10 cset w8, ne tbnz w8, #0, LBB1_6 b LBB1_5 LBB1_5: ; in Loop: Header=BB1_3 Depth=2 ldur w0, [x29, #-8] ldur w1, [x29, #-12] bl _increase_neighbours b LBB1_6 LBB1_6: ; in Loop: Header=BB1_3 Depth=2 b LBB1_7 LBB1_7: ; in Loop: Header=BB1_3 Depth=2 ldur w8, [x29, #-12] add w8, w8, #1 stur w8, [x29, #-12] b LBB1_3 LBB1_8: ; in Loop: Header=BB1_1 Depth=1 b LBB1_9 LBB1_9: ; in Loop: Header=BB1_1 Depth=1 ldur w8, [x29, #-8] add w8, w8, #1 stur w8, [x29, #-8] b LBB1_1 LBB1_10: adrp x8, _n_step@PAGE ldr w9, [x8, _n_step@PAGEOFF] ; 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 stur wzr, [x29, #-16] b LBB1_11 LBB1_11: ; =>This Loop Header: Depth=1 ; Child Loop BB1_13 Depth 2 ldur w8, [x29, #-16] adrp x9, _y@GOTPAGE ldr x9, [x9, _y@GOTPAGEOFF] ldr w9, [x9] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_20 b LBB1_12 LBB1_12: ; in Loop: Header=BB1_11 Depth=1 stur wzr, [x29, #-20] b LBB1_13 LBB1_13: ; Parent Loop BB1_11 Depth=1 ; => This Inner Loop Header: Depth=2 ldur w8, [x29, #-20] adrp x9, _x@GOTPAGE ldr x9, [x9, _x@GOTPAGEOFF] ldr w9, [x9] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_18 b LBB1_14 LBB1_14: ; in Loop: Header=BB1_13 Depth=2 ldr x8, [sp, #16] ; 8-byte Folded Reload ldr x8, [x8] ldursw x9, [x29, #-16] ldr x8, [x8, x9, lsl #3] ldursw x9, [x29, #-20] ldr w8, [x8, x9, lsl #2] subs w8, w8, #9 cset w8, le tbnz w8, #0, LBB1_16 b LBB1_15 LBB1_15: ; in Loop: Header=BB1_13 Depth=2 ldr x8, [sp, #16] ; 8-byte Folded Reload ldr x8, [x8] ldursw x9, [x29, #-16] ldr x9, [x8, x9, lsl #3] ldursw x10, [x29, #-20] mov w8, #0 str w8, [x9, x10, lsl #2] ldur w8, [x29, #-4] add w8, w8, #1 stur w8, [x29, #-4] b LBB1_16 LBB1_16: ; in Loop: Header=BB1_13 Depth=2 ldr x8, [sp, #16] ; 8-byte Folded Reload ldr x8, [x8] ldursw x9, [x29, #-16] ldr x8, [x8, x9, lsl #3] ldursw x9, [x29, #-20] ldr w9, [x8, x9, lsl #2] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf b LBB1_17 LBB1_17: ; in Loop: Header=BB1_13 Depth=2 ldur w8, [x29, #-20] add w8, w8, #1 stur w8, [x29, #-20] b LBB1_13 LBB1_18: ; in Loop: Header=BB1_11 Depth=1 adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf b LBB1_19 LBB1_19: ; in Loop: Header=BB1_11 Depth=1 ldur w8, [x29, #-16] add w8, w8, #1 stur w8, [x29, #-16] b LBB1_11 LBB1_20: ldur w0, [x29, #-4] ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #112 .cfi_def_cfa_offset 112 stp x29, x30, [sp, #96] ; 16-byte Folded Spill add x29, sp, #96 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, _y@GOTPAGE ldr x8, [x8, _y@GOTPAGEOFF] str x8, [sp, #16] ; 8-byte Folded Spill adrp x8, _x@GOTPAGE ldr x8, [x8, _x@GOTPAGEOFF] str x8, [sp, #24] ; 8-byte Folded Spill adrp x8, _m@GOTPAGE ldr x8, [x8, _m@GOTPAGEOFF] str x8, [sp, #32] ; 8-byte Folded Spill stur wzr, [x29, #-4] stur w0, [x29, #-8] stur x1, [x29, #-16] ldur w8, [x29, #-8] subs w8, w8, #1 cset w8, gt and w8, w8, #0x1 stur w8, [x29, #-20] ldur w8, [x29, #-20] subs w8, w8, #0 cset w8, ne and w10, w8, #0x1 adrp x9, l_.str.4@PAGE add x9, x9, l_.str.4@PAGEOFF adrp x8, l_.str.3@PAGE add x8, x8, l_.str.3@PAGEOFF ands w10, w10, #0x1 csel x0, x8, x9, ne adrp x1, l_.str.5@PAGE add x1, x1, l_.str.5@PAGEOFF bl _fopen stur x0, [x29, #-32] ldur x8, [x29, #-32] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB2_2 b LBB2_1 LBB2_1: adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _printf mov w8, #1 stur w8, [x29, #-4] b LBB2_31 LBB2_2: ldr x8, [sp, #24] ; 8-byte Folded Reload ldr x9, [sp, #16] ; 8-byte Folded Reload str wzr, [x9] str wzr, [x8] stur wzr, [x29, #-36] b LBB2_3 LBB2_3: ; =>This Inner Loop Header: Depth=1 ldur x0, [x29, #-32] bl _fgetc sturb w0, [x29, #-37] ldursb w8, [x29, #-37] subs w8, w8, #10 cset w8, ne tbnz w8, #0, LBB2_5 b LBB2_4 LBB2_4: ; in Loop: Header=BB2_3 Depth=1 ldr x10, [sp, #16] ; 8-byte Folded Reload ldr w9, [x10] mov w8, #1 add w9, w9, #1 str w9, [x10] stur w8, [x29, #-36] b LBB2_3 LBB2_5: ; in Loop: Header=BB2_3 Depth=1 ldursb w8, [x29, #-37] adds w8, w8, #1 cset w8, ne tbnz w8, #0, LBB2_7 b LBB2_6 LBB2_6: b LBB2_11 LBB2_7: ; in Loop: Header=BB2_3 Depth=1 b LBB2_8 LBB2_8: ; in Loop: Header=BB2_3 Depth=1 ldur w8, [x29, #-36] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB2_10 b LBB2_9 LBB2_9: ; in Loop: Header=BB2_3 Depth=1 ldr x9, [sp, #24] ; 8-byte Folded Reload ldr w8, [x9] add w8, w8, #1 str w8, [x9] b LBB2_10 LBB2_10: ; in Loop: Header=BB2_3 Depth=1 b LBB2_3 LBB2_11: ldur x0, [x29, #-32] bl _rewind ldr x8, [sp, #24] ; 8-byte Folded Reload ldr x9, [sp, #16] ; 8-byte Folded Reload ldr w8, [x8] ldr w9, [x9] mul w9, w8, w9 ; implicit-def: $x8 mov x8, x9 sxtw x8, w8 lsl x0, x8, #2 bl _malloc ldr x8, [sp, #32] ; 8-byte Folded Reload str x0, [x8] stur wzr, [x29, #-44] b LBB2_12 LBB2_12: ; =>This Inner Loop Header: Depth=1 ldr x9, [sp, #16] ; 8-byte Folded Reload ldur w8, [x29, #-44] ldr w9, [x9] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB2_15 b LBB2_13 LBB2_13: ; in Loop: Header=BB2_12 Depth=1 ldr x8, [sp, #24] ; 8-byte Folded Reload ldrsw x8, [x8] lsl x0, x8, #2 bl _malloc ldr x8, [sp, #32] ; 8-byte Folded Reload ldr x8, [x8] ldursw x9, [x29, #-44] str x0, [x8, x9, lsl #3] b LBB2_14 LBB2_14: ; in Loop: Header=BB2_12 Depth=1 ldur w8, [x29, #-44] add w8, w8, #1 stur w8, [x29, #-44] b LBB2_12 LBB2_15: str wzr, [sp, #48] b LBB2_16 LBB2_16: ; =>This Loop Header: Depth=1 ; Child Loop BB2_18 Depth 2 ldr x9, [sp, #16] ; 8-byte Folded Reload ldr w8, [sp, #48] ldr w9, [x9] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB2_23 b LBB2_17 LBB2_17: ; in Loop: Header=BB2_16 Depth=1 str wzr, [sp, #44] b LBB2_18 LBB2_18: ; Parent Loop BB2_16 Depth=1 ; => This Inner Loop Header: Depth=2 ldr x9, [sp, #24] ; 8-byte Folded Reload ldr w8, [sp, #44] ldr w9, [x9] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB2_21 b LBB2_19 LBB2_19: ; in Loop: Header=BB2_18 Depth=2 ldur x0, [x29, #-32] bl _fgetc ldr x9, [sp, #32] ; 8-byte Folded Reload subs w8, w0, #48 ldr x9, [x9] ldrsw x10, [sp, #48] ldr x9, [x9, x10, lsl #3] ldrsw x10, [sp, #44] str w8, [x9, x10, lsl #2] b LBB2_20 LBB2_20: ; in Loop: Header=BB2_18 Depth=2 ldr w8, [sp, #44] add w8, w8, #1 str w8, [sp, #44] b LBB2_18 LBB2_21: ; in Loop: Header=BB2_16 Depth=1 ldur x0, [x29, #-32] bl _fgetc b LBB2_22 LBB2_22: ; in Loop: Header=BB2_16 Depth=1 ldr w8, [sp, #48] add w8, w8, #1 str w8, [sp, #48] b LBB2_16 LBB2_23: b LBB2_24 LBB2_24: ; =>This Inner Loop Header: Depth=1 bl _step ldr x8, [sp, #24] ; 8-byte Folded Reload ldr x9, [sp, #16] ; 8-byte Folded Reload ldr w8, [x8] ldr w9, [x9] mul w8, w8, w9 subs w8, w0, w8 cset w8, eq tbnz w8, #0, LBB2_26 b LBB2_25 LBB2_25: ; in Loop: Header=BB2_24 Depth=1 b LBB2_24 LBB2_26: adrp x8, _n_step@PAGE ldr w9, [x8, _n_step@PAGEOFF] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.7@PAGE add x0, x0, l_.str.7@PAGEOFF bl _printf str wzr, [sp, #40] b LBB2_27 LBB2_27: ; =>This Inner Loop Header: Depth=1 ldr x9, [sp, #16] ; 8-byte Folded Reload ldr w8, [sp, #40] ldr w9, [x9] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB2_30 b LBB2_28 LBB2_28: ; in Loop: Header=BB2_27 Depth=1 ldr x8, [sp, #32] ; 8-byte Folded Reload ldr x8, [x8] ldrsw x9, [sp, #40] ldr x0, [x8, x9, lsl #3] bl _free b LBB2_29 LBB2_29: ; in Loop: Header=BB2_27 Depth=1 ldr w8, [sp, #40] add w8, w8, #1 str w8, [sp, #40] b LBB2_27 LBB2_30: ldr x8, [sp, #32] ; 8-byte Folded Reload ldr x0, [x8] bl _free stur wzr, [x29, #-4] b LBB2_31 LBB2_31: ldur w0, [x29, #-4] ldp x29, x30, [sp, #96] ; 16-byte Folded Reload add sp, sp, #112 ret .cfi_endproc ; -- End function .globl _n_step ; @n_step .zerofill __DATA,__common,_n_step,4,2 .section __DATA,__data .globl _ni ; @ni .p2align 2 _ni: .long 4294967295 ; 0xffffffff .long 4294967295 ; 0xffffffff .long 4294967295 ; 0xffffffff .long 0 ; 0x0 .long 0 ; 0x0 .long 1 ; 0x1 .long 1 ; 0x1 .long 1 ; 0x1 .globl _nj ; @nj .p2align 2 _nj: .long 4294967295 ; 0xffffffff .long 0 ; 0x0 .long 1 ; 0x1 .long 4294967295 ; 0xffffffff .long 1 ; 0x1 .long 4294967295 ; 0xffffffff .long 0 ; 0x0 .long 1 ; 0x1 .comm _y,4,2 ; @y .comm _x,4,2 ; @x .comm _m,8,3 ; @m .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "\nAfter step %i\n" l_.str.1: ; @.str.1 .asciz "%i" l_.str.2: ; @.str.2 .asciz "\n" l_.str.3: ; @.str.3 .asciz "d11_input" l_.str.4: ; @.str.4 .asciz "d11_short_input" l_.str.5: ; @.str.5 .asciz "r" l_.str.6: ; @.str.6 .asciz "cant read file\n" l_.str.7: ; @.str.7 .asciz "\nflashes synchronised after %i steps\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _increase_neighbours ## -- Begin function increase_neighbours .p2align 4, 0x90 _increase_neighbours: ## @increase_neighbours .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl %edi, -4(%rbp) movl %esi, -8(%rbp) movl $0, -12(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 cmpl $8, -12(%rbp) jge LBB0_14 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl -4(%rbp), %eax movslq -12(%rbp), %rdx leaq _ni(%rip), %rcx addl (%rcx,%rdx,4), %eax movl %eax, -16(%rbp) movl -8(%rbp), %eax movslq -12(%rbp), %rdx leaq _nj(%rip), %rcx addl (%rcx,%rdx,4), %eax movl %eax, -20(%rbp) movl $0, -24(%rbp) cmpl $0, -16(%rbp) jl LBB0_4 ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movl -16(%rbp), %eax movq _y@GOTPCREL(%rip), %rcx cmpl (%rcx), %eax jl LBB0_5 LBB0_4: ## in Loop: Header=BB0_1 Depth=1 movl $1, -24(%rbp) LBB0_5: ## in Loop: Header=BB0_1 Depth=1 cmpl $0, -20(%rbp) jl LBB0_7 ## %bb.6: ## in Loop: Header=BB0_1 Depth=1 movl -20(%rbp), %eax movq _x@GOTPCREL(%rip), %rcx cmpl (%rcx), %eax jl LBB0_8 LBB0_7: ## in Loop: Header=BB0_1 Depth=1 movl $1, -24(%rbp) LBB0_8: ## in Loop: Header=BB0_1 Depth=1 cmpl $0, -24(%rbp) jne LBB0_12 ## %bb.9: ## in Loop: Header=BB0_1 Depth=1 movq _m@GOTPCREL(%rip), %rax movq (%rax), %rax movslq -16(%rbp), %rcx movq (%rax,%rcx,8), %rax movslq -20(%rbp), %rcx movl (%rax,%rcx,4), %edx addl $1, %edx movl %edx, (%rax,%rcx,4) movq _m@GOTPCREL(%rip), %rax movq (%rax), %rax movslq -16(%rbp), %rcx movq (%rax,%rcx,8), %rax movslq -20(%rbp), %rcx cmpl $10, (%rax,%rcx,4) jne LBB0_11 ## %bb.10: ## in Loop: Header=BB0_1 Depth=1 movl -16(%rbp), %edi movl -20(%rbp), %esi callq _increase_neighbours LBB0_11: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_12 LBB0_12: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_13 LBB0_13: ## in Loop: Header=BB0_1 Depth=1 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB0_1 LBB0_14: addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _step ## -- Begin function step .p2align 4, 0x90 _step: ## @step .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 _n_step(%rip), %eax addl $1, %eax movl %eax, _n_step(%rip) movl $0, -4(%rbp) movl $0, -8(%rbp) LBB1_1: ## =>This Loop Header: Depth=1 ## Child Loop BB1_3 Depth 2 movl -8(%rbp), %eax movq _y@GOTPCREL(%rip), %rcx cmpl (%rcx), %eax jge LBB1_10 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 movl $0, -12(%rbp) LBB1_3: ## Parent Loop BB1_1 Depth=1 ## => This Inner Loop Header: Depth=2 movl -12(%rbp), %eax movq _x@GOTPCREL(%rip), %rcx cmpl (%rcx), %eax jge LBB1_8 ## %bb.4: ## in Loop: Header=BB1_3 Depth=2 movq _m@GOTPCREL(%rip), %rax movq (%rax), %rax movslq -8(%rbp), %rcx movq (%rax,%rcx,8), %rax movslq -12(%rbp), %rcx movl (%rax,%rcx,4), %edx addl $1, %edx movl %edx, (%rax,%rcx,4) movq _m@GOTPCREL(%rip), %rax movq (%rax), %rax movslq -8(%rbp), %rcx movq (%rax,%rcx,8), %rax movslq -12(%rbp), %rcx cmpl $10, (%rax,%rcx,4) jne LBB1_6 ## %bb.5: ## in Loop: Header=BB1_3 Depth=2 movl -8(%rbp), %edi movl -12(%rbp), %esi callq _increase_neighbours LBB1_6: ## in Loop: Header=BB1_3 Depth=2 jmp LBB1_7 LBB1_7: ## in Loop: Header=BB1_3 Depth=2 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB1_3 LBB1_8: ## in Loop: Header=BB1_1 Depth=1 jmp LBB1_9 LBB1_9: ## in Loop: Header=BB1_1 Depth=1 movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) jmp LBB1_1 LBB1_10: movl _n_step(%rip), %esi leaq L_.str(%rip), %rdi movb $0, %al callq _printf movl $0, -16(%rbp) LBB1_11: ## =>This Loop Header: Depth=1 ## Child Loop BB1_13 Depth 2 movl -16(%rbp), %eax movq _y@GOTPCREL(%rip), %rcx cmpl (%rcx), %eax jge LBB1_20 ## %bb.12: ## in Loop: Header=BB1_11 Depth=1 movl $0, -20(%rbp) LBB1_13: ## Parent Loop BB1_11 Depth=1 ## => This Inner Loop Header: Depth=2 movl -20(%rbp), %eax movq _x@GOTPCREL(%rip), %rcx cmpl (%rcx), %eax jge LBB1_18 ## %bb.14: ## in Loop: Header=BB1_13 Depth=2 movq _m@GOTPCREL(%rip), %rax movq (%rax), %rax movslq -16(%rbp), %rcx movq (%rax,%rcx,8), %rax movslq -20(%rbp), %rcx cmpl $9, (%rax,%rcx,4) jle LBB1_16 ## %bb.15: ## in Loop: Header=BB1_13 Depth=2 movq _m@GOTPCREL(%rip), %rax movq (%rax), %rax movslq -16(%rbp), %rcx movq (%rax,%rcx,8), %rax movslq -20(%rbp), %rcx movl $0, (%rax,%rcx,4) movl -4(%rbp), %eax addl $1, %eax movl %eax, -4(%rbp) LBB1_16: ## in Loop: Header=BB1_13 Depth=2 movq _m@GOTPCREL(%rip), %rax movq (%rax), %rax movslq -16(%rbp), %rcx movq (%rax,%rcx,8), %rax movslq -20(%rbp), %rcx movl (%rax,%rcx,4), %esi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf ## %bb.17: ## in Loop: Header=BB1_13 Depth=2 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB1_13 LBB1_18: ## in Loop: Header=BB1_11 Depth=1 leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf ## %bb.19: ## in Loop: Header=BB1_11 Depth=1 movl -16(%rbp), %eax addl $1, %eax movl %eax, -16(%rbp) jmp LBB1_11 LBB1_20: movl -4(%rbp), %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $64, %rsp movl $0, -4(%rbp) movl %edi, -8(%rbp) movq %rsi, -16(%rbp) cmpl $1, -8(%rbp) setg %al andb $1, %al movzbl %al, %eax movl %eax, -20(%rbp) movl -20(%rbp), %ecx leaq L_.str.4(%rip), %rdi leaq L_.str.3(%rip), %rax cmpl $0, %ecx cmovneq %rax, %rdi leaq L_.str.5(%rip), %rsi callq _fopen movq %rax, -32(%rbp) cmpq $0, -32(%rbp) jne LBB2_2 ## %bb.1: leaq L_.str.6(%rip), %rdi movb $0, %al callq _printf movl $1, -4(%rbp) jmp LBB2_31 LBB2_2: movq _y@GOTPCREL(%rip), %rax movl $0, (%rax) movq _x@GOTPCREL(%rip), %rax movl $0, (%rax) movl $0, -36(%rbp) LBB2_3: ## =>This Inner Loop Header: Depth=1 movq -32(%rbp), %rdi callq _fgetc ## kill: def $al killed $al killed $eax movb %al, -37(%rbp) movsbl -37(%rbp), %eax cmpl $10, %eax jne LBB2_5 ## %bb.4: ## in Loop: Header=BB2_3 Depth=1 movq _y@GOTPCREL(%rip), %rax movl (%rax), %ecx addl $1, %ecx movq _y@GOTPCREL(%rip), %rax movl %ecx, (%rax) movl $1, -36(%rbp) jmp LBB2_3 LBB2_5: ## in Loop: Header=BB2_3 Depth=1 movsbl -37(%rbp), %eax cmpl $-1, %eax jne LBB2_7 ## %bb.6: jmp LBB2_11 LBB2_7: ## in Loop: Header=BB2_3 Depth=1 jmp LBB2_8 LBB2_8: ## in Loop: Header=BB2_3 Depth=1 cmpl $0, -36(%rbp) jne LBB2_10 ## %bb.9: ## in Loop: Header=BB2_3 Depth=1 movq _x@GOTPCREL(%rip), %rax movl (%rax), %ecx addl $1, %ecx movq _x@GOTPCREL(%rip), %rax movl %ecx, (%rax) LBB2_10: ## in Loop: Header=BB2_3 Depth=1 jmp LBB2_3 LBB2_11: movq -32(%rbp), %rdi callq _rewind movq _x@GOTPCREL(%rip), %rax movl (%rax), %eax movq _y@GOTPCREL(%rip), %rcx imull (%rcx), %eax movslq %eax, %rdi shlq $2, %rdi callq _malloc movq %rax, %rcx movq _m@GOTPCREL(%rip), %rax movq %rcx, (%rax) movl $0, -44(%rbp) LBB2_12: ## =>This Inner Loop Header: Depth=1 movl -44(%rbp), %eax movq _y@GOTPCREL(%rip), %rcx cmpl (%rcx), %eax jge LBB2_15 ## %bb.13: ## in Loop: Header=BB2_12 Depth=1 movq _x@GOTPCREL(%rip), %rax movslq (%rax), %rdi shlq $2, %rdi callq _malloc movq %rax, %rdx movq _m@GOTPCREL(%rip), %rax movq (%rax), %rax movslq -44(%rbp), %rcx movq %rdx, (%rax,%rcx,8) ## %bb.14: ## in Loop: Header=BB2_12 Depth=1 movl -44(%rbp), %eax addl $1, %eax movl %eax, -44(%rbp) jmp LBB2_12 LBB2_15: movl $0, -48(%rbp) LBB2_16: ## =>This Loop Header: Depth=1 ## Child Loop BB2_18 Depth 2 movl -48(%rbp), %eax movq _y@GOTPCREL(%rip), %rcx cmpl (%rcx), %eax jge LBB2_23 ## %bb.17: ## in Loop: Header=BB2_16 Depth=1 movl $0, -52(%rbp) LBB2_18: ## Parent Loop BB2_16 Depth=1 ## => This Inner Loop Header: Depth=2 movl -52(%rbp), %eax movq _x@GOTPCREL(%rip), %rcx cmpl (%rcx), %eax jge LBB2_21 ## %bb.19: ## in Loop: Header=BB2_18 Depth=2 movq -32(%rbp), %rdi callq _fgetc movl %eax, %edx subl $48, %edx movq _m@GOTPCREL(%rip), %rax movq (%rax), %rax movslq -48(%rbp), %rcx movq (%rax,%rcx,8), %rax movslq -52(%rbp), %rcx movl %edx, (%rax,%rcx,4) ## %bb.20: ## in Loop: Header=BB2_18 Depth=2 movl -52(%rbp), %eax addl $1, %eax movl %eax, -52(%rbp) jmp LBB2_18 LBB2_21: ## in Loop: Header=BB2_16 Depth=1 movq -32(%rbp), %rdi callq _fgetc ## %bb.22: ## in Loop: Header=BB2_16 Depth=1 movl -48(%rbp), %eax addl $1, %eax movl %eax, -48(%rbp) jmp LBB2_16 LBB2_23: jmp LBB2_24 LBB2_24: ## =>This Inner Loop Header: Depth=1 callq _step movq _x@GOTPCREL(%rip), %rcx movl (%rcx), %ecx movq _y@GOTPCREL(%rip), %rdx imull (%rdx), %ecx cmpl %ecx, %eax je LBB2_26 ## %bb.25: ## in Loop: Header=BB2_24 Depth=1 jmp LBB2_24 LBB2_26: movl _n_step(%rip), %esi leaq L_.str.7(%rip), %rdi movb $0, %al callq _printf movl $0, -56(%rbp) LBB2_27: ## =>This Inner Loop Header: Depth=1 movl -56(%rbp), %eax movq _y@GOTPCREL(%rip), %rcx cmpl (%rcx), %eax jge LBB2_30 ## %bb.28: ## in Loop: Header=BB2_27 Depth=1 movq _m@GOTPCREL(%rip), %rax movq (%rax), %rax movslq -56(%rbp), %rcx movq (%rax,%rcx,8), %rdi callq _free ## %bb.29: ## in Loop: Header=BB2_27 Depth=1 movl -56(%rbp), %eax addl $1, %eax movl %eax, -56(%rbp) jmp LBB2_27 LBB2_30: movq _m@GOTPCREL(%rip), %rax movq (%rax), %rdi callq _free movl $0, -4(%rbp) LBB2_31: movl -4(%rbp), %eax addq $64, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _n_step ## @n_step .zerofill __DATA,__common,_n_step,4,2 .section __DATA,__data .globl _ni ## @ni .p2align 4 _ni: .long 4294967295 ## 0xffffffff .long 4294967295 ## 0xffffffff .long 4294967295 ## 0xffffffff .long 0 ## 0x0 .long 0 ## 0x0 .long 1 ## 0x1 .long 1 ## 0x1 .long 1 ## 0x1 .globl _nj ## @nj .p2align 4 _nj: .long 4294967295 ## 0xffffffff .long 0 ## 0x0 .long 1 ## 0x1 .long 4294967295 ## 0xffffffff .long 1 ## 0x1 .long 4294967295 ## 0xffffffff .long 0 ## 0x0 .long 1 ## 0x1 .comm _y,4,2 ## @y .comm _x,4,2 ## @x .comm _m,8,3 ## @m .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "\nAfter step %i\n" L_.str.1: ## @.str.1 .asciz "%i" L_.str.2: ## @.str.2 .asciz "\n" L_.str.3: ## @.str.3 .asciz "d11_input" L_.str.4: ## @.str.4 .asciz "d11_short_input" L_.str.5: ## @.str.5 .asciz "r" L_.str.6: ## @.str.6 .asciz "cant read file\n" L_.str.7: ## @.str.7 .asciz "\nflashes synchronised after %i steps\n" .subsections_via_symbols
the_stack_data/13248.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #96 .cfi_def_cfa_offset 96 stp x29, x30, [sp, #80] ; 16-byte Folded Spill add x29, sp, #80 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] str x8, [sp, #24] ; 8-byte Folded Spill stur wzr, [x29, #-4] stur w0, [x29, #-8] stur x1, [x29, #-16] mov x8, #256 movk x8, #16, lsl #16 str x8, [sp, #40] ldur w8, [x29, #-8] subs w8, w8, #2 cset w8, ge tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: ldr x8, [sp, #24] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF bl _fprintf mov w0, #1 bl _exit LBB0_2: ldur w8, [x29, #-8] subs w8, w8, #2 cset w8, le tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: ldr x8, [sp, #24] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF bl _fprintf mov w0, #1 bl _exit LBB0_4: ldur x8, [x29, #-16] ldr x0, [x8, #8] adrp x1, l_.str.2@PAGE add x1, x1, l_.str.2@PAGEOFF bl _fopen stur x0, [x29, #-24] ldur x8, [x29, #-24] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: ldr x8, [sp, #24] ; 8-byte Folded Reload ldr x0, [x8] ldur x8, [x29, #-16] ldr x8, [x8, #8] mov x9, sp str x8, [x9] adrp x1, l_.str.3@PAGE add x1, x1, l_.str.3@PAGEOFF bl _fprintf mov w0, #1 bl _exit LBB0_6: b LBB0_7 LBB0_7: ; =>This Loop Header: Depth=1 ; Child Loop BB0_9 Depth 2 ldur x0, [x29, #-24] bl _feof subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB0_14 b LBB0_8 LBB0_8: ; in Loop: Header=BB0_7 Depth=1 stur wzr, [x29, #-32] mov w8, #255 strb w8, [sp, #39] ldr x8, [sp, #40] mov x9, sp adrp x10, l_.str.5@PAGE add x10, x10, l_.str.5@PAGEOFF str x10, [x9] str x8, [x9, #8] adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf b LBB0_9 LBB0_9: ; Parent Loop BB0_7 Depth=1 ; => This Inner Loop Header: Depth=2 ldur w8, [x29, #-32] subs w8, w8, #16 cset w8, ge tbnz w8, #0, LBB0_13 b LBB0_10 LBB0_10: ; in Loop: Header=BB0_9 Depth=2 ldur x0, [x29, #-24] bl _fgetc stur w0, [x29, #-28] ldur w8, [x29, #-28] adds w8, w8, #1 cset w8, ne tbnz w8, #0, LBB0_12 b LBB0_11 LBB0_11: ; in Loop: Header=BB0_9 Depth=2 stur wzr, [x29, #-28] b LBB0_12 LBB0_12: ; in Loop: Header=BB0_9 Depth=2 ldur w9, [x29, #-28] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _printf ldur w9, [x29, #-28] ldrb w8, [sp, #39] subs w8, w8, w9 strb w8, [sp, #39] ldur w8, [x29, #-32] add w8, w8, #1 stur w8, [x29, #-32] b LBB0_9 LBB0_13: ; in Loop: Header=BB0_7 Depth=1 ldrb w8, [sp, #40] mov x9, x8 ldrb w8, [sp, #39] ; kill: def $x8 killed $w8 subs x8, x8, x9 ; kill: def $w8 killed $w8 killed $x8 strb w8, [sp, #39] ldr x8, [sp, #40] lsr x8, x8, #8 mov x9, x8 ldrb w8, [sp, #39] ; kill: def $x8 killed $w8 subs x8, x8, w9, uxtb ; kill: def $w8 killed $w8 killed $x8 strb w8, [sp, #39] ldr x8, [sp, #40] lsr x8, x8, #16 mov x9, x8 ldrb w8, [sp, #39] ; kill: def $x8 killed $w8 subs x8, x8, w9, uxtb ; kill: def $w8 killed $w8 killed $x8 strb w8, [sp, #39] ldrb w8, [sp, #39] subs w8, w8, #20 strb w8, [sp, #39] ldrb w10, [sp, #39] mov x9, sp ; implicit-def: $x8 mov x8, x10 str x8, [x9] adrp x0, l_.str.7@PAGE add x0, x0, l_.str.7@PAGEOFF bl _printf ldr x8, [sp, #40] add x8, x8, #16 str x8, [sp, #40] b LBB0_7 LBB0_14: mov w0, #0 ldp x29, x30, [sp, #80] ; 16-byte Folded Reload add sp, sp, #96 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "no input file specified\n" l_.str.1: ; @.str.1 .asciz "too many input files (more than one) specified\n" l_.str.2: ; @.str.2 .asciz "r" l_.str.3: ; @.str.3 .asciz "failed to open input file: %s\n" l_.str.4: ; @.str.4 .asciz "%s%.6lx" l_.str.5: ; @.str.5 .asciz "S214" l_.str.6: ; @.str.6 .asciz "%.2x" l_.str.7: ; @.str.7 .asciz "%.2x\r\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movl $0, -4(%rbp) movl %edi, -8(%rbp) movq %rsi, -16(%rbp) movq $1048832, -40(%rbp) ## imm = 0x100100 cmpl $2, -8(%rbp) jge LBB0_2 ## %bb.1: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str(%rip), %rsi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _fprintf movl $1, %edi callq _exit LBB0_2: cmpl $2, -8(%rbp) jle LBB0_4 ## %bb.3: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.1(%rip), %rsi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _fprintf movl $1, %edi callq _exit LBB0_4: movq -16(%rbp), %rax movq 8(%rax), %rdi leaq L_.str.2(%rip), %rsi callq _fopen movq %rax, -24(%rbp) cmpq $0, -24(%rbp) jne LBB0_6 ## %bb.5: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movq -16(%rbp), %rax movq 8(%rax), %rdx leaq L_.str.3(%rip), %rsi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _fprintf movl $1, %edi callq _exit LBB0_6: jmp LBB0_7 LBB0_7: ## =>This Loop Header: Depth=1 ## Child Loop BB0_9 Depth 2 movq -24(%rbp), %rdi callq _feof cmpl $0, %eax setne %al xorb $-1, %al testb $1, %al jne LBB0_8 jmp LBB0_14 LBB0_8: ## in Loop: Header=BB0_7 Depth=1 movl $0, -32(%rbp) movb $-1, -41(%rbp) movq -40(%rbp), %rdx leaq L_.str.4(%rip), %rdi leaq L_.str.5(%rip), %rsi movb $0, %al callq _printf LBB0_9: ## Parent Loop BB0_7 Depth=1 ## => This Inner Loop Header: Depth=2 cmpl $16, -32(%rbp) jge LBB0_13 ## %bb.10: ## in Loop: Header=BB0_9 Depth=2 movq -24(%rbp), %rdi callq _fgetc movl %eax, -28(%rbp) cmpl $-1, -28(%rbp) jne LBB0_12 ## %bb.11: ## in Loop: Header=BB0_9 Depth=2 movl $0, -28(%rbp) LBB0_12: ## in Loop: Header=BB0_9 Depth=2 movl -28(%rbp), %esi leaq L_.str.6(%rip), %rdi movb $0, %al callq _printf movl -28(%rbp), %ecx movzbl -41(%rbp), %eax subl %ecx, %eax ## kill: def $al killed $al killed $eax movb %al, -41(%rbp) movl -32(%rbp), %eax addl $1, %eax movl %eax, -32(%rbp) jmp LBB0_9 LBB0_13: ## in Loop: Header=BB0_7 Depth=1 movq -40(%rbp), %rcx andq $255, %rcx movzbl -41(%rbp), %eax ## kill: def $rax killed $eax subq %rcx, %rax ## kill: def $al killed $al killed $rax movb %al, -41(%rbp) movq -40(%rbp), %rcx shrq $8, %rcx andq $255, %rcx movzbl -41(%rbp), %eax ## kill: def $rax killed $eax subq %rcx, %rax ## kill: def $al killed $al killed $rax movb %al, -41(%rbp) movq -40(%rbp), %rcx shrq $16, %rcx andq $255, %rcx movzbl -41(%rbp), %eax ## kill: def $rax killed $eax subq %rcx, %rax ## kill: def $al killed $al killed $rax movb %al, -41(%rbp) movzbl -41(%rbp), %eax subl $20, %eax ## kill: def $al killed $al killed $eax movb %al, -41(%rbp) movzbl -41(%rbp), %esi leaq L_.str.7(%rip), %rdi movb $0, %al callq _printf movq -40(%rbp), %rax addq $16, %rax movq %rax, -40(%rbp) jmp LBB0_7 LBB0_14: xorl %eax, %eax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "no input file specified\n" L_.str.1: ## @.str.1 .asciz "too many input files (more than one) specified\n" L_.str.2: ## @.str.2 .asciz "r" L_.str.3: ## @.str.3 .asciz "failed to open input file: %s\n" L_.str.4: ## @.str.4 .asciz "%s%.6lx" L_.str.5: ## @.str.5 .asciz "S214" L_.str.6: ## @.str.6 .asciz "%.2x" L_.str.7: ## @.str.7 .asciz "%.2x\r\n" .subsections_via_symbols
the_stack_data/48575466.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] mov w8, #1 stur w8, [x29, #-12] str wzr, [sp, #16] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-12] subs w8, w8, #10 cset w8, gt tbnz w8, #0, LBB0_5 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldur w9, [x29, #-12] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov x9, sp sub x8, x29, #8 str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf ldur w8, [x29, #-8] mov w10, #2 sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #16] add w8, w8, #1 str w8, [sp, #16] 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: ldr w9, [sp, #16] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf ldur w0, [x29, #-4] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Digite o Numero %d:" l_.str.1: ; @.str.1 .asciz "%d" l_.str.2: ; @.str.2 .asciz "A quantidade dos numeros pares: %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, -12(%rbp) movl $0, -16(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 cmpl $10, -12(%rbp) jg LBB0_5 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl -12(%rbp), %esi leaq L_.str(%rip), %rdi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi leaq -8(%rbp), %rsi movb $0, %al callq _scanf movl -8(%rbp), %eax movl $2, %ecx cltd idivl %ecx cmpl $0, %edx jne LBB0_4 ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movl -16(%rbp), %eax addl $1, %eax movl %eax, -16(%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: movl -16(%rbp), %esi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf movl -4(%rbp), %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Digite o Numero %d:" L_.str.1: ## @.str.1 .asciz "%d" L_.str.2: ## @.str.2 .asciz "A quantidade dos numeros pares: %d \n" .subsections_via_symbols
the_stack_data/90765765.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _log10f ; -- Begin function log10f .p2align 2 _log10f: ; @log10f .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur s0, [x29, #-4] ldur s0, [x29, #-4] bl _logf mov w8, #23950 movk w8, #16403, lsl #16 fmov s1, w8 fdiv s0, s0, s1 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 .section __TEXT,__literal4,4byte_literals .p2align 2 ## -- Begin function log10f LCPI0_0: .long 0x40135d8e ## float 2.30258512 .section __TEXT,__text,regular,pure_instructions .globl _log10f .p2align 4, 0x90 _log10f: ## @log10f .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movss %xmm0, -4(%rbp) movss -4(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero callq _logf movss LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero divss %xmm1, %xmm0 addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/64946.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #80 .cfi_def_cfa_offset 80 stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp, #64 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] mov x9, sp sub x8, x29, #8 str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF str x0, [sp, #16] ; 8-byte Folded Spill bl _scanf ldr x0, [sp, #16] ; 8-byte Folded Reload mov x9, sp sub x8, x29, #12 str x8, [x9] bl _scanf ldr x0, [sp, #16] ; 8-byte Folded Reload mov x9, sp sub x8, x29, #16 str x8, [x9] bl _scanf ldur w8, [x29, #-12] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB0_9 b LBB0_1 LBB0_1: ldur w8, [x29, #-16] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf b LBB0_8 LBB0_3: str wzr, [sp, #28] b LBB0_4 LBB0_4: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #28] ldur w9, [x29, #-16] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_7 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_4 Depth=1 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_6 LBB0_6: ; in Loop: Header=BB0_4 Depth=1 ldr w8, [sp, #28] add w8, w8, #1 str w8, [sp, #28] b LBB0_4 LBB0_7: b LBB0_8 LBB0_8: b LBB0_33 LBB0_9: ldur w8, [x29, #-16] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB0_15 b LBB0_10 LBB0_10: 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 str wzr, [sp, #24] b LBB0_11 LBB0_11: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #24] ldur w9, [x29, #-12] subs w9, w9, #2 subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_14 b LBB0_12 LBB0_12: ; in Loop: Header=BB0_11 Depth=1 adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf b LBB0_13 LBB0_13: ; in Loop: Header=BB0_11 Depth=1 ldr w8, [sp, #24] add w8, w8, #1 str w8, [sp, #24] b LBB0_11 LBB0_14: 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 b LBB0_32 LBB0_15: stur wzr, [x29, #-20] b LBB0_16 LBB0_16: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-20] ldur w9, [x29, #-12] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_19 b LBB0_17 LBB0_17: ; in Loop: Header=BB0_16 Depth=1 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 b LBB0_18 LBB0_18: ; in Loop: Header=BB0_16 Depth=1 ldur w8, [x29, #-20] add w8, w8, #1 stur w8, [x29, #-20] b LBB0_16 LBB0_19: adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf stur wzr, [x29, #-24] b LBB0_20 LBB0_20: ; =>This Loop Header: Depth=1 ; Child Loop BB0_22 Depth 2 ldur w8, [x29, #-24] ldur w9, [x29, #-16] subs w9, w9, #2 subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_27 b LBB0_21 LBB0_21: ; in Loop: Header=BB0_20 Depth=1 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 stur wzr, [x29, #-28] b LBB0_22 LBB0_22: ; Parent Loop BB0_20 Depth=1 ; => This Inner Loop Header: Depth=2 ldur w8, [x29, #-28] ldur w9, [x29, #-12] subs w9, w9, #2 subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_25 b LBB0_23 LBB0_23: ; in Loop: Header=BB0_22 Depth=2 adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf b LBB0_24 LBB0_24: ; in Loop: Header=BB0_22 Depth=2 ldur w8, [x29, #-28] add w8, w8, #1 stur w8, [x29, #-28] b LBB0_22 LBB0_25: ; in Loop: Header=BB0_20 Depth=1 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_26 LBB0_26: ; in Loop: Header=BB0_20 Depth=1 ldur w8, [x29, #-24] add w8, w8, #1 stur w8, [x29, #-24] b LBB0_20 LBB0_27: str wzr, [sp, #32] b LBB0_28 LBB0_28: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #32] ldur w9, [x29, #-12] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_31 b LBB0_29 LBB0_29: ; in Loop: Header=BB0_28 Depth=1 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 b LBB0_30 LBB0_30: ; in Loop: Header=BB0_28 Depth=1 ldr w8, [sp, #32] add w8, w8, #1 str w8, [sp, #32] b LBB0_28 LBB0_31: b LBB0_32 LBB0_32: b LBB0_33 LBB0_33: mov w0, #0 ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d" l_.str.1: ; @.str.1 .asciz "N" l_.str.2: ; @.str.2 .asciz "%d\n" l_.str.3: ; @.str.3 .asciz " " l_.str.4: ; @.str.4 .asciz "\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movl $0, -4(%rbp) leaq L_.str(%rip), %rdi leaq -8(%rbp), %rsi movb $0, %al callq _scanf leaq L_.str(%rip), %rdi leaq -12(%rbp), %rsi movb $0, %al callq _scanf leaq L_.str(%rip), %rdi leaq -16(%rbp), %rsi movb $0, %al callq _scanf cmpl $1, -12(%rbp) jne LBB0_9 ## %bb.1: cmpl $1, -16(%rbp) jne LBB0_3 ## %bb.2: leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf jmp LBB0_8 LBB0_3: movl $0, -36(%rbp) LBB0_4: ## =>This Inner Loop Header: Depth=1 movl -36(%rbp), %eax cmpl -16(%rbp), %eax jge LBB0_7 ## %bb.5: ## in Loop: Header=BB0_4 Depth=1 movl -8(%rbp), %esi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf ## %bb.6: ## in Loop: Header=BB0_4 Depth=1 movl -36(%rbp), %eax addl $1, %eax movl %eax, -36(%rbp) jmp LBB0_4 LBB0_7: jmp LBB0_8 LBB0_8: jmp LBB0_33 LBB0_9: cmpl $1, -16(%rbp) jne LBB0_15 ## %bb.10: movl -8(%rbp), %esi leaq L_.str(%rip), %rdi movb $0, %al callq _printf movl $0, -40(%rbp) LBB0_11: ## =>This Inner Loop Header: Depth=1 movl -40(%rbp), %eax movl -12(%rbp), %ecx subl $2, %ecx cmpl %ecx, %eax jge LBB0_14 ## %bb.12: ## in Loop: Header=BB0_11 Depth=1 leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf ## %bb.13: ## in Loop: Header=BB0_11 Depth=1 movl -40(%rbp), %eax addl $1, %eax movl %eax, -40(%rbp) jmp LBB0_11 LBB0_14: movl -8(%rbp), %esi leaq L_.str(%rip), %rdi movb $0, %al callq _printf jmp LBB0_32 LBB0_15: movl $0, -20(%rbp) LBB0_16: ## =>This Inner Loop Header: Depth=1 movl -20(%rbp), %eax cmpl -12(%rbp), %eax jge LBB0_19 ## %bb.17: ## in Loop: Header=BB0_16 Depth=1 movl -8(%rbp), %esi leaq L_.str(%rip), %rdi movb $0, %al callq _printf ## %bb.18: ## in Loop: Header=BB0_16 Depth=1 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB0_16 LBB0_19: leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf movl $0, -24(%rbp) LBB0_20: ## =>This Loop Header: Depth=1 ## Child Loop BB0_22 Depth 2 movl -24(%rbp), %eax movl -16(%rbp), %ecx subl $2, %ecx cmpl %ecx, %eax jge LBB0_27 ## %bb.21: ## in Loop: Header=BB0_20 Depth=1 movl -8(%rbp), %esi leaq L_.str(%rip), %rdi movb $0, %al callq _printf movl $0, -28(%rbp) LBB0_22: ## Parent Loop BB0_20 Depth=1 ## => This Inner Loop Header: Depth=2 movl -28(%rbp), %eax movl -12(%rbp), %ecx subl $2, %ecx cmpl %ecx, %eax jge LBB0_25 ## %bb.23: ## in Loop: Header=BB0_22 Depth=2 leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf ## %bb.24: ## in Loop: Header=BB0_22 Depth=2 movl -28(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) jmp LBB0_22 LBB0_25: ## in Loop: Header=BB0_20 Depth=1 movl -8(%rbp), %esi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf ## %bb.26: ## in Loop: Header=BB0_20 Depth=1 movl -24(%rbp), %eax addl $1, %eax movl %eax, -24(%rbp) jmp LBB0_20 LBB0_27: movl $0, -32(%rbp) LBB0_28: ## =>This Inner Loop Header: Depth=1 movl -32(%rbp), %eax cmpl -12(%rbp), %eax jge LBB0_31 ## %bb.29: ## in Loop: Header=BB0_28 Depth=1 movl -8(%rbp), %esi leaq L_.str(%rip), %rdi movb $0, %al callq _printf ## %bb.30: ## in Loop: Header=BB0_28 Depth=1 movl -32(%rbp), %eax addl $1, %eax movl %eax, -32(%rbp) jmp LBB0_28 LBB0_31: jmp LBB0_32 LBB0_32: jmp LBB0_33 LBB0_33: xorl %eax, %eax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d" L_.str.1: ## @.str.1 .asciz "N" L_.str.2: ## @.str.2 .asciz "%d\n" L_.str.3: ## @.str.3 .asciz " " L_.str.4: ## @.str.4 .asciz "\n" .subsections_via_symbols
the_stack_data/1054257.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #0 str w8, [sp, #12] ; 4-byte Folded Spill stur wzr, [x29, #-4] stur w0, [x29, #-8] str x1, [sp, #16] adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] ldr x0, [x8] ldr x8, [sp, #16] ldr x8, [x8] mov x9, sp str x8, [x9] adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF bl _fprintf 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 "SDL support not enabled in %s.\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) movl %edi, -8(%rbp) movq %rsi, -16(%rbp) movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movq -16(%rbp), %rax movq (%rax), %rdx leaq L_.str(%rip), %rsi movb $0, %al callq _fprintf xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "SDL support not enabled in %s.\n" .subsections_via_symbols
the_stack_data/168891846.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/168893515.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _getHigh ; -- Begin function getHigh .p2align 2 _getHigh: ; @getHigh .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, eq tbnz w8, #0, LBB0_11 b LBB0_1 LBB0_1: ldr x8, [sp, #8] ldr x8, [x8, #8] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: ldr x8, [sp, #8] ldr x8, [x8, #8] ldr w8, [x8, #4] add w8, w8, #1 str w8, [sp, #4] b LBB0_4 LBB0_3: mov w8, #1 str w8, [sp, #4] b LBB0_4 LBB0_4: ldr x8, [sp, #8] ldr x8, [x8, #16] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: ldr x8, [sp, #8] ldr x8, [x8, #16] ldr w8, [x8, #4] add w8, w8, #1 str w8, [sp] b LBB0_7 LBB0_6: mov w8, #1 str w8, [sp] b LBB0_7 LBB0_7: ldr w8, [sp, #4] ldr w9, [sp] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB0_9 b LBB0_8 LBB0_8: ldr w8, [sp, #4] ldr x9, [sp, #8] str w8, [x9, #4] b LBB0_10 LBB0_9: ldr w8, [sp] ldr x9, [sp, #8] str w8, [x9, #4] b LBB0_10 LBB0_10: ldr x8, [sp, #8] ldr x0, [x8, #24] bl _getHigh b LBB0_11 LBB0_11: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _insert ; -- Begin function insert .p2align 2 _insert: ; @insert .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] str x1, [sp, #16] ldur x8, [x29, #-8] ldr x8, [x8] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: ldr x8, [sp, #16] ldur x9, [x29, #-8] str x8, [x9] ldr x0, [sp, #16] bl _getHigh b LBB1_14 LBB1_2: ldur x8, [x29, #-8] ldr x8, [x8] str x8, [sp, #8] ldur x8, [x29, #-8] ldr x8, [x8] str x8, [sp] b LBB1_3 LBB1_3: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #8] ldr w8, [x8] ldr x9, [sp, #16] ldr w9, [x9] subs w8, w8, w9 cset w8, lt tbnz w8, #0, LBB1_7 b LBB1_4 LBB1_4: ; in Loop: Header=BB1_3 Depth=1 ldr x8, [sp, #8] ldr x8, [x8, #8] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB1_6 b LBB1_5 LBB1_5: ldr x8, [sp, #16] ldr x9, [sp, #8] str x8, [x9, #8] ldr x8, [sp, #8] ldr x9, [sp, #16] str x8, [x9, #24] b LBB1_13 LBB1_6: ; in Loop: Header=BB1_3 Depth=1 ldr x8, [sp, #8] ldr x8, [x8, #8] str x8, [sp, #8] b LBB1_12 LBB1_7: ; in Loop: Header=BB1_3 Depth=1 ldr x8, [sp, #8] ldr w8, [x8] ldr x9, [sp, #16] ldr w9, [x9] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_11 b LBB1_8 LBB1_8: ; in Loop: Header=BB1_3 Depth=1 ldr x8, [sp, #8] ldr x8, [x8, #16] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB1_10 b LBB1_9 LBB1_9: ldr x8, [sp, #16] ldr x9, [sp, #8] str x8, [x9, #16] ldr x8, [sp, #8] ldr x9, [sp, #16] str x8, [x9, #24] b LBB1_13 LBB1_10: ; in Loop: Header=BB1_3 Depth=1 ldr x8, [sp, #8] ldr x8, [x8, #16] str x8, [sp, #8] b LBB1_11 LBB1_11: ; in Loop: Header=BB1_3 Depth=1 b LBB1_12 LBB1_12: ; in Loop: Header=BB1_3 Depth=1 b LBB1_3 LBB1_13: ldr x0, [sp, #16] bl _getHigh b LBB1_14 LBB1_14: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _findMax ; -- Begin function findMax .p2align 2 _findMax: ; @findMax .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] b LBB2_1 LBB2_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #8] ldr x8, [x8, #16] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB2_3 b LBB2_2 LBB2_2: ; in Loop: Header=BB2_1 Depth=1 ldr x8, [sp, #8] ldr x8, [x8, #16] str x8, [sp, #8] b LBB2_1 LBB2_3: ldr x0, [sp, #8] add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _find_min ; -- Begin function find_min .p2align 2 _find_min: ; @find_min .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] b LBB3_1 LBB3_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #8] ldr x8, [x8, #8] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB3_3 b LBB3_2 LBB3_2: ; in Loop: Header=BB3_1 Depth=1 ldr x8, [sp, #8] ldr x8, [x8, #8] str x8, [sp, #8] b LBB3_1 LBB3_3: ldr x0, [sp, #8] add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _Find ; -- Begin function Find .p2align 2 _Find: ; @Find .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, #16] str w1, [sp, #12] b LBB4_1 LBB4_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #16] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB4_3 b LBB4_2 LBB4_2: ; kill: def $x8 killed $xzr str xzr, [sp, #24] b LBB4_13 LBB4_3: ; in Loop: Header=BB4_1 Depth=1 ldr x8, [sp, #16] ldr w8, [x8] ldr w9, [sp, #12] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB4_5 b LBB4_4 LBB4_4: ldr x8, [sp, #16] str x8, [sp, #24] b LBB4_13 LBB4_5: ; in Loop: Header=BB4_1 Depth=1 ldr x8, [sp, #16] ldr w8, [x8] ldr w9, [sp, #12] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB4_7 b LBB4_6 LBB4_6: ; in Loop: Header=BB4_1 Depth=1 ldr x8, [sp, #16] ldr x8, [x8, #8] str x8, [sp, #16] b LBB4_8 LBB4_7: ; in Loop: Header=BB4_1 Depth=1 ldr x8, [sp, #16] ldr x8, [x8, #16] str x8, [sp, #16] b LBB4_8 LBB4_8: ; in Loop: Header=BB4_1 Depth=1 b LBB4_9 LBB4_9: ; in Loop: Header=BB4_1 Depth=1 ldr x8, [sp, #16] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB4_11 b LBB4_10 LBB4_10: ; kill: def $x8 killed $xzr str xzr, [sp, #24] b LBB4_13 LBB4_11: ; in Loop: Header=BB4_1 Depth=1 b LBB4_12 LBB4_12: ; in Loop: Header=BB4_1 Depth=1 b LBB4_1 LBB4_13: ldr x0, [sp, #24] add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _inorder ; -- Begin function inorder .p2align 2 _inorder: ; @inorder .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] ldur x8, [x29, #-8] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB5_2 b LBB5_1 LBB5_1: ldur x8, [x29, #-8] ldr x0, [x8, #8] bl _inorder ldur x8, [x29, #-8] ldr w8, [x8] ; implicit-def: $x10 mov x10, x8 ldur x8, [x29, #-8] mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldur x8, [x29, #-8] ldr x0, [x8, #16] bl _inorder b LBB5_2 LBB5_2: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _inorder_counts ; -- Begin function inorder_counts .p2align 2 _inorder_counts: ; @inorder_counts .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] str x1, [sp, #16] str w2, [sp, #12] ldur x8, [x29, #-8] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB6_4 b LBB6_1 LBB6_1: ldur x8, [x29, #-8] ldr x0, [x8, #8] ldr x1, [sp, #16] ldr w2, [sp, #12] bl _inorder_counts ldur x8, [x29, #-8] ldr w8, [x8] ldr w9, [sp, #12] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB6_3 b LBB6_2 LBB6_2: ldr x9, [sp, #16] ldr w8, [x9] add w8, w8, #1 str w8, [x9] b LBB6_3 LBB6_3: ldur x8, [x29, #-8] ldr x0, [x8, #16] ldr x1, [sp, #16] ldr w2, [sp, #12] bl _inorder_counts b LBB6_4 LBB6_4: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _delete_node ; -- Begin function delete_node .p2align 2 _delete_node: ; @delete_node .cfi_startproc ; %bb.0: sub sp, sp, #384 .cfi_def_cfa_offset 384 stp x28, x27, [sp, #352] ; 16-byte Folded Spill stp x29, x30, [sp, #368] ; 16-byte Folded Spill add x29, sp, #368 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w27, -24 .cfi_offset w28, -32 stur x0, [x29, #-24] stur w1, [x29, #-28] ldur x8, [x29, #-24] ldr x8, [x8] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB7_2 b LBB7_1 LBB7_1: b LBB7_82 LBB7_2: ldur x8, [x29, #-24] ldr x8, [x8] stur x8, [x29, #-40] ldur x8, [x29, #-24] ldr x8, [x8] stur x8, [x29, #-48] ldur x0, [x29, #-48] ldur w1, [x29, #-28] bl _Find stur x0, [x29, #-56] ldur x8, [x29, #-56] ldur x9, [x29, #-24] ldr x9, [x9] subs x8, x8, x9 cset w8, ne tbnz w8, #0, LBB7_29 b LBB7_3 LBB7_3: ldur x8, [x29, #-24] ldr x8, [x8] ldr x8, [x8, #8] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB7_6 b LBB7_4 LBB7_4: ldur x8, [x29, #-24] ldr x8, [x8] ldr x8, [x8, #16] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB7_6 b LBB7_5 LBB7_5: ldur x8, [x29, #-24] ldr x0, [x8] bl _free b LBB7_82 LBB7_6: ldur x8, [x29, #-24] ldr x8, [x8] ldr x8, [x8, #8] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB7_9 b LBB7_7 LBB7_7: ldur x8, [x29, #-24] ldr x8, [x8] ldr x8, [x8, #16] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB7_9 b LBB7_8 LBB7_8: ldur x8, [x29, #-24] ldr x8, [x8] ldr x8, [x8, #16] stur x8, [x29, #-64] ldur x8, [x29, #-24] ldr x8, [x8] ; kill: def $x9 killed $xzr str xzr, [x8, #16] ldur x8, [x29, #-64] str xzr, [x8, #24] ldur x8, [x29, #-24] ldr x0, [x8] bl _free ldur x8, [x29, #-64] ldur x9, [x29, #-24] str x8, [x9] b LBB7_27 LBB7_9: ldur x8, [x29, #-24] ldr x8, [x8] ldr x8, [x8, #8] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB7_12 b LBB7_10 LBB7_10: ldur x8, [x29, #-24] ldr x8, [x8] ldr x8, [x8, #16] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB7_12 b LBB7_11 LBB7_11: ldur x8, [x29, #-24] ldr x8, [x8] ldr x8, [x8, #8] stur x8, [x29, #-72] ldur x8, [x29, #-24] ldr x8, [x8] ; kill: def $x9 killed $xzr str xzr, [x8, #8] ldur x8, [x29, #-72] str xzr, [x8, #24] ldur x8, [x29, #-24] ldr x0, [x8] bl _free ldur x8, [x29, #-72] ldur x9, [x29, #-24] str x8, [x9] b LBB7_26 LBB7_12: ldur x8, [x29, #-56] ldr x8, [x8, #8] ldr w8, [x8, #4] stur w8, [x29, #-76] ldur x8, [x29, #-56] ldr x8, [x8, #16] ldr w8, [x8, #4] stur w8, [x29, #-80] ldur w8, [x29, #-80] ldur w9, [x29, #-76] subs w8, w8, w9 cset w8, lt tbnz w8, #0, LBB7_19 b LBB7_13 LBB7_13: ldur x8, [x29, #-24] ldr x8, [x8] ldr x0, [x8, #16] bl _find_min stur x0, [x29, #-88] ldur x8, [x29, #-24] ldr x8, [x8] ldr x8, [x8, #8] stur x8, [x29, #-96] ldur x8, [x29, #-24] ldr x8, [x8] ; kill: def $x9 killed $xzr str xzr, [x8, #8] ldur x8, [x29, #-96] str xzr, [x8, #24] ldur x8, [x29, #-88] ldr x8, [x8, #24] ldur x9, [x29, #-24] ldr x9, [x9] subs x8, x8, x9 cset w8, ne tbnz w8, #0, LBB7_15 b LBB7_14 LBB7_14: ldur x8, [x29, #-24] ldr x8, [x8] ; kill: def $x9 killed $xzr str xzr, [x8, #16] ldur x8, [x29, #-88] str xzr, [x8, #24] b LBB7_18 LBB7_15: ldur x8, [x29, #-24] ldr x8, [x8] ldr x8, [x8, #16] stur x8, [x29, #-104] ldur x8, [x29, #-24] ldr x8, [x8] ; kill: def $x9 killed $xzr str xzr, [x8, #16] ldur x8, [x29, #-104] str xzr, [x8, #24] ldur x8, [x29, #-88] ldr x8, [x8, #24] stur x8, [x29, #-112] ldur x8, [x29, #-88] str xzr, [x8, #24] ldur x8, [x29, #-112] str xzr, [x8, #8] ldur x8, [x29, #-88] ldr x8, [x8, #16] stur x8, [x29, #-120] ldur x8, [x29, #-88] str xzr, [x8, #16] ldur x8, [x29, #-120] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB7_17 b LBB7_16 LBB7_16: ldur x8, [x29, #-120] ; kill: def $x9 killed $xzr str xzr, [x8, #24] ldur x8, [x29, #-112] ldur x9, [x29, #-120] str x8, [x9, #24] b LBB7_17 LBB7_17: ldur x8, [x29, #-120] ldur x9, [x29, #-112] str x8, [x9, #8] ldur x8, [x29, #-88] ldur x9, [x29, #-104] str x8, [x9, #24] ldur x8, [x29, #-104] ldur x9, [x29, #-88] str x8, [x9, #16] b LBB7_18 LBB7_18: ldur x8, [x29, #-88] ldur x9, [x29, #-96] str x8, [x9, #24] ldur x8, [x29, #-96] ldur x9, [x29, #-88] str x8, [x9, #8] ldur x8, [x29, #-24] ldr x0, [x8] bl _free ldur x8, [x29, #-88] ldur x9, [x29, #-24] str x8, [x9] b LBB7_25 LBB7_19: ldur x8, [x29, #-24] ldr x8, [x8] ldr x0, [x8, #8] bl _findMax stur x0, [x29, #-128] ldur x8, [x29, #-24] ldr x8, [x8] ldr x8, [x8, #16] stur x8, [x29, #-136] ldur x8, [x29, #-24] ldr x8, [x8] ; kill: def $x9 killed $xzr str xzr, [x8, #16] ldur x8, [x29, #-136] str xzr, [x8, #24] ldur x8, [x29, #-128] ldr x8, [x8, #24] ldur x9, [x29, #-24] ldr x9, [x9] subs x8, x8, x9 cset w8, ne tbnz w8, #0, LBB7_21 b LBB7_20 LBB7_20: ldur x8, [x29, #-24] ldr x8, [x8] ; kill: def $x9 killed $xzr str xzr, [x8, #8] ldur x8, [x29, #-128] str xzr, [x8, #24] b LBB7_24 LBB7_21: ldur x8, [x29, #-24] ldr x8, [x8] ldr x8, [x8, #8] stur x8, [x29, #-144] ldur x8, [x29, #-24] ldr x8, [x8] ; kill: def $x9 killed $xzr str xzr, [x8, #8] ldur x8, [x29, #-144] str xzr, [x8, #24] ldur x8, [x29, #-128] ldr x8, [x8, #24] stur x8, [x29, #-152] ldur x8, [x29, #-128] str xzr, [x8, #24] ldur x8, [x29, #-152] str xzr, [x8, #16] ldur x8, [x29, #-128] ldr x8, [x8, #8] stur x8, [x29, #-160] ldur x8, [x29, #-128] str xzr, [x8, #8] ldur x8, [x29, #-160] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB7_23 b LBB7_22 LBB7_22: ldur x8, [x29, #-160] ; kill: def $x9 killed $xzr str xzr, [x8, #24] ldur x8, [x29, #-152] ldur x9, [x29, #-160] str x8, [x9, #24] b LBB7_23 LBB7_23: ldur x8, [x29, #-160] ldur x9, [x29, #-152] str x8, [x9, #16] ldur x8, [x29, #-128] ldur x9, [x29, #-144] str x8, [x9, #24] ldur x8, [x29, #-144] ldur x9, [x29, #-128] str x8, [x9, #8] b LBB7_24 LBB7_24: ldur x8, [x29, #-136] ldur x9, [x29, #-128] str x8, [x9, #16] ldur x8, [x29, #-128] ldur x9, [x29, #-136] str x8, [x9, #24] ldur x8, [x29, #-24] ldr x0, [x8] bl _free ldur x8, [x29, #-128] ldur x9, [x29, #-24] str x8, [x9] b LBB7_25 LBB7_25: b LBB7_26 LBB7_26: b LBB7_27 LBB7_27: b LBB7_28 LBB7_28: ldur x8, [x29, #-24] ldr x0, [x8] bl _getHigh b LBB7_82 LBB7_29: ldur x8, [x29, #-56] ldr x8, [x8, #8] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB7_35 b LBB7_30 LBB7_30: ldur x8, [x29, #-56] ldr x8, [x8, #16] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB7_35 b LBB7_31 LBB7_31: ldur x8, [x29, #-56] ldr x8, [x8, #24] stur x8, [x29, #-168] ldur x8, [x29, #-56] ; kill: def $x9 killed $xzr str xzr, [x8, #24] ldur x8, [x29, #-168] ldr x8, [x8, #8] ldur x9, [x29, #-56] subs x8, x8, x9 cset w8, ne tbnz w8, #0, LBB7_33 b LBB7_32 LBB7_32: ldur x8, [x29, #-168] ; kill: def $x9 killed $xzr str xzr, [x8, #8] b LBB7_34 LBB7_33: ldur x8, [x29, #-168] ; kill: def $x9 killed $xzr str xzr, [x8, #16] b LBB7_34 LBB7_34: ldur x0, [x29, #-56] bl _free ldur x8, [x29, #-168] stur x8, [x29, #-56] b LBB7_81 LBB7_35: ldur x8, [x29, #-56] ldr x8, [x8, #8] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB7_47 b LBB7_36 LBB7_36: ldur x8, [x29, #-56] ldr x8, [x8, #16] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB7_47 b LBB7_37 LBB7_37: ldur x8, [x29, #-56] ldr x0, [x8, #16] bl _find_min stur x0, [x29, #-176] ldur x8, [x29, #-56] ldr x8, [x8, #24] str x8, [sp, #184] ldur x8, [x29, #-56] ; kill: def $x9 killed $xzr str xzr, [x8, #24] ldur x8, [x29, #-176] ldr x8, [x8, #24] ldur x9, [x29, #-56] subs x8, x8, x9 cset w8, ne tbnz w8, #0, LBB7_42 b LBB7_38 LBB7_38: ldr x8, [sp, #184] ; kill: def $x9 killed $xzr str xzr, [x8, #16] ldur x8, [x29, #-176] str xzr, [x8, #24] ldr x8, [sp, #184] ldur x9, [x29, #-176] str x8, [x9, #24] ldur x8, [x29, #-56] ldr x10, [sp, #184] mov x9, x8 str x9, [x10, #16] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB7_40 b LBB7_39 LBB7_39: ldr x8, [sp, #184] ; kill: def $x9 killed $xzr str xzr, [x8, #16] ldur x8, [x29, #-176] ldr x9, [sp, #184] str x8, [x9, #16] b LBB7_41 LBB7_40: ldr x8, [sp, #184] ; kill: def $x9 killed $xzr str xzr, [x8, #8] ldur x8, [x29, #-176] ldr x9, [sp, #184] str x8, [x9, #8] b LBB7_41 LBB7_41: b LBB7_46 LBB7_42: ldur x8, [x29, #-56] ldr x8, [x8, #16] str x8, [sp, #176] ldur x8, [x29, #-56] ; kill: def $x9 killed $xzr str xzr, [x8, #16] ldr x8, [sp, #176] str xzr, [x8, #24] ldur x8, [x29, #-176] ldr x8, [x8, #24] str x8, [sp, #168] ldur x8, [x29, #-176] str xzr, [x8, #24] ldr x8, [sp, #168] str xzr, [x8, #8] ldur x8, [x29, #-176] ldr x8, [x8, #16] str x8, [sp, #160] ldr x8, [sp, #160] str xzr, [x8, #24] ldur x8, [x29, #-176] str xzr, [x8, #16] ldr x8, [sp, #168] ldr x9, [sp, #160] str x8, [x9, #24] ldr x8, [sp, #160] ldr x9, [sp, #168] str x8, [x9, #8] ldr x8, [sp, #184] ldur x9, [x29, #-176] str x8, [x9, #24] ldr x8, [sp, #184] ldr x8, [x8, #16] ldur x9, [x29, #-56] subs x8, x8, x9 cset w8, ne tbnz w8, #0, LBB7_44 b LBB7_43 LBB7_43: ldr x8, [sp, #184] ; kill: def $x9 killed $xzr str xzr, [x8, #16] ldur x8, [x29, #-176] ldr x9, [sp, #184] str x8, [x9, #16] b LBB7_45 LBB7_44: ldr x8, [sp, #184] ; kill: def $x9 killed $xzr str xzr, [x8, #8] ldur x8, [x29, #-176] ldr x9, [sp, #184] str x8, [x9, #8] b LBB7_45 LBB7_45: ldur x8, [x29, #-176] ldr x9, [sp, #176] str x8, [x9, #24] ldr x8, [sp, #176] ldur x9, [x29, #-176] str x8, [x9, #16] b LBB7_46 LBB7_46: ldur x0, [x29, #-56] bl _free ldur x8, [x29, #-176] stur x8, [x29, #-56] b LBB7_80 LBB7_47: ldur x8, [x29, #-56] ldr x8, [x8, #8] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB7_56 b LBB7_48 LBB7_48: ldur x8, [x29, #-56] ldr x8, [x8, #16] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB7_56 b LBB7_49 LBB7_49: ldur x8, [x29, #-56] ldr x0, [x8, #8] bl _findMax str x0, [sp, #152] ldur x8, [x29, #-56] ldr x8, [x8, #24] str x8, [sp, #144] ldur x8, [x29, #-56] ; kill: def $x9 killed $xzr str xzr, [x8, #24] ldr x8, [sp, #152] ldr x8, [x8, #24] ldur x9, [x29, #-56] subs x8, x8, x9 cset w8, ne tbnz w8, #0, LBB7_51 b LBB7_50 LBB7_50: ldur x8, [x29, #-56] ; kill: def $x9 killed $xzr str xzr, [x8, #8] ldr x8, [sp, #152] str xzr, [x8, #24] b LBB7_52 LBB7_51: ldur x8, [x29, #-56] ldr x8, [x8, #8] str x8, [sp, #136] ldur x8, [x29, #-56] ; kill: def $x9 killed $xzr str xzr, [x8, #8] ldr x8, [sp, #136] str xzr, [x8, #24] ldr x8, [sp, #152] ldr x8, [x8, #24] str x8, [sp, #128] ldr x8, [sp, #152] str xzr, [x8, #24] ldr x8, [sp, #128] str xzr, [x8, #16] ldr x8, [sp, #152] ldr x8, [x8, #8] str x8, [sp, #120] ldr x8, [sp, #120] str xzr, [x8, #24] ldr x8, [sp, #152] str xzr, [x8, #8] ldr x8, [sp, #128] ldr x9, [sp, #120] str x8, [x9, #24] ldr x8, [sp, #120] ldr x9, [sp, #128] str x8, [x9, #16] ldr x8, [sp, #152] ldr x9, [sp, #136] str x8, [x9, #24] ldr x8, [sp, #136] ldr x9, [sp, #152] str x8, [x9, #8] b LBB7_52 LBB7_52: ldr x8, [sp, #144] ldr x9, [sp, #152] str x8, [x9, #24] ldr x8, [sp, #144] ldr x8, [x8, #16] ldur x9, [x29, #-56] subs x8, x8, x9 cset w8, ne tbnz w8, #0, LBB7_54 b LBB7_53 LBB7_53: ldr x8, [sp, #144] ; kill: def $x9 killed $xzr str xzr, [x8, #16] ldr x8, [sp, #152] ldr x9, [sp, #144] str x8, [x9, #16] b LBB7_55 LBB7_54: ldr x8, [sp, #144] ; kill: def $x9 killed $xzr str xzr, [x8, #8] ldr x8, [sp, #152] ldr x9, [sp, #144] str x8, [x9, #8] b LBB7_55 LBB7_55: ldur x0, [x29, #-56] bl _free ldr x8, [sp, #152] stur x8, [x29, #-56] b LBB7_79 LBB7_56: ldur x8, [x29, #-56] ldr x8, [x8, #8] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB7_78 b LBB7_57 LBB7_57: ldur x8, [x29, #-56] ldr x8, [x8, #16] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB7_78 b LBB7_58 LBB7_58: ldur x8, [x29, #-56] ldr x8, [x8, #8] ldr w8, [x8, #4] str w8, [sp, #116] ldur x8, [x29, #-56] ldr x8, [x8, #16] ldr w8, [x8, #4] str w8, [sp, #112] ldr w8, [sp, #112] ldr w9, [sp, #116] subs w8, w8, w9 cset w8, lt tbnz w8, #0, LBB7_68 b LBB7_59 LBB7_59: adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf ldur x8, [x29, #-56] ldr x0, [x8, #16] bl _find_min str x0, [sp, #104] ldr x11, [sp, #104] ldr x8, [sp, #104] ldr w8, [x8] ; implicit-def: $x10 mov x10, x8 ldr x8, [sp, #104] ldr w9, [x8, #4] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x11, [x9] str x10, [x9, #8] str x8, [x9, #16] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf ldur x8, [x29, #-56] ldr x8, [x8, #8] str x8, [sp, #96] ldur x8, [x29, #-56] ; kill: def $x9 killed $xzr str xzr, [x8, #8] ldr x8, [sp, #96] str xzr, [x8, #24] ldur x8, [x29, #-56] ldr x8, [x8, #24] str x8, [sp, #88] ldur x8, [x29, #-56] str xzr, [x8, #24] ldr x8, [sp, #104] ldr x8, [x8, #24] ldur x9, [x29, #-56] subs x8, x8, x9 cset w8, ne tbnz w8, #0, LBB7_61 b LBB7_60 LBB7_60: ldur x8, [x29, #-56] ; kill: def $x9 killed $xzr str xzr, [x8, #16] ldr x8, [sp, #104] str xzr, [x8, #24] b LBB7_64 LBB7_61: ldr x8, [sp, #104] ldr x8, [x8, #24] str x8, [sp, #80] ldr x8, [sp, #104] ; kill: def $x9 killed $xzr str xzr, [x8, #24] ldr x8, [sp, #80] str xzr, [x8, #8] ldr x8, [sp, #104] ldr x8, [x8, #16] str x8, [sp, #72] ldr x8, [sp, #104] str xzr, [x8, #16] ldr x8, [sp, #72] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB7_63 b LBB7_62 LBB7_62: ldr x8, [sp, #72] ; kill: def $x9 killed $xzr str xzr, [x8, #24] ldr x8, [sp, #80] ldr x9, [sp, #72] str x8, [x9, #24] b LBB7_63 LBB7_63: ldr x8, [sp, #72] ldr x9, [sp, #80] str x8, [x9, #8] ldr x8, [sp, #80] ldr x9, [sp, #104] str x8, [x9, #16] ldr x8, [sp, #104] ldr x9, [sp, #80] str x8, [x9, #24] b LBB7_64 LBB7_64: ldr x8, [sp, #88] ldr x9, [sp, #104] str x8, [x9, #24] ldr x8, [sp, #88] ldr x8, [x8, #16] ldur x9, [x29, #-56] subs x8, x8, x9 cset w8, ne tbnz w8, #0, LBB7_66 b LBB7_65 LBB7_65: ldr x8, [sp, #88] ; kill: def $x9 killed $xzr str xzr, [x8, #16] ldr x8, [sp, #104] ldr x9, [sp, #88] str x8, [x9, #16] b LBB7_67 LBB7_66: ldr x8, [sp, #88] ; kill: def $x9 killed $xzr str xzr, [x8, #8] ldr x8, [sp, #104] ldr x9, [sp, #88] str x8, [x9, #8] b LBB7_67 LBB7_67: ldr x8, [sp, #96] ldr x9, [sp, #104] str x8, [x9, #8] ldr x8, [sp, #104] ldr x9, [sp, #96] str x8, [x9, #24] ldur x0, [x29, #-56] bl _free ldr x8, [sp, #104] stur x8, [x29, #-56] b LBB7_77 LBB7_68: ldur x8, [x29, #-56] ldr x0, [x8, #8] bl _findMax str x0, [sp, #64] ldr x8, [sp, #64] ldr w8, [x8] ; implicit-def: $x11 mov x11, x8 ldr x10, [sp, #64] ldr x8, [sp, #64] ldr w9, [x8, #4] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x11, [x9] str x10, [x9, #8] str x8, [x9, #16] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf ldur x8, [x29, #-56] ldr x8, [x8, #16] str x8, [sp, #56] ldur x8, [x29, #-56] ; kill: def $x9 killed $xzr str xzr, [x8, #16] ldr x8, [sp, #56] str xzr, [x8, #24] ldur x8, [x29, #-56] ldr x8, [x8, #8] str x8, [sp, #48] ldr x8, [sp, #48] ldr w8, [x8] ; implicit-def: $x11 mov x11, x8 ldr x10, [sp, #48] ldr x8, [sp, #48] ldr w9, [x8, #4] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x11, [x9] str x10, [x9, #8] str x8, [x9, #16] adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf ldur x8, [x29, #-56] ldr x8, [x8, #24] str x8, [sp, #40] ldur x8, [x29, #-56] str xzr, [x8, #24] ldr x8, [sp, #64] ldr x8, [x8, #24] ldur x9, [x29, #-56] subs x8, x8, x9 cset w8, ne tbnz w8, #0, LBB7_70 b LBB7_69 LBB7_69: ldur x8, [x29, #-56] ; kill: def $x9 killed $xzr str xzr, [x8, #8] ldr x8, [sp, #64] str xzr, [x8, #24] b LBB7_73 LBB7_70: ldr x8, [sp, #64] ldr x8, [x8, #24] str x8, [sp, #32] ldr x8, [sp, #64] ; kill: def $x9 killed $xzr str xzr, [x8, #24] ldr x8, [sp, #32] str xzr, [x8, #16] ldr x8, [sp, #64] ldr x8, [x8, #8] str x8, [sp, #24] ldr x8, [sp, #64] str xzr, [x8, #8] ldr x8, [sp, #24] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB7_72 b LBB7_71 LBB7_71: ldr x8, [sp, #24] ; kill: def $x9 killed $xzr str xzr, [x8, #24] ldr x8, [sp, #32] ldr x9, [sp, #24] str x8, [x9, #24] b LBB7_72 LBB7_72: ldr x8, [sp, #24] ldr x9, [sp, #32] str x8, [x9, #16] ldr x8, [sp, #48] ldr x9, [sp, #64] str x8, [x9, #8] ldr x8, [sp, #64] ldr x9, [sp, #48] str x8, [x9, #24] b LBB7_73 LBB7_73: ldr x8, [sp, #40] ldr x9, [sp, #64] str x8, [x9, #24] ldr x8, [sp, #40] ldr x8, [x8, #16] ldur x9, [x29, #-56] subs x8, x8, x9 cset w8, ne tbnz w8, #0, LBB7_75 b LBB7_74 LBB7_74: ldr x8, [sp, #40] ; kill: def $x9 killed $xzr str xzr, [x8, #16] ldr x8, [sp, #64] ldr x9, [sp, #40] str x8, [x9, #16] b LBB7_76 LBB7_75: ldr x8, [sp, #40] ; kill: def $x9 killed $xzr str xzr, [x8, #8] ldr x8, [sp, #64] ldr x9, [sp, #40] str x8, [x9, #8] b LBB7_76 LBB7_76: ldr x8, [sp, #56] ldr x9, [sp, #64] str x8, [x9, #16] ldr x8, [sp, #64] ldr x9, [sp, #56] str x8, [x9, #24] ldur x0, [x29, #-56] bl _free ldr x8, [sp, #64] stur x8, [x29, #-56] b LBB7_77 LBB7_77: b LBB7_78 LBB7_78: b LBB7_79 LBB7_79: b LBB7_80 LBB7_80: b LBB7_81 LBB7_81: ldur x0, [x29, #-56] bl _getHigh b LBB7_82 LBB7_82: ldp x29, x30, [sp, #368] ; 16-byte Folded Reload ldp x28, x27, [sp, #352] ; 16-byte Folded Reload add sp, sp, #384 ret .cfi_endproc ; -- End function .globl _removal ; -- Begin function removal .p2align 2 _removal: ; @removal .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-16] stur w1, [x29, #-20] add x1, sp, #24 str wzr, [sp, #24] ldur x8, [x29, #-16] ldr x8, [x8] str x8, [sp, #16] ldr x0, [sp, #16] ldur w2, [x29, #-20] bl _inorder_counts ldr w8, [sp, #24] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB8_2 b LBB8_1 LBB8_1: ldr w8, [sp, #24] stur w8, [x29, #-4] b LBB8_6 LBB8_2: str wzr, [sp, #12] b LBB8_3 LBB8_3: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #12] ldr w9, [sp, #24] subs w8, w8, w9 cset w8, eq tbnz w8, #0, LBB8_5 b LBB8_4 LBB8_4: ; in Loop: Header=BB8_3 Depth=1 ldur x0, [x29, #-16] ldur w1, [x29, #-20] bl _delete_node ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf ldur x8, [x29, #-16] ldr x0, [x8] bl _inorder adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _printf b LBB8_3 LBB8_5: ldr w8, [sp, #24] stur w8, [x29, #-4] b LBB8_6 LBB8_6: ldur w0, [x29, #-4] ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #80 .cfi_def_cfa_offset 80 stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp, #64 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] ; kill: def $x8 killed $xzr stur xzr, [x29, #-16] mov w0, #5 bl _srand stur wzr, [x29, #-28] b LBB9_1 LBB9_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-28] subs w8, w8, #15 cset w8, ge tbnz w8, #0, LBB9_4 b LBB9_2 LBB9_2: ; in Loop: Header=BB9_1 Depth=1 mov x0, #32 bl _malloc stur x0, [x29, #-24] bl _rand mov w9, #10 sdiv w8, w0, w9 mul w8, w8, w9 subs w8, w0, w8 ldur x9, [x29, #-24] str w8, [x9] ldur x8, [x29, #-24] ldr w9, [x8] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.7@PAGE add x0, x0, l_.str.7@PAGEOFF bl _printf ldur w9, [x29, #-28] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.8@PAGE add x0, x0, l_.str.8@PAGEOFF bl _printf ldur x8, [x29, #-24] ; kill: def $x9 killed $xzr str xzr, [x8, #8] ldur x8, [x29, #-24] str xzr, [x8, #16] ldur x8, [x29, #-24] str xzr, [x8, #24] ldur x8, [x29, #-24] str wzr, [x8, #4] ldur x1, [x29, #-24] sub x0, x29, #16 bl _insert b LBB9_3 LBB9_3: ; in Loop: Header=BB9_1 Depth=1 ldur w8, [x29, #-28] add w8, w8, #1 stur w8, [x29, #-28] b LBB9_1 LBB9_4: adrp x0, l_.str.9@PAGE add x0, x0, l_.str.9@PAGEOFF str x0, [sp, #16] ; 8-byte Folded Spill bl _printf ldur x0, [x29, #-16] bl _inorder ldr x0, [sp, #16] ; 8-byte Folded Reload bl _printf stur wzr, [x29, #-28] b LBB9_5 LBB9_5: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-28] subs w8, w8, #10 cset w8, ge tbnz w8, #0, LBB9_8 b LBB9_6 LBB9_6: ; in Loop: Header=BB9_5 Depth=1 bl _rand mov w9, #10 sdiv w8, w0, w9 mul w8, w8, w9 subs w8, w0, w8 str w8, [sp, #28] ldr w9, [sp, #28] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.10@PAGE add x0, x0, l_.str.10@PAGEOFF bl _printf ldr w1, [sp, #28] sub x0, x29, #16 bl _removal str w0, [sp, #32] ldr w8, [sp, #28] ; implicit-def: $x10 mov x10, x8 ldr w9, [sp, #32] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x0, l_.str.11@PAGE add x0, x0, l_.str.11@PAGEOFF bl _printf b LBB9_7 LBB9_7: ; in Loop: Header=BB9_5 Depth=1 ldur w8, [x29, #-28] add w8, w8, #1 stur w8, [x29, #-28] b LBB9_5 LBB9_8: ldur x0, [x29, #-16] bl _inorder adrp x0, l_.str.9@PAGE add x0, x0, l_.str.9@PAGEOFF bl _printf 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 "%d(%p) \n" l_.str.1: ; @.str.1 .asciz "\t\tif( R >= L)\n" l_.str.2: ; @.str.2 .asciz "miinNode:(%p)%d H:%d\n" l_.str.3: ; @.str.3 .asciz "max:%d(%p) H:%d\n" l_.str.4: ; @.str.4 .asciz "targL:%d(%p) H:%d\n" l_.str.5: ; @.str.5 .asciz "\n--------------------------------------------------\n" l_.str.6: ; @.str.6 .asciz "\n==================================================\n" l_.str.7: ; @.str.7 .asciz "%d " l_.str.8: ; @.str.8 .asciz "%d\n" l_.str.9: ; @.str.9 .asciz "\n" l_.str.10: ; @.str.10 .asciz "l:%d\t" l_.str.11: ; @.str.11 .asciz "Remove %d(%d)\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _getHigh ## -- Begin function getHigh .p2align 4, 0x90 _getHigh: ## @getHigh .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) cmpq $0, -8(%rbp) je LBB0_11 ## %bb.1: movq -8(%rbp), %rax cmpq $0, 8(%rax) je LBB0_3 ## %bb.2: movq -8(%rbp), %rax movq 8(%rax), %rax movl 4(%rax), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB0_4 LBB0_3: movl $1, -12(%rbp) LBB0_4: movq -8(%rbp), %rax cmpq $0, 16(%rax) je LBB0_6 ## %bb.5: movq -8(%rbp), %rax movq 16(%rax), %rax movl 4(%rax), %eax addl $1, %eax movl %eax, -16(%rbp) jmp LBB0_7 LBB0_6: movl $1, -16(%rbp) LBB0_7: movl -12(%rbp), %eax cmpl -16(%rbp), %eax jle LBB0_9 ## %bb.8: movl -12(%rbp), %ecx movq -8(%rbp), %rax movl %ecx, 4(%rax) jmp LBB0_10 LBB0_9: movl -16(%rbp), %ecx movq -8(%rbp), %rax movl %ecx, 4(%rax) LBB0_10: movq -8(%rbp), %rax movq 24(%rax), %rdi callq _getHigh LBB0_11: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _insert ## -- Begin function insert .p2align 4, 0x90 _insert: ## @insert .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) movq -8(%rbp), %rax cmpq $0, (%rax) jne LBB1_2 ## %bb.1: movq -16(%rbp), %rcx movq -8(%rbp), %rax movq %rcx, (%rax) movq -16(%rbp), %rdi callq _getHigh jmp LBB1_14 LBB1_2: movq -8(%rbp), %rax movq (%rax), %rax movq %rax, -24(%rbp) movq -8(%rbp), %rax movq (%rax), %rax movq %rax, -32(%rbp) LBB1_3: ## =>This Inner Loop Header: Depth=1 movq -24(%rbp), %rax movl (%rax), %eax movq -16(%rbp), %rcx cmpl (%rcx), %eax jl LBB1_7 ## %bb.4: ## in Loop: Header=BB1_3 Depth=1 movq -24(%rbp), %rax cmpq $0, 8(%rax) jne LBB1_6 ## %bb.5: movq -16(%rbp), %rcx movq -24(%rbp), %rax movq %rcx, 8(%rax) movq -24(%rbp), %rcx movq -16(%rbp), %rax movq %rcx, 24(%rax) jmp LBB1_13 LBB1_6: ## in Loop: Header=BB1_3 Depth=1 movq -24(%rbp), %rax movq 8(%rax), %rax movq %rax, -24(%rbp) jmp LBB1_12 LBB1_7: ## in Loop: Header=BB1_3 Depth=1 movq -24(%rbp), %rax movl (%rax), %eax movq -16(%rbp), %rcx cmpl (%rcx), %eax jge LBB1_11 ## %bb.8: ## in Loop: Header=BB1_3 Depth=1 movq -24(%rbp), %rax cmpq $0, 16(%rax) jne LBB1_10 ## %bb.9: movq -16(%rbp), %rcx movq -24(%rbp), %rax movq %rcx, 16(%rax) movq -24(%rbp), %rcx movq -16(%rbp), %rax movq %rcx, 24(%rax) jmp LBB1_13 LBB1_10: ## in Loop: Header=BB1_3 Depth=1 movq -24(%rbp), %rax movq 16(%rax), %rax movq %rax, -24(%rbp) LBB1_11: ## in Loop: Header=BB1_3 Depth=1 jmp LBB1_12 LBB1_12: ## in Loop: Header=BB1_3 Depth=1 jmp LBB1_3 LBB1_13: movq -16(%rbp), %rdi callq _getHigh LBB1_14: addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _findMax ## -- Begin function findMax .p2align 4, 0x90 _findMax: ## @findMax .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) LBB2_1: ## =>This Inner Loop Header: Depth=1 movq -8(%rbp), %rax cmpq $0, 16(%rax) je LBB2_3 ## %bb.2: ## in Loop: Header=BB2_1 Depth=1 movq -8(%rbp), %rax movq 16(%rax), %rax movq %rax, -8(%rbp) jmp LBB2_1 LBB2_3: movq -8(%rbp), %rax popq %rbp retq .cfi_endproc ## -- End function .globl _find_min ## -- Begin function find_min .p2align 4, 0x90 _find_min: ## @find_min .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) LBB3_1: ## =>This Inner Loop Header: Depth=1 movq -8(%rbp), %rax cmpq $0, 8(%rax) je LBB3_3 ## %bb.2: ## in Loop: Header=BB3_1 Depth=1 movq -8(%rbp), %rax movq 8(%rax), %rax movq %rax, -8(%rbp) jmp LBB3_1 LBB3_3: movq -8(%rbp), %rax popq %rbp retq .cfi_endproc ## -- End function .globl _Find ## -- Begin function Find .p2align 4, 0x90 _Find: ## @Find .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -16(%rbp) movl %esi, -20(%rbp) LBB4_1: ## =>This Inner Loop Header: Depth=1 cmpq $0, -16(%rbp) jne LBB4_3 ## %bb.2: movq $0, -8(%rbp) jmp LBB4_13 LBB4_3: ## in Loop: Header=BB4_1 Depth=1 movq -16(%rbp), %rax movl (%rax), %eax cmpl -20(%rbp), %eax jne LBB4_5 ## %bb.4: movq -16(%rbp), %rax movq %rax, -8(%rbp) jmp LBB4_13 LBB4_5: ## in Loop: Header=BB4_1 Depth=1 movq -16(%rbp), %rax movl (%rax), %eax cmpl -20(%rbp), %eax jle LBB4_7 ## %bb.6: ## in Loop: Header=BB4_1 Depth=1 movq -16(%rbp), %rax movq 8(%rax), %rax movq %rax, -16(%rbp) jmp LBB4_8 LBB4_7: ## in Loop: Header=BB4_1 Depth=1 movq -16(%rbp), %rax movq 16(%rax), %rax movq %rax, -16(%rbp) LBB4_8: ## in Loop: Header=BB4_1 Depth=1 jmp LBB4_9 LBB4_9: ## in Loop: Header=BB4_1 Depth=1 cmpq $0, -16(%rbp) jne LBB4_11 ## %bb.10: movq $0, -8(%rbp) jmp LBB4_13 LBB4_11: ## in Loop: Header=BB4_1 Depth=1 jmp LBB4_12 LBB4_12: ## in Loop: Header=BB4_1 Depth=1 jmp LBB4_1 LBB4_13: movq -8(%rbp), %rax popq %rbp retq .cfi_endproc ## -- End function .globl _inorder ## -- Begin function inorder .p2align 4, 0x90 _inorder: ## @inorder .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) cmpq $0, -8(%rbp) je LBB5_2 ## %bb.1: movq -8(%rbp), %rax movq 8(%rax), %rdi callq _inorder movq -8(%rbp), %rax movl (%rax), %esi movq -8(%rbp), %rdx leaq L_.str(%rip), %rdi movb $0, %al callq _printf movq -8(%rbp), %rax movq 16(%rax), %rdi callq _inorder LBB5_2: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _inorder_counts ## -- Begin function inorder_counts .p2align 4, 0x90 _inorder_counts: ## @inorder_counts .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) movl %edx, -20(%rbp) cmpq $0, -8(%rbp) je LBB6_4 ## %bb.1: movq -8(%rbp), %rax movq 8(%rax), %rdi movq -16(%rbp), %rsi movl -20(%rbp), %edx callq _inorder_counts movq -8(%rbp), %rax movl (%rax), %eax cmpl -20(%rbp), %eax jne LBB6_3 ## %bb.2: movq -16(%rbp), %rax movl (%rax), %ecx addl $1, %ecx movl %ecx, (%rax) LBB6_3: movq -8(%rbp), %rax movq 16(%rax), %rdi movq -16(%rbp), %rsi movl -20(%rbp), %edx callq _inorder_counts LBB6_4: addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _delete_node ## -- Begin function delete_node .p2align 4, 0x90 _delete_node: ## @delete_node .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $336, %rsp ## imm = 0x150 movq %rdi, -8(%rbp) movl %esi, -12(%rbp) movq -8(%rbp), %rax cmpq $0, (%rax) jne LBB7_2 ## %bb.1: jmp LBB7_82 LBB7_2: movq -8(%rbp), %rax movq (%rax), %rax movq %rax, -24(%rbp) movq -8(%rbp), %rax movq (%rax), %rax movq %rax, -32(%rbp) movq -32(%rbp), %rdi movl -12(%rbp), %esi callq _Find movq %rax, -40(%rbp) movq -40(%rbp), %rax movq -8(%rbp), %rcx cmpq (%rcx), %rax jne LBB7_29 ## %bb.3: movq -8(%rbp), %rax movq (%rax), %rax cmpq $0, 8(%rax) jne LBB7_6 ## %bb.4: movq -8(%rbp), %rax movq (%rax), %rax cmpq $0, 16(%rax) jne LBB7_6 ## %bb.5: movq -8(%rbp), %rax movq (%rax), %rdi callq _free jmp LBB7_82 LBB7_6: movq -8(%rbp), %rax movq (%rax), %rax cmpq $0, 8(%rax) jne LBB7_9 ## %bb.7: movq -8(%rbp), %rax movq (%rax), %rax cmpq $0, 16(%rax) je LBB7_9 ## %bb.8: movq -8(%rbp), %rax movq (%rax), %rax movq 16(%rax), %rax movq %rax, -48(%rbp) movq -8(%rbp), %rax movq (%rax), %rax movq $0, 16(%rax) movq -48(%rbp), %rax movq $0, 24(%rax) movq -8(%rbp), %rax movq (%rax), %rdi callq _free movq -48(%rbp), %rcx movq -8(%rbp), %rax movq %rcx, (%rax) jmp LBB7_27 LBB7_9: movq -8(%rbp), %rax movq (%rax), %rax cmpq $0, 8(%rax) je LBB7_12 ## %bb.10: movq -8(%rbp), %rax movq (%rax), %rax cmpq $0, 16(%rax) jne LBB7_12 ## %bb.11: movq -8(%rbp), %rax movq (%rax), %rax movq 8(%rax), %rax movq %rax, -56(%rbp) movq -8(%rbp), %rax movq (%rax), %rax movq $0, 8(%rax) movq -56(%rbp), %rax movq $0, 24(%rax) movq -8(%rbp), %rax movq (%rax), %rdi callq _free movq -56(%rbp), %rcx movq -8(%rbp), %rax movq %rcx, (%rax) jmp LBB7_26 LBB7_12: movq -40(%rbp), %rax movq 8(%rax), %rax movl 4(%rax), %eax movl %eax, -60(%rbp) movq -40(%rbp), %rax movq 16(%rax), %rax movl 4(%rax), %eax movl %eax, -64(%rbp) movl -64(%rbp), %eax cmpl -60(%rbp), %eax jl LBB7_19 ## %bb.13: movq -8(%rbp), %rax movq (%rax), %rax movq 16(%rax), %rdi callq _find_min movq %rax, -72(%rbp) movq -8(%rbp), %rax movq (%rax), %rax movq 8(%rax), %rax movq %rax, -80(%rbp) movq -8(%rbp), %rax movq (%rax), %rax movq $0, 8(%rax) movq -80(%rbp), %rax movq $0, 24(%rax) movq -72(%rbp), %rax movq 24(%rax), %rax movq -8(%rbp), %rcx cmpq (%rcx), %rax jne LBB7_15 ## %bb.14: movq -8(%rbp), %rax movq (%rax), %rax movq $0, 16(%rax) movq -72(%rbp), %rax movq $0, 24(%rax) jmp LBB7_18 LBB7_15: movq -8(%rbp), %rax movq (%rax), %rax movq 16(%rax), %rax movq %rax, -88(%rbp) movq -8(%rbp), %rax movq (%rax), %rax movq $0, 16(%rax) movq -88(%rbp), %rax movq $0, 24(%rax) movq -72(%rbp), %rax movq 24(%rax), %rax movq %rax, -96(%rbp) movq -72(%rbp), %rax movq $0, 24(%rax) movq -96(%rbp), %rax movq $0, 8(%rax) movq -72(%rbp), %rax movq 16(%rax), %rax movq %rax, -104(%rbp) movq -72(%rbp), %rax movq $0, 16(%rax) cmpq $0, -104(%rbp) je LBB7_17 ## %bb.16: movq -104(%rbp), %rax movq $0, 24(%rax) movq -96(%rbp), %rcx movq -104(%rbp), %rax movq %rcx, 24(%rax) LBB7_17: movq -104(%rbp), %rcx movq -96(%rbp), %rax movq %rcx, 8(%rax) movq -72(%rbp), %rcx movq -88(%rbp), %rax movq %rcx, 24(%rax) movq -88(%rbp), %rcx movq -72(%rbp), %rax movq %rcx, 16(%rax) LBB7_18: movq -72(%rbp), %rcx movq -80(%rbp), %rax movq %rcx, 24(%rax) movq -80(%rbp), %rcx movq -72(%rbp), %rax movq %rcx, 8(%rax) movq -8(%rbp), %rax movq (%rax), %rdi callq _free movq -72(%rbp), %rcx movq -8(%rbp), %rax movq %rcx, (%rax) jmp LBB7_25 LBB7_19: movq -8(%rbp), %rax movq (%rax), %rax movq 8(%rax), %rdi callq _findMax movq %rax, -112(%rbp) movq -8(%rbp), %rax movq (%rax), %rax movq 16(%rax), %rax movq %rax, -120(%rbp) movq -8(%rbp), %rax movq (%rax), %rax movq $0, 16(%rax) movq -120(%rbp), %rax movq $0, 24(%rax) movq -112(%rbp), %rax movq 24(%rax), %rax movq -8(%rbp), %rcx cmpq (%rcx), %rax jne LBB7_21 ## %bb.20: movq -8(%rbp), %rax movq (%rax), %rax movq $0, 8(%rax) movq -112(%rbp), %rax movq $0, 24(%rax) jmp LBB7_24 LBB7_21: movq -8(%rbp), %rax movq (%rax), %rax movq 8(%rax), %rax movq %rax, -128(%rbp) movq -8(%rbp), %rax movq (%rax), %rax movq $0, 8(%rax) movq -128(%rbp), %rax movq $0, 24(%rax) movq -112(%rbp), %rax movq 24(%rax), %rax movq %rax, -136(%rbp) movq -112(%rbp), %rax movq $0, 24(%rax) movq -136(%rbp), %rax movq $0, 16(%rax) movq -112(%rbp), %rax movq 8(%rax), %rax movq %rax, -144(%rbp) movq -112(%rbp), %rax movq $0, 8(%rax) cmpq $0, -144(%rbp) je LBB7_23 ## %bb.22: movq -144(%rbp), %rax movq $0, 24(%rax) movq -136(%rbp), %rcx movq -144(%rbp), %rax movq %rcx, 24(%rax) LBB7_23: movq -144(%rbp), %rcx movq -136(%rbp), %rax movq %rcx, 16(%rax) movq -112(%rbp), %rcx movq -128(%rbp), %rax movq %rcx, 24(%rax) movq -128(%rbp), %rcx movq -112(%rbp), %rax movq %rcx, 8(%rax) LBB7_24: movq -120(%rbp), %rcx movq -112(%rbp), %rax movq %rcx, 16(%rax) movq -112(%rbp), %rcx movq -120(%rbp), %rax movq %rcx, 24(%rax) movq -8(%rbp), %rax movq (%rax), %rdi callq _free movq -112(%rbp), %rcx movq -8(%rbp), %rax movq %rcx, (%rax) LBB7_25: jmp LBB7_26 LBB7_26: jmp LBB7_27 LBB7_27: jmp LBB7_28 LBB7_28: movq -8(%rbp), %rax movq (%rax), %rdi callq _getHigh jmp LBB7_82 LBB7_29: movq -40(%rbp), %rax cmpq $0, 8(%rax) jne LBB7_35 ## %bb.30: movq -40(%rbp), %rax cmpq $0, 16(%rax) jne LBB7_35 ## %bb.31: movq -40(%rbp), %rax movq 24(%rax), %rax movq %rax, -152(%rbp) movq -40(%rbp), %rax movq $0, 24(%rax) movq -152(%rbp), %rax movq 8(%rax), %rax cmpq -40(%rbp), %rax jne LBB7_33 ## %bb.32: movq -152(%rbp), %rax movq $0, 8(%rax) jmp LBB7_34 LBB7_33: movq -152(%rbp), %rax movq $0, 16(%rax) LBB7_34: movq -40(%rbp), %rdi callq _free movq -152(%rbp), %rax movq %rax, -40(%rbp) jmp LBB7_81 LBB7_35: movq -40(%rbp), %rax cmpq $0, 8(%rax) jne LBB7_47 ## %bb.36: movq -40(%rbp), %rax cmpq $0, 16(%rax) je LBB7_47 ## %bb.37: movq -40(%rbp), %rax movq 16(%rax), %rdi callq _find_min movq %rax, -160(%rbp) movq -40(%rbp), %rax movq 24(%rax), %rax movq %rax, -168(%rbp) movq -40(%rbp), %rax movq $0, 24(%rax) movq -160(%rbp), %rax movq 24(%rax), %rax cmpq -40(%rbp), %rax jne LBB7_42 ## %bb.38: movq -168(%rbp), %rax movq $0, 16(%rax) movq -160(%rbp), %rax movq $0, 24(%rax) movq -168(%rbp), %rcx movq -160(%rbp), %rax movq %rcx, 24(%rax) movq -40(%rbp), %rax movq -168(%rbp), %rcx movq %rax, 16(%rcx) cmpq $0, %rax je LBB7_40 ## %bb.39: movq -168(%rbp), %rax movq $0, 16(%rax) movq -160(%rbp), %rcx movq -168(%rbp), %rax movq %rcx, 16(%rax) jmp LBB7_41 LBB7_40: movq -168(%rbp), %rax movq $0, 8(%rax) movq -160(%rbp), %rcx movq -168(%rbp), %rax movq %rcx, 8(%rax) LBB7_41: jmp LBB7_46 LBB7_42: movq -40(%rbp), %rax movq 16(%rax), %rax movq %rax, -176(%rbp) movq -40(%rbp), %rax movq $0, 16(%rax) movq -176(%rbp), %rax movq $0, 24(%rax) movq -160(%rbp), %rax movq 24(%rax), %rax movq %rax, -184(%rbp) movq -160(%rbp), %rax movq $0, 24(%rax) movq -184(%rbp), %rax movq $0, 8(%rax) movq -160(%rbp), %rax movq 16(%rax), %rax movq %rax, -192(%rbp) movq -192(%rbp), %rax movq $0, 24(%rax) movq -160(%rbp), %rax movq $0, 16(%rax) movq -184(%rbp), %rcx movq -192(%rbp), %rax movq %rcx, 24(%rax) movq -192(%rbp), %rcx movq -184(%rbp), %rax movq %rcx, 8(%rax) movq -168(%rbp), %rcx movq -160(%rbp), %rax movq %rcx, 24(%rax) movq -168(%rbp), %rax movq 16(%rax), %rax cmpq -40(%rbp), %rax jne LBB7_44 ## %bb.43: movq -168(%rbp), %rax movq $0, 16(%rax) movq -160(%rbp), %rcx movq -168(%rbp), %rax movq %rcx, 16(%rax) jmp LBB7_45 LBB7_44: movq -168(%rbp), %rax movq $0, 8(%rax) movq -160(%rbp), %rcx movq -168(%rbp), %rax movq %rcx, 8(%rax) LBB7_45: movq -160(%rbp), %rcx movq -176(%rbp), %rax movq %rcx, 24(%rax) movq -176(%rbp), %rcx movq -160(%rbp), %rax movq %rcx, 16(%rax) LBB7_46: movq -40(%rbp), %rdi callq _free movq -160(%rbp), %rax movq %rax, -40(%rbp) jmp LBB7_80 LBB7_47: movq -40(%rbp), %rax cmpq $0, 8(%rax) je LBB7_56 ## %bb.48: movq -40(%rbp), %rax cmpq $0, 16(%rax) jne LBB7_56 ## %bb.49: movq -40(%rbp), %rax movq 8(%rax), %rdi callq _findMax movq %rax, -200(%rbp) movq -40(%rbp), %rax movq 24(%rax), %rax movq %rax, -208(%rbp) movq -40(%rbp), %rax movq $0, 24(%rax) movq -200(%rbp), %rax movq 24(%rax), %rax cmpq -40(%rbp), %rax jne LBB7_51 ## %bb.50: movq -40(%rbp), %rax movq $0, 8(%rax) movq -200(%rbp), %rax movq $0, 24(%rax) jmp LBB7_52 LBB7_51: movq -40(%rbp), %rax movq 8(%rax), %rax movq %rax, -216(%rbp) movq -40(%rbp), %rax movq $0, 8(%rax) movq -216(%rbp), %rax movq $0, 24(%rax) movq -200(%rbp), %rax movq 24(%rax), %rax movq %rax, -224(%rbp) movq -200(%rbp), %rax movq $0, 24(%rax) movq -224(%rbp), %rax movq $0, 16(%rax) movq -200(%rbp), %rax movq 8(%rax), %rax movq %rax, -232(%rbp) movq -232(%rbp), %rax movq $0, 24(%rax) movq -200(%rbp), %rax movq $0, 8(%rax) movq -224(%rbp), %rcx movq -232(%rbp), %rax movq %rcx, 24(%rax) movq -232(%rbp), %rcx movq -224(%rbp), %rax movq %rcx, 16(%rax) movq -200(%rbp), %rcx movq -216(%rbp), %rax movq %rcx, 24(%rax) movq -216(%rbp), %rcx movq -200(%rbp), %rax movq %rcx, 8(%rax) LBB7_52: movq -208(%rbp), %rcx movq -200(%rbp), %rax movq %rcx, 24(%rax) movq -208(%rbp), %rax movq 16(%rax), %rax cmpq -40(%rbp), %rax jne LBB7_54 ## %bb.53: movq -208(%rbp), %rax movq $0, 16(%rax) movq -200(%rbp), %rcx movq -208(%rbp), %rax movq %rcx, 16(%rax) jmp LBB7_55 LBB7_54: movq -208(%rbp), %rax movq $0, 8(%rax) movq -200(%rbp), %rcx movq -208(%rbp), %rax movq %rcx, 8(%rax) LBB7_55: movq -40(%rbp), %rdi callq _free movq -200(%rbp), %rax movq %rax, -40(%rbp) jmp LBB7_79 LBB7_56: movq -40(%rbp), %rax cmpq $0, 8(%rax) je LBB7_78 ## %bb.57: movq -40(%rbp), %rax cmpq $0, 16(%rax) je LBB7_78 ## %bb.58: movq -40(%rbp), %rax movq 8(%rax), %rax movl 4(%rax), %eax movl %eax, -236(%rbp) movq -40(%rbp), %rax movq 16(%rax), %rax movl 4(%rax), %eax movl %eax, -240(%rbp) movl -240(%rbp), %eax cmpl -236(%rbp), %eax jl LBB7_68 ## %bb.59: leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf movq -40(%rbp), %rax movq 16(%rax), %rdi callq _find_min movq %rax, -248(%rbp) movq -248(%rbp), %rsi movq -248(%rbp), %rax movl (%rax), %edx movq -248(%rbp), %rax movl 4(%rax), %ecx leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf movq -40(%rbp), %rax movq 8(%rax), %rax movq %rax, -256(%rbp) movq -40(%rbp), %rax movq $0, 8(%rax) movq -256(%rbp), %rax movq $0, 24(%rax) movq -40(%rbp), %rax movq 24(%rax), %rax movq %rax, -264(%rbp) movq -40(%rbp), %rax movq $0, 24(%rax) movq -248(%rbp), %rax movq 24(%rax), %rax cmpq -40(%rbp), %rax jne LBB7_61 ## %bb.60: movq -40(%rbp), %rax movq $0, 16(%rax) movq -248(%rbp), %rax movq $0, 24(%rax) jmp LBB7_64 LBB7_61: movq -248(%rbp), %rax movq 24(%rax), %rax movq %rax, -272(%rbp) movq -248(%rbp), %rax movq $0, 24(%rax) movq -272(%rbp), %rax movq $0, 8(%rax) movq -248(%rbp), %rax movq 16(%rax), %rax movq %rax, -280(%rbp) movq -248(%rbp), %rax movq $0, 16(%rax) cmpq $0, -280(%rbp) je LBB7_63 ## %bb.62: movq -280(%rbp), %rax movq $0, 24(%rax) movq -272(%rbp), %rcx movq -280(%rbp), %rax movq %rcx, 24(%rax) LBB7_63: movq -280(%rbp), %rcx movq -272(%rbp), %rax movq %rcx, 8(%rax) movq -272(%rbp), %rcx movq -248(%rbp), %rax movq %rcx, 16(%rax) movq -248(%rbp), %rcx movq -272(%rbp), %rax movq %rcx, 24(%rax) LBB7_64: movq -264(%rbp), %rcx movq -248(%rbp), %rax movq %rcx, 24(%rax) movq -264(%rbp), %rax movq 16(%rax), %rax cmpq -40(%rbp), %rax jne LBB7_66 ## %bb.65: movq -264(%rbp), %rax movq $0, 16(%rax) movq -248(%rbp), %rcx movq -264(%rbp), %rax movq %rcx, 16(%rax) jmp LBB7_67 LBB7_66: movq -264(%rbp), %rax movq $0, 8(%rax) movq -248(%rbp), %rcx movq -264(%rbp), %rax movq %rcx, 8(%rax) LBB7_67: movq -256(%rbp), %rcx movq -248(%rbp), %rax movq %rcx, 8(%rax) movq -248(%rbp), %rcx movq -256(%rbp), %rax movq %rcx, 24(%rax) movq -40(%rbp), %rdi callq _free movq -248(%rbp), %rax movq %rax, -40(%rbp) jmp LBB7_77 LBB7_68: movq -40(%rbp), %rax movq 8(%rax), %rdi callq _findMax movq %rax, -288(%rbp) movq -288(%rbp), %rax movl (%rax), %esi movq -288(%rbp), %rdx movq -288(%rbp), %rax movl 4(%rax), %ecx leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf movq -40(%rbp), %rax movq 16(%rax), %rax movq %rax, -296(%rbp) movq -40(%rbp), %rax movq $0, 16(%rax) movq -296(%rbp), %rax movq $0, 24(%rax) movq -40(%rbp), %rax movq 8(%rax), %rax movq %rax, -304(%rbp) movq -304(%rbp), %rax movl (%rax), %esi movq -304(%rbp), %rdx movq -304(%rbp), %rax movl 4(%rax), %ecx leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf movq -40(%rbp), %rax movq 24(%rax), %rax movq %rax, -312(%rbp) movq -40(%rbp), %rax movq $0, 24(%rax) movq -288(%rbp), %rax movq 24(%rax), %rax cmpq -40(%rbp), %rax jne LBB7_70 ## %bb.69: movq -40(%rbp), %rax movq $0, 8(%rax) movq -288(%rbp), %rax movq $0, 24(%rax) jmp LBB7_73 LBB7_70: movq -288(%rbp), %rax movq 24(%rax), %rax movq %rax, -320(%rbp) movq -288(%rbp), %rax movq $0, 24(%rax) movq -320(%rbp), %rax movq $0, 16(%rax) movq -288(%rbp), %rax movq 8(%rax), %rax movq %rax, -328(%rbp) movq -288(%rbp), %rax movq $0, 8(%rax) cmpq $0, -328(%rbp) je LBB7_72 ## %bb.71: movq -328(%rbp), %rax movq $0, 24(%rax) movq -320(%rbp), %rcx movq -328(%rbp), %rax movq %rcx, 24(%rax) LBB7_72: movq -328(%rbp), %rcx movq -320(%rbp), %rax movq %rcx, 16(%rax) movq -304(%rbp), %rcx movq -288(%rbp), %rax movq %rcx, 8(%rax) movq -288(%rbp), %rcx movq -304(%rbp), %rax movq %rcx, 24(%rax) LBB7_73: movq -312(%rbp), %rcx movq -288(%rbp), %rax movq %rcx, 24(%rax) movq -312(%rbp), %rax movq 16(%rax), %rax cmpq -40(%rbp), %rax jne LBB7_75 ## %bb.74: movq -312(%rbp), %rax movq $0, 16(%rax) movq -288(%rbp), %rcx movq -312(%rbp), %rax movq %rcx, 16(%rax) jmp LBB7_76 LBB7_75: movq -312(%rbp), %rax movq $0, 8(%rax) movq -288(%rbp), %rcx movq -312(%rbp), %rax movq %rcx, 8(%rax) LBB7_76: movq -296(%rbp), %rcx movq -288(%rbp), %rax movq %rcx, 16(%rax) movq -288(%rbp), %rcx movq -296(%rbp), %rax movq %rcx, 24(%rax) movq -40(%rbp), %rdi callq _free movq -288(%rbp), %rax movq %rax, -40(%rbp) LBB7_77: jmp LBB7_78 LBB7_78: jmp LBB7_79 LBB7_79: jmp LBB7_80 LBB7_80: jmp LBB7_81 LBB7_81: movq -40(%rbp), %rdi callq _getHigh LBB7_82: addq $336, %rsp ## imm = 0x150 popq %rbp retq .cfi_endproc ## -- End function .globl _removal ## -- Begin function removal .p2align 4, 0x90 _removal: ## @removal .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movq %rdi, -16(%rbp) movl %esi, -20(%rbp) movl $0, -24(%rbp) movq -16(%rbp), %rax movq (%rax), %rax movq %rax, -32(%rbp) movq -32(%rbp), %rdi movl -20(%rbp), %edx leaq -24(%rbp), %rsi callq _inorder_counts cmpl $0, -24(%rbp) jne LBB8_2 ## %bb.1: movl -24(%rbp), %eax movl %eax, -4(%rbp) jmp LBB8_6 LBB8_2: movl $0, -36(%rbp) LBB8_3: ## =>This Inner Loop Header: Depth=1 movl -36(%rbp), %eax cmpl -24(%rbp), %eax je LBB8_5 ## %bb.4: ## in Loop: Header=BB8_3 Depth=1 movq -16(%rbp), %rdi movl -20(%rbp), %esi callq _delete_node movl -36(%rbp), %eax addl $1, %eax movl %eax, -36(%rbp) leaq L_.str.5(%rip), %rdi movb $0, %al callq _printf movq -16(%rbp), %rax movq (%rax), %rdi callq _inorder leaq L_.str.6(%rip), %rdi movb $0, %al callq _printf jmp LBB8_3 LBB8_5: movl -24(%rbp), %eax movl %eax, -4(%rbp) LBB8_6: movl -4(%rbp), %eax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movl $0, -4(%rbp) movq $0, -16(%rbp) movl $5, %edi callq _srand movl $0, -28(%rbp) LBB9_1: ## =>This Inner Loop Header: Depth=1 cmpl $15, -28(%rbp) jge LBB9_4 ## %bb.2: ## in Loop: Header=BB9_1 Depth=1 movl $32, %edi callq _malloc movq %rax, -24(%rbp) callq _rand movl $10, %ecx cltd idivl %ecx movq -24(%rbp), %rax movl %edx, (%rax) movq -24(%rbp), %rax movl (%rax), %esi leaq L_.str.7(%rip), %rdi movb $0, %al callq _printf movl -28(%rbp), %esi leaq L_.str.8(%rip), %rdi movb $0, %al callq _printf movq -24(%rbp), %rax movq $0, 8(%rax) movq -24(%rbp), %rax movq $0, 16(%rax) movq -24(%rbp), %rax movq $0, 24(%rax) movq -24(%rbp), %rax movl $0, 4(%rax) movq -24(%rbp), %rsi leaq -16(%rbp), %rdi callq _insert ## %bb.3: ## in Loop: Header=BB9_1 Depth=1 movl -28(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) jmp LBB9_1 LBB9_4: leaq L_.str.9(%rip), %rdi movb $0, %al callq _printf movq -16(%rbp), %rdi callq _inorder leaq L_.str.9(%rip), %rdi movb $0, %al callq _printf movl $0, -28(%rbp) LBB9_5: ## =>This Inner Loop Header: Depth=1 cmpl $10, -28(%rbp) jge LBB9_8 ## %bb.6: ## in Loop: Header=BB9_5 Depth=1 callq _rand movl $10, %ecx cltd idivl %ecx movl %edx, -36(%rbp) movl -36(%rbp), %esi leaq L_.str.10(%rip), %rdi movb $0, %al callq _printf movl -36(%rbp), %esi leaq -16(%rbp), %rdi callq _removal movl %eax, -32(%rbp) movl -36(%rbp), %esi movl -32(%rbp), %edx leaq L_.str.11(%rip), %rdi movb $0, %al callq _printf ## %bb.7: ## in Loop: Header=BB9_5 Depth=1 movl -28(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) jmp LBB9_5 LBB9_8: movq -16(%rbp), %rdi callq _inorder leaq L_.str.9(%rip), %rdi movb $0, %al callq _printf movl -4(%rbp), %eax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d(%p) \n" L_.str.1: ## @.str.1 .asciz "\t\tif( R >= L)\n" L_.str.2: ## @.str.2 .asciz "miinNode:(%p)%d H:%d\n" L_.str.3: ## @.str.3 .asciz "max:%d(%p) H:%d\n" L_.str.4: ## @.str.4 .asciz "targL:%d(%p) H:%d\n" L_.str.5: ## @.str.5 .asciz "\n--------------------------------------------------\n" L_.str.6: ## @.str.6 .asciz "\n==================================================\n" L_.str.7: ## @.str.7 .asciz "%d " L_.str.8: ## @.str.8 .asciz "%d\n" L_.str.9: ## @.str.9 .asciz "\n" L_.str.10: ## @.str.10 .asciz "l:%d\t" L_.str.11: ## @.str.11 .asciz "Remove %d(%d)\n" .subsections_via_symbols
the_stack_data/1018188.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] adrp x8, _g@PAGE ldr w8, [x8, _g@PAGEOFF] subs w8, w8, #1 cset w9, ne ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: adrp x0, l___func__.main@PAGE add x0, x0, l___func__.main@PAGEOFF adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF mov w2, #9 adrp x3, l_.str.1@PAGE add x3, x3, l_.str.1@PAGEOFF bl ___assert_rtn LBB0_2: b LBB0_3 LBB0_3: adrp x8, _g@PAGE ldr w8, [x8, _g@PAGEOFF] subs w8, w8, #2 cset w9, ne ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB0_5 b LBB0_4 LBB0_4: adrp x0, l___func__.main@PAGE add x0, x0, l___func__.main@PAGEOFF adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF mov w2, #10 adrp x3, l_.str.2@PAGE add x3, x3, l_.str.2@PAGEOFF bl ___assert_rtn LBB0_5: b LBB0_6 LBB0_6: mov w0, #0 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .section __DATA,__data .globl _g ; @g .p2align 2 _g: .long 1 ; 0x1 .section __TEXT,__cstring,cstring_literals l___func__.main: ; @__func__.main .asciz "main" l_.str: ; @.str .asciz "153266891.c" l_.str.1: ; @.str.1 .asciz "g == 1" l_.str.2: ; @.str.2 .asciz "g == 2" .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) cmpl $1, _g(%rip) sete %al xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB0_2 ## %bb.1: leaq L___func__.main(%rip), %rdi leaq L_.str(%rip), %rsi leaq L_.str.1(%rip), %rcx movl $9, %edx callq ___assert_rtn LBB0_2: jmp LBB0_3 LBB0_3: cmpl $2, _g(%rip) sete %al xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB0_5 ## %bb.4: leaq L___func__.main(%rip), %rdi leaq L_.str(%rip), %rsi leaq L_.str.2(%rip), %rcx movl $10, %edx callq ___assert_rtn LBB0_5: jmp LBB0_6 LBB0_6: xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __DATA,__data .globl _g ## @g .p2align 2 _g: .long 1 ## 0x1 .section __TEXT,__cstring,cstring_literals L___func__.main: ## @__func__.main .asciz "main" L_.str: ## @.str .asciz "153266891.c" L_.str.1: ## @.str.1 .asciz "g == 1" L_.str.2: ## @.str.2 .asciz "g == 2" .subsections_via_symbols
the_stack_data/153266891.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _function ; -- Begin function function .p2align 2 _function: ; @function .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 mov w8, #4 str w8, [sp, #12] mov w8, #5 str w8, [sp, #8] ldr w8, [sp, #12] ldr w10, [sp, #8] sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 scvtf d0, w8 add sp, sp, #16 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _function ## -- Begin function function .p2align 4, 0x90 _function: ## @function .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl $4, -4(%rbp) movl $5, -8(%rbp) movl -4(%rbp), %eax cltd idivl -8(%rbp) cvtsi2sd %edx, %xmm0 popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/66415.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 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] mov w8, #42 stur w8, [x29, #-28] mov w8, #83 stur w8, [x29, #-24] mov w8, #77 stur w8, [x29, #-12] ldur w8, [x29, #-12] ldur w9, [x29, #-24] subs w8, w8, w9 stur w8, [x29, #-20] ldur w8, [x29, #-28] ldur w9, [x29, #-20] sdiv w8, w8, w9 stur w8, [x29, #-16] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: bl ___stack_chk_fail LBB0_2: 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 "done\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $208, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $42, -32(%rbp) movl $83, -28(%rbp) movl $77, -16(%rbp) movl -16(%rbp), %eax subl -28(%rbp), %eax movl %eax, -24(%rbp) movl -32(%rbp), %eax cltd idivl -24(%rbp) movl %eax, -20(%rbp) leaq L_.str(%rip), %rdi movb $0, %al callq _printf movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_2 ## %bb.1: xorl %eax, %eax addq $208, %rsp popq %rbp retq LBB0_2: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "done\n" .subsections_via_symbols
the_stack_data/165764538.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _func2 ; -- Begin function func2 .p2align 2 _func2: ; @func2 .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 ldur w8, [x29, #-4] mov x9, #0 str w8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _func1 ; -- Begin function func1 .p2align 2 _func1: ; @func1 .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur w0, [x29, #-4] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf ldur w8, [x29, #-4] mov w10, #5 sdiv w9, w8, w10 mul w9, w9, w10 subs w0, w8, w9 bl _func2 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill .cfi_def_cfa_offset 16 mov x29, sp .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w0, #42 bl _func1 mov w0, #0 ldp x29, x30, [sp], #16 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "About to segfault... a=%d\n" l_.str.1: ; @.str.1 .asciz "Did segfault!\n" l_.str.2: ; @.str.2 .asciz "Calling func2\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _func2 ## -- Begin function func2 .p2align 4, 0x90 _func2: ## @func2 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl %edi, -4(%rbp) movl -4(%rbp), %esi leaq L_.str(%rip), %rdi movb $0, %al callq _printf movl -4(%rbp), %ecx xorl %eax, %eax ## kill: def $rax killed $eax movl %ecx, (%rax) leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _func1 ## -- Begin function func1 .p2align 4, 0x90 _func1: ## @func1 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl %edi, -4(%rbp) leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf movl -4(%rbp), %eax movl $5, %ecx cltd idivl %ecx movl %edx, %edi callq _func2 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 $42, %edi callq _func1 xorl %eax, %eax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "About to segfault... a=%d\n" L_.str.1: ## @.str.1 .asciz "Did segfault!\n" L_.str.2: ## @.str.2 .asciz "Calling func2\n" .subsections_via_symbols
the_stack_data/41353.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __TEXT,__literal8,8byte_literals .p2align 3 ; -- Begin function main lCPI0_0: .quad 0x3fb47ae147ae147b ; double 0.080000000000000002 lCPI0_1: .quad 0x4033e66666666666 ; double 19.899999999999999 .section __TEXT,__text,regular,pure_instructions .globl _main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] mov x9, sp sub x8, x29, #8 str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _scanf ldur w8, [x29, #-8] subs w8, w8, #15 cset w8, lt tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: ldur s1, [x29, #-8] ; implicit-def: $d0 fmov s0, s1 sshll.2d v0, v0, #0 ; kill: def $d0 killed $d0 killed $q0 scvtf d0, d0 adrp x8, lCPI0_1@PAGE ldr d1, [x8, lCPI0_1@PAGEOFF] fmul d0, d0, d1 fcvt s0, d0 stur s0, [x29, #-20] ldur w8, [x29, #-8] mov w9, #15 sdiv w8, w8, w9 stur w8, [x29, #-12] ldur s0, [x29, #-20] fcvt d0, s0 ldur s2, [x29, #-12] ; implicit-def: $d1 fmov s1, s2 sshll.2d v1, v1, #0 ; kill: def $d1 killed $d1 killed $q1 scvtf d2, d1 adrp x8, lCPI0_0@PAGE ldr d1, [x8, lCPI0_0@PAGEOFF] fmul d1, d1, d2 fmul d0, d0, d1 fcvt s0, d0 str s0, [sp, #24] ldur s0, [x29, #-20] fcvt d0, s0 fmov d1, #0.50000000 fmul d0, d0, d1 fcvt s0, d0 stur s0, [x29, #-16] ldur s0, [x29, #-16] ldr s1, [sp, #24] fadd s0, s0, s1 stur s0, [x29, #-16] ldur s0, [x29, #-20] fcvt d0, s0 mov x8, sp str d0, [x8] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF str x0, [sp, #16] ; 8-byte Folded Spill bl _printf ldr x0, [sp, #16] ; 8-byte Folded Reload ldr s0, [sp, #24] fcvt d0, s0 mov x8, sp str d0, [x8] bl _printf ldr x0, [sp, #16] ; 8-byte Folded Reload ldur s0, [x29, #-16] fcvt d0, s0 mov x8, sp str d0, [x8] bl _printf b LBB0_3 LBB0_2: ldur s1, [x29, #-8] ; implicit-def: $d0 fmov s0, s1 sshll.2d v0, v0, #0 ; kill: def $d0 killed $d0 killed $q0 scvtf d0, d0 adrp x8, lCPI0_1@PAGE ldr d1, [x8, lCPI0_1@PAGEOFF] fmul d0, d0, d1 fcvt s0, d0 stur s0, [x29, #-20] ldur w8, [x29, #-8] mov w9, #15 sdiv w8, w8, w9 stur w8, [x29, #-12] ldur s0, [x29, #-20] fcvt d0, s0 ldur s3, [x29, #-12] ; implicit-def: $d2 fmov s2, s3 sshll.2d v2, v2, #0 ; kill: def $d2 killed $d2 killed $q2 scvtf d3, d2 adrp x8, lCPI0_0@PAGE ldr d2, [x8, lCPI0_0@PAGEOFF] fmul d2, d2, d3 fmul d0, d0, d2 fcvt s0, d0 str s0, [sp, #24] ldur s2, [x29, #-8] ; implicit-def: $d0 fmov s0, s2 sshll.2d v0, v0, #0 ; kill: def $d0 killed $d0 killed $q0 scvtf d0, d0 fmul d0, d0, d1 fcvt s0, d0 stur s0, [x29, #-16] ldur s0, [x29, #-16] fcvt d0, s0 fmov d1, #0.50000000 fmul d0, d0, d1 fcvt s0, d0 stur s0, [x29, #-16] ldur s0, [x29, #-20] fcvt d0, s0 mov x8, sp str d0, [x8] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF str x0, [sp, #8] ; 8-byte Folded Spill bl _printf ldr x0, [sp, #8] ; 8-byte Folded Reload ldr s0, [sp, #24] fcvt d0, s0 mov x8, sp str d0, [x8] bl _printf ldr x0, [sp, #8] ; 8-byte Folded Reload ldur s0, [x29, #-16] fcvt d0, s0 mov x8, sp str d0, [x8] bl _printf b LBB0_3 LBB0_3: mov w0, #0 ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d" l_.str.1: ; @.str.1 .asciz "%.2lf\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __TEXT,__literal8,8byte_literals .p2align 3 ## -- Begin function main LCPI0_0: .quad 0x3fe0000000000000 ## double 0.5 LCPI0_1: .quad 0x4033e66666666666 ## double 19.899999999999999 LCPI0_2: .quad 0x3fb47ae147ae147b ## double 0.080000000000000002 .section __TEXT,__text,regular,pure_instructions .globl _main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl $0, -4(%rbp) leaq L_.str(%rip), %rdi leaq -8(%rbp), %rsi movb $0, %al callq _scanf cmpl $15, -8(%rbp) jl LBB0_2 ## %bb.1: cvtsi2sdl -8(%rbp), %xmm0 movsd LCPI0_1(%rip), %xmm1 ## xmm1 = mem[0],zero mulsd %xmm1, %xmm0 cvtsd2ss %xmm0, %xmm0 movss %xmm0, -20(%rbp) movl -8(%rbp), %eax movl $15, %ecx cltd idivl %ecx movl %eax, -12(%rbp) movss -20(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 cvtsi2sdl -12(%rbp), %xmm2 movsd LCPI0_2(%rip), %xmm1 ## xmm1 = mem[0],zero mulsd %xmm2, %xmm1 mulsd %xmm1, %xmm0 cvtsd2ss %xmm0, %xmm0 movss %xmm0, -24(%rbp) movss -20(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movsd LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero mulsd %xmm1, %xmm0 cvtsd2ss %xmm0, %xmm0 movss %xmm0, -16(%rbp) movss -16(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero addss -24(%rbp), %xmm0 movss %xmm0, -16(%rbp) movss -20(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 leaq L_.str.1(%rip), %rdi movb $1, %al callq _printf movss -24(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 leaq L_.str.1(%rip), %rdi movb $1, %al callq _printf movss -16(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 leaq L_.str.1(%rip), %rdi movb $1, %al callq _printf jmp LBB0_3 LBB0_2: cvtsi2sdl -8(%rbp), %xmm0 movsd LCPI0_1(%rip), %xmm1 ## xmm1 = mem[0],zero mulsd %xmm1, %xmm0 cvtsd2ss %xmm0, %xmm0 movss %xmm0, -20(%rbp) movl -8(%rbp), %eax movl $15, %ecx cltd idivl %ecx movl %eax, -12(%rbp) movss -20(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 cvtsi2sdl -12(%rbp), %xmm2 movsd LCPI0_2(%rip), %xmm1 ## xmm1 = mem[0],zero mulsd %xmm2, %xmm1 mulsd %xmm1, %xmm0 cvtsd2ss %xmm0, %xmm0 movss %xmm0, -24(%rbp) cvtsi2sdl -8(%rbp), %xmm0 movsd LCPI0_1(%rip), %xmm1 ## xmm1 = mem[0],zero mulsd %xmm1, %xmm0 cvtsd2ss %xmm0, %xmm0 movss %xmm0, -16(%rbp) movss -16(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movsd LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero mulsd %xmm1, %xmm0 cvtsd2ss %xmm0, %xmm0 movss %xmm0, -16(%rbp) movss -20(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 leaq L_.str.1(%rip), %rdi movb $1, %al callq _printf movss -24(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 leaq L_.str.1(%rip), %rdi movb $1, %al callq _printf movss -16(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 leaq L_.str.1(%rip), %rdi movb $1, %al callq _printf LBB0_3: xorl %eax, %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d" L_.str.1: ## @.str.1 .asciz "%.2lf\n" .subsections_via_symbols
the_stack_data/111077394.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _f1 ; -- Begin function f1 .p2align 2 _f1: ; @f1 .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str s0, [sp, #12] ldr s0, [sp, #12] frintx s0, s0 add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _f2 ; -- Begin function f2 .p2align 2 _f2: ; @f2 .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str d0, [sp, #8] ldr d0, [sp, #8] frintx d0, d0 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 _f1 ## -- Begin function f1 .p2align 4, 0x90 _f1: ## @f1 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movss %xmm0, -4(%rbp) movss -4(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero roundss $4, %xmm0, %xmm0 popq %rbp retq .cfi_endproc ## -- End function .globl _f2 ## -- Begin function f2 .p2align 4, 0x90 _f2: ## @f2 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movsd %xmm0, -8(%rbp) movsd -8(%rbp), %xmm0 ## xmm0 = mem[0],zero roundsd $4, %xmm0, %xmm0 popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/529700.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _bar ; -- Begin function bar .p2align 2 _bar: ; @bar .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #12] ldr w8, [sp, #12] add w0, w8, #2 add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _baz ; -- Begin function baz .p2align 2 _baz: ; @baz .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #12] ldr w8, [sp, #12] add w0, w8, #1 add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov x8, x1 mov w1, #0 stur wzr, [x29, #-4] str w0, [sp, #8] str x8, [sp] adrp x0, _bar@PAGE add x0, x0, _bar@PAGEOFF bl _foo subs w8, w0, #3 cset w8, eq tbnz w8, #0, LBB2_2 b LBB2_1 LBB2_1: bl _abort LBB2_2: adrp x8, _g@PAGE ldr x0, [x8, _g@PAGEOFF] mov w1, #1 bl _foo subs w8, w0, #3 cset w8, eq tbnz w8, #0, LBB2_4 b LBB2_3 LBB2_3: bl _abort LBB2_4: mov w0, #0 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function foo _foo: ; @foo .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #8] str w1, [sp, #4] ldr x8, [sp, #8] ldr w9, [sp, #4] add w0, w9, #1 blr x8 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .section __DATA,__data .globl _g ; @g .p2align 3 _g: .quad _baz .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _bar ## -- Begin function bar .p2align 4, 0x90 _bar: ## @bar .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, -4(%rbp) movl -4(%rbp), %eax addl $2, %eax popq %rbp retq .cfi_endproc ## -- End function .globl _baz ## -- Begin function baz .p2align 4, 0x90 _baz: ## @baz .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, -4(%rbp) movl -4(%rbp), %eax addl $1, %eax popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) movl %edi, -8(%rbp) movq %rsi, -16(%rbp) leaq _bar(%rip), %rdi xorl %esi, %esi callq _foo cmpl $3, %eax je LBB2_2 ## %bb.1: callq _abort LBB2_2: movq _g(%rip), %rdi movl $1, %esi callq _foo cmpl $3, %eax je LBB2_4 ## %bb.3: callq _abort LBB2_4: xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function foo _foo: ## @foo .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) movq -8(%rbp), %rax movl -12(%rbp), %edi addl $1, %edi callq *%rax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __DATA,__data .globl _g ## @g .p2align 3 _g: .quad _baz .subsections_via_symbols
the_stack_data/86153.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __TEXT,__literal8,8byte_literals .p2align 3 ; -- Begin function speedtest1_timestamp lCPI0_0: .quad 0x4194997000000000 ; double 8.64E+7 .section __TEXT,__text,regular,pure_instructions .globl _speedtest1_timestamp .p2align 2 _speedtest1_timestamp: ; @speedtest1_timestamp .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, _speedtest1_timestamp.clockVfs@PAGE ldr x8, [x8, _speedtest1_timestamp.clockVfs@PAGEOFF] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: mov x0, #0 bl _sqlite3_vfs_find adrp x8, _speedtest1_timestamp.clockVfs@PAGE str x0, [x8, _speedtest1_timestamp.clockVfs@PAGEOFF] b LBB0_2 LBB0_2: adrp x8, _speedtest1_timestamp.clockVfs@PAGE ldr x8, [x8, _speedtest1_timestamp.clockVfs@PAGEOFF] ldr w8, [x8] subs w8, w8, #2 cset w8, lt tbnz w8, #0, LBB0_5 b LBB0_3 LBB0_3: adrp x8, _speedtest1_timestamp.clockVfs@PAGE ldr x8, [x8, _speedtest1_timestamp.clockVfs@PAGEOFF] ldr x8, [x8, #136] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB0_5 b LBB0_4 LBB0_4: adrp x9, _speedtest1_timestamp.clockVfs@PAGE ldr x8, [x9, _speedtest1_timestamp.clockVfs@PAGEOFF] ldr x8, [x8, #136] ldr x0, [x9, _speedtest1_timestamp.clockVfs@PAGEOFF] add x1, sp, #8 blr x8 b LBB0_6 LBB0_5: adrp x9, _speedtest1_timestamp.clockVfs@PAGE ldr x8, [x9, _speedtest1_timestamp.clockVfs@PAGEOFF] ldr x8, [x8, #120] ldr x0, [x9, _speedtest1_timestamp.clockVfs@PAGEOFF] mov x1, sp blr x8 ldr d0, [sp] adrp x8, lCPI0_0@PAGE ldr d1, [x8, lCPI0_0@PAGEOFF] fmul d0, d0, d1 fcvtzs x8, d0 str x8, [sp, #8] b LBB0_6 LBB0_6: ldr x0, [sp, #8] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _speedtest1_random ; -- Begin function speedtest1_random .p2align 2 _speedtest1_random: ; @speedtest1_random .cfi_startproc ; %bb.0: adrp x9, _g@PAGE add x9, x9, _g@PAGEOFF ldr w10, [x9, #80] ldr w8, [x9, #80] and w8, w8, #0x1 mvn w8, w8 add w8, w8, #1 mov w11, #1 movk w11, #53248, lsl #16 and w8, w8, w11 eor w8, w8, w10, lsr #1 str w8, [x9, #80] ldr w8, [x9, #84] mov w10, #20077 movk w10, #16838, lsl #16 mul w8, w8, w10 mov w10, #12345 add w8, w8, w10 str w8, [x9, #84] ldr w8, [x9, #80] ldr w9, [x9, #84] eor w0, w8, w9 ret .cfi_endproc ; -- End function .globl _swizzle ; -- Begin function swizzle .p2align 2 _swizzle: ; @swizzle .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #12] str w1, [sp, #8] str wzr, [sp, #4] b LBB2_1 LBB2_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #8] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB2_3 b LBB2_2 LBB2_2: ; in Loop: Header=BB2_1 Depth=1 ldr w9, [sp, #4] ldr w8, [sp, #12] bfi w8, w9, #1, #31 str w8, [sp, #4] ldr w8, [sp, #12] lsr w8, w8, #1 str w8, [sp, #12] ldr w8, [sp, #8] lsr w8, w8, #1 str w8, [sp, #8] b LBB2_1 LBB2_3: ldr w0, [sp, #4] add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _roundup_allones ; -- Begin function roundup_allones .p2align 2 _roundup_allones: ; @roundup_allones .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #12] mov w8, #1 str w8, [sp, #8] b LBB3_1 LBB3_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #8] ldr w9, [sp, #12] subs w8, w8, w9 cset w8, hs tbnz w8, #0, LBB3_3 b LBB3_2 LBB3_2: ; in Loop: Header=BB3_1 Depth=1 ldr w8, [sp, #8] lsl w8, w8, #1 add w8, w8, #1 str w8, [sp, #8] b LBB3_1 LBB3_3: ldr w0, [sp, #8] add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _speedtest1_numbername ; -- Begin function speedtest1_numbername .p2align 2 _speedtest1_numbername: ; @speedtest1_numbername .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 w9, #51712 movk w9, #15258, lsl #16 str w9, [sp, #32] ; 4-byte Folded Spill mov w8, #16960 movk w8, #15, lsl #16 stur w8, [x29, #-28] ; 4-byte Folded Spill stur w0, [x29, #-4] stur x1, [x29, #-16] stur w2, [x29, #-20] stur wzr, [x29, #-24] ldur w8, [x29, #-4] subs w8, w8, w9 cset w8, lo tbnz w8, #0, LBB4_2 b LBB4_1 LBB4_1: ldr w9, [sp, #32] ; 4-byte Folded Reload ldur w8, [x29, #-4] udiv w0, w8, w9 ldur x8, [x29, #-16] ldursw x9, [x29, #-24] add x1, x8, x9 ldur w8, [x29, #-20] ldur w9, [x29, #-24] subs w2, w8, w9 bl _speedtest1_numbername ldur w8, [x29, #-24] add w8, w8, w0 stur w8, [x29, #-24] ldur w8, [x29, #-20] ldur w9, [x29, #-24] subs w0, w8, w9 ldur x8, [x29, #-16] ldursw x9, [x29, #-24] add x1, x8, x9 adrp x2, l_.str.29@PAGE add x2, x2, l_.str.29@PAGEOFF bl _sqlite3_snprintf ldur x8, [x29, #-16] ldursw x9, [x29, #-24] add x0, x8, x9 bl _strlen ldr w10, [sp, #32] ; 4-byte Folded Reload mov x9, x0 ldur w8, [x29, #-24] add w8, w8, w9 stur w8, [x29, #-24] ldur w8, [x29, #-4] udiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 stur w8, [x29, #-4] b LBB4_2 LBB4_2: ldur w9, [x29, #-28] ; 4-byte Folded Reload ldur w8, [x29, #-4] subs w8, w8, w9 cset w8, lo tbnz w8, #0, LBB4_7 b LBB4_3 LBB4_3: ldur w8, [x29, #-24] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB4_6 b LBB4_4 LBB4_4: ldur w8, [x29, #-24] ldur w9, [x29, #-20] subs w9, w9, #1 subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB4_6 b LBB4_5 LBB4_5: ldur x8, [x29, #-16] ldursw x9, [x29, #-24] mov x10, x9 add w10, w10, #1 stur w10, [x29, #-24] add x9, x8, x9 mov w8, #32 strb w8, [x9] b LBB4_6 LBB4_6: ldur w9, [x29, #-28] ; 4-byte Folded Reload ldur w8, [x29, #-4] udiv w0, w8, w9 ldur x8, [x29, #-16] ldursw x9, [x29, #-24] add x1, x8, x9 ldur w8, [x29, #-20] ldur w9, [x29, #-24] subs w2, w8, w9 bl _speedtest1_numbername ldur w8, [x29, #-24] add w8, w8, w0 stur w8, [x29, #-24] ldur w8, [x29, #-20] ldur w9, [x29, #-24] subs w0, w8, w9 ldur x8, [x29, #-16] ldursw x9, [x29, #-24] add x1, x8, x9 adrp x2, l_.str.30@PAGE add x2, x2, l_.str.30@PAGEOFF bl _sqlite3_snprintf ldur x8, [x29, #-16] ldursw x9, [x29, #-24] add x0, x8, x9 bl _strlen ldur w10, [x29, #-28] ; 4-byte Folded Reload mov x9, x0 ldur w8, [x29, #-24] add w8, w8, w9 stur w8, [x29, #-24] ldur w8, [x29, #-4] udiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 stur w8, [x29, #-4] b LBB4_7 LBB4_7: ldur w8, [x29, #-4] subs w8, w8, #1000 cset w8, lo tbnz w8, #0, LBB4_12 b LBB4_8 LBB4_8: ldur w8, [x29, #-24] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB4_11 b LBB4_9 LBB4_9: ldur w8, [x29, #-24] ldur w9, [x29, #-20] subs w9, w9, #1 subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB4_11 b LBB4_10 LBB4_10: ldur x8, [x29, #-16] ldursw x9, [x29, #-24] mov x10, x9 add w10, w10, #1 stur w10, [x29, #-24] add x9, x8, x9 mov w8, #32 strb w8, [x9] b LBB4_11 LBB4_11: ldur w8, [x29, #-4] mov w9, #1000 str w9, [sp, #28] ; 4-byte Folded Spill udiv w0, w8, w9 ldur x8, [x29, #-16] ldursw x9, [x29, #-24] add x1, x8, x9 ldur w8, [x29, #-20] ldur w9, [x29, #-24] subs w2, w8, w9 bl _speedtest1_numbername ldur w8, [x29, #-24] add w8, w8, w0 stur w8, [x29, #-24] ldur w8, [x29, #-20] ldur w9, [x29, #-24] subs w0, w8, w9 ldur x8, [x29, #-16] ldursw x9, [x29, #-24] add x1, x8, x9 adrp x2, l_.str.31@PAGE add x2, x2, l_.str.31@PAGEOFF bl _sqlite3_snprintf ldur x8, [x29, #-16] ldursw x9, [x29, #-24] add x0, x8, x9 bl _strlen ldr w10, [sp, #28] ; 4-byte Folded Reload mov x9, x0 ldur w8, [x29, #-24] add w8, w8, w9 stur w8, [x29, #-24] ldur w8, [x29, #-4] udiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 stur w8, [x29, #-4] b LBB4_12 LBB4_12: ldur w8, [x29, #-4] subs w8, w8, #100 cset w8, lo tbnz w8, #0, LBB4_17 b LBB4_13 LBB4_13: ldur w8, [x29, #-24] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB4_16 b LBB4_14 LBB4_14: ldur w8, [x29, #-24] ldur w9, [x29, #-20] subs w9, w9, #1 subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB4_16 b LBB4_15 LBB4_15: ldur x8, [x29, #-16] ldursw x9, [x29, #-24] mov x10, x9 add w10, w10, #1 stur w10, [x29, #-24] add x9, x8, x9 mov w8, #32 strb w8, [x9] b LBB4_16 LBB4_16: ldur w8, [x29, #-20] ldur w9, [x29, #-24] subs w0, w8, w9 ldur x8, [x29, #-16] ldursw x9, [x29, #-24] add x1, x8, x9 ldur w8, [x29, #-4] mov w9, #100 str w9, [sp, #24] ; 4-byte Folded Spill udiv w9, w8, w9 adrp x8, _speedtest1_numbername.ones@PAGE add x8, x8, _speedtest1_numbername.ones@PAGEOFF ldr x8, [x8, w9, uxtw #3] mov x9, sp str x8, [x9] adrp x2, l_.str.32@PAGE add x2, x2, l_.str.32@PAGEOFF bl _sqlite3_snprintf ldur x8, [x29, #-16] ldursw x9, [x29, #-24] add x0, x8, x9 bl _strlen ldr w10, [sp, #24] ; 4-byte Folded Reload mov x9, x0 ldur w8, [x29, #-24] add w8, w8, w9 stur w8, [x29, #-24] ldur w8, [x29, #-4] udiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 stur w8, [x29, #-4] b LBB4_17 LBB4_17: ldur w8, [x29, #-4] subs w8, w8, #20 cset w8, lo tbnz w8, #0, LBB4_22 b LBB4_18 LBB4_18: ldur w8, [x29, #-24] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB4_21 b LBB4_19 LBB4_19: ldur w8, [x29, #-24] ldur w9, [x29, #-20] subs w9, w9, #1 subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB4_21 b LBB4_20 LBB4_20: ldur x8, [x29, #-16] ldursw x9, [x29, #-24] mov x10, x9 add w10, w10, #1 stur w10, [x29, #-24] add x9, x8, x9 mov w8, #32 strb w8, [x9] b LBB4_21 LBB4_21: ldur w8, [x29, #-20] ldur w9, [x29, #-24] subs w0, w8, w9 ldur x8, [x29, #-16] ldursw x9, [x29, #-24] add x1, x8, x9 ldur w8, [x29, #-4] mov w9, #10 str w9, [sp, #20] ; 4-byte Folded Spill udiv w9, w8, w9 adrp x8, _speedtest1_numbername.tens@PAGE add x8, x8, _speedtest1_numbername.tens@PAGEOFF ldr x8, [x8, w9, uxtw #3] mov x9, sp str x8, [x9] adrp x2, l_.str.33@PAGE add x2, x2, l_.str.33@PAGEOFF bl _sqlite3_snprintf ldur x8, [x29, #-16] ldursw x9, [x29, #-24] add x0, x8, x9 bl _strlen ldr w10, [sp, #20] ; 4-byte Folded Reload mov x9, x0 ldur w8, [x29, #-24] add w8, w8, w9 stur w8, [x29, #-24] ldur w8, [x29, #-4] udiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 stur w8, [x29, #-4] b LBB4_22 LBB4_22: ldur w8, [x29, #-4] subs w8, w8, #0 cset w8, ls tbnz w8, #0, LBB4_27 b LBB4_23 LBB4_23: ldur w8, [x29, #-24] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB4_26 b LBB4_24 LBB4_24: ldur w8, [x29, #-24] ldur w9, [x29, #-20] subs w9, w9, #1 subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB4_26 b LBB4_25 LBB4_25: ldur x8, [x29, #-16] ldursw x9, [x29, #-24] mov x10, x9 add w10, w10, #1 stur w10, [x29, #-24] add x9, x8, x9 mov w8, #32 strb w8, [x9] b LBB4_26 LBB4_26: ldur w8, [x29, #-20] ldur w9, [x29, #-24] subs w0, w8, w9 ldur x8, [x29, #-16] ldursw x9, [x29, #-24] add x1, x8, x9 ldur w8, [x29, #-4] mov x9, x8 adrp x8, _speedtest1_numbername.ones@PAGE add x8, x8, _speedtest1_numbername.ones@PAGEOFF ldr x8, [x8, x9, lsl #3] mov x9, sp str x8, [x9] adrp x2, l_.str.33@PAGE add x2, x2, l_.str.33@PAGEOFF bl _sqlite3_snprintf ldur x8, [x29, #-16] ldursw x9, [x29, #-24] add x0, x8, x9 bl _strlen mov x9, x0 ldur w8, [x29, #-24] add w8, w8, w9 stur w8, [x29, #-24] b LBB4_27 LBB4_27: ldur w8, [x29, #-24] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB4_29 b LBB4_28 LBB4_28: ldur w8, [x29, #-20] ldur w9, [x29, #-24] subs w0, w8, w9 ldur x8, [x29, #-16] ldursw x9, [x29, #-24] add x1, x8, x9 adrp x2, l_.str@PAGE add x2, x2, l_.str@PAGEOFF bl _sqlite3_snprintf ldur x8, [x29, #-16] ldursw x9, [x29, #-24] add x0, x8, x9 bl _strlen mov x9, x0 ldur w8, [x29, #-24] add w8, w8, w9 stur w8, [x29, #-24] b LBB4_29 LBB4_29: ldur w0, [x29, #-24] ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .globl _speedtest1_begin_test ; -- Begin function speedtest1_begin_test .p2align 2 _speedtest1_begin_test: ; @speedtest1_begin_test .cfi_startproc ; %bb.0: sub sp, sp, #96 .cfi_def_cfa_offset 96 stp x29, x30, [sp, #80] ; 16-byte Folded Spill add x29, sp, #80 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, _g@PAGE add x8, x8, _g@PAGEOFF str x8, [sp, #32] ; 8-byte Folded Spill stur w0, [x29, #-4] stur x1, [x29, #-16] ldur x0, [x29, #-16] bl _strlen mov x8, x0 stur w8, [x29, #-20] add x9, sp, #40 add x8, x29, #16 str x8, [x9] ldur x0, [x29, #-16] ldr x1, [sp, #40] bl _sqlite3_vmprintf stur x0, [x29, #-32] ldur x0, [x29, #-32] bl _strlen mov x8, x0 stur w8, [x29, #-20] ldur w8, [x29, #-20] subs w8, w8, #60 cset w8, le tbnz w8, #0, LBB5_2 b LBB5_1 LBB5_1: ldur x8, [x29, #-32] strb wzr, [x8, #60] mov w8, #60 stur w8, [x29, #-20] b LBB5_2 LBB5_2: ldr x8, [sp, #32] ; 8-byte Folded Reload ldr w8, [x8, #40] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB5_4 b LBB5_3 LBB5_3: ldur w8, [x29, #-4] ; implicit-def: $x11 mov x11, x8 ldur x8, [x29, #-32] ldur w10, [x29, #-20] mov w9, #60 subs w10, w9, w10 mov x9, sp str x11, [x9] str x8, [x9, #8] ; implicit-def: $x8 mov x8, x10 str x8, [x9, #16] adrp x8, _zDots@PAGE add x8, x8, _zDots@PAGEOFF str x8, [x9, #24] adrp x0, l_.str.34@PAGE add x0, x0, l_.str.34@PAGEOFF bl _printf b LBB5_5 LBB5_4: ldur w8, [x29, #-4] ; implicit-def: $x11 mov x11, x8 ldur x8, [x29, #-32] ldur w10, [x29, #-20] mov w9, #60 subs w10, w9, w10 mov x9, sp str x11, [x9] str x8, [x9, #8] ; implicit-def: $x8 mov x8, x10 str x8, [x9, #16] adrp x8, _zDots@PAGE add x8, x8, _zDots@PAGEOFF str x8, [x9, #24] adrp x0, l_.str.35@PAGE add x0, x0, l_.str.35@PAGEOFF bl _printf adrp x8, ___stdoutp@GOTPAGE ldr x8, [x8, ___stdoutp@GOTPAGEOFF] ldr x0, [x8] bl _fflush b LBB5_5 LBB5_5: ldur x0, [x29, #-32] bl _sqlite3_free ldr x8, [sp, #32] ; 8-byte Folded Reload str wzr, [x8, #88] bl _speedtest1_timestamp ldr x9, [sp, #32] ; 8-byte Folded Reload str x0, [x9, #16] mov w8, #7435 movk w8, #44307, lsl #16 str w8, [x9, #80] mov w8, #60104 movk w8, #17657, lsl #16 str w8, [x9, #84] ldp x29, x30, [sp, #80] ; 16-byte Folded Reload add sp, sp, #96 ret .cfi_endproc ; -- End function .globl _speedtest1_end_test ; -- Begin function speedtest1_end_test .p2align 2 _speedtest1_end_test: ; @speedtest1_end_test .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, _g@PAGE add x8, x8, _g@PAGEOFF str x8, [sp, #16] ; 8-byte Folded Spill bl _speedtest1_timestamp ldr x8, [sp, #16] ; 8-byte Folded Reload ldr x9, [x8, #16] subs x9, x0, x9 stur x9, [x29, #-8] ldr w8, [x8, #40] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB6_2 b LBB6_1 LBB6_1: ldr x9, [sp, #16] ; 8-byte Folded Reload ldur x10, [x29, #-8] ldr x8, [x9, #24] add x8, x8, x10 str x8, [x9, #24] ldur x8, [x29, #-8] mov x11, #1000 sdiv x10, x8, x11 ldur x8, [x29, #-8] sdiv x9, x8, x11 mul x9, x9, x11 subs x8, x8, x9 mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x0, l_.str.36@PAGE add x0, x0, l_.str.36@PAGEOFF bl _printf b LBB6_2 LBB6_2: ldr x8, [sp, #16] ; 8-byte Folded Reload ldr x8, [x8, #8] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB6_4 b LBB6_3 LBB6_3: ldr x8, [sp, #16] ; 8-byte Folded Reload ldr x0, [x8, #8] bl _sqlite3_finalize ldr x8, [sp, #16] ; 8-byte Folded Reload ; kill: def $x9 killed $xzr str xzr, [x8, #8] b LBB6_4 LBB6_4: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _speedtest1_final ; -- Begin function speedtest1_final .p2align 2 _speedtest1_final: ; @speedtest1_final .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, _g@PAGE add x8, x8, _g@PAGEOFF stur x8, [x29, #-8] ; 8-byte Folded Spill ldr w8, [x8, #40] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB7_2 b LBB7_1 LBB7_1: ldur x8, [x29, #-8] ; 8-byte Folded Reload ldr x9, [x8, #24] mov x11, #1000 sdiv x10, x9, x11 ldr x8, [x8, #24] sdiv x9, x8, x11 mul x9, x9, x11 subs x8, x8, x9 mov x9, sp mov x11, #55 str x11, [x9] adrp x11, _zDots@PAGE add x11, x11, _zDots@PAGEOFF str x11, [x9, #8] str x10, [x9, #16] str x8, [x9, #24] adrp x0, l_.str.37@PAGE add x0, x0, l_.str.37@PAGEOFF bl _printf b LBB7_2 LBB7_2: ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _speedtest1_exec ; -- Begin function speedtest1_exec .p2align 2 _speedtest1_exec: ; @speedtest1_exec .cfi_startproc ; %bb.0: sub sp, sp, #80 .cfi_def_cfa_offset 80 stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp, #64 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, _g@PAGE add x8, x8, _g@PAGEOFF str x8, [sp, #16] ; 8-byte Folded Spill stur x0, [x29, #-8] sub x9, x29, #16 add x8, x29, #16 str x8, [x9] ldur x0, [x29, #-8] ldur x1, [x29, #-16] bl _sqlite3_vmprintf ldr x8, [sp, #16] ; 8-byte Folded Reload stur x0, [x29, #-24] ldr w8, [x8, #40] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB8_2 b LBB8_1 LBB8_1: ldur x0, [x29, #-24] bl _printSql b LBB8_7 LBB8_2: add x4, sp, #32 mov x3, #0 str xzr, [sp, #32] adrp x8, _g@PAGE ldr x0, [x8, _g@PAGEOFF] ldur x1, [x29, #-24] mov x2, x3 bl _sqlite3_exec str w0, [sp, #28] ldr x8, [sp, #32] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB8_4 b LBB8_3 LBB8_3: ldr x10, [sp, #32] ldur x8, [x29, #-24] mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x0, l_.str.38@PAGE add x0, x0, l_.str.38@PAGEOFF bl _fatal_error b LBB8_4 LBB8_4: ldr w8, [sp, #28] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB8_6 b LBB8_5 LBB8_5: adrp x8, _g@PAGE ldr x0, [x8, _g@PAGEOFF] bl _sqlite3_errmsg mov x8, sp str x0, [x8] adrp x0, l_.str.39@PAGE add x0, x0, l_.str.39@PAGEOFF bl _fatal_error b LBB8_6 LBB8_6: b LBB8_7 LBB8_7: ldur x0, [x29, #-24] bl _sqlite3_free ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function printSql _printSql: ; @printSql .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, _g@PAGE add x8, x8, _g@PAGEOFF str x8, [sp, #24] ; 8-byte Folded Spill stur x0, [x29, #-8] ldur x0, [x29, #-8] bl _strlen mov x8, x0 stur w8, [x29, #-12] b LBB9_1 LBB9_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-12] subs w8, w8, #0 cset w8, le mov w9, #0 str w9, [sp, #20] ; 4-byte Folded Spill tbnz w8, #0, LBB9_5 b LBB9_2 LBB9_2: ; in Loop: Header=BB9_1 Depth=1 ldur x8, [x29, #-8] ldur w9, [x29, #-12] subs w9, w9, #1 ldrsb w8, [x8, w9, sxtw] subs w8, w8, #59 cset w8, eq mov w9, #1 str w9, [sp, #16] ; 4-byte Folded Spill tbnz w8, #0, LBB9_4 b LBB9_3 LBB9_3: ; in Loop: Header=BB9_1 Depth=1 ldur x8, [x29, #-8] ldur w9, [x29, #-12] subs w9, w9, #1 ldrsb w0, [x8, w9, sxtw] bl _isspace subs w8, w0, #0 cset w8, ne str w8, [sp, #16] ; 4-byte Folded Spill b LBB9_4 LBB9_4: ; in Loop: Header=BB9_1 Depth=1 ldr w8, [sp, #16] ; 4-byte Folded Reload str w8, [sp, #20] ; 4-byte Folded Spill b LBB9_5 LBB9_5: ; in Loop: Header=BB9_1 Depth=1 ldr w8, [sp, #20] ; 4-byte Folded Reload tbz w8, #0, LBB9_7 b LBB9_6 LBB9_6: ; in Loop: Header=BB9_1 Depth=1 ldur w8, [x29, #-12] subs w8, w8, #1 stur w8, [x29, #-12] b LBB9_1 LBB9_7: ldr x8, [sp, #24] ; 8-byte Folded Reload ldr w8, [x8, #44] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB9_9 b LBB9_8 LBB9_8: adrp x0, l_.str.222@PAGE add x0, x0, l_.str.222@PAGEOFF bl _printf b LBB9_9 LBB9_9: ldur w8, [x29, #-12] ; implicit-def: $x10 mov x10, x8 ldur x8, [x29, #-8] mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x0, l_.str.223@PAGE add x0, x0, l_.str.223@PAGEOFF bl _printf ldr x8, [sp, #24] ; 8-byte Folded Reload ldr w8, [x8, #44] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB9_14 b LBB9_10 LBB9_10: ldur x1, [x29, #-8] adrp x0, l_.str.224@PAGE add x0, x0, l_.str.224@PAGEOFF bl _sqlite3_strglob subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB9_13 b LBB9_11 LBB9_11: ldur x1, [x29, #-8] adrp x0, l_.str.225@PAGE add x0, x0, l_.str.225@PAGEOFF bl _sqlite3_strglob subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB9_13 b LBB9_12 LBB9_12: ldur x1, [x29, #-8] adrp x0, l_.str.226@PAGE add x0, x0, l_.str.226@PAGEOFF bl _sqlite3_strglob subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB9_14 b LBB9_13 LBB9_13: ldur w8, [x29, #-12] ; implicit-def: $x10 mov x10, x8 ldur x8, [x29, #-8] mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x0, l_.str.223@PAGE add x0, x0, l_.str.223@PAGEOFF bl _printf b LBB9_14 LBB9_14: ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function fatal_error _fatal_error: ; @fatal_error .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #8] mov x9, sp add x8, x29, #16 str x8, [x9] adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] ldr x0, [x8] ldr x1, [sp, #8] ldr x2, [sp] bl _vfprintf mov w0, #1 bl _exit .cfi_endproc ; -- End function .globl _speedtest1_prepare ; -- Begin function speedtest1_prepare .p2align 2 _speedtest1_prepare: ; @speedtest1_prepare .cfi_startproc ; %bb.0: sub sp, sp, #80 .cfi_def_cfa_offset 80 stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp, #64 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, _g@PAGE add x8, x8, _g@PAGEOFF str x8, [sp, #24] ; 8-byte Folded Spill add x8, x8, #8 str x8, [sp, #16] ; 8-byte Folded Spill stur x0, [x29, #-8] sub x9, x29, #16 add x8, x29, #16 str x8, [x9] ldur x0, [x29, #-8] ldur x1, [x29, #-16] bl _sqlite3_vmprintf ldr x8, [sp, #24] ; 8-byte Folded Reload stur x0, [x29, #-24] ldr w8, [x8, #40] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB11_2 b LBB11_1 LBB11_1: ldur x0, [x29, #-24] bl _printSql b LBB11_7 LBB11_2: ldr x8, [sp, #24] ; 8-byte Folded Reload ldr x8, [x8, #8] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB11_4 b LBB11_3 LBB11_3: ldr x8, [sp, #24] ; 8-byte Folded Reload ldr x0, [x8, #8] bl _sqlite3_finalize b LBB11_4 LBB11_4: ldr x3, [sp, #16] ; 8-byte Folded Reload adrp x8, _g@PAGE ldr x0, [x8, _g@PAGEOFF] ldur x1, [x29, #-24] mov w2, #-1 mov x4, #0 bl _sqlite3_prepare_v2 stur w0, [x29, #-28] ldur w8, [x29, #-28] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB11_6 b LBB11_5 LBB11_5: adrp x8, _g@PAGE ldr x0, [x8, _g@PAGEOFF] bl _sqlite3_errmsg mov x8, sp str x0, [x8] adrp x0, l_.str.40@PAGE add x0, x0, l_.str.40@PAGEOFF bl _fatal_error b LBB11_6 LBB11_6: b LBB11_7 LBB11_7: ldur x0, [x29, #-24] bl _sqlite3_free ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .globl _speedtest1_execute ; -- Begin function speedtest1_execute .p2align 2 _speedtest1_execute: ; @speedtest1_execute .cfi_startproc ; %bb.0: sub sp, sp, #80 .cfi_def_cfa_offset 80 stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp, #64 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, _g@PAGE add x8, x8, _g@PAGEOFF str x8, [sp, #8] ; 8-byte Folded Spill add x9, x8, #92 str x9, [sp, #16] ; 8-byte Folded Spill add x9, x8, #92 str x9, [sp, #24] ; 8-byte Folded Spill ldr w8, [x8, #40] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB12_2 b LBB12_1 LBB12_1: b LBB12_21 LBB12_2: ldr x8, [sp, #8] ; 8-byte Folded Reload ldr x8, [x8, #8] subs x8, x8, #0 cset w9, eq ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB12_4 b LBB12_3 LBB12_3: adrp x0, l___func__.speedtest1_execute@PAGE add x0, x0, l___func__.speedtest1_execute@PAGEOFF adrp x1, l_.str.41@PAGE add x1, x1, l_.str.41@PAGEOFF mov w2, #364 adrp x3, l_.str.42@PAGE add x3, x3, l_.str.42@PAGEOFF bl ___assert_rtn LBB12_4: b LBB12_5 LBB12_5: ldr x8, [sp, #8] ; 8-byte Folded Reload str wzr, [x8, #88] b LBB12_6 LBB12_6: ; =>This Loop Header: Depth=1 ; Child Loop BB12_8 Depth 2 ldr x8, [sp, #8] ; 8-byte Folded Reload ldr x0, [x8, #8] bl _sqlite3_step subs w8, w0, #100 cset w8, ne tbnz w8, #0, LBB12_18 b LBB12_7 LBB12_7: ; in Loop: Header=BB12_6 Depth=1 ldr x8, [sp, #8] ; 8-byte Folded Reload ldr x0, [x8, #8] bl _sqlite3_column_count stur w0, [x29, #-8] stur wzr, [x29, #-4] b LBB12_8 LBB12_8: ; Parent Loop BB12_6 Depth=1 ; => This Inner Loop Header: Depth=2 ldur w8, [x29, #-4] ldur w9, [x29, #-8] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB12_17 b LBB12_9 LBB12_9: ; in Loop: Header=BB12_8 Depth=2 ldr x8, [sp, #8] ; 8-byte Folded Reload ldr x0, [x8, #8] ldur w1, [x29, #-4] bl _sqlite3_column_text stur x0, [x29, #-24] ldur x8, [x29, #-24] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB12_11 b LBB12_10 LBB12_10: ; in Loop: Header=BB12_8 Depth=2 adrp x8, l_.str.43@PAGE add x8, x8, l_.str.43@PAGEOFF stur x8, [x29, #-24] b LBB12_11 LBB12_11: ; in Loop: Header=BB12_8 Depth=2 ldur x0, [x29, #-24] bl _strlen ldr x8, [sp, #8] ; 8-byte Folded Reload mov x9, x0 stur w9, [x29, #-12] ldr w8, [x8, #88] ldur w9, [x29, #-12] add w9, w8, w9 ; implicit-def: $x8 mov x8, x9 sxtw x8, w8 subs x8, x8, #2998 cset w8, hs tbnz w8, #0, LBB12_15 b LBB12_12 LBB12_12: ; in Loop: Header=BB12_8 Depth=2 ldr x8, [sp, #8] ; 8-byte Folded Reload ldr w8, [x8, #88] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB12_14 b LBB12_13 LBB12_13: ; in Loop: Header=BB12_8 Depth=2 ldr x8, [sp, #16] ; 8-byte Folded Reload ldr x11, [sp, #8] ; 8-byte Folded Reload ldrsw x9, [x11, #88] mov x10, x9 add w10, w10, #1 str w10, [x11, #88] add x9, x8, x9 mov w8, #32 strb w8, [x9] b LBB12_14 LBB12_14: ; in Loop: Header=BB12_8 Depth=2 ldr x9, [sp, #8] ; 8-byte Folded Reload ldr x8, [sp, #24] ; 8-byte Folded Reload ldrsw x9, [x9, #88] add x0, x8, x9 ldur x1, [x29, #-24] ldur w8, [x29, #-12] add w9, w8, #1 ; implicit-def: $x8 mov x8, x9 sxtw x2, w8 mov x3, #-1 bl ___memcpy_chk ldr x9, [sp, #8] ; 8-byte Folded Reload ldur w10, [x29, #-12] ldr w8, [x9, #88] add w8, w8, w10 str w8, [x9, #88] b LBB12_15 LBB12_15: ; in Loop: Header=BB12_8 Depth=2 b LBB12_16 LBB12_16: ; in Loop: Header=BB12_8 Depth=2 ldur w8, [x29, #-4] add w8, w8, #1 stur w8, [x29, #-4] b LBB12_8 LBB12_17: ; in Loop: Header=BB12_6 Depth=1 b LBB12_6 LBB12_18: ldr x8, [sp, #8] ; 8-byte Folded Reload ldr w8, [x8, #36] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB12_20 b LBB12_19 LBB12_19: ldr x8, [sp, #8] ; 8-byte Folded Reload adrp x9, _g@PAGE ldr x9, [x9, _g@PAGEOFF] str x9, [sp] ; 8-byte Folded Spill ldr x0, [x8, #8] bl _sqlite3_sql mov x1, x0 ldr x0, [sp] ; 8-byte Folded Reload mov w2, #-1 add x3, sp, #32 mov x4, #0 bl _sqlite3_prepare_v2 ldr x8, [sp, #8] ; 8-byte Folded Reload ldr x0, [x8, #8] bl _sqlite3_finalize ldr x9, [sp, #8] ; 8-byte Folded Reload ldr x8, [sp, #32] str x8, [x9, #8] b LBB12_21 LBB12_20: ldr x8, [sp, #8] ; 8-byte Folded Reload ldr x0, [x8, #8] bl _sqlite3_reset b LBB12_21 LBB12_21: ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .globl _testset_main ; -- Begin function testset_main .p2align 2 _testset_main: ; @testset_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, #2224 adrp x8, _g@PAGE add x8, x8, _g@PAGEOFF str x8, [sp, #176] ; 8-byte Folded Spill adrp x9, ___stack_chk_guard@GOTPAGE ldr x9, [x9, ___stack_chk_guard@GOTPAGEOFF] ldr x9, [x9] stur x9, [x29, #-24] ldr w8, [x8, #52] mov w9, #500 mul w8, w8, w9 str w8, [sp, #208] str w8, [sp, #204] ldr w0, [sp, #204] bl _roundup_allones str w0, [sp, #200] ldr w9, [sp, #208] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] mov w0, #100 adrp x1, l_.str.44@PAGE add x1, x1, l_.str.44@PAGEOFF bl _speedtest1_begin_test adrp x0, l_.str.45@PAGE add x0, x0, l_.str.45@PAGEOFF bl _speedtest1_exec ldr x8, [sp, #176] ; 8-byte Folded Reload ldr x11, [x8, #64] ldr x10, [x8, #64] ldr x8, [x8, #64] mov x9, sp str x11, [x9] str x10, [x9, #8] str x8, [x9, #16] adrp x0, l_.str.46@PAGE add x0, x0, l_.str.46@PAGEOFF bl _speedtest1_exec ldr w9, [sp, #208] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.47@PAGE add x0, x0, l_.str.47@PAGEOFF bl _speedtest1_prepare mov w8, #1 str w8, [sp, #212] b LBB13_1 LBB13_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #212] ldr w9, [sp, #208] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB13_4 b LBB13_2 LBB13_2: ; in Loop: Header=BB13_1 Depth=1 ldr w0, [sp, #212] ldr w1, [sp, #200] bl _swizzle str w0, [sp, #196] ldr w0, [sp, #196] add x1, sp, #216 str x1, [sp, #168] ; 8-byte Folded Spill mov w2, #2000 bl _speedtest1_numbername ldr x8, [sp, #176] ; 8-byte Folded Reload ldr x0, [x8, #8] ldr w8, [sp, #196] mov x2, x8 mov w1, #1 bl _sqlite3_bind_int64 ldr x8, [sp, #176] ; 8-byte Folded Reload ldr x0, [x8, #8] ldr w2, [sp, #212] mov w1, #2 bl _sqlite3_bind_int ldr x8, [sp, #176] ; 8-byte Folded Reload ldr x2, [sp, #168] ; 8-byte Folded Reload ldr x0, [x8, #8] mov w1, #3 mov w3, #-1 mov x4, #0 bl _sqlite3_bind_text bl _speedtest1_execute b LBB13_3 LBB13_3: ; in Loop: Header=BB13_1 Depth=1 ldr w8, [sp, #212] add w8, w8, #1 str w8, [sp, #212] b LBB13_1 LBB13_4: adrp x0, l_.str.48@PAGE add x0, x0, l_.str.48@PAGEOFF bl _speedtest1_exec bl _speedtest1_end_test ldr w8, [sp, #204] str w8, [sp, #208] ldr w9, [sp, #208] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] mov w0, #110 adrp x1, l_.str.49@PAGE add x1, x1, l_.str.49@PAGEOFF bl _speedtest1_begin_test adrp x0, l_.str.45@PAGE add x0, x0, l_.str.45@PAGEOFF bl _speedtest1_exec ldr x8, [sp, #176] ; 8-byte Folded Reload ldr x13, [x8, #64] ldr x12, [x8, #72] ldr x11, [x8, #64] ldr x10, [x8, #64] ldr x8, [x8, #56] mov x9, sp str x13, [x9] str x12, [x9, #8] str x11, [x9, #16] str x10, [x9, #24] str x8, [x9, #32] adrp x0, l_.str.50@PAGE add x0, x0, l_.str.50@PAGEOFF bl _speedtest1_exec ldr w9, [sp, #208] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.51@PAGE add x0, x0, l_.str.51@PAGEOFF bl _speedtest1_prepare mov w8, #1 str w8, [sp, #212] b LBB13_5 LBB13_5: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #212] ldr w9, [sp, #208] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB13_8 b LBB13_6 LBB13_6: ; in Loop: Header=BB13_5 Depth=1 ldr w0, [sp, #212] ldr w1, [sp, #200] bl _swizzle str w0, [sp, #196] ldr w0, [sp, #196] add x1, sp, #216 str x1, [sp, #160] ; 8-byte Folded Spill mov w2, #2000 bl _speedtest1_numbername ldr x8, [sp, #176] ; 8-byte Folded Reload ldr x0, [x8, #8] ldr w2, [sp, #212] mov w1, #1 bl _sqlite3_bind_int ldr x8, [sp, #176] ; 8-byte Folded Reload ldr x0, [x8, #8] ldr w8, [sp, #196] mov x2, x8 mov w1, #2 bl _sqlite3_bind_int64 ldr x8, [sp, #176] ; 8-byte Folded Reload ldr x2, [sp, #160] ; 8-byte Folded Reload ldr x0, [x8, #8] mov w1, #3 mov w3, #-1 mov x4, #0 bl _sqlite3_bind_text bl _speedtest1_execute b LBB13_7 LBB13_7: ; in Loop: Header=BB13_5 Depth=1 ldr w8, [sp, #212] add w8, w8, #1 str w8, [sp, #212] b LBB13_5 LBB13_8: adrp x0, l_.str.48@PAGE add x0, x0, l_.str.48@PAGEOFF bl _speedtest1_exec bl _speedtest1_end_test ldr w8, [sp, #204] str w8, [sp, #208] ldr w9, [sp, #208] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] mov w0, #120 adrp x1, l_.str.52@PAGE add x1, x1, l_.str.52@PAGEOFF bl _speedtest1_begin_test adrp x0, l_.str.45@PAGE add x0, x0, l_.str.45@PAGEOFF bl _speedtest1_exec ldr x8, [sp, #176] ; 8-byte Folded Reload ldr x13, [x8, #64] ldr x12, [x8, #72] ldr x11, [x8, #64] ldr x10, [x8, #64] ldr x8, [x8, #56] mov x9, sp str x13, [x9] str x12, [x9, #8] str x11, [x9, #16] str x10, [x9, #24] str x8, [x9, #32] adrp x0, l_.str.53@PAGE add x0, x0, l_.str.53@PAGEOFF bl _speedtest1_exec ldr w9, [sp, #208] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.54@PAGE add x0, x0, l_.str.54@PAGEOFF bl _speedtest1_prepare mov w8, #1 str w8, [sp, #212] b LBB13_9 LBB13_9: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #212] ldr w9, [sp, #208] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB13_12 b LBB13_10 LBB13_10: ; in Loop: Header=BB13_9 Depth=1 ldr w0, [sp, #212] ldr w1, [sp, #200] bl _swizzle str w0, [sp, #196] ldr w0, [sp, #196] add x1, sp, #216 str x1, [sp, #152] ; 8-byte Folded Spill mov w2, #2000 bl _speedtest1_numbername ldr x8, [sp, #176] ; 8-byte Folded Reload ldr x0, [x8, #8] ldr w2, [sp, #212] mov w1, #2 bl _sqlite3_bind_int ldr x8, [sp, #176] ; 8-byte Folded Reload ldr x0, [x8, #8] ldr w8, [sp, #196] mov x2, x8 mov w1, #1 bl _sqlite3_bind_int64 ldr x8, [sp, #176] ; 8-byte Folded Reload ldr x2, [sp, #152] ; 8-byte Folded Reload ldr x0, [x8, #8] mov w1, #3 mov w3, #-1 mov x4, #0 bl _sqlite3_bind_text bl _speedtest1_execute b LBB13_11 LBB13_11: ; in Loop: Header=BB13_9 Depth=1 ldr w8, [sp, #212] add w8, w8, #1 str w8, [sp, #212] b LBB13_9 LBB13_12: adrp x0, l_.str.48@PAGE add x0, x0, l_.str.48@PAGEOFF bl _speedtest1_exec bl _speedtest1_end_test mov w8, #25 str w8, [sp, #208] ldr w9, [sp, #208] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] mov w0, #130 adrp x1, l_.str.55@PAGE add x1, x1, l_.str.55@PAGEOFF bl _speedtest1_begin_test adrp x0, l_.str.45@PAGE add x0, x0, l_.str.45@PAGEOFF bl _speedtest1_exec ldr w9, [sp, #208] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.56@PAGE add x0, x0, l_.str.56@PAGEOFF bl _speedtest1_prepare mov w8, #1 str w8, [sp, #212] b LBB13_13 LBB13_13: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #212] ldr w9, [sp, #208] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB13_16 b LBB13_14 LBB13_14: ; in Loop: Header=BB13_13 Depth=1 bl _speedtest1_random ldr w9, [sp, #200] udiv w8, w0, w9 mul w8, w8, w9 subs w8, w0, w8 str w8, [sp, #196] bl _speedtest1_random ldr x8, [sp, #176] ; 8-byte Folded Reload mov w10, #10 udiv w9, w0, w10 mul w9, w9, w10 subs w9, w0, w9 ldr w10, [sp, #204] mov w11, #5000 sdiv w10, w10, w11 add w9, w9, w10 ldr w10, [sp, #196] add w9, w9, w10 str w9, [sp, #192] ldr x0, [x8, #8] ldr w2, [sp, #196] mov w1, #1 bl _sqlite3_bind_int ldr x8, [sp, #176] ; 8-byte Folded Reload ldr x0, [x8, #8] ldr w2, [sp, #192] mov w1, #2 bl _sqlite3_bind_int bl _speedtest1_execute b LBB13_15 LBB13_15: ; in Loop: Header=BB13_13 Depth=1 ldr w8, [sp, #212] add w8, w8, #1 str w8, [sp, #212] b LBB13_13 LBB13_16: adrp x0, l_.str.48@PAGE add x0, x0, l_.str.48@PAGEOFF bl _speedtest1_exec bl _speedtest1_end_test mov w8, #10 str w8, [sp, #208] ldr w9, [sp, #208] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] mov w0, #140 adrp x1, l_.str.57@PAGE add x1, x1, l_.str.57@PAGEOFF bl _speedtest1_begin_test adrp x0, l_.str.45@PAGE add x0, x0, l_.str.45@PAGEOFF bl _speedtest1_exec ldr w9, [sp, #208] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.58@PAGE add x0, x0, l_.str.58@PAGEOFF bl _speedtest1_prepare mov w8, #1 str w8, [sp, #212] b LBB13_17 LBB13_17: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #212] ldr w9, [sp, #208] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB13_20 b LBB13_18 LBB13_18: ; in Loop: Header=BB13_17 Depth=1 bl _speedtest1_random ldr w9, [sp, #200] udiv w8, w0, w9 mul w8, w8, w9 subs w8, w0, w8 str w8, [sp, #196] add x8, sp, #216 str x8, [sp, #144] ; 8-byte Folded Spill mov w9, #37 str w9, [sp, #140] ; 4-byte Folded Spill strb w9, [sp, #216] ldr w0, [sp, #212] add x1, x8, #1 mov w2, #1998 bl _speedtest1_numbername ldr w9, [sp, #140] ; 4-byte Folded Reload ldr x8, [sp, #176] ; 8-byte Folded Reload ldr x2, [sp, #144] ; 8-byte Folded Reload str w0, [sp, #188] ldrsw x11, [sp, #188] mov x10, x2 add x10, x10, x11 strb w9, [x10] ldr w9, [sp, #188] mov w1, #1 add w9, w9, #1 add x9, x2, w9, sxtw strb wzr, [x9] ldr x0, [x8, #8] ldr w3, [sp, #188] mov x4, #0 bl _sqlite3_bind_text bl _speedtest1_execute b LBB13_19 LBB13_19: ; in Loop: Header=BB13_17 Depth=1 ldr w8, [sp, #212] add w8, w8, #1 str w8, [sp, #212] b LBB13_17 LBB13_20: adrp x0, l_.str.48@PAGE add x0, x0, l_.str.48@PAGEOFF bl _speedtest1_exec bl _speedtest1_end_test mov w8, #10 str w8, [sp, #208] ldr w9, [sp, #208] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] mov w0, #142 adrp x1, l_.str.59@PAGE add x1, x1, l_.str.59@PAGEOFF bl _speedtest1_begin_test adrp x0, l_.str.45@PAGE add x0, x0, l_.str.45@PAGEOFF bl _speedtest1_exec ldr w9, [sp, #208] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.60@PAGE add x0, x0, l_.str.60@PAGEOFF bl _speedtest1_prepare mov w8, #1 str w8, [sp, #212] b LBB13_21 LBB13_21: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #212] ldr w9, [sp, #208] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB13_24 b LBB13_22 LBB13_22: ; in Loop: Header=BB13_21 Depth=1 bl _speedtest1_random ldr w9, [sp, #200] udiv w8, w0, w9 mul w8, w8, w9 subs w8, w0, w8 str w8, [sp, #196] add x8, sp, #216 str x8, [sp, #128] ; 8-byte Folded Spill mov w9, #37 str w9, [sp, #124] ; 4-byte Folded Spill strb w9, [sp, #216] ldr w0, [sp, #212] add x1, x8, #1 mov w2, #1998 bl _speedtest1_numbername ldr w9, [sp, #124] ; 4-byte Folded Reload ldr x8, [sp, #176] ; 8-byte Folded Reload ldr x2, [sp, #128] ; 8-byte Folded Reload str w0, [sp, #188] ldrsw x11, [sp, #188] mov x10, x2 add x10, x10, x11 strb w9, [x10] ldr w9, [sp, #188] mov w1, #1 add w9, w9, #1 add x9, x2, w9, sxtw strb wzr, [x9] ldr x0, [x8, #8] ldr w3, [sp, #188] mov x4, #0 bl _sqlite3_bind_text bl _speedtest1_execute b LBB13_23 LBB13_23: ; in Loop: Header=BB13_21 Depth=1 ldr w8, [sp, #212] add w8, w8, #1 str w8, [sp, #212] b LBB13_21 LBB13_24: adrp x0, l_.str.48@PAGE add x0, x0, l_.str.48@PAGEOFF bl _speedtest1_exec bl _speedtest1_end_test mov w8, #10 str w8, [sp, #208] ldr w9, [sp, #208] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] mov w0, #145 adrp x1, l_.str.61@PAGE add x1, x1, l_.str.61@PAGEOFF bl _speedtest1_begin_test adrp x0, l_.str.45@PAGE add x0, x0, l_.str.45@PAGEOFF bl _speedtest1_exec ldr w9, [sp, #208] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.62@PAGE add x0, x0, l_.str.62@PAGEOFF bl _speedtest1_prepare mov w8, #1 str w8, [sp, #212] b LBB13_25 LBB13_25: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #212] ldr w9, [sp, #208] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB13_28 b LBB13_26 LBB13_26: ; in Loop: Header=BB13_25 Depth=1 bl _speedtest1_random ldr w9, [sp, #200] udiv w8, w0, w9 mul w8, w8, w9 subs w8, w0, w8 str w8, [sp, #196] add x8, sp, #216 str x8, [sp, #112] ; 8-byte Folded Spill mov w9, #37 str w9, [sp, #108] ; 4-byte Folded Spill strb w9, [sp, #216] ldr w0, [sp, #212] add x1, x8, #1 mov w2, #1998 bl _speedtest1_numbername ldr w9, [sp, #108] ; 4-byte Folded Reload ldr x8, [sp, #176] ; 8-byte Folded Reload ldr x2, [sp, #112] ; 8-byte Folded Reload str w0, [sp, #188] ldrsw x11, [sp, #188] mov x10, x2 add x10, x10, x11 strb w9, [x10] ldr w9, [sp, #188] mov w1, #1 add w9, w9, #1 add x9, x2, w9, sxtw strb wzr, [x9] ldr x0, [x8, #8] ldr w3, [sp, #188] mov x4, #0 bl _sqlite3_bind_text bl _speedtest1_execute b LBB13_27 LBB13_27: ; in Loop: Header=BB13_25 Depth=1 ldr w8, [sp, #212] add w8, w8, #1 str w8, [sp, #212] b LBB13_25 LBB13_28: adrp x0, l_.str.48@PAGE add x0, x0, l_.str.48@PAGEOFF bl _speedtest1_exec bl _speedtest1_end_test mov w0, #150 adrp x1, l_.str.63@PAGE add x1, x1, l_.str.63@PAGEOFF bl _speedtest1_begin_test adrp x0, l_.str.64@PAGE add x0, x0, l_.str.64@PAGEOFF bl _speedtest1_exec adrp x0, l_.str.65@PAGE add x0, x0, l_.str.65@PAGEOFF bl _speedtest1_exec adrp x0, l_.str.66@PAGE add x0, x0, l_.str.66@PAGEOFF bl _speedtest1_exec adrp x0, l_.str.67@PAGE add x0, x0, l_.str.67@PAGEOFF bl _speedtest1_exec adrp x0, l_.str.68@PAGE add x0, x0, l_.str.68@PAGEOFF bl _speedtest1_exec adrp x0, l_.str.69@PAGE add x0, x0, l_.str.69@PAGEOFF bl _speedtest1_exec adrp x0, l_.str.70@PAGE add x0, x0, l_.str.70@PAGEOFF bl _speedtest1_exec bl _speedtest1_end_test ldr w8, [sp, #204] mov w9, #5 sdiv w8, w8, w9 str w8, [sp, #208] ldr w9, [sp, #208] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] mov w0, #160 adrp x1, l_.str.71@PAGE add x1, x1, l_.str.71@PAGEOFF bl _speedtest1_begin_test adrp x0, l_.str.45@PAGE add x0, x0, l_.str.45@PAGEOFF bl _speedtest1_exec ldr w9, [sp, #208] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.56@PAGE add x0, x0, l_.str.56@PAGEOFF bl _speedtest1_prepare mov w8, #1 str w8, [sp, #212] b LBB13_29 LBB13_29: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #212] ldr w9, [sp, #208] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB13_32 b LBB13_30 LBB13_30: ; in Loop: Header=BB13_29 Depth=1 bl _speedtest1_random ldr w9, [sp, #200] udiv w8, w0, w9 mul w8, w8, w9 subs w8, w0, w8 str w8, [sp, #196] bl _speedtest1_random ldr x8, [sp, #176] ; 8-byte Folded Reload mov w10, #10 udiv w9, w0, w10 mul w9, w9, w10 subs w9, w0, w9 ldr w10, [sp, #204] mov w11, #5000 sdiv w10, w10, w11 add w9, w9, w10 ldr w10, [sp, #196] add w9, w9, w10 str w9, [sp, #192] ldr x0, [x8, #8] ldr w2, [sp, #196] mov w1, #1 bl _sqlite3_bind_int ldr x8, [sp, #176] ; 8-byte Folded Reload ldr x0, [x8, #8] ldr w2, [sp, #192] mov w1, #2 bl _sqlite3_bind_int bl _speedtest1_execute b LBB13_31 LBB13_31: ; in Loop: Header=BB13_29 Depth=1 ldr w8, [sp, #212] add w8, w8, #1 str w8, [sp, #212] b LBB13_29 LBB13_32: adrp x0, l_.str.48@PAGE add x0, x0, l_.str.48@PAGEOFF bl _speedtest1_exec bl _speedtest1_end_test ldr w8, [sp, #204] mov w9, #5 sdiv w8, w8, w9 str w8, [sp, #208] ldr w9, [sp, #208] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] mov w0, #161 adrp x1, l_.str.72@PAGE add x1, x1, l_.str.72@PAGEOFF bl _speedtest1_begin_test adrp x0, l_.str.45@PAGE add x0, x0, l_.str.45@PAGEOFF bl _speedtest1_exec ldr w9, [sp, #208] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.73@PAGE add x0, x0, l_.str.73@PAGEOFF bl _speedtest1_prepare mov w8, #1 str w8, [sp, #212] b LBB13_33 LBB13_33: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #212] ldr w9, [sp, #208] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB13_36 b LBB13_34 LBB13_34: ; in Loop: Header=BB13_33 Depth=1 bl _speedtest1_random ldr w9, [sp, #200] udiv w8, w0, w9 mul w8, w8, w9 subs w8, w0, w8 str w8, [sp, #196] bl _speedtest1_random ldr x8, [sp, #176] ; 8-byte Folded Reload mov w10, #10 udiv w9, w0, w10 mul w9, w9, w10 subs w9, w0, w9 ldr w10, [sp, #204] mov w11, #5000 sdiv w10, w10, w11 add w9, w9, w10 ldr w10, [sp, #196] add w9, w9, w10 str w9, [sp, #192] ldr x0, [x8, #8] ldr w2, [sp, #196] mov w1, #1 bl _sqlite3_bind_int ldr x8, [sp, #176] ; 8-byte Folded Reload ldr x0, [x8, #8] ldr w2, [sp, #192] mov w1, #2 bl _sqlite3_bind_int bl _speedtest1_execute b LBB13_35 LBB13_35: ; in Loop: Header=BB13_33 Depth=1 ldr w8, [sp, #212] add w8, w8, #1 str w8, [sp, #212] b LBB13_33 LBB13_36: adrp x0, l_.str.48@PAGE add x0, x0, l_.str.48@PAGEOFF bl _speedtest1_exec bl _speedtest1_end_test ldr w8, [sp, #204] mov w9, #5 sdiv w8, w8, w9 str w8, [sp, #208] ldr w9, [sp, #208] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] mov w0, #170 adrp x1, l_.str.74@PAGE add x1, x1, l_.str.74@PAGEOFF bl _speedtest1_begin_test adrp x0, l_.str.45@PAGE add x0, x0, l_.str.45@PAGEOFF bl _speedtest1_exec ldr w9, [sp, #208] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.75@PAGE add x0, x0, l_.str.75@PAGEOFF bl _speedtest1_prepare mov w8, #1 str w8, [sp, #212] b LBB13_37 LBB13_37: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #212] ldr w9, [sp, #208] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB13_40 b LBB13_38 LBB13_38: ; in Loop: Header=BB13_37 Depth=1 ldr w0, [sp, #212] ldr w1, [sp, #200] bl _swizzle str w0, [sp, #196] ldr w0, [sp, #196] add x1, sp, #216 str x1, [sp, #96] ; 8-byte Folded Spill mov w2, #1999 bl _speedtest1_numbername ldr x8, [sp, #176] ; 8-byte Folded Reload ldr x2, [sp, #96] ; 8-byte Folded Reload str w0, [sp, #188] ldr x0, [x8, #8] ldr w3, [sp, #188] mov w1, #1 mov x4, #0 bl _sqlite3_bind_text bl _speedtest1_execute b LBB13_39 LBB13_39: ; in Loop: Header=BB13_37 Depth=1 ldr w8, [sp, #212] add w8, w8, #1 str w8, [sp, #212] b LBB13_37 LBB13_40: adrp x0, l_.str.48@PAGE add x0, x0, l_.str.48@PAGEOFF str x0, [sp, #72] ; 8-byte Folded Spill bl _speedtest1_exec bl _speedtest1_end_test ldr w8, [sp, #204] str w8, [sp, #208] ldr w9, [sp, #208] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] mov w0, #180 adrp x1, l_.str.76@PAGE add x1, x1, l_.str.76@PAGEOFF bl _speedtest1_begin_test adrp x0, l_.str.45@PAGE add x0, x0, l_.str.45@PAGEOFF str x0, [sp, #88] ; 8-byte Folded Spill bl _speedtest1_exec ldr x8, [sp, #176] ; 8-byte Folded Reload ldr x13, [x8, #64] ldr x12, [x8, #72] ldr x11, [x8, #64] ldr x10, [x8, #64] ldr x8, [x8, #56] mov x9, sp str x13, [x9] str x12, [x9, #8] str x11, [x9, #16] str x10, [x9, #24] str x8, [x9, #32] adrp x0, l_.str.77@PAGE add x0, x0, l_.str.77@PAGEOFF bl _speedtest1_exec adrp x0, l_.str.78@PAGE add x0, x0, l_.str.78@PAGEOFF bl _speedtest1_exec adrp x0, l_.str.79@PAGE add x0, x0, l_.str.79@PAGEOFF bl _speedtest1_exec adrp x0, l_.str.80@PAGE add x0, x0, l_.str.80@PAGEOFF bl _speedtest1_exec ldr x0, [sp, #72] ; 8-byte Folded Reload bl _speedtest1_exec bl _speedtest1_end_test ldr w8, [sp, #204] str w8, [sp, #208] ldr w9, [sp, #208] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] mov w0, #190 adrp x1, l_.str.81@PAGE add x1, x1, l_.str.81@PAGEOFF bl _speedtest1_begin_test adrp x0, l_.str.82@PAGE add x0, x0, l_.str.82@PAGEOFF bl _speedtest1_exec adrp x0, l_.str.83@PAGE add x0, x0, l_.str.83@PAGEOFF bl _speedtest1_exec bl _speedtest1_end_test mov w0, #200 adrp x1, l_.str.84@PAGE add x1, x1, l_.str.84@PAGEOFF str x1, [sp, #80] ; 8-byte Folded Spill bl _speedtest1_begin_test ldr x0, [sp, #80] ; 8-byte Folded Reload bl _speedtest1_exec bl _speedtest1_end_test mov w0, #210 adrp x1, l_.str.85@PAGE add x1, x1, l_.str.85@PAGEOFF bl _speedtest1_begin_test adrp x0, l_.str.86@PAGE add x0, x0, l_.str.86@PAGEOFF bl _speedtest1_exec adrp x0, l_.str.87@PAGE add x0, x0, l_.str.87@PAGEOFF bl _speedtest1_exec bl _speedtest1_end_test ldr w8, [sp, #204] mov w9, #5 sdiv w8, w8, w9 str w8, [sp, #208] ldr w9, [sp, #208] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] mov w0, #230 adrp x1, l_.str.88@PAGE add x1, x1, l_.str.88@PAGEOFF bl _speedtest1_begin_test ldr x0, [sp, #88] ; 8-byte Folded Reload bl _speedtest1_exec ldr w9, [sp, #208] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.89@PAGE add x0, x0, l_.str.89@PAGEOFF bl _speedtest1_prepare mov w8, #1 str w8, [sp, #212] b LBB13_41 LBB13_41: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #212] ldr w9, [sp, #208] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB13_44 b LBB13_42 LBB13_42: ; in Loop: Header=BB13_41 Depth=1 bl _speedtest1_random ldr w9, [sp, #200] udiv w8, w0, w9 mul w8, w8, w9 subs w8, w0, w8 str w8, [sp, #196] bl _speedtest1_random ldr x8, [sp, #176] ; 8-byte Folded Reload mov w10, #10 udiv w9, w0, w10 mul w9, w9, w10 subs w9, w0, w9 ldr w10, [sp, #204] mov w11, #5000 sdiv w10, w10, w11 add w9, w9, w10 ldr w10, [sp, #196] add w9, w9, w10 str w9, [sp, #192] ldr x0, [x8, #8] ldr w2, [sp, #196] mov w1, #1 bl _sqlite3_bind_int ldr x8, [sp, #176] ; 8-byte Folded Reload ldr x0, [x8, #8] ldr w2, [sp, #192] mov w1, #2 bl _sqlite3_bind_int bl _speedtest1_execute b LBB13_43 LBB13_43: ; in Loop: Header=BB13_41 Depth=1 ldr w8, [sp, #212] add w8, w8, #1 str w8, [sp, #212] b LBB13_41 LBB13_44: adrp x0, l_.str.48@PAGE add x0, x0, l_.str.48@PAGEOFF bl _speedtest1_exec bl _speedtest1_end_test ldr w8, [sp, #204] str w8, [sp, #208] ldr w9, [sp, #208] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] mov w0, #240 adrp x1, l_.str.90@PAGE add x1, x1, l_.str.90@PAGEOFF bl _speedtest1_begin_test adrp x0, l_.str.45@PAGE add x0, x0, l_.str.45@PAGEOFF bl _speedtest1_exec ldr w9, [sp, #208] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.91@PAGE add x0, x0, l_.str.91@PAGEOFF bl _speedtest1_prepare mov w8, #1 str w8, [sp, #212] b LBB13_45 LBB13_45: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #212] ldr w9, [sp, #208] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB13_48 b LBB13_46 LBB13_46: ; in Loop: Header=BB13_45 Depth=1 bl _speedtest1_random ldr x8, [sp, #176] ; 8-byte Folded Reload ldr w10, [sp, #204] udiv w9, w0, w10 mul w9, w9, w10 subs w9, w0, w9 mov w1, #1 add w9, w9, #1 str w9, [sp, #196] ldr x0, [x8, #8] ldr w2, [sp, #196] bl _sqlite3_bind_int bl _speedtest1_execute b LBB13_47 LBB13_47: ; in Loop: Header=BB13_45 Depth=1 ldr w8, [sp, #212] add w8, w8, #1 str w8, [sp, #212] b LBB13_45 LBB13_48: adrp x0, l_.str.48@PAGE add x0, x0, l_.str.48@PAGEOFF bl _speedtest1_exec bl _speedtest1_end_test ldr w9, [sp, #204] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] mov w0, #250 adrp x1, l_.str.92@PAGE add x1, x1, l_.str.92@PAGEOFF bl _speedtest1_begin_test adrp x0, l_.str.93@PAGE add x0, x0, l_.str.93@PAGEOFF bl _speedtest1_exec bl _speedtest1_end_test mov w0, #260 adrp x1, l_.str.94@PAGE add x1, x1, l_.str.94@PAGEOFF bl _speedtest1_begin_test adrp x0, l_.str.87@PAGE add x0, x0, l_.str.87@PAGEOFF bl _speedtest1_exec bl _speedtest1_end_test ldr w8, [sp, #204] mov w9, #5 sdiv w8, w8, w9 str w8, [sp, #208] ldr w9, [sp, #208] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] mov w0, #270 adrp x1, l_.str.95@PAGE add x1, x1, l_.str.95@PAGEOFF bl _speedtest1_begin_test adrp x0, l_.str.45@PAGE add x0, x0, l_.str.45@PAGEOFF bl _speedtest1_exec ldr w9, [sp, #208] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.96@PAGE add x0, x0, l_.str.96@PAGEOFF bl _speedtest1_prepare mov w8, #1 str w8, [sp, #212] b LBB13_49 LBB13_49: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #212] ldr w9, [sp, #208] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB13_52 b LBB13_50 LBB13_50: ; in Loop: Header=BB13_49 Depth=1 bl _speedtest1_random ldr w9, [sp, #200] udiv w8, w0, w9 mul w8, w8, w9 subs w8, w0, w8 mov w9, #1 str w9, [sp, #68] ; 4-byte Folded Spill add w8, w8, #1 str w8, [sp, #196] bl _speedtest1_random ldr w1, [sp, #68] ; 4-byte Folded Reload ldr x8, [sp, #176] ; 8-byte Folded Reload mov w10, #10 udiv w9, w0, w10 mul w9, w9, w10 subs w9, w0, w9 ldr w10, [sp, #204] mov w11, #5000 sdiv w10, w10, w11 add w9, w9, w10 ldr w10, [sp, #196] add w9, w9, w10 str w9, [sp, #192] ldr x0, [x8, #8] ldr w2, [sp, #196] bl _sqlite3_bind_int ldr x8, [sp, #176] ; 8-byte Folded Reload ldr x0, [x8, #8] ldr w2, [sp, #192] mov w1, #2 bl _sqlite3_bind_int bl _speedtest1_execute b LBB13_51 LBB13_51: ; in Loop: Header=BB13_49 Depth=1 ldr w8, [sp, #212] add w8, w8, #1 str w8, [sp, #212] b LBB13_49 LBB13_52: adrp x0, l_.str.48@PAGE add x0, x0, l_.str.48@PAGEOFF bl _speedtest1_exec bl _speedtest1_end_test ldr w8, [sp, #204] str w8, [sp, #208] ldr w9, [sp, #208] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] mov w0, #280 adrp x1, l_.str.97@PAGE add x1, x1, l_.str.97@PAGEOFF bl _speedtest1_begin_test adrp x0, l_.str.45@PAGE add x0, x0, l_.str.45@PAGEOFF bl _speedtest1_exec ldr w9, [sp, #208] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.98@PAGE add x0, x0, l_.str.98@PAGEOFF bl _speedtest1_prepare mov w8, #1 str w8, [sp, #212] b LBB13_53 LBB13_53: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #212] ldr w9, [sp, #208] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB13_56 b LBB13_54 LBB13_54: ; in Loop: Header=BB13_53 Depth=1 bl _speedtest1_random ldr x8, [sp, #176] ; 8-byte Folded Reload ldr w10, [sp, #204] udiv w9, w0, w10 mul w9, w9, w10 subs w9, w0, w9 mov w1, #1 add w9, w9, #1 str w9, [sp, #196] ldr x0, [x8, #8] ldr w2, [sp, #196] bl _sqlite3_bind_int bl _speedtest1_execute b LBB13_55 LBB13_55: ; in Loop: Header=BB13_53 Depth=1 ldr w8, [sp, #212] add w8, w8, #1 str w8, [sp, #212] b LBB13_53 LBB13_56: adrp x0, l_.str.48@PAGE add x0, x0, l_.str.48@PAGEOFF bl _speedtest1_exec bl _speedtest1_end_test ldr w9, [sp, #204] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] mov w0, #290 adrp x1, l_.str.99@PAGE add x1, x1, l_.str.99@PAGEOFF bl _speedtest1_begin_test adrp x0, l_.str.100@PAGE add x0, x0, l_.str.100@PAGEOFF bl _speedtest1_exec adrp x0, l_.str.101@PAGE add x0, x0, l_.str.101@PAGEOFF bl _speedtest1_exec bl _speedtest1_end_test ldr w9, [sp, #204] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] mov w0, #300 adrp x1, l_.str.102@PAGE add x1, x1, l_.str.102@PAGEOFF bl _speedtest1_begin_test adrp x0, l_.str.82@PAGE add x0, x0, l_.str.82@PAGEOFF bl _speedtest1_exec adrp x0, l_.str.103@PAGE add x0, x0, l_.str.103@PAGEOFF bl _speedtest1_exec adrp x0, l_.str.104@PAGE add x0, x0, l_.str.104@PAGEOFF bl _speedtest1_exec bl _speedtest1_end_test ldr w8, [sp, #204] mov w9, #5 sdiv w8, w8, w9 str w8, [sp, #208] ldr w9, [sp, #208] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] mov w0, #310 adrp x1, l_.str.105@PAGE add x1, x1, l_.str.105@PAGEOFF bl _speedtest1_begin_test adrp x0, l_.str.45@PAGE add x0, x0, l_.str.45@PAGEOFF bl _speedtest1_exec adrp x0, l_.str.106@PAGE add x0, x0, l_.str.106@PAGEOFF bl _speedtest1_prepare mov w8, #1 str w8, [sp, #212] b LBB13_57 LBB13_57: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #212] ldr w9, [sp, #208] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB13_60 b LBB13_58 LBB13_58: ; in Loop: Header=BB13_57 Depth=1 bl _speedtest1_random ldr w9, [sp, #204] udiv w8, w0, w9 mul w8, w8, w9 subs w8, w0, w8 mov w9, #1 str w9, [sp, #64] ; 4-byte Folded Spill add w8, w8, #1 str w8, [sp, #196] bl _speedtest1_random ldr w1, [sp, #64] ; 4-byte Folded Reload ldr x8, [sp, #176] ; 8-byte Folded Reload mov w10, #10 udiv w9, w0, w10 mul w9, w9, w10 subs w9, w0, w9 ldr w10, [sp, #196] add w9, w9, w10 add w9, w9, #4 str w9, [sp, #192] ldr x0, [x8, #8] ldr w2, [sp, #196] bl _sqlite3_bind_int ldr x8, [sp, #176] ; 8-byte Folded Reload ldr x0, [x8, #8] ldr w2, [sp, #192] mov w1, #2 bl _sqlite3_bind_int bl _speedtest1_execute b LBB13_59 LBB13_59: ; in Loop: Header=BB13_57 Depth=1 ldr w8, [sp, #212] add w8, w8, #1 str w8, [sp, #212] b LBB13_57 LBB13_60: adrp x0, l_.str.48@PAGE add x0, x0, l_.str.48@PAGEOFF bl _speedtest1_exec bl _speedtest1_end_test ldr w9, [sp, #208] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] mov w0, #320 adrp x1, l_.str.107@PAGE add x1, x1, l_.str.107@PAGEOFF bl _speedtest1_begin_test adrp x0, l_.str.108@PAGE add x0, x0, l_.str.108@PAGEOFF bl _speedtest1_prepare ldr x8, [sp, #176] ; 8-byte Folded Reload ldr x9, [x8, #8] str x9, [sp, #40] ; 8-byte Folded Spill ldr w0, [x8, #52] bl _est_square_root mov x8, x0 ldr x0, [sp, #40] ; 8-byte Folded Reload mov w9, #50 mul w2, w8, w9 mov w1, #1 bl _sqlite3_bind_int bl _speedtest1_execute bl _speedtest1_end_test mov w0, #980 adrp x1, l_.str.109@PAGE add x1, x1, l_.str.109@PAGEOFF str x1, [sp, #48] ; 8-byte Folded Spill bl _speedtest1_begin_test ldr x0, [sp, #48] ; 8-byte Folded Reload bl _speedtest1_exec bl _speedtest1_end_test mov w0, #990 adrp x1, l_.str.110@PAGE add x1, x1, l_.str.110@PAGEOFF str x1, [sp, #56] ; 8-byte Folded Spill bl _speedtest1_begin_test ldr x0, [sp, #56] ; 8-byte Folded Reload bl _speedtest1_exec bl _speedtest1_end_test 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, LBB13_62 b LBB13_61 LBB13_61: bl ___stack_chk_fail LBB13_62: add sp, sp, #2224 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x28, x27, [sp], #32 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function est_square_root _est_square_root: ; @est_square_root .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str w0, [sp, #28] ldr w8, [sp, #28] mov w9, #2 sdiv w8, w8, w9 str w8, [sp, #24] str wzr, [sp, #16] b LBB14_1 LBB14_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #24] subs w8, w8, #0 cset w8, le mov w9, #0 str w9, [sp, #12] ; 4-byte Folded Spill tbnz w8, #0, LBB14_3 b LBB14_2 LBB14_2: ; in Loop: Header=BB14_1 Depth=1 ldr w8, [sp, #16] subs w8, w8, #10 cset w8, lt str w8, [sp, #12] ; 4-byte Folded Spill b LBB14_3 LBB14_3: ; in Loop: Header=BB14_1 Depth=1 ldr w8, [sp, #12] ; 4-byte Folded Reload tbz w8, #0, LBB14_8 b LBB14_4 LBB14_4: ; in Loop: Header=BB14_1 Depth=1 ldr w8, [sp, #24] ldr w9, [sp, #28] ldr w10, [sp, #24] sdiv w9, w9, w10 add w8, w8, w9 mov w9, #2 sdiv w8, w8, w9 str w8, [sp, #20] ldr w8, [sp, #20] ldr w9, [sp, #24] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB14_6 b LBB14_5 LBB14_5: b LBB14_8 LBB14_6: ; in Loop: Header=BB14_1 Depth=1 ldr w8, [sp, #20] str w8, [sp, #24] b LBB14_7 LBB14_7: ; in Loop: Header=BB14_1 Depth=1 ldr w8, [sp, #16] add w8, w8, #1 str w8, [sp, #16] b LBB14_1 LBB14_8: ldr w0, [sp, #24] add sp, sp, #32 ret .cfi_endproc ; -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ; -- Begin function testset_cte lCPI15_0: .quad 0x3fa999999999999a ; double 0.050000000000000003 .section __TEXT,__text,regular,pure_instructions .globl _testset_cte .p2align 2 _testset_cte: ; @testset_cte .cfi_startproc ; %bb.0: sub sp, sp, #96 .cfi_def_cfa_offset 96 stp x29, x30, [sp, #80] ; 16-byte Folded Spill add x29, sp, #80 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, _g@PAGE add x8, x8, _g@PAGEOFF str x8, [sp, #40] ; 8-byte Folded Spill adrp x9, _testset_cte.azPuzzle@PAGE add x9, x9, _testset_cte.azPuzzle@PAGEOFF stur x9, [x29, #-32] ; 8-byte Folded Spill ldr w8, [x8, #52] subs w8, w8, #25 cset w8, ge tbnz w8, #0, LBB15_2 b LBB15_1 LBB15_1: adrp x8, _testset_cte.azPuzzle@PAGE ldr x8, [x8, _testset_cte.azPuzzle@PAGEOFF] stur x8, [x29, #-8] b LBB15_6 LBB15_2: ldr x8, [sp, #40] ; 8-byte Folded Reload ldr w8, [x8, #52] subs w8, w8, #70 cset w8, ge tbnz w8, #0, LBB15_4 b LBB15_3 LBB15_3: ldur x8, [x29, #-32] ; 8-byte Folded Reload ldr x8, [x8, #8] stur x8, [x29, #-8] b LBB15_5 LBB15_4: ldur x8, [x29, #-32] ; 8-byte Folded Reload ldr x8, [x8, #16] stur x8, [x29, #-8] b LBB15_5 LBB15_5: b LBB15_6 LBB15_6: mov w0, #100 adrp x1, l_.str.114@PAGE add x1, x1, l_.str.114@PAGEOFF bl _speedtest1_begin_test adrp x0, l_.str.115@PAGE add x0, x0, l_.str.115@PAGEOFF bl _speedtest1_prepare ldr x8, [sp, #40] ; 8-byte Folded Reload ldr x0, [x8, #8] ldur x2, [x29, #-8] mov w1, #1 str w1, [sp, #36] ; 4-byte Folded Spill mov w3, #-1 str w3, [sp, #20] ; 4-byte Folded Spill mov x4, #0 str x4, [sp, #24] ; 8-byte Folded Spill bl _sqlite3_bind_text bl _speedtest1_execute bl _speedtest1_end_test mov w0, #200 adrp x1, l_.str.116@PAGE add x1, x1, l_.str.116@PAGEOFF bl _speedtest1_begin_test adrp x0, l_.str.117@PAGE add x0, x0, l_.str.117@PAGEOFF bl _speedtest1_prepare ldr w3, [sp, #20] ; 4-byte Folded Reload ldr x4, [sp, #24] ; 8-byte Folded Reload ldr w1, [sp, #36] ; 4-byte Folded Reload ldr x8, [sp, #40] ; 8-byte Folded Reload ldr x0, [x8, #8] ldur x2, [x29, #-8] bl _sqlite3_bind_text bl _speedtest1_execute bl _speedtest1_end_test ldr x8, [sp, #40] ; 8-byte Folded Reload ldr s1, [x8, #52] ; implicit-def: $d0 fmov s0, s1 sshll.2d v0, v0, #0 ; kill: def $d0 killed $d0 killed $q0 scvtf d1, d0 fmov d0, #5.00000000 fdiv d0, d0, d1 stur d0, [x29, #-16] ldur d0, [x29, #-16] mov x8, sp str d0, [x8] mov w0, #300 adrp x1, l_.str.118@PAGE add x1, x1, l_.str.118@PAGEOFF bl _speedtest1_begin_test adrp x0, l_.str.119@PAGE add x0, x0, l_.str.119@PAGEOFF bl _speedtest1_prepare ldr w1, [sp, #36] ; 4-byte Folded Reload ldr x8, [sp, #40] ; 8-byte Folded Reload ldr x0, [x8, #8] ldur d0, [x29, #-16] adrp x8, lCPI15_0@PAGE ldr d1, [x8, lCPI15_0@PAGEOFF] fmul d0, d0, d1 bl _sqlite3_bind_double ldr x8, [sp, #40] ; 8-byte Folded Reload ldr x0, [x8, #8] ldur d0, [x29, #-16] mov w1, #2 bl _sqlite3_bind_double bl _speedtest1_execute bl _speedtest1_end_test ldr x8, [sp, #40] ; 8-byte Folded Reload ldr w9, [x8, #52] mov w8, #10000 mul w8, w8, w9 stur w8, [x29, #-20] ldur w9, [x29, #-20] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] mov w0, #400 adrp x1, l_.str.120@PAGE add x1, x1, l_.str.120@PAGEOFF bl _speedtest1_begin_test ldur w8, [x29, #-20] ; implicit-def: $x10 mov x10, x8 ldur w9, [x29, #-20] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x0, l_.str.121@PAGE add x0, x0, l_.str.121@PAGEOFF bl _speedtest1_prepare bl _speedtest1_execute bl _speedtest1_end_test ldp x29, x30, [sp, #80] ; 16-byte Folded Reload add sp, sp, #96 ret .cfi_endproc ; -- End function .globl _testset_rtree ; -- Begin function testset_rtree .p2align 2 _testset_rtree: ; @testset_rtree .cfi_startproc ; %bb.0: sub sp, sp, #224 .cfi_def_cfa_offset 224 stp x29, x30, [sp, #208] ; 16-byte Folded Spill add x29, sp, #208 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, _g@PAGE add x8, x8, _g@PAGEOFF stur x8, [x29, #-64] ; 8-byte Folded Spill add x9, x8, #92 stur x9, [x29, #-72] ; 8-byte Folded Spill stur w0, [x29, #-4] stur w1, [x29, #-8] ldrsw x9, [x8, #52] mov x8, #4 mul x8, x8, x9 mov x9, #100 mul x8, x8, x9 mov x0, x8 bl _sqlite3_malloc ldur x8, [x29, #-64] ; 8-byte Folded Reload stur x0, [x29, #-56] mov w9, #15000 stur w9, [x29, #-20] ldr w8, [x8, #52] mov w0, #100 mul w8, w8, w0 stur w8, [x29, #-16] ldur w9, [x29, #-16] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x1, l_.str.122@PAGE add x1, x1, l_.str.122@PAGEOFF bl _speedtest1_begin_test adrp x0, l_.str.45@PAGE add x0, x0, l_.str.45@PAGEOFF bl _speedtest1_exec adrp x0, l_.str.123@PAGE add x0, x0, l_.str.123@PAGEOFF bl _speedtest1_exec adrp x0, l_.str.124@PAGE add x0, x0, l_.str.124@PAGEOFF bl _speedtest1_prepare mov w8, #1 stur w8, [x29, #-12] b LBB16_1 LBB16_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-12] ldur w9, [x29, #-16] subs w8, w8, w9 cset w8, hi tbnz w8, #0, LBB16_4 b LBB16_2 LBB16_2: ; in Loop: Header=BB16_1 Depth=1 ldur w0, [x29, #-4] ldur w1, [x29, #-8] ldur w2, [x29, #-20] sub x3, x29, #24 sub x4, x29, #28 bl _twoCoords ldur w0, [x29, #-4] ldur w1, [x29, #-8] ldur w2, [x29, #-20] sub x3, x29, #32 sub x4, x29, #36 bl _twoCoords ldur w0, [x29, #-4] ldur w1, [x29, #-8] ldur w2, [x29, #-20] sub x3, x29, #40 sub x4, x29, #44 bl _twoCoords ldur x8, [x29, #-64] ; 8-byte Folded Reload ldr x0, [x8, #8] ldur w2, [x29, #-12] mov w1, #1 bl _sqlite3_bind_int ldur x8, [x29, #-64] ; 8-byte Folded Reload ldr x0, [x8, #8] ldur w2, [x29, #-24] mov w1, #2 bl _sqlite3_bind_int ldur x8, [x29, #-64] ; 8-byte Folded Reload ldr x0, [x8, #8] ldur w2, [x29, #-28] mov w1, #3 bl _sqlite3_bind_int ldur x8, [x29, #-64] ; 8-byte Folded Reload ldr x0, [x8, #8] ldur w2, [x29, #-32] mov w1, #4 bl _sqlite3_bind_int ldur x8, [x29, #-64] ; 8-byte Folded Reload ldr x0, [x8, #8] ldur w2, [x29, #-36] mov w1, #5 bl _sqlite3_bind_int ldur x8, [x29, #-64] ; 8-byte Folded Reload ldr x0, [x8, #8] ldur w2, [x29, #-40] mov w1, #6 bl _sqlite3_bind_int ldur x8, [x29, #-64] ; 8-byte Folded Reload ldr x0, [x8, #8] ldur w2, [x29, #-44] mov w1, #7 bl _sqlite3_bind_int bl _speedtest1_execute b LBB16_3 LBB16_3: ; in Loop: Header=BB16_1 Depth=1 ldur w8, [x29, #-12] add w8, w8, #1 stur w8, [x29, #-12] b LBB16_1 LBB16_4: adrp x0, l_.str.48@PAGE add x0, x0, l_.str.48@PAGEOFF bl _speedtest1_exec bl _speedtest1_end_test mov w0, #101 adrp x1, l_.str.125@PAGE add x1, x1, l_.str.125@PAGEOFF bl _speedtest1_begin_test adrp x0, l_.str.126@PAGE add x0, x0, l_.str.126@PAGEOFF bl _speedtest1_exec adrp x0, l_.str.127@PAGE add x0, x0, l_.str.127@PAGEOFF bl _speedtest1_exec bl _speedtest1_end_test ldur x8, [x29, #-64] ; 8-byte Folded Reload ldr w8, [x8, #52] mov w9, #20 mul w8, w8, w9 stur w8, [x29, #-16] ldur w9, [x29, #-16] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] mov w0, #110 adrp x1, l_.str.128@PAGE add x1, x1, l_.str.128@PAGEOFF bl _speedtest1_begin_test adrp x0, l_.str.129@PAGE add x0, x0, l_.str.129@PAGEOFF bl _speedtest1_prepare ldur w8, [x29, #-20] ldur w9, [x29, #-16] udiv w8, w8, w9 stur w8, [x29, #-48] stur wzr, [x29, #-12] b LBB16_5 LBB16_5: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-12] ldur w9, [x29, #-16] subs w8, w8, w9 cset w8, hs tbnz w8, #0, LBB16_8 b LBB16_6 LBB16_6: ; in Loop: Header=BB16_5 Depth=1 ldur x8, [x29, #-64] ; 8-byte Folded Reload ldr x0, [x8, #8] ldur w8, [x29, #-12] ldur w9, [x29, #-48] mul w2, w8, w9 mov w1, #1 bl _sqlite3_bind_int ldur x8, [x29, #-64] ; 8-byte Folded Reload ldr x0, [x8, #8] ldur w8, [x29, #-12] add w8, w8, #1 ldur w9, [x29, #-48] mul w2, w8, w9 mov w1, #2 bl _sqlite3_bind_int bl _speedtest1_execute ldur x0, [x29, #-72] ; 8-byte Folded Reload bl _atoi ldur x8, [x29, #-56] ldur w9, [x29, #-12] ; kill: def $x9 killed $w9 str w0, [x8, x9, lsl #2] b LBB16_7 LBB16_7: ; in Loop: Header=BB16_5 Depth=1 ldur w8, [x29, #-12] add w8, w8, #1 stur w8, [x29, #-12] b LBB16_5 LBB16_8: bl _speedtest1_end_test ldur x8, [x29, #-64] ; 8-byte Folded Reload ldr w8, [x8, #48] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB16_16 b LBB16_9 LBB16_9: ldur x8, [x29, #-64] ; 8-byte Folded Reload ldr w8, [x8, #52] mov w9, #20 mul w8, w8, w9 stur w8, [x29, #-16] mov w0, #111 adrp x1, l_.str.130@PAGE add x1, x1, l_.str.130@PAGEOFF bl _speedtest1_begin_test adrp x0, l_.str.131@PAGE add x0, x0, l_.str.131@PAGEOFF bl _speedtest1_prepare ldur w8, [x29, #-20] ldur w9, [x29, #-16] udiv w8, w8, w9 stur w8, [x29, #-48] stur wzr, [x29, #-12] b LBB16_10 LBB16_10: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-12] ldur w9, [x29, #-16] subs w8, w8, w9 cset w8, hs tbnz w8, #0, LBB16_15 b LBB16_11 LBB16_11: ; in Loop: Header=BB16_10 Depth=1 ldur x8, [x29, #-64] ; 8-byte Folded Reload ldr x0, [x8, #8] ldur w8, [x29, #-12] ldur w9, [x29, #-48] mul w2, w8, w9 mov w1, #1 bl _sqlite3_bind_int ldur x8, [x29, #-64] ; 8-byte Folded Reload ldr x0, [x8, #8] ldur w8, [x29, #-12] add w8, w8, #1 ldur w9, [x29, #-48] mul w2, w8, w9 mov w1, #2 bl _sqlite3_bind_int bl _speedtest1_execute ldur x0, [x29, #-72] ; 8-byte Folded Reload ldur x8, [x29, #-56] ldur w9, [x29, #-12] ; kill: def $x9 killed $w9 ldr w8, [x8, x9, lsl #2] stur w8, [x29, #-76] ; 4-byte Folded Spill bl _atoi ldur w8, [x29, #-76] ; 4-byte Folded Reload subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB16_13 b LBB16_12 LBB16_12: ; in Loop: Header=BB16_10 Depth=1 ldur x0, [x29, #-72] ; 8-byte Folded Reload ldur w9, [x29, #-12] ; implicit-def: $x8 mov x8, x9 str x8, [sp, #104] ; 8-byte Folded Spill ldur w8, [x29, #-12] ldur w9, [x29, #-48] mul w8, w8, w9 stur w8, [x29, #-96] ; 4-byte Folded Spill ldur w8, [x29, #-12] add w8, w8, #1 ldur w9, [x29, #-48] mul w8, w8, w9 stur w8, [x29, #-92] ; 4-byte Folded Spill ldur x8, [x29, #-56] ldur w9, [x29, #-12] ; kill: def $x9 killed $w9 ldr w9, [x8, x9, lsl #2] ; implicit-def: $x8 mov x8, x9 stur x8, [x29, #-88] ; 8-byte Folded Spill bl _atoi ldr x10, [sp, #104] ; 8-byte Folded Reload ldur w12, [x29, #-96] ; 4-byte Folded Reload ldur w11, [x29, #-92] ; 4-byte Folded Reload ldur x8, [x29, #-88] ; 8-byte Folded Reload mov x9, sp str x10, [x9] ; implicit-def: $x10 mov x10, x12 str x10, [x9, #8] ; implicit-def: $x10 mov x10, x11 str x10, [x9, #16] str x8, [x9, #24] ; implicit-def: $x8 mov x8, x0 str x8, [x9, #32] adrp x0, l_.str.132@PAGE add x0, x0, l_.str.132@PAGEOFF bl _fatal_error b LBB16_13 LBB16_13: ; in Loop: Header=BB16_10 Depth=1 b LBB16_14 LBB16_14: ; in Loop: Header=BB16_10 Depth=1 ldur w8, [x29, #-12] add w8, w8, #1 stur w8, [x29, #-12] b LBB16_10 LBB16_15: bl _speedtest1_end_test b LBB16_16 LBB16_16: ldur x8, [x29, #-64] ; 8-byte Folded Reload ldr w8, [x8, #52] mov w9, #20 mul w8, w8, w9 stur w8, [x29, #-16] ldur w9, [x29, #-16] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] mov w0, #120 adrp x1, l_.str.133@PAGE add x1, x1, l_.str.133@PAGEOFF bl _speedtest1_begin_test adrp x0, l_.str.134@PAGE add x0, x0, l_.str.134@PAGEOFF bl _speedtest1_prepare ldur w8, [x29, #-20] ldur w9, [x29, #-16] udiv w8, w8, w9 stur w8, [x29, #-48] stur wzr, [x29, #-12] b LBB16_17 LBB16_17: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-12] ldur w9, [x29, #-16] subs w8, w8, w9 cset w8, hs tbnz w8, #0, LBB16_20 b LBB16_18 LBB16_18: ; in Loop: Header=BB16_17 Depth=1 ldur x8, [x29, #-64] ; 8-byte Folded Reload ldr x0, [x8, #8] ldur w8, [x29, #-12] ldur w9, [x29, #-48] mul w2, w8, w9 mov w1, #1 bl _sqlite3_bind_int ldur x8, [x29, #-64] ; 8-byte Folded Reload ldr x0, [x8, #8] ldur w8, [x29, #-12] add w8, w8, #1 ldur w9, [x29, #-48] mul w2, w8, w9 mov w1, #2 bl _sqlite3_bind_int bl _speedtest1_execute ldur x0, [x29, #-72] ; 8-byte Folded Reload bl _atoi ldur x8, [x29, #-56] ldur w9, [x29, #-12] ; kill: def $x9 killed $w9 str w0, [x8, x9, lsl #2] b LBB16_19 LBB16_19: ; in Loop: Header=BB16_17 Depth=1 ldur w8, [x29, #-12] add w8, w8, #1 stur w8, [x29, #-12] b LBB16_17 LBB16_20: bl _speedtest1_end_test ldur x8, [x29, #-64] ; 8-byte Folded Reload ldr w8, [x8, #48] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB16_28 b LBB16_21 LBB16_21: ldur x8, [x29, #-64] ; 8-byte Folded Reload ldr w8, [x8, #52] mov w9, #20 mul w8, w8, w9 stur w8, [x29, #-16] mov w0, #121 adrp x1, l_.str.135@PAGE add x1, x1, l_.str.135@PAGEOFF bl _speedtest1_begin_test adrp x0, l_.str.136@PAGE add x0, x0, l_.str.136@PAGEOFF bl _speedtest1_prepare ldur w8, [x29, #-20] ldur w9, [x29, #-16] udiv w8, w8, w9 stur w8, [x29, #-48] stur wzr, [x29, #-12] b LBB16_22 LBB16_22: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-12] ldur w9, [x29, #-16] subs w8, w8, w9 cset w8, hs tbnz w8, #0, LBB16_27 b LBB16_23 LBB16_23: ; in Loop: Header=BB16_22 Depth=1 ldur x8, [x29, #-64] ; 8-byte Folded Reload ldr x0, [x8, #8] ldur w8, [x29, #-12] ldur w9, [x29, #-48] mul w2, w8, w9 mov w1, #1 bl _sqlite3_bind_int ldur x8, [x29, #-64] ; 8-byte Folded Reload ldr x0, [x8, #8] ldur w8, [x29, #-12] add w8, w8, #1 ldur w9, [x29, #-48] mul w2, w8, w9 mov w1, #2 bl _sqlite3_bind_int bl _speedtest1_execute ldur x0, [x29, #-72] ; 8-byte Folded Reload ldur x8, [x29, #-56] ldur w9, [x29, #-12] ; kill: def $x9 killed $w9 ldr w8, [x8, x9, lsl #2] str w8, [sp, #100] ; 4-byte Folded Spill bl _atoi ldr w8, [sp, #100] ; 4-byte Folded Reload subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB16_25 b LBB16_24 LBB16_24: ; in Loop: Header=BB16_22 Depth=1 ldur x0, [x29, #-72] ; 8-byte Folded Reload ldur w9, [x29, #-12] ; implicit-def: $x8 mov x8, x9 str x8, [sp, #72] ; 8-byte Folded Spill ldur w8, [x29, #-12] ldur w9, [x29, #-48] mul w8, w8, w9 str w8, [sp, #80] ; 4-byte Folded Spill ldur w8, [x29, #-12] add w8, w8, #1 ldur w9, [x29, #-48] mul w8, w8, w9 str w8, [sp, #84] ; 4-byte Folded Spill ldur x8, [x29, #-56] ldur w9, [x29, #-12] ; kill: def $x9 killed $w9 ldr w9, [x8, x9, lsl #2] ; implicit-def: $x8 mov x8, x9 str x8, [sp, #88] ; 8-byte Folded Spill bl _atoi ldr x10, [sp, #72] ; 8-byte Folded Reload ldr w12, [sp, #80] ; 4-byte Folded Reload ldr w11, [sp, #84] ; 4-byte Folded Reload ldr x8, [sp, #88] ; 8-byte Folded Reload mov x9, sp str x10, [x9] ; implicit-def: $x10 mov x10, x12 str x10, [x9, #8] ; implicit-def: $x10 mov x10, x11 str x10, [x9, #16] str x8, [x9, #24] ; implicit-def: $x8 mov x8, x0 str x8, [x9, #32] adrp x0, l_.str.132@PAGE add x0, x0, l_.str.132@PAGEOFF bl _fatal_error b LBB16_25 LBB16_25: ; in Loop: Header=BB16_22 Depth=1 b LBB16_26 LBB16_26: ; in Loop: Header=BB16_22 Depth=1 ldur w8, [x29, #-12] add w8, w8, #1 stur w8, [x29, #-12] b LBB16_22 LBB16_27: bl _speedtest1_end_test b LBB16_28 LBB16_28: ldur x8, [x29, #-64] ; 8-byte Folded Reload ldr w8, [x8, #52] mov w9, #20 mul w8, w8, w9 stur w8, [x29, #-16] ldur w9, [x29, #-16] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] mov w0, #125 adrp x1, l_.str.137@PAGE add x1, x1, l_.str.137@PAGEOFF bl _speedtest1_begin_test adrp x0, l_.str.138@PAGE add x0, x0, l_.str.138@PAGEOFF bl _speedtest1_prepare ldur w8, [x29, #-20] ldur w9, [x29, #-16] udiv w8, w8, w9 stur w8, [x29, #-48] stur wzr, [x29, #-12] b LBB16_29 LBB16_29: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-12] ldur w9, [x29, #-16] subs w8, w8, w9 cset w8, hs tbnz w8, #0, LBB16_34 b LBB16_30 LBB16_30: ; in Loop: Header=BB16_29 Depth=1 ldur x8, [x29, #-64] ; 8-byte Folded Reload ldr x0, [x8, #8] ldur w8, [x29, #-12] ldur w9, [x29, #-48] mul w2, w8, w9 mov w1, #1 bl _sqlite3_bind_int ldur x8, [x29, #-64] ; 8-byte Folded Reload ldr x0, [x8, #8] ldur w8, [x29, #-12] add w8, w8, #1 ldur w9, [x29, #-48] mul w2, w8, w9 mov w1, #2 bl _sqlite3_bind_int bl _speedtest1_execute ldur x0, [x29, #-72] ; 8-byte Folded Reload ldur x8, [x29, #-56] ldur w9, [x29, #-12] ; kill: def $x9 killed $w9 ldr w8, [x8, x9, lsl #2] str w8, [sp, #68] ; 4-byte Folded Spill bl _atoi ldr w8, [sp, #68] ; 4-byte Folded Reload subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB16_32 b LBB16_31 LBB16_31: ; in Loop: Header=BB16_29 Depth=1 ldur x0, [x29, #-72] ; 8-byte Folded Reload ldur w9, [x29, #-12] ; implicit-def: $x8 mov x8, x9 str x8, [sp, #40] ; 8-byte Folded Spill ldur w8, [x29, #-12] ldur w9, [x29, #-48] mul w8, w8, w9 str w8, [sp, #48] ; 4-byte Folded Spill ldur w8, [x29, #-12] add w8, w8, #1 ldur w9, [x29, #-48] mul w8, w8, w9 str w8, [sp, #52] ; 4-byte Folded Spill ldur x8, [x29, #-56] ldur w9, [x29, #-12] ; kill: def $x9 killed $w9 ldr w9, [x8, x9, lsl #2] ; implicit-def: $x8 mov x8, x9 str x8, [sp, #56] ; 8-byte Folded Spill bl _atoi ldr x10, [sp, #40] ; 8-byte Folded Reload ldr w12, [sp, #48] ; 4-byte Folded Reload ldr w11, [sp, #52] ; 4-byte Folded Reload ldr x8, [sp, #56] ; 8-byte Folded Reload mov x9, sp str x10, [x9] ; implicit-def: $x10 mov x10, x12 str x10, [x9, #8] ; implicit-def: $x10 mov x10, x11 str x10, [x9, #16] str x8, [x9, #24] ; implicit-def: $x8 mov x8, x0 str x8, [x9, #32] adrp x0, l_.str.132@PAGE add x0, x0, l_.str.132@PAGEOFF bl _fatal_error b LBB16_32 LBB16_32: ; in Loop: Header=BB16_29 Depth=1 b LBB16_33 LBB16_33: ; in Loop: Header=BB16_29 Depth=1 ldur w8, [x29, #-12] add w8, w8, #1 stur w8, [x29, #-12] b LBB16_29 LBB16_34: bl _speedtest1_end_test ldur x8, [x29, #-64] ; 8-byte Folded Reload ldr w8, [x8, #52] mov w9, #80 mul w8, w8, w9 stur w8, [x29, #-16] ldur w9, [x29, #-16] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] mov w0, #130 adrp x1, l_.str.139@PAGE add x1, x1, l_.str.139@PAGEOFF bl _speedtest1_begin_test adrp x0, l_.str.140@PAGE add x0, x0, l_.str.140@PAGEOFF bl _speedtest1_prepare ldur w8, [x29, #-20] ldur w9, [x29, #-16] udiv w8, w8, w9 stur w8, [x29, #-48] stur wzr, [x29, #-12] b LBB16_35 LBB16_35: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-12] ldur w9, [x29, #-16] subs w8, w8, w9 cset w8, hs tbnz w8, #0, LBB16_38 b LBB16_36 LBB16_36: ; in Loop: Header=BB16_35 Depth=1 ldur x8, [x29, #-64] ; 8-byte Folded Reload ldr x0, [x8, #8] ldur w8, [x29, #-12] ldur w9, [x29, #-48] mul w2, w8, w9 mov w1, #1 bl _sqlite3_bind_int ldur x8, [x29, #-64] ; 8-byte Folded Reload ldr x0, [x8, #8] ldur w8, [x29, #-12] add w8, w8, #1 ldur w9, [x29, #-48] mul w2, w8, w9 mov w1, #2 bl _sqlite3_bind_int bl _speedtest1_execute ldur x0, [x29, #-72] ; 8-byte Folded Reload bl _atoi ldur x8, [x29, #-56] ldur w9, [x29, #-12] ; kill: def $x9 killed $w9 str w0, [x8, x9, lsl #2] b LBB16_37 LBB16_37: ; in Loop: Header=BB16_35 Depth=1 ldur w8, [x29, #-12] add w8, w8, #1 stur w8, [x29, #-12] b LBB16_35 LBB16_38: bl _speedtest1_end_test ldur x8, [x29, #-64] ; 8-byte Folded Reload ldr w8, [x8, #52] mov w9, #100 mul w8, w8, w9 stur w8, [x29, #-16] ldur w9, [x29, #-16] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] mov w0, #140 adrp x1, l_.str.141@PAGE add x1, x1, l_.str.141@PAGEOFF bl _speedtest1_begin_test adrp x0, l_.str.142@PAGE add x0, x0, l_.str.142@PAGEOFF bl _speedtest1_prepare mov w8, #1 stur w8, [x29, #-12] b LBB16_39 LBB16_39: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-12] ldur w9, [x29, #-16] subs w8, w8, w9 cset w8, hi tbnz w8, #0, LBB16_42 b LBB16_40 LBB16_40: ; in Loop: Header=BB16_39 Depth=1 ldur x8, [x29, #-64] ; 8-byte Folded Reload ldr x0, [x8, #8] ldur w2, [x29, #-12] mov w1, #1 bl _sqlite3_bind_int bl _speedtest1_execute b LBB16_41 LBB16_41: ; in Loop: Header=BB16_39 Depth=1 ldur w8, [x29, #-12] add w8, w8, #1 stur w8, [x29, #-12] b LBB16_39 LBB16_42: bl _speedtest1_end_test ldp x29, x30, [sp, #208] ; 16-byte Folded Reload add sp, sp, #224 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function twoCoords _twoCoords: ; @twoCoords .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur w0, [x29, #-4] stur w1, [x29, #-8] stur w2, [x29, #-12] str x3, [sp, #24] str x4, [sp, #16] ldur w8, [x29, #-12] mov w9, #100 udiv w8, w8, w9 add w8, w8, #1 str w8, [sp] bl _speedtest1_random mov w9, #3 udiv w8, w0, w9 mul w8, w8, w9 subs w8, w0, w8 subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB17_2 b LBB17_1 LBB17_1: ldur w9, [x29, #-4] ldr w8, [sp] mul w8, w8, w9 str w8, [sp] b LBB17_2 LBB17_2: bl _speedtest1_random ldur w9, [x29, #-8] udiv w8, w0, w9 mul w8, w8, w9 subs w8, w0, w8 subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB17_4 b LBB17_3 LBB17_3: ldur w8, [x29, #-12] mov w9, #2 udiv w8, w8, w9 str w8, [sp] b LBB17_4 LBB17_4: bl _speedtest1_random ldr w9, [sp] udiv w8, w0, w9 mul w8, w8, w9 subs w8, w0, w8 add w8, w8, #1 str w8, [sp, #12] bl _speedtest1_random ldur w8, [x29, #-12] ldr w9, [sp, #12] subs w9, w8, w9 udiv w8, w0, w9 mul w8, w8, w9 subs w8, w0, w8 add w8, w8, #1 str w8, [sp, #8] ldr w8, [sp, #8] ldr w9, [sp, #12] add w8, w8, w9 str w8, [sp, #4] ldr w8, [sp, #8] ldr x9, [sp, #24] str w8, [x9] ldr w8, [sp, #4] ldr x9, [sp, #16] str w8, [x9] ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _testset_debug1 ; -- Begin function testset_debug1 .p2align 2 _testset_debug1: ; @testset_debug1 .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, #2064 adrp x8, _g@PAGE add x8, x8, _g@PAGEOFF adrp x9, ___stack_chk_guard@GOTPAGE ldr x9, [x9, ___stack_chk_guard@GOTPAGEOFF] ldr x9, [x9] stur x9, [x29, #-24] ldr w8, [x8, #52] str w8, [sp, #48] mov w8, #1 str w8, [sp, #52] b LBB18_1 LBB18_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #52] ldr w9, [sp, #48] subs w8, w8, w9 cset w8, hi tbnz w8, #0, LBB18_4 b LBB18_2 LBB18_2: ; in Loop: Header=BB18_1 Depth=1 ldr w0, [sp, #52] ldr w1, [sp, #48] bl _swizzle str w0, [sp, #44] ldr w0, [sp, #44] ldr w1, [sp, #48] bl _swizzle str w0, [sp, #40] ldr w0, [sp, #44] add x1, sp, #56 str x1, [sp, #32] ; 8-byte Folded Spill mov w2, #2000 bl _speedtest1_numbername ldr x8, [sp, #32] ; 8-byte Folded Reload ldr w9, [sp, #52] ; implicit-def: $x12 mov x12, x9 ldr w9, [sp, #44] ; implicit-def: $x11 mov x11, x9 ldr w9, [sp, #40] ; implicit-def: $x10 mov x10, x9 mov x9, sp str x12, [x9] str x11, [x9, #8] str x10, [x9, #16] str x8, [x9, #24] adrp x0, l_.str.143@PAGE add x0, x0, l_.str.143@PAGEOFF bl _printf b LBB18_3 LBB18_3: ; in Loop: Header=BB18_1 Depth=1 ldr w8, [sp, #52] add w8, w8, #1 str w8, [sp, #52] b LBB18_1 LBB18_4: 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, LBB18_6 b LBB18_5 LBB18_5: bl ___stack_chk_fail LBB18_6: add sp, sp, #2064 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x28, x27, [sp], #32 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #336 .cfi_def_cfa_offset 336 stp x28, x27, [sp, #304] ; 16-byte Folded Spill stp x29, x30, [sp, #320] ; 16-byte Folded Spill add x29, sp, #320 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w27, -24 .cfi_offset w28, -32 adrp x9, _g@PAGE add x9, x9, _g@PAGEOFF str x9, [sp, #104] ; 8-byte Folded Spill stur wzr, [x29, #-20] stur w0, [x29, #-24] stur x1, [x29, #-32] stur wzr, [x29, #-36] stur wzr, [x29, #-40] stur wzr, [x29, #-44] stur wzr, [x29, #-48] stur wzr, [x29, #-52] stur wzr, [x29, #-56] ; kill: def $x8 killed $xzr stur xzr, [x29, #-64] stur xzr, [x29, #-72] stur wzr, [x29, #-76] stur wzr, [x29, #-80] stur wzr, [x29, #-84] stur wzr, [x29, #-88] stur wzr, [x29, #-92] stur wzr, [x29, #-96] stur wzr, [x29, #-100] stur wzr, [x29, #-104] stur wzr, [x29, #-108] adrp x8, l_.str.144@PAGE add x8, x8, l_.str.144@PAGEOFF stur x8, [x29, #-120] stur wzr, [x29, #-124] stur xzr, [x29, #-136] stur xzr, [x29, #-144] stur xzr, [x29, #-152] str xzr, [sp, #160] str xzr, [sp, #152] str xzr, [sp, #144] adrp x8, l_.str.20@PAGE add x8, x8, l_.str.20@PAGEOFF mov x10, x8 str x10, [x9, #56] str x8, [x9, #64] adrp x8, l_.str.145@PAGE add x8, x8, l_.str.145@PAGEOFF str x8, [x9, #72] mov w8, #100 str w8, [x9, #52] ldur w8, [x29, #-24] subs w8, w8, #1 cset w8, le tbnz w8, #0, LBB19_2 b LBB19_1 LBB19_1: ldur x8, [x29, #-32] ldr x8, [x8, #8] ldrsb w8, [x8] subs w8, w8, #48 str w8, [sp, #100] ; 4-byte Folded Spill b LBB19_3 LBB19_2: mov w8, #3 str w8, [sp, #100] ; 4-byte Folded Spill b LBB19_3 LBB19_3: ldr w8, [sp, #100] ; 4-byte Folded Reload str w8, [sp, #124] ldr w8, [sp, #124] subs w8, w8, #0 ; kill: def $x8 killed $w8 str x8, [sp, #88] ; 8-byte Folded Spill subs x8, x8, #5 cset w8, hi tbnz w8, #0, LBB19_11 ; %bb.4: ldr x11, [sp, #88] ; 8-byte Folded Reload adrp x10, lJTI19_0@PAGE add x10, x10, lJTI19_0@PAGEOFF Ltmp3: adr x8, Ltmp3 ldrsw x9, [x10, x11, lsl #2] add x8, x8, x9 br x8 LBB19_5: stur wzr, [x29, #-20] b LBB19_193 LBB19_6: mov w8, #5 str w8, [sp, #124] b LBB19_12 LBB19_7: mov w8, #10 str w8, [sp, #124] b LBB19_12 LBB19_8: mov w8, #20 str w8, [sp, #124] b LBB19_12 LBB19_9: mov w8, #40 str w8, [sp, #124] b LBB19_12 LBB19_10: mov w8, #80 str w8, [sp, #124] b LBB19_12 LBB19_11: ldr w9, [sp, #124] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.146@PAGE add x0, x0, l_.str.146@PAGEOFF bl _printf mov w8, #-1 stur w8, [x29, #-20] b LBB19_193 LBB19_12: ldr x9, [sp, #104] ; 8-byte Folded Reload ldr w8, [sp, #124] str w8, [x9, #52] mov w8, #2 str w8, [sp, #132] b LBB19_13 LBB19_13: ; =>This Loop Header: Depth=1 ; Child Loop BB19_16 Depth 2 ldr w8, [sp, #132] ldur w9, [x29, #-24] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB19_124 b LBB19_14 LBB19_14: ; in Loop: Header=BB19_13 Depth=1 ldur x8, [x29, #-32] ldrsw x9, [sp, #132] ldr x8, [x8, x9, lsl #3] str x8, [sp, #112] ldr x8, [sp, #112] ldrsb w8, [x8] subs w8, w8, #45 cset w8, ne tbnz w8, #0, LBB19_118 b LBB19_15 LBB19_15: ; in Loop: Header=BB19_13 Depth=1 b LBB19_16 LBB19_16: ; Parent Loop BB19_13 Depth=1 ; => This Inner Loop Header: Depth=2 ldr x8, [sp, #112] add x8, x8, #1 str x8, [sp, #112] b LBB19_17 LBB19_17: ; in Loop: Header=BB19_16 Depth=2 ldr x8, [sp, #112] ldrsb w8, [x8] subs w8, w8, #45 cset w8, eq tbnz w8, #0, LBB19_16 b LBB19_18 LBB19_18: ; in Loop: Header=BB19_13 Depth=1 ldr x0, [sp, #112] adrp x1, l_.str.147@PAGE add x1, x1, l_.str.147@PAGEOFF bl _strcmp subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB19_20 b LBB19_19 LBB19_19: ; in Loop: Header=BB19_13 Depth=1 mov w8, #1 stur w8, [x29, #-36] b LBB19_117 LBB19_20: ; in Loop: Header=BB19_13 Depth=1 ldr x0, [sp, #112] adrp x1, l_.str.148@PAGE add x1, x1, l_.str.148@PAGEOFF bl _strcmp subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB19_24 b LBB19_21 LBB19_21: ; in Loop: Header=BB19_13 Depth=1 ldr w8, [sp, #132] ldur w9, [x29, #-24] subs w9, w9, #1 subs w8, w8, w9 cset w8, lt tbnz w8, #0, LBB19_23 b LBB19_22 LBB19_22: ; in Loop: Header=BB19_13 Depth=1 ldur x8, [x29, #-32] ldrsw x9, [sp, #132] ldr x8, [x8, x9, lsl #3] mov x9, sp str x8, [x9] adrp x0, l_.str.149@PAGE add x0, x0, l_.str.149@PAGEOFF bl _fatal_error b LBB19_23 LBB19_23: ; in Loop: Header=BB19_13 Depth=1 ldr w8, [sp, #132] add w8, w8, #1 str w8, [sp, #132] ldur x8, [x29, #-32] ldrsw x9, [sp, #132] ldr x0, [x8, x9, lsl #3] bl _integerValue stur w0, [x29, #-40] b LBB19_116 LBB19_24: ; in Loop: Header=BB19_13 Depth=1 ldr x0, [sp, #112] adrp x1, l_.str.150@PAGE add x1, x1, l_.str.150@PAGEOFF bl _strcmp subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB19_26 b LBB19_25 LBB19_25: ; in Loop: Header=BB19_13 Depth=1 mov w8, #1 stur w8, [x29, #-44] b LBB19_115 LBB19_26: ; in Loop: Header=BB19_13 Depth=1 ldr x0, [sp, #112] adrp x1, l_.str.151@PAGE add x1, x1, l_.str.151@PAGEOFF bl _strcmp subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB19_28 b LBB19_27 LBB19_27: ; in Loop: Header=BB19_13 Depth=1 ldr x9, [sp, #104] ; 8-byte Folded Reload mov w8, #1 str w8, [x9, #40] str w8, [x9, #44] b LBB19_114 LBB19_28: ; in Loop: Header=BB19_13 Depth=1 ldr x0, [sp, #112] adrp x1, l_.str.152@PAGE add x1, x1, l_.str.152@PAGEOFF bl _strcmp subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB19_32 b LBB19_29 LBB19_29: ; in Loop: Header=BB19_13 Depth=1 ldr w8, [sp, #132] ldur w9, [x29, #-24] subs w9, w9, #2 subs w8, w8, w9 cset w8, lt tbnz w8, #0, LBB19_31 b LBB19_30 LBB19_30: ; in Loop: Header=BB19_13 Depth=1 ldur x8, [x29, #-32] ldrsw x9, [sp, #132] ldr x8, [x8, x9, lsl #3] mov x9, sp str x8, [x9] adrp x0, l_.str.153@PAGE add x0, x0, l_.str.153@PAGEOFF bl _fatal_error b LBB19_31 LBB19_31: ; in Loop: Header=BB19_13 Depth=1 ldur x8, [x29, #-32] ldr w9, [sp, #132] add w9, w9, #1 ldr x0, [x8, w9, sxtw #3] bl _integerValue stur w0, [x29, #-48] ldur x8, [x29, #-32] ldr w9, [sp, #132] add w9, w9, #2 ldr x0, [x8, w9, sxtw #3] bl _integerValue stur w0, [x29, #-52] ldr w8, [sp, #132] add w8, w8, #2 str w8, [sp, #132] b LBB19_113 LBB19_32: ; in Loop: Header=BB19_13 Depth=1 ldr x0, [sp, #112] adrp x1, l_.str.154@PAGE add x1, x1, l_.str.154@PAGEOFF bl _strcmp subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB19_34 b LBB19_33 LBB19_33: ; in Loop: Header=BB19_13 Depth=1 mov w8, #1 stur w8, [x29, #-56] b LBB19_112 LBB19_34: ; in Loop: Header=BB19_13 Depth=1 ldr x0, [sp, #112] adrp x1, l_.str.155@PAGE add x1, x1, l_.str.155@PAGEOFF bl _strcmp subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB19_38 b LBB19_35 LBB19_35: ; in Loop: Header=BB19_13 Depth=1 ldr w8, [sp, #132] ldur w9, [x29, #-24] subs w9, w9, #1 subs w8, w8, w9 cset w8, lt tbnz w8, #0, LBB19_37 b LBB19_36 LBB19_36: ; in Loop: Header=BB19_13 Depth=1 ldur x8, [x29, #-32] ldrsw x9, [sp, #132] ldr x8, [x8, x9, lsl #3] mov x9, sp str x8, [x9] adrp x0, l_.str.149@PAGE add x0, x0, l_.str.149@PAGEOFF bl _fatal_error b LBB19_37 LBB19_37: ; in Loop: Header=BB19_13 Depth=1 ldur x8, [x29, #-32] ldr w9, [sp, #132] add w9, w9, #1 str w9, [sp, #132] ldr x8, [x8, w9, sxtw #3] stur x8, [x29, #-64] b LBB19_111 LBB19_38: ; in Loop: Header=BB19_13 Depth=1 ldr x0, [sp, #112] adrp x1, l_.str.156@PAGE add x1, x1, l_.str.156@PAGEOFF bl _strcmp subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB19_42 b LBB19_39 LBB19_39: ; in Loop: Header=BB19_13 Depth=1 ldr w8, [sp, #132] ldur w9, [x29, #-24] subs w9, w9, #1 subs w8, w8, w9 cset w8, lt tbnz w8, #0, LBB19_41 b LBB19_40 LBB19_40: ; in Loop: Header=BB19_13 Depth=1 ldur x8, [x29, #-32] ldrsw x9, [sp, #132] ldr x8, [x8, x9, lsl #3] mov x9, sp str x8, [x9] adrp x0, l_.str.149@PAGE add x0, x0, l_.str.149@PAGEOFF bl _fatal_error b LBB19_41 LBB19_41: ; in Loop: Header=BB19_13 Depth=1 ldur x8, [x29, #-32] ldr w9, [sp, #132] add w9, w9, #1 str w9, [sp, #132] ldr x8, [x8, w9, sxtw #3] stur x8, [x29, #-72] b LBB19_110 LBB19_42: ; in Loop: Header=BB19_13 Depth=1 ldr x0, [sp, #112] adrp x1, l_.str.157@PAGE add x1, x1, l_.str.157@PAGEOFF bl _strcmp subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB19_46 b LBB19_43 LBB19_43: ; in Loop: Header=BB19_13 Depth=1 ldr w8, [sp, #132] ldur w9, [x29, #-24] subs w9, w9, #2 subs w8, w8, w9 cset w8, lt tbnz w8, #0, LBB19_45 b LBB19_44 LBB19_44: ; in Loop: Header=BB19_13 Depth=1 ldur x8, [x29, #-32] ldrsw x9, [sp, #132] ldr x8, [x8, x9, lsl #3] mov x9, sp str x8, [x9] adrp x0, l_.str.153@PAGE add x0, x0, l_.str.153@PAGEOFF bl _fatal_error b LBB19_45 LBB19_45: ; in Loop: Header=BB19_13 Depth=1 ldur x8, [x29, #-32] ldr w9, [sp, #132] add w9, w9, #1 ldr x0, [x8, w9, sxtw #3] bl _integerValue stur w0, [x29, #-76] ldur x8, [x29, #-32] ldr w9, [sp, #132] add w9, w9, #2 ldr x0, [x8, w9, sxtw #3] bl _integerValue stur w0, [x29, #-80] ldr w8, [sp, #132] add w8, w8, #2 str w8, [sp, #132] b LBB19_109 LBB19_46: ; in Loop: Header=BB19_13 Depth=1 ldr x0, [sp, #112] adrp x1, l_.str.158@PAGE add x1, x1, l_.str.158@PAGEOFF bl _strcmp subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB19_48 b LBB19_47 LBB19_47: ; in Loop: Header=BB19_13 Depth=1 mov w8, #1 stur w8, [x29, #-84] b LBB19_108 LBB19_48: ; in Loop: Header=BB19_13 Depth=1 ldr x0, [sp, #112] adrp x1, l_.str.159@PAGE add x1, x1, l_.str.159@PAGEOFF bl _strcmp subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB19_50 b LBB19_49 LBB19_49: ; in Loop: Header=BB19_13 Depth=1 ldr x9, [sp, #104] ; 8-byte Folded Reload adrp x8, l_.str.160@PAGE add x8, x8, l_.str.160@PAGEOFF str x8, [x9, #64] b LBB19_107 LBB19_50: ; in Loop: Header=BB19_13 Depth=1 ldr x0, [sp, #112] adrp x1, l_.str.161@PAGE add x1, x1, l_.str.161@PAGEOFF bl _strcmp subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB19_54 b LBB19_51 LBB19_51: ; in Loop: Header=BB19_13 Depth=1 ldr w8, [sp, #132] ldur w9, [x29, #-24] subs w9, w9, #1 subs w8, w8, w9 cset w8, lt tbnz w8, #0, LBB19_53 b LBB19_52 LBB19_52: ; in Loop: Header=BB19_13 Depth=1 ldur x8, [x29, #-32] ldrsw x9, [sp, #132] ldr x8, [x8, x9, lsl #3] mov x9, sp str x8, [x9] adrp x0, l_.str.149@PAGE add x0, x0, l_.str.149@PAGEOFF bl _fatal_error b LBB19_53 LBB19_53: ; in Loop: Header=BB19_13 Depth=1 ldur x8, [x29, #-32] ldr w9, [sp, #132] add w9, w9, #1 str w9, [sp, #132] ldr x0, [x8, w9, sxtw #3] bl _integerValue stur w0, [x29, #-88] b LBB19_106 LBB19_54: ; in Loop: Header=BB19_13 Depth=1 ldr x0, [sp, #112] adrp x1, l_.str.162@PAGE add x1, x1, l_.str.162@PAGEOFF bl _strcmp subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB19_58 b LBB19_55 LBB19_55: ; in Loop: Header=BB19_13 Depth=1 ldr w8, [sp, #132] ldur w9, [x29, #-24] subs w9, w9, #2 subs w8, w8, w9 cset w8, lt tbnz w8, #0, LBB19_57 b LBB19_56 LBB19_56: ; in Loop: Header=BB19_13 Depth=1 ldur x8, [x29, #-32] ldrsw x9, [sp, #132] ldr x8, [x8, x9, lsl #3] mov x9, sp str x8, [x9] adrp x0, l_.str.153@PAGE add x0, x0, l_.str.153@PAGEOFF bl _fatal_error b LBB19_57 LBB19_57: ; in Loop: Header=BB19_13 Depth=1 ldur x8, [x29, #-32] ldr w9, [sp, #132] add w9, w9, #1 ldr x0, [x8, w9, sxtw #3] bl _integerValue stur w0, [x29, #-92] ldur x8, [x29, #-32] ldr w9, [sp, #132] add w9, w9, #2 ldr x0, [x8, w9, sxtw #3] bl _integerValue stur w0, [x29, #-96] ldr w8, [sp, #132] add w8, w8, #2 str w8, [sp, #132] b LBB19_105 LBB19_58: ; in Loop: Header=BB19_13 Depth=1 ldr x0, [sp, #112] adrp x1, l_.str.163@PAGE add x1, x1, l_.str.163@PAGEOFF bl _strcmp subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB19_60 b LBB19_59 LBB19_59: ; in Loop: Header=BB19_13 Depth=1 ldr x9, [sp, #104] ; 8-byte Folded Reload adrp x8, l_.str.164@PAGE add x8, x8, l_.str.164@PAGEOFF str x8, [x9, #72] b LBB19_104 LBB19_60: ; in Loop: Header=BB19_13 Depth=1 ldr x0, [sp, #112] adrp x1, l_.str.165@PAGE add x1, x1, l_.str.165@PAGEOFF bl _strcmp subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB19_62 b LBB19_61 LBB19_61: ; in Loop: Header=BB19_13 Depth=1 ldr x9, [sp, #104] ; 8-byte Folded Reload mov w8, #1 str w8, [x9, #36] b LBB19_103 LBB19_62: ; in Loop: Header=BB19_13 Depth=1 ldr x0, [sp, #112] adrp x1, l_.str.166@PAGE add x1, x1, l_.str.166@PAGEOFF bl _strcmp subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB19_66 b LBB19_63 LBB19_63: ; in Loop: Header=BB19_13 Depth=1 ldr w8, [sp, #132] ldur w9, [x29, #-24] subs w9, w9, #2 subs w8, w8, w9 cset w8, lt tbnz w8, #0, LBB19_65 b LBB19_64 LBB19_64: ; in Loop: Header=BB19_13 Depth=1 ldur x8, [x29, #-32] ldrsw x9, [sp, #132] ldr x8, [x8, x9, lsl #3] mov x9, sp str x8, [x9] adrp x0, l_.str.153@PAGE add x0, x0, l_.str.153@PAGEOFF bl _fatal_error b LBB19_65 LBB19_65: ; in Loop: Header=BB19_13 Depth=1 ldur x8, [x29, #-32] ldr w9, [sp, #132] add w9, w9, #1 ldr x0, [x8, w9, sxtw #3] bl _integerValue stur w0, [x29, #-100] ldur x8, [x29, #-32] ldr w9, [sp, #132] add w9, w9, #2 ldr x0, [x8, w9, sxtw #3] bl _integerValue stur w0, [x29, #-104] ldr w8, [sp, #132] add w8, w8, #2 str w8, [sp, #132] b LBB19_102 LBB19_66: ; in Loop: Header=BB19_13 Depth=1 ldr x0, [sp, #112] adrp x1, l_.str.167@PAGE add x1, x1, l_.str.167@PAGEOFF bl _strcmp subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB19_68 b LBB19_67 LBB19_67: ; in Loop: Header=BB19_13 Depth=1 ldr x9, [sp, #104] ; 8-byte Folded Reload mov w8, #1 str w8, [x9, #40] b LBB19_101 LBB19_68: ; in Loop: Header=BB19_13 Depth=1 ldr x0, [sp, #112] adrp x1, l_.str.168@PAGE add x1, x1, l_.str.168@PAGEOFF bl _strcmp subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB19_72 b LBB19_69 LBB19_69: ; in Loop: Header=BB19_13 Depth=1 ldr w8, [sp, #132] ldur w9, [x29, #-24] subs w9, w9, #1 subs w8, w8, w9 cset w8, lt tbnz w8, #0, LBB19_71 b LBB19_70 LBB19_70: ; in Loop: Header=BB19_13 Depth=1 ldur x8, [x29, #-32] ldrsw x9, [sp, #132] ldr x8, [x8, x9, lsl #3] mov x9, sp str x8, [x9] adrp x0, l_.str.149@PAGE add x0, x0, l_.str.149@PAGEOFF bl _fatal_error b LBB19_71 LBB19_71: ; in Loop: Header=BB19_13 Depth=1 ldur x8, [x29, #-32] ldr w9, [sp, #132] add w9, w9, #1 str w9, [sp, #132] ldr x0, [x8, w9, sxtw #3] bl _integerValue ldr x8, [sp, #104] ; 8-byte Folded Reload str w0, [x8, #52] b LBB19_100 LBB19_72: ; in Loop: Header=BB19_13 Depth=1 ldr x0, [sp, #112] adrp x1, l_.str.169@PAGE add x1, x1, l_.str.169@PAGEOFF bl _strcmp subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB19_74 b LBB19_73 LBB19_73: ; in Loop: Header=BB19_13 Depth=1 mov w8, #1 stur w8, [x29, #-108] b LBB19_99 LBB19_74: ; in Loop: Header=BB19_13 Depth=1 ldr x0, [sp, #112] adrp x1, l_.str.170@PAGE add x1, x1, l_.str.170@PAGEOFF bl _strcmp subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB19_78 b LBB19_75 LBB19_75: ; in Loop: Header=BB19_13 Depth=1 ldr w8, [sp, #132] ldur w9, [x29, #-24] subs w9, w9, #1 subs w8, w8, w9 cset w8, lt tbnz w8, #0, LBB19_77 b LBB19_76 LBB19_76: ; in Loop: Header=BB19_13 Depth=1 ldur x8, [x29, #-32] ldrsw x9, [sp, #132] ldr x8, [x8, x9, lsl #3] mov x9, sp str x8, [x9] adrp x0, l_.str.149@PAGE add x0, x0, l_.str.149@PAGEOFF bl _fatal_error b LBB19_77 LBB19_77: ; in Loop: Header=BB19_13 Depth=1 ldur x8, [x29, #-32] ldr w9, [sp, #132] add w9, w9, #1 str w9, [sp, #132] ldr x8, [x8, w9, sxtw #3] stur x8, [x29, #-120] b LBB19_98 LBB19_78: ; in Loop: Header=BB19_13 Depth=1 ldr x0, [sp, #112] adrp x1, l_.str.171@PAGE add x1, x1, l_.str.171@PAGEOFF bl _strcmp subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB19_80 b LBB19_79 LBB19_79: ; in Loop: Header=BB19_13 Depth=1 mov w8, #1 stur w8, [x29, #-124] b LBB19_97 LBB19_80: ; in Loop: Header=BB19_13 Depth=1 ldr x0, [sp, #112] adrp x1, l_.str.172@PAGE add x1, x1, l_.str.172@PAGEOFF bl _strcmp subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB19_82 b LBB19_81 LBB19_81: ; in Loop: Header=BB19_13 Depth=1 adrp x8, l_.str.172@PAGE add x8, x8, l_.str.172@PAGEOFF stur x8, [x29, #-136] b LBB19_96 LBB19_82: ; in Loop: Header=BB19_13 Depth=1 ldr x0, [sp, #112] adrp x1, l_.str.173@PAGE add x1, x1, l_.str.173@PAGEOFF bl _strcmp subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB19_84 b LBB19_83 LBB19_83: ; in Loop: Header=BB19_13 Depth=1 adrp x8, l_.str.173@PAGE add x8, x8, l_.str.173@PAGEOFF stur x8, [x29, #-136] b LBB19_95 LBB19_84: ; in Loop: Header=BB19_13 Depth=1 ldr x0, [sp, #112] adrp x1, l_.str.174@PAGE add x1, x1, l_.str.174@PAGEOFF bl _strcmp subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB19_86 b LBB19_85 LBB19_85: ; in Loop: Header=BB19_13 Depth=1 ldr x9, [sp, #104] ; 8-byte Folded Reload mov w8, #1 str w8, [x9, #48] b LBB19_94 LBB19_86: ; in Loop: Header=BB19_13 Depth=1 ldr x0, [sp, #112] adrp x1, l_.str.175@PAGE add x1, x1, l_.str.175@PAGEOFF bl _strcmp subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB19_88 b LBB19_87 LBB19_87: ; in Loop: Header=BB19_13 Depth=1 ldr x9, [sp, #104] ; 8-byte Folded Reload adrp x8, l_.str.176@PAGE add x8, x8, l_.str.176@PAGEOFF str x8, [x9, #56] adrp x8, l_.str.164@PAGE add x8, x8, l_.str.164@PAGEOFF str x8, [x9, #72] b LBB19_93 LBB19_88: ; in Loop: Header=BB19_13 Depth=1 ldr x0, [sp, #112] adrp x1, l_.str.177@PAGE add x1, x1, l_.str.177@PAGEOFF bl _strcmp subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB19_90 b LBB19_89 LBB19_89: ; in Loop: Header=BB19_13 Depth=1 ldr x0, [sp, #112] adrp x1, l_.str.178@PAGE add x1, x1, l_.str.178@PAGEOFF bl _strcmp subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB19_91 b LBB19_90 LBB19_90: ldur x8, [x29, #-32] ldr x8, [x8] mov x9, sp str x8, [x9] adrp x0, _zHelp@PAGE add x0, x0, _zHelp@PAGEOFF bl _printf mov w0, #0 bl _exit LBB19_91: ; in Loop: Header=BB19_13 Depth=1 ldur x8, [x29, #-32] ldrsw x9, [sp, #132] ldr x10, [x8, x9, lsl #3] ldur x8, [x29, #-32] ldr x8, [x8] mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x0, l_.str.179@PAGE add x0, x0, l_.str.179@PAGEOFF bl _fatal_error b LBB19_92 LBB19_92: ; in Loop: Header=BB19_13 Depth=1 b LBB19_93 LBB19_93: ; in Loop: Header=BB19_13 Depth=1 b LBB19_94 LBB19_94: ; in Loop: Header=BB19_13 Depth=1 b LBB19_95 LBB19_95: ; in Loop: Header=BB19_13 Depth=1 b LBB19_96 LBB19_96: ; in Loop: Header=BB19_13 Depth=1 b LBB19_97 LBB19_97: ; in Loop: Header=BB19_13 Depth=1 b LBB19_98 LBB19_98: ; in Loop: Header=BB19_13 Depth=1 b LBB19_99 LBB19_99: ; in Loop: Header=BB19_13 Depth=1 b LBB19_100 LBB19_100: ; in Loop: Header=BB19_13 Depth=1 b LBB19_101 LBB19_101: ; in Loop: Header=BB19_13 Depth=1 b LBB19_102 LBB19_102: ; in Loop: Header=BB19_13 Depth=1 b LBB19_103 LBB19_103: ; in Loop: Header=BB19_13 Depth=1 b LBB19_104 LBB19_104: ; in Loop: Header=BB19_13 Depth=1 b LBB19_105 LBB19_105: ; in Loop: Header=BB19_13 Depth=1 b LBB19_106 LBB19_106: ; in Loop: Header=BB19_13 Depth=1 b LBB19_107 LBB19_107: ; in Loop: Header=BB19_13 Depth=1 b LBB19_108 LBB19_108: ; in Loop: Header=BB19_13 Depth=1 b LBB19_109 LBB19_109: ; in Loop: Header=BB19_13 Depth=1 b LBB19_110 LBB19_110: ; in Loop: Header=BB19_13 Depth=1 b LBB19_111 LBB19_111: ; in Loop: Header=BB19_13 Depth=1 b LBB19_112 LBB19_112: ; in Loop: Header=BB19_13 Depth=1 b LBB19_113 LBB19_113: ; in Loop: Header=BB19_13 Depth=1 b LBB19_114 LBB19_114: ; in Loop: Header=BB19_13 Depth=1 b LBB19_115 LBB19_115: ; in Loop: Header=BB19_13 Depth=1 b LBB19_116 LBB19_116: ; in Loop: Header=BB19_13 Depth=1 b LBB19_117 LBB19_117: ; in Loop: Header=BB19_13 Depth=1 b LBB19_122 LBB19_118: ; in Loop: Header=BB19_13 Depth=1 ldur x8, [x29, #-144] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB19_120 b LBB19_119 LBB19_119: ; in Loop: Header=BB19_13 Depth=1 ldur x8, [x29, #-32] ldrsw x9, [sp, #132] ldr x8, [x8, x9, lsl #3] stur x8, [x29, #-144] b LBB19_121 LBB19_120: ; in Loop: Header=BB19_13 Depth=1 ldur x8, [x29, #-32] ldrsw x9, [sp, #132] ldr x10, [x8, x9, lsl #3] ldur x8, [x29, #-32] ldr x8, [x8] mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x0, l_.str.180@PAGE add x0, x0, l_.str.180@PAGEOFF bl _fatal_error b LBB19_121 LBB19_121: ; in Loop: Header=BB19_13 Depth=1 b LBB19_122 LBB19_122: ; in Loop: Header=BB19_13 Depth=1 b LBB19_123 LBB19_123: ; in Loop: Header=BB19_13 Depth=1 ldr w8, [sp, #132] add w8, w8, #1 str w8, [sp, #132] b LBB19_13 LBB19_124: ldur w8, [x29, #-48] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB19_130 b LBB19_125 LBB19_125: ldursw x0, [x29, #-48] bl _malloc stur x0, [x29, #-152] ldur x8, [x29, #-152] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB19_127 b LBB19_126 LBB19_126: ldur w9, [x29, #-48] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.181@PAGE add x0, x0, l_.str.181@PAGEOFF bl _fatal_error b LBB19_127 LBB19_127: ldur x11, [x29, #-152] ldur w8, [x29, #-48] ; implicit-def: $x10 mov x10, x8 ldur w9, [x29, #-52] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x11, [x9] str x10, [x9, #8] str x8, [x9, #16] mov w0, #8 bl _sqlite3_config str w0, [sp, #128] ldr w8, [sp, #128] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB19_129 b LBB19_128 LBB19_128: ldr w9, [sp, #128] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.182@PAGE add x0, x0, l_.str.182@PAGEOFF bl _fatal_error b LBB19_129 LBB19_129: b LBB19_130 LBB19_130: ldur w8, [x29, #-92] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB19_137 b LBB19_131 LBB19_131: ldur w8, [x29, #-96] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB19_137 b LBB19_132 LBB19_132: ldursw x8, [x29, #-92] ldursw x9, [x29, #-96] mul x0, x8, x9 bl _malloc str x0, [sp, #152] ldr x8, [sp, #152] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB19_134 b LBB19_133 LBB19_133: ldursw x8, [x29, #-92] ldursw x9, [x29, #-96] mul x8, x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.183@PAGE add x0, x0, l_.str.183@PAGEOFF bl _fatal_error b LBB19_134 LBB19_134: ldr x11, [sp, #152] ldur w8, [x29, #-96] ; implicit-def: $x10 mov x10, x8 ldur w9, [x29, #-92] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x11, [x9] str x10, [x9, #8] str x8, [x9, #16] mov w0, #7 bl _sqlite3_config str w0, [sp, #128] ldr w8, [sp, #128] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB19_136 b LBB19_135 LBB19_135: ldr w9, [sp, #128] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.184@PAGE add x0, x0, l_.str.184@PAGEOFF bl _fatal_error b LBB19_136 LBB19_136: b LBB19_137 LBB19_137: ldur w8, [x29, #-100] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB19_144 b LBB19_138 LBB19_138: ldur w8, [x29, #-104] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB19_144 b LBB19_139 LBB19_139: ldursw x8, [x29, #-100] ldursw x9, [x29, #-104] mul x0, x8, x9 bl _malloc str x0, [sp, #144] ldr x8, [sp, #144] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB19_141 b LBB19_140 LBB19_140: ldursw x8, [x29, #-100] ldursw x9, [x29, #-104] mul x8, x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.185@PAGE add x0, x0, l_.str.185@PAGEOFF bl _fatal_error b LBB19_141 LBB19_141: ldr x11, [sp, #144] ldur w8, [x29, #-104] ; implicit-def: $x10 mov x10, x8 ldur w9, [x29, #-100] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x11, [x9] str x10, [x9, #8] str x8, [x9, #16] mov w0, #6 bl _sqlite3_config str w0, [sp, #128] ldr w8, [sp, #128] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB19_143 b LBB19_142 LBB19_142: ldr w9, [sp, #128] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.186@PAGE add x0, x0, l_.str.186@PAGEOFF bl _fatal_error b LBB19_143 LBB19_143: b LBB19_144 LBB19_144: ldur w8, [x29, #-76] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB19_146 b LBB19_145 LBB19_145: mov x8, sp str xzr, [x8] str xzr, [x8, #8] mov w0, #13 bl _sqlite3_config b LBB19_146 LBB19_146: adrp x0, l_.str.187@PAGE add x0, x0, l_.str.187@PAGEOFF adrp x1, _g@PAGE add x1, x1, _g@PAGEOFF bl _sqlite3_open subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB19_148 b LBB19_147 LBB19_147: ldur x8, [x29, #-144] mov x9, sp str x8, [x9] adrp x0, l_.str.188@PAGE add x0, x0, l_.str.188@PAGEOFF bl _fatal_error b LBB19_148 LBB19_148: ldur w8, [x29, #-76] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB19_153 b LBB19_149 LBB19_149: ldur w8, [x29, #-80] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB19_153 b LBB19_150 LBB19_150: ldur w8, [x29, #-76] ldur w9, [x29, #-80] mul w9, w8, w9 ; implicit-def: $x8 mov x8, x9 sxtw x0, w8 bl _malloc str x0, [sp, #160] adrp x8, _g@PAGE ldr x0, [x8, _g@PAGEOFF] ldr x11, [sp, #160] ldur w8, [x29, #-80] ; implicit-def: $x10 mov x10, x8 ldur w9, [x29, #-76] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x11, [x9] str x10, [x9, #8] str x8, [x9, #16] mov w1, #1001 bl _sqlite3_db_config str w0, [sp, #128] ldr w8, [sp, #128] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB19_152 b LBB19_151 LBB19_151: ldr w9, [sp, #128] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.189@PAGE add x0, x0, l_.str.189@PAGEOFF bl _fatal_error b LBB19_152 LBB19_152: b LBB19_153 LBB19_153: adrp x8, _g@PAGE ldr x0, [x8, _g@PAGEOFF] adrp x1, l_.str.190@PAGE add x1, x1, l_.str.190@PAGEOFF mov w2, #0 mov w3, #1 mov x7, #0 mov x4, x7 adrp x5, _randomFunc1@PAGE add x5, x5, _randomFunc1@PAGEOFF mov x6, x7 bl _sqlite3_create_function ldur w8, [x29, #-124] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB19_155 b LBB19_154 LBB19_154: adrp x8, _g@PAGE ldr x0, [x8, _g@PAGEOFF] adrp x1, _traceCallback@PAGE add x1, x1, _traceCallback@PAGEOFF mov x2, #0 bl _sqlite3_trace b LBB19_155 LBB19_155: ldur x8, [x29, #-72] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB19_157 b LBB19_156 LBB19_156: ldur x8, [x29, #-72] mov x9, sp str x8, [x9] adrp x0, l_.str.191@PAGE add x0, x0, l_.str.191@PAGEOFF bl _speedtest1_exec b LBB19_157 LBB19_157: ldur x8, [x29, #-136] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB19_159 b LBB19_158 LBB19_158: ldur x8, [x29, #-136] mov x9, sp str x8, [x9] adrp x0, l_.str.192@PAGE add x0, x0, l_.str.192@PAGEOFF bl _speedtest1_exec b LBB19_159 LBB19_159: ldur w8, [x29, #-36] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB19_161 b LBB19_160 LBB19_160: adrp x0, l_.str.193@PAGE add x0, x0, l_.str.193@PAGEOFF bl _speedtest1_exec b LBB19_164 LBB19_161: ldur w8, [x29, #-56] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB19_163 b LBB19_162 LBB19_162: adrp x0, l_.str.194@PAGE add x0, x0, l_.str.194@PAGEOFF bl _speedtest1_exec b LBB19_163 LBB19_163: b LBB19_164 LBB19_164: ldur w8, [x29, #-88] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB19_166 b LBB19_165 LBB19_165: ldur w9, [x29, #-88] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.195@PAGE add x0, x0, l_.str.195@PAGEOFF bl _speedtest1_exec b LBB19_166 LBB19_166: ldur w8, [x29, #-40] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB19_168 b LBB19_167 LBB19_167: ldur w9, [x29, #-40] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.196@PAGE add x0, x0, l_.str.196@PAGEOFF bl _speedtest1_exec b LBB19_168 LBB19_168: ldur w8, [x29, #-84] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB19_170 b LBB19_169 LBB19_169: adrp x0, l_.str.197@PAGE add x0, x0, l_.str.197@PAGEOFF bl _speedtest1_exec b LBB19_170 LBB19_170: ldur w8, [x29, #-44] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB19_172 b LBB19_171 LBB19_171: adrp x0, l_.str.198@PAGE add x0, x0, l_.str.198@PAGEOFF bl _speedtest1_exec b LBB19_172 LBB19_172: ldur x8, [x29, #-64] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB19_174 b LBB19_173 LBB19_173: ldur x8, [x29, #-64] mov x9, sp str x8, [x9] adrp x0, l_.str.199@PAGE add x0, x0, l_.str.199@PAGEOFF bl _speedtest1_exec b LBB19_174 LBB19_174: ldr x8, [sp, #104] ; 8-byte Folded Reload ldr w8, [x8, #44] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB19_176 b LBB19_175 LBB19_175: adrp x0, l_.str.200@PAGE add x0, x0, l_.str.200@PAGEOFF bl _printf b LBB19_176 LBB19_176: ldur x0, [x29, #-120] adrp x1, l_.str.144@PAGE add x1, x1, l_.str.144@PAGEOFF bl _strcmp subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB19_178 b LBB19_177 LBB19_177: bl _testset_main b LBB19_188 LBB19_178: ldur x0, [x29, #-120] adrp x1, l_.str.201@PAGE add x1, x1, l_.str.201@PAGEOFF bl _strcmp subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB19_180 b LBB19_179 LBB19_179: bl _testset_debug1 b LBB19_187 LBB19_180: ldur x0, [x29, #-120] adrp x1, l_.str.202@PAGE add x1, x1, l_.str.202@PAGEOFF bl _strcmp subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB19_182 b LBB19_181 LBB19_181: bl _testset_cte b LBB19_186 LBB19_182: ldur x0, [x29, #-120] adrp x1, l_.str.203@PAGE add x1, x1, l_.str.203@PAGEOFF bl _strcmp subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB19_184 b LBB19_183 LBB19_183: mov w0, #6 mov w1, #147 bl _testset_rtree b LBB19_185 LBB19_184: ldur x8, [x29, #-120] mov x9, sp str x8, [x9] adrp x0, l_.str.204@PAGE add x0, x0, l_.str.204@PAGEOFF bl _fatal_error b LBB19_185 LBB19_185: b LBB19_186 LBB19_186: b LBB19_187 LBB19_187: b LBB19_188 LBB19_188: bl _speedtest1_final ldur w8, [x29, #-108] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB19_190 b LBB19_189 LBB19_189: adrp x8, _g@PAGE str x8, [sp, #56] ; 8-byte Folded Spill ldr x0, [x8, _g@PAGEOFF] mov w4, #0 str w4, [sp, #84] ; 4-byte Folded Spill mov x1, x4 add x2, sp, #140 str x2, [sp, #64] ; 8-byte Folded Spill add x3, sp, #136 str x3, [sp, #72] ; 8-byte Folded Spill bl _sqlite3_db_status ldr w8, [sp, #140] ; implicit-def: $x10 mov x10, x8 ldr w9, [sp, #136] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x0, l_.str.205@PAGE add x0, x0, l_.str.205@PAGEOFF bl _printf ldr x8, [sp, #56] ; 8-byte Folded Reload ldr x2, [sp, #64] ; 8-byte Folded Reload ldr x3, [sp, #72] ; 8-byte Folded Reload ldr w4, [sp, #84] ; 4-byte Folded Reload ldr x0, [x8, _g@PAGEOFF] mov w1, #4 bl _sqlite3_db_status ldr w9, [sp, #136] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.206@PAGE add x0, x0, l_.str.206@PAGEOFF bl _printf ldr x8, [sp, #56] ; 8-byte Folded Reload ldr x2, [sp, #64] ; 8-byte Folded Reload ldr x3, [sp, #72] ; 8-byte Folded Reload ldr w4, [sp, #84] ; 4-byte Folded Reload ldr x0, [x8, _g@PAGEOFF] mov w1, #5 bl _sqlite3_db_status ldr w9, [sp, #136] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.207@PAGE add x0, x0, l_.str.207@PAGEOFF bl _printf ldr x8, [sp, #56] ; 8-byte Folded Reload ldr x2, [sp, #64] ; 8-byte Folded Reload ldr x3, [sp, #72] ; 8-byte Folded Reload ldr w4, [sp, #84] ; 4-byte Folded Reload ldr x0, [x8, _g@PAGEOFF] mov w1, #6 bl _sqlite3_db_status ldr w9, [sp, #136] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.208@PAGE add x0, x0, l_.str.208@PAGEOFF bl _printf ldr x8, [sp, #56] ; 8-byte Folded Reload ldr x2, [sp, #64] ; 8-byte Folded Reload ldr x3, [sp, #72] ; 8-byte Folded Reload ldr w4, [sp, #84] ; 4-byte Folded Reload ldr x0, [x8, _g@PAGEOFF] mov w1, #1 str w1, [sp, #52] ; 4-byte Folded Spill bl _sqlite3_db_status ldr w9, [sp, #140] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.209@PAGE add x0, x0, l_.str.209@PAGEOFF bl _printf ldr w4, [sp, #52] ; 4-byte Folded Reload ldr x8, [sp, #56] ; 8-byte Folded Reload ldr x2, [sp, #64] ; 8-byte Folded Reload ldr x3, [sp, #72] ; 8-byte Folded Reload ldr x0, [x8, _g@PAGEOFF] mov w1, #7 bl _sqlite3_db_status ldr w9, [sp, #140] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.210@PAGE add x0, x0, l_.str.210@PAGEOFF bl _printf ldr w4, [sp, #52] ; 4-byte Folded Reload ldr x8, [sp, #56] ; 8-byte Folded Reload ldr x2, [sp, #64] ; 8-byte Folded Reload ldr x3, [sp, #72] ; 8-byte Folded Reload ldr x0, [x8, _g@PAGEOFF] mov w1, #8 bl _sqlite3_db_status ldr w9, [sp, #140] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.211@PAGE add x0, x0, l_.str.211@PAGEOFF bl _printf ldr w4, [sp, #52] ; 4-byte Folded Reload ldr x8, [sp, #56] ; 8-byte Folded Reload ldr x2, [sp, #64] ; 8-byte Folded Reload ldr x3, [sp, #72] ; 8-byte Folded Reload ldr x0, [x8, _g@PAGEOFF] mov w1, #9 bl _sqlite3_db_status ldr w9, [sp, #140] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.212@PAGE add x0, x0, l_.str.212@PAGEOFF bl _printf ldr x8, [sp, #56] ; 8-byte Folded Reload ldr x2, [sp, #64] ; 8-byte Folded Reload ldr x3, [sp, #72] ; 8-byte Folded Reload ldr w4, [sp, #84] ; 4-byte Folded Reload ldr x0, [x8, _g@PAGEOFF] mov w1, #2 bl _sqlite3_db_status ldr w9, [sp, #140] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.213@PAGE add x0, x0, l_.str.213@PAGEOFF bl _printf ldr x8, [sp, #56] ; 8-byte Folded Reload ldr x2, [sp, #64] ; 8-byte Folded Reload ldr x3, [sp, #72] ; 8-byte Folded Reload ldr w4, [sp, #84] ; 4-byte Folded Reload ldr x0, [x8, _g@PAGEOFF] mov w1, #3 bl _sqlite3_db_status ldr w9, [sp, #140] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.214@PAGE add x0, x0, l_.str.214@PAGEOFF bl _printf b LBB19_190 LBB19_190: adrp x8, _g@PAGE ldr x0, [x8, _g@PAGEOFF] bl _sqlite3_close ldur w8, [x29, #-108] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB19_192 b LBB19_191 LBB19_191: mov w3, #0 str w3, [sp, #48] ; 4-byte Folded Spill mov x0, x3 add x1, sp, #140 str x1, [sp, #32] ; 8-byte Folded Spill add x2, sp, #136 str x2, [sp, #40] ; 8-byte Folded Spill bl _sqlite3_status ldr w8, [sp, #140] ; implicit-def: $x10 mov x10, x8 ldr w9, [sp, #136] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x0, l_.str.215@PAGE add x0, x0, l_.str.215@PAGEOFF bl _printf ldr x1, [sp, #32] ; 8-byte Folded Reload ldr x2, [sp, #40] ; 8-byte Folded Reload ldr w3, [sp, #48] ; 4-byte Folded Reload mov w0, #9 bl _sqlite3_status ldr w8, [sp, #140] ; implicit-def: $x10 mov x10, x8 ldr w9, [sp, #136] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x0, l_.str.216@PAGE add x0, x0, l_.str.216@PAGEOFF bl _printf ldr x1, [sp, #32] ; 8-byte Folded Reload ldr x2, [sp, #40] ; 8-byte Folded Reload ldr w3, [sp, #48] ; 4-byte Folded Reload mov w0, #2 bl _sqlite3_status ldr w8, [sp, #140] ; implicit-def: $x10 mov x10, x8 ldr w9, [sp, #136] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x0, l_.str.217@PAGE add x0, x0, l_.str.217@PAGEOFF bl _printf ldr x1, [sp, #32] ; 8-byte Folded Reload ldr x2, [sp, #40] ; 8-byte Folded Reload ldr w3, [sp, #48] ; 4-byte Folded Reload mov w0, #4 bl _sqlite3_status ldr w8, [sp, #140] ; implicit-def: $x10 mov x10, x8 ldr w9, [sp, #136] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x0, l_.str.218@PAGE add x0, x0, l_.str.218@PAGEOFF bl _printf ldr x1, [sp, #32] ; 8-byte Folded Reload ldr x2, [sp, #40] ; 8-byte Folded Reload ldr w3, [sp, #48] ; 4-byte Folded Reload mov w0, #5 bl _sqlite3_status ldr w9, [sp, #136] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.219@PAGE add x0, x0, l_.str.219@PAGEOFF bl _printf ldr x1, [sp, #32] ; 8-byte Folded Reload ldr x2, [sp, #40] ; 8-byte Folded Reload ldr w3, [sp, #48] ; 4-byte Folded Reload mov w0, #7 bl _sqlite3_status ldr w9, [sp, #136] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.220@PAGE add x0, x0, l_.str.220@PAGEOFF bl _printf ldr x1, [sp, #32] ; 8-byte Folded Reload ldr x2, [sp, #40] ; 8-byte Folded Reload ldr w3, [sp, #48] ; 4-byte Folded Reload mov w0, #8 bl _sqlite3_status ldr w9, [sp, #136] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.221@PAGE add x0, x0, l_.str.221@PAGEOFF bl _printf b LBB19_192 LBB19_192: ldr x0, [sp, #160] bl _free ldr x0, [sp, #152] bl _free ldr x0, [sp, #144] bl _free ldur x0, [x29, #-152] bl _free stur wzr, [x29, #-20] b LBB19_193 LBB19_193: ldur w0, [x29, #-20] ldp x29, x30, [sp, #320] ; 16-byte Folded Reload ldp x28, x27, [sp, #304] ; 16-byte Folded Reload add sp, sp, #336 ret .cfi_endproc .p2align 2 lJTI19_0: .long LBB19_5-Ltmp3 .long LBB19_6-Ltmp3 .long LBB19_7-Ltmp3 .long LBB19_8-Ltmp3 .long LBB19_9-Ltmp3 .long LBB19_10-Ltmp3 ; -- End function .p2align 2 ; -- Begin function integerValue _integerValue: ; @integerValue .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] stur xzr, [x29, #-16] str wzr, [sp, #24] ldur x8, [x29, #-8] ldrsb w8, [x8] subs w8, w8, #45 cset w8, ne tbnz w8, #0, LBB20_2 b LBB20_1 LBB20_1: mov w8, #1 str w8, [sp, #24] ldur x8, [x29, #-8] add x8, x8, #1 stur x8, [x29, #-8] b LBB20_5 LBB20_2: ldur x8, [x29, #-8] ldrsb w8, [x8] subs w8, w8, #43 cset w8, ne tbnz w8, #0, LBB20_4 b LBB20_3 LBB20_3: ldur x8, [x29, #-8] add x8, x8, #1 stur x8, [x29, #-8] b LBB20_4 LBB20_4: b LBB20_5 LBB20_5: ldur x8, [x29, #-8] ldrsb w8, [x8] subs w8, w8, #48 cset w8, ne tbnz w8, #0, LBB20_11 b LBB20_6 LBB20_6: ldur x8, [x29, #-8] ldrsb w8, [x8, #1] subs w8, w8, #120 cset w8, ne tbnz w8, #0, LBB20_11 b LBB20_7 LBB20_7: ldur x8, [x29, #-8] add x8, x8, #2 stur x8, [x29, #-8] b LBB20_8 LBB20_8: ; =>This Inner Loop Header: Depth=1 ldur x8, [x29, #-8] ldrsb w0, [x8] bl _hexDigitValue str w0, [sp, #20] subs w8, w0, #0 cset w8, lt tbnz w8, #0, LBB20_10 b LBB20_9 LBB20_9: ; in Loop: Header=BB20_8 Depth=1 ldur x9, [x29, #-16] ldrsw x8, [sp, #20] add x8, x8, x9, lsl #4 stur x8, [x29, #-16] ldur x8, [x29, #-8] add x8, x8, #1 stur x8, [x29, #-8] b LBB20_8 LBB20_10: b LBB20_15 LBB20_11: b LBB20_12 LBB20_12: ; =>This Inner Loop Header: Depth=1 ldur x8, [x29, #-8] ldrsb w0, [x8] bl _isdigit subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB20_14 b LBB20_13 LBB20_13: ; in Loop: Header=BB20_12 Depth=1 ldur x8, [x29, #-16] mov x9, #10 mul x8, x8, x9 ldur x9, [x29, #-8] ldrsb x9, [x9] add x8, x8, x9 subs x8, x8, #48 stur x8, [x29, #-16] ldur x8, [x29, #-8] add x8, x8, #1 stur x8, [x29, #-8] b LBB20_12 LBB20_14: b LBB20_15 LBB20_15: stur wzr, [x29, #-20] b LBB20_16 LBB20_16: ; =>This Inner Loop Header: Depth=1 ldursw x8, [x29, #-20] subs x8, x8, #9 cset w8, hs tbnz w8, #0, LBB20_21 b LBB20_17 LBB20_17: ; in Loop: Header=BB20_16 Depth=1 ldursw x8, [x29, #-20] lsl x9, x8, #4 adrp x8, _integerValue.aMult@PAGE add x8, x8, _integerValue.aMult@PAGEOFF ldr x0, [x8, x9] ldur x1, [x29, #-8] bl _sqlite3_stricmp subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB20_19 b LBB20_18 LBB20_18: ldursw x9, [x29, #-20] adrp x8, _integerValue.aMult@PAGE add x8, x8, _integerValue.aMult@PAGEOFF add x8, x8, x9, lsl #4 ldrsw x9, [x8, #8] ldur x8, [x29, #-16] mul x8, x8, x9 stur x8, [x29, #-16] b LBB20_21 LBB20_19: ; in Loop: Header=BB20_16 Depth=1 b LBB20_20 LBB20_20: ; in Loop: Header=BB20_16 Depth=1 ldur w8, [x29, #-20] add w8, w8, #1 stur w8, [x29, #-20] b LBB20_16 LBB20_21: ldur x8, [x29, #-16] mov x9, #2147483647 subs x8, x8, x9 cset w8, le tbnz w8, #0, LBB20_23 b LBB20_22 LBB20_22: adrp x0, l_.str.236@PAGE add x0, x0, l_.str.236@PAGEOFF bl _fatal_error b LBB20_23 LBB20_23: ldr w8, [sp, #24] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB20_25 b LBB20_24 LBB20_24: ldur x9, [x29, #-16] mov x8, #0 subs x8, x8, x9 str x8, [sp, #8] ; 8-byte Folded Spill b LBB20_26 LBB20_25: ldur x8, [x29, #-16] str x8, [sp, #8] ; 8-byte Folded Spill b LBB20_26 LBB20_26: ldr x8, [sp, #8] ; 8-byte Folded Reload mov x0, x8 ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function randomFunc1 _randomFunc1: ; @randomFunc1 .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] stur w1, [x29, #-12] str x2, [sp, #8] ldur x8, [x29, #-8] str x8, [sp] ; 8-byte Folded Spill bl _speedtest1_random mov x8, x0 ldr x0, [sp] ; 8-byte Folded Reload mov w8, w8 mov x1, x8 bl _sqlite3_result_int64 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function traceCallback _traceCallback: ; @traceCallback .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] stur x1, [x29, #-16] ldur x0, [x29, #-16] bl _strlen mov x8, x0 stur w8, [x29, #-20] b LBB22_1 LBB22_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-20] subs w8, w8, #0 cset w8, le mov w9, #0 str w9, [sp, #24] ; 4-byte Folded Spill tbnz w8, #0, LBB22_5 b LBB22_2 LBB22_2: ; in Loop: Header=BB22_1 Depth=1 ldur x8, [x29, #-16] ldur w9, [x29, #-20] subs w9, w9, #1 ldrsb w8, [x8, w9, sxtw] subs w8, w8, #59 cset w8, eq mov w9, #1 str w9, [sp, #20] ; 4-byte Folded Spill tbnz w8, #0, LBB22_4 b LBB22_3 LBB22_3: ; in Loop: Header=BB22_1 Depth=1 ldur x8, [x29, #-16] ldur w9, [x29, #-20] subs w9, w9, #1 ldrsb w0, [x8, w9, sxtw] bl _isspace subs w8, w0, #0 cset w8, ne str w8, [sp, #20] ; 4-byte Folded Spill b LBB22_4 LBB22_4: ; in Loop: Header=BB22_1 Depth=1 ldr w8, [sp, #20] ; 4-byte Folded Reload str w8, [sp, #24] ; 4-byte Folded Spill b LBB22_5 LBB22_5: ; in Loop: Header=BB22_1 Depth=1 ldr w8, [sp, #24] ; 4-byte Folded Reload tbz w8, #0, LBB22_7 b LBB22_6 LBB22_6: ; in Loop: Header=BB22_1 Depth=1 ldur w8, [x29, #-20] subs w8, w8, #1 stur w8, [x29, #-20] b LBB22_1 LBB22_7: adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] ldr x0, [x8] ldur w8, [x29, #-20] ; implicit-def: $x10 mov x10, x8 ldur x8, [x29, #-16] mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x1, l_.str.223@PAGE add x1, x1, l_.str.223@PAGEOFF bl _fprintf ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function hexDigitValue _hexDigitValue: ; @hexDigitValue .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 strb w0, [sp, #11] ldrsb w8, [sp, #11] subs w8, w8, #48 cset w8, lt tbnz w8, #0, LBB23_3 b LBB23_1 LBB23_1: ldrsb w8, [sp, #11] subs w8, w8, #57 cset w8, gt tbnz w8, #0, LBB23_3 b LBB23_2 LBB23_2: ldrsb w8, [sp, #11] subs w8, w8, #48 str w8, [sp, #12] b LBB23_10 LBB23_3: ldrsb w8, [sp, #11] subs w8, w8, #97 cset w8, lt tbnz w8, #0, LBB23_6 b LBB23_4 LBB23_4: ldrsb w8, [sp, #11] subs w8, w8, #102 cset w8, gt tbnz w8, #0, LBB23_6 b LBB23_5 LBB23_5: ldrsb w8, [sp, #11] subs w8, w8, #97 add w8, w8, #10 str w8, [sp, #12] b LBB23_10 LBB23_6: ldrsb w8, [sp, #11] subs w8, w8, #65 cset w8, lt tbnz w8, #0, LBB23_9 b LBB23_7 LBB23_7: ldrsb w8, [sp, #11] subs w8, w8, #70 cset w8, gt tbnz w8, #0, LBB23_9 b LBB23_8 LBB23_8: ldrsb w8, [sp, #11] subs w8, w8, #65 add w8, w8, #10 str w8, [sp, #12] b LBB23_10 LBB23_9: mov w8, #-1 str w8, [sp, #12] b LBB23_10 LBB23_10: ldr w0, [sp, #12] add sp, sp, #16 ret .cfi_endproc ; -- End function .zerofill __DATA,__bss,_speedtest1_timestamp.clockVfs,8,3 ; @speedtest1_timestamp.clockVfs .zerofill __DATA,__bss,_g,3096,3 ; @g .section __DATA,__data .p2align 3 ; @speedtest1_numbername.ones _speedtest1_numbername.ones: .quad l_.str .quad l_.str.1 .quad l_.str.2 .quad l_.str.3 .quad l_.str.4 .quad l_.str.5 .quad l_.str.6 .quad l_.str.7 .quad l_.str.8 .quad l_.str.9 .quad l_.str.10 .quad l_.str.11 .quad l_.str.12 .quad l_.str.13 .quad l_.str.14 .quad l_.str.15 .quad l_.str.16 .quad l_.str.17 .quad l_.str.18 .quad l_.str.19 .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "zero" l_.str.1: ; @.str.1 .asciz "one" l_.str.2: ; @.str.2 .asciz "two" l_.str.3: ; @.str.3 .asciz "three" l_.str.4: ; @.str.4 .asciz "four" l_.str.5: ; @.str.5 .asciz "five" l_.str.6: ; @.str.6 .asciz "six" l_.str.7: ; @.str.7 .asciz "seven" l_.str.8: ; @.str.8 .asciz "eight" l_.str.9: ; @.str.9 .asciz "nine" l_.str.10: ; @.str.10 .asciz "ten" l_.str.11: ; @.str.11 .asciz "eleven" l_.str.12: ; @.str.12 .asciz "twelve" l_.str.13: ; @.str.13 .asciz "thirteen" l_.str.14: ; @.str.14 .asciz "fourteen" l_.str.15: ; @.str.15 .asciz "fifteen" l_.str.16: ; @.str.16 .asciz "sixteen" l_.str.17: ; @.str.17 .asciz "seventeen" l_.str.18: ; @.str.18 .asciz "eighteen" l_.str.19: ; @.str.19 .asciz "nineteen" .section __DATA,__data .p2align 3 ; @speedtest1_numbername.tens _speedtest1_numbername.tens: .quad l_.str.20 .quad l_.str.10 .quad l_.str.21 .quad l_.str.22 .quad l_.str.23 .quad l_.str.24 .quad l_.str.25 .quad l_.str.26 .quad l_.str.27 .quad l_.str.28 .section __TEXT,__cstring,cstring_literals l_.str.20: ; @.str.20 .space 1 l_.str.21: ; @.str.21 .asciz "twenty" l_.str.22: ; @.str.22 .asciz "thirty" l_.str.23: ; @.str.23 .asciz "forty" l_.str.24: ; @.str.24 .asciz "fifty" l_.str.25: ; @.str.25 .asciz "sixty" l_.str.26: ; @.str.26 .asciz "seventy" l_.str.27: ; @.str.27 .asciz "eighty" l_.str.28: ; @.str.28 .asciz "ninety" l_.str.29: ; @.str.29 .asciz " billion" l_.str.30: ; @.str.30 .asciz " million" l_.str.31: ; @.str.31 .asciz " thousand" l_.str.32: ; @.str.32 .asciz "%s hundred" l_.str.33: ; @.str.33 .asciz "%s" l_.str.34: ; @.str.34 .asciz "/* %4d - %s%.*s */\n" .section __TEXT,__const _zDots: ; @zDots .asciz "......................................................................." .section __TEXT,__cstring,cstring_literals l_.str.35: ; @.str.35 .asciz "%4d - %s%.*s " l_.str.36: ; @.str.36 .asciz "%4d.%03ds\n" l_.str.37: ; @.str.37 .asciz " TOTAL%.*s %4d.%03ds\n" l_.str.38: ; @.str.38 .asciz "SQL error: %s\n%s\n" l_.str.39: ; @.str.39 .asciz "exec error: %s\n" l_.str.40: ; @.str.40 .asciz "SQL error: %s\n" l___func__.speedtest1_execute: ; @__func__.speedtest1_execute .asciz "speedtest1_execute" l_.str.41: ; @.str.41 .asciz "29911.c" l_.str.42: ; @.str.42 .asciz "g.pStmt" l_.str.43: ; @.str.43 .asciz "nil" l_.str.44: ; @.str.44 .asciz "%d INSERTs into table with no index" l_.str.45: ; @.str.45 .asciz "BEGIN" l_.str.46: ; @.str.46 .asciz "CREATE TABLE t1(a INTEGER %s, b INTEGER %s, c TEXT %s);" l_.str.47: ; @.str.47 .asciz "INSERT INTO t1 VALUES(?1,?2,?3); -- %d times" l_.str.48: ; @.str.48 .asciz "COMMIT" l_.str.49: ; @.str.49 .asciz "%d ordered INSERTS with one index/PK" l_.str.50: ; @.str.50 .asciz "CREATE TABLE t2(a INTEGER %s %s, b INTEGER %s, c TEXT %s) %s" l_.str.51: ; @.str.51 .asciz "INSERT INTO t2 VALUES(?1,?2,?3); -- %d times" l_.str.52: ; @.str.52 .asciz "%d unordered INSERTS with one index/PK" l_.str.53: ; @.str.53 .asciz "CREATE TABLE t3(a INTEGER %s %s, b INTEGER %s, c TEXT %s) %s" l_.str.54: ; @.str.54 .asciz "INSERT INTO t3 VALUES(?1,?2,?3); -- %d times" l_.str.55: ; @.str.55 .asciz "%d SELECTS, numeric BETWEEN, unindexed" l_.str.56: ; @.str.56 .asciz "SELECT count(*), avg(b), sum(length(c)) FROM t1\n WHERE b BETWEEN ?1 AND ?2; -- %d times" l_.str.57: ; @.str.57 .asciz "%d SELECTS, LIKE, unindexed" l_.str.58: ; @.str.58 .asciz "SELECT count(*), avg(b), sum(length(c)) FROM t1\n WHERE c LIKE ?1; -- %d times" l_.str.59: ; @.str.59 .asciz "%d SELECTS w/ORDER BY, unindexed" l_.str.60: ; @.str.60 .asciz "SELECT a, b, c FROM t1 WHERE c LIKE ?1\n ORDER BY a; -- %d times" l_.str.61: ; @.str.61 .asciz "%d SELECTS w/ORDER BY and LIMIT, unindexed" l_.str.62: ; @.str.62 .asciz "SELECT a, b, c FROM t1 WHERE c LIKE ?1\n ORDER BY a LIMIT 10; -- %d times" l_.str.63: ; @.str.63 .asciz "CREATE INDEX five times" l_.str.64: ; @.str.64 .asciz "BEGIN;" l_.str.65: ; @.str.65 .asciz "CREATE UNIQUE INDEX t1b ON t1(b);" l_.str.66: ; @.str.66 .asciz "CREATE INDEX t1c ON t1(c);" l_.str.67: ; @.str.67 .asciz "CREATE UNIQUE INDEX t2b ON t2(b);" l_.str.68: ; @.str.68 .asciz "CREATE INDEX t2c ON t2(c DESC);" l_.str.69: ; @.str.69 .asciz "CREATE INDEX t3bc ON t3(b,c);" l_.str.70: ; @.str.70 .asciz "COMMIT;" l_.str.71: ; @.str.71 .asciz "%d SELECTS, numeric BETWEEN, indexed" l_.str.72: ; @.str.72 .asciz "%d SELECTS, numeric BETWEEN, PK" l_.str.73: ; @.str.73 .asciz "SELECT count(*), avg(b), sum(length(c)) FROM t2\n WHERE a BETWEEN ?1 AND ?2; -- %d times" l_.str.74: ; @.str.74 .asciz "%d SELECTS, text BETWEEN, indexed" l_.str.75: ; @.str.75 .asciz "SELECT count(*), avg(b), sum(length(c)) FROM t1\n WHERE c BETWEEN ?1 AND (?1||'~'); -- %d times" l_.str.76: ; @.str.76 .asciz "%d INSERTS with three indexes" l_.str.77: ; @.str.77 .asciz "CREATE TABLE t4(\n a INTEGER %s %s,\n b INTEGER %s,\n c TEXT %s\n) %s" l_.str.78: ; @.str.78 .asciz "CREATE INDEX t4b ON t4(b)" l_.str.79: ; @.str.79 .asciz "CREATE INDEX t4c ON t4(c)" l_.str.80: ; @.str.80 .asciz "INSERT INTO t4 SELECT * FROM t1" l_.str.81: ; @.str.81 .asciz "DELETE and REFILL one table" l_.str.82: ; @.str.82 .asciz "DELETE FROM t2;" l_.str.83: ; @.str.83 .asciz "INSERT INTO t2 SELECT * FROM t1;" l_.str.84: ; @.str.84 .asciz "VACUUM" l_.str.85: ; @.str.85 .asciz "ALTER TABLE ADD COLUMN, and query" l_.str.86: ; @.str.86 .asciz "ALTER TABLE t2 ADD COLUMN d DEFAULT 123" l_.str.87: ; @.str.87 .asciz "SELECT sum(d) FROM t2" l_.str.88: ; @.str.88 .asciz "%d UPDATES, numeric BETWEEN, indexed" l_.str.89: ; @.str.89 .asciz "UPDATE t2 SET d=b*2 WHERE b BETWEEN ?1 AND ?2; -- %d times" l_.str.90: ; @.str.90 .asciz "%d UPDATES of individual rows" l_.str.91: ; @.str.91 .asciz "UPDATE t2 SET d=b*3 WHERE a=?1; -- %d times" l_.str.92: ; @.str.92 .asciz "One big UPDATE of the whole %d-row table" l_.str.93: ; @.str.93 .asciz "UPDATE t2 SET d=b*4" l_.str.94: ; @.str.94 .asciz "Query added column after filling" l_.str.95: ; @.str.95 .asciz "%d DELETEs, numeric BETWEEN, indexed" l_.str.96: ; @.str.96 .asciz "DELETE FROM t2 WHERE b BETWEEN ?1 AND ?2; -- %d times" l_.str.97: ; @.str.97 .asciz "%d DELETEs of individual rows" l_.str.98: ; @.str.98 .asciz "DELETE FROM t3 WHERE a=?1; -- %d times" l_.str.99: ; @.str.99 .asciz "Refill two %d-row tables using REPLACE" l_.str.100: ; @.str.100 .asciz "REPLACE INTO t2(a,b,c) SELECT a,b,c FROM t1" l_.str.101: ; @.str.101 .asciz "REPLACE INTO t3(a,b,c) SELECT a,b,c FROM t1" l_.str.102: ; @.str.102 .asciz "Refill a %d-row table using (b&1)==(a&1)" l_.str.103: ; @.str.103 .asciz "INSERT INTO t2(a,b,c)\n SELECT a,b,c FROM t1 WHERE (b&1)==(a&1);" l_.str.104: ; @.str.104 .asciz "INSERT INTO t2(a,b,c)\n SELECT a,b,c FROM t1 WHERE (b&1)<>(a&1);" l_.str.105: ; @.str.105 .asciz "%d four-ways joins" l_.str.106: ; @.str.106 .asciz "SELECT t1.c FROM t1, t2, t3, t4\n WHERE t4.a BETWEEN ?1 AND ?2\n AND t3.a=t4.b\n AND t2.a=t3.b\n AND t1.c=t2.c" l_.str.107: ; @.str.107 .asciz "subquery in result set" l_.str.108: ; @.str.108 .asciz "SELECT sum(a), max(c),\n avg((SELECT a FROM t2 WHERE 5+t2.b=t1.b) AND rowid<?1), max(c)\n FROM t1 WHERE rowid<?1;" l_.str.109: ; @.str.109 .asciz "PRAGMA integrity_check" l_.str.110: ; @.str.110 .asciz "ANALYZE" .section __DATA,__data .p2align 3 ; @testset_cte.azPuzzle _testset_cte.azPuzzle: .quad l_.str.111 .quad l_.str.112 .quad l_.str.113 .section __TEXT,__cstring,cstring_literals l_.str.111: ; @.str.111 .asciz "534...9..67.195....98....6.8...6...34..8.3..1....2...6.6....28....419..5...28..79" l_.str.112: ; @.str.112 .asciz "53....9..6..195....98....6.8...6...34..8.3..1....2...6.6....28....419..5....8..79" l_.str.113: ; @.str.113 .asciz "53.......6..195....98....6.8...6...34..8.3..1....2...6.6....28....419..5....8..79" l_.str.114: ; @.str.114 .asciz "Sudoku with recursive 'digits'" l_.str.115: ; @.str.115 .asciz "WITH RECURSIVE\n input(sud) AS (VALUES(?1)),\n digits(z,lp) AS (\n VALUES('1', 1)\n UNION ALL\n SELECT CAST(lp+1 AS TEXT), lp+1 FROM digits WHERE lp<9\n ),\n x(s, ind) AS (\n SELECT sud, instr(sud, '.') FROM input\n UNION ALL\n SELECT\n substr(s, 1, ind-1) || z || substr(s, ind+1),\n instr( substr(s, 1, ind-1) || z || substr(s, ind+1), '.' )\n FROM x, digits AS z\n WHERE ind>0\n AND NOT EXISTS (\n SELECT 1\n FROM digits AS lp\n WHERE z.z = substr(s, ((ind-1)/9)*9 + lp, 1)\n OR z.z = substr(s, ((ind-1)%%9) + (lp-1)*9 + 1, 1)\n OR z.z = substr(s, (((ind-1)/3) %% 3) * 3\n + ((ind-1)/27) * 27 + lp\n + ((lp-1) / 3) * 6, 1)\n )\n )\nSELECT s FROM x WHERE ind=0;" l_.str.116: ; @.str.116 .asciz "Sudoku with VALUES 'digits'" l_.str.117: ; @.str.117 .asciz "WITH RECURSIVE\n input(sud) AS (VALUES(?1)),\n digits(z,lp) AS (VALUES('1',1),('2',2),('3',3),('4',4),('5',5),\n ('6',6),('7',7),('8',8),('9',9)),\n x(s, ind) AS (\n SELECT sud, instr(sud, '.') FROM input\n UNION ALL\n SELECT\n substr(s, 1, ind-1) || z || substr(s, ind+1),\n instr( substr(s, 1, ind-1) || z || substr(s, ind+1), '.' )\n FROM x, digits AS z\n WHERE ind>0\n AND NOT EXISTS (\n SELECT 1\n FROM digits AS lp\n WHERE z.z = substr(s, ((ind-1)/9)*9 + lp, 1)\n OR z.z = substr(s, ((ind-1)%%9) + (lp-1)*9 + 1, 1)\n OR z.z = substr(s, (((ind-1)/3) %% 3) * 3\n + ((ind-1)/27) * 27 + lp\n + ((lp-1) / 3) * 6, 1)\n )\n )\nSELECT s FROM x WHERE ind=0;" l_.str.118: ; @.str.118 .asciz "Mandelbrot Set with spacing=%f" l_.str.119: ; @.str.119 .asciz "WITH RECURSIVE \n xaxis(x) AS (VALUES(-2.0) UNION ALL SELECT x+?1 FROM xaxis WHERE x<1.2),\n yaxis(y) AS (VALUES(-1.0) UNION ALL SELECT y+?2 FROM yaxis WHERE y<1.0),\n m(iter, cx, cy, x, y) AS (\n SELECT 0, x, y, 0.0, 0.0 FROM xaxis, yaxis\n UNION ALL\n SELECT iter+1, cx, cy, x*x-y*y + cx, 2.0*x*y + cy FROM m \n WHERE (x*x + y*y) < 4.0 AND iter<28\n ),\n m2(iter, cx, cy) AS (\n SELECT max(iter), cx, cy FROM m GROUP BY cx, cy\n ),\n a(t) AS (\n SELECT group_concat( substr(' .+*#', 1+min(iter/7,4), 1), '') \n FROM m2 GROUP BY cy\n )\nSELECT group_concat(rtrim(t),x'0a') FROM a;" l_.str.120: ; @.str.120 .asciz "EXCEPT operator on %d-element tables" l_.str.121: ; @.str.121 .asciz "WITH RECURSIVE \n t1(x) AS (VALUES(2) UNION ALL SELECT x+2 FROM t1 WHERE x<%d),\n t2(y) AS (VALUES(3) UNION ALL SELECT y+3 FROM t2 WHERE y<%d)\nSELECT count(x), avg(x) FROM (\n SELECT x FROM t1 EXCEPT SELECT y FROM t2 ORDER BY 1\n);" l_.str.122: ; @.str.122 .asciz "%d INSERTs into an r-tree" l_.str.123: ; @.str.123 .asciz "CREATE VIRTUAL TABLE rt1 USING rtree(id,x0,x1,y0,y1,z0,z1)" l_.str.124: ; @.str.124 .asciz "INSERT INTO rt1(id,x0,x1,y0,y1,z0,z1)VALUES(?1,?2,?3,?4,?5,?6,?7)" l_.str.125: ; @.str.125 .asciz "Copy from rtree to a regular table" l_.str.126: ; @.str.126 .asciz "CREATE TABLE t1(id INTEGER PRIMARY KEY,x0,x1,y0,y1,z0,z1)" l_.str.127: ; @.str.127 .asciz "INSERT INTO t1 SELECT * FROM rt1" l_.str.128: ; @.str.128 .asciz "%d one-dimensional intersect slice queries" l_.str.129: ; @.str.129 .asciz "SELECT count(*) FROM rt1 WHERE x0>=?1 AND x1<=?2" l_.str.130: ; @.str.130 .asciz "Verify result from 1-D intersect slice queries" l_.str.131: ; @.str.131 .asciz "SELECT count(*) FROM t1 WHERE x0>=?1 AND x1<=?2" l_.str.132: ; @.str.132 .asciz "Count disagree step %d: %d..%d. %d vs %d" l_.str.133: ; @.str.133 .asciz "%d one-dimensional overlap slice queries" l_.str.134: ; @.str.134 .asciz "SELECT count(*) FROM rt1 WHERE y1>=?1 AND y0<=?2" l_.str.135: ; @.str.135 .asciz "Verify result from 1-D overlap slice queries" l_.str.136: ; @.str.136 .asciz "SELECT count(*) FROM t1 WHERE y1>=?1 AND y0<=?2" l_.str.137: ; @.str.137 .asciz "%d custom geometry callback queries" l_.str.138: ; @.str.138 .asciz "SELECT count(*) FROM rt1 WHERE id MATCH xslice(?1,?2)" l_.str.139: ; @.str.139 .asciz "%d three-dimensional intersect box queries" l_.str.140: ; @.str.140 .asciz "SELECT count(*) FROM rt1 WHERE x1>=?1 AND x0<=?2 AND y1>=?1 AND y0<=?2 AND z1>=?1 AND z0<=?2" l_.str.141: ; @.str.141 .asciz "%d rowid queries" l_.str.142: ; @.str.142 .asciz "SELECT * FROM rt1 WHERE id=?1" l_.str.143: ; @.str.143 .asciz "%5d %5d %5d %s\n" l_.str.144: ; @.str.144 .asciz "main" l_.str.145: ; @.str.145 .asciz "UNIQUE" l_.str.146: ; @.str.146 .asciz "error: %d\\n" l_.str.147: ; @.str.147 .asciz "autovacuum" l_.str.148: ; @.str.148 .asciz "cachesize" l_.str.149: ; @.str.149 .asciz "missing argument on %s\n" l_.str.150: ; @.str.150 .asciz "exclusive" l_.str.151: ; @.str.151 .asciz "explain" l_.str.152: ; @.str.152 .asciz "heap" l_.str.153: ; @.str.153 .asciz "missing arguments on %s\n" l_.str.154: ; @.str.154 .asciz "incrvacuum" l_.str.155: ; @.str.155 .asciz "journal" l_.str.156: ; @.str.156 .asciz "key" l_.str.157: ; @.str.157 .asciz "lookaside" l_.str.158: ; @.str.158 .asciz "nosync" l_.str.159: ; @.str.159 .asciz "notnull" l_.str.160: ; @.str.160 .asciz "NOT NULL" l_.str.161: ; @.str.161 .asciz "pagesize" l_.str.162: ; @.str.162 .asciz "pcache" l_.str.163: ; @.str.163 .asciz "primarykey" l_.str.164: ; @.str.164 .asciz "PRIMARY KEY" l_.str.165: ; @.str.165 .asciz "reprepare" l_.str.166: ; @.str.166 .asciz "scratch" l_.str.167: ; @.str.167 .asciz "sqlonly" l_.str.168: ; @.str.168 .asciz "size" l_.str.169: ; @.str.169 .asciz "stats" l_.str.170: ; @.str.170 .asciz "testset" l_.str.171: ; @.str.171 .asciz "trace" l_.str.172: ; @.str.172 .asciz "utf16le" l_.str.173: ; @.str.173 .asciz "utf16be" l_.str.174: ; @.str.174 .asciz "verify" l_.str.175: ; @.str.175 .asciz "without-rowid" l_.str.176: ; @.str.176 .asciz "WITHOUT ROWID" l_.str.177: ; @.str.177 .asciz "help" l_.str.178: ; @.str.178 .asciz "?" .section __TEXT,__const _zHelp: ; @zHelp .asciz "Usage: %s [--options] DATABASE\nOptions:\n --autovacuum Enable AUTOVACUUM mode\n --cachesize N Set the cache size to N\n --exclusive Enable locking_mode=EXCLUSIVE\n --explain Like --sqlonly but with added EXPLAIN keywords\n --heap SZ MIN Memory allocator uses SZ bytes & min allocation MIN\n --incrvacuum Enable incremenatal vacuum mode\n --journalmode M Set the journal_mode to MODE\n --key KEY Set the encryption key to KEY\n --lookaside N SZ Configure lookaside for N slots of SZ bytes each\n --nosync Set PRAGMA synchronous=OFF\n --notnull Add NOT NULL constraints to table columns\n --pagesize N Set the page size to N\n --pcache N SZ Configure N pages of pagecache each of size SZ bytes\n --primarykey Use PRIMARY KEY instead of UNIQUE where appropriate\n --reprepare Reprepare each statement upon every invocation\n --scratch N SZ Configure scratch memory for N slots of SZ bytes each\n --sqlonly No-op. Only show the SQL that would have been run.\n --size N Relative test size. Default=100\n --stats Show statistics at the end\n --testset T Run test-set T\n --trace Turn on SQL tracing\n --utf16be Set text encoding to UTF-16BE\n --utf16le Set text encoding to UTF-16LE\n --verify Run additional verification steps.\n --without-rowid Use WITHOUT ROWID where appropriate\n" .section __TEXT,__cstring,cstring_literals l_.str.179: ; @.str.179 .asciz "unknown option: %s\nUse \"%s -?\" for help\n" l_.str.180: ; @.str.180 .asciz "surplus argument: %s\nUse \"%s -?\" for help\n" l_.str.181: ; @.str.181 .asciz "cannot allocate %d-byte heap\n" l_.str.182: ; @.str.182 .asciz "heap configuration failed: %d\n" l_.str.183: ; @.str.183 .asciz "cannot allocate %lld-byte pcache\n" l_.str.184: ; @.str.184 .asciz "pcache configuration failed: %d\n" l_.str.185: ; @.str.185 .asciz "cannot allocate %lld-byte scratch\n" l_.str.186: ; @.str.186 .asciz "scratch configuration failed: %d\n" l_.str.187: ; @.str.187 .asciz ":memory:" l_.str.188: ; @.str.188 .asciz "Cannot open database file: %s\n" l_.str.189: ; @.str.189 .asciz "lookaside configuration failed: %d\n" l_.str.190: ; @.str.190 .asciz "random" l_.str.191: ; @.str.191 .asciz "PRAGMA key('%s')" l_.str.192: ; @.str.192 .asciz "PRAGMA encoding=%s" l_.str.193: ; @.str.193 .asciz "PRAGMA auto_vacuum=FULL" l_.str.194: ; @.str.194 .asciz "PRAGMA auto_vacuum=INCREMENTAL" l_.str.195: ; @.str.195 .asciz "PRAGMA page_size=%d" l_.str.196: ; @.str.196 .asciz "PRAGMA cache_size=%d" l_.str.197: ; @.str.197 .asciz "PRAGMA synchronous=OFF" l_.str.198: ; @.str.198 .asciz "PRAGMA locking_mode=EXCLUSIVE" l_.str.199: ; @.str.199 .asciz "PRAGMA journal_mode=%s" l_.str.200: ; @.str.200 .asciz ".explain\n.echo on\n" l_.str.201: ; @.str.201 .asciz "debug1" l_.str.202: ; @.str.202 .asciz "cte" l_.str.203: ; @.str.203 .asciz "rtree" l_.str.204: ; @.str.204 .asciz "unknown testset: \"%s\"\nChoices: main debug1 cte rtree\n" l_.str.205: ; @.str.205 .asciz "-- Lookaside Slots Used: %d (max %d)\n" l_.str.206: ; @.str.206 .asciz "-- Successful lookasides: %d\n" l_.str.207: ; @.str.207 .asciz "-- Lookaside size faults: %d\n" l_.str.208: ; @.str.208 .asciz "-- Lookaside OOM faults: %d\n" l_.str.209: ; @.str.209 .asciz "-- Pager Heap Usage: %d bytes\n" l_.str.210: ; @.str.210 .asciz "-- Page cache hits: %d\n" l_.str.211: ; @.str.211 .asciz "-- Page cache misses: %d\n" l_.str.212: ; @.str.212 .asciz "-- Page cache writes: %d\n" l_.str.213: ; @.str.213 .asciz "-- Schema Heap Usage: %d bytes\n" l_.str.214: ; @.str.214 .asciz "-- Statement Heap Usage: %d bytes\n" l_.str.215: ; @.str.215 .asciz "-- Memory Used (bytes): %d (max %d)\n" l_.str.216: ; @.str.216 .asciz "-- Outstanding Allocations: %d (max %d)\n" l_.str.217: ; @.str.217 .asciz "-- Pcache Overflow Bytes: %d (max %d)\n" l_.str.218: ; @.str.218 .asciz "-- Scratch Overflow Bytes: %d (max %d)\n" l_.str.219: ; @.str.219 .asciz "-- Largest Allocation: %d bytes\n" l_.str.220: ; @.str.220 .asciz "-- Largest Pcache Allocation: %d bytes\n" l_.str.221: ; @.str.221 .asciz "-- Largest Scratch Allocation: %d bytes\n" l_.str.222: ; @.str.222 .asciz "EXPLAIN " l_.str.223: ; @.str.223 .asciz "%.*s;\n" l_.str.224: ; @.str.224 .asciz "CREATE *" l_.str.225: ; @.str.225 .asciz "DROP *" l_.str.226: ; @.str.226 .asciz "ALTER *" .section __DATA,__const .p2align 3 ; @integerValue.aMult _integerValue.aMult: .quad l_.str.227 .long 1024 ; 0x400 .space 4 .quad l_.str.228 .long 1048576 ; 0x100000 .space 4 .quad l_.str.229 .long 1073741824 ; 0x40000000 .space 4 .quad l_.str.230 .long 1000 ; 0x3e8 .space 4 .quad l_.str.231 .long 1000000 ; 0xf4240 .space 4 .quad l_.str.232 .long 1000000000 ; 0x3b9aca00 .space 4 .quad l_.str.233 .long 1000 ; 0x3e8 .space 4 .quad l_.str.234 .long 1000000 ; 0xf4240 .space 4 .quad l_.str.235 .long 1000000000 ; 0x3b9aca00 .space 4 .section __TEXT,__cstring,cstring_literals l_.str.227: ; @.str.227 .asciz "KiB" l_.str.228: ; @.str.228 .asciz "MiB" l_.str.229: ; @.str.229 .asciz "GiB" l_.str.230: ; @.str.230 .asciz "KB" l_.str.231: ; @.str.231 .asciz "MB" l_.str.232: ; @.str.232 .asciz "GB" l_.str.233: ; @.str.233 .asciz "K" l_.str.234: ; @.str.234 .asciz "M" l_.str.235: ; @.str.235 .asciz "G" l_.str.236: ; @.str.236 .asciz "parameter too large - max 2147483648" .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 speedtest1_timestamp LCPI0_0: .quad 0x4194997000000000 ## double 8.64E+7 .section __TEXT,__text,regular,pure_instructions .globl _speedtest1_timestamp .p2align 4, 0x90 _speedtest1_timestamp: ## @speedtest1_timestamp .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp cmpq $0, _speedtest1_timestamp.clockVfs(%rip) jne LBB0_2 ## %bb.1: xorl %eax, %eax movl %eax, %edi callq _sqlite3_vfs_find movq %rax, _speedtest1_timestamp.clockVfs(%rip) LBB0_2: movq _speedtest1_timestamp.clockVfs(%rip), %rax cmpl $2, (%rax) jl LBB0_5 ## %bb.3: movq _speedtest1_timestamp.clockVfs(%rip), %rax cmpq $0, 136(%rax) je LBB0_5 ## %bb.4: movq _speedtest1_timestamp.clockVfs(%rip), %rax movq 136(%rax), %rax movq _speedtest1_timestamp.clockVfs(%rip), %rdi leaq -8(%rbp), %rsi callq *%rax jmp LBB0_6 LBB0_5: movq _speedtest1_timestamp.clockVfs(%rip), %rax movq 120(%rax), %rax movq _speedtest1_timestamp.clockVfs(%rip), %rdi leaq -16(%rbp), %rsi callq *%rax movsd LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero mulsd -16(%rbp), %xmm0 cvttsd2si %xmm0, %rax movq %rax, -8(%rbp) LBB0_6: movq -8(%rbp), %rax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _speedtest1_random ## -- Begin function speedtest1_random .p2align 4, 0x90 _speedtest1_random: ## @speedtest1_random .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl _g+80(%rip), %eax shrl $1, %eax movl _g+80(%rip), %ecx andl $1, %ecx xorl $-1, %ecx addl $1, %ecx andl $-805306367, %ecx ## imm = 0xD0000001 xorl %ecx, %eax movl %eax, _g+80(%rip) imull $1103515245, _g+84(%rip), %eax ## imm = 0x41C64E6D addl $12345, %eax ## imm = 0x3039 movl %eax, _g+84(%rip) movl _g+80(%rip), %eax xorl _g+84(%rip), %eax popq %rbp retq .cfi_endproc ## -- End function .globl _swizzle ## -- Begin function swizzle .p2align 4, 0x90 _swizzle: ## @swizzle .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, -4(%rbp) movl %esi, -8(%rbp) movl $0, -12(%rbp) LBB2_1: ## =>This Inner Loop Header: Depth=1 cmpl $0, -8(%rbp) je LBB2_3 ## %bb.2: ## in Loop: Header=BB2_1 Depth=1 movl -12(%rbp), %eax shll $1, %eax movl -4(%rbp), %ecx andl $1, %ecx orl %ecx, %eax movl %eax, -12(%rbp) movl -4(%rbp), %eax shrl $1, %eax movl %eax, -4(%rbp) movl -8(%rbp), %eax shrl $1, %eax movl %eax, -8(%rbp) jmp LBB2_1 LBB2_3: movl -12(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .globl _roundup_allones ## -- Begin function roundup_allones .p2align 4, 0x90 _roundup_allones: ## @roundup_allones .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) LBB3_1: ## =>This Inner Loop Header: Depth=1 movl -8(%rbp), %eax cmpl -4(%rbp), %eax jae LBB3_3 ## %bb.2: ## in Loop: Header=BB3_1 Depth=1 movl -8(%rbp), %eax shll $1, %eax addl $1, %eax movl %eax, -8(%rbp) jmp LBB3_1 LBB3_3: movl -8(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .globl _speedtest1_numbername ## -- Begin function speedtest1_numbername .p2align 4, 0x90 _speedtest1_numbername: ## @speedtest1_numbername .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl %edi, -4(%rbp) movq %rsi, -16(%rbp) movl %edx, -20(%rbp) movl $0, -24(%rbp) cmpl $1000000000, -4(%rbp) ## imm = 0x3B9ACA00 jb LBB4_2 ## %bb.1: movl -4(%rbp), %eax movl $1000000000, %ecx ## imm = 0x3B9ACA00 xorl %edx, %edx divl %ecx movl %eax, %edi movq -16(%rbp), %rsi movslq -24(%rbp), %rax addq %rax, %rsi movl -20(%rbp), %edx subl -24(%rbp), %edx callq _speedtest1_numbername addl -24(%rbp), %eax movl %eax, -24(%rbp) movl -20(%rbp), %edi subl -24(%rbp), %edi movq -16(%rbp), %rsi movslq -24(%rbp), %rax addq %rax, %rsi leaq L_.str.29(%rip), %rdx movb $0, %al callq _sqlite3_snprintf movq -16(%rbp), %rdi movslq -24(%rbp), %rax addq %rax, %rdi callq _strlen ## kill: def $eax killed $eax killed $rax addl -24(%rbp), %eax movl %eax, -24(%rbp) movl -4(%rbp), %eax movl $1000000000, %ecx ## imm = 0x3B9ACA00 xorl %edx, %edx divl %ecx movl %edx, -4(%rbp) LBB4_2: cmpl $1000000, -4(%rbp) ## imm = 0xF4240 jb LBB4_7 ## %bb.3: cmpl $0, -24(%rbp) je LBB4_6 ## %bb.4: movl -24(%rbp), %eax movl -20(%rbp), %ecx subl $1, %ecx cmpl %ecx, %eax jge LBB4_6 ## %bb.5: movq -16(%rbp), %rax movl -24(%rbp), %ecx movl %ecx, %edx addl $1, %edx movl %edx, -24(%rbp) movslq %ecx, %rcx movb $32, (%rax,%rcx) LBB4_6: movl -4(%rbp), %eax movl $1000000, %ecx ## imm = 0xF4240 xorl %edx, %edx divl %ecx movl %eax, %edi movq -16(%rbp), %rsi movslq -24(%rbp), %rax addq %rax, %rsi movl -20(%rbp), %edx subl -24(%rbp), %edx callq _speedtest1_numbername addl -24(%rbp), %eax movl %eax, -24(%rbp) movl -20(%rbp), %edi subl -24(%rbp), %edi movq -16(%rbp), %rsi movslq -24(%rbp), %rax addq %rax, %rsi leaq L_.str.30(%rip), %rdx movb $0, %al callq _sqlite3_snprintf movq -16(%rbp), %rdi movslq -24(%rbp), %rax addq %rax, %rdi callq _strlen ## kill: def $eax killed $eax killed $rax addl -24(%rbp), %eax movl %eax, -24(%rbp) movl -4(%rbp), %eax movl $1000000, %ecx ## imm = 0xF4240 xorl %edx, %edx divl %ecx movl %edx, -4(%rbp) LBB4_7: cmpl $1000, -4(%rbp) ## imm = 0x3E8 jb LBB4_12 ## %bb.8: cmpl $0, -24(%rbp) je LBB4_11 ## %bb.9: movl -24(%rbp), %eax movl -20(%rbp), %ecx subl $1, %ecx cmpl %ecx, %eax jge LBB4_11 ## %bb.10: movq -16(%rbp), %rax movl -24(%rbp), %ecx movl %ecx, %edx addl $1, %edx movl %edx, -24(%rbp) movslq %ecx, %rcx movb $32, (%rax,%rcx) LBB4_11: movl -4(%rbp), %eax movl $1000, %ecx ## imm = 0x3E8 xorl %edx, %edx divl %ecx movl %eax, %edi movq -16(%rbp), %rsi movslq -24(%rbp), %rax addq %rax, %rsi movl -20(%rbp), %edx subl -24(%rbp), %edx callq _speedtest1_numbername addl -24(%rbp), %eax movl %eax, -24(%rbp) movl -20(%rbp), %edi subl -24(%rbp), %edi movq -16(%rbp), %rsi movslq -24(%rbp), %rax addq %rax, %rsi leaq L_.str.31(%rip), %rdx movb $0, %al callq _sqlite3_snprintf movq -16(%rbp), %rdi movslq -24(%rbp), %rax addq %rax, %rdi callq _strlen ## kill: def $eax killed $eax killed $rax addl -24(%rbp), %eax movl %eax, -24(%rbp) movl -4(%rbp), %eax movl $1000, %ecx ## imm = 0x3E8 xorl %edx, %edx divl %ecx movl %edx, -4(%rbp) LBB4_12: cmpl $100, -4(%rbp) jb LBB4_17 ## %bb.13: cmpl $0, -24(%rbp) je LBB4_16 ## %bb.14: movl -24(%rbp), %eax movl -20(%rbp), %ecx subl $1, %ecx cmpl %ecx, %eax jge LBB4_16 ## %bb.15: movq -16(%rbp), %rax movl -24(%rbp), %ecx movl %ecx, %edx addl $1, %edx movl %edx, -24(%rbp) movslq %ecx, %rcx movb $32, (%rax,%rcx) LBB4_16: movl -20(%rbp), %edi subl -24(%rbp), %edi movq -16(%rbp), %rsi movslq -24(%rbp), %rax addq %rax, %rsi movl -4(%rbp), %eax movl $100, %ecx xorl %edx, %edx divl %ecx movl %eax, %eax movl %eax, %ecx leaq _speedtest1_numbername.ones(%rip), %rax movq (%rax,%rcx,8), %rcx leaq L_.str.32(%rip), %rdx movb $0, %al callq _sqlite3_snprintf movq -16(%rbp), %rdi movslq -24(%rbp), %rax addq %rax, %rdi callq _strlen ## kill: def $eax killed $eax killed $rax addl -24(%rbp), %eax movl %eax, -24(%rbp) movl -4(%rbp), %eax movl $100, %ecx xorl %edx, %edx divl %ecx movl %edx, -4(%rbp) LBB4_17: cmpl $20, -4(%rbp) jb LBB4_22 ## %bb.18: cmpl $0, -24(%rbp) je LBB4_21 ## %bb.19: movl -24(%rbp), %eax movl -20(%rbp), %ecx subl $1, %ecx cmpl %ecx, %eax jge LBB4_21 ## %bb.20: movq -16(%rbp), %rax movl -24(%rbp), %ecx movl %ecx, %edx addl $1, %edx movl %edx, -24(%rbp) movslq %ecx, %rcx movb $32, (%rax,%rcx) LBB4_21: movl -20(%rbp), %edi subl -24(%rbp), %edi movq -16(%rbp), %rsi movslq -24(%rbp), %rax addq %rax, %rsi movl -4(%rbp), %eax movl $10, %ecx xorl %edx, %edx divl %ecx movl %eax, %eax movl %eax, %ecx leaq _speedtest1_numbername.tens(%rip), %rax movq (%rax,%rcx,8), %rcx leaq L_.str.33(%rip), %rdx movb $0, %al callq _sqlite3_snprintf movq -16(%rbp), %rdi movslq -24(%rbp), %rax addq %rax, %rdi callq _strlen ## kill: def $eax killed $eax killed $rax addl -24(%rbp), %eax movl %eax, -24(%rbp) movl -4(%rbp), %eax movl $10, %ecx xorl %edx, %edx divl %ecx movl %edx, -4(%rbp) LBB4_22: cmpl $0, -4(%rbp) jbe LBB4_27 ## %bb.23: cmpl $0, -24(%rbp) je LBB4_26 ## %bb.24: movl -24(%rbp), %eax movl -20(%rbp), %ecx subl $1, %ecx cmpl %ecx, %eax jge LBB4_26 ## %bb.25: movq -16(%rbp), %rax movl -24(%rbp), %ecx movl %ecx, %edx addl $1, %edx movl %edx, -24(%rbp) movslq %ecx, %rcx movb $32, (%rax,%rcx) LBB4_26: movl -20(%rbp), %edi subl -24(%rbp), %edi movq -16(%rbp), %rsi movslq -24(%rbp), %rax addq %rax, %rsi movl -4(%rbp), %eax movl %eax, %ecx leaq _speedtest1_numbername.ones(%rip), %rax movq (%rax,%rcx,8), %rcx leaq L_.str.33(%rip), %rdx movb $0, %al callq _sqlite3_snprintf movq -16(%rbp), %rdi movslq -24(%rbp), %rax addq %rax, %rdi callq _strlen ## kill: def $eax killed $eax killed $rax addl -24(%rbp), %eax movl %eax, -24(%rbp) LBB4_27: cmpl $0, -24(%rbp) jne LBB4_29 ## %bb.28: movl -20(%rbp), %edi subl -24(%rbp), %edi movq -16(%rbp), %rsi movslq -24(%rbp), %rax addq %rax, %rsi leaq L_.str(%rip), %rdx movb $0, %al callq _sqlite3_snprintf movq -16(%rbp), %rdi movslq -24(%rbp), %rax addq %rax, %rdi callq _strlen ## kill: def $eax killed $eax killed $rax addl -24(%rbp), %eax movl %eax, -24(%rbp) LBB4_29: movl -24(%rbp), %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _speedtest1_begin_test ## -- Begin function speedtest1_begin_test .p2align 4, 0x90 _speedtest1_begin_test: ## @speedtest1_begin_test .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $240, %rsp testb %al, %al je LBB5_9 ## %bb.8: movaps %xmm0, -192(%rbp) movaps %xmm1, -176(%rbp) movaps %xmm2, -160(%rbp) movaps %xmm3, -144(%rbp) movaps %xmm4, -128(%rbp) movaps %xmm5, -112(%rbp) movaps %xmm6, -96(%rbp) movaps %xmm7, -80(%rbp) LBB5_9: movq %r9, -200(%rbp) movq %r8, -208(%rbp) movq %rcx, -216(%rbp) movq %rdx, -224(%rbp) movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl %edi, -36(%rbp) movq %rsi, -48(%rbp) movq -48(%rbp), %rdi callq _strlen ## kill: def $eax killed $eax killed $rax movl %eax, -52(%rbp) leaq -32(%rbp), %rax leaq -240(%rbp), %rcx movq %rcx, 16(%rax) leaq 16(%rbp), %rcx movq %rcx, 8(%rax) movl $48, 4(%rax) movl $16, (%rax) movq -48(%rbp), %rdi leaq -32(%rbp), %rsi callq _sqlite3_vmprintf movq %rax, -64(%rbp) leaq -32(%rbp), %rax movq -64(%rbp), %rdi callq _strlen ## kill: def $eax killed $eax killed $rax movl %eax, -52(%rbp) cmpl $60, -52(%rbp) jle LBB5_2 ## %bb.1: movq -64(%rbp), %rax movb $0, 60(%rax) movl $60, -52(%rbp) LBB5_2: cmpl $0, _g+40(%rip) je LBB5_4 ## %bb.3: movl -36(%rbp), %esi movq -64(%rbp), %rdx movl $60, %ecx subl -52(%rbp), %ecx leaq L_.str.34(%rip), %rdi leaq _zDots(%rip), %r8 movb $0, %al callq _printf jmp LBB5_5 LBB5_4: movl -36(%rbp), %esi movq -64(%rbp), %rdx movl $60, %ecx subl -52(%rbp), %ecx leaq L_.str.35(%rip), %rdi leaq _zDots(%rip), %r8 movb $0, %al callq _printf movq ___stdoutp@GOTPCREL(%rip), %rax movq (%rax), %rdi callq _fflush LBB5_5: movq -64(%rbp), %rdi callq _sqlite3_free movl $0, _g+88(%rip) callq _speedtest1_timestamp movq %rax, _g+16(%rip) movl $-1391256309, _g+80(%rip) ## imm = 0xAD131D0B movl $1157229256, _g+84(%rip) ## imm = 0x44F9EAC8 movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB5_7 ## %bb.6: addq $240, %rsp popq %rbp retq LBB5_7: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _speedtest1_end_test ## -- Begin function speedtest1_end_test .p2align 4, 0x90 _speedtest1_end_test: ## @speedtest1_end_test .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp callq _speedtest1_timestamp subq _g+16(%rip), %rax movq %rax, -8(%rbp) cmpl $0, _g+40(%rip) jne LBB6_2 ## %bb.1: movq -8(%rbp), %rax addq _g+24(%rip), %rax movq %rax, _g+24(%rip) movq -8(%rbp), %rax movl $1000, %ecx ## imm = 0x3E8 cqto idivq %rcx movl %eax, %esi movq -8(%rbp), %rax movl $1000, %ecx ## imm = 0x3E8 cqto idivq %rcx ## kill: def $edx killed $edx killed $rdx leaq L_.str.36(%rip), %rdi movb $0, %al callq _printf LBB6_2: cmpq $0, _g+8(%rip) je LBB6_4 ## %bb.3: movq _g+8(%rip), %rdi callq _sqlite3_finalize movq $0, _g+8(%rip) LBB6_4: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _speedtest1_final ## -- Begin function speedtest1_final .p2align 4, 0x90 _speedtest1_final: ## @speedtest1_final .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp cmpl $0, _g+40(%rip) jne LBB7_2 ## %bb.1: movq _g+24(%rip), %rax movl $1000, %ecx ## imm = 0x3E8 cqto idivq %rcx movl %eax, %ecx movq _g+24(%rip), %rax movl $1000, %esi ## imm = 0x3E8 cqto idivq %rsi movl %edx, %r8d leaq L_.str.37(%rip), %rdi movl $55, %esi leaq _zDots(%rip), %rdx movb $0, %al callq _printf LBB7_2: popq %rbp retq .cfi_endproc ## -- End function .globl _speedtest1_exec ## -- Begin function speedtest1_exec .p2align 4, 0x90 _speedtest1_exec: ## @speedtest1_exec .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $240, %rsp testb %al, %al je LBB8_11 ## %bb.10: movaps %xmm0, -192(%rbp) movaps %xmm1, -176(%rbp) movaps %xmm2, -160(%rbp) movaps %xmm3, -144(%rbp) movaps %xmm4, -128(%rbp) movaps %xmm5, -112(%rbp) movaps %xmm6, -96(%rbp) movaps %xmm7, -80(%rbp) LBB8_11: movq %r9, -200(%rbp) movq %r8, -208(%rbp) movq %rcx, -216(%rbp) movq %rdx, -224(%rbp) movq %rsi, -232(%rbp) movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movq %rdi, -40(%rbp) leaq -32(%rbp), %rax leaq -240(%rbp), %rcx movq %rcx, 16(%rax) leaq 16(%rbp), %rcx movq %rcx, 8(%rax) movl $48, 4(%rax) movl $8, (%rax) movq -40(%rbp), %rdi leaq -32(%rbp), %rsi callq _sqlite3_vmprintf movq %rax, -48(%rbp) leaq -32(%rbp), %rax cmpl $0, _g+40(%rip) je LBB8_2 ## %bb.1: movq -48(%rbp), %rdi callq _printSql jmp LBB8_7 LBB8_2: movq $0, -56(%rbp) movq _g(%rip), %rdi movq -48(%rbp), %rsi xorl %eax, %eax movl %eax, %ecx leaq -56(%rbp), %r8 movq %rcx, %rdx callq _sqlite3_exec movl %eax, -60(%rbp) cmpq $0, -56(%rbp) je LBB8_4 ## %bb.3: movq -56(%rbp), %rsi movq -48(%rbp), %rdx leaq L_.str.38(%rip), %rdi movb $0, %al callq _fatal_error LBB8_4: cmpl $0, -60(%rbp) je LBB8_6 ## %bb.5: movq _g(%rip), %rdi callq _sqlite3_errmsg movq %rax, %rsi leaq L_.str.39(%rip), %rdi movb $0, %al callq _fatal_error LBB8_6: jmp LBB8_7 LBB8_7: movq -48(%rbp), %rdi callq _sqlite3_free movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB8_9 ## %bb.8: addq $240, %rsp popq %rbp retq LBB8_9: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function printSql _printSql: ## @printSql .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) movq -8(%rbp), %rdi callq _strlen ## kill: def $eax killed $eax killed $rax movl %eax, -12(%rbp) LBB9_1: ## =>This Inner Loop Header: Depth=1 xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $0, -12(%rbp) movb %al, -13(%rbp) ## 1-byte Spill jle LBB9_5 ## %bb.2: ## in Loop: Header=BB9_1 Depth=1 movq -8(%rbp), %rax movl -12(%rbp), %ecx subl $1, %ecx movslq %ecx, %rcx movsbl (%rax,%rcx), %ecx movb $1, %al cmpl $59, %ecx movb %al, -14(%rbp) ## 1-byte Spill je LBB9_4 ## %bb.3: ## in Loop: Header=BB9_1 Depth=1 movq -8(%rbp), %rax movl -12(%rbp), %ecx subl $1, %ecx movslq %ecx, %rcx movsbl (%rax,%rcx), %edi callq _isspace cmpl $0, %eax setne %al movb %al, -14(%rbp) ## 1-byte Spill LBB9_4: ## in Loop: Header=BB9_1 Depth=1 movb -14(%rbp), %al ## 1-byte Reload movb %al, -13(%rbp) ## 1-byte Spill LBB9_5: ## in Loop: Header=BB9_1 Depth=1 movb -13(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB9_6 jmp LBB9_7 LBB9_6: ## in Loop: Header=BB9_1 Depth=1 movl -12(%rbp), %eax addl $-1, %eax movl %eax, -12(%rbp) jmp LBB9_1 LBB9_7: cmpl $0, _g+44(%rip) je LBB9_9 ## %bb.8: leaq L_.str.222(%rip), %rdi movb $0, %al callq _printf LBB9_9: movl -12(%rbp), %esi movq -8(%rbp), %rdx leaq L_.str.223(%rip), %rdi movb $0, %al callq _printf cmpl $0, _g+44(%rip) je LBB9_14 ## %bb.10: movq -8(%rbp), %rsi leaq L_.str.224(%rip), %rdi callq _sqlite3_strglob cmpl $0, %eax je LBB9_13 ## %bb.11: movq -8(%rbp), %rsi leaq L_.str.225(%rip), %rdi callq _sqlite3_strglob cmpl $0, %eax je LBB9_13 ## %bb.12: movq -8(%rbp), %rsi leaq L_.str.226(%rip), %rdi callq _sqlite3_strglob cmpl $0, %eax jne LBB9_14 LBB9_13: movl -12(%rbp), %esi movq -8(%rbp), %rdx leaq L_.str.223(%rip), %rdi movb $0, %al callq _printf LBB9_14: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function fatal_error _fatal_error: ## @fatal_error .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $208, %rsp testb %al, %al je LBB10_2 ## %bb.1: movaps %xmm0, -160(%rbp) movaps %xmm1, -144(%rbp) movaps %xmm2, -128(%rbp) movaps %xmm3, -112(%rbp) movaps %xmm4, -96(%rbp) movaps %xmm5, -80(%rbp) movaps %xmm6, -64(%rbp) movaps %xmm7, -48(%rbp) LBB10_2: movq %r9, -168(%rbp) movq %r8, -176(%rbp) movq %rcx, -184(%rbp) movq %rdx, -192(%rbp) movq %rsi, -200(%rbp) movq %rdi, -8(%rbp) leaq -208(%rbp), %rax movq %rax, -16(%rbp) leaq 16(%rbp), %rax movq %rax, -24(%rbp) movl $48, -28(%rbp) movl $8, -32(%rbp) movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movq -8(%rbp), %rsi leaq -32(%rbp), %rdx callq _vfprintf movl $1, %edi callq _exit .cfi_endproc ## -- End function .globl _speedtest1_prepare ## -- Begin function speedtest1_prepare .p2align 4, 0x90 _speedtest1_prepare: ## @speedtest1_prepare .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $240, %rsp testb %al, %al je LBB11_11 ## %bb.10: movaps %xmm0, -192(%rbp) movaps %xmm1, -176(%rbp) movaps %xmm2, -160(%rbp) movaps %xmm3, -144(%rbp) movaps %xmm4, -128(%rbp) movaps %xmm5, -112(%rbp) movaps %xmm6, -96(%rbp) movaps %xmm7, -80(%rbp) LBB11_11: movq %r9, -200(%rbp) movq %r8, -208(%rbp) movq %rcx, -216(%rbp) movq %rdx, -224(%rbp) movq %rsi, -232(%rbp) movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movq %rdi, -40(%rbp) leaq -32(%rbp), %rax leaq -240(%rbp), %rcx movq %rcx, 16(%rax) leaq 16(%rbp), %rcx movq %rcx, 8(%rax) movl $48, 4(%rax) movl $8, (%rax) movq -40(%rbp), %rdi leaq -32(%rbp), %rsi callq _sqlite3_vmprintf movq %rax, -48(%rbp) leaq -32(%rbp), %rax cmpl $0, _g+40(%rip) je LBB11_2 ## %bb.1: movq -48(%rbp), %rdi callq _printSql jmp LBB11_7 LBB11_2: cmpq $0, _g+8(%rip) je LBB11_4 ## %bb.3: movq _g+8(%rip), %rdi callq _sqlite3_finalize LBB11_4: movq _g(%rip), %rdi movq -48(%rbp), %rsi movl $4294967295, %edx ## imm = 0xFFFFFFFF leaq _g(%rip), %rcx addq $8, %rcx xorl %eax, %eax movl %eax, %r8d callq _sqlite3_prepare_v2 movl %eax, -52(%rbp) cmpl $0, -52(%rbp) je LBB11_6 ## %bb.5: movq _g(%rip), %rdi callq _sqlite3_errmsg movq %rax, %rsi leaq L_.str.40(%rip), %rdi movb $0, %al callq _fatal_error LBB11_6: jmp LBB11_7 LBB11_7: movq -48(%rbp), %rdi callq _sqlite3_free movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB11_9 ## %bb.8: addq $240, %rsp popq %rbp retq LBB11_9: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _speedtest1_execute ## -- Begin function speedtest1_execute .p2align 4, 0x90 _speedtest1_execute: ## @speedtest1_execute .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 cmpl $0, _g+40(%rip) je LBB12_2 ## %bb.1: jmp LBB12_21 LBB12_2: cmpq $0, _g+8(%rip) setne %al xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB12_4 ## %bb.3: leaq L___func__.speedtest1_execute(%rip), %rdi leaq L_.str.41(%rip), %rsi leaq L_.str.42(%rip), %rcx movl $364, %edx ## imm = 0x16C callq ___assert_rtn LBB12_4: jmp LBB12_5 LBB12_5: movl $0, _g+88(%rip) LBB12_6: ## =>This Loop Header: Depth=1 ## Child Loop BB12_8 Depth 2 movq _g+8(%rip), %rdi callq _sqlite3_step cmpl $100, %eax jne LBB12_18 ## %bb.7: ## in Loop: Header=BB12_6 Depth=1 movq _g+8(%rip), %rdi callq _sqlite3_column_count movl %eax, -8(%rbp) movl $0, -4(%rbp) LBB12_8: ## Parent Loop BB12_6 Depth=1 ## => This Inner Loop Header: Depth=2 movl -4(%rbp), %eax cmpl -8(%rbp), %eax jge LBB12_17 ## %bb.9: ## in Loop: Header=BB12_8 Depth=2 movq _g+8(%rip), %rdi movl -4(%rbp), %esi callq _sqlite3_column_text movq %rax, -24(%rbp) cmpq $0, -24(%rbp) jne LBB12_11 ## %bb.10: ## in Loop: Header=BB12_8 Depth=2 leaq L_.str.43(%rip), %rax movq %rax, -24(%rbp) LBB12_11: ## in Loop: Header=BB12_8 Depth=2 movq -24(%rbp), %rdi callq _strlen ## kill: def $eax killed $eax killed $rax movl %eax, -12(%rbp) movl _g+88(%rip), %eax addl -12(%rbp), %eax cltq cmpq $2998, %rax ## imm = 0xBB6 jae LBB12_15 ## %bb.12: ## in Loop: Header=BB12_8 Depth=2 cmpl $0, _g+88(%rip) jle LBB12_14 ## %bb.13: ## in Loop: Header=BB12_8 Depth=2 movl _g+88(%rip), %eax movl %eax, %ecx addl $1, %ecx movl %ecx, _g+88(%rip) movslq %eax, %rcx leaq _g(%rip), %rax movb $32, 92(%rax,%rcx) LBB12_14: ## in Loop: Header=BB12_8 Depth=2 movslq _g+88(%rip), %rax leaq _g(%rip), %rdi addq $92, %rdi addq %rax, %rdi movq -24(%rbp), %rsi movl -12(%rbp), %eax addl $1, %eax movslq %eax, %rdx movq $-1, %rcx callq ___memcpy_chk movl -12(%rbp), %eax addl _g+88(%rip), %eax movl %eax, _g+88(%rip) LBB12_15: ## in Loop: Header=BB12_8 Depth=2 jmp LBB12_16 LBB12_16: ## in Loop: Header=BB12_8 Depth=2 movl -4(%rbp), %eax addl $1, %eax movl %eax, -4(%rbp) jmp LBB12_8 LBB12_17: ## in Loop: Header=BB12_6 Depth=1 jmp LBB12_6 LBB12_18: cmpl $0, _g+36(%rip) je LBB12_20 ## %bb.19: movq _g(%rip), %rax movq %rax, -40(%rbp) ## 8-byte Spill movq _g+8(%rip), %rdi callq _sqlite3_sql movq -40(%rbp), %rdi ## 8-byte Reload movq %rax, %rsi movl $4294967295, %edx ## imm = 0xFFFFFFFF leaq -32(%rbp), %rcx xorl %eax, %eax movl %eax, %r8d callq _sqlite3_prepare_v2 movq _g+8(%rip), %rdi callq _sqlite3_finalize movq -32(%rbp), %rax movq %rax, _g+8(%rip) jmp LBB12_21 LBB12_20: movq _g+8(%rip), %rdi callq _sqlite3_reset LBB12_21: addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _testset_main ## -- Begin function testset_main .p2align 4, 0x90 _testset_main: ## @testset_main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $2080, %rsp ## imm = 0x820 movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) imull $500, _g+52(%rip), %eax ## imm = 0x1F4 movl %eax, -2024(%rbp) movl %eax, -2028(%rbp) movl -2028(%rbp), %edi callq _roundup_allones movl %eax, -2032(%rbp) movl -2024(%rbp), %edx movl $100, %edi leaq L_.str.44(%rip), %rsi movb $0, %al callq _speedtest1_begin_test leaq L_.str.45(%rip), %rdi movb $0, %al callq _speedtest1_exec movq _g+64(%rip), %rsi movq _g+64(%rip), %rdx movq _g+64(%rip), %rcx leaq L_.str.46(%rip), %rdi movb $0, %al callq _speedtest1_exec movl -2024(%rbp), %esi leaq L_.str.47(%rip), %rdi movb $0, %al callq _speedtest1_prepare movl $1, -2020(%rbp) LBB13_1: ## =>This Inner Loop Header: Depth=1 movl -2020(%rbp), %eax cmpl -2024(%rbp), %eax jg LBB13_4 ## %bb.2: ## in Loop: Header=BB13_1 Depth=1 movl -2020(%rbp), %edi movl -2032(%rbp), %esi callq _swizzle movl %eax, -2036(%rbp) movl -2036(%rbp), %edi leaq -2016(%rbp), %rsi movl $2000, %edx ## imm = 0x7D0 callq _speedtest1_numbername movq _g+8(%rip), %rdi movl -2036(%rbp), %eax movl %eax, %edx movl $1, %esi callq _sqlite3_bind_int64 movq _g+8(%rip), %rdi movl -2020(%rbp), %edx movl $2, %esi callq _sqlite3_bind_int movq _g+8(%rip), %rdi leaq -2016(%rbp), %rdx movl $3, %esi movl $4294967295, %ecx ## imm = 0xFFFFFFFF xorl %eax, %eax movl %eax, %r8d callq _sqlite3_bind_text callq _speedtest1_execute ## %bb.3: ## in Loop: Header=BB13_1 Depth=1 movl -2020(%rbp), %eax addl $1, %eax movl %eax, -2020(%rbp) jmp LBB13_1 LBB13_4: leaq L_.str.48(%rip), %rdi movb $0, %al callq _speedtest1_exec callq _speedtest1_end_test movl -2028(%rbp), %eax movl %eax, -2024(%rbp) movl -2024(%rbp), %edx movl $110, %edi leaq L_.str.49(%rip), %rsi movb $0, %al callq _speedtest1_begin_test leaq L_.str.45(%rip), %rdi movb $0, %al callq _speedtest1_exec movq _g+64(%rip), %rsi movq _g+72(%rip), %rdx movq _g+64(%rip), %rcx movq _g+64(%rip), %r8 movq _g+56(%rip), %r9 leaq L_.str.50(%rip), %rdi movb $0, %al callq _speedtest1_exec movl -2024(%rbp), %esi leaq L_.str.51(%rip), %rdi movb $0, %al callq _speedtest1_prepare movl $1, -2020(%rbp) LBB13_5: ## =>This Inner Loop Header: Depth=1 movl -2020(%rbp), %eax cmpl -2024(%rbp), %eax jg LBB13_8 ## %bb.6: ## in Loop: Header=BB13_5 Depth=1 movl -2020(%rbp), %edi movl -2032(%rbp), %esi callq _swizzle movl %eax, -2036(%rbp) movl -2036(%rbp), %edi leaq -2016(%rbp), %rsi movl $2000, %edx ## imm = 0x7D0 callq _speedtest1_numbername movq _g+8(%rip), %rdi movl -2020(%rbp), %edx movl $1, %esi callq _sqlite3_bind_int movq _g+8(%rip), %rdi movl -2036(%rbp), %eax movl %eax, %edx movl $2, %esi callq _sqlite3_bind_int64 movq _g+8(%rip), %rdi leaq -2016(%rbp), %rdx movl $3, %esi movl $4294967295, %ecx ## imm = 0xFFFFFFFF xorl %eax, %eax movl %eax, %r8d callq _sqlite3_bind_text callq _speedtest1_execute ## %bb.7: ## in Loop: Header=BB13_5 Depth=1 movl -2020(%rbp), %eax addl $1, %eax movl %eax, -2020(%rbp) jmp LBB13_5 LBB13_8: leaq L_.str.48(%rip), %rdi movb $0, %al callq _speedtest1_exec callq _speedtest1_end_test movl -2028(%rbp), %eax movl %eax, -2024(%rbp) movl -2024(%rbp), %edx movl $120, %edi leaq L_.str.52(%rip), %rsi movb $0, %al callq _speedtest1_begin_test leaq L_.str.45(%rip), %rdi movb $0, %al callq _speedtest1_exec movq _g+64(%rip), %rsi movq _g+72(%rip), %rdx movq _g+64(%rip), %rcx movq _g+64(%rip), %r8 movq _g+56(%rip), %r9 leaq L_.str.53(%rip), %rdi movb $0, %al callq _speedtest1_exec movl -2024(%rbp), %esi leaq L_.str.54(%rip), %rdi movb $0, %al callq _speedtest1_prepare movl $1, -2020(%rbp) LBB13_9: ## =>This Inner Loop Header: Depth=1 movl -2020(%rbp), %eax cmpl -2024(%rbp), %eax jg LBB13_12 ## %bb.10: ## in Loop: Header=BB13_9 Depth=1 movl -2020(%rbp), %edi movl -2032(%rbp), %esi callq _swizzle movl %eax, -2036(%rbp) movl -2036(%rbp), %edi leaq -2016(%rbp), %rsi movl $2000, %edx ## imm = 0x7D0 callq _speedtest1_numbername movq _g+8(%rip), %rdi movl -2020(%rbp), %edx movl $2, %esi callq _sqlite3_bind_int movq _g+8(%rip), %rdi movl -2036(%rbp), %eax movl %eax, %edx movl $1, %esi callq _sqlite3_bind_int64 movq _g+8(%rip), %rdi leaq -2016(%rbp), %rdx movl $3, %esi movl $4294967295, %ecx ## imm = 0xFFFFFFFF xorl %eax, %eax movl %eax, %r8d callq _sqlite3_bind_text callq _speedtest1_execute ## %bb.11: ## in Loop: Header=BB13_9 Depth=1 movl -2020(%rbp), %eax addl $1, %eax movl %eax, -2020(%rbp) jmp LBB13_9 LBB13_12: leaq L_.str.48(%rip), %rdi movb $0, %al callq _speedtest1_exec callq _speedtest1_end_test movl $25, -2024(%rbp) movl -2024(%rbp), %edx movl $130, %edi leaq L_.str.55(%rip), %rsi movb $0, %al callq _speedtest1_begin_test leaq L_.str.45(%rip), %rdi movb $0, %al callq _speedtest1_exec movl -2024(%rbp), %esi leaq L_.str.56(%rip), %rdi movb $0, %al callq _speedtest1_prepare movl $1, -2020(%rbp) LBB13_13: ## =>This Inner Loop Header: Depth=1 movl -2020(%rbp), %eax cmpl -2024(%rbp), %eax jg LBB13_16 ## %bb.14: ## in Loop: Header=BB13_13 Depth=1 callq _speedtest1_random xorl %edx, %edx divl -2032(%rbp) movl %edx, -2036(%rbp) callq _speedtest1_random movl $10, %ecx xorl %edx, %edx divl %ecx movl %edx, -2048(%rbp) ## 4-byte Spill movl -2028(%rbp), %eax movl $5000, %ecx ## imm = 0x1388 cltd idivl %ecx movl %eax, %ecx movl -2048(%rbp), %eax ## 4-byte Reload addl %ecx, %eax addl -2036(%rbp), %eax movl %eax, -2040(%rbp) movq _g+8(%rip), %rdi movl -2036(%rbp), %edx movl $1, %esi callq _sqlite3_bind_int movq _g+8(%rip), %rdi movl -2040(%rbp), %edx movl $2, %esi callq _sqlite3_bind_int callq _speedtest1_execute ## %bb.15: ## in Loop: Header=BB13_13 Depth=1 movl -2020(%rbp), %eax addl $1, %eax movl %eax, -2020(%rbp) jmp LBB13_13 LBB13_16: leaq L_.str.48(%rip), %rdi movb $0, %al callq _speedtest1_exec callq _speedtest1_end_test movl $10, -2024(%rbp) movl -2024(%rbp), %edx movl $140, %edi leaq L_.str.57(%rip), %rsi movb $0, %al callq _speedtest1_begin_test leaq L_.str.45(%rip), %rdi movb $0, %al callq _speedtest1_exec movl -2024(%rbp), %esi leaq L_.str.58(%rip), %rdi movb $0, %al callq _speedtest1_prepare movl $1, -2020(%rbp) LBB13_17: ## =>This Inner Loop Header: Depth=1 movl -2020(%rbp), %eax cmpl -2024(%rbp), %eax jg LBB13_20 ## %bb.18: ## in Loop: Header=BB13_17 Depth=1 callq _speedtest1_random xorl %edx, %edx divl -2032(%rbp) movl %edx, -2036(%rbp) movb $37, -2016(%rbp) movl -2020(%rbp), %edi leaq -2016(%rbp), %rsi addq $1, %rsi movl $1998, %edx ## imm = 0x7CE callq _speedtest1_numbername movl %eax, -2044(%rbp) movslq -2044(%rbp), %rax movb $37, -2016(%rbp,%rax) movl -2044(%rbp), %eax addl $1, %eax cltq movb $0, -2016(%rbp,%rax) movq _g+8(%rip), %rdi leaq -2016(%rbp), %rdx movl -2044(%rbp), %ecx movl $1, %esi xorl %eax, %eax movl %eax, %r8d callq _sqlite3_bind_text callq _speedtest1_execute ## %bb.19: ## in Loop: Header=BB13_17 Depth=1 movl -2020(%rbp), %eax addl $1, %eax movl %eax, -2020(%rbp) jmp LBB13_17 LBB13_20: leaq L_.str.48(%rip), %rdi movb $0, %al callq _speedtest1_exec callq _speedtest1_end_test movl $10, -2024(%rbp) movl -2024(%rbp), %edx movl $142, %edi leaq L_.str.59(%rip), %rsi movb $0, %al callq _speedtest1_begin_test leaq L_.str.45(%rip), %rdi movb $0, %al callq _speedtest1_exec movl -2024(%rbp), %esi leaq L_.str.60(%rip), %rdi movb $0, %al callq _speedtest1_prepare movl $1, -2020(%rbp) LBB13_21: ## =>This Inner Loop Header: Depth=1 movl -2020(%rbp), %eax cmpl -2024(%rbp), %eax jg LBB13_24 ## %bb.22: ## in Loop: Header=BB13_21 Depth=1 callq _speedtest1_random xorl %edx, %edx divl -2032(%rbp) movl %edx, -2036(%rbp) movb $37, -2016(%rbp) movl -2020(%rbp), %edi leaq -2016(%rbp), %rsi addq $1, %rsi movl $1998, %edx ## imm = 0x7CE callq _speedtest1_numbername movl %eax, -2044(%rbp) movslq -2044(%rbp), %rax movb $37, -2016(%rbp,%rax) movl -2044(%rbp), %eax addl $1, %eax cltq movb $0, -2016(%rbp,%rax) movq _g+8(%rip), %rdi leaq -2016(%rbp), %rdx movl -2044(%rbp), %ecx movl $1, %esi xorl %eax, %eax movl %eax, %r8d callq _sqlite3_bind_text callq _speedtest1_execute ## %bb.23: ## in Loop: Header=BB13_21 Depth=1 movl -2020(%rbp), %eax addl $1, %eax movl %eax, -2020(%rbp) jmp LBB13_21 LBB13_24: leaq L_.str.48(%rip), %rdi movb $0, %al callq _speedtest1_exec callq _speedtest1_end_test movl $10, -2024(%rbp) movl -2024(%rbp), %edx movl $145, %edi leaq L_.str.61(%rip), %rsi movb $0, %al callq _speedtest1_begin_test leaq L_.str.45(%rip), %rdi movb $0, %al callq _speedtest1_exec movl -2024(%rbp), %esi leaq L_.str.62(%rip), %rdi movb $0, %al callq _speedtest1_prepare movl $1, -2020(%rbp) LBB13_25: ## =>This Inner Loop Header: Depth=1 movl -2020(%rbp), %eax cmpl -2024(%rbp), %eax jg LBB13_28 ## %bb.26: ## in Loop: Header=BB13_25 Depth=1 callq _speedtest1_random xorl %edx, %edx divl -2032(%rbp) movl %edx, -2036(%rbp) movb $37, -2016(%rbp) movl -2020(%rbp), %edi leaq -2016(%rbp), %rsi addq $1, %rsi movl $1998, %edx ## imm = 0x7CE callq _speedtest1_numbername movl %eax, -2044(%rbp) movslq -2044(%rbp), %rax movb $37, -2016(%rbp,%rax) movl -2044(%rbp), %eax addl $1, %eax cltq movb $0, -2016(%rbp,%rax) movq _g+8(%rip), %rdi leaq -2016(%rbp), %rdx movl -2044(%rbp), %ecx movl $1, %esi xorl %eax, %eax movl %eax, %r8d callq _sqlite3_bind_text callq _speedtest1_execute ## %bb.27: ## in Loop: Header=BB13_25 Depth=1 movl -2020(%rbp), %eax addl $1, %eax movl %eax, -2020(%rbp) jmp LBB13_25 LBB13_28: leaq L_.str.48(%rip), %rdi movb $0, %al callq _speedtest1_exec callq _speedtest1_end_test movl $150, %edi leaq L_.str.63(%rip), %rsi movb $0, %al callq _speedtest1_begin_test leaq L_.str.64(%rip), %rdi movb $0, %al callq _speedtest1_exec leaq L_.str.65(%rip), %rdi movb $0, %al callq _speedtest1_exec leaq L_.str.66(%rip), %rdi movb $0, %al callq _speedtest1_exec leaq L_.str.67(%rip), %rdi movb $0, %al callq _speedtest1_exec leaq L_.str.68(%rip), %rdi movb $0, %al callq _speedtest1_exec leaq L_.str.69(%rip), %rdi movb $0, %al callq _speedtest1_exec leaq L_.str.70(%rip), %rdi movb $0, %al callq _speedtest1_exec callq _speedtest1_end_test movl -2028(%rbp), %eax movl $5, %ecx cltd idivl %ecx movl %eax, -2024(%rbp) movl -2024(%rbp), %edx movl $160, %edi leaq L_.str.71(%rip), %rsi movb $0, %al callq _speedtest1_begin_test leaq L_.str.45(%rip), %rdi movb $0, %al callq _speedtest1_exec movl -2024(%rbp), %esi leaq L_.str.56(%rip), %rdi movb $0, %al callq _speedtest1_prepare movl $1, -2020(%rbp) LBB13_29: ## =>This Inner Loop Header: Depth=1 movl -2020(%rbp), %eax cmpl -2024(%rbp), %eax jg LBB13_32 ## %bb.30: ## in Loop: Header=BB13_29 Depth=1 callq _speedtest1_random xorl %edx, %edx divl -2032(%rbp) movl %edx, -2036(%rbp) callq _speedtest1_random movl $10, %ecx xorl %edx, %edx divl %ecx movl %edx, -2052(%rbp) ## 4-byte Spill movl -2028(%rbp), %eax movl $5000, %ecx ## imm = 0x1388 cltd idivl %ecx movl %eax, %ecx movl -2052(%rbp), %eax ## 4-byte Reload addl %ecx, %eax addl -2036(%rbp), %eax movl %eax, -2040(%rbp) movq _g+8(%rip), %rdi movl -2036(%rbp), %edx movl $1, %esi callq _sqlite3_bind_int movq _g+8(%rip), %rdi movl -2040(%rbp), %edx movl $2, %esi callq _sqlite3_bind_int callq _speedtest1_execute ## %bb.31: ## in Loop: Header=BB13_29 Depth=1 movl -2020(%rbp), %eax addl $1, %eax movl %eax, -2020(%rbp) jmp LBB13_29 LBB13_32: leaq L_.str.48(%rip), %rdi movb $0, %al callq _speedtest1_exec callq _speedtest1_end_test movl -2028(%rbp), %eax movl $5, %ecx cltd idivl %ecx movl %eax, -2024(%rbp) movl -2024(%rbp), %edx movl $161, %edi leaq L_.str.72(%rip), %rsi movb $0, %al callq _speedtest1_begin_test leaq L_.str.45(%rip), %rdi movb $0, %al callq _speedtest1_exec movl -2024(%rbp), %esi leaq L_.str.73(%rip), %rdi movb $0, %al callq _speedtest1_prepare movl $1, -2020(%rbp) LBB13_33: ## =>This Inner Loop Header: Depth=1 movl -2020(%rbp), %eax cmpl -2024(%rbp), %eax jg LBB13_36 ## %bb.34: ## in Loop: Header=BB13_33 Depth=1 callq _speedtest1_random xorl %edx, %edx divl -2032(%rbp) movl %edx, -2036(%rbp) callq _speedtest1_random movl $10, %ecx xorl %edx, %edx divl %ecx movl %edx, -2056(%rbp) ## 4-byte Spill movl -2028(%rbp), %eax movl $5000, %ecx ## imm = 0x1388 cltd idivl %ecx movl %eax, %ecx movl -2056(%rbp), %eax ## 4-byte Reload addl %ecx, %eax addl -2036(%rbp), %eax movl %eax, -2040(%rbp) movq _g+8(%rip), %rdi movl -2036(%rbp), %edx movl $1, %esi callq _sqlite3_bind_int movq _g+8(%rip), %rdi movl -2040(%rbp), %edx movl $2, %esi callq _sqlite3_bind_int callq _speedtest1_execute ## %bb.35: ## in Loop: Header=BB13_33 Depth=1 movl -2020(%rbp), %eax addl $1, %eax movl %eax, -2020(%rbp) jmp LBB13_33 LBB13_36: leaq L_.str.48(%rip), %rdi movb $0, %al callq _speedtest1_exec callq _speedtest1_end_test movl -2028(%rbp), %eax movl $5, %ecx cltd idivl %ecx movl %eax, -2024(%rbp) movl -2024(%rbp), %edx movl $170, %edi leaq L_.str.74(%rip), %rsi movb $0, %al callq _speedtest1_begin_test leaq L_.str.45(%rip), %rdi movb $0, %al callq _speedtest1_exec movl -2024(%rbp), %esi leaq L_.str.75(%rip), %rdi movb $0, %al callq _speedtest1_prepare movl $1, -2020(%rbp) LBB13_37: ## =>This Inner Loop Header: Depth=1 movl -2020(%rbp), %eax cmpl -2024(%rbp), %eax jg LBB13_40 ## %bb.38: ## in Loop: Header=BB13_37 Depth=1 movl -2020(%rbp), %edi movl -2032(%rbp), %esi callq _swizzle movl %eax, -2036(%rbp) movl -2036(%rbp), %edi leaq -2016(%rbp), %rsi movl $1999, %edx ## imm = 0x7CF callq _speedtest1_numbername movl %eax, -2044(%rbp) movq _g+8(%rip), %rdi leaq -2016(%rbp), %rdx movl -2044(%rbp), %ecx movl $1, %esi xorl %eax, %eax movl %eax, %r8d callq _sqlite3_bind_text callq _speedtest1_execute ## %bb.39: ## in Loop: Header=BB13_37 Depth=1 movl -2020(%rbp), %eax addl $1, %eax movl %eax, -2020(%rbp) jmp LBB13_37 LBB13_40: leaq L_.str.48(%rip), %rdi movb $0, %al callq _speedtest1_exec callq _speedtest1_end_test movl -2028(%rbp), %eax movl %eax, -2024(%rbp) movl -2024(%rbp), %edx movl $180, %edi leaq L_.str.76(%rip), %rsi movb $0, %al callq _speedtest1_begin_test leaq L_.str.45(%rip), %rdi movb $0, %al callq _speedtest1_exec movq _g+64(%rip), %rsi movq _g+72(%rip), %rdx movq _g+64(%rip), %rcx movq _g+64(%rip), %r8 movq _g+56(%rip), %r9 leaq L_.str.77(%rip), %rdi movb $0, %al callq _speedtest1_exec leaq L_.str.78(%rip), %rdi movb $0, %al callq _speedtest1_exec leaq L_.str.79(%rip), %rdi movb $0, %al callq _speedtest1_exec leaq L_.str.80(%rip), %rdi movb $0, %al callq _speedtest1_exec leaq L_.str.48(%rip), %rdi movb $0, %al callq _speedtest1_exec callq _speedtest1_end_test movl -2028(%rbp), %eax movl %eax, -2024(%rbp) movl -2024(%rbp), %edx movl $190, %edi leaq L_.str.81(%rip), %rsi movb $0, %al callq _speedtest1_begin_test leaq L_.str.82(%rip), %rdi movb $0, %al callq _speedtest1_exec leaq L_.str.83(%rip), %rdi movb $0, %al callq _speedtest1_exec callq _speedtest1_end_test movl $200, %edi leaq L_.str.84(%rip), %rsi movb $0, %al callq _speedtest1_begin_test leaq L_.str.84(%rip), %rdi movb $0, %al callq _speedtest1_exec callq _speedtest1_end_test movl $210, %edi leaq L_.str.85(%rip), %rsi movb $0, %al callq _speedtest1_begin_test leaq L_.str.86(%rip), %rdi movb $0, %al callq _speedtest1_exec leaq L_.str.87(%rip), %rdi movb $0, %al callq _speedtest1_exec callq _speedtest1_end_test movl -2028(%rbp), %eax movl $5, %ecx cltd idivl %ecx movl %eax, -2024(%rbp) movl -2024(%rbp), %edx movl $230, %edi leaq L_.str.88(%rip), %rsi movb $0, %al callq _speedtest1_begin_test leaq L_.str.45(%rip), %rdi movb $0, %al callq _speedtest1_exec movl -2024(%rbp), %esi leaq L_.str.89(%rip), %rdi movb $0, %al callq _speedtest1_prepare movl $1, -2020(%rbp) LBB13_41: ## =>This Inner Loop Header: Depth=1 movl -2020(%rbp), %eax cmpl -2024(%rbp), %eax jg LBB13_44 ## %bb.42: ## in Loop: Header=BB13_41 Depth=1 callq _speedtest1_random xorl %edx, %edx divl -2032(%rbp) movl %edx, -2036(%rbp) callq _speedtest1_random movl $10, %ecx xorl %edx, %edx divl %ecx movl %edx, -2060(%rbp) ## 4-byte Spill movl -2028(%rbp), %eax movl $5000, %ecx ## imm = 0x1388 cltd idivl %ecx movl %eax, %ecx movl -2060(%rbp), %eax ## 4-byte Reload addl %ecx, %eax addl -2036(%rbp), %eax movl %eax, -2040(%rbp) movq _g+8(%rip), %rdi movl -2036(%rbp), %edx movl $1, %esi callq _sqlite3_bind_int movq _g+8(%rip), %rdi movl -2040(%rbp), %edx movl $2, %esi callq _sqlite3_bind_int callq _speedtest1_execute ## %bb.43: ## in Loop: Header=BB13_41 Depth=1 movl -2020(%rbp), %eax addl $1, %eax movl %eax, -2020(%rbp) jmp LBB13_41 LBB13_44: leaq L_.str.48(%rip), %rdi movb $0, %al callq _speedtest1_exec callq _speedtest1_end_test movl -2028(%rbp), %eax movl %eax, -2024(%rbp) movl -2024(%rbp), %edx movl $240, %edi leaq L_.str.90(%rip), %rsi movb $0, %al callq _speedtest1_begin_test leaq L_.str.45(%rip), %rdi movb $0, %al callq _speedtest1_exec movl -2024(%rbp), %esi leaq L_.str.91(%rip), %rdi movb $0, %al callq _speedtest1_prepare movl $1, -2020(%rbp) LBB13_45: ## =>This Inner Loop Header: Depth=1 movl -2020(%rbp), %eax cmpl -2024(%rbp), %eax jg LBB13_48 ## %bb.46: ## in Loop: Header=BB13_45 Depth=1 callq _speedtest1_random xorl %edx, %edx divl -2028(%rbp) addl $1, %edx movl %edx, -2036(%rbp) movq _g+8(%rip), %rdi movl -2036(%rbp), %edx movl $1, %esi callq _sqlite3_bind_int callq _speedtest1_execute ## %bb.47: ## in Loop: Header=BB13_45 Depth=1 movl -2020(%rbp), %eax addl $1, %eax movl %eax, -2020(%rbp) jmp LBB13_45 LBB13_48: leaq L_.str.48(%rip), %rdi movb $0, %al callq _speedtest1_exec callq _speedtest1_end_test movl -2028(%rbp), %edx movl $250, %edi leaq L_.str.92(%rip), %rsi movb $0, %al callq _speedtest1_begin_test leaq L_.str.93(%rip), %rdi movb $0, %al callq _speedtest1_exec callq _speedtest1_end_test movl $260, %edi ## imm = 0x104 leaq L_.str.94(%rip), %rsi movb $0, %al callq _speedtest1_begin_test leaq L_.str.87(%rip), %rdi movb $0, %al callq _speedtest1_exec callq _speedtest1_end_test movl -2028(%rbp), %eax movl $5, %ecx cltd idivl %ecx movl %eax, -2024(%rbp) movl -2024(%rbp), %edx movl $270, %edi ## imm = 0x10E leaq L_.str.95(%rip), %rsi movb $0, %al callq _speedtest1_begin_test leaq L_.str.45(%rip), %rdi movb $0, %al callq _speedtest1_exec movl -2024(%rbp), %esi leaq L_.str.96(%rip), %rdi movb $0, %al callq _speedtest1_prepare movl $1, -2020(%rbp) LBB13_49: ## =>This Inner Loop Header: Depth=1 movl -2020(%rbp), %eax cmpl -2024(%rbp), %eax jg LBB13_52 ## %bb.50: ## in Loop: Header=BB13_49 Depth=1 callq _speedtest1_random xorl %edx, %edx divl -2032(%rbp) addl $1, %edx movl %edx, -2036(%rbp) callq _speedtest1_random movl $10, %ecx xorl %edx, %edx divl %ecx movl %edx, -2064(%rbp) ## 4-byte Spill movl -2028(%rbp), %eax movl $5000, %ecx ## imm = 0x1388 cltd idivl %ecx movl %eax, %ecx movl -2064(%rbp), %eax ## 4-byte Reload addl %ecx, %eax addl -2036(%rbp), %eax movl %eax, -2040(%rbp) movq _g+8(%rip), %rdi movl -2036(%rbp), %edx movl $1, %esi callq _sqlite3_bind_int movq _g+8(%rip), %rdi movl -2040(%rbp), %edx movl $2, %esi callq _sqlite3_bind_int callq _speedtest1_execute ## %bb.51: ## in Loop: Header=BB13_49 Depth=1 movl -2020(%rbp), %eax addl $1, %eax movl %eax, -2020(%rbp) jmp LBB13_49 LBB13_52: leaq L_.str.48(%rip), %rdi movb $0, %al callq _speedtest1_exec callq _speedtest1_end_test movl -2028(%rbp), %eax movl %eax, -2024(%rbp) movl -2024(%rbp), %edx movl $280, %edi ## imm = 0x118 leaq L_.str.97(%rip), %rsi movb $0, %al callq _speedtest1_begin_test leaq L_.str.45(%rip), %rdi movb $0, %al callq _speedtest1_exec movl -2024(%rbp), %esi leaq L_.str.98(%rip), %rdi movb $0, %al callq _speedtest1_prepare movl $1, -2020(%rbp) LBB13_53: ## =>This Inner Loop Header: Depth=1 movl -2020(%rbp), %eax cmpl -2024(%rbp), %eax jg LBB13_56 ## %bb.54: ## in Loop: Header=BB13_53 Depth=1 callq _speedtest1_random xorl %edx, %edx divl -2028(%rbp) addl $1, %edx movl %edx, -2036(%rbp) movq _g+8(%rip), %rdi movl -2036(%rbp), %edx movl $1, %esi callq _sqlite3_bind_int callq _speedtest1_execute ## %bb.55: ## in Loop: Header=BB13_53 Depth=1 movl -2020(%rbp), %eax addl $1, %eax movl %eax, -2020(%rbp) jmp LBB13_53 LBB13_56: leaq L_.str.48(%rip), %rdi movb $0, %al callq _speedtest1_exec callq _speedtest1_end_test movl -2028(%rbp), %edx movl $290, %edi ## imm = 0x122 leaq L_.str.99(%rip), %rsi movb $0, %al callq _speedtest1_begin_test leaq L_.str.100(%rip), %rdi movb $0, %al callq _speedtest1_exec leaq L_.str.101(%rip), %rdi movb $0, %al callq _speedtest1_exec callq _speedtest1_end_test movl -2028(%rbp), %edx movl $300, %edi ## imm = 0x12C leaq L_.str.102(%rip), %rsi movb $0, %al callq _speedtest1_begin_test leaq L_.str.82(%rip), %rdi movb $0, %al callq _speedtest1_exec leaq L_.str.103(%rip), %rdi movb $0, %al callq _speedtest1_exec leaq L_.str.104(%rip), %rdi movb $0, %al callq _speedtest1_exec callq _speedtest1_end_test movl -2028(%rbp), %eax movl $5, %ecx cltd idivl %ecx movl %eax, -2024(%rbp) movl -2024(%rbp), %edx movl $310, %edi ## imm = 0x136 leaq L_.str.105(%rip), %rsi movb $0, %al callq _speedtest1_begin_test leaq L_.str.45(%rip), %rdi movb $0, %al callq _speedtest1_exec leaq L_.str.106(%rip), %rdi movb $0, %al callq _speedtest1_prepare movl $1, -2020(%rbp) LBB13_57: ## =>This Inner Loop Header: Depth=1 movl -2020(%rbp), %eax cmpl -2024(%rbp), %eax jg LBB13_60 ## %bb.58: ## in Loop: Header=BB13_57 Depth=1 callq _speedtest1_random xorl %edx, %edx divl -2028(%rbp) addl $1, %edx movl %edx, -2036(%rbp) callq _speedtest1_random movl $10, %ecx xorl %edx, %edx divl %ecx movl %edx, %eax addl -2036(%rbp), %eax addl $4, %eax movl %eax, -2040(%rbp) movq _g+8(%rip), %rdi movl -2036(%rbp), %edx movl $1, %esi callq _sqlite3_bind_int movq _g+8(%rip), %rdi movl -2040(%rbp), %edx movl $2, %esi callq _sqlite3_bind_int callq _speedtest1_execute ## %bb.59: ## in Loop: Header=BB13_57 Depth=1 movl -2020(%rbp), %eax addl $1, %eax movl %eax, -2020(%rbp) jmp LBB13_57 LBB13_60: leaq L_.str.48(%rip), %rdi movb $0, %al callq _speedtest1_exec callq _speedtest1_end_test movl -2024(%rbp), %edx movl $320, %edi ## imm = 0x140 leaq L_.str.107(%rip), %rsi movb $0, %al callq _speedtest1_begin_test leaq L_.str.108(%rip), %rdi movb $0, %al callq _speedtest1_prepare movq _g+8(%rip), %rax movq %rax, -2072(%rbp) ## 8-byte Spill movl _g+52(%rip), %edi callq _est_square_root movq -2072(%rbp), %rdi ## 8-byte Reload imull $50, %eax, %edx movl $1, %esi callq _sqlite3_bind_int callq _speedtest1_execute callq _speedtest1_end_test movl $980, %edi ## imm = 0x3D4 leaq L_.str.109(%rip), %rsi movb $0, %al callq _speedtest1_begin_test leaq L_.str.109(%rip), %rdi movb $0, %al callq _speedtest1_exec callq _speedtest1_end_test movl $990, %edi ## imm = 0x3DE leaq L_.str.110(%rip), %rsi movb $0, %al callq _speedtest1_begin_test leaq L_.str.110(%rip), %rdi movb $0, %al callq _speedtest1_exec callq _speedtest1_end_test movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB13_62 ## %bb.61: addq $2080, %rsp ## imm = 0x820 popq %rbp retq LBB13_62: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function est_square_root _est_square_root: ## @est_square_root .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, -4(%rbp) movl -4(%rbp), %eax movl $2, %ecx cltd idivl %ecx movl %eax, -8(%rbp) movl $0, -16(%rbp) LBB14_1: ## =>This Inner Loop Header: Depth=1 xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $0, -8(%rbp) movb %al, -17(%rbp) ## 1-byte Spill jle LBB14_3 ## %bb.2: ## in Loop: Header=BB14_1 Depth=1 cmpl $10, -16(%rbp) setl %al movb %al, -17(%rbp) ## 1-byte Spill LBB14_3: ## in Loop: Header=BB14_1 Depth=1 movb -17(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB14_4 jmp LBB14_8 LBB14_4: ## in Loop: Header=BB14_1 Depth=1 movl -8(%rbp), %eax movl %eax, -24(%rbp) ## 4-byte Spill movl -4(%rbp), %eax cltd idivl -8(%rbp) movl %eax, %ecx movl -24(%rbp), %eax ## 4-byte Reload addl %ecx, %eax movl $2, %ecx cltd idivl %ecx movl %eax, -12(%rbp) movl -12(%rbp), %eax cmpl -8(%rbp), %eax jne LBB14_6 ## %bb.5: jmp LBB14_8 LBB14_6: ## in Loop: Header=BB14_1 Depth=1 movl -12(%rbp), %eax movl %eax, -8(%rbp) ## %bb.7: ## in Loop: Header=BB14_1 Depth=1 movl -16(%rbp), %eax addl $1, %eax movl %eax, -16(%rbp) jmp LBB14_1 LBB14_8: movl -8(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ## -- Begin function testset_cte LCPI15_0: .quad 0x3fa999999999999a ## double 0.050000000000000003 LCPI15_1: .quad 0x4014000000000000 ## double 5 .section __TEXT,__text,regular,pure_instructions .globl _testset_cte .p2align 4, 0x90 _testset_cte: ## @testset_cte .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 cmpl $25, _g+52(%rip) jge LBB15_2 ## %bb.1: movq _testset_cte.azPuzzle(%rip), %rax movq %rax, -8(%rbp) jmp LBB15_6 LBB15_2: cmpl $70, _g+52(%rip) jge LBB15_4 ## %bb.3: movq _testset_cte.azPuzzle+8(%rip), %rax movq %rax, -8(%rbp) jmp LBB15_5 LBB15_4: movq _testset_cte.azPuzzle+16(%rip), %rax movq %rax, -8(%rbp) LBB15_5: jmp LBB15_6 LBB15_6: movl $100, %edi leaq L_.str.114(%rip), %rsi movb $0, %al callq _speedtest1_begin_test leaq L_.str.115(%rip), %rdi movb $0, %al callq _speedtest1_prepare movq _g+8(%rip), %rdi movq -8(%rbp), %rdx movl $1, %esi movl $4294967295, %ecx ## imm = 0xFFFFFFFF xorl %eax, %eax movl %eax, %r8d callq _sqlite3_bind_text callq _speedtest1_execute callq _speedtest1_end_test movl $200, %edi leaq L_.str.116(%rip), %rsi movb $0, %al callq _speedtest1_begin_test leaq L_.str.117(%rip), %rdi movb $0, %al callq _speedtest1_prepare movq _g+8(%rip), %rdi movq -8(%rbp), %rdx movl $1, %esi movl $4294967295, %ecx ## imm = 0xFFFFFFFF xorl %eax, %eax movl %eax, %r8d callq _sqlite3_bind_text callq _speedtest1_execute callq _speedtest1_end_test cvtsi2sdl _g+52(%rip), %xmm1 movsd LCPI15_1(%rip), %xmm0 ## xmm0 = mem[0],zero divsd %xmm1, %xmm0 movsd %xmm0, -16(%rbp) movsd -16(%rbp), %xmm0 ## xmm0 = mem[0],zero movl $300, %edi ## imm = 0x12C leaq L_.str.118(%rip), %rsi movb $1, %al callq _speedtest1_begin_test leaq L_.str.119(%rip), %rdi movb $0, %al callq _speedtest1_prepare movq _g+8(%rip), %rdi movsd LCPI15_0(%rip), %xmm0 ## xmm0 = mem[0],zero mulsd -16(%rbp), %xmm0 movl $1, %esi callq _sqlite3_bind_double movq _g+8(%rip), %rdi movsd -16(%rbp), %xmm0 ## xmm0 = mem[0],zero movl $2, %esi callq _sqlite3_bind_double callq _speedtest1_execute callq _speedtest1_end_test imull $10000, _g+52(%rip), %eax ## imm = 0x2710 movl %eax, -20(%rbp) movl -20(%rbp), %edx movl $400, %edi ## imm = 0x190 leaq L_.str.120(%rip), %rsi movb $0, %al callq _speedtest1_begin_test movl -20(%rbp), %esi movl -20(%rbp), %edx leaq L_.str.121(%rip), %rdi movb $0, %al callq _speedtest1_prepare callq _speedtest1_execute callq _speedtest1_end_test addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _testset_rtree ## -- Begin function testset_rtree .p2align 4, 0x90 _testset_rtree: ## @testset_rtree .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $128, %rsp movl %edi, -4(%rbp) movl %esi, -8(%rbp) movslq _g+52(%rip), %rax shlq $2, %rax imulq $100, %rax, %rax movl %eax, %edi callq _sqlite3_malloc movq %rax, -56(%rbp) movl $15000, -20(%rbp) ## imm = 0x3A98 imull $100, _g+52(%rip), %eax movl %eax, -16(%rbp) movl -16(%rbp), %edx movl $100, %edi leaq L_.str.122(%rip), %rsi movb $0, %al callq _speedtest1_begin_test leaq L_.str.45(%rip), %rdi movb $0, %al callq _speedtest1_exec leaq L_.str.123(%rip), %rdi movb $0, %al callq _speedtest1_exec leaq L_.str.124(%rip), %rdi movb $0, %al callq _speedtest1_prepare movl $1, -12(%rbp) LBB16_1: ## =>This Inner Loop Header: Depth=1 movl -12(%rbp), %eax cmpl -16(%rbp), %eax ja LBB16_4 ## %bb.2: ## in Loop: Header=BB16_1 Depth=1 movl -4(%rbp), %edi movl -8(%rbp), %esi movl -20(%rbp), %edx leaq -24(%rbp), %rcx leaq -28(%rbp), %r8 callq _twoCoords movl -4(%rbp), %edi movl -8(%rbp), %esi movl -20(%rbp), %edx leaq -32(%rbp), %rcx leaq -36(%rbp), %r8 callq _twoCoords movl -4(%rbp), %edi movl -8(%rbp), %esi movl -20(%rbp), %edx leaq -40(%rbp), %rcx leaq -44(%rbp), %r8 callq _twoCoords movq _g+8(%rip), %rdi movl -12(%rbp), %edx movl $1, %esi callq _sqlite3_bind_int movq _g+8(%rip), %rdi movl -24(%rbp), %edx movl $2, %esi callq _sqlite3_bind_int movq _g+8(%rip), %rdi movl -28(%rbp), %edx movl $3, %esi callq _sqlite3_bind_int movq _g+8(%rip), %rdi movl -32(%rbp), %edx movl $4, %esi callq _sqlite3_bind_int movq _g+8(%rip), %rdi movl -36(%rbp), %edx movl $5, %esi callq _sqlite3_bind_int movq _g+8(%rip), %rdi movl -40(%rbp), %edx movl $6, %esi callq _sqlite3_bind_int movq _g+8(%rip), %rdi movl -44(%rbp), %edx movl $7, %esi callq _sqlite3_bind_int callq _speedtest1_execute ## %bb.3: ## in Loop: Header=BB16_1 Depth=1 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB16_1 LBB16_4: leaq L_.str.48(%rip), %rdi movb $0, %al callq _speedtest1_exec callq _speedtest1_end_test movl $101, %edi leaq L_.str.125(%rip), %rsi movb $0, %al callq _speedtest1_begin_test leaq L_.str.126(%rip), %rdi movb $0, %al callq _speedtest1_exec leaq L_.str.127(%rip), %rdi movb $0, %al callq _speedtest1_exec callq _speedtest1_end_test imull $20, _g+52(%rip), %eax movl %eax, -16(%rbp) movl -16(%rbp), %edx movl $110, %edi leaq L_.str.128(%rip), %rsi movb $0, %al callq _speedtest1_begin_test leaq L_.str.129(%rip), %rdi movb $0, %al callq _speedtest1_prepare movl -20(%rbp), %eax xorl %edx, %edx divl -16(%rbp) movl %eax, -48(%rbp) movl $0, -12(%rbp) LBB16_5: ## =>This Inner Loop Header: Depth=1 movl -12(%rbp), %eax cmpl -16(%rbp), %eax jae LBB16_8 ## %bb.6: ## in Loop: Header=BB16_5 Depth=1 movq _g+8(%rip), %rdi movl -12(%rbp), %edx imull -48(%rbp), %edx movl $1, %esi callq _sqlite3_bind_int movq _g+8(%rip), %rdi movl -12(%rbp), %edx addl $1, %edx imull -48(%rbp), %edx movl $2, %esi callq _sqlite3_bind_int callq _speedtest1_execute leaq _g(%rip), %rdi addq $92, %rdi callq _atoi movl %eax, %edx movq -56(%rbp), %rax movl -12(%rbp), %ecx ## kill: def $rcx killed $ecx movl %edx, (%rax,%rcx,4) ## %bb.7: ## in Loop: Header=BB16_5 Depth=1 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB16_5 LBB16_8: callq _speedtest1_end_test cmpl $0, _g+48(%rip) je LBB16_16 ## %bb.9: imull $20, _g+52(%rip), %eax movl %eax, -16(%rbp) movl $111, %edi leaq L_.str.130(%rip), %rsi movb $0, %al callq _speedtest1_begin_test leaq L_.str.131(%rip), %rdi movb $0, %al callq _speedtest1_prepare movl -20(%rbp), %eax xorl %edx, %edx divl -16(%rbp) movl %eax, -48(%rbp) movl $0, -12(%rbp) LBB16_10: ## =>This Inner Loop Header: Depth=1 movl -12(%rbp), %eax cmpl -16(%rbp), %eax jae LBB16_15 ## %bb.11: ## in Loop: Header=BB16_10 Depth=1 movq _g+8(%rip), %rdi movl -12(%rbp), %edx imull -48(%rbp), %edx movl $1, %esi callq _sqlite3_bind_int movq _g+8(%rip), %rdi movl -12(%rbp), %edx addl $1, %edx imull -48(%rbp), %edx movl $2, %esi callq _sqlite3_bind_int callq _speedtest1_execute movq -56(%rbp), %rax movl -12(%rbp), %ecx ## kill: def $rcx killed $ecx movl (%rax,%rcx,4), %eax movl %eax, -60(%rbp) ## 4-byte Spill leaq _g(%rip), %rdi addq $92, %rdi callq _atoi movl %eax, %ecx movl -60(%rbp), %eax ## 4-byte Reload cmpl %ecx, %eax je LBB16_13 ## %bb.12: ## in Loop: Header=BB16_10 Depth=1 movl -12(%rbp), %eax movl %eax, -76(%rbp) ## 4-byte Spill movl -12(%rbp), %eax imull -48(%rbp), %eax movl %eax, -72(%rbp) ## 4-byte Spill movl -12(%rbp), %eax addl $1, %eax imull -48(%rbp), %eax movl %eax, -68(%rbp) ## 4-byte Spill movq -56(%rbp), %rax movl -12(%rbp), %ecx ## kill: def $rcx killed $ecx movl (%rax,%rcx,4), %eax movl %eax, -64(%rbp) ## 4-byte Spill leaq _g(%rip), %rdi addq $92, %rdi callq _atoi movl -76(%rbp), %esi ## 4-byte Reload movl -72(%rbp), %edx ## 4-byte Reload movl -68(%rbp), %ecx ## 4-byte Reload movl -64(%rbp), %r8d ## 4-byte Reload movl %eax, %r9d leaq L_.str.132(%rip), %rdi movb $0, %al callq _fatal_error LBB16_13: ## in Loop: Header=BB16_10 Depth=1 jmp LBB16_14 LBB16_14: ## in Loop: Header=BB16_10 Depth=1 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB16_10 LBB16_15: callq _speedtest1_end_test LBB16_16: imull $20, _g+52(%rip), %eax movl %eax, -16(%rbp) movl -16(%rbp), %edx movl $120, %edi leaq L_.str.133(%rip), %rsi movb $0, %al callq _speedtest1_begin_test leaq L_.str.134(%rip), %rdi movb $0, %al callq _speedtest1_prepare movl -20(%rbp), %eax xorl %edx, %edx divl -16(%rbp) movl %eax, -48(%rbp) movl $0, -12(%rbp) LBB16_17: ## =>This Inner Loop Header: Depth=1 movl -12(%rbp), %eax cmpl -16(%rbp), %eax jae LBB16_20 ## %bb.18: ## in Loop: Header=BB16_17 Depth=1 movq _g+8(%rip), %rdi movl -12(%rbp), %edx imull -48(%rbp), %edx movl $1, %esi callq _sqlite3_bind_int movq _g+8(%rip), %rdi movl -12(%rbp), %edx addl $1, %edx imull -48(%rbp), %edx movl $2, %esi callq _sqlite3_bind_int callq _speedtest1_execute leaq _g(%rip), %rdi addq $92, %rdi callq _atoi movl %eax, %edx movq -56(%rbp), %rax movl -12(%rbp), %ecx ## kill: def $rcx killed $ecx movl %edx, (%rax,%rcx,4) ## %bb.19: ## in Loop: Header=BB16_17 Depth=1 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB16_17 LBB16_20: callq _speedtest1_end_test cmpl $0, _g+48(%rip) je LBB16_28 ## %bb.21: imull $20, _g+52(%rip), %eax movl %eax, -16(%rbp) movl $121, %edi leaq L_.str.135(%rip), %rsi movb $0, %al callq _speedtest1_begin_test leaq L_.str.136(%rip), %rdi movb $0, %al callq _speedtest1_prepare movl -20(%rbp), %eax xorl %edx, %edx divl -16(%rbp) movl %eax, -48(%rbp) movl $0, -12(%rbp) LBB16_22: ## =>This Inner Loop Header: Depth=1 movl -12(%rbp), %eax cmpl -16(%rbp), %eax jae LBB16_27 ## %bb.23: ## in Loop: Header=BB16_22 Depth=1 movq _g+8(%rip), %rdi movl -12(%rbp), %edx imull -48(%rbp), %edx movl $1, %esi callq _sqlite3_bind_int movq _g+8(%rip), %rdi movl -12(%rbp), %edx addl $1, %edx imull -48(%rbp), %edx movl $2, %esi callq _sqlite3_bind_int callq _speedtest1_execute movq -56(%rbp), %rax movl -12(%rbp), %ecx ## kill: def $rcx killed $ecx movl (%rax,%rcx,4), %eax movl %eax, -80(%rbp) ## 4-byte Spill leaq _g(%rip), %rdi addq $92, %rdi callq _atoi movl %eax, %ecx movl -80(%rbp), %eax ## 4-byte Reload cmpl %ecx, %eax je LBB16_25 ## %bb.24: ## in Loop: Header=BB16_22 Depth=1 movl -12(%rbp), %eax movl %eax, -96(%rbp) ## 4-byte Spill movl -12(%rbp), %eax imull -48(%rbp), %eax movl %eax, -92(%rbp) ## 4-byte Spill movl -12(%rbp), %eax addl $1, %eax imull -48(%rbp), %eax movl %eax, -88(%rbp) ## 4-byte Spill movq -56(%rbp), %rax movl -12(%rbp), %ecx ## kill: def $rcx killed $ecx movl (%rax,%rcx,4), %eax movl %eax, -84(%rbp) ## 4-byte Spill leaq _g(%rip), %rdi addq $92, %rdi callq _atoi movl -96(%rbp), %esi ## 4-byte Reload movl -92(%rbp), %edx ## 4-byte Reload movl -88(%rbp), %ecx ## 4-byte Reload movl -84(%rbp), %r8d ## 4-byte Reload movl %eax, %r9d leaq L_.str.132(%rip), %rdi movb $0, %al callq _fatal_error LBB16_25: ## in Loop: Header=BB16_22 Depth=1 jmp LBB16_26 LBB16_26: ## in Loop: Header=BB16_22 Depth=1 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB16_22 LBB16_27: callq _speedtest1_end_test LBB16_28: imull $20, _g+52(%rip), %eax movl %eax, -16(%rbp) movl -16(%rbp), %edx movl $125, %edi leaq L_.str.137(%rip), %rsi movb $0, %al callq _speedtest1_begin_test leaq L_.str.138(%rip), %rdi movb $0, %al callq _speedtest1_prepare movl -20(%rbp), %eax xorl %edx, %edx divl -16(%rbp) movl %eax, -48(%rbp) movl $0, -12(%rbp) LBB16_29: ## =>This Inner Loop Header: Depth=1 movl -12(%rbp), %eax cmpl -16(%rbp), %eax jae LBB16_34 ## %bb.30: ## in Loop: Header=BB16_29 Depth=1 movq _g+8(%rip), %rdi movl -12(%rbp), %edx imull -48(%rbp), %edx movl $1, %esi callq _sqlite3_bind_int movq _g+8(%rip), %rdi movl -12(%rbp), %edx addl $1, %edx imull -48(%rbp), %edx movl $2, %esi callq _sqlite3_bind_int callq _speedtest1_execute movq -56(%rbp), %rax movl -12(%rbp), %ecx ## kill: def $rcx killed $ecx movl (%rax,%rcx,4), %eax movl %eax, -100(%rbp) ## 4-byte Spill leaq _g(%rip), %rdi addq $92, %rdi callq _atoi movl %eax, %ecx movl -100(%rbp), %eax ## 4-byte Reload cmpl %ecx, %eax je LBB16_32 ## %bb.31: ## in Loop: Header=BB16_29 Depth=1 movl -12(%rbp), %eax movl %eax, -116(%rbp) ## 4-byte Spill movl -12(%rbp), %eax imull -48(%rbp), %eax movl %eax, -112(%rbp) ## 4-byte Spill movl -12(%rbp), %eax addl $1, %eax imull -48(%rbp), %eax movl %eax, -108(%rbp) ## 4-byte Spill movq -56(%rbp), %rax movl -12(%rbp), %ecx ## kill: def $rcx killed $ecx movl (%rax,%rcx,4), %eax movl %eax, -104(%rbp) ## 4-byte Spill leaq _g(%rip), %rdi addq $92, %rdi callq _atoi movl -116(%rbp), %esi ## 4-byte Reload movl -112(%rbp), %edx ## 4-byte Reload movl -108(%rbp), %ecx ## 4-byte Reload movl -104(%rbp), %r8d ## 4-byte Reload movl %eax, %r9d leaq L_.str.132(%rip), %rdi movb $0, %al callq _fatal_error LBB16_32: ## in Loop: Header=BB16_29 Depth=1 jmp LBB16_33 LBB16_33: ## in Loop: Header=BB16_29 Depth=1 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB16_29 LBB16_34: callq _speedtest1_end_test imull $80, _g+52(%rip), %eax movl %eax, -16(%rbp) movl -16(%rbp), %edx movl $130, %edi leaq L_.str.139(%rip), %rsi movb $0, %al callq _speedtest1_begin_test leaq L_.str.140(%rip), %rdi movb $0, %al callq _speedtest1_prepare movl -20(%rbp), %eax xorl %edx, %edx divl -16(%rbp) movl %eax, -48(%rbp) movl $0, -12(%rbp) LBB16_35: ## =>This Inner Loop Header: Depth=1 movl -12(%rbp), %eax cmpl -16(%rbp), %eax jae LBB16_38 ## %bb.36: ## in Loop: Header=BB16_35 Depth=1 movq _g+8(%rip), %rdi movl -12(%rbp), %edx imull -48(%rbp), %edx movl $1, %esi callq _sqlite3_bind_int movq _g+8(%rip), %rdi movl -12(%rbp), %edx addl $1, %edx imull -48(%rbp), %edx movl $2, %esi callq _sqlite3_bind_int callq _speedtest1_execute leaq _g(%rip), %rdi addq $92, %rdi callq _atoi movl %eax, %edx movq -56(%rbp), %rax movl -12(%rbp), %ecx ## kill: def $rcx killed $ecx movl %edx, (%rax,%rcx,4) ## %bb.37: ## in Loop: Header=BB16_35 Depth=1 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB16_35 LBB16_38: callq _speedtest1_end_test imull $100, _g+52(%rip), %eax movl %eax, -16(%rbp) movl -16(%rbp), %edx movl $140, %edi leaq L_.str.141(%rip), %rsi movb $0, %al callq _speedtest1_begin_test leaq L_.str.142(%rip), %rdi movb $0, %al callq _speedtest1_prepare movl $1, -12(%rbp) LBB16_39: ## =>This Inner Loop Header: Depth=1 movl -12(%rbp), %eax cmpl -16(%rbp), %eax ja LBB16_42 ## %bb.40: ## in Loop: Header=BB16_39 Depth=1 movq _g+8(%rip), %rdi movl -12(%rbp), %edx movl $1, %esi callq _sqlite3_bind_int callq _speedtest1_execute ## %bb.41: ## in Loop: Header=BB16_39 Depth=1 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB16_39 LBB16_42: callq _speedtest1_end_test addq $128, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function twoCoords _twoCoords: ## @twoCoords .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movl %edi, -4(%rbp) movl %esi, -8(%rbp) movl %edx, -12(%rbp) movq %rcx, -24(%rbp) movq %r8, -32(%rbp) movl -12(%rbp), %eax movl $100, %ecx xorl %edx, %edx divl %ecx addl $1, %eax movl %eax, -48(%rbp) callq _speedtest1_random movl $3, %ecx xorl %edx, %edx divl %ecx cmpl $0, %edx jne LBB17_2 ## %bb.1: movl -4(%rbp), %eax imull -48(%rbp), %eax movl %eax, -48(%rbp) LBB17_2: callq _speedtest1_random xorl %edx, %edx divl -8(%rbp) cmpl $0, %edx jne LBB17_4 ## %bb.3: movl -12(%rbp), %eax shrl $1, %eax movl %eax, -48(%rbp) LBB17_4: callq _speedtest1_random xorl %edx, %edx divl -48(%rbp) addl $1, %edx movl %edx, -36(%rbp) callq _speedtest1_random movl -12(%rbp), %ecx subl -36(%rbp), %ecx xorl %edx, %edx divl %ecx addl $1, %edx movl %edx, -40(%rbp) movl -40(%rbp), %eax addl -36(%rbp), %eax movl %eax, -44(%rbp) movl -40(%rbp), %ecx movq -24(%rbp), %rax movl %ecx, (%rax) movl -44(%rbp), %ecx movq -32(%rbp), %rax movl %ecx, (%rax) addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _testset_debug1 ## -- Begin function testset_debug1 .p2align 4, 0x90 _testset_debug1: ## @testset_debug1 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $2032, %rsp ## imm = 0x7F0 movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl _g+52(%rip), %eax movl %eax, -2024(%rbp) movl $1, -2020(%rbp) LBB18_1: ## =>This Inner Loop Header: Depth=1 movl -2020(%rbp), %eax cmpl -2024(%rbp), %eax ja LBB18_4 ## %bb.2: ## in Loop: Header=BB18_1 Depth=1 movl -2020(%rbp), %edi movl -2024(%rbp), %esi callq _swizzle movl %eax, -2028(%rbp) movl -2028(%rbp), %edi movl -2024(%rbp), %esi callq _swizzle movl %eax, -2032(%rbp) movl -2028(%rbp), %edi leaq -2016(%rbp), %rsi movl $2000, %edx ## imm = 0x7D0 callq _speedtest1_numbername movl -2020(%rbp), %esi movl -2028(%rbp), %edx movl -2032(%rbp), %ecx leaq -2016(%rbp), %r8 leaq L_.str.143(%rip), %rdi movb $0, %al callq _printf ## %bb.3: ## in Loop: Header=BB18_1 Depth=1 movl -2020(%rbp), %eax addl $1, %eax movl %eax, -2020(%rbp) jmp LBB18_1 LBB18_4: movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB18_6 ## %bb.5: addq $2032, %rsp ## imm = 0x7F0 popq %rbp retq LBB18_6: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $240, %rsp movl $0, -4(%rbp) movl %edi, -8(%rbp) movq %rsi, -16(%rbp) movl $0, -20(%rbp) movl $0, -24(%rbp) movl $0, -28(%rbp) movl $0, -32(%rbp) movl $0, -36(%rbp) movl $0, -40(%rbp) movq $0, -48(%rbp) movq $0, -56(%rbp) movl $0, -60(%rbp) movl $0, -64(%rbp) movl $0, -68(%rbp) movl $0, -72(%rbp) movl $0, -76(%rbp) movl $0, -80(%rbp) movl $0, -84(%rbp) movl $0, -88(%rbp) movl $0, -92(%rbp) leaq L_.str.144(%rip), %rax movq %rax, -104(%rbp) movl $0, -108(%rbp) movq $0, -120(%rbp) movq $0, -128(%rbp) movq $0, -136(%rbp) movq $0, -144(%rbp) movq $0, -152(%rbp) movq $0, -160(%rbp) leaq L_.str.20(%rip), %rax movq %rax, _g+56(%rip) leaq L_.str.20(%rip), %rax movq %rax, _g+64(%rip) leaq L_.str.145(%rip), %rax movq %rax, _g+72(%rip) movl $100, _g+52(%rip) cmpl $1, -8(%rbp) jle LBB19_2 ## %bb.1: movq -16(%rbp), %rax movq 8(%rax), %rax movsbl (%rax), %eax subl $48, %eax movl %eax, -196(%rbp) ## 4-byte Spill jmp LBB19_3 LBB19_2: movl $3, %eax movl %eax, -196(%rbp) ## 4-byte Spill jmp LBB19_3 LBB19_3: movl -196(%rbp), %eax ## 4-byte Reload movl %eax, -180(%rbp) movl -180(%rbp), %eax ## kill: def $rax killed $eax movq %rax, -208(%rbp) ## 8-byte Spill subq $5, %rax ja LBB19_10 ## %bb.193: movq -208(%rbp), %rax ## 8-byte Reload leaq LJTI19_0(%rip), %rcx movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax LBB19_4: movl $0, -4(%rbp) jmp LBB19_192 LBB19_5: movl $5, -180(%rbp) jmp LBB19_11 LBB19_6: movl $10, -180(%rbp) jmp LBB19_11 LBB19_7: movl $20, -180(%rbp) jmp LBB19_11 LBB19_8: movl $40, -180(%rbp) jmp LBB19_11 LBB19_9: movl $80, -180(%rbp) jmp LBB19_11 LBB19_10: movl -180(%rbp), %esi leaq L_.str.146(%rip), %rdi movb $0, %al callq _printf movl $-1, -4(%rbp) jmp LBB19_192 LBB19_11: movl -180(%rbp), %eax movl %eax, _g+52(%rip) movl $2, -172(%rbp) LBB19_12: ## =>This Loop Header: Depth=1 ## Child Loop BB19_15 Depth 2 movl -172(%rbp), %eax cmpl -8(%rbp), %eax jge LBB19_123 ## %bb.13: ## in Loop: Header=BB19_12 Depth=1 movq -16(%rbp), %rax movslq -172(%rbp), %rcx movq (%rax,%rcx,8), %rax movq %rax, -192(%rbp) movq -192(%rbp), %rax movsbl (%rax), %eax cmpl $45, %eax jne LBB19_117 ## %bb.14: ## in Loop: Header=BB19_12 Depth=1 jmp LBB19_15 LBB19_15: ## Parent Loop BB19_12 Depth=1 ## => This Inner Loop Header: Depth=2 movq -192(%rbp), %rax addq $1, %rax movq %rax, -192(%rbp) ## %bb.16: ## in Loop: Header=BB19_15 Depth=2 movq -192(%rbp), %rax movsbl (%rax), %eax cmpl $45, %eax je LBB19_15 ## %bb.17: ## in Loop: Header=BB19_12 Depth=1 movq -192(%rbp), %rdi leaq L_.str.147(%rip), %rsi callq _strcmp cmpl $0, %eax jne LBB19_19 ## %bb.18: ## in Loop: Header=BB19_12 Depth=1 movl $1, -20(%rbp) jmp LBB19_116 LBB19_19: ## in Loop: Header=BB19_12 Depth=1 movq -192(%rbp), %rdi leaq L_.str.148(%rip), %rsi callq _strcmp cmpl $0, %eax jne LBB19_23 ## %bb.20: ## in Loop: Header=BB19_12 Depth=1 movl -172(%rbp), %eax movl -8(%rbp), %ecx subl $1, %ecx cmpl %ecx, %eax jl LBB19_22 ## %bb.21: ## in Loop: Header=BB19_12 Depth=1 movq -16(%rbp), %rax movslq -172(%rbp), %rcx movq (%rax,%rcx,8), %rsi leaq L_.str.149(%rip), %rdi movb $0, %al callq _fatal_error LBB19_22: ## in Loop: Header=BB19_12 Depth=1 movl -172(%rbp), %eax addl $1, %eax movl %eax, -172(%rbp) movq -16(%rbp), %rax movslq -172(%rbp), %rcx movq (%rax,%rcx,8), %rdi callq _integerValue movl %eax, -24(%rbp) jmp LBB19_115 LBB19_23: ## in Loop: Header=BB19_12 Depth=1 movq -192(%rbp), %rdi leaq L_.str.150(%rip), %rsi callq _strcmp cmpl $0, %eax jne LBB19_25 ## %bb.24: ## in Loop: Header=BB19_12 Depth=1 movl $1, -28(%rbp) jmp LBB19_114 LBB19_25: ## in Loop: Header=BB19_12 Depth=1 movq -192(%rbp), %rdi leaq L_.str.151(%rip), %rsi callq _strcmp cmpl $0, %eax jne LBB19_27 ## %bb.26: ## in Loop: Header=BB19_12 Depth=1 movl $1, _g+40(%rip) movl $1, _g+44(%rip) jmp LBB19_113 LBB19_27: ## in Loop: Header=BB19_12 Depth=1 movq -192(%rbp), %rdi leaq L_.str.152(%rip), %rsi callq _strcmp cmpl $0, %eax jne LBB19_31 ## %bb.28: ## in Loop: Header=BB19_12 Depth=1 movl -172(%rbp), %eax movl -8(%rbp), %ecx subl $2, %ecx cmpl %ecx, %eax jl LBB19_30 ## %bb.29: ## in Loop: Header=BB19_12 Depth=1 movq -16(%rbp), %rax movslq -172(%rbp), %rcx movq (%rax,%rcx,8), %rsi leaq L_.str.153(%rip), %rdi movb $0, %al callq _fatal_error LBB19_30: ## in Loop: Header=BB19_12 Depth=1 movq -16(%rbp), %rax movl -172(%rbp), %ecx addl $1, %ecx movslq %ecx, %rcx movq (%rax,%rcx,8), %rdi callq _integerValue movl %eax, -32(%rbp) movq -16(%rbp), %rax movl -172(%rbp), %ecx addl $2, %ecx movslq %ecx, %rcx movq (%rax,%rcx,8), %rdi callq _integerValue movl %eax, -36(%rbp) movl -172(%rbp), %eax addl $2, %eax movl %eax, -172(%rbp) jmp LBB19_112 LBB19_31: ## in Loop: Header=BB19_12 Depth=1 movq -192(%rbp), %rdi leaq L_.str.154(%rip), %rsi callq _strcmp cmpl $0, %eax jne LBB19_33 ## %bb.32: ## in Loop: Header=BB19_12 Depth=1 movl $1, -40(%rbp) jmp LBB19_111 LBB19_33: ## in Loop: Header=BB19_12 Depth=1 movq -192(%rbp), %rdi leaq L_.str.155(%rip), %rsi callq _strcmp cmpl $0, %eax jne LBB19_37 ## %bb.34: ## in Loop: Header=BB19_12 Depth=1 movl -172(%rbp), %eax movl -8(%rbp), %ecx subl $1, %ecx cmpl %ecx, %eax jl LBB19_36 ## %bb.35: ## in Loop: Header=BB19_12 Depth=1 movq -16(%rbp), %rax movslq -172(%rbp), %rcx movq (%rax,%rcx,8), %rsi leaq L_.str.149(%rip), %rdi movb $0, %al callq _fatal_error LBB19_36: ## in Loop: Header=BB19_12 Depth=1 movq -16(%rbp), %rax movl -172(%rbp), %ecx addl $1, %ecx movl %ecx, -172(%rbp) movslq %ecx, %rcx movq (%rax,%rcx,8), %rax movq %rax, -48(%rbp) jmp LBB19_110 LBB19_37: ## in Loop: Header=BB19_12 Depth=1 movq -192(%rbp), %rdi leaq L_.str.156(%rip), %rsi callq _strcmp cmpl $0, %eax jne LBB19_41 ## %bb.38: ## in Loop: Header=BB19_12 Depth=1 movl -172(%rbp), %eax movl -8(%rbp), %ecx subl $1, %ecx cmpl %ecx, %eax jl LBB19_40 ## %bb.39: ## in Loop: Header=BB19_12 Depth=1 movq -16(%rbp), %rax movslq -172(%rbp), %rcx movq (%rax,%rcx,8), %rsi leaq L_.str.149(%rip), %rdi movb $0, %al callq _fatal_error LBB19_40: ## in Loop: Header=BB19_12 Depth=1 movq -16(%rbp), %rax movl -172(%rbp), %ecx addl $1, %ecx movl %ecx, -172(%rbp) movslq %ecx, %rcx movq (%rax,%rcx,8), %rax movq %rax, -56(%rbp) jmp LBB19_109 LBB19_41: ## in Loop: Header=BB19_12 Depth=1 movq -192(%rbp), %rdi leaq L_.str.157(%rip), %rsi callq _strcmp cmpl $0, %eax jne LBB19_45 ## %bb.42: ## in Loop: Header=BB19_12 Depth=1 movl -172(%rbp), %eax movl -8(%rbp), %ecx subl $2, %ecx cmpl %ecx, %eax jl LBB19_44 ## %bb.43: ## in Loop: Header=BB19_12 Depth=1 movq -16(%rbp), %rax movslq -172(%rbp), %rcx movq (%rax,%rcx,8), %rsi leaq L_.str.153(%rip), %rdi movb $0, %al callq _fatal_error LBB19_44: ## in Loop: Header=BB19_12 Depth=1 movq -16(%rbp), %rax movl -172(%rbp), %ecx addl $1, %ecx movslq %ecx, %rcx movq (%rax,%rcx,8), %rdi callq _integerValue movl %eax, -60(%rbp) movq -16(%rbp), %rax movl -172(%rbp), %ecx addl $2, %ecx movslq %ecx, %rcx movq (%rax,%rcx,8), %rdi callq _integerValue movl %eax, -64(%rbp) movl -172(%rbp), %eax addl $2, %eax movl %eax, -172(%rbp) jmp LBB19_108 LBB19_45: ## in Loop: Header=BB19_12 Depth=1 movq -192(%rbp), %rdi leaq L_.str.158(%rip), %rsi callq _strcmp cmpl $0, %eax jne LBB19_47 ## %bb.46: ## in Loop: Header=BB19_12 Depth=1 movl $1, -68(%rbp) jmp LBB19_107 LBB19_47: ## in Loop: Header=BB19_12 Depth=1 movq -192(%rbp), %rdi leaq L_.str.159(%rip), %rsi callq _strcmp cmpl $0, %eax jne LBB19_49 ## %bb.48: ## in Loop: Header=BB19_12 Depth=1 leaq L_.str.160(%rip), %rax movq %rax, _g+64(%rip) jmp LBB19_106 LBB19_49: ## in Loop: Header=BB19_12 Depth=1 movq -192(%rbp), %rdi leaq L_.str.161(%rip), %rsi callq _strcmp cmpl $0, %eax jne LBB19_53 ## %bb.50: ## in Loop: Header=BB19_12 Depth=1 movl -172(%rbp), %eax movl -8(%rbp), %ecx subl $1, %ecx cmpl %ecx, %eax jl LBB19_52 ## %bb.51: ## in Loop: Header=BB19_12 Depth=1 movq -16(%rbp), %rax movslq -172(%rbp), %rcx movq (%rax,%rcx,8), %rsi leaq L_.str.149(%rip), %rdi movb $0, %al callq _fatal_error LBB19_52: ## in Loop: Header=BB19_12 Depth=1 movq -16(%rbp), %rax movl -172(%rbp), %ecx addl $1, %ecx movl %ecx, -172(%rbp) movslq %ecx, %rcx movq (%rax,%rcx,8), %rdi callq _integerValue movl %eax, -72(%rbp) jmp LBB19_105 LBB19_53: ## in Loop: Header=BB19_12 Depth=1 movq -192(%rbp), %rdi leaq L_.str.162(%rip), %rsi callq _strcmp cmpl $0, %eax jne LBB19_57 ## %bb.54: ## in Loop: Header=BB19_12 Depth=1 movl -172(%rbp), %eax movl -8(%rbp), %ecx subl $2, %ecx cmpl %ecx, %eax jl LBB19_56 ## %bb.55: ## in Loop: Header=BB19_12 Depth=1 movq -16(%rbp), %rax movslq -172(%rbp), %rcx movq (%rax,%rcx,8), %rsi leaq L_.str.153(%rip), %rdi movb $0, %al callq _fatal_error LBB19_56: ## in Loop: Header=BB19_12 Depth=1 movq -16(%rbp), %rax movl -172(%rbp), %ecx addl $1, %ecx movslq %ecx, %rcx movq (%rax,%rcx,8), %rdi callq _integerValue movl %eax, -76(%rbp) movq -16(%rbp), %rax movl -172(%rbp), %ecx addl $2, %ecx movslq %ecx, %rcx movq (%rax,%rcx,8), %rdi callq _integerValue movl %eax, -80(%rbp) movl -172(%rbp), %eax addl $2, %eax movl %eax, -172(%rbp) jmp LBB19_104 LBB19_57: ## in Loop: Header=BB19_12 Depth=1 movq -192(%rbp), %rdi leaq L_.str.163(%rip), %rsi callq _strcmp cmpl $0, %eax jne LBB19_59 ## %bb.58: ## in Loop: Header=BB19_12 Depth=1 leaq L_.str.164(%rip), %rax movq %rax, _g+72(%rip) jmp LBB19_103 LBB19_59: ## in Loop: Header=BB19_12 Depth=1 movq -192(%rbp), %rdi leaq L_.str.165(%rip), %rsi callq _strcmp cmpl $0, %eax jne LBB19_61 ## %bb.60: ## in Loop: Header=BB19_12 Depth=1 movl $1, _g+36(%rip) jmp LBB19_102 LBB19_61: ## in Loop: Header=BB19_12 Depth=1 movq -192(%rbp), %rdi leaq L_.str.166(%rip), %rsi callq _strcmp cmpl $0, %eax jne LBB19_65 ## %bb.62: ## in Loop: Header=BB19_12 Depth=1 movl -172(%rbp), %eax movl -8(%rbp), %ecx subl $2, %ecx cmpl %ecx, %eax jl LBB19_64 ## %bb.63: ## in Loop: Header=BB19_12 Depth=1 movq -16(%rbp), %rax movslq -172(%rbp), %rcx movq (%rax,%rcx,8), %rsi leaq L_.str.153(%rip), %rdi movb $0, %al callq _fatal_error LBB19_64: ## in Loop: Header=BB19_12 Depth=1 movq -16(%rbp), %rax movl -172(%rbp), %ecx addl $1, %ecx movslq %ecx, %rcx movq (%rax,%rcx,8), %rdi callq _integerValue movl %eax, -84(%rbp) movq -16(%rbp), %rax movl -172(%rbp), %ecx addl $2, %ecx movslq %ecx, %rcx movq (%rax,%rcx,8), %rdi callq _integerValue movl %eax, -88(%rbp) movl -172(%rbp), %eax addl $2, %eax movl %eax, -172(%rbp) jmp LBB19_101 LBB19_65: ## in Loop: Header=BB19_12 Depth=1 movq -192(%rbp), %rdi leaq L_.str.167(%rip), %rsi callq _strcmp cmpl $0, %eax jne LBB19_67 ## %bb.66: ## in Loop: Header=BB19_12 Depth=1 movl $1, _g+40(%rip) jmp LBB19_100 LBB19_67: ## in Loop: Header=BB19_12 Depth=1 movq -192(%rbp), %rdi leaq L_.str.168(%rip), %rsi callq _strcmp cmpl $0, %eax jne LBB19_71 ## %bb.68: ## in Loop: Header=BB19_12 Depth=1 movl -172(%rbp), %eax movl -8(%rbp), %ecx subl $1, %ecx cmpl %ecx, %eax jl LBB19_70 ## %bb.69: ## in Loop: Header=BB19_12 Depth=1 movq -16(%rbp), %rax movslq -172(%rbp), %rcx movq (%rax,%rcx,8), %rsi leaq L_.str.149(%rip), %rdi movb $0, %al callq _fatal_error LBB19_70: ## in Loop: Header=BB19_12 Depth=1 movq -16(%rbp), %rax movl -172(%rbp), %ecx addl $1, %ecx movl %ecx, -172(%rbp) movslq %ecx, %rcx movq (%rax,%rcx,8), %rdi callq _integerValue movl %eax, _g+52(%rip) jmp LBB19_99 LBB19_71: ## in Loop: Header=BB19_12 Depth=1 movq -192(%rbp), %rdi leaq L_.str.169(%rip), %rsi callq _strcmp cmpl $0, %eax jne LBB19_73 ## %bb.72: ## in Loop: Header=BB19_12 Depth=1 movl $1, -92(%rbp) jmp LBB19_98 LBB19_73: ## in Loop: Header=BB19_12 Depth=1 movq -192(%rbp), %rdi leaq L_.str.170(%rip), %rsi callq _strcmp cmpl $0, %eax jne LBB19_77 ## %bb.74: ## in Loop: Header=BB19_12 Depth=1 movl -172(%rbp), %eax movl -8(%rbp), %ecx subl $1, %ecx cmpl %ecx, %eax jl LBB19_76 ## %bb.75: ## in Loop: Header=BB19_12 Depth=1 movq -16(%rbp), %rax movslq -172(%rbp), %rcx movq (%rax,%rcx,8), %rsi leaq L_.str.149(%rip), %rdi movb $0, %al callq _fatal_error LBB19_76: ## in Loop: Header=BB19_12 Depth=1 movq -16(%rbp), %rax movl -172(%rbp), %ecx addl $1, %ecx movl %ecx, -172(%rbp) movslq %ecx, %rcx movq (%rax,%rcx,8), %rax movq %rax, -104(%rbp) jmp LBB19_97 LBB19_77: ## in Loop: Header=BB19_12 Depth=1 movq -192(%rbp), %rdi leaq L_.str.171(%rip), %rsi callq _strcmp cmpl $0, %eax jne LBB19_79 ## %bb.78: ## in Loop: Header=BB19_12 Depth=1 movl $1, -108(%rbp) jmp LBB19_96 LBB19_79: ## in Loop: Header=BB19_12 Depth=1 movq -192(%rbp), %rdi leaq L_.str.172(%rip), %rsi callq _strcmp cmpl $0, %eax jne LBB19_81 ## %bb.80: ## in Loop: Header=BB19_12 Depth=1 leaq L_.str.172(%rip), %rax movq %rax, -120(%rbp) jmp LBB19_95 LBB19_81: ## in Loop: Header=BB19_12 Depth=1 movq -192(%rbp), %rdi leaq L_.str.173(%rip), %rsi callq _strcmp cmpl $0, %eax jne LBB19_83 ## %bb.82: ## in Loop: Header=BB19_12 Depth=1 leaq L_.str.173(%rip), %rax movq %rax, -120(%rbp) jmp LBB19_94 LBB19_83: ## in Loop: Header=BB19_12 Depth=1 movq -192(%rbp), %rdi leaq L_.str.174(%rip), %rsi callq _strcmp cmpl $0, %eax jne LBB19_85 ## %bb.84: ## in Loop: Header=BB19_12 Depth=1 movl $1, _g+48(%rip) jmp LBB19_93 LBB19_85: ## in Loop: Header=BB19_12 Depth=1 movq -192(%rbp), %rdi leaq L_.str.175(%rip), %rsi callq _strcmp cmpl $0, %eax jne LBB19_87 ## %bb.86: ## in Loop: Header=BB19_12 Depth=1 leaq L_.str.176(%rip), %rax movq %rax, _g+56(%rip) leaq L_.str.164(%rip), %rax movq %rax, _g+72(%rip) jmp LBB19_92 LBB19_87: ## in Loop: Header=BB19_12 Depth=1 movq -192(%rbp), %rdi leaq L_.str.177(%rip), %rsi callq _strcmp cmpl $0, %eax je LBB19_89 ## %bb.88: ## in Loop: Header=BB19_12 Depth=1 movq -192(%rbp), %rdi leaq L_.str.178(%rip), %rsi callq _strcmp cmpl $0, %eax jne LBB19_90 LBB19_89: movq -16(%rbp), %rax movq (%rax), %rsi leaq _zHelp(%rip), %rdi xorl %eax, %eax movl %eax, -212(%rbp) ## 4-byte Spill callq _printf movl -212(%rbp), %edi ## 4-byte Reload callq _exit LBB19_90: ## in Loop: Header=BB19_12 Depth=1 movq -16(%rbp), %rax movslq -172(%rbp), %rcx movq (%rax,%rcx,8), %rsi movq -16(%rbp), %rax movq (%rax), %rdx leaq L_.str.179(%rip), %rdi movb $0, %al callq _fatal_error ## %bb.91: ## in Loop: Header=BB19_12 Depth=1 jmp LBB19_92 LBB19_92: ## in Loop: Header=BB19_12 Depth=1 jmp LBB19_93 LBB19_93: ## in Loop: Header=BB19_12 Depth=1 jmp LBB19_94 LBB19_94: ## in Loop: Header=BB19_12 Depth=1 jmp LBB19_95 LBB19_95: ## in Loop: Header=BB19_12 Depth=1 jmp LBB19_96 LBB19_96: ## in Loop: Header=BB19_12 Depth=1 jmp LBB19_97 LBB19_97: ## in Loop: Header=BB19_12 Depth=1 jmp LBB19_98 LBB19_98: ## in Loop: Header=BB19_12 Depth=1 jmp LBB19_99 LBB19_99: ## in Loop: Header=BB19_12 Depth=1 jmp LBB19_100 LBB19_100: ## in Loop: Header=BB19_12 Depth=1 jmp LBB19_101 LBB19_101: ## in Loop: Header=BB19_12 Depth=1 jmp LBB19_102 LBB19_102: ## in Loop: Header=BB19_12 Depth=1 jmp LBB19_103 LBB19_103: ## in Loop: Header=BB19_12 Depth=1 jmp LBB19_104 LBB19_104: ## in Loop: Header=BB19_12 Depth=1 jmp LBB19_105 LBB19_105: ## in Loop: Header=BB19_12 Depth=1 jmp LBB19_106 LBB19_106: ## in Loop: Header=BB19_12 Depth=1 jmp LBB19_107 LBB19_107: ## in Loop: Header=BB19_12 Depth=1 jmp LBB19_108 LBB19_108: ## in Loop: Header=BB19_12 Depth=1 jmp LBB19_109 LBB19_109: ## in Loop: Header=BB19_12 Depth=1 jmp LBB19_110 LBB19_110: ## in Loop: Header=BB19_12 Depth=1 jmp LBB19_111 LBB19_111: ## in Loop: Header=BB19_12 Depth=1 jmp LBB19_112 LBB19_112: ## in Loop: Header=BB19_12 Depth=1 jmp LBB19_113 LBB19_113: ## in Loop: Header=BB19_12 Depth=1 jmp LBB19_114 LBB19_114: ## in Loop: Header=BB19_12 Depth=1 jmp LBB19_115 LBB19_115: ## in Loop: Header=BB19_12 Depth=1 jmp LBB19_116 LBB19_116: ## in Loop: Header=BB19_12 Depth=1 jmp LBB19_121 LBB19_117: ## in Loop: Header=BB19_12 Depth=1 cmpq $0, -128(%rbp) jne LBB19_119 ## %bb.118: ## in Loop: Header=BB19_12 Depth=1 movq -16(%rbp), %rax movslq -172(%rbp), %rcx movq (%rax,%rcx,8), %rax movq %rax, -128(%rbp) jmp LBB19_120 LBB19_119: ## in Loop: Header=BB19_12 Depth=1 movq -16(%rbp), %rax movslq -172(%rbp), %rcx movq (%rax,%rcx,8), %rsi movq -16(%rbp), %rax movq (%rax), %rdx leaq L_.str.180(%rip), %rdi movb $0, %al callq _fatal_error LBB19_120: ## in Loop: Header=BB19_12 Depth=1 jmp LBB19_121 LBB19_121: ## in Loop: Header=BB19_12 Depth=1 jmp LBB19_122 LBB19_122: ## in Loop: Header=BB19_12 Depth=1 movl -172(%rbp), %eax addl $1, %eax movl %eax, -172(%rbp) jmp LBB19_12 LBB19_123: cmpl $0, -32(%rbp) jle LBB19_129 ## %bb.124: movslq -32(%rbp), %rdi callq _malloc movq %rax, -136(%rbp) cmpq $0, -136(%rbp) jne LBB19_126 ## %bb.125: movl -32(%rbp), %esi leaq L_.str.181(%rip), %rdi movb $0, %al callq _fatal_error LBB19_126: movq -136(%rbp), %rsi movl -32(%rbp), %edx movl -36(%rbp), %ecx movl $8, %edi movb $0, %al callq _sqlite3_config movl %eax, -176(%rbp) cmpl $0, -176(%rbp) je LBB19_128 ## %bb.127: movl -176(%rbp), %esi leaq L_.str.182(%rip), %rdi movb $0, %al callq _fatal_error LBB19_128: jmp LBB19_129 LBB19_129: cmpl $0, -76(%rbp) jle LBB19_136 ## %bb.130: cmpl $0, -80(%rbp) jle LBB19_136 ## %bb.131: movslq -76(%rbp), %rdi movslq -80(%rbp), %rax imulq %rax, %rdi callq _malloc movq %rax, -152(%rbp) cmpq $0, -152(%rbp) jne LBB19_133 ## %bb.132: movslq -76(%rbp), %rsi movslq -80(%rbp), %rax imulq %rax, %rsi leaq L_.str.183(%rip), %rdi movb $0, %al callq _fatal_error LBB19_133: movq -152(%rbp), %rsi movl -80(%rbp), %edx movl -76(%rbp), %ecx movl $7, %edi movb $0, %al callq _sqlite3_config movl %eax, -176(%rbp) cmpl $0, -176(%rbp) je LBB19_135 ## %bb.134: movl -176(%rbp), %esi leaq L_.str.184(%rip), %rdi movb $0, %al callq _fatal_error LBB19_135: jmp LBB19_136 LBB19_136: cmpl $0, -84(%rbp) jle LBB19_143 ## %bb.137: cmpl $0, -88(%rbp) jle LBB19_143 ## %bb.138: movslq -84(%rbp), %rdi movslq -88(%rbp), %rax imulq %rax, %rdi callq _malloc movq %rax, -160(%rbp) cmpq $0, -160(%rbp) jne LBB19_140 ## %bb.139: movslq -84(%rbp), %rsi movslq -88(%rbp), %rax imulq %rax, %rsi leaq L_.str.185(%rip), %rdi movb $0, %al callq _fatal_error LBB19_140: movq -160(%rbp), %rsi movl -88(%rbp), %edx movl -84(%rbp), %ecx movl $6, %edi movb $0, %al callq _sqlite3_config movl %eax, -176(%rbp) cmpl $0, -176(%rbp) je LBB19_142 ## %bb.141: movl -176(%rbp), %esi leaq L_.str.186(%rip), %rdi movb $0, %al callq _fatal_error LBB19_142: jmp LBB19_143 LBB19_143: cmpl $0, -60(%rbp) jle LBB19_145 ## %bb.144: movl $13, %edi xorl %edx, %edx movl %edx, %esi movb $0, %al callq _sqlite3_config LBB19_145: leaq L_.str.187(%rip), %rdi leaq _g(%rip), %rsi callq _sqlite3_open cmpl $0, %eax je LBB19_147 ## %bb.146: movq -128(%rbp), %rsi leaq L_.str.188(%rip), %rdi movb $0, %al callq _fatal_error LBB19_147: cmpl $0, -60(%rbp) jle LBB19_152 ## %bb.148: cmpl $0, -64(%rbp) jle LBB19_152 ## %bb.149: movl -60(%rbp), %eax imull -64(%rbp), %eax movslq %eax, %rdi callq _malloc movq %rax, -144(%rbp) movq _g(%rip), %rdi movq -144(%rbp), %rdx movl -64(%rbp), %ecx movl -60(%rbp), %r8d movl $1001, %esi ## imm = 0x3E9 movb $0, %al callq _sqlite3_db_config movl %eax, -176(%rbp) cmpl $0, -176(%rbp) je LBB19_151 ## %bb.150: movl -176(%rbp), %esi leaq L_.str.189(%rip), %rdi movb $0, %al callq _fatal_error LBB19_151: jmp LBB19_152 LBB19_152: movq _g(%rip), %rdi leaq L_.str.190(%rip), %rsi xorl %edx, %edx movl $1, %ecx xorl %eax, %eax movl %eax, %r8d leaq _randomFunc1(%rip), %r9 movq $0, (%rsp) movq $0, 8(%rsp) callq _sqlite3_create_function cmpl $0, -108(%rbp) je LBB19_154 ## %bb.153: movq _g(%rip), %rdi leaq _traceCallback(%rip), %rsi xorl %eax, %eax movl %eax, %edx callq _sqlite3_trace LBB19_154: cmpq $0, -56(%rbp) je LBB19_156 ## %bb.155: movq -56(%rbp), %rsi leaq L_.str.191(%rip), %rdi movb $0, %al callq _speedtest1_exec LBB19_156: cmpq $0, -120(%rbp) je LBB19_158 ## %bb.157: movq -120(%rbp), %rsi leaq L_.str.192(%rip), %rdi movb $0, %al callq _speedtest1_exec LBB19_158: cmpl $0, -20(%rbp) je LBB19_160 ## %bb.159: leaq L_.str.193(%rip), %rdi movb $0, %al callq _speedtest1_exec jmp LBB19_163 LBB19_160: cmpl $0, -40(%rbp) je LBB19_162 ## %bb.161: leaq L_.str.194(%rip), %rdi movb $0, %al callq _speedtest1_exec LBB19_162: jmp LBB19_163 LBB19_163: cmpl $0, -72(%rbp) je LBB19_165 ## %bb.164: movl -72(%rbp), %esi leaq L_.str.195(%rip), %rdi movb $0, %al callq _speedtest1_exec LBB19_165: cmpl $0, -24(%rbp) je LBB19_167 ## %bb.166: movl -24(%rbp), %esi leaq L_.str.196(%rip), %rdi movb $0, %al callq _speedtest1_exec LBB19_167: cmpl $0, -68(%rbp) je LBB19_169 ## %bb.168: leaq L_.str.197(%rip), %rdi movb $0, %al callq _speedtest1_exec LBB19_169: cmpl $0, -28(%rbp) je LBB19_171 ## %bb.170: leaq L_.str.198(%rip), %rdi movb $0, %al callq _speedtest1_exec LBB19_171: cmpq $0, -48(%rbp) je LBB19_173 ## %bb.172: movq -48(%rbp), %rsi leaq L_.str.199(%rip), %rdi movb $0, %al callq _speedtest1_exec LBB19_173: cmpl $0, _g+44(%rip) je LBB19_175 ## %bb.174: leaq L_.str.200(%rip), %rdi movb $0, %al callq _printf LBB19_175: movq -104(%rbp), %rdi leaq L_.str.144(%rip), %rsi callq _strcmp cmpl $0, %eax jne LBB19_177 ## %bb.176: callq _testset_main jmp LBB19_187 LBB19_177: movq -104(%rbp), %rdi leaq L_.str.201(%rip), %rsi callq _strcmp cmpl $0, %eax jne LBB19_179 ## %bb.178: callq _testset_debug1 jmp LBB19_186 LBB19_179: movq -104(%rbp), %rdi leaq L_.str.202(%rip), %rsi callq _strcmp cmpl $0, %eax jne LBB19_181 ## %bb.180: callq _testset_cte jmp LBB19_185 LBB19_181: movq -104(%rbp), %rdi leaq L_.str.203(%rip), %rsi callq _strcmp cmpl $0, %eax jne LBB19_183 ## %bb.182: movl $6, %edi movl $147, %esi callq _testset_rtree jmp LBB19_184 LBB19_183: movq -104(%rbp), %rsi leaq L_.str.204(%rip), %rdi movb $0, %al callq _fatal_error LBB19_184: jmp LBB19_185 LBB19_185: jmp LBB19_186 LBB19_186: jmp LBB19_187 LBB19_187: callq _speedtest1_final cmpl $0, -92(%rbp) je LBB19_189 ## %bb.188: movq _g(%rip), %rdi xorl %r8d, %r8d leaq -164(%rbp), %rdx leaq -168(%rbp), %rcx movl %r8d, %esi callq _sqlite3_db_status movl -164(%rbp), %esi movl -168(%rbp), %edx leaq L_.str.205(%rip), %rdi movb $0, %al callq _printf movq _g(%rip), %rdi movl $4, %esi leaq -164(%rbp), %rdx leaq -168(%rbp), %rcx xorl %r8d, %r8d callq _sqlite3_db_status movl -168(%rbp), %esi leaq L_.str.206(%rip), %rdi movb $0, %al callq _printf movq _g(%rip), %rdi movl $5, %esi leaq -164(%rbp), %rdx leaq -168(%rbp), %rcx xorl %r8d, %r8d callq _sqlite3_db_status movl -168(%rbp), %esi leaq L_.str.207(%rip), %rdi movb $0, %al callq _printf movq _g(%rip), %rdi movl $6, %esi leaq -164(%rbp), %rdx leaq -168(%rbp), %rcx xorl %r8d, %r8d callq _sqlite3_db_status movl -168(%rbp), %esi leaq L_.str.208(%rip), %rdi movb $0, %al callq _printf movq _g(%rip), %rdi movl $1, %esi leaq -164(%rbp), %rdx leaq -168(%rbp), %rcx xorl %r8d, %r8d callq _sqlite3_db_status movl -164(%rbp), %esi leaq L_.str.209(%rip), %rdi movb $0, %al callq _printf movq _g(%rip), %rdi movl $7, %esi leaq -164(%rbp), %rdx leaq -168(%rbp), %rcx movl $1, %r8d callq _sqlite3_db_status movl -164(%rbp), %esi leaq L_.str.210(%rip), %rdi movb $0, %al callq _printf movq _g(%rip), %rdi movl $8, %esi leaq -164(%rbp), %rdx leaq -168(%rbp), %rcx movl $1, %r8d callq _sqlite3_db_status movl -164(%rbp), %esi leaq L_.str.211(%rip), %rdi movb $0, %al callq _printf movq _g(%rip), %rdi movl $9, %esi leaq -164(%rbp), %rdx leaq -168(%rbp), %rcx movl $1, %r8d callq _sqlite3_db_status movl -164(%rbp), %esi leaq L_.str.212(%rip), %rdi movb $0, %al callq _printf movq _g(%rip), %rdi movl $2, %esi leaq -164(%rbp), %rdx leaq -168(%rbp), %rcx xorl %r8d, %r8d callq _sqlite3_db_status movl -164(%rbp), %esi leaq L_.str.213(%rip), %rdi movb $0, %al callq _printf movq _g(%rip), %rdi movl $3, %esi leaq -164(%rbp), %rdx leaq -168(%rbp), %rcx xorl %r8d, %r8d callq _sqlite3_db_status movl -164(%rbp), %esi leaq L_.str.214(%rip), %rdi movb $0, %al callq _printf LBB19_189: movq _g(%rip), %rdi callq _sqlite3_close cmpl $0, -92(%rbp) je LBB19_191 ## %bb.190: xorl %ecx, %ecx leaq -164(%rbp), %rsi leaq -168(%rbp), %rdx movl %ecx, %edi callq _sqlite3_status movl -164(%rbp), %esi movl -168(%rbp), %edx leaq L_.str.215(%rip), %rdi movb $0, %al callq _printf movl $9, %edi leaq -164(%rbp), %rsi leaq -168(%rbp), %rdx xorl %ecx, %ecx callq _sqlite3_status movl -164(%rbp), %esi movl -168(%rbp), %edx leaq L_.str.216(%rip), %rdi movb $0, %al callq _printf movl $2, %edi leaq -164(%rbp), %rsi leaq -168(%rbp), %rdx xorl %ecx, %ecx callq _sqlite3_status movl -164(%rbp), %esi movl -168(%rbp), %edx leaq L_.str.217(%rip), %rdi movb $0, %al callq _printf movl $4, %edi leaq -164(%rbp), %rsi leaq -168(%rbp), %rdx xorl %ecx, %ecx callq _sqlite3_status movl -164(%rbp), %esi movl -168(%rbp), %edx leaq L_.str.218(%rip), %rdi movb $0, %al callq _printf movl $5, %edi leaq -164(%rbp), %rsi leaq -168(%rbp), %rdx xorl %ecx, %ecx callq _sqlite3_status movl -168(%rbp), %esi leaq L_.str.219(%rip), %rdi movb $0, %al callq _printf movl $7, %edi leaq -164(%rbp), %rsi leaq -168(%rbp), %rdx xorl %ecx, %ecx callq _sqlite3_status movl -168(%rbp), %esi leaq L_.str.220(%rip), %rdi movb $0, %al callq _printf movl $8, %edi leaq -164(%rbp), %rsi leaq -168(%rbp), %rdx xorl %ecx, %ecx callq _sqlite3_status movl -168(%rbp), %esi leaq L_.str.221(%rip), %rdi movb $0, %al callq _printf LBB19_191: movq -144(%rbp), %rdi callq _free movq -152(%rbp), %rdi callq _free movq -160(%rbp), %rdi callq _free movq -136(%rbp), %rdi callq _free movl $0, -4(%rbp) LBB19_192: movl -4(%rbp), %eax addq $240, %rsp popq %rbp retq .cfi_endproc .p2align 2, 0x90 .data_region jt32 .set L19_0_set_4, LBB19_4-LJTI19_0 .set L19_0_set_5, LBB19_5-LJTI19_0 .set L19_0_set_6, LBB19_6-LJTI19_0 .set L19_0_set_7, LBB19_7-LJTI19_0 .set L19_0_set_8, LBB19_8-LJTI19_0 .set L19_0_set_9, LBB19_9-LJTI19_0 LJTI19_0: .long L19_0_set_4 .long L19_0_set_5 .long L19_0_set_6 .long L19_0_set_7 .long L19_0_set_8 .long L19_0_set_9 .end_data_region ## -- End function .p2align 4, 0x90 ## -- Begin function integerValue _integerValue: ## @integerValue .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movq %rdi, -8(%rbp) movq $0, -16(%rbp) movl $0, -24(%rbp) movq -8(%rbp), %rax movsbl (%rax), %eax cmpl $45, %eax jne LBB20_2 ## %bb.1: movl $1, -24(%rbp) movq -8(%rbp), %rax addq $1, %rax movq %rax, -8(%rbp) jmp LBB20_5 LBB20_2: movq -8(%rbp), %rax movsbl (%rax), %eax cmpl $43, %eax jne LBB20_4 ## %bb.3: movq -8(%rbp), %rax addq $1, %rax movq %rax, -8(%rbp) LBB20_4: jmp LBB20_5 LBB20_5: movq -8(%rbp), %rax movsbl (%rax), %eax cmpl $48, %eax jne LBB20_11 ## %bb.6: movq -8(%rbp), %rax movsbl 1(%rax), %eax cmpl $120, %eax jne LBB20_11 ## %bb.7: movq -8(%rbp), %rax addq $2, %rax movq %rax, -8(%rbp) LBB20_8: ## =>This Inner Loop Header: Depth=1 movq -8(%rbp), %rax movsbl (%rax), %edi callq _hexDigitValue movl %eax, -28(%rbp) cmpl $0, %eax jl LBB20_10 ## %bb.9: ## in Loop: Header=BB20_8 Depth=1 movq -16(%rbp), %rax shlq $4, %rax movslq -28(%rbp), %rcx addq %rcx, %rax movq %rax, -16(%rbp) movq -8(%rbp), %rax addq $1, %rax movq %rax, -8(%rbp) jmp LBB20_8 LBB20_10: jmp LBB20_15 LBB20_11: jmp LBB20_12 LBB20_12: ## =>This Inner Loop Header: Depth=1 movq -8(%rbp), %rax movsbl (%rax), %edi callq _isdigit cmpl $0, %eax je LBB20_14 ## %bb.13: ## in Loop: Header=BB20_12 Depth=1 imulq $10, -16(%rbp), %rax movq -8(%rbp), %rcx movsbq (%rcx), %rcx addq %rcx, %rax subq $48, %rax movq %rax, -16(%rbp) movq -8(%rbp), %rax addq $1, %rax movq %rax, -8(%rbp) jmp LBB20_12 LBB20_14: jmp LBB20_15 LBB20_15: movl $0, -20(%rbp) LBB20_16: ## =>This Inner Loop Header: Depth=1 movslq -20(%rbp), %rax cmpq $9, %rax jae LBB20_21 ## %bb.17: ## in Loop: Header=BB20_16 Depth=1 movslq -20(%rbp), %rcx leaq _integerValue.aMult(%rip), %rax shlq $4, %rcx addq %rcx, %rax movq (%rax), %rdi movq -8(%rbp), %rsi callq _sqlite3_stricmp cmpl $0, %eax jne LBB20_19 ## %bb.18: movslq -20(%rbp), %rcx leaq _integerValue.aMult(%rip), %rax shlq $4, %rcx addq %rcx, %rax movslq 8(%rax), %rax imulq -16(%rbp), %rax movq %rax, -16(%rbp) jmp LBB20_21 LBB20_19: ## in Loop: Header=BB20_16 Depth=1 jmp LBB20_20 LBB20_20: ## in Loop: Header=BB20_16 Depth=1 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB20_16 LBB20_21: cmpq $2147483647, -16(%rbp) ## imm = 0x7FFFFFFF jle LBB20_23 ## %bb.22: leaq L_.str.236(%rip), %rdi movb $0, %al callq _fatal_error LBB20_23: cmpl $0, -24(%rbp) je LBB20_25 ## %bb.24: xorl %eax, %eax ## kill: def $rax killed $eax subq -16(%rbp), %rax movq %rax, -40(%rbp) ## 8-byte Spill jmp LBB20_26 LBB20_25: movq -16(%rbp), %rax movq %rax, -40(%rbp) ## 8-byte Spill LBB20_26: movq -40(%rbp), %rax ## 8-byte Reload ## kill: def $eax killed $eax killed $rax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function randomFunc1 _randomFunc1: ## @randomFunc1 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) movq %rdx, -24(%rbp) movq -8(%rbp), %rax movq %rax, -32(%rbp) ## 8-byte Spill callq _speedtest1_random movq -32(%rbp), %rdi ## 8-byte Reload movl %eax, %eax movl %eax, %esi callq _sqlite3_result_int64 addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function traceCallback _traceCallback: ## @traceCallback .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) movq -16(%rbp), %rdi callq _strlen ## kill: def $eax killed $eax killed $rax movl %eax, -20(%rbp) LBB22_1: ## =>This Inner Loop Header: Depth=1 xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $0, -20(%rbp) movb %al, -21(%rbp) ## 1-byte Spill jle LBB22_5 ## %bb.2: ## in Loop: Header=BB22_1 Depth=1 movq -16(%rbp), %rax movl -20(%rbp), %ecx subl $1, %ecx movslq %ecx, %rcx movsbl (%rax,%rcx), %ecx movb $1, %al cmpl $59, %ecx movb %al, -22(%rbp) ## 1-byte Spill je LBB22_4 ## %bb.3: ## in Loop: Header=BB22_1 Depth=1 movq -16(%rbp), %rax movl -20(%rbp), %ecx subl $1, %ecx movslq %ecx, %rcx movsbl (%rax,%rcx), %edi callq _isspace cmpl $0, %eax setne %al movb %al, -22(%rbp) ## 1-byte Spill LBB22_4: ## in Loop: Header=BB22_1 Depth=1 movb -22(%rbp), %al ## 1-byte Reload movb %al, -21(%rbp) ## 1-byte Spill LBB22_5: ## in Loop: Header=BB22_1 Depth=1 movb -21(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB22_6 jmp LBB22_7 LBB22_6: ## in Loop: Header=BB22_1 Depth=1 movl -20(%rbp), %eax addl $-1, %eax movl %eax, -20(%rbp) jmp LBB22_1 LBB22_7: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movl -20(%rbp), %edx movq -16(%rbp), %rcx leaq L_.str.223(%rip), %rsi movb $0, %al callq _fprintf addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function hexDigitValue _hexDigitValue: ## @hexDigitValue .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movb %dil, %al movb %al, -5(%rbp) movsbl -5(%rbp), %eax cmpl $48, %eax jl LBB23_3 ## %bb.1: movsbl -5(%rbp), %eax cmpl $57, %eax jg LBB23_3 ## %bb.2: movsbl -5(%rbp), %eax subl $48, %eax movl %eax, -4(%rbp) jmp LBB23_10 LBB23_3: movsbl -5(%rbp), %eax cmpl $97, %eax jl LBB23_6 ## %bb.4: movsbl -5(%rbp), %eax cmpl $102, %eax jg LBB23_6 ## %bb.5: movsbl -5(%rbp), %eax subl $97, %eax addl $10, %eax movl %eax, -4(%rbp) jmp LBB23_10 LBB23_6: movsbl -5(%rbp), %eax cmpl $65, %eax jl LBB23_9 ## %bb.7: movsbl -5(%rbp), %eax cmpl $70, %eax jg LBB23_9 ## %bb.8: movsbl -5(%rbp), %eax subl $65, %eax addl $10, %eax movl %eax, -4(%rbp) jmp LBB23_10 LBB23_9: movl $-1, -4(%rbp) LBB23_10: movl -4(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .zerofill __DATA,__bss,_speedtest1_timestamp.clockVfs,8,3 ## @speedtest1_timestamp.clockVfs .zerofill __DATA,__bss,_g,3096,3 ## @g .section __DATA,__data .p2align 4 ## @speedtest1_numbername.ones _speedtest1_numbername.ones: .quad L_.str .quad L_.str.1 .quad L_.str.2 .quad L_.str.3 .quad L_.str.4 .quad L_.str.5 .quad L_.str.6 .quad L_.str.7 .quad L_.str.8 .quad L_.str.9 .quad L_.str.10 .quad L_.str.11 .quad L_.str.12 .quad L_.str.13 .quad L_.str.14 .quad L_.str.15 .quad L_.str.16 .quad L_.str.17 .quad L_.str.18 .quad L_.str.19 .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "zero" L_.str.1: ## @.str.1 .asciz "one" L_.str.2: ## @.str.2 .asciz "two" L_.str.3: ## @.str.3 .asciz "three" L_.str.4: ## @.str.4 .asciz "four" L_.str.5: ## @.str.5 .asciz "five" L_.str.6: ## @.str.6 .asciz "six" L_.str.7: ## @.str.7 .asciz "seven" L_.str.8: ## @.str.8 .asciz "eight" L_.str.9: ## @.str.9 .asciz "nine" L_.str.10: ## @.str.10 .asciz "ten" L_.str.11: ## @.str.11 .asciz "eleven" L_.str.12: ## @.str.12 .asciz "twelve" L_.str.13: ## @.str.13 .asciz "thirteen" L_.str.14: ## @.str.14 .asciz "fourteen" L_.str.15: ## @.str.15 .asciz "fifteen" L_.str.16: ## @.str.16 .asciz "sixteen" L_.str.17: ## @.str.17 .asciz "seventeen" L_.str.18: ## @.str.18 .asciz "eighteen" L_.str.19: ## @.str.19 .asciz "nineteen" .section __DATA,__data .p2align 4 ## @speedtest1_numbername.tens _speedtest1_numbername.tens: .quad L_.str.20 .quad L_.str.10 .quad L_.str.21 .quad L_.str.22 .quad L_.str.23 .quad L_.str.24 .quad L_.str.25 .quad L_.str.26 .quad L_.str.27 .quad L_.str.28 .section __TEXT,__cstring,cstring_literals L_.str.20: ## @.str.20 .space 1 L_.str.21: ## @.str.21 .asciz "twenty" L_.str.22: ## @.str.22 .asciz "thirty" L_.str.23: ## @.str.23 .asciz "forty" L_.str.24: ## @.str.24 .asciz "fifty" L_.str.25: ## @.str.25 .asciz "sixty" L_.str.26: ## @.str.26 .asciz "seventy" L_.str.27: ## @.str.27 .asciz "eighty" L_.str.28: ## @.str.28 .asciz "ninety" L_.str.29: ## @.str.29 .asciz " billion" L_.str.30: ## @.str.30 .asciz " million" L_.str.31: ## @.str.31 .asciz " thousand" L_.str.32: ## @.str.32 .asciz "%s hundred" L_.str.33: ## @.str.33 .asciz "%s" L_.str.34: ## @.str.34 .asciz "/* %4d - %s%.*s */\n" .section __TEXT,__const .p2align 4 ## @zDots _zDots: .asciz "......................................................................." .section __TEXT,__cstring,cstring_literals L_.str.35: ## @.str.35 .asciz "%4d - %s%.*s " L_.str.36: ## @.str.36 .asciz "%4d.%03ds\n" L_.str.37: ## @.str.37 .asciz " TOTAL%.*s %4d.%03ds\n" L_.str.38: ## @.str.38 .asciz "SQL error: %s\n%s\n" L_.str.39: ## @.str.39 .asciz "exec error: %s\n" L_.str.40: ## @.str.40 .asciz "SQL error: %s\n" L___func__.speedtest1_execute: ## @__func__.speedtest1_execute .asciz "speedtest1_execute" L_.str.41: ## @.str.41 .asciz "29911.c" L_.str.42: ## @.str.42 .asciz "g.pStmt" L_.str.43: ## @.str.43 .asciz "nil" L_.str.44: ## @.str.44 .asciz "%d INSERTs into table with no index" L_.str.45: ## @.str.45 .asciz "BEGIN" L_.str.46: ## @.str.46 .asciz "CREATE TABLE t1(a INTEGER %s, b INTEGER %s, c TEXT %s);" L_.str.47: ## @.str.47 .asciz "INSERT INTO t1 VALUES(?1,?2,?3); -- %d times" L_.str.48: ## @.str.48 .asciz "COMMIT" L_.str.49: ## @.str.49 .asciz "%d ordered INSERTS with one index/PK" L_.str.50: ## @.str.50 .asciz "CREATE TABLE t2(a INTEGER %s %s, b INTEGER %s, c TEXT %s) %s" L_.str.51: ## @.str.51 .asciz "INSERT INTO t2 VALUES(?1,?2,?3); -- %d times" L_.str.52: ## @.str.52 .asciz "%d unordered INSERTS with one index/PK" L_.str.53: ## @.str.53 .asciz "CREATE TABLE t3(a INTEGER %s %s, b INTEGER %s, c TEXT %s) %s" L_.str.54: ## @.str.54 .asciz "INSERT INTO t3 VALUES(?1,?2,?3); -- %d times" L_.str.55: ## @.str.55 .asciz "%d SELECTS, numeric BETWEEN, unindexed" L_.str.56: ## @.str.56 .asciz "SELECT count(*), avg(b), sum(length(c)) FROM t1\n WHERE b BETWEEN ?1 AND ?2; -- %d times" L_.str.57: ## @.str.57 .asciz "%d SELECTS, LIKE, unindexed" L_.str.58: ## @.str.58 .asciz "SELECT count(*), avg(b), sum(length(c)) FROM t1\n WHERE c LIKE ?1; -- %d times" L_.str.59: ## @.str.59 .asciz "%d SELECTS w/ORDER BY, unindexed" L_.str.60: ## @.str.60 .asciz "SELECT a, b, c FROM t1 WHERE c LIKE ?1\n ORDER BY a; -- %d times" L_.str.61: ## @.str.61 .asciz "%d SELECTS w/ORDER BY and LIMIT, unindexed" L_.str.62: ## @.str.62 .asciz "SELECT a, b, c FROM t1 WHERE c LIKE ?1\n ORDER BY a LIMIT 10; -- %d times" L_.str.63: ## @.str.63 .asciz "CREATE INDEX five times" L_.str.64: ## @.str.64 .asciz "BEGIN;" L_.str.65: ## @.str.65 .asciz "CREATE UNIQUE INDEX t1b ON t1(b);" L_.str.66: ## @.str.66 .asciz "CREATE INDEX t1c ON t1(c);" L_.str.67: ## @.str.67 .asciz "CREATE UNIQUE INDEX t2b ON t2(b);" L_.str.68: ## @.str.68 .asciz "CREATE INDEX t2c ON t2(c DESC);" L_.str.69: ## @.str.69 .asciz "CREATE INDEX t3bc ON t3(b,c);" L_.str.70: ## @.str.70 .asciz "COMMIT;" L_.str.71: ## @.str.71 .asciz "%d SELECTS, numeric BETWEEN, indexed" L_.str.72: ## @.str.72 .asciz "%d SELECTS, numeric BETWEEN, PK" L_.str.73: ## @.str.73 .asciz "SELECT count(*), avg(b), sum(length(c)) FROM t2\n WHERE a BETWEEN ?1 AND ?2; -- %d times" L_.str.74: ## @.str.74 .asciz "%d SELECTS, text BETWEEN, indexed" L_.str.75: ## @.str.75 .asciz "SELECT count(*), avg(b), sum(length(c)) FROM t1\n WHERE c BETWEEN ?1 AND (?1||'~'); -- %d times" L_.str.76: ## @.str.76 .asciz "%d INSERTS with three indexes" L_.str.77: ## @.str.77 .asciz "CREATE TABLE t4(\n a INTEGER %s %s,\n b INTEGER %s,\n c TEXT %s\n) %s" L_.str.78: ## @.str.78 .asciz "CREATE INDEX t4b ON t4(b)" L_.str.79: ## @.str.79 .asciz "CREATE INDEX t4c ON t4(c)" L_.str.80: ## @.str.80 .asciz "INSERT INTO t4 SELECT * FROM t1" L_.str.81: ## @.str.81 .asciz "DELETE and REFILL one table" L_.str.82: ## @.str.82 .asciz "DELETE FROM t2;" L_.str.83: ## @.str.83 .asciz "INSERT INTO t2 SELECT * FROM t1;" L_.str.84: ## @.str.84 .asciz "VACUUM" L_.str.85: ## @.str.85 .asciz "ALTER TABLE ADD COLUMN, and query" L_.str.86: ## @.str.86 .asciz "ALTER TABLE t2 ADD COLUMN d DEFAULT 123" L_.str.87: ## @.str.87 .asciz "SELECT sum(d) FROM t2" L_.str.88: ## @.str.88 .asciz "%d UPDATES, numeric BETWEEN, indexed" L_.str.89: ## @.str.89 .asciz "UPDATE t2 SET d=b*2 WHERE b BETWEEN ?1 AND ?2; -- %d times" L_.str.90: ## @.str.90 .asciz "%d UPDATES of individual rows" L_.str.91: ## @.str.91 .asciz "UPDATE t2 SET d=b*3 WHERE a=?1; -- %d times" L_.str.92: ## @.str.92 .asciz "One big UPDATE of the whole %d-row table" L_.str.93: ## @.str.93 .asciz "UPDATE t2 SET d=b*4" L_.str.94: ## @.str.94 .asciz "Query added column after filling" L_.str.95: ## @.str.95 .asciz "%d DELETEs, numeric BETWEEN, indexed" L_.str.96: ## @.str.96 .asciz "DELETE FROM t2 WHERE b BETWEEN ?1 AND ?2; -- %d times" L_.str.97: ## @.str.97 .asciz "%d DELETEs of individual rows" L_.str.98: ## @.str.98 .asciz "DELETE FROM t3 WHERE a=?1; -- %d times" L_.str.99: ## @.str.99 .asciz "Refill two %d-row tables using REPLACE" L_.str.100: ## @.str.100 .asciz "REPLACE INTO t2(a,b,c) SELECT a,b,c FROM t1" L_.str.101: ## @.str.101 .asciz "REPLACE INTO t3(a,b,c) SELECT a,b,c FROM t1" L_.str.102: ## @.str.102 .asciz "Refill a %d-row table using (b&1)==(a&1)" L_.str.103: ## @.str.103 .asciz "INSERT INTO t2(a,b,c)\n SELECT a,b,c FROM t1 WHERE (b&1)==(a&1);" L_.str.104: ## @.str.104 .asciz "INSERT INTO t2(a,b,c)\n SELECT a,b,c FROM t1 WHERE (b&1)<>(a&1);" L_.str.105: ## @.str.105 .asciz "%d four-ways joins" L_.str.106: ## @.str.106 .asciz "SELECT t1.c FROM t1, t2, t3, t4\n WHERE t4.a BETWEEN ?1 AND ?2\n AND t3.a=t4.b\n AND t2.a=t3.b\n AND t1.c=t2.c" L_.str.107: ## @.str.107 .asciz "subquery in result set" L_.str.108: ## @.str.108 .asciz "SELECT sum(a), max(c),\n avg((SELECT a FROM t2 WHERE 5+t2.b=t1.b) AND rowid<?1), max(c)\n FROM t1 WHERE rowid<?1;" L_.str.109: ## @.str.109 .asciz "PRAGMA integrity_check" L_.str.110: ## @.str.110 .asciz "ANALYZE" .section __DATA,__data .p2align 4 ## @testset_cte.azPuzzle _testset_cte.azPuzzle: .quad L_.str.111 .quad L_.str.112 .quad L_.str.113 .section __TEXT,__cstring,cstring_literals L_.str.111: ## @.str.111 .asciz "534...9..67.195....98....6.8...6...34..8.3..1....2...6.6....28....419..5...28..79" L_.str.112: ## @.str.112 .asciz "53....9..6..195....98....6.8...6...34..8.3..1....2...6.6....28....419..5....8..79" L_.str.113: ## @.str.113 .asciz "53.......6..195....98....6.8...6...34..8.3..1....2...6.6....28....419..5....8..79" L_.str.114: ## @.str.114 .asciz "Sudoku with recursive 'digits'" L_.str.115: ## @.str.115 .asciz "WITH RECURSIVE\n input(sud) AS (VALUES(?1)),\n digits(z,lp) AS (\n VALUES('1', 1)\n UNION ALL\n SELECT CAST(lp+1 AS TEXT), lp+1 FROM digits WHERE lp<9\n ),\n x(s, ind) AS (\n SELECT sud, instr(sud, '.') FROM input\n UNION ALL\n SELECT\n substr(s, 1, ind-1) || z || substr(s, ind+1),\n instr( substr(s, 1, ind-1) || z || substr(s, ind+1), '.' )\n FROM x, digits AS z\n WHERE ind>0\n AND NOT EXISTS (\n SELECT 1\n FROM digits AS lp\n WHERE z.z = substr(s, ((ind-1)/9)*9 + lp, 1)\n OR z.z = substr(s, ((ind-1)%%9) + (lp-1)*9 + 1, 1)\n OR z.z = substr(s, (((ind-1)/3) %% 3) * 3\n + ((ind-1)/27) * 27 + lp\n + ((lp-1) / 3) * 6, 1)\n )\n )\nSELECT s FROM x WHERE ind=0;" L_.str.116: ## @.str.116 .asciz "Sudoku with VALUES 'digits'" L_.str.117: ## @.str.117 .asciz "WITH RECURSIVE\n input(sud) AS (VALUES(?1)),\n digits(z,lp) AS (VALUES('1',1),('2',2),('3',3),('4',4),('5',5),\n ('6',6),('7',7),('8',8),('9',9)),\n x(s, ind) AS (\n SELECT sud, instr(sud, '.') FROM input\n UNION ALL\n SELECT\n substr(s, 1, ind-1) || z || substr(s, ind+1),\n instr( substr(s, 1, ind-1) || z || substr(s, ind+1), '.' )\n FROM x, digits AS z\n WHERE ind>0\n AND NOT EXISTS (\n SELECT 1\n FROM digits AS lp\n WHERE z.z = substr(s, ((ind-1)/9)*9 + lp, 1)\n OR z.z = substr(s, ((ind-1)%%9) + (lp-1)*9 + 1, 1)\n OR z.z = substr(s, (((ind-1)/3) %% 3) * 3\n + ((ind-1)/27) * 27 + lp\n + ((lp-1) / 3) * 6, 1)\n )\n )\nSELECT s FROM x WHERE ind=0;" L_.str.118: ## @.str.118 .asciz "Mandelbrot Set with spacing=%f" L_.str.119: ## @.str.119 .asciz "WITH RECURSIVE \n xaxis(x) AS (VALUES(-2.0) UNION ALL SELECT x+?1 FROM xaxis WHERE x<1.2),\n yaxis(y) AS (VALUES(-1.0) UNION ALL SELECT y+?2 FROM yaxis WHERE y<1.0),\n m(iter, cx, cy, x, y) AS (\n SELECT 0, x, y, 0.0, 0.0 FROM xaxis, yaxis\n UNION ALL\n SELECT iter+1, cx, cy, x*x-y*y + cx, 2.0*x*y + cy FROM m \n WHERE (x*x + y*y) < 4.0 AND iter<28\n ),\n m2(iter, cx, cy) AS (\n SELECT max(iter), cx, cy FROM m GROUP BY cx, cy\n ),\n a(t) AS (\n SELECT group_concat( substr(' .+*#', 1+min(iter/7,4), 1), '') \n FROM m2 GROUP BY cy\n )\nSELECT group_concat(rtrim(t),x'0a') FROM a;" L_.str.120: ## @.str.120 .asciz "EXCEPT operator on %d-element tables" L_.str.121: ## @.str.121 .asciz "WITH RECURSIVE \n t1(x) AS (VALUES(2) UNION ALL SELECT x+2 FROM t1 WHERE x<%d),\n t2(y) AS (VALUES(3) UNION ALL SELECT y+3 FROM t2 WHERE y<%d)\nSELECT count(x), avg(x) FROM (\n SELECT x FROM t1 EXCEPT SELECT y FROM t2 ORDER BY 1\n);" L_.str.122: ## @.str.122 .asciz "%d INSERTs into an r-tree" L_.str.123: ## @.str.123 .asciz "CREATE VIRTUAL TABLE rt1 USING rtree(id,x0,x1,y0,y1,z0,z1)" L_.str.124: ## @.str.124 .asciz "INSERT INTO rt1(id,x0,x1,y0,y1,z0,z1)VALUES(?1,?2,?3,?4,?5,?6,?7)" L_.str.125: ## @.str.125 .asciz "Copy from rtree to a regular table" L_.str.126: ## @.str.126 .asciz "CREATE TABLE t1(id INTEGER PRIMARY KEY,x0,x1,y0,y1,z0,z1)" L_.str.127: ## @.str.127 .asciz "INSERT INTO t1 SELECT * FROM rt1" L_.str.128: ## @.str.128 .asciz "%d one-dimensional intersect slice queries" L_.str.129: ## @.str.129 .asciz "SELECT count(*) FROM rt1 WHERE x0>=?1 AND x1<=?2" L_.str.130: ## @.str.130 .asciz "Verify result from 1-D intersect slice queries" L_.str.131: ## @.str.131 .asciz "SELECT count(*) FROM t1 WHERE x0>=?1 AND x1<=?2" L_.str.132: ## @.str.132 .asciz "Count disagree step %d: %d..%d. %d vs %d" L_.str.133: ## @.str.133 .asciz "%d one-dimensional overlap slice queries" L_.str.134: ## @.str.134 .asciz "SELECT count(*) FROM rt1 WHERE y1>=?1 AND y0<=?2" L_.str.135: ## @.str.135 .asciz "Verify result from 1-D overlap slice queries" L_.str.136: ## @.str.136 .asciz "SELECT count(*) FROM t1 WHERE y1>=?1 AND y0<=?2" L_.str.137: ## @.str.137 .asciz "%d custom geometry callback queries" L_.str.138: ## @.str.138 .asciz "SELECT count(*) FROM rt1 WHERE id MATCH xslice(?1,?2)" L_.str.139: ## @.str.139 .asciz "%d three-dimensional intersect box queries" L_.str.140: ## @.str.140 .asciz "SELECT count(*) FROM rt1 WHERE x1>=?1 AND x0<=?2 AND y1>=?1 AND y0<=?2 AND z1>=?1 AND z0<=?2" L_.str.141: ## @.str.141 .asciz "%d rowid queries" L_.str.142: ## @.str.142 .asciz "SELECT * FROM rt1 WHERE id=?1" L_.str.143: ## @.str.143 .asciz "%5d %5d %5d %s\n" L_.str.144: ## @.str.144 .asciz "main" L_.str.145: ## @.str.145 .asciz "UNIQUE" L_.str.146: ## @.str.146 .asciz "error: %d\\n" L_.str.147: ## @.str.147 .asciz "autovacuum" L_.str.148: ## @.str.148 .asciz "cachesize" L_.str.149: ## @.str.149 .asciz "missing argument on %s\n" L_.str.150: ## @.str.150 .asciz "exclusive" L_.str.151: ## @.str.151 .asciz "explain" L_.str.152: ## @.str.152 .asciz "heap" L_.str.153: ## @.str.153 .asciz "missing arguments on %s\n" L_.str.154: ## @.str.154 .asciz "incrvacuum" L_.str.155: ## @.str.155 .asciz "journal" L_.str.156: ## @.str.156 .asciz "key" L_.str.157: ## @.str.157 .asciz "lookaside" L_.str.158: ## @.str.158 .asciz "nosync" L_.str.159: ## @.str.159 .asciz "notnull" L_.str.160: ## @.str.160 .asciz "NOT NULL" L_.str.161: ## @.str.161 .asciz "pagesize" L_.str.162: ## @.str.162 .asciz "pcache" L_.str.163: ## @.str.163 .asciz "primarykey" L_.str.164: ## @.str.164 .asciz "PRIMARY KEY" L_.str.165: ## @.str.165 .asciz "reprepare" L_.str.166: ## @.str.166 .asciz "scratch" L_.str.167: ## @.str.167 .asciz "sqlonly" L_.str.168: ## @.str.168 .asciz "size" L_.str.169: ## @.str.169 .asciz "stats" L_.str.170: ## @.str.170 .asciz "testset" L_.str.171: ## @.str.171 .asciz "trace" L_.str.172: ## @.str.172 .asciz "utf16le" L_.str.173: ## @.str.173 .asciz "utf16be" L_.str.174: ## @.str.174 .asciz "verify" L_.str.175: ## @.str.175 .asciz "without-rowid" L_.str.176: ## @.str.176 .asciz "WITHOUT ROWID" L_.str.177: ## @.str.177 .asciz "help" L_.str.178: ## @.str.178 .asciz "?" .section __TEXT,__const .p2align 4 ## @zHelp _zHelp: .asciz "Usage: %s [--options] DATABASE\nOptions:\n --autovacuum Enable AUTOVACUUM mode\n --cachesize N Set the cache size to N\n --exclusive Enable locking_mode=EXCLUSIVE\n --explain Like --sqlonly but with added EXPLAIN keywords\n --heap SZ MIN Memory allocator uses SZ bytes & min allocation MIN\n --incrvacuum Enable incremenatal vacuum mode\n --journalmode M Set the journal_mode to MODE\n --key KEY Set the encryption key to KEY\n --lookaside N SZ Configure lookaside for N slots of SZ bytes each\n --nosync Set PRAGMA synchronous=OFF\n --notnull Add NOT NULL constraints to table columns\n --pagesize N Set the page size to N\n --pcache N SZ Configure N pages of pagecache each of size SZ bytes\n --primarykey Use PRIMARY KEY instead of UNIQUE where appropriate\n --reprepare Reprepare each statement upon every invocation\n --scratch N SZ Configure scratch memory for N slots of SZ bytes each\n --sqlonly No-op. Only show the SQL that would have been run.\n --size N Relative test size. Default=100\n --stats Show statistics at the end\n --testset T Run test-set T\n --trace Turn on SQL tracing\n --utf16be Set text encoding to UTF-16BE\n --utf16le Set text encoding to UTF-16LE\n --verify Run additional verification steps.\n --without-rowid Use WITHOUT ROWID where appropriate\n" .section __TEXT,__cstring,cstring_literals L_.str.179: ## @.str.179 .asciz "unknown option: %s\nUse \"%s -?\" for help\n" L_.str.180: ## @.str.180 .asciz "surplus argument: %s\nUse \"%s -?\" for help\n" L_.str.181: ## @.str.181 .asciz "cannot allocate %d-byte heap\n" L_.str.182: ## @.str.182 .asciz "heap configuration failed: %d\n" L_.str.183: ## @.str.183 .asciz "cannot allocate %lld-byte pcache\n" L_.str.184: ## @.str.184 .asciz "pcache configuration failed: %d\n" L_.str.185: ## @.str.185 .asciz "cannot allocate %lld-byte scratch\n" L_.str.186: ## @.str.186 .asciz "scratch configuration failed: %d\n" L_.str.187: ## @.str.187 .asciz ":memory:" L_.str.188: ## @.str.188 .asciz "Cannot open database file: %s\n" L_.str.189: ## @.str.189 .asciz "lookaside configuration failed: %d\n" L_.str.190: ## @.str.190 .asciz "random" L_.str.191: ## @.str.191 .asciz "PRAGMA key('%s')" L_.str.192: ## @.str.192 .asciz "PRAGMA encoding=%s" L_.str.193: ## @.str.193 .asciz "PRAGMA auto_vacuum=FULL" L_.str.194: ## @.str.194 .asciz "PRAGMA auto_vacuum=INCREMENTAL" L_.str.195: ## @.str.195 .asciz "PRAGMA page_size=%d" L_.str.196: ## @.str.196 .asciz "PRAGMA cache_size=%d" L_.str.197: ## @.str.197 .asciz "PRAGMA synchronous=OFF" L_.str.198: ## @.str.198 .asciz "PRAGMA locking_mode=EXCLUSIVE" L_.str.199: ## @.str.199 .asciz "PRAGMA journal_mode=%s" L_.str.200: ## @.str.200 .asciz ".explain\n.echo on\n" L_.str.201: ## @.str.201 .asciz "debug1" L_.str.202: ## @.str.202 .asciz "cte" L_.str.203: ## @.str.203 .asciz "rtree" L_.str.204: ## @.str.204 .asciz "unknown testset: \"%s\"\nChoices: main debug1 cte rtree\n" L_.str.205: ## @.str.205 .asciz "-- Lookaside Slots Used: %d (max %d)\n" L_.str.206: ## @.str.206 .asciz "-- Successful lookasides: %d\n" L_.str.207: ## @.str.207 .asciz "-- Lookaside size faults: %d\n" L_.str.208: ## @.str.208 .asciz "-- Lookaside OOM faults: %d\n" L_.str.209: ## @.str.209 .asciz "-- Pager Heap Usage: %d bytes\n" L_.str.210: ## @.str.210 .asciz "-- Page cache hits: %d\n" L_.str.211: ## @.str.211 .asciz "-- Page cache misses: %d\n" L_.str.212: ## @.str.212 .asciz "-- Page cache writes: %d\n" L_.str.213: ## @.str.213 .asciz "-- Schema Heap Usage: %d bytes\n" L_.str.214: ## @.str.214 .asciz "-- Statement Heap Usage: %d bytes\n" L_.str.215: ## @.str.215 .asciz "-- Memory Used (bytes): %d (max %d)\n" L_.str.216: ## @.str.216 .asciz "-- Outstanding Allocations: %d (max %d)\n" L_.str.217: ## @.str.217 .asciz "-- Pcache Overflow Bytes: %d (max %d)\n" L_.str.218: ## @.str.218 .asciz "-- Scratch Overflow Bytes: %d (max %d)\n" L_.str.219: ## @.str.219 .asciz "-- Largest Allocation: %d bytes\n" L_.str.220: ## @.str.220 .asciz "-- Largest Pcache Allocation: %d bytes\n" L_.str.221: ## @.str.221 .asciz "-- Largest Scratch Allocation: %d bytes\n" L_.str.222: ## @.str.222 .asciz "EXPLAIN " L_.str.223: ## @.str.223 .asciz "%.*s;\n" L_.str.224: ## @.str.224 .asciz "CREATE *" L_.str.225: ## @.str.225 .asciz "DROP *" L_.str.226: ## @.str.226 .asciz "ALTER *" .section __DATA,__const .p2align 4 ## @integerValue.aMult _integerValue.aMult: .quad L_.str.227 .long 1024 ## 0x400 .space 4 .quad L_.str.228 .long 1048576 ## 0x100000 .space 4 .quad L_.str.229 .long 1073741824 ## 0x40000000 .space 4 .quad L_.str.230 .long 1000 ## 0x3e8 .space 4 .quad L_.str.231 .long 1000000 ## 0xf4240 .space 4 .quad L_.str.232 .long 1000000000 ## 0x3b9aca00 .space 4 .quad L_.str.233 .long 1000 ## 0x3e8 .space 4 .quad L_.str.234 .long 1000000 ## 0xf4240 .space 4 .quad L_.str.235 .long 1000000000 ## 0x3b9aca00 .space 4 .section __TEXT,__cstring,cstring_literals L_.str.227: ## @.str.227 .asciz "KiB" L_.str.228: ## @.str.228 .asciz "MiB" L_.str.229: ## @.str.229 .asciz "GiB" L_.str.230: ## @.str.230 .asciz "KB" L_.str.231: ## @.str.231 .asciz "MB" L_.str.232: ## @.str.232 .asciz "GB" L_.str.233: ## @.str.233 .asciz "K" L_.str.234: ## @.str.234 .asciz "M" L_.str.235: ## @.str.235 .asciz "G" L_.str.236: ## @.str.236 .asciz "parameter too large - max 2147483648" .subsections_via_symbols
the_stack_data/29911.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 str wzr, [sp, #16] mov x0, #0 bl _time ; kill: def $w0 killed $w0 killed $x0 bl _srand bl _rand mov w9, #1000 sdiv w8, w0, w9 mul w8, w8, w9 subs w8, w0, w8 add w8, w8, #1 stur w8, [x29, #-4] stur wzr, [x29, #-12] b LBB0_1 LBB0_1: ; =>This Loop Header: Depth=1 ; Child Loop BB0_3 Depth 2 ldur w8, [x29, #-12] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_19 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 mov w8, #-1 stur w8, [x29, #-8] b LBB0_3 LBB0_3: ; Parent Loop BB0_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldur w8, [x29, #-8] subs w8, w8, #1 cset w8, lt mov w9, #1 str w9, [sp, #12] ; 4-byte Folded Spill tbnz w8, #0, LBB0_5 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_3 Depth=2 ldur w8, [x29, #-8] subs w8, w8, #1000 cset w8, gt str w8, [sp, #12] ; 4-byte Folded Spill b LBB0_5 LBB0_5: ; in Loop: Header=BB0_3 Depth=2 ldr w8, [sp, #12] ; 4-byte Folded Reload tbz w8, #0, LBB0_10 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_3 Depth=2 adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov x9, sp sub x8, x29, #8 str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf ldur w8, [x29, #-8] subs w8, w8, #1 cset w8, lt tbnz w8, #0, LBB0_8 b LBB0_7 LBB0_7: ; in Loop: Header=BB0_3 Depth=2 ldur w8, [x29, #-8] subs w8, w8, #1000 cset w8, le tbnz w8, #0, LBB0_9 b LBB0_8 LBB0_8: ; in Loop: Header=BB0_3 Depth=2 adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf b LBB0_9 LBB0_9: ; in Loop: Header=BB0_3 Depth=2 b LBB0_3 LBB0_10: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #16] add w8, w8, #1 str w8, [sp, #16] ldur w8, [x29, #-8] ldur w9, [x29, #-4] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_12 b LBB0_11 LBB0_11: ; in Loop: Header=BB0_1 Depth=1 mov w8, #1 stur w8, [x29, #-12] b LBB0_18 LBB0_12: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-4] ldur w9, [x29, #-8] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB0_14 b LBB0_13 LBB0_13: ; in Loop: Header=BB0_1 Depth=1 adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf b LBB0_17 LBB0_14: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-4] ldur w9, [x29, #-8] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_16 b LBB0_15 LBB0_15: ; in Loop: Header=BB0_1 Depth=1 adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf b LBB0_16 LBB0_16: ; in Loop: Header=BB0_1 Depth=1 b LBB0_17 LBB0_17: ; in Loop: Header=BB0_1 Depth=1 b LBB0_18 LBB0_18: ; in Loop: Header=BB0_1 Depth=1 b LBB0_1 LBB0_19: adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf ldur w9, [x29, #-4] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _printf ldr w9, [sp, #16] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.7@PAGE add x0, x0, l_.str.7@PAGEOFF bl _printf ldr w8, [sp, #16] subs w8, w8, #10 cset w8, gt tbnz w8, #0, LBB0_21 b LBB0_20 LBB0_20: adrp x0, l_.str.8@PAGE add x0, x0, l_.str.8@PAGEOFF bl _printf b LBB0_22 LBB0_21: adrp x0, l_.str.9@PAGE add x0, x0, l_.str.9@PAGEOFF bl _printf b LBB0_22 LBB0_22: 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 "Guess a number between 1 and 1,000: " l_.str.1: ; @.str.1 .asciz "%d" l_.str.2: ; @.str.2 .asciz "Not in number range.\n" l_.str.3: ; @.str.3 .asciz "Higher!\n" l_.str.4: ; @.str.4 .asciz "Lower!\n" l_.str.5: ; @.str.5 .asciz "~~~~~~~\n" l_.str.6: ; @.str.6 .asciz "Correct! The number is %d.\n" l_.str.7: ; @.str.7 .asciz "Guesses: %d\n" l_.str.8: ; @.str.8 .asciz "Congratz! You guessed the number in 10 or less guesses." l_.str.9: ; @.str.9 .asciz "Unfortunately it took you more than 10 guesses to get the correct number." .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl $0, -16(%rbp) xorl %eax, %eax movl %eax, %edi callq _time movl %eax, %edi callq _srand callq _rand movl $1000, %ecx ## imm = 0x3E8 cltd idivl %ecx addl $1, %edx movl %edx, -4(%rbp) movl $0, -12(%rbp) LBB0_1: ## =>This Loop Header: Depth=1 ## Child Loop BB0_3 Depth 2 cmpl $0, -12(%rbp) jne LBB0_19 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl $-1, -8(%rbp) LBB0_3: ## Parent Loop BB0_1 Depth=1 ## => This Inner Loop Header: Depth=2 movb $1, %al cmpl $1, -8(%rbp) movb %al, -17(%rbp) ## 1-byte Spill jl LBB0_5 ## %bb.4: ## in Loop: Header=BB0_3 Depth=2 cmpl $1000, -8(%rbp) ## imm = 0x3E8 setg %al movb %al, -17(%rbp) ## 1-byte Spill LBB0_5: ## in Loop: Header=BB0_3 Depth=2 movb -17(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB0_6 jmp LBB0_10 LBB0_6: ## in Loop: Header=BB0_3 Depth=2 leaq L_.str(%rip), %rdi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi leaq -8(%rbp), %rsi movb $0, %al callq _scanf cmpl $1, -8(%rbp) jl LBB0_8 ## %bb.7: ## in Loop: Header=BB0_3 Depth=2 cmpl $1000, -8(%rbp) ## imm = 0x3E8 jle LBB0_9 LBB0_8: ## in Loop: Header=BB0_3 Depth=2 leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf LBB0_9: ## in Loop: Header=BB0_3 Depth=2 jmp LBB0_3 LBB0_10: ## in Loop: Header=BB0_1 Depth=1 movl -16(%rbp), %eax addl $1, %eax movl %eax, -16(%rbp) movl -8(%rbp), %eax cmpl -4(%rbp), %eax jne LBB0_12 ## %bb.11: ## in Loop: Header=BB0_1 Depth=1 movl $1, -12(%rbp) jmp LBB0_18 LBB0_12: ## in Loop: Header=BB0_1 Depth=1 movl -4(%rbp), %eax cmpl -8(%rbp), %eax jle LBB0_14 ## %bb.13: ## in Loop: Header=BB0_1 Depth=1 leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf jmp LBB0_17 LBB0_14: ## in Loop: Header=BB0_1 Depth=1 movl -4(%rbp), %eax cmpl -8(%rbp), %eax jge LBB0_16 ## %bb.15: ## in Loop: Header=BB0_1 Depth=1 leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf LBB0_16: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_17 LBB0_17: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_18 LBB0_18: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_1 LBB0_19: leaq L_.str.5(%rip), %rdi movb $0, %al callq _printf movl -4(%rbp), %esi leaq L_.str.6(%rip), %rdi movb $0, %al callq _printf movl -16(%rbp), %esi leaq L_.str.7(%rip), %rdi movb $0, %al callq _printf cmpl $10, -16(%rbp) jg LBB0_21 ## %bb.20: leaq L_.str.8(%rip), %rdi movb $0, %al callq _printf jmp LBB0_22 LBB0_21: leaq L_.str.9(%rip), %rdi movb $0, %al callq _printf LBB0_22: addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Guess a number between 1 and 1,000: " L_.str.1: ## @.str.1 .asciz "%d" L_.str.2: ## @.str.2 .asciz "Not in number range.\n" L_.str.3: ## @.str.3 .asciz "Higher!\n" L_.str.4: ## @.str.4 .asciz "Lower!\n" L_.str.5: ## @.str.5 .asciz "~~~~~~~\n" L_.str.6: ## @.str.6 .asciz "Correct! The number is %d.\n" L_.str.7: ## @.str.7 .asciz "Guesses: %d\n" L_.str.8: ## @.str.8 .asciz "Congratz! You guessed the number in 10 or less guesses." L_.str.9: ## @.str.9 .asciz "Unfortunately it took you more than 10 guesses to get the correct number." .subsections_via_symbols
the_stack_data/1137533.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] mov w8, #5 str w8, [sp] mov w8, #1 str w8, [sp, #8] b LBB0_1 LBB0_1: ; =>This Loop Header: Depth=1 ; Child Loop BB0_3 Depth 2 ; Child Loop BB0_7 Depth 2 ldr w8, [sp, #8] subs w8, w8, #5 cset w8, gt tbnz w8, #0, LBB0_12 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 mov w8, #1 str w8, [sp, #4] b LBB0_3 LBB0_3: ; Parent Loop BB0_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #4] ldr w9, [sp] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_6 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_3 Depth=2 adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf b LBB0_5 LBB0_5: ; in Loop: Header=BB0_3 Depth=2 ldr w8, [sp, #4] add w8, w8, #1 str w8, [sp, #4] b LBB0_3 LBB0_6: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp] subs w8, w8, #1 str w8, [sp] mov w8, #1 str w8, [sp, #4] b LBB0_7 LBB0_7: ; Parent Loop BB0_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #4] ldr w9, [sp, #8] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_10 b LBB0_8 LBB0_8: ; in Loop: Header=BB0_7 Depth=2 adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf b LBB0_9 LBB0_9: ; in Loop: Header=BB0_7 Depth=2 ldr w8, [sp, #4] add w8, w8, #1 str w8, [sp, #4] b LBB0_7 LBB0_10: ; in Loop: Header=BB0_1 Depth=1 adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf b LBB0_11 LBB0_11: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #8] add w8, w8, #1 str w8, [sp, #8] b LBB0_1 LBB0_12: mov w0, #0 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz " " l_.str.1: ; @.str.1 .asciz "*" l_.str.2: ; @.str.2 .asciz "\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) movl $5, -16(%rbp) movl $1, -8(%rbp) LBB0_1: ## =>This Loop Header: Depth=1 ## Child Loop BB0_3 Depth 2 ## Child Loop BB0_7 Depth 2 cmpl $5, -8(%rbp) jg LBB0_12 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl $1, -12(%rbp) LBB0_3: ## Parent Loop BB0_1 Depth=1 ## => This Inner Loop Header: Depth=2 movl -12(%rbp), %eax cmpl -16(%rbp), %eax jge LBB0_6 ## %bb.4: ## in Loop: Header=BB0_3 Depth=2 leaq L_.str(%rip), %rdi movb $0, %al callq _printf ## %bb.5: ## in Loop: Header=BB0_3 Depth=2 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB0_3 LBB0_6: ## in Loop: Header=BB0_1 Depth=1 movl -16(%rbp), %eax addl $-1, %eax movl %eax, -16(%rbp) movl $1, -12(%rbp) LBB0_7: ## Parent Loop BB0_1 Depth=1 ## => This Inner Loop Header: Depth=2 movl -12(%rbp), %eax cmpl -8(%rbp), %eax jg LBB0_10 ## %bb.8: ## in Loop: Header=BB0_7 Depth=2 leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf ## %bb.9: ## in Loop: Header=BB0_7 Depth=2 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB0_7 LBB0_10: ## in Loop: Header=BB0_1 Depth=1 leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf ## %bb.11: ## in Loop: Header=BB0_1 Depth=1 movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) jmp LBB0_1 LBB0_12: xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz " " L_.str.1: ## @.str.1 .asciz "*" L_.str.2: ## @.str.2 .asciz "\n" .subsections_via_symbols
the_stack_data/864034.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _name ; -- Begin function name .p2align 2 _name: ; @name .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] ldr x8, [sp, #8] ldr x0, [x8, #8] add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _greet ; -- Begin function greet .p2align 2 _greet: ; @greet .cfi_startproc ; %bb.0: adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF ret .cfi_endproc ; -- End function .globl _menu ; -- Begin function menu .p2align 2 _menu: ; @menu .cfi_startproc ; %bb.0: adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF ret .cfi_endproc ; -- End function .globl _create ; -- Begin function create .p2align 2 _create: ; @create .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #8] mov x0, #16 bl _malloc str x0, [sp] ldr x9, [sp] adrp x8, _vtable@PAGE add x8, x8, _vtable@PAGEOFF str x8, [x9] ldr x8, [sp, #8] ldr x9, [sp] str x8, [x9, #8] ldr x0, [sp] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _createStack ; -- Begin function createStack .p2align 2 _createStack: ; @createStack .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, #24] add x0, sp, #8 adrp x8, _vtable@PAGE add x8, x8, _vtable@PAGEOFF str x8, [sp, #8] ldr x8, [sp, #24] str x8, [sp, #16] add sp, sp, #32 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "grr!" l_.str.1: ; @.str.1 .asciz "sjemenke" .section __DATA,__data .globl _vtable ; @vtable .p2align 3 _vtable: .quad _name .quad _greet .quad _menu .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _name ## -- Begin function name .p2align 4, 0x90 _name: ## @name .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) movq -8(%rbp), %rax movq 8(%rax), %rax popq %rbp retq .cfi_endproc ## -- End function .globl _greet ## -- Begin function greet .p2align 4, 0x90 _greet: ## @greet .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq L_.str(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .globl _menu ## -- Begin function menu .p2align 4, 0x90 _menu: ## @menu .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq L_.str.1(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .globl _create ## -- Begin function create .p2align 4, 0x90 _create: ## @create .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) movl $16, %edi callq _malloc movq %rax, -16(%rbp) movq -16(%rbp), %rax leaq _vtable(%rip), %rcx movq %rcx, (%rax) movq -8(%rbp), %rcx movq -16(%rbp), %rax movq %rcx, 8(%rax) movq -16(%rbp), %rax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _createStack ## -- Begin function createStack .p2align 4, 0x90 _createStack: ## @createStack .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) leaq _vtable(%rip), %rax movq %rax, -24(%rbp) movq -8(%rbp), %rax movq %rax, -16(%rbp) leaq -24(%rbp), %rax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "grr!" L_.str.1: ## @.str.1 .asciz "sjemenke" .section __DATA,__data .globl _vtable ## @vtable .p2align 4 _vtable: .quad _name .quad _greet .quad _menu .subsections_via_symbols
the_stack_data/154829605.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _rwlock_init ; -- Begin function rwlock_init .p2align 2 _rwlock_init: ; @rwlock_init .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] add x0, x8, #112 mov x1, #0 str x1, [sp] ; 8-byte Folded Spill bl _pthread_cond_init ldr x1, [sp] ; 8-byte Folded Reload ldr x8, [sp, #8] add x0, x8, #64 bl _pthread_cond_init ldr x1, [sp] ; 8-byte Folded Reload ldr x0, [sp, #8] bl _pthread_mutex_init ldr x8, [sp, #8] str wzr, [x8, #160] ldr x8, [sp, #8] str wzr, [x8, #164] ldr x8, [sp, #8] str wzr, [x8, #168] ldr x8, [sp, #8] str wzr, [x8, #172] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _readlock ; -- Begin function readlock .p2align 2 _readlock: ; @readlock .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 _pthread_mutex_lock ldr x9, [sp, #8] ldr w8, [x9, #160] add w8, w8, #1 str w8, [x9, #160] b LBB1_1 LBB1_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #8] ldr w8, [x8, #172] subs w8, w8, #0 cset w8, gt mov w9, #1 str w9, [sp, #4] ; 4-byte Folded Spill tbnz w8, #0, LBB1_3 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 ldr x8, [sp, #8] ldr w8, [x8, #168] subs w8, w8, #0 cset w8, gt str w8, [sp, #4] ; 4-byte Folded Spill b LBB1_3 LBB1_3: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #4] ; 4-byte Folded Reload tbz w8, #0, LBB1_5 b LBB1_4 LBB1_4: ; in Loop: Header=BB1_1 Depth=1 ldr x8, [sp, #8] add x0, x8, #64 ldr x1, [sp, #8] bl _pthread_cond_wait b LBB1_1 LBB1_5: ldr x9, [sp, #8] ldr w8, [x9, #160] subs w8, w8, #1 str w8, [x9, #160] ldr x9, [sp, #8] ldr w8, [x9, #164] add w8, w8, #1 str w8, [x9, #164] ldr x0, [sp, #8] bl _pthread_mutex_unlock ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _writelock ; -- Begin function writelock .p2align 2 _writelock: ; @writelock .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 _pthread_mutex_lock ldr x9, [sp, #8] ldr w8, [x9, #168] add w8, w8, #1 str w8, [x9, #168] b LBB2_1 LBB2_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #8] ldr w8, [x8, #172] subs w8, w8, #0 cset w8, gt mov w9, #1 str w9, [sp, #4] ; 4-byte Folded Spill tbnz w8, #0, LBB2_3 b LBB2_2 LBB2_2: ; in Loop: Header=BB2_1 Depth=1 ldr x8, [sp, #8] ldr w8, [x8, #164] subs w8, w8, #0 cset w8, gt str w8, [sp, #4] ; 4-byte Folded Spill b LBB2_3 LBB2_3: ; in Loop: Header=BB2_1 Depth=1 ldr w8, [sp, #4] ; 4-byte Folded Reload tbz w8, #0, LBB2_5 b LBB2_4 LBB2_4: ; in Loop: Header=BB2_1 Depth=1 ldr x8, [sp, #8] add x0, x8, #112 ldr x1, [sp, #8] bl _pthread_cond_wait b LBB2_1 LBB2_5: ldr x9, [sp, #8] ldr w8, [x9, #168] subs w8, w8, #1 str w8, [x9, #168] ldr x9, [sp, #8] ldr w8, [x9, #172] add w8, w8, #1 str w8, [x9, #172] ldr x0, [sp, #8] bl _pthread_mutex_unlock ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _unlock ; -- Begin function unlock .p2align 2 _unlock: ; @unlock .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 _pthread_mutex_lock ldr x8, [sp, #8] ldr w8, [x8, #172] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB3_2 b LBB3_1 LBB3_1: ldr x8, [sp, #8] str wzr, [x8, #172] b LBB3_5 LBB3_2: ldr x8, [sp, #8] ldr w8, [x8, #164] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB3_4 b LBB3_3 LBB3_3: ldr x9, [sp, #8] ldr w8, [x9, #164] subs w8, w8, #1 str w8, [x9, #164] b LBB3_4 LBB3_4: b LBB3_5 LBB3_5: ldr x0, [sp, #8] bl _pthread_mutex_unlock ldr x8, [sp, #8] ldr w8, [x8, #164] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB3_8 b LBB3_6 LBB3_6: ldr x8, [sp, #8] ldr w8, [x8, #168] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB3_8 b LBB3_7 LBB3_7: ldr x8, [sp, #8] add x0, x8, #112 bl _pthread_cond_signal b LBB3_12 LBB3_8: ldr x8, [sp, #8] ldr w8, [x8, #172] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB3_11 b LBB3_9 LBB3_9: ldr x8, [sp, #8] ldr w8, [x8, #160] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB3_11 b LBB3_10 LBB3_10: ldr x8, [sp, #8] add x0, x8, #64 bl _pthread_cond_signal b LBB3_11 LBB3_11: b LBB3_12 LBB3_12: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _insert ; -- Begin function insert .p2align 2 _insert: ; @insert .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur w0, [x29, #-4] mov x0, #16 bl _malloc str x0, [sp] ldur w8, [x29, #-4] ldr x9, [sp] str w8, [x9] adrp x9, _list@GOTPAGE ldr x9, [x9, _list@GOTPAGEOFF] ldr x8, [x9] ldr x10, [sp] str x8, [x10, #8] ldr x8, [sp] str x8, [x9] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _search ; -- Begin function search .p2align 2 _search: ; @search .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str w0, [sp, #28] adrp x8, _list@GOTPAGE ldr x8, [x8, _list@GOTPAGEOFF] ldr x8, [x8] str x8, [sp, #16] b LBB5_1 LBB5_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #16] subs x8, x8, #0 cset w8, eq mov w9, #0 str w9, [sp, #12] ; 4-byte Folded Spill tbnz w8, #0, LBB5_3 b LBB5_2 LBB5_2: ; in Loop: Header=BB5_1 Depth=1 ldr x8, [sp, #16] ldr w8, [x8] ldr w9, [sp, #28] subs w8, w8, w9 cset w8, ne str w8, [sp, #12] ; 4-byte Folded Spill b LBB5_3 LBB5_3: ; in Loop: Header=BB5_1 Depth=1 ldr w8, [sp, #12] ; 4-byte Folded Reload tbz w8, #0, LBB5_6 b LBB5_4 LBB5_4: ; in Loop: Header=BB5_1 Depth=1 b LBB5_5 LBB5_5: ; in Loop: Header=BB5_1 Depth=1 ldr x8, [sp, #16] ldr x8, [x8, #8] str x8, [sp, #16] b LBB5_1 LBB5_6: ldr x0, [sp, #16] add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _foo ; -- Begin function foo .p2align 2 _foo: ; @foo .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] ldur x8, [x29, #-8] ldr x8, [x8, #8] ldr w8, [x8] stur w8, [x29, #-12] mov w8, #-1 str w8, [sp, #12] str wzr, [sp, #16] b LBB6_1 LBB6_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #16] mov w9, #10000 subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB6_7 b LBB6_2 LBB6_2: ; in Loop: Header=BB6_1 Depth=1 ldr w8, [sp, #16] mov w10, #10 sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB6_4 b LBB6_3 LBB6_3: ; in Loop: Header=BB6_1 Depth=1 ldur x8, [x29, #-8] ldr x0, [x8] bl _writelock ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] ldur w9, [x29, #-12] mov w8, #1000 mul w8, w8, w9 ldr w9, [sp, #12] add w0, w8, w9 bl _insert ldur x8, [x29, #-8] ldr x0, [x8] bl _unlock b LBB6_5 LBB6_4: ; in Loop: Header=BB6_1 Depth=1 ldur x8, [x29, #-8] ldr x0, [x8] bl _readlock ldur w9, [x29, #-12] mov w8, #1000 mul w8, w8, w9 ldr w9, [sp, #12] add w0, w8, w9 bl _search ldur x8, [x29, #-8] ldr x0, [x8] bl _unlock b LBB6_5 LBB6_5: ; in Loop: Header=BB6_1 Depth=1 b LBB6_6 LBB6_6: ; in Loop: Header=BB6_1 Depth=1 ldr w8, [sp, #16] add w8, w8, #1 str w8, [sp, #16] b LBB6_1 LBB6_7: mov x0, #0 bl _pthread_exit .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #224 .cfi_def_cfa_offset 224 stp x29, x30, [sp, #208] ; 16-byte Folded Spill add x29, sp, #208 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] str wzr, [sp, #52] adrp x8, _list@GOTPAGE ldr x8, [x8, _list@GOTPAGEOFF] ; kill: def $x9 killed $xzr str xzr, [x8] mov x0, #176 bl _malloc str x0, [sp, #40] ldr x0, [sp, #40] bl _rwlock_init str wzr, [sp, #36] b LBB7_1 LBB7_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #36] subs w8, w8, #5 cset w8, ge tbnz w8, #0, LBB7_4 b LBB7_2 LBB7_2: ; in Loop: Header=BB7_1 Depth=1 ldr x9, [sp, #40] ldrsw x8, [sp, #36] lsl x10, x8, #4 add x8, sp, #56 str x9, [x8, x10] ldr w10, [sp, #36] ldrsw x11, [sp, #36] sub x9, x29, #28 str w10, [x9, x11, lsl #2] ldrsw x10, [sp, #36] add x9, x9, x10, lsl #2 ldrsw x11, [sp, #36] mov x10, x8 add x10, x10, x11, lsl #4 str x9, [x10, #8] ldrsw x10, [sp, #36] sub x9, x29, #72 add x0, x9, x10, lsl #3 ldrsw x9, [sp, #36] add x3, x8, x9, lsl #4 mov x1, #0 adrp x2, _foo@PAGE add x2, x2, _foo@PAGEOFF bl _pthread_create b LBB7_3 LBB7_3: ; in Loop: Header=BB7_1 Depth=1 ldr w8, [sp, #36] add w8, w8, #1 str w8, [sp, #36] b LBB7_1 LBB7_4: str wzr, [sp, #36] b LBB7_5 LBB7_5: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #36] subs w8, w8, #5 cset w8, ge tbnz w8, #0, LBB7_8 b LBB7_6 LBB7_6: ; in Loop: Header=BB7_5 Depth=1 ldrsw x9, [sp, #36] sub x8, x29, #72 ldr x0, [x8, x9, lsl #3] mov x1, #0 bl _pthread_join b LBB7_7 LBB7_7: ; in Loop: Header=BB7_5 Depth=1 ldr w8, [sp, #36] add w8, w8, #1 str w8, [sp, #36] b LBB7_5 LBB7_8: str wzr, [sp, #32] adrp x8, _list@GOTPAGE ldr x8, [x8, _list@GOTPAGEOFF] ldr x8, [x8] str x8, [sp, #24] b LBB7_9 LBB7_9: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #24] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB7_12 b LBB7_10 LBB7_10: ; in Loop: Header=BB7_9 Depth=1 ldr x8, [sp, #24] ldr w9, [x8] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldr w8, [sp, #32] add w8, w8, #1 str w8, [sp, #32] b LBB7_11 LBB7_11: ; in Loop: Header=BB7_9 Depth=1 ldr x8, [sp, #24] ldr x8, [x8, #8] str x8, [sp, #24] b LBB7_9 LBB7_12: adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _puts ldr w8, [sp, #32] mov w9, #5000 subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB7_14 b LBB7_13 LBB7_13: adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf b LBB7_15 LBB7_14: adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf b LBB7_15 LBB7_15: ldr w8, [sp, #52] str w8, [sp, #20] ; 4-byte Folded Spill ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB7_17 b LBB7_16 LBB7_16: bl ___stack_chk_fail LBB7_17: ldr w0, [sp, #20] ; 4-byte Folded Reload ldp x29, x30, [sp, #208] ; 16-byte Folded Reload add sp, sp, #224 ret .cfi_endproc ; -- End function .comm _list,8,3 ; @list .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d, " l_.str.1: ; @.str.1 .space 1 l_.str.2: ; @.str.2 .asciz "OK\n" l_.str.3: ; @.str.3 .asciz "ERROR\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _rwlock_init ## -- Begin function rwlock_init .p2align 4, 0x90 _rwlock_init: ## @rwlock_init .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) movq -8(%rbp), %rdi addq $112, %rdi xorl %eax, %eax movl %eax, %esi callq _pthread_cond_init movq -8(%rbp), %rdi addq $64, %rdi xorl %eax, %eax movl %eax, %esi callq _pthread_cond_init movq -8(%rbp), %rdi xorl %eax, %eax movl %eax, %esi callq _pthread_mutex_init movq -8(%rbp), %rax movl $0, 160(%rax) movq -8(%rbp), %rax movl $0, 164(%rax) movq -8(%rbp), %rax movl $0, 168(%rax) movq -8(%rbp), %rax movl $0, 172(%rax) addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _readlock ## -- Begin function readlock .p2align 4, 0x90 _readlock: ## @readlock .cfi_startproc ## %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 _pthread_mutex_lock movq -8(%rbp), %rax movl 160(%rax), %ecx addl $1, %ecx movl %ecx, 160(%rax) LBB1_1: ## =>This Inner Loop Header: Depth=1 movq -8(%rbp), %rcx movb $1, %al cmpl $0, 172(%rcx) movb %al, -9(%rbp) ## 1-byte Spill jg LBB1_3 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 movq -8(%rbp), %rax cmpl $0, 168(%rax) setg %al movb %al, -9(%rbp) ## 1-byte Spill LBB1_3: ## in Loop: Header=BB1_1 Depth=1 movb -9(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB1_4 jmp LBB1_5 LBB1_4: ## in Loop: Header=BB1_1 Depth=1 movq -8(%rbp), %rdi addq $64, %rdi movq -8(%rbp), %rsi callq _pthread_cond_wait jmp LBB1_1 LBB1_5: movq -8(%rbp), %rax movl 160(%rax), %ecx addl $-1, %ecx movl %ecx, 160(%rax) movq -8(%rbp), %rax movl 164(%rax), %ecx addl $1, %ecx movl %ecx, 164(%rax) movq -8(%rbp), %rdi callq _pthread_mutex_unlock addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _writelock ## -- Begin function writelock .p2align 4, 0x90 _writelock: ## @writelock .cfi_startproc ## %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 _pthread_mutex_lock movq -8(%rbp), %rax movl 168(%rax), %ecx addl $1, %ecx movl %ecx, 168(%rax) LBB2_1: ## =>This Inner Loop Header: Depth=1 movq -8(%rbp), %rcx movb $1, %al cmpl $0, 172(%rcx) movb %al, -9(%rbp) ## 1-byte Spill jg LBB2_3 ## %bb.2: ## in Loop: Header=BB2_1 Depth=1 movq -8(%rbp), %rax cmpl $0, 164(%rax) setg %al movb %al, -9(%rbp) ## 1-byte Spill LBB2_3: ## in Loop: Header=BB2_1 Depth=1 movb -9(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB2_4 jmp LBB2_5 LBB2_4: ## in Loop: Header=BB2_1 Depth=1 movq -8(%rbp), %rdi addq $112, %rdi movq -8(%rbp), %rsi callq _pthread_cond_wait jmp LBB2_1 LBB2_5: movq -8(%rbp), %rax movl 168(%rax), %ecx addl $-1, %ecx movl %ecx, 168(%rax) movq -8(%rbp), %rax movl 172(%rax), %ecx addl $1, %ecx movl %ecx, 172(%rax) movq -8(%rbp), %rdi callq _pthread_mutex_unlock addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _unlock ## -- Begin function unlock .p2align 4, 0x90 _unlock: ## @unlock .cfi_startproc ## %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 _pthread_mutex_lock movq -8(%rbp), %rax cmpl $0, 172(%rax) jle LBB3_2 ## %bb.1: movq -8(%rbp), %rax movl $0, 172(%rax) jmp LBB3_5 LBB3_2: movq -8(%rbp), %rax cmpl $0, 164(%rax) jle LBB3_4 ## %bb.3: movq -8(%rbp), %rax movl 164(%rax), %ecx addl $-1, %ecx movl %ecx, 164(%rax) LBB3_4: jmp LBB3_5 LBB3_5: movq -8(%rbp), %rdi callq _pthread_mutex_unlock movq -8(%rbp), %rax cmpl $0, 164(%rax) jne LBB3_8 ## %bb.6: movq -8(%rbp), %rax cmpl $0, 168(%rax) jle LBB3_8 ## %bb.7: movq -8(%rbp), %rdi addq $112, %rdi callq _pthread_cond_signal jmp LBB3_12 LBB3_8: movq -8(%rbp), %rax cmpl $0, 172(%rax) jne LBB3_11 ## %bb.9: movq -8(%rbp), %rax cmpl $0, 160(%rax) jle LBB3_11 ## %bb.10: movq -8(%rbp), %rdi addq $64, %rdi callq _pthread_cond_signal LBB3_11: jmp LBB3_12 LBB3_12: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _insert ## -- Begin function insert .p2align 4, 0x90 _insert: ## @insert .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl %edi, -4(%rbp) movl $16, %edi callq _malloc movq %rax, -16(%rbp) movl -4(%rbp), %ecx movq -16(%rbp), %rax movl %ecx, (%rax) movq _list@GOTPCREL(%rip), %rax movq (%rax), %rcx movq -16(%rbp), %rax movq %rcx, 8(%rax) movq -16(%rbp), %rcx movq _list@GOTPCREL(%rip), %rax movq %rcx, (%rax) addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _search ## -- Begin function search .p2align 4, 0x90 _search: ## @search .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, -4(%rbp) movq _list@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -16(%rbp) LBB5_1: ## =>This Inner Loop Header: Depth=1 xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpq $0, -16(%rbp) movb %al, -17(%rbp) ## 1-byte Spill je LBB5_3 ## %bb.2: ## in Loop: Header=BB5_1 Depth=1 movq -16(%rbp), %rax movl (%rax), %eax cmpl -4(%rbp), %eax setne %al movb %al, -17(%rbp) ## 1-byte Spill LBB5_3: ## in Loop: Header=BB5_1 Depth=1 movb -17(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB5_4 jmp LBB5_6 LBB5_4: ## in Loop: Header=BB5_1 Depth=1 jmp LBB5_5 LBB5_5: ## in Loop: Header=BB5_1 Depth=1 movq -16(%rbp), %rax movq 8(%rax), %rax movq %rax, -16(%rbp) jmp LBB5_1 LBB5_6: movq -16(%rbp), %rax popq %rbp retq .cfi_endproc ## -- End function .globl _foo ## -- Begin function foo .p2align 4, 0x90 _foo: ## @foo .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movq -8(%rbp), %rax movq 8(%rax), %rax movl (%rax), %eax movl %eax, -12(%rbp) movl $-1, -20(%rbp) movl $0, -16(%rbp) LBB6_1: ## =>This Inner Loop Header: Depth=1 cmpl $10000, -16(%rbp) ## imm = 0x2710 jge LBB6_7 ## %bb.2: ## in Loop: Header=BB6_1 Depth=1 movl -16(%rbp), %eax movl $10, %ecx cltd idivl %ecx cmpl $0, %edx jne LBB6_4 ## %bb.3: ## in Loop: Header=BB6_1 Depth=1 movq -8(%rbp), %rax movq (%rax), %rdi callq _writelock movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) imull $1000, -12(%rbp), %edi ## imm = 0x3E8 addl -20(%rbp), %edi callq _insert movq -8(%rbp), %rax movq (%rax), %rdi callq _unlock jmp LBB6_5 LBB6_4: ## in Loop: Header=BB6_1 Depth=1 movq -8(%rbp), %rax movq (%rax), %rdi callq _readlock imull $1000, -12(%rbp), %edi ## imm = 0x3E8 addl -20(%rbp), %edi callq _search movq -8(%rbp), %rax movq (%rax), %rdi callq _unlock LBB6_5: ## in Loop: Header=BB6_1 Depth=1 jmp LBB6_6 LBB6_6: ## in Loop: Header=BB6_1 Depth=1 movl -16(%rbp), %eax addl $1, %eax movl %eax, -16(%rbp) jmp LBB6_1 LBB6_7: xorl %eax, %eax movl %eax, %edi callq _pthread_exit .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $208, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -164(%rbp) movq _list@GOTPCREL(%rip), %rax movq $0, (%rax) movl $176, %edi callq _malloc movq %rax, -176(%rbp) movq -176(%rbp), %rdi callq _rwlock_init movl $0, -180(%rbp) LBB7_1: ## =>This Inner Loop Header: Depth=1 cmpl $5, -180(%rbp) jge LBB7_4 ## %bb.2: ## in Loop: Header=BB7_1 Depth=1 movq -176(%rbp), %rcx movslq -180(%rbp), %rdx leaq -160(%rbp), %rax shlq $4, %rdx addq %rdx, %rax movq %rcx, (%rax) movl -180(%rbp), %ecx movslq -180(%rbp), %rax movl %ecx, -32(%rbp,%rax,4) movslq -180(%rbp), %rax leaq -32(%rbp), %rcx shlq $2, %rax addq %rax, %rcx movslq -180(%rbp), %rdx leaq -160(%rbp), %rax shlq $4, %rdx addq %rdx, %rax movq %rcx, 8(%rax) movslq -180(%rbp), %rax leaq -80(%rbp), %rdi shlq $3, %rax addq %rax, %rdi movslq -180(%rbp), %rax leaq -160(%rbp), %rcx shlq $4, %rax addq %rax, %rcx xorl %eax, %eax movl %eax, %esi leaq _foo(%rip), %rdx callq _pthread_create ## %bb.3: ## in Loop: Header=BB7_1 Depth=1 movl -180(%rbp), %eax addl $1, %eax movl %eax, -180(%rbp) jmp LBB7_1 LBB7_4: movl $0, -180(%rbp) LBB7_5: ## =>This Inner Loop Header: Depth=1 cmpl $5, -180(%rbp) jge LBB7_8 ## %bb.6: ## in Loop: Header=BB7_5 Depth=1 movslq -180(%rbp), %rax movq -80(%rbp,%rax,8), %rdi xorl %eax, %eax movl %eax, %esi callq _pthread_join ## %bb.7: ## in Loop: Header=BB7_5 Depth=1 movl -180(%rbp), %eax addl $1, %eax movl %eax, -180(%rbp) jmp LBB7_5 LBB7_8: movl $0, -184(%rbp) movq _list@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -192(%rbp) LBB7_9: ## =>This Inner Loop Header: Depth=1 cmpq $0, -192(%rbp) je LBB7_12 ## %bb.10: ## in Loop: Header=BB7_9 Depth=1 movq -192(%rbp), %rax movl (%rax), %esi leaq L_.str(%rip), %rdi movb $0, %al callq _printf movl -184(%rbp), %eax addl $1, %eax movl %eax, -184(%rbp) ## %bb.11: ## in Loop: Header=BB7_9 Depth=1 movq -192(%rbp), %rax movq 8(%rax), %rax movq %rax, -192(%rbp) jmp LBB7_9 LBB7_12: leaq L_.str.1(%rip), %rdi callq _puts cmpl $5000, -184(%rbp) ## imm = 0x1388 jne LBB7_14 ## %bb.13: leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf jmp LBB7_15 LBB7_14: leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf LBB7_15: movl -164(%rbp), %eax movl %eax, -196(%rbp) ## 4-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB7_17 ## %bb.16: movl -196(%rbp), %eax ## 4-byte Reload addq $208, %rsp popq %rbp retq LBB7_17: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .comm _list,8,3 ## @list .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d, " L_.str.1: ## @.str.1 .space 1 L_.str.2: ## @.str.2 .asciz "OK\n" L_.str.3: ## @.str.3 .asciz "ERROR\n" .subsections_via_symbols
the_stack_data/79559.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #0 str w8, [sp, #24] ; 4-byte Folded Spill stur wzr, [x29, #-4] mov x9, sp sub x8, x29, #8 str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF str x0, [sp, #16] ; 8-byte Folded Spill bl _scanf ldr x0, [sp, #16] ; 8-byte Folded Reload mov x9, sp sub x8, x29, #12 str x8, [x9] bl _scanf fmov s0, #12.00000000 stur s0, [x29, #-16] ldur w8, [x29, #-8] ldur w9, [x29, #-12] mul w8, w8, w9 scvtf s0, w8 ldur s1, [x29, #-16] fdiv s0, s0, s1 stur s0, [x29, #-20] ldur s0, [x29, #-20] fcvt d0, s0 mov x8, sp str d0, [x8] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf ldr w0, [sp, #24] ; 4-byte Folded Reload ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d" l_.str.1: ; @.str.1 .asciz "%.3f\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __TEXT,__literal4,4byte_literals .p2align 2 ## -- Begin function main LCPI0_0: .long 0x41400000 ## float 12 .section __TEXT,__text,regular,pure_instructions .globl _main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl $0, -4(%rbp) leaq L_.str(%rip), %rdi leaq -8(%rbp), %rsi movb $0, %al callq _scanf leaq L_.str(%rip), %rdi leaq -12(%rbp), %rsi movb $0, %al callq _scanf movss LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, -16(%rbp) movl -8(%rbp), %eax imull -12(%rbp), %eax cvtsi2ss %eax, %xmm0 divss -16(%rbp), %xmm0 movss %xmm0, -20(%rbp) movss -20(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 leaq L_.str.1(%rip), %rdi movb $1, %al callq _printf xorl %eax, %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d" L_.str.1: ## @.str.1 .asciz "%.3f\n" .subsections_via_symbols
the_stack_data/97012898.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _simpleArraySum ; -- Begin function simpleArraySum .p2align 2 _simpleArraySum: ; @simpleArraySum .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str w0, [sp, #28] str x1, [sp, #16] str wzr, [sp, #12] str wzr, [sp, #8] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #8] ldr w9, [sp, #28] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_4 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #16] ldrsw x9, [sp, #8] ldr w9, [x8, x9, lsl #2] ldr w8, [sp, #12] add w8, w8, w9 str w8, [sp, #12] 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: ldr w0, [sp, #12] add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: 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, #128 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] stur wzr, [x29, #-12] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _getenv adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF bl _fopen stur x0, [x29, #-24] bl _readline stur x0, [x29, #-40] ldur x0, [x29, #-40] sub x1, x29, #32 mov w2, #10 bl _strtol mov x8, x0 stur w8, [x29, #-44] ldur x8, [x29, #-32] ldur x9, [x29, #-40] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: ldur x8, [x29, #-32] ldrsb w8, [x8] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB1_3 b LBB1_2 LBB1_2: mov w8, #1 stur w8, [x29, #-12] b LBB1_11 LBB1_3: bl _readline bl _split_string stur x0, [x29, #-56] ldur w8, [x29, #-44] ; kill: def $x8 killed $w8 mov x9, sp stur x9, [x29, #-64] lsl x9, x8, #2 add x9, x9, #15 and x9, x9, #0xfffffffffffffff0 stur x9, [x29, #-120] ; 8-byte Folded Spill adrp x16, ___chkstk_darwin@GOTPAGE ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF] blr x16 ldur x10, [x29, #-120] ; 8-byte Folded Reload mov x9, sp subs x9, x9, x10 mov sp, x9 stur x9, [x29, #-112] ; 8-byte Folded Spill stur x8, [x29, #-72] stur wzr, [x29, #-76] b LBB1_4 LBB1_4: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-76] ldur w9, [x29, #-44] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_10 b LBB1_5 LBB1_5: ; in Loop: Header=BB1_4 Depth=1 ldur x8, [x29, #-56] ldursw x9, [x29, #-76] ldr x8, [x8, x9, lsl #3] stur x8, [x29, #-96] ldur x0, [x29, #-96] sub x1, x29, #88 mov w2, #10 bl _strtol mov x8, x0 stur w8, [x29, #-100] ldur x8, [x29, #-88] ldur x9, [x29, #-96] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB1_7 b LBB1_6 LBB1_6: ; in Loop: Header=BB1_4 Depth=1 ldur x8, [x29, #-88] ldrsb w8, [x8] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB1_8 b LBB1_7 LBB1_7: mov w0, #1 bl _exit LBB1_8: ; in Loop: Header=BB1_4 Depth=1 ldur x9, [x29, #-112] ; 8-byte Folded Reload ldur w8, [x29, #-100] ldursw x10, [x29, #-76] str w8, [x9, x10, lsl #2] b LBB1_9 LBB1_9: ; in Loop: Header=BB1_4 Depth=1 ldur w8, [x29, #-76] add w8, w8, #1 stur w8, [x29, #-76] b LBB1_4 LBB1_10: ldur x1, [x29, #-112] ; 8-byte Folded Reload ldur w0, [x29, #-44] bl _simpleArraySum stur w0, [x29, #-104] ldur x0, [x29, #-24] ldur w9, [x29, #-104] ; implicit-def: $x8 mov x8, x9 sub sp, sp, #16 mov x9, sp str x8, [x9] adrp x1, l_.str.2@PAGE add x1, x1, l_.str.2@PAGEOFF bl _fprintf add sp, sp, #16 ldur x0, [x29, #-24] bl _fclose stur wzr, [x29, #-12] ldur x8, [x29, #-64] mov sp, x8 b LBB1_11 LBB1_11: ldur w8, [x29, #-12] stur w8, [x29, #-124] ; 4-byte Folded Spill ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB1_13 b LBB1_12 LBB1_12: bl ___stack_chk_fail LBB1_13: ldur w0, [x29, #-124] ; 4-byte Folded Reload mov sp, x29 ldp x29, x30, [sp], #16 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .globl _split_string ; -- Begin function split_string .p2align 2 _split_string: ; @split_string .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] ; kill: def $x8 killed $xzr str xzr, [sp, #24] ldur x0, [x29, #-16] adrp x1, l_.str.3@PAGE add x1, x1, l_.str.3@PAGEOFF bl _strtok str x0, [sp, #16] str wzr, [sp, #12] b LBB2_1 LBB2_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #16] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB2_5 b LBB2_2 LBB2_2: ; in Loop: Header=BB2_1 Depth=1 ldr x0, [sp, #24] ldr w8, [sp, #12] add w9, w8, #1 str w9, [sp, #12] ; implicit-def: $x8 mov x8, x9 sxtw x9, w8 mov x8, #8 mul x1, x8, x9 bl _realloc str x0, [sp, #24] ldr x8, [sp, #24] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB2_4 b LBB2_3 LBB2_3: ldr x8, [sp, #24] stur x8, [x29, #-8] b LBB2_6 LBB2_4: ; in Loop: Header=BB2_1 Depth=1 ldr x8, [sp, #16] ldr x9, [sp, #24] ldr w10, [sp, #12] subs w10, w10, #1 str x8, [x9, w10, sxtw #3] mov x0, #0 adrp x1, l_.str.3@PAGE add x1, x1, l_.str.3@PAGEOFF bl _strtok str x0, [sp, #16] b LBB2_1 LBB2_5: ldr x8, [sp, #24] stur x8, [x29, #-8] b LBB2_6 LBB2_6: ldur x0, [x29, #-8] ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _readline ; -- Begin function readline .p2align 2 _readline: ; @readline .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov x8, #1024 stur x8, [x29, #-8] stur xzr, [x29, #-16] ldur x0, [x29, #-8] bl _malloc str x0, [sp, #24] b LBB3_1 LBB3_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #24] ldur x9, [x29, #-16] add x8, x8, x9 str x8, [sp, #16] ldr x0, [sp, #16] ldur x8, [x29, #-8] ldur x9, [x29, #-16] subs x8, x8, x9 mov x1, x8 adrp x8, ___stdinp@GOTPAGE ldr x8, [x8, ___stdinp@GOTPAGEOFF] ldr x2, [x8] bl _fgets str x0, [sp, #8] ldr x8, [sp, #8] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB3_3 b LBB3_2 LBB3_2: b LBB3_9 LBB3_3: ; in Loop: Header=BB3_1 Depth=1 ldr x0, [sp, #16] bl _strlen ldur x8, [x29, #-16] add x8, x8, x0 stur x8, [x29, #-16] ldur x8, [x29, #-16] ldur x9, [x29, #-8] subs x9, x9, #1 subs x8, x8, x9 cset w8, lo tbnz w8, #0, LBB3_5 b LBB3_4 LBB3_4: ; in Loop: Header=BB3_1 Depth=1 ldr x8, [sp, #24] ldur x9, [x29, #-16] subs x9, x9, #1 ldrsb w8, [x8, x9] subs w8, w8, #10 cset w8, ne tbnz w8, #0, LBB3_6 b LBB3_5 LBB3_5: b LBB3_9 LBB3_6: ; in Loop: Header=BB3_1 Depth=1 ldur x8, [x29, #-8] lsl x8, x8, #1 str x8, [sp] ldr x0, [sp, #24] ldr x1, [sp] bl _realloc str x0, [sp, #24] ldr x8, [sp, #24] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB3_8 b LBB3_7 LBB3_7: b LBB3_9 LBB3_8: ; in Loop: Header=BB3_1 Depth=1 ldr x8, [sp] stur x8, [x29, #-8] b LBB3_1 LBB3_9: ldr x8, [sp, #24] ldur x9, [x29, #-16] subs x9, x9, #1 ldrsb w8, [x8, x9] subs w8, w8, #10 cset w8, ne tbnz w8, #0, LBB3_11 b LBB3_10 LBB3_10: ldr x8, [sp, #24] ldur x9, [x29, #-16] subs x9, x9, #1 add x8, x8, x9 strb wzr, [x8] b LBB3_11 LBB3_11: ldr x0, [sp, #24] ldur x1, [x29, #-16] bl _realloc str x0, [sp, #24] ldr x0, [sp, #24] 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 "OUTPUT_PATH" l_.str.1: ; @.str.1 .asciz "w" l_.str.2: ; @.str.2 .asciz "%d\n" l_.str.3: ; @.str.3 .asciz " " .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _simpleArraySum ## -- Begin function simpleArraySum .p2align 4, 0x90 _simpleArraySum: ## @simpleArraySum .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, -4(%rbp) movq %rsi, -16(%rbp) movl $0, -20(%rbp) movl $0, -24(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movl -24(%rbp), %eax cmpl -4(%rbp), %eax jge LBB0_4 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movq -16(%rbp), %rax movslq -24(%rbp), %rcx movl (%rax,%rcx,4), %eax addl -20(%rbp), %eax movl %eax, -20(%rbp) ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movl -24(%rbp), %eax addl $1, %eax movl %eax, -24(%rbp) jmp LBB0_1 LBB0_4: movl -20(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $128, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -12(%rbp) leaq L_.str(%rip), %rdi callq _getenv movq %rax, %rdi leaq L_.str.1(%rip), %rsi callq _fopen movq %rax, -24(%rbp) callq _readline movq %rax, -40(%rbp) movq -40(%rbp), %rdi leaq -32(%rbp), %rsi movl $10, %edx callq _strtol ## kill: def $eax killed $eax killed $rax movl %eax, -44(%rbp) movq -32(%rbp), %rax cmpq -40(%rbp), %rax je LBB1_2 ## %bb.1: movq -32(%rbp), %rax movsbl (%rax), %eax cmpl $0, %eax je LBB1_3 LBB1_2: movl $1, -12(%rbp) jmp LBB1_11 LBB1_3: callq _readline movq %rax, %rdi callq _split_string movq %rax, -56(%rbp) movl -44(%rbp), %eax ## kill: def $rax killed $eax movq %rax, -120(%rbp) ## 8-byte Spill movq %rsp, %rcx movq %rcx, -64(%rbp) shlq $2, %rax callq ____chkstk_darwin addq $15, %rax andq $-16, %rax subq %rax, %rsp movq -120(%rbp), %rax ## 8-byte Reload movq %rsp, %rcx movq %rcx, -112(%rbp) ## 8-byte Spill movq %rax, -72(%rbp) movl $0, -76(%rbp) LBB1_4: ## =>This Inner Loop Header: Depth=1 movl -76(%rbp), %eax cmpl -44(%rbp), %eax jge LBB1_10 ## %bb.5: ## in Loop: Header=BB1_4 Depth=1 movq -56(%rbp), %rax movslq -76(%rbp), %rcx movq (%rax,%rcx,8), %rax movq %rax, -96(%rbp) movq -96(%rbp), %rdi leaq -88(%rbp), %rsi movl $10, %edx callq _strtol ## kill: def $eax killed $eax killed $rax movl %eax, -100(%rbp) movq -88(%rbp), %rax cmpq -96(%rbp), %rax je LBB1_7 ## %bb.6: ## in Loop: Header=BB1_4 Depth=1 movq -88(%rbp), %rax movsbl (%rax), %eax cmpl $0, %eax je LBB1_8 LBB1_7: movl $1, %edi callq _exit LBB1_8: ## in Loop: Header=BB1_4 Depth=1 movq -112(%rbp), %rax ## 8-byte Reload movl -100(%rbp), %edx movslq -76(%rbp), %rcx movl %edx, (%rax,%rcx,4) ## %bb.9: ## in Loop: Header=BB1_4 Depth=1 movl -76(%rbp), %eax addl $1, %eax movl %eax, -76(%rbp) jmp LBB1_4 LBB1_10: movq -112(%rbp), %rsi ## 8-byte Reload movl -44(%rbp), %edi callq _simpleArraySum movl %eax, -104(%rbp) movq -24(%rbp), %rdi movl -104(%rbp), %edx leaq L_.str.2(%rip), %rsi movb $0, %al callq _fprintf movq -24(%rbp), %rdi callq _fclose movl $0, -12(%rbp) movq -64(%rbp), %rax movq %rax, %rsp LBB1_11: movl -12(%rbp), %eax movl %eax, -124(%rbp) ## 4-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB1_13 ## %bb.12: movl -124(%rbp), %eax ## 4-byte Reload movq %rbp, %rsp popq %rbp retq LBB1_13: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _split_string ## -- Begin function split_string .p2align 4, 0x90 _split_string: ## @split_string .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movq %rdi, -16(%rbp) movq $0, -24(%rbp) movq -16(%rbp), %rdi leaq L_.str.3(%rip), %rsi callq _strtok movq %rax, -32(%rbp) movl $0, -36(%rbp) LBB2_1: ## =>This Inner Loop Header: Depth=1 cmpq $0, -32(%rbp) je LBB2_5 ## %bb.2: ## in Loop: Header=BB2_1 Depth=1 movq -24(%rbp), %rdi movl -36(%rbp), %eax addl $1, %eax movl %eax, -36(%rbp) movslq %eax, %rsi shlq $3, %rsi callq _realloc movq %rax, -24(%rbp) cmpq $0, -24(%rbp) jne LBB2_4 ## %bb.3: movq -24(%rbp), %rax movq %rax, -8(%rbp) jmp LBB2_6 LBB2_4: ## in Loop: Header=BB2_1 Depth=1 movq -32(%rbp), %rdx movq -24(%rbp), %rax movl -36(%rbp), %ecx subl $1, %ecx movslq %ecx, %rcx movq %rdx, (%rax,%rcx,8) xorl %eax, %eax movl %eax, %edi leaq L_.str.3(%rip), %rsi callq _strtok movq %rax, -32(%rbp) jmp LBB2_1 LBB2_5: movq -24(%rbp), %rax movq %rax, -8(%rbp) LBB2_6: movq -8(%rbp), %rax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _readline ## -- Begin function readline .p2align 4, 0x90 _readline: ## @readline .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movq $1024, -8(%rbp) ## imm = 0x400 movq $0, -16(%rbp) movq -8(%rbp), %rdi callq _malloc movq %rax, -24(%rbp) LBB3_1: ## =>This Inner Loop Header: Depth=1 movq -24(%rbp), %rax addq -16(%rbp), %rax movq %rax, -32(%rbp) movq -32(%rbp), %rdi movq -8(%rbp), %rax subq -16(%rbp), %rax movl %eax, %esi movq ___stdinp@GOTPCREL(%rip), %rax movq (%rax), %rdx callq _fgets movq %rax, -40(%rbp) cmpq $0, -40(%rbp) jne LBB3_3 ## %bb.2: jmp LBB3_9 LBB3_3: ## in Loop: Header=BB3_1 Depth=1 movq -32(%rbp), %rdi callq _strlen addq -16(%rbp), %rax movq %rax, -16(%rbp) movq -16(%rbp), %rax movq -8(%rbp), %rcx subq $1, %rcx cmpq %rcx, %rax jb LBB3_5 ## %bb.4: ## in Loop: Header=BB3_1 Depth=1 movq -24(%rbp), %rax movq -16(%rbp), %rcx subq $1, %rcx movsbl (%rax,%rcx), %eax cmpl $10, %eax jne LBB3_6 LBB3_5: jmp LBB3_9 LBB3_6: ## in Loop: Header=BB3_1 Depth=1 movq -8(%rbp), %rax shlq $1, %rax movq %rax, -48(%rbp) movq -24(%rbp), %rdi movq -48(%rbp), %rsi callq _realloc movq %rax, -24(%rbp) cmpq $0, -24(%rbp) jne LBB3_8 ## %bb.7: jmp LBB3_9 LBB3_8: ## in Loop: Header=BB3_1 Depth=1 movq -48(%rbp), %rax movq %rax, -8(%rbp) jmp LBB3_1 LBB3_9: movq -24(%rbp), %rax movq -16(%rbp), %rcx subq $1, %rcx movsbl (%rax,%rcx), %eax cmpl $10, %eax jne LBB3_11 ## %bb.10: movq -24(%rbp), %rax movq -16(%rbp), %rcx subq $1, %rcx movb $0, (%rax,%rcx) LBB3_11: movq -24(%rbp), %rdi movq -16(%rbp), %rsi callq _realloc movq %rax, -24(%rbp) movq -24(%rbp), %rax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "OUTPUT_PATH" L_.str.1: ## @.str.1 .asciz "w" L_.str.2: ## @.str.2 .asciz "%d\n" L_.str.3: ## @.str.3 .asciz " " .subsections_via_symbols
the_stack_data/6318.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #0 str w8, [sp, #8] ; 4-byte Folded Spill stur wzr, [x29, #-4] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf bl _one_three adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@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 .globl _one_three ; -- Begin function one_three .p2align 2 _one_three: ; @one_three .cfi_startproc ; %bb.0: stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill .cfi_def_cfa_offset 16 mov x29, sp .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf bl _two adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf ldp x29, x30, [sp], #16 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .globl _two ; -- Begin function two .p2align 2 _two: ; @two .cfi_startproc ; %bb.0: stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill .cfi_def_cfa_offset 16 mov x29, sp .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf ldp x29, x30, [sp], #16 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Starting now:\n" l_.str.1: ; @.str.1 .asciz "done!\n" l_.str.2: ; @.str.2 .asciz "one\n" l_.str.3: ; @.str.3 .asciz "three\n" l_.str.4: ; @.str.4 .asciz "two\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) leaq L_.str(%rip), %rdi movb $0, %al callq _printf callq _one_three 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 _one_three ## -- Begin function one_three .p2align 4, 0x90 _one_three: ## @one_three .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf callq _two leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf popq %rbp retq .cfi_endproc ## -- End function .globl _two ## -- Begin function two .p2align 4, 0x90 _two: ## @two .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Starting now:\n" L_.str.1: ## @.str.1 .asciz "done!\n" L_.str.2: ## @.str.2 .asciz "one\n" L_.str.3: ## @.str.3 .asciz "three\n" L_.str.4: ## @.str.4 .asciz "two\n" .subsections_via_symbols
the_stack_data/118922.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] mov x0, #5348 bl _malloc str x0, [sp, #16] ldr x8, [sp, #16] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _perror mov w0, #-1 bl _exit LBB0_2: str wzr, [sp, #12] b LBB0_3 LBB0_3: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #12] subs w8, w8, #1337 cset w8, ge tbnz w8, #0, LBB0_6 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_3 Depth=1 bl _random ldr x9, [sp, #16] ldrsw x10, [sp, #12] mov x8, x0 str w8, [x9, x10, lsl #2] b LBB0_5 LBB0_5: ; in Loop: Header=BB0_3 Depth=1 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB0_3 LBB0_6: ldr x8, [sp, #16] ldr w9, [x8] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf ldr x0, [sp, #16] bl _free 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 "malloc()" l_.str.1: ; @.str.1 .asciz "%i" .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 $5348, %edi ## imm = 0x14E4 callq _malloc movq %rax, -16(%rbp) cmpq $0, -16(%rbp) jne LBB0_2 ## %bb.1: leaq L_.str(%rip), %rdi callq _perror movl $-1, %edi callq _exit LBB0_2: movl $0, -20(%rbp) LBB0_3: ## =>This Inner Loop Header: Depth=1 cmpl $1337, -20(%rbp) ## imm = 0x539 jge LBB0_6 ## %bb.4: ## in Loop: Header=BB0_3 Depth=1 callq _random movl %eax, %edx movq -16(%rbp), %rax movslq -20(%rbp), %rcx movl %edx, (%rax,%rcx,4) ## %bb.5: ## in Loop: Header=BB0_3 Depth=1 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB0_3 LBB0_6: movq -16(%rbp), %rax movl (%rax), %esi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf movq -16(%rbp), %rdi callq _free xorl %eax, %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "malloc()" L_.str.1: ## @.str.1 .asciz "%i" .subsections_via_symbols
the_stack_data/3262608.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _getpasswd ; -- Begin function getpasswd .p2align 2 _getpasswd: ; @getpasswd .cfi_startproc ; %bb.0: sub sp, sp, #304 .cfi_def_cfa_offset 304 stp x28, x27, [sp, #272] ; 16-byte Folded Spill stp x29, x30, [sp, #288] ; 16-byte Folded Spill add x29, sp, #288 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w27, -24 .cfi_offset w28, -32 adrp x8, _getpasswd.buf@PAGE add x8, x8, _getpasswd.buf@PAGEOFF add x8, x8, #8 str x8, [sp, #56] ; 8-byte Folded Spill adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] str x0, [sp, #104] mov x0, #0 str x0, [sp, #64] ; 8-byte Folded Spill str xzr, [sp, #96] bl _ctermid adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF bl _fopen ldr x8, [sp, #64] ; 8-byte Folded Reload str x0, [sp, #96] subs x8, x8, x0 cset w8, ne tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _perror mov w0, #1 bl _exit LBB0_2: mov x0, #0 str x0, [sp, #40] ; 8-byte Folded Spill bl _ctermid mov x8, sp str x0, [x8] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf ldr x1, [sp, #40] ; 8-byte Folded Reload ldr x0, [sp, #96] mov w2, #2 str w2, [sp, #52] ; 4-byte Folded Spill mov x3, #0 bl _setvbuf ldr w8, [sp, #52] ; 4-byte Folded Reload str wzr, [sp, #92] str w8, [sp, #116] ldr w8, [sp, #116] subs w8, w8, #32 cset w8, le tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: mov w8, #0 str w8, [sp, #36] ; 4-byte Folded Spill b LBB0_5 LBB0_4: ldr w9, [sp, #116] mov w8, #1 subs w9, w9, #1 lsl w8, w8, w9 str w8, [sp, #36] ; 4-byte Folded Spill b LBB0_5 LBB0_5: ldr w9, [sp, #36] ; 4-byte Folded Reload ldr w8, [sp, #92] orr w8, w8, w9 str w8, [sp, #92] mov w8, #18 str w8, [sp, #112] ldr w8, [sp, #112] subs w8, w8, #32 cset w8, le tbnz w8, #0, LBB0_7 b LBB0_6 LBB0_6: mov w8, #0 str w8, [sp, #32] ; 4-byte Folded Spill b LBB0_8 LBB0_7: ldr w9, [sp, #112] mov w8, #1 subs w9, w9, #1 lsl w8, w8, w9 str w8, [sp, #32] ; 4-byte Folded Spill b LBB0_8 LBB0_8: ldr w9, [sp, #32] ; 4-byte Folded Reload add x1, sp, #92 ldr w8, [sp, #92] orr w8, w8, w9 str w8, [sp, #92] mov w0, #1 add x2, sp, #88 bl _sigprocmask ldr x0, [sp, #96] bl _fileno add x1, sp, #120 str x1, [sp, #16] ; 8-byte Folded Spill bl _tcgetattr ldr x1, [sp, #16] ; 8-byte Folded Reload sub x0, x29, #96 str x0, [sp, #24] ; 8-byte Folded Spill mov x2, #72 bl _memcpy ldur x8, [x29, #-72] mov x9, #-79 and x8, x8, x9 stur x8, [x29, #-72] ldr x0, [sp, #96] bl _fileno ldr x2, [sp, #24] ; 8-byte Folded Reload mov w1, #2 bl _tcsetattr ldr x0, [sp, #104] ldr x1, [sp, #96] bl _fputs adrp x8, _getpasswd.buf@PAGE add x8, x8, _getpasswd.buf@PAGEOFF str x8, [sp, #72] b LBB0_9 LBB0_9: ; =>This Inner Loop Header: Depth=1 ldr x0, [sp, #96] bl _getc str w0, [sp, #84] adds w8, w0, #1 cset w8, eq mov w9, #0 str w9, [sp, #12] ; 4-byte Folded Spill tbnz w8, #0, LBB0_13 b LBB0_10 LBB0_10: ; in Loop: Header=BB0_9 Depth=1 ldr w8, [sp, #84] subs w8, w8, #0 cset w8, eq mov w9, #0 str w9, [sp, #12] ; 4-byte Folded Spill tbnz w8, #0, LBB0_13 b LBB0_11 LBB0_11: ; in Loop: Header=BB0_9 Depth=1 ldr w8, [sp, #84] subs w8, w8, #10 cset w8, eq mov w9, #0 str w9, [sp, #12] ; 4-byte Folded Spill tbnz w8, #0, LBB0_13 b LBB0_12 LBB0_12: ; in Loop: Header=BB0_9 Depth=1 ldr w8, [sp, #84] subs w8, w8, #13 cset w8, ne str w8, [sp, #12] ; 4-byte Folded Spill b LBB0_13 LBB0_13: ; in Loop: Header=BB0_9 Depth=1 ldr w8, [sp, #12] ; 4-byte Folded Reload tbz w8, #0, LBB0_17 b LBB0_14 LBB0_14: ; in Loop: Header=BB0_9 Depth=1 ldr x9, [sp, #56] ; 8-byte Folded Reload ldr x8, [sp, #72] subs x8, x8, x9 cset w8, hs tbnz w8, #0, LBB0_16 b LBB0_15 LBB0_15: ; in Loop: Header=BB0_9 Depth=1 ldr w8, [sp, #84] ldr x9, [sp, #72] add x10, x9, #1 str x10, [sp, #72] strb w8, [x9] b LBB0_16 LBB0_16: ; in Loop: Header=BB0_9 Depth=1 ldr x0, [sp, #96] bl _fflush b LBB0_9 LBB0_17: ldr x8, [sp, #72] strb wzr, [x8] ldr x1, [sp, #96] mov w0, #10 bl _putc ldr x0, [sp, #96] bl _fileno mov w1, #2 add x2, sp, #120 bl _tcsetattr mov w0, #1 add x1, sp, #88 mov x2, #0 bl _sigprocmask ldur x9, [x29, #-24] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_19 b LBB0_18 LBB0_18: bl ___stack_chk_fail LBB0_19: adrp x0, _getpasswd.buf@PAGE add x0, x0, _getpasswd.buf@PAGEOFF ldp x29, x30, [sp, #288] ; 16-byte Folded Reload ldp x28, x27, [sp, #272] ; 16-byte Folded Reload add sp, sp, #304 ret .cfi_endproc ; -- End function .globl _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 ; kill: def $x8 killed $xzr str xzr, [sp, #8] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _getpasswd str x0, [sp, #8] ldr x8, [sp, #8] mov x9, sp str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf mov w0, #0 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "r+" l_.str.1: ; @.str.1 .asciz "fopen" l_.str.2: ; @.str.2 .asciz "%s\n" .zerofill __DATA,__bss,_getpasswd.buf,9,0 ; @getpasswd.buf l_.str.3: ; @.str.3 .asciz "#" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _getpasswd ## -- Begin function getpasswd .p2align 4, 0x90 _getpasswd: ## @getpasswd .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $224, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movq %rdi, -168(%rbp) movq $0, -176(%rbp) xorl %eax, %eax movl %eax, %edi callq _ctermid movq %rax, %rdi leaq L_.str(%rip), %rsi callq _fopen movq %rax, %rcx movq %rcx, -176(%rbp) xorl %eax, %eax ## kill: def $rax killed $eax cmpq %rcx, %rax jne LBB0_2 ## %bb.1: leaq L_.str.1(%rip), %rdi callq _perror movl $1, %edi callq _exit LBB0_2: xorl %eax, %eax movl %eax, %edi callq _ctermid movq %rax, %rsi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf movq -176(%rbp), %rdi xorl %eax, %eax movl %eax, %ecx movl $2, %edx movq %rcx, %rsi callq _setvbuf movl $0, -180(%rbp) movl $2, -156(%rbp) cmpl $32, -156(%rbp) jle LBB0_4 ## %bb.3: xorl %eax, %eax movl %eax, -204(%rbp) ## 4-byte Spill jmp LBB0_5 LBB0_4: movl -156(%rbp), %ecx subl $1, %ecx movl $1, %eax ## kill: def $cl killed $ecx shll %cl, %eax movl %eax, -204(%rbp) ## 4-byte Spill LBB0_5: movl -204(%rbp), %eax ## 4-byte Reload orl -180(%rbp), %eax movl %eax, -180(%rbp) movl $18, -160(%rbp) cmpl $32, -160(%rbp) jle LBB0_7 ## %bb.6: xorl %eax, %eax movl %eax, -208(%rbp) ## 4-byte Spill jmp LBB0_8 LBB0_7: movl -160(%rbp), %ecx subl $1, %ecx movl $1, %eax ## kill: def $cl killed $ecx shll %cl, %eax movl %eax, -208(%rbp) ## 4-byte Spill LBB0_8: movl -208(%rbp), %eax ## 4-byte Reload orl -180(%rbp), %eax movl %eax, -180(%rbp) movl $1, %edi leaq -180(%rbp), %rsi leaq -184(%rbp), %rdx callq _sigprocmask movq -176(%rbp), %rdi callq _fileno movl %eax, %edi leaq -152(%rbp), %rsi callq _tcgetattr leaq -80(%rbp), %rdi leaq -152(%rbp), %rsi movl $72, %edx callq _memcpy movq -56(%rbp), %rax andq $-79, %rax movq %rax, -56(%rbp) movq -176(%rbp), %rdi callq _fileno movl %eax, %edi movl $2, %esi leaq -80(%rbp), %rdx callq _tcsetattr movq -168(%rbp), %rdi movq -176(%rbp), %rsi callq _fputs leaq _getpasswd.buf(%rip), %rax movq %rax, -200(%rbp) LBB0_9: ## =>This Inner Loop Header: Depth=1 movq -176(%rbp), %rdi callq _getc movl %eax, %ecx movl %ecx, -188(%rbp) xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $-1, %ecx movb %al, -209(%rbp) ## 1-byte Spill je LBB0_13 ## %bb.10: ## in Loop: Header=BB0_9 Depth=1 xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $0, -188(%rbp) movb %al, -209(%rbp) ## 1-byte Spill je LBB0_13 ## %bb.11: ## in Loop: Header=BB0_9 Depth=1 xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $10, -188(%rbp) movb %al, -209(%rbp) ## 1-byte Spill je LBB0_13 ## %bb.12: ## in Loop: Header=BB0_9 Depth=1 cmpl $13, -188(%rbp) setne %al movb %al, -209(%rbp) ## 1-byte Spill LBB0_13: ## in Loop: Header=BB0_9 Depth=1 movb -209(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB0_14 jmp LBB0_17 LBB0_14: ## in Loop: Header=BB0_9 Depth=1 leaq _getpasswd.buf(%rip), %rax addq $8, %rax cmpq %rax, -200(%rbp) jae LBB0_16 ## %bb.15: ## in Loop: Header=BB0_9 Depth=1 movl -188(%rbp), %eax movb %al, %cl movq -200(%rbp), %rax movq %rax, %rdx addq $1, %rdx movq %rdx, -200(%rbp) movb %cl, (%rax) LBB0_16: ## in Loop: Header=BB0_9 Depth=1 movq -176(%rbp), %rdi callq _fflush jmp LBB0_9 LBB0_17: movq -200(%rbp), %rax movb $0, (%rax) movq -176(%rbp), %rsi movl $10, %edi callq _putc movq -176(%rbp), %rdi callq _fileno movl %eax, %edi movl $2, %esi leaq -152(%rbp), %rdx callq _tcsetattr movl $1, %edi leaq -184(%rbp), %rsi xorl %eax, %eax movl %eax, %edx callq _sigprocmask movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_19 ## %bb.18: leaq _getpasswd.buf(%rip), %rax addq $224, %rsp popq %rbp retq LBB0_19: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq $0, -8(%rbp) leaq L_.str.3(%rip), %rdi callq _getpasswd movq %rax, -8(%rbp) movq -8(%rbp), %rsi 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 "r+" L_.str.1: ## @.str.1 .asciz "fopen" L_.str.2: ## @.str.2 .asciz "%s\n" .zerofill __DATA,__bss,_getpasswd.buf,9,0 ## @getpasswd.buf L_.str.3: ## @.str.3 .asciz "#" .subsections_via_symbols
the_stack_data/98397.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] mov w8, #3 str w8, [sp, #8] ldr w8, [sp, #8] str w8, [sp, #4] ; 4-byte Folded Spill subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_3 b LBB0_1 LBB0_1: ldr w8, [sp, #4] ; 4-byte Folded Reload subs w8, w8, #1 cset w8, eq tbnz w8, #0, LBB0_4 b LBB0_2 LBB0_2: ldr w8, [sp, #4] ; 4-byte Folded Reload subs w8, w8, #4 cset w8, eq tbnz w8, #0, LBB0_5 b LBB0_6 LBB0_3: adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf b LBB0_7 LBB0_4: adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf b LBB0_7 LBB0_5: adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf b LBB0_7 LBB0_6: adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf b LBB0_7 LBB0_7: 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 "pies\n" l_.str.1: ; @.str.1 .asciz "kot\n" l_.str.2: ; @.str.2 .asciz "papuga\n" l_.str.3: ; @.str.3 .asciz "cos innego\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 $3, -8(%rbp) movl -8(%rbp), %eax movl %eax, -12(%rbp) ## 4-byte Spill testl %eax, %eax je LBB0_1 jmp LBB0_6 LBB0_6: movl -12(%rbp), %eax ## 4-byte Reload subl $1, %eax je LBB0_2 jmp LBB0_7 LBB0_7: movl -12(%rbp), %eax ## 4-byte Reload subl $4, %eax je LBB0_3 jmp LBB0_4 LBB0_1: leaq L_.str(%rip), %rdi movb $0, %al callq _printf jmp LBB0_5 LBB0_2: leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf jmp LBB0_5 LBB0_3: leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf jmp LBB0_5 LBB0_4: leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf LBB0_5: xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "pies\n" L_.str.1: ## @.str.1 .asciz "kot\n" L_.str.2: ## @.str.2 .asciz "papuga\n" L_.str.3: ## @.str.3 .asciz "cos innego\n" .subsections_via_symbols
the_stack_data/7090.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _usbi_mutex_init_recursive ; -- Begin function usbi_mutex_init_recursive .p2align 2 _usbi_mutex_init_recursive: ; @usbi_mutex_init_recursive .cfi_startproc ; %bb.0: sub sp, sp, #80 .cfi_def_cfa_offset 80 stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp, #64 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] str x0, [sp, #24] str x1, [sp, #16] ldr x8, [sp, #16] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB0_4 b LBB0_1 LBB0_1: sub x0, x29, #24 mov x8, x0 str x8, [sp, #16] bl _pthread_mutexattr_init str w0, [sp, #12] ldr w8, [sp, #12] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: ldr w8, [sp, #12] stur w8, [x29, #-28] b LBB0_10 LBB0_3: b LBB0_4 LBB0_4: ldr x0, [sp, #16] mov w1, #2 bl _pthread_mutexattr_settype str w0, [sp, #12] ldr w8, [sp, #12] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: b LBB0_7 LBB0_6: ldr x0, [sp, #24] ldr x1, [sp, #16] bl _pthread_mutex_init str w0, [sp, #12] b LBB0_7 LBB0_7: ldr x8, [sp, #16] sub x9, x29, #24 subs x8, x8, x9 cset w8, ne tbnz w8, #0, LBB0_9 b LBB0_8 LBB0_8: sub x0, x29, #24 bl _pthread_mutexattr_destroy b LBB0_9 LBB0_9: ldr w8, [sp, #12] stur w8, [x29, #-28] b LBB0_10 LBB0_10: ldur w8, [x29, #-28] str w8, [sp, #8] ; 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_12 b LBB0_11 LBB0_11: bl ___stack_chk_fail LBB0_12: 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 .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _usbi_mutex_init_recursive ## -- Begin function usbi_mutex_init_recursive .p2align 4, 0x90 _usbi_mutex_init_recursive: ## @usbi_mutex_init_recursive .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $64, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movq %rdi, -40(%rbp) movq %rsi, -48(%rbp) cmpq $0, -48(%rbp) jne LBB0_4 ## %bb.1: leaq -24(%rbp), %rax movq %rax, -48(%rbp) leaq -24(%rbp), %rdi callq _pthread_mutexattr_init movl %eax, -52(%rbp) cmpl $0, -52(%rbp) je LBB0_3 ## %bb.2: movl -52(%rbp), %eax movl %eax, -28(%rbp) jmp LBB0_10 LBB0_3: jmp LBB0_4 LBB0_4: movq -48(%rbp), %rdi movl $2, %esi callq _pthread_mutexattr_settype movl %eax, -52(%rbp) cmpl $0, -52(%rbp) je LBB0_6 ## %bb.5: jmp LBB0_7 LBB0_6: movq -40(%rbp), %rdi movq -48(%rbp), %rsi callq _pthread_mutex_init movl %eax, -52(%rbp) LBB0_7: leaq -24(%rbp), %rax cmpq %rax, -48(%rbp) jne LBB0_9 ## %bb.8: leaq -24(%rbp), %rdi callq _pthread_mutexattr_destroy LBB0_9: movl -52(%rbp), %eax movl %eax, -28(%rbp) LBB0_10: movl -28(%rbp), %eax movl %eax, -56(%rbp) ## 4-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_12 ## %bb.11: movl -56(%rbp), %eax ## 4-byte Reload addq $64, %rsp popq %rbp retq LBB0_12: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/157426.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __TEXT,__literal8,8byte_literals .p2align 3 ; -- Begin function not_linearized_array_indices lCPI0_0: .quad 0x3fb8000000000000 ; double 0.09375 .section __TEXT,__text,regular,pure_instructions .globl _not_linearized_array_indices .p2align 2 _not_linearized_array_indices: ; @not_linearized_array_indices .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str w0, [sp, #28] str x1, [sp, #16] str x2, [sp, #8] str wzr, [sp, #4] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #4] ldr w9, [sp, #28] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_4 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #8] ldr w9, [sp, #4] add w9, w9, #1 and w9, w9, #0x80 subs w9, w9, #1 ldr s0, [x8, w9, sxtw #2] fcvt d0, s0 adrp x8, lCPI0_0@PAGE ldr d1, [x8, lCPI0_0@PAGEOFF] fdiv d0, d0, d1 fcvt s0, d0 ldr x8, [sp, #16] ldrsw x9, [sp, #4] str s0, [x8, x9, lsl #2] 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: add sp, sp, #32 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __TEXT,__literal8,8byte_literals .p2align 3 ## -- Begin function not_linearized_array_indices LCPI0_0: .quad 0x3fb8000000000000 ## double 0.09375 .section __TEXT,__text,regular,pure_instructions .globl _not_linearized_array_indices .p2align 4, 0x90 _not_linearized_array_indices: ## @not_linearized_array_indices .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, -4(%rbp) movq %rsi, -16(%rbp) movq %rdx, -24(%rbp) movl $0, -28(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movl -28(%rbp), %eax cmpl -4(%rbp), %eax jg LBB0_4 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movq -24(%rbp), %rax movl -28(%rbp), %ecx addl $1, %ecx andl $128, %ecx subl $1, %ecx movslq %ecx, %rcx movss (%rax,%rcx,4), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movsd LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero divsd %xmm1, %xmm0 cvtsd2ss %xmm0, %xmm0 movq -16(%rbp), %rax movslq -28(%rbp), %rcx movss %xmm0, (%rax,%rcx,4) ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movl -28(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) jmp LBB0_1 LBB0_4: popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/899463.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _randRange ; -- Begin function randRange .p2align 2 _randRange: ; @randRange .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur w0, [x29, #-4] str w1, [sp, #8] bl _rand ldr w8, [sp, #8] ldur w9, [x29, #-4] subs w9, w8, w9 sdiv w8, w0, w9 mul w8, w8, w9 subs w8, w0, w8 ldur w9, [x29, #-4] add w8, w8, w9 scvtf d0, w8 fcvtzs w8, d0 str w8, [sp, #4] ldr w0, [sp, #4] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ; -- Begin function randExp lCPI1_0: .quad 0x40c3880000000000 ; double 1.0E+4 .section __TEXT,__text,regular,pure_instructions .globl _randExp .p2align 2 _randExp: ; @randExp .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur w0, [x29, #-4] stur w1, [x29, #-8] ldur s1, [x29, #-8] ; implicit-def: $d0 fmov s0, s1 sshll.2d v0, v0, #0 ; kill: def $d0 killed $d0 killed $q0 scvtf d0, d0 ldur s2, [x29, #-4] ; 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 bl _log stur d0, [x29, #-16] bl _rand ldur d0, [x29, #-16] adrp x8, lCPI1_0@PAGE ldr d1, [x8, lCPI1_0@PAGEOFF] fmul d0, d0, d1 fcvtzs w9, d0 sdiv w8, w0, w9 mul w8, w8, w9 subs w8, w0, w8 scvtf d0, w8 fdiv d0, d0, d1 str d0, [sp, #24] ldur s1, [x29, #-8] ; implicit-def: $d0 fmov s0, s1 sshll.2d v0, v0, #0 ; kill: def $d0 killed $d0 killed $q0 scvtf d0, d0 str d0, [sp, #8] ; 8-byte Folded Spill ldr d0, [sp, #24] bl _exp fmov d1, d0 ldr d0, [sp, #8] ; 8-byte Folded Reload fdiv d0, d0, d1 fcvtzs w8, d0 str w8, [sp, #20] ldr w0, [sp, #20] ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _randRange ## -- Begin function randRange .p2align 4, 0x90 _randRange: ## @randRange .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl %edi, -4(%rbp) movl %esi, -8(%rbp) callq _rand movl -8(%rbp), %ecx subl -4(%rbp), %ecx cltd idivl %ecx addl -4(%rbp), %edx cvtsi2sd %edx, %xmm0 cvttsd2si %xmm0, %eax movl %eax, -12(%rbp) movl -12(%rbp), %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ## -- Begin function randExp LCPI1_0: .quad 0x40c3880000000000 ## double 1.0E+4 .section __TEXT,__text,regular,pure_instructions .globl _randExp .p2align 4, 0x90 _randExp: ## @randExp .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movl %edi, -4(%rbp) movl %esi, -8(%rbp) cvtsi2sdl -8(%rbp), %xmm0 cvtsi2sdl -4(%rbp), %xmm1 divsd %xmm1, %xmm0 callq _log movsd %xmm0, -16(%rbp) callq _rand movsd LCPI1_0(%rip), %xmm0 ## xmm0 = mem[0],zero mulsd -16(%rbp), %xmm0 cvttsd2si %xmm0, %ecx cltd idivl %ecx cvtsi2sd %edx, %xmm0 movsd LCPI1_0(%rip), %xmm1 ## xmm1 = mem[0],zero divsd %xmm1, %xmm0 movsd %xmm0, -24(%rbp) cvtsi2sdl -8(%rbp), %xmm0 movsd %xmm0, -40(%rbp) ## 8-byte Spill movsd -24(%rbp), %xmm0 ## xmm0 = mem[0],zero callq _exp movaps %xmm0, %xmm1 movsd -40(%rbp), %xmm0 ## 8-byte Reload ## xmm0 = mem[0],zero divsd %xmm1, %xmm0 cvttsd2si %xmm0, %eax movl %eax, -28(%rbp) movl -28(%rbp), %eax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/3263580.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #144 .cfi_def_cfa_offset 144 stp x29, x30, [sp, #128] ; 16-byte Folded Spill add x29, sp, #128 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] stur wzr, [x29, #-44] adrp x8, l___const.main.startup@PAGE add x8, x8, l___const.main.startup@PAGEOFF ldr x9, [x8] stur x9, [x29, #-24] ldr w8, [x8, #8] stur w8, [x29, #-16] adrp x8, l___const.main.selftest@PAGE add x8, x8, l___const.main.selftest@PAGEOFF ldr x9, [x8] stur x9, [x29, #-40] ldrh w8, [x8, #8] sturh w8, [x29, #-32] mov w8, #1 stur w8, [x29, #-56] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF mov w1, #2 bl _open stur w0, [x29, #-48] ldur w8, [x29, #-48] subs w8, w8, #0 cset w8, ge tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf b LBB0_23 LBB0_2: ldur w0, [x29, #-48] sub x1, x29, #24 mov x2, #12 bl _write mov x8, x0 stur w8, [x29, #-52] ldursw x8, [x29, #-52] subs x8, x8, #12 cset w8, eq tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: bl ___error ldr w9, [x0] ; 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_13 LBB0_4: ldur w0, [x29, #-48] sub x1, x29, #24 mov x2, #12 bl _read mov x8, x0 stur w8, [x29, #-52] ldur w8, [x29, #-52] subs w8, w8, #10 cset w8, eq tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: ldur w9, [x29, #-52] ; implicit-def: $x8 mov x8, x9 str x8, [sp, #56] ; 8-byte Folded Spill bl ___error ldr w9, [x0] ; implicit-def: $x8 mov x8, x9 str x8, [sp, #64] ; 8-byte Folded Spill bl ___error ldr w0, [x0] bl _strerror ldr x10, [sp, #56] ; 8-byte Folded Reload ldr x9, [sp, #64] ; 8-byte Folded Reload mov x8, sp str x10, [x8] str x9, [x8, #8] str x0, [x8, #16] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf b LBB0_13 LBB0_6: b LBB0_7 LBB0_7: sub x8, x29, #24 ldur w0, [x8, #6] bl __OSSwapInt32 str w0, [sp, #52] ; 4-byte Folded Spill b LBB0_8 LBB0_8: ldr w8, [sp, #52] ; 4-byte Folded Reload stur w8, [x29, #-52] ldur w8, [x29, #-52] subs w8, w8, #38 cset w8, ne tbnz w8, #0, LBB0_10 b LBB0_9 LBB0_9: adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf b LBB0_13 LBB0_10: ldur w8, [x29, #-52] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_12 b LBB0_11 LBB0_11: ldur w9, [x29, #-52] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf b LBB0_13 LBB0_12: stur wzr, [x29, #-56] adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _printf b LBB0_13 LBB0_13: ; =>This Inner Loop Header: Depth=1 ldur w0, [x29, #-48] sub x1, x29, #40 mov x2, #10 bl _write mov x8, x0 stur w8, [x29, #-52] ldursw x8, [x29, #-52] subs x8, x8, #10 cset w8, eq tbnz w8, #0, LBB0_15 b LBB0_14 LBB0_14: ; in Loop: Header=BB0_13 Depth=1 bl ___error ldr w9, [x0] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.7@PAGE add x0, x0, l_.str.7@PAGEOFF bl _printf b LBB0_13 LBB0_15: ; in Loop: Header=BB0_13 Depth=1 ldur w0, [x29, #-48] sub x1, x29, #40 mov x2, #10 bl _read mov x8, x0 stur w8, [x29, #-52] ldur w8, [x29, #-52] subs w8, w8, #10 cset w8, eq tbnz w8, #0, LBB0_17 b LBB0_16 LBB0_16: ; in Loop: Header=BB0_13 Depth=1 ldur w9, [x29, #-52] ; implicit-def: $x8 mov x8, x9 str x8, [sp, #32] ; 8-byte Folded Spill bl ___error ldr w9, [x0] ; implicit-def: $x8 mov x8, x9 str x8, [sp, #40] ; 8-byte Folded Spill bl ___error ldr w0, [x0] bl _strerror ldr x10, [sp, #32] ; 8-byte Folded Reload ldr x9, [sp, #40] ; 8-byte Folded Reload mov x8, sp str x10, [x8] str x9, [x8, #8] str x0, [x8, #16] adrp x0, l_.str.8@PAGE add x0, x0, l_.str.8@PAGEOFF bl _printf b LBB0_13 LBB0_17: ; in Loop: Header=BB0_13 Depth=1 b LBB0_18 LBB0_18: ; in Loop: Header=BB0_13 Depth=1 sub x8, x29, #40 ldur w0, [x8, #6] bl __OSSwapInt32 str w0, [sp, #28] ; 4-byte Folded Spill b LBB0_19 LBB0_19: ; in Loop: Header=BB0_13 Depth=1 ldr w8, [sp, #28] ; 4-byte Folded Reload stur w8, [x29, #-52] ldur w8, [x29, #-52] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_21 b LBB0_20 LBB0_20: ; in Loop: Header=BB0_13 Depth=1 ldur w9, [x29, #-52] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf b LBB0_13 LBB0_21: stur wzr, [x29, #-56] adrp x0, l_.str.9@PAGE add x0, x0, l_.str.9@PAGEOFF bl _printf b LBB0_22 LBB0_22: ldur w0, [x29, #-48] bl _close b LBB0_23 LBB0_23: ldur w8, [x29, #-56] str w8, [sp, #24] ; 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_25 b LBB0_24 LBB0_24: bl ___stack_chk_fail LBB0_25: ldr w0, [sp, #24] ; 4-byte Folded Reload ldp x29, x30, [sp, #128] ; 16-byte Folded Reload add sp, sp, #144 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function _OSSwapInt32 __OSSwapInt32: ; @_OSSwapInt32 .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #12] ldr w8, [sp, #12] rev w8, w8 str w8, [sp, #12] ldr w0, [sp, #12] add sp, sp, #16 ret .cfi_endproc ; -- End function .section __TEXT,__const l___const.main.startup: ; @__const.main.startup .ascii "\000\301\000\000\000\f\000\000\000\231\000\001" l___const.main.selftest: ; @__const.main.selftest .ascii "\000\301\000\000\000\n\000\000\000P" .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "/dev/tpm0" l_.str.1: ; @.str.1 .asciz "Unable to open the device.\n" l_.str.2: ; @.str.2 .asciz "Error occured while writing the startup command: %d\n" l_.str.3: ; @.str.3 .asciz "Error occured while reading the startup result: %d %d %s\n" l_.str.4: ; @.str.4 .asciz "TPM already started.\n" l_.str.5: ; @.str.5 .asciz "TPM Error occured: %d\n" l_.str.6: ; @.str.6 .asciz "Startup successful\n" l_.str.7: ; @.str.7 .asciz "Error occured while writing the selftest command: %d\n" l_.str.8: ; @.str.8 .asciz "Error occured while reading the selftest result: %d %d %s\n" l_.str.9: ; @.str.9 .asciz "Selftest successful\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $80, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -36(%rbp) movq l___const.main.startup(%rip), %rax movq %rax, -20(%rbp) movl l___const.main.startup+8(%rip), %eax movl %eax, -12(%rbp) movq l___const.main.selftest(%rip), %rax movq %rax, -30(%rbp) movw l___const.main.selftest+8(%rip), %ax movw %ax, -22(%rbp) movl $1, -48(%rbp) leaq L_.str(%rip), %rdi movl $2, %esi movb $0, %al callq _open movl %eax, -40(%rbp) cmpl $0, -40(%rbp) jge LBB0_2 ## %bb.1: leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf jmp LBB0_23 LBB0_2: movl -40(%rbp), %edi leaq -20(%rbp), %rsi movl $12, %edx callq _write ## kill: def $eax killed $eax killed $rax movl %eax, -44(%rbp) movslq -44(%rbp), %rax cmpq $12, %rax je LBB0_4 ## %bb.3: callq ___error movl (%rax), %esi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf jmp LBB0_13 LBB0_4: movl -40(%rbp), %edi leaq -20(%rbp), %rsi movl $12, %edx callq _read ## kill: def $eax killed $eax killed $rax movl %eax, -44(%rbp) cmpl $10, -44(%rbp) je LBB0_6 ## %bb.5: movl -44(%rbp), %eax movl %eax, -56(%rbp) ## 4-byte Spill callq ___error movl (%rax), %eax movl %eax, -52(%rbp) ## 4-byte Spill callq ___error movl (%rax), %edi callq _strerror movl -56(%rbp), %esi ## 4-byte Reload movl -52(%rbp), %edx ## 4-byte Reload movq %rax, %rcx leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf jmp LBB0_13 LBB0_6: ## %bb.7: movl -14(%rbp), %edi callq __OSSwapInt32 movl %eax, -60(%rbp) ## 4-byte Spill ## %bb.8: movl -60(%rbp), %eax ## 4-byte Reload movl %eax, -44(%rbp) cmpl $38, -44(%rbp) jne LBB0_10 ## %bb.9: leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf jmp LBB0_13 LBB0_10: cmpl $0, -44(%rbp) je LBB0_12 ## %bb.11: movl -44(%rbp), %esi leaq L_.str.5(%rip), %rdi movb $0, %al callq _printf jmp LBB0_13 LBB0_12: movl $0, -48(%rbp) leaq L_.str.6(%rip), %rdi movb $0, %al callq _printf LBB0_13: ## =>This Inner Loop Header: Depth=1 movl -40(%rbp), %edi leaq -30(%rbp), %rsi movl $10, %edx callq _write ## kill: def $eax killed $eax killed $rax movl %eax, -44(%rbp) movslq -44(%rbp), %rax cmpq $10, %rax je LBB0_15 ## %bb.14: ## in Loop: Header=BB0_13 Depth=1 callq ___error movl (%rax), %esi leaq L_.str.7(%rip), %rdi movb $0, %al callq _printf jmp LBB0_13 LBB0_15: ## in Loop: Header=BB0_13 Depth=1 movl -40(%rbp), %edi leaq -30(%rbp), %rsi movl $10, %edx callq _read ## kill: def $eax killed $eax killed $rax movl %eax, -44(%rbp) cmpl $10, -44(%rbp) je LBB0_17 ## %bb.16: ## in Loop: Header=BB0_13 Depth=1 movl -44(%rbp), %eax movl %eax, -68(%rbp) ## 4-byte Spill callq ___error movl (%rax), %eax movl %eax, -64(%rbp) ## 4-byte Spill callq ___error movl (%rax), %edi callq _strerror movl -68(%rbp), %esi ## 4-byte Reload movl -64(%rbp), %edx ## 4-byte Reload movq %rax, %rcx leaq L_.str.8(%rip), %rdi movb $0, %al callq _printf jmp LBB0_13 LBB0_17: ## in Loop: Header=BB0_13 Depth=1 ## %bb.18: ## in Loop: Header=BB0_13 Depth=1 movl -24(%rbp), %edi callq __OSSwapInt32 movl %eax, -72(%rbp) ## 4-byte Spill ## %bb.19: ## in Loop: Header=BB0_13 Depth=1 movl -72(%rbp), %eax ## 4-byte Reload movl %eax, -44(%rbp) cmpl $0, -44(%rbp) je LBB0_21 ## %bb.20: ## in Loop: Header=BB0_13 Depth=1 movl -44(%rbp), %esi leaq L_.str.5(%rip), %rdi movb $0, %al callq _printf jmp LBB0_13 LBB0_21: movl $0, -48(%rbp) leaq L_.str.9(%rip), %rdi movb $0, %al callq _printf ## %bb.22: movl -40(%rbp), %edi callq _close LBB0_23: movl -48(%rbp), %eax movl %eax, -76(%rbp) ## 4-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_25 ## %bb.24: movl -76(%rbp), %eax ## 4-byte Reload addq $80, %rsp popq %rbp retq LBB0_25: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function _OSSwapInt32 __OSSwapInt32: ## @_OSSwapInt32 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, -4(%rbp) movl -4(%rbp), %eax bswapl %eax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__const l___const.main.startup: ## @__const.main.startup .ascii "\000\301\000\000\000\f\000\000\000\231\000\001" l___const.main.selftest: ## @__const.main.selftest .ascii "\000\301\000\000\000\n\000\000\000P" .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "/dev/tpm0" L_.str.1: ## @.str.1 .asciz "Unable to open the device.\n" L_.str.2: ## @.str.2 .asciz "Error occured while writing the startup command: %d\n" L_.str.3: ## @.str.3 .asciz "Error occured while reading the startup result: %d %d %s\n" L_.str.4: ## @.str.4 .asciz "TPM already started.\n" L_.str.5: ## @.str.5 .asciz "TPM Error occured: %d\n" L_.str.6: ## @.str.6 .asciz "Startup successful\n" L_.str.7: ## @.str.7 .asciz "Error occured while writing the selftest command: %d\n" L_.str.8: ## @.str.8 .asciz "Error occured while reading the selftest result: %d %d %s\n" L_.str.9: ## @.str.9 .asciz "Selftest successful\n" .subsections_via_symbols
the_stack_data/9511632.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/70449621.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/64448.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #112 .cfi_def_cfa_offset 112 stp x29, x30, [sp, #96] ; 16-byte Folded Spill add x29, sp, #96 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] str x8, [sp, #40] ; 8-byte Folded Spill adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] stur wzr, [x29, #-20] stur w0, [x29, #-24] stur x1, [x29, #-32] ldur w8, [x29, #-24] subs w8, w8, #3 cset w8, ne tbnz w8, #0, LBB0_5 b LBB0_1 LBB0_1: ldur x8, [x29, #-32] ldr x0, [x8, #8] bl _atof fcvt s0, d0 stur s0, [x29, #-16] ldur x8, [x29, #-32] ldr x0, [x8, #16] bl _atof fcvt s0, d0 stur s0, [x29, #-12] ldur s0, [x29, #-16] fmov s1, #1.00000000 fcmp s0, s1 cset w8, mi tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: ldur s0, [x29, #-12] fmov s1, #1.00000000 fcmp s0, s1 cset w8, pl tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: ldr x8, [sp, #40] ; 8-byte Folded Reload ldr x0, [x8] ldur x8, [x29, #-32] ldr x8, [x8] mov x9, sp str x8, [x9] adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF bl _fprintf mov w0, #1 bl _exit LBB0_4: b LBB0_6 LBB0_5: ldr x8, [sp, #40] ; 8-byte Folded Reload ldr x0, [x8] ldur x8, [x29, #-32] ldr x8, [x8] mov x9, sp str x8, [x9] adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF bl _fprintf mov w0, #1 bl _exit LBB0_6: mov x0, #16 bl _malloc str x0, [sp, #48] ldr x8, [sp, #48] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB0_8 b LBB0_7 LBB0_7: ldr x8, [sp, #40] ; 8-byte Folded Reload ldr x0, [x8] mov x9, sp adrp x8, l_.str.3@PAGE add x8, x8, l_.str.3@PAGEOFF str x8, [x9] mov x8, #80 str x8, [x9, #8] adrp x1, l_.str.2@PAGE add x1, x1, l_.str.2@PAGEOFF bl _fprintf mov w0, #1 bl _exit LBB0_8: adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf adrp x8, _hypotenuse@GOTPAGE ldr x8, [x8, _hypotenuse@GOTPAGEOFF] movi d0, #0000000000000000 str s0, [x8] adrp x0, _mutexsum@GOTPAGE ldr x0, [x0, _mutexsum@GOTPAGEOFF] mov x1, #0 str x1, [sp, #24] ; 8-byte Folded Spill bl _pthread_mutex_init ldr x1, [sp, #24] ; 8-byte Folded Reload ldr x0, [sp, #48] adrp x2, _square_side@PAGE add x2, x2, _square_side@PAGEOFF str x2, [sp, #32] ; 8-byte Folded Spill sub x3, x29, #16 str x3, [sp, #16] ; 8-byte Folded Spill bl _pthread_create ldr x8, [sp, #16] ; 8-byte Folded Reload ldr x1, [sp, #24] ; 8-byte Folded Reload ldr x2, [sp, #32] ; 8-byte Folded Reload ldr x9, [sp, #48] add x0, x9, #8 add x3, x8, #4 bl _pthread_create stur wzr, [x29, #-36] b LBB0_9 LBB0_9: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-36] subs w8, w8, #2 cset w8, ge tbnz w8, #0, LBB0_12 b LBB0_10 LBB0_10: ; in Loop: Header=BB0_9 Depth=1 ldr x8, [sp, #48] ldursw x9, [x29, #-36] ldr x0, [x8, x9, lsl #3] mov x1, #0 bl _pthread_join b LBB0_11 LBB0_11: ; in Loop: Header=BB0_9 Depth=1 ldur w8, [x29, #-36] add w8, w8, #1 stur w8, [x29, #-36] b LBB0_9 LBB0_12: adrp x8, _hypotenuse@GOTPAGE ldr x8, [x8, _hypotenuse@GOTPAGEOFF] ldr s0, [x8] fcvt d0, s0 fsqrt d0, d0 mov x8, sp str d0, [x8] adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf adrp x0, _mutexsum@GOTPAGE ldr x0, [x0, _mutexsum@GOTPAGEOFF] bl _pthread_mutex_destroy ldr x0, [sp, #48] bl _free ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_14 b LBB0_13 LBB0_13: bl ___stack_chk_fail LBB0_14: mov w0, #0 ldp x29, x30, [sp, #96] ; 16-byte Folded Reload add sp, sp, #112 ret .cfi_endproc ; -- End function .globl _square_side ; -- Begin function square_side .p2align 2 _square_side: ; @square_side .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] ldur x8, [x29, #-8] ldr s0, [x8] stur s0, [x29, #-12] ldur s0, [x29, #-12] fcvt d1, s0 ldur s0, [x29, #-12] ldur s2, [x29, #-12] fmul s0, s0, s2 fcvt d0, s0 mov x8, sp str d1, [x8] str d0, [x8, #8] adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _printf adrp x0, _mutexsum@GOTPAGE ldr x0, [x0, _mutexsum@GOTPAGEOFF] str x0, [sp, #24] ; 8-byte Folded Spill bl _pthread_mutex_lock ldr x0, [sp, #24] ; 8-byte Folded Reload ldur s0, [x29, #-12] ldur s1, [x29, #-12] adrp x8, _hypotenuse@GOTPAGE ldr x8, [x8, _hypotenuse@GOTPAGEOFF] ldr s2, [x8] fmadd s0, s0, s1, s2 str s0, [x8] bl _pthread_mutex_unlock mov x0, #0 bl _pthread_exit .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Error: wrong values for triangle sides.\nUsage:\n %s <side_a> <side_b>\nvalues of sizes should be > 0\n" l_.str.1: ; @.str.1 .asciz "Error: wrong number of parameters.\nUsage:\n %s <side_a> <side_b>\n" l_.str.2: ; @.str.2 .asciz "File: %s, line %d: Can't allocate memory." l_.str.3: ; @.str.3 .asciz "the_stack_data/42086.c" l_.str.4: ; @.str.4 .asciz "\nPythagoras' theorem | a^2 + b^2 = c^2 \n" .comm _hypotenuse,4,2 ; @hypotenuse .comm _mutexsum,64,3 ; @mutexsum l_.str.5: ; @.str.5 .asciz "Hypotenuse is %.2f\n" l_.str.6: ; @.str.6 .asciz "%.2f^2 = %.2f\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __TEXT,__literal4,4byte_literals .p2align 2 ## -- Begin function main LCPI0_0: .long 0x3f800000 ## float 1 .section __TEXT,__text,regular,pure_instructions .globl _main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $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 -24(%rbp), %eax subl $3, %eax jne LBB0_5 jmp LBB0_1 LBB0_1: movq -32(%rbp), %rax movq 8(%rax), %rdi callq _atof cvtsd2ss %xmm0, %xmm0 movss %xmm0, -16(%rbp) movq -32(%rbp), %rax movq 16(%rax), %rdi callq _atof cvtsd2ss %xmm0, %xmm0 movss %xmm0, -12(%rbp) movss LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero ucomiss -16(%rbp), %xmm0 ja LBB0_3 ## %bb.2: movss LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero ucomiss -12(%rbp), %xmm0 jbe LBB0_4 LBB0_3: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movq -32(%rbp), %rax movq (%rax), %rdx leaq L_.str(%rip), %rsi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _fprintf movl $1, %edi callq _exit LBB0_4: jmp LBB0_6 LBB0_5: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movq -32(%rbp), %rax movq (%rax), %rdx leaq L_.str.1(%rip), %rsi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _fprintf movl $1, %edi callq _exit LBB0_6: movl $16, %edi callq _malloc movq %rax, -48(%rbp) cmpq $0, -48(%rbp) jne LBB0_8 ## %bb.7: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.2(%rip), %rsi leaq L_.str.3(%rip), %rdx xorl %eax, %eax ## kill: def $al killed $al killed $eax movl $80, %ecx callq _fprintf movl $1, %edi callq _exit LBB0_8: leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf movq _hypotenuse@GOTPCREL(%rip), %rax xorps %xmm0, %xmm0 movss %xmm0, (%rax) movq _mutexsum@GOTPCREL(%rip), %rdi xorl %eax, %eax movl %eax, %esi callq _pthread_mutex_init movq -48(%rbp), %rdi leaq -16(%rbp), %rcx xorl %eax, %eax movl %eax, %esi leaq _square_side(%rip), %rdx callq _pthread_create movq -48(%rbp), %rdi addq $8, %rdi leaq -16(%rbp), %rcx addq $4, %rcx xorl %eax, %eax movl %eax, %esi leaq _square_side(%rip), %rdx callq _pthread_create movl $0, -36(%rbp) LBB0_9: ## =>This Inner Loop Header: Depth=1 cmpl $2, -36(%rbp) jge LBB0_12 ## %bb.10: ## in Loop: Header=BB0_9 Depth=1 movq -48(%rbp), %rax movslq -36(%rbp), %rcx movq (%rax,%rcx,8), %rdi xorl %eax, %eax movl %eax, %esi callq _pthread_join ## %bb.11: ## in Loop: Header=BB0_9 Depth=1 movl -36(%rbp), %eax addl $1, %eax movl %eax, -36(%rbp) jmp LBB0_9 LBB0_12: movq _hypotenuse@GOTPCREL(%rip), %rax movss (%rax), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 sqrtsd %xmm0, %xmm0 leaq L_.str.5(%rip), %rdi movb $1, %al callq _printf movq _mutexsum@GOTPCREL(%rip), %rdi callq _pthread_mutex_destroy movq -48(%rbp), %rdi callq _free movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_14 ## %bb.13: xorl %eax, %eax addq $48, %rsp popq %rbp retq LBB0_14: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _square_side ## -- Begin function square_side .p2align 4, 0x90 _square_side: ## @square_side .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movq -8(%rbp), %rax movss (%rax), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, -12(%rbp) movss -12(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero cvtss2sd %xmm1, %xmm0 mulss %xmm1, %xmm1 cvtss2sd %xmm1, %xmm1 leaq L_.str.6(%rip), %rdi movb $2, %al callq _printf movq _mutexsum@GOTPCREL(%rip), %rdi movq %rdi, -24(%rbp) ## 8-byte Spill callq _pthread_mutex_lock movq -24(%rbp), %rdi ## 8-byte Reload movss -12(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movq _hypotenuse@GOTPCREL(%rip), %rax movss (%rax), %xmm1 ## xmm1 = mem[0],zero,zero,zero mulss %xmm0, %xmm0 addss %xmm1, %xmm0 movss %xmm0, (%rax) callq _pthread_mutex_unlock xorl %eax, %eax movl %eax, %edi callq _pthread_exit .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Error: wrong values for triangle sides.\nUsage:\n %s <side_a> <side_b>\nvalues of sizes should be > 0\n" L_.str.1: ## @.str.1 .asciz "Error: wrong number of parameters.\nUsage:\n %s <side_a> <side_b>\n" L_.str.2: ## @.str.2 .asciz "File: %s, line %d: Can't allocate memory." L_.str.3: ## @.str.3 .asciz "the_stack_data/42086.c" L_.str.4: ## @.str.4 .asciz "\nPythagoras' theorem | a^2 + b^2 = c^2 \n" .comm _hypotenuse,4,2 ## @hypotenuse .comm _mutexsum,64,3 ## @mutexsum L_.str.5: ## @.str.5 .asciz "Hypotenuse is %.2f\n" L_.str.6: ## @.str.6 .asciz "%.2f^2 = %.2f\n" .subsections_via_symbols
the_stack_data/42086.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #112 .cfi_def_cfa_offset 112 stp x29, x30, [sp, #96] ; 16-byte Folded Spill add x29, sp, #96 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] str x8, [sp, #40] ; 8-byte Folded Spill mov w8, #0 stur w8, [x29, #-44] ; 4-byte Folded Spill stur wzr, [x29, #-4] stur w0, [x29, #-8] stur x1, [x29, #-16] mov x8, sp str xzr, [x8] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf adrp x8, ___stdinp@GOTPAGE ldr x8, [x8, ___stdinp@GOTPAGEOFF] ldr x0, [x8] bl _fileno mov x9, sp ; implicit-def: $x8 mov x8, x0 str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf mov x9, sp mov x8, #1 str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf adrp x8, ___stdoutp@GOTPAGE ldr x8, [x8, ___stdoutp@GOTPAGEOFF] ldr x0, [x8] bl _fileno mov x9, sp ; implicit-def: $x8 mov x8, x0 str x8, [x9] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf mov x9, sp mov x8, #2 str x8, [x9] adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf ldr x8, [sp, #40] ; 8-byte Folded Reload ldr x0, [x8] bl _fileno mov x9, sp ; implicit-def: $x8 mov x8, x0 str x8, [x9] adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _printf ldur w1, [x29, #-44] ; 4-byte Folded Reload adrp x0, l_.str.7@PAGE add x0, x0, l_.str.7@PAGEOFF bl _open stur w0, [x29, #-20] subs w8, w0, #0 cset w8, ge tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: ldr x8, [sp, #40] ; 8-byte Folded Reload ldr x8, [x8] str x8, [sp, #32] ; 8-byte Folded Spill bl ___error ldr w0, [x0] bl _strerror mov x8, x0 ldr x0, [sp, #32] ; 8-byte Folded Reload mov x9, sp str x8, [x9] adrp x1, l_.str.8@PAGE add x1, x1, l_.str.8@PAGEOFF bl _fprintf b LBB0_3 LBB0_2: ldur w9, [x29, #-20] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.9@PAGE add x0, x0, l_.str.9@PAGEOFF bl _printf b LBB0_3 LBB0_3: adrp x0, l_.str.10@PAGE add x0, x0, l_.str.10@PAGEOFF bl _printf adrp x0, l_.str.7@PAGE add x0, x0, l_.str.7@PAGEOFF mov w1, #0 bl _open stur w0, [x29, #-24] subs w8, w0, #0 cset w8, ge tbnz w8, #0, LBB0_5 b LBB0_4 LBB0_4: ldr x8, [sp, #40] ; 8-byte Folded Reload ldr x8, [x8] str x8, [sp, #24] ; 8-byte Folded Spill bl ___error ldr w0, [x0] bl _strerror mov x8, x0 ldr x0, [sp, #24] ; 8-byte Folded Reload mov x9, sp str x8, [x9] adrp x1, l_.str.8@PAGE add x1, x1, l_.str.8@PAGEOFF bl _fprintf mov w0, #1 bl _exit LBB0_5: ldur w9, [x29, #-24] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.11@PAGE add x0, x0, l_.str.11@PAGEOFF bl _printf adrp x0, l_.str.12@PAGE add x0, x0, l_.str.12@PAGEOFF bl _printf ldur w0, [x29, #-20] bl _close adrp x0, l_.str.13@PAGE add x0, x0, l_.str.13@PAGEOFF bl _printf adrp x0, l_.str.7@PAGE add x0, x0, l_.str.7@PAGEOFF mov w1, #0 bl _open stur w0, [x29, #-28] subs w8, w0, #0 cset w8, ge tbnz w8, #0, LBB0_7 b LBB0_6 LBB0_6: ldr x8, [sp, #40] ; 8-byte Folded Reload ldr x8, [x8] str x8, [sp, #16] ; 8-byte Folded Spill bl ___error ldr w0, [x0] bl _strerror mov x8, x0 ldr x0, [sp, #16] ; 8-byte Folded Reload mov x9, sp str x8, [x9] adrp x1, l_.str.8@PAGE add x1, x1, l_.str.8@PAGEOFF bl _fprintf mov w0, #1 bl _exit LBB0_7: ldur w9, [x29, #-28] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.14@PAGE add x0, x0, l_.str.14@PAGEOFF bl _printf adrp x0, l_.str.15@PAGE add x0, x0, l_.str.15@PAGEOFF bl _printf ldur w0, [x29, #-24] bl _close ldur w0, [x29, #-28] bl _close adrp x0, l_.str.16@PAGE add x0, x0, l_.str.16@PAGEOFF bl _printf adrp x0, l_.str.7@PAGE add x0, x0, l_.str.7@PAGEOFF adrp x1, l_.str.17@PAGE add x1, x1, l_.str.17@PAGEOFF bl _fopen mov x8, x0 stur x8, [x29, #-40] subs x8, x0, #0 cset w8, ne tbnz w8, #0, LBB0_9 b LBB0_8 LBB0_8: ldr x8, [sp, #40] ; 8-byte Folded Reload ldr x8, [x8] str x8, [sp, #8] ; 8-byte Folded Spill bl ___error ldr w0, [x0] bl _strerror mov x8, x0 ldr x0, [sp, #8] ; 8-byte Folded Reload mov x9, sp str x8, [x9] adrp x1, l_.str.8@PAGE add x1, x1, l_.str.8@PAGEOFF bl _fprintf mov w0, #1 bl _exit LBB0_9: ldur x0, [x29, #-40] bl _fileno mov x9, sp ; implicit-def: $x8 mov x8, x0 str x8, [x9] adrp x0, l_.str.18@PAGE add x0, x0, l_.str.18@PAGEOFF bl _printf ldur x0, [x29, #-40] bl _fclose mov w0, #0 ldp x29, x30, [sp, #96] ; 16-byte Folded Reload add sp, sp, #112 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "STDIN_FILENO: %d\n" l_.str.1: ; @.str.1 .asciz "stdin: %d\n" l_.str.2: ; @.str.2 .asciz "STDOUT_FILENO: %d\n" l_.str.3: ; @.str.3 .asciz "stdout: %d\n" l_.str.4: ; @.str.4 .asciz "STDERR_FILENO: %d\n" l_.str.5: ; @.str.5 .asciz "stderr: %d\n" l_.str.6: ; @.str.6 .asciz "\nOpening /dev/zero...\n" l_.str.7: ; @.str.7 .asciz "/dev/zero" l_.str.8: ; @.str.8 .asciz "Unable to open /dev/zero: %s\n" l_.str.9: ; @.str.9 .asciz "fd1: %d\n" l_.str.10: ; @.str.10 .asciz "\nOpening /dev/zero a second time...\n" l_.str.11: ; @.str.11 .asciz "fd2: %d\n" l_.str.12: ; @.str.12 .asciz "\nNow closing fd1, but keeping fd2 open..\n" l_.str.13: ; @.str.13 .asciz "\nOpening /dev/zero a third time...\n" l_.str.14: ; @.str.14 .asciz "fd3: %d\n" l_.str.15: ; @.str.15 .asciz "\nNow closing fd2 and fd3.\n" l_.str.16: ; @.str.16 .asciz "Now opening /dev/zero as a stream.\n" l_.str.17: ; @.str.17 .asciz "r" l_.str.18: ; @.str.18 .asciz "f: %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 $80, %rsp movl $0, -4(%rbp) movl %edi, -8(%rbp) movq %rsi, -16(%rbp) leaq L_.str(%rip), %rdi xorl %esi, %esi movb $0, %al callq _printf movq ___stdinp@GOTPCREL(%rip), %rax movq (%rax), %rdi callq _fileno movl %eax, %esi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf leaq L_.str.2(%rip), %rdi movl $1, %esi movb $0, %al callq _printf movq ___stdoutp@GOTPCREL(%rip), %rax movq (%rax), %rdi callq _fileno movl %eax, %esi leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf leaq L_.str.4(%rip), %rdi movl $2, %esi movb $0, %al callq _printf movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi callq _fileno movl %eax, %esi leaq L_.str.5(%rip), %rdi movb $0, %al callq _printf leaq L_.str.6(%rip), %rdi movb $0, %al callq _printf leaq L_.str.7(%rip), %rdi xorl %esi, %esi movb $0, %al callq _open movl %eax, -20(%rbp) cmpl $0, %eax jge LBB0_2 ## %bb.1: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -48(%rbp) ## 8-byte Spill callq ___error movl (%rax), %edi callq _strerror movq -48(%rbp), %rdi ## 8-byte Reload movq %rax, %rdx leaq L_.str.8(%rip), %rsi movb $0, %al callq _fprintf jmp LBB0_3 LBB0_2: movl -20(%rbp), %esi leaq L_.str.9(%rip), %rdi movb $0, %al callq _printf LBB0_3: leaq L_.str.10(%rip), %rdi movb $0, %al callq _printf leaq L_.str.7(%rip), %rdi xorl %esi, %esi movb $0, %al callq _open movl %eax, -24(%rbp) cmpl $0, %eax jge LBB0_5 ## %bb.4: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -56(%rbp) ## 8-byte Spill callq ___error movl (%rax), %edi callq _strerror movq -56(%rbp), %rdi ## 8-byte Reload movq %rax, %rdx leaq L_.str.8(%rip), %rsi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _fprintf movl $1, %edi callq _exit LBB0_5: movl -24(%rbp), %esi leaq L_.str.11(%rip), %rdi movb $0, %al callq _printf leaq L_.str.12(%rip), %rdi movb $0, %al callq _printf movl -20(%rbp), %edi callq _close leaq L_.str.13(%rip), %rdi movb $0, %al callq _printf leaq L_.str.7(%rip), %rdi xorl %esi, %esi movb $0, %al callq _open movl %eax, -28(%rbp) cmpl $0, %eax jge LBB0_7 ## %bb.6: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -64(%rbp) ## 8-byte Spill callq ___error movl (%rax), %edi callq _strerror movq -64(%rbp), %rdi ## 8-byte Reload movq %rax, %rdx leaq L_.str.8(%rip), %rsi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _fprintf movl $1, %edi callq _exit LBB0_7: movl -28(%rbp), %esi leaq L_.str.14(%rip), %rdi movb $0, %al callq _printf leaq L_.str.15(%rip), %rdi movb $0, %al callq _printf movl -24(%rbp), %edi callq _close movl -28(%rbp), %edi callq _close leaq L_.str.16(%rip), %rdi movb $0, %al callq _printf leaq L_.str.7(%rip), %rdi leaq L_.str.17(%rip), %rsi callq _fopen movq %rax, -40(%rbp) cmpq $0, %rax jne LBB0_9 ## %bb.8: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -72(%rbp) ## 8-byte Spill callq ___error movl (%rax), %edi callq _strerror movq -72(%rbp), %rdi ## 8-byte Reload movq %rax, %rdx leaq L_.str.8(%rip), %rsi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _fprintf movl $1, %edi callq _exit LBB0_9: movq -40(%rbp), %rdi callq _fileno movl %eax, %esi leaq L_.str.18(%rip), %rdi movb $0, %al callq _printf movq -40(%rbp), %rdi callq _fclose xorl %eax, %eax addq $80, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "STDIN_FILENO: %d\n" L_.str.1: ## @.str.1 .asciz "stdin: %d\n" L_.str.2: ## @.str.2 .asciz "STDOUT_FILENO: %d\n" L_.str.3: ## @.str.3 .asciz "stdout: %d\n" L_.str.4: ## @.str.4 .asciz "STDERR_FILENO: %d\n" L_.str.5: ## @.str.5 .asciz "stderr: %d\n" L_.str.6: ## @.str.6 .asciz "\nOpening /dev/zero...\n" L_.str.7: ## @.str.7 .asciz "/dev/zero" L_.str.8: ## @.str.8 .asciz "Unable to open /dev/zero: %s\n" L_.str.9: ## @.str.9 .asciz "fd1: %d\n" L_.str.10: ## @.str.10 .asciz "\nOpening /dev/zero a second time...\n" L_.str.11: ## @.str.11 .asciz "fd2: %d\n" L_.str.12: ## @.str.12 .asciz "\nNow closing fd1, but keeping fd2 open..\n" L_.str.13: ## @.str.13 .asciz "\nOpening /dev/zero a third time...\n" L_.str.14: ## @.str.14 .asciz "fd3: %d\n" L_.str.15: ## @.str.15 .asciz "\nNow closing fd2 and fd3.\n" L_.str.16: ## @.str.16 .asciz "Now opening /dev/zero as a stream.\n" L_.str.17: ## @.str.17 .asciz "r" L_.str.18: ## @.str.18 .asciz "f: %d\n" .subsections_via_symbols
the_stack_data/48575968.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _arrangeCoins ; -- Begin function arrangeCoins .p2align 2 _arrangeCoins: ; @arrangeCoins .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str w0, [sp, #28] str xzr, [sp, #16] ldr w8, [sp, #28] add w8, w8, #1 ; kill: def $x8 killed $w8 str x8, [sp, #8] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #16] ldr x9, [sp, #8] subs x8, x8, x9 cset w8, ge tbnz w8, #0, LBB0_6 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #8] ldr x9, [sp, #16] subs x8, x8, x9 mov x9, #2 sdiv x8, x8, x9 ldr x10, [sp, #16] add x8, x8, x10 str x8, [sp] ldr x8, [sp] ldr x10, [sp] add x10, x10, #1 mul x8, x8, x10 sdiv x8, x8, x9 ldrsw x9, [sp, #28] subs x8, x8, x9 cset w8, gt tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp] add x8, x8, #1 str x8, [sp, #16] b LBB0_5 LBB0_4: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp] str x8, [sp, #8] b LBB0_5 LBB0_5: ; in Loop: Header=BB0_1 Depth=1 b LBB0_1 LBB0_6: ldr x8, [sp, #16] subs x8, x8, #1 mov x0, x8 add sp, sp, #32 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _arrangeCoins ## -- Begin function arrangeCoins .p2align 4, 0x90 _arrangeCoins: ## @arrangeCoins .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, -4(%rbp) movq $0, -16(%rbp) movl -4(%rbp), %eax addl $1, %eax movl %eax, %eax ## kill: def $rax killed $eax movq %rax, -24(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movq -16(%rbp), %rax cmpq -24(%rbp), %rax jge LBB0_6 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movq -24(%rbp), %rax subq -16(%rbp), %rax movl $2, %ecx cqto idivq %rcx addq -16(%rbp), %rax movq %rax, -32(%rbp) movq -32(%rbp), %rax movq -32(%rbp), %rcx addq $1, %rcx imulq %rcx, %rax movl $2, %ecx cqto idivq %rcx movslq -4(%rbp), %rcx cmpq %rcx, %rax jg LBB0_4 ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movq -32(%rbp), %rax addq $1, %rax movq %rax, -16(%rbp) jmp LBB0_5 LBB0_4: ## in Loop: Header=BB0_1 Depth=1 movq -32(%rbp), %rax movq %rax, -24(%rbp) LBB0_5: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_1 LBB0_6: movq -16(%rbp), %rax subq $1, %rax ## kill: def $eax killed $eax killed $rax popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/85286.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _bcm5699x_int_sub_drv_attach ; -- Begin function bcm5699x_int_sub_drv_attach .p2align 2 _bcm5699x_int_sub_drv_attach: ; @bcm5699x_int_sub_drv_attach .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #12] str x1, [sp] mov w0, #0 add sp, sp, #16 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _bcm5699x_int_sub_drv_attach ## -- Begin function bcm5699x_int_sub_drv_attach .p2align 4, 0x90 _bcm5699x_int_sub_drv_attach: ## @bcm5699x_int_sub_drv_attach .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, -4(%rbp) movq %rsi, -16(%rbp) xorl %eax, %eax popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/72013211.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: stp x28, x27, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w27, -24 .cfi_offset w28, -32 mov w9, #10848 movk w9, #6, lsl #16 adrp x16, ___chkstk_darwin@GOTPAGE ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF] blr x16 sub sp, sp, #98, lsl #12 ; =401408 sub sp, sp, #2656 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] str wzr, [sp, #52] mov x9, sp add x8, sp, #40 str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF str x0, [sp, #24] ; 8-byte Folded Spill bl _scanf ldr x0, [sp, #24] ; 8-byte Folded Reload mov x9, sp add x8, sp, #36 str x8, [x9] bl _scanf mov w8, #1 str w8, [sp, #48] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #48] ldr w9, [sp, #40] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_4 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldrsw x9, [sp, #48] add x8, sp, #56 add x8, x8, x9, lsl #2 mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _scanf b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #48] add w8, w8, #1 str w8, [sp, #48] b LBB0_1 LBB0_4: mov w8, #1 str w8, [sp, #48] b LBB0_5 LBB0_5: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #48] ldr w9, [sp, #36] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_8 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_5 Depth=1 ldrsw x10, [sp, #48] add x9, sp, #49, lsl #12 ; =200704 add x9, x9, #3352 mov w8, #31616 movk w8, #65505, lsl #16 str w8, [x9, x10, lsl #2] ldrsw x10, [sp, #48] add x9, sp, #4056 mov w8, #33920 movk w8, #30, lsl #16 str w8, [x9, x10, lsl #2] b LBB0_7 LBB0_7: ; in Loop: Header=BB0_5 Depth=1 ldr w8, [sp, #48] add w8, w8, #1 str w8, [sp, #48] b LBB0_5 LBB0_8: add x8, sp, #45, lsl #12 ; =184320 add x8, x8, #3356 str wzr, [x8, #16380] str wzr, [sp, #4056] mov w8, #1 str w8, [sp, #48] b LBB0_9 LBB0_9: ; =>This Loop Header: Depth=1 ; Child Loop BB0_11 Depth 2 ldr w8, [sp, #48] ldr w9, [sp, #40] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_20 b LBB0_10 LBB0_10: ; in Loop: Header=BB0_9 Depth=1 ldrsw x9, [sp, #48] add x8, sp, #56 ldr w8, [x8, x9, lsl #2] str w8, [sp, #44] b LBB0_11 LBB0_11: ; Parent Loop BB0_9 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #44] ldr w9, [sp, #36] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_18 b LBB0_12 LBB0_12: ; in Loop: Header=BB0_11 Depth=2 ldr w8, [sp, #44] ldrsw x10, [sp, #48] add x9, sp, #56 ldr w9, [x9, x10, lsl #2] subs w8, w8, w9 add x9, sp, #49, lsl #12 ; =200704 add x9, x9, #3352 ldr w8, [x9, w8, sxtw #2] add w8, w8, #1 ldrsw x10, [sp, #44] ldr w9, [x9, x10, lsl #2] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB0_14 b LBB0_13 LBB0_13: ; in Loop: Header=BB0_11 Depth=2 ldr w8, [sp, #44] ldrsw x10, [sp, #48] add x9, sp, #56 ldr w9, [x9, x10, lsl #2] subs w8, w8, w9 add x9, sp, #49, lsl #12 ; =200704 add x9, x9, #3352 ldr w8, [x9, w8, sxtw #2] add w8, w8, #1 ldrsw x10, [sp, #44] str w8, [x9, x10, lsl #2] b LBB0_14 LBB0_14: ; in Loop: Header=BB0_11 Depth=2 ldr w8, [sp, #44] ldrsw x10, [sp, #48] add x9, sp, #56 ldr w9, [x9, x10, lsl #2] subs w8, w8, w9 add x9, sp, #4056 ldr w8, [x9, w8, sxtw #2] add w8, w8, #1 ldrsw x10, [sp, #44] ldr w9, [x9, x10, lsl #2] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_16 b LBB0_15 LBB0_15: ; in Loop: Header=BB0_11 Depth=2 ldr w8, [sp, #44] ldrsw x10, [sp, #48] add x9, sp, #56 ldr w9, [x9, x10, lsl #2] subs w8, w8, w9 add x9, sp, #4056 ldr w8, [x9, w8, sxtw #2] add w8, w8, #1 ldrsw x10, [sp, #44] str w8, [x9, x10, lsl #2] b LBB0_16 LBB0_16: ; in Loop: Header=BB0_11 Depth=2 b LBB0_17 LBB0_17: ; in Loop: Header=BB0_11 Depth=2 ldr w8, [sp, #44] add w8, w8, #1 str w8, [sp, #44] b LBB0_11 LBB0_18: ; in Loop: Header=BB0_9 Depth=1 b LBB0_19 LBB0_19: ; in Loop: Header=BB0_9 Depth=1 ldr w8, [sp, #48] add w8, w8, #1 str w8, [sp, #48] b LBB0_9 LBB0_20: ldrsw x9, [sp, #36] add x8, sp, #4056 ldr w8, [x8, x9, lsl #2] ; implicit-def: $x10 mov x10, x8 ldrsw x9, [sp, #36] add x8, sp, #49, lsl #12 ; =200704 add x8, x8, #3352 ldr w9, [x8, x9, lsl #2] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf 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_22 b LBB0_21 LBB0_21: bl ___stack_chk_fail LBB0_22: mov w0, #0 add sp, sp, #98, lsl #12 ; =401408 add sp, sp, #2656 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x28, x27, [sp], #32 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d" l_.str.1: ; @.str.1 .asciz "%d\n%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 movl $404048, %eax ## imm = 0x62A50 callq ____chkstk_darwin subq %rax, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -404020(%rbp) leaq L_.str(%rip), %rdi leaq -404032(%rbp), %rsi movb $0, %al callq _scanf leaq L_.str(%rip), %rdi leaq -404036(%rbp), %rsi movb $0, %al callq _scanf movl $1, -404024(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movl -404024(%rbp), %eax cmpl -404032(%rbp), %eax jg LBB0_4 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movslq -404024(%rbp), %rax leaq -404016(%rbp), %rsi shlq $2, %rax addq %rax, %rsi leaq L_.str(%rip), %rdi movb $0, %al callq _scanf ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movl -404024(%rbp), %eax addl $1, %eax movl %eax, -404024(%rbp) jmp LBB0_1 LBB0_4: movl $1, -404024(%rbp) LBB0_5: ## =>This Inner Loop Header: Depth=1 movl -404024(%rbp), %eax cmpl -404036(%rbp), %eax jg LBB0_8 ## %bb.6: ## in Loop: Header=BB0_5 Depth=1 movslq -404024(%rbp), %rax movl $-2000000, -200016(%rbp,%rax,4) ## imm = 0xFFE17B80 movslq -404024(%rbp), %rax movl $2000000, -400016(%rbp,%rax,4) ## imm = 0x1E8480 ## %bb.7: ## in Loop: Header=BB0_5 Depth=1 movl -404024(%rbp), %eax addl $1, %eax movl %eax, -404024(%rbp) jmp LBB0_5 LBB0_8: movl $0, -200016(%rbp) movl $0, -400016(%rbp) movl $1, -404024(%rbp) LBB0_9: ## =>This Loop Header: Depth=1 ## Child Loop BB0_11 Depth 2 movl -404024(%rbp), %eax cmpl -404032(%rbp), %eax jg LBB0_20 ## %bb.10: ## in Loop: Header=BB0_9 Depth=1 movslq -404024(%rbp), %rax movl -404016(%rbp,%rax,4), %eax movl %eax, -404028(%rbp) LBB0_11: ## Parent Loop BB0_9 Depth=1 ## => This Inner Loop Header: Depth=2 movl -404028(%rbp), %eax cmpl -404036(%rbp), %eax jg LBB0_18 ## %bb.12: ## in Loop: Header=BB0_11 Depth=2 movl -404028(%rbp), %eax movslq -404024(%rbp), %rcx subl -404016(%rbp,%rcx,4), %eax cltq movl -200016(%rbp,%rax,4), %eax addl $1, %eax movslq -404028(%rbp), %rcx cmpl -200016(%rbp,%rcx,4), %eax jle LBB0_14 ## %bb.13: ## in Loop: Header=BB0_11 Depth=2 movl -404028(%rbp), %eax movslq -404024(%rbp), %rcx subl -404016(%rbp,%rcx,4), %eax cltq movl -200016(%rbp,%rax,4), %ecx addl $1, %ecx movslq -404028(%rbp), %rax movl %ecx, -200016(%rbp,%rax,4) LBB0_14: ## in Loop: Header=BB0_11 Depth=2 movl -404028(%rbp), %eax movslq -404024(%rbp), %rcx subl -404016(%rbp,%rcx,4), %eax cltq movl -400016(%rbp,%rax,4), %eax addl $1, %eax movslq -404028(%rbp), %rcx cmpl -400016(%rbp,%rcx,4), %eax jge LBB0_16 ## %bb.15: ## in Loop: Header=BB0_11 Depth=2 movl -404028(%rbp), %eax movslq -404024(%rbp), %rcx subl -404016(%rbp,%rcx,4), %eax cltq movl -400016(%rbp,%rax,4), %ecx addl $1, %ecx movslq -404028(%rbp), %rax movl %ecx, -400016(%rbp,%rax,4) LBB0_16: ## in Loop: Header=BB0_11 Depth=2 jmp LBB0_17 LBB0_17: ## in Loop: Header=BB0_11 Depth=2 movl -404028(%rbp), %eax addl $1, %eax movl %eax, -404028(%rbp) jmp LBB0_11 LBB0_18: ## in Loop: Header=BB0_9 Depth=1 jmp LBB0_19 LBB0_19: ## in Loop: Header=BB0_9 Depth=1 movl -404024(%rbp), %eax addl $1, %eax movl %eax, -404024(%rbp) jmp LBB0_9 LBB0_20: movslq -404036(%rbp), %rax movl -400016(%rbp,%rax,4), %esi movslq -404036(%rbp), %rax movl -200016(%rbp,%rax,4), %edx leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_22 ## %bb.21: xorl %eax, %eax addq $404048, %rsp ## imm = 0x62A50 popq %rbp retq LBB0_22: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d" L_.str.1: ## @.str.1 .asciz "%d\n%d" .subsections_via_symbols
the_stack_data/202498.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, #2208 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] sub x0, x29, #63 str x0, [sp, #8] ; 8-byte Folded Spill adrp x1, l___const.main.s1@PAGE add x1, x1, l___const.main.s1@PAGEOFF mov x2, #39 bl _memcpy ldr x0, [sp, #8] ; 8-byte Folded Reload add x1, sp, #1137 str x1, [sp, #16] ; 8-byte Folded Spill bl _expand ldr x8, [sp, #16] ; 8-byte Folded Reload mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF str x0, [sp, #40] ; 8-byte Folded Spill bl _printf add x0, sp, #1078 str x0, [sp, #24] ; 8-byte Folded Spill adrp x1, l___const.main.s@PAGE add x1, x1, l___const.main.s@PAGEOFF mov x2, #59 bl _memcpy ldr x0, [sp, #24] ; 8-byte Folded Reload add x1, sp, #54 str x1, [sp, #32] ; 8-byte Folded Spill bl _expand ldr x8, [sp, #32] ; 8-byte Folded Reload ldr x0, [sp, #40] ; 8-byte Folded Reload mov x9, sp str x8, [x9] 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_2 b LBB0_1 LBB0_1: bl ___stack_chk_fail LBB0_2: mov w0, #0 add sp, sp, #2208 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x28, x27, [sp], #32 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .globl _expand ; -- Begin function expand .p2align 2 _expand: ; @expand .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 str x0, [sp, #40] str x1, [sp, #32] str wzr, [sp, #28] str wzr, [sp, #24] b LBB1_1 LBB1_1: ; =>This Loop Header: Depth=1 ; Child Loop BB1_13 Depth 2 ldr x8, [sp, #40] ldrsw x9, [sp, #28] ldrsb w8, [x8, x9] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB1_22 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 ldr x8, [sp, #40] ldrsw x9, [sp, #28] ldrsb w8, [x8, x9] subs w8, w8, #45 cset w8, ne tbnz w8, #0, LBB1_19 b LBB1_3 LBB1_3: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #28] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB1_19 b LBB1_4 LBB1_4: ; in Loop: Header=BB1_1 Depth=1 ldr x8, [sp, #40] ldr w9, [sp, #28] add w9, w9, #1 ldrsb w8, [x8, w9, sxtw] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB1_19 b LBB1_5 LBB1_5: ; in Loop: Header=BB1_1 Depth=1 ldr x8, [sp, #40] ldr w9, [sp, #28] subs w9, w9, #1 ldrsb w8, [x8, w9, sxtw] str w8, [sp, #16] ldr x8, [sp, #40] ldr w9, [sp, #28] add w9, w9, #1 ldrsb w8, [x8, w9, sxtw] str w8, [sp, #12] ldr w8, [sp, #16] ldr w9, [sp, #12] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_17 b LBB1_6 LBB1_6: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #16] subs w8, w8, #97 cset w8, lt tbnz w8, #0, LBB1_8 b LBB1_7 LBB1_7: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #12] subs w8, w8, #122 cset w8, le tbnz w8, #0, LBB1_12 b LBB1_8 LBB1_8: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #16] subs w8, w8, #65 cset w8, lt tbnz w8, #0, LBB1_10 b LBB1_9 LBB1_9: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #12] subs w8, w8, #90 cset w8, le tbnz w8, #0, LBB1_12 b LBB1_10 LBB1_10: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #16] subs w8, w8, #48 cset w8, lt tbnz w8, #0, LBB1_17 b LBB1_11 LBB1_11: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #12] subs w8, w8, #57 cset w8, gt tbnz w8, #0, LBB1_17 b LBB1_12 LBB1_12: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #16] add w8, w8, #1 str w8, [sp, #20] b LBB1_13 LBB1_13: ; Parent Loop BB1_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #20] ldr w9, [sp, #12] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_16 b LBB1_14 LBB1_14: ; in Loop: Header=BB1_13 Depth=2 ldr w8, [sp, #20] ldr x9, [sp, #32] ldrsw x10, [sp, #24] mov x11, x10 add w11, w11, #1 str w11, [sp, #24] strb w8, [x9, x10] b LBB1_15 LBB1_15: ; in Loop: Header=BB1_13 Depth=2 ldr w8, [sp, #20] add w8, w8, #1 str w8, [sp, #20] b LBB1_13 LBB1_16: ; in Loop: Header=BB1_1 Depth=1 b LBB1_18 LBB1_17: ; in Loop: Header=BB1_1 Depth=1 ldr x8, [sp, #40] ldrsw x9, [sp, #28] add x8, x8, x9 ldrb w8, [x8] ldr x9, [sp, #32] ldrsw x10, [sp, #24] mov x11, x10 add w11, w11, #1 str w11, [sp, #24] add x9, x9, x10 strb w8, [x9] b LBB1_18 LBB1_18: ; in Loop: Header=BB1_1 Depth=1 b LBB1_20 LBB1_19: ; in Loop: Header=BB1_1 Depth=1 ldr x8, [sp, #40] ldrsw x9, [sp, #28] add x8, x8, x9 ldrb w8, [x8] ldr x9, [sp, #32] ldrsw x10, [sp, #24] mov x11, x10 add w11, w11, #1 str w11, [sp, #24] add x9, x9, x10 strb w8, [x9] b LBB1_20 LBB1_20: ; in Loop: Header=BB1_1 Depth=1 b LBB1_21 LBB1_21: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #28] add w8, w8, #1 str w8, [sp, #28] b LBB1_1 LBB1_22: ldr x8, [sp, #32] ldrsw x9, [sp, #24] add x8, x8, x9 strb wzr, [x8] add sp, sp, #48 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l___const.main.s1: ; @__const.main.s1 .asciz "-a-z-A-Z-0-9-asd-5-5-5-9a-ZZ-A-G-N-T-Z" l_.str: ; @.str .asciz "%s\n" l___const.main.s: ; @__const.main.s .asciz "-a-z 0-9 a-d-f -0-2 some text 1-1 WITH CAPITALS! 0-0 5-3 -" .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 $2160, %rsp ## imm = 0x870 movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) leaq -48(%rbp), %rdi leaq L___const.main.s1(%rip), %rsi movl $39, %edx callq _memcpy leaq -48(%rbp), %rdi leaq -1072(%rbp), %rsi callq _expand leaq -1072(%rbp), %rsi leaq L_.str(%rip), %rdi movb $0, %al callq _printf leaq -1136(%rbp), %rdi leaq L___const.main.s(%rip), %rsi movl $59, %edx callq _memcpy leaq -1136(%rbp), %rdi leaq -2160(%rbp), %rsi callq _expand leaq -2160(%rbp), %rsi leaq L_.str(%rip), %rdi movb $0, %al callq _printf movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_2 ## %bb.1: xorl %eax, %eax addq $2160, %rsp ## imm = 0x870 popq %rbp retq LBB0_2: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _expand ## -- Begin function expand .p2align 4, 0x90 _expand: ## @expand .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) movl $0, -20(%rbp) movl $0, -24(%rbp) LBB1_1: ## =>This Loop Header: Depth=1 ## Child Loop BB1_13 Depth 2 movq -8(%rbp), %rax movslq -20(%rbp), %rcx movsbl (%rax,%rcx), %eax cmpl $0, %eax je LBB1_22 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 movq -8(%rbp), %rax movslq -20(%rbp), %rcx movsbl (%rax,%rcx), %eax cmpl $45, %eax jne LBB1_19 ## %bb.3: ## in Loop: Header=BB1_1 Depth=1 cmpl $0, -20(%rbp) jle LBB1_19 ## %bb.4: ## in Loop: Header=BB1_1 Depth=1 movq -8(%rbp), %rax movl -20(%rbp), %ecx addl $1, %ecx movslq %ecx, %rcx movsbl (%rax,%rcx), %eax cmpl $0, %eax je LBB1_19 ## %bb.5: ## in Loop: Header=BB1_1 Depth=1 movq -8(%rbp), %rax movl -20(%rbp), %ecx subl $1, %ecx movslq %ecx, %rcx movsbl (%rax,%rcx), %eax movl %eax, -32(%rbp) movq -8(%rbp), %rax movl -20(%rbp), %ecx addl $1, %ecx movslq %ecx, %rcx movsbl (%rax,%rcx), %eax movl %eax, -36(%rbp) movl -32(%rbp), %eax cmpl -36(%rbp), %eax jge LBB1_17 ## %bb.6: ## in Loop: Header=BB1_1 Depth=1 cmpl $97, -32(%rbp) jl LBB1_8 ## %bb.7: ## in Loop: Header=BB1_1 Depth=1 cmpl $122, -36(%rbp) jle LBB1_12 LBB1_8: ## in Loop: Header=BB1_1 Depth=1 cmpl $65, -32(%rbp) jl LBB1_10 ## %bb.9: ## in Loop: Header=BB1_1 Depth=1 cmpl $90, -36(%rbp) jle LBB1_12 LBB1_10: ## in Loop: Header=BB1_1 Depth=1 cmpl $48, -32(%rbp) jl LBB1_17 ## %bb.11: ## in Loop: Header=BB1_1 Depth=1 cmpl $57, -36(%rbp) jg LBB1_17 LBB1_12: ## in Loop: Header=BB1_1 Depth=1 movl -32(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) LBB1_13: ## Parent Loop BB1_1 Depth=1 ## => This Inner Loop Header: Depth=2 movl -28(%rbp), %eax cmpl -36(%rbp), %eax jge LBB1_16 ## %bb.14: ## in Loop: Header=BB1_13 Depth=2 movl -28(%rbp), %eax movb %al, %dl movq -16(%rbp), %rax movl -24(%rbp), %ecx movl %ecx, %esi addl $1, %esi movl %esi, -24(%rbp) movslq %ecx, %rcx movb %dl, (%rax,%rcx) ## %bb.15: ## in Loop: Header=BB1_13 Depth=2 movl -28(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) jmp LBB1_13 LBB1_16: ## in Loop: Header=BB1_1 Depth=1 jmp LBB1_18 LBB1_17: ## in Loop: Header=BB1_1 Depth=1 movq -8(%rbp), %rax movslq -20(%rbp), %rcx movb (%rax,%rcx), %dl movq -16(%rbp), %rax movl -24(%rbp), %ecx movl %ecx, %esi addl $1, %esi movl %esi, -24(%rbp) movslq %ecx, %rcx movb %dl, (%rax,%rcx) LBB1_18: ## in Loop: Header=BB1_1 Depth=1 jmp LBB1_20 LBB1_19: ## in Loop: Header=BB1_1 Depth=1 movq -8(%rbp), %rax movslq -20(%rbp), %rcx movb (%rax,%rcx), %dl movq -16(%rbp), %rax movl -24(%rbp), %ecx movl %ecx, %esi addl $1, %esi movl %esi, -24(%rbp) movslq %ecx, %rcx movb %dl, (%rax,%rcx) LBB1_20: ## in Loop: Header=BB1_1 Depth=1 jmp LBB1_21 LBB1_21: ## in Loop: Header=BB1_1 Depth=1 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB1_1 LBB1_22: movq -16(%rbp), %rax movslq -24(%rbp), %rcx movb $0, (%rax,%rcx) popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals .p2align 4 ## @__const.main.s1 L___const.main.s1: .asciz "-a-z-A-Z-0-9-asd-5-5-5-9a-ZZ-A-G-N-T-Z" L_.str: ## @.str .asciz "%s\n" .p2align 4 ## @__const.main.s L___const.main.s: .asciz "-a-z 0-9 a-d-f -0-2 some text 1-1 WITH CAPITALS! 0-0 5-3 -" .subsections_via_symbols
the_stack_data/165766565.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __TEXT,__literal8,8byte_literals .p2align 3 ; -- Begin function main lCPI0_0: .quad 0x3ff028f5c28f5c29 ; double 1.01 lCPI0_1: .quad 0x3fefae147ae147ae ; double 0.98999999999999999 .section __TEXT,__text,regular,pure_instructions .globl _main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #112 .cfi_def_cfa_offset 112 stp x29, x30, [sp, #96] ; 16-byte Folded Spill add x29, sp, #96 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] mov w1, #0 str wzr, [sp, #28] add x0, sp, #32 mov x2, #56 bl _memset fmov d0, #-1.00000000 str d0, [sp, #32] fmov d0, #-0.50000000 str d0, [sp, #40] fmov d0, #0.50000000 str d0, [sp, #56] adrp x8, lCPI0_1@PAGE ldr d0, [x8, lCPI0_1@PAGEOFF] str d0, [sp, #64] fmov d0, #1.00000000 str d0, [sp, #72] adrp x8, lCPI0_0@PAGE ldr d0, [x8, lCPI0_0@PAGEOFF] str d0, [sp, #80] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _puts str wzr, [sp, #24] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldrsw x8, [sp, #24] subs x8, x8, #7 cset w8, hs tbnz w8, #0, LBB0_6 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 bl ___error str wzr, [x0] ldrsw x9, [sp, #24] add x8, sp, #32 ldr d0, [x8, x9, lsl #3] str d0, [sp, #16] ; 8-byte Folded Spill ldrsw x9, [sp, #24] ldr d0, [x8, x9, lsl #3] bl _atanh ldr d1, [sp, #16] ; 8-byte Folded Reload mov x8, sp str d1, [x8] str d0, [x8, #8] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf bl ___error ldr w8, [x0] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _perror b LBB0_4 LBB0_4: ; in Loop: Header=BB0_1 Depth=1 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #24] add w8, w8, #1 str w8, [sp, #24] b LBB0_1 LBB0_6: 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_8 b LBB0_7 LBB0_7: bl ___stack_chk_fail LBB0_8: mov w0, #0 ldp x29, x30, [sp, #96] ; 16-byte Folded Reload add sp, sp, #112 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz " x atanh(x) \n ---------------------------------------" l_.str.1: ; @.str.1 .asciz "%+15.2f %+20.10f\n" l_.str.2: ; @.str.2 .asciz "atanh" .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 0x3ff028f5c28f5c29 ## double 1.01 LCPI0_1: .quad 0x3ff0000000000000 ## double 1 LCPI0_2: .quad 0x3fefae147ae147ae ## double 0.98999999999999999 LCPI0_3: .quad 0x3fe0000000000000 ## double 0.5 LCPI0_4: .quad 0xbfe0000000000000 ## double -0.5 LCPI0_5: .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 $80, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -68(%rbp) leaq -64(%rbp), %rdi xorl %esi, %esi movl $56, %edx callq _memset movsd LCPI0_5(%rip), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -64(%rbp) movsd LCPI0_4(%rip), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -56(%rbp) movsd LCPI0_3(%rip), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -40(%rbp) movsd LCPI0_2(%rip), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -32(%rbp) movsd LCPI0_1(%rip), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -24(%rbp) movsd LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -16(%rbp) leaq L_.str(%rip), %rdi callq _puts movl $0, -72(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movslq -72(%rbp), %rax cmpq $7, %rax jae LBB0_6 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 callq ___error movl $0, (%rax) movslq -72(%rbp), %rax movsd -64(%rbp,%rax,8), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -80(%rbp) ## 8-byte Spill movslq -72(%rbp), %rax movsd -64(%rbp,%rax,8), %xmm0 ## xmm0 = mem[0],zero callq _atanh movaps %xmm0, %xmm1 movsd -80(%rbp), %xmm0 ## 8-byte Reload ## xmm0 = mem[0],zero leaq L_.str.1(%rip), %rdi movb $2, %al callq _printf callq ___error cmpl $0, (%rax) je LBB0_4 ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 leaq L_.str.2(%rip), %rdi callq _perror LBB0_4: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_5 LBB0_5: ## in Loop: Header=BB0_1 Depth=1 movl -72(%rbp), %eax addl $1, %eax movl %eax, -72(%rbp) jmp LBB0_1 LBB0_6: movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_8 ## %bb.7: xorl %eax, %eax addq $80, %rsp popq %rbp retq LBB0_8: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz " x atanh(x) \n ---------------------------------------" L_.str.1: ## @.str.1 .asciz "%+15.2f %+20.10f\n" L_.str.2: ## @.str.2 .asciz "atanh" .subsections_via_symbols
the_stack_data/57949326.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _RectPerimeter ; -- Begin function RectPerimeter .p2align 2 _RectPerimeter: ; @RectPerimeter .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #12] str w1, [sp, #8] ldr w8, [sp, #12] ldr w9, [sp, #8] add w8, w8, w9 lsl w0, w8, #1 add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov x9, sp sub x8, x29, #8 str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF str x0, [sp, #8] ; 8-byte Folded Spill bl _scanf adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf ldr x0, [sp, #8] ; 8-byte Folded Reload mov x9, sp sub x8, x29, #12 str x8, [x9] bl _scanf ldur w8, [x29, #-8] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB1_3 b LBB1_1 LBB1_1: ldur w8, [x29, #-12] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB1_3 b LBB1_2 LBB1_2: ldur w0, [x29, #-8] ldur w1, [x29, #-12] bl _RectPerimeter mov x9, sp ; implicit-def: $x8 mov x8, x0 str x8, [x9] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf b LBB1_4 LBB1_3: adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf b LBB1_4 LBB1_4: mov w0, #0 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "\nEnter Length: " l_.str.1: ; @.str.1 .asciz "%d" l_.str.2: ; @.str.2 .asciz "\nEnter Width: " l_.str.3: ; @.str.3 .asciz "\nThe perimeter of this rectangle is: %d \n \n" l_.str.4: ; @.str.4 .asciz "\nPlease enter valid length or width.\n \n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _RectPerimeter ## -- Begin function RectPerimeter .p2align 4, 0x90 _RectPerimeter: ## @RectPerimeter .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, -4(%rbp) movl %esi, -8(%rbp) movl -4(%rbp), %eax addl -8(%rbp), %eax shll $1, %eax popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) leaq L_.str(%rip), %rdi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi leaq -8(%rbp), %rsi movb $0, %al callq _scanf leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi leaq -12(%rbp), %rsi movb $0, %al callq _scanf cmpl $0, -8(%rbp) jle LBB1_3 ## %bb.1: cmpl $0, -12(%rbp) jle LBB1_3 ## %bb.2: movl -8(%rbp), %edi movl -12(%rbp), %esi callq _RectPerimeter movl %eax, %esi leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf jmp LBB1_4 LBB1_3: leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf LBB1_4: xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "\nEnter Length: " L_.str.1: ## @.str.1 .asciz "%d" L_.str.2: ## @.str.2 .asciz "\nEnter Width: " L_.str.3: ## @.str.3 .asciz "\nThe perimeter of this rectangle is: %d \n \n" L_.str.4: ## @.str.4 .asciz "\nPlease enter valid length or width.\n \n" .subsections_via_symbols
the_stack_data/1004311.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _LookupStringInFixedSet ; -- Begin function LookupStringInFixedSet .p2align 2 _LookupStringInFixedSet: ; @LookupStringInFixedSet .cfi_startproc ; %bb.0: sub sp, sp, #112 .cfi_def_cfa_offset 112 stp x29, x30, [sp, #96] ; 16-byte Folded Spill add x29, sp, #96 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-16] stur x1, [x29, #-24] stur x2, [x29, #-32] stur x3, [x29, #-40] ldur x8, [x29, #-16] str x8, [sp, #48] ldur x8, [x29, #-16] ldur x9, [x29, #-24] add x8, x8, x9 str x8, [sp, #40] ldr x8, [sp, #48] str x8, [sp, #32] ldur x8, [x29, #-32] ldur x9, [x29, #-40] add x8, x8, x9 str x8, [sp, #24] ; kill: def $x8 killed $xzr str xzr, [sp, #16] b LBB0_1 LBB0_1: ; =>This Loop Header: Depth=1 ; Child Loop BB0_7 Depth 2 ldr x1, [sp, #40] add x0, sp, #48 add x2, sp, #32 bl _GetNextOffset subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB0_25 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 str wzr, [sp, #12] ldur x8, [x29, #-32] ldr x9, [sp, #24] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_14 b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr x0, [sp, #32] ldr x1, [sp, #40] bl _IsEOL subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB0_14 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_1 Depth=1 ldr x0, [sp, #32] ldr x1, [sp, #40] ldur x2, [x29, #-32] ldr x3, [sp, #16] bl _IsMatch subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_1 Depth=1 b LBB0_1 LBB0_6: ; in Loop: Header=BB0_1 Depth=1 mov w8, #1 str w8, [sp, #12] add x0, sp, #32 sub x1, x29, #32 add x2, sp, #16 bl _NextPos b LBB0_7 LBB0_7: ; Parent Loop BB0_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr x0, [sp, #32] ldr x1, [sp, #40] bl _IsEOL subs w8, w0, #0 cset w8, ne mov w9, #0 str w9, [sp, #4] ; 4-byte Folded Spill tbnz w8, #0, LBB0_9 b LBB0_8 LBB0_8: ; in Loop: Header=BB0_7 Depth=2 ldur x8, [x29, #-32] ldr x9, [sp, #24] subs x8, x8, x9 cset w8, ne str w8, [sp, #4] ; 4-byte Folded Spill b LBB0_9 LBB0_9: ; in Loop: Header=BB0_7 Depth=2 ldr w8, [sp, #4] ; 4-byte Folded Reload tbz w8, #0, LBB0_13 b LBB0_10 LBB0_10: ; in Loop: Header=BB0_7 Depth=2 ldr x0, [sp, #32] ldr x1, [sp, #40] ldur x2, [x29, #-32] ldr x3, [sp, #16] bl _IsMatch subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB0_12 b LBB0_11 LBB0_11: mov w8, #-1 stur w8, [x29, #-4] b LBB0_26 LBB0_12: ; in Loop: Header=BB0_7 Depth=2 add x0, sp, #32 sub x1, x29, #32 add x2, sp, #16 bl _NextPos b LBB0_7 LBB0_13: ; in Loop: Header=BB0_1 Depth=1 b LBB0_14 LBB0_14: ; in Loop: Header=BB0_1 Depth=1 ldur x8, [x29, #-32] ldr x9, [sp, #24] subs x8, x8, x9 cset w8, ne tbnz w8, #0, LBB0_20 b LBB0_15 LBB0_15: ; in Loop: Header=BB0_1 Depth=1 ldr x0, [sp, #32] ldr x1, [sp, #40] ldr x2, [sp, #16] add x3, sp, #8 bl _GetReturnValue subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB0_17 b LBB0_16 LBB0_16: ldr w8, [sp, #8] stur w8, [x29, #-4] b LBB0_26 LBB0_17: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #12] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_19 b LBB0_18 LBB0_18: mov w8, #-1 stur w8, [x29, #-4] b LBB0_26 LBB0_19: ; in Loop: Header=BB0_1 Depth=1 b LBB0_1 LBB0_20: ; in Loop: Header=BB0_1 Depth=1 ldr x0, [sp, #32] ldr x1, [sp, #40] ldur x2, [x29, #-32] ldr x3, [sp, #16] bl _IsEndCharMatch subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB0_24 b LBB0_21 LBB0_21: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #12] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_23 b LBB0_22 LBB0_22: mov w8, #-1 stur w8, [x29, #-4] b LBB0_26 LBB0_23: ; in Loop: Header=BB0_1 Depth=1 b LBB0_1 LBB0_24: ; in Loop: Header=BB0_1 Depth=1 add x0, sp, #32 sub x1, x29, #32 add x2, sp, #16 bl _NextPos ldr x8, [sp, #32] str x8, [sp, #48] b LBB0_1 LBB0_25: mov w8, #-1 stur w8, [x29, #-4] b LBB0_26 LBB0_26: ldur w0, [x29, #-4] ldp x29, x30, [sp, #96] ; 16-byte Folded Reload add sp, sp, #112 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function GetNextOffset _GetNextOffset: ; @GetNextOffset .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 str x0, [sp, #32] str x1, [sp, #24] str x2, [sp, #16] ldr x8, [sp, #32] ldr x8, [x8] ldr x9, [sp, #24] subs x8, x8, x9 cset w8, ne tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: str wzr, [sp, #44] b LBB1_13 LBB1_2: ldr x8, [sp, #32] ldr x8, [x8] add x8, x8, #2 ldr x9, [sp, #24] subs x8, x8, x9 cset w8, lo tbnz w8, #0, LBB1_4 b LBB1_3 LBB1_3: str wzr, [sp, #44] b LBB1_13 LBB1_4: ldr x8, [sp, #32] ldr x8, [x8] ldrb w8, [x8] and w8, w8, #0x60 str w8, [sp, #4] ; 4-byte Folded Spill subs w8, w8, #64 cset w8, eq tbnz w8, #0, LBB1_7 b LBB1_5 LBB1_5: ldr w8, [sp, #4] ; 4-byte Folded Reload subs w8, w8, #96 cset w8, ne tbnz w8, #0, LBB1_8 b LBB1_6 LBB1_6: ldr x8, [sp, #32] ldr x8, [x8] ldrb w8, [x8] and w9, w8, #0x1f ldr x8, [sp, #32] ldr x8, [x8] ldrb w8, [x8, #1] lsl w8, w8, #8 orr w8, w8, w9, lsl #16 ldr x9, [sp, #32] ldr x9, [x9] ldrb w9, [x9, #2] orr w10, w8, w9 ldr x9, [sp, #16] ldr x8, [x9] add x8, x8, w10, sxtw str x8, [x9] mov x8, #3 str x8, [sp, #8] b LBB1_9 LBB1_7: ldr x8, [sp, #32] ldr x8, [x8] ldrb w8, [x8] and w9, w8, #0x1f ldr x8, [sp, #32] ldr x8, [x8] ldrb w8, [x8, #1] orr w10, w8, w9, lsl #8 ldr x9, [sp, #16] ldr x8, [x9] add x8, x8, w10, sxtw str x8, [x9] mov x8, #2 str x8, [sp, #8] b LBB1_9 LBB1_8: ldr x8, [sp, #32] ldr x8, [x8] ldrb w8, [x8] and w10, w8, #0x3f ldr x9, [sp, #16] ldr x8, [x9] add x8, x8, w10, sxtw str x8, [x9] mov x8, #1 str x8, [sp, #8] b LBB1_9 LBB1_9: ldr x8, [sp, #32] ldr x8, [x8] ldrb w8, [x8] ands w8, w8, #0x80 cset w8, eq tbnz w8, #0, LBB1_11 b LBB1_10 LBB1_10: ldr x8, [sp, #24] ldr x9, [sp, #32] str x8, [x9] b LBB1_12 LBB1_11: ldr x10, [sp, #8] ldr x9, [sp, #32] ldr x8, [x9] add x8, x8, x10 str x8, [x9] b LBB1_12 LBB1_12: mov w8, #1 str w8, [sp, #44] b LBB1_13 LBB1_13: ldr w0, [sp, #44] add sp, sp, #48 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function IsEOL _IsEOL: ; @IsEOL .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, #16] str x1, [sp, #8] ldr x8, [sp, #16] ldr x9, [sp, #8] subs x8, x8, x9 cset w8, lo tbnz w8, #0, LBB2_2 b LBB2_1 LBB2_1: str wzr, [sp, #28] b LBB2_3 LBB2_2: ldr x8, [sp, #16] ldrb w8, [x8] ands w8, w8, #0x80 cset w8, ne and w8, w8, #0x1 str w8, [sp, #28] b LBB2_3 LBB2_3: ldr w0, [sp, #28] add sp, sp, #32 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function IsMatch _IsMatch: ; @IsMatch .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-16] str x1, [sp, #24] str x2, [sp, #16] str x3, [sp, #8] ldur x8, [x29, #-16] ldr x9, [sp, #24] subs x8, x8, x9 cset w8, lo tbnz w8, #0, LBB3_2 b LBB3_1 LBB3_1: stur wzr, [x29, #-4] b LBB3_3 LBB3_2: ldur x8, [x29, #-16] ldrb w0, [x8] ldr x1, [sp, #16] ldr x2, [sp, #8] bl _IsMatchUnchecked stur w0, [x29, #-4] b LBB3_3 LBB3_3: ldur w0, [x29, #-4] ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function NextPos _NextPos: ; @NextPos .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] str x1, [sp, #16] str x2, [sp, #8] ldur x9, [x29, #-8] ldr x8, [x9] add x8, x8, #1 str x8, [x9] ldr x8, [sp, #8] ldr x8, [x8] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB4_4 b LBB4_1 LBB4_1: ldr x9, [sp, #16] ldr x8, [x9] add x8, x8, #1 str x8, [x9] ldr x8, [sp, #16] ldr x8, [x8] ldr x9, [sp, #8] ldr x9, [x9] subs x8, x8, x9 str x8, [sp] ; 8-byte Folded Spill ldr x8, [sp, #8] ldr x8, [x8] ldrsb w0, [x8] bl _GetMultibyteLength ldr x8, [sp] ; 8-byte Folded Reload subs x8, x8, w0, sxtw cset w8, ne tbnz w8, #0, LBB4_3 b LBB4_2 LBB4_2: ldr x8, [sp, #8] ; kill: def $x9 killed $xzr str xzr, [x8] b LBB4_3 LBB4_3: b LBB4_8 LBB4_4: ldr x8, [sp, #16] ldr x8, [x8] ldrsb w0, [x8] bl _GetMultibyteLength subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB4_6 b LBB4_5 LBB4_5: ldr x8, [sp, #16] ldr x8, [x8] ldr x9, [sp, #8] str x8, [x9] b LBB4_7 LBB4_6: ldr x9, [sp, #16] ldr x8, [x9] add x8, x8, #1 str x8, [x9] b LBB4_7 LBB4_7: b LBB4_8 LBB4_8: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function GetReturnValue _GetReturnValue: ; @GetReturnValue .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 str x0, [sp, #32] str x1, [sp, #24] str x2, [sp, #16] str x3, [sp, #8] ldr x8, [sp, #32] ldr x9, [sp, #24] subs x8, x8, x9 cset w8, lo tbnz w8, #0, LBB5_2 b LBB5_1 LBB5_1: str wzr, [sp, #44] b LBB5_6 LBB5_2: ldr x8, [sp, #16] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB5_5 b LBB5_3 LBB5_3: ldr x8, [sp, #32] ldrb w8, [x8] and w8, w8, #0xe0 subs w8, w8, #128 cset w8, ne tbnz w8, #0, LBB5_5 b LBB5_4 LBB5_4: ldr x8, [sp, #32] ldrb w8, [x8] and w8, w8, #0xf ldr x9, [sp, #8] str w8, [x9] mov w8, #1 str w8, [sp, #44] b LBB5_6 LBB5_5: str wzr, [sp, #44] b LBB5_6 LBB5_6: ldr w0, [sp, #44] add sp, sp, #48 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function IsEndCharMatch _IsEndCharMatch: ; @IsEndCharMatch .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-16] str x1, [sp, #24] str x2, [sp, #16] str x3, [sp, #8] ldur x8, [x29, #-16] ldr x9, [sp, #24] subs x8, x8, x9 cset w8, lo tbnz w8, #0, LBB6_2 b LBB6_1 LBB6_1: stur wzr, [x29, #-4] b LBB6_3 LBB6_2: ldur x8, [x29, #-16] ldrb w8, [x8] eor w8, w8, #0x80 ldr x1, [sp, #16] ldr x2, [sp, #8] and w0, w8, #0xff bl _IsMatchUnchecked stur w0, [x29, #-4] b LBB6_3 LBB6_3: ldur w0, [x29, #-4] ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _GetUtfMode ; -- Begin function GetUtfMode .p2align 2 _GetUtfMode: ; @GetUtfMode .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, #24] str x1, [sp, #16] ldr x8, [sp, #16] subs x8, x8, #0 cset w8, ls mov w9, #0 str w9, [sp, #12] ; 4-byte Folded Spill tbnz w8, #0, LBB7_2 b LBB7_1 LBB7_1: ldr x8, [sp, #24] ldr x9, [sp, #16] subs x9, x9, #1 ldrb w8, [x8, x9] subs w8, w8, #128 cset w8, lt str w8, [sp, #12] ; 4-byte Folded Spill b LBB7_2 LBB7_2: ldr w8, [sp, #12] ; 4-byte Folded Reload and w0, w8, #0x1 add sp, sp, #32 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function IsMatchUnchecked _IsMatchUnchecked: ; @IsMatchUnchecked .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 sturb w0, [x29, #-5] str x1, [sp, #16] str x2, [sp, #8] ldr x8, [sp, #8] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB8_4 b LBB8_1 LBB8_1: ldr x8, [sp, #8] ldr x9, [sp, #16] subs x8, x8, x9 cset w8, ne tbnz w8, #0, LBB8_3 b LBB8_2 LBB8_2: ldurb w8, [x29, #-5] eor w8, w8, #0x80 ldr x9, [sp, #16] ldrb w9, [x9] subs w8, w8, w9 cset w8, eq and w8, w8, #0x1 stur w8, [x29, #-4] b LBB8_7 LBB8_3: ldurb w8, [x29, #-5] eor w8, w8, #0xc0 ldr x9, [sp, #16] ldrb w9, [x9] subs w8, w8, w9 cset w8, eq and w8, w8, #0x1 stur w8, [x29, #-4] b LBB8_7 LBB8_4: ldr x8, [sp, #16] ldrsb w0, [x8] bl _GetMultibyteLength subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB8_6 b LBB8_5 LBB8_5: ldurb w8, [x29, #-5] subs w8, w8, #31 cset w8, eq and w8, w8, #0x1 stur w8, [x29, #-4] b LBB8_7 LBB8_6: ldurb w8, [x29, #-5] ldr x9, [sp, #16] ldrb w9, [x9] subs w8, w8, w9 cset w8, eq and w8, w8, #0x1 stur w8, [x29, #-4] b LBB8_7 LBB8_7: ldur w0, [x29, #-4] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function GetMultibyteLength _GetMultibyteLength: ; @GetMultibyteLength .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 strb w0, [sp, #15] ldrb w8, [sp, #15] asr w9, w8, #4 adrp x8, _multibyte_length_table@PAGE add x8, x8, _multibyte_length_table@PAGEOFF ldrsb w0, [x8, w9, sxtw] add sp, sp, #16 ret .cfi_endproc ; -- End function .section __TEXT,__const _multibyte_length_table: ; @multibyte_length_table .ascii "\000\000\000\000\000\000\000\000\000\000\000\000\002\002\003\004" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _LookupStringInFixedSet ## -- Begin function LookupStringInFixedSet .p2align 4, 0x90 _LookupStringInFixedSet: ## @LookupStringInFixedSet .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $96, %rsp movq %rdi, -16(%rbp) movq %rsi, -24(%rbp) movq %rdx, -32(%rbp) movq %rcx, -40(%rbp) movq -16(%rbp), %rax movq %rax, -48(%rbp) movq -16(%rbp), %rax addq -24(%rbp), %rax movq %rax, -56(%rbp) movq -48(%rbp), %rax movq %rax, -64(%rbp) movq -32(%rbp), %rax addq -40(%rbp), %rax movq %rax, -72(%rbp) movq $0, -80(%rbp) LBB0_1: ## =>This Loop Header: Depth=1 ## Child Loop BB0_7 Depth 2 movq -56(%rbp), %rsi leaq -48(%rbp), %rdi leaq -64(%rbp), %rdx callq _GetNextOffset cmpl $0, %eax je LBB0_25 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl $0, -84(%rbp) movq -32(%rbp), %rax cmpq -72(%rbp), %rax je LBB0_14 ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movq -64(%rbp), %rdi movq -56(%rbp), %rsi callq _IsEOL cmpl $0, %eax jne LBB0_14 ## %bb.4: ## in Loop: Header=BB0_1 Depth=1 movq -64(%rbp), %rdi movq -56(%rbp), %rsi movq -32(%rbp), %rdx movq -80(%rbp), %rcx callq _IsMatch cmpl $0, %eax jne LBB0_6 ## %bb.5: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_1 LBB0_6: ## in Loop: Header=BB0_1 Depth=1 movl $1, -84(%rbp) leaq -64(%rbp), %rdi leaq -32(%rbp), %rsi leaq -80(%rbp), %rdx callq _NextPos LBB0_7: ## Parent Loop BB0_1 Depth=1 ## => This Inner Loop Header: Depth=2 movq -64(%rbp), %rdi movq -56(%rbp), %rsi callq _IsEOL movl %eax, %ecx xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $0, %ecx movb %al, -89(%rbp) ## 1-byte Spill jne LBB0_9 ## %bb.8: ## in Loop: Header=BB0_7 Depth=2 movq -32(%rbp), %rax cmpq -72(%rbp), %rax setne %al movb %al, -89(%rbp) ## 1-byte Spill LBB0_9: ## in Loop: Header=BB0_7 Depth=2 movb -89(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB0_10 jmp LBB0_13 LBB0_10: ## in Loop: Header=BB0_7 Depth=2 movq -64(%rbp), %rdi movq -56(%rbp), %rsi movq -32(%rbp), %rdx movq -80(%rbp), %rcx callq _IsMatch cmpl $0, %eax jne LBB0_12 ## %bb.11: movl $-1, -4(%rbp) jmp LBB0_26 LBB0_12: ## in Loop: Header=BB0_7 Depth=2 leaq -64(%rbp), %rdi leaq -32(%rbp), %rsi leaq -80(%rbp), %rdx callq _NextPos jmp LBB0_7 LBB0_13: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_14 LBB0_14: ## in Loop: Header=BB0_1 Depth=1 movq -32(%rbp), %rax cmpq -72(%rbp), %rax jne LBB0_20 ## %bb.15: ## in Loop: Header=BB0_1 Depth=1 movq -64(%rbp), %rdi movq -56(%rbp), %rsi movq -80(%rbp), %rdx leaq -88(%rbp), %rcx callq _GetReturnValue cmpl $0, %eax je LBB0_17 ## %bb.16: movl -88(%rbp), %eax movl %eax, -4(%rbp) jmp LBB0_26 LBB0_17: ## in Loop: Header=BB0_1 Depth=1 cmpl $0, -84(%rbp) je LBB0_19 ## %bb.18: movl $-1, -4(%rbp) jmp LBB0_26 LBB0_19: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_1 LBB0_20: ## in Loop: Header=BB0_1 Depth=1 movq -64(%rbp), %rdi movq -56(%rbp), %rsi movq -32(%rbp), %rdx movq -80(%rbp), %rcx callq _IsEndCharMatch cmpl $0, %eax jne LBB0_24 ## %bb.21: ## in Loop: Header=BB0_1 Depth=1 cmpl $0, -84(%rbp) je LBB0_23 ## %bb.22: movl $-1, -4(%rbp) jmp LBB0_26 LBB0_23: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_1 LBB0_24: ## in Loop: Header=BB0_1 Depth=1 leaq -64(%rbp), %rdi leaq -32(%rbp), %rsi leaq -80(%rbp), %rdx callq _NextPos movq -64(%rbp), %rax movq %rax, -48(%rbp) jmp LBB0_1 LBB0_25: movl $-1, -4(%rbp) LBB0_26: movl -4(%rbp), %eax addq $96, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function GetNextOffset _GetNextOffset: ## @GetNextOffset .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -16(%rbp) movq %rsi, -24(%rbp) movq %rdx, -32(%rbp) movq -16(%rbp), %rax movq (%rax), %rax cmpq -24(%rbp), %rax jne LBB1_2 ## %bb.1: movl $0, -4(%rbp) jmp LBB1_12 LBB1_2: movq -16(%rbp), %rax movq (%rax), %rax addq $2, %rax cmpq -24(%rbp), %rax jb LBB1_4 ## %bb.3: movl $0, -4(%rbp) jmp LBB1_12 LBB1_4: movq -16(%rbp), %rax movq (%rax), %rax movzbl (%rax), %eax andl $96, %eax movl %eax, -44(%rbp) ## 4-byte Spill subl $64, %eax je LBB1_6 jmp LBB1_13 LBB1_13: movl -44(%rbp), %eax ## 4-byte Reload subl $96, %eax jne LBB1_7 jmp LBB1_5 LBB1_5: movq -16(%rbp), %rax movq (%rax), %rax movzbl (%rax), %edx andl $31, %edx shll $16, %edx movq -16(%rbp), %rax movq (%rax), %rax movzbl 1(%rax), %eax shll $8, %eax orl %eax, %edx movq -16(%rbp), %rax movq (%rax), %rax movzbl 2(%rax), %eax orl %eax, %edx movq -32(%rbp), %rax movq (%rax), %rcx movslq %edx, %rdx addq %rdx, %rcx movq %rcx, (%rax) movq $3, -40(%rbp) jmp LBB1_8 LBB1_6: movq -16(%rbp), %rax movq (%rax), %rax movzbl (%rax), %edx andl $31, %edx shll $8, %edx movq -16(%rbp), %rax movq (%rax), %rax movzbl 1(%rax), %eax orl %eax, %edx movq -32(%rbp), %rax movq (%rax), %rcx movslq %edx, %rdx addq %rdx, %rcx movq %rcx, (%rax) movq $2, -40(%rbp) jmp LBB1_8 LBB1_7: movq -16(%rbp), %rax movq (%rax), %rax movzbl (%rax), %edx andl $63, %edx movq -32(%rbp), %rax movq (%rax), %rcx movslq %edx, %rdx addq %rdx, %rcx movq %rcx, (%rax) movq $1, -40(%rbp) LBB1_8: movq -16(%rbp), %rax movq (%rax), %rax movzbl (%rax), %eax andl $128, %eax cmpl $0, %eax je LBB1_10 ## %bb.9: movq -24(%rbp), %rcx movq -16(%rbp), %rax movq %rcx, (%rax) jmp LBB1_11 LBB1_10: movq -40(%rbp), %rcx movq -16(%rbp), %rax addq (%rax), %rcx movq %rcx, (%rax) LBB1_11: movl $1, -4(%rbp) LBB1_12: movl -4(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function IsEOL _IsEOL: ## @IsEOL .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -16(%rbp) movq %rsi, -24(%rbp) movq -16(%rbp), %rax cmpq -24(%rbp), %rax jb LBB2_2 ## %bb.1: movl $0, -4(%rbp) jmp LBB2_3 LBB2_2: movq -16(%rbp), %rax movzbl (%rax), %eax andl $128, %eax cmpl $0, %eax setne %al andb $1, %al movzbl %al, %eax movl %eax, -4(%rbp) LBB2_3: movl -4(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function IsMatch _IsMatch: ## @IsMatch .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movq %rdi, -16(%rbp) movq %rsi, -24(%rbp) movq %rdx, -32(%rbp) movq %rcx, -40(%rbp) movq -16(%rbp), %rax cmpq -24(%rbp), %rax jb LBB3_2 ## %bb.1: movl $0, -4(%rbp) jmp LBB3_3 LBB3_2: movq -16(%rbp), %rax movb (%rax), %al movq -32(%rbp), %rsi movq -40(%rbp), %rdx movzbl %al, %edi callq _IsMatchUnchecked movl %eax, -4(%rbp) LBB3_3: movl -4(%rbp), %eax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function NextPos _NextPos: ## @NextPos .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) movq %rdx, -24(%rbp) movq -8(%rbp), %rax movq (%rax), %rcx addq $1, %rcx movq %rcx, (%rax) movq -24(%rbp), %rax cmpq $0, (%rax) je LBB4_4 ## %bb.1: movq -16(%rbp), %rax movq (%rax), %rcx addq $1, %rcx movq %rcx, (%rax) movq -16(%rbp), %rax movq (%rax), %rax movq -24(%rbp), %rcx movq (%rcx), %rcx subq %rcx, %rax movq %rax, -32(%rbp) ## 8-byte Spill movq -24(%rbp), %rax movq (%rax), %rax movsbl (%rax), %edi callq _GetMultibyteLength movl %eax, %ecx movq -32(%rbp), %rax ## 8-byte Reload movslq %ecx, %rcx cmpq %rcx, %rax jne LBB4_3 ## %bb.2: movq -24(%rbp), %rax movq $0, (%rax) LBB4_3: jmp LBB4_8 LBB4_4: movq -16(%rbp), %rax movq (%rax), %rax movsbl (%rax), %edi callq _GetMultibyteLength cmpl $0, %eax je LBB4_6 ## %bb.5: movq -16(%rbp), %rax movq (%rax), %rcx movq -24(%rbp), %rax movq %rcx, (%rax) jmp LBB4_7 LBB4_6: movq -16(%rbp), %rax movq (%rax), %rcx addq $1, %rcx movq %rcx, (%rax) LBB4_7: jmp LBB4_8 LBB4_8: addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function GetReturnValue _GetReturnValue: ## @GetReturnValue .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -16(%rbp) movq %rsi, -24(%rbp) movq %rdx, -32(%rbp) movq %rcx, -40(%rbp) movq -16(%rbp), %rax cmpq -24(%rbp), %rax jb LBB5_2 ## %bb.1: movl $0, -4(%rbp) jmp LBB5_6 LBB5_2: cmpq $0, -32(%rbp) jne LBB5_5 ## %bb.3: movq -16(%rbp), %rax movzbl (%rax), %eax andl $224, %eax cmpl $128, %eax jne LBB5_5 ## %bb.4: movq -16(%rbp), %rax movzbl (%rax), %ecx andl $15, %ecx movq -40(%rbp), %rax movl %ecx, (%rax) movl $1, -4(%rbp) jmp LBB5_6 LBB5_5: movl $0, -4(%rbp) LBB5_6: movl -4(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function IsEndCharMatch _IsEndCharMatch: ## @IsEndCharMatch .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movq %rdi, -16(%rbp) movq %rsi, -24(%rbp) movq %rdx, -32(%rbp) movq %rcx, -40(%rbp) movq -16(%rbp), %rax cmpq -24(%rbp), %rax jb LBB6_2 ## %bb.1: movl $0, -4(%rbp) jmp LBB6_3 LBB6_2: movq -16(%rbp), %rax movzbl (%rax), %eax xorl $128, %eax ## kill: def $al killed $al killed $eax movq -32(%rbp), %rsi movq -40(%rbp), %rdx movzbl %al, %edi callq _IsMatchUnchecked movl %eax, -4(%rbp) LBB6_3: movl -4(%rbp), %eax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _GetUtfMode ## -- Begin function GetUtfMode .p2align 4, 0x90 _GetUtfMode: ## @GetUtfMode .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) xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpq $0, -16(%rbp) movb %al, -17(%rbp) ## 1-byte Spill jbe LBB7_2 ## %bb.1: movq -8(%rbp), %rax movq -16(%rbp), %rcx subq $1, %rcx movzbl (%rax,%rcx), %eax cmpl $128, %eax setl %al movb %al, -17(%rbp) ## 1-byte Spill LBB7_2: movb -17(%rbp), %al ## 1-byte Reload andb $1, %al movzbl %al, %eax popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function IsMatchUnchecked _IsMatchUnchecked: ## @IsMatchUnchecked .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movb %dil, %al movb %al, -5(%rbp) movq %rsi, -16(%rbp) movq %rdx, -24(%rbp) cmpq $0, -24(%rbp) je LBB8_4 ## %bb.1: movq -24(%rbp), %rax cmpq -16(%rbp), %rax jne LBB8_3 ## %bb.2: movzbl -5(%rbp), %eax xorl $128, %eax movq -16(%rbp), %rcx movzbl (%rcx), %ecx cmpl %ecx, %eax sete %al andb $1, %al movzbl %al, %eax movl %eax, -4(%rbp) jmp LBB8_7 LBB8_3: movzbl -5(%rbp), %eax xorl $192, %eax movq -16(%rbp), %rcx movzbl (%rcx), %ecx cmpl %ecx, %eax sete %al andb $1, %al movzbl %al, %eax movl %eax, -4(%rbp) jmp LBB8_7 LBB8_4: movq -16(%rbp), %rax movsbl (%rax), %edi callq _GetMultibyteLength cmpl $0, %eax je LBB8_6 ## %bb.5: movzbl -5(%rbp), %eax cmpl $31, %eax sete %al andb $1, %al movzbl %al, %eax movl %eax, -4(%rbp) jmp LBB8_7 LBB8_6: movzbl -5(%rbp), %eax movq -16(%rbp), %rcx movzbl (%rcx), %ecx cmpl %ecx, %eax sete %al andb $1, %al movzbl %al, %eax movl %eax, -4(%rbp) LBB8_7: movl -4(%rbp), %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function GetMultibyteLength _GetMultibyteLength: ## @GetMultibyteLength .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movb %dil, %al movb %al, -1(%rbp) movzbl -1(%rbp), %eax sarl $4, %eax movslq %eax, %rcx leaq _multibyte_length_table(%rip), %rax movsbl (%rax,%rcx), %eax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__const .p2align 4 ## @multibyte_length_table _multibyte_length_table: .ascii "\000\000\000\000\000\000\000\000\000\000\000\000\002\002\003\004" .subsections_via_symbols
the_stack_data/68886546.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill .cfi_def_cfa_offset 16 mov x29, sp .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 sub sp, sp, #80 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] stur wzr, [x29, #-12] stur wzr, [x29, #-20] stur wzr, [x29, #-24] sub sp, sp, #16 mov x9, sp sub x8, x29, #16 str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _scanf add sp, sp, #16 ldur w8, [x29, #-16] ; kill: def $x8 killed $w8 mov x9, sp stur x9, [x29, #-32] lsl x9, x8, #2 add x9, x9, #15 and x9, x9, #0xfffffffffffffff0 stur x9, [x29, #-64] ; 8-byte Folded Spill adrp x16, ___chkstk_darwin@GOTPAGE ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF] blr x16 ldur x10, [x29, #-64] ; 8-byte Folded Reload mov x9, sp subs x9, x9, x10 mov sp, x9 stur x9, [x29, #-56] ; 8-byte Folded Spill stur x8, [x29, #-40] stur wzr, [x29, #-44] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-44] ldur w9, [x29, #-16] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_4 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldur x8, [x29, #-56] ; 8-byte Folded Reload ldursw x9, [x29, #-44] add x8, x8, x9, lsl #2 sub sp, sp, #16 mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _scanf add sp, sp, #16 b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-44] add w8, w8, #1 stur w8, [x29, #-44] b LBB0_1 LBB0_4: stur wzr, [x29, #-48] b LBB0_5 LBB0_5: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-48] ldur w9, [x29, #-16] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_12 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_5 Depth=1 ldur x8, [x29, #-56] ; 8-byte Folded Reload ldursw x9, [x29, #-48] ldr w8, [x8, x9, lsl #2] subs w8, w8, #10 cset w8, lt tbnz w8, #0, LBB0_9 b LBB0_7 LBB0_7: ; in Loop: Header=BB0_5 Depth=1 ldur x8, [x29, #-56] ; 8-byte Folded Reload ldursw x9, [x29, #-48] ldr w8, [x8, x9, lsl #2] subs w8, w8, #20 cset w8, gt tbnz w8, #0, LBB0_9 b LBB0_8 LBB0_8: ; in Loop: Header=BB0_5 Depth=1 ldur w8, [x29, #-20] add w8, w8, #1 stur w8, [x29, #-20] b LBB0_10 LBB0_9: ; in Loop: Header=BB0_5 Depth=1 ldur w8, [x29, #-24] add w8, w8, #1 stur w8, [x29, #-24] b LBB0_10 LBB0_10: ; in Loop: Header=BB0_5 Depth=1 b LBB0_11 LBB0_11: ; in Loop: Header=BB0_5 Depth=1 ldur w8, [x29, #-48] add w8, w8, #1 stur w8, [x29, #-48] b LBB0_5 LBB0_12: ldur w9, [x29, #-20] ; implicit-def: $x8 mov x8, x9 sub sp, sp, #16 mov x9, sp str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf add sp, sp, #16 ldur w9, [x29, #-24] ; implicit-def: $x8 mov x8, x9 sub sp, sp, #16 mov x9, sp str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf add sp, sp, #16 stur wzr, [x29, #-12] ldur x8, [x29, #-32] mov sp, x8 ldur w8, [x29, #-12] stur w8, [x29, #-68] ; 4-byte Folded Spill ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_14 b LBB0_13 LBB0_13: bl ___stack_chk_fail LBB0_14: ldur w0, [x29, #-68] ; 4-byte Folded Reload mov sp, x29 ldp x29, x30, [sp], #16 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d" l_.str.1: ; @.str.1 .asciz "%d in\n" l_.str.2: ; @.str.2 .asciz "%d out\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $80, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -12(%rbp) movl $0, -20(%rbp) movl $0, -24(%rbp) leaq L_.str(%rip), %rdi xorl %eax, %eax ## kill: def $al killed $al killed $eax leaq -16(%rbp), %rsi callq _scanf movl -16(%rbp), %eax ## kill: def $rax killed $eax movq %rax, -64(%rbp) ## 8-byte Spill movq %rsp, %rcx movq %rcx, -32(%rbp) shlq $2, %rax callq ____chkstk_darwin addq $15, %rax andq $-16, %rax subq %rax, %rsp movq -64(%rbp), %rax ## 8-byte Reload movq %rsp, %rcx movq %rcx, -56(%rbp) ## 8-byte Spill movq %rax, -40(%rbp) movl $0, -44(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movl -44(%rbp), %eax cmpl -16(%rbp), %eax jge LBB0_4 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movq -56(%rbp), %rsi ## 8-byte Reload movslq -44(%rbp), %rax shlq $2, %rax addq %rax, %rsi leaq L_.str(%rip), %rdi movb $0, %al callq _scanf ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movl -44(%rbp), %eax addl $1, %eax movl %eax, -44(%rbp) jmp LBB0_1 LBB0_4: movl $0, -48(%rbp) LBB0_5: ## =>This Inner Loop Header: Depth=1 movl -48(%rbp), %eax cmpl -16(%rbp), %eax jge LBB0_12 ## %bb.6: ## in Loop: Header=BB0_5 Depth=1 movq -56(%rbp), %rax ## 8-byte Reload movslq -48(%rbp), %rcx cmpl $10, (%rax,%rcx,4) jl LBB0_9 ## %bb.7: ## in Loop: Header=BB0_5 Depth=1 movq -56(%rbp), %rax ## 8-byte Reload movslq -48(%rbp), %rcx cmpl $20, (%rax,%rcx,4) jg LBB0_9 ## %bb.8: ## in Loop: Header=BB0_5 Depth=1 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB0_10 LBB0_9: ## in Loop: Header=BB0_5 Depth=1 movl -24(%rbp), %eax addl $1, %eax movl %eax, -24(%rbp) LBB0_10: ## in Loop: Header=BB0_5 Depth=1 jmp LBB0_11 LBB0_11: ## in Loop: Header=BB0_5 Depth=1 movl -48(%rbp), %eax addl $1, %eax movl %eax, -48(%rbp) jmp LBB0_5 LBB0_12: movl -20(%rbp), %esi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf movl -24(%rbp), %esi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf movl $0, -12(%rbp) movq -32(%rbp), %rax movq %rax, %rsp movl -12(%rbp), %eax movl %eax, -68(%rbp) ## 4-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_14 ## %bb.13: movl -68(%rbp), %eax ## 4-byte Reload movq %rbp, %rsp popq %rbp retq LBB0_14: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d" L_.str.1: ## @.str.1 .asciz "%d in\n" L_.str.2: ## @.str.2 .asciz "%d out\n" .subsections_via_symbols
the_stack_data/72012199.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _insert ; -- Begin function insert .p2align 2 _insert: ; @insert .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, _front@PAGE ldr w8, [x8, _front@PAGEOFF] adrp x9, _rear@PAGE ldr w9, [x9, _rear@PAGEOFF] add w9, w9, #1 mov w11, #6 sdiv w10, w9, w11 mul w10, w10, w11 subs w9, w9, w10 subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf b LBB0_3 LBB0_2: adrp x9, _rear@PAGE str x9, [sp, #16] ; 8-byte Folded Spill ldr w8, [x9, _rear@PAGEOFF] add w8, w8, #1 mov w11, #6 sdiv w10, w8, w11 mul w10, w10, w11 subs w8, w8, w10 str w8, [x9, _rear@PAGEOFF] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf adrp x8, ___stdinp@GOTPAGE ldr x8, [x8, ___stdinp@GOTPAGEOFF] ldr x0, [x8] bl _fflush mov x9, sp sub x8, x29, #1 str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _scanf ldr x9, [sp, #16] ; 8-byte Folded Reload ldurb w8, [x29, #-1] ldrsw x10, [x9, _rear@PAGEOFF] adrp x9, _q@GOTPAGE ldr x9, [x9, _q@GOTPAGEOFF] add x9, x9, x10 strb w8, [x9] b LBB0_3 LBB0_3: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _delete ; -- Begin function delete .p2align 2 _delete: ; @delete .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, _front@PAGE ldr w8, [x8, _front@PAGEOFF] adrp x9, _rear@PAGE ldr w9, [x9, _rear@PAGEOFF] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf b LBB1_3 LBB1_2: adrp x8, _front@PAGE ldr w9, [x8, _front@PAGEOFF] add w9, w9, #1 mov w11, #6 sdiv w10, w9, w11 mul w10, w10, w11 subs w9, w9, w10 str w9, [x8, _front@PAGEOFF] ldrsw x9, [x8, _front@PAGEOFF] adrp x8, _q@GOTPAGE ldr x8, [x8, _q@GOTPAGEOFF] ldrsb w10, [x8, x9] mov x9, sp ; implicit-def: $x8 mov x8, x10 str x8, [x9] adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf b LBB1_3 LBB1_3: 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, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, _front@PAGE ldr w8, [x8, _front@PAGEOFF] adrp x9, _rear@PAGE ldr w9, [x9, _rear@PAGEOFF] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB2_2 b LBB2_1 LBB2_1: adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf b LBB2_7 LBB2_2: adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _printf adrp x8, _front@PAGE ldr w8, [x8, _front@PAGEOFF] add w8, w8, #1 mov w10, #6 sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 stur w8, [x29, #-4] b LBB2_3 LBB2_3: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-4] adrp x9, _rear@PAGE ldr w9, [x9, _rear@PAGEOFF] subs w8, w8, w9 cset w8, eq tbnz w8, #0, LBB2_6 b LBB2_4 LBB2_4: ; in Loop: Header=BB2_3 Depth=1 ldursw x9, [x29, #-4] adrp x8, _q@GOTPAGE ldr x8, [x8, _q@GOTPAGEOFF] ldrsb w10, [x8, x9] mov x9, sp ; implicit-def: $x8 mov x8, x10 str x8, [x9] adrp x0, l_.str.7@PAGE add x0, x0, l_.str.7@PAGEOFF bl _printf b LBB2_5 LBB2_5: ; in Loop: Header=BB2_3 Depth=1 ldur w8, [x29, #-4] add w8, w8, #1 mov w10, #6 sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 stur w8, [x29, #-4] b LBB2_3 LBB2_6: ldursw x9, [x29, #-4] adrp x8, _q@GOTPAGE ldr x8, [x8, _q@GOTPAGEOFF] ldrsb w10, [x8, x9] mov x9, sp ; implicit-def: $x8 mov x8, x10 str x8, [x9] adrp x0, l_.str.7@PAGE add x0, x0, l_.str.7@PAGEOFF bl _printf b LBB2_7 LBB2_7: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #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 b LBB3_1 LBB3_1: ; =>This Inner Loop Header: Depth=1 adrp x0, l_.str.8@PAGE add x0, x0, l_.str.8@PAGEOFF bl _printf adrp x0, l_.str.9@PAGE add x0, x0, l_.str.9@PAGEOFF bl _printf adrp x0, l_.str.10@PAGE add x0, x0, l_.str.10@PAGEOFF bl _printf mov x9, sp sub x8, x29, #4 str x8, [x9] adrp x0, l_.str.11@PAGE add x0, x0, l_.str.11@PAGEOFF bl _scanf ldur w8, [x29, #-4] subs w8, w8, #1 ; kill: def $x8 killed $w8 str x8, [sp, #16] ; 8-byte Folded Spill subs x8, x8, #3 cset w8, hi tbnz w8, #0, LBB3_7 ; %bb.2: ; in Loop: Header=BB3_1 Depth=1 ldr x11, [sp, #16] ; 8-byte Folded Reload adrp x10, lJTI3_0@PAGE add x10, x10, lJTI3_0@PAGEOFF Ltmp0: adr x8, Ltmp0 ldrsw x9, [x10, x11, lsl #2] add x8, x8, x9 br x8 LBB3_3: ; in Loop: Header=BB3_1 Depth=1 bl _insert b LBB3_8 LBB3_4: ; in Loop: Header=BB3_1 Depth=1 bl _delete b LBB3_8 LBB3_5: ; in Loop: Header=BB3_1 Depth=1 bl _display b LBB3_8 LBB3_6: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret LBB3_7: ; in Loop: Header=BB3_1 Depth=1 adrp x0, l_.str.12@PAGE add x0, x0, l_.str.12@PAGEOFF bl _printf b LBB3_8 LBB3_8: ; in Loop: Header=BB3_1 Depth=1 b LBB3_1 .cfi_endproc .p2align 2 lJTI3_0: .long LBB3_3-Ltmp0 .long LBB3_4-Ltmp0 .long LBB3_5-Ltmp0 .long LBB3_6-Ltmp0 ; -- End function .globl _front ; @front .zerofill __DATA,__common,_front,4,2 .globl _rear ; @rear .zerofill __DATA,__common,_rear,4,2 .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "\n Circular Queue Overflow\n" l_.str.1: ; @.str.1 .asciz "\n Enter the character to be inserted: " l_.str.2: ; @.str.2 .asciz "%c" .comm _q,6,0 ; @q l_.str.3: ; @.str.3 .asciz "\n Circular Queue Underflow\n" l_.str.4: ; @.str.4 .asciz "\n Deleted character is: %c " l_.str.5: ; @.str.5 .asciz "\nCircular Queue is Empty\n" l_.str.6: ; @.str.6 .asciz "\n Contents of Queue is:\n" l_.str.7: ; @.str.7 .asciz "%c\t" l_.str.8: ; @.str.8 .asciz "\n CIRCULAR QUEUE OPERATIONS" l_.str.9: ; @.str.9 .asciz "\n Enter the choice" l_.str.10: ; @.str.10 .asciz "\n 1.Insert\n 2.Delete\n 3.Display\n 4.Exit\n" l_.str.11: ; @.str.11 .asciz "%d" l_.str.12: ; @.str.12 .asciz "\n Invalid Choice \n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _insert ## -- Begin function insert .p2align 4, 0x90 _insert: ## @insert .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl _front(%rip), %eax movl %eax, -8(%rbp) ## 4-byte Spill movl _rear(%rip), %eax addl $1, %eax movl $6, %ecx cltd idivl %ecx movl -8(%rbp), %eax ## 4-byte Reload cmpl %edx, %eax jne LBB0_2 ## %bb.1: leaq L_.str(%rip), %rdi movb $0, %al callq _printf jmp LBB0_3 LBB0_2: movl _rear(%rip), %eax addl $1, %eax movl $6, %ecx cltd idivl %ecx movl %edx, _rear(%rip) leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf movq ___stdinp@GOTPCREL(%rip), %rax movq (%rax), %rdi callq _fflush leaq L_.str.2(%rip), %rdi leaq -1(%rbp), %rsi movb $0, %al callq _scanf movb -1(%rbp), %dl movslq _rear(%rip), %rcx movq _q@GOTPCREL(%rip), %rax movb %dl, (%rax,%rcx) LBB0_3: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _delete ## -- Begin function delete .p2align 4, 0x90 _delete: ## @delete .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl _front(%rip), %eax cmpl _rear(%rip), %eax jne LBB1_2 ## %bb.1: leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf jmp LBB1_3 LBB1_2: movl _front(%rip), %eax addl $1, %eax movl $6, %ecx cltd idivl %ecx movl %edx, _front(%rip) movslq _front(%rip), %rcx movq _q@GOTPCREL(%rip), %rax movsbl (%rax,%rcx), %esi leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf LBB1_3: 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 movl _front(%rip), %eax cmpl _rear(%rip), %eax jne LBB2_2 ## %bb.1: leaq L_.str.5(%rip), %rdi movb $0, %al callq _printf jmp LBB2_7 LBB2_2: leaq L_.str.6(%rip), %rdi movb $0, %al callq _printf movl _front(%rip), %eax addl $1, %eax movl $6, %ecx cltd idivl %ecx movl %edx, -4(%rbp) LBB2_3: ## =>This Inner Loop Header: Depth=1 movl -4(%rbp), %eax cmpl _rear(%rip), %eax je LBB2_6 ## %bb.4: ## in Loop: Header=BB2_3 Depth=1 movslq -4(%rbp), %rcx movq _q@GOTPCREL(%rip), %rax movsbl (%rax,%rcx), %esi leaq L_.str.7(%rip), %rdi movb $0, %al callq _printf ## %bb.5: ## in Loop: Header=BB2_3 Depth=1 movl -4(%rbp), %eax addl $1, %eax movl $6, %ecx cltd idivl %ecx movl %edx, -4(%rbp) jmp LBB2_3 LBB2_6: movslq -4(%rbp), %rcx movq _q@GOTPCREL(%rip), %rax movsbl (%rax,%rcx), %esi leaq L_.str.7(%rip), %rdi movb $0, %al callq _printf LBB2_7: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp LBB3_1: ## =>This Inner Loop Header: Depth=1 leaq L_.str.8(%rip), %rdi xorl %eax, %eax ## kill: def $al killed $al killed $eax movb %al, -17(%rbp) ## 1-byte Spill callq _printf ## kill: def $ecx killed $eax movb -17(%rbp), %al ## 1-byte Reload leaq L_.str.9(%rip), %rdi callq _printf ## kill: def $ecx killed $eax movb -17(%rbp), %al ## 1-byte Reload leaq L_.str.10(%rip), %rdi callq _printf ## kill: def $ecx killed $eax movb -17(%rbp), %al ## 1-byte Reload leaq L_.str.11(%rip), %rdi leaq -4(%rbp), %rsi callq _scanf movl -4(%rbp), %eax decl %eax movl %eax, %ecx movq %rcx, -16(%rbp) ## 8-byte Spill subl $3, %eax ja LBB3_6 ## %bb.8: ## in Loop: Header=BB3_1 Depth=1 movq -16(%rbp), %rax ## 8-byte Reload leaq LJTI3_0(%rip), %rcx movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax LBB3_2: ## in Loop: Header=BB3_1 Depth=1 callq _insert jmp LBB3_7 LBB3_3: ## in Loop: Header=BB3_1 Depth=1 callq _delete jmp LBB3_7 LBB3_4: ## in Loop: Header=BB3_1 Depth=1 callq _display jmp LBB3_7 LBB3_5: addq $32, %rsp popq %rbp retq LBB3_6: ## in Loop: Header=BB3_1 Depth=1 leaq L_.str.12(%rip), %rdi movb $0, %al callq _printf LBB3_7: ## in Loop: Header=BB3_1 Depth=1 jmp LBB3_1 .cfi_endproc .p2align 2, 0x90 .data_region jt32 .set L3_0_set_2, LBB3_2-LJTI3_0 .set L3_0_set_3, LBB3_3-LJTI3_0 .set L3_0_set_4, LBB3_4-LJTI3_0 .set L3_0_set_5, LBB3_5-LJTI3_0 LJTI3_0: .long L3_0_set_2 .long L3_0_set_3 .long L3_0_set_4 .long L3_0_set_5 .end_data_region ## -- End function .globl _front ## @front .zerofill __DATA,__common,_front,4,2 .globl _rear ## @rear .zerofill __DATA,__common,_rear,4,2 .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "\n Circular Queue Overflow\n" L_.str.1: ## @.str.1 .asciz "\n Enter the character to be inserted: " L_.str.2: ## @.str.2 .asciz "%c" .comm _q,6,0 ## @q L_.str.3: ## @.str.3 .asciz "\n Circular Queue Underflow\n" L_.str.4: ## @.str.4 .asciz "\n Deleted character is: %c " L_.str.5: ## @.str.5 .asciz "\nCircular Queue is Empty\n" L_.str.6: ## @.str.6 .asciz "\n Contents of Queue is:\n" L_.str.7: ## @.str.7 .asciz "%c\t" L_.str.8: ## @.str.8 .asciz "\n CIRCULAR QUEUE OPERATIONS" L_.str.9: ## @.str.9 .asciz "\n Enter the choice" L_.str.10: ## @.str.10 .asciz "\n 1.Insert\n 2.Delete\n 3.Display\n 4.Exit\n" L_.str.11: ## @.str.11 .asciz "%d" L_.str.12: ## @.str.12 .asciz "\n Invalid Choice \n" .subsections_via_symbols
the_stack_data/1005099.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _shellSort ; -- Begin function shellSort .p2align 2 _shellSort: ; @shellSort .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, #24] str w1, [sp, #20] ldr w8, [sp, #20] mov w9, #2 sdiv w8, w8, w9 str w8, [sp, #16] b LBB0_1 LBB0_1: ; =>This Loop Header: Depth=1 ; Child Loop BB0_3 Depth 2 ; Child Loop BB0_5 Depth 3 ldr w8, [sp, #16] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB0_16 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #16] str w8, [sp, #12] b LBB0_3 LBB0_3: ; Parent Loop BB0_1 Depth=1 ; => This Loop Header: Depth=2 ; Child Loop BB0_5 Depth 3 ldr w8, [sp, #12] ldr w9, [sp, #20] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_14 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_3 Depth=2 ldr x8, [sp, #24] ldrsw x9, [sp, #12] ldr w8, [x8, x9, lsl #2] str w8, [sp, #8] ldr w8, [sp, #12] ldr w9, [sp, #16] subs w8, w8, w9 str w8, [sp, #4] b LBB0_5 LBB0_5: ; Parent Loop BB0_1 Depth=1 ; Parent Loop BB0_3 Depth=2 ; => This Inner Loop Header: Depth=3 ldr w8, [sp, #4] subs w8, w8, #0 cset w8, lt mov w9, #0 str w9, [sp] ; 4-byte Folded Spill tbnz w8, #0, LBB0_7 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_5 Depth=3 ldr w8, [sp, #8] ldr x9, [sp, #24] ldrsw x10, [sp, #4] ldr w9, [x9, x10, lsl #2] subs w8, w8, w9 cset w8, lt str w8, [sp] ; 4-byte Folded Spill b LBB0_7 LBB0_7: ; in Loop: Header=BB0_5 Depth=3 ldr w8, [sp] ; 4-byte Folded Reload tbz w8, #0, LBB0_10 b LBB0_8 LBB0_8: ; in Loop: Header=BB0_5 Depth=3 ldr x8, [sp, #24] ldrsw x9, [sp, #4] ldr w8, [x8, x9, lsl #2] ldr x9, [sp, #24] ldr w10, [sp, #4] ldr w11, [sp, #16] add w10, w10, w11 str w8, [x9, w10, sxtw #2] b LBB0_9 LBB0_9: ; in Loop: Header=BB0_5 Depth=3 ldr w9, [sp, #16] ldr w8, [sp, #4] subs w8, w8, w9 str w8, [sp, #4] b LBB0_5 LBB0_10: ; in Loop: Header=BB0_3 Depth=2 ldr w8, [sp, #4] ldr w9, [sp, #12] ldr w10, [sp, #16] subs w9, w9, w10 subs w8, w8, w9 cset w8, eq tbnz w8, #0, LBB0_12 b LBB0_11 LBB0_11: ; in Loop: Header=BB0_3 Depth=2 ldr w8, [sp, #8] ldr x9, [sp, #24] ldr w10, [sp, #4] ldr w11, [sp, #16] add w10, w10, w11 str w8, [x9, w10, sxtw #2] b LBB0_12 LBB0_12: ; in Loop: Header=BB0_3 Depth=2 b LBB0_13 LBB0_13: ; in Loop: Header=BB0_3 Depth=2 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB0_3 LBB0_14: ; in Loop: Header=BB0_1 Depth=1 b LBB0_15 LBB0_15: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #16] mov w9, #2 sdiv w8, w8, w9 str w8, [sp, #16] b LBB0_1 LBB0_16: add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _test ; -- Begin function test .p2align 2 _test: ; @test .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov x0, #0 bl _time ; kill: def $w0 killed $w0 killed $x0 bl _srand mov w8, #10 stur w8, [x29, #-4] mov x0, #10 mov x1, #4 bl _calloc str x0, [sp, #16] str wzr, [sp, #12] b LBB1_1 LBB1_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #12] subs w8, w8, #10 cset w8, ge tbnz w8, #0, LBB1_4 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 bl _rand mov w9, #100 sdiv w8, w0, w9 mul w8, w8, w9 subs w8, w0, w8 ldr x9, [sp, #16] ldrsw x10, [sp, #12] str w8, [x9, x10, lsl #2] b LBB1_3 LBB1_3: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB1_1 LBB1_4: ldr x0, [sp, #16] mov w1, #10 bl _shellSort str wzr, [sp, #8] b LBB1_5 LBB1_5: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #8] subs w8, w8, #9 cset w8, ge tbnz w8, #0, LBB1_11 b LBB1_6 LBB1_6: ; in Loop: Header=BB1_5 Depth=1 ldr x8, [sp, #16] ldrsw x9, [sp, #8] ldr w8, [x8, x9, lsl #2] ldr x9, [sp, #16] ldr w10, [sp, #8] add w10, w10, #1 ldr w9, [x9, w10, sxtw #2] subs w8, w8, w9 cset w9, gt ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB1_8 b LBB1_7 LBB1_7: adrp x0, l___func__.test@PAGE add x0, x0, l___func__.test@PAGEOFF adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF mov w2, #32 adrp x3, l_.str.1@PAGE add x3, x3, l_.str.1@PAGEOFF bl ___assert_rtn LBB1_8: ; in Loop: Header=BB1_5 Depth=1 b LBB1_9 LBB1_9: ; in Loop: Header=BB1_5 Depth=1 b LBB1_10 LBB1_10: ; in Loop: Header=BB1_5 Depth=1 ldr w8, [sp, #8] add w8, w8, #1 str w8, [sp, #8] b LBB1_5 LBB1_11: ldr x0, [sp, #16] bl _free 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] bl _test 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___func__.test: ; @__func__.test .asciz "test" l_.str: ; @.str .asciz "154828883.c" l_.str.1: ; @.str.1 .asciz "arr[i] <= arr[i + 1]" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _shellSort ## -- Begin function shellSort .p2align 4, 0x90 _shellSort: ## @shellSort .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) movl -12(%rbp), %eax movl $2, %ecx cltd idivl %ecx movl %eax, -16(%rbp) LBB0_1: ## =>This Loop Header: Depth=1 ## Child Loop BB0_3 Depth 2 ## Child Loop BB0_5 Depth 3 cmpl $0, -16(%rbp) jle LBB0_16 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl -16(%rbp), %eax movl %eax, -20(%rbp) LBB0_3: ## Parent Loop BB0_1 Depth=1 ## => This Loop Header: Depth=2 ## Child Loop BB0_5 Depth 3 movl -20(%rbp), %eax cmpl -12(%rbp), %eax jge LBB0_14 ## %bb.4: ## in Loop: Header=BB0_3 Depth=2 movq -8(%rbp), %rax movslq -20(%rbp), %rcx movl (%rax,%rcx,4), %eax movl %eax, -24(%rbp) movl -20(%rbp), %eax subl -16(%rbp), %eax movl %eax, -28(%rbp) LBB0_5: ## Parent Loop BB0_1 Depth=1 ## Parent Loop BB0_3 Depth=2 ## => This Inner Loop Header: Depth=3 xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $0, -28(%rbp) movb %al, -29(%rbp) ## 1-byte Spill jl LBB0_7 ## %bb.6: ## in Loop: Header=BB0_5 Depth=3 movl -24(%rbp), %eax movq -8(%rbp), %rcx movslq -28(%rbp), %rdx cmpl (%rcx,%rdx,4), %eax setl %al movb %al, -29(%rbp) ## 1-byte Spill LBB0_7: ## in Loop: Header=BB0_5 Depth=3 movb -29(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB0_8 jmp LBB0_10 LBB0_8: ## in Loop: Header=BB0_5 Depth=3 movq -8(%rbp), %rax movslq -28(%rbp), %rcx movl (%rax,%rcx,4), %edx movq -8(%rbp), %rax movl -28(%rbp), %ecx addl -16(%rbp), %ecx movslq %ecx, %rcx movl %edx, (%rax,%rcx,4) ## %bb.9: ## in Loop: Header=BB0_5 Depth=3 movl -16(%rbp), %ecx movl -28(%rbp), %eax subl %ecx, %eax movl %eax, -28(%rbp) jmp LBB0_5 LBB0_10: ## in Loop: Header=BB0_3 Depth=2 movl -28(%rbp), %eax movl -20(%rbp), %ecx subl -16(%rbp), %ecx cmpl %ecx, %eax je LBB0_12 ## %bb.11: ## in Loop: Header=BB0_3 Depth=2 movl -24(%rbp), %edx movq -8(%rbp), %rax movl -28(%rbp), %ecx addl -16(%rbp), %ecx movslq %ecx, %rcx movl %edx, (%rax,%rcx,4) LBB0_12: ## in Loop: Header=BB0_3 Depth=2 jmp LBB0_13 LBB0_13: ## in Loop: Header=BB0_3 Depth=2 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB0_3 LBB0_14: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_15 LBB0_15: ## in Loop: Header=BB0_1 Depth=1 movl -16(%rbp), %eax movl $2, %ecx cltd idivl %ecx movl %eax, -16(%rbp) jmp LBB0_1 LBB0_16: popq %rbp retq .cfi_endproc ## -- End function .globl _test ## -- Begin function test .p2align 4, 0x90 _test: ## @test .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp xorl %eax, %eax movl %eax, %edi callq _time movl %eax, %edi callq _srand movl $10, -4(%rbp) movl $10, %edi movl $4, %esi callq _calloc movq %rax, -16(%rbp) movl $0, -20(%rbp) LBB1_1: ## =>This Inner Loop Header: Depth=1 cmpl $10, -20(%rbp) jge LBB1_4 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 callq _rand movl $100, %ecx cltd idivl %ecx movq -16(%rbp), %rax movslq -20(%rbp), %rcx movl %edx, (%rax,%rcx,4) ## %bb.3: ## in Loop: Header=BB1_1 Depth=1 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB1_1 LBB1_4: movq -16(%rbp), %rdi movl $10, %esi callq _shellSort movl $0, -24(%rbp) LBB1_5: ## =>This Inner Loop Header: Depth=1 cmpl $9, -24(%rbp) jge LBB1_11 ## %bb.6: ## in Loop: Header=BB1_5 Depth=1 movq -16(%rbp), %rax movslq -24(%rbp), %rcx movl (%rax,%rcx,4), %eax movq -16(%rbp), %rcx movl -24(%rbp), %edx addl $1, %edx movslq %edx, %rdx cmpl (%rcx,%rdx,4), %eax setle %al xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB1_8 ## %bb.7: leaq L___func__.test(%rip), %rdi leaq L_.str(%rip), %rsi leaq L_.str.1(%rip), %rcx movl $32, %edx callq ___assert_rtn LBB1_8: ## in Loop: Header=BB1_5 Depth=1 jmp LBB1_9 LBB1_9: ## in Loop: Header=BB1_5 Depth=1 jmp LBB1_10 LBB1_10: ## in Loop: Header=BB1_5 Depth=1 movl -24(%rbp), %eax addl $1, %eax movl %eax, -24(%rbp) jmp LBB1_5 LBB1_11: movq -16(%rbp), %rdi callq _free 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) callq _test xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L___func__.test: ## @__func__.test .asciz "test" L_.str: ## @.str .asciz "154828883.c" L_.str.1: ## @.str.1 .asciz "arr[i] <= arr[i + 1]" .subsections_via_symbols
the_stack_data/154828883.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/140765751.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill .cfi_def_cfa_offset 16 mov x29, sp .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 sub sp, sp, #112 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] stur wzr, [x29, #-12] mov w8, #1024 stur w8, [x29, #-16] stur wzr, [x29, #-20] mov x0, #1 bl _malloc stur x0, [x29, #-32] ldur w8, [x29, #-16] ; 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, #-88] ; 8-byte Folded Spill adrp x16, ___chkstk_darwin@GOTPAGE ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF] blr x16 ldur x10, [x29, #-88] ; 8-byte Folded Reload mov x9, sp subs x9, x9, x10 mov sp, x9 stur x9, [x29, #-80] ; 8-byte Folded Spill stur x8, [x29, #-48] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldur x0, [x29, #-80] ; 8-byte Folded Reload ldur w1, [x29, #-16] adrp x8, ___stdinp@GOTPAGE ldr x8, [x8, ___stdinp@GOTPAGEOFF] ldr x2, [x8] bl _fgets subs x8, x0, #0 cset w8, eq tbnz w8, #0, LBB0_5 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldur x0, [x29, #-80] ; 8-byte Folded Reload bl _strlen ldur x8, [x29, #-80] ; 8-byte Folded Reload add x8, x8, x0 ldursb w8, [x8, #-1] subs w8, w8, #10 cset w8, ne tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldur x0, [x29, #-80] ; 8-byte Folded Reload bl _strlen ldur x8, [x29, #-80] ; 8-byte Folded Reload add x8, x8, x0 subs x8, x8, #1 strb wzr, [x8] b LBB0_4 LBB0_4: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-20] add w8, w8, #1 stur w8, [x29, #-20] ldur x0, [x29, #-32] ldur w8, [x29, #-16] ldur w9, [x29, #-20] mul w9, w8, w9 ; implicit-def: $x8 mov x8, x9 sxtw x8, w8 lsr x1, x8, #0 bl _realloc ldur x1, [x29, #-80] ; 8-byte Folded Reload stur x0, [x29, #-32] ldur x8, [x29, #-32] ldur w9, [x29, #-20] subs w9, w9, #1 ldur w10, [x29, #-16] mul w9, w9, w10 add x0, x8, w9, sxtw mov x2, #-1 bl ___strcpy_chk b LBB0_1 LBB0_5: stur wzr, [x29, #-52] b LBB0_6 LBB0_6: ; =>This Loop Header: Depth=1 ; Child Loop BB0_8 Depth 2 ldur w8, [x29, #-52] ldur w9, [x29, #-20] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_12 b LBB0_7 LBB0_7: ; in Loop: Header=BB0_6 Depth=1 ldur x8, [x29, #-32] ldur w9, [x29, #-52] ldur w10, [x29, #-16] mul w9, w9, w10 add x8, x8, w9, sxtw 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 ldur x8, [x29, #-32] ldur w9, [x29, #-52] ldur w10, [x29, #-16] mul w9, w9, w10 add x0, x8, w9, sxtw adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF bl _strtok stur x0, [x29, #-64] b LBB0_8 LBB0_8: ; Parent Loop BB0_6 Depth=1 ; => This Inner Loop Header: Depth=2 ldur x8, [x29, #-64] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB0_10 b LBB0_9 LBB0_9: ; in Loop: Header=BB0_8 Depth=2 ldur x0, [x29, #-64] bl _getStringFormat stur x0, [x29, #-72] ldur x0, [x29, #-64] bl _strToLower ldur x8, [x29, #-64] stur x8, [x29, #-96] ; 8-byte Folded Spill ldur x0, [x29, #-64] bl _strlen mov x1, x0 ldur x0, [x29, #-96] ; 8-byte Folded Reload mov x2, #1 adrp x3, _compare@PAGE add x3, x3, _compare@PAGEOFF bl _qsort ldur x0, [x29, #-64] ldur x1, [x29, #-72] bl _reformatString ldur x8, [x29, #-64] sub sp, sp, #16 mov x9, sp str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf add sp, sp, #16 mov x0, #0 adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF bl _strtok stur x0, [x29, #-64] ldur x0, [x29, #-72] bl _free b LBB0_8 LBB0_10: ; in Loop: Header=BB0_6 Depth=1 adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf ldur x0, [x29, #-64] bl _free b LBB0_11 LBB0_11: ; in Loop: Header=BB0_6 Depth=1 ldur w8, [x29, #-52] add w8, w8, #1 stur w8, [x29, #-52] b LBB0_6 LBB0_12: ldur x0, [x29, #-32] bl _free stur wzr, [x29, #-12] ldur x8, [x29, #-40] mov sp, x8 ldur w8, [x29, #-12] stur w8, [x29, #-100] ; 4-byte Folded Spill ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_14 b LBB0_13 LBB0_13: bl ___stack_chk_fail LBB0_14: ldur w0, [x29, #-100] ; 4-byte Folded Reload mov sp, x29 ldp x29, x30, [sp], #16 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .globl _getStringFormat ; -- Begin function getStringFormat .p2align 2 _getStringFormat: ; @getStringFormat .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] ldur x0, [x29, #-8] bl _strlen add x8, x0, #1 lsr x0, x8, #0 bl _malloc stur x0, [x29, #-16] stur wzr, [x29, #-20] b LBB1_1 LBB1_1: ; =>This Inner Loop Header: Depth=1 ldursw x8, [x29, #-20] str x8, [sp, #16] ; 8-byte Folded Spill ldur x0, [x29, #-8] bl _strlen ldr x8, [sp, #16] ; 8-byte Folded Reload subs x8, x8, x0 cset w8, hs tbnz w8, #0, LBB1_10 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 ldur x8, [x29, #-8] ldursw x9, [x29, #-20] add x8, x8, x9 ldrb w8, [x8] sturb w8, [x29, #-21] ldursb w0, [x29, #-21] bl _isUpperCase subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB1_4 b LBB1_3 LBB1_3: ; in Loop: Header=BB1_1 Depth=1 ldur x8, [x29, #-16] ldursw x9, [x29, #-20] add x9, x8, x9 mov w8, #67 strb w8, [x9] b LBB1_8 LBB1_4: ; in Loop: Header=BB1_1 Depth=1 ldursb w0, [x29, #-21] bl _isLowerCase subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB1_6 b LBB1_5 LBB1_5: ; in Loop: Header=BB1_1 Depth=1 ldur x8, [x29, #-16] ldursw x9, [x29, #-20] add x9, x8, x9 mov w8, #99 strb w8, [x9] b LBB1_7 LBB1_6: ; in Loop: Header=BB1_1 Depth=1 ldurb w8, [x29, #-21] ldur x9, [x29, #-16] ldursw x10, [x29, #-20] add x9, x9, x10 strb w8, [x9] b LBB1_7 LBB1_7: ; in Loop: Header=BB1_1 Depth=1 b LBB1_8 LBB1_8: ; in Loop: Header=BB1_1 Depth=1 b LBB1_9 LBB1_9: ; in Loop: Header=BB1_1 Depth=1 ldur w8, [x29, #-20] add w8, w8, #1 stur w8, [x29, #-20] b LBB1_1 LBB1_10: ldur x8, [x29, #-16] str x8, [sp, #8] ; 8-byte Folded Spill ldur x0, [x29, #-8] bl _strlen ldr x8, [sp, #8] ; 8-byte Folded Reload add x8, x8, x0 strb wzr, [x8] ldur x0, [x29, #-16] ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _strToLower ; -- Begin function strToLower .p2align 2 _strToLower: ; @strToLower .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #8] b LBB2_1 LBB2_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #8] ldrb w8, [x8] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB2_6 b LBB2_2 LBB2_2: ; in Loop: Header=BB2_1 Depth=1 ldr x8, [sp, #8] ldrsb w0, [x8] bl _isalpha subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB2_4 b LBB2_3 LBB2_3: ; in Loop: Header=BB2_1 Depth=1 ldr x8, [sp, #8] ldrsb w0, [x8] bl _tolower ldr x8, [sp, #8] strb w0, [x8] b LBB2_4 LBB2_4: ; in Loop: Header=BB2_1 Depth=1 b LBB2_5 LBB2_5: ; in Loop: Header=BB2_1 Depth=1 ldr x8, [sp, #8] add x8, x8, #1 str x8, [sp, #8] b LBB2_1 LBB2_6: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _compare ; -- Begin function compare .p2align 2 _compare: ; @compare .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] str x1, [sp] ldr x8, [sp, #8] ldrsb w8, [x8] ldr x9, [sp] ldrsb w9, [x9] subs w0, w8, w9 add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _reformatString ; -- Begin function reformatString .p2align 2 _reformatString: ; @reformatString .cfi_startproc ; %bb.0: stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill .cfi_def_cfa_offset 16 mov x29, sp .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 sub sp, sp, #96 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] stur x0, [x29, #-16] stur x1, [x29, #-24] ldur x0, [x29, #-16] bl _strlen mov x8, x0 stur w8, [x29, #-28] ldur w8, [x29, #-28] ; 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, #-80] ; 8-byte Folded Spill adrp x16, ___chkstk_darwin@GOTPAGE ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF] blr x16 ldur x10, [x29, #-80] ; 8-byte Folded Reload mov x9, sp subs x9, x9, x10 mov sp, x9 stur x9, [x29, #-72] ; 8-byte Folded Spill stur x8, [x29, #-48] stur wzr, [x29, #-56] stur wzr, [x29, #-52] b LBB4_1 LBB4_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-52] ldur w9, [x29, #-28] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB4_6 b LBB4_2 LBB4_2: ; in Loop: Header=BB4_1 Depth=1 ldur x8, [x29, #-16] ldursw x9, [x29, #-52] add x8, x8, x9 ldrb w8, [x8] sturb w8, [x29, #-57] ldursb w0, [x29, #-57] bl _isalpha subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB4_4 b LBB4_3 LBB4_3: ; in Loop: Header=BB4_1 Depth=1 ldur x9, [x29, #-72] ; 8-byte Folded Reload ldurb w8, [x29, #-57] ldursw x10, [x29, #-56] mov x11, x10 add w11, w11, #1 stur w11, [x29, #-56] add x9, x9, x10 strb w8, [x9] b LBB4_4 LBB4_4: ; in Loop: Header=BB4_1 Depth=1 b LBB4_5 LBB4_5: ; in Loop: Header=BB4_1 Depth=1 ldur w8, [x29, #-52] add w8, w8, #1 stur w8, [x29, #-52] b LBB4_1 LBB4_6: ldur x8, [x29, #-72] ; 8-byte Folded Reload ldursw x9, [x29, #-56] add x8, x8, x9 strb wzr, [x8] stur wzr, [x29, #-56] stur wzr, [x29, #-52] b LBB4_7 LBB4_7: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-52] ldur w9, [x29, #-28] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB4_15 b LBB4_8 LBB4_8: ; in Loop: Header=BB4_7 Depth=1 ldur x8, [x29, #-24] ldursw x9, [x29, #-52] add x8, x8, x9 ldrb w8, [x8] sturb w8, [x29, #-58] ldursb w8, [x29, #-58] stur w8, [x29, #-84] ; 4-byte Folded Spill subs w8, w8, #67 cset w8, eq tbnz w8, #0, LBB4_10 b LBB4_9 LBB4_9: ; in Loop: Header=BB4_7 Depth=1 ldur w8, [x29, #-84] ; 4-byte Folded Reload subs w8, w8, #99 cset w8, eq tbnz w8, #0, LBB4_11 b LBB4_12 LBB4_10: ; in Loop: Header=BB4_7 Depth=1 ldur x8, [x29, #-72] ; 8-byte Folded Reload ldursw x9, [x29, #-56] mov x10, x9 add w10, w10, #1 stur w10, [x29, #-56] ldrsb w0, [x8, x9] bl _toupper ldur x8, [x29, #-16] ldursw x9, [x29, #-52] strb w0, [x8, x9] b LBB4_13 LBB4_11: ; in Loop: Header=BB4_7 Depth=1 ldur x8, [x29, #-72] ; 8-byte Folded Reload ldursw x9, [x29, #-56] mov x10, x9 add w10, w10, #1 stur w10, [x29, #-56] ldrsb w0, [x8, x9] bl _tolower ldur x8, [x29, #-16] ldursw x9, [x29, #-52] strb w0, [x8, x9] b LBB4_13 LBB4_12: ; in Loop: Header=BB4_7 Depth=1 ldurb w8, [x29, #-58] ldur x9, [x29, #-16] ldursw x10, [x29, #-52] add x9, x9, x10 strb w8, [x9] b LBB4_13 LBB4_13: ; in Loop: Header=BB4_7 Depth=1 b LBB4_14 LBB4_14: ; in Loop: Header=BB4_7 Depth=1 ldur w8, [x29, #-52] add w8, w8, #1 stur w8, [x29, #-52] b LBB4_7 LBB4_15: ldur x8, [x29, #-40] stur x8, [x29, #-96] ; 8-byte Folded Spill ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB4_17 b LBB4_16 LBB4_16: bl ___stack_chk_fail LBB4_17: ldur x8, [x29, #-96] ; 8-byte Folded Reload mov sp, x8 mov sp, x29 ldp x29, x30, [sp], #16 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .globl _isUpperCase ; -- Begin function isUpperCase .p2align 2 _isUpperCase: ; @isUpperCase .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 strb w0, [sp, #15] ldrsb w8, [sp, #15] subs w8, w8, #65 cset w8, lt mov w9, #0 str w9, [sp, #8] ; 4-byte Folded Spill tbnz w8, #0, LBB5_2 b LBB5_1 LBB5_1: ldrsb w8, [sp, #15] subs w8, w8, #90 cset w8, le str w8, [sp, #8] ; 4-byte Folded Spill b LBB5_2 LBB5_2: ldr w8, [sp, #8] ; 4-byte Folded Reload and w0, w8, #0x1 add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _isLowerCase ; -- Begin function isLowerCase .p2align 2 _isLowerCase: ; @isLowerCase .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 strb w0, [sp, #15] ldrsb w8, [sp, #15] subs w8, w8, #97 cset w8, lt mov w9, #0 str w9, [sp, #8] ; 4-byte Folded Spill tbnz w8, #0, LBB6_2 b LBB6_1 LBB6_1: ldrsb w8, [sp, #15] subs w8, w8, #122 cset w8, le str w8, [sp, #8] ; 4-byte Folded Spill b LBB6_2 LBB6_2: ldr w8, [sp, #8] ; 4-byte Folded Reload and w0, w8, #0x1 add sp, sp, #16 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%s\n" l_.str.1: ; @.str.1 .asciz " " l_.str.2: ; @.str.2 .asciz "%s " l_.str.3: ; @.str.3 .asciz "\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _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, -12(%rbp) movl $1024, -16(%rbp) ## imm = 0x400 movl $0, -20(%rbp) movl $1, %edi callq _malloc movq %rax, -32(%rbp) movl -16(%rbp), %eax ## kill: def $rax killed $eax movq %rax, -88(%rbp) ## 8-byte Spill movq %rsp, %rcx movq %rcx, -40(%rbp) callq ____chkstk_darwin addq $15, %rax andq $-16, %rax subq %rax, %rsp movq -88(%rbp), %rax ## 8-byte Reload movq %rsp, %rcx movq %rcx, -80(%rbp) ## 8-byte Spill movq %rax, -48(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movq -80(%rbp), %rdi ## 8-byte Reload movl -16(%rbp), %esi movq ___stdinp@GOTPCREL(%rip), %rax movq (%rax), %rdx callq _fgets cmpq $0, %rax je LBB0_5 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movq -80(%rbp), %rdi ## 8-byte Reload callq _strlen movq %rax, %rcx movq -80(%rbp), %rax ## 8-byte Reload movsbl -1(%rax,%rcx), %eax cmpl $10, %eax jne LBB0_4 ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movq -80(%rbp), %rdi ## 8-byte Reload callq _strlen movq %rax, %rcx movq -80(%rbp), %rax ## 8-byte Reload movb $0, -1(%rax,%rcx) LBB0_4: ## in Loop: Header=BB0_1 Depth=1 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) movq -32(%rbp), %rdi movl -16(%rbp), %eax imull -20(%rbp), %eax movslq %eax, %rsi shlq $0, %rsi callq _realloc movq -80(%rbp), %rsi ## 8-byte Reload movq %rax, -32(%rbp) movq -32(%rbp), %rdi movl -20(%rbp), %eax subl $1, %eax imull -16(%rbp), %eax cltq addq %rax, %rdi movq $-1, %rdx callq ___strcpy_chk jmp LBB0_1 LBB0_5: movl $0, -52(%rbp) LBB0_6: ## =>This Loop Header: Depth=1 ## Child Loop BB0_8 Depth 2 movl -52(%rbp), %eax cmpl -20(%rbp), %eax jge LBB0_12 ## %bb.7: ## in Loop: Header=BB0_6 Depth=1 movq -32(%rbp), %rsi movl -52(%rbp), %eax imull -16(%rbp), %eax cltq addq %rax, %rsi leaq L_.str(%rip), %rdi movb $0, %al callq _printf movq -32(%rbp), %rdi movl -52(%rbp), %eax imull -16(%rbp), %eax cltq addq %rax, %rdi leaq L_.str.1(%rip), %rsi callq _strtok movq %rax, -64(%rbp) LBB0_8: ## Parent Loop BB0_6 Depth=1 ## => This Inner Loop Header: Depth=2 cmpq $0, -64(%rbp) je LBB0_10 ## %bb.9: ## in Loop: Header=BB0_8 Depth=2 movq -64(%rbp), %rdi callq _getStringFormat movq %rax, -72(%rbp) movq -64(%rbp), %rdi callq _strToLower movq -64(%rbp), %rax movq %rax, -96(%rbp) ## 8-byte Spill movq -64(%rbp), %rdi callq _strlen movq -96(%rbp), %rdi ## 8-byte Reload movq %rax, %rsi movl $1, %edx leaq _compare(%rip), %rcx callq _qsort movq -64(%rbp), %rdi movq -72(%rbp), %rsi callq _reformatString movq -64(%rbp), %rsi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf xorl %eax, %eax movl %eax, %edi leaq L_.str.1(%rip), %rsi callq _strtok movq %rax, -64(%rbp) movq -72(%rbp), %rdi callq _free jmp LBB0_8 LBB0_10: ## in Loop: Header=BB0_6 Depth=1 leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf movq -64(%rbp), %rdi callq _free ## %bb.11: ## in Loop: Header=BB0_6 Depth=1 movl -52(%rbp), %eax addl $1, %eax movl %eax, -52(%rbp) jmp LBB0_6 LBB0_12: movq -32(%rbp), %rdi callq _free movl $0, -12(%rbp) movq -40(%rbp), %rax movq %rax, %rsp movl -12(%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 movq %rbp, %rsp popq %rbp retq LBB0_14: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _getStringFormat ## -- Begin function getStringFormat .p2align 4, 0x90 _getStringFormat: ## @getStringFormat .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movq %rdi, -8(%rbp) movq -8(%rbp), %rdi callq _strlen movq %rax, %rdi addq $1, %rdi shlq $0, %rdi callq _malloc movq %rax, -16(%rbp) movl $0, -20(%rbp) LBB1_1: ## =>This Inner Loop Header: Depth=1 movslq -20(%rbp), %rax movq %rax, -32(%rbp) ## 8-byte Spill movq -8(%rbp), %rdi callq _strlen movq %rax, %rcx movq -32(%rbp), %rax ## 8-byte Reload cmpq %rcx, %rax jae LBB1_10 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 movq -8(%rbp), %rax movslq -20(%rbp), %rcx movb (%rax,%rcx), %al movb %al, -21(%rbp) movsbl -21(%rbp), %edi callq _isUpperCase cmpl $0, %eax je LBB1_4 ## %bb.3: ## in Loop: Header=BB1_1 Depth=1 movq -16(%rbp), %rax movslq -20(%rbp), %rcx movb $67, (%rax,%rcx) jmp LBB1_8 LBB1_4: ## in Loop: Header=BB1_1 Depth=1 movsbl -21(%rbp), %edi callq _isLowerCase cmpl $0, %eax je LBB1_6 ## %bb.5: ## in Loop: Header=BB1_1 Depth=1 movq -16(%rbp), %rax movslq -20(%rbp), %rcx movb $99, (%rax,%rcx) jmp LBB1_7 LBB1_6: ## in Loop: Header=BB1_1 Depth=1 movb -21(%rbp), %dl movq -16(%rbp), %rax movslq -20(%rbp), %rcx movb %dl, (%rax,%rcx) LBB1_7: ## in Loop: Header=BB1_1 Depth=1 jmp LBB1_8 LBB1_8: ## in Loop: Header=BB1_1 Depth=1 jmp LBB1_9 LBB1_9: ## in Loop: Header=BB1_1 Depth=1 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB1_1 LBB1_10: movq -16(%rbp), %rax movq %rax, -40(%rbp) ## 8-byte Spill movq -8(%rbp), %rdi callq _strlen movq %rax, %rcx movq -40(%rbp), %rax ## 8-byte Reload movb $0, (%rax,%rcx) movq -16(%rbp), %rax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _strToLower ## -- Begin function strToLower .p2align 4, 0x90 _strToLower: ## @strToLower .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) LBB2_1: ## =>This Inner Loop Header: Depth=1 movq -8(%rbp), %rax cmpb $0, (%rax) je LBB2_6 ## %bb.2: ## in Loop: Header=BB2_1 Depth=1 movq -8(%rbp), %rax movsbl (%rax), %edi callq _isalpha cmpl $0, %eax je LBB2_4 ## %bb.3: ## in Loop: Header=BB2_1 Depth=1 movq -8(%rbp), %rax movsbl (%rax), %edi callq _tolower movb %al, %cl movq -8(%rbp), %rax movb %cl, (%rax) LBB2_4: ## in Loop: Header=BB2_1 Depth=1 jmp LBB2_5 LBB2_5: ## in Loop: Header=BB2_1 Depth=1 movq -8(%rbp), %rax addq $1, %rax movq %rax, -8(%rbp) jmp LBB2_1 LBB2_6: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _compare ## -- Begin function compare .p2align 4, 0x90 _compare: ## @compare .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 movsbl (%rax), %eax movq -16(%rbp), %rcx movsbl (%rcx), %ecx subl %ecx, %eax popq %rbp retq .cfi_endproc ## -- End function .globl _reformatString ## -- Begin function reformatString .p2align 4, 0x90 _reformatString: ## @reformatString .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $96, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movq %rdi, -16(%rbp) movq %rsi, -24(%rbp) movq -16(%rbp), %rdi callq _strlen ## kill: def $eax killed $eax killed $rax movl %eax, -28(%rbp) movl -28(%rbp), %eax ## kill: def $rax killed $eax movq %rax, -80(%rbp) ## 8-byte Spill movq %rsp, %rcx movq %rcx, -40(%rbp) callq ____chkstk_darwin addq $15, %rax andq $-16, %rax subq %rax, %rsp movq -80(%rbp), %rax ## 8-byte Reload movq %rsp, %rcx movq %rcx, -72(%rbp) ## 8-byte Spill movq %rax, -48(%rbp) movl $0, -56(%rbp) movl $0, -52(%rbp) LBB4_1: ## =>This Inner Loop Header: Depth=1 movl -52(%rbp), %eax cmpl -28(%rbp), %eax jge LBB4_6 ## %bb.2: ## in Loop: Header=BB4_1 Depth=1 movq -16(%rbp), %rax movslq -52(%rbp), %rcx movb (%rax,%rcx), %al movb %al, -57(%rbp) movsbl -57(%rbp), %edi callq _isalpha cmpl $0, %eax je LBB4_4 ## %bb.3: ## in Loop: Header=BB4_1 Depth=1 movq -72(%rbp), %rax ## 8-byte Reload movb -57(%rbp), %dl movl -56(%rbp), %ecx movl %ecx, %esi addl $1, %esi movl %esi, -56(%rbp) movslq %ecx, %rcx movb %dl, (%rax,%rcx) LBB4_4: ## in Loop: Header=BB4_1 Depth=1 jmp LBB4_5 LBB4_5: ## in Loop: Header=BB4_1 Depth=1 movl -52(%rbp), %eax addl $1, %eax movl %eax, -52(%rbp) jmp LBB4_1 LBB4_6: movq -72(%rbp), %rax ## 8-byte Reload movslq -56(%rbp), %rcx movb $0, (%rax,%rcx) movl $0, -56(%rbp) movl $0, -52(%rbp) LBB4_7: ## =>This Inner Loop Header: Depth=1 movl -52(%rbp), %eax cmpl -28(%rbp), %eax jge LBB4_14 ## %bb.8: ## in Loop: Header=BB4_7 Depth=1 movq -24(%rbp), %rax movslq -52(%rbp), %rcx movb (%rax,%rcx), %al movb %al, -58(%rbp) movsbl -58(%rbp), %eax movl %eax, -84(%rbp) ## 4-byte Spill subl $67, %eax je LBB4_9 jmp LBB4_17 LBB4_17: ## in Loop: Header=BB4_7 Depth=1 movl -84(%rbp), %eax ## 4-byte Reload subl $99, %eax je LBB4_10 jmp LBB4_11 LBB4_9: ## in Loop: Header=BB4_7 Depth=1 movq -72(%rbp), %rax ## 8-byte Reload movl -56(%rbp), %ecx movl %ecx, %edx addl $1, %edx movl %edx, -56(%rbp) movslq %ecx, %rcx movsbl (%rax,%rcx), %edi callq _toupper movb %al, %dl movq -16(%rbp), %rax movslq -52(%rbp), %rcx movb %dl, (%rax,%rcx) jmp LBB4_12 LBB4_10: ## in Loop: Header=BB4_7 Depth=1 movq -72(%rbp), %rax ## 8-byte Reload movl -56(%rbp), %ecx movl %ecx, %edx addl $1, %edx movl %edx, -56(%rbp) movslq %ecx, %rcx movsbl (%rax,%rcx), %edi callq _tolower movb %al, %dl movq -16(%rbp), %rax movslq -52(%rbp), %rcx movb %dl, (%rax,%rcx) jmp LBB4_12 LBB4_11: ## in Loop: Header=BB4_7 Depth=1 movb -58(%rbp), %dl movq -16(%rbp), %rax movslq -52(%rbp), %rcx movb %dl, (%rax,%rcx) LBB4_12: ## in Loop: Header=BB4_7 Depth=1 jmp LBB4_13 LBB4_13: ## in Loop: Header=BB4_7 Depth=1 movl -52(%rbp), %eax addl $1, %eax movl %eax, -52(%rbp) jmp LBB4_7 LBB4_14: 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 LBB4_16 ## %bb.15: movq %rbp, %rsp popq %rbp retq LBB4_16: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _isUpperCase ## -- Begin function isUpperCase .p2align 4, 0x90 _isUpperCase: ## @isUpperCase .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movb %dil, %al movb %al, -1(%rbp) movsbl -1(%rbp), %ecx xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $65, %ecx movb %al, -2(%rbp) ## 1-byte Spill jl LBB5_2 ## %bb.1: movsbl -1(%rbp), %eax cmpl $90, %eax setle %al movb %al, -2(%rbp) ## 1-byte Spill LBB5_2: movb -2(%rbp), %al ## 1-byte Reload andb $1, %al movzbl %al, %eax popq %rbp retq .cfi_endproc ## -- End function .globl _isLowerCase ## -- Begin function isLowerCase .p2align 4, 0x90 _isLowerCase: ## @isLowerCase .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movb %dil, %al movb %al, -1(%rbp) movsbl -1(%rbp), %ecx xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $97, %ecx movb %al, -2(%rbp) ## 1-byte Spill jl LBB6_2 ## %bb.1: movsbl -1(%rbp), %eax cmpl $122, %eax setle %al movb %al, -2(%rbp) ## 1-byte Spill LBB6_2: movb -2(%rbp), %al ## 1-byte Reload andb $1, %al movzbl %al, %eax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%s\n" L_.str.1: ## @.str.1 .asciz " " L_.str.2: ## @.str.2 .asciz "%s " L_.str.3: ## @.str.3 .asciz "\n" .subsections_via_symbols
the_stack_data/242331172.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #80 .cfi_def_cfa_offset 80 stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp, #64 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] str x8, [sp] ; 8-byte Folded Spill stur wzr, [x29, #-4] sub x1, x29, #24 adrp x8, _SignalHandler@GOTPAGE ldr x8, [x8, _SignalHandler@GOTPAGEOFF] stur x8, [x29, #-24] stur wzr, [x29, #-12] stur wzr, [x29, #-16] mov w0, #14 mov x2, #0 bl _sigaction adds w8, w0, #1 cset w8, ne tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: ldr x8, [sp] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF bl _fprintf mov w8, #1 stur w8, [x29, #-4] b LBB0_12 LBB0_2: add x1, sp, #8 str xzr, [sp, #8] mov w8, #34464 movk w8, #1, lsl #16 str w8, [sp, #16] str xzr, [sp, #24] str w8, [sp, #32] mov w0, #0 mov x2, #0 bl _setitimer adds w8, w0, #1 cset w8, ne tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: ldr x8, [sp] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF bl _fprintf mov w8, #1 stur w8, [x29, #-4] b LBB0_12 LBB0_4: b LBB0_5 LBB0_5: ; =>This Inner Loop Header: Depth=1 adrp x8, _DidTest@GOTPAGE ldr x8, [x8, _DidTest@GOTPAGEOFF] ldr w8, [x8] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_7 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_5 Depth=1 bl _SetAndClearDF b LBB0_5 LBB0_7: add x1, sp, #8 str xzr, [sp, #24] mov w0, #0 str wzr, [sp, #32] mov x2, #0 bl _setitimer adds w8, w0, #1 cset w8, ne tbnz w8, #0, LBB0_9 b LBB0_8 LBB0_8: ldr x8, [sp] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.2@PAGE add x1, x1, l_.str.2@PAGEOFF bl _fprintf mov w8, #1 stur w8, [x29, #-4] b LBB0_12 LBB0_9: adrp x8, _Flags@GOTPAGE ldr x8, [x8, _Flags@GOTPAGEOFF] ldr w8, [x8] ands w8, w8, #0x400 cset w8, eq tbnz w8, #0, LBB0_11 b LBB0_10 LBB0_10: ldr x8, [sp] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.3@PAGE add x1, x1, l_.str.3@PAGEOFF bl _fprintf mov w8, #1 stur w8, [x29, #-4] b LBB0_12 LBB0_11: stur wzr, [x29, #-4] b LBB0_12 LBB0_12: ldur w0, [x29, #-4] ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .globl _DFSet ; @DFSet .zerofill __DATA,__common,_DFSet,4,2 .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Unable to set up handler\n" l_.str.1: ; @.str.1 .asciz "Unable to set up timer\n" .comm _DidTest,4,2 ; @DidTest l_.str.2: ; @.str.2 .asciz "Unable to disable timer\n" .comm _Flags,4,2 ; @Flags l_.str.3: ; @.str.3 .asciz "DF bit set incorrectly in signal handler\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $64, %rsp movl $0, -4(%rbp) movq _SignalHandler@GOTPCREL(%rip), %rax movq %rax, -24(%rbp) movl $0, -12(%rbp) movl $0, -16(%rbp) movl $14, %edi leaq -24(%rbp), %rsi xorl %eax, %eax movl %eax, %edx callq _sigaction cmpl $-1, %eax jne LBB0_2 ## %bb.1: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str(%rip), %rsi movb $0, %al callq _fprintf movl $1, -4(%rbp) jmp LBB0_12 LBB0_2: movq $0, -56(%rbp) movl $100000, -48(%rbp) ## imm = 0x186A0 movq $0, -40(%rbp) movl $100000, -32(%rbp) ## imm = 0x186A0 xorl %edi, %edi leaq -56(%rbp), %rsi xorl %eax, %eax movl %eax, %edx callq _setitimer cmpl $-1, %eax jne LBB0_4 ## %bb.3: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.1(%rip), %rsi movb $0, %al callq _fprintf movl $1, -4(%rbp) jmp LBB0_12 LBB0_4: jmp LBB0_5 LBB0_5: ## =>This Inner Loop Header: Depth=1 movq _DidTest@GOTPCREL(%rip), %rax cmpl $0, (%rax) setne %al xorb $-1, %al testb $1, %al jne LBB0_6 jmp LBB0_7 LBB0_6: ## in Loop: Header=BB0_5 Depth=1 movb $0, %al callq _SetAndClearDF jmp LBB0_5 LBB0_7: movq $0, -40(%rbp) movl $0, -32(%rbp) xorl %edi, %edi leaq -56(%rbp), %rsi xorl %eax, %eax movl %eax, %edx callq _setitimer cmpl $-1, %eax jne LBB0_9 ## %bb.8: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.2(%rip), %rsi movb $0, %al callq _fprintf movl $1, -4(%rbp) jmp LBB0_12 LBB0_9: movq _Flags@GOTPCREL(%rip), %rax movl (%rax), %eax andl $1024, %eax ## imm = 0x400 cmpl $0, %eax je LBB0_11 ## %bb.10: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.3(%rip), %rsi movb $0, %al callq _fprintf movl $1, -4(%rbp) jmp LBB0_12 LBB0_11: movl $0, -4(%rbp) LBB0_12: movl -4(%rbp), %eax addq $64, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _DFSet ## @DFSet .zerofill __DATA,__common,_DFSet,4,2 .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Unable to set up handler\n" L_.str.1: ## @.str.1 .asciz "Unable to set up timer\n" .comm _DidTest,4,2 ## @DidTest L_.str.2: ## @.str.2 .asciz "Unable to disable timer\n" .comm _Flags,4,2 ## @Flags L_.str.3: ## @.str.3 .asciz "DF bit set incorrectly in signal handler\n" .subsections_via_symbols
the_stack_data/36553.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _newAdjListNode ; -- Begin function newAdjListNode .p2align 2 _newAdjListNode: ; @newAdjListNode .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur w0, [x29, #-4] mov x0, #16 bl _malloc str x0, [sp] ldur w8, [x29, #-4] ldr x9, [sp] str w8, [x9] ldr x8, [sp] ; kill: def $x9 killed $xzr str xzr, [x8, #8] ldr x0, [sp] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _createGraph ; -- Begin function createGraph .p2align 2 _createGraph: ; @createGraph .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur w0, [x29, #-4] mov x0, #16 bl _malloc str x0, [sp, #16] ldur w8, [x29, #-4] ldr x9, [sp, #16] str w8, [x9] ldursw x8, [x29, #-4] lsl x0, x8, #3 bl _malloc ldr x8, [sp, #16] str x0, [x8, #8] str wzr, [sp, #12] b LBB1_1 LBB1_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, LBB1_4 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 ldr x8, [sp, #16] ldr x9, [x8, #8] ldrsw x10, [sp, #12] mov x8, #0 str x8, [x9, x10, lsl #3] b LBB1_3 LBB1_3: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB1_1 LBB1_4: ldr x0, [sp, #16] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _addEdge ; -- Begin function addEdge .p2align 2 _addEdge: ; @addEdge .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] stur w1, [x29, #-12] str w2, [sp, #16] ldr w0, [sp, #16] bl _newAdjListNode str x0, [sp, #8] ldur x8, [x29, #-8] ldr x8, [x8, #8] ldursw x9, [x29, #-12] ldr x8, [x8, x9, lsl #3] ldr x9, [sp, #8] str x8, [x9, #8] ldr x8, [sp, #8] ldur x9, [x29, #-8] ldr x9, [x9, #8] ldursw x10, [x29, #-12] str x8, [x9, x10, lsl #3] ldur w0, [x29, #-12] bl _newAdjListNode str x0, [sp, #8] ldur x8, [x29, #-8] ldr x8, [x8, #8] ldrsw x9, [sp, #16] ldr x8, [x8, x9, lsl #3] ldr x9, [sp, #8] str x8, [x9, #8] ldr x8, [sp, #8] ldur x9, [x29, #-8] ldr x9, [x9, #8] ldrsw x10, [sp, #16] str x8, [x9, x10, lsl #3] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _printGraph ; -- Begin function printGraph .p2align 2 _printGraph: ; @printGraph .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] stur wzr, [x29, #-12] b LBB3_1 LBB3_1: ; =>This Loop Header: Depth=1 ; Child Loop BB3_3 Depth 2 ldur w8, [x29, #-12] ldur x9, [x29, #-8] ldr w9, [x9] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB3_7 b LBB3_2 LBB3_2: ; in Loop: Header=BB3_1 Depth=1 ldur x8, [x29, #-8] ldr x8, [x8, #8] ldursw x9, [x29, #-12] ldr x8, [x8, x9, lsl #3] str x8, [sp, #8] ldur w9, [x29, #-12] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf b LBB3_3 LBB3_3: ; Parent Loop BB3_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr x8, [sp, #8] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB3_5 b LBB3_4 LBB3_4: ; in Loop: Header=BB3_3 Depth=2 ldr x8, [sp, #8] ldr w9, [x8] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf ldr x8, [sp, #8] ldr x8, [x8, #8] str x8, [sp, #8] b LBB3_3 LBB3_5: ; in Loop: Header=BB3_1 Depth=1 adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf b LBB3_6 LBB3_6: ; in Loop: Header=BB3_1 Depth=1 ldur w8, [x29, #-12] add w8, w8, #1 stur w8, [x29, #-12] b LBB3_1 LBB3_7: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #0 stur w8, [x29, #-20] ; 4-byte Folded Spill stur wzr, [x29, #-4] mov w8, #5 stur w8, [x29, #-8] ldur w0, [x29, #-8] bl _createGraph ldur w1, [x29, #-20] ; 4-byte Folded Reload stur x0, [x29, #-16] ldur x0, [x29, #-16] mov w2, #1 str w2, [sp, #12] ; 4-byte Folded Spill bl _addEdge ldur w1, [x29, #-20] ; 4-byte Folded Reload ldur x0, [x29, #-16] mov w2, #4 str w2, [sp, #24] ; 4-byte Folded Spill bl _addEdge ldr w1, [sp, #12] ; 4-byte Folded Reload ldur x0, [x29, #-16] mov w2, #2 str w2, [sp, #16] ; 4-byte Folded Spill bl _addEdge ldr w1, [sp, #12] ; 4-byte Folded Reload ldur x0, [x29, #-16] mov w2, #3 str w2, [sp, #20] ; 4-byte Folded Spill bl _addEdge ldr w1, [sp, #12] ; 4-byte Folded Reload ldr w2, [sp, #24] ; 4-byte Folded Reload ldur x0, [x29, #-16] bl _addEdge ldr w1, [sp, #16] ; 4-byte Folded Reload ldr w2, [sp, #20] ; 4-byte Folded Reload ldur x0, [x29, #-16] bl _addEdge ldr w1, [sp, #20] ; 4-byte Folded Reload ldr w2, [sp, #24] ; 4-byte Folded Reload ldur x0, [x29, #-16] bl _addEdge ldur x0, [x29, #-16] bl _printGraph ldur w0, [x29, #-20] ; 4-byte Folded Reload ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "\n Adjacency list of vertex %d\n head " 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 _newAdjListNode ## -- Begin function newAdjListNode .p2align 4, 0x90 _newAdjListNode: ## @newAdjListNode .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl %edi, -4(%rbp) movl $16, %edi callq _malloc movq %rax, -16(%rbp) movl -4(%rbp), %ecx movq -16(%rbp), %rax movl %ecx, (%rax) movq -16(%rbp), %rax movq $0, 8(%rax) movq -16(%rbp), %rax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _createGraph ## -- Begin function createGraph .p2align 4, 0x90 _createGraph: ## @createGraph .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl %edi, -4(%rbp) movl $16, %edi callq _malloc movq %rax, -16(%rbp) movl -4(%rbp), %ecx movq -16(%rbp), %rax movl %ecx, (%rax) movslq -4(%rbp), %rdi shlq $3, %rdi callq _malloc movq %rax, %rcx movq -16(%rbp), %rax movq %rcx, 8(%rax) movl $0, -20(%rbp) LBB1_1: ## =>This Inner Loop Header: Depth=1 movl -20(%rbp), %eax cmpl -4(%rbp), %eax jge LBB1_4 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 movq -16(%rbp), %rax movq 8(%rax), %rax movslq -20(%rbp), %rcx movq $0, (%rax,%rcx,8) ## %bb.3: ## in Loop: Header=BB1_1 Depth=1 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB1_1 LBB1_4: movq -16(%rbp), %rax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _addEdge ## -- Begin function addEdge .p2align 4, 0x90 _addEdge: ## @addEdge .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) movl %edx, -16(%rbp) movl -16(%rbp), %edi callq _newAdjListNode movq %rax, -24(%rbp) movq -8(%rbp), %rax movq 8(%rax), %rax movslq -12(%rbp), %rcx movq (%rax,%rcx,8), %rcx movq -24(%rbp), %rax movq %rcx, 8(%rax) movq -24(%rbp), %rdx movq -8(%rbp), %rax movq 8(%rax), %rax movslq -12(%rbp), %rcx movq %rdx, (%rax,%rcx,8) movl -12(%rbp), %edi callq _newAdjListNode movq %rax, -24(%rbp) movq -8(%rbp), %rax movq 8(%rax), %rax movslq -16(%rbp), %rcx movq (%rax,%rcx,8), %rcx movq -24(%rbp), %rax movq %rcx, 8(%rax) movq -24(%rbp), %rdx movq -8(%rbp), %rax movq 8(%rax), %rax movslq -16(%rbp), %rcx movq %rdx, (%rax,%rcx,8) addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _printGraph ## -- Begin function printGraph .p2align 4, 0x90 _printGraph: ## @printGraph .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movl $0, -12(%rbp) LBB3_1: ## =>This Loop Header: Depth=1 ## Child Loop BB3_3 Depth 2 movl -12(%rbp), %eax movq -8(%rbp), %rcx cmpl (%rcx), %eax jge LBB3_7 ## %bb.2: ## in Loop: Header=BB3_1 Depth=1 movq -8(%rbp), %rax movq 8(%rax), %rax movslq -12(%rbp), %rcx movq (%rax,%rcx,8), %rax movq %rax, -24(%rbp) movl -12(%rbp), %esi leaq L_.str(%rip), %rdi movb $0, %al callq _printf LBB3_3: ## Parent Loop BB3_1 Depth=1 ## => This Inner Loop Header: Depth=2 cmpq $0, -24(%rbp) je LBB3_5 ## %bb.4: ## in Loop: Header=BB3_3 Depth=2 movq -24(%rbp), %rax movl (%rax), %esi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf movq -24(%rbp), %rax movq 8(%rax), %rax movq %rax, -24(%rbp) jmp LBB3_3 LBB3_5: ## in Loop: Header=BB3_1 Depth=1 leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf ## %bb.6: ## in Loop: Header=BB3_1 Depth=1 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB3_1 LBB3_7: addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) movl $5, -8(%rbp) movl -8(%rbp), %edi callq _createGraph movq %rax, -16(%rbp) movq -16(%rbp), %rdi xorl %esi, %esi movl $1, %edx callq _addEdge movq -16(%rbp), %rdi xorl %esi, %esi movl $4, %edx callq _addEdge movq -16(%rbp), %rdi movl $1, %esi movl $2, %edx callq _addEdge movq -16(%rbp), %rdi movl $1, %esi movl $3, %edx callq _addEdge movq -16(%rbp), %rdi movl $1, %esi movl $4, %edx callq _addEdge movq -16(%rbp), %rdi movl $2, %esi movl $3, %edx callq _addEdge movq -16(%rbp), %rdi movl $3, %esi movl $4, %edx callq _addEdge movq -16(%rbp), %rdi callq _printGraph xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "\n Adjacency list of vertex %d\n head " L_.str.1: ## @.str.1 .asciz "-> %d" L_.str.2: ## @.str.2 .asciz "\n" .subsections_via_symbols
the_stack_data/11215.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _strdup ; -- Begin function strdup .p2align 2 _strdup: ; @strdup .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] ldur x0, [x29, #-8] bl _strlen add x8, x0, #1 str x8, [sp, #16] ldr x0, [sp, #16] bl _malloc 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] ldur x1, [x29, #-8] ldr x2, [sp, #16] mov x3, #-1 bl ___memcpy_chk b LBB0_2 LBB0_2: ldr x0, [sp, #8] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _strdup ## -- Begin function strdup .p2align 4, 0x90 _strdup: ## @strdup .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movq -8(%rbp), %rdi callq _strlen addq $1, %rax movq %rax, -16(%rbp) movq -16(%rbp), %rdi callq _malloc movq %rax, -24(%rbp) cmpq $0, -24(%rbp) je LBB0_2 ## %bb.1: movq -24(%rbp), %rdi movq -8(%rbp), %rsi movq -16(%rbp), %rdx movq $-1, %rcx callq ___memcpy_chk LBB0_2: movq -24(%rbp), %rax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/97012596.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _ft_create_tab ; -- Begin function ft_create_tab .p2align 2 _ft_create_tab: ; @ft_create_tab .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] str w1, [sp, #4] str wzr, [sp] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp] ldr w9, [sp, #4] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp] ldr x9, [sp, #8] ldrsw x10, [sp] str w8, [x9, x10, lsl #2] ldr w8, [sp] add w8, w8, #1 str w8, [sp] b LBB0_1 LBB0_3: add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _ft_get_index ; -- Begin function ft_get_index .p2align 2 _ft_get_index: ; @ft_get_index .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, #16] str w1, [sp, #12] str wzr, [sp, #8] ldr w9, [sp, #12] mov w8, #10 subs w8, w8, w9 str w8, [sp, #4] 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, ge tbnz w8, #0, LBB1_8 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 ldr x8, [sp, #16] ldrsw x9, [sp, #8] ldr w8, [x8, x9, lsl #2] ldr w9, [sp, #4] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB1_4 b LBB1_3 LBB1_3: ldr w8, [sp, #8] subs w8, w8, #1 str w8, [sp, #28] b LBB1_9 LBB1_4: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #8] ldr w9, [sp, #12] subs w9, w9, #1 subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB1_7 b LBB1_5 LBB1_5: ; in Loop: Header=BB1_1 Depth=1 ldr x8, [sp, #16] ldrsw x9, [sp, #8] ldr w8, [x8, x9, lsl #2] ldr w9, [sp, #4] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_7 b LBB1_6 LBB1_6: ldr w8, [sp, #8] str w8, [sp, #28] b LBB1_9 LBB1_7: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #8] add w8, w8, #1 str w8, [sp, #8] ldr w8, [sp, #4] add w8, w8, #1 str w8, [sp, #4] b LBB1_1 LBB1_8: mov w8, #-1 str w8, [sp, #28] b LBB1_9 LBB1_9: ldr w0, [sp, #28] add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _ft_increment ; -- Begin function ft_increment .p2align 2 _ft_increment: ; @ft_increment .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, #24] str w1, [sp, #20] str w2, [sp, #16] ldr w8, [sp, #20] add w8, w8, #1 str w8, [sp, #12] ldr x8, [sp, #24] ldrsw x9, [sp, #20] add x9, x8, x9, lsl #2 ldr w8, [x9] add w8, w8, #1 str w8, [x9] b LBB2_1 LBB2_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #12] ldr w9, [sp, #16] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB2_3 b LBB2_2 LBB2_2: ; in Loop: Header=BB2_1 Depth=1 ldr x8, [sp, #24] ldr w9, [sp, #12] subs w9, w9, #1 ldr w8, [x8, w9, sxtw #2] add w8, w8, #1 ldr x9, [sp, #24] ldrsw x10, [sp, #12] str w8, [x9, x10, lsl #2] ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB2_1 LBB2_3: add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _ft_print_array ; -- Begin function ft_print_array .p2align 2 _ft_print_array: ; @ft_print_array .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #8] str w1, [sp, #4] str wzr, [sp] b LBB3_1 LBB3_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp] ldr w9, [sp, #4] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB3_3 b LBB3_2 LBB3_2: ; in Loop: Header=BB3_1 Depth=1 ldr x8, [sp, #8] ldrsw x9, [sp] ldr w8, [x8, x9, lsl #2] add w8, w8, #48 sxtb w0, w8 bl _ft_putchar ldr w8, [sp] add w8, w8, #1 str w8, [sp] b LBB3_1 LBB3_3: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _ft_print_combn ; -- Begin function ft_print_combn .p2align 2 _ft_print_combn: ; @ft_print_combn .cfi_startproc ; %bb.0: stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill .cfi_def_cfa_offset 16 mov x29, sp .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 sub sp, sp, #64 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] stur w0, [x29, #-12] ldur w8, [x29, #-12] ; kill: def $x8 killed $w8 mov x9, sp stur x9, [x29, #-24] lsl x9, x8, #2 add x9, x9, #15 and x9, x9, #0xfffffffffffffff0 stur x9, [x29, #-56] ; 8-byte Folded Spill adrp x16, ___chkstk_darwin@GOTPAGE ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF] blr x16 ldur x10, [x29, #-56] ; 8-byte Folded Reload mov x9, sp subs x0, x9, x10 stur x0, [x29, #-48] ; 8-byte Folded Spill mov sp, x0 stur x8, [x29, #-32] ldur w1, [x29, #-12] bl _ft_create_tab b LBB4_1 LBB4_1: ; =>This Inner Loop Header: Depth=1 ldur x0, [x29, #-48] ; 8-byte Folded Reload ldur w1, [x29, #-12] bl _ft_get_index adds w8, w0, #1 cset w8, eq tbnz w8, #0, LBB4_3 b LBB4_2 LBB4_2: ; in Loop: Header=BB4_1 Depth=1 ldur x0, [x29, #-48] ; 8-byte Folded Reload ldur w1, [x29, #-12] bl _ft_get_index mov x8, x0 ldur x0, [x29, #-48] ; 8-byte Folded Reload stur w8, [x29, #-36] ldur w1, [x29, #-12] bl _ft_print_array ldur x0, [x29, #-48] ; 8-byte Folded Reload ldur w1, [x29, #-36] ldur w2, [x29, #-12] bl _ft_increment mov w0, #44 bl _ft_putchar mov w0, #32 bl _ft_putchar b LBB4_1 LBB4_3: ldur x0, [x29, #-48] ; 8-byte Folded Reload ldur w1, [x29, #-12] bl _ft_print_array ldur x8, [x29, #-24] stur x8, [x29, #-64] ; 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, LBB4_5 b LBB4_4 LBB4_4: bl ___stack_chk_fail LBB4_5: ldur x8, [x29, #-64] ; 8-byte Folded Reload mov sp, x8 mov sp, x29 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 _ft_create_tab ## -- Begin function ft_create_tab .p2align 4, 0x90 _ft_create_tab: ## @ft_create_tab .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) movl $0, -16(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movl -16(%rbp), %eax cmpl -12(%rbp), %eax jge LBB0_3 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl -16(%rbp), %edx movq -8(%rbp), %rax movslq -16(%rbp), %rcx movl %edx, (%rax,%rcx,4) movl -16(%rbp), %eax addl $1, %eax movl %eax, -16(%rbp) jmp LBB0_1 LBB0_3: popq %rbp retq .cfi_endproc ## -- End function .globl _ft_get_index ## -- Begin function ft_get_index .p2align 4, 0x90 _ft_get_index: ## @ft_get_index .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -16(%rbp) movl %esi, -20(%rbp) movl $0, -24(%rbp) movl $10, %eax subl -20(%rbp), %eax movl %eax, -28(%rbp) LBB1_1: ## =>This Inner Loop Header: Depth=1 movl -24(%rbp), %eax cmpl -20(%rbp), %eax jge LBB1_8 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 movq -16(%rbp), %rax movslq -24(%rbp), %rcx movl (%rax,%rcx,4), %eax cmpl -28(%rbp), %eax jne LBB1_4 ## %bb.3: movl -24(%rbp), %eax subl $1, %eax movl %eax, -4(%rbp) jmp LBB1_9 LBB1_4: ## in Loop: Header=BB1_1 Depth=1 movl -24(%rbp), %eax movl -20(%rbp), %ecx subl $1, %ecx cmpl %ecx, %eax jne LBB1_7 ## %bb.5: ## in Loop: Header=BB1_1 Depth=1 movq -16(%rbp), %rax movslq -24(%rbp), %rcx movl (%rax,%rcx,4), %eax cmpl -28(%rbp), %eax jge LBB1_7 ## %bb.6: movl -24(%rbp), %eax movl %eax, -4(%rbp) jmp LBB1_9 LBB1_7: ## in Loop: Header=BB1_1 Depth=1 movl -24(%rbp), %eax addl $1, %eax movl %eax, -24(%rbp) movl -28(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) jmp LBB1_1 LBB1_8: movl $-1, -4(%rbp) LBB1_9: movl -4(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .globl _ft_increment ## -- Begin function ft_increment .p2align 4, 0x90 _ft_increment: ## @ft_increment .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) movl %edx, -16(%rbp) movl -12(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) movq -8(%rbp), %rax movslq -12(%rbp), %rcx movl (%rax,%rcx,4), %edx addl $1, %edx movl %edx, (%rax,%rcx,4) LBB2_1: ## =>This Inner Loop Header: Depth=1 movl -20(%rbp), %eax cmpl -16(%rbp), %eax jge LBB2_3 ## %bb.2: ## in Loop: Header=BB2_1 Depth=1 movq -8(%rbp), %rax movl -20(%rbp), %ecx subl $1, %ecx movslq %ecx, %rcx movl (%rax,%rcx,4), %edx addl $1, %edx movq -8(%rbp), %rax movslq -20(%rbp), %rcx movl %edx, (%rax,%rcx,4) movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB2_1 LBB2_3: popq %rbp retq .cfi_endproc ## -- End function .globl _ft_print_array ## -- Begin function ft_print_array .p2align 4, 0x90 _ft_print_array: ## @ft_print_array .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) movl $0, -16(%rbp) LBB3_1: ## =>This Inner Loop Header: Depth=1 movl -16(%rbp), %eax cmpl -12(%rbp), %eax jge LBB3_3 ## %bb.2: ## in Loop: Header=BB3_1 Depth=1 movq -8(%rbp), %rax movslq -16(%rbp), %rcx movl (%rax,%rcx,4), %eax addl $48, %eax ## kill: def $al killed $al killed $eax movsbl %al, %edi callq _ft_putchar movl -16(%rbp), %eax addl $1, %eax movl %eax, -16(%rbp) jmp LBB3_1 LBB3_3: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _ft_print_combn ## -- Begin function ft_print_combn .p2align 4, 0x90 _ft_print_combn: ## @ft_print_combn .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $64, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl %edi, -12(%rbp) movl -12(%rbp), %eax ## kill: def $rax killed $eax movq %rax, -56(%rbp) ## 8-byte Spill movq %rsp, %rcx movq %rcx, -24(%rbp) shlq $2, %rax callq ____chkstk_darwin addq $15, %rax andq $-16, %rax subq %rax, %rsp movq -56(%rbp), %rax ## 8-byte Reload movq %rsp, %rdi movq %rdi, -48(%rbp) ## 8-byte Spill movq %rax, -32(%rbp) movl -12(%rbp), %esi callq _ft_create_tab LBB4_1: ## =>This Inner Loop Header: Depth=1 movq -48(%rbp), %rdi ## 8-byte Reload movl -12(%rbp), %esi callq _ft_get_index cmpl $-1, %eax je LBB4_3 ## %bb.2: ## in Loop: Header=BB4_1 Depth=1 movq -48(%rbp), %rdi ## 8-byte Reload movl -12(%rbp), %esi callq _ft_get_index movq -48(%rbp), %rdi ## 8-byte Reload movl %eax, -36(%rbp) movl -12(%rbp), %esi callq _ft_print_array movq -48(%rbp), %rdi ## 8-byte Reload movl -36(%rbp), %esi movl -12(%rbp), %edx callq _ft_increment movl $44, %edi callq _ft_putchar movl $32, %edi callq _ft_putchar jmp LBB4_1 LBB4_3: movq -48(%rbp), %rdi ## 8-byte Reload movl -12(%rbp), %esi callq _ft_print_array movq -24(%rbp), %rax movq %rax, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB4_5 ## %bb.4: movq %rbp, %rsp popq %rbp retq LBB4_5: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/79857.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _kernel_correlation ; -- Begin function kernel_correlation .p2align 2 _kernel_correlation: ; @kernel_correlation .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur w0, [x29, #-4] str w1, [sp, #8] ldr w8, [sp, #8] str w8, [sp, #4] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #4] ldur w9, [x29, #-4] subs w8, w8, w9 cset w8, lt tbnz w8, #0, LBB0_4 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldr w0, [sp, #4] bl _use b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #4] subs w8, w8, #1 str w8, [sp, #4] b LBB0_1 LBB0_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 _kernel_correlation ## -- Begin function kernel_correlation .p2align 4, 0x90 _kernel_correlation: ## @kernel_correlation .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl %edi, -4(%rbp) movl %esi, -8(%rbp) movl -8(%rbp), %eax movl %eax, -12(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movl -12(%rbp), %eax cmpl -4(%rbp), %eax jl LBB0_4 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl -12(%rbp), %edi callq _use ## %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: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/153267617.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _foo ; -- Begin function foo .p2align 2 _foo: ; @foo .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 ldr w8, [sp, #12] add w8, w8, #1 str w8, [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 _foo ## -- Begin function foo .p2align 4, 0x90 _foo: ## @foo .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl -4(%rbp), %eax addl $1, %eax movl %eax, -4(%rbp) popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/82951361.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 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] str wzr, [sp] ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: bl ___stack_chk_fail LBB0_2: mov w0, #20 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -36(%rbp) movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_2 ## %bb.1: movl $20, %eax addq $48, %rsp popq %rbp retq LBB0_2: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/1057182.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] bl _pthread_self adrp x8, _main_thread@PAGE str x0, [x8, _main_thread@PAGEOFF] add x0, sp, #16 mov x3, #0 mov x1, x3 adrp x2, _start@PAGE add x2, x2, _start@PAGEOFF bl _pthread_create str w0, [sp, #12] ldr w8, [sp, #12] subs w8, w8, #0 cset w9, ne ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: adrp x0, l___func__.main@PAGE add x0, x0, l___func__.main@PAGEOFF adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF mov w2, #45 adrp x3, l_.str.1@PAGE add x3, x3, l_.str.1@PAGEOFF bl ___assert_rtn LBB0_2: b LBB0_3 LBB0_3: mov x0, #0 bl _pthread_exit .cfi_endproc ; -- End function .p2align 2 ; -- Begin function start _start: ; @start .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #8] adrp x8, _main_thread@PAGE ldr x0, [x8, _main_thread@PAGEOFF] mov x1, #0 bl _pthread_join str w0, [sp, #4] ldr w8, [sp, #4] subs w8, w8, #0 cset w9, ne ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: adrp x0, l___func__.start@PAGE add x0, x0, l___func__.start@PAGEOFF adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF mov w2, #30 adrp x3, l_.str.1@PAGE add x3, x3, l_.str.1@PAGEOFF bl ___assert_rtn LBB1_2: b LBB1_3 LBB1_3: mov w0, #10 bl _sleep ldr x0, [sp, #8] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .zerofill __DATA,__bss,_main_thread,8,3 ; @main_thread .section __TEXT,__cstring,cstring_literals l___func__.main: ; @__func__.main .asciz "main" l_.str: ; @.str .asciz "1230496.c" l_.str.1: ; @.str.1 .asciz "i == 0" l___func__.start: ; @__func__.start .asciz "start" .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) callq _pthread_self movq %rax, _main_thread(%rip) leaq -16(%rbp), %rdi xorl %eax, %eax movl %eax, %ecx leaq _start(%rip), %rdx movq %rcx, %rsi callq _pthread_create movl %eax, -20(%rbp) cmpl $0, -20(%rbp) sete %al xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB0_2 ## %bb.1: leaq L___func__.main(%rip), %rdi leaq L_.str(%rip), %rsi leaq L_.str.1(%rip), %rcx movl $45, %edx callq ___assert_rtn LBB0_2: jmp LBB0_3 LBB0_3: xorl %eax, %eax movl %eax, %edi callq _pthread_exit .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function start _start: ## @start .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) movq _main_thread(%rip), %rdi xorl %eax, %eax movl %eax, %esi callq _pthread_join movl %eax, -12(%rbp) cmpl $0, -12(%rbp) sete %al xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB1_2 ## %bb.1: leaq L___func__.start(%rip), %rdi leaq L_.str(%rip), %rsi leaq L_.str.1(%rip), %rcx movl $30, %edx callq ___assert_rtn LBB1_2: jmp LBB1_3 LBB1_3: movl $10, %edi callq _sleep movq -8(%rbp), %rax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .zerofill __DATA,__bss,_main_thread,8,3 ## @main_thread .section __TEXT,__cstring,cstring_literals L___func__.main: ## @__func__.main .asciz "main" L_.str: ## @.str .asciz "1230496.c" L_.str.1: ## @.str.1 .asciz "i == 0" L___func__.start: ## @__func__.start .asciz "start" .subsections_via_symbols
the_stack_data/1230496.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill .cfi_def_cfa_offset 16 mov x29, sp .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov w0, #0 ldp x29, x30, [sp], #16 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq L_.str(%rip), %rdi 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/148864.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _shlib_second ; -- Begin function shlib_second .p2align 2 _shlib_second: ; @shlib_second .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] bl _abort .cfi_endproc ; -- End function .globl _shlib_first ; -- Begin function shlib_first .p2align 2 _shlib_first: ; @shlib_first .cfi_startproc ; %bb.0: stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill .cfi_def_cfa_offset 16 mov x29, sp .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w0, #0 bl _shlib_second 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 _shlib_second ## -- Begin function shlib_second .p2align 4, 0x90 _shlib_second: ## @shlib_second .cfi_startproc ## %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) callq _abort .cfi_endproc ## -- End function .globl _shlib_first ## -- Begin function shlib_first .p2align 4, 0x90 _shlib_first: ## @shlib_first .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp xorl %edi, %edi callq _shlib_second popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/14199798.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov x9, sp sub x8, x29, #8 str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf ldur w8, [x29, #-8] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB0_5 b LBB0_1 LBB0_1: b LBB0_2 LBB0_2: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-8] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: ; in Loop: Header=BB0_2 Depth=1 ldur w8, [x29, #-8] mov w9, #10 sdiv w10, w8, w9 mul w10, w10, w9 subs w8, w8, w10 stur w8, [x29, #-12] ldur w8, [x29, #-8] sdiv w8, w8, w9 stur w8, [x29, #-8] ldur w9, [x29, #-12] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf b LBB0_2 LBB0_4: b LBB0_14 LBB0_5: ldur w8, [x29, #-8] subs w8, w8, #0 cset w8, ge tbnz w8, #0, LBB0_10 b LBB0_6 LBB0_6: ldur w0, [x29, #-8] bl _abs stur w0, [x29, #-8] b LBB0_7 LBB0_7: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-8] subs w8, w8, #10 cset w8, le tbnz w8, #0, LBB0_9 b LBB0_8 LBB0_8: ; in Loop: Header=BB0_7 Depth=1 ldur w8, [x29, #-8] mov w9, #10 sdiv w10, w8, w9 mul w10, w10, w9 subs w8, w8, w10 stur w8, [x29, #-12] ldur w8, [x29, #-8] sdiv w8, w8, w9 stur w8, [x29, #-8] ldur w9, [x29, #-12] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf b LBB0_7 LBB0_9: ldur w8, [x29, #-8] mov w10, #10 sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 stur w8, [x29, #-12] ldur w9, [x29, #-12] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf b LBB0_13 LBB0_10: ldur w8, [x29, #-8] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_12 b LBB0_11 LBB0_11: ldur w8, [x29, #-8] stur w8, [x29, #-12] ldur w9, [x29, #-12] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf b LBB0_12 LBB0_12: b LBB0_13 LBB0_13: b LBB0_14 LBB0_14: adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf mov w0, #0 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "\nEnter an integer > " l_.str.1: ; @.str.1 .asciz "%d" l_.str.2: ; @.str.2 .asciz "\n" l_.str.3: ; @.str.3 .asciz "%d\n" l_.str.4: ; @.str.4 .asciz "-%d\n" l_.str.5: ; @.str.5 .asciz "That's all, have a nice day!\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) leaq L_.str(%rip), %rdi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi leaq -8(%rbp), %rsi movb $0, %al callq _scanf leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf cmpl $0, -8(%rbp) jle LBB0_5 ## %bb.1: jmp LBB0_2 LBB0_2: ## =>This Inner Loop Header: Depth=1 cmpl $0, -8(%rbp) je LBB0_4 ## %bb.3: ## in Loop: Header=BB0_2 Depth=1 movl -8(%rbp), %eax movl $10, %ecx cltd idivl %ecx movl %edx, -12(%rbp) movl -8(%rbp), %eax movl $10, %ecx cltd idivl %ecx movl %eax, -8(%rbp) movl -12(%rbp), %esi leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf jmp LBB0_2 LBB0_4: jmp LBB0_14 LBB0_5: cmpl $0, -8(%rbp) jge LBB0_10 ## %bb.6: movl -8(%rbp), %edi callq _abs movl %eax, -8(%rbp) LBB0_7: ## =>This Inner Loop Header: Depth=1 cmpl $10, -8(%rbp) jle LBB0_9 ## %bb.8: ## in Loop: Header=BB0_7 Depth=1 movl -8(%rbp), %eax movl $10, %ecx cltd idivl %ecx movl %edx, -12(%rbp) movl -8(%rbp), %eax movl $10, %ecx cltd idivl %ecx movl %eax, -8(%rbp) movl -12(%rbp), %esi leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf jmp LBB0_7 LBB0_9: movl -8(%rbp), %eax movl $10, %ecx cltd idivl %ecx movl %edx, -12(%rbp) movl -12(%rbp), %esi leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf jmp LBB0_13 LBB0_10: cmpl $0, -8(%rbp) jne LBB0_12 ## %bb.11: movl -8(%rbp), %eax movl %eax, -12(%rbp) movl -12(%rbp), %esi leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf LBB0_12: jmp LBB0_13 LBB0_13: jmp LBB0_14 LBB0_14: leaq L_.str.5(%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 "\nEnter an integer > " L_.str.1: ## @.str.1 .asciz "%d" L_.str.2: ## @.str.2 .asciz "\n" L_.str.3: ## @.str.3 .asciz "%d\n" L_.str.4: ## @.str.4 .asciz "-%d\n" L_.str.5: ## @.str.5 .asciz "That's all, have a nice day!\n" .subsections_via_symbols
the_stack_data/165764836.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov x9, sp sub x8, x29, #8 str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf mov w8, #1 str w8, [sp, #16] mov w8, #2 stur w8, [x29, #-12] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-12] ldur w9, [x29, #-8] mov w10, #2 sdiv w9, w9, w10 subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_6 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-8] ldur w10, [x29, #-12] sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 str wzr, [sp, #16] b LBB0_4 LBB0_4: ; in Loop: Header=BB0_1 Depth=1 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-12] add w8, w8, #1 stur w8, [x29, #-12] b LBB0_1 LBB0_6: ldr w8, [sp, #16] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB0_8 b LBB0_7 LBB0_7: adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf b LBB0_9 LBB0_8: adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf b LBB0_9 LBB0_9: ldur w0, [x29, #-4] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Enter a number to test: " l_.str.1: ; @.str.1 .asciz "%d" l_.str.2: ; @.str.2 .asciz "The number is prime.\n" l_.str.3: ; @.str.3 .asciz "The number is not prime .\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl $0, -4(%rbp) leaq L_.str(%rip), %rdi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi leaq -8(%rbp), %rsi movb $0, %al callq _scanf movl $1, -16(%rbp) movl $2, -12(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movl -12(%rbp), %eax movl %eax, -20(%rbp) ## 4-byte Spill movl -8(%rbp), %eax movl $2, %ecx cltd idivl %ecx movl %eax, %ecx movl -20(%rbp), %eax ## 4-byte Reload cmpl %ecx, %eax jg LBB0_6 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl -8(%rbp), %eax cltd idivl -12(%rbp) cmpl $0, %edx jne LBB0_4 ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movl $0, -16(%rbp) LBB0_4: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_5 LBB0_5: ## in Loop: Header=BB0_1 Depth=1 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB0_1 LBB0_6: cmpl $1, -16(%rbp) jne LBB0_8 ## %bb.7: leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf jmp LBB0_9 LBB0_8: leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf LBB0_9: movl -4(%rbp), %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Enter a number to test: " L_.str.1: ## @.str.1 .asciz "%d" L_.str.2: ## @.str.2 .asciz "The number is prime.\n" L_.str.3: ## @.str.3 .asciz "The number is not prime .\n" .subsections_via_symbols
the_stack_data/76699798.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _reverse_string ; -- Begin function reverse_string .p2align 2 _reverse_string: ; @reverse_string .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] ldur x0, [x29, #-8] bl _strlen mov x8, #1 mul x0, x8, x0 bl _malloc str x0, [sp, #16] ldur x0, [x29, #-8] bl _strlen subs x8, x0, #1 ; kill: def $w8 killed $w8 killed $x8 str w8, [sp, #12] str wzr, [sp, #8] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldrsw x8, [sp, #8] str x8, [sp] ; 8-byte Folded Spill ldur x0, [x29, #-8] bl _strlen ldr x8, [sp] ; 8-byte Folded Reload subs x8, x8, x0 cset w8, hs tbnz w8, #0, LBB0_4 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldur x8, [x29, #-8] ldrsw x9, [sp, #12] add x8, x8, x9 ldrb w8, [x8] ldr x9, [sp, #16] ldrsw x10, [sp, #8] add x9, x9, x10 strb w8, [x9] ldr w8, [sp, #12] subs w8, w8, #1 str w8, [sp, #12] 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: ldr x0, [sp, #16] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _ctoi ; -- Begin function ctoi .p2align 2 _ctoi: ; @ctoi .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 sturb w0, [x29, #-1] ldursb w0, [x29, #-1] bl _isdigit subs w8, w0, #0 cset w9, eq ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: adrp x0, l___func__.ctoi@PAGE add x0, x0, l___func__.ctoi@PAGEOFF adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF mov w2, #56 adrp x3, l_.str.1@PAGE add x3, x3, l_.str.1@PAGEOFF bl ___assert_rtn LBB1_2: b LBB1_3 LBB1_3: ldursb w8, [x29, #-1] subs w0, w8, #48 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _itoc ; -- Begin function itoc .p2align 2 _itoc: ; @itoc .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur w0, [x29, #-4] ldur w8, [x29, #-4] subs w8, w8, #0 cset w8, lt mov w9, #0 str w9, [sp, #8] ; 4-byte Folded Spill tbnz w8, #0, LBB2_2 b LBB2_1 LBB2_1: ldur w8, [x29, #-4] subs w8, w8, #9 cset w8, le str w8, [sp, #8] ; 4-byte Folded Spill b LBB2_2 LBB2_2: ldr w8, [sp, #8] ; 4-byte Folded Reload eor w9, w8, #0x1 ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB2_4 b LBB2_3 LBB2_3: adrp x0, l___func__.itoc@PAGE add x0, x0, l___func__.itoc@PAGEOFF adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF mov w2, #66 adrp x3, l_.str.2@PAGE add x3, x3, l_.str.2@PAGEOFF bl ___assert_rtn LBB2_4: b LBB2_5 LBB2_5: ldur w8, [x29, #-4] add w8, w8, #48 sxtb w0, w8 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _add_digits ; -- Begin function add_digits .p2align 2 _add_digits: ; @add_digits .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 sturb w0, [x29, #-1] sturb w1, [x29, #-2] sturb w2, [x29, #-3] stur x3, [x29, #-16] str x4, [sp, #24] ldursb w0, [x29, #-1] bl _ctoi str w0, [sp, #8] ; 4-byte Folded Spill ldursb w0, [x29, #-2] bl _ctoi mov x8, x0 ldr w0, [sp, #8] ; 4-byte Folded Reload add w8, w0, w8 str w8, [sp, #12] ; 4-byte Folded Spill ldursb w0, [x29, #-3] bl _ctoi ldr w8, [sp, #12] ; 4-byte Folded Reload add w8, w8, w0 str w8, [sp, #20] ldr w8, [sp, #20] mov w10, #10 str w10, [sp, #16] ; 4-byte Folded Spill sdiv w9, w8, w10 mul w9, w9, w10 subs w0, w8, w9 bl _itoc ldr w9, [sp, #16] ; 4-byte Folded Reload ldur x8, [x29, #-16] strb w0, [x8] ldr w8, [sp, #20] sdiv w0, w8, w9 bl _itoc ldr x8, [sp, #24] strb w0, [x8] ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _add_bigint ; -- Begin function add_bigint .p2align 2 _add_bigint: ; @add_bigint .cfi_startproc ; %bb.0: sub sp, sp, #80 .cfi_def_cfa_offset 80 stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp, #64 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] stur x1, [x29, #-16] sturb w2, [x29, #-17] str x3, [sp, #32] mov w8, #1 str w8, [sp, #24] str w8, [sp, #20] str w8, [sp, #16] ldur x8, [x29, #-8] ldrsb w8, [x8] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB4_2 b LBB4_1 LBB4_1: mov w8, #48 strb w8, [sp, #15] str wzr, [sp, #24] b LBB4_3 LBB4_2: ldur x8, [x29, #-8] ldrb w8, [x8] strb w8, [sp, #15] b LBB4_3 LBB4_3: ldur x8, [x29, #-16] ldrsb w8, [x8] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB4_5 b LBB4_4 LBB4_4: mov w8, #48 strb w8, [sp, #14] str wzr, [sp, #20] b LBB4_6 LBB4_5: ldur x8, [x29, #-16] ldrb w8, [x8] strb w8, [sp, #14] b LBB4_6 LBB4_6: ldrsb w0, [sp, #15] ldrsb w1, [sp, #14] ldursb w2, [x29, #-17] add x3, sp, #31 add x4, sp, #30 bl _add_digits ldrsb w8, [sp, #31] subs w8, w8, #48 cset w8, ne tbnz w8, #0, LBB4_9 b LBB4_7 LBB4_7: ldrsb w8, [sp, #30] subs w8, w8, #48 cset w8, ne tbnz w8, #0, LBB4_9 b LBB4_8 LBB4_8: ldr x8, [sp, #32] strb wzr, [x8] b LBB4_10 LBB4_9: ldrb w8, [sp, #31] ldr x9, [sp, #32] strb w8, [x9] ldur x8, [x29, #-8] ldrsw x9, [sp, #24] add x0, x8, x9 ldur x8, [x29, #-16] ldrsw x9, [sp, #20] add x1, x8, x9 ldrsb w2, [sp, #30] ldr x8, [sp, #32] ldrsw x9, [sp, #16] add x3, x8, x9 bl _add_bigint b LBB4_10 LBB4_10: ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .globl _print_bigint ; -- Begin function print_bigint .p2align 2 _print_bigint: ; @print_bigint .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] ldrb w8, [x8] sturb w8, [x29, #-9] ldursb w8, [x29, #-9] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB5_2 b LBB5_1 LBB5_1: b LBB5_3 LBB5_2: ldur x8, [x29, #-8] add x0, x8, #1 bl _print_bigint ldursb w10, [x29, #-9] mov x9, sp ; implicit-def: $x8 mov x8, x10 str x8, [x9] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf b LBB5_3 LBB5_3: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _make_bigint ; -- Begin function make_bigint .p2align 2 _make_bigint: ; @make_bigint .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 _reverse_string str x0, [sp] ldr x0, [sp] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _test_reverse_string ; -- Begin function test_reverse_string .p2align 2 _test_reverse_string: ; @test_reverse_string .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, l_.str.4@PAGE add x8, x8, l_.str.4@PAGEOFF str x8, [sp, #8] ldr x0, [sp, #8] bl _reverse_string str x0, [sp] ldr x0, [sp] adrp x1, l_.str.5@PAGE add x1, x1, l_.str.5@PAGEOFF bl _strcmp subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB7_2 b LBB7_1 LBB7_1: adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _printf b LBB7_3 LBB7_2: adrp x0, l_.str.7@PAGE add x0, x0, l_.str.7@PAGEOFF bl _printf b LBB7_3 LBB7_3: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _test_itoc ; -- Begin function test_itoc .p2align 2 _test_itoc: ; @test_itoc .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w0, #3 bl _itoc sturb w0, [x29, #-1] ldursb w8, [x29, #-1] subs w8, w8, #51 cset w8, ne tbnz w8, #0, LBB8_2 b LBB8_1 LBB8_1: adrp x0, l_.str.8@PAGE add x0, x0, l_.str.8@PAGEOFF bl _printf b LBB8_3 LBB8_2: adrp x0, l_.str.9@PAGE add x0, x0, l_.str.9@PAGEOFF bl _printf b LBB8_3 LBB8_3: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _test_add_digits ; -- Begin function test_add_digits .p2align 2 _test_add_digits: ; @test_add_digits .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w0, #55 mov w1, #52 mov w2, #49 sub x3, x29, #1 sub x4, x29, #2 bl _add_digits ldursb w8, [x29, #-1] subs w8, w8, #50 cset w8, ne tbnz w8, #0, LBB9_3 b LBB9_1 LBB9_1: ldursb w8, [x29, #-2] subs w8, w8, #49 cset w8, ne tbnz w8, #0, LBB9_3 b LBB9_2 LBB9_2: adrp x0, l_.str.10@PAGE add x0, x0, l_.str.10@PAGEOFF bl _printf b LBB9_4 LBB9_3: adrp x0, l_.str.11@PAGE add x0, x0, l_.str.11@PAGEOFF bl _printf b LBB9_4 LBB9_4: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _test_add_bigint ; -- Begin function test_add_bigint .p2align 2 _test_add_bigint: ; @test_add_bigint .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, l_.str.12@PAGE add x8, x8, l_.str.12@PAGEOFF stur x8, [x29, #-8] adrp x8, l_.str.13@PAGE add x8, x8, l_.str.13@PAGEOFF stur x8, [x29, #-16] adrp x8, l_.str.14@PAGE add x8, x8, l_.str.14@PAGEOFF str x8, [sp, #24] ldur x0, [x29, #-8] bl _make_bigint str x0, [sp, #16] ldur x0, [x29, #-16] bl _make_bigint str x0, [sp, #8] mov x0, #100 bl _malloc str x0, [sp] ldr x0, [sp, #16] ldr x1, [sp, #8] ldr x3, [sp] mov w2, #48 bl _add_bigint ldr x0, [sp] ldr x1, [sp, #24] bl _strcmp subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB10_2 b LBB10_1 LBB10_1: adrp x0, l_.str.15@PAGE add x0, x0, l_.str.15@PAGEOFF bl _printf b LBB10_3 LBB10_2: adrp x0, l_.str.16@PAGE add x0, x0, l_.str.16@PAGEOFF bl _printf b LBB10_3 LBB10_3: ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #0 str w8, [sp, #12] ; 4-byte Folded Spill stur wzr, [x29, #-4] stur w0, [x29, #-8] str x1, [sp, #16] bl _test_reverse_string bl _test_itoc bl _test_add_digits bl _test_add_bigint 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___func__.ctoi: ; @__func__.ctoi .asciz "ctoi" l_.str: ; @.str .asciz "107560.c" l_.str.1: ; @.str.1 .asciz "isdigit(c)" l___func__.itoc: ; @__func__.itoc .asciz "itoc" l_.str.2: ; @.str.2 .asciz "i>=0 && i<=9" l_.str.3: ; @.str.3 .asciz "%c" l_.str.4: ; @.str.4 .asciz "123" l_.str.5: ; @.str.5 .asciz "321" l_.str.6: ; @.str.6 .asciz "reverse_string passed\n" l_.str.7: ; @.str.7 .asciz "reverse_string failed\n" l_.str.8: ; @.str.8 .asciz "itoc passed\n" l_.str.9: ; @.str.9 .asciz "itoc failed\n" l_.str.10: ; @.str.10 .asciz "add_digits passed\n" l_.str.11: ; @.str.11 .asciz "add_digits failed\n" l_.str.12: ; @.str.12 .asciz "1" l_.str.13: ; @.str.13 .asciz "99999999999999999999999999999999999999999999" l_.str.14: ; @.str.14 .asciz "000000000000000000000000000000000000000000001" l_.str.15: ; @.str.15 .asciz "add_bigint passed\n" l_.str.16: ; @.str.16 .asciz "add_bigint failed\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _reverse_string ## -- Begin function reverse_string .p2align 4, 0x90 _reverse_string: ## @reverse_string .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movq -8(%rbp), %rdi callq _strlen movq %rax, %rdi shlq $0, %rdi callq _malloc movq %rax, -16(%rbp) movq -8(%rbp), %rdi callq _strlen subq $1, %rax ## kill: def $eax killed $eax killed $rax movl %eax, -20(%rbp) movl $0, -24(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movslq -24(%rbp), %rax movq %rax, -32(%rbp) ## 8-byte Spill movq -8(%rbp), %rdi callq _strlen movq %rax, %rcx movq -32(%rbp), %rax ## 8-byte Reload cmpq %rcx, %rax jae LBB0_4 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movq -8(%rbp), %rax movslq -20(%rbp), %rcx movb (%rax,%rcx), %dl movq -16(%rbp), %rax movslq -24(%rbp), %rcx movb %dl, (%rax,%rcx) movl -20(%rbp), %eax addl $-1, %eax movl %eax, -20(%rbp) ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movl -24(%rbp), %eax addl $1, %eax movl %eax, -24(%rbp) jmp LBB0_1 LBB0_4: movq -16(%rbp), %rax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _ctoi ## -- Begin function ctoi .p2align 4, 0x90 _ctoi: ## @ctoi .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movb %dil, %al movb %al, -1(%rbp) movsbl -1(%rbp), %edi callq _isdigit cmpl $0, %eax setne %al xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB1_2 ## %bb.1: leaq L___func__.ctoi(%rip), %rdi leaq L_.str(%rip), %rsi leaq L_.str.1(%rip), %rcx movl $56, %edx callq ___assert_rtn LBB1_2: jmp LBB1_3 LBB1_3: movsbl -1(%rbp), %eax subl $48, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _itoc ## -- Begin function itoc .p2align 4, 0x90 _itoc: ## @itoc .cfi_startproc ## %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) xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $0, -4(%rbp) movb %al, -5(%rbp) ## 1-byte Spill jl LBB2_2 ## %bb.1: cmpl $9, -4(%rbp) setle %al movb %al, -5(%rbp) ## 1-byte Spill LBB2_2: movb -5(%rbp), %al ## 1-byte Reload xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB2_4 ## %bb.3: leaq L___func__.itoc(%rip), %rdi leaq L_.str(%rip), %rsi leaq L_.str.2(%rip), %rcx movl $66, %edx callq ___assert_rtn LBB2_4: jmp LBB2_5 LBB2_5: movl -4(%rbp), %eax addl $48, %eax ## kill: def $al killed $al killed $eax movsbl %al, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _add_digits ## -- Begin function add_digits .p2align 4, 0x90 _add_digits: ## @add_digits .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movb %dl, %al movb %sil, %dl movb %dil, %sil movb %sil, -1(%rbp) movb %dl, -2(%rbp) movb %al, -3(%rbp) movq %rcx, -16(%rbp) movq %r8, -24(%rbp) movsbl -1(%rbp), %edi callq _ctoi movl %eax, -36(%rbp) ## 4-byte Spill movsbl -2(%rbp), %edi callq _ctoi movl %eax, %ecx movl -36(%rbp), %eax ## 4-byte Reload addl %ecx, %eax movl %eax, -32(%rbp) ## 4-byte Spill movsbl -3(%rbp), %edi callq _ctoi movl %eax, %ecx movl -32(%rbp), %eax ## 4-byte Reload addl %ecx, %eax movl %eax, -28(%rbp) movl -28(%rbp), %eax movl $10, %ecx cltd idivl %ecx movl %edx, %edi callq _itoc movb %al, %cl movq -16(%rbp), %rax movb %cl, (%rax) movl -28(%rbp), %eax movl $10, %ecx cltd idivl %ecx movl %eax, %edi callq _itoc movb %al, %cl movq -24(%rbp), %rax movb %cl, (%rax) addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _add_bigint ## -- Begin function add_bigint .p2align 4, 0x90 _add_bigint: ## @add_bigint .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $64, %rsp movb %dl, %al movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) movb %al, -17(%rbp) movq %rcx, -32(%rbp) movl $1, -40(%rbp) movl $1, -44(%rbp) movl $1, -48(%rbp) movq -8(%rbp), %rax movsbl (%rax), %eax cmpl $0, %eax jne LBB4_2 ## %bb.1: movb $48, -49(%rbp) movl $0, -40(%rbp) jmp LBB4_3 LBB4_2: movq -8(%rbp), %rax movb (%rax), %al movb %al, -49(%rbp) LBB4_3: movq -16(%rbp), %rax movsbl (%rax), %eax cmpl $0, %eax jne LBB4_5 ## %bb.4: movb $48, -50(%rbp) movl $0, -44(%rbp) jmp LBB4_6 LBB4_5: movq -16(%rbp), %rax movb (%rax), %al movb %al, -50(%rbp) LBB4_6: movb -49(%rbp), %dl movb -50(%rbp), %al leaq -33(%rbp), %rcx leaq -34(%rbp), %r8 movsbl %dl, %edi movsbl %al, %esi movsbl -17(%rbp), %edx callq _add_digits movsbl -33(%rbp), %eax cmpl $48, %eax jne LBB4_9 ## %bb.7: movsbl -34(%rbp), %eax cmpl $48, %eax jne LBB4_9 ## %bb.8: movq -32(%rbp), %rax movb $0, (%rax) jmp LBB4_10 LBB4_9: movb -33(%rbp), %cl movq -32(%rbp), %rax movb %cl, (%rax) movq -8(%rbp), %rdi movslq -40(%rbp), %rax addq %rax, %rdi movq -16(%rbp), %rsi movslq -44(%rbp), %rax addq %rax, %rsi movb -34(%rbp), %al movq -32(%rbp), %rcx movslq -48(%rbp), %rdx addq %rdx, %rcx movsbl %al, %edx callq _add_bigint LBB4_10: addq $64, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _print_bigint ## -- Begin function print_bigint .p2align 4, 0x90 _print_bigint: ## @print_bigint .cfi_startproc ## %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 movb (%rax), %al movb %al, -9(%rbp) movsbl -9(%rbp), %eax cmpl $0, %eax jne LBB5_2 ## %bb.1: jmp LBB5_3 LBB5_2: movq -8(%rbp), %rdi addq $1, %rdi callq _print_bigint movsbl -9(%rbp), %esi leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf LBB5_3: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _make_bigint ## -- Begin function make_bigint .p2align 4, 0x90 _make_bigint: ## @make_bigint .cfi_startproc ## %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 _reverse_string movq %rax, -16(%rbp) movq -16(%rbp), %rax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _test_reverse_string ## -- Begin function test_reverse_string .p2align 4, 0x90 _test_reverse_string: ## @test_reverse_string .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp leaq L_.str.4(%rip), %rax movq %rax, -8(%rbp) movq -8(%rbp), %rdi callq _reverse_string movq %rax, -16(%rbp) movq -16(%rbp), %rdi leaq L_.str.5(%rip), %rsi callq _strcmp cmpl $0, %eax jne LBB7_2 ## %bb.1: leaq L_.str.6(%rip), %rdi movb $0, %al callq _printf jmp LBB7_3 LBB7_2: leaq L_.str.7(%rip), %rdi movb $0, %al callq _printf LBB7_3: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _test_itoc ## -- Begin function test_itoc .p2align 4, 0x90 _test_itoc: ## @test_itoc .cfi_startproc ## %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 $3, %edi callq _itoc movb %al, -1(%rbp) movsbl -1(%rbp), %eax cmpl $51, %eax jne LBB8_2 ## %bb.1: leaq L_.str.8(%rip), %rdi movb $0, %al callq _printf jmp LBB8_3 LBB8_2: leaq L_.str.9(%rip), %rdi movb $0, %al callq _printf LBB8_3: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _test_add_digits ## -- Begin function test_add_digits .p2align 4, 0x90 _test_add_digits: ## @test_add_digits .cfi_startproc ## %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 $55, %edi movl $52, %esi movl $49, %edx leaq -1(%rbp), %rcx leaq -2(%rbp), %r8 callq _add_digits movsbl -1(%rbp), %eax cmpl $50, %eax jne LBB9_3 ## %bb.1: movsbl -2(%rbp), %eax cmpl $49, %eax jne LBB9_3 ## %bb.2: leaq L_.str.10(%rip), %rdi movb $0, %al callq _printf jmp LBB9_4 LBB9_3: leaq L_.str.11(%rip), %rdi movb $0, %al callq _printf LBB9_4: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _test_add_bigint ## -- Begin function test_add_bigint .p2align 4, 0x90 _test_add_bigint: ## @test_add_bigint .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 leaq L_.str.12(%rip), %rax movq %rax, -8(%rbp) leaq L_.str.13(%rip), %rax movq %rax, -16(%rbp) leaq L_.str.14(%rip), %rax movq %rax, -24(%rbp) movq -8(%rbp), %rdi callq _make_bigint movq %rax, -32(%rbp) movq -16(%rbp), %rdi callq _make_bigint movq %rax, -40(%rbp) movl $100, %edi callq _malloc movq %rax, -48(%rbp) movq -32(%rbp), %rdi movq -40(%rbp), %rsi movq -48(%rbp), %rcx movl $48, %edx callq _add_bigint movq -48(%rbp), %rdi movq -24(%rbp), %rsi callq _strcmp cmpl $0, %eax jne LBB10_2 ## %bb.1: leaq L_.str.15(%rip), %rdi movb $0, %al callq _printf jmp LBB10_3 LBB10_2: leaq L_.str.16(%rip), %rdi movb $0, %al callq _printf LBB10_3: 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 $16, %rsp movl $0, -4(%rbp) movl %edi, -8(%rbp) movq %rsi, -16(%rbp) callq _test_reverse_string callq _test_itoc callq _test_add_digits callq _test_add_bigint xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L___func__.ctoi: ## @__func__.ctoi .asciz "ctoi" L_.str: ## @.str .asciz "107560.c" L_.str.1: ## @.str.1 .asciz "isdigit(c)" L___func__.itoc: ## @__func__.itoc .asciz "itoc" L_.str.2: ## @.str.2 .asciz "i>=0 && i<=9" L_.str.3: ## @.str.3 .asciz "%c" L_.str.4: ## @.str.4 .asciz "123" L_.str.5: ## @.str.5 .asciz "321" L_.str.6: ## @.str.6 .asciz "reverse_string passed\n" L_.str.7: ## @.str.7 .asciz "reverse_string failed\n" L_.str.8: ## @.str.8 .asciz "itoc passed\n" L_.str.9: ## @.str.9 .asciz "itoc failed\n" L_.str.10: ## @.str.10 .asciz "add_digits passed\n" L_.str.11: ## @.str.11 .asciz "add_digits failed\n" L_.str.12: ## @.str.12 .asciz "1" L_.str.13: ## @.str.13 .asciz "99999999999999999999999999999999999999999999" L_.str.14: ## @.str.14 .asciz "000000000000000000000000000000000000000000001" L_.str.15: ## @.str.15 .asciz "add_bigint passed\n" L_.str.16: ## @.str.16 .asciz "add_bigint failed\n" .subsections_via_symbols
the_stack_data/107560.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, #2480 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] str wzr, [sp, #164] str w0, [sp, #160] str x1, [sp, #152] mov w8, #16 str w8, [sp, #92] mov w8, #8 str w8, [sp, #88] mov w8, #9 str w8, [sp, #84] mov w8, #2 str w8, [sp, #80] mov w8, #3 str w8, [sp, #76] ldr w8, [sp, #160] subs w8, w8, #2 cset w8, eq tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov w8, #-1 str w8, [sp, #164] b LBB0_26 LBB0_2: ldr x8, [sp, #152] ldr x0, [x8, #8] adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF bl _fopen str x0, [sp, #144] ldr x8, [sp, #144] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: ldr x8, [sp, #152] ldr x8, [x8, #8] mov x9, sp str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf mov w8, #-1 str w8, [sp, #164] b LBB0_26 LBB0_4: ldr x0, [sp, #144] mov x1, #0 str x1, [sp, #64] ; 8-byte Folded Spill mov w2, #2 bl _fseek ldr x0, [sp, #144] bl _ftell mov x8, x0 str w8, [sp, #124] ldr w8, [sp, #124] mov x9, x8 mov x8, #1 mul x0, x8, x9 bl _malloc ldr x1, [sp, #64] ; 8-byte Folded Reload str x0, [sp, #104] mov w2, #0 str wzr, [sp, #96] str wzr, [sp, #120] ldr x0, [sp, #144] bl _fseek b LBB0_5 LBB0_5: ; =>This Inner Loop Header: Depth=1 ldr x3, [sp, #144] add x0, sp, #116 mov x1, #4 mov x2, #1 bl _fread subs x8, x0, #0 cset w8, eq tbnz w8, #0, LBB0_16 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_5 Depth=1 ldr w8, [sp, #116] subs w8, w8, #16 cset w8, ne tbnz w8, #0, LBB0_15 b LBB0_7 LBB0_7: ; in Loop: Header=BB0_5 Depth=1 ldr x3, [sp, #144] add x0, sp, #116 mov x1, #4 mov x2, #1 bl _fread subs x8, x0, #0 cset w8, eq tbnz w8, #0, LBB0_14 b LBB0_8 LBB0_8: ; in Loop: Header=BB0_5 Depth=1 ldr w8, [sp, #116] subs w8, w8, #8 cset w8, eq tbnz w8, #0, LBB0_12 b LBB0_9 LBB0_9: ; in Loop: Header=BB0_5 Depth=1 ldr w8, [sp, #116] subs w8, w8, #9 cset w8, eq tbnz w8, #0, LBB0_12 b LBB0_10 LBB0_10: ; in Loop: Header=BB0_5 Depth=1 ldr w8, [sp, #116] subs w8, w8, #2 cset w8, eq tbnz w8, #0, LBB0_12 b LBB0_11 LBB0_11: ; in Loop: Header=BB0_5 Depth=1 ldr w8, [sp, #116] subs w8, w8, #3 cset w8, ne tbnz w8, #0, LBB0_13 b LBB0_12 LBB0_12: ; in Loop: Header=BB0_5 Depth=1 ldr w9, [sp, #120] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf ldr w8, [sp, #120] ldrsw x10, [sp, #96] add x9, sp, #168 str w8, [x9, x10, lsl #2] ldr w8, [sp, #96] add w8, w8, #1 str w8, [sp, #96] b LBB0_13 LBB0_13: ; in Loop: Header=BB0_5 Depth=1 b LBB0_14 LBB0_14: ; in Loop: Header=BB0_5 Depth=1 ldr w8, [sp, #120] ; kill: def $x8 killed $w8 add x8, x8, #4 ; kill: def $w8 killed $w8 killed $x8 str w8, [sp, #120] b LBB0_15 LBB0_15: ; in Loop: Header=BB0_5 Depth=1 ldr w8, [sp, #120] ; kill: def $x8 killed $w8 add x8, x8, #4 ; kill: def $w8 killed $w8 killed $x8 str w8, [sp, #120] b LBB0_5 LBB0_16: ldr w9, [sp, #96] ; 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 ldr x8, [sp, #152] ldr x8, [x8, #8] mov x9, sp str x8, [x9] add x0, sp, #2216 str x0, [sp, #56] ; 8-byte Folded Spill mov w1, #0 mov x2, #256 adrp x3, l_.str.5@PAGE add x3, x3, l_.str.5@PAGEOFF bl ___sprintf_chk ldr x0, [sp, #56] ; 8-byte Folded Reload adrp x1, l_.str.6@PAGE add x1, x1, l_.str.6@PAGEOFF bl _fopen str x0, [sp, #128] str wzr, [sp, #100] b LBB0_17 LBB0_17: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #100] ldr w9, [sp, #96] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_25 b LBB0_18 LBB0_18: ; in Loop: Header=BB0_17 Depth=1 ldr w8, [sp, #100] ldr w9, [sp, #96] subs w9, w9, #1 subs w8, w8, w9 cset w8, eq tbnz w8, #0, LBB0_20 b LBB0_19 LBB0_19: ; in Loop: Header=BB0_17 Depth=1 ldr w8, [sp, #100] add w8, w8, #1 add x9, sp, #168 ldr w8, [x9, w8, sxtw #2] ldrsw x10, [sp, #100] ldr w9, [x9, x10, lsl #2] subs w8, w8, w9 str w8, [sp, #112] b LBB0_21 LBB0_20: ; in Loop: Header=BB0_17 Depth=1 ldr w8, [sp, #124] ldrsw x10, [sp, #100] add x9, sp, #168 ldr w9, [x9, x10, lsl #2] subs w8, w8, w9 str w8, [sp, #112] b LBB0_21 LBB0_21: ; in Loop: Header=BB0_17 Depth=1 ldr x8, [sp, #152] ldr x10, [x8, #8] ldr w9, [sp, #100] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x10, [x9] str x8, [x9, #8] add x0, sp, #2216 str x0, [sp, #48] ; 8-byte Folded Spill mov w1, #0 str w1, [sp, #44] ; 4-byte Folded Spill mov x2, #256 adrp x3, l_.str.7@PAGE add x3, x3, l_.str.7@PAGEOFF bl ___sprintf_chk ldr x10, [sp, #48] ; 8-byte Folded Reload ldr w9, [sp, #112] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x0, l_.str.8@PAGE add x0, x0, l_.str.8@PAGEOFF bl _printf ldr x0, [sp, #128] ldrsw x9, [sp, #100] add x8, sp, #168 str x8, [sp, #32] ; 8-byte Folded Spill ldr w9, [x8, x9, lsl #2] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x1, l_.str.9@PAGE add x1, x1, l_.str.9@PAGEOFF bl _fprintf ldr x8, [sp, #32] ; 8-byte Folded Reload ldr w2, [sp, #44] ; 4-byte Folded Reload ldr x0, [sp, #144] ldrsw x9, [sp, #100] ldr w8, [x8, x9, lsl #2] mov x1, x8 bl _fseek ldr x0, [sp, #104] ldr w8, [sp, #112] mov x1, x8 ldr x3, [sp, #144] mov x2, #1 bl _fread ldr x0, [sp, #48] ; 8-byte Folded Reload adrp x1, l_.str.10@PAGE add x1, x1, l_.str.10@PAGEOFF bl _fopen str x0, [sp, #136] ldr x8, [sp, #136] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB0_23 b LBB0_22 LBB0_22: mov x9, sp add x8, sp, #2216 str x8, [x9] adrp x0, l_.str.11@PAGE add x0, x0, l_.str.11@PAGEOFF bl _printf ldr x0, [sp, #144] bl _fclose mov w8, #-1 str w8, [sp, #164] b LBB0_26 LBB0_23: ; in Loop: Header=BB0_17 Depth=1 ldr x0, [sp, #104] ldr w8, [sp, #112] mov x1, x8 ldr x3, [sp, #136] mov x2, #1 bl _fwrite ldr x0, [sp, #136] bl _fclose b LBB0_24 LBB0_24: ; in Loop: Header=BB0_17 Depth=1 ldr w8, [sp, #100] add w8, w8, #1 str w8, [sp, #100] b LBB0_17 LBB0_25: ldr x0, [sp, #128] bl _fclose ldr x0, [sp, #144] bl _fclose ldr w9, [sp, #96] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.12@PAGE add x0, x0, l_.str.12@PAGEOFF bl _printf str wzr, [sp, #164] b LBB0_26 LBB0_26: ldr w8, [sp, #164] str w8, [sp, #28] ; 4-byte Folded Spill ldur x9, [x29, #-24] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_28 b LBB0_27 LBB0_27: bl ___stack_chk_fail LBB0_28: ldr w0, [sp, #28] ; 4-byte Folded Reload add sp, sp, #2480 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 "Usage: extractor.exe filename\nExample: extractor.exe 0001" l_.str.1: ; @.str.1 .asciz "rb" l_.str.2: ; @.str.2 .asciz "Error opening file %s" l_.str.3: ; @.str.3 .asciz "Found possible TIM file at 0x%.4x\n" l_.str.4: ; @.str.4 .asciz "Found %d possible TIM images in this file\n" l_.str.5: ; @.str.5 .asciz "%s_filetable.txt" l_.str.6: ; @.str.6 .asciz "w" l_.str.7: ; @.str.7 .asciz "%s_extract_%d.tim" l_.str.8: ; @.str.8 .asciz "Extracting %s, %d bytes ...\n" l_.str.9: ; @.str.9 .asciz "%d\n" l_.str.10: ; @.str.10 .asciz "wb" l_.str.11: ; @.str.11 .asciz "Error writing file %s. Did you have write permission here?" l_.str.12: ; @.str.12 .asciz "%d files processed correctly!\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 $2416, %rsp ## imm = 0x970 movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -2324(%rbp) movl %edi, -2328(%rbp) movq %rsi, -2336(%rbp) movl $16, -2396(%rbp) movl $8, -2400(%rbp) movl $9, -2404(%rbp) movl $2, -2408(%rbp) movl $3, -2412(%rbp) cmpl $2, -2328(%rbp) je LBB0_2 ## %bb.1: leaq L_.str(%rip), %rdi movb $0, %al callq _printf movl $-1, -2324(%rbp) jmp LBB0_26 LBB0_2: movq -2336(%rbp), %rax movq 8(%rax), %rdi leaq L_.str.1(%rip), %rsi callq _fopen movq %rax, -2344(%rbp) cmpq $0, -2344(%rbp) jne LBB0_4 ## %bb.3: movq -2336(%rbp), %rax movq 8(%rax), %rsi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf movl $-1, -2324(%rbp) jmp LBB0_26 LBB0_4: movq -2344(%rbp), %rdi xorl %eax, %eax movl %eax, %esi movl $2, %edx callq _fseek movq -2344(%rbp), %rdi callq _ftell ## kill: def $eax killed $eax killed $rax movl %eax, -2364(%rbp) movl -2364(%rbp), %eax movl %eax, %edi shlq $0, %rdi callq _malloc movq %rax, -2384(%rbp) movl $0, -2392(%rbp) movl $0, -2368(%rbp) movq -2344(%rbp), %rdi xorl %eax, %eax movl %eax, %esi xorl %edx, %edx callq _fseek LBB0_5: ## =>This Inner Loop Header: Depth=1 leaq -2372(%rbp), %rdi movq -2344(%rbp), %rcx movl $4, %esi movl $1, %edx callq _fread cmpq $0, %rax je LBB0_16 ## %bb.6: ## in Loop: Header=BB0_5 Depth=1 cmpl $16, -2372(%rbp) jne LBB0_15 ## %bb.7: ## in Loop: Header=BB0_5 Depth=1 leaq -2372(%rbp), %rdi movq -2344(%rbp), %rcx movl $4, %esi movl $1, %edx callq _fread cmpq $0, %rax je LBB0_14 ## %bb.8: ## in Loop: Header=BB0_5 Depth=1 cmpl $8, -2372(%rbp) je LBB0_12 ## %bb.9: ## in Loop: Header=BB0_5 Depth=1 cmpl $9, -2372(%rbp) je LBB0_12 ## %bb.10: ## in Loop: Header=BB0_5 Depth=1 cmpl $2, -2372(%rbp) je LBB0_12 ## %bb.11: ## in Loop: Header=BB0_5 Depth=1 cmpl $3, -2372(%rbp) jne LBB0_13 LBB0_12: ## in Loop: Header=BB0_5 Depth=1 movl -2368(%rbp), %esi leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf movl -2368(%rbp), %ecx movslq -2392(%rbp), %rax movl %ecx, -2320(%rbp,%rax,4) movl -2392(%rbp), %eax addl $1, %eax movl %eax, -2392(%rbp) LBB0_13: ## in Loop: Header=BB0_5 Depth=1 jmp LBB0_14 LBB0_14: ## in Loop: Header=BB0_5 Depth=1 movl -2368(%rbp), %eax ## kill: def $rax killed $eax addq $4, %rax ## kill: def $eax killed $eax killed $rax movl %eax, -2368(%rbp) LBB0_15: ## in Loop: Header=BB0_5 Depth=1 movl -2368(%rbp), %eax ## kill: def $rax killed $eax addq $4, %rax ## kill: def $eax killed $eax killed $rax movl %eax, -2368(%rbp) jmp LBB0_5 LBB0_16: movl -2392(%rbp), %esi leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf leaq -272(%rbp), %rdi movq -2336(%rbp), %rax movq 8(%rax), %r8 xorl %esi, %esi movl $256, %edx ## imm = 0x100 leaq L_.str.5(%rip), %rcx movb $0, %al callq ___sprintf_chk leaq -272(%rbp), %rdi leaq L_.str.6(%rip), %rsi callq _fopen movq %rax, -2360(%rbp) movl $0, -2388(%rbp) LBB0_17: ## =>This Inner Loop Header: Depth=1 movl -2388(%rbp), %eax cmpl -2392(%rbp), %eax jge LBB0_25 ## %bb.18: ## in Loop: Header=BB0_17 Depth=1 movl -2388(%rbp), %eax movl -2392(%rbp), %ecx subl $1, %ecx cmpl %ecx, %eax je LBB0_20 ## %bb.19: ## in Loop: Header=BB0_17 Depth=1 movl -2388(%rbp), %eax addl $1, %eax cltq movl -2320(%rbp,%rax,4), %eax movslq -2388(%rbp), %rcx subl -2320(%rbp,%rcx,4), %eax movl %eax, -2376(%rbp) jmp LBB0_21 LBB0_20: ## in Loop: Header=BB0_17 Depth=1 movl -2364(%rbp), %eax movslq -2388(%rbp), %rcx subl -2320(%rbp,%rcx,4), %eax movl %eax, -2376(%rbp) LBB0_21: ## in Loop: Header=BB0_17 Depth=1 leaq -272(%rbp), %rdi movq -2336(%rbp), %rax movq 8(%rax), %r8 movl -2388(%rbp), %r9d xorl %esi, %esi movl $256, %edx ## imm = 0x100 leaq L_.str.7(%rip), %rcx movb $0, %al callq ___sprintf_chk leaq -272(%rbp), %rsi movl -2376(%rbp), %edx leaq L_.str.8(%rip), %rdi movb $0, %al callq _printf movq -2360(%rbp), %rdi movslq -2388(%rbp), %rax movl -2320(%rbp,%rax,4), %edx leaq L_.str.9(%rip), %rsi movb $0, %al callq _fprintf movq -2344(%rbp), %rdi movslq -2388(%rbp), %rax movl -2320(%rbp,%rax,4), %eax movl %eax, %esi xorl %edx, %edx callq _fseek movq -2384(%rbp), %rdi movl -2376(%rbp), %eax movl %eax, %esi movq -2344(%rbp), %rcx movl $1, %edx callq _fread leaq -272(%rbp), %rdi leaq L_.str.10(%rip), %rsi callq _fopen movq %rax, -2352(%rbp) cmpq $0, -2352(%rbp) jne LBB0_23 ## %bb.22: leaq -272(%rbp), %rsi leaq L_.str.11(%rip), %rdi movb $0, %al callq _printf movq -2344(%rbp), %rdi callq _fclose movl $-1, -2324(%rbp) jmp LBB0_26 LBB0_23: ## in Loop: Header=BB0_17 Depth=1 movq -2384(%rbp), %rdi movl -2376(%rbp), %eax movl %eax, %esi movq -2352(%rbp), %rcx movl $1, %edx callq _fwrite movq -2352(%rbp), %rdi callq _fclose ## %bb.24: ## in Loop: Header=BB0_17 Depth=1 movl -2388(%rbp), %eax addl $1, %eax movl %eax, -2388(%rbp) jmp LBB0_17 LBB0_25: movq -2360(%rbp), %rdi callq _fclose movq -2344(%rbp), %rdi callq _fclose movl -2392(%rbp), %esi leaq L_.str.12(%rip), %rdi movb $0, %al callq _printf movl $0, -2324(%rbp) LBB0_26: movl -2324(%rbp), %eax movl %eax, -2416(%rbp) ## 4-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_28 ## %bb.27: movl -2416(%rbp), %eax ## 4-byte Reload addq $2416, %rsp ## imm = 0x970 popq %rbp retq LBB0_28: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Usage: extractor.exe filename\nExample: extractor.exe 0001" L_.str.1: ## @.str.1 .asciz "rb" L_.str.2: ## @.str.2 .asciz "Error opening file %s" L_.str.3: ## @.str.3 .asciz "Found possible TIM file at 0x%.4x\n" L_.str.4: ## @.str.4 .asciz "Found %d possible TIM images in this file\n" L_.str.5: ## @.str.5 .asciz "%s_filetable.txt" L_.str.6: ## @.str.6 .asciz "w" L_.str.7: ## @.str.7 .asciz "%s_extract_%d.tim" L_.str.8: ## @.str.8 .asciz "Extracting %s, %d bytes ...\n" L_.str.9: ## @.str.9 .asciz "%d\n" L_.str.10: ## @.str.10 .asciz "wb" L_.str.11: ## @.str.11 .asciz "Error writing file %s. Did you have write permission here?" L_.str.12: ## @.str.12 .asciz "%d files processed correctly!\n" .subsections_via_symbols
the_stack_data/28797.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] bl _fork stur w0, [x29, #-8] ldur w8, [x29, #-8] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: mov x8, sp adrp x9, l_.str.2@PAGE add x9, x9, l_.str.2@PAGEOFF str x9, [x8] ; kill: def $x9 killed $xzr str xzr, [x8, #8] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF bl _execl b LBB0_2 LBB0_2: ldur w0, [x29, #-4] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "bin/ls" l_.str.1: ; @.str.1 .asciz "ls" l_.str.2: ; @.str.2 .asciz "-l" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) callq _fork movl %eax, -8(%rbp) cmpl $0, -8(%rbp) jne LBB0_2 ## %bb.1: leaq L_.str(%rip), %rdi leaq L_.str.1(%rip), %rsi leaq L_.str.2(%rip), %rdx xorl %eax, %eax movl %eax, %ecx movb $0, %al callq _execl LBB0_2: movl -4(%rbp), %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "bin/ls" L_.str.1: ## @.str.1 .asciz "ls" L_.str.2: ## @.str.2 .asciz "-l" .subsections_via_symbols
the_stack_data/86075501.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _longest ; -- Begin function longest .p2align 2 _longest: ; @longest .cfi_startproc ; %bb.0: sub sp, sp, #96 .cfi_def_cfa_offset 96 stp x29, x30, [sp, #80] ; 16-byte Folded Spill add x29, sp, #80 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] str x0, [sp, #24] str x1, [sp, #16] adrp x9, l___const.longest.leters@PAGE add x9, x9, l___const.longest.leters@PAGEOFF ldr q0, [x9] add x8, sp, #32 str q0, [sp, #32] ldur q0, [x9, #10] stur q0, [x8, #10] str wzr, [sp, #8] ldr x8, [sp, #24] ldrsw x9, [sp, #8] add x8, x8, x9 ldrb w8, [x8] strb w8, [sp, #7] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldrsb w8, [sp, #7] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldrsb w8, [sp, #7] subs w8, w8, #97 str w8, [sp, #12] ldr w8, [sp, #12] add w8, w8, #97 ldrsw x10, [sp, #12] add x9, sp, #32 strb w8, [x9, x10] ldr w8, [sp, #8] add w8, w8, #1 str w8, [sp, #8] ldr x8, [sp, #24] ldrsw x9, [sp, #8] add x8, x8, x9 ldrb w8, [x8] strb w8, [sp, #7] b LBB0_1 LBB0_3: str wzr, [sp, #8] ldr x8, [sp, #16] ldrsw x9, [sp, #8] add x8, x8, x9 ldrb w8, [x8] strb w8, [sp, #7] b LBB0_4 LBB0_4: ; =>This Inner Loop Header: Depth=1 ldrsb w8, [sp, #7] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_4 Depth=1 ldrsb w8, [sp, #7] subs w8, w8, #97 str w8, [sp, #12] ldr w8, [sp, #12] add w8, w8, #97 ldrsw x10, [sp, #12] add x9, sp, #32 strb w8, [x9, x10] ldr w8, [sp, #8] add w8, w8, #1 str w8, [sp, #8] ldr x8, [sp, #16] ldrsw x9, [sp, #8] add x8, x8, x9 ldrb w8, [x8] strb w8, [sp, #7] b LBB0_4 LBB0_6: str wzr, [sp, #8] str wzr, [sp] b LBB0_7 LBB0_7: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp] subs w8, w8, #26 cset w8, ge tbnz w8, #0, LBB0_12 b LBB0_8 LBB0_8: ; in Loop: Header=BB0_7 Depth=1 ldrsw x9, [sp] add x8, sp, #32 ldrsb w8, [x8, x9] subs w8, w8, #48 cset w8, eq tbnz w8, #0, LBB0_10 b LBB0_9 LBB0_9: ; in Loop: Header=BB0_7 Depth=1 ldrsw x10, [sp] add x9, sp, #32 mov x8, x9 add x8, x8, x10 ldrb w8, [x8] ldrsw x10, [sp, #8] add x9, x9, x10 strb w8, [x9] ldr w8, [sp, #8] add w8, w8, #1 str w8, [sp, #8] b LBB0_10 LBB0_10: ; in Loop: Header=BB0_7 Depth=1 b LBB0_11 LBB0_11: ; in Loop: Header=BB0_7 Depth=1 ldr w8, [sp] add w8, w8, #1 str w8, [sp] b LBB0_7 LBB0_12: ldrsw x9, [sp, #8] add x8, sp, #32 add x8, x8, x9 strb wzr, [x8] 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: add x0, sp, #32 ldp x29, x30, [sp, #80] ; 16-byte Folded Reload add sp, sp, #96 ret .cfi_endproc ; -- End function .globl _dotest ; -- Begin function dotest .p2align 2 _dotest: ; @dotest .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] stur x1, [x29, #-16] str x2, [sp, #24] ldur x0, [x29, #-8] ldur x1, [x29, #-16] bl _longest str x0, [sp, #16] ldr x0, [sp, #16] ldr x1, [sp, #24] bl _strcmp subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: ldr x10, [sp, #24] ldr x8, [sp, #16] mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf b LBB1_2 LBB1_2: ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #0 str w8, [sp, #8] ; 4-byte Folded Spill stur wzr, [x29, #-4] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF adrp x1, l_.str.2@PAGE add x1, x1, l_.str.2@PAGEOFF adrp x2, l_.str.3@PAGE add x2, x2, l_.str.3@PAGEOFF bl _dotest adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF adrp x1, l_.str.5@PAGE add x1, x1, l_.str.5@PAGEOFF adrp x2, l_.str.6@PAGE add x2, x2, l_.str.6@PAGEOFF bl _dotest adrp x0, l_.str.7@PAGE add x0, x0, l_.str.7@PAGEOFF adrp x1, l_.str.8@PAGE add x1, x1, l_.str.8@PAGEOFF adrp x2, l_.str.9@PAGE add x2, x2, l_.str.9@PAGEOFF bl _dotest adrp x0, l_.str.10@PAGE add x0, x0, l_.str.10@PAGEOFF adrp x1, l_.str.11@PAGE add x1, x1, l_.str.11@PAGEOFF adrp x2, l_.str.12@PAGE add x2, x2, l_.str.12@PAGEOFF bl _dotest adrp x1, l_.str.13@PAGE add x1, x1, l_.str.13@PAGEOFF mov x0, x1 adrp x2, l_.str.14@PAGE add x2, x2, l_.str.14@PAGEOFF bl _dotest 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,__const l___const.longest.leters: ; @__const.longest.leters .space 26,48 .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "\n%s\n%s\n\n" l_.str.1: ; @.str.1 .asciz "aretheyhere" l_.str.2: ; @.str.2 .asciz "yestheyarehere" l_.str.3: ; @.str.3 .asciz "aehrsty" l_.str.4: ; @.str.4 .asciz "loopingisfunbutdangerous" l_.str.5: ; @.str.5 .asciz "lessdangerousthancoding" l_.str.6: ; @.str.6 .asciz "abcdefghilnoprstu" l_.str.7: ; @.str.7 .asciz "inmanylanguages" l_.str.8: ; @.str.8 .asciz "theresapairoffunctions" l_.str.9: ; @.str.9 .asciz "acefghilmnoprstuy" l_.str.10: ; @.str.10 .asciz "lordsofthefallen" l_.str.11: ; @.str.11 .asciz "gamekult" l_.str.12: ; @.str.12 .asciz "adefghklmnorstu" l_.str.13: ; @.str.13 .asciz "codewars" l_.str.14: ; @.str.14 .asciz "acdeorsw" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _longest ## -- Begin function longest .p2align 4, 0x90 _longest: ## @longest .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $96, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movq %rdi, -56(%rbp) movq %rsi, -64(%rbp) movq l___const.longest.leters(%rip), %rax movq %rax, -48(%rbp) movq l___const.longest.leters+8(%rip), %rax movq %rax, -40(%rbp) movq l___const.longest.leters+16(%rip), %rax movq %rax, -32(%rbp) movw l___const.longest.leters+24(%rip), %ax movw %ax, -24(%rbp) movl $0, -72(%rbp) movq -56(%rbp), %rax movslq -72(%rbp), %rcx movb (%rax,%rcx), %al movb %al, -73(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movsbl -73(%rbp), %eax cmpl $0, %eax je LBB0_3 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movsbl -73(%rbp), %eax subl $97, %eax movl %eax, -68(%rbp) movl -68(%rbp), %eax addl $97, %eax movb %al, %cl movslq -68(%rbp), %rax movb %cl, -48(%rbp,%rax) movl -72(%rbp), %eax addl $1, %eax movl %eax, -72(%rbp) movq -56(%rbp), %rax movslq -72(%rbp), %rcx movb (%rax,%rcx), %al movb %al, -73(%rbp) jmp LBB0_1 LBB0_3: movl $0, -72(%rbp) movq -64(%rbp), %rax movslq -72(%rbp), %rcx movb (%rax,%rcx), %al movb %al, -73(%rbp) LBB0_4: ## =>This Inner Loop Header: Depth=1 movsbl -73(%rbp), %eax cmpl $0, %eax je LBB0_6 ## %bb.5: ## in Loop: Header=BB0_4 Depth=1 movsbl -73(%rbp), %eax subl $97, %eax movl %eax, -68(%rbp) movl -68(%rbp), %eax addl $97, %eax movb %al, %cl movslq -68(%rbp), %rax movb %cl, -48(%rbp,%rax) movl -72(%rbp), %eax addl $1, %eax movl %eax, -72(%rbp) movq -64(%rbp), %rax movslq -72(%rbp), %rcx movb (%rax,%rcx), %al movb %al, -73(%rbp) jmp LBB0_4 LBB0_6: movl $0, -72(%rbp) movl $0, -80(%rbp) LBB0_7: ## =>This Inner Loop Header: Depth=1 cmpl $26, -80(%rbp) jge LBB0_12 ## %bb.8: ## in Loop: Header=BB0_7 Depth=1 movslq -80(%rbp), %rax movsbl -48(%rbp,%rax), %eax cmpl $48, %eax je LBB0_10 ## %bb.9: ## in Loop: Header=BB0_7 Depth=1 movslq -80(%rbp), %rax movb -48(%rbp,%rax), %cl movslq -72(%rbp), %rax movb %cl, -48(%rbp,%rax) movl -72(%rbp), %eax addl $1, %eax movl %eax, -72(%rbp) LBB0_10: ## in Loop: Header=BB0_7 Depth=1 jmp LBB0_11 LBB0_11: ## in Loop: Header=BB0_7 Depth=1 movl -80(%rbp), %eax addl $1, %eax movl %eax, -80(%rbp) jmp LBB0_7 LBB0_12: movslq -72(%rbp), %rax movb $0, -48(%rbp,%rax) leaq -48(%rbp), %rax movq %rax, -88(%rbp) ## 8-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_14 ## %bb.13: movq -88(%rbp), %rax ## 8-byte Reload addq $96, %rsp popq %rbp retq LBB0_14: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _dotest ## -- Begin function dotest .p2align 4, 0x90 _dotest: ## @dotest .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) movq %rdx, -24(%rbp) movq -8(%rbp), %rdi movq -16(%rbp), %rsi callq _longest movq %rax, -32(%rbp) movq -32(%rbp), %rdi movq -24(%rbp), %rsi callq _strcmp cmpl $0, %eax je LBB1_2 ## %bb.1: movq -24(%rbp), %rsi movq -32(%rbp), %rdx leaq L_.str(%rip), %rdi movb $0, %al callq _printf LBB1_2: addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) leaq L_.str.1(%rip), %rdi leaq L_.str.2(%rip), %rsi leaq L_.str.3(%rip), %rdx callq _dotest leaq L_.str.4(%rip), %rdi leaq L_.str.5(%rip), %rsi leaq L_.str.6(%rip), %rdx callq _dotest leaq L_.str.7(%rip), %rdi leaq L_.str.8(%rip), %rsi leaq L_.str.9(%rip), %rdx callq _dotest leaq L_.str.10(%rip), %rdi leaq L_.str.11(%rip), %rsi leaq L_.str.12(%rip), %rdx callq _dotest leaq L_.str.13(%rip), %rsi leaq L_.str.14(%rip), %rdx movq %rsi, %rdi callq _dotest xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__const .p2align 4 ## @__const.longest.leters l___const.longest.leters: .space 26,48 .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "\n%s\n%s\n\n" L_.str.1: ## @.str.1 .asciz "aretheyhere" L_.str.2: ## @.str.2 .asciz "yestheyarehere" L_.str.3: ## @.str.3 .asciz "aehrsty" L_.str.4: ## @.str.4 .asciz "loopingisfunbutdangerous" L_.str.5: ## @.str.5 .asciz "lessdangerousthancoding" L_.str.6: ## @.str.6 .asciz "abcdefghilnoprstu" L_.str.7: ## @.str.7 .asciz "inmanylanguages" L_.str.8: ## @.str.8 .asciz "theresapairoffunctions" L_.str.9: ## @.str.9 .asciz "acefghilmnoprstuy" L_.str.10: ## @.str.10 .asciz "lordsofthefallen" L_.str.11: ## @.str.11 .asciz "gamekult" L_.str.12: ## @.str.12 .asciz "adefghklmnorstu" L_.str.13: ## @.str.13 .asciz "codewars" L_.str.14: ## @.str.14 .asciz "acdeorsw" .subsections_via_symbols
the_stack_data/153269589.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/348724.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/108576.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _zlansb_ ; -- Begin function zlansb_ .p2align 2 _zlansb_: ; @zlansb_ .cfi_startproc ; %bb.0: sub sp, sp, #400 .cfi_def_cfa_offset 400 stp x28, x27, [sp, #368] ; 16-byte Folded Spill stp x29, x30, [sp, #384] ; 16-byte Folded Spill add x29, sp, #384 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w27, -24 .cfi_offset w28, -32 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] stur x0, [x29, #-64] stur x1, [x29, #-72] stur x2, [x29, #-80] stur x3, [x29, #-88] stur x4, [x29, #-96] stur x5, [x29, #-104] stur x6, [x29, #-112] ldur x8, [x29, #-104] ldr w8, [x8] stur w8, [x29, #-116] ldur w8, [x29, #-116] mov x9, #0 lsr w8, w8, #0 add w8, w8, #1 stur w8, [x29, #-120] ldursw x10, [x29, #-120] ldur x8, [x29, #-96] subs x9, x9, x10 add x8, x8, x9, lsl #4 stur x8, [x29, #-96] ldur x8, [x29, #-112] subs x8, x8, #8 stur x8, [x29, #-112] ldur x8, [x29, #-80] ldr w8, [x8] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: movi d0, #0000000000000000 stur d0, [x29, #-176] b LBB0_107 LBB0_2: ldur x0, [x29, #-64] adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF bl _lsame_ subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB0_35 b LBB0_3 LBB0_3: movi d0, #0000000000000000 stur d0, [x29, #-176] ldur x0, [x29, #-72] adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF bl _lsame_ subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB0_19 b LBB0_4 LBB0_4: ldur x8, [x29, #-80] ldr w8, [x8] stur w8, [x29, #-124] mov w8, #1 stur w8, [x29, #-160] b LBB0_5 LBB0_5: ; =>This Loop Header: Depth=1 ; Child Loop BB0_10 Depth 2 ldur w8, [x29, #-160] ldur w9, [x29, #-124] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_18 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_5 Depth=1 ldur x8, [x29, #-88] ldr w8, [x8] add w8, w8, #2 ldur w9, [x29, #-160] subs w8, w8, w9 stur w8, [x29, #-128] ldur x8, [x29, #-88] ldr w8, [x8] add w8, w8, #1 stur w8, [x29, #-132] ldur w8, [x29, #-128] subs w8, w8, #1 cset w8, lt tbnz w8, #0, LBB0_8 b LBB0_7 LBB0_7: ; in Loop: Header=BB0_5 Depth=1 ldur w8, [x29, #-128] str w8, [sp, #100] ; 4-byte Folded Spill b LBB0_9 LBB0_8: ; in Loop: Header=BB0_5 Depth=1 mov w8, #1 str w8, [sp, #100] ; 4-byte Folded Spill b LBB0_9 LBB0_9: ; in Loop: Header=BB0_5 Depth=1 ldr w8, [sp, #100] ; 4-byte Folded Reload stur w8, [x29, #-156] b LBB0_10 LBB0_10: ; Parent Loop BB0_5 Depth=1 ; => This Inner Loop Header: Depth=2 ldur w8, [x29, #-156] ldur w9, [x29, #-132] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_16 b LBB0_11 LBB0_11: ; in Loop: Header=BB0_10 Depth=2 ldur x8, [x29, #-96] ldur w9, [x29, #-156] ldur w10, [x29, #-160] ldur w11, [x29, #-116] mul w10, w10, w11 add w9, w9, w10 add x0, x8, w9, sxtw #4 bl _Cd str d0, [sp, #184] str d1, [sp, #192] ldr d0, [sp, #184] ldr d1, [sp, #192] bl _cabs stur d0, [x29, #-184] ldur d0, [x29, #-176] ldur d1, [x29, #-184] fcmp d0, d1 cset w8, mi tbnz w8, #0, LBB0_13 b LBB0_12 LBB0_12: ; in Loop: Header=BB0_10 Depth=2 sub x0, x29, #184 bl _disnan_ subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB0_14 b LBB0_13 LBB0_13: ; in Loop: Header=BB0_10 Depth=2 ldur d0, [x29, #-184] stur d0, [x29, #-176] b LBB0_14 LBB0_14: ; in Loop: Header=BB0_10 Depth=2 b LBB0_15 LBB0_15: ; in Loop: Header=BB0_10 Depth=2 ldur w8, [x29, #-156] add w8, w8, #1 stur w8, [x29, #-156] b LBB0_10 LBB0_16: ; in Loop: Header=BB0_5 Depth=1 b LBB0_17 LBB0_17: ; in Loop: Header=BB0_5 Depth=1 ldur w8, [x29, #-160] add w8, w8, #1 stur w8, [x29, #-160] b LBB0_5 LBB0_18: b LBB0_34 LBB0_19: ldur x8, [x29, #-80] ldr w8, [x8] stur w8, [x29, #-124] mov w8, #1 stur w8, [x29, #-160] b LBB0_20 LBB0_20: ; =>This Loop Header: Depth=1 ; Child Loop BB0_25 Depth 2 ldur w8, [x29, #-160] ldur w9, [x29, #-124] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_33 b LBB0_21 LBB0_21: ; in Loop: Header=BB0_20 Depth=1 ldur x8, [x29, #-80] ldr w8, [x8] add w8, w8, #1 ldur w9, [x29, #-160] subs w8, w8, w9 stur w8, [x29, #-128] ldur x8, [x29, #-88] ldr w8, [x8] add w8, w8, #1 stur w8, [x29, #-136] ldur w8, [x29, #-128] ldur w9, [x29, #-136] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_23 b LBB0_22 LBB0_22: ; in Loop: Header=BB0_20 Depth=1 ldur w8, [x29, #-128] str w8, [sp, #96] ; 4-byte Folded Spill b LBB0_24 LBB0_23: ; in Loop: Header=BB0_20 Depth=1 ldur w8, [x29, #-136] str w8, [sp, #96] ; 4-byte Folded Spill b LBB0_24 LBB0_24: ; in Loop: Header=BB0_20 Depth=1 ldr w8, [sp, #96] ; 4-byte Folded Reload stur w8, [x29, #-132] mov w8, #1 stur w8, [x29, #-156] b LBB0_25 LBB0_25: ; Parent Loop BB0_20 Depth=1 ; => This Inner Loop Header: Depth=2 ldur w8, [x29, #-156] ldur w9, [x29, #-132] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_31 b LBB0_26 LBB0_26: ; in Loop: Header=BB0_25 Depth=2 ldur x8, [x29, #-96] ldur w9, [x29, #-156] ldur w10, [x29, #-160] ldur w11, [x29, #-116] mul w10, w10, w11 add w9, w9, w10 add x0, x8, w9, sxtw #4 bl _Cd str d0, [sp, #168] str d1, [sp, #176] ldr d0, [sp, #168] ldr d1, [sp, #176] bl _cabs stur d0, [x29, #-184] ldur d0, [x29, #-176] ldur d1, [x29, #-184] fcmp d0, d1 cset w8, mi tbnz w8, #0, LBB0_28 b LBB0_27 LBB0_27: ; in Loop: Header=BB0_25 Depth=2 sub x0, x29, #184 bl _disnan_ subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB0_29 b LBB0_28 LBB0_28: ; in Loop: Header=BB0_25 Depth=2 ldur d0, [x29, #-184] stur d0, [x29, #-176] b LBB0_29 LBB0_29: ; in Loop: Header=BB0_25 Depth=2 b LBB0_30 LBB0_30: ; in Loop: Header=BB0_25 Depth=2 ldur w8, [x29, #-156] add w8, w8, #1 stur w8, [x29, #-156] b LBB0_25 LBB0_31: ; in Loop: Header=BB0_20 Depth=1 b LBB0_32 LBB0_32: ; in Loop: Header=BB0_20 Depth=1 ldur w8, [x29, #-160] add w8, w8, #1 stur w8, [x29, #-160] b LBB0_20 LBB0_33: b LBB0_34 LBB0_34: b LBB0_106 LBB0_35: ldur x0, [x29, #-64] adrp x1, l_.str.2@PAGE add x1, x1, l_.str.2@PAGEOFF bl _lsame_ subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB0_38 b LBB0_36 LBB0_36: ldur x0, [x29, #-64] adrp x1, l_.str.3@PAGE add x1, x1, l_.str.3@PAGEOFF bl _lsame_ subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB0_38 b LBB0_37 LBB0_37: ldur x8, [x29, #-64] ldrb w8, [x8] subs w8, w8, #49 cset w8, ne tbnz w8, #0, LBB0_78 b LBB0_38 LBB0_38: movi d0, #0000000000000000 stur d0, [x29, #-176] ldur x0, [x29, #-72] adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF bl _lsame_ subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB0_58 b LBB0_39 LBB0_39: ldur x8, [x29, #-80] ldr w8, [x8] stur w8, [x29, #-124] mov w8, #1 stur w8, [x29, #-160] b LBB0_40 LBB0_40: ; =>This Loop Header: Depth=1 ; Child Loop BB0_45 Depth 2 ldur w8, [x29, #-160] ldur w9, [x29, #-124] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_50 b LBB0_41 LBB0_41: ; in Loop: Header=BB0_40 Depth=1 movi d0, #0000000000000000 stur d0, [x29, #-184] ldur x8, [x29, #-88] ldr w9, [x8] mov w8, #1 add w9, w9, #1 ldur w10, [x29, #-160] subs w9, w9, w10 stur w9, [x29, #-164] stur w8, [x29, #-132] ldur w8, [x29, #-160] ldur x9, [x29, #-88] ldr w9, [x9] subs w8, w8, w9 stur w8, [x29, #-128] ldur w8, [x29, #-160] subs w8, w8, #1 stur w8, [x29, #-136] ldur w8, [x29, #-132] ldur w9, [x29, #-128] subs w8, w8, w9 cset w8, lt tbnz w8, #0, LBB0_43 b LBB0_42 LBB0_42: ; in Loop: Header=BB0_40 Depth=1 ldur w8, [x29, #-132] str w8, [sp, #92] ; 4-byte Folded Spill b LBB0_44 LBB0_43: ; in Loop: Header=BB0_40 Depth=1 ldur w8, [x29, #-128] str w8, [sp, #92] ; 4-byte Folded Spill b LBB0_44 LBB0_44: ; in Loop: Header=BB0_40 Depth=1 ldr w8, [sp, #92] ; 4-byte Folded Reload stur w8, [x29, #-156] b LBB0_45 LBB0_45: ; Parent Loop BB0_40 Depth=1 ; => This Inner Loop Header: Depth=2 ldur w8, [x29, #-156] ldur w9, [x29, #-136] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_48 b LBB0_46 LBB0_46: ; in Loop: Header=BB0_45 Depth=2 ldur x8, [x29, #-96] ldur w9, [x29, #-164] ldur w10, [x29, #-156] add w9, w9, w10 ldur w10, [x29, #-160] ldur w11, [x29, #-116] mul w10, w10, w11 add w9, w9, w10 add x0, x8, w9, sxtw #4 bl _Cd str d0, [sp, #152] str d1, [sp, #160] ldr d0, [sp, #152] ldr d1, [sp, #160] bl _cabs stur d0, [x29, #-152] ldur d1, [x29, #-152] ldur d0, [x29, #-184] fadd d0, d0, d1 stur d0, [x29, #-184] ldur d1, [x29, #-152] ldur x8, [x29, #-112] ldursw x9, [x29, #-156] add x8, x8, x9, lsl #3 ldr d0, [x8] fadd d0, d0, d1 str d0, [x8] b LBB0_47 LBB0_47: ; in Loop: Header=BB0_45 Depth=2 ldur w8, [x29, #-156] add w8, w8, #1 stur w8, [x29, #-156] b LBB0_45 LBB0_48: ; in Loop: Header=BB0_40 Depth=1 ldur d0, [x29, #-184] str d0, [sp, #80] ; 8-byte Folded Spill ldur x8, [x29, #-96] ldur x9, [x29, #-88] ldr w9, [x9] add w9, w9, #1 ldur w10, [x29, #-160] ldur w11, [x29, #-116] mul w10, w10, w11 add w9, w9, w10 add x0, x8, w9, sxtw #4 bl _Cd str d0, [sp, #136] str d1, [sp, #144] ldr d0, [sp, #136] ldr d1, [sp, #144] bl _cabs fmov d1, d0 ldr d0, [sp, #80] ; 8-byte Folded Reload fadd d0, d0, d1 ldur x8, [x29, #-112] ldursw x9, [x29, #-160] str d0, [x8, x9, lsl #3] b LBB0_49 LBB0_49: ; in Loop: Header=BB0_40 Depth=1 ldur w8, [x29, #-160] add w8, w8, #1 stur w8, [x29, #-160] b LBB0_40 LBB0_50: ldur x8, [x29, #-80] ldr w8, [x8] stur w8, [x29, #-124] mov w8, #1 stur w8, [x29, #-156] b LBB0_51 LBB0_51: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-156] ldur w9, [x29, #-124] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_57 b LBB0_52 LBB0_52: ; in Loop: Header=BB0_51 Depth=1 ldur x8, [x29, #-112] ldursw x9, [x29, #-156] ldr d0, [x8, x9, lsl #3] stur d0, [x29, #-184] ldur d0, [x29, #-176] ldur d1, [x29, #-184] fcmp d0, d1 cset w8, mi tbnz w8, #0, LBB0_54 b LBB0_53 LBB0_53: ; in Loop: Header=BB0_51 Depth=1 sub x0, x29, #184 bl _disnan_ subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB0_55 b LBB0_54 LBB0_54: ; in Loop: Header=BB0_51 Depth=1 ldur d0, [x29, #-184] stur d0, [x29, #-176] b LBB0_55 LBB0_55: ; in Loop: Header=BB0_51 Depth=1 b LBB0_56 LBB0_56: ; in Loop: Header=BB0_51 Depth=1 ldur w8, [x29, #-156] add w8, w8, #1 stur w8, [x29, #-156] b LBB0_51 LBB0_57: b LBB0_77 LBB0_58: ldur x8, [x29, #-80] ldr w8, [x8] stur w8, [x29, #-124] mov w8, #1 stur w8, [x29, #-156] b LBB0_59 LBB0_59: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-156] ldur w9, [x29, #-124] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_62 b LBB0_60 LBB0_60: ; in Loop: Header=BB0_59 Depth=1 ldur x8, [x29, #-112] ldursw x9, [x29, #-156] movi d0, #0000000000000000 str d0, [x8, x9, lsl #3] b LBB0_61 LBB0_61: ; in Loop: Header=BB0_59 Depth=1 ldur w8, [x29, #-156] add w8, w8, #1 stur w8, [x29, #-156] b LBB0_59 LBB0_62: ldur x8, [x29, #-80] ldr w8, [x8] stur w8, [x29, #-124] mov w8, #1 stur w8, [x29, #-160] b LBB0_63 LBB0_63: ; =>This Loop Header: Depth=1 ; Child Loop BB0_68 Depth 2 ldur w8, [x29, #-160] ldur w9, [x29, #-124] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_76 b LBB0_64 LBB0_64: ; in Loop: Header=BB0_63 Depth=1 ldur x8, [x29, #-112] ldursw x9, [x29, #-160] ldr d0, [x8, x9, lsl #3] str d0, [sp, #72] ; 8-byte Folded Spill ldur x8, [x29, #-96] ldur w9, [x29, #-160] ldur w10, [x29, #-116] mul w9, w9, w10 mov w10, #1 str w10, [sp, #68] ; 4-byte Folded Spill add w9, w9, #1 add x0, x8, w9, sxtw #4 bl _Cd str d0, [sp, #120] str d1, [sp, #128] ldr d0, [sp, #120] ldr d1, [sp, #128] bl _cabs ldr w8, [sp, #68] ; 4-byte Folded Reload fmov d1, d0 ldr d0, [sp, #72] ; 8-byte Folded Reload fadd d0, d0, d1 stur d0, [x29, #-184] ldur w9, [x29, #-160] subs w8, w8, w9 stur w8, [x29, #-164] ldur x8, [x29, #-80] ldr w8, [x8] stur w8, [x29, #-132] ldur w8, [x29, #-160] ldur x9, [x29, #-88] ldr w9, [x9] add w8, w8, w9 stur w8, [x29, #-128] ldur w8, [x29, #-132] ldur w9, [x29, #-128] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_66 b LBB0_65 LBB0_65: ; in Loop: Header=BB0_63 Depth=1 ldur w8, [x29, #-132] str w8, [sp, #64] ; 4-byte Folded Spill b LBB0_67 LBB0_66: ; in Loop: Header=BB0_63 Depth=1 ldur w8, [x29, #-128] str w8, [sp, #64] ; 4-byte Folded Spill b LBB0_67 LBB0_67: ; in Loop: Header=BB0_63 Depth=1 ldr w8, [sp, #64] ; 4-byte Folded Reload stur w8, [x29, #-136] ldur w8, [x29, #-160] add w8, w8, #1 stur w8, [x29, #-156] b LBB0_68 LBB0_68: ; Parent Loop BB0_63 Depth=1 ; => This Inner Loop Header: Depth=2 ldur w8, [x29, #-156] ldur w9, [x29, #-136] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_71 b LBB0_69 LBB0_69: ; in Loop: Header=BB0_68 Depth=2 ldur x8, [x29, #-96] ldur w9, [x29, #-164] ldur w10, [x29, #-156] add w9, w9, w10 ldur w10, [x29, #-160] ldur w11, [x29, #-116] mul w10, w10, w11 add w9, w9, w10 add x0, x8, w9, sxtw #4 bl _Cd str d0, [sp, #104] str d1, [sp, #112] ldr d0, [sp, #104] ldr d1, [sp, #112] bl _cabs stur d0, [x29, #-152] ldur d1, [x29, #-152] ldur d0, [x29, #-184] fadd d0, d0, d1 stur d0, [x29, #-184] ldur d1, [x29, #-152] ldur x8, [x29, #-112] ldursw x9, [x29, #-156] add x8, x8, x9, lsl #3 ldr d0, [x8] fadd d0, d0, d1 str d0, [x8] b LBB0_70 LBB0_70: ; in Loop: Header=BB0_68 Depth=2 ldur w8, [x29, #-156] add w8, w8, #1 stur w8, [x29, #-156] b LBB0_68 LBB0_71: ; in Loop: Header=BB0_63 Depth=1 ldur d0, [x29, #-176] ldur d1, [x29, #-184] fcmp d0, d1 cset w8, mi tbnz w8, #0, LBB0_73 b LBB0_72 LBB0_72: ; in Loop: Header=BB0_63 Depth=1 sub x0, x29, #184 bl _disnan_ subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB0_74 b LBB0_73 LBB0_73: ; in Loop: Header=BB0_63 Depth=1 ldur d0, [x29, #-184] stur d0, [x29, #-176] b LBB0_74 LBB0_74: ; in Loop: Header=BB0_63 Depth=1 b LBB0_75 LBB0_75: ; in Loop: Header=BB0_63 Depth=1 ldur w8, [x29, #-160] add w8, w8, #1 stur w8, [x29, #-160] b LBB0_63 LBB0_76: b LBB0_77 LBB0_77: b LBB0_105 LBB0_78: ldur x0, [x29, #-64] adrp x1, l_.str.4@PAGE add x1, x1, l_.str.4@PAGEOFF bl _lsame_ subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB0_80 b LBB0_79 LBB0_79: ldur x0, [x29, #-64] adrp x1, l_.str.5@PAGE add x1, x1, l_.str.5@PAGEOFF bl _lsame_ subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB0_104 b LBB0_80 LBB0_80: movi d0, #0000000000000000 stur d0, [x29, #-56] fmov d0, #1.00000000 stur d0, [x29, #-48] ldur x8, [x29, #-88] ldr w8, [x8] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB0_102 b LBB0_81 LBB0_81: ldur x0, [x29, #-72] adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF bl _lsame_ subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB0_93 b LBB0_82 LBB0_82: ldur x8, [x29, #-80] ldr w8, [x8] stur w8, [x29, #-124] mov w8, #2 stur w8, [x29, #-160] b LBB0_83 LBB0_83: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-160] ldur w9, [x29, #-124] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_92 b LBB0_84 LBB0_84: ; in Loop: Header=BB0_83 Depth=1 movi d0, #0000000000000000 stur d0, [x29, #-40] fmov d0, #1.00000000 stur d0, [x29, #-32] ldur w8, [x29, #-160] subs w8, w8, #1 stur w8, [x29, #-132] ldur w8, [x29, #-132] ldur x9, [x29, #-88] ldr w9, [x9] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_86 b LBB0_85 LBB0_85: ; in Loop: Header=BB0_83 Depth=1 ldur w8, [x29, #-132] str w8, [sp, #60] ; 4-byte Folded Spill b LBB0_87 LBB0_86: ; in Loop: Header=BB0_83 Depth=1 ldur x8, [x29, #-88] ldr w8, [x8] str w8, [sp, #60] ; 4-byte Folded Spill b LBB0_87 LBB0_87: ; in Loop: Header=BB0_83 Depth=1 ldr w8, [sp, #60] ; 4-byte Folded Reload stur w8, [x29, #-136] ldur x8, [x29, #-88] ldr w8, [x8] add w8, w8, #2 ldur w9, [x29, #-160] subs w8, w8, w9 stur w8, [x29, #-128] ldur x8, [x29, #-96] str x8, [sp, #48] ; 8-byte Folded Spill ldur w8, [x29, #-128] subs w8, w8, #1 cset w8, lt tbnz w8, #0, LBB0_89 b LBB0_88 LBB0_88: ; in Loop: Header=BB0_83 Depth=1 ldur w8, [x29, #-128] str w8, [sp, #44] ; 4-byte Folded Spill b LBB0_90 LBB0_89: ; in Loop: Header=BB0_83 Depth=1 mov w8, #1 str w8, [sp, #44] ; 4-byte Folded Spill b LBB0_90 LBB0_90: ; in Loop: Header=BB0_83 Depth=1 ldr x8, [sp, #48] ; 8-byte Folded Reload ldr w9, [sp, #44] ; 4-byte Folded Reload ldur w10, [x29, #-160] ldur w11, [x29, #-116] mul w10, w10, w11 add w9, w9, w10 add x1, x8, w9, sxtw #4 sub x3, x29, #40 str x3, [sp, #32] ; 8-byte Folded Spill add x4, x3, #8 sub x0, x29, #136 adrp x2, _c__1@PAGE add x2, x2, _c__1@PAGEOFF bl _zlassq_ ldr x1, [sp, #32] ; 8-byte Folded Reload sub x0, x29, #56 bl _dcombssq_ b LBB0_91 LBB0_91: ; in Loop: Header=BB0_83 Depth=1 ldur w8, [x29, #-160] add w8, w8, #1 stur w8, [x29, #-160] b LBB0_83 LBB0_92: ldur x8, [x29, #-88] ldr w8, [x8] add w8, w8, #1 stur w8, [x29, #-164] b LBB0_101 LBB0_93: ldur x8, [x29, #-80] ldr w9, [x8] mov w8, #1 subs w9, w9, #1 stur w9, [x29, #-124] stur w8, [x29, #-160] b LBB0_94 LBB0_94: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-160] ldur w9, [x29, #-124] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_100 b LBB0_95 LBB0_95: ; in Loop: Header=BB0_94 Depth=1 movi d0, #0000000000000000 stur d0, [x29, #-40] fmov d0, #1.00000000 stur d0, [x29, #-32] ldur x8, [x29, #-80] ldr w8, [x8] ldur w9, [x29, #-160] subs w8, w8, w9 stur w8, [x29, #-132] ldur w8, [x29, #-132] ldur x9, [x29, #-88] ldr w9, [x9] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_97 b LBB0_96 LBB0_96: ; in Loop: Header=BB0_94 Depth=1 ldur w8, [x29, #-132] str w8, [sp, #28] ; 4-byte Folded Spill b LBB0_98 LBB0_97: ; in Loop: Header=BB0_94 Depth=1 ldur x8, [x29, #-88] ldr w8, [x8] str w8, [sp, #28] ; 4-byte Folded Spill b LBB0_98 LBB0_98: ; in Loop: Header=BB0_94 Depth=1 ldr w8, [sp, #28] ; 4-byte Folded Reload sub x0, x29, #136 stur w8, [x29, #-136] ldur x8, [x29, #-96] ldur w9, [x29, #-160] ldur w10, [x29, #-116] mul w9, w9, w10 add w9, w9, #2 add x1, x8, w9, sxtw #4 sub x3, x29, #40 str x3, [sp, #16] ; 8-byte Folded Spill add x4, x3, #8 adrp x2, _c__1@PAGE add x2, x2, _c__1@PAGEOFF bl _zlassq_ ldr x1, [sp, #16] ; 8-byte Folded Reload sub x0, x29, #56 bl _dcombssq_ b LBB0_99 LBB0_99: ; in Loop: Header=BB0_94 Depth=1 ldur w8, [x29, #-160] add w8, w8, #1 stur w8, [x29, #-160] b LBB0_94 LBB0_100: mov w8, #1 stur w8, [x29, #-164] b LBB0_101 LBB0_101: ldur d0, [x29, #-48] fmov d1, #2.00000000 fmul d0, d0, d1 stur d0, [x29, #-48] b LBB0_103 LBB0_102: mov w8, #1 stur w8, [x29, #-164] b LBB0_103 LBB0_103: sub x3, x29, #40 str x3, [sp, #8] ; 8-byte Folded Spill movi d0, #0000000000000000 stur d0, [x29, #-40] fmov d0, #1.00000000 stur d0, [x29, #-32] ldur x0, [x29, #-80] ldur x8, [x29, #-96] ldur w9, [x29, #-164] ldur w10, [x29, #-116] add w9, w9, w10 add x1, x8, w9, sxtw #4 ldur x2, [x29, #-104] add x4, x3, #8 bl _zlassq_ ldr x1, [sp, #8] ; 8-byte Folded Reload sub x0, x29, #56 bl _dcombssq_ ldur d0, [x29, #-56] ldur d1, [x29, #-48] fsqrt d1, d1 fmul d0, d0, d1 stur d0, [x29, #-176] b LBB0_104 LBB0_104: b LBB0_105 LBB0_105: b LBB0_106 LBB0_106: b LBB0_107 LBB0_107: ldur d0, [x29, #-176] stur d0, [x29, #-144] ldur d0, [x29, #-144] str d0, [sp] ; 8-byte Folded Spill ldur x9, [x29, #-24] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_109 b LBB0_108 LBB0_108: bl ___stack_chk_fail LBB0_109: ldr d0, [sp] ; 8-byte Folded Reload ldp x29, x30, [sp, #384] ; 16-byte Folded Reload ldp x28, x27, [sp, #368] ; 16-byte Folded Reload add sp, sp, #400 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function Cd _Cd: ; @Cd .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, #8] ldr x8, [sp, #8] ldr d1, [x8] ldr x8, [sp, #8] ldr d0, [x8, #8] movi d2, #0000000000000000 fmul d2, d0, d2 fmov d3, #1.00000000 fmul d0, d0, d3 fadd d1, d1, d2 str d1, [sp, #16] str d0, [sp, #24] ldr d0, [sp, #16] ldr d1, [sp, #24] add sp, sp, #32 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "M" l_.str.1: ; @.str.1 .asciz "U" l_.str.2: ; @.str.2 .asciz "I" l_.str.3: ; @.str.3 .asciz "O" l_.str.4: ; @.str.4 .asciz "F" l_.str.5: ; @.str.5 .asciz "E" .section __DATA,__data .p2align 2 ; @c__1 _c__1: .long 1 ; 0x1 .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 zlansb_ LCPI0_0: .quad 0x3ff0000000000000 ## double 1 LCPI0_1: .quad 0x4000000000000000 ## double 2 .section __TEXT,__text,regular,pure_instructions .globl _zlansb_ .p2align 4, 0x90 _zlansb_: ## @zlansb_ .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $336, %rsp ## imm = 0x150 movq 16(%rbp), %rax movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movq %rdi, -56(%rbp) movq %rsi, -64(%rbp) movq %rdx, -72(%rbp) movq %rcx, -80(%rbp) movq %r8, -88(%rbp) movq %r9, -96(%rbp) movq -96(%rbp), %rax movl (%rax), %eax movl %eax, -100(%rbp) movl -100(%rbp), %eax shll $0, %eax addl $1, %eax movl %eax, -104(%rbp) movl -104(%rbp), %ecx movq -88(%rbp), %rax movslq %ecx, %rdx xorl %ecx, %ecx ## kill: def $rcx killed $ecx subq %rdx, %rcx shlq $4, %rcx addq %rcx, %rax movq %rax, -88(%rbp) movq 16(%rbp), %rax addq $-8, %rax movq %rax, 16(%rbp) movq -72(%rbp), %rax cmpl $0, (%rax) jne LBB0_2 ## %bb.1: xorps %xmm0, %xmm0 movsd %xmm0, -160(%rbp) jmp LBB0_107 LBB0_2: movq -56(%rbp), %rdi leaq L_.str(%rip), %rsi callq _lsame_ cmpl $0, %eax je LBB0_35 ## %bb.3: xorps %xmm0, %xmm0 movsd %xmm0, -160(%rbp) movq -64(%rbp), %rdi leaq L_.str.1(%rip), %rsi callq _lsame_ cmpl $0, %eax je LBB0_19 ## %bb.4: movq -72(%rbp), %rax movl (%rax), %eax movl %eax, -108(%rbp) movl $1, -144(%rbp) LBB0_5: ## =>This Loop Header: Depth=1 ## Child Loop BB0_10 Depth 2 movl -144(%rbp), %eax cmpl -108(%rbp), %eax jg LBB0_18 ## %bb.6: ## in Loop: Header=BB0_5 Depth=1 movq -80(%rbp), %rax movl (%rax), %eax addl $2, %eax subl -144(%rbp), %eax movl %eax, -112(%rbp) movq -80(%rbp), %rax movl (%rax), %eax addl $1, %eax movl %eax, -116(%rbp) cmpl $1, -112(%rbp) jl LBB0_8 ## %bb.7: ## in Loop: Header=BB0_5 Depth=1 movl -112(%rbp), %eax movl %eax, -268(%rbp) ## 4-byte Spill jmp LBB0_9 LBB0_8: ## in Loop: Header=BB0_5 Depth=1 movl $1, %eax movl %eax, -268(%rbp) ## 4-byte Spill jmp LBB0_9 LBB0_9: ## in Loop: Header=BB0_5 Depth=1 movl -268(%rbp), %eax ## 4-byte Reload movl %eax, -140(%rbp) LBB0_10: ## Parent Loop BB0_5 Depth=1 ## => This Inner Loop Header: Depth=2 movl -140(%rbp), %eax cmpl -116(%rbp), %eax jg LBB0_16 ## %bb.11: ## in Loop: Header=BB0_10 Depth=2 movq -88(%rbp), %rdi movl -140(%rbp), %eax movl -144(%rbp), %ecx imull -100(%rbp), %ecx addl %ecx, %eax cltq shlq $4, %rax addq %rax, %rdi callq _Cd movsd %xmm0, -184(%rbp) movsd %xmm1, -176(%rbp) movsd -184(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd -176(%rbp), %xmm1 ## xmm1 = mem[0],zero callq _cabs movsd %xmm0, -168(%rbp) movsd -160(%rbp), %xmm1 ## xmm1 = mem[0],zero movsd -168(%rbp), %xmm0 ## xmm0 = mem[0],zero ucomisd %xmm1, %xmm0 ja LBB0_13 ## %bb.12: ## in Loop: Header=BB0_10 Depth=2 leaq -168(%rbp), %rdi callq _disnan_ cmpl $0, %eax je LBB0_14 LBB0_13: ## in Loop: Header=BB0_10 Depth=2 movsd -168(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -160(%rbp) LBB0_14: ## in Loop: Header=BB0_10 Depth=2 jmp LBB0_15 LBB0_15: ## in Loop: Header=BB0_10 Depth=2 movl -140(%rbp), %eax addl $1, %eax movl %eax, -140(%rbp) jmp LBB0_10 LBB0_16: ## in Loop: Header=BB0_5 Depth=1 jmp LBB0_17 LBB0_17: ## in Loop: Header=BB0_5 Depth=1 movl -144(%rbp), %eax addl $1, %eax movl %eax, -144(%rbp) jmp LBB0_5 LBB0_18: jmp LBB0_34 LBB0_19: movq -72(%rbp), %rax movl (%rax), %eax movl %eax, -108(%rbp) movl $1, -144(%rbp) LBB0_20: ## =>This Loop Header: Depth=1 ## Child Loop BB0_25 Depth 2 movl -144(%rbp), %eax cmpl -108(%rbp), %eax jg LBB0_33 ## %bb.21: ## in Loop: Header=BB0_20 Depth=1 movq -72(%rbp), %rax movl (%rax), %eax addl $1, %eax subl -144(%rbp), %eax movl %eax, -112(%rbp) movq -80(%rbp), %rax movl (%rax), %eax addl $1, %eax movl %eax, -120(%rbp) movl -112(%rbp), %eax cmpl -120(%rbp), %eax jg LBB0_23 ## %bb.22: ## in Loop: Header=BB0_20 Depth=1 movl -112(%rbp), %eax movl %eax, -272(%rbp) ## 4-byte Spill jmp LBB0_24 LBB0_23: ## in Loop: Header=BB0_20 Depth=1 movl -120(%rbp), %eax movl %eax, -272(%rbp) ## 4-byte Spill LBB0_24: ## in Loop: Header=BB0_20 Depth=1 movl -272(%rbp), %eax ## 4-byte Reload movl %eax, -116(%rbp) movl $1, -140(%rbp) LBB0_25: ## Parent Loop BB0_20 Depth=1 ## => This Inner Loop Header: Depth=2 movl -140(%rbp), %eax cmpl -116(%rbp), %eax jg LBB0_31 ## %bb.26: ## in Loop: Header=BB0_25 Depth=2 movq -88(%rbp), %rdi movl -140(%rbp), %eax movl -144(%rbp), %ecx imull -100(%rbp), %ecx addl %ecx, %eax cltq shlq $4, %rax addq %rax, %rdi callq _Cd movsd %xmm0, -200(%rbp) movsd %xmm1, -192(%rbp) movsd -200(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd -192(%rbp), %xmm1 ## xmm1 = mem[0],zero callq _cabs movsd %xmm0, -168(%rbp) movsd -160(%rbp), %xmm1 ## xmm1 = mem[0],zero movsd -168(%rbp), %xmm0 ## xmm0 = mem[0],zero ucomisd %xmm1, %xmm0 ja LBB0_28 ## %bb.27: ## in Loop: Header=BB0_25 Depth=2 leaq -168(%rbp), %rdi callq _disnan_ cmpl $0, %eax je LBB0_29 LBB0_28: ## in Loop: Header=BB0_25 Depth=2 movsd -168(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -160(%rbp) LBB0_29: ## in Loop: Header=BB0_25 Depth=2 jmp LBB0_30 LBB0_30: ## in Loop: Header=BB0_25 Depth=2 movl -140(%rbp), %eax addl $1, %eax movl %eax, -140(%rbp) jmp LBB0_25 LBB0_31: ## in Loop: Header=BB0_20 Depth=1 jmp LBB0_32 LBB0_32: ## in Loop: Header=BB0_20 Depth=1 movl -144(%rbp), %eax addl $1, %eax movl %eax, -144(%rbp) jmp LBB0_20 LBB0_33: jmp LBB0_34 LBB0_34: jmp LBB0_106 LBB0_35: movq -56(%rbp), %rdi leaq L_.str.2(%rip), %rsi callq _lsame_ cmpl $0, %eax jne LBB0_38 ## %bb.36: movq -56(%rbp), %rdi leaq L_.str.3(%rip), %rsi callq _lsame_ cmpl $0, %eax jne LBB0_38 ## %bb.37: movq -56(%rbp), %rax movzbl (%rax), %eax cmpl $49, %eax jne LBB0_78 LBB0_38: xorps %xmm0, %xmm0 movsd %xmm0, -160(%rbp) movq -64(%rbp), %rdi leaq L_.str.1(%rip), %rsi callq _lsame_ cmpl $0, %eax je LBB0_58 ## %bb.39: movq -72(%rbp), %rax movl (%rax), %eax movl %eax, -108(%rbp) movl $1, -144(%rbp) LBB0_40: ## =>This Loop Header: Depth=1 ## Child Loop BB0_45 Depth 2 movl -144(%rbp), %eax cmpl -108(%rbp), %eax jg LBB0_50 ## %bb.41: ## in Loop: Header=BB0_40 Depth=1 xorps %xmm0, %xmm0 movsd %xmm0, -168(%rbp) movq -80(%rbp), %rax movl (%rax), %eax addl $1, %eax subl -144(%rbp), %eax movl %eax, -148(%rbp) movl $1, -116(%rbp) movl -144(%rbp), %eax movq -80(%rbp), %rcx subl (%rcx), %eax movl %eax, -112(%rbp) movl -144(%rbp), %eax subl $1, %eax movl %eax, -120(%rbp) movl -116(%rbp), %eax cmpl -112(%rbp), %eax jl LBB0_43 ## %bb.42: ## in Loop: Header=BB0_40 Depth=1 movl -116(%rbp), %eax movl %eax, -276(%rbp) ## 4-byte Spill jmp LBB0_44 LBB0_43: ## in Loop: Header=BB0_40 Depth=1 movl -112(%rbp), %eax movl %eax, -276(%rbp) ## 4-byte Spill LBB0_44: ## in Loop: Header=BB0_40 Depth=1 movl -276(%rbp), %eax ## 4-byte Reload movl %eax, -140(%rbp) LBB0_45: ## Parent Loop BB0_40 Depth=1 ## => This Inner Loop Header: Depth=2 movl -140(%rbp), %eax cmpl -120(%rbp), %eax jg LBB0_48 ## %bb.46: ## in Loop: Header=BB0_45 Depth=2 movq -88(%rbp), %rdi movl -148(%rbp), %eax addl -140(%rbp), %eax movl -144(%rbp), %ecx imull -100(%rbp), %ecx addl %ecx, %eax cltq shlq $4, %rax addq %rax, %rdi callq _Cd movsd %xmm0, -216(%rbp) movsd %xmm1, -208(%rbp) movsd -216(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd -208(%rbp), %xmm1 ## xmm1 = mem[0],zero callq _cabs movsd %xmm0, -136(%rbp) movsd -136(%rbp), %xmm0 ## xmm0 = mem[0],zero addsd -168(%rbp), %xmm0 movsd %xmm0, -168(%rbp) movsd -136(%rbp), %xmm0 ## xmm0 = mem[0],zero movq 16(%rbp), %rax movslq -140(%rbp), %rcx addsd (%rax,%rcx,8), %xmm0 movsd %xmm0, (%rax,%rcx,8) ## %bb.47: ## in Loop: Header=BB0_45 Depth=2 movl -140(%rbp), %eax addl $1, %eax movl %eax, -140(%rbp) jmp LBB0_45 LBB0_48: ## in Loop: Header=BB0_40 Depth=1 movsd -168(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -288(%rbp) ## 8-byte Spill movq -88(%rbp), %rdi movq -80(%rbp), %rax movl (%rax), %eax addl $1, %eax movl -144(%rbp), %ecx imull -100(%rbp), %ecx addl %ecx, %eax cltq shlq $4, %rax addq %rax, %rdi callq _Cd movsd %xmm0, -232(%rbp) movsd %xmm1, -224(%rbp) movsd -232(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd -224(%rbp), %xmm1 ## xmm1 = mem[0],zero callq _cabs movaps %xmm0, %xmm1 movsd -288(%rbp), %xmm0 ## 8-byte Reload ## xmm0 = mem[0],zero addsd %xmm1, %xmm0 movq 16(%rbp), %rax movslq -144(%rbp), %rcx movsd %xmm0, (%rax,%rcx,8) ## %bb.49: ## in Loop: Header=BB0_40 Depth=1 movl -144(%rbp), %eax addl $1, %eax movl %eax, -144(%rbp) jmp LBB0_40 LBB0_50: movq -72(%rbp), %rax movl (%rax), %eax movl %eax, -108(%rbp) movl $1, -140(%rbp) LBB0_51: ## =>This Inner Loop Header: Depth=1 movl -140(%rbp), %eax cmpl -108(%rbp), %eax jg LBB0_57 ## %bb.52: ## in Loop: Header=BB0_51 Depth=1 movq 16(%rbp), %rax movslq -140(%rbp), %rcx movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -168(%rbp) movsd -160(%rbp), %xmm1 ## xmm1 = mem[0],zero movsd -168(%rbp), %xmm0 ## xmm0 = mem[0],zero ucomisd %xmm1, %xmm0 ja LBB0_54 ## %bb.53: ## in Loop: Header=BB0_51 Depth=1 leaq -168(%rbp), %rdi callq _disnan_ cmpl $0, %eax je LBB0_55 LBB0_54: ## in Loop: Header=BB0_51 Depth=1 movsd -168(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -160(%rbp) LBB0_55: ## in Loop: Header=BB0_51 Depth=1 jmp LBB0_56 LBB0_56: ## in Loop: Header=BB0_51 Depth=1 movl -140(%rbp), %eax addl $1, %eax movl %eax, -140(%rbp) jmp LBB0_51 LBB0_57: jmp LBB0_77 LBB0_58: movq -72(%rbp), %rax movl (%rax), %eax movl %eax, -108(%rbp) movl $1, -140(%rbp) LBB0_59: ## =>This Inner Loop Header: Depth=1 movl -140(%rbp), %eax cmpl -108(%rbp), %eax jg LBB0_62 ## %bb.60: ## in Loop: Header=BB0_59 Depth=1 movq 16(%rbp), %rax movslq -140(%rbp), %rcx xorps %xmm0, %xmm0 movsd %xmm0, (%rax,%rcx,8) ## %bb.61: ## in Loop: Header=BB0_59 Depth=1 movl -140(%rbp), %eax addl $1, %eax movl %eax, -140(%rbp) jmp LBB0_59 LBB0_62: movq -72(%rbp), %rax movl (%rax), %eax movl %eax, -108(%rbp) movl $1, -144(%rbp) LBB0_63: ## =>This Loop Header: Depth=1 ## Child Loop BB0_68 Depth 2 movl -144(%rbp), %eax cmpl -108(%rbp), %eax jg LBB0_76 ## %bb.64: ## in Loop: Header=BB0_63 Depth=1 movq 16(%rbp), %rax movslq -144(%rbp), %rcx movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -296(%rbp) ## 8-byte Spill movq -88(%rbp), %rdi movl -144(%rbp), %eax imull -100(%rbp), %eax addl $1, %eax cltq shlq $4, %rax addq %rax, %rdi callq _Cd movsd %xmm0, -248(%rbp) movsd %xmm1, -240(%rbp) movsd -248(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd -240(%rbp), %xmm1 ## xmm1 = mem[0],zero callq _cabs movaps %xmm0, %xmm1 movsd -296(%rbp), %xmm0 ## 8-byte Reload ## xmm0 = mem[0],zero addsd %xmm1, %xmm0 movsd %xmm0, -168(%rbp) movl $1, %eax subl -144(%rbp), %eax movl %eax, -148(%rbp) movq -72(%rbp), %rax movl (%rax), %eax movl %eax, -116(%rbp) movl -144(%rbp), %eax movq -80(%rbp), %rcx addl (%rcx), %eax movl %eax, -112(%rbp) movl -116(%rbp), %eax cmpl -112(%rbp), %eax jg LBB0_66 ## %bb.65: ## in Loop: Header=BB0_63 Depth=1 movl -116(%rbp), %eax movl %eax, -300(%rbp) ## 4-byte Spill jmp LBB0_67 LBB0_66: ## in Loop: Header=BB0_63 Depth=1 movl -112(%rbp), %eax movl %eax, -300(%rbp) ## 4-byte Spill LBB0_67: ## in Loop: Header=BB0_63 Depth=1 movl -300(%rbp), %eax ## 4-byte Reload movl %eax, -120(%rbp) movl -144(%rbp), %eax addl $1, %eax movl %eax, -140(%rbp) LBB0_68: ## Parent Loop BB0_63 Depth=1 ## => This Inner Loop Header: Depth=2 movl -140(%rbp), %eax cmpl -120(%rbp), %eax jg LBB0_71 ## %bb.69: ## in Loop: Header=BB0_68 Depth=2 movq -88(%rbp), %rdi movl -148(%rbp), %eax addl -140(%rbp), %eax movl -144(%rbp), %ecx imull -100(%rbp), %ecx addl %ecx, %eax cltq shlq $4, %rax addq %rax, %rdi callq _Cd movsd %xmm0, -264(%rbp) movsd %xmm1, -256(%rbp) movsd -264(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd -256(%rbp), %xmm1 ## xmm1 = mem[0],zero callq _cabs movsd %xmm0, -136(%rbp) movsd -136(%rbp), %xmm0 ## xmm0 = mem[0],zero addsd -168(%rbp), %xmm0 movsd %xmm0, -168(%rbp) movsd -136(%rbp), %xmm0 ## xmm0 = mem[0],zero movq 16(%rbp), %rax movslq -140(%rbp), %rcx addsd (%rax,%rcx,8), %xmm0 movsd %xmm0, (%rax,%rcx,8) ## %bb.70: ## in Loop: Header=BB0_68 Depth=2 movl -140(%rbp), %eax addl $1, %eax movl %eax, -140(%rbp) jmp LBB0_68 LBB0_71: ## in Loop: Header=BB0_63 Depth=1 movsd -160(%rbp), %xmm1 ## xmm1 = mem[0],zero movsd -168(%rbp), %xmm0 ## xmm0 = mem[0],zero ucomisd %xmm1, %xmm0 ja LBB0_73 ## %bb.72: ## in Loop: Header=BB0_63 Depth=1 leaq -168(%rbp), %rdi callq _disnan_ cmpl $0, %eax je LBB0_74 LBB0_73: ## in Loop: Header=BB0_63 Depth=1 movsd -168(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -160(%rbp) LBB0_74: ## in Loop: Header=BB0_63 Depth=1 jmp LBB0_75 LBB0_75: ## in Loop: Header=BB0_63 Depth=1 movl -144(%rbp), %eax addl $1, %eax movl %eax, -144(%rbp) jmp LBB0_63 LBB0_76: jmp LBB0_77 LBB0_77: jmp LBB0_105 LBB0_78: movq -56(%rbp), %rdi leaq L_.str.4(%rip), %rsi callq _lsame_ cmpl $0, %eax jne LBB0_80 ## %bb.79: movq -56(%rbp), %rdi leaq L_.str.5(%rip), %rsi callq _lsame_ cmpl $0, %eax je LBB0_104 LBB0_80: xorps %xmm0, %xmm0 movsd %xmm0, -48(%rbp) movsd LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -40(%rbp) movq -80(%rbp), %rax cmpl $0, (%rax) jle LBB0_102 ## %bb.81: movq -64(%rbp), %rdi leaq L_.str.1(%rip), %rsi callq _lsame_ cmpl $0, %eax je LBB0_93 ## %bb.82: movq -72(%rbp), %rax movl (%rax), %eax movl %eax, -108(%rbp) movl $2, -144(%rbp) LBB0_83: ## =>This Inner Loop Header: Depth=1 movl -144(%rbp), %eax cmpl -108(%rbp), %eax jg LBB0_92 ## %bb.84: ## in Loop: Header=BB0_83 Depth=1 xorps %xmm0, %xmm0 movsd %xmm0, -32(%rbp) movsd LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -24(%rbp) movl -144(%rbp), %eax subl $1, %eax movl %eax, -116(%rbp) movl -116(%rbp), %eax movq -80(%rbp), %rcx cmpl (%rcx), %eax jg LBB0_86 ## %bb.85: ## in Loop: Header=BB0_83 Depth=1 movl -116(%rbp), %eax movl %eax, -304(%rbp) ## 4-byte Spill jmp LBB0_87 LBB0_86: ## in Loop: Header=BB0_83 Depth=1 movq -80(%rbp), %rax movl (%rax), %eax movl %eax, -304(%rbp) ## 4-byte Spill LBB0_87: ## in Loop: Header=BB0_83 Depth=1 movl -304(%rbp), %eax ## 4-byte Reload movl %eax, -120(%rbp) movq -80(%rbp), %rax movl (%rax), %eax addl $2, %eax subl -144(%rbp), %eax movl %eax, -112(%rbp) movq -88(%rbp), %rax movq %rax, -312(%rbp) ## 8-byte Spill cmpl $1, -112(%rbp) jl LBB0_89 ## %bb.88: ## in Loop: Header=BB0_83 Depth=1 movl -112(%rbp), %eax movl %eax, -316(%rbp) ## 4-byte Spill jmp LBB0_90 LBB0_89: ## in Loop: Header=BB0_83 Depth=1 movl $1, %eax movl %eax, -316(%rbp) ## 4-byte Spill jmp LBB0_90 LBB0_90: ## in Loop: Header=BB0_83 Depth=1 movq -312(%rbp), %rsi ## 8-byte Reload movl -316(%rbp), %eax ## 4-byte Reload movl -144(%rbp), %ecx imull -100(%rbp), %ecx addl %ecx, %eax cltq shlq $4, %rax addq %rax, %rsi leaq -32(%rbp), %rcx leaq -32(%rbp), %r8 addq $8, %r8 leaq -120(%rbp), %rdi leaq _c__1(%rip), %rdx callq _zlassq_ leaq -48(%rbp), %rdi leaq -32(%rbp), %rsi callq _dcombssq_ ## %bb.91: ## in Loop: Header=BB0_83 Depth=1 movl -144(%rbp), %eax addl $1, %eax movl %eax, -144(%rbp) jmp LBB0_83 LBB0_92: movq -80(%rbp), %rax movl (%rax), %eax addl $1, %eax movl %eax, -148(%rbp) jmp LBB0_101 LBB0_93: movq -72(%rbp), %rax movl (%rax), %eax subl $1, %eax movl %eax, -108(%rbp) movl $1, -144(%rbp) LBB0_94: ## =>This Inner Loop Header: Depth=1 movl -144(%rbp), %eax cmpl -108(%rbp), %eax jg LBB0_100 ## %bb.95: ## in Loop: Header=BB0_94 Depth=1 xorps %xmm0, %xmm0 movsd %xmm0, -32(%rbp) movsd LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -24(%rbp) movq -72(%rbp), %rax movl (%rax), %eax subl -144(%rbp), %eax movl %eax, -116(%rbp) movl -116(%rbp), %eax movq -80(%rbp), %rcx cmpl (%rcx), %eax jg LBB0_97 ## %bb.96: ## in Loop: Header=BB0_94 Depth=1 movl -116(%rbp), %eax movl %eax, -320(%rbp) ## 4-byte Spill jmp LBB0_98 LBB0_97: ## in Loop: Header=BB0_94 Depth=1 movq -80(%rbp), %rax movl (%rax), %eax movl %eax, -320(%rbp) ## 4-byte Spill LBB0_98: ## in Loop: Header=BB0_94 Depth=1 movl -320(%rbp), %eax ## 4-byte Reload movl %eax, -120(%rbp) movq -88(%rbp), %rsi movl -144(%rbp), %eax imull -100(%rbp), %eax addl $2, %eax cltq shlq $4, %rax addq %rax, %rsi leaq -32(%rbp), %rcx leaq -32(%rbp), %r8 addq $8, %r8 leaq -120(%rbp), %rdi leaq _c__1(%rip), %rdx callq _zlassq_ leaq -48(%rbp), %rdi leaq -32(%rbp), %rsi callq _dcombssq_ ## %bb.99: ## in Loop: Header=BB0_94 Depth=1 movl -144(%rbp), %eax addl $1, %eax movl %eax, -144(%rbp) jmp LBB0_94 LBB0_100: movl $1, -148(%rbp) LBB0_101: movsd LCPI0_1(%rip), %xmm0 ## xmm0 = mem[0],zero mulsd -40(%rbp), %xmm0 movsd %xmm0, -40(%rbp) jmp LBB0_103 LBB0_102: movl $1, -148(%rbp) LBB0_103: xorps %xmm0, %xmm0 movsd %xmm0, -32(%rbp) movsd LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -24(%rbp) movq -72(%rbp), %rdi movq -88(%rbp), %rsi movl -148(%rbp), %eax addl -100(%rbp), %eax cltq shlq $4, %rax addq %rax, %rsi movq -96(%rbp), %rdx leaq -32(%rbp), %rcx leaq -32(%rbp), %r8 addq $8, %r8 callq _zlassq_ leaq -48(%rbp), %rdi leaq -32(%rbp), %rsi callq _dcombssq_ movsd -48(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd -40(%rbp), %xmm1 ## xmm1 = mem[0],zero sqrtsd %xmm1, %xmm1 mulsd %xmm1, %xmm0 movsd %xmm0, -160(%rbp) LBB0_104: jmp LBB0_105 LBB0_105: jmp LBB0_106 LBB0_106: jmp LBB0_107 LBB0_107: movsd -160(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -128(%rbp) movsd -128(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -328(%rbp) ## 8-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_109 ## %bb.108: movsd -328(%rbp), %xmm0 ## 8-byte Reload ## xmm0 = mem[0],zero addq $336, %rsp ## imm = 0x150 popq %rbp retq LBB0_109: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function Cd _Cd: ## @Cd .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, -24(%rbp) movq -24(%rbp), %rax movsd (%rax), %xmm1 ## xmm1 = mem[0],zero movsd 8(%rax), %xmm0 ## xmm0 = mem[0],zero xorps %xmm3, %xmm3 movaps %xmm0, %xmm2 mulsd %xmm3, %xmm2 addsd %xmm2, %xmm1 movsd %xmm1, -16(%rbp) movsd %xmm0, -8(%rbp) movsd -16(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd -8(%rbp), %xmm1 ## xmm1 = mem[0],zero popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "M" L_.str.1: ## @.str.1 .asciz "U" L_.str.2: ## @.str.2 .asciz "I" L_.str.3: ## @.str.3 .asciz "O" L_.str.4: ## @.str.4 .asciz "F" L_.str.5: ## @.str.5 .asciz "E" .section __DATA,__data .p2align 2 ## @c__1 _c__1: .long 1 ## 0x1 .subsections_via_symbols
the_stack_data/27781.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, #480 .cfi_def_cfa_offset 480 stp x28, x27, [sp, #448] ; 16-byte Folded Spill stp x29, x30, [sp, #464] ; 16-byte Folded Spill add x29, sp, #464 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w27, -24 .cfi_offset w28, -32 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] str wzr, [sp, #36] adrp x8, ___stdinp@GOTPAGE ldr x8, [x8, ___stdinp@GOTPAGEOFF] ldr x2, [x8] add x0, sp, #40 str x0, [sp, #24] ; 8-byte Folded Spill mov w1, #400 bl _fgets mov x9, sp add x8, sp, #35 str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _scanf ldr x0, [sp, #24] ; 8-byte Folded Reload ldrsb w1, [sp, #35] bl _find subs x8, x0, #0 cset w8, eq tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: ldrsb w1, [sp, #35] add x0, sp, #40 bl _find ldrsb w10, [x0] mov x9, sp ; implicit-def: $x8 mov x8, x10 str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf b LBB0_3 LBB0_2: adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf b LBB0_3 LBB0_3: ldr w8, [sp, #36] str w8, [sp, #20] ; 4-byte Folded Spill ldur x9, [x29, #-24] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_5 b LBB0_4 LBB0_4: bl ___stack_chk_fail LBB0_5: ldr w0, [sp, #20] ; 4-byte Folded Reload ldp x29, x30, [sp, #464] ; 16-byte Folded Reload ldp x28, x27, [sp, #448] ; 16-byte Folded Reload add sp, sp, #480 ret .cfi_endproc ; -- End function .globl _find ; -- Begin function find .p2align 2 _find: ; @find .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-16] sturb w1, [x29, #-17] strb wzr, [sp, #15] str wzr, [sp, #8] b LBB1_1 LBB1_1: ; =>This Inner Loop Header: Depth=1 ldrsw x8, [sp, #8] str x8, [sp] ; 8-byte Folded Spill ldur x0, [x29, #-16] bl _strlen ldr x8, [sp] ; 8-byte Folded Reload subs x9, x0, #1 subs x8, x8, x9 cset w8, hs tbnz w8, #0, LBB1_6 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 ldur x8, [x29, #-16] ldrsw x9, [sp, #8] ldrsb w8, [x8, x9] ldursb w9, [x29, #-17] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB1_4 b LBB1_3 LBB1_3: ldr w8, [sp, #8] add w8, w8, #48 strb w8, [sp, #15] b LBB1_6 LBB1_4: ; in Loop: Header=BB1_1 Depth=1 b LBB1_5 LBB1_5: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #8] add w8, w8, #1 str w8, [sp, #8] b LBB1_1 LBB1_6: ldrsb w8, [sp, #15] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB1_8 b LBB1_7 LBB1_7: ; kill: def $x8 killed $xzr stur xzr, [x29, #-8] b LBB1_9 LBB1_8: add x8, sp, #15 str x8, [sp, #16] ldr x8, [sp, #16] stur x8, [x29, #-8] b LBB1_9 LBB1_9: ldur x0, [x29, #-8] ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%c" l_.str.1: ; @.str.1 .asciz "-1" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $432, %rsp ## imm = 0x1B0 movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -420(%rbp) leaq -416(%rbp), %rdi movq ___stdinp@GOTPCREL(%rip), %rax movq (%rax), %rdx movl $400, %esi ## imm = 0x190 callq _fgets leaq L_.str(%rip), %rdi leaq -421(%rbp), %rsi movb $0, %al callq _scanf leaq -416(%rbp), %rdi movsbl -421(%rbp), %esi callq _find cmpq $0, %rax je LBB0_2 ## %bb.1: leaq -416(%rbp), %rdi movsbl -421(%rbp), %esi callq _find movsbl (%rax), %esi leaq L_.str(%rip), %rdi movb $0, %al callq _printf jmp LBB0_3 LBB0_2: leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf LBB0_3: movl -420(%rbp), %eax movl %eax, -428(%rbp) ## 4-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_5 ## %bb.4: movl -428(%rbp), %eax ## 4-byte Reload addq $432, %rsp ## imm = 0x1B0 popq %rbp retq LBB0_5: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _find ## -- Begin function find .p2align 4, 0x90 _find: ## @find .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movb %sil, %al movq %rdi, -16(%rbp) movb %al, -17(%rbp) movb $0, -33(%rbp) movl $0, -40(%rbp) LBB1_1: ## =>This Inner Loop Header: Depth=1 movslq -40(%rbp), %rax movq %rax, -48(%rbp) ## 8-byte Spill movq -16(%rbp), %rdi callq _strlen movq %rax, %rcx movq -48(%rbp), %rax ## 8-byte Reload subq $1, %rcx cmpq %rcx, %rax jae LBB1_6 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 movq -16(%rbp), %rax movslq -40(%rbp), %rcx movsbl (%rax,%rcx), %eax movsbl -17(%rbp), %ecx cmpl %ecx, %eax jne LBB1_4 ## %bb.3: movl -40(%rbp), %eax addl $48, %eax ## kill: def $al killed $al killed $eax movb %al, -33(%rbp) jmp LBB1_6 LBB1_4: ## in Loop: Header=BB1_1 Depth=1 jmp LBB1_5 LBB1_5: ## in Loop: Header=BB1_1 Depth=1 movl -40(%rbp), %eax addl $1, %eax movl %eax, -40(%rbp) jmp LBB1_1 LBB1_6: movsbl -33(%rbp), %eax cmpl $0, %eax jne LBB1_8 ## %bb.7: movq $0, -8(%rbp) jmp LBB1_9 LBB1_8: leaq -33(%rbp), %rax movq %rax, -32(%rbp) movq -32(%rbp), %rax movq %rax, -8(%rbp) LBB1_9: movq -8(%rbp), %rax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%c" L_.str.1: ## @.str.1 .asciz "-1" .subsections_via_symbols
the_stack_data/20450877.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] mov w8, #5678 stur w8, [x29, #-8] b LBB0_1 LBB0_1: ; =>This Loop Header: Depth=1 ; Child Loop BB0_3 Depth 2 ldur w8, [x29, #-8] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_6 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 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 sturb wzr, [x29, #-13] ldur w8, [x29, #-8] stur w8, [x29, #-12] b LBB0_3 LBB0_3: ; Parent Loop BB0_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldur w8, [x29, #-12] subs w8, w8, #9 cset w8, le tbnz w8, #0, LBB0_5 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_3 Depth=2 ldur w8, [x29, #-12] mov w9, #10 sdiv w8, w8, w9 stur w8, [x29, #-12] ldurb w8, [x29, #-13] add w8, w8, #1 sturb w8, [x29, #-13] b LBB0_3 LBB0_5: ; in Loop: Header=BB0_1 Depth=1 ldur s1, [x29, #-8] ; implicit-def: $d0 fmov s0, s1 sshll.2d v0, v0, #0 ; kill: def $d0 killed $d0 killed $q0 scvtf d0, d0 str d0, [sp, #16] ; 8-byte Folded Spill ldur s1, [x29, #-12] ; implicit-def: $d0 fmov s0, s1 sshll.2d v0, v0, #0 ; kill: def $d0 killed $d0 killed $q0 scvtf d0, d0 str d0, [sp, #24] ; 8-byte Folded Spill ldurb w8, [x29, #-13] sxtb w8, w8 scvtf d1, w8 fmov d0, #10.00000000 bl _pow ldr d2, [sp, #16] ; 8-byte Folded Reload fmov d1, d0 ldr d0, [sp, #24] ; 8-byte Folded Reload fmsub d0, d0, d1, d2 fcvtzs w8, d0 stur w8, [x29, #-8] b LBB0_1 LBB0_6: mov w0, #0 ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d\t" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __TEXT,__literal8,8byte_literals .p2align 3 ## -- Begin function main LCPI0_0: .quad 0x4024000000000000 ## double 10 .section __TEXT,__text,regular,pure_instructions .globl _main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl $0, -4(%rbp) movl $5678, -8(%rbp) ## imm = 0x162E LBB0_1: ## =>This Loop Header: Depth=1 ## Child Loop BB0_3 Depth 2 cmpl $0, -8(%rbp) je LBB0_6 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl -8(%rbp), %esi leaq L_.str(%rip), %rdi movb $0, %al callq _printf movb $0, -13(%rbp) movl -8(%rbp), %eax movl %eax, -12(%rbp) LBB0_3: ## Parent Loop BB0_1 Depth=1 ## => This Inner Loop Header: Depth=2 cmpl $9, -12(%rbp) jle LBB0_5 ## %bb.4: ## in Loop: Header=BB0_3 Depth=2 movl -12(%rbp), %eax movl $10, %ecx cltd idivl %ecx movl %eax, -12(%rbp) movb -13(%rbp), %al addb $1, %al movb %al, -13(%rbp) jmp LBB0_3 LBB0_5: ## in Loop: Header=BB0_1 Depth=1 cvtsi2sdl -8(%rbp), %xmm0 movsd %xmm0, -32(%rbp) ## 8-byte Spill cvtsi2sdl -12(%rbp), %xmm0 movsd %xmm0, -24(%rbp) ## 8-byte Spill movsbl -13(%rbp), %eax ## kill: def $cl killed $al cvtsi2sd %eax, %xmm1 movsd LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero callq _pow movsd -32(%rbp), %xmm1 ## 8-byte Reload ## xmm1 = mem[0],zero movaps %xmm0, %xmm2 movsd -24(%rbp), %xmm0 ## 8-byte Reload ## xmm0 = mem[0],zero movq %xmm0, %rax movabsq $-9223372036854775808, %rcx ## imm = 0x8000000000000000 xorq %rcx, %rax movq %rax, %xmm0 mulsd %xmm2, %xmm0 addsd %xmm1, %xmm0 cvttsd2si %xmm0, %eax movl %eax, -8(%rbp) jmp LBB0_1 LBB0_6: xorl %eax, %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d\t" .subsections_via_symbols
the_stack_data/248581376.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 adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov x9, sp sub x8, x29, #4 str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf ldur s0, [x29, #-4] mov w8, #1125384192 fmov s1, w8 fdiv s0, s0, s1 stur s0, [x29, #-8] ldur s0, [x29, #-4] fcvt d1, s0 ldur s0, [x29, #-8] fcvt d0, s0 mov x8, sp str d1, [x8] str d0, [x8, #8] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf mov w0, #0 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Enter the amount of Naira you want to convert:" l_.str.1: ; @.str.1 .asciz "%f" l_.str.2: ; @.str.2 .asciz "The dollar equivalent of N%.2f is $%.2f" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __TEXT,__literal4,4byte_literals .p2align 2 ## -- Begin function main LCPI0_0: .long 0x43140000 ## float 148 .section __TEXT,__text,regular,pure_instructions .globl _main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp leaq L_.str(%rip), %rdi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi leaq -4(%rbp), %rsi movb $0, %al callq _scanf movss -4(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero divss %xmm1, %xmm0 movss %xmm0, -8(%rbp) movss -4(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movss -8(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero cvtss2sd %xmm1, %xmm1 leaq L_.str.2(%rip), %rdi movb $2, %al callq _printf xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Enter the amount of Naira you want to convert:" L_.str.1: ## @.str.1 .asciz "%f" L_.str.2: ## @.str.2 .asciz "The dollar equivalent of N%.2f is $%.2f" .subsections_via_symbols
the_stack_data/894926.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _InitTree ; -- Begin function InitTree .p2align 2 _InitTree: ; @InitTree .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] ldr x8, [sp, #8] ; kill: def $x9 killed $xzr str xzr, [x8] mov w0, #1 add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _FillTree ; -- Begin function FillTree .p2align 2 _FillTree: ; @FillTree .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #8] str x1, [sp] ldr x8, [sp] adrp x9, _i@PAGE ldrsw x9, [x9, _i@PAGEOFF] ldrsb w8, [x8, x9] subs w8, w8, #48 cset w8, ne tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: ldr x8, [sp, #8] ; kill: def $x9 killed $xzr str xzr, [x8] adrp x9, _i@PAGE ldr w8, [x9, _i@PAGEOFF] add w8, w8, #1 str w8, [x9, _i@PAGEOFF] b LBB1_3 LBB1_2: mov x0, #24 bl _malloc ldr x8, [sp, #8] str x0, [x8] ldr x8, [sp] adrp x9, _i@PAGE ldrsw x10, [x9, _i@PAGEOFF] add x8, x8, x10 ldrb w8, [x8] ldr x10, [sp, #8] ldr x10, [x10] strb w8, [x10] ldr w8, [x9, _i@PAGEOFF] add w8, w8, #1 str w8, [x9, _i@PAGEOFF] ldr x8, [sp, #8] ldr x8, [x8] add x0, x8, #8 ldr x1, [sp] bl _FillTree ldr x8, [sp, #8] ldr x8, [x8] add x0, x8, #16 ldr x1, [sp] bl _FillTree b LBB1_3 LBB1_3: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _ClearTree ; -- Begin function ClearTree .p2align 2 _ClearTree: ; @ClearTree .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #8] ldr x8, [sp, #8] ldr x8, [x8] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB2_2 b LBB2_1 LBB2_1: b LBB2_3 LBB2_2: ldr x8, [sp, #8] ldr x8, [x8] add x0, x8, #8 bl _ClearTree ldr x8, [sp, #8] ldr x8, [x8] add x0, x8, #16 bl _ClearTree ldr x8, [sp, #8] ldr x0, [x8] bl _free ldr x8, [sp, #8] ; kill: def $x9 killed $xzr str xzr, [x8] b LBB2_3 LBB2_3: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _BinTreeEmpty ; -- Begin function BinTreeEmpty .p2align 2 _BinTreeEmpty: ; @BinTreeEmpty .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] ldr x8, [sp, #8] subs x8, x8, #0 cset w8, eq and w0, w8, #0x1 add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _BiTreeDepth ; -- Begin function BiTreeDepth .p2align 2 _BiTreeDepth: ; @BiTreeDepth .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #16] ldr x8, [sp, #16] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB4_2 b LBB4_1 LBB4_1: stur wzr, [x29, #-4] b LBB4_6 LBB4_2: ldr x8, [sp, #16] ldr x0, [x8, #8] bl _BiTreeDepth str w0, [sp, #12] ldr x8, [sp, #16] ldr x0, [x8, #16] bl _BiTreeDepth str w0, [sp, #8] ldr w8, [sp, #12] ldr w9, [sp, #8] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB4_4 b LBB4_3 LBB4_3: ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #4] ; 4-byte Folded Spill b LBB4_5 LBB4_4: ldr w8, [sp, #8] add w8, w8, #1 str w8, [sp, #4] ; 4-byte Folded Spill b LBB4_5 LBB4_5: ldr w8, [sp, #4] ; 4-byte Folded Reload stur w8, [x29, #-4] b LBB4_6 LBB4_6: ldur w0, [x29, #-4] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _Assign ; -- Begin function Assign .p2align 2 _Assign: ; @Assign .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, #16] strb w1, [sp, #15] ldr x8, [sp, #16] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB5_2 b LBB5_1 LBB5_1: str wzr, [sp, #28] b LBB5_3 LBB5_2: ldrb w8, [sp, #15] ldr x9, [sp, #16] strb w8, [x9] mov w8, #1 str w8, [sp, #28] b LBB5_3 LBB5_3: ldr w0, [sp, #28] add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _PreOrderTraverse ; -- Begin function PreOrderTraverse .p2align 2 _PreOrderTraverse: ; @PreOrderTraverse .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, eq tbnz w8, #0, LBB6_2 b LBB6_1 LBB6_1: ldr x8, [sp, #8] ldrsb w0, [x8] bl _putchar ldr x8, [sp, #8] ldr x0, [x8, #8] bl _PreOrderTraverse ldr x8, [sp, #8] ldr x0, [x8, #16] bl _PreOrderTraverse b LBB6_2 LBB6_2: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _PreOrderTraverseWithStack ; -- Begin function PreOrderTraverseWithStack .p2align 2 _PreOrderTraverseWithStack: ; @PreOrderTraverseWithStack .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, #832 stur x0, [x29, #-24] add x0, sp, #16 mov x1, #808 bl _bzero mov w8, #-1 str w8, [sp, #816] b LBB7_1 LBB7_1: ; =>This Loop Header: Depth=1 ; Child Loop BB7_5 Depth 2 ldur x8, [x29, #-24] subs x8, x8, #0 cset w8, ne mov w9, #1 str w9, [sp, #12] ; 4-byte Folded Spill tbnz w8, #0, LBB7_3 b LBB7_2 LBB7_2: ; in Loop: Header=BB7_1 Depth=1 ldr w8, [sp, #816] adds w8, w8, #1 cset w8, ne str w8, [sp, #12] ; 4-byte Folded Spill b LBB7_3 LBB7_3: ; in Loop: Header=BB7_1 Depth=1 ldr w8, [sp, #12] ; 4-byte Folded Reload tbz w8, #0, LBB7_10 b LBB7_4 LBB7_4: ; in Loop: Header=BB7_1 Depth=1 b LBB7_5 LBB7_5: ; Parent Loop BB7_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldur x8, [x29, #-24] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB7_7 b LBB7_6 LBB7_6: ; in Loop: Header=BB7_5 Depth=2 ldur x8, [x29, #-24] ldrsb w0, [x8] bl _putchar ldur x8, [x29, #-24] add x9, sp, #16 ldr w10, [sp, #816] add w10, w10, #1 str w10, [sp, #816] str x8, [x9, w10, sxtw #3] ldur x8, [x29, #-24] ldr x8, [x8, #8] stur x8, [x29, #-24] b LBB7_5 LBB7_7: ; in Loop: Header=BB7_1 Depth=1 ldr w8, [sp, #816] adds w8, w8, #1 cset w8, eq tbnz w8, #0, LBB7_9 b LBB7_8 LBB7_8: ; in Loop: Header=BB7_1 Depth=1 add x8, sp, #16 ldrsw x9, [sp, #816] mov x10, x9 subs w10, w10, #1 str w10, [sp, #816] ldr x8, [x8, x9, lsl #3] stur x8, [x29, #-24] ldur x8, [x29, #-24] ldr x8, [x8, #16] stur x8, [x29, #-24] b LBB7_9 LBB7_9: ; in Loop: Header=BB7_1 Depth=1 b LBB7_1 LBB7_10: add sp, sp, #832 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x28, x27, [sp], #32 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .globl _InOrderTraverse ; -- Begin function InOrderTraverse .p2align 2 _InOrderTraverse: ; @InOrderTraverse .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, eq tbnz w8, #0, LBB8_2 b LBB8_1 LBB8_1: ldr x8, [sp, #8] ldr x0, [x8, #8] bl _InOrderTraverse ldr x8, [sp, #8] ldrsb w0, [x8] bl _putchar ldr x8, [sp, #8] ldr x0, [x8, #16] bl _InOrderTraverse b LBB8_2 LBB8_2: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _InOrderTraverseWithStack ; -- Begin function InOrderTraverseWithStack .p2align 2 _InOrderTraverseWithStack: ; @InOrderTraverseWithStack .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, #832 stur x0, [x29, #-24] add x0, sp, #16 mov x1, #808 bl _bzero mov w8, #-1 str w8, [sp, #816] b LBB9_1 LBB9_1: ; =>This Loop Header: Depth=1 ; Child Loop BB9_5 Depth 2 ldur x8, [x29, #-24] subs x8, x8, #0 cset w8, ne mov w9, #1 str w9, [sp, #12] ; 4-byte Folded Spill tbnz w8, #0, LBB9_3 b LBB9_2 LBB9_2: ; in Loop: Header=BB9_1 Depth=1 ldr w8, [sp, #816] adds w8, w8, #1 cset w8, ne str w8, [sp, #12] ; 4-byte Folded Spill b LBB9_3 LBB9_3: ; in Loop: Header=BB9_1 Depth=1 ldr w8, [sp, #12] ; 4-byte Folded Reload tbz w8, #0, LBB9_10 b LBB9_4 LBB9_4: ; in Loop: Header=BB9_1 Depth=1 b LBB9_5 LBB9_5: ; Parent Loop BB9_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldur x8, [x29, #-24] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB9_7 b LBB9_6 LBB9_6: ; in Loop: Header=BB9_5 Depth=2 ldur x8, [x29, #-24] add x9, sp, #16 ldr w10, [sp, #816] add w10, w10, #1 str w10, [sp, #816] str x8, [x9, w10, sxtw #3] ldur x8, [x29, #-24] ldr x8, [x8, #8] stur x8, [x29, #-24] b LBB9_5 LBB9_7: ; in Loop: Header=BB9_1 Depth=1 ldr w8, [sp, #816] adds w8, w8, #1 cset w8, eq tbnz w8, #0, LBB9_9 b LBB9_8 LBB9_8: ; in Loop: Header=BB9_1 Depth=1 add x8, sp, #16 ldrsw x9, [sp, #816] mov x10, x9 subs w10, w10, #1 str w10, [sp, #816] ldr x8, [x8, x9, lsl #3] stur x8, [x29, #-24] ldur x8, [x29, #-24] ldrsb w0, [x8] bl _putchar ldur x8, [x29, #-24] ldr x8, [x8, #16] stur x8, [x29, #-24] b LBB9_9 LBB9_9: ; in Loop: Header=BB9_1 Depth=1 b LBB9_1 LBB9_10: add sp, sp, #832 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x28, x27, [sp], #32 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .globl _PostOrderTraverse ; -- Begin function PostOrderTraverse .p2align 2 _PostOrderTraverse: ; @PostOrderTraverse .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, eq tbnz w8, #0, LBB10_2 b LBB10_1 LBB10_1: ldr x8, [sp, #8] ldr x0, [x8, #8] bl _PostOrderTraverse ldr x8, [sp, #8] ldr x0, [x8, #16] bl _PostOrderTraverse ldr x8, [sp, #8] ldrsb w0, [x8] bl _putchar b LBB10_2 LBB10_2: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _PostOrderTraverseWithStack ; -- Begin function PostOrderTraverseWithStack .p2align 2 _PostOrderTraverseWithStack: ; @PostOrderTraverseWithStack .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, #1232 stur x0, [x29, #-24] stur wzr, [x29, #-28] add x0, sp, #8 mov x1, #1208 bl _bzero mov w8, #-1 str w8, [sp, #1208] b LBB11_1 LBB11_1: ; =>This Loop Header: Depth=1 ; Child Loop BB11_5 Depth 2 ; Child Loop BB11_8 Depth 2 ldur x8, [x29, #-24] subs x8, x8, #0 cset w8, ne mov w9, #1 str w9, [sp, #4] ; 4-byte Folded Spill tbnz w8, #0, LBB11_3 b LBB11_2 LBB11_2: ; in Loop: Header=BB11_1 Depth=1 ldr w8, [sp, #1208] adds w8, w8, #1 cset w8, ne str w8, [sp, #4] ; 4-byte Folded Spill b LBB11_3 LBB11_3: ; in Loop: Header=BB11_1 Depth=1 ldr w8, [sp, #4] ; 4-byte Folded Reload tbz w8, #0, LBB11_16 b LBB11_4 LBB11_4: ; in Loop: Header=BB11_1 Depth=1 b LBB11_5 LBB11_5: ; Parent Loop BB11_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldur x8, [x29, #-24] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB11_7 b LBB11_6 LBB11_6: ; in Loop: Header=BB11_5 Depth=2 ldur x8, [x29, #-24] add x9, sp, #8 ldr w10, [sp, #1208] add w10, w10, #1 str w10, [sp, #1208] str x8, [x9, w10, sxtw #3] ldur x8, [x29, #-24] ldr x8, [x8, #8] stur x8, [x29, #-24] b LBB11_5 LBB11_7: ; in Loop: Header=BB11_1 Depth=1 add x8, sp, #8 add x8, x8, #800 ldrsw x9, [sp, #1208] add x9, x8, x9, lsl #2 ldr w8, [x9] add w8, w8, #1 str w8, [x9] b LBB11_8 LBB11_8: ; Parent Loop BB11_1 Depth=1 ; => This Inner Loop Header: Depth=2 add x8, sp, #8 add x8, x8, #800 ldrsw x9, [sp, #1208] ldr w8, [x8, x9, lsl #2] subs w8, w8, #2 cset w8, ne tbnz w8, #0, LBB11_12 b LBB11_9 LBB11_9: ; in Loop: Header=BB11_8 Depth=2 add x8, sp, #8 add x10, x8, #800 ldrsw x11, [sp, #1208] mov w9, #0 str w9, [x10, x11, lsl #2] ldrsw x9, [sp, #1208] mov x10, x9 subs w10, w10, #1 str w10, [sp, #1208] ldr x8, [x8, x9, lsl #3] stur x8, [x29, #-24] ldur x8, [x29, #-24] ldrsb w0, [x8] bl _putchar ldr w8, [sp, #1208] adds w8, w8, #1 cset w8, eq tbnz w8, #0, LBB11_11 b LBB11_10 LBB11_10: ; in Loop: Header=BB11_8 Depth=2 add x8, sp, #8 add x8, x8, #800 ldrsw x9, [sp, #1208] add x9, x8, x9, lsl #2 ldr w8, [x9] add w8, w8, #1 str w8, [x9] b LBB11_11 LBB11_11: ; in Loop: Header=BB11_8 Depth=2 b LBB11_8 LBB11_12: ; in Loop: Header=BB11_1 Depth=1 ldr w8, [sp, #1208] adds w8, w8, #1 cset w8, eq tbnz w8, #0, LBB11_14 b LBB11_13 LBB11_13: ; in Loop: Header=BB11_1 Depth=1 add x8, sp, #8 ldrsw x9, [sp, #1208] ldr x8, [x8, x9, lsl #3] ldr x8, [x8, #16] stur x8, [x29, #-24] b LBB11_15 LBB11_14: ; in Loop: Header=BB11_1 Depth=1 ; kill: def $x8 killed $xzr stur xzr, [x29, #-24] b LBB11_15 LBB11_15: ; in Loop: Header=BB11_1 Depth=1 b LBB11_1 LBB11_16: add sp, sp, #1232 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x28, x27, [sp], #32 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .globl _LevelOrderTraverse ; -- Begin function LevelOrderTraverse .p2align 2 _LevelOrderTraverse: ; @LevelOrderTraverse .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, #816 stur x0, [x29, #-24] str wzr, [sp, #804] str wzr, [sp, #800] b LBB12_1 LBB12_1: ; =>This Inner Loop Header: Depth=1 ldur x8, [x29, #-24] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB12_10 b LBB12_2 LBB12_2: ; in Loop: Header=BB12_1 Depth=1 ldur x8, [x29, #-24] ldrsb w0, [x8] bl _putchar ldur x8, [x29, #-24] ldr x8, [x8, #8] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB12_4 b LBB12_3 LBB12_3: ; in Loop: Header=BB12_1 Depth=1 ldur x8, [x29, #-24] ldr x8, [x8, #8] mov x9, sp ldrsw x10, [sp, #804] mov x11, x10 add w11, w11, #1 str w11, [sp, #804] str x8, [x9, x10, lsl #3] b LBB12_4 LBB12_4: ; in Loop: Header=BB12_1 Depth=1 ldur x8, [x29, #-24] ldr x8, [x8, #16] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB12_6 b LBB12_5 LBB12_5: ; in Loop: Header=BB12_1 Depth=1 ldur x8, [x29, #-24] ldr x8, [x8, #16] mov x9, sp ldrsw x10, [sp, #804] mov x11, x10 add w11, w11, #1 str w11, [sp, #804] str x8, [x9, x10, lsl #3] b LBB12_6 LBB12_6: ; in Loop: Header=BB12_1 Depth=1 ldr w8, [sp, #800] ldr w9, [sp, #804] subs w8, w8, w9 cset w8, eq tbnz w8, #0, LBB12_8 b LBB12_7 LBB12_7: ; in Loop: Header=BB12_1 Depth=1 mov x8, sp ldrsw x9, [sp, #800] mov x10, x9 add w10, w10, #1 str w10, [sp, #800] ldr x8, [x8, x9, lsl #3] stur x8, [x29, #-24] b LBB12_9 LBB12_8: ; in Loop: Header=BB12_1 Depth=1 ; kill: def $x8 killed $xzr stur xzr, [x29, #-24] b LBB12_9 LBB12_9: ; in Loop: Header=BB12_1 Depth=1 b LBB12_1 LBB12_10: add sp, sp, #816 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x28, x27, [sp], #32 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #144 .cfi_def_cfa_offset 144 stp x29, x30, [sp, #128] ; 16-byte Folded Spill add x29, sp, #128 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #0 str w8, [sp, #60] ; 4-byte Folded Spill stur wzr, [x29, #-4] stur w0, [x29, #-8] stur x1, [x29, #-16] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _puts sub x0, x29, #56 str x0, [sp, #32] ; 8-byte Folded Spill bl _InitTree ldur x0, [x29, #-56] bl _BinTreeEmpty mov x9, sp ; implicit-def: $x8 mov x8, x0 str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf ldr x0, [sp, #32] ; 8-byte Folded Reload adrp x8, l_.str.2@PAGE add x8, x8, l_.str.2@PAGEOFF str x8, [sp, #64] ldr x1, [sp, #64] bl _FillTree ldr x8, [sp, #64] mov x9, sp str x8, [x9] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF str x0, [sp, #40] ; 8-byte Folded Spill bl _printf ldur x0, [x29, #-56] bl _BinTreeEmpty str w0, [sp, #28] ; 4-byte Folded Spill ldur x0, [x29, #-56] bl _BiTreeDepth ldr w10, [sp, #28] ; 4-byte Folded Reload mov x9, sp ; implicit-def: $x8 mov x8, x10 str x8, [x9] ; implicit-def: $x8 mov x8, x0 str x8, [x9, #8] adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf ldur x0, [x29, #-56] bl _LevelOrderTraverse adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF str x0, [sp, #48] ; 8-byte Folded Spill bl _puts adrp x0, l_.str.7@PAGE add x0, x0, l_.str.7@PAGEOFF bl _printf ldur x0, [x29, #-56] bl _PreOrderTraverse ldr x0, [sp, #48] ; 8-byte Folded Reload bl _puts adrp x0, l_.str.8@PAGE add x0, x0, l_.str.8@PAGEOFF bl _printf ldur x0, [x29, #-56] bl _PreOrderTraverseWithStack ldr x0, [sp, #48] ; 8-byte Folded Reload bl _puts adrp x0, l_.str.9@PAGE add x0, x0, l_.str.9@PAGEOFF bl _printf ldur x0, [x29, #-56] bl _InOrderTraverse ldr x0, [sp, #48] ; 8-byte Folded Reload bl _puts adrp x0, l_.str.10@PAGE add x0, x0, l_.str.10@PAGEOFF bl _printf ldur x0, [x29, #-56] bl _InOrderTraverseWithStack ldr x0, [sp, #48] ; 8-byte Folded Reload bl _puts adrp x0, l_.str.11@PAGE add x0, x0, l_.str.11@PAGEOFF bl _printf ldur x0, [x29, #-56] bl _PostOrderTraverse ldr x0, [sp, #48] ; 8-byte Folded Reload bl _puts adrp x0, l_.str.12@PAGE add x0, x0, l_.str.12@PAGEOFF bl _printf ldur x0, [x29, #-56] bl _PostOrderTraverseWithStack ldr x0, [sp, #48] ; 8-byte Folded Reload bl _puts ldr x0, [sp, #32] ; 8-byte Folded Reload bl _ClearTree ldur x0, [x29, #-56] bl _BinTreeEmpty mov x9, sp ; implicit-def: $x8 mov x8, x0 str x8, [x9] adrp x0, l_.str.13@PAGE add x0, x0, l_.str.13@PAGEOFF bl _printf ldr x0, [sp, #32] ; 8-byte Folded Reload adrp x8, _i@PAGE str wzr, [x8, _i@PAGEOFF] adrp x8, l_.str.14@PAGE add x8, x8, l_.str.14@PAGEOFF str x8, [sp, #64] bl _InitTree ldr x0, [sp, #32] ; 8-byte Folded Reload ldr x1, [sp, #64] bl _FillTree ldr x0, [sp, #40] ; 8-byte Folded Reload ldr x8, [sp, #64] mov x9, sp str x8, [x9] bl _printf adrp x0, l_.str.15@PAGE add x0, x0, l_.str.15@PAGEOFF bl _puts adrp x0, l_.str.16@PAGE add x0, x0, l_.str.16@PAGEOFF bl _printf ldur x0, [x29, #-56] bl _PreOrderTraverse ldr x0, [sp, #48] ; 8-byte Folded Reload bl _puts adrp x0, l_.str.17@PAGE add x0, x0, l_.str.17@PAGEOFF bl _printf ldur x0, [x29, #-56] bl _InOrderTraverse adrp x0, l_.str.18@PAGE add x0, x0, l_.str.18@PAGEOFF bl _puts ldr x0, [sp, #48] ; 8-byte Folded Reload bl _puts adrp x0, l_.str.19@PAGE add x0, x0, l_.str.19@PAGEOFF bl _printf ldur x0, [x29, #-56] bl _PostOrderTraverse ldr x0, [sp, #48] ; 8-byte Folded Reload bl _puts ldr w0, [sp, #60] ; 4-byte Folded Reload ldp x29, x30, [sp, #128] ; 16-byte Folded Reload add sp, sp, #144 ret .cfi_endproc ; -- End function .globl _i ; @i .zerofill __DATA,__common,_i,4,2 .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "init tree" l_.str.1: ; @.str.1 .asciz "is binary tree empty?\n%d\n" l_.str.2: ; @.str.2 .asciz "ABDH0K000E00CFI000G0J00" l_.str.3: ; @.str.3 .asciz "using data:\t%s\tto fill tree\n" l_.str.4: ; @.str.4 .asciz "\345\273\272\347\253\213\344\272\214\345\217\211\346\240\221\345\220\216,\346\240\221\347\251\272\345\220\246\357\274\237%d \346\240\221\347\232\204\346\267\261\345\272\246=%d\n" l_.str.5: ; @.str.5 .asciz "\345\261\202\345\272\217\351\201\215\345\216\206\344\272\214\345\217\211\346\240\221:\n" l_.str.6: ; @.str.6 .space 1 l_.str.7: ; @.str.7 .asciz "\345\211\215\345\272\217\351\201\215\345\216\206\344\272\214\345\217\211\346\240\221:\n" l_.str.8: ; @.str.8 .asciz "\345\211\215\345\272\217\351\201\215\345\216\206\344\272\214\345\217\211\346\240\221(\351\235\236\351\200\222\345\275\222\346\226\271\345\274\217):\n" l_.str.9: ; @.str.9 .asciz "\344\270\255\345\272\217\351\201\215\345\216\206\344\272\214\345\217\211\346\240\221:\n" l_.str.10: ; @.str.10 .asciz "\344\270\255\345\272\217\351\201\215\345\216\206\344\272\214\345\217\211\346\240\221(\351\235\236\351\200\222\345\275\222\346\226\271\345\274\217):\n" l_.str.11: ; @.str.11 .asciz "\345\220\216\345\272\217\351\201\215\345\216\206\344\272\214\345\217\211\346\240\221:\n" l_.str.12: ; @.str.12 .asciz "\345\220\216\345\272\217\351\201\215\345\216\206\344\272\214\345\217\211\346\240\221(\351\235\236\351\200\222\345\275\222\346\226\271\345\274\217):\n" l_.str.13: ; @.str.13 .asciz "\346\270\205\351\231\244\344\272\214\345\217\211\346\240\221\345\220\216 is binary tree empty?\n%d\n" l_.str.14: ; @.str.14 .asciz "++a00*b00c00*d00e00" l_.str.15: ; @.str.15 .asciz "\350\277\220\347\256\227\350\241\250\350\276\276\345\274\217\346\240\221\347\232\204\351\201\215\345\216\206" l_.str.16: ; @.str.16 .asciz "\345\211\215\345\272\217\351\201\215\345\216\206(\345\211\215\347\274\200\350\241\250\350\276\276\345\274\217):\n" l_.str.17: ; @.str.17 .asciz "\344\270\255\345\272\217\351\201\215\345\216\206(\344\270\255\347\274\200\350\241\250\350\276\276\345\274\217):\n" l_.str.18: ; @.str.18 .asciz "\347\224\261\344\272\216\350\277\220\347\256\227\344\274\230\345\205\210\347\272\247\347\232\204\345\255\230\345\234\250,\344\270\255\347\274\200\350\241\250\350\276\276\345\274\217\345\217\257\350\203\275\344\270\215\346\255\243\347\241\256\357\274\214\345\246\202\346\236\234\350\246\201\345\207\206\347\241\256\347\232\204\344\270\255\347\274\200\350\241\250\350\276\276\345\274\217\357\274\214\345\217\257\344\273\245\350\200\203\350\231\221\345\234\250\346\257\217\344\270\244\344\270\252\345\217\266\345\255\220\350\212\202\347\202\271\345\211\215\345\220\216\346\267\273\345\212\240\346\213\254\345\217\267" l_.str.19: ; @.str.19 .asciz "\345\220\216\345\272\217\351\201\215\345\216\206(\345\220\216\347\274\200\350\241\250\350\276\276\345\274\217):\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _InitTree ## -- Begin function InitTree .p2align 4, 0x90 _InitTree: ## @InitTree .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) movq -8(%rbp), %rax movq $0, (%rax) movl $1, %eax popq %rbp retq .cfi_endproc ## -- End function .globl _FillTree ## -- Begin function FillTree .p2align 4, 0x90 _FillTree: ## @FillTree .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) movq -16(%rbp), %rax movslq _i(%rip), %rcx movsbl (%rax,%rcx), %eax cmpl $48, %eax jne LBB1_2 ## %bb.1: movq -8(%rbp), %rax movq $0, (%rax) movl _i(%rip), %eax addl $1, %eax movl %eax, _i(%rip) jmp LBB1_3 LBB1_2: movl $24, %edi callq _malloc movq %rax, %rcx movq -8(%rbp), %rax movq %rcx, (%rax) movq -16(%rbp), %rax movslq _i(%rip), %rcx movb (%rax,%rcx), %cl movq -8(%rbp), %rax movq (%rax), %rax movb %cl, (%rax) movl _i(%rip), %eax addl $1, %eax movl %eax, _i(%rip) movq -8(%rbp), %rax movq (%rax), %rdi addq $8, %rdi movq -16(%rbp), %rsi callq _FillTree movq -8(%rbp), %rax movq (%rax), %rdi addq $16, %rdi movq -16(%rbp), %rsi callq _FillTree LBB1_3: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _ClearTree ## -- Begin function ClearTree .p2align 4, 0x90 _ClearTree: ## @ClearTree .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) movq -8(%rbp), %rax cmpq $0, (%rax) jne LBB2_2 ## %bb.1: jmp LBB2_3 LBB2_2: movq -8(%rbp), %rax movq (%rax), %rdi addq $8, %rdi callq _ClearTree movq -8(%rbp), %rax movq (%rax), %rdi addq $16, %rdi callq _ClearTree movq -8(%rbp), %rax movq (%rax), %rdi callq _free movq -8(%rbp), %rax movq $0, (%rax) LBB2_3: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _BinTreeEmpty ## -- Begin function BinTreeEmpty .p2align 4, 0x90 _BinTreeEmpty: ## @BinTreeEmpty .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) cmpq $0, -8(%rbp) sete %al andb $1, %al movzbl %al, %eax popq %rbp retq .cfi_endproc ## -- End function .globl _BiTreeDepth ## -- Begin function BiTreeDepth .p2align 4, 0x90 _BiTreeDepth: ## @BiTreeDepth .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -16(%rbp) cmpq $0, -16(%rbp) jne LBB4_2 ## %bb.1: movl $0, -4(%rbp) jmp LBB4_6 LBB4_2: movq -16(%rbp), %rax movq 8(%rax), %rdi callq _BiTreeDepth movl %eax, -20(%rbp) movq -16(%rbp), %rax movq 16(%rax), %rdi callq _BiTreeDepth movl %eax, -24(%rbp) movl -20(%rbp), %eax cmpl -24(%rbp), %eax jle LBB4_4 ## %bb.3: movl -20(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) ## 4-byte Spill jmp LBB4_5 LBB4_4: movl -24(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) ## 4-byte Spill LBB4_5: movl -28(%rbp), %eax ## 4-byte Reload movl %eax, -4(%rbp) LBB4_6: movl -4(%rbp), %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _Assign ## -- Begin function Assign .p2align 4, 0x90 _Assign: ## @Assign .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movb %sil, %al movq %rdi, -16(%rbp) movb %al, -17(%rbp) cmpq $0, -16(%rbp) jne LBB5_2 ## %bb.1: movl $0, -4(%rbp) jmp LBB5_3 LBB5_2: movb -17(%rbp), %cl movq -16(%rbp), %rax movb %cl, (%rax) movl $1, -4(%rbp) LBB5_3: movl -4(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .globl _PreOrderTraverse ## -- Begin function PreOrderTraverse .p2align 4, 0x90 _PreOrderTraverse: ## @PreOrderTraverse .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) cmpq $0, -8(%rbp) je LBB6_2 ## %bb.1: movq -8(%rbp), %rax movsbl (%rax), %edi callq _putchar movq -8(%rbp), %rax movq 8(%rax), %rdi callq _PreOrderTraverse movq -8(%rbp), %rax movq 16(%rax), %rdi callq _PreOrderTraverse LBB6_2: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _PreOrderTraverseWithStack ## -- Begin function PreOrderTraverseWithStack .p2align 4, 0x90 _PreOrderTraverseWithStack: ## @PreOrderTraverseWithStack .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $832, %rsp ## imm = 0x340 movq %rdi, -8(%rbp) leaq -816(%rbp), %rdi xorl %esi, %esi movl $808, %edx ## imm = 0x328 callq _memset movl $-1, -16(%rbp) LBB7_1: ## =>This Loop Header: Depth=1 ## Child Loop BB7_5 Depth 2 movb $1, %al cmpq $0, -8(%rbp) movb %al, -817(%rbp) ## 1-byte Spill jne LBB7_3 ## %bb.2: ## in Loop: Header=BB7_1 Depth=1 cmpl $-1, -16(%rbp) setne %al movb %al, -817(%rbp) ## 1-byte Spill LBB7_3: ## in Loop: Header=BB7_1 Depth=1 movb -817(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB7_4 jmp LBB7_10 LBB7_4: ## in Loop: Header=BB7_1 Depth=1 jmp LBB7_5 LBB7_5: ## Parent Loop BB7_1 Depth=1 ## => This Inner Loop Header: Depth=2 cmpq $0, -8(%rbp) je LBB7_7 ## %bb.6: ## in Loop: Header=BB7_5 Depth=2 movq -8(%rbp), %rax movsbl (%rax), %edi callq _putchar movq -8(%rbp), %rcx movl -16(%rbp), %eax addl $1, %eax movl %eax, -16(%rbp) cltq movq %rcx, -816(%rbp,%rax,8) movq -8(%rbp), %rax movq 8(%rax), %rax movq %rax, -8(%rbp) jmp LBB7_5 LBB7_7: ## in Loop: Header=BB7_1 Depth=1 cmpl $-1, -16(%rbp) je LBB7_9 ## %bb.8: ## in Loop: Header=BB7_1 Depth=1 movl -16(%rbp), %eax movl %eax, %ecx addl $-1, %ecx movl %ecx, -16(%rbp) cltq movq -816(%rbp,%rax,8), %rax movq %rax, -8(%rbp) movq -8(%rbp), %rax movq 16(%rax), %rax movq %rax, -8(%rbp) LBB7_9: ## in Loop: Header=BB7_1 Depth=1 jmp LBB7_1 LBB7_10: addq $832, %rsp ## imm = 0x340 popq %rbp retq .cfi_endproc ## -- End function .globl _InOrderTraverse ## -- Begin function InOrderTraverse .p2align 4, 0x90 _InOrderTraverse: ## @InOrderTraverse .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) cmpq $0, -8(%rbp) je LBB8_2 ## %bb.1: movq -8(%rbp), %rax movq 8(%rax), %rdi callq _InOrderTraverse movq -8(%rbp), %rax movsbl (%rax), %edi callq _putchar movq -8(%rbp), %rax movq 16(%rax), %rdi callq _InOrderTraverse LBB8_2: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _InOrderTraverseWithStack ## -- Begin function InOrderTraverseWithStack .p2align 4, 0x90 _InOrderTraverseWithStack: ## @InOrderTraverseWithStack .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $832, %rsp ## imm = 0x340 movq %rdi, -8(%rbp) leaq -816(%rbp), %rdi xorl %esi, %esi movl $808, %edx ## imm = 0x328 callq _memset movl $-1, -16(%rbp) LBB9_1: ## =>This Loop Header: Depth=1 ## Child Loop BB9_5 Depth 2 movb $1, %al cmpq $0, -8(%rbp) movb %al, -817(%rbp) ## 1-byte Spill jne LBB9_3 ## %bb.2: ## in Loop: Header=BB9_1 Depth=1 cmpl $-1, -16(%rbp) setne %al movb %al, -817(%rbp) ## 1-byte Spill LBB9_3: ## in Loop: Header=BB9_1 Depth=1 movb -817(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB9_4 jmp LBB9_10 LBB9_4: ## in Loop: Header=BB9_1 Depth=1 jmp LBB9_5 LBB9_5: ## Parent Loop BB9_1 Depth=1 ## => This Inner Loop Header: Depth=2 cmpq $0, -8(%rbp) je LBB9_7 ## %bb.6: ## in Loop: Header=BB9_5 Depth=2 movq -8(%rbp), %rcx movl -16(%rbp), %eax addl $1, %eax movl %eax, -16(%rbp) cltq movq %rcx, -816(%rbp,%rax,8) movq -8(%rbp), %rax movq 8(%rax), %rax movq %rax, -8(%rbp) jmp LBB9_5 LBB9_7: ## in Loop: Header=BB9_1 Depth=1 cmpl $-1, -16(%rbp) je LBB9_9 ## %bb.8: ## in Loop: Header=BB9_1 Depth=1 movl -16(%rbp), %eax movl %eax, %ecx addl $-1, %ecx movl %ecx, -16(%rbp) cltq movq -816(%rbp,%rax,8), %rax movq %rax, -8(%rbp) movq -8(%rbp), %rax movsbl (%rax), %edi callq _putchar movq -8(%rbp), %rax movq 16(%rax), %rax movq %rax, -8(%rbp) LBB9_9: ## in Loop: Header=BB9_1 Depth=1 jmp LBB9_1 LBB9_10: addq $832, %rsp ## imm = 0x340 popq %rbp retq .cfi_endproc ## -- End function .globl _PostOrderTraverse ## -- Begin function PostOrderTraverse .p2align 4, 0x90 _PostOrderTraverse: ## @PostOrderTraverse .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) cmpq $0, -8(%rbp) je LBB10_2 ## %bb.1: movq -8(%rbp), %rax movq 8(%rax), %rdi callq _PostOrderTraverse movq -8(%rbp), %rax movq 16(%rax), %rdi callq _PostOrderTraverse movq -8(%rbp), %rax movsbl (%rax), %edi callq _putchar LBB10_2: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _PostOrderTraverseWithStack ## -- Begin function PostOrderTraverseWithStack .p2align 4, 0x90 _PostOrderTraverseWithStack: ## @PostOrderTraverseWithStack .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $1232, %rsp ## imm = 0x4D0 movq %rdi, -8(%rbp) movl $0, -12(%rbp) leaq -1224(%rbp), %rdi xorl %esi, %esi movl $1208, %edx ## imm = 0x4B8 callq _memset movl $-1, -24(%rbp) LBB11_1: ## =>This Loop Header: Depth=1 ## Child Loop BB11_5 Depth 2 ## Child Loop BB11_8 Depth 2 movb $1, %al cmpq $0, -8(%rbp) movb %al, -1225(%rbp) ## 1-byte Spill jne LBB11_3 ## %bb.2: ## in Loop: Header=BB11_1 Depth=1 cmpl $-1, -24(%rbp) setne %al movb %al, -1225(%rbp) ## 1-byte Spill LBB11_3: ## in Loop: Header=BB11_1 Depth=1 movb -1225(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB11_4 jmp LBB11_16 LBB11_4: ## in Loop: Header=BB11_1 Depth=1 jmp LBB11_5 LBB11_5: ## Parent Loop BB11_1 Depth=1 ## => This Inner Loop Header: Depth=2 cmpq $0, -8(%rbp) je LBB11_7 ## %bb.6: ## in Loop: Header=BB11_5 Depth=2 movq -8(%rbp), %rcx movl -24(%rbp), %eax addl $1, %eax movl %eax, -24(%rbp) cltq movq %rcx, -1224(%rbp,%rax,8) movq -8(%rbp), %rax movq 8(%rax), %rax movq %rax, -8(%rbp) jmp LBB11_5 LBB11_7: ## in Loop: Header=BB11_1 Depth=1 movslq -24(%rbp), %rax movl -424(%rbp,%rax,4), %ecx addl $1, %ecx movl %ecx, -424(%rbp,%rax,4) LBB11_8: ## Parent Loop BB11_1 Depth=1 ## => This Inner Loop Header: Depth=2 movslq -24(%rbp), %rax cmpl $2, -424(%rbp,%rax,4) jne LBB11_12 ## %bb.9: ## in Loop: Header=BB11_8 Depth=2 movslq -24(%rbp), %rax movl $0, -424(%rbp,%rax,4) movl -24(%rbp), %eax movl %eax, %ecx addl $-1, %ecx movl %ecx, -24(%rbp) cltq movq -1224(%rbp,%rax,8), %rax movq %rax, -8(%rbp) movq -8(%rbp), %rax movsbl (%rax), %edi callq _putchar cmpl $-1, -24(%rbp) je LBB11_11 ## %bb.10: ## in Loop: Header=BB11_8 Depth=2 movslq -24(%rbp), %rax movl -424(%rbp,%rax,4), %ecx addl $1, %ecx movl %ecx, -424(%rbp,%rax,4) LBB11_11: ## in Loop: Header=BB11_8 Depth=2 jmp LBB11_8 LBB11_12: ## in Loop: Header=BB11_1 Depth=1 cmpl $-1, -24(%rbp) je LBB11_14 ## %bb.13: ## in Loop: Header=BB11_1 Depth=1 movslq -24(%rbp), %rax movq -1224(%rbp,%rax,8), %rax movq 16(%rax), %rax movq %rax, -8(%rbp) jmp LBB11_15 LBB11_14: ## in Loop: Header=BB11_1 Depth=1 movq $0, -8(%rbp) LBB11_15: ## in Loop: Header=BB11_1 Depth=1 jmp LBB11_1 LBB11_16: addq $1232, %rsp ## imm = 0x4D0 popq %rbp retq .cfi_endproc ## -- End function .globl _LevelOrderTraverse ## -- Begin function LevelOrderTraverse .p2align 4, 0x90 _LevelOrderTraverse: ## @LevelOrderTraverse .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $816, %rsp ## imm = 0x330 movq %rdi, -8(%rbp) movl $0, -12(%rbp) movl $0, -16(%rbp) LBB12_1: ## =>This Inner Loop Header: Depth=1 cmpq $0, -8(%rbp) je LBB12_10 ## %bb.2: ## in Loop: Header=BB12_1 Depth=1 movq -8(%rbp), %rax movsbl (%rax), %edi callq _putchar movq -8(%rbp), %rax cmpq $0, 8(%rax) je LBB12_4 ## %bb.3: ## in Loop: Header=BB12_1 Depth=1 movq -8(%rbp), %rax movq 8(%rax), %rcx movl -12(%rbp), %eax movl %eax, %edx addl $1, %edx movl %edx, -12(%rbp) cltq movq %rcx, -816(%rbp,%rax,8) LBB12_4: ## in Loop: Header=BB12_1 Depth=1 movq -8(%rbp), %rax cmpq $0, 16(%rax) je LBB12_6 ## %bb.5: ## in Loop: Header=BB12_1 Depth=1 movq -8(%rbp), %rax movq 16(%rax), %rcx movl -12(%rbp), %eax movl %eax, %edx addl $1, %edx movl %edx, -12(%rbp) cltq movq %rcx, -816(%rbp,%rax,8) LBB12_6: ## in Loop: Header=BB12_1 Depth=1 movl -16(%rbp), %eax cmpl -12(%rbp), %eax je LBB12_8 ## %bb.7: ## in Loop: Header=BB12_1 Depth=1 movl -16(%rbp), %eax movl %eax, %ecx addl $1, %ecx movl %ecx, -16(%rbp) cltq movq -816(%rbp,%rax,8), %rax movq %rax, -8(%rbp) jmp LBB12_9 LBB12_8: ## in Loop: Header=BB12_1 Depth=1 movq $0, -8(%rbp) LBB12_9: ## in Loop: Header=BB12_1 Depth=1 jmp LBB12_1 LBB12_10: addq $816, %rsp ## imm = 0x330 popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $80, %rsp movl $0, -4(%rbp) movl %edi, -8(%rbp) movq %rsi, -16(%rbp) leaq L_.str(%rip), %rdi callq _puts leaq -56(%rbp), %rdi callq _InitTree movq -56(%rbp), %rdi callq _BinTreeEmpty movl %eax, %esi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf leaq L_.str.2(%rip), %rax movq %rax, -64(%rbp) movq -64(%rbp), %rsi leaq -56(%rbp), %rdi callq _FillTree movq -64(%rbp), %rsi leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf movq -56(%rbp), %rdi callq _BinTreeEmpty movl %eax, -68(%rbp) ## 4-byte Spill movq -56(%rbp), %rdi callq _BiTreeDepth movl -68(%rbp), %esi ## 4-byte Reload movl %eax, %edx leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf leaq L_.str.5(%rip), %rdi movb $0, %al callq _printf movq -56(%rbp), %rdi callq _LevelOrderTraverse leaq L_.str.6(%rip), %rdi callq _puts leaq L_.str.7(%rip), %rdi movb $0, %al callq _printf movq -56(%rbp), %rdi callq _PreOrderTraverse leaq L_.str.6(%rip), %rdi callq _puts leaq L_.str.8(%rip), %rdi movb $0, %al callq _printf movq -56(%rbp), %rdi callq _PreOrderTraverseWithStack leaq L_.str.6(%rip), %rdi callq _puts leaq L_.str.9(%rip), %rdi movb $0, %al callq _printf movq -56(%rbp), %rdi callq _InOrderTraverse leaq L_.str.6(%rip), %rdi callq _puts leaq L_.str.10(%rip), %rdi movb $0, %al callq _printf movq -56(%rbp), %rdi callq _InOrderTraverseWithStack leaq L_.str.6(%rip), %rdi callq _puts leaq L_.str.11(%rip), %rdi movb $0, %al callq _printf movq -56(%rbp), %rdi callq _PostOrderTraverse leaq L_.str.6(%rip), %rdi callq _puts leaq L_.str.12(%rip), %rdi movb $0, %al callq _printf movq -56(%rbp), %rdi callq _PostOrderTraverseWithStack leaq L_.str.6(%rip), %rdi callq _puts leaq -56(%rbp), %rdi callq _ClearTree movq -56(%rbp), %rdi callq _BinTreeEmpty movl %eax, %esi leaq L_.str.13(%rip), %rdi movb $0, %al callq _printf movl $0, _i(%rip) leaq L_.str.14(%rip), %rax movq %rax, -64(%rbp) leaq -56(%rbp), %rdi callq _InitTree movq -64(%rbp), %rsi leaq -56(%rbp), %rdi callq _FillTree movq -64(%rbp), %rsi leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf leaq L_.str.15(%rip), %rdi callq _puts leaq L_.str.16(%rip), %rdi movb $0, %al callq _printf movq -56(%rbp), %rdi callq _PreOrderTraverse leaq L_.str.6(%rip), %rdi callq _puts leaq L_.str.17(%rip), %rdi movb $0, %al callq _printf movq -56(%rbp), %rdi callq _InOrderTraverse leaq L_.str.18(%rip), %rdi callq _puts leaq L_.str.6(%rip), %rdi callq _puts leaq L_.str.19(%rip), %rdi movb $0, %al callq _printf movq -56(%rbp), %rdi callq _PostOrderTraverse leaq L_.str.6(%rip), %rdi callq _puts xorl %eax, %eax addq $80, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _i ## @i .zerofill __DATA,__common,_i,4,2 .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "init tree" L_.str.1: ## @.str.1 .asciz "is binary tree empty?\n%d\n" L_.str.2: ## @.str.2 .asciz "ABDH0K000E00CFI000G0J00" L_.str.3: ## @.str.3 .asciz "using data:\t%s\tto fill tree\n" L_.str.4: ## @.str.4 .asciz "\345\273\272\347\253\213\344\272\214\345\217\211\346\240\221\345\220\216,\346\240\221\347\251\272\345\220\246\357\274\237%d \346\240\221\347\232\204\346\267\261\345\272\246=%d\n" L_.str.5: ## @.str.5 .asciz "\345\261\202\345\272\217\351\201\215\345\216\206\344\272\214\345\217\211\346\240\221:\n" L_.str.6: ## @.str.6 .space 1 L_.str.7: ## @.str.7 .asciz "\345\211\215\345\272\217\351\201\215\345\216\206\344\272\214\345\217\211\346\240\221:\n" L_.str.8: ## @.str.8 .asciz "\345\211\215\345\272\217\351\201\215\345\216\206\344\272\214\345\217\211\346\240\221(\351\235\236\351\200\222\345\275\222\346\226\271\345\274\217):\n" L_.str.9: ## @.str.9 .asciz "\344\270\255\345\272\217\351\201\215\345\216\206\344\272\214\345\217\211\346\240\221:\n" L_.str.10: ## @.str.10 .asciz "\344\270\255\345\272\217\351\201\215\345\216\206\344\272\214\345\217\211\346\240\221(\351\235\236\351\200\222\345\275\222\346\226\271\345\274\217):\n" L_.str.11: ## @.str.11 .asciz "\345\220\216\345\272\217\351\201\215\345\216\206\344\272\214\345\217\211\346\240\221:\n" L_.str.12: ## @.str.12 .asciz "\345\220\216\345\272\217\351\201\215\345\216\206\344\272\214\345\217\211\346\240\221(\351\235\236\351\200\222\345\275\222\346\226\271\345\274\217):\n" L_.str.13: ## @.str.13 .asciz "\346\270\205\351\231\244\344\272\214\345\217\211\346\240\221\345\220\216 is binary tree empty?\n%d\n" L_.str.14: ## @.str.14 .asciz "++a00*b00c00*d00e00" L_.str.15: ## @.str.15 .asciz "\350\277\220\347\256\227\350\241\250\350\276\276\345\274\217\346\240\221\347\232\204\351\201\215\345\216\206" L_.str.16: ## @.str.16 .asciz "\345\211\215\345\272\217\351\201\215\345\216\206(\345\211\215\347\274\200\350\241\250\350\276\276\345\274\217):\n" L_.str.17: ## @.str.17 .asciz "\344\270\255\345\272\217\351\201\215\345\216\206(\344\270\255\347\274\200\350\241\250\350\276\276\345\274\217):\n" L_.str.18: ## @.str.18 .asciz "\347\224\261\344\272\216\350\277\220\347\256\227\344\274\230\345\205\210\347\272\247\347\232\204\345\255\230\345\234\250,\344\270\255\347\274\200\350\241\250\350\276\276\345\274\217\345\217\257\350\203\275\344\270\215\346\255\243\347\241\256\357\274\214\345\246\202\346\236\234\350\246\201\345\207\206\347\241\256\347\232\204\344\270\255\347\274\200\350\241\250\350\276\276\345\274\217\357\274\214\345\217\257\344\273\245\350\200\203\350\231\221\345\234\250\346\257\217\344\270\244\344\270\252\345\217\266\345\255\220\350\212\202\347\202\271\345\211\215\345\220\216\346\267\273\345\212\240\346\213\254\345\217\267" L_.str.19: ## @.str.19 .asciz "\345\220\216\345\272\217\351\201\215\345\216\206(\345\220\216\347\274\200\350\241\250\350\276\276\345\274\217):\n" .subsections_via_symbols
the_stack_data/153268601.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #0 str w8, [sp, #8] ; 4-byte Folded Spill stur wzr, [x29, #-4] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldr w0, [sp, #8] ; 4-byte Folded Reload ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Hello, World\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) leaq L_.str(%rip), %rdi movb $0, %al callq _printf xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Hello, World\n" .subsections_via_symbols
the_stack_data/86074689.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/184517584.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, #480 .cfi_def_cfa_offset 480 stp x28, x27, [sp, #448] ; 16-byte Folded Spill stp x29, x30, [sp, #464] ; 16-byte Folded Spill add x29, sp, #464 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w27, -24 .cfi_offset w28, -32 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov x9, sp add x8, sp, #36 str x8, [x9] add x8, sp, #32 str x8, [x9, #8] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf ldr w1, [sp, #36] ldr w2, [sp, #32] add x0, sp, #40 str x0, [sp, #24] ; 8-byte Folded Spill bl _preencheVetor ldr x0, [sp, #24] ; 8-byte Folded Reload ldr w1, [sp, #36] bl _directOrder ldr x0, [sp, #24] ; 8-byte Folded Reload ldr w1, [sp, #36] bl _reverseOrder 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_2 b LBB0_1 LBB0_1: bl ___stack_chk_fail LBB0_2: mov w0, #0 ldp x29, x30, [sp, #464] ; 16-byte Folded Reload ldp x28, x27, [sp, #448] ; 16-byte Folded Reload add sp, sp, #480 ret .cfi_endproc ; -- End function .globl _preencheVetor ; -- Begin function preencheVetor .p2align 2 _preencheVetor: ; @preencheVetor .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] stur w1, [x29, #-12] str w2, [sp, #16] mov x0, #0 bl _time ; kill: def $w0 killed $w0 killed $x0 bl _srand str wzr, [sp, #12] b LBB1_1 LBB1_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #12] ldur w9, [x29, #-12] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_4 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 bl _rand ldr w9, [sp, #16] sdiv w8, w0, w9 mul w8, w8, w9 subs w8, w0, w8 ldur x9, [x29, #-8] ldrsw x10, [sp, #12] str w8, [x9, x10, lsl #2] b LBB1_3 LBB1_3: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB1_1 LBB1_4: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _directOrder ; -- Begin function directOrder .p2align 2 _directOrder: ; @directOrder .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] stur w1, [x29, #-12] str wzr, [sp, #16] b LBB2_1 LBB2_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #16] ldur w9, [x29, #-12] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB2_4 b LBB2_2 LBB2_2: ; in Loop: Header=BB2_1 Depth=1 ldr w8, [sp, #16] ; implicit-def: $x10 mov x10, x8 ldur x8, [x29, #-8] ldrsw x9, [sp, #16] ldr w9, [x8, x9, lsl #2] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf b LBB2_3 LBB2_3: ; in Loop: Header=BB2_1 Depth=1 ldr w8, [sp, #16] add w8, w8, #1 str w8, [sp, #16] b LBB2_1 LBB2_4: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _reverseOrder ; -- Begin function reverseOrder .p2align 2 _reverseOrder: ; @reverseOrder .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] stur w1, [x29, #-12] b LBB3_1 LBB3_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-12] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB3_3 b LBB3_2 LBB3_2: ; in Loop: Header=BB3_1 Depth=1 ldur w8, [x29, #-12] subs w11, w8, #1 ldur x8, [x29, #-8] ldur w9, [x29, #-12] subs w9, w9, #1 ldr w9, [x8, w9, sxtw #2] ; implicit-def: $x8 mov x8, x9 mov x9, sp ; implicit-def: $x10 mov x10, x11 str x10, [x9] str x8, [x9, #8] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf ldur w8, [x29, #-12] subs w8, w8, #1 stur w8, [x29, #-12] b LBB3_1 LBB3_3: 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 "Informe o numero de elementos do vetor e o limite(separados por espaco): " l_.str.1: ; @.str.1 .asciz "%d%d" l_.str.2: ; @.str.2 .asciz "Posicao direta %d, valor %d\n" l_.str.3: ; @.str.3 .asciz "Posicao inversa %d, valor %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 $432, %rsp ## imm = 0x1B0 movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) leaq L_.str(%rip), %rdi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi leaq -420(%rbp), %rsi leaq -424(%rbp), %rdx movb $0, %al callq _scanf leaq -416(%rbp), %rdi movl -420(%rbp), %esi movl -424(%rbp), %edx callq _preencheVetor leaq -416(%rbp), %rdi movl -420(%rbp), %esi callq _directOrder leaq -416(%rbp), %rdi movl -420(%rbp), %esi callq _reverseOrder movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_2 ## %bb.1: xorl %eax, %eax addq $432, %rsp ## imm = 0x1B0 popq %rbp retq LBB0_2: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _preencheVetor ## -- Begin function preencheVetor .p2align 4, 0x90 _preencheVetor: ## @preencheVetor .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) movl %edx, -16(%rbp) xorl %eax, %eax movl %eax, %edi callq _time movl %eax, %edi callq _srand movl $0, -20(%rbp) LBB1_1: ## =>This Inner Loop Header: Depth=1 movl -20(%rbp), %eax cmpl -12(%rbp), %eax jge LBB1_4 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 callq _rand cltd idivl -16(%rbp) movq -8(%rbp), %rax movslq -20(%rbp), %rcx movl %edx, (%rax,%rcx,4) ## %bb.3: ## in Loop: Header=BB1_1 Depth=1 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB1_1 LBB1_4: addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _directOrder ## -- Begin function directOrder .p2align 4, 0x90 _directOrder: ## @directOrder .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) movl $0, -16(%rbp) LBB2_1: ## =>This Inner Loop Header: Depth=1 movl -16(%rbp), %eax cmpl -12(%rbp), %eax jge LBB2_4 ## %bb.2: ## in Loop: Header=BB2_1 Depth=1 movl -16(%rbp), %esi movq -8(%rbp), %rax movslq -16(%rbp), %rcx movl (%rax,%rcx,4), %edx leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf ## %bb.3: ## in Loop: Header=BB2_1 Depth=1 movl -16(%rbp), %eax addl $1, %eax movl %eax, -16(%rbp) jmp LBB2_1 LBB2_4: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _reverseOrder ## -- Begin function reverseOrder .p2align 4, 0x90 _reverseOrder: ## @reverseOrder .cfi_startproc ## %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) LBB3_1: ## =>This Inner Loop Header: Depth=1 cmpl $0, -12(%rbp) jle LBB3_3 ## %bb.2: ## in Loop: Header=BB3_1 Depth=1 movl -12(%rbp), %esi subl $1, %esi movq -8(%rbp), %rax movl -12(%rbp), %ecx subl $1, %ecx movslq %ecx, %rcx movl (%rax,%rcx,4), %edx leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf movl -12(%rbp), %eax addl $-1, %eax movl %eax, -12(%rbp) jmp LBB3_1 LBB3_3: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Informe o numero de elementos do vetor e o limite(separados por espaco): " L_.str.1: ## @.str.1 .asciz "%d%d" L_.str.2: ## @.str.2 .asciz "Posicao direta %d, valor %d\n" L_.str.3: ## @.str.3 .asciz "Posicao inversa %d, valor %d\n" .subsections_via_symbols
the_stack_data/26409.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] str wzr, [sp, #44] str w0, [sp, #40] str x1, [sp, #32] add x8, sp, #48 mov x9, x8 str x9, [sp, #24] str x8, [sp, #16] ldr x8, [sp, #24] mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldr x8, [sp, #16] mov x9, sp str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: bl ___stack_chk_fail LBB0_2: mov w0, #0 ldp x29, x30, [sp, #144] ; 16-byte Folded Reload add sp, sp, #160 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Student pointer points to %p\n" l_.str.1: ; @.str.1 .asciz "Person pointer points to %p\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $128, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -100(%rbp) movl %edi, -104(%rbp) movq %rsi, -112(%rbp) leaq -96(%rbp), %rax movq %rax, -120(%rbp) leaq -96(%rbp), %rax movq %rax, -128(%rbp) movq -120(%rbp), %rsi leaq L_.str(%rip), %rdi movb $0, %al callq _printf movq -128(%rbp), %rsi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_2 ## %bb.1: xorl %eax, %eax addq $128, %rsp popq %rbp retq LBB0_2: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Student pointer points to %p\n" L_.str.1: ## @.str.1 .asciz "Person pointer points to %p\n" .subsections_via_symbols
the_stack_data/40762605.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/212642068.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _incr_thread_count ; -- Begin function incr_thread_count .p2align 2 _incr_thread_count: ; @incr_thread_count .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, _thread_count@GOTPAGE ldr x8, [x8, _thread_count@GOTPAGEOFF] str x8, [sp, #8] ; 8-byte Folded Spill adrp x0, _thread_count_mutex@GOTPAGE ldr x0, [x0, _thread_count_mutex@GOTPAGEOFF] bl _pthread_mutex_lock ldr x8, [sp, #8] ; 8-byte Folded Reload ldr w9, [x8] add w9, w9, #1 str w9, [x8] ldr w8, [x8] subs w8, w8, #4 cset w8, ne tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: adrp x0, _thread_count_condvar@GOTPAGE ldr x0, [x0, _thread_count_condvar@GOTPAGEOFF] bl _pthread_cond_signal b LBB0_2 LBB0_2: adrp x0, _thread_count_mutex@GOTPAGE ldr x0, [x0, _thread_count_mutex@GOTPAGEOFF] bl _pthread_mutex_unlock ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _cond_wait ; -- Begin function cond_wait .p2align 2 _cond_wait: ; @cond_wait .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #8] str x1, [sp] ldr x0, [sp] bl _pthread_mutex_lock ldr x0, [sp, #8] ldr x1, [sp] bl _pthread_cond_wait ldr x0, [sp] bl _pthread_mutex_unlock ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _noreturn ; -- Begin function noreturn .p2align 2 _noreturn: ; @noreturn .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] add x0, sp, #72 str x0, [sp, #8] ; 8-byte Folded Spill mov x1, #0 str x1, [sp] ; 8-byte Folded Spill bl _pthread_mutex_init ldr x1, [sp] ; 8-byte Folded Reload add x0, sp, #24 str x0, [sp, #16] ; 8-byte Folded Spill bl _pthread_cond_init ldr x1, [sp, #8] ; 8-byte Folded Reload ldr x0, [sp, #16] ; 8-byte Folded Reload bl _cond_wait ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB2_2 b LBB2_1 LBB2_1: bl ___stack_chk_fail LBB2_2: ldp x29, x30, [sp, #144] ; 16-byte Folded Reload add sp, sp, #160 ret .cfi_endproc ; -- End function .globl _thread_entry ; -- Begin function thread_entry .p2align 2 _thread_entry: ; @thread_entry .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] bl _incr_thread_count bl _noreturn ldr x0, [sp, #8] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _sigabrt_handler ; -- Begin function sigabrt_handler .p2align 2 _sigabrt_handler: ; @sigabrt_handler .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #12] adrp x9, _sigabrt_received@GOTPAGE ldr x9, [x9, _sigabrt_received@GOTPAGEOFF] mov w8, #1 str w8, [x9] add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _hand_call_with_signal ; -- Begin function hand_call_with_signal .p2align 2 _hand_call_with_signal: ; @hand_call_with_signal .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, l___const.hand_call_with_signal.ts@PAGE add x8, x8, l___const.hand_call_with_signal.ts@PAGEOFF ldr q0, [x8] str q0, [sp] adrp x8, _sigabrt_received@GOTPAGE ldr x8, [x8, _sigabrt_received@GOTPAGEOFF] str wzr, [x8] adrp x8, _threads@GOTPAGE ldr x8, [x8, _threads@GOTPAGEOFF] ldr x0, [x8] mov w1, #6 bl _pthread_kill b LBB5_1 LBB5_1: ; =>This Inner Loop Header: Depth=1 adrp x8, _sigabrt_received@GOTPAGE ldr x8, [x8, _sigabrt_received@GOTPAGEOFF] ldr w8, [x8] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB5_3 b LBB5_2 LBB5_2: ; in Loop: Header=BB5_1 Depth=1 mov x0, sp mov x1, #0 bl _nanosleep b LBB5_1 LBB5_3: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _wait_all_threads_running ; -- Begin function wait_all_threads_running .p2align 2 _wait_all_threads_running: ; @wait_all_threads_running .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x0, _thread_count_mutex@GOTPAGE ldr x0, [x0, _thread_count_mutex@GOTPAGEOFF] str x0, [sp, #8] ; 8-byte Folded Spill bl _pthread_mutex_lock adrp x8, _thread_count@GOTPAGE ldr x8, [x8, _thread_count@GOTPAGEOFF] ldr w8, [x8] subs w8, w8, #4 cset w8, ne tbnz w8, #0, LBB6_2 b LBB6_1 LBB6_1: ldr x0, [sp, #8] ; 8-byte Folded Reload bl _pthread_mutex_unlock b LBB6_5 LBB6_2: ldr x1, [sp, #8] ; 8-byte Folded Reload adrp x0, _thread_count_condvar@GOTPAGE ldr x0, [x0, _thread_count_condvar@GOTPAGEOFF] bl _pthread_cond_wait adrp x8, _thread_count@GOTPAGE ldr x8, [x8, _thread_count@GOTPAGEOFF] ldr w8, [x8] subs w8, w8, #4 cset w8, ne tbnz w8, #0, LBB6_4 b LBB6_3 LBB6_3: ldr x0, [sp, #8] ; 8-byte Folded Reload bl _pthread_mutex_unlock b LBB6_5 LBB6_4: ldr x0, [sp, #8] ; 8-byte Folded Reload bl _pthread_mutex_unlock adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf bl _abort LBB6_5: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _all_threads_running ; -- Begin function all_threads_running .p2align 2 _all_threads_running: ; @all_threads_running .cfi_startproc ; %bb.0: ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] mov w0, #6 adrp x1, _sigabrt_handler@PAGE add x1, x1, _sigabrt_handler@PAGEOFF bl _signal adrp x0, _thread_count_mutex@GOTPAGE ldr x0, [x0, _thread_count_mutex@GOTPAGEOFF] mov x1, #0 str x1, [sp] ; 8-byte Folded Spill bl _pthread_mutex_init ldr x1, [sp] ; 8-byte Folded Reload adrp x0, _thread_count_condvar@GOTPAGE ldr x0, [x0, _thread_count_condvar@GOTPAGEOFF] bl _pthread_cond_init str wzr, [sp, #8] b LBB8_1 LBB8_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #8] subs w8, w8, #4 cset w8, ge tbnz w8, #0, LBB8_4 b LBB8_2 LBB8_2: ; in Loop: Header=BB8_1 Depth=1 ldrsw x9, [sp, #8] adrp x8, _threads@GOTPAGE ldr x8, [x8, _threads@GOTPAGEOFF] add x0, x8, x9, lsl #3 mov x3, #0 mov x1, x3 adrp x2, _thread_entry@PAGE add x2, x2, _thread_entry@PAGEOFF bl _pthread_create b LBB8_3 LBB8_3: ; in Loop: Header=BB8_1 Depth=1 ldr w8, [sp, #8] add w8, w8, #1 str w8, [sp, #8] b LBB8_1 LBB8_4: bl _wait_all_threads_running bl _all_threads_running mov w0, #0 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .comm _thread_count_mutex,64,3 ; @thread_count_mutex .comm _thread_count,4,2 ; @thread_count .comm _thread_count_condvar,48,3 ; @thread_count_condvar .comm _sigabrt_received,4,2 ; @sigabrt_received .section __TEXT,__literal16,16byte_literals .p2align 3 ; @__const.hand_call_with_signal.ts l___const.hand_call_with_signal.ts: .quad 0 ; 0x0 .quad 10000000 ; 0x989680 .comm _threads,32,3 ; @threads .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "failed waiting for all threads to start\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _incr_thread_count ## -- Begin function incr_thread_count .p2align 4, 0x90 _incr_thread_count: ## @incr_thread_count .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq _thread_count_mutex@GOTPCREL(%rip), %rdi callq _pthread_mutex_lock movq _thread_count@GOTPCREL(%rip), %rax movl (%rax), %ecx addl $1, %ecx movq _thread_count@GOTPCREL(%rip), %rax movl %ecx, (%rax) movq _thread_count@GOTPCREL(%rip), %rax cmpl $4, (%rax) jne LBB0_2 ## %bb.1: movq _thread_count_condvar@GOTPCREL(%rip), %rdi callq _pthread_cond_signal LBB0_2: movq _thread_count_mutex@GOTPCREL(%rip), %rdi callq _pthread_mutex_unlock popq %rbp retq .cfi_endproc ## -- End function .globl _cond_wait ## -- Begin function cond_wait .p2align 4, 0x90 _cond_wait: ## @cond_wait .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) movq -16(%rbp), %rdi callq _pthread_mutex_lock movq -8(%rbp), %rdi movq -16(%rbp), %rsi callq _pthread_cond_wait movq -16(%rbp), %rdi callq _pthread_mutex_unlock addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _noreturn ## -- Begin function noreturn .p2align 4, 0x90 _noreturn: ## @noreturn .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $128, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) leaq -72(%rbp), %rdi xorl %eax, %eax movl %eax, %esi callq _pthread_mutex_init leaq -120(%rbp), %rdi xorl %eax, %eax movl %eax, %esi callq _pthread_cond_init leaq -120(%rbp), %rdi leaq -72(%rbp), %rsi callq _cond_wait movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB2_2 ## %bb.1: addq $128, %rsp popq %rbp retq LBB2_2: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _thread_entry ## -- Begin function thread_entry .p2align 4, 0x90 _thread_entry: ## @thread_entry .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -16(%rbp) callq _incr_thread_count callq _noreturn movq -8(%rbp), %rax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _sigabrt_handler ## -- Begin function sigabrt_handler .p2align 4, 0x90 _sigabrt_handler: ## @sigabrt_handler .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, -4(%rbp) movq _sigabrt_received@GOTPCREL(%rip), %rax movl $1, (%rax) popq %rbp retq .cfi_endproc ## -- End function .globl _hand_call_with_signal ## -- Begin function hand_call_with_signal .p2align 4, 0x90 _hand_call_with_signal: ## @hand_call_with_signal .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq L___const.hand_call_with_signal.ts(%rip), %rax movq %rax, -16(%rbp) movq L___const.hand_call_with_signal.ts+8(%rip), %rax movq %rax, -8(%rbp) movq _sigabrt_received@GOTPCREL(%rip), %rax movl $0, (%rax) movq _threads@GOTPCREL(%rip), %rax movq (%rax), %rdi movl $6, %esi callq _pthread_kill LBB5_1: ## =>This Inner Loop Header: Depth=1 movq _sigabrt_received@GOTPCREL(%rip), %rax cmpl $0, (%rax) setne %al xorb $-1, %al testb $1, %al jne LBB5_2 jmp LBB5_3 LBB5_2: ## in Loop: Header=BB5_1 Depth=1 leaq -16(%rbp), %rdi xorl %eax, %eax movl %eax, %esi callq _nanosleep jmp LBB5_1 LBB5_3: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _wait_all_threads_running ## -- Begin function wait_all_threads_running .p2align 4, 0x90 _wait_all_threads_running: ## @wait_all_threads_running .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq _thread_count_mutex@GOTPCREL(%rip), %rdi callq _pthread_mutex_lock movq _thread_count@GOTPCREL(%rip), %rax cmpl $4, (%rax) jne LBB6_2 ## %bb.1: movq _thread_count_mutex@GOTPCREL(%rip), %rdi callq _pthread_mutex_unlock jmp LBB6_5 LBB6_2: movq _thread_count_condvar@GOTPCREL(%rip), %rdi movq _thread_count_mutex@GOTPCREL(%rip), %rsi callq _pthread_cond_wait movq _thread_count@GOTPCREL(%rip), %rax cmpl $4, (%rax) jne LBB6_4 ## %bb.3: movq _thread_count_mutex@GOTPCREL(%rip), %rdi callq _pthread_mutex_unlock jmp LBB6_5 LBB6_4: movq _thread_count_mutex@GOTPCREL(%rip), %rdi callq _pthread_mutex_unlock leaq L_.str(%rip), %rdi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _printf callq _abort LBB6_5: popq %rbp retq .cfi_endproc ## -- End function .globl _all_threads_running ## -- Begin function all_threads_running .p2align 4, 0x90 _all_threads_running: ## @all_threads_running .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 _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) movl $6, %edi leaq _sigabrt_handler(%rip), %rsi callq _signal movq _thread_count_mutex@GOTPCREL(%rip), %rdi xorl %eax, %eax movl %eax, %esi callq _pthread_mutex_init movq _thread_count_condvar@GOTPCREL(%rip), %rdi xorl %eax, %eax movl %eax, %esi callq _pthread_cond_init movl $0, -8(%rbp) LBB8_1: ## =>This Inner Loop Header: Depth=1 cmpl $4, -8(%rbp) jge LBB8_4 ## %bb.2: ## in Loop: Header=BB8_1 Depth=1 movslq -8(%rbp), %rax movq _threads@GOTPCREL(%rip), %rdi shlq $3, %rax addq %rax, %rdi xorl %eax, %eax movl %eax, %ecx leaq _thread_entry(%rip), %rdx movq %rcx, %rsi callq _pthread_create ## %bb.3: ## in Loop: Header=BB8_1 Depth=1 movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) jmp LBB8_1 LBB8_4: callq _wait_all_threads_running callq _all_threads_running xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .comm _thread_count_mutex,64,3 ## @thread_count_mutex .comm _thread_count,4,2 ## @thread_count .comm _thread_count_condvar,48,3 ## @thread_count_condvar .comm _sigabrt_received,4,2 ## @sigabrt_received .section __TEXT,__literal16,16byte_literals .p2align 3 ## @__const.hand_call_with_signal.ts L___const.hand_call_with_signal.ts: .quad 0 ## 0x0 .quad 10000000 ## 0x989680 .comm _threads,32,4 ## @threads .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "failed waiting for all threads to start\n" .subsections_via_symbols
the_stack_data/147872.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _imprime ; -- Begin function imprime .p2align 2 _imprime: ; @imprime .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] stur w1, [x29, #-12] ldur x8, [x29, #-8] str x8, [sp, #8] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #8] ldur x9, [x29, #-8] ldursw x10, [x29, #-12] add x9, x9, x10 subs x8, x8, x9 cset w8, hs tbnz w8, #0, LBB0_4 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #8] ldrsb w10, [x8] mov x9, sp ; implicit-def: $x8 mov x8, x10 str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #8] add x8, x8, #1 str x8, [sp, #8] b LBB0_1 LBB0_4: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] adrp x8, l___const.main.texto@PAGE add x8, x8, l___const.main.texto@PAGEOFF ldr x9, [x8] add x0, sp, #8 str x9, [sp, #8] ldur x8, [x8, #7] stur x8, [x0, #7] mov w1, #5 bl _imprime ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: bl ___stack_chk_fail LBB1_2: mov w0, #0 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%c" l___const.main.texto: ; @__const.main.texto .asciz "teste de texto" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _imprime ## -- Begin function imprime .p2align 4, 0x90 _imprime: ## @imprime .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) movq -8(%rbp), %rax movq %rax, -24(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movq -24(%rbp), %rax movq -8(%rbp), %rcx movslq -12(%rbp), %rdx addq %rdx, %rcx cmpq %rcx, %rax jae LBB0_4 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movq -24(%rbp), %rax movsbl (%rax), %esi leaq L_.str(%rip), %rdi movb $0, %al callq _printf ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movq -24(%rbp), %rax addq $1, %rax movq %rax, -24(%rbp) jmp LBB0_1 LBB0_4: 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 movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movq L___const.main.texto(%rip), %rax movq %rax, -23(%rbp) movl L___const.main.texto+8(%rip), %eax movl %eax, -15(%rbp) movw L___const.main.texto+12(%rip), %ax movw %ax, -11(%rbp) movb L___const.main.texto+14(%rip), %al movb %al, -9(%rbp) leaq -23(%rbp), %rdi movl $5, %esi callq _imprime movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB1_2 ## %bb.1: xorl %eax, %eax addq $32, %rsp popq %rbp retq LBB1_2: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%c" L___const.main.texto: ## @__const.main.texto .asciz "teste de texto" .subsections_via_symbols
the_stack_data/618331.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, #288 .cfi_def_cfa_offset 288 stp x28, x27, [sp, #256] ; 16-byte Folded Spill stp x29, x30, [sp, #272] ; 16-byte Folded Spill add x29, sp, #272 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w27, -24 .cfi_offset w28, -32 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] str wzr, [sp, #44] mov x9, sp sub x8, x29, #124 str x8, [sp, #32] ; 8-byte Folded Spill str x8, [x9] add x8, sp, #48 str x8, [sp, #24] ; 8-byte Folded Spill str x8, [x9, #8] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _scanf ldr x1, [sp, #24] ; 8-byte Folded Reload ldr x0, [sp, #32] ; 8-byte Folded Reload bl _any str w0, [sp, #40] ldr w8, [sp, #40] adds w8, w8, #1 cset w8, eq tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: ldr w9, [sp, #40] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf b LBB0_3 LBB0_2: adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf b LBB0_3 LBB0_3: ldr w8, [sp, #40] str w8, [sp, #20] ; 4-byte Folded Spill ldur x9, [x29, #-24] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_5 b LBB0_4 LBB0_4: bl ___stack_chk_fail LBB0_5: ldr w0, [sp, #20] ; 4-byte Folded Reload 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 .globl _any ; -- Begin function any .p2align 2 _any: ; @any .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 str x0, [sp, #32] str x1, [sp, #24] str wzr, [sp, #20] b LBB1_1 LBB1_1: ; =>This Loop Header: Depth=1 ; Child Loop BB1_3 Depth 2 ldr x8, [sp, #32] ldrsw x9, [sp, #20] ldrsb w8, [x8, x9] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB1_12 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 str wzr, [sp, #16] b LBB1_3 LBB1_3: ; Parent Loop BB1_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr x8, [sp, #24] ldrsw x9, [sp, #16] ldrsb w8, [x8, x9] subs w8, w8, #0 cset w8, eq mov w9, #0 str w9, [sp, #12] ; 4-byte Folded Spill tbnz w8, #0, LBB1_5 b LBB1_4 LBB1_4: ; in Loop: Header=BB1_3 Depth=2 ldr x8, [sp, #24] ldrsw x9, [sp, #16] ldrsb w8, [x8, x9] ldr x9, [sp, #32] ldrsw x10, [sp, #20] ldrsb w9, [x9, x10] subs w8, w8, w9 cset w8, ne str w8, [sp, #12] ; 4-byte Folded Spill b LBB1_5 LBB1_5: ; in Loop: Header=BB1_3 Depth=2 ldr w8, [sp, #12] ; 4-byte Folded Reload tbz w8, #0, LBB1_8 b LBB1_6 LBB1_6: ; in Loop: Header=BB1_3 Depth=2 b LBB1_7 LBB1_7: ; in Loop: Header=BB1_3 Depth=2 ldr w8, [sp, #16] add w8, w8, #1 str w8, [sp, #16] b LBB1_3 LBB1_8: ; in Loop: Header=BB1_1 Depth=1 ldr x8, [sp, #24] ldrsw x9, [sp, #16] ldrsb w8, [x8, x9] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB1_10 b LBB1_9 LBB1_9: ldr w8, [sp, #20] str w8, [sp, #44] b LBB1_13 LBB1_10: ; in Loop: Header=BB1_1 Depth=1 b LBB1_11 LBB1_11: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #20] add w8, w8, #1 str w8, [sp, #20] b LBB1_1 LBB1_12: mov w8, #-1 str w8, [sp, #44] b LBB1_13 LBB1_13: ldr w0, [sp, #44] add sp, sp, #48 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%s\n%s" l_.str.1: ; @.str.1 .asciz "%d\n" l_.str.2: ; @.str.2 .asciz "no matching characters\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $240, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -228(%rbp) leaq -112(%rbp), %rsi leaq -224(%rbp), %rdx leaq L_.str(%rip), %rdi movb $0, %al callq _scanf leaq -112(%rbp), %rdi leaq -224(%rbp), %rsi callq _any movl %eax, -232(%rbp) cmpl $-1, -232(%rbp) je LBB0_2 ## %bb.1: movl -232(%rbp), %esi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf jmp LBB0_3 LBB0_2: leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf LBB0_3: movl -232(%rbp), %eax movl %eax, -236(%rbp) ## 4-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_5 ## %bb.4: movl -236(%rbp), %eax ## 4-byte Reload addq $240, %rsp popq %rbp retq LBB0_5: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _any ## -- Begin function any .p2align 4, 0x90 _any: ## @any .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -16(%rbp) movq %rsi, -24(%rbp) movl $0, -28(%rbp) LBB1_1: ## =>This Loop Header: Depth=1 ## Child Loop BB1_3 Depth 2 movq -16(%rbp), %rax movslq -28(%rbp), %rcx movsbl (%rax,%rcx), %eax cmpl $0, %eax je LBB1_12 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 movl $0, -32(%rbp) LBB1_3: ## Parent Loop BB1_1 Depth=1 ## => This Inner Loop Header: Depth=2 movq -24(%rbp), %rax movslq -32(%rbp), %rcx movsbl (%rax,%rcx), %ecx xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $0, %ecx movb %al, -33(%rbp) ## 1-byte Spill je LBB1_5 ## %bb.4: ## in Loop: Header=BB1_3 Depth=2 movq -24(%rbp), %rax movslq -32(%rbp), %rcx movsbl (%rax,%rcx), %eax movq -16(%rbp), %rcx movslq -28(%rbp), %rdx movsbl (%rcx,%rdx), %ecx cmpl %ecx, %eax setne %al movb %al, -33(%rbp) ## 1-byte Spill LBB1_5: ## in Loop: Header=BB1_3 Depth=2 movb -33(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB1_6 jmp LBB1_8 LBB1_6: ## in Loop: Header=BB1_3 Depth=2 jmp LBB1_7 LBB1_7: ## in Loop: Header=BB1_3 Depth=2 movl -32(%rbp), %eax addl $1, %eax movl %eax, -32(%rbp) jmp LBB1_3 LBB1_8: ## in Loop: Header=BB1_1 Depth=1 movq -24(%rbp), %rax movslq -32(%rbp), %rcx movsbl (%rax,%rcx), %eax cmpl $0, %eax je LBB1_10 ## %bb.9: movl -28(%rbp), %eax movl %eax, -4(%rbp) jmp LBB1_13 LBB1_10: ## in Loop: Header=BB1_1 Depth=1 jmp LBB1_11 LBB1_11: ## in Loop: Header=BB1_1 Depth=1 movl -28(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) jmp LBB1_1 LBB1_12: movl $-1, -4(%rbp) LBB1_13: movl -4(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%s\n%s" L_.str.1: ## @.str.1 .asciz "%d\n" L_.str.2: ## @.str.2 .asciz "no matching characters\n" .subsections_via_symbols
the_stack_data/7949230.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov x9, sp sub x8, x29, #8 str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf ldur w8, [x29, #-8] subs w8, w8, #1 ; kill: def $x8 killed $w8 str x8, [sp, #16] ; 8-byte Folded Spill subs x8, x8, #4 cset w8, hi tbnz w8, #0, LBB0_7 ; %bb.1: ldr x11, [sp, #16] ; 8-byte Folded Reload adrp x10, lJTI0_0@PAGE add x10, x10, lJTI0_0@PAGEOFF Ltmp0: adr x8, Ltmp0 ldrsw x9, [x10, x11, lsl #2] add x8, x8, x9 br x8 LBB0_2: adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf b LBB0_8 LBB0_3: adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf b LBB0_8 LBB0_4: adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf b LBB0_8 LBB0_5: adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf b LBB0_8 LBB0_6: adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _printf b LBB0_8 LBB0_7: adrp x0, l_.str.7@PAGE add x0, x0, l_.str.7@PAGEOFF bl _printf b LBB0_8 LBB0_8: ldur w0, [x29, #-4] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc .p2align 2 lJTI0_0: .long LBB0_2-Ltmp0 .long LBB0_3-Ltmp0 .long LBB0_4-Ltmp0 .long LBB0_5-Ltmp0 .long LBB0_6-Ltmp0 ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Enter a number\n" l_.str.1: ; @.str.1 .asciz "%d" l_.str.2: ; @.str.2 .asciz "Food item - Sandwich\nPrice - Rs149\n" l_.str.3: ; @.str.3 .asciz "Food item - French Fries\nPrice - Rs99\n" l_.str.4: ; @.str.4 .asciz "Food item - Burger\nPrice - Rs129\n" l_.str.5: ; @.str.5 .asciz "Food item - Pizza\nPrice - Rs239\n" l_.str.6: ; @.str.6 .asciz "Food item - Pasta\nPrice - Rs179\n" l_.str.7: ; @.str.7 .asciz "Invalid Input" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl $0, -4(%rbp) leaq L_.str(%rip), %rdi xorl %eax, %eax ## kill: def $al killed $al killed $eax movb %al, -17(%rbp) ## 1-byte Spill callq _printf ## kill: def $ecx killed $eax movb -17(%rbp), %al ## 1-byte Reload leaq L_.str.1(%rip), %rdi leaq -8(%rbp), %rsi callq _scanf movl -8(%rbp), %eax decl %eax movl %eax, %ecx movq %rcx, -16(%rbp) ## 8-byte Spill subl $4, %eax ja LBB0_6 ## %bb.8: movq -16(%rbp), %rax ## 8-byte Reload leaq LJTI0_0(%rip), %rcx movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax LBB0_1: leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf jmp LBB0_7 LBB0_2: leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf jmp LBB0_7 LBB0_3: leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf jmp LBB0_7 LBB0_4: leaq L_.str.5(%rip), %rdi movb $0, %al callq _printf jmp LBB0_7 LBB0_5: leaq L_.str.6(%rip), %rdi movb $0, %al callq _printf jmp LBB0_7 LBB0_6: leaq L_.str.7(%rip), %rdi movb $0, %al callq _printf LBB0_7: movl -4(%rbp), %eax addq $32, %rsp popq %rbp retq .cfi_endproc .p2align 2, 0x90 .data_region jt32 .set L0_0_set_1, LBB0_1-LJTI0_0 .set L0_0_set_2, LBB0_2-LJTI0_0 .set L0_0_set_3, LBB0_3-LJTI0_0 .set L0_0_set_4, LBB0_4-LJTI0_0 .set L0_0_set_5, LBB0_5-LJTI0_0 LJTI0_0: .long L0_0_set_1 .long L0_0_set_2 .long L0_0_set_3 .long L0_0_set_4 .long L0_0_set_5 .end_data_region ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Enter a number\n" L_.str.1: ## @.str.1 .asciz "%d" L_.str.2: ## @.str.2 .asciz "Food item - Sandwich\nPrice - Rs149\n" L_.str.3: ## @.str.3 .asciz "Food item - French Fries\nPrice - Rs99\n" L_.str.4: ## @.str.4 .asciz "Food item - Burger\nPrice - Rs129\n" L_.str.5: ## @.str.5 .asciz "Food item - Pizza\nPrice - Rs239\n" L_.str.6: ## @.str.6 .asciz "Food item - Pasta\nPrice - Rs179\n" L_.str.7: ## @.str.7 .asciz "Invalid Input" .subsections_via_symbols
the_stack_data/154827895.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _factorial ; -- Begin function factorial .p2align 2 _factorial: ; @factorial .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str w0, [sp, #8] ldr w8, [sp, #8] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: ldr w8, [sp, #8] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: mov w8, #1 stur w8, [x29, #-4] b LBB0_4 LBB0_3: ldr w8, [sp, #8] str w8, [sp, #4] ; 4-byte Folded Spill ldr w8, [sp, #8] subs w0, w8, #1 bl _factorial ldr w8, [sp, #4] ; 4-byte Folded Reload mul w8, w8, w0 stur w8, [x29, #-4] b LBB0_4 LBB0_4: ldur w0, [x29, #-4] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _factorial ## -- Begin function factorial .p2align 4, 0x90 _factorial: ## @factorial .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl %edi, -8(%rbp) cmpl $0, -8(%rbp) je LBB0_2 ## %bb.1: cmpl $1, -8(%rbp) jne LBB0_3 LBB0_2: movl $1, -4(%rbp) jmp LBB0_4 LBB0_3: movl -8(%rbp), %eax movl %eax, -12(%rbp) ## 4-byte Spill movl -8(%rbp), %edi subl $1, %edi callq _factorial movl %eax, %ecx movl -12(%rbp), %eax ## 4-byte Reload imull %ecx, %eax movl %eax, -4(%rbp) LBB0_4: movl -4(%rbp), %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/596316.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _sqlite3_demovfs ; -- Begin function sqlite3_demovfs .p2align 2 _sqlite3_demovfs: ; @sqlite3_demovfs .cfi_startproc ; %bb.0: adrp x0, _sqlite3_demovfs.demovfs@PAGE add x0, x0, _sqlite3_demovfs.demovfs@PAGEOFF ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function demoOpen _demoOpen: ; @demoOpen .cfi_startproc ; %bb.0: sub sp, sp, #96 .cfi_def_cfa_offset 96 stp x29, x30, [sp, #80] ; 16-byte Folded Spill add x29, sp, #80 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-16] stur x1, [x29, #-24] stur x2, [x29, #-32] stur w3, [x29, #-36] str x4, [sp, #32] ldur x8, [x29, #-32] str x8, [sp, #24] str wzr, [sp, #20] ; kill: def $x8 killed $xzr str xzr, [sp, #8] ldur x8, [x29, #-24] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: mov w8, #10 stur w8, [x29, #-4] b LBB1_19 LBB1_2: ldur w8, [x29, #-36] ands w8, w8, #0x800 cset w8, eq tbnz w8, #0, LBB1_6 b LBB1_3 LBB1_3: mov w0, #8192 bl _sqlite3_malloc str x0, [sp, #8] ldr x8, [sp, #8] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB1_5 b LBB1_4 LBB1_4: mov w8, #7 stur w8, [x29, #-4] b LBB1_19 LBB1_5: b LBB1_6 LBB1_6: ldur w8, [x29, #-36] ands w8, w8, #0x10 cset w8, eq tbnz w8, #0, LBB1_8 b LBB1_7 LBB1_7: ldr w8, [sp, #20] orr w8, w8, #0x800 str w8, [sp, #20] b LBB1_8 LBB1_8: ldur w8, [x29, #-36] ands w8, w8, #0x4 cset w8, eq tbnz w8, #0, LBB1_10 b LBB1_9 LBB1_9: ldr w8, [sp, #20] orr w8, w8, #0x200 str w8, [sp, #20] b LBB1_10 LBB1_10: ldur w8, [x29, #-36] ands w8, w8, #0x1 cset w8, eq tbnz w8, #0, LBB1_12 b LBB1_11 LBB1_11: ldr w8, [sp, #20] mov w9, #0 orr w8, w8, w9 str w8, [sp, #20] b LBB1_12 LBB1_12: ldur w8, [x29, #-36] ands w8, w8, #0x2 cset w8, eq tbnz w8, #0, LBB1_14 b LBB1_13 LBB1_13: ldr w8, [sp, #20] orr w8, w8, #0x2 str w8, [sp, #20] b LBB1_14 LBB1_14: ldr x0, [sp, #24] mov w1, #0 mov x2, #40 mov x3, #-1 bl ___memset_chk ldur x0, [x29, #-24] ldr w1, [sp, #20] mov x9, sp mov x8, #384 str x8, [x9] bl _open ldr x8, [sp, #24] str w0, [x8, #8] ldr x8, [sp, #24] ldr w8, [x8, #8] subs w8, w8, #0 cset w8, ge tbnz w8, #0, LBB1_16 b LBB1_15 LBB1_15: ldr x0, [sp, #8] bl _sqlite3_free mov w8, #14 stur w8, [x29, #-4] b LBB1_19 LBB1_16: ldr x8, [sp, #8] ldr x9, [sp, #24] str x8, [x9, #16] ldr x8, [sp, #32] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB1_18 b LBB1_17 LBB1_17: ldur w8, [x29, #-36] ldr x9, [sp, #32] str w8, [x9] b LBB1_18 LBB1_18: ldr x9, [sp, #24] adrp x8, _demoOpen.demoio@PAGE add x8, x8, _demoOpen.demoio@PAGEOFF str x8, [x9] stur wzr, [x29, #-4] b LBB1_19 LBB1_19: ldur w0, [x29, #-4] ldp x29, x30, [sp, #80] ; 16-byte Folded Reload add sp, sp, #96 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function demoDelete _demoDelete: ; @demoDelete .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, #592 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] str x0, [sp, #56] str x1, [sp, #48] str w2, [sp, #44] ldr x0, [sp, #48] bl _unlink str w0, [sp, #40] ldr w8, [sp, #40] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB2_3 b LBB2_1 LBB2_1: bl ___error ldr w8, [x0] subs w8, w8, #2 cset w8, ne tbnz w8, #0, LBB2_3 b LBB2_2 LBB2_2: str wzr, [sp, #64] b LBB2_16 LBB2_3: ldr w8, [sp, #40] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB2_15 b LBB2_4 LBB2_4: ldr w8, [sp, #44] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB2_15 b LBB2_5 LBB2_5: ldr x8, [sp, #48] mov x9, sp str x8, [x9] mov w0, #512 add x1, sp, #71 str x1, [sp, #24] ; 8-byte Folded Spill adrp x2, l_.str.3@PAGE add x2, x2, l_.str.3@PAGEOFF bl _sqlite3_snprintf ldr x0, [sp, #24] ; 8-byte Folded Reload strb wzr, [sp, #583] bl _strlen mov x8, x0 str w8, [sp, #32] b LBB2_6 LBB2_6: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #32] subs w8, w8, #1 cset w8, le mov w9, #0 str w9, [sp, #20] ; 4-byte Folded Spill tbnz w8, #0, LBB2_8 b LBB2_7 LBB2_7: ; in Loop: Header=BB2_6 Depth=1 ldrsw x9, [sp, #32] add x8, sp, #71 ldrsb w8, [x8, x9] subs w8, w8, #47 cset w8, ne str w8, [sp, #20] ; 4-byte Folded Spill b LBB2_8 LBB2_8: ; in Loop: Header=BB2_6 Depth=1 ldr w8, [sp, #20] ; 4-byte Folded Reload tbz w8, #0, LBB2_11 b LBB2_9 LBB2_9: ; in Loop: Header=BB2_6 Depth=1 b LBB2_10 LBB2_10: ; in Loop: Header=BB2_6 Depth=1 ldr w8, [sp, #32] add w8, w8, #1 str w8, [sp, #32] b LBB2_6 LBB2_11: ldrsw x9, [sp, #32] add x0, sp, #71 mov x8, x0 add x8, x8, x9 strb wzr, [x8] mov x8, sp str xzr, [x8] mov w1, #0 bl _open str w0, [sp, #36] ldr w8, [sp, #36] subs w8, w8, #0 cset w8, ge tbnz w8, #0, LBB2_13 b LBB2_12 LBB2_12: mov w8, #-1 str w8, [sp, #40] b LBB2_14 LBB2_13: ldr w0, [sp, #36] bl _fsync str w0, [sp, #40] ldr w0, [sp, #36] bl _close b LBB2_14 LBB2_14: b LBB2_15 LBB2_15: ldr w9, [sp, #40] mov w8, #0 subs w9, w9, #0 cset w9, eq and w10, w9, #0x1 mov w9, #2570 ands w10, w10, #0x1 csel w8, w8, w9, ne str w8, [sp, #64] b LBB2_16 LBB2_16: ldr w8, [sp, #64] str w8, [sp, #16] ; 4-byte Folded Spill ldur x9, [x29, #-24] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB2_18 b LBB2_17 LBB2_17: bl ___stack_chk_fail LBB2_18: ldr w0, [sp, #16] ; 4-byte Folded Reload add sp, sp, #592 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x28, x27, [sp], #32 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function demoAccess _demoAccess: ; @demoAccess .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] stur x1, [x29, #-16] stur w2, [x29, #-20] str x3, [sp, #16] str wzr, [sp, #8] ldur w8, [x29, #-20] subs w8, w8, #0 cset w8, eq mov w9, #1 str w9, [sp, #4] ; 4-byte Folded Spill tbnz w8, #0, LBB3_3 b LBB3_1 LBB3_1: ldur w8, [x29, #-20] subs w8, w8, #2 cset w8, eq mov w9, #1 str w9, [sp, #4] ; 4-byte Folded Spill tbnz w8, #0, LBB3_3 b LBB3_2 LBB3_2: ldur w8, [x29, #-20] subs w8, w8, #1 cset w8, eq str w8, [sp, #4] ; 4-byte Folded Spill b LBB3_3 LBB3_3: ldr w8, [sp, #4] ; 4-byte Folded Reload eor w9, w8, #0x1 ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB3_5 b LBB3_4 LBB3_4: adrp x0, l___func__.demoAccess@PAGE add x0, x0, l___func__.demoAccess@PAGEOFF adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF mov w2, #508 adrp x3, l_.str.4@PAGE add x3, x3, l_.str.4@PAGEOFF bl ___assert_rtn LBB3_5: b LBB3_6 LBB3_6: ldur w8, [x29, #-20] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB3_8 b LBB3_7 LBB3_7: mov w8, #6 str w8, [sp, #8] b LBB3_8 LBB3_8: ldur w8, [x29, #-20] subs w8, w8, #2 cset w8, ne tbnz w8, #0, LBB3_10 b LBB3_9 LBB3_9: mov w8, #4 str w8, [sp, #8] b LBB3_10 LBB3_10: ldur x0, [x29, #-16] ldr w1, [sp, #8] bl _access str w0, [sp, #12] ldr w8, [sp, #12] mov w0, #0 subs w8, w8, #0 cset w8, eq and w8, w8, #0x1 ldr x9, [sp, #16] str w8, [x9] ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function demoFullPathname _demoFullPathname: ; @demoFullPathname .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, #592 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] str x0, [sp, #56] str x1, [sp, #48] str w2, [sp, #44] str x3, [sp, #32] ldr x8, [sp, #48] ldrsb w8, [x8] subs w8, w8, #47 cset w8, ne tbnz w8, #0, LBB4_2 b LBB4_1 LBB4_1: strb wzr, [sp, #71] b LBB4_5 LBB4_2: add x0, sp, #71 mov x1, #513 bl _getcwd subs x8, x0, #0 cset w8, ne tbnz w8, #0, LBB4_4 b LBB4_3 LBB4_3: mov w8, #10 str w8, [sp, #64] b LBB4_6 LBB4_4: b LBB4_5 LBB4_5: add x10, sp, #71 strb wzr, [sp, #583] ldr w0, [sp, #44] ldr x1, [sp, #32] ldr x8, [sp, #48] mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x2, l_.str.5@PAGE add x2, x2, l_.str.5@PAGEOFF bl _sqlite3_snprintf ldr x8, [sp, #32] ldr w9, [sp, #44] subs w9, w9, #1 add x8, x8, w9, sxtw strb wzr, [x8] str wzr, [sp, #64] b LBB4_6 LBB4_6: ldr w8, [sp, #64] str w8, [sp, #28] ; 4-byte Folded Spill ldur x9, [x29, #-24] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB4_8 b LBB4_7 LBB4_7: bl ___stack_chk_fail LBB4_8: ldr w0, [sp, #28] ; 4-byte Folded Reload add sp, sp, #592 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x28, x27, [sp], #32 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function demoDlOpen _demoDlOpen: ; @demoDlOpen .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] str x1, [sp] mov x0, #0 add sp, sp, #16 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function demoDlError _demoDlError: ; @demoDlError .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] stur w1, [x29, #-12] str x2, [sp, #8] ldur w0, [x29, #-12] ldr x1, [sp, #8] adrp x2, l_.str.6@PAGE add x2, x2, l_.str.6@PAGEOFF bl _sqlite3_snprintf ldr x8, [sp, #8] ldur w9, [x29, #-12] subs w9, w9, #1 add x8, x8, w9, sxtw strb wzr, [x8] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function demoDlSym _demoDlSym: ; @demoDlSym .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, #24] str x1, [sp, #16] str x2, [sp, #8] mov x0, #0 add sp, sp, #32 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function demoDlClose _demoDlClose: ; @demoDlClose .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] str x1, [sp] add sp, sp, #16 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function demoRandomness _demoRandomness: ; @demoRandomness .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, #24] str w1, [sp, #20] str x2, [sp, #8] mov w0, #0 add sp, sp, #32 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function demoSleep _demoSleep: ; @demoSleep .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 w9, #16960 movk w9, #15, lsl #16 str w9, [sp] ; 4-byte Folded Spill str x0, [sp, #8] str w1, [sp, #4] ldr w8, [sp, #4] sdiv w0, w8, w9 bl _sleep ldr w10, [sp] ; 4-byte Folded Reload ldr w8, [sp, #4] sdiv w9, w8, w10 mul w9, w9, w10 subs w0, w8, w9 bl _usleep ldr w0, [sp, #4] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ; -- Begin function demoCurrentTime lCPI11_0: .quad 0x41429ec5c0000000 ; double 2440587.5 lCPI11_1: .quad 0x40f5180000000000 ; double 86400 .section __TEXT,__text,regular,pure_instructions .p2align 2 _demoCurrentTime: ; @demoCurrentTime .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] str x1, [sp, #16] mov x0, #0 bl _time str x0, [sp, #8] ldr d0, [sp, #8] scvtf d0, d0 adrp x8, lCPI11_1@PAGE ldr d1, [x8, lCPI11_1@PAGEOFF] fdiv d0, d0, d1 adrp x8, lCPI11_0@PAGE ldr d1, [x8, lCPI11_0@PAGEOFF] fadd d0, d0, d1 ldr x8, [sp, #16] str d0, [x8] mov w0, #0 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function demoClose _demoClose: ; @demoClose .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] ldur x8, [x29, #-8] str x8, [sp, #8] ldr x0, [sp, #8] bl _demoFlushBuffer stur w0, [x29, #-12] ldr x8, [sp, #8] ldr x0, [x8, #16] bl _sqlite3_free ldr x8, [sp, #8] ldr w0, [x8, #8] bl _close ldur w0, [x29, #-12] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function demoRead _demoRead: ; @demoRead .cfi_startproc ; %bb.0: sub sp, sp, #80 .cfi_def_cfa_offset 80 stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp, #64 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-16] stur x1, [x29, #-24] stur w2, [x29, #-28] str x3, [sp, #24] ldur x8, [x29, #-16] str x8, [sp, #16] ldr x0, [sp, #16] bl _demoFlushBuffer str w0, [sp] ldr w8, [sp] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB13_2 b LBB13_1 LBB13_1: ldr w8, [sp] stur w8, [x29, #-4] b LBB13_10 LBB13_2: ldr x8, [sp, #16] ldr w0, [x8, #8] ldr x1, [sp, #24] mov w2, #0 bl _lseek str x0, [sp, #8] ldr x8, [sp, #8] ldr x9, [sp, #24] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB13_4 b LBB13_3 LBB13_3: mov w8, #266 stur w8, [x29, #-4] b LBB13_10 LBB13_4: ldr x8, [sp, #16] ldr w0, [x8, #8] ldur x1, [x29, #-24] ldursw x2, [x29, #-28] bl _read mov x8, x0 str w8, [sp, #4] ldr w8, [sp, #4] ldur w9, [x29, #-28] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB13_6 b LBB13_5 LBB13_5: stur wzr, [x29, #-4] b LBB13_10 LBB13_6: ldr w8, [sp, #4] subs w8, w8, #0 cset w8, lt tbnz w8, #0, LBB13_8 b LBB13_7 LBB13_7: mov w8, #522 stur w8, [x29, #-4] b LBB13_10 LBB13_8: b LBB13_9 LBB13_9: mov w8, #266 stur w8, [x29, #-4] b LBB13_10 LBB13_10: ldur w0, [x29, #-4] ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function demoWrite _demoWrite: ; @demoWrite .cfi_startproc ; %bb.0: sub sp, sp, #112 .cfi_def_cfa_offset 112 stp x29, x30, [sp, #96] ; 16-byte Folded Spill add x29, sp, #96 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-16] stur x1, [x29, #-24] stur w2, [x29, #-28] stur x3, [x29, #-40] ldur x8, [x29, #-16] str x8, [sp, #48] ldr x8, [sp, #48] ldr x8, [x8, #16] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB14_17 b LBB14_1 LBB14_1: ldur x8, [x29, #-24] str x8, [sp, #40] ldur w8, [x29, #-28] str w8, [sp, #36] ldur x8, [x29, #-40] str x8, [sp, #24] b LBB14_2 LBB14_2: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #36] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB14_16 b LBB14_3 LBB14_3: ; in Loop: Header=BB14_2 Depth=1 ldr x8, [sp, #48] ldr w8, [x8, #24] subs w8, w8, #2, lsl #12 ; =8192 cset w8, eq tbnz w8, #0, LBB14_5 b LBB14_4 LBB14_4: ; in Loop: Header=BB14_2 Depth=1 ldr x8, [sp, #48] ldr x8, [x8, #32] ldr x9, [sp, #48] ldrsw x9, [x9, #24] add x8, x8, x9 ldr x9, [sp, #24] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB14_8 b LBB14_5 LBB14_5: ; in Loop: Header=BB14_2 Depth=1 ldr x0, [sp, #48] bl _demoFlushBuffer str w0, [sp, #16] ldr w8, [sp, #16] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB14_7 b LBB14_6 LBB14_6: ldr w8, [sp, #16] stur w8, [x29, #-4] b LBB14_19 LBB14_7: ; in Loop: Header=BB14_2 Depth=1 b LBB14_8 LBB14_8: ; in Loop: Header=BB14_2 Depth=1 ldr x8, [sp, #48] ldr w8, [x8, #24] subs w8, w8, #0 cset w8, eq mov w9, #1 str w9, [sp, #12] ; 4-byte Folded Spill tbnz w8, #0, LBB14_10 b LBB14_9 LBB14_9: ; in Loop: Header=BB14_2 Depth=1 ldr x8, [sp, #48] ldr x8, [x8, #32] ldr x9, [sp, #48] ldrsw x9, [x9, #24] add x8, x8, x9 ldr x9, [sp, #24] subs x8, x8, x9 cset w8, eq str w8, [sp, #12] ; 4-byte Folded Spill b LBB14_10 LBB14_10: ; in Loop: Header=BB14_2 Depth=1 ldr w8, [sp, #12] ; 4-byte Folded Reload eor w9, w8, #0x1 ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB14_12 b LBB14_11 LBB14_11: adrp x0, l___func__.demoWrite@PAGE add x0, x0, l___func__.demoWrite@PAGEOFF adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF mov w2, #278 adrp x3, l_.str.2@PAGE add x3, x3, l_.str.2@PAGEOFF bl ___assert_rtn LBB14_12: ; in Loop: Header=BB14_2 Depth=1 b LBB14_13 LBB14_13: ; in Loop: Header=BB14_2 Depth=1 ldr x8, [sp, #24] ldr x9, [sp, #48] ldrsw x9, [x9, #24] subs x8, x8, x9 ldr x9, [sp, #48] str x8, [x9, #32] ldr x8, [sp, #48] ldr w9, [x8, #24] mov w8, #8192 subs w8, w8, w9 str w8, [sp, #20] ldr w8, [sp, #20] ldr w9, [sp, #36] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB14_15 b LBB14_14 LBB14_14: ; in Loop: Header=BB14_2 Depth=1 ldr w8, [sp, #36] str w8, [sp, #20] b LBB14_15 LBB14_15: ; in Loop: Header=BB14_2 Depth=1 ldr x8, [sp, #48] ldr x8, [x8, #16] ldr x9, [sp, #48] ldrsw x9, [x9, #24] add x0, x8, x9 ldr x1, [sp, #40] ldrsw x2, [sp, #20] mov x3, #-1 bl ___memcpy_chk ldr w10, [sp, #20] ldr x9, [sp, #48] ldr w8, [x9, #24] add w8, w8, w10 str w8, [x9, #24] ldr w9, [sp, #20] ldr w8, [sp, #36] subs w8, w8, w9 str w8, [sp, #36] ldrsw x9, [sp, #20] ldr x8, [sp, #24] add x8, x8, x9 str x8, [sp, #24] ldrsw x9, [sp, #20] ldr x8, [sp, #40] add x8, x8, x9 str x8, [sp, #40] b LBB14_2 LBB14_16: b LBB14_18 LBB14_17: ldr x0, [sp, #48] ldur x1, [x29, #-24] ldur w2, [x29, #-28] ldur x3, [x29, #-40] bl _demoDirectWrite stur w0, [x29, #-4] b LBB14_19 LBB14_18: stur wzr, [x29, #-4] b LBB14_19 LBB14_19: ldur w0, [x29, #-4] ldp x29, x30, [sp, #96] ; 16-byte Folded Reload add sp, sp, #112 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function demoTruncate _demoTruncate: ; @demoTruncate .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] str x1, [sp] mov w0, #0 add sp, sp, #16 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function demoSync _demoSync: ; @demoSync .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-16] stur w1, [x29, #-20] ldur x8, [x29, #-16] str x8, [sp, #16] ldr x0, [sp, #16] bl _demoFlushBuffer str w0, [sp, #12] ldr w8, [sp, #12] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB16_2 b LBB16_1 LBB16_1: ldr w8, [sp, #12] stur w8, [x29, #-4] b LBB16_3 LBB16_2: ldr x8, [sp, #16] ldr w0, [x8, #8] bl _fsync str w0, [sp, #12] ldr w9, [sp, #12] mov w8, #0 subs w9, w9, #0 cset w9, eq and w10, w9, #0x1 mov w9, #1034 ands w10, w10, #0x1 csel w8, w8, w9, ne stur w8, [x29, #-4] b LBB16_3 LBB16_3: ldur w0, [x29, #-4] ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function demoFileSize _demoFileSize: ; @demoFileSize .cfi_startproc ; %bb.0: sub sp, sp, #208 .cfi_def_cfa_offset 208 stp x29, x30, [sp, #192] ; 16-byte Folded Spill add x29, sp, #192 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-16] stur x1, [x29, #-24] ldur x8, [x29, #-16] stur x8, [x29, #-32] ldur x0, [x29, #-32] bl _demoFlushBuffer stur w0, [x29, #-36] ldur w8, [x29, #-36] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB17_2 b LBB17_1 LBB17_1: ldur w8, [x29, #-36] stur w8, [x29, #-4] b LBB17_5 LBB17_2: ldur x8, [x29, #-32] ldr w0, [x8, #8] add x1, sp, #8 bl _fstat stur w0, [x29, #-36] ldur w8, [x29, #-36] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB17_4 b LBB17_3 LBB17_3: mov w8, #1802 stur w8, [x29, #-4] b LBB17_5 LBB17_4: ldr x8, [sp, #104] ldur x9, [x29, #-24] str x8, [x9] stur wzr, [x29, #-4] b LBB17_5 LBB17_5: ldur w0, [x29, #-4] ldp x29, x30, [sp, #192] ; 16-byte Folded Reload add sp, sp, #208 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function demoLock _demoLock: ; @demoLock .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] str w1, [sp, #4] mov w0, #0 add sp, sp, #16 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function demoUnlock _demoUnlock: ; @demoUnlock .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] str w1, [sp, #4] mov w0, #0 add sp, sp, #16 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function demoCheckReservedLock _demoCheckReservedLock: ; @demoCheckReservedLock .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] str x1, [sp] ldr x8, [sp] mov w0, #0 str wzr, [x8] add sp, sp, #16 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function demoFileControl _demoFileControl: ; @demoFileControl .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, #24] str w1, [sp, #20] str x2, [sp, #8] mov w0, #0 add sp, sp, #32 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function demoSectorSize _demoSectorSize: ; @demoSectorSize .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] mov w0, #0 add sp, sp, #16 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function demoDeviceCharacteristics _demoDeviceCharacteristics: ; @demoDeviceCharacteristics .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] mov w0, #0 add sp, sp, #16 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function demoFlushBuffer _demoFlushBuffer: ; @demoFlushBuffer .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #8] str wzr, [sp, #4] ldr x8, [sp, #8] ldr w8, [x8, #24] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB24_2 b LBB24_1 LBB24_1: ldr x0, [sp, #8] ldr x8, [sp, #8] ldr x1, [x8, #16] ldr x8, [sp, #8] ldr w2, [x8, #24] ldr x8, [sp, #8] ldr x3, [x8, #32] bl _demoDirectWrite str w0, [sp, #4] ldr x8, [sp, #8] str wzr, [x8, #24] b LBB24_2 LBB24_2: ldr w0, [sp, #4] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function demoDirectWrite _demoDirectWrite: ; @demoDirectWrite .cfi_startproc ; %bb.0: sub sp, sp, #80 .cfi_def_cfa_offset 80 stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp, #64 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-16] stur x1, [x29, #-24] stur w2, [x29, #-28] str x3, [sp, #24] ldur x8, [x29, #-16] ldr w0, [x8, #8] ldr x1, [sp, #24] mov w2, #0 bl _lseek str x0, [sp, #16] ldr x8, [sp, #16] ldr x9, [sp, #24] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB25_2 b LBB25_1 LBB25_1: mov w8, #778 stur w8, [x29, #-4] b LBB25_5 LBB25_2: ldur x8, [x29, #-16] ldr w0, [x8, #8] ldur x1, [x29, #-24] ldursw x2, [x29, #-28] bl _write str x0, [sp, #8] ldr x8, [sp, #8] ldursw x9, [x29, #-28] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB25_4 b LBB25_3 LBB25_3: mov w8, #778 stur w8, [x29, #-4] b LBB25_5 LBB25_4: stur wzr, [x29, #-4] b LBB25_5 LBB25_5: ldur w0, [x29, #-4] ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .section __DATA,__data .p2align 3 ; @sqlite3_demovfs.demovfs _sqlite3_demovfs.demovfs: .long 1 ; 0x1 .long 40 ; 0x28 .long 512 ; 0x200 .space 4 .quad 0 .quad l_.str .quad 0 .quad _demoOpen .quad _demoDelete .quad _demoAccess .quad _demoFullPathname .quad _demoDlOpen .quad _demoDlError .quad _demoDlSym .quad _demoDlClose .quad _demoRandomness .quad _demoSleep .quad _demoCurrentTime .quad 0 .quad 0 .quad 0 .quad 0 .quad 0 .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "demo" .section __DATA,__const .p2align 3 ; @demoOpen.demoio _demoOpen.demoio: .long 1 ; 0x1 .space 4 .quad _demoClose .quad _demoRead .quad _demoWrite .quad _demoTruncate .quad _demoSync .quad _demoFileSize .quad _demoLock .quad _demoUnlock .quad _demoCheckReservedLock .quad _demoFileControl .quad _demoSectorSize .quad _demoDeviceCharacteristics .quad 0 .quad 0 .quad 0 .quad 0 .quad 0 .quad 0 .section __TEXT,__cstring,cstring_literals l___func__.demoWrite: ; @__func__.demoWrite .asciz "demoWrite" l_.str.1: ; @.str.1 .asciz "76841.c" l_.str.2: ; @.str.2 .asciz "p->nBuffer==0 || p->iBufferOfst+p->nBuffer==i" l_.str.3: ; @.str.3 .asciz "%s" l___func__.demoAccess: ; @__func__.demoAccess .asciz "demoAccess" l_.str.4: ; @.str.4 .asciz "flags==SQLITE_ACCESS_EXISTS || flags==SQLITE_ACCESS_READ || flags==SQLITE_ACCESS_READWRITE" l_.str.5: ; @.str.5 .asciz "%s/%s" l_.str.6: ; @.str.6 .asciz "Loadable extensions are not supported" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _sqlite3_demovfs ## -- Begin function sqlite3_demovfs .p2align 4, 0x90 _sqlite3_demovfs: ## @sqlite3_demovfs .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq _sqlite3_demovfs.demovfs(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function demoOpen _demoOpen: ## @demoOpen .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $80, %rsp movq %rdi, -16(%rbp) movq %rsi, -24(%rbp) movq %rdx, -32(%rbp) movl %ecx, -36(%rbp) movq %r8, -48(%rbp) movq -32(%rbp), %rax movq %rax, -56(%rbp) movl $0, -60(%rbp) movq $0, -72(%rbp) cmpq $0, -24(%rbp) jne LBB1_2 ## %bb.1: movl $10, -4(%rbp) jmp LBB1_19 LBB1_2: movl -36(%rbp), %eax andl $2048, %eax ## imm = 0x800 cmpl $0, %eax je LBB1_6 ## %bb.3: movl $8192, %edi ## imm = 0x2000 callq _sqlite3_malloc movq %rax, -72(%rbp) cmpq $0, -72(%rbp) jne LBB1_5 ## %bb.4: movl $7, -4(%rbp) jmp LBB1_19 LBB1_5: jmp LBB1_6 LBB1_6: movl -36(%rbp), %eax andl $16, %eax cmpl $0, %eax je LBB1_8 ## %bb.7: movl -60(%rbp), %eax orl $2048, %eax ## imm = 0x800 movl %eax, -60(%rbp) LBB1_8: movl -36(%rbp), %eax andl $4, %eax cmpl $0, %eax je LBB1_10 ## %bb.9: movl -60(%rbp), %eax orl $512, %eax ## imm = 0x200 movl %eax, -60(%rbp) LBB1_10: movl -36(%rbp), %eax andl $1, %eax cmpl $0, %eax je LBB1_12 ## %bb.11: movl -60(%rbp), %eax orl $0, %eax movl %eax, -60(%rbp) LBB1_12: movl -36(%rbp), %eax andl $2, %eax cmpl $0, %eax je LBB1_14 ## %bb.13: movl -60(%rbp), %eax orl $2, %eax movl %eax, -60(%rbp) LBB1_14: movq -56(%rbp), %rdi xorl %esi, %esi movl $40, %edx movq $-1, %rcx callq ___memset_chk movq -24(%rbp), %rdi movl -60(%rbp), %esi movl $384, %edx ## imm = 0x180 movb $0, %al callq _open movl %eax, %ecx movq -56(%rbp), %rax movl %ecx, 8(%rax) movq -56(%rbp), %rax cmpl $0, 8(%rax) jge LBB1_16 ## %bb.15: movq -72(%rbp), %rdi callq _sqlite3_free movl $14, -4(%rbp) jmp LBB1_19 LBB1_16: movq -72(%rbp), %rcx movq -56(%rbp), %rax movq %rcx, 16(%rax) cmpq $0, -48(%rbp) je LBB1_18 ## %bb.17: movl -36(%rbp), %ecx movq -48(%rbp), %rax movl %ecx, (%rax) LBB1_18: movq -56(%rbp), %rax leaq _demoOpen.demoio(%rip), %rcx movq %rcx, (%rax) movl $0, -4(%rbp) LBB1_19: movl -4(%rbp), %eax addq $80, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function demoDelete _demoDelete: ## @demoDelete .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $576, %rsp ## imm = 0x240 movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movq %rdi, -544(%rbp) movq %rsi, -552(%rbp) movl %edx, -556(%rbp) movq -552(%rbp), %rdi callq _unlink movl %eax, -560(%rbp) cmpl $0, -560(%rbp) je LBB2_3 ## %bb.1: callq ___error cmpl $2, (%rax) jne LBB2_3 ## %bb.2: movl $0, -532(%rbp) jmp LBB2_16 LBB2_3: cmpl $0, -560(%rbp) jne LBB2_15 ## %bb.4: cmpl $0, -556(%rbp) je LBB2_15 ## %bb.5: leaq -528(%rbp), %rsi movq -552(%rbp), %rcx movl $512, %edi ## imm = 0x200 leaq L_.str.3(%rip), %rdx movb $0, %al callq _sqlite3_snprintf movb $0, -16(%rbp) leaq -528(%rbp), %rdi callq _strlen ## kill: def $eax killed $eax killed $rax movl %eax, -568(%rbp) LBB2_6: ## =>This Inner Loop Header: Depth=1 xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $1, -568(%rbp) movb %al, -569(%rbp) ## 1-byte Spill jle LBB2_8 ## %bb.7: ## in Loop: Header=BB2_6 Depth=1 movslq -568(%rbp), %rax movsbl -528(%rbp,%rax), %eax cmpl $47, %eax setne %al movb %al, -569(%rbp) ## 1-byte Spill LBB2_8: ## in Loop: Header=BB2_6 Depth=1 movb -569(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB2_9 jmp LBB2_11 LBB2_9: ## in Loop: Header=BB2_6 Depth=1 jmp LBB2_10 LBB2_10: ## in Loop: Header=BB2_6 Depth=1 movl -568(%rbp), %eax addl $1, %eax movl %eax, -568(%rbp) jmp LBB2_6 LBB2_11: movslq -568(%rbp), %rax movb $0, -528(%rbp,%rax) leaq -528(%rbp), %rdi xorl %edx, %edx movl %edx, %esi movb $0, %al callq _open movl %eax, -564(%rbp) cmpl $0, -564(%rbp) jge LBB2_13 ## %bb.12: movl $-1, -560(%rbp) jmp LBB2_14 LBB2_13: movl -564(%rbp), %edi callq _fsync movl %eax, -560(%rbp) movl -564(%rbp), %edi callq _close LBB2_14: jmp LBB2_15 LBB2_15: movl -560(%rbp), %edx movl $2570, %eax ## imm = 0xA0A xorl %ecx, %ecx cmpl $0, %edx cmovel %ecx, %eax movl %eax, -532(%rbp) LBB2_16: movl -532(%rbp), %eax movl %eax, -576(%rbp) ## 4-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB2_18 ## %bb.17: movl -576(%rbp), %eax ## 4-byte Reload addq $576, %rsp ## imm = 0x240 popq %rbp retq LBB2_18: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function demoAccess _demoAccess: ## @demoAccess .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) movl %edx, -20(%rbp) movq %rcx, -32(%rbp) movl $0, -40(%rbp) movb $1, %al cmpl $0, -20(%rbp) movb %al, -41(%rbp) ## 1-byte Spill je LBB3_3 ## %bb.1: movb $1, %al cmpl $2, -20(%rbp) movb %al, -41(%rbp) ## 1-byte Spill je LBB3_3 ## %bb.2: cmpl $1, -20(%rbp) sete %al movb %al, -41(%rbp) ## 1-byte Spill LBB3_3: movb -41(%rbp), %al ## 1-byte Reload xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB3_5 ## %bb.4: leaq L___func__.demoAccess(%rip), %rdi leaq L_.str.1(%rip), %rsi leaq L_.str.4(%rip), %rcx movl $508, %edx ## imm = 0x1FC callq ___assert_rtn LBB3_5: jmp LBB3_6 LBB3_6: cmpl $1, -20(%rbp) jne LBB3_8 ## %bb.7: movl $6, -40(%rbp) LBB3_8: cmpl $2, -20(%rbp) jne LBB3_10 ## %bb.9: movl $4, -40(%rbp) LBB3_10: movq -16(%rbp), %rdi movl -40(%rbp), %esi callq _access movl %eax, -36(%rbp) cmpl $0, -36(%rbp) sete %al andb $1, %al movzbl %al, %ecx movq -32(%rbp), %rax movl %ecx, (%rax) xorl %eax, %eax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function demoFullPathname _demoFullPathname: ## @demoFullPathname .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $576, %rsp ## imm = 0x240 movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movq %rdi, -544(%rbp) movq %rsi, -552(%rbp) movl %edx, -556(%rbp) movq %rcx, -568(%rbp) movq -552(%rbp), %rax movsbl (%rax), %eax cmpl $47, %eax jne LBB4_2 ## %bb.1: movb $0, -528(%rbp) jmp LBB4_5 LBB4_2: leaq -528(%rbp), %rdi movl $513, %esi ## imm = 0x201 callq _getcwd cmpq $0, %rax jne LBB4_4 ## %bb.3: movl $10, -532(%rbp) jmp LBB4_6 LBB4_4: jmp LBB4_5 LBB4_5: movb $0, -16(%rbp) movl -556(%rbp), %edi movq -568(%rbp), %rsi leaq -528(%rbp), %rcx movq -552(%rbp), %r8 leaq L_.str.5(%rip), %rdx movb $0, %al callq _sqlite3_snprintf movq -568(%rbp), %rax movl -556(%rbp), %ecx subl $1, %ecx movslq %ecx, %rcx movb $0, (%rax,%rcx) movl $0, -532(%rbp) LBB4_6: movl -532(%rbp), %eax movl %eax, -572(%rbp) ## 4-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB4_8 ## %bb.7: movl -572(%rbp), %eax ## 4-byte Reload addq $576, %rsp ## imm = 0x240 popq %rbp retq LBB4_8: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function demoDlOpen _demoDlOpen: ## @demoDlOpen .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) xorl %eax, %eax ## kill: def $rax killed $eax popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function demoDlError _demoDlError: ## @demoDlError .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) movq %rdx, -24(%rbp) movl -12(%rbp), %edi movq -24(%rbp), %rsi leaq L_.str.6(%rip), %rdx movb $0, %al callq _sqlite3_snprintf movq -24(%rbp), %rax movl -12(%rbp), %ecx subl $1, %ecx movslq %ecx, %rcx movb $0, (%rax,%rcx) addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function demoDlSym _demoDlSym: ## @demoDlSym .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) movq %rdx, -24(%rbp) xorl %eax, %eax ## kill: def $rax killed $eax popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function demoDlClose _demoDlClose: ## @demoDlClose .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) popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function demoRandomness _demoRandomness: ## @demoRandomness .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) movq %rdx, -24(%rbp) xorl %eax, %eax popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function demoSleep _demoSleep: ## @demoSleep .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) movl -12(%rbp), %eax movl $1000000, %ecx ## imm = 0xF4240 cltd idivl %ecx movl %eax, %edi callq _sleep movl -12(%rbp), %eax movl $1000000, %ecx ## imm = 0xF4240 cltd idivl %ecx movl %edx, %edi callq _usleep movl -12(%rbp), %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ## -- Begin function demoCurrentTime LCPI11_0: .quad 0x41429ec5c0000000 ## double 2440587.5 LCPI11_1: .quad 0x40f5180000000000 ## double 86400 .section __TEXT,__text,regular,pure_instructions .p2align 4, 0x90 _demoCurrentTime: ## @demoCurrentTime .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) xorl %eax, %eax movl %eax, %edi callq _time movq %rax, -24(%rbp) cvtsi2sdq -24(%rbp), %xmm0 movsd LCPI11_1(%rip), %xmm1 ## xmm1 = mem[0],zero divsd %xmm1, %xmm0 movsd LCPI11_0(%rip), %xmm1 ## xmm1 = mem[0],zero addsd %xmm1, %xmm0 movq -16(%rbp), %rax movsd %xmm0, (%rax) xorl %eax, %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function demoClose _demoClose: ## @demoClose .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movq -8(%rbp), %rax movq %rax, -24(%rbp) movq -24(%rbp), %rdi callq _demoFlushBuffer movl %eax, -12(%rbp) movq -24(%rbp), %rax movq 16(%rax), %rdi callq _sqlite3_free movq -24(%rbp), %rax movl 8(%rax), %edi callq _close movl -12(%rbp), %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function demoRead _demoRead: ## @demoRead .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $64, %rsp movq %rdi, -16(%rbp) movq %rsi, -24(%rbp) movl %edx, -28(%rbp) movq %rcx, -40(%rbp) movq -16(%rbp), %rax movq %rax, -48(%rbp) movq -48(%rbp), %rdi callq _demoFlushBuffer movl %eax, -64(%rbp) cmpl $0, -64(%rbp) je LBB13_2 ## %bb.1: movl -64(%rbp), %eax movl %eax, -4(%rbp) jmp LBB13_10 LBB13_2: movq -48(%rbp), %rax movl 8(%rax), %edi movq -40(%rbp), %rsi xorl %edx, %edx callq _lseek movq %rax, -56(%rbp) movq -56(%rbp), %rax cmpq -40(%rbp), %rax je LBB13_4 ## %bb.3: movl $266, -4(%rbp) ## imm = 0x10A jmp LBB13_10 LBB13_4: movq -48(%rbp), %rax movl 8(%rax), %edi movq -24(%rbp), %rsi movslq -28(%rbp), %rdx callq _read ## kill: def $eax killed $eax killed $rax movl %eax, -60(%rbp) movl -60(%rbp), %eax cmpl -28(%rbp), %eax jne LBB13_6 ## %bb.5: movl $0, -4(%rbp) jmp LBB13_10 LBB13_6: cmpl $0, -60(%rbp) jl LBB13_8 ## %bb.7: movl $522, -4(%rbp) ## imm = 0x20A jmp LBB13_10 LBB13_8: jmp LBB13_9 LBB13_9: movl $266, -4(%rbp) ## imm = 0x10A LBB13_10: movl -4(%rbp), %eax addq $64, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function demoWrite _demoWrite: ## @demoWrite .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $96, %rsp movq %rdi, -16(%rbp) movq %rsi, -24(%rbp) movl %edx, -28(%rbp) movq %rcx, -40(%rbp) movq -16(%rbp), %rax movq %rax, -48(%rbp) movq -48(%rbp), %rax cmpq $0, 16(%rax) je LBB14_17 ## %bb.1: movq -24(%rbp), %rax movq %rax, -56(%rbp) movl -28(%rbp), %eax movl %eax, -60(%rbp) movq -40(%rbp), %rax movq %rax, -72(%rbp) LBB14_2: ## =>This Inner Loop Header: Depth=1 cmpl $0, -60(%rbp) jle LBB14_16 ## %bb.3: ## in Loop: Header=BB14_2 Depth=1 movq -48(%rbp), %rax cmpl $8192, 24(%rax) ## imm = 0x2000 je LBB14_5 ## %bb.4: ## in Loop: Header=BB14_2 Depth=1 movq -48(%rbp), %rax movq 32(%rax), %rax movq -48(%rbp), %rcx movslq 24(%rcx), %rcx addq %rcx, %rax cmpq -72(%rbp), %rax je LBB14_8 LBB14_5: ## in Loop: Header=BB14_2 Depth=1 movq -48(%rbp), %rdi callq _demoFlushBuffer movl %eax, -80(%rbp) cmpl $0, -80(%rbp) je LBB14_7 ## %bb.6: movl -80(%rbp), %eax movl %eax, -4(%rbp) jmp LBB14_19 LBB14_7: ## in Loop: Header=BB14_2 Depth=1 jmp LBB14_8 LBB14_8: ## in Loop: Header=BB14_2 Depth=1 movq -48(%rbp), %rcx movb $1, %al cmpl $0, 24(%rcx) movb %al, -81(%rbp) ## 1-byte Spill je LBB14_10 ## %bb.9: ## in Loop: Header=BB14_2 Depth=1 movq -48(%rbp), %rax movq 32(%rax), %rax movq -48(%rbp), %rcx movslq 24(%rcx), %rcx addq %rcx, %rax cmpq -72(%rbp), %rax sete %al movb %al, -81(%rbp) ## 1-byte Spill LBB14_10: ## in Loop: Header=BB14_2 Depth=1 movb -81(%rbp), %al ## 1-byte Reload xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB14_12 ## %bb.11: leaq L___func__.demoWrite(%rip), %rdi leaq L_.str.1(%rip), %rsi leaq L_.str.2(%rip), %rcx movl $278, %edx ## imm = 0x116 callq ___assert_rtn LBB14_12: ## in Loop: Header=BB14_2 Depth=1 jmp LBB14_13 LBB14_13: ## in Loop: Header=BB14_2 Depth=1 movq -72(%rbp), %rcx movq -48(%rbp), %rax movslq 24(%rax), %rax subq %rax, %rcx movq -48(%rbp), %rax movq %rcx, 32(%rax) movq -48(%rbp), %rcx movl $8192, %eax ## imm = 0x2000 subl 24(%rcx), %eax movl %eax, -76(%rbp) movl -76(%rbp), %eax cmpl -60(%rbp), %eax jle LBB14_15 ## %bb.14: ## in Loop: Header=BB14_2 Depth=1 movl -60(%rbp), %eax movl %eax, -76(%rbp) LBB14_15: ## in Loop: Header=BB14_2 Depth=1 movq -48(%rbp), %rax movq 16(%rax), %rdi movq -48(%rbp), %rax movslq 24(%rax), %rax addq %rax, %rdi movq -56(%rbp), %rsi movslq -76(%rbp), %rdx movq $-1, %rcx callq ___memcpy_chk movl -76(%rbp), %ecx movq -48(%rbp), %rax addl 24(%rax), %ecx movl %ecx, 24(%rax) movl -76(%rbp), %ecx movl -60(%rbp), %eax subl %ecx, %eax movl %eax, -60(%rbp) movslq -76(%rbp), %rax addq -72(%rbp), %rax movq %rax, -72(%rbp) movl -76(%rbp), %ecx movq -56(%rbp), %rax movslq %ecx, %rcx addq %rcx, %rax movq %rax, -56(%rbp) jmp LBB14_2 LBB14_16: jmp LBB14_18 LBB14_17: movq -48(%rbp), %rdi movq -24(%rbp), %rsi movl -28(%rbp), %edx movq -40(%rbp), %rcx callq _demoDirectWrite movl %eax, -4(%rbp) jmp LBB14_19 LBB14_18: movl $0, -4(%rbp) LBB14_19: movl -4(%rbp), %eax addq $96, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function demoTruncate _demoTruncate: ## @demoTruncate .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) xorl %eax, %eax popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function demoSync _demoSync: ## @demoSync .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movq %rdi, -16(%rbp) movl %esi, -20(%rbp) movq -16(%rbp), %rax movq %rax, -32(%rbp) movq -32(%rbp), %rdi callq _demoFlushBuffer movl %eax, -36(%rbp) cmpl $0, -36(%rbp) je LBB16_2 ## %bb.1: movl -36(%rbp), %eax movl %eax, -4(%rbp) jmp LBB16_3 LBB16_2: movq -32(%rbp), %rax movl 8(%rax), %edi callq _fsync movl %eax, -36(%rbp) movl -36(%rbp), %edx movl $1034, %eax ## imm = 0x40A xorl %ecx, %ecx cmpl $0, %edx cmovel %ecx, %eax movl %eax, -4(%rbp) LBB16_3: movl -4(%rbp), %eax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function demoFileSize _demoFileSize: ## @demoFileSize .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $192, %rsp movq %rdi, -16(%rbp) movq %rsi, -24(%rbp) movq -16(%rbp), %rax movq %rax, -32(%rbp) movq -32(%rbp), %rdi callq _demoFlushBuffer movl %eax, -36(%rbp) cmpl $0, -36(%rbp) je LBB17_2 ## %bb.1: movl -36(%rbp), %eax movl %eax, -4(%rbp) jmp LBB17_5 LBB17_2: movq -32(%rbp), %rax movl 8(%rax), %edi leaq -184(%rbp), %rsi callq _fstat$INODE64 movl %eax, -36(%rbp) cmpl $0, -36(%rbp) je LBB17_4 ## %bb.3: movl $1802, -4(%rbp) ## imm = 0x70A jmp LBB17_5 LBB17_4: movq -88(%rbp), %rcx movq -24(%rbp), %rax movq %rcx, (%rax) movl $0, -4(%rbp) LBB17_5: movl -4(%rbp), %eax addq $192, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function demoLock _demoLock: ## @demoLock .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) xorl %eax, %eax popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function demoUnlock _demoUnlock: ## @demoUnlock .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) xorl %eax, %eax popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function demoCheckReservedLock _demoCheckReservedLock: ## @demoCheckReservedLock .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) movq -16(%rbp), %rax movl $0, (%rax) xorl %eax, %eax popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function demoFileControl _demoFileControl: ## @demoFileControl .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) movq %rdx, -24(%rbp) xorl %eax, %eax popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function demoSectorSize _demoSectorSize: ## @demoSectorSize .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) xorl %eax, %eax popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function demoDeviceCharacteristics _demoDeviceCharacteristics: ## @demoDeviceCharacteristics .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) xorl %eax, %eax popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function demoFlushBuffer _demoFlushBuffer: ## @demoFlushBuffer .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) movl $0, -12(%rbp) movq -8(%rbp), %rax cmpl $0, 24(%rax) je LBB24_2 ## %bb.1: movq -8(%rbp), %rdi movq -8(%rbp), %rax movq 16(%rax), %rsi movq -8(%rbp), %rax movl 24(%rax), %edx movq -8(%rbp), %rax movq 32(%rax), %rcx callq _demoDirectWrite movl %eax, -12(%rbp) movq -8(%rbp), %rax movl $0, 24(%rax) LBB24_2: movl -12(%rbp), %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function demoDirectWrite _demoDirectWrite: ## @demoDirectWrite .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $64, %rsp movq %rdi, -16(%rbp) movq %rsi, -24(%rbp) movl %edx, -28(%rbp) movq %rcx, -40(%rbp) movq -16(%rbp), %rax movl 8(%rax), %edi movq -40(%rbp), %rsi xorl %edx, %edx callq _lseek movq %rax, -48(%rbp) movq -48(%rbp), %rax cmpq -40(%rbp), %rax je LBB25_2 ## %bb.1: movl $778, -4(%rbp) ## imm = 0x30A jmp LBB25_5 LBB25_2: movq -16(%rbp), %rax movl 8(%rax), %edi movq -24(%rbp), %rsi movslq -28(%rbp), %rdx callq _write movq %rax, -56(%rbp) movq -56(%rbp), %rax movslq -28(%rbp), %rcx cmpq %rcx, %rax je LBB25_4 ## %bb.3: movl $778, -4(%rbp) ## imm = 0x30A jmp LBB25_5 LBB25_4: movl $0, -4(%rbp) LBB25_5: movl -4(%rbp), %eax addq $64, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __DATA,__data .p2align 3 ## @sqlite3_demovfs.demovfs _sqlite3_demovfs.demovfs: .long 1 ## 0x1 .long 40 ## 0x28 .long 512 ## 0x200 .space 4 .quad 0 .quad L_.str .quad 0 .quad _demoOpen .quad _demoDelete .quad _demoAccess .quad _demoFullPathname .quad _demoDlOpen .quad _demoDlError .quad _demoDlSym .quad _demoDlClose .quad _demoRandomness .quad _demoSleep .quad _demoCurrentTime .quad 0 .quad 0 .quad 0 .quad 0 .quad 0 .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "demo" .section __DATA,__const .p2align 3 ## @demoOpen.demoio _demoOpen.demoio: .long 1 ## 0x1 .space 4 .quad _demoClose .quad _demoRead .quad _demoWrite .quad _demoTruncate .quad _demoSync .quad _demoFileSize .quad _demoLock .quad _demoUnlock .quad _demoCheckReservedLock .quad _demoFileControl .quad _demoSectorSize .quad _demoDeviceCharacteristics .quad 0 .quad 0 .quad 0 .quad 0 .quad 0 .quad 0 .section __TEXT,__cstring,cstring_literals L___func__.demoWrite: ## @__func__.demoWrite .asciz "demoWrite" L_.str.1: ## @.str.1 .asciz "76841.c" L_.str.2: ## @.str.2 .asciz "p->nBuffer==0 || p->iBufferOfst+p->nBuffer==i" L_.str.3: ## @.str.3 .asciz "%s" L___func__.demoAccess: ## @__func__.demoAccess .asciz "demoAccess" L_.str.4: ## @.str.4 .asciz "flags==SQLITE_ACCESS_EXISTS || flags==SQLITE_ACCESS_READ || flags==SQLITE_ACCESS_READWRITE" L_.str.5: ## @.str.5 .asciz "%s/%s" L_.str.6: ## @.str.6 .asciz "Loadable extensions are not supported" .subsections_via_symbols
the_stack_data/76841.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _f ; -- Begin function f .p2align 2 _f: ; @f .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 ldr x8, [sp, #8] ldr w8, [x8] str w8, [sp, #4] mov w0, #0 add sp, sp, #16 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _f ## -- Begin function f .p2align 4, 0x90 _f: ## @f .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq -8(%rbp), %rax movl (%rax), %eax movl %eax, -12(%rbp) xorl %eax, %eax popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/39545.c