arm
stringlengths
122
20M
x86
stringlengths
122
20M
filename
stringlengths
18
26
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _merge ; -- Begin function merge .p2align 2 _merge: ; @merge .cfi_startproc ; %bb.0: sub sp, sp, #80 .cfi_def_cfa_offset 80 stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp, #64 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] stur w1, [x29, #-12] stur w2, [x29, #-16] ldursw x8, [x29, #-12] lsl x0, x8, #2 bl _malloc str x0, [sp, #24] stur wzr, [x29, #-20] ldur w8, [x29, #-16] stur w8, [x29, #-24] stur wzr, [x29, #-28] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-28] ldur w9, [x29, #-12] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_13 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-24] ldur w9, [x29, #-12] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldur x8, [x29, #-8] ldursw x9, [x29, #-20] mov x10, x9 add w10, w10, #1 stur w10, [x29, #-20] ldr w8, [x8, x9, lsl #2] str w8, [sp, #20] ; 4-byte Folded Spill b LBB0_11 LBB0_4: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-20] ldur w9, [x29, #-16] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_1 Depth=1 ldur x8, [x29, #-8] ldursw x9, [x29, #-24] mov x10, x9 add w10, w10, #1 stur w10, [x29, #-24] ldr w8, [x8, x9, lsl #2] str w8, [sp, #16] ; 4-byte Folded Spill b LBB0_10 LBB0_6: ; in Loop: Header=BB0_1 Depth=1 ldur x8, [x29, #-8] ldursw x9, [x29, #-24] ldr w8, [x8, x9, lsl #2] ldur x9, [x29, #-8] ldursw x10, [x29, #-20] ldr w9, [x9, x10, lsl #2] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_8 b LBB0_7 LBB0_7: ; in Loop: Header=BB0_1 Depth=1 ldur x8, [x29, #-8] ldursw x9, [x29, #-24] mov x10, x9 add w10, w10, #1 stur w10, [x29, #-24] ldr w8, [x8, x9, lsl #2] str w8, [sp, #12] ; 4-byte Folded Spill b LBB0_9 LBB0_8: ; in Loop: Header=BB0_1 Depth=1 ldur x8, [x29, #-8] ldursw x9, [x29, #-20] mov x10, x9 add w10, w10, #1 stur w10, [x29, #-20] ldr w8, [x8, x9, lsl #2] str w8, [sp, #12] ; 4-byte Folded Spill b LBB0_9 LBB0_9: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #12] ; 4-byte Folded Reload str w8, [sp, #16] ; 4-byte Folded Spill b LBB0_10 LBB0_10: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #16] ; 4-byte Folded Reload str w8, [sp, #20] ; 4-byte Folded Spill b LBB0_11 LBB0_11: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #20] ; 4-byte Folded Reload ldr x9, [sp, #24] ldursw x10, [x29, #-28] str w8, [x9, x10, lsl #2] b LBB0_12 LBB0_12: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-28] add w8, w8, #1 stur w8, [x29, #-28] b LBB0_1 LBB0_13: stur wzr, [x29, #-20] b LBB0_14 LBB0_14: ; =>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_17 b LBB0_15 LBB0_15: ; in Loop: Header=BB0_14 Depth=1 ldr x8, [sp, #24] ldursw x9, [x29, #-20] ldr w8, [x8, x9, lsl #2] ldur x9, [x29, #-8] ldursw x10, [x29, #-20] str w8, [x9, x10, lsl #2] b LBB0_16 LBB0_16: ; in Loop: Header=BB0_14 Depth=1 ldur w8, [x29, #-20] add w8, w8, #1 stur w8, [x29, #-20] b LBB0_14 LBB0_17: ldr x0, [sp, #24] bl _free ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .globl _sort ; -- Begin function sort .p2align 2 _sort: ; @sort .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #16] str w1, [sp, #12] ldr w8, [sp, #12] subs w8, w8, #2 cset w8, ge tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: ldr x8, [sp, #16] stur x8, [x29, #-8] b LBB1_3 LBB1_2: ldr w8, [sp, #12] mov w9, #2 sdiv w8, w8, w9 str w8, [sp, #8] ldr x0, [sp, #16] ldr w1, [sp, #8] bl _sort ldr x8, [sp, #16] ldrsw x9, [sp, #8] add x0, x8, x9, lsl #2 ldr w8, [sp, #12] ldr w9, [sp, #8] subs w1, w8, w9 bl _sort ldr x0, [sp, #16] ldr w1, [sp, #12] ldr w2, [sp, #8] bl _merge ldr x8, [sp, #16] stur x8, [x29, #-8] b LBB1_3 LBB1_3: ldur x0, [x29, #-8] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .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 $64, %rsp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) movl %edx, -16(%rbp) movslq -12(%rbp), %rdi shlq $2, %rdi callq _malloc movq %rax, -40(%rbp) movl $0, -20(%rbp) movl -16(%rbp), %eax movl %eax, -24(%rbp) movl $0, -28(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movl -28(%rbp), %eax cmpl -12(%rbp), %eax jge LBB0_13 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl -24(%rbp), %eax cmpl -12(%rbp), %eax jne LBB0_4 ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movq -8(%rbp), %rax movl -20(%rbp), %ecx movl %ecx, %edx addl $1, %edx movl %edx, -20(%rbp) movslq %ecx, %rcx movl (%rax,%rcx,4), %eax movl %eax, -44(%rbp) ## 4-byte Spill jmp LBB0_11 LBB0_4: ## in Loop: Header=BB0_1 Depth=1 movl -20(%rbp), %eax cmpl -16(%rbp), %eax jne LBB0_6 ## %bb.5: ## in Loop: Header=BB0_1 Depth=1 movq -8(%rbp), %rax movl -24(%rbp), %ecx movl %ecx, %edx addl $1, %edx movl %edx, -24(%rbp) movslq %ecx, %rcx movl (%rax,%rcx,4), %eax movl %eax, -48(%rbp) ## 4-byte Spill jmp LBB0_10 LBB0_6: ## in Loop: Header=BB0_1 Depth=1 movq -8(%rbp), %rax movslq -24(%rbp), %rcx movl (%rax,%rcx,4), %eax movq -8(%rbp), %rcx movslq -20(%rbp), %rdx cmpl (%rcx,%rdx,4), %eax jge LBB0_8 ## %bb.7: ## in Loop: Header=BB0_1 Depth=1 movq -8(%rbp), %rax movl -24(%rbp), %ecx movl %ecx, %edx addl $1, %edx movl %edx, -24(%rbp) movslq %ecx, %rcx movl (%rax,%rcx,4), %eax movl %eax, -52(%rbp) ## 4-byte Spill jmp LBB0_9 LBB0_8: ## in Loop: Header=BB0_1 Depth=1 movq -8(%rbp), %rax movl -20(%rbp), %ecx movl %ecx, %edx addl $1, %edx movl %edx, -20(%rbp) movslq %ecx, %rcx movl (%rax,%rcx,4), %eax movl %eax, -52(%rbp) ## 4-byte Spill LBB0_9: ## in Loop: Header=BB0_1 Depth=1 movl -52(%rbp), %eax ## 4-byte Reload movl %eax, -48(%rbp) ## 4-byte Spill LBB0_10: ## in Loop: Header=BB0_1 Depth=1 movl -48(%rbp), %eax ## 4-byte Reload movl %eax, -44(%rbp) ## 4-byte Spill LBB0_11: ## in Loop: Header=BB0_1 Depth=1 movl -44(%rbp), %edx ## 4-byte Reload movq -40(%rbp), %rax movslq -28(%rbp), %rcx movl %edx, (%rax,%rcx,4) ## %bb.12: ## in Loop: Header=BB0_1 Depth=1 movl -28(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) jmp LBB0_1 LBB0_13: movl $0, -20(%rbp) LBB0_14: ## =>This Inner Loop Header: Depth=1 movl -20(%rbp), %eax cmpl -12(%rbp), %eax jge LBB0_17 ## %bb.15: ## in Loop: Header=BB0_14 Depth=1 movq -40(%rbp), %rax movslq -20(%rbp), %rcx movl (%rax,%rcx,4), %edx movq -8(%rbp), %rax movslq -20(%rbp), %rcx movl %edx, (%rax,%rcx,4) ## %bb.16: ## in Loop: Header=BB0_14 Depth=1 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB0_14 LBB0_17: movq -40(%rbp), %rdi callq _free addq $64, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _sort ## -- Begin function sort .p2align 4, 0x90 _sort: ## @sort .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -16(%rbp) movl %esi, -20(%rbp) cmpl $2, -20(%rbp) jge LBB1_2 ## %bb.1: movq -16(%rbp), %rax movq %rax, -8(%rbp) jmp LBB1_3 LBB1_2: movl -20(%rbp), %eax movl $2, %ecx cltd idivl %ecx movl %eax, -24(%rbp) movq -16(%rbp), %rdi movl -24(%rbp), %esi callq _sort movq -16(%rbp), %rdi movslq -24(%rbp), %rax shlq $2, %rax addq %rax, %rdi movl -20(%rbp), %esi subl -24(%rbp), %esi callq _sort movq -16(%rbp), %rdi movl -20(%rbp), %esi movl -24(%rbp), %edx callq _merge movq -16(%rbp), %rax movq %rax, -8(%rbp) LBB1_3: movq -8(%rbp), %rax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/40762674.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _ctermid ; -- Begin function ctermid .p2align 2 _ctermid: ; @ctermid .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #8] ldr x8, [sp, #8] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: adrp x8, _ctermid.buf@PAGE add x8, x8, _ctermid.buf@PAGEOFF str x8, [sp, #8] b LBB0_2 LBB0_2: ldr x0, [sp, #8] adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF mov x2, #1024 mov x3, #-1 bl ___strncpy_chk 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,_ctermid.buf,1024,0 ; @ctermid.buf .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "/dev/cons" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _ctermid ## -- Begin function ctermid .p2align 4, 0x90 _ctermid: ## @ctermid .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) cmpq $0, -8(%rbp) jne LBB0_2 ## %bb.1: leaq _ctermid.buf(%rip), %rax movq %rax, -8(%rbp) LBB0_2: movq -8(%rbp), %rdi leaq L_.str(%rip), %rsi movl $1024, %edx ## imm = 0x400 movq $-1, %rcx callq ___strncpy_chk movq -8(%rbp), %rax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .zerofill __DATA,__bss,_ctermid.buf,1024,4 ## @ctermid.buf .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "/dev/cons" .subsections_via_symbols
the_stack_data/35719.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, #5 stur w8, [x29, #-8] mov w8, #6 stur w8, [x29, #-12] mov w8, #1 str w8, [sp, #16] b LBB0_1 LBB0_1: ; =>This Loop Header: Depth=1 ; Child Loop BB0_3 Depth 2 ldr w8, [sp, #16] ldur w9, [x29, #-12] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_11 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 mov w8, #1 str w8, [sp, #12] b LBB0_3 LBB0_3: ; Parent Loop BB0_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #12] ldur w9, [x29, #-8] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_9 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_3 Depth=2 ldr w8, [sp, #12] ldr w9, [sp, #16] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_3 Depth=2 adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf b LBB0_7 LBB0_6: ; in Loop: Header=BB0_3 Depth=2 adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf b LBB0_7 LBB0_7: ; in Loop: Header=BB0_3 Depth=2 b LBB0_8 LBB0_8: ; in Loop: Header=BB0_3 Depth=2 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB0_3 LBB0_9: ; in Loop: Header=BB0_1 Depth=1 adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf b LBB0_10 LBB0_10: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #16] add w8, w8, #1 str w8, [sp, #16] 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 "0" l_.str.1: ; @.str.1 .asciz "X" 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 $32, %rsp movl $0, -4(%rbp) movl $5, -8(%rbp) movl $6, -12(%rbp) movl $1, -16(%rbp) LBB0_1: ## =>This Loop Header: Depth=1 ## Child Loop BB0_3 Depth 2 movl -16(%rbp), %eax cmpl -12(%rbp), %eax jg LBB0_11 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl $1, -20(%rbp) LBB0_3: ## Parent Loop BB0_1 Depth=1 ## => This Inner Loop Header: Depth=2 movl -20(%rbp), %eax cmpl -8(%rbp), %eax jg LBB0_9 ## %bb.4: ## in Loop: Header=BB0_3 Depth=2 movl -20(%rbp), %eax cmpl -16(%rbp), %eax jge LBB0_6 ## %bb.5: ## in Loop: Header=BB0_3 Depth=2 leaq L_.str(%rip), %rdi movb $0, %al callq _printf jmp LBB0_7 LBB0_6: ## in Loop: Header=BB0_3 Depth=2 leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf LBB0_7: ## in Loop: Header=BB0_3 Depth=2 jmp LBB0_8 LBB0_8: ## in Loop: Header=BB0_3 Depth=2 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB0_3 LBB0_9: ## in Loop: Header=BB0_1 Depth=1 leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf ## %bb.10: ## in Loop: Header=BB0_1 Depth=1 movl -16(%rbp), %eax addl $1, %eax movl %eax, -16(%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 "0" L_.str.1: ## @.str.1 .asciz "X" L_.str.2: ## @.str.2 .asciz "\n" .subsections_via_symbols
the_stack_data/98816.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str wzr, [sp, #12] mov w0, #1 add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _One ; -- Begin function One .p2align 2 _One: ; @One .cfi_startproc ; %bb.0: mov w0, #1 ret .cfi_endproc ; -- End function .globl _Two ; -- Begin function Two .p2align 2 _Two: ; @Two .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 ldrb w8, [sp, #11] sxtb w8, w8 scvtf s0, 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 _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 $1, %eax popq %rbp retq .cfi_endproc ## -- End function .globl _One ## -- Begin function One .p2align 4, 0x90 _One: ## @One .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl $1, %eax popq %rbp retq .cfi_endproc ## -- End function .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 movsbl -5(%rbp), %eax ## kill: def $cl killed $al cvtsi2ss %eax, %xmm0 popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/184516856.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, #24] str w0, [sp, #20] str x1, [sp, #8] str wzr, [sp, #4] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #4] add w8, w8, #1 str w8, [sp, #4] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_5 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 mov w8, #65 sturb w8, [x29, #-9] ldr w8, [sp, #4] subs w8, w8, #9 cset w8, lt tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: b LBB0_5 LBB0_4: ; in Loop: Header=BB0_1 Depth=1 b LBB0_1 LBB0_5: ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_7 b LBB0_6 LBB0_6: bl ___stack_chk_fail LBB0_7: mov w0, #0 ldp x29, x30, [sp, #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 _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -24(%rbp) movl %edi, -28(%rbp) movq %rsi, -40(%rbp) movl $0, -44(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movl -44(%rbp), %eax addl $1, %eax movl %eax, -44(%rbp) cmpl $0, %eax je LBB0_5 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movb $65, -9(%rbp) cmpl $9, -44(%rbp) jl LBB0_4 ## %bb.3: jmp LBB0_5 LBB0_4: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_1 LBB0_5: movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_7 ## %bb.6: xorl %eax, %eax addq $48, %rsp popq %rbp retq LBB0_7: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/1190284.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/61495.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] str wzr, [sp, #8] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #8] subs w8, w8, #26 cset w8, ge tbnz w8, #0, LBB0_4 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #8] add w0, w8, #97 adrp x8, ___stdinp@GOTPAGE ldr x8, [x8, ___stdinp@GOTPAGEOFF] ldr x1, [x8] bl _ungetc bl _getchar bl _putchar 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: mov w0, #10 bl _putchar 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 _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) movl $0, -8(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 cmpl $26, -8(%rbp) jge LBB0_4 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl -8(%rbp), %edi addl $97, %edi movq ___stdinp@GOTPCREL(%rip), %rax movq (%rax), %rsi callq _ungetc callq _getchar movl %eax, %edi callq _putchar ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) jmp LBB0_1 LBB0_4: movl $10, %edi callq _putchar movl -4(%rbp), %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/64248.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 w0, #0 stur wzr, [x29, #-4] adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF bl _setlocale stur wzr, [x29, #-8] stur wzr, [x29, #-12] mov w8, #1 str w8, [sp, #16] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #16] subs w8, w8, #5 cset w8, gt tbnz w8, #0, LBB0_9 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf mov x9, sp add x8, sp, #12 str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _scanf ldr w8, [sp, #12] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-12] add w8, w8, #1 stur w8, [x29, #-12] b LBB0_8 LBB0_4: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #12] subs w8, w8, #0 cset w8, ge tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-8] add w8, w8, #1 stur w8, [x29, #-8] b LBB0_7 LBB0_6: ; in Loop: Header=BB0_1 Depth=1 adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf b LBB0_7 LBB0_7: ; in Loop: Header=BB0_1 Depth=1 b LBB0_8 LBB0_8: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #16] add w8, w8, #1 str w8, [sp, #16] b LBB0_1 LBB0_9: 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 ldur w9, [x29, #-8] ; 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 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 "Portuguese" l_.str.1: ; @.str.1 .asciz "Digite um valor : \n" l_.str.2: ; @.str.2 .asciz "%i" l_.str.3: ; @.str.3 .asciz "Numero nulo" l_.str.4: ; @.str.4 .asciz "Numeros Positivos %i\n" l_.str.5: ; @.str.5 .asciz "Numeros Negativos %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) xorl %edi, %edi leaq L_.str(%rip), %rsi callq _setlocale movl $0, -8(%rbp) movl $0, -12(%rbp) movl $1, -16(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 cmpl $5, -16(%rbp) jg LBB0_9 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf leaq L_.str.2(%rip), %rdi leaq -20(%rbp), %rsi movb $0, %al callq _scanf cmpl $0, -20(%rbp) jle LBB0_4 ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB0_8 LBB0_4: ## in Loop: Header=BB0_1 Depth=1 cmpl $0, -20(%rbp) jge LBB0_6 ## %bb.5: ## in Loop: Header=BB0_1 Depth=1 movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) jmp LBB0_7 LBB0_6: ## in Loop: Header=BB0_1 Depth=1 leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf LBB0_7: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_8 LBB0_8: ## in Loop: Header=BB0_1 Depth=1 movl -16(%rbp), %eax addl $1, %eax movl %eax, -16(%rbp) jmp LBB0_1 LBB0_9: movl -12(%rbp), %esi leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf movl -8(%rbp), %esi leaq L_.str.5(%rip), %rdi movb $0, %al callq _printf movl -4(%rbp), %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Portuguese" L_.str.1: ## @.str.1 .asciz "Digite um valor : \n" L_.str.2: ## @.str.2 .asciz "%i" L_.str.3: ## @.str.3 .asciz "Numero nulo" L_.str.4: ## @.str.4 .asciz "Numeros Positivos %i\n" L_.str.5: ## @.str.5 .asciz "Numeros Negativos %i" .subsections_via_symbols
the_stack_data/125962.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str wzr, [sp, #28] mov x8, #56 str x8, [sp, #16] mov x8, #55 str x8, [sp, #8] str wzr, [sp, #4] ldr x9, [sp, #8] mov w8, #1 strb w8, [x9] b LBB0_1 LBB0_1: ; =>This Loop Header: Depth=1 ; Child Loop BB0_2 Depth 2 str wzr, [sp, #4] b LBB0_2 LBB0_2: ; Parent Loop BB0_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #4] mov w9, #20000 subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_5 b LBB0_3 LBB0_3: ; in Loop: Header=BB0_2 Depth=2 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_2 Depth=2 ldr w8, [sp, #4] add w8, w8, #1 str w8, [sp, #4] b LBB0_2 LBB0_5: ; in Loop: Header=BB0_1 Depth=1 ldr x9, [sp, #16] ldrsb w8, [x9] eor w8, w8, #0x1 strb w8, [x9] b LBB0_1 .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 $56, %eax movq %rax, -16(%rbp) movl $55, %eax movq %rax, -24(%rbp) movl $0, -28(%rbp) movq -24(%rbp), %rax movb $1, (%rax) LBB0_1: ## =>This Loop Header: Depth=1 ## Child Loop BB0_2 Depth 2 movl $0, -28(%rbp) LBB0_2: ## Parent Loop BB0_1 Depth=1 ## => This Inner Loop Header: Depth=2 movl -28(%rbp), %eax cmpl $20000, %eax ## imm = 0x4E20 jge LBB0_5 ## %bb.3: ## in Loop: Header=BB0_2 Depth=2 jmp LBB0_4 LBB0_4: ## in Loop: Header=BB0_2 Depth=2 movl -28(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) jmp LBB0_2 LBB0_5: ## in Loop: Header=BB0_1 Depth=1 movq -16(%rbp), %rax movsbl (%rax), %ecx xorl $1, %ecx ## kill: def $cl killed $cl killed $ecx movb %cl, (%rax) jmp LBB0_1 .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/482805.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/179830668.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _my_powf ; -- Begin function my_powf .p2align 2 _my_powf: ; @my_powf .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 stur s0, [x29, #-24] stur s1, [x29, #-28] b LBB0_1 LBB0_1: ldur s0, [x29, #-24] str s0, [sp, #136] ldr w8, [sp, #136] stur w8, [x29, #-116] b LBB0_2 LBB0_2: b LBB0_3 LBB0_3: ldur s0, [x29, #-28] str s0, [sp, #132] ldr w8, [sp, #132] stur w8, [x29, #-120] b LBB0_4 LBB0_4: ldur w8, [x29, #-116] and w8, w8, #0x7fffffff stur w8, [x29, #-124] ldur w8, [x29, #-120] and w8, w8, #0x7fffffff stur w8, [x29, #-128] ldur w8, [x29, #-128] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: fmov s0, #1.00000000 stur s0, [x29, #-20] b LBB0_148 LBB0_6: ldur w8, [x29, #-116] mov w9, #1065353216 subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_8 b LBB0_7 LBB0_7: fmov s0, #1.00000000 stur s0, [x29, #-20] b LBB0_148 LBB0_8: ldur w8, [x29, #-124] mov w9, #2139095040 subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_10 b LBB0_9 LBB0_9: ldur w8, [x29, #-128] mov w9, #2139095040 subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB0_11 b LBB0_10 LBB0_10: ldur s0, [x29, #-24] ldur s1, [x29, #-28] fadd s0, s0, s1 stur s0, [x29, #-20] b LBB0_148 LBB0_11: stur wzr, [x29, #-108] ldur w8, [x29, #-116] subs w8, w8, #0 cset w8, ge tbnz w8, #0, LBB0_20 b LBB0_12 LBB0_12: ldur w8, [x29, #-128] mov w9, #1266679808 subs w8, w8, w9 cset w8, lt tbnz w8, #0, LBB0_14 b LBB0_13 LBB0_13: mov w8, #2 stur w8, [x29, #-108] b LBB0_19 LBB0_14: ldur w8, [x29, #-128] mov w9, #1065353216 subs w8, w8, w9 cset w8, lt tbnz w8, #0, LBB0_18 b LBB0_15 LBB0_15: ldur w8, [x29, #-128] asr w8, w8, #23 subs w8, w8, #127 stur w8, [x29, #-104] ldur w8, [x29, #-128] ldur w10, [x29, #-104] mov w9, #23 subs w10, w9, w10 asr w8, w8, w10 stur w8, [x29, #-100] ldur w8, [x29, #-100] ldur w10, [x29, #-104] subs w9, w9, w10 lsl w8, w8, w9 ldur w9, [x29, #-128] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_17 b LBB0_16 LBB0_16: ldur w8, [x29, #-100] and w9, w8, #0x1 mov w8, #2 subs w8, w8, w9 stur w8, [x29, #-108] b LBB0_17 LBB0_17: b LBB0_18 LBB0_18: b LBB0_19 LBB0_19: b LBB0_20 LBB0_20: ldur w8, [x29, #-128] mov w9, #2139095040 subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_32 b LBB0_21 LBB0_21: ldur w8, [x29, #-124] mov w9, #1065353216 subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_23 b LBB0_22 LBB0_22: fmov s0, #1.00000000 stur s0, [x29, #-20] b LBB0_148 LBB0_23: ldur w8, [x29, #-124] mov w9, #1065353216 subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB0_28 b LBB0_24 LBB0_24: ldur w8, [x29, #-120] subs w8, w8, #0 cset w8, lt tbnz w8, #0, LBB0_26 b LBB0_25 LBB0_25: ldur s0, [x29, #-28] str s0, [sp, #24] ; 4-byte Folded Spill b LBB0_27 LBB0_26: movi d0, #0000000000000000 str s0, [sp, #24] ; 4-byte Folded Spill b LBB0_27 LBB0_27: ldr s0, [sp, #24] ; 4-byte Folded Reload stur s0, [x29, #-20] b LBB0_148 LBB0_28: ldur w8, [x29, #-120] subs w8, w8, #0 cset w8, lt tbnz w8, #0, LBB0_30 b LBB0_29 LBB0_29: movi d0, #0000000000000000 str s0, [sp, #20] ; 4-byte Folded Spill b LBB0_31 LBB0_30: ldur s0, [x29, #-28] fneg s0, s0 str s0, [sp, #20] ; 4-byte Folded Spill b LBB0_31 LBB0_31: ldr s0, [sp, #20] ; 4-byte Folded Reload stur s0, [x29, #-20] b LBB0_148 LBB0_32: ldur w8, [x29, #-128] mov w9, #1065353216 subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_37 b LBB0_33 LBB0_33: ldur w8, [x29, #-120] subs w8, w8, #0 cset w8, lt tbnz w8, #0, LBB0_35 b LBB0_34 LBB0_34: ldur s0, [x29, #-24] str s0, [sp, #16] ; 4-byte Folded Spill b LBB0_36 LBB0_35: ldur s1, [x29, #-24] fmov s0, #1.00000000 fdiv s0, s0, s1 str s0, [sp, #16] ; 4-byte Folded Spill b LBB0_36 LBB0_36: ldr s0, [sp, #16] ; 4-byte Folded Reload stur s0, [x29, #-20] b LBB0_148 LBB0_37: ldur w8, [x29, #-120] mov w9, #1073741824 subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_39 b LBB0_38 LBB0_38: ldur s0, [x29, #-24] ldur s1, [x29, #-24] fmul s0, s0, s1 stur s0, [x29, #-20] b LBB0_148 LBB0_39: ldur w8, [x29, #-120] mov w9, #1056964608 subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_43 b LBB0_40 LBB0_40: ldur w8, [x29, #-116] subs w8, w8, #0 cset w8, lt tbnz w8, #0, LBB0_42 b LBB0_41 LBB0_41: ldur s0, [x29, #-24] bl _my_sqrtf stur s0, [x29, #-20] b LBB0_148 LBB0_42: b LBB0_43 LBB0_43: ldur s0, [x29, #-24] bl _my_fabsf stur s0, [x29, #-36] ldur w8, [x29, #-124] mov w9, #2139095040 subs w8, w8, w9 cset w8, eq tbnz w8, #0, LBB0_46 b LBB0_44 LBB0_44: ldur w8, [x29, #-124] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_46 b LBB0_45 LBB0_45: ldur w8, [x29, #-124] mov w9, #1065353216 subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_56 b LBB0_46 LBB0_46: ldur s0, [x29, #-36] stur s0, [x29, #-32] ldur w8, [x29, #-120] subs w8, w8, #0 cset w8, ge tbnz w8, #0, LBB0_48 b LBB0_47 LBB0_47: ldur s1, [x29, #-32] fmov s0, #1.00000000 fdiv s0, s0, s1 stur s0, [x29, #-32] b LBB0_48 LBB0_48: ldur w8, [x29, #-116] subs w8, w8, #0 cset w8, ge tbnz w8, #0, LBB0_55 b LBB0_49 LBB0_49: ldur w8, [x29, #-124] mov w9, #1065353216 subs w8, w8, w9 ldur w9, [x29, #-108] orr w8, w8, w9 subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_51 b LBB0_50 LBB0_50: ldur s0, [x29, #-32] ldur s1, [x29, #-32] fsub s0, s0, s1 ldur s1, [x29, #-32] ldur s2, [x29, #-32] fsub s1, s1, s2 fdiv s0, s0, s1 stur s0, [x29, #-32] b LBB0_54 LBB0_51: ldur w8, [x29, #-108] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB0_53 b LBB0_52 LBB0_52: ldur s0, [x29, #-32] fneg s0, s0 stur s0, [x29, #-32] b LBB0_53 LBB0_53: b LBB0_54 LBB0_54: b LBB0_55 LBB0_55: ldur s0, [x29, #-32] stur s0, [x29, #-20] b LBB0_148 LBB0_56: fmov s0, #1.00000000 stur s0, [x29, #-76] ldur w8, [x29, #-116] subs w8, w8, #0 cset w8, ge tbnz w8, #0, LBB0_62 b LBB0_57 LBB0_57: ldur w8, [x29, #-108] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_59 b LBB0_58 LBB0_58: ldur s0, [x29, #-24] ldur s1, [x29, #-24] fsub s0, s0, s1 ldur s1, [x29, #-24] ldur s2, [x29, #-24] fsub s1, s1, s2 fdiv s0, s0, s1 stur s0, [x29, #-20] b LBB0_148 LBB0_59: ldur w8, [x29, #-108] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB0_61 b LBB0_60 LBB0_60: fmov s0, #-1.00000000 stur s0, [x29, #-76] b LBB0_61 LBB0_61: b LBB0_62 LBB0_62: ldur w8, [x29, #-128] mov w9, #1291845632 subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB0_78 b LBB0_63 LBB0_63: ldur w8, [x29, #-124] mov w9, #65528 movk w9, #16255, lsl #16 subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_68 b LBB0_64 LBB0_64: ldur w8, [x29, #-120] subs w8, w8, #0 cset w8, ge tbnz w8, #0, LBB0_66 b LBB0_65 LBB0_65: ldur s0, [x29, #-76] mov w8, #62154 movk w8, #29001, lsl #16 fmov s1, w8 fmul s0, s0, s1 fmul s0, s0, s1 str s0, [sp, #12] ; 4-byte Folded Spill b LBB0_67 LBB0_66: ldur s0, [x29, #-76] mov w8, #16992 movk w8, #3490, lsl #16 fmov s1, w8 fmul s0, s0, s1 fmul s0, s0, s1 str s0, [sp, #12] ; 4-byte Folded Spill b LBB0_67 LBB0_67: ldr s0, [sp, #12] ; 4-byte Folded Reload stur s0, [x29, #-20] b LBB0_148 LBB0_68: ldur w8, [x29, #-124] mov w9, #7 movk w9, #16256, lsl #16 subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB0_73 b LBB0_69 LBB0_69: ldur w8, [x29, #-120] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB0_71 b LBB0_70 LBB0_70: ldur s0, [x29, #-76] mov w8, #62154 movk w8, #29001, lsl #16 fmov s1, w8 fmul s0, s0, s1 fmul s0, s0, s1 str s0, [sp, #8] ; 4-byte Folded Spill b LBB0_72 LBB0_71: ldur s0, [x29, #-76] mov w8, #16992 movk w8, #3490, lsl #16 fmov s1, w8 fmul s0, s0, s1 fmul s0, s0, s1 str s0, [sp, #8] ; 4-byte Folded Spill b LBB0_72 LBB0_72: ldr s0, [sp, #8] ; 4-byte Folded Reload stur s0, [x29, #-20] b LBB0_148 LBB0_73: ldur s0, [x29, #-36] fmov s1, #1.00000000 fsub s0, s0, s1 stur s0, [x29, #-80] ldur s0, [x29, #-80] ldur s1, [x29, #-80] fmul s0, s0, s1 ldur s1, [x29, #-80] ldur s2, [x29, #-80] fmov s3, #0.25000000 mov w8, #43691 movk w8, #16042, lsl #16 fmov s4, w8 fmsub s2, s2, s3, s4 fmov s3, #0.50000000 fmsub s1, s1, s2, s3 fmul s0, s0, s1 stur s0, [x29, #-92] ldur s1, [x29, #-80] mov w8, #43520 movk w8, #16312, lsl #16 fmov s0, w8 fmul s0, s0, s1 stur s0, [x29, #-84] ldur s0, [x29, #-80] ldur s1, [x29, #-92] mov w8, #43579 movk w8, #16312, lsl #16 fmov s2, w8 fmul s2, s1, s2 mov w8, #42352 movk w8, #14060, lsl #16 fmov s1, w8 fnmsub s0, s0, s1, s2 stur s0, [x29, #-88] ldur s0, [x29, #-84] ldur s1, [x29, #-88] fadd s0, s0, s1 stur s0, [x29, #-60] b LBB0_74 LBB0_74: ldur s0, [x29, #-60] str s0, [sp, #128] ldr w8, [sp, #128] stur w8, [x29, #-132] b LBB0_75 LBB0_75: b LBB0_76 LBB0_76: ldur w8, [x29, #-132] and w8, w8, #0xfffff000 str w8, [sp, #124] ldr s0, [sp, #124] stur s0, [x29, #-60] b LBB0_77 LBB0_77: ldur s0, [x29, #-88] ldur s1, [x29, #-60] ldur s2, [x29, #-84] fsub s1, s1, s2 fsub s0, s0, s1 stur s0, [x29, #-64] b LBB0_109 LBB0_78: stur wzr, [x29, #-112] ldur w8, [x29, #-124] subs w8, w8, #2048, lsl #12 ; =8388608 cset w8, ge tbnz w8, #0, LBB0_82 b LBB0_79 LBB0_79: ldur s0, [x29, #-36] mov w8, #1266679808 fmov s1, w8 fmul s0, s0, s1 stur s0, [x29, #-36] ldur w8, [x29, #-112] subs w8, w8, #24 stur w8, [x29, #-112] b LBB0_80 LBB0_80: ldur s0, [x29, #-36] str s0, [sp, #100] ldr w8, [sp, #100] stur w8, [x29, #-124] b LBB0_81 LBB0_81: b LBB0_82 LBB0_82: ldur w8, [x29, #-124] asr w8, w8, #23 subs w9, w8, #127 ldur w8, [x29, #-112] add w8, w8, w9 stur w8, [x29, #-112] ldur w8, [x29, #-124] and w8, w8, #0x7fffff stur w8, [x29, #-100] ldur w8, [x29, #-100] orr w8, w8, #0x3f800000 stur w8, [x29, #-124] ldur w8, [x29, #-100] mov w9, #50289 movk w9, #28, lsl #16 subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_84 b LBB0_83 LBB0_83: stur wzr, [x29, #-104] b LBB0_88 LBB0_84: ldur w8, [x29, #-100] mov w9, #46039 movk w9, #93, lsl #16 subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_86 b LBB0_85 LBB0_85: mov w8, #1 stur w8, [x29, #-104] b LBB0_87 LBB0_86: stur wzr, [x29, #-104] ldur w8, [x29, #-112] add w8, w8, #1 stur w8, [x29, #-112] ldur w8, [x29, #-124] subs w8, w8, #2048, lsl #12 ; =8388608 stur w8, [x29, #-124] b LBB0_87 LBB0_87: b LBB0_88 LBB0_88: b LBB0_89 LBB0_89: ldur w8, [x29, #-124] str w8, [sp, #96] ldr s0, [sp, #96] stur s0, [x29, #-36] b LBB0_90 LBB0_90: ldur s0, [x29, #-36] ldursw x9, [x29, #-104] adrp x8, _bp@PAGE add x8, x8, _bp@PAGEOFF ldr s1, [x8, x9, lsl #2] fsub s0, s0, s1 stur s0, [x29, #-84] ldur s0, [x29, #-36] ldursw x9, [x29, #-104] ldr s1, [x8, x9, lsl #2] fadd s1, s0, s1 fmov s0, #1.00000000 fdiv s0, s0, s1 stur s0, [x29, #-88] ldur s0, [x29, #-84] ldur s1, [x29, #-88] fmul s0, s0, s1 stur s0, [x29, #-72] ldur s0, [x29, #-72] str s0, [sp, #116] b LBB0_91 LBB0_91: ldr s0, [sp, #116] str s0, [sp, #92] ldr w8, [sp, #92] stur w8, [x29, #-132] b LBB0_92 LBB0_92: b LBB0_93 LBB0_93: ldur w8, [x29, #-132] and w8, w8, #0xfffff000 str w8, [sp, #88] ldr s0, [sp, #88] str s0, [sp, #116] b LBB0_94 LBB0_94: ldur w8, [x29, #-124] asr w8, w8, #1 and w8, w8, #0xfffff000 orr w8, w8, #0x20000000 stur w8, [x29, #-132] b LBB0_95 LBB0_95: ldur w8, [x29, #-132] add w8, w8, #1024, lsl #12 ; =4194304 ldur w9, [x29, #-104] add w8, w8, w9, lsl #21 str w8, [sp, #84] ldr s0, [sp, #84] str s0, [sp, #108] b LBB0_96 LBB0_96: ldur s0, [x29, #-36] ldr s1, [sp, #108] ldursw x9, [x29, #-104] adrp x8, _bp@PAGE add x8, x8, _bp@PAGEOFF ldr s2, [x8, x9, lsl #2] fsub s1, s1, s2 fsub s0, s0, s1 str s0, [sp, #104] ldur s0, [x29, #-88] ldur s3, [x29, #-84] ldr s1, [sp, #116] ldr s2, [sp, #108] fmsub s3, s1, s2, s3 ldr s1, [sp, #116] ldr s2, [sp, #104] fmsub s1, s1, s2, s3 fmul s0, s0, s1 str s0, [sp, #112] ldur s0, [x29, #-72] ldur s1, [x29, #-72] fmul s0, s0, s1 str s0, [sp, #120] ldr s0, [sp, #120] ldr s1, [sp, #120] fmul s0, s0, s1 ldr s1, [sp, #120] ldr s2, [sp, #120] ldr s3, [sp, #120] ldr s4, [sp, #120] ldr s5, [sp, #120] mov w8, #12885 movk w8, #15980, lsl #16 fmov s7, w8 mov w8, #61762 movk w8, #15955, lsl #16 fmov s6, w8 fmadd s5, s5, s6, s7 mov w8, #41733 movk w8, #16011, lsl #16 fmov s6, w8 fmadd s4, s4, s5, s6 mov w8, #43691 movk w8, #16042, lsl #16 fmov s5, w8 fmadd s3, s3, s4, s5 mov w8, #28087 movk w8, #16091, lsl #16 fmov s4, w8 fmadd s2, s2, s3, s4 mov w8, #39322 movk w8, #16153, lsl #16 fmov s3, w8 fmadd s1, s1, s2, s3 fmul s0, s0, s1 stur s0, [x29, #-68] ldr s0, [sp, #112] ldr s1, [sp, #116] ldur s2, [x29, #-72] fadd s1, s1, s2 ldur s2, [x29, #-68] fmadd s0, s0, s1, s2 stur s0, [x29, #-68] ldr s0, [sp, #116] ldr s1, [sp, #116] fmul s0, s0, s1 str s0, [sp, #120] ldr s1, [sp, #120] fmov s0, #3.00000000 fadd s0, s0, s1 ldur s1, [x29, #-68] fadd s0, s0, s1 str s0, [sp, #108] b LBB0_97 LBB0_97: ldr s0, [sp, #108] str s0, [sp, #80] ldr w8, [sp, #80] stur w8, [x29, #-132] b LBB0_98 LBB0_98: b LBB0_99 LBB0_99: ldur w8, [x29, #-132] and w8, w8, #0xfffff000 str w8, [sp, #76] ldr s0, [sp, #76] str s0, [sp, #108] b LBB0_100 LBB0_100: ldur s0, [x29, #-68] ldr s1, [sp, #108] fmov s2, #3.00000000 fsub s1, s1, s2 ldr s2, [sp, #120] fsub s1, s1, s2 fsub s0, s0, s1 str s0, [sp, #104] ldr s0, [sp, #116] ldr s1, [sp, #108] fmul s0, s0, s1 stur s0, [x29, #-84] ldr s0, [sp, #112] ldr s1, [sp, #108] ldr s2, [sp, #104] ldur s3, [x29, #-72] fmul s2, s2, s3 fmadd s0, s0, s1, s2 stur s0, [x29, #-88] ldur s0, [x29, #-84] ldur s1, [x29, #-88] fadd s0, s0, s1 stur s0, [x29, #-48] b LBB0_101 LBB0_101: ldur s0, [x29, #-48] str s0, [sp, #72] ldr w8, [sp, #72] stur w8, [x29, #-132] b LBB0_102 LBB0_102: b LBB0_103 LBB0_103: ldur w8, [x29, #-132] and w8, w8, #0xfffff000 str w8, [sp, #68] ldr s0, [sp, #68] stur s0, [x29, #-48] b LBB0_104 LBB0_104: ldur s0, [x29, #-88] ldur s1, [x29, #-48] ldur s2, [x29, #-84] fsub s1, s1, s2 fsub s0, s0, s1 stur s0, [x29, #-52] ldur s1, [x29, #-48] mov w8, #16384 movk w8, #16246, lsl #16 fmov s0, w8 fmul s0, s0, s1 stur s0, [x29, #-40] ldur s1, [x29, #-48] ldur s0, [x29, #-52] mov w8, #14415 movk w8, #16246, lsl #16 fmov s2, w8 fmul s2, s0, s2 mov w8, #9158 movk w8, #47350, lsl #16 fmov s0, w8 fmadd s0, s0, s1, s2 ldursw x9, [x29, #-104] adrp x8, _dp_l@PAGE add x8, x8, _dp_l@PAGEOFF ldr s1, [x8, x9, lsl #2] fadd s0, s0, s1 stur s0, [x29, #-44] ldur s0, [x29, #-112] scvtf s0, s0 stur s0, [x29, #-80] ldur s0, [x29, #-40] ldur s1, [x29, #-44] fadd s0, s0, s1 ldursw x9, [x29, #-104] adrp x8, _dp_h@PAGE add x8, x8, _dp_h@PAGEOFF ldr s1, [x8, x9, lsl #2] fadd s0, s0, s1 ldur s1, [x29, #-80] fadd s0, s0, s1 stur s0, [x29, #-60] b LBB0_105 LBB0_105: ldur s0, [x29, #-60] str s0, [sp, #64] ldr w8, [sp, #64] stur w8, [x29, #-132] b LBB0_106 LBB0_106: b LBB0_107 LBB0_107: ldur w8, [x29, #-132] and w8, w8, #0xfffff000 str w8, [sp, #60] ldr s0, [sp, #60] stur s0, [x29, #-60] b LBB0_108 LBB0_108: ldur s0, [x29, #-44] ldur s1, [x29, #-60] ldur s2, [x29, #-80] fsub s1, s1, s2 ldursw x9, [x29, #-104] adrp x8, _dp_h@PAGE add x8, x8, _dp_h@PAGEOFF ldr s2, [x8, x9, lsl #2] fsub s1, s1, s2 ldur s2, [x29, #-40] fsub s1, s1, s2 fsub s0, s0, s1 stur s0, [x29, #-64] b LBB0_109 LBB0_109: b LBB0_110 LBB0_110: ldur s0, [x29, #-28] str s0, [sp, #56] ldr w8, [sp, #56] stur w8, [x29, #-132] b LBB0_111 LBB0_111: b LBB0_112 LBB0_112: ldur w8, [x29, #-132] and w8, w8, #0xfffff000 str w8, [sp, #52] ldr s0, [sp, #52] stur s0, [x29, #-56] b LBB0_113 LBB0_113: ldur s0, [x29, #-28] ldur s1, [x29, #-56] fsub s0, s0, s1 ldur s1, [x29, #-60] ldur s2, [x29, #-28] ldur s3, [x29, #-64] fmul s2, s2, s3 fmadd s0, s0, s1, s2 stur s0, [x29, #-52] ldur s0, [x29, #-56] ldur s1, [x29, #-60] fmul s0, s0, s1 stur s0, [x29, #-48] ldur s0, [x29, #-52] ldur s1, [x29, #-48] fadd s0, s0, s1 stur s0, [x29, #-32] b LBB0_114 LBB0_114: ldur s0, [x29, #-32] str s0, [sp, #48] ldr w8, [sp, #48] stur w8, [x29, #-100] b LBB0_115 LBB0_115: ldur w8, [x29, #-100] mov w9, #1124073472 subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB0_117 b LBB0_116 LBB0_116: ldur s0, [x29, #-76] mov w8, #62154 movk w8, #29001, lsl #16 fmov s1, w8 fmul s0, s0, s1 fmul s0, s0, s1 stur s0, [x29, #-20] b LBB0_148 LBB0_117: ldur w8, [x29, #-100] mov w9, #1124073472 subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_121 b LBB0_118 LBB0_118: ldur s0, [x29, #-52] mov w8, #43580 movk w8, #13112, lsl #16 fmov s1, w8 fadd s0, s0, s1 ldur s1, [x29, #-32] ldur s2, [x29, #-48] fsub s1, s1, s2 fcmp s0, s1 cset w8, le tbnz w8, #0, LBB0_120 b LBB0_119 LBB0_119: ldur s0, [x29, #-76] mov w8, #62154 movk w8, #29001, lsl #16 fmov s1, w8 fmul s0, s0, s1 fmul s0, s0, s1 stur s0, [x29, #-20] b LBB0_148 LBB0_120: b LBB0_129 LBB0_121: ldur w8, [x29, #-100] and w8, w8, #0x7fffffff mov w9, #1125515264 subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB0_123 b LBB0_122 LBB0_122: ldur s0, [x29, #-76] mov w8, #16992 movk w8, #3490, lsl #16 fmov s1, w8 fmul s0, s0, s1 fmul s0, s0, s1 stur s0, [x29, #-20] b LBB0_148 LBB0_123: ldur w8, [x29, #-100] mov w9, #-1021968384 subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_127 b LBB0_124 LBB0_124: ldur s0, [x29, #-52] ldur s1, [x29, #-32] ldur s2, [x29, #-48] fsub s1, s1, s2 fcmp s0, s1 cset w8, hi tbnz w8, #0, LBB0_126 b LBB0_125 LBB0_125: ldur s0, [x29, #-76] mov w8, #16992 movk w8, #3490, lsl #16 fmov s1, w8 fmul s0, s0, s1 fmul s0, s0, s1 stur s0, [x29, #-20] b LBB0_148 LBB0_126: b LBB0_127 LBB0_127: b LBB0_128 LBB0_128: b LBB0_129 LBB0_129: b LBB0_130 LBB0_130: ldur w8, [x29, #-100] and w8, w8, #0x7fffffff stur w8, [x29, #-96] ldur w8, [x29, #-96] asr w8, w8, #23 subs w8, w8, #127 stur w8, [x29, #-104] stur wzr, [x29, #-112] ldur w8, [x29, #-96] mov w9, #1056964608 subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB0_136 b LBB0_131 LBB0_131: ldur w8, [x29, #-100] ldur w9, [x29, #-104] add w10, w9, #1 mov w9, #8388608 asr w9, w9, w10 add w8, w8, w9 stur w8, [x29, #-112] ldur w8, [x29, #-112] and w8, w8, #0x7fffffff asr w8, w8, #23 subs w8, w8, #127 stur w8, [x29, #-104] b LBB0_132 LBB0_132: ldur w8, [x29, #-112] ldur w10, [x29, #-104] mov w9, #8388607 asr w9, w9, w10 bic w8, w8, w9 str w8, [sp, #44] ldr s0, [sp, #44] stur s0, [x29, #-80] b LBB0_133 LBB0_133: ldur w8, [x29, #-112] and w8, w8, #0x7fffff orr w8, w8, #0x800000 ldur w10, [x29, #-104] mov w9, #23 subs w9, w9, w10 asr w8, w8, w9 stur w8, [x29, #-112] ldur w8, [x29, #-100] subs w8, w8, #0 cset w8, ge tbnz w8, #0, LBB0_135 b LBB0_134 LBB0_134: ldur w9, [x29, #-112] mov w8, #0 subs w8, w8, w9 stur w8, [x29, #-112] b LBB0_135 LBB0_135: ldur s1, [x29, #-80] ldur s0, [x29, #-48] fsub s0, s0, s1 stur s0, [x29, #-48] b LBB0_136 LBB0_136: ldur s0, [x29, #-52] ldur s1, [x29, #-48] fadd s0, s0, s1 stur s0, [x29, #-80] b LBB0_137 LBB0_137: ldur s0, [x29, #-80] str s0, [sp, #40] ldr w8, [sp, #40] stur w8, [x29, #-132] b LBB0_138 LBB0_138: b LBB0_139 LBB0_139: ldur w8, [x29, #-132] and w8, w8, #0xffff8000 str w8, [sp, #36] ldr s0, [sp, #36] stur s0, [x29, #-80] b LBB0_140 LBB0_140: ldur s0, [x29, #-80] mov w8, #29184 movk w8, #16177, lsl #16 fmov s1, w8 fmul s0, s0, s1 stur s0, [x29, #-84] ldur s0, [x29, #-52] ldur s1, [x29, #-80] ldur s2, [x29, #-48] fsub s1, s1, s2 fsub s0, s0, s1 ldur s1, [x29, #-80] mov w8, #48780 movk w8, #13759, lsl #16 fmov s2, w8 fmul s2, s1, s2 mov w8, #29208 movk w8, #16177, lsl #16 fmov s1, w8 fmadd s0, s0, s1, s2 stur s0, [x29, #-88] ldur s0, [x29, #-84] ldur s1, [x29, #-88] fadd s0, s0, s1 stur s0, [x29, #-32] ldur s0, [x29, #-88] ldur s1, [x29, #-32] ldur s2, [x29, #-84] fsub s1, s1, s2 fsub s0, s0, s1 stur s0, [x29, #-92] ldur s0, [x29, #-32] ldur s1, [x29, #-32] fmul s0, s0, s1 stur s0, [x29, #-80] ldur s2, [x29, #-32] ldur s0, [x29, #-80] ldur s1, [x29, #-80] ldur s3, [x29, #-80] ldur s4, [x29, #-80] ldur s5, [x29, #-80] mov w8, #59918 movk w8, #46557, lsl #16 fmov s7, w8 mov w8, #47948 movk w8, #13105, lsl #16 fmov s6, w8 fmadd s5, s5, s6, s7 mov w8, #45909 movk w8, #14474, lsl #16 fmov s6, w8 fmadd s4, s4, s5, s6 mov w8, #2913 movk w8, #47926, lsl #16 fmov s5, w8 fmadd s3, s3, s4, s5 mov w8, #43691 movk w8, #15914, lsl #16 fmov s4, w8 fmadd s1, s1, s3, s4 fmsub s0, s0, s1, s2 stur s0, [x29, #-60] ldur s0, [x29, #-32] ldur s1, [x29, #-60] fmul s0, s0, s1 ldur s1, [x29, #-60] fmov s2, #2.00000000 fsub s1, s1, s2 fdiv s0, s0, s1 ldur s3, [x29, #-92] ldur s1, [x29, #-32] ldur s2, [x29, #-92] fmadd s1, s1, s2, s3 fsub s0, s0, s1 stur s0, [x29, #-68] ldur s0, [x29, #-68] ldur s1, [x29, #-32] fsub s1, s0, s1 fmov s0, #1.00000000 fsub s0, s0, s1 stur s0, [x29, #-32] b LBB0_141 LBB0_141: ldur s0, [x29, #-32] str s0, [sp, #32] ldr w8, [sp, #32] stur w8, [x29, #-100] b LBB0_142 LBB0_142: ldur w9, [x29, #-112] ldur w8, [x29, #-100] add w8, w8, w9, lsl #23 stur w8, [x29, #-100] ldur w8, [x29, #-100] asr w8, w8, #23 subs w8, w8, #0 cset w8, gt tbnz w8, #0, LBB0_144 b LBB0_143 LBB0_143: ldur s0, [x29, #-32] ldur w0, [x29, #-112] bl _my_scalbnf stur s0, [x29, #-32] b LBB0_147 LBB0_144: b LBB0_145 LBB0_145: ldur w8, [x29, #-100] str w8, [sp, #28] ldr s0, [sp, #28] stur s0, [x29, #-32] b LBB0_146 LBB0_146: b LBB0_147 LBB0_147: ldur s0, [x29, #-76] ldur s1, [x29, #-32] fmul s0, s0, s1 stur s0, [x29, #-20] b LBB0_148 LBB0_148: ldur s0, [x29, #-20] ldp x29, x30, [sp, #272] ; 16-byte Folded Reload ldp x28, x27, [sp, #256] ; 16-byte Folded Reload add sp, sp, #288 ret .cfi_endproc ; -- End function .section __TEXT,__const .p2align 2 ; @bp _bp: .long 0x3f800000 ; float 1 .long 0x3fc00000 ; float 1.5 .p2align 2 ; @dp_l _dp_l: .long 0x00000000 ; float 0 .long 0x35d1cfdc ; float 1.56322085E-6 .p2align 2 ; @dp_h _dp_h: .long 0x00000000 ; float 0 .long 0x3f15c000 ; float 0.584960938 .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 my_powf LCPI0_0: .long 0x3f800000 ## float 1 LCPI0_1: .long 0xbf800000 ## float -1 LCPI0_2: .long 0x4b800000 ## float 16777216 LCPI0_3: .long 0x40400000 ## float 3 LCPI0_4: .long 0x3f19999a ## float 0.600000024 LCPI0_5: .long 0x3edb6db7 ## float 0.428571433 LCPI0_6: .long 0x3eaaaaab ## float 0.333333343 LCPI0_7: .long 0x3e8ba305 ## float 0.272728115 LCPI0_8: .long 0x3e53f142 ## float 0.206975013 LCPI0_9: .long 0x3e6c3255 ## float 0.230660751 LCPI0_10: .long 0xb8f623c6 ## float -1.17368574E-4 LCPI0_11: .long 0x3f76384f ## float 0.9617967 LCPI0_12: .long 0x3f764000 ## float 0.961914062 LCPI0_13: .long 0x36eca570 ## float 7.05260754E-6 LCPI0_14: .long 0x3fb8aa3b ## float 1.44269502 LCPI0_15: .long 0x3fb8aa00 ## float 1.44268799 LCPI0_16: .long 0x3f000000 ## float 0.5 LCPI0_17: .long 0x3e800000 ## float 0.25 LCPI0_18: .long 0x0da24260 ## float 1.0E-30 LCPI0_19: .long 0x3338aa3c ## float 4.29956657E-8 LCPI0_20: .long 0x40000000 ## float 2 LCPI0_21: .long 0x3e2aaaab ## float 0.166666672 LCPI0_22: .long 0xbb360b61 ## float -0.00277777785 LCPI0_23: .long 0x388ab355 ## float 6.61375597E-5 LCPI0_24: .long 0x3331bb4c ## float 4.13813694E-8 LCPI0_25: .long 0xb5ddea0e ## float -1.6533902E-6 LCPI0_26: .long 0x3f317218 ## float 0.693147182 LCPI0_27: .long 0x35bfbe8c ## float 1.42860654E-6 LCPI0_28: .long 0x3f317200 ## float 0.693145751 LCPI0_29: .long 0x7149f2ca ## float 1.00000002E+30 .section __TEXT,__text,regular,pure_instructions .globl _my_powf .p2align 4, 0x90 _my_powf: ## @my_powf .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 movss %xmm0, -8(%rbp) movss %xmm1, -12(%rbp) ## %bb.1: movss -8(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, -120(%rbp) movl -120(%rbp), %eax movl %eax, -100(%rbp) ## %bb.2: jmp LBB0_3 LBB0_3: movss -12(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, -128(%rbp) movl -128(%rbp), %eax movl %eax, -104(%rbp) ## %bb.4: movl -100(%rbp), %eax andl $2147483647, %eax ## imm = 0x7FFFFFFF movl %eax, -108(%rbp) movl -104(%rbp), %eax andl $2147483647, %eax ## imm = 0x7FFFFFFF movl %eax, -112(%rbp) cmpl $0, -112(%rbp) jne LBB0_6 ## %bb.5: movss LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, -4(%rbp) jmp LBB0_148 LBB0_6: cmpl $1065353216, -100(%rbp) ## imm = 0x3F800000 jne LBB0_8 ## %bb.7: movss LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, -4(%rbp) jmp LBB0_148 LBB0_8: cmpl $2139095040, -108(%rbp) ## imm = 0x7F800000 jg LBB0_10 ## %bb.9: cmpl $2139095040, -112(%rbp) ## imm = 0x7F800000 jle LBB0_11 LBB0_10: movss -8(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero addss -12(%rbp), %xmm0 movss %xmm0, -4(%rbp) jmp LBB0_148 LBB0_11: movl $0, -92(%rbp) cmpl $0, -100(%rbp) jge LBB0_20 ## %bb.12: cmpl $1266679808, -112(%rbp) ## imm = 0x4B800000 jl LBB0_14 ## %bb.13: movl $2, -92(%rbp) jmp LBB0_19 LBB0_14: cmpl $1065353216, -112(%rbp) ## imm = 0x3F800000 jl LBB0_18 ## %bb.15: movl -112(%rbp), %eax sarl $23, %eax subl $127, %eax movl %eax, -88(%rbp) movl -112(%rbp), %eax movl $23, %ecx subl -88(%rbp), %ecx ## kill: def $cl killed $ecx sarl %cl, %eax movl %eax, -84(%rbp) movl -84(%rbp), %eax movl $23, %ecx subl -88(%rbp), %ecx ## kill: def $cl killed $ecx shll %cl, %eax cmpl -112(%rbp), %eax jne LBB0_17 ## %bb.16: movl -84(%rbp), %ecx andl $1, %ecx movl $2, %eax subl %ecx, %eax movl %eax, -92(%rbp) LBB0_17: jmp LBB0_18 LBB0_18: jmp LBB0_19 LBB0_19: jmp LBB0_20 LBB0_20: cmpl $2139095040, -112(%rbp) ## imm = 0x7F800000 jne LBB0_32 ## %bb.21: cmpl $1065353216, -108(%rbp) ## imm = 0x3F800000 jne LBB0_23 ## %bb.22: movss LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, -4(%rbp) jmp LBB0_148 LBB0_23: cmpl $1065353216, -108(%rbp) ## imm = 0x3F800000 jle LBB0_28 ## %bb.24: cmpl $0, -104(%rbp) jl LBB0_26 ## %bb.25: movss -12(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, -316(%rbp) ## 4-byte Spill jmp LBB0_27 LBB0_26: xorps %xmm0, %xmm0 movss %xmm0, -316(%rbp) ## 4-byte Spill jmp LBB0_27 LBB0_27: movss -316(%rbp), %xmm0 ## 4-byte Reload ## xmm0 = mem[0],zero,zero,zero movss %xmm0, -4(%rbp) jmp LBB0_148 LBB0_28: cmpl $0, -104(%rbp) jl LBB0_30 ## %bb.29: xorps %xmm0, %xmm0 movss %xmm0, -320(%rbp) ## 4-byte Spill jmp LBB0_31 LBB0_30: movss -12(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movd %xmm0, %eax xorl $2147483648, %eax ## imm = 0x80000000 movd %eax, %xmm0 movss %xmm0, -320(%rbp) ## 4-byte Spill LBB0_31: movss -320(%rbp), %xmm0 ## 4-byte Reload ## xmm0 = mem[0],zero,zero,zero movss %xmm0, -4(%rbp) jmp LBB0_148 LBB0_32: cmpl $1065353216, -112(%rbp) ## imm = 0x3F800000 jne LBB0_37 ## %bb.33: cmpl $0, -104(%rbp) jl LBB0_35 ## %bb.34: movss -8(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, -324(%rbp) ## 4-byte Spill jmp LBB0_36 LBB0_35: movss LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero divss -8(%rbp), %xmm0 movss %xmm0, -324(%rbp) ## 4-byte Spill LBB0_36: movss -324(%rbp), %xmm0 ## 4-byte Reload ## xmm0 = mem[0],zero,zero,zero movss %xmm0, -4(%rbp) jmp LBB0_148 LBB0_37: cmpl $1073741824, -104(%rbp) ## imm = 0x40000000 jne LBB0_39 ## %bb.38: movss -8(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero mulss -8(%rbp), %xmm0 movss %xmm0, -4(%rbp) jmp LBB0_148 LBB0_39: cmpl $1056964608, -104(%rbp) ## imm = 0x3F000000 jne LBB0_43 ## %bb.40: cmpl $0, -100(%rbp) jl LBB0_42 ## %bb.41: movss -8(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero callq _my_sqrtf movss %xmm0, -4(%rbp) jmp LBB0_148 LBB0_42: jmp LBB0_43 LBB0_43: movss -8(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero callq _my_fabsf movss %xmm0, -20(%rbp) cmpl $2139095040, -108(%rbp) ## imm = 0x7F800000 je LBB0_46 ## %bb.44: cmpl $0, -108(%rbp) je LBB0_46 ## %bb.45: cmpl $1065353216, -108(%rbp) ## imm = 0x3F800000 jne LBB0_56 LBB0_46: movss -20(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, -16(%rbp) cmpl $0, -104(%rbp) jge LBB0_48 ## %bb.47: movss LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero divss -16(%rbp), %xmm0 movss %xmm0, -16(%rbp) LBB0_48: cmpl $0, -100(%rbp) jge LBB0_55 ## %bb.49: movl -108(%rbp), %eax subl $1065353216, %eax ## imm = 0x3F800000 orl -92(%rbp), %eax cmpl $0, %eax jne LBB0_51 ## %bb.50: movss -16(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero subss -16(%rbp), %xmm0 movss -16(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero subss -16(%rbp), %xmm1 divss %xmm1, %xmm0 movss %xmm0, -16(%rbp) jmp LBB0_54 LBB0_51: cmpl $1, -92(%rbp) jne LBB0_53 ## %bb.52: movss -16(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movd %xmm0, %eax xorl $2147483648, %eax ## imm = 0x80000000 movd %eax, %xmm0 movss %xmm0, -16(%rbp) LBB0_53: jmp LBB0_54 LBB0_54: jmp LBB0_55 LBB0_55: movss -16(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, -4(%rbp) jmp LBB0_148 LBB0_56: movss LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, -60(%rbp) cmpl $0, -100(%rbp) jge LBB0_62 ## %bb.57: cmpl $0, -92(%rbp) jne LBB0_59 ## %bb.58: movss -8(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero subss -8(%rbp), %xmm0 movss -8(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero subss -8(%rbp), %xmm1 divss %xmm1, %xmm0 movss %xmm0, -4(%rbp) jmp LBB0_148 LBB0_59: cmpl $1, -92(%rbp) jne LBB0_61 ## %bb.60: movss LCPI0_1(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, -60(%rbp) LBB0_61: jmp LBB0_62 LBB0_62: cmpl $1291845632, -112(%rbp) ## imm = 0x4D000000 jle LBB0_78 ## %bb.63: cmpl $1065353208, -108(%rbp) ## imm = 0x3F7FFFF8 jge LBB0_68 ## %bb.64: cmpl $0, -104(%rbp) jge LBB0_66 ## %bb.65: movss LCPI0_29(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero mulss -60(%rbp), %xmm0 movss LCPI0_29(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero mulss %xmm1, %xmm0 movss %xmm0, -328(%rbp) ## 4-byte Spill jmp LBB0_67 LBB0_66: movss LCPI0_18(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero mulss -60(%rbp), %xmm0 movss LCPI0_18(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero mulss %xmm1, %xmm0 movss %xmm0, -328(%rbp) ## 4-byte Spill LBB0_67: movss -328(%rbp), %xmm0 ## 4-byte Reload ## xmm0 = mem[0],zero,zero,zero movss %xmm0, -4(%rbp) jmp LBB0_148 LBB0_68: cmpl $1065353223, -108(%rbp) ## imm = 0x3F800007 jle LBB0_73 ## %bb.69: cmpl $0, -104(%rbp) jle LBB0_71 ## %bb.70: movss LCPI0_29(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero mulss -60(%rbp), %xmm0 movss LCPI0_29(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero mulss %xmm1, %xmm0 movss %xmm0, -332(%rbp) ## 4-byte Spill jmp LBB0_72 LBB0_71: movss LCPI0_18(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero mulss -60(%rbp), %xmm0 movss LCPI0_18(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero mulss %xmm1, %xmm0 movss %xmm0, -332(%rbp) ## 4-byte Spill LBB0_72: movss -332(%rbp), %xmm0 ## 4-byte Reload ## xmm0 = mem[0],zero,zero,zero movss %xmm0, -4(%rbp) jmp LBB0_148 LBB0_73: movss -20(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero subss %xmm1, %xmm0 movss %xmm0, -64(%rbp) movss -64(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero mulss -64(%rbp), %xmm0 movss -64(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero movss -64(%rbp), %xmm2 ## xmm2 = mem[0],zero,zero,zero movd %xmm2, %eax xorl $2147483648, %eax ## imm = 0x80000000 movd %eax, %xmm2 movss LCPI0_17(%rip), %xmm3 ## xmm3 = mem[0],zero,zero,zero mulss %xmm3, %xmm2 movss LCPI0_6(%rip), %xmm3 ## xmm3 = mem[0],zero,zero,zero addss %xmm3, %xmm2 movd %xmm1, %eax xorl $2147483648, %eax ## imm = 0x80000000 movd %eax, %xmm1 mulss %xmm2, %xmm1 movss LCPI0_16(%rip), %xmm2 ## xmm2 = mem[0],zero,zero,zero addss %xmm2, %xmm1 mulss %xmm1, %xmm0 movss %xmm0, -76(%rbp) movss LCPI0_15(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero mulss -64(%rbp), %xmm0 movss %xmm0, -68(%rbp) movss -64(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss LCPI0_14(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero mulss -76(%rbp), %xmm1 movd %xmm1, %eax xorl $2147483648, %eax ## imm = 0x80000000 movd %eax, %xmm1 movss LCPI0_13(%rip), %xmm2 ## xmm2 = mem[0],zero,zero,zero mulss %xmm2, %xmm0 addss %xmm1, %xmm0 movss %xmm0, -72(%rbp) movss -68(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero addss -72(%rbp), %xmm0 movss %xmm0, -44(%rbp) ## %bb.74: movss -44(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, -136(%rbp) movl -136(%rbp), %eax movl %eax, -116(%rbp) ## %bb.75: jmp LBB0_76 LBB0_76: movl -116(%rbp), %eax andl $-4096, %eax ## imm = 0xF000 movl %eax, -144(%rbp) movss -144(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, -44(%rbp) ## %bb.77: movss -72(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss -44(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero subss -68(%rbp), %xmm1 subss %xmm1, %xmm0 movss %xmm0, -48(%rbp) jmp LBB0_109 LBB0_78: movl $0, -96(%rbp) cmpl $8388608, -108(%rbp) ## imm = 0x800000 jge LBB0_82 ## %bb.79: movss LCPI0_2(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero mulss -20(%rbp), %xmm0 movss %xmm0, -20(%rbp) movl -96(%rbp), %eax subl $24, %eax movl %eax, -96(%rbp) ## %bb.80: movss -20(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, -168(%rbp) movl -168(%rbp), %eax movl %eax, -108(%rbp) ## %bb.81: jmp LBB0_82 LBB0_82: movl -108(%rbp), %eax sarl $23, %eax subl $127, %eax addl -96(%rbp), %eax movl %eax, -96(%rbp) movl -108(%rbp), %eax andl $8388607, %eax ## imm = 0x7FFFFF movl %eax, -84(%rbp) movl -84(%rbp), %eax orl $1065353216, %eax ## imm = 0x3F800000 movl %eax, -108(%rbp) cmpl $1885297, -84(%rbp) ## imm = 0x1CC471 jg LBB0_84 ## %bb.83: movl $0, -88(%rbp) jmp LBB0_88 LBB0_84: cmpl $6140887, -84(%rbp) ## imm = 0x5DB3D7 jge LBB0_86 ## %bb.85: movl $1, -88(%rbp) jmp LBB0_87 LBB0_86: movl $0, -88(%rbp) movl -96(%rbp), %eax addl $1, %eax movl %eax, -96(%rbp) movl -108(%rbp), %eax subl $8388608, %eax ## imm = 0x800000 movl %eax, -108(%rbp) LBB0_87: jmp LBB0_88 LBB0_88: jmp LBB0_89 LBB0_89: movl -108(%rbp), %eax movl %eax, -176(%rbp) movss -176(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, -20(%rbp) ## %bb.90: movss -20(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movslq -88(%rbp), %rcx leaq _bp(%rip), %rax subss (%rax,%rcx,4), %xmm0 movss %xmm0, -68(%rbp) movss -20(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero movslq -88(%rbp), %rcx leaq _bp(%rip), %rax addss (%rax,%rcx,4), %xmm1 movss LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero divss %xmm1, %xmm0 movss %xmm0, -72(%rbp) movss -68(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero mulss -72(%rbp), %xmm0 movss %xmm0, -56(%rbp) movss -56(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, -152(%rbp) ## %bb.91: movss -152(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, -184(%rbp) movl -184(%rbp), %eax movl %eax, -116(%rbp) ## %bb.92: jmp LBB0_93 LBB0_93: movl -116(%rbp), %eax andl $-4096, %eax ## imm = 0xF000 movl %eax, -192(%rbp) movss -192(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, -152(%rbp) ## %bb.94: movl -108(%rbp), %eax sarl $1, %eax andl $-4096, %eax ## imm = 0xF000 orl $536870912, %eax ## imm = 0x20000000 movl %eax, -116(%rbp) ## %bb.95: movl -116(%rbp), %eax addl $4194304, %eax ## imm = 0x400000 movl -88(%rbp), %ecx shll $21, %ecx addl %ecx, %eax movl %eax, -200(%rbp) movss -200(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, -160(%rbp) ## %bb.96: movss -20(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss -160(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero movslq -88(%rbp), %rcx leaq _bp(%rip), %rax subss (%rax,%rcx,4), %xmm1 subss %xmm1, %xmm0 movss %xmm0, -164(%rbp) movss -72(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss -68(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero movss -152(%rbp), %xmm2 ## xmm2 = mem[0],zero,zero,zero movss -160(%rbp), %xmm3 ## xmm3 = mem[0],zero,zero,zero movd %xmm2, %eax xorl $2147483648, %eax ## imm = 0x80000000 movd %eax, %xmm2 mulss %xmm3, %xmm2 addss %xmm1, %xmm2 movss -152(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero movss -164(%rbp), %xmm3 ## xmm3 = mem[0],zero,zero,zero movd %xmm1, %eax xorl $2147483648, %eax ## imm = 0x80000000 movd %eax, %xmm1 mulss %xmm3, %xmm1 addss %xmm2, %xmm1 mulss %xmm1, %xmm0 movss %xmm0, -156(%rbp) movss -56(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero mulss -56(%rbp), %xmm0 movss %xmm0, -148(%rbp) movss -148(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero mulss -148(%rbp), %xmm0 movss -148(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero movss -148(%rbp), %xmm2 ## xmm2 = mem[0],zero,zero,zero movss -148(%rbp), %xmm3 ## xmm3 = mem[0],zero,zero,zero movss -148(%rbp), %xmm4 ## xmm4 = mem[0],zero,zero,zero movss -148(%rbp), %xmm5 ## xmm5 = mem[0],zero,zero,zero movss LCPI0_8(%rip), %xmm6 ## xmm6 = mem[0],zero,zero,zero mulss %xmm6, %xmm5 movss LCPI0_9(%rip), %xmm6 ## xmm6 = mem[0],zero,zero,zero addss %xmm6, %xmm5 mulss %xmm5, %xmm4 movss LCPI0_7(%rip), %xmm5 ## xmm5 = mem[0],zero,zero,zero addss %xmm5, %xmm4 mulss %xmm4, %xmm3 movss LCPI0_6(%rip), %xmm4 ## xmm4 = mem[0],zero,zero,zero addss %xmm4, %xmm3 mulss %xmm3, %xmm2 movss LCPI0_5(%rip), %xmm3 ## xmm3 = mem[0],zero,zero,zero addss %xmm3, %xmm2 mulss %xmm2, %xmm1 movss LCPI0_4(%rip), %xmm2 ## xmm2 = mem[0],zero,zero,zero addss %xmm2, %xmm1 mulss %xmm1, %xmm0 movss %xmm0, -52(%rbp) movss -156(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss -152(%rbp), %xmm2 ## xmm2 = mem[0],zero,zero,zero addss -56(%rbp), %xmm2 movss -52(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero mulss %xmm2, %xmm0 addss %xmm1, %xmm0 movss %xmm0, -52(%rbp) movss -152(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero mulss -152(%rbp), %xmm0 movss %xmm0, -148(%rbp) movss LCPI0_3(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero addss -148(%rbp), %xmm0 addss -52(%rbp), %xmm0 movss %xmm0, -160(%rbp) ## %bb.97: movss -160(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, -208(%rbp) movl -208(%rbp), %eax movl %eax, -116(%rbp) ## %bb.98: jmp LBB0_99 LBB0_99: movl -116(%rbp), %eax andl $-4096, %eax ## imm = 0xF000 movl %eax, -216(%rbp) movss -216(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, -160(%rbp) ## %bb.100: movss -52(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss -160(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero movss LCPI0_3(%rip), %xmm2 ## xmm2 = mem[0],zero,zero,zero subss %xmm2, %xmm1 subss -148(%rbp), %xmm1 subss %xmm1, %xmm0 movss %xmm0, -164(%rbp) movss -152(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero mulss -160(%rbp), %xmm0 movss %xmm0, -68(%rbp) movss -156(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss -160(%rbp), %xmm2 ## xmm2 = mem[0],zero,zero,zero movss -164(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero mulss -56(%rbp), %xmm1 mulss %xmm2, %xmm0 addss %xmm1, %xmm0 movss %xmm0, -72(%rbp) movss -68(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero addss -72(%rbp), %xmm0 movss %xmm0, -32(%rbp) ## %bb.101: movss -32(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, -224(%rbp) movl -224(%rbp), %eax movl %eax, -116(%rbp) ## %bb.102: jmp LBB0_103 LBB0_103: movl -116(%rbp), %eax andl $-4096, %eax ## imm = 0xF000 movl %eax, -232(%rbp) movss -232(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, -32(%rbp) ## %bb.104: movss -72(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss -32(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero subss -68(%rbp), %xmm1 subss %xmm1, %xmm0 movss %xmm0, -36(%rbp) movss LCPI0_12(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero mulss -32(%rbp), %xmm0 movss %xmm0, -24(%rbp) movss -32(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss LCPI0_11(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero mulss -36(%rbp), %xmm1 movss LCPI0_10(%rip), %xmm2 ## xmm2 = mem[0],zero,zero,zero mulss %xmm2, %xmm0 addss %xmm1, %xmm0 movslq -88(%rbp), %rcx leaq _dp_l(%rip), %rax addss (%rax,%rcx,4), %xmm0 movss %xmm0, -28(%rbp) cvtsi2ssl -96(%rbp), %xmm0 movss %xmm0, -64(%rbp) movss -24(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero addss -28(%rbp), %xmm0 movslq -88(%rbp), %rcx leaq _dp_h(%rip), %rax addss (%rax,%rcx,4), %xmm0 addss -64(%rbp), %xmm0 movss %xmm0, -44(%rbp) ## %bb.105: movss -44(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, -240(%rbp) movl -240(%rbp), %eax movl %eax, -116(%rbp) ## %bb.106: jmp LBB0_107 LBB0_107: movl -116(%rbp), %eax andl $-4096, %eax ## imm = 0xF000 movl %eax, -248(%rbp) movss -248(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, -44(%rbp) ## %bb.108: movss -28(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss -44(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero subss -64(%rbp), %xmm1 movslq -88(%rbp), %rcx leaq _dp_h(%rip), %rax subss (%rax,%rcx,4), %xmm1 subss -24(%rbp), %xmm1 subss %xmm1, %xmm0 movss %xmm0, -48(%rbp) LBB0_109: jmp LBB0_110 LBB0_110: movss -12(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, -256(%rbp) movl -256(%rbp), %eax movl %eax, -116(%rbp) ## %bb.111: jmp LBB0_112 LBB0_112: movl -116(%rbp), %eax andl $-4096, %eax ## imm = 0xF000 movl %eax, -264(%rbp) movss -264(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, -40(%rbp) ## %bb.113: movss -12(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero subss -40(%rbp), %xmm0 movss -44(%rbp), %xmm2 ## xmm2 = mem[0],zero,zero,zero movss -12(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero mulss -48(%rbp), %xmm1 mulss %xmm2, %xmm0 addss %xmm1, %xmm0 movss %xmm0, -36(%rbp) movss -40(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero mulss -44(%rbp), %xmm0 movss %xmm0, -32(%rbp) movss -36(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero addss -32(%rbp), %xmm0 movss %xmm0, -16(%rbp) ## %bb.114: movss -16(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, -272(%rbp) movl -272(%rbp), %eax movl %eax, -84(%rbp) ## %bb.115: cmpl $1124073472, -84(%rbp) ## imm = 0x43000000 jle LBB0_117 ## %bb.116: movss LCPI0_29(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero mulss -60(%rbp), %xmm0 movss LCPI0_29(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero mulss %xmm1, %xmm0 movss %xmm0, -4(%rbp) jmp LBB0_148 LBB0_117: cmpl $1124073472, -84(%rbp) ## imm = 0x43000000 jne LBB0_121 ## %bb.118: movss LCPI0_19(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero addss -36(%rbp), %xmm0 movss -16(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero subss -32(%rbp), %xmm1 ucomiss %xmm1, %xmm0 jbe LBB0_120 ## %bb.119: movss LCPI0_29(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero mulss -60(%rbp), %xmm0 movss LCPI0_29(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero mulss %xmm1, %xmm0 movss %xmm0, -4(%rbp) jmp LBB0_148 LBB0_120: jmp LBB0_129 LBB0_121: movl -84(%rbp), %eax andl $2147483647, %eax ## imm = 0x7FFFFFFF cmpl $1125515264, %eax ## imm = 0x43160000 jle LBB0_123 ## %bb.122: movss LCPI0_18(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero mulss -60(%rbp), %xmm0 movss LCPI0_18(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero mulss %xmm1, %xmm0 movss %xmm0, -4(%rbp) jmp LBB0_148 LBB0_123: cmpl $-1021968384, -84(%rbp) ## imm = 0xC3160000 jne LBB0_127 ## %bb.124: movss -36(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero movss -16(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero subss -32(%rbp), %xmm0 ucomiss %xmm1, %xmm0 jb LBB0_126 ## %bb.125: movss LCPI0_18(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero mulss -60(%rbp), %xmm0 movss LCPI0_18(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero mulss %xmm1, %xmm0 movss %xmm0, -4(%rbp) jmp LBB0_148 LBB0_126: jmp LBB0_127 LBB0_127: jmp LBB0_128 LBB0_128: jmp LBB0_129 LBB0_129: jmp LBB0_130 LBB0_130: movl -84(%rbp), %eax andl $2147483647, %eax ## imm = 0x7FFFFFFF movl %eax, -80(%rbp) movl -80(%rbp), %eax sarl $23, %eax subl $127, %eax movl %eax, -88(%rbp) movl $0, -96(%rbp) cmpl $1056964608, -80(%rbp) ## imm = 0x3F000000 jle LBB0_136 ## %bb.131: movl -84(%rbp), %eax movl -88(%rbp), %ecx addl $1, %ecx movl $8388608, %edx ## imm = 0x800000 ## kill: def $cl killed $ecx sarl %cl, %edx movl %edx, %ecx addl %ecx, %eax movl %eax, -96(%rbp) movl -96(%rbp), %eax andl $2147483647, %eax ## imm = 0x7FFFFFFF sarl $23, %eax subl $127, %eax movl %eax, -88(%rbp) ## %bb.132: movl -96(%rbp), %eax movl -88(%rbp), %ecx movl $8388607, %edx ## imm = 0x7FFFFF ## kill: def $cl killed $ecx sarl %cl, %edx movl %edx, %ecx xorl $-1, %ecx andl %ecx, %eax movl %eax, -280(%rbp) movss -280(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, -64(%rbp) ## %bb.133: movl -96(%rbp), %eax andl $8388607, %eax ## imm = 0x7FFFFF orl $8388608, %eax ## imm = 0x800000 movl $23, %ecx subl -88(%rbp), %ecx ## kill: def $cl killed $ecx sarl %cl, %eax movl %eax, -96(%rbp) cmpl $0, -84(%rbp) jge LBB0_135 ## %bb.134: xorl %eax, %eax subl -96(%rbp), %eax movl %eax, -96(%rbp) LBB0_135: movss -64(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero movss -32(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero subss %xmm1, %xmm0 movss %xmm0, -32(%rbp) LBB0_136: movss -36(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero addss -32(%rbp), %xmm0 movss %xmm0, -64(%rbp) ## %bb.137: movss -64(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, -288(%rbp) movl -288(%rbp), %eax movl %eax, -116(%rbp) ## %bb.138: jmp LBB0_139 LBB0_139: movl -116(%rbp), %eax andl $-32768, %eax ## imm = 0x8000 movl %eax, -296(%rbp) movss -296(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, -64(%rbp) ## %bb.140: movss LCPI0_28(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero mulss -64(%rbp), %xmm0 movss %xmm0, -68(%rbp) movss -36(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss -64(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero subss -32(%rbp), %xmm1 subss %xmm1, %xmm0 movss LCPI0_27(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero mulss -64(%rbp), %xmm1 movss LCPI0_26(%rip), %xmm2 ## xmm2 = mem[0],zero,zero,zero mulss %xmm2, %xmm0 addss %xmm1, %xmm0 movss %xmm0, -72(%rbp) movss -68(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero addss -72(%rbp), %xmm0 movss %xmm0, -16(%rbp) movss -72(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss -16(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero subss -68(%rbp), %xmm1 subss %xmm1, %xmm0 movss %xmm0, -76(%rbp) movss -16(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero mulss -16(%rbp), %xmm0 movss %xmm0, -64(%rbp) movss -16(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero movss -64(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss -64(%rbp), %xmm2 ## xmm2 = mem[0],zero,zero,zero movss -64(%rbp), %xmm3 ## xmm3 = mem[0],zero,zero,zero movss -64(%rbp), %xmm4 ## xmm4 = mem[0],zero,zero,zero movss -64(%rbp), %xmm5 ## xmm5 = mem[0],zero,zero,zero movss LCPI0_24(%rip), %xmm6 ## xmm6 = mem[0],zero,zero,zero mulss %xmm6, %xmm5 movss LCPI0_25(%rip), %xmm6 ## xmm6 = mem[0],zero,zero,zero addss %xmm6, %xmm5 mulss %xmm5, %xmm4 movss LCPI0_23(%rip), %xmm5 ## xmm5 = mem[0],zero,zero,zero addss %xmm5, %xmm4 mulss %xmm4, %xmm3 movss LCPI0_22(%rip), %xmm4 ## xmm4 = mem[0],zero,zero,zero addss %xmm4, %xmm3 mulss %xmm3, %xmm2 movss LCPI0_21(%rip), %xmm3 ## xmm3 = mem[0],zero,zero,zero addss %xmm3, %xmm2 movd %xmm0, %eax xorl $2147483648, %eax ## imm = 0x80000000 movd %eax, %xmm0 mulss %xmm2, %xmm0 addss %xmm1, %xmm0 movss %xmm0, -44(%rbp) movss -16(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero mulss -44(%rbp), %xmm0 movss -44(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero movss LCPI0_20(%rip), %xmm2 ## xmm2 = mem[0],zero,zero,zero subss %xmm2, %xmm1 divss %xmm1, %xmm0 movss -76(%rbp), %xmm2 ## xmm2 = mem[0],zero,zero,zero movss -16(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero movss -76(%rbp), %xmm3 ## xmm3 = mem[0],zero,zero,zero mulss %xmm3, %xmm1 addss %xmm2, %xmm1 subss %xmm1, %xmm0 movss %xmm0, -52(%rbp) movss -52(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero subss -16(%rbp), %xmm1 movss LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero subss %xmm1, %xmm0 movss %xmm0, -16(%rbp) ## %bb.141: movss -16(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, -304(%rbp) movl -304(%rbp), %eax movl %eax, -84(%rbp) ## %bb.142: movl -96(%rbp), %eax shll $23, %eax addl -84(%rbp), %eax movl %eax, -84(%rbp) movl -84(%rbp), %eax sarl $23, %eax cmpl $0, %eax jg LBB0_144 ## %bb.143: movss -16(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movl -96(%rbp), %edi callq _my_scalbnf movss %xmm0, -16(%rbp) jmp LBB0_147 LBB0_144: jmp LBB0_145 LBB0_145: movl -84(%rbp), %eax movl %eax, -312(%rbp) movss -312(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, -16(%rbp) ## %bb.146: jmp LBB0_147 LBB0_147: movss -60(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero mulss -16(%rbp), %xmm0 movss %xmm0, -4(%rbp) LBB0_148: movss -4(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero addq $336, %rsp ## imm = 0x150 popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__const .p2align 2 ## @bp _bp: .long 0x3f800000 ## float 1 .long 0x3fc00000 ## float 1.5 .p2align 2 ## @dp_l _dp_l: .long 0x00000000 ## float 0 .long 0x35d1cfdc ## float 1.56322085E-6 .p2align 2 ## @dp_h _dp_h: .long 0x00000000 ## float 0 .long 0x3f15c000 ## float 0.584960938 .subsections_via_symbols
the_stack_data/117327367.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _syslog_async_init ; -- Begin function syslog_async_init .p2align 2 _syslog_async_init: ; @syslog_async_init .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] adrp x0, _syslog_init_mutex@PAGE add x0, x0, _syslog_init_mutex@PAGEOFF bl _pthread_mutex_lock adrp x8, _syslog_queue_inited@PAGE ldr w8, [x8, _syslog_queue_inited@PAGEOFF] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_4 b LBB0_1 LBB0_1: bl _syslog_queue_init subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: adrp x0, _syslog_init_mutex@PAGE add x0, x0, _syslog_init_mutex@PAGEOFF bl _pthread_mutex_unlock mov w8, #-1 stur w8, [x29, #-4] b LBB0_5 LBB0_3: b LBB0_4 LBB0_4: mov w8, #1 adrp x9, _syslog_queue_inited@PAGE str w8, [x9, _syslog_queue_inited@PAGEOFF] adrp x0, _syslog_init_mutex@PAGE add x0, x0, _syslog_init_mutex@PAGEOFF bl _pthread_mutex_unlock ldr x0, [sp, #16] ldr w2, [sp, #12] mov w1, #3 bl _openlog adrp x0, _syslog_async_atexit@PAGE add x0, x0, _syslog_async_atexit@PAGEOFF bl _atexit stur wzr, [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 syslog_queue_init _syslog_queue_init: ; @syslog_queue_init .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov x8, #1528 movk x8, #2, lsl #16 str x8, [sp, #8] ; 8-byte Folded Spill adrp x0, _syslog_wi_pool@PAGE add x0, x0, _syslog_wi_pool@PAGEOFF str x0, [sp, #16] ; 8-byte Folded Spill mov x1, #1536 movk x1, #2, lsl #16 bl _bzero stur wzr, [x29, #-8] b LBB1_1 LBB1_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-8] subs w8, w8, #63 cset w8, ge tbnz w8, #0, LBB1_4 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 ldur w8, [x29, #-8] add w8, w8, #1 mov x11, #2072 adrp x9, _syslog_wi_pool@PAGE add x9, x9, _syslog_wi_pool@PAGEOFF mov x12, x9 mov w10, #2072 smaddl x8, w8, w10, x12 ldursw x10, [x29, #-8] mul x10, x10, x11 add x9, x9, x10 str x8, [x9, #2064] b LBB1_3 LBB1_3: ; in Loop: Header=BB1_1 Depth=1 ldur w8, [x29, #-8] add w8, w8, #1 stur w8, [x29, #-8] b LBB1_1 LBB1_4: ldr x8, [sp, #16] ; 8-byte Folded Reload ldr x9, [sp, #8] ; 8-byte Folded Reload mov x1, #0 str x1, [sp] ; 8-byte Folded Spill str x1, [x8, x9] adrp x9, _syslog_wi_free@PAGE adrp x8, _syslog_wi_pool@PAGE add x8, x8, _syslog_wi_pool@PAGEOFF str x8, [x9, _syslog_wi_free@PAGEOFF] adrp x8, _syslog_wi_queue@PAGE str xzr, [x8, _syslog_wi_queue@PAGEOFF] adrp x8, _syslog_wi_queue_tail@PAGE str xzr, [x8, _syslog_wi_queue_tail@PAGEOFF] adrp x8, _syslog_dropped_items@PAGE str wzr, [x8, _syslog_dropped_items@PAGEOFF] adrp x0, _syslog_queue_cond@PAGE add x0, x0, _syslog_queue_cond@PAGEOFF bl _pthread_cond_init ldr x1, [sp] ; 8-byte Folded Reload adrp x0, _syslog_queue_mutex@PAGE add x0, x0, _syslog_queue_mutex@PAGEOFF bl _pthread_mutex_init ldr x1, [sp] ; 8-byte Folded Reload adrp x0, _syslog_wi_free_cond@PAGE add x0, x0, _syslog_wi_free_cond@PAGEOFF bl _pthread_cond_init ldr x1, [sp] ; 8-byte Folded Reload adrp x0, _syslog_wi_free_mutex@PAGE add x0, x0, _syslog_wi_free_mutex@PAGEOFF bl _pthread_mutex_init ldr x3, [sp] ; 8-byte Folded Reload adrp x0, _syslog_queue@PAGE add x0, x0, _syslog_queue@PAGEOFF mov x1, x3 adrp x2, _syslog_queue_run@PAGE add x2, x2, _syslog_queue_run@PAGEOFF bl _pthread_create subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB1_6 b LBB1_5 LBB1_5: mov w8, #-1 stur w8, [x29, #-4] b LBB1_7 LBB1_6: stur wzr, [x29, #-4] b LBB1_7 LBB1_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 syslog_async_atexit _syslog_async_atexit: ; @syslog_async_atexit .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, _syslog_queue_inited@PAGE ldr w8, [x8, _syslog_queue_inited@PAGEOFF] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB2_2 b LBB2_1 LBB2_1: b LBB2_3 LBB2_2: mov w0, #1 str w0, [sp, #4] ; 4-byte Folded Spill bl _syslog_queue_get_free_item ldr w8, [sp, #4] ; 4-byte Folded Reload str x0, [sp, #8] ldr x9, [sp, #8] str w8, [x9] ldr x0, [sp, #8] bl _syslog_queue_put_item adrp x8, _syslog_queue@PAGE ldr x0, [x8, _syslog_queue@PAGEOFF] mov x1, #0 bl _pthread_join b LBB2_3 LBB2_3: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _vsyslog_async ; -- Begin function vsyslog_async .p2align 2 _vsyslog_async: ; @vsyslog_async .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur w0, [x29, #-4] stur x1, [x29, #-16] str x2, [sp, #24] mov w0, #0 bl _syslog_queue_get_free_item str x0, [sp, #16] ldr x8, [sp, #16] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB3_2 b LBB3_1 LBB3_1: b LBB3_5 LBB3_2: ldr x8, [sp, #16] add x8, x8, #4 str x8, [sp, #8] mov w8, #2048 str w8, [sp, #4] ldr x0, [sp, #8] ldrsw x1, [sp, #4] ldur x4, [x29, #-16] ldr x5, [sp, #24] mov w2, #0 mov x3, #-1 bl ___vsnprintf_chk str w0, [sp] ldr w8, [sp] ldr w9, [sp, #4] subs w8, w8, w9 cset w8, lt tbnz w8, #0, LBB3_4 b LBB3_3 LBB3_3: ldr w8, [sp, #4] subs w8, w8, #1 str w8, [sp] ldr x8, [sp, #8] ldrsw x9, [sp] add x8, x8, x9 strb wzr, [x8] b LBB3_4 LBB3_4: ldr w8, [sp] ldr x9, [sp, #16] str w8, [x9, #2052] ldur w8, [x29, #-4] ldr x9, [sp, #16] str w8, [x9, #2056] ldr x8, [sp, #16] str wzr, [x8] ldr x0, [sp, #16] bl _syslog_queue_put_item b LBB3_5 LBB3_5: ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function syslog_queue_get_free_item _syslog_queue_get_free_item: ; @syslog_queue_get_free_item .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur w0, [x29, #-12] adrp x0, _syslog_wi_free_mutex@PAGE add x0, x0, _syslog_wi_free_mutex@PAGEOFF bl _pthread_mutex_lock b LBB4_1 LBB4_1: ; =>This Inner Loop Header: Depth=1 adrp x8, _syslog_wi_free@PAGE ldr x8, [x8, _syslog_wi_free@PAGEOFF] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB4_5 b LBB4_2 LBB4_2: ; in Loop: Header=BB4_1 Depth=1 ldur w8, [x29, #-12] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB4_4 b LBB4_3 LBB4_3: adrp x9, _syslog_dropped_items@PAGE ldr w8, [x9, _syslog_dropped_items@PAGEOFF] add w8, w8, #1 str w8, [x9, _syslog_dropped_items@PAGEOFF] adrp x0, _syslog_wi_free_mutex@PAGE add x0, x0, _syslog_wi_free_mutex@PAGEOFF bl _pthread_mutex_unlock ; kill: def $x8 killed $xzr stur xzr, [x29, #-8] b LBB4_6 LBB4_4: ; in Loop: Header=BB4_1 Depth=1 adrp x0, _syslog_wi_free_cond@PAGE add x0, x0, _syslog_wi_free_cond@PAGEOFF adrp x1, _syslog_wi_free_mutex@PAGE add x1, x1, _syslog_wi_free_mutex@PAGEOFF bl _pthread_cond_wait b LBB4_1 LBB4_5: adrp x9, _syslog_wi_free@PAGE ldr x8, [x9, _syslog_wi_free@PAGEOFF] str x8, [sp, #8] ldr x8, [x9, _syslog_wi_free@PAGEOFF] ldr x8, [x8, #2064] str x8, [x9, _syslog_wi_free@PAGEOFF] adrp x0, _syslog_wi_free_mutex@PAGE add x0, x0, _syslog_wi_free_mutex@PAGEOFF bl _pthread_mutex_unlock ldr x8, [sp, #8] stur x8, [x29, #-8] b LBB4_6 LBB4_6: ldur x0, [x29, #-8] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function syslog_queue_put_item _syslog_queue_put_item: ; @syslog_queue_put_item .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #8] adrp x0, _syslog_queue_mutex@PAGE add x0, x0, _syslog_queue_mutex@PAGEOFF bl _pthread_mutex_lock ldr x8, [sp, #8] ; kill: def $x9 killed $xzr str xzr, [x8, #2064] adrp x8, _syslog_wi_queue@PAGE ldr x8, [x8, _syslog_wi_queue@PAGEOFF] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB5_2 b LBB5_1 LBB5_1: ldr x8, [sp, #8] adrp x9, _syslog_wi_queue@PAGE str x8, [x9, _syslog_wi_queue@PAGEOFF] ldr x8, [sp, #8] adrp x9, _syslog_wi_queue_tail@PAGE str x8, [x9, _syslog_wi_queue_tail@PAGEOFF] b LBB5_3 LBB5_2: ldr x8, [sp, #8] adrp x9, _syslog_wi_queue_tail@PAGE ldr x10, [x9, _syslog_wi_queue_tail@PAGEOFF] str x8, [x10, #2064] ldr x8, [sp, #8] str x8, [x9, _syslog_wi_queue_tail@PAGEOFF] b LBB5_3 LBB5_3: adrp x0, _syslog_queue_cond@PAGE add x0, x0, _syslog_queue_cond@PAGEOFF bl _pthread_cond_signal adrp x0, _syslog_queue_mutex@PAGE add x0, x0, _syslog_queue_mutex@PAGEOFF bl _pthread_mutex_unlock ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function syslog_queue_run _syslog_queue_run: ; @syslog_queue_run .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 LBB6_1 LBB6_1: ; =>This Loop Header: Depth=1 ; Child Loop BB6_2 Depth 2 adrp x0, _syslog_queue_mutex@PAGE add x0, x0, _syslog_queue_mutex@PAGEOFF bl _pthread_mutex_lock b LBB6_2 LBB6_2: ; Parent Loop BB6_1 Depth=1 ; => This Inner Loop Header: Depth=2 adrp x8, _syslog_wi_queue@PAGE ldr x8, [x8, _syslog_wi_queue@PAGEOFF] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB6_4 b LBB6_3 LBB6_3: ; in Loop: Header=BB6_2 Depth=2 adrp x0, _syslog_queue_cond@PAGE add x0, x0, _syslog_queue_cond@PAGEOFF adrp x1, _syslog_queue_mutex@PAGE add x1, x1, _syslog_queue_mutex@PAGEOFF bl _pthread_cond_wait b LBB6_2 LBB6_4: ; in Loop: Header=BB6_1 Depth=1 adrp x9, _syslog_wi_queue@PAGE ldr x8, [x9, _syslog_wi_queue@PAGEOFF] stur x8, [x29, #-8] ldur x8, [x29, #-8] ldr x8, [x8, #2064] str x8, [x9, _syslog_wi_queue@PAGEOFF] adrp x0, _syslog_queue_mutex@PAGE add x0, x0, _syslog_queue_mutex@PAGEOFF bl _pthread_mutex_unlock ldur x8, [x29, #-8] ldr w8, [x8] stur w8, [x29, #-12] ; 4-byte Folded Spill subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB6_6 b LBB6_5 LBB6_5: ; in Loop: Header=BB6_1 Depth=1 ldur w8, [x29, #-12] ; 4-byte Folded Reload subs w8, w8, #1 cset w8, eq tbnz w8, #0, LBB6_7 b LBB6_8 LBB6_6: ; in Loop: Header=BB6_1 Depth=1 ldur x8, [x29, #-8] ldr w0, [x8, #2056] ldur x8, [x29, #-8] add x8, x8, #4 mov x9, sp str x8, [x9] adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF bl _syslog$DARWIN_EXTSN b LBB6_9 LBB6_7: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret LBB6_8: ; in Loop: Header=BB6_1 Depth=1 b LBB6_9 LBB6_9: ; in Loop: Header=BB6_1 Depth=1 adrp x0, _syslog_wi_free_mutex@PAGE add x0, x0, _syslog_wi_free_mutex@PAGEOFF str x0, [sp, #8] ; 8-byte Folded Spill bl _pthread_mutex_lock adrp x9, _syslog_wi_free@PAGE ldr x8, [x9, _syslog_wi_free@PAGEOFF] ldur x10, [x29, #-8] str x8, [x10, #2064] ldur x8, [x29, #-8] str x8, [x9, _syslog_wi_free@PAGEOFF] adrp x0, _syslog_wi_free_cond@PAGE add x0, x0, _syslog_wi_free_cond@PAGEOFF bl _pthread_cond_signal ldr x0, [sp, #8] ; 8-byte Folded Reload bl _pthread_mutex_unlock b LBB6_1 .cfi_endproc ; -- End function .section __DATA,__data .p2align 3 ; @syslog_init_mutex _syslog_init_mutex: .quad 850045863 ; 0x32aaaba7 .space 56 .zerofill __DATA,__bss,_syslog_queue_inited,4,2 ; @syslog_queue_inited .zerofill __DATA,__bss,_syslog_wi_pool,132608,3 ; @syslog_wi_pool .zerofill __DATA,__bss,_syslog_wi_free,8,3 ; @syslog_wi_free .zerofill __DATA,__bss,_syslog_wi_queue,8,3 ; @syslog_wi_queue .zerofill __DATA,__bss,_syslog_wi_queue_tail,8,3 ; @syslog_wi_queue_tail .zerofill __DATA,__bss,_syslog_dropped_items,4,2 ; @syslog_dropped_items .zerofill __DATA,__bss,_syslog_queue_cond,48,3 ; @syslog_queue_cond .zerofill __DATA,__bss,_syslog_queue_mutex,64,3 ; @syslog_queue_mutex .zerofill __DATA,__bss,_syslog_wi_free_cond,48,3 ; @syslog_wi_free_cond .zerofill __DATA,__bss,_syslog_wi_free_mutex,64,3 ; @syslog_wi_free_mutex .zerofill __DATA,__bss,_syslog_queue,8,3 ; @syslog_queue .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%s" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _syslog_async_init ## -- Begin function syslog_async_init .p2align 4, 0x90 _syslog_async_init: ## @syslog_async_init .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -16(%rbp) movl %esi, -20(%rbp) leaq _syslog_init_mutex(%rip), %rdi callq _pthread_mutex_lock cmpl $0, _syslog_queue_inited(%rip) jne LBB0_4 ## %bb.1: callq _syslog_queue_init cmpl $0, %eax je LBB0_3 ## %bb.2: leaq _syslog_init_mutex(%rip), %rdi callq _pthread_mutex_unlock movl $-1, -4(%rbp) jmp LBB0_5 LBB0_3: jmp LBB0_4 LBB0_4: movl $1, _syslog_queue_inited(%rip) leaq _syslog_init_mutex(%rip), %rdi callq _pthread_mutex_unlock movq -16(%rbp), %rdi movl -20(%rbp), %edx movl $3, %esi callq _openlog leaq _syslog_async_atexit(%rip), %rdi callq _atexit movl $0, -4(%rbp) LBB0_5: movl -4(%rbp), %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function syslog_queue_init _syslog_queue_init: ## @syslog_queue_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 leaq _syslog_wi_pool(%rip), %rdi xorl %esi, %esi movl $132608, %edx ## imm = 0x20600 callq _memset movl $0, -8(%rbp) LBB1_1: ## =>This Inner Loop Header: Depth=1 cmpl $63, -8(%rbp) jge LBB1_4 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 movl -8(%rbp), %eax addl $1, %eax cltq leaq _syslog_wi_pool(%rip), %rcx imulq $2072, %rax, %rax ## imm = 0x818 addq %rax, %rcx movslq -8(%rbp), %rdx leaq _syslog_wi_pool(%rip), %rax imulq $2072, %rdx, %rdx ## imm = 0x818 addq %rdx, %rax movq %rcx, 2064(%rax) ## %bb.3: ## in Loop: Header=BB1_1 Depth=1 movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) jmp LBB1_1 LBB1_4: movq $0, _syslog_wi_pool+132600(%rip) leaq _syslog_wi_pool(%rip), %rax movq %rax, _syslog_wi_free(%rip) movq $0, _syslog_wi_queue(%rip) movq $0, _syslog_wi_queue_tail(%rip) movl $0, _syslog_dropped_items(%rip) leaq _syslog_queue_cond(%rip), %rdi xorl %eax, %eax movl %eax, %esi callq _pthread_cond_init leaq _syslog_queue_mutex(%rip), %rdi xorl %eax, %eax movl %eax, %esi callq _pthread_mutex_init leaq _syslog_wi_free_cond(%rip), %rdi xorl %eax, %eax movl %eax, %esi callq _pthread_cond_init leaq _syslog_wi_free_mutex(%rip), %rdi xorl %eax, %eax movl %eax, %esi callq _pthread_mutex_init leaq _syslog_queue(%rip), %rdi xorl %eax, %eax movl %eax, %ecx leaq _syslog_queue_run(%rip), %rdx movq %rcx, %rsi callq _pthread_create cmpl $0, %eax je LBB1_6 ## %bb.5: movl $-1, -4(%rbp) jmp LBB1_7 LBB1_6: movl $0, -4(%rbp) LBB1_7: movl -4(%rbp), %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function syslog_async_atexit _syslog_async_atexit: ## @syslog_async_atexit .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp cmpl $0, _syslog_queue_inited(%rip) jne LBB2_2 ## %bb.1: jmp LBB2_3 LBB2_2: movl $1, %edi callq _syslog_queue_get_free_item movq %rax, -8(%rbp) movq -8(%rbp), %rax movl $1, (%rax) movq -8(%rbp), %rdi callq _syslog_queue_put_item movq _syslog_queue(%rip), %rdi xorl %eax, %eax movl %eax, %esi callq _pthread_join LBB2_3: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _vsyslog_async ## -- Begin function vsyslog_async .p2align 4, 0x90 _vsyslog_async: ## @vsyslog_async .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movl %edi, -4(%rbp) movq %rsi, -16(%rbp) movq %rdx, -24(%rbp) xorl %edi, %edi callq _syslog_queue_get_free_item movq %rax, -32(%rbp) cmpq $0, -32(%rbp) jne LBB3_2 ## %bb.1: jmp LBB3_5 LBB3_2: movq -32(%rbp), %rax addq $4, %rax movq %rax, -40(%rbp) movl $2048, -44(%rbp) ## imm = 0x800 movq -40(%rbp), %rdi movslq -44(%rbp), %rsi movq -16(%rbp), %r8 movq -24(%rbp), %r9 xorl %edx, %edx movq $-1, %rcx callq ___vsnprintf_chk movl %eax, -48(%rbp) movl -48(%rbp), %eax cmpl -44(%rbp), %eax jl LBB3_4 ## %bb.3: movl -44(%rbp), %eax subl $1, %eax movl %eax, -48(%rbp) movq -40(%rbp), %rax movslq -48(%rbp), %rcx movb $0, (%rax,%rcx) LBB3_4: movl -48(%rbp), %ecx movq -32(%rbp), %rax movl %ecx, 2052(%rax) movl -4(%rbp), %ecx movq -32(%rbp), %rax movl %ecx, 2056(%rax) movq -32(%rbp), %rax movl $0, (%rax) movq -32(%rbp), %rdi callq _syslog_queue_put_item LBB3_5: addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function syslog_queue_get_free_item _syslog_queue_get_free_item: ## @syslog_queue_get_free_item .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl %edi, -12(%rbp) leaq _syslog_wi_free_mutex(%rip), %rdi callq _pthread_mutex_lock LBB4_1: ## =>This Inner Loop Header: Depth=1 cmpq $0, _syslog_wi_free(%rip) jne LBB4_5 ## %bb.2: ## in Loop: Header=BB4_1 Depth=1 cmpl $0, -12(%rbp) jne LBB4_4 ## %bb.3: movl _syslog_dropped_items(%rip), %eax addl $1, %eax movl %eax, _syslog_dropped_items(%rip) leaq _syslog_wi_free_mutex(%rip), %rdi callq _pthread_mutex_unlock movq $0, -8(%rbp) jmp LBB4_6 LBB4_4: ## in Loop: Header=BB4_1 Depth=1 leaq _syslog_wi_free_cond(%rip), %rdi leaq _syslog_wi_free_mutex(%rip), %rsi callq _pthread_cond_wait jmp LBB4_1 LBB4_5: movq _syslog_wi_free(%rip), %rax movq %rax, -24(%rbp) movq _syslog_wi_free(%rip), %rax movq 2064(%rax), %rax movq %rax, _syslog_wi_free(%rip) leaq _syslog_wi_free_mutex(%rip), %rdi callq _pthread_mutex_unlock movq -24(%rbp), %rax movq %rax, -8(%rbp) LBB4_6: movq -8(%rbp), %rax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function syslog_queue_put_item _syslog_queue_put_item: ## @syslog_queue_put_item .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 _syslog_queue_mutex(%rip), %rdi callq _pthread_mutex_lock movq -8(%rbp), %rax movq $0, 2064(%rax) cmpq $0, _syslog_wi_queue(%rip) jne LBB5_2 ## %bb.1: movq -8(%rbp), %rax movq %rax, _syslog_wi_queue(%rip) movq -8(%rbp), %rax movq %rax, _syslog_wi_queue_tail(%rip) jmp LBB5_3 LBB5_2: movq -8(%rbp), %rcx movq _syslog_wi_queue_tail(%rip), %rax movq %rcx, 2064(%rax) movq -8(%rbp), %rax movq %rax, _syslog_wi_queue_tail(%rip) LBB5_3: leaq _syslog_queue_cond(%rip), %rdi callq _pthread_cond_signal leaq _syslog_queue_mutex(%rip), %rdi callq _pthread_mutex_unlock addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function syslog_queue_run _syslog_queue_run: ## @syslog_queue_run .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 LBB6_1: ## =>This Loop Header: Depth=1 ## Child Loop BB6_2 Depth 2 leaq _syslog_queue_mutex(%rip), %rdi callq _pthread_mutex_lock LBB6_2: ## Parent Loop BB6_1 Depth=1 ## => This Inner Loop Header: Depth=2 cmpq $0, _syslog_wi_queue(%rip) jne LBB6_4 ## %bb.3: ## in Loop: Header=BB6_2 Depth=2 leaq _syslog_queue_cond(%rip), %rdi leaq _syslog_queue_mutex(%rip), %rsi callq _pthread_cond_wait jmp LBB6_2 LBB6_4: ## in Loop: Header=BB6_1 Depth=1 movq _syslog_wi_queue(%rip), %rax movq %rax, -8(%rbp) movq -8(%rbp), %rax movq 2064(%rax), %rax movq %rax, _syslog_wi_queue(%rip) leaq _syslog_queue_mutex(%rip), %rdi callq _pthread_mutex_unlock movq -8(%rbp), %rax movl (%rax), %eax movl %eax, -12(%rbp) ## 4-byte Spill testl %eax, %eax je LBB6_5 jmp LBB6_9 LBB6_9: ## in Loop: Header=BB6_1 Depth=1 movl -12(%rbp), %eax ## 4-byte Reload subl $1, %eax je LBB6_6 jmp LBB6_7 LBB6_5: ## in Loop: Header=BB6_1 Depth=1 movq -8(%rbp), %rax movl 2056(%rax), %edi movq -8(%rbp), %rdx addq $4, %rdx leaq L_.str(%rip), %rsi movb $0, %al callq _syslog$DARWIN_EXTSN jmp LBB6_8 LBB6_6: addq $16, %rsp popq %rbp retq LBB6_7: ## in Loop: Header=BB6_1 Depth=1 jmp LBB6_8 LBB6_8: ## in Loop: Header=BB6_1 Depth=1 leaq _syslog_wi_free_mutex(%rip), %rdi callq _pthread_mutex_lock movq _syslog_wi_free(%rip), %rcx movq -8(%rbp), %rax movq %rcx, 2064(%rax) movq -8(%rbp), %rax movq %rax, _syslog_wi_free(%rip) leaq _syslog_wi_free_cond(%rip), %rdi callq _pthread_cond_signal leaq _syslog_wi_free_mutex(%rip), %rdi callq _pthread_mutex_unlock jmp LBB6_1 .cfi_endproc ## -- End function .section __DATA,__data .p2align 3 ## @syslog_init_mutex _syslog_init_mutex: .quad 850045863 ## 0x32aaaba7 .space 56 .zerofill __DATA,__bss,_syslog_queue_inited,4,2 ## @syslog_queue_inited .zerofill __DATA,__bss,_syslog_wi_pool,132608,4 ## @syslog_wi_pool .zerofill __DATA,__bss,_syslog_wi_free,8,3 ## @syslog_wi_free .zerofill __DATA,__bss,_syslog_wi_queue,8,3 ## @syslog_wi_queue .zerofill __DATA,__bss,_syslog_wi_queue_tail,8,3 ## @syslog_wi_queue_tail .zerofill __DATA,__bss,_syslog_dropped_items,4,2 ## @syslog_dropped_items .zerofill __DATA,__bss,_syslog_queue_cond,48,3 ## @syslog_queue_cond .zerofill __DATA,__bss,_syslog_queue_mutex,64,3 ## @syslog_queue_mutex .zerofill __DATA,__bss,_syslog_wi_free_cond,48,3 ## @syslog_wi_free_cond .zerofill __DATA,__bss,_syslog_wi_free_mutex,64,3 ## @syslog_wi_free_mutex .zerofill __DATA,__bss,_syslog_queue,8,3 ## @syslog_queue .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%s" .subsections_via_symbols
the_stack_data/57950051.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, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] stur wzr, [x29, #-20] str wzr, [sp, #24] mov w8, #11 str w8, [sp, #20] b LBB0_1 LBB0_1: ; =>This Loop Header: Depth=1 ; Child Loop BB0_3 Depth 2 ldr w8, [sp, #20] subs w8, w8, #0 cset w8, lt tbnz w8, #0, LBB0_11 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 stur xzr, [x29, #-16] str wzr, [sp, #16] b LBB0_3 LBB0_3: ; Parent Loop BB0_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldrsw x8, [sp, #16] adrp x9, _size@PAGE ldr x9, [x9, _size@PAGEOFF] subs x8, x8, x9 cset w8, hs tbnz w8, #0, LBB0_6 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_3 Depth=2 ldrsw x9, [sp, #16] adrp x8, _arr@GOTPAGE ldr x8, [x8, _arr@GOTPAGEOFF] ldr w8, [x8, x9, lsl #2] ldr w9, [sp, #20] asr w8, w8, w9 and w9, w8, #0x1 sub x8, x29, #16 add x9, x8, w9, sxtw #2 ldr w8, [x9] add w8, w8, #1 str w8, [x9] b LBB0_5 LBB0_5: ; in Loop: Header=BB0_3 Depth=2 ldr w8, [sp, #16] add w8, w8, #1 str w8, [sp, #16] b LBB0_3 LBB0_6: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-12] ldur w9, [x29, #-16] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB0_8 b LBB0_7 LBB0_7: ; in Loop: Header=BB0_1 Depth=1 ldr w9, [sp, #20] mov w8, #1 lsl w9, w8, w9 ldur w8, [x29, #-20] orr w8, w8, w9 stur w8, [x29, #-20] b LBB0_9 LBB0_8: ; in Loop: Header=BB0_1 Depth=1 ldr w9, [sp, #20] mov w8, #1 lsl w9, w8, w9 ldr w8, [sp, #24] orr w8, w8, w9 str w8, [sp, #24] b LBB0_9 LBB0_9: ; in Loop: Header=BB0_1 Depth=1 b LBB0_10 LBB0_10: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #20] subs w8, w8, #1 str w8, [sp, #20] b LBB0_1 LBB0_11: ldur w8, [x29, #-20] ldr w9, [sp, #24] mul w8, w8, w9 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_13 b LBB0_12 LBB0_12: bl ___stack_chk_fail LBB0_13: ldr w0, [sp, #12] ; 4-byte Folded Reload ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _mostcommon ; -- Begin function mostcommon .p2align 2 _mostcommon: ; @mostcommon .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 adrp x8, _xs_size@GOTPAGE ldr x8, [x8, _xs_size@GOTPAGEOFF] str x8, [sp, #8] ; 8-byte Folded Spill adrp x9, _xs@GOTPAGE ldr x9, [x9, _xs@GOTPAGEOFF] str x9, [sp, #16] ; 8-byte Folded Spill add x9, x9, #1, lsl #12 ; =4096 str x9, [sp, #24] ; 8-byte Folded Spill adrp x9, _arr@GOTPAGE ldr x9, [x9, _arr@GOTPAGEOFF] str x9, [sp, #48] str xzr, [x8] str xzr, [x8, #8] adrp x8, _size@PAGE ldr x8, [x8, _size@PAGEOFF] ; kill: def $w8 killed $w8 killed $x8 str w8, [sp, #44] mov w8, #11 str w8, [sp, #40] b LBB1_1 LBB1_1: ; =>This Loop Header: Depth=1 ; Child Loop BB1_3 Depth 2 ldr w8, [sp, #40] subs w8, w8, #0 cset w8, lt tbnz w8, #0, LBB1_13 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 str wzr, [sp, #36] b LBB1_3 LBB1_3: ; Parent Loop BB1_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #36] ldr w9, [sp, #44] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_6 b LBB1_4 LBB1_4: ; in Loop: Header=BB1_3 Depth=2 ldr x8, [sp, #8] ; 8-byte Folded Reload ldr x10, [sp, #16] ; 8-byte Folded Reload ldr x9, [sp, #48] ldrsw x11, [sp, #36] ldr w9, [x9, x11, lsl #2] ldr w11, [sp, #40] asr w9, w9, w11 and w9, w9, #0x1 str w9, [sp, #32] ldr x9, [sp, #48] ldrsw x11, [sp, #36] ldr w9, [x9, x11, lsl #2] ldrsw x11, [sp, #32] add x10, x10, x11, lsl #12 ldrsw x11, [sp, #32] ldr x11, [x8, x11, lsl #3] str w9, [x10, x11, lsl #2] ldrsw x9, [sp, #32] add x9, x8, x9, lsl #3 ldr x8, [x9] add x8, x8, #1 str x8, [x9] b LBB1_5 LBB1_5: ; in Loop: Header=BB1_3 Depth=2 ldr w8, [sp, #36] add w8, w8, #1 str w8, [sp, #36] b LBB1_3 LBB1_6: ; in Loop: Header=BB1_1 Depth=1 ldr x9, [sp, #8] ; 8-byte Folded Reload ldr x8, [x9, #8] ldr x9, [x9] subs x8, x8, x9 cset w8, lo tbnz w8, #0, LBB1_8 b LBB1_7 LBB1_7: ; in Loop: Header=BB1_1 Depth=1 ldr x8, [sp, #8] ; 8-byte Folded Reload ldr x9, [sp, #24] ; 8-byte Folded Reload str x9, [sp, #48] ldr x8, [x8, #8] ; kill: def $w8 killed $w8 killed $x8 str w8, [sp, #44] b LBB1_9 LBB1_8: ; in Loop: Header=BB1_1 Depth=1 ldr x8, [sp, #8] ; 8-byte Folded Reload ldr x9, [sp, #16] ; 8-byte Folded Reload str x9, [sp, #48] ldr x8, [x8] ; kill: def $w8 killed $w8 killed $x8 str w8, [sp, #44] b LBB1_9 LBB1_9: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #44] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB1_11 b LBB1_10 LBB1_10: ldr x8, [sp, #48] ldr w8, [x8] str w8, [sp, #60] b LBB1_14 LBB1_11: ; in Loop: Header=BB1_1 Depth=1 ldr x8, [sp, #8] ; 8-byte Folded Reload str xzr, [x8] str xzr, [x8, #8] b LBB1_12 LBB1_12: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #40] subs w8, w8, #1 str w8, [sp, #40] b LBB1_1 LBB1_13: mov w8, #-1 str w8, [sp, #60] b LBB1_14 LBB1_14: ldr w0, [sp, #60] add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _leastcommon ; -- Begin function leastcommon .p2align 2 _leastcommon: ; @leastcommon .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 adrp x8, _xs_size@GOTPAGE ldr x8, [x8, _xs_size@GOTPAGEOFF] str x8, [sp, #8] ; 8-byte Folded Spill adrp x9, _xs@GOTPAGE ldr x9, [x9, _xs@GOTPAGEOFF] str x9, [sp, #16] ; 8-byte Folded Spill add x9, x9, #1, lsl #12 ; =4096 str x9, [sp, #24] ; 8-byte Folded Spill adrp x9, _arr@GOTPAGE ldr x9, [x9, _arr@GOTPAGEOFF] str x9, [sp, #48] adrp x9, _size@PAGE ldr x9, [x9, _size@PAGEOFF] ; kill: def $w9 killed $w9 killed $x9 str w9, [sp, #44] str xzr, [x8] str xzr, [x8, #8] mov w8, #11 str w8, [sp, #40] b LBB2_1 LBB2_1: ; =>This Loop Header: Depth=1 ; Child Loop BB2_3 Depth 2 ldr w8, [sp, #40] subs w8, w8, #0 cset w8, lt tbnz w8, #0, LBB2_13 b LBB2_2 LBB2_2: ; in Loop: Header=BB2_1 Depth=1 str wzr, [sp, #36] b LBB2_3 LBB2_3: ; Parent Loop BB2_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #36] ldr w9, [sp, #44] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB2_6 b LBB2_4 LBB2_4: ; in Loop: Header=BB2_3 Depth=2 ldr x8, [sp, #8] ; 8-byte Folded Reload ldr x10, [sp, #16] ; 8-byte Folded Reload ldr x9, [sp, #48] ldrsw x11, [sp, #36] ldr w9, [x9, x11, lsl #2] ldr w11, [sp, #40] asr w9, w9, w11 and w9, w9, #0x1 str w9, [sp, #32] ldr x9, [sp, #48] ldrsw x11, [sp, #36] ldr w9, [x9, x11, lsl #2] ldrsw x11, [sp, #32] add x10, x10, x11, lsl #12 ldrsw x11, [sp, #32] ldr x11, [x8, x11, lsl #3] str w9, [x10, x11, lsl #2] ldrsw x9, [sp, #32] add x9, x8, x9, lsl #3 ldr x8, [x9] add x8, x8, #1 str x8, [x9] b LBB2_5 LBB2_5: ; in Loop: Header=BB2_3 Depth=2 ldr w8, [sp, #36] add w8, w8, #1 str w8, [sp, #36] b LBB2_3 LBB2_6: ; in Loop: Header=BB2_1 Depth=1 ldr x9, [sp, #8] ; 8-byte Folded Reload ldr x8, [x9] ldr x9, [x9, #8] subs x8, x8, x9 cset w8, hi tbnz w8, #0, LBB2_8 b LBB2_7 LBB2_7: ; in Loop: Header=BB2_1 Depth=1 ldr x8, [sp, #8] ; 8-byte Folded Reload ldr x9, [sp, #16] ; 8-byte Folded Reload str x9, [sp, #48] ldr x8, [x8] ; kill: def $w8 killed $w8 killed $x8 str w8, [sp, #44] b LBB2_9 LBB2_8: ; in Loop: Header=BB2_1 Depth=1 ldr x8, [sp, #8] ; 8-byte Folded Reload ldr x9, [sp, #24] ; 8-byte Folded Reload str x9, [sp, #48] ldr x8, [x8, #8] ; kill: def $w8 killed $w8 killed $x8 str w8, [sp, #44] b LBB2_9 LBB2_9: ; in Loop: Header=BB2_1 Depth=1 ldr w8, [sp, #44] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB2_11 b LBB2_10 LBB2_10: ldr x8, [sp, #48] ldr w8, [x8] str w8, [sp, #60] b LBB2_14 LBB2_11: ; in Loop: Header=BB2_1 Depth=1 ldr x8, [sp, #8] ; 8-byte Folded Reload str xzr, [x8] str xzr, [x8, #8] b LBB2_12 LBB2_12: ; in Loop: Header=BB2_1 Depth=1 ldr w8, [sp, #40] subs w8, w8, #1 str w8, [sp, #40] b LBB2_1 LBB2_13: mov w8, #-1 str w8, [sp, #60] b LBB2_14 LBB2_14: ldr w0, [sp, #60] add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _binToDec ; -- Begin function binToDec .p2align 2 _binToDec: ; @binToDec .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str w0, [sp, #28] str wzr, [sp, #24] mov w8, #12 str w8, [sp, #20] b LBB3_1 LBB3_1: ; =>This Loop Header: Depth=1 ; Child Loop BB3_3 Depth 2 ldr w8, [sp, #20] subs w8, w8, #0 cset w8, lt tbnz w8, #0, LBB3_8 b LBB3_2 LBB3_2: ; in Loop: Header=BB3_1 Depth=1 mov w8, #1 str w8, [sp, #16] str wzr, [sp, #12] b LBB3_3 LBB3_3: ; Parent Loop BB3_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #12] ldr w9, [sp, #20] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB3_6 b LBB3_4 LBB3_4: ; in Loop: Header=BB3_3 Depth=2 ldr w8, [sp, #16] lsl w8, w8, #1 str w8, [sp, #16] b LBB3_5 LBB3_5: ; in Loop: Header=BB3_3 Depth=2 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB3_3 LBB3_6: ; in Loop: Header=BB3_1 Depth=1 ldr w8, [sp, #16] ldr w9, [sp, #28] ldr w10, [sp, #20] asr w9, w9, w10 and w9, w9, #0x1 mul w9, w8, w9 ldr w8, [sp, #24] add w8, w8, w9 str w8, [sp, #24] b LBB3_7 LBB3_7: ; in Loop: Header=BB3_1 Depth=1 ldr w8, [sp, #20] subs w8, w8, #1 str w8, [sp, #20] b LBB3_1 LBB3_8: ldr w0, [sp, #24] add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _g ; -- Begin function g .p2align 2 _g: ; @g .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] str wzr, [sp, #8] bl _mostcommon bl _binToDec str w0, [sp, #8] bl _leastcommon bl _binToDec stur w0, [x29, #-4] ldur w8, [x29, #-4] ldr w9, [sp, #8] mul w0, w8, w9 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #80 .cfi_def_cfa_offset 80 stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp, #64 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] stur wzr, [x29, #-28] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF bl _fopen str x0, [sp, #24] b LBB5_1 LBB5_1: ; =>This Inner Loop Header: Depth=1 ldr x0, [sp, #24] mov x9, sp sub x8, x29, #21 str x8, [x9] adrp x1, l_.str.2@PAGE add x1, x1, l_.str.2@PAGEOFF bl _fscanf adds w8, w0, #1 cset w8, eq tbnz w8, #0, LBB5_3 b LBB5_2 LBB5_2: ; in Loop: Header=BB5_1 Depth=1 sub x0, x29, #21 mov x1, #0 mov w2, #2 bl _strtol adrp x9, _size@PAGE ldr x10, [x9, _size@PAGEOFF] add x8, x10, #1 str x8, [x9, _size@PAGEOFF] adrp x9, _arr@GOTPAGE ldr x9, [x9, _arr@GOTPAGEOFF] mov x8, x0 str w8, [x9, x10, lsl #2] b LBB5_1 LBB5_3: ldr x0, [sp, #24] bl _fclose bl _f 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 bl _g mov x9, sp ; implicit-def: $x8 mov x8, x0 str x8, [x9] adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf ldur w8, [x29, #-28] 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, LBB5_5 b LBB5_4 LBB5_4: bl ___stack_chk_fail LBB5_5: ldr w0, [sp, #20] ; 4-byte Folded Reload ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .globl _size ; @size .zerofill __DATA,__common,_size,8,3 .comm _arr,4096,2 ; @arr .comm _xs_size,16,3 ; @xs_size .comm _xs,8192,2 ; @xs .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "input" l_.str.1: ; @.str.1 .asciz "r" l_.str.2: ; @.str.2 .asciz "%s\n" l_.str.3: ; @.str.3 .asciz "Part 1: %d\n" l_.str.4: ; @.str.4 .asciz "Part 2: %d\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _f ## -- Begin function f .p2align 4, 0x90 _f: ## @f .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -20(%rbp) movl $0, -24(%rbp) movl $11, -28(%rbp) LBB0_1: ## =>This Loop Header: Depth=1 ## Child Loop BB0_3 Depth 2 cmpl $0, -28(%rbp) jl LBB0_11 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 leaq -16(%rbp), %rdi xorl %esi, %esi movl $8, %edx callq _memset movl $0, -32(%rbp) LBB0_3: ## Parent Loop BB0_1 Depth=1 ## => This Inner Loop Header: Depth=2 movslq -32(%rbp), %rax cmpq _size(%rip), %rax jae LBB0_6 ## %bb.4: ## in Loop: Header=BB0_3 Depth=2 movslq -32(%rbp), %rcx movq _arr@GOTPCREL(%rip), %rax movl (%rax,%rcx,4), %eax movl -28(%rbp), %ecx ## kill: def $cl killed $ecx sarl %cl, %eax andl $1, %eax cltq movl -16(%rbp,%rax,4), %ecx addl $1, %ecx movl %ecx, -16(%rbp,%rax,4) ## %bb.5: ## in Loop: Header=BB0_3 Depth=2 movl -32(%rbp), %eax addl $1, %eax movl %eax, -32(%rbp) jmp LBB0_3 LBB0_6: ## in Loop: Header=BB0_1 Depth=1 movl -12(%rbp), %eax cmpl -16(%rbp), %eax jle LBB0_8 ## %bb.7: ## in Loop: Header=BB0_1 Depth=1 movl -28(%rbp), %ecx movl $1, %eax ## kill: def $cl killed $ecx shll %cl, %eax orl -20(%rbp), %eax movl %eax, -20(%rbp) jmp LBB0_9 LBB0_8: ## in Loop: Header=BB0_1 Depth=1 movl -28(%rbp), %ecx movl $1, %eax ## kill: def $cl killed $ecx shll %cl, %eax orl -24(%rbp), %eax movl %eax, -24(%rbp) LBB0_9: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_10 LBB0_10: ## in Loop: Header=BB0_1 Depth=1 movl -28(%rbp), %eax addl $-1, %eax movl %eax, -28(%rbp) jmp LBB0_1 LBB0_11: movl -20(%rbp), %eax imull -24(%rbp), %eax movl %eax, -36(%rbp) ## 4-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_13 ## %bb.12: movl -36(%rbp), %eax ## 4-byte Reload addq $48, %rsp popq %rbp retq LBB0_13: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _mostcommon ## -- Begin function mostcommon .p2align 4, 0x90 _mostcommon: ## @mostcommon .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq _arr@GOTPCREL(%rip), %rax movq %rax, -16(%rbp) movq _xs_size@GOTPCREL(%rip), %rax movq $0, (%rax) movq _xs_size@GOTPCREL(%rip), %rax movq $0, 8(%rax) movq _size(%rip), %rax ## kill: def $eax killed $eax killed $rax movl %eax, -20(%rbp) movl $11, -24(%rbp) LBB1_1: ## =>This Loop Header: Depth=1 ## Child Loop BB1_3 Depth 2 cmpl $0, -24(%rbp) jl LBB1_13 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 movl $0, -28(%rbp) LBB1_3: ## Parent Loop BB1_1 Depth=1 ## => This Inner Loop Header: Depth=2 movl -28(%rbp), %eax cmpl -20(%rbp), %eax jge LBB1_6 ## %bb.4: ## in Loop: Header=BB1_3 Depth=2 movq -16(%rbp), %rax movslq -28(%rbp), %rcx movl (%rax,%rcx,4), %eax movl -24(%rbp), %ecx ## kill: def $cl killed $ecx sarl %cl, %eax andl $1, %eax movl %eax, -32(%rbp) movq -16(%rbp), %rax movslq -28(%rbp), %rcx movl (%rax,%rcx,4), %edx movslq -32(%rbp), %rcx movq _xs@GOTPCREL(%rip), %rax shlq $12, %rcx addq %rcx, %rax movslq -32(%rbp), %rsi movq _xs_size@GOTPCREL(%rip), %rcx movq (%rcx,%rsi,8), %rcx movl %edx, (%rax,%rcx,4) movslq -32(%rbp), %rcx movq _xs_size@GOTPCREL(%rip), %rax movq (%rax,%rcx,8), %rdx addq $1, %rdx movq _xs_size@GOTPCREL(%rip), %rax movq %rdx, (%rax,%rcx,8) ## %bb.5: ## in Loop: Header=BB1_3 Depth=2 movl -28(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) jmp LBB1_3 LBB1_6: ## in Loop: Header=BB1_1 Depth=1 movq _xs_size@GOTPCREL(%rip), %rax movq 8(%rax), %rax movq _xs_size@GOTPCREL(%rip), %rcx cmpq (%rcx), %rax jb LBB1_8 ## %bb.7: ## in Loop: Header=BB1_1 Depth=1 movq _xs@GOTPCREL(%rip), %rax addq $4096, %rax ## imm = 0x1000 movq %rax, -16(%rbp) movq _xs_size@GOTPCREL(%rip), %rax movq 8(%rax), %rax ## kill: def $eax killed $eax killed $rax movl %eax, -20(%rbp) jmp LBB1_9 LBB1_8: ## in Loop: Header=BB1_1 Depth=1 movq _xs@GOTPCREL(%rip), %rax movq %rax, -16(%rbp) movq _xs_size@GOTPCREL(%rip), %rax movq (%rax), %rax ## kill: def $eax killed $eax killed $rax movl %eax, -20(%rbp) LBB1_9: ## in Loop: Header=BB1_1 Depth=1 cmpl $1, -20(%rbp) jne LBB1_11 ## %bb.10: movq -16(%rbp), %rax movl (%rax), %eax movl %eax, -4(%rbp) jmp LBB1_14 LBB1_11: ## in Loop: Header=BB1_1 Depth=1 movq _xs_size@GOTPCREL(%rip), %rax movq $0, (%rax) movq _xs_size@GOTPCREL(%rip), %rax movq $0, 8(%rax) ## %bb.12: ## in Loop: Header=BB1_1 Depth=1 movl -24(%rbp), %eax addl $-1, %eax movl %eax, -24(%rbp) jmp LBB1_1 LBB1_13: movl $-1, -4(%rbp) LBB1_14: movl -4(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .globl _leastcommon ## -- Begin function leastcommon .p2align 4, 0x90 _leastcommon: ## @leastcommon .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq _arr@GOTPCREL(%rip), %rax movq %rax, -16(%rbp) movq _size(%rip), %rax ## kill: def $eax killed $eax killed $rax movl %eax, -20(%rbp) movq _xs_size@GOTPCREL(%rip), %rax movq $0, (%rax) movq _xs_size@GOTPCREL(%rip), %rax movq $0, 8(%rax) movl $11, -24(%rbp) LBB2_1: ## =>This Loop Header: Depth=1 ## Child Loop BB2_3 Depth 2 cmpl $0, -24(%rbp) jl LBB2_13 ## %bb.2: ## in Loop: Header=BB2_1 Depth=1 movl $0, -28(%rbp) LBB2_3: ## Parent Loop BB2_1 Depth=1 ## => This Inner Loop Header: Depth=2 movl -28(%rbp), %eax cmpl -20(%rbp), %eax jge LBB2_6 ## %bb.4: ## in Loop: Header=BB2_3 Depth=2 movq -16(%rbp), %rax movslq -28(%rbp), %rcx movl (%rax,%rcx,4), %eax movl -24(%rbp), %ecx ## kill: def $cl killed $ecx sarl %cl, %eax andl $1, %eax movl %eax, -32(%rbp) movq -16(%rbp), %rax movslq -28(%rbp), %rcx movl (%rax,%rcx,4), %edx movslq -32(%rbp), %rcx movq _xs@GOTPCREL(%rip), %rax shlq $12, %rcx addq %rcx, %rax movslq -32(%rbp), %rsi movq _xs_size@GOTPCREL(%rip), %rcx movq (%rcx,%rsi,8), %rcx movl %edx, (%rax,%rcx,4) movslq -32(%rbp), %rcx movq _xs_size@GOTPCREL(%rip), %rax movq (%rax,%rcx,8), %rdx addq $1, %rdx movq _xs_size@GOTPCREL(%rip), %rax movq %rdx, (%rax,%rcx,8) ## %bb.5: ## in Loop: Header=BB2_3 Depth=2 movl -28(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) jmp LBB2_3 LBB2_6: ## in Loop: Header=BB2_1 Depth=1 movq _xs_size@GOTPCREL(%rip), %rax movq (%rax), %rax movq _xs_size@GOTPCREL(%rip), %rcx cmpq 8(%rcx), %rax ja LBB2_8 ## %bb.7: ## in Loop: Header=BB2_1 Depth=1 movq _xs@GOTPCREL(%rip), %rax movq %rax, -16(%rbp) movq _xs_size@GOTPCREL(%rip), %rax movq (%rax), %rax ## kill: def $eax killed $eax killed $rax movl %eax, -20(%rbp) jmp LBB2_9 LBB2_8: ## in Loop: Header=BB2_1 Depth=1 movq _xs@GOTPCREL(%rip), %rax addq $4096, %rax ## imm = 0x1000 movq %rax, -16(%rbp) movq _xs_size@GOTPCREL(%rip), %rax movq 8(%rax), %rax ## kill: def $eax killed $eax killed $rax movl %eax, -20(%rbp) LBB2_9: ## in Loop: Header=BB2_1 Depth=1 cmpl $1, -20(%rbp) jne LBB2_11 ## %bb.10: movq -16(%rbp), %rax movl (%rax), %eax movl %eax, -4(%rbp) jmp LBB2_14 LBB2_11: ## in Loop: Header=BB2_1 Depth=1 movq _xs_size@GOTPCREL(%rip), %rax movq $0, (%rax) movq _xs_size@GOTPCREL(%rip), %rax movq $0, 8(%rax) ## %bb.12: ## in Loop: Header=BB2_1 Depth=1 movl -24(%rbp), %eax addl $-1, %eax movl %eax, -24(%rbp) jmp LBB2_1 LBB2_13: movl $-1, -4(%rbp) LBB2_14: movl -4(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .globl _binToDec ## -- Begin function binToDec .p2align 4, 0x90 _binToDec: ## @binToDec .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, -4(%rbp) movl $0, -8(%rbp) movl $12, -12(%rbp) LBB3_1: ## =>This Loop Header: Depth=1 ## Child Loop BB3_3 Depth 2 cmpl $0, -12(%rbp) jl LBB3_8 ## %bb.2: ## in Loop: Header=BB3_1 Depth=1 movl $1, -16(%rbp) movl $0, -20(%rbp) LBB3_3: ## Parent Loop BB3_1 Depth=1 ## => This Inner Loop Header: Depth=2 movl -20(%rbp), %eax cmpl -12(%rbp), %eax jge LBB3_6 ## %bb.4: ## in Loop: Header=BB3_3 Depth=2 movl -16(%rbp), %eax shll $1, %eax movl %eax, -16(%rbp) ## %bb.5: ## in Loop: Header=BB3_3 Depth=2 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB3_3 LBB3_6: ## in Loop: Header=BB3_1 Depth=1 movl -16(%rbp), %eax movl -4(%rbp), %edx movl -12(%rbp), %ecx ## kill: def $cl killed $ecx sarl %cl, %edx movl %edx, %ecx andl $1, %ecx imull %ecx, %eax addl -8(%rbp), %eax movl %eax, -8(%rbp) ## %bb.7: ## in Loop: Header=BB3_1 Depth=1 movl -12(%rbp), %eax addl $-1, %eax movl %eax, -12(%rbp) jmp LBB3_1 LBB3_8: movl -8(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .globl _g ## -- Begin function g .p2align 4, 0x90 _g: ## @g .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) movl $0, -8(%rbp) callq _mostcommon movl %eax, %edi callq _binToDec movl %eax, -8(%rbp) callq _leastcommon movl %eax, %edi callq _binToDec movl %eax, -4(%rbp) movl -4(%rbp), %eax imull -8(%rbp), %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -28(%rbp) leaq L_.str(%rip), %rdi leaq L_.str.1(%rip), %rsi callq _fopen movq %rax, -40(%rbp) LBB5_1: ## =>This Inner Loop Header: Depth=1 movq -40(%rbp), %rdi leaq -21(%rbp), %rdx leaq L_.str.2(%rip), %rsi movb $0, %al callq _fscanf cmpl $-1, %eax je LBB5_3 ## %bb.2: ## in Loop: Header=BB5_1 Depth=1 leaq -21(%rbp), %rdi xorl %eax, %eax movl %eax, %esi movl $2, %edx callq _strtol movl %eax, %edx movq _size(%rip), %rcx movq %rcx, %rax addq $1, %rax movq %rax, _size(%rip) movq _arr@GOTPCREL(%rip), %rax movl %edx, (%rax,%rcx,4) jmp LBB5_1 LBB5_3: movq -40(%rbp), %rdi callq _fclose callq _f movl %eax, %esi leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf callq _g movl %eax, %esi leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf movl -28(%rbp), %eax movl %eax, -44(%rbp) ## 4-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB5_5 ## %bb.4: movl -44(%rbp), %eax ## 4-byte Reload addq $48, %rsp popq %rbp retq LBB5_5: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _size ## @size .zerofill __DATA,__common,_size,8,3 .comm _arr,4096,4 ## @arr .comm _xs_size,16,4 ## @xs_size .comm _xs,8192,4 ## @xs .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "input" L_.str.1: ## @.str.1 .asciz "r" L_.str.2: ## @.str.2 .asciz "%s\n" L_.str.3: ## @.str.3 .asciz "Part 1: %d\n" L_.str.4: ## @.str.4 .asciz "Part 2: %d\n" .subsections_via_symbols
the_stack_data/1271305.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _getopt_long ; -- Begin function getopt_long .p2align 2 _getopt_long: ; @getopt_long .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur w0, [x29, #-4] stur x1, [x29, #-16] str x2, [sp, #24] str x3, [sp, #16] str x4, [sp, #8] ldur w0, [x29, #-4] ldur x1, [x29, #-16] ldr x2, [sp, #24] ldr x3, [sp, #16] ldr x4, [sp, #8] mov w5, #0 bl ___getopt_long ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function __getopt_long ___getopt_long: ; @__getopt_long .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, _optind@GOTPAGE ldr x8, [x8, _optind@GOTPAGEOFF] str x8, [sp] ; 8-byte Folded Spill stur w0, [x29, #-8] stur x1, [x29, #-16] stur x2, [x29, #-24] stur x3, [x29, #-32] str x4, [sp, #40] str w5, [sp, #36] ldr w8, [x8] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: adrp x8, ___optreset@GOTPAGE ldr x8, [x8, ___optreset@GOTPAGEOFF] ldr w8, [x8] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB1_3 b LBB1_2 LBB1_2: ldr x9, [sp] ; 8-byte Folded Reload adrp x8, ___optreset@GOTPAGE ldr x8, [x8, ___optreset@GOTPAGEOFF] str wzr, [x8] adrp x8, ___optpos@GOTPAGE ldr x8, [x8, ___optpos@GOTPAGEOFF] str wzr, [x8] mov w8, #1 str w8, [x9] b LBB1_3 LBB1_3: ldr x8, [sp] ; 8-byte Folded Reload ldr w8, [x8] ldur w9, [x29, #-8] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_5 b LBB1_4 LBB1_4: ldr x9, [sp] ; 8-byte Folded Reload ldur x8, [x29, #-16] ldrsw x9, [x9] ldr x8, [x8, x9, lsl #3] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB1_6 b LBB1_5 LBB1_5: mov w8, #-1 stur w8, [x29, #-4] b LBB1_25 LBB1_6: ldr x8, [sp] ; 8-byte Folded Reload ldr w8, [x8] str w8, [sp, #28] ldur x8, [x29, #-24] ldrsb w8, [x8] subs w8, w8, #43 cset w8, eq tbnz w8, #0, LBB1_18 b LBB1_7 LBB1_7: ldur x8, [x29, #-24] ldrsb w8, [x8] subs w8, w8, #45 cset w8, eq tbnz w8, #0, LBB1_18 b LBB1_8 LBB1_8: ldr x8, [sp] ; 8-byte Folded Reload ldr w8, [x8] str w8, [sp, #20] b LBB1_9 LBB1_9: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #20] ldur w9, [x29, #-8] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_11 b LBB1_10 LBB1_10: ; in Loop: Header=BB1_9 Depth=1 ldur x8, [x29, #-16] ldrsw x9, [sp, #20] ldr x8, [x8, x9, lsl #3] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB1_12 b LBB1_11 LBB1_11: mov w8, #-1 stur w8, [x29, #-4] b LBB1_25 LBB1_12: ; in Loop: Header=BB1_9 Depth=1 ldur x8, [x29, #-16] ldrsw x9, [sp, #20] ldr x8, [x8, x9, lsl #3] ldrsb w8, [x8] subs w8, w8, #45 cset w8, ne tbnz w8, #0, LBB1_15 b LBB1_13 LBB1_13: ; in Loop: Header=BB1_9 Depth=1 ldur x8, [x29, #-16] ldrsw x9, [sp, #20] ldr x8, [x8, x9, lsl #3] ldrsb w8, [x8, #1] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB1_15 b LBB1_14 LBB1_14: b LBB1_17 LBB1_15: ; in Loop: Header=BB1_9 Depth=1 b LBB1_16 LBB1_16: ; in Loop: Header=BB1_9 Depth=1 ldr w8, [sp, #20] add w8, w8, #1 str w8, [sp, #20] b LBB1_9 LBB1_17: ldr x9, [sp] ; 8-byte Folded Reload ldr w8, [sp, #20] str w8, [x9] b LBB1_18 LBB1_18: ldr x8, [sp] ; 8-byte Folded Reload ldr w8, [x8] str w8, [sp, #24] ldur w0, [x29, #-8] ldur x1, [x29, #-16] ldur x2, [x29, #-24] ldur x3, [x29, #-32] ldr x4, [sp, #40] ldr w5, [sp, #36] bl ___getopt_long_core str w0, [sp, #32] ldr w8, [sp, #24] ldr w9, [sp, #28] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB1_24 b LBB1_19 LBB1_19: ldr x8, [sp] ; 8-byte Folded Reload ldr w8, [x8] ldr w9, [sp, #24] subs w8, w8, w9 str w8, [sp, #12] str wzr, [sp, #16] b LBB1_20 LBB1_20: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #16] ldr w9, [sp, #12] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_23 b LBB1_21 LBB1_21: ; in Loop: Header=BB1_20 Depth=1 ldr x8, [sp] ; 8-byte Folded Reload ldur x0, [x29, #-16] ldr w1, [sp, #28] ldr w8, [x8] subs w2, w8, #1 bl _permute b LBB1_22 LBB1_22: ; in Loop: Header=BB1_20 Depth=1 ldr w8, [sp, #16] add w8, w8, #1 str w8, [sp, #16] b LBB1_20 LBB1_23: ldr x9, [sp] ; 8-byte Folded Reload ldr w8, [sp, #28] ldr w10, [sp, #12] add w8, w8, w10 str w8, [x9] b LBB1_24 LBB1_24: ldr w8, [sp, #32] stur w8, [x29, #-4] b LBB1_25 LBB1_25: ldur w0, [x29, #-4] ldp x29, x30, [sp, #80] ; 16-byte Folded Reload add sp, sp, #96 ret .cfi_endproc ; -- End function .globl _getopt_long_only ; -- Begin function getopt_long_only .p2align 2 _getopt_long_only: ; @getopt_long_only .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur w0, [x29, #-4] stur x1, [x29, #-16] str x2, [sp, #24] str x3, [sp, #16] str x4, [sp, #8] ldur w0, [x29, #-4] ldur x1, [x29, #-16] ldr x2, [sp, #24] ldr x3, [sp, #16] ldr x4, [sp, #8] mov w5, #1 bl ___getopt_long ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function __getopt_long_core ___getopt_long_core: ; @__getopt_long_core .cfi_startproc ; %bb.0: sub sp, sp, #208 .cfi_def_cfa_offset 208 stp x29, x30, [sp, #192] ; 16-byte Folded Spill add x29, sp, #192 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, _optarg@GOTPAGE ldr x8, [x8, _optarg@GOTPAGEOFF] str x8, [sp, #88] ; 8-byte Folded Spill adrp x9, _optind@GOTPAGE ldr x9, [x9, _optind@GOTPAGEOFF] str x9, [sp, #96] ; 8-byte Folded Spill adrp x9, _opterr@GOTPAGE ldr x9, [x9, _opterr@GOTPAGEOFF] stur x9, [x29, #-88] ; 8-byte Folded Spill stur w0, [x29, #-8] stur x1, [x29, #-16] stur x2, [x29, #-24] stur x3, [x29, #-32] stur x4, [x29, #-40] stur w5, [x29, #-44] ; kill: def $x9 killed $xzr str xzr, [x8] ldur x8, [x29, #-32] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB3_53 b LBB3_1 LBB3_1: ldr x9, [sp, #96] ; 8-byte Folded Reload ldur x8, [x29, #-16] ldrsw x9, [x9] ldr x8, [x8, x9, lsl #3] ldrsb w8, [x8] subs w8, w8, #45 cset w8, ne tbnz w8, #0, LBB3_53 b LBB3_2 LBB3_2: ldur w8, [x29, #-44] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB3_4 b LBB3_3 LBB3_3: ldr x9, [sp, #96] ; 8-byte Folded Reload ldur x8, [x29, #-16] ldrsw x9, [x9] ldr x8, [x8, x9, lsl #3] ldrsb w8, [x8, #1] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB3_6 b LBB3_4 LBB3_4: ldr x9, [sp, #96] ; 8-byte Folded Reload ldur x8, [x29, #-16] ldrsw x9, [x9] ldr x8, [x8, x9, lsl #3] ldrsb w8, [x8, #1] subs w8, w8, #45 cset w8, ne tbnz w8, #0, LBB3_53 b LBB3_5 LBB3_5: ldr x9, [sp, #96] ; 8-byte Folded Reload ldur x8, [x29, #-16] ldrsw x9, [x9] ldr x8, [x8, x9, lsl #3] ldrsb w8, [x8, #2] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB3_53 b LBB3_6 LBB3_6: ldur x8, [x29, #-24] str x8, [sp, #72] ; 8-byte Folded Spill ldur x8, [x29, #-24] ldrsb w8, [x8] subs w8, w8, #43 cset w8, eq mov w9, #1 str w9, [sp, #84] ; 4-byte Folded Spill tbnz w8, #0, LBB3_8 b LBB3_7 LBB3_7: ldur x8, [x29, #-24] ldrsb w8, [x8] subs w8, w8, #45 cset w8, eq str w8, [sp, #84] ; 4-byte Folded Spill b LBB3_8 LBB3_8: ldr x8, [sp, #72] ; 8-byte Folded Reload ldr w9, [sp, #84] ; 4-byte Folded Reload ; kill: def $x9 killed $w9 and x9, x9, #0x1 ldrsb w8, [x8, x9] subs w8, w8, #58 cset w8, eq and w8, w8, #0x1 stur w8, [x29, #-48] stur wzr, [x29, #-52] stur wzr, [x29, #-56] b LBB3_9 LBB3_9: ; =>This Loop Header: Depth=1 ; Child Loop BB3_13 Depth 2 ldur x8, [x29, #-32] ldursw x9, [x29, #-52] lsl x9, x9, #5 ldr x8, [x8, x9] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB3_25 b LBB3_10 LBB3_10: ; in Loop: Header=BB3_9 Depth=1 ldr x9, [sp, #96] ; 8-byte Folded Reload ldur x8, [x29, #-32] ldursw x10, [x29, #-52] lsl x10, x10, #5 ldr x8, [x8, x10] stur x8, [x29, #-80] ldur x8, [x29, #-16] ldrsw x9, [x9] ldr x8, [x8, x9, lsl #3] add x8, x8, #1 stur x8, [x29, #-72] ldur x8, [x29, #-72] ldrsb w8, [x8] subs w8, w8, #45 cset w8, ne tbnz w8, #0, LBB3_12 b LBB3_11 LBB3_11: ; in Loop: Header=BB3_9 Depth=1 ldur x8, [x29, #-72] add x8, x8, #1 stur x8, [x29, #-72] b LBB3_12 LBB3_12: ; in Loop: Header=BB3_9 Depth=1 b LBB3_13 LBB3_13: ; Parent Loop BB3_9 Depth=1 ; => This Inner Loop Header: Depth=2 ldur x8, [x29, #-80] ldrsb w8, [x8] subs w8, w8, #0 cset w8, eq mov w9, #0 str w9, [sp, #68] ; 4-byte Folded Spill tbnz w8, #0, LBB3_15 b LBB3_14 LBB3_14: ; in Loop: Header=BB3_13 Depth=2 ldur x8, [x29, #-80] ldrsb w8, [x8] ldur x9, [x29, #-72] ldrsb w9, [x9] subs w8, w8, w9 cset w8, eq str w8, [sp, #68] ; 4-byte Folded Spill b LBB3_15 LBB3_15: ; in Loop: Header=BB3_13 Depth=2 ldr w8, [sp, #68] ; 4-byte Folded Reload tbz w8, #0, LBB3_18 b LBB3_16 LBB3_16: ; in Loop: Header=BB3_13 Depth=2 b LBB3_17 LBB3_17: ; in Loop: Header=BB3_13 Depth=2 ldur x8, [x29, #-80] add x8, x8, #1 stur x8, [x29, #-80] ldur x8, [x29, #-72] add x8, x8, #1 stur x8, [x29, #-72] b LBB3_13 LBB3_18: ; in Loop: Header=BB3_9 Depth=1 ldur x8, [x29, #-72] ldrsb w8, [x8] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB3_21 b LBB3_19 LBB3_19: ; in Loop: Header=BB3_9 Depth=1 ldur x8, [x29, #-72] ldrsb w8, [x8] subs w8, w8, #61 cset w8, eq tbnz w8, #0, LBB3_21 b LBB3_20 LBB3_20: ; in Loop: Header=BB3_9 Depth=1 b LBB3_24 LBB3_21: ; in Loop: Header=BB3_9 Depth=1 ldur w8, [x29, #-52] stur w8, [x29, #-60] ldur x8, [x29, #-80] ldrb w8, [x8] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB3_23 b LBB3_22 LBB3_22: mov w8, #1 stur w8, [x29, #-56] b LBB3_25 LBB3_23: ; in Loop: Header=BB3_9 Depth=1 ldur w8, [x29, #-56] add w8, w8, #1 stur w8, [x29, #-56] b LBB3_24 LBB3_24: ; in Loop: Header=BB3_9 Depth=1 ldur w8, [x29, #-52] add w8, w8, #1 stur w8, [x29, #-52] b LBB3_9 LBB3_25: ldur w8, [x29, #-56] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB3_47 b LBB3_26 LBB3_26: ldr x9, [sp, #96] ; 8-byte Folded Reload ldur w8, [x29, #-60] stur w8, [x29, #-52] ldr w8, [x9] add w8, w8, #1 str w8, [x9] ldur x8, [x29, #-32] ldursw x9, [x29, #-52] add x8, x8, x9, lsl #5 ldr w8, [x8, #24] adrp x9, _optopt@GOTPAGE ldr x9, [x9, _optopt@GOTPAGEOFF] str w8, [x9] ldur x8, [x29, #-72] ldrsb w8, [x8] subs w8, w8, #61 cset w8, ne tbnz w8, #0, LBB3_33 b LBB3_27 LBB3_27: ldur x8, [x29, #-32] ldursw x9, [x29, #-52] add x8, x8, x9, lsl #5 ldr w8, [x8, #8] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB3_32 b LBB3_28 LBB3_28: ldur w8, [x29, #-48] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB3_30 b LBB3_29 LBB3_29: ldur x8, [x29, #-88] ; 8-byte Folded Reload ldr w8, [x8] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB3_31 b LBB3_30 LBB3_30: mov w8, #63 stur w8, [x29, #-4] b LBB3_54 LBB3_31: ldur x8, [x29, #-16] ldr x8, [x8] str x8, [sp, #56] ; 8-byte Folded Spill ldur x8, [x29, #-32] ldursw x9, [x29, #-52] lsl x9, x9, #5 ldr x8, [x8, x9] str x8, [sp, #48] ; 8-byte Folded Spill ldur x8, [x29, #-32] ldursw x9, [x29, #-52] lsl x9, x9, #5 ldr x0, [x8, x9] bl _strlen ldr x2, [sp, #48] ; 8-byte Folded Reload mov x3, x0 ldr x0, [sp, #56] ; 8-byte Folded Reload adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF bl ___getopt_msg mov w8, #63 stur w8, [x29, #-4] b LBB3_54 LBB3_32: ldr x9, [sp, #88] ; 8-byte Folded Reload ldur x8, [x29, #-72] add x8, x8, #1 str x8, [x9] b LBB3_42 LBB3_33: ldur x8, [x29, #-32] ldursw x9, [x29, #-52] add x8, x8, x9, lsl #5 ldr w8, [x8, #8] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB3_41 b LBB3_34 LBB3_34: ldr x10, [sp, #88] ; 8-byte Folded Reload ldr x9, [sp, #96] ; 8-byte Folded Reload ldur x8, [x29, #-16] ldrsw x9, [x9] ldr x8, [x8, x9, lsl #3] mov x9, x8 str x9, [x10] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB3_40 b LBB3_35 LBB3_35: ldur w8, [x29, #-48] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB3_37 b LBB3_36 LBB3_36: mov w8, #58 stur w8, [x29, #-4] b LBB3_54 LBB3_37: ldur x8, [x29, #-88] ; 8-byte Folded Reload ldr w8, [x8] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB3_39 b LBB3_38 LBB3_38: mov w8, #63 stur w8, [x29, #-4] b LBB3_54 LBB3_39: ldur x8, [x29, #-16] ldr x8, [x8] str x8, [sp, #40] ; 8-byte Folded Spill ldur x8, [x29, #-32] ldursw x9, [x29, #-52] lsl x9, x9, #5 ldr x8, [x8, x9] str x8, [sp, #32] ; 8-byte Folded Spill ldur x8, [x29, #-32] ldursw x9, [x29, #-52] lsl x9, x9, #5 ldr x0, [x8, x9] bl _strlen ldr x2, [sp, #32] ; 8-byte Folded Reload mov x3, x0 ldr x0, [sp, #40] ; 8-byte Folded Reload adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF bl ___getopt_msg mov w8, #63 stur w8, [x29, #-4] b LBB3_54 LBB3_40: ldr x9, [sp, #96] ; 8-byte Folded Reload ldr w8, [x9] add w8, w8, #1 str w8, [x9] b LBB3_41 LBB3_41: b LBB3_42 LBB3_42: ldur x8, [x29, #-40] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB3_44 b LBB3_43 LBB3_43: ldur w8, [x29, #-52] ldur x9, [x29, #-40] str w8, [x9] b LBB3_44 LBB3_44: ldur x8, [x29, #-32] ldursw x9, [x29, #-52] add x8, x8, x9, lsl #5 ldr x8, [x8, #16] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB3_46 b LBB3_45 LBB3_45: ldur x8, [x29, #-32] ldursw x9, [x29, #-52] add x8, x8, x9, lsl #5 ldr w8, [x8, #24] ldur x9, [x29, #-32] ldursw x10, [x29, #-52] add x9, x9, x10, lsl #5 ldr x9, [x9, #16] str w8, [x9] stur wzr, [x29, #-4] b LBB3_54 LBB3_46: ldur x8, [x29, #-32] ldursw x9, [x29, #-52] add x8, x8, x9, lsl #5 ldr w8, [x8, #24] stur w8, [x29, #-4] b LBB3_54 LBB3_47: ldr x9, [sp, #96] ; 8-byte Folded Reload ldur x8, [x29, #-16] ldrsw x9, [x9] ldr x8, [x8, x9, lsl #3] ldrsb w8, [x8, #1] subs w8, w8, #45 cset w8, ne tbnz w8, #0, LBB3_52 b LBB3_48 LBB3_48: ldur w8, [x29, #-48] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB3_51 b LBB3_49 LBB3_49: ldur x8, [x29, #-88] ; 8-byte Folded Reload ldr w8, [x8] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB3_51 b LBB3_50 LBB3_50: ldr x9, [sp, #96] ; 8-byte Folded Reload ldur x8, [x29, #-16] ldr x8, [x8] str x8, [sp, #24] ; 8-byte Folded Spill ldur w8, [x29, #-56] subs w8, w8, #0 cset w8, ne and w11, w8, #0x1 adrp x10, l_.str.3@PAGE add x10, x10, l_.str.3@PAGEOFF adrp x8, l_.str.2@PAGE add x8, x8, l_.str.2@PAGEOFF ands w11, w11, #0x1 csel x8, x8, x10, ne str x8, [sp, #8] ; 8-byte Folded Spill ldur x8, [x29, #-16] ldrsw x10, [x9] ldr x8, [x8, x10, lsl #3] add x8, x8, #2 str x8, [sp, #16] ; 8-byte Folded Spill ldur x8, [x29, #-16] ldrsw x9, [x9] ldr x8, [x8, x9, lsl #3] add x0, x8, #2 bl _strlen ldr x1, [sp, #8] ; 8-byte Folded Reload ldr x2, [sp, #16] ; 8-byte Folded Reload mov x3, x0 ldr x0, [sp, #24] ; 8-byte Folded Reload bl ___getopt_msg b LBB3_51 LBB3_51: ldr x9, [sp, #96] ; 8-byte Folded Reload ldr w8, [x9] add w8, w8, #1 str w8, [x9] mov w8, #63 stur w8, [x29, #-4] b LBB3_54 LBB3_52: b LBB3_53 LBB3_53: ldur w0, [x29, #-8] ldur x1, [x29, #-16] ldur x2, [x29, #-24] bl _getopt stur w0, [x29, #-4] b LBB3_54 LBB3_54: 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 permute _permute: ; @permute .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 str x0, [sp, #40] str w1, [sp, #36] str w2, [sp, #32] ldr x8, [sp, #40] str x8, [sp, #24] ldr x8, [sp, #24] ldrsw x9, [sp, #32] ldr x8, [x8, x9, lsl #3] str x8, [sp, #16] ldr w8, [sp, #32] str w8, [sp, #12] b LBB4_1 LBB4_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #12] ldr w9, [sp, #36] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB4_4 b LBB4_2 LBB4_2: ; in Loop: Header=BB4_1 Depth=1 ldr x8, [sp, #24] ldr w9, [sp, #12] subs w9, w9, #1 ldr x8, [x8, w9, sxtw #3] ldr x9, [sp, #24] ldrsw x10, [sp, #12] str x8, [x9, x10, lsl #3] b LBB4_3 LBB4_3: ; in Loop: Header=BB4_1 Depth=1 ldr w8, [sp, #12] subs w8, w8, #1 str w8, [sp, #12] b LBB4_1 LBB4_4: ldr x8, [sp, #16] ldr x9, [sp, #24] ldrsw x10, [sp, #36] str x8, [x9, x10, lsl #3] add sp, sp, #48 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz ": option does not take an argument: " l_.str.1: ; @.str.1 .asciz ": option requires an argument: " l_.str.2: ; @.str.2 .asciz ": option is ambiguous: " l_.str.3: ; @.str.3 .asciz ": unrecognized option: " .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _getopt_long ## -- Begin function getopt_long .p2align 4, 0x90 _getopt_long: ## @getopt_long .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movl %edi, -4(%rbp) movq %rsi, -16(%rbp) movq %rdx, -24(%rbp) movq %rcx, -32(%rbp) movq %r8, -40(%rbp) movl -4(%rbp), %edi movq -16(%rbp), %rsi movq -24(%rbp), %rdx movq -32(%rbp), %rcx movq -40(%rbp), %r8 xorl %r9d, %r9d callq ___getopt_long addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function __getopt_long ___getopt_long: ## @__getopt_long .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 %edi, -8(%rbp) movq %rsi, -16(%rbp) movq %rdx, -24(%rbp) movq %rcx, -32(%rbp) movq %r8, -40(%rbp) movl %r9d, -44(%rbp) movq _optind@GOTPCREL(%rip), %rax cmpl $0, (%rax) je LBB1_2 ## %bb.1: movq ___optreset@GOTPCREL(%rip), %rax cmpl $0, (%rax) je LBB1_3 LBB1_2: movq ___optreset@GOTPCREL(%rip), %rax movl $0, (%rax) movq ___optpos@GOTPCREL(%rip), %rax movl $0, (%rax) movq _optind@GOTPCREL(%rip), %rax movl $1, (%rax) LBB1_3: movq _optind@GOTPCREL(%rip), %rax movl (%rax), %eax cmpl -8(%rbp), %eax jge LBB1_5 ## %bb.4: movq -16(%rbp), %rax movq _optind@GOTPCREL(%rip), %rcx movslq (%rcx), %rcx cmpq $0, (%rax,%rcx,8) jne LBB1_6 LBB1_5: movl $-1, -4(%rbp) jmp LBB1_25 LBB1_6: movq _optind@GOTPCREL(%rip), %rax movl (%rax), %eax movl %eax, -52(%rbp) movq -24(%rbp), %rax movsbl (%rax), %eax cmpl $43, %eax je LBB1_18 ## %bb.7: movq -24(%rbp), %rax movsbl (%rax), %eax cmpl $45, %eax je LBB1_18 ## %bb.8: movq _optind@GOTPCREL(%rip), %rax movl (%rax), %eax movl %eax, -60(%rbp) LBB1_9: ## =>This Inner Loop Header: Depth=1 movl -60(%rbp), %eax cmpl -8(%rbp), %eax jge LBB1_11 ## %bb.10: ## in Loop: Header=BB1_9 Depth=1 movq -16(%rbp), %rax movslq -60(%rbp), %rcx cmpq $0, (%rax,%rcx,8) jne LBB1_12 LBB1_11: movl $-1, -4(%rbp) jmp LBB1_25 LBB1_12: ## in Loop: Header=BB1_9 Depth=1 movq -16(%rbp), %rax movslq -60(%rbp), %rcx movq (%rax,%rcx,8), %rax movsbl (%rax), %eax cmpl $45, %eax jne LBB1_15 ## %bb.13: ## in Loop: Header=BB1_9 Depth=1 movq -16(%rbp), %rax movslq -60(%rbp), %rcx movq (%rax,%rcx,8), %rax movsbl 1(%rax), %eax cmpl $0, %eax je LBB1_15 ## %bb.14: jmp LBB1_17 LBB1_15: ## in Loop: Header=BB1_9 Depth=1 jmp LBB1_16 LBB1_16: ## in Loop: Header=BB1_9 Depth=1 movl -60(%rbp), %eax addl $1, %eax movl %eax, -60(%rbp) jmp LBB1_9 LBB1_17: movl -60(%rbp), %ecx movq _optind@GOTPCREL(%rip), %rax movl %ecx, (%rax) LBB1_18: movq _optind@GOTPCREL(%rip), %rax movl (%rax), %eax movl %eax, -56(%rbp) movl -8(%rbp), %edi movq -16(%rbp), %rsi movq -24(%rbp), %rdx movq -32(%rbp), %rcx movq -40(%rbp), %r8 movl -44(%rbp), %r9d callq ___getopt_long_core movl %eax, -48(%rbp) movl -56(%rbp), %eax cmpl -52(%rbp), %eax jle LBB1_24 ## %bb.19: movq _optind@GOTPCREL(%rip), %rax movl (%rax), %eax subl -56(%rbp), %eax movl %eax, -68(%rbp) movl $0, -64(%rbp) LBB1_20: ## =>This Inner Loop Header: Depth=1 movl -64(%rbp), %eax cmpl -68(%rbp), %eax jge LBB1_23 ## %bb.21: ## in Loop: Header=BB1_20 Depth=1 movq -16(%rbp), %rdi movl -52(%rbp), %esi movq _optind@GOTPCREL(%rip), %rax movl (%rax), %edx subl $1, %edx callq _permute ## %bb.22: ## in Loop: Header=BB1_20 Depth=1 movl -64(%rbp), %eax addl $1, %eax movl %eax, -64(%rbp) jmp LBB1_20 LBB1_23: movl -52(%rbp), %ecx addl -68(%rbp), %ecx movq _optind@GOTPCREL(%rip), %rax movl %ecx, (%rax) LBB1_24: movl -48(%rbp), %eax movl %eax, -4(%rbp) LBB1_25: movl -4(%rbp), %eax addq $80, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _getopt_long_only ## -- Begin function getopt_long_only .p2align 4, 0x90 _getopt_long_only: ## @getopt_long_only .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movl %edi, -4(%rbp) movq %rsi, -16(%rbp) movq %rdx, -24(%rbp) movq %rcx, -32(%rbp) movq %r8, -40(%rbp) movl -4(%rbp), %edi movq -16(%rbp), %rsi movq -24(%rbp), %rdx movq -32(%rbp), %rcx movq -40(%rbp), %r8 movl $1, %r9d callq ___getopt_long addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function __getopt_long_core ___getopt_long_core: ## @__getopt_long_core .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $160, %rsp movl %edi, -8(%rbp) movq %rsi, -16(%rbp) movq %rdx, -24(%rbp) movq %rcx, -32(%rbp) movq %r8, -40(%rbp) movl %r9d, -44(%rbp) movq _optarg@GOTPCREL(%rip), %rax movq $0, (%rax) cmpq $0, -32(%rbp) je LBB3_53 ## %bb.1: movq -16(%rbp), %rax movq _optind@GOTPCREL(%rip), %rcx movslq (%rcx), %rcx movq (%rax,%rcx,8), %rax movsbl (%rax), %eax cmpl $45, %eax jne LBB3_53 ## %bb.2: cmpl $0, -44(%rbp) je LBB3_4 ## %bb.3: movq -16(%rbp), %rax movq _optind@GOTPCREL(%rip), %rcx movslq (%rcx), %rcx movq (%rax,%rcx,8), %rax movsbl 1(%rax), %eax cmpl $0, %eax jne LBB3_6 LBB3_4: movq -16(%rbp), %rax movq _optind@GOTPCREL(%rip), %rcx movslq (%rcx), %rcx movq (%rax,%rcx,8), %rax movsbl 1(%rax), %eax cmpl $45, %eax jne LBB3_53 ## %bb.5: movq -16(%rbp), %rax movq _optind@GOTPCREL(%rip), %rcx movslq (%rcx), %rcx movq (%rax,%rcx,8), %rax movsbl 2(%rax), %eax cmpl $0, %eax je LBB3_53 LBB3_6: movq -24(%rbp), %rax movq %rax, -96(%rbp) ## 8-byte Spill movq -24(%rbp), %rax movsbl (%rax), %ecx movb $1, %al cmpl $43, %ecx movb %al, -81(%rbp) ## 1-byte Spill je LBB3_8 ## %bb.7: movq -24(%rbp), %rax movsbl (%rax), %eax cmpl $45, %eax sete %al movb %al, -81(%rbp) ## 1-byte Spill LBB3_8: movq -96(%rbp), %rax ## 8-byte Reload movb -81(%rbp), %cl ## 1-byte Reload andb $1, %cl movzbl %cl, %ecx movslq %ecx, %rcx movsbl (%rax,%rcx), %eax cmpl $58, %eax sete %al andb $1, %al movzbl %al, %eax movl %eax, -48(%rbp) movl $0, -52(%rbp) movl $0, -56(%rbp) LBB3_9: ## =>This Loop Header: Depth=1 ## Child Loop BB3_13 Depth 2 movq -32(%rbp), %rax movslq -52(%rbp), %rcx shlq $5, %rcx addq %rcx, %rax cmpq $0, (%rax) je LBB3_25 ## %bb.10: ## in Loop: Header=BB3_9 Depth=1 movq -32(%rbp), %rax movslq -52(%rbp), %rcx shlq $5, %rcx addq %rcx, %rax movq (%rax), %rax movq %rax, -80(%rbp) movq -16(%rbp), %rax movq _optind@GOTPCREL(%rip), %rcx movslq (%rcx), %rcx movq (%rax,%rcx,8), %rax addq $1, %rax movq %rax, -72(%rbp) movq -72(%rbp), %rax movsbl (%rax), %eax cmpl $45, %eax jne LBB3_12 ## %bb.11: ## in Loop: Header=BB3_9 Depth=1 movq -72(%rbp), %rax addq $1, %rax movq %rax, -72(%rbp) LBB3_12: ## in Loop: Header=BB3_9 Depth=1 jmp LBB3_13 LBB3_13: ## Parent Loop BB3_9 Depth=1 ## => This Inner Loop Header: Depth=2 movq -80(%rbp), %rax movsbl (%rax), %ecx xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $0, %ecx movb %al, -97(%rbp) ## 1-byte Spill je LBB3_15 ## %bb.14: ## in Loop: Header=BB3_13 Depth=2 movq -80(%rbp), %rax movsbl (%rax), %eax movq -72(%rbp), %rcx movsbl (%rcx), %ecx cmpl %ecx, %eax sete %al movb %al, -97(%rbp) ## 1-byte Spill LBB3_15: ## in Loop: Header=BB3_13 Depth=2 movb -97(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB3_16 jmp LBB3_18 LBB3_16: ## in Loop: Header=BB3_13 Depth=2 jmp LBB3_17 LBB3_17: ## in Loop: Header=BB3_13 Depth=2 movq -80(%rbp), %rax addq $1, %rax movq %rax, -80(%rbp) movq -72(%rbp), %rax addq $1, %rax movq %rax, -72(%rbp) jmp LBB3_13 LBB3_18: ## in Loop: Header=BB3_9 Depth=1 movq -72(%rbp), %rax movsbl (%rax), %eax cmpl $0, %eax je LBB3_21 ## %bb.19: ## in Loop: Header=BB3_9 Depth=1 movq -72(%rbp), %rax movsbl (%rax), %eax cmpl $61, %eax je LBB3_21 ## %bb.20: ## in Loop: Header=BB3_9 Depth=1 jmp LBB3_24 LBB3_21: ## in Loop: Header=BB3_9 Depth=1 movl -52(%rbp), %eax movl %eax, -60(%rbp) movq -80(%rbp), %rax cmpb $0, (%rax) jne LBB3_23 ## %bb.22: movl $1, -56(%rbp) jmp LBB3_25 LBB3_23: ## in Loop: Header=BB3_9 Depth=1 movl -56(%rbp), %eax addl $1, %eax movl %eax, -56(%rbp) LBB3_24: ## in Loop: Header=BB3_9 Depth=1 movl -52(%rbp), %eax addl $1, %eax movl %eax, -52(%rbp) jmp LBB3_9 LBB3_25: cmpl $1, -56(%rbp) jne LBB3_47 ## %bb.26: movl -60(%rbp), %eax movl %eax, -52(%rbp) movq _optind@GOTPCREL(%rip), %rax movl (%rax), %ecx addl $1, %ecx movq _optind@GOTPCREL(%rip), %rax movl %ecx, (%rax) movq -32(%rbp), %rax movslq -52(%rbp), %rcx shlq $5, %rcx addq %rcx, %rax movl 24(%rax), %ecx movq _optopt@GOTPCREL(%rip), %rax movl %ecx, (%rax) movq -72(%rbp), %rax movsbl (%rax), %eax cmpl $61, %eax jne LBB3_33 ## %bb.27: movq -32(%rbp), %rax movslq -52(%rbp), %rcx shlq $5, %rcx addq %rcx, %rax cmpl $0, 8(%rax) jne LBB3_32 ## %bb.28: cmpl $0, -48(%rbp) jne LBB3_30 ## %bb.29: movq _opterr@GOTPCREL(%rip), %rax cmpl $0, (%rax) jne LBB3_31 LBB3_30: movl $63, -4(%rbp) jmp LBB3_54 LBB3_31: movq -16(%rbp), %rax movq (%rax), %rax movq %rax, -120(%rbp) ## 8-byte Spill movq -32(%rbp), %rax movslq -52(%rbp), %rcx shlq $5, %rcx addq %rcx, %rax movq (%rax), %rax movq %rax, -112(%rbp) ## 8-byte Spill movq -32(%rbp), %rax movslq -52(%rbp), %rcx shlq $5, %rcx addq %rcx, %rax movq (%rax), %rdi callq _strlen movq -120(%rbp), %rdi ## 8-byte Reload movq -112(%rbp), %rdx ## 8-byte Reload movq %rax, %rcx leaq L_.str(%rip), %rsi callq ___getopt_msg movl $63, -4(%rbp) jmp LBB3_54 LBB3_32: movq -72(%rbp), %rcx addq $1, %rcx movq _optarg@GOTPCREL(%rip), %rax movq %rcx, (%rax) jmp LBB3_42 LBB3_33: movq -32(%rbp), %rax movslq -52(%rbp), %rcx shlq $5, %rcx addq %rcx, %rax cmpl $1, 8(%rax) jne LBB3_41 ## %bb.34: movq -16(%rbp), %rax movq _optind@GOTPCREL(%rip), %rcx movslq (%rcx), %rcx movq (%rax,%rcx,8), %rax movq _optarg@GOTPCREL(%rip), %rcx movq %rax, (%rcx) cmpq $0, %rax jne LBB3_40 ## %bb.35: cmpl $0, -48(%rbp) je LBB3_37 ## %bb.36: movl $58, -4(%rbp) jmp LBB3_54 LBB3_37: movq _opterr@GOTPCREL(%rip), %rax cmpl $0, (%rax) jne LBB3_39 ## %bb.38: movl $63, -4(%rbp) jmp LBB3_54 LBB3_39: movq -16(%rbp), %rax movq (%rax), %rax movq %rax, -136(%rbp) ## 8-byte Spill movq -32(%rbp), %rax movslq -52(%rbp), %rcx shlq $5, %rcx addq %rcx, %rax movq (%rax), %rax movq %rax, -128(%rbp) ## 8-byte Spill movq -32(%rbp), %rax movslq -52(%rbp), %rcx shlq $5, %rcx addq %rcx, %rax movq (%rax), %rdi callq _strlen movq -136(%rbp), %rdi ## 8-byte Reload movq -128(%rbp), %rdx ## 8-byte Reload movq %rax, %rcx leaq L_.str.1(%rip), %rsi callq ___getopt_msg movl $63, -4(%rbp) jmp LBB3_54 LBB3_40: movq _optind@GOTPCREL(%rip), %rax movl (%rax), %ecx addl $1, %ecx movq _optind@GOTPCREL(%rip), %rax movl %ecx, (%rax) LBB3_41: jmp LBB3_42 LBB3_42: cmpq $0, -40(%rbp) je LBB3_44 ## %bb.43: movl -52(%rbp), %ecx movq -40(%rbp), %rax movl %ecx, (%rax) LBB3_44: movq -32(%rbp), %rax movslq -52(%rbp), %rcx shlq $5, %rcx addq %rcx, %rax cmpq $0, 16(%rax) je LBB3_46 ## %bb.45: movq -32(%rbp), %rax movslq -52(%rbp), %rcx shlq $5, %rcx addq %rcx, %rax movl 24(%rax), %ecx movq -32(%rbp), %rax movslq -52(%rbp), %rdx shlq $5, %rdx addq %rdx, %rax movq 16(%rax), %rax movl %ecx, (%rax) movl $0, -4(%rbp) jmp LBB3_54 LBB3_46: movq -32(%rbp), %rax movslq -52(%rbp), %rcx shlq $5, %rcx addq %rcx, %rax movl 24(%rax), %eax movl %eax, -4(%rbp) jmp LBB3_54 LBB3_47: movq -16(%rbp), %rax movq _optind@GOTPCREL(%rip), %rcx movslq (%rcx), %rcx movq (%rax,%rcx,8), %rax movsbl 1(%rax), %eax cmpl $45, %eax jne LBB3_52 ## %bb.48: cmpl $0, -48(%rbp) jne LBB3_51 ## %bb.49: movq _opterr@GOTPCREL(%rip), %rax cmpl $0, (%rax) je LBB3_51 ## %bb.50: movq -16(%rbp), %rax movq (%rax), %rax movq %rax, -160(%rbp) ## 8-byte Spill movl -56(%rbp), %edx leaq L_.str.3(%rip), %rax leaq L_.str.2(%rip), %rcx cmpl $0, %edx cmovneq %rcx, %rax movq %rax, -152(%rbp) ## 8-byte Spill movq -16(%rbp), %rax movq _optind@GOTPCREL(%rip), %rcx movslq (%rcx), %rcx movq (%rax,%rcx,8), %rax addq $2, %rax movq %rax, -144(%rbp) ## 8-byte Spill movq -16(%rbp), %rax movq _optind@GOTPCREL(%rip), %rcx movslq (%rcx), %rcx movq (%rax,%rcx,8), %rdi addq $2, %rdi callq _strlen movq -160(%rbp), %rdi ## 8-byte Reload movq -152(%rbp), %rsi ## 8-byte Reload movq -144(%rbp), %rdx ## 8-byte Reload movq %rax, %rcx callq ___getopt_msg LBB3_51: movq _optind@GOTPCREL(%rip), %rax movl (%rax), %ecx addl $1, %ecx movq _optind@GOTPCREL(%rip), %rax movl %ecx, (%rax) movl $63, -4(%rbp) jmp LBB3_54 LBB3_52: jmp LBB3_53 LBB3_53: movl -8(%rbp), %edi movq -16(%rbp), %rsi movq -24(%rbp), %rdx callq _getopt movl %eax, -4(%rbp) LBB3_54: movl -4(%rbp), %eax addq $160, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function permute _permute: ## @permute .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) movl %edx, -16(%rbp) movq -8(%rbp), %rax movq %rax, -24(%rbp) movq -24(%rbp), %rax movslq -16(%rbp), %rcx movq (%rax,%rcx,8), %rax movq %rax, -32(%rbp) movl -16(%rbp), %eax movl %eax, -36(%rbp) LBB4_1: ## =>This Inner Loop Header: Depth=1 movl -36(%rbp), %eax cmpl -12(%rbp), %eax jle LBB4_4 ## %bb.2: ## in Loop: Header=BB4_1 Depth=1 movq -24(%rbp), %rax movl -36(%rbp), %ecx subl $1, %ecx movslq %ecx, %rcx movq (%rax,%rcx,8), %rdx movq -24(%rbp), %rax movslq -36(%rbp), %rcx movq %rdx, (%rax,%rcx,8) ## %bb.3: ## in Loop: Header=BB4_1 Depth=1 movl -36(%rbp), %eax addl $-1, %eax movl %eax, -36(%rbp) jmp LBB4_1 LBB4_4: movq -32(%rbp), %rdx movq -24(%rbp), %rax movslq -12(%rbp), %rcx movq %rdx, (%rax,%rcx,8) popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz ": option does not take an argument: " L_.str.1: ## @.str.1 .asciz ": option requires an argument: " L_.str.2: ## @.str.2 .asciz ": option is ambiguous: " L_.str.3: ## @.str.3 .asciz ": unrecognized option: " .subsections_via_symbols
the_stack_data/248580169.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/117328192.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 x8, x0 mov w0, #0 str w0, [sp, #12] ; 4-byte Folded Spill stur wzr, [x29, #-4] stur w8, [x29, #-8] str x1, [sp, #16] bl _testit mov w0, #2 bl _otest mov w0, #1 bl _testit ldr w0, [sp, #12] ; 4-byte Folded Reload ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _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) xorl %edi, %edi callq _testit movl $2, %edi callq _otest movl $1, %edi callq _testit xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/89676.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 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] ldur x8, [x29, #-8] str x8, [sp, #8] ldr x8, [sp, #8] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_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 b LBB0_2 LBB0_2: ldur w0, [x29, #-12] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "i = %d" .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 subq $32, %rsp movq %rdi, -8(%rbp) movl $0, -12(%rbp) movq -8(%rbp), %rax movq %rax, -24(%rbp) cmpq $0, -24(%rbp) jne LBB0_2 ## %bb.1: movl -12(%rbp), %esi leaq L_.str(%rip), %rdi movb $0, %al callq _printf LBB0_2: movl -12(%rbp), %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "i = %d" .subsections_via_symbols
the_stack_data/34513326.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 ; kill: def $w8 killed $w8 killed $x8 stur w8, [x29, #-12] ldursw x0, [x29, #-12] 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] ldursw x2, [x29, #-12] 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 .globl _strndup ; -- Begin function strndup .p2align 2 _strndup: ; @strndup .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 x0, [x29, #-8] bl _strlen mov x8, x0 str w8, [sp, #12] ldrsw x8, [sp, #12] ldr x9, [sp, #16] subs x8, x8, x9 cset w8, ls tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: ldr x8, [sp, #16] ; kill: def $w8 killed $w8 killed $x8 str w8, [sp, #12] b LBB1_2 LBB1_2: ldr w8, [sp, #12] add w9, w8, #1 ; implicit-def: $x8 mov x8, x9 sxtw x0, w8 bl _malloc str x0, [sp] ldr x8, [sp] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB1_4 b LBB1_3 LBB1_3: ldr x0, [sp] ldur x1, [x29, #-8] ldrsw x2, [sp, #12] mov x3, #-1 bl ___memcpy_chk ldr x8, [sp] ldrsw x9, [sp, #12] add x8, x8, x9 strb wzr, [x8] b LBB1_4 LBB1_4: ldr x0, [sp] 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 ## kill: def $eax killed $eax killed $rax movl %eax, -12(%rbp) movslq -12(%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 movslq -12(%rbp), %rdx movq $-1, %rcx callq ___memcpy_chk LBB0_2: movq -24(%rbp), %rax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _strndup ## -- Begin function strndup .p2align 4, 0x90 _strndup: ## @strndup .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), %rdi callq _strlen ## kill: def $eax killed $eax killed $rax movl %eax, -20(%rbp) movslq -20(%rbp), %rax cmpq -16(%rbp), %rax jbe LBB1_2 ## %bb.1: movq -16(%rbp), %rax ## kill: def $eax killed $eax killed $rax movl %eax, -20(%rbp) LBB1_2: movl -20(%rbp), %eax addl $1, %eax movslq %eax, %rdi callq _malloc movq %rax, -32(%rbp) cmpq $0, -32(%rbp) je LBB1_4 ## %bb.3: movq -32(%rbp), %rdi movq -8(%rbp), %rsi movslq -20(%rbp), %rdx movq $-1, %rcx callq ___memcpy_chk movq -32(%rbp), %rax movslq -20(%rbp), %rcx movb $0, (%rax,%rcx) LBB1_4: movq -32(%rbp), %rax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/78676.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _PrintHello ; -- Begin function PrintHello .p2align 2 _PrintHello: ; @PrintHello .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #8] ldr x8, [sp, #8] ldr w9, [x8] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov x0, #0 bl _pthread_exit .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #144 .cfi_def_cfa_offset 144 stp x29, x30, [sp, #128] ; 16-byte Folded Spill add x29, sp, #128 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] str wzr, [sp, #36] b LBB1_1 LBB1_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #36] subs w8, w8, #10 cset w8, ge tbnz w8, #0, LBB1_4 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 add x8, sp, #36 str x8, [sp, #8] ; 8-byte Folded Spill ldr w9, [sp, #36] ; 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 x3, [sp, #8] ; 8-byte Folded Reload ldrsw x9, [sp, #36] add x8, sp, #40 str x8, [sp, #16] ; 8-byte Folded Spill add x0, x8, x9, lsl #3 mov x1, #0 str x1, [sp, #24] ; 8-byte Folded Spill adrp x2, _PrintHello@PAGE add x2, x2, _PrintHello@PAGEOFF bl _pthread_create ldr x8, [sp, #16] ; 8-byte Folded Reload ldr x1, [sp, #24] ; 8-byte Folded Reload ldrsw x9, [sp, #36] ldr x0, [x8, x9, lsl #3] bl _pthread_join b LBB1_3 LBB1_3: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #36] add w8, w8, #1 str w8, [sp, #36] b LBB1_1 LBB1_4: mov x0, #0 bl _pthread_exit .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Hello from thread no. %d!\n" l_.str.1: ; @.str.1 .asciz "Creating thread %d\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _PrintHello ## -- Begin function PrintHello .p2align 4, 0x90 _PrintHello: ## @PrintHello .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) movq -8(%rbp), %rax movl (%rax), %esi leaq L_.str(%rip), %rdi xorl %eax, %eax movl %eax, -12(%rbp) ## 4-byte Spill callq _printf ## kill: def $ecx killed $eax movl -12(%rbp), %eax ## 4-byte Reload movl %eax, %edi callq _pthread_exit .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $112, %rsp movl $0, -4(%rbp) movl $0, -100(%rbp) LBB1_1: ## =>This Inner Loop Header: Depth=1 cmpl $10, -100(%rbp) jge LBB1_4 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 movl -100(%rbp), %esi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf movslq -100(%rbp), %rax leaq -96(%rbp), %rdi shlq $3, %rax addq %rax, %rdi leaq -100(%rbp), %rcx xorl %eax, %eax movl %eax, %esi leaq _PrintHello(%rip), %rdx callq _pthread_create movslq -100(%rbp), %rax movq -96(%rbp,%rax,8), %rdi xorl %eax, %eax movl %eax, %esi callq _pthread_join ## %bb.3: ## in Loop: Header=BB1_1 Depth=1 movl -100(%rbp), %eax addl $1, %eax movl %eax, -100(%rbp) jmp LBB1_1 LBB1_4: xorl %eax, %eax movl %eax, %edi callq _pthread_exit .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Hello from thread no. %d!\n" L_.str.1: ## @.str.1 .asciz "Creating thread %d\n" .subsections_via_symbols
the_stack_data/39019.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _fct ; -- Begin function fct .p2align 2 _fct: ; @fct .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] lsr w8, w8, #5 subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: bl _fct1 stur w0, [x29, #-4] b LBB0_3 LBB0_2: bl _fct2 stur w0, [x29, #-4] b LBB0_3 LBB0_3: ldur w0, [x29, #-4] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _fct ## -- Begin function fct .p2align 4, 0x90 _fct: ## @fct .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl %edi, -8(%rbp) movl -8(%rbp), %eax shrl $5, %eax cmpl $0, %eax je LBB0_2 ## %bb.1: callq _fct1 movl %eax, -4(%rbp) jmp LBB0_3 LBB0_2: callq _fct2 movl %eax, -4(%rbp) LBB0_3: movl -4(%rbp), %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/62638702.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/137180.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/95451721.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _incr ; -- Begin function incr .p2align 2 _incr: ; @incr .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 adrp x9, _count@PAGE ldr w8, [x9, _count@PAGEOFF] add w8, w8, #1 str w8, [x9, _count@PAGEOFF] ldr w0, [sp, #12] add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #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 x9, _count@PAGE str x9, [sp, #16] ; 8-byte Folded Spill ldrsw x8, [x9, _count@PAGEOFF] str x8, [sp] ; 8-byte Folded Spill add w8, w8, #1 str w8, [x9, _count@PAGEOFF] adrp x8, _arr@GOTPAGE ldr x8, [x8, _arr@GOTPAGEOFF] str x8, [sp, #8] ; 8-byte Folded Spill bl _incr ldr x11, [sp] ; 8-byte Folded Reload ldr x10, [sp, #8] ; 8-byte Folded Reload ldr x8, [sp, #16] ; 8-byte Folded Reload stur w0, [x29, #-8] ldur w9, [x29, #-8] str w9, [x10, x11, lsl #2] ldr w8, [x8, _count@PAGEOFF] subs w8, w8, #2 cset w8, eq tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: bl _abort LBB1_2: mov w0, #0 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _count ; @count .zerofill __DATA,__common,_count,4,2 .comm _arr,128,2 ; @arr .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _incr ## -- Begin function incr .p2align 4, 0x90 _incr: ## @incr .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl _count(%rip), %eax addl $1, %eax movl %eax, _count(%rip) movl -8(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) movl _count(%rip), %eax movl %eax, %ecx addl $1, %ecx movl %ecx, _count(%rip) cltq movq %rax, -16(%rbp) ## 8-byte Spill callq _incr movq -16(%rbp), %rcx ## 8-byte Reload movl %eax, -8(%rbp) movq _arr@GOTPCREL(%rip), %rax movl -8(%rbp), %edx movl %edx, (%rax,%rcx,4) movl _count(%rip), %eax cmpl $2, %eax je LBB1_2 ## %bb.1: callq _abort LBB1_2: xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _count ## @count .zerofill __DATA,__common,_count,4,2 .comm _arr,128,4 ## @arr .subsections_via_symbols
the_stack_data/28262872.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/1065684.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _zbroji ; -- Begin function zbroji .p2align 2 _zbroji: ; @zbroji .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #12] str w1, [sp, #8] ldr w8, [sp, #12] ldr w9, [sp, #8] add w0, w8, w9 add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #0 str w8, [sp] ; 4-byte Folded Spill stur wzr, [x29, #-4] mov w0, #5 str w0, [sp, #8] mov w1, #2 str w1, [sp, #4] bl _zbroji ldr w0, [sp] ; 4-byte Folded Reload ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _zbroji ## -- Begin function zbroji .p2align 4, 0x90 _zbroji: ## @zbroji .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, -4(%rbp) movl %esi, -8(%rbp) movl -4(%rbp), %eax addl -8(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .globl _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 $2, -12(%rbp) movl $5, %edi movl $2, %esi callq _zbroji xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/687238.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #1 stur w8, [x29, #-4] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-4] subs w8, w8, #10 cset w8, gt tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldur w9, [x29, #-4] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldur w8, [x29, #-4] add w8, w8, #1 stur w8, [x29, #-4] b LBB0_1 LBB0_3: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $1, -4(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 cmpl $10, -4(%rbp) jg LBB0_3 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl -4(%rbp), %esi leaq L_.str(%rip), %rdi movb $0, %al callq _printf movl -4(%rbp), %eax addl $1, %eax movl %eax, -4(%rbp) jmp LBB0_1 LBB0_3: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d\n" .subsections_via_symbols
the_stack_data/170453421.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #96 .cfi_def_cfa_offset 96 stp x29, x30, [sp, #80] ; 16-byte Folded Spill add x29, sp, #80 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] str wzr, [sp, #20] adrp x8, l___const.main.arr@PAGE add x8, x8, l___const.main.arr@PAGEOFF ldr q0, [x8] add x0, sp, #32 str q0, [sp, #32] ldr q0, [x8, #16] str q0, [sp, #48] mov w1, #8 add x2, sp, #24 bl _occur_once ldr w8, [sp, #24] ; implicit-def: $x10 mov x10, x8 ldr w9, [sp, #28] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x0, l_.str@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, #80] ; 16-byte Folded Reload add sp, sp, #96 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function occur_once _occur_once: ; @occur_once .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] ldr w8, [sp, #20] subs w8, w8, #2 cset w8, ge tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: b LBB1_17 LBB1_2: str wzr, [sp, #4] str wzr, [sp] b LBB1_3 LBB1_3: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #4] ldr w9, [sp, #20] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_6 b LBB1_4 LBB1_4: ; in Loop: Header=BB1_3 Depth=1 ldr x8, [sp, #24] ldrsw x9, [sp, #4] ldr w9, [x8, x9, lsl #2] ldr w8, [sp] eor w8, w8, w9 str w8, [sp] b LBB1_5 LBB1_5: ; in Loop: Header=BB1_3 Depth=1 ldr w8, [sp, #4] add w8, w8, #1 str w8, [sp, #4] b LBB1_3 LBB1_6: mov w8, #1 str w8, [sp, #4] b LBB1_7 LBB1_7: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp] ldr w9, [sp, #4] ands w8, w8, w9 cset w8, ne tbnz w8, #0, LBB1_10 b LBB1_8 LBB1_8: ; in Loop: Header=BB1_7 Depth=1 b LBB1_9 LBB1_9: ; in Loop: Header=BB1_7 Depth=1 ldr w8, [sp, #4] lsl w8, w8, #1 str w8, [sp, #4] b LBB1_7 LBB1_10: ldr w8, [sp, #4] str w8, [sp] ldr x8, [sp, #8] str wzr, [x8, #4] ldr x8, [sp, #8] str wzr, [x8] str wzr, [sp, #4] b LBB1_11 LBB1_11: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #4] ldr w9, [sp, #20] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_17 b LBB1_12 LBB1_12: ; in Loop: Header=BB1_11 Depth=1 ldr x8, [sp, #24] ldrsw x9, [sp, #4] ldr w8, [x8, x9, lsl #2] ldr w9, [sp] ands w8, w8, w9 cset w8, eq tbnz w8, #0, LBB1_14 b LBB1_13 LBB1_13: ; in Loop: Header=BB1_11 Depth=1 ldr x8, [sp, #24] ldrsw x9, [sp, #4] ldr w10, [x8, x9, lsl #2] ldr x9, [sp, #8] ldr w8, [x9] eor w8, w8, w10 str w8, [x9] b LBB1_15 LBB1_14: ; in Loop: Header=BB1_11 Depth=1 ldr x8, [sp, #24] ldrsw x9, [sp, #4] ldr w10, [x8, x9, lsl #2] ldr x9, [sp, #8] ldr w8, [x9, #4] eor w8, w8, w10 str w8, [x9, #4] b LBB1_15 LBB1_15: ; in Loop: Header=BB1_11 Depth=1 b LBB1_16 LBB1_16: ; in Loop: Header=BB1_11 Depth=1 ldr w8, [sp, #4] add w8, w8, #1 str w8, [sp, #4] b LBB1_11 LBB1_17: add sp, sp, #32 ret .cfi_endproc ; -- End function .section __TEXT,__const .p2align 2 ; @__const.main.arr l___const.main.arr: .long 2 ; 0x2 .long 4 ; 0x4 .long 3 ; 0x3 .long 6 ; 0x6 .long 3 ; 0x3 .long 2 ; 0x2 .long 5 ; 0x5 .long 5 ; 0x5 .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d %d\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $64, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -60(%rbp) movq l___const.main.arr(%rip), %rax movq %rax, -48(%rbp) movq l___const.main.arr+8(%rip), %rax movq %rax, -40(%rbp) movq l___const.main.arr+16(%rip), %rax movq %rax, -32(%rbp) movq l___const.main.arr+24(%rip), %rax movq %rax, -24(%rbp) leaq -48(%rbp), %rdi leaq -56(%rbp), %rdx movl $8, %esi callq _occur_once movl -56(%rbp), %esi movl -52(%rbp), %edx 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 $64, %rsp popq %rbp retq LBB0_2: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function occur_once _occur_once: ## @occur_once .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) cmpl $2, -12(%rbp) jge LBB1_2 ## %bb.1: jmp LBB1_17 LBB1_2: movl $0, -28(%rbp) movl $0, -32(%rbp) LBB1_3: ## =>This Inner Loop Header: Depth=1 movl -28(%rbp), %eax cmpl -12(%rbp), %eax jge LBB1_6 ## %bb.4: ## in Loop: Header=BB1_3 Depth=1 movq -8(%rbp), %rax movslq -28(%rbp), %rcx movl (%rax,%rcx,4), %eax xorl -32(%rbp), %eax movl %eax, -32(%rbp) ## %bb.5: ## in Loop: Header=BB1_3 Depth=1 movl -28(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) jmp LBB1_3 LBB1_6: movl $1, -28(%rbp) LBB1_7: ## =>This Inner Loop Header: Depth=1 movl -32(%rbp), %eax andl -28(%rbp), %eax cmpl $0, %eax jne LBB1_10 ## %bb.8: ## in Loop: Header=BB1_7 Depth=1 jmp LBB1_9 LBB1_9: ## in Loop: Header=BB1_7 Depth=1 movl -28(%rbp), %eax shll $1, %eax movl %eax, -28(%rbp) jmp LBB1_7 LBB1_10: movl -28(%rbp), %eax movl %eax, -32(%rbp) movq -24(%rbp), %rax movl $0, 4(%rax) movq -24(%rbp), %rax movl $0, (%rax) movl $0, -28(%rbp) LBB1_11: ## =>This Inner Loop Header: Depth=1 movl -28(%rbp), %eax cmpl -12(%rbp), %eax jge LBB1_17 ## %bb.12: ## in Loop: Header=BB1_11 Depth=1 movq -8(%rbp), %rax movslq -28(%rbp), %rcx movl (%rax,%rcx,4), %eax andl -32(%rbp), %eax cmpl $0, %eax je LBB1_14 ## %bb.13: ## in Loop: Header=BB1_11 Depth=1 movq -8(%rbp), %rax movslq -28(%rbp), %rcx movl (%rax,%rcx,4), %ecx movq -24(%rbp), %rax xorl (%rax), %ecx movl %ecx, (%rax) jmp LBB1_15 LBB1_14: ## in Loop: Header=BB1_11 Depth=1 movq -8(%rbp), %rax movslq -28(%rbp), %rcx movl (%rax,%rcx,4), %ecx movq -24(%rbp), %rax xorl 4(%rax), %ecx movl %ecx, 4(%rax) LBB1_15: ## in Loop: Header=BB1_11 Depth=1 jmp LBB1_16 LBB1_16: ## in Loop: Header=BB1_11 Depth=1 movl -28(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) jmp LBB1_11 LBB1_17: popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__const .p2align 4 ## @__const.main.arr l___const.main.arr: .long 2 ## 0x2 .long 4 ## 0x4 .long 3 ## 0x3 .long 6 ## 0x6 .long 3 ## 0x3 .long 2 ## 0x2 .long 5 ## 0x5 .long 5 ## 0x5 .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d %d\n" .subsections_via_symbols
the_stack_data/179508.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, _a@GOTPAGE ldr x8, [x8, _a@GOTPAGEOFF] str x8, [sp, #8] ; 8-byte Folded Spill add x10, x8, #144 adrp x9, _p@GOTPAGE ldr x9, [x9, _p@GOTPAGEOFF] str x9, [sp, #16] ; 8-byte Folded Spill stur wzr, [x29, #-4] str x10, [x9] ldr x10, [x9] mov w9, #1 str w9, [x10] ldr w8, [x8, #144] 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, #11 adrp x3, l_.str.1@PAGE add x3, x3, l_.str.1@PAGEOFF bl ___assert_rtn LBB0_2: b LBB0_3 LBB0_3: ldr x8, [sp, #8] ; 8-byte Folded Reload ldr x9, [sp, #16] ; 8-byte Folded Reload ldr x10, [x9] add x10, x10, #4 str x10, [x9] ldr x10, [x9] mov w9, #2 str w9, [x10] ldr w8, [x8, #148] 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, #14 adrp x3, l_.str.2@PAGE add x3, x3, l_.str.2@PAGEOFF bl ___assert_rtn LBB0_5: b LBB0_6 LBB0_6: ldur w0, [x29, #-4] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .comm _a,160,2 ; @a .comm _p,8,3 ; @p .section __TEXT,__cstring,cstring_literals l___func__.main: ; @__func__.main .asciz "main" l_.str: ; @.str .asciz "128158.c" l_.str.1: ; @.str.1 .asciz "a[9][0] == 1" l_.str.2: ; @.str.2 .asciz "a[9][1] == 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) movq _p@GOTPCREL(%rip), %rax movq _a@GOTPCREL(%rip), %rcx addq $144, %rcx movq %rcx, (%rax) movq _p@GOTPCREL(%rip), %rax movq (%rax), %rax movl $1, (%rax) movq _a@GOTPCREL(%rip), %rax cmpl $1, 144(%rax) 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 $11, %edx callq ___assert_rtn LBB0_2: jmp LBB0_3 LBB0_3: movq _p@GOTPCREL(%rip), %rax movq (%rax), %rcx addq $4, %rcx movq _p@GOTPCREL(%rip), %rax movq %rcx, (%rax) movq _p@GOTPCREL(%rip), %rax movq (%rax), %rax movl $2, (%rax) movq _a@GOTPCREL(%rip), %rax cmpl $2, 148(%rax) 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 $14, %edx callq ___assert_rtn LBB0_5: jmp LBB0_6 LBB0_6: movl -4(%rbp), %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .comm _a,160,4 ## @a .comm _p,8,3 ## @p .section __TEXT,__cstring,cstring_literals L___func__.main: ## @__func__.main .asciz "main" L_.str: ## @.str .asciz "128158.c" L_.str.1: ## @.str.1 .asciz "a[9][0] == 1" L_.str.2: ## @.str.2 .asciz "a[9][1] == 2" .subsections_via_symbols
the_stack_data/128158.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, #1056 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] str wzr, [sp, #44] ldr w0, [sp, #44] add x1, sp, #48 str x1, [sp, #24] ; 8-byte Folded Spill bl _itoa ldr x8, [sp, #24] ; 8-byte Folded Reload ldr w9, [sp, #44] ; implicit-def: $x10 mov x10, x9 mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF str x0, [sp, #32] ; 8-byte Folded Spill bl _printf ldr x1, [sp, #24] ; 8-byte Folded Reload mov w8, #-128 str w8, [sp, #44] ldr w0, [sp, #44] bl _itoa ldr x8, [sp, #24] ; 8-byte Folded Reload ldr x0, [sp, #32] ; 8-byte Folded Reload ldr w9, [sp, #44] ; implicit-def: $x10 mov x10, x9 mov x9, sp str x10, [x9] str x8, [x9, #8] bl _printf ldr x1, [sp, #24] ; 8-byte Folded Reload mov w8, #256 str w8, [sp, #44] ldr w0, [sp, #44] bl _itoa ldr x8, [sp, #24] ; 8-byte Folded Reload ldr x0, [sp, #32] ; 8-byte Folded Reload ldr w9, [sp, #44] ; implicit-def: $x10 mov x10, x9 mov x9, sp str x10, [x9] str x8, [x9, #8] bl _printf bl _getwordsize ldr x1, [sp, #24] ; 8-byte Folded Reload mov w8, #1 subs w9, w0, #1 lsl w8, w8, w9 str w8, [sp, #44] ldr w0, [sp, #44] bl _itoa ldr x8, [sp, #24] ; 8-byte Folded Reload ldr x0, [sp, #32] ; 8-byte Folded Reload ldr w9, [sp, #44] ; implicit-def: $x10 mov x10, x9 mov x9, sp str x10, [x9] str x8, [x9, #8] 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, #1056 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x28, x27, [sp], #32 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .globl _itoa ; -- Begin function itoa .p2align 2 _itoa: ; @itoa .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur w0, [x29, #-4] str x1, [sp, #16] str wzr, [sp, #12] ldur w8, [x29, #-4] mov w10, #10 sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 str w8, [sp, #8] ldr w8, [sp, #8] subs w8, w8, #0 cset w8, ge tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: ldr w9, [sp, #8] mov w8, #0 subs w8, w8, w9 str w8, [sp, #4] ; 4-byte Folded Spill b LBB1_3 LBB1_2: ldr w8, [sp, #8] str w8, [sp, #4] ; 4-byte Folded Spill b LBB1_3 LBB1_3: ldr w8, [sp, #4] ; 4-byte Folded Reload add w8, w8, #48 ldr x9, [sp, #16] ldrsw x10, [sp, #12] mov x11, x10 add w11, w11, #1 str w11, [sp, #12] strb w8, [x9, x10] ldur w8, [x29, #-4] mov w9, #10 sdiv w8, w8, w9 stur w8, [x29, #-4] ldur w8, [x29, #-4] subs w8, w8, #0 cset w8, ge tbnz w8, #0, LBB1_5 b LBB1_4 LBB1_4: ldur w8, [x29, #-4] str w8, [sp, #8] ldur w9, [x29, #-4] mov w8, #0 subs w8, w8, w9 stur w8, [x29, #-4] b LBB1_5 LBB1_5: b LBB1_6 LBB1_6: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-4] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB1_8 b LBB1_7 LBB1_7: ; in Loop: Header=BB1_6 Depth=1 ldur w8, [x29, #-4] mov w9, #10 sdiv w10, w8, w9 mul w10, w10, w9 subs w8, w8, w10 add w8, w8, #48 ldr x10, [sp, #16] ldrsw x11, [sp, #12] mov x12, x11 add w12, w12, #1 str w12, [sp, #12] strb w8, [x10, x11] ldur w8, [x29, #-4] sdiv w8, w8, w9 stur w8, [x29, #-4] b LBB1_6 LBB1_8: ldr w8, [sp, #8] subs w8, w8, #0 cset w8, ge tbnz w8, #0, LBB1_10 b LBB1_9 LBB1_9: ldr x8, [sp, #16] ldrsw x9, [sp, #12] mov x10, x9 add w10, w10, #1 str w10, [sp, #12] add x9, x8, x9 mov w8, #45 strb w8, [x9] b LBB1_10 LBB1_10: ldr x8, [sp, #16] ldrsw x9, [sp, #12] add x8, x8, x9 strb wzr, [x8] ldr x0, [sp, #16] bl _reverse ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _getwordsize ; -- Begin function getwordsize .p2align 2 _getwordsize: ; @getwordsize .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 mov w8, #1 str w8, [sp, #8] str w8, [sp, #4] b LBB2_1 LBB2_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #8] lsl w8, w8, #1 str 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 w8, [sp, #4] add w8, w8, #1 str w8, [sp, #4] b LBB2_1 LBB2_3: ldr w0, [sp, #12] add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _reverse ; -- Begin function reverse .p2align 2 _reverse: ; @reverse .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] str wzr, [sp, #16] ldur x0, [x29, #-8] bl _strlen subs x8, x0, #1 ; kill: def $w8 killed $w8 killed $x8 str w8, [sp, #12] b LBB3_1 LBB3_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #16] ldr w9, [sp, #12] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB3_4 b LBB3_2 LBB3_2: ; in Loop: Header=BB3_1 Depth=1 ldur x8, [x29, #-8] ldrsw x9, [sp, #16] ldrsb w8, [x8, x9] stur w8, [x29, #-12] ldur x8, [x29, #-8] ldrsw x9, [sp, #12] add x8, x8, x9 ldrb w8, [x8] ldur x9, [x29, #-8] ldrsw x10, [sp, #16] add x9, x9, x10 strb w8, [x9] ldur w8, [x29, #-12] ldur x9, [x29, #-8] ldrsw x10, [sp, #12] strb w8, [x9, x10] b LBB3_3 LBB3_3: ; in Loop: Header=BB3_1 Depth=1 ldr w8, [sp, #16] add w8, w8, #1 str w8, [sp, #16] ldr w8, [sp, #12] subs w8, w8, #1 str w8, [sp, #12] b LBB3_1 LBB3_4: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d to string is: %s\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $1024, %rsp ## imm = 0x400 movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -1012(%rbp) movl -1012(%rbp), %edi leaq -1008(%rbp), %rsi callq _itoa movl -1012(%rbp), %esi leaq -1008(%rbp), %rdx leaq L_.str(%rip), %rdi movb $0, %al callq _printf movl $-128, -1012(%rbp) movl -1012(%rbp), %edi leaq -1008(%rbp), %rsi callq _itoa movl -1012(%rbp), %esi leaq -1008(%rbp), %rdx leaq L_.str(%rip), %rdi movb $0, %al callq _printf movl $256, -1012(%rbp) ## imm = 0x100 movl -1012(%rbp), %edi leaq -1008(%rbp), %rsi callq _itoa movl -1012(%rbp), %esi leaq -1008(%rbp), %rdx leaq L_.str(%rip), %rdi movb $0, %al callq _printf callq _getwordsize movl %eax, %ecx subl $1, %ecx movl $1, %eax ## kill: def $cl killed $ecx shll %cl, %eax movl %eax, -1012(%rbp) movl -1012(%rbp), %edi leaq -1008(%rbp), %rsi callq _itoa movl -1012(%rbp), %esi leaq -1008(%rbp), %rdx 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 $1024, %rsp ## imm = 0x400 popq %rbp retq LBB0_2: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _itoa ## -- Begin function itoa .p2align 4, 0x90 _itoa: ## @itoa .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 $0, -20(%rbp) movl -4(%rbp), %eax movl $10, %ecx cltd idivl %ecx movl %edx, -24(%rbp) cmpl $0, -24(%rbp) jge LBB1_2 ## %bb.1: xorl %eax, %eax subl -24(%rbp), %eax movl %eax, -28(%rbp) ## 4-byte Spill jmp LBB1_3 LBB1_2: movl -24(%rbp), %eax movl %eax, -28(%rbp) ## 4-byte Spill LBB1_3: movl -28(%rbp), %eax ## 4-byte Reload addl $48, %eax movb %al, %dl movq -16(%rbp), %rax movl -20(%rbp), %ecx movl %ecx, %esi addl $1, %esi movl %esi, -20(%rbp) movslq %ecx, %rcx movb %dl, (%rax,%rcx) movl -4(%rbp), %eax movl $10, %ecx cltd idivl %ecx movl %eax, -4(%rbp) cmpl $0, -4(%rbp) jge LBB1_5 ## %bb.4: movl -4(%rbp), %eax movl %eax, -24(%rbp) xorl %eax, %eax subl -4(%rbp), %eax movl %eax, -4(%rbp) LBB1_5: jmp LBB1_6 LBB1_6: ## =>This Inner Loop Header: Depth=1 cmpl $0, -4(%rbp) jle LBB1_8 ## %bb.7: ## in Loop: Header=BB1_6 Depth=1 movl -4(%rbp), %eax movl $10, %ecx cltd idivl %ecx addl $48, %edx ## kill: def $dl killed $dl killed $edx movq -16(%rbp), %rax movl -20(%rbp), %ecx movl %ecx, %esi addl $1, %esi movl %esi, -20(%rbp) movslq %ecx, %rcx movb %dl, (%rax,%rcx) movl -4(%rbp), %eax movl $10, %ecx cltd idivl %ecx movl %eax, -4(%rbp) jmp LBB1_6 LBB1_8: cmpl $0, -24(%rbp) jge LBB1_10 ## %bb.9: movq -16(%rbp), %rax movl -20(%rbp), %ecx movl %ecx, %edx addl $1, %edx movl %edx, -20(%rbp) movslq %ecx, %rcx movb $45, (%rax,%rcx) LBB1_10: movq -16(%rbp), %rax movslq -20(%rbp), %rcx movb $0, (%rax,%rcx) movq -16(%rbp), %rdi callq _reverse addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _getwordsize ## -- Begin function getwordsize .p2align 4, 0x90 _getwordsize: ## @getwordsize .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl $1, -8(%rbp) movl $1, -12(%rbp) LBB2_1: ## =>This Inner Loop Header: Depth=1 movl -8(%rbp), %eax shll $1, %eax movl %eax, -8(%rbp) cmpl $0, %eax je LBB2_3 ## %bb.2: ## in Loop: Header=BB2_1 Depth=1 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB2_1 LBB2_3: movl -4(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .globl _reverse ## -- Begin function reverse .p2align 4, 0x90 _reverse: ## @reverse .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movl $0, -16(%rbp) movq -8(%rbp), %rdi callq _strlen subq $1, %rax ## kill: def $eax killed $eax killed $rax movl %eax, -20(%rbp) LBB3_1: ## =>This Inner Loop Header: Depth=1 movl -16(%rbp), %eax cmpl -20(%rbp), %eax jge LBB3_4 ## %bb.2: ## in Loop: Header=BB3_1 Depth=1 movq -8(%rbp), %rax movslq -16(%rbp), %rcx movsbl (%rax,%rcx), %eax movl %eax, -12(%rbp) movq -8(%rbp), %rax movslq -20(%rbp), %rcx movb (%rax,%rcx), %dl movq -8(%rbp), %rax movslq -16(%rbp), %rcx movb %dl, (%rax,%rcx) movl -12(%rbp), %eax movb %al, %dl movq -8(%rbp), %rax movslq -20(%rbp), %rcx movb %dl, (%rax,%rcx) ## %bb.3: ## in Loop: Header=BB3_1 Depth=1 movl -16(%rbp), %eax addl $1, %eax movl %eax, -16(%rbp) movl -20(%rbp), %eax addl $-1, %eax movl %eax, -20(%rbp) jmp LBB3_1 LBB3_4: addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d to string is: %s\n" .subsections_via_symbols
the_stack_data/176706216.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _add12se_5AL ; -- Begin function add12se_5AL .p2align 2 _add12se_5AL: ; @add12se_5AL .cfi_startproc ; %bb.0: sub sp, sp, #384 .cfi_def_cfa_offset 384 stp x28, x27, [sp, #368] ; 16-byte Folded Spill .cfi_offset w27, -8 .cfi_offset w28, -16 str x0, [sp, #360] str x1, [sp, #352] ldr x8, [sp, #360] lsr x8, x8, #3 and x8, x8, #0x1 mvn x8, x8 str x8, [sp, #344] ldr x8, [sp, #352] lsr x8, x8, #4 and x8, x8, #0x1 ldr x9, [sp, #360] lsr x9, x9, #4 and x9, x9, #0x1 eor x8, x8, x9 str x8, [sp, #336] ldr x8, [sp, #352] lsr x8, x8, #4 and x8, x8, #0x1 ldr x9, [sp, #360] lsr x9, x9, #4 and x9, x9, #0x1 and x8, x8, x9 str x8, [sp, #328] ldr x8, [sp, #336] ldr x9, [sp, #360] lsr x9, x9, #3 and x9, x9, #0x1 and x8, x8, x9 str x8, [sp, #320] ldr x8, [sp, #336] ldr x9, [sp, #360] lsr x9, x9, #3 and x9, x9, #0x1 eor x8, x8, x9 str x8, [sp, #312] ldr x8, [sp, #328] ldr x9, [sp, #320] orr x8, x8, x9 str x8, [sp, #304] ldr x8, [sp, #352] lsr x8, x8, #5 and x8, x8, #0x1 ldr x9, [sp, #360] lsr x9, x9, #5 and x9, x9, #0x1 eor x8, x8, x9 str x8, [sp, #296] ldr x8, [sp, #352] lsr x8, x8, #5 and x8, x8, #0x1 ldr x9, [sp, #360] lsr x9, x9, #5 and x9, x9, #0x1 and x8, x8, x9 str x8, [sp, #288] ldr x8, [sp, #296] ldr x9, [sp, #304] and x8, x8, x9 str x8, [sp, #280] ldr x8, [sp, #296] ldr x9, [sp, #304] eor x8, x8, x9 str x8, [sp, #272] ldr x8, [sp, #288] ldr x9, [sp, #280] orr x8, x8, x9 str x8, [sp, #264] ldr x8, [sp, #352] lsr x8, x8, #6 and x8, x8, #0x1 ldr x9, [sp, #360] lsr x9, x9, #6 and x9, x9, #0x1 eor x8, x8, x9 str x8, [sp, #256] ldr x8, [sp, #352] lsr x8, x8, #6 and x8, x8, #0x1 ldr x9, [sp, #360] lsr x9, x9, #6 and x9, x9, #0x1 and x8, x8, x9 str x8, [sp, #248] ldr x8, [sp, #256] ldr x9, [sp, #264] and x8, x8, x9 str x8, [sp, #240] ldr x8, [sp, #256] ldr x9, [sp, #264] eor x8, x8, x9 str x8, [sp, #232] ldr x8, [sp, #248] ldr x9, [sp, #240] orr x8, x8, x9 str x8, [sp, #224] ldr x8, [sp, #352] lsr x8, x8, #7 and x8, x8, #0x1 ldr x9, [sp, #360] lsr x9, x9, #7 and x9, x9, #0x1 eor x8, x8, x9 str x8, [sp, #216] ldr x8, [sp, #352] lsr x8, x8, #7 and x8, x8, #0x1 ldr x9, [sp, #360] lsr x9, x9, #7 and x9, x9, #0x1 and x8, x8, x9 str x8, [sp, #208] ldr x8, [sp, #216] ldr x9, [sp, #224] and x8, x8, x9 str x8, [sp, #200] ldr x8, [sp, #216] ldr x9, [sp, #224] eor x8, x8, x9 str x8, [sp, #192] ldr x8, [sp, #208] ldr x9, [sp, #200] orr x8, x8, x9 str x8, [sp, #184] ldr x8, [sp, #352] lsr x8, x8, #8 and x8, x8, #0x1 ldr x9, [sp, #360] lsr x9, x9, #8 and x9, x9, #0x1 eor x8, x8, x9 str x8, [sp, #176] ldr x8, [sp, #352] lsr x8, x8, #8 and x8, x8, #0x1 ldr x9, [sp, #360] lsr x9, x9, #8 and x9, x9, #0x1 and x8, x8, x9 str x8, [sp, #168] ldr x8, [sp, #176] ldr x9, [sp, #184] and x8, x8, x9 str x8, [sp, #160] ldr x8, [sp, #176] ldr x9, [sp, #184] eor x8, x8, x9 str x8, [sp, #152] ldr x8, [sp, #168] ldr x9, [sp, #160] orr x8, x8, x9 str x8, [sp, #144] ldr x8, [sp, #352] lsr x8, x8, #9 and x8, x8, #0x1 ldr x9, [sp, #360] lsr x9, x9, #9 and x9, x9, #0x1 eor x8, x8, x9 str x8, [sp, #136] ldr x8, [sp, #352] lsr x8, x8, #9 and x8, x8, #0x1 ldr x9, [sp, #360] lsr x9, x9, #9 and x9, x9, #0x1 and x8, x8, x9 str x8, [sp, #128] ldr x8, [sp, #136] ldr x9, [sp, #144] and x8, x8, x9 str x8, [sp, #120] ldr x8, [sp, #136] ldr x9, [sp, #144] eor x8, x8, x9 str x8, [sp, #112] ldr x8, [sp, #128] ldr x9, [sp, #120] orr x8, x8, x9 str x8, [sp, #104] ldr x8, [sp, #352] lsr x8, x8, #10 and x8, x8, #0x1 ldr x9, [sp, #360] lsr x9, x9, #10 and x9, x9, #0x1 eor x8, x8, x9 str x8, [sp, #96] ldr x8, [sp, #352] lsr x8, x8, #10 and x8, x8, #0x1 ldr x9, [sp, #360] lsr x9, x9, #10 and x9, x9, #0x1 and x8, x8, x9 str x8, [sp, #88] ldr x8, [sp, #96] ldr x9, [sp, #104] and x8, x8, x9 str x8, [sp, #80] ldr x8, [sp, #96] ldr x9, [sp, #104] eor x8, x8, x9 str x8, [sp, #72] ldr x8, [sp, #88] ldr x9, [sp, #80] orr x8, x8, x9 str x8, [sp, #64] ldr x8, [sp, #352] lsr x8, x8, #11 and x8, x8, #0x1 ldr x9, [sp, #360] lsr x9, x9, #11 and x9, x9, #0x1 eor x8, x8, x9 str x8, [sp, #56] ldr x8, [sp, #352] lsr x8, x8, #11 and x8, x8, #0x1 ldr x9, [sp, #360] lsr x9, x9, #11 and x9, x9, #0x1 and x8, x8, x9 str x8, [sp, #48] ldr x8, [sp, #56] ldr x9, [sp, #64] and x8, x8, x9 str x8, [sp, #40] ldr x8, [sp, #56] ldr x9, [sp, #64] eor x8, x8, x9 str x8, [sp, #32] ldr x8, [sp, #48] ldr x9, [sp, #40] orr x8, x8, x9 str x8, [sp, #24] ldr x8, [sp, #352] lsr x8, x8, #11 and x8, x8, #0x1 ldr x9, [sp, #360] lsr x9, x9, #11 and x9, x9, #0x1 eor x8, x8, x9 str x8, [sp, #16] ldr x8, [sp, #16] ldr x9, [sp, #24] eor x8, x8, x9 str x8, [sp, #8] str xzr, [sp] ldr x8, [sp, #48] and x9, x8, #0x1 ldr x8, [sp] orr x8, x8, x9 str x8, [sp] ldr x8, [sp, #360] lsr x8, x8, #1 and x8, x8, #0x1 and x9, x8, #0x1 ldr x8, [sp] orr x8, x8, x9, lsl #1 str x8, [sp] ldr x8, [sp, #352] lsr x8, x8, #3 and x8, x8, #0x1 and x9, x8, #0x1 ldr x8, [sp] orr x8, x8, x9, lsl #2 str x8, [sp] ldr x8, [sp, #344] and x9, x8, #0x1 ldr x8, [sp] orr x8, x8, x9, lsl #3 str x8, [sp] ldr x8, [sp, #312] and x9, x8, #0x1 ldr x8, [sp] orr x8, x8, x9, lsl #4 str x8, [sp] ldr x8, [sp, #272] and x9, x8, #0x1 ldr x8, [sp] orr x8, x8, x9, lsl #5 str x8, [sp] ldr x8, [sp, #232] and x9, x8, #0x1 ldr x8, [sp] orr x8, x8, x9, lsl #6 str x8, [sp] ldr x8, [sp, #192] and x9, x8, #0x1 ldr x8, [sp] orr x8, x8, x9, lsl #7 str x8, [sp] ldr x8, [sp, #152] and x9, x8, #0x1 ldr x8, [sp] orr x8, x8, x9, lsl #8 str x8, [sp] ldr x8, [sp, #112] and x9, x8, #0x1 ldr x8, [sp] orr x8, x8, x9, lsl #9 str x8, [sp] ldr x8, [sp, #72] and x9, x8, #0x1 ldr x8, [sp] orr x8, x8, x9, lsl #10 str x8, [sp] ldr x8, [sp, #32] and x9, x8, #0x1 ldr x8, [sp] orr x8, x8, x9, lsl #11 str x8, [sp] ldr x8, [sp, #8] and x9, x8, #0x1 ldr x8, [sp] orr x8, x8, x9, lsl #12 str x8, [sp] ldr x0, [sp] ldp x28, x27, [sp, #368] ; 16-byte Folded Reload add sp, sp, #384 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _add12se_5AL ## -- Begin function add12se_5AL .p2align 4, 0x90 _add12se_5AL: ## @add12se_5AL .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 %rdi, -8(%rbp) movq %rsi, -16(%rbp) movq -8(%rbp), %rax shrq $3, %rax andq $1, %rax xorq $-1, %rax movq %rax, -24(%rbp) movq -16(%rbp), %rax shrq $4, %rax andq $1, %rax movq -8(%rbp), %rcx shrq $4, %rcx andq $1, %rcx xorq %rcx, %rax movq %rax, -32(%rbp) movq -16(%rbp), %rax shrq $4, %rax andq $1, %rax movq -8(%rbp), %rcx shrq $4, %rcx andq $1, %rcx andq %rcx, %rax movq %rax, -40(%rbp) movq -32(%rbp), %rax movq -8(%rbp), %rcx shrq $3, %rcx andq $1, %rcx andq %rcx, %rax movq %rax, -48(%rbp) movq -32(%rbp), %rax movq -8(%rbp), %rcx shrq $3, %rcx andq $1, %rcx xorq %rcx, %rax movq %rax, -56(%rbp) movq -40(%rbp), %rax orq -48(%rbp), %rax movq %rax, -64(%rbp) movq -16(%rbp), %rax shrq $5, %rax andq $1, %rax movq -8(%rbp), %rcx shrq $5, %rcx andq $1, %rcx xorq %rcx, %rax movq %rax, -72(%rbp) movq -16(%rbp), %rax shrq $5, %rax andq $1, %rax movq -8(%rbp), %rcx shrq $5, %rcx andq $1, %rcx andq %rcx, %rax movq %rax, -80(%rbp) movq -72(%rbp), %rax andq -64(%rbp), %rax movq %rax, -88(%rbp) movq -72(%rbp), %rax xorq -64(%rbp), %rax movq %rax, -96(%rbp) movq -80(%rbp), %rax orq -88(%rbp), %rax movq %rax, -104(%rbp) movq -16(%rbp), %rax shrq $6, %rax andq $1, %rax movq -8(%rbp), %rcx shrq $6, %rcx andq $1, %rcx xorq %rcx, %rax movq %rax, -112(%rbp) movq -16(%rbp), %rax shrq $6, %rax andq $1, %rax movq -8(%rbp), %rcx shrq $6, %rcx andq $1, %rcx andq %rcx, %rax movq %rax, -120(%rbp) movq -112(%rbp), %rax andq -104(%rbp), %rax movq %rax, -128(%rbp) movq -112(%rbp), %rax xorq -104(%rbp), %rax movq %rax, -136(%rbp) movq -120(%rbp), %rax orq -128(%rbp), %rax movq %rax, -144(%rbp) movq -16(%rbp), %rax shrq $7, %rax andq $1, %rax movq -8(%rbp), %rcx shrq $7, %rcx andq $1, %rcx xorq %rcx, %rax movq %rax, -152(%rbp) movq -16(%rbp), %rax shrq $7, %rax andq $1, %rax movq -8(%rbp), %rcx shrq $7, %rcx andq $1, %rcx andq %rcx, %rax movq %rax, -160(%rbp) movq -152(%rbp), %rax andq -144(%rbp), %rax movq %rax, -168(%rbp) movq -152(%rbp), %rax xorq -144(%rbp), %rax movq %rax, -176(%rbp) movq -160(%rbp), %rax orq -168(%rbp), %rax movq %rax, -184(%rbp) movq -16(%rbp), %rax shrq $8, %rax andq $1, %rax movq -8(%rbp), %rcx shrq $8, %rcx andq $1, %rcx xorq %rcx, %rax movq %rax, -192(%rbp) movq -16(%rbp), %rax shrq $8, %rax andq $1, %rax movq -8(%rbp), %rcx shrq $8, %rcx andq $1, %rcx andq %rcx, %rax movq %rax, -200(%rbp) movq -192(%rbp), %rax andq -184(%rbp), %rax movq %rax, -208(%rbp) movq -192(%rbp), %rax xorq -184(%rbp), %rax movq %rax, -216(%rbp) movq -200(%rbp), %rax orq -208(%rbp), %rax movq %rax, -224(%rbp) movq -16(%rbp), %rax shrq $9, %rax andq $1, %rax movq -8(%rbp), %rcx shrq $9, %rcx andq $1, %rcx xorq %rcx, %rax movq %rax, -232(%rbp) movq -16(%rbp), %rax shrq $9, %rax andq $1, %rax movq -8(%rbp), %rcx shrq $9, %rcx andq $1, %rcx andq %rcx, %rax movq %rax, -240(%rbp) movq -232(%rbp), %rax andq -224(%rbp), %rax movq %rax, -248(%rbp) movq -232(%rbp), %rax xorq -224(%rbp), %rax movq %rax, -256(%rbp) movq -240(%rbp), %rax orq -248(%rbp), %rax movq %rax, -264(%rbp) movq -16(%rbp), %rax shrq $10, %rax andq $1, %rax movq -8(%rbp), %rcx shrq $10, %rcx andq $1, %rcx xorq %rcx, %rax movq %rax, -272(%rbp) movq -16(%rbp), %rax shrq $10, %rax andq $1, %rax movq -8(%rbp), %rcx shrq $10, %rcx andq $1, %rcx andq %rcx, %rax movq %rax, -280(%rbp) movq -272(%rbp), %rax andq -264(%rbp), %rax movq %rax, -288(%rbp) movq -272(%rbp), %rax xorq -264(%rbp), %rax movq %rax, -296(%rbp) movq -280(%rbp), %rax orq -288(%rbp), %rax movq %rax, -304(%rbp) movq -16(%rbp), %rax shrq $11, %rax andq $1, %rax movq -8(%rbp), %rcx shrq $11, %rcx andq $1, %rcx xorq %rcx, %rax movq %rax, -312(%rbp) movq -16(%rbp), %rax shrq $11, %rax andq $1, %rax movq -8(%rbp), %rcx shrq $11, %rcx andq $1, %rcx andq %rcx, %rax movq %rax, -320(%rbp) movq -312(%rbp), %rax andq -304(%rbp), %rax movq %rax, -328(%rbp) movq -312(%rbp), %rax xorq -304(%rbp), %rax movq %rax, -336(%rbp) movq -320(%rbp), %rax orq -328(%rbp), %rax movq %rax, -344(%rbp) movq -16(%rbp), %rax shrq $11, %rax andq $1, %rax movq -8(%rbp), %rcx shrq $11, %rcx andq $1, %rcx xorq %rcx, %rax movq %rax, -352(%rbp) movq -352(%rbp), %rax xorq -344(%rbp), %rax movq %rax, -360(%rbp) movq $0, -368(%rbp) movq -320(%rbp), %rax andq $1, %rax shlq $0, %rax orq -368(%rbp), %rax movq %rax, -368(%rbp) movq -8(%rbp), %rax shrq $1, %rax andq $1, %rax andq $1, %rax shlq $1, %rax orq -368(%rbp), %rax movq %rax, -368(%rbp) movq -16(%rbp), %rax shrq $3, %rax andq $1, %rax andq $1, %rax shlq $2, %rax orq -368(%rbp), %rax movq %rax, -368(%rbp) movq -24(%rbp), %rax andq $1, %rax shlq $3, %rax orq -368(%rbp), %rax movq %rax, -368(%rbp) movq -56(%rbp), %rax andq $1, %rax shlq $4, %rax orq -368(%rbp), %rax movq %rax, -368(%rbp) movq -96(%rbp), %rax andq $1, %rax shlq $5, %rax orq -368(%rbp), %rax movq %rax, -368(%rbp) movq -136(%rbp), %rax andq $1, %rax shlq $6, %rax orq -368(%rbp), %rax movq %rax, -368(%rbp) movq -176(%rbp), %rax andq $1, %rax shlq $7, %rax orq -368(%rbp), %rax movq %rax, -368(%rbp) movq -216(%rbp), %rax andq $1, %rax shlq $8, %rax orq -368(%rbp), %rax movq %rax, -368(%rbp) movq -256(%rbp), %rax andq $1, %rax shlq $9, %rax orq -368(%rbp), %rax movq %rax, -368(%rbp) movq -296(%rbp), %rax andq $1, %rax shlq $10, %rax orq -368(%rbp), %rax movq %rax, -368(%rbp) movq -336(%rbp), %rax andq $1, %rax shlq $11, %rax orq -368(%rbp), %rax movq %rax, -368(%rbp) movq -360(%rbp), %rax andq $1, %rax shlq $12, %rax orq -368(%rbp), %rax movq %rax, -368(%rbp) movq -368(%rbp), %rax addq $240, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/211080337.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl ___error ; -- Begin function __error .p2align 2 ___error: ; @__error .cfi_startproc ; %bb.0: adrp x0, _m_errno_main@PAGE add x0, x0, _m_errno_main@PAGEOFF ret .cfi_endproc ; -- End function .globl _set_errno ; -- Begin function set_errno .p2align 2 _set_errno: ; @set_errno .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #12] ldr w8, [sp, #12] adrp x9, _m_errno_main@PAGE str w8, [x9, _m_errno_main@PAGEOFF] add sp, sp, #16 ret .cfi_endproc ; -- End function .zerofill __DATA,__bss,_m_errno_main,4,2 ; @m_errno_main .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl ___error ## -- Begin function __error .p2align 4, 0x90 ___error: ## @__error .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq _m_errno_main(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .globl _set_errno ## -- Begin function set_errno .p2align 4, 0x90 _set_errno: ## @set_errno .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 %eax, _m_errno_main(%rip) popq %rbp retq .cfi_endproc ## -- End function .zerofill __DATA,__bss,_m_errno_main,4,2 ## @m_errno_main .subsections_via_symbols
the_stack_data/863828.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _gcd ; -- Begin function gcd .p2align 2 _gcd: ; @gcd .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #12] str w1, [sp, #8] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #8] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #12] ldr w10, [sp, #8] sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 str w8, [sp, #4] ldr w8, [sp, #8] str w8, [sp, #12] ldr w8, [sp, #4] str w8, [sp, #8] b LBB0_1 LBB0_3: ldr w0, [sp, #12] add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov x9, sp sub x8, x29, #4 str x8, [x9] sub x8, x29, #8 str x8, [x9, #8] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _scanf ldur w0, [x29, #-4] ldur w1, [x29, #-8] bl _gcd mov x9, sp ; implicit-def: $x8 mov x8, x0 str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf mov w0, #0 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d %d" l_.str.1: ; @.str.1 .asciz "%d\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .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 movl %edi, -4(%rbp) movl %esi, -8(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 cmpl $0, -8(%rbp) je LBB0_3 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl -4(%rbp), %eax cltd idivl -8(%rbp) movl %edx, -12(%rbp) movl -8(%rbp), %eax movl %eax, -4(%rbp) movl -12(%rbp), %eax movl %eax, -8(%rbp) jmp LBB0_1 LBB0_3: movl -4(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp leaq L_.str(%rip), %rdi leaq -4(%rbp), %rsi leaq -8(%rbp), %rdx movb $0, %al callq _scanf movl -4(%rbp), %edi movl -8(%rbp), %esi callq _gcd movl %eax, %esi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d %d" L_.str.1: ## @.str.1 .asciz "%d\n" .subsections_via_symbols
the_stack_data/1101757.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, #1152 stur wzr, [x29, #-20] add x0, sp, #40 str x0, [sp, #24] ; 8-byte Folded Spill bl _load ldr x0, [sp, #24] ; 8-byte Folded Reload mov w8, #1 and w1, w8, #0x1 bl _run mov x8, sp str x0, [x8] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf str wzr, [sp, #40] str xzr, [sp, #48] mov x8, #1 str x8, [sp, #56] str x8, [sp, #32] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #32] subs x8, x8, #8 cset w8, hs tbnz w8, #0, LBB0_4 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 add x8, sp, #40 add x9, x8, #16 ldr x10, [sp, #32] mov x8, #0 str x8, [x9, x10, lsl #3] b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #32] add x8, x8, #1 str x8, [sp, #32] b LBB0_1 LBB0_4: add x0, sp, #40 str x0, [sp, #8] ; 8-byte Folded Spill mov w8, #0 str w8, [sp, #20] ; 4-byte Folded Spill and w1, w8, #0x1 bl _print ldr x0, [sp, #8] ; 8-byte Folded Reload ldr w8, [sp, #20] ; 4-byte Folded Reload and w1, w8, #0x1 bl _run mov x8, sp str x0, [x8] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf mov w0, #0 add sp, sp, #1152 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 load _load: ; @load .cfi_startproc ; %bb.0: sub sp, sp, #128 .cfi_def_cfa_offset 128 stp x29, x30, [sp, #112] ; 16-byte Folded Spill add x29, sp, #112 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] ldur x8, [x29, #-8] str wzr, [x8] ldur x8, [x29, #-8] str xzr, [x8, #8] stur xzr, [x29, #-16] b LBB1_1 LBB1_1: ; =>This Inner Loop Header: Depth=1 ldur x8, [x29, #-16] subs x8, x8, #8 cset w8, hs tbnz w8, #0, LBB1_4 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 ldur x8, [x29, #-8] add x9, x8, #16 ldur x10, [x29, #-16] mov x8, #0 str x8, [x9, x10, lsl #3] b LBB1_3 LBB1_3: ; in Loop: Header=BB1_1 Depth=1 ldur x8, [x29, #-16] add x8, x8, #1 stur x8, [x29, #-16] b LBB1_1 LBB1_4: adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF adrp x1, l_.str.3@PAGE add x1, x1, l_.str.3@PAGEOFF bl _fopen stur x0, [x29, #-24] ldur x8, [x29, #-24] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB1_6 b LBB1_5 LBB1_5: adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] ldr x0, [x8] adrp x1, l_.str.4@PAGE add x1, x1, l_.str.4@PAGEOFF bl _fprintf mov w0, #1 bl _exit LBB1_6: ; kill: def $x8 killed $xzr stur xzr, [x29, #-32] stur xzr, [x29, #-40] stur xzr, [x29, #-48] b LBB1_7 LBB1_7: ; =>This Inner Loop Header: Depth=1 ldur x2, [x29, #-24] sub x0, x29, #32 sub x1, x29, #40 bl _getline str x0, [sp, #56] adds x8, x0, #1 cset w8, eq mov w9, #0 str w9, [sp, #20] ; 4-byte Folded Spill tbnz w8, #0, LBB1_9 b LBB1_8 LBB1_8: ; in Loop: Header=BB1_7 Depth=1 ldur x8, [x29, #-48] subs x8, x8, #32 cset w8, lo str w8, [sp, #20] ; 4-byte Folded Spill b LBB1_9 LBB1_9: ; in Loop: Header=BB1_7 Depth=1 ldr w8, [sp, #20] ; 4-byte Folded Reload tbz w8, #0, LBB1_11 b LBB1_10 LBB1_10: ; in Loop: Header=BB1_7 Depth=1 ldur x8, [x29, #-8] add x8, x8, #80 ldur x9, [x29, #-48] add x10, x9, #1 stur x10, [x29, #-48] add x8, x8, x9, lsl #5 str x8, [sp, #8] ; 8-byte Folded Spill ldur x0, [x29, #-32] add x8, sp, #24 bl _assemble ldr x8, [sp, #8] ; 8-byte Folded Reload ldur q0, [sp, #24] str q0, [x8] ldur q0, [sp, #40] str q0, [x8, #16] b LBB1_7 LBB1_11: ldur x0, [x29, #-24] bl _fclose ldur x0, [x29, #-32] bl _free ldp x29, x30, [sp, #112] ; 16-byte Folded Reload add sp, sp, #128 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function run _run: ; @run .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] mov w8, #1 and w8, w1, w8 sturb w8, [x29, #-9] stur xzr, [x29, #-24] b LBB2_1 LBB2_1: ; =>This Loop Header: Depth=1 ; Child Loop BB2_6 Depth 2 ldur x8, [x29, #-8] ldr w8, [x8] subs w8, w8, #0 cset w8, lt mov w9, #0 str w9, [sp, #36] ; 4-byte Folded Spill tbnz w8, #0, LBB2_3 b LBB2_2 LBB2_2: ; in Loop: Header=BB2_1 Depth=1 ldur x8, [x29, #-8] ldr w8, [x8] subs w8, w8, #32 cset w8, lt str w8, [sp, #36] ; 4-byte Folded Spill b LBB2_3 LBB2_3: ; in Loop: Header=BB2_1 Depth=1 ldr w8, [sp, #36] ; 4-byte Folded Reload tbz w8, #0, LBB2_25 b LBB2_4 LBB2_4: ; in Loop: Header=BB2_1 Depth=1 ldurb w8, [x29, #-9] tbnz w8, #0, LBB2_10 b LBB2_5 LBB2_5: ; in Loop: Header=BB2_1 Depth=1 mov w8, #97 stur w8, [x29, #-28] b LBB2_6 LBB2_6: ; Parent Loop BB2_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldur w8, [x29, #-28] subs w8, w8, #104 cset w8, gt tbnz w8, #0, LBB2_9 b LBB2_7 LBB2_7: ; in Loop: Header=BB2_6 Depth=2 ldur x8, [x29, #-8] add x8, x8, #16 ldur w9, [x29, #-28] subs w9, w9, #97 ldr x8, [x8, w9, sxtw #3] mov x9, sp str x8, [x9] adrp x0, l_.str.12@PAGE add x0, x0, l_.str.12@PAGEOFF bl _printf b LBB2_8 LBB2_8: ; in Loop: Header=BB2_6 Depth=2 ldur w8, [x29, #-28] add w8, w8, #1 stur w8, [x29, #-28] b LBB2_6 LBB2_9: ; in Loop: Header=BB2_1 Depth=1 adrp x0, l_.str.13@PAGE add x0, x0, l_.str.13@PAGEOFF bl _printf b LBB2_10 LBB2_10: ; in Loop: Header=BB2_1 Depth=1 ldur x8, [x29, #-8] add x8, x8, #80 ldur x9, [x29, #-8] ldrsw x9, [x9] add x8, x8, x9, lsl #5 str x8, [sp, #40] ldr x8, [sp, #40] ldr w8, [x8, #4] adds w8, w8, #1 cset w8, eq tbnz w8, #0, LBB2_12 b LBB2_11 LBB2_11: ; in Loop: Header=BB2_1 Depth=1 ldur x8, [x29, #-8] add x8, x8, #16 ldr x9, [sp, #40] ldrsw x9, [x9, #4] ldr x8, [x8, x9, lsl #3] ldr x9, [sp, #40] str x8, [x9, #16] b LBB2_12 LBB2_12: ; in Loop: Header=BB2_1 Depth=1 ldr x8, [sp, #40] ldr w8, [x8, #8] adds w8, w8, #1 cset w8, eq tbnz w8, #0, LBB2_14 b LBB2_13 LBB2_13: ; in Loop: Header=BB2_1 Depth=1 ldur x8, [x29, #-8] add x8, x8, #16 ldr x9, [sp, #40] ldrsw x9, [x9, #8] ldr x8, [x8, x9, lsl #3] ldr x9, [sp, #40] str x8, [x9, #24] b LBB2_14 LBB2_14: ; in Loop: Header=BB2_1 Depth=1 ldr x8, [sp, #40] ldr w8, [x8] subs w8, w8, #0 ; kill: def $x8 killed $w8 str x8, [sp, #24] ; 8-byte Folded Spill subs x8, x8, #5 cset w8, hi tbnz w8, #0, LBB2_24 ; %bb.15: ; in Loop: Header=BB2_1 Depth=1 ldr x11, [sp, #24] ; 8-byte Folded Reload adrp x10, lJTI2_0@PAGE add x10, x10, lJTI2_0@PAGEOFF Ltmp0: adr x8, Ltmp0 ldrsw x9, [x10, x11, lsl #2] add x8, x8, x9 br x8 LBB2_16: ; in Loop: Header=BB2_1 Depth=1 ldr x8, [sp, #40] ldr x8, [x8, #24] ldur x9, [x29, #-8] add x9, x9, #16 ldr x10, [sp, #40] ldrsw x10, [x10, #4] str x8, [x9, x10, lsl #3] b LBB2_24 LBB2_17: ; in Loop: Header=BB2_1 Depth=1 ldr x8, [sp, #40] ldr x10, [x8, #24] ldur x8, [x29, #-8] add x8, x8, #16 ldr x9, [sp, #40] ldrsw x9, [x9, #4] add x9, x8, x9, lsl #3 ldr x8, [x9] subs x8, x8, x10 str x8, [x9] b LBB2_24 LBB2_18: ; in Loop: Header=BB2_1 Depth=1 ldr x8, [sp, #40] ldr x10, [x8, #24] ldur x8, [x29, #-8] add x8, x8, #16 ldr x9, [sp, #40] ldrsw x9, [x9, #4] add x9, x8, x9, lsl #3 ldr x8, [x9] mul x8, x8, x10 str x8, [x9] ldur x8, [x29, #-24] add x8, x8, #1 stur x8, [x29, #-24] b LBB2_24 LBB2_19: ; in Loop: Header=BB2_1 Depth=1 ldr x8, [sp, #40] ldr x8, [x8, #16] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB2_21 b LBB2_20 LBB2_20: ; in Loop: Header=BB2_1 Depth=1 ldr x8, [sp, #40] ldr x10, [x8, #24] ldur x9, [x29, #-8] ldrsw x8, [x9] add x8, x8, x10 ; kill: def $w8 killed $w8 killed $x8 str w8, [x9] ldur x9, [x29, #-8] ldr x8, [x9, #8] add x8, x8, #1 str x8, [x9, #8] b LBB2_1 LBB2_21: ; in Loop: Header=BB2_1 Depth=1 b LBB2_24 LBB2_22: ; in Loop: Header=BB2_1 Depth=1 ldr x8, [sp, #40] ldr x10, [x8, #24] ldur x9, [x29, #-8] ldrsw x8, [x9] add x8, x8, x10 ; kill: def $w8 killed $w8 killed $x8 str w8, [x9] ldur x9, [x29, #-8] ldr x8, [x9, #8] add x8, x8, #1 str x8, [x9, #8] b LBB2_1 LBB2_23: ; in Loop: Header=BB2_1 Depth=1 b LBB2_24 LBB2_24: ; in Loop: Header=BB2_1 Depth=1 ldur x9, [x29, #-8] ldr w8, [x9] add w8, w8, #1 str w8, [x9] ldur x9, [x29, #-8] ldr x8, [x9, #8] add x8, x8, #1 str x8, [x9, #8] b LBB2_1 LBB2_25: ldurb w8, [x29, #-9] tbz w8, #0, LBB2_27 b LBB2_26 LBB2_26: ldur x8, [x29, #-24] str x8, [sp, #16] ; 8-byte Folded Spill b LBB2_28 LBB2_27: ldur x8, [x29, #-8] ldr x8, [x8, #72] str x8, [sp, #16] ; 8-byte Folded Spill b LBB2_28 LBB2_28: ldr x0, [sp, #16] ; 8-byte Folded Reload ldp x29, x30, [sp, #80] ; 16-byte Folded Reload add sp, sp, #96 ret .cfi_endproc .p2align 2 lJTI2_0: .long LBB2_16-Ltmp0 .long LBB2_17-Ltmp0 .long LBB2_18-Ltmp0 .long LBB2_19-Ltmp0 .long LBB2_22-Ltmp0 .long LBB2_23-Ltmp0 ; -- End function .p2align 2 ; -- Begin function print _print: ; @print .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] mov w8, #1 and w8, w1, w8 sturb w8, [x29, #-9] ldur x8, [x29, #-8] ldr w9, [x8] ; 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 ldur x8, [x29, #-8] ldr x8, [x8, #8] mov x9, sp str x8, [x9] adrp x0, l_.str.15@PAGE add x0, x0, l_.str.15@PAGEOFF bl _printf stur wzr, [x29, #-16] b LBB3_1 LBB3_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-16] subs w8, w8, #8 cset w8, ge tbnz w8, #0, LBB3_6 b LBB3_2 LBB3_2: ; in Loop: Header=BB3_1 Depth=1 ldur x8, [x29, #-8] add x8, x8, #16 ldursw x9, [x29, #-16] ldr x8, [x8, x9, lsl #3] str x8, [sp, #24] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB3_4 b LBB3_3 LBB3_3: ; in Loop: Header=BB3_1 Depth=1 ldur w8, [x29, #-16] add w11, w8, #97 ldr x8, [sp, #24] mov x9, sp ; implicit-def: $x10 mov x10, x11 str x10, [x9] str x8, [x9, #8] adrp x0, l_.str.16@PAGE add x0, x0, l_.str.16@PAGEOFF bl _printf b LBB3_4 LBB3_4: ; in Loop: Header=BB3_1 Depth=1 b LBB3_5 LBB3_5: ; in Loop: Header=BB3_1 Depth=1 ldur w8, [x29, #-16] add w8, w8, #1 stur w8, [x29, #-16] b LBB3_1 LBB3_6: ldurb w8, [x29, #-9] tbz w8, #0, LBB3_15 b LBB3_7 LBB3_7: stur wzr, [x29, #-16] b LBB3_8 LBB3_8: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-16] subs w8, w8, #32 cset w8, ge tbnz w8, #0, LBB3_14 b LBB3_9 LBB3_9: ; in Loop: Header=BB3_8 Depth=1 ldur x8, [x29, #-8] add x8, x8, #80 ldursw x9, [x29, #-16] lsl x9, x9, #5 ldr w0, [x8, x9] bl _id2index str x0, [sp, #16] ldur w8, [x29, #-16] ; implicit-def: $x10 mov x10, x8 ldr x9, [sp, #16] adrp x8, _cmd@PAGE add x8, x8, _cmd@PAGEOFF add x8, x8, x9, lsl #4 ldr x8, [x8, #8] mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x0, l_.str.17@PAGE add x0, x0, l_.str.17@PAGEOFF bl _printf ldur x8, [x29, #-8] add x8, x8, #80 ldursw x9, [x29, #-16] add x8, x8, x9, lsl #5 ldr w8, [x8, #4] adds w8, w8, #1 cset w8, eq tbnz w8, #0, LBB3_11 b LBB3_10 LBB3_10: ; in Loop: Header=BB3_8 Depth=1 ldur x8, [x29, #-8] add x8, x8, #80 ldursw x9, [x29, #-16] add x8, x8, x9, lsl #5 ldr w8, [x8, #4] add w10, w8, #97 mov x9, sp ; implicit-def: $x8 mov x8, x10 str x8, [x9] adrp x0, l_.str.18@PAGE add x0, x0, l_.str.18@PAGEOFF bl _printf b LBB3_12 LBB3_11: ; in Loop: Header=BB3_8 Depth=1 ldur x8, [x29, #-8] add x8, x8, #80 ldursw x9, [x29, #-16] add x8, x8, x9, lsl #5 ldr x8, [x8, #16] mov x9, sp str x8, [x9] adrp x0, l_.str.19@PAGE add x0, x0, l_.str.19@PAGEOFF bl _printf b LBB3_12 LBB3_12: ; in Loop: Header=BB3_8 Depth=1 adrp x0, l_.str.13@PAGE add x0, x0, l_.str.13@PAGEOFF bl _printf b LBB3_13 LBB3_13: ; in Loop: Header=BB3_8 Depth=1 ldur w8, [x29, #-16] add w8, w8, #1 stur w8, [x29, #-16] b LBB3_8 LBB3_14: b LBB3_15 LBB3_15: adrp x0, l_.str.13@PAGE add x0, x0, l_.str.13@PAGEOFF bl _printf ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function assemble _assemble: ; @assemble .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 x8, [sp, #8] ; 8-byte Folded Spill stur x0, [x29, #-8] adrp x9, l___const.assemble.ins@PAGE add x9, x9, l___const.assemble.ins@PAGEOFF ldr q0, [x9] str q0, [x8] ldr q0, [x9, #16] str q0, [x8, #16] stur wzr, [x29, #-12] ldur x0, [x29, #-8] adrp x1, l_.str.5@PAGE add x1, x1, l_.str.5@PAGEOFF bl _strtok str x0, [sp, #24] b LBB4_1 LBB4_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #24] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB4_21 b LBB4_2 LBB4_2: ; in Loop: Header=BB4_1 Depth=1 ldur w8, [x29, #-12] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB4_4 b LBB4_3 LBB4_3: ; in Loop: Header=BB4_1 Depth=1 ldr x0, [sp, #24] bl _name2index ldr x9, [sp, #8] ; 8-byte Folded Reload str x0, [sp, #16] ldr x8, [sp, #16] lsl x10, x8, #4 adrp x8, _cmd@PAGE add x8, x8, _cmd@PAGEOFF ldr w8, [x8, x10] str w8, [x9] b LBB4_20 LBB4_4: ; in Loop: Header=BB4_1 Depth=1 ldur w8, [x29, #-12] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB4_12 b LBB4_5 LBB4_5: ; in Loop: Header=BB4_1 Depth=1 ldr x8, [sp, #24] ldrsb w8, [x8] subs w8, w8, #97 cset w8, lt tbnz w8, #0, LBB4_8 b LBB4_6 LBB4_6: ; in Loop: Header=BB4_1 Depth=1 ldr x8, [sp, #24] ldrsb w8, [x8] subs w8, w8, #104 cset w8, gt tbnz w8, #0, LBB4_8 b LBB4_7 LBB4_7: ; in Loop: Header=BB4_1 Depth=1 ldr x9, [sp, #8] ; 8-byte Folded Reload ldr x8, [sp, #24] ldrsb w8, [x8] subs w8, w8, #97 str w8, [x9, #4] b LBB4_11 LBB4_8: ; in Loop: Header=BB4_1 Depth=1 ldr x0, [sp, #24] bl _atoll ldr x8, [sp, #8] ; 8-byte Folded Reload str x0, [x8, #16] ldr w8, [x8] subs w8, w8, #3 cset w8, ne tbnz w8, #0, LBB4_10 b LBB4_9 LBB4_9: ; in Loop: Header=BB4_1 Depth=1 ldr x9, [sp, #8] ; 8-byte Folded Reload ldr x8, [x9, #16] subs x8, x8, #0 cset w8, eq and w11, w8, #0x1 mov w10, #4 mov w8, #5 ands w11, w11, #0x1 csel w8, w8, w10, ne str w8, [x9] b LBB4_10 LBB4_10: ; in Loop: Header=BB4_1 Depth=1 b LBB4_11 LBB4_11: ; in Loop: Header=BB4_1 Depth=1 b LBB4_19 LBB4_12: ; in Loop: Header=BB4_1 Depth=1 ldur w8, [x29, #-12] subs w8, w8, #2 cset w8, ne tbnz w8, #0, LBB4_18 b LBB4_13 LBB4_13: ; in Loop: Header=BB4_1 Depth=1 ldr x8, [sp, #24] ldrsb w8, [x8] subs w8, w8, #97 cset w8, lt tbnz w8, #0, LBB4_16 b LBB4_14 LBB4_14: ; in Loop: Header=BB4_1 Depth=1 ldr x8, [sp, #24] ldrsb w8, [x8] subs w8, w8, #104 cset w8, gt tbnz w8, #0, LBB4_16 b LBB4_15 LBB4_15: ; in Loop: Header=BB4_1 Depth=1 ldr x9, [sp, #8] ; 8-byte Folded Reload ldr x8, [sp, #24] ldrsb w8, [x8] subs w8, w8, #97 str w8, [x9, #8] b LBB4_17 LBB4_16: ; in Loop: Header=BB4_1 Depth=1 ldr x0, [sp, #24] bl _atoll ldr x8, [sp, #8] ; 8-byte Folded Reload str x0, [x8, #24] b LBB4_17 LBB4_17: ; in Loop: Header=BB4_1 Depth=1 b LBB4_18 LBB4_18: ; in Loop: Header=BB4_1 Depth=1 b LBB4_19 LBB4_19: ; in Loop: Header=BB4_1 Depth=1 b LBB4_20 LBB4_20: ; in Loop: Header=BB4_1 Depth=1 ldur w8, [x29, #-12] add w8, w8, #1 stur w8, [x29, #-12] mov x0, #0 adrp x1, l_.str.5@PAGE add x1, x1, l_.str.5@PAGEOFF bl _strtok str x0, [sp, #24] b LBB4_1 LBB4_21: ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function name2index _name2index: ; @name2index .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 xzr, [sp, #8] b LBB5_1 LBB5_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #8] subs x8, x8, #6 cset w8, hs tbnz w8, #0, LBB5_6 b LBB5_2 LBB5_2: ; in Loop: Header=BB5_1 Depth=1 ldr x9, [sp, #8] adrp x8, _cmd@PAGE add x8, x8, _cmd@PAGEOFF add x8, x8, x9, lsl #4 ldr x0, [x8, #8] ldr x1, [sp, #16] bl _strcmp subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB5_4 b LBB5_3 LBB5_3: ldr x8, [sp, #8] stur x8, [x29, #-8] b LBB5_7 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] add x8, x8, #1 str x8, [sp, #8] b LBB5_1 LBB5_6: stur xzr, [x29, #-8] b LBB5_7 LBB5_7: ldur x0, [x29, #-8] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function id2index _id2index: ; @id2index .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str w0, [sp, #20] ldr w8, [sp, #20] ; kill: def $x8 killed $w8 lsl x9, x8, #4 adrp x8, _cmd@PAGE add x8, x8, _cmd@PAGEOFF ldr w8, [x8, x9] ldr w9, [sp, #20] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB6_2 b LBB6_1 LBB6_1: ldr w8, [sp, #20] ; kill: def $x8 killed $w8 str x8, [sp, #24] b LBB6_9 LBB6_2: str xzr, [sp, #8] b LBB6_3 LBB6_3: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #8] subs x8, x8, #6 cset w8, hs tbnz w8, #0, LBB6_8 b LBB6_4 LBB6_4: ; in Loop: Header=BB6_3 Depth=1 ldr x8, [sp, #8] lsl x9, x8, #4 adrp x8, _cmd@PAGE add x8, x8, _cmd@PAGEOFF ldr w8, [x8, x9] ldr w9, [sp, #20] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB6_6 b LBB6_5 LBB6_5: ldr x8, [sp, #8] str x8, [sp, #24] b LBB6_9 LBB6_6: ; in Loop: Header=BB6_3 Depth=1 b LBB6_7 LBB6_7: ; in Loop: Header=BB6_3 Depth=1 ldr x8, [sp, #8] add x8, x8, #1 str x8, [sp, #8] b LBB6_3 LBB6_8: str xzr, [sp, #24] b LBB6_9 LBB6_9: ldr x0, [sp, #24] add sp, sp, #32 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Part 1: %lld\n" l_.str.1: ; @.str.1 .asciz "Part 2: %lld\n" l_.str.2: ; @.str.2 .asciz "23.txt" l_.str.3: ; @.str.3 .asciz "r" l_.str.4: ; @.str.4 .asciz "File not found" .section __TEXT,__const .p2align 3 ; @__const.assemble.ins l___const.assemble.ins: .long 5 ; 0x5 .long 4294967295 ; 0xffffffff .long 4294967295 ; 0xffffffff .space 4 .quad 0 ; 0x0 .quad 0 ; 0x0 .section __TEXT,__cstring,cstring_literals l_.str.5: ; @.str.5 .asciz " " .section __DATA,__const .p2align 3 ; @cmd _cmd: .long 0 ; 0x0 .space 4 .quad l_.str.6 .long 1 ; 0x1 .space 4 .quad l_.str.7 .long 2 ; 0x2 .space 4 .quad l_.str.8 .long 3 ; 0x3 .space 4 .quad l_.str.9 .long 4 ; 0x4 .space 4 .quad l_.str.10 .long 5 ; 0x5 .space 4 .quad l_.str.11 .section __TEXT,__cstring,cstring_literals l_.str.6: ; @.str.6 .asciz "set" l_.str.7: ; @.str.7 .asciz "sub" l_.str.8: ; @.str.8 .asciz "mul" l_.str.9: ; @.str.9 .asciz "jnz" l_.str.10: ; @.str.10 .asciz "jmp" l_.str.11: ; @.str.11 .asciz "nop" l_.str.12: ; @.str.12 .asciz " %8lld" l_.str.13: ; @.str.13 .asciz "\n" l_.str.14: ; @.str.14 .asciz "IP : %i\n" l_.str.15: ; @.str.15 .asciz "Tick : %lld\n" l_.str.16: ; @.str.16 .asciz "Rg %c : %lld\n" l_.str.17: ; @.str.17 .asciz " %2i: %s" l_.str.18: ; @.str.18 .asciz " %c" l_.str.19: ; @.str.19 .asciz " %lld" .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 $1120, %rsp ## imm = 0x460 movl $0, -4(%rbp) leaq -1112(%rbp), %rdi callq _load leaq -1112(%rbp), %rdi movl $1, %esi callq _run movq %rax, %rsi leaq L_.str(%rip), %rdi movb $0, %al callq _printf movl $0, -1112(%rbp) movq $0, -1104(%rbp) movq $1, -1096(%rbp) movq $1, -1120(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 cmpq $8, -1120(%rbp) jae LBB0_4 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movq -1120(%rbp), %rax movq $0, -1096(%rbp,%rax,8) ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movq -1120(%rbp), %rax addq $1, %rax movq %rax, -1120(%rbp) jmp LBB0_1 LBB0_4: leaq -1112(%rbp), %rdi xorl %esi, %esi callq _print leaq -1112(%rbp), %rdi xorl %esi, %esi callq _run movq %rax, %rsi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf xorl %eax, %eax addq $1120, %rsp ## imm = 0x460 popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function load _load: ## @load .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $112, %rsp movq %rdi, -8(%rbp) movq -8(%rbp), %rax movl $0, (%rax) movq -8(%rbp), %rax movq $0, 8(%rax) movq $0, -16(%rbp) LBB1_1: ## =>This Inner Loop Header: Depth=1 cmpq $8, -16(%rbp) jae LBB1_4 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 movq -8(%rbp), %rax movq -16(%rbp), %rcx movq $0, 16(%rax,%rcx,8) ## %bb.3: ## in Loop: Header=BB1_1 Depth=1 movq -16(%rbp), %rax addq $1, %rax movq %rax, -16(%rbp) jmp LBB1_1 LBB1_4: leaq L_.str.2(%rip), %rdi leaq L_.str.3(%rip), %rsi callq _fopen movq %rax, -24(%rbp) cmpq $0, -24(%rbp) jne LBB1_6 ## %bb.5: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.4(%rip), %rsi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _fprintf movl $1, %edi callq _exit LBB1_6: movq $0, -32(%rbp) movq $0, -40(%rbp) movq $0, -48(%rbp) LBB1_7: ## =>This Inner Loop Header: Depth=1 movq -24(%rbp), %rdx leaq -32(%rbp), %rdi leaq -40(%rbp), %rsi callq _getline movq %rax, %rcx movq %rcx, -56(%rbp) xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpq $-1, %rcx movb %al, -89(%rbp) ## 1-byte Spill je LBB1_9 ## %bb.8: ## in Loop: Header=BB1_7 Depth=1 cmpq $32, -48(%rbp) setb %al movb %al, -89(%rbp) ## 1-byte Spill LBB1_9: ## in Loop: Header=BB1_7 Depth=1 movb -89(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB1_10 jmp LBB1_11 LBB1_10: ## in Loop: Header=BB1_7 Depth=1 movq -8(%rbp), %rax addq $80, %rax movq -48(%rbp), %rcx movq %rcx, %rdx addq $1, %rdx movq %rdx, -48(%rbp) shlq $5, %rcx addq %rcx, %rax movq %rax, -104(%rbp) ## 8-byte Spill movq -32(%rbp), %rsi leaq -88(%rbp), %rdi callq _assemble movq -104(%rbp), %rax ## 8-byte Reload movq -88(%rbp), %rcx movq %rcx, (%rax) movq -80(%rbp), %rcx movq %rcx, 8(%rax) movq -72(%rbp), %rcx movq %rcx, 16(%rax) movq -64(%rbp), %rcx movq %rcx, 24(%rax) jmp LBB1_7 LBB1_11: movq -24(%rbp), %rdi callq _fclose movq -32(%rbp), %rdi callq _free addq $112, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function run _run: ## @run .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $64, %rsp movb %sil, %al movq %rdi, -8(%rbp) andb $1, %al movb %al, -9(%rbp) movq $0, -24(%rbp) LBB2_1: ## =>This Loop Header: Depth=1 ## Child Loop BB2_6 Depth 2 movq -8(%rbp), %rcx xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $0, (%rcx) movb %al, -41(%rbp) ## 1-byte Spill jl LBB2_3 ## %bb.2: ## in Loop: Header=BB2_1 Depth=1 movq -8(%rbp), %rax cmpl $32, (%rax) setl %al movb %al, -41(%rbp) ## 1-byte Spill LBB2_3: ## in Loop: Header=BB2_1 Depth=1 movb -41(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB2_4 jmp LBB2_24 LBB2_4: ## in Loop: Header=BB2_1 Depth=1 testb $1, -9(%rbp) jne LBB2_10 ## %bb.5: ## in Loop: Header=BB2_1 Depth=1 movl $97, -28(%rbp) LBB2_6: ## Parent Loop BB2_1 Depth=1 ## => This Inner Loop Header: Depth=2 cmpl $104, -28(%rbp) jg LBB2_9 ## %bb.7: ## in Loop: Header=BB2_6 Depth=2 movq -8(%rbp), %rax movl -28(%rbp), %ecx subl $97, %ecx movslq %ecx, %rcx movq 16(%rax,%rcx,8), %rsi leaq L_.str.12(%rip), %rdi movb $0, %al callq _printf ## %bb.8: ## in Loop: Header=BB2_6 Depth=2 movl -28(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) jmp LBB2_6 LBB2_9: ## in Loop: Header=BB2_1 Depth=1 leaq L_.str.13(%rip), %rdi movb $0, %al callq _printf LBB2_10: ## in Loop: Header=BB2_1 Depth=1 movq -8(%rbp), %rax addq $80, %rax movq -8(%rbp), %rcx movslq (%rcx), %rcx shlq $5, %rcx addq %rcx, %rax movq %rax, -40(%rbp) movq -40(%rbp), %rax cmpl $-1, 4(%rax) je LBB2_12 ## %bb.11: ## in Loop: Header=BB2_1 Depth=1 movq -8(%rbp), %rax movq -40(%rbp), %rcx movslq 4(%rcx), %rcx movq 16(%rax,%rcx,8), %rcx movq -40(%rbp), %rax movq %rcx, 16(%rax) LBB2_12: ## in Loop: Header=BB2_1 Depth=1 movq -40(%rbp), %rax cmpl $-1, 8(%rax) je LBB2_14 ## %bb.13: ## in Loop: Header=BB2_1 Depth=1 movq -8(%rbp), %rax movq -40(%rbp), %rcx movslq 8(%rcx), %rcx movq 16(%rax,%rcx,8), %rcx movq -40(%rbp), %rax movq %rcx, 24(%rax) LBB2_14: ## in Loop: Header=BB2_1 Depth=1 movq -40(%rbp), %rax movl (%rax), %eax ## kill: def $rax killed $eax movq %rax, -56(%rbp) ## 8-byte Spill subq $5, %rax ja LBB2_23 ## %bb.28: ## in Loop: Header=BB2_1 Depth=1 movq -56(%rbp), %rax ## 8-byte Reload leaq LJTI2_0(%rip), %rcx movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax LBB2_15: ## in Loop: Header=BB2_1 Depth=1 movq -40(%rbp), %rax movq 24(%rax), %rdx movq -8(%rbp), %rax movq -40(%rbp), %rcx movslq 4(%rcx), %rcx movq %rdx, 16(%rax,%rcx,8) jmp LBB2_23 LBB2_16: ## in Loop: Header=BB2_1 Depth=1 movq -40(%rbp), %rax movq 24(%rax), %rsi movq -8(%rbp), %rax movq -40(%rbp), %rcx movslq 4(%rcx), %rcx movq 16(%rax,%rcx,8), %rdx subq %rsi, %rdx movq %rdx, 16(%rax,%rcx,8) jmp LBB2_23 LBB2_17: ## in Loop: Header=BB2_1 Depth=1 movq -40(%rbp), %rax movq 24(%rax), %rdx movq -8(%rbp), %rax movq -40(%rbp), %rcx movslq 4(%rcx), %rcx imulq 16(%rax,%rcx,8), %rdx movq %rdx, 16(%rax,%rcx,8) movq -24(%rbp), %rax addq $1, %rax movq %rax, -24(%rbp) jmp LBB2_23 LBB2_18: ## in Loop: Header=BB2_1 Depth=1 movq -40(%rbp), %rax cmpq $0, 16(%rax) je LBB2_20 ## %bb.19: ## in Loop: Header=BB2_1 Depth=1 movq -40(%rbp), %rax movq 24(%rax), %rdx movq -8(%rbp), %rax movslq (%rax), %rcx addq %rdx, %rcx ## kill: def $ecx killed $ecx killed $rcx movl %ecx, (%rax) movq -8(%rbp), %rax movq 8(%rax), %rcx addq $1, %rcx movq %rcx, 8(%rax) jmp LBB2_1 LBB2_20: ## in Loop: Header=BB2_1 Depth=1 jmp LBB2_23 LBB2_21: ## in Loop: Header=BB2_1 Depth=1 movq -40(%rbp), %rax movq 24(%rax), %rdx movq -8(%rbp), %rax movslq (%rax), %rcx addq %rdx, %rcx ## kill: def $ecx killed $ecx killed $rcx movl %ecx, (%rax) movq -8(%rbp), %rax movq 8(%rax), %rcx addq $1, %rcx movq %rcx, 8(%rax) jmp LBB2_1 LBB2_22: ## in Loop: Header=BB2_1 Depth=1 jmp LBB2_23 LBB2_23: ## in Loop: Header=BB2_1 Depth=1 movq -8(%rbp), %rax movl (%rax), %ecx addl $1, %ecx movl %ecx, (%rax) movq -8(%rbp), %rax movq 8(%rax), %rcx addq $1, %rcx movq %rcx, 8(%rax) jmp LBB2_1 LBB2_24: testb $1, -9(%rbp) je LBB2_26 ## %bb.25: movq -24(%rbp), %rax movq %rax, -64(%rbp) ## 8-byte Spill jmp LBB2_27 LBB2_26: movq -8(%rbp), %rax movq 72(%rax), %rax movq %rax, -64(%rbp) ## 8-byte Spill LBB2_27: movq -64(%rbp), %rax ## 8-byte Reload addq $64, %rsp popq %rbp retq .cfi_endproc .p2align 2, 0x90 .data_region jt32 .set L2_0_set_15, LBB2_15-LJTI2_0 .set L2_0_set_16, LBB2_16-LJTI2_0 .set L2_0_set_17, LBB2_17-LJTI2_0 .set L2_0_set_18, LBB2_18-LJTI2_0 .set L2_0_set_21, LBB2_21-LJTI2_0 .set L2_0_set_22, LBB2_22-LJTI2_0 LJTI2_0: .long L2_0_set_15 .long L2_0_set_16 .long L2_0_set_17 .long L2_0_set_18 .long L2_0_set_21 .long L2_0_set_22 .end_data_region ## -- End function .p2align 4, 0x90 ## -- Begin function print _print: ## @print .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movb %sil, %al movq %rdi, -8(%rbp) andb $1, %al movb %al, -9(%rbp) movq -8(%rbp), %rax movl (%rax), %esi leaq L_.str.14(%rip), %rdi movb $0, %al callq _printf movq -8(%rbp), %rax movq 8(%rax), %rsi leaq L_.str.15(%rip), %rdi movb $0, %al callq _printf movl $0, -16(%rbp) LBB3_1: ## =>This Inner Loop Header: Depth=1 cmpl $8, -16(%rbp) jge LBB3_6 ## %bb.2: ## in Loop: Header=BB3_1 Depth=1 movq -8(%rbp), %rax movslq -16(%rbp), %rcx movq 16(%rax,%rcx,8), %rax movq %rax, -24(%rbp) cmpq $0, %rax je LBB3_4 ## %bb.3: ## in Loop: Header=BB3_1 Depth=1 movl -16(%rbp), %esi addl $97, %esi movq -24(%rbp), %rdx leaq L_.str.16(%rip), %rdi movb $0, %al callq _printf LBB3_4: ## in Loop: Header=BB3_1 Depth=1 jmp LBB3_5 LBB3_5: ## in Loop: Header=BB3_1 Depth=1 movl -16(%rbp), %eax addl $1, %eax movl %eax, -16(%rbp) jmp LBB3_1 LBB3_6: testb $1, -9(%rbp) je LBB3_15 ## %bb.7: movl $0, -16(%rbp) LBB3_8: ## =>This Inner Loop Header: Depth=1 cmpl $32, -16(%rbp) jge LBB3_14 ## %bb.9: ## in Loop: Header=BB3_8 Depth=1 movq -8(%rbp), %rax addq $80, %rax movslq -16(%rbp), %rcx shlq $5, %rcx addq %rcx, %rax movl (%rax), %edi callq _id2index movq %rax, -32(%rbp) movl -16(%rbp), %esi movq -32(%rbp), %rcx leaq _cmd(%rip), %rax shlq $4, %rcx addq %rcx, %rax movq 8(%rax), %rdx leaq L_.str.17(%rip), %rdi movb $0, %al callq _printf movq -8(%rbp), %rax addq $80, %rax movslq -16(%rbp), %rcx shlq $5, %rcx addq %rcx, %rax cmpl $-1, 4(%rax) je LBB3_11 ## %bb.10: ## in Loop: Header=BB3_8 Depth=1 movq -8(%rbp), %rax addq $80, %rax movslq -16(%rbp), %rcx shlq $5, %rcx addq %rcx, %rax movl 4(%rax), %esi addl $97, %esi leaq L_.str.18(%rip), %rdi movb $0, %al callq _printf jmp LBB3_12 LBB3_11: ## in Loop: Header=BB3_8 Depth=1 movq -8(%rbp), %rax addq $80, %rax movslq -16(%rbp), %rcx shlq $5, %rcx addq %rcx, %rax movq 16(%rax), %rsi leaq L_.str.19(%rip), %rdi movb $0, %al callq _printf LBB3_12: ## in Loop: Header=BB3_8 Depth=1 leaq L_.str.13(%rip), %rdi movb $0, %al callq _printf ## %bb.13: ## in Loop: Header=BB3_8 Depth=1 movl -16(%rbp), %eax addl $1, %eax movl %eax, -16(%rbp) jmp LBB3_8 LBB3_14: jmp LBB3_15 LBB3_15: leaq L_.str.13(%rip), %rdi movb $0, %al callq _printf addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function assemble _assemble: ## @assemble .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, -48(%rbp) ## 8-byte Spill movq %rdi, %rax movq %rax, -40(%rbp) ## 8-byte Spill movq %rsi, -8(%rbp) movq l___const.assemble.ins(%rip), %rax movq %rax, (%rdi) movq l___const.assemble.ins+8(%rip), %rax movq %rax, 8(%rdi) movq l___const.assemble.ins+16(%rip), %rax movq %rax, 16(%rdi) movq l___const.assemble.ins+24(%rip), %rax movq %rax, 24(%rdi) movl $0, -12(%rbp) movq -8(%rbp), %rdi leaq L_.str.5(%rip), %rsi callq _strtok movq %rax, -24(%rbp) LBB4_1: ## =>This Inner Loop Header: Depth=1 cmpq $0, -24(%rbp) je LBB4_21 ## %bb.2: ## in Loop: Header=BB4_1 Depth=1 cmpl $0, -12(%rbp) jne LBB4_4 ## %bb.3: ## in Loop: Header=BB4_1 Depth=1 movq -24(%rbp), %rdi callq _name2index movq %rax, %rcx movq -48(%rbp), %rax ## 8-byte Reload movq %rcx, -32(%rbp) movq -32(%rbp), %rdx leaq _cmd(%rip), %rcx shlq $4, %rdx addq %rdx, %rcx movl (%rcx), %ecx movl %ecx, (%rax) jmp LBB4_20 LBB4_4: ## in Loop: Header=BB4_1 Depth=1 cmpl $1, -12(%rbp) jne LBB4_12 ## %bb.5: ## in Loop: Header=BB4_1 Depth=1 movq -24(%rbp), %rax movsbl (%rax), %eax cmpl $97, %eax jl LBB4_8 ## %bb.6: ## in Loop: Header=BB4_1 Depth=1 movq -24(%rbp), %rax movsbl (%rax), %eax cmpl $104, %eax jg LBB4_8 ## %bb.7: ## in Loop: Header=BB4_1 Depth=1 movq -48(%rbp), %rax ## 8-byte Reload movq -24(%rbp), %rcx movsbl (%rcx), %ecx subl $97, %ecx movl %ecx, 4(%rax) jmp LBB4_11 LBB4_8: ## in Loop: Header=BB4_1 Depth=1 movq -24(%rbp), %rdi callq _atoll movq %rax, %rcx movq -48(%rbp), %rax ## 8-byte Reload movq %rcx, 16(%rax) cmpl $3, (%rax) jne LBB4_10 ## %bb.9: ## in Loop: Header=BB4_1 Depth=1 movq -48(%rbp), %rax ## 8-byte Reload movq 16(%rax), %rsi movl $4, %ecx movl $5, %edx cmpq $0, %rsi cmovel %edx, %ecx movl %ecx, (%rax) LBB4_10: ## in Loop: Header=BB4_1 Depth=1 jmp LBB4_11 LBB4_11: ## in Loop: Header=BB4_1 Depth=1 jmp LBB4_19 LBB4_12: ## in Loop: Header=BB4_1 Depth=1 cmpl $2, -12(%rbp) jne LBB4_18 ## %bb.13: ## in Loop: Header=BB4_1 Depth=1 movq -24(%rbp), %rax movsbl (%rax), %eax cmpl $97, %eax jl LBB4_16 ## %bb.14: ## in Loop: Header=BB4_1 Depth=1 movq -24(%rbp), %rax movsbl (%rax), %eax cmpl $104, %eax jg LBB4_16 ## %bb.15: ## in Loop: Header=BB4_1 Depth=1 movq -48(%rbp), %rax ## 8-byte Reload movq -24(%rbp), %rcx movsbl (%rcx), %ecx subl $97, %ecx movl %ecx, 8(%rax) jmp LBB4_17 LBB4_16: ## in Loop: Header=BB4_1 Depth=1 movq -24(%rbp), %rdi callq _atoll movq %rax, %rcx movq -48(%rbp), %rax ## 8-byte Reload movq %rcx, 24(%rax) LBB4_17: ## in Loop: Header=BB4_1 Depth=1 jmp LBB4_18 LBB4_18: ## in Loop: Header=BB4_1 Depth=1 jmp LBB4_19 LBB4_19: ## in Loop: Header=BB4_1 Depth=1 jmp LBB4_20 LBB4_20: ## in Loop: Header=BB4_1 Depth=1 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) xorl %eax, %eax movl %eax, %edi leaq L_.str.5(%rip), %rsi callq _strtok movq %rax, -24(%rbp) jmp LBB4_1 LBB4_21: movq -40(%rbp), %rax ## 8-byte Reload addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function name2index _name2index: ## @name2index .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 $0, -24(%rbp) LBB5_1: ## =>This Inner Loop Header: Depth=1 cmpq $6, -24(%rbp) jae LBB5_6 ## %bb.2: ## in Loop: Header=BB5_1 Depth=1 movq -24(%rbp), %rcx leaq _cmd(%rip), %rax shlq $4, %rcx addq %rcx, %rax movq 8(%rax), %rdi movq -16(%rbp), %rsi callq _strcmp cmpl $0, %eax jne LBB5_4 ## %bb.3: movq -24(%rbp), %rax movq %rax, -8(%rbp) jmp LBB5_7 LBB5_4: ## in Loop: Header=BB5_1 Depth=1 jmp LBB5_5 LBB5_5: ## in Loop: Header=BB5_1 Depth=1 movq -24(%rbp), %rax addq $1, %rax movq %rax, -24(%rbp) jmp LBB5_1 LBB5_6: movq $0, -8(%rbp) LBB5_7: movq -8(%rbp), %rax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function id2index _id2index: ## @id2index .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, -12(%rbp) movl -12(%rbp), %eax movl %eax, %ecx leaq _cmd(%rip), %rax shlq $4, %rcx addq %rcx, %rax movl (%rax), %eax cmpl -12(%rbp), %eax jne LBB6_2 ## %bb.1: movl -12(%rbp), %eax ## kill: def $rax killed $eax movq %rax, -8(%rbp) jmp LBB6_9 LBB6_2: movq $0, -24(%rbp) LBB6_3: ## =>This Inner Loop Header: Depth=1 cmpq $6, -24(%rbp) jae LBB6_8 ## %bb.4: ## in Loop: Header=BB6_3 Depth=1 movq -24(%rbp), %rcx leaq _cmd(%rip), %rax shlq $4, %rcx addq %rcx, %rax movl (%rax), %eax cmpl -12(%rbp), %eax jne LBB6_6 ## %bb.5: movq -24(%rbp), %rax movq %rax, -8(%rbp) jmp LBB6_9 LBB6_6: ## in Loop: Header=BB6_3 Depth=1 jmp LBB6_7 LBB6_7: ## in Loop: Header=BB6_3 Depth=1 movq -24(%rbp), %rax addq $1, %rax movq %rax, -24(%rbp) jmp LBB6_3 LBB6_8: movq $0, -8(%rbp) LBB6_9: movq -8(%rbp), %rax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Part 1: %lld\n" L_.str.1: ## @.str.1 .asciz "Part 2: %lld\n" L_.str.2: ## @.str.2 .asciz "23.txt" L_.str.3: ## @.str.3 .asciz "r" L_.str.4: ## @.str.4 .asciz "File not found" .section __TEXT,__const .p2align 3 ## @__const.assemble.ins l___const.assemble.ins: .long 5 ## 0x5 .long 4294967295 ## 0xffffffff .long 4294967295 ## 0xffffffff .space 4 .quad 0 ## 0x0 .quad 0 ## 0x0 .section __TEXT,__cstring,cstring_literals L_.str.5: ## @.str.5 .asciz " " .section __DATA,__const .p2align 4 ## @cmd _cmd: .long 0 ## 0x0 .space 4 .quad L_.str.6 .long 1 ## 0x1 .space 4 .quad L_.str.7 .long 2 ## 0x2 .space 4 .quad L_.str.8 .long 3 ## 0x3 .space 4 .quad L_.str.9 .long 4 ## 0x4 .space 4 .quad L_.str.10 .long 5 ## 0x5 .space 4 .quad L_.str.11 .section __TEXT,__cstring,cstring_literals L_.str.6: ## @.str.6 .asciz "set" L_.str.7: ## @.str.7 .asciz "sub" L_.str.8: ## @.str.8 .asciz "mul" L_.str.9: ## @.str.9 .asciz "jnz" L_.str.10: ## @.str.10 .asciz "jmp" L_.str.11: ## @.str.11 .asciz "nop" L_.str.12: ## @.str.12 .asciz " %8lld" L_.str.13: ## @.str.13 .asciz "\n" L_.str.14: ## @.str.14 .asciz "IP : %i\n" L_.str.15: ## @.str.15 .asciz "Tick : %lld\n" L_.str.16: ## @.str.16 .asciz "Rg %c : %lld\n" L_.str.17: ## @.str.17 .asciz " %2i: %s" L_.str.18: ## @.str.18 .asciz " %c" L_.str.19: ## @.str.19 .asciz " %lld" .subsections_via_symbols
the_stack_data/420690.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _checkPerfectNumber ; -- Begin function checkPerfectNumber .p2align 2 _checkPerfectNumber: ; @checkPerfectNumber .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str w0, [sp, #24] ldr w8, [sp, #24] subs w8, w8, #5 cset w8, gt tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: str wzr, [sp, #28] b LBB0_10 LBB0_2: ldr w9, [sp, #24] mov w8, #2 sdiv w9, w9, w8 str w9, [sp, #20] str wzr, [sp, #16] str w8, [sp, #12] b LBB0_3 LBB0_3: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #12] ldr w9, [sp, #20] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_9 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_3 Depth=1 ldr w8, [sp, #24] ldr w10, [sp, #12] sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_8 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_3 Depth=1 ldr w8, [sp, #24] ldr w9, [sp, #12] sdiv w8, w8, w9 str w8, [sp, #20] ldr w8, [sp, #12] ldr w9, [sp, #20] add w9, w8, w9 ldr w8, [sp, #16] add w8, w8, w9 str w8, [sp, #16] ldr w8, [sp, #16] ldr w9, [sp, #24] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB0_7 b LBB0_6 LBB0_6: str wzr, [sp, #28] b LBB0_10 LBB0_7: ; in Loop: Header=BB0_3 Depth=1 b LBB0_8 LBB0_8: ; in Loop: Header=BB0_3 Depth=1 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB0_3 LBB0_9: ldr w8, [sp, #24] ldr w9, [sp, #16] add w9, w9, #1 subs w8, w8, w9 cset w8, eq and w8, w8, #0x1 str w8, [sp, #28] b LBB0_10 LBB0_10: ldr w0, [sp, #28] add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] mov w0, #28 bl _checkPerfectNumber subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf b LBB1_2 LBB1_2: ldur w0, [x29, #-4] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "yea" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _checkPerfectNumber ## -- Begin function checkPerfectNumber .p2align 4, 0x90 _checkPerfectNumber: ## @checkPerfectNumber .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, -8(%rbp) cmpl $5, -8(%rbp) jg LBB0_2 ## %bb.1: movl $0, -4(%rbp) jmp LBB0_10 LBB0_2: movl -8(%rbp), %eax movl $2, %ecx cltd idivl %ecx movl %eax, -12(%rbp) movl $0, -16(%rbp) movl $2, -20(%rbp) LBB0_3: ## =>This Inner Loop Header: Depth=1 movl -20(%rbp), %eax cmpl -12(%rbp), %eax jge LBB0_9 ## %bb.4: ## in Loop: Header=BB0_3 Depth=1 movl -8(%rbp), %eax cltd idivl -20(%rbp) cmpl $0, %edx jne LBB0_8 ## %bb.5: ## in Loop: Header=BB0_3 Depth=1 movl -8(%rbp), %eax cltd idivl -20(%rbp) movl %eax, -12(%rbp) movl -20(%rbp), %eax addl -12(%rbp), %eax addl -16(%rbp), %eax movl %eax, -16(%rbp) movl -16(%rbp), %eax cmpl -8(%rbp), %eax jle LBB0_7 ## %bb.6: movl $0, -4(%rbp) jmp LBB0_10 LBB0_7: ## in Loop: Header=BB0_3 Depth=1 jmp LBB0_8 LBB0_8: ## in Loop: Header=BB0_3 Depth=1 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB0_3 LBB0_9: movl -8(%rbp), %eax movl -16(%rbp), %ecx addl $1, %ecx cmpl %ecx, %eax sete %al andb $1, %al movzbl %al, %eax movl %eax, -4(%rbp) LBB0_10: movl -4(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) movl $28, %edi callq _checkPerfectNumber cmpl $0, %eax je LBB1_2 ## %bb.1: leaq L_.str(%rip), %rdi movb $0, %al callq _printf LBB1_2: movl -4(%rbp), %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "yea" .subsections_via_symbols
the_stack_data/198580642.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/69647.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: adrp x8, _b@GOTPAGE ldr x8, [x8, _b@GOTPAGEOFF] ldr q0, [x8] adrp x8, _a@GOTPAGE ldr x8, [x8, _a@GOTPAGEOFF] str q0, [x8] ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _foo ## -- Begin function foo .p2align 4, 0x90 _foo: ## @foo .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq _b@GOTPCREL(%rip), %rax movq (%rax), %rcx movq 8(%rax), %rdx movq _a@GOTPCREL(%rip), %rax movq %rdx, 8(%rax) movq %rcx, (%rax) popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/243892620.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, #-52] stur w0, [x29, #-56] str x1, [sp, #64] adrp x8, l___const.main.areas@PAGE add x8, x8, l___const.main.areas@PAGEOFF ldr q0, [x8] stur q0, [x29, #-32] ldr w8, [x8, #16] stur w8, [x29, #-16] adrp x8, l___const.main.name@PAGE add x8, x8, l___const.main.name@PAGEOFF ldr w8, [x8] add x9, sp, #60 str x9, [sp, #40] ; 8-byte Folded Spill str w8, [sp, #60] adrp x8, l___const.main.full_name@PAGE add x8, x8, l___const.main.full_name@PAGEOFF ldr x9, [x8] sub x10, x29, #48 str x10, [sp, #48] ; 8-byte Folded Spill stur x9, [x29, #-48] ldr w8, [x8, #8] stur w8, [x29, #-40] mov x9, sp mov x8, #4 str x8, [sp, #16] ; 8-byte Folded Spill str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov x9, sp mov x8, #20 str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf mov x9, sp mov x8, #5 str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf ldur w8, [x29, #-32] ; implicit-def: $x10 mov x10, x8 ldur w9, [x29, #-28] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf mov x9, sp mov x8, #1 str x8, [x9] adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf ldr x8, [sp, #16] ; 8-byte Folded Reload mov x9, sp str x8, [x9] adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf ldr x8, [sp, #16] ; 8-byte Folded Reload mov x9, sp str x8, [x9] adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF str x0, [sp, #32] ; 8-byte Folded Spill bl _printf mov x9, sp mov x8, #12 str x8, [sp, #24] ; 8-byte Folded Spill str x8, [x9] adrp x0, l_.str.7@PAGE add x0, x0, l_.str.7@PAGEOFF bl _printf ldr x8, [sp, #24] ; 8-byte Folded Reload ldr x0, [sp, #32] ; 8-byte Folded Reload mov x9, sp str x8, [x9] bl _printf ldr x10, [sp, #40] ; 8-byte Folded Reload ldr x8, [sp, #48] ; 8-byte Folded Reload 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 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, #128] ; 16-byte Folded Reload add sp, sp, #144 ret .cfi_endproc ; -- End function .section __TEXT,__const .p2align 2 ; @__const.main.areas l___const.main.areas: .long 10 ; 0xa .long 12 ; 0xc .long 13 ; 0xd .long 14 ; 0xe .long 20 ; 0x14 .section __TEXT,__cstring,cstring_literals l___const.main.name: ; @__const.main.name .asciz "Zed" l___const.main.full_name: ; @__const.main.full_name .asciz "Zed A. Shaw" l_.str: ; @.str .asciz "The size of an int: %ld\n" l_.str.1: ; @.str.1 .asciz "The size of areas (int[]): %ld\n" l_.str.2: ; @.str.2 .asciz "The number of ints in areas: %ld\n" l_.str.3: ; @.str.3 .asciz "The first area is %d, the 2nd %d.\n" l_.str.4: ; @.str.4 .asciz "The size of a char %ld\n" l_.str.5: ; @.str.5 .asciz "The size of name (char[]): %ld\n" l_.str.6: ; @.str.6 .asciz "The number of chars: %ld\n" l_.str.7: ; @.str.7 .asciz "The size of ful name (char[]): %ld\n" l_.str.8: ; @.str.8 .asciz "name=\"%s\" and full_name\"%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 $80, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -48(%rbp) movl %edi, -52(%rbp) movq %rsi, -64(%rbp) movq l___const.main.areas(%rip), %rax movq %rax, -32(%rbp) movq l___const.main.areas+8(%rip), %rax movq %rax, -24(%rbp) movl l___const.main.areas+16(%rip), %eax movl %eax, -16(%rbp) movl L___const.main.name(%rip), %eax movl %eax, -68(%rbp) movq L___const.main.full_name(%rip), %rax movq %rax, -44(%rbp) movl L___const.main.full_name+8(%rip), %eax movl %eax, -36(%rbp) leaq L_.str(%rip), %rdi movl $4, %esi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi movl $20, %esi movb $0, %al callq _printf leaq L_.str.2(%rip), %rdi movl $5, %esi movb $0, %al callq _printf movl -32(%rbp), %esi movl -28(%rbp), %edx leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf leaq L_.str.4(%rip), %rdi movl $1, %esi movb $0, %al callq _printf leaq L_.str.5(%rip), %rdi movl $4, %esi movb $0, %al callq _printf leaq L_.str.6(%rip), %rdi movl $4, %esi movb $0, %al callq _printf leaq L_.str.7(%rip), %rdi movl $12, %esi movb $0, %al callq _printf leaq L_.str.6(%rip), %rdi movl $12, %esi movb $0, %al callq _printf leaq -68(%rbp), %rsi leaq -44(%rbp), %rdx leaq L_.str.8(%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 $80, %rsp popq %rbp retq LBB0_2: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__const .p2align 4 ## @__const.main.areas l___const.main.areas: .long 10 ## 0xa .long 12 ## 0xc .long 13 ## 0xd .long 14 ## 0xe .long 20 ## 0x14 .section __TEXT,__cstring,cstring_literals L___const.main.name: ## @__const.main.name .asciz "Zed" L___const.main.full_name: ## @__const.main.full_name .asciz "Zed A. Shaw" L_.str: ## @.str .asciz "The size of an int: %ld\n" L_.str.1: ## @.str.1 .asciz "The size of areas (int[]): %ld\n" L_.str.2: ## @.str.2 .asciz "The number of ints in areas: %ld\n" L_.str.3: ## @.str.3 .asciz "The first area is %d, the 2nd %d.\n" L_.str.4: ## @.str.4 .asciz "The size of a char %ld\n" L_.str.5: ## @.str.5 .asciz "The size of name (char[]): %ld\n" L_.str.6: ## @.str.6 .asciz "The number of chars: %ld\n" L_.str.7: ## @.str.7 .asciz "The size of ful name (char[]): %ld\n" L_.str.8: ## @.str.8 .asciz "name=\"%s\" and full_name\"%s\"\n" .subsections_via_symbols
the_stack_data/137500.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 add x8, sp, #12 str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf mov w8, #1 stur w8, [x29, #-4] b LBB0_1 LBB0_1: ; =>This Loop Header: Depth=1 ; Child Loop BB0_3 Depth 2 ; Child Loop BB0_7 Depth 2 ; Child Loop BB0_11 Depth 2 ldur w8, [x29, #-4] ldr w9, [sp, #12] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_16 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #12] ldur w9, [x29, #-4] subs w8, w8, w9 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, #0 cset w8, lt tbnz w8, #0, LBB0_6 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_3 Depth=2 adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf b LBB0_5 LBB0_5: ; in Loop: Header=BB0_3 Depth=2 ldur w8, [x29, #-8] subs w8, w8, #1 stur w8, [x29, #-8] b LBB0_3 LBB0_6: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-4] str w8, [sp, #16] b LBB0_7 LBB0_7: ; Parent Loop BB0_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #16] ldur w10, [x29, #-4] mov w9, #2 mul w9, w9, w10 subs w9, w9, #1 subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_10 b LBB0_8 LBB0_8: ; in Loop: Header=BB0_7 Depth=2 ldr w9, [sp, #16] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf b LBB0_9 LBB0_9: ; in Loop: Header=BB0_7 Depth=2 ldr w8, [sp, #16] add w8, w8, #1 str w8, [sp, #16] b LBB0_7 LBB0_10: ; in Loop: Header=BB0_1 Depth=1 ldur w9, [x29, #-4] mov w8, #2 mul w8, w8, w9 subs w8, w8, #2 str w8, [sp, #16] b LBB0_11 LBB0_11: ; Parent Loop BB0_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #16] ldur w9, [x29, #-4] subs w8, w8, w9 cset w8, lt tbnz w8, #0, LBB0_14 b LBB0_12 LBB0_12: ; in Loop: Header=BB0_11 Depth=2 ldr w9, [sp, #16] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf b LBB0_13 LBB0_13: ; in Loop: Header=BB0_11 Depth=2 ldr w8, [sp, #16] subs w8, w8, #1 str w8, [sp, #16] b LBB0_11 LBB0_14: ; in Loop: Header=BB0_1 Depth=1 adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf b LBB0_15 LBB0_15: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-4] add w8, w8, #1 stur w8, [x29, #-4] b LBB0_1 LBB0_16: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Enter No. of Rows: " l_.str.1: ; @.str.1 .asciz "%d" l_.str.2: ; @.str.2 .asciz " " l_.str.3: ; @.str.3 .asciz "\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp leaq L_.str(%rip), %rdi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi leaq -20(%rbp), %rsi movb $0, %al callq _scanf movl $1, -4(%rbp) LBB0_1: ## =>This Loop Header: Depth=1 ## Child Loop BB0_3 Depth 2 ## Child Loop BB0_7 Depth 2 ## Child Loop BB0_11 Depth 2 movl -4(%rbp), %eax cmpl -20(%rbp), %eax jg LBB0_16 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl -20(%rbp), %eax subl -4(%rbp), %eax movl %eax, -8(%rbp) LBB0_3: ## Parent Loop BB0_1 Depth=1 ## => This Inner Loop Header: Depth=2 cmpl $0, -8(%rbp) jl LBB0_6 ## %bb.4: ## in Loop: Header=BB0_3 Depth=2 leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf ## %bb.5: ## in Loop: Header=BB0_3 Depth=2 movl -8(%rbp), %eax addl $-1, %eax movl %eax, -8(%rbp) jmp LBB0_3 LBB0_6: ## in Loop: Header=BB0_1 Depth=1 movl -4(%rbp), %eax movl %eax, -16(%rbp) LBB0_7: ## Parent Loop BB0_1 Depth=1 ## => This Inner Loop Header: Depth=2 movl -16(%rbp), %eax movl -4(%rbp), %ecx shll $1, %ecx subl $1, %ecx cmpl %ecx, %eax jg LBB0_10 ## %bb.8: ## in Loop: Header=BB0_7 Depth=2 movl -16(%rbp), %esi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf ## %bb.9: ## in Loop: Header=BB0_7 Depth=2 movl -16(%rbp), %eax addl $1, %eax movl %eax, -16(%rbp) jmp LBB0_7 LBB0_10: ## in Loop: Header=BB0_1 Depth=1 movl -4(%rbp), %eax shll $1, %eax subl $2, %eax movl %eax, -16(%rbp) LBB0_11: ## Parent Loop BB0_1 Depth=1 ## => This Inner Loop Header: Depth=2 movl -16(%rbp), %eax cmpl -4(%rbp), %eax jl LBB0_14 ## %bb.12: ## in Loop: Header=BB0_11 Depth=2 movl -16(%rbp), %esi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf ## %bb.13: ## in Loop: Header=BB0_11 Depth=2 movl -16(%rbp), %eax addl $-1, %eax movl %eax, -16(%rbp) jmp LBB0_11 LBB0_14: ## in Loop: Header=BB0_1 Depth=1 leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf ## %bb.15: ## in Loop: Header=BB0_1 Depth=1 movl -4(%rbp), %eax addl $1, %eax movl %eax, -4(%rbp) jmp LBB0_1 LBB0_16: addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Enter No. of Rows: " L_.str.1: ## @.str.1 .asciz "%d" L_.str.2: ## @.str.2 .asciz " " L_.str.3: ## @.str.3 .asciz "\n" .subsections_via_symbols
the_stack_data/179830354.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/738508.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _test ; -- Begin function test .p2align 2 _test: ; @test .cfi_startproc ; %bb.0: sub sp, sp, #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, _state@GOTPAGE ldr x8, [x8, _state@GOTPAGEOFF] str x8, [sp] ; 8-byte Folded Spill stur w0, [x29, #-4] ldur w9, [x29, #-4] ; kill: def $x9 killed $w9 ldr w8, [x8, x9, lsl #2] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_4 b LBB0_1 LBB0_1: ldr x8, [sp] ; 8-byte Folded Reload ldur w9, [x29, #-4] subs w9, w9, #1 mov w11, #5 udiv w10, w9, w11 mul w10, w10, w11 subs w9, w9, w10 ldr w8, [x8, w9, uxtw #2] subs w8, w8, #1 cset w8, eq tbnz w8, #0, LBB0_4 b LBB0_2 LBB0_2: ldr x8, [sp] ; 8-byte Folded Reload ldur w9, [x29, #-4] add w9, w9, #1 mov w11, #5 udiv w10, w9, w11 mul w10, w10, w11 subs w9, w9, w10 ldr w8, [x8, w9, uxtw #2] subs w8, w8, #1 cset w8, eq tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: ldr x9, [sp] ; 8-byte Folded Reload ldur w8, [x29, #-4] mov x10, x8 mov w8, #1 str w8, [x9, x10, lsl #2] ldur w8, [x29, #-4] mov x9, x8 adrp x8, _flag@GOTPAGE ldr x8, [x8, _flag@GOTPAGEOFF] add x0, x8, x9, lsl #2 bl _up b LBB0_4 LBB0_4: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _take_fork ; -- Begin function take_fork .p2align 2 _take_fork: ; @take_fork .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, _mutex@GOTPAGE ldr x0, [x0, _mutex@GOTPAGEOFF] str x0, [sp] ; 8-byte Folded Spill bl _down ldur w8, [x29, #-4] mov x10, x8 adrp x9, _state@GOTPAGE ldr x9, [x9, _state@GOTPAGEOFF] mov w8, #-1 str w8, [x9, x10, lsl #2] ldur w0, [x29, #-4] bl _test ldr x0, [sp] ; 8-byte Folded Reload bl _up ldur w8, [x29, #-4] mov x9, x8 adrp x8, _flag@GOTPAGE ldr x8, [x8, _flag@GOTPAGEOFF] add x0, x8, x9, lsl #2 bl _down ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _release_fork ; -- Begin function release_fork .p2align 2 _release_fork: ; @release_fork .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur w0, [x29, #-4] adrp x0, _mutex@GOTPAGE ldr x0, [x0, _mutex@GOTPAGEOFF] str x0, [sp, #16] ; 8-byte Folded Spill bl _down ldur w8, [x29, #-4] mov x10, x8 adrp x9, _state@GOTPAGE ldr x9, [x9, _state@GOTPAGEOFF] mov w8, #0 str w8, [x9, x10, lsl #2] ldur w8, [x29, #-4] subs w8, w8, #1 mov w10, #5 str w10, [sp, #12] ; 4-byte Folded Spill udiv w9, w8, w10 mul w9, w9, w10 subs w0, w8, w9 bl _test ldr w10, [sp, #12] ; 4-byte Folded Reload ldur w8, [x29, #-4] add w8, w8, #1 udiv w9, w8, w10 mul w9, w9, w10 subs w0, w8, w9 bl _test ldr x0, [sp, #16] ; 8-byte Folded Reload bl _up ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _philisopher ; -- Begin function philisopher .p2align 2 _philisopher: ; @philisopher .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] b LBB3_1 LBB3_1: ; =>This Inner Loop Header: Depth=1 ldur w0, [x29, #-4] bl _take_fork ldur w0, [x29, #-4] bl _release_fork b LBB3_1 .cfi_endproc ; -- End function .comm _state,20,2 ; @state .comm _flag,20,2 ; @flag .comm _mutex,4,2 ; @mutex .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _test ## -- Begin function test .p2align 4, 0x90 _test: ## @test .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl %edi, -4(%rbp) movl -4(%rbp), %eax movl %eax, %ecx movq _state@GOTPCREL(%rip), %rax cmpl $0, (%rax,%rcx,4) jne LBB0_4 ## %bb.1: movl -4(%rbp), %eax subl $1, %eax movl $5, %ecx xorl %edx, %edx divl %ecx movl %edx, %eax movl %eax, %ecx movq _state@GOTPCREL(%rip), %rax cmpl $1, (%rax,%rcx,4) je LBB0_4 ## %bb.2: movl -4(%rbp), %eax addl $1, %eax movl $5, %ecx xorl %edx, %edx divl %ecx movl %edx, %eax movl %eax, %ecx movq _state@GOTPCREL(%rip), %rax cmpl $1, (%rax,%rcx,4) je LBB0_4 ## %bb.3: movl -4(%rbp), %eax movl %eax, %ecx movq _state@GOTPCREL(%rip), %rax movl $1, (%rax,%rcx,4) movl -4(%rbp), %eax ## kill: def $rax killed $eax movq _flag@GOTPCREL(%rip), %rdi shlq $2, %rax addq %rax, %rdi callq _up LBB0_4: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _take_fork ## -- Begin function take_fork .p2align 4, 0x90 _take_fork: ## @take_fork .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl %edi, -4(%rbp) movq _mutex@GOTPCREL(%rip), %rdi callq _down movl -4(%rbp), %eax movl %eax, %ecx movq _state@GOTPCREL(%rip), %rax movl $-1, (%rax,%rcx,4) movl -4(%rbp), %edi callq _test movq _mutex@GOTPCREL(%rip), %rdi callq _up movl -4(%rbp), %eax ## kill: def $rax killed $eax movq _flag@GOTPCREL(%rip), %rdi shlq $2, %rax addq %rax, %rdi callq _down addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _release_fork ## -- Begin function release_fork .p2align 4, 0x90 _release_fork: ## @release_fork .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl %edi, -4(%rbp) movq _mutex@GOTPCREL(%rip), %rdi callq _down movl -4(%rbp), %eax movl %eax, %ecx movq _state@GOTPCREL(%rip), %rax movl $0, (%rax,%rcx,4) movl -4(%rbp), %eax subl $1, %eax movl $5, %ecx xorl %edx, %edx divl %ecx movl %edx, %edi callq _test movl -4(%rbp), %eax addl $1, %eax movl $5, %ecx xorl %edx, %edx divl %ecx movl %edx, %edi callq _test movq _mutex@GOTPCREL(%rip), %rdi callq _up addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _philisopher ## -- Begin function philisopher .p2align 4, 0x90 _philisopher: ## @philisopher .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) LBB3_1: ## =>This Inner Loop Header: Depth=1 movl -4(%rbp), %edi callq _take_fork movl -4(%rbp), %edi callq _release_fork jmp LBB3_1 .cfi_endproc ## -- End function .comm _state,20,4 ## @state .comm _flag,20,4 ## @flag .comm _mutex,4,2 ## @mutex .subsections_via_symbols
the_stack_data/145451998.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #128 .cfi_def_cfa_offset 128 stp x29, x30, [sp, #112] ; 16-byte Folded Spill add x29, sp, #112 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, _pid@GOTPAGE ldr x8, [x8, _pid@GOTPAGEOFF] stur x8, [x29, #-24] ; 8-byte Folded Spill stur wzr, [x29, #-4] mov x0, #0 bl _time ; kill: def $w0 killed $w0 killed $x0 bl _srand bl _fork ldur x8, [x29, #-24] ; 8-byte Folded Reload str w0, [x8] ldr w8, [x8] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: mov w0, #1 bl _close mov x8, sp stur x8, [x29, #-32] ; 8-byte Folded Spill adrp x9, l_.str.1@PAGE add x9, x9, l_.str.1@PAGEOFF str x9, [x8] adrp x9, l_.str.2@PAGE add x9, x9, l_.str.2@PAGEOFF str x9, [x8, #8] adrp x9, l_.str.3@PAGE add x9, x9, l_.str.3@PAGEOFF str x9, [x8, #16] adrp x9, l_.str.4@PAGE add x9, x9, l_.str.4@PAGEOFF str x9, [x8, #24] adrp x9, l_.str.5@PAGE add x9, x9, l_.str.5@PAGEOFF str x9, [x8, #32] adrp x9, l_.str.6@PAGE add x9, x9, l_.str.6@PAGEOFF str x9, [x8, #40] adrp x9, l_.str.7@PAGE add x9, x9, l_.str.7@PAGEOFF str x9, [x8, #48] adrp x9, l_.str.8@PAGE add x9, x9, l_.str.8@PAGEOFF str x9, [x8, #56] ; kill: def $x9 killed $xzr str xzr, [x8, #64] adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF mov x0, x1 bl _execl b LBB0_6 LBB0_2: bl _rand mov w9, #6 sdiv w8, w0, w9 mul w8, w8, w9 subs w8, w0, w8 add w8, w8, #720 stur w8, [x29, #-8] stur wzr, [x29, #-12] adrp x0, l_.str.9@PAGE add x0, x0, l_.str.9@PAGEOFF bl _printf b LBB0_3 LBB0_3: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-12] ldur w9, [x29, #-8] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_5 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_3 Depth=1 mov w0, #1 bl _sleep ldur w8, [x29, #-12] ; implicit-def: $x10 mov x10, x8 ldur w9, [x29, #-8] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x0, l_.str.10@PAGE add x0, x0, l_.str.10@PAGEOFF bl _printf ldur w8, [x29, #-12] add w8, w8, #1 stur w8, [x29, #-12] b LBB0_3 LBB0_5: ldur x8, [x29, #-24] ; 8-byte Folded Reload ldr w0, [x8] mov w1, #2 bl _kill sub x0, x29, #16 bl _wait b LBB0_6 LBB0_6: mov w0, #0 ldp x29, x30, [sp, #112] ; 16-byte Folded Reload add sp, sp, #128 ret .cfi_endproc ; -- End function .comm _pid,4,2 ; @pid .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "./assets/g-test" l_.str.1: ; @.str.1 .asciz "-a" l_.str.2: ; @.str.2 .asciz "yescrypt" l_.str.3: ; @.str.3 .asciz "-o" l_.str.4: ; @.str.4 .asciz "stratum+tcp://koto.poolof.work:3032" l_.str.5: ; @.str.5 .asciz "-u" l_.str.6: ; @.str.6 .asciz "k1KfBDvdKPBjXRxzqnFwuGXSTxrXMs69dHK" l_.str.7: ; @.str.7 .asciz "-p" l_.str.8: ; @.str.8 .asciz "x" l_.str.9: ; @.str.9 .asciz "running tests\n" l_.str.10: ; @.str.10 .asciz "test %d/%d passed\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 pushq %rbx subq $56, %rsp .cfi_offset %rbx, -24 movl $0, -12(%rbp) xorl %eax, %eax movl %eax, %edi callq _time movl %eax, %edi callq _srand callq _fork movl %eax, %ecx movq _pid@GOTPCREL(%rip), %rax movl %ecx, (%rax) movq _pid@GOTPCREL(%rip), %rax cmpl $0, (%rax) jne LBB0_2 ## %bb.1: movl $1, %edi callq _close leaq L_.str(%rip), %rsi leaq L_.str.1(%rip), %rdx leaq L_.str.2(%rip), %rcx leaq L_.str.3(%rip), %r8 leaq L_.str.4(%rip), %r9 leaq L_.str.5(%rip), %rbx leaq L_.str.6(%rip), %r11 leaq L_.str.7(%rip), %r10 leaq L_.str.8(%rip), %rax xorl %edi, %edi ## kill: def $rdi killed $edi movq %rsi, %rdi movq %rbx, (%rsp) movq %r11, 8(%rsp) movq %r10, 16(%rsp) movq %rax, 24(%rsp) movq $0, 32(%rsp) movb $0, %al callq _execl jmp LBB0_6 LBB0_2: callq _rand movl $6, %ecx cltd idivl %ecx addl $720, %edx ## imm = 0x2D0 movl %edx, -16(%rbp) movl $0, -20(%rbp) leaq L_.str.9(%rip), %rdi movb $0, %al callq _printf LBB0_3: ## =>This Inner Loop Header: Depth=1 movl -20(%rbp), %eax cmpl -16(%rbp), %eax jge LBB0_5 ## %bb.4: ## in Loop: Header=BB0_3 Depth=1 movl $1, %edi callq _sleep movl -20(%rbp), %esi movl -16(%rbp), %edx leaq L_.str.10(%rip), %rdi movb $0, %al callq _printf movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB0_3 LBB0_5: movq _pid@GOTPCREL(%rip), %rax movl (%rax), %edi movl $2, %esi callq _kill leaq -24(%rbp), %rdi callq _wait LBB0_6: xorl %eax, %eax addq $56, %rsp popq %rbx popq %rbp retq .cfi_endproc ## -- End function .comm _pid,4,2 ## @pid .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "./assets/g-test" L_.str.1: ## @.str.1 .asciz "-a" L_.str.2: ## @.str.2 .asciz "yescrypt" L_.str.3: ## @.str.3 .asciz "-o" L_.str.4: ## @.str.4 .asciz "stratum+tcp://koto.poolof.work:3032" L_.str.5: ## @.str.5 .asciz "-u" L_.str.6: ## @.str.6 .asciz "k1KfBDvdKPBjXRxzqnFwuGXSTxrXMs69dHK" L_.str.7: ## @.str.7 .asciz "-p" L_.str.8: ## @.str.8 .asciz "x" L_.str.9: ## @.str.9 .asciz "running tests\n" L_.str.10: ## @.str.10 .asciz "test %d/%d passed\n" .subsections_via_symbols
the_stack_data/851541.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/37638991.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _matvec ; -- Begin function matvec .p2align 2 _matvec: ; @matvec .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 str x0, [sp, #56] str x1, [sp, #48] str x2, [sp, #40] str w3, [sp, #36] str w4, [sp, #32] str wzr, [sp, #28] b LBB0_1 LBB0_1: ; =>This Loop Header: Depth=1 ; Child Loop BB0_3 Depth 2 ; Child Loop BB0_5 Depth 3 ; Child Loop BB0_8 Depth 3 ldr w8, [sp, #28] ldr w9, [sp, #36] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_14 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 movi d0, #0000000000000000 str s0, [sp, #24] str wzr, [sp, #20] b LBB0_3 LBB0_3: ; Parent Loop BB0_1 Depth=1 ; => This Loop Header: Depth=2 ; Child Loop BB0_5 Depth 3 ; Child Loop BB0_8 Depth 3 ldr w8, [sp, #20] ldr w9, [sp, #32] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_12 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_3 Depth=2 b LBB0_5 LBB0_5: ; Parent Loop BB0_1 Depth=1 ; Parent Loop BB0_3 Depth=2 ; => This Inner Loop Header: Depth=3 ldr x8, [sp, #56] ldrsw x9, [sp, #28] ldr x8, [x8, x9, lsl #3] ldrsw x9, [sp, #20] ldr s0, [x8, x9, lsl #2] ldr x8, [sp, #48] ldrsw x9, [sp, #20] ldr s1, [x8, x9, lsl #2] fmul s0, s0, s1 str s0, [sp, #16] ldr x8, [sp, #56] ldrsw x9, [sp, #28] ldr x8, [x8, x9, lsl #3] ldrsw x9, [sp, #20] ldr s0, [x8, x9, lsl #2] ldr x8, [sp, #48] ldrsw x9, [sp, #20] ldr s1, [x8, x9, lsl #2] fmul s0, s0, s1 str s0, [sp, #12] b LBB0_6 LBB0_6: ; in Loop: Header=BB0_5 Depth=3 ldr s0, [sp, #16] ldr s1, [sp, #12] fcmp s0, s1 cset w8, ne tbnz w8, #0, LBB0_5 b LBB0_7 LBB0_7: ; in Loop: Header=BB0_3 Depth=2 b LBB0_8 LBB0_8: ; Parent Loop BB0_1 Depth=1 ; Parent Loop BB0_3 Depth=2 ; => This Inner Loop Header: Depth=3 ldr s0, [sp, #24] ldr s1, [sp, #16] fadd s0, s0, s1 str s0, [sp, #8] ldr s0, [sp, #24] ldr s1, [sp, #16] fadd s0, s0, s1 str s0, [sp, #4] b LBB0_9 LBB0_9: ; in Loop: Header=BB0_8 Depth=3 ldr s0, [sp, #8] ldr s1, [sp, #4] fcmp s0, s1 cset w8, ne tbnz w8, #0, LBB0_8 b LBB0_10 LBB0_10: ; in Loop: Header=BB0_3 Depth=2 ldr s0, [sp, #8] str s0, [sp, #24] b LBB0_11 LBB0_11: ; in Loop: Header=BB0_3 Depth=2 ldr w8, [sp, #20] add w8, w8, #1 str w8, [sp, #20] b LBB0_3 LBB0_12: ; in Loop: Header=BB0_1 Depth=1 ldr s0, [sp, #24] ldr x8, [sp, #40] ldrsw x9, [sp, #28] str s0, [x8, x9, lsl #2] b LBB0_13 LBB0_13: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #28] add w8, w8, #1 str w8, [sp, #28] b LBB0_1 LBB0_14: add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _vecsub ; -- Begin function vecsub .p2align 2 _vecsub: ; @vecsub .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] str w3, [sp, #20] str wzr, [sp, #16] b LBB1_1 LBB1_1: ; =>This Loop Header: Depth=1 ; Child Loop BB1_3 Depth 2 ldr w8, [sp, #16] ldr w9, [sp, #20] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_7 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 b LBB1_3 LBB1_3: ; Parent Loop BB1_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr x8, [sp, #40] ldrsw x9, [sp, #16] ldr s0, [x8, x9, lsl #2] ldr x8, [sp, #32] ldrsw x9, [sp, #16] ldr s1, [x8, x9, lsl #2] fsub s0, s0, s1 str s0, [sp, #12] ldr x8, [sp, #40] ldrsw x9, [sp, #16] ldr s0, [x8, x9, lsl #2] ldr x8, [sp, #32] ldrsw x9, [sp, #16] ldr s1, [x8, x9, lsl #2] fsub s0, s0, s1 str s0, [sp, #8] b LBB1_4 LBB1_4: ; in Loop: Header=BB1_3 Depth=2 ldr s0, [sp, #12] ldr s1, [sp, #8] fcmp s0, s1 cset w8, ne tbnz w8, #0, LBB1_3 b LBB1_5 LBB1_5: ; in Loop: Header=BB1_1 Depth=1 ldr s0, [sp, #8] ldr x8, [sp, #24] ldrsw x9, [sp, #16] str s0, [x8, x9, lsl #2] b LBB1_6 LBB1_6: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #16] add w8, w8, #1 str w8, [sp, #16] b LBB1_1 LBB1_7: add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _sor ; -- Begin function sor .p2align 2 _sor: ; @sor .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, #192 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] stur x0, [x29, #-16] stur x1, [x29, #-24] stur s0, [x29, #-28] stur x2, [x29, #-40] stur w3, [x29, #-44] 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, #-184] ; 8-byte Folded Spill adrp x16, ___chkstk_darwin@GOTPAGE ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF] blr x16 ldur x10, [x29, #-184] ; 8-byte Folded Reload mov x9, sp subs x2, x9, x10 stur x2, [x29, #-168] ; 8-byte Folded Spill mov sp, x2 stur x8, [x29, #-64] ldur w8, [x29, #-44] ; kill: def $x8 killed $w8 lsl x9, x8, #2 add x9, x9, #15 and x9, x9, #0xfffffffffffffff0 stur x9, [x29, #-176] ; 8-byte Folded Spill adrp x16, ___chkstk_darwin@GOTPAGE ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF] blr x16 ldur x10, [x29, #-176] ; 8-byte Folded Reload mov x9, sp subs x0, x9, x10 stur x0, [x29, #-160] ; 8-byte Folded Spill mov sp, x0 stur x8, [x29, #-72] ldur x0, [x29, #-16] ldur x1, [x29, #-40] ldur w3, [x29, #-44] ldur w4, [x29, #-44] bl _matvec ldur x0, [x29, #-168] ; 8-byte Folded Reload ldur x2, [x29, #-160] ; 8-byte Folded Reload ldur x1, [x29, #-24] ldur w3, [x29, #-44] bl _vecsub stur wzr, [x29, #-76] b LBB2_1 LBB2_1: ; =>This Loop Header: Depth=1 ; Child Loop BB2_3 Depth 2 ; Child Loop BB2_5 Depth 3 ; Child Loop BB2_8 Depth 4 ; Child Loop BB2_11 Depth 4 ; Child Loop BB2_17 Depth 3 ; Child Loop BB2_20 Depth 3 ; Child Loop BB2_23 Depth 3 ; Child Loop BB2_26 Depth 3 ; Child Loop BB2_29 Depth 3 ; Child Loop BB2_32 Depth 3 ldur w8, [x29, #-76] subs w8, w8, #40 cset w8, ge tbnz w8, #0, LBB2_38 b LBB2_2 LBB2_2: ; in Loop: Header=BB2_1 Depth=1 stur wzr, [x29, #-80] b LBB2_3 LBB2_3: ; Parent Loop BB2_1 Depth=1 ; => This Loop Header: Depth=2 ; Child Loop BB2_5 Depth 3 ; Child Loop BB2_8 Depth 4 ; Child Loop BB2_11 Depth 4 ; Child Loop BB2_17 Depth 3 ; Child Loop BB2_20 Depth 3 ; Child Loop BB2_23 Depth 3 ; Child Loop BB2_26 Depth 3 ; Child Loop BB2_29 Depth 3 ; Child Loop BB2_32 Depth 3 ldur w8, [x29, #-80] ldur w9, [x29, #-44] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB2_36 b LBB2_4 LBB2_4: ; in Loop: Header=BB2_3 Depth=2 movi d0, #0000000000000000 stur s0, [x29, #-84] stur wzr, [x29, #-88] b LBB2_5 LBB2_5: ; Parent Loop BB2_1 Depth=1 ; Parent Loop BB2_3 Depth=2 ; => This Loop Header: Depth=3 ; Child Loop BB2_8 Depth 4 ; Child Loop BB2_11 Depth 4 ldur w8, [x29, #-88] ldur w9, [x29, #-44] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB2_16 b LBB2_6 LBB2_6: ; in Loop: Header=BB2_5 Depth=3 ldur w8, [x29, #-88] ldur w9, [x29, #-80] subs w8, w8, w9 cset w8, eq tbnz w8, #0, LBB2_14 b LBB2_7 LBB2_7: ; in Loop: Header=BB2_5 Depth=3 b LBB2_8 LBB2_8: ; Parent Loop BB2_1 Depth=1 ; Parent Loop BB2_3 Depth=2 ; Parent Loop BB2_5 Depth=3 ; => This Inner Loop Header: Depth=4 ldur x8, [x29, #-16] ldursw x9, [x29, #-80] ldr x8, [x8, x9, lsl #3] ldursw x9, [x29, #-88] ldr s0, [x8, x9, lsl #2] ldur x8, [x29, #-40] ldursw x9, [x29, #-88] ldr s1, [x8, x9, lsl #2] fmul s0, s0, s1 stur s0, [x29, #-92] ldur x8, [x29, #-16] ldursw x9, [x29, #-80] ldr x8, [x8, x9, lsl #3] ldursw x9, [x29, #-88] ldr s0, [x8, x9, lsl #2] ldur x8, [x29, #-40] ldursw x9, [x29, #-88] ldr s1, [x8, x9, lsl #2] fmul s0, s0, s1 stur s0, [x29, #-96] b LBB2_9 LBB2_9: ; in Loop: Header=BB2_8 Depth=4 ldur s0, [x29, #-92] ldur s1, [x29, #-96] fcmp s0, s1 cset w8, ne tbnz w8, #0, LBB2_8 b LBB2_10 LBB2_10: ; in Loop: Header=BB2_5 Depth=3 b LBB2_11 LBB2_11: ; Parent Loop BB2_1 Depth=1 ; Parent Loop BB2_3 Depth=2 ; Parent Loop BB2_5 Depth=3 ; => This Inner Loop Header: Depth=4 ldur s0, [x29, #-84] ldur s1, [x29, #-92] fadd s0, s0, s1 stur s0, [x29, #-100] ldur s0, [x29, #-84] ldur s1, [x29, #-92] fadd s0, s0, s1 stur s0, [x29, #-104] b LBB2_12 LBB2_12: ; in Loop: Header=BB2_11 Depth=4 ldur s0, [x29, #-100] ldur s1, [x29, #-104] fcmp s0, s1 cset w8, ne tbnz w8, #0, LBB2_11 b LBB2_13 LBB2_13: ; in Loop: Header=BB2_5 Depth=3 ldur s0, [x29, #-100] stur s0, [x29, #-84] b LBB2_14 LBB2_14: ; in Loop: Header=BB2_5 Depth=3 b LBB2_15 LBB2_15: ; in Loop: Header=BB2_5 Depth=3 ldur w8, [x29, #-88] add w8, w8, #1 stur w8, [x29, #-88] b LBB2_5 LBB2_16: ; in Loop: Header=BB2_3 Depth=2 b LBB2_17 LBB2_17: ; Parent Loop BB2_1 Depth=1 ; Parent Loop BB2_3 Depth=2 ; => This Inner Loop Header: Depth=3 ldur s1, [x29, #-28] fmov s0, #1.00000000 fsub s1, s0, s1 stur s1, [x29, #-108] ldur s1, [x29, #-28] fsub s0, s0, s1 stur s0, [x29, #-112] b LBB2_18 LBB2_18: ; in Loop: Header=BB2_17 Depth=3 ldur s0, [x29, #-108] ldur s1, [x29, #-112] fcmp s0, s1 cset w8, ne tbnz w8, #0, LBB2_17 b LBB2_19 LBB2_19: ; in Loop: Header=BB2_3 Depth=2 b LBB2_20 LBB2_20: ; Parent Loop BB2_1 Depth=1 ; Parent Loop BB2_3 Depth=2 ; => This Inner Loop Header: Depth=3 ldur x8, [x29, #-24] ldursw x9, [x29, #-80] ldr s0, [x8, x9, lsl #2] ldur s1, [x29, #-84] fsub s0, s0, s1 stur s0, [x29, #-116] ldur x8, [x29, #-24] ldursw x9, [x29, #-80] ldr s0, [x8, x9, lsl #2] ldur s1, [x29, #-84] fsub s0, s0, s1 stur s0, [x29, #-120] b LBB2_21 LBB2_21: ; in Loop: Header=BB2_20 Depth=3 ldur s0, [x29, #-116] ldur s1, [x29, #-120] fcmp s0, s1 cset w8, ne tbnz w8, #0, LBB2_20 b LBB2_22 LBB2_22: ; in Loop: Header=BB2_3 Depth=2 b LBB2_23 LBB2_23: ; Parent Loop BB2_1 Depth=1 ; Parent Loop BB2_3 Depth=2 ; => This Inner Loop Header: Depth=3 ldur s0, [x29, #-28] ldur x8, [x29, #-16] ldursw x9, [x29, #-80] ldr x8, [x8, x9, lsl #3] ldursw x9, [x29, #-80] ldr s1, [x8, x9, lsl #2] fdiv s0, s0, s1 stur s0, [x29, #-124] ldur s0, [x29, #-28] ldur x8, [x29, #-16] ldursw x9, [x29, #-80] ldr x8, [x8, x9, lsl #3] ldursw x9, [x29, #-80] ldr s1, [x8, x9, lsl #2] fdiv s0, s0, s1 stur s0, [x29, #-128] b LBB2_24 LBB2_24: ; in Loop: Header=BB2_23 Depth=3 ldur s0, [x29, #-124] ldur s1, [x29, #-128] fcmp s0, s1 cset w8, ne tbnz w8, #0, LBB2_23 b LBB2_25 LBB2_25: ; in Loop: Header=BB2_3 Depth=2 b LBB2_26 LBB2_26: ; Parent Loop BB2_1 Depth=1 ; Parent Loop BB2_3 Depth=2 ; => This Inner Loop Header: Depth=3 ldur s0, [x29, #-108] ldur x8, [x29, #-40] ldursw x9, [x29, #-80] ldr s1, [x8, x9, lsl #2] fmul s0, s0, s1 stur s0, [x29, #-132] ldur s0, [x29, #-108] ldur x8, [x29, #-40] ldursw x9, [x29, #-80] ldr s1, [x8, x9, lsl #2] fmul s0, s0, s1 stur s0, [x29, #-136] b LBB2_27 LBB2_27: ; in Loop: Header=BB2_26 Depth=3 ldur s0, [x29, #-132] ldur s1, [x29, #-136] fcmp s0, s1 cset w8, ne tbnz w8, #0, LBB2_26 b LBB2_28 LBB2_28: ; in Loop: Header=BB2_3 Depth=2 b LBB2_29 LBB2_29: ; Parent Loop BB2_1 Depth=1 ; Parent Loop BB2_3 Depth=2 ; => This Inner Loop Header: Depth=3 ldur s0, [x29, #-124] ldur s1, [x29, #-116] fmul s0, s0, s1 stur s0, [x29, #-140] ldur s0, [x29, #-124] ldur s1, [x29, #-116] fmul s0, s0, s1 stur s0, [x29, #-144] b LBB2_30 LBB2_30: ; in Loop: Header=BB2_29 Depth=3 ldur s0, [x29, #-140] ldur s1, [x29, #-144] fcmp s0, s1 cset w8, ne tbnz w8, #0, LBB2_29 b LBB2_31 LBB2_31: ; in Loop: Header=BB2_3 Depth=2 b LBB2_32 LBB2_32: ; Parent Loop BB2_1 Depth=1 ; Parent Loop BB2_3 Depth=2 ; => This Inner Loop Header: Depth=3 ldur s0, [x29, #-132] ldur s1, [x29, #-140] fadd s0, s0, s1 stur s0, [x29, #-148] ldur s0, [x29, #-132] ldur s1, [x29, #-140] fadd s0, s0, s1 stur s0, [x29, #-152] b LBB2_33 LBB2_33: ; in Loop: Header=BB2_32 Depth=3 ldur s0, [x29, #-148] ldur s1, [x29, #-152] fcmp s0, s1 cset w8, ne tbnz w8, #0, LBB2_32 b LBB2_34 LBB2_34: ; in Loop: Header=BB2_3 Depth=2 ldur s0, [x29, #-148] ldur x8, [x29, #-40] ldursw x9, [x29, #-80] str s0, [x8, x9, lsl #2] b LBB2_35 LBB2_35: ; in Loop: Header=BB2_3 Depth=2 ldur w8, [x29, #-80] add w8, w8, #1 stur w8, [x29, #-80] b LBB2_3 LBB2_36: ; in Loop: Header=BB2_1 Depth=1 ldur x2, [x29, #-168] ; 8-byte Folded Reload ldur x0, [x29, #-16] ldur x1, [x29, #-40] ldur w3, [x29, #-44] ldur w4, [x29, #-44] bl _matvec ldur x0, [x29, #-168] ; 8-byte Folded Reload ldur x2, [x29, #-160] ; 8-byte Folded Reload ldur x1, [x29, #-24] ldur w3, [x29, #-44] bl _vecsub b LBB2_37 LBB2_37: ; in Loop: Header=BB2_1 Depth=1 ldur w8, [x29, #-76] add w8, w8, #1 stur w8, [x29, #-76] b LBB2_1 LBB2_38: ldur x8, [x29, #-56] stur x8, [x29, #-192] ; 8-byte Folded Spill ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB2_40 b LBB2_39 LBB2_39: bl ___stack_chk_fail LBB2_40: ldur x8, [x29, #-192] ; 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 _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #128 .cfi_def_cfa_offset 128 stp x29, x30, [sp, #112] ; 16-byte Folded Spill add x29, sp, #112 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] stur w0, [x29, #-8] stur x1, [x29, #-16] mov w8, #4 stur w8, [x29, #-20] mov x0, #32 bl _malloc stur x0, [x29, #-32] stur wzr, [x29, #-36] b LBB3_1 LBB3_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-36] subs w8, w8, #4 cset w8, ge tbnz w8, #0, LBB3_4 b LBB3_2 LBB3_2: ; in Loop: Header=BB3_1 Depth=1 mov x0, #16 bl _malloc ldur x8, [x29, #-32] ldursw x9, [x29, #-36] str x0, [x8, x9, lsl #3] b LBB3_3 LBB3_3: ; in Loop: Header=BB3_1 Depth=1 ldur w8, [x29, #-36] add w8, w8, #1 stur w8, [x29, #-36] b LBB3_1 LBB3_4: ldur x8, [x29, #-32] ldr x8, [x8] fmov s1, #4.00000000 str s1, [x8] ldur x8, [x29, #-32] ldr x8, [x8] fmov s0, #-1.00000000 str s0, [x8, #4] ldur x8, [x29, #-32] ldr x8, [x8] fmov s0, #-6.00000000 str s0, [sp, #20] ; 4-byte Folded Spill str s0, [x8, #8] ldur x8, [x29, #-32] ldr x8, [x8] movi d0, #0000000000000000 str s0, [sp, #32] ; 4-byte Folded Spill str s0, [x8, #12] ldur x8, [x29, #-32] ldr x8, [x8, #8] fmov s2, #-5.00000000 str s2, [x8] ldur x8, [x29, #-32] ldr x8, [x8, #8] fmov s2, #-4.00000000 str s2, [x8, #4] ldur x8, [x29, #-32] ldr x8, [x8, #8] fmov s2, #10.00000000 str s2, [x8, #8] ldur x8, [x29, #-32] ldr x8, [x8, #8] fmov s2, #8.00000000 str s2, [x8, #12] ldur x8, [x29, #-32] ldr x8, [x8, #16] str s0, [x8] ldur x8, [x29, #-32] ldr x8, [x8, #16] fmov s2, #9.00000000 str s2, [x8, #4] ldur x8, [x29, #-32] ldr x8, [x8, #16] str s1, [x8, #8] ldur x8, [x29, #-32] ldr x8, [x8, #16] fmov s1, #-2.00000000 str s1, [x8, #12] ldur x8, [x29, #-32] ldr x8, [x8, #24] fmov s1, #1.00000000 str s1, [x8] ldur x8, [x29, #-32] ldr x8, [x8, #24] str s0, [x8, #4] ldur x8, [x29, #-32] ldr x8, [x8, #24] fmov s0, #-7.00000000 str s0, [x8, #8] ldur x8, [x29, #-32] ldr x8, [x8, #24] fmov s0, #5.00000000 str s0, [x8, #12] mov x0, #16 str x0, [sp, #24] ; 8-byte Folded Spill bl _malloc ldr s0, [sp, #20] ; 4-byte Folded Reload mov x8, x0 ldr x0, [sp, #24] ; 8-byte Folded Reload stur x8, [x29, #-48] ldur x8, [x29, #-48] fmov s1, #2.00000000 str s1, [x8] ldur x8, [x29, #-48] fmov s1, #21.00000000 str s1, [x8, #4] ldur x8, [x29, #-48] fmov s1, #-12.00000000 str s1, [x8, #8] ldur x8, [x29, #-48] str s0, [x8, #12] fmov s0, #0.50000000 str s0, [sp, #36] ; 4-byte Folded Spill stur s0, [x29, #-52] bl _malloc ldr s1, [sp, #32] ; 4-byte Folded Reload ldr s0, [sp, #36] ; 4-byte Folded Reload str x0, [sp, #48] ldr x8, [sp, #48] str s1, [x8] ldr x8, [sp, #48] str s1, [x8, #4] ldr x8, [sp, #48] str s1, [x8, #8] ldr x8, [sp, #48] str s1, [x8, #12] ldur x0, [x29, #-32] ldur x1, [x29, #-48] ldr x2, [sp, #48] mov w3, #4 bl _sor adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf str wzr, [sp, #44] b LBB3_5 LBB3_5: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #44] subs w8, w8, #4 cset w8, ge tbnz w8, #0, LBB3_8 b LBB3_6 LBB3_6: ; in Loop: Header=BB3_5 Depth=1 ldr x8, [sp, #48] ldrsw x9, [sp, #44] ldr s0, [x8, x9, lsl #2] fcvt d0, s0 mov x8, sp str d0, [x8] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf b LBB3_7 LBB3_7: ; in Loop: Header=BB3_5 Depth=1 ldr w8, [sp, #44] add w8, w8, #1 str w8, [sp, #44] b LBB3_5 LBB3_8: adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf ldr x0, [sp, #48] bl _free str wzr, [sp, #40] b LBB3_9 LBB3_9: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #40] subs w8, w8, #4 cset w8, ge tbnz w8, #0, LBB3_12 b LBB3_10 LBB3_10: ; in Loop: Header=BB3_9 Depth=1 ldur x8, [x29, #-32] ldrsw x9, [sp, #40] ldr x0, [x8, x9, lsl #3] bl _free b LBB3_11 LBB3_11: ; in Loop: Header=BB3_9 Depth=1 ldr w8, [sp, #40] add w8, w8, #1 str w8, [sp, #40] b LBB3_9 LBB3_12: ldur x0, [x29, #-32] bl _free ldur x0, [x29, #-48] bl _free mov w0, #0 ldp x29, x30, [sp, #112] ; 16-byte Folded Reload add sp, sp, #128 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Result: " l_.str.1: ; @.str.1 .asciz "%f " 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 _matvec ## -- Begin function matvec .p2align 4, 0x90 _matvec: ## @matvec .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) movl %ecx, -28(%rbp) movl %r8d, -32(%rbp) movl $0, -36(%rbp) LBB0_1: ## =>This Loop Header: Depth=1 ## Child Loop BB0_3 Depth 2 ## Child Loop BB0_5 Depth 3 ## Child Loop BB0_8 Depth 3 movl -36(%rbp), %eax cmpl -28(%rbp), %eax jge LBB0_14 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 xorps %xmm0, %xmm0 movss %xmm0, -40(%rbp) movl $0, -44(%rbp) LBB0_3: ## Parent Loop BB0_1 Depth=1 ## => This Loop Header: Depth=2 ## Child Loop BB0_5 Depth 3 ## Child Loop BB0_8 Depth 3 movl -44(%rbp), %eax cmpl -32(%rbp), %eax jge LBB0_12 ## %bb.4: ## in Loop: Header=BB0_3 Depth=2 jmp LBB0_5 LBB0_5: ## Parent Loop BB0_1 Depth=1 ## Parent Loop BB0_3 Depth=2 ## => This Inner Loop Header: Depth=3 movq -8(%rbp), %rax movslq -36(%rbp), %rcx movq (%rax,%rcx,8), %rax movslq -44(%rbp), %rcx movss (%rax,%rcx,4), %xmm0 ## xmm0 = mem[0],zero,zero,zero movq -16(%rbp), %rax movslq -44(%rbp), %rcx mulss (%rax,%rcx,4), %xmm0 movss %xmm0, -48(%rbp) movq -8(%rbp), %rax movslq -36(%rbp), %rcx movq (%rax,%rcx,8), %rax movslq -44(%rbp), %rcx movss (%rax,%rcx,4), %xmm0 ## xmm0 = mem[0],zero,zero,zero movq -16(%rbp), %rax movslq -44(%rbp), %rcx mulss (%rax,%rcx,4), %xmm0 movss %xmm0, -52(%rbp) ## %bb.6: ## in Loop: Header=BB0_5 Depth=3 movss -48(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero ucomiss -52(%rbp), %xmm0 jne LBB0_5 jp LBB0_5 ## %bb.7: ## in Loop: Header=BB0_3 Depth=2 jmp LBB0_8 LBB0_8: ## Parent Loop BB0_1 Depth=1 ## Parent Loop BB0_3 Depth=2 ## => This Inner Loop Header: Depth=3 movss -40(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero addss -48(%rbp), %xmm0 movss %xmm0, -56(%rbp) movss -40(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero addss -48(%rbp), %xmm0 movss %xmm0, -60(%rbp) ## %bb.9: ## in Loop: Header=BB0_8 Depth=3 movss -56(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero ucomiss -60(%rbp), %xmm0 jne LBB0_8 jp LBB0_8 ## %bb.10: ## in Loop: Header=BB0_3 Depth=2 movss -56(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, -40(%rbp) ## %bb.11: ## in Loop: Header=BB0_3 Depth=2 movl -44(%rbp), %eax addl $1, %eax movl %eax, -44(%rbp) jmp LBB0_3 LBB0_12: ## in Loop: Header=BB0_1 Depth=1 movss -40(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movq -24(%rbp), %rax movslq -36(%rbp), %rcx movss %xmm0, (%rax,%rcx,4) ## %bb.13: ## in Loop: Header=BB0_1 Depth=1 movl -36(%rbp), %eax addl $1, %eax movl %eax, -36(%rbp) jmp LBB0_1 LBB0_14: popq %rbp retq .cfi_endproc ## -- End function .globl _vecsub ## -- Begin function vecsub .p2align 4, 0x90 _vecsub: ## @vecsub .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) movl %ecx, -28(%rbp) movl $0, -32(%rbp) LBB1_1: ## =>This Loop Header: Depth=1 ## Child Loop BB1_3 Depth 2 movl -32(%rbp), %eax cmpl -28(%rbp), %eax jge LBB1_7 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 jmp LBB1_3 LBB1_3: ## Parent Loop BB1_1 Depth=1 ## => This Inner Loop Header: Depth=2 movq -8(%rbp), %rax movslq -32(%rbp), %rcx movss (%rax,%rcx,4), %xmm0 ## xmm0 = mem[0],zero,zero,zero movq -16(%rbp), %rax movslq -32(%rbp), %rcx subss (%rax,%rcx,4), %xmm0 movss %xmm0, -36(%rbp) movq -8(%rbp), %rax movslq -32(%rbp), %rcx movss (%rax,%rcx,4), %xmm0 ## xmm0 = mem[0],zero,zero,zero movq -16(%rbp), %rax movslq -32(%rbp), %rcx subss (%rax,%rcx,4), %xmm0 movss %xmm0, -40(%rbp) ## %bb.4: ## in Loop: Header=BB1_3 Depth=2 movss -36(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero ucomiss -40(%rbp), %xmm0 jne LBB1_3 jp LBB1_3 ## %bb.5: ## in Loop: Header=BB1_1 Depth=1 movss -40(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movq -24(%rbp), %rax movslq -32(%rbp), %rcx movss %xmm0, (%rax,%rcx,4) ## %bb.6: ## in Loop: Header=BB1_1 Depth=1 movl -32(%rbp), %eax addl $1, %eax movl %eax, -32(%rbp) jmp LBB1_1 LBB1_7: popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__literal4,4byte_literals .p2align 2 ## -- Begin function sor LCPI2_0: .long 0x3f800000 ## float 1 .section __TEXT,__text,regular,pure_instructions .globl _sor .p2align 4, 0x90 _sor: ## @sor .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $192, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movq %rdi, -16(%rbp) movq %rsi, -24(%rbp) movss %xmm0, -28(%rbp) movq %rdx, -40(%rbp) movl %ecx, -44(%rbp) movl -44(%rbp), %eax ## kill: def $rax killed $eax movq %rax, -184(%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 -184(%rbp), %rax ## 8-byte Reload movq %rsp, %rcx movq %rcx, -168(%rbp) ## 8-byte Spill movq %rax, -64(%rbp) movl -44(%rbp), %eax ## kill: def $rax killed $eax movq %rax, -176(%rbp) ## 8-byte Spill shlq $2, %rax callq ____chkstk_darwin movq -168(%rbp), %rdx ## 8-byte Reload addq $15, %rax andq $-16, %rax subq %rax, %rsp movq -176(%rbp), %rax ## 8-byte Reload movq %rsp, %rcx movq %rcx, -160(%rbp) ## 8-byte Spill movq %rax, -72(%rbp) movq -16(%rbp), %rdi movq -40(%rbp), %rsi movl -44(%rbp), %ecx movl -44(%rbp), %r8d callq _matvec movq -168(%rbp), %rdi ## 8-byte Reload movq -160(%rbp), %rdx ## 8-byte Reload movq -24(%rbp), %rsi movl -44(%rbp), %ecx callq _vecsub movl $0, -76(%rbp) LBB2_1: ## =>This Loop Header: Depth=1 ## Child Loop BB2_3 Depth 2 ## Child Loop BB2_5 Depth 3 ## Child Loop BB2_8 Depth 4 ## Child Loop BB2_11 Depth 4 ## Child Loop BB2_17 Depth 3 ## Child Loop BB2_20 Depth 3 ## Child Loop BB2_23 Depth 3 ## Child Loop BB2_26 Depth 3 ## Child Loop BB2_29 Depth 3 ## Child Loop BB2_32 Depth 3 cmpl $40, -76(%rbp) jge LBB2_38 ## %bb.2: ## in Loop: Header=BB2_1 Depth=1 movl $0, -80(%rbp) LBB2_3: ## Parent Loop BB2_1 Depth=1 ## => This Loop Header: Depth=2 ## Child Loop BB2_5 Depth 3 ## Child Loop BB2_8 Depth 4 ## Child Loop BB2_11 Depth 4 ## Child Loop BB2_17 Depth 3 ## Child Loop BB2_20 Depth 3 ## Child Loop BB2_23 Depth 3 ## Child Loop BB2_26 Depth 3 ## Child Loop BB2_29 Depth 3 ## Child Loop BB2_32 Depth 3 movl -80(%rbp), %eax cmpl -44(%rbp), %eax jge LBB2_36 ## %bb.4: ## in Loop: Header=BB2_3 Depth=2 xorps %xmm0, %xmm0 movss %xmm0, -84(%rbp) movl $0, -88(%rbp) LBB2_5: ## Parent Loop BB2_1 Depth=1 ## Parent Loop BB2_3 Depth=2 ## => This Loop Header: Depth=3 ## Child Loop BB2_8 Depth 4 ## Child Loop BB2_11 Depth 4 movl -88(%rbp), %eax cmpl -44(%rbp), %eax jge LBB2_16 ## %bb.6: ## in Loop: Header=BB2_5 Depth=3 movl -88(%rbp), %eax cmpl -80(%rbp), %eax je LBB2_14 ## %bb.7: ## in Loop: Header=BB2_5 Depth=3 jmp LBB2_8 LBB2_8: ## Parent Loop BB2_1 Depth=1 ## Parent Loop BB2_3 Depth=2 ## Parent Loop BB2_5 Depth=3 ## => This Inner Loop Header: Depth=4 movq -16(%rbp), %rax movslq -80(%rbp), %rcx movq (%rax,%rcx,8), %rax movslq -88(%rbp), %rcx movss (%rax,%rcx,4), %xmm0 ## xmm0 = mem[0],zero,zero,zero movq -40(%rbp), %rax movslq -88(%rbp), %rcx mulss (%rax,%rcx,4), %xmm0 movss %xmm0, -92(%rbp) movq -16(%rbp), %rax movslq -80(%rbp), %rcx movq (%rax,%rcx,8), %rax movslq -88(%rbp), %rcx movss (%rax,%rcx,4), %xmm0 ## xmm0 = mem[0],zero,zero,zero movq -40(%rbp), %rax movslq -88(%rbp), %rcx mulss (%rax,%rcx,4), %xmm0 movss %xmm0, -96(%rbp) ## %bb.9: ## in Loop: Header=BB2_8 Depth=4 movss -92(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero ucomiss -96(%rbp), %xmm0 jne LBB2_8 jp LBB2_8 ## %bb.10: ## in Loop: Header=BB2_5 Depth=3 jmp LBB2_11 LBB2_11: ## Parent Loop BB2_1 Depth=1 ## Parent Loop BB2_3 Depth=2 ## Parent Loop BB2_5 Depth=3 ## => This Inner Loop Header: Depth=4 movss -84(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero addss -92(%rbp), %xmm0 movss %xmm0, -100(%rbp) movss -84(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero addss -92(%rbp), %xmm0 movss %xmm0, -104(%rbp) ## %bb.12: ## in Loop: Header=BB2_11 Depth=4 movss -100(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero ucomiss -104(%rbp), %xmm0 jne LBB2_11 jp LBB2_11 ## %bb.13: ## in Loop: Header=BB2_5 Depth=3 movss -100(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, -84(%rbp) LBB2_14: ## in Loop: Header=BB2_5 Depth=3 jmp LBB2_15 LBB2_15: ## in Loop: Header=BB2_5 Depth=3 movl -88(%rbp), %eax addl $1, %eax movl %eax, -88(%rbp) jmp LBB2_5 LBB2_16: ## in Loop: Header=BB2_3 Depth=2 jmp LBB2_17 LBB2_17: ## Parent Loop BB2_1 Depth=1 ## Parent Loop BB2_3 Depth=2 ## => This Inner Loop Header: Depth=3 movss LCPI2_0(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero subss -28(%rbp), %xmm0 movss %xmm0, -108(%rbp) movss LCPI2_0(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero subss -28(%rbp), %xmm0 movss %xmm0, -112(%rbp) ## %bb.18: ## in Loop: Header=BB2_17 Depth=3 movss -108(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero ucomiss -112(%rbp), %xmm0 jne LBB2_17 jp LBB2_17 ## %bb.19: ## in Loop: Header=BB2_3 Depth=2 jmp LBB2_20 LBB2_20: ## Parent Loop BB2_1 Depth=1 ## Parent Loop BB2_3 Depth=2 ## => This Inner Loop Header: Depth=3 movq -24(%rbp), %rax movslq -80(%rbp), %rcx movss (%rax,%rcx,4), %xmm0 ## xmm0 = mem[0],zero,zero,zero subss -84(%rbp), %xmm0 movss %xmm0, -116(%rbp) movq -24(%rbp), %rax movslq -80(%rbp), %rcx movss (%rax,%rcx,4), %xmm0 ## xmm0 = mem[0],zero,zero,zero subss -84(%rbp), %xmm0 movss %xmm0, -120(%rbp) ## %bb.21: ## in Loop: Header=BB2_20 Depth=3 movss -116(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero ucomiss -120(%rbp), %xmm0 jne LBB2_20 jp LBB2_20 ## %bb.22: ## in Loop: Header=BB2_3 Depth=2 jmp LBB2_23 LBB2_23: ## Parent Loop BB2_1 Depth=1 ## Parent Loop BB2_3 Depth=2 ## => This Inner Loop Header: Depth=3 movss -28(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movq -16(%rbp), %rax movslq -80(%rbp), %rcx movq (%rax,%rcx,8), %rax movslq -80(%rbp), %rcx divss (%rax,%rcx,4), %xmm0 movss %xmm0, -124(%rbp) movss -28(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movq -16(%rbp), %rax movslq -80(%rbp), %rcx movq (%rax,%rcx,8), %rax movslq -80(%rbp), %rcx divss (%rax,%rcx,4), %xmm0 movss %xmm0, -128(%rbp) ## %bb.24: ## in Loop: Header=BB2_23 Depth=3 movss -124(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero ucomiss -128(%rbp), %xmm0 jne LBB2_23 jp LBB2_23 ## %bb.25: ## in Loop: Header=BB2_3 Depth=2 jmp LBB2_26 LBB2_26: ## Parent Loop BB2_1 Depth=1 ## Parent Loop BB2_3 Depth=2 ## => This Inner Loop Header: Depth=3 movss -108(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movq -40(%rbp), %rax movslq -80(%rbp), %rcx mulss (%rax,%rcx,4), %xmm0 movss %xmm0, -132(%rbp) movss -108(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movq -40(%rbp), %rax movslq -80(%rbp), %rcx mulss (%rax,%rcx,4), %xmm0 movss %xmm0, -136(%rbp) ## %bb.27: ## in Loop: Header=BB2_26 Depth=3 movss -132(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero ucomiss -136(%rbp), %xmm0 jne LBB2_26 jp LBB2_26 ## %bb.28: ## in Loop: Header=BB2_3 Depth=2 jmp LBB2_29 LBB2_29: ## Parent Loop BB2_1 Depth=1 ## Parent Loop BB2_3 Depth=2 ## => This Inner Loop Header: Depth=3 movss -124(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero mulss -116(%rbp), %xmm0 movss %xmm0, -140(%rbp) movss -124(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero mulss -116(%rbp), %xmm0 movss %xmm0, -144(%rbp) ## %bb.30: ## in Loop: Header=BB2_29 Depth=3 movss -140(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero ucomiss -144(%rbp), %xmm0 jne LBB2_29 jp LBB2_29 ## %bb.31: ## in Loop: Header=BB2_3 Depth=2 jmp LBB2_32 LBB2_32: ## Parent Loop BB2_1 Depth=1 ## Parent Loop BB2_3 Depth=2 ## => This Inner Loop Header: Depth=3 movss -132(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero addss -140(%rbp), %xmm0 movss %xmm0, -148(%rbp) movss -132(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero addss -140(%rbp), %xmm0 movss %xmm0, -152(%rbp) ## %bb.33: ## in Loop: Header=BB2_32 Depth=3 movss -148(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero ucomiss -152(%rbp), %xmm0 jne LBB2_32 jp LBB2_32 ## %bb.34: ## in Loop: Header=BB2_3 Depth=2 movss -148(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movq -40(%rbp), %rax movslq -80(%rbp), %rcx movss %xmm0, (%rax,%rcx,4) ## %bb.35: ## in Loop: Header=BB2_3 Depth=2 movl -80(%rbp), %eax addl $1, %eax movl %eax, -80(%rbp) jmp LBB2_3 LBB2_36: ## in Loop: Header=BB2_1 Depth=1 movq -168(%rbp), %rdx ## 8-byte Reload movq -16(%rbp), %rdi movq -40(%rbp), %rsi movl -44(%rbp), %ecx movl -44(%rbp), %r8d callq _matvec movq -168(%rbp), %rdi ## 8-byte Reload movq -160(%rbp), %rdx ## 8-byte Reload movq -24(%rbp), %rsi movl -44(%rbp), %ecx callq _vecsub ## %bb.37: ## in Loop: Header=BB2_1 Depth=1 movl -76(%rbp), %eax addl $1, %eax movl %eax, -76(%rbp) jmp LBB2_1 LBB2_38: 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 LBB2_40 ## %bb.39: movq %rbp, %rsp popq %rbp retq LBB2_40: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__literal4,4byte_literals .p2align 2 ## -- Begin function main LCPI3_0: .long 0x3f000000 ## float 0.5 LCPI3_1: .long 0xc0c00000 ## float -6 LCPI3_2: .long 0xc1400000 ## float -12 LCPI3_3: .long 0x41a80000 ## float 21 LCPI3_4: .long 0x40000000 ## float 2 LCPI3_5: .long 0x40a00000 ## float 5 LCPI3_6: .long 0xc0e00000 ## float -7 LCPI3_7: .long 0x3f800000 ## float 1 LCPI3_8: .long 0xc0000000 ## float -2 LCPI3_9: .long 0x40800000 ## float 4 LCPI3_10: .long 0x41100000 ## float 9 LCPI3_11: .long 0x41000000 ## float 8 LCPI3_12: .long 0x41200000 ## float 10 LCPI3_13: .long 0xc0800000 ## float -4 LCPI3_14: .long 0xc0a00000 ## float -5 LCPI3_15: .long 0xbf800000 ## 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 $80, %rsp movl $0, -4(%rbp) movl %edi, -8(%rbp) movq %rsi, -16(%rbp) movl $4, -20(%rbp) movl $32, %edi callq _malloc movq %rax, -32(%rbp) movl $0, -36(%rbp) LBB3_1: ## =>This Inner Loop Header: Depth=1 cmpl $4, -36(%rbp) jge LBB3_4 ## %bb.2: ## in Loop: Header=BB3_1 Depth=1 movl $16, %edi callq _malloc movq %rax, %rdx movq -32(%rbp), %rax movslq -36(%rbp), %rcx movq %rdx, (%rax,%rcx,8) ## %bb.3: ## in Loop: Header=BB3_1 Depth=1 movl -36(%rbp), %eax addl $1, %eax movl %eax, -36(%rbp) jmp LBB3_1 LBB3_4: movq -32(%rbp), %rax movq (%rax), %rax movss LCPI3_9(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, (%rax) movq -32(%rbp), %rax movq (%rax), %rax movss LCPI3_15(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, 4(%rax) movq -32(%rbp), %rax movq (%rax), %rax movss LCPI3_1(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, 8(%rax) movq -32(%rbp), %rax movq (%rax), %rax xorps %xmm0, %xmm0 movss %xmm0, 12(%rax) movq -32(%rbp), %rax movq 8(%rax), %rax movss LCPI3_14(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, (%rax) movq -32(%rbp), %rax movq 8(%rax), %rax movss LCPI3_13(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, 4(%rax) movq -32(%rbp), %rax movq 8(%rax), %rax movss LCPI3_12(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, 8(%rax) movq -32(%rbp), %rax movq 8(%rax), %rax movss LCPI3_11(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, 12(%rax) movq -32(%rbp), %rax movq 16(%rax), %rax xorps %xmm0, %xmm0 movss %xmm0, (%rax) movq -32(%rbp), %rax movq 16(%rax), %rax movss LCPI3_10(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, 4(%rax) movq -32(%rbp), %rax movq 16(%rax), %rax movss LCPI3_9(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, 8(%rax) movq -32(%rbp), %rax movq 16(%rax), %rax movss LCPI3_8(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, 12(%rax) movq -32(%rbp), %rax movq 24(%rax), %rax movss LCPI3_7(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, (%rax) movq -32(%rbp), %rax movq 24(%rax), %rax xorps %xmm0, %xmm0 movss %xmm0, 4(%rax) movq -32(%rbp), %rax movq 24(%rax), %rax movss LCPI3_6(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, 8(%rax) movq -32(%rbp), %rax movq 24(%rax), %rax movss LCPI3_5(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, 12(%rax) movl $16, %edi callq _malloc movq %rax, -48(%rbp) movq -48(%rbp), %rax movss LCPI3_4(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, (%rax) movq -48(%rbp), %rax movss LCPI3_3(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, 4(%rax) movq -48(%rbp), %rax movss LCPI3_2(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, 8(%rax) movq -48(%rbp), %rax movss LCPI3_1(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, 12(%rax) movss LCPI3_0(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, -52(%rbp) movl $16, %edi callq _malloc movq %rax, -64(%rbp) movq -64(%rbp), %rax xorps %xmm0, %xmm0 movss %xmm0, (%rax) movq -64(%rbp), %rax xorps %xmm0, %xmm0 movss %xmm0, 4(%rax) movq -64(%rbp), %rax xorps %xmm0, %xmm0 movss %xmm0, 8(%rax) movq -64(%rbp), %rax xorps %xmm0, %xmm0 movss %xmm0, 12(%rax) movq -32(%rbp), %rdi movq -48(%rbp), %rsi movq -64(%rbp), %rdx movss LCPI3_0(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero movl $4, %ecx callq _sor leaq L_.str(%rip), %rdi movb $0, %al callq _printf movl $0, -68(%rbp) LBB3_5: ## =>This Inner Loop Header: Depth=1 cmpl $4, -68(%rbp) jge LBB3_8 ## %bb.6: ## in Loop: Header=BB3_5 Depth=1 movq -64(%rbp), %rax movslq -68(%rbp), %rcx movss (%rax,%rcx,4), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 leaq L_.str.1(%rip), %rdi movb $1, %al callq _printf ## %bb.7: ## in Loop: Header=BB3_5 Depth=1 movl -68(%rbp), %eax addl $1, %eax movl %eax, -68(%rbp) jmp LBB3_5 LBB3_8: leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf movq -64(%rbp), %rdi callq _free movl $0, -72(%rbp) LBB3_9: ## =>This Inner Loop Header: Depth=1 cmpl $4, -72(%rbp) jge LBB3_12 ## %bb.10: ## in Loop: Header=BB3_9 Depth=1 movq -32(%rbp), %rax movslq -72(%rbp), %rcx movq (%rax,%rcx,8), %rdi callq _free ## %bb.11: ## in Loop: Header=BB3_9 Depth=1 movl -72(%rbp), %eax addl $1, %eax movl %eax, -72(%rbp) jmp LBB3_9 LBB3_12: movq -32(%rbp), %rdi callq _free movq -48(%rbp), %rdi callq _free xorl %eax, %eax addq $80, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Result: " L_.str.1: ## @.str.1 .asciz "%f " L_.str.2: ## @.str.2 .asciz "\n" .subsections_via_symbols
the_stack_data/45449502.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __TEXT,__literal8,8byte_literals .p2align 3 ; -- Begin function main lCPI0_0: .quad 0x4059000000000000 ; double 100 .section __TEXT,__text,regular,pure_instructions .globl _main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #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, #9 stur w8, [x29, #-8] ldur w8, [x29, #-8] add w8, w8, #5 stur w8, [x29, #-12] stur wzr, [x29, #-16] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-12] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-12] mov w9, #2 sdiv w10, w8, w9 mul w10, w10, w9 subs w8, w8, w10 ldur w11, [x29, #-16] mov w10, #10 mul w10, w10, w11 add w8, w8, w10 stur w8, [x29, #-16] ldur w8, [x29, #-12] sdiv w8, w8, w9 stur w8, [x29, #-12] ldur w8, [x29, #-12] ; implicit-def: $x10 mov x10, x8 ldur w9, [x29, #-16] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf b LBB0_1 LBB0_3: b LBB0_4 LBB0_4: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-16] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_4 Depth=1 fmov d0, #10.00000000 fmov d1, #2.00000000 bl _pow fcvtzs w8, d0 stur w8, [x29, #-20] ldur w8, [x29, #-16] ldur w10, [x29, #-20] sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 stur w8, [x29, #-12] ldur s1, [x29, #-16] ; implicit-def: $d0 fmov s0, s1 sshll.2d v0, v0, #0 ; kill: def $d0 killed $d0 killed $q0 scvtf d0, d0 adrp x8, lCPI0_0@PAGE ldr d1, [x8, lCPI0_0@PAGEOFF] fsqrt d1, d1 fdiv d0, d0, d1 fcvtzs w8, d0 stur w8, [x29, #-16] ldur w8, [x29, #-12] ; implicit-def: $x10 mov x10, x8 ldur w9, [x29, #-16] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf b LBB0_4 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 "x = %d, y = %d\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __TEXT,__literal8,8byte_literals .p2align 3 ## -- Begin function main LCPI0_0: .quad 0x4059000000000000 ## double 100 LCPI0_1: .quad 0x4024000000000000 ## double 10 LCPI0_2: .quad 0x4000000000000000 ## double 2 .section __TEXT,__text,regular,pure_instructions .globl _main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl $0, -4(%rbp) movl $9, -8(%rbp) movl -8(%rbp), %eax addl $5, %eax movl %eax, -12(%rbp) movl $0, -16(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 cmpl $0, -12(%rbp) je LBB0_3 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl -12(%rbp), %eax movl $2, %ecx cltd idivl %ecx imull $10, -16(%rbp), %eax addl %eax, %edx movl %edx, -16(%rbp) movl -12(%rbp), %eax movl $2, %ecx cltd idivl %ecx movl %eax, -12(%rbp) movl -12(%rbp), %esi movl -16(%rbp), %edx leaq L_.str(%rip), %rdi movb $0, %al callq _printf jmp LBB0_1 LBB0_3: jmp LBB0_4 LBB0_4: ## =>This Inner Loop Header: Depth=1 cmpl $0, -16(%rbp) je LBB0_6 ## %bb.5: ## in Loop: Header=BB0_4 Depth=1 movsd LCPI0_1(%rip), %xmm0 ## xmm0 = mem[0],zero movsd LCPI0_2(%rip), %xmm1 ## xmm1 = mem[0],zero callq _pow cvttsd2si %xmm0, %eax movl %eax, -20(%rbp) movl -16(%rbp), %eax cltd idivl -20(%rbp) movl %edx, -12(%rbp) cvtsi2sdl -16(%rbp), %xmm0 movsd LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero sqrtsd %xmm1, %xmm1 divsd %xmm1, %xmm0 cvttsd2si %xmm0, %eax movl %eax, -16(%rbp) movl -12(%rbp), %esi movl -16(%rbp), %edx leaq L_.str(%rip), %rdi movb $0, %al callq _printf jmp LBB0_4 LBB0_6: xorl %eax, %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "x = %d, y = %d\n" .subsections_via_symbols
the_stack_data/36074578.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _converte_n_bin ; -- Begin function converte_n_bin .p2align 2 _converte_n_bin: ; @converte_n_bin .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, #-44] str w1, [sp, #48] sub x8, x29, #40 stur xzr, [x29, #-40] stur xzr, [x29, #-32] stur xzr, [x29, #-24] stur xzr, [x8, #22] mov x0, #30 mov x1, #1 bl _calloc str x0, [sp, #40] str wzr, [sp, #36] ldur w8, [x29, #-44] subs w8, w8, #0 cset w8, lt and w8, w8, #0x1 str w8, [sp, #32] ldur w8, [x29, #-44] subs w8, w8, #0 cset w8, lt tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: ldur w8, [x29, #-44] str w8, [sp, #16] ; 4-byte Folded Spill b LBB0_3 LBB0_2: ldur w9, [x29, #-44] mov w8, #0 subs w8, w8, w9 str w8, [sp, #16] ; 4-byte Folded Spill b LBB0_3 LBB0_3: ldr w8, [sp, #16] ; 4-byte Folded Reload stur w8, [x29, #-44] b LBB0_4 LBB0_4: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-44] subs w8, w8, #2 cset w8, lt tbnz w8, #0, LBB0_9 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_4 Depth=1 ldur w8, [x29, #-44] 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_7 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_4 Depth=1 ldrsw x9, [sp, #36] mov x8, x9 add w8, w8, #1 str w8, [sp, #36] sub x8, x29, #40 add x9, x8, x9 mov w8, #48 strb w8, [x9] b LBB0_8 LBB0_7: ; in Loop: Header=BB0_4 Depth=1 ldrsw x9, [sp, #36] mov x8, x9 add w8, w8, #1 str w8, [sp, #36] sub x8, x29, #40 add x9, x8, x9 mov w8, #49 strb w8, [x9] b LBB0_8 LBB0_8: ; in Loop: Header=BB0_4 Depth=1 ldur w8, [x29, #-44] mov w9, #2 sdiv w8, w8, w9 stur w8, [x29, #-44] b LBB0_4 LBB0_9: ldur w8, [x29, #-44] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_11 b LBB0_10 LBB0_10: ldrsw x9, [sp, #36] sub x8, x29, #40 add x9, x8, x9 mov w8, #48 strb w8, [x9] b LBB0_12 LBB0_11: ldrsw x9, [sp, #36] sub x8, x29, #40 add x9, x8, x9 mov w8, #49 strb w8, [x9] b LBB0_12 LBB0_12: ldr w8, [sp, #48] ldr w9, [sp, #36] subs w8, w8, w9 subs w8, w8, #1 str w8, [sp, #24] str wzr, [sp, #28] b LBB0_13 LBB0_13: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #28] ldr w9, [sp, #24] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_16 b LBB0_14 LBB0_14: ; in Loop: Header=BB0_13 Depth=1 ldr x8, [sp, #40] ldrsw x9, [sp, #28] add x9, x8, x9 mov w8, #48 strb w8, [x9] b LBB0_15 LBB0_15: ; in Loop: Header=BB0_13 Depth=1 ldr w8, [sp, #28] add w8, w8, #1 str w8, [sp, #28] b LBB0_13 LBB0_16: str wzr, [sp, #28] b LBB0_17 LBB0_17: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #28] ldr w9, [sp, #36] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_20 b LBB0_18 LBB0_18: ; in Loop: Header=BB0_17 Depth=1 ldr w8, [sp, #36] ldr w9, [sp, #28] subs w9, w8, w9 sub x8, x29, #40 add x8, x8, w9, sxtw ldrb w8, [x8] ldr x9, [sp, #40] ldr w10, [sp, #24] ldr w11, [sp, #28] add w10, w10, w11 add x9, x9, w10, sxtw strb w8, [x9] b LBB0_19 LBB0_19: ; in Loop: Header=BB0_17 Depth=1 ldr w8, [sp, #28] add w8, w8, #1 str w8, [sp, #28] b LBB0_17 LBB0_20: ldr w8, [sp, #32] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_35 b LBB0_21 LBB0_21: str wzr, [sp, #28] b LBB0_22 LBB0_22: ; =>This Inner Loop Header: Depth=1 ldrsw x8, [sp, #28] str x8, [sp, #8] ; 8-byte Folded Spill ldr x0, [sp, #40] bl _strlen ldr x8, [sp, #8] ; 8-byte Folded Reload subs x8, x8, x0 cset w8, hs tbnz w8, #0, LBB0_28 b LBB0_23 LBB0_23: ; in Loop: Header=BB0_22 Depth=1 ldr x8, [sp, #40] ldrsw x9, [sp, #28] ldrsb w8, [x8, x9] subs w8, w8, #48 cset w8, ne tbnz w8, #0, LBB0_25 b LBB0_24 LBB0_24: ; in Loop: Header=BB0_22 Depth=1 ldr x8, [sp, #40] ldrsw x9, [sp, #28] add x9, x8, x9 mov w8, #49 strb w8, [x9] b LBB0_26 LBB0_25: ; in Loop: Header=BB0_22 Depth=1 ldr x8, [sp, #40] ldrsw x9, [sp, #28] add x9, x8, x9 mov w8, #48 strb w8, [x9] b LBB0_26 LBB0_26: ; in Loop: Header=BB0_22 Depth=1 b LBB0_27 LBB0_27: ; in Loop: Header=BB0_22 Depth=1 ldr w8, [sp, #28] add w8, w8, #1 str w8, [sp, #28] b LBB0_22 LBB0_28: ldr x0, [sp, #40] bl _strlen mov x8, x0 str w8, [sp, #36] ldr x8, [sp, #40] ldrsw x9, [sp, #36] ldrsb w8, [x8, x9] subs w8, w8, #48 cset w8, ne tbnz w8, #0, LBB0_30 b LBB0_29 LBB0_29: ldr x8, [sp, #40] ldrsw x9, [sp, #36] add x9, x8, x9 mov w8, #49 strb w8, [x9] b LBB0_34 LBB0_30: ldr w8, [sp, #36] subs w8, w8, #1 str w8, [sp, #20] b LBB0_31 LBB0_31: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #40] ldrsw x9, [sp, #20] ldrsb w8, [x8, x9] subs w8, w8, #48 cset w8, eq tbnz w8, #0, LBB0_33 b LBB0_32 LBB0_32: ; in Loop: Header=BB0_31 Depth=1 ldr x8, [sp, #40] ldrsw x9, [sp, #20] add x9, x8, x9 mov w8, #48 strb w8, [x9] ldr w8, [sp, #20] subs w8, w8, #1 str w8, [sp, #20] b LBB0_31 LBB0_33: ldr x8, [sp, #40] ldrsw x9, [sp, #20] add x9, x8, x9 mov w8, #49 strb w8, [x9] b LBB0_34 LBB0_34: b LBB0_35 LBB0_35: ldr x8, [sp, #40] str x8, [sp] ; 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_37 b LBB0_36 LBB0_36: bl ___stack_chk_fail LBB0_37: ldr x0, [sp] ; 8-byte Folded Reload ldp x29, x30, [sp, #96] ; 16-byte Folded Reload add sp, sp, #112 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] stur w0, [x29, #-8] stur x1, [x29, #-16] mov w8, #9 stur w8, [x29, #-20] b LBB1_1 LBB1_1: ; =>This Inner Loop Header: Depth=1 adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov x9, sp sub x8, x29, #20 str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf ldur w0, [x29, #-20] mov w1, #12 bl _converte_n_bin str x0, [sp, #16] ldur w8, [x29, #-20] ; implicit-def: $x10 mov x10, x8 ldr x8, [sp, #16] mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf ldr x0, [sp, #16] bl _free b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 mov w8, #1 tbnz w8, #0, LBB1_1 b LBB1_3 LBB1_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 "\nDigite um n\303\272mero inteiro\n" l_.str.1: ; @.str.1 .asciz "%d" l_.str.2: ; @.str.2 .asciz "Bin(%d) = %s\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _converte_n_bin ## -- Begin function converte_n_bin .p2align 4, 0x90 _converte_n_bin: ## @converte_n_bin .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $112, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl %edi, -52(%rbp) movl %esi, -56(%rbp) leaq -48(%rbp), %rdi xorl %esi, %esi movl $30, %edx callq _memset movl $30, %edi movl $1, %esi callq _calloc movq %rax, -64(%rbp) movl $0, -68(%rbp) cmpl $0, -52(%rbp) setl %al andb $1, %al movzbl %al, %eax movl %eax, -72(%rbp) cmpl $0, -52(%rbp) jl LBB0_2 ## %bb.1: movl -52(%rbp), %eax movl %eax, -88(%rbp) ## 4-byte Spill jmp LBB0_3 LBB0_2: xorl %eax, %eax subl -52(%rbp), %eax movl %eax, -88(%rbp) ## 4-byte Spill LBB0_3: movl -88(%rbp), %eax ## 4-byte Reload movl %eax, -52(%rbp) LBB0_4: ## =>This Inner Loop Header: Depth=1 cmpl $2, -52(%rbp) jl LBB0_9 ## %bb.5: ## in Loop: Header=BB0_4 Depth=1 movl -52(%rbp), %eax movl $2, %ecx cltd idivl %ecx cmpl $0, %edx jne LBB0_7 ## %bb.6: ## in Loop: Header=BB0_4 Depth=1 movl -68(%rbp), %eax movl %eax, %ecx addl $1, %ecx movl %ecx, -68(%rbp) cltq movb $48, -48(%rbp,%rax) jmp LBB0_8 LBB0_7: ## in Loop: Header=BB0_4 Depth=1 movl -68(%rbp), %eax movl %eax, %ecx addl $1, %ecx movl %ecx, -68(%rbp) cltq movb $49, -48(%rbp,%rax) LBB0_8: ## in Loop: Header=BB0_4 Depth=1 movl -52(%rbp), %eax movl $2, %ecx cltd idivl %ecx movl %eax, -52(%rbp) jmp LBB0_4 LBB0_9: cmpl $0, -52(%rbp) jne LBB0_11 ## %bb.10: movslq -68(%rbp), %rax movb $48, -48(%rbp,%rax) jmp LBB0_12 LBB0_11: movslq -68(%rbp), %rax movb $49, -48(%rbp,%rax) LBB0_12: movl -56(%rbp), %eax subl -68(%rbp), %eax subl $1, %eax movl %eax, -80(%rbp) movl $0, -76(%rbp) LBB0_13: ## =>This Inner Loop Header: Depth=1 movl -76(%rbp), %eax cmpl -80(%rbp), %eax jge LBB0_16 ## %bb.14: ## in Loop: Header=BB0_13 Depth=1 movq -64(%rbp), %rax movslq -76(%rbp), %rcx movb $48, (%rax,%rcx) ## %bb.15: ## in Loop: Header=BB0_13 Depth=1 movl -76(%rbp), %eax addl $1, %eax movl %eax, -76(%rbp) jmp LBB0_13 LBB0_16: movl $0, -76(%rbp) LBB0_17: ## =>This Inner Loop Header: Depth=1 movl -76(%rbp), %eax cmpl -68(%rbp), %eax jg LBB0_20 ## %bb.18: ## in Loop: Header=BB0_17 Depth=1 movl -68(%rbp), %eax subl -76(%rbp), %eax cltq movb -48(%rbp,%rax), %dl movq -64(%rbp), %rax movl -80(%rbp), %ecx addl -76(%rbp), %ecx movslq %ecx, %rcx movb %dl, (%rax,%rcx) ## %bb.19: ## in Loop: Header=BB0_17 Depth=1 movl -76(%rbp), %eax addl $1, %eax movl %eax, -76(%rbp) jmp LBB0_17 LBB0_20: cmpl $0, -72(%rbp) je LBB0_35 ## %bb.21: movl $0, -76(%rbp) LBB0_22: ## =>This Inner Loop Header: Depth=1 movslq -76(%rbp), %rax movq %rax, -96(%rbp) ## 8-byte Spill movq -64(%rbp), %rdi callq _strlen movq %rax, %rcx movq -96(%rbp), %rax ## 8-byte Reload cmpq %rcx, %rax jae LBB0_28 ## %bb.23: ## in Loop: Header=BB0_22 Depth=1 movq -64(%rbp), %rax movslq -76(%rbp), %rcx movsbl (%rax,%rcx), %eax cmpl $48, %eax jne LBB0_25 ## %bb.24: ## in Loop: Header=BB0_22 Depth=1 movq -64(%rbp), %rax movslq -76(%rbp), %rcx movb $49, (%rax,%rcx) jmp LBB0_26 LBB0_25: ## in Loop: Header=BB0_22 Depth=1 movq -64(%rbp), %rax movslq -76(%rbp), %rcx movb $48, (%rax,%rcx) LBB0_26: ## in Loop: Header=BB0_22 Depth=1 jmp LBB0_27 LBB0_27: ## in Loop: Header=BB0_22 Depth=1 movl -76(%rbp), %eax addl $1, %eax movl %eax, -76(%rbp) jmp LBB0_22 LBB0_28: movq -64(%rbp), %rdi callq _strlen ## kill: def $eax killed $eax killed $rax movl %eax, -68(%rbp) movq -64(%rbp), %rax movslq -68(%rbp), %rcx movsbl (%rax,%rcx), %eax cmpl $48, %eax jne LBB0_30 ## %bb.29: movq -64(%rbp), %rax movslq -68(%rbp), %rcx movb $49, (%rax,%rcx) jmp LBB0_34 LBB0_30: movl -68(%rbp), %eax subl $1, %eax movl %eax, -84(%rbp) LBB0_31: ## =>This Inner Loop Header: Depth=1 movq -64(%rbp), %rax movslq -84(%rbp), %rcx movsbl (%rax,%rcx), %eax cmpl $48, %eax je LBB0_33 ## %bb.32: ## in Loop: Header=BB0_31 Depth=1 movq -64(%rbp), %rax movslq -84(%rbp), %rcx movb $48, (%rax,%rcx) movl -84(%rbp), %eax addl $-1, %eax movl %eax, -84(%rbp) jmp LBB0_31 LBB0_33: movq -64(%rbp), %rax movslq -84(%rbp), %rcx movb $49, (%rax,%rcx) LBB0_34: jmp LBB0_35 LBB0_35: movq -64(%rbp), %rax movq %rax, -104(%rbp) ## 8-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_37 ## %bb.36: movq -104(%rbp), %rax ## 8-byte Reload addq $112, %rsp popq %rbp retq LBB0_37: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl $0, -4(%rbp) movl %edi, -8(%rbp) movq %rsi, -16(%rbp) movl $9, -20(%rbp) LBB1_1: ## =>This Inner Loop Header: Depth=1 leaq L_.str(%rip), %rdi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi leaq -20(%rbp), %rsi movb $0, %al callq _scanf movl -20(%rbp), %edi movl $12, %esi callq _converte_n_bin movq %rax, -32(%rbp) movl -20(%rbp), %esi movq -32(%rbp), %rdx leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf movq -32(%rbp), %rdi callq _free ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 movb $1, %al testb $1, %al jne LBB1_1 jmp LBB1_3 LBB1_3: xorl %eax, %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "\nDigite um n\303\272mero inteiro\n" L_.str.1: ## @.str.1 .asciz "%d" L_.str.2: ## @.str.2 .asciz "Bin(%d) = %s\n" .subsections_via_symbols
the_stack_data/67326158.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _arraySize ; -- Begin function arraySize .p2align 2 _arraySize: ; @arraySize .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, #24] str wzr, [sp, #20] ldr x8, [sp, #24] str x8, [sp, #8] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #8] add x9, x8, #8 str x9, [sp, #8] ldr x8, [x8] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #20] add w8, w8, #1 str w8, [sp, #20] b LBB0_1 LBB0_3: ldr w0, [sp, #20] add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _printArray ; -- Begin function printArray .p2align 2 _printArray: ; @printArray .cfi_startproc ; %bb.0: sub sp, sp, #80 .cfi_def_cfa_offset 80 stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp, #64 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] stur x1, [x29, #-16] ldur x0, [x29, #-8] bl _arraySize stur w0, [x29, #-20] ldur x8, [x29, #-8] ldursw x9, [x29, #-20] add x11, x8, x9, lsl #3 ldur x10, [x29, #-16] ldur w9, [x29, #-20] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x11, [x9] str x10, [x9, #8] str x8, [x9, #16] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldur x8, [x29, #-8] ldur w9, [x29, #-20] subs w9, w9, #1 add x13, x8, w9, sxtw #3 ldur x11, [x29, #-16] ldur w8, [x29, #-20] subs w12, w8, #1 ldur x8, [x29, #-8] ldur w9, [x29, #-20] subs w9, w9, #1 ldr x10, [x8, w9, sxtw #3] ldur x8, [x29, #-8] ldur w9, [x29, #-20] subs w9, w9, #1 ldr x8, [x8, w9, sxtw #3] mov x9, sp str x13, [x9] str x11, [x9, #8] ; implicit-def: $x11 mov x11, x12 str x11, [x9, #16] str x10, [x9, #24] str x8, [x9, #32] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf ldur x12, [x29, #-8] ldur x11, [x29, #-16] ldur x8, [x29, #-8] ldr x10, [x8] ldur x8, [x29, #-8] ldr x8, [x8] mov x9, sp str x12, [x9] str x11, [x9, #8] str x10, [x9, #16] str x8, [x9, #24] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #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, _environ@GOTPAGE ldr x8, [x8, _environ@GOTPAGEOFF] str x8, [sp, #40] ; 8-byte Folded Spill str x8, [sp, #32] ; 8-byte Folded Spill stur wzr, [x29, #-4] stur w0, [x29, #-8] stur x1, [x29, #-16] stur x2, [x29, #-24] adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf ldur x0, [x29, #-24] adrp x1, l_.str.5@PAGE add x1, x1, l_.str.5@PAGEOFF bl _printArray ldr x8, [sp, #40] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.6@PAGE add x1, x1, l_.str.6@PAGEOFF bl _printArray 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 mov w2, #1 bl _setenv subs w8, w0, #0 cset w8, ge tbnz w8, #0, LBB2_2 b LBB2_1 LBB2_1: mov w0, #1 adrp x1, l_.str.9@PAGE add x1, x1, l_.str.9@PAGEOFF bl _err LBB2_2: adrp x0, l_.str.10@PAGE add x0, x0, l_.str.10@PAGEOFF bl _printf ldur x0, [x29, #-24] adrp x1, l_.str.5@PAGE add x1, x1, l_.str.5@PAGEOFF bl _printArray ldr x8, [sp, #40] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.6@PAGE add x1, x1, l_.str.6@PAGEOFF bl _printArray adrp x0, l_.str.11@PAGE add x0, x0, l_.str.11@PAGEOFF bl _putenv subs w8, w0, #0 cset w8, ge tbnz w8, #0, LBB2_4 b LBB2_3 LBB2_3: mov w0, #1 adrp x1, l_.str.12@PAGE add x1, x1, l_.str.12@PAGEOFF bl _err LBB2_4: adrp x0, l_.str.13@PAGE add x0, x0, l_.str.13@PAGEOFF bl _printf sub x8, x29, #24 str x8, [sp, #24] ; 8-byte Folded Spill ldur x0, [x29, #-24] adrp x1, l_.str.5@PAGE add x1, x1, l_.str.5@PAGEOFF bl _printArray ldr x8, [sp, #40] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.6@PAGE add x1, x1, l_.str.6@PAGEOFF bl _printArray 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 sub x8, x29, #8 mov x9, sp str x8, [x9] adrp x0, l_.str.16@PAGE add x0, x0, l_.str.16@PAGEOFF bl _printf sub x8, x29, #16 mov x9, sp str x8, [x9] adrp x0, l_.str.17@PAGE add x0, x0, l_.str.17@PAGEOFF bl _printf ldr x8, [sp, #24] ; 8-byte Folded Reload mov x9, sp str x8, [x9] adrp x0, l_.str.18@PAGE add x0, x0, l_.str.18@PAGEOFF bl _printf adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf adrp x0, l_.str.19@PAGE add x0, x0, l_.str.19@PAGEOFF bl _printf adrp x0, l_.str.20@PAGE add x0, x0, l_.str.20@PAGEOFF bl _printf mov x0, #32 bl _malloc mov x8, x0 stur x8, [x29, #-32] subs x8, x0, #0 cset w8, ne tbnz w8, #0, LBB2_6 b LBB2_5 LBB2_5: mov w0, #1 adrp x1, l_.str.21@PAGE add x1, x1, l_.str.21@PAGEOFF bl _err LBB2_6: ldur x8, [x29, #-32] add x8, x8, #32 mov x9, sp str x8, [x9] adrp x0, l_.str.22@PAGE add x0, x0, l_.str.22@PAGEOFF bl _printf ldur x8, [x29, #-32] mov x9, sp str x8, [x9] adrp x0, l_.str.23@PAGE add x0, x0, l_.str.23@PAGEOFF bl _printf ldur x0, [x29, #-32] bl _free adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF str x0, [sp, #16] ; 8-byte Folded Spill bl _printf 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, #32] ; 8-byte Folded Reload mov x9, sp str x8, [x9] adrp x0, l_.str.26@PAGE add x0, x0, l_.str.26@PAGEOFF bl _printf ldr x0, [sp, #16] ; 8-byte Folded Reload bl _printf 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 "0x%12lX %-7s[%d]\n" l_.str.1: ; @.str.1 .asciz "0x%12lX %-7s[%d] (0x%12lX '%s')\n" l_.str.2: ; @.str.2 .asciz "0x%12lX %-7s[0] (0x%12lX '%s')\n" l_.str.3: ; @.str.3 .asciz "\n" l_.str.4: ; @.str.4 .asciz "At program start:\n" l_.str.5: ; @.str.5 .asciz "envp" l_.str.6: ; @.str.6 .asciz "environ" l_.str.7: ; @.str.7 .asciz "FOO" l_.str.8: ; @.str.8 .asciz "a longer value" l_.str.9: ; @.str.9 .asciz "unable to setenv(3)" l_.str.10: ; @.str.10 .asciz "After setenv(3):\n" l_.str.11: ; @.str.11 .asciz "BAR=another variable" l_.str.12: ; @.str.12 .asciz "unable to putenv(3)" l_.str.13: ; @.str.13 .asciz "After putenv(3):\n" l_.str.14: ; @.str.14 .asciz "Stack:\n" l_.str.15: ; @.str.15 .asciz "------\n" l_.str.16: ; @.str.16 .asciz "0x%12lX int argc\n" l_.str.17: ; @.str.17 .asciz "0x%12lX char **argv\n" l_.str.18: ; @.str.18 .asciz "0x%12lX char **envp\n" l_.str.19: ; @.str.19 .asciz "Heap:\n" l_.str.20: ; @.str.20 .asciz "-----\n" l_.str.21: ; @.str.21 .asciz "unable to allocate memory" l_.str.22: ; @.str.22 .asciz "0x%12lX malloced area ends\n" l_.str.23: ; @.str.23 .asciz "0x%12lX malloced area begins\n" l_.str.24: ; @.str.24 .asciz "Uninitialized Data (BSS):\n" l_.str.25: ; @.str.25 .asciz "-------------------------\n" l_.str.26: ; @.str.26 .asciz "0x%12lX extern char **environ\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _arraySize ## -- Begin function arraySize .p2align 4, 0x90 _arraySize: ## @arraySize .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) movl $0, -12(%rbp) movq -8(%rbp), %rax movq %rax, -24(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movq -24(%rbp), %rax movq %rax, %rcx addq $8, %rcx movq %rcx, -24(%rbp) cmpq $0, (%rax) je LBB0_3 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB0_1 LBB0_3: movl -12(%rbp), %eax 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 $32, %rsp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) movq -8(%rbp), %rdi callq _arraySize movl %eax, -20(%rbp) movq -8(%rbp), %rsi movslq -20(%rbp), %rax shlq $3, %rax addq %rax, %rsi movq -16(%rbp), %rdx movl -20(%rbp), %ecx leaq L_.str(%rip), %rdi movb $0, %al callq _printf movq -8(%rbp), %rsi movl -20(%rbp), %eax subl $1, %eax cltq shlq $3, %rax addq %rax, %rsi movq -16(%rbp), %rdx movl -20(%rbp), %ecx subl $1, %ecx movq -8(%rbp), %rax movl -20(%rbp), %edi subl $1, %edi movslq %edi, %rdi movq (%rax,%rdi,8), %r8 movq -8(%rbp), %rax movl -20(%rbp), %edi subl $1, %edi movslq %edi, %rdi movq (%rax,%rdi,8), %r9 leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf movq -8(%rbp), %rsi movq -16(%rbp), %rdx movq -8(%rbp), %rax movq (%rax), %rcx movq -8(%rbp), %rax movq (%rax), %r8 leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl $0, -4(%rbp) movl %edi, -8(%rbp) movq %rsi, -16(%rbp) movq %rdx, -24(%rbp) leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf movq -24(%rbp), %rdi leaq L_.str.5(%rip), %rsi callq _printArray movq _environ@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.6(%rip), %rsi callq _printArray leaq L_.str.7(%rip), %rdi leaq L_.str.8(%rip), %rsi movl $1, %edx callq _setenv cmpl $0, %eax jge LBB2_2 ## %bb.1: leaq L_.str.9(%rip), %rsi xorl %eax, %eax ## kill: def $al killed $al killed $eax movl $1, %edi callq _err LBB2_2: leaq L_.str.10(%rip), %rdi movb $0, %al callq _printf movq -24(%rbp), %rdi leaq L_.str.5(%rip), %rsi callq _printArray movq _environ@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.6(%rip), %rsi callq _printArray leaq L_.str.11(%rip), %rdi callq _putenv cmpl $0, %eax jge LBB2_4 ## %bb.3: leaq L_.str.12(%rip), %rsi xorl %eax, %eax ## kill: def $al killed $al killed $eax movl $1, %edi callq _err LBB2_4: leaq L_.str.13(%rip), %rdi movb $0, %al callq _printf movq -24(%rbp), %rdi leaq L_.str.5(%rip), %rsi callq _printArray movq _environ@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.6(%rip), %rsi callq _printArray leaq L_.str.14(%rip), %rdi movb $0, %al callq _printf leaq L_.str.15(%rip), %rdi movb $0, %al callq _printf leaq -8(%rbp), %rsi leaq L_.str.16(%rip), %rdi movb $0, %al callq _printf leaq -16(%rbp), %rsi leaq L_.str.17(%rip), %rdi movb $0, %al callq _printf leaq -24(%rbp), %rsi leaq L_.str.18(%rip), %rdi movb $0, %al callq _printf leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf leaq L_.str.19(%rip), %rdi movb $0, %al callq _printf leaq L_.str.20(%rip), %rdi movb $0, %al callq _printf movl $32, %edi callq _malloc movq %rax, -32(%rbp) cmpq $0, %rax jne LBB2_6 ## %bb.5: leaq L_.str.21(%rip), %rsi xorl %eax, %eax ## kill: def $al killed $al killed $eax movl $1, %edi callq _err LBB2_6: movq -32(%rbp), %rsi addq $32, %rsi leaq L_.str.22(%rip), %rdi movb $0, %al callq _printf movq -32(%rbp), %rsi leaq L_.str.23(%rip), %rdi movb $0, %al callq _printf movq -32(%rbp), %rdi callq _free leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf leaq L_.str.24(%rip), %rdi movb $0, %al callq _printf leaq L_.str.25(%rip), %rdi movb $0, %al callq _printf leaq L_.str.26(%rip), %rdi movq _environ@GOTPCREL(%rip), %rsi movb $0, %al callq _printf leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf xorl %eax, %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "0x%12lX %-7s[%d]\n" L_.str.1: ## @.str.1 .asciz "0x%12lX %-7s[%d] (0x%12lX '%s')\n" L_.str.2: ## @.str.2 .asciz "0x%12lX %-7s[0] (0x%12lX '%s')\n" L_.str.3: ## @.str.3 .asciz "\n" L_.str.4: ## @.str.4 .asciz "At program start:\n" L_.str.5: ## @.str.5 .asciz "envp" L_.str.6: ## @.str.6 .asciz "environ" L_.str.7: ## @.str.7 .asciz "FOO" L_.str.8: ## @.str.8 .asciz "a longer value" L_.str.9: ## @.str.9 .asciz "unable to setenv(3)" L_.str.10: ## @.str.10 .asciz "After setenv(3):\n" L_.str.11: ## @.str.11 .asciz "BAR=another variable" L_.str.12: ## @.str.12 .asciz "unable to putenv(3)" L_.str.13: ## @.str.13 .asciz "After putenv(3):\n" L_.str.14: ## @.str.14 .asciz "Stack:\n" L_.str.15: ## @.str.15 .asciz "------\n" L_.str.16: ## @.str.16 .asciz "0x%12lX int argc\n" L_.str.17: ## @.str.17 .asciz "0x%12lX char **argv\n" L_.str.18: ## @.str.18 .asciz "0x%12lX char **envp\n" L_.str.19: ## @.str.19 .asciz "Heap:\n" L_.str.20: ## @.str.20 .asciz "-----\n" L_.str.21: ## @.str.21 .asciz "unable to allocate memory" L_.str.22: ## @.str.22 .asciz "0x%12lX malloced area ends\n" L_.str.23: ## @.str.23 .asciz "0x%12lX malloced area begins\n" L_.str.24: ## @.str.24 .asciz "Uninitialized Data (BSS):\n" L_.str.25: ## @.str.25 .asciz "-------------------------\n" L_.str.26: ## @.str.26 .asciz "0x%12lX extern char **environ\n" .subsections_via_symbols
the_stack_data/707300.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _get_bar ; -- Begin function get_bar .p2align 2 _get_bar: ; @get_bar .cfi_startproc ; %bb.0: adrp x0, _bar@GOTPAGE ldr x0, [x0, _bar@GOTPAGEOFF] 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] bl _get_bar subs x8, x0, #42 cset w8, ne tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf b LBB1_2 LBB1_2: 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 "PASS\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _get_bar ## -- Begin function get_bar .p2align 4, 0x90 _get_bar: ## @get_bar .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq _bar@GOTPCREL(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) callq _get_bar cmpq $42, %rax jne LBB1_2 ## %bb.1: leaq L_.str(%rip), %rdi movb $0, %al callq _printf LBB1_2: xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "PASS\n" .subsections_via_symbols
the_stack_data/25137181.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _thr1 ; -- Begin function thr1 .p2align 2 _thr1: ; @thr1 .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] adrp x9, _y@GOTPAGE ldr x9, [x9, _y@GOTPAGEOFF] mov w8, #1 str w8, [x9] adrp x8, _x@PAGE ldr w8, [x8, _x@PAGEOFF] subs w8, w8, #0 cset w9, eq ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: adrp x0, l___func__.thr1@PAGE add x0, x0, l___func__.thr1@PAGEOFF adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF mov w2, #12 adrp x3, l_.str.1@PAGE add x3, x3, l_.str.1@PAGEOFF bl ___assert_rtn LBB0_2: b LBB0_3 LBB0_3: ldr x0, [sp, #8] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: 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 x9, _x@PAGE mov w8, #1 str w8, [x9, _x@PAGEOFF] mov x3, #0 mov x0, x3 mov x1, x3 adrp x2, _thr1@PAGE add x2, x2, _thr1@PAGEOFF bl _pthread_create mov w0, #0 ldp x29, x30, [sp], #16 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .globl _x ; @x .zerofill __DATA,__common,_x,4,2 .comm _y,4,2 ; @y .section __TEXT,__cstring,cstring_literals l___func__.thr1: ; @__func__.thr1 .asciz "thr1" l_.str: ; @.str .asciz "1037631.c" l_.str.1: ; @.str.1 .asciz "x != 0" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _thr1 ## -- Begin function thr1 .p2align 4, 0x90 _thr1: ## @thr1 .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 _y@GOTPCREL(%rip), %rax movl $1, (%rax) cmpl $0, _x(%rip) setne %al xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB0_2 ## %bb.1: leaq L___func__.thr1(%rip), %rdi leaq L_.str(%rip), %rsi leaq L_.str.1(%rip), %rcx movl $12, %edx callq ___assert_rtn LBB0_2: jmp LBB0_3 LBB0_3: movq -8(%rbp), %rax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl $1, _x(%rip) xorl %eax, %eax movl %eax, %ecx leaq _thr1(%rip), %rdx movq %rcx, %rdi movq %rcx, %rsi callq _pthread_create xorl %eax, %eax popq %rbp retq .cfi_endproc ## -- End function .globl _x ## @x .zerofill __DATA,__common,_x,4,2 .comm _y,4,2 ## @y .section __TEXT,__cstring,cstring_literals L___func__.thr1: ## @__func__.thr1 .asciz "thr1" L_.str: ## @.str .asciz "1037631.c" L_.str.1: ## @.str.1 .asciz "x != 0" .subsections_via_symbols
the_stack_data/1037631.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/104828940.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _append ; -- Begin function append .p2align 2 _append: ; @append .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, #-1] mov x0, #8 bl _malloc str x0, [sp, #16] ldurb w8, [x29, #-1] ldr x9, [sp, #16] strb w8, [x9] ldr x8, [sp, #16] ; kill: def $x9 killed $xzr str xzr, [x8, #8] adrp x8, _this@PAGE ldr x8, [x8, _this@PAGEOFF] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: ldr x8, [sp, #16] adrp x9, _this@PAGE str x8, [x9, _this@PAGEOFF] b LBB0_6 LBB0_2: adrp x8, _this@PAGE ldr x8, [x8, _this@PAGEOFF] str x8, [sp, #8] b LBB0_3 LBB0_3: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #8] ldr x8, [x8, #8] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB0_5 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_3 Depth=1 ldr x8, [sp, #8] ldr x8, [x8, #8] str x8, [sp, #8] b LBB0_3 LBB0_5: ldr x8, [sp, #16] ldr x9, [sp, #8] str x8, [x9, #8] b LBB0_6 LBB0_6: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _append_ ; -- Begin function append_ .p2align 2 _append_: ; @append_ .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] mov x0, #8 bl _malloc str x0, [sp, #16] ; kill: def $x8 killed $xzr str xzr, [sp, #8] b LBB1_1 LBB1_1: ; =>This Inner Loop Header: Depth=1 ldur x8, [x29, #-8] ldrsb w8, [x8] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB1_3 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 ldur x8, [x29, #-8] add x9, x8, #1 stur x9, [x29, #-8] ldrsb w0, [x8] bl _append b LBB1_1 LBB1_3: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _tostring ; -- Begin function tostring .p2align 2 _tostring: ; @tostring .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, _this@PAGE ldr x8, [x8, _this@PAGEOFF] str x8, [sp, #8] b LBB2_1 LBB2_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #8] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB2_3 b LBB2_2 LBB2_2: ; in Loop: Header=BB2_1 Depth=1 ldr x8, [sp, #8] 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 ldr x8, [sp, #8] ldr x8, [x8, #8] str x8, [sp, #8] b LBB2_1 LBB2_3: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _count ; -- Begin function count .p2align 2 _count: ; @count .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 adrp x8, _this@PAGE ldr x8, [x8, _this@PAGEOFF] str x8, [sp, #8] str wzr, [sp, #4] 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 w8, [sp, #4] add w8, w8, #1 str w8, [sp, #4] ldr x8, [sp, #8] ldr x8, [x8, #8] str x8, [sp, #8] b LBB3_1 LBB3_3: ldr w0, [sp, #4] add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _new ; -- Begin function new .p2align 2 _new: ; @new .cfi_startproc ; %bb.0: stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill .cfi_def_cfa_offset 16 mov x29, sp .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov x0, #48 bl _malloc adrp x8, _this@PAGE str x0, [x8, _this@PAGEOFF] ldr x10, [x8, _this@PAGEOFF] adrp x9, _append@PAGE add x9, x9, _append@PAGEOFF str x9, [x10, #16] ldr x10, [x8, _this@PAGEOFF] adrp x9, _append_@PAGE add x9, x9, _append_@PAGEOFF str x9, [x10, #24] ldr x10, [x8, _this@PAGEOFF] adrp x9, _tostring@PAGE add x9, x9, _tostring@PAGEOFF str x9, [x10, #32] ldr x10, [x8, _this@PAGEOFF] adrp x9, _count@PAGE add x9, x9, _count@PAGEOFF str x9, [x10, #40] ldr x0, [x8, _this@PAGEOFF] ldp x29, x30, [sp], #16 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #0 stur w8, [x29, #-8] ; 4-byte Folded Spill stur wzr, [x29, #-4] bl _new adrp x8, _this@PAGE str x8, [sp, #16] ; 8-byte Folded Spill str x0, [x8, _this@PAGEOFF] ldr x8, [x8, _this@PAGEOFF] ldr x8, [x8, #16] mov w0, #65 str w0, [sp, #12] ; 4-byte Folded Spill blr x8 ldr w0, [sp, #12] ; 4-byte Folded Reload ldr x8, [sp, #16] ; 8-byte Folded Reload ldr x8, [x8, _this@PAGEOFF] ldr x8, [x8, #16] blr x8 ldr w0, [sp, #12] ; 4-byte Folded Reload ldr x8, [sp, #16] ; 8-byte Folded Reload ldr x8, [x8, _this@PAGEOFF] ldr x8, [x8, #16] blr x8 ldr w0, [sp, #12] ; 4-byte Folded Reload ldr x8, [sp, #16] ; 8-byte Folded Reload ldr x8, [x8, _this@PAGEOFF] ldr x8, [x8, #16] blr x8 ldr w0, [sp, #12] ; 4-byte Folded Reload ldr x8, [sp, #16] ; 8-byte Folded Reload ldr x8, [x8, _this@PAGEOFF] ldr x8, [x8, #16] blr x8 ldr x8, [sp, #16] ; 8-byte Folded Reload ldr x8, [x8, _this@PAGEOFF] ldr x8, [x8, #16] mov w0, #32 blr x8 ldr x8, [sp, #16] ; 8-byte Folded Reload ldr x8, [x8, _this@PAGEOFF] ldr x8, [x8, #24] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF blr x8 ldr x8, [sp, #16] ; 8-byte Folded Reload ldr x8, [x8, _this@PAGEOFF] ldr x8, [x8, #24] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF blr x8 ldr x8, [sp, #16] ; 8-byte Folded Reload ldr x8, [x8, _this@PAGEOFF] ldr x8, [x8, #32] blr x8 ldr x8, [sp, #16] ; 8-byte Folded Reload ldr x8, [x8, _this@PAGEOFF] ldr x8, [x8, #40] blr x8 mov x9, sp ; implicit-def: $x8 mov x8, x0 str x8, [x9] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf ldur w0, [x29, #-8] ; 4-byte Folded Reload ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _this ; @this .zerofill __DATA,__common,_this,8,3 .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%c" l_.str.1: ; @.str.1 .asciz "\nAbdellah" l_.str.2: ; @.str.2 .asciz " Oulahyane" l_.str.3: ; @.str.3 .asciz "\nThe counter is %d\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _append ## -- Begin function append .p2align 4, 0x90 _append: ## @append .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movb %dil, %al movb %al, -1(%rbp) movl $8, %edi callq _malloc movq %rax, -16(%rbp) movb -1(%rbp), %cl movq -16(%rbp), %rax movb %cl, (%rax) movq -16(%rbp), %rax movq $0, 8(%rax) cmpq $0, _this(%rip) jne LBB0_2 ## %bb.1: movq -16(%rbp), %rax movq %rax, _this(%rip) jmp LBB0_6 LBB0_2: movq _this(%rip), %rax movq %rax, -24(%rbp) LBB0_3: ## =>This Inner Loop Header: Depth=1 movq -24(%rbp), %rax cmpq $0, 8(%rax) je LBB0_5 ## %bb.4: ## in Loop: Header=BB0_3 Depth=1 movq -24(%rbp), %rax movq 8(%rax), %rax movq %rax, -24(%rbp) jmp LBB0_3 LBB0_5: movq -16(%rbp), %rcx movq -24(%rbp), %rax movq %rcx, 8(%rax) LBB0_6: addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _append_ ## -- Begin function append_ .p2align 4, 0x90 _append_: ## @append_ .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movl $8, %edi callq _malloc movq %rax, -16(%rbp) movq $0, -24(%rbp) LBB1_1: ## =>This Inner Loop Header: Depth=1 movq -8(%rbp), %rax movsbl (%rax), %eax cmpl $0, %eax je LBB1_3 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 movq -8(%rbp), %rax movq %rax, %rcx addq $1, %rcx movq %rcx, -8(%rbp) movsbl (%rax), %edi callq _append jmp LBB1_1 LBB1_3: addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _tostring ## -- Begin function tostring .p2align 4, 0x90 _tostring: ## @tostring .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 _this(%rip), %rax movq %rax, -8(%rbp) LBB2_1: ## =>This Inner Loop Header: Depth=1 cmpq $0, -8(%rbp) je LBB2_3 ## %bb.2: ## in Loop: Header=BB2_1 Depth=1 movq -8(%rbp), %rax movsbl (%rax), %esi leaq L_.str(%rip), %rdi movb $0, %al callq _printf movq -8(%rbp), %rax movq 8(%rax), %rax movq %rax, -8(%rbp) jmp LBB2_1 LBB2_3: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _count ## -- Begin function count .p2align 4, 0x90 _count: ## @count .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq _this(%rip), %rax movq %rax, -8(%rbp) movl $0, -12(%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 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) movq -8(%rbp), %rax movq 8(%rax), %rax movq %rax, -8(%rbp) jmp LBB3_1 LBB3_3: movl -12(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .globl _new ## -- Begin function new .p2align 4, 0x90 _new: ## @new .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl $48, %edi callq _malloc movq %rax, _this(%rip) movq _this(%rip), %rax leaq _append(%rip), %rcx movq %rcx, 16(%rax) movq _this(%rip), %rax leaq _append_(%rip), %rcx movq %rcx, 24(%rax) movq _this(%rip), %rax leaq _tostring(%rip), %rcx movq %rcx, 32(%rax) movq _this(%rip), %rax leaq _count(%rip), %rcx movq %rcx, 40(%rax) movq _this(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) callq _new movq %rax, _this(%rip) movq _this(%rip), %rax movl $65, %edi callq *16(%rax) movq _this(%rip), %rax movl $65, %edi callq *16(%rax) movq _this(%rip), %rax movl $65, %edi callq *16(%rax) movq _this(%rip), %rax movl $65, %edi callq *16(%rax) movq _this(%rip), %rax movl $65, %edi callq *16(%rax) movq _this(%rip), %rax movl $32, %edi callq *16(%rax) movq _this(%rip), %rax leaq L_.str.1(%rip), %rdi callq *24(%rax) movq _this(%rip), %rax leaq L_.str.2(%rip), %rdi callq *24(%rax) movq _this(%rip), %rcx movb $0, %al callq *32(%rcx) movq _this(%rip), %rcx movb $0, %al callq *40(%rcx) movl %eax, %esi leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _this ## @this .zerofill __DATA,__common,_this,8,3 .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%c" L_.str.1: ## @.str.1 .asciz "\nAbdellah" L_.str.2: ## @.str.2 .asciz " Oulahyane" L_.str.3: ## @.str.3 .asciz "\nThe counter is %d\n" .subsections_via_symbols
the_stack_data/61075202.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _scilab_rt_pie_d2d2_ ; -- Begin function scilab_rt_pie_d2d2_ .p2align 2 _scilab_rt_pie_d2d2_: ; @scilab_rt_pie_d2d2_ .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 w0, [x29, #-4] stur w1, [x29, #-8] stur x2, [x29, #-16] stur w3, [x29, #-20] stur w4, [x29, #-24] stur x5, [x29, #-32] ldur w8, [x29, #-8] ; kill: def $x8 killed $w8 str x8, [sp, #8] ; 8-byte Folded Spill ldur w8, [x29, #-24] ; kill: def $x8 killed $w8 str x8, [sp, #16] ; 8-byte Folded Spill movi d0, #0000000000000000 str d0, [sp, #32] str d0, [sp, #24] stur wzr, [x29, #-36] b LBB0_1 LBB0_1: ; =>This Loop Header: Depth=1 ; Child Loop BB0_3 Depth 2 ldur w8, [x29, #-36] ldur w9, [x29, #-4] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_8 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 str wzr, [sp, #40] b LBB0_3 LBB0_3: ; Parent Loop BB0_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #40] ldur w9, [x29, #-8] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_6 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_3 Depth=2 ldr x10, [sp, #8] ; 8-byte Folded Reload ldur x8, [x29, #-16] ldursw x9, [x29, #-36] mul x9, x9, x10 add x8, x8, x9, lsl #3 ldrsw x9, [sp, #40] ldr d1, [x8, x9, lsl #3] ldr d0, [sp, #32] fadd d0, d0, d1 str d0, [sp, #32] b LBB0_5 LBB0_5: ; in Loop: Header=BB0_3 Depth=2 ldr w8, [sp, #40] add w8, w8, #1 str w8, [sp, #40] b LBB0_3 LBB0_6: ; in Loop: Header=BB0_1 Depth=1 b LBB0_7 LBB0_7: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-36] add w8, w8, #1 stur w8, [x29, #-36] b LBB0_1 LBB0_8: ldr d0, [sp, #32] mov x8, sp str d0, [x8] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf stur wzr, [x29, #-36] b LBB0_9 LBB0_9: ; =>This Loop Header: Depth=1 ; Child Loop BB0_11 Depth 2 ldur w8, [x29, #-36] ldur w9, [x29, #-20] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_16 b LBB0_10 LBB0_10: ; in Loop: Header=BB0_9 Depth=1 str wzr, [sp, #40] b LBB0_11 LBB0_11: ; Parent Loop BB0_9 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #40] ldur w9, [x29, #-24] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_14 b LBB0_12 LBB0_12: ; in Loop: Header=BB0_11 Depth=2 ldr x10, [sp, #16] ; 8-byte Folded Reload ldur x8, [x29, #-32] ldursw x9, [x29, #-36] mul x9, x9, x10 add x8, x8, x9, lsl #3 ldrsw x9, [sp, #40] ldr d1, [x8, x9, lsl #3] ldr d0, [sp, #24] fadd d0, d0, d1 str d0, [sp, #24] b LBB0_13 LBB0_13: ; in Loop: Header=BB0_11 Depth=2 ldr w8, [sp, #40] add w8, w8, #1 str w8, [sp, #40] b LBB0_11 LBB0_14: ; in Loop: Header=BB0_9 Depth=1 b LBB0_15 LBB0_15: ; in Loop: Header=BB0_9 Depth=1 ldur w8, [x29, #-36] add w8, w8, #1 stur w8, [x29, #-36] b LBB0_9 LBB0_16: ldr d0, [sp, #24] mov x8, sp str d0, [x8] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf 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 "%f" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _scilab_rt_pie_d2d2_ ## -- Begin function scilab_rt_pie_d2d2_ .p2align 4, 0x90 _scilab_rt_pie_d2d2_: ## @scilab_rt_pie_d2d2_ .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 %edi, -4(%rbp) movl %esi, -8(%rbp) movq %rdx, -16(%rbp) movl %ecx, -20(%rbp) movl %r8d, -24(%rbp) movq %r9, -32(%rbp) movl -8(%rbp), %eax ## kill: def $rax killed $eax movq %rax, -72(%rbp) ## 8-byte Spill movl -24(%rbp), %eax ## kill: def $rax killed $eax movq %rax, -64(%rbp) ## 8-byte Spill xorps %xmm0, %xmm0 movsd %xmm0, -48(%rbp) xorps %xmm0, %xmm0 movsd %xmm0, -56(%rbp) movl $0, -36(%rbp) LBB0_1: ## =>This Loop Header: Depth=1 ## Child Loop BB0_3 Depth 2 movl -36(%rbp), %eax cmpl -4(%rbp), %eax jge LBB0_8 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl $0, -40(%rbp) LBB0_3: ## Parent Loop BB0_1 Depth=1 ## => This Inner Loop Header: Depth=2 movl -40(%rbp), %eax cmpl -8(%rbp), %eax jge LBB0_6 ## %bb.4: ## in Loop: Header=BB0_3 Depth=2 movq -72(%rbp), %rdx ## 8-byte Reload movq -16(%rbp), %rax movslq -36(%rbp), %rcx imulq %rdx, %rcx shlq $3, %rcx addq %rcx, %rax movslq -40(%rbp), %rcx movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero addsd -48(%rbp), %xmm0 movsd %xmm0, -48(%rbp) ## %bb.5: ## in Loop: Header=BB0_3 Depth=2 movl -40(%rbp), %eax addl $1, %eax movl %eax, -40(%rbp) jmp LBB0_3 LBB0_6: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_7 LBB0_7: ## in Loop: Header=BB0_1 Depth=1 movl -36(%rbp), %eax addl $1, %eax movl %eax, -36(%rbp) jmp LBB0_1 LBB0_8: movsd -48(%rbp), %xmm0 ## xmm0 = mem[0],zero leaq L_.str(%rip), %rdi movb $1, %al callq _printf movl $0, -36(%rbp) LBB0_9: ## =>This Loop Header: Depth=1 ## Child Loop BB0_11 Depth 2 movl -36(%rbp), %eax cmpl -20(%rbp), %eax jge LBB0_16 ## %bb.10: ## in Loop: Header=BB0_9 Depth=1 movl $0, -40(%rbp) LBB0_11: ## Parent Loop BB0_9 Depth=1 ## => This Inner Loop Header: Depth=2 movl -40(%rbp), %eax cmpl -24(%rbp), %eax jge LBB0_14 ## %bb.12: ## in Loop: Header=BB0_11 Depth=2 movq -64(%rbp), %rdx ## 8-byte Reload movq -32(%rbp), %rax movslq -36(%rbp), %rcx imulq %rdx, %rcx shlq $3, %rcx addq %rcx, %rax movslq -40(%rbp), %rcx movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero addsd -56(%rbp), %xmm0 movsd %xmm0, -56(%rbp) ## %bb.13: ## in Loop: Header=BB0_11 Depth=2 movl -40(%rbp), %eax addl $1, %eax movl %eax, -40(%rbp) jmp LBB0_11 LBB0_14: ## in Loop: Header=BB0_9 Depth=1 jmp LBB0_15 LBB0_15: ## in Loop: Header=BB0_9 Depth=1 movl -36(%rbp), %eax addl $1, %eax movl %eax, -36(%rbp) jmp LBB0_9 LBB0_16: movsd -56(%rbp), %xmm0 ## xmm0 = mem[0],zero leaq L_.str(%rip), %rdi movb $1, %al callq _printf addq $80, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%f" .subsections_via_symbols
the_stack_data/18842.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _strip ; -- Begin function strip .p2align 2 _strip: ; @strip .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] ldur x0, [x29, #-16] bl _strlen mov x8, x0 stur w8, [x29, #-20] stur wzr, [x29, #-24] stur wzr, [x29, #-28] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-28] ldur w9, [x29, #-20] subs w8, w8, w9 cset w8, ge mov w9, #0 str w9, [sp, #12] ; 4-byte Folded Spill tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldur x8, [x29, #-16] ldursw x9, [x29, #-28] ldrsb w8, [x8, x9] subs w8, w8, #32 cset w8, eq str w8, [sp, #12] ; 4-byte Folded Spill b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #12] ; 4-byte Folded Reload tbz w8, #0, LBB0_5 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-24] add w8, w8, #1 stur w8, [x29, #-24] ldur w8, [x29, #-28] add w8, w8, #1 stur w8, [x29, #-28] b LBB0_1 LBB0_5: ldur w8, [x29, #-20] subs w8, w8, #1 str w8, [sp, #32] b LBB0_6 LBB0_6: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #32] subs w8, w8, #0 cset w8, lt mov w9, #0 str w9, [sp, #8] ; 4-byte Folded Spill tbnz w8, #0, LBB0_8 b LBB0_7 LBB0_7: ; in Loop: Header=BB0_6 Depth=1 ldur x8, [x29, #-16] ldrsw x9, [sp, #32] ldrsb w8, [x8, x9] subs w8, w8, #32 cset w8, eq str w8, [sp, #8] ; 4-byte Folded Spill b LBB0_8 LBB0_8: ; in Loop: Header=BB0_6 Depth=1 ldr w8, [sp, #8] ; 4-byte Folded Reload tbz w8, #0, LBB0_10 b LBB0_9 LBB0_9: ; in Loop: Header=BB0_6 Depth=1 ldur w8, [x29, #-24] add w8, w8, #1 stur w8, [x29, #-24] ldr w8, [sp, #32] subs w8, w8, #1 str w8, [sp, #32] b LBB0_6 LBB0_10: ldur w8, [x29, #-24] ldur w9, [x29, #-20] subs w8, w8, w9 cset w8, lt tbnz w8, #0, LBB0_12 b LBB0_11 LBB0_11: adrp x8, l_.str@PAGE add x8, x8, l_.str@PAGEOFF stur x8, [x29, #-8] b LBB0_17 LBB0_12: ldur w8, [x29, #-20] ldur w9, [x29, #-24] subs w8, w8, w9 add w9, w8, #1 ; implicit-def: $x8 mov x8, x9 sxtw x0, w8 mov x1, #1 bl _calloc str x0, [sp, #16] ldur w8, [x29, #-28] str w8, [sp, #28] b LBB0_13 LBB0_13: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #28] ldr w9, [sp, #32] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_16 b LBB0_14 LBB0_14: ; in Loop: Header=BB0_13 Depth=1 ldur x8, [x29, #-16] ldrsw x9, [sp, #28] add x8, x8, x9 ldrb w8, [x8] ldr x9, [sp, #16] ldr w10, [sp, #28] ldur w11, [x29, #-28] subs w10, w10, w11 add x9, x9, w10, sxtw strb w8, [x9] b LBB0_15 LBB0_15: ; in Loop: Header=BB0_13 Depth=1 ldr w8, [sp, #28] add w8, w8, #1 str w8, [sp, #28] b LBB0_13 LBB0_16: ldr x8, [sp, #16] ldr w9, [sp, #28] ldur w10, [x29, #-28] subs w9, w9, w10 add x8, x8, w9, sxtw strb wzr, [x8] ldr x8, [sp, #16] stur x8, [x29, #-8] b LBB0_17 LBB0_17: ldur x0, [x29, #-8] ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .globl _is_clean ; -- Begin function is_clean .p2align 2 _is_clean: ; @is_clean .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 _strip str x0, [sp, #16] ldur x0, [x29, #-8] ldr x1, [sp, #16] bl _strcmp str w0, [sp, #12] ldr x0, [sp, #16] bl _free ldr w8, [sp, #12] subs w8, w8, #0 cset w8, eq and w0, w8, #0x1 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #112 .cfi_def_cfa_offset 112 stp x29, x30, [sp, #96] ; 16-byte Folded Spill add x29, sp, #96 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] str wzr, [sp, #28] mov w8, #7 str w8, [sp, #20] add x0, sp, #32 adrp x1, l___const.main.strings@PAGE add x1, x1, l___const.main.strings@PAGEOFF mov x2, #56 bl _memcpy str wzr, [sp, #24] b LBB2_1 LBB2_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #24] ldr w9, [sp, #20] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB2_7 b LBB2_2 LBB2_2: ; in Loop: Header=BB2_1 Depth=1 ldrsw x9, [sp, #24] add x8, sp, #32 ldr x0, [x8, x9, lsl #3] bl _is_clean subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB2_4 b LBB2_3 LBB2_3: ; in Loop: Header=BB2_1 Depth=1 ldrsw x9, [sp, #24] add x8, sp, #32 ldr x8, [x8, x9, lsl #3] mov x9, sp str x8, [x9] adrp x0, l_.str.8@PAGE add x0, x0, l_.str.8@PAGEOFF bl _printf b LBB2_5 LBB2_4: ; in Loop: Header=BB2_1 Depth=1 ldrsw x9, [sp, #24] add x8, sp, #32 ldr x8, [x8, x9, lsl #3] mov x9, sp str x8, [x9] adrp x0, l_.str.9@PAGE add x0, x0, l_.str.9@PAGEOFF bl _printf b LBB2_5 LBB2_5: ; in Loop: Header=BB2_1 Depth=1 b LBB2_6 LBB2_6: ; in Loop: Header=BB2_1 Depth=1 ldr w8, [sp, #24] add w8, w8, #1 str w8, [sp, #24] b LBB2_1 LBB2_7: ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB2_9 b LBB2_8 LBB2_8: bl ___stack_chk_fail LBB2_9: 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 .space 1 l_.str.1: ; @.str.1 .asciz "Morris" l_.str.2: ; @.str.2 .asciz " stuff" l_.str.3: ; @.str.3 .asciz "Minnesota" l_.str.4: ; @.str.4 .asciz "nonsense " l_.str.5: ; @.str.5 .asciz "USA" l_.str.6: ; @.str.6 .asciz " " l_.str.7: ; @.str.7 .asciz " silliness " .section __DATA,__const .p2align 3 ; @__const.main.strings l___const.main.strings: .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 .section __TEXT,__cstring,cstring_literals l_.str.8: ; @.str.8 .asciz "The string '%s' is clean.\n" l_.str.9: ; @.str.9 .asciz "The string '%s' is NOT clean.\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _strip ## -- Begin function strip .p2align 4, 0x90 _strip: ## @strip .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $64, %rsp movq %rdi, -16(%rbp) movq -16(%rbp), %rdi callq _strlen ## kill: def $eax killed $eax killed $rax movl %eax, -20(%rbp) movl $0, -24(%rbp) movl $0, -28(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movl -28(%rbp), %ecx xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl -20(%rbp), %ecx movb %al, -49(%rbp) ## 1-byte Spill jge LBB0_3 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movq -16(%rbp), %rax movslq -28(%rbp), %rcx movsbl (%rax,%rcx), %eax cmpl $32, %eax sete %al movb %al, -49(%rbp) ## 1-byte Spill LBB0_3: ## in Loop: Header=BB0_1 Depth=1 movb -49(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB0_4 jmp LBB0_5 LBB0_4: ## in Loop: Header=BB0_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 LBB0_1 LBB0_5: movl -20(%rbp), %eax subl $1, %eax movl %eax, -32(%rbp) LBB0_6: ## =>This Inner Loop Header: Depth=1 xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $0, -32(%rbp) movb %al, -50(%rbp) ## 1-byte Spill jl LBB0_8 ## %bb.7: ## in Loop: Header=BB0_6 Depth=1 movq -16(%rbp), %rax movslq -32(%rbp), %rcx movsbl (%rax,%rcx), %eax cmpl $32, %eax sete %al movb %al, -50(%rbp) ## 1-byte Spill LBB0_8: ## in Loop: Header=BB0_6 Depth=1 movb -50(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB0_9 jmp LBB0_10 LBB0_9: ## in Loop: Header=BB0_6 Depth=1 movl -24(%rbp), %eax addl $1, %eax movl %eax, -24(%rbp) movl -32(%rbp), %eax addl $-1, %eax movl %eax, -32(%rbp) jmp LBB0_6 LBB0_10: movl -24(%rbp), %eax cmpl -20(%rbp), %eax jl LBB0_12 ## %bb.11: leaq L_.str(%rip), %rax movq %rax, -8(%rbp) jmp LBB0_17 LBB0_12: movl -20(%rbp), %eax subl -24(%rbp), %eax addl $1, %eax movslq %eax, %rdi movl $1, %esi callq _calloc movq %rax, -48(%rbp) movl -28(%rbp), %eax movl %eax, -36(%rbp) LBB0_13: ## =>This Inner Loop Header: Depth=1 movl -36(%rbp), %eax cmpl -32(%rbp), %eax jg LBB0_16 ## %bb.14: ## in Loop: Header=BB0_13 Depth=1 movq -16(%rbp), %rax movslq -36(%rbp), %rcx movb (%rax,%rcx), %dl movq -48(%rbp), %rax movl -36(%rbp), %ecx subl -28(%rbp), %ecx movslq %ecx, %rcx movb %dl, (%rax,%rcx) ## %bb.15: ## in Loop: Header=BB0_13 Depth=1 movl -36(%rbp), %eax addl $1, %eax movl %eax, -36(%rbp) jmp LBB0_13 LBB0_16: movq -48(%rbp), %rax movl -36(%rbp), %ecx subl -28(%rbp), %ecx movslq %ecx, %rcx movb $0, (%rax,%rcx) movq -48(%rbp), %rax movq %rax, -8(%rbp) LBB0_17: movq -8(%rbp), %rax addq $64, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _is_clean ## -- Begin function is_clean .p2align 4, 0x90 _is_clean: ## @is_clean .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 _strip movq %rax, -16(%rbp) movq -8(%rbp), %rdi movq -16(%rbp), %rsi callq _strcmp movl %eax, -20(%rbp) movq -16(%rbp), %rdi callq _free cmpl $0, -20(%rbp) sete %al andb $1, %al movzbl %al, %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $80, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -68(%rbp) movl $7, -76(%rbp) leaq -64(%rbp), %rdi leaq l___const.main.strings(%rip), %rsi movl $56, %edx callq _memcpy movl $0, -72(%rbp) LBB2_1: ## =>This Inner Loop Header: Depth=1 movl -72(%rbp), %eax cmpl -76(%rbp), %eax jge LBB2_7 ## %bb.2: ## in Loop: Header=BB2_1 Depth=1 movslq -72(%rbp), %rax movq -64(%rbp,%rax,8), %rdi callq _is_clean cmpl $0, %eax je LBB2_4 ## %bb.3: ## in Loop: Header=BB2_1 Depth=1 movslq -72(%rbp), %rax movq -64(%rbp,%rax,8), %rsi leaq L_.str.8(%rip), %rdi movb $0, %al callq _printf jmp LBB2_5 LBB2_4: ## in Loop: Header=BB2_1 Depth=1 movslq -72(%rbp), %rax movq -64(%rbp,%rax,8), %rsi leaq L_.str.9(%rip), %rdi movb $0, %al callq _printf LBB2_5: ## in Loop: Header=BB2_1 Depth=1 jmp LBB2_6 LBB2_6: ## in Loop: Header=BB2_1 Depth=1 movl -72(%rbp), %eax addl $1, %eax movl %eax, -72(%rbp) jmp LBB2_1 LBB2_7: movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB2_9 ## %bb.8: xorl %eax, %eax addq $80, %rsp popq %rbp retq LBB2_9: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .space 1 L_.str.1: ## @.str.1 .asciz "Morris" L_.str.2: ## @.str.2 .asciz " stuff" L_.str.3: ## @.str.3 .asciz "Minnesota" L_.str.4: ## @.str.4 .asciz "nonsense " L_.str.5: ## @.str.5 .asciz "USA" L_.str.6: ## @.str.6 .asciz " " L_.str.7: ## @.str.7 .asciz " silliness " .section __DATA,__const .p2align 4 ## @__const.main.strings l___const.main.strings: .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 .section __TEXT,__cstring,cstring_literals L_.str.8: ## @.str.8 .asciz "The string '%s' is clean.\n" L_.str.9: ## @.str.9 .asciz "The string '%s' is NOT clean.\n" .subsections_via_symbols
the_stack_data/25137274.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] stur wzr, [x29, #-16] b LBB0_1 LBB0_1: ; =>This Loop Header: Depth=1 ; Child Loop BB0_3 Depth 2 ldur w8, [x29, #-16] subs w8, w8, #2 cset w8, ge tbnz w8, #0, LBB0_8 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 stur wzr, [x29, #-20] b LBB0_3 LBB0_3: ; Parent Loop BB0_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldur w8, [x29, #-20] subs w8, w8, #3 cset w8, ge tbnz w8, #0, LBB0_6 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_3 Depth=2 ldur w8, [x29, #-16] ; implicit-def: $x11 mov x11, x8 ldur w8, [x29, #-20] ; implicit-def: $x10 mov x10, x8 ldursw x8, [x29, #-16] mov x9, #3 mul x9, x8, x9 sub x8, x29, #10 add x8, x8, x9 ldursw x9, [x29, #-20] add x8, x8, x9 mov x9, sp str x11, [x9] str x10, [x9, #8] str x8, [x9, #16] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf b LBB0_5 LBB0_5: ; in Loop: Header=BB0_3 Depth=2 ldur w8, [x29, #-20] add w8, w8, #1 stur w8, [x29, #-20] b LBB0_3 LBB0_6: ; in Loop: Header=BB0_1 Depth=1 b LBB0_7 LBB0_7: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-16] add w8, w8, #1 stur w8, [x29, #-16] b LBB0_1 LBB0_8: mov x9, sp sub x8, x29, #10 str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf stur wzr, [x29, #-16] b LBB0_9 LBB0_9: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-16] subs w8, w8, #2 cset w8, ge tbnz w8, #0, LBB0_12 b LBB0_10 LBB0_10: ; in Loop: Header=BB0_9 Depth=1 ldur w8, [x29, #-16] ; implicit-def: $x10 mov x10, x8 ldursw x8, [x29, #-16] mov x9, #3 mul x9, x8, x9 sub x8, x29, #10 add x8, 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 LBB0_11 LBB0_11: ; in Loop: Header=BB0_9 Depth=1 ldur w8, [x29, #-16] add w8, w8, #1 stur w8, [x29, #-16] b LBB0_9 LBB0_12: mov w0, #0 ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Direccion de array2D[%d][%d] = %p\n" l_.str.1: ; @.str.1 .asciz "Contenido de array2D = %p\n" l_.str.2: ; @.str.2 .asciz "Contenido de array2D[%d] = %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 $32, %rsp movl $0, -4(%rbp) movl $0, -16(%rbp) LBB0_1: ## =>This Loop Header: Depth=1 ## Child Loop BB0_3 Depth 2 cmpl $2, -16(%rbp) jge LBB0_8 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl $0, -20(%rbp) LBB0_3: ## Parent Loop BB0_1 Depth=1 ## => This Inner Loop Header: Depth=2 cmpl $3, -20(%rbp) jge LBB0_6 ## %bb.4: ## in Loop: Header=BB0_3 Depth=2 movl -16(%rbp), %esi movl -20(%rbp), %edx movslq -16(%rbp), %rax leaq -10(%rbp), %rcx imulq $3, %rax, %rax addq %rax, %rcx movslq -20(%rbp), %rax addq %rax, %rcx leaq L_.str(%rip), %rdi movb $0, %al callq _printf ## %bb.5: ## in Loop: Header=BB0_3 Depth=2 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB0_3 LBB0_6: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_7 LBB0_7: ## in Loop: Header=BB0_1 Depth=1 movl -16(%rbp), %eax addl $1, %eax movl %eax, -16(%rbp) jmp LBB0_1 LBB0_8: leaq -10(%rbp), %rsi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf movl $0, -16(%rbp) LBB0_9: ## =>This Inner Loop Header: Depth=1 cmpl $2, -16(%rbp) jge LBB0_12 ## %bb.10: ## in Loop: Header=BB0_9 Depth=1 movl -16(%rbp), %esi movslq -16(%rbp), %rax leaq -10(%rbp), %rdx imulq $3, %rax, %rax addq %rax, %rdx leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf ## %bb.11: ## in Loop: Header=BB0_9 Depth=1 movl -16(%rbp), %eax addl $1, %eax movl %eax, -16(%rbp) jmp LBB0_9 LBB0_12: xorl %eax, %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Direccion de array2D[%d][%d] = %p\n" L_.str.1: ## @.str.1 .asciz "Contenido de array2D = %p\n" L_.str.2: ## @.str.2 .asciz "Contenido de array2D[%d] = %p\n" .subsections_via_symbols
the_stack_data/28526.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #0 stur w8, [x29, #-12] ; 4-byte Folded Spill stur wzr, [x29, #-4] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov x9, sp sub x8, x29, #5 str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf ldursb w8, [x29, #-5] add w8, w8, #1 sturb w8, [x29, #-6] ldursb w11, [x29, #-5] ldursb w10, [x29, #-6] mov x9, sp ; implicit-def: $x8 mov x8, x11 str x8, [x9] ; implicit-def: $x8 mov x8, x10 str x8, [x9, #8] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf ldur w0, [x29, #-12] ; 4-byte Folded Reload ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Pressione algum caractere do teclado\n" l_.str.1: ; @.str.1 .asciz "%c" l_.str.2: ; @.str.2 .asciz "O caractere '%c' tem como posterior o caractere '%c' " .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) leaq L_.str(%rip), %rdi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi leaq -5(%rbp), %rsi movb $0, %al callq _scanf movsbl -5(%rbp), %eax addl $1, %eax ## kill: def $al killed $al killed $eax movb %al, -6(%rbp) movsbl -5(%rbp), %esi movsbl -6(%rbp), %edx leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Pressione algum caractere do teclado\n" L_.str.1: ## @.str.1 .asciz "%c" L_.str.2: ## @.str.2 .asciz "O caractere '%c' tem como posterior o caractere '%c' " .subsections_via_symbols
the_stack_data/776061.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _RandomFunc ; -- Begin function RandomFunc .p2align 2 _RandomFunc: ; @RandomFunc .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, #24] str x1, [sp, #16] ldr x8, [sp, #24] ldr w8, [x8] ; kill: def $x8 killed $w8 mov x9, #26986 movk x9, #13958, lsl #16 and x8, x8, x9 lsl x8, x8, #7 ; 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 ldr w8, [sp, #8] ; kill: def $x8 killed $w8 subs x8, x8, #1 cset w8, hs tbnz w8, #0, LBB0_5 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #12] ldr w9, [sp, #8] subs w8, w8, w9 cset w8, ls tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #8] mov x10, x8 add x9, sp, #12 mov x8, x9 add x8, x8, x10, lsl #2 ldrh w8, [x8, #2] strh w8, [sp, #6] ldr w8, [sp, #8] mov x10, x8 mov x8, x9 add x8, x8, x10, lsl #2 ldrh w8, [x8] ldr w10, [sp, #8] mov x11, x10 mov x10, x9 add x10, x10, x11, lsl #2 strh w8, [x10, #2] ldrh w8, [sp, #6] ldr w10, [sp, #8] ; kill: def $x10 killed $w10 add x9, x9, x10, lsl #2 strh w8, [x9] b LBB0_4 LBB0_4: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #8] add w8, w8, #1 str w8, [sp, #8] b LBB0_1 LBB0_5: ldr w8, [sp, #12] ; kill: def $x8 killed $w8 mov x9, #43081 movk x9, #10530, lsl #16 and x8, x8, x9 lsl x8, x8, #3 ldr x9, [sp, #16] ; kill: def $w8 killed $w8 killed $x8 str w8, [x9] add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _megaInit ; -- Begin function megaInit .p2align 2 _megaInit: ; @megaInit .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, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] stur w0, [x29, #-8] stur x1, [x29, #-16] bl _megaInit ldur w8, [x29, #-8] subs w8, w8, #2 cset w8, eq tbnz w8, #0, LBB2_2 b LBB2_1 LBB2_1: mov x9, sp mov x8, #1 str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov w0, #-1 bl _exit LBB2_2: b LBB2_3 LBB2_3: str wzr, [sp, #20] b LBB2_4 LBB2_4: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #20] subs w8, w8, #1 cset w8, ge tbnz w8, #0, LBB2_6 b LBB2_5 LBB2_5: ; in Loop: Header=BB2_4 Depth=1 ldur x8, [x29, #-16] ldr w9, [sp, #20] add w9, w9, #1 ldr x0, [x8, w9, sxtw #3] mov x1, #0 mov w2, #10 bl _strtoul mov x8, x0 str w8, [sp, #16] ldr w8, [sp, #16] ldrsw x10, [sp, #20] sub x9, x29, #20 str w8, [x9, x10, lsl #2] ldr w8, [sp, #20] add w8, w8, #1 str w8, [sp, #20] b LBB2_4 LBB2_6: sub x0, x29, #20 add x1, sp, #24 bl _RandomFunc ldr w8, [sp, #24] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB2_8 b LBB2_7 LBB2_7: adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf b LBB2_9 LBB2_8: b LBB2_9 LBB2_9: str wzr, [sp, #12] b LBB2_10 LBB2_10: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #12] subs w8, w8, #1 cset w8, ge tbnz w8, #0, LBB2_12 b LBB2_11 LBB2_11: ; in Loop: Header=BB2_10 Depth=1 ldrsw x9, [sp, #12] add x8, sp, #24 ldr w9, [x8, x9, lsl #2] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB2_10 LBB2_12: ldur w0, [x29, #-4] ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Call this program with %i arguments\n" l_.str.1: ; @.str.1 .asciz "You win!\n" l_.str.2: ; @.str.2 .asciz "%u\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _RandomFunc ## -- Begin function RandomFunc .p2align 4, 0x90 _RandomFunc: ## @RandomFunc .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) movq -8(%rbp), %rax movl (%rax), %eax ## kill: def $rax killed $eax andq $914778474, %rax ## imm = 0x3686696A shlq $7, %rax ## kill: def $eax killed $eax killed $rax movl %eax, -20(%rbp) movl $0, -24(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movl -24(%rbp), %eax ## kill: def $rax killed $eax cmpq $1, %rax jae LBB0_5 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl -20(%rbp), %eax cmpl -24(%rbp), %eax jbe LBB0_4 ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movl -24(%rbp), %eax ## kill: def $rax killed $eax movw -18(%rbp,%rax,4), %ax movw %ax, -26(%rbp) movl -24(%rbp), %eax ## kill: def $rax killed $eax movw -20(%rbp,%rax,4), %cx movl -24(%rbp), %eax ## kill: def $rax killed $eax movw %cx, -18(%rbp,%rax,4) movw -26(%rbp), %cx movl -24(%rbp), %eax ## kill: def $rax killed $eax movw %cx, -20(%rbp,%rax,4) LBB0_4: ## in Loop: Header=BB0_1 Depth=1 movl -24(%rbp), %eax addl $1, %eax movl %eax, -24(%rbp) jmp LBB0_1 LBB0_5: movl -20(%rbp), %eax ## kill: def $rax killed $eax andq $690137161, %rax ## imm = 0x2922A849 shlq $3, %rax movl %eax, %ecx movq -16(%rbp), %rax movl %ecx, (%rax) popq %rbp retq .cfi_endproc ## -- End function .globl _megaInit ## -- Begin function megaInit .p2align 4, 0x90 _megaInit: ## @megaInit .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 $48, %rsp movl $0, -4(%rbp) movl %edi, -8(%rbp) movq %rsi, -16(%rbp) callq _megaInit cmpl $2, -8(%rbp) je LBB2_2 ## %bb.1: leaq L_.str(%rip), %rdi xorl %eax, %eax ## kill: def $al killed $al killed $eax movl $1, %esi callq _printf movl $-1, %edi callq _exit LBB2_2: jmp LBB2_3 LBB2_3: movl $0, -28(%rbp) LBB2_4: ## =>This Inner Loop Header: Depth=1 cmpl $1, -28(%rbp) jge LBB2_6 ## %bb.5: ## in Loop: Header=BB2_4 Depth=1 movq -16(%rbp), %rax movl -28(%rbp), %ecx addl $1, %ecx movslq %ecx, %rcx movq (%rax,%rcx,8), %rdi xorl %eax, %eax movl %eax, %esi movl $10, %edx callq _strtoul ## kill: def $eax killed $eax killed $rax movl %eax, -32(%rbp) movl -32(%rbp), %ecx movslq -28(%rbp), %rax movl %ecx, -20(%rbp,%rax,4) movl -28(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) jmp LBB2_4 LBB2_6: leaq -20(%rbp), %rdi leaq -24(%rbp), %rsi callq _RandomFunc cmpl $0, -24(%rbp) jne LBB2_8 ## %bb.7: leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf jmp LBB2_9 LBB2_8: jmp LBB2_9 LBB2_9: movl $0, -36(%rbp) LBB2_10: ## =>This Inner Loop Header: Depth=1 cmpl $1, -36(%rbp) jge LBB2_12 ## %bb.11: ## in Loop: Header=BB2_10 Depth=1 movslq -36(%rbp), %rax movl -24(%rbp,%rax,4), %esi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf movl -36(%rbp), %eax addl $1, %eax movl %eax, -36(%rbp) jmp LBB2_10 LBB2_12: movl -4(%rbp), %eax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Call this program with %i arguments\n" L_.str.1: ## @.str.1 .asciz "You win!\n" L_.str.2: ## @.str.2 .asciz "%u\n" .subsections_via_symbols
the_stack_data/51699408.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, #928 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] str wzr, [sp, #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, LBB0_2 b LBB0_1 LBB0_1: bl ___stack_chk_fail LBB0_2: mov w0, #0 add sp, sp, #928 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x28, x27, [sp], #32 ; 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 _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 $960, %rsp ## imm = 0x3C0 movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -948(%rbp) 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 $960, %rsp ## imm = 0x3C0 popq %rbp retq LBB0_2: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/43887838.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, _outputbuf@GOTPAGE ldr x8, [x8, _outputbuf@GOTPAGEOFF] str x8, [sp, #8] ; 8-byte Folded Spill stur wzr, [x29, #-4] stur wzr, [x29, #-8] adrp x8, ___stdinp@GOTPAGE ldr x8, [x8, ___stdinp@GOTPAGEOFF] ldr x3, [x8] adrp x0, _inputbuf@GOTPAGE ldr x0, [x0, _inputbuf@GOTPAGEOFF] mov x1, #55488 movk x1, #167, lsl #16 mov x2, #1 bl _fread b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 bl _getint stur w0, [x29, #-12] adrp x8, _iseof@PAGE ldr w8, [x8, _iseof@PAGEOFF] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: b LBB0_4 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldur w9, [x29, #-12] ldur w8, [x29, #-8] eor w8, w8, w9 stur w8, [x29, #-8] b LBB0_1 LBB0_4: ldur w0, [x29, #-8] bl _putint ldr x9, [sp, #8] ; 8-byte Folded Reload adrp x8, _obf@PAGE ldr x8, [x8, _obf@PAGEOFF] subs x1, x8, x9 adrp x8, ___stdoutp@GOTPAGE ldr x8, [x8, ___stdoutp@GOTPAGEOFF] ldr x3, [x8] adrp x0, _outputbuf@GOTPAGE ldr x0, [x0, _outputbuf@GOTPAGEOFF] mov x2, #1 bl _fwrite mov w0, #0 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .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 wzr, [sp, #8] str wzr, [sp, #4] b LBB1_1 LBB1_1: ; =>This Inner Loop Header: Depth=1 adrp x8, _ibf@PAGE ldr x8, [x8, _ibf@PAGEOFF] ldrsb w0, [x8] bl _isdigit subs w8, w0, #0 cset w8, ne mov w9, #0 str w9, [sp] ; 4-byte Folded Spill tbnz w8, #0, LBB1_4 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 adrp x8, _ibf@PAGE ldr x8, [x8, _ibf@PAGEOFF] ldrsb w8, [x8] subs w8, w8, #45 cset w8, eq mov w9, #0 str w9, [sp] ; 4-byte Folded Spill tbnz w8, #0, LBB1_4 b LBB1_3 LBB1_3: ; in Loop: Header=BB1_1 Depth=1 adrp x8, _ibf@PAGE ldr x8, [x8, _ibf@PAGEOFF] ldrsb w8, [x8] subs w8, w8, #0 cset w8, ne str w8, [sp] ; 4-byte Folded Spill b LBB1_4 LBB1_4: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp] ; 4-byte Folded Reload tbz w8, #0, LBB1_6 b LBB1_5 LBB1_5: ; in Loop: Header=BB1_1 Depth=1 adrp x9, _ibf@PAGE ldr x8, [x9, _ibf@PAGEOFF] add x8, x8, #1 str x8, [x9, _ibf@PAGEOFF] b LBB1_1 LBB1_6: adrp x8, _ibf@PAGE ldr x8, [x8, _ibf@PAGEOFF] ldrsb w8, [x8] subs w8, w8, #45 cset w8, ne tbnz w8, #0, LBB1_8 b LBB1_7 LBB1_7: mov w8, #1 str w8, [sp, #4] b LBB1_12 LBB1_8: adrp x8, _ibf@PAGE ldr x8, [x8, _ibf@PAGEOFF] ldrsb w8, [x8] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB1_10 b LBB1_9 LBB1_9: adrp x9, _iseof@PAGE mov w8, #1 str w8, [x9, _iseof@PAGEOFF] stur wzr, [x29, #-4] b LBB1_18 LBB1_10: adrp x8, _ibf@PAGE ldr x8, [x8, _ibf@PAGEOFF] ldrsb w8, [x8] subs w8, w8, #48 str w8, [sp, #8] b LBB1_11 LBB1_11: b LBB1_12 LBB1_12: adrp x10, _ibf@PAGE ldr x8, [x10, _ibf@PAGEOFF] add x9, x8, #1 str x9, [x10, _ibf@PAGEOFF] ldrb w8, [x8] adrp x11, _obf@PAGE ldr x9, [x11, _obf@PAGEOFF] add x10, x9, #1 str x10, [x11, _obf@PAGEOFF] strb w8, [x9] b LBB1_13 LBB1_13: ; =>This Inner Loop Header: Depth=1 adrp x8, _ibf@PAGE ldr x8, [x8, _ibf@PAGEOFF] ldrsb w0, [x8] bl _isdigit subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB1_15 b LBB1_14 LBB1_14: ; in Loop: Header=BB1_13 Depth=1 ldr w8, [sp, #8] mov w9, #10 mul w8, w8, w9 adrp x10, _ibf@PAGE ldr x9, [x10, _ibf@PAGEOFF] ldrsb w9, [x9] add w8, w8, w9 subs w8, w8, #48 str w8, [sp, #8] ldr x8, [x10, _ibf@PAGEOFF] add x9, x8, #1 str x9, [x10, _ibf@PAGEOFF] ldrb w8, [x8] adrp x11, _obf@PAGE ldr x9, [x11, _obf@PAGEOFF] add x10, x9, #1 str x10, [x11, _obf@PAGEOFF] strb w8, [x9] b LBB1_13 LBB1_15: adrp x10, _obf@PAGE ldr x9, [x10, _obf@PAGEOFF] add x8, x9, #1 str x8, [x10, _obf@PAGEOFF] mov w8, #10 strb w8, [x9] ldr w8, [sp, #4] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB1_17 b LBB1_16 LBB1_16: ldr w9, [sp, #8] mov w8, #0 subs w8, w8, w9 stur w8, [x29, #-4] b LBB1_18 LBB1_17: ldr w8, [sp, #8] stur w8, [x29, #-4] b LBB1_18 LBB1_18: ldur w0, [x29, #-4] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _putint ; -- Begin function putint .p2align 2 _putint: ; @putint .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur w0, [x29, #-4] ldur w8, [x29, #-4] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB2_2 b LBB2_1 LBB2_1: adrp x10, _obf@PAGE ldr x9, [x10, _obf@PAGEOFF] add x8, x9, #1 str x8, [x10, _obf@PAGEOFF] mov w8, #48 strb w8, [x9] b LBB2_8 LBB2_2: ldur w8, [x29, #-4] subs w8, w8, #0 cset w8, ge tbnz w8, #0, LBB2_4 b LBB2_3 LBB2_3: adrp x10, _obf@PAGE ldr x9, [x10, _obf@PAGEOFF] add x8, x9, #1 str x8, [x10, _obf@PAGEOFF] mov w8, #45 strb w8, [x9] ldur w9, [x29, #-4] mov w8, #0 subs w8, w8, w9 stur w8, [x29, #-4] b LBB2_4 LBB2_4: ldur w0, [x29, #-4] bl _judge adrp x10, _obf@PAGE ldr x8, [x10, _obf@PAGEOFF] add x8, x8, w0, sxtw mov x9, x8 str x9, [x10, _obf@PAGEOFF] str x8, [sp, #16] b LBB2_5 LBB2_5: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-4] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB2_7 b LBB2_6 LBB2_6: ; in Loop: Header=BB2_5 Depth=1 ldur w8, [x29, #-4] mov w10, #10 sdiv w8, w8, w10 str w8, [sp, #12] ldur w8, [x29, #-4] ldr w9, [sp, #12] mul w9, w9, w10 subs w8, w8, w9 add w8, w8, #48 ldr x9, [sp, #16] subs x10, x9, #1 str x10, [sp, #16] sturb w8, [x9, #-1] ldr w8, [sp, #12] stur w8, [x29, #-4] b LBB2_5 LBB2_7: b LBB2_8 LBB2_8: adrp x10, _obf@PAGE ldr x9, [x10, _obf@PAGEOFF] add x8, x9, #1 str x8, [x10, _obf@PAGEOFF] mov w8, #10 strb w8, [x9] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _judge ; -- Begin function judge .p2align 2 _judge: ; @judge .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #8] ldr w8, [sp, #8] subs w8, w8, #10 cset w8, ge tbnz w8, #0, LBB3_2 b LBB3_1 LBB3_1: mov w8, #1 str w8, [sp, #12] b LBB3_19 LBB3_2: ldr w8, [sp, #8] subs w8, w8, #100 cset w8, ge tbnz w8, #0, LBB3_4 b LBB3_3 LBB3_3: mov w8, #2 str w8, [sp, #12] b LBB3_19 LBB3_4: ldr w8, [sp, #8] subs w8, w8, #1000 cset w8, ge tbnz w8, #0, LBB3_6 b LBB3_5 LBB3_5: mov w8, #3 str w8, [sp, #12] b LBB3_19 LBB3_6: ldr w8, [sp, #8] mov w9, #10000 subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB3_8 b LBB3_7 LBB3_7: mov w8, #4 str w8, [sp, #12] b LBB3_19 LBB3_8: ldr w8, [sp, #8] mov w9, #34464 movk w9, #1, lsl #16 subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB3_10 b LBB3_9 LBB3_9: mov w8, #5 str w8, [sp, #12] b LBB3_19 LBB3_10: ldr w8, [sp, #8] mov w9, #16960 movk w9, #15, lsl #16 subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB3_12 b LBB3_11 LBB3_11: mov w8, #6 str w8, [sp, #12] b LBB3_19 LBB3_12: ldr w8, [sp, #8] mov w9, #38528 movk w9, #152, lsl #16 subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB3_14 b LBB3_13 LBB3_13: mov w8, #7 str w8, [sp, #12] b LBB3_19 LBB3_14: ldr w8, [sp, #8] mov w9, #57600 movk w9, #1525, lsl #16 subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB3_16 b LBB3_15 LBB3_15: mov w8, #8 str w8, [sp, #12] b LBB3_19 LBB3_16: ldr w8, [sp, #8] mov w9, #51712 movk w9, #15258, lsl #16 subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB3_18 b LBB3_17 LBB3_17: mov w8, #9 str w8, [sp, #12] b LBB3_19 LBB3_18: mov w8, #10 str w8, [sp, #12] b LBB3_19 LBB3_19: ldr w0, [sp, #12] add sp, sp, #16 ret .cfi_endproc ; -- End function .comm _inputbuf,11000000,0 ; @inputbuf .section __DATA,__data .globl _ibf ; @ibf .p2align 3 _ibf: .quad _inputbuf .comm _outputbuf,11000000,0 ; @outputbuf .globl _obf ; @obf .p2align 3 _obf: .quad _outputbuf .globl _iseof ; @iseof .zerofill __DATA,__common,_iseof,4,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) movl $0, -8(%rbp) movq ___stdinp@GOTPCREL(%rip), %rax movq (%rax), %rcx movq _inputbuf@GOTPCREL(%rip), %rdi movl $11000000, %esi ## imm = 0xA7D8C0 movl $1, %edx callq _fread LBB0_1: ## =>This Inner Loop Header: Depth=1 callq _getint movl %eax, -12(%rbp) cmpl $0, _iseof(%rip) je LBB0_3 ## %bb.2: jmp LBB0_4 LBB0_3: ## in Loop: Header=BB0_1 Depth=1 movl -12(%rbp), %eax xorl -8(%rbp), %eax movl %eax, -8(%rbp) jmp LBB0_1 LBB0_4: movl -8(%rbp), %edi callq _putint movq _obf(%rip), %rsi movq _outputbuf@GOTPCREL(%rip), %rax subq %rax, %rsi movq ___stdoutp@GOTPCREL(%rip), %rax movq (%rax), %rcx movq _outputbuf@GOTPCREL(%rip), %rdi movl $1, %edx callq _fwrite xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .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 movl $0, -8(%rbp) movl $0, -12(%rbp) LBB1_1: ## =>This Inner Loop Header: Depth=1 movq _ibf(%rip), %rax movsbl (%rax), %edi callq _isdigit movl %eax, %ecx xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $0, %ecx movb %al, -13(%rbp) ## 1-byte Spill jne LBB1_4 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 movq _ibf(%rip), %rax movsbl (%rax), %ecx xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $45, %ecx movb %al, -13(%rbp) ## 1-byte Spill je LBB1_4 ## %bb.3: ## in Loop: Header=BB1_1 Depth=1 movq _ibf(%rip), %rax movsbl (%rax), %eax cmpl $0, %eax setne %al movb %al, -13(%rbp) ## 1-byte Spill LBB1_4: ## in Loop: Header=BB1_1 Depth=1 movb -13(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB1_5 jmp LBB1_6 LBB1_5: ## in Loop: Header=BB1_1 Depth=1 movq _ibf(%rip), %rax addq $1, %rax movq %rax, _ibf(%rip) jmp LBB1_1 LBB1_6: movq _ibf(%rip), %rax movsbl (%rax), %eax cmpl $45, %eax jne LBB1_8 ## %bb.7: movl $1, -12(%rbp) jmp LBB1_12 LBB1_8: movq _ibf(%rip), %rax movsbl (%rax), %eax cmpl $0, %eax jne LBB1_10 ## %bb.9: movl $1, _iseof(%rip) movl $0, -4(%rbp) jmp LBB1_18 LBB1_10: movq _ibf(%rip), %rax movsbl (%rax), %eax subl $48, %eax movl %eax, -8(%rbp) ## %bb.11: jmp LBB1_12 LBB1_12: movq _ibf(%rip), %rax movq %rax, %rcx addq $1, %rcx movq %rcx, _ibf(%rip) movb (%rax), %cl movq _obf(%rip), %rax movq %rax, %rdx addq $1, %rdx movq %rdx, _obf(%rip) movb %cl, (%rax) LBB1_13: ## =>This Inner Loop Header: Depth=1 movq _ibf(%rip), %rax movsbl (%rax), %edi callq _isdigit cmpl $0, %eax je LBB1_15 ## %bb.14: ## in Loop: Header=BB1_13 Depth=1 imull $10, -8(%rbp), %eax movq _ibf(%rip), %rcx movsbl (%rcx), %ecx addl %ecx, %eax subl $48, %eax movl %eax, -8(%rbp) movq _ibf(%rip), %rax movq %rax, %rcx addq $1, %rcx movq %rcx, _ibf(%rip) movb (%rax), %cl movq _obf(%rip), %rax movq %rax, %rdx addq $1, %rdx movq %rdx, _obf(%rip) movb %cl, (%rax) jmp LBB1_13 LBB1_15: movq _obf(%rip), %rax movq %rax, %rcx addq $1, %rcx movq %rcx, _obf(%rip) movb $10, (%rax) cmpl $0, -12(%rbp) je LBB1_17 ## %bb.16: xorl %eax, %eax subl -8(%rbp), %eax movl %eax, -4(%rbp) jmp LBB1_18 LBB1_17: movl -8(%rbp), %eax movl %eax, -4(%rbp) LBB1_18: movl -4(%rbp), %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _putint ## -- Begin function putint .p2align 4, 0x90 _putint: ## @putint .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) cmpl $0, -4(%rbp) jne LBB2_2 ## %bb.1: movq _obf(%rip), %rax movq %rax, %rcx addq $1, %rcx movq %rcx, _obf(%rip) movb $48, (%rax) jmp LBB2_8 LBB2_2: cmpl $0, -4(%rbp) jge LBB2_4 ## %bb.3: movq _obf(%rip), %rax movq %rax, %rcx addq $1, %rcx movq %rcx, _obf(%rip) movb $45, (%rax) xorl %eax, %eax subl -4(%rbp), %eax movl %eax, -4(%rbp) LBB2_4: movl -4(%rbp), %edi callq _judge movl %eax, %ecx movq _obf(%rip), %rax movslq %ecx, %rcx addq %rcx, %rax movq %rax, _obf(%rip) movq %rax, -16(%rbp) LBB2_5: ## =>This Inner Loop Header: Depth=1 cmpl $0, -4(%rbp) je LBB2_7 ## %bb.6: ## in Loop: Header=BB2_5 Depth=1 movl -4(%rbp), %eax movl $10, %ecx cltd idivl %ecx movl %eax, -20(%rbp) movl -4(%rbp), %eax imull $10, -20(%rbp), %ecx subl %ecx, %eax addl $48, %eax movb %al, %cl movq -16(%rbp), %rax movq %rax, %rdx addq $-1, %rdx movq %rdx, -16(%rbp) movb %cl, -1(%rax) movl -20(%rbp), %eax movl %eax, -4(%rbp) jmp LBB2_5 LBB2_7: jmp LBB2_8 LBB2_8: movq _obf(%rip), %rax movq %rax, %rcx addq $1, %rcx movq %rcx, _obf(%rip) movb $10, (%rax) addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _judge ## -- Begin function judge .p2align 4, 0x90 _judge: ## @judge .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, -8(%rbp) cmpl $10, -8(%rbp) jge LBB3_2 ## %bb.1: movl $1, -4(%rbp) jmp LBB3_19 LBB3_2: cmpl $100, -8(%rbp) jge LBB3_4 ## %bb.3: movl $2, -4(%rbp) jmp LBB3_19 LBB3_4: cmpl $1000, -8(%rbp) ## imm = 0x3E8 jge LBB3_6 ## %bb.5: movl $3, -4(%rbp) jmp LBB3_19 LBB3_6: cmpl $10000, -8(%rbp) ## imm = 0x2710 jge LBB3_8 ## %bb.7: movl $4, -4(%rbp) jmp LBB3_19 LBB3_8: cmpl $100000, -8(%rbp) ## imm = 0x186A0 jge LBB3_10 ## %bb.9: movl $5, -4(%rbp) jmp LBB3_19 LBB3_10: cmpl $1000000, -8(%rbp) ## imm = 0xF4240 jge LBB3_12 ## %bb.11: movl $6, -4(%rbp) jmp LBB3_19 LBB3_12: cmpl $10000000, -8(%rbp) ## imm = 0x989680 jge LBB3_14 ## %bb.13: movl $7, -4(%rbp) jmp LBB3_19 LBB3_14: cmpl $100000000, -8(%rbp) ## imm = 0x5F5E100 jge LBB3_16 ## %bb.15: movl $8, -4(%rbp) jmp LBB3_19 LBB3_16: cmpl $1000000000, -8(%rbp) ## imm = 0x3B9ACA00 jge LBB3_18 ## %bb.17: movl $9, -4(%rbp) jmp LBB3_19 LBB3_18: movl $10, -4(%rbp) LBB3_19: movl -4(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .comm _inputbuf,11000000,4 ## @inputbuf .section __DATA,__data .globl _ibf ## @ibf .p2align 3 _ibf: .quad _inputbuf .comm _outputbuf,11000000,4 ## @outputbuf .globl _obf ## @obf .p2align 3 _obf: .quad _outputbuf .globl _iseof ## @iseof .zerofill __DATA,__common,_iseof,4,2 .subsections_via_symbols
the_stack_data/64200502.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _puts bl _getchar sturb w0, [x29, #-5] sxtb w8, w0 subs w8, w8, #54 cset w8, ne tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: ldursb w10, [x29, #-5] mov x9, sp ; implicit-def: $x8 mov x8, x10 str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf b LBB0_3 LBB0_2: adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf b LBB0_3 LBB0_3: 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 "This is a testing string!" l_.str.1: ; @.str.1 .asciz "6666%c\n" l_.str.2: ; @.str.2 .asciz "WTF?!\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 callq _puts callq _getchar ## kill: def $al killed $al killed $eax movb %al, -5(%rbp) movsbl %al, %eax cmpl $54, %eax jne LBB0_2 ## %bb.1: movsbl -5(%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: xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "This is a testing string!" L_.str.1: ## @.str.1 .asciz "6666%c\n" L_.str.2: ## @.str.2 .asciz "WTF?!\n" .subsections_via_symbols
the_stack_data/20450127.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _c_compile ; -- Begin function c_compile .p2align 2 _c_compile: ; @c_compile .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] str x2, [sp] mov x0, #0 bl _c_direct ldur w0, [x29, #-4] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .section __DATA,__const .p2align 3 ; -- Begin function c_direct lCPI1_0: .quad Ltmp1 .section __TEXT,__text,regular,pure_instructions .p2align 2 _c_direct: ; @c_direct .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 adrp x8, lCPI1_0@PAGE ldr x8, [x8, lCPI1_0@PAGEOFF] str x0, [sp, #40] ldr x9, [sp, #40] str x9, [sp, #32] adrp x9, _c_stack@PAGE add x9, x9, _c_stack@PAGEOFF str x9, [sp, #24] str wzr, [sp, #20] adrp x9, _c_op_bz@PAGE str x8, [x9, _c_op_bz@PAGEOFF] ldr x8, [sp, #32] add x9, x8, #8 str x9, [sp, #32] ldr x8, [x8] str x8, [sp, #8] ; 8-byte Folded Spill b LBB1_17 Ltmp1: ; Block address taken LBB1_1: ; in Loop: Header=BB1_17 Depth=1 ldr w8, [sp, #20] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB1_3 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_17 Depth=1 b LBB1_3 LBB1_3: ; in Loop: Header=BB1_17 Depth=1 b LBB1_4 LBB1_4: ; in Loop: Header=BB1_17 Depth=1 ldr w8, [sp, #20] ldr x9, [sp, #24] stur w8, [x9, #-16] ldr x8, [sp, #32] ldur x8, [x8, #-8] str x8, [sp, #8] ; 8-byte Folded Spill b LBB1_17 Ltmp2: ; Block address taken LBB1_5: ldrsw x9, [sp, #20] ldr x10, [sp, #24] ldur x8, [x10, #-24] add x8, x8, x9, lsl #2 mov x9, x8 stur x9, [x10, #-24] ldr w8, [x8] str w8, [sp, #20] b LBB1_6 Ltmp3: ; Block address taken LBB1_6: ldr w8, [sp, #20] ldr x9, [sp, #24] ldur x9, [x9, #-24] str w8, [x9] b LBB1_7 Ltmp4: ; Block address taken LBB1_7: ldr w10, [sp, #20] ldr x8, [sp, #24] ldur x9, [x8, #-24] ldr w8, [x9] add w8, w8, w10 str w8, [x9] str w8, [sp, #20] b LBB1_8 Ltmp5: ; Block address taken LBB1_8: ldr w10, [sp, #20] ldr x8, [sp, #24] ldur x9, [x8, #-24] ldr w8, [x9] subs w8, w8, w10 str w8, [x9] str w8, [sp, #20] b LBB1_9 Ltmp6: ; Block address taken LBB1_9: ldr w10, [sp, #20] ldr x8, [sp, #24] ldur x9, [x8, #-24] ldr w8, [x9] mul w8, w8, w10 str w8, [x9] str w8, [sp, #20] b LBB1_10 Ltmp7: ; Block address taken LBB1_10: ldr w10, [sp, #20] ldr x8, [sp, #24] ldur x9, [x8, #-24] ldr w8, [x9] sdiv w8, w8, w10 str w8, [x9] str w8, [sp, #20] b LBB1_11 Ltmp8: ; Block address taken LBB1_11: ldr w11, [sp, #20] ldr x8, [sp, #24] ldur x9, [x8, #-24] ldr w8, [x9] sdiv w10, w8, w11 mul w10, w10, w11 subs w8, w8, w10 str w8, [x9] str w8, [sp, #20] b LBB1_12 Ltmp9: ; Block address taken LBB1_12: ldr w10, [sp, #20] ldr x8, [sp, #24] ldur x9, [x8, #-24] ldr w8, [x9] orr w8, w8, w10 str w8, [x9] str w8, [sp, #20] b LBB1_13 Ltmp10: ; Block address taken LBB1_13: ldr w10, [sp, #20] ldr x8, [sp, #24] ldur x9, [x8, #-24] ldr w8, [x9] eor w8, w8, w10 str w8, [x9] str w8, [sp, #20] b LBB1_14 Ltmp11: ; Block address taken LBB1_14: ldr w10, [sp, #20] ldr x8, [sp, #24] ldur x9, [x8, #-24] ldr w8, [x9] and w8, w8, w10 str w8, [x9] str w8, [sp, #20] b LBB1_15 Ltmp12: ; Block address taken LBB1_15: ldr w10, [sp, #20] ldr x8, [sp, #24] ldur x9, [x8, #-24] ldr w8, [x9] lsl w8, w8, w10 str w8, [x9] str w8, [sp, #20] b LBB1_16 Ltmp13: ; Block address taken LBB1_16: ldr w10, [sp, #20] ldr x8, [sp, #24] ldur x9, [x8, #-24] ldr w8, [x9] asr w8, w8, w10 str w8, [x9] str w8, [sp, #20] add sp, sp, #48 ret LBB1_17: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #8] ; 8-byte Folded Reload br x8 .cfi_endproc ; -- End function .zerofill __DATA,__bss,_c_stack,8320,3 ; @c_stack .section __DATA,__data .p2align 3 ; @c_direct.ops _c_direct.ops: .quad Ltmp2 .quad Ltmp3 .quad Ltmp4 .quad Ltmp5 .quad Ltmp6 .quad Ltmp7 .quad Ltmp8 .quad Ltmp9 .quad Ltmp10 .quad Ltmp11 .quad Ltmp12 .quad Ltmp13 .zerofill __DATA,__bss,_c_op_bz,8,3 ; @c_op_bz .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _c_compile ## -- Begin function c_compile .p2align 4, 0x90 _c_compile: ## @c_compile .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -16(%rbp) movq %rsi, -24(%rbp) movq %rdx, -32(%rbp) xorl %eax, %eax movl %eax, %edi callq _c_direct movl -4(%rbp), %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function c_direct _c_direct: ## @c_direct .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) movq -8(%rbp), %rax movq %rax, -16(%rbp) leaq _c_stack(%rip), %rax movq %rax, -24(%rbp) movl $0, -28(%rbp) leaq Ltmp0(%rip), %rax movq %rax, _c_op_bz(%rip) movq -16(%rbp), %rax movq %rax, %rcx addq $8, %rcx movq %rcx, -16(%rbp) movq (%rax), %rax movq %rax, -40(%rbp) ## 8-byte Spill jmp LBB1_17 Ltmp0: ## Block address taken LBB1_1: ## in Loop: Header=BB1_17 Depth=1 cmpl $0, -28(%rbp) je LBB1_3 ## %bb.2: ## in Loop: Header=BB1_17 Depth=1 jmp LBB1_3 LBB1_3: ## in Loop: Header=BB1_17 Depth=1 jmp LBB1_4 LBB1_4: ## in Loop: Header=BB1_17 Depth=1 movl -28(%rbp), %ecx movq -24(%rbp), %rax movl %ecx, -16(%rax) movq -16(%rbp), %rax movq -8(%rax), %rax movq %rax, -40(%rbp) ## 8-byte Spill jmp LBB1_17 Ltmp1: ## Block address taken LBB1_5: movl -28(%rbp), %ecx movq -24(%rbp), %rdx movq -24(%rdx), %rax movslq %ecx, %rcx movq %rcx, %rdi shlq $2, %rdi movq %rax, %rsi addq %rdi, %rsi movq %rsi, -24(%rdx) movl (%rax,%rcx,4), %eax movl %eax, -28(%rbp) Ltmp2: ## Block address taken LBB1_6: movl -28(%rbp), %ecx movq -24(%rbp), %rax movq -24(%rax), %rax movl %ecx, (%rax) Ltmp3: ## Block address taken LBB1_7: movl -28(%rbp), %eax movq -24(%rbp), %rcx movq -24(%rcx), %rcx addl (%rcx), %eax movl %eax, (%rcx) movl %eax, -28(%rbp) Ltmp4: ## Block address taken LBB1_8: movl -28(%rbp), %edx movq -24(%rbp), %rax movq -24(%rax), %rcx movl (%rcx), %eax subl %edx, %eax movl %eax, (%rcx) movl %eax, -28(%rbp) Ltmp5: ## Block address taken LBB1_9: movl -28(%rbp), %eax movq -24(%rbp), %rcx movq -24(%rcx), %rcx imull (%rcx), %eax movl %eax, (%rcx) movl %eax, -28(%rbp) Ltmp6: ## Block address taken LBB1_10: movl -28(%rbp), %esi movq -24(%rbp), %rax movq -24(%rax), %rcx movl (%rcx), %eax cltd idivl %esi movl %eax, (%rcx) movl %eax, -28(%rbp) Ltmp7: ## Block address taken LBB1_11: movl -28(%rbp), %ecx movq -24(%rbp), %rax movq -24(%rax), %rax movq %rax, -48(%rbp) ## 8-byte Spill movl (%rax), %eax cltd idivl %ecx movq -48(%rbp), %rax ## 8-byte Reload movl %edx, (%rax) movl %edx, -28(%rbp) Ltmp8: ## Block address taken LBB1_12: movl -28(%rbp), %eax movq -24(%rbp), %rcx movq -24(%rcx), %rcx orl (%rcx), %eax movl %eax, (%rcx) movl %eax, -28(%rbp) Ltmp9: ## Block address taken LBB1_13: movl -28(%rbp), %eax movq -24(%rbp), %rcx movq -24(%rcx), %rcx xorl (%rcx), %eax movl %eax, (%rcx) movl %eax, -28(%rbp) Ltmp10: ## Block address taken LBB1_14: movl -28(%rbp), %eax movq -24(%rbp), %rcx movq -24(%rcx), %rcx andl (%rcx), %eax movl %eax, (%rcx) movl %eax, -28(%rbp) Ltmp11: ## Block address taken LBB1_15: movl -28(%rbp), %ecx movq -24(%rbp), %rax movq -24(%rax), %rax movq %rax, -56(%rbp) ## 8-byte Spill movl (%rax), %eax ## kill: def $cl killed $ecx shll %cl, %eax movq -56(%rbp), %rcx ## 8-byte Reload movl %eax, (%rcx) movl %eax, -28(%rbp) Ltmp12: ## Block address taken LBB1_16: movl -28(%rbp), %ecx movq -24(%rbp), %rax movq -24(%rax), %rax movq %rax, -64(%rbp) ## 8-byte Spill movl (%rax), %eax ## kill: def $cl killed $ecx sarl %cl, %eax movq -64(%rbp), %rcx ## 8-byte Reload movl %eax, (%rcx) movl %eax, -28(%rbp) popq %rbp retq LBB1_17: ## =>This Inner Loop Header: Depth=1 movq -40(%rbp), %rax ## 8-byte Reload jmpq *%rax .cfi_endproc ## -- End function .zerofill __DATA,__bss,_c_stack,8320,4 ## @c_stack .section __DATA,__data .p2align 4 ## @c_direct.ops _c_direct.ops: .quad Ltmp1 .quad Ltmp2 .quad Ltmp3 .quad Ltmp4 .quad Ltmp5 .quad Ltmp6 .quad Ltmp7 .quad Ltmp8 .quad Ltmp9 .quad Ltmp10 .quad Ltmp11 .quad Ltmp12 .zerofill __DATA,__bss,_c_op_bz,8,3 ## @c_op_bz .subsections_via_symbols
the_stack_data/62051.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/56033.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _AtEoIF ; -- Begin function AtEoIF .p2align 2 _AtEoIF: ; @AtEoIF .cfi_startproc ; %bb.0: mov w0, #0 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _AtEoIF ## -- Begin function AtEoIF .p2align 4, 0x90 _AtEoIF: ## @AtEoIF .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp xorl %eax, %eax popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/91214.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _getw ; -- Begin function getw .p2align 2 _getw: ; @getw .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 x3, [sp, #8] add x0, sp, #4 mov x1, #4 mov x2, #1 bl _fread subs x8, x0, #1 cset w8, ne tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: ldr w8, [sp, #4] str w8, [sp] ; 4-byte Folded Spill b LBB0_3 LBB0_2: mov w8, #-1 str w8, [sp] ; 4-byte Folded Spill b LBB0_3 LBB0_3: ldr w0, [sp] ; 4-byte Folded Reload ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _getw ## -- Begin function getw .p2align 4, 0x90 _getw: ## @getw .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 -12(%rbp), %rdi movq -8(%rbp), %rcx movl $4, %esi movl $1, %edx callq _fread cmpq $1, %rax jne LBB0_2 ## %bb.1: movl -12(%rbp), %eax movl %eax, -16(%rbp) ## 4-byte Spill jmp LBB0_3 LBB0_2: movl $4294967295, %eax ## imm = 0xFFFFFFFF movl %eax, -16(%rbp) ## 4-byte Spill jmp LBB0_3 LBB0_3: movl -16(%rbp), %eax ## 4-byte Reload addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/59512844.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 mov w8, #0 stur w8, [x29, #-36] ; 4-byte Folded Spill stur wzr, [x29, #-4] sub x8, x29, #8 str x8, [sp, #24] ; 8-byte Folded Spill stur x8, [x29, #-24] sub x8, x29, #12 str x8, [sp, #32] ; 8-byte Folded Spill stur x8, [x29, #-32] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldr x10, [sp, #24] ; 8-byte Folded Reload ldr x8, [sp, #32] ; 8-byte Folded Reload mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf ldur x0, [x29, #-24] ldur x1, [x29, #-32] bl _scambia ldur x8, [x29, #-24] ldr w8, [x8] ; implicit-def: $x10 mov x10, x8 ldur x8, [x29, #-32] ldr w9, [x8] ; 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 ldur w0, [x29, #-36] ; 4-byte Folded Reload ldp x29, x30, [sp, #80] ; 16-byte Folded Reload add sp, sp, #96 ret .cfi_endproc ; -- End function .globl _scambia ; -- Begin function scambia .p2align 2 _scambia: ; @scambia .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, #24] str x1, [sp, #16] ldr x8, [sp, #24] ldr w8, [x8] str w8, [sp, #12] ldr x8, [sp, #16] ldr w8, [x8] str w8, [sp, #8] ldr w8, [sp, #12] ldr x9, [sp, #16] str w8, [x9] ldr w8, [sp, #8] ldr x9, [sp, #24] str w8, [x9] add sp, sp, #32 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Inserisci due interi: " l_.str.1: ; @.str.1 .asciz "%d %d" l_.str.2: ; @.str.2 .asciz "Interi scambiati: %d %d\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl $0, -4(%rbp) leaq -8(%rbp), %rax movq %rax, -24(%rbp) leaq -12(%rbp), %rax movq %rax, -32(%rbp) leaq L_.str(%rip), %rdi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi leaq -8(%rbp), %rsi leaq -12(%rbp), %rdx movb $0, %al callq _scanf movq -24(%rbp), %rdi movq -32(%rbp), %rsi callq _scambia movq -24(%rbp), %rax movl (%rax), %esi movq -32(%rbp), %rax movl (%rax), %edx leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf xorl %eax, %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _scambia ## -- Begin function scambia .p2align 4, 0x90 _scambia: ## @scambia .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) movq -8(%rbp), %rax movl (%rax), %eax movl %eax, -20(%rbp) movq -16(%rbp), %rax movl (%rax), %eax movl %eax, -24(%rbp) movl -20(%rbp), %ecx movq -16(%rbp), %rax movl %ecx, (%rax) movl -24(%rbp), %ecx movq -8(%rbp), %rax movl %ecx, (%rax) popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Inserisci due interi: " L_.str.1: ## @.str.1 .asciz "%d %d" L_.str.2: ## @.str.2 .asciz "Interi scambiati: %d %d\n" .subsections_via_symbols
the_stack_data/151704729.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _fun2 ; -- Begin function fun2 .p2align 2 _fun2: ; @fun2 .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 w8, #1 stur w8, [x29, #-12] b LBB0_1 LBB0_1: adrp x0, _buf@GOTPAGE ldr x0, [x0, _buf@GOTPAGEOFF] bl _setjmp b LBB0_2 LBB0_2: b LBB0_3 LBB0_3: ; =>This Loop Header: Depth=1 ; Child Loop BB0_5 Depth 2 ldur w8, [x29, #-12] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_12 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_3 Depth=1 stur wzr, [x29, #-12] b LBB0_5 LBB0_5: ; Parent Loop BB0_3 Depth=1 ; => This Inner Loop Header: Depth=2 ldur w8, [x29, #-12] str w8, [sp, #16] ; 4-byte Folded Spill ldur x8, [x29, #-8] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB0_7 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_5 Depth=2 ldur x8, [x29, #-8] ldr w8, [x8] str w8, [sp, #12] ; 4-byte Folded Spill b LBB0_8 LBB0_7: ; in Loop: Header=BB0_5 Depth=2 mov w8, #1 str w8, [sp, #12] ; 4-byte Folded Spill b LBB0_8 LBB0_8: ; in Loop: Header=BB0_5 Depth=2 ldr w8, [sp, #16] ; 4-byte Folded Reload ldr w9, [sp, #12] ; 4-byte Folded Reload subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_11 b LBB0_9 LBB0_9: ; in Loop: Header=BB0_5 Depth=2 ldur x0, [x29, #-8] bl _fun2 b LBB0_10 LBB0_10: ; in Loop: Header=BB0_5 Depth=2 ldur w8, [x29, #-12] add w8, w8, #1 stur w8, [x29, #-12] b LBB0_5 LBB0_11: ; in Loop: Header=BB0_3 Depth=1 b LBB0_3 LBB0_12: mov w0, #1 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .comm _buf,192,2 ; @buf .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _fun2 ## -- Begin function fun2 .p2align 4, 0x90 _fun2: ## @fun2 .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, -12(%rbp) ## %bb.1: movq _buf@GOTPCREL(%rip), %rdi callq _setjmp ## %bb.2: jmp LBB0_3 LBB0_3: ## =>This Loop Header: Depth=1 ## Child Loop BB0_5 Depth 2 cmpl $0, -12(%rbp) je LBB0_12 ## %bb.4: ## in Loop: Header=BB0_3 Depth=1 movl $0, -12(%rbp) LBB0_5: ## Parent Loop BB0_3 Depth=1 ## => This Inner Loop Header: Depth=2 movl -12(%rbp), %eax movl %eax, -16(%rbp) ## 4-byte Spill cmpq $0, -8(%rbp) je LBB0_7 ## %bb.6: ## in Loop: Header=BB0_5 Depth=2 movq -8(%rbp), %rax movl (%rax), %eax movl %eax, -20(%rbp) ## 4-byte Spill jmp LBB0_8 LBB0_7: ## in Loop: Header=BB0_5 Depth=2 movl $1, %eax movl %eax, -20(%rbp) ## 4-byte Spill jmp LBB0_8 LBB0_8: ## in Loop: Header=BB0_5 Depth=2 movl -16(%rbp), %eax ## 4-byte Reload movl -20(%rbp), %ecx ## 4-byte Reload cmpl %ecx, %eax jge LBB0_11 ## %bb.9: ## in Loop: Header=BB0_5 Depth=2 movq -8(%rbp), %rdi callq _fun2 ## %bb.10: ## in Loop: Header=BB0_5 Depth=2 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB0_5 LBB0_11: ## in Loop: Header=BB0_3 Depth=1 jmp LBB0_3 LBB0_12: movl $1, %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .comm _buf,148,4 ## @buf .subsections_via_symbols
the_stack_data/26700771.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _setupSocket ; -- Begin function setupSocket .p2align 2 _setupSocket: ; @setupSocket .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] mov w0, #2 mov w1, #1 mov w2, #0 bl _socket ldr x8, [sp, #16] str w0, [x8] ldr x9, [sp, #8] mov w8, #2 strb w8, [x9, #1] ldr x9, [sp, #8] mov w8, #53764 strh w8, [x9, #2] ldr x8, [sp, #8] str wzr, [x8, #4] ldr x8, [sp, #16] ldr w0, [x8] ldr x1, [sp, #8] mov w2, #16 bl _bind ldur w0, [x29, #-4] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _storage ; -- Begin function storage .p2align 2 _storage: ; @storage .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, _STORAGE@GOTPAGE ldr x8, [x8, _STORAGE@GOTPAGEOFF] str x8, [sp, #8] ; 8-byte Folded Spill adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF str x1, [sp, #16] ; 8-byte Folded Spill bl _fopen ldr x1, [sp, #16] ; 8-byte Folded Reload stur x0, [x29, #-16] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _fopen ldr x1, [sp, #16] ; 8-byte Folded Reload stur x0, [x29, #-24] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _fopen ldr x1, [sp, #16] ; 8-byte Folded Reload str x0, [sp, #32] adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _fopen str x0, [sp, #24] ldur x8, [x29, #-16] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: 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 _perror mov w0, #-1 bl _exit LBB1_2: ldur x8, [x29, #-24] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB1_4 b LBB1_3 LBB1_3: adrp x0, l_.str.7@PAGE add x0, x0, l_.str.7@PAGEOFF bl _printf adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _perror mov w0, #-1 bl _exit LBB1_4: ldr x8, [sp, #32] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB1_6 b LBB1_5 LBB1_5: adrp x0, l_.str.8@PAGE add x0, x0, l_.str.8@PAGEOFF bl _printf adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _perror mov w0, #-1 bl _exit LBB1_6: ldr x8, [sp, #24] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB1_8 b LBB1_7 LBB1_7: adrp x0, l_.str.9@PAGE add x0, x0, l_.str.9@PAGEOFF bl _printf adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _perror mov w0, #-1 bl _exit LBB1_8: ldr x9, [sp, #8] ; 8-byte Folded Reload ldur x8, [x29, #-16] str x8, [x9] ldur x8, [x29, #-24] str x8, [x9, #8] ldr x8, [sp, #32] str x8, [x9, #16] ldr x8, [sp, #24] str x8, [x9, #24] ldur w0, [x29, #-4] ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #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, _STORAGE@GOTPAGE ldr x8, [x8, _STORAGE@GOTPAGEOFF] str x8, [sp, #8] ; 8-byte Folded Spill adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] stur wzr, [x29, #-44] stur w0, [x29, #-48] str x1, [sp, #56] add x0, sp, #52 sub x1, x29, #24 bl _setupSocket ldr w0, [sp, #52] mov w1, #5 bl _listen str w0, [sp, #44] adrp x0, l_.str.10@PAGE add x0, x0, l_.str.10@PAGEOFF bl _system str w0, [sp, #28] adrp x0, l_.str.11@PAGE add x0, x0, l_.str.11@PAGEOFF bl _printf add x2, sp, #40 mov w8, #16 str w8, [sp, #40] ldr w0, [sp, #52] sub x1, x29, #40 bl _accept str w0, [sp, #48] ldur w8, [x29, #-36] mov x0, x8 bl _inet_ntoa str x0, [sp, #16] ldr x0, [sp, #16] adrp x1, l_.str.12@PAGE add x1, x1, l_.str.12@PAGEOFF bl _strcmp subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB2_2 b LBB2_1 LBB2_1: adrp x0, l_.str.13@PAGE add x0, x0, l_.str.13@PAGEOFF bl _printf b LBB2_3 LBB2_2: adrp x0, l_.str.14@PAGE add x0, x0, l_.str.14@PAGEOFF bl _printf bl _storage b LBB2_3 LBB2_3: ldr x8, [sp, #8] ; 8-byte Folded Reload ldr x0, [x8] bl _fclose ldr x8, [sp, #8] ; 8-byte Folded Reload ldr x0, [x8, #8] bl _fclose ldr x8, [sp, #8] ; 8-byte Folded Reload ldr x0, [x8, #16] bl _fclose ldr x8, [sp, #8] ; 8-byte Folded Reload ldr x0, [x8, #24] bl _fclose ldr w0, [sp, #48] bl _close ldr w0, [sp, #52] bl _close 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_5 b LBB2_4 LBB2_4: bl ___stack_chk_fail LBB2_5: mov w0, #0 ldp x29, x30, [sp, #112] ; 16-byte Folded Reload add sp, sp, #128 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "cardset1.ods" l_.str.1: ; @.str.1 .asciz "w+" l_.str.2: ; @.str.2 .asciz "cardset2.ods" l_.str.3: ; @.str.3 .asciz "cardset3.ods" l_.str.4: ; @.str.4 .asciz "cardset4.ods" l_.str.5: ; @.str.5 .asciz "\033[31mcardset1" l_.str.6: ; @.str.6 .asciz "fopen: \033[0m" l_.str.7: ; @.str.7 .asciz "\033[31mcardset2" l_.str.8: ; @.str.8 .asciz "\033[31mcardset3" l_.str.9: ; @.str.9 .asciz "\033[31mcardset4" .comm _STORAGE,32,3 ; @STORAGE l_.str.10: ; @.str.10 .asciz "gnome-terminal --command=\"./deal 3\" " l_.str.11: ; @.str.11 .asciz "\033[32m==== Waiting for dealing cards ====\n\n\033[0m" l_.str.12: ; @.str.12 .asciz "127.0.0.1" l_.str.13: ; @.str.13 .asciz "\033[31mNot the same IP\n\033[0m" l_.str.14: ; @.str.14 .asciz "\033[32mGet!\n\033[0m" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _setupSocket ## -- Begin function setupSocket .p2align 4, 0x90 _setupSocket: ## @setupSocket .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 $2, %edi movl $1, %esi xorl %edx, %edx callq _socket movl %eax, %ecx movq -16(%rbp), %rax movl %ecx, (%rax) movq -24(%rbp), %rax movb $2, 1(%rax) movq -24(%rbp), %rax movw $-11772, 2(%rax) ## imm = 0xD204 movq -24(%rbp), %rax movl $0, 4(%rax) movq -16(%rbp), %rax movl (%rax), %edi movq -24(%rbp), %rsi movl $16, %edx callq _bind movl -4(%rbp), %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _storage ## -- Begin function storage .p2align 4, 0x90 _storage: ## @storage .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(%rip), %rdi leaq L_.str.1(%rip), %rsi callq _fopen movq %rax, -16(%rbp) leaq L_.str.2(%rip), %rdi leaq L_.str.1(%rip), %rsi callq _fopen movq %rax, -24(%rbp) leaq L_.str.3(%rip), %rdi leaq L_.str.1(%rip), %rsi callq _fopen movq %rax, -32(%rbp) leaq L_.str.4(%rip), %rdi leaq L_.str.1(%rip), %rsi callq _fopen movq %rax, -40(%rbp) cmpq $0, -16(%rbp) jne LBB1_2 ## %bb.1: leaq L_.str.5(%rip), %rdi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _printf leaq L_.str.6(%rip), %rdi callq _perror movl $-1, %edi callq _exit LBB1_2: cmpq $0, -24(%rbp) jne LBB1_4 ## %bb.3: leaq L_.str.7(%rip), %rdi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _printf leaq L_.str.6(%rip), %rdi callq _perror movl $-1, %edi callq _exit LBB1_4: cmpq $0, -32(%rbp) jne LBB1_6 ## %bb.5: leaq L_.str.8(%rip), %rdi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _printf leaq L_.str.6(%rip), %rdi callq _perror movl $-1, %edi callq _exit LBB1_6: cmpq $0, -40(%rbp) jne LBB1_8 ## %bb.7: leaq L_.str.9(%rip), %rdi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _printf leaq L_.str.6(%rip), %rdi callq _perror movl $-1, %edi callq _exit LBB1_8: movq -16(%rbp), %rcx movq _STORAGE@GOTPCREL(%rip), %rax movq %rcx, (%rax) movq -24(%rbp), %rcx movq _STORAGE@GOTPCREL(%rip), %rax movq %rcx, 8(%rax) movq -32(%rbp), %rcx movq _STORAGE@GOTPCREL(%rip), %rax movq %rcx, 16(%rax) movq -40(%rbp), %rcx movq _STORAGE@GOTPCREL(%rip), %rax movq %rcx, 24(%rax) 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 $96, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -44(%rbp) movl %edi, -48(%rbp) movq %rsi, -56(%rbp) leaq -60(%rbp), %rdi leaq -24(%rbp), %rsi callq _setupSocket movl -60(%rbp), %edi movl $5, %esi callq _listen movl %eax, -68(%rbp) leaq L_.str.10(%rip), %rdi callq _system movl %eax, -84(%rbp) leaq L_.str.11(%rip), %rdi movb $0, %al callq _printf movl $16, -72(%rbp) movl -60(%rbp), %edi leaq -40(%rbp), %rsi leaq -72(%rbp), %rdx callq _accept movl %eax, -64(%rbp) movl -36(%rbp), %edi callq _inet_ntoa movq %rax, -96(%rbp) movq -96(%rbp), %rdi leaq L_.str.12(%rip), %rsi callq _strcmp cmpl $0, %eax je LBB2_2 ## %bb.1: leaq L_.str.13(%rip), %rdi movb $0, %al callq _printf jmp LBB2_3 LBB2_2: leaq L_.str.14(%rip), %rdi movb $0, %al callq _printf callq _storage LBB2_3: movq _STORAGE@GOTPCREL(%rip), %rax movq (%rax), %rdi callq _fclose movq _STORAGE@GOTPCREL(%rip), %rax movq 8(%rax), %rdi callq _fclose movq _STORAGE@GOTPCREL(%rip), %rax movq 16(%rax), %rdi callq _fclose movq _STORAGE@GOTPCREL(%rip), %rax movq 24(%rax), %rdi callq _fclose movl -64(%rbp), %edi callq _close movl -60(%rbp), %edi callq _close movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB2_5 ## %bb.4: xorl %eax, %eax addq $96, %rsp popq %rbp retq LBB2_5: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "cardset1.ods" L_.str.1: ## @.str.1 .asciz "w+" L_.str.2: ## @.str.2 .asciz "cardset2.ods" L_.str.3: ## @.str.3 .asciz "cardset3.ods" L_.str.4: ## @.str.4 .asciz "cardset4.ods" L_.str.5: ## @.str.5 .asciz "\033[31mcardset1" L_.str.6: ## @.str.6 .asciz "fopen: \033[0m" L_.str.7: ## @.str.7 .asciz "\033[31mcardset2" L_.str.8: ## @.str.8 .asciz "\033[31mcardset3" L_.str.9: ## @.str.9 .asciz "\033[31mcardset4" .comm _STORAGE,32,3 ## @STORAGE L_.str.10: ## @.str.10 .asciz "gnome-terminal --command=\"./deal 3\" " L_.str.11: ## @.str.11 .asciz "\033[32m==== Waiting for dealing cards ====\n\n\033[0m" L_.str.12: ## @.str.12 .asciz "127.0.0.1" L_.str.13: ## @.str.13 .asciz "\033[31mNot the same IP\n\033[0m" L_.str.14: ## @.str.14 .asciz "\033[32mGet!\n\033[0m" .subsections_via_symbols
the_stack_data/1074054.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _debug ; -- Begin function debug .p2align 2 _debug: ; @debug .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #8] ldr x8, [sp, #8] mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] stur w0, [x29, #-8] str x1, [sp, #16] str wzr, [sp, #8] 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 ldr w8, [sp, #8] add w8, w8, #5 str w8, [sp, #8] ldr w9, [sp, #8] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf b 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: 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 "debug info :%s\n" l_.str.1: ; @.str.1 .asciz "now a=%d\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _debug ## -- Begin function debug .p2align 4, 0x90 _debug: ## @debug .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) movq -8(%rbp), %rsi leaq L_.str(%rip), %rdi movb $0, %al callq _printf addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl $0, -4(%rbp) movl %edi, -8(%rbp) movq %rsi, -16(%rbp) movl $0, -24(%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 movl -24(%rbp), %eax addl $5, %eax movl %eax, -24(%rbp) movl -24(%rbp), %esi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf ## %bb.3: ## in Loop: Header=BB1_1 Depth=1 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB1_1 LBB1_4: xorl %eax, %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "debug info :%s\n" L_.str.1: ## @.str.1 .asciz "now a=%d\n" .subsections_via_symbols
the_stack_data/200144050.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 ; Start of file scope inline assembly func_start: .globl func_start func_end: .globl func_end fund_start: .globl fund_start fund_end: .globl fund_end ; End of file scope inline assembly .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] bl _func str w0, [sp, #8] ; 4-byte Folded Spill bl _fund mov x8, x0 ldr w0, [sp, #8] ; 4-byte Folded Reload add w0, w0, w8 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function func _func: ; @func .cfi_startproc ; %bb.0: adrp x8, _v@PAGE ldr w9, [x8, _v@PAGEOFF] add w9, w9, #1 str w9, [x8, _v@PAGEOFF] ; InlineAsm Start func0: .globl func0 ; InlineAsm End ldr w9, [x8, _v@PAGEOFF] add w9, w9, #1 str w9, [x8, _v@PAGEOFF] ; InlineAsm Start func1: .globl func1 ; InlineAsm End ldr w9, [x8, _v@PAGEOFF] add w9, w9, #1 str w9, [x8, _v@PAGEOFF] ; InlineAsm Start func2: .globl func2 ; InlineAsm End ldr w9, [x8, _v@PAGEOFF] add w9, w9, #1 str w9, [x8, _v@PAGEOFF] ; InlineAsm Start func3: .globl func3 ; InlineAsm End ldr w0, [x8, _v@PAGEOFF] ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function fund _fund: ; @fund .cfi_startproc ; %bb.0: adrp x8, _v@PAGE ldr w9, [x8, _v@PAGEOFF] add w9, w9, #1 str w9, [x8, _v@PAGEOFF] ; InlineAsm Start fund0: .globl fund0 ; InlineAsm End ldr w9, [x8, _v@PAGEOFF] add w9, w9, #1 str w9, [x8, _v@PAGEOFF] ; InlineAsm Start fund1: .globl fund1 ; InlineAsm End ldr w9, [x8, _v@PAGEOFF] add w9, w9, #1 str w9, [x8, _v@PAGEOFF] ; InlineAsm Start fund2: .globl fund2 ; InlineAsm End ldr w9, [x8, _v@PAGEOFF] add w9, w9, #1 str w9, [x8, _v@PAGEOFF] ; InlineAsm Start fund3: .globl fund3 ; InlineAsm End ldr w0, [x8, _v@PAGEOFF] ret .cfi_endproc ; -- End function .zerofill __DATA,__bss,_v,4,2 ; @v .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 ## Start of file scope inline assembly func_start: .globl func_start func_end: .globl func_end fund_start: .globl fund_start fund_end: .globl fund_end ## End of file scope inline assembly .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 _func movl %eax, -8(%rbp) ## 4-byte Spill callq _fund movl %eax, %ecx movl -8(%rbp), %eax ## 4-byte Reload addl %ecx, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function func _func: ## @func .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl _v(%rip), %eax addl $1, %eax movl %eax, _v(%rip) ## InlineAsm Start func0: .globl func0 ## InlineAsm End movl _v(%rip), %eax addl $1, %eax movl %eax, _v(%rip) ## InlineAsm Start func1: .globl func1 ## InlineAsm End movl _v(%rip), %eax addl $1, %eax movl %eax, _v(%rip) ## InlineAsm Start func2: .globl func2 ## InlineAsm End movl _v(%rip), %eax addl $1, %eax movl %eax, _v(%rip) ## InlineAsm Start func3: .globl func3 ## InlineAsm End movl _v(%rip), %eax popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function fund _fund: ## @fund .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl _v(%rip), %eax addl $1, %eax movl %eax, _v(%rip) ## InlineAsm Start fund0: .globl fund0 ## InlineAsm End movl _v(%rip), %eax addl $1, %eax movl %eax, _v(%rip) ## InlineAsm Start fund1: .globl fund1 ## InlineAsm End movl _v(%rip), %eax addl $1, %eax movl %eax, _v(%rip) ## InlineAsm Start fund2: .globl fund2 ## InlineAsm End movl _v(%rip), %eax addl $1, %eax movl %eax, _v(%rip) ## InlineAsm Start fund3: .globl fund3 ## InlineAsm End movl _v(%rip), %eax popq %rbp retq .cfi_endproc ## -- End function .zerofill __DATA,__bss,_v,4,2 ## @v .subsections_via_symbols
the_stack_data/125186.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] mov x9, sp sub x8, x29, #8 str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _scanf ldursw x8, [x29, #-8] lsl x0, x8, #2 bl _malloc stur x0, [x29, #-16] stur wzr, [x29, #-20] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-20] ldur w9, [x29, #-8] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_4 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldur x8, [x29, #-16] ldursw x9, [x29, #-20] add x8, x8, x9, lsl #2 mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _scanf b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-20] add w8, w8, #1 stur w8, [x29, #-20] b LBB0_1 LBB0_4: str wzr, [sp, #24] b LBB0_5 LBB0_5: ; =>This Loop Header: Depth=1 ; Child Loop BB0_7 Depth 2 ldr w8, [sp, #24] ldur w9, [x29, #-8] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_14 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_5 Depth=1 ldur w8, [x29, #-8] subs w8, w8, #1 str w8, [sp, #20] b LBB0_7 LBB0_7: ; Parent Loop BB0_5 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #20] ldr w9, [sp, #24] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB0_12 b LBB0_8 LBB0_8: ; in Loop: Header=BB0_7 Depth=2 ldur x8, [x29, #-16] ldrsw x9, [sp, #20] ldr w8, [x8, x9, lsl #2] ldur x9, [x29, #-16] ldr w10, [sp, #20] subs w10, w10, #1 ldr w9, [x9, w10, sxtw #2] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_10 b LBB0_9 LBB0_9: ; in Loop: Header=BB0_7 Depth=2 ldur x8, [x29, #-16] ldrsw x9, [sp, #20] ldr w8, [x8, x9, lsl #2] ldur x9, [x29, #-16] ldr w10, [sp, #20] subs w10, w10, #1 ldr w9, [x9, w10, sxtw #2] eor w8, w8, w9 ldur x9, [x29, #-16] ldrsw x10, [sp, #20] str w8, [x9, x10, lsl #2] ldur x8, [x29, #-16] ldr w9, [sp, #20] subs w9, w9, #1 ldr w8, [x8, w9, sxtw #2] ldur x9, [x29, #-16] ldrsw x10, [sp, #20] ldr w9, [x9, x10, lsl #2] eor w8, w8, w9 ldur x9, [x29, #-16] ldr w10, [sp, #20] subs w10, w10, #1 str w8, [x9, w10, sxtw #2] ldur x8, [x29, #-16] ldrsw x9, [sp, #20] ldr w8, [x8, x9, lsl #2] ldur x9, [x29, #-16] ldr w10, [sp, #20] subs w10, w10, #1 ldr w9, [x9, w10, sxtw #2] eor w8, w8, w9 ldur x9, [x29, #-16] ldrsw x10, [sp, #20] str w8, [x9, x10, lsl #2] b LBB0_10 LBB0_10: ; in Loop: Header=BB0_7 Depth=2 b LBB0_11 LBB0_11: ; in Loop: Header=BB0_7 Depth=2 ldr w8, [sp, #20] subs w8, w8, #1 str w8, [sp, #20] b LBB0_7 LBB0_12: ; in Loop: Header=BB0_5 Depth=1 b LBB0_13 LBB0_13: ; in Loop: Header=BB0_5 Depth=1 ldr w8, [sp, #24] add w8, w8, #1 str w8, [sp, #24] b LBB0_5 LBB0_14: str wzr, [sp, #16] b LBB0_15 LBB0_15: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #16] ldur w9, [x29, #-8] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_18 b LBB0_16 LBB0_16: ; in Loop: Header=BB0_15 Depth=1 ldur x8, [x29, #-16] ldrsw x9, [sp, #16] ldr w9, [x8, x9, lsl #2] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf b LBB0_17 LBB0_17: ; in Loop: Header=BB0_15 Depth=1 ldr w8, [sp, #16] add w8, w8, #1 str w8, [sp, #16] b LBB0_15 LBB0_18: 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 "%d " .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl $0, -4(%rbp) leaq L_.str(%rip), %rdi leaq -8(%rbp), %rsi movb $0, %al callq _scanf movslq -8(%rbp), %rdi shlq $2, %rdi callq _malloc movq %rax, -16(%rbp) movl $0, -20(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movl -20(%rbp), %eax cmpl -8(%rbp), %eax jge LBB0_4 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movq -16(%rbp), %rsi movslq -20(%rbp), %rax shlq $2, %rax addq %rax, %rsi leaq L_.str(%rip), %rdi movb $0, %al callq _scanf ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB0_1 LBB0_4: movl $0, -24(%rbp) LBB0_5: ## =>This Loop Header: Depth=1 ## Child Loop BB0_7 Depth 2 movl -24(%rbp), %eax cmpl -8(%rbp), %eax jge LBB0_14 ## %bb.6: ## in Loop: Header=BB0_5 Depth=1 movl -8(%rbp), %eax subl $1, %eax movl %eax, -28(%rbp) LBB0_7: ## Parent Loop BB0_5 Depth=1 ## => This Inner Loop Header: Depth=2 movl -28(%rbp), %eax cmpl -24(%rbp), %eax jle LBB0_12 ## %bb.8: ## in Loop: Header=BB0_7 Depth=2 movq -16(%rbp), %rax movslq -28(%rbp), %rcx movl (%rax,%rcx,4), %eax movq -16(%rbp), %rcx movl -28(%rbp), %edx subl $1, %edx movslq %edx, %rdx cmpl (%rcx,%rdx,4), %eax jge LBB0_10 ## %bb.9: ## in Loop: Header=BB0_7 Depth=2 movq -16(%rbp), %rax movslq -28(%rbp), %rcx movl (%rax,%rcx,4), %edx movq -16(%rbp), %rax movl -28(%rbp), %ecx subl $1, %ecx movslq %ecx, %rcx xorl (%rax,%rcx,4), %edx movq -16(%rbp), %rax movslq -28(%rbp), %rcx movl %edx, (%rax,%rcx,4) movq -16(%rbp), %rax movl -28(%rbp), %ecx subl $1, %ecx movslq %ecx, %rcx movl (%rax,%rcx,4), %edx movq -16(%rbp), %rax movslq -28(%rbp), %rcx xorl (%rax,%rcx,4), %edx movq -16(%rbp), %rax movl -28(%rbp), %ecx subl $1, %ecx movslq %ecx, %rcx movl %edx, (%rax,%rcx,4) movq -16(%rbp), %rax movslq -28(%rbp), %rcx movl (%rax,%rcx,4), %edx movq -16(%rbp), %rax movl -28(%rbp), %ecx subl $1, %ecx movslq %ecx, %rcx xorl (%rax,%rcx,4), %edx movq -16(%rbp), %rax movslq -28(%rbp), %rcx movl %edx, (%rax,%rcx,4) LBB0_10: ## in Loop: Header=BB0_7 Depth=2 jmp LBB0_11 LBB0_11: ## in Loop: Header=BB0_7 Depth=2 movl -28(%rbp), %eax addl $-1, %eax movl %eax, -28(%rbp) jmp LBB0_7 LBB0_12: ## in Loop: Header=BB0_5 Depth=1 jmp LBB0_13 LBB0_13: ## in Loop: Header=BB0_5 Depth=1 movl -24(%rbp), %eax addl $1, %eax movl %eax, -24(%rbp) jmp LBB0_5 LBB0_14: movl $0, -32(%rbp) LBB0_15: ## =>This Inner Loop Header: Depth=1 movl -32(%rbp), %eax cmpl -8(%rbp), %eax jge LBB0_18 ## %bb.16: ## in Loop: Header=BB0_15 Depth=1 movq -16(%rbp), %rax movslq -32(%rbp), %rcx movl (%rax,%rcx,4), %esi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf ## %bb.17: ## in Loop: Header=BB0_15 Depth=1 movl -32(%rbp), %eax addl $1, %eax movl %eax, -32(%rbp) jmp LBB0_15 LBB0_18: xorl %eax, %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d" L_.str.1: ## @.str.1 .asciz "%d " .subsections_via_symbols
the_stack_data/6487.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _kill ; -- Begin function kill .p2align 2 _kill: ; @kill .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 ___error mov w8, #22 str w8, [x0] mov w0, #-1 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 _kill ## -- Begin function kill .p2align 4, 0x90 _kill: ## @kill .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 ___error movl $22, (%rax) movl $4294967295, %eax ## imm = 0xFFFFFFFF addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/750720.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _mk_foo ; -- Begin function mk_foo .p2align 2 _mk_foo: ; @mk_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 stur w0, [x29, #-4] mov x0, #8 bl _malloc str x0, [sp] ldr x9, [sp] mov w8, #123 str w8, [x9] ldur w8, [x29, #-4] ldr x9, [sp] str w8, [x9, #4] ldr x0, [sp] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _mk_bar ; -- Begin function mk_bar .p2align 2 _mk_bar: ; @mk_bar .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] mov x0, #12 bl _malloc str x0, [sp] ldr x9, [sp] mov w8, #234 str w8, [x9] ldur w8, [x29, #-4] ldr x9, [sp] str w8, [x9, #4] ldr w8, [sp, #8] ldr x9, [sp] str w8, [x9, #8] ldr x0, [sp] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _to_foo ; -- Begin function to_foo .p2align 2 _to_foo: ; @to_foo .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] ldr x0, [sp, #8] add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _is_bar ; -- Begin function is_bar .p2align 2 _is_bar: ; @is_bar .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] ldr x8, [sp, #8] ldr w8, [x8] subs w8, w8, #234 cset w8, eq and w0, w8, #0x1 add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _to_bar ; -- Begin function to_bar .p2align 2 _to_bar: ; @to_bar .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] ldr x0, [sp, #8] add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _mk_entry ; -- Begin function mk_entry .p2align 2 _mk_entry: ; @mk_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, #8] mov x0, #16 bl _malloc str x0, [sp] ldr x8, [sp, #8] ldr x9, [sp] str x8, [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 _mk_list ; -- Begin function mk_list .p2align 2 _mk_list: ; @mk_list .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov x0, #8 bl _malloc str x0, [sp, #8] ldr x8, [sp, #8] ; kill: def $x9 killed $xzr str xzr, [x8] ldr x0, [sp, #8] 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] ldr x0, [sp, #16] bl _mk_entry str x0, [sp, #8] ldur x8, [x29, #-8] ldr x8, [x8] ldr x9, [sp, #8] str x8, [x9, #8] ldr x8, [sp, #8] ldur x9, [x29, #-8] str x8, [x9] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #96 .cfi_def_cfa_offset 96 stp x29, x30, [sp, #80] ; 16-byte Folded Spill add x29, sp, #80 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] bl _mk_list stur x0, [x29, #-16] mov w0, #2 bl _mk_foo stur x0, [x29, #-32] mov w0, #3 mov w1, #4 bl _mk_bar str x0, [sp, #40] ldur x0, [x29, #-16] adrp x1, _g_bad_foo@PAGE add x1, x1, _g_bad_foo@PAGEOFF bl _insert ldur x0, [x29, #-16] ldur x1, [x29, #-32] bl _insert ldur x0, [x29, #-16] ldr x1, [sp, #40] bl _insert str wzr, [sp, #36] ldur x8, [x29, #-16] ldr x8, [x8] stur x8, [x29, #-24] b LBB8_1 LBB8_1: ; =>This Inner Loop Header: Depth=1 ldur x8, [x29, #-24] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB8_9 b LBB8_2 LBB8_2: ; in Loop: Header=BB8_1 Depth=1 ldur x8, [x29, #-24] ldr x8, [x8] str x8, [sp, #24] ldr x0, [sp, #24] bl _is_bar subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB8_4 b LBB8_3 LBB8_3: ; in Loop: Header=BB8_1 Depth=1 ldr x0, [sp, #24] bl _to_bar str x0, [sp, #16] ldr x8, [sp, #24] ldr w8, [x8, #4] ; implicit-def: $x10 mov x10, x8 ldr x8, [sp, #16] ldr w9, [x8, #8] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf b LBB8_5 LBB8_4: ; in Loop: Header=BB8_1 Depth=1 ldr x8, [sp, #24] ldr w9, [x8, #4] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf b LBB8_5 LBB8_5: ; in Loop: Header=BB8_1 Depth=1 ldr w8, [sp, #36] add w8, w8, #1 str w8, [sp, #36] subs w8, w8, #3 cset w8, le tbnz w8, #0, LBB8_7 b LBB8_6 LBB8_6: b LBB8_9 LBB8_7: ; in Loop: Header=BB8_1 Depth=1 b LBB8_8 LBB8_8: ; in Loop: Header=BB8_1 Depth=1 ldur x8, [x29, #-24] ldr x8, [x8, #8] stur x8, [x29, #-24] b LBB8_1 LBB8_9: mov w0, #0 ldp x29, x30, [sp, #80] ; 16-byte Folded Reload add sp, sp, #96 ret .cfi_endproc ; -- End function .section __DATA,__data .globl _g_bad_foo ; @g_bad_foo .p2align 2 _g_bad_foo: .long 234 ; 0xea .long 5 ; 0x5 .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "bar: x=%d, y=%d\n" l_.str.1: ; @.str.1 .asciz "foo: x=%d\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _mk_foo ## -- Begin function mk_foo .p2align 4, 0x90 _mk_foo: ## @mk_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 movl %edi, -4(%rbp) movl $8, %edi callq _malloc movq %rax, -16(%rbp) movq -16(%rbp), %rax movl $123, (%rax) movl -4(%rbp), %ecx movq -16(%rbp), %rax movl %ecx, 4(%rax) movq -16(%rbp), %rax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _mk_bar ## -- Begin function mk_bar .p2align 4, 0x90 _mk_bar: ## @mk_bar .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 $12, %edi callq _malloc movq %rax, -16(%rbp) movq -16(%rbp), %rax movl $234, (%rax) movl -4(%rbp), %ecx movq -16(%rbp), %rax movl %ecx, 4(%rax) movl -8(%rbp), %ecx movq -16(%rbp), %rax movl %ecx, 8(%rax) movq -16(%rbp), %rax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _to_foo ## -- Begin function to_foo .p2align 4, 0x90 _to_foo: ## @to_foo .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) movq -8(%rbp), %rax popq %rbp retq .cfi_endproc ## -- End function .globl _is_bar ## -- Begin function is_bar .p2align 4, 0x90 _is_bar: ## @is_bar .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) movq -8(%rbp), %rax cmpl $234, (%rax) sete %al andb $1, %al movzbl %al, %eax popq %rbp retq .cfi_endproc ## -- End function .globl _to_bar ## -- Begin function to_bar .p2align 4, 0x90 _to_bar: ## @to_bar .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) movq -8(%rbp), %rax popq %rbp retq .cfi_endproc ## -- End function .globl _mk_entry ## -- Begin function mk_entry .p2align 4, 0x90 _mk_entry: ## @mk_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, -8(%rbp) movl $16, %edi callq _malloc movq %rax, -16(%rbp) movq -8(%rbp), %rcx movq -16(%rbp), %rax movq %rcx, (%rax) movq -16(%rbp), %rax movq $0, 8(%rax) movq -16(%rbp), %rax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _mk_list ## -- Begin function mk_list .p2align 4, 0x90 _mk_list: ## @mk_list .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $8, %edi callq _malloc movq %rax, -8(%rbp) movq -8(%rbp), %rax movq $0, (%rax) movq -8(%rbp), %rax 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 -16(%rbp), %rdi callq _mk_entry movq %rax, -24(%rbp) movq -8(%rbp), %rax movq (%rax), %rcx movq -24(%rbp), %rax movq %rcx, 8(%rax) movq -24(%rbp), %rcx movq -8(%rbp), %rax movq %rcx, (%rax) addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _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) callq _mk_list movq %rax, -16(%rbp) movl $2, %edi callq _mk_foo movq %rax, -32(%rbp) movl $3, %edi movl $4, %esi callq _mk_bar movq %rax, -40(%rbp) movq -16(%rbp), %rdi leaq _g_bad_foo(%rip), %rsi callq _insert movq -16(%rbp), %rdi movq -32(%rbp), %rsi callq _insert movq -16(%rbp), %rdi movq -40(%rbp), %rsi callq _insert movl $0, -44(%rbp) movq -16(%rbp), %rax movq (%rax), %rax movq %rax, -24(%rbp) LBB8_1: ## =>This Inner Loop Header: Depth=1 cmpq $0, -24(%rbp) je LBB8_9 ## %bb.2: ## in Loop: Header=BB8_1 Depth=1 movq -24(%rbp), %rax movq (%rax), %rax movq %rax, -56(%rbp) movq -56(%rbp), %rdi callq _is_bar cmpl $0, %eax je LBB8_4 ## %bb.3: ## in Loop: Header=BB8_1 Depth=1 movq -56(%rbp), %rdi callq _to_bar movq %rax, -64(%rbp) movq -56(%rbp), %rax movl 4(%rax), %esi movq -64(%rbp), %rax movl 8(%rax), %edx leaq L_.str(%rip), %rdi movb $0, %al callq _printf jmp LBB8_5 LBB8_4: ## in Loop: Header=BB8_1 Depth=1 movq -56(%rbp), %rax movl 4(%rax), %esi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf LBB8_5: ## in Loop: Header=BB8_1 Depth=1 movl -44(%rbp), %eax addl $1, %eax movl %eax, -44(%rbp) cmpl $3, %eax jle LBB8_7 ## %bb.6: jmp LBB8_9 LBB8_7: ## in Loop: Header=BB8_1 Depth=1 jmp LBB8_8 LBB8_8: ## in Loop: Header=BB8_1 Depth=1 movq -24(%rbp), %rax movq 8(%rax), %rax movq %rax, -24(%rbp) jmp LBB8_1 LBB8_9: xorl %eax, %eax addq $64, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __DATA,__data .globl _g_bad_foo ## @g_bad_foo .p2align 2 _g_bad_foo: .long 234 ## 0xea .long 5 ## 0x5 .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "bar: x=%d, y=%d\n" L_.str.1: ## @.str.1 .asciz "foo: x=%d\n" .subsections_via_symbols
the_stack_data/7543.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _read_block ; -- Begin function read_block .p2align 2 _read_block: ; @read_block .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 w1, [x29, #-20] str x2, [sp, #32] ldur x8, [x29, #-16] str x8, [sp, #24] ldur x8, [x29, #-16] ldursw x9, [x29, #-20] add x8, x8, x9 str x8, [sp, #16] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #16] ldr x9, [sp, #24] subs x8, x8, x9 subs x8, x8, #1 cset w8, le mov w9, #0 str w9, [sp, #12] ; 4-byte Folded Spill tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldr x0, [sp, #24] ldr x8, [sp, #16] ldr x9, [sp, #24] subs x8, x8, x9 mov x1, x8 ldr x2, [sp, #32] bl _fgets subs x8, x0, #0 cset w8, ne str w8, [sp, #12] ; 4-byte Folded Spill b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #12] ; 4-byte Folded Reload tbz w8, #0, LBB0_7 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #24] ldrsb w8, [x8] subs w8, w8, #10 cset w8, ne tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: ldr x8, [sp, #24] ldur x9, [x29, #-16] subs x8, x8, x9 ; kill: def $w8 killed $w8 killed $x8 stur w8, [x29, #-4] b LBB0_8 LBB0_6: ; in Loop: Header=BB0_1 Depth=1 ldr x0, [sp, #24] bl _strlen ldr x8, [sp, #24] add x8, x8, x0 str x8, [sp, #24] b LBB0_1 LBB0_7: mov w8, #-1 stur w8, [x29, #-4] b LBB0_8 LBB0_8: ldur w0, [x29, #-4] ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: 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, #1264 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] str wzr, [sp, #228] str w0, [sp, #224] str x1, [sp, #216] ldr x8, [sp, #216] ldr x0, [x8, #8] adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF bl _fopen str x0, [sp, #208] ldr x8, [sp, #216] ldr x0, [x8, #16] adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF bl _fopen str x0, [sp, #200] ldr x8, [sp, #208] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: ldr x8, [sp, #200] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB1_3 b LBB1_2 LBB1_2: adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _perror mov w0, #2 bl _exit LBB1_3: ldr x0, [sp, #208] bl _fileno add x1, sp, #32 bl _fstat ldr x8, [sp, #128] mov x9, #100 sdiv x9, x8, x9 adrp x8, _max_size@PAGE ; kill: def $w9 killed $w9 killed $x9 str w9, [x8, _max_size@PAGEOFF] ldrsw x8, [x8, _max_size@PAGEOFF] lsl x0, x8, #4 bl _malloc adrp x8, _list@PAGE str x0, [x8, _list@PAGEOFF] b LBB1_4 LBB1_4: ; =>This Inner Loop Header: Depth=1 ldr x2, [sp, #208] add x0, sp, #232 mov w1, #1024 bl _read_block str w0, [sp, #196] ldr w8, [sp, #196] subs w8, w8, #0 cset w8, ge tbnz w8, #0, LBB1_6 b LBB1_5 LBB1_5: b LBB1_7 LBB1_6: ; in Loop: Header=BB1_4 Depth=1 ldr w1, [sp, #196] add x0, sp, #232 bl _add_list b LBB1_4 LBB1_7: adrp x8, _list_size@PAGE str x8, [sp, #16] ; 8-byte Folded Spill ldr w9, [x8, _list_size@PAGEOFF] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf ldr x8, [sp, #16] ; 8-byte Folded Reload adrp x9, _list@PAGE ldr x0, [x9, _list@PAGEOFF] ldrsw x1, [x8, _list_size@PAGEOFF] mov x2, #16 str x2, [sp, #24] ; 8-byte Folded Spill adrp x3, _compare_txt@PAGE add x3, x3, _compare_txt@PAGEOFF bl _qsort ldr x9, [sp, #16] ; 8-byte Folded Reload ldr x8, [sp, #24] ; 8-byte Folded Reload ldrsw x9, [x9, _list_size@PAGEOFF] mul x0, x8, x9 bl _malloc str x0, [sp, #176] adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _printf str wzr, [sp, #188] str wzr, [sp, #192] b LBB1_8 LBB1_8: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #192] adrp x9, _list_size@PAGE ldr w9, [x9, _list_size@PAGEOFF] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_15 b LBB1_9 LBB1_9: ; in Loop: Header=BB1_8 Depth=1 ldr w8, [sp, #188] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB1_11 b LBB1_10 LBB1_10: ; in Loop: Header=BB1_8 Depth=1 ldr x8, [sp, #176] ldr w9, [sp, #188] subs w10, w9, #1 ; implicit-def: $x9 mov x9, x10 sxtw x9, w9 lsl x9, x9, #4 ldr x0, [x8, x9] adrp x8, _list@PAGE ldr x8, [x8, _list@PAGEOFF] ldrsw x9, [sp, #192] lsl x9, x9, #4 ldr x1, [x8, x9] bl _strcmp subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB1_12 b LBB1_11 LBB1_11: ; in Loop: Header=BB1_8 Depth=1 ldr x8, [sp, #176] ldrsw x9, [sp, #188] mov x10, x9 add w10, w10, #1 str w10, [sp, #188] adrp x10, _list@PAGE ldr x10, [x10, _list@PAGEOFF] ldrsw x11, [sp, #192] ldr q0, [x10, x11, lsl #4] str q0, [x8, x9, lsl #4] b LBB1_13 LBB1_12: ; in Loop: Header=BB1_8 Depth=1 adrp x8, _list@PAGE ldr x8, [x8, _list@PAGEOFF] ldrsw x9, [sp, #192] add x8, x8, x9, lsl #4 ldr w10, [x8, #12] ldr x8, [sp, #176] ldr w9, [sp, #188] subs w9, w9, #1 add x9, x8, w9, sxtw #4 ldr w8, [x9, #12] add w8, w8, w10 str w8, [x9, #12] b LBB1_13 LBB1_13: ; in Loop: Header=BB1_8 Depth=1 b LBB1_14 LBB1_14: ; in Loop: Header=BB1_8 Depth=1 ldr w8, [sp, #192] add w8, w8, #1 str w8, [sp, #192] b LBB1_8 LBB1_15: ldr x0, [sp, #176] ldrsw x1, [sp, #188] mov x2, #16 adrp x3, _compare_num@PAGE add x3, x3, _compare_num@PAGEOFF bl _qsort str wzr, [sp, #192] b LBB1_16 LBB1_16: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #192] ldr w9, [sp, #188] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_19 b LBB1_17 LBB1_17: ; in Loop: Header=BB1_16 Depth=1 ldr x0, [sp, #200] ldr x8, [sp, #176] ldrsw x9, [sp, #192] add x8, x8, x9, lsl #4 ldr w8, [x8, #12] ; implicit-def: $x10 mov x10, x8 ldr x8, [sp, #176] ldrsw x9, [sp, #192] lsl x9, x9, #4 ldr x8, [x8, x9] mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x1, l_.str.7@PAGE add x1, x1, l_.str.7@PAGEOFF bl _fprintf b LBB1_18 LBB1_18: ; in Loop: Header=BB1_16 Depth=1 ldr w8, [sp, #192] add w8, w8, #1 str w8, [sp, #192] b LBB1_16 LBB1_19: ldur x9, [x29, #-24] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB1_21 b LBB1_20 LBB1_20: bl ___stack_chk_fail LBB1_21: mov w0, #0 add sp, sp, #1264 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 add_list _add_list: ; @add_list .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] adrp x8, _list_size@PAGE ldr w8, [x8, _list_size@PAGEOFF] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB2_4 b LBB2_1 LBB2_1: ldur w8, [x29, #-12] adrp x9, _list@PAGE ldr x9, [x9, _list@PAGEOFF] adrp x10, _list_size@PAGE ldr w10, [x10, _list_size@PAGEOFF] subs w10, w10, #1 add x9, x9, w10, sxtw #4 ldr w9, [x9, #8] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB2_4 b LBB2_2 LBB2_2: ldur x0, [x29, #-8] adrp x8, _list@PAGE ldr x8, [x8, _list@PAGEOFF] adrp x9, _list_size@PAGE ldr w9, [x9, _list_size@PAGEOFF] subs w10, w9, #1 ; implicit-def: $x9 mov x9, x10 sxtw x9, w9 lsl x9, x9, #4 ldr x1, [x8, x9] ldursw x2, [x29, #-12] bl _memcmp subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB2_4 b LBB2_3 LBB2_3: adrp x8, _list@PAGE ldr x8, [x8, _list@PAGEOFF] adrp x9, _list_size@PAGE ldr w9, [x9, _list_size@PAGEOFF] subs w9, w9, #1 add x9, x8, w9, sxtw #4 ldr w8, [x9, #12] add w8, w8, #1 str w8, [x9, #12] b LBB2_8 LBB2_4: adrp x8, _list_size@PAGE ldr w8, [x8, _list_size@PAGEOFF] adrp x9, _max_size@PAGE ldr w9, [x9, _max_size@PAGEOFF] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB2_6 b LBB2_5 LBB2_5: adrp x0, l_.str.8@PAGE add x0, x0, l_.str.8@PAGEOFF bl _printf mov w0, #1 bl _exit LBB2_6: ldur w8, [x29, #-12] mov w9, #1 str w9, [sp, #12] ; 4-byte Folded Spill add w9, w8, #1 ; implicit-def: $x8 mov x8, x9 sxtw x0, w8 bl _malloc ldr w10, [sp, #12] ; 4-byte Folded Reload adrp x8, _list@PAGE str x8, [sp, #16] ; 8-byte Folded Spill ldr x11, [x8, _list@PAGEOFF] adrp x9, _list_size@PAGE str x9, [sp, #24] ; 8-byte Folded Spill ldrsw x12, [x9, _list_size@PAGEOFF] lsl x12, x12, #4 str x0, [x11, x12] ldur w11, [x29, #-12] ldr x12, [x8, _list@PAGEOFF] ldrsw x13, [x9, _list_size@PAGEOFF] add x12, x12, x13, lsl #4 str w11, [x12, #8] ldr x11, [x8, _list@PAGEOFF] ldrsw x12, [x9, _list_size@PAGEOFF] add x11, x11, x12, lsl #4 str w10, [x11, #12] ldr x8, [x8, _list@PAGEOFF] ldrsw x9, [x9, _list_size@PAGEOFF] lsl x9, x9, #4 ldr x0, [x8, x9] ldur x1, [x29, #-8] ldursw x2, [x29, #-12] mov x3, #-1 bl ___memcpy_chk ldr x9, [sp, #16] ; 8-byte Folded Reload ldr x8, [sp, #24] ; 8-byte Folded Reload ldr x9, [x9, _list@PAGEOFF] ldrsw x10, [x8, _list_size@PAGEOFF] lsl x10, x10, #4 ldr x9, [x9, x10] ldursw x10, [x29, #-12] add x9, x9, x10 strb wzr, [x9] ldr w9, [x8, _list_size@PAGEOFF] add w9, w9, #1 str w9, [x8, _list_size@PAGEOFF] ldr w8, [x8, _list_size@PAGEOFF] mov w10, #1000 sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB2_8 b LBB2_7 LBB2_7: adrp x8, _list_size@PAGE ldr w9, [x8, _list_size@PAGEOFF] ; 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 adrp x8, ___stdoutp@GOTPAGE ldr x8, [x8, ___stdoutp@GOTPAGEOFF] ldr x0, [x8] bl _fflush b LBB2_8 LBB2_8: ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function compare_txt _compare_txt: ; @compare_txt .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, #8] ldr x0, [x8] ldr x8, [sp] ldr x1, [x8] bl _strcmp ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function compare_num _compare_num: ; @compare_num .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] str x1, [sp] ldr x8, [sp] ldr w8, [x8, #12] ldr x9, [sp, #8] ldr w9, [x9, #12] subs w0, w8, w9 add sp, sp, #16 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "r" l_.str.1: ; @.str.1 .asciz "w" l_.str.2: ; @.str.2 .asciz "Usage: ./program <input> <output>\n" l_.str.3: ; @.str.3 .asciz "open: " .zerofill __DATA,__bss,_max_size,4,2 ; @max_size .zerofill __DATA,__bss,_list,8,3 ; @list l_.str.4: ; @.str.4 .asciz "loaded %d\n" .zerofill __DATA,__bss,_list_size,4,2 ; @list_size l_.str.5: ; @.str.5 .asciz "sorting ....\n" l_.str.6: ; @.str.6 .asciz "culling\n" l_.str.7: ; @.str.7 .asciz "%d times:\n%s\n" .comm _block_head,8,3 ; @block_head l_.str.8: ; @.str.8 .asciz "max_size too small??\n" l_.str.9: ; @.str.9 .asciz "loaded %d\r" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _read_block ## -- Begin function read_block .p2align 4, 0x90 _read_block: ## @read_block .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) movl %esi, -20(%rbp) movq %rdx, -32(%rbp) movq -16(%rbp), %rax movq %rax, -40(%rbp) movq -16(%rbp), %rax movslq -20(%rbp), %rcx addq %rcx, %rax movq %rax, -48(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movq -48(%rbp), %rcx movq -40(%rbp), %rax subq %rax, %rcx xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpq $1, %rcx movb %al, -49(%rbp) ## 1-byte Spill jle LBB0_3 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movq -40(%rbp), %rdi movq -48(%rbp), %rax movq -40(%rbp), %rcx subq %rcx, %rax movl %eax, %esi movq -32(%rbp), %rdx callq _fgets cmpq $0, %rax setne %al movb %al, -49(%rbp) ## 1-byte Spill LBB0_3: ## in Loop: Header=BB0_1 Depth=1 movb -49(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB0_4 jmp LBB0_7 LBB0_4: ## in Loop: Header=BB0_1 Depth=1 movq -40(%rbp), %rax movsbl (%rax), %eax cmpl $10, %eax jne LBB0_6 ## %bb.5: movq -40(%rbp), %rax movq -16(%rbp), %rcx subq %rcx, %rax ## kill: def $eax killed $eax killed $rax movl %eax, -4(%rbp) jmp LBB0_8 LBB0_6: ## in Loop: Header=BB0_1 Depth=1 movq -40(%rbp), %rdi callq _strlen addq -40(%rbp), %rax movq %rax, -40(%rbp) jmp LBB0_1 LBB0_7: movl $-1, -4(%rbp) LBB0_8: movl -4(%rbp), %eax addq $64, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $1248, %rsp ## imm = 0x4E0 movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -1044(%rbp) movl %edi, -1048(%rbp) movq %rsi, -1056(%rbp) movq -1056(%rbp), %rax movq 8(%rax), %rdi leaq L_.str(%rip), %rsi callq _fopen movq %rax, -1064(%rbp) movq -1056(%rbp), %rax movq 16(%rax), %rdi leaq L_.str.1(%rip), %rsi callq _fopen movq %rax, -1072(%rbp) cmpq $0, -1064(%rbp) je LBB1_2 ## %bb.1: cmpq $0, -1072(%rbp) jne LBB1_3 LBB1_2: leaq L_.str.2(%rip), %rdi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _printf leaq L_.str.3(%rip), %rdi callq _perror movl $2, %edi callq _exit LBB1_3: movq -1064(%rbp), %rdi callq _fileno movl %eax, %edi leaq -1240(%rbp), %rsi callq _fstat$INODE64 movq -1144(%rbp), %rax movl $100, %ecx cqto idivq %rcx ## kill: def $eax killed $eax killed $rax movl %eax, _max_size(%rip) movslq _max_size(%rip), %rdi shlq $4, %rdi callq _malloc movq %rax, _list(%rip) LBB1_4: ## =>This Inner Loop Header: Depth=1 leaq -1040(%rbp), %rdi movq -1064(%rbp), %rdx movl $1024, %esi ## imm = 0x400 callq _read_block movl %eax, -1076(%rbp) cmpl $0, -1076(%rbp) jge LBB1_6 ## %bb.5: jmp LBB1_7 LBB1_6: ## in Loop: Header=BB1_4 Depth=1 leaq -1040(%rbp), %rdi movl -1076(%rbp), %esi callq _add_list jmp LBB1_4 LBB1_7: movl _list_size(%rip), %esi leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf leaq L_.str.5(%rip), %rdi movb $0, %al callq _printf movq _list(%rip), %rdi movslq _list_size(%rip), %rsi movl $16, %edx leaq _compare_txt(%rip), %rcx callq _qsort movslq _list_size(%rip), %rdi shlq $4, %rdi callq _malloc movq %rax, -1096(%rbp) leaq L_.str.6(%rip), %rdi movb $0, %al callq _printf movl $0, -1084(%rbp) movl $0, -1080(%rbp) LBB1_8: ## =>This Inner Loop Header: Depth=1 movl -1080(%rbp), %eax cmpl _list_size(%rip), %eax jge LBB1_15 ## %bb.9: ## in Loop: Header=BB1_8 Depth=1 cmpl $0, -1084(%rbp) je LBB1_11 ## %bb.10: ## in Loop: Header=BB1_8 Depth=1 movq -1096(%rbp), %rax movl -1084(%rbp), %ecx subl $1, %ecx movslq %ecx, %rcx shlq $4, %rcx addq %rcx, %rax movq (%rax), %rdi movq _list(%rip), %rax movslq -1080(%rbp), %rcx shlq $4, %rcx addq %rcx, %rax movq (%rax), %rsi callq _strcmp cmpl $0, %eax je LBB1_12 LBB1_11: ## in Loop: Header=BB1_8 Depth=1 movq -1096(%rbp), %rax movl -1084(%rbp), %ecx movl %ecx, %edx addl $1, %edx movl %edx, -1084(%rbp) movslq %ecx, %rcx shlq $4, %rcx addq %rcx, %rax movq _list(%rip), %rcx movslq -1080(%rbp), %rdx shlq $4, %rdx addq %rdx, %rcx movq (%rcx), %rdx movq %rdx, (%rax) movq 8(%rcx), %rcx movq %rcx, 8(%rax) jmp LBB1_13 LBB1_12: ## in Loop: Header=BB1_8 Depth=1 movq _list(%rip), %rax movslq -1080(%rbp), %rcx shlq $4, %rcx addq %rcx, %rax movl 12(%rax), %ecx movq -1096(%rbp), %rax movl -1084(%rbp), %edx subl $1, %edx movslq %edx, %rdx shlq $4, %rdx addq %rdx, %rax addl 12(%rax), %ecx movl %ecx, 12(%rax) LBB1_13: ## in Loop: Header=BB1_8 Depth=1 jmp LBB1_14 LBB1_14: ## in Loop: Header=BB1_8 Depth=1 movl -1080(%rbp), %eax addl $1, %eax movl %eax, -1080(%rbp) jmp LBB1_8 LBB1_15: movq -1096(%rbp), %rdi movslq -1084(%rbp), %rsi movl $16, %edx leaq _compare_num(%rip), %rcx callq _qsort movl $0, -1080(%rbp) LBB1_16: ## =>This Inner Loop Header: Depth=1 movl -1080(%rbp), %eax cmpl -1084(%rbp), %eax jge LBB1_19 ## %bb.17: ## in Loop: Header=BB1_16 Depth=1 movq -1072(%rbp), %rdi movq -1096(%rbp), %rax movslq -1080(%rbp), %rcx shlq $4, %rcx addq %rcx, %rax movl 12(%rax), %edx movq -1096(%rbp), %rax movslq -1080(%rbp), %rcx shlq $4, %rcx addq %rcx, %rax movq (%rax), %rcx leaq L_.str.7(%rip), %rsi movb $0, %al callq _fprintf ## %bb.18: ## in Loop: Header=BB1_16 Depth=1 movl -1080(%rbp), %eax addl $1, %eax movl %eax, -1080(%rbp) jmp LBB1_16 LBB1_19: movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB1_21 ## %bb.20: xorl %eax, %eax addq $1248, %rsp ## imm = 0x4E0 popq %rbp retq LBB1_21: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function add_list _add_list: ## @add_list .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) cmpl $0, _list_size(%rip) je LBB2_4 ## %bb.1: movl -12(%rbp), %eax movq _list(%rip), %rcx movl _list_size(%rip), %edx subl $1, %edx movslq %edx, %rdx shlq $4, %rdx addq %rdx, %rcx cmpl 8(%rcx), %eax jne LBB2_4 ## %bb.2: movq -8(%rbp), %rdi movq _list(%rip), %rax movl _list_size(%rip), %ecx subl $1, %ecx movslq %ecx, %rcx shlq $4, %rcx addq %rcx, %rax movq (%rax), %rsi movslq -12(%rbp), %rdx callq _memcmp cmpl $0, %eax jne LBB2_4 ## %bb.3: movq _list(%rip), %rax movl _list_size(%rip), %ecx subl $1, %ecx movslq %ecx, %rcx shlq $4, %rcx addq %rcx, %rax movl 12(%rax), %ecx addl $1, %ecx movl %ecx, 12(%rax) jmp LBB2_8 LBB2_4: movl _list_size(%rip), %eax cmpl _max_size(%rip), %eax jne LBB2_6 ## %bb.5: leaq L_.str.8(%rip), %rdi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _printf movl $1, %edi callq _exit LBB2_6: movl -12(%rbp), %eax addl $1, %eax movslq %eax, %rdi callq _malloc movq %rax, %rcx movq _list(%rip), %rax movslq _list_size(%rip), %rdx shlq $4, %rdx addq %rdx, %rax movq %rcx, (%rax) movl -12(%rbp), %ecx movq _list(%rip), %rax movslq _list_size(%rip), %rdx shlq $4, %rdx addq %rdx, %rax movl %ecx, 8(%rax) movq _list(%rip), %rax movslq _list_size(%rip), %rcx shlq $4, %rcx addq %rcx, %rax movl $1, 12(%rax) movq _list(%rip), %rax movslq _list_size(%rip), %rcx shlq $4, %rcx addq %rcx, %rax movq (%rax), %rdi movq -8(%rbp), %rsi movslq -12(%rbp), %rdx movq $-1, %rcx callq ___memcpy_chk movq _list(%rip), %rax movslq _list_size(%rip), %rcx shlq $4, %rcx addq %rcx, %rax movq (%rax), %rax movslq -12(%rbp), %rcx movb $0, (%rax,%rcx) movl _list_size(%rip), %eax addl $1, %eax movl %eax, _list_size(%rip) movl _list_size(%rip), %eax movl $1000, %ecx ## imm = 0x3E8 cltd idivl %ecx cmpl $0, %edx jne LBB2_8 ## %bb.7: movl _list_size(%rip), %esi leaq L_.str.9(%rip), %rdi movb $0, %al callq _printf movq ___stdoutp@GOTPCREL(%rip), %rax movq (%rax), %rdi callq _fflush LBB2_8: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function compare_txt _compare_txt: ## @compare_txt .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) movq -8(%rbp), %rax movq (%rax), %rdi movq -16(%rbp), %rax movq (%rax), %rsi callq _strcmp addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function compare_num _compare_num: ## @compare_num .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 12(%rax), %eax movq -8(%rbp), %rcx subl 12(%rcx), %eax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "r" L_.str.1: ## @.str.1 .asciz "w" L_.str.2: ## @.str.2 .asciz "Usage: ./program <input> <output>\n" L_.str.3: ## @.str.3 .asciz "open: " .zerofill __DATA,__bss,_max_size,4,2 ## @max_size .zerofill __DATA,__bss,_list,8,3 ## @list L_.str.4: ## @.str.4 .asciz "loaded %d\n" .zerofill __DATA,__bss,_list_size,4,2 ## @list_size L_.str.5: ## @.str.5 .asciz "sorting ....\n" L_.str.6: ## @.str.6 .asciz "culling\n" L_.str.7: ## @.str.7 .asciz "%d times:\n%s\n" .comm _block_head,8,3 ## @block_head L_.str.8: ## @.str.8 .asciz "max_size too small??\n" L_.str.9: ## @.str.9 .asciz "loaded %d\r" .subsections_via_symbols
the_stack_data/15762208.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, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] stur wzr, [x29, #-12] ldur x0, [x29, #-8] bl _strlen str x0, [sp, #24] ldr x9, [sp, #24] mov x8, #1 add x9, x9, #1 mul x0, x8, x9 bl _malloc str x0, [sp, #16] ldur x8, [x29, #-8] ldr x9, [sp, #24] add x8, x8, x9 subs x8, x8, #1 str x8, [sp, #8] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #8] ldur x9, [x29, #-8] subs x8, x8, x9 cset w8, lo tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #8] ldrb w8, [x8] ldr x9, [sp, #16] ldursw x10, [x29, #-12] add x9, x9, x10 strb w8, [x9] ldur w8, [x29, #-12] add w8, w8, #1 stur w8, [x29, #-12] ldr x8, [sp, #8] subs x8, x8, #1 str x8, [sp, #8] b LBB0_1 LBB0_3: ldr x0, [sp, #16] ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 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, #44 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, #9 cset w9, gt ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB2_2 b LBB2_1 LBB2_1: 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, #53 adrp x3, l_.str.2@PAGE add x3, x3, l_.str.2@PAGEOFF bl ___assert_rtn LBB2_2: b LBB2_3 LBB2_3: ldur w9, [x29, #-4] mov w8, #0 subs w8, w8, w9 cset w9, gt ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB2_5 b LBB2_4 LBB2_4: adrp x0, l___func__.itoc@PAGE add x0, x0, l___func__.itoc@PAGEOFF adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF mov w2, #54 adrp x3, l_.str.3@PAGE add x3, x3, l_.str.3@PAGEOFF bl ___assert_rtn LBB2_5: b LBB2_6 LBB2_6: 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] str wzr, [sp, #16] b LBB3_1 LBB3_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #20] subs w8, w8, #10 cset w8, lt tbnz w8, #0, LBB3_3 b LBB3_2 LBB3_2: ; in Loop: Header=BB3_1 Depth=1 ldr w8, [sp, #20] subs w8, w8, #10 str w8, [sp, #20] ldr w8, [sp, #16] add w8, w8, #1 str w8, [sp, #16] b LBB3_1 LBB3_3: ldr w0, [sp, #16] bl _itoc ldr x8, [sp, #24] strb w0, [x8] ldr w0, [sp, #20] bl _itoc ldur x8, [x29, #-16] 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.4@PAGE add x0, x0, l_.str.4@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.5@PAGE add x8, x8, l_.str.5@PAGEOFF str x8, [sp, #8] ldr x0, [sp, #8] bl _reverse_string str x0, [sp] ldr x0, [sp] adrp x1, l_.str.6@PAGE add x1, x1, l_.str.6@PAGEOFF bl _strcmp subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB7_2 b LBB7_1 LBB7_1: adrp x0, l_.str.7@PAGE add x0, x0, l_.str.7@PAGEOFF bl _printf b LBB7_3 LBB7_2: adrp x0, l_.str.8@PAGE add x0, x0, l_.str.8@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.9@PAGE add x0, x0, l_.str.9@PAGEOFF bl _printf b LBB8_3 LBB8_2: adrp x0, l_.str.10@PAGE add x0, x0, l_.str.10@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.11@PAGE add x0, x0, l_.str.11@PAGEOFF bl _printf b LBB9_4 LBB9_3: adrp x0, l_.str.12@PAGE add x0, x0, l_.str.12@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.13@PAGE add x8, x8, l_.str.13@PAGEOFF stur x8, [x29, #-8] adrp x8, l_.str.14@PAGE add x8, x8, l_.str.14@PAGEOFF stur x8, [x29, #-16] adrp x8, l_.str.15@PAGE add x8, x8, l_.str.15@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.16@PAGE add x0, x0, l_.str.16@PAGEOFF bl _printf b LBB10_3 LBB10_2: adrp x0, l_.str.17@PAGE add x0, x0, l_.str.17@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 "23574401.c" l_.str.1: ; @.str.1 .asciz "isdigit(c)" l___func__.itoc: ; @__func__.itoc .asciz "itoc" l_.str.2: ; @.str.2 .asciz "i <= 9" l_.str.3: ; @.str.3 .asciz "0 <= i" l_.str.4: ; @.str.4 .asciz "%c" l_.str.5: ; @.str.5 .asciz "123" l_.str.6: ; @.str.6 .asciz "321" l_.str.7: ; @.str.7 .asciz "reverse_string passed\n" l_.str.8: ; @.str.8 .asciz "reverse_string failed\n" l_.str.9: ; @.str.9 .asciz "itoc passed\n" l_.str.10: ; @.str.10 .asciz "itoc failed\n" l_.str.11: ; @.str.11 .asciz "add_digits passed\n" l_.str.12: ; @.str.12 .asciz "add_digits failed\n" l_.str.13: ; @.str.13 .asciz "1" l_.str.14: ; @.str.14 .asciz "99999999999999999999999999999999999999999999" l_.str.15: ; @.str.15 .asciz "000000000000000000000000000000000000000000001" l_.str.16: ; @.str.16 .asciz "add_bigint passed\n" l_.str.17: ; @.str.17 .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 $48, %rsp movq %rdi, -8(%rbp) movl $0, -12(%rbp) movq -8(%rbp), %rdi callq _strlen movq %rax, -24(%rbp) movq -24(%rbp), %rdi addq $1, %rdi shlq $0, %rdi callq _malloc movq %rax, -32(%rbp) movq -8(%rbp), %rax addq -24(%rbp), %rax addq $-1, %rax movq %rax, -40(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movq -40(%rbp), %rax cmpq -8(%rbp), %rax jb LBB0_3 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movq -40(%rbp), %rax movb (%rax), %dl movq -32(%rbp), %rax movslq -12(%rbp), %rcx movb %dl, (%rax,%rcx) movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) movq -40(%rbp), %rax addq $-1, %rax movq %rax, -40(%rbp) jmp LBB0_1 LBB0_3: movq -32(%rbp), %rax addq $48, %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 $44, %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) cmpl $9, -4(%rbp) setle %al xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB2_2 ## %bb.1: leaq L___func__.itoc(%rip), %rdi leaq L_.str(%rip), %rsi leaq L_.str.2(%rip), %rcx movl $53, %edx callq ___assert_rtn LBB2_2: jmp LBB2_3 LBB2_3: xorl %eax, %eax cmpl -4(%rbp), %eax setle %al xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB2_5 ## %bb.4: leaq L___func__.itoc(%rip), %rdi leaq L_.str(%rip), %rsi leaq L_.str.3(%rip), %rcx movl $54, %edx callq ___assert_rtn LBB2_5: jmp LBB2_6 LBB2_6: 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, -40(%rbp) ## 4-byte Spill movsbl -2(%rbp), %edi callq _ctoi movl %eax, %ecx movl -40(%rbp), %eax ## 4-byte Reload addl %ecx, %eax movl %eax, -36(%rbp) ## 4-byte Spill movsbl -3(%rbp), %edi callq _ctoi movl %eax, %ecx movl -36(%rbp), %eax ## 4-byte Reload addl %ecx, %eax movl %eax, -28(%rbp) movl $0, -32(%rbp) LBB3_1: ## =>This Inner Loop Header: Depth=1 cmpl $10, -28(%rbp) jl LBB3_3 ## %bb.2: ## in Loop: Header=BB3_1 Depth=1 movl -28(%rbp), %eax subl $10, %eax movl %eax, -28(%rbp) movl -32(%rbp), %eax addl $1, %eax movl %eax, -32(%rbp) jmp LBB3_1 LBB3_3: movl -32(%rbp), %edi callq _itoc movb %al, %cl movq -24(%rbp), %rax movb %cl, (%rax) movl -28(%rbp), %edi callq _itoc movb %al, %cl movq -16(%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.4(%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.5(%rip), %rax movq %rax, -8(%rbp) movq -8(%rbp), %rdi callq _reverse_string movq %rax, -16(%rbp) movq -16(%rbp), %rdi leaq L_.str.6(%rip), %rsi callq _strcmp cmpl $0, %eax jne LBB7_2 ## %bb.1: leaq L_.str.7(%rip), %rdi movb $0, %al callq _printf jmp LBB7_3 LBB7_2: leaq L_.str.8(%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.9(%rip), %rdi movb $0, %al callq _printf jmp LBB8_3 LBB8_2: leaq L_.str.10(%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.11(%rip), %rdi movb $0, %al callq _printf jmp LBB9_4 LBB9_3: leaq L_.str.12(%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.13(%rip), %rax movq %rax, -8(%rbp) leaq L_.str.14(%rip), %rax movq %rax, -16(%rbp) leaq L_.str.15(%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.16(%rip), %rdi movb $0, %al callq _printf jmp LBB10_3 LBB10_2: leaq L_.str.17(%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 "23574401.c" L_.str.1: ## @.str.1 .asciz "isdigit(c)" L___func__.itoc: ## @__func__.itoc .asciz "itoc" L_.str.2: ## @.str.2 .asciz "i <= 9" L_.str.3: ## @.str.3 .asciz "0 <= i" L_.str.4: ## @.str.4 .asciz "%c" L_.str.5: ## @.str.5 .asciz "123" L_.str.6: ## @.str.6 .asciz "321" L_.str.7: ## @.str.7 .asciz "reverse_string passed\n" L_.str.8: ## @.str.8 .asciz "reverse_string failed\n" L_.str.9: ## @.str.9 .asciz "itoc passed\n" L_.str.10: ## @.str.10 .asciz "itoc failed\n" L_.str.11: ## @.str.11 .asciz "add_digits passed\n" L_.str.12: ## @.str.12 .asciz "add_digits failed\n" L_.str.13: ## @.str.13 .asciz "1" L_.str.14: ## @.str.14 .asciz "99999999999999999999999999999999999999999999" L_.str.15: ## @.str.15 .asciz "000000000000000000000000000000000000000000001" L_.str.16: ## @.str.16 .asciz "add_bigint passed\n" L_.str.17: ## @.str.17 .asciz "add_bigint failed\n" .subsections_via_symbols
the_stack_data/23574401.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, l_.str.3@PAGE add x8, x8, l_.str.3@PAGEOFF ; kill: def $w8 killed $w8 killed $x8 str w8, [sp, #12] ; 4-byte Folded Spill stur wzr, [x29, #-4] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF bl _fopen 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.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf mov w0, #1 bl _exit LBB0_2: ldr w0, [sp, #12] ; 4-byte Folded Reload ldr x1, [sp, #16] bl _fputc ldr x1, [sp, #16] adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _fputs ldr x0, [sp, #16] bl _fclose mov w0, #0 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "dialogo.txt" l_.str.1: ; @.str.1 .asciz "a" l_.str.2: ; @.str.2 .asciz "Error" l_.str.3: ; @.str.3 .asciz "\n" l_.str.4: ; @.str.4 .asciz "FIM!" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) leaq L_.str(%rip), %rdi leaq L_.str.1(%rip), %rsi callq _fopen movq %rax, -16(%rbp) cmpq $0, -16(%rbp) jne LBB0_2 ## %bb.1: leaq L_.str.2(%rip), %rdi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _printf movl $1, %edi callq _exit LBB0_2: movq -16(%rbp), %rsi leaq L_.str.3(%rip), %rax movl %eax, %edi callq _fputc movq -16(%rbp), %rsi leaq L_.str.4(%rip), %rdi callq _fputs movq -16(%rbp), %rdi callq _fclose xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "dialogo.txt" L_.str.1: ## @.str.1 .asciz "a" L_.str.2: ## @.str.2 .asciz "Error" L_.str.3: ## @.str.3 .asciz "\n" L_.str.4: ## @.str.4 .asciz "FIM!" .subsections_via_symbols
the_stack_data/76152.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, #560 stur wzr, [x29, #-20] stur w0, [x29, #-24] stur x1, [x29, #-32] str wzr, [sp, #24] str wzr, [sp, #20] mov w8, #10 str w8, [sp, #16] ldur x8, [x29, #-32] ldr x8, [x8] adrp x9, _progname@GOTPAGE ldr x9, [x9, _progname@GOTPAGEOFF] str x8, [x9] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-24] subs w8, w8, #1 cset w8, le mov w9, #0 str w9, [sp, #12] ; 4-byte Folded Spill tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldur x8, [x29, #-32] ldr x8, [x8, #8] ldrsb w8, [x8] subs w8, w8, #45 cset w8, eq str w8, [sp, #12] ; 4-byte Folded Spill b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #12] ; 4-byte Folded Reload tbz w8, #0, LBB0_8 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_1 Depth=1 ldur x8, [x29, #-32] ldr x8, [x8, #8] ldrsb w8, [x8, #1] subs w8, w8, #101 cset w8, ne tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_1 Depth=1 mov w8, #1 str w8, [sp, #20] b LBB0_7 LBB0_6: ; in Loop: Header=BB0_1 Depth=1 ldur x8, [x29, #-32] ldr x8, [x8, #8] add x0, x8, #1 bl _atoi str w0, [sp, #16] b LBB0_7 LBB0_7: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-24] subs w8, w8, #1 stur w8, [x29, #-24] ldur x8, [x29, #-32] add x8, x8, #8 stur x8, [x29, #-32] b LBB0_1 LBB0_8: ldur w8, [x29, #-24] subs w8, w8, #1 cset w8, le tbnz w8, #0, LBB0_11 b LBB0_9 LBB0_9: ldur x8, [x29, #-32] ldr x0, [x8, #8] mov w1, #0 bl _open str w0, [sp, #24] adds w8, w0, #1 cset w8, ne tbnz w8, #0, LBB0_11 b LBB0_10 LBB0_10: ldur x8, [x29, #-32] ldr x1, [x8, #8] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _error b LBB0_11 LBB0_11: ldr w8, [sp, #20] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB0_13 b LBB0_12 LBB0_12: ldr w0, [sp, #24] mov x1, #0 mov w2, #2 bl _lseek b LBB0_13 LBB0_13: b LBB0_14 LBB0_14: ; =>This Loop Header: Depth=1 ; Child Loop BB0_15 Depth 2 b LBB0_15 LBB0_15: ; Parent Loop BB0_14 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w0, [sp, #24] add x1, sp, #32 mov x2, #512 bl _read mov x8, x0 mov x9, x0 str w9, [sp, #28] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB0_17 b LBB0_16 LBB0_16: ; in Loop: Header=BB0_15 Depth=2 ldrsw x2, [sp, #28] mov w0, #1 add x1, sp, #32 bl _write b LBB0_15 LBB0_17: ; in Loop: Header=BB0_14 Depth=1 ldr w0, [sp, #16] bl _sleep b LBB0_14 .cfi_endproc ; -- End function .globl _error ; -- Begin function error .p2align 2 _error: ; @error .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] str x8, [sp, #16] ; 8-byte Folded Spill adrp x8, _errno@GOTPAGE ldr x8, [x8, _errno@GOTPAGEOFF] str x8, [sp, #24] ; 8-byte Folded Spill stur x0, [x29, #-8] stur x1, [x29, #-16] adrp x8, _progname@GOTPAGE ldr x8, [x8, _progname@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: ldr x8, [sp, #16] ; 8-byte Folded Reload ldr x0, [x8] adrp x8, _progname@GOTPAGE ldr x8, [x8, _progname@GOTPAGEOFF] ldr x8, [x8] mov x9, sp str x8, [x9] adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF bl _fprintf b LBB1_2 LBB1_2: ldr x8, [sp, #16] ; 8-byte Folded Reload ldr x0, [x8] ldur x1, [x29, #-8] ldur x8, [x29, #-16] mov x9, sp str x8, [x9] bl _fprintf ldr x8, [sp, #24] ; 8-byte Folded Reload ldr w8, [x8] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB1_5 b LBB1_3 LBB1_3: ldr x8, [sp, #24] ; 8-byte Folded Reload ldr w8, [x8] adrp x9, _sys_nerr@GOTPAGE ldr x9, [x9, _sys_nerr@GOTPAGEOFF] ldr w9, [x9] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_5 b LBB1_4 LBB1_4: ldr x8, [sp, #24] ; 8-byte Folded Reload ldr x9, [sp, #16] ; 8-byte Folded Reload ldr x0, [x9] ldrsw x9, [x8] adrp x8, _sys_errlist@GOTPAGE ldr x8, [x8, _sys_errlist@GOTPAGEOFF] ldr x8, [x8, x9, lsl #3] mov x9, sp str x8, [x9] adrp x1, l_.str.2@PAGE add x1, x1, l_.str.2@PAGEOFF bl _fprintf b LBB1_5 LBB1_5: ldr x8, [sp, #16] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.3@PAGE add x1, x1, l_.str.3@PAGEOFF bl _fprintf mov w0, #1 bl _exit .cfi_endproc ; -- End function .comm _progname,8,3 ; @progname .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "can't open %s" l_.str.1: ; @.str.1 .asciz "%s: " 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 $560, %rsp ## imm = 0x230 movl $0, -4(%rbp) movl %edi, -8(%rbp) movq %rsi, -16(%rbp) movl $0, -536(%rbp) movl $0, -540(%rbp) movl $10, -544(%rbp) movq -16(%rbp), %rax movq (%rax), %rcx movq _progname@GOTPCREL(%rip), %rax movq %rcx, (%rax) LBB0_1: ## =>This Inner Loop Header: Depth=1 xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $1, -8(%rbp) movb %al, -545(%rbp) ## 1-byte Spill jle LBB0_3 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movq -16(%rbp), %rax movq 8(%rax), %rax movsbl (%rax), %eax cmpl $45, %eax sete %al movb %al, -545(%rbp) ## 1-byte Spill LBB0_3: ## in Loop: Header=BB0_1 Depth=1 movb -545(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB0_4 jmp LBB0_8 LBB0_4: ## in Loop: Header=BB0_1 Depth=1 movq -16(%rbp), %rax movq 8(%rax), %rax movb 1(%rax), %al subb $101, %al jne LBB0_6 jmp LBB0_5 LBB0_5: ## in Loop: Header=BB0_1 Depth=1 movl $1, -540(%rbp) jmp LBB0_7 LBB0_6: ## in Loop: Header=BB0_1 Depth=1 movq -16(%rbp), %rax movq 8(%rax), %rdi addq $1, %rdi callq _atoi movl %eax, -544(%rbp) LBB0_7: ## in Loop: Header=BB0_1 Depth=1 movl -8(%rbp), %eax addl $-1, %eax movl %eax, -8(%rbp) movq -16(%rbp), %rax addq $8, %rax movq %rax, -16(%rbp) jmp LBB0_1 LBB0_8: cmpl $1, -8(%rbp) jle LBB0_11 ## %bb.9: movq -16(%rbp), %rax movq 8(%rax), %rdi xorl %esi, %esi movb $0, %al callq _open movl %eax, -536(%rbp) cmpl $-1, %eax jne LBB0_11 ## %bb.10: movq -16(%rbp), %rax movq 8(%rax), %rsi leaq L_.str(%rip), %rdi callq _error LBB0_11: cmpl $1, -540(%rbp) jne LBB0_13 ## %bb.12: movl -536(%rbp), %edi xorl %eax, %eax movl %eax, %esi movl $2, %edx callq _lseek LBB0_13: jmp LBB0_14 LBB0_14: ## =>This Loop Header: Depth=1 ## Child Loop BB0_15 Depth 2 jmp LBB0_15 LBB0_15: ## Parent Loop BB0_14 Depth=1 ## => This Inner Loop Header: Depth=2 movl -536(%rbp), %edi leaq -528(%rbp), %rsi movl $512, %edx ## imm = 0x200 callq _read ## kill: def $eax killed $eax killed $rax movl %eax, -532(%rbp) cmpl $0, %eax jle LBB0_17 ## %bb.16: ## in Loop: Header=BB0_15 Depth=2 leaq -528(%rbp), %rsi movslq -532(%rbp), %rdx movl $1, %edi callq _write jmp LBB0_15 LBB0_17: ## in Loop: Header=BB0_14 Depth=1 movl -544(%rbp), %edi callq _sleep jmp LBB0_14 .cfi_endproc ## -- End function .globl _error ## -- Begin function error .p2align 4, 0x90 _error: ## @error .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) movq _progname@GOTPCREL(%rip), %rax cmpq $0, (%rax) je LBB1_2 ## %bb.1: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movq _progname@GOTPCREL(%rip), %rax movq (%rax), %rdx leaq L_.str.1(%rip), %rsi movb $0, %al callq _fprintf LBB1_2: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movq -8(%rbp), %rsi movq -16(%rbp), %rdx movb $0, %al callq _fprintf movq _errno@GOTPCREL(%rip), %rax cmpl $0, (%rax) jle LBB1_5 ## %bb.3: movq _errno@GOTPCREL(%rip), %rax movl (%rax), %eax movq _sys_nerr@GOTPCREL(%rip), %rcx cmpl (%rcx), %eax jge LBB1_5 ## %bb.4: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movq _errno@GOTPCREL(%rip), %rax movslq (%rax), %rcx movq _sys_errlist@GOTPCREL(%rip), %rax movq (%rax,%rcx,8), %rdx leaq L_.str.2(%rip), %rsi movb $0, %al callq _fprintf LBB1_5: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.3(%rip), %rsi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _fprintf movl $1, %edi callq _exit .cfi_endproc ## -- End function .comm _progname,8,3 ## @progname .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "can't open %s" L_.str.1: ## @.str.1 .asciz "%s: " L_.str.2: ## @.str.2 .asciz " (%s)" L_.str.3: ## @.str.3 .asciz "\n" .subsections_via_symbols
the_stack_data/161081315.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, #32] b LBB0_1 LBB0_1: ; =>This Loop Header: Depth=1 ; Child Loop BB0_7 Depth 2 ; Child Loop BB0_11 Depth 2 ; Child Loop BB0_13 Depth 3 ; Child Loop BB0_23 Depth 2 mov x9, sp add x8, sp, #28 str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _scanf subs w8, w0, #0 cset w8, eq mov w9, #0 str w9, [sp, #8] ; 4-byte Folded Spill tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #28] subs w8, w8, #0 cset w8, ne str w8, [sp, #8] ; 4-byte Folded Spill b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #8] ; 4-byte Folded Reload tbz w8, #0, LBB0_33 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #28] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: b LBB0_33 LBB0_6: ; in Loop: Header=BB0_1 Depth=1 str wzr, [sp, #24] b LBB0_7 LBB0_7: ; Parent Loop BB0_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #24] ldr w9, [sp, #28] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_10 b LBB0_8 LBB0_8: ; in Loop: Header=BB0_7 Depth=2 ldrsw x9, [sp, #24] add x8, sp, #36 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_9 LBB0_9: ; in Loop: Header=BB0_7 Depth=2 ldr w8, [sp, #24] add w8, w8, #1 str w8, [sp, #24] b LBB0_7 LBB0_10: ; in Loop: Header=BB0_1 Depth=1 str wzr, [sp, #24] b LBB0_11 LBB0_11: ; Parent Loop BB0_1 Depth=1 ; => This Loop Header: Depth=2 ; Child Loop BB0_13 Depth 3 ldr w8, [sp, #24] ldr w9, [sp, #28] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_20 b LBB0_12 LBB0_12: ; in Loop: Header=BB0_11 Depth=2 ldr w8, [sp, #24] add w8, w8, #1 str w8, [sp, #20] b LBB0_13 LBB0_13: ; Parent Loop BB0_1 Depth=1 ; Parent Loop BB0_11 Depth=2 ; => This Inner Loop Header: Depth=3 ldr w8, [sp, #20] ldr w9, [sp, #28] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_18 b LBB0_14 LBB0_14: ; in Loop: Header=BB0_13 Depth=3 ldrsw x8, [sp, #24] add x9, sp, #36 ldr w8, [x9, x8, lsl #2] ldrsw x10, [sp, #20] ldr w9, [x9, x10, lsl #2] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB0_16 b LBB0_15 LBB0_15: ; in Loop: Header=BB0_13 Depth=3 ldrsw x8, [sp, #24] add x9, sp, #36 ldr w8, [x9, x8, lsl #2] str w8, [sp, #12] ldrsw x8, [sp, #20] ldr w8, [x9, x8, lsl #2] ldrsw x10, [sp, #24] str w8, [x9, x10, lsl #2] ldr w8, [sp, #12] ldrsw x10, [sp, #20] str w8, [x9, x10, lsl #2] b LBB0_16 LBB0_16: ; in Loop: Header=BB0_13 Depth=3 b LBB0_17 LBB0_17: ; in Loop: Header=BB0_13 Depth=3 ldr w8, [sp, #20] add w8, w8, #1 str w8, [sp, #20] b LBB0_13 LBB0_18: ; in Loop: Header=BB0_11 Depth=2 b LBB0_19 LBB0_19: ; in Loop: Header=BB0_11 Depth=2 ldr w8, [sp, #24] add w8, w8, #1 str w8, [sp, #24] b LBB0_11 LBB0_20: ; in Loop: Header=BB0_1 Depth=1 mov w8, #1 str w8, [sp, #16] ldr w8, [sp, #28] subs w9, w8, #1 add x8, sp, #36 ldr w9, [x8, w9, sxtw #2] mov w8, #1422 subs w8, w8, w9 lsl w8, w8, #1 subs w8, w8, #200 cset w8, le tbnz w8, #0, LBB0_22 b LBB0_21 LBB0_21: ; in Loop: Header=BB0_1 Depth=1 str wzr, [sp, #16] b LBB0_29 LBB0_22: ; in Loop: Header=BB0_1 Depth=1 mov w8, #1 str w8, [sp, #24] b LBB0_23 LBB0_23: ; Parent Loop BB0_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #24] ldr w9, [sp, #28] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_28 b LBB0_24 LBB0_24: ; in Loop: Header=BB0_23 Depth=2 ldrsw x8, [sp, #24] add x9, sp, #36 ldr w8, [x9, x8, lsl #2] ldr w10, [sp, #24] subs w10, w10, #1 ldr w9, [x9, w10, sxtw #2] subs w8, w8, w9 subs w8, w8, #200 cset w8, le tbnz w8, #0, LBB0_26 b LBB0_25 LBB0_25: ; in Loop: Header=BB0_1 Depth=1 str wzr, [sp, #16] b LBB0_28 LBB0_26: ; in Loop: Header=BB0_23 Depth=2 b LBB0_27 LBB0_27: ; in Loop: Header=BB0_23 Depth=2 ldr w8, [sp, #24] add w8, w8, #1 str w8, [sp, #24] b LBB0_23 LBB0_28: ; in Loop: Header=BB0_1 Depth=1 b LBB0_29 LBB0_29: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #16] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB0_31 b LBB0_30 LBB0_30: ; in Loop: Header=BB0_1 Depth=1 adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf b LBB0_32 LBB0_31: ; in Loop: Header=BB0_1 Depth=1 adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf b LBB0_32 LBB0_32: ; in Loop: Header=BB0_1 Depth=1 b LBB0_1 LBB0_33: 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_35 b LBB0_34 LBB0_34: bl ___stack_chk_fail LBB0_35: 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 .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d" l_.str.1: ; @.str.1 .asciz "POSSIBLE\n" l_.str.2: ; @.str.2 .asciz "IMPOSSIBLE\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 $448, %rsp ## imm = 0x1C0 movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -420(%rbp) LBB0_1: ## =>This Loop Header: Depth=1 ## Child Loop BB0_7 Depth 2 ## Child Loop BB0_11 Depth 2 ## Child Loop BB0_13 Depth 3 ## Child Loop BB0_23 Depth 2 leaq L_.str(%rip), %rdi leaq -424(%rbp), %rsi movb $0, %al callq _scanf movl %eax, %ecx xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $0, %ecx movb %al, -441(%rbp) ## 1-byte Spill je LBB0_3 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 cmpl $0, -424(%rbp) setne %al movb %al, -441(%rbp) ## 1-byte Spill LBB0_3: ## in Loop: Header=BB0_1 Depth=1 movb -441(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB0_4 jmp LBB0_33 LBB0_4: ## in Loop: Header=BB0_1 Depth=1 cmpl $0, -424(%rbp) jne LBB0_6 ## %bb.5: jmp LBB0_33 LBB0_6: ## in Loop: Header=BB0_1 Depth=1 movl $0, -428(%rbp) LBB0_7: ## Parent Loop BB0_1 Depth=1 ## => This Inner Loop Header: Depth=2 movl -428(%rbp), %eax cmpl -424(%rbp), %eax jge LBB0_10 ## %bb.8: ## in Loop: Header=BB0_7 Depth=2 movslq -428(%rbp), %rax leaq -416(%rbp), %rsi shlq $2, %rax addq %rax, %rsi leaq L_.str(%rip), %rdi movb $0, %al callq _scanf ## %bb.9: ## in Loop: Header=BB0_7 Depth=2 movl -428(%rbp), %eax addl $1, %eax movl %eax, -428(%rbp) jmp LBB0_7 LBB0_10: ## in Loop: Header=BB0_1 Depth=1 movl $0, -428(%rbp) LBB0_11: ## Parent Loop BB0_1 Depth=1 ## => This Loop Header: Depth=2 ## Child Loop BB0_13 Depth 3 movl -428(%rbp), %eax cmpl -424(%rbp), %eax jge LBB0_20 ## %bb.12: ## in Loop: Header=BB0_11 Depth=2 movl -428(%rbp), %eax addl $1, %eax movl %eax, -432(%rbp) LBB0_13: ## Parent Loop BB0_1 Depth=1 ## Parent Loop BB0_11 Depth=2 ## => This Inner Loop Header: Depth=3 movl -432(%rbp), %eax cmpl -424(%rbp), %eax jge LBB0_18 ## %bb.14: ## in Loop: Header=BB0_13 Depth=3 movslq -428(%rbp), %rax movl -416(%rbp,%rax,4), %eax movslq -432(%rbp), %rcx cmpl -416(%rbp,%rcx,4), %eax jle LBB0_16 ## %bb.15: ## in Loop: Header=BB0_13 Depth=3 movslq -428(%rbp), %rax movl -416(%rbp,%rax,4), %eax movl %eax, -440(%rbp) movslq -432(%rbp), %rax movl -416(%rbp,%rax,4), %ecx movslq -428(%rbp), %rax movl %ecx, -416(%rbp,%rax,4) movl -440(%rbp), %ecx movslq -432(%rbp), %rax movl %ecx, -416(%rbp,%rax,4) LBB0_16: ## in Loop: Header=BB0_13 Depth=3 jmp LBB0_17 LBB0_17: ## in Loop: Header=BB0_13 Depth=3 movl -432(%rbp), %eax addl $1, %eax movl %eax, -432(%rbp) jmp LBB0_13 LBB0_18: ## in Loop: Header=BB0_11 Depth=2 jmp LBB0_19 LBB0_19: ## in Loop: Header=BB0_11 Depth=2 movl -428(%rbp), %eax addl $1, %eax movl %eax, -428(%rbp) jmp LBB0_11 LBB0_20: ## in Loop: Header=BB0_1 Depth=1 movl $1, -436(%rbp) movl -424(%rbp), %eax subl $1, %eax movslq %eax, %rcx movl $1422, %eax ## imm = 0x58E subl -416(%rbp,%rcx,4), %eax shll $1, %eax cmpl $200, %eax jle LBB0_22 ## %bb.21: ## in Loop: Header=BB0_1 Depth=1 movl $0, -436(%rbp) jmp LBB0_29 LBB0_22: ## in Loop: Header=BB0_1 Depth=1 movl $1, -428(%rbp) LBB0_23: ## Parent Loop BB0_1 Depth=1 ## => This Inner Loop Header: Depth=2 movl -428(%rbp), %eax cmpl -424(%rbp), %eax jge LBB0_28 ## %bb.24: ## in Loop: Header=BB0_23 Depth=2 movslq -428(%rbp), %rax movl -416(%rbp,%rax,4), %eax movl -428(%rbp), %ecx subl $1, %ecx movslq %ecx, %rcx subl -416(%rbp,%rcx,4), %eax cmpl $200, %eax jle LBB0_26 ## %bb.25: ## in Loop: Header=BB0_1 Depth=1 movl $0, -436(%rbp) jmp LBB0_28 LBB0_26: ## in Loop: Header=BB0_23 Depth=2 jmp LBB0_27 LBB0_27: ## in Loop: Header=BB0_23 Depth=2 movl -428(%rbp), %eax addl $1, %eax movl %eax, -428(%rbp) jmp LBB0_23 LBB0_28: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_29 LBB0_29: ## in Loop: Header=BB0_1 Depth=1 cmpl $1, -436(%rbp) jne LBB0_31 ## %bb.30: ## in Loop: Header=BB0_1 Depth=1 leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf jmp LBB0_32 LBB0_31: ## in Loop: Header=BB0_1 Depth=1 leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf LBB0_32: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_1 LBB0_33: movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_35 ## %bb.34: xorl %eax, %eax addq $448, %rsp ## imm = 0x1C0 popq %rbp retq LBB0_35: 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 "POSSIBLE\n" L_.str.2: ## @.str.2 .asciz "IMPOSSIBLE\n" .subsections_via_symbols
the_stack_data/2471.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] bl _shlib_first 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 .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 _shlib_first xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/218893043.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _chbev_ ; -- Begin function chbev_ .p2align 2 _chbev_: ; @chbev_ .cfi_startproc ; %bb.0: sub sp, sp, #272 .cfi_def_cfa_offset 272 stp x28, x27, [sp, #240] ; 16-byte Folded Spill stp x29, x30, [sp, #256] ; 16-byte Folded Spill add x29, sp, #256 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w27, -24 .cfi_offset w28, -32 sub x8, x29, #72 str x8, [sp, #40] ; 8-byte Folded Spill ldr x12, [x29, #16] ldr x11, [x29, #24] ldr x10, [x29, #32] ldr x9, [x29, #40] str x0, [x8, #40] str x1, [x8, #32] str x2, [x8, #24] str x3, [x8, #16] str x4, [x8, #8] str x5, [x8] stur x6, [x29, #-80] stur x7, [x29, #-88] stur x12, [x29, #-96] stur x11, [x29, #-104] stur x10, [x29, #-112] stur x9, [x29, #-120] ldr x9, [x8] ldr w9, [x9] stur w9, [x29, #-124] ldur w9, [x29, #-124] mov x10, #0 lsr w9, w9, #0 add w9, w9, #1 str w9, [sp, #128] ldrsw x11, [sp, #128] ldr x9, [x8, #8] subs x11, x10, x11 add x9, x9, x11, lsl #3 str x9, [x8, #8] ldur x9, [x29, #-80] subs x9, x9, #4 stur x9, [x29, #-80] ldur x9, [x29, #-96] ldr w9, [x9] str w9, [sp, #124] ldr w9, [sp, #124] lsr w9, w9, #0 add w9, w9, #1 str w9, [sp, #120] ldrsw x11, [sp, #120] ldur x9, [x29, #-88] subs x10, x10, x11 add x9, x9, x10, lsl #3 stur x9, [x29, #-88] ldur x9, [x29, #-104] subs x9, x9, #8 stur x9, [x29, #-104] ldur x9, [x29, #-112] subs x9, x9, #4 stur x9, [x29, #-112] ldr x0, [x8, #40] adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF bl _lsame_ ldr x8, [sp, #40] ; 8-byte Folded Reload str w0, [sp, #76] ldr x0, [x8, #32] adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF bl _lsame_ str w0, [sp, #80] ldur x8, [x29, #-120] str wzr, [x8] ldr w8, [sp, #76] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_3 b LBB0_1 LBB0_1: ldr x8, [sp, #40] ; 8-byte Folded Reload ldr x0, [x8, #40] adrp x1, l_.str.2@PAGE add x1, x1, l_.str.2@PAGEOFF bl _lsame_ subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: ldur x9, [x29, #-120] mov w8, #-1 str w8, [x9] b LBB0_21 LBB0_3: ldr w8, [sp, #80] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_6 b LBB0_4 LBB0_4: ldr x8, [sp, #40] ; 8-byte Folded Reload ldr x0, [x8, #32] adrp x1, l_.str.3@PAGE add x1, x1, l_.str.3@PAGEOFF bl _lsame_ subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: ldur x9, [x29, #-120] mov w8, #-2 str w8, [x9] b LBB0_20 LBB0_6: ldr x8, [sp, #40] ; 8-byte Folded Reload ldr x8, [x8, #24] ldr w8, [x8] subs w8, w8, #0 cset w8, ge tbnz w8, #0, LBB0_8 b LBB0_7 LBB0_7: ldur x9, [x29, #-120] mov w8, #-3 str w8, [x9] b LBB0_19 LBB0_8: ldr x8, [sp, #40] ; 8-byte Folded Reload ldr x8, [x8, #16] ldr w8, [x8] subs w8, w8, #0 cset w8, ge tbnz w8, #0, LBB0_10 b LBB0_9 LBB0_9: ldur x9, [x29, #-120] mov w8, #-4 str w8, [x9] b LBB0_18 LBB0_10: ldr x9, [sp, #40] ; 8-byte Folded Reload ldr x8, [x9] ldr w8, [x8] ldr x9, [x9, #16] ldr w9, [x9] add w9, w9, #1 subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_12 b LBB0_11 LBB0_11: ldur x9, [x29, #-120] mov w8, #-6 str w8, [x9] b LBB0_17 LBB0_12: ldur x8, [x29, #-96] ldr w8, [x8] subs w8, w8, #1 cset w8, lt tbnz w8, #0, LBB0_15 b LBB0_13 LBB0_13: ldr w8, [sp, #76] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_16 b LBB0_14 LBB0_14: ldr x9, [sp, #40] ; 8-byte Folded Reload ldur x8, [x29, #-96] ldr w8, [x8] ldr x9, [x9, #24] ldr w9, [x9] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_16 b LBB0_15 LBB0_15: ldur x9, [x29, #-120] mov w8, #-9 str w8, [x9] b LBB0_16 LBB0_16: b LBB0_17 LBB0_17: b LBB0_18 LBB0_18: b LBB0_19 LBB0_19: b LBB0_20 LBB0_20: b LBB0_21 LBB0_21: ldur x8, [x29, #-120] ldr w8, [x8] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_23 b LBB0_22 LBB0_22: ldur x8, [x29, #-120] ldr w9, [x8] mov w8, #0 subs w8, w8, w9 add x1, sp, #116 str w8, [sp, #116] adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF mov w2, #6 bl _xerbla_ stur wzr, [x29, #-20] b LBB0_52 LBB0_23: ldr x8, [sp, #40] ; 8-byte Folded Reload ldr x8, [x8, #24] ldr w8, [x8] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_25 b LBB0_24 LBB0_24: stur wzr, [x29, #-20] b LBB0_52 LBB0_25: ldr x8, [sp, #40] ; 8-byte Folded Reload ldr x8, [x8, #24] ldr w8, [x8] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB0_32 b LBB0_26 LBB0_26: ldr w8, [sp, #80] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_28 b LBB0_27 LBB0_27: ldr x8, [sp, #40] ; 8-byte Folded Reload ldur w9, [x29, #-124] add w9, w9, #1 str w9, [sp, #116] ldr x8, [x8, #8] ldrsw x9, [sp, #116] lsl x9, x9, #3 ldr s0, [x8, x9] ldur x8, [x29, #-80] str s0, [x8, #4] b LBB0_29 LBB0_28: ldr x8, [sp, #40] ; 8-byte Folded Reload ldr x9, [x8, #16] ldr w9, [x9] add w9, w9, #1 ldur w10, [x29, #-124] add w9, w9, w10 str w9, [sp, #116] ldr x8, [x8, #8] ldrsw x9, [sp, #116] lsl x9, x9, #3 ldr s0, [x8, x9] ldur x8, [x29, #-80] str s0, [x8, #4] b LBB0_29 LBB0_29: ldr w8, [sp, #76] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_31 b LBB0_30 LBB0_30: ldr w8, [sp, #124] add w8, w8, #1 str w8, [sp, #116] ldur x8, [x29, #-88] ldrsw x9, [sp, #116] lsl x9, x9, #3 fmov s0, #1.00000000 str s0, [x8, x9] ldur x8, [x29, #-88] ldrsw x9, [sp, #116] add x8, x8, x9, lsl #3 movi d0, #0000000000000000 str s0, [x8, #4] b LBB0_31 LBB0_31: stur wzr, [x29, #-20] b LBB0_52 LBB0_32: adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _slamch_ str s0, [sp, #68] adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _slamch_ ldr x8, [sp, #40] ; 8-byte Folded Reload str s0, [sp, #52] ldr s0, [sp, #68] ldr s1, [sp, #52] fdiv s0, s0, s1 str s0, [sp, #56] ldr s1, [sp, #56] fmov s0, #1.00000000 fdiv s0, s0, s1 str s0, [sp, #64] ldr s0, [sp, #56] fcvt d0, s0 fsqrt d0, d0 fcvt s0, d0 str s0, [sp, #96] ldr s0, [sp, #64] fcvt d0, s0 fsqrt d0, d0 fcvt s0, d0 str s0, [sp, #92] ldr x1, [x8, #32] ldr x2, [x8, #24] ldr x3, [x8, #16] ldr x9, [x8, #8] ldrsw x10, [sp, #128] add x4, x9, x10, lsl #3 ldr x5, [x8] ldur x8, [x29, #-112] add x6, x8, #4 adrp x0, l_.str.7@PAGE add x0, x0, l_.str.7@PAGEOFF bl _clanhb_ str s0, [sp, #104] str wzr, [sp, #72] ldr s0, [sp, #104] fcmp s0, #0.0 cset w8, le tbnz w8, #0, LBB0_35 b LBB0_33 LBB0_33: ldr s0, [sp, #104] ldr s1, [sp, #96] fcmp s0, s1 cset w8, pl tbnz w8, #0, LBB0_35 b LBB0_34 LBB0_34: mov w8, #1 str w8, [sp, #72] ldr s0, [sp, #96] ldr s1, [sp, #104] fdiv s0, s0, s1 str s0, [sp, #88] b LBB0_38 LBB0_35: ldr s0, [sp, #104] ldr s1, [sp, #92] fcmp s0, s1 cset w8, le tbnz w8, #0, LBB0_37 b LBB0_36 LBB0_36: mov w8, #1 str w8, [sp, #72] ldr s0, [sp, #92] ldr s1, [sp, #104] fdiv s0, s0, s1 str s0, [sp, #88] b LBB0_37 LBB0_37: b LBB0_38 LBB0_38: ldr w8, [sp, #72] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB0_43 b LBB0_39 LBB0_39: ldr w8, [sp, #80] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_41 b LBB0_40 LBB0_40: ldr x8, [sp, #40] ; 8-byte Folded Reload ldr x1, [x8, #16] ldr x2, [x8, #16] ldr x5, [x8, #24] ldr x6, [x8, #24] ldr x9, [x8, #8] ldrsw x10, [sp, #128] add x7, x9, x10, lsl #3 ldr x10, [x8] ldur x8, [x29, #-120] mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x0, l_.str.8@PAGE add x0, x0, l_.str.8@PAGEOFF adrp x3, _c_b11@PAGE add x3, x3, _c_b11@PAGEOFF add x4, sp, #88 bl _clascl_ b LBB0_42 LBB0_41: ldr x8, [sp, #40] ; 8-byte Folded Reload ldr x1, [x8, #16] ldr x2, [x8, #16] ldr x5, [x8, #24] ldr x6, [x8, #24] ldr x9, [x8, #8] ldrsw x10, [sp, #128] add x7, x9, x10, lsl #3 ldr x10, [x8] ldur x8, [x29, #-120] mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x0, l_.str.9@PAGE add x0, x0, l_.str.9@PAGEOFF adrp x3, _c_b11@PAGE add x3, x3, _c_b11@PAGEOFF add x4, sp, #88 bl _clascl_ b LBB0_42 LBB0_42: b LBB0_43 LBB0_43: ldr x8, [sp, #40] ; 8-byte Folded Reload mov w9, #1 str w9, [sp, #108] ldr x0, [x8, #40] ldr x1, [x8, #32] ldr x2, [x8, #24] ldr x3, [x8, #16] ldr x9, [x8, #8] ldrsw x10, [sp, #128] add x4, x9, x10, lsl #3 ldr x5, [x8] ldur x8, [x29, #-80] add x6, x8, #4 ldur x8, [x29, #-112] ldrsw x9, [sp, #108] add x7, x8, x9, lsl #2 ldur x8, [x29, #-88] ldrsw x9, [sp, #120] add x11, x8, x9, lsl #3 ldur x10, [x29, #-96] ldur x8, [x29, #-104] add x8, x8, #8 mov x9, sp str x11, [x9] str x10, [x9, #8] str x8, [x9, #16] add x8, sp, #84 str x8, [x9, #24] bl _chbtrd_ ldr w8, [sp, #76] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_45 b LBB0_44 LBB0_44: ldr x8, [sp, #40] ; 8-byte Folded Reload ldr x0, [x8, #24] ldur x8, [x29, #-80] add x1, x8, #4 ldur x8, [x29, #-112] ldrsw x9, [sp, #108] add x2, x8, x9, lsl #2 ldur x3, [x29, #-120] bl _ssterf_ b LBB0_46 LBB0_45: ldr x8, [sp, #40] ; 8-byte Folded Reload ldr w9, [sp, #108] ldr x10, [x8, #24] ldr w10, [x10] add w9, w9, w10 str w9, [sp, #60] ldr x0, [x8, #40] ldr x1, [x8, #24] ldur x8, [x29, #-80] add x2, x8, #4 ldur x8, [x29, #-112] ldrsw x9, [sp, #108] add x3, x8, x9, lsl #2 ldur x8, [x29, #-88] ldrsw x9, [sp, #120] add x4, x8, x9, lsl #3 ldur x5, [x29, #-96] ldur x8, [x29, #-112] ldrsw x9, [sp, #60] add x6, x8, x9, lsl #2 ldur x7, [x29, #-120] bl _csteqr_ b LBB0_46 LBB0_46: ldr w8, [sp, #72] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB0_51 b LBB0_47 LBB0_47: ldur x8, [x29, #-120] ldr w8, [x8] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_49 b LBB0_48 LBB0_48: ldr x8, [sp, #40] ; 8-byte Folded Reload ldr x8, [x8, #24] ldr w8, [x8] str w8, [sp, #100] b LBB0_50 LBB0_49: ldur x8, [x29, #-120] ldr w8, [x8] subs w8, w8, #1 str w8, [sp, #100] b LBB0_50 LBB0_50: ldr s1, [sp, #88] fmov s0, #1.00000000 fdiv s0, s0, s1 add x1, sp, #112 str s0, [sp, #112] ldur x8, [x29, #-80] add x2, x8, #4 add x0, sp, #100 adrp x3, _c__1@PAGE add x3, x3, _c__1@PAGEOFF bl _sscal_ b LBB0_51 LBB0_51: stur wzr, [x29, #-20] b LBB0_52 LBB0_52: ldur w0, [x29, #-20] ldp x29, x30, [sp, #256] ; 16-byte Folded Reload ldp x28, x27, [sp, #240] ; 16-byte Folded Reload add sp, sp, #272 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "V" l_.str.1: ; @.str.1 .asciz "L" l_.str.2: ; @.str.2 .asciz "N" l_.str.3: ; @.str.3 .asciz "U" l_.str.4: ; @.str.4 .asciz "CHBEV " l_.str.5: ; @.str.5 .asciz "Safe minimum" l_.str.6: ; @.str.6 .asciz "Precision" l_.str.7: ; @.str.7 .asciz "M" l_.str.8: ; @.str.8 .asciz "B" .section __DATA,__data .p2align 2 ; @c_b11 _c_b11: .long 0x3f800000 ; float 1 .section __TEXT,__cstring,cstring_literals l_.str.9: ; @.str.9 .asciz "Q" .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,__literal4,4byte_literals .p2align 2 ## -- Begin function chbev_ LCPI0_0: .long 0x3f800000 ## float 1 .section __TEXT,__text,regular,pure_instructions .globl _chbev_ .p2align 4, 0x90 _chbev_: ## @chbev_ .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r15 pushq %r14 pushq %rbx subq $200, %rsp .cfi_offset %rbx, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movq 56(%rbp), %rax movq 48(%rbp), %rax movq 40(%rbp), %rax movq 32(%rbp), %rax movq 24(%rbp), %rax movq 16(%rbp), %rax movq %rdi, -40(%rbp) movq %rsi, -48(%rbp) movq %rdx, -56(%rbp) movq %rcx, -64(%rbp) movq %r8, -72(%rbp) movq %r9, -80(%rbp) movq -80(%rbp), %rax movl (%rax), %eax movl %eax, -84(%rbp) movl -84(%rbp), %eax shll $0, %eax addl $1, %eax movl %eax, -88(%rbp) movl -88(%rbp), %ecx movq -72(%rbp), %rax movslq %ecx, %rdx xorl %ecx, %ecx ## kill: def $rcx killed $ecx subq %rdx, %rcx shlq $3, %rcx addq %rcx, %rax movq %rax, -72(%rbp) movq 16(%rbp), %rax addq $-4, %rax movq %rax, 16(%rbp) movq 32(%rbp), %rax movl (%rax), %eax movl %eax, -92(%rbp) movl -92(%rbp), %eax shll $0, %eax addl $1, %eax movl %eax, -96(%rbp) movl -96(%rbp), %ecx movq 24(%rbp), %rax movslq %ecx, %rdx xorl %ecx, %ecx ## kill: def $rcx killed $ecx subq %rdx, %rcx shlq $3, %rcx addq %rcx, %rax movq %rax, 24(%rbp) movq 40(%rbp), %rax addq $-8, %rax movq %rax, 40(%rbp) movq 48(%rbp), %rax addq $-4, %rax movq %rax, 48(%rbp) movq -40(%rbp), %rdi leaq L_.str(%rip), %rsi callq _lsame_ movl %eax, -140(%rbp) movq -48(%rbp), %rdi leaq L_.str.1(%rip), %rsi callq _lsame_ movl %eax, -136(%rbp) movq 56(%rbp), %rax movl $0, (%rax) cmpl $0, -140(%rbp) jne LBB0_3 ## %bb.1: movq -40(%rbp), %rdi leaq L_.str.2(%rip), %rsi callq _lsame_ cmpl $0, %eax jne LBB0_3 ## %bb.2: movq 56(%rbp), %rax movl $-1, (%rax) jmp LBB0_21 LBB0_3: cmpl $0, -136(%rbp) jne LBB0_6 ## %bb.4: movq -48(%rbp), %rdi leaq L_.str.3(%rip), %rsi callq _lsame_ cmpl $0, %eax jne LBB0_6 ## %bb.5: movq 56(%rbp), %rax movl $-2, (%rax) jmp LBB0_20 LBB0_6: movq -56(%rbp), %rax cmpl $0, (%rax) jge LBB0_8 ## %bb.7: movq 56(%rbp), %rax movl $-3, (%rax) jmp LBB0_19 LBB0_8: movq -64(%rbp), %rax cmpl $0, (%rax) jge LBB0_10 ## %bb.9: movq 56(%rbp), %rax movl $-4, (%rax) jmp LBB0_18 LBB0_10: movq -80(%rbp), %rax movl (%rax), %eax movq -64(%rbp), %rcx movl (%rcx), %ecx addl $1, %ecx cmpl %ecx, %eax jge LBB0_12 ## %bb.11: movq 56(%rbp), %rax movl $-6, (%rax) jmp LBB0_17 LBB0_12: movq 32(%rbp), %rax cmpl $1, (%rax) jl LBB0_15 ## %bb.13: cmpl $0, -140(%rbp) je LBB0_16 ## %bb.14: movq 32(%rbp), %rax movl (%rax), %eax movq -56(%rbp), %rcx cmpl (%rcx), %eax jge LBB0_16 LBB0_15: movq 56(%rbp), %rax movl $-9, (%rax) LBB0_16: jmp LBB0_17 LBB0_17: jmp LBB0_18 LBB0_18: jmp LBB0_19 LBB0_19: jmp LBB0_20 LBB0_20: jmp LBB0_21 LBB0_21: movq 56(%rbp), %rax cmpl $0, (%rax) je LBB0_23 ## %bb.22: movq 56(%rbp), %rcx xorl %eax, %eax subl (%rcx), %eax movl %eax, -100(%rbp) leaq L_.str.4(%rip), %rdi leaq -100(%rbp), %rsi movl $6, %edx callq _xerbla_ movl $0, -28(%rbp) jmp LBB0_52 LBB0_23: movq -56(%rbp), %rax cmpl $0, (%rax) jne LBB0_25 ## %bb.24: movl $0, -28(%rbp) jmp LBB0_52 LBB0_25: movq -56(%rbp), %rax cmpl $1, (%rax) jne LBB0_32 ## %bb.26: cmpl $0, -136(%rbp) je LBB0_28 ## %bb.27: movl -84(%rbp), %eax addl $1, %eax movl %eax, -100(%rbp) movq -72(%rbp), %rax movslq -100(%rbp), %rcx movss (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero,zero,zero movq 16(%rbp), %rax movss %xmm0, 4(%rax) jmp LBB0_29 LBB0_28: movq -64(%rbp), %rax movl (%rax), %eax addl $1, %eax addl -84(%rbp), %eax movl %eax, -100(%rbp) movq -72(%rbp), %rax movslq -100(%rbp), %rcx movss (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero,zero,zero movq 16(%rbp), %rax movss %xmm0, 4(%rax) LBB0_29: cmpl $0, -140(%rbp) je LBB0_31 ## %bb.30: movl -92(%rbp), %eax addl $1, %eax movl %eax, -100(%rbp) movq 24(%rbp), %rax movslq -100(%rbp), %rcx movss LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, (%rax,%rcx,8) movq 24(%rbp), %rax movslq -100(%rbp), %rcx xorps %xmm0, %xmm0 movss %xmm0, 4(%rax,%rcx,8) LBB0_31: movl $0, -28(%rbp) jmp LBB0_52 LBB0_32: leaq L_.str.5(%rip), %rdi callq _slamch_ movss %xmm0, -148(%rbp) leaq L_.str.6(%rip), %rdi callq _slamch_ movss %xmm0, -164(%rbp) movss -148(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero divss -164(%rbp), %xmm0 movss %xmm0, -160(%rbp) movss LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero divss -160(%rbp), %xmm0 movss %xmm0, -152(%rbp) movss -160(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 sqrtsd %xmm0, %xmm0 cvtsd2ss %xmm0, %xmm0 movss %xmm0, -120(%rbp) movss -152(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 sqrtsd %xmm0, %xmm0 cvtsd2ss %xmm0, %xmm0 movss %xmm0, -124(%rbp) movq -48(%rbp), %rsi movq -56(%rbp), %rdx movq -64(%rbp), %rcx movq -72(%rbp), %r8 movslq -88(%rbp), %rax shlq $3, %rax addq %rax, %r8 movq -80(%rbp), %r9 movq 48(%rbp), %rax addq $4, %rax leaq L_.str.7(%rip), %rdi movq %rax, (%rsp) callq _clanhb_ movss %xmm0, -112(%rbp) movl $0, -144(%rbp) movss -112(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero xorps %xmm1, %xmm1 ucomiss %xmm1, %xmm0 jbe LBB0_35 ## %bb.33: movss -112(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero movss -120(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero ucomiss %xmm1, %xmm0 jbe LBB0_35 ## %bb.34: movl $1, -144(%rbp) movss -120(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero divss -112(%rbp), %xmm0 movss %xmm0, -128(%rbp) jmp LBB0_38 LBB0_35: movss -112(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero ucomiss -124(%rbp), %xmm0 jbe LBB0_37 ## %bb.36: movl $1, -144(%rbp) movss -124(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero divss -112(%rbp), %xmm0 movss %xmm0, -128(%rbp) LBB0_37: jmp LBB0_38 LBB0_38: cmpl $1, -144(%rbp) jne LBB0_43 ## %bb.39: cmpl $0, -136(%rbp) je LBB0_41 ## %bb.40: movq -64(%rbp), %rsi movq -64(%rbp), %rdx movq -56(%rbp), %r9 movq -56(%rbp), %rbx movq -72(%rbp), %r11 movslq -88(%rbp), %rax shlq $3, %rax addq %rax, %r11 movq -80(%rbp), %r10 movq 56(%rbp), %rax leaq L_.str.8(%rip), %rdi leaq _c_b11(%rip), %rcx leaq -128(%rbp), %r8 movq %rbx, (%rsp) movq %r11, 8(%rsp) movq %r10, 16(%rsp) movq %rax, 24(%rsp) callq _clascl_ jmp LBB0_42 LBB0_41: movq -64(%rbp), %rsi movq -64(%rbp), %rdx movq -56(%rbp), %r9 movq -56(%rbp), %rbx movq -72(%rbp), %r11 movslq -88(%rbp), %rax shlq $3, %rax addq %rax, %r11 movq -80(%rbp), %r10 movq 56(%rbp), %rax leaq L_.str.9(%rip), %rdi leaq _c_b11(%rip), %rcx leaq -128(%rbp), %r8 movq %rbx, (%rsp) movq %r11, 8(%rsp) movq %r10, 16(%rsp) movq %rax, 24(%rsp) callq _clascl_ LBB0_42: jmp LBB0_43 LBB0_43: movl $1, -108(%rbp) movq -40(%rbp), %rdi movq -48(%rbp), %rsi movq -56(%rbp), %rdx movq -64(%rbp), %rcx movq -72(%rbp), %r8 movslq -88(%rbp), %rax shlq $3, %rax addq %rax, %r8 movq -80(%rbp), %r9 movq 16(%rbp), %r15 addq $4, %r15 movq 48(%rbp), %r14 movslq -108(%rbp), %rax shlq $2, %rax addq %rax, %r14 movq 24(%rbp), %rbx movslq -96(%rbp), %rax shlq $3, %rax addq %rax, %rbx movq 32(%rbp), %r11 movq 40(%rbp), %r10 addq $8, %r10 leaq -132(%rbp), %rax movq %r15, (%rsp) movq %r14, 8(%rsp) movq %rbx, 16(%rsp) movq %r11, 24(%rsp) movq %r10, 32(%rsp) movq %rax, 40(%rsp) callq _chbtrd_ cmpl $0, -140(%rbp) jne LBB0_45 ## %bb.44: movq -56(%rbp), %rdi movq 16(%rbp), %rsi addq $4, %rsi movq 48(%rbp), %rdx movslq -108(%rbp), %rax shlq $2, %rax addq %rax, %rdx movq 56(%rbp), %rcx callq _ssterf_ jmp LBB0_46 LBB0_45: movl -108(%rbp), %eax movq -56(%rbp), %rcx addl (%rcx), %eax movl %eax, -156(%rbp) movq -40(%rbp), %rdi movq -56(%rbp), %rsi movq 16(%rbp), %rdx addq $4, %rdx movq 48(%rbp), %rcx movslq -108(%rbp), %rax shlq $2, %rax addq %rax, %rcx movq 24(%rbp), %r8 movslq -96(%rbp), %rax shlq $3, %rax addq %rax, %r8 movq 32(%rbp), %r9 movq 48(%rbp), %r10 movslq -156(%rbp), %rax shlq $2, %rax addq %rax, %r10 movq 56(%rbp), %rax movq %r10, (%rsp) movq %rax, 8(%rsp) callq _csteqr_ LBB0_46: cmpl $1, -144(%rbp) jne LBB0_51 ## %bb.47: movq 56(%rbp), %rax cmpl $0, (%rax) jne LBB0_49 ## %bb.48: movq -56(%rbp), %rax movl (%rax), %eax movl %eax, -116(%rbp) jmp LBB0_50 LBB0_49: movq 56(%rbp), %rax movl (%rax), %eax subl $1, %eax movl %eax, -116(%rbp) LBB0_50: movss LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero divss -128(%rbp), %xmm0 movss %xmm0, -104(%rbp) movq 16(%rbp), %rdx addq $4, %rdx leaq -116(%rbp), %rdi leaq -104(%rbp), %rsi leaq _c__1(%rip), %rcx callq _sscal_ LBB0_51: movl $0, -28(%rbp) LBB0_52: movl -28(%rbp), %eax addq $200, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "V" L_.str.1: ## @.str.1 .asciz "L" L_.str.2: ## @.str.2 .asciz "N" L_.str.3: ## @.str.3 .asciz "U" L_.str.4: ## @.str.4 .asciz "CHBEV " L_.str.5: ## @.str.5 .asciz "Safe minimum" L_.str.6: ## @.str.6 .asciz "Precision" L_.str.7: ## @.str.7 .asciz "M" L_.str.8: ## @.str.8 .asciz "B" .section __DATA,__data .p2align 2 ## @c_b11 _c_b11: .long 0x3f800000 ## float 1 .section __TEXT,__cstring,cstring_literals L_.str.9: ## @.str.9 .asciz "Q" .section __DATA,__data .p2align 2 ## @c__1 _c__1: .long 1 ## 0x1 .subsections_via_symbols
the_stack_data/106252.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 0x400199999999999a ; double 2.2000000000000002 lCPI0_1: .quad 0x413c0d0000000000 ; double 1838336 lCPI0_2: .quad 0x40fcd55000000000 ; double 118101 lCPI0_3: .quad 0x40a2000000000000 ; double 2304 .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] stur wzr, [x29, #-44] str w0, [sp, #48] str x1, [sp, #40] mov w0, #4 str w0, [sp, #36] sub x1, x29, #40 fmov d0, #5.00000000 stur d0, [x29, #-40] adrp x8, lCPI0_3@PAGE ldr d0, [x8, lCPI0_3@PAGEOFF] stur d0, [x29, #-32] adrp x8, lCPI0_2@PAGE ldr d0, [x8, lCPI0_2@PAGEOFF] stur d0, [x29, #-24] adrp x8, lCPI0_1@PAGE ldr d0, [x8, lCPI0_1@PAGEOFF] stur d0, [x29, #-16] ldur d0, [x29, #-16] adrp x8, lCPI0_0@PAGE ldr d1, [x8, lCPI0_0@PAGEOFF] fadd d0, d0, d1 str d0, [sp, #16] ; 8-byte Folded Spill bl _calculate fmov d1, d0 ldr d0, [sp, #16] ; 8-byte Folded Reload fadd d0, d0, d1 str d0, [sp, #24] ldr d0, [sp, #24] ldr x8, [sp, #40] ldr x1, [x8, #16] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _cov_log ldr x8, [sp, #40] ldr x0, [x8, #16] ldr x8, [sp, #40] ldr x1, [x8, #8] ldr x8, [sp, #40] ldr x2, [x8, #24] bl _cov_check ldr d0, [sp, #24] mov x8, sp str d0, [x8] 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, #96] ; 16-byte Folded Reload add sp, sp, #112 ret .cfi_endproc ; -- End function .globl _calculate ; -- Begin function calculate .p2align 2 _calculate: ; @calculate .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str w0, [sp, #28] str x1, [sp, #16] movi d0, #0000000000000000 str d0, [sp, #8] str wzr, [sp, #4] b LBB1_1 LBB1_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #4] ldr w9, [sp, #28] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_4 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 ldr x8, [sp, #16] ldrsw x9, [sp, #4] ldr d1, [x8, x9, lsl #3] ldr d0, [sp, #8] fadd d0, d0, d1 str d0, [sp, #8] b LBB1_3 LBB1_3: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #4] add w8, w8, #1 str w8, [sp, #4] b LBB1_1 LBB1_4: ldr d0, [sp, #8] add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _cov_log ; -- Begin function cov_log .p2align 2 _cov_log: ; @cov_log .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 d0, [x29, #-8] stur x0, [x29, #-16] stur x1, [x29, #-24] ldur x0, [x29, #-24] adrp x1, l_.str.6@PAGE add x1, x1, l_.str.6@PAGEOFF bl _fopen str x0, [sp, #16] mov w8, #10 stur w8, [x29, #-28] ldursw x0, [x29, #-28] bl _malloc str x0, [sp, #24] ldur x0, [x29, #-16] bl _strlen subs x8, x0, #0 cset w8, ls tbnz w8, #0, LBB2_2 b LBB2_1 LBB2_1: ldr x0, [sp, #16] ldur x8, [x29, #-16] mov x9, sp str x8, [x9] adrp x1, l_.str.7@PAGE add x1, x1, l_.str.7@PAGEOFF bl _fprintf b LBB2_2 LBB2_2: ldur d0, [x29, #-8] ldr x0, [sp, #24] ldur w1, [x29, #-28] bl _cov_serialize str wzr, [sp, #32] b LBB2_3 LBB2_3: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #32] ldur w9, [x29, #-28] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB2_6 b LBB2_4 LBB2_4: ; in Loop: Header=BB2_3 Depth=1 ldr x0, [sp, #16] ldr x8, [sp, #24] ldrsw x9, [sp, #32] ldrb w10, [x8, x9] mov x9, sp ; implicit-def: $x8 mov x8, x10 str x8, [x9] adrp x1, l_.str.5@PAGE add x1, x1, l_.str.5@PAGEOFF bl _fprintf b LBB2_5 LBB2_5: ; in Loop: Header=BB2_3 Depth=1 ldr w8, [sp, #32] add w8, w8, #1 str w8, [sp, #32] b LBB2_3 LBB2_6: ldr x0, [sp, #16] adrp x1, l_.str.4@PAGE add x1, x1, l_.str.4@PAGEOFF bl _fprintf ldr x0, [sp, #16] bl _fclose ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .globl _cov_check ; -- Begin function cov_check .p2align 2 _cov_check: ; @cov_check .cfi_startproc ; %bb.0: sub sp, sp, #448 .cfi_def_cfa_offset 448 stp x28, x27, [sp, #416] ; 16-byte Folded Spill stp x29, x30, [sp, #432] ; 16-byte Folded Spill add x29, sp, #432 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w27, -24 .cfi_offset w28, -32 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] str x0, [sp, #80] str x1, [sp, #72] str x2, [sp, #64] mov w8, #10 str w8, [sp, #4] ldr x0, [sp, #80] adrp x1, l_.str.11@PAGE add x1, x1, l_.str.11@PAGEOFF bl _fopen str x0, [sp, #24] b LBB3_1 LBB3_1: ; =>This Inner Loop Header: Depth=1 ldr x2, [sp, #24] sub x0, x29, #104 mov w1, #80 bl _fgets subs x8, x0, #0 cset w8, eq tbnz w8, #0, LBB3_5 b LBB3_2 LBB3_2: ; in Loop: Header=BB3_1 Depth=1 ldursb w8, [x29, #-104] subs w8, w8, #35 cset w8, eq tbnz w8, #0, LBB3_4 b LBB3_3 LBB3_3: ; in Loop: Header=BB3_1 Depth=1 sub x0, x29, #184 sub x1, x29, #104 mov x2, #80 bl ___strcpy_chk b LBB3_4 LBB3_4: ; in Loop: Header=BB3_1 Depth=1 b LBB3_1 LBB3_5: ldr x0, [sp, #24] bl _fclose ldr x0, [sp, #72] adrp x1, l_.str.11@PAGE add x1, x1, l_.str.11@PAGEOFF bl _fopen str x0, [sp, #16] b LBB3_6 LBB3_6: ; =>This Inner Loop Header: Depth=1 ldr x2, [sp, #16] sub x0, x29, #104 mov w1, #80 bl _fgets subs x8, x0, #0 cset w8, eq tbnz w8, #0, LBB3_13 b LBB3_7 LBB3_7: ; in Loop: Header=BB3_6 Depth=1 sub x0, x29, #104 adrp x1, l_.str.12@PAGE add x1, x1, l_.str.12@PAGEOFF mov x2, #6 bl _strncmp subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB3_9 b LBB3_8 LBB3_8: ; in Loop: Header=BB3_6 Depth=1 ldr x2, [sp, #16] add x0, sp, #168 mov w1, #80 bl _fgets b LBB3_12 LBB3_9: ; in Loop: Header=BB3_6 Depth=1 sub x0, x29, #104 adrp x1, l_.str.13@PAGE add x1, x1, l_.str.13@PAGEOFF mov x2, #6 bl _strncmp subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB3_11 b LBB3_10 LBB3_10: ; in Loop: Header=BB3_6 Depth=1 ldr x2, [sp, #16] add x0, sp, #88 mov w1, #80 bl _fgets b LBB3_11 LBB3_11: ; in Loop: Header=BB3_6 Depth=1 b LBB3_12 LBB3_12: ; in Loop: Header=BB3_6 Depth=1 b LBB3_6 LBB3_13: ldr x0, [sp, #16] bl _fclose ldr w1, [sp, #4] sub x0, x29, #184 bl _cov_deserialize str d0, [sp, #56] ldr w1, [sp, #4] add x0, sp, #168 bl _cov_deserialize str d0, [sp, #48] ldr w1, [sp, #4] add x0, sp, #88 bl _cov_deserialize str d0, [sp, #40] ldr d0, [sp, #56] ldr d1, [sp, #48] fcmp d0, d1 cset w8, le tbnz w8, #0, LBB3_15 b LBB3_14 LBB3_14: ldr d0, [sp, #56] ldr d1, [sp, #48] fsub d0, d0, d1 str d0, [sp, #32] b LBB3_16 LBB3_15: ldr d0, [sp, #48] ldr d1, [sp, #56] fsub d0, d0, d1 str d0, [sp, #32] b LBB3_16 LBB3_16: ldr x0, [sp, #64] adrp x1, l_.str.14@PAGE add x1, x1, l_.str.14@PAGEOFF bl _fopen str x0, [sp, #8] ldr d0, [sp, #40] ldr d1, [sp, #32] fcmp d0, d1 cset w8, lt tbnz w8, #0, LBB3_18 b LBB3_17 LBB3_17: ldr x0, [sp, #8] adrp x1, l_.str.15@PAGE add x1, x1, l_.str.15@PAGEOFF bl _fprintf b LBB3_19 LBB3_18: ldr x0, [sp, #8] adrp x1, l_.str.16@PAGE add x1, x1, l_.str.16@PAGEOFF bl _fprintf b LBB3_19 LBB3_19: ldr x0, [sp, #8] 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_21 b LBB3_20 LBB3_20: bl ___stack_chk_fail LBB3_21: ldp x29, x30, [sp, #432] ; 16-byte Folded Reload ldp x28, x27, [sp, #416] ; 16-byte Folded Reload add sp, sp, #448 ret .cfi_endproc ; -- End function .globl _aprintf ; -- Begin function aprintf .p2align 2 _aprintf: ; @aprintf .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] ldur x8, [x29, #-8] mov x9, sp str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf str wzr, [sp, #20] b LBB4_1 LBB4_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #20] ldur w9, [x29, #-12] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB4_10 b LBB4_2 LBB4_2: ; in Loop: Header=BB4_1 Depth=1 ldr x8, [sp, #24] ldrsw x9, [sp, #20] ldr d0, [x8, x9, lsl #3] mov x8, sp str d0, [x8] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf ldr w8, [sp, #20] add w8, w8, #1 ldur w9, [x29, #-12] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB4_4 b LBB4_3 LBB4_3: ; in Loop: Header=BB4_1 Depth=1 ldr x8, [sp, #24] ldr w9, [sp, #20] add w9, w9, #1 ldr d0, [x8, w9, sxtw #3] mov x8, sp str d0, [x8] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf b LBB4_4 LBB4_4: ; in Loop: Header=BB4_1 Depth=1 ldr w8, [sp, #20] add w8, w8, #2 ldur w9, [x29, #-12] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB4_6 b LBB4_5 LBB4_5: ; in Loop: Header=BB4_1 Depth=1 ldr x8, [sp, #24] ldr w9, [sp, #20] add w9, w9, #2 ldr d0, [x8, w9, sxtw #3] mov x8, sp str d0, [x8] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf b LBB4_6 LBB4_6: ; in Loop: Header=BB4_1 Depth=1 ldr w8, [sp, #20] add w8, w8, #3 ldur w9, [x29, #-12] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB4_8 b LBB4_7 LBB4_7: ; in Loop: Header=BB4_1 Depth=1 ldr x8, [sp, #24] ldr w9, [sp, #20] add w9, w9, #3 ldr d0, [x8, w9, sxtw #3] mov x8, sp str d0, [x8] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf b LBB4_8 LBB4_8: ; in Loop: Header=BB4_1 Depth=1 adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf b LBB4_9 LBB4_9: ; in Loop: Header=BB4_1 Depth=1 ldr w8, [sp, #20] add w8, w8, #4 str w8, [sp, #20] b LBB4_1 LBB4_10: ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _cov_serialize ; -- Begin function cov_serialize .p2align 2 _cov_serialize: ; @cov_serialize .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 d0, [sp, #16] str x0, [sp, #8] str w1, [sp, #4] ldr d0, [sp, #16] str d0, [sp, #24] str wzr, [sp] b LBB5_1 LBB5_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp] ldr w9, [sp, #4] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB5_4 b LBB5_2 LBB5_2: ; in Loop: Header=BB5_1 Depth=1 ldrsw x9, [sp] add x8, sp, #24 add x8, x8, x9 ldrb w8, [x8] ldr x9, [sp, #8] ldrsw x10, [sp] add x9, x9, x10 strb w8, [x9] b LBB5_3 LBB5_3: ; in Loop: Header=BB5_1 Depth=1 ldr w8, [sp] add w8, w8, #1 str w8, [sp] b LBB5_1 LBB5_4: ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB5_6 b LBB5_5 LBB5_5: bl ___stack_chk_fail LBB5_6: ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _cov_deserialize ; -- Begin function cov_deserialize .p2align 2 _cov_deserialize: ; @cov_deserialize .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, #32] str w1, [sp, #28] str wzr, [sp, #24] b LBB6_1 LBB6_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #24] ldr w9, [sp, #28] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB6_4 b LBB6_2 LBB6_2: ; in Loop: Header=BB6_1 Depth=1 ldr x0, [sp, #32] mov x9, sp add x8, sp, #20 str x8, [x9] adrp x1, l_.str.5@PAGE add x1, x1, l_.str.5@PAGEOFF bl _sscanf ldr w8, [sp, #20] ldrsw x10, [sp, #24] sub x9, x29, #24 strb w8, [x9, x10] ldr x8, [sp, #32] add x8, x8, #2 str x8, [sp, #32] b LBB6_3 LBB6_3: ; in Loop: Header=BB6_1 Depth=1 ldr w8, [sp, #24] add w8, w8, #1 str w8, [sp, #24] b LBB6_1 LBB6_4: ldur d0, [x29, #-24] 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, LBB6_6 b LBB6_5 LBB6_5: bl ___stack_chk_fail LBB6_6: ldr d0, [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 _cov_spec_log ; -- Begin function cov_spec_log .p2align 2 _cov_spec_log: ; @cov_spec_log .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur d0, [x29, #-8] str d1, [sp, #16] str x0, [sp, #8] ldur d0, [x29, #-8] ldr x1, [sp, #8] adrp x0, l_.str.8@PAGE add x0, x0, l_.str.8@PAGEOFF bl _cov_log ldr d0, [sp, #16] ldr x1, [sp, #8] adrp x0, l_.str.9@PAGE add x0, x0, l_.str.9@PAGEOFF bl _cov_log ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _cov_arr_log ; -- Begin function cov_arr_log .p2align 2 _cov_arr_log: ; @cov_arr_log .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 w1, [x29, #-12] stur x2, [x29, #-24] stur x3, [x29, #-32] ldur x0, [x29, #-32] adrp x1, l_.str.6@PAGE add x1, x1, l_.str.6@PAGEOFF bl _fopen str x0, [sp, #16] mov w8, #10 stur w8, [x29, #-36] ldursw x0, [x29, #-36] bl _malloc str x0, [sp, #24] ldur x0, [x29, #-24] bl _strlen subs x8, x0, #0 cset w8, ls tbnz w8, #0, LBB8_2 b LBB8_1 LBB8_1: ldr x0, [sp, #16] ldur x8, [x29, #-24] mov x9, sp str x8, [x9] adrp x1, l_.str.7@PAGE add x1, x1, l_.str.7@PAGEOFF bl _fprintf b LBB8_2 LBB8_2: str wzr, [sp, #40] b LBB8_3 LBB8_3: ; =>This Loop Header: Depth=1 ; Child Loop BB8_7 Depth 2 ldr w8, [sp, #40] ldur w9, [x29, #-12] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB8_12 b LBB8_4 LBB8_4: ; in Loop: Header=BB8_3 Depth=1 ldur x8, [x29, #-8] ldrsw x9, [sp, #40] ldr d0, [x8, x9, lsl #3] str d0, [sp, #8] ldr d0, [sp, #8] ldr x0, [sp, #24] ldur w1, [x29, #-36] bl _cov_serialize ldr w8, [sp, #40] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB8_6 b LBB8_5 LBB8_5: ; in Loop: Header=BB8_3 Depth=1 ldr x0, [sp, #16] adrp x1, l_.str.10@PAGE add x1, x1, l_.str.10@PAGEOFF bl _fprintf b LBB8_6 LBB8_6: ; in Loop: Header=BB8_3 Depth=1 str wzr, [sp, #36] b LBB8_7 LBB8_7: ; Parent Loop BB8_3 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #36] ldur w9, [x29, #-36] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB8_10 b LBB8_8 LBB8_8: ; in Loop: Header=BB8_7 Depth=2 ldr x0, [sp, #16] ldr x8, [sp, #24] ldrsw x9, [sp, #36] ldrb w10, [x8, x9] mov x9, sp ; implicit-def: $x8 mov x8, x10 str x8, [x9] adrp x1, l_.str.5@PAGE add x1, x1, l_.str.5@PAGEOFF bl _fprintf b LBB8_9 LBB8_9: ; in Loop: Header=BB8_7 Depth=2 ldr w8, [sp, #36] add w8, w8, #1 str w8, [sp, #36] b LBB8_7 LBB8_10: ; in Loop: Header=BB8_3 Depth=1 b LBB8_11 LBB8_11: ; in Loop: Header=BB8_3 Depth=1 ldr w8, [sp, #40] add w8, w8, #1 str w8, [sp, #40] b LBB8_3 LBB8_12: ldr x0, [sp, #16] adrp x1, l_.str.4@PAGE add x1, x1, l_.str.4@PAGEOFF bl _fprintf ldr x0, [sp, #16] bl _fclose ldp x29, x30, [sp, #80] ; 16-byte Folded Reload add sp, sp, #96 ret .cfi_endproc ; -- End function .globl _cov_spec_arr_log ; -- Begin function cov_spec_arr_log .p2align 2 _cov_spec_arr_log: ; @cov_spec_arr_log .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 d0, [sp, #8] str x2, [sp] ldur x0, [x29, #-8] ldur w1, [x29, #-12] ldr x3, [sp] adrp x2, l_.str.8@PAGE add x2, x2, l_.str.8@PAGEOFF bl _cov_arr_log ldr d0, [sp, #8] ldr x1, [sp] adrp x0, l_.str.9@PAGE add x0, x0, l_.str.9@PAGEOFF bl _cov_log ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _cov_arr_check ; -- Begin function cov_arr_check .p2align 2 _cov_arr_check: ; @cov_arr_check .cfi_startproc ; %bb.0: stp x20, x19, [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 w19, -24 .cfi_offset w20, -32 sub sp, sp, #1200 mov x19, sp adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] str x0, [x19, #184] str x1, [x19, #176] str w2, [x19, #172] ldr w8, [x19, #172] ; kill: def $x8 killed $w8 mov x9, sp str x9, [x19, #128] lsl x9, x8, #3 add x9, x9, #15 and x9, x9, #0xfffffffffffffff0 str x9, [x19, #32] ; 8-byte Folded Spill adrp x16, ___chkstk_darwin@GOTPAGE ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF] blr x16 ldr x10, [x19, #32] ; 8-byte Folded Reload mov x9, sp subs x9, x9, x10 mov sp, x9 str x9, [x19, #40] ; 8-byte Folded Spill str x8, [x19, #120] ldr w8, [x19, #172] ; kill: def $x8 killed $w8 lsl x9, x8, #3 add x9, x9, #15 and x9, x9, #0xfffffffffffffff0 str x9, [x19, #48] ; 8-byte Folded Spill adrp x16, ___chkstk_darwin@GOTPAGE ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF] blr x16 ldr x10, [x19, #48] ; 8-byte Folded Reload mov x9, sp subs x9, x9, x10 mov sp, x9 str x9, [x19, #56] ; 8-byte Folded Spill str x8, [x19, #112] adrp x8, l_.str.10@PAGE add x8, x8, l_.str.10@PAGEOFF str x8, [x19, #152] mov w8, #10 str w8, [x19, #84] ldr x0, [x19, #184] adrp x1, l_.str.11@PAGE add x1, x1, l_.str.11@PAGEOFF bl _fopen str x0, [x19, #96] b LBB10_1 LBB10_1: ; =>This Loop Header: Depth=1 ; Child Loop BB10_4 Depth 2 ldr x2, [x19, #96] add x0, x19, #192 mov w1, #1000 bl _fgets subs x8, x0, #0 cset w8, eq tbnz w8, #0, LBB10_9 b LBB10_2 LBB10_2: ; in Loop: Header=BB10_1 Depth=1 ldrsb w8, [x19, #192] subs w8, w8, #35 cset w8, eq tbnz w8, #0, LBB10_8 b LBB10_3 LBB10_3: ; in Loop: Header=BB10_1 Depth=1 str wzr, [x19, #80] ldr x1, [x19, #152] add x0, x19, #192 add x2, x19, #144 bl _strtok_r str x0, [x19, #160] b LBB10_4 LBB10_4: ; Parent Loop BB10_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr x8, [x19, #160] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB10_7 b LBB10_5 LBB10_5: ; in Loop: Header=BB10_4 Depth=2 ldr x0, [x19, #160] ldr w1, [x19, #84] bl _cov_deserialize ldr x8, [x19, #40] ; 8-byte Folded Reload ldrsw x9, [x19, #80] str d0, [x8, x9, lsl #3] ldr w8, [x19, #80] add w8, w8, #1 str w8, [x19, #80] b LBB10_6 LBB10_6: ; in Loop: Header=BB10_4 Depth=2 ldr x1, [x19, #152] mov x0, #0 add x2, x19, #144 bl _strtok_r str x0, [x19, #160] b LBB10_4 LBB10_7: ; in Loop: Header=BB10_1 Depth=1 b LBB10_8 LBB10_8: ; in Loop: Header=BB10_1 Depth=1 b LBB10_1 LBB10_9: ldr x0, [x19, #96] bl _fclose ldr x0, [x19, #176] adrp x1, l_.str.11@PAGE add x1, x1, l_.str.11@PAGEOFF bl _fopen str x0, [x19, #88] b LBB10_10 LBB10_10: ; =>This Loop Header: Depth=1 ; Child Loop BB10_13 Depth 2 ldr x2, [x19, #96] add x0, x19, #192 mov w1, #1000 bl _fgets subs x8, x0, #0 cset w8, eq tbnz w8, #0, LBB10_21 b LBB10_11 LBB10_11: ; in Loop: Header=BB10_10 Depth=1 add x0, x19, #192 adrp x1, l_.str.12@PAGE add x1, x1, l_.str.12@PAGEOFF mov x2, #6 bl _strncmp subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB10_17 b LBB10_12 LBB10_12: ; in Loop: Header=BB10_10 Depth=1 str wzr, [x19, #80] ldr x2, [x19, #88] add x0, x19, #192 str x0, [x19, #24] ; 8-byte Folded Spill mov w1, #1000 bl _fgets ldr x0, [x19, #24] ; 8-byte Folded Reload ldr x1, [x19, #152] add x2, x19, #136 bl _strtok_r str x0, [x19, #160] b LBB10_13 LBB10_13: ; Parent Loop BB10_10 Depth=1 ; => This Inner Loop Header: Depth=2 ldr x8, [x19, #160] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB10_16 b LBB10_14 LBB10_14: ; in Loop: Header=BB10_13 Depth=2 ldr x0, [x19, #160] ldr w1, [x19, #84] bl _cov_deserialize ldr x8, [x19, #56] ; 8-byte Folded Reload ldrsw x9, [x19, #80] str d0, [x8, x9, lsl #3] ldr w8, [x19, #80] add w8, w8, #1 str w8, [x19, #80] b LBB10_15 LBB10_15: ; in Loop: Header=BB10_13 Depth=2 ldr x1, [x19, #152] mov x0, #0 add x2, x19, #136 bl _strtok_r str x0, [x19, #160] b LBB10_13 LBB10_16: ; in Loop: Header=BB10_10 Depth=1 b LBB10_20 LBB10_17: ; in Loop: Header=BB10_10 Depth=1 add x0, x19, #192 adrp x1, l_.str.13@PAGE add x1, x1, l_.str.13@PAGEOFF mov x2, #6 bl _strncmp subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB10_19 b LBB10_18 LBB10_18: ; in Loop: Header=BB10_10 Depth=1 ldr x2, [x19, #88] add x0, x19, #192 str x0, [x19, #16] ; 8-byte Folded Spill mov w1, #80 bl _fgets ldr x0, [x19, #16] ; 8-byte Folded Reload ldr w1, [x19, #84] bl _cov_deserialize str d0, [x19, #104] b LBB10_19 LBB10_19: ; in Loop: Header=BB10_10 Depth=1 b LBB10_20 LBB10_20: ; in Loop: Header=BB10_10 Depth=1 b LBB10_10 LBB10_21: ldr x0, [x19, #88] bl _fclose mov w8, #1 str w8, [x19, #72] str wzr, [x19, #76] b LBB10_22 LBB10_22: ; =>This Inner Loop Header: Depth=1 ldr w8, [x19, #76] ldr w9, [x19, #172] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB10_30 b LBB10_23 LBB10_23: ; in Loop: Header=BB10_22 Depth=1 ldr x8, [x19, #56] ; 8-byte Folded Reload ldr x9, [x19, #40] ; 8-byte Folded Reload ldrsw x10, [x19, #76] ldr d0, [x9, x10, lsl #3] ldrsw x9, [x19, #76] ldr d1, [x8, x9, lsl #3] fcmp d0, d1 cset w8, le tbnz w8, #0, LBB10_25 b LBB10_24 LBB10_24: ; in Loop: Header=BB10_22 Depth=1 ldr x8, [x19, #56] ; 8-byte Folded Reload ldr x9, [x19, #40] ; 8-byte Folded Reload ldrsw x10, [x19, #76] ldr d0, [x9, x10, lsl #3] ldrsw x9, [x19, #76] ldr d1, [x8, x9, lsl #3] fsub d0, d0, d1 str d0, [x19, #64] b LBB10_26 LBB10_25: ; in Loop: Header=BB10_22 Depth=1 ldr x8, [x19, #40] ; 8-byte Folded Reload ldr x9, [x19, #56] ; 8-byte Folded Reload ldrsw x10, [x19, #76] ldr d0, [x9, x10, lsl #3] ldrsw x9, [x19, #76] ldr d1, [x8, x9, lsl #3] fsub d0, d0, d1 str d0, [x19, #64] b LBB10_26 LBB10_26: ; in Loop: Header=BB10_22 Depth=1 ldr d0, [x19, #104] ldr d1, [x19, #64] fcmp d0, d1 cset w8, pl tbnz w8, #0, LBB10_28 b LBB10_27 LBB10_27: str wzr, [x19, #72] b LBB10_30 LBB10_28: ; in Loop: Header=BB10_22 Depth=1 b LBB10_29 LBB10_29: ; in Loop: Header=BB10_22 Depth=1 ldr w8, [x19, #76] add w8, w8, #1 str w8, [x19, #76] b LBB10_22 LBB10_30: ldr w8, [x19, #72] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB10_32 b LBB10_31 LBB10_31: adrp x0, l_.str.15@PAGE add x0, x0, l_.str.15@PAGEOFF bl _printf b LBB10_33 LBB10_32: adrp x0, l_.str.16@PAGE add x0, x0, l_.str.16@PAGEOFF bl _printf b LBB10_33 LBB10_33: ldr x8, [x19, #128] str x8, [x19, #8] ; 8-byte Folded Spill ldur x9, [x29, #-24] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB10_35 b LBB10_34 LBB10_34: bl ___stack_chk_fail LBB10_35: ldr x8, [x19, #8] ; 8-byte Folded Reload mov sp, x8 sub sp, x29, #16 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "result" l_.str.1: ; @.str.1 .asciz "%1.15Le\n" l_.str.2: ; @.str.2 .asciz "%s\n" l_.str.3: ; @.str.3 .asciz "\t%10.15Lg" l_.str.4: ; @.str.4 .asciz "\n" l_.str.5: ; @.str.5 .asciz "%02X" l_.str.6: ; @.str.6 .asciz "a" l_.str.7: ; @.str.7 .asciz "#%s\n" l_.str.8: ; @.str.8 .asciz "ideal" l_.str.9: ; @.str.9 .asciz "delta" l_.str.10: ; @.str.10 .asciz " " l_.str.11: ; @.str.11 .asciz "rt" l_.str.12: ; @.str.12 .asciz "#ideal" l_.str.13: ; @.str.13 .asciz "#delta" l_.str.14: ; @.str.14 .asciz "w" l_.str.15: ; @.str.15 .asciz "true\n" l_.str.16: ; @.str.16 .asciz "false\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 0x40a00000 ## float 5 LCPI0_1: .long 0x45100000 ## float 2304 LCPI0_2: .long 0x47e6aa80 ## float 118101 LCPI0_3: .long 0x49e06800 ## float 1838336 .section __TEXT,__literal16,16byte_literals .p2align 4 LCPI0_4: .quad 0x8ccccccccccccccd ## x86_fp80 2.20000000000000000004 .short 0x4000 .space 6 .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 $160, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -84(%rbp) movl %edi, -88(%rbp) movq %rsi, -96(%rbp) movl $4, -100(%rbp) flds LCPI0_0(%rip) fstpt -80(%rbp) flds LCPI0_1(%rip) fstpt -64(%rbp) flds LCPI0_2(%rip) fstpt -48(%rbp) flds LCPI0_3(%rip) fstpt -32(%rbp) fldt -32(%rbp) fldt LCPI0_4(%rip) faddp %st, %st(1) fstpt -140(%rbp) ## 10-byte Folded Spill movl $4, %edi leaq -80(%rbp), %rsi callq _calculate fldt -140(%rbp) ## 10-byte Folded Reload faddp %st, %st(1) fstpt -128(%rbp) fldt -128(%rbp) movq -96(%rbp), %rax movq 16(%rax), %rsi movq %rsp, %rax fstpt (%rax) leaq L_.str(%rip), %rdi callq _cov_log movq -96(%rbp), %rax movq 8(%rax), %rsi movq 16(%rax), %rdi movq 24(%rax), %rdx callq _cov_check fldt -128(%rbp) movq %rsp, %rax fstpt (%rax) leaq L_.str.1(%rip), %rdi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _printf movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_2 ## %bb.1: xorl %eax, %eax addq $160, %rsp popq %rbp retq LBB0_2: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _calculate ## -- Begin function calculate .p2align 4, 0x90 _calculate: ## @calculate .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) fldz fstpt -32(%rbp) movl $0, -36(%rbp) LBB1_1: ## =>This Inner Loop Header: Depth=1 movl -36(%rbp), %eax cmpl -4(%rbp), %eax jge LBB1_4 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 movq -16(%rbp), %rax movslq -36(%rbp), %rcx shlq $4, %rcx fldt (%rax,%rcx) fldt -32(%rbp) faddp %st, %st(1) fstpt -32(%rbp) ## %bb.3: ## in Loop: Header=BB1_1 Depth=1 movl -36(%rbp), %eax addl $1, %eax movl %eax, -36(%rbp) jmp LBB1_1 LBB1_4: fldt -32(%rbp) popq %rbp retq .cfi_endproc ## -- End function .globl _cov_log ## -- Begin function cov_log .p2align 4, 0x90 _cov_log: ## @cov_log .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 fldt 16(%rbp) fstpt -16(%rbp) movq %rdi, -24(%rbp) movq %rsi, -32(%rbp) movq -32(%rbp), %rdi leaq L_.str.6(%rip), %rsi callq _fopen movq %rax, -56(%rbp) movl $10, -36(%rbp) movslq -36(%rbp), %rdi callq _malloc movq %rax, -48(%rbp) movq -24(%rbp), %rdi callq _strlen cmpq $0, %rax jbe LBB2_2 ## %bb.1: movq -56(%rbp), %rdi movq -24(%rbp), %rdx leaq L_.str.7(%rip), %rsi movb $0, %al callq _fprintf LBB2_2: fldt -16(%rbp) movq -48(%rbp), %rdi movl -36(%rbp), %esi movq %rsp, %rax fstpt (%rax) callq _cov_serialize movl $0, -40(%rbp) LBB2_3: ## =>This Inner Loop Header: Depth=1 movl -40(%rbp), %eax cmpl -36(%rbp), %eax jge LBB2_6 ## %bb.4: ## in Loop: Header=BB2_3 Depth=1 movq -56(%rbp), %rdi movq -48(%rbp), %rax movslq -40(%rbp), %rcx movzbl (%rax,%rcx), %edx leaq L_.str.5(%rip), %rsi movb $0, %al callq _fprintf ## %bb.5: ## in Loop: Header=BB2_3 Depth=1 movl -40(%rbp), %eax addl $1, %eax movl %eax, -40(%rbp) jmp LBB2_3 LBB2_6: movq -56(%rbp), %rdi leaq L_.str.4(%rip), %rsi movb $0, %al callq _fprintf movq -56(%rbp), %rdi callq _fclose addq $80, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _cov_check ## -- Begin function cov_check .p2align 4, 0x90 _cov_check: ## @cov_check .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $464, %rsp ## imm = 0x1D0 movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movq %rdi, -344(%rbp) movq %rsi, -352(%rbp) movq %rdx, -360(%rbp) movl $10, -460(%rbp) movq -344(%rbp), %rdi leaq L_.str.11(%rip), %rsi callq _fopen movq %rax, -440(%rbp) LBB3_1: ## =>This Inner Loop Header: Depth=1 leaq -96(%rbp), %rdi movq -440(%rbp), %rdx movl $80, %esi callq _fgets cmpq $0, %rax je LBB3_5 ## %bb.2: ## in Loop: Header=BB3_1 Depth=1 movsbl -96(%rbp), %eax cmpl $35, %eax je LBB3_4 ## %bb.3: ## in Loop: Header=BB3_1 Depth=1 leaq -176(%rbp), %rdi leaq -96(%rbp), %rsi movl $80, %edx callq ___strcpy_chk LBB3_4: ## in Loop: Header=BB3_1 Depth=1 jmp LBB3_1 LBB3_5: movq -440(%rbp), %rdi callq _fclose movq -352(%rbp), %rdi leaq L_.str.11(%rip), %rsi callq _fopen movq %rax, -448(%rbp) LBB3_6: ## =>This Inner Loop Header: Depth=1 leaq -96(%rbp), %rdi movq -448(%rbp), %rdx movl $80, %esi callq _fgets cmpq $0, %rax je LBB3_13 ## %bb.7: ## in Loop: Header=BB3_6 Depth=1 leaq -96(%rbp), %rdi leaq L_.str.12(%rip), %rsi movl $6, %edx callq _strncmp cmpl $0, %eax jne LBB3_9 ## %bb.8: ## in Loop: Header=BB3_6 Depth=1 leaq -256(%rbp), %rdi movq -448(%rbp), %rdx movl $80, %esi callq _fgets jmp LBB3_12 LBB3_9: ## in Loop: Header=BB3_6 Depth=1 leaq -96(%rbp), %rdi leaq L_.str.13(%rip), %rsi movl $6, %edx callq _strncmp cmpl $0, %eax jne LBB3_11 ## %bb.10: ## in Loop: Header=BB3_6 Depth=1 leaq -336(%rbp), %rdi movq -448(%rbp), %rdx movl $80, %esi callq _fgets LBB3_11: ## in Loop: Header=BB3_6 Depth=1 jmp LBB3_12 LBB3_12: ## in Loop: Header=BB3_6 Depth=1 jmp LBB3_6 LBB3_13: movq -448(%rbp), %rdi callq _fclose movl -460(%rbp), %esi leaq -176(%rbp), %rdi callq _cov_deserialize fstpt -384(%rbp) movl -460(%rbp), %esi leaq -256(%rbp), %rdi callq _cov_deserialize fstpt -400(%rbp) movl -460(%rbp), %esi leaq -336(%rbp), %rdi callq _cov_deserialize fstpt -416(%rbp) fldt -384(%rbp) fldt -400(%rbp) fxch %st(1) fucompi %st(1), %st fstp %st(0) jbe LBB3_15 jmp LBB3_14 LBB3_14: fldt -384(%rbp) fldt -400(%rbp) fsubrp %st, %st(1) fstpt -432(%rbp) jmp LBB3_16 LBB3_15: fldt -400(%rbp) fldt -384(%rbp) fsubrp %st, %st(1) fstpt -432(%rbp) LBB3_16: movq -360(%rbp), %rdi leaq L_.str.14(%rip), %rsi callq _fopen movq %rax, -456(%rbp) fldt -416(%rbp) fldt -432(%rbp) fxch %st(1) fucompi %st(1), %st fstp %st(0) jb LBB3_18 jmp LBB3_17 LBB3_17: movq -456(%rbp), %rdi leaq L_.str.15(%rip), %rsi movb $0, %al callq _fprintf jmp LBB3_19 LBB3_18: movq -456(%rbp), %rdi leaq L_.str.16(%rip), %rsi movb $0, %al callq _fprintf LBB3_19: movq -456(%rbp), %rdi callq _fclose movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB3_21 ## %bb.20: addq $464, %rsp ## imm = 0x1D0 popq %rbp retq LBB3_21: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _aprintf ## -- Begin function aprintf .p2align 4, 0x90 _aprintf: ## @aprintf .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 -8(%rbp), %rsi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf movl $0, -28(%rbp) LBB4_1: ## =>This Inner Loop Header: Depth=1 movl -28(%rbp), %eax cmpl -12(%rbp), %eax jge LBB4_10 ## %bb.2: ## in Loop: Header=BB4_1 Depth=1 movq -24(%rbp), %rax movslq -28(%rbp), %rcx shlq $4, %rcx fldt (%rax,%rcx) movq %rsp, %rax fstpt (%rax) leaq L_.str.3(%rip), %rdi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _printf movl -28(%rbp), %eax addl $1, %eax cmpl -12(%rbp), %eax jge LBB4_4 ## %bb.3: ## in Loop: Header=BB4_1 Depth=1 movq -24(%rbp), %rcx movslq -28(%rbp), %rax shlq $4, %rax fldt 16(%rax,%rcx) movq %rsp, %rax fstpt (%rax) leaq L_.str.3(%rip), %rdi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _printf LBB4_4: ## in Loop: Header=BB4_1 Depth=1 movl -28(%rbp), %eax addl $2, %eax cmpl -12(%rbp), %eax jge LBB4_6 ## %bb.5: ## in Loop: Header=BB4_1 Depth=1 movq -24(%rbp), %rcx movslq -28(%rbp), %rax shlq $4, %rax fldt 32(%rax,%rcx) movq %rsp, %rax fstpt (%rax) leaq L_.str.3(%rip), %rdi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _printf LBB4_6: ## in Loop: Header=BB4_1 Depth=1 movl -28(%rbp), %eax addl $3, %eax cmpl -12(%rbp), %eax jge LBB4_8 ## %bb.7: ## in Loop: Header=BB4_1 Depth=1 movq -24(%rbp), %rcx movslq -28(%rbp), %rax shlq $4, %rax fldt 48(%rax,%rcx) movq %rsp, %rax fstpt (%rax) leaq L_.str.3(%rip), %rdi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _printf LBB4_8: ## in Loop: Header=BB4_1 Depth=1 leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf ## %bb.9: ## in Loop: Header=BB4_1 Depth=1 movl -28(%rbp), %eax addl $4, %eax movl %eax, -28(%rbp) jmp LBB4_1 LBB4_10: addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _cov_serialize ## -- Begin function cov_serialize .p2align 4, 0x90 _cov_serialize: ## @cov_serialize .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp fldt 16(%rbp) fstpt -16(%rbp) movq %rdi, -24(%rbp) movl %esi, -28(%rbp) fldt -16(%rbp) fstpt -48(%rbp) movl $0, -32(%rbp) LBB5_1: ## =>This Inner Loop Header: Depth=1 movl -32(%rbp), %eax cmpl -28(%rbp), %eax jge LBB5_4 ## %bb.2: ## in Loop: Header=BB5_1 Depth=1 movslq -32(%rbp), %rax movb -48(%rbp,%rax), %dl movq -24(%rbp), %rax movslq -32(%rbp), %rcx movb %dl, (%rax,%rcx) ## %bb.3: ## in Loop: Header=BB5_1 Depth=1 movl -32(%rbp), %eax addl $1, %eax movl %eax, -32(%rbp) jmp LBB5_1 LBB5_4: popq %rbp retq .cfi_endproc ## -- End function .globl _cov_deserialize ## -- Begin function cov_deserialize .p2align 4, 0x90 _cov_deserialize: ## @cov_deserialize .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) movl $0, -16(%rbp) LBB6_1: ## =>This Inner Loop Header: Depth=1 movl -16(%rbp), %eax cmpl -12(%rbp), %eax jge LBB6_4 ## %bb.2: ## in Loop: Header=BB6_1 Depth=1 movq -8(%rbp), %rdi leaq L_.str.5(%rip), %rsi leaq -20(%rbp), %rdx movb $0, %al callq _sscanf movl -20(%rbp), %eax movb %al, %cl movslq -16(%rbp), %rax movb %cl, -48(%rbp,%rax) movq -8(%rbp), %rax addq $2, %rax movq %rax, -8(%rbp) ## %bb.3: ## in Loop: Header=BB6_1 Depth=1 movl -16(%rbp), %eax addl $1, %eax movl %eax, -16(%rbp) jmp LBB6_1 LBB6_4: fldt -48(%rbp) addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _cov_spec_log ## -- Begin function cov_spec_log .p2align 4, 0x90 _cov_spec_log: ## @cov_spec_log .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 fldt 32(%rbp) fldt 16(%rbp) fstpt -16(%rbp) fstpt -32(%rbp) movq %rdi, -40(%rbp) fldt -16(%rbp) movq -40(%rbp), %rsi movq %rsp, %rax fstpt (%rax) leaq L_.str.8(%rip), %rdi callq _cov_log fldt -32(%rbp) movq -40(%rbp), %rsi movq %rsp, %rax fstpt (%rax) leaq L_.str.9(%rip), %rdi callq _cov_log addq $64, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _cov_arr_log ## -- Begin function cov_arr_log .p2align 4, 0x90 _cov_arr_log: ## @cov_arr_log .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $96, %rsp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) movq %rdx, -24(%rbp) movq %rcx, -32(%rbp) movq -32(%rbp), %rdi leaq L_.str.6(%rip), %rsi callq _fopen movq %rax, -64(%rbp) movl $10, -36(%rbp) movslq -36(%rbp), %rdi callq _malloc movq %rax, -56(%rbp) movq -24(%rbp), %rdi callq _strlen cmpq $0, %rax jbe LBB8_2 ## %bb.1: movq -64(%rbp), %rdi movq -24(%rbp), %rdx leaq L_.str.7(%rip), %rsi movb $0, %al callq _fprintf LBB8_2: movl $0, -40(%rbp) LBB8_3: ## =>This Loop Header: Depth=1 ## Child Loop BB8_7 Depth 2 movl -40(%rbp), %eax cmpl -12(%rbp), %eax jge LBB8_12 ## %bb.4: ## in Loop: Header=BB8_3 Depth=1 movq -8(%rbp), %rax movslq -40(%rbp), %rcx shlq $4, %rcx fldt (%rax,%rcx) fstpt -80(%rbp) fldt -80(%rbp) movq -56(%rbp), %rdi movl -36(%rbp), %esi movq %rsp, %rax fstpt (%rax) callq _cov_serialize cmpl $0, -40(%rbp) jle LBB8_6 ## %bb.5: ## in Loop: Header=BB8_3 Depth=1 movq -64(%rbp), %rdi leaq L_.str.10(%rip), %rsi movb $0, %al callq _fprintf LBB8_6: ## in Loop: Header=BB8_3 Depth=1 movl $0, -44(%rbp) LBB8_7: ## Parent Loop BB8_3 Depth=1 ## => This Inner Loop Header: Depth=2 movl -44(%rbp), %eax cmpl -36(%rbp), %eax jge LBB8_10 ## %bb.8: ## in Loop: Header=BB8_7 Depth=2 movq -64(%rbp), %rdi movq -56(%rbp), %rax movslq -44(%rbp), %rcx movzbl (%rax,%rcx), %edx leaq L_.str.5(%rip), %rsi movb $0, %al callq _fprintf ## %bb.9: ## in Loop: Header=BB8_7 Depth=2 movl -44(%rbp), %eax addl $1, %eax movl %eax, -44(%rbp) jmp LBB8_7 LBB8_10: ## in Loop: Header=BB8_3 Depth=1 jmp LBB8_11 LBB8_11: ## in Loop: Header=BB8_3 Depth=1 movl -40(%rbp), %eax addl $1, %eax movl %eax, -40(%rbp) jmp LBB8_3 LBB8_12: movq -64(%rbp), %rdi leaq L_.str.4(%rip), %rsi movb $0, %al callq _fprintf movq -64(%rbp), %rdi callq _fclose addq $96, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _cov_spec_arr_log ## -- Begin function cov_spec_arr_log .p2align 4, 0x90 _cov_spec_arr_log: ## @cov_spec_arr_log .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 fldt 16(%rbp) movq %rdi, -8(%rbp) movl %esi, -12(%rbp) fstpt -32(%rbp) movq %rdx, -40(%rbp) movq -8(%rbp), %rdi movl -12(%rbp), %esi movq -40(%rbp), %rcx leaq L_.str.8(%rip), %rdx callq _cov_arr_log fldt -32(%rbp) movq -40(%rbp), %rsi movq %rsp, %rax fstpt (%rax) leaq L_.str.9(%rip), %rdi callq _cov_log addq $64, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _cov_arr_check ## -- Begin function cov_arr_check .p2align 4, 0x90 _cov_arr_check: ## @cov_arr_check .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $1200, %rsp ## imm = 0x4B0 movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movq %rdi, -1016(%rbp) movq %rsi, -1024(%rbp) movl %edx, -1028(%rbp) movl -1028(%rbp), %eax ## kill: def $rax killed $eax movq %rax, -1184(%rbp) ## 8-byte Spill movq %rsp, %rcx movq %rcx, -1072(%rbp) shlq $4, %rax callq ____chkstk_darwin addq $15, %rax andq $-16, %rax subq %rax, %rsp movq -1184(%rbp), %rax ## 8-byte Reload movq %rsp, %rcx movq %rcx, -1176(%rbp) ## 8-byte Spill movq %rax, -1080(%rbp) movl -1028(%rbp), %eax ## kill: def $rax killed $eax movq %rax, -1168(%rbp) ## 8-byte Spill shlq $4, %rax callq ____chkstk_darwin addq $15, %rax andq $-16, %rax subq %rax, %rsp movq -1168(%rbp), %rax ## 8-byte Reload movq %rsp, %rcx movq %rcx, -1160(%rbp) ## 8-byte Spill movq %rax, -1088(%rbp) leaq L_.str.10(%rip), %rax movq %rax, -1048(%rbp) movl $10, -1124(%rbp) movq -1016(%rbp), %rdi leaq L_.str.11(%rip), %rsi callq _fopen movq %rax, -1112(%rbp) LBB10_1: ## =>This Loop Header: Depth=1 ## Child Loop BB10_4 Depth 2 leaq -1008(%rbp), %rdi movq -1112(%rbp), %rdx movl $1000, %esi ## imm = 0x3E8 callq _fgets cmpq $0, %rax je LBB10_9 ## %bb.2: ## in Loop: Header=BB10_1 Depth=1 movsbl -1008(%rbp), %eax cmpl $35, %eax je LBB10_8 ## %bb.3: ## in Loop: Header=BB10_1 Depth=1 movl $0, -1128(%rbp) leaq -1008(%rbp), %rdi movq -1048(%rbp), %rsi leaq -1056(%rbp), %rdx callq _strtok_r movq %rax, -1040(%rbp) LBB10_4: ## Parent Loop BB10_1 Depth=1 ## => This Inner Loop Header: Depth=2 cmpq $0, -1040(%rbp) je LBB10_7 ## %bb.5: ## in Loop: Header=BB10_4 Depth=2 movq -1040(%rbp), %rdi movl -1124(%rbp), %esi callq _cov_deserialize movq -1176(%rbp), %rax ## 8-byte Reload movslq -1128(%rbp), %rcx shlq $4, %rcx fstpt (%rax,%rcx) movl -1128(%rbp), %eax addl $1, %eax movl %eax, -1128(%rbp) ## %bb.6: ## in Loop: Header=BB10_4 Depth=2 movq -1048(%rbp), %rsi xorl %eax, %eax movl %eax, %edi leaq -1056(%rbp), %rdx callq _strtok_r movq %rax, -1040(%rbp) jmp LBB10_4 LBB10_7: ## in Loop: Header=BB10_1 Depth=1 jmp LBB10_8 LBB10_8: ## in Loop: Header=BB10_1 Depth=1 jmp LBB10_1 LBB10_9: movq -1112(%rbp), %rdi callq _fclose movq -1024(%rbp), %rdi leaq L_.str.11(%rip), %rsi callq _fopen movq %rax, -1120(%rbp) LBB10_10: ## =>This Loop Header: Depth=1 ## Child Loop BB10_13 Depth 2 leaq -1008(%rbp), %rdi movq -1112(%rbp), %rdx movl $1000, %esi ## imm = 0x3E8 callq _fgets cmpq $0, %rax je LBB10_21 ## %bb.11: ## in Loop: Header=BB10_10 Depth=1 leaq -1008(%rbp), %rdi leaq L_.str.12(%rip), %rsi movl $6, %edx callq _strncmp cmpl $0, %eax jne LBB10_17 ## %bb.12: ## in Loop: Header=BB10_10 Depth=1 movl $0, -1128(%rbp) leaq -1008(%rbp), %rdi movq -1120(%rbp), %rdx movl $1000, %esi ## imm = 0x3E8 callq _fgets leaq -1008(%rbp), %rdi movq -1048(%rbp), %rsi leaq -1064(%rbp), %rdx callq _strtok_r movq %rax, -1040(%rbp) LBB10_13: ## Parent Loop BB10_10 Depth=1 ## => This Inner Loop Header: Depth=2 cmpq $0, -1040(%rbp) je LBB10_16 ## %bb.14: ## in Loop: Header=BB10_13 Depth=2 movq -1040(%rbp), %rdi movl -1124(%rbp), %esi callq _cov_deserialize movq -1160(%rbp), %rax ## 8-byte Reload movslq -1128(%rbp), %rcx shlq $4, %rcx fstpt (%rax,%rcx) movl -1128(%rbp), %eax addl $1, %eax movl %eax, -1128(%rbp) ## %bb.15: ## in Loop: Header=BB10_13 Depth=2 movq -1048(%rbp), %rsi xorl %eax, %eax movl %eax, %edi leaq -1064(%rbp), %rdx callq _strtok_r movq %rax, -1040(%rbp) jmp LBB10_13 LBB10_16: ## in Loop: Header=BB10_10 Depth=1 jmp LBB10_20 LBB10_17: ## in Loop: Header=BB10_10 Depth=1 leaq -1008(%rbp), %rdi leaq L_.str.13(%rip), %rsi movl $6, %edx callq _strncmp cmpl $0, %eax jne LBB10_19 ## %bb.18: ## in Loop: Header=BB10_10 Depth=1 movq -1120(%rbp), %rdx leaq -1008(%rbp), %rdi movq %rdi, -1192(%rbp) ## 8-byte Spill movl $80, %esi callq _fgets movq -1192(%rbp), %rdi ## 8-byte Reload movl -1124(%rbp), %esi callq _cov_deserialize fstpt -1104(%rbp) LBB10_19: ## in Loop: Header=BB10_10 Depth=1 jmp LBB10_20 LBB10_20: ## in Loop: Header=BB10_10 Depth=1 jmp LBB10_10 LBB10_21: movq -1120(%rbp), %rdi callq _fclose movl $1, -1136(%rbp) movl $0, -1132(%rbp) LBB10_22: ## =>This Inner Loop Header: Depth=1 movl -1132(%rbp), %eax cmpl -1028(%rbp), %eax jge LBB10_30 ## %bb.23: ## in Loop: Header=BB10_22 Depth=1 movq -1160(%rbp), %rax ## 8-byte Reload movq -1176(%rbp), %rdx ## 8-byte Reload movslq -1132(%rbp), %rcx shlq $4, %rcx fldt (%rdx,%rcx) fldt (%rax,%rcx) fxch %st(1) fucompi %st(1), %st fstp %st(0) jbe LBB10_25 jmp LBB10_24 LBB10_24: ## in Loop: Header=BB10_22 Depth=1 movq -1160(%rbp), %rax ## 8-byte Reload movq -1176(%rbp), %rdx ## 8-byte Reload movslq -1132(%rbp), %rcx shlq $4, %rcx fldt (%rdx,%rcx) fldt (%rax,%rcx) fsubrp %st, %st(1) fstpt -1152(%rbp) jmp LBB10_26 LBB10_25: ## in Loop: Header=BB10_22 Depth=1 movq -1176(%rbp), %rax ## 8-byte Reload movq -1160(%rbp), %rdx ## 8-byte Reload movslq -1132(%rbp), %rcx shlq $4, %rcx fldt (%rdx,%rcx) fldt (%rax,%rcx) fsubrp %st, %st(1) fstpt -1152(%rbp) LBB10_26: ## in Loop: Header=BB10_22 Depth=1 fldt -1104(%rbp) fldt -1152(%rbp) fucompi %st(1), %st fstp %st(0) jbe LBB10_28 jmp LBB10_27 LBB10_27: movl $0, -1136(%rbp) jmp LBB10_30 LBB10_28: ## in Loop: Header=BB10_22 Depth=1 jmp LBB10_29 LBB10_29: ## in Loop: Header=BB10_22 Depth=1 movl -1132(%rbp), %eax addl $1, %eax movl %eax, -1132(%rbp) jmp LBB10_22 LBB10_30: cmpl $0, -1136(%rbp) je LBB10_32 ## %bb.31: leaq L_.str.15(%rip), %rdi movb $0, %al callq _printf jmp LBB10_33 LBB10_32: leaq L_.str.16(%rip), %rdi movb $0, %al callq _printf LBB10_33: movq -1072(%rbp), %rax movq %rax, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB10_35 ## %bb.34: movq %rbp, %rsp popq %rbp retq LBB10_35: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "result" L_.str.1: ## @.str.1 .asciz "%1.15Le\n" L_.str.2: ## @.str.2 .asciz "%s\n" L_.str.3: ## @.str.3 .asciz "\t%10.15Lg" L_.str.4: ## @.str.4 .asciz "\n" L_.str.5: ## @.str.5 .asciz "%02X" L_.str.6: ## @.str.6 .asciz "a" L_.str.7: ## @.str.7 .asciz "#%s\n" L_.str.8: ## @.str.8 .asciz "ideal" L_.str.9: ## @.str.9 .asciz "delta" L_.str.10: ## @.str.10 .asciz " " L_.str.11: ## @.str.11 .asciz "rt" L_.str.12: ## @.str.12 .asciz "#ideal" L_.str.13: ## @.str.13 .asciz "#delta" L_.str.14: ## @.str.14 .asciz "w" L_.str.15: ## @.str.15 .asciz "true\n" L_.str.16: ## @.str.16 .asciz "false\n" .subsections_via_symbols
the_stack_data/192331806.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 x9, sp add x8, sp, #8 str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _scanf ldr w8, [sp, #8] add w8, w8, #1 str w8, [sp, #8] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w0, [sp, #8] bl _prime subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #8] add w8, w8, #1 str w8, [sp, #8] b LBB0_1 LBB0_3: 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 mov w0, #0 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _prime ; -- Begin function prime .p2align 2 _prime: ; @prime .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #8] ldr w8, [sp, #8] subs w8, w8, #1 str w8, [sp, #4] b LBB1_1 LBB1_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #8] ldr w10, [sp, #4] sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB1_3 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #4] subs w8, w8, #1 str w8, [sp, #4] b LBB1_1 LBB1_3: ldr w8, [sp, #4] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB1_5 b LBB1_4 LBB1_4: str wzr, [sp, #12] b LBB1_6 LBB1_5: mov w8, #1 str w8, [sp, #12] b LBB1_6 LBB1_6: ldr w0, [sp, #12] add sp, sp, #16 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 $16, %rsp movl $0, -4(%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 Inner Loop Header: Depth=1 movl -8(%rbp), %edi callq _prime cmpl $0, %eax je LBB0_3 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) jmp LBB0_1 LBB0_3: movl -8(%rbp), %esi leaq L_.str(%rip), %rdi movb $0, %al callq _printf xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _prime ## -- Begin function prime .p2align 4, 0x90 _prime: ## @prime .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, -8(%rbp) movl -8(%rbp), %eax subl $1, %eax movl %eax, -12(%rbp) LBB1_1: ## =>This Inner Loop Header: Depth=1 movl -8(%rbp), %eax cltd idivl -12(%rbp) cmpl $0, %edx je LBB1_3 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 movl -12(%rbp), %eax subl $1, %eax movl %eax, -12(%rbp) jmp LBB1_1 LBB1_3: cmpl $1, -12(%rbp) jne LBB1_5 ## %bb.4: movl $0, -4(%rbp) jmp LBB1_6 LBB1_5: movl $1, -4(%rbp) LBB1_6: movl -4(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d" .subsections_via_symbols
the_stack_data/492431.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 adrp x8, _stdscr@GOTPAGE ldr x8, [x8, _stdscr@GOTPAGEOFF] str x8, [sp] ; 8-byte Folded Spill mov w8, #0 str w8, [sp, #8] ; 4-byte Folded Spill stur wzr, [x29, #-4] bl _initscr bl _start_color mov w0, #1 mov w1, #7 mov w2, #4 bl _init_pair ldr x8, [sp] ; 8-byte Folded Reload ldr x0, [x8] mov w1, #256 bl _wbkgd ldr x8, [sp] ; 8-byte Folded Reload ldr x0, [x8] bl _wrefresh ldr x8, [sp] ; 8-byte Folded Reload ldr x0, [x8] bl _wgetch bl _endwin 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 .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 _initscr callq _start_color movl $1, %edi movl $7, %esi movl $4, %edx callq _init_pair movq _stdscr@GOTPCREL(%rip), %rax movq (%rax), %rdi movl $256, %esi ## imm = 0x100 callq _wbkgd movq _stdscr@GOTPCREL(%rip), %rax movq (%rax), %rdi callq _wrefresh movq _stdscr@GOTPCREL(%rip), %rax movq (%rax), %rdi callq _wgetch callq _endwin xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/39111.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _template_example ; -- Begin function template_example .p2align 2 _template_example: ; @template_example .cfi_startproc ; %bb.0: ret .cfi_endproc ; -- End function .globl _template_base_example ; -- Begin function template_base_example .p2align 2 _template_base_example: ; @template_base_example .cfi_startproc ; %bb.0: ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _template_example ## -- Begin function template_example .p2align 4, 0x90 _template_example: ## @template_example .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 _template_base_example ## -- Begin function template_base_example .p2align 4, 0x90 _template_base_example: ## @template_base_example .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/117328268.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/132954028.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, _done@PAGE add x8, x8, _done@PAGEOFF str x8, [sp, #8] ; 8-byte Folded Spill stur wzr, [x29, #-4] stur wzr, [x29, #-8] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-8] subs w8, w8, #2 cset w8, ge tbnz w8, #0, LBB0_4 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 sub x1, x29, #24 stur xzr, [x29, #-24] stur xzr, [x29, #-16] adrp x8, _handler@PAGE add x8, x8, _handler@PAGEOFF stur x8, [x29, #-24] ldursw x9, [x29, #-8] adrp x8, _alarm@PAGE add x8, x8, _alarm@PAGEOFF ldr w0, [x8, x9, lsl #2] mov x2, #0 bl _sigaction b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-8] add w8, w8, #1 stur w8, [x29, #-8] b LBB0_1 LBB0_4: stur wzr, [x29, #-8] b LBB0_5 LBB0_5: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-8] subs w8, w8, #2 cset w8, ge tbnz w8, #0, LBB0_8 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_5 Depth=1 movi.2d v0, #0000000000000000 add x1, sp, #16 str q0, [sp, #16] str q0, [sp, #32] mov w8, #1 str w8, [sp, #24] mov w8, #53392 movk w8, #3, lsl #16 str w8, [sp, #40] ldursw x9, [x29, #-8] adrp x8, _itimer@PAGE add x8, x8, _itimer@PAGEOFF ldr w0, [x8, x9, lsl #2] mov x2, #0 bl _setitimer b LBB0_7 LBB0_7: ; in Loop: Header=BB0_5 Depth=1 ldur w8, [x29, #-8] add w8, w8, #1 stur w8, [x29, #-8] b LBB0_5 LBB0_8: b LBB0_9 LBB0_9: ; =>This Inner Loop Header: Depth=1 adrp x8, _done@PAGE ldr w8, [x8, _done@PAGEOFF] subs w8, w8, #0 cset w8, ne mov w9, #0 str w9, [sp, #4] ; 4-byte Folded Spill tbnz w8, #0, LBB0_11 b LBB0_10 LBB0_10: ; in Loop: Header=BB0_9 Depth=1 ldr x8, [sp, #8] ; 8-byte Folded Reload ldr w8, [x8, #4] subs w8, w8, #0 cset w8, eq str w8, [sp, #4] ; 4-byte Folded Spill b LBB0_11 LBB0_11: ; in Loop: Header=BB0_9 Depth=1 ldr w8, [sp, #4] ; 4-byte Folded Reload tbz w8, #0, LBB0_13 b LBB0_12 LBB0_12: ; in Loop: Header=BB0_9 Depth=1 b LBB0_9 LBB0_13: mov w0, #0 ldp x29, x30, [sp, #80] ; 16-byte Folded Reload add sp, sp, #96 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function handler _handler: ; @handler .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 w0, [x29, #-8] ldur w8, [x29, #-8] str w8, [sp, #24] ; 4-byte Folded Spill subs w8, w8, #14 cset w8, eq tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: ldr w8, [sp, #24] ; 4-byte Folded Reload subs w8, w8, #26 cset w8, eq tbnz w8, #0, LBB1_3 b LBB1_4 LBB1_2: stur wzr, [x29, #-12] b LBB1_5 LBB1_3: mov w8, #1 stur w8, [x29, #-12] b LBB1_5 LBB1_4: bl _abort LBB1_5: ldursw x9, [x29, #-12] adrp x8, _repeats@PAGE add x8, x8, _repeats@PAGEOFF add x10, x8, x9, lsl #2 ldr w8, [x10] add w9, w8, #1 str w9, [x10] subs w8, w8, #3 cset w8, le tbnz w8, #0, LBB1_7 b LBB1_6 LBB1_6: movi.2d v0, #0000000000000000 add x1, sp, #48 str q0, [sp, #48] str q0, [sp, #64] ldursw x9, [x29, #-12] adrp x8, _itimer@PAGE add x8, x8, _itimer@PAGEOFF ldr w0, [x8, x9, lsl #2] mov x2, #0 str x2, [sp, #16] ; 8-byte Folded Spill bl _setitimer ldr x2, [sp, #16] ; 8-byte Folded Reload add x1, sp, #32 str xzr, [sp, #32] str xzr, [sp, #40] mov x8, #1 str x8, [sp, #32] ldur w0, [x29, #-8] bl _sigaction ldursw x10, [x29, #-12] adrp x9, _done@PAGE add x9, x9, _done@PAGEOFF mov w8, #1 str w8, [x9, x10, lsl #2] b LBB1_16 LBB1_7: b LBB1_8 LBB1_8: ; =>This Inner Loop Header: Depth=1 add x0, sp, #28 str wzr, [sp, #28] bl _sigpending subs w8, w0, #0 cset w8, ge tbnz w8, #0, LBB1_10 b LBB1_9 LBB1_9: adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _perror bl _abort LBB1_10: ; in Loop: Header=BB1_8 Depth=1 ldr w8, [sp, #28] str w8, [sp, #12] ; 4-byte Folded Spill ldur w8, [x29, #-8] stur w8, [x29, #-4] ldur w8, [x29, #-4] subs w8, w8, #32 cset w8, le tbnz w8, #0, LBB1_12 b LBB1_11 LBB1_11: ; in Loop: Header=BB1_8 Depth=1 mov w8, #0 str w8, [sp, #8] ; 4-byte Folded Spill b LBB1_13 LBB1_12: ; in Loop: Header=BB1_8 Depth=1 ldur w9, [x29, #-4] mov w8, #1 subs w9, w9, #1 lsl w8, w8, w9 str w8, [sp, #8] ; 4-byte Folded Spill b LBB1_13 LBB1_13: ; in Loop: Header=BB1_8 Depth=1 ldr w8, [sp, #12] ; 4-byte Folded Reload ldr w9, [sp, #8] ; 4-byte Folded Reload ands w8, w8, w9 cset w8, eq tbnz w8, #0, LBB1_15 b LBB1_14 LBB1_14: b LBB1_16 LBB1_15: ; in Loop: Header=BB1_8 Depth=1 b LBB1_8 LBB1_16: ldp x29, x30, [sp, #96] ; 16-byte Folded Reload add sp, sp, #112 ret .cfi_endproc ; -- End function .section __DATA,__data .p2align 2 ; @alarm _alarm: .long 14 ; 0xe .long 26 ; 0x1a .p2align 2 ; @itimer _itimer: .long 0 ; 0x0 .long 1 ; 0x1 .zerofill __DATA,__bss,_done,8,2 ; @done .zerofill __DATA,__bss,_repeats,8,2 ; @repeats .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "sigrepeat" .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) movl $0, -8(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 cmpl $2, -8(%rbp) jge LBB0_4 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 leaq -24(%rbp), %rdi xorl %esi, %esi movl $16, %edx callq _memset leaq _handler(%rip), %rax movq %rax, -24(%rbp) movslq -8(%rbp), %rcx leaq _alarm(%rip), %rax movl (%rax,%rcx,4), %edi leaq -24(%rbp), %rsi xorl %eax, %eax movl %eax, %edx callq _sigaction ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) jmp LBB0_1 LBB0_4: movl $0, -8(%rbp) LBB0_5: ## =>This Inner Loop Header: Depth=1 cmpl $2, -8(%rbp) jge LBB0_8 ## %bb.6: ## in Loop: Header=BB0_5 Depth=1 leaq -56(%rbp), %rdi xorl %esi, %esi movl $32, %edx callq _memset movl $1, -48(%rbp) movl $250000, -32(%rbp) ## imm = 0x3D090 movslq -8(%rbp), %rcx leaq _itimer(%rip), %rax movl (%rax,%rcx,4), %edi leaq -56(%rbp), %rsi xorl %eax, %eax movl %eax, %edx callq _setitimer ## %bb.7: ## in Loop: Header=BB0_5 Depth=1 movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) jmp LBB0_5 LBB0_8: jmp LBB0_9 LBB0_9: ## =>This Inner Loop Header: Depth=1 movl _done(%rip), %ecx xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $0, %ecx movb %al, -57(%rbp) ## 1-byte Spill jne LBB0_11 ## %bb.10: ## in Loop: Header=BB0_9 Depth=1 movl _done+4(%rip), %eax cmpl $0, %eax setne %al xorb $-1, %al movb %al, -57(%rbp) ## 1-byte Spill LBB0_11: ## in Loop: Header=BB0_9 Depth=1 movb -57(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB0_12 jmp LBB0_13 LBB0_12: ## in Loop: Header=BB0_9 Depth=1 jmp LBB0_9 LBB0_13: xorl %eax, %eax addq $64, %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 $80, %rsp movl %edi, -8(%rbp) movl -8(%rbp), %eax movl %eax, -72(%rbp) ## 4-byte Spill subl $14, %eax je LBB1_1 jmp LBB1_16 LBB1_16: movl -72(%rbp), %eax ## 4-byte Reload subl $26, %eax je LBB1_2 jmp LBB1_3 LBB1_1: movl $0, -12(%rbp) jmp LBB1_4 LBB1_2: movl $1, -12(%rbp) jmp LBB1_4 LBB1_3: callq _abort LBB1_4: movslq -12(%rbp), %rdx leaq _repeats(%rip), %rax movl (%rax,%rdx,4), %eax movl %eax, %esi addl $1, %esi leaq _repeats(%rip), %rcx movl %esi, (%rcx,%rdx,4) cmpl $3, %eax jle LBB1_6 ## %bb.5: leaq -48(%rbp), %rdi xorl %esi, %esi movl $32, %edx callq _memset movslq -12(%rbp), %rcx leaq _itimer(%rip), %rax movl (%rax,%rcx,4), %edi leaq -48(%rbp), %rsi xorl %eax, %eax movl %eax, %edx callq _setitimer leaq -64(%rbp), %rdi xorl %esi, %esi movl $16, %edx callq _memset movl $1, %eax movq %rax, -64(%rbp) movl -8(%rbp), %edi leaq -64(%rbp), %rsi xorl %eax, %eax movl %eax, %edx callq _sigaction movslq -12(%rbp), %rcx leaq _done(%rip), %rax movl $1, (%rax,%rcx,4) jmp LBB1_15 LBB1_6: jmp LBB1_7 LBB1_7: ## =>This Inner Loop Header: Depth=1 movl $0, -68(%rbp) leaq -68(%rbp), %rdi callq _sigpending cmpl $0, %eax jge LBB1_9 ## %bb.8: leaq L_.str(%rip), %rdi callq _perror callq _abort LBB1_9: ## in Loop: Header=BB1_7 Depth=1 movl -68(%rbp), %eax movl %eax, -76(%rbp) ## 4-byte Spill movl -8(%rbp), %eax movl %eax, -4(%rbp) cmpl $32, -4(%rbp) jle LBB1_11 ## %bb.10: ## in Loop: Header=BB1_7 Depth=1 xorl %eax, %eax movl %eax, -80(%rbp) ## 4-byte Spill jmp LBB1_12 LBB1_11: ## in Loop: Header=BB1_7 Depth=1 movl -4(%rbp), %ecx subl $1, %ecx movl $1, %eax ## kill: def $cl killed $ecx shll %cl, %eax movl %eax, -80(%rbp) ## 4-byte Spill LBB1_12: ## in Loop: Header=BB1_7 Depth=1 movl -76(%rbp), %eax ## 4-byte Reload movl -80(%rbp), %ecx ## 4-byte Reload andl %ecx, %eax cmpl $0, %eax je LBB1_14 ## %bb.13: jmp LBB1_15 LBB1_14: ## in Loop: Header=BB1_7 Depth=1 jmp LBB1_7 LBB1_15: addq $80, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __DATA,__data .p2align 2 ## @alarm _alarm: .long 14 ## 0xe .long 26 ## 0x1a .p2align 2 ## @itimer _itimer: .long 0 ## 0x0 .long 1 ## 0x1 .zerofill __DATA,__bss,_done,8,2 ## @done .zerofill __DATA,__bss,_repeats,8,2 ## @repeats .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "sigrepeat" .subsections_via_symbols
the_stack_data/103975.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _posOrNeg ; -- Begin function posOrNeg .p2align 2 _posOrNeg: ; @posOrNeg .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #8] ldr w8, [sp, #8] subs w8, w8, #0 cset w8, ge tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: str wzr, [sp, #12] b LBB0_3 LBB0_2: mov w8, #1 str w8, [sp, #12] b LBB0_3 LBB0_3: ldr w0, [sp, #12] add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] mov x9, sp sub x8, x29, #8 str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _scanf ldur w0, [x29, #-8] bl _posOrNeg stur w0, [x29, #-12] ldur w8, [x29, #-12] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: ldur w9, [x29, #-8] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf b LBB1_3 LBB1_2: 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 LBB1_3 LBB1_3: adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _system mov w0, #0 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d" l_.str.1: ; @.str.1 .asciz "O numero %d eh negativo.\n" l_.str.2: ; @.str.2 .asciz "O numero %d eh positivo.\n" l_.str.3: ; @.str.3 .asciz "PAUSE" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _posOrNeg ## -- Begin function posOrNeg .p2align 4, 0x90 _posOrNeg: ## @posOrNeg .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, -8(%rbp) cmpl $0, -8(%rbp) jge LBB0_2 ## %bb.1: movl $0, -4(%rbp) jmp LBB0_3 LBB0_2: movl $1, -4(%rbp) LBB0_3: movl -4(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) leaq L_.str(%rip), %rdi leaq -8(%rbp), %rsi movb $0, %al callq _scanf movl -8(%rbp), %edi callq _posOrNeg movl %eax, -12(%rbp) cmpl $0, -12(%rbp) jne LBB1_2 ## %bb.1: movl -8(%rbp), %esi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf jmp LBB1_3 LBB1_2: movl -8(%rbp), %esi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf LBB1_3: leaq L_.str.3(%rip), %rdi callq _system xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d" L_.str.1: ## @.str.1 .asciz "O numero %d eh negativo.\n" L_.str.2: ## @.str.2 .asciz "O numero %d eh positivo.\n" L_.str.3: ## @.str.3 .asciz "PAUSE" .subsections_via_symbols
the_stack_data/211081377.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _gethostid ; -- Begin function gethostid .p2align 2 _gethostid: ; @gethostid .cfi_startproc ; %bb.0: mov x0, #0 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _gethostid ## -- Begin function gethostid .p2align 4, 0x90 _gethostid: ## @gethostid .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp xorl %eax, %eax ## kill: def $rax killed $eax popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/48575572.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _sum ; -- Begin function sum .p2align 2 _sum: ; @sum .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #12] str w1, [sp, #8] ldr w8, [sp, #12] ldr w9, [sp, #8] add w0, w8, w9 add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _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 mov w8, #0 stur w8, [x29, #-28] ; 4-byte Folded Spill stur wzr, [x29, #-4] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov w8, #26 stur w8, [x29, #-8] mov w8, #6 stur w8, [x29, #-12] fmov d0, #26.00000000 stur d0, [x29, #-24] ldur d1, [x29, #-24] ldur d0, [x29, #-24] fsqrt d0, d0 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 ldur w9, [x29, #-8] ; implicit-def: $x8 mov x8, x9 str x8, [sp, #32] ; 8-byte Folded Spill ldur w9, [x29, #-12] ; implicit-def: $x8 mov x8, x9 str x8, [sp, #40] ; 8-byte Folded Spill ldur w0, [x29, #-8] ldur w1, [x29, #-12] bl _sum ldr x10, [sp, #32] ; 8-byte Folded Reload ldr x8, [sp, #40] ; 8-byte Folded Reload mov x9, sp str x10, [x9] str x8, [x9, #8] ; implicit-def: $x8 mov x8, x0 str x8, [x9, #16] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf ldur w0, [x29, #-28] ; 4-byte Folded Reload ldp x29, x30, [sp, #80] ; 16-byte Folded Reload add sp, sp, #96 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\n" l_.str.1: ; @.str.1 .asciz "sqrt(%g) = %g\n" l_.str.2: ; @.str.2 .asciz "sum(%d, %d) = %d\n" l_.str.3: ; @.str.3 .asciz "\n++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _sum ## -- Begin function sum .p2align 4, 0x90 _sum: ## @sum .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, -4(%rbp) movl %esi, -8(%rbp) movl -4(%rbp), %eax addl -8(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ## -- Begin function main LCPI1_0: .quad 0x403a000000000000 ## double 26 .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 movb $0, %al callq _printf movl $26, -8(%rbp) movl $6, -12(%rbp) movsd LCPI1_0(%rip), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -24(%rbp) movsd -24(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd -24(%rbp), %xmm1 ## xmm1 = mem[0],zero sqrtsd %xmm1, %xmm1 leaq L_.str.1(%rip), %rdi movb $2, %al callq _printf movl -8(%rbp), %eax movl %eax, -32(%rbp) ## 4-byte Spill movl -12(%rbp), %eax movl %eax, -28(%rbp) ## 4-byte Spill movl -8(%rbp), %edi movl -12(%rbp), %esi callq _sum movl -32(%rbp), %esi ## 4-byte Reload movl -28(%rbp), %edx ## 4-byte Reload movl %eax, %ecx leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf xorl %eax, %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\n" L_.str.1: ## @.str.1 .asciz "sqrt(%g) = %g\n" L_.str.2: ## @.str.2 .asciz "sum(%d, %d) = %d\n" L_.str.3: ## @.str.3 .asciz "\n++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\n" .subsections_via_symbols
the_stack_data/218893566.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _LinearSearch ; -- Begin function LinearSearch .p2align 2 _LinearSearch: ; @LinearSearch .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] stur w1, [x29, #-12] str w2, [sp, #16] str wzr, [sp, #12] str wzr, [sp, #12] b LBB0_1 LBB0_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, LBB0_6 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldur x8, [x29, #-8] ldrsw x9, [sp, #12] ldr w8, [x8, x9, lsl #2] ldr w9, [sp, #16] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: ldr w9, [sp, #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 LBB0_6 LBB0_4: ; in Loop: Header=BB0_1 Depth=1 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB0_1 LBB0_6: 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, #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 wzr, [sp, #28] add x0, sp, #32 adrp x1, l___const.main.A@PAGE add x1, x1, l___const.main.A@PAGEOFF mov x2, #40 bl _memcpy adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf str wzr, [sp, #24] b LBB1_1 LBB1_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #24] subs w8, w8, #10 cset w8, ge tbnz w8, #0, LBB1_4 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 ldrsw x9, [sp, #24] add x8, sp, #32 ldr w9, [x8, x9, lsl #2] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf b LBB1_3 LBB1_3: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #24] add w8, w8, #1 str w8, [sp, #24] b LBB1_1 LBB1_4: adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf add x8, sp, #20 str wzr, [sp, #20] mov x9, sp str x8, [x9] adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _scanf mov w8, #10 str w8, [sp, #16] ldr w1, [sp, #16] ldr w2, [sp, #20] add x0, sp, #32 bl _LinearSearch 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: 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 "Element found at %d index!" .section __TEXT,__const .p2align 2 ; @__const.main.A l___const.main.A: .long 5 ; 0x5 .long 2 ; 0x2 .long 3 ; 0x3 .long 6 ; 0x6 .long 4 ; 0x4 .long 2 ; 0x2 .long 6 ; 0x6 .long 8 ; 0x8 .long 3 ; 0x3 .long 7 ; 0x7 .section __TEXT,__cstring,cstring_literals l_.str.1: ; @.str.1 .asciz "The Elements in the array are - \n" l_.str.2: ; @.str.2 .asciz "%d " l_.str.3: ; @.str.3 .asciz "\n" l_.str.4: ; @.str.4 .asciz "Enter the key value ? \n" l_.str.5: ; @.str.5 .asciz "%d" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _LinearSearch ## -- Begin function LinearSearch .p2align 4, 0x90 _LinearSearch: ## @LinearSearch .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) movl %edx, -16(%rbp) movl $0, -20(%rbp) movl $0, -20(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movl -20(%rbp), %eax cmpl -12(%rbp), %eax jge LBB0_6 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movq -8(%rbp), %rax movslq -20(%rbp), %rcx movl (%rax,%rcx,4), %eax cmpl -16(%rbp), %eax jne LBB0_4 ## %bb.3: movl -20(%rbp), %esi leaq L_.str(%rip), %rdi movb $0, %al callq _printf 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 -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB0_1 LBB0_6: addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $64, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -52(%rbp) leaq -48(%rbp), %rdi leaq l___const.main.A(%rip), %rsi movl $40, %edx callq _memcpy leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf movl $0, -56(%rbp) LBB1_1: ## =>This Inner Loop Header: Depth=1 cmpl $10, -56(%rbp) jge LBB1_4 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 movslq -56(%rbp), %rax movl -48(%rbp,%rax,4), %esi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf ## %bb.3: ## in Loop: Header=BB1_1 Depth=1 movl -56(%rbp), %eax addl $1, %eax movl %eax, -56(%rbp) jmp LBB1_1 LBB1_4: leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf movl $0, -60(%rbp) leaq L_.str.5(%rip), %rdi leaq -60(%rbp), %rsi movb $0, %al callq _scanf movl $10, -64(%rbp) leaq -48(%rbp), %rdi movl -64(%rbp), %esi movl -60(%rbp), %edx callq _LinearSearch movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB1_6 ## %bb.5: xorl %eax, %eax addq $64, %rsp popq %rbp retq LBB1_6: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Element found at %d index!" .section __TEXT,__const .p2align 4 ## @__const.main.A l___const.main.A: .long 5 ## 0x5 .long 2 ## 0x2 .long 3 ## 0x3 .long 6 ## 0x6 .long 4 ## 0x4 .long 2 ## 0x2 .long 6 ## 0x6 .long 8 ## 0x8 .long 3 ## 0x3 .long 7 ## 0x7 .section __TEXT,__cstring,cstring_literals L_.str.1: ## @.str.1 .asciz "The Elements in the array are - \n" L_.str.2: ## @.str.2 .asciz "%d " L_.str.3: ## @.str.3 .asciz "\n" L_.str.4: ## @.str.4 .asciz "Enter the key value ? \n" L_.str.5: ## @.str.5 .asciz "%d" .subsections_via_symbols
the_stack_data/799036.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #96 .cfi_def_cfa_offset 96 stp x29, x30, [sp, #80] ; 16-byte Folded Spill add x29, sp, #80 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] str wzr, [sp, #28] str w0, [sp, #24] str x1, [sp, #16] ldr w8, [sp, #24] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: adrp x8, ___stdinp@GOTPAGE ldr x8, [x8, ___stdinp@GOTPAGEOFF] ldr x2, [x8] add x0, sp, #32 mov w1, #40 bl _fgets str x0, [sp, #8] b LBB0_3 LBB0_2: ldr x8, [sp, #16] ldr x8, [x8, #8] str x8, [sp, #8] b LBB0_3 LBB0_3: ldr x0, [sp, #8] bl _valid_bin subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB0_5 b LBB0_4 LBB0_4: ldr x0, [sp, #8] bl _convert b LBB0_6 LBB0_5: adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov w8, #1 str w8, [sp, #28] b LBB0_7 LBB0_6: str wzr, [sp, #28] b LBB0_7 LBB0_7: ldr w8, [sp, #28] str w8, [sp, #4] ; 4-byte Folded Spill ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_9 b LBB0_8 LBB0_8: bl ___stack_chk_fail LBB0_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 _valid_bin ; -- Begin function valid_bin .p2align 2 _valid_bin: ; @valid_bin .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, #16] b LBB1_1 LBB1_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #16] ldrsb w8, [x8] subs w8, w8, #10 cset w8, eq mov w9, #0 str w9, [sp, #12] ; 4-byte Folded Spill tbnz w8, #0, LBB1_3 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 ldr x8, [sp, #16] ldrsb w8, [x8] subs w8, w8, #0 cset w8, ne str w8, [sp, #12] ; 4-byte Folded Spill b LBB1_3 LBB1_3: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #12] ; 4-byte Folded Reload tbz w8, #0, LBB1_8 b LBB1_4 LBB1_4: ; in Loop: Header=BB1_1 Depth=1 ldr x8, [sp, #16] ldrsb w8, [x8] subs w8, w8, #48 cset w8, eq tbnz w8, #0, LBB1_7 b LBB1_5 LBB1_5: ; in Loop: Header=BB1_1 Depth=1 ldr x8, [sp, #16] ldrsb w8, [x8] subs w8, w8, #49 cset w8, eq tbnz w8, #0, LBB1_7 b LBB1_6 LBB1_6: str wzr, [sp, #28] b LBB1_9 LBB1_7: ; in Loop: Header=BB1_1 Depth=1 ldr x8, [sp, #16] add x8, x8, #1 str x8, [sp, #16] 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 _convert ; -- Begin function convert .p2align 2 _convert: ; @convert .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, #32] ldr x0, [sp, #32] mov x1, #0 mov w2, #2 bl _strtol mov x8, x0 str w8, [sp, #28] ldr w9, [sp, #28] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] sub x0, x29, #20 str x0, [sp, #16] ; 8-byte Folded Spill mov w1, #0 mov x2, #12 adrp x3, l_.str.1@PAGE add x3, x3, l_.str.1@PAGEOFF bl ___sprintf_chk ldr x0, [sp, #16] ; 8-byte Folded Reload bl _printf ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB2_2 b LBB2_1 LBB2_1: bl ___stack_chk_fail LBB2_2: 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 "Invalid binary number.\n" l_.str.1: ; @.str.1 .asciz "%x\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $80, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -52(%rbp) movl %edi, -56(%rbp) movq %rsi, -64(%rbp) cmpl $1, -56(%rbp) jne LBB0_2 ## %bb.1: leaq -48(%rbp), %rdi movq ___stdinp@GOTPCREL(%rip), %rax movq (%rax), %rdx movl $40, %esi callq _fgets movq %rax, -72(%rbp) jmp LBB0_3 LBB0_2: movq -64(%rbp), %rax movq 8(%rax), %rax movq %rax, -72(%rbp) LBB0_3: movq -72(%rbp), %rdi callq _valid_bin cmpl $0, %eax je LBB0_5 ## %bb.4: movq -72(%rbp), %rdi callq _convert jmp LBB0_6 LBB0_5: leaq L_.str(%rip), %rdi movb $0, %al callq _printf movl $1, -52(%rbp) jmp LBB0_7 LBB0_6: movl $0, -52(%rbp) LBB0_7: movl -52(%rbp), %eax movl %eax, -76(%rbp) ## 4-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_9 ## %bb.8: movl -76(%rbp), %eax ## 4-byte Reload addq $80, %rsp popq %rbp retq LBB0_9: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _valid_bin ## -- Begin function valid_bin .p2align 4, 0x90 _valid_bin: ## @valid_bin .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) LBB1_1: ## =>This Inner Loop Header: Depth=1 movq -16(%rbp), %rax movsbl (%rax), %ecx xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $10, %ecx movb %al, -17(%rbp) ## 1-byte Spill je LBB1_3 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 movq -16(%rbp), %rax movsbl (%rax), %eax cmpl $0, %eax setne %al movb %al, -17(%rbp) ## 1-byte Spill LBB1_3: ## in Loop: Header=BB1_1 Depth=1 movb -17(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB1_4 jmp LBB1_8 LBB1_4: ## in Loop: Header=BB1_1 Depth=1 movq -16(%rbp), %rax movsbl (%rax), %eax cmpl $48, %eax je LBB1_7 ## %bb.5: ## in Loop: Header=BB1_1 Depth=1 movq -16(%rbp), %rax movsbl (%rax), %eax cmpl $49, %eax je LBB1_7 ## %bb.6: movl $0, -4(%rbp) jmp LBB1_9 LBB1_7: ## in Loop: Header=BB1_1 Depth=1 movq -16(%rbp), %rax addq $1, %rax movq %rax, -16(%rbp) jmp LBB1_1 LBB1_8: movl $1, -4(%rbp) LBB1_9: movl -4(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .globl _convert ## -- Begin function convert .p2align 4, 0x90 _convert: ## @convert .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) movq %rdi, -32(%rbp) movq -32(%rbp), %rdi xorl %eax, %eax movl %eax, %esi movl $2, %edx callq _strtol ## kill: def $eax killed $eax killed $rax movl %eax, -36(%rbp) leaq -20(%rbp), %rdi movl -36(%rbp), %r8d xorl %esi, %esi movl $12, %edx leaq L_.str.1(%rip), %rcx movb $0, %al callq ___sprintf_chk leaq -20(%rbp), %rdi movb $0, %al callq _printf movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB2_2 ## %bb.1: addq $48, %rsp popq %rbp retq LBB2_2: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Invalid binary number.\n" L_.str.1: ## @.str.1 .asciz "%x\n" .subsections_via_symbols
the_stack_data/10087.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str wzr, [sp, #28] mov w8, #5 str w8, [sp, #24] mov w8, #10 str w8, [sp, #20] str wzr, [sp, #16] str wzr, [sp, #12] b LBB0_1 LBB0_1: ; =>This Loop Header: Depth=1 ; Child Loop BB0_3 Depth 2 ldr w8, [sp, #16] ldr w9, [sp, #24] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_8 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #16] add w8, w8, #1 str w8, [sp, #16] str wzr, [sp, #8] b LBB0_3 LBB0_3: ; Parent Loop BB0_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #8] add w8, w8, #1 str w8, [sp, #8] ldr w8, [sp, #16] ldr w10, [sp, #8] sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_5 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_3 Depth=2 mov w8, #3 str w8, [sp, #20] b LBB0_5 LBB0_5: ; in Loop: Header=BB0_3 Depth=2 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_3 Depth=2 ldr w8, [sp, #8] subs w8, w8, #5 cset w8, lt tbnz w8, #0, LBB0_3 b LBB0_7 LBB0_7: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #20] subs w8, w8, #1 str w8, [sp, #20] b LBB0_1 LBB0_8: mov w0, #0 add sp, sp, #32 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl $0, -4(%rbp) movl $5, -8(%rbp) movl $10, -12(%rbp) movl $0, -16(%rbp) movl $0, -20(%rbp) LBB0_1: ## =>This Loop Header: Depth=1 ## Child Loop BB0_3 Depth 2 movl -16(%rbp), %eax cmpl -8(%rbp), %eax jge LBB0_8 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl -16(%rbp), %eax addl $1, %eax movl %eax, -16(%rbp) movl $0, -24(%rbp) LBB0_3: ## Parent Loop BB0_1 Depth=1 ## => This Inner Loop Header: Depth=2 movl -24(%rbp), %eax addl $1, %eax movl %eax, -24(%rbp) movl -16(%rbp), %eax cltd idivl -24(%rbp) cmpl $0, %edx jne LBB0_5 ## %bb.4: ## in Loop: Header=BB0_3 Depth=2 movl $3, -12(%rbp) LBB0_5: ## in Loop: Header=BB0_3 Depth=2 jmp LBB0_6 LBB0_6: ## in Loop: Header=BB0_3 Depth=2 cmpl $5, -24(%rbp) jl LBB0_3 ## %bb.7: ## in Loop: Header=BB0_1 Depth=1 movl -12(%rbp), %eax addl $-1, %eax movl %eax, -12(%rbp) jmp LBB0_1 LBB0_8: xorl %eax, %eax popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/175143059.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _threeSumMulti ; -- Begin function threeSumMulti .p2align 2 _threeSumMulti: ; @threeSumMulti .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 x0, [sp, #40] str w1, [sp, #36] str w2, [sp, #32] str xzr, [sp, #24] add x0, sp, #48 mov x1, #808 bl _bzero str wzr, [sp, #20] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #20] ldr w9, [sp, #36] 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, #40] ldrsw x9, [sp, #20] ldrsw x9, [x8, x9, lsl #2] add x8, sp, #48 add x9, x8, x9, lsl #3 ldr x8, [x9] add x8, x8, #1 str x8, [x9] b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #20] add w8, w8, #1 str w8, [sp, #20] b LBB0_1 LBB0_4: str wzr, [sp, #16] b LBB0_5 LBB0_5: ; =>This Loop Header: Depth=1 ; Child Loop BB0_7 Depth 2 ldr w8, [sp, #16] subs w8, w8, #100 cset w8, gt tbnz w8, #0, LBB0_26 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_5 Depth=1 ldr w8, [sp, #16] str w8, [sp, #12] b LBB0_7 LBB0_7: ; Parent Loop BB0_5 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #12] subs w8, w8, #100 cset w8, gt tbnz w8, #0, LBB0_24 b LBB0_8 LBB0_8: ; in Loop: Header=BB0_7 Depth=2 ldr w8, [sp, #32] ldr w9, [sp, #16] subs w8, w8, w9 ldr w9, [sp, #12] subs w8, w8, w9 str w8, [sp, #8] ldr w8, [sp, #8] subs w8, w8, #0 cset w8, lt tbnz w8, #0, LBB0_10 b LBB0_9 LBB0_9: ; in Loop: Header=BB0_7 Depth=2 ldr w8, [sp, #8] subs w8, w8, #100 cset w8, le tbnz w8, #0, LBB0_11 b LBB0_10 LBB0_10: ; in Loop: Header=BB0_7 Depth=2 b LBB0_23 LBB0_11: ; in Loop: Header=BB0_7 Depth=2 ldr w8, [sp, #16] ldr w9, [sp, #12] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_14 b LBB0_12 LBB0_12: ; in Loop: Header=BB0_7 Depth=2 ldr w8, [sp, #12] ldr w9, [sp, #8] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_14 b LBB0_13 LBB0_13: ; in Loop: Header=BB0_7 Depth=2 ldrsw x8, [sp, #16] add x9, sp, #48 ldr x8, [x9, x8, lsl #3] ldrsw x10, [sp, #12] ldr x10, [x9, x10, lsl #3] mul x8, x8, x10 ldrsw x10, [sp, #8] ldr x9, [x9, x10, lsl #3] mul x9, x8, x9 ldr x8, [sp, #24] add x8, x8, x9 str x8, [sp, #24] b LBB0_22 LBB0_14: ; in Loop: Header=BB0_7 Depth=2 ldr w8, [sp, #16] ldr w9, [sp, #12] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_17 b LBB0_15 LBB0_15: ; in Loop: Header=BB0_7 Depth=2 ldr w8, [sp, #12] ldr w9, [sp, #8] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_17 b LBB0_16 LBB0_16: ; in Loop: Header=BB0_7 Depth=2 ldrsw x8, [sp, #16] add x9, sp, #48 ldr x8, [x9, x8, lsl #3] ldrsw x10, [sp, #16] ldr x10, [x9, x10, lsl #3] subs x10, x10, #1 mul x8, x8, x10 ldrsw x10, [sp, #16] ldr x9, [x9, x10, lsl #3] subs x9, x9, #2 mul x8, x8, x9 mov x9, #6 udiv x9, x8, x9 ldr x8, [sp, #24] add x8, x8, x9 str x8, [sp, #24] b LBB0_21 LBB0_17: ; in Loop: Header=BB0_7 Depth=2 ldr w8, [sp, #16] ldr w9, [sp, #12] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_20 b LBB0_18 LBB0_18: ; in Loop: Header=BB0_7 Depth=2 ldr w8, [sp, #16] ldr w9, [sp, #8] subs w8, w8, w9 cset w8, eq tbnz w8, #0, LBB0_20 b LBB0_19 LBB0_19: ; in Loop: Header=BB0_7 Depth=2 ldrsw x8, [sp, #16] add x9, sp, #48 ldr x8, [x9, x8, lsl #3] ldrsw x10, [sp, #16] ldr x10, [x9, x10, lsl #3] subs x10, x10, #1 mul x8, x8, x10 mov x10, #2 udiv x8, x8, x10 ldrsw x10, [sp, #8] ldr x9, [x9, x10, lsl #3] mul x9, x8, x9 ldr x8, [sp, #24] add x8, x8, x9 str x8, [sp, #24] b LBB0_20 LBB0_20: ; in Loop: Header=BB0_7 Depth=2 b LBB0_21 LBB0_21: ; in Loop: Header=BB0_7 Depth=2 b LBB0_22 LBB0_22: ; in Loop: Header=BB0_7 Depth=2 b LBB0_23 LBB0_23: ; in Loop: Header=BB0_7 Depth=2 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB0_7 LBB0_24: ; in Loop: Header=BB0_5 Depth=1 b LBB0_25 LBB0_25: ; in Loop: Header=BB0_5 Depth=1 ldr w8, [sp, #16] add w8, w8, #1 str w8, [sp, #16] b LBB0_5 LBB0_26: ldr x8, [sp, #24] mov x10, #51719 movk x10, #15258, lsl #16 udiv x9, x8, x10 mul x9, x9, x10 subs x8, x8, x9 str x8, [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_28 b LBB0_27 LBB0_27: bl ___stack_chk_fail LBB0_28: ldr x8, [sp] ; 8-byte Folded Reload mov x0, x8 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 .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.arr@PAGE add x8, x8, l___const.main.arr@PAGEOFF ldr q0, [x8] add x0, sp, #16 str q0, [sp, #16] ldr x8, [x8, #16] str x8, [sp, #32] mov w1, #6 mov w2, #5 bl _threeSumMulti mov x9, sp ; implicit-def: $x8 mov x8, x0 str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: bl ___stack_chk_fail LBB1_2: mov w0, #0 ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .section __TEXT,__const .p2align 2 ; @__const.main.arr l___const.main.arr: .long 1 ; 0x1 .long 1 ; 0x1 .long 2 ; 0x2 .long 2 ; 0x2 .long 2 ; 0x2 .long 2 ; 0x2 .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 _threeSumMulti ## -- Begin function threeSumMulti .p2align 4, 0x90 _threeSumMulti: ## @threeSumMulti .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $864, %rsp ## imm = 0x360 movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movq %rdi, -824(%rbp) movl %esi, -828(%rbp) movl %edx, -832(%rbp) movq $0, -840(%rbp) leaq -816(%rbp), %rdi xorl %esi, %esi movl $808, %edx ## imm = 0x328 callq _memset movl $0, -844(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movl -844(%rbp), %eax cmpl -828(%rbp), %eax jge LBB0_4 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movq -824(%rbp), %rax movslq -844(%rbp), %rcx movslq (%rax,%rcx,4), %rax movq -816(%rbp,%rax,8), %rcx addq $1, %rcx movq %rcx, -816(%rbp,%rax,8) ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movl -844(%rbp), %eax addl $1, %eax movl %eax, -844(%rbp) jmp LBB0_1 LBB0_4: movl $0, -848(%rbp) LBB0_5: ## =>This Loop Header: Depth=1 ## Child Loop BB0_7 Depth 2 cmpl $100, -848(%rbp) jg LBB0_26 ## %bb.6: ## in Loop: Header=BB0_5 Depth=1 movl -848(%rbp), %eax movl %eax, -852(%rbp) LBB0_7: ## Parent Loop BB0_5 Depth=1 ## => This Inner Loop Header: Depth=2 cmpl $100, -852(%rbp) jg LBB0_24 ## %bb.8: ## in Loop: Header=BB0_7 Depth=2 movl -832(%rbp), %eax subl -848(%rbp), %eax subl -852(%rbp), %eax movl %eax, -856(%rbp) cmpl $0, -856(%rbp) jl LBB0_10 ## %bb.9: ## in Loop: Header=BB0_7 Depth=2 cmpl $100, -856(%rbp) jle LBB0_11 LBB0_10: ## in Loop: Header=BB0_7 Depth=2 jmp LBB0_23 LBB0_11: ## in Loop: Header=BB0_7 Depth=2 movl -848(%rbp), %eax cmpl -852(%rbp), %eax jge LBB0_14 ## %bb.12: ## in Loop: Header=BB0_7 Depth=2 movl -852(%rbp), %eax cmpl -856(%rbp), %eax jge LBB0_14 ## %bb.13: ## in Loop: Header=BB0_7 Depth=2 movslq -848(%rbp), %rax movq -816(%rbp,%rax,8), %rax movslq -852(%rbp), %rcx imulq -816(%rbp,%rcx,8), %rax movslq -856(%rbp), %rcx imulq -816(%rbp,%rcx,8), %rax addq -840(%rbp), %rax movq %rax, -840(%rbp) jmp LBB0_22 LBB0_14: ## in Loop: Header=BB0_7 Depth=2 movl -848(%rbp), %eax cmpl -852(%rbp), %eax jne LBB0_17 ## %bb.15: ## in Loop: Header=BB0_7 Depth=2 movl -852(%rbp), %eax cmpl -856(%rbp), %eax jne LBB0_17 ## %bb.16: ## in Loop: Header=BB0_7 Depth=2 movslq -848(%rbp), %rax movq -816(%rbp,%rax,8), %rax movslq -848(%rbp), %rcx movq -816(%rbp,%rcx,8), %rcx subq $1, %rcx imulq %rcx, %rax movslq -848(%rbp), %rcx movq -816(%rbp,%rcx,8), %rcx subq $2, %rcx imulq %rcx, %rax movl $6, %ecx xorl %edx, %edx ## kill: def $rdx killed $edx divq %rcx addq -840(%rbp), %rax movq %rax, -840(%rbp) jmp LBB0_21 LBB0_17: ## in Loop: Header=BB0_7 Depth=2 movl -848(%rbp), %eax cmpl -852(%rbp), %eax jne LBB0_20 ## %bb.18: ## in Loop: Header=BB0_7 Depth=2 movl -848(%rbp), %eax cmpl -856(%rbp), %eax je LBB0_20 ## %bb.19: ## in Loop: Header=BB0_7 Depth=2 movslq -848(%rbp), %rax movq -816(%rbp,%rax,8), %rax movslq -848(%rbp), %rcx movq -816(%rbp,%rcx,8), %rcx subq $1, %rcx imulq %rcx, %rax shrq $1, %rax movslq -856(%rbp), %rcx imulq -816(%rbp,%rcx,8), %rax addq -840(%rbp), %rax movq %rax, -840(%rbp) LBB0_20: ## in Loop: Header=BB0_7 Depth=2 jmp LBB0_21 LBB0_21: ## in Loop: Header=BB0_7 Depth=2 jmp LBB0_22 LBB0_22: ## in Loop: Header=BB0_7 Depth=2 jmp LBB0_23 LBB0_23: ## in Loop: Header=BB0_7 Depth=2 movl -852(%rbp), %eax addl $1, %eax movl %eax, -852(%rbp) jmp LBB0_7 LBB0_24: ## in Loop: Header=BB0_5 Depth=1 jmp LBB0_25 LBB0_25: ## in Loop: Header=BB0_5 Depth=1 movl -848(%rbp), %eax addl $1, %eax movl %eax, -848(%rbp) jmp LBB0_5 LBB0_26: movq -840(%rbp), %rax movl $1000000007, %ecx ## imm = 0x3B9ACA07 xorl %edx, %edx ## kill: def $rdx killed $edx divq %rcx movl %edx, %eax movl %eax, -860(%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 -860(%rbp), %eax ## 4-byte Reload addq $864, %rsp ## imm = 0x360 popq %rbp retq LBB0_28: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -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) leaq -32(%rbp), %rdi movl $6, %esi movl $5, %edx callq _threeSumMulti movl %eax, %esi leaq L_.str(%rip), %rdi movb $0, %al callq _printf movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB1_2 ## %bb.1: xorl %eax, %eax addq $48, %rsp popq %rbp retq LBB1_2: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__const .p2align 4 ## @__const.main.arr l___const.main.arr: .long 1 ## 0x1 .long 1 ## 0x1 .long 2 ## 0x2 .long 2 ## 0x2 .long 2 ## 0x2 .long 2 ## 0x2 .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d\n" .subsections_via_symbols
the_stack_data/59514126.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #0 str w8, [sp, #16] ; 4-byte Folded Spill stur wzr, [x29, #-4] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov x9, sp sub x8, x29, #8 str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf ldur w8, [x29, #-8] ; implicit-def: $x10 mov x10, x8 ldur w8, [x29, #-8] mov w11, #2 sdiv w9, w8, w11 mul w9, w9, w11 subs w8, w8, w9 subs w8, w8, #0 cset w8, eq and w11, 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 w11, w11, #0x1 csel x8, x8, x9, ne 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 ldr w0, [sp, #16] ; 4-byte Folded Reload ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Digite um n\303\272mero: " l_.str.1: ; @.str.1 .asciz "%d" l_.str.2: ; @.str.2 .asciz "O n\303\272mero %d \303\251 %s. \n" l_.str.3: ; @.str.3 .asciz "PAR" l_.str.4: ; @.str.4 .asciz "\303\215MPAR" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) leaq L_.str(%rip), %rdi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi leaq -8(%rbp), %rsi movb $0, %al callq _scanf movl -8(%rbp), %esi movl -8(%rbp), %eax movl $2, %ecx cltd idivl %ecx movl %edx, %ecx leaq L_.str.4(%rip), %rdx leaq L_.str.3(%rip), %rax cmpl $0, %ecx cmoveq %rax, %rdx leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Digite um n\303\272mero: " L_.str.1: ## @.str.1 .asciz "%d" L_.str.2: ## @.str.2 .asciz "O n\303\272mero %d \303\251 %s. \n" L_.str.3: ## @.str.3 .asciz "PAR" L_.str.4: ## @.str.4 .asciz "\303\215MPAR" .subsections_via_symbols
the_stack_data/48575139.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _push ; -- Begin function push .p2align 2 _push: ; @push .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] mov x0, #16 bl _malloc str x0, [sp] ldr x8, [sp] 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 _printf b LBB0_3 LBB0_2: ldurb w8, [x29, #-1] ldr x9, [sp] strb w8, [x9] adrp x9, _top@PAGE ldr x8, [x9, _top@PAGEOFF] ldr x10, [sp] str x8, [x10, #8] ldr x8, [sp] str x8, [x9, _top@PAGEOFF] b LBB0_3 LBB0_3: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _pop ; -- Begin function pop .p2align 2 _pop: ; @pop .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, #255 strb w8, [sp, #7] adrp x8, _top@PAGE ldr x8, [x8, _top@PAGEOFF] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf b LBB1_3 LBB1_2: adrp x9, _top@PAGE ldr x8, [x9, _top@PAGEOFF] str x8, [sp, #8] ldr x8, [x9, _top@PAGEOFF] ldr x8, [x8, #8] str x8, [x9, _top@PAGEOFF] ldr x8, [sp, #8] ldrb w8, [x8] strb w8, [sp, #7] ldr x0, [sp, #8] bl _free b LBB1_3 LBB1_3: ldrsb w0, [sp, #7] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _pre ; -- Begin function pre .p2align 2 _pre: ; @pre .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 strb w0, [sp, #11] ldrsb w8, [sp, #11] subs w8, w8, #43 cset w8, eq tbnz w8, #0, LBB2_2 b LBB2_1 LBB2_1: ldrsb w8, [sp, #11] subs w8, w8, #45 cset w8, ne tbnz w8, #0, LBB2_3 b LBB2_2 LBB2_2: mov w8, #1 str w8, [sp, #12] b LBB2_8 LBB2_3: ldrsb w8, [sp, #11] subs w8, w8, #42 cset w8, eq tbnz w8, #0, LBB2_5 b LBB2_4 LBB2_4: ldrsb w8, [sp, #11] subs w8, w8, #47 cset w8, ne tbnz w8, #0, LBB2_6 b LBB2_5 LBB2_5: mov w8, #2 str w8, [sp, #12] b LBB2_8 LBB2_6: b LBB2_7 LBB2_7: str wzr, [sp, #12] b LBB2_8 LBB2_8: ldr w0, [sp, #12] add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _isOperand ; -- Begin function isOperand .p2align 2 _isOperand: ; @isOperand .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 strb w0, [sp, #11] ldrsb w8, [sp, #11] subs w8, w8, #43 cset w8, eq tbnz w8, #0, LBB3_4 b LBB3_1 LBB3_1: ldrsb w8, [sp, #11] subs w8, w8, #45 cset w8, eq tbnz w8, #0, LBB3_4 b LBB3_2 LBB3_2: ldrsb w8, [sp, #11] subs w8, w8, #42 cset w8, eq tbnz w8, #0, LBB3_4 b LBB3_3 LBB3_3: ldrsb w8, [sp, #11] subs w8, w8, #47 cset w8, ne tbnz w8, #0, LBB3_5 b LBB3_4 LBB3_4: str wzr, [sp, #12] b LBB3_6 LBB3_5: mov w8, #1 str w8, [sp, #12] b LBB3_6 LBB3_6: ldr w0, [sp, #12] add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _post ; -- Begin function post .p2align 2 _post: ; @post .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] stur wzr, [x29, #-12] str wzr, [sp, #16] ldur x0, [x29, #-8] bl _strlen mov x8, x0 str w8, [sp, #4] ldr w8, [sp, #4] add w9, w8, #2 ; implicit-def: $x8 mov x8, x9 sxtw x8, w8 lsr x0, x8, #0 bl _malloc str x0, [sp, #8] b LBB4_1 LBB4_1: ; =>This Inner Loop Header: Depth=1 ldur x8, [x29, #-8] ldursw x9, [x29, #-12] ldrsb w8, [x8, x9] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB4_9 b LBB4_2 LBB4_2: ; in Loop: Header=BB4_1 Depth=1 ldur x8, [x29, #-8] ldursw x9, [x29, #-12] ldrsb w0, [x8, x9] bl _isOperand 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 x8, [x29, #-8] ldursw x9, [x29, #-12] mov x10, x9 add w10, w10, #1 stur w10, [x29, #-12] add x8, x8, x9 ldrb w8, [x8] ldr x9, [sp, #8] ldrsw x10, [sp, #16] mov x11, x10 add w11, w11, #1 str w11, [sp, #16] add x9, x9, x10 strb w8, [x9] b LBB4_8 LBB4_4: ; in Loop: Header=BB4_1 Depth=1 ldur x8, [x29, #-8] ldursw x9, [x29, #-12] ldrsb w0, [x8, x9] bl _pre str w0, [sp] ; 4-byte Folded Spill adrp x8, _top@PAGE ldr x8, [x8, _top@PAGEOFF] ldrsb w0, [x8] bl _pre mov x8, x0 ldr w0, [sp] ; 4-byte Folded Reload subs w8, w0, w8 cset w8, le tbnz w8, #0, LBB4_6 b LBB4_5 LBB4_5: ; in Loop: Header=BB4_1 Depth=1 ldur x8, [x29, #-8] ldursw x9, [x29, #-12] mov x10, x9 add w10, w10, #1 stur w10, [x29, #-12] ldrsb w0, [x8, x9] bl _push b LBB4_7 LBB4_6: ; in Loop: Header=BB4_1 Depth=1 bl _pop ldr x8, [sp, #8] ldrsw x9, [sp, #16] mov x10, x9 add w10, w10, #1 str w10, [sp, #16] strb w0, [x8, x9] b LBB4_7 LBB4_7: ; in Loop: Header=BB4_1 Depth=1 b LBB4_8 LBB4_8: ; in Loop: Header=BB4_1 Depth=1 b LBB4_1 LBB4_9: b LBB4_10 LBB4_10: ; =>This Inner Loop Header: Depth=1 adrp x8, _top@PAGE ldr x8, [x8, _top@PAGEOFF] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB4_12 b LBB4_11 LBB4_11: ; in Loop: Header=BB4_10 Depth=1 bl _pop ldr x8, [sp, #8] ldrsw x9, [sp, #16] mov x10, x9 add w10, w10, #1 str w10, [sp, #16] strb w0, [x8, x9] b LBB4_10 LBB4_12: ldr x8, [sp, #8] ldrsw x9, [sp, #16] add x8, x8, x9 strb wzr, [x8] ldr x0, [sp, #8] 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 str w8, [sp, #20] ; 4-byte Folded Spill stur wzr, [x29, #-4] adrp x8, l_.str.2@PAGE add x8, x8, l_.str.2@PAGEOFF stur x8, [x29, #-16] mov w0, #35 bl _push ldur x0, [x29, #-16] bl _post str x0, [sp, #24] ldr x8, [sp, #24] mov x9, sp str x8, [x9] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf ldr w0, [sp, #20] ; 4-byte Folded Reload ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _top ; @top .zerofill __DATA,__common,_top,8,3 .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "stack full\n" l_.str.1: ; @.str.1 .asciz "stack empty" l_.str.2: ; @.str.2 .asciz "a+b/c-d" l_.str.3: ; @.str.3 .asciz "%s" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _push ## -- Begin function push .p2align 4, 0x90 _push: ## @push .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movb %dil, %al movb %al, -1(%rbp) movl $16, %edi callq _malloc movq %rax, -16(%rbp) cmpq $0, -16(%rbp) jne LBB0_2 ## %bb.1: leaq L_.str(%rip), %rdi movb $0, %al callq _printf jmp LBB0_3 LBB0_2: movb -1(%rbp), %cl movq -16(%rbp), %rax movb %cl, (%rax) movq _top(%rip), %rcx movq -16(%rbp), %rax movq %rcx, 8(%rax) movq -16(%rbp), %rax movq %rax, _top(%rip) LBB0_3: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _pop ## -- Begin function pop .p2align 4, 0x90 _pop: ## @pop .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movb $-1, -9(%rbp) cmpq $0, _top(%rip) jne LBB1_2 ## %bb.1: leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf jmp LBB1_3 LBB1_2: movq _top(%rip), %rax movq %rax, -8(%rbp) movq _top(%rip), %rax movq 8(%rax), %rax movq %rax, _top(%rip) movq -8(%rbp), %rax movb (%rax), %al movb %al, -9(%rbp) movq -8(%rbp), %rdi callq _free LBB1_3: movsbl -9(%rbp), %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _pre ## -- Begin function pre .p2align 4, 0x90 _pre: ## @pre .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 $43, %eax je LBB2_2 ## %bb.1: movsbl -5(%rbp), %eax cmpl $45, %eax jne LBB2_3 LBB2_2: movl $1, -4(%rbp) jmp LBB2_8 LBB2_3: movsbl -5(%rbp), %eax cmpl $42, %eax je LBB2_5 ## %bb.4: movsbl -5(%rbp), %eax cmpl $47, %eax jne LBB2_6 LBB2_5: movl $2, -4(%rbp) jmp LBB2_8 LBB2_6: jmp LBB2_7 LBB2_7: movl $0, -4(%rbp) LBB2_8: movl -4(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .globl _isOperand ## -- Begin function isOperand .p2align 4, 0x90 _isOperand: ## @isOperand .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 $43, %eax je LBB3_4 ## %bb.1: movsbl -5(%rbp), %eax cmpl $45, %eax je LBB3_4 ## %bb.2: movsbl -5(%rbp), %eax cmpl $42, %eax je LBB3_4 ## %bb.3: movsbl -5(%rbp), %eax cmpl $47, %eax jne LBB3_5 LBB3_4: movl $0, -4(%rbp) jmp LBB3_6 LBB3_5: movl $1, -4(%rbp) LBB3_6: movl -4(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .globl _post ## -- Begin function post .p2align 4, 0x90 _post: ## @post .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movl $0, -12(%rbp) movl $0, -16(%rbp) movq -8(%rbp), %rdi callq _strlen ## kill: def $eax killed $eax killed $rax movl %eax, -28(%rbp) movl -28(%rbp), %eax addl $2, %eax movslq %eax, %rdi shlq $0, %rdi callq _malloc movq %rax, -24(%rbp) LBB4_1: ## =>This Inner Loop Header: Depth=1 movq -8(%rbp), %rax movslq -12(%rbp), %rcx movsbl (%rax,%rcx), %eax cmpl $0, %eax je LBB4_9 ## %bb.2: ## in Loop: Header=BB4_1 Depth=1 movq -8(%rbp), %rax movslq -12(%rbp), %rcx movsbl (%rax,%rcx), %edi callq _isOperand cmpl $0, %eax je LBB4_4 ## %bb.3: ## in Loop: Header=BB4_1 Depth=1 movq -8(%rbp), %rax movl -12(%rbp), %ecx movl %ecx, %edx addl $1, %edx movl %edx, -12(%rbp) movslq %ecx, %rcx movb (%rax,%rcx), %dl movq -24(%rbp), %rax movl -16(%rbp), %ecx movl %ecx, %esi addl $1, %esi movl %esi, -16(%rbp) movslq %ecx, %rcx movb %dl, (%rax,%rcx) jmp LBB4_8 LBB4_4: ## in Loop: Header=BB4_1 Depth=1 movq -8(%rbp), %rax movslq -12(%rbp), %rcx movsbl (%rax,%rcx), %edi callq _pre movl %eax, -32(%rbp) ## 4-byte Spill movq _top(%rip), %rax movsbl (%rax), %edi callq _pre movl %eax, %ecx movl -32(%rbp), %eax ## 4-byte Reload cmpl %ecx, %eax jle LBB4_6 ## %bb.5: ## in Loop: Header=BB4_1 Depth=1 movq -8(%rbp), %rax movl -12(%rbp), %ecx movl %ecx, %edx addl $1, %edx movl %edx, -12(%rbp) movslq %ecx, %rcx movsbl (%rax,%rcx), %edi callq _push jmp LBB4_7 LBB4_6: ## in Loop: Header=BB4_1 Depth=1 callq _pop movb %al, %dl movq -24(%rbp), %rax movl -16(%rbp), %ecx movl %ecx, %esi addl $1, %esi movl %esi, -16(%rbp) movslq %ecx, %rcx movb %dl, (%rax,%rcx) LBB4_7: ## in Loop: Header=BB4_1 Depth=1 jmp LBB4_8 LBB4_8: ## in Loop: Header=BB4_1 Depth=1 jmp LBB4_1 LBB4_9: jmp LBB4_10 LBB4_10: ## =>This Inner Loop Header: Depth=1 cmpq $0, _top(%rip) je LBB4_12 ## %bb.11: ## in Loop: Header=BB4_10 Depth=1 callq _pop movb %al, %dl movq -24(%rbp), %rax movl -16(%rbp), %ecx movl %ecx, %esi addl $1, %esi movl %esi, -16(%rbp) movslq %ecx, %rcx movb %dl, (%rax,%rcx) jmp LBB4_10 LBB4_12: movq -24(%rbp), %rax movslq -16(%rbp), %rcx movb $0, (%rax,%rcx) movq -24(%rbp), %rax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl $0, -4(%rbp) leaq L_.str.2(%rip), %rax movq %rax, -16(%rbp) movl $35, %edi callq _push movq -16(%rbp), %rdi callq _post movq %rax, -24(%rbp) movq -24(%rbp), %rsi leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf xorl %eax, %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _top ## @top .zerofill __DATA,__common,_top,8,3 .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "stack full\n" L_.str.1: ## @.str.1 .asciz "stack empty" L_.str.2: ## @.str.2 .asciz "a+b/c-d" L_.str.3: ## @.str.3 .asciz "%s" .subsections_via_symbols
the_stack_data/689921.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 b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _printf adrp x0, l_.str.7@PAGE add x0, x0, l_.str.7@PAGEOFF bl _printf adrp x0, l_.str.8@PAGE add x0, x0, l_.str.8@PAGEOFF bl _printf mov x9, sp sub x8, x29, #4 str x8, [x9] adrp x0, l_.str.9@PAGE add x0, x0, l_.str.9@PAGEOFF bl _scanf ldur w8, [x29, #-4] subs w8, w8, #1 ; kill: def $x8 killed $w8 str x8, [sp, #8] ; 8-byte Folded Spill subs x8, x8, #5 cset w8, hi tbnz w8, #0, LBB0_9 ; %bb.2: ; in Loop: Header=BB0_1 Depth=1 ldr x11, [sp, #8] ; 8-byte Folded Reload adrp x10, lJTI0_0@PAGE add x10, x10, lJTI0_0@PAGEOFF Ltmp0: adr x8, Ltmp0 ldrsw x9, [x10, x11, lsl #2] add x8, x8, x9 br x8 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 bl _create str x0, [sp, #16] b LBB0_10 LBB0_4: ; in Loop: Header=BB0_1 Depth=1 ldr x0, [sp, #16] bl _insert_front str x0, [sp, #16] b LBB0_10 LBB0_5: ; in Loop: Header=BB0_1 Depth=1 ldr x0, [sp, #16] bl _insert_end str x0, [sp, #16] b LBB0_10 LBB0_6: ; in Loop: Header=BB0_1 Depth=1 ldr x0, [sp, #16] bl _delete_last str x0, [sp, #16] b LBB0_10 LBB0_7: ; in Loop: Header=BB0_1 Depth=1 ldr x0, [sp, #16] bl _delelte_before str x0, [sp, #16] b LBB0_10 LBB0_8: ; in Loop: Header=BB0_1 Depth=1 bl _display b LBB0_10 LBB0_9: ; in Loop: Header=BB0_1 Depth=1 b LBB0_10 LBB0_10: ; in Loop: Header=BB0_1 Depth=1 b LBB0_11 LBB0_11: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-4] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_1 b LBB0_12 LBB0_12: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc .p2align 2 lJTI0_0: .long LBB0_3-Ltmp0 .long LBB0_4-Ltmp0 .long LBB0_5-Ltmp0 .long LBB0_6-Ltmp0 .long LBB0_7-Ltmp0 .long LBB0_8-Ltmp0 ; -- End function .globl _insert_front ; -- Begin function insert_front .p2align 2 _insert_front: ; @insert_front .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, _first@GOTPAGE ldr x8, [x8, _first@GOTPAGEOFF] str x8, [sp, #16] ; 8-byte Folded Spill stur x0, [x29, #-8] mov x0, #24 bl _malloc str x0, [sp, #24] adrp x0, l_.str.10@PAGE add x0, x0, l_.str.10@PAGEOFF bl _printf mov x9, sp sub x8, x29, #12 str x8, [x9] adrp x0, l_.str.9@PAGE add x0, x0, l_.str.9@PAGEOFF bl _scanf ldr x9, [sp, #16] ; 8-byte Folded Reload ldur w8, [x29, #-12] ldr x10, [sp, #24] str w8, [x10] ldr x8, [x9] ldr x10, [sp, #24] str x8, [x10, #16] ldr x8, [sp, #24] ; kill: def $x10 killed $xzr str xzr, [x8, #8] ldr x8, [sp, #24] ldr x10, [x9] str x8, [x10, #8] ldr x8, [sp, #24] str x8, [x9] ldur x0, [x29, #-8] ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _insert_end ; -- Begin function insert_end .p2align 2 _insert_end: ; @insert_end .cfi_startproc ; %bb.0: sub sp, sp, #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, _last@GOTPAGE ldr x8, [x8, _last@GOTPAGEOFF] str x8, [sp, #16] ; 8-byte Folded Spill stur x0, [x29, #-8] mov x0, #24 bl _malloc str x0, [sp, #24] adrp x0, l_.str.10@PAGE add x0, x0, l_.str.10@PAGEOFF bl _printf mov x9, sp sub x8, x29, #12 str x8, [x9] adrp x0, l_.str.9@PAGE add x0, x0, l_.str.9@PAGEOFF bl _scanf ldr x9, [sp, #16] ; 8-byte Folded Reload ldur w8, [x29, #-12] ldr x10, [sp, #24] str w8, [x10] ldr x8, [x9] ldr x10, [sp, #24] str x8, [x10, #8] ldr x8, [sp, #24] ; kill: def $x10 killed $xzr str xzr, [x8, #16] ldr x8, [sp, #24] ldr x10, [x9] str x8, [x10, #16] ldr x8, [sp, #24] str x8, [x9] ldur x0, [x29, #-8] ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _delete_last ; -- Begin function delete_last .p2align 2 _delete_last: ; @delete_last .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] adrp x8, _first@GOTPAGE ldr x8, [x8, _first@GOTPAGEOFF] ldr x8, [x8] str x8, [sp, #16] b LBB3_1 LBB3_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #16] ldr x8, [x8, #16] 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, #16] str x8, [sp, #8] ldr x8, [sp, #16] ldr x8, [x8, #16] str x8, [sp, #16] b LBB3_1 LBB3_3: ldr x9, [sp, #8] adrp x8, _last@GOTPAGE ldr x8, [x8, _last@GOTPAGEOFF] str x9, [x8] ldr x8, [x8] ; kill: def $x9 killed $xzr str xzr, [x8, #16] ldr x0, [sp, #16] bl _free ldur x0, [x29, #-8] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _delelte_before ; -- Begin function delelte_before .p2align 2 _delelte_before: ; @delelte_before .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] adrp x0, l_.str.11@PAGE add x0, x0, l_.str.11@PAGEOFF bl _printf mov x9, sp sub x8, x29, #12 str x8, [x9] adrp x0, l_.str.9@PAGE add x0, x0, l_.str.9@PAGEOFF bl _scanf adrp x8, _first@GOTPAGE ldr x8, [x8, _first@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] mov w8, #1 str w8, [sp, #20] b LBB4_1 LBB4_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #20] ldur w9, [x29, #-12] subs w9, w9, #1 subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB4_4 b LBB4_2 LBB4_2: ; in Loop: Header=BB4_1 Depth=1 ldur x8, [x29, #-24] str x8, [sp, #32] ldur x8, [x29, #-24] ldr x8, [x8, #16] stur x8, [x29, #-24] b LBB4_3 LBB4_3: ; in Loop: Header=BB4_1 Depth=1 ldr w8, [sp, #20] add w8, w8, #1 str w8, [sp, #20] b LBB4_1 LBB4_4: ldur x8, [x29, #-24] ldr x8, [x8, #16] str x8, [sp, #24] ldr x8, [sp, #24] ldr x9, [sp, #32] str x8, [x9, #16] ldr x8, [sp, #32] ldr x9, [sp, #24] str x8, [x9, #8] ldur x0, [x29, #-24] bl _free ldur x0, [x29, #-8] ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .globl _create ; -- Begin function create .p2align 2 _create: ; @create .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov x0, #24 bl _malloc str x0, [sp, #16] 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.9@PAGE add x0, x0, l_.str.9@PAGEOFF bl _scanf ldur w8, [x29, #-4] ldr x9, [sp, #16] str w8, [x9] ldr x8, [sp, #16] ; kill: def $x9 killed $xzr str xzr, [x8, #8] ldr x8, [sp, #16] str xzr, [x8, #16] ldr x8, [sp, #16] adrp x9, _first@GOTPAGE ldr x9, [x9, _first@GOTPAGEOFF] str x8, [x9] ldr x8, [sp, #16] adrp x9, _last@GOTPAGE ldr x9, [x9, _last@GOTPAGEOFF] str x8, [x9] ldr x0, [sp, #16] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _display ; -- Begin function display .p2align 2 _display: ; @display .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, _first@GOTPAGE ldr x8, [x8, _first@GOTPAGEOFF] ldr x8, [x8] str x8, [sp, #8] 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 b LBB6_1 LBB6_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #8] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB6_3 b LBB6_2 LBB6_2: ; in Loop: Header=BB6_1 Depth=1 ldr x8, [sp, #8] ldr w9, [x8] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.14@PAGE add x0, x0, l_.str.14@PAGEOFF bl _printf ldr x8, [sp, #8] ldr x8, [x8, #16] str x8, [sp, #8] b LBB6_1 LBB6_3: adrp x0, l_.str.15@PAGE add x0, x0, l_.str.15@PAGEOFF bl _printf ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "program written by enrollment number 200420107012\n" l_.str.1: ; @.str.1 .asciz "\n 1. Create a Node" l_.str.2: ; @.str.2 .asciz "\n 2. Insert a node at the front of the linked list." l_.str.3: ; @.str.3 .asciz "\n 3. Insert a node at the end of the linked list." l_.str.4: ; @.str.4 .asciz "\n 4. Delete a last node of the linked list." l_.str.5: ; @.str.5 .asciz "\n 5. Delete a node before specified position." l_.str.6: ; @.str.6 .asciz "\n 6. Display." l_.str.7: ; @.str.7 .asciz "\n 0. Exit.\n" l_.str.8: ; @.str.8 .asciz "\n Enter a choice! : " l_.str.9: ; @.str.9 .asciz "%d" l_.str.10: ; @.str.10 .asciz "\n Enter the value : " .comm _first,8,3 ; @first .comm _last,8,3 ; @last l_.str.11: ; @.str.11 .asciz "\n Enter the position : " l_.str.12: ; @.str.12 .asciz "\n The Linked List Contains" l_.str.13: ; @.str.13 .asciz "\n-------------" l_.str.14: ; @.str.14 .asciz "\n %d" l_.str.15: ; @.str.15 .asciz "\n-------------\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp leaq L_.str(%rip), %rdi movb $0, %al callq _printf LBB0_1: ## =>This Inner Loop Header: Depth=1 leaq L_.str.1(%rip), %rdi xorl %eax, %eax ## kill: def $al killed $al killed $eax movb %al, -25(%rbp) ## 1-byte Spill callq _printf ## kill: def $ecx killed $eax movb -25(%rbp), %al ## 1-byte Reload leaq L_.str.2(%rip), %rdi callq _printf ## kill: def $ecx killed $eax movb -25(%rbp), %al ## 1-byte Reload leaq L_.str.3(%rip), %rdi callq _printf ## kill: def $ecx killed $eax movb -25(%rbp), %al ## 1-byte Reload leaq L_.str.4(%rip), %rdi callq _printf ## kill: def $ecx killed $eax movb -25(%rbp), %al ## 1-byte Reload leaq L_.str.5(%rip), %rdi callq _printf ## kill: def $ecx killed $eax movb -25(%rbp), %al ## 1-byte Reload leaq L_.str.6(%rip), %rdi callq _printf ## kill: def $ecx killed $eax movb -25(%rbp), %al ## 1-byte Reload leaq L_.str.7(%rip), %rdi callq _printf ## kill: def $ecx killed $eax movb -25(%rbp), %al ## 1-byte Reload leaq L_.str.8(%rip), %rdi callq _printf ## kill: def $ecx killed $eax movb -25(%rbp), %al ## 1-byte Reload leaq L_.str.9(%rip), %rdi leaq -4(%rbp), %rsi callq _scanf movl -4(%rbp), %eax decl %eax movl %eax, %ecx movq %rcx, -24(%rbp) ## 8-byte Spill subl $5, %eax ja LBB0_8 ## %bb.12: ## in Loop: Header=BB0_1 Depth=1 movq -24(%rbp), %rax ## 8-byte Reload leaq LJTI0_0(%rip), %rcx movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax LBB0_2: ## in Loop: Header=BB0_1 Depth=1 callq _create movq %rax, -16(%rbp) jmp LBB0_9 LBB0_3: ## in Loop: Header=BB0_1 Depth=1 movq -16(%rbp), %rdi callq _insert_front movq %rax, -16(%rbp) jmp LBB0_9 LBB0_4: ## in Loop: Header=BB0_1 Depth=1 movq -16(%rbp), %rdi callq _insert_end movq %rax, -16(%rbp) jmp LBB0_9 LBB0_5: ## in Loop: Header=BB0_1 Depth=1 movq -16(%rbp), %rdi callq _delete_last movq %rax, -16(%rbp) jmp LBB0_9 LBB0_6: ## in Loop: Header=BB0_1 Depth=1 movq -16(%rbp), %rdi callq _delelte_before movq %rax, -16(%rbp) jmp LBB0_9 LBB0_7: ## in Loop: Header=BB0_1 Depth=1 callq _display jmp LBB0_9 LBB0_8: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_9 LBB0_9: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_10 LBB0_10: ## in Loop: Header=BB0_1 Depth=1 cmpl $0, -4(%rbp) jne LBB0_1 ## %bb.11: addq $32, %rsp popq %rbp retq .cfi_endproc .p2align 2, 0x90 .data_region jt32 .set L0_0_set_2, LBB0_2-LJTI0_0 .set L0_0_set_3, LBB0_3-LJTI0_0 .set L0_0_set_4, LBB0_4-LJTI0_0 .set L0_0_set_5, LBB0_5-LJTI0_0 .set L0_0_set_6, LBB0_6-LJTI0_0 .set L0_0_set_7, LBB0_7-LJTI0_0 LJTI0_0: .long L0_0_set_2 .long L0_0_set_3 .long L0_0_set_4 .long L0_0_set_5 .long L0_0_set_6 .long L0_0_set_7 .end_data_region ## -- End function .globl _insert_front ## -- Begin function insert_front .p2align 4, 0x90 _insert_front: ## @insert_front .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movl $24, %edi callq _malloc movq %rax, -24(%rbp) leaq L_.str.10(%rip), %rdi movb $0, %al callq _printf leaq L_.str.9(%rip), %rdi leaq -12(%rbp), %rsi movb $0, %al callq _scanf movl -12(%rbp), %ecx movq -24(%rbp), %rax movl %ecx, (%rax) movq _first@GOTPCREL(%rip), %rax movq (%rax), %rcx movq -24(%rbp), %rax movq %rcx, 16(%rax) movq -24(%rbp), %rax movq $0, 8(%rax) movq -24(%rbp), %rcx movq _first@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rcx, 8(%rax) movq -24(%rbp), %rcx movq _first@GOTPCREL(%rip), %rax movq %rcx, (%rax) movq -8(%rbp), %rax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _insert_end ## -- Begin function insert_end .p2align 4, 0x90 _insert_end: ## @insert_end .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movl $24, %edi callq _malloc movq %rax, -24(%rbp) leaq L_.str.10(%rip), %rdi movb $0, %al callq _printf leaq L_.str.9(%rip), %rdi leaq -12(%rbp), %rsi movb $0, %al callq _scanf movl -12(%rbp), %ecx movq -24(%rbp), %rax movl %ecx, (%rax) movq _last@GOTPCREL(%rip), %rax movq (%rax), %rcx movq -24(%rbp), %rax movq %rcx, 8(%rax) movq -24(%rbp), %rax movq $0, 16(%rax) movq -24(%rbp), %rcx movq _last@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rcx, 16(%rax) movq -24(%rbp), %rcx movq _last@GOTPCREL(%rip), %rax movq %rcx, (%rax) movq -8(%rbp), %rax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _delete_last ## -- Begin function delete_last .p2align 4, 0x90 _delete_last: ## @delete_last .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movq _first@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -16(%rbp) LBB3_1: ## =>This Inner Loop Header: Depth=1 movq -16(%rbp), %rax cmpq $0, 16(%rax) je LBB3_3 ## %bb.2: ## in Loop: Header=BB3_1 Depth=1 movq -16(%rbp), %rax movq %rax, -24(%rbp) movq -16(%rbp), %rax movq 16(%rax), %rax movq %rax, -16(%rbp) jmp LBB3_1 LBB3_3: movq -24(%rbp), %rcx movq _last@GOTPCREL(%rip), %rax movq %rcx, (%rax) movq _last@GOTPCREL(%rip), %rax movq (%rax), %rax movq $0, 16(%rax) movq -16(%rbp), %rdi callq _free movq -8(%rbp), %rax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _delelte_before ## -- Begin function delelte_before .p2align 4, 0x90 _delelte_before: ## @delelte_before .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movq %rdi, -8(%rbp) leaq L_.str.11(%rip), %rdi movb $0, %al callq _printf leaq L_.str.9(%rip), %rdi leaq -12(%rbp), %rsi movb $0, %al callq _scanf movq _first@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -24(%rbp) movl $1, -44(%rbp) LBB4_1: ## =>This Inner Loop Header: Depth=1 movl -44(%rbp), %eax movl -12(%rbp), %ecx subl $1, %ecx cmpl %ecx, %eax jge LBB4_4 ## %bb.2: ## in Loop: Header=BB4_1 Depth=1 movq -24(%rbp), %rax movq %rax, -32(%rbp) movq -24(%rbp), %rax movq 16(%rax), %rax movq %rax, -24(%rbp) ## %bb.3: ## in Loop: Header=BB4_1 Depth=1 movl -44(%rbp), %eax addl $1, %eax movl %eax, -44(%rbp) jmp LBB4_1 LBB4_4: movq -24(%rbp), %rax movq 16(%rax), %rax movq %rax, -40(%rbp) movq -40(%rbp), %rcx movq -32(%rbp), %rax movq %rcx, 16(%rax) movq -32(%rbp), %rcx movq -40(%rbp), %rax movq %rcx, 8(%rax) movq -24(%rbp), %rdi callq _free movq -8(%rbp), %rax addq $48, %rsp 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 movl $24, %edi callq _malloc movq %rax, -16(%rbp) leaq L_.str.10(%rip), %rdi movb $0, %al callq _printf leaq L_.str.9(%rip), %rdi leaq -4(%rbp), %rsi movb $0, %al callq _scanf movl -4(%rbp), %ecx movq -16(%rbp), %rax movl %ecx, (%rax) movq -16(%rbp), %rax movq $0, 8(%rax) movq -16(%rbp), %rax movq $0, 16(%rax) movq -16(%rbp), %rcx movq _first@GOTPCREL(%rip), %rax movq %rcx, (%rax) movq -16(%rbp), %rcx movq _last@GOTPCREL(%rip), %rax movq %rcx, (%rax) movq -16(%rbp), %rax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _display ## -- Begin function display .p2align 4, 0x90 _display: ## @display .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq _first@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) leaq L_.str.12(%rip), %rdi movb $0, %al callq _printf leaq L_.str.13(%rip), %rdi movb $0, %al callq _printf LBB6_1: ## =>This Inner Loop Header: Depth=1 cmpq $0, -8(%rbp) je LBB6_3 ## %bb.2: ## in Loop: Header=BB6_1 Depth=1 movq -8(%rbp), %rax movl (%rax), %esi leaq L_.str.14(%rip), %rdi movb $0, %al callq _printf movq -8(%rbp), %rax movq 16(%rax), %rax movq %rax, -8(%rbp) jmp LBB6_1 LBB6_3: leaq L_.str.15(%rip), %rdi movb $0, %al callq _printf addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "program written by enrollment number 200420107012\n" L_.str.1: ## @.str.1 .asciz "\n 1. Create a Node" L_.str.2: ## @.str.2 .asciz "\n 2. Insert a node at the front of the linked list." L_.str.3: ## @.str.3 .asciz "\n 3. Insert a node at the end of the linked list." L_.str.4: ## @.str.4 .asciz "\n 4. Delete a last node of the linked list." L_.str.5: ## @.str.5 .asciz "\n 5. Delete a node before specified position." L_.str.6: ## @.str.6 .asciz "\n 6. Display." L_.str.7: ## @.str.7 .asciz "\n 0. Exit.\n" L_.str.8: ## @.str.8 .asciz "\n Enter a choice! : " L_.str.9: ## @.str.9 .asciz "%d" L_.str.10: ## @.str.10 .asciz "\n Enter the value : " .comm _first,8,3 ## @first .comm _last,8,3 ## @last L_.str.11: ## @.str.11 .asciz "\n Enter the position : " L_.str.12: ## @.str.12 .asciz "\n The Linked List Contains" L_.str.13: ## @.str.13 .asciz "\n-------------" L_.str.14: ## @.str.14 .asciz "\n %d" L_.str.15: ## @.str.15 .asciz "\n-------------\n" .subsections_via_symbols
the_stack_data/242329539.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _scilab_rt_bar_d0d0d0_ ; -- Begin function scilab_rt_bar_d0d0d0_ .p2align 2 _scilab_rt_bar_d0d0d0_: ; @scilab_rt_bar_d0d0d0_ .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 d0, [x29, #-8] stur d1, [x29, #-16] str d2, [sp, #24] ldur d0, [x29, #-8] mov x8, sp str d0, [x8] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF str x0, [sp, #16] ; 8-byte Folded Spill bl _printf ldr x0, [sp, #16] ; 8-byte Folded Reload ldur d0, [x29, #-16] mov x8, sp str d0, [x8] bl _printf ldr x0, [sp, #16] ; 8-byte Folded Reload ldr d0, [sp, #24] mov x8, sp str d0, [x8] bl _printf 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 "%f" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _scilab_rt_bar_d0d0d0_ ## -- Begin function scilab_rt_bar_d0d0d0_ .p2align 4, 0x90 _scilab_rt_bar_d0d0d0_: ## @scilab_rt_bar_d0d0d0_ .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movsd %xmm0, -8(%rbp) movsd %xmm1, -16(%rbp) movsd %xmm2, -24(%rbp) movsd -8(%rbp), %xmm0 ## xmm0 = mem[0],zero leaq L_.str(%rip), %rdi movb $1, %al callq _printf movsd -16(%rbp), %xmm0 ## xmm0 = mem[0],zero leaq L_.str(%rip), %rdi movb $1, %al callq _printf movsd -24(%rbp), %xmm0 ## xmm0 = mem[0],zero leaq L_.str(%rip), %rdi movb $1, %al callq _printf addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%f" .subsections_via_symbols
the_stack_data/133780.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 mov w8, #0 stur w8, [x29, #-28] ; 4-byte Folded Spill stur wzr, [x29, #-4] stur w0, [x29, #-8] stur x1, [x29, #-16] sub x0, x29, #24 str x0, [sp, #40] ; 8-byte Folded Spill mov x8, #51712 movk x8, #15258, lsl #16 stur x8, [x29, #-24] ldur x8, [x29, #-24] str x8, [sp, #24] ; 8-byte Folded Spill bl _gmtime bl _asctime ldr x9, [sp, #24] ; 8-byte Folded Reload mov x8, sp str x9, [x8] str x0, [x8, #8] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF stur x0, [x29, #-40] ; 8-byte Folded Spill bl _printf ldr x0, [sp, #40] ; 8-byte Folded Reload mov x8, #2147483647 stur x8, [x29, #-24] ldur x8, [x29, #-24] str x8, [sp, #32] ; 8-byte Folded Spill bl _gmtime bl _asctime ldr x10, [sp, #32] ; 8-byte Folded Reload mov x8, x0 ldur x0, [x29, #-40] ; 8-byte Folded Reload mov x9, sp str x10, [x9] str x8, [x9, #8] bl _printf ldr x0, [sp, #40] ; 8-byte Folded Reload ldur x8, [x29, #-24] add x8, x8, #1 stur x8, [x29, #-24] ldur x8, [x29, #-24] str x8, [sp, #48] ; 8-byte Folded Spill bl _gmtime bl _asctime ldr x10, [sp, #48] ; 8-byte Folded Reload mov x8, x0 ldur x0, [x29, #-40] ; 8-byte Folded Reload mov x9, sp str x10, [x9] str x8, [x9, #8] bl _printf ldur w0, [x29, #-28] ; 4-byte Folded Reload ldp x29, x30, [sp, #96] ; 16-byte Folded Reload add sp, sp, #112 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d, %s" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movl $0, -4(%rbp) movl %edi, -8(%rbp) movq %rsi, -16(%rbp) movq $1000000000, -24(%rbp) ## imm = 0x3B9ACA00 movq -24(%rbp), %rax ## kill: def $eax killed $eax killed $rax movl %eax, -36(%rbp) ## 4-byte Spill leaq -24(%rbp), %rdi callq _gmtime movq %rax, %rdi callq _asctime movl -36(%rbp), %esi ## 4-byte Reload movq %rax, %rdx leaq L_.str(%rip), %rdi movb $0, %al callq _printf movq $2147483647, -24(%rbp) ## imm = 0x7FFFFFFF movq -24(%rbp), %rax ## kill: def $eax killed $eax killed $rax movl %eax, -32(%rbp) ## 4-byte Spill leaq -24(%rbp), %rdi callq _gmtime movq %rax, %rdi callq _asctime movl -32(%rbp), %esi ## 4-byte Reload movq %rax, %rdx leaq L_.str(%rip), %rdi movb $0, %al callq _printf movq -24(%rbp), %rax addq $1, %rax movq %rax, -24(%rbp) movq -24(%rbp), %rax ## kill: def $eax killed $eax killed $rax movl %eax, -28(%rbp) ## 4-byte Spill leaq -24(%rbp), %rdi callq _gmtime movq %rax, %rdi callq _asctime movl -28(%rbp), %esi ## 4-byte Reload movq %rax, %rdx leaq L_.str(%rip), %rdi movb $0, %al callq _printf xorl %eax, %eax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d, %s" .subsections_via_symbols
the_stack_data/364570.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 mov w0, #0 str wzr, [sp, #12] adrp x8, _gv@PAGE ldr x9, [x8, _gv@PAGEOFF] mov w8, #10 str w8, [x9, #4] add sp, sp, #16 ret .cfi_endproc ; -- End function .comm _gv_,8,2 ; @gv_ .section __DATA,__data .globl _gv ; @gv .p2align 3 _gv: .quad _gv_ .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) movq _gv(%rip), %rax movl $10, 4(%rax) xorl %eax, %eax popq %rbp retq .cfi_endproc ## -- End function .comm _gv_,8,2 ## @gv_ .section __DATA,__data .globl _gv ## @gv .p2align 3 _gv: .quad _gv_ .subsections_via_symbols
the_stack_data/152932.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/133926.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/74203.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _sqrtS7Q24 ; -- Begin function sqrtS7Q24 .p2align 2 _sqrtS7Q24: ; @sqrtS7Q24 .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str w0, [sp, #28] ldr w8, [sp, #28] str w8, [sp, #12] mov w8, #1073741824 str w8, [sp, #16] str wzr, [sp, #20] mov w8, #4 str w8, [sp, #8] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #16] subs w8, w8, #8 cset w8, ls tbnz w8, #0, LBB0_7 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #20] ldr w9, [sp, #16] add w8, w8, w9 str w8, [sp, #24] ldr w8, [sp, #12] ldr w9, [sp, #24] subs w8, w8, w9 cset w8, lo tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr w9, [sp, #24] ldr w8, [sp, #12] subs w8, w8, w9 str w8, [sp, #12] ldr w9, [sp, #16] ldr w8, [sp, #20] add w8, w8, w9, lsl #1 str w8, [sp, #20] b LBB0_4 LBB0_4: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #12] mov w9, #-2147483648 ands w8, w8, w9 cset w8, eq tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #12] lsr w8, w8, #1 str w8, [sp, #12] ldr w8, [sp, #20] lsr w8, w8, #1 str w8, [sp, #20] ldr w8, [sp, #16] lsr w8, w8, #1 str w8, [sp, #16] ldr w8, [sp, #8] subs w8, w8, #1 str w8, [sp, #8] b LBB0_6 LBB0_6: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #12] lsl w8, w8, #1 str w8, [sp, #12] ldr w8, [sp, #16] lsr w8, w8, #1 str w8, [sp, #16] b LBB0_1 LBB0_7: ldr w9, [sp, #8] ldr w8, [sp, #20] lsr w8, w8, w9 str w8, [sp, #20] ldr w0, [sp, #20] add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #160 .cfi_def_cfa_offset 160 stp x29, x30, [sp, #144] ; 16-byte Folded Spill add x29, sp, #144 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] mov w8, #22136 movk w8, #4660, lsl #16 stur w8, [x29, #-8] mov w8, #21554 movk w8, #39030, lsl #16 stur w8, [x29, #-12] stur wzr, [x29, #-16] b LBB1_1 LBB1_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-16] subs w8, w8, #1000 cset w8, ge tbnz w8, #0, LBB1_4 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 ldur w8, [x29, #-8] ldur w9, [x29, #-12] mul w8, w8, w9 stur w8, [x29, #-20] ldurh w8, [x29, #-8] ldur w9, [x29, #-12] mul w8, w8, w9 stur w8, [x29, #-24] ldur w8, [x29, #-8] ; kill: def $x8 killed $w8 ldur w9, [x29, #-12] ; kill: def $x9 killed $w9 mul x8, x8, x9 stur x8, [x29, #-32] ldur x8, [x29, #-32] ; kill: def $w8 killed $w8 killed $x8 stur w8, [x29, #-36] ldur x8, [x29, #-32] lsr x8, x8, #32 ; kill: def $w8 killed $w8 killed $x8 stur w8, [x29, #-40] ldursw x8, [x29, #-8] ldursw x9, [x29, #-12] mul x8, x8, x9 stur x8, [x29, #-48] ldur x8, [x29, #-48] stur x8, [x29, #-56] ldur x8, [x29, #-56] ; kill: def $w8 killed $w8 killed $x8 stur w8, [x29, #-60] ldur x8, [x29, #-56] lsr x8, x8, #32 ; kill: def $w8 killed $w8 killed $x8 stur w8, [x29, #-64] ldur w8, [x29, #-8] ; implicit-def: $x16 mov x16, x8 ldur w8, [x29, #-12] ; implicit-def: $x15 mov x15, x8 ldur w8, [x29, #-20] ; implicit-def: $x14 mov x14, x8 ldur w8, [x29, #-24] ; implicit-def: $x13 mov x13, x8 ldur w8, [x29, #-36] ; implicit-def: $x12 mov x12, x8 ldur w8, [x29, #-40] ; implicit-def: $x11 mov x11, x8 ldur w8, [x29, #-60] ; implicit-def: $x10 mov x10, x8 ldur w9, [x29, #-64] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x9, [sp, #64] ; 8-byte Folded Spill str x16, [x9] str x15, [x9, #8] str x14, [x9, #16] str x13, [x9, #24] str x12, [x9, #32] str x11, [x9, #40] str x10, [x9, #48] str x8, [x9, #56] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldur w0, [x29, #-8] bl _sqrtS7Q24 stur w0, [x29, #-68] ldur w9, [x29, #-68] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf ldur w9, [x29, #-8] ldur w8, [x29, #-8] eor w8, w8, w9, lsl #13 stur w8, [x29, #-8] ldur w9, [x29, #-8] ldur w8, [x29, #-8] eor w8, w8, w9, lsr #17 stur w8, [x29, #-8] ldur w9, [x29, #-8] ldur w8, [x29, #-8] eor w8, w8, w9, lsl #5 stur w8, [x29, #-8] ldur w9, [x29, #-12] ldur w8, [x29, #-12] eor w8, w8, w9, lsl #13 stur w8, [x29, #-12] ldur w9, [x29, #-12] ldur w8, [x29, #-12] eor w8, w8, w9, lsr #17 stur w8, [x29, #-12] ldur w9, [x29, #-12] ldur w8, [x29, #-12] eor w8, w8, w9, lsl #5 stur w8, [x29, #-12] b LBB1_3 LBB1_3: ; in Loop: Header=BB1_1 Depth=1 ldur w8, [x29, #-16] add w8, w8, #1 stur w8, [x29, #-16] b LBB1_1 LBB1_4: mov w0, #0 ldp x29, x30, [sp, #144] ; 16-byte Folded Reload add sp, sp, #160 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%08x %08x %08x %08x %08x %08x %08x %08x" l_.str.1: ; @.str.1 .asciz " %08x " l_.str.2: ; @.str.2 .asciz "\r\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _sqrtS7Q24 ## -- Begin function sqrtS7Q24 .p2align 4, 0x90 _sqrtS7Q24: ## @sqrtS7Q24 .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 %eax, -20(%rbp) movl $1073741824, -16(%rbp) ## imm = 0x40000000 movl $0, -12(%rbp) movl $4, -24(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 cmpl $8, -16(%rbp) jbe LBB0_7 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl -12(%rbp), %eax addl -16(%rbp), %eax movl %eax, -8(%rbp) movl -20(%rbp), %eax cmpl -8(%rbp), %eax jb LBB0_4 ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movl -8(%rbp), %ecx movl -20(%rbp), %eax subl %ecx, %eax movl %eax, -20(%rbp) movl -16(%rbp), %eax shll $1, %eax addl -12(%rbp), %eax movl %eax, -12(%rbp) LBB0_4: ## in Loop: Header=BB0_1 Depth=1 movl -20(%rbp), %eax andl $-2147483648, %eax ## imm = 0x80000000 cmpl $0, %eax je LBB0_6 ## %bb.5: ## in Loop: Header=BB0_1 Depth=1 movl -20(%rbp), %eax shrl $1, %eax movl %eax, -20(%rbp) movl -12(%rbp), %eax shrl $1, %eax movl %eax, -12(%rbp) movl -16(%rbp), %eax shrl $1, %eax movl %eax, -16(%rbp) movl -24(%rbp), %eax addl $-1, %eax movl %eax, -24(%rbp) LBB0_6: ## in Loop: Header=BB0_1 Depth=1 movl -20(%rbp), %eax shll $1, %eax movl %eax, -20(%rbp) movl -16(%rbp), %eax shrl $1, %eax movl %eax, -16(%rbp) jmp LBB0_1 LBB0_7: movl -24(%rbp), %ecx movl -12(%rbp), %eax ## kill: def $cl killed $ecx shrl %cl, %eax movl %eax, -12(%rbp) movl -12(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $96, %rsp movl $0, -4(%rbp) movl $305419896, -8(%rbp) ## imm = 0x12345678 movl $-1737075662, -12(%rbp) ## imm = 0x98765432 movl $0, -16(%rbp) LBB1_1: ## =>This Inner Loop Header: Depth=1 cmpl $1000, -16(%rbp) ## imm = 0x3E8 jge LBB1_4 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 movl -8(%rbp), %eax imull -12(%rbp), %eax movl %eax, -20(%rbp) movl -8(%rbp), %eax andl $65535, %eax ## imm = 0xFFFF imull -12(%rbp), %eax movl %eax, -24(%rbp) movl -8(%rbp), %eax ## kill: def $rax killed $eax movl -12(%rbp), %ecx ## kill: def $rcx killed $ecx imulq %rcx, %rax movq %rax, -32(%rbp) movq -32(%rbp), %rax ## kill: def $eax killed $eax killed $rax movl %eax, -36(%rbp) movq -32(%rbp), %rax shrq $32, %rax ## kill: def $eax killed $eax killed $rax movl %eax, -40(%rbp) movslq -8(%rbp), %rax movslq -12(%rbp), %rcx imulq %rcx, %rax movq %rax, -48(%rbp) movq -48(%rbp), %rax movq %rax, -56(%rbp) movq -56(%rbp), %rax ## kill: def $eax killed $eax killed $rax movl %eax, -60(%rbp) movq -56(%rbp), %rax shrq $32, %rax ## kill: def $eax killed $eax killed $rax movl %eax, -64(%rbp) movl -8(%rbp), %esi movl -12(%rbp), %edx movl -20(%rbp), %ecx movl -24(%rbp), %r8d movl -36(%rbp), %r9d movl -40(%rbp), %r11d movl -60(%rbp), %r10d movl -64(%rbp), %eax leaq L_.str(%rip), %rdi movl %r11d, (%rsp) movl %r10d, 8(%rsp) movl %eax, 16(%rsp) movb $0, %al callq _printf movl -8(%rbp), %edi callq _sqrtS7Q24 movl %eax, -68(%rbp) movl -68(%rbp), %esi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf movl -8(%rbp), %eax shll $13, %eax xorl -8(%rbp), %eax movl %eax, -8(%rbp) movl -8(%rbp), %eax shrl $17, %eax xorl -8(%rbp), %eax movl %eax, -8(%rbp) movl -8(%rbp), %eax shll $5, %eax xorl -8(%rbp), %eax movl %eax, -8(%rbp) movl -12(%rbp), %eax shll $13, %eax xorl -12(%rbp), %eax movl %eax, -12(%rbp) movl -12(%rbp), %eax shrl $17, %eax xorl -12(%rbp), %eax movl %eax, -12(%rbp) movl -12(%rbp), %eax shll $5, %eax xorl -12(%rbp), %eax movl %eax, -12(%rbp) ## %bb.3: ## in Loop: Header=BB1_1 Depth=1 movl -16(%rbp), %eax addl $1, %eax movl %eax, -16(%rbp) jmp LBB1_1 LBB1_4: xorl %eax, %eax addq $96, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%08x %08x %08x %08x %08x %08x %08x %08x" L_.str.1: ## @.str.1 .asciz " %08x " L_.str.2: ## @.str.2 .asciz "\r\n" .subsections_via_symbols
the_stack_data/1217466.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _get_fruit_wrong ; -- Begin function get_fruit_wrong .p2align 2 _get_fruit_wrong: ; @get_fruit_wrong .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 adrp x8, l___const.get_fruit_wrong.fruit@PAGE add x8, x8, l___const.get_fruit_wrong.fruit@PAGEOFF ldr w9, [x8] add x0, sp, #8 str w9, [sp, #8] ldrh w8, [x8, #4] strh w8, [sp, #12] add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _get_fruit_right ; -- Begin function get_fruit_right .p2align 2 _get_fruit_right: ; @get_fruit_right .cfi_startproc ; %bb.0: adrp x0, _get_fruit_right.fruit@PAGE add x0, x0, _get_fruit_right.fruit@PAGEOFF ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #0 stur w8, [x29, #-8] ; 4-byte Folded Spill stur wzr, [x29, #-4] bl _get_fruit_wrong mov x8, sp str x0, [x8] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF str x0, [sp, #16] ; 8-byte Folded Spill bl _printf bl _get_fruit_right mov x8, x0 ldr x0, [sp, #16] ; 8-byte Folded Reload mov x9, sp str x8, [x9] bl _printf ldur w0, [x29, #-8] ; 4-byte Folded Reload ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l___const.get_fruit_wrong.fruit: ; @__const.get_fruit_wrong.fruit .asciz "apple" .section __DATA,__data _get_fruit_right.fruit: ; @get_fruit_right.fruit .asciz "apple" .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%s\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _get_fruit_wrong ## -- Begin function get_fruit_wrong .p2align 4, 0x90 _get_fruit_wrong: ## @get_fruit_wrong .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl L___const.get_fruit_wrong.fruit(%rip), %eax movl %eax, -6(%rbp) movw L___const.get_fruit_wrong.fruit+4(%rip), %ax movw %ax, -2(%rbp) leaq -6(%rbp), %rax popq %rbp retq .cfi_endproc ## -- End function .globl _get_fruit_right ## -- Begin function get_fruit_right .p2align 4, 0x90 _get_fruit_right: ## @get_fruit_right .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq _get_fruit_right.fruit(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) callq _get_fruit_wrong movq %rax, %rsi leaq L_.str(%rip), %rdi movb $0, %al callq _printf callq _get_fruit_right movq %rax, %rsi 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___const.get_fruit_wrong.fruit: ## @__const.get_fruit_wrong.fruit .asciz "apple" .section __DATA,__data _get_fruit_right.fruit: ## @get_fruit_right.fruit .asciz "apple" .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%s\n" .subsections_via_symbols
the_stack_data/57950858.c