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 _linha ; -- Begin function linha .p2align 2 _linha: ; @linha .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, #45 sturb w8, [x29, #-1] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf str wzr, [sp, #8] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #8] subs w8, w8, #30 cset w8, ge tbnz w8, #0, LBB0_4 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldursb w10, [x29, #-1] mov x9, sp ; implicit-def: $x8 mov x8, x10 str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #8] add w8, w8, #1 str w8, [sp, #8] b LBB0_1 LBB0_4: adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf mov w0, #0 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill .cfi_def_cfa_offset 16 mov x29, sp .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 sub sp, sp, #112 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] stur wzr, [x29, #-12] sub x8, x29, #16 stur x8, [x29, #-96] ; 8-byte Folded Spill stur wzr, [x29, #-16] bl _linha adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf bl _linha adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf ldur x8, [x29, #-96] ; 8-byte Folded Reload sub sp, sp, #16 mov x9, sp str x8, [x9] adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _scanf add sp, sp, #16 ldur w8, [x29, #-16] ; kill: def $x8 killed $w8 mov x9, sp stur x9, [x29, #-24] lsl x9, x8, #2 add x9, x9, #15 and x9, x9, #0xfffffffffffffff0 stur x9, [x29, #-88] ; 8-byte Folded Spill adrp x16, ___chkstk_darwin@GOTPAGE ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF] blr x16 ldur x10, [x29, #-88] ; 8-byte Folded Reload mov x9, sp subs x9, x9, x10 mov sp, x9 stur x9, [x29, #-80] ; 8-byte Folded Spill stur x8, [x29, #-32] ldur w8, [x29, #-16] ; kill: def $x8 killed $w8 lsl x9, x8, #2 add x9, x9, #15 and x9, x9, #0xfffffffffffffff0 stur x9, [x29, #-72] ; 8-byte Folded Spill adrp x16, ___chkstk_darwin@GOTPAGE ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF] blr x16 ldur x10, [x29, #-72] ; 8-byte Folded Reload mov x9, sp subs x9, x9, x10 mov sp, x9 stur x9, [x29, #-64] ; 8-byte Folded Spill stur x8, [x29, #-40] bl _linha adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _printf stur wzr, [x29, #-44] b LBB1_1 LBB1_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-44] ldur w9, [x29, #-16] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_4 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 ldur w8, [x29, #-16] ; implicit-def: $x10 mov x10, x8 ldur w8, [x29, #-44] add w11, w8, #1 ldur w9, [x29, #-16] ; implicit-def: $x8 mov x8, x9 sub sp, sp, #32 mov x9, sp str x10, [x9] ; implicit-def: $x10 mov x10, x11 str x10, [x9, #8] str x8, [x9, #16] adrp x0, l_.str.7@PAGE add x0, x0, l_.str.7@PAGEOFF bl _printf ldur x8, [x29, #-80] ; 8-byte Folded Reload add sp, sp, #32 ldursw x9, [x29, #-44] add x8, x8, x9, lsl #2 sub sp, sp, #16 mov x9, sp str x8, [x9] adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _scanf add sp, sp, #16 b LBB1_3 LBB1_3: ; in Loop: Header=BB1_1 Depth=1 ldur w8, [x29, #-44] add w8, w8, #1 stur w8, [x29, #-44] b LBB1_1 LBB1_4: bl _linha adrp x0, l_.str.8@PAGE add x0, x0, l_.str.8@PAGEOFF bl _printf stur wzr, [x29, #-48] b LBB1_5 LBB1_5: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-48] ldur w9, [x29, #-16] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_8 b LBB1_6 LBB1_6: ; in Loop: Header=BB1_5 Depth=1 ldur w8, [x29, #-16] ; implicit-def: $x10 mov x10, x8 ldur w8, [x29, #-48] add w11, w8, #1 ldur w9, [x29, #-16] ; implicit-def: $x8 mov x8, x9 sub sp, sp, #32 mov x9, sp str x10, [x9] ; implicit-def: $x10 mov x10, x11 str x10, [x9, #8] str x8, [x9, #16] adrp x0, l_.str.7@PAGE add x0, x0, l_.str.7@PAGEOFF bl _printf ldur x8, [x29, #-64] ; 8-byte Folded Reload add sp, sp, #32 ldursw x9, [x29, #-48] add x8, x8, x9, lsl #2 sub sp, sp, #16 mov x9, sp str x8, [x9] adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _scanf add sp, sp, #16 b LBB1_7 LBB1_7: ; in Loop: Header=BB1_5 Depth=1 ldur w8, [x29, #-48] add w8, w8, #1 stur w8, [x29, #-48] b LBB1_5 LBB1_8: bl _linha stur wzr, [x29, #-52] stur wzr, [x29, #-56] b LBB1_9 LBB1_9: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-56] ldur w9, [x29, #-16] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_12 b LBB1_10 LBB1_10: ; in Loop: Header=BB1_9 Depth=1 ldur x9, [x29, #-64] ; 8-byte Folded Reload ldur x8, [x29, #-80] ; 8-byte Folded Reload ldursw x10, [x29, #-56] ldr w8, [x8, x10, lsl #2] ldursw x10, [x29, #-56] ldr w9, [x9, x10, lsl #2] mul w9, w8, w9 ldur w8, [x29, #-52] add w8, w8, w9 stur w8, [x29, #-52] b LBB1_11 LBB1_11: ; in Loop: Header=BB1_9 Depth=1 ldur w8, [x29, #-56] add w8, w8, #1 stur w8, [x29, #-56] b LBB1_9 LBB1_12: ldur w9, [x29, #-52] ; implicit-def: $x8 mov x8, x9 sub sp, sp, #16 mov x9, sp str x8, [x9] adrp x0, l_.str.9@PAGE add x0, x0, l_.str.9@PAGEOFF bl _printf add sp, sp, #16 bl _linha stur wzr, [x29, #-12] ldur x8, [x29, #-24] mov sp, x8 ldur w8, [x29, #-12] stur w8, [x29, #-100] ; 4-byte Folded Spill ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB1_14 b LBB1_13 LBB1_13: bl ___stack_chk_fail LBB1_14: ldur w0, [x29, #-100] ; 4-byte Folded Reload mov sp, x29 ldp x29, x30, [sp], #16 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "\n\033[33m" l_.str.1: ; @.str.1 .asciz "%c" l_.str.2: ; @.str.2 .asciz "\033[m\n\n" l_.str.3: ; @.str.3 .asciz "\033[32m## PRODUTO ESCALAR.\033[m\n" l_.str.4: ; @.str.4 .asciz "Quantidade de n\303\272meros a serem digitados nos vetores: " l_.str.5: ; @.str.5 .asciz "%i" l_.str.6: ; @.str.6 .asciz " \033[31mVetor N\033[m\n" l_.str.7: ; @.str.7 .asciz "Digite %i n\303\272meros [%i/%i]: " l_.str.8: ; @.str.8 .asciz " \033[31mVetor M\033[m\n" l_.str.9: ; @.str.9 .asciz "Produto Escalar de N por M: %i\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _linha ## -- Begin function linha .p2align 4, 0x90 _linha: ## @linha .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movb $45, -1(%rbp) leaq L_.str(%rip), %rdi movb $0, %al callq _printf movl $0, -8(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 cmpl $30, -8(%rbp) jge LBB0_4 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movsbl -1(%rbp), %esi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) jmp LBB0_1 LBB0_4: leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf xorl %eax, %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 $96, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -12(%rbp) movl $0, -16(%rbp) callq _linha leaq L_.str.3(%rip), %rdi xorl %eax, %eax ## kill: def $al killed $al killed $eax movb %al, -89(%rbp) ## 1-byte Spill callq _printf callq _linha ## kill: def $ecx killed $eax movb -89(%rbp), %al ## 1-byte Reload leaq L_.str.4(%rip), %rdi callq _printf ## kill: def $ecx killed $eax movb -89(%rbp), %al ## 1-byte Reload leaq L_.str.5(%rip), %rdi leaq -16(%rbp), %rsi callq _scanf movl -16(%rbp), %eax ## kill: def $rax killed $eax movq %rax, -88(%rbp) ## 8-byte Spill movq %rsp, %rcx movq %rcx, -24(%rbp) shlq $2, %rax callq ____chkstk_darwin addq $15, %rax andq $-16, %rax subq %rax, %rsp movq -88(%rbp), %rax ## 8-byte Reload movq %rsp, %rcx movq %rcx, -80(%rbp) ## 8-byte Spill movq %rax, -32(%rbp) movl -16(%rbp), %eax ## kill: def $rax killed $eax movq %rax, -72(%rbp) ## 8-byte Spill shlq $2, %rax callq ____chkstk_darwin addq $15, %rax andq $-16, %rax subq %rax, %rsp movq -72(%rbp), %rax ## 8-byte Reload movq %rsp, %rcx movq %rcx, -64(%rbp) ## 8-byte Spill movq %rax, -40(%rbp) callq _linha leaq L_.str.6(%rip), %rdi movb $0, %al callq _printf movl $0, -44(%rbp) LBB1_1: ## =>This Inner Loop Header: Depth=1 movl -44(%rbp), %eax cmpl -16(%rbp), %eax jge LBB1_4 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 movl -16(%rbp), %esi movl -44(%rbp), %edx addl $1, %edx movl -16(%rbp), %ecx leaq L_.str.7(%rip), %rdi movb $0, %al callq _printf movq -80(%rbp), %rsi ## 8-byte Reload movslq -44(%rbp), %rax shlq $2, %rax addq %rax, %rsi leaq L_.str.5(%rip), %rdi movb $0, %al callq _scanf ## %bb.3: ## in Loop: Header=BB1_1 Depth=1 movl -44(%rbp), %eax addl $1, %eax movl %eax, -44(%rbp) jmp LBB1_1 LBB1_4: callq _linha leaq L_.str.8(%rip), %rdi movb $0, %al callq _printf movl $0, -48(%rbp) LBB1_5: ## =>This Inner Loop Header: Depth=1 movl -48(%rbp), %eax cmpl -16(%rbp), %eax jge LBB1_8 ## %bb.6: ## in Loop: Header=BB1_5 Depth=1 movl -16(%rbp), %esi movl -48(%rbp), %edx addl $1, %edx movl -16(%rbp), %ecx leaq L_.str.7(%rip), %rdi movb $0, %al callq _printf movq -64(%rbp), %rsi ## 8-byte Reload movslq -48(%rbp), %rax shlq $2, %rax addq %rax, %rsi leaq L_.str.5(%rip), %rdi movb $0, %al callq _scanf ## %bb.7: ## in Loop: Header=BB1_5 Depth=1 movl -48(%rbp), %eax addl $1, %eax movl %eax, -48(%rbp) jmp LBB1_5 LBB1_8: callq _linha movl $0, -52(%rbp) movl $0, -56(%rbp) LBB1_9: ## =>This Inner Loop Header: Depth=1 movl -56(%rbp), %eax cmpl -16(%rbp), %eax jge LBB1_12 ## %bb.10: ## in Loop: Header=BB1_9 Depth=1 movq -64(%rbp), %rcx ## 8-byte Reload movq -80(%rbp), %rax ## 8-byte Reload movslq -56(%rbp), %rdx movl (%rax,%rdx,4), %eax movslq -56(%rbp), %rdx imull (%rcx,%rdx,4), %eax addl -52(%rbp), %eax movl %eax, -52(%rbp) ## %bb.11: ## in Loop: Header=BB1_9 Depth=1 movl -56(%rbp), %eax addl $1, %eax movl %eax, -56(%rbp) jmp LBB1_9 LBB1_12: movl -52(%rbp), %esi leaq L_.str.9(%rip), %rdi movb $0, %al callq _printf callq _linha movl $0, -12(%rbp) movq -24(%rbp), %rax movq %rax, %rsp movl -12(%rbp), %eax movl %eax, -96(%rbp) ## 4-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB1_14 ## %bb.13: movl -96(%rbp), %eax ## 4-byte Reload movq %rbp, %rsp popq %rbp retq LBB1_14: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "\n\033[33m" L_.str.1: ## @.str.1 .asciz "%c" L_.str.2: ## @.str.2 .asciz "\033[m\n\n" L_.str.3: ## @.str.3 .asciz "\033[32m## PRODUTO ESCALAR.\033[m\n" L_.str.4: ## @.str.4 .asciz "Quantidade de n\303\272meros a serem digitados nos vetores: " L_.str.5: ## @.str.5 .asciz "%i" L_.str.6: ## @.str.6 .asciz " \033[31mVetor N\033[m\n" L_.str.7: ## @.str.7 .asciz "Digite %i n\303\272meros [%i/%i]: " L_.str.8: ## @.str.8 .asciz " \033[31mVetor M\033[m\n" L_.str.9: ## @.str.9 .asciz "Produto Escalar de N por M: %i\n" .subsections_via_symbols
the_stack_data/220454688.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _dec_to_bin ; -- Begin function dec_to_bin .p2align 2 _dec_to_bin: ; @dec_to_bin .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur w0, [x29, #-4] mov w8, #-1 stur w8, [x29, #-8] stur wzr, [x29, #-12] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-12] ldur w9, [x29, #-4] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-8] add w8, w8, #1 stur w8, [x29, #-8] ldur s1, [x29, #-8] ; implicit-def: $d0 fmov s0, s1 sshll.2d v0, v0, #0 ; kill: def $d0 killed $d0 killed $q0 scvtf d1, d0 fmov d0, #2.00000000 bl _pow fcvtzs w8, d0 stur w8, [x29, #-12] b LBB0_1 LBB0_3: str wzr, [sp, #16] ldur w8, [x29, #-8] subs w8, w8, #1 str w8, [sp, #12] b LBB0_4 LBB0_4: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #12] subs w8, w8, #0 cset w8, lt tbnz w8, #0, LBB0_10 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_4 Depth=1 ldr s1, [sp, #12] ; implicit-def: $d0 fmov s0, s1 sshll.2d v0, v0, #0 ; kill: def $d0 killed $d0 killed $q0 scvtf d1, d0 fmov d0, #2.00000000 bl _pow fcvtzs w8, d0 stur w8, [x29, #-12] ldur w8, [x29, #-12] ldur w9, [x29, #-4] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_7 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_4 Depth=1 ldur w9, [x29, #-12] ldur w8, [x29, #-4] subs w8, w8, w9 stur w8, [x29, #-4] ldr w8, [sp, #16] add w8, w8, #1 str w8, [sp, #16] b LBB0_8 LBB0_7: ; in Loop: Header=BB0_4 Depth=1 b LBB0_8 LBB0_8: ; in Loop: Header=BB0_4 Depth=1 b LBB0_9 LBB0_9: ; in Loop: Header=BB0_4 Depth=1 ldr w8, [sp, #12] subs w8, w8, #1 str w8, [sp, #12] b LBB0_4 LBB0_10: ldr w0, [sp, #16] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _hex_to_dec ; -- Begin function hex_to_dec .p2align 2 _hex_to_dec: ; @hex_to_dec .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] ldur x0, [x29, #-8] bl _strlen mov x8, x0 str w8, [sp, #16] ldr w8, [sp, #16] subs w8, w8, #1 str w8, [sp, #8] stur wzr, [x29, #-12] str wzr, [sp, #4] b LBB1_1 LBB1_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #4] ldr w9, [sp, #16] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_8 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 ldur x8, [x29, #-8] ldrsw x9, [sp, #4] ldrsb w8, [x8, x9] subs w8, w8, #65 cset w8, lt tbnz w8, #0, LBB1_5 b LBB1_3 LBB1_3: ; in Loop: Header=BB1_1 Depth=1 ldur x8, [x29, #-8] ldrsw x9, [sp, #4] ldrsb w8, [x8, x9] subs w8, w8, #70 cset w8, gt tbnz w8, #0, LBB1_5 b LBB1_4 LBB1_4: ; in Loop: Header=BB1_1 Depth=1 ldur x8, [x29, #-8] ldrsw x9, [sp, #4] ldrsb w8, [x8, x9] subs w8, w8, #65 add w8, w8, #10 str w8, [sp, #12] b LBB1_6 LBB1_5: ; in Loop: Header=BB1_1 Depth=1 ldur x8, [x29, #-8] ldrsw x9, [sp, #4] ldrsb w8, [x8, x9] subs w8, w8, #48 str w8, [sp, #12] b LBB1_6 LBB1_6: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #12] str w8, [sp] ; 4-byte Folded Spill ldr s1, [sp, #8] ; implicit-def: $d0 fmov s0, s1 sshll.2d v0, v0, #0 ; kill: def $d0 killed $d0 killed $q0 scvtf d1, d0 fmov d0, #16.00000000 bl _pow ldr w8, [sp] ; 4-byte Folded Reload fcvtzs w9, d0 mul w9, w8, w9 ldur w8, [x29, #-12] add w8, w8, w9 stur w8, [x29, #-12] ldr w8, [sp, #8] subs w8, w8, #1 str w8, [sp, #8] b LBB1_7 LBB1_7: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #4] add w8, w8, #1 str w8, [sp, #4] b LBB1_1 LBB1_8: ldur w0, [x29, #-12] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #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 bl _scanf bl _getchar b LBB2_1 LBB2_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-8] subs w9, w8, #1 stur w9, [x29, #-8] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB2_3 b LBB2_2 LBB2_2: ; in Loop: Header=BB2_1 Depth=1 add x0, sp, #28 str x0, [sp, #16] ; 8-byte Folded Spill str wzr, [sp, #28] strb wzr, [sp, #32] adrp x8, ___stdinp@GOTPAGE ldr x8, [x8, ___stdinp@GOTPAGEOFF] ldr x2, [x8] mov w1, #5 bl _fgets ldr x0, [sp, #16] ; 8-byte Folded Reload adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF bl _strcspn mov x9, x0 ldr x0, [sp, #16] ; 8-byte Folded Reload mov x8, x0 add x8, x8, x9 strb wzr, [x8] bl _atoi stur w0, [x29, #-16] ldur w0, [x29, #-16] bl _dec_to_bin stur w0, [x29, #-28] ldur w9, [x29, #-28] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf ldr x0, [sp, #16] ; 8-byte Folded Reload bl _hex_to_dec stur w0, [x29, #-16] ldur w0, [x29, #-16] bl _dec_to_bin stur w0, [x29, #-28] ldur w9, [x29, #-28] ; 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 bl _getchar b LBB2_1 LBB2_3: 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 "\n" l_.str.2: ; @.str.2 .asciz "%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 .section __TEXT,__literal8,8byte_literals .p2align 3 ## -- Begin function dec_to_bin LCPI0_0: .quad 0x4000000000000000 ## double 2 .section __TEXT,__text,regular,pure_instructions .globl _dec_to_bin .p2align 4, 0x90 _dec_to_bin: ## @dec_to_bin .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl %edi, -4(%rbp) movl $-1, -8(%rbp) movl $0, -12(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movl -12(%rbp), %eax cmpl -4(%rbp), %eax jge LBB0_3 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) cvtsi2sdl -8(%rbp), %xmm1 movsd LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero callq _pow cvttsd2si %xmm0, %eax movl %eax, -12(%rbp) jmp LBB0_1 LBB0_3: movl $0, -16(%rbp) movl -8(%rbp), %eax subl $1, %eax movl %eax, -20(%rbp) LBB0_4: ## =>This Inner Loop Header: Depth=1 cmpl $0, -20(%rbp) jl LBB0_10 ## %bb.5: ## in Loop: Header=BB0_4 Depth=1 cvtsi2sdl -20(%rbp), %xmm1 movsd LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero callq _pow cvttsd2si %xmm0, %eax movl %eax, -12(%rbp) movl -12(%rbp), %eax cmpl -4(%rbp), %eax jg LBB0_7 ## %bb.6: ## in Loop: Header=BB0_4 Depth=1 movl -12(%rbp), %ecx movl -4(%rbp), %eax subl %ecx, %eax movl %eax, -4(%rbp) movl -16(%rbp), %eax addl $1, %eax movl %eax, -16(%rbp) jmp LBB0_8 LBB0_7: ## in Loop: Header=BB0_4 Depth=1 jmp LBB0_8 LBB0_8: ## in Loop: Header=BB0_4 Depth=1 jmp LBB0_9 LBB0_9: ## in Loop: Header=BB0_4 Depth=1 movl -20(%rbp), %eax addl $-1, %eax movl %eax, -20(%rbp) jmp LBB0_4 LBB0_10: movl -16(%rbp), %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ## -- Begin function hex_to_dec LCPI1_0: .quad 0x4030000000000000 ## double 16 .section __TEXT,__text,regular,pure_instructions .globl _hex_to_dec .p2align 4, 0x90 _hex_to_dec: ## @hex_to_dec .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movq -8(%rbp), %rdi callq _strlen ## kill: def $eax killed $eax killed $rax movl %eax, -16(%rbp) movl -16(%rbp), %eax subl $1, %eax movl %eax, -24(%rbp) movl $0, -12(%rbp) movl $0, -28(%rbp) LBB1_1: ## =>This Inner Loop Header: Depth=1 movl -28(%rbp), %eax cmpl -16(%rbp), %eax jge LBB1_8 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 movq -8(%rbp), %rax movslq -28(%rbp), %rcx movsbl (%rax,%rcx), %eax cmpl $65, %eax jl LBB1_5 ## %bb.3: ## in Loop: Header=BB1_1 Depth=1 movq -8(%rbp), %rax movslq -28(%rbp), %rcx movsbl (%rax,%rcx), %eax cmpl $70, %eax jg LBB1_5 ## %bb.4: ## in Loop: Header=BB1_1 Depth=1 movq -8(%rbp), %rax movslq -28(%rbp), %rcx movsbl (%rax,%rcx), %eax subl $65, %eax addl $10, %eax movl %eax, -20(%rbp) jmp LBB1_6 LBB1_5: ## in Loop: Header=BB1_1 Depth=1 movq -8(%rbp), %rax movslq -28(%rbp), %rcx movsbl (%rax,%rcx), %eax subl $48, %eax movl %eax, -20(%rbp) LBB1_6: ## in Loop: Header=BB1_1 Depth=1 movl -20(%rbp), %eax movl %eax, -32(%rbp) ## 4-byte Spill cvtsi2sdl -24(%rbp), %xmm1 movsd LCPI1_0(%rip), %xmm0 ## xmm0 = mem[0],zero callq _pow movl -32(%rbp), %eax ## 4-byte Reload cvttsd2si %xmm0, %ecx imull %ecx, %eax addl -12(%rbp), %eax movl %eax, -12(%rbp) movl -24(%rbp), %eax addl $-1, %eax movl %eax, -24(%rbp) ## %bb.7: ## in Loop: Header=BB1_1 Depth=1 movl -28(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) jmp LBB1_1 LBB1_8: movl -12(%rbp), %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movl $0, -4(%rbp) leaq L_.str(%rip), %rdi leaq -8(%rbp), %rsi movb $0, %al callq _scanf callq _getchar LBB2_1: ## =>This Inner Loop Header: Depth=1 movl -8(%rbp), %eax movl %eax, %ecx addl $-1, %ecx movl %ecx, -8(%rbp) cmpl $0, %eax je LBB2_3 ## %bb.2: ## in Loop: Header=BB2_1 Depth=1 leaq -33(%rbp), %rdi xorl %esi, %esi movl $5, %edx callq _memset leaq -33(%rbp), %rdi movq ___stdinp@GOTPCREL(%rip), %rax movq (%rax), %rdx movl $5, %esi callq _fgets leaq -33(%rbp), %rdi leaq L_.str.1(%rip), %rsi callq _strcspn movb $0, -33(%rbp,%rax) leaq -33(%rbp), %rdi callq _atoi movl %eax, -16(%rbp) movl -16(%rbp), %edi callq _dec_to_bin movl %eax, -28(%rbp) movl -28(%rbp), %esi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf leaq -33(%rbp), %rdi callq _hex_to_dec movl %eax, -16(%rbp) movl -16(%rbp), %edi callq _dec_to_bin movl %eax, -28(%rbp) movl -28(%rbp), %esi leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf callq _getchar jmp LBB2_1 LBB2_3: movl -4(%rbp), %eax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d" L_.str.1: ## @.str.1 .asciz "\n" L_.str.2: ## @.str.2 .asciz "%d " L_.str.3: ## @.str.3 .asciz "%d\n" .subsections_via_symbols
the_stack_data/85193.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _reverse ; -- Begin function reverse .p2align 2 _reverse: ; @reverse .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #8] ldr x8, [sp, #8] str x8, [sp] ; 8-byte Folded Spill ldr x0, [sp, #8] bl _strlen mov x8, x0 ldr x0, [sp] ; 8-byte Folded Reload subs x8, x8, #1 mov x2, x8 mov w1, #0 bl __reverse_recur_ ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function _reverse_recur_ __reverse_recur_: ; @_reverse_recur_ .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #8] str w1, [sp, #4] str w2, [sp] ldr w8, [sp, #4] ldr w9, [sp] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: ldr x0, [sp, #8] ldr w1, [sp, #4] ldr w2, [sp] bl _swap ldr x0, [sp, #8] ldr w8, [sp, #4] add w1, w8, #1 str w1, [sp, #4] ldr w8, [sp] subs w2, w8, #1 str w2, [sp] bl __reverse_recur_ b LBB1_2 LBB1_2: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] str wzr, [sp, #20] adrp x8, l___const.main.s@PAGE add x8, x8, l___const.main.s@PAGEOFF ldr x9, [x8] add x0, sp, #24 str x0, [sp, #8] ; 8-byte Folded Spill str x9, [sp, #24] ldr w8, [x8, #8] str w8, [sp, #32] bl _reverse ldr x8, [sp, #8] ; 8-byte Folded Reload mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB2_2 b LBB2_1 LBB2_1: bl ___stack_chk_fail LBB2_2: mov w0, #0 ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function swap _swap: ; @swap .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, #24] str w1, [sp, #20] str w2, [sp, #16] ldr x8, [sp, #24] ldrsw x9, [sp, #20] add x8, x8, x9 ldrb w8, [x8] strb w8, [sp, #15] ldr x8, [sp, #24] ldrsw x9, [sp, #16] add x8, x8, x9 ldrb w8, [x8] ldr x9, [sp, #24] ldrsw x10, [sp, #20] add x9, x9, x10 strb w8, [x9] ldrb w8, [sp, #15] ldr x9, [sp, #24] ldrsw x10, [sp, #16] add x9, x9, x10 strb w8, [x9] add sp, sp, #32 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l___const.main.s: ; @__const.main.s .asciz "hello world" l_.str: ; @.str .asciz "%s\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _reverse ## -- Begin function reverse .p2align 4, 0x90 _reverse: ## @reverse .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) movq -8(%rbp), %rax movq %rax, -16(%rbp) ## 8-byte Spill movq -8(%rbp), %rdi callq _strlen movq -16(%rbp), %rdi ## 8-byte Reload subq $1, %rax movl %eax, %edx xorl %esi, %esi callq __reverse_recur_ addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function _reverse_recur_ __reverse_recur_: ## @_reverse_recur_ .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) movl %edx, -16(%rbp) movl -12(%rbp), %eax cmpl -16(%rbp), %eax jge LBB1_2 ## %bb.1: movq -8(%rbp), %rdi movl -12(%rbp), %esi movl -16(%rbp), %edx callq _swap movq -8(%rbp), %rdi movl -12(%rbp), %esi addl $1, %esi movl %esi, -12(%rbp) movl -16(%rbp), %edx addl $-1, %edx movl %edx, -16(%rbp) callq __reverse_recur_ LBB1_2: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -24(%rbp) movq L___const.main.s(%rip), %rax movq %rax, -20(%rbp) movl L___const.main.s+8(%rip), %eax movl %eax, -12(%rbp) leaq -20(%rbp), %rdi callq _reverse leaq -20(%rbp), %rsi leaq L_.str(%rip), %rdi movb $0, %al callq _printf movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB2_2 ## %bb.1: xorl %eax, %eax addq $32, %rsp popq %rbp retq LBB2_2: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function swap _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) movl %esi, -12(%rbp) movl %edx, -16(%rbp) movq -8(%rbp), %rax movslq -12(%rbp), %rcx movb (%rax,%rcx), %al movb %al, -17(%rbp) movq -8(%rbp), %rax movslq -16(%rbp), %rcx movb (%rax,%rcx), %dl movq -8(%rbp), %rax movslq -12(%rbp), %rcx movb %dl, (%rax,%rcx) movb -17(%rbp), %dl movq -8(%rbp), %rax movslq -16(%rbp), %rcx movb %dl, (%rax,%rcx) popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L___const.main.s: ## @__const.main.s .asciz "hello world" L_.str: ## @.str .asciz "%s\n" .subsections_via_symbols
the_stack_data/43889047.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #112 .cfi_def_cfa_offset 112 stp x29, x30, [sp, #96] ; 16-byte Folded Spill add x29, sp, #96 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] str wzr, [sp, #20] str w0, [sp, #16] str x1, [sp, #8] adrp x8, l_.str@PAGE add x8, x8, l_.str@PAGEOFF str x8, [sp, #40] adrp x8, l_.str.1@PAGE add x8, x8, l_.str.1@PAGEOFF str x8, [sp, #48] adrp x8, l_.str.2@PAGE add x8, x8, l_.str.2@PAGEOFF str x8, [sp, #56] ; kill: def $x8 killed $xzr str xzr, [sp, #64] adrp x8, l_.str.3@PAGE add x8, x8, l_.str.3@PAGEOFF str x8, [sp, #24] str xzr, [sp, #32] sub x0, x29, #24 bl _pipe subs w8, w0, #0 cset w8, ge tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _perror bl ___error ldr w0, [x0] bl _exit LBB0_2: bl _fork stur w0, [x29, #-16] subs w8, w0, #0 cset w8, ge tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _perror bl ___error ldr w0, [x0] bl _exit LBB0_4: ldur w8, [x29, #-16] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: ldur w0, [x29, #-24] bl _close ldur w0, [x29, #-20] mov w1, #1 bl _dup2 ldur w0, [x29, #-20] bl _close add x1, sp, #40 ldr x0, [sp, #40] bl _execvp b LBB0_6 LBB0_6: ldur w8, [x29, #-16] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_12 b LBB0_7 LBB0_7: bl _fork stur w0, [x29, #-12] subs w8, w0, #0 cset w8, ge tbnz w8, #0, LBB0_9 b LBB0_8 LBB0_8: adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _perror bl ___error ldr w0, [x0] bl _exit LBB0_9: ldur w8, [x29, #-12] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_11 b LBB0_10 LBB0_10: ldur w0, [x29, #-20] bl _close ldur w0, [x29, #-24] mov w1, #0 bl _dup2 ldur w0, [x29, #-24] bl _close add x1, sp, #24 ldr x0, [sp, #24] bl _execvp b LBB0_11 LBB0_11: ldur w0, [x29, #-24] bl _close ldur w0, [x29, #-20] bl _close ldur w0, [x29, #-12] add x1, sp, #4 mov w2, #0 bl _waitpid adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _printf b LBB0_12 LBB0_12: 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_14 b LBB0_13 LBB0_13: bl ___stack_chk_fail LBB0_14: ldr w0, [sp] ; 4-byte Folded Reload ldp x29, x30, [sp, #96] ; 16-byte Folded Reload add sp, sp, #112 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "/bin/ls" l_.str.1: ; @.str.1 .asciz "-l" l_.str.2: ; @.str.2 .asciz "/home/spy/Desktop" l_.str.3: ; @.str.3 .asciz "/bin/more" l_.str.4: ; @.str.4 .asciz "pipe failed" l_.str.5: ; @.str.5 .asciz "Fork failed" l_.str.6: ; @.str.6 .asciz "Done waiting for more.\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, -84(%rbp) movl %edi, -88(%rbp) movq %rsi, -96(%rbp) leaq L_.str(%rip), %rax movq %rax, -64(%rbp) leaq L_.str.1(%rip), %rax movq %rax, -56(%rbp) leaq L_.str.2(%rip), %rax movq %rax, -48(%rbp) movq $0, -40(%rbp) leaq L_.str.3(%rip), %rax movq %rax, -80(%rbp) movq $0, -72(%rbp) leaq -24(%rbp), %rdi callq _pipe cmpl $0, %eax jge LBB0_2 ## %bb.1: leaq L_.str.4(%rip), %rdi callq _perror callq ___error movl (%rax), %edi callq _exit LBB0_2: callq _fork movl %eax, -16(%rbp) cmpl $0, %eax jge LBB0_4 ## %bb.3: leaq L_.str.5(%rip), %rdi callq _perror callq ___error movl (%rax), %edi callq _exit LBB0_4: cmpl $0, -16(%rbp) jne LBB0_6 ## %bb.5: movl -24(%rbp), %edi callq _close movl -20(%rbp), %edi movl $1, %esi callq _dup2 movl -20(%rbp), %edi callq _close movq -64(%rbp), %rdi leaq -64(%rbp), %rsi callq _execvp LBB0_6: cmpl $0, -16(%rbp) je LBB0_12 ## %bb.7: callq _fork movl %eax, -12(%rbp) cmpl $0, %eax jge LBB0_9 ## %bb.8: leaq L_.str.5(%rip), %rdi callq _perror callq ___error movl (%rax), %edi callq _exit LBB0_9: cmpl $0, -12(%rbp) jne LBB0_11 ## %bb.10: movl -20(%rbp), %edi callq _close movl -24(%rbp), %edi xorl %esi, %esi callq _dup2 movl -24(%rbp), %edi callq _close movq -80(%rbp), %rdi leaq -80(%rbp), %rsi callq _execvp LBB0_11: movl -24(%rbp), %edi callq _close movl -20(%rbp), %edi callq _close movl -12(%rbp), %edi leaq -100(%rbp), %rsi xorl %edx, %edx callq _waitpid leaq L_.str.6(%rip), %rdi movb $0, %al callq _printf LBB0_12: movl -84(%rbp), %eax movl %eax, -104(%rbp) ## 4-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_14 ## %bb.13: movl -104(%rbp), %eax ## 4-byte Reload addq $112, %rsp popq %rbp retq LBB0_14: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "/bin/ls" L_.str.1: ## @.str.1 .asciz "-l" L_.str.2: ## @.str.2 .asciz "/home/spy/Desktop" L_.str.3: ## @.str.3 .asciz "/bin/more" L_.str.4: ## @.str.4 .asciz "pipe failed" L_.str.5: ## @.str.5 .asciz "Fork failed" L_.str.6: ## @.str.6 .asciz "Done waiting for more.\n" .subsections_via_symbols
the_stack_data/27999.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _focus_changed_cb ; -- Begin function focus_changed_cb .p2align 2 _focus_changed_cb: ; @focus_changed_cb .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 ldr x9, [sp, #24] ldr x8, [x9] add x9, x9, #8 str x9, [sp, #24] str x8, [sp, #8] ldr d0, [sp, #8] str d0, [sp, #16] add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _function_as_vararg ; -- Begin function function_as_vararg .p2align 2 _function_as_vararg: ; @function_as_vararg .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 x9, sp adrp x8, _focus_changed_cb@PAGE add x8, x8, _focus_changed_cb@PAGEOFF str x8, [x9] mov w0, #0 bl _vararg 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 _focus_changed_cb ## -- Begin function focus_changed_cb .p2align 4, 0x90 _focus_changed_cb: ## @focus_changed_cb .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 -32(%rbp), %rax movq %rax, -64(%rbp) ## 8-byte Spill addq $4, %rax movq %rax, -56(%rbp) ## 8-byte Spill movl -28(%rbp), %eax movl %eax, -44(%rbp) ## 4-byte Spill cmpl $160, %eax ja LBB0_2 ## %bb.1: movq -56(%rbp), %rcx ## 8-byte Reload movl -44(%rbp), %edx ## 4-byte Reload movq -64(%rbp), %rsi ## 8-byte Reload movslq %edx, %rax addq 16(%rsi), %rax addl $16, %edx movl %edx, (%rcx) movq %rax, -72(%rbp) ## 8-byte Spill jmp LBB0_3 LBB0_2: movq -64(%rbp), %rcx ## 8-byte Reload movq 8(%rcx), %rax movq %rax, %rdx addq $8, %rdx movq %rdx, 8(%rcx) movq %rax, -72(%rbp) ## 8-byte Spill LBB0_3: movq -72(%rbp), %rax ## 8-byte Reload movsd (%rax), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -40(%rbp) movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_5 ## %bb.4: addq $80, %rsp popq %rbp retq LBB0_5: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _function_as_vararg ## -- Begin function function_as_vararg .p2align 4, 0x90 _function_as_vararg: ## @function_as_vararg .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp xorl %edi, %edi leaq _focus_changed_cb(%rip), %rsi movb $0, %al callq _vararg popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/28703.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _parloop ; -- Begin function parloop .p2align 2 _parloop: ; @parloop .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, #16992 movk w9, #15, lsl #16 adrp x16, ___chkstk_darwin@GOTPAGE ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF] blr x16 sub sp, sp, #244, lsl #12 ; =999424 sub sp, sp, #608 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] str w0, [sp, #20] str wzr, [sp, #16] b LBB0_1 LBB0_1: ; =>This Loop Header: Depth=1 ; Child Loop BB0_3 Depth 2 ldr w8, [sp, #16] ldr w9, [sp, #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 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] ldr w9, [sp, #20] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_6 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_3 Depth=2 ldr w8, [sp, #16] ldr w9, [sp, #12] add w8, w8, w9 add w8, w8, #3 ldrsw x9, [sp, #16] mov x10, #2000 mul x10, x9, x10 add x9, sp, #24 add x9, x9, x10 ldrsw x10, [sp, #12] str w8, [x9, x10, lsl #2] 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, #16] b LBB0_9 LBB0_9: ; =>This Loop Header: Depth=1 ; Child Loop BB0_11 Depth 2 ldr w8, [sp, #16] ldr w9, [sp, #20] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_18 b LBB0_10 LBB0_10: ; in Loop: Header=BB0_9 Depth=1 str wzr, [sp, #12] b LBB0_11 LBB0_11: ; Parent Loop BB0_9 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #12] ldr w9, [sp, #20] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_16 b LBB0_12 LBB0_12: ; in Loop: Header=BB0_11 Depth=2 ldrsw x8, [sp, #16] mov x9, #2000 mul x9, x8, x9 add x8, sp, #24 add x8, x8, x9 ldrsw x9, [sp, #12] ldr w8, [x8, x9, lsl #2] ldr w9, [sp, #16] ldr w10, [sp, #12] add w9, w9, w10 add w9, w9, #3 subs w8, w8, w9 cset w8, eq tbnz w8, #0, LBB0_14 b LBB0_13 LBB0_13: bl _abort LBB0_14: ; in Loop: Header=BB0_11 Depth=2 b LBB0_15 LBB0_15: ; in Loop: Header=BB0_11 Depth=2 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB0_11 LBB0_16: ; in Loop: Header=BB0_9 Depth=1 b LBB0_17 LBB0_17: ; in Loop: Header=BB0_9 Depth=1 ldr w8, [sp, #16] add w8, w8, #1 str w8, [sp, #16] b LBB0_9 LBB0_18: ldur x9, [x29, #-24] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_20 b LBB0_19 LBB0_19: bl ___stack_chk_fail LBB0_20: add sp, sp, #244, lsl #12 ; =999424 add sp, sp, #608 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, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #0 str w8, [sp, #8] ; 4-byte Folded Spill stur wzr, [x29, #-4] mov w0, #500 bl _parloop 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 _parloop ## -- Begin function parloop .p2align 4, 0x90 _parloop: ## @parloop .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl $1000032, %eax ## imm = 0xF4260 callq ____chkstk_darwin subq %rax, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl %edi, -1000020(%rbp) movl $0, -1000024(%rbp) LBB0_1: ## =>This Loop Header: Depth=1 ## Child Loop BB0_3 Depth 2 movl -1000024(%rbp), %eax cmpl -1000020(%rbp), %eax jge LBB0_8 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl $0, -1000028(%rbp) LBB0_3: ## Parent Loop BB0_1 Depth=1 ## => This Inner Loop Header: Depth=2 movl -1000028(%rbp), %eax cmpl -1000020(%rbp), %eax jge LBB0_6 ## %bb.4: ## in Loop: Header=BB0_3 Depth=2 movl -1000024(%rbp), %edx addl -1000028(%rbp), %edx addl $3, %edx movslq -1000024(%rbp), %rcx leaq -1000016(%rbp), %rax imulq $2000, %rcx, %rcx ## imm = 0x7D0 addq %rcx, %rax movslq -1000028(%rbp), %rcx movl %edx, (%rax,%rcx,4) ## %bb.5: ## in Loop: Header=BB0_3 Depth=2 movl -1000028(%rbp), %eax addl $1, %eax movl %eax, -1000028(%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 -1000024(%rbp), %eax addl $1, %eax movl %eax, -1000024(%rbp) jmp LBB0_1 LBB0_8: movl $0, -1000024(%rbp) LBB0_9: ## =>This Loop Header: Depth=1 ## Child Loop BB0_11 Depth 2 movl -1000024(%rbp), %eax cmpl -1000020(%rbp), %eax jge LBB0_18 ## %bb.10: ## in Loop: Header=BB0_9 Depth=1 movl $0, -1000028(%rbp) LBB0_11: ## Parent Loop BB0_9 Depth=1 ## => This Inner Loop Header: Depth=2 movl -1000028(%rbp), %eax cmpl -1000020(%rbp), %eax jge LBB0_16 ## %bb.12: ## in Loop: Header=BB0_11 Depth=2 movslq -1000024(%rbp), %rcx leaq -1000016(%rbp), %rax imulq $2000, %rcx, %rcx ## imm = 0x7D0 addq %rcx, %rax movslq -1000028(%rbp), %rcx movl (%rax,%rcx,4), %eax movl -1000024(%rbp), %ecx addl -1000028(%rbp), %ecx addl $3, %ecx cmpl %ecx, %eax je LBB0_14 ## %bb.13: callq _abort LBB0_14: ## in Loop: Header=BB0_11 Depth=2 jmp LBB0_15 LBB0_15: ## in Loop: Header=BB0_11 Depth=2 movl -1000028(%rbp), %eax addl $1, %eax movl %eax, -1000028(%rbp) jmp LBB0_11 LBB0_16: ## in Loop: Header=BB0_9 Depth=1 jmp LBB0_17 LBB0_17: ## in Loop: Header=BB0_9 Depth=1 movl -1000024(%rbp), %eax addl $1, %eax movl %eax, -1000024(%rbp) jmp LBB0_9 LBB0_18: movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_20 ## %bb.19: addq $1000032, %rsp ## imm = 0xF4260 popq %rbp retq LBB0_20: 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 $500, %edi ## imm = 0x1F4 callq _parloop xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/101336.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _terminal_func ; -- Begin function terminal_func .p2align 2 _terminal_func: ; @terminal_func .cfi_startproc ; %bb.0: ret .cfi_endproc ; -- End function .globl _array_func ; -- Begin function array_func .p2align 2 _array_func: ; @array_func .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] mov x0, #80 bl _malloc adrp x8, _heap_string@PAGE str x0, [x8, _heap_string@PAGEOFF] ldr x0, [x8, _heap_string@PAGEOFF] adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF mov x2, #-1 bl ___strcpy_chk str wzr, [sp, #4] b LBB1_1 LBB1_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #4] subs w8, w8, #4 cset w8, ge tbnz w8, #0, LBB1_4 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 ldrsw x9, [sp, #4] adrp x8, _extern_array@PAGE add x8, x8, _extern_array@PAGEOFF ldr w9, [x8, x9, lsl #2] add w9, w9, #8 ldrsw x11, [sp, #4] adrp x10, _un_initialized_array@PAGE add x10, x10, _un_initialized_array@PAGEOFF str w9, [x10, x11, lsl #2] ldrsw x9, [sp, #4] ldr w8, [x8, x9, lsl #2] add w8, w8, #12 ldrsw x10, [sp, #4] add x9, sp, #8 str w8, [x9, x10, lsl #2] b LBB1_3 LBB1_3: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #4] add w8, w8, #1 str w8, [sp, #4] b LBB1_1 LBB1_4: bl _terminal_func ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB1_6 b LBB1_5 LBB1_5: bl ___stack_chk_fail LBB1_6: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _factorial_func ; -- Begin function factorial_func .p2align 2 _factorial_func: ; @factorial_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 stur w0, [x29, #-4] ldur w8, [x29, #-4] subs w8, w8, #1 cset w8, le tbnz w8, #0, LBB2_2 b LBB2_1 LBB2_1: ldur w8, [x29, #-4] subs w0, w8, #1 bl _factorial_func ldur w8, [x29, #-4] mul w8, w8, w0 stur w8, [x29, #-4] b LBB2_2 LBB2_2: bl _array_func 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, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #0 str w8, [sp, #8] ; 4-byte Folded Spill stur wzr, [x29, #-4] mov w0, #6 bl _factorial_func ldr w0, [sp, #8] ; 4-byte Folded Reload ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .section __DATA,__data .globl _extern_array ; @extern_array .p2align 2 _extern_array: .long 1 ; 0x1 .long 2 ; 0x2 .long 3 ; 0x3 .long 4 ; 0x4 .zerofill __DATA,__bss,_heap_string,8,3 ; @heap_string .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "I'm a little teapot, short and stout..." .zerofill __DATA,__bss,_un_initialized_array,16,2 ; @un_initialized_array .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _terminal_func ## -- Begin function terminal_func .p2align 4, 0x90 _terminal_func: ## @terminal_func .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 _array_func ## -- Begin function array_func .p2align 4, 0x90 _array_func: ## @array_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 $48, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $80, %edi callq _malloc movq %rax, _heap_string(%rip) movq _heap_string(%rip), %rdi leaq L_.str(%rip), %rsi movq $-1, %rdx callq ___strcpy_chk movl $0, -36(%rbp) LBB1_1: ## =>This Inner Loop Header: Depth=1 cmpl $4, -36(%rbp) jge LBB1_4 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 movslq -36(%rbp), %rcx leaq _extern_array(%rip), %rax movl (%rax,%rcx,4), %edx addl $8, %edx movslq -36(%rbp), %rcx leaq _un_initialized_array(%rip), %rax movl %edx, (%rax,%rcx,4) movslq -36(%rbp), %rcx leaq _extern_array(%rip), %rax movl (%rax,%rcx,4), %ecx addl $12, %ecx movslq -36(%rbp), %rax movl %ecx, -32(%rbp,%rax,4) ## %bb.3: ## in Loop: Header=BB1_1 Depth=1 movl -36(%rbp), %eax addl $1, %eax movl %eax, -36(%rbp) jmp LBB1_1 LBB1_4: callq _terminal_func movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB1_6 ## %bb.5: addq $48, %rsp popq %rbp retq LBB1_6: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _factorial_func ## -- Begin function factorial_func .p2align 4, 0x90 _factorial_func: ## @factorial_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 movl %edi, -4(%rbp) cmpl $1, -4(%rbp) jle LBB2_2 ## %bb.1: movl -4(%rbp), %edi subl $1, %edi callq _factorial_func imull -4(%rbp), %eax movl %eax, -4(%rbp) LBB2_2: callq _array_func movl -4(%rbp), %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) movl $6, %edi callq _factorial_func xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __DATA,__data .globl _extern_array ## @extern_array .p2align 4 _extern_array: .long 1 ## 0x1 .long 2 ## 0x2 .long 3 ## 0x3 .long 4 ## 0x4 .zerofill __DATA,__bss,_heap_string,8,3 ## @heap_string .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "I'm a little teapot, short and stout..." .zerofill __DATA,__bss,_un_initialized_array,16,4 ## @un_initialized_array .subsections_via_symbols
the_stack_data/102762.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _scilab_rt_champ1_i2i2i2d2d0i2_ ; -- Begin function scilab_rt_champ1_i2i2i2d2d0i2_ .p2align 2 _scilab_rt_champ1_i2i2i2d2d0i2_: ; @scilab_rt_champ1_i2i2i2d2d0i2_ .cfi_startproc ; %bb.0: sub sp, sp, #208 .cfi_def_cfa_offset 208 stp x29, x30, [sp, #192] ; 16-byte Folded Spill add x29, sp, #192 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 ldr x14, [x29, #16] ldr w13, [x29, #24] ldr w12, [x29, #28] ldr x11, [x29, #32] ldr w10, [x29, #40] ldr w9, [x29, #44] ldr x8, [x29, #48] stur w0, [x29, #-4] stur w1, [x29, #-8] stur x2, [x29, #-16] stur w3, [x29, #-20] stur w4, [x29, #-24] stur x5, [x29, #-32] stur w6, [x29, #-36] stur w7, [x29, #-40] stur x14, [x29, #-48] stur w13, [x29, #-52] stur w12, [x29, #-56] stur x11, [x29, #-64] stur d0, [x29, #-72] stur w10, [x29, #-76] stur w9, [x29, #-80] stur x8, [x29, #-88] ldur w8, [x29, #-8] ; kill: def $x8 killed $w8 str x8, [sp, #24] ; 8-byte Folded Spill ldur w8, [x29, #-24] ; kill: def $x8 killed $w8 str x8, [sp, #32] ; 8-byte Folded Spill ldur w8, [x29, #-40] ; kill: def $x8 killed $w8 str x8, [sp, #40] ; 8-byte Folded Spill ldur w8, [x29, #-56] ; kill: def $x8 killed $w8 str x8, [sp, #48] ; 8-byte Folded Spill ldur w8, [x29, #-80] ; kill: def $x8 killed $w8 str x8, [sp, #56] ; 8-byte Folded Spill str wzr, [sp, #92] str wzr, [sp, #88] str wzr, [sp, #84] movi d0, #0000000000000000 str d0, [sp, #72] str wzr, [sp, #68] stur wzr, [x29, #-92] b LBB0_1 LBB0_1: ; =>This Loop Header: Depth=1 ; Child Loop BB0_3 Depth 2 ldur w8, [x29, #-92] ldur w9, [x29, #-4] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_8 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 str wzr, [sp, #96] b LBB0_3 LBB0_3: ; Parent Loop BB0_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #96] ldur w9, [x29, #-8] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_6 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_3 Depth=2 ldr x10, [sp, #24] ; 8-byte Folded Reload ldur x8, [x29, #-16] ldursw x9, [x29, #-92] mul x9, x9, x10 add x8, x8, x9, lsl #2 ldrsw x9, [sp, #96] ldr w9, [x8, x9, lsl #2] ldr w8, [sp, #92] add w8, w8, w9 str w8, [sp, #92] b LBB0_5 LBB0_5: ; in Loop: Header=BB0_3 Depth=2 ldr w8, [sp, #96] add w8, w8, #1 str w8, [sp, #96] b LBB0_3 LBB0_6: ; in Loop: Header=BB0_1 Depth=1 b LBB0_7 LBB0_7: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-92] add w8, w8, #1 stur w8, [x29, #-92] b LBB0_1 LBB0_8: ldr w9, [sp, #92] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf stur wzr, [x29, #-92] b LBB0_9 LBB0_9: ; =>This Loop Header: Depth=1 ; Child Loop BB0_11 Depth 2 ldur w8, [x29, #-92] ldur w9, [x29, #-20] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_16 b LBB0_10 LBB0_10: ; in Loop: Header=BB0_9 Depth=1 str wzr, [sp, #96] b LBB0_11 LBB0_11: ; Parent Loop BB0_9 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #96] ldur w9, [x29, #-24] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_14 b LBB0_12 LBB0_12: ; in Loop: Header=BB0_11 Depth=2 ldr x10, [sp, #32] ; 8-byte Folded Reload ldur x8, [x29, #-32] ldursw x9, [x29, #-92] mul x9, x9, x10 add x8, x8, x9, lsl #2 ldrsw x9, [sp, #96] ldr w9, [x8, x9, lsl #2] ldr w8, [sp, #88] add w8, w8, w9 str w8, [sp, #88] b LBB0_13 LBB0_13: ; in Loop: Header=BB0_11 Depth=2 ldr w8, [sp, #96] add w8, w8, #1 str w8, [sp, #96] b LBB0_11 LBB0_14: ; in Loop: Header=BB0_9 Depth=1 b LBB0_15 LBB0_15: ; in Loop: Header=BB0_9 Depth=1 ldur w8, [x29, #-92] add w8, w8, #1 stur w8, [x29, #-92] b LBB0_9 LBB0_16: ldr w9, [sp, #88] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf stur wzr, [x29, #-92] b LBB0_17 LBB0_17: ; =>This Loop Header: Depth=1 ; Child Loop BB0_19 Depth 2 ldur w8, [x29, #-92] ldur w9, [x29, #-36] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_24 b LBB0_18 LBB0_18: ; in Loop: Header=BB0_17 Depth=1 str wzr, [sp, #96] b LBB0_19 LBB0_19: ; Parent Loop BB0_17 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #96] ldur w9, [x29, #-40] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_22 b LBB0_20 LBB0_20: ; in Loop: Header=BB0_19 Depth=2 ldr x10, [sp, #40] ; 8-byte Folded Reload ldur x8, [x29, #-48] ldursw x9, [x29, #-92] mul x9, x9, x10 add x8, x8, x9, lsl #2 ldrsw x9, [sp, #96] ldr w9, [x8, x9, lsl #2] ldr w8, [sp, #84] add w8, w8, w9 str w8, [sp, #84] b LBB0_21 LBB0_21: ; in Loop: Header=BB0_19 Depth=2 ldr w8, [sp, #96] add w8, w8, #1 str w8, [sp, #96] b LBB0_19 LBB0_22: ; in Loop: Header=BB0_17 Depth=1 b LBB0_23 LBB0_23: ; in Loop: Header=BB0_17 Depth=1 ldur w8, [x29, #-92] add w8, w8, #1 stur w8, [x29, #-92] b LBB0_17 LBB0_24: ldr w9, [sp, #84] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf stur wzr, [x29, #-92] b LBB0_25 LBB0_25: ; =>This Loop Header: Depth=1 ; Child Loop BB0_27 Depth 2 ldur w8, [x29, #-92] ldur w9, [x29, #-52] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_32 b LBB0_26 LBB0_26: ; in Loop: Header=BB0_25 Depth=1 str wzr, [sp, #96] b LBB0_27 LBB0_27: ; Parent Loop BB0_25 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #96] ldur w9, [x29, #-56] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_30 b LBB0_28 LBB0_28: ; in Loop: Header=BB0_27 Depth=2 ldr x10, [sp, #48] ; 8-byte Folded Reload ldur x8, [x29, #-64] ldursw x9, [x29, #-92] mul x9, x9, x10 add x8, x8, x9, lsl #3 ldrsw x9, [sp, #96] ldr d1, [x8, x9, lsl #3] ldr d0, [sp, #72] fadd d0, d0, d1 str d0, [sp, #72] b LBB0_29 LBB0_29: ; in Loop: Header=BB0_27 Depth=2 ldr w8, [sp, #96] add w8, w8, #1 str w8, [sp, #96] b LBB0_27 LBB0_30: ; in Loop: Header=BB0_25 Depth=1 b LBB0_31 LBB0_31: ; in Loop: Header=BB0_25 Depth=1 ldur w8, [x29, #-92] add w8, w8, #1 stur w8, [x29, #-92] b LBB0_25 LBB0_32: ldr d0, [sp, #72] mov x8, sp str d0, [x8] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF str x0, [sp, #16] ; 8-byte Folded Spill bl _printf ldr x0, [sp, #16] ; 8-byte Folded Reload ldur d0, [x29, #-72] mov x8, sp str d0, [x8] bl _printf stur wzr, [x29, #-92] b LBB0_33 LBB0_33: ; =>This Loop Header: Depth=1 ; Child Loop BB0_35 Depth 2 ldur w8, [x29, #-92] ldur w9, [x29, #-76] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_40 b LBB0_34 LBB0_34: ; in Loop: Header=BB0_33 Depth=1 str wzr, [sp, #96] b LBB0_35 LBB0_35: ; Parent Loop BB0_33 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #96] ldur w9, [x29, #-80] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_38 b LBB0_36 LBB0_36: ; in Loop: Header=BB0_35 Depth=2 ldr x10, [sp, #56] ; 8-byte Folded Reload ldur x8, [x29, #-88] ldursw x9, [x29, #-92] mul x9, x9, x10 add x8, x8, x9, lsl #2 ldrsw x9, [sp, #96] ldr w9, [x8, x9, lsl #2] ldr w8, [sp, #68] add w8, w8, w9 str w8, [sp, #68] b LBB0_37 LBB0_37: ; in Loop: Header=BB0_35 Depth=2 ldr w8, [sp, #96] add w8, w8, #1 str w8, [sp, #96] b LBB0_35 LBB0_38: ; in Loop: Header=BB0_33 Depth=1 b LBB0_39 LBB0_39: ; in Loop: Header=BB0_33 Depth=1 ldur w8, [x29, #-92] add w8, w8, #1 stur w8, [x29, #-92] b LBB0_33 LBB0_40: ldr w9, [sp, #68] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldp x29, x30, [sp, #192] ; 16-byte Folded Reload add sp, sp, #208 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d" l_.str.1: ; @.str.1 .asciz "%f" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _scilab_rt_champ1_i2i2i2d2d0i2_ ## -- Begin function scilab_rt_champ1_i2i2i2d2d0i2_ .p2align 4, 0x90 _scilab_rt_champ1_i2i2i2d2d0i2_: ## @scilab_rt_champ1_i2i2i2d2d0i2_ .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 80(%rbp), %rax movl 72(%rbp), %eax movl 64(%rbp), %eax movq 56(%rbp), %rax movl 48(%rbp), %eax movl 40(%rbp), %eax movq 32(%rbp), %rax movl 24(%rbp), %eax movl 16(%rbp), %eax movl %edi, -4(%rbp) movl %esi, -8(%rbp) movq %rdx, -16(%rbp) movl %ecx, -20(%rbp) movl %r8d, -24(%rbp) movq %r9, -32(%rbp) movsd %xmm0, -40(%rbp) movl -8(%rbp), %eax ## kill: def $rax killed $eax movq %rax, -120(%rbp) ## 8-byte Spill movl -24(%rbp), %eax ## kill: def $rax killed $eax movq %rax, -112(%rbp) ## 8-byte Spill movl 24(%rbp), %eax ## kill: def $rax killed $eax movq %rax, -104(%rbp) ## 8-byte Spill movl 48(%rbp), %eax ## kill: def $rax killed $eax movq %rax, -96(%rbp) ## 8-byte Spill movl 72(%rbp), %eax ## kill: def $rax killed $eax movq %rax, -88(%rbp) ## 8-byte Spill movl $0, -52(%rbp) movl $0, -56(%rbp) movl $0, -60(%rbp) xorps %xmm0, %xmm0 movsd %xmm0, -72(%rbp) movl $0, -76(%rbp) movl $0, -44(%rbp) LBB0_1: ## =>This Loop Header: Depth=1 ## Child Loop BB0_3 Depth 2 movl -44(%rbp), %eax cmpl -4(%rbp), %eax jge LBB0_8 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl $0, -48(%rbp) LBB0_3: ## Parent Loop BB0_1 Depth=1 ## => This Inner Loop Header: Depth=2 movl -48(%rbp), %eax cmpl -8(%rbp), %eax jge LBB0_6 ## %bb.4: ## in Loop: Header=BB0_3 Depth=2 movq -120(%rbp), %rdx ## 8-byte Reload movq -16(%rbp), %rax movslq -44(%rbp), %rcx imulq %rdx, %rcx shlq $2, %rcx addq %rcx, %rax movslq -48(%rbp), %rcx movl (%rax,%rcx,4), %eax addl -52(%rbp), %eax movl %eax, -52(%rbp) ## %bb.5: ## in Loop: Header=BB0_3 Depth=2 movl -48(%rbp), %eax addl $1, %eax movl %eax, -48(%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 -44(%rbp), %eax addl $1, %eax movl %eax, -44(%rbp) jmp LBB0_1 LBB0_8: movl -52(%rbp), %esi leaq L_.str(%rip), %rdi movb $0, %al callq _printf movl $0, -44(%rbp) LBB0_9: ## =>This Loop Header: Depth=1 ## Child Loop BB0_11 Depth 2 movl -44(%rbp), %eax cmpl -20(%rbp), %eax jge LBB0_16 ## %bb.10: ## in Loop: Header=BB0_9 Depth=1 movl $0, -48(%rbp) LBB0_11: ## Parent Loop BB0_9 Depth=1 ## => This Inner Loop Header: Depth=2 movl -48(%rbp), %eax cmpl -24(%rbp), %eax jge LBB0_14 ## %bb.12: ## in Loop: Header=BB0_11 Depth=2 movq -112(%rbp), %rdx ## 8-byte Reload movq -32(%rbp), %rax movslq -44(%rbp), %rcx imulq %rdx, %rcx shlq $2, %rcx addq %rcx, %rax movslq -48(%rbp), %rcx movl (%rax,%rcx,4), %eax addl -56(%rbp), %eax movl %eax, -56(%rbp) ## %bb.13: ## in Loop: Header=BB0_11 Depth=2 movl -48(%rbp), %eax addl $1, %eax movl %eax, -48(%rbp) jmp LBB0_11 LBB0_14: ## in Loop: Header=BB0_9 Depth=1 jmp LBB0_15 LBB0_15: ## in Loop: Header=BB0_9 Depth=1 movl -44(%rbp), %eax addl $1, %eax movl %eax, -44(%rbp) jmp LBB0_9 LBB0_16: movl -56(%rbp), %esi leaq L_.str(%rip), %rdi movb $0, %al callq _printf movl $0, -44(%rbp) LBB0_17: ## =>This Loop Header: Depth=1 ## Child Loop BB0_19 Depth 2 movl -44(%rbp), %eax cmpl 16(%rbp), %eax jge LBB0_24 ## %bb.18: ## in Loop: Header=BB0_17 Depth=1 movl $0, -48(%rbp) LBB0_19: ## Parent Loop BB0_17 Depth=1 ## => This Inner Loop Header: Depth=2 movl -48(%rbp), %eax cmpl 24(%rbp), %eax jge LBB0_22 ## %bb.20: ## in Loop: Header=BB0_19 Depth=2 movq -104(%rbp), %rdx ## 8-byte Reload movq 32(%rbp), %rax movslq -44(%rbp), %rcx imulq %rdx, %rcx shlq $2, %rcx addq %rcx, %rax movslq -48(%rbp), %rcx movl (%rax,%rcx,4), %eax addl -60(%rbp), %eax movl %eax, -60(%rbp) ## %bb.21: ## in Loop: Header=BB0_19 Depth=2 movl -48(%rbp), %eax addl $1, %eax movl %eax, -48(%rbp) jmp LBB0_19 LBB0_22: ## in Loop: Header=BB0_17 Depth=1 jmp LBB0_23 LBB0_23: ## in Loop: Header=BB0_17 Depth=1 movl -44(%rbp), %eax addl $1, %eax movl %eax, -44(%rbp) jmp LBB0_17 LBB0_24: movl -60(%rbp), %esi leaq L_.str(%rip), %rdi movb $0, %al callq _printf movl $0, -44(%rbp) LBB0_25: ## =>This Loop Header: Depth=1 ## Child Loop BB0_27 Depth 2 movl -44(%rbp), %eax cmpl 40(%rbp), %eax jge LBB0_32 ## %bb.26: ## in Loop: Header=BB0_25 Depth=1 movl $0, -48(%rbp) LBB0_27: ## Parent Loop BB0_25 Depth=1 ## => This Inner Loop Header: Depth=2 movl -48(%rbp), %eax cmpl 48(%rbp), %eax jge LBB0_30 ## %bb.28: ## in Loop: Header=BB0_27 Depth=2 movq -96(%rbp), %rdx ## 8-byte Reload movq 56(%rbp), %rax movslq -44(%rbp), %rcx imulq %rdx, %rcx shlq $3, %rcx addq %rcx, %rax movslq -48(%rbp), %rcx movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero addsd -72(%rbp), %xmm0 movsd %xmm0, -72(%rbp) ## %bb.29: ## in Loop: Header=BB0_27 Depth=2 movl -48(%rbp), %eax addl $1, %eax movl %eax, -48(%rbp) jmp LBB0_27 LBB0_30: ## in Loop: Header=BB0_25 Depth=1 jmp LBB0_31 LBB0_31: ## in Loop: Header=BB0_25 Depth=1 movl -44(%rbp), %eax addl $1, %eax movl %eax, -44(%rbp) jmp LBB0_25 LBB0_32: movsd -72(%rbp), %xmm0 ## xmm0 = mem[0],zero leaq L_.str.1(%rip), %rdi movb $1, %al callq _printf movsd -40(%rbp), %xmm0 ## xmm0 = mem[0],zero leaq L_.str.1(%rip), %rdi movb $1, %al callq _printf movl $0, -44(%rbp) LBB0_33: ## =>This Loop Header: Depth=1 ## Child Loop BB0_35 Depth 2 movl -44(%rbp), %eax cmpl 64(%rbp), %eax jge LBB0_40 ## %bb.34: ## in Loop: Header=BB0_33 Depth=1 movl $0, -48(%rbp) LBB0_35: ## Parent Loop BB0_33 Depth=1 ## => This Inner Loop Header: Depth=2 movl -48(%rbp), %eax cmpl 72(%rbp), %eax jge LBB0_38 ## %bb.36: ## in Loop: Header=BB0_35 Depth=2 movq -88(%rbp), %rdx ## 8-byte Reload movq 80(%rbp), %rax movslq -44(%rbp), %rcx imulq %rdx, %rcx shlq $2, %rcx addq %rcx, %rax movslq -48(%rbp), %rcx movl (%rax,%rcx,4), %eax addl -76(%rbp), %eax movl %eax, -76(%rbp) ## %bb.37: ## in Loop: Header=BB0_35 Depth=2 movl -48(%rbp), %eax addl $1, %eax movl %eax, -48(%rbp) jmp LBB0_35 LBB0_38: ## in Loop: Header=BB0_33 Depth=1 jmp LBB0_39 LBB0_39: ## in Loop: Header=BB0_33 Depth=1 movl -44(%rbp), %eax addl $1, %eax movl %eax, -44(%rbp) jmp LBB0_33 LBB0_40: movl -76(%rbp), %esi leaq L_.str(%rip), %rdi movb $0, %al callq _printf addq $128, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d" L_.str.1: ## @.str.1 .asciz "%f" .subsections_via_symbols
the_stack_data/74146.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _foo ; -- Begin function foo .p2align 2 _foo: ; @foo .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str wzr, [sp, #12] adrp x9, _a@GOTPAGE ldr x9, [x9, _a@GOTPAGEOFF] mov w8, #6 str w8, [x9] add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #0 str w8, [sp, #8] ; 4-byte Folded Spill stur wzr, [x29, #-4] bl _foo adrp x9, _a@GOTPAGE ldr x9, [x9, _a@GOTPAGEOFF] mov w8, #-5 str w8, [x9] 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 .comm _a,4,2 ; @a .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 $0, -4(%rbp) movq _a@GOTPCREL(%rip), %rax movl $6, (%rax) popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) callq _foo movq _a@GOTPCREL(%rip), %rax movl $-5, (%rax) callq _foo xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .comm _a,4,2 ## @a .subsections_via_symbols
the_stack_data/133124.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, #2 stur w8, [x29, #-8] mov w8, #1 sturb w8, [x29, #-9] b LBB0_1 LBB0_1: ; =>This Loop Header: Depth=1 ; Child Loop BB0_5 Depth 2 ; Child Loop BB0_7 Depth 3 ldurb w8, [x29, #-9] tbz w8, #0, LBB0_16 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov x9, sp sub x8, x29, #10 str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf ldursb w8, [x29, #-10] subs w8, w8, #121 cset w8, eq tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 sturb wzr, [x29, #-9] b LBB0_4 LBB0_4: ; in Loop: Header=BB0_1 Depth=1 sturb wzr, [x29, #-11] b LBB0_5 LBB0_5: ; Parent Loop BB0_1 Depth=1 ; => This Loop Header: Depth=2 ; Child Loop BB0_7 Depth 3 ldurb w8, [x29, #-11] tbnz w8, #0, LBB0_15 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_5 Depth=2 mov w8, #1 sturb w8, [x29, #-11] mov w8, #2 str w8, [sp, #16] b LBB0_7 LBB0_7: ; Parent Loop BB0_1 Depth=1 ; Parent Loop BB0_5 Depth=2 ; => This Inner Loop Header: Depth=3 ldr w8, [sp, #16] ldur w9, [x29, #-8] mov w10, #2 sdiv w9, w9, w10 subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_12 b LBB0_8 LBB0_8: ; in Loop: Header=BB0_7 Depth=3 ldur w8, [x29, #-8] ldr w10, [sp, #16] sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_10 b LBB0_9 LBB0_9: ; in Loop: Header=BB0_7 Depth=3 sturb wzr, [x29, #-11] b LBB0_10 LBB0_10: ; in Loop: Header=BB0_7 Depth=3 b LBB0_11 LBB0_11: ; in Loop: Header=BB0_7 Depth=3 ldr w8, [sp, #16] add w8, w8, #1 str w8, [sp, #16] b LBB0_7 LBB0_12: ; in Loop: Header=BB0_5 Depth=2 ldurb w8, [x29, #-11] tbz w8, #0, LBB0_14 b LBB0_13 LBB0_13: ; in Loop: Header=BB0_5 Depth=2 ldur w9, [x29, #-8] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf b LBB0_14 LBB0_14: ; in Loop: Header=BB0_5 Depth=2 ldur w8, [x29, #-8] add w8, w8, #1 stur w8, [x29, #-8] b LBB0_5 LBB0_15: ; in Loop: Header=BB0_1 Depth=1 b LBB0_1 LBB0_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 "Another one? (y/n): " l_.str.1: ; @.str.1 .asciz " %c" l_.str.2: ; @.str.2 .asciz "%d is a prime number\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl $0, -4(%rbp) movl $2, -8(%rbp) movb $1, -9(%rbp) LBB0_1: ## =>This Loop Header: Depth=1 ## Child Loop BB0_5 Depth 2 ## Child Loop BB0_7 Depth 3 testb $1, -9(%rbp) je LBB0_16 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 leaq L_.str(%rip), %rdi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi leaq -10(%rbp), %rsi movb $0, %al callq _scanf movsbl -10(%rbp), %eax cmpl $121, %eax je LBB0_4 ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movb $0, -9(%rbp) LBB0_4: ## in Loop: Header=BB0_1 Depth=1 movb $0, -11(%rbp) LBB0_5: ## Parent Loop BB0_1 Depth=1 ## => This Loop Header: Depth=2 ## Child Loop BB0_7 Depth 3 movb -11(%rbp), %al xorb $-1, %al testb $1, %al jne LBB0_6 jmp LBB0_15 LBB0_6: ## in Loop: Header=BB0_5 Depth=2 movb $1, -11(%rbp) movl $2, -16(%rbp) LBB0_7: ## Parent Loop BB0_1 Depth=1 ## Parent Loop BB0_5 Depth=2 ## => This Inner Loop Header: Depth=3 movl -16(%rbp), %eax movl %eax, -20(%rbp) ## 4-byte Spill movl -8(%rbp), %eax movl $2, %ecx cltd idivl %ecx movl %eax, %ecx movl -20(%rbp), %eax ## 4-byte Reload cmpl %ecx, %eax jg LBB0_12 ## %bb.8: ## in Loop: Header=BB0_7 Depth=3 movl -8(%rbp), %eax cltd idivl -16(%rbp) cmpl $0, %edx jne LBB0_10 ## %bb.9: ## in Loop: Header=BB0_7 Depth=3 movb $0, -11(%rbp) LBB0_10: ## in Loop: Header=BB0_7 Depth=3 jmp LBB0_11 LBB0_11: ## in Loop: Header=BB0_7 Depth=3 movl -16(%rbp), %eax addl $1, %eax movl %eax, -16(%rbp) jmp LBB0_7 LBB0_12: ## in Loop: Header=BB0_5 Depth=2 testb $1, -11(%rbp) je LBB0_14 ## %bb.13: ## in Loop: Header=BB0_5 Depth=2 movl -8(%rbp), %esi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf LBB0_14: ## in Loop: Header=BB0_5 Depth=2 movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) jmp LBB0_5 LBB0_15: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_1 LBB0_16: xorl %eax, %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Another one? (y/n): " L_.str.1: ## @.str.1 .asciz " %c" L_.str.2: ## @.str.2 .asciz "%d is a prime number\n" .subsections_via_symbols
the_stack_data/170452259.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] bl _megaInit ldur w8, [x29, #-8] subs w8, w8, #2 cset w8, eq tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: mov x9, sp mov x8, #1 str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov w0, #-1 bl _exit LBB0_2: b LBB0_3 LBB0_3: str wzr, [sp, #20] b LBB0_4 LBB0_4: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #20] subs w8, w8, #1 cset w8, ge tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_4 Depth=1 ldur x8, [x29, #-16] ldr w9, [sp, #20] add w9, w9, #1 ldr x0, [x8, w9, sxtw #3] mov x1, #0 mov w2, #10 bl _strtoul mov x8, x0 str w8, [sp, #16] ldr w8, [sp, #16] ldrsw x10, [sp, #20] sub x9, x29, #20 str w8, [x9, x10, lsl #2] ldr w8, [sp, #20] add w8, w8, #1 str w8, [sp, #20] b LBB0_4 LBB0_6: sub x0, x29, #20 add x1, sp, #24 bl _RandomFunc ldr w8, [sp, #24] mov w9, #27544 movk w9, #54182, lsl #16 subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_8 b LBB0_7 LBB0_7: adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf b LBB0_9 LBB0_8: b LBB0_9 LBB0_9: str wzr, [sp, #12] b LBB0_10 LBB0_10: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #12] subs w8, w8, #1 cset w8, ge tbnz w8, #0, LBB0_12 b LBB0_11 LBB0_11: ; in Loop: Header=BB0_10 Depth=1 ldrsw x9, [sp, #12] add x8, sp, #24 ldr w9, [x8, x9, lsl #2] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB0_10 LBB0_12: ldur w0, [x29, #-4] ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _megaInit ; -- Begin function megaInit .p2align 2 _megaInit: ; @megaInit .cfi_startproc ; %bb.0: ret .cfi_endproc ; -- End function .globl _RandomFunc ; -- Begin function RandomFunc .p2align 2 _RandomFunc: ; @RandomFunc .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, #24] str x1, [sp, #16] ldr x8, [sp, #24] ldr w8, [x8] mov w9, #2885 movk w9, #65382, lsl #16 add w8, w8, w9 str w8, [sp, #12] str wzr, [sp, #8] b LBB2_1 LBB2_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #8] ldr x9, [sp, #24] ldr w9, [x9, #4] subs w8, w8, w9 cset w8, hs tbnz w8, #0, LBB2_8 b LBB2_2 LBB2_2: ; in Loop: Header=BB2_1 Depth=1 ldr w8, [sp, #12] ldr w9, [sp, #8] subs w8, w8, w9 cset w8, hi tbnz w8, #0, LBB2_4 b LBB2_3 LBB2_3: ; in Loop: Header=BB2_1 Depth=1 add x8, sp, #12 ldr w10, [sp, #12] ldr w9, [sp, #8] ; kill: def $x9 killed $w9 add x9, x8, x9, lsl #2 ldr w8, [x9] add w8, w8, w10 str w8, [x9] b LBB2_4 LBB2_4: ; in Loop: Header=BB2_1 Depth=1 ldr w8, [sp, #12] ldr w9, [sp, #8] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB2_6 b LBB2_5 LBB2_5: ; in Loop: Header=BB2_1 Depth=1 ldr w8, [sp, #8] mov x10, x8 add x9, sp, #12 mov x8, x9 add x8, x8, x10, lsl #2 ldrh w8, [x8, #2] strh w8, [sp, #6] ldr w8, [sp, #8] mov x10, x8 mov x8, x9 add x8, x8, x10, lsl #2 ldrh w8, [x8] ldr w10, [sp, #8] mov x11, x10 mov x10, x9 add x10, x10, x11, lsl #2 strh w8, [x10, #2] ldrh w8, [sp, #6] ldr w10, [sp, #8] ; kill: def $x10 killed $w10 add x9, x9, x10, lsl #2 strh w8, [x9] b LBB2_7 LBB2_6: ; in Loop: Header=BB2_1 Depth=1 ldr w8, [sp, #8] mov x10, x8 add x9, sp, #12 mov x8, x9 add x8, x8, x10, lsl #2 ldrh w8, [x8, #2] strh w8, [sp, #4] ldr w8, [sp, #8] mov x10, x8 mov x8, x9 add x8, x8, x10, lsl #2 ldrh w8, [x8] ldr w10, [sp, #8] mov x11, x10 mov x10, x9 add x10, x10, x11, lsl #2 strh w8, [x10, #2] ldrh w8, [sp, #4] ldr w10, [sp, #8] ; kill: def $x10 killed $w10 add x9, x9, x10, lsl #2 strh w8, [x9] b LBB2_7 LBB2_7: ; in Loop: Header=BB2_1 Depth=1 ldr w8, [sp, #8] ; kill: def $x8 killed $w8 add x8, x8, #2 ; kill: def $w8 killed $w8 killed $x8 str w8, [sp, #8] b LBB2_1 LBB2_8: ldr w8, [sp, #12] ; kill: def $x8 killed $w8 mov x9, #53222 movk x9, #11199, lsl #16 subs x8, x8, x9 ldr x9, [sp, #16] ; kill: def $w8 killed $w8 killed $x8 str w8, [x9] add sp, sp, #32 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Call this program with %i arguments\n" l_.str.1: ; @.str.1 .asciz "You win!\n" l_.str.2: ; @.str.2 .asciz "%u\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movl $0, -4(%rbp) movl %edi, -8(%rbp) movq %rsi, -16(%rbp) callq _megaInit cmpl $2, -8(%rbp) je LBB0_2 ## %bb.1: leaq L_.str(%rip), %rdi xorl %eax, %eax ## kill: def $al killed $al killed $eax movl $1, %esi callq _printf movl $-1, %edi callq _exit LBB0_2: jmp LBB0_3 LBB0_3: movl $0, -28(%rbp) LBB0_4: ## =>This Inner Loop Header: Depth=1 cmpl $1, -28(%rbp) jge LBB0_6 ## %bb.5: ## in Loop: Header=BB0_4 Depth=1 movq -16(%rbp), %rax movl -28(%rbp), %ecx addl $1, %ecx movslq %ecx, %rcx movq (%rax,%rcx,8), %rdi xorl %eax, %eax movl %eax, %esi movl $10, %edx callq _strtoul ## kill: def $eax killed $eax killed $rax movl %eax, -32(%rbp) movl -32(%rbp), %ecx movslq -28(%rbp), %rax movl %ecx, -20(%rbp,%rax,4) movl -28(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) jmp LBB0_4 LBB0_6: leaq -20(%rbp), %rdi leaq -24(%rbp), %rsi callq _RandomFunc cmpl $-744068200, -24(%rbp) ## imm = 0xD3A66B98 jne LBB0_8 ## %bb.7: leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf jmp LBB0_9 LBB0_8: jmp LBB0_9 LBB0_9: movl $0, -36(%rbp) LBB0_10: ## =>This Inner Loop Header: Depth=1 cmpl $1, -36(%rbp) jge LBB0_12 ## %bb.11: ## in Loop: Header=BB0_10 Depth=1 movslq -36(%rbp), %rax movl -24(%rbp,%rax,4), %esi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf movl -36(%rbp), %eax addl $1, %eax movl %eax, -36(%rbp) jmp LBB0_10 LBB0_12: movl -4(%rbp), %eax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _megaInit ## -- Begin function megaInit .p2align 4, 0x90 _megaInit: ## @megaInit .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp popq %rbp retq .cfi_endproc ## -- End function .globl _RandomFunc ## -- Begin function RandomFunc .p2align 4, 0x90 _RandomFunc: ## @RandomFunc .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) movq -8(%rbp), %rax movl (%rax), %eax addl $-10089659, %eax ## imm = 0xFF660B45 movl %eax, -20(%rbp) movl $0, -24(%rbp) LBB2_1: ## =>This Inner Loop Header: Depth=1 movl -24(%rbp), %eax movq -8(%rbp), %rcx cmpl 4(%rcx), %eax jae LBB2_8 ## %bb.2: ## in Loop: Header=BB2_1 Depth=1 movl -20(%rbp), %eax cmpl -24(%rbp), %eax ja LBB2_4 ## %bb.3: ## in Loop: Header=BB2_1 Depth=1 movl -20(%rbp), %ecx movl -24(%rbp), %eax ## kill: def $rax killed $eax addl -20(%rbp,%rax,4), %ecx movl %ecx, -20(%rbp,%rax,4) LBB2_4: ## in Loop: Header=BB2_1 Depth=1 movl -20(%rbp), %eax cmpl -24(%rbp), %eax jne LBB2_6 ## %bb.5: ## in Loop: Header=BB2_1 Depth=1 movl -24(%rbp), %eax ## kill: def $rax killed $eax movw -18(%rbp,%rax,4), %ax movw %ax, -26(%rbp) movl -24(%rbp), %eax ## kill: def $rax killed $eax movw -20(%rbp,%rax,4), %cx movl -24(%rbp), %eax ## kill: def $rax killed $eax movw %cx, -18(%rbp,%rax,4) movw -26(%rbp), %cx movl -24(%rbp), %eax ## kill: def $rax killed $eax movw %cx, -20(%rbp,%rax,4) jmp LBB2_7 LBB2_6: ## in Loop: Header=BB2_1 Depth=1 movl -24(%rbp), %eax ## kill: def $rax killed $eax movw -18(%rbp,%rax,4), %ax movw %ax, -28(%rbp) movl -24(%rbp), %eax ## kill: def $rax killed $eax movw -20(%rbp,%rax,4), %cx movl -24(%rbp), %eax ## kill: def $rax killed $eax movw %cx, -18(%rbp,%rax,4) movw -28(%rbp), %cx movl -24(%rbp), %eax ## kill: def $rax killed $eax movw %cx, -20(%rbp,%rax,4) LBB2_7: ## in Loop: Header=BB2_1 Depth=1 movl -24(%rbp), %eax ## kill: def $rax killed $eax addq $2, %rax ## kill: def $eax killed $eax killed $rax movl %eax, -24(%rbp) jmp LBB2_1 LBB2_8: movl -20(%rbp), %eax ## kill: def $rax killed $eax subq $733990886, %rax ## imm = 0x2BBFCFE6 movl %eax, %ecx movq -16(%rbp), %rax movl %ecx, (%rax) popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Call this program with %i arguments\n" L_.str.1: ## @.str.1 .asciz "You win!\n" L_.str.2: ## @.str.2 .asciz "%u\n" .subsections_via_symbols
the_stack_data/3615.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __TEXT,__literal8,8byte_literals .p2align 3 ; -- Begin function main lCPI0_0: .quad 0x4059000000000000 ; double 100 .section __TEXT,__text,regular,pure_instructions .globl _main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #80 .cfi_def_cfa_offset 80 stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp, #64 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #0 str w8, [sp, #32] ; 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] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _scanf ldur w8, [x29, #-12] ldur w9, [x29, #-8] subs w8, w8, w9 scvtf d0, w8 adrp x8, lCPI0_0@PAGE ldr d1, [x8, lCPI0_0@PAGEOFF] fdiv d0, d0, d1 fmov d1, #0.50000000 fadd d0, d0, d1 fcvtzs w8, d0 stur w8, [x29, #-16] ldur w8, [x29, #-16] mov w10, #3600 sdiv w8, w8, w10 stur w8, [x29, #-20] ldur w8, [x29, #-16] sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 mov w10, #60 sdiv w8, w8, w10 stur w8, [x29, #-24] ldur w8, [x29, #-16] sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 stur w8, [x29, #-28] ldur w8, [x29, #-20] ; implicit-def: $x11 mov x11, x8 ldur w8, [x29, #-24] ; implicit-def: $x10 mov x10, x8 ldur w9, [x29, #-28] ; 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 ldr w0, [sp, #32] ; 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" l_.str.1: ; @.str.1 .asciz "%02d:%02d:%02d\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __TEXT,__literal8,8byte_literals .p2align 3 ## -- Begin function main LCPI0_0: .quad 0x3fe0000000000000 ## double 0.5 LCPI0_1: .quad 0x4059000000000000 ## double 100 .section __TEXT,__text,regular,pure_instructions .globl _main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl $0, -4(%rbp) leaq L_.str(%rip), %rdi leaq -8(%rbp), %rsi leaq -12(%rbp), %rdx movb $0, %al callq _scanf movl -12(%rbp), %eax subl -8(%rbp), %eax cvtsi2sd %eax, %xmm0 movsd LCPI0_1(%rip), %xmm1 ## xmm1 = mem[0],zero divsd %xmm1, %xmm0 movsd LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero addsd %xmm1, %xmm0 cvttsd2si %xmm0, %eax movl %eax, -16(%rbp) movl -16(%rbp), %eax movl $3600, %ecx ## imm = 0xE10 cltd idivl %ecx movl %eax, -20(%rbp) movl -16(%rbp), %eax movl $3600, %ecx ## imm = 0xE10 cltd idivl %ecx movl %edx, %eax movl $60, %ecx cltd idivl %ecx movl %eax, -24(%rbp) movl -16(%rbp), %eax movl $60, %ecx cltd idivl %ecx movl %edx, -28(%rbp) movl -20(%rbp), %esi movl -24(%rbp), %edx movl -28(%rbp), %ecx 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" L_.str.1: ## @.str.1 .asciz "%02d:%02d:%02d\n" .subsections_via_symbols
the_stack_data/104827359.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #96 .cfi_def_cfa_offset 96 stp x29, x30, [sp, #80] ; 16-byte Folded Spill add x29, sp, #80 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] stur wzr, [x29, #-20] stur w0, [x29, #-24] stur x1, [x29, #-32] mov x9, sp sub x8, x29, #36 str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _scanf sub x0, x29, #16 bl _pipe adds w8, w0, #1 cset w8, ne tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _perror mov w0, #1 bl _exit LBB0_2: bl _fork str w0, [sp, #16] ; 4-byte Folded Spill adds w8, w0, #1 cset w8, eq tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: ldr w8, [sp, #16] ; 4-byte Folded Reload subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_5 b LBB0_8 LBB0_4: adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _perror b LBB0_5 LBB0_5: ldur w0, [x29, #-16] bl _close adds w8, w0, #1 cset w8, ne tbnz w8, #0, LBB0_7 b LBB0_6 LBB0_6: adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _perror mov w0, #1 bl _exit LBB0_7: ldur w0, [x29, #-12] adrp x1, l_.str.4@PAGE add x1, x1, l_.str.4@PAGEOFF bl _fdopen str x0, [sp, #32] ldr x0, [sp, #32] ldur w8, [x29, #-36] ldur w9, [x29, #-36] add w9, w9, #1 mul w8, w8, w9 mov w9, #2 sdiv w10, w8, w9 mov x9, sp ; implicit-def: $x8 mov x8, x10 str x8, [x9] adrp x1, l_.str.5@PAGE add x1, x1, l_.str.5@PAGEOFF bl _fprintf b LBB0_11 LBB0_8: ldur w0, [x29, #-12] bl _close adds w8, w0, #1 cset w8, ne tbnz w8, #0, LBB0_10 b LBB0_9 LBB0_9: adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _perror mov w0, #1 bl _exit LBB0_10: ldur w0, [x29, #-16] adrp x1, l_.str.6@PAGE add x1, x1, l_.str.6@PAGEOFF bl _fdopen str x0, [sp, #24] ldr x0, [sp, #24] mov x9, sp add x8, sp, #20 str x8, [x9] adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF bl _fscanf ldr w9, [sp, #20] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf b LBB0_11 LBB0_11: ldur w8, [x29, #-20] str w8, [sp, #12] ; 4-byte Folded Spill ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_13 b LBB0_12 LBB0_12: bl ___stack_chk_fail LBB0_13: ldr w0, [sp, #12] ; 4-byte Folded Reload ldp x29, x30, [sp, #80] ; 16-byte Folded Reload add sp, sp, #96 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d" l_.str.1: ; @.str.1 .asciz "pipe()" l_.str.2: ; @.str.2 .asciz "fork()" l_.str.3: ; @.str.3 .asciz "close()" l_.str.4: ; @.str.4 .asciz "w" l_.str.5: ; @.str.5 .asciz "%d\n" l_.str.6: ; @.str.6 .asciz "r" .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, -20(%rbp) movl %edi, -24(%rbp) movq %rsi, -32(%rbp) leaq L_.str(%rip), %rdi leaq -36(%rbp), %rsi movb $0, %al callq _scanf leaq -16(%rbp), %rdi callq _pipe cmpl $-1, %eax jne LBB0_2 ## %bb.1: leaq L_.str.1(%rip), %rdi callq _perror movl $1, %edi callq _exit LBB0_2: callq _fork movl %eax, %ecx movl %ecx, -64(%rbp) ## 4-byte Spill subl $-1, %eax je LBB0_3 jmp LBB0_13 LBB0_13: movl -64(%rbp), %eax ## 4-byte Reload testl %eax, %eax je LBB0_4 jmp LBB0_7 LBB0_3: leaq L_.str.2(%rip), %rdi callq _perror LBB0_4: movl -16(%rbp), %edi callq _close cmpl $-1, %eax jne LBB0_6 ## %bb.5: leaq L_.str.3(%rip), %rdi callq _perror movl $1, %edi callq _exit LBB0_6: movl -12(%rbp), %edi leaq L_.str.4(%rip), %rsi callq _fdopen movq %rax, -48(%rbp) movq -48(%rbp), %rdi movl -36(%rbp), %eax movl -36(%rbp), %ecx addl $1, %ecx imull %ecx, %eax movl $2, %ecx cltd idivl %ecx movl %eax, %edx leaq L_.str.5(%rip), %rsi movb $0, %al callq _fprintf jmp LBB0_10 LBB0_7: movl -12(%rbp), %edi callq _close cmpl $-1, %eax jne LBB0_9 ## %bb.8: leaq L_.str.3(%rip), %rdi callq _perror movl $1, %edi callq _exit LBB0_9: movl -16(%rbp), %edi leaq L_.str.6(%rip), %rsi callq _fdopen movq %rax, -56(%rbp) movq -56(%rbp), %rdi leaq L_.str(%rip), %rsi leaq -60(%rbp), %rdx movb $0, %al callq _fscanf movl -60(%rbp), %esi leaq L_.str.5(%rip), %rdi movb $0, %al callq _printf LBB0_10: movl -20(%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_12 ## %bb.11: movl -68(%rbp), %eax ## 4-byte Reload addq $80, %rsp popq %rbp retq LBB0_12: 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 "pipe()" L_.str.2: ## @.str.2 .asciz "fork()" L_.str.3: ## @.str.3 .asciz "close()" L_.str.4: ## @.str.4 .asciz "w" L_.str.5: ## @.str.5 .asciz "%d\n" L_.str.6: ## @.str.6 .asciz "r" .subsections_via_symbols
the_stack_data/62638662.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] bl _get_int_from_user mov w9, #50 sdiv w8, w0, w9 mul w8, w8, w9 subs w8, w0, w8 str w8, [sp, #8] ldr w8, [sp, #8] subs w8, w8, #0 cset w8, ge tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: str wzr, [sp, #8] b LBB0_2 LBB0_2: ldr w8, [sp, #8] subs w8, w8, #12 cset w8, ge tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: mov w8, #72 str w8, [sp, #4] b LBB0_4 LBB0_4: ldr w8, [sp, #8] subs w8, w8, #11 cset w8, le tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: mov w8, #442 str w8, [sp, #4] b LBB0_6 LBB0_6: ldr w8, [sp, #4] add w8, w8, #32 str w8, [sp, #4] ldr w0, [sp, #4] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .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 _get_int_from_user movl $50, %ecx cltd idivl %ecx movl %edx, -8(%rbp) cmpl $0, -8(%rbp) jge LBB0_2 ## %bb.1: movl $0, -8(%rbp) LBB0_2: cmpl $12, -8(%rbp) jge LBB0_4 ## %bb.3: movl $72, -12(%rbp) LBB0_4: cmpl $11, -8(%rbp) jle LBB0_6 ## %bb.5: movl $442, -12(%rbp) ## imm = 0x1BA LBB0_6: movl -12(%rbp), %eax addl $32, %eax movl %eax, -12(%rbp) movl -12(%rbp), %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/43888165.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 x9, _x@PAGE ldr w8, [x9, _x@PAGEOFF] add w8, w8, #1 str w8, [x9, _x@PAGEOFF] str wzr, [sp, #8] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #8] subs w8, w8, #10 cset w8, ge tbnz w8, #0, LBB0_4 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 adrp x8, _x@PAGE ldr w8, [x8, _x@PAGEOFF] ldrsw x10, [sp, #8] adrp x9, _a@GOTPAGE ldr x9, [x9, _a@GOTPAGEOFF] str w8, [x9, x10, lsl #2] b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #8] add w8, w8, #1 str w8, [sp, #8] b LBB0_1 LBB0_4: ldr w8, [sp, #8] subs w9, w8, #1 adrp x8, _a@GOTPAGE ldr x8, [x8, _a@GOTPAGEOFF] ldr w8, [x8, w9, sxtw #2] str w8, [sp, #4] ldr w8, [sp, #4] subs w8, w8, #0 cset w8, lt mov w9, #0 str w9, [sp] ; 4-byte Folded Spill tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: ldr w8, [sp, #4] subs w8, w8, #9 cset w8, le str w8, [sp] ; 4-byte Folded Spill b LBB0_6 LBB0_6: ldr w8, [sp] ; 4-byte Folded Reload and w0, w8, #0x1 bl ___CRAB_assert ldr w0, [sp, #4] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .section __DATA,__data .globl _x ; @x .p2align 2 _x: .long 5 ; 0x5 .comm _a,40,2 ; @a .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) movl _x(%rip), %eax addl $1, %eax movl %eax, _x(%rip) movl $0, -8(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 cmpl $10, -8(%rbp) jge LBB0_4 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl _x(%rip), %edx movslq -8(%rbp), %rcx movq _a@GOTPCREL(%rip), %rax movl %edx, (%rax,%rcx,4) ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) jmp LBB0_1 LBB0_4: movl -8(%rbp), %eax subl $1, %eax movslq %eax, %rcx movq _a@GOTPCREL(%rip), %rax movl (%rax,%rcx,4), %eax movl %eax, -12(%rbp) xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $0, -12(%rbp) movb %al, -13(%rbp) ## 1-byte Spill jl LBB0_6 ## %bb.5: cmpl $9, -12(%rbp) setle %al movb %al, -13(%rbp) ## 1-byte Spill LBB0_6: movb -13(%rbp), %al ## 1-byte Reload andb $1, %al movzbl %al, %edi callq ___CRAB_assert movl -12(%rbp), %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __DATA,__data .globl _x ## @x .p2align 2 _x: .long 5 ## 0x5 .comm _a,40,4 ## @a .subsections_via_symbols
the_stack_data/176705386.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, _sock@GOTPAGE ldr x8, [x8, _sock@GOTPAGEOFF] str x8, [sp, #32] ; 8-byte Folded Spill adrp x8, ___darwin_check_fd_set_overflow@GOTPAGE ldr x8, [x8, ___darwin_check_fd_set_overflow@GOTPAGEOFF] subs x8, x8, #0 cset w8, ne str w8, [sp, #44] ; 4-byte Folded Spill adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] str x8, [sp, #48] ; 8-byte Folded Spill stur wzr, [x29, #-148] stur w0, [x29, #-152] stur x1, [x29, #-160] ldur w8, [x29, #-152] subs w8, w8, #2 cset w8, lt tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: ldur w8, [x29, #-152] subs w8, w8, #3 cset w8, le tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: ldr x8, [sp, #48] ; 8-byte Folded Reload ldr x0, [x8] ldur x8, [x29, #-160] ldr x8, [x8] mov x9, sp str x8, [x9] adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF bl _fprintf mov w0, #1 bl _exit LBB0_3: ldur x8, [x29, #-160] ldr x8, [x8, #8] stur x8, [x29, #-208] ldur w8, [x29, #-152] subs w8, w8, #3 cset w8, ne tbnz w8, #0, LBB0_5 b LBB0_4 LBB0_4: ldur x8, [x29, #-160] ldr x0, [x8, #16] bl _atoi sturh w0, [x29, #-162] b LBB0_6 LBB0_5: mov w8, #7 sturh w8, [x29, #-162] b LBB0_6 LBB0_6: mov w1, #2 mov x0, x1 mov w2, #17 bl _socket ldr x8, [sp, #32] ; 8-byte Folded Reload str w0, [x8] ldr w8, [x8] subs w8, w8, #0 cset w8, ge tbnz w8, #0, LBB0_8 b LBB0_7 LBB0_7: ldr x8, [sp, #48] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF bl _fprintf mov w0, #1 bl _exit LBB0_8: str xzr, [sp, #208] str xzr, [sp, #216] mov w8, #2 strb w8, [sp, #209] ldur x0, [x29, #-208] bl _inet_addr str w0, [sp, #212] b LBB0_9 LBB0_9: ldurh w0, [x29, #-162] bl __OSSwapInt16 and w8, w0, #0xffff str w8, [sp, #28] ; 4-byte Folded Spill b LBB0_10 LBB0_10: ldr x8, [sp, #32] ; 8-byte Folded Reload ldr w9, [sp, #28] ; 4-byte Folded Reload strh w9, [sp, #210] ldr w8, [x8] str w8, [sp, #204] stur xzr, [x29, #-184] stur xzr, [x29, #-176] mov w8, #2 sturb w8, [x29, #-183] stur wzr, [x29, #-180] b LBB0_11 LBB0_11: ldurh w0, [x29, #-162] bl __OSSwapInt16 and w8, w0, #0xffff str w8, [sp, #24] ; 4-byte Folded Spill b LBB0_12 LBB0_12: ldr x8, [sp, #32] ; 8-byte Folded Reload ldr w9, [sp, #24] ; 4-byte Folded Reload sub x1, x29, #184 sturh w9, [x29, #-182] ldr w0, [x8] mov w2, #16 bl _bind subs w8, w0, #0 cset w8, ge tbnz w8, #0, LBB0_14 b LBB0_13 LBB0_13: ldr x8, [sp, #48] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.2@PAGE add x1, x1, l_.str.2@PAGEOFF bl _fprintf mov w0, #1 bl _exit LBB0_14: adrp x8, _IOSignalHandler@PAGE add x8, x8, _IOSignalHandler@PAGEOFF stur x8, [x29, #-200] mov w8, #-1 stur w8, [x29, #-192] b LBB0_15 LBB0_15: sub x1, x29, #200 stur wzr, [x29, #-188] mov w0, #23 mov x2, #0 bl _sigaction subs w8, w0, #0 cset w8, ge tbnz w8, #0, LBB0_17 b LBB0_16 LBB0_16: ldr x8, [sp, #48] ; 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 LBB0_17: ldr x8, [sp, #32] ; 8-byte Folded Reload ldr w8, [x8] str w8, [sp, #20] ; 4-byte Folded Spill bl _getpid mov x10, x0 ldr w0, [sp, #20] ; 4-byte Folded Reload mov x9, sp ; implicit-def: $x8 mov x8, x10 str x8, [x9] mov w1, #6 bl _fcntl subs w8, w0, #0 cset w8, ge tbnz w8, #0, LBB0_19 b LBB0_18 LBB0_18: ldr x8, [sp, #48] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.5@PAGE add x1, x1, l_.str.5@PAGEOFF bl _fprintf mov w0, #1 bl _exit LBB0_19: ldr x8, [sp, #32] ; 8-byte Folded Reload ldr w0, [x8] mov x9, sp mov x8, #68 str x8, [x9] mov w1, #4 bl _fcntl subs w8, w0, #0 cset w8, ge tbnz w8, #0, LBB0_21 b LBB0_20 LBB0_20: ldr x8, [sp, #48] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.6@PAGE add x1, x1, l_.str.6@PAGEOFF bl _fprintf mov w0, #1 bl _exit LBB0_21: b LBB0_22 LBB0_22: ; =>This Inner Loop Header: Depth=1 add x0, sp, #76 str x0, [sp, #8] ; 8-byte Folded Spill mov w1, #0 mov x2, #128 bl _memset ldr x9, [sp, #8] ; 8-byte Folded Reload ldr w8, [sp, #44] ; 4-byte Folded Reload stur wzr, [x29, #-116] stur x9, [x29, #-128] ldur w10, [x29, #-116] ldur x9, [x29, #-128] stur w10, [x29, #-40] stur x9, [x29, #-48] tbz w8, #0, LBB0_24 b LBB0_23 LBB0_23: ; in Loop: Header=BB0_22 Depth=1 ldur w0, [x29, #-40] ldur x1, [x29, #-48] mov w2, #0 bl ___darwin_check_fd_set_overflow stur w0, [x29, #-36] b LBB0_25 LBB0_24: ; in Loop: Header=BB0_22 Depth=1 mov w8, #1 stur w8, [x29, #-36] b LBB0_25 LBB0_25: ; in Loop: Header=BB0_22 Depth=1 ldur w8, [x29, #-36] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_27 b LBB0_26 LBB0_26: ; in Loop: Header=BB0_22 Depth=1 ldursw x8, [x29, #-116] mov x11, #32 udiv x9, x8, x11 mul x9, x9, x11 subs x9, x8, x9 mov x8, #1 lsl x8, x8, x9 mov x10, x8 ldur x8, [x29, #-128] ldursw x9, [x29, #-116] udiv x9, x9, x11 add x9, x8, x9, lsl #2 ldr w8, [x9] orr w8, w8, w10 str w8, [x9] b LBB0_27 LBB0_27: ; in Loop: Header=BB0_22 Depth=1 ldr w8, [sp, #44] ; 4-byte Folded Reload ldr x9, [sp, #32] ; 8-byte Folded Reload ldr w9, [x9] stur w9, [x29, #-132] add x9, sp, #76 stur x9, [x29, #-144] ldur w10, [x29, #-132] ldur x9, [x29, #-144] stur w10, [x29, #-24] stur x9, [x29, #-32] tbz w8, #0, LBB0_29 b LBB0_28 LBB0_28: ; in Loop: Header=BB0_22 Depth=1 ldur w0, [x29, #-24] ldur x1, [x29, #-32] mov w2, #0 bl ___darwin_check_fd_set_overflow stur w0, [x29, #-20] b LBB0_30 LBB0_29: ; in Loop: Header=BB0_22 Depth=1 mov w8, #1 stur w8, [x29, #-20] b LBB0_30 LBB0_30: ; in Loop: Header=BB0_22 Depth=1 ldur w8, [x29, #-20] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_32 b LBB0_31 LBB0_31: ; in Loop: Header=BB0_22 Depth=1 ldursw x8, [x29, #-132] mov x11, #32 udiv x9, x8, x11 mul x9, x9, x11 subs x9, x8, x9 mov x8, #1 lsl x8, x8, x9 mov x10, x8 ldur x8, [x29, #-144] ldursw x9, [x29, #-132] udiv x9, x9, x11 add x9, x8, x9, lsl #2 ldr w8, [x9] orr w8, w8, w10 str w8, [x9] b LBB0_32 LBB0_32: ; in Loop: Header=BB0_22 Depth=1 add x4, sp, #56 mov x8, #2 str x8, [sp, #56] str wzr, [sp, #64] ldr w8, [sp, #204] add w0, w8, #1 add x1, sp, #76 mov x3, #0 mov x2, x3 bl _select subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB0_34 b LBB0_33 LBB0_33: ; in Loop: Header=BB0_22 Depth=1 b LBB0_22 LBB0_34: ; in Loop: Header=BB0_22 Depth=1 ldr w8, [sp, #44] ; 4-byte Folded Reload stur wzr, [x29, #-88] add x9, sp, #76 stur x9, [x29, #-96] ldur w10, [x29, #-88] ldur x9, [x29, #-96] stur w10, [x29, #-72] stur x9, [x29, #-80] tbz w8, #0, LBB0_36 b LBB0_35 LBB0_35: ; in Loop: Header=BB0_22 Depth=1 ldur w0, [x29, #-72] ldur x1, [x29, #-80] mov w2, #0 bl ___darwin_check_fd_set_overflow stur w0, [x29, #-68] b LBB0_37 LBB0_36: ; in Loop: Header=BB0_22 Depth=1 mov w8, #1 stur w8, [x29, #-68] b LBB0_37 LBB0_37: ; in Loop: Header=BB0_22 Depth=1 ldur w8, [x29, #-68] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_39 b LBB0_38 LBB0_38: ; in Loop: Header=BB0_22 Depth=1 ldur x8, [x29, #-96] ldursw x9, [x29, #-88] mov x11, #32 udiv x9, x9, x11 ldr w8, [x8, x9, lsl #2] ldursw x9, [x29, #-88] udiv x10, x9, x11 mul x10, x10, x11 subs x10, x9, x10 mov x9, #1 lsl x9, x9, x10 ; kill: def $w9 killed $w9 killed $x9 and w8, w8, w9 stur w8, [x29, #-84] b LBB0_40 LBB0_39: ; in Loop: Header=BB0_22 Depth=1 stur wzr, [x29, #-84] b LBB0_40 LBB0_40: ; in Loop: Header=BB0_22 Depth=1 ldur w8, [x29, #-84] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_44 b LBB0_41 LBB0_41: ; in Loop: Header=BB0_22 Depth=1 add x0, sp, #208 bl _SendEchoMessage subs w8, w0, #0 cset w8, ge tbnz w8, #0, LBB0_43 b LBB0_42 LBB0_42: b LBB0_55 LBB0_43: ; in Loop: Header=BB0_22 Depth=1 b LBB0_44 LBB0_44: ; in Loop: Header=BB0_22 Depth=1 ldr w8, [sp, #44] ; 4-byte Folded Reload ldr x9, [sp, #32] ; 8-byte Folded Reload ldr w9, [x9] stur w9, [x29, #-104] add x9, sp, #76 stur x9, [x29, #-112] ldur w10, [x29, #-104] ldur x9, [x29, #-112] stur w10, [x29, #-56] stur x9, [x29, #-64] tbz w8, #0, LBB0_46 b LBB0_45 LBB0_45: ; in Loop: Header=BB0_22 Depth=1 ldur w0, [x29, #-56] ldur x1, [x29, #-64] mov w2, #0 bl ___darwin_check_fd_set_overflow stur w0, [x29, #-52] b LBB0_47 LBB0_46: ; in Loop: Header=BB0_22 Depth=1 mov w8, #1 stur w8, [x29, #-52] b LBB0_47 LBB0_47: ; in Loop: Header=BB0_22 Depth=1 ldur w8, [x29, #-52] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_49 b LBB0_48 LBB0_48: ; in Loop: Header=BB0_22 Depth=1 ldur x8, [x29, #-112] ldursw x9, [x29, #-104] mov x11, #32 udiv x9, x9, x11 ldr w8, [x8, x9, lsl #2] ldursw x9, [x29, #-104] udiv x10, x9, x11 mul x10, x10, x11 subs x10, x9, x10 mov x9, #1 lsl x9, x9, x10 ; kill: def $w9 killed $w9 killed $x9 and w8, w8, w9 stur w8, [x29, #-100] b LBB0_50 LBB0_49: ; in Loop: Header=BB0_22 Depth=1 stur wzr, [x29, #-100] b LBB0_50 LBB0_50: ; in Loop: Header=BB0_22 Depth=1 ldur w8, [x29, #-100] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_54 b LBB0_51 LBB0_51: ; in Loop: Header=BB0_22 Depth=1 add x0, sp, #208 bl _ReceiveEchoMessage subs w8, w0, #0 cset w8, ge tbnz w8, #0, LBB0_53 b LBB0_52 LBB0_52: b LBB0_55 LBB0_53: ; in Loop: Header=BB0_22 Depth=1 b LBB0_54 LBB0_54: ; in Loop: Header=BB0_22 Depth=1 b LBB0_22 LBB0_55: ldr x8, [sp, #32] ; 8-byte Folded Reload ldr w0, [x8] bl _close mov w0, #0 bl _exit .cfi_endproc ; -- End function .p2align 2 ; -- Begin function _OSSwapInt16 __OSSwapInt16: ; @_OSSwapInt16 .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 strh w0, [sp, #14] ldrh w9, [sp, #14] ldrh w8, [sp, #14] asr w8, w8, #8 orr w8, w8, w9, lsl #8 and w0, w8, #0xffff add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _IOSignalHandler ; -- Begin function IOSignalHandler .p2align 2 _IOSignalHandler: ; @IOSignalHandler .cfi_startproc ; %bb.0: sub sp, sp, #352 .cfi_def_cfa_offset 352 stp x28, x27, [sp, #320] ; 16-byte Folded Spill stp x29, x30, [sp, #336] ; 16-byte Folded Spill add x29, sp, #336 .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 w0, [sp, #36] b LBB2_1 LBB2_1: ; =>This Inner Loop Header: Depth=1 add x5, sp, #32 mov w8, #16 str w8, [sp, #32] adrp x8, _sock@GOTPAGE ldr x8, [x8, _sock@GOTPAGEOFF] ldr w0, [x8] add x1, sp, #41 mov x2, #255 mov w3, #0 sub x4, x29, #40 bl _recvfrom mov x8, x0 str w8, [sp, #28] ldr w8, [sp, #28] subs w8, w8, #0 cset w8, ge tbnz w8, #0, LBB2_5 b LBB2_2 LBB2_2: ; in Loop: Header=BB2_1 Depth=1 bl ___error ldr w8, [x0] subs w8, w8, #35 cset w8, eq tbnz w8, #0, LBB2_4 b LBB2_3 LBB2_3: 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 LBB2_4: ; in Loop: Header=BB2_1 Depth=1 b LBB2_8 LBB2_5: ; in Loop: Header=BB2_1 Depth=1 sub x8, x29, #40 str x8, [sp, #16] ; 8-byte Folded Spill ldur w8, [x29, #-36] mov x0, x8 bl _inet_ntoa mov x8, sp str x0, [x8] adrp x0, l_.str.8@PAGE add x0, x0, l_.str.8@PAGEOFF bl _printf ldr x4, [sp, #16] ; 8-byte Folded Reload adrp x8, _sock@GOTPAGE ldr x8, [x8, _sock@GOTPAGEOFF] ldr w0, [x8] ldrsw x2, [sp, #28] add x1, sp, #41 mov w3, #0 mov w5, #16 bl _sendto mov x8, x0 str w8, [sp, #24] ldr w8, [sp, #28] ldr w9, [sp, #24] subs w8, w8, w9 cset w8, eq tbnz w8, #0, LBB2_7 b LBB2_6 LBB2_6: adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] ldr x0, [x8] adrp x1, l_.str.9@PAGE add x1, x1, l_.str.9@PAGEOFF bl _fprintf mov w0, #1 bl _exit LBB2_7: ; in Loop: Header=BB2_1 Depth=1 b LBB2_8 LBB2_8: ; in Loop: Header=BB2_1 Depth=1 b LBB2_9 LBB2_9: ; in Loop: Header=BB2_1 Depth=1 ldr w8, [sp, #28] subs w8, w8, #0 cset w8, ge tbnz w8, #0, LBB2_1 b LBB2_10 LBB2_10: 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_12 b LBB2_11 LBB2_11: bl ___stack_chk_fail LBB2_12: ldp x29, x30, [sp, #336] ; 16-byte Folded Reload ldp x28, x27, [sp, #320] ; 16-byte Folded Reload add sp, sp, #352 ret .cfi_endproc ; -- End function .globl _SendEchoMessage ; -- Begin function SendEchoMessage .p2align 2 _SendEchoMessage: ; @SendEchoMessage .cfi_startproc ; %bb.0: sub sp, sp, #336 .cfi_def_cfa_offset 336 stp x28, x27, [sp, #304] ; 16-byte Folded Spill stp x29, x30, [sp, #320] ; 16-byte Folded Spill add x29, sp, #320 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w27, -24 .cfi_offset w28, -32 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] str x0, [sp, #24] adrp x8, ___stdinp@GOTPAGE ldr x8, [x8, ___stdinp@GOTPAGEOFF] ldr x2, [x8] add x0, sp, #40 mov w1, #256 bl _fgets subs x8, x0, #0 cset w8, ne tbnz w8, #0, LBB3_2 b LBB3_1 LBB3_1: mov w8, #-1 str w8, [sp, #36] b LBB3_7 LBB3_2: add x0, sp, #40 bl _strlen mov x8, x0 str w8, [sp, #20] ldr w8, [sp, #20] subs w8, w8, #1 cset w8, ge tbnz w8, #0, LBB3_4 b LBB3_3 LBB3_3: adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] ldr x0, [x8] adrp x1, l_.str.10@PAGE add x1, x1, l_.str.10@PAGEOFF bl _fprintf mov w8, #-1 str w8, [sp, #36] b LBB3_7 LBB3_4: adrp x8, _sock@GOTPAGE ldr x8, [x8, _sock@GOTPAGEOFF] ldr w0, [x8] ldrsw x2, [sp, #20] ldr x4, [sp, #24] add x1, sp, #40 mov w3, #0 mov w5, #16 bl _sendto mov x8, x0 str w8, [sp, #16] ldr w8, [sp, #20] ldr w9, [sp, #16] subs w8, w8, w9 cset w8, eq tbnz w8, #0, LBB3_6 b LBB3_5 LBB3_5: adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] ldr x0, [x8] adrp x1, l_.str.11@PAGE add x1, x1, l_.str.11@PAGEOFF bl _fprintf mov w8, #-1 str w8, [sp, #36] b LBB3_7 LBB3_6: str wzr, [sp, #36] b LBB3_7 LBB3_7: 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, LBB3_9 b LBB3_8 LBB3_8: bl ___stack_chk_fail LBB3_9: ldr w0, [sp, #12] ; 4-byte Folded Reload ldp x29, x30, [sp, #320] ; 16-byte Folded Reload ldp x28, x27, [sp, #304] ; 16-byte Folded Reload add sp, sp, #336 ret .cfi_endproc ; -- End function .globl _ReceiveEchoMessage ; -- Begin function ReceiveEchoMessage .p2align 2 _ReceiveEchoMessage: ; @ReceiveEchoMessage .cfi_startproc ; %bb.0: sub sp, sp, #352 .cfi_def_cfa_offset 352 stp x28, x27, [sp, #320] ; 16-byte Folded Spill stp x29, x30, [sp, #336] ; 16-byte Folded Spill add x29, sp, #336 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w27, -24 .cfi_offset w28, -32 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] str x0, [sp, #24] add x5, sp, #20 mov w8, #16 str w8, [sp, #20] adrp x8, _sock@GOTPAGE ldr x8, [x8, _sock@GOTPAGEOFF] ldr w0, [x8] add x1, sp, #40 mov x2, #255 mov w3, #0 sub x4, x29, #40 bl _recvfrom mov x8, x0 str w8, [sp, #16] ldr w8, [sp, #16] subs w8, w8, #0 cset w8, ge tbnz w8, #0, LBB4_2 b LBB4_1 LBB4_1: 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 w8, #-1 str w8, [sp, #36] b LBB4_5 LBB4_2: ldur w8, [x29, #-36] ldr x9, [sp, #24] ldr w9, [x9, #4] subs w8, w8, w9 cset w8, eq tbnz w8, #0, LBB4_4 b LBB4_3 LBB4_3: adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] ldr x0, [x8] adrp x1, l_.str.12@PAGE add x1, x1, l_.str.12@PAGEOFF bl _fprintf mov w8, #-1 str w8, [sp, #36] b LBB4_5 LBB4_4: ldrsw x10, [sp, #16] add x8, sp, #40 mov x9, x8 add x9, x9, x10 strb wzr, [x9] mov x9, sp str x8, [x9] adrp x0, l_.str.13@PAGE add x0, x0, l_.str.13@PAGEOFF bl _printf str wzr, [sp, #36] b LBB4_5 LBB4_5: 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, LBB4_7 b LBB4_6 LBB4_6: bl ___stack_chk_fail LBB4_7: ldr w0, [sp, #12] ; 4-byte Folded Reload ldp x29, x30, [sp, #336] ; 16-byte Folded Reload ldp x28, x27, [sp, #320] ; 16-byte Folded Reload add sp, sp, #352 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Usage: %s <Server IP> [<Echo Port>]\n" .comm _sock,4,2 ; @sock l_.str.1: ; @.str.1 .asciz "socket() failed\n" l_.str.2: ; @.str.2 .asciz "bind() failed\n" l_.str.3: ; @.str.3 .asciz "sigfillset() failed\n" l_.str.4: ; @.str.4 .asciz "sigaction() failed\n" l_.str.5: ; @.str.5 .asciz "Unable to set process owner to us\n" l_.str.6: ; @.str.6 .asciz "Unable to put the sock into nonblocking/async mode\n" l_.str.7: ; @.str.7 .asciz "recvfrom() failed\n" l_.str.8: ; @.str.8 .asciz "Handling client %s\n" l_.str.9: ; @.str.9 .asciz "sendto() sent a differrent number of bytes than expected\n" l_.str.10: ; @.str.10 .asciz "No input string.\n" l_.str.11: ; @.str.11 .asciz "sendto() sent a different number of bytes than expected\n" l_.str.12: ; @.str.12 .asciz "Error: received a packet from unknown source.\n" l_.str.13: ; @.str.13 .asciz "Received: %s\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $400, %rsp ## imm = 0x190 movl $0, -132(%rbp) movl %edi, -136(%rbp) movq %rsi, -144(%rbp) cmpl $2, -136(%rbp) jl LBB0_2 ## %bb.1: cmpl $3, -136(%rbp) jle LBB0_3 LBB0_2: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movq -144(%rbp), %rax movq (%rax), %rdx leaq L_.str(%rip), %rsi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _fprintf movl $1, %edi callq _exit LBB0_3: movq -144(%rbp), %rax movq 8(%rax), %rax movq %rax, -192(%rbp) cmpl $3, -136(%rbp) jne LBB0_5 ## %bb.4: movq -144(%rbp), %rax movq 16(%rax), %rdi callq _atoi ## kill: def $ax killed $ax killed $eax movw %ax, -146(%rbp) jmp LBB0_6 LBB0_5: movw $7, -146(%rbp) LBB0_6: movl $2, %esi movl $17, %edx movl %esi, %edi callq _socket movl %eax, %ecx movq _sock@GOTPCREL(%rip), %rax movl %ecx, (%rax) movq _sock@GOTPCREL(%rip), %rax cmpl $0, (%rax) jge LBB0_8 ## %bb.7: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.1(%rip), %rsi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _fprintf movl $1, %edi callq _exit LBB0_8: leaq -208(%rbp), %rdi xorl %esi, %esi movl $16, %edx callq _memset movb $2, -207(%rbp) movq -192(%rbp), %rdi callq _inet_addr movl %eax, -204(%rbp) ## %bb.9: movzwl -146(%rbp), %edi callq __OSSwapInt16 movzwl %ax, %eax movl %eax, -372(%rbp) ## 4-byte Spill ## %bb.10: movl -372(%rbp), %eax ## 4-byte Reload movw %ax, -206(%rbp) movq _sock@GOTPCREL(%rip), %rax movl (%rax), %eax movl %eax, -212(%rbp) leaq -168(%rbp), %rdi xorl %esi, %esi movl $16, %edx callq _memset movb $2, -167(%rbp) movl $0, -164(%rbp) ## %bb.11: movzwl -146(%rbp), %edi callq __OSSwapInt16 movzwl %ax, %eax movl %eax, -376(%rbp) ## 4-byte Spill ## %bb.12: movl -376(%rbp), %eax ## 4-byte Reload movw %ax, -166(%rbp) movq _sock@GOTPCREL(%rip), %rax movl (%rax), %edi leaq -168(%rbp), %rsi movl $16, %edx callq _bind cmpl $0, %eax jge LBB0_14 ## %bb.13: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.2(%rip), %rsi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _fprintf movl $1, %edi callq _exit LBB0_14: leaq _IOSignalHandler(%rip), %rax movq %rax, -184(%rbp) movl $-1, -176(%rbp) ## %bb.15: movl $0, -172(%rbp) movl $23, %edi leaq -184(%rbp), %rsi xorl %eax, %eax movl %eax, %edx callq _sigaction cmpl $0, %eax jge LBB0_17 ## %bb.16: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.4(%rip), %rsi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _fprintf movl $1, %edi callq _exit LBB0_17: movq _sock@GOTPCREL(%rip), %rax movl (%rax), %eax movl %eax, -380(%rbp) ## 4-byte Spill callq _getpid movl -380(%rbp), %edi ## 4-byte Reload movl %eax, %edx movl $6, %esi movb $0, %al callq _fcntl cmpl $0, %eax jge LBB0_19 ## %bb.18: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.5(%rip), %rsi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _fprintf movl $1, %edi callq _exit LBB0_19: movq _sock@GOTPCREL(%rip), %rax movl (%rax), %edi movl $4, %esi movl $68, %edx movb $0, %al callq _fcntl cmpl $0, %eax jge LBB0_21 ## %bb.20: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.6(%rip), %rsi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _fprintf movl $1, %edi callq _exit LBB0_21: jmp LBB0_22 LBB0_22: ## =>This Inner Loop Header: Depth=1 xorps %xmm0, %xmm0 movaps %xmm0, -400(%rbp) ## 16-byte Spill movaps %xmm0, -240(%rbp) movaps %xmm0, -256(%rbp) movaps %xmm0, -272(%rbp) movaps %xmm0, -288(%rbp) movaps %xmm0, -304(%rbp) movaps %xmm0, -320(%rbp) movaps %xmm0, -336(%rbp) movaps %xmm0, -352(%rbp) movl $0, -100(%rbp) leaq -352(%rbp), %rax movq %rax, -112(%rbp) movl -100(%rbp), %ecx movq -112(%rbp), %rax movl %ecx, -24(%rbp) movq %rax, -32(%rbp) movq ___darwin_check_fd_set_overflow@GOTPCREL(%rip), %rax testq %rax, %rax je LBB0_24 jmp LBB0_23 LBB0_23: ## in Loop: Header=BB0_22 Depth=1 movl -24(%rbp), %edi movq -32(%rbp), %rsi xorl %edx, %edx callq ___darwin_check_fd_set_overflow movl %eax, -20(%rbp) jmp LBB0_25 LBB0_24: ## in Loop: Header=BB0_22 Depth=1 movl $1, -20(%rbp) LBB0_25: ## in Loop: Header=BB0_22 Depth=1 cmpl $0, -20(%rbp) je LBB0_27 ## %bb.26: ## in Loop: Header=BB0_22 Depth=1 movslq -100(%rbp), %rcx andq $31, %rcx movl $1, %eax ## kill: def $cl killed $rcx shlq %cl, %rax movl %eax, %edx movq -112(%rbp), %rax movslq -100(%rbp), %rcx shrq $5, %rcx orl (%rax,%rcx,4), %edx movl %edx, (%rax,%rcx,4) LBB0_27: ## in Loop: Header=BB0_22 Depth=1 movq _sock@GOTPCREL(%rip), %rax movl (%rax), %eax movl %eax, -116(%rbp) leaq -352(%rbp), %rax movq %rax, -128(%rbp) movl -116(%rbp), %ecx movq -128(%rbp), %rax movl %ecx, -8(%rbp) movq %rax, -16(%rbp) movq ___darwin_check_fd_set_overflow@GOTPCREL(%rip), %rax testq %rax, %rax je LBB0_29 jmp LBB0_28 LBB0_28: ## in Loop: Header=BB0_22 Depth=1 movl -8(%rbp), %edi movq -16(%rbp), %rsi xorl %edx, %edx callq ___darwin_check_fd_set_overflow movl %eax, -4(%rbp) jmp LBB0_30 LBB0_29: ## in Loop: Header=BB0_22 Depth=1 movl $1, -4(%rbp) LBB0_30: ## in Loop: Header=BB0_22 Depth=1 cmpl $0, -4(%rbp) je LBB0_32 ## %bb.31: ## in Loop: Header=BB0_22 Depth=1 movslq -116(%rbp), %rcx andq $31, %rcx movl $1, %eax ## kill: def $cl killed $rcx shlq %cl, %rax movl %eax, %edx movq -128(%rbp), %rax movslq -116(%rbp), %rcx shrq $5, %rcx orl (%rax,%rcx,4), %edx movl %edx, (%rax,%rcx,4) LBB0_32: ## in Loop: Header=BB0_22 Depth=1 movq $2, -368(%rbp) movl $0, -360(%rbp) movl -212(%rbp), %edi addl $1, %edi leaq -352(%rbp), %rsi xorl %eax, %eax movl %eax, %ecx leaq -368(%rbp), %r8 movq %rcx, %rdx callq _select$1050 cmpl $0, %eax jne LBB0_34 ## %bb.33: ## in Loop: Header=BB0_22 Depth=1 jmp LBB0_22 LBB0_34: ## in Loop: Header=BB0_22 Depth=1 movl $0, -72(%rbp) leaq -352(%rbp), %rax movq %rax, -80(%rbp) movl -72(%rbp), %ecx movq -80(%rbp), %rax movl %ecx, -56(%rbp) movq %rax, -64(%rbp) movq ___darwin_check_fd_set_overflow@GOTPCREL(%rip), %rax testq %rax, %rax je LBB0_36 jmp LBB0_35 LBB0_35: ## in Loop: Header=BB0_22 Depth=1 movl -56(%rbp), %edi movq -64(%rbp), %rsi xorl %edx, %edx callq ___darwin_check_fd_set_overflow movl %eax, -52(%rbp) jmp LBB0_37 LBB0_36: ## in Loop: Header=BB0_22 Depth=1 movl $1, -52(%rbp) LBB0_37: ## in Loop: Header=BB0_22 Depth=1 cmpl $0, -52(%rbp) je LBB0_39 ## %bb.38: ## in Loop: Header=BB0_22 Depth=1 movq -80(%rbp), %rax movslq -72(%rbp), %rcx shrq $5, %rcx movl (%rax,%rcx,4), %eax movslq -72(%rbp), %rcx andq $31, %rcx movl $1, %edx ## kill: def $cl killed $rcx shlq %cl, %rdx movq %rdx, %rcx ## kill: def $ecx killed $ecx killed $rcx andl %ecx, %eax movl %eax, -68(%rbp) jmp LBB0_40 LBB0_39: ## in Loop: Header=BB0_22 Depth=1 movl $0, -68(%rbp) LBB0_40: ## in Loop: Header=BB0_22 Depth=1 cmpl $0, -68(%rbp) je LBB0_44 ## %bb.41: ## in Loop: Header=BB0_22 Depth=1 leaq -208(%rbp), %rdi callq _SendEchoMessage cmpl $0, %eax jge LBB0_43 ## %bb.42: jmp LBB0_55 LBB0_43: ## in Loop: Header=BB0_22 Depth=1 jmp LBB0_44 LBB0_44: ## in Loop: Header=BB0_22 Depth=1 movq _sock@GOTPCREL(%rip), %rax movl (%rax), %eax movl %eax, -88(%rbp) leaq -352(%rbp), %rax movq %rax, -96(%rbp) movl -88(%rbp), %ecx movq -96(%rbp), %rax movl %ecx, -40(%rbp) movq %rax, -48(%rbp) movq ___darwin_check_fd_set_overflow@GOTPCREL(%rip), %rax testq %rax, %rax je LBB0_46 jmp LBB0_45 LBB0_45: ## in Loop: Header=BB0_22 Depth=1 movl -40(%rbp), %edi movq -48(%rbp), %rsi xorl %edx, %edx callq ___darwin_check_fd_set_overflow movl %eax, -36(%rbp) jmp LBB0_47 LBB0_46: ## in Loop: Header=BB0_22 Depth=1 movl $1, -36(%rbp) LBB0_47: ## in Loop: Header=BB0_22 Depth=1 cmpl $0, -36(%rbp) je LBB0_49 ## %bb.48: ## in Loop: Header=BB0_22 Depth=1 movq -96(%rbp), %rax movslq -88(%rbp), %rcx shrq $5, %rcx movl (%rax,%rcx,4), %eax movslq -88(%rbp), %rcx andq $31, %rcx movl $1, %edx ## kill: def $cl killed $rcx shlq %cl, %rdx movq %rdx, %rcx ## kill: def $ecx killed $ecx killed $rcx andl %ecx, %eax movl %eax, -84(%rbp) jmp LBB0_50 LBB0_49: ## in Loop: Header=BB0_22 Depth=1 movl $0, -84(%rbp) LBB0_50: ## in Loop: Header=BB0_22 Depth=1 cmpl $0, -84(%rbp) je LBB0_54 ## %bb.51: ## in Loop: Header=BB0_22 Depth=1 leaq -208(%rbp), %rdi callq _ReceiveEchoMessage cmpl $0, %eax jge LBB0_53 ## %bb.52: jmp LBB0_55 LBB0_53: ## in Loop: Header=BB0_22 Depth=1 jmp LBB0_54 LBB0_54: ## in Loop: Header=BB0_22 Depth=1 jmp LBB0_22 LBB0_55: movq _sock@GOTPCREL(%rip), %rax movl (%rax), %edi callq _close xorl %edi, %edi callq _exit .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function _OSSwapInt16 __OSSwapInt16: ## @_OSSwapInt16 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movw %di, %ax movw %ax, -2(%rbp) movzwl -2(%rbp), %eax shll $8, %eax movzwl -2(%rbp), %ecx sarl $8, %ecx orl %ecx, %eax ## kill: def $ax killed $ax killed $eax movzwl %ax, %eax popq %rbp retq .cfi_endproc ## -- End function .globl _IOSignalHandler ## -- Begin function IOSignalHandler .p2align 4, 0x90 _IOSignalHandler: ## @IOSignalHandler .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $304, %rsp ## imm = 0x130 movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl %edi, -292(%rbp) LBB2_1: ## =>This Inner Loop Header: Depth=1 movl $16, -296(%rbp) movq _sock@GOTPCREL(%rip), %rax movl (%rax), %edi leaq -288(%rbp), %rsi leaq -24(%rbp), %r8 movl $255, %edx xorl %ecx, %ecx leaq -296(%rbp), %r9 callq _recvfrom ## kill: def $eax killed $eax killed $rax movl %eax, -300(%rbp) cmpl $0, -300(%rbp) jge LBB2_5 ## %bb.2: ## in Loop: Header=BB2_1 Depth=1 callq ___error cmpl $35, (%rax) je LBB2_4 ## %bb.3: 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 LBB2_4: ## in Loop: Header=BB2_1 Depth=1 jmp LBB2_8 LBB2_5: ## in Loop: Header=BB2_1 Depth=1 movl -20(%rbp), %edi callq _inet_ntoa movq %rax, %rsi leaq L_.str.8(%rip), %rdi movb $0, %al callq _printf movq _sock@GOTPCREL(%rip), %rax movl (%rax), %edi leaq -288(%rbp), %rsi movslq -300(%rbp), %rdx leaq -24(%rbp), %r8 xorl %ecx, %ecx movl $16, %r9d callq _sendto ## kill: def $eax killed $eax killed $rax movl %eax, -304(%rbp) movl -300(%rbp), %eax cmpl -304(%rbp), %eax je LBB2_7 ## %bb.6: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.9(%rip), %rsi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _fprintf movl $1, %edi callq _exit LBB2_7: ## in Loop: Header=BB2_1 Depth=1 jmp LBB2_8 LBB2_8: ## in Loop: Header=BB2_1 Depth=1 jmp LBB2_9 LBB2_9: ## in Loop: Header=BB2_1 Depth=1 cmpl $0, -300(%rbp) jge LBB2_1 ## %bb.10: movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB2_12 ## %bb.11: addq $304, %rsp ## imm = 0x130 popq %rbp retq LBB2_12: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _SendEchoMessage ## -- Begin function SendEchoMessage .p2align 4, 0x90 _SendEchoMessage: ## @SendEchoMessage .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $304, %rsp ## imm = 0x130 movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movq %rdi, -288(%rbp) leaq -272(%rbp), %rdi movq ___stdinp@GOTPCREL(%rip), %rax movq (%rax), %rdx movl $256, %esi ## imm = 0x100 callq _fgets cmpq $0, %rax jne LBB3_2 ## %bb.1: movl $-1, -276(%rbp) jmp LBB3_7 LBB3_2: leaq -272(%rbp), %rdi callq _strlen ## kill: def $eax killed $eax killed $rax movl %eax, -292(%rbp) cmpl $1, -292(%rbp) jge LBB3_4 ## %bb.3: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.10(%rip), %rsi movb $0, %al callq _fprintf movl $-1, -276(%rbp) jmp LBB3_7 LBB3_4: movq _sock@GOTPCREL(%rip), %rax movl (%rax), %edi leaq -272(%rbp), %rsi movslq -292(%rbp), %rdx movq -288(%rbp), %r8 xorl %ecx, %ecx movl $16, %r9d callq _sendto ## kill: def $eax killed $eax killed $rax movl %eax, -296(%rbp) movl -292(%rbp), %eax cmpl -296(%rbp), %eax je LBB3_6 ## %bb.5: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.11(%rip), %rsi movb $0, %al callq _fprintf movl $-1, -276(%rbp) jmp LBB3_7 LBB3_6: movl $0, -276(%rbp) LBB3_7: movl -276(%rbp), %eax movl %eax, -300(%rbp) ## 4-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB3_9 ## %bb.8: movl -300(%rbp), %eax ## 4-byte Reload addq $304, %rsp ## imm = 0x130 popq %rbp retq LBB3_9: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _ReceiveEchoMessage ## -- Begin function ReceiveEchoMessage .p2align 4, 0x90 _ReceiveEchoMessage: ## @ReceiveEchoMessage .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $320, %rsp ## imm = 0x140 movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movq %rdi, -304(%rbp) movl $16, -308(%rbp) movq _sock@GOTPCREL(%rip), %rax movl (%rax), %edi leaq -288(%rbp), %rsi leaq -24(%rbp), %r8 movl $255, %edx xorl %ecx, %ecx leaq -308(%rbp), %r9 callq _recvfrom ## kill: def $eax killed $eax killed $rax movl %eax, -312(%rbp) cmpl $0, -312(%rbp) jge LBB4_2 ## %bb.1: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.7(%rip), %rsi movb $0, %al callq _fprintf movl $-1, -292(%rbp) jmp LBB4_5 LBB4_2: movl -20(%rbp), %eax movq -304(%rbp), %rcx cmpl 4(%rcx), %eax je LBB4_4 ## %bb.3: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.12(%rip), %rsi movb $0, %al callq _fprintf movl $-1, -292(%rbp) jmp LBB4_5 LBB4_4: movslq -312(%rbp), %rax movb $0, -288(%rbp,%rax) leaq -288(%rbp), %rsi leaq L_.str.13(%rip), %rdi movb $0, %al callq _printf movl $0, -292(%rbp) LBB4_5: movl -292(%rbp), %eax movl %eax, -316(%rbp) ## 4-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB4_7 ## %bb.6: movl -316(%rbp), %eax ## 4-byte Reload addq $320, %rsp ## imm = 0x140 popq %rbp retq LBB4_7: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Usage: %s <Server IP> [<Echo Port>]\n" .comm _sock,4,2 ## @sock L_.str.1: ## @.str.1 .asciz "socket() failed\n" L_.str.2: ## @.str.2 .asciz "bind() failed\n" L_.str.3: ## @.str.3 .asciz "sigfillset() failed\n" L_.str.4: ## @.str.4 .asciz "sigaction() failed\n" L_.str.5: ## @.str.5 .asciz "Unable to set process owner to us\n" L_.str.6: ## @.str.6 .asciz "Unable to put the sock into nonblocking/async mode\n" L_.str.7: ## @.str.7 .asciz "recvfrom() failed\n" L_.str.8: ## @.str.8 .asciz "Handling client %s\n" L_.str.9: ## @.str.9 .asciz "sendto() sent a differrent number of bytes than expected\n" L_.str.10: ## @.str.10 .asciz "No input string.\n" L_.str.11: ## @.str.11 .asciz "sendto() sent a different number of bytes than expected\n" L_.str.12: ## @.str.12 .asciz "Error: received a packet from unknown source.\n" L_.str.13: ## @.str.13 .asciz "Received: %s\n" .subsections_via_symbols
the_stack_data/3262920.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 0x4104f28000000000 ; double 171600 lCPI0_1: .quad 0x410e780000000000 ; double 249600 lCPI0_2: .quad 0x4115e64000000000 ; double 358800 .section __TEXT,__text,regular,pure_instructions .globl _main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #0 str w8, [sp, #8] ; 4-byte Folded Spill stur wzr, [x29, #-4] mov x8, sp adrp x9, lCPI0_2@PAGE ldr d0, [x9, lCPI0_2@PAGEOFF] str d0, [x8] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov x8, sp adrp x9, lCPI0_1@PAGE ldr d0, [x9, lCPI0_1@PAGEOFF] str d0, [x8] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf mov x8, sp adrp x9, lCPI0_0@PAGE ldr d0, [x9, lCPI0_0@PAGEOFF] str d0, [x8] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf ldr w0, [sp, #8] ; 4-byte Folded Reload ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "O primeiro ganhador recebera: R$%.2f\n" l_.str.1: ; @.str.1 .asciz "O segundo ganhador recebera: R$%.2f\n" l_.str.2: ; @.str.2 .asciz "O terceiro ganhador recebera: R$%.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 0x4104f28000000000 ## double 171600 LCPI0_1: .quad 0x410e780000000000 ## double 249600 LCPI0_2: .quad 0x4115e64000000000 ## double 358800 .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 movsd LCPI0_2(%rip), %xmm0 ## xmm0 = mem[0],zero movb $1, %al callq _printf leaq L_.str.1(%rip), %rdi movsd LCPI0_1(%rip), %xmm0 ## xmm0 = mem[0],zero movb $1, %al callq _printf leaq L_.str.2(%rip), %rdi movsd LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero 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 "O primeiro ganhador recebera: R$%.2f\n" L_.str.1: ## @.str.1 .asciz "O segundo ganhador recebera: R$%.2f\n" L_.str.2: ## @.str.2 .asciz "O terceiro ganhador recebera: R$%.2f\n" .subsections_via_symbols
the_stack_data/99089.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _bar ; -- Begin function bar .p2align 2 _bar: ; @bar .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] ldr x0, [sp, #8] add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _foo ; -- Begin function foo .p2align 2 _foo: ; @foo .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 sub x0, x29, #16 sub x8, x29, #8 stur x8, [x29, #-16] bl _bar str x0, [sp, #8] ldr x8, [sp, #8] str x8, [sp, #16] ldr x8, [sp, #16] ldr x8, [x8] str x8, [sp, #24] ldr x9, [sp, #24] adrp x8, _i@GOTPAGE ldr x8, [x8, _i@GOTPAGEOFF] str x8, [x9] ldur x8, [x29, #-8] str wzr, [x8] ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] adrp x9, _i@GOTPAGE ldr x9, [x9, _i@GOTPAGEOFF] str x9, [sp] ; 8-byte Folded Spill mov w8, #1 str w8, [x9] bl _foo ldr x8, [sp] ; 8-byte Folded Reload ldr w8, [x8] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB2_2 b LBB2_1 LBB2_1: bl _abort LBB2_2: mov w0, #0 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .comm _i,4,2 ; @i .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _bar ## -- Begin function bar .p2align 4, 0x90 _bar: ## @bar .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) movq -8(%rbp), %rax popq %rbp retq .cfi_endproc ## -- End function .globl _foo ## -- Begin function foo .p2align 4, 0x90 _foo: ## @foo .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp leaq -8(%rbp), %rax movq %rax, -16(%rbp) leaq -16(%rbp), %rdi callq _bar movq %rax, -40(%rbp) movq -40(%rbp), %rax movq %rax, -32(%rbp) movq -32(%rbp), %rax movq (%rax), %rax movq %rax, -24(%rbp) movq -24(%rbp), %rax movq _i@GOTPCREL(%rip), %rcx movq %rcx, (%rax) movq -8(%rbp), %rax movl $0, (%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 $16, %rsp movl $0, -4(%rbp) movq _i@GOTPCREL(%rip), %rax movl $1, (%rax) callq _foo movq _i@GOTPCREL(%rip), %rax cmpl $0, (%rax) je LBB2_2 ## %bb.1: callq _abort LBB2_2: xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .comm _i,4,2 ## @i .subsections_via_symbols
the_stack_data/98574300.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 add x8, sp, #8 str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf ldr w8, [sp, #8] mov w10, #2 sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: ldr w9, [sp, #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: ldr w9, [sp, #8] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf b LBB0_3 LBB0_3: mov w0, #0 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Enter an integer: " l_.str.1: ; @.str.1 .asciz "%d" l_.str.2: ; @.str.2 .asciz "%d is even." l_.str.3: ; @.str.3 .asciz "%d is odd." .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) leaq L_.str(%rip), %rdi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi leaq -8(%rbp), %rsi movb $0, %al callq _scanf movl -8(%rbp), %eax movl $2, %ecx cltd idivl %ecx cmpl $0, %edx jne 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 -8(%rbp), %esi leaq L_.str.3(%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 "Enter an integer: " L_.str.1: ## @.str.1 .asciz "%d" L_.str.2: ## @.str.2 .asciz "%d is even." L_.str.3: ## @.str.3 .asciz "%d is odd." .subsections_via_symbols
the_stack_data/994574.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __TEXT,__const .globl _cl_build_version ; @cl_build_version _cl_build_version: .asciz "eternal" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __TEXT,__const .globl _cl_build_version ## @cl_build_version _cl_build_version: .asciz "eternal" .subsections_via_symbols
the_stack_data/116568.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: 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 _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 xorl %eax, %eax popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/232956450.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _strfilter1 ; -- Begin function strfilter1 .p2align 2 _strfilter1: ; @strfilter1 .cfi_startproc ; %bb.0: stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill .cfi_def_cfa_offset 16 mov x29, sp .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 sub sp, sp, #96 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] stur x0, [x29, #-16] stur x1, [x29, #-24] ldur x0, [x29, #-16] bl _strlen add x8, x0, #1 mov x9, sp stur x9, [x29, #-32] lsr x9, x8, #0 add x9, x9, #15 and x9, x9, #0xfffffffffffffff0 stur x9, [x29, #-72] ; 8-byte Folded Spill adrp x16, ___chkstk_darwin@GOTPAGE ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF] blr x16 ldur x10, [x29, #-72] ; 8-byte Folded Reload mov x9, sp subs x9, x9, x10 mov sp, x9 stur x9, [x29, #-64] ; 8-byte Folded Spill stur x8, [x29, #-40] stur wzr, [x29, #-44] stur wzr, [x29, #-48] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldursw x8, [x29, #-48] stur x8, [x29, #-80] ; 8-byte Folded Spill ldur x0, [x29, #-16] bl _strlen ldur x8, [x29, #-80] ; 8-byte Folded Reload subs x8, x8, x0 cset w8, hs tbnz w8, #0, LBB0_6 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldur x0, [x29, #-24] ldur x8, [x29, #-16] ldursw x9, [x29, #-48] ldrsb w1, [x8, x9] bl _strchr stur x0, [x29, #-56] ldur x8, [x29, #-56] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldur x9, [x29, #-64] ; 8-byte Folded Reload ldur x8, [x29, #-16] ldursw x10, [x29, #-48] add x8, x8, x10 ldrb w8, [x8] ldursw x10, [x29, #-44] mov x11, x10 add w11, w11, #1 stur w11, [x29, #-44] add x9, x9, x10 strb w8, [x9] 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, #-48] add w8, w8, #1 stur w8, [x29, #-48] b LBB0_1 LBB0_6: ldur x0, [x29, #-64] ; 8-byte Folded Reload ldursw x8, [x29, #-44] add x8, x0, x8 strb wzr, [x8] bl _strdup stur x0, [x29, #-96] ; 8-byte Folded Spill ldur x8, [x29, #-32] stur x8, [x29, #-88] ; 8-byte Folded Spill ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_8 b LBB0_7 LBB0_7: bl ___stack_chk_fail LBB0_8: ldur x0, [x29, #-96] ; 8-byte Folded Reload ldur x8, [x29, #-88] ; 8-byte Folded Reload mov sp, x8 mov sp, x29 ldp x29, x30, [sp], #16 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .globl _strfilter2 ; -- Begin function strfilter2 .p2align 2 _strfilter2: ; @strfilter2 .cfi_startproc ; %bb.0: stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill .cfi_def_cfa_offset 16 mov x29, sp .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 sub sp, sp, #112 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] stur x0, [x29, #-16] stur x1, [x29, #-24] ldur x0, [x29, #-16] bl _strlen add x8, x0, #1 stur x8, [x29, #-80] ; 8-byte Folded Spill mov x9, sp stur x9, [x29, #-32] lsr x8, x8, #0 add x8, x8, #15 and x9, x8, #0xfffffffffffffff0 stur x9, [x29, #-88] ; 8-byte Folded Spill adrp x16, ___chkstk_darwin@GOTPAGE ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF] blr x16 ldur x10, [x29, #-88] ; 8-byte Folded Reload ldur x9, [x29, #-80] ; 8-byte Folded Reload mov x8, sp subs x8, x8, x10 stur x8, [x29, #-72] ; 8-byte Folded Spill mov sp, x8 stur x9, [x29, #-40] stur x8, [x29, #-48] b LBB1_1 LBB1_1: ; =>This Inner Loop Header: Depth=1 ldur x8, [x29, #-16] add x9, x8, #1 stur x9, [x29, #-16] ldrb w8, [x8] sturb w8, [x29, #-49] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB1_5 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 ldur x0, [x29, #-24] ldursb w1, [x29, #-49] bl _strchr stur x0, [x29, #-64] ldur x8, [x29, #-64] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB1_4 b LBB1_3 LBB1_3: ; in Loop: Header=BB1_1 Depth=1 ldurb w8, [x29, #-49] ldur x9, [x29, #-48] add x10, x9, #1 stur x10, [x29, #-48] strb w8, [x9] b LBB1_4 LBB1_4: ; in Loop: Header=BB1_1 Depth=1 b LBB1_1 LBB1_5: ldur x0, [x29, #-72] ; 8-byte Folded Reload ldur x8, [x29, #-48] strb wzr, [x8] bl _strdup stur x0, [x29, #-104] ; 8-byte Folded Spill ldur x8, [x29, #-32] stur x8, [x29, #-96] ; 8-byte Folded Spill ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB1_7 b LBB1_6 LBB1_6: bl ___stack_chk_fail LBB1_7: ldur x0, [x29, #-104] ; 8-byte Folded Reload ldur x8, [x29, #-96] ; 8-byte Folded Reload mov sp, x8 mov sp, x29 ldp x29, x30, [sp], #16 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .globl _strfilter3 ; -- Begin function strfilter3 .p2align 2 _strfilter3: ; @strfilter3 .cfi_startproc ; %bb.0: stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill .cfi_def_cfa_offset 16 mov x29, sp .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 sub sp, sp, #112 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] stur x0, [x29, #-16] stur x1, [x29, #-24] ldur x0, [x29, #-16] bl _strlen mov x8, x0 stur w8, [x29, #-28] ldur w8, [x29, #-28] add w8, w8, #1 ; kill: def $x8 killed $w8 mov x9, sp stur x9, [x29, #-40] lsr x9, x8, #0 add x9, x9, #15 and x9, x9, #0xfffffffffffffff0 stur x9, [x29, #-88] ; 8-byte Folded Spill adrp x16, ___chkstk_darwin@GOTPAGE ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF] blr x16 ldur x10, [x29, #-88] ; 8-byte Folded Reload mov x9, sp subs x9, x9, x10 mov sp, x9 stur x9, [x29, #-80] ; 8-byte Folded Spill stur x8, [x29, #-48] stur wzr, [x29, #-52] stur wzr, [x29, #-56] b LBB2_1 LBB2_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-56] ldur w9, [x29, #-28] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB2_6 b LBB2_2 LBB2_2: ; in Loop: Header=BB2_1 Depth=1 ldur x0, [x29, #-24] ldur x8, [x29, #-16] ldursw x9, [x29, #-56] ldrsb w1, [x8, x9] bl _strchr stur x0, [x29, #-64] ldur x8, [x29, #-64] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB2_4 b LBB2_3 LBB2_3: ; in Loop: Header=BB2_1 Depth=1 ldur x9, [x29, #-80] ; 8-byte Folded Reload ldur x8, [x29, #-16] ldursw x10, [x29, #-56] add x8, x8, x10 ldrb w8, [x8] ldursw x10, [x29, #-52] mov x11, x10 add w11, w11, #1 stur w11, [x29, #-52] add x9, x9, x10 strb w8, [x9] b LBB2_4 LBB2_4: ; in Loop: Header=BB2_1 Depth=1 b LBB2_5 LBB2_5: ; in Loop: Header=BB2_1 Depth=1 ldur w8, [x29, #-56] add w8, w8, #1 stur w8, [x29, #-56] b LBB2_1 LBB2_6: ldur x8, [x29, #-80] ; 8-byte Folded Reload stur x8, [x29, #-72] ldur x8, [x29, #-72] stur x8, [x29, #-104] ; 8-byte Folded Spill ldur x8, [x29, #-40] stur x8, [x29, #-96] ; 8-byte Folded Spill ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB2_8 b LBB2_7 LBB2_7: bl ___stack_chk_fail LBB2_8: ldur x0, [x29, #-104] ; 8-byte Folded Reload ldur x8, [x29, #-96] ; 8-byte Folded Reload mov sp, x8 mov sp, x29 ldp x29, x30, [sp], #16 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .globl _strfilter4 ; -- Begin function strfilter4 .p2align 2 _strfilter4: ; @strfilter4 .cfi_startproc ; %bb.0: stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill .cfi_def_cfa_offset 16 mov x29, sp .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 sub sp, sp, #112 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] stur x0, [x29, #-16] stur x1, [x29, #-24] ldur x0, [x29, #-16] bl _strlen add x8, x0, #1 mov x9, sp stur x9, [x29, #-32] lsr x9, x8, #0 add x9, x9, #15 and x9, x9, #0xfffffffffffffff0 stur x9, [x29, #-88] ; 8-byte Folded Spill adrp x16, ___chkstk_darwin@GOTPAGE ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF] blr x16 ldur x10, [x29, #-88] ; 8-byte Folded Reload mov x9, sp subs x0, x9, x10 stur x0, [x29, #-80] ; 8-byte Folded Spill mov sp, x0 stur x8, [x29, #-40] b LBB3_1 LBB3_1: ; =>This Inner Loop Header: Depth=1 ldur x8, [x29, #-16] add x9, x8, #1 stur x9, [x29, #-16] ldrb w8, [x8] sturb w8, [x29, #-41] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB3_5 b LBB3_2 LBB3_2: ; in Loop: Header=BB3_1 Depth=1 ldur x0, [x29, #-24] ldursb w1, [x29, #-41] bl _strchr stur x0, [x29, #-56] ldurb w8, [x29, #-41] sturb w8, [x29, #-58] sturb wzr, [x29, #-57] ldur x8, [x29, #-56] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB3_4 b LBB3_3 LBB3_3: ; in Loop: Header=BB3_1 Depth=1 ldur x0, [x29, #-80] ; 8-byte Folded Reload sub x1, x29, #58 mov x2, #-1 bl ___strcat_chk b LBB3_4 LBB3_4: ; in Loop: Header=BB3_1 Depth=1 b LBB3_1 LBB3_5: ldur x0, [x29, #-80] ; 8-byte Folded Reload bl _strlen mov x8, x0 stur w8, [x29, #-64] ldursw x8, [x29, #-64] add x0, x8, #1 bl _malloc mov x8, x0 ldur x0, [x29, #-80] ; 8-byte Folded Reload stur x8, [x29, #-72] ldur x1, [x29, #-72] mov x2, #-1 bl ___strcpy_chk ldur x8, [x29, #-72] stur x8, [x29, #-104] ; 8-byte Folded Spill ldur x8, [x29, #-32] stur x8, [x29, #-96] ; 8-byte Folded Spill ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB3_7 b LBB3_6 LBB3_6: bl ___stack_chk_fail LBB3_7: ldur x0, [x29, #-104] ; 8-byte Folded Reload ldur x8, [x29, #-96] ; 8-byte Folded Reload mov sp, x8 mov sp, x29 ldp x29, x30, [sp], #16 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .globl _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] stur wzr, [x29, #-28] adrp x8, l___const.main.string@PAGE add x8, x8, l___const.main.string@PAGEOFF ldr x9, [x8] sub x0, x29, #24 str x0, [sp, #24] ; 8-byte Folded Spill stur x9, [x29, #-24] ldrb w8, [x8, #8] sturb w8, [x29, #-16] adrp x8, l___const.main.letters@PAGE add x8, x8, l___const.main.letters@PAGEOFF ldr w9, [x8] sub x1, x29, #36 str x1, [sp, #16] ; 8-byte Folded Spill stur w9, [x29, #-36] ldrh w8, [x8, #4] sturh w8, [x29, #-32] bl _strfilter1 stur x0, [x29, #-48] ldur x8, [x29, #-48] mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF str x0, [sp, #32] ; 8-byte Folded Spill bl _printf ldr x1, [sp, #16] ; 8-byte Folded Reload ldr x0, [sp, #24] ; 8-byte Folded Reload bl _strfilter2 mov x8, x0 ldr x0, [sp, #32] ; 8-byte Folded Reload str x8, [sp, #56] ldr x8, [sp, #56] mov x9, sp str x8, [x9] bl _printf ldr x1, [sp, #16] ; 8-byte Folded Reload ldr x0, [sp, #24] ; 8-byte Folded Reload bl _strfilter3 mov x8, x0 ldr x0, [sp, #32] ; 8-byte Folded Reload str x8, [sp, #48] ldr x8, [sp, #48] mov x9, sp str x8, [x9] bl _printf ldr x1, [sp, #16] ; 8-byte Folded Reload ldr x0, [sp, #24] ; 8-byte Folded Reload bl _strfilter4 mov x8, x0 ldr x0, [sp, #32] ; 8-byte Folded Reload str x8, [sp, #40] ldr x8, [sp, #40] mov x9, sp str x8, [x9] 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_2 b LBB4_1 LBB4_1: bl ___stack_chk_fail LBB4_2: mov w0, #0 ldp x29, x30, [sp, #112] ; 16-byte Folded Reload add sp, sp, #128 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l___const.main.string: ; @__const.main.string .asciz "equation" l___const.main.letters: ; @__const.main.letters .asciz "aeiou" l_.str: ; @.str .asciz "%s\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _strfilter1 ## -- Begin function strfilter1 .p2align 4, 0x90 _strfilter1: ## @strfilter1 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $96, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movq %rdi, -16(%rbp) movq %rsi, -24(%rbp) movq -16(%rbp), %rdi callq _strlen incq %rax movq %rax, -72(%rbp) ## 8-byte Spill movq %rsp, %rcx movq %rcx, -32(%rbp) callq ____chkstk_darwin addq $15, %rax andq $-16, %rax subq %rax, %rsp movq -72(%rbp), %rax ## 8-byte Reload movq %rsp, %rcx movq %rcx, -64(%rbp) ## 8-byte Spill movq %rax, -40(%rbp) movl $0, -44(%rbp) movl $0, -48(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movslq -48(%rbp), %rax movq %rax, -80(%rbp) ## 8-byte Spill movq -16(%rbp), %rdi callq _strlen movq %rax, %rcx movq -80(%rbp), %rax ## 8-byte Reload cmpq %rcx, %rax jae LBB0_6 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movq -24(%rbp), %rdi movq -16(%rbp), %rax movslq -48(%rbp), %rcx movsbl (%rax,%rcx), %esi callq _strchr movq %rax, -56(%rbp) cmpq $0, -56(%rbp) je LBB0_4 ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movq -64(%rbp), %rax ## 8-byte Reload movq -16(%rbp), %rcx movslq -48(%rbp), %rdx movb (%rcx,%rdx), %dl movl -44(%rbp), %ecx movl %ecx, %esi addl $1, %esi movl %esi, -44(%rbp) movslq %ecx, %rcx movb %dl, (%rax,%rcx) LBB0_4: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_5 LBB0_5: ## in Loop: Header=BB0_1 Depth=1 movl -48(%rbp), %eax addl $1, %eax movl %eax, -48(%rbp) jmp LBB0_1 LBB0_6: movq -64(%rbp), %rdi ## 8-byte Reload movslq -44(%rbp), %rax movb $0, (%rdi,%rax) callq _strdup movq %rax, -88(%rbp) ## 8-byte Spill movq -32(%rbp), %rax movq %rax, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_8 ## %bb.7: movq -88(%rbp), %rax ## 8-byte Reload movq %rbp, %rsp popq %rbp retq LBB0_8: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _strfilter2 ## -- Begin function strfilter2 .p2align 4, 0x90 _strfilter2: ## @strfilter2 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $96, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movq %rdi, -16(%rbp) movq %rsi, -24(%rbp) movq -16(%rbp), %rdi callq _strlen incq %rax movq %rax, -80(%rbp) ## 8-byte Spill movq %rsp, %rcx movq %rcx, -32(%rbp) callq ____chkstk_darwin movq -80(%rbp), %rcx ## 8-byte Reload addq $15, %rax andq $-16, %rax subq %rax, %rsp movq %rsp, %rax movq %rax, -72(%rbp) ## 8-byte Spill movq %rcx, -40(%rbp) movq %rax, -48(%rbp) LBB1_1: ## =>This Inner Loop Header: Depth=1 movq -16(%rbp), %rax movq %rax, %rcx addq $1, %rcx movq %rcx, -16(%rbp) movb (%rax), %al movb %al, -49(%rbp) cmpb $0, %al je LBB1_5 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 movq -24(%rbp), %rdi movsbl -49(%rbp), %esi callq _strchr movq %rax, -64(%rbp) cmpq $0, -64(%rbp) je LBB1_4 ## %bb.3: ## in Loop: Header=BB1_1 Depth=1 movb -49(%rbp), %cl movq -48(%rbp), %rax movq %rax, %rdx addq $1, %rdx movq %rdx, -48(%rbp) movb %cl, (%rax) LBB1_4: ## in Loop: Header=BB1_1 Depth=1 jmp LBB1_1 LBB1_5: movq -72(%rbp), %rdi ## 8-byte Reload movq -48(%rbp), %rax movb $0, (%rax) callq _strdup movq %rax, -88(%rbp) ## 8-byte Spill movq -32(%rbp), %rax movq %rax, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB1_7 ## %bb.6: movq -88(%rbp), %rax ## 8-byte Reload movq %rbp, %rsp popq %rbp retq LBB1_7: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _strfilter3 ## -- Begin function strfilter3 .p2align 4, 0x90 _strfilter3: ## @strfilter3 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $96, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movq %rdi, -16(%rbp) movq %rsi, -24(%rbp) movq -16(%rbp), %rdi callq _strlen ## kill: def $eax killed $eax killed $rax movl %eax, -28(%rbp) movl -28(%rbp), %eax incl %eax ## kill: def $rax killed $eax movq %rax, -88(%rbp) ## 8-byte Spill movq %rsp, %rcx movq %rcx, -40(%rbp) callq ____chkstk_darwin addq $15, %rax andq $-16, %rax subq %rax, %rsp movq -88(%rbp), %rax ## 8-byte Reload movq %rsp, %rcx movq %rcx, -80(%rbp) ## 8-byte Spill movq %rax, -48(%rbp) movl $0, -52(%rbp) movl $0, -56(%rbp) LBB2_1: ## =>This Inner Loop Header: Depth=1 movl -56(%rbp), %eax cmpl -28(%rbp), %eax jge LBB2_6 ## %bb.2: ## in Loop: Header=BB2_1 Depth=1 movq -24(%rbp), %rdi movq -16(%rbp), %rax movslq -56(%rbp), %rcx movsbl (%rax,%rcx), %esi callq _strchr movq %rax, -64(%rbp) cmpq $0, -64(%rbp) je LBB2_4 ## %bb.3: ## in Loop: Header=BB2_1 Depth=1 movq -80(%rbp), %rax ## 8-byte Reload movq -16(%rbp), %rcx movslq -56(%rbp), %rdx movb (%rcx,%rdx), %dl movl -52(%rbp), %ecx movl %ecx, %esi addl $1, %esi movl %esi, -52(%rbp) movslq %ecx, %rcx movb %dl, (%rax,%rcx) LBB2_4: ## in Loop: Header=BB2_1 Depth=1 jmp LBB2_5 LBB2_5: ## in Loop: Header=BB2_1 Depth=1 movl -56(%rbp), %eax addl $1, %eax movl %eax, -56(%rbp) jmp LBB2_1 LBB2_6: movq -80(%rbp), %rax ## 8-byte Reload movq %rax, -72(%rbp) movq -72(%rbp), %rax movq %rax, -96(%rbp) ## 8-byte Spill movq -40(%rbp), %rax movq %rax, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB2_8 ## %bb.7: movq -96(%rbp), %rax ## 8-byte Reload movq %rbp, %rsp popq %rbp retq LBB2_8: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _strfilter4 ## -- Begin function strfilter4 .p2align 4, 0x90 _strfilter4: ## @strfilter4 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $96, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movq %rdi, -16(%rbp) movq %rsi, -24(%rbp) movq -16(%rbp), %rdi callq _strlen incq %rax movq %rax, -88(%rbp) ## 8-byte Spill movq %rsp, %rcx movq %rcx, -32(%rbp) callq ____chkstk_darwin addq $15, %rax andq $-16, %rax subq %rax, %rsp movq -88(%rbp), %rax ## 8-byte Reload movq %rsp, %rcx movq %rcx, -80(%rbp) ## 8-byte Spill movq %rax, -40(%rbp) LBB3_1: ## =>This Inner Loop Header: Depth=1 movq -16(%rbp), %rax movq %rax, %rcx addq $1, %rcx movq %rcx, -16(%rbp) movb (%rax), %al movb %al, -41(%rbp) cmpb $0, %al je LBB3_5 ## %bb.2: ## in Loop: Header=BB3_1 Depth=1 movq -24(%rbp), %rdi movsbl -41(%rbp), %esi callq _strchr movq %rax, -56(%rbp) movb -41(%rbp), %al movb %al, -58(%rbp) movb $0, -57(%rbp) cmpq $0, -56(%rbp) je LBB3_4 ## %bb.3: ## in Loop: Header=BB3_1 Depth=1 movq -80(%rbp), %rdi ## 8-byte Reload leaq -58(%rbp), %rsi movq $-1, %rdx callq ___strcat_chk LBB3_4: ## in Loop: Header=BB3_1 Depth=1 jmp LBB3_1 LBB3_5: movq -80(%rbp), %rdi ## 8-byte Reload callq _strlen ## kill: def $eax killed $eax killed $rax movl %eax, -64(%rbp) movslq -64(%rbp), %rdi addq $1, %rdi callq _malloc movq -80(%rbp), %rdi ## 8-byte Reload movq %rax, -72(%rbp) movq -72(%rbp), %rsi movq $-1, %rdx callq ___strcpy_chk movq -72(%rbp), %rax movq %rax, -96(%rbp) ## 8-byte Spill movq -32(%rbp), %rax movq %rax, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB3_7 ## %bb.6: movq -96(%rbp), %rax ## 8-byte Reload movq %rbp, %rsp popq %rbp retq LBB3_7: 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 $64, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -24(%rbp) movq L___const.main.string(%rip), %rax movq %rax, -17(%rbp) movb L___const.main.string+8(%rip), %al movb %al, -9(%rbp) movl L___const.main.letters(%rip), %eax movl %eax, -30(%rbp) movw L___const.main.letters+4(%rip), %ax movw %ax, -26(%rbp) leaq -17(%rbp), %rdi leaq -30(%rbp), %rsi callq _strfilter1 movq %rax, -40(%rbp) movq -40(%rbp), %rsi leaq L_.str(%rip), %rdi movb $0, %al callq _printf leaq -17(%rbp), %rdi leaq -30(%rbp), %rsi callq _strfilter2 movq %rax, -48(%rbp) movq -48(%rbp), %rsi leaq L_.str(%rip), %rdi movb $0, %al callq _printf leaq -17(%rbp), %rdi leaq -30(%rbp), %rsi callq _strfilter3 movq %rax, -56(%rbp) movq -56(%rbp), %rsi leaq L_.str(%rip), %rdi movb $0, %al callq _printf leaq -17(%rbp), %rdi leaq -30(%rbp), %rsi callq _strfilter4 movq %rax, -64(%rbp) movq -64(%rbp), %rsi leaq L_.str(%rip), %rdi movb $0, %al callq _printf movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB4_2 ## %bb.1: xorl %eax, %eax addq $64, %rsp popq %rbp retq LBB4_2: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L___const.main.string: ## @__const.main.string .asciz "equation" L___const.main.letters: ## @__const.main.letters .asciz "aeiou" L_.str: ## @.str .asciz "%s\n" .subsections_via_symbols
the_stack_data/59528.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 0x4071126666666666 ; double 273.14999999999998 .section __TEXT,__text,regular,pure_instructions .globl _main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] stur w0, [x29, #-8] stur x1, [x29, #-16] ldur w8, [x29, #-8] subs w8, w8, #3 cset w8, eq tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: ldur x8, [x29, #-16] ldr x8, [x8] mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov w8, #-1 stur w8, [x29, #-4] b LBB0_13 LBB0_2: ldur x8, [x29, #-16] ldr x0, [x8, #8] 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, ne tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: ldur x8, [x29, #-16] ldr x8, [x8, #8] mov x9, sp str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf mov w8, #-1 stur w8, [x29, #-4] b LBB0_13 LBB0_4: ldur x8, [x29, #-16] ldr x0, [x8, #16] adrp x1, l_.str.3@PAGE add x1, x1, l_.str.3@PAGEOFF bl _fopen mov x8, x0 str x8, [sp, #8] subs x8, x0, #0 cset w8, ne tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: ldur x8, [x29, #-16] ldr x8, [x8, #16] mov x9, sp str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf mov w8, #-1 stur w8, [x29, #-4] b LBB0_13 LBB0_6: b LBB0_7 LBB0_7: ; =>This Inner Loop Header: Depth=1 ldr x0, [sp, #16] bl _feof subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB0_12 b LBB0_8 LBB0_8: ; in Loop: Header=BB0_7 Depth=1 ldr x3, [sp, #16] sub x0, x29, #20 mov x1, #4 mov x2, #1 bl _fread ldur s0, [x29, #-20] mov w8, #15360 movk w8, #50716, lsl #16 fmov s1, w8 fcmp s0, s1 cset w8, ne tbnz w8, #0, LBB0_10 b LBB0_9 LBB0_9: ; in Loop: Header=BB0_7 Depth=1 mov w8, #15360 movk w8, #50716, lsl #16 fmov s0, w8 str s0, [sp, #24] b LBB0_11 LBB0_10: ; in Loop: Header=BB0_7 Depth=1 ldur s0, [x29, #-20] fcvt d0, s0 adrp x8, lCPI0_0@PAGE ldr d1, [x8, lCPI0_0@PAGEOFF] fadd d0, d0, d1 fcvt s0, d0 str s0, [sp, #24] b LBB0_11 LBB0_11: ; in Loop: Header=BB0_7 Depth=1 ldr x3, [sp, #8] add x0, sp, #24 mov x1, #4 mov x2, #1 bl _fwrite b LBB0_7 LBB0_12: ldr x0, [sp, #16] bl _fclose ldr x0, [sp, #8] bl _fclose b LBB0_13 LBB0_13: 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 "Usage: %s <in_C> <out_K>\n" l_.str.1: ; @.str.1 .asciz "rb" l_.str.2: ; @.str.2 .asciz "open file %s error\n" l_.str.3: ; @.str.3 .asciz "wb" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __TEXT,__literal4,4byte_literals .p2align 2 ## -- Begin function main LCPI0_0: .long 0xc61c3c00 ## float -9999 .section __TEXT,__literal8,8byte_literals .p2align 3 LCPI0_1: .quad 0x4071126666666666 ## double 273.14999999999998 .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) cmpl $3, -8(%rbp) je LBB0_2 ## %bb.1: movq -16(%rbp), %rax movq (%rax), %rsi leaq L_.str(%rip), %rdi movb $0, %al callq _printf movl $-1, -4(%rbp) jmp LBB0_13 LBB0_2: movq -16(%rbp), %rax movq 8(%rax), %rdi leaq L_.str.1(%rip), %rsi callq _fopen movq %rax, -32(%rbp) cmpq $0, %rax jne LBB0_4 ## %bb.3: movq -16(%rbp), %rax movq 8(%rax), %rsi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf movl $-1, -4(%rbp) jmp LBB0_13 LBB0_4: movq -16(%rbp), %rax movq 16(%rax), %rdi leaq L_.str.3(%rip), %rsi callq _fopen movq %rax, -40(%rbp) cmpq $0, %rax jne LBB0_6 ## %bb.5: movq -16(%rbp), %rax movq 16(%rax), %rsi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf movl $-1, -4(%rbp) jmp LBB0_13 LBB0_6: jmp LBB0_7 LBB0_7: ## =>This Inner Loop Header: Depth=1 movq -32(%rbp), %rdi callq _feof cmpl $0, %eax setne %al xorb $-1, %al testb $1, %al jne LBB0_8 jmp LBB0_12 LBB0_8: ## in Loop: Header=BB0_7 Depth=1 leaq -20(%rbp), %rdi movq -32(%rbp), %rcx movl $4, %esi movl $1, %edx callq _fread movss -20(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero ucomiss %xmm1, %xmm0 jne LBB0_10 jp LBB0_10 ## %bb.9: ## in Loop: Header=BB0_7 Depth=1 movss LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, -24(%rbp) jmp LBB0_11 LBB0_10: ## in Loop: Header=BB0_7 Depth=1 movss -20(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movsd LCPI0_1(%rip), %xmm1 ## xmm1 = mem[0],zero addsd %xmm1, %xmm0 cvtsd2ss %xmm0, %xmm0 movss %xmm0, -24(%rbp) LBB0_11: ## in Loop: Header=BB0_7 Depth=1 leaq -24(%rbp), %rdi movq -40(%rbp), %rcx movl $4, %esi movl $1, %edx callq _fwrite jmp LBB0_7 LBB0_12: movq -32(%rbp), %rdi callq _fclose movq -40(%rbp), %rdi callq _fclose LBB0_13: movl -4(%rbp), %eax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Usage: %s <in_C> <out_K>\n" L_.str.1: ## @.str.1 .asciz "rb" L_.str.2: ## @.str.2 .asciz "open file %s error\n" L_.str.3: ## @.str.3 .asciz "wb" .subsections_via_symbols
the_stack_data/1228118.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _myPow ; -- Begin function myPow .p2align 2 _myPow: ; @myPow .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str d0, [sp, #16] str w0, [sp, #12] ldr w8, [sp, #12] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: fmov d0, #1.00000000 str d0, [sp, #24] b LBB0_11 LBB0_2: ldr w8, [sp, #12] subs w8, w8, #0 cset w8, ge tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: ldr d1, [sp, #16] fmov d0, #1.00000000 fdiv d0, d0, d1 str d0, [sp, #16] ldr w9, [sp, #12] mov w8, #0 subs w8, w8, w9 str w8, [sp, #12] b LBB0_4 LBB0_4: ldr d0, [sp, #16] str d0, [sp] ldr w8, [sp, #12] subs w8, w8, #1 str w8, [sp, #12] b LBB0_5 LBB0_5: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #12] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB0_10 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_5 Depth=1 ldr w8, [sp, #12] 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_8 b LBB0_7 LBB0_7: ; in Loop: Header=BB0_5 Depth=1 ldr d1, [sp, #16] ldr d0, [sp, #16] fmul d0, d0, d1 str d0, [sp, #16] ldr w8, [sp, #12] mov w9, #2 sdiv w8, w8, w9 str w8, [sp, #12] b LBB0_9 LBB0_8: ; in Loop: Header=BB0_5 Depth=1 ldr d1, [sp, #16] ldr d0, [sp] fmul d0, d0, d1 str d0, [sp] ldr w8, [sp, #12] subs w8, w8, #1 str w8, [sp, #12] b LBB0_9 LBB0_9: ; in Loop: Header=BB0_5 Depth=1 b LBB0_5 LBB0_10: ldr d0, [sp] str d0, [sp, #24] b LBB0_11 LBB0_11: ldr d0, [sp, #24] add sp, sp, #32 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __TEXT,__literal8,8byte_literals .p2align 3 ## -- Begin function myPow LCPI0_0: .quad 0x3ff0000000000000 ## double 1 .section __TEXT,__text,regular,pure_instructions .globl _myPow .p2align 4, 0x90 _myPow: ## @myPow .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movsd %xmm0, -16(%rbp) movl %edi, -20(%rbp) cmpl $0, -20(%rbp) jne LBB0_2 ## %bb.1: movsd LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -8(%rbp) jmp LBB0_11 LBB0_2: cmpl $0, -20(%rbp) jge LBB0_4 ## %bb.3: movsd LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero divsd -16(%rbp), %xmm0 movsd %xmm0, -16(%rbp) imull $-1, -20(%rbp), %eax movl %eax, -20(%rbp) LBB0_4: movsd -16(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -32(%rbp) movl -20(%rbp), %eax subl $1, %eax movl %eax, -20(%rbp) LBB0_5: ## =>This Inner Loop Header: Depth=1 cmpl $0, -20(%rbp) jle LBB0_10 ## %bb.6: ## in Loop: Header=BB0_5 Depth=1 movl -20(%rbp), %eax movl $2, %ecx cltd idivl %ecx cmpl $0, %edx jne LBB0_8 ## %bb.7: ## in Loop: Header=BB0_5 Depth=1 movsd -16(%rbp), %xmm0 ## xmm0 = mem[0],zero mulsd -16(%rbp), %xmm0 movsd %xmm0, -16(%rbp) movl -20(%rbp), %eax movl $2, %ecx cltd idivl %ecx movl %eax, -20(%rbp) jmp LBB0_9 LBB0_8: ## in Loop: Header=BB0_5 Depth=1 movsd -16(%rbp), %xmm0 ## xmm0 = mem[0],zero mulsd -32(%rbp), %xmm0 movsd %xmm0, -32(%rbp) movl -20(%rbp), %eax subl $1, %eax movl %eax, -20(%rbp) LBB0_9: ## in Loop: Header=BB0_5 Depth=1 jmp LBB0_5 LBB0_10: movsd -32(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -8(%rbp) LBB0_11: movsd -8(%rbp), %xmm0 ## xmm0 = mem[0],zero popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/745637.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: sub sp, sp, #112 .cfi_def_cfa_offset 112 stp x29, x30, [sp, #96] ; 16-byte Folded Spill add x29, sp, #96 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] stur x0, [x29, #-32] ldur x8, [x29, #-32] add x0, x8, #7 bl _atoi stur w0, [x29, #-36] ldur x8, [x29, #-32] strb wzr, [x8, #6] ldur x0, [x29, #-32] bl _atoi stur w0, [x29, #-40] stur wzr, [x29, #-44] ldur w8, [x29, #-40] str w8, [sp, #28] b LBB0_1 LBB0_1: ; =>This Loop Header: Depth=1 ; Child Loop BB0_3 Depth 2 ldr w8, [sp, #28] ldur w9, [x29, #-36] add w9, w9, #1 subs w8, w8, w9 cset w8, hs tbnz w8, #0, LBB0_22 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldr w9, [sp, #28] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] add x0, sp, #45 mov w1, #0 mov x2, #7 adrp x3, l_.str@PAGE add x3, x3, l_.str@PAGEOFF bl ___sprintf_chk strb wzr, [sp, #44] mov w8, #1 sturh w8, [x29, #-18] sturh w8, [x29, #-16] sturh w8, [x29, #-14] sturh w8, [x29, #-12] sturh w8, [x29, #-10] strh wzr, [sp, #42] str wzr, [sp, #36] mov w8, #1 str w8, [sp, #32] str wzr, [sp, #24] b LBB0_3 LBB0_3: ; Parent Loop BB0_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #24] subs w8, w8, #6 cset w8, hs tbnz w8, #0, LBB0_11 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_3 Depth=2 ldr w8, [sp, #24] mov x9, x8 add x8, sp, #45 ldrsb w8, [x8, x9] ldrsb w9, [sp, #44] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_3 Depth=2 str wzr, [sp, #32] b LBB0_10 LBB0_6: ; in Loop: Header=BB0_3 Depth=2 ldr w8, [sp, #24] mov x9, x8 add x8, sp, #45 ldrsb w8, [x8, x9] ldrsb w9, [sp, #44] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_8 b LBB0_7 LBB0_7: ; in Loop: Header=BB0_3 Depth=2 ldrh w8, [sp, #42] mov x9, x8 sub x8, x29, #20 add x9, x8, x9, lsl #1 ldrh w8, [x9] add w8, w8, #1 strh w8, [x9] b LBB0_9 LBB0_8: ; in Loop: Header=BB0_3 Depth=2 ldrh w8, [sp, #42] add w8, w8, #1 strh w8, [sp, #42] b LBB0_9 LBB0_9: ; in Loop: Header=BB0_3 Depth=2 ldr w8, [sp, #24] mov x9, x8 add x8, sp, #45 add x8, x8, x9 ldrb w8, [x8] strb w8, [sp, #44] b LBB0_10 LBB0_10: ; in Loop: Header=BB0_3 Depth=2 ldr w8, [sp, #24] add w8, w8, #1 str w8, [sp, #24] b LBB0_3 LBB0_11: ; in Loop: Header=BB0_1 Depth=1 ldurh w8, [x29, #-18] subs w8, w8, #2 cset w8, eq tbnz w8, #0, LBB0_16 b LBB0_12 LBB0_12: ; in Loop: Header=BB0_1 Depth=1 ldurh w8, [x29, #-16] subs w8, w8, #2 cset w8, eq tbnz w8, #0, LBB0_16 b LBB0_13 LBB0_13: ; in Loop: Header=BB0_1 Depth=1 ldurh w8, [x29, #-14] subs w8, w8, #2 cset w8, eq tbnz w8, #0, LBB0_16 b LBB0_14 LBB0_14: ; in Loop: Header=BB0_1 Depth=1 ldurh w8, [x29, #-12] subs w8, w8, #2 cset w8, eq tbnz w8, #0, LBB0_16 b LBB0_15 LBB0_15: ; in Loop: Header=BB0_1 Depth=1 ldurh w8, [x29, #-10] subs w8, w8, #2 cset w8, ne tbnz w8, #0, LBB0_17 b LBB0_16 LBB0_16: ; in Loop: Header=BB0_1 Depth=1 mov w8, #1 str w8, [sp, #36] b LBB0_17 LBB0_17: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #36] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_20 b LBB0_18 LBB0_18: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #32] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_20 b LBB0_19 LBB0_19: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-44] add w8, w8, #1 stur w8, [x29, #-44] b LBB0_20 LBB0_20: ; in Loop: Header=BB0_1 Depth=1 b LBB0_21 LBB0_21: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #28] add w8, w8, #1 str w8, [sp, #28] b LBB0_1 LBB0_22: ldur w8, [x29, #-44] str w8, [sp, #20] ; 4-byte Folded Spill ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_24 b LBB0_23 LBB0_23: bl ___stack_chk_fail LBB0_24: ldr w0, [sp, #20] ; 4-byte Folded Reload ldp x29, x30, [sp, #96] ; 16-byte Folded Reload add sp, sp, #112 ret .cfi_endproc ; -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ; -- Begin function 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.1@PAGE add x0, x0, l_.str.1@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 "%d" l_.str.1: ; @.str.1 .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 $80, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movq %rdi, -32(%rbp) movq -32(%rbp), %rdi addq $7, %rdi callq _atoi movl %eax, -36(%rbp) movq -32(%rbp), %rax movb $0, 6(%rax) movq -32(%rbp), %rdi callq _atoi movl %eax, -40(%rbp) movl $0, -44(%rbp) movl -40(%rbp), %eax movl %eax, -68(%rbp) LBB0_1: ## =>This Loop Header: Depth=1 ## Child Loop BB0_3 Depth 2 movl -68(%rbp), %eax movl -36(%rbp), %ecx addl $1, %ecx cmpl %ecx, %eax jae LBB0_22 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 leaq -51(%rbp), %rdi movl -68(%rbp), %r8d xorl %esi, %esi movl $7, %edx leaq L_.str(%rip), %rcx movb $0, %al callq ___sprintf_chk movb $0, -52(%rbp) movw $1, -18(%rbp) movw $1, -16(%rbp) movw $1, -14(%rbp) movw $1, -12(%rbp) movw $1, -10(%rbp) movw $0, -54(%rbp) movl $0, -60(%rbp) movl $1, -64(%rbp) movl $0, -72(%rbp) LBB0_3: ## Parent Loop BB0_1 Depth=1 ## => This Inner Loop Header: Depth=2 cmpl $6, -72(%rbp) jae LBB0_11 ## %bb.4: ## in Loop: Header=BB0_3 Depth=2 movl -72(%rbp), %eax ## kill: def $rax killed $eax movsbl -51(%rbp,%rax), %eax movsbl -52(%rbp), %ecx cmpl %ecx, %eax jge LBB0_6 ## %bb.5: ## in Loop: Header=BB0_3 Depth=2 movl $0, -64(%rbp) jmp LBB0_10 LBB0_6: ## in Loop: Header=BB0_3 Depth=2 movl -72(%rbp), %eax ## kill: def $rax killed $eax movsbl -51(%rbp,%rax), %eax movsbl -52(%rbp), %ecx cmpl %ecx, %eax jne LBB0_8 ## %bb.7: ## in Loop: Header=BB0_3 Depth=2 movzwl -54(%rbp), %eax ## kill: def $rax killed $eax movw -20(%rbp,%rax,2), %cx addw $1, %cx movw %cx, -20(%rbp,%rax,2) jmp LBB0_9 LBB0_8: ## in Loop: Header=BB0_3 Depth=2 movw -54(%rbp), %ax addw $1, %ax movw %ax, -54(%rbp) LBB0_9: ## in Loop: Header=BB0_3 Depth=2 movl -72(%rbp), %eax ## kill: def $rax killed $eax movb -51(%rbp,%rax), %al movb %al, -52(%rbp) LBB0_10: ## in Loop: Header=BB0_3 Depth=2 movl -72(%rbp), %eax addl $1, %eax movl %eax, -72(%rbp) jmp LBB0_3 LBB0_11: ## in Loop: Header=BB0_1 Depth=1 movzwl -18(%rbp), %eax cmpl $2, %eax je LBB0_16 ## %bb.12: ## in Loop: Header=BB0_1 Depth=1 movzwl -16(%rbp), %eax cmpl $2, %eax je LBB0_16 ## %bb.13: ## in Loop: Header=BB0_1 Depth=1 movzwl -14(%rbp), %eax cmpl $2, %eax je LBB0_16 ## %bb.14: ## in Loop: Header=BB0_1 Depth=1 movzwl -12(%rbp), %eax cmpl $2, %eax je LBB0_16 ## %bb.15: ## in Loop: Header=BB0_1 Depth=1 movzwl -10(%rbp), %eax cmpl $2, %eax jne LBB0_17 LBB0_16: ## in Loop: Header=BB0_1 Depth=1 movl $1, -60(%rbp) LBB0_17: ## in Loop: Header=BB0_1 Depth=1 cmpl $0, -60(%rbp) je LBB0_20 ## %bb.18: ## in Loop: Header=BB0_1 Depth=1 cmpl $0, -64(%rbp) je LBB0_20 ## %bb.19: ## in Loop: Header=BB0_1 Depth=1 movl -44(%rbp), %eax addl $1, %eax movl %eax, -44(%rbp) LBB0_20: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_21 LBB0_21: ## in Loop: Header=BB0_1 Depth=1 movl -68(%rbp), %eax addl $1, %eax movl %eax, -68(%rbp) jmp LBB0_1 LBB0_22: movl -44(%rbp), %eax movl %eax, -76(%rbp) ## 4-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_24 ## %bb.23: movl -76(%rbp), %eax ## 4-byte Reload addq $80, %rsp 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.1(%rip), %rdi movb $1, %al callq _printf xorl %eax, %eax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d" L_.str.1: ## @.str.1 .asciz "_duration:%f\n%d\n" .subsections_via_symbols
the_stack_data/54826505.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _fgetln ; -- Begin function fgetln .p2align 2 _fgetln: ; @fgetln .cfi_startproc ; %bb.0: sub sp, sp, #96 .cfi_def_cfa_offset 96 stp x29, x30, [sp, #80] ; 16-byte Folded Spill add x29, sp, #80 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-16] stur x1, [x29, #-24] ; kill: def $x8 killed $xzr stur xzr, [x29, #-32] stur wzr, [x29, #-36] str wzr, [sp, #40] str wzr, [sp, #36] str wzr, [sp, #32] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #32] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_11 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #36] subs w8, w8, #80 cset w8, ge tbnz w8, #0, LBB0_8 b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #40] add w8, w8, #80 str w8, [sp, #16] ldur x0, [x29, #-32] ldrsw x1, [sp, #16] bl _realloc mov x8, x0 str x8, [sp, #8] subs x8, x0, #0 cset w8, ne tbnz w8, #0, LBB0_7 b LBB0_4 LBB0_4: ldur x8, [x29, #-32] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: ldur x0, [x29, #-32] bl _free b LBB0_6 LBB0_6: ; kill: def $x8 killed $xzr stur xzr, [x29, #-8] b LBB0_12 LBB0_7: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #8] stur x8, [x29, #-32] ldr w8, [sp, #16] str w8, [sp, #40] ldr w8, [sp, #36] add w8, w8, #80 str w8, [sp, #36] b LBB0_8 LBB0_8: ; in Loop: Header=BB0_1 Depth=1 ldur x8, [x29, #-32] ldursw x9, [x29, #-36] add x8, x8, x9 strb wzr, [x8] ldur x8, [x29, #-32] ldursw x9, [x29, #-36] add x0, x8, x9 ldr w1, [sp, #36] ldur x2, [x29, #-16] bl _fgets subs x8, x0, #0 cset w8, ne tbnz w8, #0, LBB0_10 b LBB0_9 LBB0_9: b LBB0_11 LBB0_10: ; in Loop: Header=BB0_1 Depth=1 ldur x8, [x29, #-32] ldursw x9, [x29, #-36] add x0, x8, x9 bl _strlen mov x8, x0 str w8, [sp, #20] ldr w9, [sp, #20] ldur w8, [x29, #-36] add w8, w8, w9 stur w8, [x29, #-36] ldr w9, [sp, #20] ldr w8, [sp, #36] subs w8, w8, w9 str w8, [sp, #36] ldr w9, [sp, #20] ldr w8, [sp, #40] add w8, w8, w9 str w8, [sp, #40] b LBB0_1 LBB0_11: ldrsw x8, [sp, #40] ldur x9, [x29, #-24] str x8, [x9] ldur x8, [x29, #-32] stur x8, [x29, #-8] b LBB0_12 LBB0_12: ldur x0, [x29, #-8] ldp x29, x30, [sp, #80] ; 16-byte Folded Reload add sp, sp, #96 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _fgetln ## -- Begin function fgetln .p2align 4, 0x90 _fgetln: ## @fgetln .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $80, %rsp movq %rdi, -16(%rbp) movq %rsi, -24(%rbp) movq $0, -32(%rbp) movl $0, -36(%rbp) movl $0, -40(%rbp) movl $0, -44(%rbp) movl $0, -48(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 cmpl $0, -48(%rbp) setne %al xorb $-1, %al testb $1, %al jne LBB0_2 jmp LBB0_11 LBB0_2: ## in Loop: Header=BB0_1 Depth=1 cmpl $80, -44(%rbp) jge LBB0_8 ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movl -40(%rbp), %eax addl $80, %eax movl %eax, -64(%rbp) movq -32(%rbp), %rdi movslq -64(%rbp), %rsi callq _realloc movq %rax, -72(%rbp) cmpq $0, %rax jne LBB0_7 ## %bb.4: cmpq $0, -32(%rbp) je LBB0_6 ## %bb.5: movq -32(%rbp), %rdi callq _free LBB0_6: movq $0, -8(%rbp) jmp LBB0_12 LBB0_7: ## in Loop: Header=BB0_1 Depth=1 movq -72(%rbp), %rax movq %rax, -32(%rbp) movl -64(%rbp), %eax movl %eax, -40(%rbp) movl -44(%rbp), %eax addl $80, %eax movl %eax, -44(%rbp) LBB0_8: ## in Loop: Header=BB0_1 Depth=1 movq -32(%rbp), %rax movslq -36(%rbp), %rcx movb $0, (%rax,%rcx) movq -32(%rbp), %rdi movslq -36(%rbp), %rax addq %rax, %rdi movl -44(%rbp), %esi movq -16(%rbp), %rdx callq _fgets cmpq $0, %rax jne LBB0_10 ## %bb.9: jmp LBB0_11 LBB0_10: ## in Loop: Header=BB0_1 Depth=1 movq -32(%rbp), %rdi movslq -36(%rbp), %rax addq %rax, %rdi callq _strlen ## kill: def $eax killed $eax killed $rax movl %eax, -60(%rbp) movl -60(%rbp), %eax addl -36(%rbp), %eax movl %eax, -36(%rbp) movl -60(%rbp), %ecx movl -44(%rbp), %eax subl %ecx, %eax movl %eax, -44(%rbp) movl -60(%rbp), %eax addl -40(%rbp), %eax movl %eax, -40(%rbp) jmp LBB0_1 LBB0_11: movslq -40(%rbp), %rcx movq -24(%rbp), %rax movq %rcx, (%rax) movq -32(%rbp), %rax movq %rax, -8(%rbp) LBB0_12: movq -8(%rbp), %rax addq $80, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/110347.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _mymalloc ; -- Begin function mymalloc .p2align 2 _mymalloc: ; @mymalloc .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur w0, [x29, #-4] ldur w8, [x29, #-4] mov x0, x8 bl _malloc ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w0, #0 str w0, [sp, #4] ; 4-byte Folded Spill stur wzr, [x29, #-4] add x1, sp, #8 mov x2, #8 bl _read ldr x8, [sp, #8] mov x0, x8 bl _mymalloc mov x8, x0 ldr w0, [sp, #4] ; 4-byte Folded Reload str x8, [sp, #16] ldr x1, [sp, #16] ldr x2, [sp, #8] bl _read ldr w0, [sp, #4] ; 4-byte Folded Reload ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _mymalloc ## -- Begin function mymalloc .p2align 4, 0x90 _mymalloc: ## @mymalloc .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl %edi, -4(%rbp) movl -4(%rbp), %eax movl %eax, %edi callq _malloc addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl $0, -4(%rbp) leaq -24(%rbp), %rsi xorl %edi, %edi movl $8, %edx callq _read movq -24(%rbp), %rax movl %eax, %edi callq _mymalloc movq %rax, -16(%rbp) movq -16(%rbp), %rsi movq -24(%rbp), %rdx xorl %edi, %edi callq _read xorl %eax, %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/13065.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov x8, x0 mov w0, #0 stur wzr, [x29, #-4] stur w8, [x29, #-8] str x1, [sp, #16] str wzr, [sp, #12] bl _setuid subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _perror mov w8, #1 stur w8, [x29, #-4] b LBB0_3 LBB0_2: mov w0, #0 str w0, [sp, #8] ; 4-byte Folded Spill bl _setgid ldr w0, [sp, #8] ; 4-byte Folded Reload bl _seteuid ldr w0, [sp, #8] ; 4-byte Folded Reload bl _setegid mov w0, #1 add x1, sp, #12 bl _setgroups ldr x1, [sp, #16] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _execvp stur wzr, [x29, #-4] b LBB0_3 LBB0_3: ldur w0, [x29, #-4] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Setuid failed, no suid-bit set?" l_.str.1: ; @.str.1 .asciz "/bin/sh" .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) xorl %edi, %edi callq _setuid cmpl $0, %eax je LBB0_2 ## %bb.1: leaq L_.str(%rip), %rdi callq _perror movl $1, -4(%rbp) jmp LBB0_3 LBB0_2: xorl %edi, %edi callq _setgid xorl %edi, %edi callq _seteuid xorl %edi, %edi callq _setegid movl $1, %edi leaq -20(%rbp), %rsi callq _setgroups movq -16(%rbp), %rsi leaq L_.str.1(%rip), %rdi callq _execvp movl $0, -4(%rbp) LBB0_3: movl -4(%rbp), %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Setuid failed, no suid-bit set?" L_.str.1: ## @.str.1 .asciz "/bin/sh" .subsections_via_symbols
the_stack_data/21949.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, #-12] ; 4-byte Folded Spill stur wzr, [x29, #-4] sub x8, x29, #8 stur wzr, [x29, #-8] mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _scanf ldur w8, [x29, #-8] ; implicit-def: $x11 mov x11, x8 ldur w8, [x29, #-8] ; implicit-def: $x10 mov x10, x8 ldur w9, [x29, #-8] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x11, [x9] str x10, [x9, #8] str x8, [x9, #16] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf ldur w0, [x29, #-12] ; 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 "%x" l_.str.1: ; @.str.1 .asciz "%x in decimal is %d and in octal is %o.\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) movl $0, -8(%rbp) leaq L_.str(%rip), %rdi leaq -8(%rbp), %rsi movb $0, %al callq _scanf movl -8(%rbp), %esi movl -8(%rbp), %edx movl -8(%rbp), %ecx leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%x" L_.str.1: ## @.str.1 .asciz "%x in decimal is %d and in octal is %o.\n" .subsections_via_symbols
the_stack_data/92327119.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 sub x0, x29, #4 bl _take_input ldur w0, [x29, #-4] bl _count_factorial_and_print_out mov w0, #0 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _take_input ; -- Begin function take_input .p2align 2 _take_input: ; @take_input .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #8] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldr x8, [sp, #8] mov x9, sp str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _count_factorial_and_print_out ; -- Begin function count_factorial_and_print_out .p2align 2 _count_factorial_and_print_out: ; @count_factorial_and_print_out .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur w0, [x29, #-4] mov w8, #1 str w8, [sp, #8] b LBB2_1 LBB2_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-4] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB2_3 b LBB2_2 LBB2_2: ; in Loop: Header=BB2_1 Depth=1 ldr w8, [sp, #8] ldur w9, [x29, #-4] mul w8, w8, w9 str w8, [sp, #8] ldur w8, [x29, #-4] subs w8, w8, #1 stur w8, [x29, #-4] b LBB2_1 LBB2_3: ldr w9, [sp, #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 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 "Podaj niezbyt duza liczbe naturalna: " l_.str.1: ; @.str.1 .asciz "%d" l_.str.2: ; @.str.2 .asciz "Silnia wynosi: %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 leaq -4(%rbp), %rdi callq _take_input movl -4(%rbp), %edi callq _count_factorial_and_print_out xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _take_input ## -- Begin function take_input .p2align 4, 0x90 _take_input: ## @take_input .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) leaq L_.str(%rip), %rdi movb $0, %al callq _printf movq -8(%rbp), %rsi leaq L_.str.1(%rip), %rdi movb $0, %al callq _scanf addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _count_factorial_and_print_out ## -- Begin function count_factorial_and_print_out .p2align 4, 0x90 _count_factorial_and_print_out: ## @count_factorial_and_print_out .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl %edi, -4(%rbp) movl $1, -8(%rbp) LBB2_1: ## =>This Inner Loop Header: Depth=1 cmpl $0, -4(%rbp) jle LBB2_3 ## %bb.2: ## in Loop: Header=BB2_1 Depth=1 movl -8(%rbp), %eax imull -4(%rbp), %eax movl %eax, -8(%rbp) movl -4(%rbp), %eax addl $-1, %eax movl %eax, -4(%rbp) jmp LBB2_1 LBB2_3: movl -8(%rbp), %esi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Podaj niezbyt duza liczbe naturalna: " L_.str.1: ## @.str.1 .asciz "%d" L_.str.2: ## @.str.2 .asciz "Silnia wynosi: %d\n" .subsections_via_symbols
the_stack_data/100389.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 x9, sp mov x8, #1 str x8, [sp, #16] ; 8-byte Folded Spill str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldr x8, [sp, #16] ; 8-byte Folded Reload mov x9, sp str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf mov x9, sp mov x8, #2 str x8, [sp, #8] ; 8-byte Folded Spill str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf mov x9, sp mov x8, #8 stur x8, [x29, #-8] ; 8-byte Folded Spill str x8, [x9] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf mov x9, sp mov x8, #4 stur x8, [x29, #-16] ; 8-byte Folded Spill str x8, [x9] adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf ldur x8, [x29, #-16] ; 8-byte Folded Reload mov x9, sp str x8, [x9] adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf ldr x8, [sp, #8] ; 8-byte Folded Reload mov x9, sp str x8, [x9] adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _printf ldur x8, [x29, #-8] ; 8-byte Folded Reload mov x9, sp str x8, [x9] adrp x0, l_.str.7@PAGE add x0, x0, l_.str.7@PAGEOFF str x0, [sp, #24] ; 8-byte Folded Spill bl _printf ldur x8, [x29, #-8] ; 8-byte Folded Reload mov x9, sp str x8, [x9] adrp x0, l_.str.8@PAGE add x0, x0, l_.str.8@PAGEOFF bl _printf ldur x8, [x29, #-8] ; 8-byte Folded Reload mov x9, sp str x8, [x9] adrp x0, l_.str.9@PAGE add x0, x0, l_.str.9@PAGEOFF bl _printf ldur x8, [x29, #-8] ; 8-byte Folded Reload mov x9, sp str x8, [x9] adrp x0, l_.str.10@PAGE add x0, x0, l_.str.10@PAGEOFF bl _printf ldr x8, [sp, #8] ; 8-byte Folded Reload mov x9, sp str x8, [x9] adrp x0, l_.str.11@PAGE add x0, x0, l_.str.11@PAGEOFF bl _printf ldr x8, [sp, #8] ; 8-byte Folded Reload mov x9, sp str x8, [x9] adrp x0, l_.str.12@PAGE add x0, x0, l_.str.12@PAGEOFF bl _printf ldr x8, [sp, #16] ; 8-byte Folded Reload mov x9, sp str x8, [x9] adrp x0, l_.str.13@PAGE add x0, x0, l_.str.13@PAGEOFF bl _printf ldur x8, [x29, #-16] ; 8-byte Folded Reload mov x9, sp str x8, [x9] adrp x0, l_.str.14@PAGE add x0, x0, l_.str.14@PAGEOFF bl _printf ldur x8, [x29, #-8] ; 8-byte Folded Reload ldr x0, [sp, #24] ; 8-byte Folded Reload mov x9, sp str x8, [x9] bl _printf ldur x8, [x29, #-16] ; 8-byte Folded Reload mov x9, sp str x8, [x9] adrp x0, l_.str.15@PAGE add x0, x0, l_.str.15@PAGEOFF bl _printf ldur x8, [x29, #-8] ; 8-byte Folded Reload mov x9, sp str x8, [x9] adrp x0, l_.str.16@PAGE add x0, x0, l_.str.16@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 "Size of signed char=%zd bytes\n" l_.str.1: ; @.str.1 .asciz "Size of unsigned char=%zd bytes\n" l_.str.2: ; @.str.2 .asciz "Size of short int=%zd bytes\n" l_.str.3: ; @.str.3 .asciz "Size of long int=%zd bytes\n" l_.str.4: ; @.str.4 .asciz "Size of signed int=%zd bytes\n" l_.str.5: ; @.str.5 .asciz "Size of unsigned int=%zd bytes\n" l_.str.6: ; @.str.6 .asciz "Size of short=%zd bytes\n" l_.str.7: ; @.str.7 .asciz "Size of long=%zd bytes\n" l_.str.8: ; @.str.8 .asciz "Size of long double=%zd bytes\n" l_.str.9: ; @.str.9 .asciz "Size of signed long=%zd bytes\n" l_.str.10: ; @.str.10 .asciz "Size of unsigned long=%zd bytes\n" l_.str.11: ; @.str.11 .asciz "Size of signed short=%zd bytes\n" l_.str.12: ; @.str.12 .asciz "Size of unsigned short=%zd bytes\n" l_.str.13: ; @.str.13 .asciz "Size of char=%zd bytes\n" l_.str.14: ; @.str.14 .asciz "Size of int=%zd bytes\n" l_.str.15: ; @.str.15 .asciz "Size of float=%zd bytes\n" l_.str.16: ; @.str.16 .asciz "Size of double=%zd 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 leaq L_.str(%rip), %rdi movl $1, %esi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi movl $1, %esi movb $0, %al callq _printf leaq L_.str.2(%rip), %rdi movl $2, %esi movb $0, %al callq _printf leaq L_.str.3(%rip), %rdi movl $8, %esi movb $0, %al callq _printf leaq L_.str.4(%rip), %rdi movl $4, %esi movb $0, %al callq _printf leaq L_.str.5(%rip), %rdi movl $4, %esi movb $0, %al callq _printf leaq L_.str.6(%rip), %rdi movl $2, %esi movb $0, %al callq _printf leaq L_.str.7(%rip), %rdi movl $8, %esi movb $0, %al callq _printf leaq L_.str.8(%rip), %rdi movl $16, %esi movb $0, %al callq _printf leaq L_.str.9(%rip), %rdi movl $8, %esi movb $0, %al callq _printf leaq L_.str.10(%rip), %rdi movl $8, %esi movb $0, %al callq _printf leaq L_.str.11(%rip), %rdi movl $2, %esi movb $0, %al callq _printf leaq L_.str.12(%rip), %rdi movl $2, %esi movb $0, %al callq _printf leaq L_.str.13(%rip), %rdi movl $1, %esi movb $0, %al callq _printf leaq L_.str.14(%rip), %rdi movl $4, %esi movb $0, %al callq _printf leaq L_.str.7(%rip), %rdi movl $8, %esi movb $0, %al callq _printf leaq L_.str.15(%rip), %rdi movl $4, %esi movb $0, %al callq _printf leaq L_.str.16(%rip), %rdi movl $8, %esi movb $0, %al callq _printf xorl %eax, %eax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Size of signed char=%zd bytes\n" L_.str.1: ## @.str.1 .asciz "Size of unsigned char=%zd bytes\n" L_.str.2: ## @.str.2 .asciz "Size of short int=%zd bytes\n" L_.str.3: ## @.str.3 .asciz "Size of long int=%zd bytes\n" L_.str.4: ## @.str.4 .asciz "Size of signed int=%zd bytes\n" L_.str.5: ## @.str.5 .asciz "Size of unsigned int=%zd bytes\n" L_.str.6: ## @.str.6 .asciz "Size of short=%zd bytes\n" L_.str.7: ## @.str.7 .asciz "Size of long=%zd bytes\n" L_.str.8: ## @.str.8 .asciz "Size of long double=%zd bytes\n" L_.str.9: ## @.str.9 .asciz "Size of signed long=%zd bytes\n" L_.str.10: ## @.str.10 .asciz "Size of unsigned long=%zd bytes\n" L_.str.11: ## @.str.11 .asciz "Size of signed short=%zd bytes\n" L_.str.12: ## @.str.12 .asciz "Size of unsigned short=%zd bytes\n" L_.str.13: ## @.str.13 .asciz "Size of char=%zd bytes\n" L_.str.14: ## @.str.14 .asciz "Size of int=%zd bytes\n" L_.str.15: ## @.str.15 .asciz "Size of float=%zd bytes\n" L_.str.16: ## @.str.16 .asciz "Size of double=%zd bytes\n" .subsections_via_symbols
the_stack_data/111077521.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 bl ___error str wzr, [x0] mov x9, sp add x8, sp, #16 str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf str w0, [sp, #12] ldr w8, [sp, #12] subs w8, w8, #1 cset w8, eq tbnz w8, #0, LBB0_4 b LBB0_1 LBB0_1: bl ___error ldr w8, [x0] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _perror mov w8, #-1 stur w8, [x29, #-4] b LBB0_5 LBB0_3: adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] ldr x0, [x8] adrp x1, l_.str.3@PAGE add x1, x1, l_.str.3@PAGEOFF bl _fprintf stur wzr, [x29, #-4] b LBB0_5 LBB0_4: ldr x8, [sp, #16] mov x9, sp str x8, [x9] adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf ldr x0, [sp, #16] bl _free stur wzr, [x29, #-4] b LBB0_5 LBB0_5: ldur w0, [x29, #-4] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "type a string> " l_.str.1: ; @.str.1 .asciz "%m[a-z]" l_.str.2: ; @.str.2 .asciz "scanf" l_.str.3: ; @.str.3 .asciz "no matching characters\n" l_.str.4: ; @.str.4 .asciz "read: %s\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl $0, -4(%rbp) leaq L_.str(%rip), %rdi movb $0, %al callq _printf callq ___error movl $0, (%rax) leaq L_.str.1(%rip), %rdi leaq -16(%rbp), %rsi movb $0, %al callq _scanf movl %eax, -20(%rbp) cmpl $1, -20(%rbp) je LBB0_4 ## %bb.1: callq ___error cmpl $0, (%rax) je LBB0_3 ## %bb.2: leaq L_.str.2(%rip), %rdi callq _perror movl $-1, -4(%rbp) jmp LBB0_5 LBB0_3: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.3(%rip), %rsi movb $0, %al callq _fprintf movl $0, -4(%rbp) jmp LBB0_5 LBB0_4: movq -16(%rbp), %rsi leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf movq -16(%rbp), %rdi callq _free movl $0, -4(%rbp) LBB0_5: movl -4(%rbp), %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "type a string> " L_.str.1: ## @.str.1 .asciz "%m[a-z]" L_.str.2: ## @.str.2 .asciz "scanf" L_.str.3: ## @.str.3 .asciz "no matching characters\n" L_.str.4: ## @.str.4 .asciz "read: %s\n" .subsections_via_symbols
the_stack_data/62638715.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _dish_cd ; -- Begin function dish_cd .p2align 2 _dish_cd: ; @dish_cd .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #8] ldr x8, [sp, #8] ldr x8, [x8, #8] subs x8, x8, #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.3@PAGE add x1, x1, l_.str.3@PAGEOFF bl _fprintf b LBB0_5 LBB0_2: ldr x8, [sp, #8] ldr x0, [x8, #8] bl _chdir subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _perror b LBB0_4 LBB0_4: b LBB0_5 LBB0_5: mov w0, #1 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _dish_help ; -- Begin function dish_help .p2align 2 _dish_help: ; @dish_help .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] adrp x0, l_.str.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 stur wzr, [x29, #-12] b LBB1_1 LBB1_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-12] str w8, [sp, #16] ; 4-byte Folded Spill bl _dish_num_builtins ldr w8, [sp, #16] ; 4-byte Folded Reload subs w8, w8, w0 cset w8, ge tbnz w8, #0, LBB1_4 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 ldursw x9, [x29, #-12] adrp x8, _builtin_str@PAGE add x8, x8, _builtin_str@PAGEOFF ldr x8, [x8, x9, lsl #3] mov x9, sp str x8, [x9] adrp x0, l_.str.8@PAGE add x0, x0, l_.str.8@PAGEOFF bl _printf b LBB1_3 LBB1_3: ; in Loop: Header=BB1_1 Depth=1 ldur w8, [x29, #-12] add w8, w8, #1 stur w8, [x29, #-12] b LBB1_1 LBB1_4: adrp x0, l_.str.9@PAGE add x0, x0, l_.str.9@PAGEOFF bl _printf mov w0, #1 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _dish_exit ; -- Begin function dish_exit .p2align 2 _dish_exit: ; @dish_exit .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] mov w0, #0 add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _dish_num_builtins ; -- Begin function dish_num_builtins .p2align 2 _dish_num_builtins: ; @dish_num_builtins .cfi_startproc ; %bb.0: mov w0, #3 ret .cfi_endproc ; -- End function .globl _dish_launch ; -- Begin function dish_launch .p2align 2 _dish_launch: ; @dish_launch .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] bl _fork stur w0, [x29, #-12] ldur w8, [x29, #-12] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB4_4 b LBB4_1 LBB4_1: ldur x8, [x29, #-8] ldr x0, [x8] ldur x1, [x29, #-8] bl _execvp adds w8, w0, #1 cset w8, ne tbnz w8, #0, LBB4_3 b LBB4_2 LBB4_2: adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _perror b LBB4_3 LBB4_3: mov w0, #1 bl _exit LBB4_4: ldur w8, [x29, #-12] subs w8, w8, #0 cset w8, ge tbnz w8, #0, LBB4_6 b LBB4_5 LBB4_5: adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _perror b LBB4_14 LBB4_6: b LBB4_7 LBB4_7: ; =>This Inner Loop Header: Depth=1 ldur w0, [x29, #-12] add x1, sp, #16 mov w2, #2 bl _waitpid b LBB4_8 LBB4_8: ; in Loop: Header=BB4_7 Depth=1 ldr w8, [sp, #16] ands w8, w8, #0x7f cset w8, eq mov w9, #0 str w9, [sp, #12] ; 4-byte Folded Spill tbnz w8, #0, LBB4_12 b LBB4_9 LBB4_9: ; in Loop: Header=BB4_7 Depth=1 ldr w8, [sp, #16] and w8, w8, #0x7f subs w8, w8, #127 cset w8, eq mov w9, #0 str w9, [sp, #8] ; 4-byte Folded Spill tbnz w8, #0, LBB4_11 b LBB4_10 LBB4_10: ; in Loop: Header=BB4_7 Depth=1 ldr w8, [sp, #16] ands w8, w8, #0x7f cset w8, ne str w8, [sp, #8] ; 4-byte Folded Spill b LBB4_11 LBB4_11: ; in Loop: Header=BB4_7 Depth=1 ldr w8, [sp, #8] ; 4-byte Folded Reload eor w8, w8, #0x1 str w8, [sp, #12] ; 4-byte Folded Spill b LBB4_12 LBB4_12: ; in Loop: Header=BB4_7 Depth=1 ldr w8, [sp, #12] ; 4-byte Folded Reload tbnz w8, #0, LBB4_7 b LBB4_13 LBB4_13: b LBB4_14 LBB4_14: b LBB4_15 LBB4_15: mov w0, #1 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _dish_execute ; -- Begin function dish_execute .p2align 2 _dish_execute: ; @dish_execute .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 x8, [x8] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB5_2 b LBB5_1 LBB5_1: mov w8, #1 stur w8, [x29, #-4] b LBB5_9 LBB5_2: str wzr, [sp, #12] b LBB5_3 LBB5_3: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #12] str w8, [sp, #8] ; 4-byte Folded Spill bl _dish_num_builtins ldr w8, [sp, #8] ; 4-byte Folded Reload subs w8, w8, w0 cset w8, ge tbnz w8, #0, LBB5_8 b LBB5_4 LBB5_4: ; in Loop: Header=BB5_3 Depth=1 ldr x8, [sp, #16] ldr x0, [x8] ldrsw x9, [sp, #12] adrp x8, _builtin_str@PAGE add x8, x8, _builtin_str@PAGEOFF ldr x1, [x8, x9, lsl #3] bl _strcmp subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB5_6 b LBB5_5 LBB5_5: ldrsw x9, [sp, #12] adrp x8, _builtin_func@PAGE add x8, x8, _builtin_func@PAGEOFF ldr x8, [x8, x9, lsl #3] ldr x0, [sp, #16] blr x8 stur w0, [x29, #-4] b LBB5_9 LBB5_6: ; in Loop: Header=BB5_3 Depth=1 b LBB5_7 LBB5_7: ; in Loop: Header=BB5_3 Depth=1 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB5_3 LBB5_8: ldr x0, [sp, #16] bl _dish_launch stur w0, [x29, #-4] b LBB5_9 LBB5_9: ldur w0, [x29, #-4] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _dish_read_line ; -- Begin function dish_read_line .p2align 2 _dish_read_line: ; @dish_read_line .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, #1024 stur w8, [x29, #-4] stur wzr, [x29, #-8] ldursw x9, [x29, #-4] mov x8, #1 mul x0, x8, x9 bl _malloc str x0, [sp, #16] ldr x8, [sp, #16] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB6_2 b LBB6_1 LBB6_1: adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] ldr x0, [x8] adrp x1, l_.str.10@PAGE add x1, x1, l_.str.10@PAGEOFF bl _fprintf mov w0, #1 bl _exit LBB6_2: b LBB6_3 LBB6_3: ; =>This Inner Loop Header: Depth=1 bl _getchar str w0, [sp, #12] ldr w8, [sp, #12] adds w8, w8, #1 cset w8, ne tbnz w8, #0, LBB6_5 b LBB6_4 LBB6_4: mov w0, #0 bl _exit LBB6_5: ; in Loop: Header=BB6_3 Depth=1 ldr w8, [sp, #12] subs w8, w8, #10 cset w8, ne tbnz w8, #0, LBB6_7 b LBB6_6 LBB6_6: ldr x8, [sp, #16] ldursw x9, [x29, #-8] add x8, x8, x9 strb wzr, [x8] ldr x0, [sp, #16] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret LBB6_7: ; in Loop: Header=BB6_3 Depth=1 ldr w8, [sp, #12] ldr x9, [sp, #16] ldursw x10, [x29, #-8] strb w8, [x9, x10] b LBB6_8 LBB6_8: ; in Loop: Header=BB6_3 Depth=1 b LBB6_9 LBB6_9: ; in Loop: Header=BB6_3 Depth=1 ldur w8, [x29, #-8] add w8, w8, #1 stur w8, [x29, #-8] ldur w8, [x29, #-8] ldur w9, [x29, #-4] subs w8, w8, w9 cset w8, lt tbnz w8, #0, LBB6_13 b LBB6_10 LBB6_10: ; in Loop: Header=BB6_3 Depth=1 ldur w8, [x29, #-4] add w8, w8, #1024 stur w8, [x29, #-4] ldr x0, [sp, #16] ldursw x1, [x29, #-4] bl _realloc str x0, [sp, #16] ldr x8, [sp, #16] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB6_12 b LBB6_11 LBB6_11: adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] ldr x0, [x8] adrp x1, l_.str.10@PAGE add x1, x1, l_.str.10@PAGEOFF bl _fprintf mov w0, #1 bl _exit LBB6_12: ; in Loop: Header=BB6_3 Depth=1 b LBB6_13 LBB6_13: ; in Loop: Header=BB6_3 Depth=1 b LBB6_3 .cfi_endproc ; -- End function .globl _dish_split_line ; -- Begin function dish_split_line .p2align 2 _dish_split_line: ; @dish_split_line .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] mov w8, #64 stur w8, [x29, #-12] stur wzr, [x29, #-16] ldursw x8, [x29, #-12] lsl x0, x8, #3 bl _malloc str x0, [sp, #24] ldr x8, [sp, #24] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB7_2 b LBB7_1 LBB7_1: adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] ldr x0, [x8] adrp x1, l_.str.10@PAGE add x1, x1, l_.str.10@PAGEOFF bl _fprintf mov w0, #1 bl _exit LBB7_2: ldur x0, [x29, #-8] adrp x1, l_.str.11@PAGE add x1, x1, l_.str.11@PAGEOFF bl _strtok str x0, [sp, #16] b LBB7_3 LBB7_3: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #16] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB7_9 b LBB7_4 LBB7_4: ; in Loop: Header=BB7_3 Depth=1 ldr x8, [sp, #16] ldr x9, [sp, #24] ldursw x10, [x29, #-16] str x8, [x9, x10, lsl #3] ldur w8, [x29, #-16] add w8, w8, #1 stur w8, [x29, #-16] ldur w8, [x29, #-16] ldur w9, [x29, #-12] subs w8, w8, w9 cset w8, lt tbnz w8, #0, LBB7_8 b LBB7_5 LBB7_5: ; in Loop: Header=BB7_3 Depth=1 ldur w8, [x29, #-12] add w8, w8, #64 stur w8, [x29, #-12] ldr x8, [sp, #24] str x8, [sp, #8] ldr x0, [sp, #24] ldursw x8, [x29, #-12] lsl x1, x8, #3 bl _realloc str x0, [sp, #24] ldr x8, [sp, #24] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB7_7 b LBB7_6 LBB7_6: ldr x0, [sp, #8] bl _free adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] ldr x0, [x8] adrp x1, l_.str.10@PAGE add x1, x1, l_.str.10@PAGEOFF bl _fprintf mov w0, #1 bl _exit LBB7_7: ; in Loop: Header=BB7_3 Depth=1 b LBB7_8 LBB7_8: ; in Loop: Header=BB7_3 Depth=1 mov x0, #0 adrp x1, l_.str.11@PAGE add x1, x1, l_.str.11@PAGEOFF bl _strtok str x0, [sp, #16] b LBB7_3 LBB7_9: ldr x9, [sp, #24] ldursw x10, [x29, #-16] mov x8, #0 str x8, [x9, x10, lsl #3] ldr x0, [sp, #24] ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _dish_loop ; -- Begin function dish_loop .p2align 2 _dish_loop: ; @dish_loop .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 b LBB8_1 LBB8_1: ; =>This Inner Loop Header: Depth=1 adrp x0, l_.str.12@PAGE add x0, x0, l_.str.12@PAGEOFF bl _printf bl _dish_read_line stur x0, [x29, #-8] ldur x0, [x29, #-8] bl _dish_split_line str x0, [sp, #16] ldr x0, [sp, #16] bl _dish_execute str w0, [sp, #12] ldur x0, [x29, #-8] bl _free ldr x0, [sp, #16] bl _free b LBB8_2 LBB8_2: ; in Loop: Header=BB8_1 Depth=1 ldr w8, [sp, #12] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB8_1 b LBB8_3 LBB8_3: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #0 str w8, [sp, #12] ; 4-byte Folded Spill stur wzr, [x29, #-4] stur w0, [x29, #-8] str x1, [sp, #16] bl _dish_loop 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 "cd" l_.str.1: ; @.str.1 .asciz "help" l_.str.2: ; @.str.2 .asciz "exit" .section __DATA,__data .globl _builtin_str ; @builtin_str .p2align 3 _builtin_str: .quad l_.str .quad l_.str.1 .quad l_.str.2 .globl _builtin_func ; @builtin_func .p2align 3 _builtin_func: .quad _dish_cd .quad _dish_help .quad _dish_exit .section __TEXT,__cstring,cstring_literals l_.str.3: ; @.str.3 .asciz "dish: expected argument to \"cd\"\n" l_.str.4: ; @.str.4 .asciz "dish" l_.str.5: ; @.str.5 .asciz "Stephen Brennan's dish\n" l_.str.6: ; @.str.6 .asciz "Type program names and arguments, and hit enter.\n" l_.str.7: ; @.str.7 .asciz "The following are built in:\n" l_.str.8: ; @.str.8 .asciz " %s\n" l_.str.9: ; @.str.9 .asciz "Use the man command for information on other programs.\n" l_.str.10: ; @.str.10 .asciz "dish: allocation error\n" l_.str.11: ; @.str.11 .asciz " \t\r\n\007" l_.str.12: ; @.str.12 .asciz "> " .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _dish_cd ## -- Begin function dish_cd .p2align 4, 0x90 _dish_cd: ## @dish_cd .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) movq -8(%rbp), %rax cmpq $0, 8(%rax) jne LBB0_2 ## %bb.1: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.3(%rip), %rsi movb $0, %al callq _fprintf jmp LBB0_5 LBB0_2: movq -8(%rbp), %rax movq 8(%rax), %rdi callq _chdir cmpl $0, %eax je LBB0_4 ## %bb.3: leaq L_.str.4(%rip), %rdi callq _perror LBB0_4: jmp LBB0_5 LBB0_5: movl $1, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _dish_help ## -- Begin function dish_help .p2align 4, 0x90 _dish_help: ## @dish_help .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) leaq L_.str.5(%rip), %rdi movb $0, %al callq _printf leaq L_.str.6(%rip), %rdi movb $0, %al callq _printf leaq L_.str.7(%rip), %rdi movb $0, %al callq _printf movl $0, -12(%rbp) LBB1_1: ## =>This Inner Loop Header: Depth=1 movl -12(%rbp), %eax movl %eax, -16(%rbp) ## 4-byte Spill callq _dish_num_builtins movl %eax, %ecx movl -16(%rbp), %eax ## 4-byte Reload cmpl %ecx, %eax jge LBB1_4 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 movslq -12(%rbp), %rcx leaq _builtin_str(%rip), %rax movq (%rax,%rcx,8), %rsi leaq L_.str.8(%rip), %rdi movb $0, %al callq _printf ## %bb.3: ## in Loop: Header=BB1_1 Depth=1 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB1_1 LBB1_4: leaq L_.str.9(%rip), %rdi movb $0, %al callq _printf movl $1, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _dish_exit ## -- Begin function dish_exit .p2align 4, 0x90 _dish_exit: ## @dish_exit .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) xorl %eax, %eax popq %rbp retq .cfi_endproc ## -- End function .globl _dish_num_builtins ## -- Begin function dish_num_builtins .p2align 4, 0x90 _dish_num_builtins: ## @dish_num_builtins .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl $3, %eax popq %rbp retq .cfi_endproc ## -- End function .globl _dish_launch ## -- Begin function dish_launch .p2align 4, 0x90 _dish_launch: ## @dish_launch .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) callq _fork movl %eax, -12(%rbp) cmpl $0, -12(%rbp) jne LBB4_4 ## %bb.1: movq -8(%rbp), %rax movq (%rax), %rdi movq -8(%rbp), %rsi callq _execvp cmpl $-1, %eax jne LBB4_3 ## %bb.2: leaq L_.str.4(%rip), %rdi callq _perror LBB4_3: movl $1, %edi callq _exit LBB4_4: cmpl $0, -12(%rbp) jge LBB4_6 ## %bb.5: leaq L_.str.4(%rip), %rdi callq _perror jmp LBB4_14 LBB4_6: jmp LBB4_7 LBB4_7: ## =>This Inner Loop Header: Depth=1 movl -12(%rbp), %edi leaq -16(%rbp), %rsi movl $2, %edx callq _waitpid ## %bb.8: ## in Loop: Header=BB4_7 Depth=1 movl -16(%rbp), %ecx andl $127, %ecx xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $0, %ecx movb %al, -17(%rbp) ## 1-byte Spill je LBB4_12 ## %bb.9: ## in Loop: Header=BB4_7 Depth=1 movl -16(%rbp), %ecx andl $127, %ecx xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $127, %ecx movb %al, -18(%rbp) ## 1-byte Spill je LBB4_11 ## %bb.10: ## in Loop: Header=BB4_7 Depth=1 movl -16(%rbp), %eax andl $127, %eax cmpl $0, %eax setne %al movb %al, -18(%rbp) ## 1-byte Spill LBB4_11: ## in Loop: Header=BB4_7 Depth=1 movb -18(%rbp), %al ## 1-byte Reload xorb $-1, %al movb %al, -17(%rbp) ## 1-byte Spill LBB4_12: ## in Loop: Header=BB4_7 Depth=1 movb -17(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB4_7 ## %bb.13: jmp LBB4_14 LBB4_14: jmp LBB4_15 LBB4_15: movl $1, %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _dish_execute ## -- Begin function dish_execute .p2align 4, 0x90 _dish_execute: ## @dish_execute .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -16(%rbp) movq -16(%rbp), %rax cmpq $0, (%rax) jne LBB5_2 ## %bb.1: movl $1, -4(%rbp) jmp LBB5_9 LBB5_2: movl $0, -20(%rbp) LBB5_3: ## =>This Inner Loop Header: Depth=1 movl -20(%rbp), %eax movl %eax, -24(%rbp) ## 4-byte Spill callq _dish_num_builtins movl %eax, %ecx movl -24(%rbp), %eax ## 4-byte Reload cmpl %ecx, %eax jge LBB5_8 ## %bb.4: ## in Loop: Header=BB5_3 Depth=1 movq -16(%rbp), %rax movq (%rax), %rdi movslq -20(%rbp), %rcx leaq _builtin_str(%rip), %rax movq (%rax,%rcx,8), %rsi callq _strcmp cmpl $0, %eax jne LBB5_6 ## %bb.5: movslq -20(%rbp), %rcx leaq _builtin_func(%rip), %rax movq (%rax,%rcx,8), %rax movq -16(%rbp), %rdi callq *%rax movl %eax, -4(%rbp) jmp LBB5_9 LBB5_6: ## in Loop: Header=BB5_3 Depth=1 jmp LBB5_7 LBB5_7: ## in Loop: Header=BB5_3 Depth=1 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB5_3 LBB5_8: movq -16(%rbp), %rdi callq _dish_launch movl %eax, -4(%rbp) LBB5_9: movl -4(%rbp), %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _dish_read_line ## -- Begin function dish_read_line .p2align 4, 0x90 _dish_read_line: ## @dish_read_line .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 $1024, -4(%rbp) ## imm = 0x400 movl $0, -8(%rbp) movslq -4(%rbp), %rdi shlq $0, %rdi callq _malloc movq %rax, -16(%rbp) cmpq $0, -16(%rbp) jne LBB6_2 ## %bb.1: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.10(%rip), %rsi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _fprintf movl $1, %edi callq _exit LBB6_2: jmp LBB6_3 LBB6_3: ## =>This Inner Loop Header: Depth=1 callq _getchar movl %eax, -20(%rbp) cmpl $-1, -20(%rbp) jne LBB6_5 ## %bb.4: xorl %edi, %edi callq _exit LBB6_5: ## in Loop: Header=BB6_3 Depth=1 cmpl $10, -20(%rbp) jne LBB6_7 ## %bb.6: movq -16(%rbp), %rax movslq -8(%rbp), %rcx movb $0, (%rax,%rcx) movq -16(%rbp), %rax addq $32, %rsp popq %rbp retq LBB6_7: ## in Loop: Header=BB6_3 Depth=1 movl -20(%rbp), %eax movb %al, %dl movq -16(%rbp), %rax movslq -8(%rbp), %rcx movb %dl, (%rax,%rcx) ## %bb.8: ## in Loop: Header=BB6_3 Depth=1 jmp LBB6_9 LBB6_9: ## in Loop: Header=BB6_3 Depth=1 movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) movl -8(%rbp), %eax cmpl -4(%rbp), %eax jl LBB6_13 ## %bb.10: ## in Loop: Header=BB6_3 Depth=1 movl -4(%rbp), %eax addl $1024, %eax ## imm = 0x400 movl %eax, -4(%rbp) movq -16(%rbp), %rdi movslq -4(%rbp), %rsi callq _realloc movq %rax, -16(%rbp) cmpq $0, -16(%rbp) jne LBB6_12 ## %bb.11: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.10(%rip), %rsi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _fprintf movl $1, %edi callq _exit LBB6_12: ## in Loop: Header=BB6_3 Depth=1 jmp LBB6_13 LBB6_13: ## in Loop: Header=BB6_3 Depth=1 jmp LBB6_3 .cfi_endproc ## -- End function .globl _dish_split_line ## -- Begin function dish_split_line .p2align 4, 0x90 _dish_split_line: ## @dish_split_line .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 $64, -12(%rbp) movl $0, -16(%rbp) movslq -12(%rbp), %rdi shlq $3, %rdi callq _malloc movq %rax, -24(%rbp) cmpq $0, -24(%rbp) jne LBB7_2 ## %bb.1: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.10(%rip), %rsi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _fprintf movl $1, %edi callq _exit LBB7_2: movq -8(%rbp), %rdi leaq L_.str.11(%rip), %rsi callq _strtok movq %rax, -32(%rbp) LBB7_3: ## =>This Inner Loop Header: Depth=1 cmpq $0, -32(%rbp) je LBB7_9 ## %bb.4: ## in Loop: Header=BB7_3 Depth=1 movq -32(%rbp), %rdx movq -24(%rbp), %rax movslq -16(%rbp), %rcx movq %rdx, (%rax,%rcx,8) movl -16(%rbp), %eax addl $1, %eax movl %eax, -16(%rbp) movl -16(%rbp), %eax cmpl -12(%rbp), %eax jl LBB7_8 ## %bb.5: ## in Loop: Header=BB7_3 Depth=1 movl -12(%rbp), %eax addl $64, %eax movl %eax, -12(%rbp) movq -24(%rbp), %rax movq %rax, -40(%rbp) movq -24(%rbp), %rdi movslq -12(%rbp), %rsi shlq $3, %rsi callq _realloc movq %rax, -24(%rbp) cmpq $0, -24(%rbp) jne LBB7_7 ## %bb.6: movq -40(%rbp), %rdi callq _free movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.10(%rip), %rsi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _fprintf movl $1, %edi callq _exit LBB7_7: ## in Loop: Header=BB7_3 Depth=1 jmp LBB7_8 LBB7_8: ## in Loop: Header=BB7_3 Depth=1 xorl %eax, %eax movl %eax, %edi leaq L_.str.11(%rip), %rsi callq _strtok movq %rax, -32(%rbp) jmp LBB7_3 LBB7_9: movq -24(%rbp), %rax movslq -16(%rbp), %rcx movq $0, (%rax,%rcx,8) movq -24(%rbp), %rax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _dish_loop ## -- Begin function dish_loop .p2align 4, 0x90 _dish_loop: ## @dish_loop .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp LBB8_1: ## =>This Inner Loop Header: Depth=1 leaq L_.str.12(%rip), %rdi movb $0, %al callq _printf callq _dish_read_line movq %rax, -8(%rbp) movq -8(%rbp), %rdi callq _dish_split_line movq %rax, -16(%rbp) movq -16(%rbp), %rdi callq _dish_execute movl %eax, -20(%rbp) movq -8(%rbp), %rdi callq _free movq -16(%rbp), %rdi callq _free ## %bb.2: ## in Loop: Header=BB8_1 Depth=1 cmpl $0, -20(%rbp) jne LBB8_1 ## %bb.3: addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) movl %edi, -8(%rbp) movq %rsi, -16(%rbp) callq _dish_loop xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "cd" L_.str.1: ## @.str.1 .asciz "help" L_.str.2: ## @.str.2 .asciz "exit" .section __DATA,__data .globl _builtin_str ## @builtin_str .p2align 4 _builtin_str: .quad L_.str .quad L_.str.1 .quad L_.str.2 .globl _builtin_func ## @builtin_func .p2align 4 _builtin_func: .quad _dish_cd .quad _dish_help .quad _dish_exit .section __TEXT,__cstring,cstring_literals L_.str.3: ## @.str.3 .asciz "dish: expected argument to \"cd\"\n" L_.str.4: ## @.str.4 .asciz "dish" L_.str.5: ## @.str.5 .asciz "Stephen Brennan's dish\n" L_.str.6: ## @.str.6 .asciz "Type program names and arguments, and hit enter.\n" L_.str.7: ## @.str.7 .asciz "The following are built in:\n" L_.str.8: ## @.str.8 .asciz " %s\n" L_.str.9: ## @.str.9 .asciz "Use the man command for information on other programs.\n" L_.str.10: ## @.str.10 .asciz "dish: allocation error\n" L_.str.11: ## @.str.11 .asciz " \t\r\n\007" L_.str.12: ## @.str.12 .asciz "> " .subsections_via_symbols
the_stack_data/154830258.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 sub x8, x29, #4 mov w9, #10 stur w9, [x29, #-4] sub x9, x29, #16 str x9, [sp, #40] ; 8-byte Folded Spill stur x8, [x29, #-16] sub x8, x29, #24 str x8, [sp, #32] ; 8-byte Folded Spill stur x9, [x29, #-24] stur x8, [x29, #-32] ldur x9, [x29, #-16] mov w8, #12 str w8, [x9] ldur x8, [x29, #-24] ldr x9, [x8] mov w8, #17 str w8, [x9] ldur x8, [x29, #-32] ldr x8, [x8] ldr x9, [x8] mov w8, #78 str w8, [x9] ldur w8, [x29, #-4] ; implicit-def: $x12 mov x12, x8 ldur x8, [x29, #-16] ldr w8, [x8] ; implicit-def: $x11 mov x11, x8 ldur x8, [x29, #-24] ldr x8, [x8] ldr w8, [x8] ; implicit-def: $x10 mov x10, x8 ldur x8, [x29, #-32] ldr x8, [x8] ldr x8, [x8] ldr w9, [x8] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x12, [x9] str x11, [x9, #8] str x10, [x9, #16] str x8, [x9, #24] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldur x8, [x29, #-24] ldr x9, [x8] mov w8, #25 str w8, [x9] ldur w9, [x29, #-4] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf ldr x8, [sp, #32] ; 8-byte Folded Reload ldur x10, [x29, #-32] mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf ldr x8, [sp, #40] ; 8-byte Folded Reload ldur x10, [x29, #-24] mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf mov 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 "a = %d %d %d \n" l_.str.1: ; @.str.1 .asciz "a = %d \n" l_.str.2: ; @.str.2 .asciz "Address of q = %x %x \n" l_.str.3: ; @.str.3 .asciz "Address of p = %x %x \n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl $10, -4(%rbp) leaq -4(%rbp), %rax movq %rax, -16(%rbp) leaq -16(%rbp), %rax movq %rax, -24(%rbp) leaq -24(%rbp), %rax movq %rax, -32(%rbp) movq -16(%rbp), %rax movl $12, (%rax) movq -24(%rbp), %rax movq (%rax), %rax movl $17, (%rax) movq -32(%rbp), %rax movq (%rax), %rax movq (%rax), %rax movl $78, (%rax) movl -4(%rbp), %esi movq -16(%rbp), %rax movl (%rax), %edx movq -24(%rbp), %rax movq (%rax), %rax movl (%rax), %ecx movq -32(%rbp), %rax movq (%rax), %rax movq (%rax), %rax movl (%rax), %r8d leaq L_.str(%rip), %rdi movb $0, %al callq _printf movq -24(%rbp), %rax movq (%rax), %rax movl $25, (%rax) movl -4(%rbp), %esi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf movq -32(%rbp), %rsi leaq L_.str.2(%rip), %rdi leaq -24(%rbp), %rdx movb $0, %al callq _printf movq -24(%rbp), %rsi leaq L_.str.3(%rip), %rdi leaq -16(%rbp), %rdx 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 "a = %d %d %d \n" L_.str.1: ## @.str.1 .asciz "a = %d \n" L_.str.2: ## @.str.2 .asciz "Address of q = %x %x \n" L_.str.3: ## @.str.3 .asciz "Address of p = %x %x \n" .subsections_via_symbols
the_stack_data/165765252.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 snippet lCPI0_0: .quad 0x4240d925ddcd0000 ; double 144725228442 lCPI0_1: .quad 0x41e123ec31400000 ; double 2300535178 lCPI0_2: .quad 0x4171b8f08bd70a3d ; double 18583304.739999998 lCPI0_3: .quad 0x40f84776f16b11c7 ; double 99447.433940000002 lCPI0_4: .quad 0x40778ffc79e8fa2a ; double 376.9991397 lCPI0_5: .quad 0x4230d925ddd80000 ; double 72362614232 lCPI0_6: .quad 0xc1fd6950b2300000 ; double -7895059235 lCPI0_7: .quad 0x41ace55d6a333333 ; double 242396853.09999999 lCPI0_8: .quad 0xc146ade1b83126e9 ; double -2972611.4389999998 lCPI0_9: .quad 0xc03e290dc00716a0 ; double -30.160366060000001 lCPI0_10: .quad 0x40ceac3dc5d63886 ; double 15704.482599999999 lCPI0_11: .quad 0x3fe45f306d974364 ; double 0.63661977199999997 lCPI0_12: .quad 0x3fa7ffffff920c81 ; double 0.046874999950000003 lCPI0_13: .quad 0xbf2a3fea5c574380 ; double -2.0026908730000001E-4 lCPI0_14: .quad 0x3ee1b82114d8a643 ; double 8.4491990959999996E-6 lCPI0_15: .quad 0x3e7c65a7d5438122 ; double 1.0578741200000001E-7 lCPI0_16: .quad 0xbead9acff13878f1 ; double -8.8228987E-7 lCPI0_17: .quad 0x3f5dfffaf78282fd ; double 0.0018310500000000001 lCPI0_18: .quad 0xbf026fa0a2d15cd3 ; double -3.5163964960000002E-5 lCPI0_19: .quad 0xbe9020f5634d8d14 ; double -2.4033701899999998E-7 lCPI0_20: .quad 0x3ec49d7c00df0e15 ; double 2.4575201739999999E-6 lCPI0_21: .quad 0x4002d97c7f4ee208 ; double 2.3561944910000001 .section __TEXT,__text,regular,pure_instructions .globl _snippet .p2align 2 _snippet: ; @snippet .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 d0, [x29, #-8] movi d0, #0000000000000000 stur d0, [x29, #-16] stur d0, [x29, #-24] stur d0, [x29, #-32] stur d0, [x29, #-40] str d0, [sp, #48] str d0, [sp, #40] str d0, [sp, #32] ldur d0, [x29, #-8] fabs d0, d0 stur d0, [x29, #-16] ldur d0, [x29, #-16] fmov d1, #8.00000000 fcmp d0, d1 cset w8, pl tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: ldur d0, [x29, #-8] ldur d1, [x29, #-8] fmul d0, d0, d1 stur d0, [x29, #-40] ldur d0, [x29, #-8] ldur d1, [x29, #-40] ldur d2, [x29, #-40] ldur d3, [x29, #-40] ldur d4, [x29, #-40] ldur d5, [x29, #-40] adrp x8, lCPI0_10@PAGE ldr d7, [x8, lCPI0_10@PAGEOFF] adrp x8, lCPI0_9@PAGE ldr d6, [x8, lCPI0_9@PAGEOFF] fmadd d5, d5, d6, d7 adrp x8, lCPI0_8@PAGE ldr d6, [x8, lCPI0_8@PAGEOFF] fmadd d4, d4, d5, d6 adrp x8, lCPI0_7@PAGE ldr d5, [x8, lCPI0_7@PAGEOFF] fmadd d3, d3, d4, d5 adrp x8, lCPI0_6@PAGE ldr d4, [x8, lCPI0_6@PAGEOFF] fmadd d2, d2, d3, d4 adrp x8, lCPI0_5@PAGE ldr d3, [x8, lCPI0_5@PAGEOFF] fmadd d1, d1, d2, d3 fmul d0, d0, d1 str d0, [sp, #40] ldur d0, [x29, #-40] ldur d1, [x29, #-40] ldur d2, [x29, #-40] ldur d3, [x29, #-40] ldur d4, [x29, #-40] adrp x8, lCPI0_4@PAGE ldr d6, [x8, lCPI0_4@PAGEOFF] fmov d5, #1.00000000 fmadd d4, d4, d5, d6 adrp x8, lCPI0_3@PAGE ldr d5, [x8, lCPI0_3@PAGEOFF] fmadd d3, d3, d4, d5 adrp x8, lCPI0_2@PAGE ldr d4, [x8, lCPI0_2@PAGEOFF] fmadd d2, d2, d3, d4 adrp x8, lCPI0_1@PAGE ldr d3, [x8, lCPI0_1@PAGEOFF] fmadd d1, d1, d2, d3 adrp x8, lCPI0_0@PAGE ldr d2, [x8, lCPI0_0@PAGEOFF] fmadd d0, d0, d1, d2 str d0, [sp, #32] ldr d0, [sp, #40] ldr d1, [sp, #32] fdiv d0, d0, d1 str d0, [sp, #48] b LBB0_6 LBB0_2: ldur d1, [x29, #-16] fmov d0, #8.00000000 fdiv d0, d0, d1 stur d0, [x29, #-24] ldur d0, [x29, #-16] adrp x8, lCPI0_21@PAGE ldr d1, [x8, lCPI0_21@PAGEOFF] fsub d0, d0, d1 stur d0, [x29, #-32] ldur d0, [x29, #-40] ldur d1, [x29, #-40] ldur d2, [x29, #-40] ldur d3, [x29, #-40] adrp x8, lCPI0_20@PAGE ldr d5, [x8, lCPI0_20@PAGEOFF] adrp x8, lCPI0_19@PAGE ldr d4, [x8, lCPI0_19@PAGEOFF] fmadd d3, d3, d4, d5 adrp x8, lCPI0_18@PAGE ldr d4, [x8, lCPI0_18@PAGEOFF] fmadd d2, d2, d3, d4 adrp x8, lCPI0_17@PAGE ldr d3, [x8, lCPI0_17@PAGEOFF] fmadd d1, d1, d2, d3 fmov d2, #1.00000000 fmadd d0, d0, d1, d2 str d0, [sp, #40] ldur d0, [x29, #-40] ldur d1, [x29, #-40] ldur d2, [x29, #-40] ldur d3, [x29, #-40] adrp x8, lCPI0_16@PAGE ldr d5, [x8, lCPI0_16@PAGEOFF] adrp x8, lCPI0_15@PAGE ldr d4, [x8, lCPI0_15@PAGEOFF] fmadd d3, d3, d4, d5 adrp x8, lCPI0_14@PAGE ldr d4, [x8, lCPI0_14@PAGEOFF] fmadd d2, d2, d3, d4 adrp x8, lCPI0_13@PAGE ldr d3, [x8, lCPI0_13@PAGEOFF] fmadd d1, d1, d2, d3 adrp x8, lCPI0_12@PAGE ldr d2, [x8, lCPI0_12@PAGEOFF] fmadd d0, d0, d1, d2 str d0, [sp, #32] ldur d1, [x29, #-16] adrp x8, lCPI0_11@PAGE ldr d0, [x8, lCPI0_11@PAGEOFF] fdiv d0, d0, d1 fsqrt d0, d0 str d0, [sp, #24] ; 8-byte Folded Spill ldur d0, [x29, #-32] bl _cos str d0, [sp, #16] ; 8-byte Folded Spill ldr d0, [sp, #40] str d0, [sp, #8] ; 8-byte Folded Spill ldur d0, [x29, #-24] str d0, [sp] ; 8-byte Folded Spill ldur d0, [x29, #-32] bl _sin ldr d3, [sp] ; 8-byte Folded Reload ldr d2, [sp, #8] ; 8-byte Folded Reload ldr d1, [sp, #16] ; 8-byte Folded Reload fmov d4, d0 ldr d0, [sp, #24] ; 8-byte Folded Reload fmul d3, d3, d4 ldr d4, [sp, #32] fmul d3, d3, d4 fnmsub d1, d1, d2, d3 fmul d0, d0, d1 str d0, [sp, #48] ldur d0, [x29, #-8] fcmp d0, #0.0 cset w8, mi tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: ldur d0, [x29, #-8] fmov d1, #10.00000000 fcmp d0, d1 cset w8, le tbnz w8, #0, LBB0_5 b LBB0_4 LBB0_4: ldr d0, [sp, #48] fneg d0, d0 str d0, [sp, #48] b LBB0_5 LBB0_5: b LBB0_6 LBB0_6: ldr d0, [sp, #48] 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 .section __TEXT,__literal8,8byte_literals .p2align 3 ## -- Begin function snippet LCPI0_0: .quad 0x4020000000000000 ## double 8 LCPI0_2: .quad 0x3fe45f306d974364 ## double 0.63661977199999997 LCPI0_3: .quad 0x3fa7ffffff920c81 ## double 0.046874999950000003 LCPI0_4: .quad 0xbf2a3fea5c574380 ## double -2.0026908730000001E-4 LCPI0_5: .quad 0x3ee1b82114d8a643 ## double 8.4491990959999996E-6 LCPI0_6: .quad 0x3e7c65a7d5438122 ## double 1.0578741200000001E-7 LCPI0_7: .quad 0xbead9acff13878f1 ## double -8.8228987E-7 LCPI0_8: .quad 0x3ff0000000000000 ## double 1 LCPI0_9: .quad 0x3f5dfffaf78282fd ## double 0.0018310500000000001 LCPI0_10: .quad 0xbf026fa0a2d15cd3 ## double -3.5163964960000002E-5 LCPI0_11: .quad 0xbe9020f5634d8d14 ## double -2.4033701899999998E-7 LCPI0_12: .quad 0x3ec49d7c00df0e15 ## double 2.4575201739999999E-6 LCPI0_13: .quad 0x4002d97c7f4ee208 ## double 2.3561944910000001 LCPI0_14: .quad 0x4024000000000000 ## double 10 LCPI0_15: .quad 0x4240d925ddcd0000 ## double 144725228442 LCPI0_16: .quad 0x41e123ec31400000 ## double 2300535178 LCPI0_17: .quad 0x4171b8f08bd70a3d ## double 18583304.739999998 LCPI0_18: .quad 0x40f84776f16b11c7 ## double 99447.433940000002 LCPI0_19: .quad 0x40778ffc79e8fa2a ## double 376.9991397 LCPI0_20: .quad 0x4230d925ddd80000 ## double 72362614232 LCPI0_21: .quad 0xc1fd6950b2300000 ## double -7895059235 LCPI0_22: .quad 0x41ace55d6a333333 ## double 242396853.09999999 LCPI0_23: .quad 0xc146ade1b83126e9 ## double -2972611.4389999998 LCPI0_24: .quad 0xc03e290dc00716a0 ## double -30.160366060000001 LCPI0_25: .quad 0x40ceac3dc5d63886 ## double 15704.482599999999 .section __TEXT,__literal16,16byte_literals .p2align 4 LCPI0_1: .quad 0x7fffffffffffffff ## double NaN .quad 0x7fffffffffffffff ## double NaN .section __TEXT,__text,regular,pure_instructions .globl _snippet .p2align 4, 0x90 _snippet: ## @snippet .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 movsd %xmm0, -8(%rbp) xorps %xmm0, %xmm0 movsd %xmm0, -16(%rbp) xorps %xmm0, %xmm0 movsd %xmm0, -24(%rbp) xorps %xmm0, %xmm0 movsd %xmm0, -32(%rbp) xorps %xmm0, %xmm0 movsd %xmm0, -40(%rbp) xorps %xmm0, %xmm0 movsd %xmm0, -48(%rbp) xorps %xmm0, %xmm0 movsd %xmm0, -56(%rbp) xorps %xmm0, %xmm0 movsd %xmm0, -64(%rbp) movsd -8(%rbp), %xmm0 ## xmm0 = mem[0],zero movaps LCPI0_1(%rip), %xmm1 ## xmm1 = [NaN,NaN] pand %xmm1, %xmm0 movsd %xmm0, -16(%rbp) movsd LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero ucomisd -16(%rbp), %xmm0 jbe LBB0_2 ## %bb.1: movsd -8(%rbp), %xmm0 ## xmm0 = mem[0],zero mulsd -8(%rbp), %xmm0 movsd %xmm0, -40(%rbp) movsd -8(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd -40(%rbp), %xmm1 ## xmm1 = mem[0],zero movsd -40(%rbp), %xmm2 ## xmm2 = mem[0],zero movsd -40(%rbp), %xmm3 ## xmm3 = mem[0],zero movsd -40(%rbp), %xmm4 ## xmm4 = mem[0],zero movsd -40(%rbp), %xmm5 ## xmm5 = mem[0],zero movsd LCPI0_24(%rip), %xmm6 ## xmm6 = mem[0],zero mulsd %xmm6, %xmm5 movsd LCPI0_25(%rip), %xmm6 ## xmm6 = mem[0],zero addsd %xmm6, %xmm5 mulsd %xmm5, %xmm4 movsd LCPI0_23(%rip), %xmm5 ## xmm5 = mem[0],zero addsd %xmm5, %xmm4 mulsd %xmm4, %xmm3 movsd LCPI0_22(%rip), %xmm4 ## xmm4 = mem[0],zero addsd %xmm4, %xmm3 mulsd %xmm3, %xmm2 movsd LCPI0_21(%rip), %xmm3 ## xmm3 = mem[0],zero addsd %xmm3, %xmm2 mulsd %xmm2, %xmm1 movsd LCPI0_20(%rip), %xmm2 ## xmm2 = mem[0],zero addsd %xmm2, %xmm1 mulsd %xmm1, %xmm0 movsd %xmm0, -56(%rbp) movsd -40(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd -40(%rbp), %xmm1 ## xmm1 = mem[0],zero movsd -40(%rbp), %xmm2 ## xmm2 = mem[0],zero movsd -40(%rbp), %xmm3 ## xmm3 = mem[0],zero movsd -40(%rbp), %xmm4 ## xmm4 = mem[0],zero movsd LCPI0_19(%rip), %xmm5 ## xmm5 = mem[0],zero addsd %xmm5, %xmm4 mulsd %xmm4, %xmm3 movsd LCPI0_18(%rip), %xmm4 ## xmm4 = mem[0],zero addsd %xmm4, %xmm3 mulsd %xmm3, %xmm2 movsd LCPI0_17(%rip), %xmm3 ## xmm3 = mem[0],zero addsd %xmm3, %xmm2 mulsd %xmm2, %xmm1 movsd LCPI0_16(%rip), %xmm2 ## xmm2 = mem[0],zero addsd %xmm2, %xmm1 mulsd %xmm1, %xmm0 movsd LCPI0_15(%rip), %xmm1 ## xmm1 = mem[0],zero addsd %xmm1, %xmm0 movsd %xmm0, -64(%rbp) movsd -56(%rbp), %xmm0 ## xmm0 = mem[0],zero divsd -64(%rbp), %xmm0 movsd %xmm0, -48(%rbp) jmp LBB0_6 LBB0_2: movsd LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero divsd -16(%rbp), %xmm0 movsd %xmm0, -24(%rbp) movsd -16(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd LCPI0_13(%rip), %xmm1 ## xmm1 = mem[0],zero subsd %xmm1, %xmm0 movsd %xmm0, -32(%rbp) movsd -40(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd -40(%rbp), %xmm1 ## xmm1 = mem[0],zero movsd -40(%rbp), %xmm2 ## xmm2 = mem[0],zero movsd -40(%rbp), %xmm3 ## xmm3 = mem[0],zero movsd LCPI0_11(%rip), %xmm4 ## xmm4 = mem[0],zero mulsd %xmm4, %xmm3 movsd LCPI0_12(%rip), %xmm4 ## xmm4 = mem[0],zero addsd %xmm4, %xmm3 mulsd %xmm3, %xmm2 movsd LCPI0_10(%rip), %xmm3 ## xmm3 = mem[0],zero addsd %xmm3, %xmm2 mulsd %xmm2, %xmm1 movsd LCPI0_9(%rip), %xmm2 ## xmm2 = mem[0],zero addsd %xmm2, %xmm1 mulsd %xmm1, %xmm0 movsd LCPI0_8(%rip), %xmm1 ## xmm1 = mem[0],zero addsd %xmm1, %xmm0 movsd %xmm0, -56(%rbp) movsd -40(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd -40(%rbp), %xmm1 ## xmm1 = mem[0],zero movsd -40(%rbp), %xmm2 ## xmm2 = mem[0],zero movsd -40(%rbp), %xmm3 ## xmm3 = mem[0],zero movsd LCPI0_6(%rip), %xmm4 ## xmm4 = mem[0],zero mulsd %xmm4, %xmm3 movsd LCPI0_7(%rip), %xmm4 ## xmm4 = mem[0],zero addsd %xmm4, %xmm3 mulsd %xmm3, %xmm2 movsd LCPI0_5(%rip), %xmm3 ## xmm3 = mem[0],zero addsd %xmm3, %xmm2 mulsd %xmm2, %xmm1 movsd LCPI0_4(%rip), %xmm2 ## xmm2 = mem[0],zero addsd %xmm2, %xmm1 mulsd %xmm1, %xmm0 movsd LCPI0_3(%rip), %xmm1 ## xmm1 = mem[0],zero addsd %xmm1, %xmm0 movsd %xmm0, -64(%rbp) movsd LCPI0_2(%rip), %xmm0 ## xmm0 = mem[0],zero divsd -16(%rbp), %xmm0 sqrtsd %xmm0, %xmm0 movsd %xmm0, -72(%rbp) ## 8-byte Spill movsd -32(%rbp), %xmm0 ## xmm0 = mem[0],zero callq _cos movsd %xmm0, -88(%rbp) ## 8-byte Spill movsd -56(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -80(%rbp) ## 8-byte Spill movsd -24(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -96(%rbp) ## 8-byte Spill movsd -32(%rbp), %xmm0 ## xmm0 = mem[0],zero callq _sin movsd -96(%rbp), %xmm2 ## 8-byte Reload ## xmm2 = mem[0],zero movsd -88(%rbp), %xmm1 ## 8-byte Reload ## xmm1 = mem[0],zero movsd -80(%rbp), %xmm3 ## 8-byte Reload ## xmm3 = mem[0],zero movaps %xmm0, %xmm4 movsd -72(%rbp), %xmm0 ## 8-byte Reload ## xmm0 = mem[0],zero mulsd %xmm4, %xmm2 mulsd -64(%rbp), %xmm2 movq %xmm2, %rax movabsq $-9223372036854775808, %rcx ## imm = 0x8000000000000000 xorq %rcx, %rax movq %rax, %xmm2 mulsd %xmm3, %xmm1 addsd %xmm2, %xmm1 mulsd %xmm1, %xmm0 movsd %xmm0, -48(%rbp) xorps %xmm0, %xmm0 ucomisd -8(%rbp), %xmm0 ja LBB0_4 ## %bb.3: movsd -8(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd LCPI0_14(%rip), %xmm1 ## xmm1 = mem[0],zero ucomisd %xmm1, %xmm0 jbe LBB0_5 LBB0_4: movsd -48(%rbp), %xmm0 ## xmm0 = mem[0],zero movq %xmm0, %rax movabsq $-9223372036854775808, %rcx ## imm = 0x8000000000000000 xorq %rcx, %rax movq %rax, %xmm0 movsd %xmm0, -48(%rbp) LBB0_5: jmp LBB0_6 LBB0_6: movsd -48(%rbp), %xmm0 ## xmm0 = mem[0],zero addq $96, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/40764199.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, #10064 adrp x16, ___chkstk_darwin@GOTPAGE ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF] blr x16 sub sp, sp, #2, lsl #12 ; =8192 sub sp, sp, #1872 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] str wzr, [sp, #48] mov x9, sp add x8, sp, #44 str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _scanf b LBB0_1 LBB0_1: ; =>This Loop Header: Depth=1 ; Child Loop BB0_3 Depth 2 ldr w8, [sp, #44] subs w9, w8, #1 str w9, [sp, #44] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_7 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 str wzr, [sp, #40] mov x9, sp add x8, sp, #53 str x8, [sp, #16] ; 8-byte Folded Spill str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf ldr x0, [sp, #16] ; 8-byte Folded Reload bl _strlen mov x8, x0 str w8, [sp, #36] str wzr, [sp, #32] b LBB0_3 LBB0_3: ; Parent Loop BB0_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #32] ldr w9, [sp, #36] mov w10, #2 sdiv w9, w9, w10 subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_6 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_3 Depth=2 ldrsw x8, [sp, #32] add x9, sp, #53 ldrsb w8, [x9, x8] ldr w10, [sp, #36] subs w10, w10, #1 ldr w11, [sp, #32] subs w10, w10, w11 ldrsb w9, [x9, w10, sxtw] subs w0, w8, w9 bl _abs str w0, [sp, #28] ldr w8, [sp, #40] ldr w9, [sp, #28] add w8, w8, w9 str w8, [sp, #40] b LBB0_5 LBB0_5: ; in Loop: Header=BB0_3 Depth=2 ldr w8, [sp, #32] add w8, w8, #1 str w8, [sp, #32] b LBB0_3 LBB0_6: ; in Loop: Header=BB0_1 Depth=1 ldr w9, [sp, #40] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf b LBB0_1 LBB0_7: 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, #2, lsl #12 ; =8192 add sp, sp, #1872 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 " %s" l_.str.2: ; @.str.2 .asciz "%d\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _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 $10048, %eax ## imm = 0x2740 callq ____chkstk_darwin subq %rax, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -10020(%rbp) leaq L_.str(%rip), %rdi leaq -10024(%rbp), %rsi movb $0, %al callq _scanf LBB0_1: ## =>This Loop Header: Depth=1 ## Child Loop BB0_3 Depth 2 movl -10024(%rbp), %eax movl %eax, %ecx addl $-1, %ecx movl %ecx, -10024(%rbp) cmpl $0, %eax je LBB0_7 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl $0, -10028(%rbp) leaq -10016(%rbp), %rsi leaq L_.str.1(%rip), %rdi movb $0, %al callq _scanf leaq -10016(%rbp), %rdi callq _strlen ## kill: def $eax killed $eax killed $rax movl %eax, -10032(%rbp) movl $0, -10036(%rbp) LBB0_3: ## Parent Loop BB0_1 Depth=1 ## => This Inner Loop Header: Depth=2 movl -10036(%rbp), %eax movl %eax, -10044(%rbp) ## 4-byte Spill movl -10032(%rbp), %eax movl $2, %ecx cltd idivl %ecx movl %eax, %ecx movl -10044(%rbp), %eax ## 4-byte Reload cmpl %ecx, %eax jge LBB0_6 ## %bb.4: ## in Loop: Header=BB0_3 Depth=2 movslq -10036(%rbp), %rax movsbl -10016(%rbp,%rax), %edi movl -10032(%rbp), %eax subl $1, %eax subl -10036(%rbp), %eax cltq movsbl -10016(%rbp,%rax), %eax subl %eax, %edi callq _abs movl %eax, -10040(%rbp) movl -10028(%rbp), %eax addl -10040(%rbp), %eax movl %eax, -10028(%rbp) ## %bb.5: ## in Loop: Header=BB0_3 Depth=2 movl -10036(%rbp), %eax addl $1, %eax movl %eax, -10036(%rbp) jmp LBB0_3 LBB0_6: ## in Loop: Header=BB0_1 Depth=1 movl -10028(%rbp), %esi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf jmp LBB0_1 LBB0_7: movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_9 ## %bb.8: xorl %eax, %eax addq $10048, %rsp ## imm = 0x2740 popq %rbp retq LBB0_9: 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 " %s" L_.str.2: ## @.str.2 .asciz "%d\n" .subsections_via_symbols
the_stack_data/52011.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #80 .cfi_def_cfa_offset 80 stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp, #64 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #0 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, #24 str x8, [x9, #16] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _scanf 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 s1, [x29, #-12] ; implicit-def: $d0 fmov s0, s1 sshll.2d v0, v0, #0 ; kill: def $d0 killed $d0 killed $q0 scvtf d0, d0 ldur d1, [x29, #-24] fmul d0, d0, d1 mov x8, sp str d0, [x8] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@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 %lf" l_.str.1: ; @.str.1 .asciz "NUMBER = %d\n" l_.str.2: ; @.str.2 .asciz "SALARY = U$ %.2lf\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 -8(%rbp), %rsi leaq -12(%rbp), %rdx leaq -24(%rbp), %rcx movb $0, %al callq _scanf movl -8(%rbp), %esi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf cvtsi2sdl -12(%rbp), %xmm0 mulsd -24(%rbp), %xmm0 leaq L_.str.2(%rip), %rdi movb $1, %al callq _printf xorl %eax, %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d %d %lf" L_.str.1: ## @.str.1 .asciz "NUMBER = %d\n" L_.str.2: ## @.str.2 .asciz "SALARY = U$ %.2lf\n" .subsections_via_symbols
the_stack_data/887769.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #0 str w8, [sp, #8] ; 4-byte Folded Spill stur wzr, [x29, #-4] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldr w0, [sp, #8] ; 4-byte Folded Reload ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "|\\_/|\n|q p| /}\n( 0 )\"\"\"\\\n|\"^\"` |\n||_/=\\\\__|" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) leaq L_.str(%rip), %rdi movb $0, %al callq _printf xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "|\\_/|\n|q p| /}\n( 0 )\"\"\"\\\n|\"^\"` |\n||_/=\\\\__|" .subsections_via_symbols
the_stack_data/101264.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _invert ; -- Begin function invert .p2align 2 _invert: ; @invert .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] ldr w9, [sp, #8] add w9, w9, #1 mov w10, #-1 lsl w9, w10, w9 and w8, w8, w9 ldr w9, [sp, #4] lsl w9, w10, w9 ldr w11, [sp, #4] lsl w12, w10, w11 ldr w11, [sp, #12] ldr w13, [sp, #8] add w13, w13, #1 ldr w14, [sp, #4] subs w13, w13, w14 lsr w11, w11, w13 bic w11, w11, w12 eon w9, w9, w11 ldr w11, [sp, #8] add w11, w11, #1 ldr w12, [sp, #4] subs w11, w11, w12 lsl w9, w9, w11 orr w8, w8, w9 ldr w9, [sp, #12] ldr w11, [sp, #8] add w11, w11, #1 ldr w12, [sp, #4] subs w11, w11, w12 lsl w10, w10, w11 bic w9, w9, w10 orr w0, w8, w9 add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _getbits ; -- Begin function getbits .p2align 2 _getbits: ; @getbits .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] ldr w9, [sp, #8] add w9, w9, #1 ldr w10, [sp, #4] subs w9, w9, w10 lsr w8, w8, w9 ldr w10, [sp, #4] mov w9, #-1 lsl w9, w9, w10 bic w0, w8, w9 add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _asbits ; -- Begin function asbits .p2align 2 _asbits: ; @asbits .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur w0, [x29, #-4] str x1, [sp, #16] str w2, [sp, #12] ldr x8, [sp, #16] lsl x8, x8, #3 subs x8, x8, #1 ; kill: def $w8 killed $w8 killed $x8 str w8, [sp, #8] b LBB2_1 LBB2_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #8] subs w8, w8, #0 cset w8, lt tbnz w8, #0, LBB2_9 b LBB2_2 LBB2_2: ; in Loop: Header=BB2_1 Depth=1 ldur w0, [x29, #-4] ldr w1, [sp, #8] mov w2, #1 bl _getbits subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB2_4 b LBB2_3 LBB2_3: ; in Loop: Header=BB2_1 Depth=1 mov w0, #49 bl _putchar b LBB2_5 LBB2_4: ; in Loop: Header=BB2_1 Depth=1 mov w0, #48 bl _putchar b LBB2_5 LBB2_5: ; in Loop: Header=BB2_1 Depth=1 ldr w8, [sp, #8] mov w10, #4 sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB2_7 b LBB2_6 LBB2_6: ; in Loop: Header=BB2_1 Depth=1 mov w0, #32 bl _putchar b LBB2_7 LBB2_7: ; in Loop: Header=BB2_1 Depth=1 b LBB2_8 LBB2_8: ; in Loop: Header=BB2_1 Depth=1 ldr w8, [sp, #8] subs w8, w8, #1 str w8, [sp, #8] b LBB2_1 LBB2_9: ldr w8, [sp, #12] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB2_11 b LBB2_10 LBB2_10: mov w0, #10 bl _putchar b LBB2_11 LBB2_11: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #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 w8, #27 stur w8, [x29, #-8] mov w8, #7 stur w8, [x29, #-12] mov w8, #22136 movk w8, #4660, lsl #16 str w8, [sp, #16] ldr w0, [sp, #16] mov x1, #4 str x1, [sp] ; 8-byte Folded Spill mov w2, #1 str w2, [sp, #8] ; 4-byte Folded Spill bl _asbits ldr w0, [sp, #16] ldur w1, [x29, #-8] ldur w2, [x29, #-12] bl _invert ldr x1, [sp] ; 8-byte Folded Reload ldr w2, [sp, #8] ; 4-byte Folded Reload bl _asbits ldr w0, [sp, #12] ; 4-byte Folded Reload ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _invert ## -- Begin function invert .p2align 4, 0x90 _invert: ## @invert .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), %eax movl -8(%rbp), %ecx addl $1, %ecx movl $4294967295, %edx ## imm = 0xFFFFFFFF ## kill: def $cl killed $ecx shll %cl, %edx movl %edx, %ecx andl %ecx, %eax movl -12(%rbp), %ecx movl $4294967295, %edx ## imm = 0xFFFFFFFF ## kill: def $cl killed $ecx shll %cl, %edx xorl $-1, %edx movl -12(%rbp), %ecx movl $4294967295, %esi ## imm = 0xFFFFFFFF ## kill: def $cl killed $ecx shll %cl, %esi movl %esi, %ecx xorl $-1, %ecx movl %ecx, -20(%rbp) ## 4-byte Spill movl -4(%rbp), %esi movl -8(%rbp), %ecx addl $1, %ecx subl -12(%rbp), %ecx ## kill: def $cl killed $ecx shrl %cl, %esi movl -20(%rbp), %ecx ## 4-byte Reload andl %esi, %ecx xorl %ecx, %edx movl -8(%rbp), %ecx addl $1, %ecx subl -12(%rbp), %ecx ## kill: def $cl killed $ecx shll %cl, %edx movl %edx, %ecx orl %ecx, %eax movl -4(%rbp), %ecx movl %ecx, -16(%rbp) ## 4-byte Spill movl -8(%rbp), %ecx addl $1, %ecx subl -12(%rbp), %ecx movl $4294967295, %edx ## imm = 0xFFFFFFFF ## kill: def $cl killed $ecx shll %cl, %edx movl -16(%rbp), %ecx ## 4-byte Reload xorl $-1, %edx andl %edx, %ecx orl %ecx, %eax popq %rbp retq .cfi_endproc ## -- End function .globl _getbits ## -- Begin function getbits .p2align 4, 0x90 _getbits: ## @getbits .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), %eax movl -8(%rbp), %ecx addl $1, %ecx subl -12(%rbp), %ecx ## kill: def $cl killed $ecx shrl %cl, %eax movl -12(%rbp), %ecx movl $4294967295, %edx ## imm = 0xFFFFFFFF ## kill: def $cl killed $ecx shll %cl, %edx movl %edx, %ecx xorl $-1, %ecx andl %ecx, %eax popq %rbp retq .cfi_endproc ## -- End function .globl _asbits ## -- Begin function asbits .p2align 4, 0x90 _asbits: ## @asbits .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) movq -16(%rbp), %rax shlq $3, %rax subq $1, %rax ## kill: def $eax killed $eax killed $rax movl %eax, -24(%rbp) LBB2_1: ## =>This Inner Loop Header: Depth=1 cmpl $0, -24(%rbp) jl LBB2_9 ## %bb.2: ## in Loop: Header=BB2_1 Depth=1 movl -4(%rbp), %edi movl -24(%rbp), %esi movl $1, %edx callq _getbits cmpl $0, %eax je LBB2_4 ## %bb.3: ## in Loop: Header=BB2_1 Depth=1 movl $49, %edi callq _putchar jmp LBB2_5 LBB2_4: ## in Loop: Header=BB2_1 Depth=1 movl $48, %edi callq _putchar LBB2_5: ## in Loop: Header=BB2_1 Depth=1 movl -24(%rbp), %eax movl $4, %ecx cltd idivl %ecx cmpl $0, %edx jne LBB2_7 ## %bb.6: ## in Loop: Header=BB2_1 Depth=1 movl $32, %edi callq _putchar LBB2_7: ## in Loop: Header=BB2_1 Depth=1 jmp LBB2_8 LBB2_8: ## in Loop: Header=BB2_1 Depth=1 movl -24(%rbp), %eax addl $-1, %eax movl %eax, -24(%rbp) jmp LBB2_1 LBB2_9: cmpl $0, -20(%rbp) je LBB2_11 ## %bb.10: movl $10, %edi callq _putchar LBB2_11: addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) movl $27, -8(%rbp) movl $7, -12(%rbp) movl $305419896, -16(%rbp) ## imm = 0x12345678 movl -16(%rbp), %edi movl $4, %esi movl $1, %edx callq _asbits movl -16(%rbp), %edi movl -8(%rbp), %esi movl -12(%rbp), %edx callq _invert movl %eax, %edi movl $4, %esi movl $1, %edx callq _asbits xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/130902.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] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-8] subs w8, w8, #1 stur w8, [x29, #-8] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-8] subs w8, w8, #1 cset w8, gt 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 ldr x8, [sp, #16] add x9, x8, #8 str x9, [sp, #16] ldr x8, [x8, #8] mov x9, sp str x8, [x9] bl _printf b LBB0_1 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 "%s " l_.str.1: ; @.str.1 .asciz "%s\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) movl %edi, -8(%rbp) movq %rsi, -16(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movl -8(%rbp), %eax addl $-1, %eax movl %eax, -8(%rbp) cmpl $0, %eax je LBB0_3 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl -8(%rbp), %ecx leaq L_.str.1(%rip), %rdi leaq L_.str(%rip), %rax cmpl $1, %ecx cmovgq %rax, %rdi movq -16(%rbp), %rax movq %rax, %rcx addq $8, %rcx movq %rcx, -16(%rbp) movq 8(%rax), %rsi movb $0, %al callq _printf jmp LBB0_1 LBB0_3: xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%s " L_.str.1: ## @.str.1 .asciz "%s\n" .subsections_via_symbols
the_stack_data/109053.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, #176 .cfi_def_cfa_offset 176 stp x29, x30, [sp, #160] ; 16-byte Folded Spill add x29, sp, #160 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] str wzr, [sp, #28] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov x9, sp add x8, sp, #20 str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf str wzr, [sp, #24] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #24] ldr w9, [sp, #20] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_4 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldrsw x9, [sp, #24] add x8, sp, #32 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, #24] add w8, w8, #1 str w8, [sp, #24] b LBB0_1 LBB0_4: ldr w8, [sp, #32] str w8, [sp, #16] str wzr, [sp, #24] b LBB0_5 LBB0_5: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #24] ldr w9, [sp, #20] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_10 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_5 Depth=1 ldrsw x9, [sp, #24] add x8, sp, #32 ldr w8, [x8, x9, lsl #2] ldr w9, [sp, #16] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_8 b LBB0_7 LBB0_7: ; in Loop: Header=BB0_5 Depth=1 ldrsw x9, [sp, #24] add x8, sp, #32 ldr w8, [x8, x9, lsl #2] str w8, [sp, #16] b LBB0_8 LBB0_8: ; in Loop: Header=BB0_5 Depth=1 b LBB0_9 LBB0_9: ; in Loop: Header=BB0_5 Depth=1 ldr w8, [sp, #24] add w8, w8, #1 str w8, [sp, #24] b LBB0_5 LBB0_10: ldr w9, [sp, #16] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_12 b LBB0_11 LBB0_11: bl ___stack_chk_fail LBB0_12: mov w0, #0 ldp x29, x30, [sp, #160] ; 16-byte Folded Reload add sp, sp, #176 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "\nEnter no of elements :" l_.str.1: ; @.str.1 .asciz "%d" l_.str.2: ; @.str.2 .asciz "\nSmallest Element : %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 $144, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -132(%rbp) leaq L_.str(%rip), %rdi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi leaq -140(%rbp), %rsi movb $0, %al callq _scanf movl $0, -136(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movl -136(%rbp), %eax cmpl -140(%rbp), %eax jge LBB0_4 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movslq -136(%rbp), %rax leaq -128(%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 -136(%rbp), %eax addl $1, %eax movl %eax, -136(%rbp) jmp LBB0_1 LBB0_4: movl -128(%rbp), %eax movl %eax, -144(%rbp) movl $0, -136(%rbp) LBB0_5: ## =>This Inner Loop Header: Depth=1 movl -136(%rbp), %eax cmpl -140(%rbp), %eax jge LBB0_10 ## %bb.6: ## in Loop: Header=BB0_5 Depth=1 movslq -136(%rbp), %rax movl -128(%rbp,%rax,4), %eax cmpl -144(%rbp), %eax jge LBB0_8 ## %bb.7: ## in Loop: Header=BB0_5 Depth=1 movslq -136(%rbp), %rax movl -128(%rbp,%rax,4), %eax movl %eax, -144(%rbp) LBB0_8: ## in Loop: Header=BB0_5 Depth=1 jmp LBB0_9 LBB0_9: ## in Loop: Header=BB0_5 Depth=1 movl -136(%rbp), %eax addl $1, %eax movl %eax, -136(%rbp) jmp LBB0_5 LBB0_10: movl -144(%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_12 ## %bb.11: xorl %eax, %eax addq $144, %rsp popq %rbp retq LBB0_12: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "\nEnter no of elements :" L_.str.1: ## @.str.1 .asciz "%d" L_.str.2: ## @.str.2 .asciz "\nSmallest Element : %d" .subsections_via_symbols
the_stack_data/92325927.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _mod ; -- Begin function mod .p2align 2 _mod: ; @mod .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, #12] ldr w10, [sp, #8] sdiv w9, w9, w10 ldr w10, [sp, #8] mul w9, w9, w10 subs w8, w8, w9 str w8, [sp, #4] ldr w8, [sp, #4] str w8, [sp] ldr w0, [sp, #4] add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _power ; -- Begin function power .p2align 2 _power: ; @power .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #12] str w1, [sp, #8] ldr w8, [sp, #8] add w8, w8, #1 ldr w9, [sp, #8] subs w8, w8, w9 str w8, [sp, #4] b LBB1_1 LBB1_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #8] ldr w9, [sp, #4] ldr w10, [sp, #4] subs w9, w9, w10 add w9, w9, #90 subs w9, w9, #89 add w9, w9, #1 subs w9, w9, #2 subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB1_3 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #4] ldr w9, [sp, #12] mul w8, w8, w9 str w8, [sp, #4] ldr w9, [sp, #8] mov w8, #2 mul w8, w8, w9 ldr w10, [sp, #8] mov w9, #1 mul w9, w9, w10 subs w8, w8, w9 subs w8, w8, #1 str w8, [sp, #8] b LBB1_1 LBB1_3: ldr w0, [sp, #4] add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _getNumDigits ; -- Begin function getNumDigits .p2align 2 _getNumDigits: ; @getNumDigits .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #8] str wzr, [sp, #4] ldr w8, [sp, #8] subs w8, w8, #0 cset w8, ge tbnz w8, #0, LBB2_2 b LBB2_1 LBB2_1: mov w8, #-1 str w8, [sp, #12] b LBB2_6 LBB2_2: b LBB2_3 LBB2_3: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #8] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB2_5 b LBB2_4 LBB2_4: ; in Loop: Header=BB2_3 Depth=1 ldr w8, [sp, #8] mov w9, #10 sdiv w8, w8, w9 str w8, [sp, #8] ldr w8, [sp, #4] add w8, w8, #2 str w8, [sp, #4] ldr w8, [sp, #4] add w8, w8, #2 str w8, [sp, #4] ldr w8, [sp, #4] subs w8, w8, #3 str w8, [sp, #4] b LBB2_3 LBB2_5: ldr w8, [sp, #4] str w8, [sp, #12] b LBB2_6 LBB2_6: ldr w0, [sp, #12] add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _isNarcissistic ; -- Begin function isNarcissistic .p2align 2 _isNarcissistic: ; @isNarcissistic .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] ldur w8, [x29, #-8] add w8, w8, #1 subs w0, w8, #1 bl _getNumDigits stur w0, [x29, #-12] str wzr, [sp, #16] ldur w8, [x29, #-8] str w8, [sp, #12] b LBB3_1 LBB3_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #12] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB3_3 b LBB3_2 LBB3_2: ; in Loop: Header=BB3_1 Depth=1 ldr w0, [sp, #12] mov w1, #10 str w1, [sp] ; 4-byte Folded Spill bl _mod ldr w9, [sp] ; 4-byte Folded Reload str w0, [sp, #8] ldr w8, [sp, #12] ldr w10, [sp, #8] subs w8, w8, w10 sdiv w8, w8, w9 str w8, [sp, #12] ldr w8, [sp, #16] str w8, [sp, #4] ; 4-byte Folded Spill ldr w0, [sp, #8] ldur w1, [x29, #-12] bl _power ldr w8, [sp, #4] ; 4-byte Folded Reload add w8, w8, w0 str w8, [sp, #16] b LBB3_1 LBB3_3: ldr w8, [sp, #16] ldur w9, [x29, #-8] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB3_5 b LBB3_4 LBB3_4: mov w8, #1 stur w8, [x29, #-4] b LBB3_6 LBB3_5: stur wzr, [x29, #-4] b LBB3_6 LBB3_6: ldur w0, [x29, #-4] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] stur wzr, [x29, #-8] mov w8, #300 stur w8, [x29, #-12] b LBB4_1 LBB4_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-12] subs w8, w8, #500 cset w8, ge tbnz w8, #0, LBB4_5 b LBB4_2 LBB4_2: ; in Loop: Header=BB4_1 Depth=1 ldur w0, [x29, #-12] bl _isNarcissistic subs w8, w0, #1 cset w8, ne tbnz w8, #0, LBB4_4 b LBB4_3 LBB4_3: ; in Loop: Header=BB4_1 Depth=1 ldur w9, [x29, #-12] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldur w8, [x29, #-8] add w8, w8, #1 stur w8, [x29, #-8] b LBB4_4 LBB4_4: ; in Loop: Header=BB4_1 Depth=1 ldur w8, [x29, #-12] add w8, w8, #1 stur w8, [x29, #-12] b LBB4_1 LBB4_5: ldur w9, [x29, #-8] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldur w0, [x29, #-8] 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 _mod ## -- Begin function mod .p2align 4, 0x90 _mod: ## @mod .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 movl %eax, -20(%rbp) ## 4-byte Spill movl -4(%rbp), %eax cltd idivl -8(%rbp) movl %eax, %ecx movl -20(%rbp), %eax ## 4-byte Reload imull -8(%rbp), %ecx subl %ecx, %eax movl %eax, -12(%rbp) movl -12(%rbp), %eax movl %eax, -16(%rbp) movl -12(%rbp), %eax 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 movl %edi, -4(%rbp) movl %esi, -8(%rbp) movl -8(%rbp), %eax addl $1, %eax subl -8(%rbp), %eax movl %eax, -12(%rbp) LBB1_1: ## =>This Inner Loop Header: Depth=1 movl -8(%rbp), %eax movl -12(%rbp), %ecx subl -12(%rbp), %ecx addl $90, %ecx subl $89, %ecx addl $1, %ecx subl $2, %ecx cmpl %ecx, %eax jle LBB1_3 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 movl -12(%rbp), %eax imull -4(%rbp), %eax movl %eax, -12(%rbp) movl -8(%rbp), %eax shll $1, %eax movl -8(%rbp), %ecx shll $0, %ecx subl %ecx, %eax subl $1, %eax movl %eax, -8(%rbp) jmp LBB1_1 LBB1_3: movl -12(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .globl _getNumDigits ## -- Begin function getNumDigits .p2align 4, 0x90 _getNumDigits: ## @getNumDigits .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 $0, -12(%rbp) cmpl $0, -8(%rbp) jge LBB2_2 ## %bb.1: movl $-1, -4(%rbp) jmp LBB2_6 LBB2_2: jmp LBB2_3 LBB2_3: ## =>This Inner Loop Header: Depth=1 cmpl $0, -8(%rbp) jle LBB2_5 ## %bb.4: ## in Loop: Header=BB2_3 Depth=1 movl -8(%rbp), %eax movl $10, %ecx cltd idivl %ecx movl %eax, -8(%rbp) movl -12(%rbp), %eax addl $2, %eax movl %eax, -12(%rbp) movl -12(%rbp), %eax addl $2, %eax movl %eax, -12(%rbp) movl -12(%rbp), %eax subl $3, %eax movl %eax, -12(%rbp) jmp LBB2_3 LBB2_5: movl -12(%rbp), %eax movl %eax, -4(%rbp) LBB2_6: movl -4(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .globl _isNarcissistic ## -- Begin function isNarcissistic .p2align 4, 0x90 _isNarcissistic: ## @isNarcissistic .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 -8(%rbp), %edi addl $1, %edi subl $1, %edi callq _getNumDigits movl %eax, -12(%rbp) movl $0, -16(%rbp) movl -8(%rbp), %eax movl %eax, -20(%rbp) LBB3_1: ## =>This Inner Loop Header: Depth=1 cmpl $0, -20(%rbp) jle LBB3_3 ## %bb.2: ## in Loop: Header=BB3_1 Depth=1 movl -20(%rbp), %edi movl $10, %esi callq _mod movl %eax, -24(%rbp) movl -20(%rbp), %eax subl -24(%rbp), %eax movl $10, %ecx cltd idivl %ecx movl %eax, -20(%rbp) movl -16(%rbp), %eax movl %eax, -28(%rbp) ## 4-byte Spill movl -24(%rbp), %edi movl -12(%rbp), %esi callq _power movl %eax, %ecx movl -28(%rbp), %eax ## 4-byte Reload addl %ecx, %eax movl %eax, -16(%rbp) jmp LBB3_1 LBB3_3: movl -16(%rbp), %eax cmpl -8(%rbp), %eax jne LBB3_5 ## %bb.4: movl $1, -4(%rbp) jmp LBB3_6 LBB3_5: movl $0, -4(%rbp) LBB3_6: movl -4(%rbp), %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) movl $0, -8(%rbp) movl $300, -12(%rbp) ## imm = 0x12C LBB4_1: ## =>This Inner Loop Header: Depth=1 cmpl $500, -12(%rbp) ## imm = 0x1F4 jge LBB4_5 ## %bb.2: ## in Loop: Header=BB4_1 Depth=1 movl -12(%rbp), %edi callq _isNarcissistic cmpl $1, %eax jne LBB4_4 ## %bb.3: ## in Loop: Header=BB4_1 Depth=1 movl -12(%rbp), %esi leaq L_.str(%rip), %rdi movb $0, %al callq _printf movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) LBB4_4: ## in Loop: Header=BB4_1 Depth=1 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB4_1 LBB4_5: movl -8(%rbp), %esi leaq L_.str(%rip), %rdi movb $0, %al callq _printf movl -8(%rbp), %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d\n" .subsections_via_symbols
the_stack_data/200143172.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, #1088 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] str wzr, [sp, #36] str w0, [sp, #32] str x1, [sp, #24] str wzr, [sp, #20] ldr w8, [sp, #32] subs w8, w8, #2 cset w8, eq tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: ldr x8, [sp, #24] ldr x8, [x8] mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov w8, #1 str w8, [sp, #36] b LBB0_16 LBB0_2: add x0, sp, #56 mov w1, #48 mov x2, #1024 bl _memset mov w0, #2 mov w1, #1 mov w2, #0 bl _socket str w0, [sp, #20] subs w8, w0, #0 cset w8, ge tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf mov w8, #1 str w8, [sp, #36] b LBB0_16 LBB0_4: mov x9, #3472328296227680304 add x8, sp, #40 str x9, [sp, #40] str x9, [sp, #48] mov w9, #2 strb w9, [sp, #41] mov w9, #34835 strh w9, [sp, #42] ldr x9, [sp, #24] ldr x1, [x9, #8] add x2, x8, #4 mov w0, #2 bl _inet_pton subs w8, w0, #0 cset w8, gt tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf mov w8, #1 str w8, [sp, #36] b LBB0_16 LBB0_6: ldr w0, [sp, #20] add x1, sp, #40 mov w2, #16 bl _connect subs w8, w0, #0 cset w8, ge tbnz w8, #0, LBB0_8 b LBB0_7 LBB0_7: adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf mov w8, #1 str w8, [sp, #36] b LBB0_16 LBB0_8: b LBB0_9 LBB0_9: ; =>This Inner Loop Header: Depth=1 ldr w0, [sp, #20] add x1, sp, #56 mov x2, #1023 bl _read mov x8, x0 mov x9, x0 str w9, [sp, #16] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB0_13 b LBB0_10 LBB0_10: ; in Loop: Header=BB0_9 Depth=1 ldrsw x9, [sp, #16] add x0, sp, #56 mov x8, x0 add x8, x8, x9 strb wzr, [x8] adrp x8, ___stdoutp@GOTPAGE ldr x8, [x8, ___stdoutp@GOTPAGEOFF] ldr x1, [x8] bl _fputs adds w8, w0, #1 cset w8, ne tbnz w8, #0, LBB0_12 b LBB0_11 LBB0_11: ; in Loop: Header=BB0_9 Depth=1 adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf b LBB0_12 LBB0_12: ; in Loop: Header=BB0_9 Depth=1 b LBB0_9 LBB0_13: ldr w8, [sp, #16] subs w8, w8, #0 cset w8, ge tbnz w8, #0, LBB0_15 b LBB0_14 LBB0_14: adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf b LBB0_15 LBB0_15: str wzr, [sp, #36] b LBB0_16 LBB0_16: 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_18 b LBB0_17 LBB0_17: bl ___stack_chk_fail LBB0_18: ldr w0, [sp, #12] ; 4-byte Folded Reload add sp, sp, #1088 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x28, x27, [sp], #32 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Usage : %s <IP> \n" l_.str.1: ; @.str.1 .asciz "Error creating socket\n" l_.str.2: ; @.str.2 .asciz "Error\n" l_.str.3: ; @.str.3 .asciz "Error : connection failed\n" l_.str.4: ; @.str.4 .asciz "No data received\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 $1088, %rsp ## imm = 0x440 movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -1060(%rbp) movl %edi, -1064(%rbp) movq %rsi, -1072(%rbp) movl $0, -1076(%rbp) cmpl $2, -1064(%rbp) je LBB0_2 ## %bb.1: movq -1072(%rbp), %rax movq (%rax), %rsi leaq L_.str(%rip), %rdi movb $0, %al callq _printf movl $1, -1060(%rbp) jmp LBB0_16 LBB0_2: leaq -1040(%rbp), %rdi movl $48, %esi movl $1024, %edx ## imm = 0x400 callq _memset movl $2, %edi movl $1, %esi xorl %edx, %edx callq _socket movl %eax, -1076(%rbp) cmpl $0, %eax jge LBB0_4 ## %bb.3: leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf movl $1, -1060(%rbp) jmp LBB0_16 LBB0_4: leaq -1056(%rbp), %rdi movl $48, %esi movl $16, %edx callq _memset movb $2, -1055(%rbp) movw $-30701, -1054(%rbp) ## imm = 0x8813 movq -1072(%rbp), %rax movq 8(%rax), %rsi leaq -1056(%rbp), %rdx addq $4, %rdx movl $2, %edi callq _inet_pton cmpl $0, %eax jg LBB0_6 ## %bb.5: leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf movl $1, -1060(%rbp) jmp LBB0_16 LBB0_6: movl -1076(%rbp), %edi leaq -1056(%rbp), %rsi movl $16, %edx callq _connect cmpl $0, %eax jge LBB0_8 ## %bb.7: leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf movl $1, -1060(%rbp) jmp LBB0_16 LBB0_8: jmp LBB0_9 LBB0_9: ## =>This Inner Loop Header: Depth=1 movl -1076(%rbp), %edi leaq -1040(%rbp), %rsi movl $1023, %edx ## imm = 0x3FF callq _read ## kill: def $eax killed $eax killed $rax movl %eax, -1080(%rbp) cmpl $0, %eax jle LBB0_13 ## %bb.10: ## in Loop: Header=BB0_9 Depth=1 movslq -1080(%rbp), %rax movb $0, -1040(%rbp,%rax) leaq -1040(%rbp), %rdi movq ___stdoutp@GOTPCREL(%rip), %rax movq (%rax), %rsi callq _fputs cmpl $-1, %eax jne LBB0_12 ## %bb.11: ## in Loop: Header=BB0_9 Depth=1 leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf LBB0_12: ## in Loop: Header=BB0_9 Depth=1 jmp LBB0_9 LBB0_13: cmpl $0, -1080(%rbp) jge LBB0_15 ## %bb.14: leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf LBB0_15: movl $0, -1060(%rbp) LBB0_16: movl -1060(%rbp), %eax movl %eax, -1084(%rbp) ## 4-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_18 ## %bb.17: movl -1084(%rbp), %eax ## 4-byte Reload addq $1088, %rsp ## imm = 0x440 popq %rbp retq LBB0_18: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Usage : %s <IP> \n" L_.str.1: ## @.str.1 .asciz "Error creating socket\n" L_.str.2: ## @.str.2 .asciz "Error\n" L_.str.3: ## @.str.3 .asciz "Error : connection failed\n" L_.str.4: ## @.str.4 .asciz "No data received\n" .subsections_via_symbols
the_stack_data/108653.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, #35120 adrp x16, ___chkstk_darwin@GOTPAGE ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF] blr x16 sub sp, sp, #8, lsl #12 ; =32768 sub sp, sp, #2352 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] str wzr, [sp, #108] str w0, [sp, #104] str x1, [sp, #96] str wzr, [sp, #60] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF bl _fopen str x0, [sp, #48] ldr x8, [sp, #48] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: mov w0, #1 bl _exit LBB0_2: ldr x0, [sp, #48] mov x9, sp add x8, sp, #92 str x8, [x9] add x8, sp, #88 str x8, [x9, #8] adrp x1, l_.str.2@PAGE add x1, x1, l_.str.2@PAGEOFF bl _fscanf str wzr, [sp, #84] b LBB0_3 LBB0_3: ; =>This Loop Header: Depth=1 ; Child Loop BB0_5 Depth 2 ldr w8, [sp, #84] ldr w9, [sp, #92] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_10 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_3 Depth=1 str wzr, [sp, #80] b LBB0_5 LBB0_5: ; Parent Loop BB0_3 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #80] ldr w9, [sp, #88] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_8 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_5 Depth=2 ldr x0, [sp, #48] ldrsw x8, [sp, #84] mov x9, #200 mul x9, x8, x9 add x8, sp, #6, lsl #12 ; =24576 add x8, x8, #536 add x8, x8, x9 ldrsw x9, [sp, #80] add x8, x8, x9, lsl #2 mov x9, sp str x8, [x9] adrp x1, l_.str.3@PAGE add x1, x1, l_.str.3@PAGEOFF bl _fscanf b LBB0_7 LBB0_7: ; in Loop: Header=BB0_5 Depth=2 ldr w8, [sp, #80] add w8, w8, #1 str w8, [sp, #80] b LBB0_5 LBB0_8: ; in Loop: Header=BB0_3 Depth=1 b LBB0_9 LBB0_9: ; in Loop: Header=BB0_3 Depth=1 ldr w8, [sp, #84] add w8, w8, #1 str w8, [sp, #84] b LBB0_3 LBB0_10: ldr x0, [sp, #48] bl _fclose str wzr, [sp, #84] b LBB0_11 LBB0_11: ; =>This Loop Header: Depth=1 ; Child Loop BB0_13 Depth 2 ; Child Loop BB0_16 Depth 3 ; Child Loop BB0_22 Depth 3 ; Child Loop BB0_28 Depth 3 ; Child Loop BB0_30 Depth 4 ldr w8, [sp, #84] ldr w9, [sp, #92] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_40 b LBB0_12 LBB0_12: ; in Loop: Header=BB0_11 Depth=1 str wzr, [sp, #80] b LBB0_13 LBB0_13: ; Parent Loop BB0_11 Depth=1 ; => This Loop Header: Depth=2 ; Child Loop BB0_16 Depth 3 ; Child Loop BB0_22 Depth 3 ; Child Loop BB0_28 Depth 3 ; Child Loop BB0_30 Depth 4 ldr w8, [sp, #80] ldr w9, [sp, #88] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_38 b LBB0_14 LBB0_14: ; in Loop: Header=BB0_13 Depth=2 ldrsw x8, [sp, #84] mov x9, #200 mul x9, x8, x9 add x8, sp, #6, lsl #12 ; =24576 add x8, x8, #536 add x8, x8, x9 ldrsw x9, [sp, #80] ldr w8, [x8, x9, lsl #2] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_36 b LBB0_15 LBB0_15: ; in Loop: Header=BB0_13 Depth=2 ldr w8, [sp, #84] ldrsw x9, [sp, #60] mov x11, #20 mul x10, x9, x11 add x9, sp, #112 str w8, [x9, x10] ldr w8, [sp, #80] ldrsw x10, [sp, #60] mul x10, x10, x11 add x9, x9, x10 str w8, [x9, #4] str wzr, [sp, #76] b LBB0_16 LBB0_16: ; Parent Loop BB0_11 Depth=1 ; Parent Loop BB0_13 Depth=2 ; => This Inner Loop Header: Depth=3 ldrsw x8, [sp, #84] mov x9, #200 mul x9, x8, x9 add x8, sp, #6, lsl #12 ; =24576 add x8, x8, #536 add x8, x8, x9 ldr w9, [sp, #76] ldr w10, [sp, #80] add w9, w9, w10 ldr w8, [x8, w9, sxtw #2] subs w8, w8, #0 cset w8, eq mov w9, #0 str w9, [sp, #44] ; 4-byte Folded Spill tbnz w8, #0, LBB0_18 b LBB0_17 LBB0_17: ; in Loop: Header=BB0_16 Depth=3 ldr w8, [sp, #76] ldr w9, [sp, #80] add w8, w8, w9 ldr w9, [sp, #88] subs w8, w8, w9 cset w8, lt str w8, [sp, #44] ; 4-byte Folded Spill b LBB0_18 LBB0_18: ; in Loop: Header=BB0_16 Depth=3 ldr w8, [sp, #44] ; 4-byte Folded Reload tbz w8, #0, LBB0_21 b LBB0_19 LBB0_19: ; in Loop: Header=BB0_16 Depth=3 b LBB0_20 LBB0_20: ; in Loop: Header=BB0_16 Depth=3 ldr w8, [sp, #76] add w8, w8, #1 str w8, [sp, #76] b LBB0_16 LBB0_21: ; in Loop: Header=BB0_13 Depth=2 ldr w8, [sp, #76] ldrsw x9, [sp, #60] mov x10, #20 mul x10, x9, x10 add x9, sp, #112 add x9, x9, x10 str w8, [x9, #8] str wzr, [sp, #76] b LBB0_22 LBB0_22: ; Parent Loop BB0_11 Depth=1 ; Parent Loop BB0_13 Depth=2 ; => This Inner Loop Header: Depth=3 ldr w8, [sp, #76] ldr w9, [sp, #84] add w8, w8, w9 add x10, sp, #6, lsl #12 ; =24576 add x10, x10, #536 mov w9, #200 smaddl x8, w8, w9, x10 ldrsw x9, [sp, #80] ldr w8, [x8, x9, lsl #2] subs w8, w8, #0 cset w8, eq mov w9, #0 str w9, [sp, #40] ; 4-byte Folded Spill tbnz w8, #0, LBB0_24 b LBB0_23 LBB0_23: ; in Loop: Header=BB0_22 Depth=3 ldr w8, [sp, #76] ldr w9, [sp, #84] add w8, w8, w9 ldr w9, [sp, #92] subs w8, w8, w9 cset w8, lt str w8, [sp, #40] ; 4-byte Folded Spill b LBB0_24 LBB0_24: ; in Loop: Header=BB0_22 Depth=3 ldr w8, [sp, #40] ; 4-byte Folded Reload tbz w8, #0, LBB0_27 b LBB0_25 LBB0_25: ; in Loop: Header=BB0_22 Depth=3 b LBB0_26 LBB0_26: ; in Loop: Header=BB0_22 Depth=3 ldr w8, [sp, #76] add w8, w8, #1 str w8, [sp, #76] b LBB0_22 LBB0_27: ; in Loop: Header=BB0_13 Depth=2 ldr w8, [sp, #76] ldrsw x9, [sp, #60] mov x11, #20 mul x12, x9, x11 add x9, sp, #112 mov x10, x9 add x10, x10, x12 str w8, [x10, #12] ldrsw x8, [sp, #60] mul x10, x8, x11 mov x8, x9 add x8, x8, x10 ldr w8, [x8, #8] ldrsw x10, [sp, #60] mul x12, x10, x11 mov x10, x9 add x10, x10, x12 ldr w10, [x10, #12] mul w8, w8, w10 ldrsw x10, [sp, #60] mul x10, x10, x11 add x9, x9, x10 str w8, [x9, #16] str wzr, [sp, #76] b LBB0_28 LBB0_28: ; Parent Loop BB0_11 Depth=1 ; Parent Loop BB0_13 Depth=2 ; => This Loop Header: Depth=3 ; Child Loop BB0_30 Depth 4 ldr w8, [sp, #76] ldrsw x9, [sp, #60] mov x10, #20 mul x10, x9, x10 add x9, sp, #112 add x9, x9, x10 ldr w9, [x9, #12] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_35 b LBB0_29 LBB0_29: ; in Loop: Header=BB0_28 Depth=3 str wzr, [sp, #72] b LBB0_30 LBB0_30: ; Parent Loop BB0_11 Depth=1 ; Parent Loop BB0_13 Depth=2 ; Parent Loop BB0_28 Depth=3 ; => This Inner Loop Header: Depth=4 ldr w8, [sp, #72] ldrsw x9, [sp, #60] mov x10, #20 mul x10, x9, x10 add x9, sp, #112 add x9, x9, x10 ldr w9, [x9, #8] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_33 b LBB0_31 LBB0_31: ; in Loop: Header=BB0_30 Depth=4 ldr w8, [sp, #76] ldr w9, [sp, #84] add w8, w8, w9 add x10, sp, #6, lsl #12 ; =24576 add x10, x10, #536 mov w9, #200 smaddl x9, w8, w9, x10 ldr w8, [sp, #72] ldr w10, [sp, #80] add w10, w8, w10 mov w8, #0 str w8, [x9, w10, sxtw #2] b LBB0_32 LBB0_32: ; in Loop: Header=BB0_30 Depth=4 ldr w8, [sp, #72] add w8, w8, #1 str w8, [sp, #72] 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 w8, [sp, #76] add w8, w8, #1 str w8, [sp, #76] b LBB0_28 LBB0_35: ; in Loop: Header=BB0_13 Depth=2 ldr w8, [sp, #60] add w8, w8, #1 str w8, [sp, #60] b LBB0_36 LBB0_36: ; in Loop: Header=BB0_13 Depth=2 b LBB0_37 LBB0_37: ; in Loop: Header=BB0_13 Depth=2 ldr w8, [sp, #80] add w8, w8, #1 str w8, [sp, #80] b LBB0_13 LBB0_38: ; in Loop: Header=BB0_11 Depth=1 b LBB0_39 LBB0_39: ; in Loop: Header=BB0_11 Depth=1 ldr w8, [sp, #84] add w8, w8, #1 str w8, [sp, #84] b LBB0_11 LBB0_40: mov w8, #-1 str w8, [sp, #68] str wzr, [sp, #84] b LBB0_41 LBB0_41: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #84] ldr w9, [sp, #60] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_46 b LBB0_42 LBB0_42: ; in Loop: Header=BB0_41 Depth=1 ldrsw x8, [sp, #84] mov x9, #20 mul x9, x8, x9 add x8, sp, #112 add x8, x8, x9 ldr w8, [x8, #8] ldr w9, [sp, #68] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB0_44 b LBB0_43 LBB0_43: ; in Loop: Header=BB0_41 Depth=1 ldrsw x8, [sp, #84] mov x9, #20 mul x9, x8, x9 add x8, sp, #112 add x8, x8, x9 ldr w8, [x8, #8] str w8, [sp, #68] ldr w8, [sp, #84] str w8, [sp, #64] b LBB0_44 LBB0_44: ; in Loop: Header=BB0_41 Depth=1 b LBB0_45 LBB0_45: ; in Loop: Header=BB0_41 Depth=1 ldr w8, [sp, #84] add w8, w8, #1 str w8, [sp, #84] b LBB0_41 LBB0_46: ldrsw x8, [sp, #64] mov x14, #20 mul x9, x8, x14 add x8, sp, #112 ldr w9, [x8, x9] ; implicit-def: $x13 mov x13, x9 ldrsw x9, [sp, #64] mul x10, x9, x14 mov x9, x8 add x9, x9, x10 ldr w9, [x9, #4] ; implicit-def: $x12 mov x12, x9 ldrsw x9, [sp, #64] mul x10, x9, x14 mov x9, x8 add x9, x9, x10 ldr w9, [x9, #8] ; implicit-def: $x11 mov x11, x9 ldrsw x9, [sp, #64] mul x10, x9, x14 mov x9, x8 add x9, x9, x10 ldr w9, [x9, #12] ; implicit-def: $x10 mov x10, x9 ldrsw x9, [sp, #64] mul x9, x9, x14 add x8, x8, x9 ldr w9, [x8, #16] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x13, [x9] str x12, [x9, #8] str x11, [x9, #16] str x10, [x9, #24] str x8, [x9, #32] adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf mov w8, #-1 str w8, [sp, #68] str wzr, [sp, #84] b LBB0_47 LBB0_47: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #84] ldr w9, [sp, #60] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_52 b LBB0_48 LBB0_48: ; in Loop: Header=BB0_47 Depth=1 ldrsw x8, [sp, #84] mov x9, #20 mul x9, x8, x9 add x8, sp, #112 add x8, x8, x9 ldr w8, [x8, #16] ldr w9, [sp, #68] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB0_50 b LBB0_49 LBB0_49: ; in Loop: Header=BB0_47 Depth=1 ldrsw x8, [sp, #84] mov x9, #20 mul x9, x8, x9 add x8, sp, #112 add x8, x8, x9 ldr w8, [x8, #16] str w8, [sp, #68] ldr w8, [sp, #84] str w8, [sp, #64] b LBB0_50 LBB0_50: ; in Loop: Header=BB0_47 Depth=1 b LBB0_51 LBB0_51: ; in Loop: Header=BB0_47 Depth=1 ldr w8, [sp, #84] add w8, w8, #1 str w8, [sp, #84] b LBB0_47 LBB0_52: ldrsw x8, [sp, #64] mov x14, #20 mul x9, x8, x14 add x8, sp, #112 ldr w9, [x8, x9] ; implicit-def: $x13 mov x13, x9 ldrsw x9, [sp, #64] mul x10, x9, x14 mov x9, x8 add x9, x9, x10 ldr w9, [x9, #4] ; implicit-def: $x12 mov x12, x9 ldrsw x9, [sp, #64] mul x10, x9, x14 mov x9, x8 add x9, x9, x10 ldr w9, [x9, #8] ; implicit-def: $x11 mov x11, x9 ldrsw x9, [sp, #64] mul x10, x9, x14 mov x9, x8 add x9, x9, x10 ldr w9, [x9, #12] ; implicit-def: $x10 mov x10, x9 ldrsw x9, [sp, #64] mul x9, x9, x14 add x8, x8, x9 ldr w9, [x8, #16] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x13, [x9] str x12, [x9, #8] str x11, [x9, #16] str x10, [x9, #24] str x8, [x9, #32] adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf mov w8, #-1 str w8, [sp, #68] str wzr, [sp, #84] b LBB0_53 LBB0_53: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #84] ldr w9, [sp, #60] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_58 b LBB0_54 LBB0_54: ; in Loop: Header=BB0_53 Depth=1 ldrsw x8, [sp, #84] mov x9, #20 mul x9, x8, x9 add x8, sp, #112 add x8, x8, x9 ldr w8, [x8, #12] ldr w9, [sp, #68] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB0_56 b LBB0_55 LBB0_55: ; in Loop: Header=BB0_53 Depth=1 ldrsw x8, [sp, #84] mov x9, #20 mul x9, x8, x9 add x8, sp, #112 add x8, x8, x9 ldr w8, [x8, #12] str w8, [sp, #68] ldr w8, [sp, #84] str w8, [sp, #64] b LBB0_56 LBB0_56: ; in Loop: Header=BB0_53 Depth=1 b LBB0_57 LBB0_57: ; in Loop: Header=BB0_53 Depth=1 ldr w8, [sp, #84] add w8, w8, #1 str w8, [sp, #84] b LBB0_53 LBB0_58: ldrsw x8, [sp, #64] mov x14, #20 mul x9, x8, x14 add x8, sp, #112 ldr w9, [x8, x9] ; implicit-def: $x13 mov x13, x9 ldrsw x9, [sp, #64] mul x10, x9, x14 mov x9, x8 add x9, x9, x10 ldr w9, [x9, #4] ; implicit-def: $x12 mov x12, x9 ldrsw x9, [sp, #64] mul x10, x9, x14 mov x9, x8 add x9, x9, x10 ldr w9, [x9, #8] ; implicit-def: $x11 mov x11, x9 ldrsw x9, [sp, #64] mul x10, x9, x14 mov x9, x8 add x9, x9, x10 ldr w9, [x9, #12] ; implicit-def: $x10 mov x10, x9 ldrsw x9, [sp, #64] mul x9, x9, x14 add x8, x8, x9 ldr w9, [x8, #16] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x13, [x9] str x12, [x9, #8] str x11, [x9, #16] str x10, [x9, #24] str x8, [x9, #32] adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@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_60 b LBB0_59 LBB0_59: bl ___stack_chk_fail LBB0_60: mov w0, #0 add sp, sp, #8, lsl #12 ; =32768 add sp, sp, #2352 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 "mappa.txt" l_.str.1: ; @.str.1 .asciz "r" l_.str.2: ; @.str.2 .asciz "%d %d" l_.str.3: ; @.str.3 .asciz "%d" l_.str.4: ; @.str.4 .asciz "Max base: <%d, %d>, b=%d, h=%d, Area=%d\n" l_.str.5: ; @.str.5 .asciz "Max area: <%d, %d>, b=%d, h=%d, Area=%d\n" l_.str.6: ; @.str.6 .asciz "Max altezza: <%d, %d>, b=%d, h=%d, Area=%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 $35104, %eax ## imm = 0x8920 callq ____chkstk_darwin subq %rax, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -35028(%rbp) movl %edi, -35032(%rbp) movq %rsi, -35040(%rbp) movl $0, -35076(%rbp) leaq L_.str(%rip), %rdi leaq L_.str.1(%rip), %rsi callq _fopen movq %rax, -35088(%rbp) cmpq $0, -35088(%rbp) jne LBB0_2 ## %bb.1: movl $1, %edi callq _exit LBB0_2: movq -35088(%rbp), %rdi leaq L_.str.2(%rip), %rsi leaq -35044(%rbp), %rdx leaq -35048(%rbp), %rcx movb $0, %al callq _fscanf movl $0, -35052(%rbp) LBB0_3: ## =>This Loop Header: Depth=1 ## Child Loop BB0_5 Depth 2 movl -35052(%rbp), %eax cmpl -35044(%rbp), %eax jge LBB0_10 ## %bb.4: ## in Loop: Header=BB0_3 Depth=1 movl $0, -35056(%rbp) LBB0_5: ## Parent Loop BB0_3 Depth=1 ## => This Inner Loop Header: Depth=2 movl -35056(%rbp), %eax cmpl -35048(%rbp), %eax jge LBB0_8 ## %bb.6: ## in Loop: Header=BB0_5 Depth=2 movq -35088(%rbp), %rdi movslq -35052(%rbp), %rax leaq -10016(%rbp), %rdx imulq $200, %rax, %rax addq %rax, %rdx movslq -35056(%rbp), %rax shlq $2, %rax addq %rax, %rdx leaq L_.str.3(%rip), %rsi movb $0, %al callq _fscanf ## %bb.7: ## in Loop: Header=BB0_5 Depth=2 movl -35056(%rbp), %eax addl $1, %eax movl %eax, -35056(%rbp) jmp LBB0_5 LBB0_8: ## in Loop: Header=BB0_3 Depth=1 jmp LBB0_9 LBB0_9: ## in Loop: Header=BB0_3 Depth=1 movl -35052(%rbp), %eax addl $1, %eax movl %eax, -35052(%rbp) jmp LBB0_3 LBB0_10: movq -35088(%rbp), %rdi callq _fclose movl $0, -35052(%rbp) LBB0_11: ## =>This Loop Header: Depth=1 ## Child Loop BB0_13 Depth 2 ## Child Loop BB0_16 Depth 3 ## Child Loop BB0_22 Depth 3 ## Child Loop BB0_28 Depth 3 ## Child Loop BB0_30 Depth 4 movl -35052(%rbp), %eax cmpl -35044(%rbp), %eax jge LBB0_40 ## %bb.12: ## in Loop: Header=BB0_11 Depth=1 movl $0, -35056(%rbp) LBB0_13: ## Parent Loop BB0_11 Depth=1 ## => This Loop Header: Depth=2 ## Child Loop BB0_16 Depth 3 ## Child Loop BB0_22 Depth 3 ## Child Loop BB0_28 Depth 3 ## Child Loop BB0_30 Depth 4 movl -35056(%rbp), %eax cmpl -35048(%rbp), %eax jge LBB0_38 ## %bb.14: ## in Loop: Header=BB0_13 Depth=2 movslq -35052(%rbp), %rcx leaq -10016(%rbp), %rax imulq $200, %rcx, %rcx addq %rcx, %rax movslq -35056(%rbp), %rcx cmpl $0, (%rax,%rcx,4) je LBB0_36 ## %bb.15: ## in Loop: Header=BB0_13 Depth=2 movl -35052(%rbp), %ecx movslq -35076(%rbp), %rdx leaq -35024(%rbp), %rax imulq $20, %rdx, %rdx addq %rdx, %rax movl %ecx, (%rax) movl -35056(%rbp), %ecx movslq -35076(%rbp), %rdx leaq -35024(%rbp), %rax imulq $20, %rdx, %rdx addq %rdx, %rax movl %ecx, 4(%rax) movl $0, -35060(%rbp) LBB0_16: ## Parent Loop BB0_11 Depth=1 ## Parent Loop BB0_13 Depth=2 ## => This Inner Loop Header: Depth=3 movslq -35052(%rbp), %rax leaq -10016(%rbp), %rcx imulq $200, %rax, %rax addq %rax, %rcx movl -35060(%rbp), %eax addl -35056(%rbp), %eax movslq %eax, %rdx xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $0, (%rcx,%rdx,4) movb %al, -35089(%rbp) ## 1-byte Spill je LBB0_18 ## %bb.17: ## in Loop: Header=BB0_16 Depth=3 movl -35060(%rbp), %eax addl -35056(%rbp), %eax cmpl -35048(%rbp), %eax setl %al movb %al, -35089(%rbp) ## 1-byte Spill LBB0_18: ## in Loop: Header=BB0_16 Depth=3 movb -35089(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB0_19 jmp LBB0_21 LBB0_19: ## in Loop: Header=BB0_16 Depth=3 jmp LBB0_20 LBB0_20: ## in Loop: Header=BB0_16 Depth=3 movl -35060(%rbp), %eax addl $1, %eax movl %eax, -35060(%rbp) jmp LBB0_16 LBB0_21: ## in Loop: Header=BB0_13 Depth=2 movl -35060(%rbp), %ecx movslq -35076(%rbp), %rdx leaq -35024(%rbp), %rax imulq $20, %rdx, %rdx addq %rdx, %rax movl %ecx, 8(%rax) movl $0, -35060(%rbp) LBB0_22: ## Parent Loop BB0_11 Depth=1 ## Parent Loop BB0_13 Depth=2 ## => This Inner Loop Header: Depth=3 movl -35060(%rbp), %eax addl -35052(%rbp), %eax cltq leaq -10016(%rbp), %rcx imulq $200, %rax, %rax addq %rax, %rcx movslq -35056(%rbp), %rdx xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $0, (%rcx,%rdx,4) movb %al, -35090(%rbp) ## 1-byte Spill je LBB0_24 ## %bb.23: ## in Loop: Header=BB0_22 Depth=3 movl -35060(%rbp), %eax addl -35052(%rbp), %eax cmpl -35044(%rbp), %eax setl %al movb %al, -35090(%rbp) ## 1-byte Spill LBB0_24: ## in Loop: Header=BB0_22 Depth=3 movb -35090(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB0_25 jmp LBB0_27 LBB0_25: ## in Loop: Header=BB0_22 Depth=3 jmp LBB0_26 LBB0_26: ## in Loop: Header=BB0_22 Depth=3 movl -35060(%rbp), %eax addl $1, %eax movl %eax, -35060(%rbp) jmp LBB0_22 LBB0_27: ## in Loop: Header=BB0_13 Depth=2 movl -35060(%rbp), %ecx movslq -35076(%rbp), %rdx leaq -35024(%rbp), %rax imulq $20, %rdx, %rdx addq %rdx, %rax movl %ecx, 12(%rax) movslq -35076(%rbp), %rcx leaq -35024(%rbp), %rax imulq $20, %rcx, %rcx addq %rcx, %rax movl 8(%rax), %ecx movslq -35076(%rbp), %rdx leaq -35024(%rbp), %rax imulq $20, %rdx, %rdx addq %rdx, %rax imull 12(%rax), %ecx movslq -35076(%rbp), %rdx leaq -35024(%rbp), %rax imulq $20, %rdx, %rdx addq %rdx, %rax movl %ecx, 16(%rax) movl $0, -35060(%rbp) LBB0_28: ## Parent Loop BB0_11 Depth=1 ## Parent Loop BB0_13 Depth=2 ## => This Loop Header: Depth=3 ## Child Loop BB0_30 Depth 4 movl -35060(%rbp), %eax movslq -35076(%rbp), %rdx leaq -35024(%rbp), %rcx imulq $20, %rdx, %rdx addq %rdx, %rcx cmpl 12(%rcx), %eax jge LBB0_35 ## %bb.29: ## in Loop: Header=BB0_28 Depth=3 movl $0, -35064(%rbp) LBB0_30: ## Parent Loop BB0_11 Depth=1 ## Parent Loop BB0_13 Depth=2 ## Parent Loop BB0_28 Depth=3 ## => This Inner Loop Header: Depth=4 movl -35064(%rbp), %eax movslq -35076(%rbp), %rdx leaq -35024(%rbp), %rcx imulq $20, %rdx, %rdx addq %rdx, %rcx cmpl 8(%rcx), %eax jge LBB0_33 ## %bb.31: ## in Loop: Header=BB0_30 Depth=4 movl -35060(%rbp), %eax addl -35052(%rbp), %eax movslq %eax, %rcx leaq -10016(%rbp), %rax imulq $200, %rcx, %rcx addq %rcx, %rax movl -35064(%rbp), %ecx addl -35056(%rbp), %ecx movslq %ecx, %rcx movl $0, (%rax,%rcx,4) ## %bb.32: ## in Loop: Header=BB0_30 Depth=4 movl -35064(%rbp), %eax addl $1, %eax movl %eax, -35064(%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 movl -35060(%rbp), %eax addl $1, %eax movl %eax, -35060(%rbp) jmp LBB0_28 LBB0_35: ## in Loop: Header=BB0_13 Depth=2 movl -35076(%rbp), %eax addl $1, %eax movl %eax, -35076(%rbp) LBB0_36: ## in Loop: Header=BB0_13 Depth=2 jmp LBB0_37 LBB0_37: ## in Loop: Header=BB0_13 Depth=2 movl -35056(%rbp), %eax addl $1, %eax movl %eax, -35056(%rbp) jmp LBB0_13 LBB0_38: ## in Loop: Header=BB0_11 Depth=1 jmp LBB0_39 LBB0_39: ## in Loop: Header=BB0_11 Depth=1 movl -35052(%rbp), %eax addl $1, %eax movl %eax, -35052(%rbp) jmp LBB0_11 LBB0_40: movl $-1, -35068(%rbp) movl $0, -35052(%rbp) LBB0_41: ## =>This Inner Loop Header: Depth=1 movl -35052(%rbp), %eax cmpl -35076(%rbp), %eax jge LBB0_46 ## %bb.42: ## in Loop: Header=BB0_41 Depth=1 movslq -35052(%rbp), %rcx leaq -35024(%rbp), %rax imulq $20, %rcx, %rcx addq %rcx, %rax movl 8(%rax), %eax cmpl -35068(%rbp), %eax jle LBB0_44 ## %bb.43: ## in Loop: Header=BB0_41 Depth=1 movslq -35052(%rbp), %rcx leaq -35024(%rbp), %rax imulq $20, %rcx, %rcx addq %rcx, %rax movl 8(%rax), %eax movl %eax, -35068(%rbp) movl -35052(%rbp), %eax movl %eax, -35072(%rbp) LBB0_44: ## in Loop: Header=BB0_41 Depth=1 jmp LBB0_45 LBB0_45: ## in Loop: Header=BB0_41 Depth=1 movl -35052(%rbp), %eax addl $1, %eax movl %eax, -35052(%rbp) jmp LBB0_41 LBB0_46: movslq -35072(%rbp), %rcx leaq -35024(%rbp), %rax imulq $20, %rcx, %rcx addq %rcx, %rax movl (%rax), %esi movslq -35072(%rbp), %rcx leaq -35024(%rbp), %rax imulq $20, %rcx, %rcx addq %rcx, %rax movl 4(%rax), %edx movslq -35072(%rbp), %rcx leaq -35024(%rbp), %rax imulq $20, %rcx, %rcx addq %rcx, %rax movl 8(%rax), %ecx movslq -35072(%rbp), %rdi leaq -35024(%rbp), %rax imulq $20, %rdi, %rdi addq %rdi, %rax movl 12(%rax), %r8d movslq -35072(%rbp), %rdi leaq -35024(%rbp), %rax imulq $20, %rdi, %rdi addq %rdi, %rax movl 16(%rax), %r9d leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf movl $-1, -35068(%rbp) movl $0, -35052(%rbp) LBB0_47: ## =>This Inner Loop Header: Depth=1 movl -35052(%rbp), %eax cmpl -35076(%rbp), %eax jge LBB0_52 ## %bb.48: ## in Loop: Header=BB0_47 Depth=1 movslq -35052(%rbp), %rcx leaq -35024(%rbp), %rax imulq $20, %rcx, %rcx addq %rcx, %rax movl 16(%rax), %eax cmpl -35068(%rbp), %eax jle LBB0_50 ## %bb.49: ## in Loop: Header=BB0_47 Depth=1 movslq -35052(%rbp), %rcx leaq -35024(%rbp), %rax imulq $20, %rcx, %rcx addq %rcx, %rax movl 16(%rax), %eax movl %eax, -35068(%rbp) movl -35052(%rbp), %eax movl %eax, -35072(%rbp) LBB0_50: ## in Loop: Header=BB0_47 Depth=1 jmp LBB0_51 LBB0_51: ## in Loop: Header=BB0_47 Depth=1 movl -35052(%rbp), %eax addl $1, %eax movl %eax, -35052(%rbp) jmp LBB0_47 LBB0_52: movslq -35072(%rbp), %rcx leaq -35024(%rbp), %rax imulq $20, %rcx, %rcx addq %rcx, %rax movl (%rax), %esi movslq -35072(%rbp), %rcx leaq -35024(%rbp), %rax imulq $20, %rcx, %rcx addq %rcx, %rax movl 4(%rax), %edx movslq -35072(%rbp), %rcx leaq -35024(%rbp), %rax imulq $20, %rcx, %rcx addq %rcx, %rax movl 8(%rax), %ecx movslq -35072(%rbp), %rdi leaq -35024(%rbp), %rax imulq $20, %rdi, %rdi addq %rdi, %rax movl 12(%rax), %r8d movslq -35072(%rbp), %rdi leaq -35024(%rbp), %rax imulq $20, %rdi, %rdi addq %rdi, %rax movl 16(%rax), %r9d leaq L_.str.5(%rip), %rdi movb $0, %al callq _printf movl $-1, -35068(%rbp) movl $0, -35052(%rbp) LBB0_53: ## =>This Inner Loop Header: Depth=1 movl -35052(%rbp), %eax cmpl -35076(%rbp), %eax jge LBB0_58 ## %bb.54: ## in Loop: Header=BB0_53 Depth=1 movslq -35052(%rbp), %rcx leaq -35024(%rbp), %rax imulq $20, %rcx, %rcx addq %rcx, %rax movl 12(%rax), %eax cmpl -35068(%rbp), %eax jle LBB0_56 ## %bb.55: ## in Loop: Header=BB0_53 Depth=1 movslq -35052(%rbp), %rcx leaq -35024(%rbp), %rax imulq $20, %rcx, %rcx addq %rcx, %rax movl 12(%rax), %eax movl %eax, -35068(%rbp) movl -35052(%rbp), %eax movl %eax, -35072(%rbp) LBB0_56: ## in Loop: Header=BB0_53 Depth=1 jmp LBB0_57 LBB0_57: ## in Loop: Header=BB0_53 Depth=1 movl -35052(%rbp), %eax addl $1, %eax movl %eax, -35052(%rbp) jmp LBB0_53 LBB0_58: movslq -35072(%rbp), %rcx leaq -35024(%rbp), %rax imulq $20, %rcx, %rcx addq %rcx, %rax movl (%rax), %esi movslq -35072(%rbp), %rcx leaq -35024(%rbp), %rax imulq $20, %rcx, %rcx addq %rcx, %rax movl 4(%rax), %edx movslq -35072(%rbp), %rcx leaq -35024(%rbp), %rax imulq $20, %rcx, %rcx addq %rcx, %rax movl 8(%rax), %ecx movslq -35072(%rbp), %rdi leaq -35024(%rbp), %rax imulq $20, %rdi, %rdi addq %rdi, %rax movl 12(%rax), %r8d movslq -35072(%rbp), %rdi leaq -35024(%rbp), %rax imulq $20, %rdi, %rdi addq %rdi, %rax movl 16(%rax), %r9d leaq L_.str.6(%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_60 ## %bb.59: xorl %eax, %eax addq $35104, %rsp ## imm = 0x8920 popq %rbp retq LBB0_60: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "mappa.txt" L_.str.1: ## @.str.1 .asciz "r" L_.str.2: ## @.str.2 .asciz "%d %d" L_.str.3: ## @.str.3 .asciz "%d" L_.str.4: ## @.str.4 .asciz "Max base: <%d, %d>, b=%d, h=%d, Area=%d\n" L_.str.5: ## @.str.5 .asciz "Max area: <%d, %d>, b=%d, h=%d, Area=%d\n" L_.str.6: ## @.str.6 .asciz "Max altezza: <%d, %d>, b=%d, h=%d, Area=%d\n" .subsections_via_symbols
the_stack_data/167330470.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _strlen ; -- Begin function strlen .p2align 2 _strlen: ; @strlen .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] str xzr, [sp] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #8] ldr x9, [sp] add x8, x8, x9 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 x8, [sp] add x8, x8, #1 str x8, [sp] b LBB0_1 LBB0_3: ldr x0, [sp] add sp, sp, #16 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _strlen ## -- Begin function strlen .p2align 4, 0x90 _strlen: ## @strlen .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) movq $0, -16(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movq -8(%rbp), %rax movq -16(%rbp), %rcx cmpb $0, (%rax,%rcx) je LBB0_3 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movq -16(%rbp), %rax addq $1, %rax movq %rax, -16(%rbp) jmp LBB0_1 LBB0_3: movq -16(%rbp), %rax popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/373306.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] 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, #-12] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-8] subs w8, w8, #1 cset w8, le tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-8] subs w9, w8, #1 ldur w8, [x29, #-12] add w8, w8, w9 stur w8, [x29, #-12] ldur w8, [x29, #-8] subs w8, w8, #1 stur w8, [x29, #-8] b LBB0_1 LBB0_3: 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 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 number : " l_.str.1: ; @.str.1 .asciz "%d" l_.str.2: ; @.str.2 .asciz "total = %d" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) movl $0, -12(%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, -12(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 cmpl $1, -8(%rbp) jle LBB0_3 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl -8(%rbp), %eax subl $1, %eax addl -12(%rbp), %eax movl %eax, -12(%rbp) movl -8(%rbp), %eax addl $-1, %eax movl %eax, -8(%rbp) jmp LBB0_1 LBB0_3: movl -12(%rbp), %esi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "enter number : " L_.str.1: ## @.str.1 .asciz "%d" L_.str.2: ## @.str.2 .asciz "total = %d" .subsections_via_symbols
the_stack_data/140765778.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _print_array ; -- Begin function print_array .p2align 2 _print_array: ; @print_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] stur w1, [x29, #-12] str w2, [sp, #16] str wzr, [sp, #12] b LBB0_1 LBB0_1: ; =>This Loop Header: Depth=1 ; Child Loop BB0_3 Depth 2 ldr w8, [sp, #12] ldur w9, [x29, #-12] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_8 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 str wzr, [sp, #8] b LBB0_3 LBB0_3: ; Parent Loop BB0_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #8] ldr w9, [sp, #16] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_6 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_3 Depth=2 ldur x8, [x29, #-8] ldr w9, [sp, #12] ldr w10, [sp, #16] mul w9, w9, w10 ldr w10, [sp, #8] add w9, w9, w10 ldr w8, [x8, w9, sxtw #2] subs w8, w8, #1 ldur x9, [x29, #-8] ldr w10, [sp, #12] ldr w11, [sp, #16] mul w10, w10, w11 ldr w11, [sp, #8] add w10, w10, w11 str w8, [x9, w10, sxtw #2] ldur x8, [x29, #-8] ldr w9, [sp, #12] ldr w10, [sp, #16] mul w9, w9, w10 ldr w10, [sp, #8] add w9, w9, w10 ldr w9, [x8, w9, sxtw #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, #8] add w8, w8, #1 str w8, [sp, #8] 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 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB0_1 LBB0_8: adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _set_array ; -- Begin function set_array .p2align 2 _set_array: ; @set_array .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #8] str w1, [sp, #4] str wzr, [sp] b LBB1_1 LBB1_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp] ldr w9, [sp, #4] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_7 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 bl _drand48 fmov d1, #0.50000000 fcmp d0, d1 cset w8, pl tbnz w8, #0, LBB1_4 b LBB1_3 LBB1_3: ; in Loop: Header=BB1_1 Depth=1 ldr x9, [sp, #8] ldrsw x10, [sp] mov w8, #1 str w8, [x9, x10, lsl #2] b LBB1_5 LBB1_4: ; in Loop: Header=BB1_1 Depth=1 ldr x9, [sp, #8] ldrsw x10, [sp] mov w8, #0 str w8, [x9, x10, lsl #2] b LBB1_5 LBB1_5: ; in Loop: Header=BB1_1 Depth=1 b LBB1_6 LBB1_6: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp] add w8, w8, #1 str w8, [sp] b LBB1_1 LBB1_7: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _do_array ; -- Begin function do_array .p2align 2 _do_array: ; @do_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 mov w8, #3 stur w8, [x29, #-4] mov w8, #4 stur w8, [x29, #-8] ldur w8, [x29, #-4] ldur w9, [x29, #-8] mul w8, w8, w9 stur w8, [x29, #-12] ldursw x9, [x29, #-12] mov x8, #4 mul x0, x8, x9 bl _malloc str x0, [sp, #8] ldr x0, [sp, #8] ldur w1, [x29, #-12] bl _set_array ldr x0, [sp, #8] ldur w1, [x29, #-4] ldur w2, [x29, #-8] bl _print_array ldr x0, [sp, #8] bl _free ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _do_array2 ; -- Begin function do_array2 .p2align 2 _do_array2: ; @do_array2 .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 w8, #3 str w8, [sp, #20] mov w8, #4 str w8, [sp, #16] ldr w8, [sp, #20] ldr w9, [sp, #16] mul w8, w8, w9 str w8, [sp, #12] ldr w1, [sp, #12] add x0, sp, #24 str x0, [sp] ; 8-byte Folded Spill bl _set_array ldr x0, [sp] ; 8-byte Folded Reload ldr w1, [sp, #20] ldr w2, [sp, #16] bl _print_array ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB3_2 b LBB3_1 LBB3_1: bl ___stack_chk_fail LBB3_2: ldp x29, x30, [sp, #80] ; 16-byte Folded Reload add sp, sp, #96 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: stp 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 _do_array bl _do_array2 mov w0, #0 ldp x29, x30, [sp], #16 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d\t" 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 _print_array ## -- Begin function print_array .p2align 4, 0x90 _print_array: ## @print_array .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) movl %edx, -16(%rbp) movl $0, -20(%rbp) LBB0_1: ## =>This Loop Header: Depth=1 ## Child Loop BB0_3 Depth 2 movl -20(%rbp), %eax cmpl -12(%rbp), %eax jge LBB0_8 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl $0, -24(%rbp) LBB0_3: ## Parent Loop BB0_1 Depth=1 ## => This Inner Loop Header: Depth=2 movl -24(%rbp), %eax cmpl -16(%rbp), %eax jge LBB0_6 ## %bb.4: ## in Loop: Header=BB0_3 Depth=2 movq -8(%rbp), %rax movl -20(%rbp), %ecx imull -16(%rbp), %ecx addl -24(%rbp), %ecx movslq %ecx, %rcx movl (%rax,%rcx,4), %edx subl $1, %edx movq -8(%rbp), %rax movl -20(%rbp), %ecx imull -16(%rbp), %ecx addl -24(%rbp), %ecx movslq %ecx, %rcx movl %edx, (%rax,%rcx,4) movq -8(%rbp), %rax movl -20(%rbp), %ecx imull -16(%rbp), %ecx addl -24(%rbp), %ecx movslq %ecx, %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 -24(%rbp), %eax addl $1, %eax movl %eax, -24(%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 -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB0_1 LBB0_8: leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ## -- Begin function set_array LCPI1_0: .quad 0x3fe0000000000000 ## double 0.5 .section __TEXT,__text,regular,pure_instructions .globl _set_array .p2align 4, 0x90 _set_array: ## @set_array .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) movl $0, -16(%rbp) LBB1_1: ## =>This Inner Loop Header: Depth=1 movl -16(%rbp), %eax cmpl -12(%rbp), %eax jge LBB1_7 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 callq _drand48 movaps %xmm0, %xmm1 movsd LCPI1_0(%rip), %xmm0 ## xmm0 = mem[0],zero ucomisd %xmm1, %xmm0 jbe LBB1_4 ## %bb.3: ## in Loop: Header=BB1_1 Depth=1 movq -8(%rbp), %rax movslq -16(%rbp), %rcx movl $1, (%rax,%rcx,4) jmp LBB1_5 LBB1_4: ## in Loop: Header=BB1_1 Depth=1 movq -8(%rbp), %rax movslq -16(%rbp), %rcx movl $0, (%rax,%rcx,4) LBB1_5: ## in Loop: Header=BB1_1 Depth=1 jmp LBB1_6 LBB1_6: ## in Loop: Header=BB1_1 Depth=1 movl -16(%rbp), %eax addl $1, %eax movl %eax, -16(%rbp) jmp LBB1_1 LBB1_7: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _do_array ## -- Begin function do_array .p2align 4, 0x90 _do_array: ## @do_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 movl $3, -4(%rbp) movl $4, -8(%rbp) movl -4(%rbp), %eax imull -8(%rbp), %eax movl %eax, -12(%rbp) movslq -12(%rbp), %rdi shlq $2, %rdi callq _malloc movq %rax, -24(%rbp) movq -24(%rbp), %rdi movl -12(%rbp), %esi callq _set_array movq -24(%rbp), %rdi movl -4(%rbp), %esi movl -8(%rbp), %edx callq _print_array movq -24(%rbp), %rdi callq _free addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _do_array2 ## -- Begin function do_array2 .p2align 4, 0x90 _do_array2: ## @do_array2 .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 $3, -68(%rbp) movl $4, -72(%rbp) movl -68(%rbp), %eax imull -72(%rbp), %eax movl %eax, -76(%rbp) leaq -64(%rbp), %rdi movl -76(%rbp), %esi callq _set_array leaq -64(%rbp), %rdi movl -68(%rbp), %esi movl -72(%rbp), %edx callq _print_array movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB3_2 ## %bb.1: addq $80, %rsp popq %rbp retq LBB3_2: 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 callq _do_array callq _do_array2 xorl %eax, %eax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d\t" L_.str.1: ## @.str.1 .asciz "\n" .subsections_via_symbols
the_stack_data/145451937.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: 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 _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 xorl %eax, %eax popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/142012.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/150880.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _gcd ; -- Begin function gcd .p2align 2 _gcd: ; @gcd .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur w0, [x29, #-4] str w1, [sp, #8] ldur w8, [x29, #-4] ldr w10, [sp, #8] sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: ldr w0, [sp, #8] ldur w8, [x29, #-4] ldr w10, [sp, #8] sdiv w9, w8, w10 mul w9, w9, w10 subs w1, w8, w9 bl _gcd str w0, [sp, #4] ; 4-byte Folded Spill b LBB0_3 LBB0_2: ldr w8, [sp, #8] str w8, [sp, #4] ; 4-byte Folded Spill b LBB0_3 LBB0_3: ldr w0, [sp, #4] ; 4-byte Folded Reload ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #0 str w8, [sp, #8] ; 4-byte Folded Spill stur wzr, [x29, #-4] bl _solve 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 .p2align 2 ; -- Begin function solve _solve: ; @solve .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, #10480 adrp x16, ___chkstk_darwin@GOTPAGE ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF] blr x16 sub sp, sp, #2, lsl #12 ; =8192 sub sp, sp, #2288 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] mov x9, sp add x8, sp, #68 str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _scanf b LBB2_1 LBB2_1: ; =>This Loop Header: Depth=1 ; Child Loop BB2_3 Depth 2 ; Child Loop BB2_15 Depth 2 ; Child Loop BB2_17 Depth 3 ldr w8, [sp, #68] subs w9, w8, #1 str w9, [sp, #68] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB2_25 b LBB2_2 LBB2_2: ; in Loop: Header=BB2_1 Depth=1 adrp x8, ___stdinp@GOTPAGE ldr x8, [x8, ___stdinp@GOTPAGEOFF] ldr x2, [x8] add x0, sp, #72 str x0, [sp, #24] ; 8-byte Folded Spill mov w1, #10000 bl _fgets ldr x8, [sp, #24] ; 8-byte Folded Reload mov w9, #1 str w9, [sp, #52] str wzr, [sp, #48] str wzr, [sp, #44] str x8, [sp, #56] b LBB2_3 LBB2_3: ; Parent Loop BB2_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr x8, [sp, #56] ldrsb w8, [x8] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB2_12 b LBB2_4 LBB2_4: ; in Loop: Header=BB2_3 Depth=2 ldr x8, [sp, #56] ldrsb w8, [x8] subs w8, w8, #48 cset w8, lt tbnz w8, #0, LBB2_7 b LBB2_5 LBB2_5: ; in Loop: Header=BB2_3 Depth=2 ldr x8, [sp, #56] ldrsb w8, [x8] subs w8, w8, #57 cset w8, gt tbnz w8, #0, LBB2_7 b LBB2_6 LBB2_6: ; in Loop: Header=BB2_3 Depth=2 ldr w9, [sp, #44] ldr w8, [sp, #44] lsl w8, w8, #1 add w8, w8, w9, lsl #3 ldr x9, [sp, #56] ldrsb w9, [x9] eor w9, w9, #0x30 add w8, w8, w9 str w8, [sp, #44] b LBB2_10 LBB2_7: ; in Loop: Header=BB2_3 Depth=2 ldr w8, [sp, #44] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB2_9 b LBB2_8 LBB2_8: ; in Loop: Header=BB2_3 Depth=2 ldr w8, [sp, #44] ldrsw x10, [sp, #48] mov x9, x10 add w9, w9, #1 str w9, [sp, #48] add x9, sp, #2, lsl #12 ; =8192 add x9, x9, #1880 str w8, [x9, x10, lsl #2] b LBB2_9 LBB2_9: ; in Loop: Header=BB2_3 Depth=2 str wzr, [sp, #44] b LBB2_10 LBB2_10: ; in Loop: Header=BB2_3 Depth=2 b LBB2_11 LBB2_11: ; in Loop: Header=BB2_3 Depth=2 ldr x8, [sp, #56] add x8, x8, #1 str x8, [sp, #56] b LBB2_3 LBB2_12: ; in Loop: Header=BB2_1 Depth=1 ldr w8, [sp, #44] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB2_14 b LBB2_13 LBB2_13: ; in Loop: Header=BB2_1 Depth=1 ldr w8, [sp, #44] ldrsw x10, [sp, #48] mov x9, x10 add w9, w9, #1 str w9, [sp, #48] add x9, sp, #2, lsl #12 ; =8192 add x9, x9, #1880 str w8, [x9, x10, lsl #2] b LBB2_14 LBB2_14: ; in Loop: Header=BB2_1 Depth=1 str wzr, [sp, #40] b LBB2_15 LBB2_15: ; Parent Loop BB2_1 Depth=1 ; => This Loop Header: Depth=2 ; Child Loop BB2_17 Depth 3 ldr w8, [sp, #40] ldr w9, [sp, #48] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB2_24 b LBB2_16 LBB2_16: ; in Loop: Header=BB2_15 Depth=2 ldr w8, [sp, #40] add w8, w8, #1 str w8, [sp, #36] b LBB2_17 LBB2_17: ; Parent Loop BB2_1 Depth=1 ; Parent Loop BB2_15 Depth=2 ; => This Inner Loop Header: Depth=3 ldr w8, [sp, #36] ldr w9, [sp, #48] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB2_22 b LBB2_18 LBB2_18: ; in Loop: Header=BB2_17 Depth=3 ldr w8, [sp, #52] str w8, [sp, #20] ; 4-byte Folded Spill ldrsw x9, [sp, #40] add x8, sp, #2, lsl #12 ; =8192 add x8, x8, #1880 ldr w0, [x8, x9, lsl #2] ldrsw x9, [sp, #36] ldr w1, [x8, x9, lsl #2] bl _gcd ldr w8, [sp, #20] ; 4-byte Folded Reload str w0, [sp, #44] subs w8, w8, w0 cset w8, ge tbnz w8, #0, LBB2_20 b LBB2_19 LBB2_19: ; in Loop: Header=BB2_17 Depth=3 ldr w8, [sp, #44] str w8, [sp, #52] b LBB2_20 LBB2_20: ; in Loop: Header=BB2_17 Depth=3 b LBB2_21 LBB2_21: ; in Loop: Header=BB2_17 Depth=3 ldr w8, [sp, #36] add w8, w8, #1 str w8, [sp, #36] b LBB2_17 LBB2_22: ; in Loop: Header=BB2_15 Depth=2 b LBB2_23 LBB2_23: ; in Loop: Header=BB2_15 Depth=2 ldr w8, [sp, #40] add w8, w8, #1 str w8, [sp, #40] b LBB2_15 LBB2_24: ; 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.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf b LBB2_1 LBB2_25: 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_27 b LBB2_26 LBB2_26: bl ___stack_chk_fail LBB2_27: add sp, sp, #2, lsl #12 ; =8192 add sp, sp, #2288 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x28, x27, [sp], #32 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d " l_.str.1: ; @.str.1 .asciz "%d\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _gcd ## -- Begin function gcd .p2align 4, 0x90 _gcd: ## @gcd .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl %edi, -4(%rbp) movl %esi, -8(%rbp) movl -4(%rbp), %eax cltd idivl -8(%rbp) cmpl $0, %edx je LBB0_2 ## %bb.1: movl -8(%rbp), %edi movl -4(%rbp), %eax cltd idivl -8(%rbp) movl %edx, %esi callq _gcd 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), %eax ## 4-byte Reload addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) callq _solve xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function solve _solve: ## @solve .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl $10464, %eax ## imm = 0x28E0 callq ____chkstk_darwin subq %rax, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) leaq L_.str(%rip), %rdi leaq -10420(%rbp), %rsi movb $0, %al callq _scanf LBB2_1: ## =>This Loop Header: Depth=1 ## Child Loop BB2_3 Depth 2 ## Child Loop BB2_15 Depth 2 ## Child Loop BB2_17 Depth 3 movl -10420(%rbp), %eax movl %eax, %ecx addl $-1, %ecx movl %ecx, -10420(%rbp) cmpl $0, %eax je LBB2_25 ## %bb.2: ## in Loop: Header=BB2_1 Depth=1 leaq -10416(%rbp), %rdi movq ___stdinp@GOTPCREL(%rip), %rax movq (%rax), %rdx movl $10000, %esi ## imm = 0x2710 callq _fgets movl $1, -10436(%rbp) movl $0, -10440(%rbp) movl $0, -10444(%rbp) leaq -10416(%rbp), %rax movq %rax, -10432(%rbp) LBB2_3: ## Parent Loop BB2_1 Depth=1 ## => This Inner Loop Header: Depth=2 movq -10432(%rbp), %rax movsbl (%rax), %eax cmpl $0, %eax je LBB2_12 ## %bb.4: ## in Loop: Header=BB2_3 Depth=2 movq -10432(%rbp), %rax movsbl (%rax), %eax cmpl $48, %eax jl LBB2_7 ## %bb.5: ## in Loop: Header=BB2_3 Depth=2 movq -10432(%rbp), %rax movsbl (%rax), %eax cmpl $57, %eax jg LBB2_7 ## %bb.6: ## in Loop: Header=BB2_3 Depth=2 movl -10444(%rbp), %eax shll $3, %eax movl -10444(%rbp), %ecx shll $1, %ecx addl %ecx, %eax movq -10432(%rbp), %rcx movsbl (%rcx), %ecx xorl $48, %ecx addl %ecx, %eax movl %eax, -10444(%rbp) jmp LBB2_10 LBB2_7: ## in Loop: Header=BB2_3 Depth=2 cmpl $0, -10444(%rbp) je LBB2_9 ## %bb.8: ## in Loop: Header=BB2_3 Depth=2 movl -10444(%rbp), %ecx movl -10440(%rbp), %eax movl %eax, %edx addl $1, %edx movl %edx, -10440(%rbp) cltq movl %ecx, -416(%rbp,%rax,4) LBB2_9: ## in Loop: Header=BB2_3 Depth=2 movl $0, -10444(%rbp) LBB2_10: ## in Loop: Header=BB2_3 Depth=2 jmp LBB2_11 LBB2_11: ## in Loop: Header=BB2_3 Depth=2 movq -10432(%rbp), %rax addq $1, %rax movq %rax, -10432(%rbp) jmp LBB2_3 LBB2_12: ## in Loop: Header=BB2_1 Depth=1 cmpl $0, -10444(%rbp) je LBB2_14 ## %bb.13: ## in Loop: Header=BB2_1 Depth=1 movl -10444(%rbp), %ecx movl -10440(%rbp), %eax movl %eax, %edx addl $1, %edx movl %edx, -10440(%rbp) cltq movl %ecx, -416(%rbp,%rax,4) LBB2_14: ## in Loop: Header=BB2_1 Depth=1 movl $0, -10448(%rbp) LBB2_15: ## Parent Loop BB2_1 Depth=1 ## => This Loop Header: Depth=2 ## Child Loop BB2_17 Depth 3 movl -10448(%rbp), %eax cmpl -10440(%rbp), %eax jge LBB2_24 ## %bb.16: ## in Loop: Header=BB2_15 Depth=2 movl -10448(%rbp), %eax addl $1, %eax movl %eax, -10452(%rbp) LBB2_17: ## Parent Loop BB2_1 Depth=1 ## Parent Loop BB2_15 Depth=2 ## => This Inner Loop Header: Depth=3 movl -10452(%rbp), %eax cmpl -10440(%rbp), %eax jge LBB2_22 ## %bb.18: ## in Loop: Header=BB2_17 Depth=3 movl -10436(%rbp), %eax movl %eax, -10456(%rbp) ## 4-byte Spill movslq -10448(%rbp), %rax movl -416(%rbp,%rax,4), %edi movslq -10452(%rbp), %rax movl -416(%rbp,%rax,4), %esi callq _gcd movl %eax, %ecx movl -10456(%rbp), %eax ## 4-byte Reload movl %ecx, -10444(%rbp) cmpl %ecx, %eax jge LBB2_20 ## %bb.19: ## in Loop: Header=BB2_17 Depth=3 movl -10444(%rbp), %eax movl %eax, -10436(%rbp) LBB2_20: ## in Loop: Header=BB2_17 Depth=3 jmp LBB2_21 LBB2_21: ## in Loop: Header=BB2_17 Depth=3 movl -10452(%rbp), %eax addl $1, %eax movl %eax, -10452(%rbp) jmp LBB2_17 LBB2_22: ## in Loop: Header=BB2_15 Depth=2 jmp LBB2_23 LBB2_23: ## in Loop: Header=BB2_15 Depth=2 movl -10448(%rbp), %eax addl $1, %eax movl %eax, -10448(%rbp) jmp LBB2_15 LBB2_24: ## in Loop: Header=BB2_1 Depth=1 movl -10436(%rbp), %esi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf jmp LBB2_1 LBB2_25: movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB2_27 ## %bb.26: addq $10464, %rsp ## imm = 0x28E0 popq %rbp retq LBB2_27: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d " L_.str.1: ## @.str.1 .asciz "%d\n" .subsections_via_symbols
the_stack_data/50138202.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _fib ; -- Begin function fib .p2align 2 _fib: ; @fib .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur w0, [x29, #-4] str w1, [sp, #8] ldur w8, [x29, #-4] subs w0, w8, #1 ldr w1, [sp, #8] bl _fib str w0, [sp, #4] ; 4-byte Folded Spill ldur w8, [x29, #-4] subs w0, w8, #1 ldr w8, [sp, #8] subs w1, w8, #1 bl _fib mov x8, x0 ldr w0, [sp, #4] ; 4-byte Folded Reload add w0, w0, w8 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #0 str w8, [sp, #16] ; 4-byte Folded Spill stur wzr, [x29, #-4] mov w8, #20 stur w8, [x29, #-8] mov w8, #9 stur w8, [x29, #-12] ldur w0, [x29, #-8] ldur w1, [x29, #-12] bl _fib mov x9, sp ; implicit-def: $x8 mov x8, x0 str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldr w0, [sp, #16] ; 4-byte Folded Reload ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _fib ## -- Begin function fib .p2align 4, 0x90 _fib: ## @fib .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl %edi, -4(%rbp) movl %esi, -8(%rbp) movl -4(%rbp), %edi subl $1, %edi movl -8(%rbp), %esi callq _fib movl %eax, -12(%rbp) ## 4-byte Spill movl -4(%rbp), %edi subl $1, %edi movl -8(%rbp), %esi subl $1, %esi callq _fib movl %eax, %ecx movl -12(%rbp), %eax ## 4-byte Reload addl %ecx, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) movl $20, -8(%rbp) movl $9, -12(%rbp) movl -8(%rbp), %edi movl -12(%rbp), %esi callq _fib movl %eax, %esi leaq L_.str(%rip), %rdi movb $0, %al callq _printf xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d" .subsections_via_symbols
the_stack_data/151704746.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _help ; -- Begin function help .p2align 2 _help: ; @help .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 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 _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: mov w0, #0 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "\n\t\tCYTHON HELP\n\n" l_.str.1: ; @.str.1 .asciz "*bin -> bin(decimal) converts a decimal number into binary form\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _help ## -- Begin function help .p2align 4, 0x90 _help: ## @help .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 leaq L_.str.1(%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 xorl %eax, %eax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "\n\t\tCYTHON HELP\n\n" L_.str.1: ## @.str.1 .asciz "*bin -> bin(decimal) converts a decimal number into binary form\n" .subsections_via_symbols
the_stack_data/29824047.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str wzr, [sp, #12] mov w0, #1 add sp, sp, #16 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl $0, -4(%rbp) movl $1, %eax popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/62637814.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, #68] add x0, sp, #72 str x0, [sp, #32] ; 8-byte Folded Spill adrp x1, l___const.main.content@PAGE add x1, x1, l___const.main.content@PAGEOFF mov x2, #64 bl _memcpy ldr x8, [sp, #32] ; 8-byte Folded Reload str x8, [sp, #56] ldr x8, [sp, #72] mov x9, sp str x8, [x9] adrp x0, l_.str.8@PAGE add x0, x0, l_.str.8@PAGEOFF str x0, [sp, #40] ; 8-byte Folded Spill bl _printf ldr x0, [sp, #40] ; 8-byte Folded Reload ldr x8, [sp, #80] mov x9, sp str x8, [x9] bl _printf ldr x0, [sp, #40] ; 8-byte Folded Reload ldr x8, [sp, #72] mov x9, sp str x8, [x9] bl _printf ldr x0, [sp, #72] bl _strlen mov x8, sp str x0, [x8] adrp x0, l_.str.9@PAGE add x0, x0, l_.str.9@PAGEOFF bl _printf str wzr, [sp, #52] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #52] subs w8, w8, #8 cset w8, ge tbnz w8, #0, LBB0_4 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldrsw x9, [sp, #52] add x8, sp, #72 ldr x10, [x8, x9, lsl #3] ldr x8, [sp, #56] ldrsw x9, [sp, #52] ldr x8, [x8, x9, lsl #3] mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x0, l_.str.10@PAGE add x0, x0, l_.str.10@PAGEOFF bl _printf b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #52] add w8, w8, #1 str w8, [sp, #52] b LBB0_1 LBB0_4: b LBB0_5 LBB0_5: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #52] add w9, w8, #1 str w9, [sp, #52] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_9 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_5 Depth=1 ldr w8, [sp, #52] subs w8, w8, #100 cset w8, ne tbnz w8, #0, LBB0_8 b LBB0_7 LBB0_7: b LBB0_9 LBB0_8: ; in Loop: Header=BB0_5 Depth=1 ldr w9, [sp, #52] ; implicit-def: $x8 mov x8, x9 str x8, [sp, #24] ; 8-byte Folded Spill ldr x8, [sp, #56] str x8, [sp, #16] ; 8-byte Folded Spill bl _rand ldr x8, [sp, #16] ; 8-byte Folded Reload ldr x10, [sp, #24] ; 8-byte Folded Reload mov w11, #8 sdiv w9, w0, w11 mul w9, w9, w11 subs w9, w0, w9 ldr x8, [x8, w9, sxtw #3] mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x0, l_.str.11@PAGE add x0, x0, l_.str.11@PAGEOFF bl _printf mov w0, #1 bl _sleep b LBB0_5 LBB0_9: 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: 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 "\347\256\241\347\220\206\345\221\230\347\231\273\351\231\206" l_.str.1: ; @.str.1 .asciz "\346\267\273\345\212\240\347\224\250\346\210\267" l_.str.2: ; @.str.2 .asciz "\345\210\240\351\231\244\347\224\250\346\210\267" l_.str.3: ; @.str.3 .asciz "\344\277\256\346\224\271\347\224\250\346\210\267" l_.str.4: ; @.str.4 .asciz "\344\277\256\346\224\271\345\257\206\347\240\201" l_.str.5: ; @.str.5 .asciz "\345\210\240\351\231\244\345\257\206\347\240\201" l_.str.6: ; @.str.6 .asciz "\345\244\207\344\273\275\345\257\206\347\240\201" l_.str.7: ; @.str.7 .asciz "\347\256\241\347\220\206\345\221\230\351\200\200\345\207\272" .section __DATA,__const .p2align 3 ; @__const.main.content l___const.main.content: .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 .section __TEXT,__cstring,cstring_literals l_.str.8: ; @.str.8 .asciz "%s\n" l_.str.9: ; @.str.9 .asciz "%d\n" l_.str.10: ; @.str.10 .asciz "%s ------%s \n" l_.str.11: ; @.str.11 .asciz "%d ---> %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 $128, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -84(%rbp) leaq -80(%rbp), %rdi leaq l___const.main.content(%rip), %rsi movl $64, %edx callq _memcpy leaq -80(%rbp), %rax movq %rax, -96(%rbp) movq -80(%rbp), %rsi leaq L_.str.8(%rip), %rdi movb $0, %al callq _printf movq -72(%rbp), %rsi leaq L_.str.8(%rip), %rdi movb $0, %al callq _printf movq -80(%rbp), %rsi leaq L_.str.8(%rip), %rdi movb $0, %al callq _printf movq -80(%rbp), %rdi callq _strlen movl %eax, %esi leaq L_.str.9(%rip), %rdi movb $0, %al callq _printf movl $0, -100(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 cmpl $8, -100(%rbp) jge LBB0_4 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movslq -100(%rbp), %rax movq -80(%rbp,%rax,8), %rsi movq -96(%rbp), %rax movslq -100(%rbp), %rcx movq (%rax,%rcx,8), %rdx leaq L_.str.10(%rip), %rdi movb $0, %al callq _printf ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movl -100(%rbp), %eax addl $1, %eax movl %eax, -100(%rbp) jmp LBB0_1 LBB0_4: jmp LBB0_5 LBB0_5: ## =>This Inner Loop Header: Depth=1 movl -100(%rbp), %eax movl %eax, %ecx addl $1, %ecx movl %ecx, -100(%rbp) cmpl $0, %eax je LBB0_9 ## %bb.6: ## in Loop: Header=BB0_5 Depth=1 cmpl $100, -100(%rbp) jne LBB0_8 ## %bb.7: jmp LBB0_9 LBB0_8: ## in Loop: Header=BB0_5 Depth=1 movl -100(%rbp), %eax movl %eax, -116(%rbp) ## 4-byte Spill movq -96(%rbp), %rax movq %rax, -112(%rbp) ## 8-byte Spill callq _rand movl -116(%rbp), %esi ## 4-byte Reload movl $8, %ecx cltd idivl %ecx movq -112(%rbp), %rax ## 8-byte Reload movslq %edx, %rcx movq (%rax,%rcx,8), %rdx leaq L_.str.11(%rip), %rdi movb $0, %al callq _printf movl $1, %edi callq _sleep jmp LBB0_5 LBB0_9: movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_11 ## %bb.10: xorl %eax, %eax addq $128, %rsp popq %rbp retq LBB0_11: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "\347\256\241\347\220\206\345\221\230\347\231\273\351\231\206" L_.str.1: ## @.str.1 .asciz "\346\267\273\345\212\240\347\224\250\346\210\267" L_.str.2: ## @.str.2 .asciz "\345\210\240\351\231\244\347\224\250\346\210\267" L_.str.3: ## @.str.3 .asciz "\344\277\256\346\224\271\347\224\250\346\210\267" L_.str.4: ## @.str.4 .asciz "\344\277\256\346\224\271\345\257\206\347\240\201" L_.str.5: ## @.str.5 .asciz "\345\210\240\351\231\244\345\257\206\347\240\201" L_.str.6: ## @.str.6 .asciz "\345\244\207\344\273\275\345\257\206\347\240\201" L_.str.7: ## @.str.7 .asciz "\347\256\241\347\220\206\345\221\230\351\200\200\345\207\272" .section __DATA,__const .p2align 4 ## @__const.main.content l___const.main.content: .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 .section __TEXT,__cstring,cstring_literals L_.str.8: ## @.str.8 .asciz "%s\n" L_.str.9: ## @.str.9 .asciz "%d\n" L_.str.10: ## @.str.10 .asciz "%s ------%s \n" L_.str.11: ## @.str.11 .asciz "%d ---> %s \n" .subsections_via_symbols
the_stack_data/11973.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _redirect ; -- Begin function redirect .p2align 2 _redirect: ; @redirect .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, #8] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_4 b LBB0_1 LBB0_1: mov w0, #0 bl _close adds w8, w0, #1 cset w8, eq tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: ldr w0, [sp, #8] mov w1, #0 bl _dup2 adds w8, w0, #1 cset w8, ne tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: mov w8, #1 stur w8, [x29, #-4] b LBB0_9 LBB0_4: ldr w8, [sp, #4] subs w8, w8, #1 cset w8, eq tbnz w8, #0, LBB0_8 b LBB0_5 LBB0_5: mov w0, #1 bl _close adds w8, w0, #1 cset w8, eq tbnz w8, #0, LBB0_7 b LBB0_6 LBB0_6: ldr w0, [sp, #4] mov w1, #1 bl _dup2 adds w8, w0, #1 cset w8, ne tbnz w8, #0, LBB0_8 b LBB0_7 LBB0_7: mov w8, #1 stur w8, [x29, #-4] b LBB0_9 LBB0_8: stur wzr, [x29, #-4] b LBB0_9 LBB0_9: 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 _redirect ## -- Begin function redirect .p2align 4, 0x90 _redirect: ## @redirect .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, -8(%rbp) je LBB0_4 ## %bb.1: xorl %edi, %edi callq _close cmpl $-1, %eax je LBB0_3 ## %bb.2: movl -8(%rbp), %edi xorl %esi, %esi callq _dup2 cmpl $-1, %eax jne LBB0_4 LBB0_3: movl $1, -4(%rbp) jmp LBB0_9 LBB0_4: cmpl $1, -12(%rbp) je LBB0_8 ## %bb.5: movl $1, %edi callq _close cmpl $-1, %eax je LBB0_7 ## %bb.6: movl -12(%rbp), %edi movl $1, %esi callq _dup2 cmpl $-1, %eax jne LBB0_8 LBB0_7: movl $1, -4(%rbp) jmp LBB0_9 LBB0_8: movl $0, -4(%rbp) LBB0_9: movl -4(%rbp), %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/99205.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, #60] mov x9, sp add x8, sp, #48 str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _scanf str xzr, [sp, #16] b LBB0_1 LBB0_1: ; =>This Loop Header: Depth=1 ; Child Loop BB0_3 Depth 2 ldr x8, [sp, #16] ldr x9, [sp, #48] subs x8, x8, x9 cset w8, ge tbnz w8, #0, LBB0_14 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 mov x9, sp add x8, sp, #66 str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf str xzr, [sp, #24] str xzr, [sp, #32] str xzr, [sp, #40] b LBB0_3 LBB0_3: ; Parent Loop BB0_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr x9, [sp, #40] add x8, sp, #66 ldrsb w8, [x8, x9] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_9 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_3 Depth=2 ldr x9, [sp, #40] add x8, sp, #66 ldrsb w8, [x8, x9] subs w8, w8, #49 cset w8, ne tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_3 Depth=2 ldr x8, [sp, #32] add x8, x8, #1 str x8, [sp, #32] b LBB0_7 LBB0_6: ; in Loop: Header=BB0_3 Depth=2 ldr x8, [sp, #24] add x8, x8, #1 str x8, [sp, #24] b LBB0_7 LBB0_7: ; in Loop: Header=BB0_3 Depth=2 b LBB0_8 LBB0_8: ; in Loop: Header=BB0_3 Depth=2 ldr x8, [sp, #40] add x8, x8, #1 str x8, [sp, #40] b LBB0_3 LBB0_9: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #32] ldr x9, [sp, #24] subs x8, x8, x9 cset w8, le tbnz w8, #0, LBB0_11 b LBB0_10 LBB0_10: ; in Loop: Header=BB0_1 Depth=1 adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf b LBB0_12 LBB0_11: ; in Loop: Header=BB0_1 Depth=1 adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@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 ldr x8, [sp, #16] add x8, x8, #1 str x8, [sp, #16] b LBB0_1 LBB0_14: 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_16 b LBB0_15 LBB0_15: bl ___stack_chk_fail LBB0_16: 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 "%lld" l_.str.1: ; @.str.1 .asciz "%s" l_.str.2: ; @.str.2 .asciz "WIN\n" l_.str.3: ; @.str.3 .asciz "LOSE\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 $160, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -116(%rbp) leaq L_.str(%rip), %rdi leaq -128(%rbp), %rsi movb $0, %al callq _scanf movq $0, -160(%rbp) LBB0_1: ## =>This Loop Header: Depth=1 ## Child Loop BB0_3 Depth 2 movq -160(%rbp), %rax cmpq -128(%rbp), %rax jge LBB0_14 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 leaq -112(%rbp), %rsi leaq L_.str.1(%rip), %rdi movb $0, %al callq _scanf movq $0, -152(%rbp) movq $0, -144(%rbp) movq $0, -136(%rbp) LBB0_3: ## Parent Loop BB0_1 Depth=1 ## => This Inner Loop Header: Depth=2 movq -136(%rbp), %rax movsbl -112(%rbp,%rax), %eax cmpl $0, %eax je LBB0_9 ## %bb.4: ## in Loop: Header=BB0_3 Depth=2 movq -136(%rbp), %rax movsbl -112(%rbp,%rax), %eax cmpl $49, %eax jne LBB0_6 ## %bb.5: ## in Loop: Header=BB0_3 Depth=2 movq -144(%rbp), %rax addq $1, %rax movq %rax, -144(%rbp) jmp LBB0_7 LBB0_6: ## in Loop: Header=BB0_3 Depth=2 movq -152(%rbp), %rax addq $1, %rax movq %rax, -152(%rbp) LBB0_7: ## in Loop: Header=BB0_3 Depth=2 jmp LBB0_8 LBB0_8: ## in Loop: Header=BB0_3 Depth=2 movq -136(%rbp), %rax addq $1, %rax movq %rax, -136(%rbp) jmp LBB0_3 LBB0_9: ## in Loop: Header=BB0_1 Depth=1 movq -144(%rbp), %rax cmpq -152(%rbp), %rax jle LBB0_11 ## %bb.10: ## in Loop: Header=BB0_1 Depth=1 leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf jmp LBB0_12 LBB0_11: ## in Loop: Header=BB0_1 Depth=1 leaq L_.str.3(%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 movq -160(%rbp), %rax addq $1, %rax movq %rax, -160(%rbp) jmp LBB0_1 LBB0_14: movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_16 ## %bb.15: xorl %eax, %eax addq $160, %rsp popq %rbp retq LBB0_16: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%lld" L_.str.1: ## @.str.1 .asciz "%s" L_.str.2: ## @.str.2 .asciz "WIN\n" L_.str.3: ## @.str.3 .asciz "LOSE\n" .subsections_via_symbols
the_stack_data/363427.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, #496 .cfi_def_cfa_offset 496 stp x28, x27, [sp, #464] ; 16-byte Folded Spill stp x29, x30, [sp, #480] ; 16-byte Folded Spill add x29, sp, #480 .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 x9, sp sub x8, x29, #224 str x8, [sp, #24] ; 8-byte Folded Spill str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF str x0, [sp, #16] ; 8-byte Folded Spill bl _scanf ldr x0, [sp, #16] ; 8-byte Folded Reload mov x9, sp add x8, sp, #56 str x8, [x9] bl _scanf ldr x0, [sp, #24] ; 8-byte Folded Reload bl _strlen mov x8, x0 str w8, [sp, #48] str wzr, [sp, #36] str wzr, [sp, #44] b LBB0_1 LBB0_1: ; =>This Loop Header: Depth=1 ; Child Loop BB0_3 Depth 2 ldr w8, [sp, #44] ldr w9, [sp, #48] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_15 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #44] str w8, [sp, #32] str wzr, [sp, #40] b LBB0_3 LBB0_3: ; Parent Loop BB0_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #40] ldr w9, [sp, #48] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_10 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_3 Depth=2 ldr w8, [sp, #32] ldr w9, [sp, #48] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_3 Depth=2 ldr w9, [sp, #48] ldr w8, [sp, #32] subs w8, w8, w9 str w8, [sp, #32] b LBB0_6 LBB0_6: ; in Loop: Header=BB0_3 Depth=2 ldrsw x9, [sp, #32] mov x8, x9 add w8, w8, #1 str w8, [sp, #32] sub x8, x29, #224 ldrsb w8, [x8, x9] ldrsw x10, [sp, #40] mov x9, x10 add w9, w9, #1 str w9, [sp, #40] add x9, sp, #56 ldrsb w9, [x9, x10] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_8 b LBB0_7 LBB0_7: ; in Loop: Header=BB0_3 Depth=2 ldr w8, [sp, #36] add w8, w8, #1 str w8, [sp, #36] b LBB0_9 LBB0_8: ; in Loop: Header=BB0_1 Depth=1 b LBB0_10 LBB0_9: ; in Loop: Header=BB0_3 Depth=2 b LBB0_3 LBB0_10: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #36] ldr w9, [sp, #48] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_12 b LBB0_11 LBB0_11: b LBB0_15 LBB0_12: ; in Loop: Header=BB0_1 Depth=1 str wzr, [sp, #36] b LBB0_13 LBB0_13: ; in Loop: Header=BB0_1 Depth=1 b LBB0_14 LBB0_14: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #44] add w8, w8, #1 str w8, [sp, #44] b LBB0_1 LBB0_15: ldr w8, [sp, #36] ldr w9, [sp, #48] subs w8, w8, w9 cset w8, eq tbnz w8, #0, LBB0_17 b LBB0_16 LBB0_16: adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf b LBB0_18 LBB0_17: adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf b LBB0_18 LBB0_18: ldur x9, [x29, #-24] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_20 b LBB0_19 LBB0_19: bl ___stack_chk_fail LBB0_20: mov w0, #0 ldp x29, x30, [sp, #480] ; 16-byte Folded Reload ldp x28, x27, [sp, #464] ; 16-byte Folded Reload add sp, sp, #496 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%s" l_.str.1: ; @.str.1 .asciz "No\n" l_.str.2: ; @.str.2 .asciz "Yes\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $448, %rsp ## imm = 0x1C0 movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -420(%rbp) leaq -208(%rbp), %rsi leaq L_.str(%rip), %rdi movb $0, %al callq _scanf leaq -416(%rbp), %rsi leaq L_.str(%rip), %rdi movb $0, %al callq _scanf leaq -208(%rbp), %rdi callq _strlen ## kill: def $eax killed $eax killed $rax movl %eax, -424(%rbp) movl $0, -436(%rbp) movl $0, -428(%rbp) LBB0_1: ## =>This Loop Header: Depth=1 ## Child Loop BB0_3 Depth 2 movl -428(%rbp), %eax cmpl -424(%rbp), %eax jge LBB0_15 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl -428(%rbp), %eax movl %eax, -440(%rbp) movl $0, -432(%rbp) LBB0_3: ## Parent Loop BB0_1 Depth=1 ## => This Inner Loop Header: Depth=2 movl -432(%rbp), %eax cmpl -424(%rbp), %eax jge LBB0_10 ## %bb.4: ## in Loop: Header=BB0_3 Depth=2 movl -440(%rbp), %eax cmpl -424(%rbp), %eax jne LBB0_6 ## %bb.5: ## in Loop: Header=BB0_3 Depth=2 movl -424(%rbp), %ecx movl -440(%rbp), %eax subl %ecx, %eax movl %eax, -440(%rbp) LBB0_6: ## in Loop: Header=BB0_3 Depth=2 movl -440(%rbp), %eax movl %eax, %ecx addl $1, %ecx movl %ecx, -440(%rbp) cltq movsbl -208(%rbp,%rax), %eax movl -432(%rbp), %ecx movl %ecx, %edx addl $1, %edx movl %edx, -432(%rbp) movslq %ecx, %rcx movsbl -416(%rbp,%rcx), %ecx cmpl %ecx, %eax jne LBB0_8 ## %bb.7: ## in Loop: Header=BB0_3 Depth=2 movl -436(%rbp), %eax addl $1, %eax movl %eax, -436(%rbp) jmp LBB0_9 LBB0_8: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_10 LBB0_9: ## in Loop: Header=BB0_3 Depth=2 jmp LBB0_3 LBB0_10: ## in Loop: Header=BB0_1 Depth=1 movl -436(%rbp), %eax cmpl -424(%rbp), %eax jne LBB0_12 ## %bb.11: jmp LBB0_15 LBB0_12: ## in Loop: Header=BB0_1 Depth=1 movl $0, -436(%rbp) ## %bb.13: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_14 LBB0_14: ## in Loop: Header=BB0_1 Depth=1 movl -428(%rbp), %eax addl $1, %eax movl %eax, -428(%rbp) jmp LBB0_1 LBB0_15: movl -436(%rbp), %eax cmpl -424(%rbp), %eax je LBB0_17 ## %bb.16: leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf jmp LBB0_18 LBB0_17: leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf LBB0_18: movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_20 ## %bb.19: xorl %eax, %eax addq $448, %rsp ## imm = 0x1C0 popq %rbp retq LBB0_20: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%s" L_.str.1: ## @.str.1 .asciz "No\n" L_.str.2: ## @.str.2 .asciz "Yes\n" .subsections_via_symbols
the_stack_data/98575288.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, #48 stur w8, [x29, #-8] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-8] subs w8, w8, #57 cset w8, gt tbnz w8, #0, LBB0_7 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldur w0, [x29, #-8] bl _skiboot_isdigit subs w8, w0, #0 cset w9, eq ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: adrp x0, l___func__.main@PAGE add x0, x0, l___func__.main@PAGEOFF adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF mov w2, #39 adrp x3, l_.str.1@PAGE add x3, x3, l_.str.1@PAGEOFF bl ___assert_rtn LBB0_4: ; in Loop: Header=BB0_1 Depth=1 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_1 Depth=1 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-8] add w8, w8, #1 stur w8, [x29, #-8] b LBB0_1 LBB0_7: mov w0, #97 bl _skiboot_isdigit subs w8, w0, #0 cset w9, ne ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB0_9 b LBB0_8 LBB0_8: adrp x0, l___func__.main@PAGE add x0, x0, l___func__.main@PAGEOFF adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF mov w2, #40 adrp x3, l_.str.2@PAGE add x3, x3, l_.str.2@PAGEOFF bl ___assert_rtn LBB0_9: b LBB0_10 LBB0_10: mov w0, #90 bl _skiboot_isdigit subs w8, w0, #0 cset w9, ne ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB0_12 b LBB0_11 LBB0_11: 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.3@PAGE add x3, x3, l_.str.3@PAGEOFF bl ___assert_rtn LBB0_12: b LBB0_13 LBB0_13: stur wzr, [x29, #-8] b LBB0_14 LBB0_14: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-8] subs w8, w8, #257 cset w8, ge tbnz w8, #0, LBB0_27 b LBB0_15 LBB0_15: ; in Loop: Header=BB0_14 Depth=1 ldur w0, [x29, #-8] bl _skiboot_isdigit stur w0, [x29, #-12] ldur w0, [x29, #-8] bl _isdigit str w0, [sp, #16] ldur w8, [x29, #-12] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_20 b LBB0_16 LBB0_16: ; in Loop: Header=BB0_14 Depth=1 ldr w8, [sp, #16] subs w8, w8, #0 cset w9, eq ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB0_18 b LBB0_17 LBB0_17: 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, #47 adrp x3, l_.str.4@PAGE add x3, x3, l_.str.4@PAGEOFF bl ___assert_rtn LBB0_18: ; in Loop: Header=BB0_14 Depth=1 b LBB0_19 LBB0_19: ; in Loop: Header=BB0_14 Depth=1 b LBB0_20 LBB0_20: ; in Loop: Header=BB0_14 Depth=1 ldur w8, [x29, #-12] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_25 b LBB0_21 LBB0_21: ; in Loop: Header=BB0_14 Depth=1 ldr w8, [sp, #16] subs w8, w8, #0 cset w9, ne ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB0_23 b LBB0_22 LBB0_22: 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, #49 adrp x3, l_.str.5@PAGE add x3, x3, l_.str.5@PAGEOFF bl ___assert_rtn LBB0_23: ; in Loop: Header=BB0_14 Depth=1 b LBB0_24 LBB0_24: ; in Loop: Header=BB0_14 Depth=1 b LBB0_25 LBB0_25: ; in Loop: Header=BB0_14 Depth=1 b LBB0_26 LBB0_26: ; in Loop: Header=BB0_14 Depth=1 ldur w8, [x29, #-8] add w8, w8, #1 stur w8, [x29, #-8] b LBB0_14 LBB0_27: mov w8, #48 stur w8, [x29, #-8] b LBB0_28 LBB0_28: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-8] subs w8, w8, #57 cset w8, gt tbnz w8, #0, LBB0_34 b LBB0_29 LBB0_29: ; in Loop: Header=BB0_28 Depth=1 ldur w0, [x29, #-8] bl _skiboot_isprint subs w8, w0, #0 cset w9, eq ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB0_31 b LBB0_30 LBB0_30: 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, #53 adrp x3, l_.str.6@PAGE add x3, x3, l_.str.6@PAGEOFF bl ___assert_rtn LBB0_31: ; in Loop: Header=BB0_28 Depth=1 b LBB0_32 LBB0_32: ; in Loop: Header=BB0_28 Depth=1 b LBB0_33 LBB0_33: ; in Loop: Header=BB0_28 Depth=1 ldur w8, [x29, #-8] add w8, w8, #1 stur w8, [x29, #-8] b LBB0_28 LBB0_34: mov w0, #0 bl _skiboot_isprint subs w8, w0, #0 cset w9, ne ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB0_36 b LBB0_35 LBB0_35: 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, #54 adrp x3, l_.str.7@PAGE add x3, x3, l_.str.7@PAGEOFF bl ___assert_rtn LBB0_36: b LBB0_37 LBB0_37: mov w0, #4 bl _skiboot_isprint subs w8, w0, #0 cset w9, ne ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB0_39 b LBB0_38 LBB0_38: 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, #55 adrp x3, l_.str.8@PAGE add x3, x3, l_.str.8@PAGEOFF bl ___assert_rtn LBB0_39: b LBB0_40 LBB0_40: stur wzr, [x29, #-8] b LBB0_41 LBB0_41: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-8] subs w8, w8, #257 cset w8, ge tbnz w8, #0, LBB0_54 b LBB0_42 LBB0_42: ; in Loop: Header=BB0_41 Depth=1 ldur w0, [x29, #-8] bl _skiboot_isprint stur w0, [x29, #-12] ldur w0, [x29, #-8] bl _isprint str w0, [sp, #16] ldur w8, [x29, #-12] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_47 b LBB0_43 LBB0_43: ; in Loop: Header=BB0_41 Depth=1 ldr w8, [sp, #16] subs w8, w8, #0 cset w9, eq ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB0_45 b LBB0_44 LBB0_44: adrp x0, l___func__.main@PAGE add x0, x0, l___func__.main@PAGEOFF adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF mov w2, #61 adrp x3, l_.str.4@PAGE add x3, x3, l_.str.4@PAGEOFF bl ___assert_rtn LBB0_45: ; in Loop: Header=BB0_41 Depth=1 b LBB0_46 LBB0_46: ; in Loop: Header=BB0_41 Depth=1 b LBB0_47 LBB0_47: ; in Loop: Header=BB0_41 Depth=1 ldur w8, [x29, #-12] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_52 b LBB0_48 LBB0_48: ; in Loop: Header=BB0_41 Depth=1 ldr w8, [sp, #16] subs w8, w8, #0 cset w9, ne ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB0_50 b LBB0_49 LBB0_49: 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, #63 adrp x3, l_.str.5@PAGE add x3, x3, l_.str.5@PAGEOFF bl ___assert_rtn LBB0_50: ; in Loop: Header=BB0_41 Depth=1 b LBB0_51 LBB0_51: ; in Loop: Header=BB0_41 Depth=1 b LBB0_52 LBB0_52: ; in Loop: Header=BB0_41 Depth=1 b LBB0_53 LBB0_53: ; in Loop: Header=BB0_41 Depth=1 ldur w8, [x29, #-8] add w8, w8, #1 stur w8, [x29, #-8] b LBB0_41 LBB0_54: mov w8, #48 stur w8, [x29, #-8] b LBB0_55 LBB0_55: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-8] subs w8, w8, #57 cset w8, gt tbnz w8, #0, LBB0_61 b LBB0_56 LBB0_56: ; in Loop: Header=BB0_55 Depth=1 ldur w0, [x29, #-8] bl _skiboot_isspace subs w8, w0, #0 cset w9, ne ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB0_58 b LBB0_57 LBB0_57: 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, #67 adrp x3, l_.str.9@PAGE add x3, x3, l_.str.9@PAGEOFF bl ___assert_rtn LBB0_58: ; in Loop: Header=BB0_55 Depth=1 b LBB0_59 LBB0_59: ; in Loop: Header=BB0_55 Depth=1 b LBB0_60 LBB0_60: ; in Loop: Header=BB0_55 Depth=1 ldur w8, [x29, #-8] add w8, w8, #1 stur w8, [x29, #-8] b LBB0_55 LBB0_61: mov w0, #12 bl _skiboot_isspace subs w8, w0, #0 cset w9, eq ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB0_63 b LBB0_62 LBB0_62: 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, #68 adrp x3, l_.str.10@PAGE add x3, x3, l_.str.10@PAGEOFF bl ___assert_rtn LBB0_63: b LBB0_64 LBB0_64: mov w0, #10 bl _skiboot_isspace subs w8, w0, #0 cset w9, eq ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB0_66 b LBB0_65 LBB0_65: adrp x0, l___func__.main@PAGE add x0, x0, l___func__.main@PAGEOFF adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF mov w2, #69 adrp x3, l_.str.11@PAGE add x3, x3, l_.str.11@PAGEOFF bl ___assert_rtn LBB0_66: b LBB0_67 LBB0_67: mov w0, #32 bl _skiboot_isspace subs w8, w0, #0 cset w9, eq ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB0_69 b LBB0_68 LBB0_68: 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, #70 adrp x3, l_.str.12@PAGE add x3, x3, l_.str.12@PAGEOFF bl ___assert_rtn LBB0_69: b LBB0_70 LBB0_70: stur wzr, [x29, #-8] b LBB0_71 LBB0_71: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-8] subs w8, w8, #257 cset w8, ge tbnz w8, #0, LBB0_84 b LBB0_72 LBB0_72: ; in Loop: Header=BB0_71 Depth=1 ldur w0, [x29, #-8] bl _skiboot_isspace stur w0, [x29, #-12] ldur w0, [x29, #-8] bl _isspace str w0, [sp, #16] ldur w8, [x29, #-12] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_77 b LBB0_73 LBB0_73: ; in Loop: Header=BB0_71 Depth=1 ldr w8, [sp, #16] subs w8, w8, #0 cset w9, eq ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB0_75 b LBB0_74 LBB0_74: adrp x0, l___func__.main@PAGE add x0, x0, l___func__.main@PAGEOFF adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF mov w2, #76 adrp x3, l_.str.4@PAGE add x3, x3, l_.str.4@PAGEOFF bl ___assert_rtn LBB0_75: ; in Loop: Header=BB0_71 Depth=1 b LBB0_76 LBB0_76: ; in Loop: Header=BB0_71 Depth=1 b LBB0_77 LBB0_77: ; in Loop: Header=BB0_71 Depth=1 ldur w8, [x29, #-12] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_82 b LBB0_78 LBB0_78: ; in Loop: Header=BB0_71 Depth=1 ldr w8, [sp, #16] subs w8, w8, #0 cset w9, ne ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB0_80 b LBB0_79 LBB0_79: 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, #78 adrp x3, l_.str.5@PAGE add x3, x3, l_.str.5@PAGEOFF bl ___assert_rtn LBB0_80: ; in Loop: Header=BB0_71 Depth=1 b LBB0_81 LBB0_81: ; in Loop: Header=BB0_71 Depth=1 b LBB0_82 LBB0_82: ; in Loop: Header=BB0_71 Depth=1 b LBB0_83 LBB0_83: ; in Loop: Header=BB0_71 Depth=1 ldur w8, [x29, #-8] add w8, w8, #1 stur w8, [x29, #-8] b LBB0_71 LBB0_84: mov w8, #48 stur w8, [x29, #-8] b LBB0_85 LBB0_85: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-8] subs w8, w8, #57 cset w8, gt tbnz w8, #0, LBB0_91 b LBB0_86 LBB0_86: ; in Loop: Header=BB0_85 Depth=1 ldur w0, [x29, #-8] bl _skiboot_isxdigit subs w8, w0, #0 cset w9, eq ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB0_88 b LBB0_87 LBB0_87: 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, #82 adrp x3, l_.str.13@PAGE add x3, x3, l_.str.13@PAGEOFF bl ___assert_rtn LBB0_88: ; in Loop: Header=BB0_85 Depth=1 b LBB0_89 LBB0_89: ; in Loop: Header=BB0_85 Depth=1 b LBB0_90 LBB0_90: ; in Loop: Header=BB0_85 Depth=1 ldur w8, [x29, #-8] add w8, w8, #1 stur w8, [x29, #-8] b LBB0_85 LBB0_91: mov w0, #97 bl _skiboot_isxdigit subs w8, w0, #0 cset w9, eq ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB0_93 b LBB0_92 LBB0_92: 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, #83 adrp x3, l_.str.14@PAGE add x3, x3, l_.str.14@PAGEOFF bl ___assert_rtn LBB0_93: b LBB0_94 LBB0_94: mov w0, #65 bl _skiboot_isxdigit subs w8, w0, #0 cset w9, eq ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB0_96 b LBB0_95 LBB0_95: 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, #84 adrp x3, l_.str.15@PAGE add x3, x3, l_.str.15@PAGEOFF bl ___assert_rtn LBB0_96: b LBB0_97 LBB0_97: mov w0, #70 bl _skiboot_isxdigit subs w8, w0, #0 cset w9, eq ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB0_99 b LBB0_98 LBB0_98: 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, #85 adrp x3, l_.str.16@PAGE add x3, x3, l_.str.16@PAGEOFF bl ___assert_rtn LBB0_99: b LBB0_100 LBB0_100: mov w0, #90 bl _skiboot_isxdigit subs w8, w0, #0 cset w9, ne ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB0_102 b LBB0_101 LBB0_101: 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, #86 adrp x3, l_.str.17@PAGE add x3, x3, l_.str.17@PAGEOFF bl ___assert_rtn LBB0_102: b LBB0_103 LBB0_103: stur wzr, [x29, #-8] b LBB0_104 LBB0_104: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-8] subs w8, w8, #257 cset w8, ge tbnz w8, #0, LBB0_117 b LBB0_105 LBB0_105: ; in Loop: Header=BB0_104 Depth=1 ldur w0, [x29, #-8] bl _skiboot_isxdigit stur w0, [x29, #-12] ldur w0, [x29, #-8] bl _isxdigit str w0, [sp, #16] ldur w8, [x29, #-12] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_110 b LBB0_106 LBB0_106: ; in Loop: Header=BB0_104 Depth=1 ldr w8, [sp, #16] subs w8, w8, #0 cset w9, eq ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB0_108 b LBB0_107 LBB0_107: 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, #92 adrp x3, l_.str.4@PAGE add x3, x3, l_.str.4@PAGEOFF bl ___assert_rtn LBB0_108: ; in Loop: Header=BB0_104 Depth=1 b LBB0_109 LBB0_109: ; in Loop: Header=BB0_104 Depth=1 b LBB0_110 LBB0_110: ; in Loop: Header=BB0_104 Depth=1 ldur w8, [x29, #-12] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_115 b LBB0_111 LBB0_111: ; in Loop: Header=BB0_104 Depth=1 ldr w8, [sp, #16] subs w8, w8, #0 cset w9, ne ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB0_113 b LBB0_112 LBB0_112: 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, #94 adrp x3, l_.str.5@PAGE add x3, x3, l_.str.5@PAGEOFF bl ___assert_rtn LBB0_113: ; in Loop: Header=BB0_104 Depth=1 b LBB0_114 LBB0_114: ; in Loop: Header=BB0_104 Depth=1 b LBB0_115 LBB0_115: ; in Loop: Header=BB0_104 Depth=1 b LBB0_116 LBB0_116: ; in Loop: Header=BB0_104 Depth=1 ldur w8, [x29, #-8] add w8, w8, #1 stur w8, [x29, #-8] b LBB0_104 LBB0_117: stur wzr, [x29, #-8] b LBB0_118 LBB0_118: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-8] subs w8, w8, #257 cset w8, ge tbnz w8, #0, LBB0_124 b LBB0_119 LBB0_119: ; in Loop: Header=BB0_118 Depth=1 ldur w0, [x29, #-8] bl _skiboot_tolower str w0, [sp, #12] ; 4-byte Folded Spill ldur w0, [x29, #-8] bl _tolower mov x8, x0 ldr w0, [sp, #12] ; 4-byte Folded Reload subs w8, w0, w8 cset w9, ne ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB0_121 b LBB0_120 LBB0_120: 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, #98 adrp x3, l_.str.18@PAGE add x3, x3, l_.str.18@PAGEOFF bl ___assert_rtn LBB0_121: ; in Loop: Header=BB0_118 Depth=1 b LBB0_122 LBB0_122: ; in Loop: Header=BB0_118 Depth=1 b LBB0_123 LBB0_123: ; in Loop: Header=BB0_118 Depth=1 ldur w8, [x29, #-8] add w8, w8, #1 stur w8, [x29, #-8] b LBB0_118 LBB0_124: stur wzr, [x29, #-8] b LBB0_125 LBB0_125: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-8] subs w8, w8, #257 cset w8, ge tbnz w8, #0, LBB0_131 b LBB0_126 LBB0_126: ; in Loop: Header=BB0_125 Depth=1 ldur w0, [x29, #-8] bl _skiboot_toupper str w0, [sp, #8] ; 4-byte Folded Spill ldur w0, [x29, #-8] bl _toupper mov x8, x0 ldr w0, [sp, #8] ; 4-byte Folded Reload subs w8, w0, w8 cset w9, ne ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB0_128 b LBB0_127 LBB0_127: 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, #102 adrp x3, l_.str.19@PAGE add x3, x3, l_.str.19@PAGEOFF bl ___assert_rtn LBB0_128: ; in Loop: Header=BB0_125 Depth=1 b LBB0_129 LBB0_129: ; in Loop: Header=BB0_125 Depth=1 b LBB0_130 LBB0_130: ; in Loop: Header=BB0_125 Depth=1 ldur w8, [x29, #-8] add w8, w8, #1 stur w8, [x29, #-8] b LBB0_125 LBB0_131: 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___func__.main: ; @__func__.main .asciz "main" l_.str: ; @.str .asciz "92327662.c" l_.str.1: ; @.str.1 .asciz "skiboot_isdigit(i)" l_.str.2: ; @.str.2 .asciz "skiboot_isdigit('a') == 0" l_.str.3: ; @.str.3 .asciz "skiboot_isdigit('Z') == 0" l_.str.4: ; @.str.4 .asciz "r2" l_.str.5: ; @.str.5 .asciz "!r2" l_.str.6: ; @.str.6 .asciz "skiboot_isprint(i)" l_.str.7: ; @.str.7 .asciz "skiboot_isprint('\\0') == 0" l_.str.8: ; @.str.8 .asciz "skiboot_isprint(4) == 0" l_.str.9: ; @.str.9 .asciz "skiboot_isspace(i) == 0" l_.str.10: ; @.str.10 .asciz "skiboot_isspace('\\f')" l_.str.11: ; @.str.11 .asciz "skiboot_isspace('\\n')" l_.str.12: ; @.str.12 .asciz "skiboot_isspace(' ')" l_.str.13: ; @.str.13 .asciz "skiboot_isxdigit(i)" l_.str.14: ; @.str.14 .asciz "skiboot_isxdigit('a')" l_.str.15: ; @.str.15 .asciz "skiboot_isxdigit('A')" l_.str.16: ; @.str.16 .asciz "skiboot_isxdigit('F')" l_.str.17: ; @.str.17 .asciz "skiboot_isxdigit('Z') == 0" l_.str.18: ; @.str.18 .asciz "skiboot_tolower(i) == tolower(i)" l_.str.19: ; @.str.19 .asciz "skiboot_toupper(i) == toupper(i)" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl $0, -4(%rbp) movl $48, -8(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 cmpl $57, -8(%rbp) jg LBB0_7 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl -8(%rbp), %edi callq _skiboot_isdigit cmpl $0, %eax setne %al xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB0_4 ## %bb.3: leaq L___func__.main(%rip), %rdi leaq L_.str(%rip), %rsi leaq L_.str.1(%rip), %rcx movl $39, %edx callq ___assert_rtn LBB0_4: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_5 LBB0_5: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_6 LBB0_6: ## in Loop: Header=BB0_1 Depth=1 movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) jmp LBB0_1 LBB0_7: movl $97, %edi callq _skiboot_isdigit cmpl $0, %eax sete %al xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB0_9 ## %bb.8: leaq L___func__.main(%rip), %rdi leaq L_.str(%rip), %rsi leaq L_.str.2(%rip), %rcx movl $40, %edx callq ___assert_rtn LBB0_9: jmp LBB0_10 LBB0_10: movl $90, %edi callq _skiboot_isdigit cmpl $0, %eax sete %al xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB0_12 ## %bb.11: leaq L___func__.main(%rip), %rdi leaq L_.str(%rip), %rsi leaq L_.str.3(%rip), %rcx movl $41, %edx callq ___assert_rtn LBB0_12: jmp LBB0_13 LBB0_13: movl $0, -8(%rbp) LBB0_14: ## =>This Inner Loop Header: Depth=1 cmpl $257, -8(%rbp) ## imm = 0x101 jge LBB0_27 ## %bb.15: ## in Loop: Header=BB0_14 Depth=1 movl -8(%rbp), %edi callq _skiboot_isdigit movl %eax, -12(%rbp) movl -8(%rbp), %edi callq _isdigit movl %eax, -16(%rbp) cmpl $0, -12(%rbp) je LBB0_20 ## %bb.16: ## in Loop: Header=BB0_14 Depth=1 cmpl $0, -16(%rbp) setne %al xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB0_18 ## %bb.17: leaq L___func__.main(%rip), %rdi leaq L_.str(%rip), %rsi leaq L_.str.4(%rip), %rcx movl $47, %edx callq ___assert_rtn LBB0_18: ## in Loop: Header=BB0_14 Depth=1 jmp LBB0_19 LBB0_19: ## in Loop: Header=BB0_14 Depth=1 jmp LBB0_20 LBB0_20: ## in Loop: Header=BB0_14 Depth=1 cmpl $0, -12(%rbp) jne LBB0_25 ## %bb.21: ## in Loop: Header=BB0_14 Depth=1 cmpl $0, -16(%rbp) setne %al xorb $-1, %al xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB0_23 ## %bb.22: leaq L___func__.main(%rip), %rdi leaq L_.str(%rip), %rsi leaq L_.str.5(%rip), %rcx movl $49, %edx callq ___assert_rtn LBB0_23: ## in Loop: Header=BB0_14 Depth=1 jmp LBB0_24 LBB0_24: ## in Loop: Header=BB0_14 Depth=1 jmp LBB0_25 LBB0_25: ## in Loop: Header=BB0_14 Depth=1 jmp LBB0_26 LBB0_26: ## in Loop: Header=BB0_14 Depth=1 movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) jmp LBB0_14 LBB0_27: movl $48, -8(%rbp) LBB0_28: ## =>This Inner Loop Header: Depth=1 cmpl $57, -8(%rbp) jg LBB0_34 ## %bb.29: ## in Loop: Header=BB0_28 Depth=1 movl -8(%rbp), %edi callq _skiboot_isprint cmpl $0, %eax setne %al xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB0_31 ## %bb.30: leaq L___func__.main(%rip), %rdi leaq L_.str(%rip), %rsi leaq L_.str.6(%rip), %rcx movl $53, %edx callq ___assert_rtn LBB0_31: ## in Loop: Header=BB0_28 Depth=1 jmp LBB0_32 LBB0_32: ## in Loop: Header=BB0_28 Depth=1 jmp LBB0_33 LBB0_33: ## in Loop: Header=BB0_28 Depth=1 movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) jmp LBB0_28 LBB0_34: xorl %edi, %edi callq _skiboot_isprint cmpl $0, %eax sete %al xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB0_36 ## %bb.35: leaq L___func__.main(%rip), %rdi leaq L_.str(%rip), %rsi leaq L_.str.7(%rip), %rcx movl $54, %edx callq ___assert_rtn LBB0_36: jmp LBB0_37 LBB0_37: movl $4, %edi callq _skiboot_isprint cmpl $0, %eax sete %al xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB0_39 ## %bb.38: leaq L___func__.main(%rip), %rdi leaq L_.str(%rip), %rsi leaq L_.str.8(%rip), %rcx movl $55, %edx callq ___assert_rtn LBB0_39: jmp LBB0_40 LBB0_40: movl $0, -8(%rbp) LBB0_41: ## =>This Inner Loop Header: Depth=1 cmpl $257, -8(%rbp) ## imm = 0x101 jge LBB0_54 ## %bb.42: ## in Loop: Header=BB0_41 Depth=1 movl -8(%rbp), %edi callq _skiboot_isprint movl %eax, -12(%rbp) movl -8(%rbp), %edi callq _isprint movl %eax, -16(%rbp) cmpl $0, -12(%rbp) je LBB0_47 ## %bb.43: ## in Loop: Header=BB0_41 Depth=1 cmpl $0, -16(%rbp) setne %al xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB0_45 ## %bb.44: leaq L___func__.main(%rip), %rdi leaq L_.str(%rip), %rsi leaq L_.str.4(%rip), %rcx movl $61, %edx callq ___assert_rtn LBB0_45: ## in Loop: Header=BB0_41 Depth=1 jmp LBB0_46 LBB0_46: ## in Loop: Header=BB0_41 Depth=1 jmp LBB0_47 LBB0_47: ## in Loop: Header=BB0_41 Depth=1 cmpl $0, -12(%rbp) jne LBB0_52 ## %bb.48: ## in Loop: Header=BB0_41 Depth=1 cmpl $0, -16(%rbp) setne %al xorb $-1, %al xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB0_50 ## %bb.49: leaq L___func__.main(%rip), %rdi leaq L_.str(%rip), %rsi leaq L_.str.5(%rip), %rcx movl $63, %edx callq ___assert_rtn LBB0_50: ## in Loop: Header=BB0_41 Depth=1 jmp LBB0_51 LBB0_51: ## in Loop: Header=BB0_41 Depth=1 jmp LBB0_52 LBB0_52: ## in Loop: Header=BB0_41 Depth=1 jmp LBB0_53 LBB0_53: ## in Loop: Header=BB0_41 Depth=1 movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) jmp LBB0_41 LBB0_54: movl $48, -8(%rbp) LBB0_55: ## =>This Inner Loop Header: Depth=1 cmpl $57, -8(%rbp) jg LBB0_61 ## %bb.56: ## in Loop: Header=BB0_55 Depth=1 movl -8(%rbp), %edi callq _skiboot_isspace cmpl $0, %eax sete %al xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB0_58 ## %bb.57: leaq L___func__.main(%rip), %rdi leaq L_.str(%rip), %rsi leaq L_.str.9(%rip), %rcx movl $67, %edx callq ___assert_rtn LBB0_58: ## in Loop: Header=BB0_55 Depth=1 jmp LBB0_59 LBB0_59: ## in Loop: Header=BB0_55 Depth=1 jmp LBB0_60 LBB0_60: ## in Loop: Header=BB0_55 Depth=1 movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) jmp LBB0_55 LBB0_61: movl $12, %edi callq _skiboot_isspace cmpl $0, %eax setne %al xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB0_63 ## %bb.62: leaq L___func__.main(%rip), %rdi leaq L_.str(%rip), %rsi leaq L_.str.10(%rip), %rcx movl $68, %edx callq ___assert_rtn LBB0_63: jmp LBB0_64 LBB0_64: movl $10, %edi callq _skiboot_isspace cmpl $0, %eax setne %al xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB0_66 ## %bb.65: leaq L___func__.main(%rip), %rdi leaq L_.str(%rip), %rsi leaq L_.str.11(%rip), %rcx movl $69, %edx callq ___assert_rtn LBB0_66: jmp LBB0_67 LBB0_67: movl $32, %edi callq _skiboot_isspace cmpl $0, %eax setne %al xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB0_69 ## %bb.68: leaq L___func__.main(%rip), %rdi leaq L_.str(%rip), %rsi leaq L_.str.12(%rip), %rcx movl $70, %edx callq ___assert_rtn LBB0_69: jmp LBB0_70 LBB0_70: movl $0, -8(%rbp) LBB0_71: ## =>This Inner Loop Header: Depth=1 cmpl $257, -8(%rbp) ## imm = 0x101 jge LBB0_84 ## %bb.72: ## in Loop: Header=BB0_71 Depth=1 movl -8(%rbp), %edi callq _skiboot_isspace movl %eax, -12(%rbp) movl -8(%rbp), %edi callq _isspace movl %eax, -16(%rbp) cmpl $0, -12(%rbp) je LBB0_77 ## %bb.73: ## in Loop: Header=BB0_71 Depth=1 cmpl $0, -16(%rbp) setne %al xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB0_75 ## %bb.74: leaq L___func__.main(%rip), %rdi leaq L_.str(%rip), %rsi leaq L_.str.4(%rip), %rcx movl $76, %edx callq ___assert_rtn LBB0_75: ## in Loop: Header=BB0_71 Depth=1 jmp LBB0_76 LBB0_76: ## in Loop: Header=BB0_71 Depth=1 jmp LBB0_77 LBB0_77: ## in Loop: Header=BB0_71 Depth=1 cmpl $0, -12(%rbp) jne LBB0_82 ## %bb.78: ## in Loop: Header=BB0_71 Depth=1 cmpl $0, -16(%rbp) setne %al xorb $-1, %al xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB0_80 ## %bb.79: leaq L___func__.main(%rip), %rdi leaq L_.str(%rip), %rsi leaq L_.str.5(%rip), %rcx movl $78, %edx callq ___assert_rtn LBB0_80: ## in Loop: Header=BB0_71 Depth=1 jmp LBB0_81 LBB0_81: ## in Loop: Header=BB0_71 Depth=1 jmp LBB0_82 LBB0_82: ## in Loop: Header=BB0_71 Depth=1 jmp LBB0_83 LBB0_83: ## in Loop: Header=BB0_71 Depth=1 movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) jmp LBB0_71 LBB0_84: movl $48, -8(%rbp) LBB0_85: ## =>This Inner Loop Header: Depth=1 cmpl $57, -8(%rbp) jg LBB0_91 ## %bb.86: ## in Loop: Header=BB0_85 Depth=1 movl -8(%rbp), %edi callq _skiboot_isxdigit cmpl $0, %eax setne %al xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB0_88 ## %bb.87: leaq L___func__.main(%rip), %rdi leaq L_.str(%rip), %rsi leaq L_.str.13(%rip), %rcx movl $82, %edx callq ___assert_rtn LBB0_88: ## in Loop: Header=BB0_85 Depth=1 jmp LBB0_89 LBB0_89: ## in Loop: Header=BB0_85 Depth=1 jmp LBB0_90 LBB0_90: ## in Loop: Header=BB0_85 Depth=1 movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) jmp LBB0_85 LBB0_91: movl $97, %edi callq _skiboot_isxdigit cmpl $0, %eax setne %al xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB0_93 ## %bb.92: leaq L___func__.main(%rip), %rdi leaq L_.str(%rip), %rsi leaq L_.str.14(%rip), %rcx movl $83, %edx callq ___assert_rtn LBB0_93: jmp LBB0_94 LBB0_94: movl $65, %edi callq _skiboot_isxdigit cmpl $0, %eax setne %al xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB0_96 ## %bb.95: leaq L___func__.main(%rip), %rdi leaq L_.str(%rip), %rsi leaq L_.str.15(%rip), %rcx movl $84, %edx callq ___assert_rtn LBB0_96: jmp LBB0_97 LBB0_97: movl $70, %edi callq _skiboot_isxdigit cmpl $0, %eax setne %al xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB0_99 ## %bb.98: leaq L___func__.main(%rip), %rdi leaq L_.str(%rip), %rsi leaq L_.str.16(%rip), %rcx movl $85, %edx callq ___assert_rtn LBB0_99: jmp LBB0_100 LBB0_100: movl $90, %edi callq _skiboot_isxdigit cmpl $0, %eax sete %al xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB0_102 ## %bb.101: leaq L___func__.main(%rip), %rdi leaq L_.str(%rip), %rsi leaq L_.str.17(%rip), %rcx movl $86, %edx callq ___assert_rtn LBB0_102: jmp LBB0_103 LBB0_103: movl $0, -8(%rbp) LBB0_104: ## =>This Inner Loop Header: Depth=1 cmpl $257, -8(%rbp) ## imm = 0x101 jge LBB0_117 ## %bb.105: ## in Loop: Header=BB0_104 Depth=1 movl -8(%rbp), %edi callq _skiboot_isxdigit movl %eax, -12(%rbp) movl -8(%rbp), %edi callq _isxdigit movl %eax, -16(%rbp) cmpl $0, -12(%rbp) je LBB0_110 ## %bb.106: ## in Loop: Header=BB0_104 Depth=1 cmpl $0, -16(%rbp) setne %al xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB0_108 ## %bb.107: leaq L___func__.main(%rip), %rdi leaq L_.str(%rip), %rsi leaq L_.str.4(%rip), %rcx movl $92, %edx callq ___assert_rtn LBB0_108: ## in Loop: Header=BB0_104 Depth=1 jmp LBB0_109 LBB0_109: ## in Loop: Header=BB0_104 Depth=1 jmp LBB0_110 LBB0_110: ## in Loop: Header=BB0_104 Depth=1 cmpl $0, -12(%rbp) jne LBB0_115 ## %bb.111: ## in Loop: Header=BB0_104 Depth=1 cmpl $0, -16(%rbp) setne %al xorb $-1, %al xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB0_113 ## %bb.112: leaq L___func__.main(%rip), %rdi leaq L_.str(%rip), %rsi leaq L_.str.5(%rip), %rcx movl $94, %edx callq ___assert_rtn LBB0_113: ## in Loop: Header=BB0_104 Depth=1 jmp LBB0_114 LBB0_114: ## in Loop: Header=BB0_104 Depth=1 jmp LBB0_115 LBB0_115: ## in Loop: Header=BB0_104 Depth=1 jmp LBB0_116 LBB0_116: ## in Loop: Header=BB0_104 Depth=1 movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) jmp LBB0_104 LBB0_117: movl $0, -8(%rbp) LBB0_118: ## =>This Inner Loop Header: Depth=1 cmpl $257, -8(%rbp) ## imm = 0x101 jge LBB0_124 ## %bb.119: ## in Loop: Header=BB0_118 Depth=1 movl -8(%rbp), %edi callq _skiboot_tolower movl %eax, -20(%rbp) ## 4-byte Spill movl -8(%rbp), %edi callq _tolower movl %eax, %ecx movl -20(%rbp), %eax ## 4-byte Reload cmpl %ecx, %eax sete %al xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB0_121 ## %bb.120: leaq L___func__.main(%rip), %rdi leaq L_.str(%rip), %rsi leaq L_.str.18(%rip), %rcx movl $98, %edx callq ___assert_rtn LBB0_121: ## in Loop: Header=BB0_118 Depth=1 jmp LBB0_122 LBB0_122: ## in Loop: Header=BB0_118 Depth=1 jmp LBB0_123 LBB0_123: ## in Loop: Header=BB0_118 Depth=1 movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) jmp LBB0_118 LBB0_124: movl $0, -8(%rbp) LBB0_125: ## =>This Inner Loop Header: Depth=1 cmpl $257, -8(%rbp) ## imm = 0x101 jge LBB0_131 ## %bb.126: ## in Loop: Header=BB0_125 Depth=1 movl -8(%rbp), %edi callq _skiboot_toupper movl %eax, -24(%rbp) ## 4-byte Spill movl -8(%rbp), %edi callq _toupper movl %eax, %ecx movl -24(%rbp), %eax ## 4-byte Reload cmpl %ecx, %eax sete %al xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB0_128 ## %bb.127: leaq L___func__.main(%rip), %rdi leaq L_.str(%rip), %rsi leaq L_.str.19(%rip), %rcx movl $102, %edx callq ___assert_rtn LBB0_128: ## in Loop: Header=BB0_125 Depth=1 jmp LBB0_129 LBB0_129: ## in Loop: Header=BB0_125 Depth=1 jmp LBB0_130 LBB0_130: ## in Loop: Header=BB0_125 Depth=1 movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) jmp LBB0_125 LBB0_131: xorl %eax, %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L___func__.main: ## @__func__.main .asciz "main" L_.str: ## @.str .asciz "92327662.c" L_.str.1: ## @.str.1 .asciz "skiboot_isdigit(i)" L_.str.2: ## @.str.2 .asciz "skiboot_isdigit('a') == 0" L_.str.3: ## @.str.3 .asciz "skiboot_isdigit('Z') == 0" L_.str.4: ## @.str.4 .asciz "r2" L_.str.5: ## @.str.5 .asciz "!r2" L_.str.6: ## @.str.6 .asciz "skiboot_isprint(i)" L_.str.7: ## @.str.7 .asciz "skiboot_isprint('\\0') == 0" L_.str.8: ## @.str.8 .asciz "skiboot_isprint(4) == 0" L_.str.9: ## @.str.9 .asciz "skiboot_isspace(i) == 0" L_.str.10: ## @.str.10 .asciz "skiboot_isspace('\\f')" L_.str.11: ## @.str.11 .asciz "skiboot_isspace('\\n')" L_.str.12: ## @.str.12 .asciz "skiboot_isspace(' ')" L_.str.13: ## @.str.13 .asciz "skiboot_isxdigit(i)" L_.str.14: ## @.str.14 .asciz "skiboot_isxdigit('a')" L_.str.15: ## @.str.15 .asciz "skiboot_isxdigit('A')" L_.str.16: ## @.str.16 .asciz "skiboot_isxdigit('F')" L_.str.17: ## @.str.17 .asciz "skiboot_isxdigit('Z') == 0" L_.str.18: ## @.str.18 .asciz "skiboot_tolower(i) == tolower(i)" L_.str.19: ## @.str.19 .asciz "skiboot_toupper(i) == toupper(i)" .subsections_via_symbols
the_stack_data/92327662.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] stur wzr, [x29, #-8] b LBB0_1 LBB0_1: ; =>This Loop Header: Depth=1 ; Child Loop BB0_4 Depth 2 bl _getchar stur w0, [x29, #-12] adds w8, w0, #1 cset w8, eq tbnz w8, #0, LBB0_12 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldur w9, [x29, #-8] mov w8, #8 sdiv w10, w9, w8 mul w10, w10, w8 subs w9, w9, w10 subs w8, w8, w9 str w8, [sp, #16] ldur w8, [x29, #-12] subs w8, w8, #9 cset w8, ne tbnz w8, #0, LBB0_8 b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 str wzr, [sp, #12] b LBB0_4 LBB0_4: ; Parent Loop BB0_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #12] ldr w9, [sp, #16] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_7 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_4 Depth=2 mov w0, #32 bl _putchar b LBB0_6 LBB0_6: ; in Loop: Header=BB0_4 Depth=2 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB0_4 LBB0_7: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #16] add w9, w8, #1 ldur w8, [x29, #-8] add w8, w8, w9 stur w8, [x29, #-8] b LBB0_11 LBB0_8: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-12] subs w8, w8, #10 cset w8, ne tbnz w8, #0, LBB0_10 b LBB0_9 LBB0_9: ; in Loop: Header=BB0_1 Depth=1 stur wzr, [x29, #-8] b LBB0_10 LBB0_10: ; in Loop: Header=BB0_1 Depth=1 ldur w0, [x29, #-12] bl _putchar ldur w8, [x29, #-8] add w8, w8, #1 stur w8, [x29, #-8] b LBB0_11 LBB0_11: ; in Loop: Header=BB0_1 Depth=1 b LBB0_1 LBB0_12: mov w0, #0 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .section __TEXT,__const .globl _tabspaces ; @tabspaces .p2align 2 _tabspaces: .long 8 ; 0x8 .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl $0, -4(%rbp) movl $0, -8(%rbp) LBB0_1: ## =>This Loop Header: Depth=1 ## Child Loop BB0_4 Depth 2 callq _getchar movl %eax, -12(%rbp) cmpl $-1, %eax je LBB0_12 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl -8(%rbp), %eax movl $8, %ecx cltd idivl %ecx movl $8, %eax subl %edx, %eax movl %eax, -16(%rbp) cmpl $9, -12(%rbp) jne LBB0_8 ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movl $0, -20(%rbp) LBB0_4: ## Parent Loop BB0_1 Depth=1 ## => This Inner Loop Header: Depth=2 movl -20(%rbp), %eax cmpl -16(%rbp), %eax jg LBB0_7 ## %bb.5: ## in Loop: Header=BB0_4 Depth=2 movl $32, %edi callq _putchar ## %bb.6: ## in Loop: Header=BB0_4 Depth=2 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB0_4 LBB0_7: ## in Loop: Header=BB0_1 Depth=1 movl -16(%rbp), %eax addl $1, %eax addl -8(%rbp), %eax movl %eax, -8(%rbp) jmp LBB0_11 LBB0_8: ## in Loop: Header=BB0_1 Depth=1 cmpl $10, -12(%rbp) jne LBB0_10 ## %bb.9: ## in Loop: Header=BB0_1 Depth=1 movl $0, -8(%rbp) LBB0_10: ## in Loop: Header=BB0_1 Depth=1 movl -12(%rbp), %edi callq _putchar movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) LBB0_11: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_1 LBB0_12: xorl %eax, %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__const .globl _tabspaces ## @tabspaces .p2align 2 _tabspaces: .long 8 ## 0x8 .subsections_via_symbols
the_stack_data/1193687.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 w0, #0 str wzr, [sp, #16] add x1, sp, #22 str x1, [sp] ; 8-byte Folded Spill mov x2, #50 bl _read ldr x1, [sp] ; 8-byte Folded Reload mov x8, x0 str w8, [sp, #12] ldrsw x2, [sp, #12] mov w0, #1 bl _write ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: bl ___stack_chk_fail LBB0_2: mov w0, #0 ldp x29, x30, [sp, #80] ; 16-byte Folded Reload add sp, sp, #96 ret .cfi_endproc ; -- End function .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), %rsi xorl %edi, %edi movl $50, %edx callq _read ## kill: def $eax killed $eax killed $rax movl %eax, -72(%rbp) leaq -64(%rbp), %rsi movslq -72(%rbp), %rdx movl $1, %edi callq _write movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_2 ## %bb.1: xorl %eax, %eax addq $80, %rsp popq %rbp retq LBB0_2: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/187642621.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, _dir@GOTPAGE ldr x8, [x8, _dir@GOTPAGEOFF] str x8, [sp, #32] ; 8-byte Folded Spill add x9, x8, #10 str x9, [sp, #24] ; 8-byte Folded Spill str wzr, [x8, #112] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldr x8, [sp, #32] ; 8-byte Folded Reload mov x9, sp str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf b LBB0_1 LBB0_1: ; =>This Loop Header: Depth=1 ; Child Loop BB0_34 Depth 2 ; Child Loop BB0_23 Depth 2 ; Child Loop BB0_13 Depth 2 ; Child Loop BB0_4 Depth 2 adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf mov x9, sp sub x8, x29, #8 str x8, [x9] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _scanf ldur w8, [x29, #-8] subs w8, w8, #1 ; kill: def $x8 killed $w8 str x8, [sp, #16] ; 8-byte Folded Spill subs x8, x8, #3 cset w8, hi tbnz w8, #0, LBB0_39 ; %bb.2: ; in Loop: Header=BB0_1 Depth=1 ldr x11, [sp, #16] ; 8-byte Folded Reload adrp x10, lJTI0_0@PAGE add x10, x10, lJTI0_0@PAGEOFF Ltmp0: adr x8, Ltmp0 ldrsw x9, [x10, x11, lsl #2] add x8, x8, x9 br x8 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf mov x9, sp sub x8, x29, #38 str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf stur wzr, [x29, #-4] b LBB0_4 LBB0_4: ; Parent Loop BB0_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr x9, [sp, #32] ; 8-byte Folded Reload ldur w8, [x29, #-4] ldr w9, [x9, #112] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_9 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_4 Depth=2 ldr x8, [sp, #24] ; 8-byte Folded Reload ldursw x9, [x29, #-4] mov x10, #10 mul x9, x9, x10 add x1, x8, x9 sub x0, x29, #38 bl _strcmp subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB0_7 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_1 Depth=1 mov x9, sp sub x8, x29, #38 str x8, [x9] adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf b LBB0_9 LBB0_7: ; in Loop: Header=BB0_4 Depth=2 b LBB0_8 LBB0_8: ; in Loop: Header=BB0_4 Depth=2 ldur w8, [x29, #-4] add w8, w8, #1 stur w8, [x29, #-4] b LBB0_4 LBB0_9: ; in Loop: Header=BB0_1 Depth=1 ldr x9, [sp, #32] ; 8-byte Folded Reload ldur w8, [x29, #-4] ldr w9, [x9, #112] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_11 b LBB0_10 LBB0_10: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #24] ; 8-byte Folded Reload ldr x9, [sp, #32] ; 8-byte Folded Reload ldrsw x9, [x9, #112] mov x10, #10 mul x9, x9, x10 add x0, x8, x9 sub x1, x29, #38 mov x2, #-1 bl ___strcpy_chk b LBB0_11 LBB0_11: ; in Loop: Header=BB0_1 Depth=1 ldr x9, [sp, #32] ; 8-byte Folded Reload ldr w8, [x9, #112] add w8, w8, #1 str w8, [x9, #112] b LBB0_40 LBB0_12: ; in Loop: Header=BB0_1 Depth=1 adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf mov x9, sp sub x8, x29, #38 str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf stur wzr, [x29, #-4] b LBB0_13 LBB0_13: ; Parent Loop BB0_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr x9, [sp, #32] ; 8-byte Folded Reload ldur w8, [x29, #-4] ldr w9, [x9, #112] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_18 b LBB0_14 LBB0_14: ; in Loop: Header=BB0_13 Depth=2 ldr x8, [sp, #24] ; 8-byte Folded Reload ldursw x9, [x29, #-4] mov x10, #10 mul x9, x9, x10 add x1, x8, x9 sub x0, x29, #38 bl _strcmp subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB0_16 b LBB0_15 LBB0_15: ; in Loop: Header=BB0_1 Depth=1 mov x9, sp sub x8, x29, #38 str x8, [x9] adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _printf ldr x8, [sp, #32] ; 8-byte Folded Reload ldr x10, [sp, #24] ; 8-byte Folded Reload ldursw x9, [x29, #-4] mov x11, #10 mul x11, x9, x11 mov x9, x10 add x0, x9, x11 ldr w8, [x8, #112] subs w8, w8, #1 mov w9, #10 smaddl x1, w8, w9, x10 mov x2, #-1 bl ___strcpy_chk b LBB0_18 LBB0_16: ; in Loop: Header=BB0_13 Depth=2 b LBB0_17 LBB0_17: ; in Loop: Header=BB0_13 Depth=2 ldur w8, [x29, #-4] add w8, w8, #1 stur w8, [x29, #-4] b LBB0_13 LBB0_18: ; in Loop: Header=BB0_1 Depth=1 ldr x9, [sp, #32] ; 8-byte Folded Reload ldur w8, [x29, #-4] ldr w9, [x9, #112] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_20 b LBB0_19 LBB0_19: ; in Loop: Header=BB0_1 Depth=1 mov x9, sp sub x8, x29, #38 str x8, [x9] adrp x0, l_.str.7@PAGE add x0, x0, l_.str.7@PAGEOFF bl _printf b LBB0_21 LBB0_20: ; in Loop: Header=BB0_1 Depth=1 ldr x9, [sp, #32] ; 8-byte Folded Reload ldr w8, [x9, #112] subs w8, w8, #1 str w8, [x9, #112] b LBB0_21 LBB0_21: ; in Loop: Header=BB0_1 Depth=1 b LBB0_40 LBB0_22: ; in Loop: Header=BB0_1 Depth=1 adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf mov x9, sp sub x8, x29, #38 str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf stur wzr, [x29, #-4] b LBB0_23 LBB0_23: ; Parent Loop BB0_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr x9, [sp, #32] ; 8-byte Folded Reload ldur w8, [x29, #-4] ldr w9, [x9, #112] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_28 b LBB0_24 LBB0_24: ; in Loop: Header=BB0_23 Depth=2 ldr x8, [sp, #24] ; 8-byte Folded Reload ldursw x9, [x29, #-4] mov x10, #10 mul x9, x9, x10 add x1, x8, x9 sub x0, x29, #38 bl _strcmp subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB0_26 b LBB0_25 LBB0_25: ; in Loop: Header=BB0_1 Depth=1 mov x9, sp sub x8, x29, #38 str x8, [x9] adrp x0, l_.str.8@PAGE add x0, x0, l_.str.8@PAGEOFF bl _printf b LBB0_28 LBB0_26: ; in Loop: Header=BB0_23 Depth=2 b LBB0_27 LBB0_27: ; in Loop: Header=BB0_23 Depth=2 ldur w8, [x29, #-4] add w8, w8, #1 stur w8, [x29, #-4] b LBB0_23 LBB0_28: ; in Loop: Header=BB0_1 Depth=1 ldr x9, [sp, #32] ; 8-byte Folded Reload ldur w8, [x29, #-4] ldr w9, [x9, #112] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_30 b LBB0_29 LBB0_29: ; in Loop: Header=BB0_1 Depth=1 mov x9, sp sub x8, x29, #38 str x8, [x9] adrp x0, l_.str.7@PAGE add x0, x0, l_.str.7@PAGEOFF bl _printf b LBB0_30 LBB0_30: ; in Loop: Header=BB0_1 Depth=1 b LBB0_40 LBB0_31: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #32] ; 8-byte Folded Reload ldr w8, [x8, #112] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_33 b LBB0_32 LBB0_32: ; in Loop: Header=BB0_1 Depth=1 adrp x0, l_.str.9@PAGE add x0, x0, l_.str.9@PAGEOFF bl _printf b LBB0_38 LBB0_33: ; in Loop: Header=BB0_1 Depth=1 adrp x0, l_.str.10@PAGE add x0, x0, l_.str.10@PAGEOFF bl _printf stur wzr, [x29, #-4] b LBB0_34 LBB0_34: ; Parent Loop BB0_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr x9, [sp, #32] ; 8-byte Folded Reload ldur w8, [x29, #-4] ldr w9, [x9, #112] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_37 b LBB0_35 LBB0_35: ; in Loop: Header=BB0_34 Depth=2 ldr x8, [sp, #24] ; 8-byte Folded Reload ldursw x9, [x29, #-4] mov x10, #10 mul x9, x9, x10 add x8, x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.11@PAGE add x0, x0, l_.str.11@PAGEOFF bl _printf b LBB0_36 LBB0_36: ; in Loop: Header=BB0_34 Depth=2 ldur w8, [x29, #-4] add w8, w8, #1 stur w8, [x29, #-4] b LBB0_34 LBB0_37: ; in Loop: Header=BB0_1 Depth=1 b LBB0_38 LBB0_38: ; in Loop: Header=BB0_1 Depth=1 b LBB0_40 LBB0_39: mov w0, #0 bl _exit LBB0_40: ; in Loop: Header=BB0_1 Depth=1 b LBB0_1 .cfi_endproc .p2align 2 lJTI0_0: .long LBB0_3-Ltmp0 .long LBB0_12-Ltmp0 .long LBB0_22-Ltmp0 .long LBB0_31-Ltmp0 ; -- End function .comm _dir,116,2 ; @dir .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "\nEnter name of directory " l_.str.1: ; @.str.1 .asciz "%s" l_.str.2: ; @.str.2 .asciz "\n\n1. Create File\t2. Delete File\t3. Search File \n 4. Display Files\t5. Exit\nEnter your choice" l_.str.3: ; @.str.3 .asciz "%d" l_.str.4: ; @.str.4 .asciz "\nEnter the name of the file " l_.str.5: ; @.str.5 .asciz "file %s is already exists" l_.str.6: ; @.str.6 .asciz "File %s is deleted " l_.str.7: ; @.str.7 .asciz "File %s not found" l_.str.8: ; @.str.8 .asciz "File %s is found " l_.str.9: ; @.str.9 .asciz "\nDirectory Empty" l_.str.10: ; @.str.10 .asciz "\nThe Files are" l_.str.11: ; @.str.11 .asciz "\t%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 $64, %rsp movq _dir@GOTPCREL(%rip), %rax movl $0, 112(%rax) leaq L_.str(%rip), %rdi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi movq _dir@GOTPCREL(%rip), %rsi movb $0, %al callq _scanf LBB0_1: ## =>This Loop Header: Depth=1 ## Child Loop BB0_33 Depth 2 ## Child Loop BB0_22 Depth 2 ## Child Loop BB0_12 Depth 2 ## Child Loop BB0_3 Depth 2 leaq L_.str.2(%rip), %rdi xorl %eax, %eax ## kill: def $al killed $al killed $eax movb %al, -57(%rbp) ## 1-byte Spill callq _printf ## kill: def $ecx killed $eax movb -57(%rbp), %al ## 1-byte Reload leaq L_.str.3(%rip), %rdi leaq -8(%rbp), %rsi callq _scanf movl -8(%rbp), %eax decl %eax movl %eax, %ecx movq %rcx, -56(%rbp) ## 8-byte Spill subl $3, %eax ja LBB0_38 ## %bb.40: ## in Loop: Header=BB0_1 Depth=1 movq -56(%rbp), %rax ## 8-byte Reload leaq LJTI0_0(%rip), %rcx movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax LBB0_2: ## in Loop: Header=BB0_1 Depth=1 leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf leaq -48(%rbp), %rsi leaq L_.str.1(%rip), %rdi movb $0, %al callq _scanf movl $0, -4(%rbp) LBB0_3: ## Parent Loop BB0_1 Depth=1 ## => This Inner Loop Header: Depth=2 movl -4(%rbp), %eax movq _dir@GOTPCREL(%rip), %rcx cmpl 112(%rcx), %eax jge LBB0_8 ## %bb.4: ## in Loop: Header=BB0_3 Depth=2 leaq -48(%rbp), %rdi movslq -4(%rbp), %rax movq _dir@GOTPCREL(%rip), %rsi addq $10, %rsi imulq $10, %rax, %rax addq %rax, %rsi callq _strcmp cmpl $0, %eax jne LBB0_6 ## %bb.5: ## in Loop: Header=BB0_1 Depth=1 leaq -48(%rbp), %rsi leaq L_.str.5(%rip), %rdi movb $0, %al callq _printf jmp LBB0_8 LBB0_6: ## in Loop: Header=BB0_3 Depth=2 jmp LBB0_7 LBB0_7: ## in Loop: Header=BB0_3 Depth=2 movl -4(%rbp), %eax addl $1, %eax movl %eax, -4(%rbp) jmp LBB0_3 LBB0_8: ## in Loop: Header=BB0_1 Depth=1 movl -4(%rbp), %eax movq _dir@GOTPCREL(%rip), %rcx cmpl 112(%rcx), %eax jne LBB0_10 ## %bb.9: ## in Loop: Header=BB0_1 Depth=1 movq _dir@GOTPCREL(%rip), %rax movslq 112(%rax), %rax movq _dir@GOTPCREL(%rip), %rdi addq $10, %rdi imulq $10, %rax, %rax addq %rax, %rdi leaq -48(%rbp), %rsi movq $-1, %rdx callq ___strcpy_chk LBB0_10: ## in Loop: Header=BB0_1 Depth=1 movq _dir@GOTPCREL(%rip), %rax movl 112(%rax), %ecx addl $1, %ecx movq _dir@GOTPCREL(%rip), %rax movl %ecx, 112(%rax) jmp LBB0_39 LBB0_11: ## in Loop: Header=BB0_1 Depth=1 leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf leaq -48(%rbp), %rsi leaq L_.str.1(%rip), %rdi movb $0, %al callq _scanf movl $0, -4(%rbp) LBB0_12: ## Parent Loop BB0_1 Depth=1 ## => This Inner Loop Header: Depth=2 movl -4(%rbp), %eax movq _dir@GOTPCREL(%rip), %rcx cmpl 112(%rcx), %eax jge LBB0_17 ## %bb.13: ## in Loop: Header=BB0_12 Depth=2 leaq -48(%rbp), %rdi movslq -4(%rbp), %rax movq _dir@GOTPCREL(%rip), %rsi addq $10, %rsi imulq $10, %rax, %rax addq %rax, %rsi callq _strcmp cmpl $0, %eax jne LBB0_15 ## %bb.14: ## in Loop: Header=BB0_1 Depth=1 leaq -48(%rbp), %rsi leaq L_.str.6(%rip), %rdi movb $0, %al callq _printf movslq -4(%rbp), %rax movq _dir@GOTPCREL(%rip), %rdi addq $10, %rdi imulq $10, %rax, %rax addq %rax, %rdi movq _dir@GOTPCREL(%rip), %rax movl 112(%rax), %eax subl $1, %eax cltq movq _dir@GOTPCREL(%rip), %rsi addq $10, %rsi imulq $10, %rax, %rax addq %rax, %rsi movq $-1, %rdx callq ___strcpy_chk jmp LBB0_17 LBB0_15: ## in Loop: Header=BB0_12 Depth=2 jmp LBB0_16 LBB0_16: ## in Loop: Header=BB0_12 Depth=2 movl -4(%rbp), %eax addl $1, %eax movl %eax, -4(%rbp) jmp LBB0_12 LBB0_17: ## in Loop: Header=BB0_1 Depth=1 movl -4(%rbp), %eax movq _dir@GOTPCREL(%rip), %rcx cmpl 112(%rcx), %eax jne LBB0_19 ## %bb.18: ## in Loop: Header=BB0_1 Depth=1 leaq -48(%rbp), %rsi leaq L_.str.7(%rip), %rdi movb $0, %al callq _printf jmp LBB0_20 LBB0_19: ## in Loop: Header=BB0_1 Depth=1 movq _dir@GOTPCREL(%rip), %rax movl 112(%rax), %ecx addl $-1, %ecx movq _dir@GOTPCREL(%rip), %rax movl %ecx, 112(%rax) LBB0_20: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_39 LBB0_21: ## in Loop: Header=BB0_1 Depth=1 leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf leaq -48(%rbp), %rsi leaq L_.str.1(%rip), %rdi movb $0, %al callq _scanf movl $0, -4(%rbp) LBB0_22: ## Parent Loop BB0_1 Depth=1 ## => This Inner Loop Header: Depth=2 movl -4(%rbp), %eax movq _dir@GOTPCREL(%rip), %rcx cmpl 112(%rcx), %eax jge LBB0_27 ## %bb.23: ## in Loop: Header=BB0_22 Depth=2 leaq -48(%rbp), %rdi movslq -4(%rbp), %rax movq _dir@GOTPCREL(%rip), %rsi addq $10, %rsi imulq $10, %rax, %rax addq %rax, %rsi callq _strcmp cmpl $0, %eax jne LBB0_25 ## %bb.24: ## in Loop: Header=BB0_1 Depth=1 leaq -48(%rbp), %rsi leaq L_.str.8(%rip), %rdi movb $0, %al callq _printf jmp LBB0_27 LBB0_25: ## in Loop: Header=BB0_22 Depth=2 jmp LBB0_26 LBB0_26: ## in Loop: Header=BB0_22 Depth=2 movl -4(%rbp), %eax addl $1, %eax movl %eax, -4(%rbp) jmp LBB0_22 LBB0_27: ## in Loop: Header=BB0_1 Depth=1 movl -4(%rbp), %eax movq _dir@GOTPCREL(%rip), %rcx cmpl 112(%rcx), %eax jne LBB0_29 ## %bb.28: ## in Loop: Header=BB0_1 Depth=1 leaq -48(%rbp), %rsi leaq L_.str.7(%rip), %rdi movb $0, %al callq _printf LBB0_29: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_39 LBB0_30: ## in Loop: Header=BB0_1 Depth=1 movq _dir@GOTPCREL(%rip), %rax cmpl $0, 112(%rax) jne LBB0_32 ## %bb.31: ## in Loop: Header=BB0_1 Depth=1 leaq L_.str.9(%rip), %rdi movb $0, %al callq _printf jmp LBB0_37 LBB0_32: ## in Loop: Header=BB0_1 Depth=1 leaq L_.str.10(%rip), %rdi movb $0, %al callq _printf movl $0, -4(%rbp) LBB0_33: ## Parent Loop BB0_1 Depth=1 ## => This Inner Loop Header: Depth=2 movl -4(%rbp), %eax movq _dir@GOTPCREL(%rip), %rcx cmpl 112(%rcx), %eax jge LBB0_36 ## %bb.34: ## in Loop: Header=BB0_33 Depth=2 movslq -4(%rbp), %rax movq _dir@GOTPCREL(%rip), %rsi addq $10, %rsi imulq $10, %rax, %rax addq %rax, %rsi leaq L_.str.11(%rip), %rdi movb $0, %al callq _printf ## %bb.35: ## in Loop: Header=BB0_33 Depth=2 movl -4(%rbp), %eax addl $1, %eax movl %eax, -4(%rbp) jmp LBB0_33 LBB0_36: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_37 LBB0_37: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_39 LBB0_38: xorl %edi, %edi callq _exit LBB0_39: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_1 .cfi_endproc .p2align 2, 0x90 .data_region jt32 .set L0_0_set_2, LBB0_2-LJTI0_0 .set L0_0_set_11, LBB0_11-LJTI0_0 .set L0_0_set_21, LBB0_21-LJTI0_0 .set L0_0_set_30, LBB0_30-LJTI0_0 LJTI0_0: .long L0_0_set_2 .long L0_0_set_11 .long L0_0_set_21 .long L0_0_set_30 .end_data_region ## -- End function .comm _dir,116,2 ## @dir .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "\nEnter name of directory " L_.str.1: ## @.str.1 .asciz "%s" L_.str.2: ## @.str.2 .asciz "\n\n1. Create File\t2. Delete File\t3. Search File \n 4. Display Files\t5. Exit\nEnter your choice" L_.str.3: ## @.str.3 .asciz "%d" L_.str.4: ## @.str.4 .asciz "\nEnter the name of the file " L_.str.5: ## @.str.5 .asciz "file %s is already exists" L_.str.6: ## @.str.6 .asciz "File %s is deleted " L_.str.7: ## @.str.7 .asciz "File %s not found" L_.str.8: ## @.str.8 .asciz "File %s is found " L_.str.9: ## @.str.9 .asciz "\nDirectory Empty" L_.str.10: ## @.str.10 .asciz "\nThe Files are" L_.str.11: ## @.str.11 .asciz "\t%s" .subsections_via_symbols
the_stack_data/31386881.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str wzr, [sp, #12] mov w8, #1 str w8, [sp, #8] mov w8, #2 str w8, [sp, #4] mov w8, #3 str w8, [sp] ldr w8, [sp] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: ldr w8, [sp] add w8, w8, #1 str w8, [sp] b LBB0_3 LBB0_2: ldr w8, [sp] add w8, w8, #2 str w8, [sp] b LBB0_3 LBB0_3: mov w0, #0 add sp, sp, #16 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl $0, -4(%rbp) movl $1, -8(%rbp) movl $2, -12(%rbp) movl $3, -16(%rbp) cmpl $1, -16(%rbp) jne LBB0_2 ## %bb.1: movl -16(%rbp), %eax addl $1, %eax movl %eax, -16(%rbp) jmp LBB0_3 LBB0_2: movl -16(%rbp), %eax addl $2, %eax movl %eax, -16(%rbp) LBB0_3: xorl %eax, %eax popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/225141895.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _square ; -- Begin function square .p2align 2 _square: ; @square .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str w0, [sp, #28] str w1, [sp, #24] str xzr, [sp, #16] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #28] subs w8, w8, #0 cset w8, le mov w9, #0 str w9, [sp, #12] ; 4-byte Folded Spill tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #24] subs w8, w8, #0 cset w8, gt str w8, [sp, #12] ; 4-byte Folded Spill b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #12] ; 4-byte Folded Reload tbz w8, #0, LBB0_6 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #28] ldr w9, [sp, #24] mul w9, w8, w9 ldr x8, [sp, #16] add x8, x8, w9, sxtw str x8, [sp, #16] b LBB0_5 LBB0_5: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #28] subs w8, w8, #1 str w8, [sp, #28] ldr w8, [sp, #24] subs w8, w8, #1 str w8, [sp, #24] b LBB0_1 LBB0_6: ldr x0, [sp, #16] add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] mov x9, sp sub x8, x29, #8 str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _scanf 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_4 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 mov x9, sp sub x8, x29, #12 str x8, [x9] add x8, sp, #16 str x8, [x9, #8] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf ldur w0, [x29, #-12] ldr w1, [sp, #16] bl _square mov x8, sp str x0, [x8] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf b LBB1_3 LBB1_3: ; in Loop: Header=BB1_1 Depth=1 ldur w8, [x29, #-8] subs w8, w8, #1 stur w8, [x29, #-8] b LBB1_1 LBB1_4: mov w0, #0 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d" l_.str.1: ; @.str.1 .asciz "%d%d" l_.str.2: ; @.str.2 .asciz "%llu\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _square ## -- Begin function square .p2align 4, 0x90 _square: ## @square .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 $0, -16(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $0, -4(%rbp) movb %al, -17(%rbp) ## 1-byte Spill jle LBB0_3 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 cmpl $0, -8(%rbp) setg %al movb %al, -17(%rbp) ## 1-byte Spill LBB0_3: ## in Loop: Header=BB0_1 Depth=1 movb -17(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB0_4 jmp LBB0_6 LBB0_4: ## in Loop: Header=BB0_1 Depth=1 movl -4(%rbp), %eax imull -8(%rbp), %eax cltq addq -16(%rbp), %rax movq %rax, -16(%rbp) ## %bb.5: ## in Loop: Header=BB0_1 Depth=1 movl -4(%rbp), %eax addl $-1, %eax movl %eax, -4(%rbp) movl -8(%rbp), %eax addl $-1, %eax movl %eax, -8(%rbp) jmp LBB0_1 LBB0_6: movq -16(%rbp), %rax popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) leaq L_.str(%rip), %rdi leaq -8(%rbp), %rsi movb $0, %al callq _scanf LBB1_1: ## =>This Inner Loop Header: Depth=1 cmpl $0, -8(%rbp) je LBB1_4 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 leaq L_.str.1(%rip), %rdi leaq -12(%rbp), %rsi leaq -16(%rbp), %rdx movb $0, %al callq _scanf movl -12(%rbp), %edi movl -16(%rbp), %esi callq _square movq %rax, %rsi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf ## %bb.3: ## in Loop: Header=BB1_1 Depth=1 movl -8(%rbp), %eax addl $-1, %eax movl %eax, -8(%rbp) jmp LBB1_1 LBB1_4: 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 "%d%d" L_.str.2: ## @.str.2 .asciz "%llu\n" .subsections_via_symbols
the_stack_data/80844.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] mov w0, #13 bl _teaser 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 _teaser ; -- Begin function teaser .p2align 2 _teaser: ; @teaser .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur w0, [x29, #-4] str wzr, [sp, #8] b LBB1_1 LBB1_1: ; =>This Loop Header: Depth=1 ; Child Loop BB1_3 Depth 2 ldr w8, [sp, #8] ldur w9, [x29, #-4] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_16 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 str wzr, [sp, #4] b LBB1_3 LBB1_3: ; Parent Loop BB1_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #4] ldur w9, [x29, #-4] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_14 b LBB1_4 LBB1_4: ; in Loop: Header=BB1_3 Depth=2 ldr w8, [sp, #8] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB1_6 b LBB1_5 LBB1_5: ; in Loop: Header=BB1_3 Depth=2 ldr w8, [sp, #8] ldur w9, [x29, #-4] subs w9, w9, #1 subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB1_7 b LBB1_6 LBB1_6: ; in Loop: Header=BB1_3 Depth=2 adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf b LBB1_12 LBB1_7: ; in Loop: Header=BB1_3 Depth=2 ldr w8, [sp, #4] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB1_9 b LBB1_8 LBB1_8: ; in Loop: Header=BB1_3 Depth=2 ldr w8, [sp, #4] ldur w9, [x29, #-4] subs w9, w9, #1 subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB1_10 b LBB1_9 LBB1_9: ; in Loop: Header=BB1_3 Depth=2 adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf b LBB1_11 LBB1_10: ; in Loop: Header=BB1_3 Depth=2 adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf b LBB1_11 LBB1_11: ; in Loop: Header=BB1_3 Depth=2 b LBB1_12 LBB1_12: ; in Loop: Header=BB1_3 Depth=2 b LBB1_13 LBB1_13: ; in Loop: Header=BB1_3 Depth=2 ldr w8, [sp, #4] add w8, w8, #1 str w8, [sp, #4] b LBB1_3 LBB1_14: ; in Loop: Header=BB1_1 Depth=1 adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf b LBB1_15 LBB1_15: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #8] add w8, w8, #1 str w8, [sp, #8] b LBB1_1 LBB1_16: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "* " l_.str.1: ; @.str.1 .asciz " " l_.str.2: ; @.str.2 .asciz "\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) movl $13, %edi callq _teaser xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _teaser ## -- Begin function teaser .p2align 4, 0x90 _teaser: ## @teaser .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl %edi, -4(%rbp) movl $0, -8(%rbp) LBB1_1: ## =>This Loop Header: Depth=1 ## Child Loop BB1_3 Depth 2 movl -8(%rbp), %eax cmpl -4(%rbp), %eax jge LBB1_16 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 movl $0, -12(%rbp) LBB1_3: ## Parent Loop BB1_1 Depth=1 ## => This Inner Loop Header: Depth=2 movl -12(%rbp), %eax cmpl -4(%rbp), %eax jge LBB1_14 ## %bb.4: ## in Loop: Header=BB1_3 Depth=2 cmpl $0, -8(%rbp) je LBB1_6 ## %bb.5: ## in Loop: Header=BB1_3 Depth=2 movl -8(%rbp), %eax movl -4(%rbp), %ecx subl $1, %ecx cmpl %ecx, %eax jne LBB1_7 LBB1_6: ## in Loop: Header=BB1_3 Depth=2 leaq L_.str(%rip), %rdi movb $0, %al callq _printf jmp LBB1_12 LBB1_7: ## in Loop: Header=BB1_3 Depth=2 cmpl $0, -12(%rbp) je LBB1_9 ## %bb.8: ## in Loop: Header=BB1_3 Depth=2 movl -12(%rbp), %eax movl -4(%rbp), %ecx subl $1, %ecx cmpl %ecx, %eax jne LBB1_10 LBB1_9: ## in Loop: Header=BB1_3 Depth=2 leaq L_.str(%rip), %rdi movb $0, %al callq _printf jmp LBB1_11 LBB1_10: ## in Loop: Header=BB1_3 Depth=2 leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf LBB1_11: ## in Loop: Header=BB1_3 Depth=2 jmp LBB1_12 LBB1_12: ## in Loop: Header=BB1_3 Depth=2 jmp LBB1_13 LBB1_13: ## in Loop: Header=BB1_3 Depth=2 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB1_3 LBB1_14: ## in Loop: Header=BB1_1 Depth=1 leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf ## %bb.15: ## in Loop: Header=BB1_1 Depth=1 movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) jmp LBB1_1 LBB1_16: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "* " L_.str.1: ## @.str.1 .asciz " " L_.str.2: ## @.str.2 .asciz "\n" .subsections_via_symbols
the_stack_data/643.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: mov w0, #0 ret .cfi_endproc ; -- End function .comm _a,12,2 ; @a .comm _b,544,3 ; @b .comm _calendar,1488,2 ; @calendar .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 xorl %eax, %eax popq %rbp retq .cfi_endproc ## -- End function .comm _a,12,2 ## @a .comm _b,544,4 ## @b .comm _calendar,1488,4 ## @calendar .subsections_via_symbols
the_stack_data/20450832.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] adrp x9, _main.error_handler@PAGE adrp x8, _print_error@PAGE add x8, x8, _print_error@PAGEOFF str x8, [x9, _main.error_handler@PAGEOFF] ldur w8, [x29, #-8] subs w8, w8, #2 cset w8, ge tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov w8, #1 stur w8, [x29, #-4] b LBB0_6 LBB0_2: ldr x8, [sp, #16] ldr x1, [x8, #8] adrp x8, _main.buf@PAGE str x8, [sp, #8] ; 8-byte Folded Spill adrp x0, _main.buf@PAGE add x0, x0, _main.buf@PAGEOFF mov x2, #12 bl ___strcpy_chk ldr x8, [sp, #8] ; 8-byte Folded Reload ldrsb w8, [x8, _main.buf@PAGEOFF] subs w8, w8, #47 cset w8, eq tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: adrp x8, _main.error_handler@PAGE ldr x8, [x8, _main.error_handler@PAGEOFF] ldr x9, [sp, #16] ldr x0, [x9, #8] blr x8 b LBB0_5 LBB0_4: adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf b LBB0_5 LBB0_5: mov x9, sp adrp x8, _system@GOTPAGE ldr x8, [x8, _system@GOTPAGEOFF] str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf b LBB0_6 LBB0_6: ldur w0, [x29, #-4] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _print_error ; -- Begin function print_error .p2align 2 _print_error: ; @print_error .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #8] ldr x8, [sp, #8] mov x9, sp str x8, [x9] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf mov w0, #0 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .zerofill __DATA,__bss,_main.error_handler,8,3 ; @main.error_handler .zerofill __DATA,__bss,_main.buf,12,0 ; @main.buf .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Please provide an argument\n" l_.str.1: ; @.str.1 .asciz "Everything is OK\n" l_.str.2: ; @.str.2 .asciz "Addr of system: %p\n" l_.str.3: ; @.str.3 .asciz "Not a valid input: %s\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) movl %edi, -8(%rbp) movq %rsi, -16(%rbp) leaq _print_error(%rip), %rax movq %rax, _main.error_handler(%rip) cmpl $2, -8(%rbp) jge LBB0_2 ## %bb.1: leaq L_.str(%rip), %rdi movb $0, %al callq _printf movl $1, -4(%rbp) jmp LBB0_6 LBB0_2: movq -16(%rbp), %rax movq 8(%rax), %rsi leaq _main.buf(%rip), %rdi movl $12, %edx callq ___strcpy_chk movsbl _main.buf(%rip), %eax cmpl $47, %eax je LBB0_4 ## %bb.3: movq _main.error_handler(%rip), %rax movq -16(%rbp), %rcx movq 8(%rcx), %rdi callq *%rax jmp LBB0_5 LBB0_4: leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf LBB0_5: leaq L_.str.2(%rip), %rdi movq _system@GOTPCREL(%rip), %rsi movb $0, %al callq _printf LBB0_6: movl -4(%rbp), %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _print_error ## -- Begin function print_error .p2align 4, 0x90 _print_error: ## @print_error .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) movq -8(%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 .zerofill __DATA,__bss,_main.error_handler,8,3 ## @main.error_handler .zerofill __DATA,__bss,_main.buf,12,0 ## @main.buf .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Please provide an argument\n" L_.str.1: ## @.str.1 .asciz "Everything is OK\n" L_.str.2: ## @.str.2 .asciz "Addr of system: %p\n" L_.str.3: ## @.str.3 .asciz "Not a valid input: %s\n" .subsections_via_symbols
the_stack_data/94549.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill .cfi_def_cfa_offset 16 mov x29, sp .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 sub sp, sp, #80 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] stur wzr, [x29, #-12] stur wzr, [x29, #-28] mov w8, #1 stur w8, [x29, #-32] sub sp, sp, #16 mov x9, sp sub x8, x29, #16 str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _scanf add sp, sp, #16 ldur w8, [x29, #-16] ; kill: def $x8 killed $w8 mov x9, sp stur x9, [x29, #-40] 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, #-48] stur wzr, [x29, #-20] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-20] ldur w9, [x29, #-16] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_4 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldur x8, [x29, #-56] ; 8-byte Folded Reload ldursw x9, [x29, #-20] add x8, x8, x9, lsl #2 sub sp, sp, #16 mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _scanf add sp, sp, #16 b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-20] add w8, w8, #1 stur w8, [x29, #-20] b LBB0_1 LBB0_4: ldur x8, [x29, #-56] ; 8-byte Folded Reload ldursw x9, [x29, #-28] ldr w8, [x8, x9, lsl #2] stur w8, [x29, #-24] stur wzr, [x29, #-28] b LBB0_5 LBB0_5: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-28] ldur w9, [x29, #-16] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_10 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_5 Depth=1 ldur x8, [x29, #-56] ; 8-byte Folded Reload ldursw x9, [x29, #-28] ldr w8, [x8, x9, lsl #2] ldur w9, [x29, #-24] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_8 b LBB0_7 LBB0_7: ; in Loop: Header=BB0_5 Depth=1 ldur x8, [x29, #-56] ; 8-byte Folded Reload ldursw x9, [x29, #-28] ldr w8, [x8, x9, lsl #2] stur w8, [x29, #-24] ldur w8, [x29, #-28] add w8, w8, #1 stur w8, [x29, #-32] b LBB0_8 LBB0_8: ; in Loop: Header=BB0_5 Depth=1 b LBB0_9 LBB0_9: ; in Loop: Header=BB0_5 Depth=1 ldur w8, [x29, #-28] add w8, w8, #1 stur w8, [x29, #-28] b LBB0_5 LBB0_10: ldur w9, [x29, #-32] ; implicit-def: $x8 mov x8, x9 sub sp, sp, #16 mov x9, sp str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf add sp, sp, #16 stur wzr, [x29, #-12] ldur x8, [x29, #-40] 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_12 b LBB0_11 LBB0_11: bl ___stack_chk_fail LBB0_12: ldur w0, [x29, #-68] ; 4-byte Folded Reload mov sp, x29 ldp x29, x30, [sp], #16 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d" l_.str.1: ; @.str.1 .asciz "%d\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $80, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -12(%rbp) movl $0, -28(%rbp) movl $1, -32(%rbp) leaq L_.str(%rip), %rdi xorl %eax, %eax ## kill: def $al killed $al killed $eax leaq -16(%rbp), %rsi callq _scanf movl -16(%rbp), %eax ## kill: def $rax killed $eax movq %rax, -64(%rbp) ## 8-byte Spill movq %rsp, %rcx movq %rcx, -40(%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, -48(%rbp) movl $0, -20(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movl -20(%rbp), %eax cmpl -16(%rbp), %eax jge LBB0_4 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movq -56(%rbp), %rsi ## 8-byte Reload movslq -20(%rbp), %rax shlq $2, %rax addq %rax, %rsi leaq L_.str(%rip), %rdi movb $0, %al callq _scanf ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB0_1 LBB0_4: movq -56(%rbp), %rax ## 8-byte Reload movslq -28(%rbp), %rcx movl (%rax,%rcx,4), %eax movl %eax, -24(%rbp) movl $0, -28(%rbp) LBB0_5: ## =>This Inner Loop Header: Depth=1 movl -28(%rbp), %eax cmpl -16(%rbp), %eax jge LBB0_10 ## %bb.6: ## in Loop: Header=BB0_5 Depth=1 movq -56(%rbp), %rax ## 8-byte Reload movslq -28(%rbp), %rcx movl (%rax,%rcx,4), %eax cmpl -24(%rbp), %eax jge LBB0_8 ## %bb.7: ## in Loop: Header=BB0_5 Depth=1 movq -56(%rbp), %rax ## 8-byte Reload movslq -28(%rbp), %rcx movl (%rax,%rcx,4), %eax movl %eax, -24(%rbp) movl -28(%rbp), %eax addl $1, %eax movl %eax, -32(%rbp) LBB0_8: ## in Loop: Header=BB0_5 Depth=1 jmp LBB0_9 LBB0_9: ## in Loop: Header=BB0_5 Depth=1 movl -28(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) jmp LBB0_5 LBB0_10: movl -32(%rbp), %esi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf movl $0, -12(%rbp) movq -40(%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_12 ## %bb.11: movl -68(%rbp), %eax ## 4-byte Reload movq %rbp, %rsp popq %rbp retq LBB0_12: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d" L_.str.1: ## @.str.1 .asciz "%d\n" .subsections_via_symbols
the_stack_data/125141631.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str wzr, [sp, #12] mov w0, #1 add sp, sp, #16 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl $0, -4(%rbp) movl $1, %eax popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/980730.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] stur w0, [x29, #-8] str x1, [sp, #16] ldur w8, [x29, #-8] subs w8, w8, #2 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] adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF bl _fprintf mov w0, #1 bl _exit LBB0_2: ldr x8, [sp, #16] ldr x8, [x8, #8] str x8, [sp, #8] b LBB0_3 LBB0_3: ; =>This Inner Loop Header: Depth=1 mov w0, #1 bl _sleep ldr x8, [sp, #8] mov x9, sp str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf b LBB0_3 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "usage: cpu <string>\n" l_.str.1: ; @.str.1 .asciz "%s\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl $0, -4(%rbp) movl %edi, -8(%rbp) movq %rsi, -16(%rbp) cmpl $2, -8(%rbp) je LBB0_2 ## %bb.1: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str(%rip), %rsi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _fprintf movl $1, %edi callq _exit LBB0_2: movq -16(%rbp), %rax movq 8(%rax), %rax movq %rax, -24(%rbp) LBB0_3: ## =>This Inner Loop Header: Depth=1 movl $1, %edi callq _sleep movq -24(%rbp), %rsi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf jmp LBB0_3 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "usage: cpu <string>\n" L_.str.1: ## @.str.1 .asciz "%s\n" .subsections_via_symbols
the_stack_data/43887465.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _add16u_1E2 ; -- Begin function add16u_1E2 .p2align 2 _add16u_1E2: ; @add16u_1E2 .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, #496 sub x8, x29, #176 str x8, [sp, #8] ; 8-byte Folded Spill adrp x9, ___stack_chk_guard@GOTPAGE ldr x9, [x9, ___stack_chk_guard@GOTPAGEOFF] ldr x9, [x9] stur x9, [x29, #-24] str x0, [x8, #16] str x1, [x8, #8] str xzr, [x8] ldr x9, [x8, #16] lsr x9, x9, #0 and x9, x9, #0x1 ; kill: def $w9 killed $w9 killed $x9 stur w9, [x29, #-88] ldr x9, [x8, #8] lsr x9, x9, #0 and x9, x9, #0x1 ; kill: def $w9 killed $w9 killed $x9 stur w9, [x29, #-152] ldr x9, [x8, #16] lsr x9, x9, #1 and x9, x9, #0x1 ; kill: def $w9 killed $w9 killed $x9 stur w9, [x29, #-84] ldr x9, [x8, #8] lsr x9, x9, #1 and x9, x9, #0x1 ; kill: def $w9 killed $w9 killed $x9 stur w9, [x29, #-148] ldr x9, [x8, #16] lsr x9, x9, #2 and x9, x9, #0x1 ; kill: def $w9 killed $w9 killed $x9 stur w9, [x29, #-80] ldr x9, [x8, #8] lsr x9, x9, #2 and x9, x9, #0x1 ; kill: def $w9 killed $w9 killed $x9 stur w9, [x29, #-144] ldr x9, [x8, #16] lsr x9, x9, #3 and x9, x9, #0x1 ; kill: def $w9 killed $w9 killed $x9 stur w9, [x29, #-76] ldr x9, [x8, #8] lsr x9, x9, #3 and x9, x9, #0x1 ; kill: def $w9 killed $w9 killed $x9 stur w9, [x29, #-140] ldr x9, [x8, #16] lsr x9, x9, #4 and x9, x9, #0x1 ; kill: def $w9 killed $w9 killed $x9 stur w9, [x29, #-72] ldr x9, [x8, #8] lsr x9, x9, #4 and x9, x9, #0x1 ; kill: def $w9 killed $w9 killed $x9 stur w9, [x29, #-136] ldr x9, [x8, #16] lsr x9, x9, #5 and x9, x9, #0x1 ; kill: def $w9 killed $w9 killed $x9 stur w9, [x29, #-68] ldr x9, [x8, #8] lsr x9, x9, #5 and x9, x9, #0x1 ; kill: def $w9 killed $w9 killed $x9 stur w9, [x29, #-132] ldr x9, [x8, #16] lsr x9, x9, #6 and x9, x9, #0x1 ; kill: def $w9 killed $w9 killed $x9 stur w9, [x29, #-64] ldr x9, [x8, #8] lsr x9, x9, #6 and x9, x9, #0x1 ; kill: def $w9 killed $w9 killed $x9 stur w9, [x29, #-128] ldr x9, [x8, #16] lsr x9, x9, #7 and x9, x9, #0x1 ; kill: def $w9 killed $w9 killed $x9 stur w9, [x29, #-60] ldr x9, [x8, #8] lsr x9, x9, #7 and x9, x9, #0x1 ; kill: def $w9 killed $w9 killed $x9 stur w9, [x29, #-124] ldr x9, [x8, #16] lsr x9, x9, #8 and x9, x9, #0x1 ; kill: def $w9 killed $w9 killed $x9 stur w9, [x29, #-56] ldr x9, [x8, #8] lsr x9, x9, #8 and x9, x9, #0x1 ; kill: def $w9 killed $w9 killed $x9 stur w9, [x29, #-120] ldr x9, [x8, #16] lsr x9, x9, #9 and x9, x9, #0x1 ; kill: def $w9 killed $w9 killed $x9 stur w9, [x29, #-52] ldr x9, [x8, #8] lsr x9, x9, #9 and x9, x9, #0x1 ; kill: def $w9 killed $w9 killed $x9 stur w9, [x29, #-116] ldr x9, [x8, #16] lsr x9, x9, #10 and x9, x9, #0x1 ; kill: def $w9 killed $w9 killed $x9 stur w9, [x29, #-48] ldr x9, [x8, #8] lsr x9, x9, #10 and x9, x9, #0x1 ; kill: def $w9 killed $w9 killed $x9 stur w9, [x29, #-112] ldr x9, [x8, #16] lsr x9, x9, #11 and x9, x9, #0x1 ; kill: def $w9 killed $w9 killed $x9 stur w9, [x29, #-44] ldr x9, [x8, #8] lsr x9, x9, #11 and x9, x9, #0x1 ; kill: def $w9 killed $w9 killed $x9 stur w9, [x29, #-108] ldr x9, [x8, #16] lsr x9, x9, #12 and x9, x9, #0x1 ; kill: def $w9 killed $w9 killed $x9 stur w9, [x29, #-40] ldr x9, [x8, #8] lsr x9, x9, #12 and x9, x9, #0x1 ; kill: def $w9 killed $w9 killed $x9 stur w9, [x29, #-104] ldr x9, [x8, #16] lsr x9, x9, #13 and x9, x9, #0x1 ; kill: def $w9 killed $w9 killed $x9 stur w9, [x29, #-36] ldr x9, [x8, #8] lsr x9, x9, #13 and x9, x9, #0x1 ; kill: def $w9 killed $w9 killed $x9 stur w9, [x29, #-100] ldr x9, [x8, #16] lsr x9, x9, #14 and x9, x9, #0x1 ; kill: def $w9 killed $w9 killed $x9 stur w9, [x29, #-32] ldr x9, [x8, #8] lsr x9, x9, #14 and x9, x9, #0x1 ; kill: def $w9 killed $w9 killed $x9 stur w9, [x29, #-96] ldr x9, [x8, #16] lsr x9, x9, #15 and x9, x9, #0x1 ; kill: def $w9 killed $w9 killed $x9 stur w9, [x29, #-28] ldr x9, [x8, #8] lsr x9, x9, #15 and x9, x9, #0x1 ; kill: def $w9 killed $w9 killed $x9 stur w9, [x29, #-92] ldur w9, [x29, #-88] ldur w10, [x29, #-152] eor w9, w9, w10 stur w9, [x29, #-180] ldur w9, [x29, #-88] ldur w10, [x29, #-152] and w9, w9, w10 stur w9, [x29, #-184] ldur w9, [x29, #-84] ldur w10, [x29, #-148] eor w9, w9, w10 stur w9, [x29, #-188] ldur w9, [x29, #-84] ldur w10, [x29, #-148] and w9, w9, w10 stur w9, [x29, #-192] ldur w9, [x29, #-188] ldur w10, [x29, #-184] and w9, w9, w10 stur w9, [x29, #-196] ldur w9, [x29, #-188] ldur w10, [x29, #-184] eor w9, w9, w10 stur w9, [x29, #-200] ldur w9, [x29, #-192] ldur w10, [x29, #-196] orr w9, w9, w10 stur w9, [x29, #-204] ldur w9, [x29, #-80] ldur w10, [x29, #-144] eor w9, w9, w10 stur w9, [x29, #-208] ldur w9, [x29, #-80] ldur w10, [x29, #-144] and w9, w9, w10 stur w9, [x29, #-212] ldur w9, [x29, #-208] ldur w10, [x29, #-204] and w9, w9, w10 stur w9, [x29, #-216] ldur w9, [x29, #-208] ldur w10, [x29, #-204] eor w9, w9, w10 stur w9, [x29, #-220] ldur w9, [x29, #-212] ldur w10, [x29, #-216] orr w9, w9, w10 stur w9, [x29, #-224] ldur w9, [x29, #-76] ldur w10, [x29, #-140] eor w9, w9, w10 stur w9, [x29, #-228] ldur w9, [x29, #-76] ldur w10, [x29, #-140] and w9, w9, w10 stur w9, [x29, #-232] ldur w9, [x29, #-228] ldur w10, [x29, #-224] and w9, w9, w10 stur w9, [x29, #-236] ldur w9, [x29, #-228] ldur w10, [x29, #-224] eor w9, w9, w10 stur w9, [x29, #-240] ldur w9, [x29, #-232] ldur w10, [x29, #-236] orr w9, w9, w10 stur w9, [x29, #-244] ldur w9, [x29, #-72] ldur w10, [x29, #-136] eor w9, w9, w10 stur w9, [x29, #-248] ldur w9, [x29, #-72] ldur w10, [x29, #-136] and w9, w9, w10 stur w9, [x29, #-252] ldur w9, [x29, #-248] ldur w10, [x29, #-244] and w9, w9, w10 str w9, [sp, #256] ldur w9, [x29, #-248] ldur w10, [x29, #-244] eor w9, w9, w10 str w9, [sp, #252] ldur w9, [x29, #-252] ldr w10, [sp, #256] orr w9, w9, w10 str w9, [sp, #248] ldur w9, [x29, #-68] ldur w10, [x29, #-132] eor w9, w9, w10 str w9, [sp, #244] ldur w9, [x29, #-68] ldur w10, [x29, #-132] and w9, w9, w10 str w9, [sp, #240] ldr w9, [sp, #244] ldr w10, [sp, #248] and w9, w9, w10 str w9, [sp, #236] ldr w9, [sp, #244] ldr w10, [sp, #248] eor w9, w9, w10 str w9, [sp, #232] ldr w9, [sp, #240] ldr w10, [sp, #236] orr w9, w9, w10 str w9, [sp, #228] ldur w9, [x29, #-64] ldur w10, [x29, #-128] eor w9, w9, w10 str w9, [sp, #224] ldur w9, [x29, #-64] ldur w10, [x29, #-128] and w9, w9, w10 str w9, [sp, #220] ldr w9, [sp, #224] ldr w10, [sp, #228] and w9, w9, w10 str w9, [sp, #216] ldr w9, [sp, #224] ldr w10, [sp, #228] eor w9, w9, w10 str w9, [sp, #212] ldr w9, [sp, #220] ldr w10, [sp, #216] orr w9, w9, w10 str w9, [sp, #208] ldur w9, [x29, #-60] ldur w10, [x29, #-124] eor w9, w9, w10 str w9, [sp, #204] ldur w9, [x29, #-60] ldur w10, [x29, #-124] and w9, w9, w10 str w9, [sp, #200] ldr w9, [sp, #204] ldr w10, [sp, #208] and w9, w9, w10 str w9, [sp, #196] ldr w9, [sp, #204] ldr w10, [sp, #208] eor w9, w9, w10 str w9, [sp, #192] ldr w9, [sp, #200] ldr w10, [sp, #196] orr w9, w9, w10 str w9, [sp, #188] ldur w9, [x29, #-56] ldur w10, [x29, #-120] eor w9, w9, w10 str w9, [sp, #184] ldur w9, [x29, #-56] ldur w10, [x29, #-120] and w9, w9, w10 str w9, [sp, #180] ldr w9, [sp, #184] ldr w10, [sp, #188] and w9, w9, w10 str w9, [sp, #176] ldr w9, [sp, #184] ldr w10, [sp, #188] eor w9, w9, w10 str w9, [sp, #172] ldr w9, [sp, #180] ldr w10, [sp, #176] orr w9, w9, w10 str w9, [sp, #168] ldur w9, [x29, #-52] ldur w10, [x29, #-116] eor w9, w9, w10 str w9, [sp, #164] ldur w9, [x29, #-52] ldur w10, [x29, #-116] and w9, w9, w10 str w9, [sp, #160] ldr w9, [sp, #164] ldr w10, [sp, #168] and w9, w9, w10 str w9, [sp, #156] ldr w9, [sp, #164] ldr w10, [sp, #168] eor w9, w9, w10 str w9, [sp, #152] ldr w9, [sp, #160] ldr w10, [sp, #156] orr w9, w9, w10 str w9, [sp, #148] ldur w9, [x29, #-48] ldur w10, [x29, #-112] eor w9, w9, w10 str w9, [sp, #144] ldur w9, [x29, #-48] ldur w10, [x29, #-112] and w9, w9, w10 str w9, [sp, #140] ldr w9, [sp, #144] ldr w10, [sp, #148] and w9, w9, w10 str w9, [sp, #136] ldr w9, [sp, #144] ldr w10, [sp, #148] eor w9, w9, w10 str w9, [sp, #132] ldr w9, [sp, #140] ldr w10, [sp, #136] orr w9, w9, w10 str w9, [sp, #128] ldur w9, [x29, #-44] ldur w10, [x29, #-108] eor w9, w9, w10 str w9, [sp, #124] ldur w9, [x29, #-44] ldur w10, [x29, #-108] and w9, w9, w10 str w9, [sp, #120] ldr w9, [sp, #124] ldr w10, [sp, #128] and w9, w9, w10 str w9, [sp, #116] ldr w9, [sp, #124] ldr w10, [sp, #128] eor w9, w9, w10 str w9, [sp, #112] ldr w9, [sp, #120] ldr w10, [sp, #116] orr w9, w9, w10 str w9, [sp, #108] ldur w9, [x29, #-40] ldur w10, [x29, #-104] eor w9, w9, w10 str w9, [sp, #104] ldur w9, [x29, #-40] ldur w10, [x29, #-104] and w9, w9, w10 str w9, [sp, #100] ldr w9, [sp, #104] ldr w10, [sp, #108] and w9, w9, w10 str w9, [sp, #96] ldr w9, [sp, #104] ldr w10, [sp, #108] eor w9, w9, w10 str w9, [sp, #92] ldr w9, [sp, #100] ldr w10, [sp, #96] orr w9, w9, w10 str w9, [sp, #88] ldur w9, [x29, #-36] ldur w10, [x29, #-100] eor w9, w9, w10 str w9, [sp, #84] ldur w9, [x29, #-36] ldur w10, [x29, #-100] and w9, w9, w10 str w9, [sp, #80] ldr w9, [sp, #84] ldr w10, [sp, #88] and w9, w9, w10 str w9, [sp, #76] ldr w9, [sp, #84] ldr w10, [sp, #88] eor w9, w9, w10 str w9, [sp, #72] ldr w9, [sp, #80] ldr w10, [sp, #76] orr w9, w9, w10 str w9, [sp, #68] ldur w9, [x29, #-32] ldur w10, [x29, #-96] eor w9, w9, w10 str w9, [sp, #64] ldur w9, [x29, #-32] ldur w10, [x29, #-96] and w9, w9, w10 str w9, [sp, #60] ldr w9, [sp, #64] ldr w10, [sp, #68] and w9, w9, w10 str w9, [sp, #56] ldr w9, [sp, #64] ldr w10, [sp, #68] eor w9, w9, w10 str w9, [sp, #52] ldr w9, [sp, #60] ldr w10, [sp, #56] orr w9, w9, w10 str w9, [sp, #48] ldur w9, [x29, #-28] ldur w10, [x29, #-92] eor w9, w9, w10 str w9, [sp, #44] ldur w9, [x29, #-28] ldur w10, [x29, #-92] and w9, w9, w10 str w9, [sp, #40] ldr w9, [sp, #44] ldr w10, [sp, #48] and w9, w9, w10 str w9, [sp, #36] ldr w9, [sp, #44] ldr w10, [sp, #48] eor w9, w9, w10 str w9, [sp, #32] ldr w9, [sp, #40] ldr w10, [sp, #36] orr w9, w9, w10 str w9, [sp, #28] ldur w9, [x29, #-180] and w9, w9, #0x1 lsr w10, w9, #0 ; implicit-def: $x9 mov x9, x10 sxtw x10, w9 ldr x9, [x8] orr x9, x9, x10 str x9, [x8] ldur w9, [x29, #-200] and w9, w9, #0x1 lsl w10, w9, #1 ; implicit-def: $x9 mov x9, x10 sxtw x10, w9 ldr x9, [x8] orr x9, x9, x10 str x9, [x8] ldur w9, [x29, #-220] and w9, w9, #0x1 lsl w10, w9, #2 ; implicit-def: $x9 mov x9, x10 sxtw x10, w9 ldr x9, [x8] orr x9, x9, x10 str x9, [x8] ldur w9, [x29, #-240] and w9, w9, #0x1 lsl w10, w9, #3 ; implicit-def: $x9 mov x9, x10 sxtw x10, w9 ldr x9, [x8] orr x9, x9, x10 str x9, [x8] ldr w9, [sp, #252] and w9, w9, #0x1 lsl w10, w9, #4 ; implicit-def: $x9 mov x9, x10 sxtw x10, w9 ldr x9, [x8] orr x9, x9, x10 str x9, [x8] ldr w9, [sp, #232] and w9, w9, #0x1 lsl w10, w9, #5 ; implicit-def: $x9 mov x9, x10 sxtw x10, w9 ldr x9, [x8] orr x9, x9, x10 str x9, [x8] ldr w9, [sp, #212] and w9, w9, #0x1 lsl w10, w9, #6 ; implicit-def: $x9 mov x9, x10 sxtw x10, w9 ldr x9, [x8] orr x9, x9, x10 str x9, [x8] ldr w9, [sp, #192] and w9, w9, #0x1 lsl w10, w9, #7 ; implicit-def: $x9 mov x9, x10 sxtw x10, w9 ldr x9, [x8] orr x9, x9, x10 str x9, [x8] ldr w9, [sp, #172] and w9, w9, #0x1 lsl w10, w9, #8 ; implicit-def: $x9 mov x9, x10 sxtw x10, w9 ldr x9, [x8] orr x9, x9, x10 str x9, [x8] ldr w9, [sp, #152] and w9, w9, #0x1 lsl w10, w9, #9 ; implicit-def: $x9 mov x9, x10 sxtw x10, w9 ldr x9, [x8] orr x9, x9, x10 str x9, [x8] ldr w9, [sp, #132] and w9, w9, #0x1 lsl w10, w9, #10 ; implicit-def: $x9 mov x9, x10 sxtw x10, w9 ldr x9, [x8] orr x9, x9, x10 str x9, [x8] ldr w9, [sp, #112] and w9, w9, #0x1 lsl w10, w9, #11 ; implicit-def: $x9 mov x9, x10 sxtw x10, w9 ldr x9, [x8] orr x9, x9, x10 str x9, [x8] ldr w9, [sp, #92] and w9, w9, #0x1 lsl w10, w9, #12 ; implicit-def: $x9 mov x9, x10 sxtw x10, w9 ldr x9, [x8] orr x9, x9, x10 str x9, [x8] ldr w9, [sp, #72] and w9, w9, #0x1 lsl w10, w9, #13 ; implicit-def: $x9 mov x9, x10 sxtw x10, w9 ldr x9, [x8] orr x9, x9, x10 str x9, [x8] ldr w9, [sp, #52] and w9, w9, #0x1 lsl w10, w9, #14 ; implicit-def: $x9 mov x9, x10 sxtw x10, w9 ldr x9, [x8] orr x9, x9, x10 str x9, [x8] ldr w9, [sp, #32] and w9, w9, #0x1 lsl w10, w9, #15 ; implicit-def: $x9 mov x9, x10 sxtw x10, w9 ldr x9, [x8] orr x9, x9, x10 str x9, [x8] ldr w9, [sp, #28] and w9, w9, #0x1 lsl w10, w9, #16 ; implicit-def: $x9 mov x9, x10 sxtw x10, w9 ldr x9, [x8] orr x9, x9, x10 str x9, [x8] ldr x8, [x8] str x8, [sp, #16] ; 8-byte Folded Spill ldur x9, [x29, #-24] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: bl ___stack_chk_fail LBB0_2: ldr x0, [sp, #16] ; 8-byte Folded Reload add sp, sp, #496 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 _add16u_1E2 ## -- Begin function add16u_1E2 .p2align 4, 0x90 _add16u_1E2: ## @add16u_1E2 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $496, %rsp ## imm = 0x1F0 movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movq %rdi, -152(%rbp) movq %rsi, -160(%rbp) movq $0, -168(%rbp) movq -152(%rbp), %rax shrq $0, %rax andq $1, %rax ## kill: def $eax killed $eax killed $rax movl %eax, -80(%rbp) movq -160(%rbp), %rax shrq $0, %rax andq $1, %rax ## kill: def $eax killed $eax killed $rax movl %eax, -144(%rbp) movq -152(%rbp), %rax shrq $1, %rax andq $1, %rax ## kill: def $eax killed $eax killed $rax movl %eax, -76(%rbp) movq -160(%rbp), %rax shrq $1, %rax andq $1, %rax ## kill: def $eax killed $eax killed $rax movl %eax, -140(%rbp) movq -152(%rbp), %rax shrq $2, %rax andq $1, %rax ## kill: def $eax killed $eax killed $rax movl %eax, -72(%rbp) movq -160(%rbp), %rax shrq $2, %rax andq $1, %rax ## kill: def $eax killed $eax killed $rax movl %eax, -136(%rbp) movq -152(%rbp), %rax shrq $3, %rax andq $1, %rax ## kill: def $eax killed $eax killed $rax movl %eax, -68(%rbp) movq -160(%rbp), %rax shrq $3, %rax andq $1, %rax ## kill: def $eax killed $eax killed $rax movl %eax, -132(%rbp) movq -152(%rbp), %rax shrq $4, %rax andq $1, %rax ## kill: def $eax killed $eax killed $rax movl %eax, -64(%rbp) movq -160(%rbp), %rax shrq $4, %rax andq $1, %rax ## kill: def $eax killed $eax killed $rax movl %eax, -128(%rbp) movq -152(%rbp), %rax shrq $5, %rax andq $1, %rax ## kill: def $eax killed $eax killed $rax movl %eax, -60(%rbp) movq -160(%rbp), %rax shrq $5, %rax andq $1, %rax ## kill: def $eax killed $eax killed $rax movl %eax, -124(%rbp) movq -152(%rbp), %rax shrq $6, %rax andq $1, %rax ## kill: def $eax killed $eax killed $rax movl %eax, -56(%rbp) movq -160(%rbp), %rax shrq $6, %rax andq $1, %rax ## kill: def $eax killed $eax killed $rax movl %eax, -120(%rbp) movq -152(%rbp), %rax shrq $7, %rax andq $1, %rax ## kill: def $eax killed $eax killed $rax movl %eax, -52(%rbp) movq -160(%rbp), %rax shrq $7, %rax andq $1, %rax ## kill: def $eax killed $eax killed $rax movl %eax, -116(%rbp) movq -152(%rbp), %rax shrq $8, %rax andq $1, %rax ## kill: def $eax killed $eax killed $rax movl %eax, -48(%rbp) movq -160(%rbp), %rax shrq $8, %rax andq $1, %rax ## kill: def $eax killed $eax killed $rax movl %eax, -112(%rbp) movq -152(%rbp), %rax shrq $9, %rax andq $1, %rax ## kill: def $eax killed $eax killed $rax movl %eax, -44(%rbp) movq -160(%rbp), %rax shrq $9, %rax andq $1, %rax ## kill: def $eax killed $eax killed $rax movl %eax, -108(%rbp) movq -152(%rbp), %rax shrq $10, %rax andq $1, %rax ## kill: def $eax killed $eax killed $rax movl %eax, -40(%rbp) movq -160(%rbp), %rax shrq $10, %rax andq $1, %rax ## kill: def $eax killed $eax killed $rax movl %eax, -104(%rbp) movq -152(%rbp), %rax shrq $11, %rax andq $1, %rax ## kill: def $eax killed $eax killed $rax movl %eax, -36(%rbp) movq -160(%rbp), %rax shrq $11, %rax andq $1, %rax ## kill: def $eax killed $eax killed $rax movl %eax, -100(%rbp) movq -152(%rbp), %rax shrq $12, %rax andq $1, %rax ## kill: def $eax killed $eax killed $rax movl %eax, -32(%rbp) movq -160(%rbp), %rax shrq $12, %rax andq $1, %rax ## kill: def $eax killed $eax killed $rax movl %eax, -96(%rbp) movq -152(%rbp), %rax shrq $13, %rax andq $1, %rax ## kill: def $eax killed $eax killed $rax movl %eax, -28(%rbp) movq -160(%rbp), %rax shrq $13, %rax andq $1, %rax ## kill: def $eax killed $eax killed $rax movl %eax, -92(%rbp) movq -152(%rbp), %rax shrq $14, %rax andq $1, %rax ## kill: def $eax killed $eax killed $rax movl %eax, -24(%rbp) movq -160(%rbp), %rax shrq $14, %rax andq $1, %rax ## kill: def $eax killed $eax killed $rax movl %eax, -88(%rbp) movq -152(%rbp), %rax shrq $15, %rax andq $1, %rax ## kill: def $eax killed $eax killed $rax movl %eax, -20(%rbp) movq -160(%rbp), %rax shrq $15, %rax andq $1, %rax ## kill: def $eax killed $eax killed $rax movl %eax, -84(%rbp) movl -80(%rbp), %eax xorl -144(%rbp), %eax movl %eax, -172(%rbp) movl -80(%rbp), %eax andl -144(%rbp), %eax movl %eax, -176(%rbp) movl -76(%rbp), %eax xorl -140(%rbp), %eax movl %eax, -180(%rbp) movl -76(%rbp), %eax andl -140(%rbp), %eax movl %eax, -184(%rbp) movl -180(%rbp), %eax andl -176(%rbp), %eax movl %eax, -188(%rbp) movl -180(%rbp), %eax xorl -176(%rbp), %eax movl %eax, -192(%rbp) movl -184(%rbp), %eax orl -188(%rbp), %eax movl %eax, -196(%rbp) movl -72(%rbp), %eax xorl -136(%rbp), %eax movl %eax, -200(%rbp) movl -72(%rbp), %eax andl -136(%rbp), %eax movl %eax, -204(%rbp) movl -200(%rbp), %eax andl -196(%rbp), %eax movl %eax, -208(%rbp) movl -200(%rbp), %eax xorl -196(%rbp), %eax movl %eax, -212(%rbp) movl -204(%rbp), %eax orl -208(%rbp), %eax movl %eax, -216(%rbp) movl -68(%rbp), %eax xorl -132(%rbp), %eax movl %eax, -220(%rbp) movl -68(%rbp), %eax andl -132(%rbp), %eax movl %eax, -224(%rbp) movl -220(%rbp), %eax andl -216(%rbp), %eax movl %eax, -228(%rbp) movl -220(%rbp), %eax xorl -216(%rbp), %eax movl %eax, -232(%rbp) movl -224(%rbp), %eax orl -228(%rbp), %eax movl %eax, -236(%rbp) movl -64(%rbp), %eax xorl -128(%rbp), %eax movl %eax, -240(%rbp) movl -64(%rbp), %eax andl -128(%rbp), %eax movl %eax, -244(%rbp) movl -240(%rbp), %eax andl -236(%rbp), %eax movl %eax, -248(%rbp) movl -240(%rbp), %eax xorl -236(%rbp), %eax movl %eax, -252(%rbp) movl -244(%rbp), %eax orl -248(%rbp), %eax movl %eax, -256(%rbp) movl -60(%rbp), %eax xorl -124(%rbp), %eax movl %eax, -260(%rbp) movl -60(%rbp), %eax andl -124(%rbp), %eax movl %eax, -264(%rbp) movl -260(%rbp), %eax andl -256(%rbp), %eax movl %eax, -268(%rbp) movl -260(%rbp), %eax xorl -256(%rbp), %eax movl %eax, -272(%rbp) movl -264(%rbp), %eax orl -268(%rbp), %eax movl %eax, -276(%rbp) movl -56(%rbp), %eax xorl -120(%rbp), %eax movl %eax, -280(%rbp) movl -56(%rbp), %eax andl -120(%rbp), %eax movl %eax, -284(%rbp) movl -280(%rbp), %eax andl -276(%rbp), %eax movl %eax, -288(%rbp) movl -280(%rbp), %eax xorl -276(%rbp), %eax movl %eax, -292(%rbp) movl -284(%rbp), %eax orl -288(%rbp), %eax movl %eax, -296(%rbp) movl -52(%rbp), %eax xorl -116(%rbp), %eax movl %eax, -300(%rbp) movl -52(%rbp), %eax andl -116(%rbp), %eax movl %eax, -304(%rbp) movl -300(%rbp), %eax andl -296(%rbp), %eax movl %eax, -308(%rbp) movl -300(%rbp), %eax xorl -296(%rbp), %eax movl %eax, -312(%rbp) movl -304(%rbp), %eax orl -308(%rbp), %eax movl %eax, -316(%rbp) movl -48(%rbp), %eax xorl -112(%rbp), %eax movl %eax, -320(%rbp) movl -48(%rbp), %eax andl -112(%rbp), %eax movl %eax, -324(%rbp) movl -320(%rbp), %eax andl -316(%rbp), %eax movl %eax, -328(%rbp) movl -320(%rbp), %eax xorl -316(%rbp), %eax movl %eax, -332(%rbp) movl -324(%rbp), %eax orl -328(%rbp), %eax movl %eax, -336(%rbp) movl -44(%rbp), %eax xorl -108(%rbp), %eax movl %eax, -340(%rbp) movl -44(%rbp), %eax andl -108(%rbp), %eax movl %eax, -344(%rbp) movl -340(%rbp), %eax andl -336(%rbp), %eax movl %eax, -348(%rbp) movl -340(%rbp), %eax xorl -336(%rbp), %eax movl %eax, -352(%rbp) movl -344(%rbp), %eax orl -348(%rbp), %eax movl %eax, -356(%rbp) movl -40(%rbp), %eax xorl -104(%rbp), %eax movl %eax, -360(%rbp) movl -40(%rbp), %eax andl -104(%rbp), %eax movl %eax, -364(%rbp) movl -360(%rbp), %eax andl -356(%rbp), %eax movl %eax, -368(%rbp) movl -360(%rbp), %eax xorl -356(%rbp), %eax movl %eax, -372(%rbp) movl -364(%rbp), %eax orl -368(%rbp), %eax movl %eax, -376(%rbp) movl -36(%rbp), %eax xorl -100(%rbp), %eax movl %eax, -380(%rbp) movl -36(%rbp), %eax andl -100(%rbp), %eax movl %eax, -384(%rbp) movl -380(%rbp), %eax andl -376(%rbp), %eax movl %eax, -388(%rbp) movl -380(%rbp), %eax xorl -376(%rbp), %eax movl %eax, -392(%rbp) movl -384(%rbp), %eax orl -388(%rbp), %eax movl %eax, -396(%rbp) movl -32(%rbp), %eax xorl -96(%rbp), %eax movl %eax, -400(%rbp) movl -32(%rbp), %eax andl -96(%rbp), %eax movl %eax, -404(%rbp) movl -400(%rbp), %eax andl -396(%rbp), %eax movl %eax, -408(%rbp) movl -400(%rbp), %eax xorl -396(%rbp), %eax movl %eax, -412(%rbp) movl -404(%rbp), %eax orl -408(%rbp), %eax movl %eax, -416(%rbp) movl -28(%rbp), %eax xorl -92(%rbp), %eax movl %eax, -420(%rbp) movl -28(%rbp), %eax andl -92(%rbp), %eax movl %eax, -424(%rbp) movl -420(%rbp), %eax andl -416(%rbp), %eax movl %eax, -428(%rbp) movl -420(%rbp), %eax xorl -416(%rbp), %eax movl %eax, -432(%rbp) movl -424(%rbp), %eax orl -428(%rbp), %eax movl %eax, -436(%rbp) movl -24(%rbp), %eax xorl -88(%rbp), %eax movl %eax, -440(%rbp) movl -24(%rbp), %eax andl -88(%rbp), %eax movl %eax, -444(%rbp) movl -440(%rbp), %eax andl -436(%rbp), %eax movl %eax, -448(%rbp) movl -440(%rbp), %eax xorl -436(%rbp), %eax movl %eax, -452(%rbp) movl -444(%rbp), %eax orl -448(%rbp), %eax movl %eax, -456(%rbp) movl -20(%rbp), %eax xorl -84(%rbp), %eax movl %eax, -460(%rbp) movl -20(%rbp), %eax andl -84(%rbp), %eax movl %eax, -464(%rbp) movl -460(%rbp), %eax andl -456(%rbp), %eax movl %eax, -468(%rbp) movl -460(%rbp), %eax xorl -456(%rbp), %eax movl %eax, -472(%rbp) movl -464(%rbp), %eax orl -468(%rbp), %eax movl %eax, -476(%rbp) movl -172(%rbp), %eax andl $1, %eax shll $0, %eax cltq orq -168(%rbp), %rax movq %rax, -168(%rbp) movl -192(%rbp), %eax andl $1, %eax shll $1, %eax cltq orq -168(%rbp), %rax movq %rax, -168(%rbp) movl -212(%rbp), %eax andl $1, %eax shll $2, %eax cltq orq -168(%rbp), %rax movq %rax, -168(%rbp) movl -232(%rbp), %eax andl $1, %eax shll $3, %eax cltq orq -168(%rbp), %rax movq %rax, -168(%rbp) movl -252(%rbp), %eax andl $1, %eax shll $4, %eax cltq orq -168(%rbp), %rax movq %rax, -168(%rbp) movl -272(%rbp), %eax andl $1, %eax shll $5, %eax cltq orq -168(%rbp), %rax movq %rax, -168(%rbp) movl -292(%rbp), %eax andl $1, %eax shll $6, %eax cltq orq -168(%rbp), %rax movq %rax, -168(%rbp) movl -312(%rbp), %eax andl $1, %eax shll $7, %eax cltq orq -168(%rbp), %rax movq %rax, -168(%rbp) movl -332(%rbp), %eax andl $1, %eax shll $8, %eax cltq orq -168(%rbp), %rax movq %rax, -168(%rbp) movl -352(%rbp), %eax andl $1, %eax shll $9, %eax cltq orq -168(%rbp), %rax movq %rax, -168(%rbp) movl -372(%rbp), %eax andl $1, %eax shll $10, %eax cltq orq -168(%rbp), %rax movq %rax, -168(%rbp) movl -392(%rbp), %eax andl $1, %eax shll $11, %eax cltq orq -168(%rbp), %rax movq %rax, -168(%rbp) movl -412(%rbp), %eax andl $1, %eax shll $12, %eax cltq orq -168(%rbp), %rax movq %rax, -168(%rbp) movl -432(%rbp), %eax andl $1, %eax shll $13, %eax cltq orq -168(%rbp), %rax movq %rax, -168(%rbp) movl -452(%rbp), %eax andl $1, %eax shll $14, %eax cltq orq -168(%rbp), %rax movq %rax, -168(%rbp) movl -472(%rbp), %eax andl $1, %eax shll $15, %eax cltq orq -168(%rbp), %rax movq %rax, -168(%rbp) movl -476(%rbp), %eax andl $1, %eax shll $16, %eax cltq orq -168(%rbp), %rax movq %rax, -168(%rbp) movq -168(%rbp), %rax movq %rax, -488(%rbp) ## 8-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_2 ## %bb.1: movq -488(%rbp), %rax ## 8-byte Reload addq $496, %rsp ## imm = 0x1F0 popq %rbp retq LBB0_2: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/1010189.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] ldur w8, [x29, #-8] subs w8, w8, #2 cset w8, eq tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov w8, #-1 stur w8, [x29, #-4] b LBB0_3 LBB0_2: ldur x8, [x29, #-16] ldr x8, [x8, #8] str x8, [sp, #16] ; 8-byte Folded Spill ldur x8, [x29, #-16] ldr x0, [x8, #8] bl _strlen mov x8, x0 ldr x0, [sp, #16] ; 8-byte Folded Reload mov x1, x8 bl _crc32 stur w0, [x29, #-20] ldur w9, [x29, #-20] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf stur wzr, [x29, #-4] b LBB0_3 LBB0_3: ldur w0, [x29, #-4] ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function crc32 _crc32: ; @crc32 .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, #24] str w1, [sp, #20] str wzr, [sp, #12] b LBB1_1 LBB1_1: ; =>This Loop Header: Depth=1 ; Child Loop BB1_3 Depth 2 ldr w8, [sp, #20] subs w9, w8, #1 str w9, [sp, #20] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB1_7 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 ldr x8, [sp, #24] add x9, x8, #1 str x9, [sp, #24] ldrb w9, [x8] ldr w8, [sp, #12] eor w8, w8, w9 str w8, [sp, #12] str wzr, [sp, #16] b LBB1_3 LBB1_3: ; Parent Loop BB1_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #16] subs w8, w8, #8 cset w8, ge tbnz w8, #0, LBB1_6 b LBB1_4 LBB1_4: ; in Loop: Header=BB1_3 Depth=2 ldr w9, [sp, #12] ldr w8, [sp, #12] mov w10, #0 ands w8, w8, #0x1 cset w8, ne and w11, w8, #0x1 mov w8, #33568 movk w8, #60856, lsl #16 ands w11, w11, #0x1 csel w8, w8, w10, ne eor w8, w8, w9, lsr #1 str w8, [sp, #12] b LBB1_5 LBB1_5: ; in Loop: Header=BB1_3 Depth=2 ldr w8, [sp, #16] add w8, w8, #1 str w8, [sp, #16] b LBB1_3 LBB1_6: ; in Loop: Header=BB1_1 Depth=1 b LBB1_1 LBB1_7: ldr w0, [sp, #12] add sp, sp, #32 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "no string passed as argument\n" l_.str.1: ; @.str.1 .asciz "0x%x\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl $0, -4(%rbp) movl %edi, -8(%rbp) movq %rsi, -16(%rbp) cmpl $2, -8(%rbp) je LBB0_2 ## %bb.1: leaq L_.str(%rip), %rdi movb $0, %al callq _printf movl $-1, -4(%rbp) jmp LBB0_3 LBB0_2: movq -16(%rbp), %rax movq 8(%rax), %rax movq %rax, -32(%rbp) ## 8-byte Spill movq -16(%rbp), %rax movq 8(%rax), %rdi callq _strlen movq -32(%rbp), %rdi ## 8-byte Reload movl %eax, %esi callq _crc32 movl %eax, -20(%rbp) movl -20(%rbp), %esi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf movl $0, -4(%rbp) LBB0_3: movl -4(%rbp), %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function crc32 _crc32: ## @crc32 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) movl $0, -20(%rbp) LBB1_1: ## =>This Loop Header: Depth=1 ## Child Loop BB1_3 Depth 2 movl -12(%rbp), %eax movl %eax, %ecx addl $-1, %ecx movl %ecx, -12(%rbp) cmpl $0, %eax je LBB1_7 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 movq -8(%rbp), %rax movq %rax, %rcx addq $1, %rcx movq %rcx, -8(%rbp) movzbl (%rax), %eax xorl -20(%rbp), %eax movl %eax, -20(%rbp) movl $0, -16(%rbp) LBB1_3: ## Parent Loop BB1_1 Depth=1 ## => This Inner Loop Header: Depth=2 cmpl $8, -16(%rbp) jge LBB1_6 ## %bb.4: ## in Loop: Header=BB1_3 Depth=2 movl -20(%rbp), %eax shrl $1, %eax movl -20(%rbp), %esi andl $1, %esi xorl %ecx, %ecx movl $3988292384, %edx ## imm = 0xEDB88320 cmpl $0, %esi cmovnel %edx, %ecx xorl %ecx, %eax movl %eax, -20(%rbp) ## %bb.5: ## in Loop: Header=BB1_3 Depth=2 movl -16(%rbp), %eax addl $1, %eax movl %eax, -16(%rbp) jmp LBB1_3 LBB1_6: ## in Loop: Header=BB1_1 Depth=1 jmp LBB1_1 LBB1_7: movl -20(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "no string passed as argument\n" L_.str.1: ## @.str.1 .asciz "0x%x\n" .subsections_via_symbols
the_stack_data/18886771.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 w8, #1 stur w8, [x29, #-16] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 mov x9, sp sub x8, x29, #8 str x8, [x9] sub x8, x29, #12 str x8, [x9, #8] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _scanf adds w8, w0, #1 cset w8, eq tbnz w8, #0, LBB0_14 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-8] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: b LBB0_14 LBB0_4: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-12] ldur w9, [x29, #-8] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_1 Depth=1 ldur w9, [x29, #-16] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf ldur w8, [x29, #-16] add w8, w8, #1 stur w8, [x29, #-16] b LBB0_13 LBB0_6: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-8] ldur w9, [x29, #-12] subs w8, w8, w9 str w8, [sp, #28] ldr w8, [sp, #28] ldur w9, [x29, #-12] sdiv w8, w8, w9 stur w8, [x29, #-20] ldr w8, [sp, #28] ldur w10, [x29, #-12] sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 stur w8, [x29, #-28] ldur w8, [x29, #-12] mov w9, #26 mul w8, w8, w9 str w8, [sp, #32] ldur w8, [x29, #-20] add w8, w8, #1 stur w8, [x29, #-24] ldr w8, [sp, #28] ldr w9, [sp, #32] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB0_8 b LBB0_7 LBB0_7: ; in Loop: Header=BB0_1 Depth=1 ldur w9, [x29, #-16] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf ldur w8, [x29, #-16] add w8, w8, #1 stur w8, [x29, #-16] b LBB0_12 LBB0_8: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-28] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_10 b LBB0_9 LBB0_9: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-16] ; implicit-def: $x10 mov x10, x8 ldur w9, [x29, #-20] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf ldur w8, [x29, #-16] add w8, w8, #1 stur w8, [x29, #-16] b LBB0_11 LBB0_10: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-16] ; implicit-def: $x10 mov x10, x8 ldur w9, [x29, #-24] ; 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 ldur w8, [x29, #-16] add w8, w8, #1 stur w8, [x29, #-16] b LBB0_11 LBB0_11: ; in Loop: Header=BB0_1 Depth=1 b LBB0_12 LBB0_12: ; in Loop: Header=BB0_1 Depth=1 b LBB0_13 LBB0_13: ; in Loop: Header=BB0_1 Depth=1 b LBB0_1 LBB0_14: 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 %d" l_.str.1: ; @.str.1 .asciz "Case %d: 0\n" l_.str.2: ; @.str.2 .asciz "Case %d: impossible\n" l_.str.3: ; @.str.3 .asciz "Case %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 movl $0, -4(%rbp) movl $1, -16(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 leaq L_.str(%rip), %rdi leaq -8(%rbp), %rsi leaq -12(%rbp), %rdx movb $0, %al callq _scanf cmpl $-1, %eax je LBB0_14 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 cmpl $0, -8(%rbp) jne LBB0_4 ## %bb.3: jmp LBB0_14 LBB0_4: ## in Loop: Header=BB0_1 Depth=1 movl -12(%rbp), %eax cmpl -8(%rbp), %eax jle LBB0_6 ## %bb.5: ## in Loop: Header=BB0_1 Depth=1 movl -16(%rbp), %esi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf movl -16(%rbp), %eax addl $1, %eax movl %eax, -16(%rbp) jmp LBB0_13 LBB0_6: ## in Loop: Header=BB0_1 Depth=1 movl -8(%rbp), %eax subl -12(%rbp), %eax movl %eax, -36(%rbp) movl -36(%rbp), %eax cltd idivl -12(%rbp) movl %eax, -20(%rbp) movl -36(%rbp), %eax cltd idivl -12(%rbp) movl %edx, -28(%rbp) imull $26, -12(%rbp), %eax movl %eax, -32(%rbp) movl -20(%rbp), %eax addl $1, %eax movl %eax, -24(%rbp) movl -36(%rbp), %eax cmpl -32(%rbp), %eax jle LBB0_8 ## %bb.7: ## in Loop: Header=BB0_1 Depth=1 movl -16(%rbp), %esi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf movl -16(%rbp), %eax addl $1, %eax movl %eax, -16(%rbp) jmp LBB0_12 LBB0_8: ## in Loop: Header=BB0_1 Depth=1 cmpl $0, -28(%rbp) jne LBB0_10 ## %bb.9: ## in Loop: Header=BB0_1 Depth=1 movl -16(%rbp), %esi movl -20(%rbp), %edx leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf movl -16(%rbp), %eax addl $1, %eax movl %eax, -16(%rbp) jmp LBB0_11 LBB0_10: ## in Loop: Header=BB0_1 Depth=1 movl -16(%rbp), %esi movl -24(%rbp), %edx leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf movl -16(%rbp), %eax addl $1, %eax movl %eax, -16(%rbp) LBB0_11: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_12 LBB0_12: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_13 LBB0_13: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_1 LBB0_14: xorl %eax, %eax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d %d" L_.str.1: ## @.str.1 .asciz "Case %d: 0\n" L_.str.2: ## @.str.2 .asciz "Case %d: impossible\n" L_.str.3: ## @.str.3 .asciz "Case %d: %d\n" .subsections_via_symbols
the_stack_data/93887239.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _foo ; -- Begin function foo .p2align 2 _foo: ; @foo .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] stur w1, [x29, #-12] ldur w8, [x29, #-12] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: ldur x8, [x29, #-8] ldr x8, [x8] ldr w8, [x8] str w8, [sp, #12] b LBB0_3 LBB0_2: bl _spoil b LBB0_3 LBB0_3: ldur x8, [x29, #-8] ldr x8, [x8] ldr w8, [x8] str w8, [sp, #8] ldr w8, [sp, #12] ldr w9, [sp, #8] add w0, w8, w9 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 _foo ## -- Begin function foo .p2align 4, 0x90 _foo: ## @foo .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) cmpl $0, -12(%rbp) je LBB0_2 ## %bb.1: movq -8(%rbp), %rax movq (%rax), %rax movl (%rax), %eax movl %eax, -20(%rbp) jmp LBB0_3 LBB0_2: callq _spoil LBB0_3: movq -8(%rbp), %rax movq (%rax), %rax movl (%rax), %eax movl %eax, -24(%rbp) movl -20(%rbp), %eax addl -24(%rbp), %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/617884.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _calculo ; -- Begin function calculo .p2align 2 _calculo: ; @calculo .cfi_startproc ; %bb.0: sub sp, sp, #80 .cfi_def_cfa_offset 80 stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp, #64 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-16] adrp x0, _mutex@GOTPAGE ldr x0, [x0, _mutex@GOTPAGEOFF] bl _pthread_mutex_lock ldur x8, [x29, #-16] stur x8, [x29, #-24] adrp x8, _indiceInicio@PAGE ldr w8, [x8, _indiceInicio@PAGEOFF] adrp x9, _separacao@PAGE ldr w9, [x9, _separacao@PAGEOFF] add w8, w8, w9 stur w8, [x29, #-28] ldur w8, [x29, #-28] subs w8, w8, #16 cset w8, gt tbnz w8, #0, LBB0_6 b LBB0_1 LBB0_1: str wzr, [sp, #32] b LBB0_2 LBB0_2: ; =>This Inner Loop Header: Depth=1 adrp x8, _indiceInicio@PAGE ldr w8, [x8, _indiceInicio@PAGEOFF] ldur w9, [x29, #-28] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_5 b LBB0_3 LBB0_3: ; in Loop: Header=BB0_2 Depth=1 adrp x9, _indiceInicio@PAGE ldrsw x10, [x9, _indiceInicio@PAGEOFF] adrp x8, _valoresA@GOTPAGE ldr x8, [x8, _valoresA@GOTPAGEOFF] ldr w8, [x8, x10, lsl #2] ldrsw x10, [x9, _indiceInicio@PAGEOFF] adrp x9, _valoresB@GOTPAGE ldr x9, [x9, _valoresB@GOTPAGEOFF] ldr w9, [x9, x10, lsl #2] mul w9, w8, w9 ldr w8, [sp, #32] add w8, w8, w9 str w8, [sp, #32] b LBB0_4 LBB0_4: ; in Loop: Header=BB0_2 Depth=1 adrp x9, _indiceInicio@PAGE ldr w8, [x9, _indiceInicio@PAGEOFF] add w8, w8, #1 str w8, [x9, _indiceInicio@PAGEOFF] b LBB0_2 LBB0_5: ldur w8, [x29, #-28] adrp x9, _indiceInicio@PAGE str w8, [x9, _indiceInicio@PAGEOFF] ldur x10, [x29, #-24] ldur w8, [x29, #-28] adrp x9, _separacao@PAGE ldr w9, [x9, _separacao@PAGEOFF] subs w12, w8, w9 ldur w8, [x29, #-28] subs w11, w8, #1 ldr w9, [sp, #32] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x10, [x9] ; implicit-def: $x10 mov x10, x12 str x10, [x9, #8] ; implicit-def: $x10 mov x10, x11 str x10, [x9, #16] str x8, [x9, #24] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldr w10, [sp, #32] adrp x9, _sum@PAGE ldr w8, [x9, _sum@PAGEOFF] add w8, w8, w10 str w8, [x9, _sum@PAGEOFF] b LBB0_6 LBB0_6: adrp x0, _mutex@GOTPAGE ldr x0, [x0, _mutex@GOTPAGEOFF] bl _pthread_mutex_unlock ldur x0, [x29, #-8] ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .globl _criarEPopularVetores ; -- Begin function criarEPopularVetores .p2align 2 _criarEPopularVetores: ; @criarEPopularVetores .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, _i@PAGE str wzr, [x8, _i@PAGEOFF] b LBB1_1 LBB1_1: ; =>This Inner Loop Header: Depth=1 adrp x8, _i@PAGE ldr w8, [x8, _i@PAGEOFF] subs w8, w8, #16 cset w8, ge tbnz w8, #0, LBB1_4 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 bl _rand mov w9, #10 str w9, [sp, #4] ; 4-byte Folded Spill sdiv w8, w0, w9 mul w8, w8, w9 subs w8, w0, w8 adrp x9, _i@PAGE str x9, [sp, #8] ; 8-byte Folded Spill ldrsw x10, [x9, _i@PAGEOFF] adrp x9, _valoresA@GOTPAGE ldr x9, [x9, _valoresA@GOTPAGEOFF] str w8, [x9, x10, lsl #2] bl _rand ldr w10, [sp, #4] ; 4-byte Folded Reload ldr x9, [sp, #8] ; 8-byte Folded Reload sdiv w8, w0, w10 mul w8, w8, w10 subs w8, w0, w8 ldrsw x10, [x9, _i@PAGEOFF] adrp x9, _valoresB@GOTPAGE ldr x9, [x9, _valoresB@GOTPAGEOFF] str w8, [x9, x10, lsl #2] b LBB1_3 LBB1_3: ; in Loop: Header=BB1_1 Depth=1 adrp x9, _i@PAGE ldr w8, [x9, _i@PAGEOFF] add w8, w8, #1 str w8, [x9, _i@PAGEOFF] b LBB1_1 LBB1_4: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _aguardarTerminoDeThreads ; -- Begin function aguardarTerminoDeThreads .p2align 2 _aguardarTerminoDeThreads: ; @aguardarTerminoDeThreads .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, _i@PAGE str wzr, [x8, _i@PAGEOFF] b LBB2_1 LBB2_1: ; =>This Inner Loop Header: Depth=1 adrp x8, _i@PAGE ldr w8, [x8, _i@PAGEOFF] subs w8, w8, #4 cset w8, ge tbnz w8, #0, LBB2_4 b LBB2_2 LBB2_2: ; in Loop: Header=BB2_1 Depth=1 ldr x8, [sp, #8] adrp x9, _i@PAGE ldrsw x9, [x9, _i@PAGEOFF] ldr x0, [x8, x9, lsl #3] mov x1, #0 bl _pthread_join b LBB2_3 LBB2_3: ; in Loop: Header=BB2_1 Depth=1 adrp x9, _i@PAGE ldr w8, [x9, _i@PAGEOFF] add w8, w8, #1 str w8, [x9, _i@PAGEOFF] b LBB2_1 LBB2_4: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _imprimirVetores ; -- Begin function imprimirVetores .p2align 2 _imprimirVetores: ; @imprimirVetores .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.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf adrp x8, _i@PAGE str wzr, [x8, _i@PAGEOFF] b LBB3_1 LBB3_1: ; =>This Inner Loop Header: Depth=1 adrp x8, _i@PAGE ldr w8, [x8, _i@PAGEOFF] subs w8, w8, #16 cset w8, ge tbnz w8, #0, LBB3_4 b LBB3_2 LBB3_2: ; in Loop: Header=BB3_1 Depth=1 adrp x8, _i@PAGE ldrsw x9, [x8, _i@PAGEOFF] adrp x8, _valoresA@GOTPAGE ldr x8, [x8, _valoresA@GOTPAGEOFF] 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 LBB3_3 LBB3_3: ; in Loop: Header=BB3_1 Depth=1 adrp x9, _i@PAGE ldr w8, [x9, _i@PAGEOFF] add w8, w8, #1 str w8, [x9, _i@PAGEOFF] b LBB3_1 LBB3_4: adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf adrp x8, _i@PAGE str wzr, [x8, _i@PAGEOFF] b LBB3_5 LBB3_5: ; =>This Inner Loop Header: Depth=1 adrp x8, _i@PAGE ldr w8, [x8, _i@PAGEOFF] subs w8, w8, #16 cset w8, ge tbnz w8, #0, LBB3_8 b LBB3_6 LBB3_6: ; in Loop: Header=BB3_5 Depth=1 adrp x8, _i@PAGE ldrsw x9, [x8, _i@PAGEOFF] adrp x8, _valoresB@GOTPAGE ldr x8, [x8, _valoresB@GOTPAGEOFF] 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 LBB3_7 LBB3_7: ; in Loop: Header=BB3_5 Depth=1 adrp x9, _i@PAGE ldr w8, [x9, _i@PAGEOFF] add w8, w8, #1 str w8, [x9, _i@PAGEOFF] b LBB3_5 LBB3_8: adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .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 x0, #0 str x0, [sp, #8] ; 8-byte Folded Spill bl _time ; kill: def $w0 killed $w0 killed $x0 bl _srand ldr x1, [sp, #8] ; 8-byte Folded Reload adrp x0, _mutex@GOTPAGE ldr x0, [x0, _mutex@GOTPAGEOFF] bl _pthread_mutex_init bl _criarEPopularVetores bl _imprimirVetores adrp x8, _i@PAGE str wzr, [x8, _i@PAGEOFF] b LBB4_1 LBB4_1: ; =>This Inner Loop Header: Depth=1 adrp x8, _i@PAGE ldr w8, [x8, _i@PAGEOFF] subs w8, w8, #4 cset w8, ge tbnz w8, #0, LBB4_4 b LBB4_2 LBB4_2: ; in Loop: Header=BB4_1 Depth=1 adrp x8, _i@PAGE ldrsw x9, [x8, _i@PAGEOFF] str x9, [sp, #16] ldrsw x9, [x8, _i@PAGEOFF] add x8, sp, #24 add x0, x8, x9, lsl #3 ldr x3, [sp, #16] mov x1, #0 adrp x2, _calculo@PAGE add x2, x2, _calculo@PAGEOFF bl _pthread_create b LBB4_3 LBB4_3: ; in Loop: Header=BB4_1 Depth=1 adrp x9, _i@PAGE ldr w8, [x9, _i@PAGEOFF] add w8, w8, #1 str w8, [x9, _i@PAGEOFF] b LBB4_1 LBB4_4: adrp x0, _mutex@GOTPAGE ldr x0, [x0, _mutex@GOTPAGEOFF] bl _pthread_mutex_destroy mov x0, #0 bl _pthread_exit .cfi_endproc ; -- End function .section __DATA,__data .globl _separacao ; @separacao .p2align 2 _separacao: .long 4 ; 0x4 .globl _indiceInicio ; @indiceInicio .zerofill __DATA,__common,_indiceInicio,4,2 .globl _sum ; @sum .zerofill __DATA,__common,_sum,4,2 .globl _i ; @i .zerofill __DATA,__common,_i,4,2 .comm _mutex,64,3 ; @mutex .comm _valoresA,64,2 ; @valoresA .comm _valoresB,64,2 ; @valoresB .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Thread %ld calculou de %d a %d: produto escalar parcial = %d\n" l_.str.1: ; @.str.1 .asciz "\t\tA = " l_.str.2: ; @.str.2 .asciz "%d," l_.str.3: ; @.str.3 .asciz "\n" l_.str.4: ; @.str.4 .asciz "\t\tB = " .comm _indiceFim,4,2 ; @indiceFim .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _calculo ## -- Begin function calculo .p2align 4, 0x90 _calculo: ## @calculo .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 _mutex@GOTPCREL(%rip), %rdi callq _pthread_mutex_lock movq -16(%rbp), %rax movq %rax, -24(%rbp) movl _indiceInicio(%rip), %eax addl _separacao(%rip), %eax movl %eax, -28(%rbp) cmpl $16, -28(%rbp) jg LBB0_6 ## %bb.1: movl $0, -32(%rbp) LBB0_2: ## =>This Inner Loop Header: Depth=1 movl _indiceInicio(%rip), %eax cmpl -28(%rbp), %eax jge LBB0_5 ## %bb.3: ## in Loop: Header=BB0_2 Depth=1 movslq _indiceInicio(%rip), %rcx movq _valoresA@GOTPCREL(%rip), %rax movl (%rax,%rcx,4), %eax movslq _indiceInicio(%rip), %rdx movq _valoresB@GOTPCREL(%rip), %rcx imull (%rcx,%rdx,4), %eax addl -32(%rbp), %eax movl %eax, -32(%rbp) ## %bb.4: ## in Loop: Header=BB0_2 Depth=1 movl _indiceInicio(%rip), %eax addl $1, %eax movl %eax, _indiceInicio(%rip) jmp LBB0_2 LBB0_5: movl -28(%rbp), %eax movl %eax, _indiceInicio(%rip) movq -24(%rbp), %rsi movl -28(%rbp), %edx subl _separacao(%rip), %edx movl -28(%rbp), %ecx subl $1, %ecx movl -32(%rbp), %r8d leaq L_.str(%rip), %rdi movb $0, %al callq _printf movl -32(%rbp), %eax addl _sum(%rip), %eax movl %eax, _sum(%rip) LBB0_6: movq _mutex@GOTPCREL(%rip), %rdi callq _pthread_mutex_unlock movq -8(%rbp), %rax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _criarEPopularVetores ## -- Begin function criarEPopularVetores .p2align 4, 0x90 _criarEPopularVetores: ## @criarEPopularVetores .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, _i(%rip) LBB1_1: ## =>This Inner Loop Header: Depth=1 cmpl $16, _i(%rip) jge LBB1_4 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 callq _rand movl $10, %ecx cltd idivl %ecx movslq _i(%rip), %rcx movq _valoresA@GOTPCREL(%rip), %rax movl %edx, (%rax,%rcx,4) callq _rand movl $10, %ecx cltd idivl %ecx movslq _i(%rip), %rcx movq _valoresB@GOTPCREL(%rip), %rax movl %edx, (%rax,%rcx,4) ## %bb.3: ## in Loop: Header=BB1_1 Depth=1 movl _i(%rip), %eax addl $1, %eax movl %eax, _i(%rip) jmp LBB1_1 LBB1_4: popq %rbp retq .cfi_endproc ## -- End function .globl _aguardarTerminoDeThreads ## -- Begin function aguardarTerminoDeThreads .p2align 4, 0x90 _aguardarTerminoDeThreads: ## @aguardarTerminoDeThreads .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, _i(%rip) LBB2_1: ## =>This Inner Loop Header: Depth=1 cmpl $4, _i(%rip) jge LBB2_4 ## %bb.2: ## in Loop: Header=BB2_1 Depth=1 movq -8(%rbp), %rax movslq _i(%rip), %rcx movq (%rax,%rcx,8), %rdi xorl %eax, %eax movl %eax, %esi callq _pthread_join ## %bb.3: ## in Loop: Header=BB2_1 Depth=1 movl _i(%rip), %eax addl $1, %eax movl %eax, _i(%rip) jmp LBB2_1 LBB2_4: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _imprimirVetores ## -- Begin function imprimirVetores .p2align 4, 0x90 _imprimirVetores: ## @imprimirVetores .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 movl $0, _i(%rip) LBB3_1: ## =>This Inner Loop Header: Depth=1 cmpl $16, _i(%rip) jge LBB3_4 ## %bb.2: ## in Loop: Header=BB3_1 Depth=1 movslq _i(%rip), %rcx movq _valoresA@GOTPCREL(%rip), %rax movl (%rax,%rcx,4), %esi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf ## %bb.3: ## in Loop: Header=BB3_1 Depth=1 movl _i(%rip), %eax addl $1, %eax movl %eax, _i(%rip) jmp LBB3_1 LBB3_4: leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf movl $0, _i(%rip) LBB3_5: ## =>This Inner Loop Header: Depth=1 cmpl $16, _i(%rip) jge LBB3_8 ## %bb.6: ## in Loop: Header=BB3_5 Depth=1 movslq _i(%rip), %rcx movq _valoresB@GOTPCREL(%rip), %rax movl (%rax,%rcx,4), %esi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf ## %bb.7: ## in Loop: Header=BB3_5 Depth=1 movl _i(%rip), %eax addl $1, %eax movl %eax, _i(%rip) jmp LBB3_5 LBB3_8: 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 movl $0, -4(%rbp) xorl %eax, %eax movl %eax, %edi callq _time movl %eax, %edi callq _srand movq _mutex@GOTPCREL(%rip), %rdi xorl %eax, %eax movl %eax, %esi callq _pthread_mutex_init callq _criarEPopularVetores callq _imprimirVetores movl $0, _i(%rip) LBB4_1: ## =>This Inner Loop Header: Depth=1 cmpl $4, _i(%rip) jge LBB4_4 ## %bb.2: ## in Loop: Header=BB4_1 Depth=1 movslq _i(%rip), %rax movq %rax, -56(%rbp) movslq _i(%rip), %rax leaq -48(%rbp), %rdi shlq $3, %rax addq %rax, %rdi movq -56(%rbp), %rcx xorl %eax, %eax movl %eax, %esi leaq _calculo(%rip), %rdx callq _pthread_create ## %bb.3: ## in Loop: Header=BB4_1 Depth=1 movl _i(%rip), %eax addl $1, %eax movl %eax, _i(%rip) jmp LBB4_1 LBB4_4: movq _mutex@GOTPCREL(%rip), %rdi callq _pthread_mutex_destroy xorl %eax, %eax movl %eax, %edi callq _pthread_exit .cfi_endproc ## -- End function .section __DATA,__data .globl _separacao ## @separacao .p2align 2 _separacao: .long 4 ## 0x4 .globl _indiceInicio ## @indiceInicio .zerofill __DATA,__common,_indiceInicio,4,2 .globl _sum ## @sum .zerofill __DATA,__common,_sum,4,2 .globl _i ## @i .zerofill __DATA,__common,_i,4,2 .comm _mutex,64,3 ## @mutex .comm _valoresA,64,4 ## @valoresA .comm _valoresB,64,4 ## @valoresB .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Thread %ld calculou de %d a %d: produto escalar parcial = %d\n" L_.str.1: ## @.str.1 .asciz "\t\tA = " L_.str.2: ## @.str.2 .asciz "%d," L_.str.3: ## @.str.3 .asciz "\n" L_.str.4: ## @.str.4 .asciz "\t\tB = " .comm _indiceFim,4,2 ## @indiceFim .subsections_via_symbols
the_stack_data/1106539.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, #4816 movk w9, #122, lsl #16 adrp x16, ___chkstk_darwin@GOTPAGE ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF] blr x16 sub sp, sp, #1953, lsl #12 ; =7999488 sub sp, sp, #720 mov x8, #2304 movk x8, #61, lsl #16 str x8, [sp, #24] ; 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] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF bl _fopen str x0, [sp, #184] str xzr, [sp, #176] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr x9, [sp, #24] ; 8-byte Folded Reload ldr x8, [sp, #176] 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 x9, [sp, #176] add x8, sp, #976, lsl #12 ; =3997696 add x8, x8, #2504 add x8, x8, x9 strb wzr, [x8] b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #176] add x8, x8, #1 str x8, [sp, #176] b LBB0_1 LBB0_4: mov x8, #2000 str x8, [sp, #168] str x8, [sp, #160] b LBB0_5 LBB0_5: ; =>This Inner Loop Header: Depth=1 ldr x0, [sp, #184] mov x9, sp add x8, sp, #152 str x8, [x9] add x8, sp, #144 str x8, [x9, #8] adrp x1, l_.str.2@PAGE add x1, x1, l_.str.2@PAGEOFF bl _fscanf subs w8, w0, #2 cset w8, ne tbnz w8, #0, LBB0_7 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_5 Depth=1 ldr x8, [sp, #144] mov x9, #2000 mul x8, x8, x9 ldr x9, [sp, #152] add x9, x8, x9 add x8, sp, #976, lsl #12 ; =3997696 add x8, x8, #2504 add x9, x8, x9 mov w8, #1 strb w8, [x9] b LBB0_8 LBB0_7: b LBB0_9 LBB0_8: ; in Loop: Header=BB0_5 Depth=1 b LBB0_5 LBB0_9: str wzr, [sp, #140] b LBB0_10 LBB0_10: ; =>This Loop Header: Depth=1 ; Child Loop BB0_11 Depth 2 ; Child Loop BB0_17 Depth 2 ; Child Loop BB0_34 Depth 2 ; Child Loop BB0_36 Depth 3 ; Child Loop BB0_22 Depth 2 ; Child Loop BB0_24 Depth 3 ; Child Loop BB0_46 Depth 2 ; Child Loop BB0_51 Depth 2 ; Child Loop BB0_53 Depth 3 str xzr, [sp, #128] b LBB0_11 LBB0_11: ; Parent Loop BB0_10 Depth=1 ; => This Inner Loop Header: Depth=2 ldr x8, [sp, #128] subs x8, x8, #11 cset w8, hs tbnz w8, #0, LBB0_16 b LBB0_12 LBB0_12: ; in Loop: Header=BB0_11 Depth=2 ldr x0, [sp, #184] bl _fgetc adds w8, w0, #1 cset w8, ne tbnz w8, #0, LBB0_14 b LBB0_13 LBB0_13: b LBB0_62 LBB0_14: ; in Loop: Header=BB0_11 Depth=2 b LBB0_15 LBB0_15: ; in Loop: Header=BB0_11 Depth=2 ldr x8, [sp, #128] add x8, x8, #1 str x8, [sp, #128] b LBB0_11 LBB0_16: ; in Loop: Header=BB0_10 Depth=1 ldr x0, [sp, #184] bl _fgetc strb w0, [sp, #127] ldr x0, [sp, #184] bl _fgetc ldr x0, [sp, #184] mov x9, sp add x8, sp, #112 str x8, [x9] adrp x1, l_.str.3@PAGE add x1, x1, l_.str.3@PAGEOFF bl _fscanf ldr x0, [sp, #184] bl _fgetc str xzr, [sp, #104] b LBB0_17 LBB0_17: ; Parent Loop BB0_10 Depth=1 ; => This Inner Loop Header: Depth=2 ldr x9, [sp, #24] ; 8-byte Folded Reload ldr x8, [sp, #104] subs x8, x8, x9 cset w8, hs tbnz w8, #0, LBB0_20 b LBB0_18 LBB0_18: ; in Loop: Header=BB0_17 Depth=2 ldr x9, [sp, #104] add x8, sp, #200 add x8, x8, x9 strb wzr, [x8] b LBB0_19 LBB0_19: ; in Loop: Header=BB0_17 Depth=2 ldr x8, [sp, #104] add x8, x8, #1 str x8, [sp, #104] b LBB0_17 LBB0_20: ; in Loop: Header=BB0_10 Depth=1 ldrsb w8, [sp, #127] subs w8, w8, #120 cset w8, ne tbnz w8, #0, LBB0_32 b LBB0_21 LBB0_21: ; in Loop: Header=BB0_10 Depth=1 str xzr, [sp, #96] b LBB0_22 LBB0_22: ; Parent Loop BB0_10 Depth=1 ; => This Loop Header: Depth=2 ; Child Loop BB0_24 Depth 3 ldr x8, [sp, #96] subs x8, x8, #2000 cset w8, hs tbnz w8, #0, LBB0_31 b LBB0_23 LBB0_23: ; in Loop: Header=BB0_22 Depth=2 str xzr, [sp, #88] b LBB0_24 LBB0_24: ; Parent Loop BB0_10 Depth=1 ; Parent Loop BB0_22 Depth=2 ; => This Inner Loop Header: Depth=3 ldr x8, [sp, #88] ldr x9, [sp, #112] subs x8, x8, x9 cset w8, hs tbnz w8, #0, LBB0_29 b LBB0_25 LBB0_25: ; in Loop: Header=BB0_24 Depth=3 ldr x8, [sp, #96] mov x10, #2000 mul x8, x8, x10 ldr x9, [sp, #88] add x9, x8, x9 add x8, sp, #976, lsl #12 ; =3997696 add x8, x8, #2504 add x8, x8, x9 ldrb w8, [x8] ldr x9, [sp, #96] mul x9, x9, x10 ldr x10, [sp, #88] add x10, x9, x10 add x9, sp, #200 mov w11, #1 and w8, w8, w11 strb w8, [x9, x10] ldr x9, [sp, #112] mov x8, #2 mul x8, x8, x9 ldr x9, [sp, #88] subs x8, x8, x9 subs x8, x8, #2000 cset w8, hs tbnz w8, #0, LBB0_27 b LBB0_26 LBB0_26: ; in Loop: Header=BB0_24 Depth=3 ldr x8, [sp, #96] mov x9, #2000 mul x8, x8, x9 ldr x11, [sp, #112] mov x10, #2 mul x10, x10, x11 ldr x11, [sp, #88] subs x10, x10, x11 add x10, x8, x10 add x8, sp, #976, lsl #12 ; =3997696 add x8, x8, #2504 add x8, x8, x10 ldrb w8, [x8] mov w10, #1 and w11, w8, #0x1 ldr x8, [sp, #96] mul x8, x8, x9 ldr x9, [sp, #88] add x9, x8, x9 add x8, sp, #200 add x9, x8, x9 ldrb w8, [x9] and w8, w8, #0x1 add w8, w8, w11 subs w8, w8, #0 cset w8, ne and w8, w8, w10 strb w8, [x9] b LBB0_27 LBB0_27: ; in Loop: Header=BB0_24 Depth=3 b LBB0_28 LBB0_28: ; in Loop: Header=BB0_24 Depth=3 ldr x8, [sp, #88] add x8, x8, #1 str x8, [sp, #88] b LBB0_24 LBB0_29: ; in Loop: Header=BB0_22 Depth=2 b LBB0_30 LBB0_30: ; in Loop: Header=BB0_22 Depth=2 ldr x8, [sp, #96] add x8, x8, #1 str x8, [sp, #96] b LBB0_22 LBB0_31: ; in Loop: Header=BB0_10 Depth=1 ldr x8, [sp, #112] str x8, [sp, #168] b LBB0_45 LBB0_32: ; in Loop: Header=BB0_10 Depth=1 ldrsb w8, [sp, #127] subs w8, w8, #121 cset w8, ne tbnz w8, #0, LBB0_44 b LBB0_33 LBB0_33: ; in Loop: Header=BB0_10 Depth=1 str xzr, [sp, #80] b LBB0_34 LBB0_34: ; Parent Loop BB0_10 Depth=1 ; => This Loop Header: Depth=2 ; Child Loop BB0_36 Depth 3 ldr x8, [sp, #80] ldr x9, [sp, #112] subs x8, x8, x9 cset w8, hs tbnz w8, #0, LBB0_43 b LBB0_35 LBB0_35: ; in Loop: Header=BB0_34 Depth=2 str xzr, [sp, #72] b LBB0_36 LBB0_36: ; Parent Loop BB0_10 Depth=1 ; Parent Loop BB0_34 Depth=2 ; => This Inner Loop Header: Depth=3 ldr x8, [sp, #72] subs x8, x8, #2000 cset w8, hs tbnz w8, #0, LBB0_41 b LBB0_37 LBB0_37: ; in Loop: Header=BB0_36 Depth=3 ldr x8, [sp, #80] mov x10, #2000 mul x8, x8, x10 ldr x9, [sp, #72] add x9, x8, x9 add x8, sp, #976, lsl #12 ; =3997696 add x8, x8, #2504 add x8, x8, x9 ldrb w8, [x8] ldr x9, [sp, #80] mul x9, x9, x10 ldr x10, [sp, #72] add x10, x9, x10 add x9, sp, #200 mov w11, #1 and w8, w8, w11 strb w8, [x9, x10] ldr x9, [sp, #112] mov x8, #2 mul x8, x8, x9 ldr x9, [sp, #80] subs x8, x8, x9 subs x8, x8, #2000 cset w8, hs tbnz w8, #0, LBB0_39 b LBB0_38 LBB0_38: ; in Loop: Header=BB0_36 Depth=3 ldr x9, [sp, #112] mov x8, #2 mul x8, x8, x9 ldr x9, [sp, #80] subs x8, x8, x9 mov x9, #2000 mul x8, x8, x9 ldr x10, [sp, #72] add x10, x8, x10 add x8, sp, #976, lsl #12 ; =3997696 add x8, x8, #2504 add x8, x8, x10 ldrb w8, [x8] mov w10, #1 and w11, w8, #0x1 ldr x8, [sp, #80] mul x8, x8, x9 ldr x9, [sp, #72] add x9, x8, x9 add x8, sp, #200 add x9, x8, x9 ldrb w8, [x9] and w8, w8, #0x1 add w8, w8, w11 subs w8, w8, #0 cset w8, ne and w8, w8, w10 strb w8, [x9] b LBB0_39 LBB0_39: ; in Loop: Header=BB0_36 Depth=3 b LBB0_40 LBB0_40: ; in Loop: Header=BB0_36 Depth=3 ldr x8, [sp, #72] add x8, x8, #1 str x8, [sp, #72] b LBB0_36 LBB0_41: ; in Loop: Header=BB0_34 Depth=2 b LBB0_42 LBB0_42: ; in Loop: Header=BB0_34 Depth=2 ldr x8, [sp, #80] add x8, x8, #1 str x8, [sp, #80] b LBB0_34 LBB0_43: ; in Loop: Header=BB0_10 Depth=1 ldr x8, [sp, #112] str x8, [sp, #160] b LBB0_44 LBB0_44: ; in Loop: Header=BB0_10 Depth=1 b LBB0_45 LBB0_45: ; in Loop: Header=BB0_10 Depth=1 str xzr, [sp, #64] b LBB0_46 LBB0_46: ; Parent Loop BB0_10 Depth=1 ; => This Inner Loop Header: Depth=2 ldr x9, [sp, #24] ; 8-byte Folded Reload ldr x8, [sp, #64] subs x8, x8, x9 cset w8, hs tbnz w8, #0, LBB0_49 b LBB0_47 LBB0_47: ; in Loop: Header=BB0_46 Depth=2 ldr x9, [sp, #64] add x8, sp, #200 add x8, x8, x9 ldrb w8, [x8] ldr x10, [sp, #64] add x9, sp, #976, lsl #12 ; =3997696 add x9, x9, #2504 and w8, w8, #0x1 strb w8, [x9, x10] b LBB0_48 LBB0_48: ; in Loop: Header=BB0_46 Depth=2 ldr x8, [sp, #64] add x8, x8, #1 str x8, [sp, #64] b LBB0_46 LBB0_49: ; in Loop: Header=BB0_10 Depth=1 ldr w8, [sp, #140] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_61 b LBB0_50 LBB0_50: ; in Loop: Header=BB0_10 Depth=1 str xzr, [sp, #56] b LBB0_51 LBB0_51: ; Parent Loop BB0_10 Depth=1 ; => This Loop Header: Depth=2 ; Child Loop BB0_53 Depth 3 ldr x8, [sp, #56] subs x8, x8, #2000 cset w8, hs tbnz w8, #0, LBB0_60 b LBB0_52 LBB0_52: ; in Loop: Header=BB0_51 Depth=2 str xzr, [sp, #48] b LBB0_53 LBB0_53: ; Parent Loop BB0_10 Depth=1 ; Parent Loop BB0_51 Depth=2 ; => This Inner Loop Header: Depth=3 ldr x8, [sp, #48] subs x8, x8, #2000 cset w8, hs tbnz w8, #0, LBB0_58 b LBB0_54 LBB0_54: ; in Loop: Header=BB0_53 Depth=3 ldr x8, [sp, #56] mov x9, #2000 mul x8, x8, x9 ldr x9, [sp, #48] add x9, x8, x9 add x8, sp, #976, lsl #12 ; =3997696 add x8, x8, #2504 add x8, x8, x9 ldrb w8, [x8] tbz w8, #0, LBB0_56 b LBB0_55 LBB0_55: ; in Loop: Header=BB0_53 Depth=3 ldr w8, [sp, #140] add w8, w8, #1 str w8, [sp, #140] b LBB0_56 LBB0_56: ; in Loop: Header=BB0_53 Depth=3 b LBB0_57 LBB0_57: ; in Loop: Header=BB0_53 Depth=3 ldr x8, [sp, #48] add x8, x8, #1 str x8, [sp, #48] b LBB0_53 LBB0_58: ; in Loop: Header=BB0_51 Depth=2 b LBB0_59 LBB0_59: ; in Loop: Header=BB0_51 Depth=2 ldr x8, [sp, #56] add x8, x8, #1 str x8, [sp, #56] b LBB0_51 LBB0_60: ; in Loop: Header=BB0_10 Depth=1 b LBB0_61 LBB0_61: ; in Loop: Header=BB0_10 Depth=1 b LBB0_10 LBB0_62: ldr w9, [sp, #140] ; 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 str xzr, [sp, #40] b LBB0_63 LBB0_63: ; =>This Loop Header: Depth=1 ; Child Loop BB0_65 Depth 2 ldr x8, [sp, #40] ldr x9, [sp, #160] subs x8, x8, x9 cset w8, hs tbnz w8, #0, LBB0_70 b LBB0_64 LBB0_64: ; in Loop: Header=BB0_63 Depth=1 str xzr, [sp, #32] b LBB0_65 LBB0_65: ; Parent Loop BB0_63 Depth=1 ; => This Inner Loop Header: Depth=2 ldr x8, [sp, #32] ldr x9, [sp, #168] subs x8, x8, x9 cset w8, hs tbnz w8, #0, LBB0_68 b LBB0_66 LBB0_66: ; in Loop: Header=BB0_65 Depth=2 ldr x8, [sp, #40] mov x9, #2000 mul x8, x8, x9 ldr x9, [sp, #32] add x9, x8, x9 add x8, sp, #976, lsl #12 ; =3997696 add x8, x8, #2504 add x8, x8, x9 ldrb w8, [x8] and w10, w8, #0x1 mov w9, #46 mov w8, #35 ands w10, w10, #0x1 csel w0, w8, w9, ne bl _putchar b LBB0_67 LBB0_67: ; in Loop: Header=BB0_65 Depth=2 ldr x8, [sp, #32] add x8, x8, #1 str x8, [sp, #32] b LBB0_65 LBB0_68: ; in Loop: Header=BB0_63 Depth=1 mov w0, #10 bl _putchar b LBB0_69 LBB0_69: ; in Loop: Header=BB0_63 Depth=1 ldr x8, [sp, #40] add x8, x8, #1 str x8, [sp, #40] b LBB0_63 LBB0_70: ldr x0, [sp, #184] 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_72 b LBB0_71 LBB0_71: bl ___stack_chk_fail LBB0_72: mov w0, #0 add sp, sp, #1953, lsl #12 ; =7999488 add sp, sp, #720 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 "input/day-13.input" l_.str.1: ; @.str.1 .asciz "r" l_.str.2: ; @.str.2 .asciz "%lu,%lu\n" l_.str.3: ; @.str.3 .asciz "%lu" l_.str.4: ; @.str.4 .asciz "PART 1: %u\n" l_.str.5: ; @.str.5 .asciz "PART 2:\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 $8000192, %eax ## imm = 0x7A12C0 callq ____chkstk_darwin subq %rax, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -8000020(%rbp) leaq L_.str(%rip), %rdi leaq L_.str.1(%rip), %rsi callq _fopen movq %rax, -8000032(%rbp) movq $0, -8000040(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 cmpq $4000000, -8000040(%rbp) ## imm = 0x3D0900 jae LBB0_4 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movq -8000040(%rbp), %rax movb $0, -4000016(%rbp,%rax) ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movq -8000040(%rbp), %rax addq $1, %rax movq %rax, -8000040(%rbp) jmp LBB0_1 LBB0_4: movq $2000, -8000048(%rbp) ## imm = 0x7D0 movq $2000, -8000056(%rbp) ## imm = 0x7D0 LBB0_5: ## =>This Inner Loop Header: Depth=1 movq -8000032(%rbp), %rdi leaq L_.str.2(%rip), %rsi leaq -8000064(%rbp), %rdx leaq -8000072(%rbp), %rcx movb $0, %al callq _fscanf cmpl $2, %eax jne LBB0_7 ## %bb.6: ## in Loop: Header=BB0_5 Depth=1 imulq $2000, -8000072(%rbp), %rax ## imm = 0x7D0 addq -8000064(%rbp), %rax movb $1, -4000016(%rbp,%rax) jmp LBB0_8 LBB0_7: jmp LBB0_9 LBB0_8: ## in Loop: Header=BB0_5 Depth=1 jmp LBB0_5 LBB0_9: movl $0, -8000076(%rbp) LBB0_10: ## =>This Loop Header: Depth=1 ## Child Loop BB0_11 Depth 2 ## Child Loop BB0_17 Depth 2 ## Child Loop BB0_22 Depth 2 ## Child Loop BB0_24 Depth 3 ## Child Loop BB0_34 Depth 2 ## Child Loop BB0_36 Depth 3 ## Child Loop BB0_46 Depth 2 ## Child Loop BB0_51 Depth 2 ## Child Loop BB0_53 Depth 3 movq $0, -8000088(%rbp) LBB0_11: ## Parent Loop BB0_10 Depth=1 ## => This Inner Loop Header: Depth=2 cmpq $11, -8000088(%rbp) jae LBB0_16 ## %bb.12: ## in Loop: Header=BB0_11 Depth=2 movq -8000032(%rbp), %rdi callq _fgetc cmpl $-1, %eax jne LBB0_14 ## %bb.13: jmp LBB0_62 LBB0_14: ## in Loop: Header=BB0_11 Depth=2 jmp LBB0_15 LBB0_15: ## in Loop: Header=BB0_11 Depth=2 movq -8000088(%rbp), %rax addq $1, %rax movq %rax, -8000088(%rbp) jmp LBB0_11 LBB0_16: ## in Loop: Header=BB0_10 Depth=1 movq -8000032(%rbp), %rdi callq _fgetc ## kill: def $al killed $al killed $eax movb %al, -8000089(%rbp) movq -8000032(%rbp), %rdi callq _fgetc movq -8000032(%rbp), %rdi leaq L_.str.3(%rip), %rsi leaq -8000104(%rbp), %rdx movb $0, %al callq _fscanf movq -8000032(%rbp), %rdi callq _fgetc movq $0, -8000112(%rbp) LBB0_17: ## Parent Loop BB0_10 Depth=1 ## => This Inner Loop Header: Depth=2 cmpq $4000000, -8000112(%rbp) ## imm = 0x3D0900 jae LBB0_20 ## %bb.18: ## in Loop: Header=BB0_17 Depth=2 movq -8000112(%rbp), %rax movb $0, -8000016(%rbp,%rax) ## %bb.19: ## in Loop: Header=BB0_17 Depth=2 movq -8000112(%rbp), %rax addq $1, %rax movq %rax, -8000112(%rbp) jmp LBB0_17 LBB0_20: ## in Loop: Header=BB0_10 Depth=1 movsbl -8000089(%rbp), %eax cmpl $120, %eax jne LBB0_32 ## %bb.21: ## in Loop: Header=BB0_10 Depth=1 movq $0, -8000120(%rbp) LBB0_22: ## Parent Loop BB0_10 Depth=1 ## => This Loop Header: Depth=2 ## Child Loop BB0_24 Depth 3 cmpq $2000, -8000120(%rbp) ## imm = 0x7D0 jae LBB0_31 ## %bb.23: ## in Loop: Header=BB0_22 Depth=2 movq $0, -8000128(%rbp) LBB0_24: ## Parent Loop BB0_10 Depth=1 ## Parent Loop BB0_22 Depth=2 ## => This Inner Loop Header: Depth=3 movq -8000128(%rbp), %rax cmpq -8000104(%rbp), %rax jae LBB0_29 ## %bb.25: ## in Loop: Header=BB0_24 Depth=3 imulq $2000, -8000120(%rbp), %rax ## imm = 0x7D0 addq -8000128(%rbp), %rax movb -4000016(%rbp,%rax), %cl imulq $2000, -8000120(%rbp), %rax ## imm = 0x7D0 addq -8000128(%rbp), %rax andb $1, %cl movb %cl, -8000016(%rbp,%rax) movq -8000104(%rbp), %rax shlq $1, %rax subq -8000128(%rbp), %rax cmpq $2000, %rax ## imm = 0x7D0 jae LBB0_27 ## %bb.26: ## in Loop: Header=BB0_24 Depth=3 imulq $2000, -8000120(%rbp), %rax ## imm = 0x7D0 movq -8000104(%rbp), %rcx shlq $1, %rcx subq -8000128(%rbp), %rcx addq %rcx, %rax movb -4000016(%rbp,%rax), %al andb $1, %al movzbl %al, %edx imulq $2000, -8000120(%rbp), %rax ## imm = 0x7D0 addq -8000128(%rbp), %rax movb -8000016(%rbp,%rax), %cl andb $1, %cl movzbl %cl, %ecx addl %edx, %ecx cmpl $0, %ecx setne %cl andb $1, %cl movb %cl, -8000016(%rbp,%rax) LBB0_27: ## in Loop: Header=BB0_24 Depth=3 jmp LBB0_28 LBB0_28: ## in Loop: Header=BB0_24 Depth=3 movq -8000128(%rbp), %rax addq $1, %rax movq %rax, -8000128(%rbp) jmp LBB0_24 LBB0_29: ## in Loop: Header=BB0_22 Depth=2 jmp LBB0_30 LBB0_30: ## in Loop: Header=BB0_22 Depth=2 movq -8000120(%rbp), %rax addq $1, %rax movq %rax, -8000120(%rbp) jmp LBB0_22 LBB0_31: ## in Loop: Header=BB0_10 Depth=1 movq -8000104(%rbp), %rax movq %rax, -8000048(%rbp) jmp LBB0_45 LBB0_32: ## in Loop: Header=BB0_10 Depth=1 movsbl -8000089(%rbp), %eax cmpl $121, %eax jne LBB0_44 ## %bb.33: ## in Loop: Header=BB0_10 Depth=1 movq $0, -8000136(%rbp) LBB0_34: ## Parent Loop BB0_10 Depth=1 ## => This Loop Header: Depth=2 ## Child Loop BB0_36 Depth 3 movq -8000136(%rbp), %rax cmpq -8000104(%rbp), %rax jae LBB0_43 ## %bb.35: ## in Loop: Header=BB0_34 Depth=2 movq $0, -8000144(%rbp) LBB0_36: ## Parent Loop BB0_10 Depth=1 ## Parent Loop BB0_34 Depth=2 ## => This Inner Loop Header: Depth=3 cmpq $2000, -8000144(%rbp) ## imm = 0x7D0 jae LBB0_41 ## %bb.37: ## in Loop: Header=BB0_36 Depth=3 imulq $2000, -8000136(%rbp), %rax ## imm = 0x7D0 addq -8000144(%rbp), %rax movb -4000016(%rbp,%rax), %cl imulq $2000, -8000136(%rbp), %rax ## imm = 0x7D0 addq -8000144(%rbp), %rax andb $1, %cl movb %cl, -8000016(%rbp,%rax) movq -8000104(%rbp), %rax shlq $1, %rax subq -8000136(%rbp), %rax cmpq $2000, %rax ## imm = 0x7D0 jae LBB0_39 ## %bb.38: ## in Loop: Header=BB0_36 Depth=3 movq -8000104(%rbp), %rax shlq $1, %rax subq -8000136(%rbp), %rax imulq $2000, %rax, %rax ## imm = 0x7D0 addq -8000144(%rbp), %rax movb -4000016(%rbp,%rax), %al andb $1, %al movzbl %al, %edx imulq $2000, -8000136(%rbp), %rax ## imm = 0x7D0 addq -8000144(%rbp), %rax movb -8000016(%rbp,%rax), %cl andb $1, %cl movzbl %cl, %ecx addl %edx, %ecx cmpl $0, %ecx setne %cl andb $1, %cl movb %cl, -8000016(%rbp,%rax) LBB0_39: ## in Loop: Header=BB0_36 Depth=3 jmp LBB0_40 LBB0_40: ## in Loop: Header=BB0_36 Depth=3 movq -8000144(%rbp), %rax addq $1, %rax movq %rax, -8000144(%rbp) jmp LBB0_36 LBB0_41: ## in Loop: Header=BB0_34 Depth=2 jmp LBB0_42 LBB0_42: ## in Loop: Header=BB0_34 Depth=2 movq -8000136(%rbp), %rax addq $1, %rax movq %rax, -8000136(%rbp) jmp LBB0_34 LBB0_43: ## in Loop: Header=BB0_10 Depth=1 movq -8000104(%rbp), %rax movq %rax, -8000056(%rbp) LBB0_44: ## in Loop: Header=BB0_10 Depth=1 jmp LBB0_45 LBB0_45: ## in Loop: Header=BB0_10 Depth=1 movq $0, -8000152(%rbp) LBB0_46: ## Parent Loop BB0_10 Depth=1 ## => This Inner Loop Header: Depth=2 cmpq $4000000, -8000152(%rbp) ## imm = 0x3D0900 jae LBB0_49 ## %bb.47: ## in Loop: Header=BB0_46 Depth=2 movq -8000152(%rbp), %rax movb -8000016(%rbp,%rax), %cl movq -8000152(%rbp), %rax andb $1, %cl movb %cl, -4000016(%rbp,%rax) ## %bb.48: ## in Loop: Header=BB0_46 Depth=2 movq -8000152(%rbp), %rax addq $1, %rax movq %rax, -8000152(%rbp) jmp LBB0_46 LBB0_49: ## in Loop: Header=BB0_10 Depth=1 cmpl $0, -8000076(%rbp) jne LBB0_61 ## %bb.50: ## in Loop: Header=BB0_10 Depth=1 movq $0, -8000160(%rbp) LBB0_51: ## Parent Loop BB0_10 Depth=1 ## => This Loop Header: Depth=2 ## Child Loop BB0_53 Depth 3 cmpq $2000, -8000160(%rbp) ## imm = 0x7D0 jae LBB0_60 ## %bb.52: ## in Loop: Header=BB0_51 Depth=2 movq $0, -8000168(%rbp) LBB0_53: ## Parent Loop BB0_10 Depth=1 ## Parent Loop BB0_51 Depth=2 ## => This Inner Loop Header: Depth=3 cmpq $2000, -8000168(%rbp) ## imm = 0x7D0 jae LBB0_58 ## %bb.54: ## in Loop: Header=BB0_53 Depth=3 imulq $2000, -8000160(%rbp), %rax ## imm = 0x7D0 addq -8000168(%rbp), %rax testb $1, -4000016(%rbp,%rax) je LBB0_56 ## %bb.55: ## in Loop: Header=BB0_53 Depth=3 movl -8000076(%rbp), %eax addl $1, %eax movl %eax, -8000076(%rbp) LBB0_56: ## in Loop: Header=BB0_53 Depth=3 jmp LBB0_57 LBB0_57: ## in Loop: Header=BB0_53 Depth=3 movq -8000168(%rbp), %rax addq $1, %rax movq %rax, -8000168(%rbp) jmp LBB0_53 LBB0_58: ## in Loop: Header=BB0_51 Depth=2 jmp LBB0_59 LBB0_59: ## in Loop: Header=BB0_51 Depth=2 movq -8000160(%rbp), %rax addq $1, %rax movq %rax, -8000160(%rbp) jmp LBB0_51 LBB0_60: ## in Loop: Header=BB0_10 Depth=1 jmp LBB0_61 LBB0_61: ## in Loop: Header=BB0_10 Depth=1 jmp LBB0_10 LBB0_62: movl -8000076(%rbp), %esi leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf leaq L_.str.5(%rip), %rdi movb $0, %al callq _printf movq $0, -8000176(%rbp) LBB0_63: ## =>This Loop Header: Depth=1 ## Child Loop BB0_65 Depth 2 movq -8000176(%rbp), %rax cmpq -8000056(%rbp), %rax jae LBB0_70 ## %bb.64: ## in Loop: Header=BB0_63 Depth=1 movq $0, -8000184(%rbp) LBB0_65: ## Parent Loop BB0_63 Depth=1 ## => This Inner Loop Header: Depth=2 movq -8000184(%rbp), %rax cmpq -8000048(%rbp), %rax jae LBB0_68 ## %bb.66: ## in Loop: Header=BB0_65 Depth=2 imulq $2000, -8000176(%rbp), %rax ## imm = 0x7D0 addq -8000184(%rbp), %rax movb -4000016(%rbp,%rax), %cl movl $46, %edi movl $35, %eax testb $1, %cl cmovnel %eax, %edi callq _putchar ## %bb.67: ## in Loop: Header=BB0_65 Depth=2 movq -8000184(%rbp), %rax addq $1, %rax movq %rax, -8000184(%rbp) jmp LBB0_65 LBB0_68: ## in Loop: Header=BB0_63 Depth=1 movl $10, %edi callq _putchar ## %bb.69: ## in Loop: Header=BB0_63 Depth=1 movq -8000176(%rbp), %rax addq $1, %rax movq %rax, -8000176(%rbp) jmp LBB0_63 LBB0_70: movq -8000032(%rbp), %rdi callq _fclose movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_72 ## %bb.71: xorl %eax, %eax addq $8000192, %rsp ## imm = 0x7A12C0 popq %rbp retq LBB0_72: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "input/day-13.input" L_.str.1: ## @.str.1 .asciz "r" L_.str.2: ## @.str.2 .asciz "%lu,%lu\n" L_.str.3: ## @.str.3 .asciz "%lu" L_.str.4: ## @.str.4 .asciz "PART 1: %u\n" L_.str.5: ## @.str.5 .asciz "PART 2:\n" .subsections_via_symbols
the_stack_data/165766853.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, #464 .cfi_def_cfa_offset 464 stp x28, x27, [sp, #432] ; 16-byte Folded Spill stp x29, x30, [sp, #448] ; 16-byte Folded Spill add x29, sp, #448 .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, #40] str wzr, [sp, #24] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #24] subs w8, w8, #95 cset w8, ge tbnz w8, #0, LBB0_4 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldrsw x10, [sp, #24] add x9, sp, #44 mov w8, #0 str w8, [x9, x10, lsl #2] b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #24] add w8, w8, #1 str w8, [sp, #24] b LBB0_1 LBB0_4: b LBB0_5 LBB0_5: ; =>This Inner Loop Header: Depth=1 bl _getchar str w0, [sp, #36] adds w8, w0, #1 cset w8, eq tbnz w8, #0, LBB0_10 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_5 Depth=1 ldr w8, [sp, #36] subs w8, w8, #32 cset w8, lt tbnz w8, #0, LBB0_9 b LBB0_7 LBB0_7: ; in Loop: Header=BB0_5 Depth=1 ldr w8, [sp, #36] subs w8, w8, #126 cset w8, gt tbnz w8, #0, LBB0_9 b LBB0_8 LBB0_8: ; in Loop: Header=BB0_5 Depth=1 ldr w8, [sp, #36] subs w9, w8, #32 add x8, sp, #44 add x9, x8, w9, sxtw #2 ldr w8, [x9] add w8, w8, #1 str w8, [x9] b LBB0_9 LBB0_9: ; in Loop: Header=BB0_5 Depth=1 b LBB0_5 LBB0_10: str wzr, [sp, #28] str wzr, [sp, #24] b LBB0_11 LBB0_11: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #24] subs w8, w8, #95 cset w8, ge tbnz w8, #0, LBB0_16 b LBB0_12 LBB0_12: ; in Loop: Header=BB0_11 Depth=1 ldrsw x9, [sp, #24] add x8, sp, #44 ldr w8, [x8, x9, lsl #2] ldr w9, [sp, #28] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB0_14 b LBB0_13 LBB0_13: ; in Loop: Header=BB0_11 Depth=1 ldrsw x9, [sp, #24] add x8, sp, #44 ldr w8, [x8, x9, lsl #2] str w8, [sp, #28] b LBB0_14 LBB0_14: ; in Loop: Header=BB0_11 Depth=1 b LBB0_15 LBB0_15: ; in Loop: Header=BB0_11 Depth=1 ldr w8, [sp, #24] add w8, w8, #1 str w8, [sp, #24] b LBB0_11 LBB0_16: fmov s0, #1.00000000 str s0, [sp, #16] ldr w8, [sp, #28] subs w8, w8, #77 cset w8, le tbnz w8, #0, LBB0_18 b LBB0_17 LBB0_17: ldr s0, [sp, #28] scvtf s1, s0 mov w8, #1117388800 fmov s0, w8 fdiv s0, s0, s1 str s0, [sp, #16] b LBB0_18 LBB0_18: str wzr, [sp, #24] b LBB0_19 LBB0_19: ; =>This Loop Header: Depth=1 ; Child Loop BB0_21 Depth 2 ldr w8, [sp, #24] subs w8, w8, #95 cset w8, ge tbnz w8, #0, LBB0_26 b LBB0_20 LBB0_20: ; in Loop: Header=BB0_19 Depth=1 ldr w8, [sp, #24] add w10, w8, #32 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 ldrsw x9, [sp, #24] add x8, sp, #44 ldr s0, [x8, x9, lsl #2] scvtf s0, s0 ldr s1, [sp, #16] fmul s0, s0, s1 fcvtzs w8, s0 str w8, [sp, #32] str wzr, [sp, #20] b LBB0_21 LBB0_21: ; Parent Loop BB0_19 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #20] ldr w9, [sp, #32] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_24 b LBB0_22 LBB0_22: ; in Loop: Header=BB0_21 Depth=2 adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf b LBB0_23 LBB0_23: ; in Loop: Header=BB0_21 Depth=2 ldr w8, [sp, #20] add w8, w8, #1 str w8, [sp, #20] b LBB0_21 LBB0_24: ; in Loop: Header=BB0_19 Depth=1 adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf b LBB0_25 LBB0_25: ; in Loop: Header=BB0_19 Depth=1 ldr w8, [sp, #24] add w8, w8, #1 str w8, [sp, #24] b LBB0_19 LBB0_26: ldr w8, [sp, #40] 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_28 b LBB0_27 LBB0_27: bl ___stack_chk_fail LBB0_28: ldr w0, [sp, #12] ; 4-byte Folded Reload ldp x29, x30, [sp, #448] ; 16-byte Folded Reload ldp x28, x27, [sp, #432] ; 16-byte Folded Reload add sp, sp, #464 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%c|" l_.str.1: ; @.str.1 .asciz "*" l_.str.2: ; @.str.2 .asciz "\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __TEXT,__literal4,4byte_literals .p2align 2 ## -- Begin function main LCPI0_0: .long 0x3f800000 ## float 1 LCPI0_1: .long 0x429a0000 ## float 77 .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, -404(%rbp) movl $0, -420(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 cmpl $95, -420(%rbp) jge LBB0_4 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movslq -420(%rbp), %rax movl $0, -400(%rbp,%rax,4) ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movl -420(%rbp), %eax addl $1, %eax movl %eax, -420(%rbp) jmp LBB0_1 LBB0_4: jmp LBB0_5 LBB0_5: ## =>This Inner Loop Header: Depth=1 callq _getchar movl %eax, -408(%rbp) cmpl $-1, %eax je LBB0_10 ## %bb.6: ## in Loop: Header=BB0_5 Depth=1 cmpl $32, -408(%rbp) jl LBB0_9 ## %bb.7: ## in Loop: Header=BB0_5 Depth=1 cmpl $126, -408(%rbp) jg LBB0_9 ## %bb.8: ## in Loop: Header=BB0_5 Depth=1 movl -408(%rbp), %eax subl $32, %eax cltq movl -400(%rbp,%rax,4), %ecx addl $1, %ecx movl %ecx, -400(%rbp,%rax,4) LBB0_9: ## in Loop: Header=BB0_5 Depth=1 jmp LBB0_5 LBB0_10: movl $0, -416(%rbp) movl $0, -420(%rbp) LBB0_11: ## =>This Inner Loop Header: Depth=1 cmpl $95, -420(%rbp) jge LBB0_16 ## %bb.12: ## in Loop: Header=BB0_11 Depth=1 movslq -420(%rbp), %rax movl -400(%rbp,%rax,4), %eax cmpl -416(%rbp), %eax jle LBB0_14 ## %bb.13: ## in Loop: Header=BB0_11 Depth=1 movslq -420(%rbp), %rax movl -400(%rbp,%rax,4), %eax movl %eax, -416(%rbp) LBB0_14: ## in Loop: Header=BB0_11 Depth=1 jmp LBB0_15 LBB0_15: ## in Loop: Header=BB0_11 Depth=1 movl -420(%rbp), %eax addl $1, %eax movl %eax, -420(%rbp) jmp LBB0_11 LBB0_16: movss LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, -428(%rbp) cmpl $77, -416(%rbp) jle LBB0_18 ## %bb.17: cvtsi2ssl -416(%rbp), %xmm1 movss LCPI0_1(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero divss %xmm1, %xmm0 movss %xmm0, -428(%rbp) LBB0_18: movl $0, -420(%rbp) LBB0_19: ## =>This Loop Header: Depth=1 ## Child Loop BB0_21 Depth 2 cmpl $95, -420(%rbp) jge LBB0_26 ## %bb.20: ## in Loop: Header=BB0_19 Depth=1 movl -420(%rbp), %esi addl $32, %esi leaq L_.str(%rip), %rdi movb $0, %al callq _printf movslq -420(%rbp), %rax cvtsi2ssl -400(%rbp,%rax,4), %xmm0 mulss -428(%rbp), %xmm0 cvttss2si %xmm0, %eax movl %eax, -412(%rbp) movl $0, -424(%rbp) LBB0_21: ## Parent Loop BB0_19 Depth=1 ## => This Inner Loop Header: Depth=2 movl -424(%rbp), %eax cmpl -412(%rbp), %eax jge LBB0_24 ## %bb.22: ## in Loop: Header=BB0_21 Depth=2 leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf ## %bb.23: ## in Loop: Header=BB0_21 Depth=2 movl -424(%rbp), %eax addl $1, %eax movl %eax, -424(%rbp) jmp LBB0_21 LBB0_24: ## in Loop: Header=BB0_19 Depth=1 leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf ## %bb.25: ## in Loop: Header=BB0_19 Depth=1 movl -420(%rbp), %eax addl $1, %eax movl %eax, -420(%rbp) jmp LBB0_19 LBB0_26: movl -404(%rbp), %eax movl %eax, -432(%rbp) ## 4-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_28 ## %bb.27: movl -432(%rbp), %eax ## 4-byte Reload addq $432, %rsp ## imm = 0x1B0 popq %rbp retq LBB0_28: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%c|" L_.str.1: ## @.str.1 .asciz "*" L_.str.2: ## @.str.2 .asciz "\n" .subsections_via_symbols
the_stack_data/9512880.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, #2096 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, #56] str wzr, [sp, #52] str wzr, [sp, #48] str wzr, [sp, #44] str wzr, [sp, #40] mov w0, #2 mov w1, #1 mov w2, #6 bl _socket str w0, [sp, #56] add x8, sp, #72 str x8, [sp, #32] ; 8-byte Folded Spill mov w9, #2 strb w9, [sp, #73] mov w9, #34835 strh w9, [sp, #74] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF add x1, x8, #4 bl _inet_aton ldr x1, [sp, #32] ; 8-byte Folded Reload ldr w0, [sp, #56] mov w2, #16 bl _connect str w0, [sp, #52] ldr w8, [sp, #52] subs w8, w8, #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 b LBB0_3 LBB0_2: adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf b LBB0_3 LBB0_3: b LBB0_4 LBB0_4: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #40] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_15 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_4 Depth=1 adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf add x0, sp, #1088 mov w1, #1000 bl _get_send_line str w0, [sp, #60] ldr w8, [sp, #60] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB0_14 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_4 Depth=1 add x0, sp, #1088 adrp x1, l_.str.4@PAGE add x1, x1, l_.str.4@PAGEOFF bl _strcmp subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB0_8 b LBB0_7 LBB0_7: ; in Loop: Header=BB0_4 Depth=1 mov w8, #1 str w8, [sp, #40] b LBB0_4 LBB0_8: ; in Loop: Header=BB0_4 Depth=1 ldr w0, [sp, #56] ldrsw x2, [sp, #60] add x1, sp, #1088 mov w3, #0 bl _send mov x8, x0 str w8, [sp, #48] ldr w9, [sp, #48] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf ldr w8, [sp, #48] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB0_12 b LBB0_9 LBB0_9: ; in Loop: Header=BB0_4 Depth=1 ldr w0, [sp, #56] add x1, sp, #88 mov x2, #1000 mov w3, #0 bl _recv mov x8, x0 str w8, [sp, #44] ldr w8, [sp, #44] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB0_11 b LBB0_10 LBB0_10: ; in Loop: Header=BB0_4 Depth=1 add x0, sp, #88 str x0, [sp, #24] ; 8-byte Folded Spill bl _strlen subs x8, x0, #18 ; kill: def $w8 killed $w8 killed $x8 str w8, [sp, #64] ldr w9, [sp, #64] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _printf ldr x8, [sp, #24] ; 8-byte Folded Reload mov x9, sp str x8, [x9] adrp x0, l_.str.7@PAGE add x0, x0, l_.str.7@PAGEOFF bl _printf b LBB0_11 LBB0_11: ; in Loop: Header=BB0_4 Depth=1 b LBB0_13 LBB0_12: ; in Loop: Header=BB0_4 Depth=1 adrp x0, l_.str.8@PAGE add x0, x0, l_.str.8@PAGEOFF bl _printf b LBB0_13 LBB0_13: ; in Loop: Header=BB0_4 Depth=1 b LBB0_14 LBB0_14: ; in Loop: Header=BB0_4 Depth=1 b LBB0_4 LBB0_15: ldr w0, [sp, #56] bl _close ldr w8, [sp, #68] str w8, [sp, #20] ; 4-byte Folded Spill ldur x9, [x29, #-24] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_17 b LBB0_16 LBB0_16: bl ___stack_chk_fail LBB0_17: ldr w0, [sp, #20] ; 4-byte Folded Reload add sp, sp, #2096 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x28, x27, [sp], #32 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .globl _get_send_line ; -- Begin function get_send_line .p2align 2 _get_send_line: ; @get_send_line .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] stur w1, [x29, #-12] str wzr, [sp, #12] b LBB1_1 LBB1_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #12] ldur w9, [x29, #-12] subs w9, w9, #1 subs w8, w8, w9 cset w8, ge mov w9, #0 str w9, [sp, #8] ; 4-byte Folded Spill tbnz w8, #0, LBB1_4 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 bl _getchar str w0, [sp, #16] adds w8, w0, #1 cset w8, eq mov w9, #0 str w9, [sp, #8] ; 4-byte Folded Spill tbnz w8, #0, LBB1_4 b LBB1_3 LBB1_3: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #16] subs w8, w8, #10 cset w8, ne str w8, [sp, #8] ; 4-byte Folded Spill b LBB1_4 LBB1_4: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #8] ; 4-byte Folded Reload tbz w8, #0, LBB1_7 b LBB1_5 LBB1_5: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #16] ldur x9, [x29, #-8] ldrsw x10, [sp, #12] strb w8, [x9, x10] b LBB1_6 LBB1_6: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB1_1 LBB1_7: ldr w8, [sp, #16] subs w8, w8, #10 cset w8, ne tbnz w8, #0, LBB1_9 b LBB1_8 LBB1_8: ldr w8, [sp, #16] ldur x9, [x29, #-8] ldrsw x10, [sp, #12] strb w8, [x9, x10] ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB1_9 LBB1_9: ldur x8, [x29, #-8] ldrsw x9, [sp, #12] add x8, x8, x9 strb wzr, [x8] ldr w0, [sp, #12] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "localhost" l_.str.1: ; @.str.1 .asciz "Successfully connected!\n" l_.str.2: ; @.str.2 .asciz "Failed connection!\n" l_.str.3: ; @.str.3 .asciz "Enter input to server, or write \"quit()\" to exit program." l_.str.4: ; @.str.4 .asciz "quit()" l_.str.5: ; @.str.5 .asciz "Send status: %d\n" l_.str.6: ; @.str.6 .asciz "Server response length: %d\n" l_.str.7: ; @.str.7 .asciz "Server:%s\n" l_.str.8: ; @.str.8 .asciz "Error when writing to server\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 $2080, %rsp ## imm = 0x820 movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -2036(%rbp) movl $0, -2048(%rbp) movl $0, -2052(%rbp) movl $0, -2056(%rbp) movl $0, -2060(%rbp) movl $0, -2064(%rbp) movl $2, %edi movl $1, %esi movl $6, %edx callq _socket movl %eax, -2048(%rbp) movb $2, -2031(%rbp) movw $-30701, -2030(%rbp) ## imm = 0x8813 leaq -2032(%rbp), %rsi addq $4, %rsi leaq L_.str(%rip), %rdi callq _inet_aton movl -2048(%rbp), %edi leaq -2032(%rbp), %rsi movl $16, %edx callq _connect movl %eax, -2052(%rbp) cmpl $0, -2052(%rbp) jne LBB0_2 ## %bb.1: leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf jmp LBB0_3 LBB0_2: leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf LBB0_3: jmp LBB0_4 LBB0_4: ## =>This Inner Loop Header: Depth=1 cmpl $0, -2064(%rbp) setne %al xorb $-1, %al testb $1, %al jne LBB0_5 jmp LBB0_15 LBB0_5: ## in Loop: Header=BB0_4 Depth=1 leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf leaq -1008(%rbp), %rdi movl $1000, %esi ## imm = 0x3E8 callq _get_send_line movl %eax, -2044(%rbp) cmpl $0, -2044(%rbp) jle LBB0_14 ## %bb.6: ## in Loop: Header=BB0_4 Depth=1 leaq -1008(%rbp), %rdi leaq L_.str.4(%rip), %rsi callq _strcmp cmpl $0, %eax je LBB0_8 ## %bb.7: ## in Loop: Header=BB0_4 Depth=1 movl $1, -2064(%rbp) jmp LBB0_4 LBB0_8: ## in Loop: Header=BB0_4 Depth=1 movl -2048(%rbp), %edi leaq -1008(%rbp), %rsi movslq -2044(%rbp), %rdx xorl %ecx, %ecx callq _send ## kill: def $eax killed $eax killed $rax movl %eax, -2056(%rbp) movl -2056(%rbp), %esi leaq L_.str.5(%rip), %rdi movb $0, %al callq _printf cmpl $0, -2056(%rbp) jle LBB0_12 ## %bb.9: ## in Loop: Header=BB0_4 Depth=1 movl -2048(%rbp), %edi leaq -2016(%rbp), %rsi movl $1000, %edx ## imm = 0x3E8 xorl %ecx, %ecx callq _recv ## kill: def $eax killed $eax killed $rax movl %eax, -2060(%rbp) cmpl $0, -2060(%rbp) jle LBB0_11 ## %bb.10: ## in Loop: Header=BB0_4 Depth=1 leaq -2016(%rbp), %rdi callq _strlen subq $18, %rax ## kill: def $eax killed $eax killed $rax movl %eax, -2040(%rbp) movl -2040(%rbp), %esi leaq L_.str.6(%rip), %rdi movb $0, %al callq _printf leaq -2016(%rbp), %rsi leaq L_.str.7(%rip), %rdi movb $0, %al callq _printf LBB0_11: ## in Loop: Header=BB0_4 Depth=1 jmp LBB0_13 LBB0_12: ## in Loop: Header=BB0_4 Depth=1 leaq L_.str.8(%rip), %rdi movb $0, %al callq _printf LBB0_13: ## in Loop: Header=BB0_4 Depth=1 jmp LBB0_14 LBB0_14: ## in Loop: Header=BB0_4 Depth=1 jmp LBB0_4 LBB0_15: movl -2048(%rbp), %edi callq _close movl -2036(%rbp), %eax movl %eax, -2068(%rbp) ## 4-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_17 ## %bb.16: movl -2068(%rbp), %eax ## 4-byte Reload addq $2080, %rsp ## imm = 0x820 popq %rbp retq LBB0_17: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _get_send_line ## -- Begin function get_send_line .p2align 4, 0x90 _get_send_line: ## @get_send_line .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, -20(%rbp) LBB1_1: ## =>This Inner Loop Header: Depth=1 movl -20(%rbp), %ecx movl -12(%rbp), %edx subl $1, %edx xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl %edx, %ecx movb %al, -21(%rbp) ## 1-byte Spill jge LBB1_4 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 callq _getchar movl %eax, %ecx movl %ecx, -16(%rbp) xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $-1, %ecx movb %al, -21(%rbp) ## 1-byte Spill je LBB1_4 ## %bb.3: ## in Loop: Header=BB1_1 Depth=1 cmpl $10, -16(%rbp) setne %al movb %al, -21(%rbp) ## 1-byte Spill LBB1_4: ## in Loop: Header=BB1_1 Depth=1 movb -21(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB1_5 jmp LBB1_7 LBB1_5: ## in Loop: Header=BB1_1 Depth=1 movl -16(%rbp), %eax movb %al, %dl movq -8(%rbp), %rax movslq -20(%rbp), %rcx movb %dl, (%rax,%rcx) ## %bb.6: ## in Loop: Header=BB1_1 Depth=1 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB1_1 LBB1_7: cmpl $10, -16(%rbp) jne LBB1_9 ## %bb.8: movl -16(%rbp), %eax movb %al, %dl movq -8(%rbp), %rax movslq -20(%rbp), %rcx movb %dl, (%rax,%rcx) movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) LBB1_9: movq -8(%rbp), %rax movslq -20(%rbp), %rcx movb $0, (%rax,%rcx) movl -20(%rbp), %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "localhost" L_.str.1: ## @.str.1 .asciz "Successfully connected!\n" L_.str.2: ## @.str.2 .asciz "Failed connection!\n" L_.str.3: ## @.str.3 .asciz "Enter input to server, or write \"quit()\" to exit program." L_.str.4: ## @.str.4 .asciz "quit()" L_.str.5: ## @.str.5 .asciz "Send status: %d\n" L_.str.6: ## @.str.6 .asciz "Server response length: %d\n" L_.str.7: ## @.str.7 .asciz "Server:%s\n" L_.str.8: ## @.str.8 .asciz "Error when writing to server\n" .subsections_via_symbols
the_stack_data/30483.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __TEXT,__const .globl _CorePlotVersionString ; @CorePlotVersionString _CorePlotVersionString: .asciz "@(#)PROGRAM:CorePlot PROJECT:Pods-1\n" .globl _CorePlotVersionNumber ; @CorePlotVersionNumber .p2align 3 _CorePlotVersionNumber: .quad 0x3ff0000000000000 ; double 1 .no_dead_strip _CorePlotVersionString .no_dead_strip _CorePlotVersionNumber .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __TEXT,__const .globl _CorePlotVersionString ## @CorePlotVersionString .p2align 4 _CorePlotVersionString: .asciz "@(#)PROGRAM:CorePlot PROJECT:Pods-1\n" .globl _CorePlotVersionNumber ## @CorePlotVersionNumber .p2align 3 _CorePlotVersionNumber: .quad 0x3ff0000000000000 ## double 1 .no_dead_strip _CorePlotVersionString .no_dead_strip _CorePlotVersionNumber .subsections_via_symbols
the_stack_data/49232.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] sub x8, x29, #8 str x8, [sp, #16] str wzr, [sp, #12] ldr w11, [sp, #12] ldr x8, [sp, #16] ldrsw x9, [sp, #12] add x10, x8, x9, lsl #2 ldrh w8, [x10] mov w9, #32767 and w11, w11, #0x7fff and w8, w8, #0xffff8000 orr w8, w8, w11 strh w8, [x10] ldr x8, [sp, #16] ldrh w8, [x8] and w8, w8, w9 and w8, w8, #0xffff str w8, [sp, #8] ldr w8, [sp, #8] ldr w9, [sp, #12] subs w8, w8, w9 cset w9, ne ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: adrp x0, l___func__.main@PAGE add x0, x0, l___func__.main@PAGEOFF adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF mov w2, #16 adrp x3, l_.str.1@PAGE add x3, x3, l_.str.1@PAGEOFF bl ___assert_rtn LBB0_2: 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___func__.main: ; @__func__.main .asciz "main" l_.str: ; @.str .asciz "540432.c" l_.str.1: ; @.str.1 .asciz "n == i" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl $0, -4(%rbp) leaq -8(%rbp), %rax movq %rax, -16(%rbp) movl $0, -20(%rbp) movl -20(%rbp), %edx movq -16(%rbp), %rax movslq -20(%rbp), %rcx movw %dx, %si movw (%rax,%rcx,4), %dx andw $32767, %si ## imm = 0x7FFF andw $-32768, %dx ## imm = 0x8000 orw %si, %dx movw %dx, (%rax,%rcx,4) movq -16(%rbp), %rax movw (%rax), %ax andw $32767, %ax ## imm = 0x7FFF movzwl %ax, %eax movl %eax, -24(%rbp) movl -24(%rbp), %eax cmpl -20(%rbp), %eax sete %al xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB0_2 ## %bb.1: leaq L___func__.main(%rip), %rdi leaq L_.str(%rip), %rsi leaq L_.str.1(%rip), %rcx movl $16, %edx callq ___assert_rtn LBB0_2: jmp LBB0_3 LBB0_3: xorl %eax, %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L___func__.main: ## @__func__.main .asciz "main" L_.str: ## @.str .asciz "540432.c" L_.str.1: ## @.str.1 .asciz "n == i" .subsections_via_symbols
the_stack_data/540432.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, #36] add x0, sp, #40 adrp x1, l___const.main.vals@PAGE add x1, x1, l___const.main.vals@PAGEOFF mov x2, #80 bl _memcpy adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf str wzr, [sp, #32] b LBB0_1 LBB0_1: ; =>This Loop Header: Depth=1 ; Child Loop BB0_3 Depth 2 ldr w8, [sp, #32] subs w8, w8, #5 cset w8, ge tbnz w8, #0, LBB0_8 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 str wzr, [sp, #28] b LBB0_3 LBB0_3: ; Parent Loop BB0_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #28] 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, #32] add x8, sp, #40 add x8, x8, x9, lsl #4 ldrsw x9, [sp, #28] ldr s0, [x8, x9, lsl #2] fcvt d0, s0 mov x8, sp str d0, [x8] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf b LBB0_5 LBB0_5: ; in Loop: Header=BB0_3 Depth=2 ldr w8, [sp, #28] add w8, w8, #1 str w8, [sp, #28] b LBB0_3 LBB0_6: ; in Loop: Header=BB0_1 Depth=1 adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf b LBB0_7 LBB0_7: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #32] add w8, w8, #1 str w8, [sp, #32] b LBB0_1 LBB0_8: 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 adrp x1, l_.str.5@PAGE add x1, x1, l_.str.5@PAGEOFF bl _fopen str x0, [sp, #16] str wzr, [sp, #12] b LBB0_9 LBB0_9: ; =>This Loop Header: Depth=1 ; Child Loop BB0_11 Depth 2 ldr w8, [sp, #12] subs w8, w8, #5 cset w8, ge tbnz w8, #0, LBB0_16 b LBB0_10 LBB0_10: ; in Loop: Header=BB0_9 Depth=1 str wzr, [sp, #8] b LBB0_11 LBB0_11: ; Parent Loop BB0_9 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #8] subs w8, w8, #4 cset w8, ge tbnz w8, #0, LBB0_14 b LBB0_12 LBB0_12: ; in Loop: Header=BB0_11 Depth=2 ldr x0, [sp, #16] ldrsw x9, [sp, #12] add x8, sp, #40 add x8, x8, x9, lsl #4 ldrsw x9, [sp, #8] ldr s0, [x8, x9, lsl #2] fcvt d0, s0 mov x8, sp str d0, [x8] adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF bl _fprintf b LBB0_13 LBB0_13: ; in Loop: Header=BB0_11 Depth=2 ldr w8, [sp, #8] add w8, w8, #1 str w8, [sp, #8] b LBB0_11 LBB0_14: ; in Loop: Header=BB0_9 Depth=1 ldr x0, [sp, #16] adrp x1, l_.str.2@PAGE add x1, x1, l_.str.2@PAGEOFF bl _fprintf b LBB0_15 LBB0_15: ; in Loop: Header=BB0_9 Depth=1 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB0_9 LBB0_16: ldr x0, [sp, #16] bl _fclose ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_18 b LBB0_17 LBB0_17: bl ___stack_chk_fail LBB0_18: mov w0, #0 ldp x29, x30, [sp, #128] ; 16-byte Folded Reload add sp, sp, #144 ret .cfi_endproc ; -- End function .section __TEXT,__const .p2align 2 ; @__const.main.vals l___const.main.vals: .long 0x42b4999a ; float 90.300003 .long 0x42b96666 ; float 92.6999969 .long 0x42b4999a ; float 90.300003 .long 0x42c7999a ; float 99.800003 .long 0x42aa999a ; float 85.300003 .long 0x42b50000 ; float 90.5 .long 0x42ae999a ; float 87.300003 .long 0x42b5999a ; float 90.800003 .long 0x42ba6666 ; float 93.1999969 .long 0x42b0cccd ; float 88.4000015 .long 0x42bb999a ; float 93.800003 .long 0x42973333 ; float 75.5999985 .long 0x42a4cccd ; float 82.4000015 .long 0x42bf3333 ; float 95.5999984 .long 0x429c6666 ; float 78.1999969 .long 0x42b40000 ; float 90 .long 0x42bb0000 ; float 93.5 .long 0x42a06666 ; float 80.1999969 .long 0x42b9cccd ; float 92.9000015 .long 0x42bccccd ; float 94.4000015 .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "\nGrades\n" l_.str.1: ; @.str.1 .asciz "%7.1f" l_.str.2: ; @.str.2 .asciz "\n" l_.str.3: ; @.str.3 .asciz "\nFile written to is grades.bin a binary file.\n" l_.str.4: ; @.str.4 .asciz "grades.bin" l_.str.5: ; @.str.5 .asciz "wb" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $128, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -100(%rbp) leaq -96(%rbp), %rdi leaq l___const.main.vals(%rip), %rsi movl $80, %edx callq _memcpy leaq L_.str(%rip), %rdi movb $0, %al callq _printf movl $0, -104(%rbp) LBB0_1: ## =>This Loop Header: Depth=1 ## Child Loop BB0_3 Depth 2 cmpl $5, -104(%rbp) jge LBB0_8 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl $0, -108(%rbp) LBB0_3: ## Parent Loop BB0_1 Depth=1 ## => This Inner Loop Header: Depth=2 cmpl $4, -108(%rbp) jge LBB0_6 ## %bb.4: ## in Loop: Header=BB0_3 Depth=2 movslq -104(%rbp), %rcx leaq -96(%rbp), %rax shlq $4, %rcx addq %rcx, %rax movslq -108(%rbp), %rcx movss (%rax,%rcx,4), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 leaq L_.str.1(%rip), %rdi movb $1, %al callq _printf ## %bb.5: ## in Loop: Header=BB0_3 Depth=2 movl -108(%rbp), %eax addl $1, %eax movl %eax, -108(%rbp) jmp LBB0_3 LBB0_6: ## in Loop: Header=BB0_1 Depth=1 leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf ## %bb.7: ## in Loop: Header=BB0_1 Depth=1 movl -104(%rbp), %eax addl $1, %eax movl %eax, -104(%rbp) jmp LBB0_1 LBB0_8: leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf leaq L_.str.4(%rip), %rdi leaq L_.str.5(%rip), %rsi callq _fopen movq %rax, -120(%rbp) movl $0, -124(%rbp) LBB0_9: ## =>This Loop Header: Depth=1 ## Child Loop BB0_11 Depth 2 cmpl $5, -124(%rbp) jge LBB0_16 ## %bb.10: ## in Loop: Header=BB0_9 Depth=1 movl $0, -128(%rbp) LBB0_11: ## Parent Loop BB0_9 Depth=1 ## => This Inner Loop Header: Depth=2 cmpl $4, -128(%rbp) jge LBB0_14 ## %bb.12: ## in Loop: Header=BB0_11 Depth=2 movq -120(%rbp), %rdi movslq -124(%rbp), %rcx leaq -96(%rbp), %rax shlq $4, %rcx addq %rcx, %rax movslq -128(%rbp), %rcx movss (%rax,%rcx,4), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 leaq L_.str.1(%rip), %rsi movb $1, %al callq _fprintf ## %bb.13: ## in Loop: Header=BB0_11 Depth=2 movl -128(%rbp), %eax addl $1, %eax movl %eax, -128(%rbp) jmp LBB0_11 LBB0_14: ## in Loop: Header=BB0_9 Depth=1 movq -120(%rbp), %rdi leaq L_.str.2(%rip), %rsi movb $0, %al callq _fprintf ## %bb.15: ## in Loop: Header=BB0_9 Depth=1 movl -124(%rbp), %eax addl $1, %eax movl %eax, -124(%rbp) jmp LBB0_9 LBB0_16: movq -120(%rbp), %rdi callq _fclose movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_18 ## %bb.17: xorl %eax, %eax addq $128, %rsp popq %rbp retq LBB0_18: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__const .p2align 4 ## @__const.main.vals l___const.main.vals: .long 0x42b4999a ## float 90.300003 .long 0x42b96666 ## float 92.6999969 .long 0x42b4999a ## float 90.300003 .long 0x42c7999a ## float 99.800003 .long 0x42aa999a ## float 85.300003 .long 0x42b50000 ## float 90.5 .long 0x42ae999a ## float 87.300003 .long 0x42b5999a ## float 90.800003 .long 0x42ba6666 ## float 93.1999969 .long 0x42b0cccd ## float 88.4000015 .long 0x42bb999a ## float 93.800003 .long 0x42973333 ## float 75.5999985 .long 0x42a4cccd ## float 82.4000015 .long 0x42bf3333 ## float 95.5999984 .long 0x429c6666 ## float 78.1999969 .long 0x42b40000 ## float 90 .long 0x42bb0000 ## float 93.5 .long 0x42a06666 ## float 80.1999969 .long 0x42b9cccd ## float 92.9000015 .long 0x42bccccd ## float 94.4000015 .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "\nGrades\n" L_.str.1: ## @.str.1 .asciz "%7.1f" L_.str.2: ## @.str.2 .asciz "\n" L_.str.3: ## @.str.3 .asciz "\nFile written to is grades.bin a binary file.\n" L_.str.4: ## @.str.4 .asciz "grades.bin" L_.str.5: ## @.str.5 .asciz "wb" .subsections_via_symbols
the_stack_data/5894.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 str w8, [sp, #36] ; 4-byte Folded Spill stur wzr, [x29, #-4] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov x9, sp sub x8, x29, #8 str x8, [x9] sub x8, x29, #12 str x8, [x9, #8] sub x8, x29, #16 str x8, [x9, #16] 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 x0, [sp, #24] ; 8-byte Folded Reload mov x9, sp sub x8, x29, #20 str x8, [x9] sub x8, x29, #24 str x8, [x9, #8] sub x8, x29, #28 str x8, [x9, #16] bl _scanf ldur w8, [x29, #-8] mov w9, #3600 mul w8, w8, w9 ldur w11, [x29, #-12] mov w10, #60 mul w11, w11, w10 add w8, w8, w11 ldur w11, [x29, #-16] add w8, w8, w11 stur w8, [x29, #-32] ldur w8, [x29, #-20] mul w8, w8, w9 ldur w9, [x29, #-24] mul w9, w9, w10 add w8, w8, w9 ldur w9, [x29, #-28] add w8, w8, w9 stur w8, [x29, #-36] ldur w8, [x29, #-32] ldur w9, [x29, #-36] subs w0, w8, w9 bl _abs str w0, [sp, #40] ldr w9, [sp, #40] ; 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 w0, [sp, #36] ; 4-byte Folded Reload ldp x29, x30, [sp, #80] ; 16-byte Folded Reload add sp, sp, #96 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Nhap t1 theo thu tu gio phut giay\n" l_.str.1: ; @.str.1 .asciz "%d %d %d" l_.str.2: ; @.str.2 .asciz "Nhap t2 theo thu tu gio phut giay\n" l_.str.3: ; @.str.3 .asciz "Khoang cach thoi gian giua T1 va T2: %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 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 leaq -16(%rbp), %rcx movb $0, %al callq _scanf leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi leaq -20(%rbp), %rsi leaq -24(%rbp), %rdx leaq -28(%rbp), %rcx movb $0, %al callq _scanf imull $3600, -8(%rbp), %eax ## imm = 0xE10 imull $60, -12(%rbp), %ecx addl %ecx, %eax addl -16(%rbp), %eax movl %eax, -32(%rbp) imull $3600, -20(%rbp), %eax ## imm = 0xE10 imull $60, -24(%rbp), %ecx addl %ecx, %eax addl -28(%rbp), %eax movl %eax, -36(%rbp) movl -32(%rbp), %edi subl -36(%rbp), %edi callq _abs movl %eax, -40(%rbp) movl -40(%rbp), %esi leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf xorl %eax, %eax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Nhap t1 theo thu tu gio phut giay\n" L_.str.1: ## @.str.1 .asciz "%d %d %d" L_.str.2: ## @.str.2 .asciz "Nhap t2 theo thu tu gio phut giay\n" L_.str.3: ## @.str.3 .asciz "Khoang cach thoi gian giua T1 va T2: %d\n" .subsections_via_symbols
the_stack_data/76821.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/243892023.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, _ans@GOTPAGE ldr x8, [x8, _ans@GOTPAGEOFF] str x8, [sp, #24] ; 8-byte Folded Spill stur wzr, [x29, #-4] mov x9, sp sub x8, x29, #24 str x8, [x9] sub x8, x29, #32 str x8, [x9, #8] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _scanf mov x8, #1 str x8, [sp, #40] ldur x9, [x29, #-24] str x9, [sp, #32] stur x8, [x29, #-16] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldur x8, [x29, #-16] ldur x9, [x29, #-24] subs x8, x8, x9 cset w8, gt tbnz w8, #0, LBB0_7 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldur x8, [x29, #-24] ldur x9, [x29, #-16] subs x8, x8, x9 ldur x9, [x29, #-24] ldur x10, [x29, #-16] subs x9, x9, x10 subs x9, x9, #1 mul x8, x8, x9 mov x9, #2 sdiv x8, x8, x9 ldur x9, [x29, #-32] subs x8, x8, x9 cset w8, lt tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr x9, [sp, #24] ; 8-byte Folded Reload ldur x8, [x29, #-16] ldr x10, [sp, #40] add x11, x10, #1 str x11, [sp, #40] str x8, [x9, x10, lsl #3] b LBB0_5 LBB0_4: ; in Loop: Header=BB0_1 Depth=1 ldr x9, [sp, #24] ; 8-byte Folded Reload ldr x8, [sp, #32] ldr x10, [sp, #40] subs x10, x8, x10 ldur x8, [x29, #-32] subs x8, x8, x10 stur x8, [x29, #-32] ldur x8, [x29, #-16] ldr x10, [sp, #32] subs x11, x10, #1 str x11, [sp, #32] str x8, [x9, x10, lsl #3] b LBB0_5 LBB0_5: ; in Loop: Header=BB0_1 Depth=1 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_1 Depth=1 ldur x8, [x29, #-16] add x8, x8, #1 stur x8, [x29, #-16] b LBB0_1 LBB0_7: mov x8, #1 stur x8, [x29, #-16] b LBB0_8 LBB0_8: ; =>This Inner Loop Header: Depth=1 ldur x8, [x29, #-16] ldur x9, [x29, #-24] subs x8, x8, x9 cset w8, gt tbnz w8, #0, LBB0_11 b LBB0_9 LBB0_9: ; in Loop: Header=BB0_8 Depth=1 ldr x8, [sp, #24] ; 8-byte Folded Reload ldur x9, [x29, #-16] subs x9, x9, #1 cset w9, ne and w11, w9, #0x1 adrp x10, l_.str.2@PAGE add x10, x10, l_.str.2@PAGEOFF adrp x9, l_.str.1@PAGE add x9, x9, l_.str.1@PAGEOFF ands w11, w11, #0x1 csel x0, x9, x10, ne ldur x9, [x29, #-16] ldr x8, [x8, x9, lsl #3] mov x9, sp str x8, [x9] bl _printf b LBB0_10 LBB0_10: ; in Loop: Header=BB0_8 Depth=1 ldur x8, [x29, #-16] add x8, x8, #1 stur x8, [x29, #-16] b LBB0_8 LBB0_11: mov w0, #10 bl _putchar 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 "%lld%lld" .comm _ans,400072,3 ; @ans l_.str.1: ; @.str.1 .asciz " %lld" l_.str.2: ; @.str.2 .asciz "%lld" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movl $0, -4(%rbp) leaq L_.str(%rip), %rdi leaq -24(%rbp), %rsi leaq -32(%rbp), %rdx movb $0, %al callq _scanf movq $1, -40(%rbp) movq -24(%rbp), %rax movq %rax, -48(%rbp) movq $1, -16(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movq -16(%rbp), %rax cmpq -24(%rbp), %rax jg LBB0_7 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movq -24(%rbp), %rax subq -16(%rbp), %rax movq -24(%rbp), %rcx subq -16(%rbp), %rcx subq $1, %rcx imulq %rcx, %rax movl $2, %ecx cqto idivq %rcx cmpq -32(%rbp), %rax jl LBB0_4 ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movq -16(%rbp), %rdx movq -40(%rbp), %rcx movq %rcx, %rax addq $1, %rax movq %rax, -40(%rbp) movq _ans@GOTPCREL(%rip), %rax movq %rdx, (%rax,%rcx,8) jmp LBB0_5 LBB0_4: ## in Loop: Header=BB0_1 Depth=1 movq -48(%rbp), %rcx subq -40(%rbp), %rcx movq -32(%rbp), %rax subq %rcx, %rax movq %rax, -32(%rbp) movq -16(%rbp), %rdx movq -48(%rbp), %rcx movq %rcx, %rax addq $-1, %rax movq %rax, -48(%rbp) movq _ans@GOTPCREL(%rip), %rax movq %rdx, (%rax,%rcx,8) LBB0_5: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_6 LBB0_6: ## in Loop: Header=BB0_1 Depth=1 movq -16(%rbp), %rax addq $1, %rax movq %rax, -16(%rbp) jmp LBB0_1 LBB0_7: movq $1, -16(%rbp) LBB0_8: ## =>This Inner Loop Header: Depth=1 movq -16(%rbp), %rax cmpq -24(%rbp), %rax jg LBB0_11 ## %bb.9: ## in Loop: Header=BB0_8 Depth=1 movq -16(%rbp), %rcx leaq L_.str.2(%rip), %rdi leaq L_.str.1(%rip), %rax cmpq $1, %rcx cmovneq %rax, %rdi movq -16(%rbp), %rcx movq _ans@GOTPCREL(%rip), %rax movq (%rax,%rcx,8), %rsi movb $0, %al callq _printf ## %bb.10: ## in Loop: Header=BB0_8 Depth=1 movq -16(%rbp), %rax addq $1, %rax movq %rax, -16(%rbp) jmp LBB0_8 LBB0_11: movl $10, %edi callq _putchar xorl %eax, %eax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%lld%lld" .comm _ans,400072,4 ## @ans L_.str.1: ## @.str.1 .asciz " %lld" L_.str.2: ## @.str.2 .asciz "%lld" .subsections_via_symbols
the_stack_data/73627.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/4649.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/7949442.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _get_word ; -- Begin function get_word .p2align 2 _get_word: ; @get_word .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-16] stur w1, [x29, #-20] str x2, [sp, #16] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr x0, [sp, #16] bl _getc str w0, [sp, #8] adds w8, w0, #1 cset w8, eq mov w9, #0 str w9, [sp, #4] ; 4-byte Folded Spill tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldr w0, [sp, #8] bl _isalnum subs w8, w0, #0 cset w8, eq str w8, [sp, #4] ; 4-byte Folded Spill b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #4] ; 4-byte Folded Reload tbz w8, #0, LBB0_5 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_1 Depth=1 b LBB0_1 LBB0_5: ldr w8, [sp, #8] adds w8, w8, #1 cset w8, ne tbnz w8, #0, LBB0_7 b LBB0_6 LBB0_6: mov w8, #-1 stur w8, [x29, #-4] b LBB0_15 LBB0_7: str wzr, [sp, #12] b LBB0_8 LBB0_8: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #8] ldur x9, [x29, #-16] ldrsw x10, [sp, #12] strb w8, [x9, x10] ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] ldr w8, [sp, #12] ldur w9, [x29, #-20] subs w8, w8, w9 cset w8, lt tbnz w8, #0, LBB0_10 b LBB0_9 LBB0_9: adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] ldr x0, [x8] adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF bl _fprintf mov w0, #1 bl _exit LBB0_10: ; in Loop: Header=BB0_8 Depth=1 b LBB0_11 LBB0_11: ; in Loop: Header=BB0_8 Depth=1 ldr x0, [sp, #16] bl _getc str w0, [sp, #8] adds w8, w0, #1 cset w8, eq mov w9, #0 str w9, [sp] ; 4-byte Folded Spill tbnz w8, #0, LBB0_13 b LBB0_12 LBB0_12: ; in Loop: Header=BB0_8 Depth=1 ldr w0, [sp, #8] bl _isalnum subs w8, w0, #0 cset w8, ne str w8, [sp] ; 4-byte Folded Spill b LBB0_13 LBB0_13: ; in Loop: Header=BB0_8 Depth=1 ldr w8, [sp] ; 4-byte Folded Reload tbnz w8, #0, LBB0_8 b LBB0_14 LBB0_14: ldur x8, [x29, #-16] ldrsw x9, [sp, #12] add x8, x8, x9 strb wzr, [x8] ldr w8, [sp, #12] stur w8, [x29, #-4] b LBB0_15 LBB0_15: ldur w0, [x29, #-4] ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #320 .cfi_def_cfa_offset 320 stp x28, x27, [sp, #288] ; 16-byte Folded Spill stp x29, x30, [sp, #304] ; 16-byte Folded Spill add x29, sp, #304 .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, #20] b LBB1_1 LBB1_1: ; =>This Inner Loop Header: Depth=1 adrp x8, ___stdinp@GOTPAGE ldr x8, [x8, ___stdinp@GOTPAGEOFF] ldr x2, [x8] add x0, sp, #24 mov w1, #256 bl _get_word adds w8, w0, #1 cset w8, eq tbnz w8, #0, LBB1_3 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 mov x9, sp add x8, sp, #24 str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf b LBB1_1 LBB1_3: ldur x9, [x29, #-24] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB1_5 b LBB1_4 LBB1_4: bl ___stack_chk_fail LBB1_5: mov w0, #0 ldp x29, x30, [sp, #304] ; 16-byte Folded Reload ldp x28, x27, [sp, #288] ; 16-byte Folded Reload add sp, sp, #320 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "word too long.\n" l_.str.1: ; @.str.1 .asciz "<<%s>>\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _get_word ## -- Begin function get_word .p2align 4, 0x90 _get_word: ## @get_word .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movq %rdi, -16(%rbp) movl %esi, -20(%rbp) movq %rdx, -32(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movq -32(%rbp), %rdi callq _getc movl %eax, %ecx movl %ecx, -40(%rbp) xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $-1, %ecx movb %al, -41(%rbp) ## 1-byte Spill je LBB0_3 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl -40(%rbp), %edi callq _isalnum cmpl $0, %eax setne %al xorb $-1, %al movb %al, -41(%rbp) ## 1-byte Spill LBB0_3: ## in Loop: Header=BB0_1 Depth=1 movb -41(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB0_4 jmp LBB0_5 LBB0_4: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_1 LBB0_5: cmpl $-1, -40(%rbp) jne LBB0_7 ## %bb.6: movl $-1, -4(%rbp) jmp LBB0_15 LBB0_7: movl $0, -36(%rbp) LBB0_8: ## =>This Inner Loop Header: Depth=1 movl -40(%rbp), %eax movb %al, %dl movq -16(%rbp), %rax movslq -36(%rbp), %rcx movb %dl, (%rax,%rcx) movl -36(%rbp), %eax addl $1, %eax movl %eax, -36(%rbp) movl -36(%rbp), %eax cmpl -20(%rbp), %eax jl LBB0_10 ## %bb.9: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str(%rip), %rsi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _fprintf movl $1, %edi callq _exit LBB0_10: ## in Loop: Header=BB0_8 Depth=1 jmp LBB0_11 LBB0_11: ## in Loop: Header=BB0_8 Depth=1 movq -32(%rbp), %rdi callq _getc movl %eax, %ecx movl %ecx, -40(%rbp) xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $-1, %ecx movb %al, -42(%rbp) ## 1-byte Spill je LBB0_13 ## %bb.12: ## in Loop: Header=BB0_8 Depth=1 movl -40(%rbp), %edi callq _isalnum cmpl $0, %eax setne %al movb %al, -42(%rbp) ## 1-byte Spill LBB0_13: ## in Loop: Header=BB0_8 Depth=1 movb -42(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB0_8 ## %bb.14: movq -16(%rbp), %rax movslq -36(%rbp), %rcx movb $0, (%rax,%rcx) movl -36(%rbp), %eax movl %eax, -4(%rbp) LBB0_15: 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 $288, %rsp ## imm = 0x120 movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -276(%rbp) LBB1_1: ## =>This Inner Loop Header: Depth=1 leaq -272(%rbp), %rdi movq ___stdinp@GOTPCREL(%rip), %rax movq (%rax), %rdx movl $256, %esi ## imm = 0x100 callq _get_word cmpl $-1, %eax je LBB1_3 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 leaq -272(%rbp), %rsi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf jmp LBB1_1 LBB1_3: movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB1_5 ## %bb.4: xorl %eax, %eax addq $288, %rsp ## imm = 0x120 popq %rbp retq LBB1_5: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "word too long.\n" L_.str.1: ## @.str.1 .asciz "<<%s>>\n" .subsections_via_symbols
the_stack_data/72454.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _isUnderflow ; -- Begin function isUnderflow .p2align 2 _isUnderflow: ; @isUnderflow .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, _top@PAGE ldr w8, [x8, _top@PAGEOFF] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf b LBB0_2 LBB0_2: adrp x8, _top@PAGE ldr w8, [x8, _top@PAGEOFF] subs w8, w8, #0 cset w8, eq and w0, w8, #0x1 ldp x29, x30, [sp], #16 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .globl _isOverflow ; -- Begin function isOverflow .p2align 2 _isOverflow: ; @isOverflow .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, _top@PAGE ldr w8, [x8, _top@PAGEOFF] subs w8, w8, #100 cset w8, ne tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf b LBB1_2 LBB1_2: adrp x8, _top@PAGE ldr w8, [x8, _top@PAGEOFF] subs w8, w8, #100 cset w8, eq and w0, w8, #0x1 ldp x29, x30, [sp], #16 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .globl _pop ; -- Begin function pop .p2align 2 _pop: ; @pop .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 _isUnderflow subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB2_2 b LBB2_1 LBB2_1: b LBB2_3 LBB2_2: adrp x9, _top@PAGE ldr w8, [x9, _top@PAGEOFF] subs w8, w8, #1 str w8, [x9, _top@PAGEOFF] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf b LBB2_3 LBB2_3: ldp x29, x30, [sp], #16 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .globl _push ; -- Begin function push .p2align 2 _push: ; @push .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur w0, [x29, #-4] bl _isOverflow subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB3_2 b LBB3_1 LBB3_1: b LBB3_3 LBB3_2: ldur w8, [x29, #-4] adrp x11, _top@PAGE ldrsw x10, [x11, _top@PAGEOFF] mov x9, x10 add w9, w9, #1 str w9, [x11, _top@PAGEOFF] adrp x9, _stack@GOTPAGE ldr x9, [x9, _stack@GOTPAGEOFF] str w8, [x9, x10, lsl #2] b LBB3_3 LBB3_3: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _peek ; -- Begin function peek .p2align 2 _peek: ; @peek .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 bl _isUnderflow subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB4_2 b LBB4_1 LBB4_1: b LBB4_3 LBB4_2: adrp x8, _top@PAGE ldr w9, [x8, _top@PAGEOFF] subs w11, w9, #1 ldr w8, [x8, _top@PAGEOFF] subs w9, w8, #1 adrp x8, _stack@GOTPAGE ldr x8, [x8, _stack@GOTPAGEOFF] ldr w9, [x8, w9, sxtw #2] ; implicit-def: $x8 mov x8, x9 mov x9, sp ; implicit-def: $x10 mov x10, x11 str x10, [x9] str x8, [x9, #8] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf b LBB4_3 LBB4_3: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _dump ; -- Begin function dump .p2align 2 _dump: ; @dump .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 bl _isUnderflow subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB5_2 b LBB5_1 LBB5_1: b LBB5_6 LBB5_2: stur wzr, [x29, #-4] b LBB5_3 LBB5_3: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-4] adrp x9, _top@PAGE ldr w9, [x9, _top@PAGEOFF] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB5_6 b LBB5_4 LBB5_4: ; in Loop: Header=BB5_3 Depth=1 ldur w8, [x29, #-4] ; implicit-def: $x10 mov x10, x8 ldursw x9, [x29, #-4] adrp x8, _stack@GOTPAGE ldr x8, [x8, _stack@GOTPAGEOFF] 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.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf b LBB5_5 LBB5_5: ; in Loop: Header=BB5_3 Depth=1 ldur w8, [x29, #-4] add w8, w8, #1 stur w8, [x29, #-4] b LBB5_3 LBB5_6: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _clear ; -- Begin function clear .p2align 2 _clear: ; @clear .cfi_startproc ; %bb.0: adrp x8, _top@PAGE str wzr, [x8, _top@PAGEOFF] ret .cfi_endproc ; -- End function .globl _populate ; -- Begin function populate .p2align 2 _populate: ; @populate .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur w0, [x29, #-4] mov x0, #0 bl _time ; kill: def $w0 killed $w0 killed $x0 bl _srand str wzr, [sp, #8] b LBB7_1 LBB7_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #8] ldur w9, [x29, #-4] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB7_4 b LBB7_2 LBB7_2: ; in Loop: Header=BB7_1 Depth=1 bl _rand bl _push b LBB7_3 LBB7_3: ; in Loop: Header=BB7_1 Depth=1 ldr w8, [sp, #8] add w8, w8, #1 str w8, [sp, #8] b LBB7_1 LBB7_4: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf stur wzr, [x29, #-8] b LBB8_1 LBB8_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-8] subs w8, w8, #32 cset w8, ge tbnz w8, #0, LBB8_4 b LBB8_2 LBB8_2: ; in Loop: Header=BB8_1 Depth=1 adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf b LBB8_3 LBB8_3: ; in Loop: Header=BB8_1 Depth=1 ldur w8, [x29, #-8] add w8, w8, #1 stur w8, [x29, #-8] b LBB8_1 LBB8_4: mov w8, #-1 stur w8, [x29, #-12] 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 b LBB8_5 LBB8_5: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-12] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB8_27 b LBB8_6 LBB8_6: ; in Loop: Header=BB8_5 Depth=1 adrp x0, l_.str.8@PAGE add x0, x0, l_.str.8@PAGEOFF bl _printf mov x9, sp sub x8, x29, #12 str x8, [x9] adrp x0, l_.str.9@PAGE add x0, x0, l_.str.9@PAGEOFF bl _scanf ldur w8, [x29, #-12] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB8_8 b LBB8_7 LBB8_7: ; in Loop: Header=BB8_5 Depth=1 adrp x0, l_.str.10@PAGE add x0, x0, l_.str.10@PAGEOFF bl _printf mov x9, sp add x8, sp, #16 str x8, [x9] adrp x0, l_.str.9@PAGE add x0, x0, l_.str.9@PAGEOFF bl _scanf ldr w0, [sp, #16] bl _push adrp x0, l_.str.11@PAGE add x0, x0, l_.str.11@PAGEOFF bl _printf b LBB8_26 LBB8_8: ; in Loop: Header=BB8_5 Depth=1 ldur w8, [x29, #-12] subs w8, w8, #2 cset w8, ne tbnz w8, #0, LBB8_10 b LBB8_9 LBB8_9: ; in Loop: Header=BB8_5 Depth=1 bl _pop b LBB8_25 LBB8_10: ; in Loop: Header=BB8_5 Depth=1 ldur w8, [x29, #-12] subs w8, w8, #3 cset w8, ne tbnz w8, #0, LBB8_12 b LBB8_11 LBB8_11: ; in Loop: Header=BB8_5 Depth=1 bl _peek b LBB8_24 LBB8_12: ; in Loop: Header=BB8_5 Depth=1 ldur w8, [x29, #-12] subs w8, w8, #4 cset w8, ne tbnz w8, #0, LBB8_14 b LBB8_13 LBB8_13: ; in Loop: Header=BB8_5 Depth=1 bl _dump b LBB8_23 LBB8_14: ; in Loop: Header=BB8_5 Depth=1 ldur w8, [x29, #-12] subs w8, w8, #5 cset w8, ne tbnz w8, #0, LBB8_16 b LBB8_15 LBB8_15: ; in Loop: Header=BB8_5 Depth=1 bl _clear adrp x0, l_.str.12@PAGE add x0, x0, l_.str.12@PAGEOFF bl _printf b LBB8_22 LBB8_16: ; in Loop: Header=BB8_5 Depth=1 ldur w8, [x29, #-12] subs w8, w8, #6 cset w8, ne tbnz w8, #0, LBB8_18 b LBB8_17 LBB8_17: ; in Loop: Header=BB8_5 Depth=1 mov x9, sp mov x8, #100 str x8, [x9] adrp x0, l_.str.13@PAGE add x0, x0, l_.str.13@PAGEOFF bl _printf mov x9, sp add x8, sp, #12 str x8, [x9] adrp x0, l_.str.9@PAGE add x0, x0, l_.str.9@PAGEOFF bl _scanf adrp x0, l_.str.14@PAGE add x0, x0, l_.str.14@PAGEOFF bl _printf ldr w0, [sp, #12] bl _populate adrp x0, l_.str.15@PAGE add x0, x0, l_.str.15@PAGEOFF bl _printf b LBB8_21 LBB8_18: ; in Loop: Header=BB8_5 Depth=1 ldur w8, [x29, #-12] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB8_20 b LBB8_19 LBB8_19: ; in Loop: Header=BB8_5 Depth=1 adrp x0, l_.str.16@PAGE add x0, x0, l_.str.16@PAGEOFF bl _printf b LBB8_20 LBB8_20: ; in Loop: Header=BB8_5 Depth=1 b LBB8_21 LBB8_21: ; in Loop: Header=BB8_5 Depth=1 b LBB8_22 LBB8_22: ; in Loop: Header=BB8_5 Depth=1 b LBB8_23 LBB8_23: ; in Loop: Header=BB8_5 Depth=1 b LBB8_24 LBB8_24: ; in Loop: Header=BB8_5 Depth=1 b LBB8_25 LBB8_25: ; in Loop: Header=BB8_5 Depth=1 b LBB8_26 LBB8_26: ; in Loop: Header=BB8_5 Depth=1 b LBB8_5 LBB8_27: mov w0, #0 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _top ; @top .zerofill __DATA,__common,_top,4,2 .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "ERROR: Stack underflow." l_.str.1: ; @.str.1 .asciz "ERROR: Stack overflow." .comm _stack,400,2 ; @stack l_.str.2: ; @.str.2 .asciz "Element popped." l_.str.3: ; @.str.3 .asciz "stack[%d] => %d\n" l_.str.4: ; @.str.4 .asciz "Implementation of stack by array\n" l_.str.5: ; @.str.5 .asciz "=" l_.str.6: ; @.str.6 .asciz "\n\n\nSelect an option:\n\t1. Push\n\t2. Pop\n\t3. Peek\n\t" l_.str.7: ; @.str.7 .asciz "4. Dump\n\t5. Empty stack\n\t6. Populate stack\n\t0. Exit\n" l_.str.8: ; @.str.8 .asciz "\nYour choice:\t" l_.str.9: ; @.str.9 .asciz "%d" l_.str.10: ; @.str.10 .asciz "Element to push: " l_.str.11: ; @.str.11 .asciz "Element pushed." l_.str.12: ; @.str.12 .asciz "Stack emptied." l_.str.13: ; @.str.13 .asciz "Enter limit (MAX: %d):\t" l_.str.14: ; @.str.14 .asciz "Populating stack with random values..." l_.str.15: ; @.str.15 .asciz "\t\tDone" l_.str.16: ; @.str.16 .asciz "Invalid selection." .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _isUnderflow ## -- Begin function isUnderflow .p2align 4, 0x90 _isUnderflow: ## @isUnderflow .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp cmpl $0, _top(%rip) jne LBB0_2 ## %bb.1: leaq L_.str(%rip), %rdi movb $0, %al callq _printf LBB0_2: cmpl $0, _top(%rip) sete %al andb $1, %al movzbl %al, %eax popq %rbp retq .cfi_endproc ## -- End function .globl _isOverflow ## -- Begin function isOverflow .p2align 4, 0x90 _isOverflow: ## @isOverflow .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp cmpl $100, _top(%rip) jne LBB1_2 ## %bb.1: leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf LBB1_2: cmpl $100, _top(%rip) sete %al andb $1, %al movzbl %al, %eax popq %rbp retq .cfi_endproc ## -- End function .globl _pop ## -- Begin function pop .p2align 4, 0x90 _pop: ## @pop .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp callq _isUnderflow cmpl $0, %eax je LBB2_2 ## %bb.1: jmp LBB2_3 LBB2_2: movl _top(%rip), %eax addl $-1, %eax movl %eax, _top(%rip) leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf LBB2_3: popq %rbp retq .cfi_endproc ## -- End function .globl _push ## -- Begin function push .p2align 4, 0x90 _push: ## @push .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl %edi, -4(%rbp) callq _isOverflow cmpl $0, %eax je LBB3_2 ## %bb.1: jmp LBB3_3 LBB3_2: movl -4(%rbp), %edx movl _top(%rip), %eax movl %eax, %ecx addl $1, %ecx movl %ecx, _top(%rip) movslq %eax, %rcx movq _stack@GOTPCREL(%rip), %rax movl %edx, (%rax,%rcx,4) LBB3_3: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _peek ## -- Begin function peek .p2align 4, 0x90 _peek: ## @peek .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp callq _isUnderflow cmpl $0, %eax je LBB4_2 ## %bb.1: jmp LBB4_3 LBB4_2: movl _top(%rip), %esi subl $1, %esi movl _top(%rip), %eax subl $1, %eax movslq %eax, %rcx movq _stack@GOTPCREL(%rip), %rax movl (%rax,%rcx,4), %edx leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf LBB4_3: popq %rbp retq .cfi_endproc ## -- End function .globl _dump ## -- Begin function dump .p2align 4, 0x90 _dump: ## @dump .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp callq _isUnderflow cmpl $0, %eax je LBB5_2 ## %bb.1: jmp LBB5_6 LBB5_2: movl $0, -4(%rbp) LBB5_3: ## =>This Inner Loop Header: Depth=1 movl -4(%rbp), %eax cmpl _top(%rip), %eax jge LBB5_6 ## %bb.4: ## in Loop: Header=BB5_3 Depth=1 movl -4(%rbp), %esi movslq -4(%rbp), %rcx movq _stack@GOTPCREL(%rip), %rax movl (%rax,%rcx,4), %edx leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf ## %bb.5: ## in Loop: Header=BB5_3 Depth=1 movl -4(%rbp), %eax addl $1, %eax movl %eax, -4(%rbp) jmp LBB5_3 LBB5_6: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _clear ## -- Begin function clear .p2align 4, 0x90 _clear: ## @clear .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, _top(%rip) popq %rbp retq .cfi_endproc ## -- End function .globl _populate ## -- Begin function populate .p2align 4, 0x90 _populate: ## @populate .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl %edi, -4(%rbp) xorl %eax, %eax movl %eax, %edi callq _time movl %eax, %edi callq _srand movl $0, -8(%rbp) LBB7_1: ## =>This Inner Loop Header: Depth=1 movl -8(%rbp), %eax cmpl -4(%rbp), %eax jge LBB7_4 ## %bb.2: ## in Loop: Header=BB7_1 Depth=1 callq _rand movl %eax, %edi callq _push ## %bb.3: ## in Loop: Header=BB7_1 Depth=1 movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) jmp LBB7_1 LBB7_4: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl $0, -4(%rbp) leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf movl $0, -8(%rbp) LBB8_1: ## =>This Inner Loop Header: Depth=1 cmpl $32, -8(%rbp) jge LBB8_4 ## %bb.2: ## in Loop: Header=BB8_1 Depth=1 leaq L_.str.5(%rip), %rdi movb $0, %al callq _printf ## %bb.3: ## in Loop: Header=BB8_1 Depth=1 movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) jmp LBB8_1 LBB8_4: movl $-1, -12(%rbp) leaq L_.str.6(%rip), %rdi movb $0, %al callq _printf leaq L_.str.7(%rip), %rdi movb $0, %al callq _printf LBB8_5: ## =>This Inner Loop Header: Depth=1 cmpl $0, -12(%rbp) je LBB8_27 ## %bb.6: ## in Loop: Header=BB8_5 Depth=1 leaq L_.str.8(%rip), %rdi movb $0, %al callq _printf leaq L_.str.9(%rip), %rdi leaq -12(%rbp), %rsi movb $0, %al callq _scanf cmpl $1, -12(%rbp) jne LBB8_8 ## %bb.7: ## in Loop: Header=BB8_5 Depth=1 leaq L_.str.10(%rip), %rdi movb $0, %al callq _printf leaq L_.str.9(%rip), %rdi leaq -16(%rbp), %rsi movb $0, %al callq _scanf movl -16(%rbp), %edi callq _push leaq L_.str.11(%rip), %rdi movb $0, %al callq _printf jmp LBB8_26 LBB8_8: ## in Loop: Header=BB8_5 Depth=1 cmpl $2, -12(%rbp) jne LBB8_10 ## %bb.9: ## in Loop: Header=BB8_5 Depth=1 callq _pop jmp LBB8_25 LBB8_10: ## in Loop: Header=BB8_5 Depth=1 cmpl $3, -12(%rbp) jne LBB8_12 ## %bb.11: ## in Loop: Header=BB8_5 Depth=1 callq _peek jmp LBB8_24 LBB8_12: ## in Loop: Header=BB8_5 Depth=1 cmpl $4, -12(%rbp) jne LBB8_14 ## %bb.13: ## in Loop: Header=BB8_5 Depth=1 callq _dump jmp LBB8_23 LBB8_14: ## in Loop: Header=BB8_5 Depth=1 cmpl $5, -12(%rbp) jne LBB8_16 ## %bb.15: ## in Loop: Header=BB8_5 Depth=1 callq _clear leaq L_.str.12(%rip), %rdi movb $0, %al callq _printf jmp LBB8_22 LBB8_16: ## in Loop: Header=BB8_5 Depth=1 cmpl $6, -12(%rbp) jne LBB8_18 ## %bb.17: ## in Loop: Header=BB8_5 Depth=1 leaq L_.str.13(%rip), %rdi movl $100, %esi movb $0, %al callq _printf leaq L_.str.9(%rip), %rdi leaq -20(%rbp), %rsi movb $0, %al callq _scanf leaq L_.str.14(%rip), %rdi movb $0, %al callq _printf movl -20(%rbp), %edi callq _populate leaq L_.str.15(%rip), %rdi movb $0, %al callq _printf jmp LBB8_21 LBB8_18: ## in Loop: Header=BB8_5 Depth=1 cmpl $0, -12(%rbp) je LBB8_20 ## %bb.19: ## in Loop: Header=BB8_5 Depth=1 leaq L_.str.16(%rip), %rdi movb $0, %al callq _printf LBB8_20: ## in Loop: Header=BB8_5 Depth=1 jmp LBB8_21 LBB8_21: ## in Loop: Header=BB8_5 Depth=1 jmp LBB8_22 LBB8_22: ## in Loop: Header=BB8_5 Depth=1 jmp LBB8_23 LBB8_23: ## in Loop: Header=BB8_5 Depth=1 jmp LBB8_24 LBB8_24: ## in Loop: Header=BB8_5 Depth=1 jmp LBB8_25 LBB8_25: ## in Loop: Header=BB8_5 Depth=1 jmp LBB8_26 LBB8_26: ## in Loop: Header=BB8_5 Depth=1 jmp LBB8_5 LBB8_27: xorl %eax, %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _top ## @top .zerofill __DATA,__common,_top,4,2 .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "ERROR: Stack underflow." L_.str.1: ## @.str.1 .asciz "ERROR: Stack overflow." .comm _stack,400,4 ## @stack L_.str.2: ## @.str.2 .asciz "Element popped." L_.str.3: ## @.str.3 .asciz "stack[%d] => %d\n" L_.str.4: ## @.str.4 .asciz "Implementation of stack by array\n" L_.str.5: ## @.str.5 .asciz "=" L_.str.6: ## @.str.6 .asciz "\n\n\nSelect an option:\n\t1. Push\n\t2. Pop\n\t3. Peek\n\t" L_.str.7: ## @.str.7 .asciz "4. Dump\n\t5. Empty stack\n\t6. Populate stack\n\t0. Exit\n" L_.str.8: ## @.str.8 .asciz "\nYour choice:\t" L_.str.9: ## @.str.9 .asciz "%d" L_.str.10: ## @.str.10 .asciz "Element to push: " L_.str.11: ## @.str.11 .asciz "Element pushed." L_.str.12: ## @.str.12 .asciz "Stack emptied." L_.str.13: ## @.str.13 .asciz "Enter limit (MAX: %d):\t" L_.str.14: ## @.str.14 .asciz "Populating stack with random values..." L_.str.15: ## @.str.15 .asciz "\t\tDone" L_.str.16: ## @.str.16 .asciz "Invalid selection." .subsections_via_symbols
the_stack_data/76700559.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _fact ; -- Begin function fact .p2align 2 _fact: ; @fact .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str w0, [sp, #8] ldr w8, [sp, #8] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: mov w8, #1 stur w8, [x29, #-4] b LBB0_3 LBB0_2: ldr w8, [sp, #8] str w8, [sp, #4] ; 4-byte Folded Spill ldr w8, [sp, #8] subs w0, w8, #1 bl _fact ldr w8, [sp, #4] ; 4-byte Folded Reload mul w8, w8, w0 stur w8, [x29, #-4] b LBB0_3 LBB0_3: ldur w0, [x29, #-4] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #0 str w8, [sp, #16] ; 4-byte Folded Spill stur wzr, [x29, #-4] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov x9, sp sub x8, x29, #8 str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf ldur w0, [x29, #-8] bl _fact scvtf s0, w0 stur s0, [x29, #-12] ldur w8, [x29, #-8] ; implicit-def: $x9 mov x9, x8 ldur s0, [x29, #-12] fcvt d0, s0 mov x8, sp str x9, [x8] str d0, [x8, #8] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf ldr w0, [sp, #16] ; 4-byte Folded Reload ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Enter the no" l_.str.1: ; @.str.1 .asciz "%d" l_.str.2: ; @.str.2 .asciz "The factorial of %d is %f" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _fact ## -- Begin function fact .p2align 4, 0x90 _fact: ## @fact .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl %edi, -8(%rbp) cmpl $0, -8(%rbp) jne LBB0_2 ## %bb.1: movl $1, -4(%rbp) jmp LBB0_3 LBB0_2: movl -8(%rbp), %eax movl %eax, -12(%rbp) ## 4-byte Spill movl -8(%rbp), %edi subl $1, %edi callq _fact movl %eax, %ecx movl -12(%rbp), %eax ## 4-byte Reload imull %ecx, %eax movl %eax, -4(%rbp) LBB0_3: movl -4(%rbp), %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) leaq L_.str(%rip), %rdi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi leaq -8(%rbp), %rsi movb $0, %al callq _scanf movl -8(%rbp), %edi callq _fact cvtsi2ss %eax, %xmm0 movss %xmm0, -12(%rbp) movl -8(%rbp), %esi movss -12(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 leaq L_.str.2(%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 no" L_.str.1: ## @.str.1 .asciz "%d" L_.str.2: ## @.str.2 .asciz "The factorial of %d is %f" .subsections_via_symbols
the_stack_data/76701616.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/59511926.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #112 .cfi_def_cfa_offset 112 stp x29, x30, [sp, #96] ; 16-byte Folded Spill add x29, sp, #96 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #0 stur w8, [x29, #-44] ; 4-byte Folded Spill stur wzr, [x29, #-4] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _puts sub x8, x29, #8 mov w9, #100 stur w9, [x29, #-8] stur x8, [x29, #-16] sub x8, x29, #20 mov w9, #200 stur w9, [x29, #-20] stur x8, [x29, #-32] ldur x8, [x29, #-32] stur x8, [x29, #-40] ldur x8, [x29, #-32] ldr w8, [x8] ldur x9, [x29, #-16] str w8, [x9] ldur x8, [x29, #-16] ldr w8, [x8] ; implicit-def: $x13 mov x13, x8 ldur x8, [x29, #-32] ldr w8, [x8] ; implicit-def: $x12 mov x12, x8 ldur x11, [x29, #-32] ldur x10, [x29, #-40] ldur x8, [x29, #-40] ldr w9, [x8] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x13, [x9] str x12, [x9, #8] str x11, [x9, #16] str x10, [x9, #24] str x8, [x9, #32] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf ldur w0, [x29, #-44] ; 4-byte Folded Reload ldp x29, x30, [sp, #96] ; 16-byte Folded Reload add sp, sp, #112 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "!!!Hello World!!!" l_.str.1: ; @.str.1 .asciz "%d-----%d-----%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 $48, %rsp movl $0, -4(%rbp) leaq L_.str(%rip), %rdi callq _puts movl $100, -8(%rbp) leaq -8(%rbp), %rax movq %rax, -16(%rbp) movl $200, -20(%rbp) leaq -20(%rbp), %rax movq %rax, -32(%rbp) movq -32(%rbp), %rax movq %rax, -40(%rbp) movq -32(%rbp), %rax movl (%rax), %ecx movq -16(%rbp), %rax movl %ecx, (%rax) movq -16(%rbp), %rax movl (%rax), %esi movq -32(%rbp), %rax movl (%rax), %edx movq -32(%rbp), %rcx movq -40(%rbp), %r8 movq -40(%rbp), %rax movl (%rax), %r9d leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf xorl %eax, %eax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "!!!Hello World!!!" L_.str.1: ## @.str.1 .asciz "%d-----%d-----%d----%d-----%d" .subsections_via_symbols
the_stack_data/111445.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #128 .cfi_def_cfa_offset 128 stp x29, x30, [sp, #112] ; 16-byte Folded Spill add x29, sp, #112 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] stur w0, [x29, #-8] stur x1, [x29, #-16] mov w8, #5 stur w8, [x29, #-20] bl _fork stur w0, [x29, #-24] ldur w8, [x29, #-24] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB0_7 b LBB0_1 LBB0_1: bl _fork stur w0, [x29, #-24] ldur w8, [x29, #-24] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: bl _getpid mov x9, sp ; implicit-def: $x8 mov x8, x0 str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf b LBB0_6 LBB0_3: ldur w8, [x29, #-20] add w8, w8, #2 stur w8, [x29, #-20] ldur w9, [x29, #-20] ; implicit-def: $x8 mov x8, x9 stur x8, [x29, #-40] ; 8-byte Folded Spill bl _getpid stur w0, [x29, #-28] ; 4-byte Folded Spill bl _getppid ldur x8, [x29, #-40] ; 8-byte Folded Reload ldur w10, [x29, #-28] ; 4-byte Folded Reload mov x9, sp str x8, [x9] ; implicit-def: $x8 mov x8, x10 str x8, [x9, #8] ; implicit-def: $x8 mov x8, x0 str x8, [x9, #16] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf bl _fork stur w0, [x29, #-24] ldur w8, [x29, #-24] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_5 b LBB0_4 LBB0_4: ldur w8, [x29, #-20] add w8, w8, #2 stur w8, [x29, #-20] ldur w9, [x29, #-20] ; implicit-def: $x8 mov x8, x9 str x8, [sp, #56] ; 8-byte Folded Spill bl _getpid stur w0, [x29, #-44] ; 4-byte Folded Spill bl _getppid ldr x8, [sp, #56] ; 8-byte Folded Reload ldur w10, [x29, #-44] ; 4-byte Folded Reload mov x9, sp str x8, [x9] ; implicit-def: $x8 mov x8, x10 str x8, [x9, #8] ; implicit-def: $x8 mov x8, x0 str x8, [x9, #16] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf b LBB0_5 LBB0_5: mov x0, #0 bl _wait b LBB0_6 LBB0_6: b LBB0_11 LBB0_7: ldur w8, [x29, #-20] add w8, w8, #1 stur w8, [x29, #-20] ldur w9, [x29, #-20] ; implicit-def: $x8 mov x8, x9 str x8, [sp, #40] ; 8-byte Folded Spill bl _getpid str w0, [sp, #52] ; 4-byte Folded Spill bl _getppid ldr x8, [sp, #40] ; 8-byte Folded Reload ldr w10, [sp, #52] ; 4-byte Folded Reload mov x9, sp str x8, [x9] ; implicit-def: $x8 mov x8, x10 str x8, [x9, #8] ; implicit-def: $x8 mov x8, x0 str x8, [x9, #16] adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf bl _fork stur w0, [x29, #-24] ldur w8, [x29, #-24] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB0_9 b LBB0_8 LBB0_8: b LBB0_10 LBB0_9: ldur w8, [x29, #-20] add w8, w8, #2 stur w8, [x29, #-20] ldur w9, [x29, #-20] ; implicit-def: $x8 mov x8, x9 str x8, [sp, #24] ; 8-byte Folded Spill bl _getpid str w0, [sp, #36] ; 4-byte Folded Spill bl _getppid ldr x8, [sp, #24] ; 8-byte Folded Reload ldr w10, [sp, #36] ; 4-byte Folded Reload mov x9, sp str x8, [x9] ; implicit-def: $x8 mov x8, x10 str x8, [x9, #8] ; implicit-def: $x8 mov x8, x0 str x8, [x9, #16] adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf b LBB0_10 LBB0_10: mov x0, #0 bl _wait b LBB0_11 LBB0_11: mov x0, #0 bl _wait adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _system mov w0, #0 bl _exit .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "\nSOY EL ABUELO %d \n" l_.str.1: ; @.str.1 .asciz "\n" l_.str.2: ; @.str.2 .asciz "VAR-7 %d hijo 2 %d del padre %d \n" l_.str.3: ; @.str.3 .asciz "VAR-9 %d nieto 2 %d del padre %d \n" l_.str.4: ; @.str.4 .asciz "VAR-6 %d hijo 1 %d del padre %d \n" l_.str.5: ; @.str.5 .asciz "VAR-8 %d nieto 1 %d del padre %d \n" l_.str.6: ; @.str.6 .asciz "ps -l" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $64, %rsp movl $0, -4(%rbp) movl %edi, -8(%rbp) movq %rsi, -16(%rbp) movl $5, -20(%rbp) callq _fork movl %eax, -24(%rbp) cmpl $0, -24(%rbp) jle LBB0_7 ## %bb.1: callq _fork movl %eax, -24(%rbp) cmpl $0, -24(%rbp) jle LBB0_3 ## %bb.2: callq _getpid movl %eax, %esi leaq L_.str(%rip), %rdi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf jmp LBB0_6 LBB0_3: movl -20(%rbp), %eax addl $2, %eax movl %eax, -20(%rbp) movl -20(%rbp), %eax movl %eax, -32(%rbp) ## 4-byte Spill callq _getpid movl %eax, -28(%rbp) ## 4-byte Spill callq _getppid movl -32(%rbp), %esi ## 4-byte Reload movl -28(%rbp), %edx ## 4-byte Reload movl %eax, %ecx leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf callq _fork movl %eax, -24(%rbp) cmpl $0, -24(%rbp) jne LBB0_5 ## %bb.4: movl -20(%rbp), %eax addl $2, %eax movl %eax, -20(%rbp) movl -20(%rbp), %eax movl %eax, -40(%rbp) ## 4-byte Spill callq _getpid movl %eax, -36(%rbp) ## 4-byte Spill callq _getppid movl -40(%rbp), %esi ## 4-byte Reload movl -36(%rbp), %edx ## 4-byte Reload movl %eax, %ecx leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf LBB0_5: xorl %eax, %eax movl %eax, %edi callq _wait LBB0_6: jmp LBB0_11 LBB0_7: movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) movl -20(%rbp), %eax movl %eax, -48(%rbp) ## 4-byte Spill callq _getpid movl %eax, -44(%rbp) ## 4-byte Spill callq _getppid movl -48(%rbp), %esi ## 4-byte Reload movl -44(%rbp), %edx ## 4-byte Reload movl %eax, %ecx leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf callq _fork movl %eax, -24(%rbp) cmpl $0, -24(%rbp) jle LBB0_9 ## %bb.8: jmp LBB0_10 LBB0_9: movl -20(%rbp), %eax addl $2, %eax movl %eax, -20(%rbp) movl -20(%rbp), %eax movl %eax, -56(%rbp) ## 4-byte Spill callq _getpid movl %eax, -52(%rbp) ## 4-byte Spill callq _getppid movl -56(%rbp), %esi ## 4-byte Reload movl -52(%rbp), %edx ## 4-byte Reload movl %eax, %ecx leaq L_.str.5(%rip), %rdi movb $0, %al callq _printf LBB0_10: xorl %eax, %eax movl %eax, %edi callq _wait LBB0_11: xorl %eax, %eax movl %eax, -60(%rbp) ## 4-byte Spill movl %eax, %edi callq _wait leaq L_.str.6(%rip), %rdi callq _system movl -60(%rbp), %edi ## 4-byte Reload callq _exit .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "\nSOY EL ABUELO %d \n" L_.str.1: ## @.str.1 .asciz "\n" L_.str.2: ## @.str.2 .asciz "VAR-7 %d hijo 2 %d del padre %d \n" L_.str.3: ## @.str.3 .asciz "VAR-9 %d nieto 2 %d del padre %d \n" L_.str.4: ## @.str.4 .asciz "VAR-6 %d hijo 1 %d del padre %d \n" L_.str.5: ## @.str.5 .asciz "VAR-8 %d nieto 1 %d del padre %d \n" L_.str.6: ## @.str.6 .asciz "ps -l" .subsections_via_symbols
the_stack_data/35526.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill .cfi_def_cfa_offset 16 mov x29, sp .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 sub sp, sp, #80 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] stur wzr, [x29, #-12] stur wzr, [x29, #-20] sub sp, sp, #16 mov x9, sp sub x8, x29, #16 str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _scanf add sp, sp, #16 ldur w8, [x29, #-16] ; kill: def $x8 killed $w8 mov x9, sp stur x9, [x29, #-40] mov x9, #10 mul x9, x8, x9 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, #-48] stur wzr, [x29, #-24] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-24] ldur w9, [x29, #-16] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_13 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldur x8, [x29, #-56] ; 8-byte Folded Reload ldursw x9, [x29, #-24] mov x10, #10 mul x9, x9, x10 add x8, x8, x9 sub sp, sp, #16 mov x9, sp str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf add sp, sp, #16 ldur w8, [x29, #-20] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_11 b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldur x8, [x29, #-56] ; 8-byte Folded Reload ldursw x9, [x29, #-24] mov x10, #10 mul x9, x9, x10 ldrsb w8, [x8, x9] subs w8, w8, #79 cset w8, ne tbnz w8, #0, LBB0_6 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_1 Depth=1 ldur x8, [x29, #-56] ; 8-byte Folded Reload ldursw x9, [x29, #-24] mov x10, #10 mul x9, x9, x10 add x8, x8, x9 ldrsb w8, [x8, #1] subs w8, w8, #79 cset w8, ne tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_1 Depth=1 ldur x9, [x29, #-56] ; 8-byte Folded Reload mov w8, #1 stur w8, [x29, #-20] ldursw x8, [x29, #-24] mov x11, #10 mul x10, x8, x11 mov x8, x9 add x10, x8, x10 mov w8, #43 strb w8, [x10, #1] ldursw x10, [x29, #-24] mul x10, x10, x11 add x9, x9, x10 strb w8, [x9] b LBB0_10 LBB0_6: ; in Loop: Header=BB0_1 Depth=1 ldur x8, [x29, #-56] ; 8-byte Folded Reload ldursw x9, [x29, #-24] mov x10, #10 mul x9, x9, x10 add x8, x8, x9 ldrsb w8, [x8, #3] subs w8, w8, #79 cset w8, ne tbnz w8, #0, LBB0_9 b LBB0_7 LBB0_7: ; in Loop: Header=BB0_1 Depth=1 ldur x8, [x29, #-56] ; 8-byte Folded Reload ldursw x9, [x29, #-24] mov x10, #10 mul x9, x9, x10 add x8, x8, x9 ldrsb w8, [x8, #4] subs w8, w8, #79 cset w8, ne tbnz w8, #0, LBB0_9 b LBB0_8 LBB0_8: ; in Loop: Header=BB0_1 Depth=1 ldur x9, [x29, #-56] ; 8-byte Folded Reload mov w8, #1 stur w8, [x29, #-20] ldursw x8, [x29, #-24] mov x11, #10 mul x10, x8, x11 mov x8, x9 add x10, x8, x10 mov w8, #43 strb w8, [x10, #4] ldursw x10, [x29, #-24] mul x10, x10, x11 add x9, x9, x10 strb w8, [x9, #3] b LBB0_9 LBB0_9: ; in Loop: Header=BB0_1 Depth=1 b LBB0_10 LBB0_10: ; in Loop: Header=BB0_1 Depth=1 b LBB0_11 LBB0_11: ; in Loop: Header=BB0_1 Depth=1 b LBB0_12 LBB0_12: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-24] add w8, w8, #1 stur w8, [x29, #-24] b LBB0_1 LBB0_13: ldur w8, [x29, #-20] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_19 b LBB0_14 LBB0_14: adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf stur wzr, [x29, #-24] b LBB0_15 LBB0_15: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-24] ldur w9, [x29, #-16] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_18 b LBB0_16 LBB0_16: ; in Loop: Header=BB0_15 Depth=1 ldur x8, [x29, #-56] ; 8-byte Folded Reload ldursw x9, [x29, #-24] mov x10, #10 mul x9, x9, x10 add x8, x8, x9 sub sp, sp, #16 mov x9, sp str x8, [x9] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf add sp, sp, #16 b LBB0_17 LBB0_17: ; in Loop: Header=BB0_15 Depth=1 ldur w8, [x29, #-24] add w8, w8, #1 stur w8, [x29, #-24] b LBB0_15 LBB0_18: b LBB0_20 LBB0_19: adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf b LBB0_20 LBB0_20: stur wzr, [x29, #-12] ldur x8, [x29, #-40] 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_22 b LBB0_21 LBB0_21: bl ___stack_chk_fail LBB0_22: ldur w0, [x29, #-68] ; 4-byte Folded Reload mov sp, x29 ldp x29, x30, [sp], #16 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d" l_.str.1: ; @.str.1 .asciz "%s" l_.str.2: ; @.str.2 .asciz "YES\n" l_.str.3: ; @.str.3 .asciz "%s\n" l_.str.4: ; @.str.4 .asciz "NO\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $80, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -12(%rbp) movl $0, -20(%rbp) leaq L_.str(%rip), %rdi xorl %eax, %eax ## kill: def $al killed $al killed $eax leaq -16(%rbp), %rsi callq _scanf movl -16(%rbp), %eax ## kill: def $rax killed $eax movq %rax, -64(%rbp) ## 8-byte Spill movq %rsp, %rcx movq %rcx, -40(%rbp) addq %rax, %rax leaq (%rax,%rax,4), %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, -48(%rbp) movl $0, -24(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movl -24(%rbp), %eax cmpl -16(%rbp), %eax jge LBB0_13 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movq -56(%rbp), %rsi ## 8-byte Reload movslq -24(%rbp), %rax imulq $10, %rax, %rax addq %rax, %rsi leaq L_.str.1(%rip), %rdi movb $0, %al callq _scanf cmpl $0, -20(%rbp) jne LBB0_11 ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movq -56(%rbp), %rax ## 8-byte Reload movslq -24(%rbp), %rcx imulq $10, %rcx, %rcx addq %rcx, %rax movsbl (%rax), %eax cmpl $79, %eax jne LBB0_6 ## %bb.4: ## in Loop: Header=BB0_1 Depth=1 movq -56(%rbp), %rax ## 8-byte Reload movslq -24(%rbp), %rcx imulq $10, %rcx, %rcx addq %rcx, %rax movsbl 1(%rax), %eax cmpl $79, %eax jne LBB0_6 ## %bb.5: ## in Loop: Header=BB0_1 Depth=1 movq -56(%rbp), %rax ## 8-byte Reload movl $1, -20(%rbp) movslq -24(%rbp), %rcx imulq $10, %rcx, %rdx movq %rax, %rcx addq %rdx, %rcx movb $43, 1(%rcx) movslq -24(%rbp), %rcx imulq $10, %rcx, %rcx addq %rcx, %rax movb $43, (%rax) jmp LBB0_10 LBB0_6: ## in Loop: Header=BB0_1 Depth=1 movq -56(%rbp), %rax ## 8-byte Reload movslq -24(%rbp), %rcx imulq $10, %rcx, %rcx addq %rcx, %rax movsbl 3(%rax), %eax cmpl $79, %eax jne LBB0_9 ## %bb.7: ## in Loop: Header=BB0_1 Depth=1 movq -56(%rbp), %rax ## 8-byte Reload movslq -24(%rbp), %rcx imulq $10, %rcx, %rcx addq %rcx, %rax movsbl 4(%rax), %eax cmpl $79, %eax jne LBB0_9 ## %bb.8: ## in Loop: Header=BB0_1 Depth=1 movq -56(%rbp), %rax ## 8-byte Reload movl $1, -20(%rbp) movslq -24(%rbp), %rcx imulq $10, %rcx, %rdx movq %rax, %rcx addq %rdx, %rcx movb $43, 4(%rcx) movslq -24(%rbp), %rcx imulq $10, %rcx, %rcx addq %rcx, %rax movb $43, 3(%rax) LBB0_9: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_10 LBB0_10: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_11 LBB0_11: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_12 LBB0_12: ## in Loop: Header=BB0_1 Depth=1 movl -24(%rbp), %eax addl $1, %eax movl %eax, -24(%rbp) jmp LBB0_1 LBB0_13: cmpl $0, -20(%rbp) je LBB0_19 ## %bb.14: leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf movl $0, -24(%rbp) LBB0_15: ## =>This Inner Loop Header: Depth=1 movl -24(%rbp), %eax cmpl -16(%rbp), %eax jge LBB0_18 ## %bb.16: ## in Loop: Header=BB0_15 Depth=1 movq -56(%rbp), %rsi ## 8-byte Reload movslq -24(%rbp), %rax imulq $10, %rax, %rax addq %rax, %rsi leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf ## %bb.17: ## in Loop: Header=BB0_15 Depth=1 movl -24(%rbp), %eax addl $1, %eax movl %eax, -24(%rbp) jmp LBB0_15 LBB0_18: jmp LBB0_20 LBB0_19: leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf LBB0_20: movl $0, -12(%rbp) movq -40(%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_22 ## %bb.21: movl -68(%rbp), %eax ## 4-byte Reload movq %rbp, %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" L_.str.1: ## @.str.1 .asciz "%s" L_.str.2: ## @.str.2 .asciz "YES\n" L_.str.3: ## @.str.3 .asciz "%s\n" L_.str.4: ## @.str.4 .asciz "NO\n" .subsections_via_symbols
the_stack_data/247017949.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] 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 ldur w0, [x29, #-8] ldur w1, [x29, #-12] ldr w2, [sp, #16] bl _prime str w0, [sp, #12] ldr w8, [sp, #12] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf b LBB0_3 LBB0_2: adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf b LBB0_3 LBB0_3: ldur w0, [x29, #-4] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _prime ; -- Begin function prime .p2align 2 _prime: ; @prime .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #8] str w1, [sp, #4] str w2, [sp] mov w8, #2 str w8, [sp, #4] b LBB1_1 LBB1_1: ldr w8, [sp, #4] ldr w9, [sp, #8] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB1_5 b LBB1_2 LBB1_2: ldr w8, [sp, #8] ldr w10, [sp, #4] sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB1_4 b LBB1_3 LBB1_3: ldr w8, [sp] add w8, w8, #1 str w8, [sp] b LBB1_4 LBB1_4: b LBB1_5 LBB1_5: ldr w8, [sp] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB1_7 b LBB1_6 LBB1_6: mov w8, #1 str w8, [sp, #12] b LBB1_8 LBB1_7: str wzr, [sp, #12] b LBB1_8 LBB1_8: ldr w0, [sp, #12] add sp, sp, #16 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 "A prime number" l_.str.3: ; @.str.3 .asciz "Not a prime number" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl $0, -4(%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 movl -8(%rbp), %edi movl -12(%rbp), %esi movl -16(%rbp), %edx callq _prime movl %eax, -20(%rbp) cmpl $1, -20(%rbp) jne LBB0_2 ## %bb.1: leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf jmp LBB0_3 LBB0_2: leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf LBB0_3: movl -4(%rbp), %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _prime ## -- Begin function prime .p2align 4, 0x90 _prime: ## @prime .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, -8(%rbp) movl %esi, -12(%rbp) movl %edx, -16(%rbp) movl $2, -12(%rbp) ## %bb.1: movl -12(%rbp), %eax cmpl -8(%rbp), %eax jg LBB1_5 ## %bb.2: movl -8(%rbp), %eax cltd idivl -12(%rbp) cmpl $0, %edx jne LBB1_4 ## %bb.3: movl -16(%rbp), %eax addl $1, %eax movl %eax, -16(%rbp) LBB1_4: jmp LBB1_5 LBB1_5: cmpl $0, -16(%rbp) jne LBB1_7 ## %bb.6: movl $1, -4(%rbp) jmp LBB1_8 LBB1_7: movl $0, -4(%rbp) LBB1_8: movl -4(%rbp), %eax 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 "A prime number" L_.str.3: ## @.str.3 .asciz "Not a prime number" .subsections_via_symbols
the_stack_data/1266827.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _single_mode_dummy_function ; -- Begin function single_mode_dummy_function .p2align 2 _single_mode_dummy_function: ; @single_mode_dummy_function .cfi_startproc ; %bb.0: ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _single_mode_dummy_function ## -- Begin function single_mode_dummy_function .p2align 4, 0x90 _single_mode_dummy_function: ## @single_mode_dummy_function .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/57950129.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _cond_wait ; -- Begin function cond_wait .p2align 2 _cond_wait: ; @cond_wait .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #8] str x1, [sp] ldr x0, [sp] bl _pthread_mutex_lock ldr x0, [sp, #8] ldr x1, [sp] bl _pthread_cond_wait ldr x0, [sp] bl _pthread_mutex_unlock ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _noreturn ; -- Begin function noreturn .p2align 2 _noreturn: ; @noreturn .cfi_startproc ; %bb.0: sub sp, sp, #160 .cfi_def_cfa_offset 160 stp x29, x30, [sp, #144] ; 16-byte Folded Spill add x29, sp, #144 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] add x0, sp, #72 str x0, [sp, #8] ; 8-byte Folded Spill mov x1, #0 str x1, [sp] ; 8-byte Folded Spill bl _pthread_mutex_init ldr x1, [sp] ; 8-byte Folded Reload add x0, sp, #24 str x0, [sp, #16] ; 8-byte Folded Spill bl _pthread_cond_init ldr x1, [sp, #8] ; 8-byte Folded Reload ldr x0, [sp, #16] ; 8-byte Folded Reload bl _cond_wait ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: bl ___stack_chk_fail LBB1_2: ldp x29, x30, [sp, #144] ; 16-byte Folded Reload add sp, sp, #160 ret .cfi_endproc ; -- End function .globl _forever_pthread ; -- Begin function forever_pthread .p2align 2 _forever_pthread: ; @forever_pthread .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp] bl _noreturn ldr x0, [sp, #8] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _break_me ; -- Begin function break_me .p2align 2 _break_me: ; @break_me .cfi_startproc ; %bb.0: ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] mov x0, sp mov x3, #0 mov x1, x3 adrp x2, _forever_pthread@PAGE add x2, x2, _forever_pthread@PAGEOFF bl _pthread_create b LBB4_1 LBB4_1: ; =>This Inner Loop Header: Depth=1 mov w0, #2 bl _sleep bl _break_me b LBB4_1 .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _cond_wait ## -- Begin function cond_wait .p2align 4, 0x90 _cond_wait: ## @cond_wait .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) movq -16(%rbp), %rdi callq _pthread_mutex_lock movq -8(%rbp), %rdi movq -16(%rbp), %rsi callq _pthread_cond_wait movq -16(%rbp), %rdi callq _pthread_mutex_unlock addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _noreturn ## -- Begin function noreturn .p2align 4, 0x90 _noreturn: ## @noreturn .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $128, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) leaq -72(%rbp), %rdi xorl %eax, %eax movl %eax, %esi callq _pthread_mutex_init leaq -120(%rbp), %rdi xorl %eax, %eax movl %eax, %esi callq _pthread_cond_init leaq -120(%rbp), %rdi leaq -72(%rbp), %rsi callq _cond_wait movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB1_2 ## %bb.1: addq $128, %rsp popq %rbp retq LBB1_2: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _forever_pthread ## -- Begin function forever_pthread .p2align 4, 0x90 _forever_pthread: ## @forever_pthread .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -16(%rbp) callq _noreturn movq -8(%rbp), %rax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _break_me ## -- Begin function break_me .p2align 4, 0x90 _break_me: ## @break_me .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) leaq -16(%rbp), %rdi xorl %eax, %eax movl %eax, %ecx leaq _forever_pthread(%rip), %rdx movq %rcx, %rsi callq _pthread_create LBB4_1: ## =>This Inner Loop Header: Depth=1 movl $2, %edi callq _sleep callq _break_me jmp LBB4_1 .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/102443.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/706511.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] str w2, [sp] ldr w8, [sp, #8] ldr w9, [sp, #4] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB0_4 b LBB0_1 LBB0_1: ldr w8, [sp, #8] ldr w9, [sp] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: ldr w8, [sp, #8] str w8, [sp, #12] b LBB0_7 LBB0_3: ldr w8, [sp] str w8, [sp, #12] b LBB0_7 LBB0_4: ldr w8, [sp, #4] ldr w9, [sp] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: ldr w8, [sp, #4] str w8, [sp, #12] b LBB0_7 LBB0_6: ldr w8, [sp] str w8, [sp, #12] b LBB0_7 LBB0_7: 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: 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, #46448 movk w9, #158, lsl #16 adrp x16, ___chkstk_darwin@GOTPAGE ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF] blr x16 sub sp, sp, #2539, lsl #12 ; =10399744 sub sp, sp, #1392 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] str wzr, [sp, #84] b LBB1_1 LBB1_1: ; =>This Loop Header: Depth=1 ; Child Loop BB1_5 Depth 2 ; Child Loop BB1_12 Depth 2 ; Child Loop BB1_16 Depth 2 ; Child Loop BB1_18 Depth 3 mov x9, sp add x8, sp, #80 str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _scanf adds w8, w0, #1 cset w8, eq mov w9, #0 str w9, [sp, #40] ; 4-byte Folded Spill tbnz w8, #0, LBB1_3 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #80] subs w8, w8, #0 cset w8, ne str w8, [sp, #40] ; 4-byte Folded Spill b LBB1_3 LBB1_3: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #40] ; 4-byte Folded Reload tbz w8, #0, LBB1_29 b LBB1_4 LBB1_4: ; in Loop: Header=BB1_1 Depth=1 add x0, sp, #1269, lsl #12 ; =5197824 add x0, x0, #2784 mov x1, #23176 movk x1, #79, lsl #16 bl _bzero str wzr, [sp, #56] mov w8, #1 str w8, [sp, #76] b LBB1_5 LBB1_5: ; Parent Loop BB1_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #76] ldr w9, [sp, #80] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB1_11 b LBB1_6 LBB1_6: ; in Loop: Header=BB1_5 Depth=2 mov x9, sp add x8, sp, #64 str x8, [x9] add x8, sp, #60 str x8, [x9, #8] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf ldr w8, [sp, #56] ldr w9, [sp, #60] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB1_8 b LBB1_7 LBB1_7: ; in Loop: Header=BB1_5 Depth=2 ldr w8, [sp, #56] str w8, [sp, #36] ; 4-byte Folded Spill b LBB1_9 LBB1_8: ; in Loop: Header=BB1_5 Depth=2 ldr w8, [sp, #60] str w8, [sp, #36] ; 4-byte Folded Spill b LBB1_9 LBB1_9: ; in Loop: Header=BB1_5 Depth=2 ldr w8, [sp, #36] ; 4-byte Folded Reload str w8, [sp, #56] ldrsw x8, [sp, #64] mov x9, #6824 movk x9, #6, lsl #16 mul x9, x8, x9 add x8, sp, #1269, lsl #12 ; =5197824 add x8, x8, #2784 add x8, x8, x9 ldrsw x9, [sp, #60] add x9, x8, x9, lsl #2 ldr w8, [x9] add w8, w8, #1 str w8, [x9] b LBB1_10 LBB1_10: ; in Loop: Header=BB1_5 Depth=2 ldr w8, [sp, #76] add w8, w8, #1 str w8, [sp, #76] b LBB1_5 LBB1_11: ; in Loop: Header=BB1_1 Depth=1 str wzr, [sp, #64] b LBB1_12 LBB1_12: ; Parent Loop BB1_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #64] subs w8, w8, #11 cset w8, gt tbnz w8, #0, LBB1_15 b LBB1_13 LBB1_13: ; in Loop: Header=BB1_12 Depth=2 ldrsw x8, [sp, #64] mov x9, #6824 movk x9, #6, lsl #16 mul x9, x8, x9 add x8, sp, #88 add x9, x8, x9 ldr w8, [sp, #56] add w10, w8, #1 mov w8, #0 str w8, [x9, w10, sxtw #2] b LBB1_14 LBB1_14: ; in Loop: Header=BB1_12 Depth=2 ldr w8, [sp, #64] add w8, w8, #1 str w8, [sp, #64] b LBB1_12 LBB1_15: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #56] str w8, [sp, #60] b LBB1_16 LBB1_16: ; Parent Loop BB1_1 Depth=1 ; => This Loop Header: Depth=2 ; Child Loop BB1_18 Depth 3 ldr w8, [sp, #60] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB1_28 b LBB1_17 LBB1_17: ; in Loop: Header=BB1_16 Depth=2 str wzr, [sp, #64] b LBB1_18 LBB1_18: ; Parent Loop BB1_1 Depth=1 ; Parent Loop BB1_16 Depth=2 ; => This Inner Loop Header: Depth=3 ldr w8, [sp, #64] subs w8, w8, #10 cset w8, gt tbnz w8, #0, LBB1_26 b LBB1_19 LBB1_19: ; in Loop: Header=BB1_18 Depth=3 ldr w8, [sp, #64] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB1_24 b LBB1_20 LBB1_20: ; in Loop: Header=BB1_18 Depth=3 ldrsw x8, [sp, #64] mov x10, #6824 movk x10, #6, lsl #16 mul x9, x8, x10 add x11, sp, #88 mov x8, x11 add x8, x8, x9 ldr w9, [sp, #60] add w9, w9, #1 ldr w8, [x8, w9, sxtw #2] ldrsw x9, [sp, #64] mul x10, x9, x10 add x12, sp, #1269, lsl #12 ; =5197824 add x12, x12, #2784 mov x9, x12 add x9, x9, x10 ldrsw x10, [sp, #60] ldr w9, [x9, x10, lsl #2] add w8, w8, w9 ldr w9, [sp, #64] add w9, w9, #1 mov w10, #6824 movk w10, #6, lsl #16 smaddl x9, w9, w10, x11 ldr w10, [sp, #60] add w10, w10, #1 ldr w9, [x9, w10, sxtw #2] ldr w10, [sp, #64] add w10, w10, #1 mov w11, #6824 movk w11, #6, lsl #16 smaddl x10, w10, w11, x12 ldrsw x11, [sp, #60] ldr w10, [x10, x11, lsl #2] add w9, w9, w10 subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB1_22 b LBB1_21 LBB1_21: ; in Loop: Header=BB1_18 Depth=3 ldrsw x8, [sp, #64] mov x10, #6824 movk x10, #6, lsl #16 mul x9, x8, x10 add x8, sp, #88 add x8, x8, x9 ldr w9, [sp, #60] add w9, w9, #1 ldr w8, [x8, w9, sxtw #2] ldrsw x9, [sp, #64] mul x10, x9, x10 add x9, sp, #1269, lsl #12 ; =5197824 add x9, x9, #2784 add x9, x9, x10 ldrsw x10, [sp, #60] ldr w9, [x9, x10, lsl #2] add w8, w8, w9 str w8, [sp, #32] ; 4-byte Folded Spill b LBB1_23 LBB1_22: ; in Loop: Header=BB1_18 Depth=3 ldr w8, [sp, #64] add w8, w8, #1 add x10, sp, #88 mov w9, #6824 movk w9, #6, lsl #16 smaddl x8, w8, w9, x10 ldr w9, [sp, #60] add w9, w9, #1 ldr w8, [x8, w9, sxtw #2] ldr w9, [sp, #64] add w9, w9, #1 add x11, sp, #1269, lsl #12 ; =5197824 add x11, x11, #2784 mov w10, #6824 movk w10, #6, lsl #16 smaddl x9, w9, w10, x11 ldrsw x10, [sp, #60] ldr w9, [x9, x10, lsl #2] add w8, w8, w9 str w8, [sp, #32] ; 4-byte Folded Spill b LBB1_23 LBB1_23: ; in Loop: Header=BB1_18 Depth=3 ldr w8, [sp, #32] ; 4-byte Folded Reload ldrsw x9, [sp, #64] mov x10, #6824 movk x10, #6, lsl #16 mul x10, x9, x10 add x9, sp, #88 add x9, x9, x10 ldrsw x10, [sp, #60] str w8, [x9, x10, lsl #2] b LBB1_25 LBB1_24: ; in Loop: Header=BB1_18 Depth=3 ldr w8, [sp, #64] subs w8, w8, #1 mov x12, #6824 movk x12, #6, lsl #16 str x12, [sp, #16] ; 8-byte Folded Spill add x10, sp, #1269, lsl #12 ; =5197824 add x10, x10, #2784 mov x11, x10 mov w9, #6824 movk w9, #6, lsl #16 smaddl x8, w8, w9, x11 ldrsw x9, [sp, #60] ldr w8, [x8, x9, lsl #2] ldr w9, [sp, #64] subs w9, w9, #1 add x11, sp, #88 str x11, [sp, #24] ; 8-byte Folded Spill mov x14, x11 mov w13, #6824 movk w13, #6, lsl #16 smaddl x9, w9, w13, x14 ldr w13, [sp, #60] add w13, w13, #1 ldr w9, [x9, w13, sxtw #2] add w0, w8, w9 ldrsw x8, [sp, #64] mul x9, x8, x12 mov x8, x10 add x8, x8, x9 ldrsw x9, [sp, #60] ldr w8, [x8, x9, lsl #2] ldrsw x9, [sp, #64] mul x12, x9, x12 mov x9, x11 add x9, x9, x12 ldr w12, [sp, #60] add w12, w12, #1 ldr w9, [x9, w12, sxtw #2] add w1, w8, w9 ldr w8, [sp, #64] add w8, w8, #1 mov w9, #6824 movk w9, #6, lsl #16 smaddl x8, w8, w9, x10 ldrsw x9, [sp, #60] ldr w8, [x8, x9, lsl #2] ldr w9, [sp, #64] add w9, w9, #1 mov w10, #6824 movk w10, #6, lsl #16 smaddl x9, w9, w10, x11 ldr w10, [sp, #60] add w10, w10, #1 ldr w9, [x9, w10, sxtw #2] add w2, w8, w9 bl _max ldr x10, [sp, #16] ; 8-byte Folded Reload ldr x8, [sp, #24] ; 8-byte Folded Reload ldrsw x9, [sp, #64] mul x9, x9, x10 add x8, x8, x9 ldrsw x9, [sp, #60] str w0, [x8, x9, lsl #2] b LBB1_25 LBB1_25: ; in Loop: Header=BB1_18 Depth=3 ldr w8, [sp, #64] add w8, w8, #1 str w8, [sp, #64] b LBB1_18 LBB1_26: ; in Loop: Header=BB1_16 Depth=2 b LBB1_27 LBB1_27: ; in Loop: Header=BB1_16 Depth=2 ldr w8, [sp, #60] subs w8, w8, #1 str w8, [sp, #60] b LBB1_16 LBB1_28: ; in Loop: Header=BB1_1 Depth=1 mov x9, #34124 movk x9, #30, lsl #16 add x8, sp, #88 ldr w9, [x8, x9] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf b LBB1_1 LBB1_29: 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_31 b LBB1_30 LBB1_30: bl ___stack_chk_fail LBB1_31: mov w0, #0 add sp, sp, #2539, lsl #12 ; =10399744 add sp, sp, #1392 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x28, x27, [sp], #32 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d" l_.str.1: ; @.str.1 .asciz "%d %d" l_.str.2: ; @.str.2 .asciz "%d\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _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 %edx, -16(%rbp) movl -8(%rbp), %eax cmpl -12(%rbp), %eax jle LBB0_4 ## %bb.1: movl -8(%rbp), %eax cmpl -16(%rbp), %eax jle LBB0_3 ## %bb.2: movl -8(%rbp), %eax movl %eax, -4(%rbp) jmp LBB0_7 LBB0_3: movl -16(%rbp), %eax movl %eax, -4(%rbp) jmp LBB0_7 LBB0_4: movl -12(%rbp), %eax cmpl -16(%rbp), %eax jle LBB0_6 ## %bb.5: movl -12(%rbp), %eax movl %eax, -4(%rbp) jmp LBB0_7 LBB0_6: movl -16(%rbp), %eax movl %eax, -4(%rbp) LBB0_7: 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 movl $10401120, %eax ## imm = 0x9EB560 callq ____chkstk_darwin subq %rax, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -10401060(%rbp) LBB1_1: ## =>This Loop Header: Depth=1 ## Child Loop BB1_5 Depth 2 ## Child Loop BB1_12 Depth 2 ## Child Loop BB1_16 Depth 2 ## Child Loop BB1_18 Depth 3 leaq L_.str(%rip), %rdi leaq -10401064(%rbp), %rsi movb $0, %al callq _scanf movl %eax, %ecx xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $-1, %ecx movb %al, -10401101(%rbp) ## 1-byte Spill je LBB1_3 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 cmpl $0, -10401064(%rbp) setne %al movb %al, -10401101(%rbp) ## 1-byte Spill LBB1_3: ## in Loop: Header=BB1_1 Depth=1 movb -10401101(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB1_4 jmp LBB1_29 LBB1_4: ## in Loop: Header=BB1_1 Depth=1 leaq -5200528(%rbp), %rdi xorl %esi, %esi movl $5200520, %edx ## imm = 0x4F5A88 callq _memset movl $0, -10401088(%rbp) movl $1, -10401068(%rbp) LBB1_5: ## Parent Loop BB1_1 Depth=1 ## => This Inner Loop Header: Depth=2 movl -10401068(%rbp), %eax cmpl -10401064(%rbp), %eax jg LBB1_11 ## %bb.6: ## in Loop: Header=BB1_5 Depth=2 leaq L_.str.1(%rip), %rdi leaq -10401080(%rbp), %rsi leaq -10401084(%rbp), %rdx movb $0, %al callq _scanf movl -10401088(%rbp), %eax cmpl -10401084(%rbp), %eax jle LBB1_8 ## %bb.7: ## in Loop: Header=BB1_5 Depth=2 movl -10401088(%rbp), %eax movl %eax, -10401108(%rbp) ## 4-byte Spill jmp LBB1_9 LBB1_8: ## in Loop: Header=BB1_5 Depth=2 movl -10401084(%rbp), %eax movl %eax, -10401108(%rbp) ## 4-byte Spill LBB1_9: ## in Loop: Header=BB1_5 Depth=2 movl -10401108(%rbp), %eax ## 4-byte Reload movl %eax, -10401088(%rbp) movslq -10401080(%rbp), %rcx leaq -5200528(%rbp), %rax imulq $400040, %rcx, %rcx ## imm = 0x61AA8 addq %rcx, %rax movslq -10401084(%rbp), %rcx movl (%rax,%rcx,4), %edx addl $1, %edx movl %edx, (%rax,%rcx,4) ## %bb.10: ## in Loop: Header=BB1_5 Depth=2 movl -10401068(%rbp), %eax addl $1, %eax movl %eax, -10401068(%rbp) jmp LBB1_5 LBB1_11: ## in Loop: Header=BB1_1 Depth=1 movl $0, -10401080(%rbp) LBB1_12: ## Parent Loop BB1_1 Depth=1 ## => This Inner Loop Header: Depth=2 cmpl $11, -10401080(%rbp) jg LBB1_15 ## %bb.13: ## in Loop: Header=BB1_12 Depth=2 movslq -10401080(%rbp), %rcx leaq -10401056(%rbp), %rax imulq $400040, %rcx, %rcx ## imm = 0x61AA8 addq %rcx, %rax movl -10401088(%rbp), %ecx addl $1, %ecx movslq %ecx, %rcx movl $0, (%rax,%rcx,4) ## %bb.14: ## in Loop: Header=BB1_12 Depth=2 movl -10401080(%rbp), %eax addl $1, %eax movl %eax, -10401080(%rbp) jmp LBB1_12 LBB1_15: ## in Loop: Header=BB1_1 Depth=1 movl -10401088(%rbp), %eax movl %eax, -10401084(%rbp) LBB1_16: ## Parent Loop BB1_1 Depth=1 ## => This Loop Header: Depth=2 ## Child Loop BB1_18 Depth 3 cmpl $0, -10401084(%rbp) jle LBB1_28 ## %bb.17: ## in Loop: Header=BB1_16 Depth=2 movl $0, -10401080(%rbp) LBB1_18: ## Parent Loop BB1_1 Depth=1 ## Parent Loop BB1_16 Depth=2 ## => This Inner Loop Header: Depth=3 cmpl $10, -10401080(%rbp) jg LBB1_26 ## %bb.19: ## in Loop: Header=BB1_18 Depth=3 cmpl $0, -10401080(%rbp) jne LBB1_24 ## %bb.20: ## in Loop: Header=BB1_18 Depth=3 movslq -10401080(%rbp), %rcx leaq -10401056(%rbp), %rax imulq $400040, %rcx, %rcx ## imm = 0x61AA8 addq %rcx, %rax movl -10401084(%rbp), %ecx addl $1, %ecx movslq %ecx, %rcx movl (%rax,%rcx,4), %eax movslq -10401080(%rbp), %rdx leaq -5200528(%rbp), %rcx imulq $400040, %rdx, %rdx ## imm = 0x61AA8 addq %rdx, %rcx movslq -10401084(%rbp), %rdx addl (%rcx,%rdx,4), %eax movl -10401080(%rbp), %ecx addl $1, %ecx movslq %ecx, %rdx leaq -10401056(%rbp), %rcx imulq $400040, %rdx, %rdx ## imm = 0x61AA8 addq %rdx, %rcx movl -10401084(%rbp), %edx addl $1, %edx movslq %edx, %rdx movl (%rcx,%rdx,4), %ecx movl -10401080(%rbp), %edx addl $1, %edx movslq %edx, %rsi leaq -5200528(%rbp), %rdx imulq $400040, %rsi, %rsi ## imm = 0x61AA8 addq %rsi, %rdx movslq -10401084(%rbp), %rsi addl (%rdx,%rsi,4), %ecx cmpl %ecx, %eax jle LBB1_22 ## %bb.21: ## in Loop: Header=BB1_18 Depth=3 movslq -10401080(%rbp), %rcx leaq -10401056(%rbp), %rax imulq $400040, %rcx, %rcx ## imm = 0x61AA8 addq %rcx, %rax movl -10401084(%rbp), %ecx addl $1, %ecx movslq %ecx, %rcx movl (%rax,%rcx,4), %eax movslq -10401080(%rbp), %rdx leaq -5200528(%rbp), %rcx imulq $400040, %rdx, %rdx ## imm = 0x61AA8 addq %rdx, %rcx movslq -10401084(%rbp), %rdx addl (%rcx,%rdx,4), %eax movl %eax, -10401112(%rbp) ## 4-byte Spill jmp LBB1_23 LBB1_22: ## in Loop: Header=BB1_18 Depth=3 movl -10401080(%rbp), %eax addl $1, %eax movslq %eax, %rcx leaq -10401056(%rbp), %rax imulq $400040, %rcx, %rcx ## imm = 0x61AA8 addq %rcx, %rax movl -10401084(%rbp), %ecx addl $1, %ecx movslq %ecx, %rcx movl (%rax,%rcx,4), %eax movl -10401080(%rbp), %ecx addl $1, %ecx movslq %ecx, %rdx leaq -5200528(%rbp), %rcx imulq $400040, %rdx, %rdx ## imm = 0x61AA8 addq %rdx, %rcx movslq -10401084(%rbp), %rdx addl (%rcx,%rdx,4), %eax movl %eax, -10401112(%rbp) ## 4-byte Spill LBB1_23: ## in Loop: Header=BB1_18 Depth=3 movl -10401112(%rbp), %edx ## 4-byte Reload movslq -10401080(%rbp), %rcx leaq -10401056(%rbp), %rax imulq $400040, %rcx, %rcx ## imm = 0x61AA8 addq %rcx, %rax movslq -10401084(%rbp), %rcx movl %edx, (%rax,%rcx,4) jmp LBB1_25 LBB1_24: ## in Loop: Header=BB1_18 Depth=3 movl -10401080(%rbp), %eax subl $1, %eax movslq %eax, %rcx leaq -5200528(%rbp), %rax imulq $400040, %rcx, %rcx ## imm = 0x61AA8 addq %rcx, %rax movslq -10401084(%rbp), %rcx movl (%rax,%rcx,4), %edi movl -10401080(%rbp), %eax subl $1, %eax movslq %eax, %rcx leaq -10401056(%rbp), %rax imulq $400040, %rcx, %rcx ## imm = 0x61AA8 addq %rcx, %rax movl -10401084(%rbp), %ecx addl $1, %ecx movslq %ecx, %rcx addl (%rax,%rcx,4), %edi movslq -10401080(%rbp), %rcx leaq -5200528(%rbp), %rax imulq $400040, %rcx, %rcx ## imm = 0x61AA8 addq %rcx, %rax movslq -10401084(%rbp), %rcx movl (%rax,%rcx,4), %esi movslq -10401080(%rbp), %rcx leaq -10401056(%rbp), %rax imulq $400040, %rcx, %rcx ## imm = 0x61AA8 addq %rcx, %rax movl -10401084(%rbp), %ecx addl $1, %ecx movslq %ecx, %rcx addl (%rax,%rcx,4), %esi movl -10401080(%rbp), %eax addl $1, %eax movslq %eax, %rcx leaq -5200528(%rbp), %rax imulq $400040, %rcx, %rcx ## imm = 0x61AA8 addq %rcx, %rax movslq -10401084(%rbp), %rcx movl (%rax,%rcx,4), %edx movl -10401080(%rbp), %eax addl $1, %eax movslq %eax, %rcx leaq -10401056(%rbp), %rax imulq $400040, %rcx, %rcx ## imm = 0x61AA8 addq %rcx, %rax movl -10401084(%rbp), %ecx addl $1, %ecx movslq %ecx, %rcx addl (%rax,%rcx,4), %edx callq _max movl %eax, %edx movslq -10401080(%rbp), %rcx leaq -10401056(%rbp), %rax imulq $400040, %rcx, %rcx ## imm = 0x61AA8 addq %rcx, %rax movslq -10401084(%rbp), %rcx movl %edx, (%rax,%rcx,4) LBB1_25: ## in Loop: Header=BB1_18 Depth=3 movl -10401080(%rbp), %eax addl $1, %eax movl %eax, -10401080(%rbp) jmp LBB1_18 LBB1_26: ## in Loop: Header=BB1_16 Depth=2 jmp LBB1_27 LBB1_27: ## in Loop: Header=BB1_16 Depth=2 movl -10401084(%rbp), %eax addl $-1, %eax movl %eax, -10401084(%rbp) jmp LBB1_16 LBB1_28: ## in Loop: Header=BB1_1 Depth=1 movl -8400852(%rbp), %esi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf jmp LBB1_1 LBB1_29: movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB1_31 ## %bb.30: xorl %eax, %eax addq $10401120, %rsp ## imm = 0x9EB560 popq %rbp retq LBB1_31: 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 %d" L_.str.2: ## @.str.2 .asciz "%d\n" .subsections_via_symbols
the_stack_data/140766825.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _bsearch ; -- Begin function bsearch .p2align 2 _bsearch: ; @bsearch .cfi_startproc ; %bb.0: sub sp, sp, #112 .cfi_def_cfa_offset 112 stp x29, x30, [sp, #96] ; 16-byte Folded Spill add x29, sp, #96 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-16] stur x1, [x29, #-24] stur x2, [x29, #-32] stur x3, [x29, #-40] str x4, [sp, #48] str xzr, [sp, #40] ldur x8, [x29, #-32] subs x8, x8, #1 str x8, [sp, #32] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #40] ldr x9, [sp, #32] subs x8, x8, x9 cset w8, gt tbnz w8, #0, LBB0_9 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #40] ldr x9, [sp, #32] add x8, x8, x9 mov x9, #2 sdiv x8, x8, x9 str x8, [sp, #24] ldur x8, [x29, #-24] ldr x9, [sp, #24] ldur x10, [x29, #-40] mul x9, x9, x10 add x8, x8, x9 str x8, [sp, #16] ldr x8, [sp, #48] ldur x0, [x29, #-16] ldr x1, [sp, #16] blr x8 str w0, [sp, #12] ldr w8, [sp, #12] subs w8, w8, #0 cset w8, ge tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #24] subs x8, x8, #1 str x8, [sp, #32] b LBB0_8 LBB0_4: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #12] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #24] add x8, x8, #1 str x8, [sp, #40] b LBB0_7 LBB0_6: ldr x8, [sp, #16] stur x8, [x29, #-8] b LBB0_10 LBB0_7: ; in Loop: Header=BB0_1 Depth=1 b LBB0_8 LBB0_8: ; in Loop: Header=BB0_1 Depth=1 b LBB0_1 LBB0_9: ; kill: def $x8 killed $xzr stur xzr, [x29, #-8] b LBB0_10 LBB0_10: ldur x0, [x29, #-8] 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 _bsearch ## -- Begin function bsearch .p2align 4, 0x90 _bsearch: ## @bsearch .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $96, %rsp movq %rdi, -16(%rbp) movq %rsi, -24(%rbp) movq %rdx, -32(%rbp) movq %rcx, -40(%rbp) movq %r8, -48(%rbp) movq $0, -56(%rbp) movq -32(%rbp), %rax subq $1, %rax movq %rax, -64(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movq -56(%rbp), %rax cmpq -64(%rbp), %rax jg LBB0_9 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movq -56(%rbp), %rax addq -64(%rbp), %rax movl $2, %ecx cqto idivq %rcx movq %rax, -72(%rbp) movq -24(%rbp), %rax movq -72(%rbp), %rcx imulq -40(%rbp), %rcx addq %rcx, %rax movq %rax, -80(%rbp) movq -48(%rbp), %rax movq -16(%rbp), %rdi movq -80(%rbp), %rsi callq *%rax movl %eax, -84(%rbp) cmpl $0, -84(%rbp) jge LBB0_4 ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movq -72(%rbp), %rax subq $1, %rax movq %rax, -64(%rbp) jmp LBB0_8 LBB0_4: ## in Loop: Header=BB0_1 Depth=1 cmpl $0, -84(%rbp) jle LBB0_6 ## %bb.5: ## in Loop: Header=BB0_1 Depth=1 movq -72(%rbp), %rax addq $1, %rax movq %rax, -56(%rbp) jmp LBB0_7 LBB0_6: movq -80(%rbp), %rax movq %rax, -8(%rbp) jmp LBB0_10 LBB0_7: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_8 LBB0_8: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_1 LBB0_9: movq $0, -8(%rbp) LBB0_10: movq -8(%rbp), %rax addq $96, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/546961.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #96 .cfi_def_cfa_offset 96 stp x29, x30, [sp, #80] ; 16-byte Folded Spill add x29, sp, #80 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] str wzr, [sp, #36] str w0, [sp, #32] str x1, [sp, #24] mov w8, #1 str w8, [sp, #12] str wzr, [sp, #20] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #20] subs w8, w8, #5 cset w8, ge tbnz w8, #0, LBB0_4 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldrsw x8, [sp, #20] mov x9, #6 mul x9, x8, x9 sub x8, x29, #38 add x8, x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _scanf b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #20] add w8, w8, #1 str w8, [sp, #20] b LBB0_1 LBB0_4: str wzr, [sp, #20] b LBB0_5 LBB0_5: ; =>This Loop Header: Depth=1 ; Child Loop BB0_7 Depth 2 ldr w8, [sp, #20] subs w8, w8, #3 cset w8, ge tbnz w8, #0, LBB0_18 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_5 Depth=1 str wzr, [sp, #16] b LBB0_7 LBB0_7: ; Parent Loop BB0_5 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #16] subs w8, w8, #5 cset w8, ge tbnz w8, #0, LBB0_16 b LBB0_8 LBB0_8: ; in Loop: Header=BB0_7 Depth=2 ldrsw x8, [sp, #20] mov x11, #6 mul x10, x8, x11 sub x9, x29, #38 mov x8, x9 add x8, x8, x10 ldrsw x10, [sp, #16] ldrsb w8, [x8, x10] ldrsw x10, [sp, #16] mul x10, x10, x11 add x9, x9, x10 ldrsw x10, [sp, #20] ldrsb w9, [x9, x10] subs w8, w8, w9 cset w8, eq tbnz w8, #0, LBB0_10 b LBB0_9 LBB0_9: ; in Loop: Header=BB0_7 Depth=2 str wzr, [sp, #12] b LBB0_10 LBB0_10: ; in Loop: Header=BB0_7 Depth=2 ldrsw x8, [sp, #20] mov x9, #6 mul x9, x8, x9 sub x12, x29, #38 mov x8, x12 add x8, x8, x9 ldrsw x9, [sp, #16] ldrsb w8, [x8, x9] ldr w9, [sp, #20] mov w10, #4 subs w9, w10, w9 mov w11, #6 smaddl x9, w9, w11, x12 ldr w11, [sp, #16] subs w10, w10, w11 ldrsb w9, [x9, w10, sxtw] subs w8, w8, w9 cset w8, eq tbnz w8, #0, LBB0_12 b LBB0_11 LBB0_11: ; in Loop: Header=BB0_7 Depth=2 str wzr, [sp, #12] b LBB0_12 LBB0_12: ; in Loop: Header=BB0_7 Depth=2 ldrsw x8, [sp, #20] mov x9, #6 mul x9, x8, x9 sub x12, x29, #38 mov x8, x12 add x8, x8, x9 ldrsw x9, [sp, #16] ldrsb w8, [x8, x9] ldr w9, [sp, #16] mov w10, #4 subs w9, w10, w9 mov w11, #6 smaddl x9, w9, w11, x12 ldr w11, [sp, #20] subs w10, w10, w11 ldrsb w9, [x9, w10, sxtw] subs w8, w8, w9 cset w8, eq tbnz w8, #0, LBB0_14 b LBB0_13 LBB0_13: ; in Loop: Header=BB0_7 Depth=2 str wzr, [sp, #12] b LBB0_14 LBB0_14: ; in Loop: Header=BB0_7 Depth=2 b LBB0_15 LBB0_15: ; in Loop: Header=BB0_7 Depth=2 ldr w8, [sp, #16] add w8, w8, #1 str w8, [sp, #16] b LBB0_7 LBB0_16: ; in Loop: Header=BB0_5 Depth=1 b LBB0_17 LBB0_17: ; in Loop: Header=BB0_5 Depth=1 ldr w8, [sp, #20] add w8, w8, #1 str w8, [sp, #20] b LBB0_5 LBB0_18: ldr w8, [sp, #12] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_20 b LBB0_19 LBB0_19: adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf b LBB0_21 LBB0_20: adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf b LBB0_21 LBB0_21: 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_23 b LBB0_22 LBB0_22: bl ___stack_chk_fail LBB0_23: 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 "%5s" l_.str.1: ; @.str.1 .asciz "TRUE\n" l_.str.2: ; @.str.2 .asciz "FALSE\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $80, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -52(%rbp) movl %edi, -56(%rbp) movq %rsi, -64(%rbp) movl $1, -76(%rbp) movl $0, -68(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 cmpl $5, -68(%rbp) jge LBB0_4 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movslq -68(%rbp), %rax leaq -48(%rbp), %rsi imulq $6, %rax, %rax addq %rax, %rsi leaq L_.str(%rip), %rdi movb $0, %al callq _scanf ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movl -68(%rbp), %eax addl $1, %eax movl %eax, -68(%rbp) jmp LBB0_1 LBB0_4: movl $0, -68(%rbp) LBB0_5: ## =>This Loop Header: Depth=1 ## Child Loop BB0_7 Depth 2 cmpl $3, -68(%rbp) jge LBB0_18 ## %bb.6: ## in Loop: Header=BB0_5 Depth=1 movl $0, -72(%rbp) LBB0_7: ## Parent Loop BB0_5 Depth=1 ## => This Inner Loop Header: Depth=2 cmpl $5, -72(%rbp) jge LBB0_16 ## %bb.8: ## in Loop: Header=BB0_7 Depth=2 movslq -68(%rbp), %rcx leaq -48(%rbp), %rax imulq $6, %rcx, %rcx addq %rcx, %rax movslq -72(%rbp), %rcx movsbl (%rax,%rcx), %eax movslq -72(%rbp), %rdx leaq -48(%rbp), %rcx imulq $6, %rdx, %rdx addq %rdx, %rcx movslq -68(%rbp), %rdx movsbl (%rcx,%rdx), %ecx cmpl %ecx, %eax je LBB0_10 ## %bb.9: ## in Loop: Header=BB0_7 Depth=2 movl $0, -76(%rbp) LBB0_10: ## in Loop: Header=BB0_7 Depth=2 movslq -68(%rbp), %rcx leaq -48(%rbp), %rax imulq $6, %rcx, %rcx addq %rcx, %rax movslq -72(%rbp), %rcx movsbl (%rax,%rcx), %eax movl $4, %ecx subl -68(%rbp), %ecx movslq %ecx, %rdx leaq -48(%rbp), %rcx imulq $6, %rdx, %rdx addq %rdx, %rcx movl $4, %edx subl -72(%rbp), %edx movslq %edx, %rdx movsbl (%rcx,%rdx), %ecx cmpl %ecx, %eax je LBB0_12 ## %bb.11: ## in Loop: Header=BB0_7 Depth=2 movl $0, -76(%rbp) LBB0_12: ## in Loop: Header=BB0_7 Depth=2 movslq -68(%rbp), %rcx leaq -48(%rbp), %rax imulq $6, %rcx, %rcx addq %rcx, %rax movslq -72(%rbp), %rcx movsbl (%rax,%rcx), %eax movl $4, %ecx subl -72(%rbp), %ecx movslq %ecx, %rdx leaq -48(%rbp), %rcx imulq $6, %rdx, %rdx addq %rdx, %rcx movl $4, %edx subl -68(%rbp), %edx movslq %edx, %rdx movsbl (%rcx,%rdx), %ecx cmpl %ecx, %eax je LBB0_14 ## %bb.13: ## in Loop: Header=BB0_7 Depth=2 movl $0, -76(%rbp) LBB0_14: ## in Loop: Header=BB0_7 Depth=2 jmp LBB0_15 LBB0_15: ## in Loop: Header=BB0_7 Depth=2 movl -72(%rbp), %eax addl $1, %eax movl %eax, -72(%rbp) jmp LBB0_7 LBB0_16: ## in Loop: Header=BB0_5 Depth=1 jmp LBB0_17 LBB0_17: ## in Loop: Header=BB0_5 Depth=1 movl -68(%rbp), %eax addl $1, %eax movl %eax, -68(%rbp) jmp LBB0_5 LBB0_18: cmpl $0, -76(%rbp) je LBB0_20 ## %bb.19: leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf jmp LBB0_21 LBB0_20: leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf LBB0_21: movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_23 ## %bb.22: xorl %eax, %eax addq $80, %rsp popq %rbp retq LBB0_23: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%5s" L_.str.1: ## @.str.1 .asciz "TRUE\n" L_.str.2: ## @.str.2 .asciz "FALSE\n" .subsections_via_symbols
the_stack_data/206393144.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/188013.c