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 _inv_mat ; -- Begin function inv_mat .p2align 2 _inv_mat: ; @inv_mat .cfi_startproc ; %bb.0: sub sp, sp, #112 .cfi_def_cfa_offset 112 stp x29, x30, [sp, #96] ; 16-byte Folded Spill add x29, sp, #96 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] stur w1, [x29, #-12] stur x2, [x29, #-24] ldur x0, [x29, #-8] ldur w1, [x29, #-12] bl _determinant stur d0, [x29, #-32] ldur w8, [x29, #-12] subs w9, w8, #1 ; implicit-def: $x8 mov x8, x9 sxtw x0, w8 mov x1, #8 bl _calloc stur x0, [x29, #-40] stur wzr, [x29, #-44] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-44] ldur w9, [x29, #-12] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_4 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldursw x0, [x29, #-12] mov x1, #8 bl _calloc ldur x8, [x29, #-40] ldursw x9, [x29, #-44] str x0, [x8, x9, lsl #3] b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-44] add w8, w8, #1 stur w8, [x29, #-44] b LBB0_1 LBB0_4: mov w8, #1 str w8, [sp, #48] str wzr, [sp, #44] b LBB0_5 LBB0_5: ; =>This Loop Header: Depth=1 ; Child Loop BB0_7 Depth 2 ; Child Loop BB0_9 Depth 3 ; Child Loop BB0_13 Depth 4 ldr w8, [sp, #44] ldur w9, [x29, #-12] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_30 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_5 Depth=1 str wzr, [sp, #40] b LBB0_7 LBB0_7: ; Parent Loop BB0_5 Depth=1 ; => This Loop Header: Depth=2 ; Child Loop BB0_9 Depth 3 ; Child Loop BB0_13 Depth 4 ldr w8, [sp, #40] ldur w9, [x29, #-12] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_28 b LBB0_8 LBB0_8: ; in Loop: Header=BB0_7 Depth=2 str wzr, [sp, #36] b LBB0_9 LBB0_9: ; Parent Loop BB0_5 Depth=1 ; Parent Loop BB0_7 Depth=2 ; => This Loop Header: Depth=3 ; Child Loop BB0_13 Depth 4 ldr w8, [sp, #36] ldur w9, [x29, #-12] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_26 b LBB0_10 LBB0_10: ; in Loop: Header=BB0_9 Depth=3 ldr w8, [sp, #36] ldr w9, [sp, #44] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_12 b LBB0_11 LBB0_11: ; in Loop: Header=BB0_9 Depth=3 b LBB0_25 LBB0_12: ; in Loop: Header=BB0_9 Depth=3 str wzr, [sp, #32] b LBB0_13 LBB0_13: ; Parent Loop BB0_5 Depth=1 ; Parent Loop BB0_7 Depth=2 ; Parent Loop BB0_9 Depth=3 ; => This Inner Loop Header: Depth=4 ldr w8, [sp, #32] ldur w9, [x29, #-12] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_24 b LBB0_14 LBB0_14: ; in Loop: Header=BB0_13 Depth=4 ldr w8, [sp, #32] ldr w9, [sp, #40] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_16 b LBB0_15 LBB0_15: ; in Loop: Header=BB0_13 Depth=4 b LBB0_23 LBB0_16: ; in Loop: Header=BB0_13 Depth=4 ldr w8, [sp, #36] ldr w9, [sp, #44] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_18 b LBB0_17 LBB0_17: ; in Loop: Header=BB0_13 Depth=4 ldr w8, [sp, #36] str w8, [sp, #12] ; 4-byte Folded Spill b LBB0_19 LBB0_18: ; in Loop: Header=BB0_13 Depth=4 ldr w8, [sp, #36] subs w8, w8, #1 str w8, [sp, #12] ; 4-byte Folded Spill b LBB0_19 LBB0_19: ; in Loop: Header=BB0_13 Depth=4 ldr w8, [sp, #12] ; 4-byte Folded Reload str w8, [sp, #28] ldr w8, [sp, #32] ldr w9, [sp, #40] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_21 b LBB0_20 LBB0_20: ; in Loop: Header=BB0_13 Depth=4 ldr w8, [sp, #32] str w8, [sp, #8] ; 4-byte Folded Spill b LBB0_22 LBB0_21: ; in Loop: Header=BB0_13 Depth=4 ldr w8, [sp, #32] subs w8, w8, #1 str w8, [sp, #8] ; 4-byte Folded Spill b LBB0_22 LBB0_22: ; in Loop: Header=BB0_13 Depth=4 ldr w8, [sp, #8] ; 4-byte Folded Reload str w8, [sp, #24] ldur x8, [x29, #-8] ldrsw x9, [sp, #36] ldr x8, [x8, x9, lsl #3] ldrsw x9, [sp, #32] ldr d0, [x8, x9, lsl #3] ldur x8, [x29, #-40] ldrsw x9, [sp, #28] ldr x8, [x8, x9, lsl #3] ldrsw x9, [sp, #24] str d0, [x8, x9, lsl #3] b LBB0_23 LBB0_23: ; in Loop: Header=BB0_13 Depth=4 ldr w8, [sp, #32] add w8, w8, #1 str w8, [sp, #32] b LBB0_13 LBB0_24: ; in Loop: Header=BB0_9 Depth=3 b LBB0_25 LBB0_25: ; in Loop: Header=BB0_9 Depth=3 ldr w8, [sp, #36] add w8, w8, #1 str w8, [sp, #36] b LBB0_9 LBB0_26: ; in Loop: Header=BB0_7 Depth=2 ldur x0, [x29, #-40] ldur w8, [x29, #-12] subs w1, w8, #1 bl _determinant str d0, [sp, #16] ldr s1, [sp, #48] ; implicit-def: $d0 fmov s0, s1 sshll.2d v0, v0, #0 ; kill: def $d0 killed $d0 killed $q0 scvtf d0, d0 ldr d1, [sp, #16] fmul d0, d0, d1 ldur d1, [x29, #-32] fdiv d0, d0, d1 ldur x8, [x29, #-24] ldrsw x9, [sp, #40] ldr x8, [x8, x9, lsl #3] ldrsw x9, [sp, #44] str d0, [x8, x9, lsl #3] ldr w9, [sp, #48] mov w8, #0 subs w8, w8, w9 str w8, [sp, #48] b LBB0_27 LBB0_27: ; in Loop: Header=BB0_7 Depth=2 ldr w8, [sp, #40] add w8, w8, #1 str w8, [sp, #40] b LBB0_7 LBB0_28: ; in Loop: Header=BB0_5 Depth=1 b LBB0_29 LBB0_29: ; in Loop: Header=BB0_5 Depth=1 ldr w8, [sp, #44] add w8, w8, #1 str w8, [sp, #44] b LBB0_5 LBB0_30: ldp x29, x30, [sp, #96] ; 16-byte Folded Reload add sp, sp, #112 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _inv_mat ## -- Begin function inv_mat .p2align 4, 0x90 _inv_mat: ## @inv_mat .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 -8(%rbp), %rdi movl -12(%rbp), %esi callq _determinant movsd %xmm0, -32(%rbp) movl -12(%rbp), %eax subl $1, %eax movslq %eax, %rdi movl $8, %esi callq _calloc movq %rax, -40(%rbp) movl $0, -44(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movl -44(%rbp), %eax cmpl -12(%rbp), %eax jge LBB0_4 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movslq -12(%rbp), %rdi movl $8, %esi callq _calloc movq %rax, %rdx movq -40(%rbp), %rax movslq -44(%rbp), %rcx movq %rdx, (%rax,%rcx,8) ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movl -44(%rbp), %eax addl $1, %eax movl %eax, -44(%rbp) jmp LBB0_1 LBB0_4: movl $1, -48(%rbp) movl $0, -52(%rbp) LBB0_5: ## =>This Loop Header: Depth=1 ## Child Loop BB0_7 Depth 2 ## Child Loop BB0_9 Depth 3 ## Child Loop BB0_13 Depth 4 movl -52(%rbp), %eax cmpl -12(%rbp), %eax jge LBB0_30 ## %bb.6: ## in Loop: Header=BB0_5 Depth=1 movl $0, -56(%rbp) LBB0_7: ## Parent Loop BB0_5 Depth=1 ## => This Loop Header: Depth=2 ## Child Loop BB0_9 Depth 3 ## Child Loop BB0_13 Depth 4 movl -56(%rbp), %eax cmpl -12(%rbp), %eax jge LBB0_28 ## %bb.8: ## in Loop: Header=BB0_7 Depth=2 movl $0, -60(%rbp) LBB0_9: ## Parent Loop BB0_5 Depth=1 ## Parent Loop BB0_7 Depth=2 ## => This Loop Header: Depth=3 ## Child Loop BB0_13 Depth 4 movl -60(%rbp), %eax cmpl -12(%rbp), %eax jge LBB0_26 ## %bb.10: ## in Loop: Header=BB0_9 Depth=3 movl -60(%rbp), %eax cmpl -52(%rbp), %eax jne LBB0_12 ## %bb.11: ## in Loop: Header=BB0_9 Depth=3 jmp LBB0_25 LBB0_12: ## in Loop: Header=BB0_9 Depth=3 movl $0, -64(%rbp) LBB0_13: ## Parent Loop BB0_5 Depth=1 ## Parent Loop BB0_7 Depth=2 ## Parent Loop BB0_9 Depth=3 ## => This Inner Loop Header: Depth=4 movl -64(%rbp), %eax cmpl -12(%rbp), %eax jge LBB0_24 ## %bb.14: ## in Loop: Header=BB0_13 Depth=4 movl -64(%rbp), %eax cmpl -56(%rbp), %eax jne LBB0_16 ## %bb.15: ## in Loop: Header=BB0_13 Depth=4 jmp LBB0_23 LBB0_16: ## in Loop: Header=BB0_13 Depth=4 movl -60(%rbp), %eax cmpl -52(%rbp), %eax jge LBB0_18 ## %bb.17: ## in Loop: Header=BB0_13 Depth=4 movl -60(%rbp), %eax movl %eax, -84(%rbp) ## 4-byte Spill jmp LBB0_19 LBB0_18: ## in Loop: Header=BB0_13 Depth=4 movl -60(%rbp), %eax subl $1, %eax movl %eax, -84(%rbp) ## 4-byte Spill LBB0_19: ## in Loop: Header=BB0_13 Depth=4 movl -84(%rbp), %eax ## 4-byte Reload movl %eax, -68(%rbp) movl -64(%rbp), %eax cmpl -56(%rbp), %eax jge LBB0_21 ## %bb.20: ## in Loop: Header=BB0_13 Depth=4 movl -64(%rbp), %eax movl %eax, -88(%rbp) ## 4-byte Spill jmp LBB0_22 LBB0_21: ## in Loop: Header=BB0_13 Depth=4 movl -64(%rbp), %eax subl $1, %eax movl %eax, -88(%rbp) ## 4-byte Spill LBB0_22: ## in Loop: Header=BB0_13 Depth=4 movl -88(%rbp), %eax ## 4-byte Reload movl %eax, -72(%rbp) movq -8(%rbp), %rax movslq -60(%rbp), %rcx movq (%rax,%rcx,8), %rax movslq -64(%rbp), %rcx movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero movq -40(%rbp), %rax movslq -68(%rbp), %rcx movq (%rax,%rcx,8), %rax movslq -72(%rbp), %rcx movsd %xmm0, (%rax,%rcx,8) LBB0_23: ## in Loop: Header=BB0_13 Depth=4 movl -64(%rbp), %eax addl $1, %eax movl %eax, -64(%rbp) jmp LBB0_13 LBB0_24: ## in Loop: Header=BB0_9 Depth=3 jmp LBB0_25 LBB0_25: ## in Loop: Header=BB0_9 Depth=3 movl -60(%rbp), %eax addl $1, %eax movl %eax, -60(%rbp) jmp LBB0_9 LBB0_26: ## in Loop: Header=BB0_7 Depth=2 movq -40(%rbp), %rdi movl -12(%rbp), %esi subl $1, %esi callq _determinant movsd %xmm0, -80(%rbp) cvtsi2sdl -48(%rbp), %xmm0 mulsd -80(%rbp), %xmm0 divsd -32(%rbp), %xmm0 movq -24(%rbp), %rax movslq -56(%rbp), %rcx movq (%rax,%rcx,8), %rax movslq -52(%rbp), %rcx movsd %xmm0, (%rax,%rcx,8) imull $-1, -48(%rbp), %eax movl %eax, -48(%rbp) ## %bb.27: ## in Loop: Header=BB0_7 Depth=2 movl -56(%rbp), %eax addl $1, %eax movl %eax, -56(%rbp) jmp LBB0_7 LBB0_28: ## in Loop: Header=BB0_5 Depth=1 jmp LBB0_29 LBB0_29: ## in Loop: Header=BB0_5 Depth=1 movl -52(%rbp), %eax addl $1, %eax movl %eax, -52(%rbp) jmp LBB0_5 LBB0_30: addq $96, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/159515217.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov x9, sp sub x8, x29, #4 str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf stur wzr, [x29, #-8] b LBB0_1 LBB0_1: ; =>This Loop Header: Depth=1 ; Child Loop BB0_3 Depth 2 ldur w8, [x29, #-8] ldur w9, [x29, #-4] subs w9, w9, #1 subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_8 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 mov w8, #65 stur w8, [x29, #-12] b LBB0_3 LBB0_3: ; Parent Loop BB0_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldur w8, [x29, #-12] ldur w9, [x29, #-8] add w9, w9, #65 subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_6 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_3 Depth=2 ldur w9, [x29, #-12] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf b LBB0_5 LBB0_5: ; in Loop: Header=BB0_3 Depth=2 ldur w8, [x29, #-12] add w8, w8, #1 stur w8, [x29, #-12] b LBB0_3 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 ldur w8, [x29, #-8] add w8, w8, #1 stur w8, [x29, #-8] b LBB0_1 LBB0_8: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "\nEnter the number of rows : " l_.str.1: ; @.str.1 .asciz "%d" l_.str.2: ; @.str.2 .asciz "%c" 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 $16, %rsp leaq L_.str(%rip), %rdi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi leaq -4(%rbp), %rsi movb $0, %al callq _scanf movl $0, -8(%rbp) LBB0_1: ## =>This Loop Header: Depth=1 ## Child Loop BB0_3 Depth 2 movl -8(%rbp), %eax movl -4(%rbp), %ecx subl $1, %ecx cmpl %ecx, %eax jg LBB0_8 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl $65, -12(%rbp) LBB0_3: ## Parent Loop BB0_1 Depth=1 ## => This Inner Loop Header: Depth=2 movl -12(%rbp), %eax movl -8(%rbp), %ecx addl $65, %ecx cmpl %ecx, %eax jg LBB0_6 ## %bb.4: ## in Loop: Header=BB0_3 Depth=2 movl -12(%rbp), %esi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf ## %bb.5: ## in Loop: Header=BB0_3 Depth=2 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB0_3 LBB0_6: ## in Loop: Header=BB0_1 Depth=1 leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf ## %bb.7: ## in Loop: Header=BB0_1 Depth=1 movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) jmp LBB0_1 LBB0_8: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "\nEnter the number of rows : " L_.str.1: ## @.str.1 .asciz "%d" L_.str.2: ## @.str.2 .asciz "%c" L_.str.3: ## @.str.3 .asciz "\n" .subsections_via_symbols
the_stack_data/15761452.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, #240 .cfi_def_cfa_offset 240 stp x29, x30, [sp, #224] ; 16-byte Folded Spill add x29, sp, #224 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] str x0, [sp, #16] ldr x0, [sp, #16] adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF bl _strstr str x0, [sp, #8] add x0, sp, #24 bl _setjmp subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: ldr x0, [sp, #8] adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF mov x2, #-1 bl ___strcpy_chk b LBB0_3 LBB0_2: ldr x0, [sp, #16] bl _free add x0, sp, #24 mov w1, #1 bl _longjmp LBB0_3: 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_5 b LBB0_4 LBB0_4: bl ___stack_chk_fail LBB0_5: ldp x29, x30, [sp, #224] ; 16-byte Folded Reload add sp, sp, #240 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #0 str w8, [sp, #12] ; 4-byte Folded Spill stur wzr, [x29, #-4] mov x0, #100 bl _malloc str x0, [sp, #16] ldr x0, [sp, #16] adrp x1, l_.str.2@PAGE add x1, x1, l_.str.2@PAGEOFF mov x2, #-1 bl ___strcpy_chk ldr x0, [sp, #16] bl _f ldr x8, [sp, #16] mov x9, sp str x8, [x9] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf ldr w0, [sp, #12] ; 4-byte Folded Reload ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "string" l_.str.1: ; @.str.1 .asciz "freed string" l_.str.2: ; @.str.2 .asciz "a string" l_.str.3: ; @.str.3 .asciz "%s\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 $176, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movq %rdi, -168(%rbp) movq -168(%rbp), %rdi leaq L_.str(%rip), %rsi callq _strstr movq %rax, -176(%rbp) leaq -160(%rbp), %rdi callq _setjmp cmpl $0, %eax je LBB0_2 ## %bb.1: movq -176(%rbp), %rdi leaq L_.str.1(%rip), %rsi movq $-1, %rdx callq ___strcpy_chk jmp LBB0_3 LBB0_2: movq -168(%rbp), %rdi callq _free leaq -160(%rbp), %rdi movl $1, %esi callq _longjmp LBB0_3: movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_5 ## %bb.4: addq $176, %rsp popq %rbp retq LBB0_5: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) movl $100, %edi callq _malloc movq %rax, -16(%rbp) movq -16(%rbp), %rdi leaq L_.str.2(%rip), %rsi movq $-1, %rdx callq ___strcpy_chk movq -16(%rbp), %rdi callq _f movq -16(%rbp), %rsi leaq L_.str.3(%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 "string" L_.str.1: ## @.str.1 .asciz "freed string" L_.str.2: ## @.str.2 .asciz "a string" L_.str.3: ## @.str.3 .asciz "%s\n" .subsections_via_symbols
the_stack_data/140766584.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/234518877.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _merge ; -- Begin function merge .p2align 2 _merge: ; @merge .cfi_startproc ; %bb.0: sub sp, sp, #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 x2, [x29, #-24] stur w3, [x29, #-28] ldur w8, [x29, #-12] ldur w9, [x29, #-28] add w9, w8, w9 ; implicit-def: $x8 mov x8, x9 sxtw x8, w8 lsl x0, x8, #2 bl _malloc str x0, [sp, #24] str wzr, [sp, #20] str wzr, [sp, #16] str wzr, [sp, #12] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #16] ldur w9, [x29, #-12] subs w8, w8, w9 cset w8, ge 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, #12] ldur w9, [x29, #-28] subs w8, w8, w9 cset w8, lt str w8, [sp, #8] ; 4-byte Folded Spill b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #8] ; 4-byte Folded Reload tbz w8, #0, LBB0_8 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_1 Depth=1 ldur x8, [x29, #-8] ldrsw x9, [sp, #16] ldr w8, [x8, x9, lsl #2] ldur x9, [x29, #-24] ldrsw x10, [sp, #12] ldr w9, [x9, x10, lsl #2] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_1 Depth=1 ldur x8, [x29, #-8] ldrsw x9, [sp, #16] mov x10, x9 add w10, w10, #1 str w10, [sp, #16] ldr w8, [x8, x9, lsl #2] str w8, [sp, #4] ; 4-byte Folded Spill b LBB0_7 LBB0_6: ; in Loop: Header=BB0_1 Depth=1 ldur x8, [x29, #-24] ldrsw x9, [sp, #12] mov x10, x9 add w10, w10, #1 str w10, [sp, #12] ldr w8, [x8, x9, lsl #2] str w8, [sp, #4] ; 4-byte Folded Spill b LBB0_7 LBB0_7: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #4] ; 4-byte Folded Reload ldr x9, [sp, #24] ldrsw x10, [sp, #20] mov x11, x10 add w11, w11, #1 str w11, [sp, #20] str w8, [x9, x10, lsl #2] b LBB0_1 LBB0_8: ldr w8, [sp, #16] ldur w9, [x29, #-12] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_10 b LBB0_9 LBB0_9: ldr x8, [sp, #24] ldrsw x9, [sp, #20] add x0, x8, x9, lsl #2 ldur x8, [x29, #-24] ldrsw x9, [sp, #12] add x1, x8, x9, lsl #2 ldur w8, [x29, #-28] ldr w9, [sp, #12] subs w9, w8, w9 ; implicit-def: $x8 mov x8, x9 sxtw x8, w8 lsl x2, x8, #2 mov x3, #-1 bl ___memcpy_chk b LBB0_13 LBB0_10: ldr w8, [sp, #12] ldur w9, [x29, #-28] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_12 b LBB0_11 LBB0_11: ldr x8, [sp, #24] ldrsw x9, [sp, #20] add x0, x8, x9, lsl #2 ldur x8, [x29, #-8] ldrsw x9, [sp, #16] add x1, x8, x9, lsl #2 ldur w8, [x29, #-12] ldr w9, [sp, #16] subs w9, w8, w9 ; implicit-def: $x8 mov x8, x9 sxtw x8, w8 lsl x2, x8, #2 mov x3, #-1 bl ___memcpy_chk b LBB0_12 LBB0_12: b LBB0_13 LBB0_13: ldr x0, [sp, #24] ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .globl _mergeSort ; -- Begin function mergeSort .p2align 2 _mergeSort: ; @mergeSort .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] stur w1, [x29, #-12] ldur w8, [x29, #-12] subs w8, w8, #1 cset w8, le tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: ldur w8, [x29, #-12] mov w9, #2 sdiv w8, w8, w9 str w8, [sp, #16] ldur x0, [x29, #-8] ldr w1, [sp, #16] bl _mergeSort ldur x8, [x29, #-8] ldrsw x9, [sp, #16] add x0, x8, x9, lsl #2 ldur w8, [x29, #-12] ldr w9, [sp, #16] subs w1, w8, w9 bl _mergeSort ldur x0, [x29, #-8] ldr w1, [sp, #16] ldur x8, [x29, #-8] ldrsw x9, [sp, #16] add x2, x8, x9, lsl #2 ldur w8, [x29, #-12] ldr w9, [sp, #16] subs w3, w8, w9 bl _merge str x0, [sp, #8] ldur x0, [x29, #-8] ldr x1, [sp, #8] ldursw x8, [x29, #-12] lsl x2, x8, #2 mov x3, #-1 bl ___memcpy_chk ldr x0, [sp, #8] bl _free b LBB1_2 LBB1_2: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _swap ; -- Begin function swap .p2align 2 _swap: ; @swap .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, #24] str x1, [sp, #16] ldr x8, [sp, #24] ldr w8, [x8] str w8, [sp, #12] ldr x8, [sp, #16] ldr w8, [x8] ldr x9, [sp, #24] str w8, [x9] ldr w8, [sp, #12] ldr x9, [sp, #16] str w8, [x9] add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _nextPermutation ; -- Begin function nextPermutation .p2align 2 _nextPermutation: ; @nextPermutation .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] stur w1, [x29, #-12] ldur w8, [x29, #-12] subs w8, w8, #2 str w8, [sp, #16] b LBB3_1 LBB3_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #16] subs w8, w8, #0 cset w8, lt mov w9, #0 str w9, [sp, #4] ; 4-byte Folded Spill tbnz w8, #0, LBB3_3 b LBB3_2 LBB3_2: ; in Loop: Header=BB3_1 Depth=1 ldur x8, [x29, #-8] ldrsw x9, [sp, #16] ldr w8, [x8, x9, lsl #2] ldur x9, [x29, #-8] ldr w10, [sp, #16] add w10, w10, #1 ldr w9, [x9, w10, sxtw #2] subs w8, w8, w9 subs w8, w8, #0 cset w8, ge str w8, [sp, #4] ; 4-byte Folded Spill b LBB3_3 LBB3_3: ; in Loop: Header=BB3_1 Depth=1 ldr w8, [sp, #4] ; 4-byte Folded Reload tbz w8, #0, LBB3_5 b LBB3_4 LBB3_4: ; in Loop: Header=BB3_1 Depth=1 ldr w8, [sp, #16] subs w8, w8, #1 str w8, [sp, #16] b LBB3_1 LBB3_5: ldr w8, [sp, #16] adds w8, w8, #1 cset w8, ne tbnz w8, #0, LBB3_7 b LBB3_6 LBB3_6: ldur x0, [x29, #-8] ldur w1, [x29, #-12] bl _mergeSort b LBB3_14 LBB3_7: ldur w8, [x29, #-12] str w8, [sp, #12] ldr w8, [sp, #16] add w8, w8, #1 str w8, [sp, #8] b LBB3_8 LBB3_8: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #8] ldur w9, [x29, #-12] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB3_13 b LBB3_9 LBB3_9: ; in Loop: Header=BB3_8 Depth=1 ldur x8, [x29, #-8] ldrsw x9, [sp, #8] ldr w8, [x8, x9, lsl #2] ldur x9, [x29, #-8] ldrsw x10, [sp, #16] ldr w9, [x9, x10, lsl #2] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB3_11 b LBB3_10 LBB3_10: ldr w8, [sp, #8] str w8, [sp, #12] b LBB3_13 LBB3_11: ; in Loop: Header=BB3_8 Depth=1 b LBB3_12 LBB3_12: ; in Loop: Header=BB3_8 Depth=1 ldr w8, [sp, #8] add w8, w8, #1 str w8, [sp, #8] b LBB3_8 LBB3_13: ldr w8, [sp, #12] subs w8, w8, #1 str w8, [sp, #12] ldur x8, [x29, #-8] ldrsw x9, [sp, #16] add x0, x8, x9, lsl #2 ldur x8, [x29, #-8] ldrsw x9, [sp, #12] add x1, x8, x9, lsl #2 bl _swap ldur x8, [x29, #-8] ldrsw x9, [sp, #16] add x8, x8, x9, lsl #2 add x0, x8, #4 ldur w8, [x29, #-12] ldr w9, [sp, #16] subs w8, w8, w9 subs w1, w8, #1 bl _mergeSort b LBB3_14 LBB3_14: 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) movq %rdx, -24(%rbp) movl %ecx, -28(%rbp) movl -12(%rbp), %eax addl -28(%rbp), %eax movslq %eax, %rdi shlq $2, %rdi callq _malloc movq %rax, -40(%rbp) movl $0, -44(%rbp) movl $0, -48(%rbp) movl $0, -52(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movl -48(%rbp), %ecx xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl -12(%rbp), %ecx movb %al, -53(%rbp) ## 1-byte Spill jge LBB0_3 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl -52(%rbp), %eax cmpl -28(%rbp), %eax setl %al movb %al, -53(%rbp) ## 1-byte Spill LBB0_3: ## in Loop: Header=BB0_1 Depth=1 movb -53(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB0_4 jmp LBB0_8 LBB0_4: ## in Loop: Header=BB0_1 Depth=1 movq -8(%rbp), %rax movslq -48(%rbp), %rcx movl (%rax,%rcx,4), %eax movq -24(%rbp), %rcx movslq -52(%rbp), %rdx cmpl (%rcx,%rdx,4), %eax jge LBB0_6 ## %bb.5: ## in Loop: Header=BB0_1 Depth=1 movq -8(%rbp), %rax movl -48(%rbp), %ecx movl %ecx, %edx addl $1, %edx movl %edx, -48(%rbp) movslq %ecx, %rcx movl (%rax,%rcx,4), %eax movl %eax, -60(%rbp) ## 4-byte Spill jmp LBB0_7 LBB0_6: ## in Loop: Header=BB0_1 Depth=1 movq -24(%rbp), %rax movl -52(%rbp), %ecx movl %ecx, %edx addl $1, %edx movl %edx, -52(%rbp) movslq %ecx, %rcx movl (%rax,%rcx,4), %eax movl %eax, -60(%rbp) ## 4-byte Spill LBB0_7: ## in Loop: Header=BB0_1 Depth=1 movl -60(%rbp), %edx ## 4-byte Reload movq -40(%rbp), %rax movl -44(%rbp), %ecx movl %ecx, %esi addl $1, %esi movl %esi, -44(%rbp) movslq %ecx, %rcx movl %edx, (%rax,%rcx,4) jmp LBB0_1 LBB0_8: movl -48(%rbp), %eax cmpl -12(%rbp), %eax jne LBB0_10 ## %bb.9: movq -40(%rbp), %rdi movslq -44(%rbp), %rax shlq $2, %rax addq %rax, %rdi movq -24(%rbp), %rsi movslq -52(%rbp), %rax shlq $2, %rax addq %rax, %rsi movl -28(%rbp), %eax subl -52(%rbp), %eax movslq %eax, %rdx shlq $2, %rdx movq $-1, %rcx callq ___memcpy_chk jmp LBB0_13 LBB0_10: movl -52(%rbp), %eax cmpl -28(%rbp), %eax jne LBB0_12 ## %bb.11: movq -40(%rbp), %rdi movslq -44(%rbp), %rax shlq $2, %rax addq %rax, %rdi movq -8(%rbp), %rsi movslq -48(%rbp), %rax shlq $2, %rax addq %rax, %rsi movl -12(%rbp), %eax subl -48(%rbp), %eax movslq %eax, %rdx shlq $2, %rdx movq $-1, %rcx callq ___memcpy_chk LBB0_12: jmp LBB0_13 LBB0_13: movq -40(%rbp), %rax addq $64, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _mergeSort ## -- Begin function mergeSort .p2align 4, 0x90 _mergeSort: ## @mergeSort .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) cmpl $1, -12(%rbp) jle LBB1_2 ## %bb.1: movl -12(%rbp), %eax movl $2, %ecx cltd idivl %ecx movl %eax, -16(%rbp) movq -8(%rbp), %rdi movl -16(%rbp), %esi callq _mergeSort movq -8(%rbp), %rdi movslq -16(%rbp), %rax shlq $2, %rax addq %rax, %rdi movl -12(%rbp), %esi subl -16(%rbp), %esi callq _mergeSort movq -8(%rbp), %rdi movl -16(%rbp), %esi movq -8(%rbp), %rdx movslq -16(%rbp), %rax shlq $2, %rax addq %rax, %rdx movl -12(%rbp), %ecx subl -16(%rbp), %ecx callq _merge movq %rax, -24(%rbp) movq -8(%rbp), %rdi movq -24(%rbp), %rsi movslq -12(%rbp), %rdx shlq $2, %rdx movq $-1, %rcx callq ___memcpy_chk movq -24(%rbp), %rdi callq _free LBB1_2: addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _swap ## -- Begin function swap .p2align 4, 0x90 _swap: ## @swap .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) movq -8(%rbp), %rax movl (%rax), %eax movl %eax, -20(%rbp) movq -16(%rbp), %rax movl (%rax), %ecx movq -8(%rbp), %rax movl %ecx, (%rax) movl -20(%rbp), %ecx movq -16(%rbp), %rax movl %ecx, (%rax) popq %rbp retq .cfi_endproc ## -- End function .globl _nextPermutation ## -- Begin function nextPermutation .p2align 4, 0x90 _nextPermutation: ## @nextPermutation .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 -12(%rbp), %eax subl $2, %eax movl %eax, -16(%rbp) LBB3_1: ## =>This Inner Loop Header: Depth=1 xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $0, -16(%rbp) movb %al, -25(%rbp) ## 1-byte Spill jl LBB3_3 ## %bb.2: ## in Loop: Header=BB3_1 Depth=1 movq -8(%rbp), %rax movslq -16(%rbp), %rcx movl (%rax,%rcx,4), %eax movq -8(%rbp), %rcx movl -16(%rbp), %edx addl $1, %edx movslq %edx, %rdx subl (%rcx,%rdx,4), %eax cmpl $0, %eax setge %al movb %al, -25(%rbp) ## 1-byte Spill LBB3_3: ## in Loop: Header=BB3_1 Depth=1 movb -25(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB3_4 jmp LBB3_5 LBB3_4: ## in Loop: Header=BB3_1 Depth=1 movl -16(%rbp), %eax addl $-1, %eax movl %eax, -16(%rbp) jmp LBB3_1 LBB3_5: cmpl $-1, -16(%rbp) jne LBB3_7 ## %bb.6: movq -8(%rbp), %rdi movl -12(%rbp), %esi callq _mergeSort jmp LBB3_14 LBB3_7: movl -12(%rbp), %eax movl %eax, -20(%rbp) movl -16(%rbp), %eax addl $1, %eax movl %eax, -24(%rbp) LBB3_8: ## =>This Inner Loop Header: Depth=1 movl -24(%rbp), %eax cmpl -12(%rbp), %eax jge LBB3_13 ## %bb.9: ## in Loop: Header=BB3_8 Depth=1 movq -8(%rbp), %rax movslq -24(%rbp), %rcx movl (%rax,%rcx,4), %eax movq -8(%rbp), %rcx movslq -16(%rbp), %rdx cmpl (%rcx,%rdx,4), %eax jg LBB3_11 ## %bb.10: movl -24(%rbp), %eax movl %eax, -20(%rbp) jmp LBB3_13 LBB3_11: ## in Loop: Header=BB3_8 Depth=1 jmp LBB3_12 LBB3_12: ## in Loop: Header=BB3_8 Depth=1 movl -24(%rbp), %eax addl $1, %eax movl %eax, -24(%rbp) jmp LBB3_8 LBB3_13: movl -20(%rbp), %eax addl $-1, %eax movl %eax, -20(%rbp) movq -8(%rbp), %rdi movslq -16(%rbp), %rax shlq $2, %rax addq %rax, %rdi movq -8(%rbp), %rsi movslq -20(%rbp), %rax shlq $2, %rax addq %rax, %rsi callq _swap movq -8(%rbp), %rdi movslq -16(%rbp), %rax shlq $2, %rax addq %rax, %rdi addq $4, %rdi movl -12(%rbp), %esi subl -16(%rbp), %esi subl $1, %esi callq _mergeSort LBB3_14: addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/89201127.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _addValue ; -- Begin function addValue .p2align 2 _addValue: ; @addValue .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] str d0, [sp] ldr x9, [sp, #8] ldr w8, [x9] add w8, w8, #1 str w8, [x9] ldr d1, [sp] ldr x8, [sp, #8] ldr d0, [x8, #8] fadd d0, d0, d1 str d0, [x8, #8] ldr x8, [sp, #8] ldr d0, [x8, #8] ldr x8, [sp, #8] ldr s2, [x8] ; implicit-def: $d1 fmov s1, s2 sshll.2d v1, v1, #0 ; kill: def $d1 killed $d1 killed $q1 scvtf d1, d1 fdiv d0, d0, d1 ldr x8, [sp, #8] str d0, [x8, #16] ldr x8, [sp, #8] ldr d0, [x8, #16] ldr d1, [sp] fsub d0, d0, d1 ldr x8, [sp, #8] ldr d1, [x8, #16] ldr d2, [sp] fsub d1, d1, d2 ldr x8, [sp, #8] ldr d2, [x8, #24] fmadd d0, d0, d1, d2 str d0, [x8, #24] ldr x8, [sp, #8] ldr d0, [x8, #24] ldr x8, [sp, #8] ldr s2, [x8] ; implicit-def: $d1 fmov s1, s2 sshll.2d v1, v1, #0 ; kill: def $d1 killed $d1 killed $q1 scvtf d1, d1 fdiv d0, d0, d1 fsqrt d0, d0 ldr x8, [sp, #8] str d0, [x8, #32] add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _initStats ; -- Begin function initStats .p2align 2 _initStats: ; @initStats .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] ldr x8, [sp, #8] str wzr, [x8] ldr x8, [sp, #8] movi d0, #0000000000000000 str d0, [x8, #8] add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #384 .cfi_def_cfa_offset 384 stp x28, x27, [sp, #352] ; 16-byte Folded Spill stp x29, x30, [sp, #368] ; 16-byte Folded Spill add x29, sp, #368 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w27, -24 .cfi_offset w28, -32 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] str wzr, [sp, #84] str w0, [sp, #80] str x1, [sp, #72] str wzr, [sp, #68] add x0, sp, #24 bl _initStats adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf b LBB2_1 LBB2_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #68] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB2_15 b LBB2_2 LBB2_2: ; in Loop: Header=BB2_1 Depth=1 ldr w9, [sp, #24] ; 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 x8, ___stdinp@GOTPAGE ldr x8, [x8, ___stdinp@GOTPAGEOFF] ldr x2, [x8] add x0, sp, #88 mov w1, #256 bl _fgets ldrsb w8, [sp, #88] subs w8, w8, #113 cset w8, eq tbnz w8, #0, LBB2_4 b LBB2_3 LBB2_3: ; in Loop: Header=BB2_1 Depth=1 ldrsb w8, [sp, #88] subs w8, w8, #81 cset w8, ne tbnz w8, #0, LBB2_5 b LBB2_4 LBB2_4: ; in Loop: Header=BB2_1 Depth=1 mov w8, #1 str w8, [sp, #68] b LBB2_14 LBB2_5: ; in Loop: Header=BB2_1 Depth=1 ldrsb w8, [sp, #88] subs w8, w8, #114 cset w8, eq tbnz w8, #0, LBB2_7 b LBB2_6 LBB2_6: ; in Loop: Header=BB2_1 Depth=1 ldrsb w8, [sp, #88] subs w8, w8, #82 cset w8, ne tbnz w8, #0, LBB2_8 b LBB2_7 LBB2_7: ; in Loop: Header=BB2_1 Depth=1 add x0, sp, #24 bl _initStats b LBB2_13 LBB2_8: ; in Loop: Header=BB2_1 Depth=1 ldrsb w8, [sp, #88] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB2_10 b LBB2_9 LBB2_9: ; in Loop: Header=BB2_1 Depth=1 ldrsb w8, [sp, #88] subs w8, w8, #10 cset w8, ne tbnz w8, #0, LBB2_11 b LBB2_10 LBB2_10: ; in Loop: Header=BB2_1 Depth=1 b LBB2_12 LBB2_11: ; in Loop: Header=BB2_1 Depth=1 add x0, sp, #88 bl _atof add x0, sp, #24 bl _addValue adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF str x0, [sp, #16] ; 8-byte Folded Spill bl _printf ldr d0, [sp, #32] mov x8, sp str d0, [x8] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf ldr d0, [sp, #40] mov x8, sp str d0, [x8] adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf ldr d0, [sp, #56] mov x8, sp str d0, [x8] adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf ldr x0, [sp, #16] ; 8-byte Folded Reload bl _printf b LBB2_12 LBB2_12: ; in Loop: Header=BB2_1 Depth=1 b LBB2_13 LBB2_13: ; in Loop: Header=BB2_1 Depth=1 b LBB2_14 LBB2_14: ; in Loop: Header=BB2_1 Depth=1 b LBB2_1 LBB2_15: ldur x9, [x29, #-24] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB2_17 b LBB2_16 LBB2_16: bl ___stack_chk_fail LBB2_17: mov w0, #0 ldp x29, x30, [sp, #368] ; 16-byte Folded Reload ldp x28, x27, [sp, #352] ; 16-byte Folded Reload add sp, sp, #384 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Type 'r' to reset or 'q' to quit.\n\n" l_.str.1: ; @.str.1 .asciz "%3d> " l_.str.2: ; @.str.2 .asciz "\n" l_.str.3: ; @.str.3 .asciz "sum = %lg\n" l_.str.4: ; @.str.4 .asciz "avg = %lg\n" l_.str.5: ; @.str.5 .asciz "stddev = %lg\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _addValue ## -- Begin function addValue .p2align 4, 0x90 _addValue: ## @addValue .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) movsd %xmm0, -16(%rbp) movq -8(%rbp), %rax movl (%rax), %ecx addl $1, %ecx movl %ecx, (%rax) movsd -16(%rbp), %xmm0 ## xmm0 = mem[0],zero movq -8(%rbp), %rax addsd 8(%rax), %xmm0 movsd %xmm0, 8(%rax) movq -8(%rbp), %rax movsd 8(%rax), %xmm0 ## xmm0 = mem[0],zero movq -8(%rbp), %rax cvtsi2sdl (%rax), %xmm1 divsd %xmm1, %xmm0 movq -8(%rbp), %rax movsd %xmm0, 16(%rax) movq -8(%rbp), %rax movsd 16(%rax), %xmm0 ## xmm0 = mem[0],zero subsd -16(%rbp), %xmm0 movq -8(%rbp), %rax movsd 16(%rax), %xmm2 ## xmm2 = mem[0],zero subsd -16(%rbp), %xmm2 movq -8(%rbp), %rax movsd 24(%rax), %xmm1 ## xmm1 = mem[0],zero mulsd %xmm2, %xmm0 addsd %xmm1, %xmm0 movsd %xmm0, 24(%rax) movq -8(%rbp), %rax movsd 24(%rax), %xmm0 ## xmm0 = mem[0],zero movq -8(%rbp), %rax cvtsi2sdl (%rax), %xmm1 divsd %xmm1, %xmm0 sqrtsd %xmm0, %xmm0 movq -8(%rbp), %rax movsd %xmm0, 32(%rax) popq %rbp retq .cfi_endproc ## -- End function .globl _initStats ## -- Begin function initStats .p2align 4, 0x90 _initStats: ## @initStats .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) movq -8(%rbp), %rax movl $0, (%rax) movq -8(%rbp), %rax xorps %xmm0, %xmm0 movsd %xmm0, 8(%rax) popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $336, %rsp ## imm = 0x150 movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -276(%rbp) movl %edi, -280(%rbp) movq %rsi, -288(%rbp) movl $0, -292(%rbp) leaq -336(%rbp), %rdi callq _initStats leaq L_.str(%rip), %rdi movb $0, %al callq _printf LBB2_1: ## =>This Inner Loop Header: Depth=1 cmpl $0, -292(%rbp) setne %al xorb $-1, %al testb $1, %al jne LBB2_2 jmp LBB2_15 LBB2_2: ## in Loop: Header=BB2_1 Depth=1 movl -336(%rbp), %esi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf leaq -272(%rbp), %rdi movq ___stdinp@GOTPCREL(%rip), %rax movq (%rax), %rdx movl $256, %esi ## imm = 0x100 callq _fgets movsbl -272(%rbp), %eax cmpl $113, %eax je LBB2_4 ## %bb.3: ## in Loop: Header=BB2_1 Depth=1 movsbl -272(%rbp), %eax cmpl $81, %eax jne LBB2_5 LBB2_4: ## in Loop: Header=BB2_1 Depth=1 movl $1, -292(%rbp) jmp LBB2_14 LBB2_5: ## in Loop: Header=BB2_1 Depth=1 movsbl -272(%rbp), %eax cmpl $114, %eax je LBB2_7 ## %bb.6: ## in Loop: Header=BB2_1 Depth=1 movsbl -272(%rbp), %eax cmpl $82, %eax jne LBB2_8 LBB2_7: ## in Loop: Header=BB2_1 Depth=1 leaq -336(%rbp), %rdi callq _initStats jmp LBB2_13 LBB2_8: ## in Loop: Header=BB2_1 Depth=1 movsbl -272(%rbp), %eax cmpl $0, %eax je LBB2_10 ## %bb.9: ## in Loop: Header=BB2_1 Depth=1 movsbl -272(%rbp), %eax cmpl $10, %eax jne LBB2_11 LBB2_10: ## in Loop: Header=BB2_1 Depth=1 jmp LBB2_12 LBB2_11: ## in Loop: Header=BB2_1 Depth=1 leaq -272(%rbp), %rdi callq _atof leaq -336(%rbp), %rdi callq _addValue leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf movsd -328(%rbp), %xmm0 ## xmm0 = mem[0],zero leaq L_.str.3(%rip), %rdi movb $1, %al callq _printf movsd -320(%rbp), %xmm0 ## xmm0 = mem[0],zero leaq L_.str.4(%rip), %rdi movb $1, %al callq _printf movsd -304(%rbp), %xmm0 ## xmm0 = mem[0],zero leaq L_.str.5(%rip), %rdi movb $1, %al callq _printf leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf LBB2_12: ## in Loop: Header=BB2_1 Depth=1 jmp LBB2_13 LBB2_13: ## in Loop: Header=BB2_1 Depth=1 jmp LBB2_14 LBB2_14: ## in Loop: Header=BB2_1 Depth=1 jmp LBB2_1 LBB2_15: movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB2_17 ## %bb.16: xorl %eax, %eax addq $336, %rsp ## imm = 0x150 popq %rbp retq LBB2_17: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Type 'r' to reset or 'q' to quit.\n\n" L_.str.1: ## @.str.1 .asciz "%3d> " L_.str.2: ## @.str.2 .asciz "\n" L_.str.3: ## @.str.3 .asciz "sum = %lg\n" L_.str.4: ## @.str.4 .asciz "avg = %lg\n" L_.str.5: ## @.str.5 .asciz "stddev = %lg\n" .subsections_via_symbols
the_stack_data/156392664.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #144 .cfi_def_cfa_offset 144 stp x29, x30, [sp, #128] ; 16-byte Folded Spill add x29, sp, #128 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] str wzr, [sp, #48] str w0, [sp, #44] str x1, [sp, #32] adrp x8, l___const.main.myString@PAGE add x8, x8, l___const.main.myString@PAGEOFF ldr x9, [x8] sub x10, x29, #24 str x10, [sp, #16] ; 8-byte Folded Spill stur x9, [x29, #-24] ldrh w8, [x8, #8] sturh w8, [x29, #-16] add x0, sp, #54 str x0, [sp, #24] ; 8-byte Folded Spill adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF mov x2, #50 bl ___strcpy_chk ldr x0, [sp, #16] ; 8-byte Folded Reload bl _strlen mov x8, sp str x0, [x8] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf ldr x8, [sp, #24] ; 8-byte Folded Reload mov x9, sp str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf 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,__cstring,cstring_literals l___const.main.myString: ; @__const.main.myString .asciz "my string" l_.str: ; @.str .asciz "This is a copy test" l_.str.1: ; @.str.1 .asciz "The length of the string is %d\n" l_.str.2: ; @.str.2 .asciz "%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 $96, %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) movq L___const.main.myString(%rip), %rax movq %rax, -18(%rbp) movw L___const.main.myString+8(%rip), %ax movw %ax, -10(%rbp) leaq -80(%rbp), %rdi leaq L_.str(%rip), %rsi movl $50, %edx callq ___strcpy_chk leaq -18(%rbp), %rdi callq _strlen movq %rax, %rsi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf leaq -80(%rbp), %rsi leaq L_.str.2(%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 $96, %rsp popq %rbp retq LBB0_2: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L___const.main.myString: ## @__const.main.myString .asciz "my string" L_.str: ## @.str .asciz "This is a copy test" L_.str.1: ## @.str.1 .asciz "The length of the string is %d\n" L_.str.2: ## @.str.2 .asciz "%s" .subsections_via_symbols
the_stack_data/59511702.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _descente ; -- Begin function descente .p2align 2 _descente: ; @descente .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] stur x1, [x29, #-16] stur w2, [x29, #-20] ldursw x9, [x29, #-20] mov x8, #4 mul x0, x8, x9 bl _malloc str x0, [sp, #16] ldur x8, [x29, #-16] ldr s0, [x8] ldur x8, [x29, #-8] ldr s1, [x8] fdiv s0, s0, s1 ldr x8, [sp, #16] str s0, [x8] mov w8, #1 str w8, [sp, #12] b LBB0_1 LBB0_1: ; =>This Loop Header: Depth=1 ; Child Loop BB0_3 Depth 2 ldr w8, [sp, #12] ldur w9, [x29, #-20] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_8 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 movi d0, #0000000000000000 str s0, [sp, #8] str wzr, [sp, #4] b LBB0_3 LBB0_3: ; Parent Loop BB0_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #4] ldr w9, [sp, #12] subs w9, w9, #1 subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_6 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_3 Depth=2 ldr s2, [sp, #8] ldur x8, [x29, #-8] ldrsw x9, [sp, #12] mov x10, #40 mul x9, x9, x10 add x8, x8, x9 ldrsw x9, [sp, #4] ldr s0, [x8, x9, lsl #2] ldr x8, [sp, #16] ldrsw x9, [sp, #4] ldr s1, [x8, x9, lsl #2] fmadd s0, s0, s1, s2 str s0, [sp, #8] b LBB0_5 LBB0_5: ; in Loop: Header=BB0_3 Depth=2 ldr w8, [sp, #4] add w8, w8, #1 str w8, [sp, #4] b LBB0_3 LBB0_6: ; in Loop: Header=BB0_1 Depth=1 ldur x8, [x29, #-16] ldrsw x9, [sp, #12] ldr s0, [x8, x9, lsl #2] ldr s1, [sp, #8] fsub s0, s0, s1 ldur x8, [x29, #-8] ldrsw x9, [sp, #12] mov x10, #40 mul x9, x9, x10 add x8, x8, x9 ldrsw x9, [sp, #12] ldr s1, [x8, x9, lsl #2] fdiv s0, s0, s1 ldr x8, [sp, #16] ldrsw x9, [sp, #12] str s0, [x8, x9, lsl #2] b LBB0_7 LBB0_7: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB0_1 LBB0_8: ldr x0, [sp, #16] 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: 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, #512 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] str wzr, [sp, #60] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov x9, sp add x8, sp, #44 str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf str wzr, [sp, #40] b LBB1_1 LBB1_1: ; =>This Loop Header: Depth=1 ; Child Loop BB1_3 Depth 2 ldr w8, [sp, #40] ldr w9, [sp, #44] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_8 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 str 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 w8, [sp, #40] ; implicit-def: $x10 mov x10, x8 ldr w9, [sp, #36] ; 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 ldrsw x8, [sp, #40] mov x9, #40 mul x9, x8, x9 add x8, sp, #104 add x8, x8, x9 ldrsw x9, [sp, #36] add x8, x8, x9, lsl #2 mov x9, sp str x8, [x9] adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _scanf 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 b LBB1_7 LBB1_7: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #40] add w8, w8, #1 str w8, [sp, #40] b LBB1_1 LBB1_8: adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf str wzr, [sp, #32] b LBB1_9 LBB1_9: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #32] ldr w9, [sp, #44] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_12 b LBB1_10 LBB1_10: ; in Loop: Header=BB1_9 Depth=1 ldr w9, [sp, #32] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _printf ldrsw x9, [sp, #32] add x8, sp, #64 add x8, x8, x9, lsl #2 mov x9, sp str x8, [x9] adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _scanf b LBB1_11 LBB1_11: ; in Loop: Header=BB1_9 Depth=1 ldr w8, [sp, #32] add w8, w8, #1 str w8, [sp, #32] b LBB1_9 LBB1_12: ldr w2, [sp, #44] add x0, sp, #104 add x1, sp, #64 bl _descente str x0, [sp, #48] adrp x0, l_.str.7@PAGE add x0, x0, l_.str.7@PAGEOFF bl _printf str wzr, [sp, #28] b LBB1_13 LBB1_13: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #28] ldr w9, [sp, #44] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_16 b LBB1_14 LBB1_14: ; in Loop: Header=BB1_13 Depth=1 ldr x8, [sp, #48] ldrsw x9, [sp, #28] ldr s0, [x8, x9, lsl #2] fcvt d0, s0 ldr w8, [sp, #28] ldr w9, [sp, #44] subs w9, w9, #1 subs w8, w8, w9 cset w9, eq ; implicit-def: $x8 mov x8, x9 and x9, x8, #0x1 adrp x8, l_.str.9@PAGE add x8, x8, l_.str.9@PAGEOFF ldrsb w10, [x8, x9] mov x9, sp str d0, [x9] ; implicit-def: $x8 mov x8, x10 str x8, [x9, #8] adrp x0, l_.str.8@PAGE add x0, x0, l_.str.8@PAGEOFF bl _printf b LBB1_15 LBB1_15: ; in Loop: Header=BB1_13 Depth=1 ldr w8, [sp, #28] add w8, w8, #1 str w8, [sp, #28] b LBB1_13 LBB1_16: ldr w8, [sp, #60] str w8, [sp, #24] ; 4-byte Folded Spill ldur x9, [x29, #-24] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB1_18 b LBB1_17 LBB1_17: bl ___stack_chk_fail LBB1_18: ldr w0, [sp, #24] ; 4-byte Folded Reload add sp, sp, #512 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x28, x27, [sp], #32 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Enter the size of the matrix: " l_.str.1: ; @.str.1 .asciz "%d" l_.str.2: ; @.str.2 .asciz "Filling the matrix A\n" l_.str.3: ; @.str.3 .asciz "A[%d][%d] = " l_.str.4: ; @.str.4 .asciz "%f" l_.str.5: ; @.str.5 .asciz "Filling the matrix B\n" l_.str.6: ; @.str.6 .asciz "B[%d] = " l_.str.7: ; @.str.7 .asciz "\nThe resulting vector: [" l_.str.8: ; @.str.8 .asciz "%f%c" l_.str.9: ; @.str.9 .asciz ",]" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _descente ## -- Begin function descente .p2align 4, 0x90 _descente: ## @descente .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) movl %edx, -20(%rbp) movslq -20(%rbp), %rdi shlq $2, %rdi callq _malloc movq %rax, -32(%rbp) movq -16(%rbp), %rax movss (%rax), %xmm0 ## xmm0 = mem[0],zero,zero,zero movq -8(%rbp), %rax divss (%rax), %xmm0 movq -32(%rbp), %rax movss %xmm0, (%rax) movl $1, -36(%rbp) LBB0_1: ## =>This Loop Header: Depth=1 ## Child Loop BB0_3 Depth 2 movl -36(%rbp), %eax cmpl -20(%rbp), %eax jge LBB0_8 ## %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 Inner Loop Header: Depth=2 movl -44(%rbp), %eax movl -36(%rbp), %ecx subl $1, %ecx cmpl %ecx, %eax jg LBB0_6 ## %bb.4: ## in Loop: Header=BB0_3 Depth=2 movss -40(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero movq -8(%rbp), %rax movslq -36(%rbp), %rcx imulq $40, %rcx, %rcx addq %rcx, %rax movslq -44(%rbp), %rcx movss (%rax,%rcx,4), %xmm0 ## xmm0 = mem[0],zero,zero,zero movq -32(%rbp), %rax movslq -44(%rbp), %rcx movss (%rax,%rcx,4), %xmm2 ## xmm2 = mem[0],zero,zero,zero mulss %xmm2, %xmm0 addss %xmm1, %xmm0 movss %xmm0, -40(%rbp) ## %bb.5: ## in Loop: Header=BB0_3 Depth=2 movl -44(%rbp), %eax addl $1, %eax movl %eax, -44(%rbp) jmp LBB0_3 LBB0_6: ## in Loop: Header=BB0_1 Depth=1 movq -16(%rbp), %rax movslq -36(%rbp), %rcx movss (%rax,%rcx,4), %xmm0 ## xmm0 = mem[0],zero,zero,zero subss -40(%rbp), %xmm0 movq -8(%rbp), %rax movslq -36(%rbp), %rcx imulq $40, %rcx, %rcx addq %rcx, %rax movslq -36(%rbp), %rcx divss (%rax,%rcx,4), %xmm0 movq -32(%rbp), %rax movslq -36(%rbp), %rcx movss %xmm0, (%rax,%rcx,4) ## %bb.7: ## in Loop: Header=BB0_1 Depth=1 movl -36(%rbp), %eax addl $1, %eax movl %eax, -36(%rbp) jmp LBB0_1 LBB0_8: movq -32(%rbp), %rax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $512, %rsp ## imm = 0x200 movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -468(%rbp) leaq L_.str(%rip), %rdi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi leaq -484(%rbp), %rsi movb $0, %al callq _scanf leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf movl $0, -488(%rbp) LBB1_1: ## =>This Loop Header: Depth=1 ## Child Loop BB1_3 Depth 2 movl -488(%rbp), %eax cmpl -484(%rbp), %eax jge LBB1_8 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 movl $0, -492(%rbp) LBB1_3: ## Parent Loop BB1_1 Depth=1 ## => This Inner Loop Header: Depth=2 movl -492(%rbp), %eax cmpl -484(%rbp), %eax jge LBB1_6 ## %bb.4: ## in Loop: Header=BB1_3 Depth=2 movl -488(%rbp), %esi movl -492(%rbp), %edx leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf movslq -488(%rbp), %rax leaq -416(%rbp), %rsi imulq $40, %rax, %rax addq %rax, %rsi movslq -492(%rbp), %rax shlq $2, %rax addq %rax, %rsi leaq L_.str.4(%rip), %rdi movb $0, %al callq _scanf ## %bb.5: ## in Loop: Header=BB1_3 Depth=2 movl -492(%rbp), %eax addl $1, %eax movl %eax, -492(%rbp) jmp LBB1_3 LBB1_6: ## in Loop: Header=BB1_1 Depth=1 jmp LBB1_7 LBB1_7: ## in Loop: Header=BB1_1 Depth=1 movl -488(%rbp), %eax addl $1, %eax movl %eax, -488(%rbp) jmp LBB1_1 LBB1_8: leaq L_.str.5(%rip), %rdi movb $0, %al callq _printf movl $0, -496(%rbp) LBB1_9: ## =>This Inner Loop Header: Depth=1 movl -496(%rbp), %eax cmpl -484(%rbp), %eax jge LBB1_12 ## %bb.10: ## in Loop: Header=BB1_9 Depth=1 movl -496(%rbp), %esi leaq L_.str.6(%rip), %rdi movb $0, %al callq _printf movslq -496(%rbp), %rax leaq -464(%rbp), %rsi shlq $2, %rax addq %rax, %rsi leaq L_.str.4(%rip), %rdi movb $0, %al callq _scanf ## %bb.11: ## in Loop: Header=BB1_9 Depth=1 movl -496(%rbp), %eax addl $1, %eax movl %eax, -496(%rbp) jmp LBB1_9 LBB1_12: leaq -416(%rbp), %rdi leaq -464(%rbp), %rsi movl -484(%rbp), %edx callq _descente movq %rax, -480(%rbp) leaq L_.str.7(%rip), %rdi movb $0, %al callq _printf movl $0, -500(%rbp) LBB1_13: ## =>This Inner Loop Header: Depth=1 movl -500(%rbp), %eax cmpl -484(%rbp), %eax jge LBB1_16 ## %bb.14: ## in Loop: Header=BB1_13 Depth=1 movq -480(%rbp), %rax movslq -500(%rbp), %rcx movss (%rax,%rcx,4), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movl -500(%rbp), %eax movl -484(%rbp), %ecx subl $1, %ecx cmpl %ecx, %eax sete %al andb $1, %al movzbl %al, %eax movslq %eax, %rcx leaq L_.str.9(%rip), %rax movsbl (%rax,%rcx), %esi leaq L_.str.8(%rip), %rdi movb $1, %al callq _printf ## %bb.15: ## in Loop: Header=BB1_13 Depth=1 movl -500(%rbp), %eax addl $1, %eax movl %eax, -500(%rbp) jmp LBB1_13 LBB1_16: movl -468(%rbp), %eax movl %eax, -504(%rbp) ## 4-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB1_18 ## %bb.17: movl -504(%rbp), %eax ## 4-byte Reload addq $512, %rsp ## imm = 0x200 popq %rbp retq LBB1_18: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Enter the size of the matrix: " L_.str.1: ## @.str.1 .asciz "%d" L_.str.2: ## @.str.2 .asciz "Filling the matrix A\n" L_.str.3: ## @.str.3 .asciz "A[%d][%d] = " L_.str.4: ## @.str.4 .asciz "%f" L_.str.5: ## @.str.5 .asciz "Filling the matrix B\n" L_.str.6: ## @.str.6 .asciz "B[%d] = " L_.str.7: ## @.str.7 .asciz "\nThe resulting vector: [" L_.str.8: ## @.str.8 .asciz "%f%c" L_.str.9: ## @.str.9 .asciz ",]" .subsections_via_symbols
the_stack_data/59513041.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __DATA,__data .globl _datatoc_gpu_shader_image_shuffle_color_frag_glsl_size ; @datatoc_gpu_shader_image_shuffle_color_frag_glsl_size .p2align 2 _datatoc_gpu_shader_image_shuffle_color_frag_glsl_size: .long 367 ; 0x16f .globl _datatoc_gpu_shader_image_shuffle_color_frag_glsl ; @datatoc_gpu_shader_image_shuffle_color_frag_glsl _datatoc_gpu_shader_image_shuffle_color_frag_glsl: .asciz "\r\nin vec2 texCoord_interp;\r\nout vec4 fragColor;\r\n\r\nuniform sampler2D image;\r\nuniform vec4 color;\r\nuniform vec4 shuffle;\r\n\r\nvoid main()\r\n{\r\n\tvec4 sample = texture(image, texCoord_interp);\r\n\tfragColor = vec4(sample.r * shuffle.r +\r\n\t sample.g * shuffle.g +\r\n\t sample.b * shuffle.b +\r\n\t sample.a * shuffle.a) * color;\r\n}\r\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __DATA,__data .globl _datatoc_gpu_shader_image_shuffle_color_frag_glsl_size ## @datatoc_gpu_shader_image_shuffle_color_frag_glsl_size .p2align 2 _datatoc_gpu_shader_image_shuffle_color_frag_glsl_size: .long 367 ## 0x16f .globl _datatoc_gpu_shader_image_shuffle_color_frag_glsl ## @datatoc_gpu_shader_image_shuffle_color_frag_glsl .p2align 4 _datatoc_gpu_shader_image_shuffle_color_frag_glsl: .asciz "\r\nin vec2 texCoord_interp;\r\nout vec4 fragColor;\r\n\r\nuniform sampler2D image;\r\nuniform vec4 color;\r\nuniform vec4 shuffle;\r\n\r\nvoid main()\r\n{\r\n\tvec4 sample = texture(image, texCoord_interp);\r\n\tfragColor = vec4(sample.r * shuffle.r +\r\n\t sample.g * shuffle.g +\r\n\t sample.b * shuffle.b +\r\n\t sample.a * shuffle.a) * color;\r\n}\r\n" .subsections_via_symbols
the_stack_data/11075380.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 .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 .subsections_via_symbols
the_stack_data/29826720.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] mov x9, sp sub x8, x29, #8 str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _scanf mov w8, #1 stur w8, [x29, #-12] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-12] ldur w9, [x29, #-8] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_6 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-8] ldur w10, [x29, #-12] sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldur w9, [x29, #-12] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf b LBB0_4 LBB0_4: ; in Loop: Header=BB0_1 Depth=1 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-12] add w8, w8, #1 stur w8, [x29, #-12] b LBB0_1 LBB0_6: 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 "%i" 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 _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 $1, -12(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movl -12(%rbp), %eax cmpl -8(%rbp), %eax jg LBB0_6 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl -8(%rbp), %eax cltd idivl -12(%rbp) cmpl $0, %edx jne LBB0_4 ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movl -12(%rbp), %esi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf LBB0_4: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_5 LBB0_5: ## in Loop: Header=BB0_1 Depth=1 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB0_1 LBB0_6: xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%i" L_.str.1: ## @.str.1 .asciz "%d\n" .subsections_via_symbols
the_stack_data/168892599.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #80 .cfi_def_cfa_offset 80 stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp, #64 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] str wzr, [sp, #16] add x0, sp, #21 str x0, [sp] ; 8-byte Folded Spill adrp x1, l___const.main.string@PAGE add x1, x1, l___const.main.string@PAGEOFF mov x2, #35 bl _memcpy ldr x8, [sp] ; 8-byte Folded Reload str x8, [sp, #8] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #8] ldrb w8, [x8] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldr x9, [sp, #8] ldrb w8, [x9] add w8, w8, #1 strb w8, [x9] sxtb w0, w8 bl _putchar ldr x8, [sp, #8] add x8, x8, #1 str x8, [sp, #8] b LBB0_1 LBB0_3: 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_5 b LBB0_4 LBB0_4: bl ___stack_chk_fail LBB0_5: mov w0, #0 ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l___const.main.string: ; @__const.main.string .asciz "Greetings from the digital realm!\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, -52(%rbp) leaq -48(%rbp), %rdi leaq L___const.main.string(%rip), %rsi movl $35, %edx callq _memcpy leaq -48(%rbp), %rax movq %rax, -64(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movq -64(%rbp), %rax cmpb $0, (%rax) je LBB0_3 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movq -64(%rbp), %rcx movb (%rcx), %al addb $1, %al movb %al, (%rcx) movsbl %al, %edi callq _putchar movq -64(%rbp), %rax addq $1, %rax movq %rax, -64(%rbp) jmp LBB0_1 LBB0_3: movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_5 ## %bb.4: xorl %eax, %eax addq $64, %rsp popq %rbp retq LBB0_5: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals .p2align 4 ## @__const.main.string L___const.main.string: .asciz "Greetings from the digital realm!\n" .subsections_via_symbols
the_stack_data/147638.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/38797.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _populate_array ; -- Begin function populate_array .p2align 2 _populate_array: ; @populate_array .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] str x1, [sp, #16] str x2, [sp, #8] str xzr, [sp] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp] ldr x9, [sp, #16] subs x8, x8, x9 cset w8, hs tbnz w8, #0, LBB0_4 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #8] blr x8 ldur x8, [x29, #-8] ldr x9, [sp] str w0, [x8, x9, lsl #2] b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp] add x8, x8, #1 str x8, [sp] b LBB0_1 LBB0_4: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _getNextRandomValue ; -- Begin function getNextRandomValue .p2align 2 _getNextRandomValue: ; @getNextRandomValue .cfi_startproc ; %bb.0: stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill .cfi_def_cfa_offset 16 mov x29, sp .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 bl _rand 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, #80 .cfi_def_cfa_offset 80 stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp, #64 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] str wzr, [sp, #12] add x0, sp, #16 mov x1, #10 adrp x2, _getNextRandomValue@PAGE add x2, x2, _getNextRandomValue@PAGEOFF bl _populate_array str wzr, [sp, #8] b LBB2_1 LBB2_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #8] subs w8, w8, #10 cset w8, ge tbnz w8, #0, LBB2_4 b LBB2_2 LBB2_2: ; in Loop: Header=BB2_1 Depth=1 ldrsw x9, [sp, #8] add x8, sp, #16 ldr w9, [x8, x9, lsl #2] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf b LBB2_3 LBB2_3: ; in Loop: Header=BB2_1 Depth=1 ldr w8, [sp, #8] add w8, w8, #1 str w8, [sp, #8] b LBB2_1 LBB2_4: 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, LBB2_6 b LBB2_5 LBB2_5: bl ___stack_chk_fail LBB2_6: mov w0, #0 ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d " l_.str.1: ; @.str.1 .asciz "\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _populate_array ## -- Begin function populate_array .p2align 4, 0x90 _populate_array: ## @populate_array .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) movq %rdx, -24(%rbp) movq $0, -32(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movq -32(%rbp), %rax cmpq -16(%rbp), %rax jae LBB0_4 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 callq *-24(%rbp) movl %eax, %edx movq -8(%rbp), %rax movq -32(%rbp), %rcx movl %edx, (%rax,%rcx,4) ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movq -32(%rbp), %rax addq $1, %rax movq %rax, -32(%rbp) jmp LBB0_1 LBB0_4: addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _getNextRandomValue ## -- Begin function getNextRandomValue .p2align 4, 0x90 _getNextRandomValue: ## @getNextRandomValue .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp callq _rand 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 movl $10, %esi leaq _getNextRandomValue(%rip), %rdx callq _populate_array movl $0, -56(%rbp) LBB2_1: ## =>This Inner Loop Header: Depth=1 cmpl $10, -56(%rbp) jge LBB2_4 ## %bb.2: ## in Loop: Header=BB2_1 Depth=1 movslq -56(%rbp), %rax movl -48(%rbp,%rax,4), %esi leaq L_.str(%rip), %rdi movb $0, %al callq _printf ## %bb.3: ## in Loop: Header=BB2_1 Depth=1 movl -56(%rbp), %eax addl $1, %eax movl %eax, -56(%rbp) jmp LBB2_1 LBB2_4: leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB2_6 ## %bb.5: xorl %eax, %eax addq $64, %rsp popq %rbp retq LBB2_6: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d " L_.str.1: ## @.str.1 .asciz "\n" .subsections_via_symbols
the_stack_data/150142511.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] mov w1, #0 str wzr, [sp, #20] add x0, sp, #24 mov x2, #48 bl _memset str wzr, [sp, #16] b LBB0_1 LBB0_1: ; =>This Loop Header: Depth=1 ; Child Loop BB0_3 Depth 2 ldr w8, [sp, #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 ldr w9, [sp, #16] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf str wzr, [sp, #12] b LBB0_3 LBB0_3: ; Parent Loop BB0_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #12] subs w8, w8, #4 cset w8, ge tbnz w8, #0, LBB0_6 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_3 Depth=2 ldrsw x9, [sp, #16] add x8, sp, #24 add x8, x8, x9, lsl #4 ldrsw x9, [sp, #12] add x8, x8, x9, lsl #2 mov x9, sp str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf b LBB0_5 LBB0_5: ; in Loop: Header=BB0_3 Depth=2 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB0_3 LBB0_6: ; in Loop: Header=BB0_1 Depth=1 b LBB0_7 LBB0_7: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #16] add w8, w8, #1 str w8, [sp, #16] b LBB0_1 LBB0_8: str wzr, [sp, #12] b LBB0_9 LBB0_9: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #12] subs w8, w8, #4 cset w8, ge tbnz w8, #0, LBB0_12 b LBB0_10 LBB0_10: ; in Loop: Header=BB0_9 Depth=1 ldrsw x8, [sp, #12] add x9, sp, #24 ldr w8, [x9, x8, lsl #2] add x10, x9, #16 ldrsw x11, [sp, #12] ldr w10, [x10, x11, lsl #2] add w8, w8, w10 add x9, x9, #32 ldrsw x10, [sp, #12] str w8, [x9, x10, lsl #2] b LBB0_11 LBB0_11: ; in Loop: Header=BB0_9 Depth=1 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB0_9 LBB0_12: str wzr, [sp, #16] b LBB0_13 LBB0_13: ; =>This Loop Header: Depth=1 ; Child Loop BB0_15 Depth 2 ldr w8, [sp, #16] subs w8, w8, #3 cset w8, ge tbnz w8, #0, LBB0_20 b LBB0_14 LBB0_14: ; in Loop: Header=BB0_13 Depth=1 str wzr, [sp, #12] b LBB0_15 LBB0_15: ; Parent Loop BB0_13 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #12] subs w8, w8, #4 cset w8, ge tbnz w8, #0, LBB0_18 b LBB0_16 LBB0_16: ; in Loop: Header=BB0_15 Depth=2 ldrsw x9, [sp, #16] add x8, sp, #24 add x8, x8, x9, lsl #4 ldrsw x9, [sp, #12] ldr w9, [x8, x9, lsl #2] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf b LBB0_17 LBB0_17: ; in Loop: Header=BB0_15 Depth=2 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB0_15 LBB0_18: ; in Loop: Header=BB0_13 Depth=1 adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf b LBB0_19 LBB0_19: ; in Loop: Header=BB0_13 Depth=1 ldr w8, [sp, #16] add w8, w8, #1 str w8, [sp, #16] b LBB0_13 LBB0_20: ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_22 b LBB0_21 LBB0_21: bl ___stack_chk_fail LBB0_22: mov w0, #0 ldp x29, x30, [sp, #80] ; 16-byte Folded Reload add sp, sp, #96 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d\355\226\211\354\235\230 \352\260\222 4\352\260\234\353\245\274 \354\236\205\353\240\245\355\225\230\354\204\270\354\232\224: " l_.str.1: ; @.str.1 .asciz "%d" l_.str.2: ; @.str.2 .asciz "%5d" 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 $80, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -68(%rbp) leaq -64(%rbp), %rdi xorl %esi, %esi movl $48, %edx callq _memset movl $0, -72(%rbp) LBB0_1: ## =>This Loop Header: Depth=1 ## Child Loop BB0_3 Depth 2 cmpl $2, -72(%rbp) jge LBB0_8 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl -72(%rbp), %esi leaq L_.str(%rip), %rdi movb $0, %al callq _printf movl $0, -76(%rbp) LBB0_3: ## Parent Loop BB0_1 Depth=1 ## => This Inner Loop Header: Depth=2 cmpl $4, -76(%rbp) jge LBB0_6 ## %bb.4: ## in Loop: Header=BB0_3 Depth=2 movslq -72(%rbp), %rax leaq -64(%rbp), %rsi shlq $4, %rax addq %rax, %rsi movslq -76(%rbp), %rax shlq $2, %rax addq %rax, %rsi leaq L_.str.1(%rip), %rdi movb $0, %al callq _scanf ## %bb.5: ## in Loop: Header=BB0_3 Depth=2 movl -76(%rbp), %eax addl $1, %eax movl %eax, -76(%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 -72(%rbp), %eax addl $1, %eax movl %eax, -72(%rbp) jmp LBB0_1 LBB0_8: movl $0, -76(%rbp) LBB0_9: ## =>This Inner Loop Header: Depth=1 cmpl $4, -76(%rbp) jge LBB0_12 ## %bb.10: ## in Loop: Header=BB0_9 Depth=1 movslq -76(%rbp), %rax movl -64(%rbp,%rax,4), %ecx movslq -76(%rbp), %rax addl -48(%rbp,%rax,4), %ecx movslq -76(%rbp), %rax movl %ecx, -32(%rbp,%rax,4) ## %bb.11: ## in Loop: Header=BB0_9 Depth=1 movl -76(%rbp), %eax addl $1, %eax movl %eax, -76(%rbp) jmp LBB0_9 LBB0_12: movl $0, -72(%rbp) LBB0_13: ## =>This Loop Header: Depth=1 ## Child Loop BB0_15 Depth 2 cmpl $3, -72(%rbp) jge LBB0_20 ## %bb.14: ## in Loop: Header=BB0_13 Depth=1 movl $0, -76(%rbp) LBB0_15: ## Parent Loop BB0_13 Depth=1 ## => This Inner Loop Header: Depth=2 cmpl $4, -76(%rbp) jge LBB0_18 ## %bb.16: ## in Loop: Header=BB0_15 Depth=2 movslq -72(%rbp), %rcx leaq -64(%rbp), %rax shlq $4, %rcx addq %rcx, %rax movslq -76(%rbp), %rcx movl (%rax,%rcx,4), %esi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf ## %bb.17: ## in Loop: Header=BB0_15 Depth=2 movl -76(%rbp), %eax addl $1, %eax movl %eax, -76(%rbp) jmp LBB0_15 LBB0_18: ## in Loop: Header=BB0_13 Depth=1 leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf ## %bb.19: ## in Loop: Header=BB0_13 Depth=1 movl -72(%rbp), %eax addl $1, %eax movl %eax, -72(%rbp) jmp LBB0_13 LBB0_20: movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_22 ## %bb.21: xorl %eax, %eax addq $80, %rsp popq %rbp retq LBB0_22: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d\355\226\211\354\235\230 \352\260\222 4\352\260\234\353\245\274 \354\236\205\353\240\245\355\225\230\354\204\270\354\232\224: " L_.str.1: ## @.str.1 .asciz "%d" L_.str.2: ## @.str.2 .asciz "%5d" L_.str.3: ## @.str.3 .asciz "\n" .subsections_via_symbols
the_stack_data/170452229.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 0x4016cccccccccccd ; double 5.7000000000000002 lCPI0_1: .quad 0x3fe3333333333333 ; double 0.59999999999999998 .section __TEXT,__text,regular,pure_instructions .globl _main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #144 .cfi_def_cfa_offset 144 stp x29, x30, [sp, #128] ; 16-byte Folded Spill add x29, sp, #128 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #0 stur w8, [x29, #-44] ; 4-byte Folded Spill stur wzr, [x29, #-4] mov w8, #5 stur w8, [x29, #-12] fmov d0, #-0.50000000 stur d0, [x29, #-32] 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] stur w8, [x29, #-16] 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 stur d0, [x29, #-24] ldur w8, [x29, #-8] ; implicit-def: $x10 mov x10, x8 ldur w8, [x29, #-16] ; implicit-def: $x9 mov x9, x8 ldur d0, [x29, #-24] mov x8, sp str x10, [x8] str x9, [x8, #8] str d0, [x8, #16] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf ldur w8, [x29, #-8] ldur w9, [x29, #-12] add w8, w8, w9 stur w8, [x29, #-8] ldur w9, [x29, #-8] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf ldur d0, [x29, #-24] ldur w8, [x29, #-12] ldur w9, [x29, #-8] add w8, w8, w9 scvtf d1, w8 fmul d0, d0, d1 stur d0, [x29, #-24] ldur d0, [x29, #-24] mov x8, sp str d0, [x8] adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf ldur w8, [x29, #-12] ldur w9, [x29, #-8] add w8, w8, w9 stur w8, [x29, #-12] ldur w8, [x29, #-8] subs w8, w8, #1 stur w8, [x29, #-8] ldur w8, [x29, #-8] ; implicit-def: $x10 mov x10, x8 ldur w9, [x29, #-12] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf ldur w8, [x29, #-16] add w8, w8, #1 stur w8, [x29, #-16] ldur d0, [x29, #-24] ldur s2, [x29, #-16] ; implicit-def: $d1 fmov s1, s2 sshll.2d v1, v1, #0 ; kill: def $d1 killed $d1 killed $q1 scvtf d1, d1 fsub d0, d0, d1 stur d0, [x29, #-24] ldur w8, [x29, #-16] ; implicit-def: $x9 mov x9, x8 ldur d0, [x29, #-24] mov x8, sp str x9, [x8] str d0, [x8, #8] adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _printf ldur w8, [x29, #-8] ldur w9, [x29, #-12] sdiv w8, w8, w9 stur w8, [x29, #-16] ldur w9, [x29, #-16] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.7@PAGE add x0, x0, l_.str.7@PAGEOFF bl _printf ldur w8, [x29, #-8] ldur w10, [x29, #-12] sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 stur w8, [x29, #-16] ldur w9, [x29, #-16] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.8@PAGE add x0, x0, l_.str.8@PAGEOFF bl _printf ldur d0, [x29, #-32] ldur w8, [x29, #-8] add w8, w8, #1 ldur w9, [x29, #-8] sdiv w8, w8, w9 scvtf d1, w8 fadd d0, d0, d1 stur d0, [x29, #-32] ldur w8, [x29, #-8] add w8, w8, #1 stur w8, [x29, #-8] ldur w8, [x29, #-8] ; implicit-def: $x9 mov x9, x8 ldur d1, [x29, #-32] ldur d0, [x29, #-32] mov x8, sp str x9, [x8] str d1, [x8, #8] str d0, [x8, #16] adrp x0, l_.str.9@PAGE add x0, x0, l_.str.9@PAGEOFF bl _printf ldur d0, [x29, #-32] adrp x8, lCPI0_1@PAGE ldr d1, [x8, lCPI0_1@PAGEOFF] fsub d0, d0, d1 stur d0, [x29, #-32] ldur d1, [x29, #-32] ldur w9, [x29, #-12] mov w8, #2 str w8, [sp, #60] ; 4-byte Folded Spill mul w8, w8, w9 scvtf d2, w8 fmov d0, #3.00000000 str d0, [sp, #64] ; 8-byte Folded Spill fmadd d0, d0, d1, d2 fmov d1, #1.00000000 stur d1, [x29, #-56] ; 8-byte Folded Spill fadd d0, d0, d1 fcvtzs w8, d0 stur w8, [x29, #-12] ldur w8, [x29, #-12] ; implicit-def: $x9 mov x9, x8 ldur d0, [x29, #-32] mov x8, sp str x9, [x8] str d0, [x8, #8] adrp x0, l_.str.10@PAGE add x0, x0, l_.str.10@PAGEOFF bl _printf ldr w9, [sp, #60] ; 4-byte Folded Reload ldur w8, [x29, #-8] sdiv w8, w8, w9 scvtf d0, w8 stur d0, [x29, #-40] ldur d0, [x29, #-40] mov x8, sp str d0, [x8] adrp x0, l_.str.11@PAGE add x0, x0, l_.str.11@PAGEOFF bl _printf ldur s1, [x29, #-8] ; implicit-def: $d0 fmov s0, s1 sshll.2d v0, v0, #0 ; kill: def $d0 killed $d0 killed $q0 scvtf d0, d0 fmov d1, #2.00000000 str d1, [sp, #48] ; 8-byte Folded Spill fdiv d0, d0, d1 stur d0, [x29, #-40] ldur d0, [x29, #-40] mov x8, sp str d0, [x8] adrp x0, l_.str.12@PAGE add x0, x0, l_.str.12@PAGEOFF bl _printf ldr d1, [sp, #48] ; 8-byte Folded Reload adrp x8, lCPI0_0@PAGE ldr d0, [x8, lCPI0_0@PAGEOFF] stur d0, [x29, #-24] ldur d0, [x29, #-24] fdiv d0, d0, d1 stur d0, [x29, #-32] ldur d1, [x29, #-24] ldur d0, [x29, #-32] mov x8, sp str d1, [x8] str d0, [x8, #8] adrp x0, l_.str.13@PAGE add x0, x0, l_.str.13@PAGEOFF bl _printf ldr w9, [sp, #60] ; 4-byte Folded Reload ldur d0, [x29, #-24] fcvtzs w8, d0 sdiv w8, w8, w9 scvtf d0, w8 stur d0, [x29, #-32] ldur d0, [x29, #-32] mov x8, sp str d0, [x8] adrp x0, l_.str.14@PAGE add x0, x0, l_.str.14@PAGEOFF bl _printf ldr w9, [sp, #60] ; 4-byte Folded Reload ldr d3, [sp, #64] ; 8-byte Folded Reload ldur d1, [x29, #-56] ; 8-byte Folded Reload ldur w8, [x29, #-16] sdiv w8, w8, w9 stur w8, [x29, #-16] ldur w8, [x29, #-12] subs w8, w8, #3 sdiv w8, w8, w9 scvtf d0, w8 ldur d2, [x29, #-24] fmov d4, #5.00000000 fdiv d2, d2, d4 fsub d0, d0, d2 ldur s4, [x29, #-16] ; implicit-def: $d2 fmov s2, s4 sshll.2d v2, v2, #0 ; kill: def $d2 killed $d2 killed $q2 scvtf d2, d2 fadd d4, d0, d2 ldur d2, [x29, #-40] movi d0, #0000000000000000 fmadd d0, d0, d2, d4 ldur d2, [x29, #-32] fsub d0, d0, d2 ldur w8, [x29, #-12] add w8, w8, #1 scvtf d2, w8 fdiv d2, d2, d3 fadd d0, d0, d2 stur d0, [x29, #-40] ldur w8, [x29, #-12] add w8, w8, #1 stur w8, [x29, #-12] ldur d0, [x29, #-32] fadd d0, d0, d1 stur d0, [x29, #-32] ldur w8, [x29, #-8] ; implicit-def: $x11 mov x11, x8 ldur w8, [x29, #-12] ; implicit-def: $x10 mov x10, x8 ldur w8, [x29, #-16] ; implicit-def: $x9 mov x9, x8 ldur d2, [x29, #-24] ldur d1, [x29, #-32] ldur d0, [x29, #-40] mov x8, sp str x11, [x8] str x10, [x8, #8] str x9, [x8, #16] str d2, [x8, #24] str d1, [x8, #32] str d0, [x8, #40] adrp x0, l_.str.15@PAGE add x0, x0, l_.str.15@PAGEOFF bl _printf adrp x0, l_.str.16@PAGE add x0, x0, l_.str.16@PAGEOFF bl _system ldur w0, [x29, #-44] ; 4-byte Folded Reload ldp x29, x30, [sp, #128] ; 16-byte Folded Reload add sp, sp, #144 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "a=" l_.str.1: ; @.str.1 .asciz "%d" l_.str.2: ; @.str.2 .asciz "x = c = a : a=%d c=%d x=%f\n" l_.str.3: ; @.str.3 .asciz "a += b : a=%d\n" l_.str.4: ; @.str.4 .asciz "x *= b+a : x=%lf\n" l_.str.5: ; @.str.5 .asciz "b += a-- : a=%d b=%d\n" l_.str.6: ; @.str.6 .asciz "x -= ++c : c=%d x=%lf\n" l_.str.7: ; @.str.7 .asciz "c = a/b : c=%4d\n" l_.str.8: ; @.str.8 .asciz "c = a%%b : c=%d\n" l_.str.9: ; @.str.9 .asciz "y += (a+1)/a++ : a=%d y=%.3lf\ty=%.0lf\n" l_.str.10: ; @.str.10 .asciz "b = 3*(y-=.6)+2*b+1 : b=%d y=%.1lf\n" l_.str.11: ; @.str.11 .asciz "z = a/2 : z = a/2 : z=%lf\n" l_.str.12: ; @.str.12 .asciz "z = (double)a/2 : z=%lf\n" l_.str.13: ; @.str.13 .asciz "y = (x = 5.7)/2 : x=%lf y=%lf\n" l_.str.14: ; @.str.14 .asciz "y = (int)x/2 : y=%f\n" l_.str.15: ; @.str.15 .asciz "z = (b-3)/2 - x/5 +(c/=2) + 1/4*z - y++ + ++b/3. :\n\007=%d b=%d c=%d x=%lf y=%lf z=%lf\n" l_.str.16: ; @.str.16 .asciz "pause" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __TEXT,__literal8,8byte_literals .p2align 3 ## -- Begin function main LCPI0_0: .quad 0x3ff0000000000000 ## double 1 LCPI0_1: .quad 0x4008000000000000 ## double 3 LCPI0_2: .quad 0x4014000000000000 ## double 5 LCPI0_3: .quad 0x4000000000000000 ## double 2 LCPI0_4: .quad 0x4016cccccccccccd ## double 5.7000000000000002 LCPI0_5: .quad 0x3fe3333333333333 ## double 0.59999999999999998 LCPI0_6: .quad 0xbfe0000000000000 ## double -0.5 .section __TEXT,__text,regular,pure_instructions .globl _main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movl $0, -4(%rbp) movl $5, -12(%rbp) movsd LCPI0_6(%rip), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -32(%rbp) leaq L_.str(%rip), %rdi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi leaq -8(%rbp), %rsi movb $0, %al callq _scanf movl -8(%rbp), %eax movl %eax, -16(%rbp) cvtsi2sdl -16(%rbp), %xmm0 movsd %xmm0, -24(%rbp) movl -8(%rbp), %esi movl -16(%rbp), %edx movsd -24(%rbp), %xmm0 ## xmm0 = mem[0],zero leaq L_.str.2(%rip), %rdi movb $1, %al callq _printf movl -8(%rbp), %eax addl -12(%rbp), %eax movl %eax, -8(%rbp) movl -8(%rbp), %esi leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf movsd -24(%rbp), %xmm0 ## xmm0 = mem[0],zero movl -12(%rbp), %eax addl -8(%rbp), %eax cvtsi2sd %eax, %xmm1 mulsd %xmm1, %xmm0 movsd %xmm0, -24(%rbp) movsd -24(%rbp), %xmm0 ## xmm0 = mem[0],zero leaq L_.str.4(%rip), %rdi movb $1, %al callq _printf movl -12(%rbp), %eax addl -8(%rbp), %eax movl %eax, -12(%rbp) movl -8(%rbp), %eax subl $1, %eax movl %eax, -8(%rbp) movl -8(%rbp), %esi movl -12(%rbp), %edx leaq L_.str.5(%rip), %rdi movb $0, %al callq _printf movl -16(%rbp), %eax addl $1, %eax movl %eax, -16(%rbp) movsd -24(%rbp), %xmm0 ## xmm0 = mem[0],zero cvtsi2sdl -16(%rbp), %xmm1 subsd %xmm1, %xmm0 movsd %xmm0, -24(%rbp) movl -16(%rbp), %esi movsd -24(%rbp), %xmm0 ## xmm0 = mem[0],zero leaq L_.str.6(%rip), %rdi movb $1, %al callq _printf movl -8(%rbp), %eax cltd idivl -12(%rbp) movl %eax, -16(%rbp) movl -16(%rbp), %esi leaq L_.str.7(%rip), %rdi movb $0, %al callq _printf movl -8(%rbp), %eax cltd idivl -12(%rbp) movl %edx, -16(%rbp) movl -16(%rbp), %esi leaq L_.str.8(%rip), %rdi movb $0, %al callq _printf movsd -32(%rbp), %xmm0 ## xmm0 = mem[0],zero movl -8(%rbp), %eax addl $1, %eax cltd idivl -8(%rbp) cvtsi2sd %eax, %xmm1 addsd %xmm1, %xmm0 movsd %xmm0, -32(%rbp) movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) movl -8(%rbp), %esi movsd -32(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd -32(%rbp), %xmm1 ## xmm1 = mem[0],zero leaq L_.str.9(%rip), %rdi movb $2, %al callq _printf movsd -32(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd LCPI0_5(%rip), %xmm1 ## xmm1 = mem[0],zero subsd %xmm1, %xmm0 movsd %xmm0, -32(%rbp) movsd -32(%rbp), %xmm0 ## xmm0 = mem[0],zero movl -12(%rbp), %eax shll $1, %eax cvtsi2sd %eax, %xmm1 movsd LCPI0_1(%rip), %xmm2 ## xmm2 = mem[0],zero mulsd %xmm2, %xmm0 addsd %xmm1, %xmm0 movsd LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero addsd %xmm1, %xmm0 cvttsd2si %xmm0, %eax movl %eax, -12(%rbp) movl -12(%rbp), %esi movsd -32(%rbp), %xmm0 ## xmm0 = mem[0],zero leaq L_.str.10(%rip), %rdi movb $1, %al callq _printf movl -8(%rbp), %eax movl $2, %ecx cltd idivl %ecx cvtsi2sd %eax, %xmm0 movsd %xmm0, -40(%rbp) movsd -40(%rbp), %xmm0 ## xmm0 = mem[0],zero leaq L_.str.11(%rip), %rdi movb $1, %al callq _printf cvtsi2sdl -8(%rbp), %xmm0 movsd LCPI0_3(%rip), %xmm1 ## xmm1 = mem[0],zero divsd %xmm1, %xmm0 movsd %xmm0, -40(%rbp) movsd -40(%rbp), %xmm0 ## xmm0 = mem[0],zero leaq L_.str.12(%rip), %rdi movb $1, %al callq _printf movsd LCPI0_4(%rip), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -24(%rbp) movsd -24(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd LCPI0_3(%rip), %xmm1 ## xmm1 = mem[0],zero divsd %xmm1, %xmm0 movsd %xmm0, -32(%rbp) movsd -24(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd -32(%rbp), %xmm1 ## xmm1 = mem[0],zero leaq L_.str.13(%rip), %rdi movb $2, %al callq _printf cvttsd2si -24(%rbp), %eax movl $2, %ecx cltd idivl %ecx cvtsi2sd %eax, %xmm0 movsd %xmm0, -32(%rbp) movsd -32(%rbp), %xmm0 ## xmm0 = mem[0],zero leaq L_.str.14(%rip), %rdi movb $1, %al callq _printf movl -16(%rbp), %eax movl $2, %ecx cltd idivl %ecx movl %eax, -16(%rbp) movl -12(%rbp), %eax subl $3, %eax movl $2, %ecx cltd idivl %ecx cvtsi2sd %eax, %xmm1 movsd -24(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd LCPI0_2(%rip), %xmm2 ## xmm2 = mem[0],zero divsd %xmm2, %xmm0 subsd %xmm0, %xmm1 cvtsi2sdl -16(%rbp), %xmm0 addsd %xmm0, %xmm1 movsd -40(%rbp), %xmm0 ## xmm0 = mem[0],zero xorps %xmm2, %xmm2 mulsd %xmm2, %xmm0 addsd %xmm1, %xmm0 subsd -32(%rbp), %xmm0 movl -12(%rbp), %eax addl $1, %eax cvtsi2sd %eax, %xmm1 movsd LCPI0_1(%rip), %xmm2 ## xmm2 = mem[0],zero divsd %xmm2, %xmm1 addsd %xmm1, %xmm0 movsd %xmm0, -40(%rbp) movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) movsd LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero addsd -32(%rbp), %xmm0 movsd %xmm0, -32(%rbp) movl -8(%rbp), %esi movl -12(%rbp), %edx movl -16(%rbp), %ecx movsd -24(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd -32(%rbp), %xmm1 ## xmm1 = mem[0],zero movsd -40(%rbp), %xmm2 ## xmm2 = mem[0],zero leaq L_.str.15(%rip), %rdi movb $3, %al callq _printf leaq L_.str.16(%rip), %rdi callq _system xorl %eax, %eax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "a=" L_.str.1: ## @.str.1 .asciz "%d" L_.str.2: ## @.str.2 .asciz "x = c = a : a=%d c=%d x=%f\n" L_.str.3: ## @.str.3 .asciz "a += b : a=%d\n" L_.str.4: ## @.str.4 .asciz "x *= b+a : x=%lf\n" L_.str.5: ## @.str.5 .asciz "b += a-- : a=%d b=%d\n" L_.str.6: ## @.str.6 .asciz "x -= ++c : c=%d x=%lf\n" L_.str.7: ## @.str.7 .asciz "c = a/b : c=%4d\n" L_.str.8: ## @.str.8 .asciz "c = a%%b : c=%d\n" L_.str.9: ## @.str.9 .asciz "y += (a+1)/a++ : a=%d y=%.3lf\ty=%.0lf\n" L_.str.10: ## @.str.10 .asciz "b = 3*(y-=.6)+2*b+1 : b=%d y=%.1lf\n" L_.str.11: ## @.str.11 .asciz "z = a/2 : z = a/2 : z=%lf\n" L_.str.12: ## @.str.12 .asciz "z = (double)a/2 : z=%lf\n" L_.str.13: ## @.str.13 .asciz "y = (x = 5.7)/2 : x=%lf y=%lf\n" L_.str.14: ## @.str.14 .asciz "y = (int)x/2 : y=%f\n" L_.str.15: ## @.str.15 .asciz "z = (b-3)/2 - x/5 +(c/=2) + 1/4*z - y++ + ++b/3. :\n\007=%d b=%d c=%d x=%lf y=%lf z=%lf\n" L_.str.16: ## @.str.16 .asciz "pause" .subsections_via_symbols
the_stack_data/43662.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] sub x8, x29, #8 mov x9, x8 str x9, [sp, #24] sub x9, x29, #12 str x9, [sp, #8] ; 8-byte Folded Spill str x9, [sp, #16] mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldr x8, [sp, #8] ; 8-byte Folded Reload mov x9, sp str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf ldr x8, [sp, #24] ldr x9, [sp, #16] subs x8, x8, x9 cset w8, ls tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: ldr x8, [sp, #24] mov x9, sp str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf b LBB0_5 LBB0_2: ldr x8, [sp, #24] ldr x9, [sp, #16] subs x8, x8, x9 cset w8, hs tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: ldr x8, [sp, #16] mov x9, sp str x8, [x9] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf b LBB0_4 LBB0_4: b LBB0_5 LBB0_5: 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 "Endereco de x: %x\n" l_.str.1: ; @.str.1 .asciz "Endereco de y: %x\n" l_.str.2: ; @.str.2 .asciz "O maior endereco eh de x, sendo: %x" l_.str.3: ; @.str.3 .asciz "O maior endereco eh de y, sendo: %x" .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 leaq -8(%rbp), %rsi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi leaq -12(%rbp), %rsi movb $0, %al callq _printf movq -24(%rbp), %rax cmpq -32(%rbp), %rax jbe LBB0_2 ## %bb.1: movq -24(%rbp), %rsi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf jmp LBB0_5 LBB0_2: movq -24(%rbp), %rax cmpq -32(%rbp), %rax jae LBB0_4 ## %bb.3: movq -32(%rbp), %rsi leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf LBB0_4: jmp LBB0_5 LBB0_5: xorl %eax, %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Endereco de x: %x\n" L_.str.1: ## @.str.1 .asciz "Endereco de y: %x\n" L_.str.2: ## @.str.2 .asciz "O maior endereco eh de x, sendo: %x" L_.str.3: ## @.str.3 .asciz "O maior endereco eh de y, sendo: %x" .subsections_via_symbols
the_stack_data/179832027.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 _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] subs w8, w8, #97 cset w8, eq tbnz w8, #0, LBB0_5 b LBB0_1 LBB0_1: ldursb w8, [x29, #-5] subs w8, w8, #101 cset w8, eq tbnz w8, #0, LBB0_5 b LBB0_2 LBB0_2: ldursb w8, [x29, #-5] subs w8, w8, #105 cset w8, eq tbnz w8, #0, LBB0_5 b LBB0_3 LBB0_3: ldursb w8, [x29, #-5] subs w8, w8, #111 cset w8, eq tbnz w8, #0, LBB0_5 b LBB0_4 LBB0_4: ldursb w8, [x29, #-5] subs w8, w8, #117 cset w8, ne tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: ldursb w10, [x29, #-5] mov x9, sp ; implicit-def: $x8 mov x8, x10 str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf b LBB0_7 LBB0_6: ldursb w10, [x29, #-5] mov x9, sp ; implicit-def: $x8 mov x8, x10 str x8, [x9] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf b LBB0_7 LBB0_7: mov w0, #0 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Enter the word :\n" l_.str.1: ; @.str.1 .asciz "%c" l_.str.2: ; @.str.2 .asciz "%c is vowel\n" l_.str.3: ; @.str.3 .asciz "%c is consonant\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) leaq L_.str(%rip), %rdi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi leaq -5(%rbp), %rsi movb $0, %al callq _scanf movsbl -5(%rbp), %eax cmpl $97, %eax je LBB0_5 ## %bb.1: movsbl -5(%rbp), %eax cmpl $101, %eax je LBB0_5 ## %bb.2: movsbl -5(%rbp), %eax cmpl $105, %eax je LBB0_5 ## %bb.3: movsbl -5(%rbp), %eax cmpl $111, %eax je LBB0_5 ## %bb.4: movsbl -5(%rbp), %eax cmpl $117, %eax jne LBB0_6 LBB0_5: movsbl -5(%rbp), %esi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf jmp LBB0_7 LBB0_6: movsbl -5(%rbp), %esi leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf LBB0_7: xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Enter the word :\n" L_.str.1: ## @.str.1 .asciz "%c" L_.str.2: ## @.str.2 .asciz "%c is vowel\n" L_.str.3: ## @.str.3 .asciz "%c is consonant\n" .subsections_via_symbols
the_stack_data/206393176.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, #1232 adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] str x8, [sp, #88] ; 8-byte Folded Spill adrp x8, _optarg@GOTPAGE ldr x8, [x8, _optarg@GOTPAGEOFF] str x8, [sp, #96] ; 8-byte Folded Spill adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] str wzr, [sp, #196] str w0, [sp, #192] str x1, [sp, #184] mov w8, #5000 str w8, [sp, #176] ; kill: def $x8 killed $xzr str xzr, [sp, #168] str xzr, [sp, #160] str wzr, [sp, #156] adrp x8, l_.str@PAGE add x8, x8, l_.str@PAGEOFF str x8, [sp, #144] adrp x8, l_.str.1@PAGE add x8, x8, l_.str.1@PAGEOFF str x8, [sp, #136] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w0, [sp, #192] ldr x1, [sp, #184] adrp x2, l_.str.2@PAGE add x2, x2, l_.str.2@PAGEOFF bl _getopt str w0, [sp, #180] adds w8, w0, #1 cset w8, eq tbnz w8, #0, LBB0_12 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #180] subs w8, w8, #66 ; kill: def $x8 killed $w8 str x8, [sp, #80] ; 8-byte Folded Spill subs x8, x8, #52 cset w8, hi tbnz w8, #0, LBB0_10 ; %bb.3: ; in Loop: Header=BB0_1 Depth=1 ldr x11, [sp, #80] ; 8-byte Folded Reload adrp x10, lJTI0_0@PAGE add x10, x10, lJTI0_0@PAGEOFF Ltmp0: adr x8, Ltmp0 ldrsw x9, [x10, x11, lsl #2] add x8, x8, x9 br x8 LBB0_4: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #96] ; 8-byte Folded Reload ldr x8, [x8] str x8, [sp, #168] b LBB0_11 LBB0_5: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #96] ; 8-byte Folded Reload ldr x8, [x8] str x8, [sp, #160] b LBB0_11 LBB0_6: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #96] ; 8-byte Folded Reload ldr x0, [x8] bl _atoi str w0, [sp, #176] b LBB0_11 LBB0_7: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #96] ; 8-byte Folded Reload ldr x0, [x8] bl _atoi str w0, [sp, #156] b LBB0_11 LBB0_8: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #96] ; 8-byte Folded Reload ldr x8, [x8] str x8, [sp, #144] b LBB0_11 LBB0_9: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #96] ; 8-byte Folded Reload ldr x8, [x8] str x8, [sp, #136] b LBB0_11 LBB0_10: ; in Loop: Header=BB0_1 Depth=1 bl _usage b LBB0_11 LBB0_11: ; in Loop: Header=BB0_1 Depth=1 b LBB0_1 LBB0_12: ldr x8, [sp, #168] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB0_14 b LBB0_13 LBB0_13: ldr x8, [sp, #160] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB0_15 b LBB0_14 LBB0_14: bl _usage b LBB0_15 LBB0_15: str wzr, [sp, #132] b LBB0_16 LBB0_16: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #132] ldr w9, [sp, #176] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_27 b LBB0_17 LBB0_17: ; in Loop: Header=BB0_16 Depth=1 ldr w8, [sp, #132] mov w10, #2 sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_19 b LBB0_18 LBB0_18: ; in Loop: Header=BB0_16 Depth=1 ldr x8, [sp, #160] str x8, [sp, #72] ; 8-byte Folded Spill b LBB0_20 LBB0_19: ; in Loop: Header=BB0_16 Depth=1 ldr x8, [sp, #168] str x8, [sp, #72] ; 8-byte Folded Spill b LBB0_20 LBB0_20: ; in Loop: Header=BB0_16 Depth=1 ldr x8, [sp, #72] ; 8-byte Folded Reload str x8, [sp, #120] ldr w8, [sp, #132] mov w10, #2 sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_22 b LBB0_21 LBB0_21: ; in Loop: Header=BB0_16 Depth=1 ldr x8, [sp, #168] str x8, [sp, #64] ; 8-byte Folded Spill b LBB0_23 LBB0_22: ; in Loop: Header=BB0_16 Depth=1 ldr x8, [sp, #160] str x8, [sp, #64] ; 8-byte Folded Spill b LBB0_23 LBB0_23: ; in Loop: Header=BB0_16 Depth=1 ldr x8, [sp, #64] ; 8-byte Folded Reload str x8, [sp, #112] ldr x13, [sp, #144] ldr x12, [sp, #120] ldr x11, [sp, #112] ldr w8, [sp, #156] ; implicit-def: $x10 mov x10, x8 ldr x8, [sp, #136] mov x9, sp str x13, [x9] str x12, [x9, #8] str x11, [x9, #16] str x10, [x9, #24] str x8, [x9, #32] add x0, sp, #200 str x0, [sp, #56] ; 8-byte Folded Spill mov w1, #0 mov x2, #1024 adrp x3, l_.str.3@PAGE add x3, x3, l_.str.3@PAGEOFF bl ___sprintf_chk ldr x8, [sp, #88] ; 8-byte Folded Reload ldr x0, [x8] ldr x11, [sp, #120] ldr x10, [sp, #112] ldr w9, [sp, #132] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x11, [x9] str x10, [x9, #8] str x8, [x9, #16] adrp x1, l_.str.4@PAGE add x1, x1, l_.str.4@PAGEOFF bl _fprintf ldr x8, [sp, #88] ; 8-byte Folded Reload ldr x0, [x8] bl _fflush ldr x0, [sp, #56] ; 8-byte Folded Reload bl _system str w0, [sp, #108] ldr w8, [sp, #108] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_25 b LBB0_24 LBB0_24: ldr x8, [sp, #88] ; 8-byte Folded Reload ldr x0, [x8] ldr w9, [sp, #108] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x1, l_.str.5@PAGE add x1, x1, l_.str.5@PAGEOFF bl _fprintf ldr w8, [sp, #108] str w8, [sp, #196] b LBB0_28 LBB0_25: ; in Loop: Header=BB0_16 Depth=1 b LBB0_26 LBB0_26: ; in Loop: Header=BB0_16 Depth=1 ldr w8, [sp, #132] add w8, w8, #1 str w8, [sp, #132] b LBB0_16 LBB0_27: ldr x8, [sp, #88] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.6@PAGE add x1, x1, l_.str.6@PAGEOFF bl _fprintf str wzr, [sp, #196] b LBB0_28 LBB0_28: ldr w8, [sp, #196] str w8, [sp, #52] ; 4-byte Folded Spill ldur x9, [x29, #-24] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_30 b LBB0_29 LBB0_29: bl ___stack_chk_fail LBB0_30: ldr w0, [sp, #52] ; 4-byte Folded Reload add sp, sp, #1232 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x28, x27, [sp], #32 ; 16-byte Folded Reload ret .cfi_endproc .p2align 2 lJTI0_0: .long LBB0_7-Ltmp0 .long LBB0_10-Ltmp0 .long LBB0_10-Ltmp0 .long LBB0_10-Ltmp0 .long LBB0_10-Ltmp0 .long LBB0_10-Ltmp0 .long LBB0_10-Ltmp0 .long LBB0_10-Ltmp0 .long LBB0_10-Ltmp0 .long LBB0_10-Ltmp0 .long LBB0_10-Ltmp0 .long LBB0_10-Ltmp0 .long LBB0_10-Ltmp0 .long LBB0_10-Ltmp0 .long LBB0_10-Ltmp0 .long LBB0_10-Ltmp0 .long LBB0_10-Ltmp0 .long LBB0_10-Ltmp0 .long LBB0_10-Ltmp0 .long LBB0_10-Ltmp0 .long LBB0_10-Ltmp0 .long LBB0_10-Ltmp0 .long LBB0_10-Ltmp0 .long LBB0_10-Ltmp0 .long LBB0_10-Ltmp0 .long LBB0_10-Ltmp0 .long LBB0_10-Ltmp0 .long LBB0_10-Ltmp0 .long LBB0_10-Ltmp0 .long LBB0_10-Ltmp0 .long LBB0_10-Ltmp0 .long LBB0_4-Ltmp0 .long LBB0_5-Ltmp0 .long LBB0_10-Ltmp0 .long LBB0_10-Ltmp0 .long LBB0_10-Ltmp0 .long LBB0_10-Ltmp0 .long LBB0_10-Ltmp0 .long LBB0_10-Ltmp0 .long LBB0_10-Ltmp0 .long LBB0_10-Ltmp0 .long LBB0_10-Ltmp0 .long LBB0_10-Ltmp0 .long LBB0_10-Ltmp0 .long LBB0_6-Ltmp0 .long LBB0_9-Ltmp0 .long LBB0_10-Ltmp0 .long LBB0_10-Ltmp0 .long LBB0_10-Ltmp0 .long LBB0_10-Ltmp0 .long LBB0_10-Ltmp0 .long LBB0_10-Ltmp0 .long LBB0_8-Ltmp0 ; -- End function .p2align 2 ; -- Begin function usage _usage: ; @usage .cfi_startproc ; %bb.0: stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill .cfi_def_cfa_offset 16 mov x29, sp .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] ldr x0, [x8] adrp x1, l_.str.7@PAGE add x1, x1, l_.str.7@PAGEOFF bl _fprintf mov w0, #1 bl _exit .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "./vbucketmigrator" l_.str.1: ; @.str.1 .space 1 l_.str.2: ; @.str.2 .asciz "a:b:B:n:v:o:?" l_.str.3: ; @.str.3 .asciz "%s -h %s -d %s -b %u -t %s" l_.str.4: ; @.str.4 .asciz "\rMove data from %s to %s. (%u)" l_.str.5: ; @.str.5 .asciz " ERROR: vbucketmigrator failed with: %d\n" l_.str.6: ; @.str.6 .asciz "\n" l_.str.7: ; @.str.7 .asciz "Usage: moveit -a servera -b serverb [-n num] [-B bid] [-v vbucketmigrator] [-o options]\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 $1200, %rsp ## imm = 0x4B0 movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -1044(%rbp) movl %edi, -1048(%rbp) movq %rsi, -1056(%rbp) movl $5000, -1064(%rbp) ## imm = 0x1388 movq $0, -1072(%rbp) movq $0, -1080(%rbp) movl $0, -1084(%rbp) leaq L_.str(%rip), %rax movq %rax, -1096(%rbp) leaq L_.str.1(%rip), %rax movq %rax, -1104(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movl -1048(%rbp), %edi movq -1056(%rbp), %rsi leaq L_.str.2(%rip), %rdx callq _getopt movl %eax, -1060(%rbp) cmpl $-1, %eax je LBB0_11 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl -1060(%rbp), %eax addl $-66, %eax movl %eax, %ecx movq %rcx, -1144(%rbp) ## 8-byte Spill subl $52, %eax ja LBB0_9 ## %bb.30: ## in Loop: Header=BB0_1 Depth=1 movq -1144(%rbp), %rax ## 8-byte Reload leaq LJTI0_0(%rip), %rcx movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax LBB0_3: ## in Loop: Header=BB0_1 Depth=1 movq _optarg@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -1072(%rbp) jmp LBB0_10 LBB0_4: ## in Loop: Header=BB0_1 Depth=1 movq _optarg@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -1080(%rbp) jmp LBB0_10 LBB0_5: ## in Loop: Header=BB0_1 Depth=1 movq _optarg@GOTPCREL(%rip), %rax movq (%rax), %rdi callq _atoi movl %eax, -1064(%rbp) jmp LBB0_10 LBB0_6: ## in Loop: Header=BB0_1 Depth=1 movq _optarg@GOTPCREL(%rip), %rax movq (%rax), %rdi callq _atoi movl %eax, -1084(%rbp) jmp LBB0_10 LBB0_7: ## in Loop: Header=BB0_1 Depth=1 movq _optarg@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -1096(%rbp) jmp LBB0_10 LBB0_8: ## in Loop: Header=BB0_1 Depth=1 movq _optarg@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -1104(%rbp) jmp LBB0_10 LBB0_9: ## in Loop: Header=BB0_1 Depth=1 callq _usage LBB0_10: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_1 LBB0_11: cmpq $0, -1072(%rbp) je LBB0_13 ## %bb.12: cmpq $0, -1080(%rbp) jne LBB0_14 LBB0_13: callq _usage LBB0_14: movl $0, -1108(%rbp) LBB0_15: ## =>This Inner Loop Header: Depth=1 movl -1108(%rbp), %eax cmpl -1064(%rbp), %eax jge LBB0_26 ## %bb.16: ## in Loop: Header=BB0_15 Depth=1 movl -1108(%rbp), %eax movl $2, %ecx cltd idivl %ecx cmpl $0, %edx je LBB0_18 ## %bb.17: ## in Loop: Header=BB0_15 Depth=1 movq -1080(%rbp), %rax movq %rax, -1152(%rbp) ## 8-byte Spill jmp LBB0_19 LBB0_18: ## in Loop: Header=BB0_15 Depth=1 movq -1072(%rbp), %rax movq %rax, -1152(%rbp) ## 8-byte Spill LBB0_19: ## in Loop: Header=BB0_15 Depth=1 movq -1152(%rbp), %rax ## 8-byte Reload movq %rax, -1120(%rbp) movl -1108(%rbp), %eax movl $2, %ecx cltd idivl %ecx cmpl $0, %edx je LBB0_21 ## %bb.20: ## in Loop: Header=BB0_15 Depth=1 movq -1072(%rbp), %rax movq %rax, -1160(%rbp) ## 8-byte Spill jmp LBB0_22 LBB0_21: ## in Loop: Header=BB0_15 Depth=1 movq -1080(%rbp), %rax movq %rax, -1160(%rbp) ## 8-byte Spill LBB0_22: ## in Loop: Header=BB0_15 Depth=1 movq -1160(%rbp), %rax ## 8-byte Reload movq %rax, -1128(%rbp) leaq -1040(%rbp), %rdi movq -1096(%rbp), %r8 movq -1120(%rbp), %r9 movq -1128(%rbp), %r11 movl -1084(%rbp), %r10d movq -1104(%rbp), %rax xorl %esi, %esi movl $1024, %edx ## imm = 0x400 leaq L_.str.3(%rip), %rcx movq %r11, (%rsp) movl %r10d, 8(%rsp) movq %rax, 16(%rsp) movb $0, %al callq ___sprintf_chk movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movq -1120(%rbp), %rdx movq -1128(%rbp), %rcx movl -1108(%rbp), %r8d leaq L_.str.4(%rip), %rsi movb $0, %al callq _fprintf movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi callq _fflush leaq -1040(%rbp), %rdi callq _system movl %eax, -1132(%rbp) cmpl $0, -1132(%rbp) je LBB0_24 ## %bb.23: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movl -1132(%rbp), %edx leaq L_.str.5(%rip), %rsi movb $0, %al callq _fprintf movl -1132(%rbp), %eax movl %eax, -1044(%rbp) jmp LBB0_27 LBB0_24: ## in Loop: Header=BB0_15 Depth=1 jmp LBB0_25 LBB0_25: ## in Loop: Header=BB0_15 Depth=1 movl -1108(%rbp), %eax addl $1, %eax movl %eax, -1108(%rbp) jmp LBB0_15 LBB0_26: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.6(%rip), %rsi movb $0, %al callq _fprintf movl $0, -1044(%rbp) LBB0_27: movl -1044(%rbp), %eax movl %eax, -1164(%rbp) ## 4-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_29 ## %bb.28: movl -1164(%rbp), %eax ## 4-byte Reload addq $1200, %rsp ## imm = 0x4B0 popq %rbp retq LBB0_29: callq ___stack_chk_fail ud2 .cfi_endproc .p2align 2, 0x90 .data_region jt32 .set L0_0_set_6, LBB0_6-LJTI0_0 .set L0_0_set_9, LBB0_9-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_8, LBB0_8-LJTI0_0 .set L0_0_set_7, LBB0_7-LJTI0_0 LJTI0_0: .long L0_0_set_6 .long L0_0_set_9 .long L0_0_set_9 .long L0_0_set_9 .long L0_0_set_9 .long L0_0_set_9 .long L0_0_set_9 .long L0_0_set_9 .long L0_0_set_9 .long L0_0_set_9 .long L0_0_set_9 .long L0_0_set_9 .long L0_0_set_9 .long L0_0_set_9 .long L0_0_set_9 .long L0_0_set_9 .long L0_0_set_9 .long L0_0_set_9 .long L0_0_set_9 .long L0_0_set_9 .long L0_0_set_9 .long L0_0_set_9 .long L0_0_set_9 .long L0_0_set_9 .long L0_0_set_9 .long L0_0_set_9 .long L0_0_set_9 .long L0_0_set_9 .long L0_0_set_9 .long L0_0_set_9 .long L0_0_set_9 .long L0_0_set_3 .long L0_0_set_4 .long L0_0_set_9 .long L0_0_set_9 .long L0_0_set_9 .long L0_0_set_9 .long L0_0_set_9 .long L0_0_set_9 .long L0_0_set_9 .long L0_0_set_9 .long L0_0_set_9 .long L0_0_set_9 .long L0_0_set_9 .long L0_0_set_5 .long L0_0_set_8 .long L0_0_set_9 .long L0_0_set_9 .long L0_0_set_9 .long L0_0_set_9 .long L0_0_set_9 .long L0_0_set_9 .long L0_0_set_7 .end_data_region ## -- End function .p2align 4, 0x90 ## -- Begin function usage _usage: ## @usage .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.7(%rip), %rsi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _fprintf movl $1, %edi callq _exit .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "./vbucketmigrator" L_.str.1: ## @.str.1 .space 1 L_.str.2: ## @.str.2 .asciz "a:b:B:n:v:o:?" L_.str.3: ## @.str.3 .asciz "%s -h %s -d %s -b %u -t %s" L_.str.4: ## @.str.4 .asciz "\rMove data from %s to %s. (%u)" L_.str.5: ## @.str.5 .asciz " ERROR: vbucketmigrator failed with: %d\n" L_.str.6: ## @.str.6 .asciz "\n" L_.str.7: ## @.str.7 .asciz "Usage: moveit -a servera -b serverb [-n num] [-B bid] [-v vbucketmigrator] [-o options]\n" .subsections_via_symbols
the_stack_data/128619.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: stp x28, x27, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w27, -24 .cfi_offset w28, -32 sub sp, sp, #1200 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] str wzr, [sp, #288] str w0, [sp, #284] str x1, [sp, #272] str wzr, [sp, #264] mov w8, #-1 str w8, [sp, #248] adrp x8, l___const.main.end@PAGE add x8, x8, l___const.main.end@PAGEOFF ldr w8, [x8] str w8, [sp, #244] adrp x8, l___const.main.endmdl@PAGE add x8, x8, l___const.main.endmdl@PAGEOFF ldr w10, [x8] add x9, sp, #236 str w10, [sp, #236] ldur w8, [x8, #3] stur w8, [x9, #3] adrp x8, l___const.main.atom@PAGE add x8, x8, l___const.main.atom@PAGEOFF ldr w9, [x8] str w9, [sp, #228] ldrb w8, [x8, #4] strb w8, [sp, #232] adrp x8, l___const.main.ter@PAGE add x8, x8, l___const.main.ter@PAGEOFF ldr w8, [x8] str w8, [sp, #224] adrp x8, l___const.main.ca@PAGE add x8, x8, l___const.main.ca@PAGEOFF ldrh w9, [x8] strh w9, [sp, #220] ldrb w8, [x8, #2] strb w8, [sp, #222] str wzr, [sp, #216] ldr x8, [sp, #272] ldr x8, [x8, #8] 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 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 adrp x0, l_.str.9@PAGE add x0, x0, l_.str.9@PAGEOFF bl _printf adrp x0, l_.str.10@PAGE add x0, x0, l_.str.10@PAGEOFF bl _printf adrp x0, l_.str.11@PAGE add x0, x0, l_.str.11@PAGEOFF bl _printf adrp x0, l_.str.12@PAGE add x0, x0, l_.str.12@PAGEOFF bl _printf mov w0, #1 bl _exit LBB0_2: mov x0, #100 bl _malloc str x0, [sp, #208] ldr x0, [sp, #208] ldr x8, [sp, #272] ldr x8, [x8, #8] mov x9, sp str x8, [x9] mov w1, #0 mov x2, #-1 adrp x3, l_.str.13@PAGE add x3, x3, l_.str.13@PAGEOFF bl ___sprintf_chk ldr x0, [sp, #208] adrp x1, l_.str.14@PAGE add x1, x1, l_.str.14@PAGEOFF bl _fopen str x0, [sp, #200] ldr x8, [sp, #200] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: ldr x8, [sp, #272] 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 mov w0, #1 bl _exit LBB0_4: ldr x0, [sp, #208] bl _free adrp x0, l_.str.16@PAGE add x0, x0, l_.str.16@PAGEOFF bl _printf ldr x8, [sp, #272] ldr x8, [x8, #8] mov x9, sp str x8, [x9] adrp x0, l_.str.17@PAGE add x0, x0, l_.str.17@PAGEOFF bl _printf mov x0, #100 bl _malloc str x0, [sp, #208] ldr x0, [sp, #208] ldr x8, [sp, #272] ldr x8, [x8, #8] mov x9, sp str x8, [x9] mov w1, #0 mov x2, #-1 adrp x3, l_.str.18@PAGE add x3, x3, l_.str.18@PAGEOFF bl ___sprintf_chk ldr x0, [sp, #208] adrp x1, l_.str.19@PAGE add x1, x1, l_.str.19@PAGEOFF bl _fopen str x0, [sp, #192] ldr x8, [sp, #192] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: ldr x8, [sp, #208] mov x9, sp str x8, [x9] adrp x0, l_.str.20@PAGE add x0, x0, l_.str.20@PAGEOFF bl _printf mov w0, #1 bl _exit LBB0_6: ldr x8, [sp, #272] ldr x8, [x8, #16] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB0_32 b LBB0_7 LBB0_7: b LBB0_8 LBB0_8: ; =>This Inner Loop Header: Depth=1 ldr x0, [sp, #200] mov x9, sp sub x8, x29, #124 str x8, [sp, #184] ; 8-byte Folded Spill str x8, [x9] adrp x1, l_.str.21@PAGE add x1, x1, l_.str.21@PAGEOFF bl _fscanf ldr x0, [sp, #184] ; 8-byte Folded Reload add x1, sp, #228 bl _Compare_strings subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB0_23 b LBB0_9 LBB0_9: ; in Loop: Header=BB0_8 Depth=1 ldr x0, [sp, #200] mov x9, sp sub x8, x29, #124 str x8, [sp, #176] ; 8-byte Folded Spill str x8, [x9] adrp x1, l_.str.21@PAGE add x1, x1, l_.str.21@PAGEOFF str x1, [sp, #168] ; 8-byte Folded Spill bl _fscanf ldr x1, [sp, #168] ; 8-byte Folded Reload ldr x8, [sp, #176] ; 8-byte Folded Reload ldr x0, [sp, #200] mov x9, sp str x8, [x9] bl _fscanf ldr x0, [sp, #176] ; 8-byte Folded Reload add x1, sp, #220 bl _Compare_strings subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB0_22 b LBB0_10 LBB0_10: ; in Loop: Header=BB0_8 Depth=1 ldr x0, [sp, #200] mov x9, sp sub x8, x29, #124 str x8, [sp, #160] ; 8-byte Folded Spill str x8, [x9] adrp x1, l_.str.21@PAGE add x1, x1, l_.str.21@PAGEOFF bl _fscanf ldr x8, [sp, #160] ; 8-byte Folded Reload ldr x0, [sp, #200] mov x9, sp str x8, [x9] adrp x1, l_.str.22@PAGE add x1, x1, l_.str.22@PAGEOFF bl _fscanf ldr x0, [sp, #200] mov x9, sp add x8, sp, #268 str x8, [x9] adrp x1, l_.str.23@PAGE add x1, x1, l_.str.23@PAGEOFF bl _fscanf ldr w8, [sp, #268] ldr w9, [sp, #248] add w9, w9, #1 subs w8, w8, w9 cset w8, eq tbnz w8, #0, LBB0_19 b LBB0_11 LBB0_11: ; in Loop: Header=BB0_8 Depth=1 ldr w8, [sp, #264] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_19 b LBB0_12 LBB0_12: ; in Loop: Header=BB0_8 Depth=1 ldr w8, [sp, #268] ldr w9, [sp, #248] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_14 b LBB0_13 LBB0_13: ; in Loop: Header=BB0_8 Depth=1 b LBB0_24 LBB0_14: ; in Loop: Header=BB0_8 Depth=1 ldr w8, [sp, #268] ldr w9, [sp, #248] add w9, w9, #1 subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB0_16 b LBB0_15 LBB0_15: ; in Loop: Header=BB0_8 Depth=1 ldr w8, [sp, #248] add w8, w8, #1 ldrsw x10, [sp, #216] add x9, sp, #692 str w8, [x9, x10, lsl #2] ldr w8, [sp, #268] subs w10, w8, #1 ldrsw x11, [sp, #216] add x8, sp, #292 str w10, [x8, x11, lsl #2] ldrsw x10, [sp, #216] ldr w9, [x9, x10, lsl #2] ; implicit-def: $x11 mov x11, x9 ldrsw x9, [sp, #216] ldr w9, [x8, x9, lsl #2] ; implicit-def: $x8 mov x8, x9 ldr w9, [sp, #268] ldr w10, [sp, #248] subs w9, w9, w10 subs w10, w9, #1 mov x9, sp str x11, [x9] str x8, [x9, #8] ; implicit-def: $x8 mov x8, x10 str x8, [x9, #16] adrp x0, l_.str.24@PAGE add x0, x0, l_.str.24@PAGEOFF bl _printf ldr w8, [sp, #216] add w8, w8, #1 str w8, [sp, #216] b LBB0_17 LBB0_16: ldr w9, [sp, #268] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.25@PAGE add x0, x0, l_.str.25@PAGEOFF bl _printf mov w0, #1 bl _exit LBB0_17: ; in Loop: Header=BB0_8 Depth=1 b LBB0_18 LBB0_18: ; in Loop: Header=BB0_8 Depth=1 b LBB0_19 LBB0_19: ; in Loop: Header=BB0_8 Depth=1 ldr w8, [sp, #268] str w8, [sp, #248] ldr w8, [sp, #264] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_21 b LBB0_20 LBB0_20: ; in Loop: Header=BB0_8 Depth=1 ldr w8, [sp, #248] str w8, [sp, #260] ldr w9, [sp, #260] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.26@PAGE add x0, x0, l_.str.26@PAGEOFF bl _printf b LBB0_21 LBB0_21: ; in Loop: Header=BB0_8 Depth=1 ldr x0, [sp, #200] mov x9, sp sub x8, x29, #124 str x8, [sp, #152] ; 8-byte Folded Spill str x8, [x9] adrp x1, l_.str.21@PAGE add x1, x1, l_.str.21@PAGEOFF str x1, [sp, #144] ; 8-byte Folded Spill bl _fscanf ldr x8, [sp, #152] ; 8-byte Folded Reload ldr x0, [sp, #192] mov x9, sp str x8, [x9] adrp x1, l_.str.27@PAGE add x1, x1, l_.str.27@PAGEOFF str x1, [sp, #136] ; 8-byte Folded Spill bl _fprintf ldr x1, [sp, #144] ; 8-byte Folded Reload ldr x8, [sp, #152] ; 8-byte Folded Reload ldr x0, [sp, #200] mov x9, sp str x8, [x9] bl _fscanf ldr x1, [sp, #136] ; 8-byte Folded Reload ldr x8, [sp, #152] ; 8-byte Folded Reload ldr x0, [sp, #192] mov x9, sp str x8, [x9] bl _fprintf ldr x1, [sp, #144] ; 8-byte Folded Reload ldr x8, [sp, #152] ; 8-byte Folded Reload ldr x0, [sp, #200] mov x9, sp str x8, [x9] bl _fscanf ldr x8, [sp, #152] ; 8-byte Folded Reload ldr x0, [sp, #192] mov x9, sp str x8, [x9] adrp x1, l_.str.28@PAGE add x1, x1, l_.str.28@PAGEOFF bl _fprintf ldr w8, [sp, #264] add w8, w8, #1 str w8, [sp, #264] b LBB0_22 LBB0_22: ; in Loop: Header=BB0_8 Depth=1 b LBB0_23 LBB0_23: ; in Loop: Header=BB0_8 Depth=1 b LBB0_24 LBB0_24: ; in Loop: Header=BB0_8 Depth=1 sub x0, x29, #124 add x1, sp, #244 bl _Compare_strings subs w8, w0, #0 cset w8, ne mov w9, #0 str w9, [sp, #132] ; 4-byte Folded Spill tbnz w8, #0, LBB0_27 b LBB0_25 LBB0_25: ; in Loop: Header=BB0_8 Depth=1 sub x0, x29, #124 add x1, sp, #236 bl _Compare_strings subs w8, w0, #0 cset w8, ne mov w9, #0 str w9, [sp, #132] ; 4-byte Folded Spill tbnz w8, #0, LBB0_27 b LBB0_26 LBB0_26: ; in Loop: Header=BB0_8 Depth=1 sub x0, x29, #124 add x1, sp, #224 bl _Compare_strings subs w8, w0, #0 cset w8, eq str w8, [sp, #132] ; 4-byte Folded Spill b LBB0_27 LBB0_27: ; in Loop: Header=BB0_8 Depth=1 ldr w8, [sp, #132] ; 4-byte Folded Reload tbnz w8, #0, LBB0_8 b LBB0_28 LBB0_28: ldr w8, [sp, #248] str w8, [sp, #256] ldr w8, [sp, #256] ldr w9, [sp, #260] subs w8, w8, w9 add w8, w8, #1 str w8, [sp, #252] ldr w9, [sp, #256] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.29@PAGE add x0, x0, l_.str.29@PAGEOFF bl _printf ldr w9, [sp, #252] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.30@PAGE add x0, x0, l_.str.30@PAGEOFF bl _printf ldr w8, [sp, #216] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_30 b LBB0_29 LBB0_29: ldr w9, [sp, #264] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.31@PAGE add x0, x0, l_.str.31@PAGEOFF bl _printf adrp x0, l_.str.16@PAGE add x0, x0, l_.str.16@PAGEOFF str x0, [sp, #120] ; 8-byte Folded Spill bl _printf adrp x0, l_.str.32@PAGE add x0, x0, l_.str.32@PAGEOFF str x0, [sp, #96] ; 8-byte Folded Spill bl _printf adrp x0, l_.str.33@PAGE add x0, x0, l_.str.33@PAGEOFF bl _printf adrp x0, l_.str.34@PAGE add x0, x0, l_.str.34@PAGEOFF bl _printf ldr x0, [sp, #96] ; 8-byte Folded Reload bl _printf adrp x0, l_.str.35@PAGE add x0, x0, l_.str.35@PAGEOFF bl _printf ldr w0, [sp, #260] ldr w1, [sp, #256] ldr w2, [sp, #216] add x3, sp, #692 str x3, [sp, #104] ; 8-byte Folded Spill add x4, sp, #292 str x4, [sp, #112] ; 8-byte Folded Spill mov w5, #100 bl _mapOfMissings ldr x0, [sp, #120] ; 8-byte Folded Reload bl _printf adrp x0, l_.str.36@PAGE add x0, x0, l_.str.36@PAGEOFF bl _printf ldr x3, [sp, #104] ; 8-byte Folded Reload ldr x4, [sp, #112] ; 8-byte Folded Reload ldr w0, [sp, #260] ldr w1, [sp, #256] ldr w2, [sp, #216] ldr w5, [sp, #252] bl _mapOfMissings ldr x0, [sp, #120] ; 8-byte Folded Reload bl _printf adrp x0, l_.str.37@PAGE add x0, x0, l_.str.37@PAGEOFF bl _printf adrp x0, l_.str.38@PAGE add x0, x0, l_.str.38@PAGEOFF bl _printf ldr x0, [sp, #120] ; 8-byte Folded Reload bl _printf b LBB0_31 LBB0_30: adrp x0, l_.str.39@PAGE add x0, x0, l_.str.39@PAGEOFF bl _printf b LBB0_31 LBB0_31: b LBB0_52 LBB0_32: ldr x8, [sp, #272] ldr x0, [x8, #16] bl _atoi str w0, [sp, #260] ldr w8, [sp, #260] subs w8, w8, #1 str w8, [sp, #248] b LBB0_33 LBB0_33: ; =>This Inner Loop Header: Depth=1 ldr x0, [sp, #200] mov x9, sp sub x8, x29, #124 str x8, [sp, #88] ; 8-byte Folded Spill str x8, [x9] adrp x1, l_.str.21@PAGE add x1, x1, l_.str.21@PAGEOFF bl _fscanf ldr x0, [sp, #88] ; 8-byte Folded Reload add x1, sp, #228 bl _Compare_strings subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB0_46 b LBB0_34 LBB0_34: ; in Loop: Header=BB0_33 Depth=1 ldr x0, [sp, #200] mov x9, sp sub x8, x29, #124 str x8, [sp, #80] ; 8-byte Folded Spill str x8, [x9] adrp x1, l_.str.21@PAGE add x1, x1, l_.str.21@PAGEOFF str x1, [sp, #72] ; 8-byte Folded Spill bl _fscanf ldr x1, [sp, #72] ; 8-byte Folded Reload ldr x8, [sp, #80] ; 8-byte Folded Reload ldr x0, [sp, #200] mov x9, sp str x8, [x9] bl _fscanf ldr x0, [sp, #80] ; 8-byte Folded Reload add x1, sp, #220 bl _Compare_strings subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB0_45 b LBB0_35 LBB0_35: ; in Loop: Header=BB0_33 Depth=1 ldr x0, [sp, #200] mov x9, sp sub x8, x29, #124 str x8, [sp, #64] ; 8-byte Folded Spill str x8, [x9] adrp x1, l_.str.21@PAGE add x1, x1, l_.str.21@PAGEOFF bl _fscanf ldr x8, [sp, #64] ; 8-byte Folded Reload ldr x0, [sp, #200] mov x9, sp str x8, [x9] adrp x1, l_.str.22@PAGE add x1, x1, l_.str.22@PAGEOFF bl _fscanf ldr x0, [sp, #200] mov x9, sp add x8, sp, #268 str x8, [x9] adrp x1, l_.str.23@PAGE add x1, x1, l_.str.23@PAGEOFF bl _fscanf ldr w8, [sp, #268] ldr w9, [sp, #260] subs w8, w8, w9 cset w8, lt tbnz w8, #0, LBB0_44 b LBB0_36 LBB0_36: ; in Loop: Header=BB0_33 Depth=1 ldr w8, [sp, #268] ldr w9, [sp, #248] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_38 b LBB0_37 LBB0_37: ; in Loop: Header=BB0_33 Depth=1 b LBB0_47 LBB0_38: ; in Loop: Header=BB0_33 Depth=1 ldr w8, [sp, #268] ldr w9, [sp, #248] add w9, w9, #1 subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB0_41 b LBB0_39 LBB0_39: ; in Loop: Header=BB0_33 Depth=1 ldr w8, [sp, #264] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_41 b LBB0_40 LBB0_40: b LBB0_51 LBB0_41: ; in Loop: Header=BB0_33 Depth=1 ldr x0, [sp, #200] mov x9, sp sub x8, x29, #124 str x8, [sp, #56] ; 8-byte Folded Spill str x8, [x9] adrp x1, l_.str.21@PAGE add x1, x1, l_.str.21@PAGEOFF str x1, [sp, #48] ; 8-byte Folded Spill bl _fscanf ldr x8, [sp, #56] ; 8-byte Folded Reload ldr x0, [sp, #192] mov x9, sp str x8, [x9] adrp x1, l_.str.27@PAGE add x1, x1, l_.str.27@PAGEOFF str x1, [sp, #40] ; 8-byte Folded Spill bl _fprintf ldr x1, [sp, #48] ; 8-byte Folded Reload ldr x8, [sp, #56] ; 8-byte Folded Reload ldr x0, [sp, #200] mov x9, sp str x8, [x9] bl _fscanf ldr x1, [sp, #40] ; 8-byte Folded Reload ldr x8, [sp, #56] ; 8-byte Folded Reload ldr x0, [sp, #192] mov x9, sp str x8, [x9] bl _fprintf ldr x1, [sp, #48] ; 8-byte Folded Reload ldr x8, [sp, #56] ; 8-byte Folded Reload ldr x0, [sp, #200] mov x9, sp str x8, [x9] bl _fscanf ldr x8, [sp, #56] ; 8-byte Folded Reload ldr x0, [sp, #192] mov x9, sp str x8, [x9] adrp x1, l_.str.28@PAGE add x1, x1, l_.str.28@PAGEOFF bl _fprintf b LBB0_42 LBB0_42: ; in Loop: Header=BB0_33 Depth=1 b LBB0_43 LBB0_43: ; in Loop: Header=BB0_33 Depth=1 ldr w8, [sp, #264] add w8, w8, #1 str w8, [sp, #264] b LBB0_44 LBB0_44: ; in Loop: Header=BB0_33 Depth=1 ldr w8, [sp, #268] str w8, [sp, #248] b LBB0_45 LBB0_45: ; in Loop: Header=BB0_33 Depth=1 b LBB0_46 LBB0_46: ; in Loop: Header=BB0_33 Depth=1 b LBB0_47 LBB0_47: ; in Loop: Header=BB0_33 Depth=1 sub x0, x29, #124 add x1, sp, #244 bl _Compare_strings subs w8, w0, #0 cset w8, ne mov w9, #0 str w9, [sp, #36] ; 4-byte Folded Spill tbnz w8, #0, LBB0_50 b LBB0_48 LBB0_48: ; in Loop: Header=BB0_33 Depth=1 sub x0, x29, #124 add x1, sp, #236 bl _Compare_strings subs w8, w0, #0 cset w8, ne mov w9, #0 str w9, [sp, #36] ; 4-byte Folded Spill tbnz w8, #0, LBB0_50 b LBB0_49 LBB0_49: ; in Loop: Header=BB0_33 Depth=1 sub x0, x29, #124 add x1, sp, #224 bl _Compare_strings subs w8, w0, #0 cset w8, eq str w8, [sp, #36] ; 4-byte Folded Spill b LBB0_50 LBB0_50: ; in Loop: Header=BB0_33 Depth=1 ldr w8, [sp, #36] ; 4-byte Folded Reload tbnz w8, #0, LBB0_33 b LBB0_51 LBB0_51: ldr w9, [sp, #264] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.40@PAGE add x0, x0, l_.str.40@PAGEOFF bl _printf b LBB0_52 LBB0_52: ldr x0, [sp, #192] bl _fclose ldr x0, [sp, #200] bl _fclose ldr x0, [sp, #208] bl _free 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_54 b LBB0_53 LBB0_53: bl ___stack_chk_fail LBB0_54: mov w0, #0 add sp, sp, #1200 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x28, x27, [sp], #32 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .globl _Compare_strings ; -- Begin function Compare_strings .p2align 2 _Compare_strings: ; @Compare_strings .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, #16] str x1, [sp, #8] str wzr, [sp, #4] b LBB1_1 LBB1_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #16] ldrsw x9, [sp, #4] ldrsb w8, [x8, x9] ldr x9, [sp, #8] ldrsw x10, [sp, #4] ldrsb w9, [x9, x10] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB1_3 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #4] add w8, w8, #1 str w8, [sp, #4] b LBB1_4 LBB1_3: str wzr, [sp, #28] b LBB1_9 LBB1_4: ; in Loop: Header=BB1_1 Depth=1 b LBB1_5 LBB1_5: ; in Loop: Header=BB1_1 Depth=1 ldr x8, [sp, #8] ldrsw x9, [sp, #4] ldrsb w8, [x8, x9] subs w8, w8, #0 cset w8, ne mov w9, #1 str w9, [sp] ; 4-byte Folded Spill tbnz w8, #0, LBB1_7 b LBB1_6 LBB1_6: ; in Loop: Header=BB1_1 Depth=1 ldr x8, [sp, #16] ldrsw x9, [sp, #4] ldrsb w8, [x8, x9] subs w8, w8, #0 cset w8, ne str w8, [sp] ; 4-byte Folded Spill b LBB1_7 LBB1_7: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp] ; 4-byte Folded Reload tbnz w8, #0, LBB1_1 b LBB1_8 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 _mapOfMissings ; -- Begin function mapOfMissings .p2align 2 _mapOfMissings: ; @mapOfMissings .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 w0, [x29, #-4] stur w1, [x29, #-8] stur w2, [x29, #-12] stur x3, [x29, #-24] str x4, [sp, #32] str w5, [sp, #28] ldr s1, [sp, #28] ; implicit-def: $d0 fmov s0, s1 sshll.2d v0, v0, #0 ; kill: def $d0 killed $d0 killed $q0 scvtf d0, d0 ldur w8, [x29, #-8] ldur w9, [x29, #-4] subs w8, w8, w9 add w8, w8, #1 scvtf d1, w8 fdiv d0, d0, d1 str d0, [sp, #8] ldur x8, [x29, #-24] ldr w8, [x8] ldur w9, [x29, #-4] subs w8, w8, w9 scvtf d0, w8 ldr d1, [sp, #8] fmul d0, d0, d1 bl _rounding str w0, [sp, #16] str wzr, [sp, #24] b LBB2_1 LBB2_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #24] ldr w9, [sp, #16] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB2_4 b LBB2_2 LBB2_2: ; in Loop: Header=BB2_1 Depth=1 adrp x0, l_.str.41@PAGE add x0, x0, l_.str.41@PAGEOFF bl _printf b LBB2_3 LBB2_3: ; in Loop: Header=BB2_1 Depth=1 ldr w8, [sp, #24] add w8, w8, #1 str w8, [sp, #24] b LBB2_1 LBB2_4: str wzr, [sp, #20] b LBB2_5 LBB2_5: ; =>This Loop Header: Depth=1 ; Child Loop BB2_7 Depth 2 ; Child Loop BB2_11 Depth 2 ldr w8, [sp, #20] ldur w9, [x29, #-12] subs w9, w9, #1 subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB2_16 b LBB2_6 LBB2_6: ; in Loop: Header=BB2_5 Depth=1 ldr x8, [sp, #32] ldrsw x9, [sp, #20] ldr w8, [x8, x9, lsl #2] ldur x9, [x29, #-24] ldrsw x10, [sp, #20] ldr w9, [x9, x10, lsl #2] subs w8, w8, w9 add w8, w8, #1 scvtf d0, w8 ldr d1, [sp, #8] fmul d0, d0, d1 bl _rounding str w0, [sp, #16] str wzr, [sp, #24] b LBB2_7 LBB2_7: ; Parent Loop BB2_5 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #24] ldr w9, [sp, #16] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB2_10 b LBB2_8 LBB2_8: ; in Loop: Header=BB2_7 Depth=2 adrp x0, l_.str.42@PAGE add x0, x0, l_.str.42@PAGEOFF bl _printf b LBB2_9 LBB2_9: ; in Loop: Header=BB2_7 Depth=2 ldr w8, [sp, #24] add w8, w8, #1 str w8, [sp, #24] b LBB2_7 LBB2_10: ; in Loop: Header=BB2_5 Depth=1 ldur x8, [x29, #-24] ldr w9, [sp, #20] add w9, w9, #1 ldr w8, [x8, w9, sxtw #2] ldr x9, [sp, #32] ldrsw x10, [sp, #20] ldr w9, [x9, x10, lsl #2] subs w8, w8, w9 subs w8, w8, #1 scvtf d0, w8 ldr d1, [sp, #8] fmul d0, d0, d1 bl _rounding str w0, [sp, #16] str wzr, [sp, #24] b LBB2_11 LBB2_11: ; Parent Loop BB2_5 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #24] ldr w9, [sp, #16] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB2_14 b LBB2_12 LBB2_12: ; in Loop: Header=BB2_11 Depth=2 adrp x0, l_.str.41@PAGE add x0, x0, l_.str.41@PAGEOFF bl _printf b LBB2_13 LBB2_13: ; in Loop: Header=BB2_11 Depth=2 ldr w8, [sp, #24] add w8, w8, #1 str w8, [sp, #24] b LBB2_11 LBB2_14: ; in Loop: Header=BB2_5 Depth=1 b LBB2_15 LBB2_15: ; in Loop: Header=BB2_5 Depth=1 ldr w8, [sp, #20] add w8, w8, #1 str w8, [sp, #20] b LBB2_5 LBB2_16: ldr x8, [sp, #32] ldur w9, [x29, #-12] subs w9, w9, #1 ldr w8, [x8, w9, sxtw #2] ldur x9, [x29, #-24] ldur w10, [x29, #-12] subs w10, w10, #1 ldr w9, [x9, w10, sxtw #2] subs w8, w8, w9 add w8, w8, #1 scvtf d0, w8 ldr d1, [sp, #8] fmul d0, d0, d1 bl _rounding str w0, [sp, #16] str wzr, [sp, #24] b LBB2_17 LBB2_17: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #24] ldr w9, [sp, #16] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB2_20 b LBB2_18 LBB2_18: ; in Loop: Header=BB2_17 Depth=1 adrp x0, l_.str.42@PAGE add x0, x0, l_.str.42@PAGEOFF bl _printf b LBB2_19 LBB2_19: ; in Loop: Header=BB2_17 Depth=1 ldr w8, [sp, #24] add w8, w8, #1 str w8, [sp, #24] b LBB2_17 LBB2_20: ldur w8, [x29, #-8] ldr x9, [sp, #32] ldur w10, [x29, #-12] subs w10, w10, #1 ldr w9, [x9, w10, sxtw #2] subs w8, w8, w9 scvtf d0, w8 ldr d1, [sp, #8] fmul d0, d0, d1 bl _rounding str w0, [sp, #16] str wzr, [sp, #24] b LBB2_21 LBB2_21: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #24] ldr w9, [sp, #16] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB2_24 b LBB2_22 LBB2_22: ; in Loop: Header=BB2_21 Depth=1 adrp x0, l_.str.41@PAGE add x0, x0, l_.str.41@PAGEOFF bl _printf b LBB2_23 LBB2_23: ; in Loop: Header=BB2_21 Depth=1 ldr w8, [sp, #24] add w8, w8, #1 str w8, [sp, #24] b LBB2_21 LBB2_24: adrp x0, l_.str.16@PAGE add x0, x0, l_.str.16@PAGEOFF bl _printf ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .globl _rounding ; -- Begin function rounding .p2align 2 _rounding: ; @rounding .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] ldur d0, [x29, #-8] add x0, sp, #16 bl _modf str d0, [sp, #8] ldr d0, [sp, #8] fabs d0, d0 fmov d1, #0.50000000 fcmp d0, d1 cset w8, pl tbnz w8, #0, LBB3_2 b LBB3_1 LBB3_1: ldr d0, [sp, #16] fcvtzs w8, d0 str w8, [sp, #4] b LBB3_3 LBB3_2: ldr d0, [sp, #16] fcvtzs w8, d0 add w8, w8, #1 str w8, [sp, #4] b LBB3_3 LBB3_3: ldr w0, [sp, #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___const.main.end: ; @__const.main.end .asciz "END" l___const.main.endmdl: ; @__const.main.endmdl .asciz "ENDMDL" l___const.main.atom: ; @__const.main.atom .asciz "ATOM" l___const.main.ter: ; @__const.main.ter .asciz "TER" l___const.main.ca: ; @__const.main.ca .asciz "CA" l_.str: ; @.str .asciz "\nI need the name of pdb-file without extention as an argument.\nExample: ./pdf_reader 5dn7\n" l_.str.1: ; @.str.1 .asciz "Then I will open 'data/<name_you_gave_me>.pdb'.\n" l_.str.2: ; @.str.2 .asciz "I will find there all CA-atoms coordinates and write them in 'results/xyz_<name_you_gave_me>.dat'.\n" l_.str.3: ; @.str.3 .asciz "In addition I will show you maps of missing atoms if there are any.\n\n" l_.str.4: ; @.str.4 .asciz "In case of missing atoms in the model:" l_.str.5: ; @.str.5 .asciz "If you want to rewrite dat-file with only one segment of the chain\n" l_.str.6: ; @.str.6 .asciz "between two missing parts, or between the beginning/end of the chain and\n" l_.str.7: ; @.str.7 .asciz "the closest missing atom, then call the program again and give number\n" l_.str.8: ; @.str.8 .asciz "of the first atom(or any missing atom before the first) of your segment as the second argument.\n" l_.str.9: ; @.str.9 .asciz "Example: ./pdb_reader 5dn7 366\n" l_.str.10: ; @.str.10 .asciz "The same: ./pdb_reader 5dn7 365\n" l_.str.11: ; @.str.11 .asciz "For the first segment (from the beggining to the first missing atom)\n" l_.str.12: ; @.str.12 .asciz "You can always pass the second argument as 0.\n\n" l_.str.13: ; @.str.13 .asciz "data/%s.pdb" l_.str.14: ; @.str.14 .asciz "r" l_.str.15: ; @.str.15 .asciz "Error: Can't find %s.pdb\nNote: write the name of the file without extantion.\n" l_.str.16: ; @.str.16 .asciz "\n" l_.str.17: ; @.str.17 .asciz "Protein: %s\n" l_.str.18: ; @.str.18 .asciz "results/xyz_%s.dat" l_.str.19: ; @.str.19 .asciz "w" l_.str.20: ; @.str.20 .asciz "Error: Can't open '%s'\nNote: probably you don't have folde 'results'.\n" l_.str.21: ; @.str.21 .asciz "%s" l_.str.22: ; @.str.22 .asciz "%1s" l_.str.23: ; @.str.23 .asciz "%i" l_.str.24: ; @.str.24 .asciz "Missing atoms from %i to %i (%i atoms).\n" l_.str.25: ; @.str.25 .asciz "Error: strange order of atoms numbers before atom %i\n Exit\n" l_.str.26: ; @.str.26 .asciz "The first CA atom has number %i.\n" l_.str.27: ; @.str.27 .asciz "%s\t" l_.str.28: ; @.str.28 .asciz "%s\n" l_.str.29: ; @.str.29 .asciz "The last CA atom has number %i.\n" l_.str.30: ; @.str.30 .asciz "Number of CA atoms in the model: %i.\n" l_.str.31: ; @.str.31 .asciz "But there is data only for %i of them.\n" l_.str.32: ; @.str.32 .asciz "***************************************\n" l_.str.33: ; @.str.33 .asciz "* Maps of missing atoms *\n" l_.str.34: ; @.str.34 .asciz "* atom: . missing atom: 0 *\n" l_.str.35: ; @.str.35 .asciz "Percentage: string length = 100 chars.\n\n" l_.str.36: ; @.str.36 .asciz "Actual: string length = number of atoms in model.\n\n" l_.str.37: ; @.str.37 .asciz "*****************************************\n" l_.str.38: ; @.str.38 .asciz "If you want to rewrite dat-file with only one segment, call\n./pdb-reader (without arguments) for instructions.\n" l_.str.39: ; @.str.39 .asciz "No missing data in pdb-file.\n\n" l_.str.40: ; @.str.40 .asciz "Number of CA atoms: %i.\n" l_.str.41: ; @.str.41 .asciz "." l_.str.42: ; @.str.42 .asciz "0" .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, -916(%rbp) movl %edi, -920(%rbp) movq %rsi, -928(%rbp) movl $0, -936(%rbp) movl $-1, -952(%rbp) movl L___const.main.end(%rip), %eax movl %eax, -956(%rbp) movl L___const.main.endmdl(%rip), %eax movl %eax, -963(%rbp) movw L___const.main.endmdl+4(%rip), %ax movw %ax, -959(%rbp) movb L___const.main.endmdl+6(%rip), %al movb %al, -957(%rbp) movl L___const.main.atom(%rip), %eax movl %eax, -968(%rbp) movb L___const.main.atom+4(%rip), %al movb %al, -964(%rbp) movl L___const.main.ter(%rip), %eax movl %eax, -972(%rbp) movw L___const.main.ca(%rip), %ax movw %ax, -975(%rbp) movb L___const.main.ca+2(%rip), %al movb %al, -973(%rbp) movl $0, -980(%rbp) movq -928(%rbp), %rax cmpq $0, 8(%rax) jne LBB0_2 ## %bb.1: leaq L_.str(%rip), %rdi xorl %eax, %eax ## kill: def $al killed $al killed $eax movb %al, -1009(%rbp) ## 1-byte Spill callq _printf ## kill: def $ecx killed $eax movb -1009(%rbp), %al ## 1-byte Reload leaq L_.str.1(%rip), %rdi callq _printf ## kill: def $ecx killed $eax movb -1009(%rbp), %al ## 1-byte Reload leaq L_.str.2(%rip), %rdi callq _printf ## kill: def $ecx killed $eax movb -1009(%rbp), %al ## 1-byte Reload leaq L_.str.3(%rip), %rdi callq _printf ## kill: def $ecx killed $eax movb -1009(%rbp), %al ## 1-byte Reload leaq L_.str.4(%rip), %rdi callq _printf ## kill: def $ecx killed $eax movb -1009(%rbp), %al ## 1-byte Reload leaq L_.str.5(%rip), %rdi callq _printf ## kill: def $ecx killed $eax movb -1009(%rbp), %al ## 1-byte Reload leaq L_.str.6(%rip), %rdi callq _printf ## kill: def $ecx killed $eax movb -1009(%rbp), %al ## 1-byte Reload leaq L_.str.7(%rip), %rdi callq _printf ## kill: def $ecx killed $eax movb -1009(%rbp), %al ## 1-byte Reload leaq L_.str.8(%rip), %rdi callq _printf ## kill: def $ecx killed $eax movb -1009(%rbp), %al ## 1-byte Reload leaq L_.str.9(%rip), %rdi callq _printf ## kill: def $ecx killed $eax movb -1009(%rbp), %al ## 1-byte Reload leaq L_.str.10(%rip), %rdi callq _printf ## kill: def $ecx killed $eax movb -1009(%rbp), %al ## 1-byte Reload leaq L_.str.11(%rip), %rdi callq _printf ## kill: def $ecx killed $eax movb -1009(%rbp), %al ## 1-byte Reload leaq L_.str.12(%rip), %rdi callq _printf movl $1, %edi callq _exit LBB0_2: movl $100, %edi callq _malloc movq %rax, -992(%rbp) movq -992(%rbp), %rdi movq -928(%rbp), %rax movq 8(%rax), %r8 xorl %esi, %esi movq $-1, %rdx leaq L_.str.13(%rip), %rcx movb $0, %al callq ___sprintf_chk movq -992(%rbp), %rdi leaq L_.str.14(%rip), %rsi callq _fopen movq %rax, -1000(%rbp) cmpq $0, -1000(%rbp) jne LBB0_4 ## %bb.3: movq -928(%rbp), %rax movq 8(%rax), %rsi leaq L_.str.15(%rip), %rdi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _printf movl $1, %edi callq _exit LBB0_4: movq -992(%rbp), %rdi callq _free leaq L_.str.16(%rip), %rdi movb $0, %al callq _printf movq -928(%rbp), %rax movq 8(%rax), %rsi leaq L_.str.17(%rip), %rdi movb $0, %al callq _printf movl $100, %edi callq _malloc movq %rax, -992(%rbp) movq -992(%rbp), %rdi movq -928(%rbp), %rax movq 8(%rax), %r8 xorl %esi, %esi movq $-1, %rdx leaq L_.str.18(%rip), %rcx movb $0, %al callq ___sprintf_chk movq -992(%rbp), %rdi leaq L_.str.19(%rip), %rsi callq _fopen movq %rax, -1008(%rbp) cmpq $0, -1008(%rbp) jne LBB0_6 ## %bb.5: movq -992(%rbp), %rsi leaq L_.str.20(%rip), %rdi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _printf movl $1, %edi callq _exit LBB0_6: movq -928(%rbp), %rax cmpq $0, 16(%rax) jne LBB0_32 ## %bb.7: jmp LBB0_8 LBB0_8: ## =>This Inner Loop Header: Depth=1 movq -1000(%rbp), %rdi leaq -112(%rbp), %rdx leaq L_.str.21(%rip), %rsi movb $0, %al callq _fscanf leaq -112(%rbp), %rdi leaq -968(%rbp), %rsi callq _Compare_strings cmpl $0, %eax je LBB0_23 ## %bb.9: ## in Loop: Header=BB0_8 Depth=1 movq -1000(%rbp), %rdi leaq -112(%rbp), %rdx leaq L_.str.21(%rip), %rsi movb $0, %al callq _fscanf movq -1000(%rbp), %rdi leaq -112(%rbp), %rdx leaq L_.str.21(%rip), %rsi movb $0, %al callq _fscanf leaq -112(%rbp), %rdi leaq -975(%rbp), %rsi callq _Compare_strings cmpl $0, %eax je LBB0_22 ## %bb.10: ## in Loop: Header=BB0_8 Depth=1 movq -1000(%rbp), %rdi leaq -112(%rbp), %rdx leaq L_.str.21(%rip), %rsi movb $0, %al callq _fscanf movq -1000(%rbp), %rdi leaq -112(%rbp), %rdx leaq L_.str.22(%rip), %rsi movb $0, %al callq _fscanf movq -1000(%rbp), %rdi leaq L_.str.23(%rip), %rsi leaq -932(%rbp), %rdx movb $0, %al callq _fscanf movl -932(%rbp), %eax movl -952(%rbp), %ecx addl $1, %ecx cmpl %ecx, %eax je LBB0_19 ## %bb.11: ## in Loop: Header=BB0_8 Depth=1 cmpl $0, -936(%rbp) je LBB0_19 ## %bb.12: ## in Loop: Header=BB0_8 Depth=1 movl -932(%rbp), %eax cmpl -952(%rbp), %eax jne LBB0_14 ## %bb.13: ## in Loop: Header=BB0_8 Depth=1 jmp LBB0_24 LBB0_14: ## in Loop: Header=BB0_8 Depth=1 movl -932(%rbp), %eax movl -952(%rbp), %ecx addl $1, %ecx cmpl %ecx, %eax jle LBB0_16 ## %bb.15: ## in Loop: Header=BB0_8 Depth=1 movl -952(%rbp), %ecx addl $1, %ecx movslq -980(%rbp), %rax movl %ecx, -512(%rbp,%rax,4) movl -932(%rbp), %ecx subl $1, %ecx movslq -980(%rbp), %rax movl %ecx, -912(%rbp,%rax,4) movslq -980(%rbp), %rax movl -512(%rbp,%rax,4), %esi movslq -980(%rbp), %rax movl -912(%rbp,%rax,4), %edx movl -932(%rbp), %ecx subl -952(%rbp), %ecx subl $1, %ecx leaq L_.str.24(%rip), %rdi movb $0, %al callq _printf movl -980(%rbp), %eax addl $1, %eax movl %eax, -980(%rbp) jmp LBB0_17 LBB0_16: movl -932(%rbp), %esi leaq L_.str.25(%rip), %rdi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _printf movl $1, %edi callq _exit LBB0_17: ## in Loop: Header=BB0_8 Depth=1 jmp LBB0_18 LBB0_18: ## in Loop: Header=BB0_8 Depth=1 jmp LBB0_19 LBB0_19: ## in Loop: Header=BB0_8 Depth=1 movl -932(%rbp), %eax movl %eax, -952(%rbp) cmpl $0, -936(%rbp) jne LBB0_21 ## %bb.20: ## in Loop: Header=BB0_8 Depth=1 movl -952(%rbp), %eax movl %eax, -940(%rbp) movl -940(%rbp), %esi leaq L_.str.26(%rip), %rdi movb $0, %al callq _printf LBB0_21: ## in Loop: Header=BB0_8 Depth=1 movq -1000(%rbp), %rdi leaq -112(%rbp), %rdx leaq L_.str.21(%rip), %rsi movb $0, %al callq _fscanf movq -1008(%rbp), %rdi leaq -112(%rbp), %rdx leaq L_.str.27(%rip), %rsi movb $0, %al callq _fprintf movq -1000(%rbp), %rdi leaq -112(%rbp), %rdx leaq L_.str.21(%rip), %rsi movb $0, %al callq _fscanf movq -1008(%rbp), %rdi leaq -112(%rbp), %rdx leaq L_.str.27(%rip), %rsi movb $0, %al callq _fprintf movq -1000(%rbp), %rdi leaq -112(%rbp), %rdx leaq L_.str.21(%rip), %rsi movb $0, %al callq _fscanf movq -1008(%rbp), %rdi leaq -112(%rbp), %rdx leaq L_.str.28(%rip), %rsi movb $0, %al callq _fprintf movl -936(%rbp), %eax addl $1, %eax movl %eax, -936(%rbp) LBB0_22: ## in Loop: Header=BB0_8 Depth=1 jmp LBB0_23 LBB0_23: ## in Loop: Header=BB0_8 Depth=1 jmp LBB0_24 LBB0_24: ## in Loop: Header=BB0_8 Depth=1 leaq -112(%rbp), %rdi leaq -956(%rbp), %rsi callq _Compare_strings movl %eax, %ecx xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $0, %ecx movb %al, -1010(%rbp) ## 1-byte Spill jne LBB0_27 ## %bb.25: ## in Loop: Header=BB0_8 Depth=1 leaq -112(%rbp), %rdi leaq -963(%rbp), %rsi callq _Compare_strings movl %eax, %ecx xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $0, %ecx movb %al, -1010(%rbp) ## 1-byte Spill jne LBB0_27 ## %bb.26: ## in Loop: Header=BB0_8 Depth=1 leaq -112(%rbp), %rdi leaq -972(%rbp), %rsi callq _Compare_strings cmpl $0, %eax setne %al xorb $-1, %al movb %al, -1010(%rbp) ## 1-byte Spill LBB0_27: ## in Loop: Header=BB0_8 Depth=1 movb -1010(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB0_8 ## %bb.28: movl -952(%rbp), %eax movl %eax, -944(%rbp) movl -944(%rbp), %eax subl -940(%rbp), %eax addl $1, %eax movl %eax, -948(%rbp) movl -944(%rbp), %esi leaq L_.str.29(%rip), %rdi movb $0, %al callq _printf movl -948(%rbp), %esi leaq L_.str.30(%rip), %rdi movb $0, %al callq _printf cmpl $0, -980(%rbp) je LBB0_30 ## %bb.29: movl -936(%rbp), %esi leaq L_.str.31(%rip), %rdi movb $0, %al callq _printf leaq L_.str.16(%rip), %rdi movb $0, %al callq _printf leaq L_.str.32(%rip), %rdi movb $0, %al callq _printf leaq L_.str.33(%rip), %rdi movb $0, %al callq _printf leaq L_.str.34(%rip), %rdi movb $0, %al callq _printf leaq L_.str.32(%rip), %rdi movb $0, %al callq _printf leaq L_.str.35(%rip), %rdi movb $0, %al callq _printf movl -940(%rbp), %edi movl -944(%rbp), %esi movl -980(%rbp), %edx leaq -512(%rbp), %rcx leaq -912(%rbp), %r8 movl $100, %r9d callq _mapOfMissings leaq L_.str.16(%rip), %rdi movb $0, %al callq _printf leaq L_.str.36(%rip), %rdi movb $0, %al callq _printf movl -940(%rbp), %edi movl -944(%rbp), %esi movl -980(%rbp), %edx leaq -512(%rbp), %rcx leaq -912(%rbp), %r8 movl -948(%rbp), %r9d callq _mapOfMissings leaq L_.str.16(%rip), %rdi movb $0, %al callq _printf leaq L_.str.37(%rip), %rdi movb $0, %al callq _printf leaq L_.str.38(%rip), %rdi movb $0, %al callq _printf leaq L_.str.16(%rip), %rdi movb $0, %al callq _printf jmp LBB0_31 LBB0_30: leaq L_.str.39(%rip), %rdi movb $0, %al callq _printf LBB0_31: jmp LBB0_52 LBB0_32: movq -928(%rbp), %rax movq 16(%rax), %rdi callq _atoi movl %eax, -940(%rbp) movl -940(%rbp), %eax subl $1, %eax movl %eax, -952(%rbp) LBB0_33: ## =>This Inner Loop Header: Depth=1 movq -1000(%rbp), %rdi leaq -112(%rbp), %rdx leaq L_.str.21(%rip), %rsi movb $0, %al callq _fscanf leaq -112(%rbp), %rdi leaq -968(%rbp), %rsi callq _Compare_strings cmpl $0, %eax je LBB0_46 ## %bb.34: ## in Loop: Header=BB0_33 Depth=1 movq -1000(%rbp), %rdi leaq -112(%rbp), %rdx leaq L_.str.21(%rip), %rsi movb $0, %al callq _fscanf movq -1000(%rbp), %rdi leaq -112(%rbp), %rdx leaq L_.str.21(%rip), %rsi movb $0, %al callq _fscanf leaq -112(%rbp), %rdi leaq -975(%rbp), %rsi callq _Compare_strings cmpl $0, %eax je LBB0_45 ## %bb.35: ## in Loop: Header=BB0_33 Depth=1 movq -1000(%rbp), %rdi leaq -112(%rbp), %rdx leaq L_.str.21(%rip), %rsi movb $0, %al callq _fscanf movq -1000(%rbp), %rdi leaq -112(%rbp), %rdx leaq L_.str.22(%rip), %rsi movb $0, %al callq _fscanf movq -1000(%rbp), %rdi leaq L_.str.23(%rip), %rsi leaq -932(%rbp), %rdx movb $0, %al callq _fscanf movl -932(%rbp), %eax cmpl -940(%rbp), %eax jl LBB0_44 ## %bb.36: ## in Loop: Header=BB0_33 Depth=1 movl -932(%rbp), %eax cmpl -952(%rbp), %eax jne LBB0_38 ## %bb.37: ## in Loop: Header=BB0_33 Depth=1 jmp LBB0_47 LBB0_38: ## in Loop: Header=BB0_33 Depth=1 movl -932(%rbp), %eax movl -952(%rbp), %ecx addl $1, %ecx cmpl %ecx, %eax jle LBB0_41 ## %bb.39: ## in Loop: Header=BB0_33 Depth=1 cmpl $0, -936(%rbp) je LBB0_41 ## %bb.40: jmp LBB0_51 LBB0_41: ## in Loop: Header=BB0_33 Depth=1 movq -1000(%rbp), %rdi leaq -112(%rbp), %rdx leaq L_.str.21(%rip), %rsi movb $0, %al callq _fscanf movq -1008(%rbp), %rdi leaq -112(%rbp), %rdx leaq L_.str.27(%rip), %rsi movb $0, %al callq _fprintf movq -1000(%rbp), %rdi leaq -112(%rbp), %rdx leaq L_.str.21(%rip), %rsi movb $0, %al callq _fscanf movq -1008(%rbp), %rdi leaq -112(%rbp), %rdx leaq L_.str.27(%rip), %rsi movb $0, %al callq _fprintf movq -1000(%rbp), %rdi leaq -112(%rbp), %rdx leaq L_.str.21(%rip), %rsi movb $0, %al callq _fscanf movq -1008(%rbp), %rdi leaq -112(%rbp), %rdx leaq L_.str.28(%rip), %rsi movb $0, %al callq _fprintf ## %bb.42: ## in Loop: Header=BB0_33 Depth=1 jmp LBB0_43 LBB0_43: ## in Loop: Header=BB0_33 Depth=1 movl -936(%rbp), %eax addl $1, %eax movl %eax, -936(%rbp) LBB0_44: ## in Loop: Header=BB0_33 Depth=1 movl -932(%rbp), %eax movl %eax, -952(%rbp) LBB0_45: ## in Loop: Header=BB0_33 Depth=1 jmp LBB0_46 LBB0_46: ## in Loop: Header=BB0_33 Depth=1 jmp LBB0_47 LBB0_47: ## in Loop: Header=BB0_33 Depth=1 leaq -112(%rbp), %rdi leaq -956(%rbp), %rsi callq _Compare_strings movl %eax, %ecx xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $0, %ecx movb %al, -1011(%rbp) ## 1-byte Spill jne LBB0_50 ## %bb.48: ## in Loop: Header=BB0_33 Depth=1 leaq -112(%rbp), %rdi leaq -963(%rbp), %rsi callq _Compare_strings movl %eax, %ecx xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $0, %ecx movb %al, -1011(%rbp) ## 1-byte Spill jne LBB0_50 ## %bb.49: ## in Loop: Header=BB0_33 Depth=1 leaq -112(%rbp), %rdi leaq -972(%rbp), %rsi callq _Compare_strings cmpl $0, %eax setne %al xorb $-1, %al movb %al, -1011(%rbp) ## 1-byte Spill LBB0_50: ## in Loop: Header=BB0_33 Depth=1 movb -1011(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB0_33 LBB0_51: movl -936(%rbp), %esi leaq L_.str.40(%rip), %rdi movb $0, %al callq _printf LBB0_52: movq -1008(%rbp), %rdi callq _fclose movq -1000(%rbp), %rdi callq _fclose movq -992(%rbp), %rdi callq _free movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_54 ## %bb.53: xorl %eax, %eax addq $1024, %rsp ## imm = 0x400 popq %rbp retq LBB0_54: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _Compare_strings ## -- Begin function Compare_strings .p2align 4, 0x90 _Compare_strings: ## @Compare_strings .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -16(%rbp) movq %rsi, -24(%rbp) movl $0, -28(%rbp) LBB1_1: ## =>This Inner Loop Header: Depth=1 movq -16(%rbp), %rax movslq -28(%rbp), %rcx movsbl (%rax,%rcx), %eax movq -24(%rbp), %rcx movslq -28(%rbp), %rdx movsbl (%rcx,%rdx), %ecx cmpl %ecx, %eax jne LBB1_3 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 movl -28(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) jmp LBB1_4 LBB1_3: movl $0, -4(%rbp) jmp LBB1_9 LBB1_4: ## in Loop: Header=BB1_1 Depth=1 jmp LBB1_5 LBB1_5: ## in Loop: Header=BB1_1 Depth=1 movq -24(%rbp), %rax movslq -28(%rbp), %rcx movsbl (%rax,%rcx), %ecx movb $1, %al cmpl $0, %ecx movb %al, -29(%rbp) ## 1-byte Spill jne LBB1_7 ## %bb.6: ## in Loop: Header=BB1_1 Depth=1 movq -16(%rbp), %rax movslq -28(%rbp), %rcx movsbl (%rax,%rcx), %eax cmpl $0, %eax setne %al movb %al, -29(%rbp) ## 1-byte Spill LBB1_7: ## in Loop: Header=BB1_1 Depth=1 movb -29(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB1_1 ## %bb.8: movl $1, -4(%rbp) LBB1_9: movl -4(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .globl _mapOfMissings ## -- Begin function mapOfMissings .p2align 4, 0x90 _mapOfMissings: ## @mapOfMissings .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 %edi, -4(%rbp) movl %esi, -8(%rbp) movl %edx, -12(%rbp) movq %rcx, -24(%rbp) movq %r8, -32(%rbp) movl %r9d, -36(%rbp) cvtsi2sdl -36(%rbp), %xmm0 movl -8(%rbp), %eax subl -4(%rbp), %eax addl $1, %eax cvtsi2sd %eax, %xmm1 divsd %xmm1, %xmm0 movsd %xmm0, -56(%rbp) movq -24(%rbp), %rax movl (%rax), %eax subl -4(%rbp), %eax cvtsi2sd %eax, %xmm0 mulsd -56(%rbp), %xmm0 callq _rounding movl %eax, -48(%rbp) movl $0, -40(%rbp) LBB2_1: ## =>This Inner Loop Header: Depth=1 movl -40(%rbp), %eax cmpl -48(%rbp), %eax jge LBB2_4 ## %bb.2: ## in Loop: Header=BB2_1 Depth=1 leaq L_.str.41(%rip), %rdi movb $0, %al callq _printf ## %bb.3: ## in Loop: Header=BB2_1 Depth=1 movl -40(%rbp), %eax addl $1, %eax movl %eax, -40(%rbp) jmp LBB2_1 LBB2_4: movl $0, -44(%rbp) LBB2_5: ## =>This Loop Header: Depth=1 ## Child Loop BB2_7 Depth 2 ## Child Loop BB2_11 Depth 2 movl -44(%rbp), %eax movl -12(%rbp), %ecx subl $1, %ecx cmpl %ecx, %eax jge LBB2_16 ## %bb.6: ## in Loop: Header=BB2_5 Depth=1 movq -32(%rbp), %rax movslq -44(%rbp), %rcx movl (%rax,%rcx,4), %eax movq -24(%rbp), %rcx movslq -44(%rbp), %rdx subl (%rcx,%rdx,4), %eax addl $1, %eax cvtsi2sd %eax, %xmm0 mulsd -56(%rbp), %xmm0 callq _rounding movl %eax, -48(%rbp) movl $0, -40(%rbp) LBB2_7: ## Parent Loop BB2_5 Depth=1 ## => This Inner Loop Header: Depth=2 movl -40(%rbp), %eax cmpl -48(%rbp), %eax jge LBB2_10 ## %bb.8: ## in Loop: Header=BB2_7 Depth=2 leaq L_.str.42(%rip), %rdi movb $0, %al callq _printf ## %bb.9: ## in Loop: Header=BB2_7 Depth=2 movl -40(%rbp), %eax addl $1, %eax movl %eax, -40(%rbp) jmp LBB2_7 LBB2_10: ## in Loop: Header=BB2_5 Depth=1 movq -24(%rbp), %rax movl -44(%rbp), %ecx addl $1, %ecx movslq %ecx, %rcx movl (%rax,%rcx,4), %eax movq -32(%rbp), %rcx movslq -44(%rbp), %rdx subl (%rcx,%rdx,4), %eax subl $1, %eax cvtsi2sd %eax, %xmm0 mulsd -56(%rbp), %xmm0 callq _rounding movl %eax, -48(%rbp) movl $0, -40(%rbp) LBB2_11: ## Parent Loop BB2_5 Depth=1 ## => This Inner Loop Header: Depth=2 movl -40(%rbp), %eax cmpl -48(%rbp), %eax jge LBB2_14 ## %bb.12: ## in Loop: Header=BB2_11 Depth=2 leaq L_.str.41(%rip), %rdi movb $0, %al callq _printf ## %bb.13: ## in Loop: Header=BB2_11 Depth=2 movl -40(%rbp), %eax addl $1, %eax movl %eax, -40(%rbp) jmp LBB2_11 LBB2_14: ## in Loop: Header=BB2_5 Depth=1 jmp LBB2_15 LBB2_15: ## in Loop: Header=BB2_5 Depth=1 movl -44(%rbp), %eax addl $1, %eax movl %eax, -44(%rbp) jmp LBB2_5 LBB2_16: movq -32(%rbp), %rax movl -12(%rbp), %ecx subl $1, %ecx movslq %ecx, %rcx movl (%rax,%rcx,4), %eax movq -24(%rbp), %rcx movl -12(%rbp), %edx subl $1, %edx movslq %edx, %rdx subl (%rcx,%rdx,4), %eax addl $1, %eax cvtsi2sd %eax, %xmm0 mulsd -56(%rbp), %xmm0 callq _rounding movl %eax, -48(%rbp) movl $0, -40(%rbp) LBB2_17: ## =>This Inner Loop Header: Depth=1 movl -40(%rbp), %eax cmpl -48(%rbp), %eax jge LBB2_20 ## %bb.18: ## in Loop: Header=BB2_17 Depth=1 leaq L_.str.42(%rip), %rdi movb $0, %al callq _printf ## %bb.19: ## in Loop: Header=BB2_17 Depth=1 movl -40(%rbp), %eax addl $1, %eax movl %eax, -40(%rbp) jmp LBB2_17 LBB2_20: movl -8(%rbp), %eax movq -32(%rbp), %rcx movl -12(%rbp), %edx subl $1, %edx movslq %edx, %rdx subl (%rcx,%rdx,4), %eax cvtsi2sd %eax, %xmm0 mulsd -56(%rbp), %xmm0 callq _rounding movl %eax, -48(%rbp) movl $0, -40(%rbp) LBB2_21: ## =>This Inner Loop Header: Depth=1 movl -40(%rbp), %eax cmpl -48(%rbp), %eax jge LBB2_24 ## %bb.22: ## in Loop: Header=BB2_21 Depth=1 leaq L_.str.41(%rip), %rdi movb $0, %al callq _printf ## %bb.23: ## in Loop: Header=BB2_21 Depth=1 movl -40(%rbp), %eax addl $1, %eax movl %eax, -40(%rbp) jmp LBB2_21 LBB2_24: leaq L_.str.16(%rip), %rdi movb $0, %al callq _printf addq $64, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ## -- Begin function rounding LCPI3_0: .quad 0x3fe0000000000000 ## double 0.5 .section __TEXT,__literal16,16byte_literals .p2align 4 LCPI3_1: .quad 0x7fffffffffffffff ## double NaN .quad 0x7fffffffffffffff ## double NaN .section __TEXT,__text,regular,pure_instructions .globl _rounding .p2align 4, 0x90 _rounding: ## @rounding .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 -8(%rbp), %xmm0 ## xmm0 = mem[0],zero leaq -16(%rbp), %rdi callq _modf movsd %xmm0, -24(%rbp) movsd -24(%rbp), %xmm1 ## xmm1 = mem[0],zero movaps LCPI3_1(%rip), %xmm0 ## xmm0 = [NaN,NaN] pand %xmm0, %xmm1 movsd LCPI3_0(%rip), %xmm0 ## xmm0 = mem[0],zero ucomisd %xmm1, %xmm0 jbe LBB3_2 ## %bb.1: cvttsd2si -16(%rbp), %eax movl %eax, -28(%rbp) jmp LBB3_3 LBB3_2: cvttsd2si -16(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) LBB3_3: movl -28(%rbp), %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L___const.main.end: ## @__const.main.end .asciz "END" L___const.main.endmdl: ## @__const.main.endmdl .asciz "ENDMDL" L___const.main.atom: ## @__const.main.atom .asciz "ATOM" L___const.main.ter: ## @__const.main.ter .asciz "TER" L___const.main.ca: ## @__const.main.ca .asciz "CA" L_.str: ## @.str .asciz "\nI need the name of pdb-file without extention as an argument.\nExample: ./pdf_reader 5dn7\n" L_.str.1: ## @.str.1 .asciz "Then I will open 'data/<name_you_gave_me>.pdb'.\n" L_.str.2: ## @.str.2 .asciz "I will find there all CA-atoms coordinates and write them in 'results/xyz_<name_you_gave_me>.dat'.\n" L_.str.3: ## @.str.3 .asciz "In addition I will show you maps of missing atoms if there are any.\n\n" L_.str.4: ## @.str.4 .asciz "In case of missing atoms in the model:" L_.str.5: ## @.str.5 .asciz "If you want to rewrite dat-file with only one segment of the chain\n" L_.str.6: ## @.str.6 .asciz "between two missing parts, or between the beginning/end of the chain and\n" L_.str.7: ## @.str.7 .asciz "the closest missing atom, then call the program again and give number\n" L_.str.8: ## @.str.8 .asciz "of the first atom(or any missing atom before the first) of your segment as the second argument.\n" L_.str.9: ## @.str.9 .asciz "Example: ./pdb_reader 5dn7 366\n" L_.str.10: ## @.str.10 .asciz "The same: ./pdb_reader 5dn7 365\n" L_.str.11: ## @.str.11 .asciz "For the first segment (from the beggining to the first missing atom)\n" L_.str.12: ## @.str.12 .asciz "You can always pass the second argument as 0.\n\n" L_.str.13: ## @.str.13 .asciz "data/%s.pdb" L_.str.14: ## @.str.14 .asciz "r" L_.str.15: ## @.str.15 .asciz "Error: Can't find %s.pdb\nNote: write the name of the file without extantion.\n" L_.str.16: ## @.str.16 .asciz "\n" L_.str.17: ## @.str.17 .asciz "Protein: %s\n" L_.str.18: ## @.str.18 .asciz "results/xyz_%s.dat" L_.str.19: ## @.str.19 .asciz "w" L_.str.20: ## @.str.20 .asciz "Error: Can't open '%s'\nNote: probably you don't have folde 'results'.\n" L_.str.21: ## @.str.21 .asciz "%s" L_.str.22: ## @.str.22 .asciz "%1s" L_.str.23: ## @.str.23 .asciz "%i" L_.str.24: ## @.str.24 .asciz "Missing atoms from %i to %i (%i atoms).\n" L_.str.25: ## @.str.25 .asciz "Error: strange order of atoms numbers before atom %i\n Exit\n" L_.str.26: ## @.str.26 .asciz "The first CA atom has number %i.\n" L_.str.27: ## @.str.27 .asciz "%s\t" L_.str.28: ## @.str.28 .asciz "%s\n" L_.str.29: ## @.str.29 .asciz "The last CA atom has number %i.\n" L_.str.30: ## @.str.30 .asciz "Number of CA atoms in the model: %i.\n" L_.str.31: ## @.str.31 .asciz "But there is data only for %i of them.\n" L_.str.32: ## @.str.32 .asciz "***************************************\n" L_.str.33: ## @.str.33 .asciz "* Maps of missing atoms *\n" L_.str.34: ## @.str.34 .asciz "* atom: . missing atom: 0 *\n" L_.str.35: ## @.str.35 .asciz "Percentage: string length = 100 chars.\n\n" L_.str.36: ## @.str.36 .asciz "Actual: string length = number of atoms in model.\n\n" L_.str.37: ## @.str.37 .asciz "*****************************************\n" L_.str.38: ## @.str.38 .asciz "If you want to rewrite dat-file with only one segment, call\n./pdb-reader (without arguments) for instructions.\n" L_.str.39: ## @.str.39 .asciz "No missing data in pdb-file.\n\n" L_.str.40: ## @.str.40 .asciz "Number of CA atoms: %i.\n" L_.str.41: ## @.str.41 .asciz "." L_.str.42: ## @.str.42 .asciz "0" .subsections_via_symbols
the_stack_data/107954368.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #160 .cfi_def_cfa_offset 160 stp x29, x30, [sp, #144] ; 16-byte Folded Spill add x29, sp, #144 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] str wzr, [sp, #32] str w0, [sp, #28] str x1, [sp, #16] add x0, sp, #36 str x0, [sp] ; 8-byte Folded Spill adrp x1, l___const.main.str1@PAGE add x1, x1, l___const.main.str1@PAGEOFF mov x2, #100 bl _memcpy adrp x8, l_.str@PAGE add x8, x8, l_.str@PAGEOFF str x8, [sp, #8] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _puts adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _puts ldr x0, [sp] ; 8-byte Folded Reload bl _puts ldr x0, [sp, #8] bl _puts ldr x8, [sp] ; 8-byte Folded Reload add x0, x8, #5 bl _puts ldr x8, [sp, #8] add x0, x8, #4 bl _puts ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: bl ___stack_chk_fail LBB0_2: mov w0, #0 ldp x29, x30, [sp, #144] ; 16-byte Folded Reload add sp, sp, #160 ret .cfi_endproc ; -- End function .section __TEXT,__const l___const.main.str1: ; @__const.main.str1 .asciz "An array was initialized to me.\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000" .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "A pointer was initialized to me." l_.str.1: ; @.str.1 .asciz "I'm an argument to puts()." l_.str.2: ; @.str.2 .asciz "I am a #defined string." .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 $144, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -116(%rbp) movl %edi, -120(%rbp) movq %rsi, -128(%rbp) leaq -112(%rbp), %rdi leaq l___const.main.str1(%rip), %rsi movl $100, %edx callq _memcpy leaq L_.str(%rip), %rax movq %rax, -136(%rbp) leaq L_.str.1(%rip), %rdi callq _puts leaq L_.str.2(%rip), %rdi callq _puts leaq -112(%rbp), %rdi callq _puts movq -136(%rbp), %rdi callq _puts leaq -112(%rbp), %rdi addq $5, %rdi callq _puts movq -136(%rbp), %rdi addq $4, %rdi callq _puts 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 $144, %rsp popq %rbp retq LBB0_2: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__const .p2align 4 ## @__const.main.str1 l___const.main.str1: .asciz "An array was initialized to me.\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000" .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "A pointer was initialized to me." L_.str.1: ## @.str.1 .asciz "I'm an argument to puts()." L_.str.2: ## @.str.2 .asciz "I am a #defined string." .subsections_via_symbols
the_stack_data/37637909.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] stur wzr, [x29, #-12] mov w8, #33 stur w8, [x29, #-8] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-8] subs w8, w8, #127 cset w8, ge tbnz w8, #0, LBB0_9 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-8] subs w8, w8, #100 cset w8, ge tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldur w9, [x29, #-8] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldur w9, [x29, #-8] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf ldur w8, [x29, #-12] add w8, w8, #1 stur w8, [x29, #-12] b LBB0_5 LBB0_4: ; in Loop: Header=BB0_1 Depth=1 ldur w9, [x29, #-8] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldur w9, [x29, #-8] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf ldur w8, [x29, #-12] add w8, w8, #1 stur w8, [x29, #-12] b LBB0_5 LBB0_5: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-12] subs w8, w8, #10 cset w8, ne tbnz w8, #0, LBB0_7 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_1 Depth=1 adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf stur wzr, [x29, #-12] b LBB0_7 LBB0_7: ; in Loop: Header=BB0_1 Depth=1 b LBB0_8 LBB0_8: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-8] add w8, w8, #1 stur w8, [x29, #-8] b LBB0_1 LBB0_9: mov x9, sp mov x8, #40 str x8, [x9] mov x8, #41 str x8, [x9, #8] adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@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 "%d = " l_.str.1: ; @.str.1 .asciz "%c | " l_.str.2: ; @.str.2 .asciz "%c | " l_.str.3: ; @.str.3 .asciz "\n" l_.str.4: ; @.str.4 .asciz "32 = %cspace%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) movl $0, -12(%rbp) movl $33, -8(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 cmpl $127, -8(%rbp) jge LBB0_9 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 cmpl $100, -8(%rbp) jge LBB0_4 ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movl -8(%rbp), %esi leaq L_.str(%rip), %rdi movb $0, %al callq _printf movl -8(%rbp), %esi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB0_5 LBB0_4: ## in Loop: Header=BB0_1 Depth=1 movl -8(%rbp), %esi leaq L_.str(%rip), %rdi movb $0, %al callq _printf movl -8(%rbp), %esi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) LBB0_5: ## in Loop: Header=BB0_1 Depth=1 cmpl $10, -12(%rbp) jne LBB0_7 ## %bb.6: ## in Loop: Header=BB0_1 Depth=1 leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf movl $0, -12(%rbp) LBB0_7: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_8 LBB0_8: ## in Loop: Header=BB0_1 Depth=1 movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) jmp LBB0_1 LBB0_9: leaq L_.str.4(%rip), %rdi movl $40, %esi movl $41, %edx movb $0, %al callq _printf movl -4(%rbp), %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d = " L_.str.1: ## @.str.1 .asciz "%c | " L_.str.2: ## @.str.2 .asciz "%c | " L_.str.3: ## @.str.3 .asciz "\n" L_.str.4: ## @.str.4 .asciz "32 = %cspace%c" .subsections_via_symbols
the_stack_data/150190.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/64145.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _foo ; -- Begin function foo .p2align 2 _foo: ; @foo .cfi_startproc ; %bb.0: stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill .cfi_def_cfa_offset 16 mov x29, sp .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 bl _bar bl _t4 ldp x29, x30, [sp], #16 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .weak_reference _bar .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 callq _bar callq _t4 popq %rbp retq .cfi_endproc ## -- End function .weak_reference _bar .subsections_via_symbols
the_stack_data/660115.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, #16] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #16] subs w8, w8, #5 cset w8, ge tbnz w8, #0, LBB0_4 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #16] mov w9, #10 mul w8, w8, w9 add w8, w8, #10 ldrsw x10, [sp, #16] add x9, sp, #20 str w8, [x9, x10, lsl #2] b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #16] add w8, w8, #1 str w8, [sp, #16] b LBB0_1 LBB0_4: mov w8, #4 str w8, [sp, #16] b LBB0_5 LBB0_5: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #16] subs w8, w8, #0 cset w8, lt tbnz w8, #0, LBB0_8 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_5 Depth=1 ldr w8, [sp, #16] ; implicit-def: $x10 mov x10, x8 ldrsw x9, [sp, #16] add x8, sp, #20 ldr w9, [x8, x9, lsl #2] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf b LBB0_7 LBB0_7: ; in Loop: Header=BB0_5 Depth=1 ldr w8, [sp, #16] subs w8, w8, #1 str w8, [sp, #16] b LBB0_5 LBB0_8: ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_10 b LBB0_9 LBB0_9: bl ___stack_chk_fail LBB0_10: ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "nValores[%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 $48, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -36(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 cmpl $5, -36(%rbp) jge LBB0_4 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 imull $10, -36(%rbp), %ecx addl $10, %ecx movslq -36(%rbp), %rax movl %ecx, -32(%rbp,%rax,4) ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movl -36(%rbp), %eax addl $1, %eax movl %eax, -36(%rbp) jmp LBB0_1 LBB0_4: movl $4, -36(%rbp) LBB0_5: ## =>This Inner Loop Header: Depth=1 cmpl $0, -36(%rbp) jl LBB0_8 ## %bb.6: ## in Loop: Header=BB0_5 Depth=1 movl -36(%rbp), %esi movslq -36(%rbp), %rax movl -32(%rbp,%rax,4), %edx leaq L_.str(%rip), %rdi movb $0, %al callq _printf ## %bb.7: ## in Loop: Header=BB0_5 Depth=1 movl -36(%rbp), %eax addl $-1, %eax movl %eax, -36(%rbp) jmp LBB0_5 LBB0_8: movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_10 ## %bb.9: addq $48, %rsp popq %rbp retq LBB0_10: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "nValores[%d]............................: %d\n" .subsections_via_symbols
the_stack_data/159516535.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _max_of_four ; -- Begin function max_of_four .p2align 2 _max_of_four: ; @max_of_four .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str w0, [sp, #28] str w1, [sp, #24] str w2, [sp, #20] str w3, [sp, #16] ldr w8, [sp, #28] ldr w9, [sp, #24] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB0_4 b LBB0_1 LBB0_1: ldr w8, [sp, #28] ldr w9, [sp, #20] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB0_4 b LBB0_2 LBB0_2: ldr w8, [sp, #28] ldr w9, [sp, #16] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: ldr w8, [sp, #28] str w8, [sp, #12] b LBB0_22 LBB0_4: ldr w8, [sp, #24] ldr w9, [sp, #28] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB0_8 b LBB0_5 LBB0_5: ldr w8, [sp, #24] ldr w9, [sp, #20] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB0_8 b LBB0_6 LBB0_6: ldr w8, [sp, #24] ldr w9, [sp, #16] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB0_8 b LBB0_7 LBB0_7: ldr w8, [sp, #24] str w8, [sp, #12] b LBB0_21 LBB0_8: ldr w8, [sp, #20] ldr w9, [sp, #28] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB0_12 b LBB0_9 LBB0_9: ldr w8, [sp, #20] ldr w9, [sp, #24] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB0_12 b LBB0_10 LBB0_10: ldr w8, [sp, #20] ldr w9, [sp, #16] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB0_12 b LBB0_11 LBB0_11: ldr w8, [sp, #20] str w8, [sp, #12] b LBB0_20 LBB0_12: ldr w8, [sp, #16] ldr w9, [sp, #28] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB0_16 b LBB0_13 LBB0_13: ldr w8, [sp, #16] ldr w9, [sp, #24] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB0_16 b LBB0_14 LBB0_14: ldr w8, [sp, #16] ldr w9, [sp, #20] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB0_16 b LBB0_15 LBB0_15: ldr w8, [sp, #16] str w8, [sp, #12] b LBB0_19 LBB0_16: ldr w8, [sp, #16] str w8, [sp, #20] str w8, [sp, #24] str w8, [sp, #28] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_18 b LBB0_17 LBB0_17: ldr w8, [sp, #28] str w8, [sp, #12] b LBB0_18 LBB0_18: b LBB0_19 LBB0_19: b LBB0_20 LBB0_20: b LBB0_21 LBB0_21: b LBB0_22 LBB0_22: ldr w0, [sp, #12] add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #80 .cfi_def_cfa_offset 80 stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp, #64 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #0 stur w8, [x29, #-28] ; 4-byte Folded Spill stur wzr, [x29, #-4] mov x9, sp sub x8, x29, #8 str x8, [x9] sub x8, x29, #12 str x8, [x9, #8] sub x8, x29, #16 str x8, [x9, #16] sub x8, x29, #20 str x8, [x9, #24] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _scanf ldur w0, [x29, #-8] ldur w1, [x29, #-12] ldur w2, [x29, #-16] ldur w3, [x29, #-20] bl _max_of_four stur w0, [x29, #-24] ldur w9, [x29, #-24] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf ldur w0, [x29, #-28] ; 4-byte Folded Reload ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d %d %d %d" l_.str.1: ; @.str.1 .asciz "%d" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _max_of_four ## -- Begin function max_of_four .p2align 4, 0x90 _max_of_four: ## @max_of_four .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 %edx, -12(%rbp) movl %ecx, -16(%rbp) movl -4(%rbp), %eax cmpl -8(%rbp), %eax jle LBB0_4 ## %bb.1: movl -4(%rbp), %eax cmpl -12(%rbp), %eax jle LBB0_4 ## %bb.2: movl -4(%rbp), %eax cmpl -16(%rbp), %eax jle LBB0_4 ## %bb.3: movl -4(%rbp), %eax movl %eax, -20(%rbp) jmp LBB0_22 LBB0_4: movl -8(%rbp), %eax cmpl -4(%rbp), %eax jle LBB0_8 ## %bb.5: movl -8(%rbp), %eax cmpl -12(%rbp), %eax jle LBB0_8 ## %bb.6: movl -8(%rbp), %eax cmpl -16(%rbp), %eax jle LBB0_8 ## %bb.7: movl -8(%rbp), %eax movl %eax, -20(%rbp) jmp LBB0_21 LBB0_8: movl -12(%rbp), %eax cmpl -4(%rbp), %eax jle LBB0_12 ## %bb.9: movl -12(%rbp), %eax cmpl -8(%rbp), %eax jle LBB0_12 ## %bb.10: movl -12(%rbp), %eax cmpl -16(%rbp), %eax jle LBB0_12 ## %bb.11: movl -12(%rbp), %eax movl %eax, -20(%rbp) jmp LBB0_20 LBB0_12: movl -16(%rbp), %eax cmpl -4(%rbp), %eax jle LBB0_16 ## %bb.13: movl -16(%rbp), %eax cmpl -8(%rbp), %eax jle LBB0_16 ## %bb.14: movl -16(%rbp), %eax cmpl -12(%rbp), %eax jle LBB0_16 ## %bb.15: movl -16(%rbp), %eax movl %eax, -20(%rbp) jmp LBB0_19 LBB0_16: movl -16(%rbp), %eax movl %eax, -12(%rbp) movl %eax, -8(%rbp) movl %eax, -4(%rbp) cmpl $0, %eax je LBB0_18 ## %bb.17: movl -4(%rbp), %eax movl %eax, -20(%rbp) LBB0_18: jmp LBB0_19 LBB0_19: jmp LBB0_20 LBB0_20: jmp LBB0_21 LBB0_21: jmp LBB0_22 LBB0_22: movl -20(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl $0, -4(%rbp) leaq L_.str(%rip), %rdi leaq -8(%rbp), %rsi leaq -12(%rbp), %rdx leaq -16(%rbp), %rcx leaq -20(%rbp), %r8 movb $0, %al callq _scanf movl -8(%rbp), %edi movl -12(%rbp), %esi movl -16(%rbp), %edx movl -20(%rbp), %ecx callq _max_of_four movl %eax, -24(%rbp) movl -24(%rbp), %esi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf xorl %eax, %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d %d %d %d" L_.str.1: ## @.str.1 .asciz "%d" .subsections_via_symbols
the_stack_data/1127006.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _div16 ; -- Begin function div16 .p2align 2 _div16: ; @div16 .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #12] ldr w8, [sp, #12] asr w8, w8, #31 and w8, w8, #0xf str w8, [sp, #8] ldr w8, [sp, #12] ldr w9, [sp, #8] add w8, w8, w9 asr w8, w8, #4 scvtf s0, w8 add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #0 stur w8, [x29, #-12] ; 4-byte Folded Spill stur wzr, [x29, #-4] mov w8, #-15 stur w8, [x29, #-8] ldur w0, [x29, #-8] bl _div16 fcvt d0, s0 mov x8, sp str d0, [x8] adrp x0, l_.str@PAGE add x0, x0, l_.str@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 "%.2f\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _div16 ## -- Begin function div16 .p2align 4, 0x90 _div16: ## @div16 .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 sarl $31, %eax andl $15, %eax movl %eax, -8(%rbp) movl -4(%rbp), %eax addl -8(%rbp), %eax sarl $4, %eax cvtsi2ss %eax, %xmm0 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 $-15, -8(%rbp) movl -8(%rbp), %edi callq _div16 cvtss2sd %xmm0, %xmm0 leaq L_.str(%rip), %rdi movb $1, %al callq _printf xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%.2f\n" .subsections_via_symbols
the_stack_data/433445.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/532993.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 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, #416 mov x19, sp adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] stur wzr, [x29, #-156] stur w0, [x29, #-160] stur x1, [x29, #-168] ldur x8, [x29, #-168] ldr x0, [x8, #8] bl _atoi add w8, w0, #7 mov w9, #8 sdiv w8, w8, w9 lsl w9, w8, #3 ; implicit-def: $x8 mov x8, x9 sxtw x8, w8 stur x8, [x29, #-176] ldur x8, [x29, #-176] mov x9, #8 sdiv x8, x8, x9 stur x8, [x29, #-184] ldur x8, [x29, #-176] ldur x10, [x29, #-176] mul x8, x8, x10 sdiv x0, x8, x9 bl _malloc stur x0, [x29, #-192] ldur x8, [x29, #-176] mov x9, sp stur x9, [x29, #-200] lsl x9, x8, #3 add x9, x9, #15 and x9, x9, #0xfffffffffffffff0 str x9, [x19, #8] ; 8-byte Folded Spill adrp x16, ___chkstk_darwin@GOTPAGE ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF] blr x16 ldr x10, [x19, #8] ; 8-byte Folded Reload mov x9, sp subs x9, x9, x10 mov sp, x9 str x9, [x19, #16] ; 8-byte Folded Spill stur x8, [x29, #-208] ldur x8, [x29, #-176] lsl x9, x8, #3 add x9, x9, #15 and x9, x9, #0xfffffffffffffff0 str x9, [x19, #24] ; 8-byte Folded Spill adrp x16, ___chkstk_darwin@GOTPAGE ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF] blr x16 ldr x10, [x19, #24] ; 8-byte Folded Reload mov x9, sp subs x9, x9, x10 mov sp, x9 str x9, [x19, #32] ; 8-byte Folded Spill str x8, [x19, #216] ldur d0, [x29, #-176] scvtf d1, d0 fmov d0, #2.00000000 fdiv d0, d0, d1 str d0, [x19, #208] str xzr, [x19, #200] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [x19, #200] ldur x9, [x29, #-176] subs x8, x8, x9 cset w8, ge tbnz w8, #0, LBB0_4 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [x19, #32] ; 8-byte Folded Reload ldr x9, [x19, #16] ; 8-byte Folded Reload ldr d0, [x19, #200] scvtf d0, d0 ldr d1, [x19, #208] fmov d2, #-1.50000000 fmadd d0, d0, d1, d2 ldr x10, [x19, #200] str d0, [x9, x10, lsl #3] ldr d0, [x19, #200] scvtf d0, d0 ldr d1, [x19, #208] fmov d2, #-1.00000000 fmadd d0, d0, d1, d2 ldr x9, [x19, #200] str d0, [x8, x9, lsl #3] b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [x19, #200] add x8, x8, #1 str x8, [x19, #200] b LBB0_1 LBB0_4: str xzr, [x19, #192] b LBB0_5 LBB0_5: ; =>This Loop Header: Depth=1 ; Child Loop BB0_7 Depth 2 ; Child Loop BB0_9 Depth 3 ; Child Loop BB0_28 Depth 3 ; Child Loop BB0_30 Depth 4 ; Child Loop BB0_36 Depth 3 ; Child Loop BB0_14 Depth 3 ; Child Loop BB0_15 Depth 4 ldr x8, [x19, #192] ldur x9, [x29, #-176] subs x8, x8, x9 cset w8, ge tbnz w8, #0, LBB0_46 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_5 Depth=1 ldr x8, [x19, #32] ; 8-byte Folded Reload ldr x9, [x19, #192] ldr d0, [x8, x9, lsl #3] str d0, [x19, #184] ldur x8, [x29, #-192] ldr x9, [x19, #192] ldur x10, [x29, #-184] mul x9, x9, x10 add x8, x8, x9 str x8, [x19, #176] str xzr, [x19, #168] b LBB0_7 LBB0_7: ; Parent Loop BB0_5 Depth=1 ; => This Loop Header: Depth=2 ; Child Loop BB0_9 Depth 3 ; Child Loop BB0_28 Depth 3 ; Child Loop BB0_30 Depth 4 ; Child Loop BB0_36 Depth 3 ; Child Loop BB0_14 Depth 3 ; Child Loop BB0_15 Depth 4 ldr x8, [x19, #168] ldur x9, [x29, #-176] subs x8, x8, x9 cset w8, ge tbnz w8, #0, LBB0_44 b LBB0_8 LBB0_8: ; in Loop: Header=BB0_7 Depth=2 ldr x8, [x19, #16] ; 8-byte Folded Reload ldr x9, [x19, #168] add x8, x8, x9, lsl #3 str x8, [x19, #160] str xzr, [x19, #152] b LBB0_9 LBB0_9: ; Parent Loop BB0_5 Depth=1 ; Parent Loop BB0_7 Depth=2 ; => This Inner Loop Header: Depth=3 ldr x8, [x19, #152] subs x8, x8, #8 cset w8, ge tbnz w8, #0, LBB0_12 b LBB0_10 LBB0_10: ; in Loop: Header=BB0_9 Depth=3 ldr x8, [x19, #160] ldr x9, [x19, #152] ldr d0, [x8, x9, lsl #3] ldr x9, [x19, #152] sub x8, x29, #88 str d0, [x8, x9, lsl #3] ldr d0, [x19, #184] ldr x9, [x19, #152] sub x8, x29, #152 str d0, [x8, x9, lsl #3] b LBB0_11 LBB0_11: ; in Loop: Header=BB0_9 Depth=3 ldr x8, [x19, #152] add x8, x8, #1 str x8, [x19, #152] b LBB0_9 LBB0_12: ; in Loop: Header=BB0_7 Depth=2 adrp x8, _main.any_Pixels_Escape@PAGE ldrb w8, [x8, _main.any_Pixels_Escape@PAGEOFF] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_27 b LBB0_13 LBB0_13: ; in Loop: Header=BB0_7 Depth=2 mov w8, #255 strb w8, [x19, #151] mov x8, #50 str x8, [x19, #136] b LBB0_14 LBB0_14: ; Parent Loop BB0_5 Depth=1 ; Parent Loop BB0_7 Depth=2 ; => This Loop Header: Depth=3 ; Child Loop BB0_15 Depth 4 mov w8, #128 strb w8, [x19, #135] str xzr, [x19, #120] b LBB0_15 LBB0_15: ; Parent Loop BB0_5 Depth=1 ; Parent Loop BB0_7 Depth=2 ; Parent Loop BB0_14 Depth=3 ; => This Inner Loop Header: Depth=4 ldr x8, [x19, #120] subs x8, x8, #8 cset w8, ge tbnz w8, #0, LBB0_22 b LBB0_16 LBB0_16: ; in Loop: Header=BB0_15 Depth=4 ldrb w8, [x19, #151] ldrb w9, [x19, #135] ands w8, w8, w9 cset w8, eq tbnz w8, #0, LBB0_20 b LBB0_17 LBB0_17: ; in Loop: Header=BB0_15 Depth=4 ldr x9, [x19, #120] sub x8, x29, #88 ldr d0, [x8, x9, lsl #3] str d0, [x19, #112] ldr x10, [x19, #120] sub x9, x29, #152 ldr d0, [x9, x10, lsl #3] str d0, [x19, #104] ldr d1, [x19, #112] fmov d0, #2.00000000 fmul d0, d0, d1 ldr d1, [x19, #104] ldr d2, [x19, #184] fmadd d0, d0, d1, d2 ldr x10, [x19, #120] str d0, [x9, x10, lsl #3] ldr d0, [x19, #112] ldr d1, [x19, #112] ldr d2, [x19, #104] ldr d3, [x19, #104] fmul d2, d2, d3 fnmsub d0, d0, d1, d2 ldr x9, [x19, #160] ldr x10, [x19, #120] ldr d1, [x9, x10, lsl #3] fadd d0, d0, d1 ldr x9, [x19, #120] str d0, [x8, x9, lsl #3] ldr d0, [x19, #112] ldr d1, [x19, #112] ldr d2, [x19, #104] ldr d3, [x19, #104] fmul d2, d2, d3 fmadd d0, d0, d1, d2 fmov d1, #4.00000000 fcmp d0, d1 cset w8, le tbnz w8, #0, LBB0_19 b LBB0_18 LBB0_18: ; in Loop: Header=BB0_15 Depth=4 ldrb w9, [x19, #135] ldrb w8, [x19, #151] eor w8, w8, w9 strb w8, [x19, #151] b LBB0_19 LBB0_19: ; in Loop: Header=BB0_15 Depth=4 b LBB0_20 LBB0_20: ; in Loop: Header=BB0_15 Depth=4 ldrb w8, [x19, #135] asr w8, w8, #1 strb w8, [x19, #135] b LBB0_21 LBB0_21: ; in Loop: Header=BB0_15 Depth=4 ldr x8, [x19, #120] add x8, x8, #1 str x8, [x19, #120] b LBB0_15 LBB0_22: ; in Loop: Header=BB0_14 Depth=3 b LBB0_23 LBB0_23: ; in Loop: Header=BB0_14 Depth=3 ldrb w8, [x19, #151] subs w8, w8, #0 cset w8, eq mov w9, #0 str w9, [x19, #4] ; 4-byte Folded Spill tbnz w8, #0, LBB0_25 b LBB0_24 LBB0_24: ; in Loop: Header=BB0_14 Depth=3 ldr x8, [x19, #136] subs x8, x8, #1 str x8, [x19, #136] subs x8, x8, #0 cset w8, ne str w8, [x19, #4] ; 4-byte Folded Spill b LBB0_25 LBB0_25: ; in Loop: Header=BB0_14 Depth=3 ldr w8, [x19, #4] ; 4-byte Folded Reload tbnz w8, #0, LBB0_14 b LBB0_26 LBB0_26: ; in Loop: Header=BB0_7 Depth=2 b LBB0_42 LBB0_27: ; in Loop: Header=BB0_7 Depth=2 str xzr, [x19, #96] b LBB0_28 LBB0_28: ; Parent Loop BB0_5 Depth=1 ; Parent Loop BB0_7 Depth=2 ; => This Loop Header: Depth=3 ; Child Loop BB0_30 Depth 4 ldr x8, [x19, #96] subs x8, x8, #49 cset w8, ge tbnz w8, #0, LBB0_35 b LBB0_29 LBB0_29: ; in Loop: Header=BB0_28 Depth=3 str xzr, [x19, #88] b LBB0_30 LBB0_30: ; Parent Loop BB0_5 Depth=1 ; Parent Loop BB0_7 Depth=2 ; Parent Loop BB0_28 Depth=3 ; => This Inner Loop Header: Depth=4 ldr x8, [x19, #88] subs x8, x8, #8 cset w8, ge tbnz w8, #0, LBB0_33 b LBB0_31 LBB0_31: ; in Loop: Header=BB0_30 Depth=4 ldr x9, [x19, #88] sub x8, x29, #88 ldr d0, [x8, x9, lsl #3] str d0, [x19, #80] ldr x10, [x19, #88] sub x9, x29, #152 ldr d0, [x9, x10, lsl #3] str d0, [x19, #72] ldr d1, [x19, #72] fmov d0, #2.00000000 fmul d0, d0, d1 ldr d1, [x19, #80] ldr d2, [x19, #184] fmadd d0, d0, d1, d2 ldr x10, [x19, #88] str d0, [x9, x10, lsl #3] ldr d0, [x19, #80] ldr d1, [x19, #80] ldr d2, [x19, #72] ldr d3, [x19, #72] fmul d2, d2, d3 fnmsub d0, d0, d1, d2 ldr x9, [x19, #160] ldr x10, [x19, #88] ldr d1, [x9, x10, lsl #3] fadd d0, d0, d1 ldr x9, [x19, #88] str d0, [x8, x9, lsl #3] b LBB0_32 LBB0_32: ; in Loop: Header=BB0_30 Depth=4 ldr x8, [x19, #88] add x8, x8, #1 str x8, [x19, #88] b LBB0_30 LBB0_33: ; in Loop: Header=BB0_28 Depth=3 b LBB0_34 LBB0_34: ; in Loop: Header=BB0_28 Depth=3 ldr x8, [x19, #96] add x8, x8, #1 str x8, [x19, #96] b LBB0_28 LBB0_35: ; in Loop: Header=BB0_7 Depth=2 strb wzr, [x19, #151] mov w8, #128 strb w8, [x19, #71] str xzr, [x19, #56] b LBB0_36 LBB0_36: ; Parent Loop BB0_5 Depth=1 ; Parent Loop BB0_7 Depth=2 ; => This Inner Loop Header: Depth=3 ldr x8, [x19, #56] subs x8, x8, #8 cset w8, ge tbnz w8, #0, LBB0_41 b LBB0_37 LBB0_37: ; in Loop: Header=BB0_36 Depth=3 ldr x9, [x19, #56] sub x8, x29, #88 ldr d0, [x8, x9, lsl #3] str d0, [x19, #48] ldr x9, [x19, #56] sub x8, x29, #152 ldr d0, [x8, x9, lsl #3] str d0, [x19, #40] ldr d0, [x19, #48] ldr d1, [x19, #48] ldr d2, [x19, #40] ldr d3, [x19, #40] fmul d2, d2, d3 fmadd d0, d0, d1, d2 fmov d1, #4.00000000 fcmp d0, d1 cset w8, hi tbnz w8, #0, LBB0_39 b LBB0_38 LBB0_38: ; in Loop: Header=BB0_36 Depth=3 ldrb w9, [x19, #71] ldrb w8, [x19, #151] orr w8, w8, w9 strb w8, [x19, #151] b LBB0_39 LBB0_39: ; in Loop: Header=BB0_36 Depth=3 ldrb w8, [x19, #71] asr w8, w8, #1 strb w8, [x19, #71] b LBB0_40 LBB0_40: ; in Loop: Header=BB0_36 Depth=3 ldr x8, [x19, #56] add x8, x8, #1 str x8, [x19, #56] b LBB0_36 LBB0_41: ; in Loop: Header=BB0_7 Depth=2 b LBB0_42 LBB0_42: ; in Loop: Header=BB0_7 Depth=2 ldrb w8, [x19, #151] ldr x9, [x19, #176] ldr x10, [x19, #168] add x9, x9, x10, asr #3 strb w8, [x9] ldrb w8, [x19, #151] subs w8, w8, #255 cset w8, ne and w8, w8, #0x1 adrp x9, _main.any_Pixels_Escape@PAGE strb w8, [x9, _main.any_Pixels_Escape@PAGEOFF] b LBB0_43 LBB0_43: ; in Loop: Header=BB0_7 Depth=2 ldr x8, [x19, #168] add x8, x8, #8 str x8, [x19, #168] b LBB0_7 LBB0_44: ; in Loop: Header=BB0_5 Depth=1 b LBB0_45 LBB0_45: ; in Loop: Header=BB0_5 Depth=1 ldr x8, [x19, #192] add x8, x8, #1 str x8, [x19, #192] b LBB0_5 LBB0_46: ldur x10, [x29, #-176] ldur x8, [x29, #-176] sub sp, sp, #16 mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf add sp, sp, #16 ldur x0, [x29, #-192] ldur x8, [x29, #-176] ldur x9, [x29, #-176] mul x8, x8, x9 mov x9, #8 sdiv x1, x8, x9 adrp x8, ___stdoutp@GOTPAGE ldr x8, [x8, ___stdoutp@GOTPAGEOFF] ldr x3, [x8] mov x2, #1 bl _fwrite ldur x0, [x29, #-192] bl _free stur wzr, [x29, #-156] ldur x8, [x29, #-200] mov sp, x8 ldur w8, [x29, #-156] str w8, [x19] ; 4-byte Folded Spill ldur x9, [x29, #-24] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_48 b LBB0_47 LBB0_47: bl ___stack_chk_fail LBB0_48: ldr w0, [x19] ; 4-byte Folded Reload 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 __DATA,__data _main.any_Pixels_Escape: ; @main.any_Pixels_Escape .byte 1 ; 0x1 .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "P4\n%ju %ju\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __TEXT,__literal8,8byte_literals .p2align 3 ## -- Begin function main LCPI0_0: .quad 0x4000000000000000 ## double 2 LCPI0_1: .quad 0x4010000000000000 ## double 4 LCPI0_2: .quad 0xbff0000000000000 ## double -1 LCPI0_3: .quad 0xbff8000000000000 ## double -1.5 .section __TEXT,__text,regular,pure_instructions .globl _main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $432, %rsp ## imm = 0x1B0 movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -148(%rbp) movl %edi, -152(%rbp) movq %rsi, -160(%rbp) movq -160(%rbp), %rax movq 8(%rax), %rdi callq _atoi movl %eax, %ecx movl %ecx, %eax addl $7, %eax addl $14, %ecx testl %eax, %eax cmovsl %ecx, %eax andl $-8, %eax cltq movq %rax, -168(%rbp) movq -168(%rbp), %rax movq %rax, %rcx addq $7, %rcx testq %rax, %rax cmovsq %rcx, %rax sarq $3, %rax movq %rax, -176(%rbp) movq -168(%rbp), %rdi imulq %rdi, %rdi movq %rdi, %rax addq $7, %rax testq %rdi, %rdi cmovsq %rax, %rdi sarq $3, %rdi callq _malloc movq %rax, -184(%rbp) movq -168(%rbp), %rax movq %rax, -416(%rbp) ## 8-byte Spill movq %rsp, %rcx movq %rcx, -192(%rbp) shlq $3, %rax callq ____chkstk_darwin addq $15, %rax andq $-16, %rax subq %rax, %rsp movq -416(%rbp), %rax ## 8-byte Reload movq %rsp, %rcx movq %rcx, -408(%rbp) ## 8-byte Spill movq %rax, -200(%rbp) movq -168(%rbp), %rax movq %rax, -400(%rbp) ## 8-byte Spill shlq $3, %rax callq ____chkstk_darwin addq $15, %rax andq $-16, %rax subq %rax, %rsp movq -400(%rbp), %rax ## 8-byte Reload movq %rsp, %rcx movq %rcx, -392(%rbp) ## 8-byte Spill movq %rax, -208(%rbp) cvtsi2sdq -168(%rbp), %xmm1 movsd LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero divsd %xmm1, %xmm0 movsd %xmm0, -216(%rbp) movq $0, -224(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movq -224(%rbp), %rax cmpq -168(%rbp), %rax jge LBB0_4 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movq -392(%rbp), %rax ## 8-byte Reload movq -408(%rbp), %rcx ## 8-byte Reload cvtsi2sdq -224(%rbp), %xmm0 movsd -216(%rbp), %xmm1 ## xmm1 = mem[0],zero mulsd %xmm1, %xmm0 movsd LCPI0_3(%rip), %xmm1 ## xmm1 = mem[0],zero addsd %xmm1, %xmm0 movq -224(%rbp), %rdx movsd %xmm0, (%rcx,%rdx,8) cvtsi2sdq -224(%rbp), %xmm0 movsd -216(%rbp), %xmm1 ## xmm1 = mem[0],zero mulsd %xmm1, %xmm0 movsd LCPI0_2(%rip), %xmm1 ## xmm1 = mem[0],zero addsd %xmm1, %xmm0 movq -224(%rbp), %rcx movsd %xmm0, (%rax,%rcx,8) ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movq -224(%rbp), %rax addq $1, %rax movq %rax, -224(%rbp) jmp LBB0_1 LBB0_4: movq $0, -232(%rbp) LBB0_5: ## =>This Loop Header: Depth=1 ## Child Loop BB0_7 Depth 2 ## Child Loop BB0_9 Depth 3 ## Child Loop BB0_14 Depth 3 ## Child Loop BB0_15 Depth 4 ## Child Loop BB0_28 Depth 3 ## Child Loop BB0_30 Depth 4 ## Child Loop BB0_36 Depth 3 movq -232(%rbp), %rax cmpq -168(%rbp), %rax jge LBB0_46 ## %bb.6: ## in Loop: Header=BB0_5 Depth=1 movq -392(%rbp), %rax ## 8-byte Reload movq -232(%rbp), %rcx movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -240(%rbp) movq -184(%rbp), %rax movq -232(%rbp), %rcx imulq -176(%rbp), %rcx addq %rcx, %rax movq %rax, -248(%rbp) movq $0, -256(%rbp) LBB0_7: ## Parent Loop BB0_5 Depth=1 ## => This Loop Header: Depth=2 ## Child Loop BB0_9 Depth 3 ## Child Loop BB0_14 Depth 3 ## Child Loop BB0_15 Depth 4 ## Child Loop BB0_28 Depth 3 ## Child Loop BB0_30 Depth 4 ## Child Loop BB0_36 Depth 3 movq -256(%rbp), %rax cmpq -168(%rbp), %rax jge LBB0_44 ## %bb.8: ## in Loop: Header=BB0_7 Depth=2 movq -408(%rbp), %rax ## 8-byte Reload movq -256(%rbp), %rcx shlq $3, %rcx addq %rcx, %rax movq %rax, -264(%rbp) movq $0, -272(%rbp) LBB0_9: ## Parent Loop BB0_5 Depth=1 ## Parent Loop BB0_7 Depth=2 ## => This Inner Loop Header: Depth=3 cmpq $8, -272(%rbp) jge LBB0_12 ## %bb.10: ## in Loop: Header=BB0_9 Depth=3 movq -264(%rbp), %rax movq -272(%rbp), %rcx movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero movq -272(%rbp), %rax movsd %xmm0, -80(%rbp,%rax,8) movsd -240(%rbp), %xmm0 ## xmm0 = mem[0],zero movq -272(%rbp), %rax movsd %xmm0, -144(%rbp,%rax,8) ## %bb.11: ## in Loop: Header=BB0_9 Depth=3 movq -272(%rbp), %rax addq $1, %rax movq %rax, -272(%rbp) jmp LBB0_9 LBB0_12: ## in Loop: Header=BB0_7 Depth=2 cmpb $0, _main.any_Pixels_Escape(%rip) je LBB0_27 ## %bb.13: ## in Loop: Header=BB0_7 Depth=2 movb $-1, -273(%rbp) movq $50, -288(%rbp) LBB0_14: ## Parent Loop BB0_5 Depth=1 ## Parent Loop BB0_7 Depth=2 ## => This Loop Header: Depth=3 ## Child Loop BB0_15 Depth 4 movb $-128, -289(%rbp) movq $0, -304(%rbp) LBB0_15: ## Parent Loop BB0_5 Depth=1 ## Parent Loop BB0_7 Depth=2 ## Parent Loop BB0_14 Depth=3 ## => This Inner Loop Header: Depth=4 cmpq $8, -304(%rbp) jge LBB0_22 ## %bb.16: ## in Loop: Header=BB0_15 Depth=4 movzbl -273(%rbp), %eax movzbl -289(%rbp), %ecx andl %ecx, %eax cmpl $0, %eax je LBB0_20 ## %bb.17: ## in Loop: Header=BB0_15 Depth=4 movq -304(%rbp), %rax movsd -80(%rbp,%rax,8), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -312(%rbp) movq -304(%rbp), %rax movsd -144(%rbp,%rax,8), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -320(%rbp) movsd LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero mulsd -312(%rbp), %xmm0 movsd -320(%rbp), %xmm2 ## xmm2 = mem[0],zero movsd -240(%rbp), %xmm1 ## xmm1 = mem[0],zero mulsd %xmm2, %xmm0 addsd %xmm1, %xmm0 movq -304(%rbp), %rax movsd %xmm0, -144(%rbp,%rax,8) movsd -312(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd -312(%rbp), %xmm2 ## xmm2 = mem[0],zero movsd -320(%rbp), %xmm1 ## xmm1 = mem[0],zero mulsd -320(%rbp), %xmm1 movq %xmm1, %rax movabsq $-9223372036854775808, %rcx ## imm = 0x8000000000000000 xorq %rcx, %rax movq %rax, %xmm1 mulsd %xmm2, %xmm0 addsd %xmm1, %xmm0 movq -264(%rbp), %rax movq -304(%rbp), %rcx addsd (%rax,%rcx,8), %xmm0 movq -304(%rbp), %rax movsd %xmm0, -80(%rbp,%rax,8) movsd -312(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd -312(%rbp), %xmm2 ## xmm2 = mem[0],zero movsd -320(%rbp), %xmm1 ## xmm1 = mem[0],zero mulsd -320(%rbp), %xmm1 mulsd %xmm2, %xmm0 addsd %xmm1, %xmm0 movsd LCPI0_1(%rip), %xmm1 ## xmm1 = mem[0],zero ucomisd %xmm1, %xmm0 jbe LBB0_19 ## %bb.18: ## in Loop: Header=BB0_15 Depth=4 movzbl -289(%rbp), %ecx movzbl -273(%rbp), %eax xorl %ecx, %eax ## kill: def $al killed $al killed $eax movb %al, -273(%rbp) LBB0_19: ## in Loop: Header=BB0_15 Depth=4 jmp LBB0_20 LBB0_20: ## in Loop: Header=BB0_15 Depth=4 movzbl -289(%rbp), %eax sarl $1, %eax ## kill: def $al killed $al killed $eax movb %al, -289(%rbp) ## %bb.21: ## in Loop: Header=BB0_15 Depth=4 movq -304(%rbp), %rax addq $1, %rax movq %rax, -304(%rbp) jmp LBB0_15 LBB0_22: ## in Loop: Header=BB0_14 Depth=3 jmp LBB0_23 LBB0_23: ## in Loop: Header=BB0_14 Depth=3 movzbl -273(%rbp), %ecx xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $0, %ecx movb %al, -417(%rbp) ## 1-byte Spill je LBB0_25 ## %bb.24: ## in Loop: Header=BB0_14 Depth=3 movq -288(%rbp), %rax addq $-1, %rax movq %rax, -288(%rbp) cmpq $0, %rax setne %al movb %al, -417(%rbp) ## 1-byte Spill LBB0_25: ## in Loop: Header=BB0_14 Depth=3 movb -417(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB0_14 ## %bb.26: ## in Loop: Header=BB0_7 Depth=2 jmp LBB0_42 LBB0_27: ## in Loop: Header=BB0_7 Depth=2 movq $0, -328(%rbp) LBB0_28: ## Parent Loop BB0_5 Depth=1 ## Parent Loop BB0_7 Depth=2 ## => This Loop Header: Depth=3 ## Child Loop BB0_30 Depth 4 cmpq $49, -328(%rbp) jge LBB0_35 ## %bb.29: ## in Loop: Header=BB0_28 Depth=3 movq $0, -336(%rbp) LBB0_30: ## Parent Loop BB0_5 Depth=1 ## Parent Loop BB0_7 Depth=2 ## Parent Loop BB0_28 Depth=3 ## => This Inner Loop Header: Depth=4 cmpq $8, -336(%rbp) jge LBB0_33 ## %bb.31: ## in Loop: Header=BB0_30 Depth=4 movq -336(%rbp), %rax movsd -80(%rbp,%rax,8), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -344(%rbp) movq -336(%rbp), %rax movsd -144(%rbp,%rax,8), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -352(%rbp) movsd LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero mulsd -352(%rbp), %xmm0 movsd -344(%rbp), %xmm2 ## xmm2 = mem[0],zero movsd -240(%rbp), %xmm1 ## xmm1 = mem[0],zero mulsd %xmm2, %xmm0 addsd %xmm1, %xmm0 movq -336(%rbp), %rax movsd %xmm0, -144(%rbp,%rax,8) movsd -344(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd -344(%rbp), %xmm2 ## xmm2 = mem[0],zero movsd -352(%rbp), %xmm1 ## xmm1 = mem[0],zero mulsd -352(%rbp), %xmm1 movq %xmm1, %rax movabsq $-9223372036854775808, %rcx ## imm = 0x8000000000000000 xorq %rcx, %rax movq %rax, %xmm1 mulsd %xmm2, %xmm0 addsd %xmm1, %xmm0 movq -264(%rbp), %rax movq -336(%rbp), %rcx addsd (%rax,%rcx,8), %xmm0 movq -336(%rbp), %rax movsd %xmm0, -80(%rbp,%rax,8) ## %bb.32: ## in Loop: Header=BB0_30 Depth=4 movq -336(%rbp), %rax addq $1, %rax movq %rax, -336(%rbp) jmp LBB0_30 LBB0_33: ## in Loop: Header=BB0_28 Depth=3 jmp LBB0_34 LBB0_34: ## in Loop: Header=BB0_28 Depth=3 movq -328(%rbp), %rax addq $1, %rax movq %rax, -328(%rbp) jmp LBB0_28 LBB0_35: ## in Loop: Header=BB0_7 Depth=2 movb $0, -273(%rbp) movb $-128, -353(%rbp) movq $0, -368(%rbp) LBB0_36: ## Parent Loop BB0_5 Depth=1 ## Parent Loop BB0_7 Depth=2 ## => This Inner Loop Header: Depth=3 cmpq $8, -368(%rbp) jge LBB0_41 ## %bb.37: ## in Loop: Header=BB0_36 Depth=3 movq -368(%rbp), %rax movsd -80(%rbp,%rax,8), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -376(%rbp) movq -368(%rbp), %rax movsd -144(%rbp,%rax,8), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -384(%rbp) movsd -376(%rbp), %xmm1 ## xmm1 = mem[0],zero movsd -376(%rbp), %xmm2 ## xmm2 = mem[0],zero movsd -384(%rbp), %xmm0 ## xmm0 = mem[0],zero mulsd -384(%rbp), %xmm0 mulsd %xmm2, %xmm1 addsd %xmm0, %xmm1 movsd LCPI0_1(%rip), %xmm0 ## xmm0 = mem[0],zero ucomisd %xmm1, %xmm0 jb LBB0_39 ## %bb.38: ## in Loop: Header=BB0_36 Depth=3 movzbl -353(%rbp), %ecx movzbl -273(%rbp), %eax orl %ecx, %eax ## kill: def $al killed $al killed $eax movb %al, -273(%rbp) LBB0_39: ## in Loop: Header=BB0_36 Depth=3 movzbl -353(%rbp), %eax sarl $1, %eax ## kill: def $al killed $al killed $eax movb %al, -353(%rbp) ## %bb.40: ## in Loop: Header=BB0_36 Depth=3 movq -368(%rbp), %rax addq $1, %rax movq %rax, -368(%rbp) jmp LBB0_36 LBB0_41: ## in Loop: Header=BB0_7 Depth=2 jmp LBB0_42 LBB0_42: ## in Loop: Header=BB0_7 Depth=2 movb -273(%rbp), %dl movq -248(%rbp), %rax movq -256(%rbp), %rcx sarq $3, %rcx movb %dl, (%rax,%rcx) movzbl -273(%rbp), %eax cmpl $255, %eax setne %al andb $1, %al movzbl %al, %eax ## kill: def $al killed $al killed $eax movb %al, _main.any_Pixels_Escape(%rip) ## %bb.43: ## in Loop: Header=BB0_7 Depth=2 movq -256(%rbp), %rax addq $8, %rax movq %rax, -256(%rbp) jmp LBB0_7 LBB0_44: ## in Loop: Header=BB0_5 Depth=1 jmp LBB0_45 LBB0_45: ## in Loop: Header=BB0_5 Depth=1 movq -232(%rbp), %rax addq $1, %rax movq %rax, -232(%rbp) jmp LBB0_5 LBB0_46: movq -168(%rbp), %rsi movq -168(%rbp), %rdx leaq L_.str(%rip), %rdi movb $0, %al callq _printf movq -184(%rbp), %rdi movq -168(%rbp), %rax imulq -168(%rbp), %rax movl $8, %ecx cqto idivq %rcx movq %rax, %rsi movq ___stdoutp@GOTPCREL(%rip), %rax movq (%rax), %rcx movl $1, %edx callq _fwrite movq -184(%rbp), %rdi callq _free movl $0, -148(%rbp) movq -192(%rbp), %rax movq %rax, %rsp movl -148(%rbp), %eax movl %eax, -424(%rbp) ## 4-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_48 ## %bb.47: movl -424(%rbp), %eax ## 4-byte Reload movq %rbp, %rsp popq %rbp retq LBB0_48: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __DATA,__data _main.any_Pixels_Escape: ## @main.any_Pixels_Escape .byte 1 ## 0x1 .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "P4\n%ju %ju\n" .subsections_via_symbols
the_stack_data/1148974.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #0 str w8, [sp, #24] ; 4-byte Folded Spill stur wzr, [x29, #-4] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov x9, sp sub x8, x29, #8 str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF str x0, [sp, #16] ; 8-byte Folded Spill bl _scanf adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf ldr x0, [sp, #16] ; 8-byte Folded Reload mov x9, sp sub x8, x29, #12 str x8, [x9] bl _scanf ldur w8, [x29, #-8] ldur w9, [x29, #-12] add w8, w8, w9 stur w8, [x29, #-16] 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 fmov d1, #2.00000000 fdiv d0, d0, d1 fcvt s0, d0 stur s0, [x29, #-20] ldur s0, [x29, #-20] fcvt d0, s0 mov x8, sp str d0, [x8] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf ldr w0, [sp, #24] ; 4-byte Folded Reload ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Enter the mark of first subject : " l_.str.1: ; @.str.1 .asciz "%d" l_.str.2: ; @.str.2 .asciz "Enter the mark of second subject : " l_.str.3: ; @.str.3 .asciz "Average of marks is %.2f" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __TEXT,__literal8,8byte_literals .p2align 3 ## -- Begin function main LCPI0_0: .quad 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) leaq L_.str(%rip), %rdi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi leaq -8(%rbp), %rsi movb $0, %al callq _scanf leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi leaq -12(%rbp), %rsi movb $0, %al callq _scanf movl -8(%rbp), %eax addl -12(%rbp), %eax movl %eax, -16(%rbp) cvtsi2sdl -16(%rbp), %xmm0 movsd LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero divsd %xmm1, %xmm0 cvtsd2ss %xmm0, %xmm0 movss %xmm0, -20(%rbp) movss -20(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 leaq L_.str.3(%rip), %rdi movb $1, %al callq _printf xorl %eax, %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Enter the mark of first subject : " L_.str.1: ## @.str.1 .asciz "%d" L_.str.2: ## @.str.2 .asciz "Enter the mark of second subject : " L_.str.3: ## @.str.3 .asciz "Average of marks is %.2f" .subsections_via_symbols
the_stack_data/76700218.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/173578504.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/138470.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _run ; -- Begin function run .p2align 2 _run: ; @run .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 x0, [sp, #40] str wzr, [sp, #36] str wzr, [sp, #32] str wzr, [sp, #28] b LBB0_1 LBB0_1: ; =>This Loop Header: Depth=1 ; Child Loop BB0_4 Depth 2 ldr x8, [sp, #40] ldrsb w8, [x8] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_11 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #40] ldrsb w8, [x8] subs w8, w8, #10 cset w8, ne tbnz w8, #0, LBB0_8 b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 add x0, sp, #36 bl _atoi ldrsw x9, [sp, #28] mov x8, x9 add w8, w8, #1 str w8, [sp, #28] add x8, sp, #56 str w0, [x8, x9, lsl #2] str wzr, [sp, #32] str wzr, [sp, #24] b LBB0_4 LBB0_4: ; Parent Loop BB0_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #24] subs w8, w8, #4 cset w8, ge tbnz w8, #0, LBB0_7 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_4 Depth=2 ldrsw x9, [sp, #24] add x8, sp, #36 add x8, x8, x9 strb wzr, [x8] b LBB0_6 LBB0_6: ; in Loop: Header=BB0_4 Depth=2 ldr w8, [sp, #24] add w8, w8, #1 str w8, [sp, #24] b LBB0_4 LBB0_7: ; in Loop: Header=BB0_1 Depth=1 b LBB0_9 LBB0_8: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #40] ldrb w8, [x8] ldrsw x10, [sp, #32] mov x9, x10 add w9, w9, #1 str w9, [sp, #32] add x9, sp, #36 add x9, x9, x10 strb w8, [x9] 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 x8, [sp, #40] add x8, x8, #1 str x8, [sp, #40] b LBB0_1 LBB0_11: str wzr, [sp, #20] b LBB0_12 LBB0_12: ; =>This Loop Header: Depth=1 ; Child Loop BB0_14 Depth 2 ldr w8, [sp, #20] ldr w9, [sp, #28] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_21 b LBB0_13 LBB0_13: ; in Loop: Header=BB0_12 Depth=1 ldr w8, [sp, #20] add w8, w8, #1 str w8, [sp, #16] b LBB0_14 LBB0_14: ; Parent Loop BB0_12 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #16] ldr w9, [sp, #28] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_19 b LBB0_15 LBB0_15: ; in Loop: Header=BB0_14 Depth=2 ldrsw x8, [sp, #20] add x9, sp, #56 ldr w8, [x9, x8, lsl #2] ldrsw x10, [sp, #16] ldr w9, [x9, x10, lsl #2] add w8, w8, w9 subs w8, w8, #2020 cset w8, ne tbnz w8, #0, LBB0_17 b LBB0_16 LBB0_16: ldrsw x8, [sp, #20] add x9, sp, #56 ldr w8, [x9, x8, lsl #2] ldrsw x10, [sp, #16] ldr w9, [x9, x10, lsl #2] mul w8, w8, w9 str w8, [sp, #52] b LBB0_22 LBB0_17: ; in Loop: Header=BB0_14 Depth=2 b LBB0_18 LBB0_18: ; in Loop: Header=BB0_14 Depth=2 ldr w8, [sp, #16] add w8, w8, #1 str w8, [sp, #16] b LBB0_14 LBB0_19: ; in Loop: Header=BB0_12 Depth=1 b LBB0_20 LBB0_20: ; in Loop: Header=BB0_12 Depth=1 ldr w8, [sp, #20] add w8, w8, #1 str w8, [sp, #20] b LBB0_12 LBB0_21: str wzr, [sp, #52] b LBB0_22 LBB0_22: ldr w8, [sp, #52] str w8, [sp, #12] ; 4-byte Folded Spill ldur x9, [x29, #-24] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_24 b LBB0_23 LBB0_23: bl ___stack_chk_fail LBB0_24: ldr w0, [sp, #12] ; 4-byte Folded Reload 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 .section __TEXT,__literal8,8byte_literals .p2align 3 ; -- Begin function main lCPI1_0: .quad 0x412e848000000000 ; double 1.0E+6 lCPI1_1: .quad 0x408f400000000000 ; double 1000 .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 mov w8, #0 str w8, [sp, #16] ; 4-byte Folded Spill stur wzr, [x29, #-4] stur w0, [x29, #-8] stur x1, [x29, #-16] bl _clock str x0, [sp, #24] ldur x8, [x29, #-16] ldr x0, [x8, #8] bl _run str w0, [sp, #20] bl _clock ldr x8, [sp, #24] subs x8, x0, x8 ucvtf s0, x8 fcvt d0, s0 adrp x8, lCPI1_1@PAGE ldr d1, [x8, lCPI1_1@PAGEOFF] fmul d0, d0, d1 adrp x8, lCPI1_0@PAGE ldr d1, [x8, lCPI1_0@PAGEOFF] fdiv d0, d0, d1 ldr w9, [sp, #20] ; implicit-def: $x8 mov x8, x9 mov x9, sp str d0, [x9] str x8, [x9, #8] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldr w0, [sp, #16] ; 4-byte Folded Reload ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "_duration:%f\n%d\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _run ## -- Begin function run .p2align 4, 0x90 _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 $1264, %rsp ## imm = 0x4F0 movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movq %rdi, -1232(%rbp) leaq -1236(%rbp), %rdi xorl %esi, %esi movl $4, %edx callq _memset movl $0, -1240(%rbp) movl $0, -1244(%rbp) LBB0_1: ## =>This Loop Header: Depth=1 ## Child Loop BB0_4 Depth 2 movq -1232(%rbp), %rax movsbl (%rax), %eax cmpl $0, %eax je LBB0_11 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movq -1232(%rbp), %rax movsbl (%rax), %eax cmpl $10, %eax jne LBB0_8 ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 leaq -1236(%rbp), %rdi callq _atoi movl %eax, %ecx movl -1244(%rbp), %eax movl %eax, %edx addl $1, %edx movl %edx, -1244(%rbp) cltq movl %ecx, -1216(%rbp,%rax,4) movl $0, -1240(%rbp) movl $0, -1248(%rbp) LBB0_4: ## Parent Loop BB0_1 Depth=1 ## => This Inner Loop Header: Depth=2 cmpl $4, -1248(%rbp) jge LBB0_7 ## %bb.5: ## in Loop: Header=BB0_4 Depth=2 movslq -1248(%rbp), %rax movb $0, -1236(%rbp,%rax) ## %bb.6: ## in Loop: Header=BB0_4 Depth=2 movl -1248(%rbp), %eax addl $1, %eax movl %eax, -1248(%rbp) jmp LBB0_4 LBB0_7: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_9 LBB0_8: ## in Loop: Header=BB0_1 Depth=1 movq -1232(%rbp), %rax movb (%rax), %cl movl -1240(%rbp), %eax movl %eax, %edx addl $1, %edx movl %edx, -1240(%rbp) cltq movb %cl, -1236(%rbp,%rax) LBB0_9: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_10 LBB0_10: ## in Loop: Header=BB0_1 Depth=1 movq -1232(%rbp), %rax addq $1, %rax movq %rax, -1232(%rbp) jmp LBB0_1 LBB0_11: movl $0, -1252(%rbp) LBB0_12: ## =>This Loop Header: Depth=1 ## Child Loop BB0_14 Depth 2 movl -1252(%rbp), %eax cmpl -1244(%rbp), %eax jge LBB0_21 ## %bb.13: ## in Loop: Header=BB0_12 Depth=1 movl -1252(%rbp), %eax addl $1, %eax movl %eax, -1256(%rbp) LBB0_14: ## Parent Loop BB0_12 Depth=1 ## => This Inner Loop Header: Depth=2 movl -1256(%rbp), %eax cmpl -1244(%rbp), %eax jge LBB0_19 ## %bb.15: ## in Loop: Header=BB0_14 Depth=2 movslq -1252(%rbp), %rax movl -1216(%rbp,%rax,4), %eax movslq -1256(%rbp), %rcx addl -1216(%rbp,%rcx,4), %eax cmpl $2020, %eax ## imm = 0x7E4 jne LBB0_17 ## %bb.16: movslq -1252(%rbp), %rax movl -1216(%rbp,%rax,4), %eax movslq -1256(%rbp), %rcx imull -1216(%rbp,%rcx,4), %eax movl %eax, -1220(%rbp) jmp LBB0_22 LBB0_17: ## in Loop: Header=BB0_14 Depth=2 jmp LBB0_18 LBB0_18: ## in Loop: Header=BB0_14 Depth=2 movl -1256(%rbp), %eax addl $1, %eax movl %eax, -1256(%rbp) jmp LBB0_14 LBB0_19: ## in Loop: Header=BB0_12 Depth=1 jmp LBB0_20 LBB0_20: ## in Loop: Header=BB0_12 Depth=1 movl -1252(%rbp), %eax addl $1, %eax movl %eax, -1252(%rbp) jmp LBB0_12 LBB0_21: movl $0, -1220(%rbp) LBB0_22: movl -1220(%rbp), %eax movl %eax, -1260(%rbp) ## 4-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_24 ## %bb.23: movl -1260(%rbp), %eax ## 4-byte Reload addq $1264, %rsp ## imm = 0x4F0 popq %rbp retq LBB0_24: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ## -- Begin function main LCPI1_0: .quad 0x412e848000000000 ## double 1.0E+6 LCPI1_1: .quad 0x408f400000000000 ## double 1000 .section __TEXT,__text,regular,pure_instructions .globl _main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movl $0, -4(%rbp) movl %edi, -8(%rbp) movq %rsi, -16(%rbp) callq _clock movq %rax, -24(%rbp) movq -16(%rbp), %rax movq 8(%rax), %rdi callq _run movl %eax, -28(%rbp) callq _clock movq -24(%rbp), %rcx subq %rcx, %rax movq %rax, %rdx shrq %rdx movl %eax, %ecx andl $1, %ecx ## kill: def $rcx killed $ecx orq %rdx, %rcx cvtsi2ss %rcx, %xmm0 addss %xmm0, %xmm0 cvtsi2ss %rax, %xmm1 movss %xmm1, -36(%rbp) ## 4-byte Spill testq %rax, %rax movss %xmm0, -32(%rbp) ## 4-byte Spill js LBB1_2 ## %bb.1: movss -36(%rbp), %xmm0 ## 4-byte Reload ## xmm0 = mem[0],zero,zero,zero movss %xmm0, -32(%rbp) ## 4-byte Spill LBB1_2: movss -32(%rbp), %xmm0 ## 4-byte Reload ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movsd LCPI1_1(%rip), %xmm1 ## xmm1 = mem[0],zero mulsd %xmm1, %xmm0 movsd LCPI1_0(%rip), %xmm1 ## xmm1 = mem[0],zero divsd %xmm1, %xmm0 movl -28(%rbp), %esi leaq L_.str(%rip), %rdi movb $1, %al callq _printf xorl %eax, %eax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "_duration:%f\n%d\n" .subsections_via_symbols
the_stack_data/115764866.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _begin ; -- Begin function begin .p2align 2 _begin: ; @begin .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, eq 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 _end ; -- Begin function end .p2align 2 _end: ; @end .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, eq tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: str wzr, [sp, #12] b LBB1_3 LBB1_2: mov w8, #1 str w8, [sp, #12] b LBB1_3 LBB1_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, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov x8, x0 mov w0, #0 stur wzr, [x29, #-4] str w8, [sp, #8] str x1, [sp] bl _begin mov w0, #1 bl _end ldr w8, [sp, #8] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB2_2 b LBB2_1 LBB2_1: stur wzr, [x29, #-4] b LBB2_3 LBB2_2: mov w8, #1 stur w8, [x29, #-4] b LBB2_3 LBB2_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 _begin ## -- Begin function begin .p2align 4, 0x90 _begin: ## @begin .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) je 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 _end ## -- Begin function end .p2align 4, 0x90 _end: ## @end .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) je LBB1_2 ## %bb.1: movl $0, -4(%rbp) jmp LBB1_3 LBB1_2: movl $1, -4(%rbp) LBB1_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) movl %edi, -8(%rbp) movq %rsi, -16(%rbp) xorl %edi, %edi callq _begin movl $1, %edi callq _end cmpl $0, -8(%rbp) je LBB2_2 ## %bb.1: movl $0, -4(%rbp) jmp LBB2_3 LBB2_2: movl $1, -4(%rbp) LBB2_3: movl -4(%rbp), %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/90763631.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _max ; -- Begin function max .p2align 2 _max: ; @max .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #8] str w1, [sp, #4] ldr w8, [sp, #8] ldr w9, [sp, #4] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: ldr w8, [sp, #8] str w8, [sp, #12] b LBB0_3 LBB0_2: ldr w8, [sp, #4] str w8, [sp, #12] b LBB0_3 LBB0_3: ldr w0, [sp, #12] add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _overlap ; -- Begin function overlap .p2align 2 _overlap: ; @overlap .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-16] str x1, [sp, #24] str wzr, [sp, #16] str wzr, [sp, #12] ldur x0, [x29, #-16] bl _strlen subs x8, x0, #0 cset w8, eq tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: ldr x0, [sp, #24] bl _strlen subs x8, x0, #0 cset w8, ne tbnz w8, #0, LBB1_3 b LBB1_2 LBB1_2: stur wzr, [x29, #-4] b LBB1_10 LBB1_3: str wzr, [sp, #20] b LBB1_4 LBB1_4: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #24] ldrsw x9, [sp, #20] ldrsb w8, [x8, x9] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB1_9 b LBB1_5 LBB1_5: ; in Loop: Header=BB1_4 Depth=1 ldur x8, [x29, #-16] ldrsw x9, [sp, #16] ldrsb w8, [x8, x9] ldr x9, [sp, #24] ldrsw x10, [sp, #20] ldrsb w9, [x9, x10] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB1_7 b LBB1_6 LBB1_6: ; in Loop: Header=BB1_4 Depth=1 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] ldr w8, [sp, #16] add w8, w8, #1 str w8, [sp, #16] b LBB1_8 LBB1_7: ; in Loop: Header=BB1_4 Depth=1 ldr w8, [sp, #20] ldr w9, [sp, #12] subs w8, w8, w9 str w8, [sp, #20] str wzr, [sp, #12] str wzr, [sp, #16] b LBB1_8 LBB1_8: ; in Loop: Header=BB1_4 Depth=1 ldr w8, [sp, #20] add w8, w8, #1 str w8, [sp, #20] b LBB1_4 LBB1_9: ldr w8, [sp, #12] stur w8, [x29, #-4] b LBB1_10 LBB1_10: ldur w0, [x29, #-4] ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: 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 wzr, [x29, #-12] stur w0, [x29, #-16] stur x1, [x29, #-24] stur xzr, [x29, #-64] stur xzr, [x29, #-72] stur xzr, [x29, #-80] stur xzr, [x29, #-88] stur wzr, [x29, #-96] sub sp, sp, #16 mov x9, sp sub x8, x29, #92 str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _scanf add sp, sp, #16 ldur w8, [x29, #-92] ; kill: def $x8 killed $w8 mov x9, sp stur x9, [x29, #-104] mov x9, #100 mul x9, x8, x9 add x9, x9, #15 and x9, x9, #0xfffffffffffffff0 stur x9, [x29, #-128] ; 8-byte Folded Spill adrp x16, ___chkstk_darwin@GOTPAGE ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF] blr x16 ldur x10, [x29, #-128] ; 8-byte Folded Reload mov x9, sp subs x9, x9, x10 mov sp, x9 stur x9, [x29, #-120] ; 8-byte Folded Spill stur x8, [x29, #-112] stur xzr, [x29, #-32] b LBB2_1 LBB2_1: ; =>This Inner Loop Header: Depth=1 ldur x8, [x29, #-32] ldursw x9, [x29, #-92] subs x8, x8, x9 cset w8, hs tbnz w8, #0, LBB2_4 b LBB2_2 LBB2_2: ; in Loop: Header=BB2_1 Depth=1 ldur x8, [x29, #-120] ; 8-byte Folded Reload ldur x9, [x29, #-32] mov x10, #100 stur x10, [x29, #-144] ; 8-byte Folded Spill mul x9, x9, x10 add x0, x8, x9 adrp x8, ___stdinp@GOTPAGE ldr x8, [x8, ___stdinp@GOTPAGEOFF] ldr x2, [x8] mov w1, #100 bl _fgets ldur x10, [x29, #-144] ; 8-byte Folded Reload ldur x8, [x29, #-120] ; 8-byte Folded Reload ldur x9, [x29, #-32] mul x9, x9, x10 add x9, x8, x9 stur x9, [x29, #-136] ; 8-byte Folded Spill ldur x9, [x29, #-32] mul x9, x9, x10 add x0, x8, x9 bl _strlen ldur x8, [x29, #-136] ; 8-byte Folded Reload subs x9, x0, #1 add x8, x8, x9 strb wzr, [x8] b LBB2_3 LBB2_3: ; in Loop: Header=BB2_1 Depth=1 ldur x8, [x29, #-32] add x8, x8, #1 stur x8, [x29, #-32] b LBB2_1 LBB2_4: stur xzr, [x29, #-56] b LBB2_5 LBB2_5: ; =>This Loop Header: Depth=1 ; Child Loop BB2_7 Depth 2 ; Child Loop BB2_9 Depth 3 ; Child Loop BB2_20 Depth 2 ldur x8, [x29, #-56] ldursw x9, [x29, #-92] subs x8, x8, x9 cset w8, hs tbnz w8, #0, LBB2_26 b LBB2_6 LBB2_6: ; in Loop: Header=BB2_5 Depth=1 stur xzr, [x29, #-40] b LBB2_7 LBB2_7: ; Parent Loop BB2_5 Depth=1 ; => This Loop Header: Depth=2 ; Child Loop BB2_9 Depth 3 ldur x8, [x29, #-40] ldur w9, [x29, #-92] subs w9, w9, #1 subs x8, x8, w9, sxtw cset w8, hs tbnz w8, #0, LBB2_18 b LBB2_8 LBB2_8: ; in Loop: Header=BB2_7 Depth=2 ldur x8, [x29, #-40] add x8, x8, #1 stur x8, [x29, #-48] b LBB2_9 LBB2_9: ; Parent Loop BB2_5 Depth=1 ; Parent Loop BB2_7 Depth=2 ; => This Inner Loop Header: Depth=3 ldur x8, [x29, #-48] ldursw x9, [x29, #-92] subs x8, x8, x9 cset w8, hs tbnz w8, #0, LBB2_16 b LBB2_10 LBB2_10: ; in Loop: Header=BB2_9 Depth=3 ldur x8, [x29, #-120] ; 8-byte Folded Reload ldur x9, [x29, #-40] mov x10, #100 mul x9, x9, x10 add x0, x8, x9 ldur x9, [x29, #-48] mul x9, x9, x10 add x1, x8, x9 bl _overlap ; implicit-def: $x8 mov x8, x0 sxtw x8, w8 ldur x9, [x29, #-64] subs x8, x8, x9 cset w8, ls tbnz w8, #0, LBB2_12 b LBB2_11 LBB2_11: ; in Loop: Header=BB2_9 Depth=3 ldur x8, [x29, #-120] ; 8-byte Folded Reload ldur x9, [x29, #-40] mov x10, #100 mul x9, x9, x10 add x0, x8, x9 ldur x9, [x29, #-48] mul x9, x9, x10 add x1, x8, x9 bl _overlap ; implicit-def: $x8 mov x8, x0 sxtw x8, w8 stur x8, [x29, #-64] ldur x8, [x29, #-48] stur x8, [x29, #-72] ldur x8, [x29, #-40] stur x8, [x29, #-80] mov w8, #1 stur w8, [x29, #-96] b LBB2_12 LBB2_12: ; in Loop: Header=BB2_9 Depth=3 ldur x8, [x29, #-120] ; 8-byte Folded Reload ldur x9, [x29, #-48] mov x10, #100 mul x9, x9, x10 add x0, x8, x9 ldur x9, [x29, #-40] mul x9, x9, x10 add x1, x8, x9 bl _overlap ; implicit-def: $x8 mov x8, x0 sxtw x8, w8 ldur x9, [x29, #-64] subs x8, x8, x9 cset w8, ls tbnz w8, #0, LBB2_14 b LBB2_13 LBB2_13: ; in Loop: Header=BB2_9 Depth=3 ldur x8, [x29, #-120] ; 8-byte Folded Reload ldur x9, [x29, #-48] mov x10, #100 mul x9, x9, x10 add x0, x8, x9 ldur x9, [x29, #-40] mul x9, x9, x10 add x1, x8, x9 bl _overlap ; implicit-def: $x8 mov x8, x0 sxtw x8, w8 stur x8, [x29, #-64] ldur x8, [x29, #-40] stur x8, [x29, #-72] ldur x8, [x29, #-48] stur x8, [x29, #-80] mov w8, #1 stur w8, [x29, #-96] b LBB2_14 LBB2_14: ; in Loop: Header=BB2_9 Depth=3 b LBB2_15 LBB2_15: ; in Loop: Header=BB2_9 Depth=3 ldur x8, [x29, #-48] add x8, x8, #1 stur x8, [x29, #-48] b LBB2_9 LBB2_16: ; in Loop: Header=BB2_7 Depth=2 b LBB2_17 LBB2_17: ; in Loop: Header=BB2_7 Depth=2 ldur x8, [x29, #-40] add x8, x8, #1 stur x8, [x29, #-40] b LBB2_7 LBB2_18: ; in Loop: Header=BB2_5 Depth=1 ldur x8, [x29, #-64] subs x8, x8, #0 cset w8, ls tbnz w8, #0, LBB2_24 b LBB2_19 LBB2_19: ; in Loop: Header=BB2_5 Depth=1 ldur x8, [x29, #-120] ; 8-byte Folded Reload ldur x9, [x29, #-72] mov x10, #100 mul x9, x9, x10 add x0, x8, x9 bl _strlen stur x0, [x29, #-32] b LBB2_20 LBB2_20: ; Parent Loop BB2_5 Depth=1 ; => This Inner Loop Header: Depth=2 ldur x8, [x29, #-120] ; 8-byte Folded Reload ldur x9, [x29, #-32] stur x9, [x29, #-152] ; 8-byte Folded Spill ldur x9, [x29, #-72] mov x10, #100 stur x10, [x29, #-176] ; 8-byte Folded Spill mul x9, x9, x10 add x0, x8, x9 bl _strlen ldur x10, [x29, #-176] ; 8-byte Folded Reload ldur x8, [x29, #-120] ; 8-byte Folded Reload stur x0, [x29, #-168] ; 8-byte Folded Spill ldur x9, [x29, #-80] mul x9, x9, x10 add x0, x8, x9 bl _strlen ldur x10, [x29, #-176] ; 8-byte Folded Reload ldur x8, [x29, #-120] ; 8-byte Folded Reload mov x9, x0 ldur x0, [x29, #-168] ; 8-byte Folded Reload add x9, x0, x9 stur x9, [x29, #-160] ; 8-byte Folded Spill ldur x9, [x29, #-72] mul x9, x9, x10 add x0, x8, x9 ldur x9, [x29, #-80] mul x9, x9, x10 add x1, x8, x9 bl _overlap ldur x9, [x29, #-160] ; 8-byte Folded Reload ldur x8, [x29, #-152] ; 8-byte Folded Reload subs x9, x9, w0, sxtw subs x9, x9, #6 subs x8, x8, x9 cset w8, hs tbnz w8, #0, LBB2_23 b LBB2_21 LBB2_21: ; in Loop: Header=BB2_20 Depth=2 ldur x9, [x29, #-120] ; 8-byte Folded Reload ldur x8, [x29, #-80] mov x11, #100 mul x8, x8, x11 add x8, x9, x8 ldur x10, [x29, #-64] add x12, x10, #1 stur x12, [x29, #-64] add x8, x8, x10 ldrb w8, [x8] ldur x10, [x29, #-72] mul x10, x10, x11 add x9, x9, x10 ldur x10, [x29, #-32] add x9, x9, x10 strb w8, [x9] b LBB2_22 LBB2_22: ; in Loop: Header=BB2_20 Depth=2 ldur x8, [x29, #-32] add x8, x8, #1 stur x8, [x29, #-32] b LBB2_20 LBB2_23: ; in Loop: Header=BB2_5 Depth=1 ldur x8, [x29, #-120] ; 8-byte Folded Reload ldur x9, [x29, #-80] mov x10, #100 mul x9, x9, x10 add x8, x8, x9 strb wzr, [x8] b LBB2_24 LBB2_24: ; in Loop: Header=BB2_5 Depth=1 stur xzr, [x29, #-64] b LBB2_25 LBB2_25: ; in Loop: Header=BB2_5 Depth=1 ldur x8, [x29, #-56] add x8, x8, #1 stur x8, [x29, #-56] b LBB2_5 LBB2_26: stur xzr, [x29, #-32] b LBB2_27 LBB2_27: ; =>This Inner Loop Header: Depth=1 ldur x8, [x29, #-32] ldursw x9, [x29, #-92] subs x8, x8, x9 cset w8, hs tbnz w8, #0, LBB2_32 b LBB2_28 LBB2_28: ; in Loop: Header=BB2_27 Depth=1 ldur x8, [x29, #-120] ; 8-byte Folded Reload ldur x9, [x29, #-32] mov x10, #100 mul x9, x9, x10 add x0, x8, x9 bl _strlen subs x8, x0, #0 cset w8, eq tbnz w8, #0, LBB2_30 b LBB2_29 LBB2_29: ; in Loop: Header=BB2_27 Depth=1 ldur x8, [x29, #-32] stur x8, [x29, #-88] b LBB2_30 LBB2_30: ; in Loop: Header=BB2_27 Depth=1 b LBB2_31 LBB2_31: ; in Loop: Header=BB2_27 Depth=1 ldur x8, [x29, #-32] add x8, x8, #1 stur x8, [x29, #-32] b LBB2_27 LBB2_32: ldur x8, [x29, #-120] ; 8-byte Folded Reload ldur x9, [x29, #-88] mov x10, #100 mul x9, x9, x10 add x0, x8, x9 bl _strlen sub sp, sp, #16 mov x8, sp str x0, [x8] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf add sp, sp, #16 stur wzr, [x29, #-12] ldur x8, [x29, #-104] mov sp, x8 ldur w8, [x29, #-12] stur w8, [x29, #-180] ; 4-byte Folded Spill ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB2_34 b LBB2_33 LBB2_33: bl ___stack_chk_fail LBB2_34: ldur w0, [x29, #-180] ; 4-byte Folded Reload mov sp, x29 ldp x29, x30, [sp], #16 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d\n" l_.str.1: ; @.str.1 .asciz "%lu" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _max ## -- Begin function max .p2align 4, 0x90 _max: ## @max .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, -8(%rbp) movl %esi, -12(%rbp) movl -8(%rbp), %eax cmpl -12(%rbp), %eax jle LBB0_2 ## %bb.1: movl -8(%rbp), %eax movl %eax, -4(%rbp) jmp LBB0_3 LBB0_2: movl -12(%rbp), %eax movl %eax, -4(%rbp) LBB0_3: movl -4(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .globl _overlap ## -- Begin function overlap .p2align 4, 0x90 _overlap: ## @overlap .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movq %rdi, -16(%rbp) movq %rsi, -24(%rbp) movl $0, -32(%rbp) movl $0, -36(%rbp) movq -16(%rbp), %rdi callq _strlen cmpq $0, %rax je LBB1_2 ## %bb.1: movq -24(%rbp), %rdi callq _strlen cmpq $0, %rax jne LBB1_3 LBB1_2: movl $0, -4(%rbp) jmp LBB1_10 LBB1_3: movl $0, -28(%rbp) LBB1_4: ## =>This Inner Loop Header: Depth=1 movq -24(%rbp), %rax movslq -28(%rbp), %rcx movsbl (%rax,%rcx), %eax cmpl $0, %eax je LBB1_9 ## %bb.5: ## in Loop: Header=BB1_4 Depth=1 movq -16(%rbp), %rax movslq -32(%rbp), %rcx movsbl (%rax,%rcx), %eax movq -24(%rbp), %rcx movslq -28(%rbp), %rdx movsbl (%rcx,%rdx), %ecx cmpl %ecx, %eax jne LBB1_7 ## %bb.6: ## in Loop: Header=BB1_4 Depth=1 movl -36(%rbp), %eax addl $1, %eax movl %eax, -36(%rbp) movl -32(%rbp), %eax addl $1, %eax movl %eax, -32(%rbp) jmp LBB1_8 LBB1_7: ## in Loop: Header=BB1_4 Depth=1 movl -28(%rbp), %eax subl -36(%rbp), %eax movl %eax, -28(%rbp) movl $0, -36(%rbp) movl $0, -32(%rbp) LBB1_8: ## in Loop: Header=BB1_4 Depth=1 movl -28(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) jmp LBB1_4 LBB1_9: movl -36(%rbp), %eax movl %eax, -4(%rbp) LBB1_10: 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 $176, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -12(%rbp) movl %edi, -16(%rbp) movq %rsi, -24(%rbp) movq $0, -64(%rbp) movq $0, -72(%rbp) movq $0, -80(%rbp) movq $0, -88(%rbp) movl $0, -96(%rbp) leaq L_.str(%rip), %rdi xorl %eax, %eax ## kill: def $al killed $al killed $eax leaq -92(%rbp), %rsi callq _scanf movl -92(%rbp), %eax ## kill: def $rax killed $eax movq %rax, -128(%rbp) ## 8-byte Spill movq %rsp, %rcx movq %rcx, -104(%rbp) imulq $100, %rax, %rax callq ____chkstk_darwin addq $15, %rax andq $-16, %rax subq %rax, %rsp movq -128(%rbp), %rax ## 8-byte Reload movq %rsp, %rcx movq %rcx, -120(%rbp) ## 8-byte Spill movq %rax, -112(%rbp) movq $0, -32(%rbp) LBB2_1: ## =>This Inner Loop Header: Depth=1 movq -32(%rbp), %rax movslq -92(%rbp), %rcx cmpq %rcx, %rax jae LBB2_4 ## %bb.2: ## in Loop: Header=BB2_1 Depth=1 movq -120(%rbp), %rdi ## 8-byte Reload imulq $100, -32(%rbp), %rax addq %rax, %rdi movq ___stdinp@GOTPCREL(%rip), %rax movq (%rax), %rdx movl $100, %esi callq _fgets movq -120(%rbp), %rdi ## 8-byte Reload imulq $100, -32(%rbp), %rcx movq %rdi, %rax addq %rcx, %rax movq %rax, -136(%rbp) ## 8-byte Spill imulq $100, -32(%rbp), %rax addq %rax, %rdi callq _strlen movq %rax, %rcx movq -136(%rbp), %rax ## 8-byte Reload subq $1, %rcx movb $0, (%rax,%rcx) ## %bb.3: ## in Loop: Header=BB2_1 Depth=1 movq -32(%rbp), %rax addq $1, %rax movq %rax, -32(%rbp) jmp LBB2_1 LBB2_4: movq $0, -56(%rbp) LBB2_5: ## =>This Loop Header: Depth=1 ## Child Loop BB2_7 Depth 2 ## Child Loop BB2_9 Depth 3 ## Child Loop BB2_20 Depth 2 movq -56(%rbp), %rax movslq -92(%rbp), %rcx cmpq %rcx, %rax jae LBB2_26 ## %bb.6: ## in Loop: Header=BB2_5 Depth=1 movq $0, -40(%rbp) LBB2_7: ## Parent Loop BB2_5 Depth=1 ## => This Loop Header: Depth=2 ## Child Loop BB2_9 Depth 3 movq -40(%rbp), %rax movl -92(%rbp), %ecx subl $1, %ecx movslq %ecx, %rcx cmpq %rcx, %rax jae LBB2_18 ## %bb.8: ## in Loop: Header=BB2_7 Depth=2 movq -40(%rbp), %rax addq $1, %rax movq %rax, -48(%rbp) LBB2_9: ## Parent Loop BB2_5 Depth=1 ## Parent Loop BB2_7 Depth=2 ## => This Inner Loop Header: Depth=3 movq -48(%rbp), %rax movslq -92(%rbp), %rcx cmpq %rcx, %rax jae LBB2_16 ## %bb.10: ## in Loop: Header=BB2_9 Depth=3 movq -120(%rbp), %rsi ## 8-byte Reload imulq $100, -40(%rbp), %rax movq %rsi, %rdi addq %rax, %rdi imulq $100, -48(%rbp), %rax addq %rax, %rsi callq _overlap cltq cmpq -64(%rbp), %rax jbe LBB2_12 ## %bb.11: ## in Loop: Header=BB2_9 Depth=3 movq -120(%rbp), %rsi ## 8-byte Reload imulq $100, -40(%rbp), %rax movq %rsi, %rdi addq %rax, %rdi imulq $100, -48(%rbp), %rax addq %rax, %rsi callq _overlap cltq movq %rax, -64(%rbp) movq -48(%rbp), %rax movq %rax, -72(%rbp) movq -40(%rbp), %rax movq %rax, -80(%rbp) movl $1, -96(%rbp) LBB2_12: ## in Loop: Header=BB2_9 Depth=3 movq -120(%rbp), %rsi ## 8-byte Reload imulq $100, -48(%rbp), %rax movq %rsi, %rdi addq %rax, %rdi imulq $100, -40(%rbp), %rax addq %rax, %rsi callq _overlap cltq cmpq -64(%rbp), %rax jbe LBB2_14 ## %bb.13: ## in Loop: Header=BB2_9 Depth=3 movq -120(%rbp), %rsi ## 8-byte Reload imulq $100, -48(%rbp), %rax movq %rsi, %rdi addq %rax, %rdi imulq $100, -40(%rbp), %rax addq %rax, %rsi callq _overlap cltq movq %rax, -64(%rbp) movq -40(%rbp), %rax movq %rax, -72(%rbp) movq -48(%rbp), %rax movq %rax, -80(%rbp) movl $1, -96(%rbp) LBB2_14: ## in Loop: Header=BB2_9 Depth=3 jmp LBB2_15 LBB2_15: ## in Loop: Header=BB2_9 Depth=3 movq -48(%rbp), %rax addq $1, %rax movq %rax, -48(%rbp) jmp LBB2_9 LBB2_16: ## in Loop: Header=BB2_7 Depth=2 jmp LBB2_17 LBB2_17: ## in Loop: Header=BB2_7 Depth=2 movq -40(%rbp), %rax addq $1, %rax movq %rax, -40(%rbp) jmp LBB2_7 LBB2_18: ## in Loop: Header=BB2_5 Depth=1 cmpq $0, -64(%rbp) jbe LBB2_24 ## %bb.19: ## in Loop: Header=BB2_5 Depth=1 movq -120(%rbp), %rdi ## 8-byte Reload imulq $100, -72(%rbp), %rax addq %rax, %rdi callq _strlen movq %rax, -32(%rbp) LBB2_20: ## Parent Loop BB2_5 Depth=1 ## => This Inner Loop Header: Depth=2 movq -120(%rbp), %rdi ## 8-byte Reload movq -32(%rbp), %rax movq %rax, -144(%rbp) ## 8-byte Spill imulq $100, -72(%rbp), %rax addq %rax, %rdi callq _strlen movq -120(%rbp), %rdi ## 8-byte Reload movq %rax, -160(%rbp) ## 8-byte Spill imulq $100, -80(%rbp), %rax addq %rax, %rdi callq _strlen movq -120(%rbp), %rsi ## 8-byte Reload movq %rax, %rcx movq -160(%rbp), %rax ## 8-byte Reload addq %rcx, %rax movq %rax, -152(%rbp) ## 8-byte Spill imulq $100, -72(%rbp), %rax movq %rsi, %rdi addq %rax, %rdi imulq $100, -80(%rbp), %rax addq %rax, %rsi callq _overlap movq -152(%rbp), %rcx ## 8-byte Reload movl %eax, %edx movq -144(%rbp), %rax ## 8-byte Reload movslq %edx, %rdx subq %rdx, %rcx subq $6, %rcx cmpq %rcx, %rax jae LBB2_23 ## %bb.21: ## in Loop: Header=BB2_20 Depth=2 movq -120(%rbp), %rax ## 8-byte Reload imulq $100, -80(%rbp), %rdx movq %rax, %rcx addq %rdx, %rcx movq -64(%rbp), %rdx movq %rdx, %rsi addq $1, %rsi movq %rsi, -64(%rbp) movb (%rcx,%rdx), %dl imulq $100, -72(%rbp), %rcx addq %rcx, %rax movq -32(%rbp), %rcx movb %dl, (%rax,%rcx) ## %bb.22: ## in Loop: Header=BB2_20 Depth=2 movq -32(%rbp), %rax addq $1, %rax movq %rax, -32(%rbp) jmp LBB2_20 LBB2_23: ## in Loop: Header=BB2_5 Depth=1 movq -120(%rbp), %rax ## 8-byte Reload imulq $100, -80(%rbp), %rcx addq %rcx, %rax movb $0, (%rax) LBB2_24: ## in Loop: Header=BB2_5 Depth=1 movq $0, -64(%rbp) ## %bb.25: ## in Loop: Header=BB2_5 Depth=1 movq -56(%rbp), %rax addq $1, %rax movq %rax, -56(%rbp) jmp LBB2_5 LBB2_26: movq $0, -32(%rbp) LBB2_27: ## =>This Inner Loop Header: Depth=1 movq -32(%rbp), %rax movslq -92(%rbp), %rcx cmpq %rcx, %rax jae LBB2_32 ## %bb.28: ## in Loop: Header=BB2_27 Depth=1 movq -120(%rbp), %rdi ## 8-byte Reload imulq $100, -32(%rbp), %rax addq %rax, %rdi callq _strlen cmpq $0, %rax je LBB2_30 ## %bb.29: ## in Loop: Header=BB2_27 Depth=1 movq -32(%rbp), %rax movq %rax, -88(%rbp) LBB2_30: ## in Loop: Header=BB2_27 Depth=1 jmp LBB2_31 LBB2_31: ## in Loop: Header=BB2_27 Depth=1 movq -32(%rbp), %rax addq $1, %rax movq %rax, -32(%rbp) jmp LBB2_27 LBB2_32: movq -120(%rbp), %rdi ## 8-byte Reload imulq $100, -88(%rbp), %rax addq %rax, %rdi callq _strlen movq %rax, %rsi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf movl $0, -12(%rbp) movq -104(%rbp), %rax movq %rax, %rsp movl -12(%rbp), %eax movl %eax, -164(%rbp) ## 4-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB2_34 ## %bb.33: movl -164(%rbp), %eax ## 4-byte Reload movq %rbp, %rsp popq %rbp retq LBB2_34: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d\n" L_.str.1: ## @.str.1 .asciz "%lu" .subsections_via_symbols
the_stack_data/107485.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #80 .cfi_def_cfa_offset 80 stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp, #64 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] mov x9, sp sub x8, x29, #8 str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF str x0, [sp, #32] ; 8-byte Folded Spill bl _scanf ldr x0, [sp, #32] ; 8-byte Folded Reload mov x9, sp sub x8, x29, #12 str x8, [x9] bl _scanf ldr x0, [sp, #32] ; 8-byte Folded Reload mov x9, sp sub x8, x29, #16 str x8, [x9] bl _scanf ldur w8, [x29, #-8] ldur w9, [x29, #-12] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: ldur w8, [x29, #-12] stur w8, [x29, #-20] ldur w8, [x29, #-8] stur w8, [x29, #-12] ldur w8, [x29, #-20] stur w8, [x29, #-8] b LBB0_2 LBB0_2: ldur w8, [x29, #-12] ldur w9, [x29, #-16] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: ldur w8, [x29, #-16] stur w8, [x29, #-20] ldur w8, [x29, #-12] stur w8, [x29, #-16] ldur w8, [x29, #-20] stur w8, [x29, #-12] b LBB0_4 LBB0_4: ldur w8, [x29, #-8] ldur w9, [x29, #-12] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: ldur w8, [x29, #-12] stur w8, [x29, #-20] ldur w8, [x29, #-8] stur w8, [x29, #-12] ldur w8, [x29, #-20] stur w8, [x29, #-8] b LBB0_6 LBB0_6: ldur w8, [x29, #-8] ; implicit-def: $x11 mov x11, x8 ldur w8, [x29, #-12] ; implicit-def: $x10 mov x10, x8 ldur w9, [x29, #-16] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x11, [x9] str x10, [x9, #8] str x8, [x9, #16] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf ldur w0, [x29, #-4] ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d" l_.str.1: ; @.str.1 .asciz "%d %d %d" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl $0, -4(%rbp) leaq L_.str(%rip), %rdi leaq -8(%rbp), %rsi movb $0, %al callq _scanf leaq L_.str(%rip), %rdi leaq -12(%rbp), %rsi movb $0, %al callq _scanf leaq L_.str(%rip), %rdi leaq -16(%rbp), %rsi movb $0, %al callq _scanf movl -8(%rbp), %eax cmpl -12(%rbp), %eax jle LBB0_2 ## %bb.1: movl -12(%rbp), %eax movl %eax, -20(%rbp) movl -8(%rbp), %eax movl %eax, -12(%rbp) movl -20(%rbp), %eax movl %eax, -8(%rbp) LBB0_2: movl -12(%rbp), %eax cmpl -16(%rbp), %eax jle LBB0_4 ## %bb.3: movl -16(%rbp), %eax movl %eax, -20(%rbp) movl -12(%rbp), %eax movl %eax, -16(%rbp) movl -20(%rbp), %eax movl %eax, -12(%rbp) LBB0_4: movl -8(%rbp), %eax cmpl -12(%rbp), %eax jle LBB0_6 ## %bb.5: movl -12(%rbp), %eax movl %eax, -20(%rbp) movl -8(%rbp), %eax movl %eax, -12(%rbp) movl -20(%rbp), %eax movl %eax, -8(%rbp) LBB0_6: movl -8(%rbp), %esi movl -12(%rbp), %edx movl -16(%rbp), %ecx leaq L_.str.1(%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 "%d" L_.str.1: ## @.str.1 .asciz "%d %d %d" .subsections_via_symbols
the_stack_data/7951333.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] mov x9, sp sub x8, x29, #8 str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _scanf mov w8, #2 stur w8, [x29, #-12] b LBB0_1 LBB0_1: ; =>This Loop Header: Depth=1 ; Child Loop BB0_3 Depth 2 ldur w8, [x29, #-12] ldur w9, [x29, #-8] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_9 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 b LBB0_3 LBB0_3: ; Parent Loop BB0_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldur w8, [x29, #-8] ldur w10, [x29, #-12] sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_7 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_3 Depth=2 ldur w9, [x29, #-12] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldur w9, [x29, #-12] ldur w8, [x29, #-8] sdiv w8, w8, w9 stur w8, [x29, #-8] ldur w8, [x29, #-8] subs w8, w8, #1 cset w8, eq tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_3 Depth=2 adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf b LBB0_6 LBB0_6: ; in Loop: Header=BB0_3 Depth=2 b LBB0_3 LBB0_7: ; in Loop: Header=BB0_1 Depth=1 b LBB0_8 LBB0_8: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-12] add w8, w8, #1 stur w8, [x29, #-12] b LBB0_1 LBB0_9: mov w0, #0 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d" l_.str.1: ; @.str.1 .asciz "*" .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 $2, -12(%rbp) LBB0_1: ## =>This Loop Header: Depth=1 ## Child Loop BB0_3 Depth 2 movl -12(%rbp), %eax cmpl -8(%rbp), %eax jg LBB0_9 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_3 LBB0_3: ## Parent Loop BB0_1 Depth=1 ## => This Inner Loop Header: Depth=2 movl -8(%rbp), %eax cltd idivl -12(%rbp) cmpl $0, %edx jne LBB0_7 ## %bb.4: ## in Loop: Header=BB0_3 Depth=2 movl -12(%rbp), %esi leaq L_.str(%rip), %rdi movb $0, %al callq _printf movl -12(%rbp), %ecx movl -8(%rbp), %eax cltd idivl %ecx movl %eax, -8(%rbp) cmpl $1, -8(%rbp) je LBB0_6 ## %bb.5: ## in Loop: Header=BB0_3 Depth=2 leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf LBB0_6: ## in Loop: Header=BB0_3 Depth=2 jmp LBB0_3 LBB0_7: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_8 LBB0_8: ## in Loop: Header=BB0_1 Depth=1 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB0_1 LBB0_9: 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 "*" .subsections_via_symbols
the_stack_data/132952066.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/175487.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 f_to_c_table lCPI0_0: .quad 0x3fe1c71c71c71c72 ; double 0.55555555555555558 lCPI0_1: .quad 0x4040000000000000 ; double 32 .section __TEXT,__text,regular,pure_instructions .globl _f_to_c_table .p2align 2 _f_to_c_table: ; @f_to_c_table .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, #-12] mov w8, #300 stur w8, [x29, #-16] mov w8, #20 stur w8, [x29, #-20] ldur s0, [x29, #-12] scvtf s0, s0 stur s0, [x29, #-4] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldur s0, [x29, #-4] ldur s1, [x29, #-16] scvtf s1, s1 fcmp s0, s1 cset w8, hi tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldur s0, [x29, #-4] fcvt d0, s0 adrp x8, lCPI0_1@PAGE ldr d1, [x8, lCPI0_1@PAGEOFF] fsub d1, d0, d1 adrp x8, lCPI0_0@PAGE ldr d0, [x8, lCPI0_0@PAGEOFF] fmul d0, d0, d1 fcvt s0, d0 stur s0, [x29, #-8] ldur s0, [x29, #-4] fcvt d1, s0 ldur s0, [x29, #-8] fcvt d0, s0 mov x8, sp str d1, [x8] str d0, [x8, #8] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf ldur s0, [x29, #-4] ldur s1, [x29, #-20] scvtf s1, s1 fadd s0, s0, s1 stur s0, [x29, #-4] b LBB0_1 LBB0_3: 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 "Fahrenheit to Celsius Table\n" l_.str.1: ; @.str.1 .asciz "%3.0f %6.1f\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __TEXT,__literal8,8byte_literals .p2align 3 ## -- Begin function f_to_c_table LCPI0_0: .quad 0x3fe1c71c71c71c72 ## double 0.55555555555555558 LCPI0_1: .quad 0x4040000000000000 ## double 32 .section __TEXT,__text,regular,pure_instructions .globl _f_to_c_table .p2align 4, 0x90 _f_to_c_table: ## @f_to_c_table .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, -12(%rbp) movl $300, -16(%rbp) ## imm = 0x12C movl $20, -20(%rbp) cvtsi2ssl -12(%rbp), %xmm0 movss %xmm0, -4(%rbp) leaq L_.str(%rip), %rdi movb $0, %al callq _printf LBB0_1: ## =>This Inner Loop Header: Depth=1 movss -4(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero cvtsi2ssl -16(%rbp), %xmm0 ucomiss %xmm1, %xmm0 jb LBB0_3 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movss -4(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm1 movsd LCPI0_1(%rip), %xmm0 ## xmm0 = mem[0],zero subsd %xmm0, %xmm1 movsd LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero mulsd %xmm1, %xmm0 cvtsd2ss %xmm0, %xmm0 movss %xmm0, -8(%rbp) movss -4(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movss -8(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero cvtss2sd %xmm1, %xmm1 leaq L_.str.1(%rip), %rdi movb $2, %al callq _printf movss -4(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtsi2ssl -20(%rbp), %xmm1 addss %xmm1, %xmm0 movss %xmm0, -4(%rbp) jmp LBB0_1 LBB0_3: addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Fahrenheit to Celsius Table\n" L_.str.1: ## @.str.1 .asciz "%3.0f %6.1f\n" .subsections_via_symbols
the_stack_data/165199.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] stur w0, [x29, #-8] stur x1, [x29, #-16] stur wzr, [x29, #-20] str wzr, [sp, #24] ldr w8, [sp, #24] add w8, w8, #1 str w8, [sp, #20] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-20] add w8, w8, #1 stur w8, [x29, #-20] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 b LBB0_1 LBB0_3: ldur w8, [x29, #-20] subs w10, w8, #1 mov x9, sp ; implicit-def: $x8 mov x8, x10 str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf b LBB0_4 LBB0_4: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #20] subs w8, w8, #0 cset w8, ls tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_4 Depth=1 ldr w8, [sp, #24] add w8, w8, #1 str w8, [sp, #24] ldr w8, [sp, #20] add w8, w8, #1 str w8, [sp, #20] b LBB0_4 LBB0_6: ldr w9, [sp, #24] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf mov 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 "int max(a) = %d\n" l_.str.1: ; @.str.1 .asciz "int max(b) = %u\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl $0, -4(%rbp) movl %edi, -8(%rbp) movq %rsi, -16(%rbp) movl $0, -20(%rbp) movl $0, -24(%rbp) movl -24(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) cmpl $0, %eax jle LBB0_3 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_1 LBB0_3: movl -20(%rbp), %esi subl $1, %esi leaq L_.str(%rip), %rdi movb $0, %al callq _printf LBB0_4: ## =>This Inner Loop Header: Depth=1 cmpl $0, -28(%rbp) jbe LBB0_6 ## %bb.5: ## in Loop: Header=BB0_4 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_4 LBB0_6: movl -24(%rbp), %esi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf xorl %eax, %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "int max(a) = %d\n" L_.str.1: ## @.str.1 .asciz "int max(b) = %u\n" .subsections_via_symbols
the_stack_data/103265428.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF bl _fopen mov x8, x0 str x8, [sp, #16] subs x8, x0, #0 cset w8, eq tbnz w8, #0, LBB0_6 b LBB0_1 LBB0_1: str wzr, [sp, #12] b LBB0_2 LBB0_2: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #12] subs w8, w8, #128 cset w8, ge tbnz w8, #0, LBB0_5 b LBB0_3 LBB0_3: ; in Loop: Header=BB0_2 Depth=1 ldr x1, [sp, #16] mov w0, #0 bl _putw b LBB0_4 LBB0_4: ; in Loop: Header=BB0_2 Depth=1 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB0_2 LBB0_5: ldr x0, [sp, #16] bl _fclose b LBB0_7 LBB0_6: adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] ldr x0, [x8] adrp x1, l_.str.2@PAGE add x1, x1, l_.str.2@PAGEOFF bl _fprintf b LBB0_7 LBB0_7: 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 "/u0/habitat/fredStats" l_.str.1: ; @.str.1 .asciz "w" l_.str.2: ; @.str.2 .asciz "couldn't open stat file!\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl $0, -4(%rbp) leaq L_.str(%rip), %rdi leaq L_.str.1(%rip), %rsi callq _fopen movq %rax, -16(%rbp) cmpq $0, %rax je LBB0_6 ## %bb.1: movl $0, -20(%rbp) LBB0_2: ## =>This Inner Loop Header: Depth=1 cmpl $128, -20(%rbp) jge LBB0_5 ## %bb.3: ## in Loop: Header=BB0_2 Depth=1 movq -16(%rbp), %rsi xorl %edi, %edi callq _putw ## %bb.4: ## in Loop: Header=BB0_2 Depth=1 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB0_2 LBB0_5: movq -16(%rbp), %rdi callq _fclose jmp LBB0_7 LBB0_6: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.2(%rip), %rsi movb $0, %al callq _fprintf LBB0_7: movl -4(%rbp), %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "/u0/habitat/fredStats" L_.str.1: ## @.str.1 .asciz "w" L_.str.2: ## @.str.2 .asciz "couldn't open stat file!\n" .subsections_via_symbols
the_stack_data/790597.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov x9, sp sub x8, x29, #4 str x8, [x9] sub x8, x29, #8 str x8, [x9, #8] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf ldur w8, [x29, #-4] ldur w9, [x29, #-8] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: ldur w8, [x29, #-4] stur w8, [x29, #-12] ; 4-byte Folded Spill b LBB0_3 LBB0_2: ldur w8, [x29, #-8] stur w8, [x29, #-12] ; 4-byte Folded Spill b LBB0_3 LBB0_3: ldur w10, [x29, #-12] ; 4-byte Folded Reload mov x9, sp ; implicit-def: $x8 mov x8, x10 str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _system 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 dois numero: " l_.str.1: ; @.str.1 .asciz "%d %d" l_.str.2: ; @.str.2 .asciz "o maior numero digitado foi %d \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 _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 movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi leaq -4(%rbp), %rsi leaq -8(%rbp), %rdx movb $0, %al callq _scanf movl -4(%rbp), %eax cmpl -8(%rbp), %eax jle LBB0_2 ## %bb.1: movl -4(%rbp), %eax movl %eax, -12(%rbp) ## 4-byte Spill jmp LBB0_3 LBB0_2: movl -8(%rbp), %eax movl %eax, -12(%rbp) ## 4-byte Spill LBB0_3: movl -12(%rbp), %esi ## 4-byte Reload leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf leaq L_.str.3(%rip), %rdi callq _system addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Digite dois numero: " L_.str.1: ## @.str.1 .asciz "%d %d" L_.str.2: ## @.str.2 .asciz "o maior numero digitado foi %d \n" L_.str.3: ## @.str.3 .asciz "pause" .subsections_via_symbols
the_stack_data/362940.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #80 .cfi_def_cfa_offset 80 stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp, #64 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] str xzr, [sp] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp] subs x8, x8, #5 cset w8, ge tbnz w8, #0, LBB0_4 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldr x9, [sp] adrp x8, _args@GOTPAGE ldr x8, [x8, _args@GOTPAGEOFF] mov w0, #1 str w0, [x8, x9, lsl #2] bl _usleep b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp] add x8, x8, #1 str x8, [sp] b LBB0_1 LBB0_4: str xzr, [sp] b LBB0_5 LBB0_5: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp] subs x8, x8, #5 cset w8, ge tbnz w8, #0, LBB0_8 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_5 Depth=1 ldr x9, [sp] add x8, sp, #16 add x0, x8, x9, lsl #3 ldr x3, [sp] mov x1, #0 adrp x2, _thread_function@PAGE add x2, x2, _thread_function@PAGEOFF bl _pthread_create stur w0, [x29, #-8] b LBB0_7 LBB0_7: ; in Loop: Header=BB0_5 Depth=1 ldr x8, [sp] add x8, x8, #1 str x8, [sp] b LBB0_5 LBB0_8: ldr x10, [sp] adrp x9, _args@GOTPAGE ldr x9, [x9, _args@GOTPAGEOFF] mov w8, #1 str w8, [x9, x10, lsl #2] ldr x0, [sp] bl _thread_function mov w0, #0 bl _exit .cfi_endproc ; -- End function .globl _thread_function ; -- Begin function thread_function .p2align 2 _thread_function: ; @thread_function .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] ldur x8, [x29, #-8] ; kill: def $w8 killed $w8 killed $x8 stur w8, [x29, #-12] ldursw x9, [x29, #-12] adrp x8, _args@GOTPAGE ldr x8, [x8, _args@GOTPAGEOFF] add x8, x8, x9, lsl #2 str x8, [sp, #8] b LBB1_1 LBB1_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #8] ldr w8, [x8] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB1_3 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 ldr x9, [sp, #8] ldr w8, [x9] mov w0, #1 add w8, w8, #1 str w8, [x9] bl _usleep b LBB1_1 LBB1_3: mov x0, #0 bl _pthread_exit .cfi_endproc ; -- End function .comm _args,24,2 ; @args .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $64, %rsp movl $0, -4(%rbp) movq $0, -64(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 cmpq $5, -64(%rbp) jge LBB0_4 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movq -64(%rbp), %rcx movq _args@GOTPCREL(%rip), %rax movl $1, (%rax,%rcx,4) movl $1, %edi callq _usleep ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movq -64(%rbp), %rax addq $1, %rax movq %rax, -64(%rbp) jmp LBB0_1 LBB0_4: movq $0, -64(%rbp) LBB0_5: ## =>This Inner Loop Header: Depth=1 cmpq $5, -64(%rbp) jge LBB0_8 ## %bb.6: ## in Loop: Header=BB0_5 Depth=1 movq -64(%rbp), %rax leaq -48(%rbp), %rdi shlq $3, %rax addq %rax, %rdi movq -64(%rbp), %rcx xorl %eax, %eax movl %eax, %esi leaq _thread_function(%rip), %rdx callq _pthread_create movl %eax, -8(%rbp) ## %bb.7: ## in Loop: Header=BB0_5 Depth=1 movq -64(%rbp), %rax addq $1, %rax movq %rax, -64(%rbp) jmp LBB0_5 LBB0_8: movq -64(%rbp), %rcx movq _args@GOTPCREL(%rip), %rax movl $1, (%rax,%rcx,4) movq -64(%rbp), %rdi callq _thread_function xorl %edi, %edi callq _exit .cfi_endproc ## -- End function .globl _thread_function ## -- Begin function thread_function .p2align 4, 0x90 _thread_function: ## @thread_function .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movq -8(%rbp), %rax ## kill: def $eax killed $eax killed $rax movl %eax, -12(%rbp) movslq -12(%rbp), %rcx movq _args@GOTPCREL(%rip), %rax shlq $2, %rcx addq %rcx, %rax movq %rax, -24(%rbp) LBB1_1: ## =>This Inner Loop Header: Depth=1 movq -24(%rbp), %rax cmpl $0, (%rax) jle LBB1_3 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 movq -24(%rbp), %rax movl (%rax), %ecx addl $1, %ecx movl %ecx, (%rax) movl $1, %edi callq _usleep jmp LBB1_1 LBB1_3: xorl %eax, %eax movl %eax, %edi callq _pthread_exit .cfi_endproc ## -- End function .comm _args,24,4 ## @args .subsections_via_symbols
the_stack_data/36074525.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _getrusage_children ; -- Begin function getrusage_children .p2align 2 _getrusage_children: ; @getrusage_children .cfi_startproc ; %bb.0: sub sp, sp, #192 .cfi_def_cfa_offset 192 stp x29, x30, [sp, #176] ; 16-byte Folded Spill add x29, sp, #176 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-16] mov w0, #-1 str w0, [sp, #12] ; 4-byte Folded Spill add x1, sp, #16 bl _getrusage ldr w8, [sp, #12] ; 4-byte Folded Reload subs w8, w8, w0 cset w8, ne tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: bl ___error ldr w9, [x0] mov w8, #0 subs w8, w8, w9 stur w8, [x29, #-4] b LBB0_4 LBB0_2: ldr x8, [sp, #16] ldur x9, [x29, #-16] str x8, [x9] ldrsw x8, [sp, #24] ldur x9, [x29, #-16] str x8, [x9, #8] ldr x8, [sp, #32] ldur x9, [x29, #-16] str x8, [x9, #16] ldrsw x8, [sp, #40] ldur x9, [x29, #-16] str x8, [x9, #24] ldr x8, [sp, #48] ldur x9, [x29, #-16] str x8, [x9, #32] ldr x8, [sp, #80] ldur x9, [x29, #-16] str x8, [x9, #40] ldr x8, [sp, #88] ldur x9, [x29, #-16] str x8, [x9, #48] ldr x8, [sp, #104] ldur x9, [x29, #-16] str x8, [x9, #56] ldr x8, [sp, #112] ldur x9, [x29, #-16] str x8, [x9, #64] ldr x8, [sp, #144] ldur x9, [x29, #-16] str x8, [x9, #72] ldr x8, [sp, #152] ldur x9, [x29, #-16] str x8, [x9, #80] b LBB0_3 LBB0_3: stur wzr, [x29, #-4] b LBB0_4 LBB0_4: ldur w0, [x29, #-4] ldp x29, x30, [sp, #176] ; 16-byte Folded Reload add sp, sp, #192 ret .cfi_endproc ; -- End function .globl _getr_spawn ; -- Begin function getr_spawn .p2align 2 _getr_spawn: ; @getr_spawn .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #16] ldr x8, [sp, #16] ldr x1, [x8] ldr x4, [sp, #16] adrp x8, _environ@GOTPAGE ldr x8, [x8, _environ@GOTPAGEOFF] ldr x5, [x8] add x0, sp, #8 mov x3, #0 mov x2, x3 bl _posix_spawn str w0, [sp, #12] mov w8, #0 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: ldr w8, [sp, #12] stur w8, [x29, #-4] b LBB1_5 LBB1_2: ldr w0, [sp, #8] mov x1, #0 mov w2, #0 bl _waitpid str w0, [sp, #12] mov w8, #-1 subs w8, w8, w0 cset w8, ne tbnz w8, #0, LBB1_4 b LBB1_3 LBB1_3: bl ___error ldr w9, [x0] mov w8, #0 subs w8, w8, w9 stur w8, [x29, #-4] b LBB1_5 LBB1_4: stur wzr, [x29, #-4] b LBB1_5 LBB1_5: ldur w0, [x29, #-4] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _output_to_stderr ; -- Begin function output_to_stderr .p2align 2 _output_to_stderr: ; @output_to_stderr .cfi_startproc ; %bb.0: stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill .cfi_def_cfa_offset 16 mov x29, sp .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w0, #2 mov w1, #1 bl _dup2 ldp x29, x30, [sp], #16 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _getrusage_children ## -- Begin function getrusage_children .p2align 4, 0x90 _getrusage_children: ## @getrusage_children .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $160, %rsp movq %rdi, -16(%rbp) movl $4294967295, %edi ## imm = 0xFFFFFFFF leaq -160(%rbp), %rsi callq _getrusage movl %eax, %ecx movl $4294967295, %eax ## imm = 0xFFFFFFFF cmpl %ecx, %eax jne LBB0_2 ## %bb.1: callq ___error movq %rax, %rcx xorl %eax, %eax subl (%rcx), %eax movl %eax, -4(%rbp) jmp LBB0_4 LBB0_2: movq -160(%rbp), %rcx movq -16(%rbp), %rax movq %rcx, (%rax) movslq -152(%rbp), %rcx movq -16(%rbp), %rax movq %rcx, 8(%rax) movq -144(%rbp), %rcx movq -16(%rbp), %rax movq %rcx, 16(%rax) movslq -136(%rbp), %rcx movq -16(%rbp), %rax movq %rcx, 24(%rax) movq -128(%rbp), %rcx movq -16(%rbp), %rax movq %rcx, 32(%rax) movq -96(%rbp), %rcx movq -16(%rbp), %rax movq %rcx, 40(%rax) movq -88(%rbp), %rcx movq -16(%rbp), %rax movq %rcx, 48(%rax) movq -72(%rbp), %rcx movq -16(%rbp), %rax movq %rcx, 56(%rax) movq -64(%rbp), %rcx movq -16(%rbp), %rax movq %rcx, 64(%rax) movq -32(%rbp), %rcx movq -16(%rbp), %rax movq %rcx, 72(%rax) movq -24(%rbp), %rcx movq -16(%rbp), %rax movq %rcx, 80(%rax) ## %bb.3: movl $0, -4(%rbp) LBB0_4: movl -4(%rbp), %eax addq $160, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _getr_spawn ## -- Begin function getr_spawn .p2align 4, 0x90 _getr_spawn: ## @getr_spawn .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -16(%rbp) movq -16(%rbp), %rax movq (%rax), %rsi movq -16(%rbp), %r8 movq _environ@GOTPCREL(%rip), %rax movq (%rax), %r9 leaq -24(%rbp), %rdi xorl %eax, %eax movl %eax, %ecx movq %rcx, %rdx callq _posix_spawn movl %eax, %ecx movl %ecx, -20(%rbp) xorl %eax, %eax cmpl %ecx, %eax je LBB1_2 ## %bb.1: movl -20(%rbp), %eax movl %eax, -4(%rbp) jmp LBB1_5 LBB1_2: movl -24(%rbp), %edi xorl %eax, %eax movl %eax, %esi xorl %edx, %edx callq _waitpid movl %eax, %ecx movl %ecx, -20(%rbp) movl $4294967295, %eax ## imm = 0xFFFFFFFF cmpl %ecx, %eax jne LBB1_4 ## %bb.3: callq ___error movq %rax, %rcx xorl %eax, %eax subl (%rcx), %eax movl %eax, -4(%rbp) jmp LBB1_5 LBB1_4: movl $0, -4(%rbp) LBB1_5: movl -4(%rbp), %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _output_to_stderr ## -- Begin function output_to_stderr .p2align 4, 0x90 _output_to_stderr: ## @output_to_stderr .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl $2, %edi movl $1, %esi callq _dup2 popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/1002366.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _selectsort ; -- Begin function selectsort .p2align 2 _selectsort: ; @selectsort .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] stur w1, [x29, #-12] stur wzr, [x29, #-16] b LBB0_1 LBB0_1: ; =>This Loop Header: Depth=1 ; Child Loop BB0_3 Depth 2 ldur w8, [x29, #-16] ldur w9, [x29, #-12] subs w9, w9, #1 subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_12 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-16] str w8, [sp, #24] ldur w8, [x29, #-16] add w8, w8, #1 stur w8, [x29, #-20] b LBB0_3 LBB0_3: ; Parent Loop BB0_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldur w8, [x29, #-20] ldur w9, [x29, #-12] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_8 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_3 Depth=2 ldur x8, [x29, #-8] ldrsw x9, [sp, #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, le tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_3 Depth=2 ldur w8, [x29, #-20] str w8, [sp, #24] b LBB0_6 LBB0_6: ; in Loop: Header=BB0_3 Depth=2 b LBB0_7 LBB0_7: ; in Loop: Header=BB0_3 Depth=2 ldur w8, [x29, #-20] add w8, w8, #1 stur w8, [x29, #-20] b LBB0_3 LBB0_8: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #24] ldur w9, [x29, #-16] subs w8, w8, w9 cset w8, eq tbnz w8, #0, LBB0_10 b LBB0_9 LBB0_9: ; in Loop: Header=BB0_1 Depth=1 ldur x8, [x29, #-8] ldursw x9, [x29, #-16] ldr w8, [x8, x9, lsl #2] str w8, [sp, #20] ldur x8, [x29, #-8] ldrsw x9, [sp, #24] ldr w8, [x8, x9, lsl #2] ldur x9, [x29, #-8] ldursw x10, [x29, #-16] str w8, [x9, x10, lsl #2] ldr w8, [sp, #20] ldur x9, [x29, #-8] ldrsw x10, [sp, #24] str w8, [x9, x10, lsl #2] 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, #-16] add w8, w8, #1 stur w8, [x29, #-16] b LBB0_1 LBB0_12: stur wzr, [x29, #-16] b LBB0_13 LBB0_13: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-16] ldur w9, [x29, #-12] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_16 b LBB0_14 LBB0_14: ; in Loop: Header=BB0_13 Depth=1 ldur w8, [x29, #-16] ldur w9, [x29, #-12] subs w9, w9, #1 subs w8, w8, w9 cset w8, eq and w10, w8, #0x1 adrp x9, l_.str.1@PAGE add x9, x9, l_.str.1@PAGEOFF adrp x8, l_.str@PAGE add x8, x8, l_.str@PAGEOFF ands w10, w10, #0x1 csel x0, x8, x9, ne ldur x8, [x29, #-8] ldursw x9, [x29, #-16] ldr w9, [x8, x9, lsl #2] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] bl _printf b LBB0_15 LBB0_15: ; in Loop: Header=BB0_13 Depth=1 ldur w8, [x29, #-16] add w8, w8, #1 stur w8, [x29, #-16] b LBB0_13 LBB0_16: 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, #128 .cfi_def_cfa_offset 128 stp x29, x30, [sp, #112] ; 16-byte Folded Spill add x29, sp, #112 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] str wzr, [sp, #40] str w0, [sp, #36] str x1, [sp, #24] add x0, sp, #44 str x0, [sp, #8] ; 8-byte Folded Spill adrp x1, l___const.main.chaos@PAGE add x1, x1, l___const.main.chaos@PAGEOFF mov x2, #60 bl _memcpy ldr x0, [sp, #8] ; 8-byte Folded Reload mov w8, #15 str w8, [sp, #20] ldr w1, [sp, #20] bl _selectsort 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, #112] ; 16-byte Folded Reload add sp, sp, #128 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d" l_.str.1: ; @.str.1 .asciz "%d " .section __TEXT,__const .p2align 2 ; @__const.main.chaos l___const.main.chaos: .long 26 ; 0x1a .long 48 ; 0x30 .long 17 ; 0x11 .long 55 ; 0x37 .long 36 ; 0x24 .long 31 ; 0x1f .long 35 ; 0x23 .long 54 ; 0x36 .long 27 ; 0x1b .long 14 ; 0xe .long 13 ; 0xd .long 12 ; 0xc .long 17 ; 0x11 .long 19 ; 0x13 .long 33 ; 0x21 .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _selectsort ## -- Begin function selectsort .p2align 4, 0x90 _selectsort: ## @selectsort .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 $0, -16(%rbp) LBB0_1: ## =>This Loop Header: Depth=1 ## Child Loop BB0_3 Depth 2 movl -16(%rbp), %eax movl -12(%rbp), %ecx subl $1, %ecx cmpl %ecx, %eax jge LBB0_12 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl -16(%rbp), %eax movl %eax, -24(%rbp) movl -16(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) LBB0_3: ## Parent Loop BB0_1 Depth=1 ## => This Inner Loop Header: Depth=2 movl -20(%rbp), %eax cmpl -12(%rbp), %eax jge LBB0_8 ## %bb.4: ## in Loop: Header=BB0_3 Depth=2 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 jle LBB0_6 ## %bb.5: ## in Loop: Header=BB0_3 Depth=2 movl -20(%rbp), %eax movl %eax, -24(%rbp) LBB0_6: ## in Loop: Header=BB0_3 Depth=2 jmp LBB0_7 LBB0_7: ## in Loop: Header=BB0_3 Depth=2 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB0_3 LBB0_8: ## in Loop: Header=BB0_1 Depth=1 movl -24(%rbp), %eax cmpl -16(%rbp), %eax je LBB0_10 ## %bb.9: ## in Loop: Header=BB0_1 Depth=1 movq -8(%rbp), %rax movslq -16(%rbp), %rcx movl (%rax,%rcx,4), %eax movl %eax, -28(%rbp) movq -8(%rbp), %rax movslq -24(%rbp), %rcx movl (%rax,%rcx,4), %edx movq -8(%rbp), %rax movslq -16(%rbp), %rcx movl %edx, (%rax,%rcx,4) movl -28(%rbp), %edx movq -8(%rbp), %rax movslq -24(%rbp), %rcx movl %edx, (%rax,%rcx,4) LBB0_10: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_11 LBB0_11: ## in Loop: Header=BB0_1 Depth=1 movl -16(%rbp), %eax addl $1, %eax movl %eax, -16(%rbp) jmp LBB0_1 LBB0_12: movl $0, -16(%rbp) LBB0_13: ## =>This Inner Loop Header: Depth=1 movl -16(%rbp), %eax cmpl -12(%rbp), %eax jge LBB0_16 ## %bb.14: ## in Loop: Header=BB0_13 Depth=1 movl -16(%rbp), %ecx movl -12(%rbp), %edx subl $1, %edx leaq L_.str.1(%rip), %rdi leaq L_.str(%rip), %rax cmpl %edx, %ecx cmoveq %rax, %rdi movq -8(%rbp), %rax movslq -16(%rbp), %rcx movl (%rax,%rcx,4), %esi movb $0, %al callq _printf ## %bb.15: ## in Loop: Header=BB0_13 Depth=1 movl -16(%rbp), %eax addl $1, %eax movl %eax, -16(%rbp) jmp LBB0_13 LBB0_16: 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 $112, %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) leaq -80(%rbp), %rdi leaq l___const.main.chaos(%rip), %rsi movl $60, %edx callq _memcpy movl $15, -100(%rbp) leaq -80(%rbp), %rdi movl -100(%rbp), %esi callq _selectsort 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 $112, %rsp popq %rbp retq LBB1_2: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d" L_.str.1: ## @.str.1 .asciz "%d " .section __TEXT,__const .p2align 4 ## @__const.main.chaos l___const.main.chaos: .long 26 ## 0x1a .long 48 ## 0x30 .long 17 ## 0x11 .long 55 ## 0x37 .long 36 ## 0x24 .long 31 ## 0x1f .long 35 ## 0x23 .long 54 ## 0x36 .long 27 ## 0x1b .long 14 ## 0xe .long 13 ## 0xd .long 12 ## 0xc .long 17 ## 0x11 .long 19 ## 0x13 .long 33 ## 0x21 .subsections_via_symbols
the_stack_data/86075395.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #160 .cfi_def_cfa_offset 160 stp x29, x30, [sp, #144] ; 16-byte Folded Spill add x29, sp, #144 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] str wzr, [sp, #28] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov x9, sp add x8, sp, #35 str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf str wzr, [sp, #20] str wzr, [sp, #24] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldrsw x9, [sp, #24] add x8, sp, #35 ldrsb w8, [x8, x9] 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, #20] ldrsw x10, [sp, #24] add x9, sp, #35 ldrsb w9, [x9, x10] add w8, w8, w9 subs w8, w8, #97 add w8, w8, #1 str w8, [sp, #20] ldr w8, [sp, #24] add w8, w8, #1 str w8, [sp, #24] b LBB0_1 LBB0_3: ldr w9, [sp, #20] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf 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_5 b LBB0_4 LBB0_4: bl ___stack_chk_fail LBB0_5: 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 "ENTER STRING: " l_.str.1: ; @.str.1 .asciz "%s" l_.str.2: ; @.str.2 .asciz "%d" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $128, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -116(%rbp) leaq L_.str(%rip), %rdi movb $0, %al callq _printf leaq -112(%rbp), %rsi leaq L_.str.1(%rip), %rdi movb $0, %al callq _scanf movl $0, -124(%rbp) movl $0, -120(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movslq -120(%rbp), %rax movsbl -112(%rbp,%rax), %eax cmpl $0, %eax je LBB0_3 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl -124(%rbp), %eax movslq -120(%rbp), %rcx movsbl -112(%rbp,%rcx), %ecx addl %ecx, %eax subl $97, %eax addl $1, %eax movl %eax, -124(%rbp) movl -120(%rbp), %eax addl $1, %eax movl %eax, -120(%rbp) jmp LBB0_1 LBB0_3: movl -124(%rbp), %esi leaq L_.str.2(%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_5 ## %bb.4: xorl %eax, %eax addq $128, %rsp popq %rbp retq LBB0_5: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "ENTER STRING: " L_.str.1: ## @.str.1 .asciz "%s" L_.str.2: ## @.str.2 .asciz "%d" .subsections_via_symbols
the_stack_data/175143618.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w0, #0 stur wzr, [x29, #-4] adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF bl _setlocale mov w0, #6 mov x1, #0 bl _setlocale mov x8, sp str x0, [x8] 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 mov w1, #1 bl _catopen stur x0, [x29, #-16] ldur x8, [x29, #-16] adds x8, x8, #1 cset w8, ne tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf mov w0, #1 bl _exit LBB0_2: ldur x0, [x29, #-16] mov w2, #1 str w2, [sp, #20] ; 4-byte Folded Spill mov x1, x2 adrp x3, l_.str.5@PAGE add x3, x3, l_.str.5@PAGEOFF bl _catgets mov x8, sp str x0, [x8] adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF str x0, [sp, #24] ; 8-byte Folded Spill bl _printf ldr w1, [sp, #20] ; 4-byte Folded Reload ldur x0, [x29, #-16] mov w2, #2 adrp x3, l_.str.6@PAGE add x3, x3, l_.str.6@PAGEOFF bl _catgets mov x8, x0 ldr x0, [sp, #24] ; 8-byte Folded Reload mov x9, sp str x8, [x9] bl _printf ldr w1, [sp, #20] ; 4-byte Folded Reload ldur x0, [x29, #-16] mov w2, #3 adrp x3, l_.str.7@PAGE add x3, x3, l_.str.7@PAGEOFF bl _catgets mov x8, x0 ldr x0, [sp, #24] ; 8-byte Folded Reload mov x9, sp str x8, [x9] bl _printf ldr w1, [sp, #20] ; 4-byte Folded Reload ldur x0, [x29, #-16] mov w2, #4 adrp x3, l_.str.8@PAGE add x3, x3, l_.str.8@PAGEOFF bl _catgets mov x8, x0 ldr x0, [sp, #24] ; 8-byte Folded Reload mov x9, sp str x8, [x9] bl _printf ldr w1, [sp, #20] ; 4-byte Folded Reload ldur x0, [x29, #-16] mov w2, #5 adrp x3, l_.str.9@PAGE add x3, x3, l_.str.9@PAGEOFF bl _catgets mov x8, x0 ldr x0, [sp, #24] ; 8-byte Folded Reload mov x9, sp str x8, [x9] bl _printf ldur x0, [x29, #-16] bl _catclose 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 .space 1 l_.str.1: ; @.str.1 .asciz "LC_MESSAGES = %s\n" l_.str.2: ; @.str.2 .asciz "sample" l_.str.3: ; @.str.3 .asciz "no catalog: %m\n" l_.str.4: ; @.str.4 .asciz "%s\n" l_.str.5: ; @.str.5 .asciz "sample 1" l_.str.6: ; @.str.6 .asciz "sample 2" l_.str.7: ; @.str.7 .asciz "sample 3" l_.str.8: ; @.str.8 .asciz "sample 4" l_.str.9: ; @.str.9 .asciz "sample 5" .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) xorl %edi, %edi leaq L_.str(%rip), %rsi callq _setlocale movl $6, %edi xorl %eax, %eax movl %eax, %esi callq _setlocale movq %rax, %rsi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf leaq L_.str.2(%rip), %rdi movl $1, %esi callq _catopen movq %rax, -16(%rbp) movq $-1, %rax cmpq %rax, -16(%rbp) jne LBB0_2 ## %bb.1: leaq L_.str.3(%rip), %rdi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _printf movl $1, %edi callq _exit LBB0_2: movq -16(%rbp), %rdi movl $1, %edx leaq L_.str.5(%rip), %rcx movl %edx, %esi callq _catgets movq %rax, %rsi leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf movq -16(%rbp), %rdi movl $1, %esi movl $2, %edx leaq L_.str.6(%rip), %rcx callq _catgets movq %rax, %rsi leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf movq -16(%rbp), %rdi movl $1, %esi movl $3, %edx leaq L_.str.7(%rip), %rcx callq _catgets movq %rax, %rsi leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf movq -16(%rbp), %rdi movl $1, %esi movl $4, %edx leaq L_.str.8(%rip), %rcx callq _catgets movq %rax, %rsi leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf movq -16(%rbp), %rdi movl $1, %esi movl $5, %edx leaq L_.str.9(%rip), %rcx callq _catgets movq %rax, %rsi leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf movq -16(%rbp), %rdi callq _catclose xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .space 1 L_.str.1: ## @.str.1 .asciz "LC_MESSAGES = %s\n" L_.str.2: ## @.str.2 .asciz "sample" L_.str.3: ## @.str.3 .asciz "no catalog: %m\n" L_.str.4: ## @.str.4 .asciz "%s\n" L_.str.5: ## @.str.5 .asciz "sample 1" L_.str.6: ## @.str.6 .asciz "sample 2" L_.str.7: ## @.str.7 .asciz "sample 3" L_.str.8: ## @.str.8 .asciz "sample 4" L_.str.9: ## @.str.9 .asciz "sample 5" .subsections_via_symbols
the_stack_data/1260162.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: stp x28, x27, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w27, -24 .cfi_offset w28, -32 mov w9, #30048 adrp x16, ___chkstk_darwin@GOTPAGE ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF] blr x16 sub sp, sp, #7, lsl #12 ; =28672 sub sp, sp, #1376 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] str wzr, [sp, #36] add x0, sp, #40 str x0, [sp, #16] ; 8-byte Folded Spill mov x1, #30000 bl _bzero ldr x8, [sp, #16] ; 8-byte Folded Reload str x8, [sp, #24] ldr x9, [sp, #24] ldrb w8, [x9] add w8, w8, #1 strb w8, [x9] ldr x9, [sp, #24] ldrb w8, [x9] add w8, w8, #1 strb w8, [x9] ldr x9, [sp, #24] ldrb w8, [x9] add w8, w8, #1 strb w8, [x9] ldr x9, [sp, #24] ldrb w8, [x9] add w8, w8, #1 strb w8, [x9] ldr x9, [sp, #24] ldrb w8, [x9] add w8, w8, #1 strb w8, [x9] ldr x9, [sp, #24] ldrb w8, [x9] add w8, w8, #1 strb w8, [x9] ldr x9, [sp, #24] ldrb w8, [x9] add w8, w8, #1 strb w8, [x9] ldr x9, [sp, #24] ldrb w8, [x9] add w8, w8, #1 strb w8, [x9] b LBB0_1 LBB0_1: ; =>This Loop Header: Depth=1 ; Child Loop BB0_3 Depth 2 ; Child Loop BB0_6 Depth 2 ldr x8, [sp, #24] ldrb w8, [x8] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_9 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #24] add x8, x8, #1 str x8, [sp, #24] ldr x9, [sp, #24] ldrb w8, [x9] add w8, w8, #1 strb w8, [x9] ldr x9, [sp, #24] ldrb w8, [x9] add w8, w8, #1 strb w8, [x9] ldr x9, [sp, #24] ldrb w8, [x9] add w8, w8, #1 strb w8, [x9] ldr x9, [sp, #24] ldrb w8, [x9] add w8, w8, #1 strb w8, [x9] b LBB0_3 LBB0_3: ; Parent Loop BB0_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr x8, [sp, #24] ldrb w8, [x8] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_5 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_3 Depth=2 ldr x8, [sp, #24] add x8, x8, #1 str x8, [sp, #24] ldr x9, [sp, #24] ldrb w8, [x9] add w8, w8, #1 strb w8, [x9] ldr x9, [sp, #24] ldrb w8, [x9] add w8, w8, #1 strb w8, [x9] ldr x8, [sp, #24] add x8, x8, #1 str x8, [sp, #24] ldr x9, [sp, #24] ldrb w8, [x9] add w8, w8, #1 strb w8, [x9] ldr x9, [sp, #24] ldrb w8, [x9] add w8, w8, #1 strb w8, [x9] ldr x9, [sp, #24] ldrb w8, [x9] add w8, w8, #1 strb w8, [x9] ldr x8, [sp, #24] add x8, x8, #1 str x8, [sp, #24] ldr x9, [sp, #24] ldrb w8, [x9] add w8, w8, #1 strb w8, [x9] ldr x9, [sp, #24] ldrb w8, [x9] add w8, w8, #1 strb w8, [x9] ldr x9, [sp, #24] ldrb w8, [x9] add w8, w8, #1 strb w8, [x9] ldr x8, [sp, #24] add x8, x8, #1 str x8, [sp, #24] ldr x9, [sp, #24] ldrb w8, [x9] add w8, w8, #1 strb w8, [x9] ldr x8, [sp, #24] subs x8, x8, #1 str x8, [sp, #24] ldr x8, [sp, #24] subs x8, x8, #1 str x8, [sp, #24] ldr x8, [sp, #24] subs x8, x8, #1 str x8, [sp, #24] ldr x8, [sp, #24] subs x8, x8, #1 str x8, [sp, #24] ldr x9, [sp, #24] ldrb w10, [x9] mov w8, #-1 add w8, w8, w10, uxtb strb w8, [x9] b LBB0_3 LBB0_5: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #24] add x8, x8, #1 str x8, [sp, #24] ldr x9, [sp, #24] ldrb w8, [x9] add w8, w8, #1 strb w8, [x9] ldr x8, [sp, #24] add x8, x8, #1 str x8, [sp, #24] ldr x9, [sp, #24] ldrb w8, [x9] add w8, w8, #1 strb w8, [x9] ldr x8, [sp, #24] add x8, x8, #1 str x8, [sp, #24] ldr x9, [sp, #24] ldrb w10, [x9] mov w8, #-1 add w8, w8, w10, uxtb strb w8, [x9] ldr x8, [sp, #24] add x8, x8, #1 str x8, [sp, #24] ldr x8, [sp, #24] add x8, x8, #1 str x8, [sp, #24] ldr x9, [sp, #24] ldrb w8, [x9] add w8, w8, #1 strb w8, [x9] b LBB0_6 LBB0_6: ; Parent Loop BB0_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr x8, [sp, #24] ldrb w8, [x8] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_8 b LBB0_7 LBB0_7: ; in Loop: Header=BB0_6 Depth=2 ldr x8, [sp, #24] subs x8, x8, #1 str x8, [sp, #24] b LBB0_6 LBB0_8: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #24] subs x8, x8, #1 str x8, [sp, #24] ldr x9, [sp, #24] ldrb w10, [x9] mov w8, #-1 add w8, w8, w10, uxtb strb w8, [x9] b LBB0_1 LBB0_9: ldr x8, [sp, #24] add x8, x8, #1 str x8, [sp, #24] ldr x8, [sp, #24] add x8, x8, #1 str x8, [sp, #24] ldr x8, [sp, #24] ldrsb w0, [x8] bl _putchar ldr x8, [sp, #24] add x8, x8, #1 str x8, [sp, #24] ldr x10, [sp, #24] ldrb w9, [x10] mov w8, #-1 str w8, [sp, #8] ; 4-byte Folded Spill add w9, w8, w9, uxtb strb w9, [x10] ldr x10, [sp, #24] ldrb w11, [x10] mov x9, x8 add w9, w9, w11, uxtb strb w9, [x10] ldr x9, [sp, #24] ldrb w10, [x9] add w8, w8, w10, uxtb strb w8, [x9] ldr x8, [sp, #24] ldrsb w0, [x8] bl _putchar ldr x9, [sp, #24] ldrb w8, [x9] add w8, w8, #1 strb w8, [x9] ldr x9, [sp, #24] ldrb w8, [x9] add w8, w8, #1 strb w8, [x9] ldr x9, [sp, #24] ldrb w8, [x9] add w8, w8, #1 strb w8, [x9] ldr x9, [sp, #24] ldrb w8, [x9] add w8, w8, #1 strb w8, [x9] ldr x9, [sp, #24] ldrb w8, [x9] add w8, w8, #1 strb w8, [x9] ldr x9, [sp, #24] ldrb w8, [x9] add w8, w8, #1 strb w8, [x9] ldr x9, [sp, #24] ldrb w8, [x9] add w8, w8, #1 strb w8, [x9] ldr x8, [sp, #24] ldrsb w0, [x8] bl _putchar ldr x8, [sp, #24] ldrsb w0, [x8] bl _putchar ldr x9, [sp, #24] ldrb w8, [x9] add w8, w8, #1 strb w8, [x9] ldr x9, [sp, #24] ldrb w8, [x9] add w8, w8, #1 strb w8, [x9] ldr x9, [sp, #24] ldrb w8, [x9] add w8, w8, #1 strb w8, [x9] ldr x8, [sp, #24] ldrsb w0, [x8] bl _putchar ldr x8, [sp, #24] add x8, x8, #1 str x8, [sp, #24] ldr x8, [sp, #24] add x8, x8, #1 str x8, [sp, #24] ldr x8, [sp, #24] ldrsb w0, [x8] bl _putchar ldr w8, [sp, #8] ; 4-byte Folded Reload ldr x9, [sp, #24] subs x9, x9, #1 str x9, [sp, #24] ldr x9, [sp, #24] ldrb w10, [x9] add w8, w8, w10, uxtb strb w8, [x9] ldr x8, [sp, #24] ldrsb w0, [x8] bl _putchar ldr x8, [sp, #24] subs x8, x8, #1 str x8, [sp, #24] ldr x8, [sp, #24] ldrsb w0, [x8] bl _putchar ldr x9, [sp, #24] ldrb w8, [x9] add w8, w8, #1 strb w8, [x9] ldr x9, [sp, #24] ldrb w8, [x9] add w8, w8, #1 strb w8, [x9] ldr x9, [sp, #24] ldrb w8, [x9] add w8, w8, #1 strb w8, [x9] ldr x8, [sp, #24] ldrsb w0, [x8] bl _putchar ldr w8, [sp, #8] ; 4-byte Folded Reload ldr x10, [sp, #24] ldrb w11, [x10] mov x9, x8 add w9, w9, w11, uxtb strb w9, [x10] ldr x10, [sp, #24] ldrb w11, [x10] mov x9, x8 add w9, w9, w11, uxtb strb w9, [x10] ldr x10, [sp, #24] ldrb w11, [x10] mov x9, x8 add w9, w9, w11, uxtb strb w9, [x10] ldr x10, [sp, #24] ldrb w11, [x10] mov x9, x8 add w9, w9, w11, uxtb strb w9, [x10] ldr x10, [sp, #24] ldrb w11, [x10] mov x9, x8 add w9, w9, w11, uxtb strb w9, [x10] ldr x9, [sp, #24] ldrb w10, [x9] add w8, w8, w10, uxtb strb w8, [x9] ldr x8, [sp, #24] ldrsb w0, [x8] bl _putchar ldr w8, [sp, #8] ; 4-byte Folded Reload ldr x10, [sp, #24] ldrb w11, [x10] mov x9, x8 add w9, w9, w11, uxtb strb w9, [x10] ldr x10, [sp, #24] ldrb w11, [x10] mov x9, x8 add w9, w9, w11, uxtb strb w9, [x10] ldr x10, [sp, #24] ldrb w11, [x10] mov x9, x8 add w9, w9, w11, uxtb strb w9, [x10] ldr x10, [sp, #24] ldrb w11, [x10] mov x9, x8 add w9, w9, w11, uxtb strb w9, [x10] ldr x10, [sp, #24] ldrb w11, [x10] mov x9, x8 add w9, w9, w11, uxtb strb w9, [x10] ldr x10, [sp, #24] ldrb w11, [x10] mov x9, x8 add w9, w9, w11, uxtb strb w9, [x10] ldr x10, [sp, #24] ldrb w11, [x10] mov x9, x8 add w9, w9, w11, uxtb strb w9, [x10] ldr x9, [sp, #24] ldrb w10, [x9] add w8, w8, w10, uxtb strb w8, [x9] ldr x8, [sp, #24] ldrsb w0, [x8] bl _putchar ldr x8, [sp, #24] add x8, x8, #1 str x8, [sp, #24] ldr x8, [sp, #24] add x8, x8, #1 str x8, [sp, #24] ldr x9, [sp, #24] ldrb w8, [x9] add w8, w8, #1 strb w8, [x9] ldr x8, [sp, #24] ldrsb w0, [x8] bl _putchar ldr x8, [sp, #24] add x8, x8, #1 str x8, [sp, #24] ldr x9, [sp, #24] ldrb w8, [x9] add w8, w8, #1 strb w8, [x9] ldr x9, [sp, #24] ldrb w8, [x9] add w8, w8, #1 strb w8, [x9] ldr x8, [sp, #24] ldrsb w0, [x8] bl _putchar ldr w8, [sp, #36] str w8, [sp, #12] ; 4-byte Folded Spill ldur x9, [x29, #-24] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_11 b LBB0_10 LBB0_10: bl ___stack_chk_fail LBB0_11: ldr w0, [sp, #12] ; 4-byte Folded Reload add sp, sp, #7, lsl #12 ; =28672 add sp, sp, #1376 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x28, x27, [sp], #32 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .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 $30048, %eax ## imm = 0x7560 callq ____chkstk_darwin subq %rax, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -30020(%rbp) leaq -30016(%rbp), %rdi xorl %esi, %esi movl $30000, %edx ## imm = 0x7530 callq _memset leaq -30016(%rbp), %rax movq %rax, -30032(%rbp) movq -30032(%rbp), %rax movb (%rax), %cl addb $1, %cl movb %cl, (%rax) movq -30032(%rbp), %rax movb (%rax), %cl addb $1, %cl movb %cl, (%rax) movq -30032(%rbp), %rax movb (%rax), %cl addb $1, %cl movb %cl, (%rax) movq -30032(%rbp), %rax movb (%rax), %cl addb $1, %cl movb %cl, (%rax) movq -30032(%rbp), %rax movb (%rax), %cl addb $1, %cl movb %cl, (%rax) movq -30032(%rbp), %rax movb (%rax), %cl addb $1, %cl movb %cl, (%rax) movq -30032(%rbp), %rax movb (%rax), %cl addb $1, %cl movb %cl, (%rax) movq -30032(%rbp), %rax movb (%rax), %cl addb $1, %cl movb %cl, (%rax) LBB0_1: ## =>This Loop Header: Depth=1 ## Child Loop BB0_3 Depth 2 ## Child Loop BB0_6 Depth 2 movq -30032(%rbp), %rax cmpb $0, (%rax) je LBB0_9 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movq -30032(%rbp), %rax addq $1, %rax movq %rax, -30032(%rbp) movq -30032(%rbp), %rax movb (%rax), %cl addb $1, %cl movb %cl, (%rax) movq -30032(%rbp), %rax movb (%rax), %cl addb $1, %cl movb %cl, (%rax) movq -30032(%rbp), %rax movb (%rax), %cl addb $1, %cl movb %cl, (%rax) movq -30032(%rbp), %rax movb (%rax), %cl addb $1, %cl movb %cl, (%rax) LBB0_3: ## Parent Loop BB0_1 Depth=1 ## => This Inner Loop Header: Depth=2 movq -30032(%rbp), %rax cmpb $0, (%rax) je LBB0_5 ## %bb.4: ## in Loop: Header=BB0_3 Depth=2 movq -30032(%rbp), %rax addq $1, %rax movq %rax, -30032(%rbp) movq -30032(%rbp), %rax movb (%rax), %cl addb $1, %cl movb %cl, (%rax) movq -30032(%rbp), %rax movb (%rax), %cl addb $1, %cl movb %cl, (%rax) movq -30032(%rbp), %rax addq $1, %rax movq %rax, -30032(%rbp) movq -30032(%rbp), %rax movb (%rax), %cl addb $1, %cl movb %cl, (%rax) movq -30032(%rbp), %rax movb (%rax), %cl addb $1, %cl movb %cl, (%rax) movq -30032(%rbp), %rax movb (%rax), %cl addb $1, %cl movb %cl, (%rax) movq -30032(%rbp), %rax addq $1, %rax movq %rax, -30032(%rbp) movq -30032(%rbp), %rax movb (%rax), %cl addb $1, %cl movb %cl, (%rax) movq -30032(%rbp), %rax movb (%rax), %cl addb $1, %cl movb %cl, (%rax) movq -30032(%rbp), %rax movb (%rax), %cl addb $1, %cl movb %cl, (%rax) movq -30032(%rbp), %rax addq $1, %rax movq %rax, -30032(%rbp) movq -30032(%rbp), %rax movb (%rax), %cl addb $1, %cl movb %cl, (%rax) movq -30032(%rbp), %rax addq $-1, %rax movq %rax, -30032(%rbp) movq -30032(%rbp), %rax addq $-1, %rax movq %rax, -30032(%rbp) movq -30032(%rbp), %rax addq $-1, %rax movq %rax, -30032(%rbp) movq -30032(%rbp), %rax addq $-1, %rax movq %rax, -30032(%rbp) movq -30032(%rbp), %rax movb (%rax), %cl addb $-1, %cl movb %cl, (%rax) jmp LBB0_3 LBB0_5: ## in Loop: Header=BB0_1 Depth=1 movq -30032(%rbp), %rax addq $1, %rax movq %rax, -30032(%rbp) movq -30032(%rbp), %rax movb (%rax), %cl addb $1, %cl movb %cl, (%rax) movq -30032(%rbp), %rax addq $1, %rax movq %rax, -30032(%rbp) movq -30032(%rbp), %rax movb (%rax), %cl addb $1, %cl movb %cl, (%rax) movq -30032(%rbp), %rax addq $1, %rax movq %rax, -30032(%rbp) movq -30032(%rbp), %rax movb (%rax), %cl addb $-1, %cl movb %cl, (%rax) movq -30032(%rbp), %rax addq $1, %rax movq %rax, -30032(%rbp) movq -30032(%rbp), %rax addq $1, %rax movq %rax, -30032(%rbp) movq -30032(%rbp), %rax movb (%rax), %cl addb $1, %cl movb %cl, (%rax) LBB0_6: ## Parent Loop BB0_1 Depth=1 ## => This Inner Loop Header: Depth=2 movq -30032(%rbp), %rax cmpb $0, (%rax) je LBB0_8 ## %bb.7: ## in Loop: Header=BB0_6 Depth=2 movq -30032(%rbp), %rax addq $-1, %rax movq %rax, -30032(%rbp) jmp LBB0_6 LBB0_8: ## in Loop: Header=BB0_1 Depth=1 movq -30032(%rbp), %rax addq $-1, %rax movq %rax, -30032(%rbp) movq -30032(%rbp), %rax movb (%rax), %cl addb $-1, %cl movb %cl, (%rax) jmp LBB0_1 LBB0_9: movq -30032(%rbp), %rax addq $1, %rax movq %rax, -30032(%rbp) movq -30032(%rbp), %rax addq $1, %rax movq %rax, -30032(%rbp) movq -30032(%rbp), %rax movsbl (%rax), %edi callq _putchar movq -30032(%rbp), %rax addq $1, %rax movq %rax, -30032(%rbp) movq -30032(%rbp), %rax movb (%rax), %cl addb $-1, %cl movb %cl, (%rax) movq -30032(%rbp), %rax movb (%rax), %cl addb $-1, %cl movb %cl, (%rax) movq -30032(%rbp), %rax movb (%rax), %cl addb $-1, %cl movb %cl, (%rax) movq -30032(%rbp), %rax movsbl (%rax), %edi callq _putchar movq -30032(%rbp), %rax movb (%rax), %cl addb $1, %cl movb %cl, (%rax) movq -30032(%rbp), %rax movb (%rax), %cl addb $1, %cl movb %cl, (%rax) movq -30032(%rbp), %rax movb (%rax), %cl addb $1, %cl movb %cl, (%rax) movq -30032(%rbp), %rax movb (%rax), %cl addb $1, %cl movb %cl, (%rax) movq -30032(%rbp), %rax movb (%rax), %cl addb $1, %cl movb %cl, (%rax) movq -30032(%rbp), %rax movb (%rax), %cl addb $1, %cl movb %cl, (%rax) movq -30032(%rbp), %rax movb (%rax), %cl addb $1, %cl movb %cl, (%rax) movq -30032(%rbp), %rax movsbl (%rax), %edi callq _putchar movq -30032(%rbp), %rax movsbl (%rax), %edi callq _putchar movq -30032(%rbp), %rax movb (%rax), %cl addb $1, %cl movb %cl, (%rax) movq -30032(%rbp), %rax movb (%rax), %cl addb $1, %cl movb %cl, (%rax) movq -30032(%rbp), %rax movb (%rax), %cl addb $1, %cl movb %cl, (%rax) movq -30032(%rbp), %rax movsbl (%rax), %edi callq _putchar movq -30032(%rbp), %rax addq $1, %rax movq %rax, -30032(%rbp) movq -30032(%rbp), %rax addq $1, %rax movq %rax, -30032(%rbp) movq -30032(%rbp), %rax movsbl (%rax), %edi callq _putchar movq -30032(%rbp), %rax addq $-1, %rax movq %rax, -30032(%rbp) movq -30032(%rbp), %rax movb (%rax), %cl addb $-1, %cl movb %cl, (%rax) movq -30032(%rbp), %rax movsbl (%rax), %edi callq _putchar movq -30032(%rbp), %rax addq $-1, %rax movq %rax, -30032(%rbp) movq -30032(%rbp), %rax movsbl (%rax), %edi callq _putchar movq -30032(%rbp), %rax movb (%rax), %cl addb $1, %cl movb %cl, (%rax) movq -30032(%rbp), %rax movb (%rax), %cl addb $1, %cl movb %cl, (%rax) movq -30032(%rbp), %rax movb (%rax), %cl addb $1, %cl movb %cl, (%rax) movq -30032(%rbp), %rax movsbl (%rax), %edi callq _putchar movq -30032(%rbp), %rax movb (%rax), %cl addb $-1, %cl movb %cl, (%rax) movq -30032(%rbp), %rax movb (%rax), %cl addb $-1, %cl movb %cl, (%rax) movq -30032(%rbp), %rax movb (%rax), %cl addb $-1, %cl movb %cl, (%rax) movq -30032(%rbp), %rax movb (%rax), %cl addb $-1, %cl movb %cl, (%rax) movq -30032(%rbp), %rax movb (%rax), %cl addb $-1, %cl movb %cl, (%rax) movq -30032(%rbp), %rax movb (%rax), %cl addb $-1, %cl movb %cl, (%rax) movq -30032(%rbp), %rax movsbl (%rax), %edi callq _putchar movq -30032(%rbp), %rax movb (%rax), %cl addb $-1, %cl movb %cl, (%rax) movq -30032(%rbp), %rax movb (%rax), %cl addb $-1, %cl movb %cl, (%rax) movq -30032(%rbp), %rax movb (%rax), %cl addb $-1, %cl movb %cl, (%rax) movq -30032(%rbp), %rax movb (%rax), %cl addb $-1, %cl movb %cl, (%rax) movq -30032(%rbp), %rax movb (%rax), %cl addb $-1, %cl movb %cl, (%rax) movq -30032(%rbp), %rax movb (%rax), %cl addb $-1, %cl movb %cl, (%rax) movq -30032(%rbp), %rax movb (%rax), %cl addb $-1, %cl movb %cl, (%rax) movq -30032(%rbp), %rax movb (%rax), %cl addb $-1, %cl movb %cl, (%rax) movq -30032(%rbp), %rax movsbl (%rax), %edi callq _putchar movq -30032(%rbp), %rax addq $1, %rax movq %rax, -30032(%rbp) movq -30032(%rbp), %rax addq $1, %rax movq %rax, -30032(%rbp) movq -30032(%rbp), %rax movb (%rax), %cl addb $1, %cl movb %cl, (%rax) movq -30032(%rbp), %rax movsbl (%rax), %edi callq _putchar movq -30032(%rbp), %rax addq $1, %rax movq %rax, -30032(%rbp) movq -30032(%rbp), %rax movb (%rax), %cl addb $1, %cl movb %cl, (%rax) movq -30032(%rbp), %rax movb (%rax), %cl addb $1, %cl movb %cl, (%rax) movq -30032(%rbp), %rax movsbl (%rax), %edi callq _putchar movl -30020(%rbp), %eax movl %eax, -30036(%rbp) ## 4-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_11 ## %bb.10: movl -30036(%rbp), %eax ## 4-byte Reload addq $30048, %rsp ## imm = 0x7560 popq %rbp retq LBB0_11: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/248580364.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] mov w8, #1 stur w8, [x29, #-8] b LBB0_1 LBB0_1: ; =>This Loop Header: Depth=1 ; Child Loop BB0_3 Depth 2 ldur w8, [x29, #-8] mov w9, #10000 subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_14 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-8] str w8, [sp, #16] mov w8, #1 stur w8, [x29, #-12] b LBB0_3 LBB0_3: ; Parent Loop BB0_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldur w8, [x29, #-12] subs w8, w8, #10 cset w8, ge tbnz w8, #0, LBB0_10 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_3 Depth=2 ldr w8, [sp, #16] 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_5 LBB0_5: ; in Loop: Header=BB0_3 Depth=2 ldr w8, [sp, #16] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB0_7 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_3 Depth=2 ldr w8, [sp, #16] ldr w9, [sp, #16] mov w10, #2 sdiv w9, w9, w10 subs w8, w8, w9 subs w8, w8, #1 str w8, [sp, #16] b LBB0_8 LBB0_7: ; in Loop: Header=BB0_1 Depth=1 str wzr, [sp, #16] b LBB0_10 LBB0_8: ; in Loop: Header=BB0_3 Depth=2 b LBB0_9 LBB0_9: ; in Loop: Header=BB0_3 Depth=2 ldur w8, [x29, #-12] add w8, w8, #1 stur w8, [x29, #-12] b LBB0_3 LBB0_10: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #16] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB0_12 b LBB0_11 LBB0_11: ; in Loop: Header=BB0_1 Depth=1 ldur w9, [x29, #-8] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf b LBB0_12 LBB0_12: ; in Loop: Header=BB0_1 Depth=1 b LBB0_13 LBB0_13: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-8] add w8, w8, #1 stur w8, [x29, #-8] b LBB0_1 LBB0_14: 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 "%d\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl $0, -4(%rbp) movl $1, -8(%rbp) LBB0_1: ## =>This Loop Header: Depth=1 ## Child Loop BB0_3 Depth 2 cmpl $10000, -8(%rbp) ## imm = 0x2710 jge LBB0_14 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl -8(%rbp), %eax movl %eax, -16(%rbp) movl $1, -12(%rbp) LBB0_3: ## Parent Loop BB0_1 Depth=1 ## => This Inner Loop Header: Depth=2 cmpl $10, -12(%rbp) jge LBB0_10 ## %bb.4: ## in Loop: Header=BB0_3 Depth=2 movl -16(%rbp), %eax movl $2, %ecx cltd idivl %ecx cmpl $0, %edx jne LBB0_7 ## %bb.5: ## in Loop: Header=BB0_3 Depth=2 cmpl $0, -16(%rbp) jle LBB0_7 ## %bb.6: ## in Loop: Header=BB0_3 Depth=2 movl -16(%rbp), %eax movl %eax, -20(%rbp) ## 4-byte Spill movl -16(%rbp), %eax movl $2, %ecx cltd idivl %ecx movl %eax, %ecx movl -20(%rbp), %eax ## 4-byte Reload subl %ecx, %eax subl $1, %eax movl %eax, -16(%rbp) jmp LBB0_8 LBB0_7: ## in Loop: Header=BB0_1 Depth=1 movl $0, -16(%rbp) jmp LBB0_10 LBB0_8: ## in Loop: Header=BB0_3 Depth=2 jmp LBB0_9 LBB0_9: ## in Loop: Header=BB0_3 Depth=2 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB0_3 LBB0_10: ## in Loop: Header=BB0_1 Depth=1 cmpl $1, -16(%rbp) jne LBB0_12 ## %bb.11: ## in Loop: Header=BB0_1 Depth=1 movl -8(%rbp), %esi leaq L_.str(%rip), %rdi movb $0, %al callq _printf LBB0_12: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_13 LBB0_13: ## in Loop: Header=BB0_1 Depth=1 movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) jmp LBB0_1 LBB0_14: movl -4(%rbp), %eax addq $32, %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/32688.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #0 str w8, [sp, #24] ; 4-byte Folded Spill stur wzr, [x29, #-4] movi d0, #0000000000000000 stur s0, [x29, #-16] stur s0, [x29, #-20] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov x9, sp sub x8, x29, #8 str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF str x0, [sp, #16] ; 8-byte Folded Spill bl _scanf adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf ldr x0, [sp, #16] ; 8-byte Folded Reload mov x9, sp sub x8, x29, #12 str x8, [x9] bl _scanf ldur w8, [x29, #-8] ldur w9, [x29, #-12] add w8, w8, w9 scvtf s0, w8 stur s0, [x29, #-16] ldur s0, [x29, #-16] fcvt d0, s0 fmov d1, #2.00000000 fdiv d0, d0, d1 fcvt s0, d0 stur s0, [x29, #-20] ldur s0, [x29, #-16] fcvt d0, s0 mov x8, sp str d0, [x8] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf ldur s0, [x29, #-20] fcvt d0, s0 mov x8, sp str d0, [x8] adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf ldr w0, [sp, #24] ; 4-byte Folded Reload ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Enter mark 01 : " l_.str.1: ; @.str.1 .asciz "%d" l_.str.2: ; @.str.2 .asciz "Enter mark 02 : " l_.str.3: ; @.str.3 .asciz "total is %.2f\n" l_.str.4: ; @.str.4 .asciz "Average is %.2f\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __TEXT,__literal8,8byte_literals .p2align 3 ## -- Begin function main LCPI0_0: .quad 0x4000000000000000 ## double 2 .section __TEXT,__text,regular,pure_instructions .globl _main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl $0, -4(%rbp) xorps %xmm0, %xmm0 movss %xmm0, -16(%rbp) xorps %xmm0, %xmm0 movss %xmm0, -20(%rbp) leaq L_.str(%rip), %rdi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi leaq -8(%rbp), %rsi movb $0, %al callq _scanf leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi leaq -12(%rbp), %rsi movb $0, %al callq _scanf movl -8(%rbp), %eax addl -12(%rbp), %eax cvtsi2ss %eax, %xmm0 movss %xmm0, -16(%rbp) movss -16(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movsd LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero divsd %xmm1, %xmm0 cvtsd2ss %xmm0, %xmm0 movss %xmm0, -20(%rbp) movss -16(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 leaq L_.str.3(%rip), %rdi movb $1, %al callq _printf movss -20(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 leaq L_.str.4(%rip), %rdi movb $1, %al callq _printf xorl %eax, %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Enter mark 01 : " L_.str.1: ## @.str.1 .asciz "%d" L_.str.2: ## @.str.2 .asciz "Enter mark 02 : " L_.str.3: ## @.str.3 .asciz "total is %.2f\n" L_.str.4: ## @.str.4 .asciz "Average is %.2f\n" .subsections_via_symbols
the_stack_data/125748.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 _menu ldr w0, [sp, #8] ; 4-byte Folded Reload ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _menu ; -- Begin function menu .p2align 2 _menu: ; @menu .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, #1 stur w8, [x29, #-8] b LBB1_1 LBB1_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-8] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB1_10 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf mov x9, sp sub x8, x29, #4 str x8, [x9] adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _scanf ldur w8, [x29, #-4] subs w8, w8, #1 ; kill: def $x8 killed $w8 str x8, [sp, #16] ; 8-byte Folded Spill subs x8, x8, #3 cset w8, hi tbnz w8, #0, LBB1_8 ; %bb.3: ; in Loop: Header=BB1_1 Depth=1 ldr x11, [sp, #16] ; 8-byte Folded Reload adrp x10, lJTI1_0@PAGE add x10, x10, lJTI1_0@PAGEOFF Ltmp0: adr x8, Ltmp0 ldrsw x9, [x10, x11, lsl #2] add x8, x8, x9 br x8 LBB1_4: ; in Loop: Header=BB1_1 Depth=1 bl _calculator b LBB1_9 LBB1_5: ; in Loop: Header=BB1_1 Depth=1 bl _weightedCalculate b LBB1_9 LBB1_6: ; in Loop: Header=BB1_1 Depth=1 bl _draw_diamond b LBB1_9 LBB1_7: ; in Loop: Header=BB1_1 Depth=1 stur wzr, [x29, #-8] b LBB1_9 LBB1_8: ; in Loop: Header=BB1_1 Depth=1 adrp x0, l_.str.7@PAGE add x0, x0, l_.str.7@PAGEOFF bl _printf b LBB1_9 LBB1_9: ; in Loop: Header=BB1_1 Depth=1 b LBB1_1 LBB1_10: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc .p2align 2 lJTI1_0: .long LBB1_4-Ltmp0 .long LBB1_5-Ltmp0 .long LBB1_6-Ltmp0 .long LBB1_7-Ltmp0 ; -- End function .globl _calculator ; -- Begin function calculator .p2align 2 _calculator: ; @calculator .cfi_startproc ; %bb.0: sub sp, sp, #400 .cfi_def_cfa_offset 400 stp x28, x27, [sp, #368] ; 16-byte Folded Spill stp x29, x30, [sp, #384] ; 16-byte Folded Spill add x29, sp, #384 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w27, -24 .cfi_offset w28, -32 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] str wzr, [sp, #52] mov w8, #1 str w8, [sp, #48] adrp x8, l___const.calculator.op@PAGE add x8, x8, l___const.calculator.op@PAGEOFF ldr q0, [x8] str q0, [sp, #80] ldrh w8, [x8, #16] strh w8, [sp, #96] adrp x0, l_.str.8@PAGE add x0, x0, l_.str.8@PAGEOFF bl _printf adrp x0, l_.str.9@PAGE add x0, x0, l_.str.9@PAGEOFF bl _printf adrp x0, l_.str.10@PAGE add x0, x0, l_.str.10@PAGEOFF bl _printf adrp x0, l_.str.11@PAGE add x0, x0, l_.str.11@PAGEOFF bl _printf adrp x0, l_.str.12@PAGE add x0, x0, l_.str.12@PAGEOFF bl _printf adrp x0, l_.str.13@PAGE add x0, x0, l_.str.13@PAGEOFF bl _printf 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 adrp x0, l_.str.16@PAGE add x0, x0, l_.str.16@PAGEOFF bl _printf b LBB2_1 LBB2_1: ; =>This Loop Header: Depth=1 ; Child Loop BB2_5 Depth 2 ldr w8, [sp, #48] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB2_41 b LBB2_2 LBB2_2: ; in Loop: Header=BB2_1 Depth=1 mov x9, sp add x8, sp, #105 str x8, [sp, #32] ; 8-byte Folded Spill str x8, [x9] adrp x0, l_.str.17@PAGE add x0, x0, l_.str.17@PAGEOFF bl _scanf ldr x0, [sp, #32] ; 8-byte Folded Reload mov x9, sp add x8, sp, #78 str x8, [sp, #40] ; 8-byte Folded Spill str x8, [x9] add x8, sp, #72 str x8, [x9, #8] add x8, sp, #68 str x8, [x9, #16] adrp x1, l_.str.18@PAGE add x1, x1, l_.str.18@PAGEOFF bl _sscanf mov x8, x0 ldr x0, [sp, #40] ; 8-byte Folded Reload str w8, [sp, #56] adrp x1, l_.str.19@PAGE add x1, x1, l_.str.19@PAGEOFF bl _my_stringcmp subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB2_4 b LBB2_3 LBB2_3: ; in Loop: Header=BB2_1 Depth=1 str wzr, [sp, #48] b LBB2_4 LBB2_4: ; in Loop: Header=BB2_1 Depth=1 str wzr, [sp, #60] b LBB2_5 LBB2_5: ; Parent Loop BB2_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #60] subs w8, w8, #6 cset w8, ge tbnz w8, #0, LBB2_10 b LBB2_6 LBB2_6: ; in Loop: Header=BB2_5 Depth=2 ldrsw x8, [sp, #60] mov x9, #3 mul x9, x8, x9 add x8, sp, #80 add x1, x8, x9 add x0, sp, #78 bl _my_stringcmp subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB2_8 b LBB2_7 LBB2_7: ; in Loop: Header=BB2_5 Depth=2 ldr w8, [sp, #60] str w8, [sp, #64] b LBB2_8 LBB2_8: ; in Loop: Header=BB2_5 Depth=2 b LBB2_9 LBB2_9: ; in Loop: Header=BB2_5 Depth=2 ldr w8, [sp, #60] add w8, w8, #1 str w8, [sp, #60] b LBB2_5 LBB2_10: ; in Loop: Header=BB2_1 Depth=1 ldr w8, [sp, #64] 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_36 ; %bb.11: ; 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 Ltmp1: adr x8, Ltmp1 ldrsw x9, [x10, x11, lsl #2] add x8, x8, x9 br x8 LBB2_12: ; in Loop: Header=BB2_1 Depth=1 ldr w8, [sp, #56] subs w8, w8, #2 cset w8, ne tbnz w8, #0, LBB2_14 b LBB2_13 LBB2_13: ; in Loop: Header=BB2_1 Depth=1 ldr w1, [sp, #52] ldr w2, [sp, #72] adrp x0, _add@PAGE add x0, x0, _add@PAGEOFF bl _doit str w0, [sp, #52] b LBB2_15 LBB2_14: ; in Loop: Header=BB2_1 Depth=1 ldr w1, [sp, #72] ldr w2, [sp, #68] adrp x0, _add@PAGE add x0, x0, _add@PAGEOFF bl _doit str w0, [sp, #52] b LBB2_15 LBB2_15: ; in Loop: Header=BB2_1 Depth=1 b LBB2_37 LBB2_16: ; in Loop: Header=BB2_1 Depth=1 ldr w8, [sp, #56] subs w8, w8, #2 cset w8, ne tbnz w8, #0, LBB2_18 b LBB2_17 LBB2_17: ; in Loop: Header=BB2_1 Depth=1 ldr w1, [sp, #52] ldr w2, [sp, #72] adrp x0, _sub@PAGE add x0, x0, _sub@PAGEOFF bl _doit str w0, [sp, #52] b LBB2_19 LBB2_18: ; in Loop: Header=BB2_1 Depth=1 ldr w1, [sp, #72] ldr w2, [sp, #68] adrp x0, _sub@PAGE add x0, x0, _sub@PAGEOFF bl _doit str w0, [sp, #52] b LBB2_19 LBB2_19: ; in Loop: Header=BB2_1 Depth=1 b LBB2_37 LBB2_20: ; in Loop: Header=BB2_1 Depth=1 ldr w8, [sp, #56] subs w8, w8, #2 cset w8, ne tbnz w8, #0, LBB2_22 b LBB2_21 LBB2_21: ; in Loop: Header=BB2_1 Depth=1 ldr w1, [sp, #72] ldr w2, [sp, #52] adrp x0, _multiplication@PAGE add x0, x0, _multiplication@PAGEOFF bl _doit str w0, [sp, #52] b LBB2_23 LBB2_22: ; in Loop: Header=BB2_1 Depth=1 ldr w1, [sp, #72] ldr w2, [sp, #68] adrp x0, _multiplication@PAGE add x0, x0, _multiplication@PAGEOFF bl _doit str w0, [sp, #52] b LBB2_23 LBB2_23: ; in Loop: Header=BB2_1 Depth=1 b LBB2_37 LBB2_24: ; in Loop: Header=BB2_1 Depth=1 ldr w8, [sp, #56] subs w8, w8, #2 cset w8, ne tbnz w8, #0, LBB2_26 b LBB2_25 LBB2_25: ; in Loop: Header=BB2_1 Depth=1 ldr w1, [sp, #52] ldr w2, [sp, #72] adrp x0, _divison@PAGE add x0, x0, _divison@PAGEOFF bl _doit str w0, [sp, #52] b LBB2_27 LBB2_26: ; in Loop: Header=BB2_1 Depth=1 ldr w1, [sp, #72] ldr w2, [sp, #68] adrp x0, _divison@PAGE add x0, x0, _divison@PAGEOFF bl _doit str w0, [sp, #52] b LBB2_27 LBB2_27: ; in Loop: Header=BB2_1 Depth=1 b LBB2_37 LBB2_28: ; in Loop: Header=BB2_1 Depth=1 ldr w8, [sp, #56] subs w8, w8, #2 cset w8, ne tbnz w8, #0, LBB2_30 b LBB2_29 LBB2_29: ; in Loop: Header=BB2_1 Depth=1 ldr w1, [sp, #52] ldr w2, [sp, #72] adrp x0, _power@PAGE add x0, x0, _power@PAGEOFF bl _doit str w0, [sp, #52] b LBB2_31 LBB2_30: ; in Loop: Header=BB2_1 Depth=1 ldr w1, [sp, #72] ldr w2, [sp, #68] adrp x0, _power@PAGE add x0, x0, _power@PAGEOFF bl _doit str w0, [sp, #52] b LBB2_31 LBB2_31: ; in Loop: Header=BB2_1 Depth=1 b LBB2_37 LBB2_32: ; in Loop: Header=BB2_1 Depth=1 ldr w8, [sp, #56] subs w8, w8, #2 cset w8, ne tbnz w8, #0, LBB2_34 b LBB2_33 LBB2_33: ; in Loop: Header=BB2_1 Depth=1 ldr w1, [sp, #52] ldr w2, [sp, #72] adrp x0, _modulo@PAGE add x0, x0, _modulo@PAGEOFF bl _doit str w0, [sp, #52] b LBB2_35 LBB2_34: ; in Loop: Header=BB2_1 Depth=1 ldr w1, [sp, #72] ldr w2, [sp, #68] adrp x0, _modulo@PAGE add x0, x0, _modulo@PAGEOFF bl _doit str w0, [sp, #52] b LBB2_35 LBB2_35: ; in Loop: Header=BB2_1 Depth=1 b LBB2_37 LBB2_36: ; in Loop: Header=BB2_1 Depth=1 adrp x0, l_.str.20@PAGE add x0, x0, l_.str.20@PAGEOFF bl _printf b LBB2_37 LBB2_37: ; in Loop: Header=BB2_1 Depth=1 ldr w8, [sp, #52] subs w8, w8, #46 cset w8, eq tbnz w8, #0, LBB2_39 b LBB2_38 LBB2_38: ; in Loop: Header=BB2_1 Depth=1 ldr w9, [sp, #52] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.21@PAGE add x0, x0, l_.str.21@PAGEOFF bl _printf b LBB2_40 LBB2_39: ; in Loop: Header=BB2_1 Depth=1 str wzr, [sp, #52] b LBB2_40 LBB2_40: ; in Loop: Header=BB2_1 Depth=1 b LBB2_1 LBB2_41: ldur x9, [x29, #-24] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB2_43 b LBB2_42 LBB2_42: bl ___stack_chk_fail LBB2_43: ldp x29, x30, [sp, #384] ; 16-byte Folded Reload ldp x28, x27, [sp, #368] ; 16-byte Folded Reload add sp, sp, #400 ret .cfi_endproc .p2align 2 lJTI2_0: .long LBB2_12-Ltmp1 .long LBB2_16-Ltmp1 .long LBB2_20-Ltmp1 .long LBB2_24-Ltmp1 .long LBB2_28-Ltmp1 .long LBB2_32-Ltmp1 ; -- End function .globl _my_stringcmp ; -- Begin function my_stringcmp .p2align 2 _my_stringcmp: ; @my_stringcmp .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, #24] str x1, [sp, #16] b LBB3_1 LBB3_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #24] ldrsb w8, [x8] subs w8, w8, #0 cset w8, eq mov w9, #0 str w9, [sp, #12] ; 4-byte Folded Spill tbnz w8, #0, LBB3_4 b LBB3_2 LBB3_2: ; in Loop: Header=BB3_1 Depth=1 ldr x8, [sp, #16] ldrsb w8, [x8] subs w8, w8, #0 cset w8, eq mov w9, #0 str w9, [sp, #12] ; 4-byte Folded Spill tbnz w8, #0, LBB3_4 b LBB3_3 LBB3_3: ; in Loop: Header=BB3_1 Depth=1 ldr x8, [sp, #24] ldrsb w8, [x8] ldr x9, [sp, #16] ldrsb w9, [x9] subs w8, w8, w9 cset w8, eq str w8, [sp, #12] ; 4-byte Folded Spill b LBB3_4 LBB3_4: ; in Loop: Header=BB3_1 Depth=1 ldr w8, [sp, #12] ; 4-byte Folded Reload tbz w8, #0, LBB3_6 b LBB3_5 LBB3_5: ; in Loop: Header=BB3_1 Depth=1 ldr x8, [sp, #24] add x8, x8, #1 str x8, [sp, #24] ldr x8, [sp, #16] add x8, x8, #1 str x8, [sp, #16] b LBB3_1 LBB3_6: ldr x8, [sp, #24] ldrsb w8, [x8] ldr x9, [sp, #16] ldrsb w9, [x9] subs w0, w8, w9 add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _doit ; -- Begin function doit .p2align 2 _doit: ; @doit .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] stur w1, [x29, #-12] str w2, [sp, #16] ldur x8, [x29, #-8] ldur w0, [x29, #-12] ldr w1, [sp, #16] blr x8 str w0, [sp, #12] ldr w0, [sp, #12] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _add ; -- Begin function add .p2align 2 _add: ; @add .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 _sub ; -- Begin function sub .p2align 2 _sub: ; @sub .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] subs w0, w8, w9 add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _multiplication ; -- Begin function multiplication .p2align 2 _multiplication: ; @multiplication .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #12] str w1, [sp, #8] ldr w8, [sp, #12] ldr w9, [sp, #8] mul w0, w8, w9 add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _divison ; -- Begin function divison .p2align 2 _divison: ; @divison .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] str w1, [sp, #4] ldr w8, [sp, #4] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB8_2 b LBB8_1 LBB8_1: ldr w8, [sp, #8] ldr w9, [sp, #4] sdiv w8, w8, w9 stur w8, [x29, #-4] b LBB8_3 LBB8_2: adrp x0, l_.str.22@PAGE add x0, x0, l_.str.22@PAGEOFF bl _printf mov w8, #46 stur w8, [x29, #-4] b LBB8_3 LBB8_3: ldur w0, [x29, #-4] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _power ; -- Begin function power .p2align 2 _power: ; @power .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur w0, [x29, #-8] stur w1, [x29, #-12] mov w8, #1 str w8, [sp, #12] ldur w8, [x29, #-12] subs w8, w8, #0 cset w8, ge tbnz w8, #0, LBB9_2 b LBB9_1 LBB9_1: stur wzr, [x29, #-4] b LBB9_12 LBB9_2: ldur w8, [x29, #-12] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB9_8 b LBB9_3 LBB9_3: str wzr, [sp, #16] b LBB9_4 LBB9_4: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #16] ldur w9, [x29, #-12] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB9_7 b LBB9_5 LBB9_5: ; in Loop: Header=BB9_4 Depth=1 ldur w9, [x29, #-8] ldr w8, [sp, #12] mul w8, w8, w9 str w8, [sp, #12] b LBB9_6 LBB9_6: ; in Loop: Header=BB9_4 Depth=1 ldr w8, [sp, #16] add w8, w8, #1 str w8, [sp, #16] b LBB9_4 LBB9_7: ldr w8, [sp, #12] stur w8, [x29, #-4] b LBB9_12 LBB9_8: ldur w8, [x29, #-8] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB9_11 b LBB9_9 LBB9_9: ldur w8, [x29, #-12] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB9_11 b LBB9_10 LBB9_10: adrp x0, l_.str.23@PAGE add x0, x0, l_.str.23@PAGEOFF bl _printf mov w8, #46 stur w8, [x29, #-4] b LBB9_12 LBB9_11: mov w8, #1 stur w8, [x29, #-4] b LBB9_12 LBB9_12: ldur w0, [x29, #-4] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _modulo ; -- Begin function modulo .p2align 2 _modulo: ; @modulo .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] str w1, [sp, #4] ldr w8, [sp, #4] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB10_2 b LBB10_1 LBB10_1: adrp x0, l_.str.24@PAGE add x0, x0, l_.str.24@PAGEOFF bl _printf mov w8, #46 stur w8, [x29, #-4] b LBB10_3 LBB10_2: ldr w8, [sp, #8] ldr w10, [sp, #4] sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 stur w8, [x29, #-4] b LBB10_3 LBB10_3: ldur w0, [x29, #-4] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _weightedCalculate ; -- Begin function weightedCalculate .p2align 2 _weightedCalculate: ; @weightedCalculate .cfi_startproc ; %bb.0: sub sp, sp, #176 .cfi_def_cfa_offset 176 stp x29, x30, [sp, #160] ; 16-byte Folded Spill add x29, sp, #160 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] adrp x0, l_.str.25@PAGE add x0, x0, l_.str.25@PAGEOFF bl _printf sub x0, x29, #48 str x0, [sp, #16] ; 8-byte Folded Spill bl _take_grades adrp x0, l_.str.26@PAGE add x0, x0, l_.str.26@PAGEOFF bl _printf add x0, sp, #72 str x0, [sp, #24] ; 8-byte Folded Spill bl _take_grades adrp x0, l_.str.27@PAGE add x0, x0, l_.str.27@PAGEOFF bl _printf add x0, sp, #64 str x0, [sp, #32] ; 8-byte Folded Spill bl _take_exam_grades ldr x0, [sp, #16] ; 8-byte Folded Reload bl _calculate_homework ldr x0, [sp, #24] ; 8-byte Folded Reload str d0, [sp, #56] bl _calculate_lab ldr x1, [sp, #32] ; 8-byte Folded Reload str d0, [sp, #48] ldr d0, [sp, #56] fcvtzs w0, d0 ldr d0, [sp, #48] fcvtzs w2, d0 bl _calculate_all str d0, [sp, #40] ldr d0, [sp, #40] mov x8, sp str d0, [x8] adrp x0, l_.str.28@PAGE add x0, x0, l_.str.28@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, LBB11_2 b LBB11_1 LBB11_1: bl ___stack_chk_fail LBB11_2: ldp x29, x30, [sp, #160] ; 16-byte Folded Reload add sp, sp, #176 ret .cfi_endproc ; -- End function .globl _take_grades ; -- Begin function take_grades .p2align 2 _take_grades: ; @take_grades .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 wzr, [sp, #12] b LBB12_1 LBB12_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #12] subs w8, w8, #10 cset w8, ge tbnz w8, #0, LBB12_4 b LBB12_2 LBB12_2: ; in Loop: Header=BB12_1 Depth=1 ldr w8, [sp, #12] add w10, w8, #1 mov x9, sp ; implicit-def: $x8 mov x8, x10 str x8, [x9] adrp x0, l_.str.29@PAGE add x0, x0, l_.str.29@PAGEOFF bl _printf ldr x8, [sp, #16] ldrsw x9, [sp, #12] add x8, x8, x9, lsl #2 mov x9, sp str x8, [x9] adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _scanf b LBB12_3 LBB12_3: ; in Loop: Header=BB12_1 Depth=1 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB12_1 LBB12_4: ldur w0, [x29, #-4] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _take_exam_grades ; -- Begin function take_exam_grades .p2align 2 _take_exam_grades: ; @take_exam_grades .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] adrp x0, l_.str.30@PAGE add x0, x0, l_.str.30@PAGEOFF bl _printf ldr x8, [sp, #16] mov x9, sp str x8, [x9] adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF str x0, [sp, #8] ; 8-byte Folded Spill bl _scanf adrp x0, l_.str.31@PAGE add x0, x0, l_.str.31@PAGEOFF bl _printf ldr x0, [sp, #8] ; 8-byte Folded Reload ldr x8, [sp, #16] add x8, x8, #4 mov x9, sp str x8, [x9] bl _scanf ldur w0, [x29, #-4] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _calculate_homework ; -- Begin function calculate_homework .p2align 2 _calculate_homework: ; @calculate_homework .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, #24] movi d0, #0000000000000000 str d0, [sp, #16] str wzr, [sp, #12] b LBB14_1 LBB14_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #12] subs w8, w8, #10 cset w8, ge tbnz w8, #0, LBB14_4 b LBB14_2 LBB14_2: ; in Loop: Header=BB14_1 Depth=1 ldr x8, [sp, #24] ldrsw x9, [sp, #12] ldr s1, [x8, x9, lsl #2] ; implicit-def: $d0 fmov s0, s1 sshll.2d v0, v0, #0 ; kill: def $d0 killed $d0 killed $q0 scvtf d1, d0 ldr d0, [sp, #16] fadd d0, d0, d1 str d0, [sp, #16] b LBB14_3 LBB14_3: ; in Loop: Header=BB14_1 Depth=1 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB14_1 LBB14_4: ldr d0, [sp, #16] fmov d1, #10.00000000 fdiv d0, d0, d1 add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _calculate_lab ; -- Begin function calculate_lab .p2align 2 _calculate_lab: ; @calculate_lab .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, #24] movi d0, #0000000000000000 str d0, [sp, #16] str wzr, [sp, #12] b LBB15_1 LBB15_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #12] subs w8, w8, #10 cset w8, ge tbnz w8, #0, LBB15_4 b LBB15_2 LBB15_2: ; in Loop: Header=BB15_1 Depth=1 ldr x8, [sp, #24] ldrsw x9, [sp, #12] ldr s1, [x8, x9, lsl #2] ; implicit-def: $d0 fmov s0, s1 sshll.2d v0, v0, #0 ; kill: def $d0 killed $d0 killed $q0 scvtf d1, d0 ldr d0, [sp, #16] fadd d0, d0, d1 str d0, [sp, #16] b LBB15_3 LBB15_3: ; in Loop: Header=BB15_1 Depth=1 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB15_1 LBB15_4: ldr d0, [sp, #16] fmov d1, #10.00000000 fdiv d0, d0, d1 add sp, sp, #32 ret .cfi_endproc ; -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ; -- Begin function calculate_all lCPI16_0: .quad 0x3fd999999999999a ; double 0.40000000000000002 lCPI16_1: .quad 0x3fd3333333333333 ; double 0.29999999999999999 lCPI16_2: .quad 0x3fb999999999999a ; double 0.10000000000000001 lCPI16_3: .quad 0x3fc999999999999a ; double 0.20000000000000001 .section __TEXT,__text,regular,pure_instructions .globl _calculate_all .p2align 2 _calculate_all: ; @calculate_all .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] stur w2, [x29, #-20] ldur w9, [x29, #-4] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.32@PAGE add x0, x0, l_.str.32@PAGEOFF bl _printf ldur w9, [x29, #-20] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.33@PAGE add x0, x0, l_.str.33@PAGEOFF bl _printf ldur s1, [x29, #-4] ; implicit-def: $d0 fmov s0, s1 sshll.2d v0, v0, #0 ; kill: def $d0 killed $d0 killed $q0 scvtf d0, d0 ldur s2, [x29, #-20] ; implicit-def: $d1 fmov s1, s2 sshll.2d v1, v1, #0 ; kill: def $d1 killed $d1 killed $q1 scvtf d1, d1 adrp x8, lCPI16_3@PAGE ldr d2, [x8, lCPI16_3@PAGEOFF] fmul d2, d1, d2 adrp x8, lCPI16_2@PAGE ldr d1, [x8, lCPI16_2@PAGEOFF] fmadd d2, d0, d1, d2 ldur x8, [x29, #-16] ldr s1, [x8] ; implicit-def: $d0 fmov s0, s1 sshll.2d v0, v0, #0 ; kill: def $d0 killed $d0 killed $q0 scvtf d0, d0 adrp x8, lCPI16_1@PAGE ldr d1, [x8, lCPI16_1@PAGEOFF] fmadd d2, d0, d1, d2 ldur x8, [x29, #-16] ldr s1, [x8, #4] ; implicit-def: $d0 fmov s0, s1 sshll.2d v0, v0, #0 ; kill: def $d0 killed $d0 killed $q0 scvtf d0, d0 adrp x8, lCPI16_0@PAGE ldr d1, [x8, lCPI16_0@PAGEOFF] fmadd d0, d0, d1, d2 str d0, [sp, #16] ldr d0, [sp, #16] ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _draw_diamond ; -- Begin function draw_diamond .p2align 2 _draw_diamond: ; @draw_diamond .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.34@PAGE add x0, x0, l_.str.34@PAGEOFF bl _printf mov x9, sp sub x8, x29, #4 str x8, [x9] adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _scanf stur wzr, [x29, #-8] b LBB17_1 LBB17_1: ; =>This Loop Header: Depth=1 ; Child Loop BB17_3 Depth 2 ; Child Loop BB17_7 Depth 2 ldur w8, [x29, #-8] ldur w9, [x29, #-4] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB17_18 b LBB17_2 LBB17_2: ; in Loop: Header=BB17_1 Depth=1 ldur w8, [x29, #-4] subs w8, w8, #1 stur w8, [x29, #-12] b LBB17_3 LBB17_3: ; Parent Loop BB17_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldur w8, [x29, #-12] ldur w9, [x29, #-8] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB17_6 b LBB17_4 LBB17_4: ; in Loop: Header=BB17_3 Depth=2 adrp x0, l_.str.35@PAGE add x0, x0, l_.str.35@PAGEOFF bl _printf b LBB17_5 LBB17_5: ; in Loop: Header=BB17_3 Depth=2 ldur w8, [x29, #-12] subs w8, w8, #1 stur w8, [x29, #-12] b LBB17_3 LBB17_6: ; in Loop: Header=BB17_1 Depth=1 stur wzr, [x29, #-12] b LBB17_7 LBB17_7: ; Parent Loop BB17_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldur w8, [x29, #-12] ldur w9, [x29, #-8] add w10, w9, #1 mov w9, #2 mul w9, w9, w10 subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB17_16 b LBB17_8 LBB17_8: ; in Loop: Header=BB17_7 Depth=2 ldur w8, [x29, #-12] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB17_10 b LBB17_9 LBB17_9: ; in Loop: Header=BB17_7 Depth=2 adrp x0, l_.str.36@PAGE add x0, x0, l_.str.36@PAGEOFF bl _printf b LBB17_14 LBB17_10: ; in Loop: Header=BB17_7 Depth=2 ldur w8, [x29, #-12] ldur w10, [x29, #-8] mov w9, #2 mul w9, w9, w10 add w9, w9, #1 subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB17_12 b LBB17_11 LBB17_11: ; in Loop: Header=BB17_7 Depth=2 adrp x0, l_.str.37@PAGE add x0, x0, l_.str.37@PAGEOFF bl _printf b LBB17_13 LBB17_12: ; in Loop: Header=BB17_7 Depth=2 adrp x0, l_.str.38@PAGE add x0, x0, l_.str.38@PAGEOFF bl _printf b LBB17_13 LBB17_13: ; in Loop: Header=BB17_7 Depth=2 b LBB17_14 LBB17_14: ; in Loop: Header=BB17_7 Depth=2 b LBB17_15 LBB17_15: ; in Loop: Header=BB17_7 Depth=2 ldur w8, [x29, #-12] add w8, w8, #1 stur w8, [x29, #-12] b LBB17_7 LBB17_16: ; in Loop: Header=BB17_1 Depth=1 adrp x0, l_.str.39@PAGE add x0, x0, l_.str.39@PAGEOFF bl _printf b LBB17_17 LBB17_17: ; in Loop: Header=BB17_1 Depth=1 ldur w8, [x29, #-8] add w8, w8, #1 stur w8, [x29, #-8] b LBB17_1 LBB17_18: stur wzr, [x29, #-8] b LBB17_19 LBB17_19: ; =>This Loop Header: Depth=1 ; Child Loop BB17_21 Depth 2 ; Child Loop BB17_25 Depth 2 ldur w8, [x29, #-8] ldur w9, [x29, #-4] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB17_36 b LBB17_20 LBB17_20: ; in Loop: Header=BB17_19 Depth=1 stur wzr, [x29, #-12] b LBB17_21 LBB17_21: ; Parent Loop BB17_19 Depth=1 ; => This Inner Loop Header: Depth=2 ldur w8, [x29, #-12] ldur w9, [x29, #-8] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB17_24 b LBB17_22 LBB17_22: ; in Loop: Header=BB17_21 Depth=2 adrp x0, l_.str.35@PAGE add x0, x0, l_.str.35@PAGEOFF bl _printf b LBB17_23 LBB17_23: ; in Loop: Header=BB17_21 Depth=2 ldur w8, [x29, #-12] add w8, w8, #1 stur w8, [x29, #-12] b LBB17_21 LBB17_24: ; in Loop: Header=BB17_19 Depth=1 ldur w9, [x29, #-4] mov w8, #2 mul w8, w8, w9 stur w8, [x29, #-12] b LBB17_25 LBB17_25: ; Parent Loop BB17_19 Depth=1 ; => This Inner Loop Header: Depth=2 ldur w8, [x29, #-12] ldur w10, [x29, #-8] mov w9, #2 mul w9, w9, w10 subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB17_34 b LBB17_26 LBB17_26: ; in Loop: Header=BB17_25 Depth=2 ldur w8, [x29, #-12] ldur w10, [x29, #-4] mov w9, #2 mul w9, w9, w10 subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB17_28 b LBB17_27 LBB17_27: ; in Loop: Header=BB17_25 Depth=2 adrp x0, l_.str.37@PAGE add x0, x0, l_.str.37@PAGEOFF bl _printf b LBB17_32 LBB17_28: ; in Loop: Header=BB17_25 Depth=2 ldur w8, [x29, #-12] ldur w10, [x29, #-8] mov w9, #2 mul w9, w9, w10 add w9, w9, #1 subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB17_30 b LBB17_29 LBB17_29: ; in Loop: Header=BB17_25 Depth=2 adrp x0, l_.str.36@PAGE add x0, x0, l_.str.36@PAGEOFF bl _printf b LBB17_31 LBB17_30: ; in Loop: Header=BB17_25 Depth=2 adrp x0, l_.str.38@PAGE add x0, x0, l_.str.38@PAGEOFF bl _printf b LBB17_31 LBB17_31: ; in Loop: Header=BB17_25 Depth=2 b LBB17_32 LBB17_32: ; in Loop: Header=BB17_25 Depth=2 b LBB17_33 LBB17_33: ; in Loop: Header=BB17_25 Depth=2 ldur w8, [x29, #-12] subs w8, w8, #1 stur w8, [x29, #-12] b LBB17_25 LBB17_34: ; in Loop: Header=BB17_19 Depth=1 adrp x0, l_.str.39@PAGE add x0, x0, l_.str.39@PAGEOFF bl _printf b LBB17_35 LBB17_35: ; in Loop: Header=BB17_19 Depth=1 ldur w8, [x29, #-8] add w8, w8, #1 stur w8, [x29, #-8] b LBB17_19 LBB17_36: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "\n**** MENU ****\n" l_.str.1: ; @.str.1 .asciz "(1) - Calculator\n" l_.str.2: ; @.str.2 .asciz "(2) - Weighted Average\n" l_.str.3: ; @.str.3 .asciz "(3) - Draw Diamond\n" l_.str.4: ; @.str.4 .asciz "(4) - Exit\n" l_.str.5: ; @.str.5 .asciz "Choice : " l_.str.6: ; @.str.6 .asciz "%d" l_.str.7: ; @.str.7 .asciz "Invalid choice...\n" .section __TEXT,__const l___const.calculator.op: ; @__const.calculator.op .asciz "+\000" .asciz "-\000" .asciz "*\000" .asciz "/\000" .asciz "**" .asciz "%\000" .section __TEXT,__cstring,cstring_literals l_.str.8: ; @.str.8 .asciz "\n**** CALCULATOR ****\n" l_.str.9: ; @.str.9 .asciz "Rules (1) You put a space each expression\n" l_.str.10: ; @.str.10 .asciz "Rules (2) If you want to exit the calculator, enter '.'\n" l_.str.11: ; @.str.11 .asciz "(+) Addition\n" l_.str.12: ; @.str.12 .asciz "(-) Substraction\n" l_.str.13: ; @.str.13 .asciz "(*) Multiplication\n" l_.str.14: ; @.str.14 .asciz "(/) Divison\n" l_.str.15: ; @.str.15 .asciz "(**) Power\n" l_.str.16: ; @.str.16 .asciz "(%%) Modulo\n\n" l_.str.17: ; @.str.17 .asciz " %[^\n]s" l_.str.18: ; @.str.18 .asciz "%s %d %d" l_.str.19: ; @.str.19 .asciz "." l_.str.20: ; @.str.20 .asciz "Invalid operation...\n" l_.str.21: ; @.str.21 .asciz "%d\n" l_.str.22: ; @.str.22 .asciz "Division by zero is undefined\n" l_.str.23: ; @.str.23 .asciz "0 force of 0 is undefined\n" l_.str.24: ; @.str.24 .asciz "Malformed expression...\n" l_.str.25: ; @.str.25 .asciz "*** HOMEWORK GRADES ***\n" l_.str.26: ; @.str.26 .asciz "*** LAB GRADES ***\n" l_.str.27: ; @.str.27 .asciz "*** MIDTERM AND FINAL ***\n" l_.str.28: ; @.str.28 .asciz "\nWeighted Average : %.3lf\n" l_.str.29: ; @.str.29 .asciz " %d. Grade : " l_.str.30: ; @.str.30 .asciz " Midterm : " l_.str.31: ; @.str.31 .asciz " F\304\260nal : " l_.str.32: ; @.str.32 .asciz "Ave hw : %d\n" l_.str.33: ; @.str.33 .asciz "Ave lab : %d\n" l_.str.34: ; @.str.34 .asciz "Height : " l_.str.35: ; @.str.35 .asciz " " l_.str.36: ; @.str.36 .asciz "/" l_.str.37: ; @.str.37 .asciz "\\" l_.str.38: ; @.str.38 .asciz "*" l_.str.39: ; @.str.39 .asciz "\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) callq _menu xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _menu ## -- Begin function menu .p2align 4, 0x90 _menu: ## @menu .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl $1, -8(%rbp) LBB1_1: ## =>This Inner Loop Header: Depth=1 cmpl $0, -8(%rbp) je LBB1_9 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 leaq L_.str(%rip), %rdi xorl %eax, %eax ## kill: def $al killed $al killed $eax movb %al, -17(%rbp) ## 1-byte Spill callq _printf ## kill: def $ecx killed $eax movb -17(%rbp), %al ## 1-byte Reload leaq L_.str.1(%rip), %rdi callq _printf ## kill: def $ecx killed $eax movb -17(%rbp), %al ## 1-byte Reload leaq L_.str.2(%rip), %rdi callq _printf ## kill: def $ecx killed $eax movb -17(%rbp), %al ## 1-byte Reload leaq L_.str.3(%rip), %rdi callq _printf ## kill: def $ecx killed $eax movb -17(%rbp), %al ## 1-byte Reload leaq L_.str.4(%rip), %rdi callq _printf ## kill: def $ecx killed $eax movb -17(%rbp), %al ## 1-byte Reload leaq L_.str.5(%rip), %rdi callq _printf ## kill: def $ecx killed $eax movb -17(%rbp), %al ## 1-byte Reload leaq L_.str.6(%rip), %rdi leaq -4(%rbp), %rsi callq _scanf movl -4(%rbp), %eax decl %eax movl %eax, %ecx movq %rcx, -16(%rbp) ## 8-byte Spill subl $3, %eax ja LBB1_7 ## %bb.10: ## in Loop: Header=BB1_1 Depth=1 movq -16(%rbp), %rax ## 8-byte Reload leaq LJTI1_0(%rip), %rcx movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax LBB1_3: ## in Loop: Header=BB1_1 Depth=1 callq _calculator jmp LBB1_8 LBB1_4: ## in Loop: Header=BB1_1 Depth=1 callq _weightedCalculate jmp LBB1_8 LBB1_5: ## in Loop: Header=BB1_1 Depth=1 callq _draw_diamond jmp LBB1_8 LBB1_6: ## in Loop: Header=BB1_1 Depth=1 movl $0, -8(%rbp) jmp LBB1_8 LBB1_7: ## in Loop: Header=BB1_1 Depth=1 leaq L_.str.7(%rip), %rdi movb $0, %al callq _printf LBB1_8: ## in Loop: Header=BB1_1 Depth=1 jmp LBB1_1 LBB1_9: addq $32, %rsp popq %rbp retq .cfi_endproc .p2align 2, 0x90 .data_region jt32 .set L1_0_set_3, LBB1_3-LJTI1_0 .set L1_0_set_4, LBB1_4-LJTI1_0 .set L1_0_set_5, LBB1_5-LJTI1_0 .set L1_0_set_6, LBB1_6-LJTI1_0 LJTI1_0: .long L1_0_set_3 .long L1_0_set_4 .long L1_0_set_5 .long L1_0_set_6 .end_data_region ## -- End function .globl _calculator ## -- Begin function calculator .p2align 4, 0x90 _calculator: ## @calculator .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $352, %rsp ## imm = 0x160 movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -332(%rbp) movl $1, -336(%rbp) movq l___const.calculator.op(%rip), %rax movq %rax, -304(%rbp) movq l___const.calculator.op+8(%rip), %rax movq %rax, -296(%rbp) movw l___const.calculator.op+16(%rip), %ax movw %ax, -288(%rbp) leaq L_.str.8(%rip), %rdi movb $0, %al callq _printf leaq L_.str.9(%rip), %rdi movb $0, %al callq _printf leaq L_.str.10(%rip), %rdi movb $0, %al callq _printf leaq L_.str.11(%rip), %rdi movb $0, %al callq _printf leaq L_.str.12(%rip), %rdi movb $0, %al callq _printf leaq L_.str.13(%rip), %rdi movb $0, %al callq _printf leaq L_.str.14(%rip), %rdi movb $0, %al callq _printf leaq L_.str.15(%rip), %rdi movb $0, %al callq _printf leaq L_.str.16(%rip), %rdi movb $0, %al callq _printf LBB2_1: ## =>This Loop Header: Depth=1 ## Child Loop BB2_5 Depth 2 cmpl $0, -336(%rbp) je LBB2_40 ## %bb.2: ## in Loop: Header=BB2_1 Depth=1 leaq -272(%rbp), %rsi leaq L_.str.17(%rip), %rdi movb $0, %al callq _scanf leaq -272(%rbp), %rdi leaq -306(%rbp), %rdx leaq L_.str.18(%rip), %rsi leaq -312(%rbp), %rcx leaq -316(%rbp), %r8 movb $0, %al callq _sscanf movl %eax, -328(%rbp) leaq -306(%rbp), %rdi leaq L_.str.19(%rip), %rsi callq _my_stringcmp cmpl $0, %eax jne LBB2_4 ## %bb.3: ## in Loop: Header=BB2_1 Depth=1 movl $0, -336(%rbp) LBB2_4: ## in Loop: Header=BB2_1 Depth=1 movl $0, -324(%rbp) LBB2_5: ## Parent Loop BB2_1 Depth=1 ## => This Inner Loop Header: Depth=2 cmpl $6, -324(%rbp) jge LBB2_10 ## %bb.6: ## in Loop: Header=BB2_5 Depth=2 leaq -306(%rbp), %rdi movslq -324(%rbp), %rax leaq -304(%rbp), %rsi imulq $3, %rax, %rax addq %rax, %rsi callq _my_stringcmp cmpl $0, %eax jne LBB2_8 ## %bb.7: ## in Loop: Header=BB2_5 Depth=2 movl -324(%rbp), %eax movl %eax, -320(%rbp) LBB2_8: ## in Loop: Header=BB2_5 Depth=2 jmp LBB2_9 LBB2_9: ## in Loop: Header=BB2_5 Depth=2 movl -324(%rbp), %eax addl $1, %eax movl %eax, -324(%rbp) jmp LBB2_5 LBB2_10: ## in Loop: Header=BB2_1 Depth=1 movl -320(%rbp), %eax ## kill: def $rax killed $eax movq %rax, -344(%rbp) ## 8-byte Spill subq $5, %rax ja LBB2_35 ## %bb.43: ## in Loop: Header=BB2_1 Depth=1 movq -344(%rbp), %rax ## 8-byte Reload leaq LJTI2_0(%rip), %rcx movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax LBB2_11: ## in Loop: Header=BB2_1 Depth=1 cmpl $2, -328(%rbp) jne LBB2_13 ## %bb.12: ## in Loop: Header=BB2_1 Depth=1 movl -332(%rbp), %esi movl -312(%rbp), %edx leaq _add(%rip), %rdi callq _doit movl %eax, -332(%rbp) jmp LBB2_14 LBB2_13: ## in Loop: Header=BB2_1 Depth=1 movl -312(%rbp), %esi movl -316(%rbp), %edx leaq _add(%rip), %rdi callq _doit movl %eax, -332(%rbp) LBB2_14: ## in Loop: Header=BB2_1 Depth=1 jmp LBB2_36 LBB2_15: ## in Loop: Header=BB2_1 Depth=1 cmpl $2, -328(%rbp) jne LBB2_17 ## %bb.16: ## in Loop: Header=BB2_1 Depth=1 movl -332(%rbp), %esi movl -312(%rbp), %edx leaq _sub(%rip), %rdi callq _doit movl %eax, -332(%rbp) jmp LBB2_18 LBB2_17: ## in Loop: Header=BB2_1 Depth=1 movl -312(%rbp), %esi movl -316(%rbp), %edx leaq _sub(%rip), %rdi callq _doit movl %eax, -332(%rbp) LBB2_18: ## in Loop: Header=BB2_1 Depth=1 jmp LBB2_36 LBB2_19: ## in Loop: Header=BB2_1 Depth=1 cmpl $2, -328(%rbp) jne LBB2_21 ## %bb.20: ## in Loop: Header=BB2_1 Depth=1 movl -312(%rbp), %esi movl -332(%rbp), %edx leaq _multiplication(%rip), %rdi callq _doit movl %eax, -332(%rbp) jmp LBB2_22 LBB2_21: ## in Loop: Header=BB2_1 Depth=1 movl -312(%rbp), %esi movl -316(%rbp), %edx leaq _multiplication(%rip), %rdi callq _doit movl %eax, -332(%rbp) LBB2_22: ## in Loop: Header=BB2_1 Depth=1 jmp LBB2_36 LBB2_23: ## in Loop: Header=BB2_1 Depth=1 cmpl $2, -328(%rbp) jne LBB2_25 ## %bb.24: ## in Loop: Header=BB2_1 Depth=1 movl -332(%rbp), %esi movl -312(%rbp), %edx leaq _divison(%rip), %rdi callq _doit movl %eax, -332(%rbp) jmp LBB2_26 LBB2_25: ## in Loop: Header=BB2_1 Depth=1 movl -312(%rbp), %esi movl -316(%rbp), %edx leaq _divison(%rip), %rdi callq _doit movl %eax, -332(%rbp) LBB2_26: ## in Loop: Header=BB2_1 Depth=1 jmp LBB2_36 LBB2_27: ## in Loop: Header=BB2_1 Depth=1 cmpl $2, -328(%rbp) jne LBB2_29 ## %bb.28: ## in Loop: Header=BB2_1 Depth=1 movl -332(%rbp), %esi movl -312(%rbp), %edx leaq _power(%rip), %rdi callq _doit movl %eax, -332(%rbp) jmp LBB2_30 LBB2_29: ## in Loop: Header=BB2_1 Depth=1 movl -312(%rbp), %esi movl -316(%rbp), %edx leaq _power(%rip), %rdi callq _doit movl %eax, -332(%rbp) LBB2_30: ## in Loop: Header=BB2_1 Depth=1 jmp LBB2_36 LBB2_31: ## in Loop: Header=BB2_1 Depth=1 cmpl $2, -328(%rbp) jne LBB2_33 ## %bb.32: ## in Loop: Header=BB2_1 Depth=1 movl -332(%rbp), %esi movl -312(%rbp), %edx leaq _modulo(%rip), %rdi callq _doit movl %eax, -332(%rbp) jmp LBB2_34 LBB2_33: ## in Loop: Header=BB2_1 Depth=1 movl -312(%rbp), %esi movl -316(%rbp), %edx leaq _modulo(%rip), %rdi callq _doit movl %eax, -332(%rbp) LBB2_34: ## in Loop: Header=BB2_1 Depth=1 jmp LBB2_36 LBB2_35: ## in Loop: Header=BB2_1 Depth=1 leaq L_.str.20(%rip), %rdi movb $0, %al callq _printf LBB2_36: ## in Loop: Header=BB2_1 Depth=1 cmpl $46, -332(%rbp) je LBB2_38 ## %bb.37: ## in Loop: Header=BB2_1 Depth=1 movl -332(%rbp), %esi leaq L_.str.21(%rip), %rdi movb $0, %al callq _printf jmp LBB2_39 LBB2_38: ## in Loop: Header=BB2_1 Depth=1 movl $0, -332(%rbp) LBB2_39: ## in Loop: Header=BB2_1 Depth=1 jmp LBB2_1 LBB2_40: movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB2_42 ## %bb.41: addq $352, %rsp ## imm = 0x160 popq %rbp retq LBB2_42: callq ___stack_chk_fail ud2 .cfi_endproc .p2align 2, 0x90 .data_region jt32 .set L2_0_set_11, LBB2_11-LJTI2_0 .set L2_0_set_15, LBB2_15-LJTI2_0 .set L2_0_set_19, LBB2_19-LJTI2_0 .set L2_0_set_23, LBB2_23-LJTI2_0 .set L2_0_set_27, LBB2_27-LJTI2_0 .set L2_0_set_31, LBB2_31-LJTI2_0 LJTI2_0: .long L2_0_set_11 .long L2_0_set_15 .long L2_0_set_19 .long L2_0_set_23 .long L2_0_set_27 .long L2_0_set_31 .end_data_region ## -- End function .globl _my_stringcmp ## -- Begin function my_stringcmp .p2align 4, 0x90 _my_stringcmp: ## @my_stringcmp .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) LBB3_1: ## =>This Inner Loop Header: Depth=1 movq -8(%rbp), %rax movsbl (%rax), %ecx xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $0, %ecx movb %al, -17(%rbp) ## 1-byte Spill je LBB3_4 ## %bb.2: ## in Loop: Header=BB3_1 Depth=1 movq -16(%rbp), %rax movsbl (%rax), %ecx xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $0, %ecx movb %al, -17(%rbp) ## 1-byte Spill je LBB3_4 ## %bb.3: ## in Loop: Header=BB3_1 Depth=1 movq -8(%rbp), %rax movsbl (%rax), %eax movq -16(%rbp), %rcx movsbl (%rcx), %ecx cmpl %ecx, %eax sete %al movb %al, -17(%rbp) ## 1-byte Spill LBB3_4: ## in Loop: Header=BB3_1 Depth=1 movb -17(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB3_5 jmp LBB3_6 LBB3_5: ## in Loop: Header=BB3_1 Depth=1 movq -8(%rbp), %rax addq $1, %rax movq %rax, -8(%rbp) movq -16(%rbp), %rax addq $1, %rax movq %rax, -16(%rbp) jmp LBB3_1 LBB3_6: movq -8(%rbp), %rax movsbl (%rax), %eax movq -16(%rbp), %rcx movsbl (%rcx), %ecx subl %ecx, %eax popq %rbp retq .cfi_endproc ## -- End function .globl _doit ## -- Begin function doit .p2align 4, 0x90 _doit: ## @doit .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) movl %edx, -16(%rbp) movq -8(%rbp), %rcx movl -12(%rbp), %edi movl -16(%rbp), %esi movb $0, %al callq *%rcx movl %eax, -20(%rbp) movl -20(%rbp), %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _add ## -- Begin function add .p2align 4, 0x90 _add: ## @add .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 _sub ## -- Begin function sub .p2align 4, 0x90 _sub: ## @sub .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 subl -8(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .globl _multiplication ## -- Begin function multiplication .p2align 4, 0x90 _multiplication: ## @multiplication .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, -4(%rbp) movl %esi, -8(%rbp) movl -4(%rbp), %eax imull -8(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .globl _divison ## -- Begin function divison .p2align 4, 0x90 _divison: ## @divison .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl %edi, -8(%rbp) movl %esi, -12(%rbp) cmpl $0, -12(%rbp) je LBB8_2 ## %bb.1: movl -8(%rbp), %eax cltd idivl -12(%rbp) movl %eax, -4(%rbp) jmp LBB8_3 LBB8_2: leaq L_.str.22(%rip), %rdi movb $0, %al callq _printf movl $46, -4(%rbp) LBB8_3: movl -4(%rbp), %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _power ## -- Begin function power .p2align 4, 0x90 _power: ## @power .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl %edi, -8(%rbp) movl %esi, -12(%rbp) movl $1, -20(%rbp) cmpl $0, -12(%rbp) jge LBB9_2 ## %bb.1: movl $0, -4(%rbp) jmp LBB9_12 LBB9_2: cmpl $0, -12(%rbp) je LBB9_8 ## %bb.3: movl $0, -16(%rbp) LBB9_4: ## =>This Inner Loop Header: Depth=1 movl -16(%rbp), %eax cmpl -12(%rbp), %eax jge LBB9_7 ## %bb.5: ## in Loop: Header=BB9_4 Depth=1 movl -8(%rbp), %eax imull -20(%rbp), %eax movl %eax, -20(%rbp) ## %bb.6: ## in Loop: Header=BB9_4 Depth=1 movl -16(%rbp), %eax addl $1, %eax movl %eax, -16(%rbp) jmp LBB9_4 LBB9_7: movl -20(%rbp), %eax movl %eax, -4(%rbp) jmp LBB9_12 LBB9_8: cmpl $0, -8(%rbp) jne LBB9_11 ## %bb.9: cmpl $0, -12(%rbp) jne LBB9_11 ## %bb.10: leaq L_.str.23(%rip), %rdi movb $0, %al callq _printf movl $46, -4(%rbp) jmp LBB9_12 LBB9_11: movl $1, -4(%rbp) LBB9_12: movl -4(%rbp), %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _modulo ## -- Begin function modulo .p2align 4, 0x90 _modulo: ## @modulo .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl %edi, -8(%rbp) movl %esi, -12(%rbp) cmpl $0, -12(%rbp) jne LBB10_2 ## %bb.1: leaq L_.str.24(%rip), %rdi movb $0, %al callq _printf movl $46, -4(%rbp) jmp LBB10_3 LBB10_2: movl -8(%rbp), %eax cltd idivl -12(%rbp) movl %edx, -4(%rbp) LBB10_3: movl -4(%rbp), %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _weightedCalculate ## -- Begin function weightedCalculate .p2align 4, 0x90 _weightedCalculate: ## @weightedCalculate .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $128, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) leaq L_.str.25(%rip), %rdi movb $0, %al callq _printf leaq -48(%rbp), %rdi callq _take_grades leaq L_.str.26(%rip), %rdi movb $0, %al callq _printf leaq -96(%rbp), %rdi callq _take_grades leaq L_.str.27(%rip), %rdi movb $0, %al callq _printf leaq -104(%rbp), %rdi callq _take_exam_grades leaq -48(%rbp), %rdi callq _calculate_homework movsd %xmm0, -112(%rbp) leaq -96(%rbp), %rdi callq _calculate_lab movsd %xmm0, -120(%rbp) cvttsd2si -112(%rbp), %edi leaq -104(%rbp), %rsi cvttsd2si -120(%rbp), %edx callq _calculate_all movsd %xmm0, -128(%rbp) movsd -128(%rbp), %xmm0 ## xmm0 = mem[0],zero leaq L_.str.28(%rip), %rdi movb $1, %al callq _printf movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB11_2 ## %bb.1: addq $128, %rsp popq %rbp retq LBB11_2: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _take_grades ## -- Begin function take_grades .p2align 4, 0x90 _take_grades: ## @take_grades .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 $0, -20(%rbp) LBB12_1: ## =>This Inner Loop Header: Depth=1 cmpl $10, -20(%rbp) jge LBB12_4 ## %bb.2: ## in Loop: Header=BB12_1 Depth=1 movl -20(%rbp), %esi addl $1, %esi leaq L_.str.29(%rip), %rdi movb $0, %al callq _printf movq -16(%rbp), %rsi movslq -20(%rbp), %rax shlq $2, %rax addq %rax, %rsi leaq L_.str.6(%rip), %rdi movb $0, %al callq _scanf ## %bb.3: ## in Loop: Header=BB12_1 Depth=1 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB12_1 LBB12_4: movl -4(%rbp), %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _take_exam_grades ## -- Begin function take_exam_grades .p2align 4, 0x90 _take_exam_grades: ## @take_exam_grades .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) leaq L_.str.30(%rip), %rdi movb $0, %al callq _printf movq -16(%rbp), %rsi leaq L_.str.6(%rip), %rdi movb $0, %al callq _scanf leaq L_.str.31(%rip), %rdi movb $0, %al callq _printf movq -16(%rbp), %rsi addq $4, %rsi leaq L_.str.6(%rip), %rdi movb $0, %al callq _scanf movl -4(%rbp), %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ## -- Begin function calculate_homework LCPI14_0: .quad 0x4024000000000000 ## double 10 .section __TEXT,__text,regular,pure_instructions .globl _calculate_homework .p2align 4, 0x90 _calculate_homework: ## @calculate_homework .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) xorps %xmm0, %xmm0 movsd %xmm0, -16(%rbp) movl $0, -20(%rbp) LBB14_1: ## =>This Inner Loop Header: Depth=1 cmpl $10, -20(%rbp) jge LBB14_4 ## %bb.2: ## in Loop: Header=BB14_1 Depth=1 movq -8(%rbp), %rax movslq -20(%rbp), %rcx cvtsi2sdl (%rax,%rcx,4), %xmm0 addsd -16(%rbp), %xmm0 movsd %xmm0, -16(%rbp) ## %bb.3: ## in Loop: Header=BB14_1 Depth=1 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB14_1 LBB14_4: movsd -16(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd LCPI14_0(%rip), %xmm1 ## xmm1 = mem[0],zero divsd %xmm1, %xmm0 popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ## -- Begin function calculate_lab LCPI15_0: .quad 0x4024000000000000 ## double 10 .section __TEXT,__text,regular,pure_instructions .globl _calculate_lab .p2align 4, 0x90 _calculate_lab: ## @calculate_lab .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) xorps %xmm0, %xmm0 movsd %xmm0, -16(%rbp) movl $0, -20(%rbp) LBB15_1: ## =>This Inner Loop Header: Depth=1 cmpl $10, -20(%rbp) jge LBB15_4 ## %bb.2: ## in Loop: Header=BB15_1 Depth=1 movq -8(%rbp), %rax movslq -20(%rbp), %rcx cvtsi2sdl (%rax,%rcx,4), %xmm0 addsd -16(%rbp), %xmm0 movsd %xmm0, -16(%rbp) ## %bb.3: ## in Loop: Header=BB15_1 Depth=1 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB15_1 LBB15_4: movsd -16(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd LCPI15_0(%rip), %xmm1 ## xmm1 = mem[0],zero divsd %xmm1, %xmm0 popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ## -- Begin function calculate_all LCPI16_0: .quad 0x3fd999999999999a ## double 0.40000000000000002 LCPI16_1: .quad 0x3fd3333333333333 ## double 0.29999999999999999 LCPI16_2: .quad 0x3fb999999999999a ## double 0.10000000000000001 LCPI16_3: .quad 0x3fc999999999999a ## double 0.20000000000000001 .section __TEXT,__text,regular,pure_instructions .globl _calculate_all .p2align 4, 0x90 _calculate_all: ## @calculate_all .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl %edi, -4(%rbp) movq %rsi, -16(%rbp) movl %edx, -20(%rbp) movl -4(%rbp), %esi leaq L_.str.32(%rip), %rdi movb $0, %al callq _printf movl -20(%rbp), %esi leaq L_.str.33(%rip), %rdi movb $0, %al callq _printf cvtsi2sdl -4(%rbp), %xmm0 cvtsi2sdl -20(%rbp), %xmm1 movsd LCPI16_3(%rip), %xmm2 ## xmm2 = mem[0],zero mulsd %xmm2, %xmm1 movsd LCPI16_2(%rip), %xmm2 ## xmm2 = mem[0],zero mulsd %xmm2, %xmm0 addsd %xmm1, %xmm0 movq -16(%rbp), %rax cvtsi2sdl (%rax), %xmm1 movsd LCPI16_1(%rip), %xmm2 ## xmm2 = mem[0],zero mulsd %xmm2, %xmm1 addsd %xmm0, %xmm1 movq -16(%rbp), %rax cvtsi2sdl 4(%rax), %xmm0 movsd LCPI16_0(%rip), %xmm2 ## xmm2 = mem[0],zero mulsd %xmm2, %xmm0 addsd %xmm1, %xmm0 movsd %xmm0, -32(%rbp) movsd -32(%rbp), %xmm0 ## xmm0 = mem[0],zero addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _draw_diamond ## -- Begin function draw_diamond .p2align 4, 0x90 _draw_diamond: ## @draw_diamond .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.34(%rip), %rdi movb $0, %al callq _printf leaq L_.str.6(%rip), %rdi leaq -4(%rbp), %rsi movb $0, %al callq _scanf movl $0, -8(%rbp) LBB17_1: ## =>This Loop Header: Depth=1 ## Child Loop BB17_3 Depth 2 ## Child Loop BB17_7 Depth 2 movl -8(%rbp), %eax cmpl -4(%rbp), %eax jge LBB17_18 ## %bb.2: ## in Loop: Header=BB17_1 Depth=1 movl -4(%rbp), %eax subl $1, %eax movl %eax, -12(%rbp) LBB17_3: ## Parent Loop BB17_1 Depth=1 ## => This Inner Loop Header: Depth=2 movl -12(%rbp), %eax cmpl -8(%rbp), %eax jle LBB17_6 ## %bb.4: ## in Loop: Header=BB17_3 Depth=2 leaq L_.str.35(%rip), %rdi movb $0, %al callq _printf ## %bb.5: ## in Loop: Header=BB17_3 Depth=2 movl -12(%rbp), %eax addl $-1, %eax movl %eax, -12(%rbp) jmp LBB17_3 LBB17_6: ## in Loop: Header=BB17_1 Depth=1 movl $0, -12(%rbp) LBB17_7: ## Parent Loop BB17_1 Depth=1 ## => This Inner Loop Header: Depth=2 movl -12(%rbp), %eax movl -8(%rbp), %ecx addl $1, %ecx shll $1, %ecx cmpl %ecx, %eax jge LBB17_16 ## %bb.8: ## in Loop: Header=BB17_7 Depth=2 cmpl $0, -12(%rbp) jne LBB17_10 ## %bb.9: ## in Loop: Header=BB17_7 Depth=2 leaq L_.str.36(%rip), %rdi movb $0, %al callq _printf jmp LBB17_14 LBB17_10: ## in Loop: Header=BB17_7 Depth=2 movl -12(%rbp), %eax movl -8(%rbp), %ecx shll $1, %ecx addl $1, %ecx cmpl %ecx, %eax jne LBB17_12 ## %bb.11: ## in Loop: Header=BB17_7 Depth=2 leaq L_.str.37(%rip), %rdi movb $0, %al callq _printf jmp LBB17_13 LBB17_12: ## in Loop: Header=BB17_7 Depth=2 leaq L_.str.38(%rip), %rdi movb $0, %al callq _printf LBB17_13: ## in Loop: Header=BB17_7 Depth=2 jmp LBB17_14 LBB17_14: ## in Loop: Header=BB17_7 Depth=2 jmp LBB17_15 LBB17_15: ## in Loop: Header=BB17_7 Depth=2 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB17_7 LBB17_16: ## in Loop: Header=BB17_1 Depth=1 leaq L_.str.39(%rip), %rdi movb $0, %al callq _printf ## %bb.17: ## in Loop: Header=BB17_1 Depth=1 movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) jmp LBB17_1 LBB17_18: movl $0, -8(%rbp) LBB17_19: ## =>This Loop Header: Depth=1 ## Child Loop BB17_21 Depth 2 ## Child Loop BB17_25 Depth 2 movl -8(%rbp), %eax cmpl -4(%rbp), %eax jge LBB17_36 ## %bb.20: ## in Loop: Header=BB17_19 Depth=1 movl $0, -12(%rbp) LBB17_21: ## Parent Loop BB17_19 Depth=1 ## => This Inner Loop Header: Depth=2 movl -12(%rbp), %eax cmpl -8(%rbp), %eax jge LBB17_24 ## %bb.22: ## in Loop: Header=BB17_21 Depth=2 leaq L_.str.35(%rip), %rdi movb $0, %al callq _printf ## %bb.23: ## in Loop: Header=BB17_21 Depth=2 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB17_21 LBB17_24: ## in Loop: Header=BB17_19 Depth=1 movl -4(%rbp), %eax shll $1, %eax movl %eax, -12(%rbp) LBB17_25: ## Parent Loop BB17_19 Depth=1 ## => This Inner Loop Header: Depth=2 movl -12(%rbp), %eax movl -8(%rbp), %ecx shll $1, %ecx cmpl %ecx, %eax jle LBB17_34 ## %bb.26: ## in Loop: Header=BB17_25 Depth=2 movl -12(%rbp), %eax movl -4(%rbp), %ecx shll $1, %ecx cmpl %ecx, %eax jne LBB17_28 ## %bb.27: ## in Loop: Header=BB17_25 Depth=2 leaq L_.str.37(%rip), %rdi movb $0, %al callq _printf jmp LBB17_32 LBB17_28: ## in Loop: Header=BB17_25 Depth=2 movl -12(%rbp), %eax movl -8(%rbp), %ecx shll $1, %ecx addl $1, %ecx cmpl %ecx, %eax jne LBB17_30 ## %bb.29: ## in Loop: Header=BB17_25 Depth=2 leaq L_.str.36(%rip), %rdi movb $0, %al callq _printf jmp LBB17_31 LBB17_30: ## in Loop: Header=BB17_25 Depth=2 leaq L_.str.38(%rip), %rdi movb $0, %al callq _printf LBB17_31: ## in Loop: Header=BB17_25 Depth=2 jmp LBB17_32 LBB17_32: ## in Loop: Header=BB17_25 Depth=2 jmp LBB17_33 LBB17_33: ## in Loop: Header=BB17_25 Depth=2 movl -12(%rbp), %eax addl $-1, %eax movl %eax, -12(%rbp) jmp LBB17_25 LBB17_34: ## in Loop: Header=BB17_19 Depth=1 leaq L_.str.39(%rip), %rdi movb $0, %al callq _printf ## %bb.35: ## in Loop: Header=BB17_19 Depth=1 movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) jmp LBB17_19 LBB17_36: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "\n**** MENU ****\n" L_.str.1: ## @.str.1 .asciz "(1) - Calculator\n" L_.str.2: ## @.str.2 .asciz "(2) - Weighted Average\n" L_.str.3: ## @.str.3 .asciz "(3) - Draw Diamond\n" L_.str.4: ## @.str.4 .asciz "(4) - Exit\n" L_.str.5: ## @.str.5 .asciz "Choice : " L_.str.6: ## @.str.6 .asciz "%d" L_.str.7: ## @.str.7 .asciz "Invalid choice...\n" .section __TEXT,__const .p2align 4 ## @__const.calculator.op l___const.calculator.op: .asciz "+\000" .asciz "-\000" .asciz "*\000" .asciz "/\000" .asciz "**" .asciz "%\000" .section __TEXT,__cstring,cstring_literals L_.str.8: ## @.str.8 .asciz "\n**** CALCULATOR ****\n" L_.str.9: ## @.str.9 .asciz "Rules (1) You put a space each expression\n" L_.str.10: ## @.str.10 .asciz "Rules (2) If you want to exit the calculator, enter '.'\n" L_.str.11: ## @.str.11 .asciz "(+) Addition\n" L_.str.12: ## @.str.12 .asciz "(-) Substraction\n" L_.str.13: ## @.str.13 .asciz "(*) Multiplication\n" L_.str.14: ## @.str.14 .asciz "(/) Divison\n" L_.str.15: ## @.str.15 .asciz "(**) Power\n" L_.str.16: ## @.str.16 .asciz "(%%) Modulo\n\n" L_.str.17: ## @.str.17 .asciz " %[^\n]s" L_.str.18: ## @.str.18 .asciz "%s %d %d" L_.str.19: ## @.str.19 .asciz "." L_.str.20: ## @.str.20 .asciz "Invalid operation...\n" L_.str.21: ## @.str.21 .asciz "%d\n" L_.str.22: ## @.str.22 .asciz "Division by zero is undefined\n" L_.str.23: ## @.str.23 .asciz "0 force of 0 is undefined\n" L_.str.24: ## @.str.24 .asciz "Malformed expression...\n" L_.str.25: ## @.str.25 .asciz "*** HOMEWORK GRADES ***\n" L_.str.26: ## @.str.26 .asciz "*** LAB GRADES ***\n" L_.str.27: ## @.str.27 .asciz "*** MIDTERM AND FINAL ***\n" L_.str.28: ## @.str.28 .asciz "\nWeighted Average : %.3lf\n" L_.str.29: ## @.str.29 .asciz " %d. Grade : " L_.str.30: ## @.str.30 .asciz " Midterm : " L_.str.31: ## @.str.31 .asciz " F\304\260nal : " L_.str.32: ## @.str.32 .asciz "Ave hw : %d\n" L_.str.33: ## @.str.33 .asciz "Ave lab : %d\n" L_.str.34: ## @.str.34 .asciz "Height : " L_.str.35: ## @.str.35 .asciz " " L_.str.36: ## @.str.36 .asciz "/" L_.str.37: ## @.str.37 .asciz "\\" L_.str.38: ## @.str.38 .asciz "*" L_.str.39: ## @.str.39 .asciz "\n" .subsections_via_symbols
the_stack_data/20450807.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/34686.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #160 .cfi_def_cfa_offset 160 stp x29, x30, [sp, #144] ; 16-byte Folded Spill add x29, sp, #144 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] str wzr, [sp, #20] str wzr, [sp, #16] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 mov w0, #0 add x1, sp, #15 mov x2, #1 bl _read subs x8, x0, #0 cset w8, le tbnz w8, #0, LBB0_5 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldrb w8, [sp, #15] add x9, sp, #24 add x9, x9, #8 ldrsw x10, [sp, #16] mov x11, x10 add w11, w11, #1 str w11, [sp, #16] add x9, x9, x10 strb w8, [x9] ldr w8, [sp, #16] subs w8, w8, #100 cset w8, lt tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov w0, #1 bl _exit LBB0_4: ; in Loop: Header=BB0_1 Depth=1 b LBB0_1 LBB0_5: add x8, sp, #24 add x8, x8, #8 ldrsw x9, [sp, #16] add x8, x8, x9 strb wzr, [x8] mov x8, #1 str x8, [sp, #24] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF mov w1, #107 bl _ftok str w0, [sp, #8] ldr w0, [sp, #8] mov w1, #950 bl _msgget str w0, [sp, #4] ldr w8, [sp, #4] subs w8, w8, #0 cset w8, ge tbnz w8, #0, LBB0_7 b LBB0_6 LBB0_6: adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf mov w0, #1 bl _exit LBB0_7: ldr w0, [sp, #4] add x1, sp, #24 mov x2, #112 mov w3, #0 bl _msgsnd subs w8, w0, #0 cset w8, ge tbnz w8, #0, LBB0_9 b LBB0_8 LBB0_8: adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf mov w0, #1 bl _exit LBB0_9: ldr w8, [sp, #20] str w8, [sp] ; 4-byte Folded Spill ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_11 b LBB0_10 LBB0_10: bl ___stack_chk_fail LBB0_11: ldr w0, [sp] ; 4-byte Folded Reload ldp x29, x30, [sp, #144] ; 16-byte Folded Reload add sp, sp, #160 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Blad - za dlugie slowo\n" l_.str.1: ; @.str.1 .asciz "/tmp/sth" l_.str.2: ; @.str.2 .asciz "Blad msgget\n" l_.str.3: ; @.str.3 .asciz "Blad msgsnd\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 $144, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -124(%rbp) movl $0, -128(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 xorl %edi, %edi leaq -129(%rbp), %rsi movl $1, %edx callq _read cmpq $0, %rax jle LBB0_5 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movb -129(%rbp), %cl movl -128(%rbp), %eax movl %eax, %edx addl $1, %edx movl %edx, -128(%rbp) cltq movb %cl, -112(%rbp,%rax) cmpl $100, -128(%rbp) jl LBB0_4 ## %bb.3: leaq L_.str(%rip), %rdi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _printf movl $1, %edi callq _exit LBB0_4: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_1 LBB0_5: movslq -128(%rbp), %rax movb $0, -112(%rbp,%rax) movq $1, -120(%rbp) leaq L_.str.1(%rip), %rdi movl $107, %esi callq _ftok movl %eax, -136(%rbp) movl -136(%rbp), %edi movl $950, %esi ## imm = 0x3B6 callq _msgget movl %eax, -140(%rbp) cmpl $0, -140(%rbp) jge LBB0_7 ## %bb.6: leaq L_.str.2(%rip), %rdi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _printf movl $1, %edi callq _exit LBB0_7: movl -140(%rbp), %edi leaq -120(%rbp), %rsi movl $112, %edx xorl %ecx, %ecx callq _msgsnd cmpl $0, %eax jge LBB0_9 ## %bb.8: leaq L_.str.3(%rip), %rdi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _printf movl $1, %edi callq _exit LBB0_9: movl -124(%rbp), %eax movl %eax, -144(%rbp) ## 4-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_11 ## %bb.10: movl -144(%rbp), %eax ## 4-byte Reload addq $144, %rsp popq %rbp retq LBB0_11: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Blad - za dlugie slowo\n" L_.str.1: ## @.str.1 .asciz "/tmp/sth" L_.str.2: ## @.str.2 .asciz "Blad msgget\n" L_.str.3: ## @.str.3 .asciz "Blad msgsnd\n" .subsections_via_symbols
the_stack_data/14199137.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _printSolution ; -- Begin function printSolution .p2align 2 _printSolution: ; @printSolution .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] stur wzr, [x29, #-12] b LBB0_1 LBB0_1: ; =>This Loop Header: Depth=1 ; Child Loop BB0_3 Depth 2 ldur w8, [x29, #-12] subs w8, w8, #4 cset w8, ge tbnz w8, #0, LBB0_8 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 str wzr, [sp, #16] b LBB0_3 LBB0_3: ; Parent Loop BB0_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #16] subs w8, w8, #4 cset w8, ge tbnz w8, #0, LBB0_6 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_3 Depth=2 ldur x8, [x29, #-8] ldursw x9, [x29, #-12] add x8, x8, x9, lsl #4 ldrsw x9, [sp, #16] ldr w9, [x8, x9, lsl #2] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf b LBB0_5 LBB0_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 adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf b LBB0_7 LBB0_7: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-12] add w8, w8, #1 stur w8, [x29, #-12] b LBB0_1 LBB0_8: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _solveNQUtil ; -- Begin function solveNQUtil .p2align 2 _solveNQUtil: ; @solveNQUtil .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, #4 cset w8, lt tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: mov w8, #1 and w8, w8, #0x1 and w8, w8, #0x1 sturb w8, [x29, #-1] b LBB1_13 LBB1_2: str wzr, [sp, #8] b LBB1_3 LBB1_3: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #8] subs w8, w8, #4 cset w8, ge tbnz w8, #0, LBB1_12 b LBB1_4 LBB1_4: ; in Loop: Header=BB1_3 Depth=1 ldr w8, [sp, #8] ldr w9, [sp, #12] subs w8, w8, w9 add w8, w8, #4 subs w9, w8, #1 adrp x8, _ld@PAGE add x8, x8, _ld@PAGEOFF ldr w8, [x8, w9, sxtw #2] subs w8, w8, #1 cset w8, eq tbnz w8, #0, LBB1_10 b LBB1_5 LBB1_5: ; in Loop: Header=BB1_3 Depth=1 ldr w8, [sp, #8] ldr w9, [sp, #12] add w9, w8, w9 adrp x8, _rd@PAGE add x8, x8, _rd@PAGEOFF ldr w8, [x8, w9, sxtw #2] subs w8, w8, #1 cset w8, eq tbnz w8, #0, LBB1_10 b LBB1_6 LBB1_6: ; in Loop: Header=BB1_3 Depth=1 ldrsw x9, [sp, #8] adrp x8, _cl@PAGE add x8, x8, _cl@PAGEOFF ldr w8, [x8, x9, lsl #2] subs w8, w8, #1 cset w8, eq tbnz w8, #0, LBB1_10 b LBB1_7 LBB1_7: ; in Loop: Header=BB1_3 Depth=1 ldr x8, [sp, #16] ldrsw x9, [sp, #8] add x9, x8, x9, lsl #4 ldrsw x10, [sp, #12] mov w8, #1 str w8, [x9, x10, lsl #2] ldrsw x10, [sp, #8] adrp x9, _cl@PAGE add x9, x9, _cl@PAGEOFF str w8, [x9, x10, lsl #2] ldr w9, [sp, #8] ldr w10, [sp, #12] add w10, w9, w10 adrp x9, _rd@PAGE add x9, x9, _rd@PAGEOFF str w8, [x9, w10, sxtw #2] ldr w9, [sp, #8] ldr w10, [sp, #12] subs w9, w9, w10 add w9, w9, #4 subs w10, w9, #1 adrp x9, _ld@PAGE add x9, x9, _ld@PAGEOFF str w8, [x9, w10, sxtw #2] ldr x0, [sp, #16] ldr w8, [sp, #12] add w1, w8, #1 bl _solveNQUtil tbz w0, #0, LBB1_9 b LBB1_8 LBB1_8: mov w8, #1 and w8, w8, #0x1 and w8, w8, #0x1 sturb w8, [x29, #-1] b LBB1_13 LBB1_9: ; in Loop: Header=BB1_3 Depth=1 ldr x8, [sp, #16] ldrsw x9, [sp, #8] add x9, x8, x9, lsl #4 ldrsw x10, [sp, #12] mov w8, #0 str w8, [x9, x10, lsl #2] ldrsw x10, [sp, #8] adrp x9, _cl@PAGE add x9, x9, _cl@PAGEOFF str w8, [x9, x10, lsl #2] ldr w9, [sp, #8] ldr w10, [sp, #12] add w10, w9, w10 adrp x9, _rd@PAGE add x9, x9, _rd@PAGEOFF str w8, [x9, w10, sxtw #2] ldr w9, [sp, #8] ldr w10, [sp, #12] subs w9, w9, w10 add w9, w9, #4 subs w10, w9, #1 adrp x9, _ld@PAGE add x9, x9, _ld@PAGEOFF str w8, [x9, w10, sxtw #2] b LBB1_10 LBB1_10: ; in Loop: Header=BB1_3 Depth=1 b LBB1_11 LBB1_11: ; in Loop: Header=BB1_3 Depth=1 ldr w8, [sp, #8] add w8, w8, #1 str w8, [sp, #8] b LBB1_3 LBB1_12: mov w8, #0 and w8, w8, #0x1 and w8, w8, #0x1 sturb w8, [x29, #-1] b LBB1_13 LBB1_13: ldurb w8, [x29, #-1] and w0, w8, #0x1 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _solveNQ ; -- Begin function solveNQ .p2align 2 _solveNQ: ; @solveNQ .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] add x0, sp, #24 str x0, [sp, #8] ; 8-byte Folded Spill mov w1, #0 str w1, [sp, #16] ; 4-byte Folded Spill mov x2, #64 bl _memset ldr x0, [sp, #8] ; 8-byte Folded Reload ldr w1, [sp, #16] ; 4-byte Folded Reload bl _solveNQUtil ands w8, w0, #0x1 cset w8, ne tbnz w8, #0, LBB2_2 b LBB2_1 LBB2_1: adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf mov w8, #0 and w8, w8, #0x1 and w8, w8, #0x1 strb w8, [sp, #23] b LBB2_3 LBB2_2: add x0, sp, #24 bl _printSolution mov w8, #1 and w8, w8, #0x1 and w8, w8, #0x1 strb w8, [sp, #23] b LBB2_3 LBB2_3: ldrb w8, [sp, #23] 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, LBB2_5 b LBB2_4 LBB2_4: bl ___stack_chk_fail LBB2_5: ldr w8, [sp, #4] ; 4-byte Folded Reload and w0, w8, #0x1 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, #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 _solveNQ ldr w0, [sp, #8] ; 4-byte Folded Reload ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _ld ; @ld .zerofill __DATA,__common,_ld,120,2 .globl _rd ; @rd .zerofill __DATA,__common,_rd,120,2 .globl _cl ; @cl .zerofill __DATA,__common,_cl,120,2 .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz " %d " l_.str.1: ; @.str.1 .asciz "\n" l_.str.2: ; @.str.2 .asciz "Solution does not exist" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _printSolution ## -- Begin function printSolution .p2align 4, 0x90 _printSolution: ## @printSolution .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) movl $0, -12(%rbp) LBB0_1: ## =>This Loop Header: Depth=1 ## Child Loop BB0_3 Depth 2 cmpl $4, -12(%rbp) jge LBB0_8 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl $0, -16(%rbp) LBB0_3: ## Parent Loop BB0_1 Depth=1 ## => This Inner Loop Header: Depth=2 cmpl $4, -16(%rbp) jge LBB0_6 ## %bb.4: ## in Loop: Header=BB0_3 Depth=2 movq -8(%rbp), %rax movslq -12(%rbp), %rcx shlq $4, %rcx addq %rcx, %rax movslq -16(%rbp), %rcx movl (%rax,%rcx,4), %esi leaq L_.str(%rip), %rdi movb $0, %al callq _printf ## %bb.5: ## in Loop: Header=BB0_3 Depth=2 movl -16(%rbp), %eax addl $1, %eax movl %eax, -16(%rbp) jmp LBB0_3 LBB0_6: ## in Loop: Header=BB0_1 Depth=1 leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf ## %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: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _solveNQUtil ## -- Begin function solveNQUtil .p2align 4, 0x90 _solveNQUtil: ## @solveNQUtil .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 $4, -20(%rbp) jl LBB1_2 ## %bb.1: movb $1, -1(%rbp) jmp LBB1_13 LBB1_2: movl $0, -24(%rbp) LBB1_3: ## =>This Inner Loop Header: Depth=1 cmpl $4, -24(%rbp) jge LBB1_12 ## %bb.4: ## in Loop: Header=BB1_3 Depth=1 movl -24(%rbp), %eax subl -20(%rbp), %eax addl $4, %eax subl $1, %eax movslq %eax, %rcx leaq _ld(%rip), %rax cmpl $1, (%rax,%rcx,4) je LBB1_10 ## %bb.5: ## in Loop: Header=BB1_3 Depth=1 movl -24(%rbp), %eax addl -20(%rbp), %eax movslq %eax, %rcx leaq _rd(%rip), %rax cmpl $1, (%rax,%rcx,4) je LBB1_10 ## %bb.6: ## in Loop: Header=BB1_3 Depth=1 movslq -24(%rbp), %rcx leaq _cl(%rip), %rax cmpl $1, (%rax,%rcx,4) je LBB1_10 ## %bb.7: ## in Loop: Header=BB1_3 Depth=1 movq -16(%rbp), %rax movslq -24(%rbp), %rcx shlq $4, %rcx addq %rcx, %rax movslq -20(%rbp), %rcx movl $1, (%rax,%rcx,4) movslq -24(%rbp), %rcx leaq _cl(%rip), %rax movl $1, (%rax,%rcx,4) movl -24(%rbp), %eax addl -20(%rbp), %eax movslq %eax, %rcx leaq _rd(%rip), %rax movl $1, (%rax,%rcx,4) movl -24(%rbp), %eax subl -20(%rbp), %eax addl $4, %eax subl $1, %eax movslq %eax, %rcx leaq _ld(%rip), %rax movl $1, (%rax,%rcx,4) movq -16(%rbp), %rdi movl -20(%rbp), %esi addl $1, %esi callq _solveNQUtil testb $1, %al jne LBB1_8 jmp LBB1_9 LBB1_8: movb $1, -1(%rbp) jmp LBB1_13 LBB1_9: ## in Loop: Header=BB1_3 Depth=1 movq -16(%rbp), %rax movslq -24(%rbp), %rcx shlq $4, %rcx addq %rcx, %rax movslq -20(%rbp), %rcx movl $0, (%rax,%rcx,4) movslq -24(%rbp), %rcx leaq _cl(%rip), %rax movl $0, (%rax,%rcx,4) movl -24(%rbp), %eax addl -20(%rbp), %eax movslq %eax, %rcx leaq _rd(%rip), %rax movl $0, (%rax,%rcx,4) movl -24(%rbp), %eax subl -20(%rbp), %eax addl $4, %eax subl $1, %eax movslq %eax, %rcx leaq _ld(%rip), %rax movl $0, (%rax,%rcx,4) LBB1_10: ## in Loop: Header=BB1_3 Depth=1 jmp LBB1_11 LBB1_11: ## in Loop: Header=BB1_3 Depth=1 movl -24(%rbp), %eax addl $1, %eax movl %eax, -24(%rbp) jmp LBB1_3 LBB1_12: movb $0, -1(%rbp) LBB1_13: movb -1(%rbp), %al andb $1, %al movzbl %al, %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _solveNQ ## -- Begin function solveNQ .p2align 4, 0x90 _solveNQ: ## @solveNQ .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) leaq -80(%rbp), %rdi xorl %esi, %esi movl $64, %edx callq _memset leaq -80(%rbp), %rdi xorl %esi, %esi callq _solveNQUtil andb $1, %al movzbl %al, %eax cmpl $0, %eax jne LBB2_2 ## %bb.1: leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf movb $0, -81(%rbp) jmp LBB2_3 LBB2_2: leaq -80(%rbp), %rdi callq _printSolution movb $1, -81(%rbp) LBB2_3: movb -81(%rbp), %al movb %al, -82(%rbp) ## 1-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB2_5 ## %bb.4: movb -82(%rbp), %al ## 1-byte Reload andb $1, %al movzbl %al, %eax addq $96, %rsp popq %rbp retq LBB2_5: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) callq _solveNQ xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _ld ## @ld .zerofill __DATA,__common,_ld,120,4 .globl _rd ## @rd .zerofill __DATA,__common,_rd,120,4 .globl _cl ## @cl .zerofill __DATA,__common,_cl,120,4 .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz " %d " L_.str.1: ## @.str.1 .asciz "\n" L_.str.2: ## @.str.2 .asciz "Solution does not exist" .subsections_via_symbols
the_stack_data/232955302.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 bl ___VERIFIER_nondet_int subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 bl ___VERIFIER_nondet_int stur w0, [x29, #-4] b LBB0_1 LBB0_3: ldur w8, [x29, #-4] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_6 b LBB0_4 LBB0_4: b LBB0_5 LBB0_5: ; =>This Inner Loop Header: Depth=1 b LBB0_5 LBB0_6: 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) LBB0_1: ## =>This Inner Loop Header: Depth=1 callq ___VERIFIER_nondet_int cmpl $0, %eax je LBB0_3 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 callq ___VERIFIER_nondet_int movl %eax, -4(%rbp) jmp LBB0_1 LBB0_3: cmpl $0, -4(%rbp) je LBB0_6 ## %bb.4: jmp LBB0_5 LBB0_5: ## =>This Inner Loop Header: Depth=1 jmp LBB0_5 LBB0_6: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/49473.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/105951.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl ___dst_hmac_md5_init ; -- Begin function __dst_hmac_md5_init .p2align 2 ___dst_hmac_md5_init: ; @__dst_hmac_md5_init .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 ___dst_hmac_md5_init ## -- Begin function __dst_hmac_md5_init .p2align 4, 0x90 ___dst_hmac_md5_init: ## @__dst_hmac_md5_init .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/129593.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #0 stur w8, [x29, #-20] ; 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, #12 str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF str x0, [sp, #16] ; 8-byte Folded Spill bl _scanf adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf ldr x0, [sp, #16] ; 8-byte Folded Reload mov x9, sp sub x8, x29, #8 str x8, [x9] bl _scanf ldur s0, [x29, #-8] ldur s1, [x29, #-12] fsub s0, s0, s1 fcvt d1, s0 fmov d0, #3.75000000 fmul d0, d0, d1 fcvt s0, d0 stur s0, [x29, #-16] ldur s0, [x29, #-16] fcvt d0, s0 mov x8, sp str d0, [x8] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf ldur w0, [x29, #-20] ; 4-byte Folded Reload ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Enter the previous reading: " l_.str.1: ; @.str.1 .asciz "%f" l_.str.2: ; @.str.2 .asciz "Enter the current metre reading: " l_.str.3: ; @.str.3 .asciz "The Electricity Bill is : %f" .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 0x400e000000000000 ## double 3.75 .section __TEXT,__text,regular,pure_instructions .globl _main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) leaq L_.str(%rip), %rdi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi leaq -12(%rbp), %rsi movb $0, %al callq _scanf leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi leaq -8(%rbp), %rsi movb $0, %al callq _scanf movss -8(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero subss -12(%rbp), %xmm0 cvtss2sd %xmm0, %xmm1 movsd LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero mulsd %xmm1, %xmm0 cvtsd2ss %xmm0, %xmm0 movss %xmm0, -16(%rbp) movss -16(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 leaq L_.str.3(%rip), %rdi movb $1, %al callq _printf xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Enter the previous reading: " L_.str.1: ## @.str.1 .asciz "%f" L_.str.2: ## @.str.2 .asciz "Enter the current metre reading: " L_.str.3: ## @.str.3 .asciz "The Electricity Bill is : %f" .subsections_via_symbols
the_stack_data/34059.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _DelayLoop ; -- Begin function DelayLoop .p2align 2 _DelayLoop: ; @DelayLoop .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, #24] str x1, [sp, #16] ldr x8, [sp, #16] str x8, [sp, #8] b LBB0_1 LBB0_1: ; =>This Loop Header: Depth=1 ; Child Loop BB0_3 Depth 2 ldr x8, [sp, #24] subs x9, x8, #1 str x9, [sp, #24] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB0_6 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #16] str x8, [sp, #8] b LBB0_3 LBB0_3: ; Parent Loop BB0_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr x8, [sp, #8] subs x9, x8, #1 str x9, [sp, #8] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB0_5 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_3 Depth=2 b LBB0_3 LBB0_5: ; in Loop: Header=BB0_1 Depth=1 b LBB0_1 LBB0_6: add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _read_word ; -- Begin function read_word .p2align 2 _read_word: ; @read_word .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] ldr x8, [sp, #8] ldrsw x0, [x8] add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _write_word ; -- Begin function write_word .p2align 2 _write_word: ; @write_word .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] str x1, [sp] ldr x8, [sp] ldr x9, [sp, #8] ; kill: def $w8 killed $w8 killed $x8 str w8, [x9] 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 _DelayLoop ## -- Begin function DelayLoop .p2align 4, 0x90 _DelayLoop: ## @DelayLoop .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 movq %rax, -24(%rbp) LBB0_1: ## =>This Loop Header: Depth=1 ## Child Loop BB0_3 Depth 2 movq -8(%rbp), %rax movq %rax, %rcx addq $-1, %rcx movq %rcx, -8(%rbp) cmpq $0, %rax je LBB0_6 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movq -16(%rbp), %rax movq %rax, -24(%rbp) LBB0_3: ## Parent Loop BB0_1 Depth=1 ## => This Inner Loop Header: Depth=2 movq -24(%rbp), %rax movq %rax, %rcx addq $-1, %rcx movq %rcx, -24(%rbp) cmpq $0, %rax je LBB0_5 ## %bb.4: ## in Loop: Header=BB0_3 Depth=2 jmp LBB0_3 LBB0_5: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_1 LBB0_6: popq %rbp retq .cfi_endproc ## -- End function .globl _read_word ## -- Begin function read_word .p2align 4, 0x90 _read_word: ## @read_word .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 movslq (%rax), %rax popq %rbp retq .cfi_endproc ## -- End function .globl _write_word ## -- Begin function write_word .p2align 4, 0x90 _write_word: ## @write_word .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 %eax, %ecx movq -8(%rbp), %rax movl %ecx, (%rax) popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/206394195.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: stp x28, x27, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w27, -24 .cfi_offset w28, -32 sub sp, sp, #2128 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] str wzr, [sp, #68] str wzr, [sp, #48] str wzr, [sp, #52] str wzr, [sp, #56] str wzr, [sp, #60] str wzr, [sp, #64] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldrsw x9, [sp, #64] mov x8, x9 add w8, w8, #1 str w8, [sp, #64] add x8, sp, #72 str x8, [sp, #32] ; 8-byte Folded Spill 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 ldr x8, [sp, #32] ; 8-byte Folded Reload ldr w9, [sp, #64] subs w9, w9, #1 ldr w8, [x8, w9, sxtw #2] mov w10, #2 sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 str w8, [sp, #44] ; 4-byte Folded Spill 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, #44] ; 4-byte Folded Reload subs w8, w8, #1 cset w8, eq tbnz w8, #0, LBB0_4 b LBB0_5 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #60] add w8, w8, #1 str w8, [sp, #60] ldr w8, [sp, #64] subs w9, w8, #1 add x8, sp, #72 ldr w9, [x8, w9, sxtw #2] ldr w8, [sp, #52] add w8, w8, w9 str w8, [sp, #52] b LBB0_5 LBB0_4: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #56] add w8, w8, #1 str w8, [sp, #56] ldr w8, [sp, #64] subs w9, w8, #1 add x8, sp, #72 ldr w9, [x8, w9, sxtw #2] ldr w8, [sp, #48] add w8, w8, w9 str w8, [sp, #48] b LBB0_5 LBB0_5: ; in Loop: Header=BB0_1 Depth=1 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #64] subs w9, w8, #1 add x8, sp, #72 ldr w8, [x8, w9, sxtw #2] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_1 b LBB0_7 LBB0_7: ldr w8, [sp, #60] ; implicit-def: $x10 mov x10, x8 ldr s1, [sp, #52] ; implicit-def: $d0 fmov s0, s1 sshll.2d v0, v0, #0 ; kill: def $d0 killed $d0 killed $q0 scvtf d0, d0 ldr s2, [sp, #60] ; implicit-def: $d1 fmov s1, s2 sshll.2d v1, v1, #0 ; kill: def $d1 killed $d1 killed $q1 scvtf d1, d1 fdiv d1, d0, d1 ldr w8, [sp, #56] ; implicit-def: $x9 mov x9, x8 ldr s2, [sp, #48] ; implicit-def: $d0 fmov s0, s2 sshll.2d v0, v0, #0 ; kill: def $d0 killed $d0 killed $q0 scvtf d0, d0 ldr s3, [sp, #56] ; implicit-def: $d2 fmov s2, s3 sshll.2d v2, v2, #0 ; kill: def $d2 killed $d2 killed $q2 scvtf d2, d2 fdiv d0, d0, d2 mov x8, sp str x10, [x8] str d1, [x8, #8] str x9, [x8, #16] str d0, [x8, #24] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf ldur x9, [x29, #-24] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_9 b LBB0_8 LBB0_8: bl ___stack_chk_fail LBB0_9: mov w0, #0 add sp, sp, #2128 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x28, x27, [sp], #32 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d" l_.str.1: ; @.str.1 .asciz "The total number of even integers (excluding the 0) entered is %d.\nThe average value of the even integers is %f.\nThe total number of odd integers entered is %d.\nThe average value of the odd integers is %f.\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $2096, %rsp ## imm = 0x830 movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -2068(%rbp) movl $0, -2088(%rbp) movl $0, -2084(%rbp) movl $0, -2080(%rbp) movl $0, -2076(%rbp) movl $0, -2072(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movslq -2072(%rbp), %rax movl %eax, %ecx incl %ecx movl %ecx, -2072(%rbp) leaq -2064(%rbp,%rax,4), %rsi leaq L_.str(%rip), %rdi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _scanf movl -2072(%rbp), %eax decl %eax cltq movl -2064(%rbp,%rax,4), %eax movl %eax, %edx shrl $31, %edx movl %eax, %ecx addl %edx, %ecx andl $-2, %ecx subl %ecx, %eax movl %eax, -2092(%rbp) ## 4-byte Spill je LBB0_2 jmp LBB0_9 LBB0_9: ## in Loop: Header=BB0_1 Depth=1 movl -2092(%rbp), %eax ## 4-byte Reload subl $1, %eax je LBB0_3 jmp LBB0_4 LBB0_2: ## in Loop: Header=BB0_1 Depth=1 movl -2076(%rbp), %eax addl $1, %eax movl %eax, -2076(%rbp) movl -2072(%rbp), %eax subl $1, %eax cltq movl -2064(%rbp,%rax,4), %eax addl -2084(%rbp), %eax movl %eax, -2084(%rbp) jmp LBB0_4 LBB0_3: ## in Loop: Header=BB0_1 Depth=1 movl -2080(%rbp), %eax addl $1, %eax movl %eax, -2080(%rbp) movl -2072(%rbp), %eax subl $1, %eax cltq movl -2064(%rbp,%rax,4), %eax addl -2088(%rbp), %eax movl %eax, -2088(%rbp) LBB0_4: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_5 LBB0_5: ## in Loop: Header=BB0_1 Depth=1 movl -2072(%rbp), %eax subl $1, %eax cltq cmpl $0, -2064(%rbp,%rax,4) jne LBB0_1 ## %bb.6: movl -2076(%rbp), %esi cvtsi2sdl -2084(%rbp), %xmm0 cvtsi2sdl -2076(%rbp), %xmm1 divsd %xmm1, %xmm0 movl -2080(%rbp), %edx cvtsi2sdl -2088(%rbp), %xmm1 cvtsi2sdl -2080(%rbp), %xmm2 divsd %xmm2, %xmm1 leaq L_.str.1(%rip), %rdi movb $2, %al callq _printf movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_8 ## %bb.7: xorl %eax, %eax addq $2096, %rsp ## imm = 0x830 popq %rbp retq LBB0_8: 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 "The total number of even integers (excluding the 0) entered is %d.\nThe average value of the even integers is %f.\nThe total number of odd integers entered is %d.\nThe average value of the odd integers is %f.\n" .subsections_via_symbols
the_stack_data/118150.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #80 .cfi_def_cfa_offset 80 stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp, #64 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___progname@GOTPAGE ldr x8, [x8, ___progname@GOTPAGEOFF] str x8, [sp, #24] ; 8-byte Folded Spill stur wzr, [x29, #-4] stur w0, [x29, #-8] stur x1, [x29, #-16] stur wzr, [x29, #-24] ldr x0, [x8] adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF bl _strcmp subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB0_4 b LBB0_1 LBB0_1: ldur w8, [x29, #-8] subs w8, w8, #3 cset w8, eq tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: bl _usage b LBB0_3 LBB0_3: ldur x8, [x29, #-16] ldr x0, [x8, #8] bl _atoi stur w0, [x29, #-24] ldur x8, [x29, #-16] ldr x0, [x8, #16] bl _atoi stur w0, [x29, #-20] b LBB0_7 LBB0_4: ldur w8, [x29, #-8] subs w8, w8, #2 cset w8, eq tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: bl _usage b LBB0_6 LBB0_6: ldur x8, [x29, #-16] ldr x0, [x8, #8] bl _atoi stur w0, [x29, #-20] b LBB0_7 LBB0_7: ldur w8, [x29, #-20] subs w8, w8, #0 cset w8, ge tbnz w8, #0, LBB0_9 b LBB0_8 LBB0_8: mov w0, #1 adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF bl _errx LBB0_9: ldur w8, [x29, #-24] subs w8, w8, #0 cset w8, ge tbnz w8, #0, LBB0_11 b LBB0_10 LBB0_10: mov w0, #1 adrp x1, l_.str.2@PAGE add x1, x1, l_.str.2@PAGEOFF bl _errx LBB0_11: ldr x8, [sp, #24] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.3@PAGE add x1, x1, l_.str.3@PAGEOFF bl _strcmp subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB0_19 b LBB0_12 LBB0_12: b LBB0_13 LBB0_13: ; =>This Inner Loop Header: Depth=1 bl _getchar stur w0, [x29, #-28] adds w8, w0, #1 cset w8, eq tbnz w8, #0, LBB0_15 b LBB0_14 LBB0_14: ; in Loop: Header=BB0_13 Depth=1 ldur w0, [x29, #-28] bl _putchar b LBB0_13 LBB0_15: b LBB0_16 LBB0_16: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-20] subs w9, w8, #1 stur w9, [x29, #-20] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB0_18 b LBB0_17 LBB0_17: ; in Loop: Header=BB0_16 Depth=1 mov w0, #0 bl _putchar b LBB0_16 LBB0_18: b LBB0_59 LBB0_19: ldr x8, [sp, #24] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.4@PAGE add x1, x1, l_.str.4@PAGEOFF bl _strcmp subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB0_27 b LBB0_20 LBB0_20: b LBB0_21 LBB0_21: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-20] subs w9, w8, #1 stur w9, [x29, #-20] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB0_23 b LBB0_22 LBB0_22: ; in Loop: Header=BB0_21 Depth=1 mov w0, #0 bl _putchar b LBB0_21 LBB0_23: b LBB0_24 LBB0_24: ; =>This Inner Loop Header: Depth=1 bl _getchar stur w0, [x29, #-28] adds w8, w0, #1 cset w8, eq tbnz w8, #0, LBB0_26 b LBB0_25 LBB0_25: ; in Loop: Header=BB0_24 Depth=1 ldur w0, [x29, #-28] bl _putchar b LBB0_24 LBB0_26: b LBB0_58 LBB0_27: ldr x8, [sp, #24] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF bl _strcmp subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB0_40 b LBB0_28 LBB0_28: b LBB0_29 LBB0_29: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-24] subs w9, w8, #1 stur w9, [x29, #-24] subs w8, w8, #0 cset w8, le mov w9, #0 str w9, [sp, #20] ; 4-byte Folded Spill tbnz w8, #0, LBB0_31 b LBB0_30 LBB0_30: ; in Loop: Header=BB0_29 Depth=1 bl _getchar stur w0, [x29, #-28] adds w8, w0, #1 cset w8, ne str w8, [sp, #20] ; 4-byte Folded Spill b LBB0_31 LBB0_31: ; in Loop: Header=BB0_29 Depth=1 ldr w8, [sp, #20] ; 4-byte Folded Reload tbz w8, #0, LBB0_33 b LBB0_32 LBB0_32: ; in Loop: Header=BB0_29 Depth=1 ldur w0, [x29, #-28] bl _putchar b LBB0_29 LBB0_33: b LBB0_34 LBB0_34: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-20] subs w9, w8, #1 stur w9, [x29, #-20] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB0_36 b LBB0_35 LBB0_35: ; in Loop: Header=BB0_34 Depth=1 mov w0, #0 bl _putchar b LBB0_34 LBB0_36: b LBB0_37 LBB0_37: ; =>This Inner Loop Header: Depth=1 bl _getchar stur w0, [x29, #-28] adds w8, w0, #1 cset w8, eq tbnz w8, #0, LBB0_39 b LBB0_38 LBB0_38: ; in Loop: Header=BB0_37 Depth=1 ldur w0, [x29, #-28] bl _putchar b LBB0_37 LBB0_39: b LBB0_57 LBB0_40: ldr x8, [sp, #24] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.5@PAGE add x1, x1, l_.str.5@PAGEOFF bl _strcmp subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB0_47 b LBB0_41 LBB0_41: b LBB0_42 LBB0_42: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-20] subs w9, w8, #1 stur w9, [x29, #-20] subs w8, w8, #0 cset w8, le mov w9, #0 str w9, [sp, #16] ; 4-byte Folded Spill tbnz w8, #0, LBB0_44 b LBB0_43 LBB0_43: ; in Loop: Header=BB0_42 Depth=1 bl _getchar stur w0, [x29, #-28] adds w8, w0, #1 cset w8, ne str w8, [sp, #16] ; 4-byte Folded Spill b LBB0_44 LBB0_44: ; in Loop: Header=BB0_42 Depth=1 ldr w8, [sp, #16] ; 4-byte Folded Reload tbz w8, #0, LBB0_46 b LBB0_45 LBB0_45: ; in Loop: Header=BB0_42 Depth=1 ldur w0, [x29, #-28] bl _putchar b LBB0_42 LBB0_46: b LBB0_56 LBB0_47: b LBB0_48 LBB0_48: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-20] subs w9, w8, #1 stur w9, [x29, #-20] subs w8, w8, #0 cset w8, le mov w9, #0 str w9, [sp, #12] ; 4-byte Folded Spill tbnz w8, #0, LBB0_50 b LBB0_49 LBB0_49: ; in Loop: Header=BB0_48 Depth=1 bl _getchar adds w8, w0, #1 cset w8, ne str w8, [sp, #12] ; 4-byte Folded Spill b LBB0_50 LBB0_50: ; in Loop: Header=BB0_48 Depth=1 ldr w8, [sp, #12] ; 4-byte Folded Reload tbz w8, #0, LBB0_52 b LBB0_51 LBB0_51: ; in Loop: Header=BB0_48 Depth=1 b LBB0_48 LBB0_52: b LBB0_53 LBB0_53: ; =>This Inner Loop Header: Depth=1 bl _getchar stur w0, [x29, #-28] adds w8, w0, #1 cset w8, eq tbnz w8, #0, LBB0_55 b LBB0_54 LBB0_54: ; in Loop: Header=BB0_53 Depth=1 ldur w0, [x29, #-28] bl _putchar b LBB0_53 LBB0_55: b LBB0_56 LBB0_56: b LBB0_57 LBB0_57: b LBB0_58 LBB0_58: b LBB0_59 LBB0_59: mov w0, #0 ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function usage _usage: ; @usage .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___progname@GOTPAGE ldr x8, [x8, ___progname@GOTPAGEOFF] str x8, [sp, #8] ; 8-byte Folded Spill ldr x0, [x8] adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF bl _strcmp subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: ldr x8, [sp, #8] ; 8-byte Folded Reload adrp x9, ___stderrp@GOTPAGE ldr x9, [x9, ___stderrp@GOTPAGEOFF] ldr x0, [x9] ldr x8, [x8] mov x9, sp str x8, [x9] adrp x1, l_.str.6@PAGE add x1, x1, l_.str.6@PAGEOFF bl _fprintf b LBB1_3 LBB1_2: ldr x8, [sp, #8] ; 8-byte Folded Reload adrp x9, ___stderrp@GOTPAGE ldr x9, [x9, ___stderrp@GOTPAGEOFF] ldr x0, [x9] ldr x8, [x8] mov x9, sp str x8, [x9] adrp x1, l_.str.7@PAGE add x1, x1, l_.str.7@PAGEOFF bl _fprintf b LBB1_3 LBB1_3: mov w0, #1 bl _exit .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "insert" l_.str.1: ; @.str.1 .asciz "number of bytes must be nonnegative" l_.str.2: ; @.str.2 .asciz "offset must be nonnegative" l_.str.3: ; @.str.3 .asciz "append" l_.str.4: ; @.str.4 .asciz "prepend" l_.str.5: ; @.str.5 .asciz "pass" l_.str.6: ; @.str.6 .asciz "usage: %s offset bytes\n" l_.str.7: ; @.str.7 .asciz "usage: %s bytes\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl $0, -4(%rbp) movl %edi, -8(%rbp) movq %rsi, -16(%rbp) movl $0, -24(%rbp) movq ___progname@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str(%rip), %rsi callq _strcmp cmpl $0, %eax jne LBB0_4 ## %bb.1: cmpl $3, -8(%rbp) je LBB0_3 ## %bb.2: callq _usage LBB0_3: movq -16(%rbp), %rax movq 8(%rax), %rdi callq _atoi movl %eax, -24(%rbp) movq -16(%rbp), %rax movq 16(%rax), %rdi callq _atoi movl %eax, -20(%rbp) jmp LBB0_7 LBB0_4: cmpl $2, -8(%rbp) je LBB0_6 ## %bb.5: callq _usage LBB0_6: movq -16(%rbp), %rax movq 8(%rax), %rdi callq _atoi movl %eax, -20(%rbp) LBB0_7: cmpl $0, -20(%rbp) jge LBB0_9 ## %bb.8: leaq L_.str.1(%rip), %rsi xorl %eax, %eax ## kill: def $al killed $al killed $eax movl $1, %edi callq _errx LBB0_9: cmpl $0, -24(%rbp) jge LBB0_11 ## %bb.10: leaq L_.str.2(%rip), %rsi xorl %eax, %eax ## kill: def $al killed $al killed $eax movl $1, %edi callq _errx LBB0_11: movq ___progname@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.3(%rip), %rsi callq _strcmp cmpl $0, %eax jne LBB0_19 ## %bb.12: jmp LBB0_13 LBB0_13: ## =>This Inner Loop Header: Depth=1 callq _getchar movl %eax, -28(%rbp) cmpl $-1, %eax je LBB0_15 ## %bb.14: ## in Loop: Header=BB0_13 Depth=1 movl -28(%rbp), %edi callq _putchar jmp LBB0_13 LBB0_15: jmp LBB0_16 LBB0_16: ## =>This Inner Loop Header: Depth=1 movl -20(%rbp), %eax movl %eax, %ecx addl $-1, %ecx movl %ecx, -20(%rbp) cmpl $0, %eax jle LBB0_18 ## %bb.17: ## in Loop: Header=BB0_16 Depth=1 xorl %edi, %edi callq _putchar jmp LBB0_16 LBB0_18: jmp LBB0_59 LBB0_19: movq ___progname@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.4(%rip), %rsi callq _strcmp cmpl $0, %eax jne LBB0_27 ## %bb.20: jmp LBB0_21 LBB0_21: ## =>This Inner Loop Header: Depth=1 movl -20(%rbp), %eax movl %eax, %ecx addl $-1, %ecx movl %ecx, -20(%rbp) cmpl $0, %eax jle LBB0_23 ## %bb.22: ## in Loop: Header=BB0_21 Depth=1 xorl %edi, %edi callq _putchar jmp LBB0_21 LBB0_23: jmp LBB0_24 LBB0_24: ## =>This Inner Loop Header: Depth=1 callq _getchar movl %eax, -28(%rbp) cmpl $-1, %eax je LBB0_26 ## %bb.25: ## in Loop: Header=BB0_24 Depth=1 movl -28(%rbp), %edi callq _putchar jmp LBB0_24 LBB0_26: jmp LBB0_58 LBB0_27: movq ___progname@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str(%rip), %rsi callq _strcmp cmpl $0, %eax jne LBB0_40 ## %bb.28: jmp LBB0_29 LBB0_29: ## =>This Inner Loop Header: Depth=1 movl -24(%rbp), %ecx movl %ecx, %eax addl $-1, %eax movl %eax, -24(%rbp) xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $0, %ecx movb %al, -29(%rbp) ## 1-byte Spill jle LBB0_31 ## %bb.30: ## in Loop: Header=BB0_29 Depth=1 callq _getchar movl %eax, -28(%rbp) cmpl $-1, %eax setne %al movb %al, -29(%rbp) ## 1-byte Spill LBB0_31: ## in Loop: Header=BB0_29 Depth=1 movb -29(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB0_32 jmp LBB0_33 LBB0_32: ## in Loop: Header=BB0_29 Depth=1 movl -28(%rbp), %edi callq _putchar jmp LBB0_29 LBB0_33: jmp LBB0_34 LBB0_34: ## =>This Inner Loop Header: Depth=1 movl -20(%rbp), %eax movl %eax, %ecx addl $-1, %ecx movl %ecx, -20(%rbp) cmpl $0, %eax jle LBB0_36 ## %bb.35: ## in Loop: Header=BB0_34 Depth=1 xorl %edi, %edi callq _putchar jmp LBB0_34 LBB0_36: jmp LBB0_37 LBB0_37: ## =>This Inner Loop Header: Depth=1 callq _getchar movl %eax, -28(%rbp) cmpl $-1, %eax je LBB0_39 ## %bb.38: ## in Loop: Header=BB0_37 Depth=1 movl -28(%rbp), %edi callq _putchar jmp LBB0_37 LBB0_39: jmp LBB0_57 LBB0_40: movq ___progname@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.5(%rip), %rsi callq _strcmp cmpl $0, %eax jne LBB0_47 ## %bb.41: jmp LBB0_42 LBB0_42: ## =>This Inner Loop Header: Depth=1 movl -20(%rbp), %ecx movl %ecx, %eax addl $-1, %eax movl %eax, -20(%rbp) xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $0, %ecx movb %al, -30(%rbp) ## 1-byte Spill jle LBB0_44 ## %bb.43: ## in Loop: Header=BB0_42 Depth=1 callq _getchar movl %eax, -28(%rbp) cmpl $-1, %eax setne %al movb %al, -30(%rbp) ## 1-byte Spill LBB0_44: ## in Loop: Header=BB0_42 Depth=1 movb -30(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB0_45 jmp LBB0_46 LBB0_45: ## in Loop: Header=BB0_42 Depth=1 movl -28(%rbp), %edi callq _putchar jmp LBB0_42 LBB0_46: jmp LBB0_56 LBB0_47: jmp LBB0_48 LBB0_48: ## =>This Inner Loop Header: Depth=1 movl -20(%rbp), %ecx movl %ecx, %eax addl $-1, %eax movl %eax, -20(%rbp) xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $0, %ecx movb %al, -31(%rbp) ## 1-byte Spill jle LBB0_50 ## %bb.49: ## in Loop: Header=BB0_48 Depth=1 callq _getchar cmpl $-1, %eax setne %al movb %al, -31(%rbp) ## 1-byte Spill LBB0_50: ## in Loop: Header=BB0_48 Depth=1 movb -31(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB0_51 jmp LBB0_52 LBB0_51: ## in Loop: Header=BB0_48 Depth=1 jmp LBB0_48 LBB0_52: jmp LBB0_53 LBB0_53: ## =>This Inner Loop Header: Depth=1 callq _getchar movl %eax, -28(%rbp) cmpl $-1, %eax je LBB0_55 ## %bb.54: ## in Loop: Header=BB0_53 Depth=1 movl -28(%rbp), %edi callq _putchar jmp LBB0_53 LBB0_55: jmp LBB0_56 LBB0_56: jmp LBB0_57 LBB0_57: jmp LBB0_58 LBB0_58: jmp LBB0_59 LBB0_59: xorl %eax, %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function usage _usage: ## @usage .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq ___progname@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str(%rip), %rsi callq _strcmp cmpl $0, %eax jne LBB1_2 ## %bb.1: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movq ___progname@GOTPCREL(%rip), %rax movq (%rax), %rdx leaq L_.str.6(%rip), %rsi movb $0, %al callq _fprintf jmp LBB1_3 LBB1_2: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movq ___progname@GOTPCREL(%rip), %rax movq (%rax), %rdx leaq L_.str.7(%rip), %rsi movb $0, %al callq _fprintf LBB1_3: movl $1, %edi callq _exit .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "insert" L_.str.1: ## @.str.1 .asciz "number of bytes must be nonnegative" L_.str.2: ## @.str.2 .asciz "offset must be nonnegative" L_.str.3: ## @.str.3 .asciz "append" L_.str.4: ## @.str.4 .asciz "prepend" L_.str.5: ## @.str.5 .asciz "pass" L_.str.6: ## @.str.6 .asciz "usage: %s offset bytes\n" L_.str.7: ## @.str.7 .asciz "usage: %s bytes\n" .subsections_via_symbols
the_stack_data/232954909.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] stur w0, [x29, #-8] str x1, [sp, #16] mov w0, #-2 adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF mov w2, #4 mov w3, #16 bl _faccessat subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] ldr x0, [x8] adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF bl _fprintf mov w8, #1 stur w8, [x29, #-4] b LBB0_3 LBB0_2: bl _geteuid bl _setuid mov x8, sp ; kill: def $x9 killed $xzr str xzr, [x8] 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 _execl adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _perror mov w8, #1 stur w8, [x29, #-4] b LBB0_3 LBB0_3: ldur w0, [x29, #-4] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "/flag" l_.str.1: ; @.str.1 .asciz "You can't be root to execute this! ... or can you?\n" l_.str.2: ; @.str.2 .asciz "/bin/sh" l_.str.3: ; @.str.3 .asciz "sh" l_.str.4: ; @.str.4 .asciz "execl" .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) movl $4294967294, %edi ## imm = 0xFFFFFFFE leaq L_.str(%rip), %rsi movl $4, %edx movl $16, %ecx callq _faccessat cmpl $0, %eax jne LBB0_2 ## %bb.1: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.1(%rip), %rsi movb $0, %al callq _fprintf movl $1, -4(%rbp) jmp LBB0_3 LBB0_2: callq _geteuid movl %eax, %edi callq _setuid leaq L_.str.2(%rip), %rdi leaq L_.str.3(%rip), %rsi xorl %eax, %eax movl %eax, %edx movb $0, %al callq _execl leaq L_.str.4(%rip), %rdi callq _perror movl $1, -4(%rbp) LBB0_3: movl -4(%rbp), %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "/flag" L_.str.1: ## @.str.1 .asciz "You can't be root to execute this! ... or can you?\n" L_.str.2: ## @.str.2 .asciz "/bin/sh" L_.str.3: ## @.str.3 .asciz "sh" L_.str.4: ## @.str.4 .asciz "execl" .subsections_via_symbols
the_stack_data/5612.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/192332032.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/247017154.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill .cfi_def_cfa_offset 16 mov x29, sp .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 sub sp, sp, #80 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] stur wzr, [x29, #-12] sub sp, sp, #16 mov x9, sp sub x8, x29, #16 str x8, [x9] sub x8, x29, #20 str x8, [x9, #8] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _scanf add sp, sp, #16 ldur w8, [x29, #-20] ; kill: def $x8 killed $w8 mov x9, sp stur x9, [x29, #-32] lsl x9, x8, #2 add x9, x9, #15 and x9, x9, #0xfffffffffffffff0 stur x9, [x29, #-64] ; 8-byte Folded Spill adrp x16, ___chkstk_darwin@GOTPAGE ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF] blr x16 ldur x10, [x29, #-64] ; 8-byte Folded Reload mov x9, sp subs x9, x9, x10 mov sp, x9 stur x9, [x29, #-56] ; 8-byte Folded Spill stur x8, [x29, #-40] stur wzr, [x29, #-44] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-44] ldur w9, [x29, #-20] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_4 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldur x8, [x29, #-56] ; 8-byte Folded Reload ldursw x9, [x29, #-44] add x8, x8, x9, lsl #2 sub sp, sp, #16 mov x9, sp str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf add sp, sp, #16 b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-44] add w8, w8, #1 stur w8, [x29, #-44] b LBB0_1 LBB0_4: stur wzr, [x29, #-48] stur wzr, [x29, #-44] b LBB0_5 LBB0_5: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-44] ldur w9, [x29, #-20] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_8 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_5 Depth=1 ldur x8, [x29, #-56] ; 8-byte Folded Reload ldursw x9, [x29, #-44] ldr w9, [x8, x9, lsl #2] ldur w8, [x29, #-48] add w8, w8, w9 stur w8, [x29, #-48] b LBB0_7 LBB0_7: ; in Loop: Header=BB0_5 Depth=1 ldur w8, [x29, #-44] add w8, w8, #1 stur w8, [x29, #-44] b LBB0_5 LBB0_8: ldur w8, [x29, #-16] ldur w9, [x29, #-48] subs w8, w8, w9 cset w8, lt tbnz w8, #0, LBB0_10 b LBB0_9 LBB0_9: ldur w8, [x29, #-16] ldur w9, [x29, #-48] subs w10, w8, w9 sub sp, sp, #16 mov x9, sp ; implicit-def: $x8 mov x8, x10 str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf add sp, sp, #16 b LBB0_11 LBB0_10: adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf b LBB0_11 LBB0_11: stur wzr, [x29, #-12] ldur x8, [x29, #-32] mov sp, x8 ldur w8, [x29, #-12] stur w8, [x29, #-68] ; 4-byte Folded Spill ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_13 b LBB0_12 LBB0_12: bl ___stack_chk_fail LBB0_13: ldur w0, [x29, #-68] ; 4-byte Folded Reload mov sp, x29 ldp x29, x30, [sp], #16 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d%d" l_.str.1: ; @.str.1 .asciz "%d" l_.str.2: ; @.str.2 .asciz "%d\n" l_.str.3: ; @.str.3 .asciz "-1\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $80, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -12(%rbp) leaq L_.str(%rip), %rdi xorl %eax, %eax ## kill: def $al killed $al killed $eax leaq -16(%rbp), %rsi leaq -20(%rbp), %rdx callq _scanf movl -20(%rbp), %eax ## kill: def $rax killed $eax movq %rax, -64(%rbp) ## 8-byte Spill movq %rsp, %rcx movq %rcx, -32(%rbp) shlq $2, %rax callq ____chkstk_darwin addq $15, %rax andq $-16, %rax subq %rax, %rsp movq -64(%rbp), %rax ## 8-byte Reload movq %rsp, %rcx movq %rcx, -56(%rbp) ## 8-byte Spill movq %rax, -40(%rbp) movl $0, -44(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movl -44(%rbp), %eax cmpl -20(%rbp), %eax jge LBB0_4 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movq -56(%rbp), %rsi ## 8-byte Reload movslq -44(%rbp), %rax shlq $2, %rax addq %rax, %rsi leaq L_.str.1(%rip), %rdi movb $0, %al callq _scanf ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movl -44(%rbp), %eax addl $1, %eax movl %eax, -44(%rbp) jmp LBB0_1 LBB0_4: movl $0, -48(%rbp) movl $0, -44(%rbp) LBB0_5: ## =>This Inner Loop Header: Depth=1 movl -44(%rbp), %eax cmpl -20(%rbp), %eax jge LBB0_8 ## %bb.6: ## in Loop: Header=BB0_5 Depth=1 movq -56(%rbp), %rax ## 8-byte Reload movslq -44(%rbp), %rcx movl (%rax,%rcx,4), %eax addl -48(%rbp), %eax movl %eax, -48(%rbp) ## %bb.7: ## in Loop: Header=BB0_5 Depth=1 movl -44(%rbp), %eax addl $1, %eax movl %eax, -44(%rbp) jmp LBB0_5 LBB0_8: movl -16(%rbp), %eax cmpl -48(%rbp), %eax jl LBB0_10 ## %bb.9: movl -16(%rbp), %esi subl -48(%rbp), %esi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf jmp LBB0_11 LBB0_10: leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf LBB0_11: movl $0, -12(%rbp) movq -32(%rbp), %rax movq %rax, %rsp movl -12(%rbp), %eax movl %eax, -68(%rbp) ## 4-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_13 ## %bb.12: movl -68(%rbp), %eax ## 4-byte Reload movq %rbp, %rsp popq %rbp retq LBB0_13: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d%d" L_.str.1: ## @.str.1 .asciz "%d" L_.str.2: ## @.str.2 .asciz "%d\n" L_.str.3: ## @.str.3 .asciz "-1\n" .subsections_via_symbols
the_stack_data/73575529.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _putz ; -- Begin function putz .p2align 2 _putz: ; @putz .cfi_startproc ; %bb.0: stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill .cfi_def_cfa_offset 16 mov x29, sp .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w0, #1 adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF mov x2, #1 bl _write mov w0, #0 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 stur wzr, [x29, #-4] stur w0, [x29, #-8] str x1, [sp, #16] mov w8, #-1 str w8, [sp, #12] str wzr, [sp, #8] ldur w8, [x29, #-8] subs w8, w8, #2 cset w8, lt tbnz w8, #0, LBB1_15 b LBB1_1 LBB1_1: b LBB1_2 LBB1_2: ; =>This Loop Header: Depth=1 ; Child Loop BB1_6 Depth 2 ldr x8, [sp, #16] ldr w9, [sp, #8] add w9, w9, #1 str w9, [sp, #8] ldr x8, [x8, w9, sxtw #3] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB1_14 b LBB1_3 LBB1_3: ; in Loop: Header=BB1_2 Depth=1 bl _putz subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB1_5 b LBB1_4 LBB1_4: b LBB1_14 LBB1_5: ; in Loop: Header=BB1_2 Depth=1 b LBB1_6 LBB1_6: ; Parent Loop BB1_2 Depth=1 ; => This Inner Loop Header: Depth=2 ldr x8, [sp, #16] ldrsw x9, [sp, #8] ldr x8, [x8, x9, lsl #3] ldr w9, [sp, #12] add w9, w9, #1 str w9, [sp, #12] add x8, x8, w9, sxtw ldrb w8, [x8] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB1_13 b LBB1_7 LBB1_7: ; in Loop: Header=BB1_6 Depth=2 ldr x8, [sp, #16] ldrsw x9, [sp, #8] ldr x8, [x8, x9, lsl #3] ldrsw x9, [sp, #12] ldrsb w8, [x8, x9] subs w8, w8, #122 cset w8, ne tbnz w8, #0, LBB1_9 b LBB1_8 LBB1_8: ; in Loop: Header=BB1_6 Depth=2 bl _putz b LBB1_12 LBB1_9: ; in Loop: Header=BB1_6 Depth=2 ldr x8, [sp, #16] ldrsw x9, [sp, #8] ldr x8, [x8, x9, lsl #3] ldrsw x9, [sp, #12] ldrsb w8, [x8, x9] subs w8, w8, #122 cset w8, eq tbnz w8, #0, LBB1_11 b LBB1_10 LBB1_10: ; in Loop: Header=BB1_6 Depth=2 bl _putz b LBB1_11 LBB1_11: ; in Loop: Header=BB1_6 Depth=2 b LBB1_12 LBB1_12: ; in Loop: Header=BB1_6 Depth=2 b LBB1_6 LBB1_13: ; in Loop: Header=BB1_2 Depth=1 b LBB1_2 LBB1_14: b LBB1_16 LBB1_15: bl _putz b LBB1_16 LBB1_16: 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 "z" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _putz ## -- Begin function putz .p2align 4, 0x90 _putz: ## @putz .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, %edi leaq L_.str(%rip), %rsi movl $1, %edx callq _write xorl %eax, %eax popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl $0, -4(%rbp) movl %edi, -8(%rbp) movq %rsi, -16(%rbp) movl $-1, -20(%rbp) movl $0, -24(%rbp) cmpl $2, -8(%rbp) jl LBB1_15 ## %bb.1: jmp LBB1_2 LBB1_2: ## =>This Loop Header: Depth=1 ## Child Loop BB1_6 Depth 2 movq -16(%rbp), %rax movl -24(%rbp), %ecx addl $1, %ecx movl %ecx, -24(%rbp) movslq %ecx, %rcx cmpq $0, (%rax,%rcx,8) je LBB1_14 ## %bb.3: ## in Loop: Header=BB1_2 Depth=1 callq _putz cmpl $0, %eax jne LBB1_5 ## %bb.4: jmp LBB1_14 LBB1_5: ## in Loop: Header=BB1_2 Depth=1 jmp LBB1_6 LBB1_6: ## Parent Loop BB1_2 Depth=1 ## => This Inner Loop Header: Depth=2 movq -16(%rbp), %rax movslq -24(%rbp), %rcx movq (%rax,%rcx,8), %rax movl -20(%rbp), %ecx addl $1, %ecx movl %ecx, -20(%rbp) movslq %ecx, %rcx cmpb $0, (%rax,%rcx) je LBB1_13 ## %bb.7: ## in Loop: Header=BB1_6 Depth=2 movq -16(%rbp), %rax movslq -24(%rbp), %rcx movq (%rax,%rcx,8), %rax movslq -20(%rbp), %rcx movsbl (%rax,%rcx), %eax cmpl $122, %eax jne LBB1_9 ## %bb.8: ## in Loop: Header=BB1_6 Depth=2 callq _putz jmp LBB1_12 LBB1_9: ## in Loop: Header=BB1_6 Depth=2 movq -16(%rbp), %rax movslq -24(%rbp), %rcx movq (%rax,%rcx,8), %rax movslq -20(%rbp), %rcx movsbl (%rax,%rcx), %eax cmpl $122, %eax je LBB1_11 ## %bb.10: ## in Loop: Header=BB1_6 Depth=2 callq _putz LBB1_11: ## in Loop: Header=BB1_6 Depth=2 jmp LBB1_12 LBB1_12: ## in Loop: Header=BB1_6 Depth=2 jmp LBB1_6 LBB1_13: ## in Loop: Header=BB1_2 Depth=1 jmp LBB1_2 LBB1_14: jmp LBB1_16 LBB1_15: callq _putz LBB1_16: xorl %eax, %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "z" .subsections_via_symbols
the_stack_data/151706354.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/976114.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .comm _array,1,0 ; @array .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .comm _array,1,0 ## @array .subsections_via_symbols
the_stack_data/73574589.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _fun0 ; -- Begin function fun0 .p2align 2 _fun0: ; @fun0 .cfi_startproc ; %bb.0: stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill .cfi_def_cfa_offset 16 mov x29, sp .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldp x29, x30, [sp], #16 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .globl _fun1 ; -- Begin function fun1 .p2align 2 _fun1: ; @fun1 .cfi_startproc ; %bb.0: stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill .cfi_def_cfa_offset 16 mov x29, sp .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf ldp x29, x30, [sp], #16 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .globl _fun2 ; -- Begin function fun2 .p2align 2 _fun2: ; @fun2 .cfi_startproc ; %bb.0: stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill .cfi_def_cfa_offset 16 mov x29, sp .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf ldp x29, x30, [sp], #16 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .globl _fun3 ; -- Begin function fun3 .p2align 2 _fun3: ; @fun3 .cfi_startproc ; %bb.0: stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill .cfi_def_cfa_offset 16 mov x29, sp .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf ldp x29, x30, [sp], #16 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #80 .cfi_def_cfa_offset 80 stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp, #64 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] str wzr, [sp, #12] adrp x8, l___const.main.funcs@PAGE add x8, x8, l___const.main.funcs@PAGEOFF ldr q0, [x8] str q0, [sp, #16] ldr q0, [x8, #16] str q0, [sp, #32] bl _showmenu strb w0, [sp, #11] ldrsb w8, [sp, #11] subs w8, w8, #97 ; kill: def $x8 killed $w8 str x8, [sp] ; 8-byte Folded Spill subs x8, x8, #16 cset w8, hi tbnz w8, #0, LBB4_7 ; %bb.1: ldr x11, [sp] ; 8-byte Folded Reload adrp x10, lJTI4_0@PAGE add x10, x10, lJTI4_0@PAGEOFF Ltmp0: adr x8, Ltmp0 ldrsw x9, [x10, x11, lsl #2] add x8, x8, x9 br x8 LBB4_2: ldr x8, [sp, #16] blr x8 b LBB4_8 LBB4_3: ldr x8, [sp, #24] blr x8 b LBB4_8 LBB4_4: ldr x8, [sp, #32] blr x8 b LBB4_8 LBB4_5: ldr x8, [sp, #40] blr x8 b LBB4_8 LBB4_6: b LBB4_7 LBB4_7: adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf b LBB4_8 LBB4_8: adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@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, LBB4_10 b LBB4_9 LBB4_9: bl ___stack_chk_fail LBB4_10: mov w0, #0 ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc .p2align 2 lJTI4_0: .long LBB4_2-Ltmp0 .long LBB4_3-Ltmp0 .long LBB4_4-Ltmp0 .long LBB4_5-Ltmp0 .long LBB4_7-Ltmp0 .long LBB4_7-Ltmp0 .long LBB4_7-Ltmp0 .long LBB4_7-Ltmp0 .long LBB4_7-Ltmp0 .long LBB4_7-Ltmp0 .long LBB4_7-Ltmp0 .long LBB4_7-Ltmp0 .long LBB4_7-Ltmp0 .long LBB4_7-Ltmp0 .long LBB4_7-Ltmp0 .long LBB4_7-Ltmp0 .long LBB4_6-Ltmp0 ; -- End function .globl _showmenu ; -- Begin function showmenu .p2align 2 _showmenu: ; @showmenu .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _printf adrp x0, l_.str.7@PAGE add x0, x0, l_.str.7@PAGEOFF bl _printf adrp x0, l_.str.8@PAGE add x0, x0, l_.str.8@PAGEOFF bl _printf adrp x0, l_.str.9@PAGE add x0, x0, l_.str.9@PAGEOFF bl _printf bl _getchar sturb w0, [x29, #-1] bl _eatline b LBB5_1 LBB5_1: ; =>This Inner Loop Header: Depth=1 ldursb w1, [x29, #-1] adrp x0, l_.str.10@PAGE add x0, x0, l_.str.10@PAGEOFF bl _strchr subs x8, x0, #0 cset w8, ne tbnz w8, #0, LBB5_3 b LBB5_2 LBB5_2: ; in Loop: Header=BB5_1 Depth=1 adrp x0, l_.str.11@PAGE add x0, x0, l_.str.11@PAGEOFF bl _printf bl _getchar sturb w0, [x29, #-1] bl _eatline b LBB5_1 LBB5_3: ldursb w0, [x29, #-1] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _eatline ; -- Begin function eatline .p2align 2 _eatline: ; @eatline .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 b LBB6_1 LBB6_1: ; =>This Inner Loop Header: Depth=1 bl _getchar subs w8, w0, #10 cset w8, eq tbnz w8, #0, LBB6_3 b LBB6_2 LBB6_2: ; in Loop: Header=BB6_1 Depth=1 b LBB6_1 LBB6_3: ldp x29, x30, [sp], #16 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Oh, this fun0\n" l_.str.1: ; @.str.1 .asciz "Oh, this fun1\n" l_.str.2: ; @.str.2 .asciz "Oh, this fun2\n" l_.str.3: ; @.str.3 .asciz "Oh, this fun3\n" .section __DATA,__const .p2align 3 ; @__const.main.funcs l___const.main.funcs: .quad _fun0 .quad _fun1 .quad _fun2 .quad _fun3 .section __TEXT,__cstring,cstring_literals l_.str.4: ; @.str.4 .asciz "Bye\n" l_.str.5: ; @.str.5 .asciz "\n---------------------------------------------\n" l_.str.6: ; @.str.6 .asciz "Enter choice:\n" l_.str.7: ; @.str.7 .asciz "a... b...\n" l_.str.8: ; @.str.8 .asciz "c... d...\n" l_.str.9: ; @.str.9 .asciz "q. quit\n" l_.str.10: ; @.str.10 .asciz "abcdq" l_.str.11: ; @.str.11 .asciz "Please enter a, b, c, d or q:" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _fun0 ## -- Begin function fun0 .p2align 4, 0x90 _fun0: ## @fun0 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq L_.str(%rip), %rdi movb $0, %al callq _printf popq %rbp retq .cfi_endproc ## -- End function .globl _fun1 ## -- Begin function fun1 .p2align 4, 0x90 _fun1: ## @fun1 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf popq %rbp retq .cfi_endproc ## -- End function .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 leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf popq %rbp retq .cfi_endproc ## -- End function .globl _fun3 ## -- Begin function fun3 .p2align 4, 0x90 _fun3: ## @fun3 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf 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) movaps l___const.main.funcs+16(%rip), %xmm0 movaps %xmm0, -32(%rbp) movaps l___const.main.funcs(%rip), %xmm0 movaps %xmm0, -48(%rbp) callq _showmenu movb %al, -53(%rbp) movsbl -53(%rbp), %eax addl $-97, %eax movl %eax, %ecx movq %rcx, -64(%rbp) ## 8-byte Spill subl $16, %eax ja LBB4_6 ## %bb.10: movq -64(%rbp), %rax ## 8-byte Reload leaq LJTI4_0(%rip), %rcx movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax LBB4_1: movb $0, %al callq *-48(%rbp) jmp LBB4_7 LBB4_2: movb $0, %al callq *-40(%rbp) jmp LBB4_7 LBB4_3: movb $0, %al callq *-32(%rbp) jmp LBB4_7 LBB4_4: movb $0, %al callq *-24(%rbp) jmp LBB4_7 LBB4_5: jmp LBB4_6 LBB4_6: leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf LBB4_7: leaq L_.str.5(%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 LBB4_9 ## %bb.8: xorl %eax, %eax addq $64, %rsp popq %rbp retq LBB4_9: callq ___stack_chk_fail ud2 .cfi_endproc .p2align 2, 0x90 .data_region jt32 .set L4_0_set_1, LBB4_1-LJTI4_0 .set L4_0_set_2, LBB4_2-LJTI4_0 .set L4_0_set_3, LBB4_3-LJTI4_0 .set L4_0_set_4, LBB4_4-LJTI4_0 .set L4_0_set_6, LBB4_6-LJTI4_0 .set L4_0_set_5, LBB4_5-LJTI4_0 LJTI4_0: .long L4_0_set_1 .long L4_0_set_2 .long L4_0_set_3 .long L4_0_set_4 .long L4_0_set_6 .long L4_0_set_6 .long L4_0_set_6 .long L4_0_set_6 .long L4_0_set_6 .long L4_0_set_6 .long L4_0_set_6 .long L4_0_set_6 .long L4_0_set_6 .long L4_0_set_6 .long L4_0_set_6 .long L4_0_set_6 .long L4_0_set_5 .end_data_region ## -- End function .globl _showmenu ## -- Begin function showmenu .p2align 4, 0x90 _showmenu: ## @showmenu .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.6(%rip), %rdi movb $0, %al callq _printf leaq L_.str.7(%rip), %rdi movb $0, %al callq _printf leaq L_.str.8(%rip), %rdi movb $0, %al callq _printf leaq L_.str.9(%rip), %rdi movb $0, %al callq _printf callq _getchar ## kill: def $al killed $al killed $eax movb %al, -1(%rbp) callq _eatline LBB5_1: ## =>This Inner Loop Header: Depth=1 movsbl -1(%rbp), %esi leaq L_.str.10(%rip), %rdi callq _strchr cmpq $0, %rax jne LBB5_3 ## %bb.2: ## in Loop: Header=BB5_1 Depth=1 leaq L_.str.11(%rip), %rdi movb $0, %al callq _printf callq _getchar ## kill: def $al killed $al killed $eax movb %al, -1(%rbp) callq _eatline jmp LBB5_1 LBB5_3: movsbl -1(%rbp), %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _eatline ## -- Begin function eatline .p2align 4, 0x90 _eatline: ## @eatline .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp jmp LBB6_1 LBB6_1: ## =>This Inner Loop Header: Depth=1 callq _getchar cmpl $10, %eax je LBB6_3 ## %bb.2: ## in Loop: Header=BB6_1 Depth=1 jmp LBB6_1 LBB6_3: popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Oh, this fun0\n" L_.str.1: ## @.str.1 .asciz "Oh, this fun1\n" L_.str.2: ## @.str.2 .asciz "Oh, this fun2\n" L_.str.3: ## @.str.3 .asciz "Oh, this fun3\n" .section __DATA,__const .p2align 4 ## @__const.main.funcs l___const.main.funcs: .quad _fun0 .quad _fun1 .quad _fun2 .quad _fun3 .section __TEXT,__cstring,cstring_literals L_.str.4: ## @.str.4 .asciz "Bye\n" L_.str.5: ## @.str.5 .asciz "\n---------------------------------------------\n" L_.str.6: ## @.str.6 .asciz "Enter choice:\n" L_.str.7: ## @.str.7 .asciz "a... b...\n" L_.str.8: ## @.str.8 .asciz "c... d...\n" L_.str.9: ## @.str.9 .asciz "q. quit\n" L_.str.10: ## @.str.10 .asciz "abcdq" L_.str.11: ## @.str.11 .asciz "Please enter a, b, c, d or q:" .subsections_via_symbols
the_stack_data/57951314.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _foo ; -- Begin function foo .p2align 2 _foo: ; @foo .cfi_startproc ; %bb.0: ret .cfi_endproc ; -- End function .globl _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 _foo 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 _foo ## -- Begin function foo .p2align 4, 0x90 _foo: ## @foo .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp popq %rbp retq .cfi_endproc ## -- End function .globl _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 _foo xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/192330469.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov x9, sp sub x8, x29, #8 str x8, [x9] sub x8, x29, #12 str x8, [x9, #8] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf ldur w8, [x29, #-8] ldur w9, [x29, #-12] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: ldur w9, [x29, #-8] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf b LBB0_3 LBB0_2: ldur w9, [x29, #-12] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf b LBB0_3 LBB0_3: mov w0, #0 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "\nEnter the of a and b: " l_.str.1: ; @.str.1 .asciz "%d%d" l_.str.2: ; @.str.2 .asciz "\nThe number %d is Bigger." .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 leaq -12(%rbp), %rdx movb $0, %al callq _scanf movl -8(%rbp), %eax cmpl -12(%rbp), %eax jle LBB0_2 ## %bb.1: movl -8(%rbp), %esi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf jmp LBB0_3 LBB0_2: movl -12(%rbp), %esi 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 "\nEnter the of a and b: " L_.str.1: ## @.str.1 .asciz "%d%d" L_.str.2: ## @.str.2 .asciz "\nThe number %d is Bigger." .subsections_via_symbols
the_stack_data/797234.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, #-56] str wzr, [sp, #60] str wzr, [sp, #44] str wzr, [sp, #64] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #64] subs w8, w8, #11 cset w8, ge tbnz w8, #0, LBB0_4 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldrsw x10, [sp, #64] sub x9, x29, #52 mov w8, #0 str w8, [x9, x10, lsl #2] b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #64] add w8, w8, #1 str w8, [sp, #64] b LBB0_1 LBB0_4: b LBB0_5 LBB0_5: ; =>This Inner Loop Header: Depth=1 bl _getchar stur w0, [x29, #-60] adds w8, w0, #1 cset w8, eq tbnz w8, #0, LBB0_17 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_5 Depth=1 ldur w8, [x29, #-60] subs w8, w8, #32 cset w8, eq tbnz w8, #0, LBB0_9 b LBB0_7 LBB0_7: ; in Loop: Header=BB0_5 Depth=1 ldur w8, [x29, #-60] subs w8, w8, #9 cset w8, eq tbnz w8, #0, LBB0_9 b LBB0_8 LBB0_8: ; in Loop: Header=BB0_5 Depth=1 ldur w8, [x29, #-60] subs w8, w8, #10 cset w8, ne tbnz w8, #0, LBB0_15 b LBB0_9 LBB0_9: ; in Loop: Header=BB0_5 Depth=1 ldr w8, [sp, #60] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB0_14 b LBB0_10 LBB0_10: ; in Loop: Header=BB0_5 Depth=1 ldr w8, [sp, #60] subs w8, w8, #11 cset w8, ge tbnz w8, #0, LBB0_12 b LBB0_11 LBB0_11: ; in Loop: Header=BB0_5 Depth=1 ldrsw x9, [sp, #60] sub x8, x29, #52 add x9, x8, x9, lsl #2 ldr w8, [x9] add w8, w8, #1 str w8, [x9] b LBB0_13 LBB0_12: ; in Loop: Header=BB0_5 Depth=1 ldr w8, [sp, #44] add w8, w8, #1 str w8, [sp, #44] b LBB0_13 LBB0_13: ; in Loop: Header=BB0_5 Depth=1 str wzr, [sp, #60] b LBB0_14 LBB0_14: ; in Loop: Header=BB0_5 Depth=1 b LBB0_16 LBB0_15: ; in Loop: Header=BB0_5 Depth=1 ldr w8, [sp, #60] add w8, w8, #1 str w8, [sp, #60] b LBB0_16 LBB0_16: ; in Loop: Header=BB0_5 Depth=1 b LBB0_5 LBB0_17: str wzr, [sp, #48] mov w8, #1 str w8, [sp, #64] b LBB0_18 LBB0_18: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #64] subs w8, w8, #11 cset w8, ge tbnz w8, #0, LBB0_23 b LBB0_19 LBB0_19: ; in Loop: Header=BB0_18 Depth=1 ldrsw x9, [sp, #64] sub x8, x29, #52 ldr w8, [x8, x9, lsl #2] ldr w9, [sp, #48] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB0_21 b LBB0_20 LBB0_20: ; in Loop: Header=BB0_18 Depth=1 ldrsw x9, [sp, #64] sub x8, x29, #52 ldr w8, [x8, x9, lsl #2] str w8, [sp, #48] b LBB0_21 LBB0_21: ; in Loop: Header=BB0_18 Depth=1 b LBB0_22 LBB0_22: ; in Loop: Header=BB0_18 Depth=1 ldr w8, [sp, #64] add w8, w8, #1 str w8, [sp, #64] b LBB0_18 LBB0_23: mov w8, #1 str w8, [sp, #64] b LBB0_24 LBB0_24: ; =>This Loop Header: Depth=1 ; Child Loop BB0_30 Depth 2 ldr w8, [sp, #64] subs w8, w8, #11 cset w8, ge tbnz w8, #0, LBB0_34 b LBB0_25 LBB0_25: ; in Loop: Header=BB0_24 Depth=1 ldr w8, [sp, #64] ; implicit-def: $x10 mov x10, x8 ldrsw x9, [sp, #64] sub x8, x29, #52 str x8, [sp, #32] ; 8-byte Folded Spill ldr w9, [x8, x9, lsl #2] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldr x8, [sp, #32] ; 8-byte Folded Reload ldrsw x9, [sp, #64] ldr w8, [x8, x9, lsl #2] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB0_29 b LBB0_26 LBB0_26: ; in Loop: Header=BB0_24 Depth=1 ldrsw x9, [sp, #64] sub x8, x29, #52 ldr w8, [x8, x9, lsl #2] mov w9, #15 mul w8, w8, w9 ldr w9, [sp, #48] sdiv w8, w8, w9 str w8, [sp, #52] subs w8, w8, #0 cset w8, gt tbnz w8, #0, LBB0_28 b LBB0_27 LBB0_27: ; in Loop: Header=BB0_24 Depth=1 mov w8, #1 str w8, [sp, #52] b LBB0_28 LBB0_28: ; in Loop: Header=BB0_24 Depth=1 b LBB0_29 LBB0_29: ; in Loop: Header=BB0_24 Depth=1 b LBB0_30 LBB0_30: ; Parent Loop BB0_24 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #52] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB0_32 b LBB0_31 LBB0_31: ; in Loop: Header=BB0_30 Depth=2 mov w0, #42 bl _putchar ldr w8, [sp, #52] subs w8, w8, #1 str w8, [sp, #52] b LBB0_30 LBB0_32: ; in Loop: Header=BB0_24 Depth=1 mov w0, #10 bl _putchar b LBB0_33 LBB0_33: ; in Loop: Header=BB0_24 Depth=1 ldr w8, [sp, #64] add w8, w8, #1 str w8, [sp, #64] b LBB0_24 LBB0_34: ldr w8, [sp, #44] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB0_36 b LBB0_35 LBB0_35: ldr w9, [sp, #44] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] mov x8, #11 str x8, [x9, #8] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf b LBB0_36 LBB0_36: ldur w8, [x29, #-56] str w8, [sp, #28] ; 4-byte Folded Spill ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_38 b LBB0_37 LBB0_37: bl ___stack_chk_fail LBB0_38: ldr w0, [sp, #28] ; 4-byte Folded Reload ldp x29, x30, [sp, #128] ; 16-byte Folded Reload add sp, sp, #144 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%5d - %5d: " l_.str.1: ; @.str.1 .asciz "there are %d words >= %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 $112, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -68(%rbp) movl $0, -80(%rbp) movl $0, -96(%rbp) movl $0, -76(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 cmpl $11, -76(%rbp) jge LBB0_4 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movslq -76(%rbp), %rax movl $0, -64(%rbp,%rax,4) ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movl -76(%rbp), %eax addl $1, %eax movl %eax, -76(%rbp) jmp LBB0_1 LBB0_4: jmp LBB0_5 LBB0_5: ## =>This Inner Loop Header: Depth=1 callq _getchar movl %eax, -72(%rbp) cmpl $-1, %eax je LBB0_17 ## %bb.6: ## in Loop: Header=BB0_5 Depth=1 cmpl $32, -72(%rbp) je LBB0_9 ## %bb.7: ## in Loop: Header=BB0_5 Depth=1 cmpl $9, -72(%rbp) je LBB0_9 ## %bb.8: ## in Loop: Header=BB0_5 Depth=1 cmpl $10, -72(%rbp) jne LBB0_15 LBB0_9: ## in Loop: Header=BB0_5 Depth=1 cmpl $0, -80(%rbp) jle LBB0_14 ## %bb.10: ## in Loop: Header=BB0_5 Depth=1 cmpl $11, -80(%rbp) jge LBB0_12 ## %bb.11: ## in Loop: Header=BB0_5 Depth=1 movslq -80(%rbp), %rax movl -64(%rbp,%rax,4), %ecx addl $1, %ecx movl %ecx, -64(%rbp,%rax,4) jmp LBB0_13 LBB0_12: ## in Loop: Header=BB0_5 Depth=1 movl -96(%rbp), %eax addl $1, %eax movl %eax, -96(%rbp) LBB0_13: ## in Loop: Header=BB0_5 Depth=1 movl $0, -80(%rbp) LBB0_14: ## in Loop: Header=BB0_5 Depth=1 jmp LBB0_16 LBB0_15: ## in Loop: Header=BB0_5 Depth=1 movl -80(%rbp), %eax addl $1, %eax movl %eax, -80(%rbp) LBB0_16: ## in Loop: Header=BB0_5 Depth=1 jmp LBB0_5 LBB0_17: movl $0, -92(%rbp) movl $1, -76(%rbp) LBB0_18: ## =>This Inner Loop Header: Depth=1 cmpl $11, -76(%rbp) jge LBB0_23 ## %bb.19: ## in Loop: Header=BB0_18 Depth=1 movslq -76(%rbp), %rax movl -64(%rbp,%rax,4), %eax cmpl -92(%rbp), %eax jle LBB0_21 ## %bb.20: ## in Loop: Header=BB0_18 Depth=1 movslq -76(%rbp), %rax movl -64(%rbp,%rax,4), %eax movl %eax, -92(%rbp) LBB0_21: ## in Loop: Header=BB0_18 Depth=1 jmp LBB0_22 LBB0_22: ## in Loop: Header=BB0_18 Depth=1 movl -76(%rbp), %eax addl $1, %eax movl %eax, -76(%rbp) jmp LBB0_18 LBB0_23: movl $1, -76(%rbp) LBB0_24: ## =>This Loop Header: Depth=1 ## Child Loop BB0_30 Depth 2 cmpl $11, -76(%rbp) jge LBB0_34 ## %bb.25: ## in Loop: Header=BB0_24 Depth=1 movl -76(%rbp), %esi movslq -76(%rbp), %rax movl -64(%rbp,%rax,4), %edx leaq L_.str(%rip), %rdi movb $0, %al callq _printf movslq -76(%rbp), %rax cmpl $0, -64(%rbp,%rax,4) jle LBB0_29 ## %bb.26: ## in Loop: Header=BB0_24 Depth=1 movslq -76(%rbp), %rax imull $15, -64(%rbp,%rax,4), %eax cltd idivl -92(%rbp) movl %eax, -88(%rbp) cmpl $0, %eax jg LBB0_28 ## %bb.27: ## in Loop: Header=BB0_24 Depth=1 movl $1, -88(%rbp) LBB0_28: ## in Loop: Header=BB0_24 Depth=1 jmp LBB0_29 LBB0_29: ## in Loop: Header=BB0_24 Depth=1 jmp LBB0_30 LBB0_30: ## Parent Loop BB0_24 Depth=1 ## => This Inner Loop Header: Depth=2 cmpl $0, -88(%rbp) jle LBB0_32 ## %bb.31: ## in Loop: Header=BB0_30 Depth=2 movl $42, %edi callq _putchar movl -88(%rbp), %eax addl $-1, %eax movl %eax, -88(%rbp) jmp LBB0_30 LBB0_32: ## in Loop: Header=BB0_24 Depth=1 movl $10, %edi callq _putchar ## %bb.33: ## in Loop: Header=BB0_24 Depth=1 movl -76(%rbp), %eax addl $1, %eax movl %eax, -76(%rbp) jmp LBB0_24 LBB0_34: cmpl $0, -96(%rbp) jle LBB0_36 ## %bb.35: movl -96(%rbp), %esi leaq L_.str.1(%rip), %rdi movl $11, %edx movb $0, %al callq _printf LBB0_36: movl -68(%rbp), %eax movl %eax, -100(%rbp) ## 4-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_38 ## %bb.37: movl -100(%rbp), %eax ## 4-byte Reload addq $112, %rsp popq %rbp retq LBB0_38: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%5d - %5d: " L_.str.1: ## @.str.1 .asciz "there are %d words >= %d\n" .subsections_via_symbols
the_stack_data/70448959.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #112 .cfi_def_cfa_offset 112 stp x29, x30, [sp, #96] ; 16-byte Folded Spill add x29, sp, #96 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] stur wzr, [x29, #-36] stur w0, [x29, #-40] str x1, [sp, #48] adrp x8, l___const.main.a@PAGE add x8, x8, l___const.main.a@PAGEOFF ldr q0, [x8] stur q0, [x29, #-32] ldr w8, [x8, #16] stur w8, [x29, #-16] mov w8, #5 str w8, [sp, #44] mov w8, #3 str w8, [sp, #40] mov w8, #-1 str w8, [sp, #36] str wzr, [sp, #32] b LBB0_1 LBB0_1: ; =>This Loop Header: Depth=1 ; Child Loop BB0_3 Depth 2 ldr w8, [sp, #32] ldr w9, [sp, #44] ldr w10, [sp, #40] subs w9, w9, w10 subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_12 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #32] str w8, [sp, #28] b LBB0_3 LBB0_3: ; Parent Loop BB0_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #28] ldr w9, [sp, #32] ldr w10, [sp, #40] add w9, w9, w10 subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_10 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_3 Depth=2 ldrsw x8, [sp, #28] sub x9, x29, #32 ldr w8, [x9, x8, lsl #2] ldrsw x10, [sp, #32] ldr w9, [x9, x10, lsl #2] subs w8, w8, w9 ldr w9, [sp, #36] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_3 Depth=2 ldrsw x8, [sp, #28] sub x9, x29, #32 ldr w8, [x9, x8, lsl #2] ldrsw x10, [sp, #32] ldr w9, [x9, x10, lsl #2] subs w8, w8, w9 str w8, [sp, #36] b LBB0_6 LBB0_6: ; in Loop: Header=BB0_3 Depth=2 ldrsw x8, [sp, #28] sub x9, x29, #32 ldr w8, [x9, x8, lsl #2] ldrsw x10, [sp, #32] 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_3 Depth=2 ldr w8, [sp, #28] subs w8, w8, #1 str w8, [sp, #32] b LBB0_8 LBB0_8: ; in Loop: Header=BB0_3 Depth=2 ldr w8, [sp, #32] ; implicit-def: $x10 mov x10, x8 ldr w9, [sp, #36] ; 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_9 LBB0_9: ; in Loop: Header=BB0_3 Depth=2 ldr w8, [sp, #28] add w8, w8, #1 str w8, [sp, #28] b LBB0_3 LBB0_10: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #32] ; implicit-def: $x10 mov x10, x8 ldrsw x9, [sp, #32] sub x8, x29, #32 ldr w9, [x8, x9, lsl #2] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf b LBB0_11 LBB0_11: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #32] add w8, w8, #1 str w8, [sp, #32] b LBB0_1 LBB0_12: ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_14 b LBB0_13 LBB0_13: bl ___stack_chk_fail LBB0_14: mov w0, #0 ldp x29, x30, [sp, #96] ; 16-byte Folded Reload add sp, sp, #112 ret .cfi_endproc ; -- End function .section __TEXT,__const .p2align 2 ; @__const.main.a l___const.main.a: .long 10 ; 0xa .long 11 ; 0xb .long 7 ; 0x7 .long 10 ; 0xa .long 6 ; 0x6 .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "The value of i is %d, max is %d \n" l_.str.1: ; @.str.1 .asciz "When to buy, Day %d at price %d\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $80, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -36(%rbp) movl %edi, -40(%rbp) movq %rsi, -48(%rbp) movq l___const.main.a(%rip), %rax movq %rax, -32(%rbp) movq l___const.main.a+8(%rip), %rax movq %rax, -24(%rbp) movl l___const.main.a+16(%rip), %eax movl %eax, -16(%rbp) movl $5, -52(%rbp) movl $3, -56(%rbp) movl $-1, -60(%rbp) movl $0, -64(%rbp) LBB0_1: ## =>This Loop Header: Depth=1 ## Child Loop BB0_3 Depth 2 movl -64(%rbp), %eax movl -52(%rbp), %ecx subl -56(%rbp), %ecx cmpl %ecx, %eax jge LBB0_12 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl -64(%rbp), %eax movl %eax, -68(%rbp) LBB0_3: ## Parent Loop BB0_1 Depth=1 ## => This Inner Loop Header: Depth=2 movl -68(%rbp), %eax movl -64(%rbp), %ecx addl -56(%rbp), %ecx cmpl %ecx, %eax jge LBB0_10 ## %bb.4: ## in Loop: Header=BB0_3 Depth=2 movslq -68(%rbp), %rax movl -32(%rbp,%rax,4), %eax movslq -64(%rbp), %rcx subl -32(%rbp,%rcx,4), %eax cmpl -60(%rbp), %eax jle LBB0_6 ## %bb.5: ## in Loop: Header=BB0_3 Depth=2 movslq -68(%rbp), %rax movl -32(%rbp,%rax,4), %eax movslq -64(%rbp), %rcx subl -32(%rbp,%rcx,4), %eax movl %eax, -60(%rbp) LBB0_6: ## in Loop: Header=BB0_3 Depth=2 movslq -68(%rbp), %rax movl -32(%rbp,%rax,4), %eax movslq -64(%rbp), %rcx cmpl -32(%rbp,%rcx,4), %eax jge LBB0_8 ## %bb.7: ## in Loop: Header=BB0_3 Depth=2 movl -68(%rbp), %eax subl $1, %eax movl %eax, -64(%rbp) LBB0_8: ## in Loop: Header=BB0_3 Depth=2 movl -64(%rbp), %esi movl -60(%rbp), %edx leaq L_.str(%rip), %rdi movb $0, %al callq _printf ## %bb.9: ## in Loop: Header=BB0_3 Depth=2 movl -68(%rbp), %eax addl $1, %eax movl %eax, -68(%rbp) jmp LBB0_3 LBB0_10: ## in Loop: Header=BB0_1 Depth=1 movl -64(%rbp), %esi movslq -64(%rbp), %rax movl -32(%rbp,%rax,4), %edx leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf ## %bb.11: ## in Loop: Header=BB0_1 Depth=1 movl -64(%rbp), %eax addl $1, %eax movl %eax, -64(%rbp) jmp LBB0_1 LBB0_12: movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_14 ## %bb.13: xorl %eax, %eax addq $80, %rsp popq %rbp retq LBB0_14: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__const .p2align 4 ## @__const.main.a l___const.main.a: .long 10 ## 0xa .long 11 ## 0xb .long 7 ## 0x7 .long 10 ## 0xa .long 6 ## 0x6 .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "The value of i is %d, max is %d \n" L_.str.1: ## @.str.1 .asciz "When to buy, Day %d at price %d\n" .subsections_via_symbols
the_stack_data/636084.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _strcopy ; -- Begin function strcopy .p2align 2 _strcopy: ; @strcopy .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] str x1, [sp] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #8] add x9, x8, #1 str x9, [sp, #8] ldrb w8, [x8] ldr x9, [sp] add x10, x9, #1 str x10, [sp] strb w8, [x9] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 b LBB0_1 LBB0_3: 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 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov x9, sp sub x8, x29, #33 str x8, [sp, #8] ; 8-byte Folded Spill str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf ldr x1, [sp, #8] ; 8-byte Folded Reload add x0, sp, #22 bl _strcopy adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: bl ___stack_chk_fail LBB1_2: ldp x29, x30, [sp, #80] ; 16-byte Folded Reload add sp, sp, #96 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Enter a string: " l_.str.1: ; @.str.1 .asciz "%s" l_.str.2: ; @.str.2 .asciz "Second string is %s." .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _strcopy ## -- Begin function strcopy .p2align 4, 0x90 _strcopy: ## @strcopy .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) LBB0_1: ## =>This Inner Loop Header: Depth=1 movq -8(%rbp), %rax movq %rax, %rcx addq $1, %rcx movq %rcx, -8(%rbp) movb (%rax), %al movq -16(%rbp), %rcx movq %rcx, %rdx addq $1, %rdx movq %rdx, -16(%rbp) movb %al, (%rcx) cmpb $0, %al je LBB0_3 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_1 LBB0_3: 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) leaq L_.str(%rip), %rdi movb $0, %al callq _printf leaq -48(%rbp), %rsi leaq L_.str.1(%rip), %rdi movb $0, %al callq _scanf leaq -80(%rbp), %rdi leaq -48(%rbp), %rsi callq _strcopy leaq L_.str.2(%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: addq $80, %rsp popq %rbp retq LBB1_2: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Enter a string: " L_.str.1: ## @.str.1 .asciz "%s" L_.str.2: ## @.str.2 .asciz "Second string is %s." .subsections_via_symbols
the_stack_data/93887976.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _usage ; -- Begin function usage .p2align 2 _usage: ; @usage .cfi_startproc ; %bb.0: 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, ___stdoutp@GOTPAGE ldr x8, [x8, ___stdoutp@GOTPAGEOFF] str x8, [sp, #16] ; 8-byte Folded Spill stur x0, [x29, #-8] adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] ldr x0, [x8] ldur x8, [x29, #-8] mov x9, sp str x8, [x9] adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF bl _fprintf ldr x8, [sp, #16] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF bl _fprintf ldr x8, [sp, #16] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.2@PAGE add x1, x1, l_.str.2@PAGEOFF bl _fprintf ldr x8, [sp, #16] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.3@PAGE add x1, x1, l_.str.3@PAGEOFF bl _fprintf ldr x8, [sp, #16] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.4@PAGE add x1, x1, l_.str.4@PAGEOFF bl _fprintf mov w0, #1 bl _exit .cfi_endproc ; -- End function .globl _finish ; -- Begin function finish .p2align 2 _finish: ; @finish .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 w0, [x29, #-4] adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] str x8, [sp, #16] ; 8-byte Folded Spill ldr x0, [x8] ldur w9, [x29, #-4] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x1, l_.str.5@PAGE add x1, x1, l_.str.5@PAGEOFF bl _fprintf ldr x8, [sp, #16] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.6@PAGE add x1, x1, l_.str.6@PAGEOFF bl _fprintf adrp x8, _pid2@GOTPAGE ldr x8, [x8, _pid2@GOTPAGEOFF] str x8, [sp, #24] ; 8-byte Folded Spill ldr w0, [x8] mov w1, #2 stur w1, [x29, #-28] ; 4-byte Folded Spill bl _kill ldr x8, [sp, #24] ; 8-byte Folded Reload ldr w0, [x8] mov x1, #0 stur x1, [x29, #-16] ; 8-byte Folded Spill mov w2, #0 stur w2, [x29, #-8] ; 4-byte Folded Spill bl _waitpid ldur w1, [x29, #-28] ; 4-byte Folded Reload adrp x8, _pid1@GOTPAGE ldr x8, [x8, _pid1@GOTPAGEOFF] stur x8, [x29, #-24] ; 8-byte Folded Spill ldr w0, [x8] bl _kill ldur x8, [x29, #-24] ; 8-byte Folded Reload ldur x1, [x29, #-16] ; 8-byte Folded Reload ldur w2, [x29, #-8] ; 4-byte Folded Reload ldr w0, [x8] bl _waitpid adrp x8, _pathpip@GOTPAGE ldr x8, [x8, _pathpip@GOTPAGEOFF] ldr x0, [x8] bl _remove ldur w0, [x29, #-8] ; 4-byte Folded Reload bl _exit .cfi_endproc ; -- End function .globl _getpathpip ; -- Begin function getpathpip .p2align 2 _getpathpip: ; @getpathpip .cfi_startproc ; %bb.0: stp x28, x27, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w27, -24 .cfi_offset w28, -32 mov w9, #4352 adrp x16, ___chkstk_darwin@GOTPAGE ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF] blr x16 sub sp, sp, #1, lsl #12 ; =4096 sub sp, sp, #256 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] str x0, [sp, #240] str wzr, [sp, #236] str wzr, [sp, #228] adrp x8, l_.str.7@PAGE add x8, x8, l_.str.7@PAGEOFF str x8, [sp, #216] adrp x8, l_.str.8@PAGE add x8, x8, l_.str.8@PAGEOFF str x8, [sp, #208] adrp x0, l_.str.9@PAGE add x0, x0, l_.str.9@PAGEOFF add x1, sp, #248 mov x2, #4096 bl _readlink b LBB2_1 LBB2_1: ; =>This Loop Header: Depth=1 ; Child Loop BB2_3 Depth 2 ldrsw x9, [sp, #236] add x8, sp, #248 ldrsb w8, [x8, x9] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB2_8 b LBB2_2 LBB2_2: ; in Loop: Header=BB2_1 Depth=1 str wzr, [sp, #232] b LBB2_3 LBB2_3: ; Parent Loop BB2_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldrsw x9, [sp, #236] mov x8, x9 add w8, w8, #1 str w8, [sp, #236] add x8, sp, #248 ldrsb w8, [x8, x9] ldr x9, [sp, #216] ldrsw x10, [sp, #232] mov x11, x10 add w11, w11, #1 str w11, [sp, #232] ldrsb w9, [x9, x10] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB2_5 b LBB2_4 LBB2_4: ; in Loop: Header=BB2_3 Depth=2 b LBB2_3 LBB2_5: ; in Loop: Header=BB2_1 Depth=1 ldr x8, [sp, #216] ldr w9, [sp, #232] subs w9, w9, #1 ldrsb w8, [x8, w9, sxtw] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB2_7 b LBB2_6 LBB2_6: b LBB2_8 LBB2_7: ; in Loop: Header=BB2_1 Depth=1 b LBB2_1 LBB2_8: ldr w8, [sp, #236] subs w9, w8, #1 add x8, sp, #248 ldrsb w8, [x8, w9, sxtw] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB2_10 b LBB2_9 LBB2_9: adrp x0, l_.str.10@PAGE add x0, x0, l_.str.10@PAGEOFF bl _printf mov w0, #1 bl _exit LBB2_10: ldr w8, [sp, #236] subs w8, w8, #1 add x0, sp, #248 str x0, [sp, #32] ; 8-byte Folded Spill add x8, x0, w8, sxtw strb wzr, [x8] bl _strlen mov x8, x0 str w8, [sp, #228] ldrsw x8, [sp, #228] str x8, [sp, #16] ; 8-byte Folded Spill ldr x0, [sp, #208] bl _strlen ldr x8, [sp, #16] ; 8-byte Folded Reload add x8, x8, x0 str x8, [sp, #24] ; 8-byte Folded Spill ldr x0, [sp, #240] bl _strlen ldr x8, [sp, #24] ; 8-byte Folded Reload add x8, x8, x0 add x0, x8, #2 mov x1, #1 bl _calloc ldr x1, [sp, #32] ; 8-byte Folded Reload str x0, [sp, #200] ldr x0, [sp, #200] mov x2, #-1 str x2, [sp, #40] ; 8-byte Folded Spill bl ___strcpy_chk ldr x2, [sp, #40] ; 8-byte Folded Reload ldr x0, [sp, #200] ldr x1, [sp, #208] bl ___strcat_chk add x0, sp, #56 str x0, [sp, #48] ; 8-byte Folded Spill mov w1, #0 mov x2, #144 bl _memset ldr x1, [sp, #48] ; 8-byte Folded Reload ldr x0, [sp, #200] bl _stat adds w8, w0, #1 cset w8, ne tbnz w8, #0, LBB2_12 b LBB2_11 LBB2_11: adrp x0, l_.str.11@PAGE add x0, x0, l_.str.11@PAGEOFF bl _printf ldr x0, [sp, #200] mov w1, #448 bl _mkdir b LBB2_12 LBB2_12: ldr x0, [sp, #200] adrp x1, l_.str.12@PAGE add x1, x1, l_.str.12@PAGEOFF mov x2, #-1 str x2, [sp] ; 8-byte Folded Spill bl ___strcat_chk ldr x2, [sp] ; 8-byte Folded Reload ldr x0, [sp, #200] ldr x1, [sp, #240] bl ___strcat_chk ldr x8, [sp, #200] str x8, [sp, #8] ; 8-byte Folded Spill ldur x9, [x29, #-24] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB2_14 b LBB2_13 LBB2_13: bl ___stack_chk_fail LBB2_14: ldr x0, [sp, #8] ; 8-byte Folded Reload add sp, sp, #1, lsl #12 ; =4096 add sp, sp, #256 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, #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, _pathpip@GOTPAGE ldr x8, [x8, _pathpip@GOTPAGEOFF] str x8, [sp, #32] ; 8-byte Folded Spill stur wzr, [x29, #-4] stur w0, [x29, #-8] stur x1, [x29, #-16] mov w8, #-1 stur w8, [x29, #-20] stur wzr, [x29, #-28] ldur w8, [x29, #-8] subs w8, w8, #3 cset w8, ge tbnz w8, #0, LBB3_2 b LBB3_1 LBB3_1: adrp x0, l_.str.13@PAGE add x0, x0, l_.str.13@PAGEOFF bl _usage b LBB3_2 LBB3_2: ldur x8, [x29, #-16] ldr x8, [x8, #8] str x8, [sp, #40] ldur x8, [x29, #-16] ldr x8, [x8, #16] stur x8, [x29, #-40] ldur x8, [x29, #-16] add x8, x8, #16 str x8, [sp, #56] mov w8, #3 stur w8, [x29, #-24] b LBB3_3 LBB3_3: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-24] ldur w9, [x29, #-8] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB3_10 b LBB3_4 LBB3_4: ; in Loop: Header=BB3_3 Depth=1 ldur x8, [x29, #-16] ldursw x9, [x29, #-24] ldr x0, [x8, x9, lsl #3] bl _strlen subs x8, x0, #1 cset w8, ne tbnz w8, #0, LBB3_8 b LBB3_5 LBB3_5: ; in Loop: Header=BB3_3 Depth=1 ldur x8, [x29, #-16] ldursw x9, [x29, #-24] ldr x8, [x8, x9, lsl #3] ldrsb w8, [x8] subs w8, w8, #47 cset w8, ne tbnz w8, #0, LBB3_7 b LBB3_6 LBB3_6: ldur x8, [x29, #-16] ldursw x9, [x29, #-24] add x8, x8, x9, lsl #3 add x8, x8, #8 str x8, [sp, #48] ldr x8, [sp, #48] ldr x8, [x8] stur x8, [x29, #-48] ldur x9, [x29, #-16] ldursw x10, [x29, #-24] mov x8, #0 str x8, [x9, x10, lsl #3] mov w8, #1 stur w8, [x29, #-28] b LBB3_10 LBB3_7: ; in Loop: Header=BB3_3 Depth=1 b LBB3_8 LBB3_8: ; in Loop: Header=BB3_3 Depth=1 b LBB3_9 LBB3_9: ; in Loop: Header=BB3_3 Depth=1 ldur w8, [x29, #-24] add w8, w8, #1 stur w8, [x29, #-24] b LBB3_3 LBB3_10: ldur w8, [x29, #-28] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB3_12 b LBB3_11 LBB3_11: adrp x0, l_.str.14@PAGE add x0, x0, l_.str.14@PAGEOFF bl _usage b LBB3_12 LBB3_12: ldr x0, [sp, #40] bl _getpathpip ldr x8, [sp, #32] ; 8-byte Folded Reload str x0, [x8] ldr x0, [x8] mov w1, #384 bl _mkfifo subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB3_14 b LBB3_13 LBB3_13: adrp x0, l_.str.15@PAGE add x0, x0, l_.str.15@PAGEOFF bl _perror adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] ldr x0, [x8] adrp x1, l_.str.16@PAGE add x1, x1, l_.str.16@PAGEOFF bl _fprintf ldr x8, [sp, #32] ; 8-byte Folded Reload ldr x0, [x8] bl _remove ldr x8, [sp, #32] ; 8-byte Folded Reload ldr x0, [x8] mov w1, #384 bl _mkfifo b LBB3_14 LBB3_14: bl _fork adrp x8, _pid1@GOTPAGE ldr x8, [x8, _pid1@GOTPAGEOFF] str w0, [x8] subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB3_16 b LBB3_15 LBB3_15: ldur x8, [x29, #-40] mov x9, sp str x8, [x9] adrp x0, l_.str.17@PAGE add x0, x0, l_.str.17@PAGEOFF bl _printf ldur x0, [x29, #-40] ldr x1, [sp, #56] bl _execv adrp x0, l_.str.18@PAGE add x0, x0, l_.str.18@PAGEOFF bl _perror mov w0, #1 bl _exit LBB3_16: bl _fork adrp x8, _pid2@GOTPAGE ldr x8, [x8, _pid2@GOTPAGEOFF] str w0, [x8] subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB3_18 b LBB3_17 LBB3_17: ldur x8, [x29, #-48] mov x9, sp str x8, [x9] adrp x0, l_.str.17@PAGE add x0, x0, l_.str.17@PAGEOFF bl _printf ldur x0, [x29, #-48] ldr x1, [sp, #48] bl _execv adrp x0, l_.str.19@PAGE add x0, x0, l_.str.19@PAGEOFF bl _perror mov w0, #1 bl _exit LBB3_18: mov w0, #15 adrp x1, _finish@PAGE add x1, x1, _finish@PAGEOFF str x1, [sp, #16] ; 8-byte Folded Spill bl _signal ldr x1, [sp, #16] ; 8-byte Folded Reload mov w0, #2 bl _signal mov x0, #0 str x0, [sp, #24] ; 8-byte Folded Spill bl _wait ldr x0, [sp, #24] ; 8-byte Folded Reload bl _wait ldr x8, [sp, #32] ; 8-byte Folded Reload ldr x0, [x8] bl _remove ldr x8, [sp, #32] ; 8-byte Folded Reload ldr x0, [x8] 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 "%s" l_.str.1: ; @.str.1 .asciz "Usage: [pipe name] [exe1] / [exe2]\n" l_.str.2: ; @.str.2 .asciz "\t exe1: write on the pipe\n" l_.str.3: ; @.str.3 .asciz "\t exe2: read on the pipe\n" l_.str.4: ; @.str.4 .asciz "the pipe is deleted afterr the exceution\n" l_.str.5: ; @.str.5 .asciz "[mypipe] SIGTERM received [%d]\n" l_.str.6: ; @.str.6 .asciz "[mypipe] waiting\n" .comm _pid2,4,2 ; @pid2 .comm _pid1,4,2 ; @pid1 .comm _pathpip,8,3 ; @pathpip l_.str.7: ; @.str.7 .asciz "Eirballoon" l_.str.8: ; @.str.8 .asciz "/build/bin/pip" l_.str.9: ; @.str.9 .asciz "/proc/self/exe" l_.str.10: ; @.str.10 .asciz "error\n" l_.str.11: ; @.str.11 .asciz "creation of pipe directory" l_.str.12: ; @.str.12 .asciz "/" l_.str.13: ; @.str.13 .asciz "ERROR: Argument <3\n" l_.str.14: ; @.str.14 .asciz "ERROR: / not found \n" l_.str.15: ; @.str.15 .asciz "Error on pipe creation: " l_.str.16: ; @.str.16 .asciz "Previous pipe has been removed\n" l_.str.17: ; @.str.17 .asciz "[mypipe] start: %s\n" l_.str.18: ; @.str.18 .asciz "EROOR exec1 :" l_.str.19: ; @.str.19 .asciz "EROOR exec2 :" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _usage ## -- Begin function usage .p2align 4, 0x90 _usage: ## @usage .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movq -8(%rbp), %rdx leaq L_.str(%rip), %rsi xorl %eax, %eax ## kill: def $al killed $al killed $eax movb %al, -9(%rbp) ## 1-byte Spill callq _fprintf ## kill: def $ecx killed $eax movb -9(%rbp), %al ## 1-byte Reload movq ___stdoutp@GOTPCREL(%rip), %rcx movq %rcx, -24(%rbp) ## 8-byte Spill movq (%rcx), %rdi leaq L_.str.1(%rip), %rsi callq _fprintf movq -24(%rbp), %rcx ## 8-byte Reload ## kill: def $edx killed $eax movb -9(%rbp), %al ## 1-byte Reload movq (%rcx), %rdi leaq L_.str.2(%rip), %rsi callq _fprintf movq -24(%rbp), %rcx ## 8-byte Reload ## kill: def $edx killed $eax movb -9(%rbp), %al ## 1-byte Reload movq (%rcx), %rdi leaq L_.str.3(%rip), %rsi callq _fprintf movq -24(%rbp), %rcx ## 8-byte Reload ## kill: def $edx killed $eax movb -9(%rbp), %al ## 1-byte Reload movq (%rcx), %rdi leaq L_.str.4(%rip), %rsi callq _fprintf movl $1, %edi callq _exit .cfi_endproc ## -- End function .globl _finish ## -- Begin function finish .p2align 4, 0x90 _finish: ## @finish .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 %edi, -4(%rbp) movq ___stderrp@GOTPCREL(%rip), %rax movq %rax, -56(%rbp) ## 8-byte Spill movq (%rax), %rdi movl -4(%rbp), %edx leaq L_.str.5(%rip), %rsi xorl %eax, %eax movl %eax, -8(%rbp) ## 4-byte Spill movb %al, -41(%rbp) ## 1-byte Spill callq _fprintf movq -56(%rbp), %rcx ## 8-byte Reload ## kill: def $edx killed $eax movb -41(%rbp), %al ## 1-byte Reload movq (%rcx), %rdi leaq L_.str.6(%rip), %rsi callq _fprintf movq _pid2@GOTPCREL(%rip), %rax movq %rax, -40(%rbp) ## 8-byte Spill movl (%rax), %edi movl $2, %esi movl %esi, -28(%rbp) ## 4-byte Spill callq _kill movl -8(%rbp), %edx ## 4-byte Reload ## kill: def $ecx killed $eax movq -40(%rbp), %rax ## 8-byte Reload movl (%rax), %edi movl %edx, %esi movq %rsi, -24(%rbp) ## 8-byte Spill callq _waitpid movl -28(%rbp), %esi ## 4-byte Reload movq _pid1@GOTPCREL(%rip), %rax movq %rax, -16(%rbp) ## 8-byte Spill movl (%rax), %edi callq _kill movq -24(%rbp), %rsi ## 8-byte Reload movl -8(%rbp), %edx ## 4-byte Reload ## kill: def $ecx killed $eax movq -16(%rbp), %rax ## 8-byte Reload movl (%rax), %edi callq _waitpid movq _pathpip@GOTPCREL(%rip), %rax movq (%rax), %rdi callq _remove movl -8(%rbp), %edi ## 4-byte Reload callq _exit .cfi_endproc ## -- End function .globl _getpathpip ## -- Begin function getpathpip .p2align 4, 0x90 _getpathpip: ## @getpathpip .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl $4336, %eax ## imm = 0x10F0 callq ____chkstk_darwin subq %rax, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movq %rdi, -4120(%rbp) movl $0, -4124(%rbp) movl $0, -4132(%rbp) leaq L_.str.7(%rip), %rax movq %rax, -4144(%rbp) leaq L_.str.8(%rip), %rax movq %rax, -4152(%rbp) leaq -4112(%rbp), %rsi leaq L_.str.9(%rip), %rdi movl $4096, %edx ## imm = 0x1000 callq _readlink LBB2_1: ## =>This Loop Header: Depth=1 ## Child Loop BB2_3 Depth 2 movslq -4124(%rbp), %rax movsbl -4112(%rbp,%rax), %eax cmpl $0, %eax je LBB2_8 ## %bb.2: ## in Loop: Header=BB2_1 Depth=1 movl $0, -4128(%rbp) LBB2_3: ## Parent Loop BB2_1 Depth=1 ## => This Inner Loop Header: Depth=2 movl -4124(%rbp), %eax movl %eax, %ecx addl $1, %ecx movl %ecx, -4124(%rbp) cltq movsbl -4112(%rbp,%rax), %eax movq -4144(%rbp), %rcx movl -4128(%rbp), %edx movl %edx, %esi addl $1, %esi movl %esi, -4128(%rbp) movslq %edx, %rdx movsbl (%rcx,%rdx), %ecx cmpl %ecx, %eax jne LBB2_5 ## %bb.4: ## in Loop: Header=BB2_3 Depth=2 jmp LBB2_3 LBB2_5: ## in Loop: Header=BB2_1 Depth=1 movq -4144(%rbp), %rax movl -4128(%rbp), %ecx subl $1, %ecx movslq %ecx, %rcx movsbl (%rax,%rcx), %eax cmpl $0, %eax jne LBB2_7 ## %bb.6: jmp LBB2_8 LBB2_7: ## in Loop: Header=BB2_1 Depth=1 jmp LBB2_1 LBB2_8: movl -4124(%rbp), %eax subl $1, %eax cltq movsbl -4112(%rbp,%rax), %eax cmpl $0, %eax jne LBB2_10 ## %bb.9: leaq L_.str.10(%rip), %rdi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _printf movl $1, %edi callq _exit LBB2_10: movl -4124(%rbp), %eax subl $1, %eax cltq movb $0, -4112(%rbp,%rax) leaq -4112(%rbp), %rdi callq _strlen ## kill: def $eax killed $eax killed $rax movl %eax, -4132(%rbp) movslq -4132(%rbp), %rax movq %rax, -4320(%rbp) ## 8-byte Spill movq -4152(%rbp), %rdi callq _strlen movq %rax, %rcx movq -4320(%rbp), %rax ## 8-byte Reload addq %rcx, %rax movq %rax, -4312(%rbp) ## 8-byte Spill movq -4120(%rbp), %rdi callq _strlen movq -4312(%rbp), %rdi ## 8-byte Reload addq %rax, %rdi addq $2, %rdi movl $1, %esi callq _calloc movq %rax, -4160(%rbp) movq -4160(%rbp), %rdi leaq -4112(%rbp), %rsi movq $-1, %rdx callq ___strcpy_chk movq -4160(%rbp), %rdi movq -4152(%rbp), %rsi movq $-1, %rdx callq ___strcat_chk leaq -4304(%rbp), %rdi xorl %esi, %esi movl $144, %edx callq _memset movq -4160(%rbp), %rdi leaq -4304(%rbp), %rsi callq _stat$INODE64 cmpl $-1, %eax jne LBB2_12 ## %bb.11: leaq L_.str.11(%rip), %rdi movb $0, %al callq _printf movq -4160(%rbp), %rdi movl $448, %esi ## imm = 0x1C0 callq _mkdir LBB2_12: movq -4160(%rbp), %rdi leaq L_.str.12(%rip), %rsi movq $-1, %rdx callq ___strcat_chk movq -4160(%rbp), %rdi movq -4120(%rbp), %rsi movq $-1, %rdx callq ___strcat_chk movq -4160(%rbp), %rax movq %rax, -4328(%rbp) ## 8-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB2_14 ## %bb.13: movq -4328(%rbp), %rax ## 8-byte Reload addq $4336, %rsp ## imm = 0x10F0 popq %rbp retq LBB2_14: 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 $80, %rsp movl $0, -4(%rbp) movl %edi, -8(%rbp) movq %rsi, -16(%rbp) movl $-1, -20(%rbp) movl $0, -28(%rbp) cmpl $3, -8(%rbp) jge LBB3_2 ## %bb.1: leaq L_.str.13(%rip), %rdi callq _usage LBB3_2: movq -16(%rbp), %rax movq 8(%rax), %rax movq %rax, -72(%rbp) movq -16(%rbp), %rax movq 16(%rax), %rax movq %rax, -40(%rbp) movq -16(%rbp), %rax addq $16, %rax movq %rax, -56(%rbp) movl $3, -24(%rbp) LBB3_3: ## =>This Inner Loop Header: Depth=1 movl -24(%rbp), %eax cmpl -8(%rbp), %eax jge LBB3_10 ## %bb.4: ## in Loop: Header=BB3_3 Depth=1 movq -16(%rbp), %rax movslq -24(%rbp), %rcx movq (%rax,%rcx,8), %rdi callq _strlen cmpq $1, %rax jne LBB3_8 ## %bb.5: ## in Loop: Header=BB3_3 Depth=1 movq -16(%rbp), %rax movslq -24(%rbp), %rcx movq (%rax,%rcx,8), %rax movsbl (%rax), %eax cmpl $47, %eax jne LBB3_7 ## %bb.6: movq -16(%rbp), %rax movslq -24(%rbp), %rcx shlq $3, %rcx addq %rcx, %rax addq $8, %rax movq %rax, -64(%rbp) movq -64(%rbp), %rax movq (%rax), %rax movq %rax, -48(%rbp) movq -16(%rbp), %rax movslq -24(%rbp), %rcx movq $0, (%rax,%rcx,8) movl $1, -28(%rbp) jmp LBB3_10 LBB3_7: ## in Loop: Header=BB3_3 Depth=1 jmp LBB3_8 LBB3_8: ## in Loop: Header=BB3_3 Depth=1 jmp LBB3_9 LBB3_9: ## in Loop: Header=BB3_3 Depth=1 movl -24(%rbp), %eax addl $1, %eax movl %eax, -24(%rbp) jmp LBB3_3 LBB3_10: cmpl $0, -28(%rbp) jne LBB3_12 ## %bb.11: leaq L_.str.14(%rip), %rdi callq _usage LBB3_12: movq -72(%rbp), %rdi callq _getpathpip movq %rax, %rcx movq _pathpip@GOTPCREL(%rip), %rax movq %rcx, (%rax) movq _pathpip@GOTPCREL(%rip), %rax movq (%rax), %rdi movl $384, %esi ## imm = 0x180 callq _mkfifo cmpl $0, %eax je LBB3_14 ## %bb.13: leaq L_.str.15(%rip), %rdi callq _perror movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.16(%rip), %rsi movb $0, %al callq _fprintf movq _pathpip@GOTPCREL(%rip), %rax movq (%rax), %rdi callq _remove movq _pathpip@GOTPCREL(%rip), %rax movq (%rax), %rdi movl $384, %esi ## imm = 0x180 callq _mkfifo LBB3_14: callq _fork movq _pid1@GOTPCREL(%rip), %rcx movl %eax, (%rcx) cmpl $0, %eax jne LBB3_16 ## %bb.15: movq -40(%rbp), %rsi leaq L_.str.17(%rip), %rdi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _printf movq -40(%rbp), %rdi movq -56(%rbp), %rsi callq _execv leaq L_.str.18(%rip), %rdi callq _perror movl $1, %edi callq _exit LBB3_16: callq _fork movq _pid2@GOTPCREL(%rip), %rcx movl %eax, (%rcx) cmpl $0, %eax jne LBB3_18 ## %bb.17: movq -48(%rbp), %rsi leaq L_.str.17(%rip), %rdi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _printf movq -48(%rbp), %rdi movq -64(%rbp), %rsi callq _execv leaq L_.str.19(%rip), %rdi callq _perror movl $1, %edi callq _exit LBB3_18: movl $15, %edi leaq _finish(%rip), %rsi callq _signal movl $2, %edi leaq _finish(%rip), %rsi callq _signal xorl %eax, %eax movl %eax, %edi callq _wait xorl %eax, %eax movl %eax, %edi callq _wait movq _pathpip@GOTPCREL(%rip), %rax movq (%rax), %rdi callq _remove movq _pathpip@GOTPCREL(%rip), %rax movq (%rax), %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 "%s" L_.str.1: ## @.str.1 .asciz "Usage: [pipe name] [exe1] / [exe2]\n" L_.str.2: ## @.str.2 .asciz "\t exe1: write on the pipe\n" L_.str.3: ## @.str.3 .asciz "\t exe2: read on the pipe\n" L_.str.4: ## @.str.4 .asciz "the pipe is deleted afterr the exceution\n" L_.str.5: ## @.str.5 .asciz "[mypipe] SIGTERM received [%d]\n" L_.str.6: ## @.str.6 .asciz "[mypipe] waiting\n" .comm _pid2,4,2 ## @pid2 .comm _pid1,4,2 ## @pid1 .comm _pathpip,8,3 ## @pathpip L_.str.7: ## @.str.7 .asciz "Eirballoon" L_.str.8: ## @.str.8 .asciz "/build/bin/pip" L_.str.9: ## @.str.9 .asciz "/proc/self/exe" L_.str.10: ## @.str.10 .asciz "error\n" L_.str.11: ## @.str.11 .asciz "creation of pipe directory" L_.str.12: ## @.str.12 .asciz "/" L_.str.13: ## @.str.13 .asciz "ERROR: Argument <3\n" L_.str.14: ## @.str.14 .asciz "ERROR: / not found \n" L_.str.15: ## @.str.15 .asciz "Error on pipe creation: " L_.str.16: ## @.str.16 .asciz "Previous pipe has been removed\n" L_.str.17: ## @.str.17 .asciz "[mypipe] start: %s\n" L_.str.18: ## @.str.18 .asciz "EROOR exec1 :" L_.str.19: ## @.str.19 .asciz "EROOR exec2 :" .subsections_via_symbols
the_stack_data/49788.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, #192 .cfi_def_cfa_offset 192 stp x29, x30, [sp, #176] ; 16-byte Folded Spill add x29, sp, #176 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] str wzr, [sp, #64] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf add x0, sp, #68 str x0, [sp, #24] ; 8-byte Folded Spill bl _gets adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf mov x9, sp add x8, sp, #60 str x8, [x9] add x8, sp, #56 str x8, [x9, #8] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _scanf ldr x8, [sp, #24] ; 8-byte Folded Reload ldr w9, [sp, #60] ldr w10, [sp, #56] add w9, w9, w10 str w9, [sp, #52] ldr w9, [sp, #60] ldr w10, [sp, #56] subs w9, w9, w10 str w9, [sp, #44] ldr w9, [sp, #60] ldr w10, [sp, #56] mul w9, w9, w10 str w9, [sp, #48] ldr s0, [sp, #60] scvtf s0, s0 ldr s1, [sp, #56] scvtf s1, s1 fdiv s0, s0, s1 str s0, [sp, #40] mov x9, sp str x8, [x9] adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf ldr w8, [sp, #60] ; implicit-def: $x11 mov x11, x8 ldr w8, [sp, #56] ; implicit-def: $x10 mov x10, x8 ldr w9, [sp, #52] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x11, [x9] str x10, [x9, #8] str x8, [x9, #16] adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF str x0, [sp, #32] ; 8-byte Folded Spill bl _printf ldr w8, [sp, #60] ; implicit-def: $x11 mov x11, x8 ldr w8, [sp, #56] ; implicit-def: $x10 mov x10, x8 ldr w9, [sp, #44] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x11, [x9] str x10, [x9, #8] str x8, [x9, #16] adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _printf ldr x0, [sp, #32] ; 8-byte Folded Reload ldr w8, [sp, #60] ; implicit-def: $x11 mov x11, x8 ldr w8, [sp, #56] ; implicit-def: $x10 mov x10, x8 ldr w9, [sp, #48] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x11, [x9] str x10, [x9, #8] str x8, [x9, #16] bl _printf ldr w8, [sp, #60] ; implicit-def: $x10 mov x10, x8 ldr w8, [sp, #56] ; implicit-def: $x9 mov x9, x8 ldr s0, [sp, #40] fcvt d0, s0 mov x8, sp str x10, [x8] str x9, [x8, #8] str d0, [x8, #16] adrp x0, l_.str.7@PAGE add x0, x0, l_.str.7@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, #176] ; 16-byte Folded Reload add sp, sp, #192 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Simple Calculator!\n" l_.str.1: ; @.str.1 .asciz "enter your name;" l_.str.2: ; @.str.2 .asciz "enter two integers:" l_.str.3: ; @.str.3 .asciz "%d %d" l_.str.4: ; @.str.4 .asciz "hey %s, here are the results;\n" l_.str.5: ; @.str.5 .asciz "%d+%d=%d\n" l_.str.6: ; @.str.6 .asciz "%d-%d=%d\n" l_.str.7: ; @.str.7 .asciz "%d/%d=%f\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $144, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -116(%rbp) leaq L_.str(%rip), %rdi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf leaq -112(%rbp), %rdi callq _gets leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf leaq L_.str.3(%rip), %rdi leaq -120(%rbp), %rsi leaq -124(%rbp), %rdx movb $0, %al callq _scanf movl -120(%rbp), %eax addl -124(%rbp), %eax movl %eax, -128(%rbp) movl -120(%rbp), %eax subl -124(%rbp), %eax movl %eax, -136(%rbp) movl -120(%rbp), %eax imull -124(%rbp), %eax movl %eax, -132(%rbp) cvtsi2ssl -120(%rbp), %xmm0 cvtsi2ssl -124(%rbp), %xmm1 divss %xmm1, %xmm0 movss %xmm0, -140(%rbp) leaq -112(%rbp), %rsi leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf movl -120(%rbp), %esi movl -124(%rbp), %edx movl -128(%rbp), %ecx leaq L_.str.5(%rip), %rdi movb $0, %al callq _printf movl -120(%rbp), %esi movl -124(%rbp), %edx movl -136(%rbp), %ecx leaq L_.str.6(%rip), %rdi movb $0, %al callq _printf movl -120(%rbp), %esi movl -124(%rbp), %edx movl -132(%rbp), %ecx leaq L_.str.5(%rip), %rdi movb $0, %al callq _printf movl -120(%rbp), %esi movl -124(%rbp), %edx movss -140(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 leaq L_.str.7(%rip), %rdi movb $1, %al callq _printf movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_2 ## %bb.1: xorl %eax, %eax addq $144, %rsp popq %rbp retq LBB0_2: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Simple Calculator!\n" L_.str.1: ## @.str.1 .asciz "enter your name;" L_.str.2: ## @.str.2 .asciz "enter two integers:" L_.str.3: ## @.str.3 .asciz "%d %d" L_.str.4: ## @.str.4 .asciz "hey %s, here are the results;\n" L_.str.5: ## @.str.5 .asciz "%d+%d=%d\n" L_.str.6: ## @.str.6 .asciz "%d-%d=%d\n" L_.str.7: ## @.str.7 .asciz "%d/%d=%f\n" .subsections_via_symbols
the_stack_data/167329453.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _f ; -- Begin function f .p2align 2 _f: ; @f .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 strh w0, [sp, #22] str w1, [sp, #16] str x2, [sp, #8] ldrsh w8, [sp, #22] subs w8, w8, #56 cset w8, ne tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: ldr w8, [sp, #16] ldr w9, [sp, #16] mul w9, w8, w9 ; implicit-def: $x8 mov x8, x9 sxtw x8, w8 str x8, [sp, #24] b LBB0_5 LBB0_2: ldrsh w8, [sp, #22] subs w8, w8, #56 cset w8, ne tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: ldr w8, [sp, #16] ldr w9, [sp, #16] mul w9, w8, w9 ; implicit-def: $x8 mov x8, x9 sxtw x8, w8 str x8, [sp, #24] b LBB0_5 LBB0_4: mov x8, #966 str x8, [sp, #24] b LBB0_5 LBB0_5: ldr x0, [sp, #24] add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _int_float ; -- Begin function int_float .p2align 2 _int_float: ; @int_float .cfi_startproc ; %bb.0: sub sp, sp, #240 .cfi_def_cfa_offset 240 str w0, [sp, #236] str w1, [sp, #232] str x2, [sp, #224] str s0, [sp, #220] str s1, [sp, #216] str d2, [sp, #208] strb w3, [sp, #207] ldr s0, [sp, #220] ldr s1, [sp, #216] fmul s0, s0, s1 fcvt d0, s0 str d0, [sp, #192] ldr s0, [sp, #220] fcvt d0, s0 ldr s1, [sp, #216] fcvt d1, s1 fmul d0, d0, d1 str d0, [sp, #184] ldr w8, [sp, #236] ldr w9, [sp, #232] add w8, w8, w9 scvtf s0, w8 ldr s1, [sp, #220] fmul s0, s0, s1 fcvt d0, s0 str d0, [sp, #176] ldr w8, [sp, #236] ldr w9, [sp, #232] add w8, w8, w9 scvtf d0, w8 ldr s1, [sp, #220] fcvt d1, s1 fmul d0, d0, d1 str d0, [sp, #168] ldr w8, [sp, #236] ldr w9, [sp, #232] mul w8, w8, w9 scvtf d0, w8 str d0, [sp, #160] ldr s1, [sp, #236] ; implicit-def: $d0 fmov s0, s1 sshll.2d v0, v0, #0 ; kill: def $d0 killed $d0 killed $q0 scvtf d0, d0 ldr s2, [sp, #232] ; implicit-def: $d1 fmov s1, s2 sshll.2d v1, v1, #0 ; kill: def $d1 killed $d1 killed $q1 scvtf d1, d1 fmul d0, d0, d1 str d0, [sp, #152] ldrsw x8, [sp, #236] ldrsw x9, [sp, #232] mul x8, x8, x9 scvtf d0, x8 str d0, [sp, #144] ldr w8, [sp, #236] ldr w9, [sp, #232] mul w8, w8, w9 scvtf s0, w8 str s0, [sp, #140] ldr s0, [sp, #236] scvtf s0, s0 ldr s1, [sp, #232] scvtf s1, s1 fmul s0, s0, s1 str s0, [sp, #136] ldr s0, [sp, #220] ldr s1, [sp, #216] fmul s0, s0, s1 fcvtzs x8, s0 str x8, [sp, #128] ldr s0, [sp, #220] ldr s1, [sp, #216] fcvtzs x8, s1 scvtf s1, x8 fmul s0, s0, s1 fcvtzs x8, s0 str x8, [sp, #120] ldr s0, [sp, #220] fcvtzs x8, s0 ldr s0, [sp, #216] fcvtzs x9, s0 mul x8, x8, x9 str x8, [sp, #112] ldr s0, [sp, #220] ldr s1, [sp, #216] fmul s0, s0, s1 fcvtzs w8, s0 str w8, [sp, #108] ldr s0, [sp, #220] fcvtzs s0, s0 scvtf s0, s0 ldr s1, [sp, #216] fmul s0, s0, s1 fcvtzs w8, s0 str w8, [sp, #104] ldr s0, [sp, #220] ldr s1, [sp, #220] fmul s0, s0, s1 fcvt d0, s0 str d0, [sp, #96] ldr d0, [sp, #208] ldr d1, [sp, #208] fmul d0, d0, d1 str d0, [sp, #88] ldr s0, [sp, #220] ldr s1, [sp, #220] fmul s0, s0, s1 fcvt d0, s0 str d0, [sp, #80] ldr s0, [sp, #220] ldr s1, [sp, #220] fmul s0, s0, s1 fcvt d0, s0 fmov d2, #2.00000000 fmul d0, d0, d2 fcvt s0, d0 str s0, [sp, #76] ldr s0, [sp, #220] ldr s1, [sp, #220] fmul s0, s0, s1 fmov s1, #2.00000000 fmul s0, s0, s1 str s0, [sp, #72] ldr s0, [sp, #220] fcvt d0, s0 fmul d0, d0, d2 ldr s3, [sp, #220] fcvt d3, s3 fmul d0, d0, d3 fcvt s0, d0 str s0, [sp, #68] ldr s0, [sp, #220] fmul s0, s0, s1 ldr s3, [sp, #220] fmul s0, s0, s3 str s0, [sp, #64] ldr s0, [sp, #220] fcvt d0, s0 fmul d0, d2, d0 ldr s3, [sp, #220] fcvt d3, s3 fmul d0, d0, d3 fcvt s0, d0 str s0, [sp, #60] ldr s0, [sp, #220] fmul s0, s1, s0 ldr s3, [sp, #220] fmul s0, s0, s3 str s0, [sp, #56] ldr s0, [sp, #220] fcvt d3, s0 fmov d0, #4.00000000 fmul d0, d0, d3 fcvt s0, d0 str s0, [sp, #52] ldr s3, [sp, #220] fmov s0, #4.00000000 fmul s0, s0, s3 str s0, [sp, #48] ldr s0, [sp, #220] ldr s3, [sp, #220] fmul s0, s0, s3 fcvt d3, s0 fmov d0, #1.00000000 fadd d0, d0, d3 ldr s3, [sp, #220] ldr s4, [sp, #220] fmul s3, s3, s4 fcvt d3, s3 fadd d0, d0, d3 fcvt s0, d0 str s0, [sp, #44] ldr s0, [sp, #220] ldr s3, [sp, #220] fmov s4, #1.00000000 fmadd s4, s0, s3, s4 ldr s0, [sp, #220] ldr s3, [sp, #220] fmadd s0, s0, s3, s4 str s0, [sp, #40] ldr s0, [sp, #220] ldr s3, [sp, #220] fmul s0, s0, s3 fcvt d0, s0 fmul d0, d0, d2 str d0, [sp, #32] ldr s0, [sp, #220] ldr s2, [sp, #220] fmul s0, s0, s2 fmul s0, s0, s1 fcvt d0, s0 str d0, [sp, #24] ldr w8, [sp, #236] ldr w9, [sp, #236] add w9, w9, #2 mul w9, w8, w9 ldr x8, [sp, #224] add x8, x8, w9, sxtw str x8, [sp, #16] ldrsw x8, [sp, #236] ldrsw x9, [sp, #236] add x9, x9, #2 mul x8, x8, x9 ldr x9, [sp, #224] mul x8, x8, x9 str x8, [sp, #8] ldr w8, [sp, #236] ldr w9, [sp, #236] add w9, w9, #2 mul w9, w8, w9 ldr x8, [sp, #224] add x8, x8, w9, sxtw str x8, [sp] add sp, sp, #240 ret .cfi_endproc ; -- End function .globl _use_size_t ; -- Begin function use_size_t .p2align 2 _use_size_t: ; @use_size_t .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] str w0, [sp, #12] str w1, [sp, #8] mov w8, #10 str w8, [sp, #4] mov w8, #20 str w8, [sp] adrp x8, l___const.use_size_t.vs@PAGE add x8, x8, l___const.use_size_t.vs@PAGEOFF ldr x8, [x8] str x8, [sp, #16] ldr w8, [sp, #12] ldr w9, [sp, #8] mul w9, w8, w9 ; implicit-def: $x8 mov x8, x9 sxtw x0, w8 bl _malloc ldrsw x8, [sp, #12] ldrsw x9, [sp, #8] mul x0, x8, x9 bl _malloc mov x0, #200 bl _malloc ldr w8, [sp, #4] ldr w9, [sp] mul w9, w8, w9 ; implicit-def: $x8 mov x8, x9 sxtw x0, w8 bl _malloc ldr w8, [sp, #16] ldr w9, [sp, #20] mul w9, w8, w9 ; implicit-def: $x8 mov x8, x9 sxtw x0, w8 bl _malloc 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, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _use_printf ; -- Begin function use_printf .p2align 2 _use_printf: ; @use_printf .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur s0, [x29, #-4] str d1, [sp, #16] ldur s0, [x29, #-4] ldur s1, [x29, #-4] fmul s0, s0, s1 fcvt d0, s0 mov x8, sp str d0, [x8] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF str x0, [sp, #8] ; 8-byte Folded Spill bl _printf ldr x0, [sp, #8] ; 8-byte Folded Reload ldr d0, [sp, #16] ldr d1, [sp, #16] fmul d0, d0, d1 mov x8, sp str d0, [x8] bl _printf ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _three_chars ; -- Begin function three_chars .p2align 2 _three_chars: ; @three_chars .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 strb w0, [sp, #15] strb w1, [sp, #14] strb w2, [sp, #13] ldrb w8, [sp, #15] ldrb w9, [sp, #14] mul w8, w8, w9 ldrb w9, [sp, #13] mul w9, w8, w9 ; implicit-def: $x8 mov x8, x9 sxtw x0, w8 add sp, sp, #16 ret .cfi_endproc ; -- End function .section __TEXT,__literal8,8byte_literals .p2align 2 ; @__const.use_size_t.vs l___const.use_size_t.vs: .long 10 ; 0xa .long 20 ; 0x14 .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 _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 movw %di, %ax movw %ax, -10(%rbp) movl %esi, -16(%rbp) movq %rdx, -24(%rbp) movswl -10(%rbp), %eax cmpl $56, %eax jne LBB0_2 ## %bb.1: movl -16(%rbp), %eax imull -16(%rbp), %eax cltq movq %rax, -8(%rbp) jmp LBB0_5 LBB0_2: movswl -10(%rbp), %eax cmpl $56, %eax jne LBB0_4 ## %bb.3: movl -16(%rbp), %eax imull -16(%rbp), %eax cltq movq %rax, -8(%rbp) jmp LBB0_5 LBB0_4: movq $966, -8(%rbp) ## imm = 0x3C6 LBB0_5: movq -8(%rbp), %rax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__literal4,4byte_literals .p2align 2 ## -- Begin function int_float LCPI1_0: .long 0x40000000 ## float 2 LCPI1_2: .long 0x3f800000 ## float 1 LCPI1_4: .long 0x40800000 ## float 4 .section __TEXT,__literal8,8byte_literals .p2align 3 LCPI1_1: .quad 0x4000000000000000 ## double 2 LCPI1_3: .quad 0x3ff0000000000000 ## double 1 LCPI1_5: .quad 0x4010000000000000 ## double 4 .section __TEXT,__text,regular,pure_instructions .globl _int_float .p2align 4, 0x90 _int_float: ## @int_float .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 movb %cl, %al movl %edi, -4(%rbp) movl %esi, -8(%rbp) movq %rdx, -16(%rbp) movss %xmm0, -20(%rbp) movss %xmm1, -24(%rbp) movsd %xmm2, -32(%rbp) movb %al, -33(%rbp) movss -20(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero mulss -24(%rbp), %xmm0 cvtss2sd %xmm0, %xmm0 movsd %xmm0, -48(%rbp) movss -20(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movss -24(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero cvtss2sd %xmm1, %xmm1 mulsd %xmm1, %xmm0 movsd %xmm0, -56(%rbp) movl -4(%rbp), %eax addl -8(%rbp), %eax cvtsi2ss %eax, %xmm0 mulss -20(%rbp), %xmm0 cvtss2sd %xmm0, %xmm0 movsd %xmm0, -64(%rbp) movl -4(%rbp), %eax addl -8(%rbp), %eax cvtsi2sd %eax, %xmm0 movss -20(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero cvtss2sd %xmm1, %xmm1 mulsd %xmm1, %xmm0 movsd %xmm0, -72(%rbp) movl -4(%rbp), %eax imull -8(%rbp), %eax cvtsi2sd %eax, %xmm0 movsd %xmm0, -80(%rbp) cvtsi2sdl -4(%rbp), %xmm0 cvtsi2sdl -8(%rbp), %xmm1 mulsd %xmm1, %xmm0 movsd %xmm0, -88(%rbp) movslq -4(%rbp), %rax movslq -8(%rbp), %rcx imulq %rcx, %rax cvtsi2sd %rax, %xmm0 movsd %xmm0, -96(%rbp) movl -4(%rbp), %eax imull -8(%rbp), %eax cvtsi2ss %eax, %xmm0 movss %xmm0, -100(%rbp) cvtsi2ssl -4(%rbp), %xmm0 cvtsi2ssl -8(%rbp), %xmm1 mulss %xmm1, %xmm0 movss %xmm0, -104(%rbp) movss -20(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero mulss -24(%rbp), %xmm0 cvttss2si %xmm0, %rax movq %rax, -112(%rbp) movss -20(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvttss2si -24(%rbp), %rax cvtsi2ss %rax, %xmm1 mulss %xmm1, %xmm0 cvttss2si %xmm0, %rax movq %rax, -120(%rbp) cvttss2si -20(%rbp), %rax cvttss2si -24(%rbp), %rcx imulq %rcx, %rax movq %rax, -128(%rbp) movss -20(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero mulss -24(%rbp), %xmm0 cvttss2si %xmm0, %eax movl %eax, -132(%rbp) cvttss2si -20(%rbp), %eax cvtsi2ss %eax, %xmm0 mulss -24(%rbp), %xmm0 cvttss2si %xmm0, %eax movl %eax, -136(%rbp) movss -20(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero mulss -20(%rbp), %xmm0 cvtss2sd %xmm0, %xmm0 movsd %xmm0, -144(%rbp) movsd -32(%rbp), %xmm0 ## xmm0 = mem[0],zero mulsd -32(%rbp), %xmm0 movsd %xmm0, -152(%rbp) movss -20(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero mulss -20(%rbp), %xmm0 cvtss2sd %xmm0, %xmm0 movsd %xmm0, -160(%rbp) movss -20(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero mulss -20(%rbp), %xmm0 cvtss2sd %xmm0, %xmm0 movsd LCPI1_1(%rip), %xmm1 ## xmm1 = mem[0],zero mulsd %xmm1, %xmm0 cvtsd2ss %xmm0, %xmm0 movss %xmm0, -164(%rbp) movss -20(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero mulss -20(%rbp), %xmm0 movss LCPI1_0(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero mulss %xmm1, %xmm0 movss %xmm0, -168(%rbp) movss -20(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movsd LCPI1_1(%rip), %xmm1 ## xmm1 = mem[0],zero mulsd %xmm1, %xmm0 movss -20(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero cvtss2sd %xmm1, %xmm1 mulsd %xmm1, %xmm0 cvtsd2ss %xmm0, %xmm0 movss %xmm0, -172(%rbp) movss LCPI1_0(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero mulss -20(%rbp), %xmm0 mulss -20(%rbp), %xmm0 movss %xmm0, -176(%rbp) movss -20(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm1 movsd LCPI1_1(%rip), %xmm0 ## xmm0 = mem[0],zero mulsd %xmm1, %xmm0 movss -20(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero cvtss2sd %xmm1, %xmm1 mulsd %xmm1, %xmm0 cvtsd2ss %xmm0, %xmm0 movss %xmm0, -180(%rbp) movss LCPI1_0(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero mulss -20(%rbp), %xmm0 mulss -20(%rbp), %xmm0 movss %xmm0, -184(%rbp) movss -20(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm1 movsd LCPI1_5(%rip), %xmm0 ## xmm0 = mem[0],zero mulsd %xmm1, %xmm0 cvtsd2ss %xmm0, %xmm0 movss %xmm0, -188(%rbp) movss LCPI1_4(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero mulss -20(%rbp), %xmm0 movss %xmm0, -192(%rbp) movss -20(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero mulss -20(%rbp), %xmm0 cvtss2sd %xmm0, %xmm1 movsd LCPI1_3(%rip), %xmm0 ## xmm0 = mem[0],zero addsd %xmm1, %xmm0 movss -20(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero mulss -20(%rbp), %xmm1 cvtss2sd %xmm1, %xmm1 addsd %xmm1, %xmm0 cvtsd2ss %xmm0, %xmm0 movss %xmm0, -196(%rbp) movss -20(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero movss -20(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero mulss %xmm0, %xmm1 movss LCPI1_2(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero addss %xmm0, %xmm1 movss -20(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss -20(%rbp), %xmm2 ## xmm2 = mem[0],zero,zero,zero mulss %xmm2, %xmm0 addss %xmm1, %xmm0 movss %xmm0, -200(%rbp) movss -20(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero mulss -20(%rbp), %xmm0 cvtss2sd %xmm0, %xmm0 movsd LCPI1_1(%rip), %xmm1 ## xmm1 = mem[0],zero mulsd %xmm1, %xmm0 movsd %xmm0, -208(%rbp) movss -20(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero mulss -20(%rbp), %xmm0 movss LCPI1_0(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero mulss %xmm1, %xmm0 cvtss2sd %xmm0, %xmm0 movsd %xmm0, -216(%rbp) movl -4(%rbp), %eax movl -4(%rbp), %ecx addl $2, %ecx imull %ecx, %eax cltq addq -16(%rbp), %rax movq %rax, -224(%rbp) movslq -4(%rbp), %rax movslq -4(%rbp), %rcx addq $2, %rcx imulq %rcx, %rax imulq -16(%rbp), %rax movq %rax, -232(%rbp) movl -4(%rbp), %eax movl -4(%rbp), %ecx addl $2, %ecx imull %ecx, %eax cltq addq -16(%rbp), %rax movq %rax, -240(%rbp) addq $112, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _use_size_t ## -- Begin function use_size_t .p2align 4, 0x90 _use_size_t: ## @use_size_t .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl %edi, -20(%rbp) movl %esi, -24(%rbp) movl $10, -28(%rbp) movl $20, -32(%rbp) movq L___const.use_size_t.vs(%rip), %rax movq %rax, -16(%rbp) movl -20(%rbp), %eax imull -24(%rbp), %eax movslq %eax, %rdi callq _malloc movslq -20(%rbp), %rdi movslq -24(%rbp), %rax imulq %rax, %rdi callq _malloc movl $200, %edi callq _malloc movl -28(%rbp), %eax imull -32(%rbp), %eax movslq %eax, %rdi callq _malloc movl -16(%rbp), %eax imull -12(%rbp), %eax movslq %eax, %rdi callq _malloc movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB2_2 ## %bb.1: addq $32, %rsp popq %rbp retq LBB2_2: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _use_printf ## -- Begin function use_printf .p2align 4, 0x90 _use_printf: ## @use_printf .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movss %xmm0, -4(%rbp) movsd %xmm1, -16(%rbp) movss -4(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero mulss -4(%rbp), %xmm0 cvtss2sd %xmm0, %xmm0 leaq L_.str(%rip), %rdi movb $1, %al callq _printf movsd -16(%rbp), %xmm0 ## xmm0 = mem[0],zero mulsd -16(%rbp), %xmm0 leaq L_.str(%rip), %rdi movb $1, %al callq _printf addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _three_chars ## -- Begin function three_chars .p2align 4, 0x90 _three_chars: ## @three_chars .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movb %dl, %al movb %sil, %cl movb %dil, %dl movb %dl, -1(%rbp) movb %cl, -2(%rbp) movb %al, -3(%rbp) movzbl -1(%rbp), %eax movzbl -2(%rbp), %ecx imull %ecx, %eax movzbl -3(%rbp), %ecx imull %ecx, %eax cltq popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__literal8,8byte_literals .p2align 2 ## @__const.use_size_t.vs L___const.use_size_t.vs: .long 10 ## 0xa .long 20 ## 0x14 .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%f" .subsections_via_symbols
the_stack_data/607109.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _func ; -- Begin function func .p2align 2 _func: ; @func .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp] ldr x8, [sp] add x0, x8, #10 adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF mov x2, #8 bl _strncmp subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf mov w8, #1 stur w8, [x29, #-4] b LBB0_3 LBB0_2: stur wzr, [x29, #-4] b LBB0_3 LBB0_3: ldur w0, [x29, #-4] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] stur w0, [x29, #-8] stur x1, [x29, #-16] ldur x8, [x29, #-16] ldr x0, [x8, #8] adrp x1, l_.str.2@PAGE add x1, x1, l_.str.2@PAGEOFF bl _fopen str x0, [sp, #24] ldr x8, [sp, #24] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf mov w8, #1 stur w8, [x29, #-4] b LBB1_7 LBB1_2: ldr x0, [sp, #24] mov x1, #0 mov w2, #2 bl _fseek ldr x0, [sp, #24] bl _ftell str x0, [sp, #8] ldr x0, [sp, #24] bl _rewind ldr x8, [sp, #8] mov x9, #1 str x9, [sp] ; 8-byte Folded Spill add x8, x8, #1 lsr x0, x8, #0 bl _malloc ldr x2, [sp] ; 8-byte Folded Reload str x0, [sp, #16] ldr x0, [sp, #16] ldr x1, [sp, #8] ldr x3, [sp, #24] bl _fread adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf ldr x8, [sp, #8] subs x8, x8, #18 cset w8, ge tbnz w8, #0, LBB1_4 b LBB1_3 LBB1_3: stur wzr, [x29, #-4] b LBB1_7 LBB1_4: ldr x0, [sp, #16] bl _func subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB1_6 b LBB1_5 LBB1_5: mov x8, #0 str wzr, [x8] b LBB1_6 LBB1_6: ldr x0, [sp, #24] bl _fclose stur wzr, [x29, #-4] b LBB1_7 LBB1_7: ldur w0, [x29, #-4] ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "CAFEBABE" l_.str.1: ; @.str.1 .asciz "Secret!\n" l_.str.2: ; @.str.2 .asciz "rb" l_.str.3: ; @.str.3 .asciz "Could not open file\n" l_.str.4: ; @.str.4 .asciz "Successfully read file\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _func ## -- Begin function func .p2align 4, 0x90 _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 subq $16, %rsp movq %rdi, -16(%rbp) movq -16(%rbp), %rdi addq $10, %rdi leaq L_.str(%rip), %rsi movl $8, %edx callq _strncmp cmpl $0, %eax jne LBB0_2 ## %bb.1: leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf movl $1, -4(%rbp) jmp LBB0_3 LBB0_2: movl $0, -4(%rbp) LBB0_3: movl -4(%rbp), %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movl $0, -4(%rbp) movl %edi, -8(%rbp) movq %rsi, -16(%rbp) movq -16(%rbp), %rax movq 8(%rax), %rdi leaq L_.str.2(%rip), %rsi callq _fopen movq %rax, -24(%rbp) cmpq $0, -24(%rbp) jne LBB1_2 ## %bb.1: leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf movl $1, -4(%rbp) jmp LBB1_7 LBB1_2: movq -24(%rbp), %rdi xorl %eax, %eax movl %eax, %esi movl $2, %edx callq _fseek movq -24(%rbp), %rdi callq _ftell movq %rax, -40(%rbp) movq -24(%rbp), %rdi callq _rewind movq -40(%rbp), %rdi addq $1, %rdi shlq $0, %rdi callq _malloc movq %rax, -32(%rbp) movq -32(%rbp), %rdi movq -40(%rbp), %rsi movq -24(%rbp), %rcx movl $1, %edx callq _fread leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf cmpq $18, -40(%rbp) jge LBB1_4 ## %bb.3: movl $0, -4(%rbp) jmp LBB1_7 LBB1_4: movq -32(%rbp), %rdi callq _func cmpl $0, %eax je LBB1_6 ## %bb.5: xorl %eax, %eax ## kill: def $rax killed $eax movl $0, (%rax) LBB1_6: movq -24(%rbp), %rdi callq _fclose movl $0, -4(%rbp) LBB1_7: movl -4(%rbp), %eax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "CAFEBABE" L_.str.1: ## @.str.1 .asciz "Secret!\n" L_.str.2: ## @.str.2 .asciz "rb" L_.str.3: ## @.str.3 .asciz "Could not open file\n" L_.str.4: ## @.str.4 .asciz "Successfully read file\n" .subsections_via_symbols
the_stack_data/3263853.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] mov x0, #0 bl _time ; kill: def $w0 killed $w0 killed $x0 bl _srand str wzr, [sp, #16] mov w8, #32 strb w8, [sp, #15] b LBB0_1 LBB0_1: ; =>This Loop Header: Depth=1 ; Child Loop BB0_3 Depth 2 ldrsb w8, [sp, #15] subs w8, w8, #110 cset w8, eq tbnz w8, #0, LBB0_11 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 str wzr, [sp, #16] bl _rand mov w9, #101 sdiv w8, w0, w9 mul w8, w8, w9 subs w8, w0, w8 stur w8, [x29, #-8] b LBB0_3 LBB0_3: ; Parent Loop BB0_1 Depth=1 ; => This Inner Loop Header: Depth=2 adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov x9, sp sub x8, x29, #12 str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf bl _getchar ldr w8, [sp, #16] add w8, w8, #1 str w8, [sp, #16] ldur w8, [x29, #-12] ldur w9, [x29, #-8] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB0_5 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_8 LBB0_5: ; in Loop: Header=BB0_3 Depth=2 ldur w8, [x29, #-12] ldur w9, [x29, #-8] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_7 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_3 Depth=2 adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@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 b LBB0_9 LBB0_9: ; in Loop: Header=BB0_3 Depth=2 ldur w8, [x29, #-8] ldur w9, [x29, #-12] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_3 b LBB0_10 LBB0_10: ; in Loop: Header=BB0_1 Depth=1 ldr w9, [sp, #16] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf mov x9, sp add x8, sp, #15 str x8, [x9] adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _scanf bl _getchar b LBB0_1 LBB0_11: 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 "\nTente adivinhar o numero da sorte: " l_.str.1: ; @.str.1 .asciz "%i" l_.str.2: ; @.str.2 .asciz "\nO numero que voce digitou eh maior do que o numero da sorte!\n" l_.str.3: ; @.str.3 .asciz "\nO numero que voce digitou eh menor do que o numero da sorte!\n" l_.str.4: ; @.str.4 .asciz "\nPARABENS!! Voce acertou o numero da sorte em %i tentativas!\n" l_.str.5: ; @.str.5 .asciz "\nJogar novamente (s ou n)? " l_.str.6: ; @.str.6 .asciz "%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 $32, %rsp movl $0, -4(%rbp) xorl %eax, %eax movl %eax, %edi callq _time movl %eax, %edi callq _srand movl $0, -16(%rbp) movb $32, -17(%rbp) LBB0_1: ## =>This Loop Header: Depth=1 ## Child Loop BB0_3 Depth 2 movsbl -17(%rbp), %eax cmpl $110, %eax je LBB0_11 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl $0, -16(%rbp) callq _rand movl $101, %ecx cltd idivl %ecx movl %edx, -8(%rbp) LBB0_3: ## Parent Loop BB0_1 Depth=1 ## => This Inner Loop Header: Depth=2 leaq L_.str(%rip), %rdi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi leaq -12(%rbp), %rsi movb $0, %al callq _scanf callq _getchar movl -16(%rbp), %eax addl $1, %eax movl %eax, -16(%rbp) movl -12(%rbp), %eax cmpl -8(%rbp), %eax jle LBB0_5 ## %bb.4: ## in Loop: Header=BB0_3 Depth=2 leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf jmp LBB0_8 LBB0_5: ## in Loop: Header=BB0_3 Depth=2 movl -12(%rbp), %eax cmpl -8(%rbp), %eax jge LBB0_7 ## %bb.6: ## in Loop: Header=BB0_3 Depth=2 leaq L_.str.3(%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 jmp LBB0_9 LBB0_9: ## in Loop: Header=BB0_3 Depth=2 movl -8(%rbp), %eax cmpl -12(%rbp), %eax jne LBB0_3 ## %bb.10: ## in Loop: Header=BB0_1 Depth=1 movl -16(%rbp), %esi leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf leaq L_.str.5(%rip), %rdi movb $0, %al callq _printf leaq L_.str.6(%rip), %rdi leaq -17(%rbp), %rsi movb $0, %al callq _scanf callq _getchar jmp LBB0_1 LBB0_11: movl -4(%rbp), %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "\nTente adivinhar o numero da sorte: " L_.str.1: ## @.str.1 .asciz "%i" L_.str.2: ## @.str.2 .asciz "\nO numero que voce digitou eh maior do que o numero da sorte!\n" L_.str.3: ## @.str.3 .asciz "\nO numero que voce digitou eh menor do que o numero da sorte!\n" L_.str.4: ## @.str.4 .asciz "\nPARABENS!! Voce acertou o numero da sorte em %i tentativas!\n" L_.str.5: ## @.str.5 .asciz "\nJogar novamente (s ou n)? " L_.str.6: ## @.str.6 .asciz "%c" .subsections_via_symbols
the_stack_data/231393834.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: stp x28, x27, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w27, -24 .cfi_offset w28, -32 mov w9, #20096 adrp x16, ___chkstk_darwin@GOTPAGE ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF] blr x16 sub sp, sp, #4, lsl #12 ; =16384 sub sp, sp, #3712 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] str wzr, [sp, #84] mov x9, sp add x8, sp, #80 str x8, [x9] add x8, sp, #76 str x8, [x9, #8] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _scanf str wzr, [sp, #72] str wzr, [sp, #68] add x0, sp, #3, lsl #12 ; =12288 add x0, x0, #3800 mov x1, #4000 str x1, [sp, #56] ; 8-byte Folded Spill bl _bzero ldr x1, [sp, #56] ; 8-byte Folded Reload add x0, sp, #2, lsl #12 ; =8192 add x0, x0, #3896 bl _bzero ldr x1, [sp, #56] ; 8-byte Folded Reload add x0, sp, #1, lsl #12 ; =4096 add x0, x0, #3992 bl _bzero ldr x1, [sp, #56] ; 8-byte Folded Reload add x0, sp, #4088 bl _bzero ldr x1, [sp, #56] ; 8-byte Folded Reload add x0, sp, #88 bl _bzero b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #72] ldr w9, [sp, #80] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldrsw x9, [sp, #72] add x8, sp, #3, lsl #12 ; =12288 add x8, x8, #3800 add x8, x8, x9, lsl #2 mov x9, sp str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf ldr w8, [sp, #72] add w8, w8, #1 str w8, [sp, #72] b LBB0_1 LBB0_3: b LBB0_4 LBB0_4: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #68] ldr w9, [sp, #76] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_4 Depth=1 ldrsw x9, [sp, #68] add x8, sp, #2, lsl #12 ; =8192 add x8, x8, #3896 add x10, x8, x9, lsl #2 ldrsw x9, [sp, #68] add x8, sp, #1, lsl #12 ; =4096 add x8, x8, #3992 add x8, x8, x9, lsl #2 mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _scanf ldr w8, [sp, #68] add w8, w8, #1 str w8, [sp, #68] b LBB0_4 LBB0_6: str wzr, [sp, #68] b LBB0_7 LBB0_7: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #68] ldr w9, [sp, #76] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_13 b LBB0_8 LBB0_8: ; in Loop: Header=BB0_7 Depth=1 ldr w0, [sp, #80] ldrsw x9, [sp, #68] add x8, sp, #2, lsl #12 ; =8192 add x8, x8, #3896 str x8, [sp, #24] ; 8-byte Folded Spill ldr w1, [x8, x9, lsl #2] ldrsw x9, [sp, #68] add x8, sp, #1, lsl #12 ; =4096 add x8, x8, #3992 str x8, [sp, #32] ; 8-byte Folded Spill ldr w2, [x8, x9, lsl #2] add x3, sp, #3, lsl #12 ; =12288 add x3, x3, #3800 str x3, [sp, #40] ; 8-byte Folded Spill bl _N ldr x9, [sp, #24] ; 8-byte Folded Reload ldr x8, [sp, #32] ; 8-byte Folded Reload ldr x3, [sp, #40] ; 8-byte Folded Reload ldrsw x11, [sp, #68] add x10, sp, #4088 str x10, [sp, #48] ; 8-byte Folded Spill str w0, [x10, x11, lsl #2] ldr w0, [sp, #80] ldrsw x10, [sp, #68] ldr w1, [x9, x10, lsl #2] ldrsw x9, [sp, #68] ldr w2, [x8, x9, lsl #2] bl _M ldr x8, [sp, #48] ; 8-byte Folded Reload ldrsw x10, [sp, #68] add x9, sp, #88 str w0, [x9, x10, lsl #2] ldrsw x10, [sp, #68] ldr w8, [x8, x10, lsl #2] ldrsw x10, [sp, #68] ldr w9, [x9, x10, lsl #2] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_10 b LBB0_9 LBB0_9: ; in Loop: Header=BB0_7 Depth=1 ldrsw x9, [sp, #68] add x8, sp, #4088 ldr w0, [x8, x9, lsl #2] ldrsw x9, [sp, #68] add x8, sp, #88 ldr w1, [x8, x9, lsl #2] add x2, sp, #3, lsl #12 ; =12288 add x2, x2, #3800 bl _H mov x9, sp ; implicit-def: $x8 mov x8, x0 str x8, [x9] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf b LBB0_11 LBB0_10: ; in Loop: Header=BB0_7 Depth=1 ldrsw x9, [sp, #68] add x8, sp, #88 ldr w0, [x8, x9, lsl #2] ldrsw x9, [sp, #68] add x8, sp, #4088 ldr w1, [x8, x9, lsl #2] add x2, sp, #3, lsl #12 ; =12288 add x2, x2, #3800 bl _H mov x9, sp ; implicit-def: $x8 mov x8, x0 str x8, [x9] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf b LBB0_11 LBB0_11: ; in Loop: Header=BB0_7 Depth=1 b LBB0_12 LBB0_12: ; in Loop: Header=BB0_7 Depth=1 ldr w8, [sp, #68] add w8, w8, #1 str w8, [sp, #68] b LBB0_7 LBB0_13: 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_15 b LBB0_14 LBB0_14: bl ___stack_chk_fail LBB0_15: mov w0, #0 add sp, sp, #4, lsl #12 ; =16384 add sp, sp, #3712 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x28, x27, [sp], #32 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .globl _N ; -- Begin function N .p2align 2 _N: ; @N .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str w0, [sp, #28] str w1, [sp, #24] str w2, [sp, #20] str x3, [sp, #8] str wzr, [sp, #4] ldr w8, [sp, #24] str w8, [sp] b LBB1_1 LBB1_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp] ldr w9, [sp, #20] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB1_4 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 ldr x8, [sp, #8] ldrsw x9, [sp] ldr w9, [x8, x9, lsl #2] ldr w8, [sp, #4] add w8, w8, w9 str w8, [sp, #4] b LBB1_3 LBB1_3: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp] add w8, w8, #1 str w8, [sp] b LBB1_1 LBB1_4: ldr w8, [sp, #4] ldr w10, [sp, #28] sdiv w9, w8, w10 mul w9, w9, w10 subs w0, w8, w9 add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _M ; -- Begin function M .p2align 2 _M: ; @M .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str w0, [sp, #28] str w1, [sp, #24] str w2, [sp, #20] str x3, [sp, #8] mov w8, #1 str w8, [sp] ldr w8, [sp, #24] str w8, [sp, #4] b LBB2_1 LBB2_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #4] ldr w9, [sp, #20] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB2_7 b LBB2_2 LBB2_2: ; in Loop: Header=BB2_1 Depth=1 ldr x8, [sp, #8] ldrsw x9, [sp, #4] ldr w8, [x8, x9, lsl #2] ldr w10, [sp, #28] sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB2_4 b LBB2_3 LBB2_3: str wzr, [sp] b LBB2_7 LBB2_4: ; in Loop: Header=BB2_1 Depth=1 ldr w8, [sp] ldr x9, [sp, #8] ldrsw x10, [sp, #4] ldr w9, [x9, x10, lsl #2] mul w8, w8, w9 ldr w10, [sp, #28] sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 str w8, [sp] 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, #4] add w8, w8, #1 str w8, [sp, #4] b LBB2_1 LBB2_7: ldr w8, [sp] ldr w10, [sp, #28] sdiv w9, w8, w10 mul w9, w9, w10 subs w0, w8, w9 add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _H ; -- Begin function H .p2align 2 _H: ; @H .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str w0, [sp, #28] str w1, [sp, #24] str x2, [sp, #16] str wzr, [sp, #8] ldr w8, [sp, #28] str w8, [sp, #12] b LBB3_1 LBB3_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #12] ldr w9, [sp, #24] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB3_4 b LBB3_2 LBB3_2: ; in Loop: Header=BB3_1 Depth=1 ldr w8, [sp, #8] ldr x9, [sp, #16] ldrsw x10, [sp, #12] ldr w9, [x9, x10, lsl #2] eor w8, w8, w9 str w8, [sp, #8] b LBB3_3 LBB3_3: ; in Loop: Header=BB3_1 Depth=1 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB3_1 LBB3_4: ldr w0, [sp, #8] add sp, sp, #32 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d%d" l_.str.1: ; @.str.1 .asciz "%d" l_.str.2: ; @.str.2 .asciz "%d %d" l_.str.3: ; @.str.3 .asciz "%d\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl $20048, %eax ## imm = 0x4E50 callq ____chkstk_darwin subq %rax, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -20020(%rbp) leaq L_.str(%rip), %rdi leaq -20024(%rbp), %rsi leaq -20028(%rbp), %rdx movb $0, %al callq _scanf movl $0, -20032(%rbp) movl $0, -20036(%rbp) leaq -4016(%rbp), %rdi xorl %esi, %esi movl $4000, %edx ## imm = 0xFA0 callq _memset leaq -8016(%rbp), %rdi xorl %esi, %esi movl $4000, %edx ## imm = 0xFA0 callq _memset leaq -12016(%rbp), %rdi xorl %esi, %esi movl $4000, %edx ## imm = 0xFA0 callq _memset leaq -16016(%rbp), %rdi xorl %esi, %esi movl $4000, %edx ## imm = 0xFA0 callq _memset leaq -20016(%rbp), %rdi xorl %esi, %esi movl $4000, %edx ## imm = 0xFA0 callq _memset LBB0_1: ## =>This Inner Loop Header: Depth=1 movl -20032(%rbp), %eax cmpl -20024(%rbp), %eax jge LBB0_3 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movslq -20032(%rbp), %rax leaq -4016(%rbp), %rsi shlq $2, %rax addq %rax, %rsi leaq L_.str.1(%rip), %rdi movb $0, %al callq _scanf movl -20032(%rbp), %eax addl $1, %eax movl %eax, -20032(%rbp) jmp LBB0_1 LBB0_3: jmp LBB0_4 LBB0_4: ## =>This Inner Loop Header: Depth=1 movl -20036(%rbp), %eax cmpl -20028(%rbp), %eax jge LBB0_6 ## %bb.5: ## in Loop: Header=BB0_4 Depth=1 movslq -20036(%rbp), %rax leaq -8016(%rbp), %rsi shlq $2, %rax addq %rax, %rsi movslq -20036(%rbp), %rax leaq -12016(%rbp), %rdx shlq $2, %rax addq %rax, %rdx leaq L_.str.2(%rip), %rdi movb $0, %al callq _scanf movl -20036(%rbp), %eax addl $1, %eax movl %eax, -20036(%rbp) jmp LBB0_4 LBB0_6: movl $0, -20036(%rbp) LBB0_7: ## =>This Inner Loop Header: Depth=1 movl -20036(%rbp), %eax cmpl -20028(%rbp), %eax jge LBB0_13 ## %bb.8: ## in Loop: Header=BB0_7 Depth=1 movl -20024(%rbp), %edi movslq -20036(%rbp), %rax movl -8016(%rbp,%rax,4), %esi movslq -20036(%rbp), %rax movl -12016(%rbp,%rax,4), %edx leaq -4016(%rbp), %rcx callq _N movl %eax, %ecx movslq -20036(%rbp), %rax movl %ecx, -16016(%rbp,%rax,4) movl -20024(%rbp), %edi movslq -20036(%rbp), %rax movl -8016(%rbp,%rax,4), %esi movslq -20036(%rbp), %rax movl -12016(%rbp,%rax,4), %edx leaq -4016(%rbp), %rcx callq _M movl %eax, %ecx movslq -20036(%rbp), %rax movl %ecx, -20016(%rbp,%rax,4) movslq -20036(%rbp), %rax movl -16016(%rbp,%rax,4), %eax movslq -20036(%rbp), %rcx cmpl -20016(%rbp,%rcx,4), %eax jg LBB0_10 ## %bb.9: ## in Loop: Header=BB0_7 Depth=1 movslq -20036(%rbp), %rax movl -16016(%rbp,%rax,4), %edi movslq -20036(%rbp), %rax movl -20016(%rbp,%rax,4), %esi leaq -4016(%rbp), %rdx callq _H movl %eax, %esi leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf jmp LBB0_11 LBB0_10: ## in Loop: Header=BB0_7 Depth=1 movslq -20036(%rbp), %rax movl -20016(%rbp,%rax,4), %edi movslq -20036(%rbp), %rax movl -16016(%rbp,%rax,4), %esi leaq -4016(%rbp), %rdx callq _H movl %eax, %esi leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf LBB0_11: ## in Loop: Header=BB0_7 Depth=1 jmp LBB0_12 LBB0_12: ## in Loop: Header=BB0_7 Depth=1 movl -20036(%rbp), %eax addl $1, %eax movl %eax, -20036(%rbp) jmp LBB0_7 LBB0_13: movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_15 ## %bb.14: xorl %eax, %eax addq $20048, %rsp ## imm = 0x4E50 popq %rbp retq LBB0_15: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _N ## -- Begin function N .p2align 4, 0x90 _N: ## @N .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, -4(%rbp) movl %esi, -8(%rbp) movl %edx, -12(%rbp) movq %rcx, -24(%rbp) movl $0, -28(%rbp) movl -8(%rbp), %eax movl %eax, -32(%rbp) LBB1_1: ## =>This Inner Loop Header: Depth=1 movl -32(%rbp), %eax cmpl -12(%rbp), %eax jg LBB1_4 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 movq -24(%rbp), %rax movslq -32(%rbp), %rcx movl (%rax,%rcx,4), %eax addl -28(%rbp), %eax movl %eax, -28(%rbp) ## %bb.3: ## in Loop: Header=BB1_1 Depth=1 movl -32(%rbp), %eax addl $1, %eax movl %eax, -32(%rbp) jmp LBB1_1 LBB1_4: movl -28(%rbp), %eax cltd idivl -4(%rbp) movl %edx, %eax popq %rbp retq .cfi_endproc ## -- End function .globl _M ## -- Begin function M .p2align 4, 0x90 _M: ## @M .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, -4(%rbp) movl %esi, -8(%rbp) movl %edx, -12(%rbp) movq %rcx, -24(%rbp) movl $1, -32(%rbp) movl -8(%rbp), %eax movl %eax, -28(%rbp) LBB2_1: ## =>This Inner Loop Header: Depth=1 movl -28(%rbp), %eax cmpl -12(%rbp), %eax jg LBB2_7 ## %bb.2: ## in Loop: Header=BB2_1 Depth=1 movq -24(%rbp), %rax movslq -28(%rbp), %rcx movl (%rax,%rcx,4), %eax cltd idivl -4(%rbp) cmpl $0, %edx jne LBB2_4 ## %bb.3: movl $0, -32(%rbp) jmp LBB2_7 LBB2_4: ## in Loop: Header=BB2_1 Depth=1 movl -32(%rbp), %eax movq -24(%rbp), %rcx movslq -28(%rbp), %rdx imull (%rcx,%rdx,4), %eax cltd idivl -4(%rbp) movl %edx, -32(%rbp) ## %bb.5: ## in Loop: Header=BB2_1 Depth=1 jmp LBB2_6 LBB2_6: ## in Loop: Header=BB2_1 Depth=1 movl -28(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) jmp LBB2_1 LBB2_7: movl -32(%rbp), %eax cltd idivl -4(%rbp) movl %edx, %eax popq %rbp retq .cfi_endproc ## -- End function .globl _H ## -- Begin function H .p2align 4, 0x90 _H: ## @H .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, -4(%rbp) movl %esi, -8(%rbp) movq %rdx, -16(%rbp) movl $0, -24(%rbp) movl -4(%rbp), %eax movl %eax, -20(%rbp) LBB3_1: ## =>This Inner Loop Header: Depth=1 movl -20(%rbp), %eax cmpl -8(%rbp), %eax jg LBB3_4 ## %bb.2: ## in Loop: Header=BB3_1 Depth=1 movl -24(%rbp), %eax movq -16(%rbp), %rcx movslq -20(%rbp), %rdx xorl (%rcx,%rdx,4), %eax movl %eax, -24(%rbp) ## %bb.3: ## in Loop: Header=BB3_1 Depth=1 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB3_1 LBB3_4: movl -24(%rbp), %eax 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" L_.str.2: ## @.str.2 .asciz "%d %d" L_.str.3: ## @.str.3 .asciz "%d\n" .subsections_via_symbols
the_stack_data/101355.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] adrp x0, l_.str.32@PAGE add x0, x0, l_.str.32@PAGEOFF bl _printf mov x9, sp sub x8, x29, #8 str x8, [x9] adrp x0, l_.str.33@PAGE add x0, x0, l_.str.33@PAGEOFF bl _scanf stur wzr, [x29, #-12] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-12] subs w8, w8, #32 cset w8, ge tbnz w8, #0, LBB0_6 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-8] ldursw x10, [x29, #-12] adrp x9, _country_codes@PAGE add x9, x9, _country_codes@PAGEOFF add x9, x9, x10, lsl #4 ldr w9, [x9, #8] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: ldur w8, [x29, #-8] ; implicit-def: $x10 mov x10, x8 ldursw x8, [x29, #-12] lsl x9, x8, #4 adrp x8, _country_codes@PAGE add x8, x8, _country_codes@PAGEOFF ldr x8, [x8, x9] mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x0, l_.str.34@PAGE add x0, x0, l_.str.34@PAGEOFF bl _printf stur wzr, [x29, #-4] b LBB0_7 LBB0_4: ; in Loop: Header=BB0_1 Depth=1 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-12] add w8, w8, #1 stur w8, [x29, #-12] b LBB0_1 LBB0_6: adrp x0, l_.str.35@PAGE add x0, x0, l_.str.35@PAGEOFF bl _printf stur wzr, [x29, #-4] b LBB0_7 LBB0_7: 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 "Argentina" l_.str.1: ; @.str.1 .asciz "Bangladesh" l_.str.2: ; @.str.2 .asciz "Brazil" l_.str.3: ; @.str.3 .asciz "Burma (Myanmar)" l_.str.4: ; @.str.4 .asciz "China" l_.str.5: ; @.str.5 .asciz "Colombia" l_.str.6: ; @.str.6 .asciz "Congo, Dem. Rep. of" l_.str.7: ; @.str.7 .asciz "Egypt" l_.str.8: ; @.str.8 .asciz "Ethiopia" l_.str.9: ; @.str.9 .asciz "France" l_.str.10: ; @.str.10 .asciz "Germany" l_.str.11: ; @.str.11 .asciz "India" l_.str.12: ; @.str.12 .asciz "Indonesia" l_.str.13: ; @.str.13 .asciz "Iran" l_.str.14: ; @.str.14 .asciz "Italy" l_.str.15: ; @.str.15 .asciz "Japan" l_.str.16: ; @.str.16 .asciz "Mexico" l_.str.17: ; @.str.17 .asciz "Nigeria" l_.str.18: ; @.str.18 .asciz "Pakistan" l_.str.19: ; @.str.19 .asciz "Philippines" l_.str.20: ; @.str.20 .asciz "Poland" l_.str.21: ; @.str.21 .asciz "Russia" l_.str.22: ; @.str.22 .asciz "South Africa" l_.str.23: ; @.str.23 .asciz "South Korea" l_.str.24: ; @.str.24 .asciz "Spain" l_.str.25: ; @.str.25 .asciz "Sudan" l_.str.26: ; @.str.26 .asciz "Thailand" l_.str.27: ; @.str.27 .asciz "Turkey" l_.str.28: ; @.str.28 .asciz "Ukraine" l_.str.29: ; @.str.29 .asciz "United Kingdom" l_.str.30: ; @.str.30 .asciz "United States" l_.str.31: ; @.str.31 .asciz "Vietnam" .section __DATA,__const .globl _country_codes ; @country_codes .p2align 3 _country_codes: .quad l_.str .long 54 ; 0x36 .space 4 .quad l_.str.1 .long 880 ; 0x370 .space 4 .quad l_.str.2 .long 55 ; 0x37 .space 4 .quad l_.str.3 .long 95 ; 0x5f .space 4 .quad l_.str.4 .long 86 ; 0x56 .space 4 .quad l_.str.5 .long 57 ; 0x39 .space 4 .quad l_.str.6 .long 243 ; 0xf3 .space 4 .quad l_.str.7 .long 20 ; 0x14 .space 4 .quad l_.str.8 .long 251 ; 0xfb .space 4 .quad l_.str.9 .long 33 ; 0x21 .space 4 .quad l_.str.10 .long 49 ; 0x31 .space 4 .quad l_.str.11 .long 91 ; 0x5b .space 4 .quad l_.str.12 .long 62 ; 0x3e .space 4 .quad l_.str.13 .long 98 ; 0x62 .space 4 .quad l_.str.14 .long 39 ; 0x27 .space 4 .quad l_.str.15 .long 81 ; 0x51 .space 4 .quad l_.str.16 .long 52 ; 0x34 .space 4 .quad l_.str.17 .long 234 ; 0xea .space 4 .quad l_.str.18 .long 92 ; 0x5c .space 4 .quad l_.str.19 .long 63 ; 0x3f .space 4 .quad l_.str.20 .long 48 ; 0x30 .space 4 .quad l_.str.21 .long 7 ; 0x7 .space 4 .quad l_.str.22 .long 27 ; 0x1b .space 4 .quad l_.str.23 .long 82 ; 0x52 .space 4 .quad l_.str.24 .long 34 ; 0x22 .space 4 .quad l_.str.25 .long 249 ; 0xf9 .space 4 .quad l_.str.26 .long 66 ; 0x42 .space 4 .quad l_.str.27 .long 90 ; 0x5a .space 4 .quad l_.str.28 .long 380 ; 0x17c .space 4 .quad l_.str.29 .long 44 ; 0x2c .space 4 .quad l_.str.30 .long 1 ; 0x1 .space 4 .quad l_.str.31 .long 84 ; 0x54 .space 4 .section __TEXT,__cstring,cstring_literals l_.str.32: ; @.str.32 .asciz "Enter dialing code: " l_.str.33: ; @.str.33 .asciz "%d" l_.str.34: ; @.str.34 .asciz "The country with dialing code %d is %s\n" l_.str.35: ; @.str.35 .asciz "No corresponding country found\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.32(%rip), %rdi movb $0, %al callq _printf leaq L_.str.33(%rip), %rdi leaq -8(%rbp), %rsi movb $0, %al callq _scanf movl $0, -12(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 cmpl $32, -12(%rbp) jge LBB0_6 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl -8(%rbp), %eax movslq -12(%rbp), %rdx leaq _country_codes(%rip), %rcx shlq $4, %rdx addq %rdx, %rcx cmpl 8(%rcx), %eax jne LBB0_4 ## %bb.3: movl -8(%rbp), %esi movslq -12(%rbp), %rcx leaq _country_codes(%rip), %rax shlq $4, %rcx addq %rcx, %rax movq (%rax), %rdx leaq L_.str.34(%rip), %rdi movb $0, %al callq _printf movl $0, -4(%rbp) jmp LBB0_7 LBB0_4: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_5 LBB0_5: ## in Loop: Header=BB0_1 Depth=1 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB0_1 LBB0_6: leaq L_.str.35(%rip), %rdi movb $0, %al callq _printf movl $0, -4(%rbp) LBB0_7: movl -4(%rbp), %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Argentina" L_.str.1: ## @.str.1 .asciz "Bangladesh" L_.str.2: ## @.str.2 .asciz "Brazil" L_.str.3: ## @.str.3 .asciz "Burma (Myanmar)" L_.str.4: ## @.str.4 .asciz "China" L_.str.5: ## @.str.5 .asciz "Colombia" L_.str.6: ## @.str.6 .asciz "Congo, Dem. Rep. of" L_.str.7: ## @.str.7 .asciz "Egypt" L_.str.8: ## @.str.8 .asciz "Ethiopia" L_.str.9: ## @.str.9 .asciz "France" L_.str.10: ## @.str.10 .asciz "Germany" L_.str.11: ## @.str.11 .asciz "India" L_.str.12: ## @.str.12 .asciz "Indonesia" L_.str.13: ## @.str.13 .asciz "Iran" L_.str.14: ## @.str.14 .asciz "Italy" L_.str.15: ## @.str.15 .asciz "Japan" L_.str.16: ## @.str.16 .asciz "Mexico" L_.str.17: ## @.str.17 .asciz "Nigeria" L_.str.18: ## @.str.18 .asciz "Pakistan" L_.str.19: ## @.str.19 .asciz "Philippines" L_.str.20: ## @.str.20 .asciz "Poland" L_.str.21: ## @.str.21 .asciz "Russia" L_.str.22: ## @.str.22 .asciz "South Africa" L_.str.23: ## @.str.23 .asciz "South Korea" L_.str.24: ## @.str.24 .asciz "Spain" L_.str.25: ## @.str.25 .asciz "Sudan" L_.str.26: ## @.str.26 .asciz "Thailand" L_.str.27: ## @.str.27 .asciz "Turkey" L_.str.28: ## @.str.28 .asciz "Ukraine" L_.str.29: ## @.str.29 .asciz "United Kingdom" L_.str.30: ## @.str.30 .asciz "United States" L_.str.31: ## @.str.31 .asciz "Vietnam" .section __DATA,__const .globl _country_codes ## @country_codes .p2align 4 _country_codes: .quad L_.str .long 54 ## 0x36 .space 4 .quad L_.str.1 .long 880 ## 0x370 .space 4 .quad L_.str.2 .long 55 ## 0x37 .space 4 .quad L_.str.3 .long 95 ## 0x5f .space 4 .quad L_.str.4 .long 86 ## 0x56 .space 4 .quad L_.str.5 .long 57 ## 0x39 .space 4 .quad L_.str.6 .long 243 ## 0xf3 .space 4 .quad L_.str.7 .long 20 ## 0x14 .space 4 .quad L_.str.8 .long 251 ## 0xfb .space 4 .quad L_.str.9 .long 33 ## 0x21 .space 4 .quad L_.str.10 .long 49 ## 0x31 .space 4 .quad L_.str.11 .long 91 ## 0x5b .space 4 .quad L_.str.12 .long 62 ## 0x3e .space 4 .quad L_.str.13 .long 98 ## 0x62 .space 4 .quad L_.str.14 .long 39 ## 0x27 .space 4 .quad L_.str.15 .long 81 ## 0x51 .space 4 .quad L_.str.16 .long 52 ## 0x34 .space 4 .quad L_.str.17 .long 234 ## 0xea .space 4 .quad L_.str.18 .long 92 ## 0x5c .space 4 .quad L_.str.19 .long 63 ## 0x3f .space 4 .quad L_.str.20 .long 48 ## 0x30 .space 4 .quad L_.str.21 .long 7 ## 0x7 .space 4 .quad L_.str.22 .long 27 ## 0x1b .space 4 .quad L_.str.23 .long 82 ## 0x52 .space 4 .quad L_.str.24 .long 34 ## 0x22 .space 4 .quad L_.str.25 .long 249 ## 0xf9 .space 4 .quad L_.str.26 .long 66 ## 0x42 .space 4 .quad L_.str.27 .long 90 ## 0x5a .space 4 .quad L_.str.28 .long 380 ## 0x17c .space 4 .quad L_.str.29 .long 44 ## 0x2c .space 4 .quad L_.str.30 .long 1 ## 0x1 .space 4 .quad L_.str.31 .long 84 ## 0x54 .space 4 .section __TEXT,__cstring,cstring_literals L_.str.32: ## @.str.32 .asciz "Enter dialing code: " L_.str.33: ## @.str.33 .asciz "%d" L_.str.34: ## @.str.34 .asciz "The country with dialing code %d is %s\n" L_.str.35: ## @.str.35 .asciz "No corresponding country found\n" .subsections_via_symbols
the_stack_data/206394507.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Signal 0" l_.str.1: ; @.str.1 .asciz "HUP" l_.str.2: ; @.str.2 .asciz "INT" l_.str.3: ; @.str.3 .asciz "QUIT" l_.str.4: ; @.str.4 .asciz "ILL" l_.str.5: ; @.str.5 .asciz "TRAP" l_.str.6: ; @.str.6 .asciz "ABRT" l_.str.7: ; @.str.7 .asciz "EMT" l_.str.8: ; @.str.8 .asciz "FPE" l_.str.9: ; @.str.9 .asciz "KILL" l_.str.10: ; @.str.10 .asciz "BUS" l_.str.11: ; @.str.11 .asciz "SEGV" l_.str.12: ; @.str.12 .asciz "SYS" l_.str.13: ; @.str.13 .asciz "PIPE" l_.str.14: ; @.str.14 .asciz "ALRM" l_.str.15: ; @.str.15 .asciz "TERM" l_.str.16: ; @.str.16 .asciz "URG" l_.str.17: ; @.str.17 .asciz "STOP" l_.str.18: ; @.str.18 .asciz "TSTP" l_.str.19: ; @.str.19 .asciz "CONT" l_.str.20: ; @.str.20 .asciz "CHLD" l_.str.21: ; @.str.21 .asciz "TTIN" l_.str.22: ; @.str.22 .asciz "TTOU" l_.str.23: ; @.str.23 .asciz "IO" l_.str.24: ; @.str.24 .asciz "XCPU" l_.str.25: ; @.str.25 .asciz "XFSZ" l_.str.26: ; @.str.26 .asciz "VTALRM" l_.str.27: ; @.str.27 .asciz "PROF" l_.str.28: ; @.str.28 .asciz "WINCH" l_.str.29: ; @.str.29 .asciz "INFO" l_.str.30: ; @.str.30 .asciz "USR1" l_.str.31: ; @.str.31 .asciz "USR2" .section __DATA,__const .globl _sys_signame ; @sys_signame .p2align 3 _sys_signame: .quad l_.str .quad l_.str.1 .quad l_.str.2 .quad l_.str.3 .quad l_.str.4 .quad l_.str.5 .quad l_.str.6 .quad l_.str.7 .quad l_.str.8 .quad l_.str.9 .quad l_.str.10 .quad l_.str.11 .quad l_.str.12 .quad l_.str.13 .quad l_.str.14 .quad l_.str.15 .quad l_.str.16 .quad l_.str.17 .quad l_.str.18 .quad l_.str.19 .quad l_.str.20 .quad l_.str.21 .quad l_.str.22 .quad l_.str.23 .quad l_.str.24 .quad l_.str.25 .quad l_.str.26 .quad l_.str.27 .quad l_.str.28 .quad l_.str.29 .quad l_.str.30 .quad l_.str.31 .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Signal 0" L_.str.1: ## @.str.1 .asciz "HUP" L_.str.2: ## @.str.2 .asciz "INT" L_.str.3: ## @.str.3 .asciz "QUIT" L_.str.4: ## @.str.4 .asciz "ILL" L_.str.5: ## @.str.5 .asciz "TRAP" L_.str.6: ## @.str.6 .asciz "ABRT" L_.str.7: ## @.str.7 .asciz "EMT" L_.str.8: ## @.str.8 .asciz "FPE" L_.str.9: ## @.str.9 .asciz "KILL" L_.str.10: ## @.str.10 .asciz "BUS" L_.str.11: ## @.str.11 .asciz "SEGV" L_.str.12: ## @.str.12 .asciz "SYS" L_.str.13: ## @.str.13 .asciz "PIPE" L_.str.14: ## @.str.14 .asciz "ALRM" L_.str.15: ## @.str.15 .asciz "TERM" L_.str.16: ## @.str.16 .asciz "URG" L_.str.17: ## @.str.17 .asciz "STOP" L_.str.18: ## @.str.18 .asciz "TSTP" L_.str.19: ## @.str.19 .asciz "CONT" L_.str.20: ## @.str.20 .asciz "CHLD" L_.str.21: ## @.str.21 .asciz "TTIN" L_.str.22: ## @.str.22 .asciz "TTOU" L_.str.23: ## @.str.23 .asciz "IO" L_.str.24: ## @.str.24 .asciz "XCPU" L_.str.25: ## @.str.25 .asciz "XFSZ" L_.str.26: ## @.str.26 .asciz "VTALRM" L_.str.27: ## @.str.27 .asciz "PROF" L_.str.28: ## @.str.28 .asciz "WINCH" L_.str.29: ## @.str.29 .asciz "INFO" L_.str.30: ## @.str.30 .asciz "USR1" L_.str.31: ## @.str.31 .asciz "USR2" .section __DATA,__const .globl _sys_signame ## @sys_signame .p2align 4 _sys_signame: .quad L_.str .quad L_.str.1 .quad L_.str.2 .quad L_.str.3 .quad L_.str.4 .quad L_.str.5 .quad L_.str.6 .quad L_.str.7 .quad L_.str.8 .quad L_.str.9 .quad L_.str.10 .quad L_.str.11 .quad L_.str.12 .quad L_.str.13 .quad L_.str.14 .quad L_.str.15 .quad L_.str.16 .quad L_.str.17 .quad L_.str.18 .quad L_.str.19 .quad L_.str.20 .quad L_.str.21 .quad L_.str.22 .quad L_.str.23 .quad L_.str.24 .quad L_.str.25 .quad L_.str.26 .quad L_.str.27 .quad L_.str.28 .quad L_.str.29 .quad L_.str.30 .quad L_.str.31 .subsections_via_symbols
the_stack_data/1156050.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, #-28] ; 4-byte Folded Spill stur wzr, [x29, #-4] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov x9, sp sub x8, x29, #12 str x8, [sp, #8] ; 8-byte Folded Spill str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF str x0, [sp, #24] ; 8-byte Folded Spill bl _scanf adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf ldr x8, [sp, #8] ; 8-byte Folded Reload ldr x0, [sp, #24] ; 8-byte Folded Reload add x8, x8, #4 mov x9, sp str x8, [x9] bl _scanf adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf ldr x0, [sp, #24] ; 8-byte Folded Reload mov x9, sp sub x8, x29, #20 str x8, [sp, #16] ; 8-byte Folded Spill str x8, [x9] bl _scanf adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf ldr x8, [sp, #16] ; 8-byte Folded Reload ldr x0, [sp, #24] ; 8-byte Folded Reload add x8, x8, #4 mov x9, sp str x8, [x9] bl _scanf ldur s0, [x29, #-12] ldur s1, [x29, #-20] fsub s0, s0, s1 fcvt d0, s0 fmov d1, #2.00000000 str d1, [sp, #32] ; 8-byte Folded Spill bl _pow ldr d1, [sp, #32] ; 8-byte Folded Reload str d0, [sp, #40] ; 8-byte Folded Spill ldur s0, [x29, #-8] ldur s2, [x29, #-16] fsub s0, s0, s2 fcvt d0, s0 bl _pow fmov d1, d0 ldr d0, [sp, #40] ; 8-byte Folded Reload fadd d0, d0, d1 fsqrt d0, d0 fcvt s0, d0 stur s0, [x29, #-24] ldur s0, [x29, #-24] fcvt d0, s0 mov x8, sp str d0, [x8] adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@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 "\nCoordenada X do Ponto 1: " l_.str.1: ; @.str.1 .asciz "%f" l_.str.2: ; @.str.2 .asciz "Coordenada Y do Ponto 1: " l_.str.3: ; @.str.3 .asciz "\nCoordenada X do Ponto 2: " l_.str.4: ; @.str.4 .asciz "Coordenada Y do Ponto 2: " l_.str.5: ; @.str.5 .asciz "\nDistancia: %.2f\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __TEXT,__literal8,8byte_literals .p2align 3 ## -- Begin function main LCPI0_0: .quad 0x4000000000000000 ## double 2 .section __TEXT,__text,regular,pure_instructions .globl _main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movl $0, -4(%rbp) leaq L_.str(%rip), %rdi movb $0, %al callq _printf leaq -16(%rbp), %rsi leaq L_.str.1(%rip), %rdi movb $0, %al callq _scanf leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf leaq -16(%rbp), %rsi addq $4, %rsi leaq L_.str.1(%rip), %rdi movb $0, %al callq _scanf leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf leaq -24(%rbp), %rsi leaq L_.str.1(%rip), %rdi movb $0, %al callq _scanf leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf leaq -24(%rbp), %rsi addq $4, %rsi leaq L_.str.1(%rip), %rdi movb $0, %al callq _scanf movss -16(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero subss -24(%rbp), %xmm0 cvtss2sd %xmm0, %xmm0 movsd LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero callq _pow movsd %xmm0, -40(%rbp) ## 8-byte Spill movss -12(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero subss -20(%rbp), %xmm0 cvtss2sd %xmm0, %xmm0 movsd LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero callq _pow movaps %xmm0, %xmm1 movsd -40(%rbp), %xmm0 ## 8-byte Reload ## xmm0 = mem[0],zero addsd %xmm1, %xmm0 sqrtsd %xmm0, %xmm0 cvtsd2ss %xmm0, %xmm0 movss %xmm0, -28(%rbp) movss -28(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 leaq L_.str.5(%rip), %rdi movb $1, %al callq _printf xorl %eax, %eax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "\nCoordenada X do Ponto 1: " L_.str.1: ## @.str.1 .asciz "%f" L_.str.2: ## @.str.2 .asciz "Coordenada Y do Ponto 1: " L_.str.3: ## @.str.3 .asciz "\nCoordenada X do Ponto 2: " L_.str.4: ## @.str.4 .asciz "Coordenada Y do Ponto 2: " L_.str.5: ## @.str.5 .asciz "\nDistancia: %.2f\n" .subsections_via_symbols
the_stack_data/115764323.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/103689.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _foo ; -- Begin function foo .p2align 2 _foo: ; @foo .cfi_startproc ; %bb.0: mov w0, #5 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] str wzr, [sp, #8] b LBB1_1 LBB1_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #8] subs w8, w8, #5 cset w8, ge tbnz w8, #0, LBB1_3 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 bl _foo str w0, [sp, #4] ldr w8, [sp, #8] add w8, w8, #1 str w8, [sp, #8] b LBB1_1 LBB1_3: bl _foo ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _foo ## -- Begin function foo .p2align 4, 0x90 _foo: ## @foo .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl $5, %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 $0, -8(%rbp) LBB1_1: ## =>This Inner Loop Header: Depth=1 cmpl $5, -8(%rbp) jge LBB1_3 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 callq _foo movl %eax, -12(%rbp) movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) jmp LBB1_1 LBB1_3: callq _foo addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/711695.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str wzr, [sp, #28] str w0, [sp, #24] str x1, [sp, #16] str wzr, [sp, #12] ldrsw x9, [sp, #24] adrp x8, _info_size@PAGE add x8, x8, _info_size@PAGEOFF ldrsb w9, [x8, x9] ldr w8, [sp, #12] add w8, w8, w9 str w8, [sp, #12] ldr w0, [sp, #12] add sp, sp, #32 ret .cfi_endproc ; -- End function .section __DATA,__data .globl _info_size ; @info_size _info_size: .asciz "INFO:size[00004]" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl $0, -4(%rbp) movl %edi, -8(%rbp) movq %rsi, -16(%rbp) movl $0, -20(%rbp) movslq -8(%rbp), %rcx leaq _info_size(%rip), %rax movsbl (%rax,%rcx), %eax addl -20(%rbp), %eax movl %eax, -20(%rbp) movl -20(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .section __DATA,__data .globl _info_size ## @info_size .p2align 4 _info_size: .asciz "INFO:size[00004] key[__x86_64]" .subsections_via_symbols
the_stack_data/54825936.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #80 .cfi_def_cfa_offset 80 stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp, #64 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] stur w0, [x29, #-8] stur x1, [x29, #-16] ldur w8, [x29, #-8] subs w8, w8, #3 cset w8, eq tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] ldr x0, [x8] ldur x8, [x29, #-16] ldr x8, [x8] mov x9, sp str x8, [x9] adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF bl _fprintf mov w8, #1 stur w8, [x29, #-4] b LBB0_18 LBB0_2: ldur x8, [x29, #-16] ldr x0, [x8, #8] bl _atoi stur w0, [x29, #-20] ldur x8, [x29, #-16] ldr x8, [x8, #16] str x8, [sp, #32] ldr x0, [sp, #32] adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF bl _fopen str x0, [sp, #24] ldr x8, [sp, #24] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: ldr x8, [sp, #32] mov x9, sp str x8, [x9] mov w0, #66 adrp x1, l_.str.2@PAGE add x1, x1, l_.str.2@PAGEOFF bl _err LBB0_4: ldr x8, [sp, #24] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf mov w8, #1 stur w8, [x29, #-4] b LBB0_18 LBB0_6: ldur w8, [x29, #-20] subs w8, w8, #32 cset w8, ne tbnz w8, #0, LBB0_11 b LBB0_7 LBB0_7: b LBB0_8 LBB0_8: ; =>This Inner Loop Header: Depth=1 ldr x3, [sp, #24] add x0, sp, #20 mov x1, #4 mov x2, #1 bl _fread subs x8, x0, #1 cset w8, ne tbnz w8, #0, LBB0_10 b LBB0_9 LBB0_9: ; in Loop: Header=BB0_8 Depth=1 ldr w9, [sp, #20] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf b LBB0_8 LBB0_10: b LBB0_17 LBB0_11: ldur w8, [x29, #-20] subs w8, w8, #64 cset w8, ne tbnz w8, #0, LBB0_16 b LBB0_12 LBB0_12: b LBB0_13 LBB0_13: ; =>This Inner Loop Header: Depth=1 ldr x3, [sp, #24] add x0, sp, #8 mov x1, #8 mov x2, #1 bl _fread subs x8, x0, #1 cset w8, ne tbnz w8, #0, LBB0_15 b LBB0_14 LBB0_14: ; in Loop: Header=BB0_13 Depth=1 ldr x8, [sp, #8] mov x9, sp str x8, [x9] adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf b LBB0_13 LBB0_15: b LBB0_16 LBB0_16: b LBB0_17 LBB0_17: ldr x0, [sp, #24] bl _fclose stur wzr, [x29, #-4] b LBB0_18 LBB0_18: ldur w0, [x29, #-4] ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "usage:\t%s <size> <input file>\n" l_.str.1: ; @.str.1 .asciz "rb" l_.str.2: ; @.str.2 .asciz "Cannot open \"%s\"" l_.str.3: ; @.str.3 .asciz "Unable to open file!" l_.str.4: ; @.str.4 .asciz "%u\n" l_.str.5: ; @.str.5 .asciz "%llu\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $64, %rsp movl $0, -4(%rbp) movl %edi, -8(%rbp) movq %rsi, -16(%rbp) cmpl $3, -8(%rbp) je LBB0_2 ## %bb.1: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movq -16(%rbp), %rax movq (%rax), %rdx leaq L_.str(%rip), %rsi movb $0, %al callq _fprintf movl $1, -4(%rbp) jmp LBB0_18 LBB0_2: movq -16(%rbp), %rax movq 8(%rax), %rdi callq _atoi movl %eax, -20(%rbp) movq -16(%rbp), %rax movq 16(%rax), %rax movq %rax, -32(%rbp) movq -32(%rbp), %rdi leaq L_.str.1(%rip), %rsi callq _fopen movq %rax, -40(%rbp) cmpq $0, -40(%rbp) jne LBB0_4 ## %bb.3: movq -32(%rbp), %rdx leaq L_.str.2(%rip), %rsi xorl %eax, %eax ## kill: def $al killed $al killed $eax movl $66, %edi callq _err LBB0_4: cmpq $0, -40(%rbp) jne LBB0_6 ## %bb.5: leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf movl $1, -4(%rbp) jmp LBB0_18 LBB0_6: cmpl $32, -20(%rbp) jne LBB0_11 ## %bb.7: jmp LBB0_8 LBB0_8: ## =>This Inner Loop Header: Depth=1 leaq -44(%rbp), %rdi movq -40(%rbp), %rcx movl $4, %esi movl $1, %edx callq _fread cmpq $1, %rax jne LBB0_10 ## %bb.9: ## in Loop: Header=BB0_8 Depth=1 movl -44(%rbp), %esi leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf jmp LBB0_8 LBB0_10: jmp LBB0_17 LBB0_11: cmpl $64, -20(%rbp) jne LBB0_16 ## %bb.12: jmp LBB0_13 LBB0_13: ## =>This Inner Loop Header: Depth=1 leaq -56(%rbp), %rdi movq -40(%rbp), %rcx movl $8, %esi movl $1, %edx callq _fread cmpq $1, %rax jne LBB0_15 ## %bb.14: ## in Loop: Header=BB0_13 Depth=1 movq -56(%rbp), %rsi leaq L_.str.5(%rip), %rdi movb $0, %al callq _printf jmp LBB0_13 LBB0_15: jmp LBB0_16 LBB0_16: jmp LBB0_17 LBB0_17: movq -40(%rbp), %rdi callq _fclose movl $0, -4(%rbp) LBB0_18: movl -4(%rbp), %eax addq $64, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "usage:\t%s <size> <input file>\n" L_.str.1: ## @.str.1 .asciz "rb" L_.str.2: ## @.str.2 .asciz "Cannot open \"%s\"" L_.str.3: ## @.str.3 .asciz "Unable to open file!" L_.str.4: ## @.str.4 .asciz "%u\n" L_.str.5: ## @.str.5 .asciz "%llu\n" .subsections_via_symbols
the_stack_data/242329546.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] mov w8, #10 stur w8, [x29, #-8] mov w8, #9 stur w8, [x29, #-12] stur wzr, [x29, #-16] ldur w8, [x29, #-8] add w9, w8, #1 stur w9, [x29, #-8] ldur w9, [x29, #-12] add w10, w9, #1 stur w10, [x29, #-12] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: ldur w8, [x29, #-8] add w9, w8, #1 stur w9, [x29, #-8] stur w8, [x29, #-20] ; 4-byte Folded Spill b LBB0_3 LBB0_2: ldur w8, [x29, #-12] add w9, w8, #1 stur w9, [x29, #-12] stur w8, [x29, #-20] ; 4-byte Folded Spill b LBB0_3 LBB0_3: ldur w8, [x29, #-20] ; 4-byte Folded Reload stur w8, [x29, #-16] ldur w8, [x29, #-8] ; implicit-def: $x11 mov x11, x8 ldur w8, [x29, #-12] ; implicit-def: $x10 mov x10, x8 ldur w9, [x29, #-16] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x11, [x9] str x10, [x9, #8] str x8, [x9, #16] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldur w0, [x29, #-4] ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d %d %d" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl $0, -4(%rbp) movl $10, -8(%rbp) movl $9, -12(%rbp) movl $0, -16(%rbp) movl -8(%rbp), %eax movl %eax, %ecx addl $1, %ecx movl %ecx, -8(%rbp) movl -12(%rbp), %ecx movl %ecx, %edx addl $1, %edx movl %edx, -12(%rbp) cmpl %ecx, %eax jle LBB0_2 ## %bb.1: movl -8(%rbp), %eax movl %eax, %ecx addl $1, %ecx movl %ecx, -8(%rbp) movl %eax, -20(%rbp) ## 4-byte Spill jmp LBB0_3 LBB0_2: movl -12(%rbp), %eax movl %eax, %ecx addl $1, %ecx movl %ecx, -12(%rbp) movl %eax, -20(%rbp) ## 4-byte Spill LBB0_3: movl -20(%rbp), %eax ## 4-byte Reload movl %eax, -16(%rbp) movl -8(%rbp), %esi movl -12(%rbp), %edx movl -16(%rbp), %ecx leaq L_.str(%rip), %rdi movb $0, %al callq _printf movl -4(%rbp), %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d %d %d" .subsections_via_symbols
the_stack_data/1173.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/60520.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, #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, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] str x8, [sp, #64] ; 8-byte Folded Spill adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] stur wzr, [x29, #-156] stur w0, [x29, #-160] stur x1, [x29, #-168] add x8, sp, #111 str x8, [sp, #96] ldur w8, [x29, #-160] subs w8, w8, #9 cset w8, eq tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: bl _usage b LBB0_2 LBB0_2: ldur x8, [x29, #-168] ldr x8, [x8, #8] str x8, [sp, #144] ldur x8, [x29, #-168] ldr x0, [x8, #40] add x1, sp, #96 mov w2, #0 bl _strtol mov x8, x0 str w8, [sp, #88] ldr x8, [sp, #96] ldrsb w8, [x8] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: bl _usage b LBB0_4 LBB0_4: ldur x8, [x29, #-168] ldr x0, [x8, #48] add x1, sp, #96 mov w2, #0 bl _strtol mov x8, x0 str w8, [sp, #84] ldr x8, [sp, #96] ldrsb w8, [x8] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: bl _usage b LBB0_6 LBB0_6: ldr x8, [sp, #64] ; 8-byte Folded Reload ldur x9, [x29, #-168] ldr x9, [x9, #16] str x9, [sp, #136] ldur x9, [x29, #-168] ldr x9, [x9, #24] str x9, [sp, #128] ldur x9, [x29, #-168] ldr x9, [x9, #32] str x9, [sp, #120] ldur x9, [x29, #-168] ldr x9, [x9, #56] str x9, [sp, #112] ldr x0, [x8] adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF str x1, [sp, #56] ; 8-byte Folded Spill bl _fprintf ldr x8, [sp, #64] ; 8-byte Folded Reload ldr x0, [x8] ldur x8, [x29, #-168] ldr x8, [x8, #64] mov x9, sp str x8, [x9] adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF bl _fprintf ldr x8, [sp, #64] ; 8-byte Folded Reload ldr x0, [x8] ldr x8, [sp, #144] mov x9, sp str x8, [x9] adrp x1, l_.str.2@PAGE add x1, x1, l_.str.2@PAGEOFF bl _fprintf ldr x8, [sp, #64] ; 8-byte Folded Reload ldr x0, [x8] ldr x8, [sp, #136] mov x9, sp str x8, [x9] adrp x1, l_.str.3@PAGE add x1, x1, l_.str.3@PAGEOFF bl _fprintf ldr x8, [sp, #64] ; 8-byte Folded Reload ldr x0, [x8] ldr x8, [sp, #128] mov x9, sp str x8, [x9] adrp x1, l_.str.4@PAGE add x1, x1, l_.str.4@PAGEOFF bl _fprintf ldr x8, [sp, #64] ; 8-byte Folded Reload ldr x0, [x8] ldr x8, [sp, #120] mov x9, sp str x8, [x9] adrp x1, l_.str.5@PAGE add x1, x1, l_.str.5@PAGEOFF bl _fprintf ldr x8, [sp, #64] ; 8-byte Folded Reload ldr x0, [x8] ldr w9, [sp, #88] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x1, l_.str.6@PAGE add x1, x1, l_.str.6@PAGEOFF bl _fprintf ldr x8, [sp, #64] ; 8-byte Folded Reload ldr x0, [x8] ldr w9, [sp, #84] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x1, l_.str.7@PAGE add x1, x1, l_.str.7@PAGEOFF bl _fprintf ldr x8, [sp, #64] ; 8-byte Folded Reload ldr x0, [x8] ldr x8, [sp, #112] mov x9, sp str x8, [x9] adrp x1, l_.str.8@PAGE add x1, x1, l_.str.8@PAGEOFF bl _fprintf ldr x8, [sp, #64] ; 8-byte Folded Reload ldr x1, [sp, #56] ; 8-byte Folded Reload ldr x0, [x8] bl _fprintf ldur x8, [x29, #-168] ldr x0, [x8, #64] adrp x1, l_.str.9@PAGE add x1, x1, l_.str.9@PAGEOFF bl _fopen str x0, [sp, #72] ldr x8, [sp, #72] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB0_8 b LBB0_7 LBB0_7: adrp x0, _Eopen@PAGE add x0, x0, _Eopen@PAGEOFF bl _fatal b LBB0_8 LBB0_8: mov x0, #65536 bl _malloc str x0, [sp, #152] ldr x8, [sp, #152] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB0_10 b LBB0_9 LBB0_9: adrp x0, _Emalloc@PAGE add x0, x0, _Emalloc@PAGEOFF bl _fatal b LBB0_10 LBB0_10: mov w8, #8192 str w8, [sp, #160] str wzr, [sp, #164] mov x0, #32768 bl _malloc str x0, [sp, #168] ldr x8, [sp, #168] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB0_12 b LBB0_11 LBB0_11: adrp x0, _Emalloc@PAGE add x0, x0, _Emalloc@PAGEOFF bl _fatal b LBB0_12 LBB0_12: mov w8, #8192 str w8, [sp, #176] str wzr, [sp, #180] mov x0, #32768 bl _malloc str x0, [sp, #184] ldr x8, [sp, #184] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB0_14 b LBB0_13 LBB0_13: adrp x0, _Emalloc@PAGE add x0, x0, _Emalloc@PAGEOFF bl _fatal b LBB0_14 LBB0_14: mov w8, #8192 str w8, [sp, #192] str wzr, [sp, #196] mov x0, #32768 bl _malloc str x0, [sp, #200] ldr x8, [sp, #200] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB0_16 b LBB0_15 LBB0_15: adrp x0, _Emalloc@PAGE add x0, x0, _Emalloc@PAGEOFF bl _fatal b LBB0_16 LBB0_16: mov w8, #8192 str w8, [sp, #208] str wzr, [sp, #212] mov x0, #32768 bl _malloc str x0, [sp, #216] ldr x8, [sp, #216] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB0_18 b LBB0_17 LBB0_17: adrp x0, _Emalloc@PAGE add x0, x0, _Emalloc@PAGEOFF bl _fatal b LBB0_18 LBB0_18: mov w8, #8192 str w8, [sp, #224] str wzr, [sp, #228] mov x0, #32768 bl _malloc str x0, [sp, #232] ldr x8, [sp, #232] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB0_20 b LBB0_19 LBB0_19: adrp x0, _Emalloc@PAGE add x0, x0, _Emalloc@PAGEOFF bl _fatal b LBB0_20 LBB0_20: mov w8, #8192 str w8, [sp, #240] str wzr, [sp, #244] mov x0, #32768 bl _malloc str x0, [sp, #248] ldr x8, [sp, #248] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB0_22 b LBB0_21 LBB0_21: adrp x0, _Emalloc@PAGE add x0, x0, _Emalloc@PAGEOFF bl _fatal b LBB0_22 LBB0_22: mov w8, #8192 str w8, [sp, #256] str wzr, [sp, #260] ldr w8, [sp, #88] str w8, [sp, #92] b LBB0_23 LBB0_23: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #92] ldr w9, [sp, #84] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_30 b LBB0_24 LBB0_24: ; in Loop: Header=BB0_23 Depth=1 ldr x11, [sp, #144] ldr w8, [sp, #92] ; implicit-def: $x10 mov x10, x8 ldr x8, [sp, #136] mov x9, sp str x11, [x9] str x10, [x9, #8] str x8, [x9, #16] sub x0, x29, #88 mov x3, #64 str x3, [sp, #40] ; 8-byte Folded Spill mov x1, x3 mov w2, #0 str w2, [sp, #36] ; 4-byte Folded Spill adrp x4, l_.str.10@PAGE add x4, x4, l_.str.10@PAGEOFF str x4, [sp, #48] ; 8-byte Folded Spill bl ___snprintf_chk ldr w2, [sp, #36] ; 4-byte Folded Reload ldr x3, [sp, #40] ; 8-byte Folded Reload ldr x4, [sp, #48] ; 8-byte Folded Reload ldr x11, [sp, #144] ldr w8, [sp, #92] ; implicit-def: $x10 mov x10, x8 ldr x8, [sp, #128] mov x9, sp str x11, [x9] str x10, [x9, #8] str x8, [x9, #16] sub x0, x29, #152 mov x1, x3 bl ___snprintf_chk ldr x0, [sp, #72] bl _rewind ldr x0, [sp, #112] adrp x1, l_.str.11@PAGE add x1, x1, l_.str.11@PAGEOFF mov x2, #1 bl _strncmp subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB0_26 b LBB0_25 LBB0_25: ; in Loop: Header=BB0_23 Depth=1 ldr x1, [sp, #72] ldr x4, [sp, #120] add x0, sp, #152 sub x2, x29, #88 sub x3, x29, #152 bl _parsesflog b LBB0_26 LBB0_26: ; in Loop: Header=BB0_23 Depth=1 ldr x0, [sp, #112] adrp x1, l_.str.12@PAGE add x1, x1, l_.str.12@PAGEOFF mov x2, #1 bl _strncmp subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB0_28 b LBB0_27 LBB0_27: ; in Loop: Header=BB0_23 Depth=1 ldr x1, [sp, #72] ldr w4, [sp, #92] add x0, sp, #152 sub x2, x29, #88 sub x3, x29, #152 bl _parsenetlog b LBB0_28 LBB0_28: ; in Loop: Header=BB0_23 Depth=1 b LBB0_29 LBB0_29: ; in Loop: Header=BB0_23 Depth=1 ldr w8, [sp, #92] add w8, w8, #1 str w8, [sp, #92] b LBB0_23 LBB0_30: ldr x0, [sp, #112] adrp x1, l_.str.11@PAGE add x1, x1, l_.str.11@PAGEOFF mov x2, #1 bl _strncmp subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB0_36 b LBB0_31 LBB0_31: str wzr, [sp, #92] b LBB0_32 LBB0_32: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #92] ldr w9, [sp, #164] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_35 b LBB0_33 LBB0_33: ; in Loop: Header=BB0_32 Depth=1 ldr x8, [sp, #152] ldrsw x9, [sp, #92] ldr d0, [x8, x9, lsl #3] mov x8, sp str d0, [x8] adrp x0, l_.str.13@PAGE add x0, x0, l_.str.13@PAGEOFF bl _printf b LBB0_34 LBB0_34: ; in Loop: Header=BB0_32 Depth=1 ldr w8, [sp, #92] add w8, w8, #1 str w8, [sp, #92] b LBB0_32 LBB0_35: b LBB0_36 LBB0_36: ldr x0, [sp, #112] adrp x1, l_.str.12@PAGE add x1, x1, l_.str.12@PAGEOFF mov x2, #1 bl _strncmp subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB0_62 b LBB0_37 LBB0_37: str wzr, [sp, #92] b LBB0_38 LBB0_38: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #92] ldr w9, [sp, #180] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_41 b LBB0_39 LBB0_39: ; in Loop: Header=BB0_38 Depth=1 ldr x8, [sp, #168] ldrsw x9, [sp, #92] ldr w9, [x8, x9, lsl #2] ; 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 b LBB0_40 LBB0_40: ; in Loop: Header=BB0_38 Depth=1 ldr w8, [sp, #92] add w8, w8, #1 str w8, [sp, #92] b LBB0_38 LBB0_41: str wzr, [sp, #92] b LBB0_42 LBB0_42: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #92] ldr w9, [sp, #196] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_45 b LBB0_43 LBB0_43: ; in Loop: Header=BB0_42 Depth=1 ldr x8, [sp, #184] ldrsw x9, [sp, #92] ldr w9, [x8, x9, lsl #2] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.15@PAGE add x0, x0, l_.str.15@PAGEOFF bl _printf b LBB0_44 LBB0_44: ; in Loop: Header=BB0_42 Depth=1 ldr w8, [sp, #92] add w8, w8, #1 str w8, [sp, #92] b LBB0_42 LBB0_45: str wzr, [sp, #92] b LBB0_46 LBB0_46: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #92] ldr w9, [sp, #212] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_49 b LBB0_47 LBB0_47: ; in Loop: Header=BB0_46 Depth=1 ldr x8, [sp, #200] ldrsw x9, [sp, #92] ldr w9, [x8, x9, lsl #2] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.16@PAGE add x0, x0, l_.str.16@PAGEOFF bl _printf b LBB0_48 LBB0_48: ; in Loop: Header=BB0_46 Depth=1 ldr w8, [sp, #92] add w8, w8, #1 str w8, [sp, #92] b LBB0_46 LBB0_49: str wzr, [sp, #92] b LBB0_50 LBB0_50: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #92] ldr w9, [sp, #228] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_53 b LBB0_51 LBB0_51: ; in Loop: Header=BB0_50 Depth=1 ldr x8, [sp, #216] ldrsw x9, [sp, #92] ldr w9, [x8, x9, lsl #2] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.17@PAGE add x0, x0, l_.str.17@PAGEOFF bl _printf b LBB0_52 LBB0_52: ; in Loop: Header=BB0_50 Depth=1 ldr w8, [sp, #92] add w8, w8, #1 str w8, [sp, #92] b LBB0_50 LBB0_53: str wzr, [sp, #92] b LBB0_54 LBB0_54: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #92] ldr w9, [sp, #244] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_57 b LBB0_55 LBB0_55: ; in Loop: Header=BB0_54 Depth=1 ldr x8, [sp, #232] ldrsw x9, [sp, #92] ldr w9, [x8, x9, lsl #2] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.18@PAGE add x0, x0, l_.str.18@PAGEOFF bl _printf b LBB0_56 LBB0_56: ; in Loop: Header=BB0_54 Depth=1 ldr w8, [sp, #92] add w8, w8, #1 str w8, [sp, #92] b LBB0_54 LBB0_57: str wzr, [sp, #92] b LBB0_58 LBB0_58: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #92] ldr w9, [sp, #260] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_61 b LBB0_59 LBB0_59: ; in Loop: Header=BB0_58 Depth=1 ldr x8, [sp, #248] ldrsw x9, [sp, #92] ldr w9, [x8, x9, lsl #2] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.19@PAGE add x0, x0, l_.str.19@PAGEOFF bl _printf b LBB0_60 LBB0_60: ; in Loop: Header=BB0_58 Depth=1 ldr w8, [sp, #92] add w8, w8, #1 str w8, [sp, #92] b LBB0_58 LBB0_61: b LBB0_62 LBB0_62: ldr x0, [sp, #72] bl _fclose ldur x9, [x29, #-24] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_64 b LBB0_63 LBB0_63: bl ___stack_chk_fail LBB0_64: mov w0, #0 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 _usage ; -- Begin function usage .p2align 2 _usage: ; @usage .cfi_startproc ; %bb.0: stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill .cfi_def_cfa_offset 16 mov x29, sp .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] ldr x0, [x8] adrp x1, l_.str.25@PAGE add x1, x1, l_.str.25@PAGEOFF bl _fprintf mov w0, #-1 bl _exit .cfi_endproc ; -- End function .globl _fatal ; -- Begin function fatal .p2align 2 _fatal: ; @fatal .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #8] adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] ldr x0, [x8] ldr x8, [sp, #8] mov x9, sp str x8, [x9] adrp x1, l_.str.26@PAGE add x1, x1, l_.str.26@PAGEOFF bl _fprintf mov w0, #-1 bl _exit .cfi_endproc ; -- End function .globl _parsesflog ; -- Begin function parsesflog .p2align 2 _parsesflog: ; @parsesflog .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, #1104 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] str x0, [sp, #64] str x1, [sp, #56] str x2, [sp, #48] str x3, [sp, #40] str x4, [sp, #32] b LBB3_1 LBB3_1: ; =>This Loop Header: Depth=1 ; Child Loop BB3_2 Depth 2 ; Child Loop BB3_7 Depth 2 ; Child Loop BB3_14 Depth 2 ; Child Loop BB3_19 Depth 2 b LBB3_2 LBB3_2: ; Parent Loop BB3_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr x2, [sp, #56] add x0, sp, #72 mov w1, #1024 bl _fgets subs x8, x0, #0 cset w8, eq tbnz w8, #0, LBB3_6 b LBB3_3 LBB3_3: ; in Loop: Header=BB3_2 Depth=2 ldr x1, [sp, #48] add x0, sp, #72 bl _strstr subs x8, x0, #0 cset w8, eq tbnz w8, #0, LBB3_5 b LBB3_4 LBB3_4: ; in Loop: Header=BB3_1 Depth=1 b LBB3_6 LBB3_5: ; in Loop: Header=BB3_2 Depth=2 b LBB3_2 LBB3_6: ; in Loop: Header=BB3_1 Depth=1 b LBB3_7 LBB3_7: ; Parent Loop BB3_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr x2, [sp, #56] add x0, sp, #72 mov w1, #1024 bl _fgets subs x8, x0, #0 cset w8, eq tbnz w8, #0, LBB3_13 b LBB3_8 LBB3_8: ; in Loop: Header=BB3_7 Depth=2 ldr x1, [sp, #48] add x0, sp, #72 bl _strstr subs x8, x0, #0 cset w8, eq tbnz w8, #0, LBB3_10 b LBB3_9 LBB3_9: ; in Loop: Header=BB3_1 Depth=1 b LBB3_13 LBB3_10: ; in Loop: Header=BB3_7 Depth=2 ldr x1, [sp, #32] add x0, sp, #72 bl _strstr subs x8, x0, #0 cset w8, ne tbnz w8, #0, LBB3_12 b LBB3_11 LBB3_11: ; in Loop: Header=BB3_7 Depth=2 b LBB3_7 LBB3_12: ; in Loop: Header=BB3_7 Depth=2 mov x9, sp add x8, sp, #24 str x8, [x9] add x0, sp, #72 adrp x1, l_.str.20@PAGE add x1, x1, l_.str.20@PAGEOFF bl _sscanf b LBB3_7 LBB3_13: ; in Loop: Header=BB3_1 Depth=1 b LBB3_14 LBB3_14: ; Parent Loop BB3_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr x2, [sp, #56] add x0, sp, #72 mov w1, #1024 bl _fgets subs x8, x0, #0 cset w8, eq tbnz w8, #0, LBB3_18 b LBB3_15 LBB3_15: ; in Loop: Header=BB3_14 Depth=2 ldr x1, [sp, #40] add x0, sp, #72 bl _strstr subs x8, x0, #0 cset w8, eq tbnz w8, #0, LBB3_17 b LBB3_16 LBB3_16: ; in Loop: Header=BB3_1 Depth=1 b LBB3_18 LBB3_17: ; in Loop: Header=BB3_14 Depth=2 b LBB3_14 LBB3_18: ; in Loop: Header=BB3_1 Depth=1 b LBB3_19 LBB3_19: ; Parent Loop BB3_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr x2, [sp, #56] add x0, sp, #72 mov w1, #1024 bl _fgets subs x8, x0, #0 cset w8, eq tbnz w8, #0, LBB3_29 b LBB3_20 LBB3_20: ; in Loop: Header=BB3_19 Depth=2 ldr x1, [sp, #40] add x0, sp, #72 bl _strstr subs x8, x0, #0 cset w8, eq tbnz w8, #0, LBB3_22 b LBB3_21 LBB3_21: ; in Loop: Header=BB3_1 Depth=1 b LBB3_29 LBB3_22: ; in Loop: Header=BB3_19 Depth=2 ldr x1, [sp, #32] add x0, sp, #72 bl _strstr subs x8, x0, #0 cset w8, ne tbnz w8, #0, LBB3_24 b LBB3_23 LBB3_23: ; in Loop: Header=BB3_19 Depth=2 b LBB3_19 LBB3_24: ; in Loop: Header=BB3_19 Depth=2 mov x9, sp add x8, sp, #16 str x8, [x9] add x0, sp, #72 adrp x1, l_.str.20@PAGE add x1, x1, l_.str.20@PAGEOFF bl _sscanf ldr d1, [sp, #24] ldr d0, [sp, #16] fsub d0, d0, d1 str d0, [sp, #16] ldr d0, [sp, #16] ldr x8, [sp, #64] ldr x8, [x8] ldr x11, [sp, #64] ldrsw x9, [x11, #12] mov x10, x9 add w10, w10, #1 str w10, [x11, #12] str d0, [x8, x9, lsl #3] ldr x8, [sp, #64] ldr w8, [x8, #12] ldr x9, [sp, #64] ldr w9, [x9, #8] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB3_28 b LBB3_25 LBB3_25: ; in Loop: Header=BB3_19 Depth=2 ldr x9, [sp, #64] ldr w8, [x9, #8] lsl w8, w8, #1 str w8, [x9, #8] ldr x8, [sp, #64] ldr x0, [x8] ldr x8, [sp, #64] ldrsw x8, [x8, #8] lsl x1, x8, #3 bl _realloc ldr x8, [sp, #64] str x0, [x8] ldr x8, [sp, #64] ldr x8, [x8] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB3_27 b LBB3_26 LBB3_26: ; in Loop: Header=BB3_19 Depth=2 adrp x0, _Emalloc@PAGE add x0, x0, _Emalloc@PAGEOFF bl _fatal b LBB3_27 LBB3_27: ; in Loop: Header=BB3_19 Depth=2 b LBB3_28 LBB3_28: ; in Loop: Header=BB3_19 Depth=2 b LBB3_19 LBB3_29: ; in Loop: Header=BB3_1 Depth=1 b LBB3_30 LBB3_30: ; in Loop: Header=BB3_1 Depth=1 ldr x0, [sp, #56] bl _feof subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB3_1 b LBB3_31 LBB3_31: 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_33 b LBB3_32 LBB3_32: bl ___stack_chk_fail LBB3_33: add sp, sp, #1104 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x28, x27, [sp], #32 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .globl _parsenetlog ; -- Begin function parsenetlog .p2align 2 _parsenetlog: ; @parsenetlog .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, #1120 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] str x3, [sp, #56] str w4, [sp, #52] str wzr, [sp, #48] str wzr, [sp, #44] str wzr, [sp, #40] str wzr, [sp, #36] str wzr, [sp, #32] str wzr, [sp, #28] str wzr, [sp, #24] b LBB4_1 LBB4_1: ; =>This Loop Header: Depth=1 ; Child Loop BB4_2 Depth 2 ; Child Loop BB4_7 Depth 2 ; Child Loop BB4_12 Depth 2 b LBB4_2 LBB4_2: ; Parent Loop BB4_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr x2, [sp, #72] add x0, sp, #88 mov w1, #1024 bl _fgets subs x8, x0, #0 cset w8, eq tbnz w8, #0, LBB4_6 b LBB4_3 LBB4_3: ; in Loop: Header=BB4_2 Depth=2 ldr x1, [sp, #64] add x0, sp, #88 bl _strstr subs x8, x0, #0 cset w8, eq tbnz w8, #0, LBB4_5 b LBB4_4 LBB4_4: ; in Loop: Header=BB4_1 Depth=1 b LBB4_6 LBB4_5: ; in Loop: Header=BB4_2 Depth=2 b LBB4_2 LBB4_6: ; in Loop: Header=BB4_1 Depth=1 b LBB4_7 LBB4_7: ; Parent Loop BB4_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr x2, [sp, #72] add x0, sp, #88 mov w1, #1024 bl _fgets subs x8, x0, #0 cset w8, eq tbnz w8, #0, LBB4_11 b LBB4_8 LBB4_8: ; in Loop: Header=BB4_7 Depth=2 ldr x1, [sp, #64] add x0, sp, #88 bl _strstr subs x8, x0, #0 cset w8, eq tbnz w8, #0, LBB4_10 b LBB4_9 LBB4_9: ; in Loop: Header=BB4_1 Depth=1 b LBB4_11 LBB4_10: ; in Loop: Header=BB4_7 Depth=2 b LBB4_7 LBB4_11: ; in Loop: Header=BB4_1 Depth=1 str wzr, [sp, #44] str wzr, [sp, #40] str wzr, [sp, #36] str wzr, [sp, #32] str wzr, [sp, #28] str wzr, [sp, #24] b LBB4_12 LBB4_12: ; Parent Loop BB4_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr x2, [sp, #72] add x0, sp, #88 mov w1, #1024 bl _fgets subs x8, x0, #0 cset w8, eq tbnz w8, #0, LBB4_29 b LBB4_13 LBB4_13: ; in Loop: Header=BB4_12 Depth=2 ldr x1, [sp, #56] add x0, sp, #88 bl _strstr subs x8, x0, #0 cset w8, eq tbnz w8, #0, LBB4_15 b LBB4_14 LBB4_14: ; in Loop: Header=BB4_1 Depth=1 b LBB4_29 LBB4_15: ; in Loop: Header=BB4_12 Depth=2 add x0, sp, #88 adrp x1, l_.str.21@PAGE add x1, x1, l_.str.21@PAGEOFF bl _strstr subs x8, x0, #0 cset w8, eq tbnz w8, #0, LBB4_17 b LBB4_16 LBB4_16: ; in Loop: Header=BB4_12 Depth=2 mov x9, sp add x8, sp, #48 str x8, [x9] add x0, sp, #88 adrp x1, l_.str.22@PAGE add x1, x1, l_.str.22@PAGEOFF bl _sscanf ldr w8, [sp, #48] mov w9, #8 sdiv w8, w8, w9 str w8, [sp, #48] b LBB4_17 LBB4_17: ; in Loop: Header=BB4_12 Depth=2 add x0, sp, #88 adrp x1, l_.str.23@PAGE add x1, x1, l_.str.23@PAGEOFF bl _strstr subs x8, x0, #0 cset w8, eq tbnz w8, #0, LBB4_21 b LBB4_18 LBB4_18: ; in Loop: Header=BB4_12 Depth=2 mov x9, sp add x8, sp, #20 str x8, [x9] add x0, sp, #88 adrp x1, l_.str.22@PAGE add x1, x1, l_.str.22@PAGEOFF bl _sscanf ldr w8, [sp, #20] ldr w9, [sp, #52] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB4_20 b LBB4_19 LBB4_19: ; in Loop: Header=BB4_12 Depth=2 ldr w8, [sp, #44] add w8, w8, #1 str w8, [sp, #44] ldr w9, [sp, #48] ldr w8, [sp, #24] add w8, w8, w9 str w8, [sp, #24] b LBB4_20 LBB4_20: ; in Loop: Header=BB4_12 Depth=2 b LBB4_21 LBB4_21: ; in Loop: Header=BB4_12 Depth=2 add x0, sp, #88 adrp x1, l_.str.24@PAGE add x1, x1, l_.str.24@PAGEOFF bl _strstr subs x8, x0, #0 cset w8, eq tbnz w8, #0, LBB4_28 b LBB4_22 LBB4_22: ; in Loop: Header=BB4_12 Depth=2 mov x9, sp add x8, sp, #16 str x8, [x9] add x0, sp, #88 adrp x1, l_.str.22@PAGE add x1, x1, l_.str.22@PAGEOFF bl _sscanf ldr w8, [sp, #16] ldr w9, [sp, #52] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB4_24 b LBB4_23 LBB4_23: ; in Loop: Header=BB4_12 Depth=2 ldr w8, [sp, #40] add w8, w8, #1 str w8, [sp, #40] ldr w9, [sp, #48] ldr w8, [sp, #32] add w8, w8, w9 str w8, [sp, #32] b LBB4_27 LBB4_24: ; in Loop: Header=BB4_12 Depth=2 ldr w8, [sp, #16] adds w8, w8, #2 cset w8, ne tbnz w8, #0, LBB4_26 b LBB4_25 LBB4_25: ; in Loop: Header=BB4_12 Depth=2 ldr w8, [sp, #36] add w8, w8, #1 str w8, [sp, #36] ldr w9, [sp, #48] ldr w8, [sp, #28] add w8, w8, w9 str w8, [sp, #28] b LBB4_26 LBB4_26: ; in Loop: Header=BB4_12 Depth=2 b LBB4_27 LBB4_27: ; in Loop: Header=BB4_12 Depth=2 b LBB4_28 LBB4_28: ; in Loop: Header=BB4_12 Depth=2 b LBB4_12 LBB4_29: ; in Loop: Header=BB4_1 Depth=1 ldr w8, [sp, #44] ldr x9, [sp, #80] ldr x9, [x9, #16] ldr x12, [sp, #80] ldrsw x10, [x12, #28] mov x11, x10 add w11, w11, #1 str w11, [x12, #28] str w8, [x9, x10, lsl #2] ldr x8, [sp, #80] ldr w8, [x8, #28] ldr x9, [sp, #80] ldr w9, [x9, #24] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB4_33 b LBB4_30 LBB4_30: ; in Loop: Header=BB4_1 Depth=1 ldr x9, [sp, #80] ldr w8, [x9, #24] lsl w8, w8, #1 str w8, [x9, #24] ldr x8, [sp, #80] ldr x0, [x8, #16] ldr x8, [sp, #80] ldrsw x8, [x8, #24] lsl x1, x8, #2 bl _realloc ldr x8, [sp, #80] str x0, [x8, #16] ldr x8, [sp, #80] ldr x8, [x8, #16] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB4_32 b LBB4_31 LBB4_31: ; in Loop: Header=BB4_1 Depth=1 adrp x0, _Emalloc@PAGE add x0, x0, _Emalloc@PAGEOFF bl _fatal b LBB4_32 LBB4_32: ; in Loop: Header=BB4_1 Depth=1 b LBB4_33 LBB4_33: ; in Loop: Header=BB4_1 Depth=1 ldr w8, [sp, #24] ldr x9, [sp, #80] ldr x9, [x9, #32] ldr x12, [sp, #80] ldrsw x10, [x12, #44] mov x11, x10 add w11, w11, #1 str w11, [x12, #44] str w8, [x9, x10, lsl #2] ldr x8, [sp, #80] ldr w8, [x8, #44] ldr x9, [sp, #80] ldr w9, [x9, #40] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB4_37 b LBB4_34 LBB4_34: ; in Loop: Header=BB4_1 Depth=1 ldr x9, [sp, #80] ldr w8, [x9, #40] lsl w8, w8, #1 str w8, [x9, #40] ldr x8, [sp, #80] ldr x0, [x8, #32] ldr x8, [sp, #80] ldrsw x8, [x8, #40] lsl x1, x8, #2 bl _realloc ldr x8, [sp, #80] str x0, [x8, #32] ldr x8, [sp, #80] ldr x8, [x8, #32] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB4_36 b LBB4_35 LBB4_35: ; in Loop: Header=BB4_1 Depth=1 adrp x0, _Emalloc@PAGE add x0, x0, _Emalloc@PAGEOFF bl _fatal b LBB4_36 LBB4_36: ; in Loop: Header=BB4_1 Depth=1 b LBB4_37 LBB4_37: ; in Loop: Header=BB4_1 Depth=1 ldr w8, [sp, #40] ldr x9, [sp, #80] ldr x9, [x9, #48] ldr x12, [sp, #80] ldrsw x10, [x12, #60] mov x11, x10 add w11, w11, #1 str w11, [x12, #60] str w8, [x9, x10, lsl #2] ldr x8, [sp, #80] ldr w8, [x8, #60] ldr x9, [sp, #80] ldr w9, [x9, #56] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB4_41 b LBB4_38 LBB4_38: ; in Loop: Header=BB4_1 Depth=1 ldr x9, [sp, #80] ldr w8, [x9, #56] lsl w8, w8, #1 str w8, [x9, #56] ldr x8, [sp, #80] ldr x0, [x8, #48] ldr x8, [sp, #80] ldrsw x8, [x8, #56] lsl x1, x8, #2 bl _realloc ldr x8, [sp, #80] str x0, [x8, #48] ldr x8, [sp, #80] ldr x8, [x8, #48] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB4_40 b LBB4_39 LBB4_39: ; in Loop: Header=BB4_1 Depth=1 adrp x0, _Emalloc@PAGE add x0, x0, _Emalloc@PAGEOFF bl _fatal b LBB4_40 LBB4_40: ; in Loop: Header=BB4_1 Depth=1 b LBB4_41 LBB4_41: ; in Loop: Header=BB4_1 Depth=1 ldr w8, [sp, #32] ldr x9, [sp, #80] ldr x9, [x9, #64] ldr x12, [sp, #80] ldrsw x10, [x12, #76] mov x11, x10 add w11, w11, #1 str w11, [x12, #76] str w8, [x9, x10, lsl #2] ldr x8, [sp, #80] ldr w8, [x8, #76] ldr x9, [sp, #80] ldr w9, [x9, #72] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB4_45 b LBB4_42 LBB4_42: ; in Loop: Header=BB4_1 Depth=1 ldr x9, [sp, #80] ldr w8, [x9, #72] lsl w8, w8, #1 str w8, [x9, #72] ldr x8, [sp, #80] ldr x0, [x8, #64] ldr x8, [sp, #80] ldrsw x8, [x8, #72] lsl x1, x8, #2 bl _realloc ldr x8, [sp, #80] str x0, [x8, #64] ldr x8, [sp, #80] ldr x8, [x8, #64] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB4_44 b LBB4_43 LBB4_43: ; in Loop: Header=BB4_1 Depth=1 adrp x0, _Emalloc@PAGE add x0, x0, _Emalloc@PAGEOFF bl _fatal b LBB4_44 LBB4_44: ; in Loop: Header=BB4_1 Depth=1 b LBB4_45 LBB4_45: ; in Loop: Header=BB4_1 Depth=1 ldr w8, [sp, #36] ldr x9, [sp, #80] ldr x9, [x9, #80] ldr x12, [sp, #80] ldrsw x10, [x12, #92] mov x11, x10 add w11, w11, #1 str w11, [x12, #92] str w8, [x9, x10, lsl #2] ldr x8, [sp, #80] ldr w8, [x8, #92] ldr x9, [sp, #80] ldr w9, [x9, #88] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB4_49 b LBB4_46 LBB4_46: ; in Loop: Header=BB4_1 Depth=1 ldr x9, [sp, #80] ldr w8, [x9, #88] lsl w8, w8, #1 str w8, [x9, #88] ldr x8, [sp, #80] ldr x0, [x8, #80] ldr x8, [sp, #80] ldrsw x8, [x8, #88] lsl x1, x8, #2 bl _realloc ldr x8, [sp, #80] str x0, [x8, #80] ldr x8, [sp, #80] ldr x8, [x8, #80] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB4_48 b LBB4_47 LBB4_47: ; in Loop: Header=BB4_1 Depth=1 adrp x0, _Emalloc@PAGE add x0, x0, _Emalloc@PAGEOFF bl _fatal b LBB4_48 LBB4_48: ; in Loop: Header=BB4_1 Depth=1 b LBB4_49 LBB4_49: ; in Loop: Header=BB4_1 Depth=1 ldr w8, [sp, #28] ldr x9, [sp, #80] ldr x9, [x9, #96] ldr x12, [sp, #80] ldrsw x10, [x12, #108] mov x11, x10 add w11, w11, #1 str w11, [x12, #108] str w8, [x9, x10, lsl #2] ldr x8, [sp, #80] ldr w8, [x8, #108] ldr x9, [sp, #80] ldr w9, [x9, #104] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB4_53 b LBB4_50 LBB4_50: ; in Loop: Header=BB4_1 Depth=1 ldr x9, [sp, #80] ldr w8, [x9, #104] lsl w8, w8, #1 str w8, [x9, #104] ldr x8, [sp, #80] ldr x0, [x8, #96] ldr x8, [sp, #80] ldrsw x8, [x8, #104] lsl x1, x8, #2 bl _realloc ldr x8, [sp, #80] str x0, [x8, #96] ldr x8, [sp, #80] ldr x8, [x8, #96] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB4_52 b LBB4_51 LBB4_51: ; in Loop: Header=BB4_1 Depth=1 adrp x0, _Emalloc@PAGE add x0, x0, _Emalloc@PAGEOFF bl _fatal b LBB4_52 LBB4_52: ; in Loop: Header=BB4_1 Depth=1 b LBB4_53 LBB4_53: ; in Loop: Header=BB4_1 Depth=1 b LBB4_54 LBB4_54: ; in Loop: Header=BB4_1 Depth=1 ldr x0, [sp, #72] bl _feof subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB4_1 b LBB4_55 LBB4_55: ldur x9, [x29, #-24] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB4_57 b LBB4_56 LBB4_56: bl ___stack_chk_fail LBB4_57: add sp, sp, #1120 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x28, x27, [sp], #32 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .section __TEXT,__const .globl _Emalloc ; @Emalloc _Emalloc: .asciz "Malloc Failed" .globl _Eopen ; @Eopen _Eopen: .asciz "Could not open input file" .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "\n\n" l_.str.1: ; @.str.1 .asciz "Input File = %s\n" l_.str.2: ; @.str.2 .asciz "tagstub = %s\n" l_.str.3: ; @.str.3 .asciz "start = %s\n" l_.str.4: ; @.str.4 .asciz "end = %s\n" l_.str.5: ; @.str.5 .asciz "statname = %s\n" l_.str.6: ; @.str.6 .asciz "stubmin = %d\n" l_.str.7: ; @.str.7 .asciz "stubmax = %d\n" l_.str.8: ; @.str.8 .asciz "netflag = %s\n" l_.str.9: ; @.str.9 .asciz "r" l_.str.10: ; @.str.10 .asciz "%s%d%s" l_.str.11: ; @.str.11 .asciz "0" l_.str.12: ; @.str.12 .asciz "1" l_.str.13: ; @.str.13 .asciz "%f\n" l_.str.14: ; @.str.14 .asciz "sentcnt\t%d\n" l_.str.15: ; @.str.15 .asciz "sentbytes\t%d\n" l_.str.16: ; @.str.16 .asciz "recvdcnt\t%d\n" l_.str.17: ; @.str.17 .asciz "urxbytes\t%d\n" l_.str.18: ; @.str.18 .asciz "bcastrecvdcnt\t%d\n" l_.str.19: ; @.str.19 .asciz "brxbytes\t%d\n" l_.str.20: ; @.str.20 .asciz "%*s %*s %*s %lg" l_.str.21: ; @.str.21 .asciz "Bits left:" l_.str.22: ; @.str.22 .asciz "%*s %*s %x" l_.str.23: ; @.str.23 .asciz "Src node:" l_.str.24: ; @.str.24 .asciz "Dst node:" l_.str.25: ; @.str.25 .asciz "Usage: logmarkparse <tagstub> <start tag> <end tag> <statistic name> <stub min suffix> <stub max suffix> <netflag>\n\n" l_.str.26: ; @.str.26 .asciz "Logmarkparse fatal: %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 $368, %rsp ## imm = 0x170 movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -148(%rbp) movl %edi, -152(%rbp) movq %rsi, -160(%rbp) leaq -313(%rbp), %rax movq %rax, -328(%rbp) cmpl $9, -152(%rbp) je LBB0_2 ## %bb.1: callq _usage LBB0_2: movq -160(%rbp), %rax movq 8(%rax), %rax movq %rax, -280(%rbp) movq -160(%rbp), %rax movq 40(%rax), %rdi leaq -328(%rbp), %rsi xorl %edx, %edx callq _strtol ## kill: def $eax killed $eax killed $rax movl %eax, -336(%rbp) movq -328(%rbp), %rax movsbl (%rax), %eax cmpl $0, %eax je LBB0_4 ## %bb.3: callq _usage LBB0_4: movq -160(%rbp), %rax movq 48(%rax), %rdi leaq -328(%rbp), %rsi xorl %edx, %edx callq _strtol ## kill: def $eax killed $eax killed $rax movl %eax, -340(%rbp) movq -328(%rbp), %rax movsbl (%rax), %eax cmpl $0, %eax je LBB0_6 ## %bb.5: callq _usage LBB0_6: movq -160(%rbp), %rax movq 16(%rax), %rax movq %rax, -288(%rbp) movq -160(%rbp), %rax movq 24(%rax), %rax movq %rax, -296(%rbp) movq -160(%rbp), %rax movq 32(%rax), %rax movq %rax, -304(%rbp) movq -160(%rbp), %rax movq 56(%rax), %rax movq %rax, -312(%rbp) movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str(%rip), %rsi movb $0, %al callq _fprintf movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movq -160(%rbp), %rax movq 64(%rax), %rdx leaq L_.str.1(%rip), %rsi movb $0, %al callq _fprintf movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movq -280(%rbp), %rdx leaq L_.str.2(%rip), %rsi movb $0, %al callq _fprintf movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movq -288(%rbp), %rdx leaq L_.str.3(%rip), %rsi movb $0, %al callq _fprintf movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movq -296(%rbp), %rdx leaq L_.str.4(%rip), %rsi movb $0, %al callq _fprintf movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movq -304(%rbp), %rdx leaq L_.str.5(%rip), %rsi movb $0, %al callq _fprintf movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movl -336(%rbp), %edx leaq L_.str.6(%rip), %rsi movb $0, %al callq _fprintf movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movl -340(%rbp), %edx leaq L_.str.7(%rip), %rsi movb $0, %al callq _fprintf movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movq -312(%rbp), %rdx leaq L_.str.8(%rip), %rsi movb $0, %al callq _fprintf movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str(%rip), %rsi movb $0, %al callq _fprintf movq -160(%rbp), %rax movq 64(%rax), %rdi leaq L_.str.9(%rip), %rsi callq _fopen movq %rax, -352(%rbp) cmpq $0, -352(%rbp) jne LBB0_8 ## %bb.7: leaq _Eopen(%rip), %rdi callq _fatal LBB0_8: movl $65536, %edi ## imm = 0x10000 callq _malloc movq %rax, -272(%rbp) cmpq $0, -272(%rbp) jne LBB0_10 ## %bb.9: leaq _Emalloc(%rip), %rdi callq _fatal LBB0_10: movl $8192, -264(%rbp) ## imm = 0x2000 movl $0, -260(%rbp) movl $32768, %edi ## imm = 0x8000 callq _malloc movq %rax, -256(%rbp) cmpq $0, -256(%rbp) jne LBB0_12 ## %bb.11: leaq _Emalloc(%rip), %rdi callq _fatal LBB0_12: movl $8192, -248(%rbp) ## imm = 0x2000 movl $0, -244(%rbp) movl $32768, %edi ## imm = 0x8000 callq _malloc movq %rax, -240(%rbp) cmpq $0, -240(%rbp) jne LBB0_14 ## %bb.13: leaq _Emalloc(%rip), %rdi callq _fatal LBB0_14: movl $8192, -232(%rbp) ## imm = 0x2000 movl $0, -228(%rbp) movl $32768, %edi ## imm = 0x8000 callq _malloc movq %rax, -224(%rbp) cmpq $0, -224(%rbp) jne LBB0_16 ## %bb.15: leaq _Emalloc(%rip), %rdi callq _fatal LBB0_16: movl $8192, -216(%rbp) ## imm = 0x2000 movl $0, -212(%rbp) movl $32768, %edi ## imm = 0x8000 callq _malloc movq %rax, -208(%rbp) cmpq $0, -208(%rbp) jne LBB0_18 ## %bb.17: leaq _Emalloc(%rip), %rdi callq _fatal LBB0_18: movl $8192, -200(%rbp) ## imm = 0x2000 movl $0, -196(%rbp) movl $32768, %edi ## imm = 0x8000 callq _malloc movq %rax, -192(%rbp) cmpq $0, -192(%rbp) jne LBB0_20 ## %bb.19: leaq _Emalloc(%rip), %rdi callq _fatal LBB0_20: movl $8192, -184(%rbp) ## imm = 0x2000 movl $0, -180(%rbp) movl $32768, %edi ## imm = 0x8000 callq _malloc movq %rax, -176(%rbp) cmpq $0, -176(%rbp) jne LBB0_22 ## %bb.21: leaq _Emalloc(%rip), %rdi callq _fatal LBB0_22: movl $8192, -168(%rbp) ## imm = 0x2000 movl $0, -164(%rbp) movl -336(%rbp), %eax movl %eax, -332(%rbp) LBB0_23: ## =>This Inner Loop Header: Depth=1 movl -332(%rbp), %eax cmpl -340(%rbp), %eax jg LBB0_30 ## %bb.24: ## in Loop: Header=BB0_23 Depth=1 leaq -80(%rbp), %rdi movq -280(%rbp), %r9 movl -332(%rbp), %r10d movq -288(%rbp), %rax movl $64, %ecx xorl %edx, %edx leaq L_.str.10(%rip), %r8 movq %rcx, %rsi movl %r10d, (%rsp) movq %rax, 8(%rsp) movb $0, %al callq ___snprintf_chk leaq -144(%rbp), %rdi movq -280(%rbp), %r9 movl -332(%rbp), %r10d movq -296(%rbp), %rax movl $64, %ecx xorl %edx, %edx leaq L_.str.10(%rip), %r8 movq %rcx, %rsi movl %r10d, (%rsp) movq %rax, 8(%rsp) movb $0, %al callq ___snprintf_chk movq -352(%rbp), %rdi callq _rewind movq -312(%rbp), %rdi leaq L_.str.11(%rip), %rsi movl $1, %edx callq _strncmp cmpl $0, %eax jne LBB0_26 ## %bb.25: ## in Loop: Header=BB0_23 Depth=1 movq -352(%rbp), %rsi leaq -80(%rbp), %rdx leaq -144(%rbp), %rcx movq -304(%rbp), %r8 leaq -272(%rbp), %rdi callq _parsesflog LBB0_26: ## in Loop: Header=BB0_23 Depth=1 movq -312(%rbp), %rdi leaq L_.str.12(%rip), %rsi movl $1, %edx callq _strncmp cmpl $0, %eax jne LBB0_28 ## %bb.27: ## in Loop: Header=BB0_23 Depth=1 movq -352(%rbp), %rsi leaq -80(%rbp), %rdx leaq -144(%rbp), %rcx movl -332(%rbp), %r8d leaq -272(%rbp), %rdi callq _parsenetlog LBB0_28: ## in Loop: Header=BB0_23 Depth=1 jmp LBB0_29 LBB0_29: ## in Loop: Header=BB0_23 Depth=1 movl -332(%rbp), %eax addl $1, %eax movl %eax, -332(%rbp) jmp LBB0_23 LBB0_30: movq -312(%rbp), %rdi leaq L_.str.11(%rip), %rsi movl $1, %edx callq _strncmp cmpl $0, %eax jne LBB0_36 ## %bb.31: movl $0, -332(%rbp) LBB0_32: ## =>This Inner Loop Header: Depth=1 movl -332(%rbp), %eax cmpl -260(%rbp), %eax jge LBB0_35 ## %bb.33: ## in Loop: Header=BB0_32 Depth=1 movq -272(%rbp), %rax movslq -332(%rbp), %rcx movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero leaq L_.str.13(%rip), %rdi movb $1, %al callq _printf ## %bb.34: ## in Loop: Header=BB0_32 Depth=1 movl -332(%rbp), %eax addl $1, %eax movl %eax, -332(%rbp) jmp LBB0_32 LBB0_35: jmp LBB0_36 LBB0_36: movq -312(%rbp), %rdi leaq L_.str.12(%rip), %rsi movl $1, %edx callq _strncmp cmpl $0, %eax jne LBB0_62 ## %bb.37: movl $0, -332(%rbp) LBB0_38: ## =>This Inner Loop Header: Depth=1 movl -332(%rbp), %eax cmpl -244(%rbp), %eax jge LBB0_41 ## %bb.39: ## in Loop: Header=BB0_38 Depth=1 movq -256(%rbp), %rax movslq -332(%rbp), %rcx movl (%rax,%rcx,4), %esi leaq L_.str.14(%rip), %rdi movb $0, %al callq _printf ## %bb.40: ## in Loop: Header=BB0_38 Depth=1 movl -332(%rbp), %eax addl $1, %eax movl %eax, -332(%rbp) jmp LBB0_38 LBB0_41: movl $0, -332(%rbp) LBB0_42: ## =>This Inner Loop Header: Depth=1 movl -332(%rbp), %eax cmpl -228(%rbp), %eax jge LBB0_45 ## %bb.43: ## in Loop: Header=BB0_42 Depth=1 movq -240(%rbp), %rax movslq -332(%rbp), %rcx movl (%rax,%rcx,4), %esi leaq L_.str.15(%rip), %rdi movb $0, %al callq _printf ## %bb.44: ## in Loop: Header=BB0_42 Depth=1 movl -332(%rbp), %eax addl $1, %eax movl %eax, -332(%rbp) jmp LBB0_42 LBB0_45: movl $0, -332(%rbp) LBB0_46: ## =>This Inner Loop Header: Depth=1 movl -332(%rbp), %eax cmpl -212(%rbp), %eax jge LBB0_49 ## %bb.47: ## in Loop: Header=BB0_46 Depth=1 movq -224(%rbp), %rax movslq -332(%rbp), %rcx movl (%rax,%rcx,4), %esi leaq L_.str.16(%rip), %rdi movb $0, %al callq _printf ## %bb.48: ## in Loop: Header=BB0_46 Depth=1 movl -332(%rbp), %eax addl $1, %eax movl %eax, -332(%rbp) jmp LBB0_46 LBB0_49: movl $0, -332(%rbp) LBB0_50: ## =>This Inner Loop Header: Depth=1 movl -332(%rbp), %eax cmpl -196(%rbp), %eax jge LBB0_53 ## %bb.51: ## in Loop: Header=BB0_50 Depth=1 movq -208(%rbp), %rax movslq -332(%rbp), %rcx movl (%rax,%rcx,4), %esi leaq L_.str.17(%rip), %rdi movb $0, %al callq _printf ## %bb.52: ## in Loop: Header=BB0_50 Depth=1 movl -332(%rbp), %eax addl $1, %eax movl %eax, -332(%rbp) jmp LBB0_50 LBB0_53: movl $0, -332(%rbp) LBB0_54: ## =>This Inner Loop Header: Depth=1 movl -332(%rbp), %eax cmpl -180(%rbp), %eax jge LBB0_57 ## %bb.55: ## in Loop: Header=BB0_54 Depth=1 movq -192(%rbp), %rax movslq -332(%rbp), %rcx movl (%rax,%rcx,4), %esi leaq L_.str.18(%rip), %rdi movb $0, %al callq _printf ## %bb.56: ## in Loop: Header=BB0_54 Depth=1 movl -332(%rbp), %eax addl $1, %eax movl %eax, -332(%rbp) jmp LBB0_54 LBB0_57: movl $0, -332(%rbp) LBB0_58: ## =>This Inner Loop Header: Depth=1 movl -332(%rbp), %eax cmpl -164(%rbp), %eax jge LBB0_61 ## %bb.59: ## in Loop: Header=BB0_58 Depth=1 movq -176(%rbp), %rax movslq -332(%rbp), %rcx movl (%rax,%rcx,4), %esi leaq L_.str.19(%rip), %rdi movb $0, %al callq _printf ## %bb.60: ## in Loop: Header=BB0_58 Depth=1 movl -332(%rbp), %eax addl $1, %eax movl %eax, -332(%rbp) jmp LBB0_58 LBB0_61: jmp LBB0_62 LBB0_62: movq -352(%rbp), %rdi callq _fclose movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_64 ## %bb.63: xorl %eax, %eax addq $368, %rsp ## imm = 0x170 popq %rbp retq LBB0_64: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _usage ## -- Begin function usage .p2align 4, 0x90 _usage: ## @usage .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.25(%rip), %rsi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _fprintf movl $-1, %edi callq _exit .cfi_endproc ## -- End function .globl _fatal ## -- Begin function fatal .p2align 4, 0x90 _fatal: ## @fatal .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movq -8(%rbp), %rdx leaq L_.str.26(%rip), %rsi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _fprintf movl $-1, %edi callq _exit .cfi_endproc ## -- End function .globl _parsesflog ## -- Begin function parsesflog .p2align 4, 0x90 _parsesflog: ## @parsesflog .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $1104, %rsp ## imm = 0x450 movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movq %rdi, -1048(%rbp) movq %rsi, -1056(%rbp) movq %rdx, -1064(%rbp) movq %rcx, -1072(%rbp) movq %r8, -1080(%rbp) LBB3_1: ## =>This Loop Header: Depth=1 ## Child Loop BB3_2 Depth 2 ## Child Loop BB3_7 Depth 2 ## Child Loop BB3_14 Depth 2 ## Child Loop BB3_19 Depth 2 jmp LBB3_2 LBB3_2: ## Parent Loop BB3_1 Depth=1 ## => This Inner Loop Header: Depth=2 leaq -1040(%rbp), %rdi movq -1056(%rbp), %rdx movl $1024, %esi ## imm = 0x400 callq _fgets cmpq $0, %rax je LBB3_6 ## %bb.3: ## in Loop: Header=BB3_2 Depth=2 leaq -1040(%rbp), %rdi movq -1064(%rbp), %rsi callq _strstr cmpq $0, %rax je LBB3_5 ## %bb.4: ## in Loop: Header=BB3_1 Depth=1 jmp LBB3_6 LBB3_5: ## in Loop: Header=BB3_2 Depth=2 jmp LBB3_2 LBB3_6: ## in Loop: Header=BB3_1 Depth=1 jmp LBB3_7 LBB3_7: ## Parent Loop BB3_1 Depth=1 ## => This Inner Loop Header: Depth=2 leaq -1040(%rbp), %rdi movq -1056(%rbp), %rdx movl $1024, %esi ## imm = 0x400 callq _fgets cmpq $0, %rax je LBB3_13 ## %bb.8: ## in Loop: Header=BB3_7 Depth=2 leaq -1040(%rbp), %rdi movq -1064(%rbp), %rsi callq _strstr cmpq $0, %rax je LBB3_10 ## %bb.9: ## in Loop: Header=BB3_1 Depth=1 jmp LBB3_13 LBB3_10: ## in Loop: Header=BB3_7 Depth=2 leaq -1040(%rbp), %rdi movq -1080(%rbp), %rsi callq _strstr cmpq $0, %rax jne LBB3_12 ## %bb.11: ## in Loop: Header=BB3_7 Depth=2 jmp LBB3_7 LBB3_12: ## in Loop: Header=BB3_7 Depth=2 leaq -1040(%rbp), %rdi leaq L_.str.20(%rip), %rsi leaq -1088(%rbp), %rdx movb $0, %al callq _sscanf jmp LBB3_7 LBB3_13: ## in Loop: Header=BB3_1 Depth=1 jmp LBB3_14 LBB3_14: ## Parent Loop BB3_1 Depth=1 ## => This Inner Loop Header: Depth=2 leaq -1040(%rbp), %rdi movq -1056(%rbp), %rdx movl $1024, %esi ## imm = 0x400 callq _fgets cmpq $0, %rax je LBB3_18 ## %bb.15: ## in Loop: Header=BB3_14 Depth=2 leaq -1040(%rbp), %rdi movq -1072(%rbp), %rsi callq _strstr cmpq $0, %rax je LBB3_17 ## %bb.16: ## in Loop: Header=BB3_1 Depth=1 jmp LBB3_18 LBB3_17: ## in Loop: Header=BB3_14 Depth=2 jmp LBB3_14 LBB3_18: ## in Loop: Header=BB3_1 Depth=1 jmp LBB3_19 LBB3_19: ## Parent Loop BB3_1 Depth=1 ## => This Inner Loop Header: Depth=2 leaq -1040(%rbp), %rdi movq -1056(%rbp), %rdx movl $1024, %esi ## imm = 0x400 callq _fgets cmpq $0, %rax je LBB3_29 ## %bb.20: ## in Loop: Header=BB3_19 Depth=2 leaq -1040(%rbp), %rdi movq -1072(%rbp), %rsi callq _strstr cmpq $0, %rax je LBB3_22 ## %bb.21: ## in Loop: Header=BB3_1 Depth=1 jmp LBB3_29 LBB3_22: ## in Loop: Header=BB3_19 Depth=2 leaq -1040(%rbp), %rdi movq -1080(%rbp), %rsi callq _strstr cmpq $0, %rax jne LBB3_24 ## %bb.23: ## in Loop: Header=BB3_19 Depth=2 jmp LBB3_19 LBB3_24: ## in Loop: Header=BB3_19 Depth=2 leaq -1040(%rbp), %rdi leaq L_.str.20(%rip), %rsi leaq -1096(%rbp), %rdx movb $0, %al callq _sscanf movsd -1088(%rbp), %xmm1 ## xmm1 = mem[0],zero movsd -1096(%rbp), %xmm0 ## xmm0 = mem[0],zero subsd %xmm1, %xmm0 movsd %xmm0, -1096(%rbp) movsd -1096(%rbp), %xmm0 ## xmm0 = mem[0],zero movq -1048(%rbp), %rax movq (%rax), %rax movq -1048(%rbp), %rdx movl 12(%rdx), %ecx movl %ecx, %esi addl $1, %esi movl %esi, 12(%rdx) movslq %ecx, %rcx movsd %xmm0, (%rax,%rcx,8) movq -1048(%rbp), %rax movl 12(%rax), %eax movq -1048(%rbp), %rcx cmpl 8(%rcx), %eax jne LBB3_28 ## %bb.25: ## in Loop: Header=BB3_19 Depth=2 movq -1048(%rbp), %rax movl 8(%rax), %ecx shll $1, %ecx movl %ecx, 8(%rax) movq -1048(%rbp), %rax movq (%rax), %rdi movq -1048(%rbp), %rax movslq 8(%rax), %rsi shlq $3, %rsi callq _realloc movq %rax, %rcx movq -1048(%rbp), %rax movq %rcx, (%rax) movq -1048(%rbp), %rax cmpq $0, (%rax) jne LBB3_27 ## %bb.26: ## in Loop: Header=BB3_19 Depth=2 leaq _Emalloc(%rip), %rdi callq _fatal LBB3_27: ## in Loop: Header=BB3_19 Depth=2 jmp LBB3_28 LBB3_28: ## in Loop: Header=BB3_19 Depth=2 jmp LBB3_19 LBB3_29: ## in Loop: Header=BB3_1 Depth=1 jmp LBB3_30 LBB3_30: ## in Loop: Header=BB3_1 Depth=1 movq -1056(%rbp), %rdi callq _feof cmpl $0, %eax setne %al xorb $-1, %al testb $1, %al jne LBB3_1 ## %bb.31: movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB3_33 ## %bb.32: addq $1104, %rsp ## imm = 0x450 popq %rbp retq LBB3_33: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _parsenetlog ## -- Begin function parsenetlog .p2align 4, 0x90 _parsenetlog: ## @parsenetlog .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 movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movq %rdi, -1048(%rbp) movq %rsi, -1056(%rbp) movq %rdx, -1064(%rbp) movq %rcx, -1072(%rbp) movl %r8d, -1076(%rbp) movl $0, -1080(%rbp) movl $0, -1084(%rbp) movl $0, -1088(%rbp) movl $0, -1092(%rbp) movl $0, -1096(%rbp) movl $0, -1100(%rbp) movl $0, -1104(%rbp) LBB4_1: ## =>This Loop Header: Depth=1 ## Child Loop BB4_2 Depth 2 ## Child Loop BB4_7 Depth 2 ## Child Loop BB4_12 Depth 2 jmp LBB4_2 LBB4_2: ## Parent Loop BB4_1 Depth=1 ## => This Inner Loop Header: Depth=2 leaq -1040(%rbp), %rdi movq -1056(%rbp), %rdx movl $1024, %esi ## imm = 0x400 callq _fgets cmpq $0, %rax je LBB4_6 ## %bb.3: ## in Loop: Header=BB4_2 Depth=2 leaq -1040(%rbp), %rdi movq -1064(%rbp), %rsi callq _strstr cmpq $0, %rax je LBB4_5 ## %bb.4: ## in Loop: Header=BB4_1 Depth=1 jmp LBB4_6 LBB4_5: ## in Loop: Header=BB4_2 Depth=2 jmp LBB4_2 LBB4_6: ## in Loop: Header=BB4_1 Depth=1 jmp LBB4_7 LBB4_7: ## Parent Loop BB4_1 Depth=1 ## => This Inner Loop Header: Depth=2 leaq -1040(%rbp), %rdi movq -1056(%rbp), %rdx movl $1024, %esi ## imm = 0x400 callq _fgets cmpq $0, %rax je LBB4_11 ## %bb.8: ## in Loop: Header=BB4_7 Depth=2 leaq -1040(%rbp), %rdi movq -1064(%rbp), %rsi callq _strstr cmpq $0, %rax je LBB4_10 ## %bb.9: ## in Loop: Header=BB4_1 Depth=1 jmp LBB4_11 LBB4_10: ## in Loop: Header=BB4_7 Depth=2 jmp LBB4_7 LBB4_11: ## in Loop: Header=BB4_1 Depth=1 movl $0, -1084(%rbp) movl $0, -1088(%rbp) movl $0, -1092(%rbp) movl $0, -1096(%rbp) movl $0, -1100(%rbp) movl $0, -1104(%rbp) LBB4_12: ## Parent Loop BB4_1 Depth=1 ## => This Inner Loop Header: Depth=2 leaq -1040(%rbp), %rdi movq -1056(%rbp), %rdx movl $1024, %esi ## imm = 0x400 callq _fgets cmpq $0, %rax je LBB4_29 ## %bb.13: ## in Loop: Header=BB4_12 Depth=2 leaq -1040(%rbp), %rdi movq -1072(%rbp), %rsi callq _strstr cmpq $0, %rax je LBB4_15 ## %bb.14: ## in Loop: Header=BB4_1 Depth=1 jmp LBB4_29 LBB4_15: ## in Loop: Header=BB4_12 Depth=2 leaq -1040(%rbp), %rdi leaq L_.str.21(%rip), %rsi callq _strstr cmpq $0, %rax je LBB4_17 ## %bb.16: ## in Loop: Header=BB4_12 Depth=2 leaq -1040(%rbp), %rdi leaq L_.str.22(%rip), %rsi leaq -1080(%rbp), %rdx movb $0, %al callq _sscanf movl -1080(%rbp), %eax movl $8, %ecx cltd idivl %ecx movl %eax, -1080(%rbp) LBB4_17: ## in Loop: Header=BB4_12 Depth=2 leaq -1040(%rbp), %rdi leaq L_.str.23(%rip), %rsi callq _strstr cmpq $0, %rax je LBB4_21 ## %bb.18: ## in Loop: Header=BB4_12 Depth=2 leaq -1040(%rbp), %rdi leaq L_.str.22(%rip), %rsi leaq -1108(%rbp), %rdx movb $0, %al callq _sscanf movl -1108(%rbp), %eax cmpl -1076(%rbp), %eax jne LBB4_20 ## %bb.19: ## in Loop: Header=BB4_12 Depth=2 movl -1084(%rbp), %eax addl $1, %eax movl %eax, -1084(%rbp) movl -1080(%rbp), %eax addl -1104(%rbp), %eax movl %eax, -1104(%rbp) LBB4_20: ## in Loop: Header=BB4_12 Depth=2 jmp LBB4_21 LBB4_21: ## in Loop: Header=BB4_12 Depth=2 leaq -1040(%rbp), %rdi leaq L_.str.24(%rip), %rsi callq _strstr cmpq $0, %rax je LBB4_28 ## %bb.22: ## in Loop: Header=BB4_12 Depth=2 leaq -1040(%rbp), %rdi leaq L_.str.22(%rip), %rsi leaq -1112(%rbp), %rdx movb $0, %al callq _sscanf movl -1112(%rbp), %eax cmpl -1076(%rbp), %eax jne LBB4_24 ## %bb.23: ## in Loop: Header=BB4_12 Depth=2 movl -1088(%rbp), %eax addl $1, %eax movl %eax, -1088(%rbp) movl -1080(%rbp), %eax addl -1096(%rbp), %eax movl %eax, -1096(%rbp) jmp LBB4_27 LBB4_24: ## in Loop: Header=BB4_12 Depth=2 cmpl $-2, -1112(%rbp) jne LBB4_26 ## %bb.25: ## in Loop: Header=BB4_12 Depth=2 movl -1092(%rbp), %eax addl $1, %eax movl %eax, -1092(%rbp) movl -1080(%rbp), %eax addl -1100(%rbp), %eax movl %eax, -1100(%rbp) LBB4_26: ## in Loop: Header=BB4_12 Depth=2 jmp LBB4_27 LBB4_27: ## in Loop: Header=BB4_12 Depth=2 jmp LBB4_28 LBB4_28: ## in Loop: Header=BB4_12 Depth=2 jmp LBB4_12 LBB4_29: ## in Loop: Header=BB4_1 Depth=1 movl -1084(%rbp), %edx movq -1048(%rbp), %rax movq 16(%rax), %rax movq -1048(%rbp), %rsi movl 28(%rsi), %ecx movl %ecx, %edi addl $1, %edi movl %edi, 28(%rsi) movslq %ecx, %rcx movl %edx, (%rax,%rcx,4) movq -1048(%rbp), %rax movl 28(%rax), %eax movq -1048(%rbp), %rcx cmpl 24(%rcx), %eax jne LBB4_33 ## %bb.30: ## in Loop: Header=BB4_1 Depth=1 movq -1048(%rbp), %rax movl 24(%rax), %ecx shll $1, %ecx movl %ecx, 24(%rax) movq -1048(%rbp), %rax movq 16(%rax), %rdi movq -1048(%rbp), %rax movslq 24(%rax), %rsi shlq $2, %rsi callq _realloc movq %rax, %rcx movq -1048(%rbp), %rax movq %rcx, 16(%rax) movq -1048(%rbp), %rax cmpq $0, 16(%rax) jne LBB4_32 ## %bb.31: ## in Loop: Header=BB4_1 Depth=1 leaq _Emalloc(%rip), %rdi callq _fatal LBB4_32: ## in Loop: Header=BB4_1 Depth=1 jmp LBB4_33 LBB4_33: ## in Loop: Header=BB4_1 Depth=1 movl -1104(%rbp), %edx movq -1048(%rbp), %rax movq 32(%rax), %rax movq -1048(%rbp), %rsi movl 44(%rsi), %ecx movl %ecx, %edi addl $1, %edi movl %edi, 44(%rsi) movslq %ecx, %rcx movl %edx, (%rax,%rcx,4) movq -1048(%rbp), %rax movl 44(%rax), %eax movq -1048(%rbp), %rcx cmpl 40(%rcx), %eax jne LBB4_37 ## %bb.34: ## in Loop: Header=BB4_1 Depth=1 movq -1048(%rbp), %rax movl 40(%rax), %ecx shll $1, %ecx movl %ecx, 40(%rax) movq -1048(%rbp), %rax movq 32(%rax), %rdi movq -1048(%rbp), %rax movslq 40(%rax), %rsi shlq $2, %rsi callq _realloc movq %rax, %rcx movq -1048(%rbp), %rax movq %rcx, 32(%rax) movq -1048(%rbp), %rax cmpq $0, 32(%rax) jne LBB4_36 ## %bb.35: ## in Loop: Header=BB4_1 Depth=1 leaq _Emalloc(%rip), %rdi callq _fatal LBB4_36: ## in Loop: Header=BB4_1 Depth=1 jmp LBB4_37 LBB4_37: ## in Loop: Header=BB4_1 Depth=1 movl -1088(%rbp), %edx movq -1048(%rbp), %rax movq 48(%rax), %rax movq -1048(%rbp), %rsi movl 60(%rsi), %ecx movl %ecx, %edi addl $1, %edi movl %edi, 60(%rsi) movslq %ecx, %rcx movl %edx, (%rax,%rcx,4) movq -1048(%rbp), %rax movl 60(%rax), %eax movq -1048(%rbp), %rcx cmpl 56(%rcx), %eax jne LBB4_41 ## %bb.38: ## in Loop: Header=BB4_1 Depth=1 movq -1048(%rbp), %rax movl 56(%rax), %ecx shll $1, %ecx movl %ecx, 56(%rax) movq -1048(%rbp), %rax movq 48(%rax), %rdi movq -1048(%rbp), %rax movslq 56(%rax), %rsi shlq $2, %rsi callq _realloc movq %rax, %rcx movq -1048(%rbp), %rax movq %rcx, 48(%rax) movq -1048(%rbp), %rax cmpq $0, 48(%rax) jne LBB4_40 ## %bb.39: ## in Loop: Header=BB4_1 Depth=1 leaq _Emalloc(%rip), %rdi callq _fatal LBB4_40: ## in Loop: Header=BB4_1 Depth=1 jmp LBB4_41 LBB4_41: ## in Loop: Header=BB4_1 Depth=1 movl -1096(%rbp), %edx movq -1048(%rbp), %rax movq 64(%rax), %rax movq -1048(%rbp), %rsi movl 76(%rsi), %ecx movl %ecx, %edi addl $1, %edi movl %edi, 76(%rsi) movslq %ecx, %rcx movl %edx, (%rax,%rcx,4) movq -1048(%rbp), %rax movl 76(%rax), %eax movq -1048(%rbp), %rcx cmpl 72(%rcx), %eax jne LBB4_45 ## %bb.42: ## in Loop: Header=BB4_1 Depth=1 movq -1048(%rbp), %rax movl 72(%rax), %ecx shll $1, %ecx movl %ecx, 72(%rax) movq -1048(%rbp), %rax movq 64(%rax), %rdi movq -1048(%rbp), %rax movslq 72(%rax), %rsi shlq $2, %rsi callq _realloc movq %rax, %rcx movq -1048(%rbp), %rax movq %rcx, 64(%rax) movq -1048(%rbp), %rax cmpq $0, 64(%rax) jne LBB4_44 ## %bb.43: ## in Loop: Header=BB4_1 Depth=1 leaq _Emalloc(%rip), %rdi callq _fatal LBB4_44: ## in Loop: Header=BB4_1 Depth=1 jmp LBB4_45 LBB4_45: ## in Loop: Header=BB4_1 Depth=1 movl -1092(%rbp), %edx movq -1048(%rbp), %rax movq 80(%rax), %rax movq -1048(%rbp), %rsi movl 92(%rsi), %ecx movl %ecx, %edi addl $1, %edi movl %edi, 92(%rsi) movslq %ecx, %rcx movl %edx, (%rax,%rcx,4) movq -1048(%rbp), %rax movl 92(%rax), %eax movq -1048(%rbp), %rcx cmpl 88(%rcx), %eax jne LBB4_49 ## %bb.46: ## in Loop: Header=BB4_1 Depth=1 movq -1048(%rbp), %rax movl 88(%rax), %ecx shll $1, %ecx movl %ecx, 88(%rax) movq -1048(%rbp), %rax movq 80(%rax), %rdi movq -1048(%rbp), %rax movslq 88(%rax), %rsi shlq $2, %rsi callq _realloc movq %rax, %rcx movq -1048(%rbp), %rax movq %rcx, 80(%rax) movq -1048(%rbp), %rax cmpq $0, 80(%rax) jne LBB4_48 ## %bb.47: ## in Loop: Header=BB4_1 Depth=1 leaq _Emalloc(%rip), %rdi callq _fatal LBB4_48: ## in Loop: Header=BB4_1 Depth=1 jmp LBB4_49 LBB4_49: ## in Loop: Header=BB4_1 Depth=1 movl -1100(%rbp), %edx movq -1048(%rbp), %rax movq 96(%rax), %rax movq -1048(%rbp), %rsi movl 108(%rsi), %ecx movl %ecx, %edi addl $1, %edi movl %edi, 108(%rsi) movslq %ecx, %rcx movl %edx, (%rax,%rcx,4) movq -1048(%rbp), %rax movl 108(%rax), %eax movq -1048(%rbp), %rcx cmpl 104(%rcx), %eax jne LBB4_53 ## %bb.50: ## in Loop: Header=BB4_1 Depth=1 movq -1048(%rbp), %rax movl 104(%rax), %ecx shll $1, %ecx movl %ecx, 104(%rax) movq -1048(%rbp), %rax movq 96(%rax), %rdi movq -1048(%rbp), %rax movslq 104(%rax), %rsi shlq $2, %rsi callq _realloc movq %rax, %rcx movq -1048(%rbp), %rax movq %rcx, 96(%rax) movq -1048(%rbp), %rax cmpq $0, 96(%rax) jne LBB4_52 ## %bb.51: ## in Loop: Header=BB4_1 Depth=1 leaq _Emalloc(%rip), %rdi callq _fatal LBB4_52: ## in Loop: Header=BB4_1 Depth=1 jmp LBB4_53 LBB4_53: ## in Loop: Header=BB4_1 Depth=1 jmp LBB4_54 LBB4_54: ## in Loop: Header=BB4_1 Depth=1 movq -1056(%rbp), %rdi callq _feof cmpl $0, %eax setne %al xorb $-1, %al testb $1, %al jne LBB4_1 ## %bb.55: movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB4_57 ## %bb.56: addq $1120, %rsp ## imm = 0x460 popq %rbp retq LBB4_57: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__const .globl _Emalloc ## @Emalloc _Emalloc: .asciz "Malloc Failed" .globl _Eopen ## @Eopen .p2align 4 _Eopen: .asciz "Could not open input file" .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "\n\n" L_.str.1: ## @.str.1 .asciz "Input File = %s\n" L_.str.2: ## @.str.2 .asciz "tagstub = %s\n" L_.str.3: ## @.str.3 .asciz "start = %s\n" L_.str.4: ## @.str.4 .asciz "end = %s\n" L_.str.5: ## @.str.5 .asciz "statname = %s\n" L_.str.6: ## @.str.6 .asciz "stubmin = %d\n" L_.str.7: ## @.str.7 .asciz "stubmax = %d\n" L_.str.8: ## @.str.8 .asciz "netflag = %s\n" L_.str.9: ## @.str.9 .asciz "r" L_.str.10: ## @.str.10 .asciz "%s%d%s" L_.str.11: ## @.str.11 .asciz "0" L_.str.12: ## @.str.12 .asciz "1" L_.str.13: ## @.str.13 .asciz "%f\n" L_.str.14: ## @.str.14 .asciz "sentcnt\t%d\n" L_.str.15: ## @.str.15 .asciz "sentbytes\t%d\n" L_.str.16: ## @.str.16 .asciz "recvdcnt\t%d\n" L_.str.17: ## @.str.17 .asciz "urxbytes\t%d\n" L_.str.18: ## @.str.18 .asciz "bcastrecvdcnt\t%d\n" L_.str.19: ## @.str.19 .asciz "brxbytes\t%d\n" L_.str.20: ## @.str.20 .asciz "%*s %*s %*s %lg" L_.str.21: ## @.str.21 .asciz "Bits left:" L_.str.22: ## @.str.22 .asciz "%*s %*s %x" L_.str.23: ## @.str.23 .asciz "Src node:" L_.str.24: ## @.str.24 .asciz "Dst node:" L_.str.25: ## @.str.25 .asciz "Usage: logmarkparse <tagstub> <start tag> <end tag> <statistic name> <stub min suffix> <stub max suffix> <netflag>\n\n" L_.str.26: ## @.str.26 .asciz "Logmarkparse fatal: %s\n" .subsections_via_symbols
the_stack_data/122014211.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] mov w8, #1 stur w8, [x29, #-12] str wzr, [sp, #16] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov x9, sp sub x8, x29, #8 str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-12] ldur w9, [x29, #-8] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldur w9, [x29, #-12] ldr w8, [sp, #16] add w8, w8, w9 str w8, [sp, #16] ldur w8, [x29, #-12] add w8, w8, #1 stur w8, [x29, #-12] b LBB0_1 LBB0_3: ldr w9, [sp, #16] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf mov w0, #0 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Enter a number :" l_.str.1: ; @.str.1 .asciz "%d" l_.str.2: ; @.str.2 .asciz "sum = %d" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) movl $1, -12(%rbp) movl $0, -16(%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 LBB0_1: ## =>This Inner Loop Header: Depth=1 movl -12(%rbp), %eax cmpl -8(%rbp), %eax jg LBB0_3 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl -12(%rbp), %eax addl -16(%rbp), %eax movl %eax, -16(%rbp) movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB0_1 LBB0_3: movl -16(%rbp), %esi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Enter a number :" L_.str.1: ## @.str.1 .asciz "%d" L_.str.2: ## @.str.2 .asciz "sum = %d" .subsections_via_symbols
the_stack_data/151705513.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, #4] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 bl _getchar str w0, [sp, #8] adds w8, w0, #1 cset w8, eq tbnz w8, #0, LBB0_12 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #8] subs w8, w8, #32 cset w8, eq tbnz w8, #0, LBB0_5 b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #8] subs w8, w8, #10 cset w8, eq tbnz w8, #0, LBB0_5 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #8] subs w8, w8, #9 cset w8, ne tbnz w8, #0, LBB0_8 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #4] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB0_7 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_1 Depth=1 str wzr, [sp, #4] mov w0, #10 bl _putchar b LBB0_7 LBB0_7: ; in Loop: Header=BB0_1 Depth=1 b LBB0_11 LBB0_8: ; in Loop: Header=BB0_1 Depth=1 ldr w0, [sp, #8] bl _putchar ldr w8, [sp, #4] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_10 b LBB0_9 LBB0_9: ; in Loop: Header=BB0_1 Depth=1 mov w8, #1 str w8, [sp, #4] b LBB0_10 LBB0_10: ; in Loop: Header=BB0_1 Depth=1 b LBB0_11 LBB0_11: ; in Loop: Header=BB0_1 Depth=1 b LBB0_1 LBB0_12: 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, -12(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 callq _getchar movl %eax, -8(%rbp) cmpl $-1, %eax je LBB0_12 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 cmpl $32, -8(%rbp) je LBB0_5 ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 cmpl $10, -8(%rbp) je LBB0_5 ## %bb.4: ## in Loop: Header=BB0_1 Depth=1 cmpl $9, -8(%rbp) jne LBB0_8 LBB0_5: ## in Loop: Header=BB0_1 Depth=1 cmpl $1, -12(%rbp) jne LBB0_7 ## %bb.6: ## in Loop: Header=BB0_1 Depth=1 movl $0, -12(%rbp) movl $10, %edi callq _putchar LBB0_7: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_11 LBB0_8: ## in Loop: Header=BB0_1 Depth=1 movl -8(%rbp), %edi callq _putchar cmpl $0, -12(%rbp) jne LBB0_10 ## %bb.9: ## in Loop: Header=BB0_1 Depth=1 movl $1, -12(%rbp) LBB0_10: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_11 LBB0_11: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_1 LBB0_12: movl -4(%rbp), %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/92328258.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 x11, _CharVar@GOTPAGE ldr x11, [x11, _CharVar@GOTPAGEOFF] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] mov w9, #1 str w9, [sp, #12] mov w8, #97 strb w8, [x11] ldr w10, [sp, #12] str w10, [sp, #12] ldrb w10, [x11] strb w10, [x11] str w9, [sp, #16] adrp x9, _CharArray@GOTPAGE ldr x9, [x9, _CharArray@GOTPAGEOFF] strb w8, [x9] 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: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .comm _CharVar,1,0 ; @CharVar .comm _CharArray,2,0 ; @CharArray .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 movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $1, -20(%rbp) movq _CharVar@GOTPCREL(%rip), %rax movb $97, (%rax) movl -20(%rbp), %eax movl %eax, -20(%rbp) movq _CharVar@GOTPCREL(%rip), %rax movb (%rax), %cl movq _CharVar@GOTPCREL(%rip), %rax movb %cl, (%rax) movl $1, -16(%rbp) movq _CharArray@GOTPCREL(%rip), %rax movb $97, (%rax) movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_2 ## %bb.1: addq $32, %rsp popq %rbp retq LBB0_2: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .comm _CharVar,1,0 ## @CharVar .comm _CharArray,2,0 ## @CharArray .subsections_via_symbols
the_stack_data/731583.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _getNewList ; -- Begin function getNewList .p2align 2 _getNewList: ; @getNewList .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov x0, #16 bl _malloc str x0, [sp] ldr x8, [sp] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: ; kill: def $x8 killed $xzr str xzr, [sp, #8] b LBB0_5 LBB0_2: mov x0, #16 bl _malloc ldr x8, [sp] str x0, [x8] ldr x8, [sp] ldr x8, [x8] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: ldr x8, [sp] ldr x8, [x8] ; kill: def $x9 killed $xzr str xzr, [x8] ldr x8, [sp] str wzr, [x8, #8] b LBB0_4 LBB0_4: ldr x8, [sp] str x8, [sp, #8] b LBB0_5 LBB0_5: ldr x0, [sp, #8] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _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] stur w1, [x29, #-12] ldur x8, [x29, #-8] ldr x8, [x8] str x8, [sp, #8] b LBB1_1 LBB1_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #8] ldr x8, [x8] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB1_3 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 ldr x8, [sp, #8] ldr x8, [x8] str x8, [sp, #8] b LBB1_1 LBB1_3: mov x0, #16 bl _malloc ldr x8, [sp, #8] str x0, [x8] ldr x8, [sp, #8] ldr x8, [x8] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB1_5 b LBB1_4 LBB1_4: ldur w8, [x29, #-12] ldr x9, [sp, #8] str w8, [x9, #8] ldr x8, [sp, #8] ldr x8, [x8] ; kill: def $x9 killed $xzr str xzr, [x8] b LBB1_5 LBB1_5: ldur x9, [x29, #-8] ldr w8, [x9, #8] add w8, w8, #1 str w8, [x9, #8] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _get ; -- Begin function get .p2align 2 _get: ; @get .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, #16] str w1, [sp, #12] str wzr, [sp, #8] ldr x8, [sp, #16] ldr x8, [x8] str x8, [sp] b LBB2_1 LBB2_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp] ldr x8, [x8] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB2_5 b LBB2_2 LBB2_2: ; in Loop: Header=BB2_1 Depth=1 ldr w8, [sp, #8] ldr w9, [sp, #12] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB2_4 b LBB2_3 LBB2_3: ldr x8, [sp] ldr w8, [x8, #8] str w8, [sp, #28] b LBB2_6 LBB2_4: ; in Loop: Header=BB2_1 Depth=1 ldr x8, [sp] ldr x8, [x8] str x8, [sp] ldr w8, [sp, #8] add w8, w8, #1 str w8, [sp, #8] b LBB2_1 LBB2_5: str wzr, [sp, #28] b LBB2_6 LBB2_6: ldr w0, [sp, #28] add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _insertAt ; -- Begin function insertAt .p2align 2 _insertAt: ; @insertAt .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] stur w1, [x29, #-12] stur w2, [x29, #-16] ldur x8, [x29, #-8] ldr x8, [x8] str x8, [sp, #24] ldur w8, [x29, #-16] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB3_4 b LBB3_1 LBB3_1: mov x0, #16 bl _malloc str x0, [sp, #16] ldr x8, [sp, #16] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB3_3 b LBB3_2 LBB3_2: ldur x8, [x29, #-8] ldr x8, [x8] ldr x9, [sp, #16] str x8, [x9] ldur w8, [x29, #-12] ldr x9, [sp, #16] str w8, [x9, #8] ldr x8, [sp, #16] ldur x9, [x29, #-8] str x8, [x9] ldur x9, [x29, #-8] ldr w8, [x9, #8] add w8, w8, #1 str w8, [x9, #8] b LBB3_3 LBB3_3: b LBB3_11 LBB3_4: str wzr, [sp, #12] b LBB3_5 LBB3_5: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #24] ldr x8, [x8] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB3_11 b LBB3_6 LBB3_6: ; in Loop: Header=BB3_5 Depth=1 ldr w8, [sp, #12] ldur w9, [x29, #-16] subs w9, w9, #1 subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB3_10 b LBB3_7 LBB3_7: ; in Loop: Header=BB3_5 Depth=1 mov x0, #16 bl _malloc str x0, [sp] ldr x8, [sp] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB3_9 b LBB3_8 LBB3_8: ldr x8, [sp, #24] ldr x8, [x8] ldr x9, [sp] str x8, [x9] ldur w8, [x29, #-12] ldr x9, [sp] str w8, [x9, #8] ldr x8, [sp] ldr x9, [sp, #24] str x8, [x9] ldur x9, [x29, #-8] ldr w8, [x9, #8] add w8, w8, #1 str w8, [x9, #8] b LBB3_11 LBB3_9: ; in Loop: Header=BB3_5 Depth=1 b LBB3_10 LBB3_10: ; in Loop: Header=BB3_5 Depth=1 ldr x8, [sp, #24] ldr x8, [x8] str x8, [sp, #24] ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB3_5 LBB3_11: ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _delete ; -- Begin function delete .p2align 2 _delete: ; @delete .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] stur w1, [x29, #-12] ldur x8, [x29, #-8] ldr x8, [x8] str x8, [sp, #24] ldur w8, [x29, #-12] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB4_2 b LBB4_1 LBB4_1: ldr x8, [sp, #24] str x8, [sp, #16] ldr x8, [sp, #24] ldr x8, [x8] ldur x9, [x29, #-8] str x8, [x9] ldr x0, [sp, #16] bl _free ldur x9, [x29, #-8] ldr w8, [x9, #8] subs w8, w8, #1 str w8, [x9, #8] b LBB4_7 LBB4_2: str wzr, [sp, #12] b LBB4_3 LBB4_3: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #24] ldr x8, [x8] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB4_7 b LBB4_4 LBB4_4: ; in Loop: Header=BB4_3 Depth=1 ldr w8, [sp, #12] ldur w9, [x29, #-12] subs w9, w9, #1 subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB4_6 b LBB4_5 LBB4_5: ldr x8, [sp, #24] ldr x8, [x8] str x8, [sp] ldr x8, [sp, #24] ldr x8, [x8] ldr x8, [x8] ldr x9, [sp, #24] str x8, [x9] ldr x0, [sp] bl _free ldur x9, [x29, #-8] ldr w8, [x9, #8] subs w8, w8, #1 str w8, [x9, #8] b LBB4_7 LBB4_6: ; in Loop: Header=BB4_3 Depth=1 ldr x8, [sp, #24] ldr x8, [x8] str x8, [sp, #24] ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB4_3 LBB4_7: ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _getLength ; -- Begin function getLength .p2align 2 _getLength: ; @getLength .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] ldr x8, [sp, #8] ldr w0, [x8, #8] add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #80 .cfi_def_cfa_offset 80 stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp, #64 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #0 stur w8, [x29, #-24] ; 4-byte Folded Spill stur wzr, [x29, #-4] bl _getNewList stur x0, [x29, #-16] ldur x0, [x29, #-16] mov w1, #1 bl _insert ldur x0, [x29, #-16] mov w1, #2 bl _insert ldur x0, [x29, #-16] mov w1, #3 stur w1, [x29, #-28] ; 4-byte Folded Spill bl _insert ldur x0, [x29, #-16] mov w1, #4 bl _insert ldur w2, [x29, #-28] ; 4-byte Folded Reload ldur x0, [x29, #-16] mov w1, #100 bl _insertAt ldur w1, [x29, #-24] ; 4-byte Folded Reload ldur x0, [x29, #-16] bl _delete stur wzr, [x29, #-20] b LBB6_1 LBB6_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-20] str w8, [sp, #32] ; 4-byte Folded Spill ldur x0, [x29, #-16] bl _getLength ldr w8, [sp, #32] ; 4-byte Folded Reload subs w8, w8, w0 cset w8, ge tbnz w8, #0, LBB6_4 b LBB6_2 LBB6_2: ; in Loop: Header=BB6_1 Depth=1 ldur w9, [x29, #-20] ; implicit-def: $x8 mov x8, x9 str x8, [sp, #24] ; 8-byte Folded Spill ldur x0, [x29, #-16] ldur w1, [x29, #-20] bl _get ldr x8, [sp, #24] ; 8-byte Folded Reload mov x9, sp str x8, [x9] ; implicit-def: $x8 mov x8, x0 str x8, [x9, #8] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf b LBB6_3 LBB6_3: ; in Loop: Header=BB6_1 Depth=1 ldur w8, [x29, #-20] add w8, w8, #1 stur w8, [x29, #-20] b LBB6_1 LBB6_4: ldur x0, [x29, #-16] bl _getLength 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 ldur w0, [x29, #-4] ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "mylist[%d] : %d\n" l_.str.1: ; @.str.1 .asciz "\n\353\246\254\354\212\244\355\212\270 \352\270\270\354\235\264 : %d\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _getNewList ## -- Begin function getNewList .p2align 4, 0x90 _getNewList: ## @getNewList .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $16, %edi callq _malloc movq %rax, -16(%rbp) cmpq $0, -16(%rbp) jne LBB0_2 ## %bb.1: movq $0, -8(%rbp) jmp LBB0_5 LBB0_2: movl $16, %edi callq _malloc movq %rax, %rcx movq -16(%rbp), %rax movq %rcx, (%rax) movq -16(%rbp), %rax cmpq $0, (%rax) je LBB0_4 ## %bb.3: movq -16(%rbp), %rax movq (%rax), %rax movq $0, (%rax) movq -16(%rbp), %rax movl $0, 8(%rax) LBB0_4: movq -16(%rbp), %rax movq %rax, -8(%rbp) LBB0_5: 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) movl %esi, -12(%rbp) movq -8(%rbp), %rax movq (%rax), %rax movq %rax, -24(%rbp) LBB1_1: ## =>This Inner Loop Header: Depth=1 movq -24(%rbp), %rax cmpq $0, (%rax) je LBB1_3 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 movq -24(%rbp), %rax movq (%rax), %rax movq %rax, -24(%rbp) jmp LBB1_1 LBB1_3: movl $16, %edi callq _malloc movq %rax, %rcx movq -24(%rbp), %rax movq %rcx, (%rax) movq -24(%rbp), %rax cmpq $0, (%rax) je LBB1_5 ## %bb.4: movl -12(%rbp), %ecx movq -24(%rbp), %rax movl %ecx, 8(%rax) movq -24(%rbp), %rax movq (%rax), %rax movq $0, (%rax) LBB1_5: movq -8(%rbp), %rax movl 8(%rax), %ecx addl $1, %ecx movl %ecx, 8(%rax) addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _get ## -- Begin function get .p2align 4, 0x90 _get: ## @get .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -16(%rbp) movl %esi, -20(%rbp) movl $0, -24(%rbp) movq -16(%rbp), %rax movq (%rax), %rax movq %rax, -32(%rbp) LBB2_1: ## =>This Inner Loop Header: Depth=1 movq -32(%rbp), %rax cmpq $0, (%rax) je LBB2_5 ## %bb.2: ## in Loop: Header=BB2_1 Depth=1 movl -24(%rbp), %eax cmpl -20(%rbp), %eax jne LBB2_4 ## %bb.3: movq -32(%rbp), %rax movl 8(%rax), %eax movl %eax, -4(%rbp) jmp LBB2_6 LBB2_4: ## in Loop: Header=BB2_1 Depth=1 movq -32(%rbp), %rax movq (%rax), %rax movq %rax, -32(%rbp) movl -24(%rbp), %eax addl $1, %eax movl %eax, -24(%rbp) jmp LBB2_1 LBB2_5: movl $0, -4(%rbp) LBB2_6: movl -4(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .globl _insertAt ## -- Begin function insertAt .p2align 4, 0x90 _insertAt: ## @insertAt .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) movl %edx, -16(%rbp) movq -8(%rbp), %rax movq (%rax), %rax movq %rax, -24(%rbp) cmpl $0, -16(%rbp) jne LBB3_4 ## %bb.1: movl $16, %edi callq _malloc movq %rax, -32(%rbp) cmpq $0, -32(%rbp) je LBB3_3 ## %bb.2: movq -8(%rbp), %rax movq (%rax), %rcx movq -32(%rbp), %rax movq %rcx, (%rax) movl -12(%rbp), %ecx movq -32(%rbp), %rax movl %ecx, 8(%rax) movq -32(%rbp), %rcx movq -8(%rbp), %rax movq %rcx, (%rax) movq -8(%rbp), %rax movl 8(%rax), %ecx addl $1, %ecx movl %ecx, 8(%rax) LBB3_3: jmp LBB3_11 LBB3_4: movl $0, -36(%rbp) LBB3_5: ## =>This Inner Loop Header: Depth=1 movq -24(%rbp), %rax cmpq $0, (%rax) je LBB3_11 ## %bb.6: ## in Loop: Header=BB3_5 Depth=1 movl -36(%rbp), %eax movl -16(%rbp), %ecx subl $1, %ecx cmpl %ecx, %eax jne LBB3_10 ## %bb.7: ## in Loop: Header=BB3_5 Depth=1 movl $16, %edi callq _malloc movq %rax, -48(%rbp) cmpq $0, -48(%rbp) je LBB3_9 ## %bb.8: movq -24(%rbp), %rax movq (%rax), %rcx movq -48(%rbp), %rax movq %rcx, (%rax) movl -12(%rbp), %ecx movq -48(%rbp), %rax movl %ecx, 8(%rax) movq -48(%rbp), %rcx movq -24(%rbp), %rax movq %rcx, (%rax) movq -8(%rbp), %rax movl 8(%rax), %ecx addl $1, %ecx movl %ecx, 8(%rax) jmp LBB3_11 LBB3_9: ## in Loop: Header=BB3_5 Depth=1 jmp LBB3_10 LBB3_10: ## in Loop: Header=BB3_5 Depth=1 movq -24(%rbp), %rax movq (%rax), %rax movq %rax, -24(%rbp) movl -36(%rbp), %eax addl $1, %eax movl %eax, -36(%rbp) jmp LBB3_5 LBB3_11: addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _delete ## -- Begin function delete .p2align 4, 0x90 _delete: ## @delete .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) movq -8(%rbp), %rax movq (%rax), %rax movq %rax, -24(%rbp) cmpl $0, -12(%rbp) jne LBB4_2 ## %bb.1: movq -24(%rbp), %rax movq %rax, -32(%rbp) movq -24(%rbp), %rax movq (%rax), %rcx movq -8(%rbp), %rax movq %rcx, (%rax) movq -32(%rbp), %rdi callq _free movq -8(%rbp), %rax movl 8(%rax), %ecx addl $-1, %ecx movl %ecx, 8(%rax) jmp LBB4_7 LBB4_2: movl $0, -36(%rbp) LBB4_3: ## =>This Inner Loop Header: Depth=1 movq -24(%rbp), %rax cmpq $0, (%rax) je LBB4_7 ## %bb.4: ## in Loop: Header=BB4_3 Depth=1 movl -36(%rbp), %eax movl -12(%rbp), %ecx subl $1, %ecx cmpl %ecx, %eax jne LBB4_6 ## %bb.5: movq -24(%rbp), %rax movq (%rax), %rax movq %rax, -48(%rbp) movq -24(%rbp), %rax movq (%rax), %rax movq (%rax), %rcx movq -24(%rbp), %rax movq %rcx, (%rax) movq -48(%rbp), %rdi callq _free movq -8(%rbp), %rax movl 8(%rax), %ecx addl $-1, %ecx movl %ecx, 8(%rax) jmp LBB4_7 LBB4_6: ## in Loop: Header=BB4_3 Depth=1 movq -24(%rbp), %rax movq (%rax), %rax movq %rax, -24(%rbp) movl -36(%rbp), %eax addl $1, %eax movl %eax, -36(%rbp) jmp LBB4_3 LBB4_7: addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _getLength ## -- Begin function getLength .p2align 4, 0x90 _getLength: ## @getLength .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) movq -8(%rbp), %rax movl 8(%rax), %eax popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl $0, -4(%rbp) callq _getNewList movq %rax, -16(%rbp) movq -16(%rbp), %rdi movl $1, %esi callq _insert movq -16(%rbp), %rdi movl $2, %esi callq _insert movq -16(%rbp), %rdi movl $3, %esi callq _insert movq -16(%rbp), %rdi movl $4, %esi callq _insert movq -16(%rbp), %rdi movl $100, %esi movl $3, %edx callq _insertAt movq -16(%rbp), %rdi xorl %esi, %esi callq _delete movl $0, -20(%rbp) LBB6_1: ## =>This Inner Loop Header: Depth=1 movl -20(%rbp), %eax movl %eax, -24(%rbp) ## 4-byte Spill movq -16(%rbp), %rdi callq _getLength movl %eax, %ecx movl -24(%rbp), %eax ## 4-byte Reload cmpl %ecx, %eax jge LBB6_4 ## %bb.2: ## in Loop: Header=BB6_1 Depth=1 movl -20(%rbp), %eax movl %eax, -28(%rbp) ## 4-byte Spill movq -16(%rbp), %rdi movl -20(%rbp), %esi callq _get movl -28(%rbp), %esi ## 4-byte Reload movl %eax, %edx leaq L_.str(%rip), %rdi movb $0, %al callq _printf ## %bb.3: ## in Loop: Header=BB6_1 Depth=1 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB6_1 LBB6_4: movq -16(%rbp), %rdi callq _getLength movl %eax, %esi leaq L_.str.1(%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 "mylist[%d] : %d\n" L_.str.1: ## @.str.1 .asciz "\n\353\246\254\354\212\244\355\212\270 \352\270\270\354\235\264 : %d\n" .subsections_via_symbols
the_stack_data/850.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _func ; -- Begin function func .p2align 2 _func: ; @func .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] ldr x8, [sp, #8] ldr w8, [x8] str w8, [sp, #4] ldr x0, [sp, #8] add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _func2 ; -- Begin function func2 .p2align 2 _func2: ; @func2 .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #12] add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _test ; -- Begin function test .p2align 2 _test: ; @test .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 sub x8, x29, #24 str x8, [sp] ; 8-byte Folded Spill ldur x8, [x29, #-24] ldr w8, [x8] stur w8, [x29, #-36] sub x8, x29, #32 str x8, [sp, #8] ; 8-byte Folded Spill ldur x8, [x29, #-32] ldr w8, [x8] stur w8, [x29, #-36] ldur x8, [x29, #-48] ldr x8, [x8] ldr w8, [x8] stur w8, [x29, #-36] ldur x8, [x29, #-56] ldr x8, [x8] stur x8, [x29, #-32] ldur x8, [x29, #-48] ldr x8, [x8] stur x8, [x29, #-24] ldur x8, [x29, #-48] ldr x8, [x8] stur x8, [x29, #-24] ldur x8, [x29, #-48] stur x8, [x29, #-48] ldur x8, [x29, #-24] stur x8, [x29, #-24] ldur x8, [x29, #-24] stur x8, [x29, #-24] ldur x8, [x29, #-24] stur x8, [x29, #-24] ldur x8, [x29, #-24] stur x8, [x29, #-24] ldur x8, [x29, #-24] ldr w8, [x8] stur w8, [x29, #-36] ldur x9, [x29, #-24] mov w8, #2 str w8, [x9] ldur x9, [x29, #-24] ldur x10, [x29, #-48] str x9, [x10] ldur x9, [x29, #-48] ldr x9, [x9] str w8, [x9] ldur x8, [x29, #-32] ldur x9, [x29, #-56] str x8, [x9] ldur x8, [x29, #-24] add x8, x8, #4 stur x8, [x29, #-24] ldur x8, [x29, #-24] add x8, x8, #4 stur x8, [x29, #-24] ldur x8, [x29, #-64] ldr w8, [x8] stur w8, [x29, #-36] ldur x8, [x29, #-64] ldr w8, [x8, #4] stur w8, [x29, #-36] ldur x8, [x29, #-64] stur x8, [x29, #-24] ldur x8, [x29, #-64] add x8, x8, #4 stur x8, [x29, #-24] ldur x8, [x29, #-72] stur x8, [x29, #-24] ldur x8, [x29, #-72] add x8, x8, #8 stur x8, [x29, #-24] ldur x8, [x29, #-72] ldr x8, [x8, #16] stur x8, [x29, #-24] ldur x8, [x29, #-72] ldr x8, [x8, #24] stur x8, [x29, #-24] ldur x8, [x29, #-72] ldr x8, [x8, #32] stur x8, [x29, #-64] ldur x8, [x29, #-72] ldr x8, [x8, #40] stur x8, [x29, #-64] ldur x8, [x29, #-72] add x8, x8, #4 stur x8, [x29, #-24] ldur x8, [x29, #-80] stur x8, [x29, #-24] ldur x8, [x29, #-80] add x8, x8, #8 stur x8, [x29, #-24] ldur x8, [x29, #-80] ldr x8, [x8, #16] stur x8, [x29, #-24] ldur x8, [x29, #-80] ldr x8, [x8, #24] stur x8, [x29, #-24] ldur x8, [x29, #-80] ldr x8, [x8, #32] stur x8, [x29, #-64] ldur x8, [x29, #-80] ldr x8, [x8, #40] stur x8, [x29, #-64] ldur x8, [x29, #-24] ldr w8, [x8, #4] stur w8, [x29, #-36] ldur x8, [x29, #-48] ldr x8, [x8] ldr w8, [x8] stur w8, [x29, #-36] ldur x8, [x29, #-56] ldr x8, [x8] stur x8, [x29, #-32] ldur x8, [x29, #-48] ldur x9, [x29, #-24] ldrsw x9, [x9] ldr x8, [x8, x9, lsl #3] stur x8, [x29, #-24] ldur x8, [x29, #-24] ldur x9, [x29, #-24] ldrsw x9, [x9] ldr w8, [x8, x9, lsl #2] stur w8, [x29, #-36] ldur w8, [x29, #-116] stur w8, [x29, #-36] ldur x8, [x29, #-200] stur x8, [x29, #-208] ldur x8, [x29, #-216] stur x8, [x29, #-208] ldr x8, [sp, #880] stur x8, [x29, #-24] ldr x8, [sp, #880] ldr x8, [x8, #16] stur x8, [x29, #-24] ldr x8, [sp, #880] add x8, x8, #16 str x8, [sp, #64] ldur x8, [x29, #-80] ldr x8, [x8, #40] ldr w8, [x8] stur w8, [x29, #-36] ldur x8, [x29, #-72] ldr w8, [x8, #4] stur w8, [x29, #-36] ldur x8, [x29, #-72] add x8, x8, #4 stur x8, [x29, #-24] ldur x8, [x29, #-24] stur x8, [x29, #-32] ldur x8, [x29, #-48] ldr x8, [x8] stur x8, [x29, #-32] ldur x8, [x29, #-48] ldr x8, [x8] stur x8, [x29, #-32] ldr x8, [sp, #880] stur x8, [x29, #-80] ldr x8, [sp, #160] stur x8, [x29, #-80] ldur x8, [x29, #-24] stur x8, [x29, #-32] ldur x8, [x29, #-48] ldr x8, [x8] stur x8, [x29, #-32] ldur x0, [x29, #-24] bl _func ldr x9, [sp] ; 8-byte Folded Reload ldr x8, [sp, #8] ; 8-byte Folded Reload ldr w10, [x0] stur w10, [x29, #-36] mov x10, x9 stur x10, [x29, #-48] mov x10, x8 stur x10, [x29, #-48] stur x9, [x29, #-48] stur x8, [x29, #-48] ldur x8, [x29, #-80] ldr x8, [x8, #40] ldr w8, [x8] stur w8, [x29, #-36] ldur x8, [x29, #-24] ldr w0, [x8] bl _func2 ldur x8, [x29, #-24] ldr w8, [x8] add w0, w8, #1 bl _func2 ldur x8, [x29, #-24] ldr w8, [x8] subs w8, w8, #0 cset w8, eq and w0, w8, #0x1 bl _func2 ldur x8, [x29, #-24] ldr w0, [x8] stur w0, [x29, #-36] bl _func2 ldur x8, [x29, #-24] ldr w8, [x8] sxtb w0, w8 bl _func2 ldur x8, [x29, #-24] ldr w8, [x8] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB2_2 b LBB2_1 LBB2_1: b LBB2_5 LBB2_2: ldur x8, [x29, #-24] ldr w8, [x8] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB2_4 b LBB2_3 LBB2_3: b LBB2_4 LBB2_4: b LBB2_5 LBB2_5: ; %bb.6: b LBB2_7 LBB2_7: ; =>This Inner Loop Header: Depth=1 ldur x8, [x29, #-24] ldr w8, [x8] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB2_10 b LBB2_8 LBB2_8: ; in Loop: Header=BB2_7 Depth=1 b LBB2_9 LBB2_9: ; in Loop: Header=BB2_7 Depth=1 b LBB2_7 LBB2_10: b LBB2_11 LBB2_11: ; =>This Inner Loop Header: Depth=1 ldur x8, [x29, #-24] ldr w8, [x8] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB2_13 b LBB2_12 LBB2_12: ; in Loop: Header=BB2_11 Depth=1 b LBB2_11 LBB2_13: b LBB2_14 LBB2_14: ; =>This Inner Loop Header: Depth=1 b LBB2_15 LBB2_15: ; in Loop: Header=BB2_14 Depth=1 b LBB2_14 .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _func ## -- Begin function func .p2align 4, 0x90 _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 movq %rdi, -8(%rbp) movq -8(%rbp), %rax movl (%rax), %eax movl %eax, -12(%rbp) movq -8(%rbp), %rax popq %rbp retq .cfi_endproc ## -- End function .globl _func2 ## -- Begin function func2 .p2align 4, 0x90 _func2: ## @func2 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, -4(%rbp) popq %rbp retq .cfi_endproc ## -- End function .globl _test ## -- Begin function test .p2align 4, 0x90 _test: ## @test .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $1152, %rsp ## imm = 0x480 movq -8(%rbp), %rax movl (%rax), %eax movl %eax, -20(%rbp) movq -16(%rbp), %rax movl (%rax), %eax movl %eax, -20(%rbp) movq -32(%rbp), %rax movq (%rax), %rax movl (%rax), %eax movl %eax, -20(%rbp) movq -40(%rbp), %rax movq (%rax), %rax movq %rax, -16(%rbp) movq -32(%rbp), %rax movq (%rax), %rax movq %rax, -8(%rbp) movq -32(%rbp), %rax movq (%rax), %rax movq %rax, -8(%rbp) movq -32(%rbp), %rax movq %rax, -32(%rbp) movq -8(%rbp), %rax movq %rax, -8(%rbp) movq -8(%rbp), %rax movq %rax, -8(%rbp) movq -8(%rbp), %rax movq %rax, -8(%rbp) movq -8(%rbp), %rax movq %rax, -8(%rbp) movq -8(%rbp), %rax movl (%rax), %eax movl %eax, -20(%rbp) movq -8(%rbp), %rax movl $2, (%rax) movq -8(%rbp), %rcx movq -32(%rbp), %rax movq %rcx, (%rax) movq -32(%rbp), %rax movq (%rax), %rax movl $2, (%rax) movq -16(%rbp), %rcx movq -40(%rbp), %rax movq %rcx, (%rax) movq -8(%rbp), %rax addq $4, %rax movq %rax, -8(%rbp) movq -8(%rbp), %rax addq $4, %rax movq %rax, -8(%rbp) movq -48(%rbp), %rax movl (%rax), %eax movl %eax, -20(%rbp) movq -48(%rbp), %rax movl 4(%rax), %eax movl %eax, -20(%rbp) movq -48(%rbp), %rax movq %rax, -8(%rbp) movq -48(%rbp), %rax addq $4, %rax movq %rax, -8(%rbp) movq -56(%rbp), %rax movq %rax, -8(%rbp) movq -56(%rbp), %rax addq $8, %rax movq %rax, -8(%rbp) movq -56(%rbp), %rax movq 16(%rax), %rax movq %rax, -8(%rbp) movq -56(%rbp), %rax movq 24(%rax), %rax movq %rax, -8(%rbp) movq -56(%rbp), %rax movq 32(%rax), %rax movq %rax, -48(%rbp) movq -56(%rbp), %rax movq 40(%rax), %rax movq %rax, -48(%rbp) movq -56(%rbp), %rax addq $4, %rax movq %rax, -8(%rbp) movq -64(%rbp), %rax movq %rax, -8(%rbp) movq -64(%rbp), %rax addq $8, %rax movq %rax, -8(%rbp) movq -64(%rbp), %rax movq 16(%rax), %rax movq %rax, -8(%rbp) movq -64(%rbp), %rax movq 24(%rax), %rax movq %rax, -8(%rbp) movq -64(%rbp), %rax movq 32(%rax), %rax movq %rax, -48(%rbp) movq -64(%rbp), %rax movq 40(%rax), %rax movq %rax, -48(%rbp) movq -8(%rbp), %rax movl 4(%rax), %eax movl %eax, -20(%rbp) movq -32(%rbp), %rax movq (%rax), %rax movl (%rax), %eax movl %eax, -20(%rbp) movq -40(%rbp), %rax movq (%rax), %rax movq %rax, -16(%rbp) movq -32(%rbp), %rax movq -8(%rbp), %rcx movslq (%rcx), %rcx movq (%rax,%rcx,8), %rax movq %rax, -8(%rbp) movq -8(%rbp), %rax movq -8(%rbp), %rcx movslq (%rcx), %rcx movl (%rax,%rcx,4), %eax movl %eax, -20(%rbp) movl -108(%rbp), %eax movl %eax, -20(%rbp) movq -192(%rbp), %rax movq %rax, -200(%rbp) movq -208(%rbp), %rax movq %rax, -200(%rbp) movq -280(%rbp), %rax movq %rax, -8(%rbp) movq -280(%rbp), %rax movq 16(%rax), %rax movq %rax, -8(%rbp) movq -280(%rbp), %rax addq $16, %rax movq %rax, -1096(%rbp) movq -64(%rbp), %rax movq 40(%rax), %rax movl (%rax), %eax movl %eax, -20(%rbp) movq -56(%rbp), %rax movl 4(%rax), %eax movl %eax, -20(%rbp) movq -56(%rbp), %rax addq $4, %rax movq %rax, -8(%rbp) movq -8(%rbp), %rax movq %rax, -16(%rbp) movq -32(%rbp), %rax movq (%rax), %rax movq %rax, -16(%rbp) movq -32(%rbp), %rax movq (%rax), %rax movq %rax, -16(%rbp) movq -280(%rbp), %rax movq %rax, -64(%rbp) movq -1000(%rbp), %rax movq %rax, -64(%rbp) movq -8(%rbp), %rax movq %rax, -16(%rbp) movq -32(%rbp), %rax movq (%rax), %rax movq %rax, -16(%rbp) movq -8(%rbp), %rdi callq _func movl (%rax), %eax movl %eax, -20(%rbp) leaq -8(%rbp), %rax movq %rax, -32(%rbp) leaq -16(%rbp), %rax movq %rax, -32(%rbp) leaq -8(%rbp), %rax movq %rax, -32(%rbp) leaq -16(%rbp), %rax movq %rax, -32(%rbp) movq -64(%rbp), %rax movq 40(%rax), %rax movl (%rax), %eax movl %eax, -20(%rbp) movq -8(%rbp), %rax movl (%rax), %edi callq _func2 movq -8(%rbp), %rax movl (%rax), %edi addl $1, %edi callq _func2 movq -8(%rbp), %rax cmpl $0, (%rax) setne %al xorb $-1, %al andb $1, %al movzbl %al, %edi callq _func2 movq -8(%rbp), %rax movl (%rax), %edi movl %edi, -20(%rbp) callq _func2 movq -8(%rbp), %rax movl (%rax), %eax ## kill: def $al killed $al killed $eax movsbl %al, %edi callq _func2 movq -8(%rbp), %rax cmpl $0, (%rax) je LBB2_2 ## %bb.1: jmp LBB2_5 LBB2_2: movq -8(%rbp), %rax cmpl $0, (%rax) je LBB2_4 ## %bb.3: jmp LBB2_4 LBB2_4: jmp LBB2_5 LBB2_5: ## %bb.6: LBB2_7: ## =>This Inner Loop Header: Depth=1 movq -8(%rbp), %rax cmpl $0, (%rax) je LBB2_10 ## %bb.8: ## in Loop: Header=BB2_7 Depth=1 jmp LBB2_9 LBB2_9: ## in Loop: Header=BB2_7 Depth=1 jmp LBB2_7 LBB2_10: LBB2_11: ## =>This Inner Loop Header: Depth=1 movq -8(%rbp), %rax cmpl $0, (%rax) je LBB2_13 ## %bb.12: ## in Loop: Header=BB2_11 Depth=1 jmp LBB2_11 LBB2_13: LBB2_14: ## =>This Inner Loop Header: Depth=1 jmp LBB2_15 LBB2_15: ## in Loop: Header=BB2_14 Depth=1 jmp LBB2_14 .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/934165.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #0 stur w8, [x29, #-12] ; 4-byte Folded Spill stur wzr, [x29, #-4] mov w8, #7 stur w8, [x29, #-8] ldur w9, [x29, #-8] ; implicit-def: $x8 mov x8, x9 ldur w9, [x29, #-8] ldur w10, [x29, #-8] mul w10, w9, w10 mov x9, sp str x8, [x9] ; implicit-def: $x8 mov x8, x10 str x8, [x9, #8] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf 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 "Number %d squared is: %d\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) movl $7, -8(%rbp) movl -8(%rbp), %esi movl -8(%rbp), %edx imull -8(%rbp), %edx leaq L_.str(%rip), %rdi movb $0, %al callq _printf xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Number %d squared is: %d\n" .subsections_via_symbols
the_stack_data/375105.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: stp x28, x27, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w27, -24 .cfi_offset w28, -32 sub sp, sp, #864 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] str wzr, [sp, #52] str wzr, [sp, #48] str wzr, [sp, #44] str wzr, [sp, #40] mov w8, #-2147483648 str w8, [sp, #32] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov x9, sp add x8, sp, #36 str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf str wzr, [sp, #28] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #28] 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 ldrsw x9, [sp, #28] add x8, sp, #456 add x8, x8, x9, lsl #2 mov x9, sp str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #28] add w8, w8, #1 str w8, [sp, #28] b LBB0_1 LBB0_4: str wzr, [sp, #28] b LBB0_5 LBB0_5: ; =>This Loop Header: Depth=1 ; Child Loop BB0_7 Depth 2 ; Child Loop BB0_9 Depth 3 ldr w8, [sp, #28] ldr w9, [sp, #36] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_16 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_5 Depth=1 ldr w8, [sp, #28] str w8, [sp, #24] b LBB0_7 LBB0_7: ; Parent Loop BB0_5 Depth=1 ; => This Loop Header: Depth=2 ; Child Loop BB0_9 Depth 3 ldr w8, [sp, #24] ldr w9, [sp, #36] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_14 b LBB0_8 LBB0_8: ; in Loop: Header=BB0_7 Depth=2 ldr w8, [sp, #28] str w8, [sp, #20] b LBB0_9 LBB0_9: ; Parent Loop BB0_5 Depth=1 ; Parent Loop BB0_7 Depth=2 ; => This Inner Loop Header: Depth=3 ldr w8, [sp, #20] ldr w9, [sp, #24] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_12 b LBB0_10 LBB0_10: ; in Loop: Header=BB0_9 Depth=3 ldrsw x9, [sp, #20] add x8, sp, #456 ldr w9, [x8, x9, lsl #2] ldr w8, [sp, #44] add w8, w8, w9 str w8, [sp, #44] b LBB0_11 LBB0_11: ; in Loop: Header=BB0_9 Depth=3 ldr w8, [sp, #20] add w8, w8, #1 str w8, [sp, #20] b LBB0_9 LBB0_12: ; in Loop: Header=BB0_7 Depth=2 ldrsw x10, [sp, #48] add x9, sp, #56 mov w8, #0 str w8, [x9, x10, lsl #2] ldr w8, [sp, #44] ldrsw x10, [sp, #48] str w8, [x9, x10, lsl #2] ldr w8, [sp, #48] add w8, w8, #1 str w8, [sp, #48] str wzr, [sp, #44] b LBB0_13 LBB0_13: ; in Loop: Header=BB0_7 Depth=2 ldr w8, [sp, #24] add w8, w8, #1 str w8, [sp, #24] b LBB0_7 LBB0_14: ; in Loop: Header=BB0_5 Depth=1 b LBB0_15 LBB0_15: ; in Loop: Header=BB0_5 Depth=1 ldr w8, [sp, #28] add w8, w8, #1 str w8, [sp, #28] b LBB0_5 LBB0_16: str wzr, [sp, #28] b LBB0_17 LBB0_17: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #28] ldr w9, [sp, #48] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_22 b LBB0_18 LBB0_18: ; in Loop: Header=BB0_17 Depth=1 ldrsw x9, [sp, #28] add x8, sp, #56 ldr w8, [x8, x9, lsl #2] ldr w9, [sp, #32] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB0_20 b LBB0_19 LBB0_19: ; in Loop: Header=BB0_17 Depth=1 ldrsw x9, [sp, #28] add x8, sp, #56 ldr w8, [x8, x9, lsl #2] str w8, [sp, #32] b LBB0_20 LBB0_20: ; in Loop: Header=BB0_17 Depth=1 b LBB0_21 LBB0_21: ; in Loop: Header=BB0_17 Depth=1 ldr w8, [sp, #28] add w8, w8, #1 str w8, [sp, #28] b LBB0_17 LBB0_22: ldr w9, [sp, #32] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf ldr w8, [sp, #52] str w8, [sp, #16] ; 4-byte Folded Spill ldur x9, [x29, #-24] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_24 b LBB0_23 LBB0_23: bl ___stack_chk_fail LBB0_24: ldr w0, [sp, #16] ; 4-byte Folded Reload add sp, sp, #864 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x28, x27, [sp], #32 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Enter the value of n:" l_.str.1: ; @.str.1 .asciz "%d" l_.str.2: ; @.str.2 .asciz "Enter the elements:" l_.str.3: ; @.str.3 .asciz "The sum is: %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 $864, %rsp ## imm = 0x360 movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -820(%rbp) movl $0, -824(%rbp) movl $0, -828(%rbp) movl $0, -832(%rbp) movl $-2147483648, -840(%rbp) ## imm = 0x80000000 leaq L_.str(%rip), %rdi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi leaq -836(%rbp), %rsi movb $0, %al callq _scanf leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf movl $0, -844(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movl -844(%rbp), %eax cmpl -836(%rbp), %eax jge LBB0_4 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movslq -844(%rbp), %rax leaq -416(%rbp), %rsi shlq $2, %rax addq %rax, %rsi leaq L_.str.1(%rip), %rdi movb $0, %al callq _scanf ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movl -844(%rbp), %eax addl $1, %eax movl %eax, -844(%rbp) jmp LBB0_1 LBB0_4: movl $0, -844(%rbp) LBB0_5: ## =>This Loop Header: Depth=1 ## Child Loop BB0_7 Depth 2 ## Child Loop BB0_9 Depth 3 movl -844(%rbp), %eax cmpl -836(%rbp), %eax jge LBB0_16 ## %bb.6: ## in Loop: Header=BB0_5 Depth=1 movl -844(%rbp), %eax movl %eax, -848(%rbp) LBB0_7: ## Parent Loop BB0_5 Depth=1 ## => This Loop Header: Depth=2 ## Child Loop BB0_9 Depth 3 movl -848(%rbp), %eax cmpl -836(%rbp), %eax jge LBB0_14 ## %bb.8: ## in Loop: Header=BB0_7 Depth=2 movl -844(%rbp), %eax movl %eax, -852(%rbp) LBB0_9: ## Parent Loop BB0_5 Depth=1 ## Parent Loop BB0_7 Depth=2 ## => This Inner Loop Header: Depth=3 movl -852(%rbp), %eax cmpl -848(%rbp), %eax jg LBB0_12 ## %bb.10: ## in Loop: Header=BB0_9 Depth=3 movslq -852(%rbp), %rax movl -416(%rbp,%rax,4), %eax addl -828(%rbp), %eax movl %eax, -828(%rbp) ## %bb.11: ## in Loop: Header=BB0_9 Depth=3 movl -852(%rbp), %eax addl $1, %eax movl %eax, -852(%rbp) jmp LBB0_9 LBB0_12: ## in Loop: Header=BB0_7 Depth=2 movslq -824(%rbp), %rax movl $0, -816(%rbp,%rax,4) movl -828(%rbp), %ecx movslq -824(%rbp), %rax movl %ecx, -816(%rbp,%rax,4) movl -824(%rbp), %eax addl $1, %eax movl %eax, -824(%rbp) movl $0, -828(%rbp) ## %bb.13: ## in Loop: Header=BB0_7 Depth=2 movl -848(%rbp), %eax addl $1, %eax movl %eax, -848(%rbp) jmp LBB0_7 LBB0_14: ## in Loop: Header=BB0_5 Depth=1 jmp LBB0_15 LBB0_15: ## in Loop: Header=BB0_5 Depth=1 movl -844(%rbp), %eax addl $1, %eax movl %eax, -844(%rbp) jmp LBB0_5 LBB0_16: movl $0, -844(%rbp) LBB0_17: ## =>This Inner Loop Header: Depth=1 movl -844(%rbp), %eax cmpl -824(%rbp), %eax jge LBB0_22 ## %bb.18: ## in Loop: Header=BB0_17 Depth=1 movslq -844(%rbp), %rax movl -816(%rbp,%rax,4), %eax cmpl -840(%rbp), %eax jle LBB0_20 ## %bb.19: ## in Loop: Header=BB0_17 Depth=1 movslq -844(%rbp), %rax movl -816(%rbp,%rax,4), %eax movl %eax, -840(%rbp) LBB0_20: ## in Loop: Header=BB0_17 Depth=1 jmp LBB0_21 LBB0_21: ## in Loop: Header=BB0_17 Depth=1 movl -844(%rbp), %eax addl $1, %eax movl %eax, -844(%rbp) jmp LBB0_17 LBB0_22: movl -840(%rbp), %esi leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf movl -820(%rbp), %eax movl %eax, -856(%rbp) ## 4-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_24 ## %bb.23: movl -856(%rbp), %eax ## 4-byte Reload addq $864, %rsp ## imm = 0x360 popq %rbp retq LBB0_24: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Enter the value of n:" L_.str.1: ## @.str.1 .asciz "%d" L_.str.2: ## @.str.2 .asciz "Enter the elements:" L_.str.3: ## @.str.3 .asciz "The sum is: %d" .subsections_via_symbols
the_stack_data/31387076.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _fill_in ; -- Begin function fill_in .p2align 2 _fill_in: ; @fill_in .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #12] str w1, [sp, #8] str w2, [sp, #4] ldr w8, [sp, #12] adrp x9, _x@GOTPAGE ldr x9, [x9, _x@GOTPAGEOFF] str w8, [x9] ldr w8, [sp, #8] adrp x9, _y@GOTPAGE ldr x9, [x9, _y@GOTPAGEOFF] str w8, [x9] ldr w8, [sp, #4] adrp x9, _z@GOTPAGE ldr x9, [x9, _z@GOTPAGEOFF] str w8, [x9] ldr s1, [sp, #12] ; implicit-def: $d0 fmov s0, s1 sshll.2d v0, v0, #0 ; kill: def $d0 killed $d0 killed $q0 scvtf d0, d0 adrp x8, _dx@GOTPAGE ldr x8, [x8, _dx@GOTPAGEOFF] str d0, [x8] ldr s1, [sp, #8] ; implicit-def: $d0 fmov s0, s1 sshll.2d v0, v0, #0 ; kill: def $d0 killed $d0 killed $q0 scvtf d0, d0 adrp x8, _dy@GOTPAGE ldr x8, [x8, _dy@GOTPAGEOFF] str d0, [x8] ldr s1, [sp, #4] ; implicit-def: $d0 fmov s0, s1 sshll.2d v0, v0, #0 ; kill: def $d0 killed $d0 killed $q0 scvtf d0, d0 adrp x8, _dz@GOTPAGE ldr x8, [x8, _dz@GOTPAGEOFF] str d0, [x8] add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _test1 ; -- Begin function test1 .p2align 2 _test1: ; @test1 .cfi_startproc ; %bb.0: adrp x8, _x@GOTPAGE ldr x8, [x8, _x@GOTPAGEOFF] ldr s0, [x8] scvtf s0, s0 fcvt d0, s0 adrp x8, _dx@GOTPAGE ldr x8, [x8, _dx@GOTPAGEOFF] ldr d1, [x8] fcmp d0, d1 cset w8, eq and w0, w8, #0x1 ret .cfi_endproc ; -- End function .globl _test2 ; -- Begin function test2 .p2align 2 _test2: ; @test2 .cfi_startproc ; %bb.0: adrp x8, _dx@GOTPAGE ldr x8, [x8, _dx@GOTPAGEOFF] ldr d0, [x8] adrp x8, _dy@GOTPAGE ldr x8, [x8, _dy@GOTPAGEOFF] ldr d1, [x8] fadd d0, d0, d1 adrp x8, _x@GOTPAGE ldr x8, [x8, _x@GOTPAGEOFF] ldr w8, [x8] adrp x9, _y@GOTPAGE ldr x9, [x9, _y@GOTPAGEOFF] ldr w9, [x9] add w8, w8, w9 scvtf d1, w8 fcmp d0, d1 cset w8, eq and w0, w8, #0x1 ret .cfi_endproc ; -- End function .globl _test3 ; -- Begin function test3 .p2align 2 _test3: ; @test3 .cfi_startproc ; %bb.0: adrp x8, _dx@GOTPAGE ldr x8, [x8, _dx@GOTPAGEOFF] ldr d0, [x8] adrp x9, _dy@GOTPAGE ldr x9, [x9, _dy@GOTPAGEOFF] ldr d1, [x9] fadd d0, d0, d1 adrp x10, _dz@GOTPAGE ldr x10, [x10, _dz@GOTPAGEOFF] ldr d1, [x10] fadd d0, d0, d1 ldr d1, [x10] ldr d2, [x9] fadd d1, d1, d2 ldr d2, [x8] fadd d1, d1, d2 fcmp d0, d1 cset w8, eq and w0, w8, #0x1 ret .cfi_endproc ; -- End function .globl _test4 ; -- Begin function test4 .p2align 2 _test4: ; @test4 .cfi_startproc ; %bb.0: adrp x8, _dx@GOTPAGE ldr x8, [x8, _dx@GOTPAGEOFF] ldr d0, [x8] adrp x9, _dy@GOTPAGE ldr x9, [x9, _dy@GOTPAGEOFF] ldr d1, [x9] fmul d0, d0, d1 adrp x10, _dz@GOTPAGE ldr x10, [x10, _dz@GOTPAGEOFF] ldr d1, [x10] fmul d0, d0, d1 ldr d1, [x10] ldr d2, [x9] fmul d1, d1, d2 ldr d2, [x8] fmul d1, d1, d2 fcmp d0, d1 cset w8, eq and w0, w8, #0x1 ret .cfi_endproc ; -- End function .globl _test5 ; -- Begin function test5 .p2align 2 _test5: ; @test5 .cfi_startproc ; %bb.0: adrp x8, _dx@GOTPAGE ldr x8, [x8, _dx@GOTPAGEOFF] ldr d0, [x8] ldr d1, [x8] fdiv d0, d0, d1 adrp x8, _dy@GOTPAGE ldr x8, [x8, _dy@GOTPAGEOFF] ldr d1, [x8] ldr d2, [x8] fdiv d1, d1, d2 fcmp d0, d1 cset w8, eq and w0, w8, #0x1 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 w2, #0 stur wzr, [x29, #-4] mov w0, #2147483647 mov x1, x2 bl _fill_in bl _test1 subs w8, w0, #0 cset w9, ne ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB6_2 b LBB6_1 LBB6_1: adrp x0, l___func__.main@PAGE add x0, x0, l___func__.main@PAGEOFF adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF mov w2, #38 adrp x3, l_.str.1@PAGE add x3, x3, l_.str.1@PAGEOFF bl ___assert_rtn LBB6_2: b LBB6_3 LBB6_3: mov w0, #2147483647 mov w1, #1 mov w2, #0 bl _fill_in bl _test2 subs w8, w0, #0 cset w9, ne ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB6_5 b LBB6_4 LBB6_4: adrp x0, l___func__.main@PAGE add x0, x0, l___func__.main@PAGEOFF adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF mov w2, #41 adrp x3, l_.str.2@PAGE add x3, x3, l_.str.2@PAGEOFF bl ___assert_rtn LBB6_5: b LBB6_6 LBB6_6: mov w2, #0 mov x0, x2 mov w1, #1 bl _fill_in bl _test5 subs w8, w0, #0 cset w9, ne ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB6_8 b LBB6_7 LBB6_7: adrp x0, l___func__.main@PAGE add x0, x0, l___func__.main@PAGEOFF adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF mov w2, #46 adrp x3, l_.str.3@PAGE add x3, x3, l_.str.3@PAGEOFF bl ___assert_rtn LBB6_8: b LBB6_9 LBB6_9: mov w0, #0 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .comm _x,4,2 ; @x .comm _y,4,2 ; @y .comm _z,4,2 ; @z .comm _dx,8,3 ; @dx .comm _dy,8,3 ; @dy .comm _dz,8,3 ; @dz .section __TEXT,__cstring,cstring_literals l___func__.main: ; @__func__.main .asciz "main" l_.str: ; @.str .asciz "150627.c" l_.str.1: ; @.str.1 .asciz "!test1()" l_.str.2: ; @.str.2 .asciz "!test2()" l_.str.3: ; @.str.3 .asciz "!test5()" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _fill_in ## -- Begin function fill_in .p2align 4, 0x90 _fill_in: ## @fill_in .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 %edx, -12(%rbp) movl -4(%rbp), %ecx movq _x@GOTPCREL(%rip), %rax movl %ecx, (%rax) movl -8(%rbp), %ecx movq _y@GOTPCREL(%rip), %rax movl %ecx, (%rax) movl -12(%rbp), %ecx movq _z@GOTPCREL(%rip), %rax movl %ecx, (%rax) cvtsi2sdl -4(%rbp), %xmm0 movq _dx@GOTPCREL(%rip), %rax movsd %xmm0, (%rax) cvtsi2sdl -8(%rbp), %xmm0 movq _dy@GOTPCREL(%rip), %rax movsd %xmm0, (%rax) cvtsi2sdl -12(%rbp), %xmm0 movq _dz@GOTPCREL(%rip), %rax movsd %xmm0, (%rax) popq %rbp retq .cfi_endproc ## -- End function .globl _test1 ## -- Begin function test1 .p2align 4, 0x90 _test1: ## @test1 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq _x@GOTPCREL(%rip), %rax cvtsi2ssl (%rax), %xmm0 cvtss2sd %xmm0, %xmm0 movq _dx@GOTPCREL(%rip), %rax ucomisd (%rax), %xmm0 sete %al setnp %cl andb %cl, %al andb $1, %al movzbl %al, %eax popq %rbp retq .cfi_endproc ## -- End function .globl _test2 ## -- Begin function test2 .p2align 4, 0x90 _test2: ## @test2 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq _dx@GOTPCREL(%rip), %rax movsd (%rax), %xmm0 ## xmm0 = mem[0],zero movq _dy@GOTPCREL(%rip), %rax addsd (%rax), %xmm0 movq _x@GOTPCREL(%rip), %rax movl (%rax), %eax movq _y@GOTPCREL(%rip), %rcx addl (%rcx), %eax cvtsi2sd %eax, %xmm1 ucomisd %xmm1, %xmm0 sete %al setnp %cl andb %cl, %al andb $1, %al movzbl %al, %eax popq %rbp retq .cfi_endproc ## -- End function .globl _test3 ## -- Begin function test3 .p2align 4, 0x90 _test3: ## @test3 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq _dx@GOTPCREL(%rip), %rax movsd (%rax), %xmm0 ## xmm0 = mem[0],zero movq _dy@GOTPCREL(%rip), %rax addsd (%rax), %xmm0 movq _dz@GOTPCREL(%rip), %rax addsd (%rax), %xmm0 movq _dz@GOTPCREL(%rip), %rax movsd (%rax), %xmm1 ## xmm1 = mem[0],zero movq _dy@GOTPCREL(%rip), %rax addsd (%rax), %xmm1 movq _dx@GOTPCREL(%rip), %rax addsd (%rax), %xmm1 ucomisd %xmm1, %xmm0 sete %al setnp %cl andb %cl, %al andb $1, %al movzbl %al, %eax popq %rbp retq .cfi_endproc ## -- End function .globl _test4 ## -- Begin function test4 .p2align 4, 0x90 _test4: ## @test4 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq _dx@GOTPCREL(%rip), %rax movsd (%rax), %xmm0 ## xmm0 = mem[0],zero movq _dy@GOTPCREL(%rip), %rax mulsd (%rax), %xmm0 movq _dz@GOTPCREL(%rip), %rax mulsd (%rax), %xmm0 movq _dz@GOTPCREL(%rip), %rax movsd (%rax), %xmm1 ## xmm1 = mem[0],zero movq _dy@GOTPCREL(%rip), %rax mulsd (%rax), %xmm1 movq _dx@GOTPCREL(%rip), %rax mulsd (%rax), %xmm1 ucomisd %xmm1, %xmm0 sete %al setnp %cl andb %cl, %al andb $1, %al movzbl %al, %eax popq %rbp retq .cfi_endproc ## -- End function .globl _test5 ## -- Begin function test5 .p2align 4, 0x90 _test5: ## @test5 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq _dx@GOTPCREL(%rip), %rax movsd (%rax), %xmm0 ## xmm0 = mem[0],zero movq _dx@GOTPCREL(%rip), %rax divsd (%rax), %xmm0 movq _dy@GOTPCREL(%rip), %rax movsd (%rax), %xmm1 ## xmm1 = mem[0],zero movq _dy@GOTPCREL(%rip), %rax divsd (%rax), %xmm1 ucomisd %xmm1, %xmm0 sete %al setnp %cl andb %cl, %al andb $1, %al movzbl %al, %eax popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) movl $2147483647, %edi ## imm = 0x7FFFFFFF xorl %edx, %edx movl %edx, %esi callq _fill_in callq _test1 cmpl $0, %eax setne %al xorb $-1, %al xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB6_2 ## %bb.1: leaq L___func__.main(%rip), %rdi leaq L_.str(%rip), %rsi leaq L_.str.1(%rip), %rcx movl $38, %edx callq ___assert_rtn LBB6_2: jmp LBB6_3 LBB6_3: movl $2147483647, %edi ## imm = 0x7FFFFFFF movl $1, %esi xorl %edx, %edx callq _fill_in callq _test2 cmpl $0, %eax setne %al xorb $-1, %al xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB6_5 ## %bb.4: leaq L___func__.main(%rip), %rdi leaq L_.str(%rip), %rsi leaq L_.str.2(%rip), %rcx movl $41, %edx callq ___assert_rtn LBB6_5: jmp LBB6_6 LBB6_6: xorl %edx, %edx movl $1, %esi movl %edx, %edi callq _fill_in callq _test5 cmpl $0, %eax setne %al xorb $-1, %al xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB6_8 ## %bb.7: leaq L___func__.main(%rip), %rdi leaq L_.str(%rip), %rsi leaq L_.str.3(%rip), %rcx movl $46, %edx callq ___assert_rtn LBB6_8: jmp LBB6_9 LBB6_9: xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .comm _x,4,2 ## @x .comm _y,4,2 ## @y .comm _z,4,2 ## @z .comm _dx,8,3 ## @dx .comm _dy,8,3 ## @dy .comm _dz,8,3 ## @dz .section __TEXT,__cstring,cstring_literals L___func__.main: ## @__func__.main .asciz "main" L_.str: ## @.str .asciz "150627.c" L_.str.1: ## @.str.1 .asciz "!test1()" L_.str.2: ## @.str.2 .asciz "!test2()" L_.str.3: ## @.str.3 .asciz "!test5()" .subsections_via_symbols
the_stack_data/150627.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov x9, sp add x8, sp, #8 str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf stur wzr, [x29, #-8] b LBB0_1 LBB0_1: ; =>This Loop Header: Depth=1 ; Child Loop BB0_3 Depth 2 ; Child Loop BB0_7 Depth 2 ldur w8, [x29, #-8] ldr w9, [sp, #8] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_12 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 stur wzr, [x29, #-12] b LBB0_3 LBB0_3: ; Parent Loop BB0_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldur w8, [x29, #-12] ldr w9, [sp, #8] ldur w10, [x29, #-8] subs w9, w9, w10 subs w9, w9, #1 subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_6 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_3 Depth=2 adrp x0, l_.str.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, #-12] add w8, w8, #1 stur w8, [x29, #-12] b LBB0_3 LBB0_6: ; in Loop: Header=BB0_1 Depth=1 str wzr, [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, #-8] mov w9, #2 mul w9, w9, w10 add w9, w9, #1 subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_10 b LBB0_8 LBB0_8: ; in Loop: Header=BB0_7 Depth=2 adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@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 adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf b LBB0_11 LBB0_11: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-8] add w8, w8, #1 stur w8, [x29, #-8] b LBB0_1 LBB0_12: 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 "\nEnter the number of the rows: \n" l_.str.1: ; @.str.1 .asciz "%d" l_.str.2: ; @.str.2 .asciz "\t" l_.str.3: ; @.str.3 .asciz "\t*" l_.str.4: ; @.str.4 .asciz "\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl $0, -4(%rbp) leaq L_.str(%rip), %rdi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi leaq -24(%rbp), %rsi movb $0, %al callq _scanf movl $0, -8(%rbp) LBB0_1: ## =>This Loop Header: Depth=1 ## Child Loop BB0_3 Depth 2 ## Child Loop BB0_7 Depth 2 movl -8(%rbp), %eax cmpl -24(%rbp), %eax jge LBB0_12 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl $0, -12(%rbp) LBB0_3: ## Parent Loop BB0_1 Depth=1 ## => This Inner Loop Header: Depth=2 movl -12(%rbp), %eax movl -24(%rbp), %ecx subl -8(%rbp), %ecx subl $1, %ecx cmpl %ecx, %eax jge 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 -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB0_3 LBB0_6: ## in Loop: Header=BB0_1 Depth=1 movl $0, -16(%rbp) LBB0_7: ## Parent Loop BB0_1 Depth=1 ## => This Inner Loop Header: Depth=2 movl -16(%rbp), %eax movl -8(%rbp), %ecx shll $1, %ecx addl $1, %ecx cmpl %ecx, %eax jge LBB0_10 ## %bb.8: ## in Loop: Header=BB0_7 Depth=2 leaq L_.str.3(%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 leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf ## %bb.11: ## in Loop: Header=BB0_1 Depth=1 movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) jmp LBB0_1 LBB0_12: movl -4(%rbp), %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "\nEnter the number of the rows: \n" L_.str.1: ## @.str.1 .asciz "%d" L_.str.2: ## @.str.2 .asciz "\t" L_.str.3: ## @.str.3 .asciz "\t*" L_.str.4: ## @.str.4 .asciz "\n" .subsections_via_symbols
the_stack_data/86076148.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #0 str w8, [sp, #24] ; 4-byte Folded Spill stur wzr, [x29, #-4] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov x9, sp sub x8, x29, #8 str x8, [x9] sub x8, x29, #12 str x8, [x9, #8] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf mov x9, sp sub x8, x29, #16 str x8, [x9] sub x8, x29, #20 str x8, [x9, #8] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _scanf adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf ldur w8, [x29, #-8] ; implicit-def: $x10 mov x10, x8 ldur w9, [x29, #-12] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf ldur s0, [x29, #-16] fcvt d0, s0 mov x8, sp str d0, [x8] adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _printf ldur s0, [x29, #-20] fcvt d0, s0 mov x8, sp str d0, [x8] adrp x0, l_.str.7@PAGE add x0, x0, l_.str.7@PAGEOFF bl _printf ldr w0, [sp, #24] ; 4-byte Folded Reload ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Inserisci i 2 int: " l_.str.1: ; @.str.1 .asciz "%d %d" l_.str.2: ; @.str.2 .asciz "Inserisci i 2 float: " l_.str.3: ; @.str.3 .asciz "%f %f" l_.str.4: ; @.str.4 .asciz "Variabile\tValue\n" l_.str.5: ; @.str.5 .asciz "int_1 int_2\t%5d %5d\n" l_.str.6: ; @.str.6 .asciz "float_1 \t%f\n" l_.str.7: ; @.str.7 .asciz "float_2 \t%f\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl $0, -4(%rbp) leaq L_.str(%rip), %rdi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi leaq -8(%rbp), %rsi leaq -12(%rbp), %rdx movb $0, %al callq _scanf leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf leaq L_.str.3(%rip), %rdi leaq -16(%rbp), %rsi leaq -20(%rbp), %rdx movb $0, %al callq _scanf leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf movl -8(%rbp), %esi movl -12(%rbp), %edx leaq L_.str.5(%rip), %rdi movb $0, %al callq _printf movss -16(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 leaq L_.str.6(%rip), %rdi movb $1, %al callq _printf movss -20(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 leaq L_.str.7(%rip), %rdi movb $1, %al callq _printf xorl %eax, %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Inserisci i 2 int: " L_.str.1: ## @.str.1 .asciz "%d %d" L_.str.2: ## @.str.2 .asciz "Inserisci i 2 float: " L_.str.3: ## @.str.3 .asciz "%f %f" L_.str.4: ## @.str.4 .asciz "Variabile\tValue\n" L_.str.5: ## @.str.5 .asciz "int_1 int_2\t%5d %5d\n" L_.str.6: ## @.str.6 .asciz "float_1 \t%f\n" L_.str.7: ## @.str.7 .asciz "float_2 \t%f\n" .subsections_via_symbols
the_stack_data/154827985.c