arm
stringlengths
122
134M
x86
stringlengths
122
134M
filename
stringlengths
18
26
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _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] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov x9, sp sub x8, x29, #8 str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF str x0, [sp, #8] ; 8-byte Folded Spill bl _scanf adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf ldr x0, [sp, #8] ; 8-byte Folded Reload mov x9, sp sub x8, x29, #12 str x8, [x9] bl _scanf adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf ldr x0, [sp, #8] ; 8-byte Folded Reload mov x9, sp sub x8, x29, #16 str x8, [x9] bl _scanf ldur s0, [x29, #-8] fcmp s0, #0.0 cset w8, eq tbnz w8, #0, LBB0_6 b LBB0_1 LBB0_1: ldur s0, [x29, #-12] ldur s1, [x29, #-12] ldur s3, [x29, #-8] fmov s2, #4.00000000 fmul s2, s2, s3 ldur s3, [x29, #-16] fmul s2, s2, s3 fnmsub s0, s0, s1, s2 stur s0, [x29, #-20] ldur s0, [x29, #-20] fcmp s0, #0.0 cset w8, ne tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: ldur s0, [x29, #-12] fneg s0, s0 fcvt d0, s0 ldur s1, [x29, #-20] fcvt d1, s1 fsqrt d1, d1 fadd d0, d0, d1 ldur s2, [x29, #-8] fmov s1, #2.00000000 fmul s1, s1, s2 fcvt d1, s1 fdiv d0, d0, d1 fcvt s0, d0 str s0, [sp, #24] adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf ldur s0, [x29, #-20] fcvt d0, s0 mov x8, sp str d0, [x8] adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf ldr s0, [sp, #24] fcvt d0, s0 mov x8, sp str d0, [x8] adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _printf mov w8, #1 stur w8, [x29, #-4] b LBB0_7 LBB0_3: ldur s0, [x29, #-20] fcmp s0, #0.0 cset w8, le tbnz w8, #0, LBB0_5 b LBB0_4 LBB0_4: ldur s0, [x29, #-12] fneg s0, s0 fcvt d0, s0 ldur s1, [x29, #-20] fcvt d1, s1 fsqrt d1, d1 fadd d0, d0, d1 ldur s2, [x29, #-8] fmov s1, #2.00000000 fmul s2, s1, s2 fcvt d2, s2 fdiv d0, d0, d2 fcvt s0, d0 str s0, [sp, #24] ldur s0, [x29, #-12] fneg s0, s0 fcvt d0, s0 ldur s2, [x29, #-20] fcvt d2, s2 fsqrt d2, d2 fsub d0, d0, d2 ldur s2, [x29, #-8] fmul s1, s1, s2 fcvt d1, s1 fdiv d0, d0, d1 fcvt s0, d0 str s0, [sp, #20] adrp x0, l_.str.7@PAGE add x0, x0, l_.str.7@PAGEOFF bl _printf ldur s0, [x29, #-20] fcvt d0, s0 mov x8, sp str d0, [x8] adrp x0, l_.str.8@PAGE add x0, x0, l_.str.8@PAGEOFF bl _printf ldr s0, [sp, #24] fcvt d0, s0 mov x8, sp str d0, [x8] adrp x0, l_.str.9@PAGE add x0, x0, l_.str.9@PAGEOFF bl _printf ldr s0, [sp, #20] fcvt d0, s0 mov x8, sp str d0, [x8] adrp x0, l_.str.10@PAGE add x0, x0, l_.str.10@PAGEOFF bl _printf stur wzr, [x29, #-4] b LBB0_7 LBB0_5: adrp x0, l_.str.11@PAGE add x0, x0, l_.str.11@PAGEOFF bl _printf adrp x0, l_.str.12@PAGE add x0, x0, l_.str.12@PAGEOFF bl _printf mov w8, #2 stur w8, [x29, #-4] b LBB0_7 LBB0_6: adrp x0, l_.str.13@PAGE add x0, x0, l_.str.13@PAGEOFF bl _printf b LBB0_7 LBB0_7: ldur w0, [x29, #-4] ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Digite o coeficiente a: " l_.str.1: ; @.str.1 .asciz "%f" l_.str.2: ; @.str.2 .asciz "Digite o coeficiente b: " l_.str.3: ; @.str.3 .asciz "Digite o coeficiente c: " l_.str.4: ; @.str.4 .asciz "Delta igual a 0\n" l_.str.5: ; @.str.5 .asciz "Delta: %.2f\n" l_.str.6: ; @.str.6 .asciz "x1 e x2 = %.2f\n" l_.str.7: ; @.str.7 .asciz "Delta maior que 0\n" l_.str.8: ; @.str.8 .asciz "Delta: %1.f\n" l_.str.9: ; @.str.9 .asciz "x1 = %.2f\n" l_.str.10: ; @.str.10 .asciz "x2 = %.2f\n" l_.str.11: ; @.str.11 .asciz "Delta menor que 0\n" l_.str.12: ; @.str.12 .asciz "As raizes nao podem ser calculadas\n" l_.str.13: ; @.str.13 .asciz "Nao eh uma equacao do 2 grau" .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 0x40800000 ## float 4 LCPI0_1: .long 0x40000000 ## float 2 .section __TEXT,__text,regular,pure_instructions .globl _main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl $0, -4(%rbp) leaq L_.str(%rip), %rdi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi leaq -8(%rbp), %rsi movb $0, %al callq _scanf leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi leaq -12(%rbp), %rsi movb $0, %al callq _scanf leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi leaq -16(%rbp), %rsi movb $0, %al callq _scanf movss -8(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero xorps %xmm1, %xmm1 ucomiss %xmm1, %xmm0 jne LBB0_1 jp LBB0_1 jmp LBB0_6 LBB0_1: movss -12(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss -12(%rbp), %xmm2 ## xmm2 = mem[0],zero,zero,zero movss LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero mulss -8(%rbp), %xmm1 mulss -16(%rbp), %xmm1 movd %xmm1, %eax xorl $2147483648, %eax ## imm = 0x80000000 movd %eax, %xmm1 mulss %xmm2, %xmm0 addss %xmm1, %xmm0 movss %xmm0, -20(%rbp) movss -20(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero xorps %xmm1, %xmm1 ucomiss %xmm1, %xmm0 jne LBB0_3 jp LBB0_3 ## %bb.2: movss -12(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movd %xmm0, %eax xorl $2147483648, %eax ## imm = 0x80000000 movd %eax, %xmm0 cvtss2sd %xmm0, %xmm0 movss -20(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero cvtss2sd %xmm1, %xmm1 sqrtsd %xmm1, %xmm1 addsd %xmm1, %xmm0 movss LCPI0_1(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero mulss -8(%rbp), %xmm1 cvtss2sd %xmm1, %xmm1 divsd %xmm1, %xmm0 cvtsd2ss %xmm0, %xmm0 movss %xmm0, -24(%rbp) leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf movss -20(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 leaq L_.str.5(%rip), %rdi movb $1, %al callq _printf movss -24(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 leaq L_.str.6(%rip), %rdi movb $1, %al callq _printf movl $1, -4(%rbp) jmp LBB0_7 LBB0_3: movss -20(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero xorps %xmm1, %xmm1 ucomiss %xmm1, %xmm0 jbe LBB0_5 ## %bb.4: movss -12(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movd %xmm0, %eax xorl $2147483648, %eax ## imm = 0x80000000 movd %eax, %xmm0 cvtss2sd %xmm0, %xmm0 movss -20(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero cvtss2sd %xmm1, %xmm1 sqrtsd %xmm1, %xmm1 addsd %xmm1, %xmm0 movss LCPI0_1(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero mulss -8(%rbp), %xmm1 cvtss2sd %xmm1, %xmm1 divsd %xmm1, %xmm0 cvtsd2ss %xmm0, %xmm0 movss %xmm0, -24(%rbp) movss -12(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movd %xmm0, %eax xorl $2147483648, %eax ## imm = 0x80000000 movd %eax, %xmm0 cvtss2sd %xmm0, %xmm0 movss -20(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero cvtss2sd %xmm1, %xmm1 sqrtsd %xmm1, %xmm1 subsd %xmm1, %xmm0 movss LCPI0_1(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero mulss -8(%rbp), %xmm1 cvtss2sd %xmm1, %xmm1 divsd %xmm1, %xmm0 cvtsd2ss %xmm0, %xmm0 movss %xmm0, -28(%rbp) leaq L_.str.7(%rip), %rdi movb $0, %al callq _printf movss -20(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 leaq L_.str.8(%rip), %rdi movb $1, %al callq _printf movss -24(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 leaq L_.str.9(%rip), %rdi movb $1, %al callq _printf movss -28(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 leaq L_.str.10(%rip), %rdi movb $1, %al callq _printf movl $0, -4(%rbp) jmp LBB0_7 LBB0_5: leaq L_.str.11(%rip), %rdi movb $0, %al callq _printf leaq L_.str.12(%rip), %rdi movb $0, %al callq _printf movl $2, -4(%rbp) jmp LBB0_7 LBB0_6: leaq L_.str.13(%rip), %rdi movb $0, %al callq _printf LBB0_7: movl -4(%rbp), %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Digite o coeficiente a: " L_.str.1: ## @.str.1 .asciz "%f" L_.str.2: ## @.str.2 .asciz "Digite o coeficiente b: " L_.str.3: ## @.str.3 .asciz "Digite o coeficiente c: " L_.str.4: ## @.str.4 .asciz "Delta igual a 0\n" L_.str.5: ## @.str.5 .asciz "Delta: %.2f\n" L_.str.6: ## @.str.6 .asciz "x1 e x2 = %.2f\n" L_.str.7: ## @.str.7 .asciz "Delta maior que 0\n" L_.str.8: ## @.str.8 .asciz "Delta: %1.f\n" L_.str.9: ## @.str.9 .asciz "x1 = %.2f\n" L_.str.10: ## @.str.10 .asciz "x2 = %.2f\n" L_.str.11: ## @.str.11 .asciz "Delta menor que 0\n" L_.str.12: ## @.str.12 .asciz "As raizes nao podem ser calculadas\n" L_.str.13: ## @.str.13 .asciz "Nao eh uma equacao do 2 grau" .subsections_via_symbols
the_stack_data/153267146.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __DATA,__data .globl _glui_img_radiobutton_1 ; @glui_img_radiobutton_1 .p2align 2 _glui_img_radiobutton_1: .long 14 ; 0xe .long 14 ; 0xe .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 128 ; 0x80 .long 128 ; 0x80 .long 128 ; 0x80 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 128 ; 0x80 .long 128 ; 0x80 .long 128 ; 0x80 .long 0 ; 0x0 .long 0 ; 0x0 .long 0 ; 0x0 .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 128 ; 0x80 .long 128 ; 0x80 .long 128 ; 0x80 .long 0 ; 0x0 .long 0 ; 0x0 .long 0 ; 0x0 .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 0 ; 0x0 .long 0 ; 0x0 .long 0 ; 0x0 .long 0 ; 0x0 .long 0 ; 0x0 .long 0 ; 0x0 .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 128 ; 0x80 .long 128 ; 0x80 .long 128 ; 0x80 .long 0 ; 0x0 .long 0 ; 0x0 .long 0 ; 0x0 .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 0 ; 0x0 .long 0 ; 0x0 .long 0 ; 0x0 .long 0 ; 0x0 .long 0 ; 0x0 .long 0 ; 0x0 .long 0 ; 0x0 .long 0 ; 0x0 .long 0 ; 0x0 .long 0 ; 0x0 .long 0 ; 0x0 .long 0 ; 0x0 .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 128 ; 0x80 .long 128 ; 0x80 .long 128 ; 0x80 .long 0 ; 0x0 .long 0 ; 0x0 .long 0 ; 0x0 .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 0 ; 0x0 .long 0 ; 0x0 .long 0 ; 0x0 .long 0 ; 0x0 .long 0 ; 0x0 .long 0 ; 0x0 .long 0 ; 0x0 .long 0 ; 0x0 .long 0 ; 0x0 .long 0 ; 0x0 .long 0 ; 0x0 .long 0 ; 0x0 .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 128 ; 0x80 .long 128 ; 0x80 .long 128 ; 0x80 .long 0 ; 0x0 .long 0 ; 0x0 .long 0 ; 0x0 .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 0 ; 0x0 .long 0 ; 0x0 .long 0 ; 0x0 .long 0 ; 0x0 .long 0 ; 0x0 .long 0 ; 0x0 .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 128 ; 0x80 .long 128 ; 0x80 .long 128 ; 0x80 .long 0 ; 0x0 .long 0 ; 0x0 .long 0 ; 0x0 .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 128 ; 0x80 .long 128 ; 0x80 .long 128 ; 0x80 .long 0 ; 0x0 .long 0 ; 0x0 .long 0 ; 0x0 .long 0 ; 0x0 .long 0 ; 0x0 .long 0 ; 0x0 .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 0 ; 0x0 .long 0 ; 0x0 .long 0 ; 0x0 .long 0 ; 0x0 .long 0 ; 0x0 .long 0 ; 0x0 .long 255 ; 0xff .long 255 ; 0xff .long 255 ; 0xff .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 128 ; 0x80 .long 128 ; 0x80 .long 128 ; 0x80 .long 128 ; 0x80 .long 128 ; 0x80 .long 128 ; 0x80 .long 0 ; 0x0 .long 0 ; 0x0 .long 0 ; 0x0 .long 0 ; 0x0 .long 0 ; 0x0 .long 0 ; 0x0 .long 0 ; 0x0 .long 0 ; 0x0 .long 0 ; 0x0 .long 0 ; 0x0 .long 0 ; 0x0 .long 0 ; 0x0 .long 128 ; 0x80 .long 128 ; 0x80 .long 128 ; 0x80 .long 128 ; 0x80 .long 128 ; 0x80 .long 128 ; 0x80 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 128 ; 0x80 .long 128 ; 0x80 .long 128 ; 0x80 .long 128 ; 0x80 .long 128 ; 0x80 .long 128 ; 0x80 .long 128 ; 0x80 .long 128 ; 0x80 .long 128 ; 0x80 .long 128 ; 0x80 .long 128 ; 0x80 .long 128 ; 0x80 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .long 192 ; 0xc0 .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __DATA,__data .globl _glui_img_radiobutton_1 ## @glui_img_radiobutton_1 .p2align 4 _glui_img_radiobutton_1: .long 14 ## 0xe .long 14 ## 0xe .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 128 ## 0x80 .long 128 ## 0x80 .long 128 ## 0x80 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 128 ## 0x80 .long 128 ## 0x80 .long 128 ## 0x80 .long 0 ## 0x0 .long 0 ## 0x0 .long 0 ## 0x0 .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 128 ## 0x80 .long 128 ## 0x80 .long 128 ## 0x80 .long 0 ## 0x0 .long 0 ## 0x0 .long 0 ## 0x0 .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 0 ## 0x0 .long 0 ## 0x0 .long 0 ## 0x0 .long 0 ## 0x0 .long 0 ## 0x0 .long 0 ## 0x0 .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 128 ## 0x80 .long 128 ## 0x80 .long 128 ## 0x80 .long 0 ## 0x0 .long 0 ## 0x0 .long 0 ## 0x0 .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 0 ## 0x0 .long 0 ## 0x0 .long 0 ## 0x0 .long 0 ## 0x0 .long 0 ## 0x0 .long 0 ## 0x0 .long 0 ## 0x0 .long 0 ## 0x0 .long 0 ## 0x0 .long 0 ## 0x0 .long 0 ## 0x0 .long 0 ## 0x0 .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 128 ## 0x80 .long 128 ## 0x80 .long 128 ## 0x80 .long 0 ## 0x0 .long 0 ## 0x0 .long 0 ## 0x0 .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 0 ## 0x0 .long 0 ## 0x0 .long 0 ## 0x0 .long 0 ## 0x0 .long 0 ## 0x0 .long 0 ## 0x0 .long 0 ## 0x0 .long 0 ## 0x0 .long 0 ## 0x0 .long 0 ## 0x0 .long 0 ## 0x0 .long 0 ## 0x0 .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 128 ## 0x80 .long 128 ## 0x80 .long 128 ## 0x80 .long 0 ## 0x0 .long 0 ## 0x0 .long 0 ## 0x0 .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 0 ## 0x0 .long 0 ## 0x0 .long 0 ## 0x0 .long 0 ## 0x0 .long 0 ## 0x0 .long 0 ## 0x0 .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 128 ## 0x80 .long 128 ## 0x80 .long 128 ## 0x80 .long 0 ## 0x0 .long 0 ## 0x0 .long 0 ## 0x0 .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 128 ## 0x80 .long 128 ## 0x80 .long 128 ## 0x80 .long 0 ## 0x0 .long 0 ## 0x0 .long 0 ## 0x0 .long 0 ## 0x0 .long 0 ## 0x0 .long 0 ## 0x0 .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 0 ## 0x0 .long 0 ## 0x0 .long 0 ## 0x0 .long 0 ## 0x0 .long 0 ## 0x0 .long 0 ## 0x0 .long 255 ## 0xff .long 255 ## 0xff .long 255 ## 0xff .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 128 ## 0x80 .long 128 ## 0x80 .long 128 ## 0x80 .long 128 ## 0x80 .long 128 ## 0x80 .long 128 ## 0x80 .long 0 ## 0x0 .long 0 ## 0x0 .long 0 ## 0x0 .long 0 ## 0x0 .long 0 ## 0x0 .long 0 ## 0x0 .long 0 ## 0x0 .long 0 ## 0x0 .long 0 ## 0x0 .long 0 ## 0x0 .long 0 ## 0x0 .long 0 ## 0x0 .long 128 ## 0x80 .long 128 ## 0x80 .long 128 ## 0x80 .long 128 ## 0x80 .long 128 ## 0x80 .long 128 ## 0x80 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 128 ## 0x80 .long 128 ## 0x80 .long 128 ## 0x80 .long 128 ## 0x80 .long 128 ## 0x80 .long 128 ## 0x80 .long 128 ## 0x80 .long 128 ## 0x80 .long 128 ## 0x80 .long 128 ## 0x80 .long 128 ## 0x80 .long 128 ## 0x80 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .long 192 ## 0xc0 .subsections_via_symbols
the_stack_data/159516121.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _populateArray ; -- Begin function populateArray .p2align 2 _populateArray: ; @populateArray .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] stur x1, [x29, #-16] str x2, [sp, #24] str xzr, [sp, #8] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #8] ldur x9, [x29, #-16] subs x8, x8, x9 cset w8, hs tbnz w8, #0, LBB0_4 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #24] ldr x0, [sp, #8] blr x8 mov x8, x0 str w8, [sp, #20] ldr w8, [sp, #20] ldur x9, [x29, #-8] ldr x10, [sp, #8] str w8, [x9, x10, lsl #2] ldr w9, [sp, #20] ; 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_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #8] add x8, x8, #1 str x8, [sp, #8] b LBB0_1 LBB0_4: ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _getNextRandomValue ; -- Begin function getNextRandomValue .p2align 2 _getNextRandomValue: ; @getNextRandomValue .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 _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #80 .cfi_def_cfa_offset 80 stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp, #64 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] str wzr, [sp, #12] str w0, [sp, #8] str x1, [sp] add x0, sp, #16 mov x1, #10 adrp x2, _getNextRandomValue@PAGE add x2, x2, _getNextRandomValue@PAGEOFF bl _populateArray 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, #64] ; 16-byte Folded Reload add sp, sp, #80 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 _populateArray ## -- Begin function populateArray .p2align 4, 0x90 _populateArray: ## @populateArray .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) movq %rdx, -24(%rbp) movq $0, -40(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movq -40(%rbp), %rax cmpq -16(%rbp), %rax jae LBB0_4 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movq -24(%rbp), %rax movq -40(%rbp), %rdi callq *%rax ## kill: def $eax killed $eax killed $rax movl %eax, -28(%rbp) movl -28(%rbp), %edx movq -8(%rbp), %rax movq -40(%rbp), %rcx movl %edx, (%rax,%rcx,4) movl -28(%rbp), %esi leaq L_.str(%rip), %rdi movb $0, %al callq _printf ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movq -40(%rbp), %rax addq $1, %rax movq %rax, -40(%rbp) jmp LBB0_1 LBB0_4: addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _getNextRandomValue ## -- Begin function getNextRandomValue .p2align 4, 0x90 _getNextRandomValue: ## @getNextRandomValue .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) movq -8(%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 $64, %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) leaq -48(%rbp), %rdi movl $10, %esi leaq _getNextRandomValue(%rip), %rdx callq _populateArray 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 $64, %rsp popq %rbp retq LBB2_2: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d\n" .subsections_via_symbols
the_stack_data/82951430.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 0x3f12599ed7c6fbd2 ; double 6.9999999999999994E-5 lCPI0_1: .quad 0x4538d0bf423c03d9 ; double 3.0000000000000001E+25 lCPI0_2: .quad 0x4007333333333333 ; double 2.8999999999999999 .section __TEXT,__text,regular,pure_instructions .globl _main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #96 .cfi_def_cfa_offset 96 stp x29, x30, [sp, #80] ; 16-byte Folded Spill add x29, sp, #80 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] mov w1, #0 str wzr, [sp, #28] add x0, sp, #32 mov x2, #40 bl _memset fmov d0, #9.00000000 str d0, [sp, #32] adrp x8, lCPI0_2@PAGE ldr d0, [x8, lCPI0_2@PAGEOFF] str d0, [sp, #40] adrp x8, lCPI0_1@PAGE ldr d0, [x8, lCPI0_1@PAGEOFF] str d0, [sp, #48] adrp x8, lCPI0_0@PAGE ldr d0, [x8, lCPI0_0@PAGEOFF] str d0, [sp, #56] str wzr, [sp, #24] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #24] subs w8, w8, #5 cset w8, ge tbnz w8, #0, LBB0_6 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #24] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #24] ; implicit-def: $x9 mov x9, x8 ldrsw x10, [sp, #24] add x8, sp, #32 ldr d1, [x8, x10, lsl #3] ldrsw x10, [sp, #24] ldr d0, [x8, x10, lsl #3] ldrsw x10, [sp, #24] ldr d2, [x8, x10, lsl #3] fmul d0, d0, d2 mov x8, sp str x9, [x8] str d1, [x8, #8] str d0, [x8, #16] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf b LBB0_4 LBB0_4: ; in Loop: Header=BB0_1 Depth=1 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #24] add w8, w8, #1 str w8, [sp, #24] b LBB0_1 LBB0_6: ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_8 b LBB0_7 LBB0_7: bl ___stack_chk_fail LBB0_8: mov w0, #0 ldp x29, x30, [sp, #80] ; 16-byte Folded Reload add sp, sp, #96 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "element %d is %g, \tits square is %g\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 0x3f12599ed7c6fbd2 ## double 6.9999999999999994E-5 LCPI0_1: .quad 0x4538d0bf423c03d9 ## double 3.0000000000000001E+25 LCPI0_2: .quad 0x4007333333333333 ## double 2.8999999999999999 LCPI0_3: .quad 0x4022000000000000 ## double 9 .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 $64, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -52(%rbp) leaq -48(%rbp), %rdi xorl %esi, %esi movl $40, %edx callq _memset movsd LCPI0_3(%rip), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -48(%rbp) movsd LCPI0_2(%rip), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -40(%rbp) movsd LCPI0_1(%rip), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -32(%rbp) movsd LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -24(%rbp) movl $0, -56(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 cmpl $5, -56(%rbp) jge LBB0_6 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 cmpl $0, -56(%rbp) je LBB0_4 ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movl -56(%rbp), %esi movslq -56(%rbp), %rax movsd -48(%rbp,%rax,8), %xmm0 ## xmm0 = mem[0],zero movslq -56(%rbp), %rax movsd -48(%rbp,%rax,8), %xmm1 ## xmm1 = mem[0],zero movslq -56(%rbp), %rax mulsd -48(%rbp,%rax,8), %xmm1 leaq L_.str(%rip), %rdi movb $2, %al callq _printf LBB0_4: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_5 LBB0_5: ## in Loop: Header=BB0_1 Depth=1 movl -56(%rbp), %eax addl $1, %eax movl %eax, -56(%rbp) jmp LBB0_1 LBB0_6: movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_8 ## %bb.7: xorl %eax, %eax addq $64, %rsp popq %rbp retq LBB0_8: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "element %d is %g, \tits square is %g\n" .subsections_via_symbols
the_stack_data/140764388.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/140765000.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #0 str w8, [sp, #20] ; 4-byte Folded Spill stur wzr, [x29, #-4] stur w0, [x29, #-8] stur x1, [x29, #-16] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov w8, #51712 movk w8, #15258, lsl #16 str w8, [sp, #24] ldr s1, [sp, #24] ; implicit-def: $d0 fmov s0, s1 sshll.2d v0, v0, #0 ; kill: def $d0 killed $d0 killed $q0 scvtf d0, d0 fmov d1, #3.00000000 fdiv d0, d0, d1 mov x8, sp str d0, [x8] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf ldr w0, [sp, #20] ; 4-byte Folded Reload ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "hello world\n" l_.str.1: ; @.str.1 .asciz "%7.2lf\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __TEXT,__literal8,8byte_literals .p2align 3 ## -- Begin function main LCPI0_0: .quad 0x4008000000000000 ## double 3 .section __TEXT,__text,regular,pure_instructions .globl _main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl $0, -4(%rbp) movl %edi, -8(%rbp) movq %rsi, -16(%rbp) leaq L_.str(%rip), %rdi movb $0, %al callq _printf movl $1000000000, -24(%rbp) ## imm = 0x3B9ACA00 cvtsi2sdl -24(%rbp), %xmm0 movsd LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero divsd %xmm1, %xmm0 leaq L_.str.1(%rip), %rdi movb $1, %al callq _printf xorl %eax, %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "hello world\n" L_.str.1: ## @.str.1 .asciz "%7.2lf\n" .subsections_via_symbols
the_stack_data/36202.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, #5 str w8, [sp, #8] ldr w8, [sp, #8] ldr w9, [sp, #8] mul w8, w8, w9 str w8, [sp, #8] ldr w0, [sp, #8] add sp, sp, #16 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl $0, -4(%rbp) movl $5, -8(%rbp) movl -8(%rbp), %eax imull -8(%rbp), %eax movl %eax, -8(%rbp) movl -8(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/11544.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] stur wzr, [x29, #-64] stur w0, [x29, #-68] str x1, [sp, #80] adrp x8, ___stdinp@GOTPAGE ldr x8, [x8, ___stdinp@GOTPAGEOFF] ldr x2, [x8] sub x0, x29, #19 str x0, [sp, #16] ; 8-byte Folded Spill mov w1, #11 bl _fgets mov x9, sp add x8, sp, #76 str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _scanf ldr x8, [sp, #16] ; 8-byte Folded Reload str wzr, [sp, #72] ldrsw x9, [sp, #72] mov x10, x9 add w10, w10, #1 str w10, [sp, #72] add x8, x8, x9 ldrb w8, [x8] strb w8, [sp, #71] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldrsb w8, [sp, #71] subs w8, w8, #48 cset w8, lt 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 ldrsb w8, [sp, #71] subs w8, w8, #57 cset w8, le str w8, [sp, #12] ; 4-byte Folded Spill b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #12] ; 4-byte Folded Reload tbz w8, #0, LBB0_5 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_1 Depth=1 ldrsb w0, [sp, #71] bl _convert_digit_to_int ldr w8, [sp, #72] subs w9, w8, #1 sub x8, x29, #60 str w0, [x8, w9, sxtw #2] ldrsw x9, [sp, #72] mov x8, x9 add w8, w8, #1 str w8, [sp, #72] sub x8, x29, #19 add x8, x8, x9 ldrb w8, [x8] strb w8, [sp, #71] b LBB0_1 LBB0_5: ldr w9, [sp, #72] mov w8, #2 subs w9, w9, #2 str w9, [sp, #64] str w8, [sp, #60] str wzr, [sp, #56] ldrsw x8, [sp, #60] lsl x0, x8, #3 bl _malloc str x0, [sp, #48] ldr s1, [sp, #64] ; 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 fmov d1, #1.00000000 fsub d0, d0, d1 fcvtzs x8, d0 str x8, [sp, #40] b LBB0_6 LBB0_6: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #40] subs x8, x8, #0 cset w8, lt tbnz w8, #0, LBB0_12 b LBB0_7 LBB0_7: ; in Loop: Header=BB0_6 Depth=1 ldr w0, [sp, #76] ldr x2, [sp, #40] ldr w3, [sp, #64] sub x1, x29, #60 bl _evaluate subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB0_11 b LBB0_8 LBB0_8: ; in Loop: Header=BB0_6 Depth=1 ldr w8, [sp, #56] ldr w9, [sp, #60] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_10 b LBB0_9 LBB0_9: ; in Loop: Header=BB0_6 Depth=1 ldr w8, [sp, #60] lsl w8, w8, #1 str w8, [sp, #60] ldr x0, [sp, #48] ldrsw x8, [sp, #60] lsl x1, x8, #3 bl _realloc str x0, [sp, #48] b LBB0_10 LBB0_10: ; in Loop: Header=BB0_6 Depth=1 ldr x8, [sp, #40] ldr x9, [sp, #48] ldrsw x10, [sp, #56] mov x11, x10 add w11, w11, #1 str w11, [sp, #56] str x8, [x9, x10, lsl #3] b LBB0_11 LBB0_11: ; in Loop: Header=BB0_6 Depth=1 ldr x8, [sp, #40] subs x8, x8, #1 str x8, [sp, #40] b LBB0_6 LBB0_12: ldr w8, [sp, #56] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_14 b LBB0_13 LBB0_13: adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf stur wzr, [x29, #-64] b LBB0_23 LBB0_14: ldrsw x8, [sp, #56] lsl x0, x8, #3 bl _malloc str x0, [sp, #32] str wzr, [sp, #28] b LBB0_15 LBB0_15: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #28] ldr w9, [sp, #56] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_18 b LBB0_16 LBB0_16: ; in Loop: Header=BB0_15 Depth=1 ldr x8, [sp, #48] ldrsw x9, [sp, #28] ldr x1, [x8, x9, lsl #3] ldr w2, [sp, #64] sub x0, x29, #60 bl _get_solution ldr x8, [sp, #32] ldrsw x9, [sp, #28] str x0, [x8, x9, lsl #3] b LBB0_17 LBB0_17: ; in Loop: Header=BB0_15 Depth=1 ldr w8, [sp, #28] add w8, w8, #1 str w8, [sp, #28] b LBB0_15 LBB0_18: ldr x0, [sp, #32] ldrsw x1, [sp, #56] mov x2, #8 adrp x3, ___cmpfunc@PAGE add x3, x3, ___cmpfunc@PAGEOFF bl _qsort str wzr, [sp, #24] b LBB0_19 LBB0_19: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #24] ldr w9, [sp, #56] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_22 b LBB0_20 LBB0_20: ; in Loop: Header=BB0_19 Depth=1 ldr x8, [sp, #32] ldrsw x9, [sp, #24] ldr x8, [x8, x9, lsl #3] mov x9, sp str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf ldr x8, [sp, #32] ldrsw x9, [sp, #24] ldr x0, [x8, x9, lsl #3] bl _free b LBB0_21 LBB0_21: ; in Loop: Header=BB0_19 Depth=1 ldr w8, [sp, #24] add w8, w8, #1 str w8, [sp, #24] b LBB0_19 LBB0_22: ldr x0, [sp, #32] bl _free stur wzr, [x29, #-64] b LBB0_23 LBB0_23: ldur w8, [x29, #-64] str w8, [sp, #8] ; 4-byte Folded Spill ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_25 b LBB0_24 LBB0_24: bl ___stack_chk_fail LBB0_25: ldr w0, [sp, #8] ; 4-byte Folded Reload ldp x29, x30, [sp, #160] ; 16-byte Folded Reload add sp, sp, #176 ret .cfi_endproc ; -- End function .globl _convert_digit_to_int ; -- Begin function convert_digit_to_int .p2align 2 _convert_digit_to_int: ; @convert_digit_to_int .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 strb w0, [sp, #15] ldrsb w8, [sp, #15] subs w0, w8, #48 add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _evaluate ; -- Begin function evaluate .p2align 2 _evaluate: ; @evaluate .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 str w0, [sp, #44] str x1, [sp, #32] str x2, [sp, #24] str w3, [sp, #20] ldr x8, [sp, #32] ldr w8, [x8] str w8, [sp, #16] str wzr, [sp, #12] b LBB2_1 LBB2_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #12] ldr w9, [sp, #20] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB2_9 b LBB2_2 LBB2_2: ; in Loop: Header=BB2_1 Depth=1 ldr x8, [sp, #24] ldr w10, [sp, #12] mov w9, #1 lsl w10, w9, w10 ; implicit-def: $x9 mov x9, x10 sxtw x9, w9 and x8, x8, x9 ldr w9, [sp, #12] ; kill: def $x9 killed $w9 asr x8, x8, x9 ; kill: def $w8 killed $w8 killed $x8 str w8, [sp, #8] ldr w8, [sp, #8] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB2_4 b LBB2_3 LBB2_3: ; in Loop: Header=BB2_1 Depth=1 ldr x8, [sp, #32] ldr w9, [sp, #12] add w9, w9, #1 ldr w9, [x8, w9, sxtw #2] ldr w8, [sp, #16] add w8, w8, w9 str w8, [sp, #16] b LBB2_7 LBB2_4: ; in Loop: Header=BB2_1 Depth=1 ldr w8, [sp, #8] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB2_6 b LBB2_5 LBB2_5: ; in Loop: Header=BB2_1 Depth=1 ldr x8, [sp, #32] ldr w9, [sp, #12] add w9, w9, #1 ldr w9, [x8, w9, sxtw #2] ldr w8, [sp, #16] subs w8, w8, w9 str w8, [sp, #16] b LBB2_6 LBB2_6: ; in Loop: Header=BB2_1 Depth=1 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, #12] add w8, w8, #1 str w8, [sp, #12] b LBB2_1 LBB2_9: ldr w8, [sp, #16] ldr w9, [sp, #44] subs w8, w8, w9 cset w8, eq and w9, w8, #0x1 mov w8, #0 ands w9, w9, #0x1 csinc w0, w8, wzr, eq add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _get_solution ; -- Begin function get_solution .p2align 2 _get_solution: ; @get_solution .cfi_startproc ; %bb.0: sub sp, sp, #80 .cfi_def_cfa_offset 80 stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp, #64 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] stur x1, [x29, #-16] stur w2, [x29, #-20] mov x0, #100 bl _malloc str x0, [sp, #32] ldr x8, [sp, #32] strb wzr, [x8] ldur x8, [x29, #-8] ldr w8, [x8] str w8, [sp, #28] ldur x8, [x29, #-8] ldr w9, [x8] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] add x0, sp, #16 adrp x1, l_.str.3@PAGE add x1, x1, l_.str.3@PAGEOFF bl _asprintf ldr x0, [sp, #32] ldr x1, [sp, #16] mov x2, #-1 bl ___strcat_chk ldr x0, [sp, #16] bl _free str wzr, [sp, #12] b LBB3_1 LBB3_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #12] ldur w9, [x29, #-20] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB3_9 b LBB3_2 LBB3_2: ; in Loop: Header=BB3_1 Depth=1 ldur x8, [x29, #-16] ldr w10, [sp, #12] mov w9, #1 lsl w10, w9, w10 ; implicit-def: $x9 mov x9, x10 sxtw x9, w9 and x8, x8, x9 ldr w9, [sp, #12] ; kill: def $x9 killed $w9 asr x8, x8, x9 ; kill: def $w8 killed $w8 killed $x8 str w8, [sp, #8] ldr w8, [sp, #8] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB3_4 b LBB3_3 LBB3_3: ; in Loop: Header=BB3_1 Depth=1 ldur x8, [x29, #-8] ldr w9, [sp, #12] add w9, w9, #1 ldr w9, [x8, w9, sxtw #2] ldr w8, [sp, #28] add w8, w8, w9 str w8, [sp, #28] ldur x8, [x29, #-8] ldr w9, [sp, #12] add w9, w9, #1 ldr w9, [x8, w9, sxtw #2] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] add x0, sp, #16 adrp x1, l_.str.4@PAGE add x1, x1, l_.str.4@PAGEOFF bl _asprintf ldr x0, [sp, #32] ldr x1, [sp, #16] mov x2, #-1 bl ___strcat_chk ldr x0, [sp, #16] bl _free b LBB3_7 LBB3_4: ; in Loop: Header=BB3_1 Depth=1 ldr w8, [sp, #8] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB3_6 b LBB3_5 LBB3_5: ; in Loop: Header=BB3_1 Depth=1 ldur x8, [x29, #-8] ldr w9, [sp, #12] add w9, w9, #1 ldr w9, [x8, w9, sxtw #2] ldr w8, [sp, #28] subs w8, w8, w9 str w8, [sp, #28] ldur x8, [x29, #-8] ldr w9, [sp, #12] add w9, w9, #1 ldr w9, [x8, w9, sxtw #2] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] add x0, sp, #16 adrp x1, l_.str.5@PAGE add x1, x1, l_.str.5@PAGEOFF bl _asprintf ldr x0, [sp, #32] ldr x1, [sp, #16] mov x2, #-1 bl ___strcat_chk ldr x0, [sp, #16] bl _free b LBB3_6 LBB3_6: ; in Loop: Header=BB3_1 Depth=1 b LBB3_7 LBB3_7: ; in Loop: Header=BB3_1 Depth=1 b LBB3_8 LBB3_8: ; in Loop: Header=BB3_1 Depth=1 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB3_1 LBB3_9: ldr w9, [sp, #28] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] add x0, sp, #16 adrp x1, l_.str.6@PAGE add x1, x1, l_.str.6@PAGEOFF bl _asprintf ldr x0, [sp, #32] ldr x1, [sp, #16] mov x2, #-1 bl ___strcat_chk ldr x0, [sp, #16] bl _free ldr x0, [sp, #32] ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .globl ___cmpfunc ; -- Begin function __cmpfunc .p2align 2 ___cmpfunc: ; @__cmpfunc .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #8] str x1, [sp] ldr x8, [sp, #8] ldr x0, [x8] ldr x8, [sp] ldr x1, [x8] bl _strcmp mov w8, #0 subs w0, w8, w0 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz " %d" l_.str.1: ; @.str.1 .asciz "-1\n" l_.str.2: ; @.str.2 .asciz "%s\n" l_.str.3: ; @.str.3 .asciz "%d" l_.str.4: ; @.str.4 .asciz "+%d" l_.str.5: ; @.str.5 .asciz "-%d" l_.str.6: ; @.str.6 .asciz "=%d" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __TEXT,__literal8,8byte_literals .p2align 3 ## -- Begin function main LCPI0_0: .quad 0x3ff0000000000000 ## double 1 LCPI0_1: .quad 0x4000000000000000 ## double 2 .section __TEXT,__text,regular,pure_instructions .globl _main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $144, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -68(%rbp) movl %edi, -72(%rbp) movq %rsi, -80(%rbp) leaq -19(%rbp), %rdi movq ___stdinp@GOTPCREL(%rip), %rax movq (%rax), %rdx movl $11, %esi callq _fgets leaq L_.str(%rip), %rdi leaq -84(%rbp), %rsi movb $0, %al callq _scanf movl $0, -88(%rbp) movl -88(%rbp), %eax movl %eax, %ecx addl $1, %ecx movl %ecx, -88(%rbp) cltq movb -19(%rbp,%rax), %al movb %al, -89(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movsbl -89(%rbp), %ecx xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $48, %ecx movb %al, -137(%rbp) ## 1-byte Spill jl LBB0_3 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movsbl -89(%rbp), %eax cmpl $57, %eax setle %al movb %al, -137(%rbp) ## 1-byte Spill LBB0_3: ## in Loop: Header=BB0_1 Depth=1 movb -137(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB0_4 jmp LBB0_5 LBB0_4: ## in Loop: Header=BB0_1 Depth=1 movsbl -89(%rbp), %edi callq _convert_digit_to_int movl %eax, %ecx movl -88(%rbp), %eax subl $1, %eax cltq movl %ecx, -64(%rbp,%rax,4) movl -88(%rbp), %eax movl %eax, %ecx addl $1, %ecx movl %ecx, -88(%rbp) cltq movb -19(%rbp,%rax), %al movb %al, -89(%rbp) jmp LBB0_1 LBB0_5: movl -88(%rbp), %eax subl $2, %eax movl %eax, -96(%rbp) movl $2, -100(%rbp) movl $0, -104(%rbp) movslq -100(%rbp), %rdi shlq $3, %rdi callq _malloc movq %rax, -112(%rbp) cvtsi2sdl -96(%rbp), %xmm1 movsd LCPI0_1(%rip), %xmm0 ## xmm0 = mem[0],zero callq _pow movsd LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero subsd %xmm1, %xmm0 cvttsd2si %xmm0, %rax movq %rax, -120(%rbp) LBB0_6: ## =>This Inner Loop Header: Depth=1 cmpq $0, -120(%rbp) jl LBB0_12 ## %bb.7: ## in Loop: Header=BB0_6 Depth=1 movl -84(%rbp), %edi leaq -64(%rbp), %rsi movq -120(%rbp), %rdx movl -96(%rbp), %ecx callq _evaluate cmpl $0, %eax je LBB0_11 ## %bb.8: ## in Loop: Header=BB0_6 Depth=1 movl -104(%rbp), %eax cmpl -100(%rbp), %eax jne LBB0_10 ## %bb.9: ## in Loop: Header=BB0_6 Depth=1 movl -100(%rbp), %eax shll $1, %eax movl %eax, -100(%rbp) movq -112(%rbp), %rdi movslq -100(%rbp), %rsi shlq $3, %rsi callq _realloc movq %rax, -112(%rbp) LBB0_10: ## in Loop: Header=BB0_6 Depth=1 movq -120(%rbp), %rdx movq -112(%rbp), %rax movl -104(%rbp), %ecx movl %ecx, %esi addl $1, %esi movl %esi, -104(%rbp) movslq %ecx, %rcx movq %rdx, (%rax,%rcx,8) LBB0_11: ## in Loop: Header=BB0_6 Depth=1 movq -120(%rbp), %rax addq $-1, %rax movq %rax, -120(%rbp) jmp LBB0_6 LBB0_12: cmpl $0, -104(%rbp) jne LBB0_14 ## %bb.13: leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf movl $0, -68(%rbp) jmp LBB0_23 LBB0_14: movslq -104(%rbp), %rdi shlq $3, %rdi callq _malloc movq %rax, -128(%rbp) movl $0, -132(%rbp) LBB0_15: ## =>This Inner Loop Header: Depth=1 movl -132(%rbp), %eax cmpl -104(%rbp), %eax jge LBB0_18 ## %bb.16: ## in Loop: Header=BB0_15 Depth=1 leaq -64(%rbp), %rdi movq -112(%rbp), %rax movslq -132(%rbp), %rcx movq (%rax,%rcx,8), %rsi movl -96(%rbp), %edx callq _get_solution movq %rax, %rdx movq -128(%rbp), %rax movslq -132(%rbp), %rcx movq %rdx, (%rax,%rcx,8) ## %bb.17: ## in Loop: Header=BB0_15 Depth=1 movl -132(%rbp), %eax addl $1, %eax movl %eax, -132(%rbp) jmp LBB0_15 LBB0_18: movq -128(%rbp), %rdi movslq -104(%rbp), %rsi movl $8, %edx leaq ___cmpfunc(%rip), %rcx callq _qsort movl $0, -136(%rbp) LBB0_19: ## =>This Inner Loop Header: Depth=1 movl -136(%rbp), %eax cmpl -104(%rbp), %eax jge LBB0_22 ## %bb.20: ## in Loop: Header=BB0_19 Depth=1 movq -128(%rbp), %rax movslq -136(%rbp), %rcx movq (%rax,%rcx,8), %rsi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf movq -128(%rbp), %rax movslq -136(%rbp), %rcx movq (%rax,%rcx,8), %rdi callq _free ## %bb.21: ## in Loop: Header=BB0_19 Depth=1 movl -136(%rbp), %eax addl $1, %eax movl %eax, -136(%rbp) jmp LBB0_19 LBB0_22: movq -128(%rbp), %rdi callq _free movl $0, -68(%rbp) LBB0_23: movl -68(%rbp), %eax movl %eax, -144(%rbp) ## 4-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_25 ## %bb.24: movl -144(%rbp), %eax ## 4-byte Reload addq $144, %rsp popq %rbp retq LBB0_25: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _convert_digit_to_int ## -- Begin function convert_digit_to_int .p2align 4, 0x90 _convert_digit_to_int: ## @convert_digit_to_int .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movb %dil, %al movb %al, -1(%rbp) movsbl -1(%rbp), %eax subl $48, %eax popq %rbp retq .cfi_endproc ## -- End function .globl _evaluate ## -- Begin function evaluate .p2align 4, 0x90 _evaluate: ## @evaluate .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, -4(%rbp) movq %rsi, -16(%rbp) movq %rdx, -24(%rbp) movl %ecx, -28(%rbp) movq -16(%rbp), %rax movl (%rax), %eax movl %eax, -32(%rbp) movl $0, -36(%rbp) LBB2_1: ## =>This Inner Loop Header: Depth=1 movl -36(%rbp), %eax cmpl -28(%rbp), %eax jge LBB2_9 ## %bb.2: ## in Loop: Header=BB2_1 Depth=1 movq -24(%rbp), %rax movl -36(%rbp), %ecx movl $1, %edx ## kill: def $cl killed $ecx shll %cl, %edx movl %edx, %ecx movslq %ecx, %rcx andq %rcx, %rax movl -36(%rbp), %ecx ## kill: def $rcx killed $ecx ## kill: def $cl killed $rcx sarq %cl, %rax ## kill: def $eax killed $eax killed $rax movl %eax, -40(%rbp) cmpl $1, -40(%rbp) jne LBB2_4 ## %bb.3: ## in Loop: Header=BB2_1 Depth=1 movq -16(%rbp), %rax movl -36(%rbp), %ecx addl $1, %ecx movslq %ecx, %rcx movl (%rax,%rcx,4), %eax addl -32(%rbp), %eax movl %eax, -32(%rbp) jmp LBB2_7 LBB2_4: ## in Loop: Header=BB2_1 Depth=1 cmpl $0, -40(%rbp) jne LBB2_6 ## %bb.5: ## in Loop: Header=BB2_1 Depth=1 movq -16(%rbp), %rax movl -36(%rbp), %ecx addl $1, %ecx movslq %ecx, %rcx movl (%rax,%rcx,4), %ecx movl -32(%rbp), %eax subl %ecx, %eax movl %eax, -32(%rbp) LBB2_6: ## in Loop: Header=BB2_1 Depth=1 jmp LBB2_7 LBB2_7: ## in Loop: Header=BB2_1 Depth=1 jmp LBB2_8 LBB2_8: ## in Loop: Header=BB2_1 Depth=1 movl -36(%rbp), %eax addl $1, %eax movl %eax, -36(%rbp) jmp LBB2_1 LBB2_9: movl -32(%rbp), %edx movl -4(%rbp), %esi xorl %eax, %eax movl $1, %ecx cmpl %esi, %edx cmovel %ecx, %eax popq %rbp retq .cfi_endproc ## -- End function .globl _get_solution ## -- Begin function get_solution .p2align 4, 0x90 _get_solution: ## @get_solution .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $64, %rsp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) movl %edx, -20(%rbp) movl $100, %edi callq _malloc movq %rax, -32(%rbp) movq -32(%rbp), %rax movb $0, (%rax) movq -8(%rbp), %rax movl (%rax), %eax movl %eax, -36(%rbp) movq -8(%rbp), %rax movl (%rax), %edx leaq -48(%rbp), %rdi leaq L_.str.3(%rip), %rsi movb $0, %al callq _asprintf movq -32(%rbp), %rdi movq -48(%rbp), %rsi movq $-1, %rdx callq ___strcat_chk movq -48(%rbp), %rdi callq _free movl $0, -52(%rbp) LBB3_1: ## =>This Inner Loop Header: Depth=1 movl -52(%rbp), %eax cmpl -20(%rbp), %eax jge LBB3_9 ## %bb.2: ## in Loop: Header=BB3_1 Depth=1 movq -16(%rbp), %rax movl -52(%rbp), %ecx movl $1, %edx ## kill: def $cl killed $ecx shll %cl, %edx movl %edx, %ecx movslq %ecx, %rcx andq %rcx, %rax movl -52(%rbp), %ecx ## kill: def $rcx killed $ecx ## kill: def $cl killed $rcx sarq %cl, %rax ## kill: def $eax killed $eax killed $rax movl %eax, -56(%rbp) cmpl $1, -56(%rbp) jne LBB3_4 ## %bb.3: ## in Loop: Header=BB3_1 Depth=1 movq -8(%rbp), %rax movl -52(%rbp), %ecx addl $1, %ecx movslq %ecx, %rcx movl (%rax,%rcx,4), %eax addl -36(%rbp), %eax movl %eax, -36(%rbp) movq -8(%rbp), %rax movl -52(%rbp), %ecx addl $1, %ecx movslq %ecx, %rcx movl (%rax,%rcx,4), %edx leaq -48(%rbp), %rdi leaq L_.str.4(%rip), %rsi movb $0, %al callq _asprintf movq -32(%rbp), %rdi movq -48(%rbp), %rsi movq $-1, %rdx callq ___strcat_chk movq -48(%rbp), %rdi callq _free jmp LBB3_7 LBB3_4: ## in Loop: Header=BB3_1 Depth=1 cmpl $0, -56(%rbp) jne LBB3_6 ## %bb.5: ## in Loop: Header=BB3_1 Depth=1 movq -8(%rbp), %rax movl -52(%rbp), %ecx addl $1, %ecx movslq %ecx, %rcx movl (%rax,%rcx,4), %ecx movl -36(%rbp), %eax subl %ecx, %eax movl %eax, -36(%rbp) movq -8(%rbp), %rax movl -52(%rbp), %ecx addl $1, %ecx movslq %ecx, %rcx movl (%rax,%rcx,4), %edx leaq -48(%rbp), %rdi leaq L_.str.5(%rip), %rsi movb $0, %al callq _asprintf movq -32(%rbp), %rdi movq -48(%rbp), %rsi movq $-1, %rdx callq ___strcat_chk movq -48(%rbp), %rdi callq _free LBB3_6: ## in Loop: Header=BB3_1 Depth=1 jmp LBB3_7 LBB3_7: ## in Loop: Header=BB3_1 Depth=1 jmp LBB3_8 LBB3_8: ## in Loop: Header=BB3_1 Depth=1 movl -52(%rbp), %eax addl $1, %eax movl %eax, -52(%rbp) jmp LBB3_1 LBB3_9: movl -36(%rbp), %edx leaq -48(%rbp), %rdi leaq L_.str.6(%rip), %rsi movb $0, %al callq _asprintf movq -32(%rbp), %rdi movq -48(%rbp), %rsi movq $-1, %rdx callq ___strcat_chk movq -48(%rbp), %rdi callq _free movq -32(%rbp), %rax addq $64, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl ___cmpfunc ## -- Begin function __cmpfunc .p2align 4, 0x90 ___cmpfunc: ## @__cmpfunc .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) movq -8(%rbp), %rax movq (%rax), %rdi movq -16(%rbp), %rax movq (%rax), %rsi callq _strcmp movl %eax, %ecx xorl %eax, %eax subl %ecx, %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 "-1\n" L_.str.2: ## @.str.2 .asciz "%s\n" L_.str.3: ## @.str.3 .asciz "%d" L_.str.4: ## @.str.4 .asciz "+%d" L_.str.5: ## @.str.5 .asciz "-%d" L_.str.6: ## @.str.6 .asciz "=%d" .subsections_via_symbols
the_stack_data/72011813.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/332775.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] str wzr, [sp, #4] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 bl _getchar str w0, [sp, #8] adds w8, w0, #1 cset w8, eq tbnz w8, #0, LBB0_10 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #8] subs w8, w8, #10 cset w8, eq tbnz w8, #0, LBB0_6 b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #8] subs w8, w8, #9 cset w8, eq tbnz w8, #0, LBB0_6 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #8] subs w8, w8, #32 cset w8, eq tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_1 Depth=1 mov w8, #1 str w8, [sp, #4] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf b LBB0_9 LBB0_6: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #4] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB0_8 b LBB0_7 LBB0_7: ; in Loop: Header=BB0_1 Depth=1 str wzr, [sp, #4] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf b LBB0_8 LBB0_8: ; in Loop: Header=BB0_1 Depth=1 b LBB0_9 LBB0_9: ; in Loop: Header=BB0_1 Depth=1 b LBB0_1 LBB0_10: ldur w0, [x29, #-4] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "|" 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 _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) movl $0, -12(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 callq _getchar movl %eax, -8(%rbp) cmpl $-1, %eax je LBB0_10 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 cmpl $10, -8(%rbp) je LBB0_6 ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 cmpl $9, -8(%rbp) je LBB0_6 ## %bb.4: ## in Loop: Header=BB0_1 Depth=1 cmpl $32, -8(%rbp) je LBB0_6 ## %bb.5: ## in Loop: Header=BB0_1 Depth=1 movl $1, -12(%rbp) leaq L_.str(%rip), %rdi movb $0, %al callq _printf jmp LBB0_9 LBB0_6: ## in Loop: Header=BB0_1 Depth=1 cmpl $1, -12(%rbp) jne LBB0_8 ## %bb.7: ## in Loop: Header=BB0_1 Depth=1 movl $0, -12(%rbp) leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf LBB0_8: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_9 LBB0_9: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_1 LBB0_10: movl -4(%rbp), %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "|" L_.str.1: ## @.str.1 .asciz "\n" .subsections_via_symbols
the_stack_data/155261.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _t_fun ; -- Begin function t_fun .p2align 2 _t_fun: ; @t_fun .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, _mutex1@PAGE add x0, x0, _mutex1@PAGEOFF str x0, [sp] ; 8-byte Folded Spill bl _pthread_mutex_lock ldr x0, [sp] ; 8-byte Folded Reload adrp x9, _myglobal@GOTPAGE ldr x9, [x9, _myglobal@GOTPAGEOFF] ldar w8, [x9] add w8, w8, #1 stlr w8, [x9] bl _pthread_mutex_unlock mov x0, #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: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #0 stur w8, [x29, #-20] ; 4-byte Folded Spill stur wzr, [x29, #-4] sub x0, x29, #16 mov x3, #0 str x3, [sp, #16] ; 8-byte Folded Spill mov x1, x3 adrp x2, _t_fun@PAGE add x2, x2, _t_fun@PAGEOFF bl _pthread_create adrp x0, _mutex2@PAGE add x0, x0, _mutex2@PAGEOFF str x0, [sp, #8] ; 8-byte Folded Spill bl _pthread_mutex_lock ldr x0, [sp, #8] ; 8-byte Folded Reload adrp x9, _myglobal@GOTPAGE ldr x9, [x9, _myglobal@GOTPAGEOFF] ldar w8, [x9] add w8, w8, #1 stlr w8, [x9] bl _pthread_mutex_unlock ldr x1, [sp, #16] ; 8-byte Folded Reload ldur x0, [x29, #-16] bl _pthread_join ldur w0, [x29, #-20] ; 4-byte Folded Reload ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .section __DATA,__data .globl _mutex1 ; @mutex1 .p2align 3 _mutex1: .quad 850045863 ; 0x32aaaba7 .space 56 .globl _mutex2 ; @mutex2 .p2align 3 _mutex2: .quad 850045863 ; 0x32aaaba7 .space 56 .comm _myglobal,4,2 ; @myglobal .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _t_fun ## -- Begin function t_fun .p2align 4, 0x90 _t_fun: ## @t_fun .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 _mutex1(%rip), %rdi callq _pthread_mutex_lock movq _myglobal@GOTPCREL(%rip), %rcx movl (%rcx), %eax incl %eax xchgl %eax, (%rcx) leaq _mutex1(%rip), %rdi callq _pthread_mutex_unlock xorl %eax, %eax ## kill: def $rax killed $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 _t_fun(%rip), %rdx xorl %eax, %eax movl %eax, %ecx leaq -16(%rbp), %rdi movq %rcx, %rsi callq _pthread_create leaq _mutex2(%rip), %rdi callq _pthread_mutex_lock movq _myglobal@GOTPCREL(%rip), %rcx movl (%rcx), %eax incl %eax xchgl %eax, (%rcx) leaq _mutex2(%rip), %rdi callq _pthread_mutex_unlock movq -16(%rbp), %rdi xorl %eax, %eax movl %eax, %esi callq _pthread_join xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __DATA,__data .globl _mutex1 ## @mutex1 .p2align 3 _mutex1: .quad 850045863 ## 0x32aaaba7 .space 56 .globl _mutex2 ## @mutex2 .p2align 3 _mutex2: .quad 850045863 ## 0x32aaaba7 .space 56 .comm _myglobal,4,2 ## @myglobal .subsections_via_symbols
the_stack_data/72012783.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _partition ; -- Begin function partition .p2align 2 _partition: ; @partition .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] ldr w8, [x8, x9, lsl #2] str w8, [sp, #12] b LBB0_1 LBB0_1: ; =>This Loop Header: Depth=1 ; Child Loop BB0_3 Depth 2 ; Child Loop BB0_11 Depth 2 ldr w8, [sp, #20] ldr w9, [sp, #16] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_8 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 b LBB0_3 LBB0_3: ; Parent Loop BB0_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr x8, [sp, #24] ldrsw x9, [sp, #16] ldr w8, [x8, x9, lsl #2] ldr w9, [sp, #12] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_5 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_3 Depth=2 ldr w8, [sp, #16] subs w8, w8, #1 str w8, [sp, #16] b LBB0_3 LBB0_5: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #20] ldr w9, [sp, #16] subs w8, w8, w9 cset w8, lt tbnz w8, #0, LBB0_7 b LBB0_6 LBB0_6: b LBB0_18 LBB0_7: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #24] ldrsw x9, [sp, #16] ldr w8, [x8, x9, lsl #2] str w8, [sp, #8] ldr x8, [sp, #24] ldrsw x9, [sp, #20] ldr w8, [x8, x9, lsl #2] ldr x9, [sp, #24] ldrsw x10, [sp, #16] str w8, [x9, x10, lsl #2] ldr w8, [sp, #8] ldr x9, [sp, #24] ldrsw x10, [sp, #20] mov x11, x10 add w11, w11, #1 str w11, [sp, #20] str w8, [x9, x10, lsl #2] b LBB0_9 LBB0_8: b LBB0_18 LBB0_9: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #20] ldr w9, [sp, #16] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_16 b LBB0_10 LBB0_10: ; in Loop: Header=BB0_1 Depth=1 b LBB0_11 LBB0_11: ; Parent Loop BB0_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr x8, [sp, #24] ldrsw x9, [sp, #20] ldr w8, [x8, x9, lsl #2] ldr w9, [sp, #12] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB0_13 b LBB0_12 LBB0_12: ; in Loop: Header=BB0_11 Depth=2 ldr w8, [sp, #20] add w8, w8, #1 str w8, [sp, #20] b LBB0_11 LBB0_13: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #20] ldr w9, [sp, #16] subs w8, w8, w9 cset w8, lt tbnz w8, #0, LBB0_15 b LBB0_14 LBB0_14: b LBB0_18 LBB0_15: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #24] ldrsw x9, [sp, #20] ldr w8, [x8, x9, lsl #2] str w8, [sp, #8] ldr x8, [sp, #24] ldrsw x9, [sp, #16] ldr w8, [x8, x9, lsl #2] ldr x9, [sp, #24] ldrsw x10, [sp, #20] str w8, [x9, x10, lsl #2] ldr w8, [sp, #8] ldr x9, [sp, #24] ldrsw x10, [sp, #16] mov x11, x10 subs w11, w11, #1 str w11, [sp, #16] str w8, [x9, x10, lsl #2] b LBB0_17 LBB0_16: b LBB0_18 LBB0_17: ; in Loop: Header=BB0_1 Depth=1 b LBB0_1 LBB0_18: ldr w0, [sp, #16] add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _quicksort ; -- Begin function quicksort .p2align 2 _quicksort: ; @quicksort .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] stur w1, [x29, #-12] str w2, [sp, #16] ldur w8, [x29, #-12] ldr w9, [sp, #16] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: ldur x0, [x29, #-8] ldur w1, [x29, #-12] ldr w2, [sp, #16] bl _partition str w0, [sp, #12] ldur x0, [x29, #-8] ldur w1, [x29, #-12] ldr w8, [sp, #12] subs w2, w8, #1 bl _quicksort ldur x0, [x29, #-8] ldr w8, [sp, #12] add w1, w8, #1 ldr w2, [sp, #16] bl _quicksort b LBB1_3 LBB1_2: b LBB1_3 LBB1_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: 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, #2352 movk w9, #61, lsl #16 adrp x16, ___chkstk_darwin@GOTPAGE ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF] blr x16 sub sp, sp, #976, lsl #12 ; =3997696 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, #36] mov w8, #1 str w8, [sp, #20] str w8, [sp, #16] mov x9, sp add x8, sp, #32 str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _scanf str wzr, [sp, #24] b LBB2_1 LBB2_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #24] ldr w9, [sp, #32] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB2_4 b LBB2_2 LBB2_2: ; in Loop: Header=BB2_1 Depth=1 ldrsw x9, [sp, #24] add x8, sp, #40 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 LBB2_3 LBB2_3: ; in Loop: Header=BB2_1 Depth=1 ldr w8, [sp, #24] add w8, w8, #1 str w8, [sp, #24] b LBB2_1 LBB2_4: ldr w8, [sp, #32] subs w2, w8, #1 add x0, sp, #40 mov w1, #0 bl _quicksort mov x9, sp add x8, sp, #28 str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _scanf str wzr, [sp, #24] b LBB2_5 LBB2_5: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #16] ldr w9, [sp, #28] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB2_11 b LBB2_6 LBB2_6: ; in Loop: Header=BB2_5 Depth=1 ldrsw x8, [sp, #24] add x9, sp, #40 ldr w8, [x9, x8, lsl #2] ldr w10, [sp, #24] add w10, w10, #1 ldr w9, [x9, w10, sxtw #2] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB2_8 b LBB2_7 LBB2_7: ; in Loop: Header=BB2_5 Depth=1 b LBB2_10 LBB2_8: ; in Loop: Header=BB2_5 Depth=1 ldr w8, [sp, #16] add w8, w8, #1 str w8, [sp, #16] b LBB2_9 LBB2_9: ; in Loop: Header=BB2_5 Depth=1 b LBB2_10 LBB2_10: ; in Loop: Header=BB2_5 Depth=1 ldr w8, [sp, #24] add w8, w8, #1 str w8, [sp, #24] b LBB2_5 LBB2_11: ldrsw x9, [sp, #24] add x8, sp, #40 ldr w9, [x8, x9, lsl #2] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf b LBB2_12 LBB2_12: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #24] add w8, w8, #1 str w8, [sp, #24] ldrsw x8, [sp, #24] add x9, sp, #40 ldr w8, [x9, x8, lsl #2] ldr w10, [sp, #24] subs w10, w10, #1 ldr w9, [x9, w10, sxtw #2] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB2_14 b LBB2_13 LBB2_13: ; in Loop: Header=BB2_12 Depth=1 ldr w8, [sp, #20] add w8, w8, #1 str w8, [sp, #20] b LBB2_15 LBB2_14: b LBB2_16 LBB2_15: ; in Loop: Header=BB2_12 Depth=1 b LBB2_12 LBB2_16: ldr w9, [sp, #20] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf ldur x9, [x29, #-24] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB2_18 b LBB2_17 LBB2_17: bl ___stack_chk_fail LBB2_18: mov w0, #0 add sp, sp, #976, lsl #12 ; =3997696 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 "%d" l_.str.1: ; @.str.1 .asciz "%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 _partition ## -- Begin function partition .p2align 4, 0x90 _partition: ## @partition .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 movl (%rax,%rcx,4), %eax movl %eax, -20(%rbp) LBB0_1: ## =>This Loop Header: Depth=1 ## Child Loop BB0_3 Depth 2 ## Child Loop BB0_11 Depth 2 movl -12(%rbp), %eax cmpl -16(%rbp), %eax jge LBB0_8 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_3 LBB0_3: ## Parent Loop BB0_1 Depth=1 ## => This Inner Loop Header: Depth=2 movq -8(%rbp), %rax movslq -16(%rbp), %rcx movl (%rax,%rcx,4), %eax cmpl -20(%rbp), %eax jge LBB0_5 ## %bb.4: ## in Loop: Header=BB0_3 Depth=2 movl -16(%rbp), %eax addl $-1, %eax movl %eax, -16(%rbp) jmp LBB0_3 LBB0_5: ## in Loop: Header=BB0_1 Depth=1 movl -12(%rbp), %eax cmpl -16(%rbp), %eax jl LBB0_7 ## %bb.6: jmp LBB0_18 LBB0_7: ## in Loop: Header=BB0_1 Depth=1 movq -8(%rbp), %rax movslq -16(%rbp), %rcx movl (%rax,%rcx,4), %eax movl %eax, -24(%rbp) movq -8(%rbp), %rax movslq -12(%rbp), %rcx movl (%rax,%rcx,4), %edx movq -8(%rbp), %rax movslq -16(%rbp), %rcx movl %edx, (%rax,%rcx,4) movl -24(%rbp), %edx movq -8(%rbp), %rax movl -12(%rbp), %ecx movl %ecx, %esi addl $1, %esi movl %esi, -12(%rbp) movslq %ecx, %rcx movl %edx, (%rax,%rcx,4) jmp LBB0_9 LBB0_8: jmp LBB0_18 LBB0_9: ## in Loop: Header=BB0_1 Depth=1 movl -12(%rbp), %eax cmpl -16(%rbp), %eax jge LBB0_16 ## %bb.10: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_11 LBB0_11: ## Parent Loop BB0_1 Depth=1 ## => This Inner Loop Header: Depth=2 movq -8(%rbp), %rax movslq -12(%rbp), %rcx movl (%rax,%rcx,4), %eax cmpl -20(%rbp), %eax jle LBB0_13 ## %bb.12: ## in Loop: Header=BB0_11 Depth=2 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB0_11 LBB0_13: ## in Loop: Header=BB0_1 Depth=1 movl -12(%rbp), %eax cmpl -16(%rbp), %eax jl LBB0_15 ## %bb.14: jmp LBB0_18 LBB0_15: ## in Loop: Header=BB0_1 Depth=1 movq -8(%rbp), %rax movslq -12(%rbp), %rcx movl (%rax,%rcx,4), %eax movl %eax, -24(%rbp) movq -8(%rbp), %rax movslq -16(%rbp), %rcx movl (%rax,%rcx,4), %edx movq -8(%rbp), %rax movslq -12(%rbp), %rcx movl %edx, (%rax,%rcx,4) movl -24(%rbp), %edx movq -8(%rbp), %rax movl -16(%rbp), %ecx movl %ecx, %esi addl $-1, %esi movl %esi, -16(%rbp) movslq %ecx, %rcx movl %edx, (%rax,%rcx,4) jmp LBB0_17 LBB0_16: jmp LBB0_18 LBB0_17: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_1 LBB0_18: movl -16(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .globl _quicksort ## -- Begin function quicksort .p2align 4, 0x90 _quicksort: ## @quicksort .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) movl %edx, -16(%rbp) movl -12(%rbp), %eax cmpl -16(%rbp), %eax jge LBB1_2 ## %bb.1: movq -8(%rbp), %rdi movl -12(%rbp), %esi movl -16(%rbp), %edx callq _partition movl %eax, -20(%rbp) movq -8(%rbp), %rdi movl -12(%rbp), %esi movl -20(%rbp), %edx subl $1, %edx callq _quicksort movq -8(%rbp), %rdi movl -20(%rbp), %esi addl $1, %esi movl -16(%rbp), %edx callq _quicksort jmp LBB1_3 LBB1_2: jmp LBB1_3 LBB1_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 movl $4000048, %eax ## imm = 0x3D0930 callq ____chkstk_darwin subq %rax, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -4000020(%rbp) movl $1, -4000036(%rbp) movl $1, -4000040(%rbp) leaq L_.str(%rip), %rdi leaq -4000024(%rbp), %rsi movb $0, %al callq _scanf movl $0, -4000032(%rbp) LBB2_1: ## =>This Inner Loop Header: Depth=1 movl -4000032(%rbp), %eax cmpl -4000024(%rbp), %eax jge LBB2_4 ## %bb.2: ## in Loop: Header=BB2_1 Depth=1 movslq -4000032(%rbp), %rax leaq -4000016(%rbp), %rsi shlq $2, %rax addq %rax, %rsi leaq L_.str.1(%rip), %rdi movb $0, %al callq _scanf ## %bb.3: ## in Loop: Header=BB2_1 Depth=1 movl -4000032(%rbp), %eax addl $1, %eax movl %eax, -4000032(%rbp) jmp LBB2_1 LBB2_4: leaq -4000016(%rbp), %rdi movl -4000024(%rbp), %edx subl $1, %edx xorl %esi, %esi callq _quicksort leaq L_.str(%rip), %rdi leaq -4000028(%rbp), %rsi movb $0, %al callq _scanf movl $0, -4000032(%rbp) LBB2_5: ## =>This Inner Loop Header: Depth=1 movl -4000040(%rbp), %eax cmpl -4000028(%rbp), %eax jge LBB2_11 ## %bb.6: ## in Loop: Header=BB2_5 Depth=1 movslq -4000032(%rbp), %rax movl -4000016(%rbp,%rax,4), %eax movl -4000032(%rbp), %ecx addl $1, %ecx movslq %ecx, %rcx cmpl -4000016(%rbp,%rcx,4), %eax jne LBB2_8 ## %bb.7: ## in Loop: Header=BB2_5 Depth=1 jmp LBB2_10 LBB2_8: ## in Loop: Header=BB2_5 Depth=1 movl -4000040(%rbp), %eax addl $1, %eax movl %eax, -4000040(%rbp) ## %bb.9: ## in Loop: Header=BB2_5 Depth=1 jmp LBB2_10 LBB2_10: ## in Loop: Header=BB2_5 Depth=1 movl -4000032(%rbp), %eax addl $1, %eax movl %eax, -4000032(%rbp) jmp LBB2_5 LBB2_11: movslq -4000032(%rbp), %rax movl -4000016(%rbp,%rax,4), %esi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf LBB2_12: ## =>This Inner Loop Header: Depth=1 movl -4000032(%rbp), %eax addl $1, %eax movl %eax, -4000032(%rbp) movslq -4000032(%rbp), %rax movl -4000016(%rbp,%rax,4), %eax movl -4000032(%rbp), %ecx subl $1, %ecx movslq %ecx, %rcx cmpl -4000016(%rbp,%rcx,4), %eax jne LBB2_14 ## %bb.13: ## in Loop: Header=BB2_12 Depth=1 movl -4000036(%rbp), %eax addl $1, %eax movl %eax, -4000036(%rbp) jmp LBB2_15 LBB2_14: jmp LBB2_16 LBB2_15: ## in Loop: Header=BB2_12 Depth=1 jmp LBB2_12 LBB2_16: movl -4000036(%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 LBB2_18 ## %bb.17: xorl %eax, %eax addq $4000048, %rsp ## imm = 0x3D0930 popq %rbp retq LBB2_18: 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 " L_.str.2: ## @.str.2 .asciz "%d\n" .subsections_via_symbols
the_stack_data/703957.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/64252.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, #1072 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] str wzr, [sp, #60] str wzr, [sp, #56] 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, #40] ldr x8, [sp, #40] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _perror mov w8, #1 str w8, [sp, #60] b LBB0_8 LBB0_2: ldr x2, [sp, #40] add x0, sp, #64 str x0, [sp, #32] ; 8-byte Folded Spill mov w1, #256 bl _fgets ldr x0, [sp, #32] ; 8-byte Folded Reload bl _strlen mov x8, x0 ldr x0, [sp, #32] ; 8-byte Folded Reload subs x9, x8, #1 mov x8, x0 add x8, x8, x9 strb wzr, [x8] bl _atoi str w0, [sp, #52] b LBB0_3 LBB0_3: ; =>This Inner Loop Header: Depth=1 ldr x2, [sp, #40] add x0, sp, #64 mov w1, #256 bl _fgets subs x8, x0, #0 cset w8, eq tbnz w8, #0, LBB0_7 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_3 Depth=1 add x0, sp, #64 str x0, [sp, #16] ; 8-byte Folded Spill bl _strlen mov x8, x0 ldr x0, [sp, #16] ; 8-byte Folded Reload subs x9, x8, #1 mov x8, x0 add x8, x8, x9 strb wzr, [x8] ldr w8, [sp, #52] str w8, [sp, #28] ; 4-byte Folded Spill bl _atoi ldr w8, [sp, #28] ; 4-byte Folded Reload subs w8, w8, w0 cset w8, ge tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_3 Depth=1 ldr w8, [sp, #56] add w8, w8, #1 str w8, [sp, #56] b LBB0_6 LBB0_6: ; in Loop: Header=BB0_3 Depth=1 add x0, sp, #64 bl _atoi str w0, [sp, #52] b LBB0_3 LBB0_7: ldr w9, [sp, #56] ; 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 x0, [sp, #40] bl _fclose str wzr, [sp, #60] b LBB0_8 LBB0_8: ldr w8, [sp, #60] 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_10 b LBB0_9 LBB0_9: bl ___stack_chk_fail LBB0_10: ldr w0, [sp, #12] ; 4-byte Folded Reload add sp, sp, #1072 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_1" l_.str.1: ; @.str.1 .asciz "r" l_.str.2: ; @.str.2 .asciz "Failed to open the file" l_.str.3: ; @.str.3 .asciz "%d\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $1040, %rsp ## imm = 0x410 movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -1012(%rbp) movl $0, -1016(%rbp) leaq L_.str(%rip), %rdi leaq L_.str.1(%rip), %rsi callq _fopen movq %rax, -1032(%rbp) cmpq $0, -1032(%rbp) jne LBB0_2 ## %bb.1: leaq L_.str.2(%rip), %rdi callq _perror movl $1, -1012(%rbp) jmp LBB0_8 LBB0_2: leaq -1008(%rbp), %rdi movq -1032(%rbp), %rdx movl $256, %esi ## imm = 0x100 callq _fgets leaq -1008(%rbp), %rdi callq _strlen subq $1, %rax movb $0, -1008(%rbp,%rax) leaq -1008(%rbp), %rdi callq _atoi movl %eax, -1020(%rbp) LBB0_3: ## =>This Inner Loop Header: Depth=1 leaq -1008(%rbp), %rdi movq -1032(%rbp), %rdx movl $256, %esi ## imm = 0x100 callq _fgets cmpq $0, %rax je LBB0_7 ## %bb.4: ## in Loop: Header=BB0_3 Depth=1 leaq -1008(%rbp), %rdi callq _strlen subq $1, %rax movb $0, -1008(%rbp,%rax) movl -1020(%rbp), %eax movl %eax, -1036(%rbp) ## 4-byte Spill leaq -1008(%rbp), %rdi callq _atoi movl %eax, %ecx movl -1036(%rbp), %eax ## 4-byte Reload cmpl %ecx, %eax jge LBB0_6 ## %bb.5: ## in Loop: Header=BB0_3 Depth=1 movl -1016(%rbp), %eax addl $1, %eax movl %eax, -1016(%rbp) LBB0_6: ## in Loop: Header=BB0_3 Depth=1 leaq -1008(%rbp), %rdi callq _atoi movl %eax, -1020(%rbp) jmp LBB0_3 LBB0_7: movl -1016(%rbp), %esi leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf movq -1032(%rbp), %rdi callq _fclose movl $0, -1012(%rbp) LBB0_8: movl -1012(%rbp), %eax movl %eax, -1040(%rbp) ## 4-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_10 ## %bb.9: movl -1040(%rbp), %eax ## 4-byte Reload addq $1040, %rsp ## imm = 0x410 popq %rbp retq LBB0_10: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "input_1" L_.str.1: ## @.str.1 .asciz "r" L_.str.2: ## @.str.2 .asciz "Failed to open the file" L_.str.3: ## @.str.3 .asciz "%d\n" .subsections_via_symbols
the_stack_data/84714.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _stem ; -- Begin function stem .p2align 2 _stem: ; @stem .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #16] str w1, [sp, #12] str w2, [sp, #8] ldr x8, [sp, #16] adrp x9, _b@PAGE str x8, [x9, _b@PAGEOFF] ldr w9, [sp, #8] adrp x8, _k@PAGE str w9, [x8, _k@PAGEOFF] ldr w10, [sp, #12] adrp x9, _k0@PAGE str w10, [x9, _k0@PAGEOFF] ldr w8, [x8, _k@PAGEOFF] ldr w9, [x9, _k0@PAGEOFF] add w9, w9, #1 subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: adrp x8, _k@PAGE ldr w8, [x8, _k@PAGEOFF] stur w8, [x29, #-4] b LBB0_5 LBB0_2: bl _step1ab adrp x8, _k@PAGE ldr w8, [x8, _k@PAGEOFF] adrp x9, _k0@PAGE ldr w9, [x9, _k0@PAGEOFF] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: bl _step1c bl _step2 bl _step3 bl _step4 bl _step5 b LBB0_4 LBB0_4: adrp x8, _k@PAGE ldr w8, [x8, _k@PAGEOFF] stur w8, [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 .globl _increase_s ; -- Begin function increase_s .p2align 2 _increase_s: ; @increase_s .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, _i_max@PAGE ldr w9, [x8, _i_max@PAGEOFF] add w9, w9, #50 str w9, [x8, _i_max@PAGEOFF] ldr w8, [x8, _i_max@PAGEOFF] add w9, w8, #1 ; implicit-def: $x8 mov x8, x9 sxtw x0, w8 bl _malloc stur x0, [x29, #-8] stur wzr, [x29, #-12] b LBB1_1 LBB1_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-12] adrp x9, _i_max@PAGE ldr w9, [x9, _i_max@PAGEOFF] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_4 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 adrp x8, _s@PAGE ldr x8, [x8, _s@PAGEOFF] ldursw x9, [x29, #-12] add x8, x8, x9 ldrb w8, [x8] ldur x9, [x29, #-8] ldursw x10, [x29, #-12] add x9, x9, x10 strb w8, [x9] 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 x8, _s@PAGE str x8, [sp, #8] ; 8-byte Folded Spill ldr x0, [x8, _s@PAGEOFF] bl _free ldr x9, [sp, #8] ; 8-byte Folded Reload ldur x8, [x29, #-8] str x8, [x9, _s@PAGEOFF] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] stur w0, [x29, #-8] stur x1, [x29, #-16] adrp x8, _i_max@PAGE ldr w8, [x8, _i_max@PAGEOFF] mov w9, #1 str w9, [sp, #12] ; 4-byte Folded Spill add w9, w8, #1 ; implicit-def: $x8 mov x8, x9 sxtw x0, w8 bl _malloc ldr w8, [sp, #12] ; 4-byte Folded Reload adrp x9, _s@PAGE str x0, [x9, _s@PAGEOFF] stur w8, [x29, #-20] b LBB2_1 LBB2_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-20] ldur w9, [x29, #-8] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB2_6 b LBB2_2 LBB2_2: ; in Loop: Header=BB2_1 Depth=1 ldur x8, [x29, #-16] ldursw x9, [x29, #-20] ldr x0, [x8, x9, lsl #3] adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF bl _fopen str x0, [sp, #16] ldr x8, [sp, #16] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB2_4 b LBB2_3 LBB2_3: adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] ldr x0, [x8] ldur x8, [x29, #-16] ldursw x9, [x29, #-20] ldr x8, [x8, x9, lsl #3] mov x9, sp str x8, [x9] adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF bl _fprintf mov w0, #1 bl _exit LBB2_4: ; in Loop: Header=BB2_1 Depth=1 ldr x0, [sp, #16] bl _stemfile b LBB2_5 LBB2_5: ; in Loop: Header=BB2_1 Depth=1 ldur w8, [x29, #-20] add w8, w8, #1 stur w8, [x29, #-20] b LBB2_1 LBB2_6: adrp x8, _s@PAGE ldr x0, [x8, _s@PAGEOFF] bl _free 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 stemfile _stemfile: ; @stemfile .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] b LBB3_1 LBB3_1: ; =>This Loop Header: Depth=1 ; Child Loop BB3_6 Depth 2 ldur x0, [x29, #-8] bl _getc stur w0, [x29, #-12] ldur w8, [x29, #-12] adds w8, w8, #1 cset w8, ne tbnz w8, #0, LBB3_3 b LBB3_2 LBB3_2: ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret LBB3_3: ; in Loop: Header=BB3_1 Depth=1 ldur w0, [x29, #-12] bl _isupper subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB3_5 b LBB3_4 LBB3_4: ; in Loop: Header=BB3_1 Depth=1 ldur w0, [x29, #-12] bl _islower subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB3_13 b LBB3_5 LBB3_5: ; in Loop: Header=BB3_1 Depth=1 stur wzr, [x29, #-16] b LBB3_6 LBB3_6: ; Parent Loop BB3_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldur w8, [x29, #-16] adrp x9, _i_max@PAGE ldr w9, [x9, _i_max@PAGEOFF] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB3_8 b LBB3_7 LBB3_7: ; in Loop: Header=BB3_6 Depth=2 bl _increase_s b LBB3_8 LBB3_8: ; in Loop: Header=BB3_6 Depth=2 ldur w0, [x29, #-12] bl _tolower stur w0, [x29, #-12] ldur w8, [x29, #-12] adrp x9, _s@PAGE ldr x9, [x9, _s@PAGEOFF] ldursw x10, [x29, #-16] strb w8, [x9, x10] ldur w8, [x29, #-16] add w8, w8, #1 stur w8, [x29, #-16] ldur x0, [x29, #-8] bl _getc stur w0, [x29, #-12] ldur w0, [x29, #-12] bl _isupper subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB3_11 b LBB3_9 LBB3_9: ; in Loop: Header=BB3_6 Depth=2 ldur w0, [x29, #-12] bl _islower subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB3_11 b LBB3_10 LBB3_10: ; in Loop: Header=BB3_1 Depth=1 ldur w0, [x29, #-12] ldur x1, [x29, #-8] bl _ungetc b LBB3_12 LBB3_11: ; in Loop: Header=BB3_6 Depth=2 b LBB3_6 LBB3_12: ; in Loop: Header=BB3_1 Depth=1 adrp x8, _s@PAGE str x8, [sp, #24] ; 8-byte Folded Spill ldr x9, [x8, _s@PAGEOFF] str x9, [sp, #16] ; 8-byte Folded Spill ldr x0, [x8, _s@PAGEOFF] ldur w8, [x29, #-16] subs w2, w8, #1 mov w1, #0 bl _stem ldr x9, [sp, #16] ; 8-byte Folded Reload ldr x8, [sp, #24] ; 8-byte Folded Reload add w10, w0, #1 add x9, x9, w10, sxtw strb wzr, [x9] ldr x8, [x8, _s@PAGEOFF] mov x9, sp str x8, [x9] adrp x0, l_.str.64@PAGE add x0, x0, l_.str.64@PAGEOFF bl _printf b LBB3_14 LBB3_13: ; in Loop: Header=BB3_1 Depth=1 ldur w0, [x29, #-12] bl _putchar b LBB3_14 LBB3_14: ; in Loop: Header=BB3_1 Depth=1 b LBB3_1 .cfi_endproc ; -- End function .p2align 2 ; -- Begin function step1ab _step1ab: ; @step1ab .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, _b@PAGE ldr x8, [x8, _b@PAGEOFF] adrp x9, _k@PAGE ldrsw x9, [x9, _k@PAGEOFF] ldrsb w8, [x8, x9] subs w8, w8, #115 cset w8, ne tbnz w8, #0, LBB4_10 b LBB4_1 LBB4_1: adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _ends subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB4_3 b LBB4_2 LBB4_2: adrp x9, _k@PAGE ldr w8, [x9, _k@PAGEOFF] subs w8, w8, #2 str w8, [x9, _k@PAGEOFF] b LBB4_9 LBB4_3: adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _ends subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB4_5 b LBB4_4 LBB4_4: adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _setto b LBB4_8 LBB4_5: adrp x8, _b@PAGE ldr x8, [x8, _b@PAGEOFF] adrp x9, _k@PAGE ldr w9, [x9, _k@PAGEOFF] subs w9, w9, #1 ldrsb w8, [x8, w9, sxtw] subs w8, w8, #115 cset w8, eq tbnz w8, #0, LBB4_7 b LBB4_6 LBB4_6: adrp x9, _k@PAGE ldr w8, [x9, _k@PAGEOFF] subs w8, w8, #1 str w8, [x9, _k@PAGEOFF] b LBB4_7 LBB4_7: b LBB4_8 LBB4_8: b LBB4_9 LBB4_9: b LBB4_10 LBB4_10: adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _ends subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB4_14 b LBB4_11 LBB4_11: bl _m subs w8, w0, #0 cset w8, le tbnz w8, #0, LBB4_13 b LBB4_12 LBB4_12: adrp x9, _k@PAGE ldr w8, [x9, _k@PAGEOFF] subs w8, w8, #1 str w8, [x9, _k@PAGEOFF] b LBB4_13 LBB4_13: b LBB4_38 LBB4_14: adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _ends subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB4_16 b LBB4_15 LBB4_15: adrp x0, l_.str.7@PAGE add x0, x0, l_.str.7@PAGEOFF bl _ends subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB4_37 b LBB4_16 LBB4_16: bl _vowelinstem subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB4_37 b LBB4_17 LBB4_17: adrp x8, _j@PAGE ldr w8, [x8, _j@PAGEOFF] adrp x9, _k@PAGE str w8, [x9, _k@PAGEOFF] adrp x0, l_.str.8@PAGE add x0, x0, l_.str.8@PAGEOFF bl _ends subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB4_19 b LBB4_18 LBB4_18: adrp x0, l_.str.9@PAGE add x0, x0, l_.str.9@PAGEOFF bl _setto b LBB4_36 LBB4_19: adrp x0, l_.str.10@PAGE add x0, x0, l_.str.10@PAGEOFF bl _ends subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB4_21 b LBB4_20 LBB4_20: adrp x0, l_.str.11@PAGE add x0, x0, l_.str.11@PAGEOFF bl _setto b LBB4_35 LBB4_21: adrp x0, l_.str.12@PAGE add x0, x0, l_.str.12@PAGEOFF bl _ends subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB4_23 b LBB4_22 LBB4_22: adrp x0, l_.str.13@PAGE add x0, x0, l_.str.13@PAGEOFF bl _setto b LBB4_34 LBB4_23: adrp x8, _k@PAGE ldr w0, [x8, _k@PAGEOFF] bl _doublec subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB4_29 b LBB4_24 LBB4_24: adrp x9, _k@PAGE ldr w8, [x9, _k@PAGEOFF] subs w8, w8, #1 str w8, [x9, _k@PAGEOFF] adrp x8, _b@PAGE ldr x8, [x8, _b@PAGEOFF] ldrsw x9, [x9, _k@PAGEOFF] ldrsb w8, [x8, x9] stur w8, [x29, #-4] ldur w8, [x29, #-4] subs w8, w8, #108 cset w8, eq tbnz w8, #0, LBB4_27 b LBB4_25 LBB4_25: ldur w8, [x29, #-4] subs w8, w8, #115 cset w8, eq tbnz w8, #0, LBB4_27 b LBB4_26 LBB4_26: ldur w8, [x29, #-4] subs w8, w8, #122 cset w8, ne tbnz w8, #0, LBB4_28 b LBB4_27 LBB4_27: adrp x9, _k@PAGE ldr w8, [x9, _k@PAGEOFF] add w8, w8, #1 str w8, [x9, _k@PAGEOFF] b LBB4_28 LBB4_28: b LBB4_33 LBB4_29: bl _m subs w8, w0, #1 cset w8, ne tbnz w8, #0, LBB4_32 b LBB4_30 LBB4_30: adrp x8, _k@PAGE ldr w0, [x8, _k@PAGEOFF] bl _cvc subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB4_32 b LBB4_31 LBB4_31: adrp x0, l_.str.14@PAGE add x0, x0, l_.str.14@PAGEOFF bl _setto b LBB4_32 LBB4_32: b LBB4_33 LBB4_33: b LBB4_34 LBB4_34: b LBB4_35 LBB4_35: b LBB4_36 LBB4_36: b LBB4_37 LBB4_37: b LBB4_38 LBB4_38: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function ends _ends: ; @ends .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] ldrsb w8, [x8] str w8, [sp, #12] ldr x8, [sp, #16] ldrsw x9, [sp, #12] ldrsb w8, [x8, x9] adrp x9, _b@PAGE ldr x9, [x9, _b@PAGEOFF] adrp x10, _k@PAGE ldrsw x10, [x10, _k@PAGEOFF] ldrsb w9, [x9, x10] subs w8, w8, w9 cset w8, eq tbnz w8, #0, LBB5_2 b LBB5_1 LBB5_1: stur wzr, [x29, #-4] b LBB5_7 LBB5_2: ldr w8, [sp, #12] adrp x9, _k@PAGE ldr w9, [x9, _k@PAGEOFF] adrp x10, _k0@PAGE ldr w10, [x10, _k0@PAGEOFF] subs w9, w9, w10 add w9, w9, #1 subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB5_4 b LBB5_3 LBB5_3: stur wzr, [x29, #-4] b LBB5_7 LBB5_4: adrp x8, _b@PAGE ldr x8, [x8, _b@PAGEOFF] adrp x9, _k@PAGE ldrsw x9, [x9, _k@PAGEOFF] add x8, x8, x9 ldrsw x9, [sp, #12] subs x8, x8, x9 add x0, x8, #1 ldr x8, [sp, #16] add x1, x8, #1 ldrsw x2, [sp, #12] bl _memcmp subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB5_6 b LBB5_5 LBB5_5: stur wzr, [x29, #-4] b LBB5_7 LBB5_6: adrp x8, _k@PAGE ldr w8, [x8, _k@PAGEOFF] ldr w9, [sp, #12] subs w8, w8, w9 adrp x9, _j@PAGE str w8, [x9, _j@PAGEOFF] mov w8, #1 stur w8, [x29, #-4] b LBB5_7 LBB5_7: ldur w0, [x29, #-4] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function setto _setto: ; @setto .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] ldur x8, [x29, #-8] ldrsb w8, [x8] stur w8, [x29, #-12] adrp x8, _b@PAGE ldr x8, [x8, _b@PAGEOFF] adrp x9, _j@PAGE str x9, [sp, #8] ; 8-byte Folded Spill ldrsw x9, [x9, _j@PAGEOFF] add x9, x8, x9 ldur x8, [x29, #-8] ldursw x2, [x29, #-12] add x0, x9, #1 add x1, x8, #1 mov x3, #-1 bl ___memmove_chk ldr x8, [sp, #8] ; 8-byte Folded Reload ldr w8, [x8, _j@PAGEOFF] ldur w9, [x29, #-12] add w8, w8, w9 adrp x9, _k@PAGE str w8, [x9, _k@PAGEOFF] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function doublec _doublec: ; @doublec .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] adrp x9, _k0@PAGE ldr w9, [x9, _k0@PAGEOFF] add w9, w9, #1 subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB7_2 b LBB7_1 LBB7_1: stur wzr, [x29, #-4] b LBB7_5 LBB7_2: adrp x9, _b@PAGE ldr x8, [x9, _b@PAGEOFF] ldrsw x10, [sp, #8] ldrsb w8, [x8, x10] ldr x9, [x9, _b@PAGEOFF] ldr w10, [sp, #8] subs w10, w10, #1 ldrsb w9, [x9, w10, sxtw] subs w8, w8, w9 cset w8, eq tbnz w8, #0, LBB7_4 b LBB7_3 LBB7_3: stur wzr, [x29, #-4] b LBB7_5 LBB7_4: ldr w0, [sp, #8] bl _cons stur w0, [x29, #-4] b LBB7_5 LBB7_5: ldur w0, [x29, #-4] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function cvc _cvc: ; @cvc .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] adrp x9, _k0@PAGE ldr w9, [x9, _k0@PAGEOFF] add w9, w9, #2 subs w8, w8, w9 cset w8, lt tbnz w8, #0, LBB8_4 b LBB8_1 LBB8_1: ldr w0, [sp, #8] bl _cons subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB8_4 b LBB8_2 LBB8_2: ldr w8, [sp, #8] subs w0, w8, #1 bl _cons subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB8_4 b LBB8_3 LBB8_3: ldr w8, [sp, #8] subs w0, w8, #2 bl _cons subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB8_5 b LBB8_4 LBB8_4: stur wzr, [x29, #-4] b LBB8_10 LBB8_5: adrp x8, _b@PAGE ldr x8, [x8, _b@PAGEOFF] ldrsw x9, [sp, #8] ldrsb w8, [x8, x9] str w8, [sp, #4] ldr w8, [sp, #4] subs w8, w8, #119 cset w8, eq tbnz w8, #0, LBB8_8 b LBB8_6 LBB8_6: ldr w8, [sp, #4] subs w8, w8, #120 cset w8, eq tbnz w8, #0, LBB8_8 b LBB8_7 LBB8_7: ldr w8, [sp, #4] subs w8, w8, #121 cset w8, ne tbnz w8, #0, LBB8_9 b LBB8_8 LBB8_8: stur wzr, [x29, #-4] b LBB8_10 LBB8_9: mov w8, #1 stur w8, [x29, #-4] b LBB8_10 LBB8_10: ldur w0, [x29, #-4] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function m _m: ; @m .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str wzr, [sp, #8] adrp x8, _k0@PAGE ldr w8, [x8, _k0@PAGEOFF] str w8, [sp, #4] b LBB9_1 LBB9_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #4] adrp x9, _j@PAGE ldr w9, [x9, _j@PAGEOFF] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB9_3 b LBB9_2 LBB9_2: ldr w8, [sp, #8] stur w8, [x29, #-4] b LBB9_20 LBB9_3: ; in Loop: Header=BB9_1 Depth=1 ldr w0, [sp, #4] bl _cons subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB9_5 b LBB9_4 LBB9_4: b LBB9_6 LBB9_5: ; in Loop: Header=BB9_1 Depth=1 ldr w8, [sp, #4] add w8, w8, #1 str w8, [sp, #4] b LBB9_1 LBB9_6: ldr w8, [sp, #4] add w8, w8, #1 str w8, [sp, #4] b LBB9_7 LBB9_7: ; =>This Loop Header: Depth=1 ; Child Loop BB9_8 Depth 2 ; Child Loop BB9_14 Depth 2 b LBB9_8 LBB9_8: ; Parent Loop BB9_7 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #4] adrp x9, _j@PAGE ldr w9, [x9, _j@PAGEOFF] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB9_10 b LBB9_9 LBB9_9: ldr w8, [sp, #8] stur w8, [x29, #-4] b LBB9_20 LBB9_10: ; in Loop: Header=BB9_8 Depth=2 ldr w0, [sp, #4] bl _cons subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB9_12 b LBB9_11 LBB9_11: ; in Loop: Header=BB9_7 Depth=1 b LBB9_13 LBB9_12: ; in Loop: Header=BB9_8 Depth=2 ldr w8, [sp, #4] add w8, w8, #1 str w8, [sp, #4] b LBB9_8 LBB9_13: ; in Loop: Header=BB9_7 Depth=1 ldr w8, [sp, #4] add w8, w8, #1 str w8, [sp, #4] ldr w8, [sp, #8] add w8, w8, #1 str w8, [sp, #8] b LBB9_14 LBB9_14: ; Parent Loop BB9_7 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #4] adrp x9, _j@PAGE ldr w9, [x9, _j@PAGEOFF] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB9_16 b LBB9_15 LBB9_15: ldr w8, [sp, #8] stur w8, [x29, #-4] b LBB9_20 LBB9_16: ; in Loop: Header=BB9_14 Depth=2 ldr w0, [sp, #4] bl _cons subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB9_18 b LBB9_17 LBB9_17: ; in Loop: Header=BB9_7 Depth=1 b LBB9_19 LBB9_18: ; in Loop: Header=BB9_14 Depth=2 ldr w8, [sp, #4] add w8, w8, #1 str w8, [sp, #4] b LBB9_14 LBB9_19: ; in Loop: Header=BB9_7 Depth=1 ldr w8, [sp, #4] add w8, w8, #1 str w8, [sp, #4] b LBB9_7 LBB9_20: ldur w0, [x29, #-4] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function cons _cons: ; @cons .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] adrp x8, _b@PAGE ldr x8, [x8, _b@PAGEOFF] ldrsw x9, [sp, #8] ldrsb w8, [x8, x9] str w8, [sp, #4] ; 4-byte Folded Spill subs w8, w8, #97 cset w8, eq tbnz w8, #0, LBB10_6 b LBB10_1 LBB10_1: ldr w8, [sp, #4] ; 4-byte Folded Reload subs w8, w8, #101 cset w8, eq tbnz w8, #0, LBB10_6 b LBB10_2 LBB10_2: ldr w8, [sp, #4] ; 4-byte Folded Reload subs w8, w8, #105 cset w8, eq tbnz w8, #0, LBB10_6 b LBB10_3 LBB10_3: ldr w8, [sp, #4] ; 4-byte Folded Reload subs w8, w8, #111 cset w8, eq tbnz w8, #0, LBB10_6 b LBB10_4 LBB10_4: ldr w8, [sp, #4] ; 4-byte Folded Reload subs w8, w8, #117 cset w8, eq tbnz w8, #0, LBB10_6 b LBB10_5 LBB10_5: ldr w8, [sp, #4] ; 4-byte Folded Reload subs w8, w8, #121 cset w8, eq tbnz w8, #0, LBB10_7 b LBB10_11 LBB10_6: stur wzr, [x29, #-4] b LBB10_12 LBB10_7: ldr w8, [sp, #8] adrp x9, _k0@PAGE ldr w9, [x9, _k0@PAGEOFF] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB10_9 b LBB10_8 LBB10_8: mov w8, #1 str w8, [sp] ; 4-byte Folded Spill b LBB10_10 LBB10_9: ldr w8, [sp, #8] subs w0, w8, #1 bl _cons subs w8, w0, #0 cset w8, eq and w8, w8, #0x1 str w8, [sp] ; 4-byte Folded Spill b LBB10_10 LBB10_10: ldr w8, [sp] ; 4-byte Folded Reload stur w8, [x29, #-4] b LBB10_12 LBB10_11: mov w8, #1 stur w8, [x29, #-4] b LBB10_12 LBB10_12: ldur w0, [x29, #-4] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function vowelinstem _vowelinstem: ; @vowelinstem .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, _k0@PAGE ldr w8, [x8, _k0@PAGEOFF] str w8, [sp, #8] b LBB11_1 LBB11_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #8] adrp x9, _j@PAGE ldr w9, [x9, _j@PAGEOFF] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB11_6 b LBB11_2 LBB11_2: ; in Loop: Header=BB11_1 Depth=1 ldr w0, [sp, #8] bl _cons subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB11_4 b LBB11_3 LBB11_3: mov w8, #1 stur w8, [x29, #-4] b LBB11_7 LBB11_4: ; in Loop: Header=BB11_1 Depth=1 b LBB11_5 LBB11_5: ; in Loop: Header=BB11_1 Depth=1 ldr w8, [sp, #8] add w8, w8, #1 str w8, [sp, #8] b LBB11_1 LBB11_6: stur wzr, [x29, #-4] b LBB11_7 LBB11_7: ldur w0, [x29, #-4] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function step1c _step1c: ; @step1c .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.15@PAGE add x0, x0, l_.str.15@PAGEOFF bl _ends subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB12_3 b LBB12_1 LBB12_1: bl _vowelinstem subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB12_3 b LBB12_2 LBB12_2: adrp x8, _b@PAGE ldr x8, [x8, _b@PAGEOFF] adrp x9, _k@PAGE ldrsw x9, [x9, _k@PAGEOFF] add x9, x8, x9 mov w8, #105 strb w8, [x9] b LBB12_3 LBB12_3: ldp x29, x30, [sp], #16 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function step2 _step2: ; @step2 .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, _b@PAGE ldr x8, [x8, _b@PAGEOFF] adrp x9, _k@PAGE ldr w9, [x9, _k@PAGEOFF] subs w9, w9, #1 ldrsb w8, [x8, w9, sxtw] subs w8, w8, #97 ; kill: def $x8 killed $w8 str x8, [sp, #8] ; 8-byte Folded Spill subs x8, x8, #19 cset w8, hi tbnz w8, #0, LBB13_52 ; %bb.1: ldr x11, [sp, #8] ; 8-byte Folded Reload adrp x10, lJTI13_0@PAGE add x10, x10, lJTI13_0@PAGEOFF Ltmp0: adr x8, Ltmp0 ldrsw x9, [x10, x11, lsl #2] add x8, x8, x9 br x8 LBB13_2: adrp x0, l_.str.16@PAGE add x0, x0, l_.str.16@PAGEOFF bl _ends subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB13_4 b LBB13_3 LBB13_3: adrp x0, l_.str.9@PAGE add x0, x0, l_.str.9@PAGEOFF bl _r b LBB13_52 LBB13_4: adrp x0, l_.str.17@PAGE add x0, x0, l_.str.17@PAGEOFF bl _ends subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB13_6 b LBB13_5 LBB13_5: adrp x0, l_.str.18@PAGE add x0, x0, l_.str.18@PAGEOFF bl _r b LBB13_52 LBB13_6: b LBB13_52 LBB13_7: adrp x0, l_.str.19@PAGE add x0, x0, l_.str.19@PAGEOFF bl _ends subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB13_9 b LBB13_8 LBB13_8: adrp x0, l_.str.20@PAGE add x0, x0, l_.str.20@PAGEOFF bl _r b LBB13_52 LBB13_9: adrp x0, l_.str.21@PAGE add x0, x0, l_.str.21@PAGEOFF bl _ends subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB13_11 b LBB13_10 LBB13_10: adrp x0, l_.str.22@PAGE add x0, x0, l_.str.22@PAGEOFF bl _r b LBB13_52 LBB13_11: b LBB13_52 LBB13_12: adrp x0, l_.str.23@PAGE add x0, x0, l_.str.23@PAGEOFF bl _ends subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB13_14 b LBB13_13 LBB13_13: adrp x0, l_.str.13@PAGE add x0, x0, l_.str.13@PAGEOFF bl _r b LBB13_52 LBB13_14: b LBB13_52 LBB13_15: adrp x0, l_.str.24@PAGE add x0, x0, l_.str.24@PAGEOFF bl _ends subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB13_17 b LBB13_16 LBB13_16: adrp x0, l_.str.11@PAGE add x0, x0, l_.str.11@PAGEOFF bl _r b LBB13_52 LBB13_17: adrp x0, l_.str.25@PAGE add x0, x0, l_.str.25@PAGEOFF bl _ends subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB13_19 b LBB13_18 LBB13_18: adrp x0, l_.str.26@PAGE add x0, x0, l_.str.26@PAGEOFF bl _r b LBB13_52 LBB13_19: adrp x0, l_.str.27@PAGE add x0, x0, l_.str.27@PAGEOFF bl _ends subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB13_21 b LBB13_20 LBB13_20: adrp x0, l_.str.28@PAGE add x0, x0, l_.str.28@PAGEOFF bl _r b LBB13_52 LBB13_21: adrp x0, l_.str.29@PAGE add x0, x0, l_.str.29@PAGEOFF bl _ends subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB13_23 b LBB13_22 LBB13_22: adrp x0, l_.str.14@PAGE add x0, x0, l_.str.14@PAGEOFF bl _r b LBB13_52 LBB13_23: adrp x0, l_.str.30@PAGE add x0, x0, l_.str.30@PAGEOFF bl _ends subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB13_25 b LBB13_24 LBB13_24: adrp x0, l_.str.31@PAGE add x0, x0, l_.str.31@PAGEOFF bl _r b LBB13_52 LBB13_25: b LBB13_52 LBB13_26: adrp x0, l_.str.32@PAGE add x0, x0, l_.str.32@PAGEOFF bl _ends subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB13_28 b LBB13_27 LBB13_27: adrp x0, l_.str.13@PAGE add x0, x0, l_.str.13@PAGEOFF bl _r b LBB13_52 LBB13_28: adrp x0, l_.str.33@PAGE add x0, x0, l_.str.33@PAGEOFF bl _ends subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB13_30 b LBB13_29 LBB13_29: adrp x0, l_.str.9@PAGE add x0, x0, l_.str.9@PAGEOFF bl _r b LBB13_52 LBB13_30: adrp x0, l_.str.34@PAGE add x0, x0, l_.str.34@PAGEOFF bl _ends subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB13_32 b LBB13_31 LBB13_31: adrp x0, l_.str.9@PAGE add x0, x0, l_.str.9@PAGEOFF bl _r b LBB13_52 LBB13_32: b LBB13_52 LBB13_33: adrp x0, l_.str.35@PAGE add x0, x0, l_.str.35@PAGEOFF bl _ends subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB13_35 b LBB13_34 LBB13_34: adrp x0, l_.str.26@PAGE add x0, x0, l_.str.26@PAGEOFF bl _r b LBB13_52 LBB13_35: adrp x0, l_.str.36@PAGE add x0, x0, l_.str.36@PAGEOFF bl _ends subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB13_37 b LBB13_36 LBB13_36: adrp x0, l_.str.37@PAGE add x0, x0, l_.str.37@PAGEOFF bl _r b LBB13_52 LBB13_37: adrp x0, l_.str.38@PAGE add x0, x0, l_.str.38@PAGEOFF bl _ends subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB13_39 b LBB13_38 LBB13_38: adrp x0, l_.str.39@PAGE add x0, x0, l_.str.39@PAGEOFF bl _r b LBB13_52 LBB13_39: adrp x0, l_.str.40@PAGE add x0, x0, l_.str.40@PAGEOFF bl _ends subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB13_41 b LBB13_40 LBB13_40: adrp x0, l_.str.31@PAGE add x0, x0, l_.str.31@PAGEOFF bl _r b LBB13_52 LBB13_41: b LBB13_52 LBB13_42: adrp x0, l_.str.41@PAGE add x0, x0, l_.str.41@PAGEOFF bl _ends subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB13_44 b LBB13_43 LBB13_43: adrp x0, l_.str.26@PAGE add x0, x0, l_.str.26@PAGEOFF bl _r b LBB13_52 LBB13_44: adrp x0, l_.str.42@PAGE add x0, x0, l_.str.42@PAGEOFF bl _ends subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB13_46 b LBB13_45 LBB13_45: adrp x0, l_.str.37@PAGE add x0, x0, l_.str.37@PAGEOFF bl _r b LBB13_52 LBB13_46: adrp x0, l_.str.43@PAGE add x0, x0, l_.str.43@PAGEOFF bl _ends subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB13_48 b LBB13_47 LBB13_47: adrp x0, l_.str.11@PAGE add x0, x0, l_.str.11@PAGEOFF bl _r b LBB13_52 LBB13_48: b LBB13_52 LBB13_49: adrp x0, l_.str.44@PAGE add x0, x0, l_.str.44@PAGEOFF bl _ends subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB13_51 b LBB13_50 LBB13_50: adrp x0, l_.str.45@PAGE add x0, x0, l_.str.45@PAGEOFF bl _r b LBB13_52 LBB13_51: b LBB13_52 LBB13_52: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc .p2align 2 lJTI13_0: .long LBB13_2-Ltmp0 .long LBB13_52-Ltmp0 .long LBB13_7-Ltmp0 .long LBB13_52-Ltmp0 .long LBB13_12-Ltmp0 .long LBB13_52-Ltmp0 .long LBB13_49-Ltmp0 .long LBB13_52-Ltmp0 .long LBB13_52-Ltmp0 .long LBB13_52-Ltmp0 .long LBB13_52-Ltmp0 .long LBB13_15-Ltmp0 .long LBB13_52-Ltmp0 .long LBB13_52-Ltmp0 .long LBB13_26-Ltmp0 .long LBB13_52-Ltmp0 .long LBB13_52-Ltmp0 .long LBB13_52-Ltmp0 .long LBB13_33-Ltmp0 .long LBB13_42-Ltmp0 ; -- End function .p2align 2 ; -- Begin function r _r: ; @r .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] bl _m subs w8, w0, #0 cset w8, le tbnz w8, #0, LBB14_2 b LBB14_1 LBB14_1: ldr x0, [sp, #8] bl _setto b LBB14_2 LBB14_2: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function step3 _step3: ; @step3 .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, _b@PAGE ldr x8, [x8, _b@PAGEOFF] adrp x9, _k@PAGE ldrsw x9, [x9, _k@PAGEOFF] ldrsb w8, [x8, x9] subs w8, w8, #101 ; kill: def $x8 killed $w8 str x8, [sp, #8] ; 8-byte Folded Spill subs x8, x8, #14 cset w8, hi tbnz w8, #0, LBB15_20 ; %bb.1: ldr x11, [sp, #8] ; 8-byte Folded Reload adrp x10, lJTI15_0@PAGE add x10, x10, lJTI15_0@PAGEOFF Ltmp1: adr x8, Ltmp1 ldrsw x9, [x10, x11, lsl #2] add x8, x8, x9 br x8 LBB15_2: adrp x0, l_.str.46@PAGE add x0, x0, l_.str.46@PAGEOFF bl _ends subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB15_4 b LBB15_3 LBB15_3: adrp x0, l_.str.47@PAGE add x0, x0, l_.str.47@PAGEOFF bl _r b LBB15_20 LBB15_4: adrp x0, l_.str.48@PAGE add x0, x0, l_.str.48@PAGEOFF bl _ends subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB15_6 b LBB15_5 LBB15_5: adrp x0, l_.str.49@PAGE add x0, x0, l_.str.49@PAGEOFF bl _r b LBB15_20 LBB15_6: adrp x0, l_.str.50@PAGE add x0, x0, l_.str.50@PAGEOFF bl _ends subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB15_8 b LBB15_7 LBB15_7: adrp x0, l_.str.26@PAGE add x0, x0, l_.str.26@PAGEOFF bl _r b LBB15_20 LBB15_8: b LBB15_20 LBB15_9: adrp x0, l_.str.51@PAGE add x0, x0, l_.str.51@PAGEOFF bl _ends subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB15_11 b LBB15_10 LBB15_10: adrp x0, l_.str.47@PAGE add x0, x0, l_.str.47@PAGEOFF bl _r b LBB15_20 LBB15_11: b LBB15_20 LBB15_12: adrp x0, l_.str.52@PAGE add x0, x0, l_.str.52@PAGEOFF bl _ends subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB15_14 b LBB15_13 LBB15_13: adrp x0, l_.str.47@PAGE add x0, x0, l_.str.47@PAGEOFF bl _r b LBB15_20 LBB15_14: adrp x0, l_.str.39@PAGE add x0, x0, l_.str.39@PAGEOFF bl _ends subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB15_16 b LBB15_15 LBB15_15: adrp x0, l_.str.49@PAGE add x0, x0, l_.str.49@PAGEOFF bl _r b LBB15_20 LBB15_16: b LBB15_20 LBB15_17: adrp x0, l_.str.53@PAGE add x0, x0, l_.str.53@PAGEOFF bl _ends subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB15_19 b LBB15_18 LBB15_18: adrp x0, l_.str.49@PAGE add x0, x0, l_.str.49@PAGEOFF bl _r b LBB15_20 LBB15_19: b LBB15_20 LBB15_20: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc .p2align 2 lJTI15_0: .long LBB15_2-Ltmp1 .long LBB15_20-Ltmp1 .long LBB15_20-Ltmp1 .long LBB15_20-Ltmp1 .long LBB15_9-Ltmp1 .long LBB15_20-Ltmp1 .long LBB15_20-Ltmp1 .long LBB15_12-Ltmp1 .long LBB15_20-Ltmp1 .long LBB15_20-Ltmp1 .long LBB15_20-Ltmp1 .long LBB15_20-Ltmp1 .long LBB15_20-Ltmp1 .long LBB15_20-Ltmp1 .long LBB15_17-Ltmp1 ; -- End function .p2align 2 ; -- Begin function step4 _step4: ; @step4 .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, _b@PAGE ldr x8, [x8, _b@PAGEOFF] adrp x9, _k@PAGE ldr w9, [x9, _k@PAGEOFF] subs w9, w9, #1 ldrsb w8, [x8, w9, sxtw] subs w8, w8, #97 ; kill: def $x8 killed $w8 str x8, [sp, #8] ; 8-byte Folded Spill subs x8, x8, #25 cset w8, hi tbnz w8, #0, LBB16_55 ; %bb.1: ldr x11, [sp, #8] ; 8-byte Folded Reload adrp x10, lJTI16_0@PAGE add x10, x10, lJTI16_0@PAGEOFF Ltmp2: adr x8, Ltmp2 ldrsw x9, [x10, x11, lsl #2] add x8, x8, x9 br x8 LBB16_2: adrp x0, l_.str.26@PAGE add x0, x0, l_.str.26@PAGEOFF bl _ends subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB16_4 b LBB16_3 LBB16_3: b LBB16_56 LBB16_4: b LBB16_58 LBB16_5: adrp x0, l_.str.22@PAGE add x0, x0, l_.str.22@PAGEOFF bl _ends subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB16_7 b LBB16_6 LBB16_6: b LBB16_56 LBB16_7: adrp x0, l_.str.20@PAGE add x0, x0, l_.str.20@PAGEOFF bl _ends subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB16_9 b LBB16_8 LBB16_8: b LBB16_56 LBB16_9: b LBB16_58 LBB16_10: adrp x0, l_.str.54@PAGE add x0, x0, l_.str.54@PAGEOFF bl _ends subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB16_12 b LBB16_11 LBB16_11: b LBB16_56 LBB16_12: b LBB16_58 LBB16_13: adrp x0, l_.str.47@PAGE add x0, x0, l_.str.47@PAGEOFF bl _ends subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB16_15 b LBB16_14 LBB16_14: b LBB16_56 LBB16_15: b LBB16_58 LBB16_16: adrp x0, l_.str.55@PAGE add x0, x0, l_.str.55@PAGEOFF bl _ends subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB16_18 b LBB16_17 LBB16_17: b LBB16_56 LBB16_18: adrp x0, l_.str.56@PAGE add x0, x0, l_.str.56@PAGEOFF bl _ends subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB16_20 b LBB16_19 LBB16_19: b LBB16_56 LBB16_20: b LBB16_58 LBB16_21: adrp x0, l_.str.57@PAGE add x0, x0, l_.str.57@PAGEOFF bl _ends subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB16_23 b LBB16_22 LBB16_22: b LBB16_56 LBB16_23: adrp x0, l_.str.58@PAGE add x0, x0, l_.str.58@PAGEOFF bl _ends subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB16_25 b LBB16_24 LBB16_24: b LBB16_56 LBB16_25: adrp x0, l_.str.59@PAGE add x0, x0, l_.str.59@PAGEOFF bl _ends subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB16_27 b LBB16_26 LBB16_26: b LBB16_56 LBB16_27: adrp x0, l_.str.28@PAGE add x0, x0, l_.str.28@PAGEOFF bl _ends subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB16_29 b LBB16_28 LBB16_28: b LBB16_56 LBB16_29: b LBB16_58 LBB16_30: adrp x0, l_.str.60@PAGE add x0, x0, l_.str.60@PAGEOFF bl _ends subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB16_35 b LBB16_31 LBB16_31: adrp x8, _j@PAGE ldr w8, [x8, _j@PAGEOFF] adrp x9, _k0@PAGE ldr w9, [x9, _k0@PAGEOFF] subs w8, w8, w9 cset w8, lt tbnz w8, #0, LBB16_35 b LBB16_32 LBB16_32: adrp x8, _b@PAGE ldr x8, [x8, _b@PAGEOFF] adrp x9, _j@PAGE ldrsw x9, [x9, _j@PAGEOFF] ldrsb w8, [x8, x9] subs w8, w8, #115 cset w8, eq tbnz w8, #0, LBB16_34 b LBB16_33 LBB16_33: adrp x8, _b@PAGE ldr x8, [x8, _b@PAGEOFF] adrp x9, _j@PAGE ldrsw x9, [x9, _j@PAGEOFF] ldrsb w8, [x8, x9] subs w8, w8, #116 cset w8, ne tbnz w8, #0, LBB16_35 b LBB16_34 LBB16_34: b LBB16_56 LBB16_35: adrp x0, l_.str.61@PAGE add x0, x0, l_.str.61@PAGEOFF bl _ends subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB16_37 b LBB16_36 LBB16_36: b LBB16_56 LBB16_37: b LBB16_58 LBB16_38: adrp x0, l_.str.62@PAGE add x0, x0, l_.str.62@PAGEOFF bl _ends subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB16_40 b LBB16_39 LBB16_39: b LBB16_56 LBB16_40: b LBB16_58 LBB16_41: adrp x0, l_.str.9@PAGE add x0, x0, l_.str.9@PAGEOFF bl _ends subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB16_43 b LBB16_42 LBB16_42: b LBB16_56 LBB16_43: adrp x0, l_.str.63@PAGE add x0, x0, l_.str.63@PAGEOFF bl _ends subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB16_45 b LBB16_44 LBB16_44: b LBB16_56 LBB16_45: b LBB16_58 LBB16_46: adrp x0, l_.str.31@PAGE add x0, x0, l_.str.31@PAGEOFF bl _ends subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB16_48 b LBB16_47 LBB16_47: b LBB16_56 LBB16_48: b LBB16_58 LBB16_49: adrp x0, l_.str.37@PAGE add x0, x0, l_.str.37@PAGEOFF bl _ends subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB16_51 b LBB16_50 LBB16_50: b LBB16_56 LBB16_51: b LBB16_58 LBB16_52: adrp x0, l_.str.13@PAGE add x0, x0, l_.str.13@PAGEOFF bl _ends subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB16_54 b LBB16_53 LBB16_53: b LBB16_56 LBB16_54: b LBB16_58 LBB16_55: b LBB16_58 LBB16_56: bl _m subs w8, w0, #1 cset w8, le tbnz w8, #0, LBB16_58 b LBB16_57 LBB16_57: adrp x8, _j@PAGE ldr w8, [x8, _j@PAGEOFF] adrp x9, _k@PAGE str w8, [x9, _k@PAGEOFF] b LBB16_58 LBB16_58: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc .p2align 2 lJTI16_0: .long LBB16_2-Ltmp2 .long LBB16_55-Ltmp2 .long LBB16_5-Ltmp2 .long LBB16_55-Ltmp2 .long LBB16_10-Ltmp2 .long LBB16_55-Ltmp2 .long LBB16_55-Ltmp2 .long LBB16_55-Ltmp2 .long LBB16_13-Ltmp2 .long LBB16_55-Ltmp2 .long LBB16_55-Ltmp2 .long LBB16_16-Ltmp2 .long LBB16_55-Ltmp2 .long LBB16_21-Ltmp2 .long LBB16_30-Ltmp2 .long LBB16_55-Ltmp2 .long LBB16_55-Ltmp2 .long LBB16_55-Ltmp2 .long LBB16_38-Ltmp2 .long LBB16_41-Ltmp2 .long LBB16_46-Ltmp2 .long LBB16_49-Ltmp2 .long LBB16_55-Ltmp2 .long LBB16_55-Ltmp2 .long LBB16_55-Ltmp2 .long LBB16_52-Ltmp2 ; -- End function .p2align 2 ; -- Begin function step5 _step5: ; @step5 .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 x9, _k@PAGE ldr w8, [x9, _k@PAGEOFF] adrp x10, _j@PAGE str w8, [x10, _j@PAGEOFF] adrp x8, _b@PAGE ldr x8, [x8, _b@PAGEOFF] ldrsw x9, [x9, _k@PAGEOFF] ldrsb w8, [x8, x9] subs w8, w8, #101 cset w8, ne tbnz w8, #0, LBB17_6 b LBB17_1 LBB17_1: bl _m stur w0, [x29, #-4] ldur w8, [x29, #-4] subs w8, w8, #1 cset w8, gt tbnz w8, #0, LBB17_4 b LBB17_2 LBB17_2: ldur w8, [x29, #-4] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB17_5 b LBB17_3 LBB17_3: adrp x8, _k@PAGE ldr w8, [x8, _k@PAGEOFF] subs w0, w8, #1 bl _cvc subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB17_5 b LBB17_4 LBB17_4: adrp x9, _k@PAGE ldr w8, [x9, _k@PAGEOFF] subs w8, w8, #1 str w8, [x9, _k@PAGEOFF] b LBB17_5 LBB17_5: b LBB17_6 LBB17_6: adrp x8, _b@PAGE ldr x8, [x8, _b@PAGEOFF] adrp x9, _k@PAGE ldrsw x9, [x9, _k@PAGEOFF] ldrsb w8, [x8, x9] subs w8, w8, #108 cset w8, ne tbnz w8, #0, LBB17_10 b LBB17_7 LBB17_7: adrp x8, _k@PAGE ldr w0, [x8, _k@PAGEOFF] bl _doublec subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB17_10 b LBB17_8 LBB17_8: bl _m subs w8, w0, #1 cset w8, le tbnz w8, #0, LBB17_10 b LBB17_9 LBB17_9: adrp x9, _k@PAGE ldr w8, [x9, _k@PAGEOFF] subs w8, w8, #1 str w8, [x9, _k@PAGEOFF] b LBB17_10 LBB17_10: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .zerofill __DATA,__bss,_b,8,3 ; @b .zerofill __DATA,__bss,_k,4,2 ; @k .zerofill __DATA,__bss,_k0,4,2 ; @k0 .section __DATA,__data .p2align 2 ; @i_max _i_max: .long 50 ; 0x32 .zerofill __DATA,__bss,_s,8,3 ; @s .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "r" l_.str.1: ; @.str.1 .asciz "File %s not found\n" l_.str.2: ; @.str.2 .asciz "\004sses" l_.str.3: ; @.str.3 .asciz "\003ies" l_.str.4: ; @.str.4 .asciz "\001i" l_.str.5: ; @.str.5 .asciz "\003eed" l_.str.6: ; @.str.6 .asciz "\002ed" l_.str.7: ; @.str.7 .asciz "\003ing" .zerofill __DATA,__bss,_j,4,2 ; @j l_.str.8: ; @.str.8 .asciz "\002at" l_.str.9: ; @.str.9 .asciz "\003ate" l_.str.10: ; @.str.10 .asciz "\002bl" l_.str.11: ; @.str.11 .asciz "\003ble" l_.str.12: ; @.str.12 .asciz "\002iz" l_.str.13: ; @.str.13 .asciz "\003ize" l_.str.14: ; @.str.14 .asciz "\001e" l_.str.15: ; @.str.15 .asciz "\001y" l_.str.16: ; @.str.16 .asciz "\007ational" l_.str.17: ; @.str.17 .asciz "\006tional" l_.str.18: ; @.str.18 .asciz "\004tion" l_.str.19: ; @.str.19 .asciz "\004enci" l_.str.20: ; @.str.20 .asciz "\004ence" l_.str.21: ; @.str.21 .asciz "\004anci" l_.str.22: ; @.str.22 .asciz "\004ance" l_.str.23: ; @.str.23 .asciz "\004izer" l_.str.24: ; @.str.24 .asciz "\003bli" l_.str.25: ; @.str.25 .asciz "\004alli" l_.str.26: ; @.str.26 .asciz "\002al" l_.str.27: ; @.str.27 .asciz "\005entli" l_.str.28: ; @.str.28 .asciz "\003ent" l_.str.29: ; @.str.29 .asciz "\003eli" l_.str.30: ; @.str.30 .asciz "\005ousli" l_.str.31: ; @.str.31 .asciz "\003ous" l_.str.32: ; @.str.32 .asciz "\007ization" l_.str.33: ; @.str.33 .asciz "\005ation" l_.str.34: ; @.str.34 .asciz "\004ator" l_.str.35: ; @.str.35 .asciz "\005alism" l_.str.36: ; @.str.36 .asciz "\007iveness" l_.str.37: ; @.str.37 .asciz "\003ive" l_.str.38: ; @.str.38 .asciz "\007fulness" l_.str.39: ; @.str.39 .asciz "\003ful" l_.str.40: ; @.str.40 .asciz "\007ousness" l_.str.41: ; @.str.41 .asciz "\005aliti" l_.str.42: ; @.str.42 .asciz "\005iviti" l_.str.43: ; @.str.43 .asciz "\006biliti" l_.str.44: ; @.str.44 .asciz "\004logi" l_.str.45: ; @.str.45 .asciz "\003log" l_.str.46: ; @.str.46 .asciz "\005icate" l_.str.47: ; @.str.47 .asciz "\002ic" l_.str.48: ; @.str.48 .asciz "\005ative" .section __TEXT,__const l_.str.49: ; @.str.49 .space 2 .section __TEXT,__cstring,cstring_literals l_.str.50: ; @.str.50 .asciz "\005alize" l_.str.51: ; @.str.51 .asciz "\005iciti" l_.str.52: ; @.str.52 .asciz "\004ical" l_.str.53: ; @.str.53 .asciz "\004ness" l_.str.54: ; @.str.54 .asciz "\002er" l_.str.55: ; @.str.55 .asciz "\004able" l_.str.56: ; @.str.56 .asciz "\004ible" l_.str.57: ; @.str.57 .asciz "\003ant" l_.str.58: ; @.str.58 .asciz "\005ement" l_.str.59: ; @.str.59 .asciz "\004ment" l_.str.60: ; @.str.60 .asciz "\003ion" l_.str.61: ; @.str.61 .asciz "\002ou" l_.str.62: ; @.str.62 .asciz "\003ism" l_.str.63: ; @.str.63 .asciz "\003iti" l_.str.64: ; @.str.64 .asciz "%s" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _stem ## -- Begin function stem .p2align 4, 0x90 _stem: ## @stem .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -16(%rbp) movl %esi, -20(%rbp) movl %edx, -24(%rbp) movq -16(%rbp), %rax movq %rax, _b(%rip) movl -24(%rbp), %eax movl %eax, _k(%rip) movl -20(%rbp), %eax movl %eax, _k0(%rip) movl _k(%rip), %eax movl _k0(%rip), %ecx addl $1, %ecx cmpl %ecx, %eax jg LBB0_2 ## %bb.1: movl _k(%rip), %eax movl %eax, -4(%rbp) jmp LBB0_5 LBB0_2: callq _step1ab movl _k(%rip), %eax cmpl _k0(%rip), %eax jle LBB0_4 ## %bb.3: callq _step1c callq _step2 callq _step3 callq _step4 callq _step5 LBB0_4: movl _k(%rip), %eax movl %eax, -4(%rbp) LBB0_5: movl -4(%rbp), %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _increase_s ## -- Begin function increase_s .p2align 4, 0x90 _increase_s: ## @increase_s .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 _i_max(%rip), %eax addl $50, %eax movl %eax, _i_max(%rip) movl _i_max(%rip), %eax addl $1, %eax movslq %eax, %rdi callq _malloc movq %rax, -8(%rbp) movl $0, -12(%rbp) LBB1_1: ## =>This Inner Loop Header: Depth=1 movl -12(%rbp), %eax cmpl _i_max(%rip), %eax jge LBB1_4 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 movq _s(%rip), %rax movslq -12(%rbp), %rcx movb (%rax,%rcx), %dl movq -8(%rbp), %rax movslq -12(%rbp), %rcx movb %dl, (%rax,%rcx) ## %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: movq _s(%rip), %rdi callq _free movq -8(%rbp), %rax movq %rax, _s(%rip) addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl $0, -4(%rbp) movl %edi, -8(%rbp) movq %rsi, -16(%rbp) movl _i_max(%rip), %eax addl $1, %eax movslq %eax, %rdi callq _malloc movq %rax, _s(%rip) movl $1, -20(%rbp) LBB2_1: ## =>This Inner Loop Header: Depth=1 movl -20(%rbp), %eax cmpl -8(%rbp), %eax jge LBB2_6 ## %bb.2: ## in Loop: Header=BB2_1 Depth=1 movq -16(%rbp), %rax movslq -20(%rbp), %rcx movq (%rax,%rcx,8), %rdi leaq L_.str(%rip), %rsi callq _fopen movq %rax, -32(%rbp) cmpq $0, -32(%rbp) jne LBB2_4 ## %bb.3: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movq -16(%rbp), %rax movslq -20(%rbp), %rcx movq (%rax,%rcx,8), %rdx leaq L_.str.1(%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 movq -32(%rbp), %rdi callq _stemfile ## %bb.5: ## in Loop: Header=BB2_1 Depth=1 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB2_1 LBB2_6: movq _s(%rip), %rdi callq _free xorl %eax, %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function stemfile _stemfile: ## @stemfile .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) LBB3_1: ## =>This Loop Header: Depth=1 ## Child Loop BB3_6 Depth 2 movq -8(%rbp), %rdi callq _getc movl %eax, -12(%rbp) cmpl $-1, -12(%rbp) jne LBB3_3 ## %bb.2: addq $32, %rsp popq %rbp retq LBB3_3: ## in Loop: Header=BB3_1 Depth=1 movl -12(%rbp), %edi callq _isupper cmpl $0, %eax jne LBB3_5 ## %bb.4: ## in Loop: Header=BB3_1 Depth=1 movl -12(%rbp), %edi callq _islower cmpl $0, %eax je LBB3_13 LBB3_5: ## in Loop: Header=BB3_1 Depth=1 movl $0, -16(%rbp) LBB3_6: ## Parent Loop BB3_1 Depth=1 ## => This Inner Loop Header: Depth=2 movl -16(%rbp), %eax cmpl _i_max(%rip), %eax jne LBB3_8 ## %bb.7: ## in Loop: Header=BB3_6 Depth=2 callq _increase_s LBB3_8: ## in Loop: Header=BB3_6 Depth=2 movl -12(%rbp), %edi callq _tolower movl %eax, -12(%rbp) movl -12(%rbp), %eax movb %al, %dl movq _s(%rip), %rax movslq -16(%rbp), %rcx movb %dl, (%rax,%rcx) movl -16(%rbp), %eax addl $1, %eax movl %eax, -16(%rbp) movq -8(%rbp), %rdi callq _getc movl %eax, -12(%rbp) movl -12(%rbp), %edi callq _isupper cmpl $0, %eax jne LBB3_11 ## %bb.9: ## in Loop: Header=BB3_6 Depth=2 movl -12(%rbp), %edi callq _islower cmpl $0, %eax jne LBB3_11 ## %bb.10: ## in Loop: Header=BB3_1 Depth=1 movl -12(%rbp), %edi movq -8(%rbp), %rsi callq _ungetc jmp LBB3_12 LBB3_11: ## in Loop: Header=BB3_6 Depth=2 jmp LBB3_6 LBB3_12: ## in Loop: Header=BB3_1 Depth=1 movq _s(%rip), %rax movq %rax, -24(%rbp) ## 8-byte Spill movq _s(%rip), %rdi movl -16(%rbp), %edx subl $1, %edx xorl %esi, %esi callq _stem movl %eax, %ecx movq -24(%rbp), %rax ## 8-byte Reload addl $1, %ecx movslq %ecx, %rcx movb $0, (%rax,%rcx) movq _s(%rip), %rsi leaq L_.str.64(%rip), %rdi movb $0, %al callq _printf jmp LBB3_14 LBB3_13: ## in Loop: Header=BB3_1 Depth=1 movl -12(%rbp), %edi callq _putchar LBB3_14: ## in Loop: Header=BB3_1 Depth=1 jmp LBB3_1 .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function step1ab _step1ab: ## @step1ab .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 _b(%rip), %rax movslq _k(%rip), %rcx movsbl (%rax,%rcx), %eax cmpl $115, %eax jne LBB4_10 ## %bb.1: leaq L_.str.2(%rip), %rdi callq _ends cmpl $0, %eax je LBB4_3 ## %bb.2: movl _k(%rip), %eax subl $2, %eax movl %eax, _k(%rip) jmp LBB4_9 LBB4_3: leaq L_.str.3(%rip), %rdi callq _ends cmpl $0, %eax je LBB4_5 ## %bb.4: leaq L_.str.4(%rip), %rdi callq _setto jmp LBB4_8 LBB4_5: movq _b(%rip), %rax movl _k(%rip), %ecx subl $1, %ecx movslq %ecx, %rcx movsbl (%rax,%rcx), %eax cmpl $115, %eax je LBB4_7 ## %bb.6: movl _k(%rip), %eax addl $-1, %eax movl %eax, _k(%rip) LBB4_7: jmp LBB4_8 LBB4_8: jmp LBB4_9 LBB4_9: jmp LBB4_10 LBB4_10: leaq L_.str.5(%rip), %rdi callq _ends cmpl $0, %eax je LBB4_14 ## %bb.11: callq _m cmpl $0, %eax jle LBB4_13 ## %bb.12: movl _k(%rip), %eax addl $-1, %eax movl %eax, _k(%rip) LBB4_13: jmp LBB4_38 LBB4_14: leaq L_.str.6(%rip), %rdi callq _ends cmpl $0, %eax jne LBB4_16 ## %bb.15: leaq L_.str.7(%rip), %rdi callq _ends cmpl $0, %eax je LBB4_37 LBB4_16: callq _vowelinstem cmpl $0, %eax je LBB4_37 ## %bb.17: movl _j(%rip), %eax movl %eax, _k(%rip) leaq L_.str.8(%rip), %rdi callq _ends cmpl $0, %eax je LBB4_19 ## %bb.18: leaq L_.str.9(%rip), %rdi callq _setto jmp LBB4_36 LBB4_19: leaq L_.str.10(%rip), %rdi callq _ends cmpl $0, %eax je LBB4_21 ## %bb.20: leaq L_.str.11(%rip), %rdi callq _setto jmp LBB4_35 LBB4_21: leaq L_.str.12(%rip), %rdi callq _ends cmpl $0, %eax je LBB4_23 ## %bb.22: leaq L_.str.13(%rip), %rdi callq _setto jmp LBB4_34 LBB4_23: movl _k(%rip), %edi callq _doublec cmpl $0, %eax je LBB4_29 ## %bb.24: movl _k(%rip), %eax addl $-1, %eax movl %eax, _k(%rip) movq _b(%rip), %rax movslq _k(%rip), %rcx movsbl (%rax,%rcx), %eax movl %eax, -4(%rbp) cmpl $108, -4(%rbp) je LBB4_27 ## %bb.25: cmpl $115, -4(%rbp) je LBB4_27 ## %bb.26: cmpl $122, -4(%rbp) jne LBB4_28 LBB4_27: movl _k(%rip), %eax addl $1, %eax movl %eax, _k(%rip) LBB4_28: jmp LBB4_33 LBB4_29: callq _m cmpl $1, %eax jne LBB4_32 ## %bb.30: movl _k(%rip), %edi callq _cvc cmpl $0, %eax je LBB4_32 ## %bb.31: leaq L_.str.14(%rip), %rdi callq _setto LBB4_32: jmp LBB4_33 LBB4_33: jmp LBB4_34 LBB4_34: jmp LBB4_35 LBB4_35: jmp LBB4_36 LBB4_36: jmp LBB4_37 LBB4_37: jmp LBB4_38 LBB4_38: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function ends _ends: ## @ends .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 movsbl (%rax), %eax movl %eax, -20(%rbp) movq -16(%rbp), %rax movslq -20(%rbp), %rcx movsbl (%rax,%rcx), %eax movq _b(%rip), %rcx movslq _k(%rip), %rdx movsbl (%rcx,%rdx), %ecx cmpl %ecx, %eax je LBB5_2 ## %bb.1: movl $0, -4(%rbp) jmp LBB5_7 LBB5_2: movl -20(%rbp), %eax movl _k(%rip), %ecx subl _k0(%rip), %ecx addl $1, %ecx cmpl %ecx, %eax jle LBB5_4 ## %bb.3: movl $0, -4(%rbp) jmp LBB5_7 LBB5_4: movq _b(%rip), %rdi movslq _k(%rip), %rax addq %rax, %rdi movslq -20(%rbp), %rcx xorl %eax, %eax ## kill: def $rax killed $eax subq %rcx, %rax addq %rax, %rdi addq $1, %rdi movq -16(%rbp), %rsi addq $1, %rsi movslq -20(%rbp), %rdx callq _memcmp cmpl $0, %eax je LBB5_6 ## %bb.5: movl $0, -4(%rbp) jmp LBB5_7 LBB5_6: movl _k(%rip), %eax subl -20(%rbp), %eax movl %eax, _j(%rip) movl $1, -4(%rbp) LBB5_7: movl -4(%rbp), %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function setto _setto: ## @setto .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 movsbl (%rax), %eax movl %eax, -12(%rbp) movq _b(%rip), %rdi movslq _j(%rip), %rax addq %rax, %rdi addq $1, %rdi movq -8(%rbp), %rsi addq $1, %rsi movslq -12(%rbp), %rdx movq $-1, %rcx callq ___memmove_chk movl _j(%rip), %eax addl -12(%rbp), %eax movl %eax, _k(%rip) addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function doublec _doublec: ## @doublec .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl %edi, -8(%rbp) movl -8(%rbp), %eax movl _k0(%rip), %ecx addl $1, %ecx cmpl %ecx, %eax jge LBB7_2 ## %bb.1: movl $0, -4(%rbp) jmp LBB7_5 LBB7_2: movq _b(%rip), %rax movslq -8(%rbp), %rcx movsbl (%rax,%rcx), %eax movq _b(%rip), %rcx movl -8(%rbp), %edx subl $1, %edx movslq %edx, %rdx movsbl (%rcx,%rdx), %ecx cmpl %ecx, %eax je LBB7_4 ## %bb.3: movl $0, -4(%rbp) jmp LBB7_5 LBB7_4: movl -8(%rbp), %edi callq _cons movl %eax, -4(%rbp) LBB7_5: movl -4(%rbp), %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function cvc _cvc: ## @cvc .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl %edi, -8(%rbp) movl -8(%rbp), %eax movl _k0(%rip), %ecx addl $2, %ecx cmpl %ecx, %eax jl LBB8_4 ## %bb.1: movl -8(%rbp), %edi callq _cons cmpl $0, %eax je LBB8_4 ## %bb.2: movl -8(%rbp), %edi subl $1, %edi callq _cons cmpl $0, %eax jne LBB8_4 ## %bb.3: movl -8(%rbp), %edi subl $2, %edi callq _cons cmpl $0, %eax jne LBB8_5 LBB8_4: movl $0, -4(%rbp) jmp LBB8_10 LBB8_5: movq _b(%rip), %rax movslq -8(%rbp), %rcx movsbl (%rax,%rcx), %eax movl %eax, -12(%rbp) cmpl $119, -12(%rbp) je LBB8_8 ## %bb.6: cmpl $120, -12(%rbp) je LBB8_8 ## %bb.7: cmpl $121, -12(%rbp) jne LBB8_9 LBB8_8: movl $0, -4(%rbp) jmp LBB8_10 LBB8_9: movl $1, -4(%rbp) LBB8_10: movl -4(%rbp), %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function m _m: ## @m .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -8(%rbp) movl _k0(%rip), %eax movl %eax, -12(%rbp) LBB9_1: ## =>This Inner Loop Header: Depth=1 movl -12(%rbp), %eax cmpl _j(%rip), %eax jle LBB9_3 ## %bb.2: movl -8(%rbp), %eax movl %eax, -4(%rbp) jmp LBB9_20 LBB9_3: ## in Loop: Header=BB9_1 Depth=1 movl -12(%rbp), %edi callq _cons cmpl $0, %eax jne LBB9_5 ## %bb.4: jmp LBB9_6 LBB9_5: ## in Loop: Header=BB9_1 Depth=1 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB9_1 LBB9_6: movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) LBB9_7: ## =>This Loop Header: Depth=1 ## Child Loop BB9_8 Depth 2 ## Child Loop BB9_14 Depth 2 jmp LBB9_8 LBB9_8: ## Parent Loop BB9_7 Depth=1 ## => This Inner Loop Header: Depth=2 movl -12(%rbp), %eax cmpl _j(%rip), %eax jle LBB9_10 ## %bb.9: movl -8(%rbp), %eax movl %eax, -4(%rbp) jmp LBB9_20 LBB9_10: ## in Loop: Header=BB9_8 Depth=2 movl -12(%rbp), %edi callq _cons cmpl $0, %eax je LBB9_12 ## %bb.11: ## in Loop: Header=BB9_7 Depth=1 jmp LBB9_13 LBB9_12: ## in Loop: Header=BB9_8 Depth=2 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB9_8 LBB9_13: ## in Loop: Header=BB9_7 Depth=1 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) LBB9_14: ## Parent Loop BB9_7 Depth=1 ## => This Inner Loop Header: Depth=2 movl -12(%rbp), %eax cmpl _j(%rip), %eax jle LBB9_16 ## %bb.15: movl -8(%rbp), %eax movl %eax, -4(%rbp) jmp LBB9_20 LBB9_16: ## in Loop: Header=BB9_14 Depth=2 movl -12(%rbp), %edi callq _cons cmpl $0, %eax jne LBB9_18 ## %bb.17: ## in Loop: Header=BB9_7 Depth=1 jmp LBB9_19 LBB9_18: ## in Loop: Header=BB9_14 Depth=2 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB9_14 LBB9_19: ## in Loop: Header=BB9_7 Depth=1 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB9_7 LBB9_20: movl -4(%rbp), %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function cons _cons: ## @cons .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) movq _b(%rip), %rax movslq -8(%rbp), %rcx movsbl (%rax,%rcx), %eax movl %eax, -12(%rbp) ## 4-byte Spill subl $97, %eax je LBB10_1 jmp LBB10_8 LBB10_8: movl -12(%rbp), %eax ## 4-byte Reload subl $101, %eax je LBB10_1 jmp LBB10_9 LBB10_9: movl -12(%rbp), %eax ## 4-byte Reload subl $105, %eax je LBB10_1 jmp LBB10_10 LBB10_10: movl -12(%rbp), %eax ## 4-byte Reload subl $111, %eax je LBB10_1 jmp LBB10_11 LBB10_11: movl -12(%rbp), %eax ## 4-byte Reload subl $117, %eax je LBB10_1 jmp LBB10_12 LBB10_12: movl -12(%rbp), %eax ## 4-byte Reload subl $121, %eax je LBB10_2 jmp LBB10_6 LBB10_1: movl $0, -4(%rbp) jmp LBB10_7 LBB10_2: movl -8(%rbp), %eax cmpl _k0(%rip), %eax jne LBB10_4 ## %bb.3: movl $1, %eax movl %eax, -16(%rbp) ## 4-byte Spill jmp LBB10_5 LBB10_4: movl -8(%rbp), %edi subl $1, %edi callq _cons cmpl $0, %eax setne %al xorb $-1, %al andb $1, %al movzbl %al, %eax movl %eax, -16(%rbp) ## 4-byte Spill LBB10_5: movl -16(%rbp), %eax ## 4-byte Reload movl %eax, -4(%rbp) jmp LBB10_7 LBB10_6: movl $1, -4(%rbp) LBB10_7: movl -4(%rbp), %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function vowelinstem _vowelinstem: ## @vowelinstem .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 _k0(%rip), %eax movl %eax, -8(%rbp) LBB11_1: ## =>This Inner Loop Header: Depth=1 movl -8(%rbp), %eax cmpl _j(%rip), %eax jg LBB11_6 ## %bb.2: ## in Loop: Header=BB11_1 Depth=1 movl -8(%rbp), %edi callq _cons cmpl $0, %eax jne LBB11_4 ## %bb.3: movl $1, -4(%rbp) jmp LBB11_7 LBB11_4: ## in Loop: Header=BB11_1 Depth=1 jmp LBB11_5 LBB11_5: ## in Loop: Header=BB11_1 Depth=1 movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) jmp LBB11_1 LBB11_6: movl $0, -4(%rbp) LBB11_7: movl -4(%rbp), %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function step1c _step1c: ## @step1c .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.15(%rip), %rdi callq _ends cmpl $0, %eax je LBB12_3 ## %bb.1: callq _vowelinstem cmpl $0, %eax je LBB12_3 ## %bb.2: movq _b(%rip), %rax movslq _k(%rip), %rcx movb $105, (%rax,%rcx) LBB12_3: popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function step2 _step2: ## @step2 .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 _b(%rip), %rax movl _k(%rip), %ecx decl %ecx movslq %ecx, %rcx movsbl (%rax,%rcx), %eax addl $-97, %eax movl %eax, %ecx movq %rcx, -8(%rbp) ## 8-byte Spill subl $19, %eax ja LBB13_51 ## %bb.52: movq -8(%rbp), %rax ## 8-byte Reload leaq LJTI13_0(%rip), %rcx movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax LBB13_1: leaq L_.str.16(%rip), %rdi callq _ends cmpl $0, %eax je LBB13_3 ## %bb.2: leaq L_.str.9(%rip), %rdi callq _r jmp LBB13_51 LBB13_3: leaq L_.str.17(%rip), %rdi callq _ends cmpl $0, %eax je LBB13_5 ## %bb.4: leaq L_.str.18(%rip), %rdi callq _r jmp LBB13_51 LBB13_5: jmp LBB13_51 LBB13_6: leaq L_.str.19(%rip), %rdi callq _ends cmpl $0, %eax je LBB13_8 ## %bb.7: leaq L_.str.20(%rip), %rdi callq _r jmp LBB13_51 LBB13_8: leaq L_.str.21(%rip), %rdi callq _ends cmpl $0, %eax je LBB13_10 ## %bb.9: leaq L_.str.22(%rip), %rdi callq _r jmp LBB13_51 LBB13_10: jmp LBB13_51 LBB13_11: leaq L_.str.23(%rip), %rdi callq _ends cmpl $0, %eax je LBB13_13 ## %bb.12: leaq L_.str.13(%rip), %rdi callq _r jmp LBB13_51 LBB13_13: jmp LBB13_51 LBB13_14: leaq L_.str.24(%rip), %rdi callq _ends cmpl $0, %eax je LBB13_16 ## %bb.15: leaq L_.str.11(%rip), %rdi callq _r jmp LBB13_51 LBB13_16: leaq L_.str.25(%rip), %rdi callq _ends cmpl $0, %eax je LBB13_18 ## %bb.17: leaq L_.str.26(%rip), %rdi callq _r jmp LBB13_51 LBB13_18: leaq L_.str.27(%rip), %rdi callq _ends cmpl $0, %eax je LBB13_20 ## %bb.19: leaq L_.str.28(%rip), %rdi callq _r jmp LBB13_51 LBB13_20: leaq L_.str.29(%rip), %rdi callq _ends cmpl $0, %eax je LBB13_22 ## %bb.21: leaq L_.str.14(%rip), %rdi callq _r jmp LBB13_51 LBB13_22: leaq L_.str.30(%rip), %rdi callq _ends cmpl $0, %eax je LBB13_24 ## %bb.23: leaq L_.str.31(%rip), %rdi callq _r jmp LBB13_51 LBB13_24: jmp LBB13_51 LBB13_25: leaq L_.str.32(%rip), %rdi callq _ends cmpl $0, %eax je LBB13_27 ## %bb.26: leaq L_.str.13(%rip), %rdi callq _r jmp LBB13_51 LBB13_27: leaq L_.str.33(%rip), %rdi callq _ends cmpl $0, %eax je LBB13_29 ## %bb.28: leaq L_.str.9(%rip), %rdi callq _r jmp LBB13_51 LBB13_29: leaq L_.str.34(%rip), %rdi callq _ends cmpl $0, %eax je LBB13_31 ## %bb.30: leaq L_.str.9(%rip), %rdi callq _r jmp LBB13_51 LBB13_31: jmp LBB13_51 LBB13_32: leaq L_.str.35(%rip), %rdi callq _ends cmpl $0, %eax je LBB13_34 ## %bb.33: leaq L_.str.26(%rip), %rdi callq _r jmp LBB13_51 LBB13_34: leaq L_.str.36(%rip), %rdi callq _ends cmpl $0, %eax je LBB13_36 ## %bb.35: leaq L_.str.37(%rip), %rdi callq _r jmp LBB13_51 LBB13_36: leaq L_.str.38(%rip), %rdi callq _ends cmpl $0, %eax je LBB13_38 ## %bb.37: leaq L_.str.39(%rip), %rdi callq _r jmp LBB13_51 LBB13_38: leaq L_.str.40(%rip), %rdi callq _ends cmpl $0, %eax je LBB13_40 ## %bb.39: leaq L_.str.31(%rip), %rdi callq _r jmp LBB13_51 LBB13_40: jmp LBB13_51 LBB13_41: leaq L_.str.41(%rip), %rdi callq _ends cmpl $0, %eax je LBB13_43 ## %bb.42: leaq L_.str.26(%rip), %rdi callq _r jmp LBB13_51 LBB13_43: leaq L_.str.42(%rip), %rdi callq _ends cmpl $0, %eax je LBB13_45 ## %bb.44: leaq L_.str.37(%rip), %rdi callq _r jmp LBB13_51 LBB13_45: leaq L_.str.43(%rip), %rdi callq _ends cmpl $0, %eax je LBB13_47 ## %bb.46: leaq L_.str.11(%rip), %rdi callq _r jmp LBB13_51 LBB13_47: jmp LBB13_51 LBB13_48: leaq L_.str.44(%rip), %rdi callq _ends cmpl $0, %eax je LBB13_50 ## %bb.49: leaq L_.str.45(%rip), %rdi callq _r jmp LBB13_51 LBB13_50: jmp LBB13_51 LBB13_51: addq $16, %rsp popq %rbp retq .cfi_endproc .p2align 2, 0x90 .data_region jt32 .set L13_0_set_1, LBB13_1-LJTI13_0 .set L13_0_set_51, LBB13_51-LJTI13_0 .set L13_0_set_6, LBB13_6-LJTI13_0 .set L13_0_set_11, LBB13_11-LJTI13_0 .set L13_0_set_48, LBB13_48-LJTI13_0 .set L13_0_set_14, LBB13_14-LJTI13_0 .set L13_0_set_25, LBB13_25-LJTI13_0 .set L13_0_set_32, LBB13_32-LJTI13_0 .set L13_0_set_41, LBB13_41-LJTI13_0 LJTI13_0: .long L13_0_set_1 .long L13_0_set_51 .long L13_0_set_6 .long L13_0_set_51 .long L13_0_set_11 .long L13_0_set_51 .long L13_0_set_48 .long L13_0_set_51 .long L13_0_set_51 .long L13_0_set_51 .long L13_0_set_51 .long L13_0_set_14 .long L13_0_set_51 .long L13_0_set_51 .long L13_0_set_25 .long L13_0_set_51 .long L13_0_set_51 .long L13_0_set_51 .long L13_0_set_32 .long L13_0_set_41 .end_data_region ## -- End function .p2align 4, 0x90 ## -- Begin function r _r: ## @r .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) callq _m cmpl $0, %eax jle LBB14_2 ## %bb.1: movq -8(%rbp), %rdi callq _setto LBB14_2: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function step3 _step3: ## @step3 .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 _b(%rip), %rax movslq _k(%rip), %rcx movsbl (%rax,%rcx), %eax addl $-101, %eax movl %eax, %ecx movq %rcx, -8(%rbp) ## 8-byte Spill subl $14, %eax ja LBB15_19 ## %bb.20: movq -8(%rbp), %rax ## 8-byte Reload leaq LJTI15_0(%rip), %rcx movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax LBB15_1: leaq L_.str.46(%rip), %rdi callq _ends cmpl $0, %eax je LBB15_3 ## %bb.2: leaq L_.str.47(%rip), %rdi callq _r jmp LBB15_19 LBB15_3: leaq L_.str.48(%rip), %rdi callq _ends cmpl $0, %eax je LBB15_5 ## %bb.4: leaq l_.str.49(%rip), %rdi callq _r jmp LBB15_19 LBB15_5: leaq L_.str.50(%rip), %rdi callq _ends cmpl $0, %eax je LBB15_7 ## %bb.6: leaq L_.str.26(%rip), %rdi callq _r jmp LBB15_19 LBB15_7: jmp LBB15_19 LBB15_8: leaq L_.str.51(%rip), %rdi callq _ends cmpl $0, %eax je LBB15_10 ## %bb.9: leaq L_.str.47(%rip), %rdi callq _r jmp LBB15_19 LBB15_10: jmp LBB15_19 LBB15_11: leaq L_.str.52(%rip), %rdi callq _ends cmpl $0, %eax je LBB15_13 ## %bb.12: leaq L_.str.47(%rip), %rdi callq _r jmp LBB15_19 LBB15_13: leaq L_.str.39(%rip), %rdi callq _ends cmpl $0, %eax je LBB15_15 ## %bb.14: leaq l_.str.49(%rip), %rdi callq _r jmp LBB15_19 LBB15_15: jmp LBB15_19 LBB15_16: leaq L_.str.53(%rip), %rdi callq _ends cmpl $0, %eax je LBB15_18 ## %bb.17: leaq l_.str.49(%rip), %rdi callq _r jmp LBB15_19 LBB15_18: jmp LBB15_19 LBB15_19: addq $16, %rsp popq %rbp retq .cfi_endproc .p2align 2, 0x90 .data_region jt32 .set L15_0_set_1, LBB15_1-LJTI15_0 .set L15_0_set_19, LBB15_19-LJTI15_0 .set L15_0_set_8, LBB15_8-LJTI15_0 .set L15_0_set_11, LBB15_11-LJTI15_0 .set L15_0_set_16, LBB15_16-LJTI15_0 LJTI15_0: .long L15_0_set_1 .long L15_0_set_19 .long L15_0_set_19 .long L15_0_set_19 .long L15_0_set_8 .long L15_0_set_19 .long L15_0_set_19 .long L15_0_set_11 .long L15_0_set_19 .long L15_0_set_19 .long L15_0_set_19 .long L15_0_set_19 .long L15_0_set_19 .long L15_0_set_19 .long L15_0_set_16 .end_data_region ## -- End function .p2align 4, 0x90 ## -- Begin function step4 _step4: ## @step4 .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 _b(%rip), %rax movl _k(%rip), %ecx decl %ecx movslq %ecx, %rcx movsbl (%rax,%rcx), %eax addl $-97, %eax movl %eax, %ecx movq %rcx, -8(%rbp) ## 8-byte Spill subl $25, %eax ja LBB16_54 ## %bb.58: movq -8(%rbp), %rax ## 8-byte Reload leaq LJTI16_0(%rip), %rcx movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax LBB16_1: leaq L_.str.26(%rip), %rdi callq _ends cmpl $0, %eax je LBB16_3 ## %bb.2: jmp LBB16_55 LBB16_3: jmp LBB16_57 LBB16_4: leaq L_.str.22(%rip), %rdi callq _ends cmpl $0, %eax je LBB16_6 ## %bb.5: jmp LBB16_55 LBB16_6: leaq L_.str.20(%rip), %rdi callq _ends cmpl $0, %eax je LBB16_8 ## %bb.7: jmp LBB16_55 LBB16_8: jmp LBB16_57 LBB16_9: leaq L_.str.54(%rip), %rdi callq _ends cmpl $0, %eax je LBB16_11 ## %bb.10: jmp LBB16_55 LBB16_11: jmp LBB16_57 LBB16_12: leaq L_.str.47(%rip), %rdi callq _ends cmpl $0, %eax je LBB16_14 ## %bb.13: jmp LBB16_55 LBB16_14: jmp LBB16_57 LBB16_15: leaq L_.str.55(%rip), %rdi callq _ends cmpl $0, %eax je LBB16_17 ## %bb.16: jmp LBB16_55 LBB16_17: leaq L_.str.56(%rip), %rdi callq _ends cmpl $0, %eax je LBB16_19 ## %bb.18: jmp LBB16_55 LBB16_19: jmp LBB16_57 LBB16_20: leaq L_.str.57(%rip), %rdi callq _ends cmpl $0, %eax je LBB16_22 ## %bb.21: jmp LBB16_55 LBB16_22: leaq L_.str.58(%rip), %rdi callq _ends cmpl $0, %eax je LBB16_24 ## %bb.23: jmp LBB16_55 LBB16_24: leaq L_.str.59(%rip), %rdi callq _ends cmpl $0, %eax je LBB16_26 ## %bb.25: jmp LBB16_55 LBB16_26: leaq L_.str.28(%rip), %rdi callq _ends cmpl $0, %eax je LBB16_28 ## %bb.27: jmp LBB16_55 LBB16_28: jmp LBB16_57 LBB16_29: leaq L_.str.60(%rip), %rdi callq _ends cmpl $0, %eax je LBB16_34 ## %bb.30: movl _j(%rip), %eax cmpl _k0(%rip), %eax jl LBB16_34 ## %bb.31: movq _b(%rip), %rax movslq _j(%rip), %rcx movsbl (%rax,%rcx), %eax cmpl $115, %eax je LBB16_33 ## %bb.32: movq _b(%rip), %rax movslq _j(%rip), %rcx movsbl (%rax,%rcx), %eax cmpl $116, %eax jne LBB16_34 LBB16_33: jmp LBB16_55 LBB16_34: leaq L_.str.61(%rip), %rdi callq _ends cmpl $0, %eax je LBB16_36 ## %bb.35: jmp LBB16_55 LBB16_36: jmp LBB16_57 LBB16_37: leaq L_.str.62(%rip), %rdi callq _ends cmpl $0, %eax je LBB16_39 ## %bb.38: jmp LBB16_55 LBB16_39: jmp LBB16_57 LBB16_40: leaq L_.str.9(%rip), %rdi callq _ends cmpl $0, %eax je LBB16_42 ## %bb.41: jmp LBB16_55 LBB16_42: leaq L_.str.63(%rip), %rdi callq _ends cmpl $0, %eax je LBB16_44 ## %bb.43: jmp LBB16_55 LBB16_44: jmp LBB16_57 LBB16_45: leaq L_.str.31(%rip), %rdi callq _ends cmpl $0, %eax je LBB16_47 ## %bb.46: jmp LBB16_55 LBB16_47: jmp LBB16_57 LBB16_48: leaq L_.str.37(%rip), %rdi callq _ends cmpl $0, %eax je LBB16_50 ## %bb.49: jmp LBB16_55 LBB16_50: jmp LBB16_57 LBB16_51: leaq L_.str.13(%rip), %rdi callq _ends cmpl $0, %eax je LBB16_53 ## %bb.52: jmp LBB16_55 LBB16_53: jmp LBB16_57 LBB16_54: jmp LBB16_57 LBB16_55: callq _m cmpl $1, %eax jle LBB16_57 ## %bb.56: movl _j(%rip), %eax movl %eax, _k(%rip) LBB16_57: addq $16, %rsp popq %rbp retq .cfi_endproc .p2align 2, 0x90 .data_region jt32 .set L16_0_set_1, LBB16_1-LJTI16_0 .set L16_0_set_54, LBB16_54-LJTI16_0 .set L16_0_set_4, LBB16_4-LJTI16_0 .set L16_0_set_9, LBB16_9-LJTI16_0 .set L16_0_set_12, LBB16_12-LJTI16_0 .set L16_0_set_15, LBB16_15-LJTI16_0 .set L16_0_set_20, LBB16_20-LJTI16_0 .set L16_0_set_29, LBB16_29-LJTI16_0 .set L16_0_set_37, LBB16_37-LJTI16_0 .set L16_0_set_40, LBB16_40-LJTI16_0 .set L16_0_set_45, LBB16_45-LJTI16_0 .set L16_0_set_48, LBB16_48-LJTI16_0 .set L16_0_set_51, LBB16_51-LJTI16_0 LJTI16_0: .long L16_0_set_1 .long L16_0_set_54 .long L16_0_set_4 .long L16_0_set_54 .long L16_0_set_9 .long L16_0_set_54 .long L16_0_set_54 .long L16_0_set_54 .long L16_0_set_12 .long L16_0_set_54 .long L16_0_set_54 .long L16_0_set_15 .long L16_0_set_54 .long L16_0_set_20 .long L16_0_set_29 .long L16_0_set_54 .long L16_0_set_54 .long L16_0_set_54 .long L16_0_set_37 .long L16_0_set_40 .long L16_0_set_45 .long L16_0_set_48 .long L16_0_set_54 .long L16_0_set_54 .long L16_0_set_54 .long L16_0_set_51 .end_data_region ## -- End function .p2align 4, 0x90 ## -- Begin function step5 _step5: ## @step5 .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 _k(%rip), %eax movl %eax, _j(%rip) movq _b(%rip), %rax movslq _k(%rip), %rcx movsbl (%rax,%rcx), %eax cmpl $101, %eax jne LBB17_6 ## %bb.1: callq _m movl %eax, -4(%rbp) cmpl $1, -4(%rbp) jg LBB17_4 ## %bb.2: cmpl $1, -4(%rbp) jne LBB17_5 ## %bb.3: movl _k(%rip), %edi subl $1, %edi callq _cvc cmpl $0, %eax jne LBB17_5 LBB17_4: movl _k(%rip), %eax addl $-1, %eax movl %eax, _k(%rip) LBB17_5: jmp LBB17_6 LBB17_6: movq _b(%rip), %rax movslq _k(%rip), %rcx movsbl (%rax,%rcx), %eax cmpl $108, %eax jne LBB17_10 ## %bb.7: movl _k(%rip), %edi callq _doublec cmpl $0, %eax je LBB17_10 ## %bb.8: callq _m cmpl $1, %eax jle LBB17_10 ## %bb.9: movl _k(%rip), %eax addl $-1, %eax movl %eax, _k(%rip) LBB17_10: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .zerofill __DATA,__bss,_b,8,3 ## @b .zerofill __DATA,__bss,_k,4,2 ## @k .zerofill __DATA,__bss,_k0,4,2 ## @k0 .section __DATA,__data .p2align 2 ## @i_max _i_max: .long 50 ## 0x32 .zerofill __DATA,__bss,_s,8,3 ## @s .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "r" L_.str.1: ## @.str.1 .asciz "File %s not found\n" L_.str.2: ## @.str.2 .asciz "\004sses" L_.str.3: ## @.str.3 .asciz "\003ies" L_.str.4: ## @.str.4 .asciz "\001i" L_.str.5: ## @.str.5 .asciz "\003eed" L_.str.6: ## @.str.6 .asciz "\002ed" L_.str.7: ## @.str.7 .asciz "\003ing" .zerofill __DATA,__bss,_j,4,2 ## @j L_.str.8: ## @.str.8 .asciz "\002at" L_.str.9: ## @.str.9 .asciz "\003ate" L_.str.10: ## @.str.10 .asciz "\002bl" L_.str.11: ## @.str.11 .asciz "\003ble" L_.str.12: ## @.str.12 .asciz "\002iz" L_.str.13: ## @.str.13 .asciz "\003ize" L_.str.14: ## @.str.14 .asciz "\001e" L_.str.15: ## @.str.15 .asciz "\001y" L_.str.16: ## @.str.16 .asciz "\007ational" L_.str.17: ## @.str.17 .asciz "\006tional" L_.str.18: ## @.str.18 .asciz "\004tion" L_.str.19: ## @.str.19 .asciz "\004enci" L_.str.20: ## @.str.20 .asciz "\004ence" L_.str.21: ## @.str.21 .asciz "\004anci" L_.str.22: ## @.str.22 .asciz "\004ance" L_.str.23: ## @.str.23 .asciz "\004izer" L_.str.24: ## @.str.24 .asciz "\003bli" L_.str.25: ## @.str.25 .asciz "\004alli" L_.str.26: ## @.str.26 .asciz "\002al" L_.str.27: ## @.str.27 .asciz "\005entli" L_.str.28: ## @.str.28 .asciz "\003ent" L_.str.29: ## @.str.29 .asciz "\003eli" L_.str.30: ## @.str.30 .asciz "\005ousli" L_.str.31: ## @.str.31 .asciz "\003ous" L_.str.32: ## @.str.32 .asciz "\007ization" L_.str.33: ## @.str.33 .asciz "\005ation" L_.str.34: ## @.str.34 .asciz "\004ator" L_.str.35: ## @.str.35 .asciz "\005alism" L_.str.36: ## @.str.36 .asciz "\007iveness" L_.str.37: ## @.str.37 .asciz "\003ive" L_.str.38: ## @.str.38 .asciz "\007fulness" L_.str.39: ## @.str.39 .asciz "\003ful" L_.str.40: ## @.str.40 .asciz "\007ousness" L_.str.41: ## @.str.41 .asciz "\005aliti" L_.str.42: ## @.str.42 .asciz "\005iviti" L_.str.43: ## @.str.43 .asciz "\006biliti" L_.str.44: ## @.str.44 .asciz "\004logi" L_.str.45: ## @.str.45 .asciz "\003log" L_.str.46: ## @.str.46 .asciz "\005icate" L_.str.47: ## @.str.47 .asciz "\002ic" L_.str.48: ## @.str.48 .asciz "\005ative" .section __TEXT,__const l_.str.49: ## @.str.49 .space 2 .section __TEXT,__cstring,cstring_literals L_.str.50: ## @.str.50 .asciz "\005alize" L_.str.51: ## @.str.51 .asciz "\005iciti" L_.str.52: ## @.str.52 .asciz "\004ical" L_.str.53: ## @.str.53 .asciz "\004ness" L_.str.54: ## @.str.54 .asciz "\002er" L_.str.55: ## @.str.55 .asciz "\004able" L_.str.56: ## @.str.56 .asciz "\004ible" L_.str.57: ## @.str.57 .asciz "\003ant" L_.str.58: ## @.str.58 .asciz "\005ement" L_.str.59: ## @.str.59 .asciz "\004ment" L_.str.60: ## @.str.60 .asciz "\003ion" L_.str.61: ## @.str.61 .asciz "\002ou" L_.str.62: ## @.str.62 .asciz "\003ism" L_.str.63: ## @.str.63 .asciz "\003iti" L_.str.64: ## @.str.64 .asciz "%s" .subsections_via_symbols
the_stack_data/43514.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function init _init: ; @init .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur w0, [x29, #-4] str x1, [sp, #16] str x2, [sp, #8] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _puts ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function fini _fini: ; @fini .cfi_startproc ; %bb.0: stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill .cfi_def_cfa_offset 16 mov x29, sp .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _puts ldp x29, x30, [sp], #16 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .globl _run_probe ; -- Begin function run_probe .p2align 2 _run_probe: ; @run_probe .cfi_startproc ; %bb.0: adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF ret .cfi_endproc ; -- End function .section __TEXT,__StaticInit,regular,pure_instructions .p2align 2 ; -- Begin function __GLOBAL_init_65535 ___GLOBAL_init_65535: ; @__GLOBAL_init_65535 .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, _fini@PAGE add x0, x0, _fini@PAGEOFF mov x1, #0 adrp x2, ___dso_handle@PAGE add x2, x2, ___dso_handle@PAGEOFF bl ___cxa_atexit ldp x29, x30, [sp], #16 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Loading C plugin!" l_.str.1: ; @.str.1 .asciz "Unloading C plugin!" l_.str.2: ; @.str.2 .asciz "Hello C plugin!" .section __DATA,__mod_init_func,mod_init_funcs .p2align 3 .quad _init .quad ___GLOBAL_init_65535 .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function init _init: ## @init .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl %edi, -4(%rbp) movq %rsi, -16(%rbp) movq %rdx, -24(%rbp) leaq L_.str(%rip), %rdi callq _puts addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function fini _fini: ## @fini .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 callq _puts popq %rbp retq .cfi_endproc ## -- End function .globl _run_probe ## -- Begin function run_probe .p2align 4, 0x90 _run_probe: ## @run_probe .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq L_.str.2(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__StaticInit,regular,pure_instructions .p2align 4, 0x90 ## -- Begin function __GLOBAL_init_65535 ___GLOBAL_init_65535: ## @__GLOBAL_init_65535 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq _fini(%rip), %rdi xorl %eax, %eax movl %eax, %esi leaq ___dso_handle(%rip), %rdx callq ___cxa_atexit popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Loading C plugin!" L_.str.1: ## @.str.1 .asciz "Unloading C plugin!" L_.str.2: ## @.str.2 .asciz "Hello C plugin!" .section __DATA,__mod_init_func,mod_init_funcs .p2align 3 .quad _init .quad ___GLOBAL_init_65535 .subsections_via_symbols
the_stack_data/184518388.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _min ; -- Begin function min .p2align 2 _min: ; @min .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #12] str w1, [sp, #8] ldr w8, [sp, #12] ldr w9, [sp, #8] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: ldr w8, [sp, #12] str w8, [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 add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _dfs ; -- Begin function dfs .p2align 2 _dfs: ; @dfs .cfi_startproc ; %bb.0: sub sp, sp, #80 .cfi_def_cfa_offset 80 stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp, #64 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, _S@GOTPAGE ldr x8, [x8, _S@GOTPAGEOFF] str x8, [sp, #24] ; 8-byte Folded Spill add x8, x8, #60 str x8, [sp, #32] ; 8-byte Folded Spill stur w0, [x29, #-8] stur w1, [x29, #-12] mov w9, #2147483647 stur w9, [x29, #-20] ldursw x9, [x29, #-8] mov x10, #240 mul x9, x9, x10 add x8, x8, x9 ldursw x9, [x29, #-12] ldr w8, [x8, x9, lsl #2] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: ldr x8, [sp, #32] ; 8-byte Folded Reload ldursw x9, [x29, #-8] mov x10, #240 mul x9, x9, x10 add x8, x8, x9 ldursw x9, [x29, #-12] ldr w8, [x8, x9, lsl #2] stur w8, [x29, #-4] b LBB1_14 LBB1_2: ldur w8, [x29, #-12] ldur w9, [x29, #-8] subs w8, w8, w9 subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB1_4 b LBB1_3 LBB1_3: mov w8, #1 stur w8, [x29, #-20] b LBB1_12 LBB1_4: ldr x9, [sp, #24] ; 8-byte Folded Reload ldursw x8, [x29, #-8] ldrsb w8, [x9, x8] ldur w10, [x29, #-12] subs w10, w10, #1 ldrsb w9, [x9, w10, sxtw] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB1_6 b LBB1_5 LBB1_5: ldur w8, [x29, #-8] add w0, w8, #1 ldur w1, [x29, #-12] bl _dfs str w0, [sp, #20] ; 4-byte Folded Spill ldur w0, [x29, #-8] ldur w8, [x29, #-12] subs w1, w8, #1 bl _dfs mov x1, x0 ldr w0, [sp, #20] ; 4-byte Folded Reload bl _min stur w0, [x29, #-20] b LBB1_11 LBB1_6: ldur w8, [x29, #-8] add w8, w8, #1 stur w8, [x29, #-16] b LBB1_7 LBB1_7: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-16] ldur w9, [x29, #-12] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_10 b LBB1_8 LBB1_8: ; in Loop: Header=BB1_7 Depth=1 ldur w8, [x29, #-20] str w8, [sp, #16] ; 4-byte Folded Spill ldur w0, [x29, #-8] ldur w1, [x29, #-16] bl _dfs str w0, [sp, #12] ; 4-byte Folded Spill ldur w0, [x29, #-16] ldur w1, [x29, #-12] bl _dfs ldr w8, [sp, #12] ; 4-byte Folded Reload mov x9, x0 ldr w0, [sp, #16] ; 4-byte Folded Reload add w1, w8, w9 bl _min stur w0, [x29, #-20] b LBB1_9 LBB1_9: ; in Loop: Header=BB1_7 Depth=1 ldur w8, [x29, #-16] add w8, w8, #1 stur w8, [x29, #-16] b LBB1_7 LBB1_10: b LBB1_11 LBB1_11: b LBB1_12 LBB1_12: b LBB1_13 LBB1_13: ldr x9, [sp, #32] ; 8-byte Folded Reload ldur w8, [x29, #-20] ldursw x10, [x29, #-8] mov x11, #240 mul x10, x10, x11 add x9, x9, x10 ldursw x10, [x29, #-12] str w8, [x9, x10, lsl #2] stur w8, [x29, #-4] b LBB1_14 LBB1_14: ldur w0, [x29, #-4] ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .globl _main_ ; -- Begin function main_ .p2align 2 _main_: ; @main_ .cfi_startproc ; %bb.0: sub sp, sp, #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, _S@GOTPAGE ldr x8, [x8, _S@GOTPAGEOFF] stur x8, [x29, #-8] ldur x0, [x29, #-8] bl _strlen mov x8, x0 stur w8, [x29, #-12] ldur w1, [x29, #-12] mov w0, #0 str w0, [sp, #16] ; 4-byte Folded Spill bl _dfs 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 .globl _start_ ; -- Begin function start_ .p2align 2 _start_: ; @start_ .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, _S@GOTPAGE ldr x8, [x8, _S@GOTPAGEOFF] add x0, x8, #60 mov x1, #14400 bl _bzero bl _main_ 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, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] b LBB4_1 LBB4_1: ; =>This Inner Loop Header: Depth=1 mov x9, sp adrp x8, _S@GOTPAGE ldr x8, [x8, _S@GOTPAGEOFF] str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf adds w8, w0, #1 cset w8, eq tbnz w8, #0, LBB4_3 b LBB4_2 LBB4_2: ; in Loop: Header=BB4_1 Depth=1 bl _start_ b LBB4_1 LBB4_3: mov w0, #0 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .comm _S,14460,2 ; @S .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d\n" l_.str.1: ; @.str.1 .asciz "%s" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _min ## -- Begin function min .p2align 4, 0x90 _min: ## @min .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 cmpl -8(%rbp), %eax jge LBB0_2 ## %bb.1: movl -4(%rbp), %eax movl %eax, -12(%rbp) ## 4-byte Spill jmp LBB0_3 LBB0_2: movl -8(%rbp), %eax movl %eax, -12(%rbp) ## 4-byte Spill LBB0_3: movl -12(%rbp), %eax ## 4-byte Reload popq %rbp retq .cfi_endproc ## -- End function .globl _dfs ## -- Begin function dfs .p2align 4, 0x90 _dfs: ## @dfs .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl %edi, -8(%rbp) movl %esi, -12(%rbp) movl $2147483647, -20(%rbp) ## imm = 0x7FFFFFFF movslq -8(%rbp), %rcx movq _S@GOTPCREL(%rip), %rax addq $60, %rax imulq $240, %rcx, %rcx addq %rcx, %rax movslq -12(%rbp), %rcx cmpl $0, (%rax,%rcx,4) je LBB1_2 ## %bb.1: movslq -8(%rbp), %rcx movq _S@GOTPCREL(%rip), %rax addq $60, %rax imulq $240, %rcx, %rcx addq %rcx, %rax movslq -12(%rbp), %rcx movl (%rax,%rcx,4), %eax movl %eax, -4(%rbp) jmp LBB1_14 LBB1_2: movl -12(%rbp), %eax subl -8(%rbp), %eax cmpl $1, %eax jne LBB1_4 ## %bb.3: movl $1, -20(%rbp) jmp LBB1_12 LBB1_4: movslq -8(%rbp), %rcx movq _S@GOTPCREL(%rip), %rax movsbl (%rax,%rcx), %eax movl -12(%rbp), %ecx subl $1, %ecx movslq %ecx, %rdx movq _S@GOTPCREL(%rip), %rcx movsbl (%rcx,%rdx), %ecx cmpl %ecx, %eax jne LBB1_6 ## %bb.5: movl -8(%rbp), %edi addl $1, %edi movl -12(%rbp), %esi callq _dfs movl %eax, -24(%rbp) ## 4-byte Spill movl -8(%rbp), %edi movl -12(%rbp), %esi subl $1, %esi callq _dfs movl -24(%rbp), %edi ## 4-byte Reload movl %eax, %esi callq _min movl %eax, -20(%rbp) jmp LBB1_11 LBB1_6: movl -8(%rbp), %eax addl $1, %eax movl %eax, -16(%rbp) LBB1_7: ## =>This Inner Loop Header: Depth=1 movl -16(%rbp), %eax cmpl -12(%rbp), %eax jge LBB1_10 ## %bb.8: ## in Loop: Header=BB1_7 Depth=1 movl -20(%rbp), %eax movl %eax, -28(%rbp) ## 4-byte Spill movl -8(%rbp), %edi movl -16(%rbp), %esi callq _dfs movl %eax, -32(%rbp) ## 4-byte Spill movl -16(%rbp), %edi movl -12(%rbp), %esi callq _dfs movl -32(%rbp), %esi ## 4-byte Reload movl -28(%rbp), %edi ## 4-byte Reload addl %eax, %esi callq _min movl %eax, -20(%rbp) ## %bb.9: ## in Loop: Header=BB1_7 Depth=1 movl -16(%rbp), %eax addl $1, %eax movl %eax, -16(%rbp) jmp LBB1_7 LBB1_10: jmp LBB1_11 LBB1_11: jmp LBB1_12 LBB1_12: jmp LBB1_13 LBB1_13: movl -20(%rbp), %eax movslq -8(%rbp), %rdx movq _S@GOTPCREL(%rip), %rcx addq $60, %rcx imulq $240, %rdx, %rdx addq %rdx, %rcx movslq -12(%rbp), %rdx movl %eax, (%rcx,%rdx,4) movl %eax, -4(%rbp) LBB1_14: 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 movq _S@GOTPCREL(%rip), %rax movq %rax, -8(%rbp) movq -8(%rbp), %rdi callq _strlen ## kill: def $eax killed $eax killed $rax movl %eax, -12(%rbp) movl -12(%rbp), %esi xorl %edi, %edi callq _dfs 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 .globl _start_ ## -- Begin function start_ .p2align 4, 0x90 _start_: ## @start_ .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq _S@GOTPCREL(%rip), %rdi addq $60, %rdi xorl %esi, %esi movl $14400, %edx ## imm = 0x3840 callq _memset callq _main_ 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) LBB4_1: ## =>This Inner Loop Header: Depth=1 leaq L_.str.1(%rip), %rdi movq _S@GOTPCREL(%rip), %rsi movb $0, %al callq _scanf cmpl $-1, %eax je LBB4_3 ## %bb.2: ## in Loop: Header=BB4_1 Depth=1 callq _start_ jmp LBB4_1 LBB4_3: xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .comm _S,14460,2 ## @S .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d\n" L_.str.1: ## @.str.1 .asciz "%s" .subsections_via_symbols
the_stack_data/1198665.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #0 str w8, [sp, #20] ; 4-byte Folded Spill stur wzr, [x29, #-4] stur w0, [x29, #-8] stur x1, [x29, #-16] add x0, sp, #24 str x0, [sp, #8] ; 8-byte Folded Spill ; kill: def $x8 killed $xzr str xzr, [sp, #24] mov w1, #5 str w1, [sp, #16] ; 4-byte Folded Spill bl _insert ldr x0, [sp, #8] ; 8-byte Folded Reload mov w1, #6 bl _insert ldr x0, [sp, #8] ; 8-byte Folded Reload mov w1, #7 bl _insert ldr x0, [sp, #8] ; 8-byte Folded Reload mov w1, #8 bl _insert ldr x0, [sp, #24] bl _print_list ldr x0, [sp, #8] ; 8-byte Folded Reload ldr w1, [sp, #16] ; 4-byte Folded Reload bl _delete ldr x0, [sp, #24] bl _print_list ldr w0, [sp, #20] ; 4-byte Folded Reload ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _insert ; -- Begin function insert .p2align 2 _insert: ; @insert .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] stur w1, [x29, #-12] ldur x8, [x29, #-8] ldr x8, [x8] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: mov x0, #16 bl _malloc ldur x8, [x29, #-8] str x0, [x8] ldur w8, [x29, #-12] ldur x9, [x29, #-8] ldr x9, [x9] str w8, [x9] ldur x8, [x29, #-8] ldr x8, [x8] ; kill: def $x9 killed $xzr str xzr, [x8, #8] b LBB1_6 LBB1_2: ldur x8, [x29, #-8] ldr x8, [x8] str x8, [sp, #8] mov x0, #16 bl _malloc str x0, [sp] ldur w8, [x29, #-12] ldr x9, [sp] str w8, [x9] ldr x8, [sp] ; kill: def $x9 killed $xzr str xzr, [x8, #8] b LBB1_3 LBB1_3: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #8] ldr x8, [x8, #8] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB1_5 b LBB1_4 LBB1_4: ; in Loop: Header=BB1_3 Depth=1 ldr x8, [sp, #8] ldr x8, [x8, #8] str x8, [sp, #8] b LBB1_3 LBB1_5: ldr x8, [sp] ldr x9, [sp, #8] str x8, [x9, #8] b LBB1_6 LBB1_6: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _print_list ; -- Begin function print_list .p2align 2 _print_list: ; @print_list .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #8] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf b LBB2_1 LBB2_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #8] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB2_3 b LBB2_2 LBB2_2: ; in Loop: Header=BB2_1 Depth=1 ldr x8, [sp, #8] ldr w9, [x8] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf ldr x8, [sp, #8] ldr x8, [x8, #8] str x8, [sp, #8] b LBB2_1 LBB2_3: adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _delete ; -- Begin function delete .p2align 2 _delete: ; @delete .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] stur w1, [x29, #-12] ldur x8, [x29, #-8] ldr x8, [x8] str x8, [sp, #8] ldr x8, [sp, #8] ldr w8, [x8] ldur w9, [x29, #-12] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB3_2 b LBB3_1 LBB3_1: ldur x8, [x29, #-8] ldr x8, [x8] ldr x8, [x8, #8] ldur x9, [x29, #-8] str x8, [x9] ldr x0, [sp, #8] bl _free b LBB3_6 LBB3_2: b LBB3_3 LBB3_3: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #8] ldr x8, [x8, #8] ldr w8, [x8] ldur w9, [x29, #-12] subs w8, w8, w9 cset w8, eq tbnz w8, #0, LBB3_5 b LBB3_4 LBB3_4: ; in Loop: Header=BB3_3 Depth=1 ldr x8, [sp, #8] ldr x8, [x8, #8] str x8, [sp, #8] b LBB3_3 LBB3_5: ldr x8, [sp, #8] ldr x8, [x8, #8] str x8, [sp] ldr x8, [sp] ldr x8, [x8, #8] ldr x9, [sp, #8] str x8, [x9, #8] ldr x0, [sp] bl _free b LBB3_6 LBB3_6: 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 "---List start---\n" l_.str.1: ; @.str.1 .asciz "Value : %i\n" l_.str.2: ; @.str.2 .asciz "---List end---\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) movq $0, -24(%rbp) leaq -24(%rbp), %rdi movl $5, %esi callq _insert leaq -24(%rbp), %rdi movl $6, %esi callq _insert leaq -24(%rbp), %rdi movl $7, %esi callq _insert leaq -24(%rbp), %rdi movl $8, %esi callq _insert movq -24(%rbp), %rdi callq _print_list leaq -24(%rbp), %rdi movl $5, %esi callq _delete movq -24(%rbp), %rdi callq _print_list xorl %eax, %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _insert ## -- Begin function insert .p2align 4, 0x90 _insert: ## @insert .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) movq -8(%rbp), %rax cmpq $0, (%rax) jne LBB1_2 ## %bb.1: movl $16, %edi callq _malloc movq %rax, %rcx movq -8(%rbp), %rax movq %rcx, (%rax) movl -12(%rbp), %ecx movq -8(%rbp), %rax movq (%rax), %rax movl %ecx, (%rax) movq -8(%rbp), %rax movq (%rax), %rax movq $0, 8(%rax) jmp LBB1_6 LBB1_2: movq -8(%rbp), %rax movq (%rax), %rax movq %rax, -24(%rbp) movl $16, %edi callq _malloc movq %rax, -32(%rbp) movl -12(%rbp), %ecx movq -32(%rbp), %rax movl %ecx, (%rax) movq -32(%rbp), %rax movq $0, 8(%rax) LBB1_3: ## =>This Inner Loop Header: Depth=1 movq -24(%rbp), %rax cmpq $0, 8(%rax) je LBB1_5 ## %bb.4: ## in Loop: Header=BB1_3 Depth=1 movq -24(%rbp), %rax movq 8(%rax), %rax movq %rax, -24(%rbp) jmp LBB1_3 LBB1_5: movq -32(%rbp), %rcx movq -24(%rbp), %rax movq %rcx, 8(%rax) LBB1_6: addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _print_list ## -- Begin function print_list .p2align 4, 0x90 _print_list: ## @print_list .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) leaq L_.str(%rip), %rdi movb $0, %al callq _printf LBB2_1: ## =>This Inner Loop Header: Depth=1 cmpq $0, -8(%rbp) je LBB2_3 ## %bb.2: ## in Loop: Header=BB2_1 Depth=1 movq -8(%rbp), %rax movl (%rax), %esi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf movq -8(%rbp), %rax movq 8(%rax), %rax movq %rax, -8(%rbp) jmp LBB2_1 LBB2_3: leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _delete ## -- Begin function delete .p2align 4, 0x90 _delete: ## @delete .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) movq -8(%rbp), %rax movq (%rax), %rax movq %rax, -24(%rbp) movq -24(%rbp), %rax movl (%rax), %eax cmpl -12(%rbp), %eax jne LBB3_2 ## %bb.1: movq -8(%rbp), %rax movq (%rax), %rax movq 8(%rax), %rcx movq -8(%rbp), %rax movq %rcx, (%rax) movq -24(%rbp), %rdi callq _free jmp LBB3_6 LBB3_2: jmp LBB3_3 LBB3_3: ## =>This Inner Loop Header: Depth=1 movq -24(%rbp), %rax movq 8(%rax), %rax movl (%rax), %eax cmpl -12(%rbp), %eax je LBB3_5 ## %bb.4: ## in Loop: Header=BB3_3 Depth=1 movq -24(%rbp), %rax movq 8(%rax), %rax movq %rax, -24(%rbp) jmp LBB3_3 LBB3_5: movq -24(%rbp), %rax movq 8(%rax), %rax movq %rax, -32(%rbp) movq -32(%rbp), %rax movq 8(%rax), %rcx movq -24(%rbp), %rax movq %rcx, 8(%rax) movq -32(%rbp), %rdi callq _free LBB3_6: addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "---List start---\n" L_.str.1: ## @.str.1 .asciz "Value : %i\n" L_.str.2: ## @.str.2 .asciz "---List end---\n" .subsections_via_symbols
the_stack_data/29205.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] ; kill: def $x8 killed $xzr str xzr, [sp, #24] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 adrp x8, ___stdinp@GOTPAGE ldr x8, [x8, ___stdinp@GOTPAGEOFF] ldr x2, [x8] add x0, sp, #24 add x1, sp, #16 bl _getline adds x8, x0, #1 cset w8, eq tbnz w8, #0, LBB0_7 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldur x8, [x29, #-16] ldr x8, [x8, #8] ldrsb w8, [x8] subs w8, w8, #97 cset w8, ne tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldur x8, [x29, #-16] ldur w9, [x29, #-8] subs w9, w9, #1 ldr x0, [x8, w9, sxtw #3] adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF bl _fopen str x0, [sp, #8] ldr x0, [sp, #8] ldr x1, [sp, #24] bl _fprintf adrp x8, ___stdoutp@GOTPAGE ldr x8, [x8, ___stdoutp@GOTPAGEOFF] ldr x0, [x8] ldr x1, [sp, #24] bl _fprintf ldr x0, [sp, #8] bl _fclose b LBB0_4 LBB0_4: ; in Loop: Header=BB0_1 Depth=1 ldur x8, [x29, #-16] ldr x8, [x8, #16] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_1 Depth=1 ldur x8, [x29, #-16] ldur w9, [x29, #-8] subs w9, w9, #1 ldr x0, [x8, w9, sxtw #3] adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF bl _fopen str x0, [sp] ldr x0, [sp] ldr x1, [sp, #24] bl _fprintf adrp x8, ___stdoutp@GOTPAGE ldr x8, [x8, ___stdoutp@GOTPAGEOFF] ldr x0, [x8] ldr x1, [sp, #24] bl _fprintf ldr x0, [sp] bl _fclose b LBB0_6 LBB0_6: ; in Loop: Header=BB0_1 Depth=1 b LBB0_1 LBB0_7: ldur w0, [x29, #-4] ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "a" l_.str.1: ; @.str.1 .asciz "w" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movl $0, -4(%rbp) movl %edi, -8(%rbp) movq %rsi, -16(%rbp) movq $0, -24(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movq ___stdinp@GOTPCREL(%rip), %rax movq (%rax), %rdx leaq -24(%rbp), %rdi leaq -32(%rbp), %rsi callq _getline cmpq $-1, %rax je LBB0_7 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movq -16(%rbp), %rax movq 8(%rax), %rax movsbl (%rax), %eax cmpl $97, %eax jne LBB0_4 ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movq -16(%rbp), %rax movl -8(%rbp), %ecx subl $1, %ecx movslq %ecx, %rcx movq (%rax,%rcx,8), %rdi leaq L_.str(%rip), %rsi callq _fopen movq %rax, -40(%rbp) movq -40(%rbp), %rdi movq -24(%rbp), %rsi movb $0, %al callq _fprintf movq ___stdoutp@GOTPCREL(%rip), %rax movq (%rax), %rdi movq -24(%rbp), %rsi movb $0, %al callq _fprintf movq -40(%rbp), %rdi callq _fclose LBB0_4: ## in Loop: Header=BB0_1 Depth=1 movq -16(%rbp), %rax cmpq $0, 16(%rax) je LBB0_6 ## %bb.5: ## in Loop: Header=BB0_1 Depth=1 movq -16(%rbp), %rax movl -8(%rbp), %ecx subl $1, %ecx movslq %ecx, %rcx movq (%rax,%rcx,8), %rdi leaq L_.str.1(%rip), %rsi callq _fopen movq %rax, -48(%rbp) movq -48(%rbp), %rdi movq -24(%rbp), %rsi movb $0, %al callq _fprintf movq ___stdoutp@GOTPCREL(%rip), %rax movq (%rax), %rdi movq -24(%rbp), %rsi movb $0, %al callq _fprintf movq -48(%rbp), %rdi callq _fclose LBB0_6: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_1 LBB0_7: movl -4(%rbp), %eax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "a" L_.str.1: ## @.str.1 .asciz "w" .subsections_via_symbols
the_stack_data/14199182.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .comm _clk_trimtsip_bs,4,2 ; @clk_trimtsip_bs .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .comm _clk_trimtsip_bs,4,2 ## @clk_trimtsip_bs .subsections_via_symbols
the_stack_data/1178323.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 stur wzr, [x29, #-4] stur w0, [x29, #-8] stur x1, [x29, #-16] ldur w8, [x29, #-8] subs w8, w8, #2 cset w8, ge tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] ldr x0, [x8] ldur x8, [x29, #-16] ldr x8, [x8] mov x9, sp str x8, [x9] adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF bl _fprintf mov w8, #1 stur w8, [x29, #-4] b LBB0_10 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 str x0, [sp, #32] ldr x8, [sp, #32] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: ldur x8, [x29, #-16] ldr x0, [x8, #8] bl _perror mov w8, #1 stur w8, [x29, #-4] b LBB0_10 LBB0_4: ldr x0, [sp, #32] mov x1, #-4 mov w2, #2 bl _fseek subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: ldur x8, [x29, #-16] ldr x0, [x8, #8] bl _perror b LBB0_6 LBB0_6: ldr x3, [sp, #32] sub x0, x29, #20 str x0, [sp, #24] ; 8-byte Folded Spill mov x1, #4 mov x2, #1 bl _fread ldr x0, [sp, #32] bl _ftell mov x8, x0 ldr x0, [sp, #24] ; 8-byte Folded Reload stur x8, [x29, #-32] bl _getle32 stur w0, [x29, #-20] ldr x0, [sp, #32] bl _fclose ldur w8, [x29, #-20] ; kill: def $x8 killed $w8 ldur x9, [x29, #-32] subs x8, x8, x9 cset w8, le tbnz w8, #0, LBB0_8 b LBB0_7 LBB0_7: ldur w8, [x29, #-20] ; kill: def $x8 killed $w8 ldur x9, [x29, #-32] subs x8, x8, x9 str x8, [sp, #16] ; 8-byte Folded Spill b LBB0_9 LBB0_8: mov x8, #0 str x8, [sp, #16] ; 8-byte Folded Spill b LBB0_9 LBB0_9: ldr x8, [sp, #16] ; 8-byte Folded Reload str x8, [sp, #40] ldur w8, [x29, #-20] lsr w8, w8, #12 mov x9, x8 ldr x8, [sp, #40] add x8, x8, x9 str x8, [sp, #40] ldr x8, [sp, #40] mov x9, #32786 add x8, x8, x9 str x8, [sp, #40] ldr x8, [sp, #40] add x8, x8, #4095 and x8, x8, #0xfffffffffffff000 str x8, [sp, #40] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf ldur x8, [x29, #-32] 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 ldur w8, [x29, #-20] ; kill: def $x8 killed $w8 mov x9, sp str x8, [x9] 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 ldr x8, [sp, #40] mov x9, sp str x8, [x9] adrp x0, l_.str.8@PAGE add x0, x0, l_.str.8@PAGEOFF bl _printf adrp x0, l_.str.9@PAGE add x0, x0, l_.str.9@PAGEOFF bl _printf ldr x8, [sp, #40] mov x9, sp str x8, [x9] adrp x0, l_.str.10@PAGE add x0, x0, l_.str.10@PAGEOFF bl _printf adrp x0, l_.str.11@PAGE add x0, x0, l_.str.11@PAGEOFF bl _printf adrp x0, l_.str.12@PAGE add x0, x0, l_.str.12@PAGEOFF bl _printf ldur x8, [x29, #-16] ldr x8, [x8, #8] mov x9, sp str x8, [x9] adrp x0, l_.str.13@PAGE add x0, x0, l_.str.13@PAGEOFF bl _printf adrp x0, l_.str.14@PAGE add x0, x0, l_.str.14@PAGEOFF bl _printf stur wzr, [x29, #-4] b LBB0_10 LBB0_10: ldur w0, [x29, #-4] ldp x29, x30, [sp, #80] ; 16-byte Folded Reload add sp, sp, #96 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function getle32 _getle32: ; @getle32 .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] ldr x8, [sp, #8] str x8, [sp] ldr x8, [sp] ldrb w8, [x8] ldr x9, [sp] ldrb w9, [x9, #1] add w8, w8, w9, lsl #8 ldr x9, [sp] ldrb w9, [x9, #2] add w8, w8, w9, lsl #16 ldr x9, [sp] ldrb w9, [x9, #3] add w0, w8, w9, lsl #24 add sp, sp, #16 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Usage: %s compressed_file\n" l_.str.1: ; @.str.1 .asciz "r" l_.str.2: ; @.str.2 .asciz ".section \".rodata.compressed\",\"a\",@progbits\n" l_.str.3: ; @.str.3 .asciz ".globl z_input_len\n" l_.str.4: ; @.str.4 .asciz "z_input_len = %lu\n" l_.str.5: ; @.str.5 .asciz ".globl z_output_len\n" l_.str.6: ; @.str.6 .asciz "z_output_len = %lu\n" l_.str.7: ; @.str.7 .asciz ".globl z_extract_offset\n" l_.str.8: ; @.str.8 .asciz "z_extract_offset = 0x%lx\n" l_.str.9: ; @.str.9 .asciz ".globl z_extract_offset_negative\n" l_.str.10: ; @.str.10 .asciz "z_extract_offset_negative = -0x%lx\n" l_.str.11: ; @.str.11 .asciz ".globl input_data, input_data_end\n" l_.str.12: ; @.str.12 .asciz "input_data:\n" l_.str.13: ; @.str.13 .asciz ".incbin \"%s\"\n" l_.str.14: ; @.str.14 .asciz "input_data_end:\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $64, %rsp movl $0, -4(%rbp) movl %edi, -8(%rbp) movq %rsi, -16(%rbp) cmpl $2, -8(%rbp) jge LBB0_2 ## %bb.1: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movq -16(%rbp), %rax movq (%rax), %rdx leaq L_.str(%rip), %rsi movb $0, %al callq _fprintf movl $1, -4(%rbp) jmp LBB0_10 LBB0_2: movq -16(%rbp), %rax movq 8(%rax), %rdi leaq L_.str.1(%rip), %rsi callq _fopen movq %rax, -48(%rbp) cmpq $0, -48(%rbp) jne LBB0_4 ## %bb.3: movq -16(%rbp), %rax movq 8(%rax), %rdi callq _perror movl $1, -4(%rbp) jmp LBB0_10 LBB0_4: movq -48(%rbp), %rdi movq $-4, %rsi movl $2, %edx callq _fseek cmpl $0, %eax je LBB0_6 ## %bb.5: movq -16(%rbp), %rax movq 8(%rax), %rdi callq _perror LBB0_6: leaq -20(%rbp), %rdi movq -48(%rbp), %rcx movl $4, %esi movl $1, %edx callq _fread movq -48(%rbp), %rdi callq _ftell movq %rax, -32(%rbp) leaq -20(%rbp), %rdi callq _getle32 movl %eax, -20(%rbp) movq -48(%rbp), %rdi callq _fclose movl -20(%rbp), %eax ## kill: def $rax killed $eax cmpq -32(%rbp), %rax jle LBB0_8 ## %bb.7: movl -20(%rbp), %eax ## kill: def $rax killed $eax subq -32(%rbp), %rax movq %rax, -56(%rbp) ## 8-byte Spill jmp LBB0_9 LBB0_8: xorl %eax, %eax ## kill: def $rax killed $eax movq %rax, -56(%rbp) ## 8-byte Spill jmp LBB0_9 LBB0_9: movq -56(%rbp), %rax ## 8-byte Reload movq %rax, -40(%rbp) movl -20(%rbp), %eax shrl $12, %eax movl %eax, %eax ## kill: def $rax killed $eax addq -40(%rbp), %rax movq %rax, -40(%rbp) movq -40(%rbp), %rax addq $32786, %rax ## imm = 0x8012 movq %rax, -40(%rbp) movq -40(%rbp), %rax addq $4095, %rax ## imm = 0xFFF andq $-4096, %rax ## imm = 0xF000 movq %rax, -40(%rbp) leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf movq -32(%rbp), %rsi leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf leaq L_.str.5(%rip), %rdi movb $0, %al callq _printf movl -20(%rbp), %eax movl %eax, %esi leaq L_.str.6(%rip), %rdi movb $0, %al callq _printf leaq L_.str.7(%rip), %rdi movb $0, %al callq _printf movq -40(%rbp), %rsi leaq L_.str.8(%rip), %rdi movb $0, %al callq _printf leaq L_.str.9(%rip), %rdi movb $0, %al callq _printf movq -40(%rbp), %rsi leaq L_.str.10(%rip), %rdi movb $0, %al callq _printf leaq L_.str.11(%rip), %rdi movb $0, %al callq _printf leaq L_.str.12(%rip), %rdi movb $0, %al callq _printf movq -16(%rbp), %rax movq 8(%rax), %rsi leaq L_.str.13(%rip), %rdi movb $0, %al callq _printf leaq L_.str.14(%rip), %rdi movb $0, %al callq _printf movl $0, -4(%rbp) LBB0_10: movl -4(%rbp), %eax addq $64, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function getle32 _getle32: ## @getle32 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) movq -8(%rbp), %rax movq %rax, -16(%rbp) movq -16(%rbp), %rax movzbl (%rax), %eax movq -16(%rbp), %rcx movzbl 1(%rcx), %ecx shll $8, %ecx addl %ecx, %eax movq -16(%rbp), %rcx movzbl 2(%rcx), %ecx shll $16, %ecx addl %ecx, %eax movq -16(%rbp), %rcx movzbl 3(%rcx), %ecx shll $24, %ecx addl %ecx, %eax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Usage: %s compressed_file\n" L_.str.1: ## @.str.1 .asciz "r" L_.str.2: ## @.str.2 .asciz ".section \".rodata.compressed\",\"a\",@progbits\n" L_.str.3: ## @.str.3 .asciz ".globl z_input_len\n" L_.str.4: ## @.str.4 .asciz "z_input_len = %lu\n" L_.str.5: ## @.str.5 .asciz ".globl z_output_len\n" L_.str.6: ## @.str.6 .asciz "z_output_len = %lu\n" L_.str.7: ## @.str.7 .asciz ".globl z_extract_offset\n" L_.str.8: ## @.str.8 .asciz "z_extract_offset = 0x%lx\n" L_.str.9: ## @.str.9 .asciz ".globl z_extract_offset_negative\n" L_.str.10: ## @.str.10 .asciz "z_extract_offset_negative = -0x%lx\n" L_.str.11: ## @.str.11 .asciz ".globl input_data, input_data_end\n" L_.str.12: ## @.str.12 .asciz "input_data:\n" L_.str.13: ## @.str.13 .asciz ".incbin \"%s\"\n" L_.str.14: ## @.str.14 .asciz "input_data_end:\n" .subsections_via_symbols
the_stack_data/25138117.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 x9, sp adrp x8, l_.str.1@PAGE add x8, x8, l_.str.1@PAGEOFF str x8, [sp, #16] ; 8-byte Folded Spill str x8, [x9] adrp x8, l_.str.2@PAGE add x8, x8, l_.str.2@PAGEOFF stur x8, [x29, #-8] ; 8-byte Folded Spill str x8, [x9, #8] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldr x10, [sp, #16] ; 8-byte Folded Reload ldur x8, [x29, #-8] ; 8-byte Folded Reload 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 ldr x8, [sp, #16] ; 8-byte Folded Reload mov x9, sp str x8, [x9] adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf ldur x8, [x29, #-8] ; 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 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 %s\n" l_.str.1: ; @.str.1 .asciz "Ken" l_.str.2: ; @.str.2 .asciz "Goettler" l_.str.3: ; @.str.3 .asciz "%s\n%s\n" l_.str.4: ; @.str.4 .asciz "%s" l_.str.5: ; @.str.5 .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 leaq L_.str(%rip), %rdi leaq L_.str.1(%rip), %rsi leaq L_.str.2(%rip), %rdx movb $0, %al callq _printf leaq L_.str.3(%rip), %rdi leaq L_.str.1(%rip), %rsi leaq L_.str.2(%rip), %rdx movb $0, %al callq _printf leaq L_.str.4(%rip), %rdi leaq L_.str.1(%rip), %rsi movb $0, %al callq _printf leaq L_.str.5(%rip), %rdi leaq L_.str.2(%rip), %rsi movb $0, %al callq _printf xorl %eax, %eax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%s %s\n" L_.str.1: ## @.str.1 .asciz "Ken" L_.str.2: ## @.str.2 .asciz "Goettler" L_.str.3: ## @.str.3 .asciz "%s\n%s\n" L_.str.4: ## @.str.4 .asciz "%s" L_.str.5: ## @.str.5 .asciz " %s\n" .subsections_via_symbols
the_stack_data/111077880.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #224 .cfi_def_cfa_offset 224 stp x29, x30, [sp, #208] ; 16-byte Folded Spill add x29, sp, #208 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] str wzr, [sp, #36] mov w8, #10 str w8, [sp, #24] str wzr, [sp, #32] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #32] ldr w9, [sp, #24] 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, #32] sub x8, x29, #88 add x8, x8, x9, lsl #2 mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _scanf b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #32] add w8, w8, #1 str w8, [sp, #32] b LBB0_1 LBB0_4: str wzr, [sp, #32] b LBB0_5 LBB0_5: ; =>This Loop Header: Depth=1 ; Child Loop BB0_7 Depth 2 ldr w8, [sp, #32] ldr w9, [sp, #24] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_16 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_5 Depth=1 mov w8, #1 str w8, [sp, #20] ldr w8, [sp, #32] add w8, w8, #1 str w8, [sp, #28] b LBB0_7 LBB0_7: ; Parent Loop BB0_5 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #28] ldr w9, [sp, #24] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_12 b LBB0_8 LBB0_8: ; in Loop: Header=BB0_7 Depth=2 ldrsw x8, [sp, #32] sub x9, x29, #88 ldr w8, [x9, x8, lsl #2] ldrsw x10, [sp, #28] ldr w9, [x9, x10, lsl #2] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_10 b LBB0_9 LBB0_9: ; in Loop: Header=BB0_7 Depth=2 ldr w8, [sp, #20] add w8, w8, #1 str w8, [sp, #20] ldrsw x10, [sp, #28] add x9, sp, #40 mov w8, #0 str w8, [x9, x10, lsl #2] b LBB0_10 LBB0_10: ; in Loop: Header=BB0_7 Depth=2 b LBB0_11 LBB0_11: ; in Loop: Header=BB0_7 Depth=2 ldr w8, [sp, #28] add w8, w8, #1 str w8, [sp, #28] b LBB0_7 LBB0_12: ; in Loop: Header=BB0_5 Depth=1 ldrsw x9, [sp, #32] add x8, sp, #40 ldr w8, [x8, x9, lsl #2] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_14 b LBB0_13 LBB0_13: ; in Loop: Header=BB0_5 Depth=1 ldr w8, [sp, #20] ldrsw x10, [sp, #32] sub x9, x29, #88 str w8, [x9, x10, lsl #2] b LBB0_14 LBB0_14: ; in Loop: Header=BB0_5 Depth=1 b LBB0_15 LBB0_15: ; in Loop: Header=BB0_5 Depth=1 ldr w8, [sp, #32] add w8, w8, #1 str w8, [sp, #32] b LBB0_5 LBB0_16: str wzr, [sp, #32] b LBB0_17 LBB0_17: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #32] ldr w9, [sp, #24] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_22 b LBB0_18 LBB0_18: ; in Loop: Header=BB0_17 Depth=1 ldrsw x9, [sp, #32] add x8, sp, #40 ldr w8, [x8, x9, lsl #2] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_20 b LBB0_19 LBB0_19: ; in Loop: Header=BB0_17 Depth=1 ldrsw x9, [sp, #32] sub x8, x29, #88 ldr w8, [x8, x9, lsl #2] ; implicit-def: $x10 mov x10, x8 ldrsw x9, [sp, #32] add x8, sp, #40 ldr w9, [x8, x9, lsl #2] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf b LBB0_20 LBB0_20: ; in Loop: Header=BB0_17 Depth=1 b LBB0_21 LBB0_21: ; in Loop: Header=BB0_17 Depth=1 ldr w8, [sp, #32] add w8, w8, #1 str w8, [sp, #32] b LBB0_17 LBB0_22: ldr w8, [sp, #36] str w8, [sp, #16] ; 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, #16] ; 4-byte Folded Reload ldp x29, x30, [sp, #208] ; 16-byte Folded Reload add sp, sp, #224 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d" l_.str.1: ; @.str.1 .asciz "%d occurs %d times\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $208, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -180(%rbp) movl $10, -192(%rbp) movl $0, -184(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movl -184(%rbp), %eax cmpl -192(%rbp), %eax jge LBB0_4 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movslq -184(%rbp), %rax leaq -96(%rbp), %rsi shlq $2, %rax addq %rax, %rsi leaq L_.str(%rip), %rdi movb $0, %al callq _scanf ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movl -184(%rbp), %eax addl $1, %eax movl %eax, -184(%rbp) jmp LBB0_1 LBB0_4: movl $0, -184(%rbp) LBB0_5: ## =>This Loop Header: Depth=1 ## Child Loop BB0_7 Depth 2 movl -184(%rbp), %eax cmpl -192(%rbp), %eax jge LBB0_16 ## %bb.6: ## in Loop: Header=BB0_5 Depth=1 movl $1, -196(%rbp) movl -184(%rbp), %eax addl $1, %eax movl %eax, -188(%rbp) LBB0_7: ## Parent Loop BB0_5 Depth=1 ## => This Inner Loop Header: Depth=2 movl -188(%rbp), %eax cmpl -192(%rbp), %eax jge LBB0_12 ## %bb.8: ## in Loop: Header=BB0_7 Depth=2 movslq -184(%rbp), %rax movl -96(%rbp,%rax,4), %eax movslq -188(%rbp), %rcx cmpl -96(%rbp,%rcx,4), %eax jne LBB0_10 ## %bb.9: ## in Loop: Header=BB0_7 Depth=2 movl -196(%rbp), %eax addl $1, %eax movl %eax, -196(%rbp) movslq -188(%rbp), %rax movl $0, -176(%rbp,%rax,4) LBB0_10: ## in Loop: Header=BB0_7 Depth=2 jmp LBB0_11 LBB0_11: ## in Loop: Header=BB0_7 Depth=2 movl -188(%rbp), %eax addl $1, %eax movl %eax, -188(%rbp) jmp LBB0_7 LBB0_12: ## in Loop: Header=BB0_5 Depth=1 movslq -184(%rbp), %rax cmpl $0, -176(%rbp,%rax,4) je LBB0_14 ## %bb.13: ## in Loop: Header=BB0_5 Depth=1 movl -196(%rbp), %ecx movslq -184(%rbp), %rax movl %ecx, -96(%rbp,%rax,4) LBB0_14: ## in Loop: Header=BB0_5 Depth=1 jmp LBB0_15 LBB0_15: ## in Loop: Header=BB0_5 Depth=1 movl -184(%rbp), %eax addl $1, %eax movl %eax, -184(%rbp) jmp LBB0_5 LBB0_16: movl $0, -184(%rbp) LBB0_17: ## =>This Inner Loop Header: Depth=1 movl -184(%rbp), %eax cmpl -192(%rbp), %eax jge LBB0_22 ## %bb.18: ## in Loop: Header=BB0_17 Depth=1 movslq -184(%rbp), %rax cmpl $0, -176(%rbp,%rax,4) je LBB0_20 ## %bb.19: ## in Loop: Header=BB0_17 Depth=1 movslq -184(%rbp), %rax movl -96(%rbp,%rax,4), %esi movslq -184(%rbp), %rax movl -176(%rbp,%rax,4), %edx leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf LBB0_20: ## in Loop: Header=BB0_17 Depth=1 jmp LBB0_21 LBB0_21: ## in Loop: Header=BB0_17 Depth=1 movl -184(%rbp), %eax addl $1, %eax movl %eax, -184(%rbp) jmp LBB0_17 LBB0_22: movl -180(%rbp), %eax movl %eax, -200(%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 -200(%rbp), %eax ## 4-byte Reload addq $208, %rsp popq %rbp retq LBB0_24: 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 occurs %d times\n" .subsections_via_symbols
the_stack_data/76699182.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] stur wzr, [x29, #-12] b LBB0_1 LBB0_1: ; =>This Loop Header: Depth=1 ; Child Loop BB0_3 Depth 2 ; Child Loop BB0_8 Depth 2 ldur w8, [x29, #-12] subs w8, w8, #0 cset w8, lt tbnz w8, #0, LBB0_13 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 b LBB0_3 LBB0_3: ; Parent Loop BB0_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldur w8, [x29, #-12] subs w8, w8, #0 cset w8, lt mov w9, #0 str w9, [sp, #8] ; 4-byte Folded Spill tbnz w8, #0, LBB0_5 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_3 Depth=2 ldur w8, [x29, #-8] subs w8, w8, #50 cset w8, le str w8, [sp, #8] ; 4-byte Folded Spill b LBB0_5 LBB0_5: ; in Loop: Header=BB0_3 Depth=2 ldr w8, [sp, #8] ; 4-byte Folded Reload tbz w8, #0, LBB0_7 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_3 Depth=2 ldur w8, [x29, #-8] add w8, w8, #1 stur w8, [x29, #-8] ldur w8, [x29, #-12] add w8, w8, #1 stur w8, [x29, #-12] b LBB0_3 LBB0_7: ; in Loop: Header=BB0_1 Depth=1 b LBB0_8 LBB0_8: ; Parent Loop BB0_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldur w8, [x29, #-12] subs w8, w8, #0 cset w8, lt mov w9, #0 str w9, [sp, #4] ; 4-byte Folded Spill tbnz w8, #0, LBB0_10 b LBB0_9 LBB0_9: ; in Loop: Header=BB0_8 Depth=2 ldur w8, [x29, #-8] subs w8, w8, #50 cset w8, gt str w8, [sp, #4] ; 4-byte Folded Spill b LBB0_10 LBB0_10: ; in Loop: Header=BB0_8 Depth=2 ldr w8, [sp, #4] ; 4-byte Folded Reload tbz w8, #0, LBB0_12 b LBB0_11 LBB0_11: ; in Loop: Header=BB0_8 Depth=2 ldur w8, [x29, #-12] subs w8, w8, #1 stur w8, [x29, #-12] ldur w8, [x29, #-8] add w8, w8, #1 stur w8, [x29, #-8] b LBB0_8 LBB0_12: ; in Loop: Header=BB0_1 Depth=1 b LBB0_1 LBB0_13: ldur w8, [x29, #-8] subs w8, w8, #103 cset w8, ne tbnz w8, #0, LBB0_15 b LBB0_14 LBB0_14: adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf b LBB0_15 LBB0_15: 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 "property verified\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl $0, -4(%rbp) movl $0, -8(%rbp) movl $0, -12(%rbp) LBB0_1: ## =>This Loop Header: Depth=1 ## Child Loop BB0_3 Depth 2 ## Child Loop BB0_8 Depth 2 cmpl $0, -12(%rbp) jl LBB0_13 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_3 LBB0_3: ## Parent Loop BB0_1 Depth=1 ## => This Inner Loop Header: Depth=2 xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $0, -12(%rbp) movb %al, -21(%rbp) ## 1-byte Spill jl LBB0_5 ## %bb.4: ## in Loop: Header=BB0_3 Depth=2 cmpl $50, -8(%rbp) setle %al movb %al, -21(%rbp) ## 1-byte Spill LBB0_5: ## in Loop: Header=BB0_3 Depth=2 movb -21(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB0_6 jmp LBB0_7 LBB0_6: ## in Loop: Header=BB0_3 Depth=2 movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB0_3 LBB0_7: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_8 LBB0_8: ## Parent Loop BB0_1 Depth=1 ## => This Inner Loop Header: Depth=2 xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $0, -12(%rbp) movb %al, -22(%rbp) ## 1-byte Spill jl LBB0_10 ## %bb.9: ## in Loop: Header=BB0_8 Depth=2 cmpl $50, -8(%rbp) setg %al movb %al, -22(%rbp) ## 1-byte Spill LBB0_10: ## in Loop: Header=BB0_8 Depth=2 movb -22(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB0_11 jmp LBB0_12 LBB0_11: ## in Loop: Header=BB0_8 Depth=2 movl -12(%rbp), %eax addl $-1, %eax movl %eax, -12(%rbp) movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) jmp LBB0_8 LBB0_12: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_1 LBB0_13: cmpl $103, -8(%rbp) jne LBB0_15 ## %bb.14: leaq L_.str(%rip), %rdi movb $0, %al callq _printf LBB0_15: movl -4(%rbp), %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "property verified\n" .subsections_via_symbols
the_stack_data/701404.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _verify ; -- Begin function verify .p2align 2 _verify: ; @verify .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-16] str x1, [sp, #24] str w2, [sp, #20] ldur x0, [x29, #-16] bl _strlen mov x8, x0 str w8, [sp, #16] str wzr, [sp, #12] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #12] ldr w9, [sp, #16] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_4 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldur x8, [x29, #-16] ldrsw x9, [sp, #12] ldrsb w0, [x8, x9] bl _tolower ldur x8, [x29, #-16] ldrsw x9, [sp, #12] strb w0, [x8, x9] b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB0_1 LBB0_4: str wzr, [sp, #4] b LBB0_5 LBB0_5: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #4] 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 ldur x0, [x29, #-16] ldr x8, [sp, #24] ldrsw x9, [sp, #4] ldr x1, [x8, x9, lsl #3] bl _strcmp str w0, [sp, #8] ldr w8, [sp, #8] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_8 b LBB0_7 LBB0_7: mov w8, #1 stur w8, [x29, #-4] b LBB0_11 LBB0_8: ; in Loop: Header=BB0_5 Depth=1 b LBB0_9 LBB0_9: ; in Loop: Header=BB0_5 Depth=1 ldr w8, [sp, #4] add w8, w8, #1 str w8, [sp, #4] b LBB0_5 LBB0_10: stur wzr, [x29, #-4] b LBB0_11 LBB0_11: ldur w0, [x29, #-4] ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _upper_first ; -- Begin function upper_first .p2align 2 _upper_first: ; @upper_first .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] str x1, [sp, #16] str w2, [sp, #12] str wzr, [sp, #8] ldur x0, [x29, #-8] ldr x1, [sp, #16] ldr w2, [sp, #12] bl _verify str w0, [sp, #4] ldr w8, [sp, #4] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: ldur x8, [x29, #-8] ldrsw x9, [sp, #8] ldrsb w0, [x8, x9] bl _toupper ldur x8, [x29, #-8] ldrsw x9, [sp, #8] strb w0, [x8, x9] b LBB1_2 LBB1_2: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _unifyName ; -- Begin function unifyName .p2align 2 _unifyName: ; @unifyName .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] stur w2, [x29, #-28] ldur x0, [x29, #-16] bl _strlen subs x8, x0, #1 ; kill: def $w8 killed $w8 killed $x8 stur w8, [x29, #-44] ldur w8, [x29, #-44] ; kill: def $x8 killed $w8 mov x9, sp stur x9, [x29, #-56] 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, #-64] stur wzr, [x29, #-68] ldur x0, [x29, #-16] adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF bl _strtok stur x0, [x29, #-40] b LBB2_1 LBB2_1: ; =>This Loop Header: Depth=1 ; Child Loop BB2_3 Depth 2 ldur x8, [x29, #-40] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB2_7 b LBB2_2 LBB2_2: ; in Loop: Header=BB2_1 Depth=1 ldur x0, [x29, #-40] ldur x1, [x29, #-24] ldur w2, [x29, #-28] bl _upper_first stur wzr, [x29, #-72] b LBB2_3 LBB2_3: ; Parent Loop BB2_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldur x8, [x29, #-40] ldursw x9, [x29, #-72] ldrsb w8, [x8, x9] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB2_6 b LBB2_4 LBB2_4: ; in Loop: Header=BB2_3 Depth=2 ldur x9, [x29, #-80] ; 8-byte Folded Reload ldur x8, [x29, #-40] ldursw x10, [x29, #-72] add x8, x8, x10 ldrb w8, [x8] ldursw x10, [x29, #-68] add x9, x9, x10 strb w8, [x9] ldur w8, [x29, #-68] add w8, w8, #1 stur w8, [x29, #-68] b LBB2_5 LBB2_5: ; in Loop: Header=BB2_3 Depth=2 ldur w8, [x29, #-72] add w8, w8, #1 stur w8, [x29, #-72] b LBB2_3 LBB2_6: ; in Loop: Header=BB2_1 Depth=1 ldur x8, [x29, #-80] ; 8-byte Folded Reload ldursw x9, [x29, #-68] add x9, x8, x9 mov w8, #32 strb w8, [x9] ldur w8, [x29, #-68] add w8, w8, #1 stur w8, [x29, #-68] mov x0, #0 adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF bl _strtok stur x0, [x29, #-40] b LBB2_1 LBB2_7: ldur x1, [x29, #-80] ; 8-byte Folded Reload ldur w8, [x29, #-68] subs w9, w8, #1 stur w9, [x29, #-68] mov x8, x1 add x8, x8, w9, sxtw strb wzr, [x8] ldur x0, [x29, #-16] mov x2, #-1 bl ___strcpy_chk ldur x8, [x29, #-56] 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_9 b LBB2_8 LBB2_8: bl ___stack_chk_fail LBB2_9: 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 _fillName ; -- Begin function fillName .p2align 2 _fillName: ; @fillName .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 x0, [sp, #32] str x1, [sp, #24] 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] adrp x8, l_.str.3@PAGE add x8, x8, l_.str.3@PAGEOFF str x8, [sp, #64] adrp x8, l_.str.4@PAGE add x8, x8, l_.str.4@PAGEOFF str x8, [sp, #72] adrp x8, l_.str.5@PAGE add x8, x8, l_.str.5@PAGEOFF str x8, [sp, #80] adrp x8, l___const.fillName.line_feed@PAGE add x8, x8, l___const.fillName.line_feed@PAGEOFF ldrh w8, [x8] strh w8, [sp, #22] b LBB3_1 LBB3_1: ; =>This Inner Loop Header: Depth=1 ldr x0, [sp, #32] ldr x2, [sp, #24] mov w1, #255 bl _fgets subs x8, x0, #0 cset w8, ne tbnz w8, #0, LBB3_3 b LBB3_2 LBB3_2: str wzr, [sp, #44] b LBB3_6 LBB3_3: ; in Loop: Header=BB3_1 Depth=1 b LBB3_4 LBB3_4: ; in Loop: Header=BB3_1 Depth=1 ldr x0, [sp, #32] add x1, sp, #22 bl _strcmp subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB3_1 b LBB3_5 LBB3_5: ldr x8, [sp, #32] str x8, [sp, #8] ; 8-byte Folded Spill ldr x0, [sp, #32] bl _strlen ldr x8, [sp, #8] ; 8-byte Folded Reload subs x9, x0, #1 add x8, x8, x9 strb wzr, [x8] ldr x0, [sp, #32] add x1, sp, #48 mov w2, #5 bl _unifyName mov w8, #1 str w8, [sp, #44] b LBB3_6 LBB3_6: ldr w8, [sp, #44] str w8, [sp, #4] ; 4-byte Folded Spill ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB3_8 b LBB3_7 LBB3_7: bl ___stack_chk_fail LBB3_8: ldr w0, [sp, #4] ; 4-byte Folded Reload ldp x29, x30, [sp, #96] ; 16-byte Folded Reload add sp, sp, #112 ret .cfi_endproc ; -- End function .globl _cmpchar ; -- Begin function cmpchar .p2align 2 _cmpchar: ; @cmpchar .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] str x1, [sp, #16] ldur x0, [x29, #-8] ldr x1, [sp, #16] bl _strcmp str w0, [sp, #12] ldr w0, [sp, #12] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _sortNames ; -- Begin function sortNames .p2align 2 _sortNames: ; @sortNames .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 x0, [x29, #-8] ldursw x1, [x29, #-12] mov x2, #255 adrp x3, _cmpchar@PAGE add x3, x3, _cmpchar@PAGEOFF bl _qsort adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _printf str wzr, [sp, #16] b LBB5_1 LBB5_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #16] ldur w9, [x29, #-12] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB5_4 b LBB5_2 LBB5_2: ; in Loop: Header=BB5_1 Depth=1 ldur x8, [x29, #-8] ldrsw x9, [sp, #16] mov x10, #255 mul x9, x9, x10 add x8, x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.7@PAGE add x0, x0, l_.str.7@PAGEOFF bl _printf b LBB5_3 LBB5_3: ; in Loop: Header=BB5_1 Depth=1 ldr w8, [sp, #16] add w8, w8, #1 str w8, [sp, #16] b LBB5_1 LBB5_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: 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, #12768 adrp x16, ___chkstk_darwin@GOTPAGE ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF] blr x16 sub sp, sp, #3, lsl #12 ; =12288 sub sp, sp, #480 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] str wzr, [sp, #4] str wzr, [sp] adrp x0, l_.str.8@PAGE add x0, x0, l_.str.8@PAGEOFF bl _printf b LBB6_1 LBB6_1: ; =>This Inner Loop Header: Depth=1 ldrsw x8, [sp] mov x9, #255 mul x9, x8, x9 add x8, sp, #10 add x0, x8, x9 adrp x8, ___stdinp@GOTPAGE ldr x8, [x8, ___stdinp@GOTPAGEOFF] ldr x1, [x8] bl _fillName subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB6_3 b LBB6_2 LBB6_2: ; in Loop: Header=BB6_1 Depth=1 ldr w8, [sp] add w8, w8, #1 str w8, [sp] b LBB6_1 LBB6_3: ldr w1, [sp] add x0, sp, #10 bl _sortNames 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, LBB6_5 b LBB6_4 LBB6_4: bl ___stack_chk_fail LBB6_5: mov w0, #0 add sp, sp, #3, lsl #12 ; =12288 add sp, sp, #480 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 " \t" l_.str.1: ; @.str.1 .asciz "dos" l_.str.2: ; @.str.2 .asciz "do" l_.str.3: ; @.str.3 .asciz "da" l_.str.4: ; @.str.4 .asciz "de" l_.str.5: ; @.str.5 .asciz "e" l___const.fillName.line_feed: ; @__const.fillName.line_feed .asciz "\n" l_.str.6: ; @.str.6 .asciz "Array de nomes ordenados:\n" l_.str.7: ; @.str.7 .asciz "%s\n" l_.str.8: ; @.str.8 .asciz "Introduza uma sequencia de nomes: " .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _verify ## -- Begin function verify .p2align 4, 0x90 _verify: ## @verify .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movq %rdi, -16(%rbp) movq %rsi, -24(%rbp) movl %edx, -28(%rbp) movq -16(%rbp), %rdi callq _strlen ## kill: def $eax killed $eax killed $rax movl %eax, -32(%rbp) movl $0, -36(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movl -36(%rbp), %eax cmpl -32(%rbp), %eax jge LBB0_4 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movq -16(%rbp), %rax movslq -36(%rbp), %rcx movsbl (%rax,%rcx), %edi callq _tolower movb %al, %dl movq -16(%rbp), %rax movslq -36(%rbp), %rcx movb %dl, (%rax,%rcx) ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movl -36(%rbp), %eax addl $1, %eax movl %eax, -36(%rbp) jmp LBB0_1 LBB0_4: movl $0, -44(%rbp) LBB0_5: ## =>This Inner Loop Header: Depth=1 movl -44(%rbp), %eax cmpl -28(%rbp), %eax jge LBB0_10 ## %bb.6: ## in Loop: Header=BB0_5 Depth=1 movq -16(%rbp), %rdi movq -24(%rbp), %rax movslq -44(%rbp), %rcx movq (%rax,%rcx,8), %rsi callq _strcmp movl %eax, -40(%rbp) cmpl $0, -40(%rbp) jne LBB0_8 ## %bb.7: movl $1, -4(%rbp) jmp LBB0_11 LBB0_8: ## in Loop: Header=BB0_5 Depth=1 jmp LBB0_9 LBB0_9: ## in Loop: Header=BB0_5 Depth=1 movl -44(%rbp), %eax addl $1, %eax movl %eax, -44(%rbp) jmp LBB0_5 LBB0_10: movl $0, -4(%rbp) LBB0_11: movl -4(%rbp), %eax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _upper_first ## -- Begin function upper_first .p2align 4, 0x90 _upper_first: ## @upper_first .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) movl %edx, -20(%rbp) movl $0, -24(%rbp) movq -8(%rbp), %rdi movq -16(%rbp), %rsi movl -20(%rbp), %edx callq _verify movl %eax, -28(%rbp) cmpl $0, -28(%rbp) jne LBB1_2 ## %bb.1: movq -8(%rbp), %rax movslq -24(%rbp), %rcx movsbl (%rax,%rcx), %edi callq _toupper movb %al, %dl movq -8(%rbp), %rax movslq -24(%rbp), %rcx movb %dl, (%rax,%rcx) LBB1_2: addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _unifyName ## -- Begin function unifyName .p2align 4, 0x90 _unifyName: ## @unifyName .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) movl %edx, -28(%rbp) movq -16(%rbp), %rdi callq _strlen ## kill: def $eax killed $eax killed $rax decl %eax movl %eax, -44(%rbp) movl -44(%rbp), %eax ## kill: def $rax killed $eax movq %rax, -88(%rbp) ## 8-byte Spill movq %rsp, %rcx movq %rcx, -56(%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, -64(%rbp) movl $0, -68(%rbp) movq -16(%rbp), %rdi leaq L_.str(%rip), %rsi callq _strtok movq %rax, -40(%rbp) LBB2_1: ## =>This Loop Header: Depth=1 ## Child Loop BB2_3 Depth 2 cmpq $0, -40(%rbp) je LBB2_7 ## %bb.2: ## in Loop: Header=BB2_1 Depth=1 movq -40(%rbp), %rdi movq -24(%rbp), %rsi movl -28(%rbp), %edx callq _upper_first movl $0, -72(%rbp) LBB2_3: ## Parent Loop BB2_1 Depth=1 ## => This Inner Loop Header: Depth=2 movq -40(%rbp), %rax movslq -72(%rbp), %rcx movsbl (%rax,%rcx), %eax cmpl $0, %eax je LBB2_6 ## %bb.4: ## in Loop: Header=BB2_3 Depth=2 movq -80(%rbp), %rax ## 8-byte Reload movq -40(%rbp), %rcx movslq -72(%rbp), %rdx movb (%rcx,%rdx), %dl movslq -68(%rbp), %rcx movb %dl, (%rax,%rcx) movl -68(%rbp), %eax addl $1, %eax movl %eax, -68(%rbp) ## %bb.5: ## in Loop: Header=BB2_3 Depth=2 movl -72(%rbp), %eax addl $1, %eax movl %eax, -72(%rbp) jmp LBB2_3 LBB2_6: ## in Loop: Header=BB2_1 Depth=1 movq -80(%rbp), %rax ## 8-byte Reload movslq -68(%rbp), %rcx movb $32, (%rax,%rcx) movl -68(%rbp), %eax addl $1, %eax movl %eax, -68(%rbp) xorl %eax, %eax movl %eax, %edi leaq L_.str(%rip), %rsi callq _strtok movq %rax, -40(%rbp) jmp LBB2_1 LBB2_7: movq -80(%rbp), %rsi ## 8-byte Reload movl -68(%rbp), %eax addl $-1, %eax movl %eax, -68(%rbp) cltq movb $0, (%rsi,%rax) movq -16(%rbp), %rdi movq $-1, %rdx callq ___strcpy_chk movq -56(%rbp), %rax movq %rax, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB2_9 ## %bb.8: movq %rbp, %rsp popq %rbp retq LBB2_9: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _fillName ## -- Begin function fillName .p2align 4, 0x90 _fillName: ## @fillName .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, -64(%rbp) movq %rsi, -72(%rbp) leaq L_.str.1(%rip), %rax movq %rax, -48(%rbp) leaq L_.str.2(%rip), %rax movq %rax, -40(%rbp) leaq L_.str.3(%rip), %rax movq %rax, -32(%rbp) leaq L_.str.4(%rip), %rax movq %rax, -24(%rbp) leaq L_.str.5(%rip), %rax movq %rax, -16(%rbp) movw L___const.fillName.line_feed(%rip), %ax movw %ax, -74(%rbp) LBB3_1: ## =>This Inner Loop Header: Depth=1 movq -64(%rbp), %rdi movq -72(%rbp), %rdx movl $255, %esi callq _fgets cmpq $0, %rax jne LBB3_3 ## %bb.2: movl $0, -52(%rbp) jmp LBB3_6 LBB3_3: ## in Loop: Header=BB3_1 Depth=1 jmp LBB3_4 LBB3_4: ## in Loop: Header=BB3_1 Depth=1 movq -64(%rbp), %rdi leaq -74(%rbp), %rsi callq _strcmp cmpl $0, %eax je LBB3_1 ## %bb.5: movq -64(%rbp), %rax movq %rax, -88(%rbp) ## 8-byte Spill movq -64(%rbp), %rdi callq _strlen movq %rax, %rcx movq -88(%rbp), %rax ## 8-byte Reload subq $1, %rcx movb $0, (%rax,%rcx) movq -64(%rbp), %rdi leaq -48(%rbp), %rsi movl $5, %edx callq _unifyName movl $1, -52(%rbp) LBB3_6: movl -52(%rbp), %eax movl %eax, -92(%rbp) ## 4-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB3_8 ## %bb.7: movl -92(%rbp), %eax ## 4-byte Reload addq $96, %rsp popq %rbp retq LBB3_8: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _cmpchar ## -- Begin function cmpchar .p2align 4, 0x90 _cmpchar: ## @cmpchar .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) movq -8(%rbp), %rdi movq -16(%rbp), %rsi callq _strcmp movl %eax, -20(%rbp) movl -20(%rbp), %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _sortNames ## -- Begin function sortNames .p2align 4, 0x90 _sortNames: ## @sortNames .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) movq -8(%rbp), %rdi movslq -12(%rbp), %rsi movl $255, %edx leaq _cmpchar(%rip), %rcx callq _qsort leaq L_.str.6(%rip), %rdi movb $0, %al callq _printf movl $0, -16(%rbp) LBB5_1: ## =>This Inner Loop Header: Depth=1 movl -16(%rbp), %eax cmpl -12(%rbp), %eax jge LBB5_4 ## %bb.2: ## in Loop: Header=BB5_1 Depth=1 movq -8(%rbp), %rsi movslq -16(%rbp), %rax imulq $255, %rax, %rax addq %rax, %rsi leaq L_.str.7(%rip), %rdi movb $0, %al callq _printf ## %bb.3: ## in Loop: Header=BB5_1 Depth=1 movl -16(%rbp), %eax addl $1, %eax movl %eax, -16(%rbp) jmp LBB5_1 LBB5_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 movl $12784, %eax ## imm = 0x31F0 callq ____chkstk_darwin subq %rax, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -12772(%rbp) movl $0, -12776(%rbp) leaq L_.str.8(%rip), %rdi movb $0, %al callq _printf LBB6_1: ## =>This Inner Loop Header: Depth=1 movslq -12776(%rbp), %rax leaq -12768(%rbp), %rdi imulq $255, %rax, %rax addq %rax, %rdi movq ___stdinp@GOTPCREL(%rip), %rax movq (%rax), %rsi callq _fillName cmpl $0, %eax je LBB6_3 ## %bb.2: ## in Loop: Header=BB6_1 Depth=1 movl -12776(%rbp), %eax addl $1, %eax movl %eax, -12776(%rbp) jmp LBB6_1 LBB6_3: leaq -12768(%rbp), %rdi movl -12776(%rbp), %esi callq _sortNames movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB6_5 ## %bb.4: xorl %eax, %eax addq $12784, %rsp ## imm = 0x31F0 popq %rbp retq LBB6_5: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz " \t" L_.str.1: ## @.str.1 .asciz "dos" L_.str.2: ## @.str.2 .asciz "do" L_.str.3: ## @.str.3 .asciz "da" L_.str.4: ## @.str.4 .asciz "de" L_.str.5: ## @.str.5 .asciz "e" L___const.fillName.line_feed: ## @__const.fillName.line_feed .asciz "\n" L_.str.6: ## @.str.6 .asciz "Array de nomes ordenados:\n" L_.str.7: ## @.str.7 .asciz "%s\n" L_.str.8: ## @.str.8 .asciz "Introduza uma sequencia de nomes: " .subsections_via_symbols
the_stack_data/541656.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _PrintPrime ; -- Begin function PrintPrime .p2align 2 _PrintPrime: ; @PrintPrime .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, #2 str w8, [sp, #8] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #8] ldur w9, [x29, #-4] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_17 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #8] subs w8, w8, #2 cset w8, eq tbnz w8, #0, LBB0_6 b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #8] subs w8, w8, #3 cset w8, eq tbnz w8, #0, LBB0_6 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #8] subs w8, w8, #5 cset w8, eq tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #8] subs w8, w8, #7 cset w8, ne tbnz w8, #0, LBB0_9 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_1 Depth=1 ldr w9, [sp, #8] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldr w8, [sp, #8] subs w8, w8, #2 cset w8, ne tbnz w8, #0, LBB0_8 b LBB0_7 LBB0_7: ; in Loop: Header=BB0_1 Depth=1 mov w8, #1 str w8, [sp, #8] b LBB0_8 LBB0_8: ; in Loop: Header=BB0_1 Depth=1 b LBB0_15 LBB0_9: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #8] mov w10, #3 sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_12 b LBB0_10 LBB0_10: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #8] mov w10, #5 sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_12 b LBB0_11 LBB0_11: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #8] mov w10, #7 sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_13 b LBB0_12 LBB0_12: ; in Loop: Header=BB0_1 Depth=1 b LBB0_16 LBB0_13: ; in Loop: Header=BB0_1 Depth=1 ldr w9, [sp, #8] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf b LBB0_14 LBB0_14: ; in Loop: Header=BB0_1 Depth=1 b LBB0_15 LBB0_15: ; in Loop: Header=BB0_1 Depth=1 b LBB0_16 LBB0_16: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #8] add w8, w8, #2 str w8, [sp, #8] b LBB0_1 LBB0_17: 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 stur w8, [x29, #-12] ; 4-byte Folded Spill stur wzr, [x29, #-4] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf mov x9, sp sub x8, x29, #8 str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _scanf ldur w0, [x29, #-8] bl _PrintPrime ldur w0, [x29, #-12] ; 4-byte Folded Reload ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d " l_.str.1: ; @.str.1 .asciz "Enter the last number : " l_.str.2: ; @.str.2 .asciz "%d" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _PrintPrime ## -- Begin function PrintPrime .p2align 4, 0x90 _PrintPrime: ## @PrintPrime .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 $2, -8(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movl -8(%rbp), %eax cmpl -4(%rbp), %eax jg LBB0_17 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 cmpl $2, -8(%rbp) je LBB0_6 ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 cmpl $3, -8(%rbp) je LBB0_6 ## %bb.4: ## in Loop: Header=BB0_1 Depth=1 cmpl $5, -8(%rbp) je LBB0_6 ## %bb.5: ## in Loop: Header=BB0_1 Depth=1 cmpl $7, -8(%rbp) jne LBB0_9 LBB0_6: ## in Loop: Header=BB0_1 Depth=1 movl -8(%rbp), %esi leaq L_.str(%rip), %rdi movb $0, %al callq _printf cmpl $2, -8(%rbp) jne LBB0_8 ## %bb.7: ## in Loop: Header=BB0_1 Depth=1 movl $1, -8(%rbp) LBB0_8: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_15 LBB0_9: ## in Loop: Header=BB0_1 Depth=1 movl -8(%rbp), %eax movl $3, %ecx cltd idivl %ecx cmpl $0, %edx je LBB0_12 ## %bb.10: ## in Loop: Header=BB0_1 Depth=1 movl -8(%rbp), %eax movl $5, %ecx cltd idivl %ecx cmpl $0, %edx je LBB0_12 ## %bb.11: ## in Loop: Header=BB0_1 Depth=1 movl -8(%rbp), %eax movl $7, %ecx cltd idivl %ecx cmpl $0, %edx jne LBB0_13 LBB0_12: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_16 LBB0_13: ## in Loop: Header=BB0_1 Depth=1 movl -8(%rbp), %esi leaq L_.str(%rip), %rdi movb $0, %al callq _printf ## %bb.14: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_15 LBB0_15: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_16 LBB0_16: ## in Loop: Header=BB0_1 Depth=1 movl -8(%rbp), %eax addl $2, %eax movl %eax, -8(%rbp) jmp LBB0_1 LBB0_17: 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.1(%rip), %rdi movb $0, %al callq _printf leaq L_.str.2(%rip), %rdi leaq -8(%rbp), %rsi movb $0, %al callq _scanf movl -8(%rbp), %edi callq _PrintPrime 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 "Enter the last number : " L_.str.2: ## @.str.2 .asciz "%d" .subsections_via_symbols
the_stack_data/36349.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl ___VERIFIER_assert ; -- Begin function __VERIFIER_assert .p2align 2 ___VERIFIER_assert: ; @__VERIFIER_assert .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur w0, [x29, #-4] ldur w8, [x29, #-4] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_3 b LBB0_1 LBB0_1: b LBB0_2 LBB0_2: bl ___VERIFIER_error b LBB0_3 LBB0_3: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] str wzr, [sp, #8] str wzr, [sp, #4] b LBB1_1 LBB1_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #8] adrp x9, _SIZE@PAGE ldr w9, [x9, _SIZE@PAGEOFF] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_6 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 bl ___VERIFIER_nondet_int subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB1_4 b LBB1_3 LBB1_3: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #8] add w8, w8, #8 str w8, [sp, #8] b LBB1_5 LBB1_4: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #8] add w8, w8, #4 str w8, [sp, #8] b LBB1_5 LBB1_5: ; in Loop: Header=BB1_1 Depth=1 b LBB1_1 LBB1_6: ldr w8, [sp, #8] mov w9, #4 sdiv w8, w8, w9 str w8, [sp, #4] ldr w9, [sp, #4] ldr w8, [sp, #8] subs w8, w8, w9, lsl #2 cset w8, eq and w0, w8, #0x1 bl ___VERIFIER_assert mov w0, #0 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .section __DATA,__data .globl _SIZE ; @SIZE .p2align 2 _SIZE: .long 50000001 ; 0x2faf081 .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl ___VERIFIER_assert ## -- Begin function __VERIFIER_assert .p2align 4, 0x90 ___VERIFIER_assert: ## @__VERIFIER_assert .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 $0, -4(%rbp) jne LBB0_3 ## %bb.1: jmp LBB0_2 LBB0_2: callq ___VERIFIER_error LBB0_3: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) movl $0, -8(%rbp) movl $0, -12(%rbp) LBB1_1: ## =>This Inner Loop Header: Depth=1 movl -8(%rbp), %eax cmpl _SIZE(%rip), %eax jge LBB1_6 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 movb $0, %al callq ___VERIFIER_nondet_int cmpl $0, %eax je LBB1_4 ## %bb.3: ## in Loop: Header=BB1_1 Depth=1 movl -8(%rbp), %eax addl $8, %eax movl %eax, -8(%rbp) jmp LBB1_5 LBB1_4: ## in Loop: Header=BB1_1 Depth=1 movl -8(%rbp), %eax addl $4, %eax movl %eax, -8(%rbp) LBB1_5: ## in Loop: Header=BB1_1 Depth=1 jmp LBB1_1 LBB1_6: movl -8(%rbp), %eax movl $4, %ecx cltd idivl %ecx movl %eax, -12(%rbp) movl -12(%rbp), %eax shll $2, %eax cmpl -8(%rbp), %eax sete %al andb $1, %al movzbl %al, %edi callq ___VERIFIER_assert xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __DATA,__data .globl _SIZE ## @SIZE .p2align 2 _SIZE: .long 50000001 ## 0x2faf081 .subsections_via_symbols
the_stack_data/72011958.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, #208 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] stur wzr, [x29, #-68] stur w0, [x29, #-72] stur x1, [x29, #-80] ldur w8, [x29, #-72] subs w8, w8, #2 cset w8, le 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, #-68] b LBB0_21 LBB0_2: ldur w8, [x29, #-72] subs w8, w8, #2 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 stur w8, [x29, #-68] b LBB0_21 LBB0_4: b LBB0_5 LBB0_5: ldur x8, [x29, #-80] ldr x8, [x8, #8] stur x8, [x29, #-88] ldur x8, [x29, #-88] ldrsb w0, [x8] bl _isdigit subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB0_7 b LBB0_6 LBB0_6: adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf mov w8, #1 stur w8, [x29, #-68] b LBB0_21 LBB0_7: ldur x0, [x29, #-88] bl _atoi stur w0, [x29, #-92] ldur w8, [x29, #-92] subs w8, w8, #4 cset w8, ge tbnz w8, #0, LBB0_9 b LBB0_8 LBB0_8: adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf mov w8, #1 stur w8, [x29, #-68] b LBB0_21 LBB0_9: ldur w8, [x29, #-92] subs w8, w8, #90 cset w8, le tbnz w8, #0, LBB0_11 b LBB0_10 LBB0_10: adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf mov w8, #1 stur w8, [x29, #-68] b LBB0_21 LBB0_11: b LBB0_12 LBB0_12: adrp x9, l___const.main.alphabet@PAGE add x9, x9, l___const.main.alphabet@PAGEOFF ldr q0, [x9] sub x8, x29, #48 stur x8, [x29, #-192] ; 8-byte Folded Spill stur q0, [x29, #-48] ldur q0, [x9, #10] stur q0, [x8, #10] adrp x8, l___const.main.numbers@PAGE add x8, x8, l___const.main.numbers@PAGEOFF ldr x9, [x8] sub x10, x29, #64 stur x10, [x29, #-176] ; 8-byte Folded Spill stur x9, [x29, #-64] ldrh w8, [x8, #8] sturh w8, [x29, #-56] adrp x8, l___const.main.special_characters@PAGE add x8, x8, l___const.main.special_characters@PAGEOFF ldr w10, [x8] sub x9, x29, #100 stur x9, [x29, #-184] ; 8-byte Folded Spill stur w10, [x29, #-100] ldur w8, [x8, #3] stur w8, [x9, #3] ldur w8, [x29, #-92] ; kill: def $x8 killed $w8 mov x9, sp stur x9, [x29, #-112] lsr x9, x8, #0 add x9, x9, #15 and x9, x9, #0xfffffffffffffff0 stur x9, [x29, #-200] ; 8-byte Folded Spill adrp x16, ___chkstk_darwin@GOTPAGE ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF] blr x16 ldur x10, [x29, #-200] ; 8-byte Folded Reload mov x9, sp subs x9, x9, x10 mov sp, x9 stur x9, [x29, #-168] ; 8-byte Folded Spill stur x8, [x29, #-120] mov x0, #0 bl _time ; kill: def $w0 killed $w0 killed $x0 bl _srand bl _rand ldur x8, [x29, #-192] ; 8-byte Folded Reload mov w10, #26 sdiv w9, w0, w10 mul w9, w9, w10 subs w9, w0, w9 stur w9, [x29, #-124] ldursw x9, [x29, #-124] add x8, x8, x9 ldrb w8, [x8] sturb w8, [x29, #-125] ldursb w0, [x29, #-125] bl _toupper ldur x9, [x29, #-168] ; 8-byte Folded Reload sturb w0, [x29, #-126] ldurb w8, [x29, #-126] strb w8, [x9] bl _rand ldur x8, [x29, #-184] ; 8-byte Folded Reload ldur x9, [x29, #-168] ; 8-byte Folded Reload mov w11, #7 sdiv w10, w0, w11 mul w10, w10, w11 subs w10, w0, w10 stur w10, [x29, #-132] ldursw x10, [x29, #-132] add x8, x8, x10 ldrb w8, [x8] sturb w8, [x29, #-133] ldurb w8, [x29, #-133] strb w8, [x9, #1] bl _rand ldur x8, [x29, #-176] ; 8-byte Folded Reload ldur x9, [x29, #-168] ; 8-byte Folded Reload mov w11, #10 sdiv w10, w0, w11 mul w10, w10, w11 subs w10, w0, w10 stur w10, [x29, #-140] ldursw x10, [x29, #-140] add x8, x8, x10 ldrb w8, [x8] sturb w8, [x29, #-141] ldurb w8, [x29, #-141] strb w8, [x9, #2] mov w8, #3 stur w8, [x29, #-148] b LBB0_13 LBB0_13: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-148] ldur w9, [x29, #-92] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_16 b LBB0_14 LBB0_14: ; in Loop: Header=BB0_13 Depth=1 bl _rand ldur x9, [x29, #-168] ; 8-byte Folded Reload mov w10, #26 sdiv w8, w0, w10 mul w8, w8, w10 subs w8, w0, w8 stur w8, [x29, #-152] ldursw x10, [x29, #-152] sub x8, x29, #48 add x8, x8, x10 ldrb w8, [x8] sturb w8, [x29, #-153] ldurb w8, [x29, #-153] ldursw x10, [x29, #-148] add x9, x9, x10 strb w8, [x9] b LBB0_15 LBB0_15: ; in Loop: Header=BB0_13 Depth=1 ldur w8, [x29, #-148] add w8, w8, #1 stur w8, [x29, #-148] b LBB0_13 LBB0_16: stur wzr, [x29, #-160] b LBB0_17 LBB0_17: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-160] ldur w9, [x29, #-92] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_20 b LBB0_18 LBB0_18: ; in Loop: Header=BB0_17 Depth=1 ldur x8, [x29, #-168] ; 8-byte Folded Reload ldursw x9, [x29, #-160] ldrsb w10, [x8, x9] sub sp, sp, #16 mov x9, sp ; implicit-def: $x8 mov x8, x10 str x8, [x9] adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf add sp, sp, #16 b LBB0_19 LBB0_19: ; in Loop: Header=BB0_17 Depth=1 ldur w8, [x29, #-160] add w8, w8, #1 stur w8, [x29, #-160] b LBB0_17 LBB0_20: adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _printf stur wzr, [x29, #-68] ldur x8, [x29, #-112] mov sp, x8 b LBB0_21 LBB0_21: ldur w8, [x29, #-68] stur w8, [x29, #-204] ; 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_23 b LBB0_22 LBB0_22: bl ___stack_chk_fail LBB0_23: ldur w0, [x29, #-204] ; 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 "Usage: You must provide only one argument\n" l_.str.1: ; @.str.1 .asciz "Usage: You must provide an argument\n" l_.str.2: ; @.str.2 .asciz "Usage: The argument must be a number\n" l_.str.3: ; @.str.3 .asciz "Usage: The minimum length has to be 4\n" l_.str.4: ; @.str.4 .asciz "Usage: The maximum length has to be 90\n" .section __TEXT,__const l___const.main.alphabet: ; @__const.main.alphabet .ascii "abcdefghijklmnopqrstuvwxyz" l___const.main.numbers: ; @__const.main.numbers .ascii "0123456789" l___const.main.special_characters: ; @__const.main.special_characters .ascii "!@#$%&*" .section __TEXT,__cstring,cstring_literals l_.str.5: ; @.str.5 .asciz "%c" l_.str.6: ; @.str.6 .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 $192, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -68(%rbp) movl %edi, -72(%rbp) movq %rsi, -80(%rbp) cmpl $2, -72(%rbp) jle LBB0_2 ## %bb.1: leaq L_.str(%rip), %rdi movb $0, %al callq _printf movl $1, -68(%rbp) jmp LBB0_21 LBB0_2: cmpl $2, -72(%rbp) jge LBB0_4 ## %bb.3: leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf movl $1, -68(%rbp) jmp LBB0_21 LBB0_4: jmp LBB0_5 LBB0_5: movq -80(%rbp), %rax movq 8(%rax), %rax movq %rax, -88(%rbp) movq -88(%rbp), %rax movsbl (%rax), %edi callq _isdigit cmpl $0, %eax jne LBB0_7 ## %bb.6: leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf movl $1, -68(%rbp) jmp LBB0_21 LBB0_7: movq -88(%rbp), %rdi callq _atoi movl %eax, -92(%rbp) cmpl $4, -92(%rbp) jge LBB0_9 ## %bb.8: leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf movl $1, -68(%rbp) jmp LBB0_21 LBB0_9: cmpl $90, -92(%rbp) jle LBB0_11 ## %bb.10: leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf movl $1, -68(%rbp) jmp LBB0_21 LBB0_11: jmp LBB0_12 LBB0_12: movups l___const.main.alphabet+10(%rip), %xmm0 movups %xmm0, -38(%rbp) movaps l___const.main.alphabet(%rip), %xmm0 movaps %xmm0, -48(%rbp) movabsq $3978425819141910832, %rax ## imm = 0x3736353433323130 movq %rax, -64(%rbp) movw $14648, -56(%rbp) ## imm = 0x3938 movl $707142948, -97(%rbp) ## imm = 0x2A262524 movl $606289953, -100(%rbp) ## imm = 0x24234021 movl -92(%rbp), %eax ## kill: def $rax killed $eax movq %rax, -176(%rbp) ## 8-byte Spill movq %rsp, %rcx movq %rcx, -112(%rbp) callq ____chkstk_darwin addq $15, %rax andq $-16, %rax subq %rax, %rsp movq -176(%rbp), %rax ## 8-byte Reload movq %rsp, %rcx movq %rcx, -168(%rbp) ## 8-byte Spill movq %rax, -120(%rbp) xorl %eax, %eax movl %eax, %edi callq _time movl %eax, %edi callq _srand callq _rand movl $26, %ecx cltd idivl %ecx movl %edx, -124(%rbp) movslq -124(%rbp), %rax movb -48(%rbp,%rax), %al movb %al, -125(%rbp) movsbl -125(%rbp), %edi callq _toupper movl %eax, %ecx movq -168(%rbp), %rax ## 8-byte Reload ## kill: def $cl killed $cl killed $ecx movb %cl, -126(%rbp) movb -126(%rbp), %cl movb %cl, (%rax) callq _rand movl $7, %ecx cltd idivl %ecx movq -168(%rbp), %rax ## 8-byte Reload movl %edx, -132(%rbp) movslq -132(%rbp), %rcx movb -100(%rbp,%rcx), %cl movb %cl, -133(%rbp) movb -133(%rbp), %cl movb %cl, 1(%rax) callq _rand movl $10, %ecx cltd idivl %ecx movq -168(%rbp), %rax ## 8-byte Reload movl %edx, -140(%rbp) movslq -140(%rbp), %rcx movb -64(%rbp,%rcx), %cl movb %cl, -141(%rbp) movb -141(%rbp), %cl movb %cl, 2(%rax) movl $3, -148(%rbp) LBB0_13: ## =>This Inner Loop Header: Depth=1 movl -148(%rbp), %eax cmpl -92(%rbp), %eax jge LBB0_16 ## %bb.14: ## in Loop: Header=BB0_13 Depth=1 callq _rand movl $26, %ecx cltd idivl %ecx movq -168(%rbp), %rax ## 8-byte Reload movl %edx, -152(%rbp) movslq -152(%rbp), %rcx movb -48(%rbp,%rcx), %cl movb %cl, -153(%rbp) movb -153(%rbp), %dl movslq -148(%rbp), %rcx movb %dl, (%rax,%rcx) ## %bb.15: ## in Loop: Header=BB0_13 Depth=1 movl -148(%rbp), %eax addl $1, %eax movl %eax, -148(%rbp) jmp LBB0_13 LBB0_16: movl $0, -160(%rbp) LBB0_17: ## =>This Inner Loop Header: Depth=1 movl -160(%rbp), %eax cmpl -92(%rbp), %eax jge LBB0_20 ## %bb.18: ## in Loop: Header=BB0_17 Depth=1 movq -168(%rbp), %rax ## 8-byte Reload movslq -160(%rbp), %rcx movsbl (%rax,%rcx), %esi leaq L_.str.5(%rip), %rdi movb $0, %al callq _printf ## %bb.19: ## in Loop: Header=BB0_17 Depth=1 movl -160(%rbp), %eax addl $1, %eax movl %eax, -160(%rbp) jmp LBB0_17 LBB0_20: leaq L_.str.6(%rip), %rdi movb $0, %al callq _printf movl $0, -68(%rbp) movq -112(%rbp), %rax movq %rax, %rsp LBB0_21: movl -68(%rbp), %eax movl %eax, -180(%rbp) ## 4-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_23 ## %bb.22: movl -180(%rbp), %eax ## 4-byte Reload movq %rbp, %rsp popq %rbp retq LBB0_23: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Usage: You must provide only one argument\n" L_.str.1: ## @.str.1 .asciz "Usage: You must provide an argument\n" L_.str.2: ## @.str.2 .asciz "Usage: The argument must be a number\n" L_.str.3: ## @.str.3 .asciz "Usage: The minimum length has to be 4\n" L_.str.4: ## @.str.4 .asciz "Usage: The maximum length has to be 90\n" .section __TEXT,__const .p2align 4 ## @__const.main.alphabet l___const.main.alphabet: .ascii "abcdefghijklmnopqrstuvwxyz" l___const.main.numbers: ## @__const.main.numbers .ascii "0123456789" l___const.main.special_characters: ## @__const.main.special_characters .ascii "!@#$%&*" .section __TEXT,__cstring,cstring_literals L_.str.5: ## @.str.5 .asciz "%c" L_.str.6: ## @.str.6 .asciz "\n" .subsections_via_symbols
the_stack_data/97013004.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _atoi_general ; -- Begin function atoi_general .p2align 2 _atoi_general: ; @atoi_general .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] stur wzr, [x29, #-12] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldur x8, [x29, #-8] ldursw x9, [x29, #-12] ldrsb w0, [x8, x9] bl _isspace subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB0_4 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-12] add w8, w8, #1 stur w8, [x29, #-12] b LBB0_1 LBB0_4: ldur x8, [x29, #-8] ldursw x9, [x29, #-12] ldrsb w8, [x8, x9] subs w8, w8, #45 cset w8, eq and w9, w8, #0x1 mov w8, #1 ands w9, w9, #0x1 csinv w8, w8, wzr, eq str w8, [sp, #12] ldur x8, [x29, #-8] ldursw x9, [x29, #-12] ldrsb w8, [x8, x9] subs w8, w8, #43 cset w8, eq tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: ldur x8, [x29, #-8] ldursw x9, [x29, #-12] ldrsb w8, [x8, x9] subs w8, w8, #45 cset w8, ne tbnz w8, #0, LBB0_7 b LBB0_6 LBB0_6: ldur w8, [x29, #-12] add w8, w8, #1 stur w8, [x29, #-12] b LBB0_7 LBB0_7: str wzr, [sp, #16] b LBB0_8 LBB0_8: ; =>This Inner Loop Header: Depth=1 ldur x8, [x29, #-8] ldursw x9, [x29, #-12] ldrsb w0, [x8, x9] bl _isdigit subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB0_11 b LBB0_9 LBB0_9: ; in Loop: Header=BB0_8 Depth=1 ldr w9, [sp, #16] mov w8, #10 mul w8, w8, w9 ldur x9, [x29, #-8] ldursw x10, [x29, #-12] ldrsb w9, [x9, x10] subs w9, w9, #48 add w8, w8, w9 str w8, [sp, #16] b LBB0_10 LBB0_10: ; in Loop: Header=BB0_8 Depth=1 ldur w8, [x29, #-12] add w8, w8, #1 stur w8, [x29, #-12] b LBB0_8 LBB0_11: ldr w8, [sp, #12] ldr w9, [sp, #16] mul w0, w8, w9 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #0 str w8, [sp, #16] ; 4-byte Folded Spill stur wzr, [x29, #-4] stur w0, [x29, #-8] stur x1, [x29, #-16] ldur x8, [x29, #-16] ldr x0, [x8, #8] bl _atoi_general str w0, [sp, #20] ldr w9, [sp, #20] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldr 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\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _atoi_general ## -- Begin function atoi_general .p2align 4, 0x90 _atoi_general: ## @atoi_general .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movl $0, -12(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movq -8(%rbp), %rax movslq -12(%rbp), %rcx movsbl (%rax,%rcx), %edi callq _isspace cmpl $0, %eax je LBB0_4 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_3 LBB0_3: ## in Loop: Header=BB0_1 Depth=1 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB0_1 LBB0_4: movq -8(%rbp), %rax movslq -12(%rbp), %rcx movsbl (%rax,%rcx), %edx movl $1, %eax movl $4294967295, %ecx ## imm = 0xFFFFFFFF cmpl $45, %edx cmovel %ecx, %eax movl %eax, -20(%rbp) movq -8(%rbp), %rax movslq -12(%rbp), %rcx movsbl (%rax,%rcx), %eax cmpl $43, %eax je LBB0_6 ## %bb.5: movq -8(%rbp), %rax movslq -12(%rbp), %rcx movsbl (%rax,%rcx), %eax cmpl $45, %eax jne LBB0_7 LBB0_6: movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) LBB0_7: movl $0, -16(%rbp) LBB0_8: ## =>This Inner Loop Header: Depth=1 movq -8(%rbp), %rax movslq -12(%rbp), %rcx movsbl (%rax,%rcx), %edi callq _isdigit cmpl $0, %eax je LBB0_11 ## %bb.9: ## in Loop: Header=BB0_8 Depth=1 imull $10, -16(%rbp), %eax movq -8(%rbp), %rcx movslq -12(%rbp), %rdx movsbl (%rcx,%rdx), %ecx subl $48, %ecx addl %ecx, %eax movl %eax, -16(%rbp) ## %bb.10: ## in Loop: Header=BB0_8 Depth=1 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB0_8 LBB0_11: movl -20(%rbp), %eax imull -16(%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 $32, %rsp movl $0, -4(%rbp) movl %edi, -8(%rbp) movq %rsi, -16(%rbp) movq -16(%rbp), %rax movq 8(%rax), %rdi callq _atoi_general movl %eax, -28(%rbp) movl -28(%rbp), %esi leaq L_.str(%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\n" .subsections_via_symbols
the_stack_data/1208486.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/98883.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] str w0, [sp, #8] str x1, [sp] bl _xx__test_chacha20 subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: mov w8, #1 stur w8, [x29, #-4] b LBB0_5 LBB0_2: bl _xx__test_hchacha20 subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: mov w8, #2 stur w8, [x29, #-4] b LBB0_5 LBB0_4: stur wzr, [x29, #-4] b LBB0_5 LBB0_5: ldur w0, [x29, #-4] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) movl %edi, -8(%rbp) movq %rsi, -16(%rbp) callq _xx__test_chacha20 cmpl $0, %eax je LBB0_2 ## %bb.1: movl $1, -4(%rbp) jmp LBB0_5 LBB0_2: callq _xx__test_hchacha20 cmpl $0, %eax je LBB0_4 ## %bb.3: movl $2, -4(%rbp) jmp LBB0_5 LBB0_4: movl $0, -4(%rbp) LBB0_5: movl -4(%rbp), %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/358064.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _lrintf ; -- Begin function lrintf .p2align 2 _lrintf: ; @lrintf .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str s0, [sp, #12] str xzr, [sp] ldr s0, [sp, #12] ; InlineAsm Start frintx s0, s0 fcvtzs w8, s0 ; InlineAsm End str x8, [sp] str s0, [sp, #12] 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 _lrintf ## -- Begin function lrintf .p2align 4, 0x90 _lrintf: ## @lrintf .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movss %xmm0, -4(%rbp) movq $0, -16(%rbp) movss -4(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, -20(%rbp) flds -20(%rbp) ## InlineAsm Start fistpl -16(%rbp) ## InlineAsm End movq -16(%rbp), %rax popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/118236.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, #400 .cfi_def_cfa_offset 400 stp x28, x27, [sp, #368] ; 16-byte Folded Spill stp x29, x30, [sp, #384] ; 16-byte Folded Spill add x29, sp, #384 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w27, -24 .cfi_offset w28, -32 adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] str x8, [sp, #8] ; 8-byte Folded Spill adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] str wzr, [sp, #36] str w0, [sp, #32] str x1, [sp, #24] str wzr, [sp, #16] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #16] subs w8, w8, #5 cset w8, ge tbnz w8, #0, LBB0_6 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldrsw x9, [sp, #16] add x8, sp, #40 add x0, x8, x9, lsl #6 mov x1, #0 bl _pthread_mutex_init str w0, [sp, #20] ldr w8, [sp, #20] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: ldr x8, [sp, #8] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF bl _fprintf mov w0, #-1 bl _exit LBB0_4: ; in Loop: Header=BB0_1 Depth=1 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #16] add w8, w8, #1 str w8, [sp, #16] b LBB0_1 LBB0_6: str wzr, [sp, #16] b LBB0_7 LBB0_7: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #16] subs w8, w8, #5 cset w8, ge tbnz w8, #0, LBB0_12 b LBB0_8 LBB0_8: ; in Loop: Header=BB0_7 Depth=1 ldrsw x9, [sp, #16] add x8, sp, #40 add x0, x8, x9, lsl #6 bl _pthread_mutex_lock str w0, [sp, #20] ldr w8, [sp, #20] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_10 b LBB0_9 LBB0_9: ldr x8, [sp, #8] ; 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_10: ; in Loop: Header=BB0_7 Depth=1 b LBB0_11 LBB0_11: ; in Loop: Header=BB0_7 Depth=1 ldr w8, [sp, #16] add w8, w8, #1 str w8, [sp, #16] b LBB0_7 LBB0_12: str wzr, [sp, #16] b LBB0_13 LBB0_13: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #16] subs w8, w8, #5 cset w8, ge tbnz w8, #0, LBB0_18 b LBB0_14 LBB0_14: ; in Loop: Header=BB0_13 Depth=1 ldrsw x9, [sp, #16] add x8, sp, #40 add x0, x8, x9, lsl #6 bl _pthread_mutex_unlock str w0, [sp, #20] ldr w8, [sp, #20] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_16 b LBB0_15 LBB0_15: ldr x8, [sp, #8] ; 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_16: ; in Loop: Header=BB0_13 Depth=1 b LBB0_17 LBB0_17: ; in Loop: Header=BB0_13 Depth=1 ldr w8, [sp, #16] add w8, w8, #1 str w8, [sp, #16] b LBB0_13 LBB0_18: mov w8, #4 str w8, [sp, #16] b LBB0_19 LBB0_19: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #16] subs w8, w8, #0 cset w8, lt tbnz w8, #0, LBB0_24 b LBB0_20 LBB0_20: ; in Loop: Header=BB0_19 Depth=1 ldrsw x9, [sp, #16] add x8, sp, #40 add x0, x8, x9, lsl #6 bl _pthread_mutex_lock str w0, [sp, #20] ldr w8, [sp, #20] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_22 b LBB0_21 LBB0_21: ldr x8, [sp, #8] ; 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_22: ; in Loop: Header=BB0_19 Depth=1 b LBB0_23 LBB0_23: ; in Loop: Header=BB0_19 Depth=1 ldr w8, [sp, #16] subs w8, w8, #1 str w8, [sp, #16] b LBB0_19 LBB0_24: mov w8, #4 str w8, [sp, #16] b LBB0_25 LBB0_25: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #16] subs w8, w8, #0 cset w8, lt tbnz w8, #0, LBB0_30 b LBB0_26 LBB0_26: ; in Loop: Header=BB0_25 Depth=1 ldrsw x9, [sp, #16] add x8, sp, #40 add x0, x8, x9, lsl #6 bl _pthread_mutex_unlock str w0, [sp, #20] ldr w8, [sp, #20] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_28 b LBB0_27 LBB0_27: ldr x8, [sp, #8] ; 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_28: ; in Loop: Header=BB0_25 Depth=1 b LBB0_29 LBB0_29: ; in Loop: Header=BB0_25 Depth=1 ldr w8, [sp, #16] subs w8, w8, #1 str w8, [sp, #16] b LBB0_25 LBB0_30: str wzr, [sp, #16] b LBB0_31 LBB0_31: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #16] subs w8, w8, #5 cset w8, ge tbnz w8, #0, LBB0_36 b LBB0_32 LBB0_32: ; in Loop: Header=BB0_31 Depth=1 ldrsw x9, [sp, #16] add x8, sp, #40 add x0, x8, x9, lsl #6 bl _pthread_mutex_destroy str w0, [sp, #20] ldr w8, [sp, #20] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_34 b LBB0_33 LBB0_33: ldr x8, [sp, #8] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.3@PAGE add x1, x1, l_.str.3@PAGEOFF bl _fprintf mov w0, #-1 bl _exit LBB0_34: ; in Loop: Header=BB0_31 Depth=1 b LBB0_35 LBB0_35: ; in Loop: Header=BB0_31 Depth=1 ldr w8, [sp, #16] add w8, w8, #1 str w8, [sp, #16] b LBB0_31 LBB0_36: 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_38 b LBB0_37 LBB0_37: bl ___stack_chk_fail LBB0_38: mov w0, #0 ldp x29, x30, [sp, #384] ; 16-byte Folded Reload ldp x28, x27, [sp, #368] ; 16-byte Folded Reload add sp, sp, #400 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "pthread_mutex_init failed\n" l_.str.1: ; @.str.1 .asciz "pthread_mutex_lock failed\n" l_.str.2: ; @.str.2 .asciz "pthread_mutex_unlock failed\n" l_.str.3: ; @.str.3 .asciz "pthread_mutex_destroy failed\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $368, %rsp ## imm = 0x170 movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -340(%rbp) movl %edi, -344(%rbp) movq %rsi, -352(%rbp) movl $0, -360(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 cmpl $5, -360(%rbp) jge LBB0_6 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movslq -360(%rbp), %rax leaq -336(%rbp), %rdi shlq $6, %rax addq %rax, %rdi xorl %eax, %eax movl %eax, %esi callq _pthread_mutex_init movl %eax, -356(%rbp) cmpl $0, -356(%rbp) je LBB0_4 ## %bb.3: 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_4: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_5 LBB0_5: ## in Loop: Header=BB0_1 Depth=1 movl -360(%rbp), %eax addl $1, %eax movl %eax, -360(%rbp) jmp LBB0_1 LBB0_6: movl $0, -360(%rbp) LBB0_7: ## =>This Inner Loop Header: Depth=1 cmpl $5, -360(%rbp) jge LBB0_12 ## %bb.8: ## in Loop: Header=BB0_7 Depth=1 movslq -360(%rbp), %rax leaq -336(%rbp), %rdi shlq $6, %rax addq %rax, %rdi callq _pthread_mutex_lock movl %eax, -356(%rbp) cmpl $0, -356(%rbp) je LBB0_10 ## %bb.9: 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_10: ## in Loop: Header=BB0_7 Depth=1 jmp LBB0_11 LBB0_11: ## in Loop: Header=BB0_7 Depth=1 movl -360(%rbp), %eax addl $1, %eax movl %eax, -360(%rbp) jmp LBB0_7 LBB0_12: movl $0, -360(%rbp) LBB0_13: ## =>This Inner Loop Header: Depth=1 cmpl $5, -360(%rbp) jge LBB0_18 ## %bb.14: ## in Loop: Header=BB0_13 Depth=1 movslq -360(%rbp), %rax leaq -336(%rbp), %rdi shlq $6, %rax addq %rax, %rdi callq _pthread_mutex_unlock movl %eax, -356(%rbp) cmpl $0, -356(%rbp) je LBB0_16 ## %bb.15: 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_16: ## in Loop: Header=BB0_13 Depth=1 jmp LBB0_17 LBB0_17: ## in Loop: Header=BB0_13 Depth=1 movl -360(%rbp), %eax addl $1, %eax movl %eax, -360(%rbp) jmp LBB0_13 LBB0_18: movl $4, -360(%rbp) LBB0_19: ## =>This Inner Loop Header: Depth=1 cmpl $0, -360(%rbp) jl LBB0_24 ## %bb.20: ## in Loop: Header=BB0_19 Depth=1 movslq -360(%rbp), %rax leaq -336(%rbp), %rdi shlq $6, %rax addq %rax, %rdi callq _pthread_mutex_lock movl %eax, -356(%rbp) cmpl $0, -356(%rbp) je LBB0_22 ## %bb.21: 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_22: ## in Loop: Header=BB0_19 Depth=1 jmp LBB0_23 LBB0_23: ## in Loop: Header=BB0_19 Depth=1 movl -360(%rbp), %eax addl $-1, %eax movl %eax, -360(%rbp) jmp LBB0_19 LBB0_24: movl $4, -360(%rbp) LBB0_25: ## =>This Inner Loop Header: Depth=1 cmpl $0, -360(%rbp) jl LBB0_30 ## %bb.26: ## in Loop: Header=BB0_25 Depth=1 movslq -360(%rbp), %rax leaq -336(%rbp), %rdi shlq $6, %rax addq %rax, %rdi callq _pthread_mutex_unlock movl %eax, -356(%rbp) cmpl $0, -356(%rbp) je LBB0_28 ## %bb.27: 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_28: ## in Loop: Header=BB0_25 Depth=1 jmp LBB0_29 LBB0_29: ## in Loop: Header=BB0_25 Depth=1 movl -360(%rbp), %eax addl $-1, %eax movl %eax, -360(%rbp) jmp LBB0_25 LBB0_30: movl $0, -360(%rbp) LBB0_31: ## =>This Inner Loop Header: Depth=1 cmpl $5, -360(%rbp) jge LBB0_36 ## %bb.32: ## in Loop: Header=BB0_31 Depth=1 movslq -360(%rbp), %rax leaq -336(%rbp), %rdi shlq $6, %rax addq %rax, %rdi callq _pthread_mutex_destroy movl %eax, -356(%rbp) cmpl $0, -356(%rbp) je LBB0_34 ## %bb.33: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.3(%rip), %rsi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _fprintf movl $-1, %edi callq _exit LBB0_34: ## in Loop: Header=BB0_31 Depth=1 jmp LBB0_35 LBB0_35: ## in Loop: Header=BB0_31 Depth=1 movl -360(%rbp), %eax addl $1, %eax movl %eax, -360(%rbp) jmp LBB0_31 LBB0_36: movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_38 ## %bb.37: xorl %eax, %eax addq $368, %rsp ## imm = 0x170 popq %rbp retq LBB0_38: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "pthread_mutex_init failed\n" L_.str.1: ## @.str.1 .asciz "pthread_mutex_lock failed\n" L_.str.2: ## @.str.2 .asciz "pthread_mutex_unlock failed\n" L_.str.3: ## @.str.3 .asciz "pthread_mutex_destroy failed\n" .subsections_via_symbols
the_stack_data/10787.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _nondet_signed_int ; -- Begin function nondet_signed_int .p2align 2 _nondet_signed_int: ; @nondet_signed_int .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 ___VERIFIER_nondet_int stur w0, [x29, #-4] ldur w9, [x29, #-4] mov w8, #-2147483648 subs w8, w8, w9 cset w8, gt mov w9, #0 str w9, [sp, #8] ; 4-byte Folded Spill tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: ldur w8, [x29, #-4] mov w9, #2147483647 subs w8, w8, w9 cset w8, le str w8, [sp, #8] ; 4-byte Folded Spill b LBB0_2 LBB0_2: ldr w8, [sp, #8] ; 4-byte Folded Reload and w0, w8, #0x1 bl ___VERIFIER_assume 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 stur wzr, [x29, #-4] bl _nondet_signed_int str w0, [sp, #8] ldr w8, [sp, #8] subs w8, w8, #1 cset w8, lt tbnz w8, #0, LBB1_13 b LBB1_1 LBB1_1: b LBB1_2 LBB1_2: ; =>This Loop Header: Depth=1 ; Child Loop BB1_6 Depth 2 ldr w8, [sp, #8] subs w8, w8, #0 cset w8, eq mov w9, #0 str w9, [sp, #4] ; 4-byte Folded Spill tbnz w8, #0, LBB1_4 b LBB1_3 LBB1_3: ; in Loop: Header=BB1_2 Depth=1 ldr w8, [sp, #8] adds w8, w8, #1 cset w8, ne str w8, [sp, #4] ; 4-byte Folded Spill b LBB1_4 LBB1_4: ; in Loop: Header=BB1_2 Depth=1 ldr w8, [sp, #4] ; 4-byte Folded Reload tbz w8, #0, LBB1_12 b LBB1_5 LBB1_5: ; in Loop: Header=BB1_2 Depth=1 b LBB1_6 LBB1_6: ; Parent Loop BB1_2 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #8] subs w8, w8, #2 mov w9, #-2147483648 subs w8, w8, w9 cset w8, lt mov w9, #1 str w9, [sp] ; 4-byte Folded Spill tbnz w8, #0, LBB1_8 b LBB1_7 LBB1_7: ; in Loop: Header=BB1_6 Depth=2 ldr w8, [sp, #8] subs w9, w8, #2 mov w8, #2147483647 subs w8, w8, w9 cset w8, lt str w8, [sp] ; 4-byte Folded Spill b LBB1_8 LBB1_8: ; in Loop: Header=BB1_6 Depth=2 ldr w8, [sp] ; 4-byte Folded Reload tbz w8, #0, LBB1_10 b LBB1_9 LBB1_9: ; in Loop: Header=BB1_6 Depth=2 b LBB1_6 LBB1_10: ; in Loop: Header=BB1_2 Depth=1 b LBB1_11 LBB1_11: ; in Loop: Header=BB1_2 Depth=1 ldr w8, [sp, #8] subs w8, w8, #2 str w8, [sp, #8] b LBB1_2 LBB1_12: b LBB1_13 LBB1_13: mov w0, #0 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 _nondet_signed_int ## -- Begin function nondet_signed_int .p2align 4, 0x90 _nondet_signed_int: ## @nondet_signed_int .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 $0, %al callq ___VERIFIER_nondet_int movl %eax, -4(%rbp) xorl %eax, %eax ## kill: def $al killed $al killed $eax movl $2147483648, %ecx ## imm = 0x80000000 cmpl -4(%rbp), %ecx movb %al, -5(%rbp) ## 1-byte Spill jg LBB0_2 ## %bb.1: cmpl $2147483647, -4(%rbp) ## imm = 0x7FFFFFFF setle %al movb %al, -5(%rbp) ## 1-byte Spill LBB0_2: movb -5(%rbp), %al ## 1-byte Reload andb $1, %al movzbl %al, %edi callq ___VERIFIER_assume 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) callq _nondet_signed_int movl %eax, -8(%rbp) cmpl $1, -8(%rbp) jl LBB1_13 ## %bb.1: jmp LBB1_2 LBB1_2: ## =>This Loop Header: Depth=1 ## Child Loop BB1_6 Depth 2 xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $0, -8(%rbp) movb %al, -9(%rbp) ## 1-byte Spill je LBB1_4 ## %bb.3: ## in Loop: Header=BB1_2 Depth=1 cmpl $-1, -8(%rbp) sete %al xorb $-1, %al movb %al, -9(%rbp) ## 1-byte Spill LBB1_4: ## in Loop: Header=BB1_2 Depth=1 movb -9(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB1_5 jmp LBB1_12 LBB1_5: ## in Loop: Header=BB1_2 Depth=1 jmp LBB1_6 LBB1_6: ## Parent Loop BB1_2 Depth=1 ## => This Inner Loop Header: Depth=2 movl -8(%rbp), %ecx subl $2, %ecx movb $1, %al cmpl $-2147483648, %ecx ## imm = 0x80000000 movb %al, -10(%rbp) ## 1-byte Spill jl LBB1_8 ## %bb.7: ## in Loop: Header=BB1_6 Depth=2 movl -8(%rbp), %ecx subl $2, %ecx movl $2147483647, %eax ## imm = 0x7FFFFFFF cmpl %ecx, %eax setl %al movb %al, -10(%rbp) ## 1-byte Spill LBB1_8: ## in Loop: Header=BB1_6 Depth=2 movb -10(%rbp), %al ## 1-byte Reload xorb $-1, %al xorb $-1, %al testb $1, %al jne LBB1_9 jmp LBB1_10 LBB1_9: ## in Loop: Header=BB1_6 Depth=2 jmp LBB1_6 LBB1_10: ## in Loop: Header=BB1_2 Depth=1 jmp LBB1_11 LBB1_11: ## in Loop: Header=BB1_2 Depth=1 movl -8(%rbp), %eax subl $2, %eax movl %eax, -8(%rbp) jmp LBB1_2 LBB1_12: jmp LBB1_13 LBB1_13: xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/212642672.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 fahr_to_celsius lCPI0_0: .quad 0x3fe1c71c71c71c72 ; double 0.55555555555555558 lCPI0_1: .quad 0x4040000000000000 ; double 32 .section __TEXT,__text,regular,pure_instructions .globl _fahr_to_celsius .p2align 2 _fahr_to_celsius: ; @fahr_to_celsius .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str d0, [sp, #8] ldr d0, [sp, #8] adrp x8, lCPI0_1@PAGE ldr d1, [x8, lCPI0_1@PAGEOFF] fsub d1, d0, d1 adrp x8, lCPI0_0@PAGE ldr d0, [x8, lCPI0_0@PAGEOFF] fmul d0, d0, d1 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 .section __TEXT,__literal8,8byte_literals .p2align 3 ## -- Begin function fahr_to_celsius LCPI0_0: .quad 0x3fe1c71c71c71c72 ## double 0.55555555555555558 LCPI0_1: .quad 0x4040000000000000 ## double 32 .section __TEXT,__text,regular,pure_instructions .globl _fahr_to_celsius .p2align 4, 0x90 _fahr_to_celsius: ## @fahr_to_celsius .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movsd %xmm0, -8(%rbp) movsd -8(%rbp), %xmm1 ## xmm1 = mem[0],zero movsd LCPI0_1(%rip), %xmm0 ## xmm0 = mem[0],zero subsd %xmm0, %xmm1 movsd LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero mulsd %xmm1, %xmm0 popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/598692.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/97895.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 mov w0, #0 str wzr, [sp, #28] add x9, sp, #24 str wzr, [sp, #24] add x8, sp, #12 mov w10, #10 str w10, [sp, #12] str x9, [sp, #16] str x8, [sp] ldr x8, [sp] ldr w8, [x8] str w8, [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 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @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 $0, -8(%rbp) movl $10, -20(%rbp) leaq -8(%rbp), %rax movq %rax, -16(%rbp) leaq -20(%rbp), %rax movq %rax, -32(%rbp) movq -32(%rbp), %rax movl (%rax), %eax movl %eax, -8(%rbp) xorl %eax, %eax popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/117220.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] stur wzr, [x29, #-12] stur wzr, [x29, #-16] stur wzr, [x29, #-20] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 bl _getchar stur w0, [x29, #-8] adds w8, w0, #1 cset w8, eq tbnz w8, #0, LBB0_11 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-8] subs w8, w8, #32 cset w8, ne tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-12] add w8, w8, #1 stur w8, [x29, #-12] b LBB0_10 LBB0_4: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-8] subs w8, w8, #9 cset w8, ne tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-16] add w8, w8, #1 stur w8, [x29, #-16] b LBB0_9 LBB0_6: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-8] subs w8, w8, #10 cset w8, ne tbnz w8, #0, LBB0_8 b LBB0_7 LBB0_7: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-20] add w8, w8, #1 stur w8, [x29, #-20] b LBB0_8 LBB0_8: ; in Loop: Header=BB0_1 Depth=1 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_1 LBB0_11: ldur w8, [x29, #-12] ; implicit-def: $x11 mov x11, x8 ldur w8, [x29, #-16] ; implicit-def: $x10 mov x10, x8 ldur w9, [x29, #-20] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x11, [x9] str x10, [x9, #8] str x8, [x9, #16] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldur w0, [x29, #-4] ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d %d %d\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl $0, -4(%rbp) movl $0, -12(%rbp) movl $0, -16(%rbp) movl $0, -20(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 callq _getchar movl %eax, -8(%rbp) cmpl $-1, %eax je LBB0_11 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 cmpl $32, -8(%rbp) jne LBB0_4 ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB0_10 LBB0_4: ## in Loop: Header=BB0_1 Depth=1 cmpl $9, -8(%rbp) jne LBB0_6 ## %bb.5: ## in Loop: Header=BB0_1 Depth=1 movl -16(%rbp), %eax addl $1, %eax movl %eax, -16(%rbp) jmp LBB0_9 LBB0_6: ## in Loop: Header=BB0_1 Depth=1 cmpl $10, -8(%rbp) jne LBB0_8 ## %bb.7: ## in Loop: Header=BB0_1 Depth=1 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) LBB0_8: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_9 LBB0_9: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_10 LBB0_10: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_1 LBB0_11: movl -12(%rbp), %esi movl -16(%rbp), %edx movl -20(%rbp), %ecx leaq L_.str(%rip), %rdi movb $0, %al callq _printf movl -4(%rbp), %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d %d %d\n" .subsections_via_symbols
the_stack_data/167330982.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _ft_putchar ; -- Begin function ft_putchar .p2align 2 _ft_putchar: ; @ft_putchar .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 x1, x29, #1 sturb w0, [x29, #-1] mov w0, #1 mov x2, #1 bl _write ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] stur w0, [x29, #-8] str x1, [sp, #16] mov w8, #1 str w8, [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, #-8] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_6 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 str wzr, [sp, #12] b LBB1_3 LBB1_3: ; Parent Loop BB1_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr x8, [sp, #16] ldrsw x9, [sp, #8] ldr x8, [x8, x9, lsl #3] ldrsw x9, [sp, #12] ldrsb w8, [x8, x9] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB1_5 b LBB1_4 LBB1_4: ; in Loop: Header=BB1_3 Depth=2 ldr x8, [sp, #16] ldrsw x9, [sp, #8] ldr x8, [x8, x9, lsl #3] ldrsw x9, [sp, #12] ldrsb w0, [x8, x9] bl _ft_putchar ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB1_3 LBB1_5: ; in Loop: Header=BB1_1 Depth=1 mov w0, #10 bl _ft_putchar ldr w8, [sp, #8] add w8, w8, #1 str w8, [sp, #8] b LBB1_1 LBB1_6: mov w0, #0 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 _ft_putchar ## -- Begin function ft_putchar .p2align 4, 0x90 _ft_putchar: ## @ft_putchar .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movb %dil, %al movb %al, -1(%rbp) movl $1, %edi leaq -1(%rbp), %rsi movl $1, %edx callq _write addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl $0, -4(%rbp) movl %edi, -8(%rbp) movq %rsi, -16(%rbp) movl $1, -24(%rbp) LBB1_1: ## =>This Loop Header: Depth=1 ## Child Loop BB1_3 Depth 2 movl -24(%rbp), %eax cmpl -8(%rbp), %eax jge LBB1_6 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 movl $0, -20(%rbp) LBB1_3: ## Parent Loop BB1_1 Depth=1 ## => This Inner Loop Header: Depth=2 movq -16(%rbp), %rax movslq -24(%rbp), %rcx movq (%rax,%rcx,8), %rax movslq -20(%rbp), %rcx movsbl (%rax,%rcx), %eax cmpl $0, %eax je LBB1_5 ## %bb.4: ## in Loop: Header=BB1_3 Depth=2 movq -16(%rbp), %rax movslq -24(%rbp), %rcx movq (%rax,%rcx,8), %rax movslq -20(%rbp), %rcx movsbl (%rax,%rcx), %edi callq _ft_putchar movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB1_3 LBB1_5: ## in Loop: Header=BB1_1 Depth=1 movl $10, %edi callq _ft_putchar movl -24(%rbp), %eax addl $1, %eax movl %eax, -24(%rbp) jmp LBB1_1 LBB1_6: xorl %eax, %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/130566.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _array_print ; -- Begin function array_print .p2align 2 _array_print: ; @array_print .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] str x1, [sp, #16] str wzr, [sp, #12] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldrsw x8, [sp, #12] ldr x9, [sp, #16] subs x8, x8, x9 cset w8, hs tbnz w8, #0, LBB0_4 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldur x8, [x29, #-8] ldrsw x9, [sp, #12] ldr w9, [x8, x9, lsl #2] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB0_1 LBB0_4: 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 _array_merge_part ; -- Begin function array_merge_part .p2align 2 _array_merge_part: ; @array_merge_part .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] stur x2, [x29, #-32] ldur x8, [x29, #-32] mov x9, sp stur x9, [x29, #-40] 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, #-48] stur xzr, [x29, #-56] stur xzr, [x29, #-64] ldur x8, [x29, #-24] stur x8, [x29, #-72] b LBB1_1 LBB1_1: ; =>This Inner Loop Header: Depth=1 ldur x8, [x29, #-56] ldur x9, [x29, #-32] subs x8, x8, x9 cset w8, hs tbnz w8, #0, LBB1_13 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 ldur x8, [x29, #-64] ldur x9, [x29, #-24] subs x8, x8, x9 cset w8, lo tbnz w8, #0, LBB1_4 b LBB1_3 LBB1_3: ; in Loop: Header=BB1_1 Depth=1 ldur x9, [x29, #-80] ; 8-byte Folded Reload ldur x8, [x29, #-16] ldur x10, [x29, #-72] add x11, x10, #1 stur x11, [x29, #-72] ldr w8, [x8, x10, lsl #2] ldur x10, [x29, #-56] str w8, [x9, x10, lsl #2] b LBB1_11 LBB1_4: ; in Loop: Header=BB1_1 Depth=1 ldur x8, [x29, #-72] ldur x9, [x29, #-32] subs x8, x8, x9 cset w8, lo tbnz w8, #0, LBB1_6 b LBB1_5 LBB1_5: ; in Loop: Header=BB1_1 Depth=1 ldur x9, [x29, #-80] ; 8-byte Folded Reload ldur x8, [x29, #-16] ldur x10, [x29, #-64] add x11, x10, #1 stur x11, [x29, #-64] ldr w8, [x8, x10, lsl #2] ldur x10, [x29, #-56] str w8, [x9, x10, lsl #2] b LBB1_10 LBB1_6: ; in Loop: Header=BB1_1 Depth=1 ldur x8, [x29, #-16] ldur x9, [x29, #-64] ldr w8, [x8, x9, lsl #2] ldur x9, [x29, #-16] ldur x10, [x29, #-72] ldr w9, [x9, x10, lsl #2] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_8 b LBB1_7 LBB1_7: ; in Loop: Header=BB1_1 Depth=1 ldur x8, [x29, #-16] ldur x9, [x29, #-64] add x10, x9, #1 stur x10, [x29, #-64] ldr w8, [x8, x9, lsl #2] stur w8, [x29, #-92] ; 4-byte Folded Spill b LBB1_9 LBB1_8: ; in Loop: Header=BB1_1 Depth=1 ldur x8, [x29, #-16] ldur x9, [x29, #-72] add x10, x9, #1 stur x10, [x29, #-72] ldr w8, [x8, x9, lsl #2] stur w8, [x29, #-92] ; 4-byte Folded Spill b LBB1_9 LBB1_9: ; in Loop: Header=BB1_1 Depth=1 ldur x9, [x29, #-80] ; 8-byte Folded Reload ldur w8, [x29, #-92] ; 4-byte Folded Reload ldur x10, [x29, #-56] str w8, [x9, x10, lsl #2] b LBB1_10 LBB1_10: ; in Loop: Header=BB1_1 Depth=1 b LBB1_11 LBB1_11: ; in Loop: Header=BB1_1 Depth=1 b LBB1_12 LBB1_12: ; in Loop: Header=BB1_1 Depth=1 ldur x8, [x29, #-56] add x8, x8, #1 stur x8, [x29, #-56] b LBB1_1 LBB1_13: stur xzr, [x29, #-56] b LBB1_14 LBB1_14: ; =>This Inner Loop Header: Depth=1 ldur x8, [x29, #-56] ldur x9, [x29, #-32] subs x8, x8, x9 cset w8, hs tbnz w8, #0, LBB1_17 b LBB1_15 LBB1_15: ; in Loop: Header=BB1_14 Depth=1 ldur x8, [x29, #-80] ; 8-byte Folded Reload ldur x9, [x29, #-56] ldr w8, [x8, x9, lsl #2] ldur x9, [x29, #-16] ldur x10, [x29, #-56] str w8, [x9, x10, lsl #2] b LBB1_16 LBB1_16: ; in Loop: Header=BB1_14 Depth=1 ldur x8, [x29, #-56] add x8, x8, #1 stur x8, [x29, #-56] b LBB1_14 LBB1_17: ldur x8, [x29, #-40] stur x8, [x29, #-104] ; 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_19 b LBB1_18 LBB1_18: bl ___stack_chk_fail LBB1_19: ldur x8, [x29, #-104] ; 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 _array_sort ; -- Begin function array_sort .p2align 2 _array_sort: ; @array_sort .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] str x1, [sp, #16] ldr x8, [sp, #16] subs x8, x8, #2 cset w8, hs tbnz w8, #0, LBB2_2 b LBB2_1 LBB2_1: b LBB2_3 LBB2_2: ldr x8, [sp, #16] mov x9, #2 udiv x8, x8, x9 str x8, [sp, #8] ldur x0, [x29, #-8] ldr x1, [sp, #8] bl _array_sort ldur x8, [x29, #-8] ldr x9, [sp, #8] add x0, x8, x9, lsl #2 ldr x8, [sp, #16] ldr x9, [sp, #8] subs x1, x8, x9 bl _array_sort ldur x0, [x29, #-8] ldr x1, [sp, #8] ldr x2, [sp, #16] bl _array_merge_part b LBB2_3 LBB2_3: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _array_init_rand ; -- Begin function array_init_rand .p2align 2 _array_init_rand: ; @array_init_rand .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] str x1, [sp, #16] str w2, [sp, #12] mov x0, #0 bl _time ; kill: def $w0 killed $w0 killed $x0 bl _srand str xzr, [sp] b LBB3_1 LBB3_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp] ldr x9, [sp, #16] subs x8, x8, x9 cset w8, hs tbnz w8, #0, LBB3_4 b LBB3_2 LBB3_2: ; in Loop: Header=BB3_1 Depth=1 bl _rand ldr w9, [sp, #12] sdiv w8, w0, w9 mul w8, w8, w9 subs w8, w0, w8 ldur x9, [x29, #-8] ldr x10, [sp] str w8, [x9, x10, lsl #2] b LBB3_3 LBB3_3: ; in Loop: Header=BB3_1 Depth=1 ldr x8, [sp] add x8, x8, #1 str x8, [sp] b LBB3_1 LBB3_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: stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill .cfi_def_cfa_offset 16 mov x29, sp .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 sub sp, sp, #64 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] stur wzr, [x29, #-12] mov x8, #20 stur x8, [x29, #-24] ldur x8, [x29, #-24] mov x9, sp stur x9, [x29, #-32] lsl x9, x8, #2 add x9, x9, #15 and x9, x9, #0xfffffffffffffff0 stur x9, [x29, #-64] ; 8-byte Folded Spill adrp x16, ___chkstk_darwin@GOTPAGE ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF] blr x16 ldur x10, [x29, #-64] ; 8-byte Folded Reload mov x9, sp subs x0, x9, x10 stur x0, [x29, #-56] ; 8-byte Folded Spill mov sp, x0 stur x8, [x29, #-40] ldur x1, [x29, #-24] mov w2, #100 bl _array_init_rand ldur x0, [x29, #-56] ; 8-byte Folded Reload ldur x1, [x29, #-24] bl _array_print ldur x0, [x29, #-56] ; 8-byte Folded Reload ldur x1, [x29, #-24] bl _array_sort ldur x0, [x29, #-56] ; 8-byte Folded Reload ldur x1, [x29, #-24] bl _array_print stur wzr, [x29, #-12] ldur x8, [x29, #-32] mov sp, x8 ldur w8, [x29, #-12] stur w8, [x29, #-44] ; 4-byte Folded Spill ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB4_2 b LBB4_1 LBB4_1: bl ___stack_chk_fail LBB4_2: ldur w0, [x29, #-44] ; 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 "%i " 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 _array_print ## -- Begin function array_print .p2align 4, 0x90 _array_print: ## @array_print .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) movl $0, -20(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movslq -20(%rbp), %rax cmpq -16(%rbp), %rax jae LBB0_4 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movq -8(%rbp), %rax movslq -20(%rbp), %rcx movl (%rax,%rcx,4), %esi leaq L_.str(%rip), %rdi movb $0, %al callq _printf ## %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: leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _array_merge_part ## -- Begin function array_merge_part .p2align 4, 0x90 _array_merge_part: ## @array_merge_part .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 %rdx, -32(%rbp) movq -32(%rbp), %rax movq %rax, -88(%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 -88(%rbp), %rax ## 8-byte Reload movq %rsp, %rcx movq %rcx, -80(%rbp) ## 8-byte Spill movq %rax, -48(%rbp) movq $0, -56(%rbp) movq $0, -64(%rbp) movq -24(%rbp), %rax movq %rax, -72(%rbp) LBB1_1: ## =>This Inner Loop Header: Depth=1 movq -56(%rbp), %rax cmpq -32(%rbp), %rax jae LBB1_13 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 movq -64(%rbp), %rax cmpq -24(%rbp), %rax jb LBB1_4 ## %bb.3: ## in Loop: Header=BB1_1 Depth=1 movq -80(%rbp), %rax ## 8-byte Reload movq -16(%rbp), %rcx movq -72(%rbp), %rdx movq %rdx, %rsi addq $1, %rsi movq %rsi, -72(%rbp) movl (%rcx,%rdx,4), %edx movq -56(%rbp), %rcx movl %edx, (%rax,%rcx,4) jmp LBB1_11 LBB1_4: ## in Loop: Header=BB1_1 Depth=1 movq -72(%rbp), %rax cmpq -32(%rbp), %rax jb LBB1_6 ## %bb.5: ## in Loop: Header=BB1_1 Depth=1 movq -80(%rbp), %rax ## 8-byte Reload movq -16(%rbp), %rcx movq -64(%rbp), %rdx movq %rdx, %rsi addq $1, %rsi movq %rsi, -64(%rbp) movl (%rcx,%rdx,4), %edx movq -56(%rbp), %rcx movl %edx, (%rax,%rcx,4) jmp LBB1_10 LBB1_6: ## in Loop: Header=BB1_1 Depth=1 movq -16(%rbp), %rax movq -64(%rbp), %rcx movl (%rax,%rcx,4), %eax movq -16(%rbp), %rcx movq -72(%rbp), %rdx cmpl (%rcx,%rdx,4), %eax jge LBB1_8 ## %bb.7: ## in Loop: Header=BB1_1 Depth=1 movq -16(%rbp), %rax movq -64(%rbp), %rcx movq %rcx, %rdx addq $1, %rdx movq %rdx, -64(%rbp) movl (%rax,%rcx,4), %eax movl %eax, -92(%rbp) ## 4-byte Spill jmp LBB1_9 LBB1_8: ## in Loop: Header=BB1_1 Depth=1 movq -16(%rbp), %rax movq -72(%rbp), %rcx movq %rcx, %rdx addq $1, %rdx movq %rdx, -72(%rbp) movl (%rax,%rcx,4), %eax movl %eax, -92(%rbp) ## 4-byte Spill LBB1_9: ## in Loop: Header=BB1_1 Depth=1 movq -80(%rbp), %rax ## 8-byte Reload movl -92(%rbp), %edx ## 4-byte Reload movq -56(%rbp), %rcx movl %edx, (%rax,%rcx,4) LBB1_10: ## in Loop: Header=BB1_1 Depth=1 jmp LBB1_11 LBB1_11: ## in Loop: Header=BB1_1 Depth=1 jmp LBB1_12 LBB1_12: ## in Loop: Header=BB1_1 Depth=1 movq -56(%rbp), %rax addq $1, %rax movq %rax, -56(%rbp) jmp LBB1_1 LBB1_13: movq $0, -56(%rbp) LBB1_14: ## =>This Inner Loop Header: Depth=1 movq -56(%rbp), %rax cmpq -32(%rbp), %rax jae LBB1_17 ## %bb.15: ## in Loop: Header=BB1_14 Depth=1 movq -80(%rbp), %rax ## 8-byte Reload movq -56(%rbp), %rcx movl (%rax,%rcx,4), %edx movq -16(%rbp), %rax movq -56(%rbp), %rcx movl %edx, (%rax,%rcx,4) ## %bb.16: ## in Loop: Header=BB1_14 Depth=1 movq -56(%rbp), %rax addq $1, %rax movq %rax, -56(%rbp) jmp LBB1_14 LBB1_17: 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 LBB1_19 ## %bb.18: movq %rbp, %rsp popq %rbp retq LBB1_19: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _array_sort ## -- Begin function array_sort .p2align 4, 0x90 _array_sort: ## @array_sort .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) cmpq $2, -16(%rbp) jae LBB2_2 ## %bb.1: jmp LBB2_3 LBB2_2: movq -16(%rbp), %rax shrq $1, %rax movq %rax, -24(%rbp) movq -8(%rbp), %rdi movq -24(%rbp), %rsi callq _array_sort movq -8(%rbp), %rdi movq -24(%rbp), %rax shlq $2, %rax addq %rax, %rdi movq -16(%rbp), %rsi subq -24(%rbp), %rsi callq _array_sort movq -8(%rbp), %rdi movq -24(%rbp), %rsi movq -16(%rbp), %rdx callq _array_merge_part LBB2_3: addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _array_init_rand ## -- Begin function array_init_rand .p2align 4, 0x90 _array_init_rand: ## @array_init_rand .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) movl %edx, -20(%rbp) xorl %eax, %eax movl %eax, %edi callq _time movl %eax, %edi callq _srand movq $0, -32(%rbp) LBB3_1: ## =>This Inner Loop Header: Depth=1 movq -32(%rbp), %rax cmpq -16(%rbp), %rax jae LBB3_4 ## %bb.2: ## in Loop: Header=BB3_1 Depth=1 callq _rand cltd idivl -20(%rbp) movq -8(%rbp), %rax movq -32(%rbp), %rcx movl %edx, (%rax,%rcx,4) ## %bb.3: ## in Loop: Header=BB3_1 Depth=1 movq -32(%rbp), %rax addq $1, %rax movq %rax, -32(%rbp) jmp LBB3_1 LBB3_4: addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $64, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -12(%rbp) movq $20, -24(%rbp) movq -24(%rbp), %rax movq %rax, -64(%rbp) ## 8-byte Spill movq %rsp, %rcx movq %rcx, -32(%rbp) shlq $2, %rax callq ____chkstk_darwin addq $15, %rax andq $-16, %rax subq %rax, %rsp movq -64(%rbp), %rax ## 8-byte Reload movq %rsp, %rdi movq %rdi, -56(%rbp) ## 8-byte Spill movq %rax, -40(%rbp) movq -24(%rbp), %rsi movl $100, %edx callq _array_init_rand movq -56(%rbp), %rdi ## 8-byte Reload movq -24(%rbp), %rsi callq _array_print movq -56(%rbp), %rdi ## 8-byte Reload movq -24(%rbp), %rsi callq _array_sort movq -56(%rbp), %rdi ## 8-byte Reload movq -24(%rbp), %rsi callq _array_print movl $0, -12(%rbp) movq -32(%rbp), %rax movq %rax, %rsp movl -12(%rbp), %eax movl %eax, -44(%rbp) ## 4-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB4_2 ## %bb.1: movl -44(%rbp), %eax ## 4-byte Reload movq %rbp, %rsp popq %rbp retq LBB4_2: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%i " L_.str.1: ## @.str.1 .asciz "\n" .subsections_via_symbols
the_stack_data/597684.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/150142675.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, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur w0, [x29, #-4] stur w1, [x29, #-8] ldur w8, [x29, #-4] ; implicit-def: $x10 mov x10, x8 ldur w9, [x29, #-8] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldur 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, #-4] ldur w10, [x29, #-8] sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 stur w8, [x29, #-12] ldur w8, [x29, #-8] stur w8, [x29, #-4] ldur w8, [x29, #-12] stur w8, [x29, #-8] b LBB0_1 LBB0_3: 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 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #0 str w8, [sp, #8] ; 4-byte Folded Spill stur wzr, [x29, #-4] mov w0, #150 mov w1, #35 bl _gcd mov w0, #1026 mov w1, #405 bl _gcd mov w0, #83 mov w1, #240 bl _gcd 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 "The gcd of %i and %i is " l_.str.1: ; @.str.1 .asciz "%i\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), %esi movl -8(%rbp), %edx leaq L_.str(%rip), %rdi movb $0, %al callq _printf LBB0_1: ## =>This Inner Loop Header: Depth=1 cmpl $0, -8(%rbp) je LBB0_3 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl -4(%rbp), %eax cltd idivl -8(%rbp) movl %edx, -12(%rbp) movl -8(%rbp), %eax movl %eax, -4(%rbp) movl -12(%rbp), %eax movl %eax, -8(%rbp) jmp LBB0_1 LBB0_3: movl -4(%rbp), %esi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) movl $150, %edi movl $35, %esi callq _gcd movl $1026, %edi ## imm = 0x402 movl $405, %esi ## imm = 0x195 callq _gcd movl $83, %edi movl $240, %esi callq _gcd xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "The gcd of %i and %i is " L_.str.1: ## @.str.1 .asciz "%i\n" .subsections_via_symbols
the_stack_data/23575755.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _memcpy_f ; -- Begin function memcpy_f .p2align 2 _memcpy_f: ; @memcpy_f .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] str x1, [sp, #16] str x2, [sp, #8] ldur x0, [x29, #-8] ldr x1, [sp, #16] ldr x2, [sp, #8] mov x3, #-1 bl ___memcpy_chk 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, #208 .cfi_def_cfa_offset 208 stp x29, x30, [sp, #192] ; 16-byte Folded Spill add x29, sp, #192 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] str wzr, [sp, #52] add x0, sp, #56 str x0, [sp, #24] ; 8-byte Folded Spill bl ___enable_execute_stack ldr x0, [sp, #24] ; 8-byte Folded Reload adrp x1, _func1@PAGE add x1, x1, _func1@PAGEOFF mov x2, #128 bl _memcpy_f ldr x8, [sp, #24] ; 8-byte Folded Reload str x0, [sp, #40] mov x0, x8 add x1, x8, #128 bl ___clear_cache ldr x8, [sp, #40] mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldr x8, [sp, #40] blr x8 subs w8, w0, #1 cset w8, eq tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: mov w8, #1 str w8, [sp, #52] b LBB1_5 LBB1_2: add x0, sp, #56 str x0, [sp, #16] ; 8-byte Folded Spill adrp x1, _func2@PAGE add x1, x1, _func2@PAGEOFF mov x2, #128 bl _memcpy_f mov x8, x0 ldr x0, [sp, #16] ; 8-byte Folded Reload str x8, [sp, #32] add x1, x0, #128 bl ___clear_cache ldr x8, [sp, #32] blr x8 subs w8, w0, #2 cset w8, eq tbnz w8, #0, LBB1_4 b LBB1_3 LBB1_3: mov w8, #1 str w8, [sp, #52] b LBB1_5 LBB1_4: str wzr, [sp, #52] b LBB1_5 LBB1_5: ldr w8, [sp, #52] 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, LBB1_7 b LBB1_6 LBB1_6: bl ___stack_chk_fail LBB1_7: ldr w0, [sp, #12] ; 4-byte Folded Reload ldp x29, x30, [sp, #192] ; 16-byte Folded Reload add sp, sp, #208 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function func1 _func1: ; @func1 .cfi_startproc ; %bb.0: mov w0, #1 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function func2 _func2: ; @func2 .cfi_startproc ; %bb.0: mov w0, #2 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "f1: %p\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _memcpy_f ## -- Begin function memcpy_f .p2align 4, 0x90 _memcpy_f: ## @memcpy_f .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) movq %rdx, -24(%rbp) movq -8(%rbp), %rdi movq -16(%rbp), %rsi movq -24(%rbp), %rdx movq $-1, %rcx callq ___memcpy_chk 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 $176, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -148(%rbp) leaq -144(%rbp), %rdi callq ___enable_execute_stack leaq -144(%rbp), %rdi leaq _func1(%rip), %rsi movl $128, %edx callq _memcpy_f movq %rax, -160(%rbp) leaq -144(%rbp), %rdi leaq -144(%rbp), %rsi addq $128, %rsi callq ___clear_cache movq -160(%rbp), %rsi leaq L_.str(%rip), %rdi movb $0, %al callq _printf callq *-160(%rbp) cmpl $1, %eax je LBB1_2 ## %bb.1: movl $1, -148(%rbp) jmp LBB1_5 LBB1_2: leaq -144(%rbp), %rdi leaq _func2(%rip), %rsi movl $128, %edx callq _memcpy_f movq %rax, -168(%rbp) leaq -144(%rbp), %rdi leaq -144(%rbp), %rsi addq $128, %rsi callq ___clear_cache callq *-168(%rbp) cmpl $2, %eax je LBB1_4 ## %bb.3: movl $1, -148(%rbp) jmp LBB1_5 LBB1_4: movl $0, -148(%rbp) LBB1_5: movl -148(%rbp), %eax movl %eax, -172(%rbp) ## 4-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB1_7 ## %bb.6: movl -172(%rbp), %eax ## 4-byte Reload addq $176, %rsp popq %rbp retq LBB1_7: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function func1 _func1: ## @func1 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl $1, %eax popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function func2 _func2: ## @func2 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl $2, %eax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "f1: %p\n" .subsections_via_symbols
the_stack_data/40763397.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _push ; -- Begin function push .p2align 2 _push: ; @push .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf adrp x8, _start@PAGE ldr x8, [x8, _start@PAGEOFF] str x8, [sp, #16] mov x0, #16 bl _malloc stur x0, [x29, #-8] ldur x8, [x29, #-8] mov x9, sp str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf ldur x8, [x29, #-8] ; kill: def $x9 killed $xzr str xzr, [x8, #8] ldr x8, [sp, #16] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: ldur x8, [x29, #-8] str x8, [sp, #16] ldur x8, [x29, #-8] adrp x9, _start@PAGE str x8, [x9, _start@PAGEOFF] ldur x8, [x29, #-8] adrp x9, _top@PAGE str x8, [x9, _top@PAGEOFF] ldur x9, [x29, #-8] mov w8, #1 str w8, [x9, #4] b LBB0_8 LBB0_2: b LBB0_3 LBB0_3: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #16] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB0_7 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_3 Depth=1 ldr x8, [sp, #16] ldr w8, [x8] ldur x9, [x29, #-8] ldr w9, [x9] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: ldr x9, [sp, #16] ldr w8, [x9, #4] add w8, w8, #1 str w8, [x9, #4] ldur x0, [x29, #-8] bl _free b LBB0_8 LBB0_6: ; in Loop: Header=BB0_3 Depth=1 ldr x8, [sp, #16] ldr x8, [x8, #8] str x8, [sp, #16] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf b LBB0_3 LBB0_7: ldur x8, [x29, #-8] adrp x9, _top@PAGE ldr x10, [x9, _top@PAGEOFF] str x8, [x10, #8] ldur x10, [x29, #-8] mov w8, #1 str w8, [x10, #4] ldur x8, [x29, #-8] str x8, [x9, _top@PAGEOFF] b LBB0_8 LBB0_8: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _pop ; -- Begin function pop .p2align 2 _pop: ; @pop .cfi_startproc ; %bb.0: sub sp, sp, #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, _start@PAGE ldr x8, [x8, _start@PAGEOFF] str x8, [sp, #8] adrp x8, _top@PAGE ldr x8, [x8, _top@PAGEOFF] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf b LBB1_11 LBB1_2: adrp x8, _top@PAGE ldr x10, [x8, _top@PAGEOFF] ldr w9, [x10, #4] subs w9, w9, #1 str w9, [x10, #4] ldr x8, [x8, _top@PAGEOFF] ldr w8, [x8, #4] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB1_10 b LBB1_3 LBB1_3: adrp x8, _top@PAGE ldr x8, [x8, _top@PAGEOFF] adrp x9, _start@PAGE ldr x9, [x9, _start@PAGEOFF] subs x8, x8, x9 cset w8, ne tbnz w8, #0, LBB1_6 b LBB1_4 LBB1_4: adrp x8, _top@PAGE ldr x8, [x8, _top@PAGEOFF] ldr w8, [x8, #4] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB1_6 b LBB1_5 LBB1_5: ; kill: def $x8 killed $xzr adrp x8, _top@PAGE str xzr, [x8, _top@PAGEOFF] adrp x8, _start@PAGE str xzr, [x8, _start@PAGEOFF] b LBB1_11 LBB1_6: b LBB1_7 LBB1_7: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #8] ldr x8, [x8, #8] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB1_9 b LBB1_8 LBB1_8: ; in Loop: Header=BB1_7 Depth=1 ldr x8, [sp, #8] str x8, [sp] ldr x8, [sp, #8] ldr x8, [x8, #8] str x8, [sp, #8] b LBB1_7 LBB1_9: ldr x8, [sp] ; kill: def $x9 killed $xzr str xzr, [x8, #8] ldr x8, [sp] adrp x9, _top@PAGE str x8, [x9, _top@PAGEOFF] ldr x0, [sp, #8] bl _free b LBB1_10 LBB1_10: b LBB1_11 LBB1_11: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _display ; -- Begin function display .p2align 2 _display: ; @display .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, _start@PAGE ldr x8, [x8, _start@PAGEOFF] stur x8, [x29, #-8] ldur x8, [x29, #-8] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB2_2 b LBB2_1 LBB2_1: adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf b LBB2_5 LBB2_2: b LBB2_3 LBB2_3: ; =>This Inner Loop Header: Depth=1 ldur x8, [x29, #-8] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB2_5 b LBB2_4 LBB2_4: ; in Loop: Header=BB2_3 Depth=1 ldur x8, [x29, #-8] ldr w8, [x8] ; implicit-def: $x10 mov x10, x8 ldur x8, [x29, #-8] ldr w9, [x8, #4] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf ldur x8, [x29, #-8] ldr x8, [x8, #8] stur x8, [x29, #-8] b LBB2_3 LBB2_5: 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] adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _printf adrp x0, l_.str.7@PAGE add x0, x0, l_.str.7@PAGEOFF bl _printf adrp x0, l_.str.8@PAGE add x0, x0, l_.str.8@PAGEOFF bl _printf adrp x0, l_.str.9@PAGE add x0, x0, l_.str.9@PAGEOFF bl _printf adrp x0, l_.str.10@PAGE add x0, x0, l_.str.10@PAGEOFF bl _printf b LBB3_1 LBB3_1: ; =>This Inner Loop Header: Depth=1 adrp x0, l_.str.11@PAGE add x0, x0, l_.str.11@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] ; 4-byte Folded Spill subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB3_4 b LBB3_2 LBB3_2: ; in Loop: Header=BB3_1 Depth=1 ldur w8, [x29, #-12] ; 4-byte Folded Reload subs w8, w8, #1 cset w8, eq tbnz w8, #0, LBB3_5 b LBB3_3 LBB3_3: ; in Loop: Header=BB3_1 Depth=1 ldur w8, [x29, #-12] ; 4-byte Folded Reload subs w8, w8, #2 cset w8, eq tbnz w8, #0, LBB3_6 b LBB3_7 LBB3_4: mov w0, #0 bl _exit LBB3_5: ; in Loop: Header=BB3_1 Depth=1 bl _push bl _display b LBB3_8 LBB3_6: ; in Loop: Header=BB3_1 Depth=1 bl _pop bl _display b LBB3_8 LBB3_7: ; in Loop: Header=BB3_1 Depth=1 adrp x0, l_.str.12@PAGE add x0, x0, l_.str.12@PAGEOFF bl _printf b LBB3_8 LBB3_8: ; in Loop: Header=BB3_1 Depth=1 b LBB3_1 .cfi_endproc ; -- End function .globl _start ; @start .zerofill __DATA,__common,_start,8,3 .globl _top ; @top .zerofill __DATA,__common,_top,8,3 .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Enter the data for the node\n" l_.str.1: ; @.str.1 .asciz "%d" l_.str.2: ; @.str.2 .asciz "1\n" l_.str.3: ; @.str.3 .asciz "Underflow\n" l_.str.4: ; @.str.4 .asciz "The stack is empty\n" l_.str.5: ; @.str.5 .asciz "Element:%d Occurance:%d\n" l_.str.6: ; @.str.6 .asciz "------------Stack with occurance---------------\n" l_.str.7: ; @.str.7 .asciz "0.Exit\n" l_.str.8: ; @.str.8 .asciz "1.Insert into Stack\n" l_.str.9: ; @.str.9 .asciz "2.Delete from stack\n" l_.str.10: ; @.str.10 .asciz "3.Display the stack\n" l_.str.11: ; @.str.11 .asciz "Enter your choice\n" l_.str.12: ; @.str.12 .asciz "Wrong Choice Please try again\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _push ## -- Begin function push .p2align 4, 0x90 _push: ## @push .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp leaq L_.str(%rip), %rdi movb $0, %al callq _printf movq _start(%rip), %rax movq %rax, -16(%rbp) movl $16, %edi callq _malloc movq %rax, -8(%rbp) movq -8(%rbp), %rsi leaq L_.str.1(%rip), %rdi movb $0, %al callq _scanf movq -8(%rbp), %rax movq $0, 8(%rax) cmpq $0, -16(%rbp) jne LBB0_2 ## %bb.1: movq -8(%rbp), %rax movq %rax, -16(%rbp) movq -8(%rbp), %rax movq %rax, _start(%rip) movq -8(%rbp), %rax movq %rax, _top(%rip) movq -8(%rbp), %rax movl $1, 4(%rax) jmp LBB0_8 LBB0_2: jmp LBB0_3 LBB0_3: ## =>This Inner Loop Header: Depth=1 cmpq $0, -16(%rbp) je LBB0_7 ## %bb.4: ## in Loop: Header=BB0_3 Depth=1 movq -16(%rbp), %rax movl (%rax), %eax movq -8(%rbp), %rcx cmpl (%rcx), %eax jne LBB0_6 ## %bb.5: movq -16(%rbp), %rax movl 4(%rax), %ecx addl $1, %ecx movl %ecx, 4(%rax) movq -8(%rbp), %rdi callq _free jmp LBB0_8 LBB0_6: ## in Loop: Header=BB0_3 Depth=1 movq -16(%rbp), %rax movq 8(%rax), %rax movq %rax, -16(%rbp) leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf jmp LBB0_3 LBB0_7: movq -8(%rbp), %rcx movq _top(%rip), %rax movq %rcx, 8(%rax) movq -8(%rbp), %rax movl $1, 4(%rax) movq -8(%rbp), %rax movq %rax, _top(%rip) LBB0_8: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _pop ## -- Begin function pop .p2align 4, 0x90 _pop: ## @pop .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq _start(%rip), %rax movq %rax, -8(%rbp) cmpq $0, _top(%rip) jne LBB1_2 ## %bb.1: leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf jmp LBB1_11 LBB1_2: movq _top(%rip), %rax movl 4(%rax), %ecx addl $-1, %ecx movl %ecx, 4(%rax) movq _top(%rip), %rax cmpl $0, 4(%rax) jne LBB1_10 ## %bb.3: movq _top(%rip), %rax cmpq _start(%rip), %rax jne LBB1_6 ## %bb.4: movq _top(%rip), %rax cmpl $1, 4(%rax) jne LBB1_6 ## %bb.5: movq $0, _top(%rip) movq $0, _start(%rip) jmp LBB1_11 LBB1_6: jmp LBB1_7 LBB1_7: ## =>This Inner Loop Header: Depth=1 movq -8(%rbp), %rax cmpq $0, 8(%rax) je LBB1_9 ## %bb.8: ## in Loop: Header=BB1_7 Depth=1 movq -8(%rbp), %rax movq %rax, -16(%rbp) movq -8(%rbp), %rax movq 8(%rax), %rax movq %rax, -8(%rbp) jmp LBB1_7 LBB1_9: movq -16(%rbp), %rax movq $0, 8(%rax) movq -16(%rbp), %rax movq %rax, _top(%rip) movq -8(%rbp), %rdi callq _free LBB1_10: jmp LBB1_11 LBB1_11: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _display ## -- Begin function display .p2align 4, 0x90 _display: ## @display .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq _start(%rip), %rax movq %rax, -8(%rbp) cmpq $0, -8(%rbp) jne LBB2_2 ## %bb.1: leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf jmp LBB2_5 LBB2_2: jmp LBB2_3 LBB2_3: ## =>This Inner Loop Header: Depth=1 cmpq $0, -8(%rbp) je LBB2_5 ## %bb.4: ## in Loop: Header=BB2_3 Depth=1 movq -8(%rbp), %rax movl (%rax), %esi movq -8(%rbp), %rax movl 4(%rax), %edx leaq L_.str.5(%rip), %rdi movb $0, %al callq _printf movq -8(%rbp), %rax movq 8(%rax), %rax movq %rax, -8(%rbp) jmp LBB2_3 LBB2_5: 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.6(%rip), %rdi movb $0, %al callq _printf leaq L_.str.7(%rip), %rdi movb $0, %al callq _printf leaq L_.str.8(%rip), %rdi movb $0, %al callq _printf leaq L_.str.9(%rip), %rdi movb $0, %al callq _printf leaq L_.str.10(%rip), %rdi movb $0, %al callq _printf LBB3_1: ## =>This Inner Loop Header: Depth=1 leaq L_.str.11(%rip), %rdi xorl %eax, %eax ## kill: def $al killed $al killed $eax movb %al, -13(%rbp) ## 1-byte Spill callq _printf ## kill: def $ecx killed $eax movb -13(%rbp), %al ## 1-byte Reload leaq L_.str.1(%rip), %rdi leaq -8(%rbp), %rsi callq _scanf movl -8(%rbp), %eax movl %eax, -12(%rbp) ## 4-byte Spill testl %eax, %eax je LBB3_2 jmp LBB3_7 LBB3_7: ## in Loop: Header=BB3_1 Depth=1 movl -12(%rbp), %eax ## 4-byte Reload subl $1, %eax je LBB3_3 jmp LBB3_8 LBB3_8: ## in Loop: Header=BB3_1 Depth=1 movl -12(%rbp), %eax ## 4-byte Reload subl $2, %eax je LBB3_4 jmp LBB3_5 LBB3_2: xorl %edi, %edi callq _exit LBB3_3: ## in Loop: Header=BB3_1 Depth=1 callq _push callq _display jmp LBB3_6 LBB3_4: ## in Loop: Header=BB3_1 Depth=1 callq _pop callq _display jmp LBB3_6 LBB3_5: ## in Loop: Header=BB3_1 Depth=1 leaq L_.str.12(%rip), %rdi movb $0, %al callq _printf LBB3_6: ## in Loop: Header=BB3_1 Depth=1 jmp LBB3_1 .cfi_endproc ## -- End function .globl _start ## @start .zerofill __DATA,__common,_start,8,3 .globl _top ## @top .zerofill __DATA,__common,_top,8,3 .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Enter the data for the node\n" L_.str.1: ## @.str.1 .asciz "%d" L_.str.2: ## @.str.2 .asciz "1\n" L_.str.3: ## @.str.3 .asciz "Underflow\n" L_.str.4: ## @.str.4 .asciz "The stack is empty\n" L_.str.5: ## @.str.5 .asciz "Element:%d Occurance:%d\n" L_.str.6: ## @.str.6 .asciz "------------Stack with occurance---------------\n" L_.str.7: ## @.str.7 .asciz "0.Exit\n" L_.str.8: ## @.str.8 .asciz "1.Insert into Stack\n" L_.str.9: ## @.str.9 .asciz "2.Delete from stack\n" L_.str.10: ## @.str.10 .asciz "3.Display the stack\n" L_.str.11: ## @.str.11 .asciz "Enter your choice\n" L_.str.12: ## @.str.12 .asciz "Wrong Choice Please try again\n" .subsections_via_symbols
the_stack_data/153269393.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] str wzr, [sp, #16] mov x9, sp sub x8, x29, #8 str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _scanf b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-12] ldur w10, [x29, #-8] mov w9, #10 sdiv w11, w10, w9 mul w11, w11, w9 subs w10, w10, w11 add w8, w8, w10 stur w8, [x29, #-12] ldr w8, [sp, #16] add w8, w8, #1 str w8, [sp, #16] ldur w8, [x29, #-8] sdiv w8, w8, w9 stur w8, [x29, #-8] b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-8] subs w8, w8, #0 cset w8, gt tbnz w8, #0, LBB0_1 b LBB0_3 LBB0_3: ldur s0, [x29, #-12] scvtf s0, s0 ldr s1, [sp, #16] scvtf s1, s1 fdiv s0, s0, s1 str s0, [sp, #12] ldr s0, [sp, #12] fmov s1, #7.00000000 fcmp s0, s1 cset w8, le tbnz w8, #0, LBB0_5 b LBB0_4 LBB0_4: adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf b LBB0_6 LBB0_5: adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf b LBB0_6 LBB0_6: mov w0, #0 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d" l_.str.1: ; @.str.1 .asciz "\n heavy" l_.str.2: ; @.str.2 .asciz "\n light" .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 0x40e00000 ## float 7 .section __TEXT,__text,regular,pure_instructions .globl _main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl $0, -4(%rbp) movl $0, -12(%rbp) movl $0, -16(%rbp) leaq L_.str(%rip), %rdi leaq -8(%rbp), %rsi movb $0, %al callq _scanf LBB0_1: ## =>This Inner Loop Header: Depth=1 movl -12(%rbp), %eax movl %eax, -24(%rbp) ## 4-byte Spill movl -8(%rbp), %eax movl $10, %ecx cltd idivl %ecx movl -24(%rbp), %eax ## 4-byte Reload addl %edx, %eax movl %eax, -12(%rbp) movl -16(%rbp), %eax addl $1, %eax movl %eax, -16(%rbp) movl -8(%rbp), %eax movl $10, %ecx cltd idivl %ecx movl %eax, -8(%rbp) ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 cmpl $0, -8(%rbp) jg LBB0_1 ## %bb.3: cvtsi2ssl -12(%rbp), %xmm0 cvtsi2ssl -16(%rbp), %xmm1 divss %xmm1, %xmm0 movss %xmm0, -20(%rbp) movss -20(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero ucomiss %xmm1, %xmm0 jbe LBB0_5 ## %bb.4: leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf jmp LBB0_6 LBB0_5: leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf LBB0_6: xorl %eax, %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d" L_.str.1: ## @.str.1 .asciz "\n heavy" L_.str.2: ## @.str.2 .asciz "\n light" .subsections_via_symbols
the_stack_data/803174.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #0 str w8, [sp, #12] ; 4-byte Folded Spill stur wzr, [x29, #-4] mov w8, #14 stur w8, [x29, #-8] mov w8, #20 stur w8, [x29, #-12] mov w8, #30 str w8, [sp, #16] ldur w9, [x29, #-8] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldur w9, [x29, #-12] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf ldr 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 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 "x1 = %d\n" l_.str.1: ; @.str.1 .asciz "x2 = %d\n" l_.str.2: ; @.str.2 .asciz "x3 = %d\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) movl $14, -8(%rbp) movl $20, -12(%rbp) movl $30, -16(%rbp) movl -8(%rbp), %esi leaq L_.str(%rip), %rdi movb $0, %al callq _printf movl -12(%rbp), %esi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf movl -16(%rbp), %esi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "x1 = %d\n" L_.str.1: ## @.str.1 .asciz "x2 = %d\n" L_.str.2: ## @.str.2 .asciz "x3 = %d\n" .subsections_via_symbols
the_stack_data/111078896.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill .cfi_def_cfa_offset 16 mov x29, sp .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov w0, #0 ldp x29, x30, [sp], #16 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Fala s\303\251rio!" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq L_.str(%rip), %rdi movb $0, %al callq _printf xorl %eax, %eax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Fala s\303\251rio!" .subsections_via_symbols
the_stack_data/25137101.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/26213.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _force_static_fun ; -- Begin function force_static_fun .p2align 2 _force_static_fun: ; @force_static_fun .cfi_startproc ; %bb.0: adrp x8, _static_fun@PAGE ldr x0, [x8, _static_fun@PAGEOFF] ret .cfi_endproc ; -- End function .zerofill __DATA,__bss,_static_fun,8,3 ; @static_fun .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _force_static_fun ## -- Begin function force_static_fun .p2align 4, 0x90 _force_static_fun: ## @force_static_fun .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq _static_fun(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .zerofill __DATA,__bss,_static_fun,8,3 ## @static_fun .subsections_via_symbols
the_stack_data/460173.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _sum ; -- Begin function sum .p2align 2 _sum: ; @sum .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, #24] str x1, [sp, #16] str xzr, [sp, #8] str xzr, [sp] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp] ldr x9, [sp, #16] subs x8, x8, x9 cset w8, ge tbnz w8, #0, LBB0_4 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #24] ldr x9, [sp] ldr x9, [x8, x9, lsl #3] ldr x8, [sp, #8] add x8, x8, x9 str x8, [sp, #8] b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp] add x8, x8, #1 str x8, [sp] b LBB0_1 LBB0_4: ldr x0, [sp, #8] add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _sumR ; -- Begin function sumR .p2align 2 _sumR: ; @sumR .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #16] str x1, [sp, #8] ldr x8, [sp, #8] subs x8, x8, #0 cset w8, gt tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: stur xzr, [x29, #-8] b LBB1_3 LBB1_2: ldr x8, [sp, #16] ldr x9, [sp, #8] subs x9, x9, #1 ldr x8, [x8, x9, lsl #3] str x8, [sp] ; 8-byte Folded Spill ldr x0, [sp, #16] ldr x8, [sp, #8] subs x1, x8, #1 bl _sumR ldr x8, [sp] ; 8-byte Folded Reload add x8, x8, x0 stur x8, [x29, #-8] b LBB1_3 LBB1_3: ldur x0, [x29, #-8] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _sum ## -- Begin function sum .p2align 4, 0x90 _sum: ## @sum .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) movq $0, -24(%rbp) movq $0, -32(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movq -32(%rbp), %rax cmpq -16(%rbp), %rax jge LBB0_4 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movq -8(%rbp), %rax movq -32(%rbp), %rcx movq (%rax,%rcx,8), %rax addq -24(%rbp), %rax movq %rax, -24(%rbp) ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movq -32(%rbp), %rax addq $1, %rax movq %rax, -32(%rbp) jmp LBB0_1 LBB0_4: movq -24(%rbp), %rax popq %rbp retq .cfi_endproc ## -- End function .globl _sumR ## -- Begin function sumR .p2align 4, 0x90 _sumR: ## @sumR .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -16(%rbp) movq %rsi, -24(%rbp) cmpq $0, -24(%rbp) jg LBB1_2 ## %bb.1: movq $0, -8(%rbp) jmp LBB1_3 LBB1_2: movq -16(%rbp), %rax movq -24(%rbp), %rcx subq $1, %rcx movq (%rax,%rcx,8), %rax movq %rax, -32(%rbp) ## 8-byte Spill movq -16(%rbp), %rdi movq -24(%rbp), %rsi subq $1, %rsi callq _sumR movq %rax, %rcx movq -32(%rbp), %rax ## 8-byte Reload addq %rcx, %rax movq %rax, -8(%rbp) LBB1_3: movq -8(%rbp), %rax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/86074093.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] str wzr, [sp, #8] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #8] subs w8, w8, #10 cset w8, ge tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 bl _show_message ldr w8, [sp, #8] add w8, w8, #1 str w8, [sp, #8] b LBB0_1 LBB0_3: mov w0, #0 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _show_message ; -- Begin function show_message .p2align 2 _show_message: ; @show_message .cfi_startproc ; %bb.0: stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill .cfi_def_cfa_offset 16 mov x29, sp .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldp x29, x30, [sp], #16 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Hello from tcb\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) LBB0_1: ## =>This Inner Loop Header: Depth=1 cmpl $10, -8(%rbp) jge LBB0_3 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 callq _show_message movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) jmp LBB0_1 LBB0_3: xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _show_message ## -- Begin function show_message .p2align 4, 0x90 _show_message: ## @show_message .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq L_.str(%rip), %rdi movb $0, %al callq _printf popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Hello from tcb\n" .subsections_via_symbols
the_stack_data/175143912.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF mov w1, #0 bl _open stur w0, [x29, #-4] ldur w8, [x29, #-4] subs w8, w8, #0 cset w8, ge tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _perror b LBB0_2 LBB0_2: ldur w0, [x29, #-4] bl _close 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 "file1" l_.str.1: ; @.str.1 .asciz "open" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp leaq L_.str(%rip), %rdi xorl %esi, %esi movb $0, %al callq _open movl %eax, -4(%rbp) cmpl $0, -4(%rbp) jge LBB0_2 ## %bb.1: leaq L_.str.1(%rip), %rdi callq _perror LBB0_2: movl -4(%rbp), %edi callq _close addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "file1" L_.str.1: ## @.str.1 .asciz "open" .subsections_via_symbols
the_stack_data/67324757.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] str wzr, [sp, #20] adrp x8, l___const.main.set@PAGE add x8, x8, l___const.main.set@PAGEOFF ldr x9, [x8] str x9, [sp, #24] ldrh w8, [x8, #8] strh w8, [sp, #32] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf str wzr, [sp, #16] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #16] subs w8, w8, #10 cset w8, ge tbnz w8, #0, LBB0_4 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldrsw x9, [sp, #16] add x8, sp, #24 ldrsb w10, [x8, x9] 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, #16] add w8, w8, #1 str w8, [sp, #16] b LBB0_1 LBB0_4: adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf add x0, sp, #24 mov w1, #0 mov w2, #9 bl _mergeSort adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf str wzr, [sp, #16] b LBB0_5 LBB0_5: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #16] subs w8, w8, #10 cset w8, ge tbnz w8, #0, LBB0_8 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_5 Depth=1 ldrsw x9, [sp, #16] add x8, sp, #24 ldrsb w10, [x8, x9] 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_7 LBB0_7: ; in Loop: Header=BB0_5 Depth=1 ldr w8, [sp, #16] add w8, w8, #1 str w8, [sp, #16] b LBB0_5 LBB0_8: 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_10 b LBB0_9 LBB0_9: bl ___stack_chk_fail LBB0_10: mov w0, #0 ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _mergeSort ; -- Begin function mergeSort .p2align 2 _mergeSort: ; @mergeSort .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] stur w1, [x29, #-12] str w2, [sp, #16] ldur w8, [x29, #-12] ldr w9, [sp, #16] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: ldur w8, [x29, #-12] ldr w9, [sp, #16] add w8, w8, w9 mov w9, #2 sdiv w8, w8, w9 str w8, [sp, #12] ldur x0, [x29, #-8] ldur w1, [x29, #-12] ldr w2, [sp, #12] bl _mergeSort ldur x0, [x29, #-8] ldr w8, [sp, #12] add w1, w8, #1 ldr w2, [sp, #16] bl _mergeSort ldur x0, [x29, #-8] ldur w1, [x29, #-12] ldr w2, [sp, #12] ldr w3, [sp, #16] bl _merge b LBB1_2 LBB1_2: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _merge ; -- Begin function merge .p2align 2 _merge: ; @merge .cfi_startproc ; %bb.0: stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill .cfi_def_cfa_offset 16 mov x29, sp .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 sub sp, sp, #128 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] stur x0, [x29, #-16] stur w1, [x29, #-20] stur w2, [x29, #-24] stur w3, [x29, #-28] ldur w8, [x29, #-24] ldur w9, [x29, #-20] subs w8, w8, w9 add w8, w8, #1 stur w8, [x29, #-44] ldur w8, [x29, #-28] ldur w9, [x29, #-24] subs w8, w8, w9 stur w8, [x29, #-48] ldur w8, [x29, #-44] ; kill: def $x8 killed $w8 mov x9, sp stur x9, [x29, #-56] lsl x9, x8, #2 add x9, x9, #15 and x9, x9, #0xfffffffffffffff0 stur x9, [x29, #-104] ; 8-byte Folded Spill adrp x16, ___chkstk_darwin@GOTPAGE ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF] blr x16 ldur x10, [x29, #-104] ; 8-byte Folded Reload mov x9, sp subs x9, x9, x10 mov sp, x9 stur x9, [x29, #-96] ; 8-byte Folded Spill stur x8, [x29, #-64] ldur w8, [x29, #-48] ; kill: def $x8 killed $w8 lsl x9, x8, #2 add x9, x9, #15 and x9, x9, #0xfffffffffffffff0 stur x9, [x29, #-88] ; 8-byte Folded Spill adrp x16, ___chkstk_darwin@GOTPAGE ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF] blr x16 ldur x10, [x29, #-88] ; 8-byte Folded Reload mov x9, sp subs x9, x9, x10 mov sp, x9 stur x9, [x29, #-80] ; 8-byte Folded Spill stur x8, [x29, #-72] stur wzr, [x29, #-32] b LBB2_1 LBB2_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-32] ldur w9, [x29, #-44] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB2_4 b LBB2_2 LBB2_2: ; in Loop: Header=BB2_1 Depth=1 ldur x9, [x29, #-96] ; 8-byte Folded Reload ldur x8, [x29, #-16] ldur w10, [x29, #-20] ldur w11, [x29, #-32] add w10, w10, w11 ldrsb w8, [x8, w10, sxtw] ldursw x10, [x29, #-32] str w8, [x9, x10, lsl #2] b LBB2_3 LBB2_3: ; in Loop: Header=BB2_1 Depth=1 ldur w8, [x29, #-32] add w8, w8, #1 stur w8, [x29, #-32] b LBB2_1 LBB2_4: stur wzr, [x29, #-36] b LBB2_5 LBB2_5: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-36] ldur w9, [x29, #-48] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB2_8 b LBB2_6 LBB2_6: ; in Loop: Header=BB2_5 Depth=1 ldur x9, [x29, #-80] ; 8-byte Folded Reload ldur x8, [x29, #-16] ldur w10, [x29, #-24] ldur w11, [x29, #-36] add w10, w10, w11 add w10, w10, #1 ldrsb w8, [x8, w10, sxtw] ldursw x10, [x29, #-36] str w8, [x9, x10, lsl #2] b LBB2_7 LBB2_7: ; in Loop: Header=BB2_5 Depth=1 ldur w8, [x29, #-36] add w8, w8, #1 stur w8, [x29, #-36] b LBB2_5 LBB2_8: stur wzr, [x29, #-36] stur wzr, [x29, #-32] ldur w8, [x29, #-20] stur w8, [x29, #-40] b LBB2_9 LBB2_9: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-32] ldur w9, [x29, #-44] subs w8, w8, w9 cset w8, ge mov w9, #0 stur w9, [x29, #-108] ; 4-byte Folded Spill tbnz w8, #0, LBB2_11 b LBB2_10 LBB2_10: ; in Loop: Header=BB2_9 Depth=1 ldur w8, [x29, #-36] ldur w9, [x29, #-48] subs w8, w8, w9 cset w8, lt stur w8, [x29, #-108] ; 4-byte Folded Spill b LBB2_11 LBB2_11: ; in Loop: Header=BB2_9 Depth=1 ldur w8, [x29, #-108] ; 4-byte Folded Reload tbz w8, #0, LBB2_16 b LBB2_12 LBB2_12: ; in Loop: Header=BB2_9 Depth=1 ldur x9, [x29, #-80] ; 8-byte Folded Reload ldur x8, [x29, #-96] ; 8-byte Folded Reload ldursw x10, [x29, #-32] ldr w8, [x8, x10, lsl #2] ldursw x10, [x29, #-36] ldr w9, [x9, x10, lsl #2] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB2_14 b LBB2_13 LBB2_13: ; in Loop: Header=BB2_9 Depth=1 ldur x8, [x29, #-96] ; 8-byte Folded Reload ldursw x9, [x29, #-32] mov x10, x9 add w10, w10, #1 stur w10, [x29, #-32] ldr w8, [x8, x9, lsl #2] ldur x9, [x29, #-16] ldursw x10, [x29, #-40] mov x11, x10 add w11, w11, #1 stur w11, [x29, #-40] strb w8, [x9, x10] b LBB2_15 LBB2_14: ; in Loop: Header=BB2_9 Depth=1 ldur x8, [x29, #-80] ; 8-byte Folded Reload ldursw x9, [x29, #-36] mov x10, x9 add w10, w10, #1 stur w10, [x29, #-36] ldr w8, [x8, x9, lsl #2] ldur x9, [x29, #-16] ldursw x10, [x29, #-40] mov x11, x10 add w11, w11, #1 stur w11, [x29, #-40] strb w8, [x9, x10] b LBB2_15 LBB2_15: ; in Loop: Header=BB2_9 Depth=1 b LBB2_9 LBB2_16: b LBB2_17 LBB2_17: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-32] ldur w9, [x29, #-44] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB2_19 b LBB2_18 LBB2_18: ; in Loop: Header=BB2_17 Depth=1 ldur x8, [x29, #-96] ; 8-byte Folded Reload ldursw x9, [x29, #-32] mov x10, x9 add w10, w10, #1 stur w10, [x29, #-32] ldr w8, [x8, x9, lsl #2] ldur x9, [x29, #-16] ldursw x10, [x29, #-40] mov x11, x10 add w11, w11, #1 stur w11, [x29, #-40] strb w8, [x9, x10] b LBB2_17 LBB2_19: b LBB2_20 LBB2_20: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-36] ldur w9, [x29, #-48] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB2_22 b LBB2_21 LBB2_21: ; in Loop: Header=BB2_20 Depth=1 ldur x8, [x29, #-80] ; 8-byte Folded Reload ldursw x9, [x29, #-36] mov x10, x9 add w10, w10, #1 stur w10, [x29, #-36] ldr w8, [x8, x9, lsl #2] ldur x9, [x29, #-16] ldursw x10, [x29, #-40] mov x11, x10 add w11, w11, #1 stur w11, [x29, #-40] strb w8, [x9, x10] b LBB2_20 LBB2_22: ldur x8, [x29, #-56] stur x8, [x29, #-120] ; 8-byte Folded Spill ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB2_24 b LBB2_23 LBB2_23: bl ___stack_chk_fail LBB2_24: ldur x8, [x29, #-120] ; 8-byte Folded Reload mov sp, x8 mov sp, x29 ldp x29, x30, [sp], #16 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .section __TEXT,__const l___const.main.set: ; @__const.main.set .ascii "gachejibfd" .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Unsorted array of characters:\n" l_.str.1: ; @.str.1 .asciz "%c " l_.str.2: ; @.str.2 .asciz "\n" l_.str.3: ; @.str.3 .asciz "Sorted array of characters after Merge Sort:\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 movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -24(%rbp) movq l___const.main.set(%rip), %rax movq %rax, -18(%rbp) movw l___const.main.set+8(%rip), %ax movw %ax, -10(%rbp) leaq L_.str(%rip), %rdi movb $0, %al callq _printf movl $0, -28(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 cmpl $10, -28(%rbp) jge LBB0_4 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movslq -28(%rbp), %rax movsbl -18(%rbp,%rax), %esi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movl -28(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) jmp LBB0_1 LBB0_4: leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf leaq -18(%rbp), %rdi xorl %esi, %esi movl $9, %edx callq _mergeSort leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf movl $0, -28(%rbp) LBB0_5: ## =>This Inner Loop Header: Depth=1 cmpl $10, -28(%rbp) jge LBB0_8 ## %bb.6: ## in Loop: Header=BB0_5 Depth=1 movslq -28(%rbp), %rax movsbl -18(%rbp,%rax), %esi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf ## %bb.7: ## in Loop: Header=BB0_5 Depth=1 movl -28(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) jmp LBB0_5 LBB0_8: 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_10 ## %bb.9: xorl %eax, %eax addq $32, %rsp popq %rbp retq LBB0_10: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _mergeSort ## -- Begin function mergeSort .p2align 4, 0x90 _mergeSort: ## @mergeSort .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) movl %edx, -16(%rbp) movl -12(%rbp), %eax cmpl -16(%rbp), %eax jge LBB1_2 ## %bb.1: movl -12(%rbp), %eax addl -16(%rbp), %eax movl $2, %ecx cltd idivl %ecx movl %eax, -20(%rbp) movq -8(%rbp), %rdi movl -12(%rbp), %esi movl -20(%rbp), %edx callq _mergeSort movq -8(%rbp), %rdi movl -20(%rbp), %esi addl $1, %esi movl -16(%rbp), %edx callq _mergeSort movq -8(%rbp), %rdi movl -12(%rbp), %esi movl -20(%rbp), %edx movl -16(%rbp), %ecx callq _merge LBB1_2: addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _merge ## -- Begin function merge .p2align 4, 0x90 _merge: ## @merge .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $112, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movq %rdi, -16(%rbp) movl %esi, -20(%rbp) movl %edx, -24(%rbp) movl %ecx, -28(%rbp) movl -24(%rbp), %eax movl -20(%rbp), %ecx subl %ecx, %eax incl %eax movl %eax, -44(%rbp) movl -28(%rbp), %eax movl -24(%rbp), %ecx subl %ecx, %eax movl %eax, -48(%rbp) movl -44(%rbp), %eax ## kill: def $rax killed $eax movq %rax, -104(%rbp) ## 8-byte Spill movq %rsp, %rcx movq %rcx, -56(%rbp) shlq $2, %rax callq ____chkstk_darwin addq $15, %rax andq $-16, %rax subq %rax, %rsp movq -104(%rbp), %rax ## 8-byte Reload movq %rsp, %rcx movq %rcx, -96(%rbp) ## 8-byte Spill movq %rax, -64(%rbp) movl -48(%rbp), %eax ## kill: def $rax killed $eax movq %rax, -88(%rbp) ## 8-byte Spill shlq $2, %rax callq ____chkstk_darwin addq $15, %rax andq $-16, %rax subq %rax, %rsp movq -88(%rbp), %rax ## 8-byte Reload movq %rsp, %rcx movq %rcx, -80(%rbp) ## 8-byte Spill movq %rax, -72(%rbp) movl $0, -32(%rbp) LBB2_1: ## =>This Inner Loop Header: Depth=1 movl -32(%rbp), %eax cmpl -44(%rbp), %eax jge LBB2_4 ## %bb.2: ## in Loop: Header=BB2_1 Depth=1 movq -96(%rbp), %rax ## 8-byte Reload movq -16(%rbp), %rcx movl -20(%rbp), %edx addl -32(%rbp), %edx movslq %edx, %rdx movsbl (%rcx,%rdx), %edx movslq -32(%rbp), %rcx movl %edx, (%rax,%rcx,4) ## %bb.3: ## in Loop: Header=BB2_1 Depth=1 movl -32(%rbp), %eax addl $1, %eax movl %eax, -32(%rbp) jmp LBB2_1 LBB2_4: movl $0, -36(%rbp) LBB2_5: ## =>This Inner Loop Header: Depth=1 movl -36(%rbp), %eax cmpl -48(%rbp), %eax jge LBB2_8 ## %bb.6: ## in Loop: Header=BB2_5 Depth=1 movq -80(%rbp), %rax ## 8-byte Reload movq -16(%rbp), %rcx movl -24(%rbp), %edx addl -36(%rbp), %edx addl $1, %edx movslq %edx, %rdx movsbl (%rcx,%rdx), %edx movslq -36(%rbp), %rcx movl %edx, (%rax,%rcx,4) ## %bb.7: ## in Loop: Header=BB2_5 Depth=1 movl -36(%rbp), %eax addl $1, %eax movl %eax, -36(%rbp) jmp LBB2_5 LBB2_8: movl $0, -36(%rbp) movl $0, -32(%rbp) movl -20(%rbp), %eax movl %eax, -40(%rbp) LBB2_9: ## =>This Inner Loop Header: Depth=1 movl -32(%rbp), %ecx xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl -44(%rbp), %ecx movb %al, -105(%rbp) ## 1-byte Spill jge LBB2_11 ## %bb.10: ## in Loop: Header=BB2_9 Depth=1 movl -36(%rbp), %eax cmpl -48(%rbp), %eax setl %al movb %al, -105(%rbp) ## 1-byte Spill LBB2_11: ## in Loop: Header=BB2_9 Depth=1 movb -105(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB2_12 jmp LBB2_16 LBB2_12: ## in Loop: Header=BB2_9 Depth=1 movq -80(%rbp), %rcx ## 8-byte Reload movq -96(%rbp), %rax ## 8-byte Reload movslq -32(%rbp), %rdx movl (%rax,%rdx,4), %eax movslq -36(%rbp), %rdx cmpl (%rcx,%rdx,4), %eax jg LBB2_14 ## %bb.13: ## in Loop: Header=BB2_9 Depth=1 movq -96(%rbp), %rax ## 8-byte Reload movl -32(%rbp), %ecx movl %ecx, %edx addl $1, %edx movl %edx, -32(%rbp) movslq %ecx, %rcx movl (%rax,%rcx,4), %eax movb %al, %dl movq -16(%rbp), %rax movl -40(%rbp), %ecx movl %ecx, %esi addl $1, %esi movl %esi, -40(%rbp) movslq %ecx, %rcx movb %dl, (%rax,%rcx) jmp LBB2_15 LBB2_14: ## in Loop: Header=BB2_9 Depth=1 movq -80(%rbp), %rax ## 8-byte Reload movl -36(%rbp), %ecx movl %ecx, %edx addl $1, %edx movl %edx, -36(%rbp) movslq %ecx, %rcx movl (%rax,%rcx,4), %eax movb %al, %dl movq -16(%rbp), %rax movl -40(%rbp), %ecx movl %ecx, %esi addl $1, %esi movl %esi, -40(%rbp) movslq %ecx, %rcx movb %dl, (%rax,%rcx) LBB2_15: ## in Loop: Header=BB2_9 Depth=1 jmp LBB2_9 LBB2_16: jmp LBB2_17 LBB2_17: ## =>This Inner Loop Header: Depth=1 movl -32(%rbp), %eax cmpl -44(%rbp), %eax jge LBB2_19 ## %bb.18: ## in Loop: Header=BB2_17 Depth=1 movq -96(%rbp), %rax ## 8-byte Reload movl -32(%rbp), %ecx movl %ecx, %edx addl $1, %edx movl %edx, -32(%rbp) movslq %ecx, %rcx movl (%rax,%rcx,4), %eax movb %al, %dl movq -16(%rbp), %rax movl -40(%rbp), %ecx movl %ecx, %esi addl $1, %esi movl %esi, -40(%rbp) movslq %ecx, %rcx movb %dl, (%rax,%rcx) jmp LBB2_17 LBB2_19: jmp LBB2_20 LBB2_20: ## =>This Inner Loop Header: Depth=1 movl -36(%rbp), %eax cmpl -48(%rbp), %eax jge LBB2_22 ## %bb.21: ## in Loop: Header=BB2_20 Depth=1 movq -80(%rbp), %rax ## 8-byte Reload movl -36(%rbp), %ecx movl %ecx, %edx addl $1, %edx movl %edx, -36(%rbp) movslq %ecx, %rcx movl (%rax,%rcx,4), %eax movb %al, %dl movq -16(%rbp), %rax movl -40(%rbp), %ecx movl %ecx, %esi addl $1, %esi movl %esi, -40(%rbp) movslq %ecx, %rcx movb %dl, (%rax,%rcx) jmp LBB2_20 LBB2_22: movq -56(%rbp), %rax movq %rax, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB2_24 ## %bb.23: movq %rbp, %rsp popq %rbp retq LBB2_24: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__const l___const.main.set: ## @__const.main.set .ascii "gachejibfd" .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Unsorted array of characters:\n" L_.str.1: ## @.str.1 .asciz "%c " L_.str.2: ## @.str.2 .asciz "\n" L_.str.3: ## @.str.3 .asciz "Sorted array of characters after Merge Sort:\n" .subsections_via_symbols
the_stack_data/165769369.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] mov w0, #60 bl _alarm b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 b LBB0_1 .cfi_endproc ; -- End function .comm _v,4,2 ; @v .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 $60, %edi callq _alarm LBB0_1: ## =>This Inner Loop Header: Depth=1 jmp LBB0_1 .cfi_endproc ## -- End function .comm _v,4,2 ## @v .subsections_via_symbols
the_stack_data/959392.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _f ; -- Begin function f .p2align 2 _f: ; @f .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] ldr w0, [sp, #12] add sp, sp, #16 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _f ## -- Begin function f .p2align 4, 0x90 _f: ## @f .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl -4(%rbp), %eax addl $1, %eax movl %eax, -4(%rbp) movl -4(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/524151.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #80 .cfi_def_cfa_offset 80 stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp, #64 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #0 str w8, [sp, #32] ; 4-byte Folded Spill stur wzr, [x29, #-4] mov w8, #1049 movk w8, #16286, lsl #16 fmov s0, w8 stur s0, [x29, #-8] ldur w9, [x29, #-8] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF str x0, [sp, #24] ; 8-byte Folded Spill bl _printf sub x0, x29, #24 str x0, [sp, #16] ; 8-byte Folded Spill stur wzr, [x29, #-24] mov x8, #42 stur x8, [x29, #-16] bl _polymorphic ldr x0, [sp, #16] ; 8-byte Folded Reload mov w8, #2 stur w8, [x29, #-24] mov w8, #72 sturb w8, [x29, #-16] mov w8, #69 sturb w8, [x29, #-15] mov w8, #76 sturb w8, [x29, #-14] sturb w8, [x29, #-13] mov w8, #79 sturb w8, [x29, #-12] bl _polymorphic ldr x0, [sp, #24] ; 8-byte Folded Reload mov w8, #48879 movk w8, #57005, lsl #16 stur w8, [x29, #-28] ldur w8, [x29, #-28] and w8, w8, #0xff00ffff mov w9, #13369344 orr w8, w8, w9 stur w8, [x29, #-28] ldur w9, [x29, #-28] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] 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 .globl _polymorphic ; -- Begin function polymorphic .p2align 2 _polymorphic: ; @polymorphic .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] ldur x8, [x29, #-8] ldr w8, [x8] stur w8, [x29, #-12] ; 4-byte Folded Spill subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB1_3 b LBB1_1 LBB1_1: ldur w8, [x29, #-12] ; 4-byte Folded Reload subs w8, w8, #1 cset w8, eq tbnz w8, #0, LBB1_4 b LBB1_2 LBB1_2: ldur w8, [x29, #-12] ; 4-byte Folded Reload subs w8, w8, #2 cset w8, eq tbnz w8, #0, LBB1_5 b LBB1_6 LBB1_3: ldur x8, [x29, #-8] ldr x8, [x8, #8] mov x9, sp str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf b LBB1_6 LBB1_4: ldur x8, [x29, #-8] ldr d0, [x8, #8] mov x8, sp str d0, [x8] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf b LBB1_6 LBB1_5: adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _puts ldur x8, [x29, #-8] add x0, x8, #8 bl _puts b LBB1_6 LBB1_6: 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 "0x%X\n" l_.str.1: ; @.str.1 .asciz "long! %ld\n" l_.str.2: ; @.str.2 .asciz "double! %lf\n" l_.str.3: ; @.str.3 .asciz "char!" .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 0x3f9e0419 ## float 1.23450005 .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) movss LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, -8(%rbp) movl -8(%rbp), %esi leaq L_.str(%rip), %rdi movb $0, %al callq _printf movl $0, -24(%rbp) movq $42, -16(%rbp) leaq -24(%rbp), %rdi callq _polymorphic movl $2, -24(%rbp) movb $72, -16(%rbp) movb $69, -15(%rbp) movb $76, -14(%rbp) movb $76, -13(%rbp) movb $79, -12(%rbp) leaq -24(%rbp), %rdi callq _polymorphic movl $-559038737, -32(%rbp) ## imm = 0xDEADBEEF movl -32(%rbp), %eax andl $-16711681, %eax ## imm = 0xFF00FFFF orl $13369344, %eax ## imm = 0xCC0000 movl %eax, -32(%rbp) movl -32(%rbp), %esi leaq L_.str(%rip), %rdi movb $0, %al callq _printf xorl %eax, %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _polymorphic ## -- Begin function polymorphic .p2align 4, 0x90 _polymorphic: ## @polymorphic .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) movq -8(%rbp), %rax movl (%rax), %eax movl %eax, -12(%rbp) ## 4-byte Spill testl %eax, %eax je LBB1_1 jmp LBB1_5 LBB1_5: movl -12(%rbp), %eax ## 4-byte Reload subl $1, %eax je LBB1_2 jmp LBB1_6 LBB1_6: movl -12(%rbp), %eax ## 4-byte Reload subl $2, %eax je LBB1_3 jmp LBB1_4 LBB1_1: movq -8(%rbp), %rax movq 8(%rax), %rsi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf jmp LBB1_4 LBB1_2: movq -8(%rbp), %rax movsd 8(%rax), %xmm0 ## xmm0 = mem[0],zero leaq L_.str.2(%rip), %rdi movb $1, %al callq _printf jmp LBB1_4 LBB1_3: leaq L_.str.3(%rip), %rdi callq _puts movq -8(%rbp), %rdi addq $8, %rdi callq _puts LBB1_4: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "0x%X\n" L_.str.1: ## @.str.1 .asciz "long! %ld\n" L_.str.2: ## @.str.2 .asciz "double! %lf\n" L_.str.3: ## @.str.3 .asciz "char!" .subsections_via_symbols
the_stack_data/869665.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, #-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 str x0, [sp, #16] ; 8-byte Folded Spill bl _scanf adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf ldr x0, [sp, #16] ; 8-byte Folded Reload mov x9, sp sub x8, x29, #12 str x8, [x9] bl _scanf ldur w0, [x29, #-8] ldur w1, [x29, #-12] bl _minimum mov x9, sp ; implicit-def: $x8 mov x8, x0 str x8, [x9] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF str x0, [sp, #24] ; 8-byte Folded Spill bl _printf ldur w0, [x29, #-8] ldur w1, [x29, #-12] bl _maximum mov x10, x0 ldr x0, [sp, #24] ; 8-byte Folded Reload mov x9, sp ; implicit-def: $x8 mov x8, x10 str x8, [x9] bl _printf ldur w0, [x29, #-8] ldur w1, [x29, #-12] bl _multiply mov x10, x0 ldr x0, [sp, #24] ; 8-byte Folded Reload mov x9, sp ; implicit-def: $x8 mov x8, x10 str x8, [x9] bl _printf ldur w0, [x29, #-16] ; 4-byte Folded Reload ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _minimum ; -- Begin function minimum .p2align 2 _minimum: ; @minimum .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #8] str w1, [sp, #4] ldr w8, [sp, #8] ldr w9, [sp, #4] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: ldr w8, [sp, #8] str w8, [sp, #12] b LBB1_3 LBB1_2: ldr w8, [sp, #4] str w8, [sp, #12] b LBB1_3 LBB1_3: ldr w0, [sp, #12] add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _maximum ; -- Begin function maximum .p2align 2 _maximum: ; @maximum .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #8] str w1, [sp, #4] ldr w8, [sp, #8] ldr w9, [sp, #4] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB2_2 b LBB2_1 LBB2_1: ldr w8, [sp, #8] str w8, [sp, #12] b LBB2_3 LBB2_2: ldr w8, [sp, #4] str w8, [sp, #12] b LBB2_3 LBB2_3: ldr w0, [sp, #12] add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _multiply ; -- Begin function multiply .p2align 2 _multiply: ; @multiply .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #12] str w1, [sp, #8] ldr w8, [sp, #12] ldr w9, [sp, #8] mul w8, w8, w9 str w8, [sp, #4] ldr w0, [sp, #4] add sp, sp, #16 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Enter a value for no 1 : " l_.str.1: ; @.str.1 .asciz "%d" l_.str.2: ; @.str.2 .asciz "Enter a value for no 2 : " l_.str.3: ; @.str.3 .asciz "%d " .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) leaq L_.str(%rip), %rdi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi leaq -8(%rbp), %rsi movb $0, %al callq _scanf leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi leaq -12(%rbp), %rsi movb $0, %al callq _scanf movl -8(%rbp), %edi movl -12(%rbp), %esi callq _minimum movl %eax, %esi leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf movl -8(%rbp), %edi movl -12(%rbp), %esi callq _maximum movl %eax, %esi leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf movl -8(%rbp), %edi movl -12(%rbp), %esi callq _multiply movl %eax, %esi leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _minimum ## -- Begin function minimum .p2align 4, 0x90 _minimum: ## @minimum .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, -8(%rbp) movl %esi, -12(%rbp) movl -8(%rbp), %eax cmpl -12(%rbp), %eax jge LBB1_2 ## %bb.1: movl -8(%rbp), %eax movl %eax, -4(%rbp) jmp LBB1_3 LBB1_2: movl -12(%rbp), %eax movl %eax, -4(%rbp) LBB1_3: movl -4(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .globl _maximum ## -- Begin function maximum .p2align 4, 0x90 _maximum: ## @maximum .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, -8(%rbp) movl %esi, -12(%rbp) movl -8(%rbp), %eax cmpl -12(%rbp), %eax jle LBB2_2 ## %bb.1: movl -8(%rbp), %eax movl %eax, -4(%rbp) jmp LBB2_3 LBB2_2: movl -12(%rbp), %eax movl %eax, -4(%rbp) LBB2_3: movl -4(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .globl _multiply ## -- Begin function multiply .p2align 4, 0x90 _multiply: ## @multiply .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, -4(%rbp) movl %esi, -8(%rbp) movl -4(%rbp), %eax imull -8(%rbp), %eax movl %eax, -12(%rbp) movl -12(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Enter a value for no 1 : " L_.str.1: ## @.str.1 .asciz "%d" L_.str.2: ## @.str.2 .asciz "Enter a value for no 2 : " L_.str.3: ## @.str.3 .asciz "%d " .subsections_via_symbols
the_stack_data/947156.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _ft_strclr ; -- Begin function ft_strclr .p2align 2 _ft_strclr: ; @ft_strclr .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] str wzr, [sp, #4] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #8] ldrsw x9, [sp, #4] ldrsb w8, [x8, x9] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #8] ldrsw x9, [sp, #4] add x8, x8, x9 strb wzr, [x8] ldr w8, [sp, #4] add w8, w8, #1 str w8, [sp, #4] b LBB0_1 LBB0_3: 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 _ft_strclr ## -- Begin function ft_strclr .p2align 4, 0x90 _ft_strclr: ## @ft_strclr .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) movl $0, -12(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movq -8(%rbp), %rax movslq -12(%rbp), %rcx movsbl (%rax,%rcx), %eax cmpl $0, %eax je LBB0_3 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movq -8(%rbp), %rax movslq -12(%rbp), %rcx movb $0, (%rax,%rcx) movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB0_1 LBB0_3: popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/1044819.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] mov x9, sp sub x8, x29, #12 str x8, [x9] sub x8, x29, #16 str x8, [x9, #8] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _scanf ldur w8, [x29, #-12] ldur w9, [x29, #-16] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: ldur w8, [x29, #-12] stur w8, [x29, #-20] ldur w8, [x29, #-16] stur w8, [x29, #-12] ldur w8, [x29, #-20] stur w8, [x29, #-16] b LBB0_2 LBB0_2: ldur w8, [x29, #-12] stur w8, [x29, #-8] b LBB0_3 LBB0_3: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-8] ldur w9, [x29, #-16] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_8 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_3 Depth=1 ldur w8, [x29, #-8] mov w10, #2 sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_3 Depth=1 ldur w9, [x29, #-8] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf b LBB0_6 LBB0_6: ; in Loop: Header=BB0_3 Depth=1 b LBB0_7 LBB0_7: ; in Loop: Header=BB0_3 Depth=1 ldur w8, [x29, #-8] add w8, w8, #1 stur w8, [x29, #-8] b LBB0_3 LBB0_8: mov w0, #0 ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d\n%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 $32, %rsp movl $0, -4(%rbp) leaq L_.str(%rip), %rdi leaq -12(%rbp), %rsi leaq -16(%rbp), %rdx movb $0, %al callq _scanf movl -12(%rbp), %eax cmpl -16(%rbp), %eax jle LBB0_2 ## %bb.1: movl -12(%rbp), %eax movl %eax, -20(%rbp) movl -16(%rbp), %eax movl %eax, -12(%rbp) movl -20(%rbp), %eax movl %eax, -16(%rbp) LBB0_2: movl -12(%rbp), %eax movl %eax, -8(%rbp) LBB0_3: ## =>This Inner Loop Header: Depth=1 movl -8(%rbp), %eax cmpl -16(%rbp), %eax jg LBB0_8 ## %bb.4: ## in Loop: Header=BB0_3 Depth=1 movl -8(%rbp), %eax movl $2, %ecx cltd idivl %ecx cmpl $0, %edx je LBB0_6 ## %bb.5: ## in Loop: Header=BB0_3 Depth=1 movl -8(%rbp), %esi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf LBB0_6: ## in Loop: Header=BB0_3 Depth=1 jmp LBB0_7 LBB0_7: ## in Loop: Header=BB0_3 Depth=1 movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) jmp LBB0_3 LBB0_8: xorl %eax, %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d\n%d" L_.str.1: ## @.str.1 .asciz "%d\n" .subsections_via_symbols
the_stack_data/74308.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _wcstol ; -- Begin function wcstol .p2align 2 _wcstol: ; @wcstol .cfi_startproc ; %bb.0: sub sp, sp, #80 .cfi_def_cfa_offset 80 stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp, #64 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-16] stur x1, [x29, #-24] stur w2, [x29, #-28] ldur x1, [x29, #-16] mov x0, #0 mov x2, #0 bl _wcstombs str x0, [sp, #24] ldr x8, [sp, #24] adds x8, x8, #1 cset w8, ne tbnz w8, #0, LBB0_4 b LBB0_1 LBB0_1: ldur x8, [x29, #-24] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: ldur x8, [x29, #-16] ldur x9, [x29, #-24] str x8, [x9] b LBB0_3 LBB0_3: stur xzr, [x29, #-8] b LBB0_11 LBB0_4: ldr x8, [sp, #24] add x0, x8, #1 bl _malloc str x0, [sp, #16] ldr x8, [sp, #16] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB0_8 b LBB0_5 LBB0_5: ldur x8, [x29, #-24] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB0_7 b LBB0_6 LBB0_6: ldur x8, [x29, #-16] ldur x9, [x29, #-24] str x8, [x9] b LBB0_7 LBB0_7: stur xzr, [x29, #-8] b LBB0_11 LBB0_8: ldr x0, [sp, #16] ldur x1, [x29, #-16] ldr x2, [sp, #24] bl _wcstombs ldr x0, [sp, #16] ldur w2, [x29, #-28] add x1, sp, #8 bl _strtol str x0, [sp] ldur x8, [x29, #-24] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB0_10 b LBB0_9 LBB0_9: ldur x8, [x29, #-16] ldr x9, [sp, #8] ldr x10, [sp, #16] subs x9, x9, x10 add x8, x8, x9, lsl #2 ldur x9, [x29, #-24] str x8, [x9] b LBB0_10 LBB0_10: ldr x0, [sp, #16] bl _free ldr x8, [sp] stur x8, [x29, #-8] b LBB0_11 LBB0_11: ldur x0, [x29, #-8] ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _wcstol ## -- Begin function wcstol .p2align 4, 0x90 _wcstol: ## @wcstol .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $64, %rsp movq %rdi, -16(%rbp) movq %rsi, -24(%rbp) movl %edx, -28(%rbp) movq -16(%rbp), %rsi xorl %eax, %eax movl %eax, %edx movq %rdx, %rdi callq _wcstombs movq %rax, -40(%rbp) cmpq $-1, -40(%rbp) jne LBB0_4 ## %bb.1: cmpq $0, -24(%rbp) je LBB0_3 ## %bb.2: movq -16(%rbp), %rcx movq -24(%rbp), %rax movq %rcx, (%rax) LBB0_3: movq $0, -8(%rbp) jmp LBB0_11 LBB0_4: movq -40(%rbp), %rdi addq $1, %rdi callq _malloc movq %rax, -48(%rbp) cmpq $0, -48(%rbp) jne LBB0_8 ## %bb.5: cmpq $0, -24(%rbp) je LBB0_7 ## %bb.6: movq -16(%rbp), %rcx movq -24(%rbp), %rax movq %rcx, (%rax) LBB0_7: movq $0, -8(%rbp) jmp LBB0_11 LBB0_8: movq -48(%rbp), %rdi movq -16(%rbp), %rsi movq -40(%rbp), %rdx callq _wcstombs movq -48(%rbp), %rdi movl -28(%rbp), %edx leaq -56(%rbp), %rsi callq _strtol movq %rax, -64(%rbp) cmpq $0, -24(%rbp) je LBB0_10 ## %bb.9: movq -16(%rbp), %rcx movq -56(%rbp), %rax movq -48(%rbp), %rdx subq %rdx, %rax shlq $2, %rax addq %rax, %rcx movq -24(%rbp), %rax movq %rcx, (%rax) LBB0_10: movq -48(%rbp), %rdi callq _free movq -64(%rbp), %rax movq %rax, -8(%rbp) LBB0_11: movq -8(%rbp), %rax addq $64, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/161080184.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl ___VERIFIER_assert ; -- Begin function __VERIFIER_assert .p2align 2 ___VERIFIER_assert: ; @__VERIFIER_assert .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur w0, [x29, #-4] ldur w8, [x29, #-4] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_3 b LBB0_1 LBB0_1: b LBB0_2 LBB0_2: bl ___VERIFIER_error LBB0_3: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] bl ___VERIFIER_nondet_uint stur w0, [x29, #-8] ldur w8, [x29, #-8] stur w8, [x29, #-12] str wzr, [sp, #16] b LBB1_1 LBB1_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-12] subs w8, w8, #0 cset w8, ls tbnz w8, #0, LBB1_3 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 ldur w8, [x29, #-12] subs w8, w8, #1 stur w8, [x29, #-12] ldr w8, [sp, #16] add w8, w8, #1 str w8, [sp, #16] b LBB1_1 LBB1_3: ldr w8, [sp, #16] str w8, [sp, #12] b LBB1_4 LBB1_4: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #12] subs w8, w8, #0 cset w8, ls tbnz w8, #0, LBB1_6 b LBB1_5 LBB1_5: ; in Loop: Header=BB1_4 Depth=1 ldur w8, [x29, #-12] add w8, w8, #1 stur w8, [x29, #-12] ldr w8, [sp, #12] subs w8, w8, #1 str w8, [sp, #12] b LBB1_4 LBB1_6: b LBB1_7 LBB1_7: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #16] subs w8, w8, #0 cset w8, ls tbnz w8, #0, LBB1_9 b LBB1_8 LBB1_8: ; in Loop: Header=BB1_7 Depth=1 ldr w8, [sp, #16] subs w8, w8, #1 str w8, [sp, #16] ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB1_7 LBB1_9: ldr w8, [sp, #12] ldur w9, [x29, #-8] subs w8, w8, w9 cset w8, eq and w0, w8, #0x1 bl ___VERIFIER_assert mov w0, #0 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 ___VERIFIER_assert ## -- Begin function __VERIFIER_assert .p2align 4, 0x90 ___VERIFIER_assert: ## @__VERIFIER_assert .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 $0, -4(%rbp) jne LBB0_3 ## %bb.1: jmp LBB0_2 LBB0_2: xorl %eax, %eax ## kill: def $al killed $al killed $eax callq ___VERIFIER_error LBB0_3: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl $0, -4(%rbp) callq ___VERIFIER_nondet_uint movl %eax, -8(%rbp) movl -8(%rbp), %eax movl %eax, -12(%rbp) movl $0, -16(%rbp) LBB1_1: ## =>This Inner Loop Header: Depth=1 cmpl $0, -12(%rbp) jbe LBB1_3 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 movl -12(%rbp), %eax addl $-1, %eax movl %eax, -12(%rbp) movl -16(%rbp), %eax addl $1, %eax movl %eax, -16(%rbp) jmp LBB1_1 LBB1_3: movl -16(%rbp), %eax movl %eax, -20(%rbp) LBB1_4: ## =>This Inner Loop Header: Depth=1 cmpl $0, -20(%rbp) jbe LBB1_6 ## %bb.5: ## in Loop: Header=BB1_4 Depth=1 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) movl -20(%rbp), %eax addl $-1, %eax movl %eax, -20(%rbp) jmp LBB1_4 LBB1_6: jmp LBB1_7 LBB1_7: ## =>This Inner Loop Header: Depth=1 cmpl $0, -16(%rbp) jbe LBB1_9 ## %bb.8: ## in Loop: Header=BB1_7 Depth=1 movl -16(%rbp), %eax addl $-1, %eax movl %eax, -16(%rbp) movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB1_7 LBB1_9: movl -20(%rbp), %eax cmpl -8(%rbp), %eax sete %al andb $1, %al movzbl %al, %edi callq ___VERIFIER_assert xorl %eax, %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/132835.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] mov w1, #0 str w1, [sp, #28] ; 4-byte Folded Spill str wzr, [sp, #44] add x0, sp, #48 str x0, [sp, #16] ; 8-byte Folded Spill mov x2, #40 str x2, [sp, #32] ; 8-byte Folded Spill bl _memset ldr x0, [sp, #16] ; 8-byte Folded Reload ldr w1, [sp, #28] ; 4-byte Folded Reload ldr x2, [sp, #32] ; 8-byte Folded Reload mov w8, #-1 str w8, [sp, #48] bl _memset str wzr, [sp, #40] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #40] subs w8, w8, #10 cset w8, ge tbnz w8, #0, LBB0_6 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldrsw x9, [sp, #40] add x8, sp, #48 ldr w8, [x8, x9, lsl #2] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: mov w8, #1 str w8, [sp, #44] b LBB0_7 LBB0_4: ; in Loop: Header=BB0_1 Depth=1 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #40] add w8, w8, #1 str w8, [sp, #40] b LBB0_1 LBB0_6: str wzr, [sp, #44] b LBB0_7 LBB0_7: ldr w8, [sp, #44] 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_9 b LBB0_8 LBB0_8: bl ___stack_chk_fail LBB0_9: ldr w0, [sp, #12] ; 4-byte Folded Reload 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 _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $64, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -52(%rbp) leaq -48(%rbp), %rdi xorl %esi, %esi movl $40, %edx callq _memset movl $-1, -48(%rbp) leaq -48(%rbp), %rdi xorl %esi, %esi movl $40, %edx callq _memset movl $0, -56(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 cmpl $10, -56(%rbp) jge LBB0_6 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movslq -56(%rbp), %rax cmpl $0, -48(%rbp,%rax,4) je LBB0_4 ## %bb.3: movl $1, -52(%rbp) jmp LBB0_7 LBB0_4: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_5 LBB0_5: ## in Loop: Header=BB0_1 Depth=1 movl -56(%rbp), %eax addl $1, %eax movl %eax, -56(%rbp) jmp LBB0_1 LBB0_6: movl $0, -52(%rbp) LBB0_7: movl -52(%rbp), %eax movl %eax, -60(%rbp) ## 4-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_9 ## %bb.8: movl -60(%rbp), %eax ## 4-byte Reload addq $64, %rsp popq %rbp retq LBB0_9: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/889323.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] b LBB0_1 LBB0_1: b LBB0_2 LBB0_2: b LBB0_3 LBB0_3: ; =>This Inner Loop Header: Depth=1 adrp x8, _x@PAGE ldr w8, [x8, _x@PAGEOFF] subs w8, w8, #5 cset w8, ne tbnz w8, #0, LBB0_5 b LBB0_4 LBB0_4: b LBB0_6 LBB0_5: ; in Loop: Header=BB0_3 Depth=1 adrp x9, _x@PAGE ldr w8, [x9, _x@PAGEOFF] add w8, w8, #1 str w8, [x9, _x@PAGEOFF] b LBB0_3 LBB0_6: b LBB0_7 LBB0_7: ; =>This Inner Loop Header: Depth=1 adrp x8, _x@PAGE ldr w8, [x8, _x@PAGEOFF] subs w8, w8, #10 cset w8, ne tbnz w8, #0, LBB0_9 b LBB0_8 LBB0_8: b LBB0_10 LBB0_9: ; in Loop: Header=BB0_7 Depth=1 adrp x9, _x@PAGE ldr w8, [x9, _x@PAGEOFF] add w8, w8, #1 str w8, [x9, _x@PAGEOFF] b LBB0_7 LBB0_10: b LBB0_11 LBB0_11: ; =>This Inner Loop Header: Depth=1 adrp x8, _x@PAGE ldr w8, [x8, _x@PAGEOFF] subs w8, w8, #15 cset w8, ne tbnz w8, #0, LBB0_13 b LBB0_12 LBB0_12: b LBB0_15 LBB0_13: ; in Loop: Header=BB0_11 Depth=1 adrp x9, _x@PAGE ldr w8, [x9, _x@PAGEOFF] add w8, w8, #1 str w8, [x9, _x@PAGEOFF] b LBB0_14 LBB0_14: ; in Loop: Header=BB0_11 Depth=1 mov w8, #1 tbnz w8, #0, LBB0_11 b LBB0_15 LBB0_15: adrp x8, _x@PAGE ldr w8, [x8, _x@PAGEOFF] subs w0, w8, #15 add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _x ; @x .zerofill __DATA,__common,_x,4,2 .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl $0, -4(%rbp) ## %bb.1: jmp LBB0_2 LBB0_2: jmp LBB0_3 LBB0_3: ## =>This Inner Loop Header: Depth=1 cmpl $5, _x(%rip) jne LBB0_5 ## %bb.4: jmp LBB0_6 LBB0_5: ## in Loop: Header=BB0_3 Depth=1 movl _x(%rip), %eax addl $1, %eax movl %eax, _x(%rip) jmp LBB0_3 LBB0_6: jmp LBB0_7 LBB0_7: ## =>This Inner Loop Header: Depth=1 cmpl $10, _x(%rip) jne LBB0_9 ## %bb.8: jmp LBB0_10 LBB0_9: ## in Loop: Header=BB0_7 Depth=1 movl _x(%rip), %eax addl $1, %eax movl %eax, _x(%rip) jmp LBB0_7 LBB0_10: jmp LBB0_11 LBB0_11: ## =>This Inner Loop Header: Depth=1 cmpl $15, _x(%rip) jne LBB0_13 ## %bb.12: jmp LBB0_15 LBB0_13: ## in Loop: Header=BB0_11 Depth=1 movl _x(%rip), %eax addl $1, %eax movl %eax, _x(%rip) ## %bb.14: ## in Loop: Header=BB0_11 Depth=1 movb $1, %al testb $1, %al jne LBB0_11 jmp LBB0_15 LBB0_15: movl _x(%rip), %eax subl $15, %eax popq %rbp retq .cfi_endproc ## -- End function .globl _x ## @x .zerofill __DATA,__common,_x,4,2 .subsections_via_symbols
the_stack_data/218894294.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #80 .cfi_def_cfa_offset 80 stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp, #64 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] str wzr, [sp, #32] str wzr, [sp, #20] str wzr, [sp, #16] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf sub x0, x29, #28 bl _gets str wzr, [sp, #28] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldrsw x9, [sp, #28] sub x8, x29, #28 ldrsb w8, [x8, x9] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_11 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldrsw x9, [sp, #28] sub x8, x29, #28 ldrsb w8, [x8, x9] subs w8, w8, #97 cset w8, eq tbnz w8, #0, LBB0_7 b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldrsw x9, [sp, #28] sub x8, x29, #28 ldrsb w8, [x8, x9] subs w8, w8, #101 cset w8, eq tbnz w8, #0, LBB0_7 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_1 Depth=1 ldrsw x9, [sp, #28] sub x8, x29, #28 ldrsb w8, [x8, x9] subs w8, w8, #105 cset w8, eq tbnz w8, #0, LBB0_7 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_1 Depth=1 ldrsw x9, [sp, #28] sub x8, x29, #28 ldrsb w8, [x8, x9] subs w8, w8, #111 cset w8, eq tbnz w8, #0, LBB0_7 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_1 Depth=1 ldrsw x9, [sp, #28] sub x8, x29, #28 ldrsb w8, [x8, x9] subs w8, w8, #117 cset w8, ne tbnz w8, #0, LBB0_8 b LBB0_7 LBB0_7: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #20] add w8, w8, #1 str w8, [sp, #20] b LBB0_9 LBB0_8: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #16] add w8, w8, #1 str w8, [sp, #16] b LBB0_9 LBB0_9: ; in Loop: Header=BB0_1 Depth=1 b LBB0_10 LBB0_10: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #28] add w8, w8, #1 str w8, [sp, #28] b LBB0_1 LBB0_11: ldr w9, [sp, #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 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_13 b LBB0_12 LBB0_12: bl ___stack_chk_fail LBB0_13: 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 "Enter the String:" l_.str.1: ; @.str.1 .asciz "Vowels Count: %d\n" l_.str.2: ; @.str.2 .asciz "Consonants Count: %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 $64, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -36(%rbp) movl $0, -48(%rbp) movl $0, -52(%rbp) leaq L_.str(%rip), %rdi movb $0, %al callq _printf leaq -32(%rbp), %rdi callq _gets movl $0, -40(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movslq -40(%rbp), %rax movsbl -32(%rbp,%rax), %eax cmpl $0, %eax je LBB0_11 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movslq -40(%rbp), %rax movsbl -32(%rbp,%rax), %eax cmpl $97, %eax je LBB0_7 ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movslq -40(%rbp), %rax movsbl -32(%rbp,%rax), %eax cmpl $101, %eax je LBB0_7 ## %bb.4: ## in Loop: Header=BB0_1 Depth=1 movslq -40(%rbp), %rax movsbl -32(%rbp,%rax), %eax cmpl $105, %eax je LBB0_7 ## %bb.5: ## in Loop: Header=BB0_1 Depth=1 movslq -40(%rbp), %rax movsbl -32(%rbp,%rax), %eax cmpl $111, %eax je LBB0_7 ## %bb.6: ## in Loop: Header=BB0_1 Depth=1 movslq -40(%rbp), %rax movsbl -32(%rbp,%rax), %eax cmpl $117, %eax jne LBB0_8 LBB0_7: ## in Loop: Header=BB0_1 Depth=1 movl -48(%rbp), %eax addl $1, %eax movl %eax, -48(%rbp) jmp LBB0_9 LBB0_8: ## in Loop: Header=BB0_1 Depth=1 movl -52(%rbp), %eax addl $1, %eax movl %eax, -52(%rbp) LBB0_9: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_10 LBB0_10: ## in Loop: Header=BB0_1 Depth=1 movl -40(%rbp), %eax addl $1, %eax movl %eax, -40(%rbp) jmp LBB0_1 LBB0_11: movl -48(%rbp), %esi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf movl -52(%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_13 ## %bb.12: xorl %eax, %eax addq $64, %rsp popq %rbp retq LBB0_13: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Enter the String:" L_.str.1: ## @.str.1 .asciz "Vowels Count: %d\n" L_.str.2: ## @.str.2 .asciz "Consonants Count: %d" .subsections_via_symbols
the_stack_data/156393444.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, #432 .cfi_def_cfa_offset 432 stp x28, x27, [sp, #416] ; 16-byte Folded Spill .cfi_offset w27, -8 .cfi_offset w28, -16 str wzr, [sp, #412] mov w8, #2 str w8, [sp, #8] b LBB0_1 LBB0_1: ; =>This Loop Header: Depth=1 ; Child Loop BB0_3 Depth 2 ldr w8, [sp, #8] subs w8, w8, #50 cset w8, gt tbnz w8, #0, LBB0_8 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 mov w8, #2 str w8, [sp, #4] b LBB0_3 LBB0_3: ; Parent Loop BB0_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #4] subs w8, w8, #100 cset w8, ge tbnz w8, #0, LBB0_6 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_3 Depth=2 ldrsw x10, [sp, #4] add x9, sp, #12 mov w8, #2 str w8, [x9, x10, lsl #2] b LBB0_5 LBB0_5: ; in Loop: Header=BB0_3 Depth=2 ldr w8, [sp, #4] lsl w8, w8, #1 str w8, [sp, #4] 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, #8] add w8, w8, #1 str w8, [sp, #8] b LBB0_1 LBB0_8: mov w8, #2 str w8, [sp, #8] b LBB0_9 LBB0_9: ; =>This Loop Header: Depth=1 ; Child Loop BB0_11 Depth 2 ldr w8, [sp, #8] subs w8, w8, #50 cset w8, gt tbnz w8, #0, LBB0_15 b LBB0_10 LBB0_10: ; in Loop: Header=BB0_9 Depth=1 ldr w8, [sp, #8] add w8, w8, #1 str w8, [sp, #8] mov w8, #2 str w8, [sp, #4] b LBB0_11 LBB0_11: ; Parent Loop BB0_9 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #4] subs w8, w8, #100 cset w8, ge tbnz w8, #0, LBB0_14 b LBB0_12 LBB0_12: ; in Loop: Header=BB0_11 Depth=2 ldrsw x10, [sp, #4] add x9, sp, #12 mov w8, #2 str w8, [x9, x10, lsl #2] b LBB0_13 LBB0_13: ; in Loop: Header=BB0_11 Depth=2 ldr w8, [sp, #4] lsl w8, w8, #1 str w8, [sp, #4] b LBB0_11 LBB0_14: ; in Loop: Header=BB0_9 Depth=1 b LBB0_9 LBB0_15: mov w8, #2 str w8, [sp, #8] b LBB0_16 LBB0_16: ; =>This Loop Header: Depth=1 ; Child Loop BB0_17 Depth 2 mov w8, #2 str w8, [sp, #4] b LBB0_17 LBB0_17: ; Parent Loop BB0_16 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #4] subs w8, w8, #100 cset w8, ge tbnz w8, #0, LBB0_20 b LBB0_18 LBB0_18: ; in Loop: Header=BB0_17 Depth=2 ldrsw x10, [sp, #4] add x9, sp, #12 mov w8, #2 str w8, [x9, x10, lsl #2] b LBB0_19 LBB0_19: ; in Loop: Header=BB0_17 Depth=2 ldr w8, [sp, #4] lsl w8, w8, #1 str w8, [sp, #4] b LBB0_17 LBB0_20: ; in Loop: Header=BB0_16 Depth=1 b LBB0_21 LBB0_21: ; in Loop: Header=BB0_16 Depth=1 ldr w8, [sp, #8] add w8, w8, #1 str w8, [sp, #8] b LBB0_16 .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 $304, %rsp ## imm = 0x130 movl $0, -4(%rbp) movl $2, -420(%rbp) LBB0_1: ## =>This Loop Header: Depth=1 ## Child Loop BB0_3 Depth 2 cmpl $50, -420(%rbp) jg LBB0_8 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl $2, -424(%rbp) LBB0_3: ## Parent Loop BB0_1 Depth=1 ## => This Inner Loop Header: Depth=2 cmpl $100, -424(%rbp) jge LBB0_6 ## %bb.4: ## in Loop: Header=BB0_3 Depth=2 movslq -424(%rbp), %rax movl $2, -416(%rbp,%rax,4) ## %bb.5: ## in Loop: Header=BB0_3 Depth=2 movl -424(%rbp), %eax shll $1, %eax movl %eax, -424(%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 -420(%rbp), %eax addl $1, %eax movl %eax, -420(%rbp) jmp LBB0_1 LBB0_8: movl $2, -420(%rbp) LBB0_9: ## =>This Loop Header: Depth=1 ## Child Loop BB0_11 Depth 2 cmpl $50, -420(%rbp) jg LBB0_15 ## %bb.10: ## in Loop: Header=BB0_9 Depth=1 movl -420(%rbp), %eax addl $1, %eax movl %eax, -420(%rbp) movl $2, -424(%rbp) LBB0_11: ## Parent Loop BB0_9 Depth=1 ## => This Inner Loop Header: Depth=2 cmpl $100, -424(%rbp) jge LBB0_14 ## %bb.12: ## in Loop: Header=BB0_11 Depth=2 movslq -424(%rbp), %rax movl $2, -416(%rbp,%rax,4) ## %bb.13: ## in Loop: Header=BB0_11 Depth=2 movl -424(%rbp), %eax shll $1, %eax movl %eax, -424(%rbp) jmp LBB0_11 LBB0_14: ## in Loop: Header=BB0_9 Depth=1 jmp LBB0_9 LBB0_15: movl $2, -420(%rbp) LBB0_16: ## =>This Loop Header: Depth=1 ## Child Loop BB0_17 Depth 2 movl $2, -424(%rbp) LBB0_17: ## Parent Loop BB0_16 Depth=1 ## => This Inner Loop Header: Depth=2 cmpl $100, -424(%rbp) jge LBB0_20 ## %bb.18: ## in Loop: Header=BB0_17 Depth=2 movslq -424(%rbp), %rax movl $2, -416(%rbp,%rax,4) ## %bb.19: ## in Loop: Header=BB0_17 Depth=2 movl -424(%rbp), %eax shll $1, %eax movl %eax, -424(%rbp) jmp LBB0_17 LBB0_20: ## in Loop: Header=BB0_16 Depth=1 jmp LBB0_21 LBB0_21: ## in Loop: Header=BB0_16 Depth=1 movl -420(%rbp), %eax addl $1, %eax movl %eax, -420(%rbp) jmp LBB0_16 .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/75080.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __DATA,__data .globl _datatoc_gpencil_fx_rim_prepare_frag_glsl_size ; @datatoc_gpencil_fx_rim_prepare_frag_glsl_size .p2align 2 _datatoc_gpencil_fx_rim_prepare_frag_glsl_size: .long 1805 ; 0x70d .globl _datatoc_gpencil_fx_rim_prepare_frag_glsl ; @datatoc_gpencil_fx_rim_prepare_frag_glsl _datatoc_gpencil_fx_rim_prepare_frag_glsl: .asciz "uniform mat4 ProjectionMatrix;\r\nuniform mat4 ViewMatrix;\r\n\r\n/* ******************************************************************* */\r\n/* create rim and mask */\r\n/* ******************************************************************* */\r\nuniform sampler2D strokeColor;\r\nuniform sampler2D strokeDepth;\r\nuniform vec2 Viewport;\r\n\r\nuniform int offset[2];\r\nuniform vec3 rim_color;\r\nuniform vec3 mask_color;\r\n\r\nuniform vec3 loc;\r\nuniform float pixsize; /* rv3d->pixsize */\r\nuniform float pixfactor;\r\n\r\nfloat defaultpixsize = pixsize * (1000.0 / pixfactor);\r\nvec2 noffset = vec2(offset[0], offset[1]);\r\n\r\nout vec4 FragColor;\r\n\r\nvoid main()\r\n{\r\n\tvec2 uv = vec2(gl_FragCoord.xy);\r\n\tvec4 nloc = ProjectionMatrix * ViewMatrix * vec4(loc.xyz, 1.0);\r\n\r\n\tfloat dx = (ProjectionMatrix[3][3] == 0.0) ? (noffset[0] / (nloc.z * defaultpixsize)) : (noffset[0] / defaultpixsize);\r\n\tfloat dy = (ProjectionMatrix[3][3] == 0.0) ? (noffset[1] / (nloc.z * defaultpixsize)) : (noffset[1] / defaultpixsize);\r\n\r\n\tfloat stroke_depth = texelFetch(strokeDepth, ivec2(uv.xy), 0).r;\r\n\tvec4 src_pixel= texelFetch(strokeColor, ivec2(uv.xy), 0);\r\n\tvec4 offset_pixel= texelFetch(strokeColor, ivec2(uv.x - dx, uv.y - dy), 0);\r\n\tvec4 outcolor;\r\n\r\n\t/* is transparent */\r\n\tif (src_pixel.a == 0.0f) {\r\n\t\tdiscard;\r\n\t}\r\n\t/* check inside viewport */\r\n\telse if ((uv.x - dx < 0) || (uv.x - dx > Viewport[0])) {\r\n\t\tdiscard;\r\n\t}\r\n\telse if ((uv.y - dy < 0) || (uv.y - dy > Viewport[1])) {\r\n\t\tdiscard;\r\n\t}\r\n\t/* pixel is equal to mask color, keep */\r\n\telse if (src_pixel.rgb == mask_color.rgb) {\r\n\t\tdiscard;\r\n\t}\r\n\telse {\r\n\t\tif ((src_pixel.a > 0) && (offset_pixel.a > 0)) {\r\n\t\t\tdiscard;\r\n\t\t}\r\n\t\telse {\r\n\t\t\toutcolor = vec4(rim_color, 1.0);\r\n\t\t}\r\n\t}\r\n\r\n\tgl_FragDepth = stroke_depth;\r\n\tFragColor = outcolor;\r\n}\r\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __DATA,__data .globl _datatoc_gpencil_fx_rim_prepare_frag_glsl_size ## @datatoc_gpencil_fx_rim_prepare_frag_glsl_size .p2align 2 _datatoc_gpencil_fx_rim_prepare_frag_glsl_size: .long 1805 ## 0x70d .globl _datatoc_gpencil_fx_rim_prepare_frag_glsl ## @datatoc_gpencil_fx_rim_prepare_frag_glsl .p2align 4 _datatoc_gpencil_fx_rim_prepare_frag_glsl: .asciz "uniform mat4 ProjectionMatrix;\r\nuniform mat4 ViewMatrix;\r\n\r\n/* ******************************************************************* */\r\n/* create rim and mask */\r\n/* ******************************************************************* */\r\nuniform sampler2D strokeColor;\r\nuniform sampler2D strokeDepth;\r\nuniform vec2 Viewport;\r\n\r\nuniform int offset[2];\r\nuniform vec3 rim_color;\r\nuniform vec3 mask_color;\r\n\r\nuniform vec3 loc;\r\nuniform float pixsize; /* rv3d->pixsize */\r\nuniform float pixfactor;\r\n\r\nfloat defaultpixsize = pixsize * (1000.0 / pixfactor);\r\nvec2 noffset = vec2(offset[0], offset[1]);\r\n\r\nout vec4 FragColor;\r\n\r\nvoid main()\r\n{\r\n\tvec2 uv = vec2(gl_FragCoord.xy);\r\n\tvec4 nloc = ProjectionMatrix * ViewMatrix * vec4(loc.xyz, 1.0);\r\n\r\n\tfloat dx = (ProjectionMatrix[3][3] == 0.0) ? (noffset[0] / (nloc.z * defaultpixsize)) : (noffset[0] / defaultpixsize);\r\n\tfloat dy = (ProjectionMatrix[3][3] == 0.0) ? (noffset[1] / (nloc.z * defaultpixsize)) : (noffset[1] / defaultpixsize);\r\n\r\n\tfloat stroke_depth = texelFetch(strokeDepth, ivec2(uv.xy), 0).r;\r\n\tvec4 src_pixel= texelFetch(strokeColor, ivec2(uv.xy), 0);\r\n\tvec4 offset_pixel= texelFetch(strokeColor, ivec2(uv.x - dx, uv.y - dy), 0);\r\n\tvec4 outcolor;\r\n\r\n\t/* is transparent */\r\n\tif (src_pixel.a == 0.0f) {\r\n\t\tdiscard;\r\n\t}\r\n\t/* check inside viewport */\r\n\telse if ((uv.x - dx < 0) || (uv.x - dx > Viewport[0])) {\r\n\t\tdiscard;\r\n\t}\r\n\telse if ((uv.y - dy < 0) || (uv.y - dy > Viewport[1])) {\r\n\t\tdiscard;\r\n\t}\r\n\t/* pixel is equal to mask color, keep */\r\n\telse if (src_pixel.rgb == mask_color.rgb) {\r\n\t\tdiscard;\r\n\t}\r\n\telse {\r\n\t\tif ((src_pixel.a > 0) && (offset_pixel.a > 0)) {\r\n\t\t\tdiscard;\r\n\t\t}\r\n\t\telse {\r\n\t\t\toutcolor = vec4(rim_color, 1.0);\r\n\t\t}\r\n\t}\r\n\r\n\tgl_FragDepth = stroke_depth;\r\n\tFragColor = outcolor;\r\n}\r\n" .subsections_via_symbols
the_stack_data/33835.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _do_print ; -- Begin function do_print .p2align 2 _do_print: ; @do_print .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #8] ldr x8, [sp, #8] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: mov x0, #0 adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF bl _do_call b LBB0_2 LBB0_2: ldr x8, [sp, #8] adds x8, x8, #1 cset w8, ne tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: ldr x8, [sp, #8] add x0, x8, #10 bl _do_print b LBB0_4 LBB0_4: adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF str x0, [sp] ; 8-byte Folded Spill bl _puts ldr x0, [sp, #8] bl _puts ldr x0, [sp] ; 8-byte Folded Reload bl _puts ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _do_call ; -- Begin function do_call .p2align 2 _do_call: ; @do_call .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #8] str x1, [sp] ldr x8, [sp] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _do_print b LBB1_2 LBB1_2: ldr x8, [sp] adds x8, x8, #1 cset w8, ne tbnz w8, #0, LBB1_4 b LBB1_3 LBB1_3: ldr x8, [sp] subs x1, x8, #10 mov x0, #0 bl _do_call b LBB1_4 LBB1_4: ldr x8, [sp, #8] ldr x0, [sp] blr x8 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] stur w0, [x29, #-8] str x1, [sp, #16] str wzr, [sp, #12] b LBB2_1 LBB2_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #12] ldur w9, [x29, #-8] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB2_4 b LBB2_2 LBB2_2: ; in Loop: Header=BB2_1 Depth=1 ldr w8, [sp, #12] subs w8, w8, #10 cset w8, ne and w10, w8, #0x1 mov x9, #0 adrp x8, _do_print@PAGE add x8, x8, _do_print@PAGEOFF ands w10, w10, #0x1 csel x0, x8, x9, ne ldr w8, [sp, #12] subs w8, w8, #15 cset w8, ne and w10, w8, #0x1 adrp x8, l_.str.3@PAGE add x8, x8, l_.str.3@PAGEOFF ands w10, w10, #0x1 csel x1, x8, x9, ne bl _do_call b LBB2_3 LBB2_3: ; in Loop: Header=BB2_1 Depth=1 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB2_1 LBB2_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 "delusion" l_.str.1: ; @.str.1 .asciz "====" l_.str.2: ; @.str.2 .asciz "confusion" l_.str.3: ; @.str.3 .asciz "waka waka" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _do_print ## -- Begin function do_print .p2align 4, 0x90 _do_print: ## @do_print .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) cmpq $0, -8(%rbp) jne LBB0_2 ## %bb.1: xorl %eax, %eax movl %eax, %edi leaq L_.str(%rip), %rsi callq _do_call LBB0_2: movq -8(%rbp), %rax cmpq $-1, %rax jne LBB0_4 ## %bb.3: movq -8(%rbp), %rdi addq $10, %rdi callq _do_print LBB0_4: leaq L_.str.1(%rip), %rdi callq _puts movq -8(%rbp), %rdi callq _puts leaq L_.str.1(%rip), %rdi callq _puts addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _do_call ## -- Begin function do_call .p2align 4, 0x90 _do_call: ## @do_call .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) cmpq $0, -16(%rbp) jne LBB1_2 ## %bb.1: leaq L_.str.2(%rip), %rdi callq _do_print LBB1_2: movq -16(%rbp), %rax cmpq $-1, %rax jne LBB1_4 ## %bb.3: movq -16(%rbp), %rsi addq $-10, %rsi xorl %eax, %eax movl %eax, %edi callq _do_call LBB1_4: movq -8(%rbp), %rax movq -16(%rbp), %rdi callq *%rax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl $0, -4(%rbp) movl %edi, -8(%rbp) movq %rsi, -16(%rbp) movl $0, -20(%rbp) LBB2_1: ## =>This Inner Loop Header: Depth=1 movl -20(%rbp), %eax cmpl -8(%rbp), %eax jge LBB2_4 ## %bb.2: ## in Loop: Header=BB2_1 Depth=1 movl -20(%rbp), %ecx xorl %eax, %eax movl %eax, %edi leaq _do_print(%rip), %rax cmpl $10, %ecx cmovneq %rax, %rdi movl -20(%rbp), %ecx xorl %eax, %eax movl %eax, %esi leaq L_.str.3(%rip), %rax cmpl $15, %ecx cmovneq %rax, %rsi callq _do_call ## %bb.3: ## in Loop: Header=BB2_1 Depth=1 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB2_1 LBB2_4: xorl %eax, %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "delusion" L_.str.1: ## @.str.1 .asciz "====" L_.str.2: ## @.str.2 .asciz "confusion" L_.str.3: ## @.str.3 .asciz "waka waka" .subsections_via_symbols
the_stack_data/29824625.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _integer_to_bin ; -- Begin function integer_to_bin .p2align 2 _integer_to_bin: ; @integer_to_bin .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] mov w8, #64 stur w8, [x29, #-20] ldur w8, [x29, #-20] add w9, w8, #1 ; implicit-def: $x8 mov x8, x9 sxtw x0, w8 bl _malloc str x0, [sp, #16] ldr x8, [sp, #16] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: adrp x8, l_.str@PAGE add x8, x8, l_.str@PAGEOFF stur x8, [x29, #-8] b LBB0_7 LBB0_2: ldr x8, [sp, #16] ldursw x9, [x29, #-20] add x8, x8, x9 strb wzr, [x8] str wzr, [sp, #12] b LBB0_3 LBB0_3: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #12] ldur w9, [x29, #-20] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_6 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_3 Depth=1 ldur x8, [x29, #-16] ldr w9, [sp, #12] ; kill: def $x9 killed $w9 lsl x8, x8, x9 ldur w9, [x29, #-20] subs w9, w9, #1 ; kill: def $x9 killed $w9 asr x8, x8, x9 ldr x9, [sp, #16] ldrsw x10, [sp, #12] ; kill: def $w8 killed $w8 killed $x8 strb w8, [x9, x10] ldr x8, [sp, #16] ldrsw x9, [sp, #12] ldrsb w8, [x8, x9] subs w8, w8, #0 cset w8, eq and w10, w8, #0x1 mov w9, #49 mov w8, #48 ands w10, w10, #0x1 csel w8, w8, w9, ne ldr x9, [sp, #16] ldrsw x10, [sp, #12] strb w8, [x9, x10] b LBB0_5 LBB0_5: ; in Loop: Header=BB0_3 Depth=1 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB0_3 LBB0_6: ldr x8, [sp, #16] stur x8, [x29, #-8] b LBB0_7 LBB0_7: ldur x0, [x29, #-8] ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _integer_to_hex ; -- Begin function integer_to_hex .p2align 2 _integer_to_hex: ; @integer_to_hex .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, #16 stur w8, [x29, #-12] ldur w8, [x29, #-12] add w9, w8, #3 ; implicit-def: $x8 mov x8, x9 sxtw x0, w8 bl _malloc str x0, [sp, #24] ldr x9, [sp, #24] mov w8, #48 strb w8, [x9] ldr x9, [sp, #24] mov w8, #120 strb w8, [x9, #1] ldr x8, [sp, #24] ldur w9, [x29, #-12] add w9, w9, #2 add x8, x8, w9, sxtw strb wzr, [x8] ldr x8, [sp, #24] add x8, x8, #2 str x8, [sp, #16] str wzr, [sp, #12] b LBB1_1 LBB1_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #12] ldur w9, [x29, #-12] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_10 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 ldur x8, [x29, #-8] ldr w9, [sp, #12] lsl w9, w9, #2 ; kill: def $x9 killed $w9 lsl x8, x8, x9 ldur w9, [x29, #-12] lsl w9, w9, #2 subs w9, w9, #4 ; kill: def $x9 killed $w9 asr x8, x8, x9 ldr x9, [sp, #16] ldrsw x10, [sp, #12] ; kill: def $w8 killed $w8 killed $x8 strb w8, [x9, x10] ldr x8, [sp, #16] ldrsw x9, [sp, #12] ldrsb w8, [x8, x9] subs w8, w8, #0 cset w8, lt tbnz w8, #0, LBB1_4 b LBB1_3 LBB1_3: ; in Loop: Header=BB1_1 Depth=1 ldr x8, [sp, #16] ldrsw x9, [sp, #12] ldrsb w8, [x8, x9] str w8, [sp, #8] ; 4-byte Folded Spill b LBB1_5 LBB1_4: ; in Loop: Header=BB1_1 Depth=1 ldr x8, [sp, #16] ldrsw x9, [sp, #12] ldrsb w8, [x8, x9] add w8, w8, #16 str w8, [sp, #8] ; 4-byte Folded Spill b LBB1_5 LBB1_5: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #8] ; 4-byte Folded Reload ldr x9, [sp, #16] ldrsw x10, [sp, #12] strb w8, [x9, x10] ldr x8, [sp, #16] ldrsw x9, [sp, #12] ldrsb w8, [x8, x9] subs w8, w8, #10 cset w8, ge tbnz w8, #0, LBB1_7 b LBB1_6 LBB1_6: ; in Loop: Header=BB1_1 Depth=1 ldr x8, [sp, #16] ldrsw x9, [sp, #12] ldrsb w8, [x8, x9] add w8, w8, #48 str w8, [sp, #4] ; 4-byte Folded Spill b LBB1_8 LBB1_7: ; in Loop: Header=BB1_1 Depth=1 ldr x8, [sp, #16] ldrsw x9, [sp, #12] ldrsb w8, [x8, x9] subs w8, w8, #10 add w8, w8, #65 str w8, [sp, #4] ; 4-byte Folded Spill b LBB1_8 LBB1_8: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #4] ; 4-byte Folded Reload ldr x9, [sp, #16] ldrsw x10, [sp, #12] strb w8, [x9, x10] b LBB1_9 LBB1_9: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB1_1 LBB1_10: ldr x0, [sp, #24] 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, #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, #-8] ; 4-byte Folded Spill stur wzr, [x29, #-4] mov x0, #11 str x0, [sp, #16] ; 8-byte Folded Spill bl _integer_to_bin mov x8, sp str x0, [x8] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf mov x0, #1023 str x0, [sp, #24] ; 8-byte Folded Spill bl _integer_to_bin mov x8, sp str x0, [x8] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf mov x0, #23564 stur x0, [x29, #-16] ; 8-byte Folded Spill bl _integer_to_bin mov x8, sp str x0, [x8] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf ldr x0, [sp, #16] ; 8-byte Folded Reload bl _integer_to_hex mov x8, sp str x0, [x8] adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf ldr x0, [sp, #24] ; 8-byte Folded Reload bl _integer_to_hex mov x8, sp str x0, [x8] adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf ldur x0, [x29, #-16] ; 8-byte Folded Reload bl _integer_to_hex mov x8, sp str x0, [x8] adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _printf ldr x8, [sp, #16] ; 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 ldr x8, [sp, #24] ; 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, #-16] ; 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 w0, [x29, #-8] ; 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 "malloc error" l_.str.1: ; @.str.1 .asciz "b(11) = %s\n" l_.str.2: ; @.str.2 .asciz "b(1023) = %s\n" l_.str.3: ; @.str.3 .asciz "b(23564) = %s\n" l_.str.4: ; @.str.4 .asciz "h(11) = %s\n" l_.str.5: ; @.str.5 .asciz "h(1023) = %s\n" l_.str.6: ; @.str.6 .asciz "h(23564) = %s\n" l_.str.7: ; @.str.7 .asciz "b(11) = %x\n" l_.str.8: ; @.str.8 .asciz "b(1023) = %x\n" l_.str.9: ; @.str.9 .asciz "b(23564) = %x\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _integer_to_bin ## -- Begin function integer_to_bin .p2align 4, 0x90 _integer_to_bin: ## @integer_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 $48, %rsp movq %rdi, -16(%rbp) movl $64, -20(%rbp) movl -20(%rbp), %eax addl $1, %eax movslq %eax, %rdi callq _malloc movq %rax, -32(%rbp) cmpq $0, -32(%rbp) jne LBB0_2 ## %bb.1: leaq L_.str(%rip), %rax movq %rax, -8(%rbp) jmp LBB0_7 LBB0_2: movq -32(%rbp), %rax movslq -20(%rbp), %rcx movb $0, (%rax,%rcx) movl $0, -36(%rbp) LBB0_3: ## =>This Inner Loop Header: Depth=1 movl -36(%rbp), %eax cmpl -20(%rbp), %eax jge LBB0_6 ## %bb.4: ## in Loop: Header=BB0_3 Depth=1 movq -16(%rbp), %rax movl -36(%rbp), %ecx ## kill: def $rcx killed $ecx ## kill: def $cl killed $rcx shlq %cl, %rax movl -20(%rbp), %ecx subl $1, %ecx movl %ecx, %ecx ## kill: def $rcx killed $ecx ## kill: def $cl killed $rcx sarq %cl, %rax movb %al, %dl movq -32(%rbp), %rax movslq -36(%rbp), %rcx movb %dl, (%rax,%rcx) movq -32(%rbp), %rax movslq -36(%rbp), %rcx movsbl (%rax,%rcx), %edx movl $49, %eax movl $48, %ecx cmpl $0, %edx cmovel %ecx, %eax movb %al, %dl movq -32(%rbp), %rax movslq -36(%rbp), %rcx movb %dl, (%rax,%rcx) ## %bb.5: ## in Loop: Header=BB0_3 Depth=1 movl -36(%rbp), %eax addl $1, %eax movl %eax, -36(%rbp) jmp LBB0_3 LBB0_6: movq -32(%rbp), %rax movq %rax, -8(%rbp) LBB0_7: movq -8(%rbp), %rax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _integer_to_hex ## -- Begin function integer_to_hex .p2align 4, 0x90 _integer_to_hex: ## @integer_to_hex .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 $16, -12(%rbp) movl -12(%rbp), %eax addl $3, %eax movslq %eax, %rdi callq _malloc movq %rax, -24(%rbp) movq -24(%rbp), %rax movb $48, (%rax) movq -24(%rbp), %rax movb $120, 1(%rax) movq -24(%rbp), %rax movl -12(%rbp), %ecx addl $2, %ecx movslq %ecx, %rcx movb $0, (%rax,%rcx) movq -24(%rbp), %rax addq $2, %rax movq %rax, -32(%rbp) movl $0, -36(%rbp) LBB1_1: ## =>This Inner Loop Header: Depth=1 movl -36(%rbp), %eax cmpl -12(%rbp), %eax jge LBB1_10 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 movq -8(%rbp), %rax movl -36(%rbp), %ecx shll $2, %ecx movl %ecx, %ecx ## kill: def $rcx killed $ecx ## kill: def $cl killed $rcx shlq %cl, %rax movl -12(%rbp), %ecx shll $2, %ecx subl $4, %ecx movl %ecx, %ecx ## kill: def $rcx killed $ecx ## kill: def $cl killed $rcx sarq %cl, %rax movb %al, %dl movq -32(%rbp), %rax movslq -36(%rbp), %rcx movb %dl, (%rax,%rcx) movq -32(%rbp), %rax movslq -36(%rbp), %rcx movsbl (%rax,%rcx), %eax cmpl $0, %eax jl LBB1_4 ## %bb.3: ## in Loop: Header=BB1_1 Depth=1 movq -32(%rbp), %rax movslq -36(%rbp), %rcx movsbl (%rax,%rcx), %eax movl %eax, -40(%rbp) ## 4-byte Spill jmp LBB1_5 LBB1_4: ## in Loop: Header=BB1_1 Depth=1 movq -32(%rbp), %rax movslq -36(%rbp), %rcx movsbl (%rax,%rcx), %eax addl $16, %eax movl %eax, -40(%rbp) ## 4-byte Spill LBB1_5: ## in Loop: Header=BB1_1 Depth=1 movl -40(%rbp), %eax ## 4-byte Reload movb %al, %dl movq -32(%rbp), %rax movslq -36(%rbp), %rcx movb %dl, (%rax,%rcx) movq -32(%rbp), %rax movslq -36(%rbp), %rcx movsbl (%rax,%rcx), %eax cmpl $10, %eax jge LBB1_7 ## %bb.6: ## in Loop: Header=BB1_1 Depth=1 movq -32(%rbp), %rax movslq -36(%rbp), %rcx movsbl (%rax,%rcx), %eax addl $48, %eax movl %eax, -44(%rbp) ## 4-byte Spill jmp LBB1_8 LBB1_7: ## in Loop: Header=BB1_1 Depth=1 movq -32(%rbp), %rax movslq -36(%rbp), %rcx movsbl (%rax,%rcx), %eax subl $10, %eax addl $65, %eax movl %eax, -44(%rbp) ## 4-byte Spill LBB1_8: ## in Loop: Header=BB1_1 Depth=1 movl -44(%rbp), %eax ## 4-byte Reload movb %al, %dl movq -32(%rbp), %rax movslq -36(%rbp), %rcx movb %dl, (%rax,%rcx) ## %bb.9: ## in Loop: Header=BB1_1 Depth=1 movl -36(%rbp), %eax addl $1, %eax movl %eax, -36(%rbp) jmp LBB1_1 LBB1_10: movq -24(%rbp), %rax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) movl $11, %edi callq _integer_to_bin movq %rax, %rsi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf movl $1023, %edi ## imm = 0x3FF callq _integer_to_bin movq %rax, %rsi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf movl $23564, %edi ## imm = 0x5C0C callq _integer_to_bin movq %rax, %rsi leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf movl $11, %edi callq _integer_to_hex movq %rax, %rsi leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf movl $1023, %edi ## imm = 0x3FF callq _integer_to_hex movq %rax, %rsi leaq L_.str.5(%rip), %rdi movb $0, %al callq _printf movl $23564, %edi ## imm = 0x5C0C callq _integer_to_hex movq %rax, %rsi leaq L_.str.6(%rip), %rdi movb $0, %al callq _printf leaq L_.str.7(%rip), %rdi movl $11, %esi movb $0, %al callq _printf leaq L_.str.8(%rip), %rdi movl $1023, %esi ## imm = 0x3FF movb $0, %al callq _printf leaq L_.str.9(%rip), %rdi movl $23564, %esi ## imm = 0x5C0C 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 "malloc error" L_.str.1: ## @.str.1 .asciz "b(11) = %s\n" L_.str.2: ## @.str.2 .asciz "b(1023) = %s\n" L_.str.3: ## @.str.3 .asciz "b(23564) = %s\n" L_.str.4: ## @.str.4 .asciz "h(11) = %s\n" L_.str.5: ## @.str.5 .asciz "h(1023) = %s\n" L_.str.6: ## @.str.6 .asciz "h(23564) = %s\n" L_.str.7: ## @.str.7 .asciz "b(11) = %x\n" L_.str.8: ## @.str.8 .asciz "b(1023) = %x\n" L_.str.9: ## @.str.9 .asciz "b(23564) = %x\n" .subsections_via_symbols
the_stack_data/75136834.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 my_log10 lCPI0_0: .quad 0x3d59fef311f12b36 ; double 3.6942390771589308E-13 lCPI0_1: .quad 0x3dbb9438ca9aadd5 ; double 2.5082946711645275E-11 lCPI0_2: .quad 0x3fd34413509f6000 ; double 0.30102999566361177 lCPI0_3: .quad 0x3fdbcb7b15200000 ; double 0.43429448187816888 lCPI0_4: .quad 0x3fe5555555555593 ; double 0.66666666666667351 lCPI0_5: .quad 0x3fd2492494229359 ; double 0.28571428743662391 lCPI0_6: .quad 0x3fc2f112df3e5244 ; double 0.14798198605116586 lCPI0_7: .quad 0x3fc7466496cb03de ; double 0.1818357216161805 lCPI0_8: .quad 0x3fd999999997fa04 ; double 0.39999999999409419 lCPI0_9: .quad 0x3fc39a09d078c69f ; double 0.15313837699209373 lCPI0_10: .quad 0x3fcc71c51d8e78af ; double 0.22222198432149784 lCPI0_11: .quad 0x4350000000000000 ; double 18014398509481984 .section __TEXT,__text,regular,pure_instructions .globl _my_log10 .p2align 2 _my_log10: ; @my_log10 .cfi_startproc ; %bb.0: sub sp, sp, #144 .cfi_def_cfa_offset 144 str d0, [sp, #128] ldr d0, [sp, #128] str d0, [sp, #120] ldr x8, [sp, #120] lsr x8, x8, #32 ; kill: def $w8 killed $w8 killed $x8 str w8, [sp, #4] str wzr, [sp] ldr w8, [sp, #4] subs w8, w8, #256, lsl #12 ; =1048576 cset w8, lo tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: ldr w8, [sp, #4] lsr w8, w8, #31 subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_7 b LBB0_2 LBB0_2: ldr x8, [sp, #120] lsl x8, x8, #1 subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: ldr d0, [sp, #128] ldr d1, [sp, #128] fmul d1, d0, d1 fmov d0, #-1.00000000 fdiv d0, d0, d1 str d0, [sp, #136] b LBB0_15 LBB0_4: ldr w8, [sp, #4] lsr w8, w8, #31 subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: ldr d0, [sp, #128] ldr d1, [sp, #128] fsub d0, d0, d1 movi d1, #0000000000000000 fdiv d0, d0, d1 str d0, [sp, #136] b LBB0_15 LBB0_6: ldr w8, [sp] subs w8, w8, #54 str w8, [sp] ldr d0, [sp, #128] adrp x8, lCPI0_11@PAGE ldr d1, [x8, lCPI0_11@PAGEOFF] fmul d0, d0, d1 str d0, [sp, #128] ldr d0, [sp, #128] str d0, [sp, #120] ldr x8, [sp, #120] lsr x8, x8, #32 ; kill: def $w8 killed $w8 killed $x8 str w8, [sp, #4] b LBB0_14 LBB0_7: ldr w8, [sp, #4] mov w9, #2146435072 subs w8, w8, w9 cset w8, lo tbnz w8, #0, LBB0_9 b LBB0_8 LBB0_8: ldr d0, [sp, #128] str d0, [sp, #136] b LBB0_15 LBB0_9: ldr w8, [sp, #4] mov w9, #1072693248 subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_12 b LBB0_10 LBB0_10: ldr x8, [sp, #120] lsl x8, x8, #32 subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB0_12 b LBB0_11 LBB0_11: movi d0, #0000000000000000 str d0, [sp, #136] b LBB0_15 LBB0_12: b LBB0_13 LBB0_13: b LBB0_14 LBB0_14: ldr w8, [sp, #4] mov w9, #24418 movk w9, #9, lsl #16 add w8, w8, w9 str w8, [sp, #4] ldr w8, [sp, #4] lsr w8, w8, #20 subs w9, w8, #1023 ldr w8, [sp] add w8, w8, w9 str w8, [sp] ldr w8, [sp, #4] and w8, w8, #0xfffff mov w9, #41118 movk w9, #16358, lsl #16 add w8, w8, w9 str w8, [sp, #4] ldr w8, [sp, #4] mov x9, x8 ldr w8, [sp, #120] ; kill: def $x8 killed $w8 orr x8, x8, x9, lsl #32 str x8, [sp, #120] ldr d0, [sp, #120] str d0, [sp, #128] ldr d0, [sp, #128] fmov d1, #1.00000000 fsub d0, d0, d1 str d0, [sp, #104] ldr d1, [sp, #104] fmov d0, #0.50000000 fmul d0, d0, d1 ldr d1, [sp, #104] fmul d0, d0, d1 str d0, [sp, #112] ldr d0, [sp, #104] ldr d2, [sp, #104] fmov d1, #2.00000000 fadd d1, d1, d2 fdiv d0, d0, d1 str d0, [sp, #96] ldr d0, [sp, #96] ldr d1, [sp, #96] fmul d0, d0, d1 str d0, [sp, #88] ldr d0, [sp, #88] ldr d1, [sp, #88] fmul d0, d0, d1 str d0, [sp, #72] ldr d0, [sp, #72] ldr d1, [sp, #72] ldr d2, [sp, #72] adrp x8, lCPI0_10@PAGE ldr d4, [x8, lCPI0_10@PAGEOFF] adrp x8, lCPI0_9@PAGE ldr d3, [x8, lCPI0_9@PAGEOFF] fmadd d2, d2, d3, d4 adrp x8, lCPI0_8@PAGE ldr d3, [x8, lCPI0_8@PAGEOFF] fmadd d1, d1, d2, d3 fmul d0, d0, d1 str d0, [sp, #64] ldr d0, [sp, #88] ldr d1, [sp, #72] ldr d2, [sp, #72] ldr d3, [sp, #72] adrp x8, lCPI0_7@PAGE ldr d5, [x8, lCPI0_7@PAGEOFF] adrp x8, lCPI0_6@PAGE ldr d4, [x8, lCPI0_6@PAGEOFF] fmadd d3, d3, d4, d5 adrp x8, lCPI0_5@PAGE ldr d4, [x8, lCPI0_5@PAGEOFF] fmadd d2, d2, d3, d4 adrp x8, lCPI0_4@PAGE ldr d3, [x8, lCPI0_4@PAGEOFF] fmadd d1, d1, d2, d3 fmul d0, d0, d1 str d0, [sp, #56] ldr d0, [sp, #56] ldr d1, [sp, #64] fadd d0, d0, d1 str d0, [sp, #80] ldr d0, [sp, #104] ldr d1, [sp, #112] fsub d0, d0, d1 str d0, [sp, #32] ldr d0, [sp, #32] str d0, [sp, #120] ldr x8, [sp, #120] and x8, x8, #0xffffffff00000000 str x8, [sp, #120] ldr d0, [sp, #120] str d0, [sp, #32] ldr d0, [sp, #104] ldr d1, [sp, #32] fsub d0, d0, d1 ldr d1, [sp, #112] fsub d2, d0, d1 ldr d0, [sp, #96] ldr d1, [sp, #112] ldr d3, [sp, #80] fadd d1, d1, d3 fmadd d0, d0, d1, d2 str d0, [sp, #24] ldr d0, [sp, #32] adrp x8, lCPI0_3@PAGE ldr d1, [x8, lCPI0_3@PAGEOFF] fmul d0, d0, d1 str d0, [sp, #16] ldr s2, [sp] ; implicit-def: $d0 fmov s0, s2 sshll.2d v0, v0, #0 ; kill: def $d0 killed $d0 killed $q0 scvtf d0, d0 str d0, [sp, #48] ldr d0, [sp, #48] adrp x8, lCPI0_2@PAGE ldr d2, [x8, lCPI0_2@PAGEOFF] fmul d0, d0, d2 str d0, [sp, #40] ldr d0, [sp, #48] ldr d2, [sp, #24] ldr d3, [sp, #32] fadd d2, d2, d3 adrp x8, lCPI0_1@PAGE ldr d3, [x8, lCPI0_1@PAGEOFF] fmul d3, d2, d3 adrp x8, lCPI0_0@PAGE ldr d2, [x8, lCPI0_0@PAGEOFF] fmadd d2, d0, d2, d3 ldr d0, [sp, #24] fmadd d0, d0, d1, d2 str d0, [sp, #8] ldr d0, [sp, #40] ldr d1, [sp, #16] fadd d0, d0, d1 str d0, [sp, #72] ldr d0, [sp, #40] ldr d1, [sp, #72] fsub d0, d0, d1 ldr d1, [sp, #16] fadd d1, d0, d1 ldr d0, [sp, #8] fadd d0, d0, d1 str d0, [sp, #8] ldr d0, [sp, #72] str d0, [sp, #16] ldr d0, [sp, #8] ldr d1, [sp, #16] fadd d0, d0, d1 str d0, [sp, #136] b LBB0_15 LBB0_15: ldr d0, [sp, #136] add sp, sp, #144 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 my_log10 LCPI0_0: .quad 0x4350000000000000 ## double 18014398509481984 LCPI0_1: .quad 0x3fdbcb7b15200000 ## double 0.43429448187816888 LCPI0_2: .quad 0x3d59fef311f12b36 ## double 3.6942390771589308E-13 LCPI0_3: .quad 0x3dbb9438ca9aadd5 ## double 2.5082946711645275E-11 LCPI0_4: .quad 0x3fd34413509f6000 ## double 0.30102999566361177 LCPI0_5: .quad 0x3fe5555555555593 ## double 0.66666666666667351 LCPI0_6: .quad 0x3fd2492494229359 ## double 0.28571428743662391 LCPI0_7: .quad 0x3fc2f112df3e5244 ## double 0.14798198605116586 LCPI0_8: .quad 0x3fc7466496cb03de ## double 0.1818357216161805 LCPI0_9: .quad 0x3fd999999997fa04 ## double 0.39999999999409419 LCPI0_10: .quad 0x3fc39a09d078c69f ## double 0.15313837699209373 LCPI0_11: .quad 0x3fcc71c51d8e78af ## double 0.22222198432149784 LCPI0_12: .quad 0x4000000000000000 ## double 2 LCPI0_13: .quad 0x3fe0000000000000 ## double 0.5 LCPI0_14: .quad 0x3ff0000000000000 ## double 1 LCPI0_15: .quad 0xbff0000000000000 ## double -1 .section __TEXT,__text,regular,pure_instructions .globl _my_log10 .p2align 4, 0x90 _my_log10: ## @my_log10 .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 movsd %xmm0, -16(%rbp) movsd -16(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -24(%rbp) movq -24(%rbp), %rax shrq $32, %rax ## kill: def $eax killed $eax killed $rax movl %eax, -140(%rbp) movl $0, -144(%rbp) cmpl $1048576, -140(%rbp) ## imm = 0x100000 jb LBB0_2 ## %bb.1: movl -140(%rbp), %eax shrl $31, %eax cmpl $0, %eax je LBB0_7 LBB0_2: movq -24(%rbp), %rax shlq $1, %rax cmpq $0, %rax jne LBB0_4 ## %bb.3: movsd -16(%rbp), %xmm1 ## xmm1 = mem[0],zero mulsd -16(%rbp), %xmm1 movsd LCPI0_15(%rip), %xmm0 ## xmm0 = mem[0],zero divsd %xmm1, %xmm0 movsd %xmm0, -8(%rbp) jmp LBB0_15 LBB0_4: movl -140(%rbp), %eax shrl $31, %eax cmpl $0, %eax je LBB0_6 ## %bb.5: movsd -16(%rbp), %xmm0 ## xmm0 = mem[0],zero subsd -16(%rbp), %xmm0 xorps %xmm1, %xmm1 divsd %xmm1, %xmm0 movsd %xmm0, -8(%rbp) jmp LBB0_15 LBB0_6: movl -144(%rbp), %eax subl $54, %eax movl %eax, -144(%rbp) movsd LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero mulsd -16(%rbp), %xmm0 movsd %xmm0, -16(%rbp) movsd -16(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -24(%rbp) movq -24(%rbp), %rax shrq $32, %rax ## kill: def $eax killed $eax killed $rax movl %eax, -140(%rbp) jmp LBB0_14 LBB0_7: cmpl $2146435072, -140(%rbp) ## imm = 0x7FF00000 jb LBB0_9 ## %bb.8: movsd -16(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -8(%rbp) jmp LBB0_15 LBB0_9: cmpl $1072693248, -140(%rbp) ## imm = 0x3FF00000 jne LBB0_12 ## %bb.10: movq -24(%rbp), %rax shlq $32, %rax cmpq $0, %rax jne LBB0_12 ## %bb.11: xorps %xmm0, %xmm0 movsd %xmm0, -8(%rbp) jmp LBB0_15 LBB0_12: jmp LBB0_13 LBB0_13: jmp LBB0_14 LBB0_14: movl -140(%rbp), %eax addl $614242, %eax ## imm = 0x95F62 movl %eax, -140(%rbp) movl -140(%rbp), %eax shrl $20, %eax subl $1023, %eax ## imm = 0x3FF addl -144(%rbp), %eax movl %eax, -144(%rbp) movl -140(%rbp), %eax andl $1048575, %eax ## imm = 0xFFFFF addl $1072079006, %eax ## imm = 0x3FE6A09E movl %eax, -140(%rbp) movl -140(%rbp), %eax ## kill: def $rax killed $eax shlq $32, %rax movabsq $4294967295, %rcx ## imm = 0xFFFFFFFF andq -24(%rbp), %rcx orq %rcx, %rax movq %rax, -24(%rbp) movsd -24(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -16(%rbp) movsd -16(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd LCPI0_14(%rip), %xmm1 ## xmm1 = mem[0],zero subsd %xmm1, %xmm0 movsd %xmm0, -40(%rbp) movsd LCPI0_13(%rip), %xmm0 ## xmm0 = mem[0],zero mulsd -40(%rbp), %xmm0 mulsd -40(%rbp), %xmm0 movsd %xmm0, -32(%rbp) movsd -40(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd LCPI0_12(%rip), %xmm1 ## xmm1 = mem[0],zero addsd -40(%rbp), %xmm1 divsd %xmm1, %xmm0 movsd %xmm0, -48(%rbp) movsd -48(%rbp), %xmm0 ## xmm0 = mem[0],zero mulsd -48(%rbp), %xmm0 movsd %xmm0, -56(%rbp) movsd -56(%rbp), %xmm0 ## xmm0 = mem[0],zero mulsd -56(%rbp), %xmm0 movsd %xmm0, -72(%rbp) movsd -72(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd -72(%rbp), %xmm1 ## xmm1 = mem[0],zero movsd -72(%rbp), %xmm2 ## xmm2 = mem[0],zero movsd LCPI0_10(%rip), %xmm3 ## xmm3 = mem[0],zero mulsd %xmm3, %xmm2 movsd LCPI0_11(%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 %xmm0, -80(%rbp) movsd -56(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd -72(%rbp), %xmm1 ## xmm1 = mem[0],zero movsd -72(%rbp), %xmm2 ## xmm2 = mem[0],zero movsd -72(%rbp), %xmm3 ## xmm3 = mem[0],zero movsd LCPI0_7(%rip), %xmm4 ## xmm4 = mem[0],zero mulsd %xmm4, %xmm3 movsd LCPI0_8(%rip), %xmm4 ## xmm4 = mem[0],zero addsd %xmm4, %xmm3 mulsd %xmm3, %xmm2 movsd LCPI0_6(%rip), %xmm3 ## xmm3 = mem[0],zero addsd %xmm3, %xmm2 mulsd %xmm2, %xmm1 movsd LCPI0_5(%rip), %xmm2 ## xmm2 = mem[0],zero addsd %xmm2, %xmm1 mulsd %xmm1, %xmm0 movsd %xmm0, -88(%rbp) movsd -88(%rbp), %xmm0 ## xmm0 = mem[0],zero addsd -80(%rbp), %xmm0 movsd %xmm0, -64(%rbp) movsd -40(%rbp), %xmm0 ## xmm0 = mem[0],zero subsd -32(%rbp), %xmm0 movsd %xmm0, -112(%rbp) movsd -112(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -24(%rbp) movabsq $-4294967296, %rax ## imm = 0xFFFFFFFF00000000 andq -24(%rbp), %rax movq %rax, -24(%rbp) movsd -24(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -112(%rbp) movsd -40(%rbp), %xmm1 ## xmm1 = mem[0],zero subsd -112(%rbp), %xmm1 subsd -32(%rbp), %xmm1 movsd -48(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd -32(%rbp), %xmm2 ## xmm2 = mem[0],zero addsd -64(%rbp), %xmm2 mulsd %xmm2, %xmm0 addsd %xmm1, %xmm0 movsd %xmm0, -120(%rbp) movsd LCPI0_1(%rip), %xmm0 ## xmm0 = mem[0],zero mulsd -112(%rbp), %xmm0 movsd %xmm0, -128(%rbp) cvtsi2sdl -144(%rbp), %xmm0 movsd %xmm0, -96(%rbp) movsd LCPI0_4(%rip), %xmm0 ## xmm0 = mem[0],zero mulsd -96(%rbp), %xmm0 movsd %xmm0, -104(%rbp) movsd -96(%rbp), %xmm1 ## xmm1 = mem[0],zero movsd -120(%rbp), %xmm0 ## xmm0 = mem[0],zero addsd -112(%rbp), %xmm0 movsd LCPI0_3(%rip), %xmm2 ## xmm2 = mem[0],zero mulsd %xmm2, %xmm0 movsd LCPI0_2(%rip), %xmm2 ## xmm2 = mem[0],zero mulsd %xmm2, %xmm1 addsd %xmm0, %xmm1 movsd -120(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd LCPI0_1(%rip), %xmm2 ## xmm2 = mem[0],zero mulsd %xmm2, %xmm0 addsd %xmm1, %xmm0 movsd %xmm0, -136(%rbp) movsd -104(%rbp), %xmm0 ## xmm0 = mem[0],zero addsd -128(%rbp), %xmm0 movsd %xmm0, -72(%rbp) movsd -104(%rbp), %xmm0 ## xmm0 = mem[0],zero subsd -72(%rbp), %xmm0 addsd -128(%rbp), %xmm0 addsd -136(%rbp), %xmm0 movsd %xmm0, -136(%rbp) movsd -72(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -128(%rbp) movsd -136(%rbp), %xmm0 ## xmm0 = mem[0],zero addsd -128(%rbp), %xmm0 movsd %xmm0, -8(%rbp) LBB0_15: movsd -8(%rbp), %xmm0 ## xmm0 = mem[0],zero addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/3370.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _func_2 ; -- Begin function func_2 .p2align 2 _func_2: ; @func_2 .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #4 stur w8, [x29, #-4] adrp x8, _g_7@GOTPAGE ldr x8, [x8, _g_7@GOTPAGEOFF] ldr w8, [x8] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: sub x0, x29, #4 bl _modify b LBB0_7 LBB0_2: str wzr, [sp, #8] b LBB0_3 LBB0_3: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #8] subs w8, w8, #5 cset w8, eq tbnz w8, #0, LBB0_6 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_3 Depth=1 ldursw x9, [x29, #-4] adrp x8, _g_4@GOTPAGE ldr x8, [x8, _g_4@GOTPAGEOFF] add x8, x8, x9, lsl #2 str x8, [sp] ldr x8, [sp] str wzr, [x8] b LBB0_5 LBB0_5: ; in Loop: Header=BB0_3 Depth=1 ldr w8, [sp, #8] add w8, w8, #1 str w8, [sp, #8] b LBB0_3 LBB0_6: b LBB0_7 LBB0_7: 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 _func_2 ## -- Begin function func_2 .p2align 4, 0x90 _func_2: ## @func_2 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $4, -4(%rbp) movq _g_7@GOTPCREL(%rip), %rax cmpl $0, (%rax) je LBB0_2 ## %bb.1: leaq -4(%rbp), %rdi callq _modify jmp LBB0_7 LBB0_2: movl $0, -8(%rbp) LBB0_3: ## =>This Inner Loop Header: Depth=1 cmpl $5, -8(%rbp) je LBB0_6 ## %bb.4: ## in Loop: Header=BB0_3 Depth=1 movslq -4(%rbp), %rcx movq _g_4@GOTPCREL(%rip), %rax shlq $2, %rcx addq %rcx, %rax movq %rax, -16(%rbp) movq -16(%rbp), %rax movl $0, (%rax) ## %bb.5: ## in Loop: Header=BB0_3 Depth=1 movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) jmp LBB0_3 LBB0_6: jmp LBB0_7 LBB0_7: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/104827432.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 0x3fc3333333333333 ; double 0.14999999999999999 lCPI0_1: .quad 0x3fd1eb851eb851ec ; double 0.28000000000000003 .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] movi d0, #0000000000000000 stur s0, [x29, #-20] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf b LBB0_1 LBB0_1: ; =>This Loop Header: Depth=1 ; Child Loop BB0_12 Depth 2 bl _getchar sturb w0, [x29, #-5] sxtb w8, w0 subs w8, w8, #53 cset w8, eq tbnz w8, #0, LBB0_19 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldursb w8, [x29, #-5] subs w8, w8, #10 ; kill: def $x8 killed $w8 str x8, [sp, #16] ; 8-byte Folded Spill subs x8, x8, #42 cset w8, hi tbnz w8, #0, LBB0_9 ; %bb.3: ; 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_4: ; in Loop: Header=BB0_1 Depth=1 mov w8, #29696 movk w8, #18059, lsl #16 fmov s0, w8 stur s0, [x29, #-20] b LBB0_10 LBB0_5: ; in Loop: Header=BB0_1 Depth=1 mov w8, #47104 movk w8, #18106, lsl #16 fmov s0, w8 stur s0, [x29, #-20] b LBB0_10 LBB0_6: ; in Loop: Header=BB0_1 Depth=1 mov w8, #27648 movk w8, #18152, lsl #16 fmov s0, w8 stur s0, [x29, #-20] b LBB0_10 LBB0_7: ; in Loop: Header=BB0_1 Depth=1 mov w8, #27648 movk w8, #18024, lsl #16 fmov s0, w8 stur s0, [x29, #-20] b LBB0_10 LBB0_8: ; in Loop: Header=BB0_1 Depth=1 b LBB0_10 LBB0_9: ; in Loop: Header=BB0_1 Depth=1 adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf b LBB0_10 LBB0_10: ; in Loop: Header=BB0_1 Depth=1 ldur s0, [x29, #-20] fcmp s0, #0.0 cset w8, eq tbnz w8, #0, LBB0_18 b LBB0_11 LBB0_11: ; 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_12: ; Parent Loop BB0_1 Depth=1 ; => This Inner Loop Header: Depth=2 mov x9, sp sub x8, x29, #12 str x8, [x9] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _scanf subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB0_17 b LBB0_13 LBB0_13: ; in Loop: Header=BB0_12 Depth=2 ldur s0, [x29, #-12] ldur s1, [x29, #-20] fcmp s0, s1 cset w8, pl tbnz w8, #0, LBB0_15 b LBB0_14 LBB0_14: ; in Loop: Header=BB0_12 Depth=2 ldur s0, [x29, #-12] fcvt d0, s0 adrp x8, lCPI0_0@PAGE ldr d1, [x8, lCPI0_0@PAGEOFF] fmul d0, d0, d1 fcvt s0, d0 stur s0, [x29, #-16] b LBB0_16 LBB0_15: ; in Loop: Header=BB0_12 Depth=2 ldur s0, [x29, #-20] fcvt d0, s0 ldur s1, [x29, #-12] ldur s2, [x29, #-20] fsub s1, s1, s2 fcvt d1, s1 adrp x8, lCPI0_1@PAGE ldr d2, [x8, lCPI0_1@PAGEOFF] fmul d2, d1, d2 adrp x8, lCPI0_0@PAGE ldr d1, [x8, lCPI0_0@PAGEOFF] fmadd d0, d0, d1, d2 fcvt s0, d0 stur s0, [x29, #-16] b LBB0_16 LBB0_16: ; in Loop: Header=BB0_12 Depth=2 ldur s0, [x29, #-16] fcvt d0, s0 mov x8, sp str d0, [x8] adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf movi d0, #0000000000000000 stur s0, [x29, #-20] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf b LBB0_12 LBB0_17: ; in Loop: Header=BB0_1 Depth=1 b LBB0_18 LBB0_18: ; in Loop: Header=BB0_1 Depth=1 b LBB0_1 LBB0_19: mov w0, #0 ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc .p2align 2 lJTI0_0: .long LBB0_8-Ltmp0 .long LBB0_9-Ltmp0 .long LBB0_9-Ltmp0 .long LBB0_9-Ltmp0 .long LBB0_9-Ltmp0 .long LBB0_9-Ltmp0 .long LBB0_9-Ltmp0 .long LBB0_9-Ltmp0 .long LBB0_9-Ltmp0 .long LBB0_9-Ltmp0 .long LBB0_9-Ltmp0 .long LBB0_9-Ltmp0 .long LBB0_9-Ltmp0 .long LBB0_9-Ltmp0 .long LBB0_9-Ltmp0 .long LBB0_9-Ltmp0 .long LBB0_9-Ltmp0 .long LBB0_9-Ltmp0 .long LBB0_9-Ltmp0 .long LBB0_9-Ltmp0 .long LBB0_9-Ltmp0 .long LBB0_9-Ltmp0 .long LBB0_9-Ltmp0 .long LBB0_9-Ltmp0 .long LBB0_9-Ltmp0 .long LBB0_9-Ltmp0 .long LBB0_9-Ltmp0 .long LBB0_9-Ltmp0 .long LBB0_9-Ltmp0 .long LBB0_9-Ltmp0 .long LBB0_9-Ltmp0 .long LBB0_9-Ltmp0 .long LBB0_9-Ltmp0 .long LBB0_9-Ltmp0 .long LBB0_9-Ltmp0 .long LBB0_9-Ltmp0 .long LBB0_9-Ltmp0 .long LBB0_9-Ltmp0 .long LBB0_9-Ltmp0 .long LBB0_4-Ltmp0 .long LBB0_5-Ltmp0 .long LBB0_6-Ltmp0 .long LBB0_7-Ltmp0 ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Select from options: \n1) Single \n2) Head of HS \n3) Married \n4) Divorced \n5) Quit\n" l_.str.1: ; @.str.1 .asciz "Select from 1-4, or enter 5 to quit\n" l_.str.2: ; @.str.2 .asciz "Enter taxable income (q to go back): " l_.str.3: ; @.str.3 .asciz "%f" l_.str.4: ; @.str.4 .asciz "Tax due: $%.2f\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __TEXT,__literal4,4byte_literals .p2align 2 ## -- Begin function main LCPI0_0: .long 0x46686c00 ## float 14875 LCPI0_1: .long 0x46e86c00 ## float 29750 LCPI0_2: .long 0x46bab800 ## float 23900 LCPI0_3: .long 0x468b7400 ## float 17850 .section __TEXT,__literal8,8byte_literals .p2align 3 LCPI0_4: .quad 0x3fc3333333333333 ## double 0.14999999999999999 LCPI0_5: .quad 0x3fd1eb851eb851ec ## double 0.28000000000000003 .section __TEXT,__text,regular,pure_instructions .globl _main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl $0, -4(%rbp) xorps %xmm0, %xmm0 movss %xmm0, -20(%rbp) leaq L_.str(%rip), %rdi movb $0, %al callq _printf LBB0_1: ## =>This Loop Header: Depth=1 ## Child Loop BB0_11 Depth 2 callq _getchar ## kill: def $al killed $al killed $eax movb %al, -5(%rbp) movsbl %al, %eax cmpl $53, %eax je LBB0_18 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movsbl -5(%rbp), %eax addl $-10, %eax movl %eax, %ecx movq %rcx, -32(%rbp) ## 8-byte Spill subl $42, %eax ja LBB0_8 ## %bb.19: ## in Loop: Header=BB0_1 Depth=1 movq -32(%rbp), %rax ## 8-byte Reload leaq LJTI0_0(%rip), %rcx movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax LBB0_3: ## in Loop: Header=BB0_1 Depth=1 movss LCPI0_3(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, -20(%rbp) jmp LBB0_9 LBB0_4: ## in Loop: Header=BB0_1 Depth=1 movss LCPI0_2(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, -20(%rbp) jmp LBB0_9 LBB0_5: ## in Loop: Header=BB0_1 Depth=1 movss LCPI0_1(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, -20(%rbp) jmp LBB0_9 LBB0_6: ## in Loop: Header=BB0_1 Depth=1 movss LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, -20(%rbp) jmp LBB0_9 LBB0_7: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_9 LBB0_8: ## in Loop: Header=BB0_1 Depth=1 leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf LBB0_9: ## in Loop: Header=BB0_1 Depth=1 movss -20(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero xorps %xmm1, %xmm1 ucomiss %xmm1, %xmm0 jne LBB0_10 jp LBB0_10 jmp LBB0_17 LBB0_10: ## in Loop: Header=BB0_1 Depth=1 leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf LBB0_11: ## Parent Loop BB0_1 Depth=1 ## => This Inner Loop Header: Depth=2 leaq L_.str.3(%rip), %rdi leaq -12(%rbp), %rsi movb $0, %al callq _scanf cmpl $0, %eax je LBB0_16 ## %bb.12: ## in Loop: Header=BB0_11 Depth=2 movss -12(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero movss -20(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero ucomiss %xmm1, %xmm0 jbe LBB0_14 ## %bb.13: ## in Loop: Header=BB0_11 Depth=2 movss -12(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movsd LCPI0_4(%rip), %xmm1 ## xmm1 = mem[0],zero mulsd %xmm1, %xmm0 cvtsd2ss %xmm0, %xmm0 movss %xmm0, -16(%rbp) jmp LBB0_15 LBB0_14: ## in Loop: Header=BB0_11 Depth=2 movss -20(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movss -12(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero subss -20(%rbp), %xmm1 cvtss2sd %xmm1, %xmm1 movsd LCPI0_5(%rip), %xmm2 ## xmm2 = mem[0],zero mulsd %xmm2, %xmm1 movsd LCPI0_4(%rip), %xmm2 ## xmm2 = mem[0],zero mulsd %xmm2, %xmm0 addsd %xmm1, %xmm0 cvtsd2ss %xmm0, %xmm0 movss %xmm0, -16(%rbp) LBB0_15: ## in Loop: Header=BB0_11 Depth=2 movss -16(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 leaq L_.str.4(%rip), %rdi movb $1, %al callq _printf xorps %xmm0, %xmm0 movss %xmm0, -20(%rbp) leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf jmp LBB0_11 LBB0_16: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_17 LBB0_17: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_1 LBB0_18: xorl %eax, %eax addq $32, %rsp popq %rbp retq .cfi_endproc .p2align 2, 0x90 .data_region jt32 .set L0_0_set_7, LBB0_7-LJTI0_0 .set L0_0_set_8, LBB0_8-LJTI0_0 .set L0_0_set_3, LBB0_3-LJTI0_0 .set L0_0_set_4, LBB0_4-LJTI0_0 .set L0_0_set_5, LBB0_5-LJTI0_0 .set L0_0_set_6, LBB0_6-LJTI0_0 LJTI0_0: .long L0_0_set_7 .long L0_0_set_8 .long L0_0_set_8 .long L0_0_set_8 .long L0_0_set_8 .long L0_0_set_8 .long L0_0_set_8 .long L0_0_set_8 .long L0_0_set_8 .long L0_0_set_8 .long L0_0_set_8 .long L0_0_set_8 .long L0_0_set_8 .long L0_0_set_8 .long L0_0_set_8 .long L0_0_set_8 .long L0_0_set_8 .long L0_0_set_8 .long L0_0_set_8 .long L0_0_set_8 .long L0_0_set_8 .long L0_0_set_8 .long L0_0_set_8 .long L0_0_set_8 .long L0_0_set_8 .long L0_0_set_8 .long L0_0_set_8 .long L0_0_set_8 .long L0_0_set_8 .long L0_0_set_8 .long L0_0_set_8 .long L0_0_set_8 .long L0_0_set_8 .long L0_0_set_8 .long L0_0_set_8 .long L0_0_set_8 .long L0_0_set_8 .long L0_0_set_8 .long L0_0_set_8 .long L0_0_set_3 .long L0_0_set_4 .long L0_0_set_5 .long L0_0_set_6 .end_data_region ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Select from options: \n1) Single \n2) Head of HS \n3) Married \n4) Divorced \n5) Quit\n" L_.str.1: ## @.str.1 .asciz "Select from 1-4, or enter 5 to quit\n" L_.str.2: ## @.str.2 .asciz "Enter taxable income (q to go back): " L_.str.3: ## @.str.3 .asciz "%f" L_.str.4: ## @.str.4 .asciz "Tax due: $%.2f\n" .subsections_via_symbols
the_stack_data/223063.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/115765693.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #288 .cfi_def_cfa_offset 288 stp x28, x27, [sp, #256] ; 16-byte Folded Spill stp x29, x30, [sp, #272] ; 16-byte Folded Spill add x29, sp, #272 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w27, -24 .cfi_offset w28, -32 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] str wzr, [sp, #44] str w0, [sp, #40] str x1, [sp, #32] ldr w8, [sp, #40] subs w8, w8, #2 cset w9, lt ; 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, #26 adrp x3, l_.str.1@PAGE add x3, x3, l_.str.1@PAGEOFF bl ___assert_rtn LBB0_2: b LBB0_3 LBB0_3: mov w8, #111 strb w8, [sp, #31] ldrsb w1, [sp, #31] sub x0, x29, #124 mov x2, #100 str x2, [sp, #8] ; 8-byte Folded Spill bl _memset ldr x2, [sp, #8] ; 8-byte Folded Reload ldrsb w1, [sp, #31] add x0, sp, #48 bl _memset ldr x8, [sp, #32] ldr x8, [x8, #8] ldrsb w8, [x8] subs w8, w8, #97 ; kill: def $x8 killed $w8 str x8, [sp, #16] ; 8-byte Folded Spill subs x8, x8, #8 cset w8, hi tbnz w8, #0, LBB0_30 ; %bb.4: 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_5: mov w8, #122 sturb w8, [x29, #-25] mov w8, #120 strb w8, [sp, #147] str wzr, [sp, #24] b LBB0_6 LBB0_6: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #24] subs w8, w8, #100 cset w8, gt tbnz w8, #0, LBB0_12 b LBB0_7 LBB0_7: ; in Loop: Header=BB0_6 Depth=1 ldrsw x2, [sp, #24] sub x0, x29, #124 add x1, sp, #48 bl _strncasecmp subs w8, w0, #0 cset w8, eq and w8, w8, #0x1 ldr w9, [sp, #24] subs w9, w9, #100 cset w9, lt and w9, w9, #0x1 subs w8, w8, w9 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, #39 adrp x3, l_.str.2@PAGE add x3, x3, l_.str.2@PAGEOFF bl ___assert_rtn LBB0_9: ; in Loop: Header=BB0_6 Depth=1 b LBB0_10 LBB0_10: ; in Loop: Header=BB0_6 Depth=1 b LBB0_11 LBB0_11: ; in Loop: Header=BB0_6 Depth=1 ldr w8, [sp, #24] add w8, w8, #1 str w8, [sp, #24] b LBB0_6 LBB0_12: sub x0, x29, #124 sturb wzr, [x29, #-25] add x1, sp, #48 strb wzr, [sp, #147] mov x2, #200 bl _strncasecmp subs w8, w0, #0 cset w9, ne ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB0_14 b LBB0_13 LBB0_13: 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, #42 adrp x3, l_.str.3@PAGE add x3, x3, l_.str.3@PAGEOFF bl ___assert_rtn LBB0_14: b LBB0_15 LBB0_15: b LBB0_30 LBB0_16: sub x8, x29, #124 subs x0, x8, #1 add x1, sp, #48 mov x2, #1 bl _strncasecmp str w0, [sp, #44] b LBB0_31 LBB0_17: add x8, sp, #48 subs x1, x8, #1 sub x0, x29, #124 mov x2, #1 bl _strncasecmp str w0, [sp, #44] b LBB0_31 LBB0_18: sub x8, x29, #124 add x0, x8, #100 add x1, sp, #48 mov x2, #1 bl _strncasecmp str w0, [sp, #44] b LBB0_31 LBB0_19: add x8, sp, #48 add x1, x8, #100 sub x0, x29, #124 mov x2, #1 bl _strncasecmp str w0, [sp, #44] b LBB0_31 LBB0_20: sub x8, x29, #124 add x0, x8, #1 add x1, sp, #48 mov x2, #100 bl _strncasecmp str w0, [sp, #44] b LBB0_31 LBB0_21: add x8, sp, #48 add x1, x8, #1 sub x0, x29, #124 mov x2, #100 bl _strncasecmp str w0, [sp, #44] b LBB0_31 LBB0_22: sub x0, x29, #124 sturb wzr, [x29, #-25] add x1, sp, #48 mov x2, #200 bl _strncasecmp subs w8, w0, #0 cset w9, eq ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB0_24 b LBB0_23 LBB0_23: 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, #58 adrp x3, l_.str.4@PAGE add x3, x3, l_.str.4@PAGEOFF bl ___assert_rtn LBB0_24: b LBB0_25 LBB0_25: b LBB0_30 LBB0_26: add x1, sp, #48 strb wzr, [sp, #147] sub x0, x29, #124 mov x2, #200 bl _strncasecmp subs w8, w0, #0 cset w9, eq ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB0_28 b LBB0_27 LBB0_27: 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, #62 adrp x3, l_.str.4@PAGE add x3, x3, l_.str.4@PAGEOFF bl ___assert_rtn LBB0_28: b LBB0_29 LBB0_29: b LBB0_30 LBB0_30: str wzr, [sp, #44] b LBB0_31 LBB0_31: ldr w8, [sp, #44] str w8, [sp, #4] ; 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_33 b LBB0_32 LBB0_32: bl ___stack_chk_fail LBB0_33: ldr w0, [sp, #4] ; 4-byte Folded Reload ldp x29, x30, [sp, #272] ; 16-byte Folded Reload ldp x28, x27, [sp, #256] ; 16-byte Folded Reload add sp, sp, #288 ret .cfi_endproc .p2align 2 lJTI0_0: .long LBB0_5-Ltmp0 .long LBB0_16-Ltmp0 .long LBB0_17-Ltmp0 .long LBB0_18-Ltmp0 .long LBB0_19-Ltmp0 .long LBB0_20-Ltmp0 .long LBB0_21-Ltmp0 .long LBB0_22-Ltmp0 .long LBB0_26-Ltmp0 ; -- End function .section __TEXT,__cstring,cstring_literals l___func__.main: ; @__func__.main .asciz "main" l_.str: ; @.str .asciz "684381.c" l_.str.1: ; @.str.1 .asciz "argc >= 2" l_.str.2: ; @.str.2 .asciz "(strncasecmp(s1, s2, i) == 0) == (i < size)" l_.str.3: ; @.str.3 .asciz "strncasecmp(s1, s2, 2*size) == 0" l_.str.4: ; @.str.4 .asciz "strncasecmp(s1, s2, 2*size) != 0" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $272, %rsp ## imm = 0x110 movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -228(%rbp) movl %edi, -232(%rbp) movq %rsi, -240(%rbp) cmpl $2, -232(%rbp) setge %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 $26, %edx callq ___assert_rtn LBB0_2: jmp LBB0_3 LBB0_3: movb $111, -241(%rbp) movzbl -241(%rbp), %eax imull $16843009, %eax, %ecx ## imm = 0x1010101 movl %ecx, -16(%rbp) movd %eax, %xmm0 xorps %xmm1, %xmm1 pshufb %xmm1, %xmm0 movaps %xmm0, -32(%rbp) movaps %xmm0, -48(%rbp) movaps %xmm0, -64(%rbp) movaps %xmm0, -80(%rbp) movaps %xmm0, -96(%rbp) movaps %xmm0, -112(%rbp) movzbl -241(%rbp), %eax imull $16843009, %eax, %ecx ## imm = 0x1010101 movl %ecx, -128(%rbp) movd %eax, %xmm0 pshufb %xmm1, %xmm0 movaps %xmm0, -144(%rbp) movaps %xmm0, -160(%rbp) movaps %xmm0, -176(%rbp) movaps %xmm0, -192(%rbp) movaps %xmm0, -208(%rbp) movaps %xmm0, -224(%rbp) movq -240(%rbp), %rax movq 8(%rax), %rax movsbl (%rax), %eax addl $-97, %eax movl %eax, %ecx movq %rcx, -256(%rbp) ## 8-byte Spill subl $8, %eax ja LBB0_29 ## %bb.33: movq -256(%rbp), %rax ## 8-byte Reload leaq LJTI0_0(%rip), %rcx movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax LBB0_4: movb $122, -13(%rbp) movb $120, -125(%rbp) movl $0, -248(%rbp) LBB0_5: ## =>This Inner Loop Header: Depth=1 cmpl $100, -248(%rbp) jg LBB0_11 ## %bb.6: ## in Loop: Header=BB0_5 Depth=1 leaq -112(%rbp), %rdi leaq -224(%rbp), %rsi movslq -248(%rbp), %rdx callq _strncasecmp cmpl $0, %eax sete %al andb $1, %al movzbl %al, %eax cmpl $100, -248(%rbp) setl %cl andb $1, %cl movzbl %cl, %ecx cmpl %ecx, %eax sete %al xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB0_8 ## %bb.7: leaq L___func__.main(%rip), %rdi leaq L_.str(%rip), %rsi leaq L_.str.2(%rip), %rcx movl $39, %edx callq ___assert_rtn LBB0_8: ## in Loop: Header=BB0_5 Depth=1 jmp LBB0_9 LBB0_9: ## in Loop: Header=BB0_5 Depth=1 jmp LBB0_10 LBB0_10: ## in Loop: Header=BB0_5 Depth=1 movl -248(%rbp), %eax addl $1, %eax movl %eax, -248(%rbp) jmp LBB0_5 LBB0_11: movb $0, -13(%rbp) movb $0, -125(%rbp) leaq -112(%rbp), %rdi leaq -224(%rbp), %rsi movl $200, %edx callq _strncasecmp cmpl $0, %eax sete %al xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB0_13 ## %bb.12: leaq L___func__.main(%rip), %rdi leaq L_.str(%rip), %rsi leaq L_.str.3(%rip), %rcx movl $42, %edx callq ___assert_rtn LBB0_13: jmp LBB0_14 LBB0_14: jmp LBB0_29 LBB0_15: leaq -112(%rbp), %rdi addq $-1, %rdi leaq -224(%rbp), %rsi movl $1, %edx callq _strncasecmp movl %eax, -228(%rbp) jmp LBB0_30 LBB0_16: leaq -112(%rbp), %rdi leaq -224(%rbp), %rsi addq $-1, %rsi movl $1, %edx callq _strncasecmp movl %eax, -228(%rbp) jmp LBB0_30 LBB0_17: leaq -112(%rbp), %rdi addq $100, %rdi leaq -224(%rbp), %rsi movl $1, %edx callq _strncasecmp movl %eax, -228(%rbp) jmp LBB0_30 LBB0_18: leaq -112(%rbp), %rdi leaq -224(%rbp), %rsi addq $100, %rsi movl $1, %edx callq _strncasecmp movl %eax, -228(%rbp) jmp LBB0_30 LBB0_19: leaq -112(%rbp), %rdi addq $1, %rdi leaq -224(%rbp), %rsi movl $100, %edx callq _strncasecmp movl %eax, -228(%rbp) jmp LBB0_30 LBB0_20: leaq -112(%rbp), %rdi leaq -224(%rbp), %rsi addq $1, %rsi movl $100, %edx callq _strncasecmp movl %eax, -228(%rbp) jmp LBB0_30 LBB0_21: movb $0, -13(%rbp) leaq -112(%rbp), %rdi leaq -224(%rbp), %rsi movl $200, %edx callq _strncasecmp cmpl $0, %eax setne %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.4(%rip), %rcx movl $58, %edx callq ___assert_rtn LBB0_23: jmp LBB0_24 LBB0_24: jmp LBB0_29 LBB0_25: movb $0, -125(%rbp) leaq -112(%rbp), %rdi leaq -224(%rbp), %rsi movl $200, %edx callq _strncasecmp cmpl $0, %eax setne %al xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB0_27 ## %bb.26: leaq L___func__.main(%rip), %rdi leaq L_.str(%rip), %rsi leaq L_.str.4(%rip), %rcx movl $62, %edx callq ___assert_rtn LBB0_27: jmp LBB0_28 LBB0_28: jmp LBB0_29 LBB0_29: movl $0, -228(%rbp) LBB0_30: movl -228(%rbp), %eax movl %eax, -260(%rbp) ## 4-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_32 ## %bb.31: movl -260(%rbp), %eax ## 4-byte Reload addq $272, %rsp ## imm = 0x110 popq %rbp retq LBB0_32: callq ___stack_chk_fail ud2 .cfi_endproc .p2align 2, 0x90 .data_region jt32 .set L0_0_set_4, LBB0_4-LJTI0_0 .set L0_0_set_15, LBB0_15-LJTI0_0 .set L0_0_set_16, LBB0_16-LJTI0_0 .set L0_0_set_17, LBB0_17-LJTI0_0 .set L0_0_set_18, LBB0_18-LJTI0_0 .set L0_0_set_19, LBB0_19-LJTI0_0 .set L0_0_set_20, LBB0_20-LJTI0_0 .set L0_0_set_21, LBB0_21-LJTI0_0 .set L0_0_set_25, LBB0_25-LJTI0_0 LJTI0_0: .long L0_0_set_4 .long L0_0_set_15 .long L0_0_set_16 .long L0_0_set_17 .long L0_0_set_18 .long L0_0_set_19 .long L0_0_set_20 .long L0_0_set_21 .long L0_0_set_25 .end_data_region ## -- End function .section __TEXT,__cstring,cstring_literals L___func__.main: ## @__func__.main .asciz "main" L_.str: ## @.str .asciz "684381.c" L_.str.1: ## @.str.1 .asciz "argc >= 2" L_.str.2: ## @.str.2 .asciz "(strncasecmp(s1, s2, i) == 0) == (i < size)" L_.str.3: ## @.str.3 .asciz "strncasecmp(s1, s2, 2*size) == 0" L_.str.4: ## @.str.4 .asciz "strncasecmp(s1, s2, 2*size) != 0" .subsections_via_symbols
the_stack_data/684381.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, #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] str wzr, [sp, #4] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #4] subs w8, w8, #10 cset w8, ge tbnz w8, #0, LBB0_4 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldr w0, [sp, #4] bl _baz b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #4] add w8, w8, #1 str w8, [sp, #4] b LBB0_1 LBB0_4: ldur w8, [x29, #-4] str w8, [sp, #4] b LBB0_5 LBB0_5: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #4] subs w8, w8, #10 cset w8, gt tbnz w8, #0, LBB0_8 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_5 Depth=1 ldr w0, [sp, #4] bl _baz b LBB0_7 LBB0_7: ; in Loop: Header=BB0_5 Depth=1 ldr w8, [sp, #4] add w8, w8, #4 str w8, [sp, #4] b LBB0_5 LBB0_8: ldur w8, [x29, #-4] str w8, [sp, #4] b LBB0_9 LBB0_9: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #4] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB0_12 b LBB0_10 LBB0_10: ; in Loop: Header=BB0_9 Depth=1 ldur w0, [x29, #-4] bl _baz b LBB0_11 LBB0_11: ; in Loop: Header=BB0_9 Depth=1 ldr w8, [sp, #4] subs w8, w8, #1 str w8, [sp, #4] b LBB0_9 LBB0_12: ldur w8, [x29, #-4] str w8, [sp, #4] b LBB0_13 LBB0_13: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #4] ldr w9, [sp, #8] subs w8, w8, w9 cset w8, lt tbnz w8, #0, LBB0_16 b LBB0_14 LBB0_14: ; in Loop: Header=BB0_13 Depth=1 ldr w0, [sp, #4] bl _baz b LBB0_15 LBB0_15: ; in Loop: Header=BB0_13 Depth=1 ldr w8, [sp, #4] subs w8, w8, #1 str w8, [sp, #4] b LBB0_13 LBB0_16: str wzr, [sp, #4] b LBB0_17 LBB0_17: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #4] subs w8, w8, #10 cset w8, ge tbnz w8, #0, LBB0_19 b LBB0_18 LBB0_18: ; in Loop: Header=BB0_17 Depth=1 ldr w0, [sp, #4] bl _baz ldr w8, [sp, #4] add w8, w8, #1 str w8, [sp, #4] b LBB0_17 LBB0_19: str wzr, [sp, #4] b LBB0_20 LBB0_20: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #4] subs w8, w8, #10 cset w8, lt tbnz w8, #0, LBB0_22 b LBB0_21 LBB0_21: b LBB0_24 LBB0_22: ; in Loop: Header=BB0_20 Depth=1 ldr w0, [sp, #4] bl _baz b LBB0_23 LBB0_23: ; in Loop: Header=BB0_20 Depth=1 ldr w8, [sp, #4] subs w8, w8, #1 str w8, [sp, #4] b LBB0_20 LBB0_24: str wzr, [sp, #4] b LBB0_25 LBB0_25: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #4] subs w8, w8, #10 cset w8, ge mov w9, #0 str w9, [sp] ; 4-byte Folded Spill tbnz w8, #0, LBB0_27 b LBB0_26 LBB0_26: ; in Loop: Header=BB0_25 Depth=1 ldur w8, [x29, #-4] subs w8, w8, #4 cset w8, gt str w8, [sp] ; 4-byte Folded Spill b LBB0_27 LBB0_27: ; in Loop: Header=BB0_25 Depth=1 ldr w8, [sp] ; 4-byte Folded Reload tbz w8, #0, LBB0_30 b LBB0_28 LBB0_28: ; in Loop: Header=BB0_25 Depth=1 ldr w0, [sp, #4] bl _baz b LBB0_29 LBB0_29: ; in Loop: Header=BB0_25 Depth=1 ldr w8, [sp, #4] subs w8, w8, #3 str w8, [sp, #4] b LBB0_25 LBB0_30: str wzr, [sp, #4] b LBB0_31 LBB0_31: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #4] subs w8, w8, #10 cset w8, ge tbnz w8, #0, LBB0_34 b LBB0_32 LBB0_32: ; in Loop: Header=BB0_31 Depth=1 ldr w0, [sp, #4] bl _baz b LBB0_33 LBB0_33: ; in Loop: Header=BB0_31 Depth=1 ldr w8, [sp, #4] subs w8, w8, #3 str w8, [sp, #4] ldur w8, [x29, #-4] add w8, w8, #2 stur w8, [x29, #-4] b LBB0_31 LBB0_34: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _foo ## -- Begin function foo .p2align 4, 0x90 _foo: ## @foo .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl %edi, -4(%rbp) movl %esi, -8(%rbp) movl $0, -12(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 cmpl $10, -12(%rbp) jge LBB0_4 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl -12(%rbp), %edi callq _baz ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB0_1 LBB0_4: movl -4(%rbp), %eax movl %eax, -12(%rbp) LBB0_5: ## =>This Inner Loop Header: Depth=1 cmpl $10, -12(%rbp) jg LBB0_8 ## %bb.6: ## in Loop: Header=BB0_5 Depth=1 movl -12(%rbp), %edi callq _baz ## %bb.7: ## in Loop: Header=BB0_5 Depth=1 movl -12(%rbp), %eax addl $4, %eax movl %eax, -12(%rbp) jmp LBB0_5 LBB0_8: movl -4(%rbp), %eax movl %eax, -12(%rbp) LBB0_9: ## =>This Inner Loop Header: Depth=1 cmpl $0, -12(%rbp) jle LBB0_12 ## %bb.10: ## in Loop: Header=BB0_9 Depth=1 movl -4(%rbp), %edi callq _baz ## %bb.11: ## in Loop: Header=BB0_9 Depth=1 movl -12(%rbp), %eax subl $1, %eax movl %eax, -12(%rbp) jmp LBB0_9 LBB0_12: movl -4(%rbp), %eax movl %eax, -12(%rbp) LBB0_13: ## =>This Inner Loop Header: Depth=1 movl -12(%rbp), %eax cmpl -8(%rbp), %eax jl LBB0_16 ## %bb.14: ## in Loop: Header=BB0_13 Depth=1 movl -12(%rbp), %edi callq _baz ## %bb.15: ## in Loop: Header=BB0_13 Depth=1 movl -12(%rbp), %eax addl $-1, %eax movl %eax, -12(%rbp) jmp LBB0_13 LBB0_16: movl $0, -12(%rbp) LBB0_17: ## =>This Inner Loop Header: Depth=1 cmpl $10, -12(%rbp) jge LBB0_19 ## %bb.18: ## in Loop: Header=BB0_17 Depth=1 movl -12(%rbp), %edi callq _baz movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB0_17 LBB0_19: movl $0, -12(%rbp) LBB0_20: ## =>This Inner Loop Header: Depth=1 cmpl $10, -12(%rbp) jl LBB0_22 ## %bb.21: jmp LBB0_24 LBB0_22: ## in Loop: Header=BB0_20 Depth=1 movl -12(%rbp), %edi callq _baz ## %bb.23: ## in Loop: Header=BB0_20 Depth=1 movl -12(%rbp), %eax addl $-1, %eax movl %eax, -12(%rbp) jmp LBB0_20 LBB0_24: movl $0, -12(%rbp) LBB0_25: ## =>This Inner Loop Header: Depth=1 xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $10, -12(%rbp) movb %al, -13(%rbp) ## 1-byte Spill jge LBB0_27 ## %bb.26: ## in Loop: Header=BB0_25 Depth=1 cmpl $4, -4(%rbp) setg %al movb %al, -13(%rbp) ## 1-byte Spill LBB0_27: ## in Loop: Header=BB0_25 Depth=1 movb -13(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB0_28 jmp LBB0_30 LBB0_28: ## in Loop: Header=BB0_25 Depth=1 movl -12(%rbp), %edi callq _baz ## %bb.29: ## in Loop: Header=BB0_25 Depth=1 movl -12(%rbp), %eax subl $3, %eax movl %eax, -12(%rbp) jmp LBB0_25 LBB0_30: movl $0, -12(%rbp) LBB0_31: ## =>This Inner Loop Header: Depth=1 cmpl $10, -12(%rbp) jge LBB0_34 ## %bb.32: ## in Loop: Header=BB0_31 Depth=1 movl -12(%rbp), %edi callq _baz ## %bb.33: ## in Loop: Header=BB0_31 Depth=1 movl -12(%rbp), %eax subl $3, %eax movl %eax, -12(%rbp) movl -4(%rbp), %eax addl $2, %eax movl %eax, -4(%rbp) jmp LBB0_31 LBB0_34: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/92325271.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _createStack ; -- Begin function createStack .p2align 2 _createStack: ; @createStack .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov x0, #8 bl _malloc str x0, [sp, #8] ldr x8, [sp, #8] ; kill: def $x9 killed $xzr str xzr, [x8] ldr x0, [sp, #8] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _pushStack ; -- Begin function pushStack .p2align 2 _pushStack: ; @pushStack .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #8] str w1, [sp, #4] ldr x8, [sp, #8] ldr x0, [x8] ldr w1, [sp, #4] bl _insertInTop ldr x8, [sp, #8] str x0, [x8] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _insertInTop ; -- Begin function insertInTop .p2align 2 _insertInTop: ; @insertInTop .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] mov x0, #16 bl _malloc str x0, [sp, #8] ldur w8, [x29, #-12] ldr x9, [sp, #8] str w8, [x9] ldur x8, [x29, #-8] ldr x9, [sp, #8] str x8, [x9, #8] ldr x0, [sp, #8] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _stackNull ; -- Begin function stackNull .p2align 2 _stackNull: ; @stackNull .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp] ldr x8, [sp] ldr x8, [x8] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB3_2 b LBB3_1 LBB3_1: mov w8, #1 str w8, [sp, #12] b LBB3_3 LBB3_2: str wzr, [sp, #12] b LBB3_3 LBB3_3: ldr w0, [sp, #12] add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _displayStack ; -- Begin function displayStack .p2align 2 _displayStack: ; @displayStack .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 ldr x8, [sp, #16] ldr x8, [x8] stur x8, [x29, #-8] b LBB4_1 LBB4_1: ; =>This Inner Loop Header: Depth=1 ldur x8, [x29, #-8] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB4_3 b LBB4_2 LBB4_2: ; in Loop: Header=BB4_1 Depth=1 ldur x8, [x29, #-8] ldr w9, [x8] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldur x8, [x29, #-8] ldr x8, [x8, #8] stur x8, [x29, #-8] b LBB4_1 LBB4_3: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _MaiorStack ; -- Begin function MaiorStack .p2align 2 _MaiorStack: ; @MaiorStack .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] ldur x8, [x29, #-8] ldr x8, [x8] str x8, [sp, #16] mov x0, #16 bl _malloc str x0, [sp, #8] ldr x8, [sp, #16] ldr w8, [x8] ldr x9, [sp, #8] str w8, [x9] b LBB5_1 LBB5_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #16] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB5_5 b LBB5_2 LBB5_2: ; in Loop: Header=BB5_1 Depth=1 ldr x8, [sp, #16] ldr w8, [x8] ldr x9, [sp, #8] ldr w9, [x9] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB5_4 b LBB5_3 LBB5_3: ; in Loop: Header=BB5_1 Depth=1 ldr x8, [sp, #16] ldr w8, [x8] ldr x9, [sp, #8] str w8, [x9] b LBB5_4 LBB5_4: ; in Loop: Header=BB5_1 Depth=1 ldr x8, [sp, #16] ldr x8, [x8, #8] str x8, [sp, #16] b LBB5_1 LBB5_5: ldr x8, [sp, #8] ldr w9, [x8] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf 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, #4] ; 4-byte Folded Spill stur wzr, [x29, #-4] bl _createStack str x0, [sp, #16] ldr x0, [sp, #16] mov w1, #1 bl _pushStack ldr x0, [sp, #16] mov w1, #55 bl _pushStack ldr x0, [sp, #16] mov w1, #2 bl _pushStack ldr x0, [sp, #16] mov w1, #3 bl _pushStack ldr x0, [sp, #16] bl _displayStack ldr x0, [sp, #16] bl _MaiorStack 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 .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d -> " l_.str.1: ; @.str.1 .asciz "\nMaior da Stack: < %d > " .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _createStack ## -- Begin function createStack .p2align 4, 0x90 _createStack: ## @createStack .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $8, %edi callq _malloc movq %rax, -8(%rbp) movq -8(%rbp), %rax movq $0, (%rax) movq -8(%rbp), %rax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _pushStack ## -- Begin function pushStack .p2align 4, 0x90 _pushStack: ## @pushStack .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) movq -8(%rbp), %rax movq (%rax), %rdi movl -12(%rbp), %esi callq _insertInTop movq %rax, %rcx movq -8(%rbp), %rax movq %rcx, (%rax) addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _insertInTop ## -- Begin function insertInTop .p2align 4, 0x90 _insertInTop: ## @insertInTop .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 $16, %edi callq _malloc movq %rax, -24(%rbp) movl -12(%rbp), %ecx movq -24(%rbp), %rax movl %ecx, (%rax) movq -8(%rbp), %rcx movq -24(%rbp), %rax movq %rcx, 8(%rax) movq -24(%rbp), %rax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _stackNull ## -- Begin function stackNull .p2align 4, 0x90 _stackNull: ## @stackNull .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -16(%rbp) movq -16(%rbp), %rax cmpq $0, (%rax) jne LBB3_2 ## %bb.1: movl $1, -4(%rbp) jmp LBB3_3 LBB3_2: movl $0, -4(%rbp) LBB3_3: movl -4(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .globl _displayStack ## -- Begin function displayStack .p2align 4, 0x90 _displayStack: ## @displayStack .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 -16(%rbp), %rax movq (%rax), %rax movq %rax, -8(%rbp) LBB4_1: ## =>This Inner Loop Header: Depth=1 cmpq $0, -8(%rbp) je LBB4_3 ## %bb.2: ## in Loop: Header=BB4_1 Depth=1 movq -8(%rbp), %rax movl (%rax), %esi leaq L_.str(%rip), %rdi movb $0, %al callq _printf movq -8(%rbp), %rax movq 8(%rax), %rax movq %rax, -8(%rbp) jmp LBB4_1 LBB4_3: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _MaiorStack ## -- Begin function MaiorStack .p2align 4, 0x90 _MaiorStack: ## @MaiorStack .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movq -8(%rbp), %rax movq (%rax), %rax movq %rax, -16(%rbp) movl $16, %edi callq _malloc movq %rax, -24(%rbp) movq -16(%rbp), %rax movl (%rax), %ecx movq -24(%rbp), %rax movl %ecx, (%rax) LBB5_1: ## =>This Inner Loop Header: Depth=1 cmpq $0, -16(%rbp) je LBB5_5 ## %bb.2: ## in Loop: Header=BB5_1 Depth=1 movq -16(%rbp), %rax movl (%rax), %eax movq -24(%rbp), %rcx cmpl (%rcx), %eax jle LBB5_4 ## %bb.3: ## in Loop: Header=BB5_1 Depth=1 movq -16(%rbp), %rax movl (%rax), %ecx movq -24(%rbp), %rax movl %ecx, (%rax) LBB5_4: ## in Loop: Header=BB5_1 Depth=1 movq -16(%rbp), %rax movq 8(%rax), %rax movq %rax, -16(%rbp) jmp LBB5_1 LBB5_5: movq -24(%rbp), %rax movl (%rax), %esi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl $0, -4(%rbp) callq _createStack movq %rax, -16(%rbp) movq -16(%rbp), %rdi movl $1, %esi callq _pushStack movq -16(%rbp), %rdi movl $55, %esi callq _pushStack movq -16(%rbp), %rdi movl $2, %esi callq _pushStack movq -16(%rbp), %rdi movl $3, %esi callq _pushStack movq -16(%rbp), %rdi movb $0, %al callq _displayStack movq -16(%rbp), %rdi callq _MaiorStack xorl %eax, %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d -> " L_.str.1: ## @.str.1 .asciz "\nMaior da Stack: < %d > " .subsections_via_symbols
the_stack_data/107952142.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] adrp x8, _endsp@PAGE ldr x9, [x8, _endsp@PAGEOFF] mov w8, #225 strb w8, [x9] adrp x8, _a@GOTPAGE ldr x8, [x8, _a@GOTPAGEOFF] ldrb w8, [x8] adrp x9, _a_reg@PAGE ldr x9, [x9, _a_reg@PAGEOFF] strb w8, [x9] adrp x8, _x@GOTPAGE ldr x8, [x8, _x@GOTPAGEOFF] ldrb w8, [x8] adrp x9, _x_reg@PAGE ldr x9, [x9, _x_reg@PAGEOFF] strb w8, [x9] adrp x8, _y@GOTPAGE ldr x8, [x8, _y@GOTPAGEOFF] ldrb w8, [x8] adrp x9, _y_reg@PAGE ldr x9, [x9, _y_reg@PAGEOFF] strb w8, [x9] adrp x8, _p@GOTPAGE ldr x8, [x8, _p@GOTPAGEOFF] ldrb w8, [x8] adrp x9, _p_reg@PAGE ldr x9, [x9, _p_reg@PAGEOFF] strb w8, [x9] adrp x8, _s@GOTPAGE ldr x8, [x8, _s@GOTPAGEOFF] ldrb w8, [x8] adrp x9, _s_reg@PAGE ldr x9, [x9, _s_reg@PAGEOFF] strb w8, [x9] bl _mos_init ands w8, w0, #0xff cset w8, eq tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: stur wzr, [x29, #-4] b LBB0_3 LBB0_2: adrp x8, _inbuff@PAGE ldr x8, [x8, _inbuff@PAGEOFF] adrp x9, _com_dev@PAGE ldr x9, [x9, _com_dev@PAGEOFF] subs x8, x8, x9 add x8, x8, #1 adrp x9, _x@GOTPAGE ldr x9, [x9, _x@GOTPAGEOFF] ; kill: def $w8 killed $w8 killed $x8 strb w8, [x9] stur wzr, [x29, #-4] b LBB0_3 LBB0_3: ldur w0, [x29, #-4] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _mos_init ; -- Begin function mos_init .p2align 2 _mos_init: ; @mos_init .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, _endsp@PAGE ldr x8, [x8, _endsp@PAGEOFF] ldrb w9, [x8] adrp x8, _a@GOTPAGE ldr x8, [x8, _a@GOTPAGEOFF] strb w9, [x8] ldrb w8, [x8] subs w8, w8, #67 cset w8, ge tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov w8, #1 sturb w8, [x29, #-1] b LBB1_3 LBB1_2: adrp x8, _io_dev@PAGE ldr x9, [x8, _io_dev@PAGEOFF] mov w8, #232 strb w8, [x9] sturb wzr, [x29, #-1] b LBB1_3 LBB1_3: ldurb w0, [x29, #-1] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .comm _ram,49152,0 ; @ram .section __DATA,__data .globl _endsp ; @endsp .p2align 3 _endsp: .quad _ram+2 .globl _a_reg ; @a_reg .p2align 3 _a_reg: .quad _ram+3 .globl _x_reg ; @x_reg .p2align 3 _x_reg: .quad _ram+4 .globl _y_reg ; @y_reg .p2align 3 _y_reg: .quad _ram+5 .globl _p_reg ; @p_reg .p2align 3 _p_reg: .quad _ram+6 .globl _s_reg ; @s_reg .p2align 3 _s_reg: .quad _ram+7 .globl _io_dev ; @io_dev .p2align 3 _io_dev: .quad _ram+8 .globl _com_dev ; @com_dev .p2align 3 _com_dev: .quad _ram+8 .globl _curs ; @curs .p2align 3 _curs: .quad _ram+9 .globl _mode ; @mode .p2align 3 _mode: .quad _ram+10 .globl _temp ; @temp .p2align 3 _temp: .quad _ram+11 .globl _count ; @count .p2align 3 _count: .quad _ram+12 .globl _ptr ; @ptr .p2align 3 _ptr: .quad _ram+14 .globl _last_f ; @last_f .p2align 3 _last_f: .quad _ram+16 .globl _last_p ; @last_p .p2align 3 _last_p: .quad _ram+18 .globl _last_d ; @last_d .p2align 3 _last_d: .quad _ram+20 .globl _inbuff ; @inbuff .p2align 3 _inbuff: .quad _ram+22 .globl _stack ; @stack .p2align 3 _stack: .quad _ram+62 .comm _a,1,0 ; @a .comm _x,1,0 ; @x .comm _y,1,0 ; @y .comm _p,1,0 ; @p .comm _s,1,0 ; @s .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "\n***FATAL ERROR: not enough zeropage space***\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) movq _endsp(%rip), %rax movb $-31, (%rax) movq _a@GOTPCREL(%rip), %rax movb (%rax), %cl movq _a_reg(%rip), %rax movb %cl, (%rax) movq _x@GOTPCREL(%rip), %rax movb (%rax), %cl movq _x_reg(%rip), %rax movb %cl, (%rax) movq _y@GOTPCREL(%rip), %rax movb (%rax), %cl movq _y_reg(%rip), %rax movb %cl, (%rax) movq _p@GOTPCREL(%rip), %rax movb (%rax), %cl movq _p_reg(%rip), %rax movb %cl, (%rax) movq _s@GOTPCREL(%rip), %rax movb (%rax), %cl movq _s_reg(%rip), %rax movb %cl, (%rax) callq _mos_init cmpb $0, %al je LBB0_2 ## %bb.1: movl $0, -4(%rbp) jmp LBB0_3 LBB0_2: movq _inbuff(%rip), %rax movq _com_dev(%rip), %rcx subq %rcx, %rax addq $1, %rax movb %al, %cl movq _x@GOTPCREL(%rip), %rax movb %cl, (%rax) movl $0, -4(%rbp) LBB0_3: movl -4(%rbp), %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _mos_init ## -- Begin function mos_init .p2align 4, 0x90 _mos_init: ## @mos_init .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq _endsp(%rip), %rax movb (%rax), %cl movq _a@GOTPCREL(%rip), %rax movb %cl, (%rax) movq _a@GOTPCREL(%rip), %rax movzbl (%rax), %eax cmpl $67, %eax jge LBB1_2 ## %bb.1: leaq L_.str(%rip), %rdi movb $0, %al callq _printf movb $1, -1(%rbp) jmp LBB1_3 LBB1_2: movq _io_dev(%rip), %rax movb $-24, (%rax) movb $0, -1(%rbp) LBB1_3: movzbl -1(%rbp), %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .comm _ram,49152,4 ## @ram .section __DATA,__data .globl _endsp ## @endsp .p2align 3 _endsp: .quad _ram+2 .globl _a_reg ## @a_reg .p2align 3 _a_reg: .quad _ram+3 .globl _x_reg ## @x_reg .p2align 3 _x_reg: .quad _ram+4 .globl _y_reg ## @y_reg .p2align 3 _y_reg: .quad _ram+5 .globl _p_reg ## @p_reg .p2align 3 _p_reg: .quad _ram+6 .globl _s_reg ## @s_reg .p2align 3 _s_reg: .quad _ram+7 .globl _io_dev ## @io_dev .p2align 3 _io_dev: .quad _ram+8 .globl _com_dev ## @com_dev .p2align 3 _com_dev: .quad _ram+8 .globl _curs ## @curs .p2align 3 _curs: .quad _ram+9 .globl _mode ## @mode .p2align 3 _mode: .quad _ram+10 .globl _temp ## @temp .p2align 3 _temp: .quad _ram+11 .globl _count ## @count .p2align 3 _count: .quad _ram+12 .globl _ptr ## @ptr .p2align 3 _ptr: .quad _ram+14 .globl _last_f ## @last_f .p2align 3 _last_f: .quad _ram+16 .globl _last_p ## @last_p .p2align 3 _last_p: .quad _ram+18 .globl _last_d ## @last_d .p2align 3 _last_d: .quad _ram+20 .globl _inbuff ## @inbuff .p2align 3 _inbuff: .quad _ram+22 .globl _stack ## @stack .p2align 3 _stack: .quad _ram+62 .comm _a,1,0 ## @a .comm _x,1,0 ## @x .comm _y,1,0 ## @y .comm _p,1,0 ## @p .comm _s,1,0 ## @s .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "\n***FATAL ERROR: not enough zeropage space***\n" .subsections_via_symbols
the_stack_data/232956675.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl __uninit_f2c ; -- Begin function _uninit_f2c .p2align 2 __uninit_f2c: ; @_uninit_f2c .cfi_startproc ; %bb.0: sub sp, sp, #80 .cfi_def_cfa_offset 80 stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp, #64 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] stur w1, [x29, #-12] stur x2, [x29, #-24] adrp x8, __uninit_f2c.first@PAGE ldr w8, [x8, __uninit_f2c.first@PAGEOFF] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: adrp x8, __uninit_f2c.first@PAGE str wzr, [x8, __uninit_f2c.first@PAGEOFF] bl _ieee0 b LBB0_2 LBB0_2: ldur x8, [x29, #-24] subs x8, x8, #1 cset w8, ne tbnz w8, #0, LBB0_13 b LBB0_3 LBB0_3: ldur w8, [x29, #-12] subs w8, w8, #2 ; kill: def $x8 killed $w8 str x8, [sp, #16] ; 8-byte Folded Spill subs x8, x8, #12 cset w8, hi tbnz w8, #0, LBB0_11 ; %bb.4: 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_5: ldur x9, [x29, #-8] mov w8, #90 strb w8, [x9] b LBB0_33 LBB0_6: ldur x9, [x29, #-8] mov w8, #64122 strh w8, [x9] b LBB0_12 LBB0_7: ldur x9, [x29, #-8] mov x8, #31354 movk x8, #64122, lsl #16 str x8, [x9] b LBB0_33 LBB0_8: b LBB0_12 LBB0_9: adrp x8, _rnan@PAGE ldr x8, [x8, _rnan@PAGEOFF] ldur x9, [x29, #-8] str x8, [x9] b LBB0_33 LBB0_10: ldur x8, [x29, #-8] str x8, [sp, #32] adrp x8, _dnan0@PAGE ldr x8, [x8, _dnan0@PAGEOFF] ldr x9, [sp, #32] str x8, [x9] adrp x8, _dnan1@PAGE ldr x8, [x8, _dnan1@PAGEOFF] ldr x9, [sp, #32] str x8, [x9, #8] b LBB0_33 LBB0_11: ldur w9, [x29, #-12] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf b LBB0_12 LBB0_12: b LBB0_13 LBB0_13: ldur w8, [x29, #-12] subs w8, w8, #2 ; kill: def $x8 killed $w8 str x8, [sp, #8] ; 8-byte Folded Spill subs x8, x8, #12 cset w8, hi tbnz w8, #0, LBB0_33 ; %bb.14: ldr x11, [sp, #8] ; 8-byte Folded Reload adrp x10, lJTI0_1@PAGE add x10, x10, lJTI0_1@PAGEOFF Ltmp1: adr x8, Ltmp1 ldrsw x9, [x10, x11, lsl #2] add x8, x8, x9 br x8 LBB0_15: ldur x0, [x29, #-8] ldur x2, [x29, #-24] mov w1, #90 mov x3, #-1 bl ___memset_chk b LBB0_33 LBB0_16: ldur x9, [x29, #-8] mov w8, #64122 strh w8, [x9] b LBB0_33 LBB0_17: ldur x8, [x29, #-24] lsl x8, x8, #1 stur x8, [x29, #-24] b LBB0_18 LBB0_18: ldur x8, [x29, #-8] str x8, [sp, #32] ldr x8, [sp, #32] ldur x9, [x29, #-24] add x8, x8, x9, lsl #3 str x8, [sp, #24] b LBB0_19 LBB0_19: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #32] ldr x9, [sp, #24] subs x8, x8, x9 cset w8, hs tbnz w8, #0, LBB0_21 b LBB0_20 LBB0_20: ; in Loop: Header=BB0_19 Depth=1 ldr x9, [sp, #32] add x8, x9, #8 str x8, [sp, #32] mov x8, #31354 movk x8, #64122, lsl #16 str x8, [x9] b LBB0_19 LBB0_21: b LBB0_33 LBB0_22: ldur x8, [x29, #-24] lsl x8, x8, #1 stur x8, [x29, #-24] b LBB0_23 LBB0_23: ldur x8, [x29, #-8] str x8, [sp, #32] ldr x8, [sp, #32] ldur x9, [x29, #-24] add x8, x8, x9, lsl #3 str x8, [sp, #24] b LBB0_24 LBB0_24: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #32] ldr x9, [sp, #24] subs x8, x8, x9 cset w8, hs tbnz w8, #0, LBB0_26 b LBB0_25 LBB0_25: ; in Loop: Header=BB0_24 Depth=1 adrp x8, _rnan@PAGE ldr x8, [x8, _rnan@PAGEOFF] ldr x9, [sp, #32] add x10, x9, #8 str x10, [sp, #32] str x8, [x9] b LBB0_24 LBB0_26: b LBB0_33 LBB0_27: ldur x8, [x29, #-24] lsl x8, x8, #1 stur x8, [x29, #-24] b LBB0_28 LBB0_28: ldur x8, [x29, #-8] str x8, [sp, #32] ldr x8, [sp, #32] ldur x10, [x29, #-24] mov x9, #2 mul x9, x9, x10 add x8, x8, x9, lsl #3 str x8, [sp, #24] b LBB0_29 LBB0_29: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #32] ldr x9, [sp, #24] subs x8, x8, x9 cset w8, hs tbnz w8, #0, LBB0_32 b LBB0_30 LBB0_30: ; in Loop: Header=BB0_29 Depth=1 adrp x8, _dnan0@PAGE ldr x8, [x8, _dnan0@PAGEOFF] ldr x9, [sp, #32] str x8, [x9] adrp x8, _dnan1@PAGE ldr x8, [x8, _dnan1@PAGEOFF] ldr x9, [sp, #32] str x8, [x9, #8] b LBB0_31 LBB0_31: ; in Loop: Header=BB0_29 Depth=1 ldr x8, [sp, #32] add x8, x8, #16 str x8, [sp, #32] b LBB0_29 LBB0_32: b LBB0_33 LBB0_33: ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc .p2align 2 lJTI0_0: .long LBB0_6-Ltmp0 .long LBB0_7-Ltmp0 .long LBB0_9-Ltmp0 .long LBB0_10-Ltmp0 .long LBB0_8-Ltmp0 .long LBB0_8-Ltmp0 .long LBB0_11-Ltmp0 .long LBB0_11-Ltmp0 .long LBB0_11-Ltmp0 .long LBB0_5-Ltmp0 .long LBB0_11-Ltmp0 .long LBB0_11-Ltmp0 .long LBB0_8-Ltmp0 .p2align 2 lJTI0_1: .long LBB0_16-Ltmp1 .long LBB0_18-Ltmp1 .long LBB0_23-Ltmp1 .long LBB0_28-Ltmp1 .long LBB0_22-Ltmp1 .long LBB0_27-Ltmp1 .long LBB0_33-Ltmp1 .long LBB0_33-Ltmp1 .long LBB0_33-Ltmp1 .long LBB0_15-Ltmp1 .long LBB0_33-Ltmp1 .long LBB0_33-Ltmp1 .long LBB0_17-Ltmp1 ; -- End function .p2align 2 ; -- Begin function ieee0 _ieee0: ; @ieee0 .cfi_startproc ; %bb.0: ret .cfi_endproc ; -- End function .globl __0 ; @_0 .zerofill __DATA,__common,__0,8,3 .section __DATA,__data .p2align 2 ; @_uninit_f2c.first __uninit_f2c.first: .long 1 ; 0x1 .p2align 3 ; @rnan _rnan: .quad 4286578689 ; 0xff800001 .p2align 3 ; @dnan0 _dnan0: .quad 1 ; 0x1 .p2align 3 ; @dnan1 _dnan1: .quad 4293918720 ; 0xfff00000 .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Surprise type %d in _uninit_f2c\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl __uninit_f2c ## -- Begin function _uninit_f2c .p2align 4, 0x90 __uninit_f2c: ## @_uninit_f2c .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $64, %rsp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) movq %rdx, -24(%rbp) cmpl $0, __uninit_f2c.first(%rip) je LBB0_2 ## %bb.1: movl $0, __uninit_f2c.first(%rip) callq _ieee0 LBB0_2: cmpq $1, -24(%rbp) jne LBB0_12 ## %bb.3: movl -12(%rbp), %eax addl $-2, %eax movl %eax, %ecx movq %rcx, -48(%rbp) ## 8-byte Spill subl $12, %eax ja LBB0_10 ## %bb.32: movq -48(%rbp), %rax ## 8-byte Reload leaq LJTI0_0(%rip), %rcx movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax LBB0_4: movq -8(%rbp), %rax movb $90, (%rax) jmp LBB0_31 LBB0_5: movq -8(%rbp), %rax movw $-1414, (%rax) ## imm = 0xFA7A jmp LBB0_11 LBB0_6: movq -8(%rbp), %rax movl $4202330746, %ecx ## imm = 0xFA7A7A7A movq %rcx, (%rax) jmp LBB0_31 LBB0_7: jmp LBB0_11 LBB0_8: movq _rnan(%rip), %rcx movq -8(%rbp), %rax movq %rcx, (%rax) jmp LBB0_31 LBB0_9: movq -8(%rbp), %rax movq %rax, -32(%rbp) movq _dnan0(%rip), %rcx movq -32(%rbp), %rax movq %rcx, (%rax) movq _dnan1(%rip), %rcx movq -32(%rbp), %rax movq %rcx, 8(%rax) jmp LBB0_31 LBB0_10: movl -12(%rbp), %esi leaq L_.str(%rip), %rdi movb $0, %al callq _printf LBB0_11: jmp LBB0_12 LBB0_12: movl -12(%rbp), %eax addl $-2, %eax movl %eax, %ecx movq %rcx, -56(%rbp) ## 8-byte Spill subl $12, %eax ja LBB0_31 ## %bb.33: movq -56(%rbp), %rax ## 8-byte Reload leaq LJTI0_1(%rip), %rcx movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax LBB0_13: movq -8(%rbp), %rdi movq -24(%rbp), %rdx movl $90, %esi movq $-1, %rcx callq ___memset_chk jmp LBB0_31 LBB0_14: movq -8(%rbp), %rax movw $-1414, (%rax) ## imm = 0xFA7A jmp LBB0_31 LBB0_15: movq -24(%rbp), %rax shlq $1, %rax movq %rax, -24(%rbp) LBB0_16: movq -8(%rbp), %rax movq %rax, -32(%rbp) movq -32(%rbp), %rax movq -24(%rbp), %rcx shlq $3, %rcx addq %rcx, %rax movq %rax, -40(%rbp) LBB0_17: ## =>This Inner Loop Header: Depth=1 movq -32(%rbp), %rax cmpq -40(%rbp), %rax jae LBB0_19 ## %bb.18: ## in Loop: Header=BB0_17 Depth=1 movq -32(%rbp), %rax movq %rax, %rcx addq $8, %rcx movq %rcx, -32(%rbp) movl $4202330746, %ecx ## imm = 0xFA7A7A7A movq %rcx, (%rax) jmp LBB0_17 LBB0_19: jmp LBB0_31 LBB0_20: movq -24(%rbp), %rax shlq $1, %rax movq %rax, -24(%rbp) LBB0_21: movq -8(%rbp), %rax movq %rax, -32(%rbp) movq -32(%rbp), %rax movq -24(%rbp), %rcx shlq $3, %rcx addq %rcx, %rax movq %rax, -40(%rbp) LBB0_22: ## =>This Inner Loop Header: Depth=1 movq -32(%rbp), %rax cmpq -40(%rbp), %rax jae LBB0_24 ## %bb.23: ## in Loop: Header=BB0_22 Depth=1 movq _rnan(%rip), %rcx movq -32(%rbp), %rax movq %rax, %rdx addq $8, %rdx movq %rdx, -32(%rbp) movq %rcx, (%rax) jmp LBB0_22 LBB0_24: jmp LBB0_31 LBB0_25: movq -24(%rbp), %rax shlq $1, %rax movq %rax, -24(%rbp) LBB0_26: movq -8(%rbp), %rax movq %rax, -32(%rbp) movq -32(%rbp), %rax movq -24(%rbp), %rcx shlq $1, %rcx shlq $3, %rcx addq %rcx, %rax movq %rax, -40(%rbp) LBB0_27: ## =>This Inner Loop Header: Depth=1 movq -32(%rbp), %rax cmpq -40(%rbp), %rax jae LBB0_30 ## %bb.28: ## in Loop: Header=BB0_27 Depth=1 movq _dnan0(%rip), %rcx movq -32(%rbp), %rax movq %rcx, (%rax) movq _dnan1(%rip), %rcx movq -32(%rbp), %rax movq %rcx, 8(%rax) ## %bb.29: ## in Loop: Header=BB0_27 Depth=1 movq -32(%rbp), %rax addq $16, %rax movq %rax, -32(%rbp) jmp LBB0_27 LBB0_30: jmp LBB0_31 LBB0_31: addq $64, %rsp popq %rbp retq .cfi_endproc .p2align 2, 0x90 .data_region jt32 .set L0_0_set_5, LBB0_5-LJTI0_0 .set L0_0_set_6, LBB0_6-LJTI0_0 .set L0_0_set_8, LBB0_8-LJTI0_0 .set L0_0_set_9, LBB0_9-LJTI0_0 .set L0_0_set_7, LBB0_7-LJTI0_0 .set L0_0_set_10, LBB0_10-LJTI0_0 .set L0_0_set_4, LBB0_4-LJTI0_0 LJTI0_0: .long L0_0_set_5 .long L0_0_set_6 .long L0_0_set_8 .long L0_0_set_9 .long L0_0_set_7 .long L0_0_set_7 .long L0_0_set_10 .long L0_0_set_10 .long L0_0_set_10 .long L0_0_set_4 .long L0_0_set_10 .long L0_0_set_10 .long L0_0_set_7 .set L0_1_set_14, LBB0_14-LJTI0_1 .set L0_1_set_16, LBB0_16-LJTI0_1 .set L0_1_set_21, LBB0_21-LJTI0_1 .set L0_1_set_26, LBB0_26-LJTI0_1 .set L0_1_set_20, LBB0_20-LJTI0_1 .set L0_1_set_25, LBB0_25-LJTI0_1 .set L0_1_set_31, LBB0_31-LJTI0_1 .set L0_1_set_13, LBB0_13-LJTI0_1 .set L0_1_set_15, LBB0_15-LJTI0_1 LJTI0_1: .long L0_1_set_14 .long L0_1_set_16 .long L0_1_set_21 .long L0_1_set_26 .long L0_1_set_20 .long L0_1_set_25 .long L0_1_set_31 .long L0_1_set_31 .long L0_1_set_31 .long L0_1_set_13 .long L0_1_set_31 .long L0_1_set_31 .long L0_1_set_15 .end_data_region ## -- End function .p2align 4, 0x90 ## -- Begin function ieee0 _ieee0: ## @ieee0 .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 __0 ## @_0 .zerofill __DATA,__common,__0,8,3 .section __DATA,__data .p2align 2 ## @_uninit_f2c.first __uninit_f2c.first: .long 1 ## 0x1 .p2align 3 ## @rnan _rnan: .quad 4286578689 ## 0xff800001 .p2align 3 ## @dnan0 _dnan0: .quad 1 ## 0x1 .p2align 3 ## @dnan1 _dnan1: .quad 4293918720 ## 0xfff00000 .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Surprise type %d in _uninit_f2c\n" .subsections_via_symbols
the_stack_data/90761485.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _push ; -- Begin function push .p2align 2 _push: ; @push .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #8] str x1, [sp] ldr x8, [sp, #8] ldr w8, [x8] subs w8, w8, #9 cset w8, ge tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: ldr x8, [sp] ldr x9, [sp, #8] add x9, x9, #8 ldr x11, [sp, #8] ldr w10, [x11] add w10, w10, #1 str w10, [x11] str x8, [x9, w10, sxtw #3] b LBB0_3 LBB0_2: adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf b LBB0_3 LBB0_3: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _pop ; -- Begin function pop .p2align 2 _pop: ; @pop .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp] ldr x8, [sp] ldr w8, [x8] subs w8, w8, #0 cset w8, lt tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: ldr x8, [sp] add x8, x8, #8 ldr x11, [sp] ldrsw x9, [x11] mov x10, x9 subs w10, w10, #1 str w10, [x11] ldr x8, [x8, x9, lsl #3] str x8, [sp, #8] b LBB1_4 LBB1_2: adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf b LBB1_3 LBB1_3: ; kill: def $x8 killed $xzr str xzr, [sp, #8] b LBB1_4 LBB1_4: ldr x0, [sp, #8] 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 str x0, [sp] ; 8-byte Folded Spill ldr w8, [x0] subs w8, w8, #0 cset w8, ge tbnz w8, #0, LBB2_2 b LBB2_1 LBB2_1: adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf ; kill: def $x8 killed $xzr str xzr, [sp, #8] b LBB2_3 LBB2_2: ldr x9, [sp] ; 8-byte Folded Reload add x8, x9, #8 ldrsw x9, [x9] ldr x8, [x8, x9, lsl #3] str x8, [sp, #8] b LBB2_3 LBB2_3: ldr x0, [sp, #8] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _isEmpty ; -- Begin function isEmpty .p2align 2 _isEmpty: ; @isEmpty .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 ldr w8, [x0] subs w8, w8, #0 cset w8, ge tbnz w8, #0, LBB3_2 b LBB3_1 LBB3_1: mov w8, #1 str w8, [sp, #12] b LBB3_3 LBB3_2: str wzr, [sp, #12] b LBB3_3 LBB3_3: ldr w0, [sp, #12] add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _postorderTraversalWithoutStack ; -- Begin function postorderTraversalWithoutStack .p2align 2 _postorderTraversalWithoutStack: ; @postorderTraversalWithoutStack .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 stur x0, [x29, #-24] mov w8, #-1 stur w8, [x29, #-112] ldur x8, [x29, #-24] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB4_2 b LBB4_1 LBB4_1: b LBB4_22 LBB4_2: ; kill: def $x8 killed $xzr stur xzr, [x29, #-120] ldur x1, [x29, #-24] sub x0, x29, #112 bl _push stur xzr, [x29, #-128] b LBB4_3 LBB4_3: ; =>This Inner Loop Header: Depth=1 add x0, sp, #120 str x0, [sp, #24] ; 8-byte Folded Spill sub x1, x29, #112 mov x2, #88 bl _memcpy ldr x0, [sp, #24] ; 8-byte Folded Reload bl _isEmpty subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB4_22 b LBB4_4 LBB4_4: ; in Loop: Header=BB4_3 Depth=1 add x0, sp, #32 str x0, [sp, #16] ; 8-byte Folded Spill sub x1, x29, #112 mov x2, #88 bl _memcpy ldr x0, [sp, #16] ; 8-byte Folded Reload bl _peek stur x0, [x29, #-120] ldur x8, [x29, #-128] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB4_7 b LBB4_5 LBB4_5: ; in Loop: Header=BB4_3 Depth=1 ldur x8, [x29, #-128] ldr x8, [x8, #8] ldur x9, [x29, #-120] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB4_7 b LBB4_6 LBB4_6: ; in Loop: Header=BB4_3 Depth=1 ldur x8, [x29, #-128] ldr x8, [x8, #16] ldur x9, [x29, #-120] subs x8, x8, x9 cset w8, ne tbnz w8, #0, LBB4_14 b LBB4_7 LBB4_7: ; in Loop: Header=BB4_3 Depth=1 ldur x8, [x29, #-120] ldr x8, [x8, #8] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB4_9 b LBB4_8 LBB4_8: ; in Loop: Header=BB4_3 Depth=1 ldur x8, [x29, #-120] ldr x1, [x8, #8] sub x0, x29, #112 bl _push b LBB4_13 LBB4_9: ; in Loop: Header=BB4_3 Depth=1 ldur x8, [x29, #-120] ldr x8, [x8, #16] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB4_11 b LBB4_10 LBB4_10: ; in Loop: Header=BB4_3 Depth=1 ldur x8, [x29, #-120] ldr x1, [x8, #16] sub x0, x29, #112 bl _push b LBB4_12 LBB4_11: ; in Loop: Header=BB4_3 Depth=1 ldur x8, [x29, #-120] ldr w9, [x8] ; 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 sub x0, x29, #112 bl _pop b LBB4_12 LBB4_12: ; in Loop: Header=BB4_3 Depth=1 b LBB4_13 LBB4_13: ; in Loop: Header=BB4_3 Depth=1 b LBB4_14 LBB4_14: ; in Loop: Header=BB4_3 Depth=1 ldur x8, [x29, #-120] ldr x8, [x8, #8] ldur x9, [x29, #-128] subs x8, x8, x9 cset w8, ne tbnz w8, #0, LBB4_19 b LBB4_15 LBB4_15: ; in Loop: Header=BB4_3 Depth=1 ldur x8, [x29, #-120] ldr x8, [x8, #16] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB4_17 b LBB4_16 LBB4_16: ; in Loop: Header=BB4_3 Depth=1 ldur x8, [x29, #-120] ldr x1, [x8, #16] sub x0, x29, #112 bl _push b LBB4_18 LBB4_17: ; in Loop: Header=BB4_3 Depth=1 ldur x8, [x29, #-120] ldr w9, [x8] ; 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 sub x0, x29, #112 bl _pop b LBB4_18 LBB4_18: ; in Loop: Header=BB4_3 Depth=1 b LBB4_19 LBB4_19: ; in Loop: Header=BB4_3 Depth=1 ldur x8, [x29, #-120] ldr x8, [x8, #16] ldur x9, [x29, #-128] subs x8, x8, x9 cset w8, ne tbnz w8, #0, LBB4_21 b LBB4_20 LBB4_20: ; in Loop: Header=BB4_3 Depth=1 ldur x8, [x29, #-120] ldr w9, [x8] ; 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 sub x0, x29, #112 bl _pop b LBB4_21 LBB4_21: ; in Loop: Header=BB4_3 Depth=1 ldur x8, [x29, #-120] stur x8, [x29, #-128] b LBB4_3 LBB4_22: 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 _postorder ; -- Begin function postorder .p2align 2 _postorder: ; @postorder .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #8] ldr x8, [sp, #8] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB5_2 b LBB5_1 LBB5_1: b LBB5_3 LBB5_2: ldr x8, [sp, #8] ldr x0, [x8, #8] bl _postorder ldr x8, [sp, #8] ldr x0, [x8, #16] bl _postorder ldr x8, [sp, #8] ldr w9, [x8] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf b LBB5_3 LBB5_3: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _createNode ; -- Begin function createNode .p2align 2 _createNode: ; @createNode .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur w0, [x29, #-4] mov x0, #24 bl _malloc str x0, [sp] ldur w8, [x29, #-4] ldr x9, [sp] str w8, [x9] ldr x8, [sp] ; kill: def $x9 killed $xzr str xzr, [x8, #16] ldr x8, [sp] str xzr, [x8, #8] ldr x0, [sp] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _addNode ; -- Begin function addNode .p2align 2 _addNode: ; @addNode .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #16] str w1, [sp, #12] ldr x8, [sp, #16] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB7_2 b LBB7_1 LBB7_1: ldr w0, [sp, #12] bl _createNode stur x0, [x29, #-8] b LBB7_7 LBB7_2: ldr x8, [sp, #16] ldr w8, [x8] ldr w9, [sp, #12] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB7_4 b LBB7_3 LBB7_3: ldr x8, [sp, #16] ldr x0, [x8, #8] ldr w1, [sp, #12] bl _addNode ldr x8, [sp, #16] str x0, [x8, #8] b LBB7_5 LBB7_4: ldr x8, [sp, #16] ldr x0, [x8, #16] ldr w1, [sp, #12] bl _addNode ldr x8, [sp, #16] str x0, [x8, #16] b LBB7_5 LBB7_5: b LBB7_6 LBB7_6: ldr x8, [sp, #16] stur x8, [x29, #-8] b LBB7_7 LBB7_7: ldur x0, [x29, #-8] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #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] ; kill: def $x8 killed $xzr str xzr, [sp, #16] ldr x0, [sp, #16] mov w1, #30 bl _addNode str x0, [sp, #16] ldr x0, [sp, #16] mov w1, #20 bl _addNode str x0, [sp, #16] ldr x0, [sp, #16] mov w1, #15 bl _addNode str x0, [sp, #16] ldr x0, [sp, #16] mov w1, #25 bl _addNode str x0, [sp, #16] ldr x0, [sp, #16] mov w1, #40 bl _addNode str x0, [sp, #16] ldr x0, [sp, #16] mov w1, #37 bl _addNode str x0, [sp, #16] ldr x0, [sp, #16] mov w1, #45 bl _addNode str x0, [sp, #16] ldr x0, [sp, #16] bl _postorder adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf ldr x0, [sp, #16] bl _postorderTraversalWithoutStack 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 "Stack is full\n" l_.str.1: ; @.str.1 .asciz "Stack is empty\n" l_.str.2: ; @.str.2 .asciz "Stack empty\n" l_.str.3: ; @.str.3 .asciz "%d " l_.str.4: ; @.str.4 .asciz "\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _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 movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) movq -8(%rbp), %rax cmpl $9, (%rax) jge LBB0_2 ## %bb.1: movq -16(%rbp), %rdx movq -8(%rbp), %rax movq -8(%rbp), %rsi movl (%rsi), %ecx addl $1, %ecx movl %ecx, (%rsi) movslq %ecx, %rcx movq %rdx, 8(%rax,%rcx,8) jmp LBB0_3 LBB0_2: leaq L_.str(%rip), %rdi movb $0, %al callq _printf LBB0_3: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _pop ## -- Begin function pop .p2align 4, 0x90 _pop: ## @pop .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -16(%rbp) movq -16(%rbp), %rax cmpl $-1, (%rax) jle LBB1_2 ## %bb.1: movq -16(%rbp), %rax movq -16(%rbp), %rdx movl (%rdx), %ecx movl %ecx, %esi addl $-1, %esi movl %esi, (%rdx) movslq %ecx, %rcx movq 8(%rax,%rcx,8), %rax movq %rax, -8(%rbp) jmp LBB1_4 LBB1_2: leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf ## %bb.3: movq $0, -8(%rbp) LBB1_4: movq -8(%rbp), %rax 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 subq $16, %rsp leaq 16(%rbp), %rax movq %rax, -16(%rbp) ## 8-byte Spill cmpl $0, (%rax) jge LBB2_2 ## %bb.1: leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf movq $0, -8(%rbp) jmp LBB2_3 LBB2_2: movq -16(%rbp), %rax ## 8-byte Reload movslq (%rax), %rcx movq 8(%rax,%rcx,8), %rax movq %rax, -8(%rbp) LBB2_3: movq -8(%rbp), %rax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _isEmpty ## -- Begin function isEmpty .p2align 4, 0x90 _isEmpty: ## @isEmpty .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq 16(%rbp), %rax cmpl $0, (%rax) jge LBB3_2 ## %bb.1: movl $1, -4(%rbp) jmp LBB3_3 LBB3_2: movl $0, -4(%rbp) LBB3_3: movl -4(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .globl _postorderTraversalWithoutStack ## -- Begin function postorderTraversalWithoutStack .p2align 4, 0x90 _postorderTraversalWithoutStack: ## @postorderTraversalWithoutStack .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $208, %rsp movq %rdi, -8(%rbp) movl $-1, -96(%rbp) cmpq $0, -8(%rbp) jne LBB4_2 ## %bb.1: jmp LBB4_22 LBB4_2: movq $0, -104(%rbp) movq -8(%rbp), %rsi leaq -96(%rbp), %rdi callq _push movq $0, -112(%rbp) LBB4_3: ## =>This Inner Loop Header: Depth=1 movq -16(%rbp), %rcx movq %rsp, %rax movq %rcx, 80(%rax) movups -32(%rbp), %xmm0 movups %xmm0, 64(%rax) movups -96(%rbp), %xmm0 movups -80(%rbp), %xmm1 movups -64(%rbp), %xmm2 movups -48(%rbp), %xmm3 movups %xmm3, 48(%rax) movups %xmm2, 32(%rax) movups %xmm1, 16(%rax) movups %xmm0, (%rax) callq _isEmpty cmpl $0, %eax setne %al xorb $-1, %al testb $1, %al jne LBB4_4 jmp LBB4_22 LBB4_4: ## in Loop: Header=BB4_3 Depth=1 movq -16(%rbp), %rcx movq %rsp, %rax movq %rcx, 80(%rax) movups -32(%rbp), %xmm0 movups %xmm0, 64(%rax) movups -96(%rbp), %xmm0 movups -80(%rbp), %xmm1 movups -64(%rbp), %xmm2 movups -48(%rbp), %xmm3 movups %xmm3, 48(%rax) movups %xmm2, 32(%rax) movups %xmm1, 16(%rax) movups %xmm0, (%rax) callq _peek movq %rax, -104(%rbp) cmpq $0, -112(%rbp) je LBB4_7 ## %bb.5: ## in Loop: Header=BB4_3 Depth=1 movq -112(%rbp), %rax movq 8(%rax), %rax cmpq -104(%rbp), %rax je LBB4_7 ## %bb.6: ## in Loop: Header=BB4_3 Depth=1 movq -112(%rbp), %rax movq 16(%rax), %rax cmpq -104(%rbp), %rax jne LBB4_14 LBB4_7: ## in Loop: Header=BB4_3 Depth=1 movq -104(%rbp), %rax cmpq $0, 8(%rax) je LBB4_9 ## %bb.8: ## in Loop: Header=BB4_3 Depth=1 movq -104(%rbp), %rax movq 8(%rax), %rsi leaq -96(%rbp), %rdi callq _push jmp LBB4_13 LBB4_9: ## in Loop: Header=BB4_3 Depth=1 movq -104(%rbp), %rax cmpq $0, 16(%rax) je LBB4_11 ## %bb.10: ## in Loop: Header=BB4_3 Depth=1 movq -104(%rbp), %rax movq 16(%rax), %rsi leaq -96(%rbp), %rdi callq _push jmp LBB4_12 LBB4_11: ## in Loop: Header=BB4_3 Depth=1 movq -104(%rbp), %rax movl (%rax), %esi leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf leaq -96(%rbp), %rdi callq _pop LBB4_12: ## in Loop: Header=BB4_3 Depth=1 jmp LBB4_13 LBB4_13: ## in Loop: Header=BB4_3 Depth=1 jmp LBB4_14 LBB4_14: ## in Loop: Header=BB4_3 Depth=1 movq -104(%rbp), %rax movq 8(%rax), %rax cmpq -112(%rbp), %rax jne LBB4_19 ## %bb.15: ## in Loop: Header=BB4_3 Depth=1 movq -104(%rbp), %rax cmpq $0, 16(%rax) je LBB4_17 ## %bb.16: ## in Loop: Header=BB4_3 Depth=1 movq -104(%rbp), %rax movq 16(%rax), %rsi leaq -96(%rbp), %rdi callq _push jmp LBB4_18 LBB4_17: ## in Loop: Header=BB4_3 Depth=1 movq -104(%rbp), %rax movl (%rax), %esi leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf leaq -96(%rbp), %rdi callq _pop LBB4_18: ## in Loop: Header=BB4_3 Depth=1 jmp LBB4_19 LBB4_19: ## in Loop: Header=BB4_3 Depth=1 movq -104(%rbp), %rax movq 16(%rax), %rax cmpq -112(%rbp), %rax jne LBB4_21 ## %bb.20: ## in Loop: Header=BB4_3 Depth=1 movq -104(%rbp), %rax movl (%rax), %esi leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf leaq -96(%rbp), %rdi callq _pop LBB4_21: ## in Loop: Header=BB4_3 Depth=1 movq -104(%rbp), %rax movq %rax, -112(%rbp) jmp LBB4_3 LBB4_22: addq $208, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _postorder ## -- Begin function postorder .p2align 4, 0x90 _postorder: ## @postorder .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) cmpq $0, -8(%rbp) jne LBB5_2 ## %bb.1: jmp LBB5_3 LBB5_2: movq -8(%rbp), %rax movq 8(%rax), %rdi callq _postorder movq -8(%rbp), %rax movq 16(%rax), %rdi callq _postorder movq -8(%rbp), %rax movl (%rax), %esi leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf LBB5_3: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _createNode ## -- Begin function createNode .p2align 4, 0x90 _createNode: ## @createNode .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl %edi, -4(%rbp) movl $24, %edi callq _malloc movq %rax, -16(%rbp) movl -4(%rbp), %ecx movq -16(%rbp), %rax movl %ecx, (%rax) movq -16(%rbp), %rax movq $0, 16(%rax) movq -16(%rbp), %rax movq $0, 8(%rax) movq -16(%rbp), %rax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _addNode ## -- Begin function addNode .p2align 4, 0x90 _addNode: ## @addNode .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -16(%rbp) movl %esi, -20(%rbp) cmpq $0, -16(%rbp) jne LBB7_2 ## %bb.1: movl -20(%rbp), %edi callq _createNode movq %rax, -8(%rbp) jmp LBB7_7 LBB7_2: movq -16(%rbp), %rax movl (%rax), %eax cmpl -20(%rbp), %eax jle LBB7_4 ## %bb.3: movq -16(%rbp), %rax movq 8(%rax), %rdi movl -20(%rbp), %esi callq _addNode movq %rax, %rcx movq -16(%rbp), %rax movq %rcx, 8(%rax) jmp LBB7_5 LBB7_4: movq -16(%rbp), %rax movq 16(%rax), %rdi movl -20(%rbp), %esi callq _addNode movq %rax, %rcx movq -16(%rbp), %rax movq %rcx, 16(%rax) LBB7_5: jmp LBB7_6 LBB7_6: movq -16(%rbp), %rax movq %rax, -8(%rbp) LBB7_7: movq -8(%rbp), %rax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) movq $0, -16(%rbp) movq -16(%rbp), %rdi movl $30, %esi callq _addNode movq %rax, -16(%rbp) movq -16(%rbp), %rdi movl $20, %esi callq _addNode movq %rax, -16(%rbp) movq -16(%rbp), %rdi movl $15, %esi callq _addNode movq %rax, -16(%rbp) movq -16(%rbp), %rdi movl $25, %esi callq _addNode movq %rax, -16(%rbp) movq -16(%rbp), %rdi movl $40, %esi callq _addNode movq %rax, -16(%rbp) movq -16(%rbp), %rdi movl $37, %esi callq _addNode movq %rax, -16(%rbp) movq -16(%rbp), %rdi movl $45, %esi callq _addNode movq %rax, -16(%rbp) movq -16(%rbp), %rdi callq _postorder leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf movq -16(%rbp), %rdi callq _postorderTraversalWithoutStack xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Stack is full\n" L_.str.1: ## @.str.1 .asciz "Stack is empty\n" L_.str.2: ## @.str.2 .asciz "Stack empty\n" L_.str.3: ## @.str.3 .asciz "%d " L_.str.4: ## @.str.4 .asciz "\n" .subsections_via_symbols
the_stack_data/102806.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _send_int ; -- Begin function send_int .p2align 2 _send_int: ; @send_int .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur w0, [x29, #-8] stur w1, [x29, #-12] b LBB0_1 LBB0_1: ldur w0, [x29, #-8] bl __OSSwapInt32 str w0, [sp, #12] ; 4-byte Folded Spill b LBB0_2 LBB0_2: ldr w9, [sp, #12] ; 4-byte Folded Reload sub x8, x29, #16 stur w9, [x29, #-16] str x8, [sp, #24] mov w8, #4 str w8, [sp, #20] b LBB0_3 LBB0_3: ; =>This Inner Loop Header: Depth=1 ldur w0, [x29, #-12] ldr x1, [sp, #24] ldrsw x2, [sp, #20] bl _write mov x8, x0 str w8, [sp, #16] ldr w8, [sp, #16] subs w8, w8, #0 cset w8, ge tbnz w8, #0, LBB0_5 b LBB0_4 LBB0_4: mov w8, #-1 stur w8, [x29, #-4] b LBB0_9 LBB0_5: ; in Loop: Header=BB0_3 Depth=1 ldrsw x9, [sp, #16] ldr x8, [sp, #24] add x8, x8, x9 str x8, [sp, #24] ldr w9, [sp, #16] ldr w8, [sp, #20] subs w8, w8, w9 str w8, [sp, #20] b LBB0_6 LBB0_6: ; in Loop: Header=BB0_3 Depth=1 b LBB0_7 LBB0_7: ; in Loop: Header=BB0_3 Depth=1 ldr w8, [sp, #20] subs w8, w8, #0 cset w8, gt tbnz w8, #0, LBB0_3 b LBB0_8 LBB0_8: stur wzr, [x29, #-4] b LBB0_9 LBB0_9: 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 _OSSwapInt32 __OSSwapInt32: ; @_OSSwapInt32 .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #12] ldr w8, [sp, #12] rev w8, w8 str w8, [sp, #12] ldr w0, [sp, #12] add sp, sp, #16 ret .cfi_endproc ; -- End function .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, #1104 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] mov w2, #0 str wzr, [sp, #52] mov w0, #2 mov w1, #1 bl _socket str w0, [sp, #44] ldr w8, [sp, #44] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB2_2 b LBB2_1 LBB2_1: adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf b LBB2_2 LBB2_2: sub x8, x29, #40 str x8, [sp, #32] ; 8-byte Folded Spill mov w8, #2 sturb w8, [x29, #-39] mov w8, #36895 sturh w8, [x29, #-38] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _inet_addr ldr x1, [sp, #32] ; 8-byte Folded Reload stur w0, [x29, #-36] ldr w0, [sp, #44] mov w2, #16 bl _connect subs w8, w0, #0 cset w8, ge tbnz w8, #0, LBB2_4 b LBB2_3 LBB2_3: adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf str wzr, [sp, #52] b LBB2_7 LBB2_4: adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf ldr w1, [sp, #44] mov w0, #1 bl _send_int b LBB2_5 LBB2_5: ldr w0, [sp, #44] add x1, sp, #56 str x1, [sp, #24] ; 8-byte Folded Spill mov x2, #1024 mov w3, #0 bl _recv ldr x8, [sp, #24] ; 8-byte Folded Reload mov x9, x0 str w9, [sp, #40] mov x9, sp str x8, [x9] adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf b LBB2_6 LBB2_6: ldr w0, [sp, #44] bl _close str wzr, [sp, #52] b LBB2_7 LBB2_7: ldr w8, [sp, #52] 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, LBB2_9 b LBB2_8 LBB2_8: bl ___stack_chk_fail LBB2_9: ldr w0, [sp, #20] ; 4-byte Folded Reload add sp, sp, #1104 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x28, x27, [sp], #32 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "creation of socket failed\n" l_.str.1: ; @.str.1 .asciz "127.0.0.1" l_.str.2: ; @.str.2 .asciz "connection failed\n" l_.str.3: ; @.str.3 .asciz "Requesting Service from server 1\n" l_.str.4: ; @.str.4 .asciz "%s" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _send_int ## -- Begin function send_int .p2align 4, 0x90 _send_int: ## @send_int .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movl %edi, -8(%rbp) movl %esi, -12(%rbp) ## %bb.1: movl -8(%rbp), %edi callq __OSSwapInt32 movl %eax, -36(%rbp) ## 4-byte Spill ## %bb.2: movl -36(%rbp), %eax ## 4-byte Reload movl %eax, -16(%rbp) leaq -16(%rbp), %rax movq %rax, -24(%rbp) movl $4, -28(%rbp) LBB0_3: ## =>This Inner Loop Header: Depth=1 movl -12(%rbp), %edi movq -24(%rbp), %rsi movslq -28(%rbp), %rdx callq _write ## kill: def $eax killed $eax killed $rax movl %eax, -32(%rbp) cmpl $0, -32(%rbp) jge LBB0_5 ## %bb.4: movl $-1, -4(%rbp) jmp LBB0_9 LBB0_5: ## in Loop: Header=BB0_3 Depth=1 movl -32(%rbp), %ecx movq -24(%rbp), %rax movslq %ecx, %rcx addq %rcx, %rax movq %rax, -24(%rbp) movl -32(%rbp), %ecx movl -28(%rbp), %eax subl %ecx, %eax movl %eax, -28(%rbp) ## %bb.6: ## in Loop: Header=BB0_3 Depth=1 jmp LBB0_7 LBB0_7: ## in Loop: Header=BB0_3 Depth=1 cmpl $0, -28(%rbp) jg LBB0_3 ## %bb.8: movl $0, -4(%rbp) LBB0_9: movl -4(%rbp), %eax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function _OSSwapInt32 __OSSwapInt32: ## @_OSSwapInt32 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, -4(%rbp) movl -4(%rbp), %eax bswapl %eax popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .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 $2, %edi movl $1, %esi xorl %edx, %edx callq _socket movl %eax, -1068(%rbp) cmpl $0, -1068(%rbp) jne LBB2_2 ## %bb.1: leaq L_.str(%rip), %rdi movb $0, %al callq _printf LBB2_2: movb $2, -23(%rbp) movw $-28641, -22(%rbp) ## imm = 0x901F leaq L_.str.1(%rip), %rdi callq _inet_addr movl %eax, -20(%rbp) movl -1068(%rbp), %edi leaq -24(%rbp), %rsi movl $16, %edx callq _connect cmpl $0, %eax jge LBB2_4 ## %bb.3: leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf movl $0, -1060(%rbp) jmp LBB2_7 LBB2_4: leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf movl -1068(%rbp), %esi movl $1, %edi callq _send_int ## %bb.5: movl -1068(%rbp), %edi leaq -1056(%rbp), %rsi movl $1024, %edx ## imm = 0x400 xorl %ecx, %ecx callq _recv ## kill: def $eax killed $eax killed $rax movl %eax, -1072(%rbp) leaq -1056(%rbp), %rsi leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf ## %bb.6: movl -1068(%rbp), %edi callq _close movl $0, -1060(%rbp) LBB2_7: movl -1060(%rbp), %eax movl %eax, -1076(%rbp) ## 4-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB2_9 ## %bb.8: movl -1076(%rbp), %eax ## 4-byte Reload addq $1088, %rsp ## imm = 0x440 popq %rbp retq LBB2_9: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "creation of socket failed\n" L_.str.1: ## @.str.1 .asciz "127.0.0.1" L_.str.2: ## @.str.2 .asciz "connection failed\n" L_.str.3: ## @.str.3 .asciz "Requesting Service from server 1\n" L_.str.4: ## @.str.4 .asciz "%s" .subsections_via_symbols
the_stack_data/643181.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #80 .cfi_def_cfa_offset 80 stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp, #64 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] stur w0, [x29, #-8] stur x1, [x29, #-16] bl _getpid subs w8, w0, #1 cset w8, eq tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: mov w0, #1 adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF bl _errx LBB0_2: adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF adrp x1, l_.str.2@PAGE add x1, x1, l_.str.2@PAGEOFF mov w2, #1 bl _setenv subs w8, w0, #0 cset w8, ge tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: mov w0, #1 adrp x1, l_.str.3@PAGE add x1, x1, l_.str.3@PAGEOFF bl _err LBB0_4: bl _fork stur w0, [x29, #-20] ldur w8, [x29, #-20] subs w8, w8, #0 cset w8, ge tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: mov w0, #1 adrp x1, l_.str.4@PAGE add x1, x1, l_.str.4@PAGEOFF bl _err LBB0_6: ldur w8, [x29, #-20] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_8 b LBB0_7 LBB0_7: adrp x8, l___const.main.args@PAGE add x8, x8, l___const.main.args@PAGEOFF ldr q0, [x8] add x1, sp, #16 str q0, [sp, #16] adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _execv mov w0, #1 adrp x1, l_.str.7@PAGE add x1, x1, l_.str.7@PAGEOFF bl _err LBB0_8: b LBB0_9 LBB0_9: ; =>This Inner Loop Header: Depth=1 add x0, sp, #12 bl _wait b LBB0_9 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "PID is not 1" l_.str.1: ; @.str.1 .asciz "PATH" l_.str.2: ; @.str.2 .asciz "/bin:/sbin" l_.str.3: ; @.str.3 .asciz "setenv" l_.str.4: ; @.str.4 .asciz "fork" l_.str.5: ; @.str.5 .asciz "sh" .section __DATA,__const .p2align 3 ; @__const.main.args l___const.main.args: .quad l_.str.5 .quad 0 .section __TEXT,__cstring,cstring_literals l_.str.6: ; @.str.6 .asciz "/bin/sh" l_.str.7: ; @.str.7 .asciz "execv: '/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 $64, %rsp movl $0, -4(%rbp) movl %edi, -8(%rbp) movq %rsi, -16(%rbp) callq _getpid cmpl $1, %eax je LBB0_2 ## %bb.1: leaq L_.str(%rip), %rsi xorl %eax, %eax ## kill: def $al killed $al killed $eax movl $1, %edi callq _errx LBB0_2: leaq L_.str.1(%rip), %rdi leaq L_.str.2(%rip), %rsi movl $1, %edx callq _setenv cmpl $0, %eax jge LBB0_4 ## %bb.3: leaq L_.str.3(%rip), %rsi xorl %eax, %eax ## kill: def $al killed $al killed $eax movl $1, %edi callq _err LBB0_4: callq _fork movl %eax, -20(%rbp) cmpl $0, -20(%rbp) jge LBB0_6 ## %bb.5: leaq L_.str.4(%rip), %rsi xorl %eax, %eax ## kill: def $al killed $al killed $eax movl $1, %edi callq _err LBB0_6: cmpl $0, -20(%rbp) jne LBB0_8 ## %bb.7: movaps l___const.main.args(%rip), %xmm0 movaps %xmm0, -48(%rbp) leaq L_.str.6(%rip), %rdi leaq -48(%rbp), %rsi callq _execv leaq L_.str.7(%rip), %rsi xorl %eax, %eax ## kill: def $al killed $al killed $eax movl $1, %edi callq _err LBB0_8: jmp LBB0_9 LBB0_9: ## =>This Inner Loop Header: Depth=1 leaq -52(%rbp), %rdi callq _wait jmp LBB0_9 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "PID is not 1" L_.str.1: ## @.str.1 .asciz "PATH" L_.str.2: ## @.str.2 .asciz "/bin:/sbin" L_.str.3: ## @.str.3 .asciz "setenv" L_.str.4: ## @.str.4 .asciz "fork" L_.str.5: ## @.str.5 .asciz "sh" .section __DATA,__const .p2align 4 ## @__const.main.args l___const.main.args: .quad L_.str.5 .quad 0 .section __TEXT,__cstring,cstring_literals L_.str.6: ## @.str.6 .asciz "/bin/sh" L_.str.7: ## @.str.7 .asciz "execv: '/bin/sh'" .subsections_via_symbols
the_stack_data/100141213.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _date_time ; -- Begin function date_time .p2align 2 _date_time: ; @date_time .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 x1, [sp, #8] mov w0, #0 bl _clock_gettime ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ; -- Begin function main lCPI1_0: .quad 0x41cdcd6500000000 ; double 1.0E+9 .section __TEXT,__text,regular,pure_instructions .globl _main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #304 .cfi_def_cfa_offset 304 stp x28, x27, [sp, #272] ; 16-byte Folded Spill stp x29, x30, [sp, #288] ; 16-byte Folded Spill add x29, sp, #288 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w27, -24 .cfi_offset w28, -32 adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] str x8, [sp, #32] ; 8-byte Folded Spill stur wzr, [x29, #-20] stur w0, [x29, #-24] stur x1, [x29, #-32] ; kill: def $x8 killed $xzr str xzr, [sp, #72] str wzr, [sp, #68] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _getenv subs x8, x0, #0 cset w8, eq tbnz w8, #0, LBB1_3 b LBB1_1 LBB1_1: adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _getenv adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF mov x2, #2 bl _strncmp subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB1_3 b LBB1_2 LBB1_2: mov w8, #1 str w8, [sp, #68] b LBB1_3 LBB1_3: ldur w8, [x29, #-24] subs w8, w8, #2 cset w8, ge tbnz w8, #0, LBB1_5 b LBB1_4 LBB1_4: ldr x8, [sp, #32] ; 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 LBB1_5: add x0, sp, #96 bl _date_time bl _fork stur w0, [x29, #-36] adds w8, w0, #1 cset w8, ne tbnz w8, #0, LBB1_7 b LBB1_6 LBB1_6: adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _perror mov w0, #-1 bl _exit LBB1_7: ldur w8, [x29, #-36] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB1_9 b LBB1_8 LBB1_8: ldur x8, [x29, #-32] ldr x0, [x8, #8] ldur x8, [x29, #-32] add x1, x8, #8 bl _execvp ldr x8, [sp, #32] ; 8-byte Folded Reload ldr x0, [x8] ldur x8, [x29, #-32] ldr x8, [x8, #8] mov x9, sp str x8, [x9] adrp x1, l_.str.4@PAGE add x1, x1, l_.str.4@PAGEOFF bl _fprintf mov w0, #-1 bl _exit LBB1_9: ldur w0, [x29, #-36] sub x1, x29, #40 mov w2, #0 bl _waitpid subs w8, w0, #0 cset w8, ge tbnz w8, #0, LBB1_11 b LBB1_10 LBB1_10: adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _perror b LBB1_11 LBB1_11: ldur w8, [x29, #-40] asr w8, w8, #8 and w8, w8, #0xff stur w8, [x29, #-44] mov w0, #13 mov x1, #1 bl _signal ldr w8, [sp, #68] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB1_13 b LBB1_12 LBB1_12: ldr x8, [sp, #32] ; 8-byte Folded Reload ldr x0, [x8] ldur w9, [x29, #-44] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x1, l_.str.6@PAGE add x1, x1, l_.str.6@PAGEOFF bl _fprintf b LBB1_13 LBB1_13: add x0, sp, #80 bl _date_time adrp x0, l_.str.7@PAGE add x0, x0, l_.str.7@PAGEOFF bl _getenv str x0, [sp, #72] ldr x8, [sp, #72] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB1_15 b LBB1_14 LBB1_14: bl _getpid mov x9, sp ; implicit-def: $x8 mov x8, x0 str x8, [x9] add x0, sp, #116 str x0, [sp, #24] ; 8-byte Folded Spill mov x3, #128 mov x1, x3 mov w2, #0 adrp x4, l_.str.8@PAGE add x4, x4, l_.str.8@PAGEOFF bl ___snprintf_chk ldr x8, [sp, #24] ; 8-byte Folded Reload str x8, [sp, #72] b LBB1_15 LBB1_15: adrp x0, l_.str.9@PAGE add x0, x0, l_.str.9@PAGEOFF bl _getenv str x0, [sp, #56] ldr x8, [sp, #56] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB1_17 b LBB1_16 LBB1_16: ldr x8, [sp, #32] ; 8-byte Folded Reload ldr x8, [x8] str x8, [sp, #48] b LBB1_20 LBB1_17: ldr x0, [sp, #56] adrp x1, l_.str.10@PAGE add x1, x1, l_.str.10@PAGEOFF bl _fopen str x0, [sp, #48] ldr x8, [sp, #48] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB1_19 b LBB1_18 LBB1_18: adrp x0, l_.str.11@PAGE add x0, x0, l_.str.11@PAGEOFF bl _perror mov w0, #-2 bl _exit LBB1_19: b LBB1_20 LBB1_20: ldr w8, [sp, #68] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB1_22 b LBB1_21 LBB1_21: ldr x8, [sp, #32] ; 8-byte Folded Reload ldr x0, [x8] ldr x8, [sp, #72] mov x9, sp str x8, [x9] adrp x1, l_.str.12@PAGE add x1, x1, l_.str.12@PAGEOFF bl _fprintf ldr x8, [sp, #32] ; 8-byte Folded Reload ldr x0, [x8] ldr x8, [sp, #56] mov x9, sp str x8, [x9] adrp x1, l_.str.13@PAGE add x1, x1, l_.str.13@PAGEOFF bl _fprintf ldr x8, [sp, #32] ; 8-byte Folded Reload ldr x0, [x8] ldr x9, [sp, #72] ldr d0, [sp, #96] scvtf d0, d0 ldr d1, [sp, #104] scvtf d1, d1 adrp x8, lCPI1_0@PAGE ldr d3, [x8, lCPI1_0@PAGEOFF] fdiv d1, d1, d3 fadd d1, d0, d1 ldr d0, [sp, #80] scvtf d0, d0 ldr d2, [sp, #88] scvtf d2, d2 fdiv d2, d2, d3 fadd d0, d0, d2 mov x8, sp str x9, [x8] str d1, [x8, #8] str d0, [x8, #16] adrp x1, l_.str.14@PAGE add x1, x1, l_.str.14@PAGEOFF bl _fprintf b LBB1_22 LBB1_22: ldr x0, [sp, #48] ldr x9, [sp, #72] ldr d0, [sp, #96] scvtf d0, d0 ldr d1, [sp, #104] scvtf d1, d1 adrp x8, lCPI1_0@PAGE ldr d3, [x8, lCPI1_0@PAGEOFF] fdiv d1, d1, d3 fadd d1, d0, d1 ldr d0, [sp, #80] scvtf d0, d0 ldr d2, [sp, #88] scvtf d2, d2 fdiv d2, d2, d3 fadd d0, d0, d2 mov x8, sp str x9, [x8] str d1, [x8, #8] str d0, [x8, #16] adrp x1, l_.str.14@PAGE add x1, x1, l_.str.14@PAGEOFF bl _fprintf ; implicit-def: $x8 mov x8, x0 sxtw x8, w8 str x8, [sp, #40] ldr x8, [sp, #40] subs x8, x8, #0 cset w8, ge tbnz w8, #0, LBB1_24 b LBB1_23 LBB1_23: adrp x0, l_.str.15@PAGE add x0, x0, l_.str.15@PAGEOFF bl _perror b LBB1_27 LBB1_24: ldr w8, [sp, #68] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB1_26 b LBB1_25 LBB1_25: ldr x8, [sp, #32] ; 8-byte Folded Reload ldr x0, [x8] ldr x8, [sp, #40] mov x9, sp str x8, [x9] adrp x1, l_.str.16@PAGE add x1, x1, l_.str.16@PAGEOFF bl _fprintf b LBB1_26 LBB1_26: b LBB1_27 LBB1_27: ldr x9, [sp, #32] ; 8-byte Folded Reload ldr x8, [sp, #48] ldr x9, [x9] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB1_31 b LBB1_28 LBB1_28: ldr x0, [sp, #48] bl _fclose subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB1_30 b LBB1_29 LBB1_29: adrp x0, l_.str.17@PAGE add x0, x0, l_.str.17@PAGEOFF bl _perror b LBB1_30 LBB1_30: b LBB1_31 LBB1_31: ldur w0, [x29, #-44] bl _exit .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "QCG_PJ_WRAPPER_DEBUG" l_.str.1: ; @.str.1 .asciz "0" l_.str.2: ; @.str.2 .asciz "error: missing arguments\n" l_.str.3: ; @.str.3 .asciz "fork error" l_.str.4: ; @.str.4 .asciz "error: '%s' command unknown\n" l_.str.5: ; @.str.5 .asciz "failed to wait for a child process" l_.str.6: ; @.str.6 .asciz "child job finished with %d exit code\n" l_.str.7: ; @.str.7 .asciz "QCG_PM_RUNTIME_STATS_ID" l_.str.8: ; @.str.8 .asciz "pid:%d" l_.str.9: ; @.str.9 .asciz "QCG_PM_RUNTIME_STATS_PIPE" l_.str.10: ; @.str.10 .asciz "w" l_.str.11: ; @.str.11 .asciz "failed to open pipe file" l_.str.12: ; @.str.12 .asciz "runtime stats id: %s\n" l_.str.13: ; @.str.13 .asciz "runtime stats path: %s\n" l_.str.14: ; @.str.14 .asciz "%s,%lf,%lf\n" l_.str.15: ; @.str.15 .asciz "write data to pipe error" l_.str.16: ; @.str.16 .asciz "wrote %ld bytes\n" l_.str.17: ; @.str.17 .asciz "failed to close write side of pipe" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _date_time ## -- Begin function date_time .p2align 4, 0x90 _date_time: ## @date_time .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 xorl %edi, %edi callq _clock_gettime addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ## -- Begin function main LCPI1_0: .quad 0x41cdcd6500000000 ## double 1.0E+9 .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 $240, %rsp movl $0, -4(%rbp) movl %edi, -8(%rbp) movq %rsi, -16(%rbp) movq $0, -200(%rbp) movl $0, -204(%rbp) leaq L_.str(%rip), %rdi callq _getenv cmpq $0, %rax je LBB1_3 ## %bb.1: leaq L_.str(%rip), %rdi callq _getenv movq %rax, %rdi leaq L_.str.1(%rip), %rsi movl $2, %edx callq _strncmp cmpl $0, %eax je LBB1_3 ## %bb.2: movl $1, -204(%rbp) LBB1_3: cmpl $2, -8(%rbp) jge LBB1_5 ## %bb.4: 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 LBB1_5: leaq -176(%rbp), %rdi callq _date_time callq _fork movl %eax, -20(%rbp) cmpl $-1, %eax jne LBB1_7 ## %bb.6: leaq L_.str.3(%rip), %rdi callq _perror movl $-1, %edi callq _exit LBB1_7: cmpl $0, -20(%rbp) jne LBB1_9 ## %bb.8: movq -16(%rbp), %rax movq %rax, %rsi addq $8, %rsi movq 8(%rax), %rdi callq _execvp movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movq -16(%rbp), %rax movq 8(%rax), %rdx leaq L_.str.4(%rip), %rsi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _fprintf movl $-1, %edi callq _exit LBB1_9: movl -20(%rbp), %edi leaq -24(%rbp), %rsi xorl %edx, %edx callq _waitpid cmpl $0, %eax jge LBB1_11 ## %bb.10: leaq L_.str.5(%rip), %rdi callq _perror LBB1_11: movl -24(%rbp), %eax sarl $8, %eax andl $255, %eax movl %eax, -28(%rbp) movl $13, %edi movl $1, %esi callq _signal cmpl $0, -204(%rbp) je LBB1_13 ## %bb.12: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movl -28(%rbp), %edx leaq L_.str.6(%rip), %rsi movb $0, %al callq _fprintf LBB1_13: leaq -192(%rbp), %rdi callq _date_time leaq L_.str.7(%rip), %rdi callq _getenv movq %rax, -200(%rbp) cmpq $0, -200(%rbp) jne LBB1_15 ## %bb.14: leaq -160(%rbp), %rax movq %rax, -240(%rbp) ## 8-byte Spill callq _getpid movq -240(%rbp), %rdi ## 8-byte Reload movl %eax, %r9d movl $128, %ecx xorl %edx, %edx leaq L_.str.8(%rip), %r8 movq %rcx, %rsi movb $0, %al callq ___snprintf_chk leaq -160(%rbp), %rax movq %rax, -200(%rbp) LBB1_15: leaq L_.str.9(%rip), %rdi callq _getenv movq %rax, -216(%rbp) cmpq $0, -216(%rbp) jne LBB1_17 ## %bb.16: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -224(%rbp) jmp LBB1_20 LBB1_17: movq -216(%rbp), %rdi leaq L_.str.10(%rip), %rsi callq _fopen movq %rax, -224(%rbp) cmpq $0, -224(%rbp) jne LBB1_19 ## %bb.18: leaq L_.str.11(%rip), %rdi callq _perror movl $-2, %edi callq _exit LBB1_19: jmp LBB1_20 LBB1_20: cmpl $0, -204(%rbp) je LBB1_22 ## %bb.21: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movq -200(%rbp), %rdx leaq L_.str.12(%rip), %rsi movb $0, %al callq _fprintf movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movq -216(%rbp), %rdx leaq L_.str.13(%rip), %rsi movb $0, %al callq _fprintf movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movq -200(%rbp), %rdx cvtsi2sdq -176(%rbp), %xmm0 cvtsi2sdq -168(%rbp), %xmm1 movsd LCPI1_0(%rip), %xmm2 ## xmm2 = mem[0],zero divsd %xmm2, %xmm1 addsd %xmm1, %xmm0 cvtsi2sdq -192(%rbp), %xmm1 cvtsi2sdq -184(%rbp), %xmm2 movsd LCPI1_0(%rip), %xmm3 ## xmm3 = mem[0],zero divsd %xmm3, %xmm2 addsd %xmm2, %xmm1 leaq L_.str.14(%rip), %rsi movb $2, %al callq _fprintf LBB1_22: movq -224(%rbp), %rdi movq -200(%rbp), %rdx cvtsi2sdq -176(%rbp), %xmm0 cvtsi2sdq -168(%rbp), %xmm1 movsd LCPI1_0(%rip), %xmm2 ## xmm2 = mem[0],zero divsd %xmm2, %xmm1 addsd %xmm1, %xmm0 cvtsi2sdq -192(%rbp), %xmm1 cvtsi2sdq -184(%rbp), %xmm2 movsd LCPI1_0(%rip), %xmm3 ## xmm3 = mem[0],zero divsd %xmm3, %xmm2 addsd %xmm2, %xmm1 leaq L_.str.14(%rip), %rsi movb $2, %al callq _fprintf cltq movq %rax, -232(%rbp) cmpq $0, -232(%rbp) jge LBB1_24 ## %bb.23: leaq L_.str.15(%rip), %rdi callq _perror jmp LBB1_27 LBB1_24: cmpl $0, -204(%rbp) je LBB1_26 ## %bb.25: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movq -232(%rbp), %rdx leaq L_.str.16(%rip), %rsi movb $0, %al callq _fprintf LBB1_26: jmp LBB1_27 LBB1_27: movq -224(%rbp), %rax movq ___stderrp@GOTPCREL(%rip), %rcx cmpq (%rcx), %rax je LBB1_31 ## %bb.28: movq -224(%rbp), %rdi callq _fclose cmpl $0, %eax je LBB1_30 ## %bb.29: leaq L_.str.17(%rip), %rdi callq _perror LBB1_30: jmp LBB1_31 LBB1_31: movl -28(%rbp), %edi callq _exit .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "QCG_PJ_WRAPPER_DEBUG" L_.str.1: ## @.str.1 .asciz "0" L_.str.2: ## @.str.2 .asciz "error: missing arguments\n" L_.str.3: ## @.str.3 .asciz "fork error" L_.str.4: ## @.str.4 .asciz "error: '%s' command unknown\n" L_.str.5: ## @.str.5 .asciz "failed to wait for a child process" L_.str.6: ## @.str.6 .asciz "child job finished with %d exit code\n" L_.str.7: ## @.str.7 .asciz "QCG_PM_RUNTIME_STATS_ID" L_.str.8: ## @.str.8 .asciz "pid:%d" L_.str.9: ## @.str.9 .asciz "QCG_PM_RUNTIME_STATS_PIPE" L_.str.10: ## @.str.10 .asciz "w" L_.str.11: ## @.str.11 .asciz "failed to open pipe file" L_.str.12: ## @.str.12 .asciz "runtime stats id: %s\n" L_.str.13: ## @.str.13 .asciz "runtime stats path: %s\n" L_.str.14: ## @.str.14 .asciz "%s,%lf,%lf\n" L_.str.15: ## @.str.15 .asciz "write data to pipe error" L_.str.16: ## @.str.16 .asciz "wrote %ld bytes\n" L_.str.17: ## @.str.17 .asciz "failed to close write side of pipe" .subsections_via_symbols
the_stack_data/73576333.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #1 stur w8, [x29, #-4] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-4] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_5 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, #4 str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf ldur w8, [x29, #-4] subs w8, w8, #0 cset w8, gt tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 b LBB0_1 LBB0_4: ; in Loop: Header=BB0_1 Depth=1 ldur w9, [x29, #-4] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf b LBB0_1 LBB0_5: 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 a number: " l_.str.1: ; @.str.1 .asciz "%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 _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $1, -4(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 cmpl $0, -4(%rbp) je LBB0_5 ## %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 -4(%rbp), %rsi movb $0, %al callq _scanf cmpl $0, -4(%rbp) jg LBB0_4 ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_1 LBB0_4: ## in Loop: Header=BB0_1 Depth=1 movl -4(%rbp), %esi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf jmp LBB0_1 LBB0_5: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Enter a number: " L_.str.1: ## @.str.1 .asciz "%d" L_.str.2: ## @.str.2 .asciz "%d\n" .subsections_via_symbols
the_stack_data/127213.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #288 .cfi_def_cfa_offset 288 stp x28, x27, [sp, #256] ; 16-byte Folded Spill stp x29, x30, [sp, #272] ; 16-byte Folded Spill add x29, sp, #272 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w27, -24 .cfi_offset w28, -32 adrp x8, _optarg@GOTPAGE ldr x8, [x8, _optarg@GOTPAGEOFF] str x8, [sp, #16] ; 8-byte Folded Spill stur wzr, [x29, #-20] stur w0, [x29, #-24] stur x1, [x29, #-32] str xzr, [sp, #64] str xzr, [sp, #56] str xzr, [sp, #72] str wzr, [sp, #48] ; kill: def $x8 killed $xzr str xzr, [sp, #24] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldur w0, [x29, #-24] ldur x1, [x29, #-32] adrp x2, l_.str@PAGE add x2, x2, l_.str@PAGEOFF bl _getopt str w0, [sp, #52] adds w8, w0, #1 cset w8, eq tbnz w8, #0, LBB0_15 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #52] str w8, [sp, #12] ; 4-byte Folded Spill subs w8, w8, #99 cset w8, eq tbnz w8, #0, LBB0_5 b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #12] ; 4-byte Folded Reload subs w8, w8, #114 cset w8, eq tbnz w8, #0, LBB0_6 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #12] ; 4-byte Folded Reload subs w8, w8, #115 cset w8, eq tbnz w8, #0, LBB0_7 b LBB0_13 LBB0_5: ; in Loop: Header=BB0_1 Depth=1 adrp x9, _no_create@PAGE mov w8, #1 str w8, [x9, _no_create@PAGEOFF] b LBB0_14 LBB0_6: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #16] ; 8-byte Folded Reload mov w9, #1 adrp x10, _do_refer@PAGE str w9, [x10, _do_refer@PAGEOFF] ldr x8, [x8] str x8, [sp, #24] b LBB0_14 LBB0_7: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #16] ; 8-byte Folded Reload ldr x0, [x8] add x1, sp, #64 bl _parselength adds x8, x0, #1 cset w8, ne tbnz w8, #0, LBB0_9 b LBB0_8 LBB0_8: ldr x8, [sp, #16] ; 8-byte Folded Reload ldr x8, [x8] mov x9, sp str x8, [x9] mov w0, #1 adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF bl _errx LBB0_9: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #16] ; 8-byte Folded Reload ldr x8, [x8] ldrsb w8, [x8] subs w8, w8, #43 cset w8, eq tbnz w8, #0, LBB0_11 b LBB0_10 LBB0_10: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #16] ; 8-byte Folded Reload ldr x8, [x8] ldrsb w8, [x8] subs w8, w8, #45 cset w8, ne tbnz w8, #0, LBB0_12 b LBB0_11 LBB0_11: ; in Loop: Header=BB0_1 Depth=1 adrp x9, _do_relative@PAGE mov w8, #1 str w8, [x9, _do_relative@PAGEOFF] b LBB0_12 LBB0_12: ; in Loop: Header=BB0_1 Depth=1 mov w8, #1 adrp x9, _got_size@PAGE str w8, [x9, _got_size@PAGEOFF] b LBB0_14 LBB0_13: ; in Loop: Header=BB0_1 Depth=1 bl _usage b LBB0_14 LBB0_14: ; in Loop: Header=BB0_1 Depth=1 b LBB0_1 LBB0_15: adrp x8, _optind@GOTPAGE ldr x8, [x8, _optind@GOTPAGEOFF] ldrsw x10, [x8] ldur x9, [x29, #-32] add x9, x9, x10, lsl #3 stur x9, [x29, #-32] ldr w9, [x8] ldur w8, [x29, #-24] subs w8, w8, w9 stur w8, [x29, #-24] adrp x8, _do_refer@PAGE ldr w8, [x8, _do_refer@PAGEOFF] adrp x9, _got_size@PAGE ldr w9, [x9, _got_size@PAGEOFF] add w8, w8, w9 subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB0_17 b LBB0_16 LBB0_16: ldur w8, [x29, #-24] subs w8, w8, #1 cset w8, ge tbnz w8, #0, LBB0_18 b LBB0_17 LBB0_17: bl _usage b LBB0_18 LBB0_18: adrp x8, _do_refer@PAGE ldr w8, [x8, _do_refer@PAGEOFF] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_22 b LBB0_19 LBB0_19: ldr x0, [sp, #24] add x1, sp, #96 bl _stat adds w8, w0, #1 cset w8, ne tbnz w8, #0, LBB0_21 b LBB0_20 LBB0_20: ldr x8, [sp, #24] mov x9, sp str x8, [x9] mov w0, #1 adrp x1, l_.str.2@PAGE add x1, x1, l_.str.2@PAGEOFF bl _err LBB0_21: ldr x8, [sp, #192] str x8, [sp, #56] b LBB0_26 LBB0_22: adrp x8, _do_relative@PAGE ldr w8, [x8, _do_relative@PAGEOFF] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_24 b LBB0_23 LBB0_23: ldr x8, [sp, #64] str x8, [sp, #72] b LBB0_25 LBB0_24: ldr x8, [sp, #64] str x8, [sp, #56] b LBB0_25 LBB0_25: b LBB0_26 LBB0_26: adrp x8, _no_create@PAGE ldr w8, [x8, _no_create@PAGEOFF] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_28 b LBB0_27 LBB0_27: mov w8, #1 str w8, [sp, #40] b LBB0_29 LBB0_28: mov w8, #513 str w8, [sp, #40] b LBB0_29 LBB0_29: mov w8, #420 strh w8, [sp, #94] b LBB0_30 LBB0_30: ; =>This Inner Loop Header: Depth=1 ldur x8, [x29, #-32] add x9, x8, #8 stur x9, [x29, #-32] ldr x8, [x8] mov x9, x8 str x9, [sp, #32] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB0_46 b LBB0_31 LBB0_31: ; in Loop: Header=BB0_30 Depth=1 ldr x0, [sp, #32] ldr w1, [sp, #40] ldrh w10, [sp, #94] mov x9, sp ; implicit-def: $x8 mov x8, x10 str x8, [x9] bl _open str w0, [sp, #44] adds w8, w0, #1 cset w8, ne tbnz w8, #0, LBB0_35 b LBB0_32 LBB0_32: ; in Loop: Header=BB0_30 Depth=1 bl ___error ldr w8, [x0] subs w8, w8, #2 cset w8, eq tbnz w8, #0, LBB0_34 b LBB0_33 LBB0_33: ; in Loop: Header=BB0_30 Depth=1 ldr x8, [sp, #32] mov x9, sp str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _warn ldr w8, [sp, #48] add w8, w8, #1 str w8, [sp, #48] b LBB0_34 LBB0_34: ; in Loop: Header=BB0_30 Depth=1 b LBB0_30 LBB0_35: ; in Loop: Header=BB0_30 Depth=1 adrp x8, _do_relative@PAGE ldr w8, [x8, _do_relative@PAGEOFF] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_41 b LBB0_36 LBB0_36: ; in Loop: Header=BB0_30 Depth=1 ldr w0, [sp, #44] add x1, sp, #96 bl _fstat adds w8, w0, #1 cset w8, ne tbnz w8, #0, LBB0_38 b LBB0_37 LBB0_37: ; in Loop: Header=BB0_30 Depth=1 ldr x8, [sp, #32] mov x9, sp str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _warn ldr w8, [sp, #48] add w8, w8, #1 str w8, [sp, #48] b LBB0_30 LBB0_38: ; in Loop: Header=BB0_30 Depth=1 ldr x8, [sp, #192] ldr x9, [sp, #72] add x8, x8, x9 str x8, [sp, #80] ldr x8, [sp, #80] ldr x9, [sp, #192] ldr x10, [sp, #72] add x9, x9, x10 subs x8, x8, x9 cset w8, ge tbnz w8, #0, LBB0_40 b LBB0_39 LBB0_39: ; in Loop: Header=BB0_30 Depth=1 bl ___error mov w8, #27 str w8, [x0] ldr x8, [sp, #32] mov x9, sp str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _warn ldr w8, [sp, #48] add w8, w8, #1 str w8, [sp, #48] b LBB0_30 LBB0_40: ; in Loop: Header=BB0_30 Depth=1 ldr x8, [sp, #80] str x8, [sp, #56] b LBB0_41 LBB0_41: ; in Loop: Header=BB0_30 Depth=1 ldr x8, [sp, #56] subs x8, x8, #0 cset w8, ge tbnz w8, #0, LBB0_43 b LBB0_42 LBB0_42: ; in Loop: Header=BB0_30 Depth=1 str xzr, [sp, #56] b LBB0_43 LBB0_43: ; in Loop: Header=BB0_30 Depth=1 ldr w0, [sp, #44] ldr x1, [sp, #56] bl _ftruncate adds w8, w0, #1 cset w8, ne tbnz w8, #0, LBB0_45 b LBB0_44 LBB0_44: ; in Loop: Header=BB0_30 Depth=1 ldr x8, [sp, #32] mov x9, sp str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _warn ldr w8, [sp, #48] add w8, w8, #1 str w8, [sp, #48] b LBB0_30 LBB0_45: ; in Loop: Header=BB0_30 Depth=1 ldr w0, [sp, #44] bl _close b LBB0_30 LBB0_46: ldr w9, [sp, #48] mov w8, #0 subs w9, w9, #0 cset w9, ne and w9, w9, #0x1 ands w9, w9, #0x1 csinc w0, w8, wzr, eq ldp x29, x30, [sp, #272] ; 16-byte Folded Reload ldp x28, x27, [sp, #256] ; 16-byte Folded Reload add sp, sp, #288 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function parselength _parselength: ; @parselength .cfi_startproc ; %bb.0: sub sp, sp, #80 .cfi_def_cfa_offset 80 stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp, #64 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-16] stur x1, [x29, #-24] str xzr, [sp, #32] mov w8, #1 str w8, [sp, #20] ldur x8, [x29, #-16] ldrsb w8, [x8] str w8, [sp, #16] ; 4-byte Folded Spill subs w8, w8, #43 cset w8, eq tbnz w8, #0, LBB1_3 b LBB1_1 LBB1_1: ldr w8, [sp, #16] ; 4-byte Folded Reload subs w8, w8, #45 cset w8, ne tbnz w8, #0, LBB1_4 b LBB1_2 LBB1_2: mov w8, #-1 str w8, [sp, #20] b LBB1_3 LBB1_3: ldur x8, [x29, #-16] add x8, x8, #1 stur x8, [x29, #-16] b LBB1_4 LBB1_4: b LBB1_5 LBB1_5: ; =>This Inner Loop Header: Depth=1 ldur x8, [x29, #-16] ldrsb w0, [x8] bl _isdigit subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB1_9 b LBB1_6 LBB1_6: ; in Loop: Header=BB1_5 Depth=1 ldr x8, [sp, #32] mov x9, #10 mul x8, x8, x9 ldur x9, [x29, #-16] add x10, x9, #1 stur x10, [x29, #-16] ldrsb x9, [x9] add x8, x8, x9 subs x8, x8, #48 str x8, [sp, #24] ldr x8, [sp, #24] ldr x9, [sp, #32] subs x8, x8, x9 cset w8, ge tbnz w8, #0, LBB1_8 b LBB1_7 LBB1_7: mov x8, #-1 stur x8, [x29, #-8] b LBB1_27 LBB1_8: ; in Loop: Header=BB1_5 Depth=1 ldr x8, [sp, #24] str x8, [sp, #32] b LBB1_5 LBB1_9: ldur x8, [x29, #-16] ldrsb w8, [x8] str w8, [sp, #12] ; 4-byte Folded Spill subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB1_24 b LBB1_10 LBB1_10: ldr w8, [sp, #12] ; 4-byte Folded Reload subs w8, w8, #71 cset w8, eq tbnz w8, #0, LBB1_13 b LBB1_11 LBB1_11: ldr w8, [sp, #12] ; 4-byte Folded Reload subs w8, w8, #75 cset w8, eq tbnz w8, #0, LBB1_19 b LBB1_12 LBB1_12: ldr w8, [sp, #12] ; 4-byte Folded Reload subs w8, w8, #77 cset w8, eq tbnz w8, #0, LBB1_16 b LBB1_25 LBB1_13: ldr x8, [sp, #32] lsl x8, x8, #10 str x8, [sp, #24] ldr x8, [sp, #24] ldr x9, [sp, #32] subs x8, x8, x9 cset w8, ge tbnz w8, #0, LBB1_15 b LBB1_14 LBB1_14: mov x8, #-1 stur x8, [x29, #-8] b LBB1_27 LBB1_15: ldr x8, [sp, #24] str x8, [sp, #32] b LBB1_16 LBB1_16: ldr x8, [sp, #32] lsl x8, x8, #10 str x8, [sp, #24] ldr x8, [sp, #24] ldr x9, [sp, #32] subs x8, x8, x9 cset w8, ge tbnz w8, #0, LBB1_18 b LBB1_17 LBB1_17: mov x8, #-1 stur x8, [x29, #-8] b LBB1_27 LBB1_18: ldr x8, [sp, #24] str x8, [sp, #32] b LBB1_19 LBB1_19: ldur x8, [x29, #-16] ldrsb w8, [x8, #1] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB1_21 b LBB1_20 LBB1_20: mov x8, #-1 stur x8, [x29, #-8] b LBB1_27 LBB1_21: ldr x8, [sp, #32] lsl x8, x8, #10 str x8, [sp, #24] ldr x8, [sp, #24] ldr x9, [sp, #32] subs x8, x8, x9 cset w8, ge tbnz w8, #0, LBB1_23 b LBB1_22 LBB1_22: mov x8, #-1 stur x8, [x29, #-8] b LBB1_27 LBB1_23: ldr x8, [sp, #24] str x8, [sp, #32] b LBB1_24 LBB1_24: b LBB1_26 LBB1_25: mov x8, #-1 stur x8, [x29, #-8] b LBB1_27 LBB1_26: ldr x8, [sp, #32] ldrsw x9, [sp, #20] mul x8, x8, x9 ldur x9, [x29, #-24] str x8, [x9] stur xzr, [x29, #-8] b LBB1_27 LBB1_27: ldur x0, [x29, #-8] ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function usage _usage: ; @usage .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] ldr x0, [x8] mov x9, sp adrp x8, l_.str.4@PAGE add x8, x8, l_.str.4@PAGEOFF str x8, [x9] adrp x8, l_.str.5@PAGE add x8, x8, l_.str.5@PAGEOFF str x8, [x9, #8] adrp x1, l_.str.3@PAGE add x1, x1, l_.str.3@PAGEOFF bl _fprintf mov w0, #1 bl _exit .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "cr:s:" .zerofill __DATA,__bss,_no_create,4,2 ; @no_create .zerofill __DATA,__bss,_do_refer,4,2 ; @do_refer l_.str.1: ; @.str.1 .asciz "invalid size argument `%s'" .zerofill __DATA,__bss,_do_relative,4,2 ; @do_relative .zerofill __DATA,__bss,_got_size,4,2 ; @got_size l_.str.2: ; @.str.2 .asciz "%s" l_.str.3: ; @.str.3 .asciz "%s\n%s\n" l_.str.4: ; @.str.4 .asciz "usage: truncate [-c] -s [+|-]size[K|M|G] file ..." l_.str.5: ; @.str.5 .asciz " truncate [-c] -r rfile file ..." .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $240, %rsp movl $0, -4(%rbp) movl %edi, -8(%rbp) movq %rsi, -16(%rbp) movq $0, -192(%rbp) movq $0, -200(%rbp) movq $0, -184(%rbp) movl $0, -208(%rbp) movq $0, -232(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movl -8(%rbp), %edi movq -16(%rbp), %rsi leaq L_.str(%rip), %rdx callq _getopt movl %eax, -204(%rbp) cmpl $-1, %eax je LBB0_13 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl -204(%rbp), %eax movl %eax, -236(%rbp) ## 4-byte Spill subl $99, %eax je LBB0_3 jmp LBB0_45 LBB0_45: ## in Loop: Header=BB0_1 Depth=1 movl -236(%rbp), %eax ## 4-byte Reload subl $114, %eax je LBB0_4 jmp LBB0_46 LBB0_46: ## in Loop: Header=BB0_1 Depth=1 movl -236(%rbp), %eax ## 4-byte Reload subl $115, %eax je LBB0_5 jmp LBB0_11 LBB0_3: ## in Loop: Header=BB0_1 Depth=1 movl $1, _no_create(%rip) jmp LBB0_12 LBB0_4: ## in Loop: Header=BB0_1 Depth=1 movl $1, _do_refer(%rip) movq _optarg@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -232(%rbp) jmp LBB0_12 LBB0_5: ## in Loop: Header=BB0_1 Depth=1 movq _optarg@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq -192(%rbp), %rsi callq _parselength cmpq $-1, %rax jne LBB0_7 ## %bb.6: movq _optarg@GOTPCREL(%rip), %rax movq (%rax), %rdx leaq L_.str.1(%rip), %rsi xorl %eax, %eax ## kill: def $al killed $al killed $eax movl $1, %edi callq _errx LBB0_7: ## in Loop: Header=BB0_1 Depth=1 movq _optarg@GOTPCREL(%rip), %rax movq (%rax), %rax movsbl (%rax), %eax cmpl $43, %eax je LBB0_9 ## %bb.8: ## in Loop: Header=BB0_1 Depth=1 movq _optarg@GOTPCREL(%rip), %rax movq (%rax), %rax movsbl (%rax), %eax cmpl $45, %eax jne LBB0_10 LBB0_9: ## in Loop: Header=BB0_1 Depth=1 movl $1, _do_relative(%rip) LBB0_10: ## in Loop: Header=BB0_1 Depth=1 movl $1, _got_size(%rip) jmp LBB0_12 LBB0_11: ## in Loop: Header=BB0_1 Depth=1 callq _usage LBB0_12: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_1 LBB0_13: movq _optind@GOTPCREL(%rip), %rax movl (%rax), %ecx movq -16(%rbp), %rax movslq %ecx, %rcx shlq $3, %rcx addq %rcx, %rax movq %rax, -16(%rbp) movq _optind@GOTPCREL(%rip), %rax movl (%rax), %ecx movl -8(%rbp), %eax subl %ecx, %eax movl %eax, -8(%rbp) movl _do_refer(%rip), %eax addl _got_size(%rip), %eax cmpl $1, %eax jne LBB0_15 ## %bb.14: cmpl $1, -8(%rbp) jge LBB0_16 LBB0_15: callq _usage LBB0_16: cmpl $0, _do_refer(%rip) je LBB0_20 ## %bb.17: movq -232(%rbp), %rdi leaq -160(%rbp), %rsi callq _stat$INODE64 cmpl $-1, %eax jne LBB0_19 ## %bb.18: movq -232(%rbp), %rdx leaq L_.str.2(%rip), %rsi xorl %eax, %eax ## kill: def $al killed $al killed $eax movl $1, %edi callq _err LBB0_19: movq -64(%rbp), %rax movq %rax, -200(%rbp) jmp LBB0_24 LBB0_20: cmpl $0, _do_relative(%rip) je LBB0_22 ## %bb.21: movq -192(%rbp), %rax movq %rax, -184(%rbp) jmp LBB0_23 LBB0_22: movq -192(%rbp), %rax movq %rax, -200(%rbp) LBB0_23: jmp LBB0_24 LBB0_24: cmpl $0, _no_create(%rip) je LBB0_26 ## %bb.25: movl $1, -216(%rbp) jmp LBB0_27 LBB0_26: movl $513, -216(%rbp) ## imm = 0x201 LBB0_27: movw $420, -162(%rbp) ## imm = 0x1A4 LBB0_28: ## =>This Inner Loop Header: Depth=1 movq -16(%rbp), %rax movq %rax, %rcx addq $8, %rcx movq %rcx, -16(%rbp) movq (%rax), %rax movq %rax, -224(%rbp) cmpq $0, %rax je LBB0_44 ## %bb.29: ## in Loop: Header=BB0_28 Depth=1 movq -224(%rbp), %rdi movl -216(%rbp), %esi movzwl -162(%rbp), %edx movb $0, %al callq _open movl %eax, -212(%rbp) cmpl $-1, %eax jne LBB0_33 ## %bb.30: ## in Loop: Header=BB0_28 Depth=1 callq ___error cmpl $2, (%rax) je LBB0_32 ## %bb.31: ## in Loop: Header=BB0_28 Depth=1 movq -224(%rbp), %rsi leaq L_.str.2(%rip), %rdi movb $0, %al callq _warn movl -208(%rbp), %eax addl $1, %eax movl %eax, -208(%rbp) LBB0_32: ## in Loop: Header=BB0_28 Depth=1 jmp LBB0_28 LBB0_33: ## in Loop: Header=BB0_28 Depth=1 cmpl $0, _do_relative(%rip) je LBB0_39 ## %bb.34: ## in Loop: Header=BB0_28 Depth=1 movl -212(%rbp), %edi leaq -160(%rbp), %rsi callq _fstat$INODE64 cmpl $-1, %eax jne LBB0_36 ## %bb.35: ## in Loop: Header=BB0_28 Depth=1 movq -224(%rbp), %rsi leaq L_.str.2(%rip), %rdi movb $0, %al callq _warn movl -208(%rbp), %eax addl $1, %eax movl %eax, -208(%rbp) jmp LBB0_28 LBB0_36: ## in Loop: Header=BB0_28 Depth=1 movq -64(%rbp), %rax addq -184(%rbp), %rax movq %rax, -176(%rbp) movq -176(%rbp), %rax movq -64(%rbp), %rcx addq -184(%rbp), %rcx cmpq %rcx, %rax jge LBB0_38 ## %bb.37: ## in Loop: Header=BB0_28 Depth=1 callq ___error movl $27, (%rax) movq -224(%rbp), %rsi leaq L_.str.2(%rip), %rdi movb $0, %al callq _warn movl -208(%rbp), %eax addl $1, %eax movl %eax, -208(%rbp) jmp LBB0_28 LBB0_38: ## in Loop: Header=BB0_28 Depth=1 movq -176(%rbp), %rax movq %rax, -200(%rbp) LBB0_39: ## in Loop: Header=BB0_28 Depth=1 cmpq $0, -200(%rbp) jge LBB0_41 ## %bb.40: ## in Loop: Header=BB0_28 Depth=1 movq $0, -200(%rbp) LBB0_41: ## in Loop: Header=BB0_28 Depth=1 movl -212(%rbp), %edi movq -200(%rbp), %rsi callq _ftruncate cmpl $-1, %eax jne LBB0_43 ## %bb.42: ## in Loop: Header=BB0_28 Depth=1 movq -224(%rbp), %rsi leaq L_.str.2(%rip), %rdi movb $0, %al callq _warn movl -208(%rbp), %eax addl $1, %eax movl %eax, -208(%rbp) jmp LBB0_28 LBB0_43: ## in Loop: Header=BB0_28 Depth=1 movl -212(%rbp), %edi callq _close jmp LBB0_28 LBB0_44: movl -208(%rbp), %edx xorl %eax, %eax movl $1, %ecx cmpl $0, %edx cmovnel %ecx, %eax addq $240, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function parselength _parselength: ## @parselength .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $64, %rsp movq %rdi, -16(%rbp) movq %rsi, -24(%rbp) movq $0, -32(%rbp) movl $1, -44(%rbp) movq -16(%rbp), %rax movsbl (%rax), %eax movl %eax, -48(%rbp) ## 4-byte Spill subl $43, %eax je LBB1_2 jmp LBB1_24 LBB1_24: movl -48(%rbp), %eax ## 4-byte Reload subl $45, %eax jne LBB1_3 jmp LBB1_1 LBB1_1: movl $-1, -44(%rbp) LBB1_2: movq -16(%rbp), %rax addq $1, %rax movq %rax, -16(%rbp) LBB1_3: jmp LBB1_4 LBB1_4: ## =>This Inner Loop Header: Depth=1 movq -16(%rbp), %rax movsbl (%rax), %edi callq _isdigit cmpl $0, %eax je LBB1_8 ## %bb.5: ## in Loop: Header=BB1_4 Depth=1 imulq $10, -32(%rbp), %rax movq -16(%rbp), %rcx movq %rcx, %rdx addq $1, %rdx movq %rdx, -16(%rbp) movsbq (%rcx), %rcx addq %rcx, %rax subq $48, %rax movq %rax, -40(%rbp) movq -40(%rbp), %rax cmpq -32(%rbp), %rax jge LBB1_7 ## %bb.6: movq $-1, -8(%rbp) jmp LBB1_23 LBB1_7: ## in Loop: Header=BB1_4 Depth=1 movq -40(%rbp), %rax movq %rax, -32(%rbp) jmp LBB1_4 LBB1_8: movq -16(%rbp), %rax movsbl (%rax), %eax movl %eax, -52(%rbp) ## 4-byte Spill testl %eax, %eax je LBB1_20 jmp LBB1_25 LBB1_25: movl -52(%rbp), %eax ## 4-byte Reload subl $71, %eax je LBB1_9 jmp LBB1_26 LBB1_26: movl -52(%rbp), %eax ## 4-byte Reload subl $75, %eax je LBB1_15 jmp LBB1_27 LBB1_27: movl -52(%rbp), %eax ## 4-byte Reload subl $77, %eax je LBB1_12 jmp LBB1_21 LBB1_9: movq -32(%rbp), %rax shlq $10, %rax movq %rax, -40(%rbp) movq -40(%rbp), %rax cmpq -32(%rbp), %rax jge LBB1_11 ## %bb.10: movq $-1, -8(%rbp) jmp LBB1_23 LBB1_11: movq -40(%rbp), %rax movq %rax, -32(%rbp) LBB1_12: movq -32(%rbp), %rax shlq $10, %rax movq %rax, -40(%rbp) movq -40(%rbp), %rax cmpq -32(%rbp), %rax jge LBB1_14 ## %bb.13: movq $-1, -8(%rbp) jmp LBB1_23 LBB1_14: movq -40(%rbp), %rax movq %rax, -32(%rbp) LBB1_15: movq -16(%rbp), %rax movsbl 1(%rax), %eax cmpl $0, %eax je LBB1_17 ## %bb.16: movq $-1, -8(%rbp) jmp LBB1_23 LBB1_17: movq -32(%rbp), %rax shlq $10, %rax movq %rax, -40(%rbp) movq -40(%rbp), %rax cmpq -32(%rbp), %rax jge LBB1_19 ## %bb.18: movq $-1, -8(%rbp) jmp LBB1_23 LBB1_19: movq -40(%rbp), %rax movq %rax, -32(%rbp) LBB1_20: jmp LBB1_22 LBB1_21: movq $-1, -8(%rbp) jmp LBB1_23 LBB1_22: movq -32(%rbp), %rcx movslq -44(%rbp), %rax imulq %rax, %rcx movq -24(%rbp), %rax movq %rcx, (%rax) movq $0, -8(%rbp) LBB1_23: movq -8(%rbp), %rax addq $64, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function usage _usage: ## @usage .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.3(%rip), %rsi leaq L_.str.4(%rip), %rdx leaq L_.str.5(%rip), %rcx xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _fprintf movl $1, %edi callq _exit .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "cr:s:" .zerofill __DATA,__bss,_no_create,4,2 ## @no_create .zerofill __DATA,__bss,_do_refer,4,2 ## @do_refer L_.str.1: ## @.str.1 .asciz "invalid size argument `%s'" .zerofill __DATA,__bss,_do_relative,4,2 ## @do_relative .zerofill __DATA,__bss,_got_size,4,2 ## @got_size L_.str.2: ## @.str.2 .asciz "%s" L_.str.3: ## @.str.3 .asciz "%s\n%s\n" L_.str.4: ## @.str.4 .asciz "usage: truncate [-c] -s [+|-]size[K|M|G] file ..." L_.str.5: ## @.str.5 .asciz " truncate [-c] -r rfile file ..." .subsections_via_symbols
the_stack_data/93886926.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/16220.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 bl _getchar str w0, [sp, #8] adds w8, w0, #1 cset w8, eq tbnz w8, #0, LBB0_12 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #8] subs w8, w8, #9 cset w8, ne tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 mov w0, #92 bl _putchar mov w0, #116 bl _putchar b LBB0_11 LBB0_4: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #8] subs w8, w8, #8 cset w8, ne tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_1 Depth=1 mov w0, #92 bl _putchar mov w0, #98 bl _putchar b LBB0_10 LBB0_6: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #8] subs w8, w8, #92 cset w8, ne tbnz w8, #0, LBB0_8 b LBB0_7 LBB0_7: ; in Loop: Header=BB0_1 Depth=1 mov w0, #92 str w0, [sp, #4] ; 4-byte Folded Spill bl _putchar ldr w0, [sp, #4] ; 4-byte Folded Reload bl _putchar b LBB0_9 LBB0_8: ; in Loop: Header=BB0_1 Depth=1 ldr w0, [sp, #8] bl _putchar 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_1 LBB0_12: mov w0, #0 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 callq _getchar movl %eax, -8(%rbp) cmpl $-1, %eax je LBB0_12 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 cmpl $9, -8(%rbp) jne LBB0_4 ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movl $92, %edi callq _putchar movl $116, %edi callq _putchar jmp LBB0_11 LBB0_4: ## in Loop: Header=BB0_1 Depth=1 cmpl $8, -8(%rbp) jne LBB0_6 ## %bb.5: ## in Loop: Header=BB0_1 Depth=1 movl $92, %edi callq _putchar movl $98, %edi callq _putchar jmp LBB0_10 LBB0_6: ## in Loop: Header=BB0_1 Depth=1 cmpl $92, -8(%rbp) jne LBB0_8 ## %bb.7: ## in Loop: Header=BB0_1 Depth=1 movl $92, %edi callq _putchar movl $92, %edi callq _putchar jmp LBB0_9 LBB0_8: ## in Loop: Header=BB0_1 Depth=1 movl -8(%rbp), %edi callq _putchar 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_1 LBB0_12: xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/31566.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, #48] add x0, sp, #55 mov x1, #1025 bl _bzero add x8, sp, #44 str wzr, [sp, #44] mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _scanf b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #44] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB0_6 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 mov x9, sp add x8, sp, #55 str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf subs w8, w0, #1 cset w8, eq tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: bl _abort LBB0_4: ; in Loop: Header=BB0_1 Depth=1 add x0, sp, #55 str x0, [sp, #16] ; 8-byte Folded Spill mov w1, #0 bl _strchr mov x1, x0 ldr x0, [sp, #16] ; 8-byte Folded Reload bl _find_longest_palindrome str x0, [sp, #24] str x1, [sp, #32] ldr x0, [sp, #24] ldr x1, [sp, #32] bl _print b LBB0_5 LBB0_5: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #44] subs w8, w8, #1 str w8, [sp, #44] b LBB0_1 LBB0_6: ldr w8, [sp, #48] 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_8 b LBB0_7 LBB0_7: bl ___stack_chk_fail LBB0_8: 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 .p2align 2 ; -- Begin function print _print: ; @print .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #16] str x1, [sp, #24] ldr x10, [sp, #24] ldr x8, [sp, #16] mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function find_longest_palindrome _find_longest_palindrome: ; @find_longest_palindrome .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #24] str x1, [sp, #16] ldr x8, [sp, #16] str x8, [sp, #8] b LBB2_1 LBB2_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #8] ldr x9, [sp, #24] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB2_6 b LBB2_2 LBB2_2: ; in Loop: Header=BB2_1 Depth=1 ldr x0, [sp, #24] ldr x1, [sp, #8] ldr x2, [sp, #16] bl _slide_window_to_palindrome str x0, [sp] ldr x8, [sp] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB2_4 b LBB2_3 LBB2_3: ldr x8, [sp] stur x8, [x29, #-16] ldr x8, [sp, #8] ldr x9, [sp, #24] subs x8, x8, x9 stur x8, [x29, #-8] b LBB2_10 LBB2_4: ; in Loop: Header=BB2_1 Depth=1 b LBB2_5 LBB2_5: ; in Loop: Header=BB2_1 Depth=1 ldr x8, [sp, #8] subs x8, x8, #1 str x8, [sp, #8] b LBB2_1 LBB2_6: ldr x8, [sp, #24] ldr x9, [sp, #16] subs x8, x8, x9 cset w9, ne ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB2_8 b LBB2_7 LBB2_7: adrp x0, l___func__.find_longest_palindrome@PAGE add x0, x0, l___func__.find_longest_palindrome@PAGEOFF adrp x1, l_.str.3@PAGE add x1, x1, l_.str.3@PAGEOFF mov w2, #57 adrp x3, l_.str.4@PAGE add x3, x3, l_.str.4@PAGEOFF bl ___assert_rtn LBB2_8: b LBB2_9 LBB2_9: ldr x8, [sp, #24] stur x8, [x29, #-16] stur xzr, [x29, #-8] b LBB2_10 LBB2_10: ldur x0, [x29, #-16] ldur x1, [x29, #-8] ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function slide_window_to_palindrome _slide_window_to_palindrome: ; @slide_window_to_palindrome .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #16] str x1, [sp, #8] str x2, [sp] b LBB3_1 LBB3_1: ; =>This Inner Loop Header: Depth=1 ldr x0, [sp, #16] ldr x1, [sp, #8] bl _is_palindrome tbz w0, #0, LBB3_3 b LBB3_2 LBB3_2: ldr x8, [sp, #16] stur x8, [x29, #-8] b LBB3_7 LBB3_3: ; in Loop: Header=BB3_1 Depth=1 ldr x8, [sp, #8] ldr x9, [sp] subs x8, x8, x9 cset w8, ne tbnz w8, #0, LBB3_5 b LBB3_4 LBB3_4: ; kill: def $x8 killed $xzr stur xzr, [x29, #-8] b LBB3_7 LBB3_5: ; in Loop: Header=BB3_1 Depth=1 b LBB3_6 LBB3_6: ; in Loop: Header=BB3_1 Depth=1 ldr x8, [sp, #16] add x8, x8, #1 str x8, [sp, #16] ldr x8, [sp, #8] add x8, x8, #1 str x8, [sp, #8] b LBB3_1 LBB3_7: ldur x0, [x29, #-8] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function is_palindrome _is_palindrome: ; @is_palindrome .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, #16] str x1, [sp, #8] b LBB4_1 LBB4_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #16] ldr x9, [sp, #8] subs x8, x8, x9 cset w8, hs tbnz w8, #0, LBB4_5 b LBB4_2 LBB4_2: ; in Loop: Header=BB4_1 Depth=1 ldr x8, [sp, #16] add x9, x8, #1 str x9, [sp, #16] ldrsb w8, [x8] ldr x9, [sp, #8] subs x10, x9, #1 str x10, [sp, #8] ldursb w9, [x9, #-1] subs w8, w8, w9 cset w8, eq tbnz w8, #0, LBB4_4 b LBB4_3 LBB4_3: mov w8, #0 and w8, w8, #0x1 and w8, w8, #0x1 strb w8, [sp, #31] b LBB4_6 LBB4_4: ; in Loop: Header=BB4_1 Depth=1 b LBB4_1 LBB4_5: mov w8, #1 and w8, w8, #0x1 and w8, w8, #0x1 strb w8, [sp, #31] b LBB4_6 LBB4_6: ldrb w8, [sp, #31] and w0, w8, #0x1 add sp, sp, #32 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d" l_.str.1: ; @.str.1 .asciz "%1024s" l_.str.2: ; @.str.2 .asciz "%.*s\n" l___func__.find_longest_palindrome: ; @__func__.find_longest_palindrome .asciz "find_longest_palindrome" l_.str.3: ; @.str.3 .asciz "32950524.c" l_.str.4: ; @.str.4 .asciz "first == last" .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, -1044(%rbp) leaq -1040(%rbp), %rdi xorl %esi, %esi movl $1025, %edx ## imm = 0x401 callq _memset movl $0, -1048(%rbp) leaq L_.str(%rip), %rdi leaq -1048(%rbp), %rsi movb $0, %al callq _scanf LBB0_1: ## =>This Inner Loop Header: Depth=1 cmpl $0, -1048(%rbp) jle LBB0_6 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 leaq -1040(%rbp), %rsi leaq L_.str.1(%rip), %rdi movb $0, %al callq _scanf cmpl $1, %eax je LBB0_4 ## %bb.3: callq _abort LBB0_4: ## in Loop: Header=BB0_1 Depth=1 leaq -1040(%rbp), %rax movq %rax, -1072(%rbp) ## 8-byte Spill leaq -1040(%rbp), %rdi xorl %esi, %esi callq _strchr movq -1072(%rbp), %rdi ## 8-byte Reload movq %rax, %rsi callq _find_longest_palindrome movq %rax, -1064(%rbp) movq %rdx, -1056(%rbp) movq -1064(%rbp), %rdi movq -1056(%rbp), %rsi callq _print ## %bb.5: ## in Loop: Header=BB0_1 Depth=1 movl -1048(%rbp), %eax addl $-1, %eax movl %eax, -1048(%rbp) jmp LBB0_1 LBB0_6: movl -1044(%rbp), %eax movl %eax, -1076(%rbp) ## 4-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_8 ## %bb.7: movl -1076(%rbp), %eax ## 4-byte Reload addq $1088, %rsp ## imm = 0x440 popq %rbp retq LBB0_8: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function print _print: ## @print .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -16(%rbp) movq %rsi, -8(%rbp) movq -8(%rbp), %rax movl %eax, %esi movq -16(%rbp), %rdx leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function find_longest_palindrome _find_longest_palindrome: ## @find_longest_palindrome .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movq %rdi, -24(%rbp) movq %rsi, -32(%rbp) movq -32(%rbp), %rax movq %rax, -40(%rbp) LBB2_1: ## =>This Inner Loop Header: Depth=1 movq -40(%rbp), %rax cmpq -24(%rbp), %rax je LBB2_6 ## %bb.2: ## in Loop: Header=BB2_1 Depth=1 movq -24(%rbp), %rdi movq -40(%rbp), %rsi movq -32(%rbp), %rdx callq _slide_window_to_palindrome movq %rax, -48(%rbp) cmpq $0, -48(%rbp) je LBB2_4 ## %bb.3: movq -48(%rbp), %rax movq %rax, -16(%rbp) movq -40(%rbp), %rax movq -24(%rbp), %rcx subq %rcx, %rax movq %rax, -8(%rbp) jmp LBB2_10 LBB2_4: ## in Loop: Header=BB2_1 Depth=1 jmp LBB2_5 LBB2_5: ## in Loop: Header=BB2_1 Depth=1 movq -40(%rbp), %rax addq $-1, %rax movq %rax, -40(%rbp) jmp LBB2_1 LBB2_6: movq -24(%rbp), %rax cmpq -32(%rbp), %rax sete %al xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB2_8 ## %bb.7: leaq L___func__.find_longest_palindrome(%rip), %rdi leaq L_.str.3(%rip), %rsi leaq L_.str.4(%rip), %rcx movl $57, %edx callq ___assert_rtn LBB2_8: jmp LBB2_9 LBB2_9: movq -24(%rbp), %rax movq %rax, -16(%rbp) movq $0, -8(%rbp) LBB2_10: movq -16(%rbp), %rax movq -8(%rbp), %rdx addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function slide_window_to_palindrome _slide_window_to_palindrome: ## @slide_window_to_palindrome .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -16(%rbp) movq %rsi, -24(%rbp) movq %rdx, -32(%rbp) LBB3_1: ## =>This Inner Loop Header: Depth=1 movq -16(%rbp), %rdi movq -24(%rbp), %rsi callq _is_palindrome testb $1, %al jne LBB3_2 jmp LBB3_3 LBB3_2: movq -16(%rbp), %rax movq %rax, -8(%rbp) jmp LBB3_7 LBB3_3: ## in Loop: Header=BB3_1 Depth=1 movq -24(%rbp), %rax cmpq -32(%rbp), %rax jne LBB3_5 ## %bb.4: movq $0, -8(%rbp) jmp LBB3_7 LBB3_5: ## in Loop: Header=BB3_1 Depth=1 jmp LBB3_6 LBB3_6: ## in Loop: Header=BB3_1 Depth=1 movq -16(%rbp), %rax addq $1, %rax movq %rax, -16(%rbp) movq -24(%rbp), %rax addq $1, %rax movq %rax, -24(%rbp) jmp LBB3_1 LBB3_7: movq -8(%rbp), %rax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function is_palindrome _is_palindrome: ## @is_palindrome .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -16(%rbp) movq %rsi, -24(%rbp) LBB4_1: ## =>This Inner Loop Header: Depth=1 movq -16(%rbp), %rax cmpq -24(%rbp), %rax jae LBB4_5 ## %bb.2: ## in Loop: Header=BB4_1 Depth=1 movq -16(%rbp), %rax movq %rax, %rcx addq $1, %rcx movq %rcx, -16(%rbp) movsbl (%rax), %eax movq -24(%rbp), %rcx movq %rcx, %rdx addq $-1, %rdx movq %rdx, -24(%rbp) movsbl -1(%rcx), %ecx cmpl %ecx, %eax je LBB4_4 ## %bb.3: movb $0, -1(%rbp) jmp LBB4_6 LBB4_4: ## in Loop: Header=BB4_1 Depth=1 jmp LBB4_1 LBB4_5: movb $1, -1(%rbp) LBB4_6: movb -1(%rbp), %al andb $1, %al movzbl %al, %eax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d" L_.str.1: ## @.str.1 .asciz "%1024s" L_.str.2: ## @.str.2 .asciz "%.*s\n" L___func__.find_longest_palindrome: ## @__func__.find_longest_palindrome .asciz "find_longest_palindrome" L_.str.3: ## @.str.3 .asciz "32950524.c" L_.str.4: ## @.str.4 .asciz "first == last" .subsections_via_symbols
the_stack_data/32950524.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: stp x28, x27, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w27, -24 .cfi_offset w28, -32 sub sp, sp, #1056 stur wzr, [x29, #-20] add x0, sp, #15 mov x1, #1025 bl _bzero 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 _popen stur x0, [x29, #-32] ldur x8, [x29, #-32] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB0_4 b LBB0_1 LBB0_1: ldur x3, [x29, #-32] add x0, sp, #15 mov x1, #1 mov x2, #1024 bl _fread mov x8, x0 str w8, [sp, #8] ldr w8, [sp, #8] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: mov x9, sp add x8, sp, #15 str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf b LBB0_3 LBB0_3: ldur x0, [x29, #-32] bl _pclose mov w0, #0 bl _exit LBB0_4: mov w0, #1 bl _exit .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "ps -ax" l_.str.1: ; @.str.1 .asciz "r" l_.str.2: ; @.str.2 .asciz "Output was:-\n%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 $1072, %rsp ## imm = 0x430 movl $0, -4(%rbp) leaq -1056(%rbp), %rdi xorl %esi, %esi movl $1025, %edx ## imm = 0x401 callq _memset leaq L_.str(%rip), %rdi leaq L_.str.1(%rip), %rsi callq _popen movq %rax, -16(%rbp) cmpq $0, -16(%rbp) je LBB0_4 ## %bb.1: leaq -1056(%rbp), %rdi movq -16(%rbp), %rcx movl $1, %esi movl $1024, %edx ## imm = 0x400 callq _fread ## kill: def $eax killed $eax killed $rax movl %eax, -1060(%rbp) cmpl $0, -1060(%rbp) jle LBB0_3 ## %bb.2: leaq -1056(%rbp), %rsi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf LBB0_3: movq -16(%rbp), %rdi callq _pclose xorl %edi, %edi callq _exit LBB0_4: movl $1, %edi callq _exit .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "ps -ax" L_.str.1: ## @.str.1 .asciz "r" L_.str.2: ## @.str.2 .asciz "Output was:-\n%s\n" .subsections_via_symbols
the_stack_data/193891928.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 cacosl lCPI0_0: .quad 0x3ff921fb54442d18 ; double 1.5707963267948966 .section __TEXT,__text,regular,pure_instructions .globl _cacosl .p2align 2 _cacosl: ; @cacosl .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 str d0, [sp, #32] str d1, [sp, #40] ldr d1, [sp, #32] ldr d0, [sp, #40] str d1, [sp] str d0, [sp, #8] ldr d0, [sp] ldr d1, [sp, #8] bl _casinl str d0, [sp, #16] str d1, [sp, #24] ldr d1, [sp, #16] adrp x8, lCPI0_0@PAGE ldr d0, [x8, lCPI0_0@PAGEOFF] fsub d1, d0, d1 ldr d0, [sp, #24] movi d2, #0000000000000000 fmul d3, d0, d2 fmov d2, #1.00000000 fsub d1, d1, d3 fnmul d0, d0, d2 str d1, [sp, #16] str d0, [sp, #24] ldr d1, [sp, #16] ldr d0, [sp, #24] stur d1, [x29, #-16] stur d0, [x29, #-8] ldur d0, [x29, #-16] ldur d1, [x29, #-8] ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __TEXT,__literal16,16byte_literals .p2align 4 ## -- Begin function cacosl LCPI0_0: .quad 0xc90fdaa22168c235 ## x86_fp80 1.57079632679489661926 .short 0x3fff .space 6 .section __TEXT,__text,regular,pure_instructions .globl _cacosl .p2align 4, 0x90 _cacosl: ## @cacosl .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 leaq 16(%rbp), %rax fldt (%rax) fldt 16(%rax) fxch %st(1) fstpt -96(%rbp) fstpt -80(%rbp) movaps -96(%rbp), %xmm0 movaps -80(%rbp), %xmm1 movq %rsp, %rax movaps %xmm1, 16(%rax) movaps %xmm0, (%rax) callq _casinl fstpt -64(%rbp) fstpt -48(%rbp) fldt -64(%rbp) fldt -48(%rbp) fldt LCPI0_0(%rip) fsubp %st, %st(2) fldz fchs fmul %st(1), %st faddp %st, %st(2) fchs fxch %st(1) fstpt -64(%rbp) fstpt -48(%rbp) fldt -64(%rbp) fldt -48(%rbp) fxch %st(1) fstpt -32(%rbp) fstpt -16(%rbp) fldt -16(%rbp) fldt -32(%rbp) addq $128, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/1089173.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _pow ; -- Begin function pow .p2align 2 _pow: ; @pow .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 _pow ## -- Begin function pow .p2align 4, 0x90 _pow: ## @pow .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/95451357.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, #-12] str wzr, [sp, #16] 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 stur x0, [x29, #-8] ldur x8, [x29, #-8] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf b LBB0_6 LBB0_2: ldur x0, [x29, #-8] mov x9, sp mov x8, #60 str x8, [x9] adrp x1, l_.str.3@PAGE add x1, x1, l_.str.3@PAGEOFF bl _fprintf b LBB0_3 LBB0_3: ; =>This Inner Loop Header: Depth=1 ldur x0, [x29, #-8] bl _fgetc stur w0, [x29, #-12] adds w8, w0, #1 cset w8, eq tbnz w8, #0, LBB0_5 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_3 Depth=1 ldur w0, [x29, #-12] bl _putchar b LBB0_3 LBB0_5: ldur x0, [x29, #-8] bl _fclose b LBB0_6 LBB0_6: 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 "abc.txt" l_.str.1: ; @.str.1 .asciz "r+" l_.str.2: ; @.str.2 .asciz "error\n" l_.str.3: ; @.str.3 .asciz "%d" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -12(%rbp) movl $0, -16(%rbp) leaq L_.str(%rip), %rdi leaq L_.str.1(%rip), %rsi callq _fopen movq %rax, -8(%rbp) cmpq $0, -8(%rbp) jne LBB0_2 ## %bb.1: leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf jmp LBB0_6 LBB0_2: movq -8(%rbp), %rdi leaq L_.str.3(%rip), %rsi movl $60, %edx movb $0, %al callq _fprintf LBB0_3: ## =>This Inner Loop Header: Depth=1 movq -8(%rbp), %rdi callq _fgetc movl %eax, -12(%rbp) cmpl $-1, %eax je LBB0_5 ## %bb.4: ## in Loop: Header=BB0_3 Depth=1 movl -12(%rbp), %edi callq _putchar jmp LBB0_3 LBB0_5: movq -8(%rbp), %rdi callq _fclose LBB0_6: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "abc.txt" L_.str.1: ## @.str.1 .asciz "r+" L_.str.2: ## @.str.2 .asciz "error\n" L_.str.3: ## @.str.3 .asciz "%d" .subsections_via_symbols
the_stack_data/76700990.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _f ; -- Begin function f .p2align 2 _f: ; @f .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] str x0, [sp] ldr x1, [sp] add x0, sp, #15 mov x2, #8 bl _strncpy b LBB0_1 LBB0_1: 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_3 b LBB0_2 LBB0_2: bl ___stack_chk_fail LBB0_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, #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, #8] add x0, sp, #12 bl _f ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: bl ___stack_chk_fail LBB1_2: mov w0, #0 ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _f ## -- Begin function f .p2align 4, 0x90 _f: ## @f .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movq %rdi, -32(%rbp) leaq -17(%rbp), %rdi movq -32(%rbp), %rsi movl $8, %edx callq _strncpy ## %bb.1: movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_3 ## %bb.2: addq $32, %rsp popq %rbp retq LBB0_3: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -44(%rbp) leaq -40(%rbp), %rdi callq _f movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB1_2 ## %bb.1: xorl %eax, %eax addq $48, %rsp popq %rbp retq LBB1_2: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/137349.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] mov w8, #1 stur w8, [x29, #-8] b LBB0_1 LBB0_1: ; =>This Loop Header: Depth=1 ; Child Loop BB0_3 Depth 2 ldur w8, [x29, #-8] subs w8, w8, #9 cset w8, gt tbnz w8, #0, LBB0_8 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 mov w8, #1 stur w8, [x29, #-12] b LBB0_3 LBB0_3: ; Parent Loop BB0_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldur w8, [x29, #-12] ldur w9, [x29, #-8] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_6 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_3 Depth=2 ldur w8, [x29, #-8] ldur w9, [x29, #-12] mul w8, w8, w9 stur w8, [x29, #-16] ldur w8, [x29, #-12] ; implicit-def: $x11 mov x11, x8 ldur w8, [x29, #-8] ; implicit-def: $x10 mov x10, x8 ldur w9, [x29, #-16] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x11, [x9] str x10, [x9, #8] str x8, [x9, #16] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf b LBB0_5 LBB0_5: ; in Loop: Header=BB0_3 Depth=2 ldur w8, [x29, #-12] add w8, w8, #1 stur w8, [x29, #-12] b LBB0_3 LBB0_6: ; in Loop: Header=BB0_1 Depth=1 adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _puts b LBB0_7 LBB0_7: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-8] add w8, w8, #1 stur w8, [x29, #-8] b LBB0_1 LBB0_8: mov w0, #0 ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d * %d = %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 _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) movl $1, -8(%rbp) LBB0_1: ## =>This Loop Header: Depth=1 ## Child Loop BB0_3 Depth 2 cmpl $9, -8(%rbp) jg LBB0_8 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl $1, -12(%rbp) LBB0_3: ## Parent Loop BB0_1 Depth=1 ## => This Inner Loop Header: Depth=2 movl -12(%rbp), %eax cmpl -8(%rbp), %eax jg LBB0_6 ## %bb.4: ## in Loop: Header=BB0_3 Depth=2 movl -8(%rbp), %eax imull -12(%rbp), %eax movl %eax, -16(%rbp) movl -12(%rbp), %esi movl -8(%rbp), %edx movl -16(%rbp), %ecx leaq L_.str(%rip), %rdi movb $0, %al callq _printf ## %bb.5: ## in Loop: Header=BB0_3 Depth=2 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB0_3 LBB0_6: ## in Loop: Header=BB0_1 Depth=1 leaq L_.str.1(%rip), %rdi callq _puts ## %bb.7: ## in Loop: Header=BB0_1 Depth=1 movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) jmp LBB0_1 LBB0_8: xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d * %d = %d\t" L_.str.1: ## @.str.1 .asciz "\n" .subsections_via_symbols
the_stack_data/71874.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/478610.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _swaptab ; -- Begin function swaptab .p2align 2 _swaptab: ; @swaptab .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] ldr x8, [x8, x9, lsl #3] str x8, [sp, #8] ldr x8, [sp, #24] ldrsw x9, [sp, #16] ldr x8, [x8, x9, lsl #3] ldr x9, [sp, #24] ldrsw x10, [sp, #20] str x8, [x9, x10, lsl #3] ldr x8, [sp, #8] ldr x9, [sp, #24] ldrsw x10, [sp, #16] str x8, [x9, x10, lsl #3] add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _len_tab ; -- Begin function len_tab .p2align 2 _len_tab: ; @len_tab .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] str wzr, [sp, #4] b LBB1_1 LBB1_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #8] ldrsw x9, [sp, #4] ldr x8, [x8, x9, lsl #3] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB1_3 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #4] add w8, w8, #1 str w8, [sp, #4] b LBB1_1 LBB1_3: ldr w0, [sp, #4] 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 _swaptab ## -- Begin function swaptab .p2align 4, 0x90 _swaptab: ## @swaptab .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 movq (%rax,%rcx,8), %rax movq %rax, -24(%rbp) movq -8(%rbp), %rax movslq -16(%rbp), %rcx movq (%rax,%rcx,8), %rdx movq -8(%rbp), %rax movslq -12(%rbp), %rcx movq %rdx, (%rax,%rcx,8) movq -24(%rbp), %rdx movq -8(%rbp), %rax movslq -16(%rbp), %rcx movq %rdx, (%rax,%rcx,8) popq %rbp retq .cfi_endproc ## -- End function .globl _len_tab ## -- Begin function len_tab .p2align 4, 0x90 _len_tab: ## @len_tab .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) movl $0, -12(%rbp) LBB1_1: ## =>This Inner Loop Header: Depth=1 movq -8(%rbp), %rax movslq -12(%rbp), %rcx cmpq $0, (%rax,%rcx,8) je LBB1_3 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB1_1 LBB1_3: movl -12(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/248579749.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] mov w8, #3 str w8, [sp, #12] mov w8, #4 str w8, [sp, #8] mov x0, #0 bl _time ; kill: def $w0 killed $w0 killed $x0 bl _srand mov x0, #12 mov x1, #4 bl _calloc str x0, [sp, #24] ldrsw x0, [sp, #12] mov x1, #8 bl _calloc str x0, [sp, #16] stur wzr, [x29, #-8] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-8] subs w8, w8, #12 cset w8, ge tbnz w8, #0, LBB0_4 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 bl _rand mov w9, #12 sdiv w8, w0, w9 mul w8, w8, w9 subs w8, w0, w8 ldr x9, [sp, #24] ldursw x10, [x29, #-8] str w8, [x9, x10, lsl #2] b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-8] add w8, w8, #1 stur w8, [x29, #-8] b LBB0_1 LBB0_4: stur wzr, [x29, #-8] b LBB0_5 LBB0_5: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-8] subs w8, w8, #12 cset w8, ge tbnz w8, #0, LBB0_8 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_5 Depth=1 ldr x8, [sp, #24] ldursw x9, [x29, #-8] ldr w9, [x8, x9, lsl #2] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf b LBB0_7 LBB0_7: ; in Loop: Header=BB0_5 Depth=1 ldur w8, [x29, #-8] add w8, w8, #1 stur w8, [x29, #-8] b LBB0_5 LBB0_8: adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf stur wzr, [x29, #-8] b LBB0_9 LBB0_9: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-8] subs w8, w8, #12 cset w8, ge tbnz w8, #0, LBB0_12 b LBB0_10 LBB0_10: ; in Loop: Header=BB0_9 Depth=1 ldr x8, [sp, #24] ldursw x9, [x29, #-8] add x8, x8, x9, lsl #2 mov x9, sp str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf b LBB0_11 LBB0_11: ; in Loop: Header=BB0_9 Depth=1 ldur w8, [x29, #-8] add w8, w8, #1 stur w8, [x29, #-8] b LBB0_9 LBB0_12: adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf 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 stur wzr, [x29, #-8] b LBB0_13 LBB0_13: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-8] ldr w9, [sp, #12] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_16 b LBB0_14 LBB0_14: ; in Loop: Header=BB0_13 Depth=1 ldrsw x0, [sp, #8] mov x1, #4 bl _calloc ldr x8, [sp, #16] ldursw x9, [x29, #-8] str x0, [x8, x9, lsl #3] b LBB0_15 LBB0_15: ; in Loop: Header=BB0_13 Depth=1 ldur w8, [x29, #-8] add w8, w8, #1 stur w8, [x29, #-8] b LBB0_13 LBB0_16: ldr x8, [sp, #16] mov x9, sp str x8, [x9] adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf stur wzr, [x29, #-8] b LBB0_17 LBB0_17: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-8] ldr w9, [sp, #12] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_20 b LBB0_18 LBB0_18: ; in Loop: Header=BB0_17 Depth=1 ldr x8, [sp, #16] ldursw x9, [x29, #-8] ldr x8, [x8, x9, lsl #3] mov x9, sp str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf b LBB0_19 LBB0_19: ; in Loop: Header=BB0_17 Depth=1 ldur w8, [x29, #-8] add w8, w8, #1 stur w8, [x29, #-8] b LBB0_17 LBB0_20: adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf stur wzr, [x29, #-8] b LBB0_21 LBB0_21: ; =>This Loop Header: Depth=1 ; Child Loop BB0_23 Depth 2 ldur w8, [x29, #-8] ldr w9, [sp, #12] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_28 b LBB0_22 LBB0_22: ; in Loop: Header=BB0_21 Depth=1 stur wzr, [x29, #-12] b LBB0_23 LBB0_23: ; Parent Loop BB0_21 Depth=1 ; => This Inner Loop Header: Depth=2 ldur w8, [x29, #-12] ldr w9, [sp, #8] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_26 b LBB0_24 LBB0_24: ; in Loop: Header=BB0_23 Depth=2 bl _rand mov w9, #100 sdiv w8, w0, w9 mul w8, w8, w9 subs w8, w0, w8 ldr x9, [sp, #16] ldursw x10, [x29, #-8] ldr x9, [x9, x10, lsl #3] ldursw x10, [x29, #-12] str w8, [x9, x10, lsl #2] b LBB0_25 LBB0_25: ; in Loop: Header=BB0_23 Depth=2 ldur w8, [x29, #-12] add w8, w8, #1 stur w8, [x29, #-12] b LBB0_23 LBB0_26: ; in Loop: Header=BB0_21 Depth=1 b LBB0_27 LBB0_27: ; in Loop: Header=BB0_21 Depth=1 ldur w8, [x29, #-8] add w8, w8, #1 stur w8, [x29, #-8] b LBB0_21 LBB0_28: stur wzr, [x29, #-8] b LBB0_29 LBB0_29: ; =>This Loop Header: Depth=1 ; Child Loop BB0_31 Depth 2 ldur w8, [x29, #-8] ldr w9, [sp, #12] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_36 b LBB0_30 LBB0_30: ; in Loop: Header=BB0_29 Depth=1 stur wzr, [x29, #-12] b LBB0_31 LBB0_31: ; Parent Loop BB0_29 Depth=1 ; => This Inner Loop Header: Depth=2 ldur w8, [x29, #-12] ldr w9, [sp, #8] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_34 b LBB0_32 LBB0_32: ; in Loop: Header=BB0_31 Depth=2 ldr x8, [sp, #16] ldursw x9, [x29, #-8] ldr x8, [x8, x9, lsl #3] ldursw x9, [x29, #-12] ldr w9, [x8, x9, lsl #2] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _printf b LBB0_33 LBB0_33: ; in Loop: Header=BB0_31 Depth=2 ldur w8, [x29, #-12] add w8, w8, #1 stur w8, [x29, #-12] b LBB0_31 LBB0_34: ; in Loop: Header=BB0_29 Depth=1 adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf b LBB0_35 LBB0_35: ; in Loop: Header=BB0_29 Depth=1 ldur w8, [x29, #-8] add w8, w8, #1 stur w8, [x29, #-8] b LBB0_29 LBB0_36: stur wzr, [x29, #-8] b LBB0_37 LBB0_37: ; =>This Loop Header: Depth=1 ; Child Loop BB0_39 Depth 2 ldur w8, [x29, #-8] ldr w9, [sp, #12] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_44 b LBB0_38 LBB0_38: ; in Loop: Header=BB0_37 Depth=1 stur wzr, [x29, #-12] b LBB0_39 LBB0_39: ; Parent Loop BB0_37 Depth=1 ; => This Inner Loop Header: Depth=2 ldur w8, [x29, #-12] ldr w9, [sp, #8] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_42 b LBB0_40 LBB0_40: ; in Loop: Header=BB0_39 Depth=2 ldr x8, [sp, #16] ldursw x9, [x29, #-8] ldr x8, [x8, x9, lsl #3] ldursw x9, [x29, #-12] add x8, x8, x9, lsl #2 mov x9, sp str x8, [x9] adrp x0, l_.str.7@PAGE add x0, x0, l_.str.7@PAGEOFF bl _printf b LBB0_41 LBB0_41: ; in Loop: Header=BB0_39 Depth=2 ldur w8, [x29, #-12] add w8, w8, #1 stur w8, [x29, #-12] b LBB0_39 LBB0_42: ; in Loop: Header=BB0_37 Depth=1 adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf b LBB0_43 LBB0_43: ; in Loop: Header=BB0_37 Depth=1 ldur w8, [x29, #-8] add w8, w8, #1 stur w8, [x29, #-8] b LBB0_37 LBB0_44: adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf ldr x0, [sp, #24] bl _free stur wzr, [x29, #-8] b LBB0_45 LBB0_45: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-8] ldr w9, [sp, #12] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_48 b LBB0_46 LBB0_46: ; in Loop: Header=BB0_45 Depth=1 ldr x8, [sp, #16] ldursw x9, [x29, #-8] ldr x0, [x8, x9, lsl #3] bl _free b LBB0_47 LBB0_47: ; in Loop: Header=BB0_45 Depth=1 ldur w8, [x29, #-8] add w8, w8, #1 stur w8, [x29, #-8] b LBB0_45 LBB0_48: ldr x0, [sp, #16] bl _free mov w0, #0 ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d " l_.str.1: ; @.str.1 .asciz "\nUse for loop to print &ptrToOneDArray[i]\n" l_.str.2: ; @.str.2 .asciz "%p " l_.str.3: ; @.str.3 .asciz "\n" l_.str.4: ; @.str.4 .asciz "ptrToTwoDArray is %p\n" l_.str.5: ; @.str.5 .asciz "&ptrToTwoDArray[0]: %p\n" l_.str.6: ; @.str.6 .asciz "%d " l_.str.7: ; @.str.7 .asciz "%p " .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 $3, -36(%rbp) movl $4, -40(%rbp) xorl %eax, %eax movl %eax, %edi callq _time movl %eax, %edi callq _srand movl $12, %edi movl $4, %esi callq _calloc movq %rax, -24(%rbp) movslq -36(%rbp), %rdi movl $8, %esi callq _calloc movq %rax, -32(%rbp) movl $0, -8(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 cmpl $12, -8(%rbp) jge LBB0_4 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 callq _rand movl $12, %ecx cltd idivl %ecx movq -24(%rbp), %rax movslq -8(%rbp), %rcx 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 $0, -8(%rbp) LBB0_5: ## =>This Inner Loop Header: Depth=1 cmpl $12, -8(%rbp) jge LBB0_8 ## %bb.6: ## in Loop: Header=BB0_5 Depth=1 movq -24(%rbp), %rax movslq -8(%rbp), %rcx movl (%rax,%rcx,4), %esi leaq L_.str(%rip), %rdi movb $0, %al callq _printf ## %bb.7: ## in Loop: Header=BB0_5 Depth=1 movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) jmp LBB0_5 LBB0_8: leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf movl $0, -8(%rbp) LBB0_9: ## =>This Inner Loop Header: Depth=1 cmpl $12, -8(%rbp) jge LBB0_12 ## %bb.10: ## in Loop: Header=BB0_9 Depth=1 movq -24(%rbp), %rsi movslq -8(%rbp), %rax shlq $2, %rax addq %rax, %rsi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf ## %bb.11: ## in Loop: Header=BB0_9 Depth=1 movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) jmp LBB0_9 LBB0_12: leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf movq -32(%rbp), %rsi leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf movl $0, -8(%rbp) LBB0_13: ## =>This Inner Loop Header: Depth=1 movl -8(%rbp), %eax cmpl -36(%rbp), %eax jge LBB0_16 ## %bb.14: ## in Loop: Header=BB0_13 Depth=1 movslq -40(%rbp), %rdi movl $4, %esi callq _calloc movq %rax, %rdx movq -32(%rbp), %rax movslq -8(%rbp), %rcx movq %rdx, (%rax,%rcx,8) ## %bb.15: ## in Loop: Header=BB0_13 Depth=1 movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) jmp LBB0_13 LBB0_16: movq -32(%rbp), %rsi leaq L_.str.5(%rip), %rdi movb $0, %al callq _printf movl $0, -8(%rbp) LBB0_17: ## =>This Inner Loop Header: Depth=1 movl -8(%rbp), %eax cmpl -36(%rbp), %eax jge LBB0_20 ## %bb.18: ## in Loop: Header=BB0_17 Depth=1 movq -32(%rbp), %rax movslq -8(%rbp), %rcx movq (%rax,%rcx,8), %rsi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf ## %bb.19: ## in Loop: Header=BB0_17 Depth=1 movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) jmp LBB0_17 LBB0_20: leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf movl $0, -8(%rbp) LBB0_21: ## =>This Loop Header: Depth=1 ## Child Loop BB0_23 Depth 2 movl -8(%rbp), %eax cmpl -36(%rbp), %eax jge LBB0_28 ## %bb.22: ## in Loop: Header=BB0_21 Depth=1 movl $0, -12(%rbp) LBB0_23: ## Parent Loop BB0_21 Depth=1 ## => This Inner Loop Header: Depth=2 movl -12(%rbp), %eax cmpl -40(%rbp), %eax jge LBB0_26 ## %bb.24: ## in Loop: Header=BB0_23 Depth=2 callq _rand movl $100, %ecx cltd idivl %ecx movq -32(%rbp), %rax movslq -8(%rbp), %rcx movq (%rax,%rcx,8), %rax movslq -12(%rbp), %rcx movl %edx, (%rax,%rcx,4) ## %bb.25: ## in Loop: Header=BB0_23 Depth=2 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB0_23 LBB0_26: ## in Loop: Header=BB0_21 Depth=1 jmp LBB0_27 LBB0_27: ## in Loop: Header=BB0_21 Depth=1 movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) jmp LBB0_21 LBB0_28: movl $0, -8(%rbp) LBB0_29: ## =>This Loop Header: Depth=1 ## Child Loop BB0_31 Depth 2 movl -8(%rbp), %eax cmpl -36(%rbp), %eax jge LBB0_36 ## %bb.30: ## in Loop: Header=BB0_29 Depth=1 movl $0, -12(%rbp) LBB0_31: ## Parent Loop BB0_29 Depth=1 ## => This Inner Loop Header: Depth=2 movl -12(%rbp), %eax cmpl -40(%rbp), %eax jge LBB0_34 ## %bb.32: ## in Loop: Header=BB0_31 Depth=2 movq -32(%rbp), %rax movslq -8(%rbp), %rcx movq (%rax,%rcx,8), %rax movslq -12(%rbp), %rcx movl (%rax,%rcx,4), %esi leaq L_.str.6(%rip), %rdi movb $0, %al callq _printf ## %bb.33: ## in Loop: Header=BB0_31 Depth=2 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB0_31 LBB0_34: ## in Loop: Header=BB0_29 Depth=1 leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf ## %bb.35: ## in Loop: Header=BB0_29 Depth=1 movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) jmp LBB0_29 LBB0_36: movl $0, -8(%rbp) LBB0_37: ## =>This Loop Header: Depth=1 ## Child Loop BB0_39 Depth 2 movl -8(%rbp), %eax cmpl -36(%rbp), %eax jge LBB0_44 ## %bb.38: ## in Loop: Header=BB0_37 Depth=1 movl $0, -12(%rbp) LBB0_39: ## Parent Loop BB0_37 Depth=1 ## => This Inner Loop Header: Depth=2 movl -12(%rbp), %eax cmpl -40(%rbp), %eax jge LBB0_42 ## %bb.40: ## in Loop: Header=BB0_39 Depth=2 movq -32(%rbp), %rax movslq -8(%rbp), %rcx movq (%rax,%rcx,8), %rsi movslq -12(%rbp), %rax shlq $2, %rax addq %rax, %rsi leaq L_.str.7(%rip), %rdi movb $0, %al callq _printf ## %bb.41: ## in Loop: Header=BB0_39 Depth=2 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB0_39 LBB0_42: ## in Loop: Header=BB0_37 Depth=1 leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf ## %bb.43: ## in Loop: Header=BB0_37 Depth=1 movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) jmp LBB0_37 LBB0_44: leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf movq -24(%rbp), %rdi callq _free movl $0, -8(%rbp) LBB0_45: ## =>This Inner Loop Header: Depth=1 movl -8(%rbp), %eax cmpl -36(%rbp), %eax jge LBB0_48 ## %bb.46: ## in Loop: Header=BB0_45 Depth=1 movq -32(%rbp), %rax movslq -8(%rbp), %rcx movq (%rax,%rcx,8), %rdi callq _free ## %bb.47: ## in Loop: Header=BB0_45 Depth=1 movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) jmp LBB0_45 LBB0_48: movq -32(%rbp), %rdi callq _free 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 "\nUse for loop to print &ptrToOneDArray[i]\n" L_.str.2: ## @.str.2 .asciz "%p " L_.str.3: ## @.str.3 .asciz "\n" L_.str.4: ## @.str.4 .asciz "ptrToTwoDArray is %p\n" L_.str.5: ## @.str.5 .asciz "&ptrToTwoDArray[0]: %p\n" L_.str.6: ## @.str.6 .asciz "%d " L_.str.7: ## @.str.7 .asciz "%p " .subsections_via_symbols
the_stack_data/28263504.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 "Existentialism.\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 "Existentialism.\n" .subsections_via_symbols
the_stack_data/36074344.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, #2288 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] str wzr, [sp, #228] str w0, [sp, #224] str x1, [sp, #216] ldr w8, [sp, #224] subs w8, w8, #1 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_15 LBB0_2: mov w8, #1 str w8, [sp, #212] b LBB0_3 LBB0_3: ; =>This Loop Header: Depth=1 ; Child Loop BB0_5 Depth 2 ldr w8, [sp, #212] ldr w9, [sp, #224] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_14 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_3 Depth=1 ldr x8, [sp, #216] ldrsw x9, [sp, #212] ldr x0, [x8, x9, lsl #3] bl _strdup str x0, [sp, #192] add x0, sp, #1256 mov x1, #1024 bl _bzero ldr x8, [sp, #216] ldrsw x9, [sp, #212] ldr x0, [x8, x9, lsl #3] bl _dirname adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF bl _strtok str x0, [sp, #184] b LBB0_5 LBB0_5: ; Parent Loop BB0_3 Depth=1 ; => This Inner Loop Header: Depth=2 ldr x8, [sp, #184] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB0_12 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_5 Depth=2 add x0, sp, #1256 adrp x1, l_.str.2@PAGE add x1, x1, l_.str.2@PAGEOFF bl _strcmp subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB0_8 b LBB0_7 LBB0_7: ; in Loop: Header=BB0_5 Depth=2 add x0, sp, #1256 adrp x1, l_.str.3@PAGE add x1, x1, l_.str.3@PAGEOFF mov x2, #1024 bl ___strcat_chk b LBB0_8 LBB0_8: ; in Loop: Header=BB0_5 Depth=2 ldr x1, [sp, #184] add x0, sp, #1256 str x0, [sp, #32] ; 8-byte Folded Spill mov x2, #1024 str x2, [sp, #24] ; 8-byte Folded Spill bl ___strcat_chk ldr x1, [sp, #24] ; 8-byte Folded Reload add x0, sp, #232 str x0, [sp, #16] ; 8-byte Folded Spill bl _bzero ldr x0, [sp, #16] ; 8-byte Folded Reload ldr x2, [sp, #24] ; 8-byte Folded Reload ldr x1, [sp, #32] ; 8-byte Folded Reload mov w8, #109 strb w8, [sp, #232] mov w8, #107 strb w8, [sp, #233] mov w8, #100 strb w8, [sp, #234] mov w8, #105 strb w8, [sp, #235] mov w8, #114 strb w8, [sp, #236] mov w8, #32 strb w8, [sp, #237] bl ___strcat_chk ldr x0, [sp, #32] ; 8-byte Folded Reload add x1, sp, #40 bl _stat subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB0_10 b LBB0_9 LBB0_9: ; in Loop: Header=BB0_5 Depth=2 ldrh w8, [sp, #44] and w8, w8, #0xf000 subs w8, w8, #4, lsl #12 ; =16384 cset w8, eq tbnz w8, #0, LBB0_11 b LBB0_10 LBB0_10: ; in Loop: Header=BB0_5 Depth=2 add x0, sp, #232 bl _system b LBB0_11 LBB0_11: ; in Loop: Header=BB0_5 Depth=2 mov x0, #0 adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF bl _strtok str x0, [sp, #184] b LBB0_5 LBB0_12: ; in Loop: Header=BB0_3 Depth=1 ldr x0, [sp, #192] adrp x1, l_.str.4@PAGE add x1, x1, l_.str.4@PAGEOFF bl _fopen str x0, [sp, #200] ldr x1, [sp, #200] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _fputs ldr x0, [sp, #200] bl _fclose b LBB0_13 LBB0_13: ; in Loop: Header=BB0_3 Depth=1 ldr w8, [sp, #212] add w8, w8, #1 str w8, [sp, #212] b LBB0_3 LBB0_14: b LBB0_15 LBB0_15: ldr w8, [sp, #228] 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_17 b LBB0_16 LBB0_16: bl ___stack_chk_fail LBB0_17: ldr w0, [sp, #12] ; 4-byte Folded Reload 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 "Usage: touch [file name]" l_.str.1: ; @.str.1 .asciz "/" l_.str.2: ; @.str.2 .space 1 l_.str.3: ; @.str.3 .asciz "\\\\" l_.str.4: ; @.str.4 .asciz "w" .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 $2272, %rsp ## imm = 0x8E0 movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -2068(%rbp) movl %edi, -2072(%rbp) movq %rsi, -2080(%rbp) cmpl $1, -2072(%rbp) jne LBB0_2 ## %bb.1: leaq L_.str(%rip), %rdi movb $0, %al callq _printf jmp LBB0_15 LBB0_2: movl $1, -2084(%rbp) LBB0_3: ## =>This Loop Header: Depth=1 ## Child Loop BB0_5 Depth 2 movl -2084(%rbp), %eax cmpl -2072(%rbp), %eax jge LBB0_14 ## %bb.4: ## in Loop: Header=BB0_3 Depth=1 movq -2080(%rbp), %rax movslq -2084(%rbp), %rcx movq (%rax,%rcx,8), %rdi callq _strdup movq %rax, -2104(%rbp) leaq -1040(%rbp), %rdi xorl %esi, %esi movl $1024, %edx ## imm = 0x400 callq _memset movq -2080(%rbp), %rax movslq -2084(%rbp), %rcx movq (%rax,%rcx,8), %rdi callq _dirname movq %rax, %rdi leaq L_.str.1(%rip), %rsi callq _strtok movq %rax, -2112(%rbp) LBB0_5: ## Parent Loop BB0_3 Depth=1 ## => This Inner Loop Header: Depth=2 cmpq $0, -2112(%rbp) je LBB0_12 ## %bb.6: ## in Loop: Header=BB0_5 Depth=2 leaq -1040(%rbp), %rdi leaq L_.str.2(%rip), %rsi callq _strcmp cmpl $0, %eax je LBB0_8 ## %bb.7: ## in Loop: Header=BB0_5 Depth=2 leaq -1040(%rbp), %rdi leaq L_.str.3(%rip), %rsi movl $1024, %edx ## imm = 0x400 callq ___strcat_chk LBB0_8: ## in Loop: Header=BB0_5 Depth=2 leaq -1040(%rbp), %rdi movq -2112(%rbp), %rsi movl $1024, %edx ## imm = 0x400 callq ___strcat_chk leaq -2064(%rbp), %rdi xorl %esi, %esi movl $1024, %edx ## imm = 0x400 callq _memset movb $109, -2064(%rbp) movb $107, -2063(%rbp) movb $100, -2062(%rbp) movb $105, -2061(%rbp) movb $114, -2060(%rbp) movb $32, -2059(%rbp) leaq -2064(%rbp), %rdi leaq -1040(%rbp), %rsi movl $1024, %edx ## imm = 0x400 callq ___strcat_chk leaq -1040(%rbp), %rdi leaq -2256(%rbp), %rsi callq _stat$INODE64 cmpl $0, %eax jne LBB0_10 ## %bb.9: ## in Loop: Header=BB0_5 Depth=2 movzwl -2252(%rbp), %eax andl $61440, %eax ## imm = 0xF000 cmpl $16384, %eax ## imm = 0x4000 je LBB0_11 LBB0_10: ## in Loop: Header=BB0_5 Depth=2 leaq -2064(%rbp), %rdi callq _system LBB0_11: ## in Loop: Header=BB0_5 Depth=2 xorl %eax, %eax movl %eax, %edi leaq L_.str.1(%rip), %rsi callq _strtok movq %rax, -2112(%rbp) jmp LBB0_5 LBB0_12: ## in Loop: Header=BB0_3 Depth=1 movq -2104(%rbp), %rdi leaq L_.str.4(%rip), %rsi callq _fopen movq %rax, -2096(%rbp) movq -2096(%rbp), %rsi leaq L_.str.2(%rip), %rdi callq _fputs movq -2096(%rbp), %rdi callq _fclose ## %bb.13: ## in Loop: Header=BB0_3 Depth=1 movl -2084(%rbp), %eax addl $1, %eax movl %eax, -2084(%rbp) jmp LBB0_3 LBB0_14: jmp LBB0_15 LBB0_15: movl -2068(%rbp), %eax movl %eax, -2260(%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 -2260(%rbp), %eax ## 4-byte Reload addq $2272, %rsp ## imm = 0x8E0 popq %rbp retq LBB0_17: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Usage: touch [file name]" L_.str.1: ## @.str.1 .asciz "/" L_.str.2: ## @.str.2 .space 1 L_.str.3: ## @.str.3 .asciz "\\\\" L_.str.4: ## @.str.4 .asciz "w" .subsections_via_symbols
the_stack_data/98575533.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _swap ; -- Begin function swap .p2align 2 _swap: ; @swap .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, #24] str x1, [sp, #16] ldr x8, [sp, #16] ldr w8, [x8] str w8, [sp, #12] ldr x8, [sp, #24] ldr w8, [x8] ldr x9, [sp, #16] str w8, [x9] ldr w8, [sp, #12] ldr x9, [sp, #24] str w8, [x9] add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _bubbleSort ; -- Begin function bubbleSort .p2align 2 _bubbleSort: ; @bubbleSort .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] stur w1, [x29, #-12] str wzr, [sp, #16] b LBB1_1 LBB1_1: ; =>This Loop Header: Depth=1 ; Child Loop BB1_3 Depth 2 ldr w8, [sp, #16] ldur w9, [x29, #-12] subs w9, w9, #1 subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_10 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #16] add w8, w8, #1 str w8, [sp, #12] b LBB1_3 LBB1_3: ; Parent Loop BB1_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #12] ldur w9, [x29, #-12] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_8 b LBB1_4 LBB1_4: ; in Loop: Header=BB1_3 Depth=2 ldur x8, [x29, #-8] ldrsw x9, [sp, #16] ldr w8, [x8, x9, lsl #2] ldur x9, [x29, #-8] ldrsw x10, [sp, #12] ldr w9, [x9, x10, lsl #2] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB1_6 b LBB1_5 LBB1_5: ; in Loop: Header=BB1_3 Depth=2 ldur x8, [x29, #-8] ldrsw x9, [sp, #16] add x0, x8, x9, lsl #2 ldur x8, [x29, #-8] ldrsw x9, [sp, #12] add x1, x8, x9, lsl #2 bl _swap b LBB1_6 LBB1_6: ; in Loop: Header=BB1_3 Depth=2 b LBB1_7 LBB1_7: ; in Loop: Header=BB1_3 Depth=2 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB1_3 LBB1_8: ; in Loop: Header=BB1_1 Depth=1 b LBB1_9 LBB1_9: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #16] add w8, w8, #1 str w8, [sp, #16] b LBB1_1 LBB1_10: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _selectionSort ; -- Begin function selectionSort .p2align 2 _selectionSort: ; @selectionSort .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 LBB2_1 LBB2_1: ; =>This Loop Header: Depth=1 ; Child Loop BB2_3 Depth 2 ldr w8, [sp, #12] ldur w9, [x29, #-12] subs w9, w9, #1 subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB2_10 b LBB2_2 LBB2_2: ; in Loop: Header=BB2_1 Depth=1 ldr w8, [sp, #12] str w8, [sp, #16] ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #8] b LBB2_3 LBB2_3: ; Parent Loop BB2_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #8] ldur w9, [x29, #-12] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB2_8 b LBB2_4 LBB2_4: ; in Loop: Header=BB2_3 Depth=2 ldur x8, [x29, #-8] ldrsw x9, [sp, #8] ldr w8, [x8, x9, lsl #2] ldur x9, [x29, #-8] ldrsw x10, [sp, #16] ldr w9, [x9, x10, lsl #2] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB2_6 b LBB2_5 LBB2_5: ; in Loop: Header=BB2_3 Depth=2 ldr w8, [sp, #8] str w8, [sp, #16] b LBB2_6 LBB2_6: ; in Loop: Header=BB2_3 Depth=2 b LBB2_7 LBB2_7: ; in Loop: Header=BB2_3 Depth=2 ldr w8, [sp, #8] add w8, w8, #1 str w8, [sp, #8] b LBB2_3 LBB2_8: ; in Loop: Header=BB2_1 Depth=1 ldur x8, [x29, #-8] ldrsw x9, [sp, #16] add x0, x8, x9, lsl #2 ldur x8, [x29, #-8] ldrsw x9, [sp, #12] add x1, x8, x9, lsl #2 bl _swap b LBB2_9 LBB2_9: ; in Loop: Header=BB2_1 Depth=1 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB2_1 LBB2_10: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _pivot ; -- Begin function pivot .p2align 2 _pivot: ; @pivot .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 w3, [sp, #12] ldur x8, [x29, #-8] ldrsw x9, [sp, #16] ldr w8, [x8, x9, lsl #2] str w8, [sp, #8] ldr w8, [sp, #16] str w8, [sp, #4] ldr w8, [sp, #16] add w8, w8, #1 str w8, [sp] b LBB3_1 LBB3_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp] ldur w9, [x29, #-12] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB3_6 b LBB3_2 LBB3_2: ; in Loop: Header=BB3_1 Depth=1 ldr w8, [sp, #8] ldur x9, [x29, #-8] ldrsw x10, [sp] ldr w9, [x9, x10, lsl #2] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB3_4 b LBB3_3 LBB3_3: ; in Loop: Header=BB3_1 Depth=1 ldr w8, [sp, #4] add w8, w8, #1 str w8, [sp, #4] ldur x8, [x29, #-8] ldrsw x9, [sp, #4] add x0, x8, x9, lsl #2 ldur x8, [x29, #-8] ldrsw x9, [sp] add x1, x8, x9, lsl #2 bl _swap b LBB3_4 LBB3_4: ; in Loop: Header=BB3_1 Depth=1 b LBB3_5 LBB3_5: ; in Loop: Header=BB3_1 Depth=1 ldr w8, [sp] add w8, w8, #1 str w8, [sp] b LBB3_1 LBB3_6: ldur x8, [x29, #-8] ldrsw x9, [sp, #16] add x0, x8, x9, lsl #2 ldur x8, [x29, #-8] ldrsw x9, [sp, #4] add x1, x8, x9, lsl #2 bl _swap ldr w0, [sp, #4] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _quickSort ; -- Begin function quickSort .p2align 2 _quickSort: ; @quickSort .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 w3, [sp, #12] ldr w8, [sp, #16] ldr w9, [sp, #12] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB4_2 b LBB4_1 LBB4_1: ldur x0, [x29, #-8] ldur w1, [x29, #-12] ldr w2, [sp, #16] ldr w3, [sp, #12] bl _pivot str w0, [sp, #8] ldur x0, [x29, #-8] ldur w1, [x29, #-12] ldr w2, [sp, #16] ldr w8, [sp, #8] subs w3, w8, #1 bl _quickSort ldur x0, [x29, #-8] ldur w1, [x29, #-12] ldr w8, [sp, #8] add w2, w8, #1 ldr w3, [sp, #12] bl _quickSort b LBB4_2 LBB4_2: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #96 .cfi_def_cfa_offset 96 stp x29, x30, [sp, #80] ; 16-byte Folded Spill add x29, sp, #80 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] str wzr, [sp, #24] add x0, sp, #28 adrp x1, l___const.main.arr@PAGE add x1, x1, l___const.main.arr@PAGEOFF mov x2, #44 bl _memcpy str wzr, [sp, #20] b LBB5_1 LBB5_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #20] subs w8, w8, #11 cset w8, ge tbnz w8, #0, LBB5_4 b LBB5_2 LBB5_2: ; in Loop: Header=BB5_1 Depth=1 ldrsw x9, [sp, #20] add x8, sp, #28 ldr w9, [x8, x9, lsl #2] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf b LBB5_3 LBB5_3: ; in Loop: Header=BB5_1 Depth=1 ldr w8, [sp, #20] add w8, w8, #1 str w8, [sp, #20] b LBB5_1 LBB5_4: adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf add x0, sp, #28 mov w1, #11 mov w2, #0 mov w3, #10 bl _quickSort str wzr, [sp, #16] b LBB5_5 LBB5_5: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #16] subs w8, w8, #11 cset w8, ge tbnz w8, #0, LBB5_8 b LBB5_6 LBB5_6: ; in Loop: Header=BB5_5 Depth=1 ldrsw x9, [sp, #16] add x8, sp, #28 ldr w9, [x8, x9, lsl #2] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf b LBB5_7 LBB5_7: ; in Loop: Header=BB5_5 Depth=1 ldr w8, [sp, #16] add w8, w8, #1 str w8, [sp, #16] b LBB5_5 LBB5_8: adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB5_10 b LBB5_9 LBB5_9: bl ___stack_chk_fail LBB5_10: mov w0, #0 ldp x29, x30, [sp, #80] ; 16-byte Folded Reload add sp, sp, #96 ret .cfi_endproc ; -- End function .section __TEXT,__const .p2align 2 ; @__const.main.arr l___const.main.arr: .long 8 ; 0x8 .long 3 ; 0x3 .long 0 ; 0x0 .long 1 ; 0x1 .long 5 ; 0x5 .long 4 ; 0x4 .long 7 ; 0x7 .long 12 ; 0xc .long 54 ; 0x36 .long 21 ; 0x15 .long 99 ; 0x63 .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d " l_.str.1: ; @.str.1 .asciz "\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _swap ## -- Begin function swap .p2align 4, 0x90 _swap: ## @swap .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) movq -16(%rbp), %rax movl (%rax), %eax movl %eax, -20(%rbp) movq -8(%rbp), %rax movl (%rax), %ecx movq -16(%rbp), %rax movl %ecx, (%rax) movl -20(%rbp), %ecx movq -8(%rbp), %rax movl %ecx, (%rax) popq %rbp retq .cfi_endproc ## -- End function .globl _bubbleSort ## -- Begin function bubbleSort .p2align 4, 0x90 _bubbleSort: ## @bubbleSort .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) movl $0, -16(%rbp) LBB1_1: ## =>This Loop Header: Depth=1 ## Child Loop BB1_3 Depth 2 movl -16(%rbp), %eax movl -12(%rbp), %ecx subl $1, %ecx cmpl %ecx, %eax jge LBB1_10 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 movl -16(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) LBB1_3: ## Parent Loop BB1_1 Depth=1 ## => This Inner Loop Header: Depth=2 movl -20(%rbp), %eax cmpl -12(%rbp), %eax jge LBB1_8 ## %bb.4: ## in Loop: Header=BB1_3 Depth=2 movq -8(%rbp), %rax movslq -16(%rbp), %rcx movl (%rax,%rcx,4), %eax movq -8(%rbp), %rcx movslq -20(%rbp), %rdx cmpl (%rcx,%rdx,4), %eax jle LBB1_6 ## %bb.5: ## in Loop: Header=BB1_3 Depth=2 movq -8(%rbp), %rdi movslq -16(%rbp), %rax shlq $2, %rax addq %rax, %rdi movq -8(%rbp), %rsi movslq -20(%rbp), %rax shlq $2, %rax addq %rax, %rsi callq _swap LBB1_6: ## in Loop: Header=BB1_3 Depth=2 jmp LBB1_7 LBB1_7: ## in Loop: Header=BB1_3 Depth=2 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB1_3 LBB1_8: ## in Loop: Header=BB1_1 Depth=1 jmp LBB1_9 LBB1_9: ## in Loop: Header=BB1_1 Depth=1 movl -16(%rbp), %eax addl $1, %eax movl %eax, -16(%rbp) jmp LBB1_1 LBB1_10: addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _selectionSort ## -- Begin function selectionSort .p2align 4, 0x90 _selectionSort: ## @selectionSort .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) LBB2_1: ## =>This Loop Header: Depth=1 ## Child Loop BB2_3 Depth 2 movl -20(%rbp), %eax movl -12(%rbp), %ecx subl $1, %ecx cmpl %ecx, %eax jge LBB2_10 ## %bb.2: ## in Loop: Header=BB2_1 Depth=1 movl -20(%rbp), %eax movl %eax, -16(%rbp) movl -20(%rbp), %eax addl $1, %eax movl %eax, -24(%rbp) LBB2_3: ## Parent Loop BB2_1 Depth=1 ## => This Inner Loop Header: Depth=2 movl -24(%rbp), %eax cmpl -12(%rbp), %eax jge LBB2_8 ## %bb.4: ## in Loop: Header=BB2_3 Depth=2 movq -8(%rbp), %rax movslq -24(%rbp), %rcx movl (%rax,%rcx,4), %eax movq -8(%rbp), %rcx movslq -16(%rbp), %rdx cmpl (%rcx,%rdx,4), %eax jge LBB2_6 ## %bb.5: ## in Loop: Header=BB2_3 Depth=2 movl -24(%rbp), %eax movl %eax, -16(%rbp) LBB2_6: ## in Loop: Header=BB2_3 Depth=2 jmp LBB2_7 LBB2_7: ## in Loop: Header=BB2_3 Depth=2 movl -24(%rbp), %eax addl $1, %eax movl %eax, -24(%rbp) jmp LBB2_3 LBB2_8: ## in Loop: Header=BB2_1 Depth=1 movq -8(%rbp), %rdi movslq -16(%rbp), %rax shlq $2, %rax addq %rax, %rdi movq -8(%rbp), %rsi movslq -20(%rbp), %rax shlq $2, %rax addq %rax, %rsi callq _swap ## %bb.9: ## in Loop: Header=BB2_1 Depth=1 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB2_1 LBB2_10: addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _pivot ## -- Begin function pivot .p2align 4, 0x90 _pivot: ## @pivot .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 %ecx, -20(%rbp) movq -8(%rbp), %rax movslq -16(%rbp), %rcx movl (%rax,%rcx,4), %eax movl %eax, -24(%rbp) movl -16(%rbp), %eax movl %eax, -28(%rbp) movl -16(%rbp), %eax addl $1, %eax movl %eax, -32(%rbp) LBB3_1: ## =>This Inner Loop Header: Depth=1 movl -32(%rbp), %eax cmpl -12(%rbp), %eax jge LBB3_6 ## %bb.2: ## in Loop: Header=BB3_1 Depth=1 movl -24(%rbp), %eax movq -8(%rbp), %rcx movslq -32(%rbp), %rdx cmpl (%rcx,%rdx,4), %eax jle LBB3_4 ## %bb.3: ## in Loop: Header=BB3_1 Depth=1 movl -28(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) movq -8(%rbp), %rdi movslq -28(%rbp), %rax shlq $2, %rax addq %rax, %rdi movq -8(%rbp), %rsi movslq -32(%rbp), %rax shlq $2, %rax addq %rax, %rsi callq _swap LBB3_4: ## in Loop: Header=BB3_1 Depth=1 jmp LBB3_5 LBB3_5: ## in Loop: Header=BB3_1 Depth=1 movl -32(%rbp), %eax addl $1, %eax movl %eax, -32(%rbp) jmp LBB3_1 LBB3_6: movq -8(%rbp), %rdi movslq -16(%rbp), %rax shlq $2, %rax addq %rax, %rdi movq -8(%rbp), %rsi movslq -28(%rbp), %rax shlq $2, %rax addq %rax, %rsi callq _swap movl -28(%rbp), %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _quickSort ## -- Begin function quickSort .p2align 4, 0x90 _quickSort: ## @quickSort .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 %ecx, -20(%rbp) movl -16(%rbp), %eax cmpl -20(%rbp), %eax jge LBB4_2 ## %bb.1: movq -8(%rbp), %rdi movl -12(%rbp), %esi movl -16(%rbp), %edx movl -20(%rbp), %ecx callq _pivot movl %eax, -24(%rbp) movq -8(%rbp), %rdi movl -12(%rbp), %esi movl -16(%rbp), %edx movl -24(%rbp), %ecx subl $1, %ecx callq _quickSort movq -8(%rbp), %rdi movl -12(%rbp), %esi movl -24(%rbp), %edx addl $1, %edx movl -20(%rbp), %ecx callq _quickSort LBB4_2: addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $80, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -68(%rbp) leaq -64(%rbp), %rdi leaq l___const.main.arr(%rip), %rsi movl $44, %edx callq _memcpy movl $0, -72(%rbp) LBB5_1: ## =>This Inner Loop Header: Depth=1 cmpl $11, -72(%rbp) jge LBB5_4 ## %bb.2: ## in Loop: Header=BB5_1 Depth=1 movslq -72(%rbp), %rax movl -64(%rbp,%rax,4), %esi leaq L_.str(%rip), %rdi movb $0, %al callq _printf ## %bb.3: ## in Loop: Header=BB5_1 Depth=1 movl -72(%rbp), %eax addl $1, %eax movl %eax, -72(%rbp) jmp LBB5_1 LBB5_4: leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf leaq -64(%rbp), %rdi movl $11, %esi xorl %edx, %edx movl $10, %ecx callq _quickSort movl $0, -76(%rbp) LBB5_5: ## =>This Inner Loop Header: Depth=1 cmpl $11, -76(%rbp) jge LBB5_8 ## %bb.6: ## in Loop: Header=BB5_5 Depth=1 movslq -76(%rbp), %rax movl -64(%rbp,%rax,4), %esi leaq L_.str(%rip), %rdi movb $0, %al callq _printf ## %bb.7: ## in Loop: Header=BB5_5 Depth=1 movl -76(%rbp), %eax addl $1, %eax movl %eax, -76(%rbp) jmp LBB5_5 LBB5_8: leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB5_10 ## %bb.9: xorl %eax, %eax addq $80, %rsp popq %rbp retq LBB5_10: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__const .p2align 4 ## @__const.main.arr l___const.main.arr: .long 8 ## 0x8 .long 3 ## 0x3 .long 0 ## 0x0 .long 1 ## 0x1 .long 5 ## 0x5 .long 4 ## 0x4 .long 7 ## 0x7 .long 12 ## 0xc .long 54 ## 0x36 .long 21 ## 0x15 .long 99 ## 0x63 .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d " L_.str.1: ## @.str.1 .asciz "\n" .subsections_via_symbols
the_stack_data/247017447.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _power ; -- Begin function power .p2align 2 _power: ; @power .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str w0, [sp, #8] str w1, [sp, #4] ldr w8, [sp, #4] subs w8, w8, #0 cset w8, ne tbnz w8, #0, 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-byte Folded Spill ldr w0, [sp, #8] ldr w8, [sp, #4] subs w1, w8, #1 bl _power ldr w8, [sp] ; 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 _decequi ; -- Begin function decequi .p2align 2 _decequi: ; @decequi .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 w0, [sp, #20] mov w8, #15 str w8, [sp, #16] b LBB1_1 LBB1_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #16] subs w8, w8, #0 cset w8, lt tbnz w8, #0, LBB1_4 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #20] ands w8, w8, #0x1 cset w8, eq and w8, w8, #0x1 ldrsw x10, [sp, #16] add x9, sp, #24 str w8, [x9, x10, lsl #2] ldr w8, [sp, #20] asr w8, w8, #1 str w8, [sp, #20] b LBB1_3 LBB1_3: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #16] subs w8, w8, #1 str w8, [sp, #16] b LBB1_1 LBB1_4: str wzr, [sp, #20] mov w8, #15 str w8, [sp, #12] b LBB1_5 LBB1_5: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #12] subs w8, w8, #0 cset w8, lt tbnz w8, #0, LBB1_8 b LBB1_6 LBB1_6: ; in Loop: Header=BB1_5 Depth=1 ldrsw x9, [sp, #12] add x8, sp, #24 ldr w8, [x8, x9, lsl #2] str w8, [sp, #8] ; 4-byte Folded Spill ldr w9, [sp, #12] mov w8, #15 subs w1, w8, w9 mov w0, #2 bl _power ldr w8, [sp, #8] ; 4-byte Folded Reload mul w9, w8, w0 ldr w8, [sp, #20] add w8, w8, w9 str w8, [sp, #20] b LBB1_7 LBB1_7: ; in Loop: Header=BB1_5 Depth=1 ldr w8, [sp, #12] subs w8, w8, #1 str w8, [sp, #12] b LBB1_5 LBB1_8: ldr w9, [sp, #20] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB1_10 b LBB1_9 LBB1_9: bl ___stack_chk_fail LBB1_10: ldp x29, x30, [sp, #96] ; 16-byte Folded Reload add sp, sp, #112 ret .cfi_endproc ; -- End function .globl _masking ; -- Begin function masking .p2align 2 _masking: ; @masking .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur w0, [x29, #-4] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf mov x9, sp sub x8, x29, #8 str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF str x0, [sp, #8] ; 8-byte Folded Spill bl _scanf adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf ldr x0, [sp, #8] ; 8-byte Folded Reload mov x9, sp sub x8, x29, #12 str x8, [x9] bl _scanf ldur w8, [x29, #-8] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB2_2 b LBB2_1 LBB2_1: ldur w9, [x29, #-12] ldur w8, [x29, #-4] and w8, w8, w9 stur w8, [x29, #-4] ldur w9, [x29, #-4] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf b LBB2_6 LBB2_2: ldur w8, [x29, #-8] subs w8, w8, #2 cset w8, ne tbnz w8, #0, LBB2_4 b LBB2_3 LBB2_3: ldur w9, [x29, #-12] ldur w8, [x29, #-4] eor w8, w8, w9 stur w8, [x29, #-4] ldur w9, [x29, #-4] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf b LBB2_5 LBB2_4: ldur w9, [x29, #-12] ldur w8, [x29, #-4] orr w8, w8, w9 stur w8, [x29, #-4] ldur w9, [x29, #-4] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf b LBB2_5 LBB2_5: b LBB2_6 LBB2_6: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _shifting ; -- Begin function shifting .p2align 2 _shifting: ; @shifting .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur w0, [x29, #-4] adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf mov x9, sp sub x8, x29, #8 str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF str x0, [sp, #8] ; 8-byte Folded Spill bl _scanf adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _printf ldr x0, [sp, #8] ; 8-byte Folded Reload mov x9, sp sub x8, x29, #12 str x8, [x9] bl _scanf ldur w8, [x29, #-8] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB3_2 b LBB3_1 LBB3_1: ldur w9, [x29, #-12] ldur w8, [x29, #-4] asr w8, w8, w9 stur w8, [x29, #-4] b LBB3_3 LBB3_2: ldur w9, [x29, #-12] ldur w8, [x29, #-4] lsl w8, w8, w9 stur w8, [x29, #-4] b LBB3_3 LBB3_3: ldur w9, [x29, #-4] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.7@PAGE add x0, x0, l_.str.7@PAGEOFF bl _printf ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] b LBB4_1 LBB4_1: ; =>This Inner Loop Header: Depth=1 adrp x0, l_.str.8@PAGE add x0, x0, l_.str.8@PAGEOFF bl _printf adrp x0, l_.str.9@PAGE add x0, x0, l_.str.9@PAGEOFF bl _printf mov x9, sp sub x8, x29, #8 str x8, [x9] adrp x0, l_.str.10@PAGE add x0, x0, l_.str.10@PAGEOFF str x0, [sp, #16] ; 8-byte Folded Spill bl _scanf adrp x0, l_.str.11@PAGE add x0, x0, l_.str.11@PAGEOFF bl _printf ldr x0, [sp, #16] ; 8-byte Folded Reload mov x9, sp sub x8, x29, #12 str x8, [x9] bl _scanf ldur w8, [x29, #-8] subs w8, w8, #1 ; kill: def $x8 killed $w8 str x8, [sp, #24] ; 8-byte Folded Spill subs x8, x8, #3 cset w8, hi tbnz w8, #0, LBB4_7 ; %bb.2: ; in Loop: Header=BB4_1 Depth=1 ldr x11, [sp, #24] ; 8-byte Folded Reload adrp x10, lJTI4_0@PAGE add x10, x10, lJTI4_0@PAGEOFF Ltmp0: adr x8, Ltmp0 ldrsw x9, [x10, x11, lsl #2] add x8, x8, x9 br x8 LBB4_3: ; in Loop: Header=BB4_1 Depth=1 ldur w0, [x29, #-12] bl _decequi b LBB4_8 LBB4_4: ; in Loop: Header=BB4_1 Depth=1 ldur w0, [x29, #-12] bl _masking b LBB4_8 LBB4_5: ; in Loop: Header=BB4_1 Depth=1 ldur w0, [x29, #-12] bl _shifting b LBB4_8 LBB4_6: stur wzr, [x29, #-4] b LBB4_9 LBB4_7: adrp x0, l_.str.12@PAGE add x0, x0, l_.str.12@PAGEOFF bl _printf mov w8, #-1 stur w8, [x29, #-4] b LBB4_9 LBB4_8: ; in Loop: Header=BB4_1 Depth=1 b LBB4_1 LBB4_9: ldur w0, [x29, #-4] ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc .p2align 2 lJTI4_0: .long LBB4_3-Ltmp0 .long LBB4_4-Ltmp0 .long LBB4_5-Ltmp0 .long LBB4_6-Ltmp0 ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "HEX euivalent is %x\n" l_.str.1: ; @.str.1 .asciz "Choose:\n1.Bitwise AND.\n2.Bitwise XOR.\n3.Bitwise OR.\n" l_.str.2: ; @.str.2 .asciz "%d" l_.str.3: ; @.str.3 .asciz "Enter mask value: " l_.str.4: ; @.str.4 .asciz "%x\n" l_.str.5: ; @.str.5 .asciz "Choose:\n1.Right Shift.\n2.Left Shift.\n" l_.str.6: ; @.str.6 .asciz "Number of bits: " l_.str.7: ; @.str.7 .asciz "Processed: %x\n" l_.str.8: ; @.str.8 .asciz "Choose.\n1.HEX equivalent of 1's compliment." l_.str.9: ; @.str.9 .asciz "\n2.Masking.\n3.shifting.\n4.Exit.\n" l_.str.10: ; @.str.10 .asciz " %d" l_.str.11: ; @.str.11 .asciz "Enter HEX value: " l_.str.12: ; @.str.12 .asciz "Wrong choice!!!" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _power ## -- Begin function power .p2align 4, 0x90 _power: ## @power .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl %edi, -8(%rbp) movl %esi, -12(%rbp) cmpl $0, -12(%rbp) jne LBB0_2 ## %bb.1: movl $1, -4(%rbp) jmp LBB0_3 LBB0_2: movl -8(%rbp), %eax movl %eax, -16(%rbp) ## 4-byte Spill movl -8(%rbp), %edi movl -12(%rbp), %esi subl $1, %esi callq _power movl %eax, %ecx movl -16(%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 _decequi ## -- Begin function decequi .p2align 4, 0x90 _decequi: ## @decequi .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 %edi, -84(%rbp) movl $15, -88(%rbp) LBB1_1: ## =>This Inner Loop Header: Depth=1 cmpl $0, -88(%rbp) jl LBB1_4 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 movl -84(%rbp), %eax andl $1, %eax cmpl $0, %eax setne %al xorb $-1, %al andb $1, %al movzbl %al, %ecx movslq -88(%rbp), %rax movl %ecx, -80(%rbp,%rax,4) movl -84(%rbp), %eax sarl $1, %eax movl %eax, -84(%rbp) ## %bb.3: ## in Loop: Header=BB1_1 Depth=1 movl -88(%rbp), %eax addl $-1, %eax movl %eax, -88(%rbp) jmp LBB1_1 LBB1_4: movl $0, -84(%rbp) movl $15, -92(%rbp) LBB1_5: ## =>This Inner Loop Header: Depth=1 cmpl $0, -92(%rbp) jl LBB1_8 ## %bb.6: ## in Loop: Header=BB1_5 Depth=1 movslq -92(%rbp), %rax movl -80(%rbp,%rax,4), %eax movl %eax, -96(%rbp) ## 4-byte Spill movl $15, %esi subl -92(%rbp), %esi movl $2, %edi callq _power movl %eax, %ecx movl -96(%rbp), %eax ## 4-byte Reload imull %ecx, %eax addl -84(%rbp), %eax movl %eax, -84(%rbp) ## %bb.7: ## in Loop: Header=BB1_5 Depth=1 movl -92(%rbp), %eax addl $-1, %eax movl %eax, -92(%rbp) jmp LBB1_5 LBB1_8: movl -84(%rbp), %esi leaq L_.str(%rip), %rdi movb $0, %al callq _printf movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB1_10 ## %bb.9: addq $96, %rsp popq %rbp retq LBB1_10: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _masking ## -- Begin function masking .p2align 4, 0x90 _masking: ## @masking .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl %edi, -4(%rbp) leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf leaq L_.str.2(%rip), %rdi leaq -8(%rbp), %rsi movb $0, %al callq _scanf leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf leaq L_.str.2(%rip), %rdi leaq -12(%rbp), %rsi movb $0, %al callq _scanf cmpl $1, -8(%rbp) jne LBB2_2 ## %bb.1: movl -12(%rbp), %eax andl -4(%rbp), %eax movl %eax, -4(%rbp) movl -4(%rbp), %esi leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf jmp LBB2_6 LBB2_2: cmpl $2, -8(%rbp) jne LBB2_4 ## %bb.3: movl -12(%rbp), %eax xorl -4(%rbp), %eax movl %eax, -4(%rbp) movl -4(%rbp), %esi leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf jmp LBB2_5 LBB2_4: movl -12(%rbp), %eax orl -4(%rbp), %eax movl %eax, -4(%rbp) movl -4(%rbp), %esi leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf LBB2_5: jmp LBB2_6 LBB2_6: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _shifting ## -- Begin function shifting .p2align 4, 0x90 _shifting: ## @shifting .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl %edi, -4(%rbp) leaq L_.str.5(%rip), %rdi movb $0, %al callq _printf leaq L_.str.2(%rip), %rdi leaq -8(%rbp), %rsi movb $0, %al callq _scanf leaq L_.str.6(%rip), %rdi movb $0, %al callq _printf leaq L_.str.2(%rip), %rdi leaq -12(%rbp), %rsi movb $0, %al callq _scanf cmpl $1, -8(%rbp) jne LBB3_2 ## %bb.1: movl -12(%rbp), %ecx movl -4(%rbp), %eax ## kill: def $cl killed $ecx sarl %cl, %eax movl %eax, -4(%rbp) jmp LBB3_3 LBB3_2: movl -12(%rbp), %ecx movl -4(%rbp), %eax ## kill: def $cl killed $ecx shll %cl, %eax movl %eax, -4(%rbp) LBB3_3: movl -4(%rbp), %esi leaq L_.str.7(%rip), %rdi movb $0, %al callq _printf addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movl $0, -4(%rbp) LBB4_1: ## =>This Inner Loop Header: Depth=1 leaq L_.str.8(%rip), %rdi xorl %eax, %eax ## kill: def $al killed $al killed $eax movb %al, -25(%rbp) ## 1-byte Spill callq _printf ## kill: def $ecx killed $eax movb -25(%rbp), %al ## 1-byte Reload leaq L_.str.9(%rip), %rdi callq _printf ## kill: def $ecx killed $eax movb -25(%rbp), %al ## 1-byte Reload leaq L_.str.10(%rip), %rdi movq %rdi, -40(%rbp) ## 8-byte Spill leaq -8(%rbp), %rsi callq _scanf ## kill: def $ecx killed $eax movb -25(%rbp), %al ## 1-byte Reload leaq L_.str.11(%rip), %rdi callq _printf movq -40(%rbp), %rdi ## 8-byte Reload ## kill: def $ecx killed $eax movb -25(%rbp), %al ## 1-byte Reload leaq -12(%rbp), %rsi callq _scanf movl -8(%rbp), %eax decl %eax movl %eax, %ecx movq %rcx, -24(%rbp) ## 8-byte Spill subl $3, %eax ja LBB4_6 ## %bb.9: ## in Loop: Header=BB4_1 Depth=1 movq -24(%rbp), %rax ## 8-byte Reload leaq LJTI4_0(%rip), %rcx movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax LBB4_2: ## in Loop: Header=BB4_1 Depth=1 movl -12(%rbp), %edi callq _decequi jmp LBB4_7 LBB4_3: ## in Loop: Header=BB4_1 Depth=1 movl -12(%rbp), %edi callq _masking jmp LBB4_7 LBB4_4: ## in Loop: Header=BB4_1 Depth=1 movl -12(%rbp), %edi callq _shifting jmp LBB4_7 LBB4_5: movl $0, -4(%rbp) jmp LBB4_8 LBB4_6: leaq L_.str.12(%rip), %rdi movb $0, %al callq _printf movl $-1, -4(%rbp) jmp LBB4_8 LBB4_7: ## in Loop: Header=BB4_1 Depth=1 jmp LBB4_1 LBB4_8: movl -4(%rbp), %eax addq $48, %rsp popq %rbp retq .cfi_endproc .p2align 2, 0x90 .data_region jt32 .set L4_0_set_2, LBB4_2-LJTI4_0 .set L4_0_set_3, LBB4_3-LJTI4_0 .set L4_0_set_4, LBB4_4-LJTI4_0 .set L4_0_set_5, LBB4_5-LJTI4_0 LJTI4_0: .long L4_0_set_2 .long L4_0_set_3 .long L4_0_set_4 .long L4_0_set_5 .end_data_region ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "HEX euivalent is %x\n" L_.str.1: ## @.str.1 .asciz "Choose:\n1.Bitwise AND.\n2.Bitwise XOR.\n3.Bitwise OR.\n" L_.str.2: ## @.str.2 .asciz "%d" L_.str.3: ## @.str.3 .asciz "Enter mask value: " L_.str.4: ## @.str.4 .asciz "%x\n" L_.str.5: ## @.str.5 .asciz "Choose:\n1.Right Shift.\n2.Left Shift.\n" L_.str.6: ## @.str.6 .asciz "Number of bits: " L_.str.7: ## @.str.7 .asciz "Processed: %x\n" L_.str.8: ## @.str.8 .asciz "Choose.\n1.HEX equivalent of 1's compliment." L_.str.9: ## @.str.9 .asciz "\n2.Masking.\n3.shifting.\n4.Exit.\n" L_.str.10: ## @.str.10 .asciz " %d" L_.str.11: ## @.str.11 .asciz "Enter HEX value: " L_.str.12: ## @.str.12 .asciz "Wrong choice!!!" .subsections_via_symbols
the_stack_data/111787.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 ; implicit-def: $w8 str w8, [sp, #12] str w8, [sp, #8] add sp, sp, #16 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _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 ## implicit-def: $eax movl %eax, -4(%rbp) ## implicit-def: $eax movl %eax, -8(%rbp) popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/19236.c