arm
stringlengths
122
13.2M
x86
stringlengths
122
12.4M
filename
stringlengths
18
26
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #0 stur w8, [x29, #-20] ; 4-byte Folded Spill stur wzr, [x29, #-4] mov x9, sp sub x8, x29, #8 str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF str x0, [sp, #16] ; 8-byte Folded Spill bl _scanf ldr x0, [sp, #16] ; 8-byte Folded Reload mov x9, sp sub x8, x29, #12 str x8, [x9] bl _scanf ldur s1, [x29, #-8] ; implicit-def: $d0 fmov s0, s1 sshll.2d v0, v0, #0 ; kill: def $d0 killed $d0 killed $q0 scvtf d0, d0 ldur s2, [x29, #-12] ; implicit-def: $d1 fmov s1, s2 sshll.2d v1, v1, #0 ; kill: def $d1 killed $d1 killed $q1 scvtf d1, d1 bl _pow fcvtzs w8, d0 stur w8, [x29, #-16] ldur w9, [x29, #-16] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf ldur w0, [x29, #-20] ; 4-byte Folded Reload ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%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 $16, %rsp movl $0, -4(%rbp) leaq L_.str(%rip), %rdi leaq -8(%rbp), %rsi movb $0, %al callq _scanf leaq L_.str(%rip), %rdi leaq -12(%rbp), %rsi movb $0, %al callq _scanf cvtsi2sdl -8(%rbp), %xmm0 cvtsi2sdl -12(%rbp), %xmm1 callq _pow cvttsd2si %xmm0, %eax movl %eax, -16(%rbp) movl -16(%rbp), %esi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d" L_.str.1: ## @.str.1 .asciz "%d\n" .subsections_via_symbols
the_stack_data/148189.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, #32768 movk w8, #17334, lsl #16 fmov s0, w8 stur s0, [x29, #-8] stur s0, [x29, #-12] stur wzr, [x29, #-20] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov x9, sp sub x8, x29, #16 str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf fmov s0, #1.00000000 str s0, [sp, #24] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr s0, [sp, #24] ldur s1, [x29, #-16] fcmp s0, s1 cset w8, le tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldur s0, [x29, #-8] ldur s1, [x29, #-12] fdiv s1, s0, s1 ldr s0, [sp, #24] fmul s0, s0, s1 str s0, [sp, #24] ldur s0, [x29, #-8] fmov s1, #-1.00000000 fadd s0, s0, s1 stur s0, [x29, #-8] ldur w8, [x29, #-20] add w8, w8, #1 stur w8, [x29, #-20] b LBB0_1 LBB0_3: ldr s0, [sp, #24] fcvt d0, s0 ldur w9, [x29, #-20] ; implicit-def: $x8 mov x8, x9 mov x9, sp str d0, [x9] str x8, [x9, #8] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf mov w0, #0 ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Probability to find : " l_.str.1: ; @.str.1 .asciz "%f" l_.str.2: ; @.str.2 .asciz "\nTotal no. of people out of which there is %0.1f probability that two of them have same birthdays is %d " .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __TEXT,__literal4,4byte_literals .p2align 2 ## -- Begin function main LCPI0_0: .long 0x3f800000 ## float 1 LCPI0_1: .long 0x43b68000 ## float 365 LCPI0_2: .long 0xbf800000 ## float -1 .section __TEXT,__text,regular,pure_instructions .globl _main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl $0, -4(%rbp) movss LCPI0_1(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, -8(%rbp) movss LCPI0_1(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, -12(%rbp) movl $0, -20(%rbp) leaq L_.str(%rip), %rdi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi leaq -16(%rbp), %rsi movb $0, %al callq _scanf movss LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, -24(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movss -24(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero ucomiss -16(%rbp), %xmm0 jbe LBB0_3 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movss -8(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero divss -12(%rbp), %xmm0 mulss -24(%rbp), %xmm0 movss %xmm0, -24(%rbp) movss LCPI0_2(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero addss -8(%rbp), %xmm0 movss %xmm0, -8(%rbp) movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB0_1 LBB0_3: movss -24(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movl -20(%rbp), %esi leaq L_.str.2(%rip), %rdi movb $1, %al callq _printf xorl %eax, %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Probability to find : " L_.str.1: ## @.str.1 .asciz "%f" L_.str.2: ## @.str.2 .asciz "\nTotal no. of people out of which there is %0.1f probability that two of them have same birthdays is %d " .subsections_via_symbols
the_stack_data/40438.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _init ; -- Begin function init .p2align 2 _init: ; @init .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str wzr, [sp, #12] b LBB0_1 LBB0_1: ; =>This Loop Header: Depth=1 ; Child Loop BB0_3 Depth 2 ldr w8, [sp, #12] subs w8, w8, #512 cset w8, ge tbnz w8, #0, LBB0_8 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 str wzr, [sp, #8] b LBB0_3 LBB0_3: ; Parent Loop BB0_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #8] subs w8, w8, #512 cset w8, ge tbnz w8, #0, LBB0_6 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_3 Depth=2 adrp x8, _b@GOTPAGE ldr x8, [x8, _b@GOTPAGEOFF] ldr x9, [x8] ldr w8, [sp, #8] ldr w10, [sp, #12] add w10, w8, w10, lsl #9 mov w8, #1 str w8, [x9, w10, sxtw #2] b LBB0_5 LBB0_5: ; in Loop: Header=BB0_3 Depth=2 ldr w8, [sp, #8] add w8, w8, #1 str w8, [sp, #8] b LBB0_3 LBB0_6: ; in Loop: Header=BB0_1 Depth=1 adrp x8, _a@GOTPAGE ldr x8, [x8, _a@GOTPAGEOFF] ldr x9, [x8] ldrsw x10, [sp, #12] mov w8, #1 str w8, [x9, x10, lsl #2] adrp x8, _c@GOTPAGE ldr x8, [x8, _c@GOTPAGEOFF] ldr x9, [x8] ldrsw x10, [sp, #12] mov w8, #0 str w8, [x9, x10, lsl #2] b LBB0_7 LBB0_7: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB0_1 LBB0_8: mov w0, #0 add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _Mult ; -- Begin function Mult .p2align 2 _Mult: ; @Mult .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str wzr, [sp, #12] b LBB1_1 LBB1_1: ; =>This Loop Header: Depth=1 ; Child Loop BB1_3 Depth 2 ldr w8, [sp, #12] subs w8, w8, #512 cset w8, ge tbnz w8, #0, LBB1_8 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 str wzr, [sp, #8] b LBB1_3 LBB1_3: ; Parent Loop BB1_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #8] subs w8, w8, #512 cset w8, ge tbnz w8, #0, LBB1_6 b LBB1_4 LBB1_4: ; in Loop: Header=BB1_3 Depth=2 adrp x8, _b@GOTPAGE ldr x8, [x8, _b@GOTPAGEOFF] ldr x8, [x8] ldr w9, [sp, #8] ldr w10, [sp, #12] add w9, w9, w10, lsl #9 ldr w8, [x8, w9, sxtw #2] adrp x9, _a@GOTPAGE ldr x9, [x9, _a@GOTPAGEOFF] ldr x9, [x9] ldrsw x10, [sp, #8] ldr w9, [x9, x10, lsl #2] mul w10, w8, w9 adrp x8, _c@GOTPAGE ldr x8, [x8, _c@GOTPAGEOFF] ldr x8, [x8] ldrsw x9, [sp, #12] add x9, x8, x9, lsl #2 ldr w8, [x9] add w8, w8, w10 str w8, [x9] b LBB1_5 LBB1_5: ; in Loop: Header=BB1_3 Depth=2 ldr w8, [sp, #8] add w8, w8, #1 str w8, [sp, #8] b LBB1_3 LBB1_6: ; in Loop: Header=BB1_1 Depth=1 b LBB1_7 LBB1_7: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB1_1 LBB1_8: mov w0, #0 add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _check ; -- Begin function check .p2align 2 _check: ; @check .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 sturb wzr, [x29, #-1] str wzr, [sp, #8] b LBB2_1 LBB2_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #8] subs w8, w8, #512 cset w8, ge tbnz w8, #0, LBB2_6 b LBB2_2 LBB2_2: ; in Loop: Header=BB2_1 Depth=1 adrp x8, _c@GOTPAGE ldr x8, [x8, _c@GOTPAGEOFF] ldr x8, [x8] ldrsw x9, [sp, #8] ldr w8, [x8, x9, lsl #2] subs w8, w8, #512 cset w8, eq tbnz w8, #0, LBB2_4 b LBB2_3 LBB2_3: ; in Loop: Header=BB2_1 Depth=1 mov w8, #1 sturb w8, [x29, #-1] b LBB2_4 LBB2_4: ; in Loop: Header=BB2_1 Depth=1 b LBB2_5 LBB2_5: ; in Loop: Header=BB2_1 Depth=1 ldr w8, [sp, #8] add w8, w8, #1 str w8, [sp, #8] b LBB2_1 LBB2_6: ldurb w8, [x29, #-1] and w10, w8, #0x1 adrp x9, l_.str.2@PAGE add x9, x9, l_.str.2@PAGEOFF adrp x8, l_.str.1@PAGE add x8, x8, l_.str.1@PAGEOFF ands w10, w10, #0x1 csel x8, x8, x9, ne mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov w0, #0 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _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, #2048 str x0, [sp, #8] ; 8-byte Folded Spill bl _malloc adrp x8, _a@GOTPAGE ldr x8, [x8, _a@GOTPAGEOFF] str x8, [sp, #16] ; 8-byte Folded Spill str x0, [x8] mov x0, #1048576 bl _malloc mov x8, x0 ldr x0, [sp, #8] ; 8-byte Folded Reload adrp x9, _b@GOTPAGE ldr x9, [x9, _b@GOTPAGEOFF] str x9, [sp, #24] ; 8-byte Folded Spill str x8, [x9] bl _malloc adrp x8, _c@GOTPAGE ldr x8, [x8, _c@GOTPAGEOFF] stur x8, [x29, #-16] ; 8-byte Folded Spill str x0, [x8] bl _init bl _Mult bl _check ldr x8, [sp, #16] ; 8-byte Folded Reload ldr x0, [x8] bl _free ldr x8, [sp, #24] ; 8-byte Folded Reload ldr x0, [x8] bl _free ldur x8, [x29, #-16] ; 8-byte Folded Reload ldr x0, [x8] bl _free 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 .comm _b,8,3 ; @b .comm _a,8,3 ; @a .comm _c,8,3 ; @c .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Memory Access Issue visible: %s\n" l_.str.1: ; @.str.1 .asciz "true" l_.str.2: ; @.str.2 .asciz "false" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _init ## -- Begin function init .p2align 4, 0x90 _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 movl $0, -4(%rbp) LBB0_1: ## =>This Loop Header: Depth=1 ## Child Loop BB0_3 Depth 2 cmpl $512, -4(%rbp) ## imm = 0x200 jge LBB0_8 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl $0, -8(%rbp) LBB0_3: ## Parent Loop BB0_1 Depth=1 ## => This Inner Loop Header: Depth=2 cmpl $512, -8(%rbp) ## imm = 0x200 jge LBB0_6 ## %bb.4: ## in Loop: Header=BB0_3 Depth=2 movq _b@GOTPCREL(%rip), %rax movq (%rax), %rax movl -8(%rbp), %ecx movl -4(%rbp), %edx shll $9, %edx addl %edx, %ecx movslq %ecx, %rcx movl $1, (%rax,%rcx,4) ## %bb.5: ## in Loop: Header=BB0_3 Depth=2 movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) jmp LBB0_3 LBB0_6: ## in Loop: Header=BB0_1 Depth=1 movq _a@GOTPCREL(%rip), %rax movq (%rax), %rax movslq -4(%rbp), %rcx movl $1, (%rax,%rcx,4) movq _c@GOTPCREL(%rip), %rax movq (%rax), %rax movslq -4(%rbp), %rcx movl $0, (%rax,%rcx,4) ## %bb.7: ## in Loop: Header=BB0_1 Depth=1 movl -4(%rbp), %eax addl $1, %eax movl %eax, -4(%rbp) jmp LBB0_1 LBB0_8: xorl %eax, %eax popq %rbp retq .cfi_endproc ## -- End function .globl _Mult ## -- Begin function Mult .p2align 4, 0x90 _Mult: ## @Mult .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) LBB1_1: ## =>This Loop Header: Depth=1 ## Child Loop BB1_3 Depth 2 cmpl $512, -4(%rbp) ## imm = 0x200 jge LBB1_8 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 movl $0, -8(%rbp) LBB1_3: ## Parent Loop BB1_1 Depth=1 ## => This Inner Loop Header: Depth=2 cmpl $512, -8(%rbp) ## imm = 0x200 jge LBB1_6 ## %bb.4: ## in Loop: Header=BB1_3 Depth=2 movq _b@GOTPCREL(%rip), %rax movq (%rax), %rax movl -8(%rbp), %ecx movl -4(%rbp), %edx shll $9, %edx addl %edx, %ecx movslq %ecx, %rcx movl (%rax,%rcx,4), %edx movq _a@GOTPCREL(%rip), %rax movq (%rax), %rax movslq -8(%rbp), %rcx imull (%rax,%rcx,4), %edx movq _c@GOTPCREL(%rip), %rax movq (%rax), %rax movslq -4(%rbp), %rcx addl (%rax,%rcx,4), %edx movl %edx, (%rax,%rcx,4) ## %bb.5: ## in Loop: Header=BB1_3 Depth=2 movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) jmp LBB1_3 LBB1_6: ## in Loop: Header=BB1_1 Depth=1 jmp LBB1_7 LBB1_7: ## in Loop: Header=BB1_1 Depth=1 movl -4(%rbp), %eax addl $1, %eax movl %eax, -4(%rbp) jmp LBB1_1 LBB1_8: xorl %eax, %eax popq %rbp retq .cfi_endproc ## -- End function .globl _check ## -- Begin function check .p2align 4, 0x90 _check: ## @check .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movb $0, -1(%rbp) movl $0, -8(%rbp) LBB2_1: ## =>This Inner Loop Header: Depth=1 cmpl $512, -8(%rbp) ## imm = 0x200 jge LBB2_6 ## %bb.2: ## in Loop: Header=BB2_1 Depth=1 movq _c@GOTPCREL(%rip), %rax movq (%rax), %rax movslq -8(%rbp), %rcx cmpl $512, (%rax,%rcx,4) ## imm = 0x200 je LBB2_4 ## %bb.3: ## in Loop: Header=BB2_1 Depth=1 movb $1, -1(%rbp) LBB2_4: ## in Loop: Header=BB2_1 Depth=1 jmp LBB2_5 LBB2_5: ## in Loop: Header=BB2_1 Depth=1 movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) jmp LBB2_1 LBB2_6: movb -1(%rbp), %cl leaq L_.str.2(%rip), %rsi leaq L_.str.1(%rip), %rax testb $1, %cl cmovneq %rax, %rsi leaq L_.str(%rip), %rdi movb $0, %al callq _printf xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %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 $2048, %edi ## imm = 0x800 callq _malloc movq %rax, %rcx movq _a@GOTPCREL(%rip), %rax movq %rcx, (%rax) movl $1048576, %edi ## imm = 0x100000 callq _malloc movq %rax, %rcx movq _b@GOTPCREL(%rip), %rax movq %rcx, (%rax) movl $2048, %edi ## imm = 0x800 callq _malloc movq %rax, %rcx movq _c@GOTPCREL(%rip), %rax movq %rcx, (%rax) callq _init callq _Mult callq _check movq _a@GOTPCREL(%rip), %rax movq (%rax), %rdi callq _free movq _b@GOTPCREL(%rip), %rax movq (%rax), %rdi callq _free movq _c@GOTPCREL(%rip), %rax movq (%rax), %rdi callq _free xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .comm _b,8,3 ## @b .comm _a,8,3 ## @a .comm _c,8,3 ## @c .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Memory Access Issue visible: %s\n" L_.str.1: ## @.str.1 .asciz "true" L_.str.2: ## @.str.2 .asciz "false" .subsections_via_symbols
the_stack_data/121843.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #0 str w8, [sp, #8] ; 4-byte Folded Spill stur wzr, [x29, #-4] bl _mkstemp ldr w0, [sp, #8] ; 4-byte Folded Reload ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) movb $0, %al callq _mkstemp xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/1110696.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _error ; -- Begin function error .p2align 2 _error: ; @error .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #8] ldr x0, [sp, #8] bl _perror mov w0, #1 bl _exit .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 sub sp, sp, #464 mov x19, sp mov w2, #0 stur wzr, [x29, #-20] stur w0, [x29, #-24] stur x1, [x29, #-32] mov w8, #8001 stur w8, [x29, #-88] mov w8, #20 stur w8, [x29, #-92] mov w0, #2 mov w1, #1 bl _socket stur w0, [x29, #-36] ldur w8, [x29, #-36] subs w8, w8, #0 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 _error b LBB1_2 LBB1_2: stur xzr, [x29, #-64] stur xzr, [x29, #-56] mov w8, #2 sturb w8, [x29, #-63] stur wzr, [x29, #-60] b LBB1_3 LBB1_3: ldur w8, [x29, #-88] and w0, w8, #0xffff bl __OSSwapInt16 and w8, w0, #0xffff str w8, [x19, #100] ; 4-byte Folded Spill b LBB1_4 LBB1_4: ldr w8, [x19, #100] ; 4-byte Folded Reload sub x1, x29, #64 sturh w8, [x29, #-62] ldur w0, [x29, #-36] mov w2, #16 bl _bind subs w8, w0, #0 cset w8, ge tbnz w8, #0, LBB1_6 b LBB1_5 LBB1_5: adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _error b LBB1_6 LBB1_6: ldur w0, [x29, #-36] mov w1, #5 bl _listen b LBB1_7 LBB1_7: ; =>This Loop Header: Depth=1 ; Child Loop BB1_14 Depth 2 ldur w0, [x29, #-36] sub x1, x29, #80 sub x2, x29, #84 bl _accept stur w0, [x29, #-40] ldur w8, [x29, #-40] subs w8, w8, #0 cset w8, ge tbnz w8, #0, LBB1_9 b LBB1_8 LBB1_8: ; in Loop: Header=BB1_7 Depth=1 adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _error b LBB1_9 LBB1_9: ; in Loop: Header=BB1_7 Depth=1 sub x0, x29, #192 str x0, [x19, #88] ; 8-byte Folded Spill mov w1, #0 mov x2, #100 bl _memset ldr x1, [x19, #88] ; 8-byte Folded Reload ldur w0, [x29, #-40] mov x2, #99 mov w3, #64 bl _recv mov x8, x0 stur w8, [x29, #-44] ldur w8, [x29, #-44] subs w8, w8, #0 cset w8, ge tbnz w8, #0, LBB1_11 b LBB1_10 LBB1_10: ; in Loop: Header=BB1_7 Depth=1 adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _error b LBB1_11 LBB1_11: ; in Loop: Header=BB1_7 Depth=1 sub x0, x29, #192 mov w1, #0 bl _open stur w0, [x29, #-200] ldur w8, [x29, #-200] adds w8, w8, #1 cset w8, ne tbnz w8, #0, LBB1_13 b LBB1_12 LBB1_12: ldur w8, [x29, #-40] str w8, [x19, #80] ; 4-byte Folded Spill adrp x0, _error_msg@PAGE add x0, x0, _error_msg@PAGEOFF str x0, [x19, #72] ; 8-byte Folded Spill bl _strlen ldr x1, [x19, #72] ; 8-byte Folded Reload mov x2, x0 ldr w0, [x19, #80] ; 4-byte Folded Reload mov w3, #0 str w3, [x19, #84] ; 4-byte Folded Spill bl _send mov x8, x0 stur w8, [x29, #-196] ldur w0, [x29, #-40] bl _close ldur w0, [x29, #-36] bl _close ldr w0, [x19, #84] ; 4-byte Folded Reload bl _exit LBB1_13: ; in Loop: Header=BB1_7 Depth=1 ldur w8, [x29, #-40] str w8, [x19, #36] ; 4-byte Folded Spill adrp x0, _yes_msg@PAGE add x0, x0, _yes_msg@PAGEOFF str x0, [x19, #24] ; 8-byte Folded Spill bl _strlen ldr x1, [x19, #24] ; 8-byte Folded Reload mov x2, x0 ldr w0, [x19, #36] ; 4-byte Folded Reload mov w3, #0 str w3, [x19, #56] ; 4-byte Folded Spill bl _send mov x8, x0 stur w8, [x29, #-196] sub x0, x29, #192 str x0, [x19, #64] ; 8-byte Folded Spill add x1, x19, #136 bl _stat ldr w1, [x19, #56] ; 4-byte Folded Reload ldr x8, [x19, #232] ; kill: def $w8 killed $w8 killed $x8 str w8, [x19, #132] mov w8, #100 str w8, [x19, #128] ldr w8, [x19, #128] ; kill: def $x8 killed $w8 mov x9, sp str x9, [x19, #120] lsr x9, x8, #0 add x9, x9, #15 and x9, x9, #0xfffffffffffffff0 str x9, [x19, #40] ; 8-byte Folded Spill adrp x16, ___chkstk_darwin@GOTPAGE ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF] blr x16 ldr x10, [x19, #40] ; 8-byte Folded Reload mov x9, sp subs x0, x9, x10 str x0, [x19, #48] ; 8-byte Folded Spill mov sp, x0 str x8, [x19, #112] ldr w9, [x19, #132] ; implicit-def: $x8 mov x8, x9 sub sp, sp, #16 mov x9, sp str x8, [x9] mov x2, #-1 adrp x3, l_.str.4@PAGE add x3, x3, l_.str.4@PAGEOFF bl ___sprintf_chk ldr x0, [x19, #48] ; 8-byte Folded Reload add sp, sp, #16 ldur w8, [x29, #-40] str w8, [x19, #60] ; 4-byte Folded Spill bl _strlen ldr x1, [x19, #48] ; 8-byte Folded Reload ldr w3, [x19, #56] ; 4-byte Folded Reload mov x2, x0 ldr w0, [x19, #60] ; 4-byte Folded Reload bl _send mov x8, x0 ldr x0, [x19, #64] ; 8-byte Folded Reload ; kill: def $w8 killed $w8 killed $x8 stur w8, [x29, #-196] ldr w8, [x19, #132] ldur w9, [x29, #-92] sdiv w8, w8, w9 str w8, [x19, #108] ldr w8, [x19, #132] ldur w10, [x29, #-92] sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 str w8, [x19, #104] mov w1, #0 mov x2, #100 bl _memset b LBB1_14 LBB1_14: ; Parent Loop BB1_7 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [x19, #108] subs w9, w8, #1 str w9, [x19, #108] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB1_16 b LBB1_15 LBB1_15: ; in Loop: Header=BB1_14 Depth=2 ldur w0, [x29, #-200] ldursw x2, [x29, #-92] sub x1, x29, #192 str x1, [x19, #16] ; 8-byte Folded Spill bl _read mov x8, x0 stur w8, [x29, #-196] ldur w9, [x29, #-196] ; implicit-def: $x8 mov x8, x9 sub sp, sp, #16 mov x9, sp str x8, [x9] adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf ldr x1, [x19, #16] ; 8-byte Folded Reload add sp, sp, #16 ldur w0, [x29, #-40] ldursw x2, [x29, #-92] mov w3, #0 bl _send mov x8, x0 stur w8, [x29, #-196] ldr w8, [x19, #132] ldur w9, [x29, #-92] sdiv w8, w8, w9 ldr w9, [x19, #108] subs w11, w8, w9 ldur w9, [x29, #-196] ; implicit-def: $x8 mov x8, x9 sub sp, sp, #16 mov x9, sp ; implicit-def: $x10 mov x10, x11 str x10, [x9] str x8, [x9, #8] adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _printf ldr x0, [x19, #16] ; 8-byte Folded Reload add sp, sp, #16 mov w1, #0 mov x2, #100 bl _memset b LBB1_14 LBB1_16: ; in Loop: Header=BB1_7 Depth=1 ldur w0, [x29, #-200] ldrsw x2, [x19, #104] sub x1, x29, #192 str x1, [x19, #8] ; 8-byte Folded Spill bl _read mov x8, x0 stur w8, [x29, #-196] ldur w9, [x29, #-196] ; implicit-def: $x8 mov x8, x9 sub sp, sp, #16 mov x9, sp str x8, [x9] adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf ldr x1, [x19, #8] ; 8-byte Folded Reload add sp, sp, #16 ldur w0, [x29, #-40] ldrsw x2, [x19, #104] mov w3, #0 bl _send mov x8, x0 stur w8, [x29, #-196] ldr w8, [x19, #132] ldur w9, [x29, #-92] sdiv w8, w8, w9 ldr w9, [x19, #108] subs w11, w8, w9 ldur w9, [x29, #-196] ; implicit-def: $x8 mov x8, x9 sub sp, sp, #16 mov x9, sp ; implicit-def: $x10 mov x10, x11 str x10, [x9] str x8, [x9, #8] adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _printf ldr x0, [x19, #8] ; 8-byte Folded Reload add sp, sp, #16 mov w1, #0 mov x2, #100 bl _memset ldur w0, [x29, #-40] bl _close ldur w0, [x29, #-200] bl _close ldr x8, [x19, #120] mov sp, x8 b LBB1_7 .cfi_endproc ; -- End function .p2align 2 ; -- Begin function _OSSwapInt16 __OSSwapInt16: ; @_OSSwapInt16 .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 strh w0, [sp, #14] ldrh w9, [sp, #14] ldrh w8, [sp, #14] asr w8, w8, #8 orr w8, w8, w9, lsl #8 and w0, w8, #0xffff add sp, sp, #16 ret .cfi_endproc ; -- End function .section __DATA,__data .globl _error_msg ; @error_msg _error_msg: .asciz "E" .globl _yes_msg ; @yes_msg _yes_msg: .asciz "L" .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "socket()" l_.str.1: ; @.str.1 .asciz "bind()" l_.str.2: ; @.str.2 .asciz "accept()" l_.str.3: ; @.str.3 .asciz "read" l_.str.4: ; @.str.4 .asciz "%d" l_.str.5: ; @.str.5 .asciz "%d " l_.str.6: ; @.str.6 .asciz "T:%d %d\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _error ## -- Begin function error .p2align 4, 0x90 _error: ## @error .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) movq -8(%rbp), %rdi callq _perror movl $1, %edi callq _exit .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $432, %rsp ## imm = 0x1B0 movl $0, -4(%rbp) movl %edi, -8(%rbp) movq %rsi, -16(%rbp) movl $8001, -72(%rbp) ## imm = 0x1F41 movl $20, -76(%rbp) movl $2, %edi movl $1, %esi xorl %edx, %edx callq _socket movl %eax, -20(%rbp) cmpl $0, -20(%rbp) jge LBB1_2 ## %bb.1: leaq L_.str(%rip), %rdi callq _error LBB1_2: leaq -48(%rbp), %rdi xorl %esi, %esi movl $16, %edx callq _memset movb $2, -47(%rbp) movl $0, -44(%rbp) ## %bb.3: movl -72(%rbp), %eax ## kill: def $ax killed $ax killed $eax movzwl %ax, %edi callq __OSSwapInt16 movzwl %ax, %eax movl %eax, -364(%rbp) ## 4-byte Spill ## %bb.4: movl -364(%rbp), %eax ## 4-byte Reload movw %ax, -46(%rbp) movl -20(%rbp), %edi leaq -48(%rbp), %rsi movl $16, %edx callq _bind cmpl $0, %eax jge LBB1_6 ## %bb.5: leaq L_.str.1(%rip), %rdi callq _error LBB1_6: movl -20(%rbp), %edi movl $5, %esi callq _listen LBB1_7: ## =>This Loop Header: Depth=1 ## Child Loop BB1_14 Depth 2 movl -20(%rbp), %edi leaq -64(%rbp), %rsi leaq -68(%rbp), %rdx callq _accept movl %eax, -24(%rbp) cmpl $0, -24(%rbp) jge LBB1_9 ## %bb.8: ## in Loop: Header=BB1_7 Depth=1 leaq L_.str.2(%rip), %rdi callq _error LBB1_9: ## in Loop: Header=BB1_7 Depth=1 leaq -176(%rbp), %rdi xorl %esi, %esi movl $100, %edx callq _memset movl -24(%rbp), %edi leaq -176(%rbp), %rsi movl $99, %edx movl $64, %ecx callq _recv ## kill: def $eax killed $eax killed $rax movl %eax, -28(%rbp) cmpl $0, -28(%rbp) jge LBB1_11 ## %bb.10: ## in Loop: Header=BB1_7 Depth=1 leaq L_.str.3(%rip), %rdi callq _error LBB1_11: ## in Loop: Header=BB1_7 Depth=1 leaq -176(%rbp), %rdi xorl %esi, %esi movb $0, %al callq _open movl %eax, -184(%rbp) cmpl $-1, -184(%rbp) jne LBB1_13 ## %bb.12: movl -24(%rbp), %eax movl %eax, -380(%rbp) ## 4-byte Spill leaq _error_msg(%rip), %rdi movq %rdi, -376(%rbp) ## 8-byte Spill callq _strlen movl -380(%rbp), %edi ## 4-byte Reload movq -376(%rbp), %rsi ## 8-byte Reload movq %rax, %rdx xorl %ecx, %ecx movl %ecx, -368(%rbp) ## 4-byte Spill callq _send ## kill: def $eax killed $eax killed $rax movl %eax, -180(%rbp) movl -24(%rbp), %edi callq _close movl -20(%rbp), %edi callq _close movl -368(%rbp), %edi ## 4-byte Reload callq _exit LBB1_13: ## in Loop: Header=BB1_7 Depth=1 movl -24(%rbp), %eax movl %eax, -420(%rbp) ## 4-byte Spill leaq _yes_msg(%rip), %rdi movq %rdi, -416(%rbp) ## 8-byte Spill callq _strlen movl -420(%rbp), %edi ## 4-byte Reload movq -416(%rbp), %rsi ## 8-byte Reload movq %rax, %rdx xorl %ecx, %ecx callq _send ## kill: def $eax killed $eax killed $rax movl %eax, -180(%rbp) leaq -176(%rbp), %rdi leaq -328(%rbp), %rsi callq _stat$INODE64 movl -232(%rbp), %eax movl %eax, -332(%rbp) movl $100, -336(%rbp) movl -336(%rbp), %eax ## kill: def $rax killed $eax movq %rax, -408(%rbp) ## 8-byte Spill movq %rsp, %rcx movq %rcx, -344(%rbp) callq ____chkstk_darwin addq $15, %rax andq $-16, %rax subq %rax, %rsp movq -408(%rbp), %rax ## 8-byte Reload movq %rsp, %rdi movq %rdi, -392(%rbp) ## 8-byte Spill movq %rax, -352(%rbp) movl -332(%rbp), %r8d xorl %esi, %esi movq $-1, %rdx leaq L_.str.4(%rip), %rcx movb $0, %al callq ___sprintf_chk movq -392(%rbp), %rdi ## 8-byte Reload movl -24(%rbp), %eax movl %eax, -396(%rbp) ## 4-byte Spill callq _strlen movl -396(%rbp), %edi ## 4-byte Reload movq -392(%rbp), %rsi ## 8-byte Reload movq %rax, %rdx xorl %ecx, %ecx callq _send ## kill: def $eax killed $eax killed $rax movl %eax, -180(%rbp) movl -332(%rbp), %eax cltd idivl -76(%rbp) movl %eax, -356(%rbp) movl -332(%rbp), %eax cltd idivl -76(%rbp) movl %edx, -360(%rbp) leaq -176(%rbp), %rdi xorl %esi, %esi movl $100, %edx callq _memset LBB1_14: ## Parent Loop BB1_7 Depth=1 ## => This Inner Loop Header: Depth=2 movl -356(%rbp), %eax movl %eax, %ecx addl $-1, %ecx movl %ecx, -356(%rbp) cmpl $0, %eax je LBB1_16 ## %bb.15: ## in Loop: Header=BB1_14 Depth=2 movl -184(%rbp), %edi leaq -176(%rbp), %rsi movslq -76(%rbp), %rdx callq _read ## kill: def $eax killed $eax killed $rax movl %eax, -180(%rbp) movl -180(%rbp), %esi leaq L_.str.5(%rip), %rdi movb $0, %al callq _printf movl -24(%rbp), %edi leaq -176(%rbp), %rsi movslq -76(%rbp), %rdx xorl %ecx, %ecx callq _send ## kill: def $eax killed $eax killed $rax movl %eax, -180(%rbp) movl -332(%rbp), %eax cltd idivl -76(%rbp) movl %eax, %esi subl -356(%rbp), %esi movl -180(%rbp), %edx leaq L_.str.6(%rip), %rdi movb $0, %al callq _printf leaq -176(%rbp), %rdi xorl %esi, %esi movl $100, %edx callq _memset jmp LBB1_14 LBB1_16: ## in Loop: Header=BB1_7 Depth=1 movl -184(%rbp), %edi leaq -176(%rbp), %rsi movslq -360(%rbp), %rdx callq _read ## kill: def $eax killed $eax killed $rax movl %eax, -180(%rbp) movl -180(%rbp), %esi leaq L_.str.5(%rip), %rdi movb $0, %al callq _printf movl -24(%rbp), %edi leaq -176(%rbp), %rsi movslq -360(%rbp), %rdx xorl %ecx, %ecx callq _send ## kill: def $eax killed $eax killed $rax movl %eax, -180(%rbp) movl -332(%rbp), %eax cltd idivl -76(%rbp) movl %eax, %esi subl -356(%rbp), %esi movl -180(%rbp), %edx leaq L_.str.6(%rip), %rdi movb $0, %al callq _printf leaq -176(%rbp), %rdi xorl %esi, %esi movl $100, %edx callq _memset movl -24(%rbp), %edi callq _close movl -184(%rbp), %edi callq _close movq -344(%rbp), %rax movq %rax, %rsp jmp LBB1_7 .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function _OSSwapInt16 __OSSwapInt16: ## @_OSSwapInt16 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movw %di, %ax movw %ax, -2(%rbp) movzwl -2(%rbp), %eax shll $8, %eax movzwl -2(%rbp), %ecx sarl $8, %ecx orl %ecx, %eax ## kill: def $ax killed $ax killed $eax movzwl %ax, %eax popq %rbp retq .cfi_endproc ## -- End function .section __DATA,__data .globl _error_msg ## @error_msg _error_msg: .asciz "E" .globl _yes_msg ## @yes_msg _yes_msg: .asciz "L" .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "socket()" L_.str.1: ## @.str.1 .asciz "bind()" L_.str.2: ## @.str.2 .asciz "accept()" L_.str.3: ## @.str.3 .asciz "read" L_.str.4: ## @.str.4 .asciz "%d" L_.str.5: ## @.str.5 .asciz "%d " L_.str.6: ## @.str.6 .asciz "T:%d %d\n" .subsections_via_symbols
the_stack_data/1260133.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] stur w0, [x29, #-8] stur x1, [x29, #-16] bl _megaInit ldur w8, [x29, #-8] subs w8, w8, #2 cset w8, eq tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: mov x9, sp mov x8, #1 str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov w0, #-1 bl _exit LBB0_2: b LBB0_3 LBB0_3: str wzr, [sp, #24] b LBB0_4 LBB0_4: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #24] subs w8, w8, #1 cset w8, ge tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_4 Depth=1 ldur x8, [x29, #-16] ldr w9, [sp, #24] add w9, w9, #1 ldr x0, [x8, w9, sxtw #3] mov x1, #0 mov w2, #10 bl _strtoul mov x8, x0 strb w8, [sp, #23] ldrb w8, [sp, #23] ldrsw x10, [sp, #24] sub x9, x29, #17 add x9, x9, x10 strb w8, [x9] ldr w8, [sp, #24] add w8, w8, #1 str w8, [sp, #24] b LBB0_4 LBB0_6: sub x0, x29, #17 sub x1, x29, #18 bl _RandomFunc ldurb w8, [x29, #-18] subs w8, w8, #228 cset w8, ne tbnz w8, #0, LBB0_8 b LBB0_7 LBB0_7: adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf b LBB0_9 LBB0_8: b LBB0_9 LBB0_9: str wzr, [sp, #16] b LBB0_10 LBB0_10: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #16] subs w8, w8, #1 cset w8, ge tbnz w8, #0, LBB0_12 b LBB0_11 LBB0_11: ; in Loop: Header=BB0_10 Depth=1 ldrsw x9, [sp, #16] sub x8, x29, #18 ldrb w10, [x8, x9] mov x9, sp ; implicit-def: $x8 mov x8, x10 str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf ldr w8, [sp, #16] add w8, w8, #1 str w8, [sp, #16] b LBB0_10 LBB0_12: ldur w0, [x29, #-4] ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _megaInit ; -- Begin function megaInit .p2align 2 _megaInit: ; @megaInit .cfi_startproc ; %bb.0: ret .cfi_endproc ; -- End function .globl _RandomFunc ; -- Begin function RandomFunc .p2align 2 _RandomFunc: ; @RandomFunc .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, #24] str x1, [sp, #16] ldr x8, [sp, #24] ldrb w8, [x8] ; kill: def $x8 killed $w8 mov x9, #26986 movk x9, #13958, lsl #16 add x8, x8, x9 mov x9, #22 mul x8, x8, x9 ; kill: def $w8 killed $w8 killed $x8 strb w8, [sp, #15] strb wzr, [sp, #13] b LBB2_1 LBB2_1: ; =>This Loop Header: Depth=1 ; Child Loop BB2_3 Depth 2 ldrb w8, [sp, #13] ; kill: def $x8 killed $w8 subs x8, x8, #1 cset w8, hs tbnz w8, #0, LBB2_9 b LBB2_2 LBB2_2: ; in Loop: Header=BB2_1 Depth=1 strb wzr, [sp, #14] b LBB2_3 LBB2_3: ; Parent Loop BB2_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldrb w8, [sp, #14] ; kill: def $x8 killed $w8 subs x8, x8, #1 cset w8, hs tbnz w8, #0, LBB2_8 b LBB2_4 LBB2_4: ; in Loop: Header=BB2_3 Depth=2 ldrb w8, [sp, #15] ldrb w9, [sp, #14] ldrb w10, [sp, #13] add w9, w9, w10 subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB2_6 b LBB2_5 LBB2_5: ; in Loop: Header=BB2_3 Depth=2 add x8, sp, #15 ldrb w10, [sp, #15] ldrb w9, [sp, #14] ; kill: def $x9 killed $w9 add x9, x8, x9 ldrb w8, [x9] add w8, w8, w10 strb w8, [x9] ldrb w9, [sp, #15] ldrb w8, [sp, #15] mul w8, w8, w9 strb w8, [sp, #15] b LBB2_7 LBB2_6: ; in Loop: Header=BB2_3 Depth=2 add x9, sp, #15 ldrb w10, [sp, #15] ldrb w8, [sp, #15] mul w8, w8, w10 strb w8, [sp, #15] ldrb w8, [sp, #13] ; kill: def $x8 killed $w8 ldrb w8, [x9, x8] ldrb w10, [sp, #14] ; kill: def $x10 killed $w10 ldrb w9, [x9, x10] mul w8, w8, w9 strb w8, [sp, #15] b LBB2_7 LBB2_7: ; in Loop: Header=BB2_3 Depth=2 ldrb w8, [sp, #14] add w8, w8, #1 strb w8, [sp, #14] b LBB2_3 LBB2_8: ; in Loop: Header=BB2_1 Depth=1 ldrb w8, [sp, #13] add w8, w8, #1 strb w8, [sp, #13] b LBB2_1 LBB2_9: ldrb w8, [sp, #15] ; kill: def $x8 killed $w8 mov x9, #50988 movk x9, #7741, lsl #16 subs x8, x8, x9 ldr x9, [sp, #16] ; kill: def $w8 killed $w8 killed $x8 strb w8, [x9] add sp, sp, #32 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Call this program with %i arguments\n" l_.str.1: ; @.str.1 .asciz "You win!\n" l_.str.2: ; @.str.2 .asciz "%u\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl $0, -4(%rbp) movl %edi, -8(%rbp) movq %rsi, -16(%rbp) callq _megaInit cmpl $2, -8(%rbp) je LBB0_2 ## %bb.1: leaq L_.str(%rip), %rdi xorl %eax, %eax ## kill: def $al killed $al killed $eax movl $1, %esi callq _printf movl $-1, %edi callq _exit LBB0_2: jmp LBB0_3 LBB0_3: movl $0, -24(%rbp) LBB0_4: ## =>This Inner Loop Header: Depth=1 cmpl $1, -24(%rbp) jge LBB0_6 ## %bb.5: ## in Loop: Header=BB0_4 Depth=1 movq -16(%rbp), %rax movl -24(%rbp), %ecx addl $1, %ecx movslq %ecx, %rcx movq (%rax,%rcx,8), %rdi xorl %eax, %eax movl %eax, %esi movl $10, %edx callq _strtoul ## kill: def $al killed $al killed $rax movb %al, -25(%rbp) movb -25(%rbp), %cl movslq -24(%rbp), %rax movb %cl, -17(%rbp,%rax) movl -24(%rbp), %eax addl $1, %eax movl %eax, -24(%rbp) jmp LBB0_4 LBB0_6: leaq -17(%rbp), %rdi leaq -18(%rbp), %rsi callq _RandomFunc movzbl -18(%rbp), %eax cmpl $228, %eax jne LBB0_8 ## %bb.7: leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf jmp LBB0_9 LBB0_8: jmp LBB0_9 LBB0_9: movl $0, -32(%rbp) LBB0_10: ## =>This Inner Loop Header: Depth=1 cmpl $1, -32(%rbp) jge LBB0_12 ## %bb.11: ## in Loop: Header=BB0_10 Depth=1 movslq -32(%rbp), %rax movzbl -18(%rbp,%rax), %esi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf movl -32(%rbp), %eax addl $1, %eax movl %eax, -32(%rbp) jmp LBB0_10 LBB0_12: movl -4(%rbp), %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _megaInit ## -- Begin function megaInit .p2align 4, 0x90 _megaInit: ## @megaInit .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp popq %rbp retq .cfi_endproc ## -- End function .globl _RandomFunc ## -- Begin function RandomFunc .p2align 4, 0x90 _RandomFunc: ## @RandomFunc .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) movq -8(%rbp), %rax movzbl (%rax), %eax ## kill: def $rax killed $eax addq $914778474, %rax ## imm = 0x3686696A imulq $22, %rax, %rax ## kill: def $al killed $al killed $rax movb %al, -17(%rbp) movb $0, -19(%rbp) LBB2_1: ## =>This Loop Header: Depth=1 ## Child Loop BB2_3 Depth 2 movzbl -19(%rbp), %eax ## kill: def $rax killed $eax cmpq $1, %rax jae LBB2_9 ## %bb.2: ## in Loop: Header=BB2_1 Depth=1 movb $0, -18(%rbp) LBB2_3: ## Parent Loop BB2_1 Depth=1 ## => This Inner Loop Header: Depth=2 movzbl -18(%rbp), %eax ## kill: def $rax killed $eax cmpq $1, %rax jae LBB2_8 ## %bb.4: ## in Loop: Header=BB2_3 Depth=2 movzbl -17(%rbp), %eax movzbl -18(%rbp), %ecx movzbl -19(%rbp), %edx addl %edx, %ecx cmpl %ecx, %eax jge LBB2_6 ## %bb.5: ## in Loop: Header=BB2_3 Depth=2 movzbl -17(%rbp), %edx movzbl -18(%rbp), %eax ## kill: def $rax killed $eax movzbl -17(%rbp,%rax), %ecx addl %edx, %ecx ## kill: def $cl killed $cl killed $ecx movb %cl, -17(%rbp,%rax) movzbl -17(%rbp), %ecx movzbl -17(%rbp), %eax imull %ecx, %eax ## kill: def $al killed $al killed $eax movb %al, -17(%rbp) jmp LBB2_7 LBB2_6: ## in Loop: Header=BB2_3 Depth=2 movzbl -17(%rbp), %ecx movzbl -17(%rbp), %eax imull %ecx, %eax ## kill: def $al killed $al killed $eax movb %al, -17(%rbp) movzbl -19(%rbp), %eax ## kill: def $rax killed $eax movzbl -17(%rbp,%rax), %eax movzbl -18(%rbp), %ecx ## kill: def $rcx killed $ecx movzbl -17(%rbp,%rcx), %ecx imull %ecx, %eax ## kill: def $al killed $al killed $eax movb %al, -17(%rbp) LBB2_7: ## in Loop: Header=BB2_3 Depth=2 movb -18(%rbp), %al addb $1, %al movb %al, -18(%rbp) jmp LBB2_3 LBB2_8: ## in Loop: Header=BB2_1 Depth=1 movb -19(%rbp), %al addb $1, %al movb %al, -19(%rbp) jmp LBB2_1 LBB2_9: movzbl -17(%rbp), %eax ## kill: def $rax killed $eax subq $507365164, %rax ## imm = 0x1E3DC72C movb %al, %cl movq -16(%rbp), %rax movb %cl, (%rax) popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Call this program with %i arguments\n" L_.str.1: ## @.str.1 .asciz "You win!\n" L_.str.2: ## @.str.2 .asciz "%u\n" .subsections_via_symbols
the_stack_data/331659.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #96 .cfi_def_cfa_offset 96 stp x29, x30, [sp, #80] ; 16-byte Folded Spill add x29, sp, #80 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #0 stur w8, [x29, #-28] ; 4-byte Folded Spill stur wzr, [x29, #-4] stur w0, [x29, #-8] stur x1, [x29, #-16] sub x8, x29, #20 str x8, [sp, #24] ; 8-byte Folded Spill stur wzr, [x29, #-20] sub x8, x29, #24 str x8, [sp, #32] ; 8-byte Folded Spill stur wzr, [x29, #-24] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldr x10, [sp, #24] ; 8-byte Folded Reload ldr x8, [sp, #32] ; 8-byte Folded Reload mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf ldur w8, [x29, #-20] ; implicit-def: $x10 mov x10, x8 ldur w9, [x29, #-24] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF str x0, [sp, #40] ; 8-byte Folded Spill bl _printf ldur w0, [x29, #-20] ldur w1, [x29, #-24] bl _swap_int adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf ldr x0, [sp, #40] ; 8-byte Folded Reload ldur w8, [x29, #-20] ; implicit-def: $x10 mov x10, x8 ldur w9, [x29, #-24] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x10, [x9] str x8, [x9, #8] bl _printf adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _system ldur w0, [x29, #-28] ; 4-byte Folded Reload ldp x29, x30, [sp, #80] ; 16-byte Folded Reload add sp, sp, #96 ret .cfi_endproc ; -- End function .globl _swap_int ; -- Begin function swap_int .p2align 2 _swap_int: ; @swap_int .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #12] str w1, [sp, #8] str wzr, [sp, #4] ldr w8, [sp, #12] str w8, [sp, #4] ldr w8, [sp, #8] str w8, [sp, #12] ldr w8, [sp, #4] str w8, [sp, #8] add sp, sp, #16 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Enter _arg1 & _arg2\n" l_.str.1: ; @.str.1 .asciz "%d %d" l_.str.2: ; @.str.2 .asciz "Before swapping\n" l_.str.3: ; @.str.3 .asciz "_arg1:%d _arg2:%d\n" l_.str.4: ; @.str.4 .asciz "After swapping\n" l_.str.5: ; @.str.5 .asciz "PAUSE" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl $0, -4(%rbp) movl %edi, -8(%rbp) movq %rsi, -16(%rbp) movl $0, -20(%rbp) movl $0, -24(%rbp) leaq L_.str(%rip), %rdi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi leaq -20(%rbp), %rsi leaq -24(%rbp), %rdx movb $0, %al callq _scanf leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf movl -20(%rbp), %esi movl -24(%rbp), %edx leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf movl -20(%rbp), %edi movl -24(%rbp), %esi callq _swap_int leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf movl -20(%rbp), %esi movl -24(%rbp), %edx leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf leaq L_.str.5(%rip), %rdi callq _system xorl %eax, %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _swap_int ## -- Begin function swap_int .p2align 4, 0x90 _swap_int: ## @swap_int .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, -4(%rbp) movl %esi, -8(%rbp) movl $0, -12(%rbp) movl -4(%rbp), %eax movl %eax, -12(%rbp) movl -8(%rbp), %eax movl %eax, -4(%rbp) movl -12(%rbp), %eax movl %eax, -8(%rbp) popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Enter _arg1 & _arg2\n" L_.str.1: ## @.str.1 .asciz "%d %d" L_.str.2: ## @.str.2 .asciz "Before swapping\n" L_.str.3: ## @.str.3 .asciz "_arg1:%d _arg2:%d\n" L_.str.4: ## @.str.4 .asciz "After swapping\n" L_.str.5: ## @.str.5 .asciz "PAUSE" .subsections_via_symbols
the_stack_data/98774.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov x9, sp sub x8, x29, #1 str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf mov x9, sp sub x8, x29, #2 str x8, [x9] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _scanf ldursb w10, [x29, #-1] mov x9, sp ; implicit-def: $x8 mov x8, x10 str x8, [x9] adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF str x0, [sp, #16] ; 8-byte Folded Spill bl _printf ldr x0, [sp, #16] ; 8-byte Folded Reload ldursb w10, [x29, #-2] mov x9, sp ; implicit-def: $x8 mov x8, x10 str x8, [x9] bl _printf bl _getchar mov w0, #0 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Enter a first character\n" l_.str.1: ; @.str.1 .asciz "%1s" l_.str.2: ; @.str.2 .asciz "Enter a second character\n" l_.str.3: ; @.str.3 .asciz "1s" l_.str.4: ; @.str.4 .asciz "\n You entered %c" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp leaq L_.str(%rip), %rdi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi leaq -1(%rbp), %rsi movb $0, %al callq _scanf leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf leaq L_.str.3(%rip), %rdi leaq -2(%rbp), %rsi movb $0, %al callq _scanf movsbl -1(%rbp), %esi leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf movsbl -2(%rbp), %esi leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf callq _getchar xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Enter a first character\n" L_.str.1: ## @.str.1 .asciz "%1s" L_.str.2: ## @.str.2 .asciz "Enter a second character\n" L_.str.3: ## @.str.3 .asciz "1s" L_.str.4: ## @.str.4 .asciz "\n You entered %c" .subsections_via_symbols
the_stack_data/211079564.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _itoa ; -- Begin function itoa .p2align 2 _itoa: ; @itoa .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 str w0, [sp, #60] str x1, [sp, #48] ldr x8, [sp, #48] str x8, [sp, #40] ldr w8, [sp, #60] str w8, [sp, #36] mov w8, #0 str wzr, [sp, #32] ldr w9, [sp, #36] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB0_5 b LBB0_1 LBB0_1: ldr x9, [sp, #40] add x8, x9, #1 str x8, [sp, #40] mov w8, #45 strb w8, [x9] ldr w9, [sp, #36] mov w8, #-2147483647 subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: mov w8, #2147483647 str w8, [sp, #32] str w8, [sp, #12] ; 4-byte Folded Spill b LBB0_4 LBB0_3: ldr w9, [sp, #36] mov w8, #0 subs w8, w8, w9 str w8, [sp, #12] ; 4-byte Folded Spill b LBB0_4 LBB0_4: ldr w8, [sp, #12] ; 4-byte Folded Reload str w8, [sp, #36] b LBB0_5 LBB0_5: ldr x8, [sp, #40] str x8, [sp, #16] b LBB0_6 LBB0_6: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #36] mov w9, #10 sdiv w10, w8, w9 mul w10, w10, w9 subs w8, w8, w10 sxtb w8, w8 add w8, w8, #48 ldr x10, [sp, #16] add x11, x10, #1 str x11, [sp, #16] strb w8, [x10] ldr w8, [sp, #36] sdiv w8, w8, w9 str w8, [sp, #36] b LBB0_7 LBB0_7: ; in Loop: Header=BB0_6 Depth=1 ldr w8, [sp, #36] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_6 b LBB0_8 LBB0_8: ldr w8, [sp, #32] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_10 b LBB0_9 LBB0_9: ldr x9, [sp, #40] ldrb w8, [x9] add w8, w8, #1 strb w8, [x9] b LBB0_10 LBB0_10: ldr x8, [sp, #16] subs x9, x8, #1 str x9, [sp, #16] strb wzr, [x8] b LBB0_11 LBB0_11: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #16] ldr x9, [sp, #40] subs x8, x8, x9 cset w8, ls tbnz w8, #0, LBB0_13 b LBB0_12 LBB0_12: ; in Loop: Header=BB0_11 Depth=1 ldr x8, [sp, #40] ldrb w8, [x8] strb w8, [sp, #31] ldr x8, [sp, #16] ldrb w8, [x8] ldr x9, [sp, #40] add x10, x9, #1 str x10, [sp, #40] strb w8, [x9] ldrb w8, [sp, #31] ldr x9, [sp, #16] subs x10, x9, #1 str x10, [sp, #16] strb w8, [x9] b LBB0_11 LBB0_13: ldr x0, [sp, #48] 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 _itoa ## -- Begin function itoa .p2align 4, 0x90 _itoa: ## @itoa .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, -4(%rbp) movq %rsi, -16(%rbp) movq -16(%rbp), %rax movq %rax, -24(%rbp) movl -4(%rbp), %eax movl %eax, -28(%rbp) movl $0, -32(%rbp) xorl %eax, %eax cmpl -28(%rbp), %eax jle LBB0_5 ## %bb.1: movq -24(%rbp), %rax movq %rax, %rcx addq $1, %rcx movq %rcx, -24(%rbp) movb $45, (%rax) movl $2147483649, %eax ## imm = 0x80000001 cmpl -28(%rbp), %eax jle LBB0_3 ## %bb.2: movl $2147483647, -32(%rbp) ## imm = 0x7FFFFFFF movl $2147483647, %eax ## imm = 0x7FFFFFFF movl %eax, -52(%rbp) ## 4-byte Spill jmp LBB0_4 LBB0_3: xorl %eax, %eax subl -28(%rbp), %eax movl %eax, -52(%rbp) ## 4-byte Spill LBB0_4: movl -52(%rbp), %eax ## 4-byte Reload movl %eax, -28(%rbp) LBB0_5: movq -24(%rbp), %rax movq %rax, -48(%rbp) LBB0_6: ## =>This Inner Loop Header: Depth=1 movl -28(%rbp), %eax movl $10, %ecx cltd idivl %ecx movb %dl, %al movsbl %al, %eax addl $48, %eax movb %al, %cl movq -48(%rbp), %rax movq %rax, %rdx addq $1, %rdx movq %rdx, -48(%rbp) movb %cl, (%rax) movl -28(%rbp), %eax movl $10, %ecx cltd idivl %ecx movl %eax, -28(%rbp) ## %bb.7: ## in Loop: Header=BB0_6 Depth=1 cmpl $0, -28(%rbp) jne LBB0_6 ## %bb.8: cmpl $0, -32(%rbp) je LBB0_10 ## %bb.9: movq -24(%rbp), %rax movb (%rax), %cl addb $1, %cl movb %cl, (%rax) LBB0_10: movq -48(%rbp), %rax movq %rax, %rcx addq $-1, %rcx movq %rcx, -48(%rbp) movb $0, (%rax) LBB0_11: ## =>This Inner Loop Header: Depth=1 movq -48(%rbp), %rax cmpq -24(%rbp), %rax jbe LBB0_13 ## %bb.12: ## in Loop: Header=BB0_11 Depth=1 movq -24(%rbp), %rax movb (%rax), %al movb %al, -33(%rbp) movq -48(%rbp), %rax movb (%rax), %cl movq -24(%rbp), %rax movq %rax, %rdx addq $1, %rdx movq %rdx, -24(%rbp) movb %cl, (%rax) movb -33(%rbp), %cl movq -48(%rbp), %rax movq %rax, %rdx addq $-1, %rdx movq %rdx, -48(%rbp) movb %cl, (%rax) jmp LBB0_11 LBB0_13: movq -16(%rbp), %rax popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/78232.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #176 .cfi_def_cfa_offset 176 stp x29, x30, [sp, #160] ; 16-byte Folded Spill add x29, sp, #160 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] str wzr, [sp, #28] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov x9, sp add x8, sp, #24 str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #24] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB0_1 b LBB0_3 LBB0_3: str wzr, [sp, #20] b LBB0_4 LBB0_4: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #20] ldr w9, [sp, #24] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_7 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_4 Depth=1 ldr w8, [sp, #20] add w10, w8, #1 mov x9, sp ; implicit-def: $x8 mov x8, x10 str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf ldrsw x9, [sp, #20] add x8, sp, #32 add x8, x8, x9, lsl #2 mov x9, sp str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf b LBB0_6 LBB0_6: ; in Loop: Header=BB0_4 Depth=1 ldr w8, [sp, #20] add w8, w8, #1 str w8, [sp, #20] b LBB0_4 LBB0_7: ldr w1, [sp, #24] add x0, sp, #32 bl _baricentro str w0, [sp, #16] ldr w8, [sp, #16] adds w8, w8, #1 cset w8, eq tbnz w8, #0, LBB0_9 b LBB0_8 LBB0_8: ldr w9, [sp, #16] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf b LBB0_10 LBB0_9: adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf b LBB0_10 LBB0_10: ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_12 b LBB0_11 LBB0_11: bl ___stack_chk_fail LBB0_12: mov w0, #0 ldp x29, x30, [sp, #160] ; 16-byte Folded Reload add sp, sp, #176 ret .cfi_endproc ; -- End function .globl _baricentro ; -- Begin function baricentro .p2align 2 _baricentro: ; @baricentro .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 str x0, [sp, #32] str w1, [sp, #28] str wzr, [sp, #24] b LBB1_1 LBB1_1: ; =>This Loop Header: Depth=1 ; Child Loop BB1_3 Depth 2 ; Child Loop BB1_7 Depth 2 ldr w8, [sp, #24] ldr w9, [sp, #28] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_14 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 str wzr, [sp, #16] str wzr, [sp, #12] str wzr, [sp, #20] b LBB1_3 LBB1_3: ; Parent Loop BB1_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #20] ldr w9, [sp, #24] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB1_6 b LBB1_4 LBB1_4: ; in Loop: Header=BB1_3 Depth=2 ldr x8, [sp, #32] ldrsw x9, [sp, #20] ldr w9, [x8, x9, lsl #2] ldr w8, [sp, #16] add w8, w8, w9 str w8, [sp, #16] b LBB1_5 LBB1_5: ; in Loop: Header=BB1_3 Depth=2 ldr w8, [sp, #20] add w8, w8, #1 str w8, [sp, #20] b LBB1_3 LBB1_6: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #24] add w8, w8, #1 str w8, [sp, #20] b LBB1_7 LBB1_7: ; Parent Loop BB1_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #20] ldr w9, [sp, #28] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_10 b LBB1_8 LBB1_8: ; in Loop: Header=BB1_7 Depth=2 ldr x8, [sp, #32] ldrsw x9, [sp, #20] ldr w9, [x8, x9, lsl #2] ldr w8, [sp, #12] add w8, w8, w9 str w8, [sp, #12] b LBB1_9 LBB1_9: ; in Loop: Header=BB1_7 Depth=2 ldr w8, [sp, #20] add w8, w8, #1 str w8, [sp, #20] b LBB1_7 LBB1_10: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #16] ldr w9, [sp, #12] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB1_12 b LBB1_11 LBB1_11: ldr w8, [sp, #24] str w8, [sp, #44] b LBB1_15 LBB1_12: ; in Loop: Header=BB1_1 Depth=1 b LBB1_13 LBB1_13: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #24] add w8, w8, #1 str w8, [sp, #24] b LBB1_1 LBB1_14: mov w8, #-1 str w8, [sp, #44] b LBB1_15 LBB1_15: ldr w0, [sp, #44] add sp, sp, #48 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Inserisci numero elementi array: " l_.str.1: ; @.str.1 .asciz "%d" l_.str.2: ; @.str.2 .asciz "Inserisci elemento %d: " l_.str.3: ; @.str.3 .asciz "Indice primo baricentro: %d\n" l_.str.4: ; @.str.4 .asciz "Nessun baricentro trovato.\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $144, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -132(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 leaq L_.str(%rip), %rdi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi leaq -136(%rbp), %rsi movb $0, %al callq _scanf ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 cmpl $0, -136(%rbp) jle LBB0_1 ## %bb.3: movl $0, -140(%rbp) LBB0_4: ## =>This Inner Loop Header: Depth=1 movl -140(%rbp), %eax cmpl -136(%rbp), %eax jge LBB0_7 ## %bb.5: ## in Loop: Header=BB0_4 Depth=1 movl -140(%rbp), %esi addl $1, %esi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf movslq -140(%rbp), %rax leaq -128(%rbp), %rsi shlq $2, %rax addq %rax, %rsi leaq L_.str.1(%rip), %rdi movb $0, %al callq _scanf ## %bb.6: ## in Loop: Header=BB0_4 Depth=1 movl -140(%rbp), %eax addl $1, %eax movl %eax, -140(%rbp) jmp LBB0_4 LBB0_7: leaq -128(%rbp), %rdi movl -136(%rbp), %esi callq _baricentro movl %eax, -144(%rbp) cmpl $-1, -144(%rbp) je LBB0_9 ## %bb.8: movl -144(%rbp), %esi leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf jmp LBB0_10 LBB0_9: leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf LBB0_10: movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_12 ## %bb.11: xorl %eax, %eax addq $144, %rsp popq %rbp retq LBB0_12: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _baricentro ## -- Begin function baricentro .p2align 4, 0x90 _baricentro: ## @baricentro .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -16(%rbp) movl %esi, -20(%rbp) movl $0, -24(%rbp) LBB1_1: ## =>This Loop Header: Depth=1 ## Child Loop BB1_3 Depth 2 ## Child Loop BB1_7 Depth 2 movl -24(%rbp), %eax cmpl -20(%rbp), %eax jge LBB1_14 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 movl $0, -32(%rbp) movl $0, -36(%rbp) movl $0, -28(%rbp) LBB1_3: ## Parent Loop BB1_1 Depth=1 ## => This Inner Loop Header: Depth=2 movl -28(%rbp), %eax cmpl -24(%rbp), %eax jg LBB1_6 ## %bb.4: ## in Loop: Header=BB1_3 Depth=2 movq -16(%rbp), %rax movslq -28(%rbp), %rcx movl (%rax,%rcx,4), %eax addl -32(%rbp), %eax movl %eax, -32(%rbp) ## %bb.5: ## in Loop: Header=BB1_3 Depth=2 movl -28(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) jmp LBB1_3 LBB1_6: ## in Loop: Header=BB1_1 Depth=1 movl -24(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) LBB1_7: ## Parent Loop BB1_1 Depth=1 ## => This Inner Loop Header: Depth=2 movl -28(%rbp), %eax cmpl -20(%rbp), %eax jge LBB1_10 ## %bb.8: ## in Loop: Header=BB1_7 Depth=2 movq -16(%rbp), %rax movslq -28(%rbp), %rcx movl (%rax,%rcx,4), %eax addl -36(%rbp), %eax movl %eax, -36(%rbp) ## %bb.9: ## in Loop: Header=BB1_7 Depth=2 movl -28(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) jmp LBB1_7 LBB1_10: ## in Loop: Header=BB1_1 Depth=1 movl -32(%rbp), %eax cmpl -36(%rbp), %eax jne LBB1_12 ## %bb.11: movl -24(%rbp), %eax movl %eax, -4(%rbp) jmp LBB1_15 LBB1_12: ## in Loop: Header=BB1_1 Depth=1 jmp LBB1_13 LBB1_13: ## in Loop: Header=BB1_1 Depth=1 movl -24(%rbp), %eax addl $1, %eax movl %eax, -24(%rbp) jmp LBB1_1 LBB1_14: movl $-1, -4(%rbp) LBB1_15: movl -4(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Inserisci numero elementi array: " L_.str.1: ## @.str.1 .asciz "%d" L_.str.2: ## @.str.2 .asciz "Inserisci elemento %d: " L_.str.3: ## @.str.3 .asciz "Indice primo baricentro: %d\n" L_.str.4: ## @.str.4 .asciz "Nessun baricentro trovato.\n" .subsections_via_symbols
the_stack_data/10870.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: stp x28, x27, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w27, -24 .cfi_offset w28, -32 sub sp, sp, #928 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] str wzr, [sp, #36] str wzr, [sp, #32] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #32] subs w8, w8, #10 cset w8, ge mov w9, #0 str w9, [sp, #24] ; 4-byte Folded Spill tbnz w8, #0, LBB0_4 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldrsw x8, [sp, #32] mov x9, #80 mul x9, x8, x9 add x8, sp, #120 add x0, x8, x9 mov w1, #80 bl _s_gets subs x8, x0, #0 cset w8, eq mov w9, #0 str w9, [sp, #24] ; 4-byte Folded Spill tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldrsw x8, [sp, #32] mov x9, #80 mul x9, x8, x9 add x8, sp, #120 ldrsb w8, [x8, x9] subs w8, w8, #0 cset w8, ne str w8, [sp, #24] ; 4-byte Folded Spill b LBB0_4 LBB0_4: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #24] ; 4-byte Folded Reload tbz w8, #0, LBB0_6 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_1 Depth=1 ldrsw x8, [sp, #32] mov x9, #80 mul x9, x8, x9 add x8, sp, #120 add x8, x8, x9 ldrsw x10, [sp, #32] add x9, sp, #40 str x8, [x9, x10, lsl #3] ldr w8, [sp, #32] add w8, w8, #1 str w8, [sp, #32] b LBB0_1 LBB0_6: adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _printf b LBB0_7 LBB0_7: ; =>This Inner Loop Header: Depth=1 mov x9, sp add x8, sp, #28 str x8, [x9] adrp x0, l_.str.7@PAGE add x0, x0, l_.str.7@PAGEOFF bl _scanf ldr w8, [sp, #28] str w8, [sp, #20] ; 4-byte Folded Spill subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_9 b LBB0_8 LBB0_8: ; in Loop: Header=BB0_7 Depth=1 ldr w8, [sp, #20] ; 4-byte Folded Reload subs w8, w8, #1 subs w8, w8, #2 cset w8, ls tbnz w8, #0, LBB0_10 b LBB0_11 LBB0_9: ; in Loop: Header=BB0_7 Depth=1 add x0, sp, #40 mov w1, #10 bl _print_strings b LBB0_14 LBB0_10: ; in Loop: Header=BB0_7 Depth=1 ldr w2, [sp, #28] add x0, sp, #40 str x0, [sp, #8] ; 8-byte Folded Spill mov w1, #10 str w1, [sp, #16] ; 4-byte Folded Spill bl _stsrt ldr x0, [sp, #8] ; 8-byte Folded Reload ldr w1, [sp, #16] ; 4-byte Folded Reload bl _print_strings b LBB0_14 LBB0_11: 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_13 b LBB0_12 LBB0_12: bl ___stack_chk_fail LBB0_13: mov w0, #0 add sp, sp, #928 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x28, x27, [sp], #32 ; 16-byte Folded Reload ret LBB0_14: ; in Loop: Header=BB0_7 Depth=1 b LBB0_7 .cfi_endproc ; -- End function .globl _s_gets ; -- Begin function s_gets .p2align 2 _s_gets: ; @s_gets .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, #4] ldur x0, [x29, #-8] ldur w1, [x29, #-12] adrp x8, ___stdinp@GOTPAGE ldr x8, [x8, ___stdinp@GOTPAGEOFF] ldr x2, [x8] bl _fgets str x0, [sp, #8] ldr x8, [sp, #8] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB1_13 b LBB1_1 LBB1_1: b LBB1_2 LBB1_2: ; =>This Inner Loop Header: Depth=1 ldur x8, [x29, #-8] ldrsw x9, [sp, #4] ldrsb w8, [x8, x9] subs w8, w8, #10 cset w8, eq mov w9, #0 str w9, [sp] ; 4-byte Folded Spill tbnz w8, #0, LBB1_4 b LBB1_3 LBB1_3: ; in Loop: Header=BB1_2 Depth=1 ldur x8, [x29, #-8] ldrsw x9, [sp, #4] ldrsb w8, [x8, x9] subs w8, w8, #0 cset w8, ne str w8, [sp] ; 4-byte Folded Spill b LBB1_4 LBB1_4: ; in Loop: Header=BB1_2 Depth=1 ldr w8, [sp] ; 4-byte Folded Reload tbz w8, #0, LBB1_6 b LBB1_5 LBB1_5: ; in Loop: Header=BB1_2 Depth=1 ldr w8, [sp, #4] add w8, w8, #1 str w8, [sp, #4] b LBB1_2 LBB1_6: ldur x8, [x29, #-8] ldrsw x9, [sp, #4] ldrsb w8, [x8, x9] subs w8, w8, #10 cset w8, ne tbnz w8, #0, LBB1_8 b LBB1_7 LBB1_7: ldur x8, [x29, #-8] ldrsw x9, [sp, #4] add x8, x8, x9 strb wzr, [x8] b LBB1_12 LBB1_8: b LBB1_9 LBB1_9: ; =>This Inner Loop Header: Depth=1 bl _getchar subs w8, w0, #10 cset w8, eq tbnz w8, #0, LBB1_11 b LBB1_10 LBB1_10: ; in Loop: Header=BB1_9 Depth=1 b LBB1_9 LBB1_11: b LBB1_12 LBB1_12: b LBB1_13 LBB1_13: ldr x0, [sp, #8] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _print_strings ; -- Begin function print_strings .p2align 2 _print_strings: ; @print_strings .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] stur w1, [x29, #-12] str wzr, [sp, #16] b LBB2_1 LBB2_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #16] ldur w9, [x29, #-12] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB2_4 b LBB2_2 LBB2_2: ; in Loop: Header=BB2_1 Depth=1 ldur x8, [x29, #-8] ldrsw x9, [sp, #16] ldr x8, [x8, x9, lsl #3] mov x9, sp str x8, [x9] adrp x0, l_.str.8@PAGE add x0, x0, l_.str.8@PAGEOFF bl _printf b LBB2_3 LBB2_3: ; in Loop: Header=BB2_1 Depth=1 ldr w8, [sp, #16] add w8, w8, #1 str w8, [sp, #16] b LBB2_1 LBB2_4: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _stsrt ; -- Begin function stsrt .p2align 2 _stsrt: ; @stsrt .cfi_startproc ; %bb.0: sub sp, sp, #80 .cfi_def_cfa_offset 80 stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp, #64 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] stur w1, [x29, #-12] stur w2, [x29, #-16] stur wzr, [x29, #-28] b LBB3_1 LBB3_1: ; =>This Loop Header: Depth=1 ; Child Loop BB3_3 Depth 2 ldur w8, [x29, #-28] ldur w9, [x29, #-12] subs w9, w9, #1 subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB3_17 b LBB3_2 LBB3_2: ; in Loop: Header=BB3_1 Depth=1 ldur w8, [x29, #-28] str w8, [sp, #32] b LBB3_3 LBB3_3: ; Parent Loop BB3_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #32] ldur w9, [x29, #-12] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB3_15 b LBB3_4 LBB3_4: ; in Loop: Header=BB3_3 Depth=2 str wzr, [sp, #28] ldur w8, [x29, #-16] str w8, [sp, #24] ; 4-byte Folded Spill subs w8, w8, #1 cset w8, eq tbnz w8, #0, LBB3_7 b LBB3_5 LBB3_5: ; in Loop: Header=BB3_3 Depth=2 ldr w8, [sp, #24] ; 4-byte Folded Reload subs w8, w8, #2 cset w8, eq tbnz w8, #0, LBB3_8 b LBB3_6 LBB3_6: ; in Loop: Header=BB3_3 Depth=2 ldr w8, [sp, #24] ; 4-byte Folded Reload subs w8, w8, #3 cset w8, eq tbnz w8, #0, LBB3_9 b LBB3_10 LBB3_7: ; in Loop: Header=BB3_3 Depth=2 ldur x8, [x29, #-8] ldursw x9, [x29, #-28] ldr x0, [x8, x9, lsl #3] ldur x8, [x29, #-8] ldrsw x9, [sp, #32] ldr x1, [x8, x9, lsl #3] bl _strcmp str w0, [sp, #28] b LBB3_11 LBB3_8: ; in Loop: Header=BB3_3 Depth=2 ldur x8, [x29, #-8] ldursw x9, [x29, #-28] ldr x0, [x8, x9, lsl #3] bl _strlen str x0, [sp, #16] ; 8-byte Folded Spill ldur x8, [x29, #-8] ldrsw x9, [sp, #32] ldr x0, [x8, x9, lsl #3] bl _strlen mov x8, x0 ldr x0, [sp, #16] ; 8-byte Folded Reload subs x8, x0, x8 ; kill: def $w8 killed $w8 killed $x8 str w8, [sp, #28] b LBB3_11 LBB3_9: ; in Loop: Header=BB3_3 Depth=2 ldur x8, [x29, #-8] ldursw x9, [x29, #-28] ldr x0, [x8, x9, lsl #3] bl _strlen str x0, [sp, #8] ; 8-byte Folded Spill ldur x8, [x29, #-8] ldrsw x9, [sp, #32] ldr x0, [x8, x9, lsl #3] bl _strlen mov x8, x0 ldr x0, [sp, #8] ; 8-byte Folded Reload subs x8, x0, x8 ; kill: def $w8 killed $w8 killed $x8 str w8, [sp, #28] b LBB3_11 LBB3_10: ; in Loop: Header=BB3_3 Depth=2 b LBB3_11 LBB3_11: ; in Loop: Header=BB3_3 Depth=2 ldr w8, [sp, #28] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB3_13 b LBB3_12 LBB3_12: ; in Loop: Header=BB3_3 Depth=2 ldur x8, [x29, #-8] ldursw x9, [x29, #-28] ldr x8, [x8, x9, lsl #3] stur x8, [x29, #-24] ldur x8, [x29, #-8] ldrsw x9, [sp, #32] ldr x8, [x8, x9, lsl #3] ldur x9, [x29, #-8] ldursw x10, [x29, #-28] str x8, [x9, x10, lsl #3] ldur x8, [x29, #-24] ldur x9, [x29, #-8] ldrsw x10, [sp, #32] str x8, [x9, x10, lsl #3] b LBB3_13 LBB3_13: ; in Loop: Header=BB3_3 Depth=2 b LBB3_14 LBB3_14: ; in Loop: Header=BB3_3 Depth=2 ldr w8, [sp, #32] add w8, w8, #1 str w8, [sp, #32] b LBB3_3 LBB3_15: ; in Loop: Header=BB3_1 Depth=1 b LBB3_16 LBB3_16: ; in Loop: Header=BB3_1 Depth=1 ldur w8, [x29, #-28] add w8, w8, #1 stur w8, [x29, #-28] b LBB3_1 LBB3_17: 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:" l_.str.1: ; @.str.1 .asciz "\350\257\267\351\200\211\346\213\251:\n" l_.str.2: ; @.str.2 .asciz "0. print\n" l_.str.3: ; @.str.3 .asciz "1. ASCII\n" l_.str.4: ; @.str.4 .asciz "2. strlen:\n" l_.str.5: ; @.str.5 .asciz "3. word:\n" l_.str.6: ; @.str.6 .asciz "4. quit:\n" l_.str.7: ; @.str.7 .asciz "%d" l_.str.8: ; @.str.8 .asciz "%s\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $928, %rsp ## imm = 0x3A0 movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -900(%rbp) movl $0, -904(%rbp) leaq L_.str(%rip), %rdi movb $0, %al callq _printf LBB0_1: ## =>This Inner Loop Header: Depth=1 xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $10, -904(%rbp) movb %al, -909(%rbp) ## 1-byte Spill jge LBB0_4 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movslq -904(%rbp), %rax leaq -816(%rbp), %rdi imulq $80, %rax, %rax addq %rax, %rdi movl $80, %esi callq _s_gets movq %rax, %rcx xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpq $0, %rcx movb %al, -909(%rbp) ## 1-byte Spill je LBB0_4 ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movslq -904(%rbp), %rcx leaq -816(%rbp), %rax imulq $80, %rcx, %rcx addq %rcx, %rax movsbl (%rax), %eax cmpl $0, %eax setne %al movb %al, -909(%rbp) ## 1-byte Spill LBB0_4: ## in Loop: Header=BB0_1 Depth=1 movb -909(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB0_5 jmp LBB0_6 LBB0_5: ## in Loop: Header=BB0_1 Depth=1 movslq -904(%rbp), %rax leaq -816(%rbp), %rcx imulq $80, %rax, %rax addq %rax, %rcx movslq -904(%rbp), %rax movq %rcx, -896(%rbp,%rax,8) movl -904(%rbp), %eax addl $1, %eax movl %eax, -904(%rbp) jmp LBB0_1 LBB0_6: leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf leaq L_.str.5(%rip), %rdi movb $0, %al callq _printf leaq L_.str.6(%rip), %rdi movb $0, %al callq _printf LBB0_7: ## =>This Inner Loop Header: Depth=1 leaq L_.str.7(%rip), %rdi xorl %eax, %eax ## kill: def $al killed $al killed $eax leaq -908(%rbp), %rsi callq _scanf movl -908(%rbp), %eax movl %eax, -916(%rbp) ## 4-byte Spill testl %eax, %eax je LBB0_8 jmp LBB0_14 LBB0_14: ## in Loop: Header=BB0_7 Depth=1 movl -916(%rbp), %eax ## 4-byte Reload decl %eax subl $3, %eax jb LBB0_9 jmp LBB0_10 LBB0_8: ## in Loop: Header=BB0_7 Depth=1 leaq -896(%rbp), %rdi movl $10, %esi callq _print_strings jmp LBB0_12 LBB0_9: ## in Loop: Header=BB0_7 Depth=1 leaq -896(%rbp), %rdi movl -908(%rbp), %edx movl $10, %esi callq _stsrt leaq -896(%rbp), %rdi movl $10, %esi callq _print_strings jmp LBB0_12 LBB0_10: movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_13 ## %bb.11: xorl %eax, %eax addq $928, %rsp ## imm = 0x3A0 popq %rbp retq LBB0_12: ## in Loop: Header=BB0_7 Depth=1 jmp LBB0_7 LBB0_13: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _s_gets ## -- Begin function s_gets .p2align 4, 0x90 _s_gets: ## @s_gets .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, -28(%rbp) movq -8(%rbp), %rdi movl -12(%rbp), %esi movq ___stdinp@GOTPCREL(%rip), %rax movq (%rax), %rdx callq _fgets movq %rax, -24(%rbp) cmpq $0, -24(%rbp) je LBB1_13 ## %bb.1: jmp LBB1_2 LBB1_2: ## =>This Inner Loop Header: Depth=1 movq -8(%rbp), %rax movslq -28(%rbp), %rcx movsbl (%rax,%rcx), %ecx xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $10, %ecx movb %al, -29(%rbp) ## 1-byte Spill je LBB1_4 ## %bb.3: ## in Loop: Header=BB1_2 Depth=1 movq -8(%rbp), %rax movslq -28(%rbp), %rcx movsbl (%rax,%rcx), %eax cmpl $0, %eax setne %al movb %al, -29(%rbp) ## 1-byte Spill LBB1_4: ## in Loop: Header=BB1_2 Depth=1 movb -29(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB1_5 jmp LBB1_6 LBB1_5: ## in Loop: Header=BB1_2 Depth=1 movl -28(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) jmp LBB1_2 LBB1_6: movq -8(%rbp), %rax movslq -28(%rbp), %rcx movsbl (%rax,%rcx), %eax cmpl $10, %eax jne LBB1_8 ## %bb.7: movq -8(%rbp), %rax movslq -28(%rbp), %rcx movb $0, (%rax,%rcx) jmp LBB1_12 LBB1_8: jmp LBB1_9 LBB1_9: ## =>This Inner Loop Header: Depth=1 callq _getchar cmpl $10, %eax je LBB1_11 ## %bb.10: ## in Loop: Header=BB1_9 Depth=1 jmp LBB1_9 LBB1_11: jmp LBB1_12 LBB1_12: jmp LBB1_13 LBB1_13: movq -24(%rbp), %rax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _print_strings ## -- Begin function print_strings .p2align 4, 0x90 _print_strings: ## @print_strings .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) movl $0, -16(%rbp) LBB2_1: ## =>This Inner Loop Header: Depth=1 movl -16(%rbp), %eax cmpl -12(%rbp), %eax jge LBB2_4 ## %bb.2: ## in Loop: Header=BB2_1 Depth=1 movq -8(%rbp), %rax movslq -16(%rbp), %rcx movq (%rax,%rcx,8), %rsi leaq L_.str.8(%rip), %rdi movb $0, %al callq _printf ## %bb.3: ## in Loop: Header=BB2_1 Depth=1 movl -16(%rbp), %eax addl $1, %eax movl %eax, -16(%rbp) jmp LBB2_1 LBB2_4: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _stsrt ## -- Begin function stsrt .p2align 4, 0x90 _stsrt: ## @stsrt .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $64, %rsp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) movl %edx, -16(%rbp) movl $0, -28(%rbp) LBB3_1: ## =>This Loop Header: Depth=1 ## Child Loop BB3_3 Depth 2 movl -28(%rbp), %eax movl -12(%rbp), %ecx subl $1, %ecx cmpl %ecx, %eax jge LBB3_15 ## %bb.2: ## in Loop: Header=BB3_1 Depth=1 movl -28(%rbp), %eax movl %eax, -32(%rbp) LBB3_3: ## Parent Loop BB3_1 Depth=1 ## => This Inner Loop Header: Depth=2 movl -32(%rbp), %eax cmpl -12(%rbp), %eax jge LBB3_13 ## %bb.4: ## in Loop: Header=BB3_3 Depth=2 movl $0, -36(%rbp) movl -16(%rbp), %eax movl %eax, -40(%rbp) ## 4-byte Spill subl $1, %eax je LBB3_5 jmp LBB3_16 LBB3_16: ## in Loop: Header=BB3_3 Depth=2 movl -40(%rbp), %eax ## 4-byte Reload subl $2, %eax je LBB3_6 jmp LBB3_17 LBB3_17: ## in Loop: Header=BB3_3 Depth=2 movl -40(%rbp), %eax ## 4-byte Reload subl $3, %eax je LBB3_7 jmp LBB3_8 LBB3_5: ## in Loop: Header=BB3_3 Depth=2 movq -8(%rbp), %rax movslq -28(%rbp), %rcx movq (%rax,%rcx,8), %rdi movq -8(%rbp), %rax movslq -32(%rbp), %rcx movq (%rax,%rcx,8), %rsi callq _strcmp movl %eax, -36(%rbp) jmp LBB3_9 LBB3_6: ## in Loop: Header=BB3_3 Depth=2 movq -8(%rbp), %rax movslq -28(%rbp), %rcx movq (%rax,%rcx,8), %rdi callq _strlen movq %rax, -48(%rbp) ## 8-byte Spill movq -8(%rbp), %rax movslq -32(%rbp), %rcx movq (%rax,%rcx,8), %rdi callq _strlen movq %rax, %rcx movq -48(%rbp), %rax ## 8-byte Reload subq %rcx, %rax ## kill: def $eax killed $eax killed $rax movl %eax, -36(%rbp) jmp LBB3_9 LBB3_7: ## in Loop: Header=BB3_3 Depth=2 movq -8(%rbp), %rax movslq -28(%rbp), %rcx movq (%rax,%rcx,8), %rdi callq _strlen movq %rax, -56(%rbp) ## 8-byte Spill movq -8(%rbp), %rax movslq -32(%rbp), %rcx movq (%rax,%rcx,8), %rdi callq _strlen movq %rax, %rcx movq -56(%rbp), %rax ## 8-byte Reload subq %rcx, %rax ## kill: def $eax killed $eax killed $rax movl %eax, -36(%rbp) jmp LBB3_9 LBB3_8: ## in Loop: Header=BB3_3 Depth=2 jmp LBB3_9 LBB3_9: ## in Loop: Header=BB3_3 Depth=2 cmpl $0, -36(%rbp) jle LBB3_11 ## %bb.10: ## in Loop: Header=BB3_3 Depth=2 movq -8(%rbp), %rax movslq -28(%rbp), %rcx movq (%rax,%rcx,8), %rax movq %rax, -24(%rbp) movq -8(%rbp), %rax movslq -32(%rbp), %rcx movq (%rax,%rcx,8), %rdx movq -8(%rbp), %rax movslq -28(%rbp), %rcx movq %rdx, (%rax,%rcx,8) movq -24(%rbp), %rdx movq -8(%rbp), %rax movslq -32(%rbp), %rcx movq %rdx, (%rax,%rcx,8) LBB3_11: ## in Loop: Header=BB3_3 Depth=2 jmp LBB3_12 LBB3_12: ## in Loop: Header=BB3_3 Depth=2 movl -32(%rbp), %eax addl $1, %eax movl %eax, -32(%rbp) jmp LBB3_3 LBB3_13: ## in Loop: Header=BB3_1 Depth=1 jmp LBB3_14 LBB3_14: ## in Loop: Header=BB3_1 Depth=1 movl -28(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) jmp LBB3_1 LBB3_15: addq $64, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Enter:" L_.str.1: ## @.str.1 .asciz "\350\257\267\351\200\211\346\213\251:\n" L_.str.2: ## @.str.2 .asciz "0. print\n" L_.str.3: ## @.str.3 .asciz "1. ASCII\n" L_.str.4: ## @.str.4 .asciz "2. strlen:\n" L_.str.5: ## @.str.5 .asciz "3. word:\n" L_.str.6: ## @.str.6 .asciz "4. quit:\n" L_.str.7: ## @.str.7 .asciz "%d" L_.str.8: ## @.str.8 .asciz "%s\n" .subsections_via_symbols
the_stack_data/797633.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] mov x9, sp sub x8, x29, #8 str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _scanf str wzr, [sp, #16] str wzr, [sp, #12] b LBB0_1 LBB0_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, LBB0_6 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 mov x9, sp sub x8, x29, #12 str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _scanf ldur w8, [x29, #-12] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #16] add w8, w8, #1 str w8, [sp, #16] b LBB0_4 LBB0_4: ; in Loop: Header=BB0_1 Depth=1 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB0_1 LBB0_6: ldr w9, [sp, #16] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf mov w0, #0 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d" l_.str.1: ; @.str.1 .asciz "%d\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl $0, -4(%rbp) leaq L_.str(%rip), %rdi leaq -8(%rbp), %rsi movb $0, %al callq _scanf movl $0, -16(%rbp) movl $0, -20(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movl -20(%rbp), %eax cmpl -8(%rbp), %eax jge LBB0_6 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 leaq L_.str(%rip), %rdi leaq -12(%rbp), %rsi movb $0, %al callq _scanf cmpl $0, -12(%rbp) jle LBB0_4 ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movl -16(%rbp), %eax addl $1, %eax movl %eax, -16(%rbp) LBB0_4: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_5 LBB0_5: ## in Loop: Header=BB0_1 Depth=1 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB0_1 LBB0_6: movl -16(%rbp), %esi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf xorl %eax, %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d" L_.str.1: ## @.str.1 .asciz "%d\n" .subsections_via_symbols
the_stack_data/3263163.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/72012874.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #0 stur w8, [x29, #-12] ; 4-byte Folded Spill stur wzr, [x29, #-4] adrp x8, ___stdinp@GOTPAGE ldr x8, [x8, ___stdinp@GOTPAGEOFF] ldr x2, [x8] sub x0, x29, #8 str x0, [sp, #8] ; 8-byte Folded Spill mov w1, #4 bl _fgets ldr x8, [sp, #8] ; 8-byte Folded Reload mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldur 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 "a = %s\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) leaq -8(%rbp), %rdi movq ___stdinp@GOTPCREL(%rip), %rax movq (%rax), %rdx movl $4, %esi callq _fgets leaq -8(%rbp), %rsi leaq L_.str(%rip), %rdi movb $0, %al callq _printf xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "a = %s\n" .subsections_via_symbols
the_stack_data/35265.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/140766067.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #176 .cfi_def_cfa_offset 176 stp x29, x30, [sp, #160] ; 16-byte Folded Spill add x29, sp, #160 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] str wzr, [sp, #28] str wzr, [sp, #16] str wzr, [sp, #12] mov x9, sp mov x8, #10 str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf str wzr, [sp, #20] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #20] 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 w8, [sp, #20] add w10, w8, #1 mov x9, sp ; implicit-def: $x8 mov x8, x10 str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf ldrsw x9, [sp, #20] sub x8, x29, #48 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 _scanf b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #20] add w8, w8, #1 str w8, [sp, #20] b LBB0_1 LBB0_4: adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf mov x9, sp add x8, sp, #24 str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _scanf str wzr, [sp, #20] b LBB0_5 LBB0_5: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #20] subs w8, w8, #10 cset w8, ge tbnz w8, #0, LBB0_11 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_5 Depth=1 ldr w8, [sp, #20] ldr w9, [sp, #24] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_8 b LBB0_7 LBB0_7: ; in Loop: Header=BB0_5 Depth=1 ldrsw x9, [sp, #20] sub x8, x29, #48 ldr w8, [x8, x9, lsl #2] ldrsw x10, [sp, #16] mov x9, x10 add w9, w9, #1 str w9, [sp, #16] add x9, sp, #72 str w8, [x9, x10, lsl #2] b LBB0_9 LBB0_8: ; in Loop: Header=BB0_5 Depth=1 ldrsw x9, [sp, #20] sub x8, x29, #48 ldr w8, [x8, x9, lsl #2] ldrsw x10, [sp, #12] mov x9, x10 add w9, w9, #1 str w9, [sp, #12] add x9, sp, #32 str w8, [x9, x10, lsl #2] b LBB0_9 LBB0_9: ; in Loop: Header=BB0_5 Depth=1 b LBB0_10 LBB0_10: ; in Loop: Header=BB0_5 Depth=1 ldr w8, [sp, #20] add w8, w8, #1 str w8, [sp, #20] b LBB0_5 LBB0_11: ldr w9, [sp, #16] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf str wzr, [sp, #20] b LBB0_12 LBB0_12: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #20] ldr w9, [sp, #16] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_15 b LBB0_13 LBB0_13: ; in Loop: Header=BB0_12 Depth=1 ldrsw x9, [sp, #20] add x8, sp, #72 ldr w9, [x8, x9, lsl #2] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf b LBB0_14 LBB0_14: ; in Loop: Header=BB0_12 Depth=1 ldr w8, [sp, #20] add w8, w8, #1 str w8, [sp, #20] b LBB0_12 LBB0_15: ldr w9, [sp, #12] ; 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 str wzr, [sp, #20] b LBB0_16 LBB0_16: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #20] ldr w9, [sp, #12] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_19 b LBB0_17 LBB0_17: ; in Loop: Header=BB0_16 Depth=1 ldrsw x9, [sp, #20] add x8, sp, #32 ldr w9, [x8, x9, lsl #2] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf b LBB0_18 LBB0_18: ; in Loop: Header=BB0_16 Depth=1 ldr w8, [sp, #20] add w8, w8, #1 str w8, [sp, #20] b LBB0_16 LBB0_19: 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_21 b LBB0_20 LBB0_20: bl ___stack_chk_fail LBB0_21: mov w0, #0 ldp x29, x30, [sp, #160] ; 16-byte Folded Reload add sp, sp, #176 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Enter %d integer numbers\n" l_.str.1: ; @.str.1 .asciz "Nr %d: " l_.str.2: ; @.str.2 .asciz "%d" l_.str.3: ; @.str.3 .asciz "Enter the position to split the array into Two\n" l_.str.4: ; @.str.4 .asciz "\nElement of first array ->> arr1[%d]\n" l_.str.5: ; @.str.5 .asciz "%d\t" l_.str.6: ; @.str.6 .asciz "\nElement of seond array ->>arr2[%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 $176, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -148(%rbp) movl $0, -160(%rbp) movl $0, -164(%rbp) leaq L_.str(%rip), %rdi movl $10, %esi movb $0, %al callq _printf movl $0, -156(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 cmpl $10, -156(%rbp) jge LBB0_4 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl -156(%rbp), %esi addl $1, %esi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf movslq -156(%rbp), %rax leaq -48(%rbp), %rsi shlq $2, %rax addq %rax, %rsi leaq L_.str.2(%rip), %rdi movb $0, %al callq _scanf ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movl -156(%rbp), %eax addl $1, %eax movl %eax, -156(%rbp) jmp LBB0_1 LBB0_4: leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf leaq L_.str.2(%rip), %rdi leaq -152(%rbp), %rsi movb $0, %al callq _scanf movl $0, -156(%rbp) LBB0_5: ## =>This Inner Loop Header: Depth=1 cmpl $10, -156(%rbp) jge LBB0_11 ## %bb.6: ## in Loop: Header=BB0_5 Depth=1 movl -156(%rbp), %eax cmpl -152(%rbp), %eax jge LBB0_8 ## %bb.7: ## in Loop: Header=BB0_5 Depth=1 movslq -156(%rbp), %rax movl -48(%rbp,%rax,4), %ecx movl -160(%rbp), %eax movl %eax, %edx addl $1, %edx movl %edx, -160(%rbp) cltq movl %ecx, -96(%rbp,%rax,4) jmp LBB0_9 LBB0_8: ## in Loop: Header=BB0_5 Depth=1 movslq -156(%rbp), %rax movl -48(%rbp,%rax,4), %ecx movl -164(%rbp), %eax movl %eax, %edx addl $1, %edx movl %edx, -164(%rbp) cltq movl %ecx, -144(%rbp,%rax,4) LBB0_9: ## in Loop: Header=BB0_5 Depth=1 jmp LBB0_10 LBB0_10: ## in Loop: Header=BB0_5 Depth=1 movl -156(%rbp), %eax addl $1, %eax movl %eax, -156(%rbp) jmp LBB0_5 LBB0_11: movl -160(%rbp), %esi leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf movl $0, -156(%rbp) LBB0_12: ## =>This Inner Loop Header: Depth=1 movl -156(%rbp), %eax cmpl -160(%rbp), %eax jge LBB0_15 ## %bb.13: ## in Loop: Header=BB0_12 Depth=1 movslq -156(%rbp), %rax movl -96(%rbp,%rax,4), %esi leaq L_.str.5(%rip), %rdi movb $0, %al callq _printf ## %bb.14: ## in Loop: Header=BB0_12 Depth=1 movl -156(%rbp), %eax addl $1, %eax movl %eax, -156(%rbp) jmp LBB0_12 LBB0_15: movl -164(%rbp), %esi leaq L_.str.6(%rip), %rdi movb $0, %al callq _printf movl $0, -156(%rbp) LBB0_16: ## =>This Inner Loop Header: Depth=1 movl -156(%rbp), %eax cmpl -164(%rbp), %eax jge LBB0_19 ## %bb.17: ## in Loop: Header=BB0_16 Depth=1 movslq -156(%rbp), %rax movl -144(%rbp,%rax,4), %esi leaq L_.str.5(%rip), %rdi movb $0, %al callq _printf ## %bb.18: ## in Loop: Header=BB0_16 Depth=1 movl -156(%rbp), %eax addl $1, %eax movl %eax, -156(%rbp) jmp LBB0_16 LBB0_19: movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_21 ## %bb.20: xorl %eax, %eax addq $176, %rsp popq %rbp retq LBB0_21: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Enter %d integer numbers\n" L_.str.1: ## @.str.1 .asciz "Nr %d: " L_.str.2: ## @.str.2 .asciz "%d" L_.str.3: ## @.str.3 .asciz "Enter the position to split the array into Two\n" L_.str.4: ## @.str.4 .asciz "\nElement of first array ->> arr1[%d]\n" L_.str.5: ## @.str.5 .asciz "%d\t" L_.str.6: ## @.str.6 .asciz "\nElement of seond array ->>arr2[%d]\n" .subsections_via_symbols
the_stack_data/633357.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #96 .cfi_def_cfa_offset 96 stp x29, x30, [sp, #80] ; 16-byte Folded Spill add x29, sp, #80 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, _lineptr@GOTPAGE ldr x8, [x8, _lineptr@GOTPAGEOFF] str x8, [sp, #32] ; 8-byte Folded Spill stur wzr, [x29, #-4] stur w0, [x29, #-8] stur x1, [x29, #-16] stur wzr, [x29, #-24] stur wzr, [x29, #-28] stur wzr, [x29, #-32] stur wzr, [x29, #-36] b LBB0_1 LBB0_1: ; =>This Loop Header: Depth=1 ; Child Loop BB0_5 Depth 2 ldur w8, [x29, #-8] subs w8, w8, #1 stur w8, [x29, #-8] subs w8, w8, #0 cset w8, le mov w9, #0 str w9, [sp, #28] ; 4-byte Folded Spill tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldur x8, [x29, #-16] add x9, x8, #8 stur x9, [x29, #-16] ldr x8, [x8, #8] ldrsb w8, [x8] subs w8, w8, #45 cset w8, eq str w8, [sp, #28] ; 4-byte Folded Spill b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #28] ; 4-byte Folded Reload tbz w8, #0, LBB0_15 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_1 Depth=1 b LBB0_5 LBB0_5: ; Parent Loop BB0_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldur x10, [x29, #-16] ldr x8, [x10] add x9, x8, #1 str x9, [x10] ldrsb w8, [x8, #1] str w8, [sp, #40] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_14 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_5 Depth=2 ldr w8, [sp, #40] subs w8, w8, #100 ; kill: def $x8 killed $w8 str x8, [sp, #16] ; 8-byte Folded Spill subs x8, x8, #14 cset w8, hi tbnz w8, #0, LBB0_12 ; %bb.7: ; in Loop: Header=BB0_5 Depth=2 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_8: ; in Loop: Header=BB0_5 Depth=2 mov w8, #1 stur w8, [x29, #-24] b LBB0_13 LBB0_9: ; in Loop: Header=BB0_5 Depth=2 mov w8, #1 stur w8, [x29, #-28] b LBB0_13 LBB0_10: ; in Loop: Header=BB0_5 Depth=2 mov w8, #1 stur w8, [x29, #-32] b LBB0_13 LBB0_11: ; in Loop: Header=BB0_5 Depth=2 mov w8, #1 stur w8, [x29, #-36] b LBB0_13 LBB0_12: ; in Loop: Header=BB0_5 Depth=2 ldr w9, [sp, #40] ; 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_13 LBB0_13: ; in Loop: Header=BB0_5 Depth=2 b LBB0_5 LBB0_14: ; in Loop: Header=BB0_1 Depth=1 b LBB0_1 LBB0_15: ldur w8, [x29, #-8] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB0_18 b LBB0_16 LBB0_16: ldur x8, [x29, #-16] ldr x8, [x8] ldrsb w0, [x8] bl _isdigit subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB0_18 b LBB0_17 LBB0_17: ldur x8, [x29, #-16] ldr x0, [x8] bl _atoi adrp x8, _pos1@PAGE str w0, [x8, _pos1@PAGEOFF] ldur w8, [x29, #-8] subs w8, w8, #1 stur w8, [x29, #-8] ldur x8, [x29, #-16] add x8, x8, #8 stur x8, [x29, #-16] b LBB0_18 LBB0_18: ldur w8, [x29, #-8] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB0_21 b LBB0_19 LBB0_19: ldur x8, [x29, #-16] ldr x8, [x8] ldrsb w0, [x8] bl _isdigit subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB0_21 b LBB0_20 LBB0_20: ldur x8, [x29, #-16] ldr x0, [x8] bl _atoi adrp x8, _pos2@PAGE str w0, [x8, _pos2@PAGEOFF] ldur w8, [x29, #-8] subs w8, w8, #1 stur w8, [x29, #-8] ldur x8, [x29, #-16] add x8, x8, #8 stur x8, [x29, #-16] b LBB0_21 LBB0_21: ldur w8, [x29, #-8] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_23 b LBB0_22 LBB0_22: adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf mov w8, #1 stur w8, [x29, #-4] b LBB0_40 LBB0_23: adrp x8, _pos1@PAGE ldr w8, [x8, _pos1@PAGEOFF] adrp x9, _pos2@PAGE ldr w9, [x9, _pos2@PAGEOFF] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB0_25 b LBB0_24 LBB0_24: adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf mov w8, #1 stur w8, [x29, #-4] b LBB0_40 LBB0_25: ldur w8, [x29, #-24] subs w8, w8, #0 cset w8, ne and w10, w8, #0x1 adrp x9, l_.str.4@PAGE add x9, x9, l_.str.4@PAGEOFF adrp x8, l_.str.3@PAGE add x8, x8, l_.str.3@PAGEOFF ands w10, w10, #0x1 csel x0, x8, x9, ne bl _printf ldur w8, [x29, #-28] subs w8, w8, #0 cset w8, ne and w10, w8, #0x1 adrp x9, l_.str.6@PAGE add x9, x9, l_.str.6@PAGEOFF adrp x8, l_.str.5@PAGE add x8, x8, l_.str.5@PAGEOFF ands w10, w10, #0x1 csel x0, x8, x9, ne bl _printf ldur w8, [x29, #-32] subs w8, w8, #0 cset w8, ne and w10, w8, #0x1 adrp x9, l_.str.8@PAGE add x9, x9, l_.str.8@PAGEOFF adrp x8, l_.str.7@PAGE add x8, x8, l_.str.7@PAGEOFF ands w10, w10, #0x1 csel x0, x8, x9, ne bl _printf ldur w8, [x29, #-36] subs w8, w8, #0 cset w8, ne and w10, w8, #0x1 adrp x9, l_.str.10@PAGE add x9, x9, l_.str.10@PAGEOFF adrp x8, l_.str.9@PAGE add x8, x8, l_.str.9@PAGEOFF ands w10, w10, #0x1 csel x0, x8, x9, ne bl _printf ldr x0, [sp, #32] ; 8-byte Folded Reload mov w1, #5000 bl _readlines stur w0, [x29, #-20] subs w8, w0, #0 cset w8, le tbnz w8, #0, LBB0_39 b LBB0_26 LBB0_26: ldur w8, [x29, #-24] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_28 b LBB0_27 LBB0_27: ldr x0, [sp, #32] ; 8-byte Folded Reload ldur w8, [x29, #-20] subs w2, w8, #1 mov w1, #0 adrp x3, _numcmp@PAGE add x3, x3, _numcmp@PAGEOFF bl _q_sort b LBB0_38 LBB0_28: ldur w8, [x29, #-36] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_33 b LBB0_29 LBB0_29: ldur w8, [x29, #-32] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_31 b LBB0_30 LBB0_30: ldr x0, [sp, #32] ; 8-byte Folded Reload ldur w8, [x29, #-20] subs w2, w8, #1 mov w1, #0 adrp x3, _strdfcmp@PAGE add x3, x3, _strdfcmp@PAGEOFF bl _q_sort b LBB0_32 LBB0_31: ldr x0, [sp, #32] ; 8-byte Folded Reload ldur w8, [x29, #-20] subs w2, w8, #1 mov w1, #0 adrp x3, _strdcmp@PAGE add x3, x3, _strdcmp@PAGEOFF bl _q_sort b LBB0_32 LBB0_32: b LBB0_37 LBB0_33: ldur w8, [x29, #-32] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_35 b LBB0_34 LBB0_34: ldr x0, [sp, #32] ; 8-byte Folded Reload ldur w8, [x29, #-20] subs w2, w8, #1 mov w1, #0 adrp x3, _strfcmp@PAGE add x3, x3, _strfcmp@PAGEOFF bl _q_sort b LBB0_36 LBB0_35: ldr x0, [sp, #32] ; 8-byte Folded Reload ldur w8, [x29, #-20] subs w2, w8, #1 mov w1, #0 adrp x3, _strcmp@GOTPAGE ldr x3, [x3, _strcmp@GOTPAGEOFF] bl _q_sort b LBB0_36 LBB0_36: b LBB0_37 LBB0_37: b LBB0_38 LBB0_38: ldr x0, [sp, #32] ; 8-byte Folded Reload ldur w1, [x29, #-20] ldur w2, [x29, #-28] bl _writelines stur wzr, [x29, #-4] b LBB0_40 LBB0_39: adrp x0, l_.str.11@PAGE add x0, x0, l_.str.11@PAGEOFF bl _printf mov w8, #1 stur w8, [x29, #-4] b LBB0_40 LBB0_40: ldur w0, [x29, #-4] ldp x29, x30, [sp, #80] ; 16-byte Folded Reload add sp, sp, #96 ret .cfi_endproc .p2align 2 lJTI0_0: .long LBB0_11-Ltmp0 .long LBB0_12-Ltmp0 .long LBB0_10-Ltmp0 .long LBB0_12-Ltmp0 .long LBB0_12-Ltmp0 .long LBB0_12-Ltmp0 .long LBB0_12-Ltmp0 .long LBB0_12-Ltmp0 .long LBB0_12-Ltmp0 .long LBB0_12-Ltmp0 .long LBB0_8-Ltmp0 .long LBB0_12-Ltmp0 .long LBB0_12-Ltmp0 .long LBB0_12-Ltmp0 .long LBB0_9-Ltmp0 ; -- End function .globl _readlines ; -- Begin function readlines .p2align 2 _readlines: ; @readlines .cfi_startproc ; %bb.0: stp x28, x27, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w27, -24 .cfi_offset w28, -32 sub sp, sp, #1056 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] str x0, [sp, #32] str w1, [sp, #28] str wzr, [sp, #20] b LBB1_1 LBB1_1: ; =>This Inner Loop Header: Depth=1 add x0, sp, #48 mov w1, #1000 bl _get_line str w0, [sp, #24] subs w8, w0, #0 cset w8, le tbnz w8, #0, LBB1_7 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #20] mov w9, #5000 subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_4 b LBB1_3 LBB1_3: ; in Loop: Header=BB1_1 Depth=1 ldr w0, [sp, #24] bl _alloc mov x8, x0 str x8, [sp, #8] subs x8, x0, #0 cset w8, ne tbnz w8, #0, LBB1_5 b LBB1_4 LBB1_4: mov w8, #-1 str w8, [sp, #44] b LBB1_8 LBB1_5: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #24] subs w8, w8, #1 add x1, sp, #48 add x8, x1, w8, sxtw strb wzr, [x8] ldr x0, [sp, #8] mov x2, #-1 bl ___strcpy_chk ldr x8, [sp, #8] ldr x9, [sp, #32] ldrsw x10, [sp, #20] mov x11, x10 add w11, w11, #1 str w11, [sp, #20] str x8, [x9, x10, lsl #3] b LBB1_6 LBB1_6: ; in Loop: Header=BB1_1 Depth=1 b LBB1_1 LBB1_7: ldr w8, [sp, #20] str w8, [sp, #44] b LBB1_8 LBB1_8: 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, LBB1_10 b LBB1_9 LBB1_9: bl ___stack_chk_fail LBB1_10: ldr w0, [sp, #4] ; 4-byte Folded Reload add sp, sp, #1056 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x28, x27, [sp], #32 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .globl _q_sort ; -- Begin function q_sort .p2align 2 _q_sort: ; @q_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] stur w1, [x29, #-12] str w2, [sp, #16] str x3, [sp, #8] ldur w8, [x29, #-12] ldr w9, [sp, #16] subs w8, w8, w9 cset w8, lt tbnz w8, #0, LBB2_2 b LBB2_1 LBB2_1: b LBB2_9 LBB2_2: ldur x0, [x29, #-8] ldur w1, [x29, #-12] ldur w8, [x29, #-12] ldr w9, [sp, #16] add w8, w8, w9 mov w9, #2 sdiv w2, w8, w9 bl _swap ldur w8, [x29, #-12] str w8, [sp] ldur w8, [x29, #-12] add w8, w8, #1 str w8, [sp, #4] b LBB2_3 LBB2_3: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #4] ldr w9, [sp, #16] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB2_8 b LBB2_4 LBB2_4: ; in Loop: Header=BB2_3 Depth=1 ldr x8, [sp, #8] ldur x9, [x29, #-8] ldrsw x10, [sp, #4] ldr x0, [x9, x10, lsl #3] ldur x9, [x29, #-8] ldursw x10, [x29, #-12] ldr x1, [x9, x10, lsl #3] blr x8 subs w8, w0, #0 cset w8, ge tbnz w8, #0, LBB2_6 b LBB2_5 LBB2_5: ; in Loop: Header=BB2_3 Depth=1 ldur x0, [x29, #-8] ldr w8, [sp] add w1, w8, #1 str w1, [sp] ldr w2, [sp, #4] bl _swap b LBB2_6 LBB2_6: ; in Loop: Header=BB2_3 Depth=1 b LBB2_7 LBB2_7: ; in Loop: Header=BB2_3 Depth=1 ldr w8, [sp, #4] add w8, w8, #1 str w8, [sp, #4] b LBB2_3 LBB2_8: ldur x0, [x29, #-8] ldur w1, [x29, #-12] ldr w2, [sp] bl _swap ldur x0, [x29, #-8] ldur w1, [x29, #-12] ldr w8, [sp] subs w2, w8, #1 ldr x3, [sp, #8] bl _q_sort ldur x0, [x29, #-8] ldr w8, [sp] add w1, w8, #1 ldr w2, [sp, #16] ldr x3, [sp, #8] bl _q_sort b LBB2_9 LBB2_9: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _numcmp ; -- Begin function numcmp .p2align 2 _numcmp: ; @numcmp .cfi_startproc ; %bb.0: sub sp, sp, #176 .cfi_def_cfa_offset 176 stp x29, x30, [sp, #160] ; 16-byte Folded Spill add x29, sp, #160 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] str x0, [sp, #40] str x1, [sp, #32] ldr x0, [sp, #40] add x1, sp, #52 str x1, [sp, #8] ; 8-byte Folded Spill bl _substring ldr x0, [sp, #8] ; 8-byte Folded Reload bl _atof ldr x1, [sp, #8] ; 8-byte Folded Reload str d0, [sp, #24] ldr x0, [sp, #32] bl _substring ldr x0, [sp, #8] ; 8-byte Folded Reload bl _atof str d0, [sp, #16] ldr d0, [sp, #24] ldr d1, [sp, #16] fcmp d0, d1 cset w8, pl tbnz w8, #0, LBB3_2 b LBB3_1 LBB3_1: mov w8, #-1 str w8, [sp, #48] b LBB3_5 LBB3_2: ldr d0, [sp, #24] ldr d1, [sp, #16] fcmp d0, d1 cset w8, le tbnz w8, #0, LBB3_4 b LBB3_3 LBB3_3: mov w8, #1 str w8, [sp, #48] b LBB3_5 LBB3_4: str wzr, [sp, #48] b LBB3_5 LBB3_5: ldr w8, [sp, #48] 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_7 b LBB3_6 LBB3_6: bl ___stack_chk_fail LBB3_7: ldr w0, [sp, #4] ; 4-byte Folded Reload ldp x29, x30, [sp, #160] ; 16-byte Folded Reload add sp, sp, #176 ret .cfi_endproc ; -- End function .globl _strdfcmp ; -- Begin function strdfcmp .p2align 2 _strdfcmp: ; @strdfcmp .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] adrp x8, _pos1@PAGE ldr w8, [x8, _pos1@PAGEOFF] str w8, [sp, #32] stur w8, [x29, #-28] adrp x8, _pos2@PAGE ldr w8, [x8, _pos2@PAGEOFF] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB4_2 b LBB4_1 LBB4_1: adrp x8, _pos2@PAGE ldr w8, [x8, _pos2@PAGEOFF] str w8, [sp, #28] b LBB4_5 LBB4_2: ldur x0, [x29, #-16] bl _strlen mov x8, x0 str w8, [sp, #28] mov x8, x0 str w8, [sp, #20] ; 4-byte Folded Spill ldur x0, [x29, #-24] bl _strlen ldr w8, [sp, #20] ; 4-byte Folded Reload subs x8, x0, w8, sxtw cset w8, hs tbnz w8, #0, LBB4_4 b LBB4_3 LBB4_3: ldur x0, [x29, #-24] bl _strlen mov x8, x0 str w8, [sp, #28] b LBB4_4 LBB4_4: b LBB4_5 LBB4_5: b LBB4_6 LBB4_6: ; =>This Loop Header: Depth=1 ; Child Loop BB4_7 Depth 2 ; Child Loop BB4_14 Depth 2 b LBB4_7 LBB4_7: ; Parent Loop BB4_6 Depth=1 ; => This Inner Loop Header: Depth=2 ldur w8, [x29, #-28] ldr w9, [sp, #28] subs w8, w8, w9 cset w8, ge mov w9, #0 str w9, [sp, #16] ; 4-byte Folded Spill tbnz w8, #0, LBB4_11 b LBB4_8 LBB4_8: ; in Loop: Header=BB4_7 Depth=2 ldur x8, [x29, #-16] ldrsb w0, [x8] bl _isalnum subs w8, w0, #0 cset w8, ne mov w9, #0 str w9, [sp, #16] ; 4-byte Folded Spill tbnz w8, #0, LBB4_11 b LBB4_9 LBB4_9: ; in Loop: Header=BB4_7 Depth=2 ldur x8, [x29, #-16] ldrsb w8, [x8] subs w8, w8, #32 cset w8, eq mov w9, #0 str w9, [sp, #16] ; 4-byte Folded Spill tbnz w8, #0, LBB4_11 b LBB4_10 LBB4_10: ; in Loop: Header=BB4_7 Depth=2 ldur x8, [x29, #-16] ldrsb w8, [x8] subs w8, w8, #0 cset w8, ne str w8, [sp, #16] ; 4-byte Folded Spill b LBB4_11 LBB4_11: ; in Loop: Header=BB4_7 Depth=2 ldr w8, [sp, #16] ; 4-byte Folded Reload tbz w8, #0, LBB4_13 b LBB4_12 LBB4_12: ; in Loop: Header=BB4_7 Depth=2 ldur x8, [x29, #-16] add x8, x8, #1 stur x8, [x29, #-16] b LBB4_7 LBB4_13: ; in Loop: Header=BB4_6 Depth=1 b LBB4_14 LBB4_14: ; Parent Loop BB4_6 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #32] ldr w9, [sp, #28] subs w8, w8, w9 cset w8, ge mov w9, #0 str w9, [sp, #12] ; 4-byte Folded Spill tbnz w8, #0, LBB4_18 b LBB4_15 LBB4_15: ; in Loop: Header=BB4_14 Depth=2 ldur x8, [x29, #-24] ldrsb w0, [x8] bl _isalnum subs w8, w0, #0 cset w8, ne mov w9, #0 str w9, [sp, #12] ; 4-byte Folded Spill tbnz w8, #0, LBB4_18 b LBB4_16 LBB4_16: ; in Loop: Header=BB4_14 Depth=2 ldur x8, [x29, #-24] ldrsb w8, [x8] subs w8, w8, #32 cset w8, eq mov w9, #0 str w9, [sp, #12] ; 4-byte Folded Spill tbnz w8, #0, LBB4_18 b LBB4_17 LBB4_17: ; in Loop: Header=BB4_14 Depth=2 ldur x8, [x29, #-24] ldrsb w8, [x8] subs w8, w8, #0 cset w8, ne str w8, [sp, #12] ; 4-byte Folded Spill b LBB4_18 LBB4_18: ; in Loop: Header=BB4_14 Depth=2 ldr w8, [sp, #12] ; 4-byte Folded Reload tbz w8, #0, LBB4_20 b LBB4_19 LBB4_19: ; in Loop: Header=BB4_14 Depth=2 ldur x8, [x29, #-24] add x8, x8, #1 stur x8, [x29, #-24] b LBB4_14 LBB4_20: ; in Loop: Header=BB4_6 Depth=1 ldur w8, [x29, #-28] ldr w9, [sp, #28] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB4_26 b LBB4_21 LBB4_21: ; in Loop: Header=BB4_6 Depth=1 ldr w8, [sp, #32] ldr w9, [sp, #28] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB4_26 b LBB4_22 LBB4_22: ; in Loop: Header=BB4_6 Depth=1 ldur x8, [x29, #-16] ldrsb w0, [x8] bl _tolower strb w0, [sp, #27] ldur x8, [x29, #-16] add x8, x8, #1 stur x8, [x29, #-16] ldur x8, [x29, #-24] ldrsb w0, [x8] bl _tolower strb w0, [sp, #26] ldur x8, [x29, #-24] add x8, x8, #1 stur x8, [x29, #-24] ldrsb w8, [sp, #27] ldrsb w9, [sp, #26] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB4_25 b LBB4_23 LBB4_23: ; in Loop: Header=BB4_6 Depth=1 ldrsb w8, [sp, #27] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB4_25 b LBB4_24 LBB4_24: stur wzr, [x29, #-4] b LBB4_32 LBB4_25: ; in Loop: Header=BB4_6 Depth=1 b LBB4_26 LBB4_26: ; in Loop: Header=BB4_6 Depth=1 b LBB4_27 LBB4_27: ; in Loop: Header=BB4_6 Depth=1 ldrsb w8, [sp, #27] ldrsb w9, [sp, #26] subs w8, w8, w9 cset w8, ne mov w9, #0 str w9, [sp, #8] ; 4-byte Folded Spill tbnz w8, #0, LBB4_30 b LBB4_28 LBB4_28: ; in Loop: Header=BB4_6 Depth=1 ldur w8, [x29, #-28] ldr w9, [sp, #28] subs w8, w8, w9 cset w8, ge mov w9, #0 str w9, [sp, #8] ; 4-byte Folded Spill tbnz w8, #0, LBB4_30 b LBB4_29 LBB4_29: ; in Loop: Header=BB4_6 Depth=1 ldr w8, [sp, #32] ldr w9, [sp, #28] subs w8, w8, w9 cset w8, lt str w8, [sp, #8] ; 4-byte Folded Spill b LBB4_30 LBB4_30: ; in Loop: Header=BB4_6 Depth=1 ldr w8, [sp, #8] ; 4-byte Folded Reload tbnz w8, #0, LBB4_6 b LBB4_31 LBB4_31: ldrsb w8, [sp, #27] ldrsb w9, [sp, #26] subs w8, w8, w9 stur w8, [x29, #-4] b LBB4_32 LBB4_32: ldur w0, [x29, #-4] ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .globl _strdcmp ; -- Begin function strdcmp .p2align 2 _strdcmp: ; @strdcmp .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] adrp x8, _pos1@PAGE ldr w8, [x8, _pos1@PAGEOFF] str w8, [sp, #32] stur w8, [x29, #-28] adrp x8, _pos2@PAGE ldr w8, [x8, _pos2@PAGEOFF] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB5_2 b LBB5_1 LBB5_1: adrp x8, _pos2@PAGE ldr w8, [x8, _pos2@PAGEOFF] str w8, [sp, #28] b LBB5_5 LBB5_2: ldur x0, [x29, #-16] bl _strlen mov x8, x0 str w8, [sp, #28] mov x8, x0 str w8, [sp, #20] ; 4-byte Folded Spill ldur x0, [x29, #-24] bl _strlen ldr w8, [sp, #20] ; 4-byte Folded Reload subs x8, x0, w8, sxtw cset w8, hs tbnz w8, #0, LBB5_4 b LBB5_3 LBB5_3: ldur x0, [x29, #-24] bl _strlen mov x8, x0 str w8, [sp, #28] b LBB5_4 LBB5_4: b LBB5_5 LBB5_5: b LBB5_6 LBB5_6: ; =>This Loop Header: Depth=1 ; Child Loop BB5_7 Depth 2 ; Child Loop BB5_14 Depth 2 b LBB5_7 LBB5_7: ; Parent Loop BB5_6 Depth=1 ; => This Inner Loop Header: Depth=2 ldur w8, [x29, #-28] ldr w9, [sp, #28] subs w8, w8, w9 cset w8, ge mov w9, #0 str w9, [sp, #16] ; 4-byte Folded Spill tbnz w8, #0, LBB5_11 b LBB5_8 LBB5_8: ; in Loop: Header=BB5_7 Depth=2 ldur x8, [x29, #-16] ldrsb w0, [x8] bl _isalnum subs w8, w0, #0 cset w8, ne mov w9, #0 str w9, [sp, #16] ; 4-byte Folded Spill tbnz w8, #0, LBB5_11 b LBB5_9 LBB5_9: ; in Loop: Header=BB5_7 Depth=2 ldur x8, [x29, #-16] ldrsb w8, [x8] subs w8, w8, #32 cset w8, eq mov w9, #0 str w9, [sp, #16] ; 4-byte Folded Spill tbnz w8, #0, LBB5_11 b LBB5_10 LBB5_10: ; in Loop: Header=BB5_7 Depth=2 ldur x8, [x29, #-16] ldrsb w8, [x8] subs w8, w8, #0 cset w8, ne str w8, [sp, #16] ; 4-byte Folded Spill b LBB5_11 LBB5_11: ; in Loop: Header=BB5_7 Depth=2 ldr w8, [sp, #16] ; 4-byte Folded Reload tbz w8, #0, LBB5_13 b LBB5_12 LBB5_12: ; in Loop: Header=BB5_7 Depth=2 ldur x8, [x29, #-16] add x8, x8, #1 stur x8, [x29, #-16] b LBB5_7 LBB5_13: ; in Loop: Header=BB5_6 Depth=1 b LBB5_14 LBB5_14: ; Parent Loop BB5_6 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #32] ldr w9, [sp, #28] subs w8, w8, w9 cset w8, ge mov w9, #0 str w9, [sp, #12] ; 4-byte Folded Spill tbnz w8, #0, LBB5_18 b LBB5_15 LBB5_15: ; in Loop: Header=BB5_14 Depth=2 ldur x8, [x29, #-24] ldrsb w0, [x8] bl _isalnum subs w8, w0, #0 cset w8, ne mov w9, #0 str w9, [sp, #12] ; 4-byte Folded Spill tbnz w8, #0, LBB5_18 b LBB5_16 LBB5_16: ; in Loop: Header=BB5_14 Depth=2 ldur x8, [x29, #-24] ldrsb w8, [x8] subs w8, w8, #32 cset w8, eq mov w9, #0 str w9, [sp, #12] ; 4-byte Folded Spill tbnz w8, #0, LBB5_18 b LBB5_17 LBB5_17: ; in Loop: Header=BB5_14 Depth=2 ldur x8, [x29, #-24] ldrsb w8, [x8] subs w8, w8, #0 cset w8, ne str w8, [sp, #12] ; 4-byte Folded Spill b LBB5_18 LBB5_18: ; in Loop: Header=BB5_14 Depth=2 ldr w8, [sp, #12] ; 4-byte Folded Reload tbz w8, #0, LBB5_20 b LBB5_19 LBB5_19: ; in Loop: Header=BB5_14 Depth=2 ldur x8, [x29, #-24] add x8, x8, #1 stur x8, [x29, #-24] b LBB5_14 LBB5_20: ; in Loop: Header=BB5_6 Depth=1 ldur w8, [x29, #-28] ldr w9, [sp, #28] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB5_26 b LBB5_21 LBB5_21: ; in Loop: Header=BB5_6 Depth=1 ldr w8, [sp, #32] ldr w9, [sp, #28] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB5_26 b LBB5_22 LBB5_22: ; in Loop: Header=BB5_6 Depth=1 ldur x8, [x29, #-16] ldrb w8, [x8] strb w8, [sp, #27] ldur x8, [x29, #-16] add x8, x8, #1 stur x8, [x29, #-16] ldur x8, [x29, #-24] ldrb w8, [x8] strb w8, [sp, #26] ldur x8, [x29, #-24] add x8, x8, #1 stur x8, [x29, #-24] ldrsb w8, [sp, #27] ldrsb w9, [sp, #26] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB5_25 b LBB5_23 LBB5_23: ; in Loop: Header=BB5_6 Depth=1 ldrsb w8, [sp, #27] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB5_25 b LBB5_24 LBB5_24: stur wzr, [x29, #-4] b LBB5_32 LBB5_25: ; in Loop: Header=BB5_6 Depth=1 b LBB5_26 LBB5_26: ; in Loop: Header=BB5_6 Depth=1 b LBB5_27 LBB5_27: ; in Loop: Header=BB5_6 Depth=1 ldrsb w8, [sp, #27] ldrsb w9, [sp, #26] subs w8, w8, w9 cset w8, ne mov w9, #0 str w9, [sp, #8] ; 4-byte Folded Spill tbnz w8, #0, LBB5_30 b LBB5_28 LBB5_28: ; in Loop: Header=BB5_6 Depth=1 ldur w8, [x29, #-28] ldr w9, [sp, #28] subs w8, w8, w9 cset w8, ge mov w9, #0 str w9, [sp, #8] ; 4-byte Folded Spill tbnz w8, #0, LBB5_30 b LBB5_29 LBB5_29: ; in Loop: Header=BB5_6 Depth=1 ldr w8, [sp, #32] ldr w9, [sp, #28] subs w8, w8, w9 cset w8, lt str w8, [sp, #8] ; 4-byte Folded Spill b LBB5_30 LBB5_30: ; in Loop: Header=BB5_6 Depth=1 ldr w8, [sp, #8] ; 4-byte Folded Reload tbnz w8, #0, LBB5_6 b LBB5_31 LBB5_31: ldrsb w8, [sp, #27] ldrsb w9, [sp, #26] subs w8, w8, w9 stur w8, [x29, #-4] b LBB5_32 LBB5_32: ldur w0, [x29, #-4] ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .globl _strfcmp ; -- Begin function strfcmp .p2align 2 _strfcmp: ; @strfcmp .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] adrp x8, _pos1@PAGE ldr w8, [x8, _pos1@PAGEOFF] str w8, [sp, #32] stur w8, [x29, #-28] adrp x8, _pos2@PAGE ldr w8, [x8, _pos2@PAGEOFF] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB6_2 b LBB6_1 LBB6_1: adrp x8, _pos2@PAGE ldr w8, [x8, _pos2@PAGEOFF] str w8, [sp, #28] b LBB6_5 LBB6_2: ldur x0, [x29, #-16] bl _strlen mov x8, x0 str w8, [sp, #28] mov x8, x0 str w8, [sp, #24] ; 4-byte Folded Spill ldur x0, [x29, #-24] bl _strlen ldr w8, [sp, #24] ; 4-byte Folded Reload subs x8, x0, w8, sxtw cset w8, hs tbnz w8, #0, LBB6_4 b LBB6_3 LBB6_3: ldur x0, [x29, #-24] bl _strlen mov x8, x0 str w8, [sp, #28] b LBB6_4 LBB6_4: b LBB6_5 LBB6_5: b LBB6_6 LBB6_6: ; =>This Inner Loop Header: Depth=1 ldur x8, [x29, #-16] ldursw x9, [x29, #-28] ldrsb w0, [x8, x9] bl _tolower str w0, [sp, #16] ; 4-byte Folded Spill ldur x8, [x29, #-24] ldrsw x9, [sp, #32] ldrsb w0, [x8, x9] bl _tolower mov x8, x0 ldr w0, [sp, #16] ; 4-byte Folded Reload subs w8, w0, w8 cset w8, ne mov w9, #0 str w9, [sp, #20] ; 4-byte Folded Spill tbnz w8, #0, LBB6_9 b LBB6_7 LBB6_7: ; in Loop: Header=BB6_6 Depth=1 ldur w8, [x29, #-28] ldr w9, [sp, #28] subs w8, w8, w9 cset w8, ge mov w9, #0 str w9, [sp, #20] ; 4-byte Folded Spill tbnz w8, #0, LBB6_9 b LBB6_8 LBB6_8: ; in Loop: Header=BB6_6 Depth=1 ldr w8, [sp, #32] ldr w9, [sp, #28] subs w8, w8, w9 cset w8, lt str w8, [sp, #20] ; 4-byte Folded Spill b LBB6_9 LBB6_9: ; in Loop: Header=BB6_6 Depth=1 ldr w8, [sp, #20] ; 4-byte Folded Reload tbz w8, #0, LBB6_14 b LBB6_10 LBB6_10: ; in Loop: Header=BB6_6 Depth=1 ldur x8, [x29, #-16] ldursw x9, [x29, #-28] ldrsb w8, [x8, x9] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB6_12 b LBB6_11 LBB6_11: stur wzr, [x29, #-4] b LBB6_15 LBB6_12: ; in Loop: Header=BB6_6 Depth=1 b LBB6_13 LBB6_13: ; in Loop: Header=BB6_6 Depth=1 ldur w8, [x29, #-28] add w8, w8, #1 stur w8, [x29, #-28] ldr w8, [sp, #32] add w8, w8, #1 str w8, [sp, #32] b LBB6_6 LBB6_14: ldur x8, [x29, #-16] ldursw x9, [x29, #-28] ldrsb w0, [x8, x9] bl _tolower str w0, [sp, #12] ; 4-byte Folded Spill ldur x8, [x29, #-24] ldrsw x9, [sp, #32] ldrsb w0, [x8, x9] bl _tolower mov x8, x0 ldr w0, [sp, #12] ; 4-byte Folded Reload subs w8, w0, w8 stur w8, [x29, #-4] b LBB6_15 LBB6_15: ldur w0, [x29, #-4] ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .globl _writelines ; -- Begin function writelines .p2align 2 _writelines: ; @writelines .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] stur w1, [x29, #-12] str w2, [sp, #16] ldr w8, [sp, #16] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB7_6 b LBB7_1 LBB7_1: ldur w8, [x29, #-12] subs w8, w8, #1 str w8, [sp, #12] b LBB7_2 LBB7_2: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #12] subs w8, w8, #0 cset w8, lt tbnz w8, #0, LBB7_5 b LBB7_3 LBB7_3: ; in Loop: Header=BB7_2 Depth=1 ldur x8, [x29, #-8] ldrsw x9, [sp, #12] ldr x8, [x8, x9, lsl #3] mov x9, sp str x8, [x9] adrp x0, l_.str.13@PAGE add x0, x0, l_.str.13@PAGEOFF bl _printf b LBB7_4 LBB7_4: ; in Loop: Header=BB7_2 Depth=1 ldr w8, [sp, #12] subs w8, w8, #1 str w8, [sp, #12] b LBB7_2 LBB7_5: b LBB7_11 LBB7_6: str wzr, [sp, #12] b LBB7_7 LBB7_7: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #12] ldur w9, [x29, #-12] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB7_10 b LBB7_8 LBB7_8: ; in Loop: Header=BB7_7 Depth=1 ldur x8, [x29, #-8] ldrsw x9, [sp, #12] ldr x8, [x8, x9, lsl #3] mov x9, sp str x8, [x9] adrp x0, l_.str.13@PAGE add x0, x0, l_.str.13@PAGEOFF bl _printf b LBB7_9 LBB7_9: ; in Loop: Header=BB7_7 Depth=1 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB7_7 LBB7_10: b LBB7_11 LBB7_11: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _swap ; -- Begin function swap .p2align 2 _swap: ; @swap .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, #24] str 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 _substring ; -- Begin function substring .p2align 2 _substring: ; @substring .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] stur x1, [x29, #-16] ldur x0, [x29, #-8] bl _strlen mov x8, x0 str w8, [sp, #20] adrp x8, _pos2@PAGE ldr w8, [x8, _pos2@PAGEOFF] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB9_3 b LBB9_1 LBB9_1: adrp x8, _pos2@PAGE ldr w8, [x8, _pos2@PAGEOFF] ldr w9, [sp, #20] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB9_3 b LBB9_2 LBB9_2: adrp x8, _pos2@PAGE ldr w8, [x8, _pos2@PAGEOFF] str w8, [sp, #20] b LBB9_3 LBB9_3: adrp x8, _pos2@PAGE ldr w8, [x8, _pos2@PAGEOFF] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB9_6 b LBB9_4 LBB9_4: ldr w8, [sp, #20] adrp x9, _pos2@PAGE ldr w9, [x9, _pos2@PAGEOFF] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB9_6 b LBB9_5 LBB9_5: ldur x8, [x29, #-8] mov x9, sp str x8, [x9] adrp x0, l_.str.12@PAGE add x0, x0, l_.str.12@PAGEOFF bl _printf b LBB9_6 LBB9_6: str wzr, [sp, #24] adrp x8, _pos1@PAGE ldr w8, [x8, _pos1@PAGEOFF] stur w8, [x29, #-20] b LBB9_7 LBB9_7: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-20] ldr w9, [sp, #20] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB9_10 b LBB9_8 LBB9_8: ; in Loop: Header=BB9_7 Depth=1 ldur x8, [x29, #-8] ldursw x9, [x29, #-20] add x8, x8, x9 ldrb w8, [x8] ldur x9, [x29, #-16] ldrsw x10, [sp, #24] add x9, x9, x10 strb w8, [x9] b LBB9_9 LBB9_9: ; in Loop: Header=BB9_7 Depth=1 ldur w8, [x29, #-20] add w8, w8, #1 stur w8, [x29, #-20] ldr w8, [sp, #24] add w8, w8, #1 str w8, [sp, #24] b LBB9_7 LBB9_10: ldur x8, [x29, #-16] ldrsw x9, [sp, #24] add x8, x8, x9 strb wzr, [x8] ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _get_line ; -- Begin function get_line .p2align 2 _get_line: ; @get_line .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] stur w1, [x29, #-12] str wzr, [sp, #12] b LBB10_1 LBB10_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #12] ldur w9, [x29, #-12] subs w9, w9, #1 subs w8, w8, w9 cset w8, ge mov w9, #0 str w9, [sp, #8] ; 4-byte Folded Spill tbnz w8, #0, LBB10_4 b LBB10_2 LBB10_2: ; in Loop: Header=BB10_1 Depth=1 bl _getchar str w0, [sp, #16] adds w8, w0, #1 cset w8, eq mov w9, #0 str w9, [sp, #8] ; 4-byte Folded Spill tbnz w8, #0, LBB10_4 b LBB10_3 LBB10_3: ; in Loop: Header=BB10_1 Depth=1 ldr w8, [sp, #16] subs w8, w8, #10 cset w8, ne str w8, [sp, #8] ; 4-byte Folded Spill b LBB10_4 LBB10_4: ; in Loop: Header=BB10_1 Depth=1 ldr w8, [sp, #8] ; 4-byte Folded Reload tbz w8, #0, LBB10_7 b LBB10_5 LBB10_5: ; in Loop: Header=BB10_1 Depth=1 ldr w8, [sp, #16] ldur x9, [x29, #-8] ldrsw x10, [sp, #12] strb w8, [x9, x10] b LBB10_6 LBB10_6: ; in Loop: Header=BB10_1 Depth=1 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB10_1 LBB10_7: ldr w8, [sp, #16] subs w8, w8, #10 cset w8, ne tbnz w8, #0, LBB10_9 b LBB10_8 LBB10_8: ldr w8, [sp, #16] ldur x9, [x29, #-8] ldrsw x10, [sp, #12] mov x11, x10 add w11, w11, #1 str w11, [sp, #12] strb w8, [x9, x10] b LBB10_9 LBB10_9: ldur x8, [x29, #-8] ldrsw x9, [sp, #12] add x8, x8, x9 strb wzr, [x8] ldr w0, [sp, #12] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _alloc ; -- Begin function alloc .p2align 2 _alloc: ; @alloc .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 mov x9, #10000 adrp x8, _allocbuf@PAGE add x8, x8, _allocbuf@PAGEOFF add x8, x8, x9 str w0, [sp, #4] adrp x9, _allocp@PAGE ldr x9, [x9, _allocp@PAGEOFF] subs x8, x8, x9 ldrsw x9, [sp, #4] subs x8, x8, x9 cset w8, lt tbnz w8, #0, LBB11_2 b LBB11_1 LBB11_1: ldrsw x10, [sp, #4] adrp x8, _allocp@PAGE ldr x9, [x8, _allocp@PAGEOFF] add x9, x9, x10 str x9, [x8, _allocp@PAGEOFF] ldr x8, [x8, _allocp@PAGEOFF] ldrsw x9, [sp, #4] subs x8, x8, x9 str x8, [sp, #8] b LBB11_3 LBB11_2: ; kill: def $x8 killed $xzr str xzr, [sp, #8] b LBB11_3 LBB11_3: ldr x0, [sp, #8] add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _afree ; -- Begin function afree .p2align 2 _afree: ; @afree .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 mov x10, #10000 adrp x9, _allocbuf@PAGE add x9, x9, _allocbuf@PAGEOFF mov x8, x9 add x8, x8, x10 str x8, [sp] ; 8-byte Folded Spill str x0, [sp, #8] ldr x8, [sp, #8] subs x8, x8, x9 cset w8, lo tbnz w8, #0, LBB12_3 b LBB12_1 LBB12_1: ldr x9, [sp] ; 8-byte Folded Reload ldr x8, [sp, #8] subs x8, x8, x9 cset w8, hs tbnz w8, #0, LBB12_3 b LBB12_2 LBB12_2: ldr x8, [sp, #8] adrp x9, _allocp@PAGE str x8, [x9, _allocp@PAGEOFF] b LBB12_3 LBB12_3: add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _pos1 ; @pos1 .zerofill __DATA,__common,_pos1,4,2 .globl _pos2 ; @pos2 .zerofill __DATA,__common,_pos2,4,2 .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Illegal option: %c\n" l_.str.1: ; @.str.1 .asciz "Usage: sort -n -r -f [begin] [end]\n" l_.str.2: ; @.str.2 .asciz "begin must not be greater than end\n" l_.str.3: ; @.str.3 .asciz "Numerical sort\n" l_.str.4: ; @.str.4 .asciz "Lexicographic sort\n" l_.str.5: ; @.str.5 .asciz "Reverse sort\n" l_.str.6: ; @.str.6 .asciz "Normal sort\n" l_.str.7: ; @.str.7 .asciz "Case insensitive\n" l_.str.8: ; @.str.8 .asciz "Case sensitive\n" l_.str.9: ; @.str.9 .asciz "Directory order\n" l_.str.10: ; @.str.10 .space 1 .comm _lineptr,40000,3 ; @lineptr l_.str.11: ; @.str.11 .asciz "input too big to sort\n" l_.str.12: ; @.str.12 .asciz "error: string %s is too short\n" l_.str.13: ; @.str.13 .asciz "%s\n" .zerofill __DATA,__bss,_allocbuf,10000,0 ; @allocbuf .section __DATA,__data .p2align 3 ; @allocp _allocp: .quad _allocbuf .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $64, %rsp movl $0, -4(%rbp) movl %edi, -8(%rbp) movq %rsi, -16(%rbp) movl $0, -24(%rbp) movl $0, -28(%rbp) movl $0, -32(%rbp) movl $0, -36(%rbp) LBB0_1: ## =>This Loop Header: Depth=1 ## Child Loop BB0_5 Depth 2 movl -8(%rbp), %ecx addl $-1, %ecx movl %ecx, -8(%rbp) xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $0, %ecx movb %al, -41(%rbp) ## 1-byte Spill jle LBB0_3 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movq -16(%rbp), %rax movq %rax, %rcx addq $8, %rcx movq %rcx, -16(%rbp) movq 8(%rax), %rax movsbl (%rax), %eax cmpl $45, %eax sete %al movb %al, -41(%rbp) ## 1-byte Spill LBB0_3: ## in Loop: Header=BB0_1 Depth=1 movb -41(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB0_4 jmp LBB0_14 LBB0_4: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_5 LBB0_5: ## Parent Loop BB0_1 Depth=1 ## => This Inner Loop Header: Depth=2 movq -16(%rbp), %rcx movq (%rcx), %rax movq %rax, %rdx addq $1, %rdx movq %rdx, (%rcx) movsbl 1(%rax), %eax movl %eax, -40(%rbp) cmpl $0, %eax je LBB0_13 ## %bb.6: ## in Loop: Header=BB0_5 Depth=2 movl -40(%rbp), %eax addl $-100, %eax movl %eax, %ecx movq %rcx, -56(%rbp) ## 8-byte Spill subl $14, %eax ja LBB0_11 ## %bb.40: ## in Loop: Header=BB0_5 Depth=2 movq -56(%rbp), %rax ## 8-byte Reload leaq LJTI0_0(%rip), %rcx movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax LBB0_7: ## in Loop: Header=BB0_5 Depth=2 movl $1, -24(%rbp) jmp LBB0_12 LBB0_8: ## in Loop: Header=BB0_5 Depth=2 movl $1, -28(%rbp) jmp LBB0_12 LBB0_9: ## in Loop: Header=BB0_5 Depth=2 movl $1, -32(%rbp) jmp LBB0_12 LBB0_10: ## in Loop: Header=BB0_5 Depth=2 movl $1, -36(%rbp) jmp LBB0_12 LBB0_11: ## in Loop: Header=BB0_5 Depth=2 movl -40(%rbp), %esi leaq L_.str(%rip), %rdi movb $0, %al callq _printf LBB0_12: ## in Loop: Header=BB0_5 Depth=2 jmp LBB0_5 LBB0_13: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_1 LBB0_14: cmpl $0, -8(%rbp) jle LBB0_17 ## %bb.15: movq -16(%rbp), %rax movq (%rax), %rax movsbl (%rax), %edi callq _isdigit cmpl $0, %eax je LBB0_17 ## %bb.16: movq -16(%rbp), %rax movq (%rax), %rdi callq _atoi movl %eax, _pos1(%rip) movl -8(%rbp), %eax addl $-1, %eax movl %eax, -8(%rbp) movq -16(%rbp), %rax addq $8, %rax movq %rax, -16(%rbp) LBB0_17: cmpl $0, -8(%rbp) jle LBB0_20 ## %bb.18: movq -16(%rbp), %rax movq (%rax), %rax movsbl (%rax), %edi callq _isdigit cmpl $0, %eax je LBB0_20 ## %bb.19: movq -16(%rbp), %rax movq (%rax), %rdi callq _atoi movl %eax, _pos2(%rip) movl -8(%rbp), %eax addl $-1, %eax movl %eax, -8(%rbp) movq -16(%rbp), %rax addq $8, %rax movq %rax, -16(%rbp) LBB0_20: cmpl $0, -8(%rbp) je LBB0_22 ## %bb.21: leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf movl $1, -4(%rbp) jmp LBB0_39 LBB0_22: movl _pos1(%rip), %eax cmpl _pos2(%rip), %eax jle LBB0_24 ## %bb.23: leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf movl $1, -4(%rbp) jmp LBB0_39 LBB0_24: movl -24(%rbp), %ecx leaq L_.str.4(%rip), %rdi leaq L_.str.3(%rip), %rax cmpl $0, %ecx cmovneq %rax, %rdi movb $0, %al callq _printf movl -28(%rbp), %ecx leaq L_.str.6(%rip), %rdi leaq L_.str.5(%rip), %rax cmpl $0, %ecx cmovneq %rax, %rdi movb $0, %al callq _printf movl -32(%rbp), %ecx leaq L_.str.8(%rip), %rdi leaq L_.str.7(%rip), %rax cmpl $0, %ecx cmovneq %rax, %rdi movb $0, %al callq _printf movl -36(%rbp), %ecx leaq L_.str.10(%rip), %rdi leaq L_.str.9(%rip), %rax cmpl $0, %ecx cmovneq %rax, %rdi movb $0, %al callq _printf movq _lineptr@GOTPCREL(%rip), %rdi movl $5000, %esi ## imm = 0x1388 callq _readlines movl %eax, -20(%rbp) cmpl $0, %eax jle LBB0_38 ## %bb.25: cmpl $0, -24(%rbp) je LBB0_27 ## %bb.26: movl -20(%rbp), %edx subl $1, %edx movq _lineptr@GOTPCREL(%rip), %rdi xorl %esi, %esi leaq _numcmp(%rip), %rcx callq _q_sort jmp LBB0_37 LBB0_27: cmpl $0, -36(%rbp) je LBB0_32 ## %bb.28: cmpl $0, -32(%rbp) je LBB0_30 ## %bb.29: movl -20(%rbp), %edx subl $1, %edx movq _lineptr@GOTPCREL(%rip), %rdi xorl %esi, %esi leaq _strdfcmp(%rip), %rcx callq _q_sort jmp LBB0_31 LBB0_30: movl -20(%rbp), %edx subl $1, %edx movq _lineptr@GOTPCREL(%rip), %rdi xorl %esi, %esi leaq _strdcmp(%rip), %rcx callq _q_sort LBB0_31: jmp LBB0_36 LBB0_32: cmpl $0, -32(%rbp) je LBB0_34 ## %bb.33: movl -20(%rbp), %edx subl $1, %edx movq _lineptr@GOTPCREL(%rip), %rdi xorl %esi, %esi leaq _strfcmp(%rip), %rcx callq _q_sort jmp LBB0_35 LBB0_34: movl -20(%rbp), %edx subl $1, %edx movq _lineptr@GOTPCREL(%rip), %rdi xorl %esi, %esi movq _strcmp@GOTPCREL(%rip), %rcx callq _q_sort LBB0_35: jmp LBB0_36 LBB0_36: jmp LBB0_37 LBB0_37: movl -20(%rbp), %esi movl -28(%rbp), %edx movq _lineptr@GOTPCREL(%rip), %rdi callq _writelines movl $0, -4(%rbp) jmp LBB0_39 LBB0_38: leaq L_.str.11(%rip), %rdi movb $0, %al callq _printf movl $1, -4(%rbp) LBB0_39: movl -4(%rbp), %eax addq $64, %rsp popq %rbp retq .cfi_endproc .p2align 2, 0x90 .data_region jt32 .set L0_0_set_10, LBB0_10-LJTI0_0 .set L0_0_set_11, LBB0_11-LJTI0_0 .set L0_0_set_9, LBB0_9-LJTI0_0 .set L0_0_set_7, LBB0_7-LJTI0_0 .set L0_0_set_8, LBB0_8-LJTI0_0 LJTI0_0: .long L0_0_set_10 .long L0_0_set_11 .long L0_0_set_9 .long L0_0_set_11 .long L0_0_set_11 .long L0_0_set_11 .long L0_0_set_11 .long L0_0_set_11 .long L0_0_set_11 .long L0_0_set_11 .long L0_0_set_7 .long L0_0_set_11 .long L0_0_set_11 .long L0_0_set_11 .long L0_0_set_8 .end_data_region ## -- End function .globl _readlines ## -- Begin function readlines .p2align 4, 0x90 _readlines: ## @readlines .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $1056, %rsp ## imm = 0x420 movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movq %rdi, -1024(%rbp) movl %esi, -1028(%rbp) movl $0, -1036(%rbp) LBB1_1: ## =>This Inner Loop Header: Depth=1 leaq -1008(%rbp), %rdi movl $1000, %esi ## imm = 0x3E8 callq _get_line movl %eax, -1032(%rbp) cmpl $0, %eax jle LBB1_7 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 cmpl $5000, -1036(%rbp) ## imm = 0x1388 jge LBB1_4 ## %bb.3: ## in Loop: Header=BB1_1 Depth=1 movl -1032(%rbp), %edi callq _alloc movq %rax, -1048(%rbp) cmpq $0, %rax jne LBB1_5 LBB1_4: movl $-1, -1012(%rbp) jmp LBB1_8 LBB1_5: ## in Loop: Header=BB1_1 Depth=1 movl -1032(%rbp), %eax subl $1, %eax cltq movb $0, -1008(%rbp,%rax) movq -1048(%rbp), %rdi leaq -1008(%rbp), %rsi movq $-1, %rdx callq ___strcpy_chk movq -1048(%rbp), %rdx movq -1024(%rbp), %rax movl -1036(%rbp), %ecx movl %ecx, %esi addl $1, %esi movl %esi, -1036(%rbp) movslq %ecx, %rcx movq %rdx, (%rax,%rcx,8) ## %bb.6: ## in Loop: Header=BB1_1 Depth=1 jmp LBB1_1 LBB1_7: movl -1036(%rbp), %eax movl %eax, -1012(%rbp) LBB1_8: movl -1012(%rbp), %eax movl %eax, -1052(%rbp) ## 4-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB1_10 ## %bb.9: movl -1052(%rbp), %eax ## 4-byte Reload addq $1056, %rsp ## imm = 0x420 popq %rbp retq LBB1_10: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _q_sort ## -- Begin function q_sort .p2align 4, 0x90 _q_sort: ## @q_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) movl %esi, -12(%rbp) movl %edx, -16(%rbp) movq %rcx, -24(%rbp) movl -12(%rbp), %eax cmpl -16(%rbp), %eax jl LBB2_2 ## %bb.1: jmp LBB2_9 LBB2_2: movq -8(%rbp), %rdi movl -12(%rbp), %esi movl -12(%rbp), %eax addl -16(%rbp), %eax movl $2, %ecx cltd idivl %ecx movl %eax, %edx callq _swap movl -12(%rbp), %eax movl %eax, -32(%rbp) movl -12(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) LBB2_3: ## =>This Inner Loop Header: Depth=1 movl -28(%rbp), %eax cmpl -16(%rbp), %eax jg LBB2_8 ## %bb.4: ## in Loop: Header=BB2_3 Depth=1 movq -24(%rbp), %rax movq -8(%rbp), %rcx movslq -28(%rbp), %rdx movq (%rcx,%rdx,8), %rdi movq -8(%rbp), %rcx movslq -12(%rbp), %rdx movq (%rcx,%rdx,8), %rsi callq *%rax cmpl $0, %eax jge LBB2_6 ## %bb.5: ## in Loop: Header=BB2_3 Depth=1 movq -8(%rbp), %rdi movl -32(%rbp), %esi addl $1, %esi movl %esi, -32(%rbp) movl -28(%rbp), %edx callq _swap LBB2_6: ## in Loop: Header=BB2_3 Depth=1 jmp LBB2_7 LBB2_7: ## in Loop: Header=BB2_3 Depth=1 movl -28(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) jmp LBB2_3 LBB2_8: movq -8(%rbp), %rdi movl -12(%rbp), %esi movl -32(%rbp), %edx callq _swap movq -8(%rbp), %rdi movl -12(%rbp), %esi movl -32(%rbp), %edx subl $1, %edx movq -24(%rbp), %rcx callq _q_sort movq -8(%rbp), %rdi movl -32(%rbp), %esi addl $1, %esi movl -16(%rbp), %edx movq -24(%rbp), %rcx callq _q_sort LBB2_9: addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _numcmp ## -- Begin function numcmp .p2align 4, 0x90 _numcmp: ## @numcmp .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $160, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movq %rdi, -128(%rbp) movq %rsi, -136(%rbp) movq -128(%rbp), %rdi leaq -112(%rbp), %rsi callq _substring leaq -112(%rbp), %rdi callq _atof movsd %xmm0, -144(%rbp) movq -136(%rbp), %rdi leaq -112(%rbp), %rsi callq _substring leaq -112(%rbp), %rdi callq _atof movsd %xmm0, -152(%rbp) movsd -144(%rbp), %xmm1 ## xmm1 = mem[0],zero movsd -152(%rbp), %xmm0 ## xmm0 = mem[0],zero ucomisd %xmm1, %xmm0 jbe LBB3_2 ## %bb.1: movl $-1, -116(%rbp) jmp LBB3_5 LBB3_2: movsd -144(%rbp), %xmm0 ## xmm0 = mem[0],zero ucomisd -152(%rbp), %xmm0 jbe LBB3_4 ## %bb.3: movl $1, -116(%rbp) jmp LBB3_5 LBB3_4: movl $0, -116(%rbp) LBB3_5: movl -116(%rbp), %eax movl %eax, -156(%rbp) ## 4-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB3_7 ## %bb.6: movl -156(%rbp), %eax ## 4-byte Reload addq $160, %rsp popq %rbp retq LBB3_7: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _strdfcmp ## -- Begin function strdfcmp .p2align 4, 0x90 _strdfcmp: ## @strdfcmp .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 _pos1(%rip), %eax movl %eax, -32(%rbp) movl %eax, -28(%rbp) cmpl $0, _pos2(%rip) jle LBB4_2 ## %bb.1: movl _pos2(%rip), %eax movl %eax, -36(%rbp) jmp LBB4_5 LBB4_2: movq -16(%rbp), %rdi callq _strlen ## kill: def $eax killed $eax killed $rax movl %eax, -36(%rbp) cltq movq %rax, -48(%rbp) ## 8-byte Spill movq -24(%rbp), %rdi callq _strlen movq %rax, %rcx movq -48(%rbp), %rax ## 8-byte Reload cmpq %rcx, %rax jbe LBB4_4 ## %bb.3: movq -24(%rbp), %rdi callq _strlen ## kill: def $eax killed $eax killed $rax movl %eax, -36(%rbp) LBB4_4: jmp LBB4_5 LBB4_5: jmp LBB4_6 LBB4_6: ## =>This Loop Header: Depth=1 ## Child Loop BB4_7 Depth 2 ## Child Loop BB4_14 Depth 2 jmp LBB4_7 LBB4_7: ## Parent Loop BB4_6 Depth=1 ## => This Inner Loop Header: Depth=2 movl -28(%rbp), %ecx xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl -36(%rbp), %ecx movb %al, -49(%rbp) ## 1-byte Spill jge LBB4_11 ## %bb.8: ## in Loop: Header=BB4_7 Depth=2 movq -16(%rbp), %rax movsbl (%rax), %edi callq _isalnum movl %eax, %ecx xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $0, %ecx movb %al, -49(%rbp) ## 1-byte Spill jne LBB4_11 ## %bb.9: ## in Loop: Header=BB4_7 Depth=2 movq -16(%rbp), %rax movsbl (%rax), %ecx xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $32, %ecx movb %al, -49(%rbp) ## 1-byte Spill je LBB4_11 ## %bb.10: ## in Loop: Header=BB4_7 Depth=2 movq -16(%rbp), %rax movsbl (%rax), %eax cmpl $0, %eax setne %al movb %al, -49(%rbp) ## 1-byte Spill LBB4_11: ## in Loop: Header=BB4_7 Depth=2 movb -49(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB4_12 jmp LBB4_13 LBB4_12: ## in Loop: Header=BB4_7 Depth=2 movq -16(%rbp), %rax addq $1, %rax movq %rax, -16(%rbp) jmp LBB4_7 LBB4_13: ## in Loop: Header=BB4_6 Depth=1 jmp LBB4_14 LBB4_14: ## Parent Loop BB4_6 Depth=1 ## => This Inner Loop Header: Depth=2 movl -32(%rbp), %ecx xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl -36(%rbp), %ecx movb %al, -50(%rbp) ## 1-byte Spill jge LBB4_18 ## %bb.15: ## in Loop: Header=BB4_14 Depth=2 movq -24(%rbp), %rax movsbl (%rax), %edi callq _isalnum movl %eax, %ecx xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $0, %ecx movb %al, -50(%rbp) ## 1-byte Spill jne LBB4_18 ## %bb.16: ## in Loop: Header=BB4_14 Depth=2 movq -24(%rbp), %rax movsbl (%rax), %ecx xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $32, %ecx movb %al, -50(%rbp) ## 1-byte Spill je LBB4_18 ## %bb.17: ## in Loop: Header=BB4_14 Depth=2 movq -24(%rbp), %rax movsbl (%rax), %eax cmpl $0, %eax setne %al movb %al, -50(%rbp) ## 1-byte Spill LBB4_18: ## in Loop: Header=BB4_14 Depth=2 movb -50(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB4_19 jmp LBB4_20 LBB4_19: ## in Loop: Header=BB4_14 Depth=2 movq -24(%rbp), %rax addq $1, %rax movq %rax, -24(%rbp) jmp LBB4_14 LBB4_20: ## in Loop: Header=BB4_6 Depth=1 movl -28(%rbp), %eax cmpl -36(%rbp), %eax jge LBB4_26 ## %bb.21: ## in Loop: Header=BB4_6 Depth=1 movl -32(%rbp), %eax cmpl -36(%rbp), %eax jge LBB4_26 ## %bb.22: ## in Loop: Header=BB4_6 Depth=1 movq -16(%rbp), %rax movsbl (%rax), %edi callq _tolower ## kill: def $al killed $al killed $eax movb %al, -37(%rbp) movq -16(%rbp), %rax addq $1, %rax movq %rax, -16(%rbp) movq -24(%rbp), %rax movsbl (%rax), %edi callq _tolower ## kill: def $al killed $al killed $eax movb %al, -38(%rbp) movq -24(%rbp), %rax addq $1, %rax movq %rax, -24(%rbp) movsbl -37(%rbp), %eax movsbl -38(%rbp), %ecx cmpl %ecx, %eax jne LBB4_25 ## %bb.23: ## in Loop: Header=BB4_6 Depth=1 movsbl -37(%rbp), %eax cmpl $0, %eax jne LBB4_25 ## %bb.24: movl $0, -4(%rbp) jmp LBB4_32 LBB4_25: ## in Loop: Header=BB4_6 Depth=1 jmp LBB4_26 LBB4_26: ## in Loop: Header=BB4_6 Depth=1 jmp LBB4_27 LBB4_27: ## in Loop: Header=BB4_6 Depth=1 movsbl -37(%rbp), %ecx movsbl -38(%rbp), %edx xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl %edx, %ecx movb %al, -51(%rbp) ## 1-byte Spill jne LBB4_30 ## %bb.28: ## in Loop: Header=BB4_6 Depth=1 movl -28(%rbp), %ecx xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl -36(%rbp), %ecx movb %al, -51(%rbp) ## 1-byte Spill jge LBB4_30 ## %bb.29: ## in Loop: Header=BB4_6 Depth=1 movl -32(%rbp), %eax cmpl -36(%rbp), %eax setl %al movb %al, -51(%rbp) ## 1-byte Spill LBB4_30: ## in Loop: Header=BB4_6 Depth=1 movb -51(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB4_6 ## %bb.31: movsbl -37(%rbp), %eax movsbl -38(%rbp), %ecx subl %ecx, %eax movl %eax, -4(%rbp) LBB4_32: movl -4(%rbp), %eax addq $64, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _strdcmp ## -- Begin function strdcmp .p2align 4, 0x90 _strdcmp: ## @strdcmp .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 _pos1(%rip), %eax movl %eax, -32(%rbp) movl %eax, -28(%rbp) cmpl $0, _pos2(%rip) jle LBB5_2 ## %bb.1: movl _pos2(%rip), %eax movl %eax, -36(%rbp) jmp LBB5_5 LBB5_2: movq -16(%rbp), %rdi callq _strlen ## kill: def $eax killed $eax killed $rax movl %eax, -36(%rbp) cltq movq %rax, -48(%rbp) ## 8-byte Spill movq -24(%rbp), %rdi callq _strlen movq %rax, %rcx movq -48(%rbp), %rax ## 8-byte Reload cmpq %rcx, %rax jbe LBB5_4 ## %bb.3: movq -24(%rbp), %rdi callq _strlen ## kill: def $eax killed $eax killed $rax movl %eax, -36(%rbp) LBB5_4: jmp LBB5_5 LBB5_5: jmp LBB5_6 LBB5_6: ## =>This Loop Header: Depth=1 ## Child Loop BB5_7 Depth 2 ## Child Loop BB5_14 Depth 2 jmp LBB5_7 LBB5_7: ## Parent Loop BB5_6 Depth=1 ## => This Inner Loop Header: Depth=2 movl -28(%rbp), %ecx xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl -36(%rbp), %ecx movb %al, -49(%rbp) ## 1-byte Spill jge LBB5_11 ## %bb.8: ## in Loop: Header=BB5_7 Depth=2 movq -16(%rbp), %rax movsbl (%rax), %edi callq _isalnum movl %eax, %ecx xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $0, %ecx movb %al, -49(%rbp) ## 1-byte Spill jne LBB5_11 ## %bb.9: ## in Loop: Header=BB5_7 Depth=2 movq -16(%rbp), %rax movsbl (%rax), %ecx xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $32, %ecx movb %al, -49(%rbp) ## 1-byte Spill je LBB5_11 ## %bb.10: ## in Loop: Header=BB5_7 Depth=2 movq -16(%rbp), %rax movsbl (%rax), %eax cmpl $0, %eax setne %al movb %al, -49(%rbp) ## 1-byte Spill LBB5_11: ## in Loop: Header=BB5_7 Depth=2 movb -49(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB5_12 jmp LBB5_13 LBB5_12: ## in Loop: Header=BB5_7 Depth=2 movq -16(%rbp), %rax addq $1, %rax movq %rax, -16(%rbp) jmp LBB5_7 LBB5_13: ## in Loop: Header=BB5_6 Depth=1 jmp LBB5_14 LBB5_14: ## Parent Loop BB5_6 Depth=1 ## => This Inner Loop Header: Depth=2 movl -32(%rbp), %ecx xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl -36(%rbp), %ecx movb %al, -50(%rbp) ## 1-byte Spill jge LBB5_18 ## %bb.15: ## in Loop: Header=BB5_14 Depth=2 movq -24(%rbp), %rax movsbl (%rax), %edi callq _isalnum movl %eax, %ecx xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $0, %ecx movb %al, -50(%rbp) ## 1-byte Spill jne LBB5_18 ## %bb.16: ## in Loop: Header=BB5_14 Depth=2 movq -24(%rbp), %rax movsbl (%rax), %ecx xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $32, %ecx movb %al, -50(%rbp) ## 1-byte Spill je LBB5_18 ## %bb.17: ## in Loop: Header=BB5_14 Depth=2 movq -24(%rbp), %rax movsbl (%rax), %eax cmpl $0, %eax setne %al movb %al, -50(%rbp) ## 1-byte Spill LBB5_18: ## in Loop: Header=BB5_14 Depth=2 movb -50(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB5_19 jmp LBB5_20 LBB5_19: ## in Loop: Header=BB5_14 Depth=2 movq -24(%rbp), %rax addq $1, %rax movq %rax, -24(%rbp) jmp LBB5_14 LBB5_20: ## in Loop: Header=BB5_6 Depth=1 movl -28(%rbp), %eax cmpl -36(%rbp), %eax jge LBB5_26 ## %bb.21: ## in Loop: Header=BB5_6 Depth=1 movl -32(%rbp), %eax cmpl -36(%rbp), %eax jge LBB5_26 ## %bb.22: ## in Loop: Header=BB5_6 Depth=1 movq -16(%rbp), %rax movb (%rax), %al movb %al, -37(%rbp) movq -16(%rbp), %rax addq $1, %rax movq %rax, -16(%rbp) movq -24(%rbp), %rax movb (%rax), %al movb %al, -38(%rbp) movq -24(%rbp), %rax addq $1, %rax movq %rax, -24(%rbp) movsbl -37(%rbp), %eax movsbl -38(%rbp), %ecx cmpl %ecx, %eax jne LBB5_25 ## %bb.23: ## in Loop: Header=BB5_6 Depth=1 movsbl -37(%rbp), %eax cmpl $0, %eax jne LBB5_25 ## %bb.24: movl $0, -4(%rbp) jmp LBB5_32 LBB5_25: ## in Loop: Header=BB5_6 Depth=1 jmp LBB5_26 LBB5_26: ## in Loop: Header=BB5_6 Depth=1 jmp LBB5_27 LBB5_27: ## in Loop: Header=BB5_6 Depth=1 movsbl -37(%rbp), %ecx movsbl -38(%rbp), %edx xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl %edx, %ecx movb %al, -51(%rbp) ## 1-byte Spill jne LBB5_30 ## %bb.28: ## in Loop: Header=BB5_6 Depth=1 movl -28(%rbp), %ecx xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl -36(%rbp), %ecx movb %al, -51(%rbp) ## 1-byte Spill jge LBB5_30 ## %bb.29: ## in Loop: Header=BB5_6 Depth=1 movl -32(%rbp), %eax cmpl -36(%rbp), %eax setl %al movb %al, -51(%rbp) ## 1-byte Spill LBB5_30: ## in Loop: Header=BB5_6 Depth=1 movb -51(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB5_6 ## %bb.31: movsbl -37(%rbp), %eax movsbl -38(%rbp), %ecx subl %ecx, %eax movl %eax, -4(%rbp) LBB5_32: movl -4(%rbp), %eax addq $64, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _strfcmp ## -- Begin function strfcmp .p2align 4, 0x90 _strfcmp: ## @strfcmp .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 _pos1(%rip), %eax movl %eax, -32(%rbp) movl %eax, -28(%rbp) cmpl $0, _pos2(%rip) jle LBB6_2 ## %bb.1: movl _pos2(%rip), %eax movl %eax, -36(%rbp) jmp LBB6_5 LBB6_2: movq -16(%rbp), %rdi callq _strlen ## kill: def $eax killed $eax killed $rax movl %eax, -36(%rbp) cltq movq %rax, -48(%rbp) ## 8-byte Spill movq -24(%rbp), %rdi callq _strlen movq %rax, %rcx movq -48(%rbp), %rax ## 8-byte Reload cmpq %rcx, %rax jbe LBB6_4 ## %bb.3: movq -24(%rbp), %rdi callq _strlen ## kill: def $eax killed $eax killed $rax movl %eax, -36(%rbp) LBB6_4: jmp LBB6_5 LBB6_5: jmp LBB6_6 LBB6_6: ## =>This Inner Loop Header: Depth=1 movq -16(%rbp), %rax movslq -28(%rbp), %rcx movsbl (%rax,%rcx), %edi callq _tolower movl %eax, -56(%rbp) ## 4-byte Spill movq -24(%rbp), %rax movslq -32(%rbp), %rcx movsbl (%rax,%rcx), %edi callq _tolower movl -56(%rbp), %ecx ## 4-byte Reload movl %eax, %edx xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl %edx, %ecx movb %al, -49(%rbp) ## 1-byte Spill jne LBB6_9 ## %bb.7: ## in Loop: Header=BB6_6 Depth=1 movl -28(%rbp), %ecx xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl -36(%rbp), %ecx movb %al, -49(%rbp) ## 1-byte Spill jge LBB6_9 ## %bb.8: ## in Loop: Header=BB6_6 Depth=1 movl -32(%rbp), %eax cmpl -36(%rbp), %eax setl %al movb %al, -49(%rbp) ## 1-byte Spill LBB6_9: ## in Loop: Header=BB6_6 Depth=1 movb -49(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB6_10 jmp LBB6_14 LBB6_10: ## in Loop: Header=BB6_6 Depth=1 movq -16(%rbp), %rax movslq -28(%rbp), %rcx movsbl (%rax,%rcx), %eax cmpl $0, %eax jne LBB6_12 ## %bb.11: movl $0, -4(%rbp) jmp LBB6_15 LBB6_12: ## in Loop: Header=BB6_6 Depth=1 jmp LBB6_13 LBB6_13: ## in Loop: Header=BB6_6 Depth=1 movl -28(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) movl -32(%rbp), %eax addl $1, %eax movl %eax, -32(%rbp) jmp LBB6_6 LBB6_14: movq -16(%rbp), %rax movslq -28(%rbp), %rcx movsbl (%rax,%rcx), %edi callq _tolower movl %eax, -60(%rbp) ## 4-byte Spill movq -24(%rbp), %rax movslq -32(%rbp), %rcx movsbl (%rax,%rcx), %edi callq _tolower movl %eax, %ecx movl -60(%rbp), %eax ## 4-byte Reload subl %ecx, %eax movl %eax, -4(%rbp) LBB6_15: movl -4(%rbp), %eax addq $64, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _writelines ## -- Begin function writelines .p2align 4, 0x90 _writelines: ## @writelines .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) cmpl $0, -16(%rbp) je LBB7_6 ## %bb.1: movl -12(%rbp), %eax subl $1, %eax movl %eax, -20(%rbp) LBB7_2: ## =>This Inner Loop Header: Depth=1 cmpl $0, -20(%rbp) jl LBB7_5 ## %bb.3: ## in Loop: Header=BB7_2 Depth=1 movq -8(%rbp), %rax movslq -20(%rbp), %rcx movq (%rax,%rcx,8), %rsi leaq L_.str.13(%rip), %rdi movb $0, %al callq _printf ## %bb.4: ## in Loop: Header=BB7_2 Depth=1 movl -20(%rbp), %eax addl $-1, %eax movl %eax, -20(%rbp) jmp LBB7_2 LBB7_5: jmp LBB7_11 LBB7_6: movl $0, -20(%rbp) LBB7_7: ## =>This Inner Loop Header: Depth=1 movl -20(%rbp), %eax cmpl -12(%rbp), %eax jge LBB7_10 ## %bb.8: ## in Loop: Header=BB7_7 Depth=1 movq -8(%rbp), %rax movslq -20(%rbp), %rcx movq (%rax,%rcx,8), %rsi leaq L_.str.13(%rip), %rdi movb $0, %al callq _printf ## %bb.9: ## in Loop: Header=BB7_7 Depth=1 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB7_7 LBB7_10: jmp LBB7_11 LBB7_11: addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _swap ## -- Begin function swap .p2align 4, 0x90 _swap: ## @swap .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) 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 _substring ## -- Begin function substring .p2align 4, 0x90 _substring: ## @substring .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) movq -8(%rbp), %rdi callq _strlen ## kill: def $eax killed $eax killed $rax movl %eax, -28(%rbp) cmpl $0, _pos2(%rip) jle LBB9_3 ## %bb.1: movl _pos2(%rip), %eax cmpl -28(%rbp), %eax jge LBB9_3 ## %bb.2: movl _pos2(%rip), %eax movl %eax, -28(%rbp) LBB9_3: cmpl $0, _pos2(%rip) jle LBB9_6 ## %bb.4: movl -28(%rbp), %eax cmpl _pos2(%rip), %eax jge LBB9_6 ## %bb.5: movq -8(%rbp), %rsi leaq L_.str.12(%rip), %rdi movb $0, %al callq _printf LBB9_6: movl $0, -24(%rbp) movl _pos1(%rip), %eax movl %eax, -20(%rbp) LBB9_7: ## =>This Inner Loop Header: Depth=1 movl -20(%rbp), %eax cmpl -28(%rbp), %eax jge LBB9_10 ## %bb.8: ## in Loop: Header=BB9_7 Depth=1 movq -8(%rbp), %rax movslq -20(%rbp), %rcx movb (%rax,%rcx), %dl movq -16(%rbp), %rax movslq -24(%rbp), %rcx movb %dl, (%rax,%rcx) ## %bb.9: ## in Loop: Header=BB9_7 Depth=1 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) movl -24(%rbp), %eax addl $1, %eax movl %eax, -24(%rbp) jmp LBB9_7 LBB9_10: movq -16(%rbp), %rax movslq -24(%rbp), %rcx movb $0, (%rax,%rcx) addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _get_line ## -- Begin function get_line .p2align 4, 0x90 _get_line: ## @get_line .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) movl $0, -20(%rbp) LBB10_1: ## =>This Inner Loop Header: Depth=1 movl -20(%rbp), %ecx movl -12(%rbp), %edx subl $1, %edx xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl %edx, %ecx movb %al, -21(%rbp) ## 1-byte Spill jge LBB10_4 ## %bb.2: ## in Loop: Header=BB10_1 Depth=1 callq _getchar movl %eax, %ecx movl %ecx, -16(%rbp) xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $-1, %ecx movb %al, -21(%rbp) ## 1-byte Spill je LBB10_4 ## %bb.3: ## in Loop: Header=BB10_1 Depth=1 cmpl $10, -16(%rbp) setne %al movb %al, -21(%rbp) ## 1-byte Spill LBB10_4: ## in Loop: Header=BB10_1 Depth=1 movb -21(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB10_5 jmp LBB10_7 LBB10_5: ## in Loop: Header=BB10_1 Depth=1 movl -16(%rbp), %eax movb %al, %dl movq -8(%rbp), %rax movslq -20(%rbp), %rcx movb %dl, (%rax,%rcx) ## %bb.6: ## in Loop: Header=BB10_1 Depth=1 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB10_1 LBB10_7: cmpl $10, -16(%rbp) jne LBB10_9 ## %bb.8: movl -16(%rbp), %eax movb %al, %dl movq -8(%rbp), %rax movl -20(%rbp), %ecx movl %ecx, %esi addl $1, %esi movl %esi, -20(%rbp) movslq %ecx, %rcx movb %dl, (%rax,%rcx) LBB10_9: movq -8(%rbp), %rax movslq -20(%rbp), %rcx movb $0, (%rax,%rcx) movl -20(%rbp), %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _alloc ## -- Begin function alloc .p2align 4, 0x90 _alloc: ## @alloc .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, -12(%rbp) movq _allocp(%rip), %rcx leaq _allocbuf(%rip), %rax addq $10000, %rax ## imm = 0x2710 subq %rcx, %rax movslq -12(%rbp), %rcx cmpq %rcx, %rax jl LBB11_2 ## %bb.1: movl -12(%rbp), %ecx movq _allocp(%rip), %rax movslq %ecx, %rcx addq %rcx, %rax movq %rax, _allocp(%rip) movq _allocp(%rip), %rax movslq -12(%rbp), %rdx xorl %ecx, %ecx ## kill: def $rcx killed $ecx subq %rdx, %rcx addq %rcx, %rax movq %rax, -8(%rbp) jmp LBB11_3 LBB11_2: movq $0, -8(%rbp) LBB11_3: movq -8(%rbp), %rax popq %rbp retq .cfi_endproc ## -- End function .globl _afree ## -- Begin function afree .p2align 4, 0x90 _afree: ## @afree .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) leaq _allocbuf(%rip), %rax cmpq %rax, -8(%rbp) jb LBB12_3 ## %bb.1: leaq _allocbuf(%rip), %rax addq $10000, %rax ## imm = 0x2710 cmpq %rax, -8(%rbp) jae LBB12_3 ## %bb.2: movq -8(%rbp), %rax movq %rax, _allocp(%rip) LBB12_3: popq %rbp retq .cfi_endproc ## -- End function .globl _pos1 ## @pos1 .zerofill __DATA,__common,_pos1,4,2 .globl _pos2 ## @pos2 .zerofill __DATA,__common,_pos2,4,2 .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Illegal option: %c\n" L_.str.1: ## @.str.1 .asciz "Usage: sort -n -r -f [begin] [end]\n" L_.str.2: ## @.str.2 .asciz "begin must not be greater than end\n" L_.str.3: ## @.str.3 .asciz "Numerical sort\n" L_.str.4: ## @.str.4 .asciz "Lexicographic sort\n" L_.str.5: ## @.str.5 .asciz "Reverse sort\n" L_.str.6: ## @.str.6 .asciz "Normal sort\n" L_.str.7: ## @.str.7 .asciz "Case insensitive\n" L_.str.8: ## @.str.8 .asciz "Case sensitive\n" L_.str.9: ## @.str.9 .asciz "Directory order\n" L_.str.10: ## @.str.10 .space 1 .comm _lineptr,40000,4 ## @lineptr L_.str.11: ## @.str.11 .asciz "input too big to sort\n" L_.str.12: ## @.str.12 .asciz "error: string %s is too short\n" L_.str.13: ## @.str.13 .asciz "%s\n" .zerofill __DATA,__bss,_allocbuf,10000,4 ## @allocbuf .section __DATA,__data .p2align 3 ## @allocp _allocp: .quad _allocbuf .subsections_via_symbols
the_stack_data/87638600.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _use_def_elim13b_graph ; -- Begin function use_def_elim13b_graph .p2align 2 _use_def_elim13b_graph: ; @use_def_elim13b_graph .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 _rand 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_2 LBB0_2: bl _rand subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: stur wzr, [x29, #-4] b LBB0_4 LBB0_4: ldur w0, [x29, #-4] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _use_def_elim13b_graph ## -- Begin function use_def_elim13b_graph .p2align 4, 0x90 _use_def_elim13b_graph: ## @use_def_elim13b_graph .cfi_startproc ## %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 _rand cmpl $0, %eax je LBB0_2 ## %bb.1: movl $1, -4(%rbp) LBB0_2: callq _rand cmpl $0, %eax je LBB0_4 ## %bb.3: movl $0, -4(%rbp) LBB0_4: movl -4(%rbp), %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/5920.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, #240 .cfi_def_cfa_offset 240 stp x29, x30, [sp, #224] ; 16-byte Folded Spill add x29, sp, #224 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 sub x10, x29, #80 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] str wzr, [sp, #12] adrp x9, l___const.main.arr1@PAGE add x9, x9, l___const.main.arr1@PAGEOFF ldr q0, [x9] sub x8, x29, #48 str q0, [x10, #32] ldur q0, [x9, #12] stur q0, [x8, #12] adrp x9, l___const.main.arr2@PAGE add x9, x9, l___const.main.arr2@PAGEOFF ldr q0, [x9] sub x8, x29, #80 str q0, [x10] ldur q0, [x9, #12] stur q0, [x8, #12] adrp x9, l___const.main.arr3@PAGE add x9, x9, l___const.main.arr3@PAGEOFF ldr q0, [x9] add x8, sp, #112 str q0, [sp, #112] ldur q0, [x9, #12] stur q0, [x8, #12] adrp x9, l___const.main.arr4@PAGE add x9, x9, l___const.main.arr4@PAGEOFF ldr q0, [x9] add x8, sp, #80 str q0, [sp, #80] ldur q0, [x9, #12] stur q0, [x8, #12] adrp x9, l___const.main.arr5@PAGE add x9, x9, l___const.main.arr5@PAGEOFF ldr q0, [x9] add x8, sp, #48 str q0, [sp, #48] ldur q0, [x9, #12] stur q0, [x8, #12] adrp x8, l___const.main.arr6@PAGE add x8, x8, l___const.main.arr6@PAGEOFF ldr q0, [x8] str q0, [sp, #16] ldr w8, [x8, #16] str w8, [sp, #32] ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: bl ___stack_chk_fail LBB0_2: mov w0, #0 ldp x29, x30, [sp, #224] ; 16-byte Folded Reload add sp, sp, #240 ret .cfi_endproc ; -- End function .zerofill __DATA,__bss,_main.arr9,28,2 ; @main.arr9 .section __TEXT,__const .p2align 2 ; @__const.main.arr1 l___const.main.arr1: .long 0 ; 0x0 .long 1 ; 0x1 .long 2 ; 0x2 .long 3 ; 0x3 .long 4 ; 0x4 .long 5 ; 0x5 .long 6 ; 0x6 .p2align 2 ; @__const.main.arr2 l___const.main.arr2: .long 0 ; 0x0 .long 1 ; 0x1 .long 2 ; 0x2 .long 3 ; 0x3 .long 0 ; 0x0 .long 0 ; 0x0 .long 0 ; 0x0 .p2align 2 ; @__const.main.arr3 l___const.main.arr3: .long 0 ; 0x0 .long 0 ; 0x0 .long 0 ; 0x0 .long 0 ; 0x0 .long 5 ; 0x5 .long 6 ; 0x6 .long 0 ; 0x0 .p2align 2 ; @__const.main.arr4 l___const.main.arr4: .long 9 ; 0x9 .long 1 ; 0x1 .long 0 ; 0x0 .long 0 ; 0x0 .long 5 ; 0x5 .long 0 ; 0x0 .long 0 ; 0x0 .p2align 2 ; @__const.main.arr5 l___const.main.arr5: .long 0 ; 0x0 .long 1 ; 0x1 .long 2 ; 0x2 .long 3 ; 0x3 .long 4 ; 0x4 .long 5 ; 0x5 .long 6 ; 0x6 .p2align 2 ; @__const.main.arr6 l___const.main.arr6: .long 0 ; 0x0 .long 0 ; 0x0 .long 0 ; 0x0 .long 4 ; 0x4 .long 5 ; 0x5 .comm _arr7,28,2 ; @arr7 .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 $224, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -212(%rbp) movq l___const.main.arr1(%rip), %rax movq %rax, -48(%rbp) movq l___const.main.arr1+8(%rip), %rax movq %rax, -40(%rbp) movq l___const.main.arr1+16(%rip), %rax movq %rax, -32(%rbp) movl l___const.main.arr1+24(%rip), %eax movl %eax, -24(%rbp) movq l___const.main.arr2(%rip), %rax movq %rax, -80(%rbp) movq l___const.main.arr2+8(%rip), %rax movq %rax, -72(%rbp) movq l___const.main.arr2+16(%rip), %rax movq %rax, -64(%rbp) movl l___const.main.arr2+24(%rip), %eax movl %eax, -56(%rbp) movq l___const.main.arr3(%rip), %rax movq %rax, -112(%rbp) movq l___const.main.arr3+8(%rip), %rax movq %rax, -104(%rbp) movq l___const.main.arr3+16(%rip), %rax movq %rax, -96(%rbp) movl l___const.main.arr3+24(%rip), %eax movl %eax, -88(%rbp) movq l___const.main.arr4(%rip), %rax movq %rax, -144(%rbp) movq l___const.main.arr4+8(%rip), %rax movq %rax, -136(%rbp) movq l___const.main.arr4+16(%rip), %rax movq %rax, -128(%rbp) movl l___const.main.arr4+24(%rip), %eax movl %eax, -120(%rbp) movq l___const.main.arr5(%rip), %rax movq %rax, -176(%rbp) movq l___const.main.arr5+8(%rip), %rax movq %rax, -168(%rbp) movq l___const.main.arr5+16(%rip), %rax movq %rax, -160(%rbp) movl l___const.main.arr5+24(%rip), %eax movl %eax, -152(%rbp) movq l___const.main.arr6(%rip), %rax movq %rax, -208(%rbp) movq l___const.main.arr6+8(%rip), %rax movq %rax, -200(%rbp) movl l___const.main.arr6+16(%rip), %eax movl %eax, -192(%rbp) movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_2 ## %bb.1: xorl %eax, %eax addq $224, %rsp popq %rbp retq LBB0_2: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .zerofill __DATA,__bss,_main.arr9,28,4 ## @main.arr9 .section __TEXT,__const .p2align 4 ## @__const.main.arr1 l___const.main.arr1: .long 0 ## 0x0 .long 1 ## 0x1 .long 2 ## 0x2 .long 3 ## 0x3 .long 4 ## 0x4 .long 5 ## 0x5 .long 6 ## 0x6 .p2align 4 ## @__const.main.arr2 l___const.main.arr2: .long 0 ## 0x0 .long 1 ## 0x1 .long 2 ## 0x2 .long 3 ## 0x3 .long 0 ## 0x0 .long 0 ## 0x0 .long 0 ## 0x0 .p2align 4 ## @__const.main.arr3 l___const.main.arr3: .long 0 ## 0x0 .long 0 ## 0x0 .long 0 ## 0x0 .long 0 ## 0x0 .long 5 ## 0x5 .long 6 ## 0x6 .long 0 ## 0x0 .p2align 4 ## @__const.main.arr4 l___const.main.arr4: .long 9 ## 0x9 .long 1 ## 0x1 .long 0 ## 0x0 .long 0 ## 0x0 .long 5 ## 0x5 .long 0 ## 0x0 .long 0 ## 0x0 .p2align 4 ## @__const.main.arr5 l___const.main.arr5: .long 0 ## 0x0 .long 1 ## 0x1 .long 2 ## 0x2 .long 3 ## 0x3 .long 4 ## 0x4 .long 5 ## 0x5 .long 6 ## 0x6 .p2align 4 ## @__const.main.arr6 l___const.main.arr6: .long 0 ## 0x0 .long 0 ## 0x0 .long 0 ## 0x0 .long 4 ## 0x4 .long 5 ## 0x5 .comm _arr7,28,4 ## @arr7 .subsections_via_symbols
the_stack_data/90765386.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #128 .cfi_def_cfa_offset 128 stp x29, x30, [sp, #112] ; 16-byte Folded Spill add x29, sp, #112 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] str wzr, [sp, #48] b LBB0_1 LBB0_1: ; =>This Loop Header: Depth=1 ; Child Loop BB0_2 Depth 2 ; Child Loop BB0_10 Depth 2 str wzr, [sp, #44] str wzr, [sp, #36] b LBB0_2 LBB0_2: ; Parent Loop BB0_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #36] subs w8, w8, #10 cset w8, ge tbnz w8, #0, LBB0_9 b LBB0_3 LBB0_3: ; in Loop: Header=BB0_2 Depth=2 ldrsw x9, [sp, #36] sub x8, x29, #48 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 adds w8, w0, #1 cset w8, ne tbnz w8, #0, LBB0_7 b LBB0_4 LBB0_4: ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: bl ___stack_chk_fail LBB0_6: mov w0, #0 ldp x29, x30, [sp, #112] ; 16-byte Folded Reload add sp, sp, #128 ret LBB0_7: ; in Loop: Header=BB0_2 Depth=2 ldrsw x9, [sp, #36] sub x8, x29, #48 ldr w9, [x8, x9, lsl #2] ldr w8, [sp, #44] add w8, w8, w9 str w8, [sp, #44] b LBB0_8 LBB0_8: ; in Loop: Header=BB0_2 Depth=2 ldr w8, [sp, #36] add w8, w8, #1 str w8, [sp, #36] b LBB0_2 LBB0_9: ; in Loop: Header=BB0_1 Depth=1 add x8, sp, #52 add x10, x8, #4 add x8, x8, #8 mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf ldr w8, [sp, #44] ldr w9, [sp, #60] mul w8, w8, w9 ldr w9, [sp, #60] ldr w10, [sp, #56] add w9, w9, w10 sdiv w8, w8, w9 str w8, [sp, #40] mov w8, #9 str w8, [sp, #36] b LBB0_10 LBB0_10: ; Parent Loop BB0_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #36] subs w8, w8, #0 cset w8, lt tbnz w8, #0, LBB0_15 b LBB0_11 LBB0_11: ; in Loop: Header=BB0_10 Depth=2 ldrsw x9, [sp, #36] sub x8, x29, #48 ldr w9, [x8, x9, lsl #2] ldr w8, [sp, #40] subs w8, w8, w9 str w8, [sp, #40] ldr w8, [sp, #40] subs w8, w8, #0 cset w8, ge tbnz w8, #0, LBB0_13 b LBB0_12 LBB0_12: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #36] add w10, w8, #1 mov x9, sp ; implicit-def: $x8 mov x8, x10 str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf b LBB0_15 LBB0_13: ; in Loop: Header=BB0_10 Depth=2 b LBB0_14 LBB0_14: ; in Loop: Header=BB0_10 Depth=2 ldr w8, [sp, #36] subs w8, w8, #1 str w8, [sp, #36] b LBB0_10 LBB0_15: ; in Loop: Header=BB0_1 Depth=1 b LBB0_1 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d," l_.str.1: ; @.str.1 .asciz "%d,%d" l_.str.2: ; @.str.2 .asciz "%d\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $96, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -64(%rbp) LBB0_1: ## =>This Loop Header: Depth=1 ## Child Loop BB0_2 Depth 2 ## Child Loop BB0_9 Depth 2 movl $0, -68(%rbp) movl $0, -76(%rbp) LBB0_2: ## Parent Loop BB0_1 Depth=1 ## => This Inner Loop Header: Depth=2 cmpl $10, -76(%rbp) jge LBB0_8 ## %bb.3: ## in Loop: Header=BB0_2 Depth=2 movslq -76(%rbp), %rax leaq -48(%rbp), %rsi shlq $2, %rax addq %rax, %rsi leaq L_.str(%rip), %rdi movb $0, %al callq _scanf cmpl $-1, %eax jne LBB0_6 ## %bb.4: movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_15 ## %bb.5: xorl %eax, %eax addq $96, %rsp popq %rbp retq LBB0_6: ## in Loop: Header=BB0_2 Depth=2 movslq -76(%rbp), %rax movl -48(%rbp,%rax,4), %eax addl -68(%rbp), %eax movl %eax, -68(%rbp) ## %bb.7: ## in Loop: Header=BB0_2 Depth=2 movl -76(%rbp), %eax addl $1, %eax movl %eax, -76(%rbp) jmp LBB0_2 LBB0_8: ## in Loop: Header=BB0_1 Depth=1 leaq -60(%rbp), %rsi addq $4, %rsi leaq -60(%rbp), %rdx addq $8, %rdx leaq L_.str.1(%rip), %rdi movb $0, %al callq _scanf movl -68(%rbp), %eax imull -52(%rbp), %eax movl -52(%rbp), %ecx addl -56(%rbp), %ecx cltd idivl %ecx movl %eax, -72(%rbp) movl $9, -76(%rbp) LBB0_9: ## Parent Loop BB0_1 Depth=1 ## => This Inner Loop Header: Depth=2 cmpl $0, -76(%rbp) jl LBB0_14 ## %bb.10: ## in Loop: Header=BB0_9 Depth=2 movslq -76(%rbp), %rax movl -48(%rbp,%rax,4), %ecx movl -72(%rbp), %eax subl %ecx, %eax movl %eax, -72(%rbp) cmpl $0, -72(%rbp) jge LBB0_12 ## %bb.11: ## in Loop: Header=BB0_1 Depth=1 movl -76(%rbp), %esi addl $1, %esi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf jmp LBB0_14 LBB0_12: ## in Loop: Header=BB0_9 Depth=2 jmp LBB0_13 LBB0_13: ## in Loop: Header=BB0_9 Depth=2 movl -76(%rbp), %eax addl $-1, %eax movl %eax, -76(%rbp) jmp LBB0_9 LBB0_14: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_1 LBB0_15: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d," L_.str.1: ## @.str.1 .asciz "%d,%d" L_.str.2: ## @.str.2 .asciz "%d\n" .subsections_via_symbols
the_stack_data/473105.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _foo ; -- Begin function foo .p2align 2 _foo: ; @foo .cfi_startproc ; %bb.0: adrp x8, _bits@GOTPAGE ldr x8, [x8, _bits@GOTPAGEOFF] ldr w8, [x8] lsr w8, w8, #8 and w8, w8, #0xff mov x0, x8 ret .cfi_endproc ; -- End function .comm _bits,8,3 ; @bits .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _foo ## -- Begin function foo .p2align 4, 0x90 _foo: ## @foo .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq _bits@GOTPCREL(%rip), %rax movl (%rax), %eax shrl $8, %eax andl $255, %eax movl %eax, %eax ## kill: def $rax killed $eax popq %rbp retq .cfi_endproc ## -- End function .comm _bits,8,3 ## @bits .subsections_via_symbols
the_stack_data/122698.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 w0, #0 str w0, [sp, #8] ; 4-byte Folded Spill stur wzr, [x29, #-4] bl _foo ldr w0, [sp, #8] ; 4-byte Folded Reload ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function foo _foo: ; @foo .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur w0, [x29, #-4] mov w8, #65536 str w8, [sp, #16] ldrh w8, [sp, #16] str w8, [sp, #12] ldur w8, [x29, #-4] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: bl _abort LBB1_2: ldr w8, [sp, #12] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB1_4 b LBB1_3 LBB1_3: bl _abort LBB1_4: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) xorl %edi, %edi callq _foo xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function foo _foo: ## @foo .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl %edi, -4(%rbp) movl $65536, -16(%rbp) ## imm = 0x10000 movzwl -16(%rbp), %eax movl %eax, -20(%rbp) cmpl $0, -4(%rbp) je LBB1_2 ## %bb.1: callq _abort LBB1_2: cmpl $0, -20(%rbp) je LBB1_4 ## %bb.3: callq _abort LBB1_4: addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/123510.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _t1 ; -- Begin function t1 .p2align 2 _t1: ; @t1 .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #12] adrp x8, _a@PAGE ldr w8, [x8, _a@PAGEOFF] ldr w9, [sp, #12] add w0, w8, w9 add sp, sp, #16 ret .cfi_endproc ; -- End function .section __DATA,__data .globl _a ; @a .p2align 2 _a: .long 4294967295 ; 0xffffffff .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _t1 ## -- Begin function t1 .p2align 4, 0x90 _t1: ## @t1 .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 _a(%rip), %eax addl -4(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .section __DATA,__data .globl _a ## @a .p2align 2 _a: .long 4294967295 ## 0xffffffff .subsections_via_symbols
the_stack_data/192329430.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: stp x28, x27, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w27, -24 .cfi_offset w28, -32 mov w9, #13648 movk w9, #12, lsl #16 adrp x16, ___chkstk_darwin@GOTPAGE ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF] blr x16 sub sp, sp, #195, lsl #12 ; =798720 sub sp, sp, #1360 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 w0, [sp, #56] str x1, [sp, #48] add x0, sp, #64 mov x1, #6788 movk x1, #6, lsl #16 bl _bzero mov x9, sp add x8, sp, #36 str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _scanf mov w8, #1 str w8, [sp, #24] str wzr, [sp, #44] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #44] ldr w9, [sp, #36] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_4 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 mov x9, sp add x8, sp, #32 str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _scanf ldrsw x9, [sp, #32] add x8, sp, #64 add x9, x8, x9, lsl #2 ldr w8, [x9] add w8, w8, #1 str w8, [x9] b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #44] add w8, w8, #1 str w8, [sp, #44] b LBB0_1 LBB0_4: mov w8, #34464 movk w8, #1, lsl #16 str w8, [sp, #44] b LBB0_5 LBB0_5: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #44] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB0_10 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_5 Depth=1 ldrsw x9, [sp, #44] add x8, sp, #64 ldr w8, [x8, x9, lsl #2] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_8 b LBB0_7 LBB0_7: ; in Loop: Header=BB0_5 Depth=1 ldr w8, [sp, #44] ldrsw x10, [sp, #24] add x9, sp, #97, lsl #12 ; =397312 add x9, x9, #2756 str w8, [x9, x10, lsl #2] ldr w8, [sp, #24] add w8, w8, #1 str w8, [sp, #24] b LBB0_8 LBB0_8: ; in Loop: Header=BB0_5 Depth=1 b LBB0_9 LBB0_9: ; in Loop: Header=BB0_5 Depth=1 ldr w8, [sp, #44] subs w8, w8, #1 str w8, [sp, #44] b LBB0_5 LBB0_10: mov x9, sp add x8, sp, #28 str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _scanf ldrsw x9, [sp, #28] add x8, sp, #97, lsl #12 ; =397312 add x8, x8, #2756 ldr w9, [x8, x9, lsl #2] ; implicit-def: $x10 mov x10, x9 ldrsw x9, [sp, #28] ldrsw x9, [x8, x9, lsl #2] add x8, sp, #64 ldr w9, [x8, x9, lsl #2] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf ldur x9, [x29, #-24] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_12 b LBB0_11 LBB0_11: bl ___stack_chk_fail LBB0_12: mov w0, #0 add sp, sp, #195, lsl #12 ; =798720 add sp, sp, #1360 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x28, x27, [sp], #32 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d" l_.str.1: ; @.str.1 .asciz "%d %d" .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 $800080, %eax ## imm = 0xC3550 callq ____chkstk_darwin subq %rax, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -800036(%rbp) movl %edi, -800040(%rbp) movq %rsi, -800048(%rbp) leaq -800032(%rbp), %rdi xorl %esi, %esi movl $400004, %edx ## imm = 0x61A84 callq _memset leaq L_.str(%rip), %rdi leaq -800060(%rbp), %rsi movb $0, %al callq _scanf movl $1, -800072(%rbp) movl $0, -800052(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movl -800052(%rbp), %eax cmpl -800060(%rbp), %eax jge LBB0_4 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 leaq L_.str(%rip), %rdi leaq -800064(%rbp), %rsi movb $0, %al callq _scanf movslq -800064(%rbp), %rax movl -800032(%rbp,%rax,4), %ecx addl $1, %ecx movl %ecx, -800032(%rbp,%rax,4) ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movl -800052(%rbp), %eax addl $1, %eax movl %eax, -800052(%rbp) jmp LBB0_1 LBB0_4: movl $100000, -800052(%rbp) ## imm = 0x186A0 LBB0_5: ## =>This Inner Loop Header: Depth=1 cmpl $0, -800052(%rbp) jle LBB0_10 ## %bb.6: ## in Loop: Header=BB0_5 Depth=1 movslq -800052(%rbp), %rax cmpl $0, -800032(%rbp,%rax,4) je LBB0_8 ## %bb.7: ## in Loop: Header=BB0_5 Depth=1 movl -800052(%rbp), %ecx movslq -800072(%rbp), %rax movl %ecx, -400016(%rbp,%rax,4) movl -800072(%rbp), %eax addl $1, %eax movl %eax, -800072(%rbp) LBB0_8: ## in Loop: Header=BB0_5 Depth=1 jmp LBB0_9 LBB0_9: ## in Loop: Header=BB0_5 Depth=1 movl -800052(%rbp), %eax addl $-1, %eax movl %eax, -800052(%rbp) jmp LBB0_5 LBB0_10: leaq L_.str(%rip), %rdi leaq -800068(%rbp), %rsi movb $0, %al callq _scanf movslq -800068(%rbp), %rax movl -400016(%rbp,%rax,4), %esi movslq -800068(%rbp), %rax movslq -400016(%rbp,%rax,4), %rax movl -800032(%rbp,%rax,4), %edx leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_12 ## %bb.11: xorl %eax, %eax addq $800080, %rsp ## imm = 0xC3550 popq %rbp retq LBB0_12: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d" L_.str.1: ## @.str.1 .asciz "%d %d" .subsections_via_symbols
the_stack_data/48575085.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _fmodf ; -- Begin function fmodf .p2align 2 _fmodf: ; @fmodf .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur s0, [x29, #-4] str s1, [sp, #8] ldr s1, [sp, #8] ldur s0, [x29, #-4] fdiv s0, s0, s1 stur s0, [x29, #-4] ldur s0, [x29, #-4] add x0, sp, #4 bl _modff stur s0, [x29, #-4] ldr s1, [sp, #8] ldur s0, [x29, #-4] fmul s0, s0, s1 stur s0, [x29, #-4] ldur s0, [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 _fmodf ## -- Begin function fmodf .p2align 4, 0x90 _fmodf: ## @fmodf .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movss %xmm0, -4(%rbp) movss %xmm1, -8(%rbp) movss -8(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero movss -4(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero divss %xmm1, %xmm0 movss %xmm0, -4(%rbp) movss -4(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero leaq -12(%rbp), %rdi callq _modff movss %xmm0, -4(%rbp) movss -8(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero mulss -4(%rbp), %xmm0 movss %xmm0, -4(%rbp) movss -4(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/363742.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #160 .cfi_def_cfa_offset 160 stp x29, x30, [sp, #144] ; 16-byte Folded Spill add x29, sp, #144 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] str wzr, [sp, #32] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF bl _fopen str x0, [sp, #24] ldr x8, [sp, #24] 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 adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _system mov w0, #1 bl _exit LBB0_2: adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf add x0, sp, #36 bl _gets str wzr, [sp, #20] b LBB0_3 LBB0_3: ; =>This Inner Loop Header: Depth=1 ldrsw x8, [sp, #20] str x8, [sp, #8] ; 8-byte Folded Spill add x0, sp, #36 bl _strlen ldr x8, [sp, #8] ; 8-byte Folded Reload subs x8, x8, x0 cset w8, hs tbnz w8, #0, LBB0_6 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_3 Depth=1 ldrsw x9, [sp, #20] add x8, sp, #36 ldrsb w0, [x8, x9] ldr x1, [sp, #24] bl _fputc b LBB0_5 LBB0_5: ; in Loop: Header=BB0_3 Depth=1 ldr w8, [sp, #20] add w8, w8, #1 str w8, [sp, #20] b LBB0_3 LBB0_6: ldr x0, [sp, #24] bl _fflush ldr x0, [sp, #24] bl _fclose adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _system 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, #144] ; 16-byte Folded Reload add sp, sp, #160 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "arquivo2.txt" l_.str.1: ; @.str.1 .asciz "w" l_.str.2: ; @.str.2 .asciz "Erro na abertura do arquivo\n" l_.str.3: ; @.str.3 .asciz "pause" l_.str.4: ; @.str.4 .asciz "Entre com a string a ser gravada no arquivo: " .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $144, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -116(%rbp) leaq L_.str(%rip), %rdi leaq L_.str.1(%rip), %rsi callq _fopen movq %rax, -128(%rbp) cmpq $0, -128(%rbp) jne LBB0_2 ## %bb.1: leaq L_.str.2(%rip), %rdi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _printf leaq L_.str.3(%rip), %rdi callq _system movl $1, %edi callq _exit LBB0_2: leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf leaq -112(%rbp), %rdi callq _gets movl $0, -132(%rbp) LBB0_3: ## =>This Inner Loop Header: Depth=1 movslq -132(%rbp), %rax movq %rax, -144(%rbp) ## 8-byte Spill leaq -112(%rbp), %rdi callq _strlen movq %rax, %rcx movq -144(%rbp), %rax ## 8-byte Reload cmpq %rcx, %rax jae LBB0_6 ## %bb.4: ## in Loop: Header=BB0_3 Depth=1 movslq -132(%rbp), %rax movsbl -112(%rbp,%rax), %edi movq -128(%rbp), %rsi callq _fputc ## %bb.5: ## in Loop: Header=BB0_3 Depth=1 movl -132(%rbp), %eax addl $1, %eax movl %eax, -132(%rbp) jmp LBB0_3 LBB0_6: movq -128(%rbp), %rdi callq _fflush movq -128(%rbp), %rdi callq _fclose leaq L_.str.3(%rip), %rdi callq _system 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 $144, %rsp popq %rbp retq LBB0_8: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "arquivo2.txt" L_.str.1: ## @.str.1 .asciz "w" L_.str.2: ## @.str.2 .asciz "Erro na abertura do arquivo\n" L_.str.3: ## @.str.3 .asciz "pause" L_.str.4: ## @.str.4 .asciz "Entre com a string a ser gravada no arquivo: " .subsections_via_symbols
the_stack_data/104256.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 mov x8, x0 str w8, [sp, #12] str d0, [sp] ldr s1, [sp, #12] ; implicit-def: $d0 fmov s0, s1 sshll.2d v0, v0, #0 ; kill: def $d0 killed $d0 killed $q0 scvtf d0, d0 ldr d1, [sp] fmul d0, d0, d1 fcvtzs w0, d0 add sp, sp, #16 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _foo ## -- Begin function foo .p2align 4, 0x90 _foo: ## @foo .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, -8(%rbp) movsd %xmm0, -16(%rbp) cvtsi2sdl -8(%rbp), %xmm0 mulsd -16(%rbp), %xmm0 cvttsd2si %xmm0, %eax popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/70816.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _find_max ; -- Begin function find_max .p2align 2 _find_max: ; @find_max .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] str x3, [sp, #8] ldr x8, [sp, #24] str x8, [sp] ldr x0, [sp] add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] mov x9, sp sub x8, x29, #8 str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _scanf ldursw x8, [x29, #-8] lsl x0, x8, #2 bl _malloc str x0, [sp, #16] str wzr, [sp, #12] b LBB1_1 LBB1_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, LBB1_4 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 ldr x8, [sp, #16] ldrsw x9, [sp, #12] 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 LBB1_3 LBB1_3: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB1_1 LBB1_4: ldr x0, [sp, #16] bl _free mov w0, #0 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _find_max ## -- Begin function find_max .p2align 4, 0x90 _find_max: ## @find_max .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 %rcx, -24(%rbp) movq -8(%rbp), %rax movq %rax, -32(%rbp) movq -32(%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 $32, %rsp movl $0, -4(%rbp) leaq L_.str(%rip), %rdi leaq -8(%rbp), %rsi movb $0, %al callq _scanf movslq -8(%rbp), %rdi shlq $2, %rdi callq _malloc movq %rax, -16(%rbp) movl $0, -20(%rbp) LBB1_1: ## =>This Inner Loop Header: Depth=1 movl -20(%rbp), %eax cmpl -8(%rbp), %eax jge LBB1_4 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 movq -16(%rbp), %rsi movslq -20(%rbp), %rax shlq $2, %rax addq %rax, %rsi leaq L_.str(%rip), %rdi movb $0, %al callq _scanf ## %bb.3: ## in Loop: Header=BB1_1 Depth=1 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB1_1 LBB1_4: movq -16(%rbp), %rdi callq _free xorl %eax, %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d" .subsections_via_symbols
the_stack_data/1232028.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _getnode ; -- Begin function getnode .p2align 2 _getnode: ; @getnode .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov x0, #16 bl _malloc str x0, [sp, #8] ldr x8, [sp, #8] ; kill: def $x9 killed $xzr str xzr, [x8, #8] ldr x0, [sp, #8] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _add_node ; -- Begin function add_node .p2align 2 _add_node: ; @add_node .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] stur w1, [x29, #-12] ldur x8, [x29, #-8] ldr x8, [x8] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: bl _getnode str x0, [sp, #24] ldur w8, [x29, #-12] ldr x9, [sp, #24] str w8, [x9] ldr x8, [sp, #24] ; kill: def $x9 killed $xzr str xzr, [x8, #8] ldr x8, [sp, #24] ldur x9, [x29, #-8] str x8, [x9] b LBB1_6 LBB1_2: ldur x8, [x29, #-8] ldr x8, [x8] str x8, [sp, #16] b LBB1_3 LBB1_3: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #16] 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, #16] ldr x8, [x8, #8] str x8, [sp, #16] b LBB1_3 LBB1_5: bl _getnode str x0, [sp, #8] ldur w8, [x29, #-12] ldr x9, [sp, #8] str w8, [x9] ldr x8, [sp, #8] ; kill: def $x9 killed $xzr str xzr, [x8, #8] ldr x8, [sp, #8] ldr x9, [sp, #16] str x8, [x9, #8] b LBB1_6 LBB1_6: ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _reverse_linklist_recursive ; -- Begin function reverse_linklist_recursive .p2align 2 _reverse_linklist_recursive: ; @reverse_linklist_recursive .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, LBB2_2 b LBB2_1 LBB2_1: ldr x8, [sp, #8] adrp x9, _head_g@PAGE str x8, [x9, _head_g@PAGEOFF] b LBB2_3 LBB2_2: ldr x0, [sp] ldr x8, [sp] ldr x1, [x8, #8] bl _reverse_linklist_recursive ldr x8, [sp, #8] ldr x9, [sp] str x8, [x9, #8] b LBB2_3 LBB2_3: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _prt_ll ; -- Begin function prt_ll .p2align 2 _prt_ll: ; @prt_ll .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] ldur x8, [x29, #-8] str x8, [sp, #16] b LBB3_1 LBB3_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #16] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB3_3 b LBB3_2 LBB3_2: ; in Loop: Header=BB3_1 Depth=1 ldr x8, [sp, #16] ldr w9, [x8] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldr x8, [sp, #16] ldr x8, [x8, #8] str x8, [sp, #16] b LBB3_1 LBB3_3: 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, #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 x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf mov x9, sp sub x8, x29, #4 str x8, [x9] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _scanf ; kill: def $x8 killed $xzr str xzr, [sp, #24] adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf str wzr, [sp, #20] b LBB4_1 LBB4_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #20] ldur w9, [x29, #-4] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB4_4 b LBB4_2 LBB4_2: ; in Loop: Header=BB4_1 Depth=1 mov x9, sp add x8, sp, #16 str x8, [x9] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _scanf ldr w1, [sp, #16] add x0, sp, #24 bl _add_node b LBB4_3 LBB4_3: ; in Loop: Header=BB4_1 Depth=1 ldr w8, [sp, #20] add w8, w8, #1 str w8, [sp, #20] b LBB4_1 LBB4_4: ldr x0, [sp, #24] bl _prt_ll ldr x1, [sp, #24] mov x0, #0 bl _reverse_linklist_recursive adrp x8, _head_g@PAGE ldr x0, [x8, _head_g@PAGEOFF] bl _prt_ll ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _head_g ; @head_g .zerofill __DATA,__common,_head_g,8,3 .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d\t" l_.str.1: ; @.str.1 .asciz "\n" l_.str.2: ; @.str.2 .asciz "\nEnter no. items in linklist\n" l_.str.3: ; @.str.3 .asciz "%d" l_.str.4: ; @.str.4 .asciz "\nEnter elements in insert in linklist\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _getnode ## -- Begin function getnode .p2align 4, 0x90 _getnode: ## @getnode .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $16, %edi callq _malloc movq %rax, -8(%rbp) movq -8(%rbp), %rax movq $0, 8(%rax) movq -8(%rbp), %rax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _add_node ## -- Begin function add_node .p2align 4, 0x90 _add_node: ## @add_node .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) movq -8(%rbp), %rax cmpq $0, (%rax) jne LBB1_2 ## %bb.1: callq _getnode movq %rax, -24(%rbp) movl -12(%rbp), %ecx movq -24(%rbp), %rax movl %ecx, (%rax) movq -24(%rbp), %rax movq $0, 8(%rax) movq -24(%rbp), %rcx movq -8(%rbp), %rax movq %rcx, (%rax) jmp LBB1_6 LBB1_2: movq -8(%rbp), %rax movq (%rax), %rax movq %rax, -32(%rbp) LBB1_3: ## =>This Inner Loop Header: Depth=1 movq -32(%rbp), %rax cmpq $0, 8(%rax) je LBB1_5 ## %bb.4: ## in Loop: Header=BB1_3 Depth=1 movq -32(%rbp), %rax movq 8(%rax), %rax movq %rax, -32(%rbp) jmp LBB1_3 LBB1_5: callq _getnode movq %rax, -40(%rbp) movl -12(%rbp), %ecx movq -40(%rbp), %rax movl %ecx, (%rax) movq -40(%rbp), %rax movq $0, 8(%rax) movq -40(%rbp), %rcx movq -32(%rbp), %rax movq %rcx, 8(%rax) LBB1_6: addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _reverse_linklist_recursive ## -- Begin function reverse_linklist_recursive .p2align 4, 0x90 _reverse_linklist_recursive: ## @reverse_linklist_recursive .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) cmpq $0, -16(%rbp) jne LBB2_2 ## %bb.1: movq -8(%rbp), %rax movq %rax, _head_g(%rip) jmp LBB2_3 LBB2_2: movq -16(%rbp), %rdi movq -16(%rbp), %rax movq 8(%rax), %rsi callq _reverse_linklist_recursive movq -8(%rbp), %rcx movq -16(%rbp), %rax movq %rcx, 8(%rax) LBB2_3: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _prt_ll ## -- Begin function prt_ll .p2align 4, 0x90 _prt_ll: ## @prt_ll .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) movq -8(%rbp), %rax movq %rax, -16(%rbp) LBB3_1: ## =>This Inner Loop Header: Depth=1 cmpq $0, -16(%rbp) je LBB3_3 ## %bb.2: ## in Loop: Header=BB3_1 Depth=1 movq -16(%rbp), %rax movl (%rax), %esi leaq L_.str(%rip), %rdi movb $0, %al callq _printf movq -16(%rbp), %rax movq 8(%rax), %rax movq %rax, -16(%rbp) jmp LBB3_1 LBB3_3: 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 $32, %rsp leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf leaq L_.str.3(%rip), %rdi leaq -4(%rbp), %rsi movb $0, %al callq _scanf movq $0, -24(%rbp) leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf movl $0, -28(%rbp) LBB4_1: ## =>This Inner Loop Header: Depth=1 movl -28(%rbp), %eax cmpl -4(%rbp), %eax jge LBB4_4 ## %bb.2: ## in Loop: Header=BB4_1 Depth=1 leaq L_.str.3(%rip), %rdi leaq -32(%rbp), %rsi movb $0, %al callq _scanf movl -32(%rbp), %esi leaq -24(%rbp), %rdi callq _add_node ## %bb.3: ## in Loop: Header=BB4_1 Depth=1 movl -28(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) jmp LBB4_1 LBB4_4: movq -24(%rbp), %rdi callq _prt_ll movq -24(%rbp), %rsi xorl %eax, %eax movl %eax, %edi callq _reverse_linklist_recursive movq _head_g(%rip), %rdi callq _prt_ll addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _head_g ## @head_g .zerofill __DATA,__common,_head_g,8,3 .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d\t" L_.str.1: ## @.str.1 .asciz "\n" L_.str.2: ## @.str.2 .asciz "\nEnter no. items in linklist\n" L_.str.3: ## @.str.3 .asciz "%d" L_.str.4: ## @.str.4 .asciz "\nEnter elements in insert in linklist\n" .subsections_via_symbols
the_stack_data/57948943.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] 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_4 Depth 2 bl _getchar sturb w0, [x29, #-5] ands w8, w0, #0xff cset w8, eq tbnz w8, #0, LBB0_16 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldursb w8, [x29, #-5] subs w8, w8, #35 cset w8, ne tbnz w8, #0, LBB0_11 b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 b LBB0_4 LBB0_4: ; Parent Loop BB0_1 Depth=1 ; => This Inner Loop Header: Depth=2 bl _getchar sturb w0, [x29, #-5] sxtb w8, w0 subs w8, w8, #32 cset w8, eq mov w9, #0 str w9, [sp, #12] ; 4-byte Folded Spill tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_4 Depth=2 ldursb w8, [x29, #-5] subs w8, w8, #10 cset w8, ne str w8, [sp, #12] ; 4-byte Folded Spill b LBB0_6 LBB0_6: ; in Loop: Header=BB0_4 Depth=2 ldr w8, [sp, #12] ; 4-byte Folded Reload tbz w8, #0, LBB0_8 b LBB0_7 LBB0_7: ; in Loop: Header=BB0_4 Depth=2 ldr w8, [sp, #16] mov w9, #10 mul w8, w8, w9 str w8, [sp, #16] ldursb w8, [x29, #-5] subs w9, w8, #48 ldr w8, [sp, #16] add w8, w8, w9 str w8, [sp, #16] b LBB0_4 LBB0_8: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-12] ldr w9, [sp, #16] subs w8, w8, w9 cset w8, eq tbnz w8, #0, LBB0_10 b LBB0_9 LBB0_9: adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf b LBB0_16 LBB0_10: ; in Loop: Header=BB0_1 Depth=1 str wzr, [sp, #16] stur wzr, [x29, #-12] b LBB0_11 LBB0_11: ; in Loop: Header=BB0_1 Depth=1 ldursb w0, [x29, #-5] bl _putchar ldursb w8, [x29, #-5] subs w8, w8, #10 cset w8, ne tbnz w8, #0, LBB0_13 b LBB0_12 LBB0_12: b LBB0_16 LBB0_13: ; in Loop: Header=BB0_1 Depth=1 ldursb w8, [x29, #-5] subs w8, w8, #32 cset w8, eq tbnz w8, #0, LBB0_15 b LBB0_14 LBB0_14: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-12] add w8, w8, #1 stur w8, [x29, #-12] b LBB0_15 LBB0_15: ; in Loop: Header=BB0_1 Depth=1 b LBB0_1 LBB0_16: mov w0, #0 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Podaj wyrazy oddzielone spacja:\n" l_.str.1: ; @.str.1 .asciz "BLAD\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) leaq L_.str(%rip), %rdi movb $0, %al callq _printf LBB0_1: ## =>This Loop Header: Depth=1 ## Child Loop BB0_4 Depth 2 callq _getchar ## kill: def $al killed $al killed $eax movb %al, -5(%rbp) cmpb $0, %al je LBB0_16 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movsbl -5(%rbp), %eax cmpl $35, %eax jne LBB0_11 ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_4 LBB0_4: ## Parent Loop BB0_1 Depth=1 ## => This Inner Loop Header: Depth=2 callq _getchar ## kill: def $al killed $al killed $eax movb %al, -5(%rbp) movsbl %al, %ecx xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $32, %ecx movb %al, -17(%rbp) ## 1-byte Spill je LBB0_6 ## %bb.5: ## in Loop: Header=BB0_4 Depth=2 movsbl -5(%rbp), %eax cmpl $10, %eax setne %al movb %al, -17(%rbp) ## 1-byte Spill LBB0_6: ## in Loop: Header=BB0_4 Depth=2 movb -17(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB0_7 jmp LBB0_8 LBB0_7: ## in Loop: Header=BB0_4 Depth=2 imull $10, -16(%rbp), %eax movl %eax, -16(%rbp) movsbl -5(%rbp), %eax subl $48, %eax addl -16(%rbp), %eax movl %eax, -16(%rbp) jmp LBB0_4 LBB0_8: ## in Loop: Header=BB0_1 Depth=1 movl -12(%rbp), %eax cmpl -16(%rbp), %eax je LBB0_10 ## %bb.9: leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf jmp LBB0_16 LBB0_10: ## in Loop: Header=BB0_1 Depth=1 movl $0, -16(%rbp) movl $0, -12(%rbp) LBB0_11: ## in Loop: Header=BB0_1 Depth=1 movsbl -5(%rbp), %edi callq _putchar movsbl -5(%rbp), %eax cmpl $10, %eax jne LBB0_13 ## %bb.12: jmp LBB0_16 LBB0_13: ## in Loop: Header=BB0_1 Depth=1 movsbl -5(%rbp), %eax cmpl $32, %eax je LBB0_15 ## %bb.14: ## in Loop: Header=BB0_1 Depth=1 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) LBB0_15: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_1 LBB0_16: xorl %eax, %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Podaj wyrazy oddzielone spacja:\n" L_.str.1: ## @.str.1 .asciz "BLAD\n" .subsections_via_symbols
the_stack_data/103265409.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _ft_isalpha ; -- Begin function ft_isalpha .p2align 2 _ft_isalpha: ; @ft_isalpha .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #12] ldr w8, [sp, #12] subs w8, w8, #97 cset w8, lt tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: ldr w8, [sp, #12] subs w8, w8, #122 cset w8, le mov w9, #1 str w9, [sp, #8] ; 4-byte Folded Spill tbnz w8, #0, LBB0_5 b LBB0_2 LBB0_2: ldr w8, [sp, #12] subs w8, w8, #65 cset w8, lt mov w9, #0 str w9, [sp, #4] ; 4-byte Folded Spill tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: ldr w8, [sp, #12] subs w8, w8, #90 cset w8, le str w8, [sp, #4] ; 4-byte Folded Spill b LBB0_4 LBB0_4: ldr w8, [sp, #4] ; 4-byte Folded Reload str w8, [sp, #8] ; 4-byte Folded Spill b LBB0_5 LBB0_5: ldr w8, [sp, #8] ; 4-byte Folded Reload and w10, w8, #0x1 mov w9, #0 mov w8, #1024 ands w10, w10, #0x1 csel w0, w8, w9, ne 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_isalpha ## -- Begin function ft_isalpha .p2align 4, 0x90 _ft_isalpha: ## @ft_isalpha .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) cmpl $97, -4(%rbp) jl LBB0_2 ## %bb.1: movb $1, %al cmpl $122, -4(%rbp) movb %al, -5(%rbp) ## 1-byte Spill jle LBB0_5 LBB0_2: xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $65, -4(%rbp) movb %al, -6(%rbp) ## 1-byte Spill jl LBB0_4 ## %bb.3: cmpl $90, -4(%rbp) setle %al movb %al, -6(%rbp) ## 1-byte Spill LBB0_4: movb -6(%rbp), %al ## 1-byte Reload movb %al, -5(%rbp) ## 1-byte Spill LBB0_5: movb -5(%rbp), %dl ## 1-byte Reload xorl %eax, %eax movl $1024, %ecx ## imm = 0x400 testb $1, %dl cmovnel %ecx, %eax popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/960.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _snippet ; -- Begin function snippet .p2align 2 _snippet: ; @snippet .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 d0, [x29, #-8] stur d1, [x29, #-16] movi d0, #0000000000000000 stur d0, [x29, #-24] stur d0, [x29, #-32] str d0, [sp, #40] ldur d0, [x29, #-8] bl _sin str d0, [sp, #40] ldur d0, [x29, #-8] bl _cos bl _SQR stur d0, [x29, #-24] ldr d0, [sp, #40] ldur d1, [x29, #-16] fmov d3, #1.00000000 str d3, [sp] ; 8-byte Folded Spill fmsub d0, d0, d1, d3 ldr d1, [sp, #40] ldur d2, [x29, #-16] fmadd d1, d1, d2, d3 fmul d0, d0, d1 stur d0, [x29, #-32] ldur d0, [x29, #-8] bl _sin ldr d2, [sp] ; 8-byte Folded Reload str d0, [sp, #24] ; 8-byte Folded Spill ldur d0, [x29, #-24] ldur d1, [x29, #-32] bl _rf str d0, [sp, #16] ; 8-byte Folded Spill ldr d0, [sp, #40] ldur d1, [x29, #-16] fmul d0, d0, d1 bl _SQR ldr d2, [sp] ; 8-byte Folded Reload str d0, [sp, #8] ; 8-byte Folded Spill ldur d0, [x29, #-24] ldur d1, [x29, #-32] bl _rd ldr d2, [sp, #8] ; 8-byte Folded Reload ldr d1, [sp, #16] ; 8-byte Folded Reload fmov d3, d0 ldr d0, [sp, #24] ; 8-byte Folded Reload fmul d2, d2, d3 fmov d3, #3.00000000 fdiv d2, d2, d3 fsub d1, d1, d2 fmul d0, d0, d1 str d0, [sp, #32] ldr d0, [sp, #32] ldp x29, x30, [sp, #80] ; 16-byte Folded Reload add sp, sp, #96 ret .cfi_endproc ; -- End function .globl _SQR ; -- Begin function SQR .p2align 2 _SQR: ; @SQR .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str d0, [sp, #8] ldr d0, [sp, #8] ldr d1, [sp, #8] fmul d0, d0, d1 add sp, sp, #16 ret .cfi_endproc ; -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ; -- Begin function rf lCPI2_0: .quad 0xc0c3880000000000 ; double -1.0E+4 lCPI2_1: .quad 0x3fb2492492492492 ; double 0.071428571428571425 lCPI2_2: .quad 0x3fb1745d1745d174 ; double 0.068181818181818177 lCPI2_3: .quad 0x3fb999999999999a ; double 0.10000000000000001 lCPI2_4: .quad 0x3fa5555555555555 ; double 0.041666666666666664 lCPI2_5: .quad 0x3fd5555555555555 ; double 0.33333333333333331 lCPI2_6: .quad 0x47b691ca32818ed5 ; double 3.0000000000000002E+37 lCPI2_7: .quad 0x38146abcb63fdaab ; double 1.4999999999999999E-38 lCPI2_8: .quad 0x3f647ae147ae147b ; double 0.0025000000000000001 .section __TEXT,__text,regular,pure_instructions .globl _rf .p2align 2 _rf: ; @rf .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 stur d0, [x29, #-16] stur d1, [x29, #-24] stur d2, [x29, #-32] adrp x8, lCPI2_8@PAGE ldr d0, [x8, lCPI2_8@PAGEOFF] stur d0, [x29, #-40] adrp x8, lCPI2_7@PAGE ldr d0, [x8, lCPI2_7@PAGEOFF] stur d0, [x29, #-48] adrp x8, lCPI2_6@PAGE ldr d0, [x8, lCPI2_6@PAGEOFF] stur d0, [x29, #-56] adrp x8, lCPI2_5@PAGE ldr d0, [x8, lCPI2_5@PAGEOFF] stur d0, [x29, #-64] adrp x8, lCPI2_4@PAGE ldr d0, [x8, lCPI2_4@PAGEOFF] stur d0, [x29, #-72] adrp x8, lCPI2_3@PAGE ldr d0, [x8, lCPI2_3@PAGEOFF] stur d0, [x29, #-80] adrp x8, lCPI2_2@PAGE ldr d0, [x8, lCPI2_2@PAGEOFF] stur d0, [x29, #-88] adrp x8, lCPI2_1@PAGE ldr d0, [x8, lCPI2_1@PAGEOFF] stur d0, [x29, #-96] movi d0, #0000000000000000 str d0, [sp] ; 8-byte Folded Spill str d0, [sp, #104] str d0, [sp, #96] str d0, [sp, #88] str d0, [sp, #80] str d0, [sp, #72] str d0, [sp, #64] str d0, [sp, #56] str d0, [sp, #48] str d0, [sp, #40] str d0, [sp, #32] str d0, [sp, #24] str d0, [sp, #16] str d0, [sp, #8] ldur d0, [x29, #-16] ldur d1, [x29, #-24] bl _MIN ldur d1, [x29, #-32] bl _MIN fcmp d0, #0.0 cset w8, mi tbnz w8, #0, LBB2_3 b LBB2_1 LBB2_1: ldur d0, [x29, #-16] ldur d1, [x29, #-24] fadd d0, d0, d1 ldur d1, [x29, #-16] ldur d2, [x29, #-32] fadd d1, d1, d2 bl _MIN ldur d1, [x29, #-24] ldur d2, [x29, #-32] fadd d1, d1, d2 bl _MIN ldur d1, [x29, #-48] fcmp d0, d1 cset w8, mi tbnz w8, #0, LBB2_3 b LBB2_2 LBB2_2: ldur d0, [x29, #-16] ldur d1, [x29, #-24] bl _MAX ldur d1, [x29, #-32] bl _MAX ldur d1, [x29, #-56] fcmp d0, d1 cset w8, le tbnz w8, #0, LBB2_4 b LBB2_3 LBB2_3: adrp x8, lCPI2_0@PAGE ldr d0, [x8, lCPI2_0@PAGEOFF] stur d0, [x29, #-8] b LBB2_8 LBB2_4: ldur d0, [x29, #-16] str d0, [sp, #40] ldur d0, [x29, #-24] str d0, [sp, #32] ldur d0, [x29, #-32] str d0, [sp, #24] b LBB2_5 LBB2_5: ; =>This Inner Loop Header: Depth=1 ldr d0, [sp, #40] fsqrt d0, d0 str d0, [sp, #64] ldr d0, [sp, #32] fsqrt d0, d0 str d0, [sp, #56] ldr d0, [sp, #24] fsqrt d0, d0 str d0, [sp, #48] ldr d0, [sp, #64] ldr d1, [sp, #56] ldr d2, [sp, #48] fadd d1, d1, d2 ldr d2, [sp, #56] ldr d3, [sp, #48] fmul d2, d2, d3 fmadd d0, d0, d1, d2 str d0, [sp, #104] ldr d0, [sp, #40] ldr d1, [sp, #104] fadd d1, d0, d1 fmov d0, #0.25000000 fmul d1, d0, d1 str d1, [sp, #40] ldr d1, [sp, #32] ldr d2, [sp, #104] fadd d1, d1, d2 fmul d1, d0, d1 str d1, [sp, #32] ldr d1, [sp, #24] ldr d2, [sp, #104] fadd d1, d1, d2 fmul d0, d0, d1 str d0, [sp, #24] ldur d0, [x29, #-64] ldr d1, [sp, #40] ldr d2, [sp, #32] fadd d1, d1, d2 ldr d2, [sp, #24] fadd d1, d1, d2 fmul d0, d0, d1 str d0, [sp, #96] ldr d0, [sp, #96] ldr d1, [sp, #40] fsub d0, d0, d1 ldr d1, [sp, #96] fdiv d0, d0, d1 str d0, [sp, #88] ldr d0, [sp, #96] ldr d1, [sp, #32] fsub d0, d0, d1 ldr d1, [sp, #96] fdiv d0, d0, d1 str d0, [sp, #80] ldr d0, [sp, #96] ldr d1, [sp, #24] fsub d0, d0, d1 ldr d1, [sp, #96] fdiv d0, d0, d1 str d0, [sp, #72] b LBB2_6 LBB2_6: ; in Loop: Header=BB2_5 Depth=1 ldr d0, [sp, #88] fabs d0, d0 ldr d1, [sp, #80] fabs d1, d1 bl _MAX ldr d1, [sp, #72] fabs d1, d1 bl _MAX ldur d1, [x29, #-40] fcmp d0, d1 cset w8, gt tbnz w8, #0, LBB2_5 b LBB2_7 LBB2_7: ldr d0, [sp, #88] ldr d1, [sp, #80] ldr d2, [sp, #72] ldr d3, [sp, #72] fmul d2, d2, d3 fnmsub d0, d0, d1, d2 str d0, [sp, #16] ldr d0, [sp, #88] ldr d1, [sp, #80] fmul d0, d0, d1 ldr d1, [sp, #72] fmul d0, d0, d1 str d0, [sp, #8] ldur d0, [x29, #-72] ldr d1, [sp, #16] ldur d2, [x29, #-80] fnmsub d2, d0, d1, d2 ldur d0, [x29, #-88] ldr d1, [sp, #8] fmsub d0, d0, d1, d2 ldr d1, [sp, #16] fmov d2, #1.00000000 fmadd d2, d0, d1, d2 ldur d0, [x29, #-96] ldr d1, [sp, #8] fmadd d0, d0, d1, d2 stur d0, [x29, #-8] b LBB2_8 LBB2_8: ldur d0, [x29, #-8] ldp x29, x30, [sp, #208] ; 16-byte Folded Reload add sp, sp, #224 ret .cfi_endproc ; -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ; -- Begin function rd lCPI3_0: .quad 0xc08f400000000000 ; double -1000 lCPI3_1: .quad 0x3fc999999999999a ; double 0.20000000000000001 lCPI3_2: .quad 0x3fbd89d89d89d89e ; double 0.11538461538461539 lCPI3_3: .quad 0x3fda2e8ba2e8ba2f ; double 0.40909090909090912 lCPI3_4: .quad 0x3fc5555555555555 ; double 0.16666666666666666 lCPI3_5: .quad 0x3fcb6db6db6db6db ; double 0.21428571428571427 lCPI3_6: .quad 0x446e7e4171bf4d3a ; double 4.5E+21 lCPI3_7: .quad 0x3abef2d0f5da7dd9 ; double 1.0E-25 lCPI3_8: .quad 0x3f589374bc6a7efa ; double 0.0015 .section __TEXT,__text,regular,pure_instructions .globl _rd .p2align 2 _rd: ; @rd .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 stur d0, [x29, #-32] stur d1, [x29, #-40] stur d2, [x29, #-48] adrp x8, lCPI3_8@PAGE ldr d0, [x8, lCPI3_8@PAGEOFF] stur d0, [x29, #-56] adrp x8, lCPI3_7@PAGE ldr d0, [x8, lCPI3_7@PAGEOFF] stur d0, [x29, #-64] adrp x8, lCPI3_6@PAGE ldr d0, [x8, lCPI3_6@PAGEOFF] stur d0, [x29, #-72] adrp x8, lCPI3_5@PAGE ldr d0, [x8, lCPI3_5@PAGEOFF] stur d0, [x29, #-80] adrp x8, lCPI3_4@PAGE ldr d0, [x8, lCPI3_4@PAGEOFF] stur d0, [x29, #-88] adrp x8, lCPI3_3@PAGE ldr d0, [x8, lCPI3_3@PAGEOFF] stur d0, [x29, #-96] adrp x8, lCPI3_2@PAGE ldr d0, [x8, lCPI3_2@PAGEOFF] stur d0, [x29, #-104] ldur d1, [x29, #-96] fmov d0, #0.25000000 fmul d0, d0, d1 stur d0, [x29, #-112] ldur d1, [x29, #-104] fmov d0, #1.50000000 fmul d0, d0, d1 stur d0, [x29, #-120] movi d0, #0000000000000000 str d0, [sp, #8] ; 8-byte Folded Spill stur d0, [x29, #-128] fmov d1, #3.00000000 stur d1, [x29, #-136] str d0, [sp, #144] str d0, [sp, #136] str d0, [sp, #128] str d0, [sp, #120] str d0, [sp, #112] str d0, [sp, #104] str d0, [sp, #96] str d0, [sp, #88] str d0, [sp, #80] str d0, [sp, #72] str d0, [sp, #64] str d0, [sp, #56] str d0, [sp, #48] str d0, [sp, #40] str d0, [sp, #32] str d0, [sp, #24] str d0, [sp, #16] ldur d0, [x29, #-32] ldur d1, [x29, #-40] bl _MIN fcmp d0, #0.0 cset w8, mi tbnz w8, #0, LBB3_3 b LBB3_1 LBB3_1: ldur d0, [x29, #-32] ldur d1, [x29, #-40] fadd d0, d0, d1 ldur d1, [x29, #-48] bl _MIN ldur d1, [x29, #-64] fcmp d0, d1 cset w8, mi tbnz w8, #0, LBB3_3 b LBB3_2 LBB3_2: ldur d0, [x29, #-32] ldur d1, [x29, #-40] bl _MAX ldur d1, [x29, #-48] bl _MAX ldur d1, [x29, #-72] fcmp d0, d1 cset w8, le tbnz w8, #0, LBB3_4 b LBB3_3 LBB3_3: adrp x8, lCPI3_0@PAGE ldr d0, [x8, lCPI3_0@PAGEOFF] stur d0, [x29, #-24] b LBB3_8 LBB3_4: ldur d0, [x29, #-32] str d0, [sp, #32] ldur d0, [x29, #-40] str d0, [sp, #24] ldur d0, [x29, #-48] str d0, [sp, #16] movi d0, #0000000000000000 str d0, [sp, #40] fmov d0, #1.00000000 str d0, [sp, #72] b LBB3_5 LBB3_5: ; =>This Inner Loop Header: Depth=1 ldr d0, [sp, #32] fsqrt d0, d0 str d0, [sp, #64] ldr d0, [sp, #24] fsqrt d0, d0 str d0, [sp, #56] ldr d0, [sp, #16] fsqrt d0, d0 str d0, [sp, #48] ldr d0, [sp, #64] ldr d1, [sp, #56] ldr d2, [sp, #48] fadd d1, d1, d2 ldr d2, [sp, #56] ldr d3, [sp, #48] fmul d2, d2, d3 fmadd d0, d0, d1, d2 stur d0, [x29, #-128] ldr d0, [sp, #72] ldr d1, [sp, #48] ldr d2, [sp, #16] ldur d3, [x29, #-128] fadd d2, d2, d3 fmul d1, d1, d2 fdiv d1, d0, d1 ldr d0, [sp, #40] fadd d0, d0, d1 str d0, [sp, #40] ldr d1, [sp, #72] fmov d0, #0.25000000 fmul d1, d0, d1 str d1, [sp, #72] ldr d1, [sp, #32] ldur d2, [x29, #-128] fadd d1, d1, d2 fmul d1, d0, d1 str d1, [sp, #32] ldr d1, [sp, #24] ldur d2, [x29, #-128] fadd d1, d1, d2 fmul d1, d0, d1 str d1, [sp, #24] ldr d1, [sp, #16] ldur d2, [x29, #-128] fadd d1, d1, d2 fmul d0, d0, d1 str d0, [sp, #16] ldr d0, [sp, #32] ldr d1, [sp, #24] fadd d2, d0, d1 ldur d0, [x29, #-136] ldr d1, [sp, #16] fmadd d1, d0, d1, d2 adrp x8, lCPI3_1@PAGE ldr d0, [x8, lCPI3_1@PAGEOFF] fmul d0, d0, d1 str d0, [sp, #144] ldr d0, [sp, #144] ldr d1, [sp, #32] fsub d0, d0, d1 ldr d1, [sp, #144] fdiv d0, d0, d1 str d0, [sp, #136] ldr d0, [sp, #144] ldr d1, [sp, #24] fsub d0, d0, d1 ldr d1, [sp, #144] fdiv d0, d0, d1 str d0, [sp, #128] ldr d0, [sp, #144] ldr d1, [sp, #16] fsub d0, d0, d1 ldr d1, [sp, #144] fdiv d0, d0, d1 str d0, [sp, #120] b LBB3_6 LBB3_6: ; in Loop: Header=BB3_5 Depth=1 ldr d0, [sp, #136] fabs d0, d0 ldr d1, [sp, #128] fabs d1, d1 bl _MAX ldr d1, [sp, #120] fabs d1, d1 bl _MAX ldur d1, [x29, #-56] fcmp d0, d1 cset w8, gt tbnz w8, #0, LBB3_5 b LBB3_7 LBB3_7: ldr d0, [sp, #136] ldr d1, [sp, #128] fmul d0, d0, d1 str d0, [sp, #112] ldr d0, [sp, #120] ldr d1, [sp, #120] fmul d0, d0, d1 str d0, [sp, #104] ldr d0, [sp, #112] ldr d1, [sp, #104] fsub d0, d0, d1 str d0, [sp, #96] ldr d2, [sp, #112] ldr d1, [sp, #104] fmov d0, #-12.00000000 fmadd d0, d0, d1, d2 str d0, [sp, #88] ldr d0, [sp, #88] ldr d1, [sp, #96] fadd d0, d0, d1 ldr d1, [sp, #96] fadd d0, d0, d1 str d0, [sp, #80] ldr d1, [sp, #40] ldr d0, [sp, #72] ldr d2, [sp, #88] ldur d5, [x29, #-80] ldur d3, [x29, #-112] ldr d4, [sp, #88] fnmsub d5, d3, d4, d5 ldur d3, [x29, #-120] ldr d4, [sp, #120] fmul d3, d3, d4 ldr d4, [sp, #80] fmsub d3, d3, d4, d5 fmov d4, #1.00000000 fmadd d4, d2, d3, d4 ldr d2, [sp, #120] ldur d3, [x29, #-88] ldr d5, [sp, #80] ldr d6, [sp, #120] ldur d7, [x29, #-96] ldr d16, [sp, #96] ldr d17, [sp, #120] ldur d18, [x29, #-104] fmul d17, d17, d18 ldr d18, [sp, #112] fmul d17, d17, d18 fmsub d7, d7, d16, d17 fmul d6, d6, d7 fmadd d3, d3, d5, d6 fmadd d2, d2, d3, d4 fmul d0, d0, d2 ldr d2, [sp, #144] ldr d3, [sp, #144] fsqrt d3, d3 fmul d2, d2, d3 fdiv d2, d0, d2 fmov d0, #3.00000000 fmadd d0, d0, d1, d2 stur d0, [x29, #-24] b LBB3_8 LBB3_8: ldur d0, [x29, #-24] ldp x29, x30, [sp, #288] ; 16-byte Folded Reload ldp x28, x27, [sp, #272] ; 16-byte Folded Reload add sp, sp, #304 ret .cfi_endproc ; -- End function .globl _ellpi ; -- Begin function ellpi .p2align 2 _ellpi: ; @ellpi .cfi_startproc ; %bb.0: sub sp, sp, #112 .cfi_def_cfa_offset 112 stp x29, x30, [sp, #96] ; 16-byte Folded Spill add x29, sp, #96 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur d0, [x29, #-8] stur d1, [x29, #-16] stur d2, [x29, #-24] movi d0, #0000000000000000 stur d0, [x29, #-32] stur d0, [x29, #-40] str d0, [sp, #48] str d0, [sp, #40] ldur d0, [x29, #-8] bl _sin str d0, [sp, #40] ldur d0, [x29, #-16] ldr d1, [sp, #40] fmul d0, d0, d1 ldr d1, [sp, #40] fmul d0, d0, d1 stur d0, [x29, #-40] ldur d0, [x29, #-8] bl _cos bl _SQR stur d0, [x29, #-32] ldr d0, [sp, #40] ldur d1, [x29, #-24] fmov d2, #1.00000000 str d2, [sp, #8] ; 8-byte Folded Spill fmsub d0, d0, d1, d2 ldr d1, [sp, #40] ldur d3, [x29, #-24] fmadd d1, d1, d3, d2 fmul d0, d0, d1 str d0, [sp, #48] ldr d0, [sp, #40] str d0, [sp, #32] ; 8-byte Folded Spill ldur d0, [x29, #-32] ldr d1, [sp, #48] bl _rf ldr d2, [sp, #8] ; 8-byte Folded Reload str d0, [sp, #24] ; 8-byte Folded Spill ldur d0, [x29, #-40] str d0, [sp, #16] ; 8-byte Folded Spill ldur d0, [x29, #-32] ldr d1, [sp, #48] ldur d3, [x29, #-40] fadd d3, d2, d3 bl _rj ldr d2, [sp, #16] ; 8-byte Folded Reload ldr d1, [sp, #24] ; 8-byte Folded Reload fmov d3, d0 ldr d0, [sp, #32] ; 8-byte Folded Reload fmul d2, d2, d3 fmov d3, #3.00000000 fdiv d2, d2, d3 fsub d1, d1, d2 fmul d0, d0, d1 ldp x29, x30, [sp, #96] ; 16-byte Folded Reload add sp, sp, #112 ret .cfi_endproc ; -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ; -- Begin function rj lCPI5_0: .quad 0xc08f400000000000 ; double -1000 lCPI5_1: .quad 0x3fc999999999999a ; double 0.20000000000000001 lCPI5_2: .quad 0x3fbd89d89d89d89e ; double 0.11538461538461539 lCPI5_3: .quad 0x3fc1745d1745d174 ; double 0.13636363636363635 lCPI5_4: .quad 0x3fd5555555555555 ; double 0.33333333333333331 lCPI5_5: .quad 0x3fcb6db6db6db6db ; double 0.21428571428571427 lCPI5_6: .quad 0x426a3185c5000000 ; double 9.0E+11 lCPI5_7: .quad 0x3d519799812dea11 ; double 2.4999999999999999E-13 lCPI5_8: .quad 0x3f589374bc6a7efa ; double 0.0015 .section __TEXT,__text,regular,pure_instructions .globl _rj .p2align 2 _rj: ; @rj .cfi_startproc ; %bb.0: sub sp, sp, #464 .cfi_def_cfa_offset 464 stp x28, x27, [sp, #432] ; 16-byte Folded Spill stp x29, x30, [sp, #448] ; 16-byte Folded Spill add x29, sp, #448 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w27, -24 .cfi_offset w28, -32 stur d0, [x29, #-32] stur d1, [x29, #-40] stur d2, [x29, #-48] stur d3, [x29, #-56] adrp x8, lCPI5_8@PAGE ldr d0, [x8, lCPI5_8@PAGEOFF] stur d0, [x29, #-64] adrp x8, lCPI5_7@PAGE ldr d0, [x8, lCPI5_7@PAGEOFF] stur d0, [x29, #-72] adrp x8, lCPI5_6@PAGE ldr d0, [x8, lCPI5_6@PAGEOFF] stur d0, [x29, #-80] adrp x8, lCPI5_5@PAGE ldr d0, [x8, lCPI5_5@PAGEOFF] stur d0, [x29, #-88] adrp x8, lCPI5_4@PAGE ldr d0, [x8, lCPI5_4@PAGEOFF] stur d0, [x29, #-96] adrp x8, lCPI5_3@PAGE ldr d0, [x8, lCPI5_3@PAGEOFF] stur d0, [x29, #-104] adrp x8, lCPI5_2@PAGE ldr d0, [x8, lCPI5_2@PAGEOFF] stur d0, [x29, #-112] ldur d1, [x29, #-104] fmov d0, #0.75000000 fmul d0, d0, d1 stur d0, [x29, #-120] ldur d1, [x29, #-112] fmov d0, #1.50000000 fmul d0, d0, d1 stur d0, [x29, #-128] ldur d1, [x29, #-96] fmov d0, #0.50000000 fmul d0, d0, d1 stur d0, [x29, #-136] ldur d0, [x29, #-104] ldur d1, [x29, #-104] fadd d0, d0, d1 stur d0, [x29, #-144] movi d0, #0000000000000000 str d0, [sp, #72] ; 8-byte Folded Spill stur d0, [x29, #-152] stur d0, [x29, #-160] stur d0, [x29, #-168] stur d0, [x29, #-176] stur d0, [x29, #-184] stur d0, [x29, #-192] stur d0, [x29, #-200] stur d0, [x29, #-208] stur d0, [x29, #-216] str d0, [sp, #224] str d0, [sp, #216] str d0, [sp, #208] str d0, [sp, #200] str d0, [sp, #192] str d0, [sp, #184] str d0, [sp, #176] str d0, [sp, #168] str d0, [sp, #160] str d0, [sp, #152] str d0, [sp, #144] str d0, [sp, #136] str d0, [sp, #128] str d0, [sp, #120] str d0, [sp, #112] str d0, [sp, #104] str d0, [sp, #96] str d0, [sp, #88] str d0, [sp, #80] ldur d0, [x29, #-32] ldur d1, [x29, #-40] bl _MIN ldur d1, [x29, #-48] bl _MIN fcmp d0, #0.0 cset w8, mi tbnz w8, #0, LBB5_3 b LBB5_1 LBB5_1: ldur d0, [x29, #-32] ldur d1, [x29, #-40] fadd d0, d0, d1 ldur d1, [x29, #-32] ldur d2, [x29, #-48] fadd d1, d1, d2 bl _MIN str d0, [sp, #64] ; 8-byte Folded Spill ldur d0, [x29, #-40] ldur d1, [x29, #-48] fadd d0, d0, d1 ldur d1, [x29, #-56] fabs d1, d1 bl _MIN fmov d1, d0 ldr d0, [sp, #64] ; 8-byte Folded Reload bl _MIN ldur d1, [x29, #-72] fcmp d0, d1 cset w8, mi tbnz w8, #0, LBB5_3 b LBB5_2 LBB5_2: ldur d0, [x29, #-32] ldur d1, [x29, #-40] bl _MAX str d0, [sp, #56] ; 8-byte Folded Spill ldur d0, [x29, #-48] ldur d1, [x29, #-56] fabs d1, d1 bl _MAX fmov d1, d0 ldr d0, [sp, #56] ; 8-byte Folded Reload bl _MAX ldur d1, [x29, #-80] fcmp d0, d1 cset w8, le tbnz w8, #0, LBB5_4 b LBB5_3 LBB5_3: adrp x8, lCPI5_0@PAGE ldr d0, [x8, lCPI5_0@PAGEOFF] stur d0, [x29, #-24] b LBB5_13 LBB5_4: movi d0, #0000000000000000 str d0, [sp, #112] fmov d0, #1.00000000 str d0, [sp, #168] ldur d0, [x29, #-56] fcmp d0, #0.0 cset w8, le tbnz w8, #0, LBB5_6 b LBB5_5 LBB5_5: ldur d0, [x29, #-32] str d0, [sp, #96] ldur d0, [x29, #-40] str d0, [sp, #88] ldur d0, [x29, #-48] str d0, [sp, #80] ldur d0, [x29, #-56] str d0, [sp, #160] b LBB5_7 LBB5_6: ldur d0, [x29, #-32] ldur d1, [x29, #-40] bl _MIN ldur d1, [x29, #-48] bl _MIN str d0, [sp, #96] ldur d0, [x29, #-32] ldur d1, [x29, #-40] bl _MAX ldur d1, [x29, #-48] bl _MAX str d0, [sp, #80] ldur d0, [x29, #-32] ldur d1, [x29, #-40] fadd d0, d0, d1 ldur d1, [x29, #-48] fadd d0, d0, d1 ldr d1, [sp, #96] fsub d0, d0, d1 ldr d1, [sp, #80] fsub d0, d0, d1 str d0, [sp, #88] ldr d0, [sp, #88] ldur d1, [x29, #-56] fsub d1, d0, d1 fmov d0, #1.00000000 fdiv d0, d0, d1 stur d0, [x29, #-152] ldur d0, [x29, #-152] ldr d1, [sp, #80] ldr d2, [sp, #88] fsub d1, d1, d2 fmul d0, d0, d1 ldr d1, [sp, #88] ldr d2, [sp, #96] fsub d1, d1, d2 fmul d0, d0, d1 stur d0, [x29, #-192] ldr d0, [sp, #88] ldur d1, [x29, #-192] fadd d0, d0, d1 str d0, [sp, #160] ldr d0, [sp, #96] ldr d1, [sp, #80] fmul d0, d0, d1 ldr d1, [sp, #88] fdiv d0, d0, d1 str d0, [sp, #144] ldur d0, [x29, #-56] ldr d1, [sp, #160] fmul d0, d0, d1 ldr d1, [sp, #88] fdiv d0, d0, d1 str d0, [sp, #104] ldr d0, [sp, #144] ldr d1, [sp, #104] bl _rc str d0, [sp, #152] b LBB5_7 LBB5_7: b LBB5_8 LBB5_8: ; =>This Inner Loop Header: Depth=1 ldr d0, [sp, #96] fsqrt d0, d0 str d0, [sp, #136] ldr d0, [sp, #88] fsqrt d0, d0 str d0, [sp, #128] ldr d0, [sp, #80] fsqrt d0, d0 str d0, [sp, #120] ldr d0, [sp, #136] ldr d1, [sp, #128] ldr d2, [sp, #120] fadd d1, d1, d2 ldr d2, [sp, #128] ldr d3, [sp, #120] fmul d2, d2, d3 fmadd d0, d0, d1, d2 stur d0, [x29, #-160] ldr d0, [sp, #160] ldr d1, [sp, #136] ldr d2, [sp, #128] fadd d1, d1, d2 ldr d2, [sp, #120] fadd d1, d1, d2 ldr d2, [sp, #136] ldr d3, [sp, #128] fmul d2, d2, d3 ldr d3, [sp, #120] fmul d2, d2, d3 fmadd d0, d0, d1, d2 bl _SQR stur d0, [x29, #-168] ldr d0, [sp, #160] str d0, [sp, #40] ; 8-byte Folded Spill ldr d0, [sp, #160] ldur d1, [x29, #-160] fadd d0, d0, d1 bl _SQR fmov d1, d0 ldr d0, [sp, #40] ; 8-byte Folded Reload fmul d0, d0, d1 stur d0, [x29, #-200] ldr d0, [sp, #168] str d0, [sp, #48] ; 8-byte Folded Spill ldur d0, [x29, #-168] ldur d1, [x29, #-200] bl _rc fmov d1, d0 ldr d0, [sp, #48] ; 8-byte Folded Reload ldr d2, [sp, #112] fmadd d0, d0, d1, d2 str d0, [sp, #112] ldr d1, [sp, #168] fmov d0, #0.25000000 fmul d1, d0, d1 str d1, [sp, #168] ldr d1, [sp, #96] ldur d2, [x29, #-160] fadd d1, d1, d2 fmul d1, d0, d1 str d1, [sp, #96] ldr d1, [sp, #88] ldur d2, [x29, #-160] fadd d1, d1, d2 fmul d1, d0, d1 str d1, [sp, #88] ldr d1, [sp, #80] ldur d2, [x29, #-160] fadd d1, d1, d2 fmul d1, d0, d1 str d1, [sp, #80] ldr d1, [sp, #160] ldur d2, [x29, #-160] fadd d1, d1, d2 fmul d0, d0, d1 str d0, [sp, #160] ldr d0, [sp, #96] ldr d1, [sp, #88] fadd d0, d0, d1 ldr d1, [sp, #80] fadd d0, d0, d1 ldr d1, [sp, #160] fadd d0, d0, d1 ldr d1, [sp, #160] fadd d1, d0, d1 adrp x8, lCPI5_1@PAGE ldr d0, [x8, lCPI5_1@PAGEOFF] fmul d0, d0, d1 stur d0, [x29, #-184] ldur d0, [x29, #-184] ldr d1, [sp, #96] fsub d0, d0, d1 ldur d1, [x29, #-184] fdiv d0, d0, d1 stur d0, [x29, #-216] ldur d0, [x29, #-184] ldr d1, [sp, #88] fsub d0, d0, d1 ldur d1, [x29, #-184] fdiv d0, d0, d1 str d0, [sp, #224] ldur d0, [x29, #-184] ldr d1, [sp, #80] fsub d0, d0, d1 ldur d1, [x29, #-184] fdiv d0, d0, d1 str d0, [sp, #216] ldur d0, [x29, #-184] ldr d1, [sp, #160] fsub d0, d0, d1 ldur d1, [x29, #-184] fdiv d0, d0, d1 stur d0, [x29, #-208] b LBB5_9 LBB5_9: ; in Loop: Header=BB5_8 Depth=1 ldur d0, [x29, #-216] fabs d0, d0 ldr d1, [sp, #224] fabs d1, d1 bl _MAX str d0, [sp, #32] ; 8-byte Folded Spill ldr d0, [sp, #216] fabs d0, d0 ldur d1, [x29, #-208] fabs d1, d1 bl _MAX fmov d1, d0 ldr d0, [sp, #32] ; 8-byte Folded Reload bl _MAX ldur d1, [x29, #-64] fcmp d0, d1 cset w8, gt tbnz w8, #0, LBB5_8 b LBB5_10 LBB5_10: ldur d0, [x29, #-216] ldr d1, [sp, #224] ldr d2, [sp, #216] fadd d1, d1, d2 ldr d2, [sp, #224] ldr d3, [sp, #216] fmul d2, d2, d3 fmadd d0, d0, d1, d2 str d0, [sp, #208] ldur d0, [x29, #-216] ldr d1, [sp, #224] fmul d0, d0, d1 ldr d1, [sp, #216] fmul d0, d0, d1 str d0, [sp, #200] ldur d0, [x29, #-208] ldur d1, [x29, #-208] fmul d0, d0, d1 str d0, [sp, #192] ldr d2, [sp, #208] ldr d1, [sp, #192] fmov d0, #-3.00000000 fmadd d0, d0, d1, d2 str d0, [sp, #184] ldr d2, [sp, #200] ldur d1, [x29, #-208] fmov d0, #2.00000000 fmul d0, d0, d1 ldr d1, [sp, #208] ldr d3, [sp, #192] fsub d1, d1, d3 fmadd d0, d0, d1, d2 str d0, [sp, #176] ldr d1, [sp, #112] ldr d0, [sp, #168] ldr d2, [sp, #184] ldur d5, [x29, #-88] ldur d3, [x29, #-120] ldr d4, [sp, #184] fnmsub d5, d3, d4, d5 ldur d3, [x29, #-128] ldr d4, [sp, #176] fmsub d3, d3, d4, d5 fmov d4, #1.00000000 fmadd d4, d2, d3, d4 ldr d2, [sp, #200] ldur d6, [x29, #-136] ldur d3, [x29, #-208] ldur d16, [x29, #-144] ldur d5, [x29, #-208] ldur d7, [x29, #-112] fnmsub d5, d5, d7, d16 fmadd d3, d3, d5, d6 fmadd d4, d2, d3, d4 ldur d2, [x29, #-208] ldr d3, [sp, #208] fmul d2, d2, d3 ldur d6, [x29, #-96] ldur d3, [x29, #-208] ldur d5, [x29, #-104] fmsub d3, d3, d5, d6 fmadd d4, d2, d3, d4 ldur d2, [x29, #-96] ldur d3, [x29, #-208] fmul d2, d2, d3 ldr d3, [sp, #192] fmsub d2, d2, d3, d4 fmul d0, d0, d2 ldur d2, [x29, #-184] ldur d3, [x29, #-184] fsqrt d3, d3 fmul d2, d2, d3 fdiv d2, d0, d2 fmov d0, #3.00000000 fmadd d0, d0, d1, d2 stur d0, [x29, #-176] ldur d0, [x29, #-56] fcmp d0, #0.0 cset w8, hi tbnz w8, #0, LBB5_12 b LBB5_11 LBB5_11: ldur d0, [x29, #-152] str d0, [sp, #24] ; 8-byte Folded Spill ldur d0, [x29, #-192] str d0, [sp, #16] ; 8-byte Folded Spill ldur d0, [x29, #-176] str d0, [sp, #8] ; 8-byte Folded Spill ldr d0, [sp, #152] str d0, [sp] ; 8-byte Folded Spill ldr d0, [sp, #96] ldr d1, [sp, #88] ldr d2, [sp, #80] bl _rf ldr d3, [sp] ; 8-byte Folded Reload ldr d2, [sp, #8] ; 8-byte Folded Reload ldr d1, [sp, #16] ; 8-byte Folded Reload fmov d4, d0 ldr d0, [sp, #24] ; 8-byte Folded Reload fsub d4, d3, d4 fmov d3, #3.00000000 fmul d3, d3, d4 fmadd d1, d1, d2, d3 fmul d0, d0, d1 stur d0, [x29, #-176] b LBB5_12 LBB5_12: ldur d0, [x29, #-176] stur d0, [x29, #-24] b LBB5_13 LBB5_13: ldur d0, [x29, #-24] ldp x29, x30, [sp, #448] ; 16-byte Folded Reload ldp x28, x27, [sp, #432] ; 16-byte Folded Reload add sp, sp, #464 ret .cfi_endproc ; -- End function .globl _SIGN ; -- Begin function SIGN .p2align 2 _SIGN: ; @SIGN .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 str d0, [sp, #40] str d1, [sp, #32] ldr d0, [sp, #32] fcmp d0, #0.0 cset w8, lt tbnz w8, #0, LBB6_5 b LBB6_1 LBB6_1: ldr d0, [sp, #40] fcmp d0, #0.0 cset w8, lt tbnz w8, #0, LBB6_3 b LBB6_2 LBB6_2: ldr d0, [sp, #40] str d0, [sp, #24] ; 8-byte Folded Spill b LBB6_4 LBB6_3: ldr d0, [sp, #40] fneg d0, d0 str d0, [sp, #24] ; 8-byte Folded Spill b LBB6_4 LBB6_4: ldr d0, [sp, #24] ; 8-byte Folded Reload str d0, [sp, #16] ; 8-byte Folded Spill b LBB6_9 LBB6_5: ldr d0, [sp, #40] fcmp d0, #0.0 cset w8, lt tbnz w8, #0, LBB6_7 b LBB6_6 LBB6_6: ldr d0, [sp, #40] fneg d0, d0 str d0, [sp, #8] ; 8-byte Folded Spill b LBB6_8 LBB6_7: ldr d0, [sp, #40] str d0, [sp, #8] ; 8-byte Folded Spill b LBB6_8 LBB6_8: ldr d0, [sp, #8] ; 8-byte Folded Reload str d0, [sp, #16] ; 8-byte Folded Spill b LBB6_9 LBB6_9: ldr d0, [sp, #16] ; 8-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _MAX ; -- Begin function MAX .p2align 2 _MAX: ; @MAX .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str d0, [sp, #24] str d1, [sp, #16] ldr d0, [sp, #16] ldr d1, [sp, #24] fcmp d0, d1 cset w8, le tbnz w8, #0, LBB7_2 b LBB7_1 LBB7_1: ldr d0, [sp, #16] str d0, [sp, #8] ; 8-byte Folded Spill b LBB7_3 LBB7_2: ldr d0, [sp, #24] str d0, [sp, #8] ; 8-byte Folded Spill b LBB7_3 LBB7_3: ldr d0, [sp, #8] ; 8-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _MIN ; -- Begin function MIN .p2align 2 _MIN: ; @MIN .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str d0, [sp, #24] str d1, [sp, #16] ldr d0, [sp, #16] ldr d1, [sp, #24] fcmp d0, d1 cset w8, pl tbnz w8, #0, LBB8_2 b LBB8_1 LBB8_1: ldr d0, [sp, #16] str d0, [sp, #8] ; 8-byte Folded Spill b LBB8_3 LBB8_2: ldr d0, [sp, #24] str d0, [sp, #8] ; 8-byte Folded Spill b LBB8_3 LBB8_3: ldr d0, [sp, #8] ; 8-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ; -- Begin function rc lCPI9_0: .quad 0xc0c3880000000000 ; double -1.0E+4 lCPI9_1: .quad 0x3fda2e8ba2e8ba2f ; double 0.40909090909090912 lCPI9_2: .quad 0x3fc2492492492492 ; double 0.14285714285714285 lCPI9_3: .quad 0x3fd47ae147ae147b ; double 0.32000000000000001 lCPI9_4: .quad 0x3fd5555555555555 ; double 0.33333333333333331 lCPI9_5: .quad 0x4001e353f7ced917 ; double 2.2360000000000002 lCPI9_6: .quad 0x47b691ca32818ed5 ; double 3.0000000000000002E+37 lCPI9_7: .quad 0x3c032f42da36d5bd ; double 1.3000000000000001E-19 lCPI9_8: .quad 0x381700ca601b91ac ; double 1.6899999999999999E-38 lCPI9_9: .quad 0x3f53a92a30553261 ; double 0.0011999999999999999 .section __TEXT,__text,regular,pure_instructions .globl _rc .p2align 2 _rc: ; @rc .cfi_startproc ; %bb.0: sub sp, sp, #176 .cfi_def_cfa_offset 176 str d0, [sp, #160] str d1, [sp, #152] adrp x8, lCPI9_9@PAGE ldr d0, [x8, lCPI9_9@PAGEOFF] str d0, [sp, #144] adrp x8, lCPI9_8@PAGE ldr d0, [x8, lCPI9_8@PAGEOFF] str d0, [sp, #136] adrp x8, lCPI9_7@PAGE ldr d0, [x8, lCPI9_7@PAGEOFF] str d0, [sp, #128] adrp x8, lCPI9_6@PAGE ldr d0, [x8, lCPI9_6@PAGEOFF] str d0, [sp, #120] ldr d0, [sp, #136] ldr d1, [sp, #120] fmul d0, d0, d1 str d0, [sp, #112] ldr d1, [sp, #128] adrp x8, lCPI9_5@PAGE ldr d0, [x8, lCPI9_5@PAGEOFF] fdiv d0, d0, d1 str d0, [sp, #104] ldr d0, [sp, #112] ldr d1, [sp, #112] fmul d0, d0, d1 fmov d1, #25.00000000 fdiv d0, d0, d1 str d0, [sp, #96] adrp x8, lCPI9_4@PAGE ldr d0, [x8, lCPI9_4@PAGEOFF] str d0, [sp, #88] adrp x8, lCPI9_3@PAGE ldr d0, [x8, lCPI9_3@PAGEOFF] str d0, [sp, #80] adrp x8, lCPI9_2@PAGE ldr d0, [x8, lCPI9_2@PAGEOFF] str d0, [sp, #72] fmov d0, #0.37500000 str d0, [sp, #64] adrp x8, lCPI9_1@PAGE ldr d0, [x8, lCPI9_1@PAGEOFF] str d0, [sp, #56] movi d0, #0000000000000000 str d0, [sp, #48] str d0, [sp, #40] str d0, [sp, #32] str d0, [sp, #24] str d0, [sp, #16] str d0, [sp, #8] ldr d0, [sp, #160] fcmp d0, #0.0 cset w8, mi tbnz w8, #0, LBB9_4 b LBB9_1 LBB9_1: ldr d0, [sp, #152] fcmp d0, #0.0 cset w8, eq tbnz w8, #0, LBB9_4 b LBB9_2 LBB9_2: ldr d0, [sp, #160] ldr d1, [sp, #152] fabs d1, d1 fadd d0, d0, d1 ldr d1, [sp, #136] fcmp d0, d1 cset w8, mi tbnz w8, #0, LBB9_4 b LBB9_3 LBB9_3: ldr d0, [sp, #160] ldr d1, [sp, #152] fabs d1, d1 fadd d0, d0, d1 ldr d1, [sp, #120] fcmp d0, d1 cset w8, le tbnz w8, #0, LBB9_5 b LBB9_4 LBB9_4: adrp x8, lCPI9_0@PAGE ldr d0, [x8, lCPI9_0@PAGEOFF] str d0, [sp, #168] b LBB9_12 LBB9_5: ldr d0, [sp, #152] fcmp d0, #0.0 cset w8, le tbnz w8, #0, LBB9_7 b LBB9_6 LBB9_6: ldr d1, [sp, #160] ldr d0, [sp, #16] fadd d0, d0, d1 str d0, [sp, #16] ldr d1, [sp, #152] ldr d0, [sp, #8] fadd d0, d0, d1 str d0, [sp, #8] ldr d0, [sp, #24] fmov d1, #1.00000000 fadd d0, d0, d1 str d0, [sp, #24] b LBB9_8 LBB9_7: ldr d0, [sp, #160] ldr d1, [sp, #152] fsub d1, d0, d1 ldr d0, [sp, #16] fadd d0, d0, d1 str d0, [sp, #16] ldr d0, [sp, #152] fneg d1, d0 ldr d0, [sp, #8] fadd d0, d0, d1 str d0, [sp, #8] ldr d0, [sp, #160] fsqrt d0, d0 ldr d1, [sp, #16] fsqrt d1, d1 fdiv d1, d0, d1 ldr d0, [sp, #24] fadd d0, d0, d1 str d0, [sp, #24] b LBB9_8 LBB9_8: b LBB9_9 LBB9_9: ; =>This Inner Loop Header: Depth=1 ldr d0, [sp, #16] fsqrt d1, d0 fmov d0, #2.00000000 fmul d0, d0, d1 ldr d1, [sp, #8] fsqrt d1, d1 ldr d2, [sp, #8] fmadd d1, d0, d1, d2 ldr d0, [sp, #48] fmul d0, d0, d1 str d0, [sp, #48] ldr d0, [sp, #16] ldr d1, [sp, #48] fadd d1, d0, d1 fmov d0, #0.25000000 fmul d1, d0, d1 str d1, [sp, #16] ldr d1, [sp, #8] ldr d2, [sp, #48] fadd d1, d1, d2 fmul d0, d0, d1 str d0, [sp, #8] ldr d0, [sp, #88] ldr d1, [sp, #16] ldr d2, [sp, #8] fmul d1, d1, d2 ldr d2, [sp, #8] fmul d1, d1, d2 ldr d2, [sp, #40] fmadd d0, d0, d1, d2 str d0, [sp, #40] ldr d0, [sp, #8] ldr d1, [sp, #40] fsub d0, d0, d1 ldr d1, [sp, #40] fdiv d0, d0, d1 str d0, [sp, #32] b LBB9_10 LBB9_10: ; in Loop: Header=BB9_9 Depth=1 ldr d0, [sp, #32] fabs d0, d0 ldr d1, [sp, #144] fcmp d0, d1 cset w8, gt tbnz w8, #0, LBB9_9 b LBB9_11 LBB9_11: ldr d0, [sp, #24] ldr d1, [sp, #32] ldr d2, [sp, #32] fmul d1, d1, d2 ldr d4, [sp, #80] ldr d2, [sp, #32] ldr d6, [sp, #72] ldr d3, [sp, #32] ldr d16, [sp, #64] ldr d5, [sp, #32] ldr d7, [sp, #56] fmadd d5, d5, d7, d16 fmadd d3, d3, d5, d6 fmadd d2, d2, d3, d4 fmov d3, #1.00000000 fmadd d1, d1, d2, d3 fmul d0, d0, d1 str d0, [sp, #168] b LBB9_12 LBB9_12: ldr d0, [sp, #168] add sp, sp, #176 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __TEXT,__literal8,8byte_literals .p2align 3 ## -- Begin function snippet LCPI0_0: .quad 0x4008000000000000 ## double 3 LCPI0_1: .quad 0x3ff0000000000000 ## double 1 .section __TEXT,__text,regular,pure_instructions .globl _snippet .p2align 4, 0x90 _snippet: ## @snippet .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $80, %rsp movsd %xmm0, -8(%rbp) movsd %xmm1, -16(%rbp) xorps %xmm0, %xmm0 movsd %xmm0, -24(%rbp) xorps %xmm0, %xmm0 movsd %xmm0, -32(%rbp) xorps %xmm0, %xmm0 movsd %xmm0, -40(%rbp) movsd -8(%rbp), %xmm0 ## xmm0 = mem[0],zero callq _sin movsd %xmm0, -40(%rbp) movsd -8(%rbp), %xmm0 ## xmm0 = mem[0],zero callq _cos callq _SQR movsd %xmm0, -24(%rbp) movsd -40(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd -16(%rbp), %xmm1 ## xmm1 = mem[0],zero movq %xmm0, %rax movabsq $-9223372036854775808, %rcx ## imm = 0x8000000000000000 xorq %rcx, %rax movq %rax, %xmm0 mulsd %xmm1, %xmm0 movsd LCPI0_1(%rip), %xmm1 ## xmm1 = mem[0],zero addsd %xmm1, %xmm0 movsd -40(%rbp), %xmm1 ## xmm1 = mem[0],zero movsd -16(%rbp), %xmm2 ## xmm2 = mem[0],zero mulsd %xmm2, %xmm1 movsd LCPI0_1(%rip), %xmm2 ## xmm2 = mem[0],zero addsd %xmm2, %xmm1 mulsd %xmm1, %xmm0 movsd %xmm0, -32(%rbp) movsd -8(%rbp), %xmm0 ## xmm0 = mem[0],zero callq _sin movsd %xmm0, -56(%rbp) ## 8-byte Spill movsd -24(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd -32(%rbp), %xmm1 ## xmm1 = mem[0],zero movsd LCPI0_1(%rip), %xmm2 ## xmm2 = mem[0],zero callq _rf movsd %xmm0, -64(%rbp) ## 8-byte Spill movsd -40(%rbp), %xmm0 ## xmm0 = mem[0],zero mulsd -16(%rbp), %xmm0 callq _SQR movsd %xmm0, -72(%rbp) ## 8-byte Spill movsd -24(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd -32(%rbp), %xmm1 ## xmm1 = mem[0],zero movsd LCPI0_1(%rip), %xmm2 ## xmm2 = mem[0],zero callq _rd movsd -72(%rbp), %xmm2 ## 8-byte Reload ## xmm2 = mem[0],zero movsd -64(%rbp), %xmm1 ## 8-byte Reload ## xmm1 = mem[0],zero movaps %xmm0, %xmm3 movsd -56(%rbp), %xmm0 ## 8-byte Reload ## xmm0 = mem[0],zero mulsd %xmm3, %xmm2 movsd LCPI0_0(%rip), %xmm3 ## xmm3 = mem[0],zero divsd %xmm3, %xmm2 subsd %xmm2, %xmm1 mulsd %xmm1, %xmm0 movsd %xmm0, -48(%rbp) movsd -48(%rbp), %xmm0 ## xmm0 = mem[0],zero addq $80, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _SQR ## -- Begin function SQR .p2align 4, 0x90 _SQR: ## @SQR .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movsd %xmm0, -8(%rbp) movsd -8(%rbp), %xmm0 ## xmm0 = mem[0],zero mulsd -8(%rbp), %xmm0 popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ## -- Begin function rf LCPI2_0: .quad 0x3fb2492492492492 ## double 0.071428571428571425 LCPI2_1: .quad 0x3fb1745d1745d174 ## double 0.068181818181818177 LCPI2_2: .quad 0x3fb999999999999a ## double 0.10000000000000001 LCPI2_3: .quad 0x3fa5555555555555 ## double 0.041666666666666664 LCPI2_4: .quad 0x3fd5555555555555 ## double 0.33333333333333331 LCPI2_5: .quad 0x47b691ca32818ed5 ## double 3.0000000000000002E+37 LCPI2_6: .quad 0x38146abcb63fdaab ## double 1.4999999999999999E-38 LCPI2_7: .quad 0x3f647ae147ae147b ## double 0.0025000000000000001 LCPI2_8: .quad 0x3fd0000000000000 ## double 0.25 LCPI2_10: .quad 0x3ff0000000000000 ## double 1 LCPI2_11: .quad 0xc0c3880000000000 ## double -1.0E+4 .section __TEXT,__literal16,16byte_literals .p2align 4 LCPI2_9: .quad 0x7fffffffffffffff ## double NaN .quad 0x7fffffffffffffff ## double NaN .section __TEXT,__text,regular,pure_instructions .globl _rf .p2align 4, 0x90 _rf: ## @rf .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 movsd %xmm0, -16(%rbp) movsd %xmm1, -24(%rbp) movsd %xmm2, -32(%rbp) movsd LCPI2_7(%rip), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -40(%rbp) movsd LCPI2_6(%rip), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -48(%rbp) movsd LCPI2_5(%rip), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -56(%rbp) movsd LCPI2_4(%rip), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -64(%rbp) movsd LCPI2_3(%rip), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -72(%rbp) movsd LCPI2_2(%rip), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -80(%rbp) movsd LCPI2_1(%rip), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -88(%rbp) movsd LCPI2_0(%rip), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -96(%rbp) xorps %xmm0, %xmm0 movsd %xmm0, -104(%rbp) xorps %xmm0, %xmm0 movsd %xmm0, -112(%rbp) xorps %xmm0, %xmm0 movsd %xmm0, -120(%rbp) xorps %xmm0, %xmm0 movsd %xmm0, -128(%rbp) xorps %xmm0, %xmm0 movsd %xmm0, -136(%rbp) xorps %xmm0, %xmm0 movsd %xmm0, -144(%rbp) xorps %xmm0, %xmm0 movsd %xmm0, -152(%rbp) xorps %xmm0, %xmm0 movsd %xmm0, -160(%rbp) xorps %xmm0, %xmm0 movsd %xmm0, -168(%rbp) xorps %xmm0, %xmm0 movsd %xmm0, -176(%rbp) xorps %xmm0, %xmm0 movsd %xmm0, -184(%rbp) xorps %xmm0, %xmm0 movsd %xmm0, -192(%rbp) xorps %xmm0, %xmm0 movsd %xmm0, -200(%rbp) movsd -16(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd -24(%rbp), %xmm1 ## xmm1 = mem[0],zero callq _MIN movsd -32(%rbp), %xmm1 ## xmm1 = mem[0],zero callq _MIN movaps %xmm0, %xmm1 xorps %xmm0, %xmm0 ucomisd %xmm1, %xmm0 ja LBB2_3 ## %bb.1: movsd -16(%rbp), %xmm0 ## xmm0 = mem[0],zero addsd -24(%rbp), %xmm0 movsd -16(%rbp), %xmm1 ## xmm1 = mem[0],zero addsd -32(%rbp), %xmm1 callq _MIN movsd -24(%rbp), %xmm1 ## xmm1 = mem[0],zero addsd -32(%rbp), %xmm1 callq _MIN movaps %xmm0, %xmm1 movsd -48(%rbp), %xmm0 ## xmm0 = mem[0],zero ucomisd %xmm1, %xmm0 ja LBB2_3 ## %bb.2: movsd -16(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd -24(%rbp), %xmm1 ## xmm1 = mem[0],zero callq _MAX movsd -32(%rbp), %xmm1 ## xmm1 = mem[0],zero callq _MAX ucomisd -56(%rbp), %xmm0 jbe LBB2_4 LBB2_3: movsd LCPI2_11(%rip), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -8(%rbp) jmp LBB2_8 LBB2_4: movsd -16(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -168(%rbp) movsd -24(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -176(%rbp) movsd -32(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -184(%rbp) LBB2_5: ## =>This Inner Loop Header: Depth=1 movsd -168(%rbp), %xmm0 ## xmm0 = mem[0],zero sqrtsd %xmm0, %xmm0 movsd %xmm0, -144(%rbp) movsd -176(%rbp), %xmm0 ## xmm0 = mem[0],zero sqrtsd %xmm0, %xmm0 movsd %xmm0, -152(%rbp) movsd -184(%rbp), %xmm0 ## xmm0 = mem[0],zero sqrtsd %xmm0, %xmm0 movsd %xmm0, -160(%rbp) movsd -144(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd -152(%rbp), %xmm2 ## xmm2 = mem[0],zero addsd -160(%rbp), %xmm2 movsd -152(%rbp), %xmm1 ## xmm1 = mem[0],zero mulsd -160(%rbp), %xmm1 mulsd %xmm2, %xmm0 addsd %xmm1, %xmm0 movsd %xmm0, -104(%rbp) movsd -168(%rbp), %xmm1 ## xmm1 = mem[0],zero addsd -104(%rbp), %xmm1 movsd LCPI2_8(%rip), %xmm0 ## xmm0 = mem[0],zero mulsd %xmm1, %xmm0 movsd %xmm0, -168(%rbp) movsd -176(%rbp), %xmm1 ## xmm1 = mem[0],zero addsd -104(%rbp), %xmm1 movsd LCPI2_8(%rip), %xmm0 ## xmm0 = mem[0],zero mulsd %xmm1, %xmm0 movsd %xmm0, -176(%rbp) movsd -184(%rbp), %xmm1 ## xmm1 = mem[0],zero addsd -104(%rbp), %xmm1 movsd LCPI2_8(%rip), %xmm0 ## xmm0 = mem[0],zero mulsd %xmm1, %xmm0 movsd %xmm0, -184(%rbp) movsd -64(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd -168(%rbp), %xmm1 ## xmm1 = mem[0],zero addsd -176(%rbp), %xmm1 addsd -184(%rbp), %xmm1 mulsd %xmm1, %xmm0 movsd %xmm0, -112(%rbp) movsd -112(%rbp), %xmm0 ## xmm0 = mem[0],zero subsd -168(%rbp), %xmm0 divsd -112(%rbp), %xmm0 movsd %xmm0, -120(%rbp) movsd -112(%rbp), %xmm0 ## xmm0 = mem[0],zero subsd -176(%rbp), %xmm0 divsd -112(%rbp), %xmm0 movsd %xmm0, -128(%rbp) movsd -112(%rbp), %xmm0 ## xmm0 = mem[0],zero subsd -184(%rbp), %xmm0 divsd -112(%rbp), %xmm0 movsd %xmm0, -136(%rbp) ## %bb.6: ## in Loop: Header=BB2_5 Depth=1 movsd -120(%rbp), %xmm0 ## xmm0 = mem[0],zero movaps LCPI2_9(%rip), %xmm1 ## xmm1 = [NaN,NaN] pand %xmm1, %xmm0 movsd -128(%rbp), %xmm1 ## xmm1 = mem[0],zero movaps LCPI2_9(%rip), %xmm2 ## xmm2 = [NaN,NaN] pand %xmm2, %xmm1 callq _MAX movsd -136(%rbp), %xmm1 ## xmm1 = mem[0],zero movaps LCPI2_9(%rip), %xmm2 ## xmm2 = [NaN,NaN] pand %xmm2, %xmm1 callq _MAX ucomisd -40(%rbp), %xmm0 ja LBB2_5 ## %bb.7: movsd -120(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd -128(%rbp), %xmm2 ## xmm2 = mem[0],zero movsd -136(%rbp), %xmm1 ## xmm1 = mem[0],zero mulsd -136(%rbp), %xmm1 movq %xmm1, %rax movabsq $-9223372036854775808, %rcx ## imm = 0x8000000000000000 xorq %rcx, %rax movq %rax, %xmm1 mulsd %xmm2, %xmm0 addsd %xmm1, %xmm0 movsd %xmm0, -192(%rbp) movsd -120(%rbp), %xmm0 ## xmm0 = mem[0],zero mulsd -128(%rbp), %xmm0 mulsd -136(%rbp), %xmm0 movsd %xmm0, -200(%rbp) movsd -72(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd -192(%rbp), %xmm2 ## xmm2 = mem[0],zero movsd -80(%rbp), %xmm1 ## xmm1 = mem[0],zero movq %xmm1, %rax movabsq $-9223372036854775808, %rcx ## imm = 0x8000000000000000 xorq %rcx, %rax movq %rax, %xmm1 mulsd %xmm2, %xmm0 addsd %xmm1, %xmm0 movsd -88(%rbp), %xmm1 ## xmm1 = mem[0],zero movsd -200(%rbp), %xmm2 ## xmm2 = mem[0],zero movq %xmm1, %rax movabsq $-9223372036854775808, %rcx ## imm = 0x8000000000000000 xorq %rcx, %rax movq %rax, %xmm1 mulsd %xmm2, %xmm1 addsd %xmm0, %xmm1 movsd -192(%rbp), %xmm0 ## xmm0 = mem[0],zero mulsd %xmm0, %xmm1 movsd LCPI2_10(%rip), %xmm0 ## xmm0 = mem[0],zero addsd %xmm0, %xmm1 movsd -96(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd -200(%rbp), %xmm2 ## xmm2 = mem[0],zero mulsd %xmm2, %xmm0 addsd %xmm1, %xmm0 movsd %xmm0, -8(%rbp) LBB2_8: movsd -8(%rbp), %xmm0 ## xmm0 = mem[0],zero addq $208, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ## -- Begin function rd LCPI3_0: .quad 0x4008000000000000 ## double 3 LCPI3_1: .quad 0x3ff8000000000000 ## double 1.5 LCPI3_2: .quad 0x3fd0000000000000 ## double 0.25 LCPI3_3: .quad 0x3fbd89d89d89d89e ## double 0.11538461538461539 LCPI3_4: .quad 0x3fda2e8ba2e8ba2f ## double 0.40909090909090912 LCPI3_5: .quad 0x3fc5555555555555 ## double 0.16666666666666666 LCPI3_6: .quad 0x3fcb6db6db6db6db ## double 0.21428571428571427 LCPI3_7: .quad 0x446e7e4171bf4d3a ## double 4.5E+21 LCPI3_8: .quad 0x3abef2d0f5da7dd9 ## double 1.0E-25 LCPI3_9: .quad 0x3f589374bc6a7efa ## double 0.0015 LCPI3_10: .quad 0x3ff0000000000000 ## double 1 LCPI3_11: .quad 0x3fc999999999999a ## double 0.20000000000000001 LCPI3_13: .quad 0xc028000000000000 ## double -12 LCPI3_14: .quad 0xc08f400000000000 ## double -1000 .section __TEXT,__literal16,16byte_literals .p2align 4 LCPI3_12: .quad 0x7fffffffffffffff ## double NaN .quad 0x7fffffffffffffff ## double NaN .section __TEXT,__text,regular,pure_instructions .globl _rd .p2align 4, 0x90 _rd: ## @rd .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $256, %rsp ## imm = 0x100 movsd %xmm0, -16(%rbp) movsd %xmm1, -24(%rbp) movsd %xmm2, -32(%rbp) movsd LCPI3_9(%rip), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -40(%rbp) movsd LCPI3_8(%rip), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -48(%rbp) movsd LCPI3_7(%rip), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -56(%rbp) movsd LCPI3_6(%rip), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -64(%rbp) movsd LCPI3_5(%rip), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -72(%rbp) movsd LCPI3_4(%rip), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -80(%rbp) movsd LCPI3_3(%rip), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -88(%rbp) movsd LCPI3_2(%rip), %xmm0 ## xmm0 = mem[0],zero mulsd -80(%rbp), %xmm0 movsd %xmm0, -96(%rbp) movsd LCPI3_1(%rip), %xmm0 ## xmm0 = mem[0],zero mulsd -88(%rbp), %xmm0 movsd %xmm0, -104(%rbp) xorps %xmm0, %xmm0 movsd %xmm0, -112(%rbp) movsd LCPI3_0(%rip), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -120(%rbp) xorps %xmm0, %xmm0 movsd %xmm0, -128(%rbp) xorps %xmm0, %xmm0 movsd %xmm0, -136(%rbp) xorps %xmm0, %xmm0 movsd %xmm0, -144(%rbp) xorps %xmm0, %xmm0 movsd %xmm0, -152(%rbp) xorps %xmm0, %xmm0 movsd %xmm0, -160(%rbp) xorps %xmm0, %xmm0 movsd %xmm0, -168(%rbp) xorps %xmm0, %xmm0 movsd %xmm0, -176(%rbp) xorps %xmm0, %xmm0 movsd %xmm0, -184(%rbp) xorps %xmm0, %xmm0 movsd %xmm0, -192(%rbp) xorps %xmm0, %xmm0 movsd %xmm0, -200(%rbp) xorps %xmm0, %xmm0 movsd %xmm0, -208(%rbp) xorps %xmm0, %xmm0 movsd %xmm0, -216(%rbp) xorps %xmm0, %xmm0 movsd %xmm0, -224(%rbp) xorps %xmm0, %xmm0 movsd %xmm0, -232(%rbp) xorps %xmm0, %xmm0 movsd %xmm0, -240(%rbp) xorps %xmm0, %xmm0 movsd %xmm0, -248(%rbp) xorps %xmm0, %xmm0 movsd %xmm0, -256(%rbp) movsd -16(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd -24(%rbp), %xmm1 ## xmm1 = mem[0],zero callq _MIN movaps %xmm0, %xmm1 xorps %xmm0, %xmm0 ucomisd %xmm1, %xmm0 ja LBB3_3 ## %bb.1: movsd -16(%rbp), %xmm0 ## xmm0 = mem[0],zero addsd -24(%rbp), %xmm0 movsd -32(%rbp), %xmm1 ## xmm1 = mem[0],zero callq _MIN movaps %xmm0, %xmm1 movsd -48(%rbp), %xmm0 ## xmm0 = mem[0],zero ucomisd %xmm1, %xmm0 ja LBB3_3 ## %bb.2: movsd -16(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd -24(%rbp), %xmm1 ## xmm1 = mem[0],zero callq _MAX movsd -32(%rbp), %xmm1 ## xmm1 = mem[0],zero callq _MAX ucomisd -56(%rbp), %xmm0 jbe LBB3_4 LBB3_3: movsd LCPI3_14(%rip), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -8(%rbp) jmp LBB3_8 LBB3_4: movsd -16(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -240(%rbp) movsd -24(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -248(%rbp) movsd -32(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -256(%rbp) xorps %xmm0, %xmm0 movsd %xmm0, -232(%rbp) movsd LCPI3_10(%rip), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -200(%rbp) LBB3_5: ## =>This Inner Loop Header: Depth=1 movsd -240(%rbp), %xmm0 ## xmm0 = mem[0],zero sqrtsd %xmm0, %xmm0 movsd %xmm0, -208(%rbp) movsd -248(%rbp), %xmm0 ## xmm0 = mem[0],zero sqrtsd %xmm0, %xmm0 movsd %xmm0, -216(%rbp) movsd -256(%rbp), %xmm0 ## xmm0 = mem[0],zero sqrtsd %xmm0, %xmm0 movsd %xmm0, -224(%rbp) movsd -208(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd -216(%rbp), %xmm2 ## xmm2 = mem[0],zero addsd -224(%rbp), %xmm2 movsd -216(%rbp), %xmm1 ## xmm1 = mem[0],zero mulsd -224(%rbp), %xmm1 mulsd %xmm2, %xmm0 addsd %xmm1, %xmm0 movsd %xmm0, -112(%rbp) movsd -200(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd -224(%rbp), %xmm1 ## xmm1 = mem[0],zero movsd -256(%rbp), %xmm2 ## xmm2 = mem[0],zero addsd -112(%rbp), %xmm2 mulsd %xmm2, %xmm1 divsd %xmm1, %xmm0 addsd -232(%rbp), %xmm0 movsd %xmm0, -232(%rbp) movsd LCPI3_2(%rip), %xmm0 ## xmm0 = mem[0],zero mulsd -200(%rbp), %xmm0 movsd %xmm0, -200(%rbp) movsd -240(%rbp), %xmm1 ## xmm1 = mem[0],zero addsd -112(%rbp), %xmm1 movsd LCPI3_2(%rip), %xmm0 ## xmm0 = mem[0],zero mulsd %xmm1, %xmm0 movsd %xmm0, -240(%rbp) movsd -248(%rbp), %xmm1 ## xmm1 = mem[0],zero addsd -112(%rbp), %xmm1 movsd LCPI3_2(%rip), %xmm0 ## xmm0 = mem[0],zero mulsd %xmm1, %xmm0 movsd %xmm0, -248(%rbp) movsd -256(%rbp), %xmm1 ## xmm1 = mem[0],zero addsd -112(%rbp), %xmm1 movsd LCPI3_2(%rip), %xmm0 ## xmm0 = mem[0],zero mulsd %xmm1, %xmm0 movsd %xmm0, -256(%rbp) movsd -240(%rbp), %xmm0 ## xmm0 = mem[0],zero addsd -248(%rbp), %xmm0 movsd -120(%rbp), %xmm1 ## xmm1 = mem[0],zero movsd -256(%rbp), %xmm2 ## xmm2 = mem[0],zero mulsd %xmm2, %xmm1 addsd %xmm0, %xmm1 movsd LCPI3_11(%rip), %xmm0 ## xmm0 = mem[0],zero mulsd %xmm1, %xmm0 movsd %xmm0, -128(%rbp) movsd -128(%rbp), %xmm0 ## xmm0 = mem[0],zero subsd -240(%rbp), %xmm0 divsd -128(%rbp), %xmm0 movsd %xmm0, -136(%rbp) movsd -128(%rbp), %xmm0 ## xmm0 = mem[0],zero subsd -248(%rbp), %xmm0 divsd -128(%rbp), %xmm0 movsd %xmm0, -144(%rbp) movsd -128(%rbp), %xmm0 ## xmm0 = mem[0],zero subsd -256(%rbp), %xmm0 divsd -128(%rbp), %xmm0 movsd %xmm0, -152(%rbp) ## %bb.6: ## in Loop: Header=BB3_5 Depth=1 movsd -136(%rbp), %xmm0 ## xmm0 = mem[0],zero movaps LCPI3_12(%rip), %xmm1 ## xmm1 = [NaN,NaN] pand %xmm1, %xmm0 movsd -144(%rbp), %xmm1 ## xmm1 = mem[0],zero movaps LCPI3_12(%rip), %xmm2 ## xmm2 = [NaN,NaN] pand %xmm2, %xmm1 callq _MAX movsd -152(%rbp), %xmm1 ## xmm1 = mem[0],zero movaps LCPI3_12(%rip), %xmm2 ## xmm2 = [NaN,NaN] pand %xmm2, %xmm1 callq _MAX ucomisd -40(%rbp), %xmm0 ja LBB3_5 ## %bb.7: movsd -136(%rbp), %xmm0 ## xmm0 = mem[0],zero mulsd -144(%rbp), %xmm0 movsd %xmm0, -160(%rbp) movsd -152(%rbp), %xmm0 ## xmm0 = mem[0],zero mulsd -152(%rbp), %xmm0 movsd %xmm0, -168(%rbp) movsd -160(%rbp), %xmm0 ## xmm0 = mem[0],zero subsd -168(%rbp), %xmm0 movsd %xmm0, -176(%rbp) movsd -160(%rbp), %xmm1 ## xmm1 = mem[0],zero movsd -168(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd LCPI3_13(%rip), %xmm2 ## xmm2 = mem[0],zero mulsd %xmm2, %xmm0 addsd %xmm1, %xmm0 movsd %xmm0, -184(%rbp) movsd -184(%rbp), %xmm0 ## xmm0 = mem[0],zero addsd -176(%rbp), %xmm0 addsd -176(%rbp), %xmm0 movsd %xmm0, -192(%rbp) movsd -232(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd -200(%rbp), %xmm1 ## xmm1 = mem[0],zero movsd -184(%rbp), %xmm3 ## xmm3 = mem[0],zero movsd -64(%rbp), %xmm2 ## xmm2 = mem[0],zero movq %xmm2, %rax movabsq $-9223372036854775808, %rcx ## imm = 0x8000000000000000 xorq %rcx, %rax movq %rax, %xmm2 movsd -96(%rbp), %xmm4 ## xmm4 = mem[0],zero movsd -184(%rbp), %xmm5 ## xmm5 = mem[0],zero mulsd %xmm5, %xmm4 addsd %xmm2, %xmm4 movsd -104(%rbp), %xmm2 ## xmm2 = mem[0],zero mulsd -152(%rbp), %xmm2 movsd -192(%rbp), %xmm5 ## xmm5 = mem[0],zero movq %xmm2, %rax movabsq $-9223372036854775808, %rcx ## imm = 0x8000000000000000 xorq %rcx, %rax movq %rax, %xmm2 mulsd %xmm5, %xmm2 addsd %xmm4, %xmm2 mulsd %xmm2, %xmm3 movsd LCPI3_10(%rip), %xmm2 ## xmm2 = mem[0],zero addsd %xmm2, %xmm3 movsd -152(%rbp), %xmm2 ## xmm2 = mem[0],zero movsd -72(%rbp), %xmm4 ## xmm4 = mem[0],zero movsd -192(%rbp), %xmm6 ## xmm6 = mem[0],zero movsd -152(%rbp), %xmm5 ## xmm5 = mem[0],zero movsd -80(%rbp), %xmm7 ## xmm7 = mem[0],zero movq %xmm7, %rax movabsq $-9223372036854775808, %rcx ## imm = 0x8000000000000000 xorq %rcx, %rax movq %rax, %xmm7 movsd -176(%rbp), %xmm9 ## xmm9 = mem[0],zero movsd -152(%rbp), %xmm8 ## xmm8 = mem[0],zero mulsd -88(%rbp), %xmm8 mulsd -160(%rbp), %xmm8 mulsd %xmm9, %xmm7 addsd %xmm8, %xmm7 mulsd %xmm7, %xmm5 mulsd %xmm6, %xmm4 addsd %xmm5, %xmm4 mulsd %xmm4, %xmm2 addsd %xmm3, %xmm2 mulsd %xmm2, %xmm1 movsd -128(%rbp), %xmm2 ## xmm2 = mem[0],zero movsd -128(%rbp), %xmm3 ## xmm3 = mem[0],zero sqrtsd %xmm3, %xmm3 mulsd %xmm3, %xmm2 divsd %xmm2, %xmm1 movsd LCPI3_0(%rip), %xmm2 ## xmm2 = mem[0],zero mulsd %xmm2, %xmm0 addsd %xmm1, %xmm0 movsd %xmm0, -8(%rbp) LBB3_8: movsd -8(%rbp), %xmm0 ## xmm0 = mem[0],zero addq $256, %rsp ## imm = 0x100 popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ## -- Begin function ellpi LCPI4_0: .quad 0x4008000000000000 ## double 3 LCPI4_1: .quad 0x3ff0000000000000 ## double 1 .section __TEXT,__text,regular,pure_instructions .globl _ellpi .p2align 4, 0x90 _ellpi: ## @ellpi .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 movsd %xmm0, -8(%rbp) movsd %xmm1, -16(%rbp) movsd %xmm2, -24(%rbp) xorps %xmm0, %xmm0 movsd %xmm0, -32(%rbp) xorps %xmm0, %xmm0 movsd %xmm0, -40(%rbp) xorps %xmm0, %xmm0 movsd %xmm0, -48(%rbp) xorps %xmm0, %xmm0 movsd %xmm0, -56(%rbp) movsd -8(%rbp), %xmm0 ## xmm0 = mem[0],zero callq _sin movsd %xmm0, -56(%rbp) movsd -16(%rbp), %xmm0 ## xmm0 = mem[0],zero mulsd -56(%rbp), %xmm0 mulsd -56(%rbp), %xmm0 movsd %xmm0, -40(%rbp) movsd -8(%rbp), %xmm0 ## xmm0 = mem[0],zero callq _cos callq _SQR movsd %xmm0, -32(%rbp) movsd -56(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd -24(%rbp), %xmm1 ## xmm1 = mem[0],zero movq %xmm0, %rax movabsq $-9223372036854775808, %rcx ## imm = 0x8000000000000000 xorq %rcx, %rax movq %rax, %xmm0 mulsd %xmm1, %xmm0 movsd LCPI4_1(%rip), %xmm1 ## xmm1 = mem[0],zero addsd %xmm1, %xmm0 movsd -56(%rbp), %xmm1 ## xmm1 = mem[0],zero movsd -24(%rbp), %xmm2 ## xmm2 = mem[0],zero mulsd %xmm2, %xmm1 movsd LCPI4_1(%rip), %xmm2 ## xmm2 = mem[0],zero addsd %xmm2, %xmm1 mulsd %xmm1, %xmm0 movsd %xmm0, -48(%rbp) movsd -56(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -64(%rbp) ## 8-byte Spill movsd -32(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd -48(%rbp), %xmm1 ## xmm1 = mem[0],zero movsd LCPI4_1(%rip), %xmm2 ## xmm2 = mem[0],zero callq _rf movsd %xmm0, -72(%rbp) ## 8-byte Spill movsd -40(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -80(%rbp) ## 8-byte Spill movsd -32(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd -48(%rbp), %xmm1 ## xmm1 = mem[0],zero movsd LCPI4_1(%rip), %xmm3 ## xmm3 = mem[0],zero addsd -40(%rbp), %xmm3 movsd LCPI4_1(%rip), %xmm2 ## xmm2 = mem[0],zero callq _rj movsd -80(%rbp), %xmm2 ## 8-byte Reload ## xmm2 = mem[0],zero movsd -72(%rbp), %xmm1 ## 8-byte Reload ## xmm1 = mem[0],zero movaps %xmm0, %xmm3 movsd -64(%rbp), %xmm0 ## 8-byte Reload ## xmm0 = mem[0],zero mulsd %xmm3, %xmm2 movsd LCPI4_0(%rip), %xmm3 ## xmm3 = mem[0],zero divsd %xmm3, %xmm2 subsd %xmm2, %xmm1 mulsd %xmm1, %xmm0 addq $80, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ## -- Begin function rj LCPI5_0: .quad 0x3fe0000000000000 ## double 0.5 LCPI5_1: .quad 0x3ff8000000000000 ## double 1.5 LCPI5_2: .quad 0x3fe8000000000000 ## double 0.75 LCPI5_3: .quad 0x3fbd89d89d89d89e ## double 0.11538461538461539 LCPI5_4: .quad 0x3fc1745d1745d174 ## double 0.13636363636363635 LCPI5_5: .quad 0x3fd5555555555555 ## double 0.33333333333333331 LCPI5_6: .quad 0x3fcb6db6db6db6db ## double 0.21428571428571427 LCPI5_7: .quad 0x426a3185c5000000 ## double 9.0E+11 LCPI5_8: .quad 0x3d519799812dea11 ## double 2.4999999999999999E-13 LCPI5_9: .quad 0x3f589374bc6a7efa ## double 0.0015 LCPI5_11: .quad 0x3ff0000000000000 ## double 1 LCPI5_12: .quad 0x3fc999999999999a ## double 0.20000000000000001 LCPI5_13: .quad 0x3fd0000000000000 ## double 0.25 LCPI5_14: .quad 0x4008000000000000 ## double 3 LCPI5_15: .quad 0x4000000000000000 ## double 2 LCPI5_16: .quad 0xc008000000000000 ## double -3 LCPI5_17: .quad 0xc08f400000000000 ## double -1000 .section __TEXT,__literal16,16byte_literals .p2align 4 LCPI5_10: .quad 0x7fffffffffffffff ## double NaN .quad 0x7fffffffffffffff ## double NaN .section __TEXT,__text,regular,pure_instructions .globl _rj .p2align 4, 0x90 _rj: ## @rj .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $432, %rsp ## imm = 0x1B0 movsd %xmm0, -16(%rbp) movsd %xmm1, -24(%rbp) movsd %xmm2, -32(%rbp) movsd %xmm3, -40(%rbp) movsd LCPI5_9(%rip), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -48(%rbp) movsd LCPI5_8(%rip), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -56(%rbp) movsd LCPI5_7(%rip), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -64(%rbp) movsd LCPI5_6(%rip), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -72(%rbp) movsd LCPI5_5(%rip), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -80(%rbp) movsd LCPI5_4(%rip), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -88(%rbp) movsd LCPI5_3(%rip), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -96(%rbp) movsd LCPI5_2(%rip), %xmm0 ## xmm0 = mem[0],zero mulsd -88(%rbp), %xmm0 movsd %xmm0, -104(%rbp) movsd LCPI5_1(%rip), %xmm0 ## xmm0 = mem[0],zero mulsd -96(%rbp), %xmm0 movsd %xmm0, -112(%rbp) movsd LCPI5_0(%rip), %xmm0 ## xmm0 = mem[0],zero mulsd -80(%rbp), %xmm0 movsd %xmm0, -120(%rbp) movsd -88(%rbp), %xmm0 ## xmm0 = mem[0],zero addsd -88(%rbp), %xmm0 movsd %xmm0, -128(%rbp) xorps %xmm0, %xmm0 movsd %xmm0, -136(%rbp) xorps %xmm0, %xmm0 movsd %xmm0, -144(%rbp) xorps %xmm0, %xmm0 movsd %xmm0, -152(%rbp) xorps %xmm0, %xmm0 movsd %xmm0, -160(%rbp) xorps %xmm0, %xmm0 movsd %xmm0, -168(%rbp) xorps %xmm0, %xmm0 movsd %xmm0, -176(%rbp) xorps %xmm0, %xmm0 movsd %xmm0, -184(%rbp) xorps %xmm0, %xmm0 movsd %xmm0, -192(%rbp) xorps %xmm0, %xmm0 movsd %xmm0, -200(%rbp) xorps %xmm0, %xmm0 movsd %xmm0, -208(%rbp) xorps %xmm0, %xmm0 movsd %xmm0, -216(%rbp) xorps %xmm0, %xmm0 movsd %xmm0, -224(%rbp) xorps %xmm0, %xmm0 movsd %xmm0, -232(%rbp) xorps %xmm0, %xmm0 movsd %xmm0, -240(%rbp) xorps %xmm0, %xmm0 movsd %xmm0, -248(%rbp) xorps %xmm0, %xmm0 movsd %xmm0, -256(%rbp) xorps %xmm0, %xmm0 movsd %xmm0, -264(%rbp) xorps %xmm0, %xmm0 movsd %xmm0, -272(%rbp) xorps %xmm0, %xmm0 movsd %xmm0, -280(%rbp) xorps %xmm0, %xmm0 movsd %xmm0, -288(%rbp) xorps %xmm0, %xmm0 movsd %xmm0, -296(%rbp) xorps %xmm0, %xmm0 movsd %xmm0, -304(%rbp) xorps %xmm0, %xmm0 movsd %xmm0, -312(%rbp) xorps %xmm0, %xmm0 movsd %xmm0, -320(%rbp) xorps %xmm0, %xmm0 movsd %xmm0, -328(%rbp) xorps %xmm0, %xmm0 movsd %xmm0, -336(%rbp) xorps %xmm0, %xmm0 movsd %xmm0, -344(%rbp) xorps %xmm0, %xmm0 movsd %xmm0, -352(%rbp) movsd -16(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd -24(%rbp), %xmm1 ## xmm1 = mem[0],zero callq _MIN movsd -32(%rbp), %xmm1 ## xmm1 = mem[0],zero callq _MIN movaps %xmm0, %xmm1 xorps %xmm0, %xmm0 ucomisd %xmm1, %xmm0 ja LBB5_3 ## %bb.1: movsd -16(%rbp), %xmm0 ## xmm0 = mem[0],zero addsd -24(%rbp), %xmm0 movsd -16(%rbp), %xmm1 ## xmm1 = mem[0],zero addsd -32(%rbp), %xmm1 callq _MIN movsd %xmm0, -360(%rbp) ## 8-byte Spill movsd -24(%rbp), %xmm0 ## xmm0 = mem[0],zero addsd -32(%rbp), %xmm0 movsd -40(%rbp), %xmm1 ## xmm1 = mem[0],zero movaps LCPI5_10(%rip), %xmm2 ## xmm2 = [NaN,NaN] pand %xmm2, %xmm1 callq _MIN movaps %xmm0, %xmm1 movsd -360(%rbp), %xmm0 ## 8-byte Reload ## xmm0 = mem[0],zero callq _MIN movaps %xmm0, %xmm1 movsd -56(%rbp), %xmm0 ## xmm0 = mem[0],zero ucomisd %xmm1, %xmm0 ja LBB5_3 ## %bb.2: movsd -16(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd -24(%rbp), %xmm1 ## xmm1 = mem[0],zero callq _MAX movsd %xmm0, -368(%rbp) ## 8-byte Spill movsd -32(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd -40(%rbp), %xmm1 ## xmm1 = mem[0],zero movaps LCPI5_10(%rip), %xmm2 ## xmm2 = [NaN,NaN] pand %xmm2, %xmm1 callq _MAX movaps %xmm0, %xmm1 movsd -368(%rbp), %xmm0 ## 8-byte Reload ## xmm0 = mem[0],zero callq _MAX ucomisd -64(%rbp), %xmm0 jbe LBB5_4 LBB5_3: movsd LCPI5_17(%rip), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -8(%rbp) jmp LBB5_13 LBB5_4: xorps %xmm0, %xmm0 movsd %xmm0, -320(%rbp) movsd LCPI5_11(%rip), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -264(%rbp) movsd -40(%rbp), %xmm0 ## xmm0 = mem[0],zero xorps %xmm1, %xmm1 ucomisd %xmm1, %xmm0 jbe LBB5_6 ## %bb.5: movsd -16(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -336(%rbp) movsd -24(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -344(%rbp) movsd -32(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -352(%rbp) movsd -40(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -272(%rbp) jmp LBB5_7 LBB5_6: movsd -16(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd -24(%rbp), %xmm1 ## xmm1 = mem[0],zero callq _MIN movsd -32(%rbp), %xmm1 ## xmm1 = mem[0],zero callq _MIN movsd %xmm0, -336(%rbp) movsd -16(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd -24(%rbp), %xmm1 ## xmm1 = mem[0],zero callq _MAX movsd -32(%rbp), %xmm1 ## xmm1 = mem[0],zero callq _MAX movsd %xmm0, -352(%rbp) movsd -16(%rbp), %xmm0 ## xmm0 = mem[0],zero addsd -24(%rbp), %xmm0 addsd -32(%rbp), %xmm0 subsd -336(%rbp), %xmm0 subsd -352(%rbp), %xmm0 movsd %xmm0, -344(%rbp) movsd -344(%rbp), %xmm1 ## xmm1 = mem[0],zero subsd -40(%rbp), %xmm1 movsd LCPI5_11(%rip), %xmm0 ## xmm0 = mem[0],zero divsd %xmm1, %xmm0 movsd %xmm0, -136(%rbp) movsd -136(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd -352(%rbp), %xmm1 ## xmm1 = mem[0],zero subsd -344(%rbp), %xmm1 mulsd %xmm1, %xmm0 movsd -344(%rbp), %xmm1 ## xmm1 = mem[0],zero subsd -336(%rbp), %xmm1 mulsd %xmm1, %xmm0 movsd %xmm0, -176(%rbp) movsd -344(%rbp), %xmm0 ## xmm0 = mem[0],zero addsd -176(%rbp), %xmm0 movsd %xmm0, -272(%rbp) movsd -336(%rbp), %xmm0 ## xmm0 = mem[0],zero mulsd -352(%rbp), %xmm0 divsd -344(%rbp), %xmm0 movsd %xmm0, -288(%rbp) movsd -40(%rbp), %xmm0 ## xmm0 = mem[0],zero mulsd -272(%rbp), %xmm0 divsd -344(%rbp), %xmm0 movsd %xmm0, -328(%rbp) movsd -288(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd -328(%rbp), %xmm1 ## xmm1 = mem[0],zero callq _rc movsd %xmm0, -280(%rbp) LBB5_7: jmp LBB5_8 LBB5_8: ## =>This Inner Loop Header: Depth=1 movsd -336(%rbp), %xmm0 ## xmm0 = mem[0],zero sqrtsd %xmm0, %xmm0 movsd %xmm0, -296(%rbp) movsd -344(%rbp), %xmm0 ## xmm0 = mem[0],zero sqrtsd %xmm0, %xmm0 movsd %xmm0, -304(%rbp) movsd -352(%rbp), %xmm0 ## xmm0 = mem[0],zero sqrtsd %xmm0, %xmm0 movsd %xmm0, -312(%rbp) movsd -296(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd -304(%rbp), %xmm2 ## xmm2 = mem[0],zero addsd -312(%rbp), %xmm2 movsd -304(%rbp), %xmm1 ## xmm1 = mem[0],zero mulsd -312(%rbp), %xmm1 mulsd %xmm2, %xmm0 addsd %xmm1, %xmm0 movsd %xmm0, -144(%rbp) movsd -272(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd -296(%rbp), %xmm2 ## xmm2 = mem[0],zero addsd -304(%rbp), %xmm2 addsd -312(%rbp), %xmm2 movsd -296(%rbp), %xmm1 ## xmm1 = mem[0],zero mulsd -304(%rbp), %xmm1 mulsd -312(%rbp), %xmm1 mulsd %xmm2, %xmm0 addsd %xmm1, %xmm0 callq _SQR movsd %xmm0, -152(%rbp) movsd -272(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -384(%rbp) ## 8-byte Spill movsd -272(%rbp), %xmm0 ## xmm0 = mem[0],zero addsd -144(%rbp), %xmm0 callq _SQR movaps %xmm0, %xmm1 movsd -384(%rbp), %xmm0 ## 8-byte Reload ## xmm0 = mem[0],zero mulsd %xmm1, %xmm0 movsd %xmm0, -184(%rbp) movsd -264(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -376(%rbp) ## 8-byte Spill movsd -152(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd -184(%rbp), %xmm1 ## xmm1 = mem[0],zero callq _rc movaps %xmm0, %xmm2 movsd -376(%rbp), %xmm0 ## 8-byte Reload ## xmm0 = mem[0],zero movsd -320(%rbp), %xmm1 ## xmm1 = mem[0],zero mulsd %xmm2, %xmm0 addsd %xmm1, %xmm0 movsd %xmm0, -320(%rbp) movsd LCPI5_13(%rip), %xmm0 ## xmm0 = mem[0],zero mulsd -264(%rbp), %xmm0 movsd %xmm0, -264(%rbp) movsd -336(%rbp), %xmm1 ## xmm1 = mem[0],zero addsd -144(%rbp), %xmm1 movsd LCPI5_13(%rip), %xmm0 ## xmm0 = mem[0],zero mulsd %xmm1, %xmm0 movsd %xmm0, -336(%rbp) movsd -344(%rbp), %xmm1 ## xmm1 = mem[0],zero addsd -144(%rbp), %xmm1 movsd LCPI5_13(%rip), %xmm0 ## xmm0 = mem[0],zero mulsd %xmm1, %xmm0 movsd %xmm0, -344(%rbp) movsd -352(%rbp), %xmm1 ## xmm1 = mem[0],zero addsd -144(%rbp), %xmm1 movsd LCPI5_13(%rip), %xmm0 ## xmm0 = mem[0],zero mulsd %xmm1, %xmm0 movsd %xmm0, -352(%rbp) movsd -272(%rbp), %xmm1 ## xmm1 = mem[0],zero addsd -144(%rbp), %xmm1 movsd LCPI5_13(%rip), %xmm0 ## xmm0 = mem[0],zero mulsd %xmm1, %xmm0 movsd %xmm0, -272(%rbp) movsd -336(%rbp), %xmm1 ## xmm1 = mem[0],zero addsd -344(%rbp), %xmm1 addsd -352(%rbp), %xmm1 addsd -272(%rbp), %xmm1 addsd -272(%rbp), %xmm1 movsd LCPI5_12(%rip), %xmm0 ## xmm0 = mem[0],zero mulsd %xmm1, %xmm0 movsd %xmm0, -168(%rbp) movsd -168(%rbp), %xmm0 ## xmm0 = mem[0],zero subsd -336(%rbp), %xmm0 divsd -168(%rbp), %xmm0 movsd %xmm0, -200(%rbp) movsd -168(%rbp), %xmm0 ## xmm0 = mem[0],zero subsd -344(%rbp), %xmm0 divsd -168(%rbp), %xmm0 movsd %xmm0, -208(%rbp) movsd -168(%rbp), %xmm0 ## xmm0 = mem[0],zero subsd -352(%rbp), %xmm0 divsd -168(%rbp), %xmm0 movsd %xmm0, -216(%rbp) movsd -168(%rbp), %xmm0 ## xmm0 = mem[0],zero subsd -272(%rbp), %xmm0 divsd -168(%rbp), %xmm0 movsd %xmm0, -192(%rbp) ## %bb.9: ## in Loop: Header=BB5_8 Depth=1 movsd -200(%rbp), %xmm0 ## xmm0 = mem[0],zero movaps LCPI5_10(%rip), %xmm1 ## xmm1 = [NaN,NaN] pand %xmm1, %xmm0 movsd -208(%rbp), %xmm1 ## xmm1 = mem[0],zero movaps LCPI5_10(%rip), %xmm2 ## xmm2 = [NaN,NaN] pand %xmm2, %xmm1 callq _MAX movsd %xmm0, -392(%rbp) ## 8-byte Spill movsd -216(%rbp), %xmm0 ## xmm0 = mem[0],zero movaps LCPI5_10(%rip), %xmm1 ## xmm1 = [NaN,NaN] pand %xmm1, %xmm0 movsd -192(%rbp), %xmm1 ## xmm1 = mem[0],zero movaps LCPI5_10(%rip), %xmm2 ## xmm2 = [NaN,NaN] pand %xmm2, %xmm1 callq _MAX movaps %xmm0, %xmm1 movsd -392(%rbp), %xmm0 ## 8-byte Reload ## xmm0 = mem[0],zero callq _MAX ucomisd -48(%rbp), %xmm0 ja LBB5_8 ## %bb.10: movsd -200(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd -208(%rbp), %xmm2 ## xmm2 = mem[0],zero addsd -216(%rbp), %xmm2 movsd -208(%rbp), %xmm1 ## xmm1 = mem[0],zero mulsd -216(%rbp), %xmm1 mulsd %xmm2, %xmm0 addsd %xmm1, %xmm0 movsd %xmm0, -224(%rbp) movsd -200(%rbp), %xmm0 ## xmm0 = mem[0],zero mulsd -208(%rbp), %xmm0 mulsd -216(%rbp), %xmm0 movsd %xmm0, -232(%rbp) movsd -192(%rbp), %xmm0 ## xmm0 = mem[0],zero mulsd -192(%rbp), %xmm0 movsd %xmm0, -240(%rbp) movsd -224(%rbp), %xmm1 ## xmm1 = mem[0],zero movsd -240(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd LCPI5_16(%rip), %xmm2 ## xmm2 = mem[0],zero mulsd %xmm2, %xmm0 addsd %xmm1, %xmm0 movsd %xmm0, -248(%rbp) movsd -232(%rbp), %xmm1 ## xmm1 = mem[0],zero movsd LCPI5_15(%rip), %xmm0 ## xmm0 = mem[0],zero mulsd -192(%rbp), %xmm0 movsd -224(%rbp), %xmm2 ## xmm2 = mem[0],zero subsd -240(%rbp), %xmm2 mulsd %xmm2, %xmm0 addsd %xmm1, %xmm0 movsd %xmm0, -256(%rbp) movsd -320(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd -264(%rbp), %xmm1 ## xmm1 = mem[0],zero movsd -248(%rbp), %xmm3 ## xmm3 = mem[0],zero movsd -72(%rbp), %xmm2 ## xmm2 = mem[0],zero movq %xmm2, %rax movabsq $-9223372036854775808, %rcx ## imm = 0x8000000000000000 xorq %rcx, %rax movq %rax, %xmm2 movsd -104(%rbp), %xmm4 ## xmm4 = mem[0],zero movsd -248(%rbp), %xmm5 ## xmm5 = mem[0],zero mulsd %xmm5, %xmm4 addsd %xmm2, %xmm4 movsd -112(%rbp), %xmm2 ## xmm2 = mem[0],zero movsd -256(%rbp), %xmm5 ## xmm5 = mem[0],zero movq %xmm2, %rax movabsq $-9223372036854775808, %rcx ## imm = 0x8000000000000000 xorq %rcx, %rax movq %rax, %xmm2 mulsd %xmm5, %xmm2 addsd %xmm4, %xmm2 mulsd %xmm2, %xmm3 movsd LCPI5_11(%rip), %xmm2 ## xmm2 = mem[0],zero addsd %xmm2, %xmm3 movsd -232(%rbp), %xmm2 ## xmm2 = mem[0],zero movsd -120(%rbp), %xmm5 ## xmm5 = mem[0],zero movsd -192(%rbp), %xmm4 ## xmm4 = mem[0],zero movsd -128(%rbp), %xmm6 ## xmm6 = mem[0],zero movq %xmm6, %rax movabsq $-9223372036854775808, %rcx ## imm = 0x8000000000000000 xorq %rcx, %rax movq %rax, %xmm7 movsd -192(%rbp), %xmm6 ## xmm6 = mem[0],zero movsd -96(%rbp), %xmm8 ## xmm8 = mem[0],zero mulsd %xmm8, %xmm6 addsd %xmm7, %xmm6 mulsd %xmm6, %xmm4 addsd %xmm5, %xmm4 mulsd %xmm4, %xmm2 addsd %xmm3, %xmm2 movsd -192(%rbp), %xmm3 ## xmm3 = mem[0],zero mulsd -224(%rbp), %xmm3 movsd -80(%rbp), %xmm5 ## xmm5 = mem[0],zero movsd -192(%rbp), %xmm4 ## xmm4 = mem[0],zero movsd -88(%rbp), %xmm6 ## xmm6 = mem[0],zero movq %xmm4, %rax movabsq $-9223372036854775808, %rcx ## imm = 0x8000000000000000 xorq %rcx, %rax movq %rax, %xmm4 mulsd %xmm6, %xmm4 addsd %xmm5, %xmm4 mulsd %xmm4, %xmm3 addsd %xmm2, %xmm3 movsd -80(%rbp), %xmm2 ## xmm2 = mem[0],zero mulsd -192(%rbp), %xmm2 movsd -240(%rbp), %xmm4 ## xmm4 = mem[0],zero movq %xmm2, %rax movabsq $-9223372036854775808, %rcx ## imm = 0x8000000000000000 xorq %rcx, %rax movq %rax, %xmm2 mulsd %xmm4, %xmm2 addsd %xmm3, %xmm2 mulsd %xmm2, %xmm1 movsd -168(%rbp), %xmm2 ## xmm2 = mem[0],zero movsd -168(%rbp), %xmm3 ## xmm3 = mem[0],zero sqrtsd %xmm3, %xmm3 mulsd %xmm3, %xmm2 divsd %xmm2, %xmm1 movsd LCPI5_14(%rip), %xmm2 ## xmm2 = mem[0],zero mulsd %xmm2, %xmm0 addsd %xmm1, %xmm0 movsd %xmm0, -160(%rbp) xorps %xmm0, %xmm0 ucomisd -40(%rbp), %xmm0 jb LBB5_12 ## %bb.11: movsd -136(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -400(%rbp) ## 8-byte Spill movsd -176(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -416(%rbp) ## 8-byte Spill movsd -160(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -408(%rbp) ## 8-byte Spill movsd -280(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -424(%rbp) ## 8-byte Spill movsd -336(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd -344(%rbp), %xmm1 ## xmm1 = mem[0],zero movsd -352(%rbp), %xmm2 ## xmm2 = mem[0],zero callq _rf movsd -424(%rbp), %xmm4 ## 8-byte Reload ## xmm4 = mem[0],zero movsd -416(%rbp), %xmm1 ## 8-byte Reload ## xmm1 = mem[0],zero movsd -408(%rbp), %xmm3 ## 8-byte Reload ## xmm3 = mem[0],zero movaps %xmm0, %xmm2 movsd -400(%rbp), %xmm0 ## 8-byte Reload ## xmm0 = mem[0],zero subsd %xmm2, %xmm4 movsd LCPI5_14(%rip), %xmm2 ## xmm2 = mem[0],zero mulsd %xmm4, %xmm2 mulsd %xmm3, %xmm1 addsd %xmm2, %xmm1 mulsd %xmm1, %xmm0 movsd %xmm0, -160(%rbp) LBB5_12: movsd -160(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -8(%rbp) LBB5_13: movsd -8(%rbp), %xmm0 ## xmm0 = mem[0],zero addq $432, %rsp ## imm = 0x1B0 popq %rbp retq .cfi_endproc ## -- End function .globl _SIGN ## -- Begin function SIGN .p2align 4, 0x90 _SIGN: ## @SIGN .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 %xmm1, -16(%rbp) movsd -16(%rbp), %xmm0 ## xmm0 = mem[0],zero xorps %xmm1, %xmm1 ucomisd %xmm1, %xmm0 jb LBB6_5 ## %bb.1: movsd -8(%rbp), %xmm0 ## xmm0 = mem[0],zero xorps %xmm1, %xmm1 ucomisd %xmm1, %xmm0 jb LBB6_3 ## %bb.2: movsd -8(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -24(%rbp) ## 8-byte Spill jmp LBB6_4 LBB6_3: movsd -8(%rbp), %xmm0 ## xmm0 = mem[0],zero movq %xmm0, %rax movabsq $-9223372036854775808, %rcx ## imm = 0x8000000000000000 xorq %rcx, %rax movq %rax, %xmm0 movsd %xmm0, -24(%rbp) ## 8-byte Spill LBB6_4: movsd -24(%rbp), %xmm0 ## 8-byte Reload ## xmm0 = mem[0],zero movsd %xmm0, -32(%rbp) ## 8-byte Spill jmp LBB6_9 LBB6_5: movsd -8(%rbp), %xmm0 ## xmm0 = mem[0],zero xorps %xmm1, %xmm1 ucomisd %xmm1, %xmm0 jb LBB6_7 ## %bb.6: movsd -8(%rbp), %xmm0 ## xmm0 = mem[0],zero movq %xmm0, %rax movabsq $-9223372036854775808, %rcx ## imm = 0x8000000000000000 xorq %rcx, %rax movq %rax, %xmm0 movsd %xmm0, -40(%rbp) ## 8-byte Spill jmp LBB6_8 LBB6_7: movsd -8(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -40(%rbp) ## 8-byte Spill LBB6_8: movsd -40(%rbp), %xmm0 ## 8-byte Reload ## xmm0 = mem[0],zero movsd %xmm0, -32(%rbp) ## 8-byte Spill LBB6_9: movsd -32(%rbp), %xmm0 ## 8-byte Reload ## xmm0 = mem[0],zero popq %rbp retq .cfi_endproc ## -- End function .globl _MAX ## -- Begin function MAX .p2align 4, 0x90 _MAX: ## @MAX .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movsd %xmm0, -8(%rbp) movsd %xmm1, -16(%rbp) movsd -16(%rbp), %xmm0 ## xmm0 = mem[0],zero ucomisd -8(%rbp), %xmm0 jbe LBB7_2 ## %bb.1: movsd -16(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -24(%rbp) ## 8-byte Spill jmp LBB7_3 LBB7_2: movsd -8(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -24(%rbp) ## 8-byte Spill LBB7_3: movsd -24(%rbp), %xmm0 ## 8-byte Reload ## xmm0 = mem[0],zero popq %rbp retq .cfi_endproc ## -- End function .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 movsd %xmm0, -8(%rbp) movsd %xmm1, -16(%rbp) movsd -16(%rbp), %xmm1 ## xmm1 = mem[0],zero movsd -8(%rbp), %xmm0 ## xmm0 = mem[0],zero ucomisd %xmm1, %xmm0 jbe LBB8_2 ## %bb.1: movsd -16(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -24(%rbp) ## 8-byte Spill jmp LBB8_3 LBB8_2: movsd -8(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -24(%rbp) ## 8-byte Spill LBB8_3: movsd -24(%rbp), %xmm0 ## 8-byte Reload ## xmm0 = mem[0],zero popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ## -- Begin function rc LCPI9_0: .quad 0x3fda2e8ba2e8ba2f ## double 0.40909090909090912 LCPI9_1: .quad 0x3fd8000000000000 ## double 0.375 LCPI9_2: .quad 0x3fc2492492492492 ## double 0.14285714285714285 LCPI9_3: .quad 0x3fd47ae147ae147b ## double 0.32000000000000001 LCPI9_4: .quad 0x3fd5555555555555 ## double 0.33333333333333331 LCPI9_5: .quad 0x4039000000000000 ## double 25 LCPI9_6: .quad 0x4001e353f7ced917 ## double 2.2360000000000002 LCPI9_7: .quad 0x47b691ca32818ed5 ## double 3.0000000000000002E+37 LCPI9_8: .quad 0x3c032f42da36d5bd ## double 1.3000000000000001E-19 LCPI9_9: .quad 0x381700ca601b91ac ## double 1.6899999999999999E-38 LCPI9_10: .quad 0x3f53a92a30553261 ## double 0.0011999999999999999 LCPI9_12: .quad 0x3ff0000000000000 ## double 1 LCPI9_13: .quad 0x3fd0000000000000 ## double 0.25 LCPI9_14: .quad 0x4000000000000000 ## double 2 LCPI9_15: .quad 0xc0c3880000000000 ## double -1.0E+4 .section __TEXT,__literal16,16byte_literals .p2align 4 LCPI9_11: .quad 0x7fffffffffffffff ## double NaN .quad 0x7fffffffffffffff ## double NaN .section __TEXT,__text,regular,pure_instructions .globl _rc .p2align 4, 0x90 _rc: ## @rc .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $40, %rsp movsd %xmm0, -16(%rbp) movsd %xmm1, -24(%rbp) movsd LCPI9_10(%rip), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -32(%rbp) movsd LCPI9_9(%rip), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -40(%rbp) movsd LCPI9_8(%rip), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -48(%rbp) movsd LCPI9_7(%rip), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -56(%rbp) movsd -40(%rbp), %xmm0 ## xmm0 = mem[0],zero mulsd -56(%rbp), %xmm0 movsd %xmm0, -64(%rbp) movsd LCPI9_6(%rip), %xmm0 ## xmm0 = mem[0],zero divsd -48(%rbp), %xmm0 movsd %xmm0, -72(%rbp) movsd -64(%rbp), %xmm0 ## xmm0 = mem[0],zero mulsd -64(%rbp), %xmm0 movsd LCPI9_5(%rip), %xmm1 ## xmm1 = mem[0],zero divsd %xmm1, %xmm0 movsd %xmm0, -80(%rbp) movsd LCPI9_4(%rip), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -88(%rbp) movsd LCPI9_3(%rip), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -96(%rbp) movsd LCPI9_2(%rip), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -104(%rbp) movsd LCPI9_1(%rip), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -112(%rbp) movsd LCPI9_0(%rip), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -120(%rbp) xorps %xmm0, %xmm0 movsd %xmm0, -128(%rbp) xorps %xmm0, %xmm0 movsd %xmm0, -136(%rbp) xorps %xmm0, %xmm0 movsd %xmm0, -144(%rbp) xorps %xmm0, %xmm0 movsd %xmm0, -152(%rbp) xorps %xmm0, %xmm0 movsd %xmm0, -160(%rbp) xorps %xmm0, %xmm0 movsd %xmm0, -168(%rbp) xorps %xmm0, %xmm0 ucomisd -16(%rbp), %xmm0 ja LBB9_4 ## %bb.1: movsd -24(%rbp), %xmm0 ## xmm0 = mem[0],zero xorps %xmm1, %xmm1 ucomisd %xmm1, %xmm0 jne LBB9_2 jp LBB9_2 jmp LBB9_4 LBB9_2: movsd -16(%rbp), %xmm1 ## xmm1 = mem[0],zero movsd -24(%rbp), %xmm0 ## xmm0 = mem[0],zero movaps LCPI9_11(%rip), %xmm2 ## xmm2 = [NaN,NaN] pand %xmm2, %xmm0 addsd %xmm0, %xmm1 movsd -40(%rbp), %xmm0 ## xmm0 = mem[0],zero ucomisd %xmm1, %xmm0 ja LBB9_4 ## %bb.3: movsd -16(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd -24(%rbp), %xmm1 ## xmm1 = mem[0],zero movaps LCPI9_11(%rip), %xmm2 ## xmm2 = [NaN,NaN] pand %xmm2, %xmm1 addsd %xmm1, %xmm0 ucomisd -56(%rbp), %xmm0 jbe LBB9_5 LBB9_4: movsd LCPI9_15(%rip), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -8(%rbp) jmp LBB9_12 LBB9_5: movsd -24(%rbp), %xmm0 ## xmm0 = mem[0],zero xorps %xmm1, %xmm1 ucomisd %xmm1, %xmm0 jbe LBB9_7 ## %bb.6: movsd -16(%rbp), %xmm0 ## xmm0 = mem[0],zero addsd -160(%rbp), %xmm0 movsd %xmm0, -160(%rbp) movsd -24(%rbp), %xmm0 ## xmm0 = mem[0],zero addsd -168(%rbp), %xmm0 movsd %xmm0, -168(%rbp) movsd LCPI9_12(%rip), %xmm0 ## xmm0 = mem[0],zero addsd -152(%rbp), %xmm0 movsd %xmm0, -152(%rbp) jmp LBB9_8 LBB9_7: movsd -16(%rbp), %xmm0 ## xmm0 = mem[0],zero subsd -24(%rbp), %xmm0 addsd -160(%rbp), %xmm0 movsd %xmm0, -160(%rbp) movsd -24(%rbp), %xmm0 ## xmm0 = mem[0],zero movq %xmm0, %rax movabsq $-9223372036854775808, %rcx ## imm = 0x8000000000000000 xorq %rcx, %rax movq %rax, %xmm0 addsd -168(%rbp), %xmm0 movsd %xmm0, -168(%rbp) movsd -16(%rbp), %xmm0 ## xmm0 = mem[0],zero sqrtsd %xmm0, %xmm0 movsd -160(%rbp), %xmm1 ## xmm1 = mem[0],zero sqrtsd %xmm1, %xmm1 divsd %xmm1, %xmm0 addsd -152(%rbp), %xmm0 movsd %xmm0, -152(%rbp) LBB9_8: jmp LBB9_9 LBB9_9: ## =>This Inner Loop Header: Depth=1 movsd -160(%rbp), %xmm0 ## xmm0 = mem[0],zero sqrtsd %xmm0, %xmm1 movsd LCPI9_14(%rip), %xmm0 ## xmm0 = mem[0],zero mulsd %xmm1, %xmm0 movsd -168(%rbp), %xmm1 ## xmm1 = mem[0],zero sqrtsd %xmm1, %xmm2 movsd -168(%rbp), %xmm1 ## xmm1 = mem[0],zero mulsd %xmm2, %xmm0 addsd %xmm1, %xmm0 mulsd -128(%rbp), %xmm0 movsd %xmm0, -128(%rbp) movsd -160(%rbp), %xmm1 ## xmm1 = mem[0],zero addsd -128(%rbp), %xmm1 movsd LCPI9_13(%rip), %xmm0 ## xmm0 = mem[0],zero mulsd %xmm1, %xmm0 movsd %xmm0, -160(%rbp) movsd -168(%rbp), %xmm1 ## xmm1 = mem[0],zero addsd -128(%rbp), %xmm1 movsd LCPI9_13(%rip), %xmm0 ## xmm0 = mem[0],zero mulsd %xmm1, %xmm0 movsd %xmm0, -168(%rbp) movsd -88(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd -160(%rbp), %xmm2 ## xmm2 = mem[0],zero mulsd -168(%rbp), %xmm2 mulsd -168(%rbp), %xmm2 movsd -136(%rbp), %xmm1 ## xmm1 = mem[0],zero mulsd %xmm2, %xmm0 addsd %xmm1, %xmm0 movsd %xmm0, -136(%rbp) movsd -168(%rbp), %xmm0 ## xmm0 = mem[0],zero subsd -136(%rbp), %xmm0 divsd -136(%rbp), %xmm0 movsd %xmm0, -144(%rbp) ## %bb.10: ## in Loop: Header=BB9_9 Depth=1 movsd -144(%rbp), %xmm0 ## xmm0 = mem[0],zero movaps LCPI9_11(%rip), %xmm1 ## xmm1 = [NaN,NaN] pand %xmm1, %xmm0 ucomisd -32(%rbp), %xmm0 ja LBB9_9 ## %bb.11: movsd -152(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd -144(%rbp), %xmm1 ## xmm1 = mem[0],zero mulsd -144(%rbp), %xmm1 movsd -96(%rbp), %xmm3 ## xmm3 = mem[0],zero movsd -144(%rbp), %xmm2 ## xmm2 = mem[0],zero movsd -104(%rbp), %xmm5 ## xmm5 = mem[0],zero movsd -144(%rbp), %xmm4 ## xmm4 = mem[0],zero movsd -112(%rbp), %xmm7 ## xmm7 = mem[0],zero movsd -144(%rbp), %xmm6 ## xmm6 = mem[0],zero movsd -120(%rbp), %xmm8 ## xmm8 = mem[0],zero mulsd %xmm8, %xmm6 addsd %xmm7, %xmm6 mulsd %xmm6, %xmm4 addsd %xmm5, %xmm4 mulsd %xmm4, %xmm2 addsd %xmm3, %xmm2 mulsd %xmm2, %xmm1 movsd LCPI9_12(%rip), %xmm2 ## xmm2 = mem[0],zero addsd %xmm2, %xmm1 mulsd %xmm1, %xmm0 movsd %xmm0, -8(%rbp) LBB9_12: movsd -8(%rbp), %xmm0 ## xmm0 = mem[0],zero addq $40, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/98574551.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _BWAND ; -- Begin function BWAND .p2align 2 _BWAND: ; @BWAND .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] sub x9, x29, #16 add x8, x29, #16 str x8, [x9] ldur x8, [x29, #-8] str x8, [sp, #24] ldr x0, [sp, #24] bl _strlen mov x8, x0 str w8, [sp, #8] ldr w8, [sp, #8] add w0, w8, #1 mov w1, #112 bl _adm_bsalloc str x0, [sp, #16] str wzr, [sp, #12] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #12] ldr w9, [sp, #8] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_4 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #16] ldrsw x9, [sp, #12] add x9, x8, x9 mov w8, #73 strb w8, [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: ldr x8, [sp, #16] ldrsw x9, [sp, #12] add x8, x8, x9 strb wzr, [x8] b LBB0_5 LBB0_5: ; =>This Loop Header: Depth=1 ; Child Loop BB0_6 Depth 2 str wzr, [sp, #12] b LBB0_6 LBB0_6: ; Parent Loop BB0_5 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #12] ldr w9, [sp, #8] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_16 b LBB0_7 LBB0_7: ; in Loop: Header=BB0_6 Depth=2 ldr x8, [sp, #16] ldrsw x9, [sp, #12] ldrsb w8, [x8, x9] subs w8, w8, #79 cset w8, eq tbnz w8, #0, LBB0_14 b LBB0_8 LBB0_8: ; in Loop: Header=BB0_6 Depth=2 ldr x8, [sp, #24] ldrsw x9, [sp, #12] ldrsb w8, [x8, x9] subs w8, w8, #79 cset w8, ne tbnz w8, #0, LBB0_10 b LBB0_9 LBB0_9: ; in Loop: Header=BB0_6 Depth=2 ldr x8, [sp, #16] ldrsw x9, [sp, #12] add x9, x8, x9 mov w8, #79 strb w8, [x9] b LBB0_13 LBB0_10: ; in Loop: Header=BB0_6 Depth=2 ldr x8, [sp, #24] ldrsw x9, [sp, #12] ldrsb w8, [x8, x9] subs w8, w8, #88 cset w8, ne tbnz w8, #0, LBB0_12 b LBB0_11 LBB0_11: ; in Loop: Header=BB0_6 Depth=2 ldr x8, [sp, #16] ldrsw x9, [sp, #12] add x9, x8, x9 mov w8, #88 strb w8, [x9] b LBB0_12 LBB0_12: ; in Loop: Header=BB0_6 Depth=2 b LBB0_13 LBB0_13: ; in Loop: Header=BB0_6 Depth=2 b LBB0_14 LBB0_14: ; in Loop: Header=BB0_6 Depth=2 b LBB0_15 LBB0_15: ; in Loop: Header=BB0_6 Depth=2 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB0_6 LBB0_16: ; in Loop: Header=BB0_5 Depth=1 b LBB0_17 LBB0_17: ; in Loop: Header=BB0_5 Depth=1 ldur x9, [x29, #-16] ldr x8, [x9] add x9, x9, #8 stur x9, [x29, #-16] str x8, [sp] ldr x0, [sp] str x0, [sp, #24] adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF bl _strcmp subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB0_5 b LBB0_18 LBB0_18: ldr x0, [sp, #16] 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 "ENDVAR" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _BWAND ## -- Begin function BWAND .p2align 4, 0x90 _BWAND: ## @BWAND .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 testb %al, %al je LBB0_25 ## %bb.24: movaps %xmm0, -192(%rbp) movaps %xmm1, -176(%rbp) movaps %xmm2, -160(%rbp) movaps %xmm3, -144(%rbp) movaps %xmm4, -128(%rbp) movaps %xmm5, -112(%rbp) movaps %xmm6, -96(%rbp) movaps %xmm7, -80(%rbp) LBB0_25: movq %r9, -200(%rbp) movq %r8, -208(%rbp) movq %rcx, -216(%rbp) movq %rdx, -224(%rbp) movq %rsi, -232(%rbp) movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movq %rdi, -40(%rbp) leaq -32(%rbp), %rax leaq -240(%rbp), %rcx movq %rcx, 16(%rax) leaq 16(%rbp), %rcx movq %rcx, 8(%rax) movl $48, 4(%rax) movl $8, (%rax) movq -40(%rbp), %rax movq %rax, -48(%rbp) movq -48(%rbp), %rdi callq _strlen ## kill: def $eax killed $eax killed $rax movl %eax, -64(%rbp) movl -64(%rbp), %edi addl $1, %edi movl $112, %esi callq _adm_bsalloc movq %rax, -56(%rbp) movl $0, -60(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movl -60(%rbp), %eax cmpl -64(%rbp), %eax jge LBB0_4 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movq -56(%rbp), %rax movslq -60(%rbp), %rcx movb $73, (%rax,%rcx) ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movl -60(%rbp), %eax addl $1, %eax movl %eax, -60(%rbp) jmp LBB0_1 LBB0_4: movq -56(%rbp), %rax movslq -60(%rbp), %rcx movb $0, (%rax,%rcx) LBB0_5: ## =>This Loop Header: Depth=1 ## Child Loop BB0_6 Depth 2 movl $0, -60(%rbp) LBB0_6: ## Parent Loop BB0_5 Depth=1 ## => This Inner Loop Header: Depth=2 movl -60(%rbp), %eax cmpl -64(%rbp), %eax jge LBB0_16 ## %bb.7: ## in Loop: Header=BB0_6 Depth=2 movq -56(%rbp), %rax movslq -60(%rbp), %rcx movsbl (%rax,%rcx), %eax cmpl $79, %eax je LBB0_14 ## %bb.8: ## in Loop: Header=BB0_6 Depth=2 movq -48(%rbp), %rax movslq -60(%rbp), %rcx movsbl (%rax,%rcx), %eax cmpl $79, %eax jne LBB0_10 ## %bb.9: ## in Loop: Header=BB0_6 Depth=2 movq -56(%rbp), %rax movslq -60(%rbp), %rcx movb $79, (%rax,%rcx) jmp LBB0_13 LBB0_10: ## in Loop: Header=BB0_6 Depth=2 movq -48(%rbp), %rax movslq -60(%rbp), %rcx movsbl (%rax,%rcx), %eax cmpl $88, %eax jne LBB0_12 ## %bb.11: ## in Loop: Header=BB0_6 Depth=2 movq -56(%rbp), %rax movslq -60(%rbp), %rcx movb $88, (%rax,%rcx) LBB0_12: ## in Loop: Header=BB0_6 Depth=2 jmp LBB0_13 LBB0_13: ## in Loop: Header=BB0_6 Depth=2 jmp LBB0_14 LBB0_14: ## in Loop: Header=BB0_6 Depth=2 jmp LBB0_15 LBB0_15: ## in Loop: Header=BB0_6 Depth=2 movl -60(%rbp), %eax addl $1, %eax movl %eax, -60(%rbp) jmp LBB0_6 LBB0_16: ## in Loop: Header=BB0_5 Depth=1 jmp LBB0_17 LBB0_17: ## in Loop: Header=BB0_5 Depth=1 leaq -32(%rbp), %rax movq %rax, -256(%rbp) ## 8-byte Spill movl -32(%rbp), %eax movl %eax, -244(%rbp) ## 4-byte Spill cmpl $40, %eax ja LBB0_19 ## %bb.18: ## in Loop: Header=BB0_5 Depth=1 movq -256(%rbp), %rcx ## 8-byte Reload movl -244(%rbp), %edx ## 4-byte Reload movslq %edx, %rax addq 16(%rcx), %rax addl $8, %edx movl %edx, (%rcx) movq %rax, -264(%rbp) ## 8-byte Spill jmp LBB0_20 LBB0_19: ## in Loop: Header=BB0_5 Depth=1 movq -256(%rbp), %rcx ## 8-byte Reload movq 8(%rcx), %rax movq %rax, %rdx addq $8, %rdx movq %rdx, 8(%rcx) movq %rax, -264(%rbp) ## 8-byte Spill LBB0_20: ## in Loop: Header=BB0_5 Depth=1 movq -264(%rbp), %rax ## 8-byte Reload movq (%rax), %rdi movq %rdi, -48(%rbp) leaq L_.str(%rip), %rsi callq _strcmp cmpl $0, %eax jne LBB0_5 ## %bb.21: leaq -32(%rbp), %rax movq -56(%rbp), %rax movq %rax, -272(%rbp) ## 8-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_23 ## %bb.22: movq -272(%rbp), %rax ## 8-byte Reload addq $272, %rsp ## imm = 0x110 popq %rbp retq LBB0_23: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "ENDVAR" .subsections_via_symbols
the_stack_data/36075326.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, #20] ; 4-byte Folded Spill stur wzr, [x29, #-4] mov x0, #2308 movk x0, #61, lsl #16 str x0, [sp, #24] ; 8-byte Folded Spill bl _malloc ldr w1, [sp, #20] ; 4-byte Folded Reload ldr x2, [sp, #24] ; 8-byte Folded Reload stur x0, [x29, #-16] ldur x0, [x29, #-16] mov x3, #-1 bl ___memset_chk stur wzr, [x29, #-24] mov x9, sp sub x8, x29, #20 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, #-20] 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 sub x8, x29, #28 str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _scanf ldur x8, [x29, #-16] ldursw x9, [x29, #-28] ldr w8, [x8, x9, lsl #2] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-24] add w8, w8, #1 stur w8, [x29, #-24] ldur x8, [x29, #-16] ldursw x9, [x29, #-28] add x9, x8, x9, lsl #2 ldr w8, [x9] add w8, w8, #1 str w8, [x9] b LBB0_4 LBB0_4: ; in Loop: Header=BB0_1 Depth=1 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-20] subs w8, w8, #1 stur w8, [x29, #-20] b LBB0_1 LBB0_6: ldur w9, [x29, #-24] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf mov w0, #0 ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d" l_.str.1: ; @.str.1 .asciz "%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 $4000004, %edi ## imm = 0x3D0904 callq _malloc movq %rax, -16(%rbp) movq -16(%rbp), %rdi xorl %esi, %esi movl $4000004, %edx ## imm = 0x3D0904 movq $-1, %rcx callq ___memset_chk movl $0, -24(%rbp) leaq L_.str(%rip), %rdi leaq -20(%rbp), %rsi movb $0, %al callq _scanf LBB0_1: ## =>This Inner Loop Header: Depth=1 cmpl $0, -20(%rbp) jle LBB0_6 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 leaq L_.str(%rip), %rdi leaq -28(%rbp), %rsi movb $0, %al callq _scanf movq -16(%rbp), %rax movslq -28(%rbp), %rcx cmpl $0, (%rax,%rcx,4) jne LBB0_4 ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movl -24(%rbp), %eax addl $1, %eax movl %eax, -24(%rbp) movq -16(%rbp), %rax movslq -28(%rbp), %rcx movl (%rax,%rcx,4), %edx addl $1, %edx movl %edx, (%rax,%rcx,4) LBB0_4: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_5 LBB0_5: ## in Loop: Header=BB0_1 Depth=1 movl -20(%rbp), %eax addl $-1, %eax movl %eax, -20(%rbp) jmp LBB0_1 LBB0_6: movl -24(%rbp), %esi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf xorl %eax, %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d" L_.str.1: ## @.str.1 .asciz "%d\n" .subsections_via_symbols
the_stack_data/103264781.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 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 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 str wzr, [sp, #8] str wzr, [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, ge tbnz w8, #0, LBB0_4 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldr w0, [sp, #8] bl _fibonacci mov x9, sp ; implicit-def: $x8 mov x8, x0 str x8, [x9] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #8] add w8, w8, #1 str w8, [sp, #8] b LBB0_1 LBB0_4: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _fibonacci ; -- Begin function fibonacci .p2align 2 _fibonacci: ; @fibonacci .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str w0, [sp, #8] ldr w8, [sp, #8] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: stur wzr, [x29, #-4] b LBB1_5 LBB1_2: ldr w8, [sp, #8] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB1_4 b LBB1_3 LBB1_3: mov w8, #1 stur w8, [x29, #-4] b LBB1_5 LBB1_4: ldr w8, [sp, #8] subs w0, w8, #1 bl _fibonacci str w0, [sp, #4] ; 4-byte Folded Spill ldr w8, [sp, #8] subs w0, w8, #2 bl _fibonacci mov x8, x0 ldr w0, [sp, #4] ; 4-byte Folded Reload add w8, w0, w8 stur w8, [x29, #-4] b LBB1_5 LBB1_5: 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 "Enter the number of elements for the series:\n" l_.str.1: ; @.str.1 .asciz "%d" l_.str.2: ; @.str.2 .asciz "Fibonacci series with %d elements:\n" l_.str.3: ; @.str.3 .asciz "%d\t" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp leaq L_.str(%rip), %rdi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi leaq -4(%rbp), %rsi movb $0, %al callq _scanf movl -4(%rbp), %esi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf movl $0, -8(%rbp) movl $0, -8(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movl -8(%rbp), %eax cmpl -4(%rbp), %eax jge LBB0_4 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl -8(%rbp), %edi callq _fibonacci movl %eax, %esi leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) jmp LBB0_1 LBB0_4: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _fibonacci ## -- Begin function fibonacci .p2align 4, 0x90 _fibonacci: ## @fibonacci .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl %edi, -8(%rbp) cmpl $0, -8(%rbp) jne LBB1_2 ## %bb.1: movl $0, -4(%rbp) jmp LBB1_5 LBB1_2: cmpl $1, -8(%rbp) jne LBB1_4 ## %bb.3: movl $1, -4(%rbp) jmp LBB1_5 LBB1_4: movl -8(%rbp), %edi subl $1, %edi callq _fibonacci movl %eax, -12(%rbp) ## 4-byte Spill movl -8(%rbp), %edi subl $2, %edi callq _fibonacci movl %eax, %ecx movl -12(%rbp), %eax ## 4-byte Reload addl %ecx, %eax movl %eax, -4(%rbp) LBB1_5: movl -4(%rbp), %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Enter the number of elements for the series:\n" L_.str.1: ## @.str.1 .asciz "%d" L_.str.2: ## @.str.2 .asciz "Fibonacci series with %d elements:\n" L_.str.3: ## @.str.3 .asciz "%d\t" .subsections_via_symbols
the_stack_data/18254.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _recurs ; -- Begin function recurs .p2align 2 _recurs: ; @recurs .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #1 stur w8, [x29, #-4] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 mov x0, #16960 movk x0, #15, lsl #16 bl _malloc str x0, [sp, #16] ldur w9, [x29, #-4] ; implicit-def: $x8 mov x8, x9 str x8, [sp, #8] ; 8-byte Folded Spill mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldur w8, [x29, #-4] add w8, w8, #1 stur w8, [x29, #-4] bl _recurs b LBB0_1 .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill .cfi_def_cfa_offset 16 mov x29, sp .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 bl _recurs ldp x29, x30, [sp], #16 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "heap test %d\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _recurs ## -- Begin function recurs .p2align 4, 0x90 _recurs: ## @recurs .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl $1, -4(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movl $1000000, %edi ## imm = 0xF4240 callq _malloc movq %rax, -16(%rbp) movl -4(%rbp), %esi leaq L_.str(%rip), %rdi movb $0, %al callq _printf movl -4(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) ## 4-byte Spill movl %eax, -4(%rbp) callq _recurs jmp LBB0_1 .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp callq _recurs popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "heap test %d\n" .subsections_via_symbols
the_stack_data/499334.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 _myPow ; -- Begin function myPow .p2align 2 _myPow: ; @myPow .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #12] str w1, [sp, #8] str wzr, [sp, #4] mov w8, #1 str w8, [sp] b LBB1_1 LBB1_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #4] add w9, w8, #1 str w9, [sp, #4] ldr w9, [sp, #8] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_3 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 ldr w9, [sp, #12] ldr w8, [sp] mul w8, w8, w9 str w8, [sp] b LBB1_1 LBB1_3: ldr w0, [sp] add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _ft_putnbr ; -- Begin function ft_putnbr .p2align 2 _ft_putnbr: ; @ft_putnbr .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, ge tbnz w8, #0, LBB2_2 b LBB2_1 LBB2_1: mov w0, #45 bl _ft_putchar ldur w9, [x29, #-4] mov w8, #0 subs w8, w8, w9 stur w8, [x29, #-4] b LBB2_2 LBB2_2: ldur w8, [x29, #-4] subs w8, w8, #10 cset w8, lt tbnz w8, #0, LBB2_4 b LBB2_3 LBB2_3: ldur w8, [x29, #-4] mov w9, #10 str w9, [sp, #8] ; 4-byte Folded Spill sdiv w0, w8, w9 bl _ft_putnbr ldr w10, [sp, #8] ; 4-byte Folded Reload ldur w8, [x29, #-4] sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 stur w8, [x29, #-4] b LBB2_4 LBB2_4: ldur w8, [x29, #-4] subs w8, w8, #10 cset w8, ge tbnz w8, #0, LBB2_6 b LBB2_5 LBB2_5: ldur w8, [x29, #-4] add w8, w8, #48 sxtb w0, w8 bl _ft_putchar b LBB2_6 LBB2_6: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _is_ascending ; -- Begin function is_ascending .p2align 2 _is_ascending: ; @is_ascending .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #8] mov w8, #1 str w8, [sp, #4] ldr w8, [sp, #8] mov w10, #10 sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 str w8, [sp] ldr w8, [sp, #8] subs w8, w8, #10 cset w8, ge tbnz w8, #0, LBB3_2 b LBB3_1 LBB3_1: str wzr, [sp, #12] b LBB3_8 LBB3_2: b LBB3_3 LBB3_3: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #8] mov w9, #10 sdiv w8, w8, w9 subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB3_7 b LBB3_4 LBB3_4: ; in Loop: Header=BB3_3 Depth=1 ldr w8, [sp, #8] mov w11, #10 sdiv w8, w8, w11 str w8, [sp, #8] ldr w8, [sp] ldr w9, [sp, #8] sdiv w10, w9, w11 mul w10, w10, w11 subs w9, w9, w10 subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB3_6 b LBB3_5 LBB3_5: str wzr, [sp, #4] b LBB3_7 LBB3_6: ; in Loop: Header=BB3_3 Depth=1 ldr w8, [sp, #8] mov w10, #10 sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 str w8, [sp] b LBB3_3 LBB3_7: ldr w8, [sp, #4] str w8, [sp, #12] b LBB3_8 LBB3_8: ldr w0, [sp, #12] add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _ft_print_combn ; -- Begin function ft_print_combn .p2align 2 _ft_print_combn: ; @ft_print_combn .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur w0, [x29, #-4] ldur w8, [x29, #-4] subs w8, w8, #0 cset w8, lt tbnz w8, #0, LBB4_2 b LBB4_1 LBB4_1: ldur w8, [x29, #-4] subs w8, w8, #10 cset w8, le tbnz w8, #0, LBB4_3 b LBB4_2 LBB4_2: b LBB4_12 LBB4_3: str wzr, [sp, #8] ldur w1, [x29, #-4] mov w0, #10 bl _myPow str w0, [sp, #4] b LBB4_4 LBB4_4: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #8] ldr w9, [sp, #4] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB4_11 b LBB4_5 LBB4_5: ; in Loop: Header=BB4_4 Depth=1 ldr w8, [sp, #8] subs w8, w8, #10 cset w8, ge tbnz w8, #0, LBB4_7 b LBB4_6 LBB4_6: ; in Loop: Header=BB4_4 Depth=1 mov w0, #48 bl _ft_putchar ldr w8, [sp, #8] add w8, w8, #48 sxtb w0, w8 bl _ft_putchar mov w0, #44 bl _ft_putchar mov w0, #32 bl _ft_putchar b LBB4_10 LBB4_7: ; in Loop: Header=BB4_4 Depth=1 ldr w0, [sp, #8] bl _is_ascending subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB4_9 b LBB4_8 LBB4_8: ; in Loop: Header=BB4_4 Depth=1 ldr w0, [sp, #8] bl _ft_putnbr mov w0, #44 bl _ft_putchar mov w0, #32 bl _ft_putchar b LBB4_9 LBB4_9: ; in Loop: Header=BB4_4 Depth=1 b LBB4_10 LBB4_10: ; in Loop: Header=BB4_4 Depth=1 ldr w8, [sp, #8] add w8, w8, #1 str w8, [sp, #8] b LBB4_4 LBB4_11: mov w0, #1 adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF mov x2, #2 bl _write b LBB4_12 LBB4_12: 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 "\b\b" .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 _myPow ## -- Begin function myPow .p2align 4, 0x90 _myPow: ## @myPow .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, -4(%rbp) movl %esi, -8(%rbp) movl $0, -12(%rbp) movl $1, -16(%rbp) LBB1_1: ## =>This Inner Loop Header: Depth=1 movl -12(%rbp), %eax movl %eax, %ecx addl $1, %ecx movl %ecx, -12(%rbp) cmpl -8(%rbp), %eax jge LBB1_3 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 movl -4(%rbp), %eax imull -16(%rbp), %eax movl %eax, -16(%rbp) jmp LBB1_1 LBB1_3: movl -16(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .globl _ft_putnbr ## -- Begin function ft_putnbr .p2align 4, 0x90 _ft_putnbr: ## @ft_putnbr .cfi_startproc ## %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) jge LBB2_2 ## %bb.1: movl $45, %edi callq _ft_putchar xorl %eax, %eax subl -4(%rbp), %eax movl %eax, -4(%rbp) LBB2_2: cmpl $10, -4(%rbp) jl LBB2_4 ## %bb.3: movl -4(%rbp), %eax movl $10, %ecx cltd idivl %ecx movl %eax, %edi callq _ft_putnbr movl -4(%rbp), %eax movl $10, %ecx cltd idivl %ecx movl %edx, -4(%rbp) LBB2_4: cmpl $10, -4(%rbp) jge LBB2_6 ## %bb.5: movl -4(%rbp), %eax addl $48, %eax ## kill: def $al killed $al killed $eax movsbl %al, %edi callq _ft_putchar LBB2_6: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _is_ascending ## -- Begin function is_ascending .p2align 4, 0x90 _is_ascending: ## @is_ascending .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 $1, -12(%rbp) movl -8(%rbp), %eax movl $10, %ecx cltd idivl %ecx movl %edx, -16(%rbp) cmpl $10, -8(%rbp) jge LBB3_2 ## %bb.1: movl $0, -4(%rbp) jmp LBB3_8 LBB3_2: jmp LBB3_3 LBB3_3: ## =>This Inner Loop Header: Depth=1 movl -8(%rbp), %eax movl $10, %ecx cltd idivl %ecx cmpl $0, %eax jle LBB3_7 ## %bb.4: ## in Loop: Header=BB3_3 Depth=1 movl -8(%rbp), %eax movl $10, %ecx cltd idivl %ecx movl %eax, -8(%rbp) movl -16(%rbp), %eax movl %eax, -20(%rbp) ## 4-byte Spill movl -8(%rbp), %eax movl $10, %ecx cltd idivl %ecx movl -20(%rbp), %eax ## 4-byte Reload cmpl %edx, %eax jg LBB3_6 ## %bb.5: movl $0, -12(%rbp) jmp LBB3_7 LBB3_6: ## in Loop: Header=BB3_3 Depth=1 movl -8(%rbp), %eax movl $10, %ecx cltd idivl %ecx movl %edx, -16(%rbp) jmp LBB3_3 LBB3_7: movl -12(%rbp), %eax movl %eax, -4(%rbp) LBB3_8: movl -4(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .globl _ft_print_combn ## -- Begin function ft_print_combn .p2align 4, 0x90 _ft_print_combn: ## @ft_print_combn .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl %edi, -4(%rbp) cmpl $0, -4(%rbp) jl LBB4_2 ## %bb.1: cmpl $10, -4(%rbp) jle LBB4_3 LBB4_2: jmp LBB4_12 LBB4_3: movl $0, -8(%rbp) movl -4(%rbp), %esi movl $10, %edi callq _myPow movl %eax, -12(%rbp) LBB4_4: ## =>This Inner Loop Header: Depth=1 movl -8(%rbp), %eax cmpl -12(%rbp), %eax jge LBB4_11 ## %bb.5: ## in Loop: Header=BB4_4 Depth=1 cmpl $10, -8(%rbp) jge LBB4_7 ## %bb.6: ## in Loop: Header=BB4_4 Depth=1 movl $48, %edi callq _ft_putchar movl -8(%rbp), %eax addl $48, %eax ## kill: def $al killed $al killed $eax movsbl %al, %edi callq _ft_putchar movl $44, %edi callq _ft_putchar movl $32, %edi callq _ft_putchar jmp LBB4_10 LBB4_7: ## in Loop: Header=BB4_4 Depth=1 movl -8(%rbp), %edi callq _is_ascending cmpl $0, %eax je LBB4_9 ## %bb.8: ## in Loop: Header=BB4_4 Depth=1 movl -8(%rbp), %edi callq _ft_putnbr movl $44, %edi callq _ft_putchar movl $32, %edi callq _ft_putchar LBB4_9: ## in Loop: Header=BB4_4 Depth=1 jmp LBB4_10 LBB4_10: ## in Loop: Header=BB4_4 Depth=1 movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) jmp LBB4_4 LBB4_11: movl $1, %edi leaq L_.str(%rip), %rsi movl $2, %edx callq _write LBB4_12: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "\b\b" .subsections_via_symbols
the_stack_data/369035.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #0 stur w8, [x29, #-12] ; 4-byte Folded Spill stur wzr, [x29, #-4] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov x9, sp sub x8, x29, #5 str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf ldursb w13, [x29, #-5] ldursb w8, [x29, #-5] subs w12, w8, #1 ldursb w11, [x29, #-5] ldursb w8, [x29, #-5] add w10, w8, #1 mov x9, sp ; implicit-def: $x8 mov x8, x13 str x8, [x9] ; implicit-def: $x8 mov x8, x12 str x8, [x9, #8] ; implicit-def: $x8 mov x8, x11 str x8, [x9, #16] ; implicit-def: $x8 mov x8, x10 str x8, [x9, #24] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf ldursb w10, [x29, #-5] mov x9, sp ; implicit-def: $x8 mov x8, x10 str x8, [x9] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf ldur w0, [x29, #-12] ; 4-byte Folded Reload ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "\nType a letter: " l_.str.1: ; @.str.1 .asciz "%c" l_.str.2: ; @.str.2 .asciz "Predecessor of %c is %c\nSuccessor of %c is %c\n\n" l_.str.3: ; @.str.3 .asciz "Code ASCII: %i\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) leaq L_.str(%rip), %rdi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi leaq -5(%rbp), %rsi movb $0, %al callq _scanf movsbl -5(%rbp), %esi movsbl -5(%rbp), %edx subl $1, %edx movsbl -5(%rbp), %ecx movsbl -5(%rbp), %r8d addl $1, %r8d leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf movsbl -5(%rbp), %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 .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "\nType a letter: " L_.str.1: ## @.str.1 .asciz "%c" L_.str.2: ## @.str.2 .asciz "Predecessor of %c is %c\nSuccessor of %c is %c\n\n" L_.str.3: ## @.str.3 .asciz "Code ASCII: %i\n" .subsections_via_symbols
the_stack_data/129267.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] str wzr, [sp, #8] str wzr, [sp, #4] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #8] subs w8, w8, #10 cset w8, le tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: b LBB0_4 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #8] add w8, w8, #1 str w8, [sp, #8] ldr w8, [sp, #4] add w8, w8, #1 str w8, [sp, #4] b LBB0_1 LBB0_4: 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 _main ## -- Begin function main .p2align 4, 0x90 _main: ## @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 $0, -12(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 cmpl $10, -8(%rbp) jle LBB0_3 ## %bb.2: jmp LBB0_4 LBB0_3: ## in Loop: Header=BB0_1 Depth=1 movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB0_1 LBB0_4: movl -12(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/151705419.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _test3 ; -- Begin function test3 .p2align 2 _test3: ; @test3 .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #16] ldr x8, [sp, #16] ldr w8, [x8] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: bl _test1 b LBB0_2 LBB0_2: sub x0, x29, #4 str x0, [sp, #8] ; 8-byte Folded Spill bl _init ldr x0, [sp, #8] ; 8-byte Folded Reload bl _test2 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 init _init: ; @init .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] ldr x9, [sp, #8] mov w8, #-1 str w8, [x9] add sp, sp, #16 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _test3 ## -- Begin function test3 .p2align 4, 0x90 _test3: ## @test3 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -16(%rbp) movq -16(%rbp), %rax cmpl $0, (%rax) je LBB0_2 ## %bb.1: movb $0, %al callq _test1 LBB0_2: leaq -8(%rbp), %rdi callq _init leaq -8(%rbp), %rdi callq _test2 movl -8(%rbp), %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .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 movq %rdi, -8(%rbp) movq -8(%rbp), %rax movl $-1, (%rax) popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/93888952.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _add ; -- Begin function add .p2align 2 _add: ; @add .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #12] str w1, [sp, #8] ldr w8, [sp, #12] ldr w9, [sp, #8] add w0, w8, w9 add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _foo ; -- Begin function foo .p2align 2 _foo: ; @foo .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, _add@PAGE add x8, x8, _add@PAGEOFF str x8, [sp, #24] mov w8, #1 str w8, [sp, #12] mov w8, #2 str w8, [sp, #8] ldr x8, [sp, #24] ldr w0, [sp, #12] ldr w1, [sp, #8] blr x8 str w0, [sp, #4] 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 _add ## -- Begin function add .p2align 4, 0x90 _add: ## @add .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, -4(%rbp) movl %esi, -8(%rbp) movl -4(%rbp), %eax addl -8(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .globl _foo ## -- Begin function foo .p2align 4, 0x90 _foo: ## @foo .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp leaq _add(%rip), %rax movq %rax, -8(%rbp) movl $1, -20(%rbp) movl $2, -24(%rbp) movq -8(%rbp), %rax movl -20(%rbp), %edi movl -24(%rbp), %esi callq *%rax movl %eax, -28(%rbp) xorl %eax, %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/151704791.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] bl _bar ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #10 stur w8, [x29, #-4] mov w8, #11 str w8, [sp, #8] ldur w8, [x29, #-4] add w8, w8, #1 stur w8, [x29, #-4] ldur w8, [x29, #-4] add w8, w8, #3 stur w8, [x29, #-4] b LBB1_1 LBB1_1: mov w8, #10 stur w8, [x29, #-4] ldur w8, [x29, #-4] add w8, w8, #1 stur w8, [x29, #-4] ldr w8, [sp, #8] add w8, w8, #1 str w8, [sp, #8] b LBB1_2 LBB1_2: ldur w0, [x29, #-4] ldr w1, [sp, #8] bl _foo 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 _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) movb $0, %al callq _bar 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 $10, -4(%rbp) movl $11, -8(%rbp) movl -4(%rbp), %eax addl $1, %eax movl %eax, -4(%rbp) movl -4(%rbp), %eax addl $3, %eax movl %eax, -4(%rbp) ## %bb.1: movl $10, -4(%rbp) movl -4(%rbp), %eax addl $1, %eax movl %eax, -4(%rbp) movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) ## %bb.2: movl -4(%rbp), %edi movl -8(%rbp), %esi callq _foo xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/141825.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #0 str w8, [sp, #8] ; 4-byte Folded Spill stur wzr, [x29, #-4] bl _fun2 ldr w0, [sp, #8] ; 4-byte Folded Reload ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) callq _fun2 xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/11075142.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _search1 ; -- Begin function search1 .p2align 2 _search1: ; @search1 .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 adrp x9, _maiores@GOTPAGE ldr x9, [x9, _maiores@GOTPAGEOFF] str x9, [sp] ; 8-byte Folded Spill str x0, [sp, #24] ldr x8, [sp, #24] str x8, [sp, #16] ldr x8, [sp, #16] ldr x8, [x8] str x8, [x9] str wzr, [sp, #12] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #12] mov w9, #12500 subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_6 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldr x9, [sp] ; 8-byte Folded Reload ldr x8, [sp, #16] ldrsw x10, [sp, #12] ldr x8, [x8, x10, lsl #3] ldr x9, [x9] subs x8, x8, x9 cset w8, le tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr x9, [sp] ; 8-byte Folded Reload ldr x8, [sp, #16] ldrsw x10, [sp, #12] ldr x8, [x8, x10, lsl #3] str x8, [x9] b LBB0_4 LBB0_4: ; in Loop: Header=BB0_1 Depth=1 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB0_1 LBB0_6: mov x0, #0 add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _search2 ; -- Begin function search2 .p2align 2 _search2: ; @search2 .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 adrp x9, _maiores@GOTPAGE ldr x9, [x9, _maiores@GOTPAGEOFF] str x9, [sp] ; 8-byte Folded Spill str x0, [sp, #24] ldr x8, [sp, #24] str x8, [sp, #16] ldr x8, [sp, #16] ldr x8, [x8] str x8, [x9, #8] mov w8, #12500 str w8, [sp, #12] b LBB1_1 LBB1_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #12] mov w9, #25000 subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_6 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 ldr x9, [sp] ; 8-byte Folded Reload ldr x8, [sp, #16] ldrsw x10, [sp, #12] ldr x8, [x8, x10, lsl #3] ldr x9, [x9, #8] subs x8, x8, x9 cset w8, le tbnz w8, #0, LBB1_4 b LBB1_3 LBB1_3: ; in Loop: Header=BB1_1 Depth=1 ldr x9, [sp] ; 8-byte Folded Reload ldr x8, [sp, #16] ldrsw x10, [sp, #12] ldr x8, [x8, x10, lsl #3] str x8, [x9, #8] b LBB1_4 LBB1_4: ; in Loop: Header=BB1_1 Depth=1 b LBB1_5 LBB1_5: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB1_1 LBB1_6: mov x0, #0 add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _search3 ; -- Begin function search3 .p2align 2 _search3: ; @search3 .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 adrp x9, _maiores@GOTPAGE ldr x9, [x9, _maiores@GOTPAGEOFF] str x9, [sp] ; 8-byte Folded Spill str x0, [sp, #24] ldr x8, [sp, #24] str x8, [sp, #16] ldr x8, [sp, #16] ldr x8, [x8] str x8, [x9, #16] mov w8, #25000 str w8, [sp, #12] b LBB2_1 LBB2_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #12] mov w9, #37500 subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB2_6 b LBB2_2 LBB2_2: ; in Loop: Header=BB2_1 Depth=1 ldr x9, [sp] ; 8-byte Folded Reload ldr x8, [sp, #16] ldrsw x10, [sp, #12] ldr x8, [x8, x10, lsl #3] ldr x9, [x9, #16] subs x8, x8, x9 cset w8, le tbnz w8, #0, LBB2_4 b LBB2_3 LBB2_3: ; in Loop: Header=BB2_1 Depth=1 ldr x9, [sp] ; 8-byte Folded Reload ldr x8, [sp, #16] ldrsw x10, [sp, #12] ldr x8, [x8, x10, lsl #3] str x8, [x9, #16] b LBB2_4 LBB2_4: ; in Loop: Header=BB2_1 Depth=1 b LBB2_5 LBB2_5: ; in Loop: Header=BB2_1 Depth=1 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB2_1 LBB2_6: mov x0, #0 add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _search4 ; -- Begin function search4 .p2align 2 _search4: ; @search4 .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 adrp x9, _maiores@GOTPAGE ldr x9, [x9, _maiores@GOTPAGEOFF] str x9, [sp] ; 8-byte Folded Spill str x0, [sp, #24] ldr x8, [sp, #24] str x8, [sp, #16] ldr x8, [sp, #16] ldr x8, [x8] str x8, [x9, #24] mov w8, #37500 str w8, [sp, #12] b LBB3_1 LBB3_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #12] mov w9, #50000 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 x9, [sp] ; 8-byte Folded Reload ldr x8, [sp, #16] ldrsw x10, [sp, #12] ldr x8, [x8, x10, lsl #3] ldr x9, [x9, #24] subs x8, x8, x9 cset w8, le tbnz w8, #0, LBB3_4 b LBB3_3 LBB3_3: ; in Loop: Header=BB3_1 Depth=1 ldr x9, [sp] ; 8-byte Folded Reload ldr x8, [sp, #16] ldrsw x10, [sp, #12] ldr x8, [x8, x10, lsl #3] str x8, [x9, #24] 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, #12] add w8, w8, #1 str w8, [sp, #12] b LBB3_1 LBB3_6: mov x0, #0 add sp, sp, #32 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, #6896 movk w9, #6, lsl #16 adrp x16, ___chkstk_darwin@GOTPAGE ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF] blr x16 sub sp, sp, #97, lsl #12 ; =397312 sub sp, sp, #2800 adrp x8, _maiores@GOTPAGE ldr x8, [x8, _maiores@GOTPAGEOFF] str x8, [sp, #40] ; 8-byte Folded Spill adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] str wzr, [sp, #100] str wzr, [sp, #60] b LBB4_1 LBB4_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #60] mov w9, #50000 subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB4_4 b LBB4_2 LBB4_2: ; in Loop: Header=BB4_1 Depth=1 ldr w8, [sp, #60] add w0, w8, #1 bl _srandom bl _random ldrsw x9, [sp, #60] add x8, sp, #104 str x0, [x8, x9, lsl #3] b LBB4_3 LBB4_3: ; in Loop: Header=BB4_1 Depth=1 ldr w8, [sp, #60] add w8, w8, #1 str w8, [sp, #60] b LBB4_1 LBB4_4: add x0, sp, #88 mov x1, #0 str x1, [sp, #24] ; 8-byte Folded Spill adrp x2, _search1@PAGE add x2, x2, _search1@PAGEOFF add x3, sp, #104 str x3, [sp, #32] ; 8-byte Folded Spill bl _pthread_create ldr x1, [sp, #24] ; 8-byte Folded Reload ldr x3, [sp, #32] ; 8-byte Folded Reload add x0, sp, #80 adrp x2, _search2@PAGE add x2, x2, _search2@PAGEOFF bl _pthread_create ldr x1, [sp, #24] ; 8-byte Folded Reload ldr x3, [sp, #32] ; 8-byte Folded Reload add x0, sp, #72 adrp x2, _search3@PAGE add x2, x2, _search3@PAGEOFF bl _pthread_create ldr x1, [sp, #24] ; 8-byte Folded Reload ldr x3, [sp, #32] ; 8-byte Folded Reload add x0, sp, #64 adrp x2, _search4@PAGE add x2, x2, _search4@PAGEOFF bl _pthread_create ldr x8, [sp, #40] ; 8-byte Folded Reload ldr x8, [x8] str x8, [sp, #48] str wzr, [sp, #60] b LBB4_5 LBB4_5: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #60] subs w8, w8, #4 cset w8, ge tbnz w8, #0, LBB4_10 b LBB4_6 LBB4_6: ; in Loop: Header=BB4_5 Depth=1 ldr x8, [sp, #40] ; 8-byte Folded Reload ldrsw x9, [sp, #60] ldr x8, [x8, x9, lsl #3] ldr x9, [sp, #48] subs x8, x8, x9 cset w8, le tbnz w8, #0, LBB4_8 b LBB4_7 LBB4_7: ; in Loop: Header=BB4_5 Depth=1 ldr x8, [sp, #40] ; 8-byte Folded Reload ldrsw x9, [sp, #60] ldr x8, [x8, x9, lsl #3] str x8, [sp, #48] b LBB4_8 LBB4_8: ; in Loop: Header=BB4_5 Depth=1 b LBB4_9 LBB4_9: ; in Loop: Header=BB4_5 Depth=1 ldr w8, [sp, #60] add w8, w8, #1 str w8, [sp, #60] b LBB4_5 LBB4_10: ldr x8, [sp, #48] mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldr x0, [sp, #64] mov x1, #0 str x1, [sp, #16] ; 8-byte Folded Spill bl _pthread_join ldr x1, [sp, #16] ; 8-byte Folded Reload ldr x0, [sp, #72] bl _pthread_join ldr x1, [sp, #16] ; 8-byte Folded Reload ldr x0, [sp, #80] bl _pthread_join ldr x1, [sp, #16] ; 8-byte Folded Reload ldr x0, [sp, #88] bl _pthread_join add x0, sp, #104 bl _maior_numero str x0, [sp, #48] ldr x8, [sp, #48] mov x9, sp str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf ldur x9, [x29, #-24] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB4_12 b LBB4_11 LBB4_11: bl ___stack_chk_fail LBB4_12: mov w0, #0 add sp, sp, #97, lsl #12 ; =397312 add sp, sp, #2800 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x28, x27, [sp], #32 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .globl _maior_numero ; -- Begin function maior_numero .p2align 2 _maior_numero: ; @maior_numero .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, #24] ldr x8, [sp, #24] ldr x8, [x8] str x8, [sp, #16] str wzr, [sp, #12] b LBB5_1 LBB5_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #12] mov w9, #50000 subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB5_6 b LBB5_2 LBB5_2: ; in Loop: Header=BB5_1 Depth=1 ldr x8, [sp, #24] ldrsw x9, [sp, #12] ldr x8, [x8, x9, lsl #3] ldr x9, [sp, #16] subs x8, x8, x9 cset w8, le tbnz w8, #0, LBB5_4 b LBB5_3 LBB5_3: ; in Loop: Header=BB5_1 Depth=1 ldr x8, [sp, #24] ldrsw x9, [sp, #12] ldr x8, [x8, x9, lsl #3] str x8, [sp, #16] b LBB5_4 LBB5_4: ; in Loop: Header=BB5_1 Depth=1 b LBB5_5 LBB5_5: ; in Loop: Header=BB5_1 Depth=1 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB5_1 LBB5_6: ldr x0, [sp, #16] add sp, sp, #32 ret .cfi_endproc ; -- End function .comm _maiores,32,3 ; @maiores .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Maior valor por busca dividida: %ld\n" l_.str.1: ; @.str.1 .asciz "Maior valor por busca completa: %ld\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _search1 ## -- Begin function search1 .p2align 4, 0x90 _search1: ## @search1 .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 movq (%rax), %rcx movq _maiores@GOTPCREL(%rip), %rax movq %rcx, (%rax) movl $0, -20(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 cmpl $12500, -20(%rbp) ## imm = 0x30D4 jge LBB0_6 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movq -16(%rbp), %rax movslq -20(%rbp), %rcx movq (%rax,%rcx,8), %rax movq _maiores@GOTPCREL(%rip), %rcx movq (%rcx), %rcx cmpq %rcx, %rax jle LBB0_4 ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movq -16(%rbp), %rax movslq -20(%rbp), %rcx movq (%rax,%rcx,8), %rcx movq _maiores@GOTPCREL(%rip), %rax movq %rcx, (%rax) LBB0_4: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_5 LBB0_5: ## in Loop: Header=BB0_1 Depth=1 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB0_1 LBB0_6: xorl %eax, %eax ## kill: def $rax killed $eax popq %rbp retq .cfi_endproc ## -- End function .globl _search2 ## -- Begin function search2 .p2align 4, 0x90 _search2: ## @search2 .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 movq (%rax), %rcx movq _maiores@GOTPCREL(%rip), %rax movq %rcx, 8(%rax) movl $12500, -20(%rbp) ## imm = 0x30D4 LBB1_1: ## =>This Inner Loop Header: Depth=1 cmpl $25000, -20(%rbp) ## imm = 0x61A8 jge LBB1_6 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 movq -16(%rbp), %rax movslq -20(%rbp), %rcx movq (%rax,%rcx,8), %rax movq _maiores@GOTPCREL(%rip), %rcx movq 8(%rcx), %rcx cmpq %rcx, %rax jle LBB1_4 ## %bb.3: ## in Loop: Header=BB1_1 Depth=1 movq -16(%rbp), %rax movslq -20(%rbp), %rcx movq (%rax,%rcx,8), %rcx movq _maiores@GOTPCREL(%rip), %rax movq %rcx, 8(%rax) LBB1_4: ## in Loop: Header=BB1_1 Depth=1 jmp LBB1_5 LBB1_5: ## in Loop: Header=BB1_1 Depth=1 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB1_1 LBB1_6: xorl %eax, %eax ## kill: def $rax killed $eax popq %rbp retq .cfi_endproc ## -- End function .globl _search3 ## -- Begin function search3 .p2align 4, 0x90 _search3: ## @search3 .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 movq (%rax), %rcx movq _maiores@GOTPCREL(%rip), %rax movq %rcx, 16(%rax) movl $25000, -20(%rbp) ## imm = 0x61A8 LBB2_1: ## =>This Inner Loop Header: Depth=1 cmpl $37500, -20(%rbp) ## imm = 0x927C jge LBB2_6 ## %bb.2: ## in Loop: Header=BB2_1 Depth=1 movq -16(%rbp), %rax movslq -20(%rbp), %rcx movq (%rax,%rcx,8), %rax movq _maiores@GOTPCREL(%rip), %rcx movq 16(%rcx), %rcx cmpq %rcx, %rax jle LBB2_4 ## %bb.3: ## in Loop: Header=BB2_1 Depth=1 movq -16(%rbp), %rax movslq -20(%rbp), %rcx movq (%rax,%rcx,8), %rcx movq _maiores@GOTPCREL(%rip), %rax movq %rcx, 16(%rax) LBB2_4: ## in Loop: Header=BB2_1 Depth=1 jmp LBB2_5 LBB2_5: ## in Loop: Header=BB2_1 Depth=1 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB2_1 LBB2_6: xorl %eax, %eax ## kill: def $rax killed $eax popq %rbp retq .cfi_endproc ## -- End function .globl _search4 ## -- Begin function search4 .p2align 4, 0x90 _search4: ## @search4 .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 movq (%rax), %rcx movq _maiores@GOTPCREL(%rip), %rax movq %rcx, 24(%rax) movl $37500, -20(%rbp) ## imm = 0x927C LBB3_1: ## =>This Inner Loop Header: Depth=1 cmpl $50000, -20(%rbp) ## imm = 0xC350 jge LBB3_6 ## %bb.2: ## in Loop: Header=BB3_1 Depth=1 movq -16(%rbp), %rax movslq -20(%rbp), %rcx movq (%rax,%rcx,8), %rax movq _maiores@GOTPCREL(%rip), %rcx movq 24(%rcx), %rcx cmpq %rcx, %rax jle LBB3_4 ## %bb.3: ## in Loop: Header=BB3_1 Depth=1 movq -16(%rbp), %rax movslq -20(%rbp), %rcx movq (%rax,%rcx,8), %rcx movq _maiores@GOTPCREL(%rip), %rax movq %rcx, 24(%rax) LBB3_4: ## in Loop: Header=BB3_1 Depth=1 jmp LBB3_5 LBB3_5: ## in Loop: Header=BB3_1 Depth=1 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB3_1 LBB3_6: xorl %eax, %eax ## kill: def $rax killed $eax popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl $400080, %eax ## imm = 0x61AD0 callq ____chkstk_darwin subq %rax, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -400020(%rbp) movl $0, -400060(%rbp) LBB4_1: ## =>This Inner Loop Header: Depth=1 cmpl $50000, -400060(%rbp) ## imm = 0xC350 jge LBB4_4 ## %bb.2: ## in Loop: Header=BB4_1 Depth=1 movl -400060(%rbp), %edi addl $1, %edi callq _srandom callq _random movq %rax, %rcx movslq -400060(%rbp), %rax movq %rcx, -400016(%rbp,%rax,8) ## %bb.3: ## in Loop: Header=BB4_1 Depth=1 movl -400060(%rbp), %eax addl $1, %eax movl %eax, -400060(%rbp) jmp LBB4_1 LBB4_4: leaq -400016(%rbp), %rcx leaq -400032(%rbp), %rdi xorl %eax, %eax movl %eax, %esi leaq _search1(%rip), %rdx callq _pthread_create leaq -400016(%rbp), %rcx leaq -400040(%rbp), %rdi xorl %eax, %eax movl %eax, %esi leaq _search2(%rip), %rdx callq _pthread_create leaq -400016(%rbp), %rcx leaq -400048(%rbp), %rdi xorl %eax, %eax movl %eax, %esi leaq _search3(%rip), %rdx callq _pthread_create leaq -400016(%rbp), %rcx leaq -400056(%rbp), %rdi xorl %eax, %eax movl %eax, %esi leaq _search4(%rip), %rdx callq _pthread_create movq _maiores@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -400072(%rbp) movl $0, -400060(%rbp) LBB4_5: ## =>This Inner Loop Header: Depth=1 cmpl $4, -400060(%rbp) jge LBB4_10 ## %bb.6: ## in Loop: Header=BB4_5 Depth=1 movslq -400060(%rbp), %rcx movq _maiores@GOTPCREL(%rip), %rax movq (%rax,%rcx,8), %rax cmpq -400072(%rbp), %rax jle LBB4_8 ## %bb.7: ## in Loop: Header=BB4_5 Depth=1 movslq -400060(%rbp), %rcx movq _maiores@GOTPCREL(%rip), %rax movq (%rax,%rcx,8), %rax movq %rax, -400072(%rbp) LBB4_8: ## in Loop: Header=BB4_5 Depth=1 jmp LBB4_9 LBB4_9: ## in Loop: Header=BB4_5 Depth=1 movl -400060(%rbp), %eax addl $1, %eax movl %eax, -400060(%rbp) jmp LBB4_5 LBB4_10: movq -400072(%rbp), %rsi leaq L_.str(%rip), %rdi movb $0, %al callq _printf movq -400056(%rbp), %rdi xorl %eax, %eax movl %eax, %esi callq _pthread_join movq -400048(%rbp), %rdi xorl %eax, %eax movl %eax, %esi callq _pthread_join movq -400040(%rbp), %rdi xorl %eax, %eax movl %eax, %esi callq _pthread_join movq -400032(%rbp), %rdi xorl %eax, %eax movl %eax, %esi callq _pthread_join leaq -400016(%rbp), %rdi callq _maior_numero movq %rax, -400072(%rbp) movq -400072(%rbp), %rsi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB4_12 ## %bb.11: xorl %eax, %eax addq $400080, %rsp ## imm = 0x61AD0 popq %rbp retq LBB4_12: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _maior_numero ## -- Begin function maior_numero .p2align 4, 0x90 _maior_numero: ## @maior_numero .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), %rax movq %rax, -16(%rbp) movl $0, -20(%rbp) LBB5_1: ## =>This Inner Loop Header: Depth=1 cmpl $50000, -20(%rbp) ## imm = 0xC350 jge LBB5_6 ## %bb.2: ## in Loop: Header=BB5_1 Depth=1 movq -8(%rbp), %rax movslq -20(%rbp), %rcx movq (%rax,%rcx,8), %rax cmpq -16(%rbp), %rax jle LBB5_4 ## %bb.3: ## in Loop: Header=BB5_1 Depth=1 movq -8(%rbp), %rax movslq -20(%rbp), %rcx movq (%rax,%rcx,8), %rax movq %rax, -16(%rbp) LBB5_4: ## in Loop: Header=BB5_1 Depth=1 jmp LBB5_5 LBB5_5: ## in Loop: Header=BB5_1 Depth=1 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB5_1 LBB5_6: movq -16(%rbp), %rax popq %rbp retq .cfi_endproc ## -- End function .comm _maiores,32,4 ## @maiores .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Maior valor por busca dividida: %ld\n" L_.str.1: ## @.str.1 .asciz "Maior valor por busca completa: %ld\n" .subsections_via_symbols
the_stack_data/234518238.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 adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf ldr w0, [sp, #8] ; 4-byte Folded Reload ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "This is the way the world ends" l_.str.1: ; @.str.1 .asciz "Not with a bang but a whimper." .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 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 "This is the way the world ends" L_.str.1: ## @.str.1 .asciz "Not with a bang but a whimper." .subsections_via_symbols
the_stack_data/979111.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _mp_strlen ; -- Begin function mp_strlen .p2align 2 _mp_strlen: ; @mp_strlen .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] ldr x8, [sp, #8] str x8, [sp] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp] ldrb w8, [x8] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp] add x8, x8, #1 str x8, [sp] b LBB0_1 LBB0_3: ldr x8, [sp] ldr x9, [sp, #8] subs x0, x8, x9 add sp, sp, #16 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _mp_strlen ## -- Begin function mp_strlen .p2align 4, 0x90 _mp_strlen: ## @mp_strlen .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) movq -8(%rbp), %rax movq %rax, -16(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movq -16(%rbp), %rax cmpb $0, (%rax) je LBB0_3 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movq -16(%rbp), %rax addq $1, %rax movq %rax, -16(%rbp) jmp LBB0_1 LBB0_3: movq -16(%rbp), %rax movq -8(%rbp), %rcx subq %rcx, %rax popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/143576.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 str x0, [sp, #8] mov w0, #0 add sp, sp, #16 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _f ## -- Begin function f .p2align 4, 0x90 _f: ## @f .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) xorl %eax, %eax popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/745208.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: stp x28, x27, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w27, -24 .cfi_offset w28, -32 mov w9, #4096 adrp x16, ___chkstk_darwin@GOTPAGE ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF] blr x16 sub sp, sp, #1, lsl #12 ; =4096 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] str w0, [sp, #84] str x1, [sp, #72] ldr x8, [sp, #72] ldr x8, [x8, #16] str x8, [sp, #64] ldr x8, [sp, #72] ldr x0, [x8, #24] bl _atoi str w0, [sp, #60] add x0, sp, #3088 str x0, [sp, #8] ; 8-byte Folded Spill mov x1, #1000 str x1, [sp, #40] ; 8-byte Folded Spill bl _bzero ldr x0, [sp, #8] ; 8-byte Folded Reload ldr x1, [sp, #40] ; 8-byte Folded Reload ldr x8, [sp, #64] mov x9, sp str x8, [x9] adrp x2, l_.str@PAGE add x2, x2, l_.str@PAGEOFF str x2, [sp, #24] ; 8-byte Folded Spill bl _snprintf ldr x1, [sp, #8] ; 8-byte Folded Reload mov w0, #0 str w0, [sp, #56] ; 4-byte Folded Spill bl _mysql_query ldr x1, [sp, #40] ; 8-byte Folded Reload add x0, sp, #2088 str x0, [sp, #16] ; 8-byte Folded Spill bl _bzero ldr x0, [sp, #16] ; 8-byte Folded Reload ldr x1, [sp, #40] ; 8-byte Folded Reload ldr x2, [sp, #64] bl _sanitizeString ldr x1, [sp, #40] ; 8-byte Folded Reload add x0, sp, #1088 str x0, [sp, #32] ; 8-byte Folded Spill bl _bzero ldr x8, [sp, #16] ; 8-byte Folded Reload ldr x2, [sp, #24] ; 8-byte Folded Reload ldr x0, [sp, #32] ; 8-byte Folded Reload ldr x1, [sp, #40] ; 8-byte Folded Reload mov x9, sp str x8, [x9] bl _snprintf ldr x1, [sp, #32] ; 8-byte Folded Reload ldr w0, [sp, #56] ; 4-byte Folded Reload bl _mysql_query ldr x1, [sp, #40] ; 8-byte Folded Reload add x0, sp, #88 str x0, [sp, #48] ; 8-byte Folded Spill bl _bzero ldr x1, [sp, #40] ; 8-byte Folded Reload ldr x0, [sp, #48] ; 8-byte Folded Reload ldr w9, [sp, #60] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x2, l_.str.1@PAGE add x2, x2, l_.str.1@PAGEOFF bl _snprintf ldr x1, [sp, #48] ; 8-byte Folded Reload ldr w0, [sp, #56] ; 4-byte Folded Reload bl _mysql_query ldur x9, [x29, #-24] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: bl ___stack_chk_fail LBB0_2: mov w0, #0 add sp, sp, #1, lsl #12 ; =4096 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 "SELECT UID FROM USERS where name = \"%s\"" l_.str.1: ; @.str.1 .asciz "SELECT UID FROM USERS where number = \"%i\"" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $4064, %rsp ## imm = 0xFE0 movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl %edi, -4036(%rbp) movq %rsi, -4048(%rbp) movq -4048(%rbp), %rax movq 16(%rax), %rax movq %rax, -4056(%rbp) movq -4048(%rbp), %rax movq 24(%rax), %rdi callq _atoi movl %eax, -4060(%rbp) leaq -1008(%rbp), %rdi xorl %esi, %esi movl $1000, %edx ## imm = 0x3E8 callq _memset leaq -1008(%rbp), %rdi movq -4056(%rbp), %rcx movl $1000, %esi ## imm = 0x3E8 leaq L_.str(%rip), %rdx movb $0, %al callq _snprintf leaq -1008(%rbp), %rsi xorl %edi, %edi callq _mysql_query leaq -2016(%rbp), %rdi xorl %esi, %esi movl $1000, %edx ## imm = 0x3E8 callq _memset leaq -2016(%rbp), %rdi movq -4056(%rbp), %rdx movl $1000, %esi ## imm = 0x3E8 callq _sanitizeString leaq -3024(%rbp), %rdi xorl %esi, %esi movl $1000, %edx ## imm = 0x3E8 callq _memset leaq -3024(%rbp), %rdi leaq -2016(%rbp), %rcx movl $1000, %esi ## imm = 0x3E8 leaq L_.str(%rip), %rdx movb $0, %al callq _snprintf leaq -3024(%rbp), %rsi xorl %edi, %edi callq _mysql_query leaq -4032(%rbp), %rdi xorl %esi, %esi movl $1000, %edx ## imm = 0x3E8 callq _memset leaq -4032(%rbp), %rdi movl -4060(%rbp), %ecx movl $1000, %esi ## imm = 0x3E8 leaq L_.str.1(%rip), %rdx movb $0, %al callq _snprintf leaq -4032(%rbp), %rsi xorl %edi, %edi callq _mysql_query movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_2 ## %bb.1: xorl %eax, %eax addq $4064, %rsp ## imm = 0xFE0 popq %rbp retq LBB0_2: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "SELECT UID FROM USERS where name = \"%s\"" L_.str.1: ## @.str.1 .asciz "SELECT UID FROM USERS where number = \"%i\"" .subsections_via_symbols
the_stack_data/156394181.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _stristr ; -- Begin function stristr .p2align 2 _stristr: ; @stristr .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] ldur x8, [x29, #-16] str x8, [sp, #16] b LBB0_1 LBB0_1: ; =>This Loop Header: Depth=1 ; Child Loop BB0_3 Depth 2 ; Child Loop BB0_11 Depth 2 ldr x8, [sp, #16] ldrsb w8, [x8] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_17 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, #16] ldrsb w8, [x8] subs w8, w8, #0 cset w8, eq mov w9, #0 str w9, [sp, #12] ; 4-byte Folded Spill tbnz w8, #0, LBB0_5 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_3 Depth=2 ldr x8, [sp, #16] ldrsb w0, [x8] bl _toupper str w0, [sp, #8] ; 4-byte Folded Spill ldur x8, [x29, #-24] ldrsb w0, [x8] bl _toupper mov x8, x0 ldr w0, [sp, #8] ; 4-byte Folded Reload subs w8, w0, w8 cset w8, ne str w8, [sp, #12] ; 4-byte Folded Spill b LBB0_5 LBB0_5: ; in Loop: Header=BB0_3 Depth=2 ldr w8, [sp, #12] ; 4-byte Folded Reload tbz w8, #0, LBB0_8 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_3 Depth=2 b LBB0_7 LBB0_7: ; in Loop: Header=BB0_3 Depth=2 ldr x8, [sp, #16] add x8, x8, #1 str x8, [sp, #16] b LBB0_3 LBB0_8: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #16] ldrsb w9, [x8] mov w8, #0 subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_10 b LBB0_9 LBB0_9: ; kill: def $x8 killed $xzr stur xzr, [x29, #-8] b LBB0_18 LBB0_10: ; in Loop: Header=BB0_1 Depth=1 ldur x8, [x29, #-24] str x8, [sp, #32] ldr x8, [sp, #16] str x8, [sp, #24] b LBB0_11 LBB0_11: ; Parent Loop BB0_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr x8, [sp, #24] ldrsb w0, [x8] bl _toupper str w0, [sp, #4] ; 4-byte Folded Spill ldr x8, [sp, #32] ldrsb w0, [x8] bl _toupper mov x8, x0 ldr w0, [sp, #4] ; 4-byte Folded Reload subs w8, w0, w8 cset w8, ne tbnz w8, #0, LBB0_15 b LBB0_12 LBB0_12: ; in Loop: Header=BB0_11 Depth=2 ldr x8, [sp, #24] add x8, x8, #1 str x8, [sp, #24] ldr x8, [sp, #32] add x8, x8, #1 str x8, [sp, #32] ldr x8, [sp, #32] ldrsb w9, [x8] mov w8, #0 subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_14 b LBB0_13 LBB0_13: ldr x8, [sp, #16] stur x8, [x29, #-8] b LBB0_18 LBB0_14: ; in Loop: Header=BB0_11 Depth=2 b LBB0_11 LBB0_15: ; in Loop: Header=BB0_1 Depth=1 b LBB0_16 LBB0_16: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #16] add x8, x8, #1 str x8, [sp, #16] b LBB0_1 LBB0_17: ; kill: def $x8 killed $xzr stur xzr, [x29, #-8] b LBB0_18 LBB0_18: 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 _stristr ## -- Begin function stristr .p2align 4, 0x90 _stristr: ## @stristr .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 -16(%rbp), %rax movq %rax, -48(%rbp) LBB0_1: ## =>This Loop Header: Depth=1 ## Child Loop BB0_3 Depth 2 ## Child Loop BB0_11 Depth 2 movq -48(%rbp), %rax movsbl (%rax), %eax cmpl $0, %eax je LBB0_17 ## %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 -48(%rbp), %rax movsbl (%rax), %ecx xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $0, %ecx movb %al, -49(%rbp) ## 1-byte Spill je LBB0_5 ## %bb.4: ## in Loop: Header=BB0_3 Depth=2 movq -48(%rbp), %rax movsbl (%rax), %edi callq _toupper movl %eax, -56(%rbp) ## 4-byte Spill movq -24(%rbp), %rax movsbl (%rax), %edi callq _toupper movl %eax, %ecx movl -56(%rbp), %eax ## 4-byte Reload cmpl %ecx, %eax setne %al movb %al, -49(%rbp) ## 1-byte Spill LBB0_5: ## in Loop: Header=BB0_3 Depth=2 movb -49(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB0_6 jmp LBB0_8 LBB0_6: ## in Loop: Header=BB0_3 Depth=2 jmp LBB0_7 LBB0_7: ## in Loop: Header=BB0_3 Depth=2 movq -48(%rbp), %rax addq $1, %rax movq %rax, -48(%rbp) jmp LBB0_3 LBB0_8: ## in Loop: Header=BB0_1 Depth=1 movq -48(%rbp), %rax movsbl (%rax), %ecx xorl %eax, %eax cmpl %ecx, %eax jne LBB0_10 ## %bb.9: movq $0, -8(%rbp) jmp LBB0_18 LBB0_10: ## in Loop: Header=BB0_1 Depth=1 movq -24(%rbp), %rax movq %rax, -32(%rbp) movq -48(%rbp), %rax movq %rax, -40(%rbp) LBB0_11: ## Parent Loop BB0_1 Depth=1 ## => This Inner Loop Header: Depth=2 movq -40(%rbp), %rax movsbl (%rax), %edi callq _toupper movl %eax, -60(%rbp) ## 4-byte Spill movq -32(%rbp), %rax movsbl (%rax), %edi callq _toupper movl %eax, %ecx movl -60(%rbp), %eax ## 4-byte Reload cmpl %ecx, %eax jne LBB0_15 ## %bb.12: ## in Loop: Header=BB0_11 Depth=2 movq -40(%rbp), %rax addq $1, %rax movq %rax, -40(%rbp) movq -32(%rbp), %rax addq $1, %rax movq %rax, -32(%rbp) movq -32(%rbp), %rax movsbl (%rax), %ecx xorl %eax, %eax cmpl %ecx, %eax jne LBB0_14 ## %bb.13: movq -48(%rbp), %rax movq %rax, -8(%rbp) jmp LBB0_18 LBB0_14: ## in Loop: Header=BB0_11 Depth=2 jmp LBB0_11 LBB0_15: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_16 LBB0_16: ## in Loop: Header=BB0_1 Depth=1 movq -48(%rbp), %rax addq $1, %rax movq %rax, -48(%rbp) jmp LBB0_1 LBB0_17: movq $0, -8(%rbp) LBB0_18: movq -8(%rbp), %rax addq $64, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/1065912.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _FIOMakeFile ; -- Begin function FIOMakeFile .p2align 2 _FIOMakeFile: ; @FIOMakeFile .cfi_startproc ; %bb.0: sub sp, sp, #384 .cfi_def_cfa_offset 384 stp x28, x27, [sp, #352] ; 16-byte Folded Spill stp x29, x30, [sp, #368] ; 16-byte Folded Spill add x29, sp, #368 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w27, -24 .cfi_offset w28, -32 ldr x11, [x29, #16] ldr x10, [x29, #24] ldr w9, [x29, #32] ldr w8, [x29, #36] adrp x12, ___stack_chk_guard@GOTPAGE ldr x12, [x12, ___stack_chk_guard@GOTPAGEOFF] ldr x12, [x12] stur x12, [x29, #-24] str x0, [sp, #168] str w1, [sp, #164] str w2, [sp, #160] str w3, [sp, #156] str w4, [sp, #152] str w5, [sp, #148] str w6, [sp, #144] str x7, [sp, #136] str x11, [sp, #128] str x10, [sp, #120] str w9, [sp, #116] str w8, [sp, #112] sub x0, x29, #152 mov w1, #0 mov x2, #128 bl _memset mov w8, #47 sturb w8, [x29, #-152] ; kill: def $x8 killed $xzr str xzr, [sp, #104] mov x0, #256 bl _malloc str x0, [sp, #104] ldr x8, [sp, #104] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: ; kill: def $x8 killed $xzr str xzr, [sp, #176] b LBB0_22 LBB0_2: ldr w8, [sp, #116] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: mov w8, #438 str w8, [sp, #116] b LBB0_4 LBB0_4: mov w8, #513 str w8, [sp, #88] ldr w8, [sp, #112] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: ldr w8, [sp, #88] orr w8, w8, #0x800 str w8, [sp, #88] b LBB0_9 LBB0_6: ldr w8, [sp, #112] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB0_8 b LBB0_7 LBB0_7: ldr w8, [sp, #88] orr w8, w8, #0x400 str w8, [sp, #88] b LBB0_8 LBB0_8: b LBB0_9 LBB0_9: ldr x8, [sp, #128] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB0_11 b LBB0_10 LBB0_10: ldr w8, [sp, #164] ; implicit-def: $x15 mov x15, x8 ldr w8, [sp, #160] ; implicit-def: $x14 mov x14, x8 ldr w8, [sp, #156] ; implicit-def: $x13 mov x13, x8 ldr w8, [sp, #152] ; implicit-def: $x12 mov x12, x8 ldr w8, [sp, #148] ; implicit-def: $x11 mov x11, x8 ldr w8, [sp, #144] ; implicit-def: $x10 mov x10, x8 ldr x8, [sp, #136] mov x9, sp str x15, [x9] str x14, [x9, #8] str x13, [x9, #16] str x12, [x9, #24] str x11, [x9, #32] str x10, [x9, #40] str x8, [x9, #48] add x0, sp, #184 mov w1, #0 mov x2, #32 adrp x3, l_.str@PAGE add x3, x3, l_.str@PAGEOFF bl ___sprintf_chk b LBB0_12 LBB0_11: ldr w8, [sp, #164] ; implicit-def: $x16 mov x16, x8 ldr w8, [sp, #160] ; implicit-def: $x15 mov x15, x8 ldr w8, [sp, #156] ; implicit-def: $x14 mov x14, x8 ldr w8, [sp, #152] ; implicit-def: $x13 mov x13, x8 ldr w8, [sp, #148] ; implicit-def: $x12 mov x12, x8 ldr w8, [sp, #144] ; implicit-def: $x11 mov x11, x8 ldr x10, [sp, #136] ldr x8, [sp, #128] mov x9, sp str x9, [sp, #80] ; 8-byte Folded Spill str x16, [x9] str x15, [x9, #8] str x14, [x9, #16] str x13, [x9, #24] str x12, [x9, #32] str x11, [x9, #40] str x10, [x9, #48] str x8, [x9, #56] add x0, sp, #184 mov w1, #0 mov x2, #32 adrp x3, l_.str.1@PAGE add x3, x3, l_.str.1@PAGEOFF bl ___sprintf_chk b LBB0_12 LBB0_12: ldr x8, [sp, #168] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB0_14 b LBB0_13 LBB0_13: ldr x1, [sp, #168] sub x0, x29, #152 mov x2, #80 mov x3, #128 bl ___strncpy_chk b LBB0_14 LBB0_14: sub x0, x29, #152 adrp x1, l_.str.2@PAGE add x1, x1, l_.str.2@PAGEOFF bl _strtok str x0, [sp, #96] mov w8, #-1 str w8, [sp, #92] b LBB0_15 LBB0_15: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #92] adds w8, w8, #1 cset w8, ne mov w9, #0 str w9, [sp, #76] ; 4-byte Folded Spill tbnz w8, #0, LBB0_17 b LBB0_16 LBB0_16: ; in Loop: Header=BB0_15 Depth=1 ldr x8, [sp, #96] subs x8, x8, #0 cset w8, ne str w8, [sp, #76] ; 4-byte Folded Spill b LBB0_17 LBB0_17: ; in Loop: Header=BB0_15 Depth=1 ldr w8, [sp, #76] ; 4-byte Folded Reload tbz w8, #0, LBB0_19 b LBB0_18 LBB0_18: ; in Loop: Header=BB0_15 Depth=1 ldr x0, [sp, #104] ldr x10, [sp, #96] ldr x8, [sp, #120] mov x9, sp str x10, [x9] add x10, sp, #184 str x10, [x9, #8] str x8, [x9, #16] mov w1, #0 mov x2, #-1 adrp x3, l_.str.3@PAGE add x3, x3, l_.str.3@PAGEOFF bl ___sprintf_chk ldr x0, [sp, #104] ldr w1, [sp, #88] ldr w9, [sp, #116] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] bl _open str w0, [sp, #92] mov x0, #0 adrp x1, l_.str.2@PAGE add x1, x1, l_.str.2@PAGEOFF bl _strtok str x0, [sp, #96] b LBB0_15 LBB0_19: ldr w8, [sp, #92] adds w8, w8, #1 cset w8, eq tbnz w8, #0, LBB0_21 b LBB0_20 LBB0_20: ldr w0, [sp, #92] bl _close ldr x8, [sp, #104] str x8, [sp, #176] b LBB0_22 LBB0_21: ldr x0, [sp, #104] bl _free ; kill: def $x8 killed $xzr str xzr, [sp, #176] b LBB0_22 LBB0_22: ldr x8, [sp, #176] str x8, [sp, #64] ; 8-byte Folded Spill ldur x9, [x29, #-24] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_24 b LBB0_23 LBB0_23: bl ___stack_chk_fail LBB0_24: ldr x0, [sp, #64] ; 8-byte Folded Reload ldp x29, x30, [sp, #368] ; 16-byte Folded Reload ldp x28, x27, [sp, #352] ; 16-byte Folded Reload add sp, sp, #384 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%04d%02d%02d.%02d%02d.%02d.%s" l_.str.1: ; @.str.1 .asciz "%04d%02d%02d.%02d%02d.%02d.%s.%s" l_.str.2: ; @.str.2 .asciz ":" l_.str.3: ; @.str.3 .asciz "%s/%s.%s" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _FIOMakeFile ## -- Begin function FIOMakeFile .p2align 4, 0x90 _FIOMakeFile: ## @FIOMakeFile .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r15 pushq %r14 pushq %rbx subq $296, %rsp ## imm = 0x128 .cfi_offset %rbx, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movl 56(%rbp), %eax movl 48(%rbp), %eax movq 40(%rbp), %rax movq 32(%rbp), %rax movq 24(%rbp), %rax movl 16(%rbp), %eax movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -32(%rbp) movq %rdi, -208(%rbp) movl %esi, -212(%rbp) movl %edx, -216(%rbp) movl %ecx, -220(%rbp) movl %r8d, -224(%rbp) movl %r9d, -228(%rbp) leaq -160(%rbp), %rdi xorl %esi, %esi movl $128, %edx callq _memset movb $47, -160(%rbp) movq $0, -240(%rbp) movl $256, %edi ## imm = 0x100 callq _malloc movq %rax, -240(%rbp) cmpq $0, -240(%rbp) jne LBB0_2 ## %bb.1: movq $0, -200(%rbp) jmp LBB0_22 LBB0_2: cmpl $0, 48(%rbp) jne LBB0_4 ## %bb.3: movl $438, 48(%rbp) ## imm = 0x1B6 LBB0_4: movl $513, -256(%rbp) ## imm = 0x201 cmpl $0, 56(%rbp) jne LBB0_6 ## %bb.5: movl -256(%rbp), %eax orl $2048, %eax ## imm = 0x800 movl %eax, -256(%rbp) jmp LBB0_9 LBB0_6: cmpl $1, 56(%rbp) jne LBB0_8 ## %bb.7: movl -256(%rbp), %eax orl $1024, %eax ## imm = 0x400 movl %eax, -256(%rbp) LBB0_8: jmp LBB0_9 LBB0_9: cmpq $0, 32(%rbp) jne LBB0_11 ## %bb.10: leaq -192(%rbp), %rdi movl -212(%rbp), %r8d movl -216(%rbp), %r9d movl -220(%rbp), %r14d movl -224(%rbp), %ebx movl -228(%rbp), %r11d movl 16(%rbp), %r10d movq 24(%rbp), %rax xorl %esi, %esi movl $32, %edx leaq L_.str(%rip), %rcx movl %r14d, (%rsp) movl %ebx, 8(%rsp) movl %r11d, 16(%rsp) movl %r10d, 24(%rsp) movq %rax, 32(%rsp) movb $0, %al callq ___sprintf_chk jmp LBB0_12 LBB0_11: leaq -192(%rbp), %rdi movl -212(%rbp), %r8d movl -216(%rbp), %r9d movl -220(%rbp), %r15d movl -224(%rbp), %r14d movl -228(%rbp), %ebx movl 16(%rbp), %r11d movq 24(%rbp), %r10 movq 32(%rbp), %rax xorl %esi, %esi movl $32, %edx leaq L_.str.1(%rip), %rcx movl %r15d, (%rsp) movl %r14d, 8(%rsp) movl %ebx, 16(%rsp) movl %r11d, 24(%rsp) movq %r10, 32(%rsp) movq %rax, 40(%rsp) movb $0, %al callq ___sprintf_chk LBB0_12: cmpq $0, -208(%rbp) je LBB0_14 ## %bb.13: leaq -160(%rbp), %rdi movq -208(%rbp), %rsi movl $80, %edx movl $128, %ecx callq ___strncpy_chk LBB0_14: leaq -160(%rbp), %rdi leaq L_.str.2(%rip), %rsi callq _strtok movq %rax, -248(%rbp) movl $-1, -252(%rbp) LBB0_15: ## =>This Inner Loop Header: Depth=1 xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $-1, -252(%rbp) movb %al, -257(%rbp) ## 1-byte Spill jne LBB0_17 ## %bb.16: ## in Loop: Header=BB0_15 Depth=1 cmpq $0, -248(%rbp) setne %al movb %al, -257(%rbp) ## 1-byte Spill LBB0_17: ## in Loop: Header=BB0_15 Depth=1 movb -257(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB0_18 jmp LBB0_19 LBB0_18: ## in Loop: Header=BB0_15 Depth=1 movq -240(%rbp), %rdi movq -248(%rbp), %r8 leaq -192(%rbp), %r9 movq 40(%rbp), %rax xorl %esi, %esi movq $-1, %rdx leaq L_.str.3(%rip), %rcx movq %rax, (%rsp) movb $0, %al callq ___sprintf_chk movq -240(%rbp), %rdi movl -256(%rbp), %esi movl 48(%rbp), %edx movb $0, %al callq _open movl %eax, -252(%rbp) xorl %eax, %eax movl %eax, %edi leaq L_.str.2(%rip), %rsi callq _strtok movq %rax, -248(%rbp) jmp LBB0_15 LBB0_19: cmpl $-1, -252(%rbp) je LBB0_21 ## %bb.20: movl -252(%rbp), %edi callq _close movq -240(%rbp), %rax movq %rax, -200(%rbp) jmp LBB0_22 LBB0_21: movq -240(%rbp), %rdi callq _free movq $0, -200(%rbp) LBB0_22: movq -200(%rbp), %rax movq %rax, -272(%rbp) ## 8-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -32(%rbp), %rcx cmpq %rcx, %rax jne LBB0_24 ## %bb.23: movq -272(%rbp), %rax ## 8-byte Reload addq $296, %rsp ## imm = 0x128 popq %rbx popq %r14 popq %r15 popq %rbp retq LBB0_24: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%04d%02d%02d.%02d%02d.%02d.%s" L_.str.1: ## @.str.1 .asciz "%04d%02d%02d.%02d%02d.%02d.%s.%s" L_.str.2: ## @.str.2 .asciz ":" L_.str.3: ## @.str.3 .asciz "%s/%s.%s" .subsections_via_symbols
the_stack_data/72545.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _sighandler ; -- Begin function sighandler .p2align 2 _sighandler: ; @sighandler .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #12] adrp x9, _signalled@PAGE mov w8, #1 str w8, [x9, _signalled@PAGEOFF] add sp, sp, #16 ret .cfi_endproc ; -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ; -- Begin function delay lCPI1_0: .quad 0x41cdcd6500000000 ; double 1.0E+9 .section __TEXT,__text,regular,pure_instructions .globl _delay .p2align 2 _delay: ; @delay .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 d0, [x29, #-8] stur wzr, [x29, #-32] ldur d0, [x29, #-8] fcvtzs x8, d0 stur x8, [x29, #-24] ldur d0, [x29, #-8] ldur d1, [x29, #-24] scvtf d1, d1 fsub d0, d0, d1 adrp x8, lCPI1_0@PAGE ldr d1, [x8, lCPI1_0@PAGEOFF] fmul d0, d0, d1 fcvtzs x8, d0 stur x8, [x29, #-16] b LBB1_1 LBB1_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-32] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB1_3 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 mov w0, #120 bl _putchar adrp x8, ___stdoutp@GOTPAGE ldr x8, [x8, ___stdoutp@GOTPAGEOFF] ldr x0, [x8] bl _fflush b LBB1_3 LBB1_3: ; in Loop: Header=BB1_1 Depth=1 sub x1, x29, #24 mov x0, x1 bl _nanosleep stur w0, [x29, #-28] ldur w8, [x29, #-32] add w8, w8, #1 stur w8, [x29, #-32] b LBB1_4 LBB1_4: ; in Loop: Header=BB1_1 Depth=1 ldur w8, [x29, #-28] adds w8, w8, #1 cset w8, ne mov w9, #0 stur w9, [x29, #-36] ; 4-byte Folded Spill tbnz w8, #0, LBB1_7 b LBB1_5 LBB1_5: ; in Loop: Header=BB1_1 Depth=1 bl ___error ldr w8, [x0] subs w8, w8, #4 cset w8, ne mov w9, #0 stur w9, [x29, #-36] ; 4-byte Folded Spill tbnz w8, #0, LBB1_7 b LBB1_6 LBB1_6: ; in Loop: Header=BB1_1 Depth=1 ldur x8, [x29, #-24] subs x8, x8, #5 cset w8, lt stur w8, [x29, #-36] ; 4-byte Folded Spill b LBB1_7 LBB1_7: ; in Loop: Header=BB1_1 Depth=1 ldur w8, [x29, #-36] ; 4-byte Folded Reload tbnz w8, #0, LBB1_1 b LBB1_8 LBB1_8: ldur w8, [x29, #-28] adds w8, w8, #1 cset w8, ne tbnz w8, #0, LBB1_10 b LBB1_9 LBB1_9: adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] ldr x8, [x8] str x8, [sp, #32] ; 8-byte Folded Spill bl ___error mov x8, x0 ldr x0, [sp, #32] ; 8-byte Folded Reload ldr w8, [x8] ; implicit-def: $x11 mov x11, x8 ldur x10, [x29, #-24] ldur x8, [x29, #-16] mov x9, sp str x11, [x9] str x10, [x9, #8] str x8, [x9, #16] adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF bl _fprintf mov w0, #2 bl _exit LBB1_10: ldp x29, x30, [sp, #80] ; 16-byte Folded Reload add sp, sp, #96 ret .cfi_endproc ; -- End function .globl _print_message ; -- Begin function print_message .p2align 2 _print_message: ; @print_message .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur d0, [x29, #-8] sturb w0, [x29, #-9] b LBB2_1 LBB2_1: ; =>This Inner Loop Header: Depth=1 adrp x8, _signalled@PAGE ldr w8, [x8, _signalled@PAGEOFF] subs w8, w8, #0 cset w8, ne mov w9, #0 str w9, [sp, #4] ; 4-byte Folded Spill tbnz w8, #0, LBB2_3 b LBB2_2 LBB2_2: ; in Loop: Header=BB2_1 Depth=1 adrp x8, _counter@PAGE add x8, x8, _counter@PAGEOFF ldar w8, [x8] str w8, [sp, #16] ldr w8, [sp, #16] subs w8, w8, #20 cset w8, le str w8, [sp, #4] ; 4-byte Folded Spill b LBB2_3 LBB2_3: ; in Loop: Header=BB2_1 Depth=1 ldr w8, [sp, #4] ; 4-byte Folded Reload tbz w8, #0, LBB2_5 b LBB2_4 LBB2_4: ; in Loop: Header=BB2_1 Depth=1 mov w8, #1 str w8, [sp, #12] ldr w8, [sp, #12] adrp x9, _counter@PAGE add x9, x9, _counter@PAGEOFF ldaddal w8, w8, [x9] str w8, [sp, #8] ldursb w0, [x29, #-9] bl _putchar adrp x8, ___stdoutp@GOTPAGE ldr x8, [x8, ___stdoutp@GOTPAGEOFF] ldr x0, [x8] bl _fflush ldur d0, [x29, #-8] bl _delay b LBB2_1 LBB2_5: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ; -- Begin function thread lCPI3_0: .quad 0x3fe55555554c2bb5 ; double 0.66666666659999996 .section __TEXT,__text,regular,pure_instructions .globl _thread .p2align 2 _thread: ; @thread .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp] adrp x8, lCPI3_0@PAGE ldr d0, [x8, lCPI3_0@PAGEOFF] mov w0, #97 bl _print_message ldr x0, [sp, #8] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: 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, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] str x8, [sp, #16] ; 8-byte Folded Spill adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] str wzr, [sp, #68] add x1, sp, #48 adrp x8, _sighandler@PAGE add x8, x8, _sighandler@PAGEOFF str x8, [sp, #48] str wzr, [sp, #56] str wzr, [sp, #60] mov w0, #2 add x2, sp, #32 bl _sigaction adds w8, w0, #1 cset w8, ne tbnz w8, #0, LBB4_2 b LBB4_1 LBB4_1: ldr x8, [sp, #16] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF bl _fprintf mov w8, #2 str w8, [sp, #68] b LBB4_9 LBB4_2: adrp x8, _counter@PAGE str wzr, [x8, _counter@PAGEOFF] add x0, sp, #72 mov x1, #0 bl _pthread_cond_init subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB4_4 b LBB4_3 LBB4_3: ldr x8, [sp, #16] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.2@PAGE add x1, x1, l_.str.2@PAGEOFF bl _fprintf mov w8, #2 str w8, [sp, #68] b LBB4_9 LBB4_4: sub x0, x29, #72 str x0, [sp, #8] ; 8-byte Folded Spill bl _pthread_attr_init ldr x0, [sp, #8] ; 8-byte Folded Reload mov w1, #2 bl _pthread_attr_setdetachstate ldr x1, [sp, #8] ; 8-byte Folded Reload add x0, sp, #24 adrp x2, _thread@PAGE add x2, x2, _thread@PAGEOFF mov x3, #0 bl _pthread_create subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB4_6 b LBB4_5 LBB4_5: ldr x8, [sp, #16] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.3@PAGE add x1, x1, l_.str.3@PAGEOFF bl _fprintf mov w8, #2 str w8, [sp, #68] b LBB4_9 LBB4_6: fmov d0, #1.00000000 mov w0, #98 bl _print_message ldr x0, [sp, #24] mov x1, #0 bl _pthread_join adrp x8, _signalled@PAGE ldr w8, [x8, _signalled@PAGEOFF] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB4_8 b LBB4_7 LBB4_7: adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf str wzr, [sp, #68] b LBB4_9 LBB4_8: adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf mov w8, #2 str w8, [sp, #68] b LBB4_9 LBB4_9: ldr w8, [sp, #68] 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, LBB4_11 b LBB4_10 LBB4_10: bl ___stack_chk_fail LBB4_11: ldr w0, [sp, #4] ; 4-byte Folded Reload ldp x29, x30, [sp, #192] ; 16-byte Folded Reload add sp, sp, #208 ret .cfi_endproc ; -- End function .zerofill __DATA,__bss,_signalled,4,2 ; @signalled .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz " - nanosleep failed: %d, t = %lld, %lld\n" .zerofill __DATA,__bss,_counter,4,2 ; @counter l_.str.1: ; @.str.1 .asciz "Signal handler failed\n" l_.str.2: ; @.str.2 .asciz "Cond creation failed\n" l_.str.3: ; @.str.3 .asciz "Thread creation failed\n" l_.str.4: ; @.str.4 .asciz " - Got CTRL+C, exiting\n" l_.str.5: ; @.str.5 .asciz " - not signalled???\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _sighandler ## -- Begin function sighandler .p2align 4, 0x90 _sighandler: ## @sighandler .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, -4(%rbp) movl $1, _signalled(%rip) popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ## -- Begin function delay LCPI1_0: .quad 0x41cdcd6500000000 ## double 1.0E+9 .section __TEXT,__text,regular,pure_instructions .globl _delay .p2align 4, 0x90 _delay: ## @delay .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 movsd %xmm0, -8(%rbp) movl $0, -32(%rbp) cvttsd2si -8(%rbp), %rax movq %rax, -24(%rbp) movsd -8(%rbp), %xmm0 ## xmm0 = mem[0],zero cvtsi2sdq -24(%rbp), %xmm1 subsd %xmm1, %xmm0 movsd LCPI1_0(%rip), %xmm1 ## xmm1 = mem[0],zero mulsd %xmm1, %xmm0 cvttsd2si %xmm0, %rax movq %rax, -16(%rbp) LBB1_1: ## =>This Inner Loop Header: Depth=1 cmpl $0, -32(%rbp) je LBB1_3 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 movl $120, %edi callq _putchar movq ___stdoutp@GOTPCREL(%rip), %rax movq (%rax), %rdi callq _fflush LBB1_3: ## in Loop: Header=BB1_1 Depth=1 leaq -24(%rbp), %rsi movq %rsi, %rdi callq _nanosleep movl %eax, -28(%rbp) movl -32(%rbp), %eax addl $1, %eax movl %eax, -32(%rbp) ## %bb.4: ## in Loop: Header=BB1_1 Depth=1 xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $-1, -28(%rbp) movb %al, -33(%rbp) ## 1-byte Spill jne LBB1_7 ## %bb.5: ## in Loop: Header=BB1_1 Depth=1 callq ___error movq %rax, %rcx xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $4, (%rcx) movb %al, -33(%rbp) ## 1-byte Spill jne LBB1_7 ## %bb.6: ## in Loop: Header=BB1_1 Depth=1 cmpq $5, -24(%rbp) setl %al movb %al, -33(%rbp) ## 1-byte Spill LBB1_7: ## in Loop: Header=BB1_1 Depth=1 movb -33(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB1_1 ## %bb.8: cmpl $-1, -28(%rbp) jne LBB1_10 ## %bb.9: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -48(%rbp) ## 8-byte Spill callq ___error movq -48(%rbp), %rdi ## 8-byte Reload movl (%rax), %edx movq -24(%rbp), %rcx movq -16(%rbp), %r8 leaq L_.str(%rip), %rsi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _fprintf movl $2, %edi callq _exit LBB1_10: addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _print_message ## -- Begin function print_message .p2align 4, 0x90 _print_message: ## @print_message .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movb %dil, %al movsd %xmm0, -8(%rbp) movb %al, -9(%rbp) LBB2_1: ## =>This Inner Loop Header: Depth=1 xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $0, _signalled(%rip) movb %al, -25(%rbp) ## 1-byte Spill jne LBB2_3 ## %bb.2: ## in Loop: Header=BB2_1 Depth=1 movl _counter(%rip), %eax movl %eax, -16(%rbp) cmpl $20, -16(%rbp) setle %al movb %al, -25(%rbp) ## 1-byte Spill LBB2_3: ## in Loop: Header=BB2_1 Depth=1 movb -25(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB2_4 jmp LBB2_5 LBB2_4: ## in Loop: Header=BB2_1 Depth=1 movl $1, -20(%rbp) movl -20(%rbp), %eax lock xaddl %eax, _counter(%rip) movl %eax, -24(%rbp) movsbl -9(%rbp), %edi callq _putchar movq ___stdoutp@GOTPCREL(%rip), %rax movq (%rax), %rdi callq _fflush movsd -8(%rbp), %xmm0 ## xmm0 = mem[0],zero callq _delay jmp LBB2_1 LBB2_5: addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ## -- Begin function thread LCPI3_0: .quad 0x3fe55555554c2bb5 ## double 0.66666666659999996 .section __TEXT,__text,regular,pure_instructions .globl _thread .p2align 4, 0x90 _thread: ## @thread .cfi_startproc ## %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) movsd LCPI3_0(%rip), %xmm0 ## xmm0 = mem[0],zero movl $97, %edi callq _print_message movq -8(%rbp), %rax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ## -- Begin function main LCPI4_0: .quad 0x3ff0000000000000 ## double 1 .section __TEXT,__text,regular,pure_instructions .globl _main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $176, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -124(%rbp) leaq _sighandler(%rip), %rax movq %rax, -144(%rbp) movl $0, -136(%rbp) movl $0, -132(%rbp) movl $2, %edi leaq -144(%rbp), %rsi leaq -160(%rbp), %rdx callq _sigaction cmpl $-1, %eax jne LBB4_2 ## %bb.1: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.1(%rip), %rsi movb $0, %al callq _fprintf movl $2, -124(%rbp) jmp LBB4_9 LBB4_2: movl $0, _counter(%rip) leaq -120(%rbp), %rdi xorl %eax, %eax movl %eax, %esi callq _pthread_cond_init cmpl $0, %eax je LBB4_4 ## %bb.3: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.2(%rip), %rsi movb $0, %al callq _fprintf movl $2, -124(%rbp) jmp LBB4_9 LBB4_4: leaq -72(%rbp), %rdi callq _pthread_attr_init leaq -72(%rbp), %rdi movl $2, %esi callq _pthread_attr_setdetachstate leaq -168(%rbp), %rdi leaq -72(%rbp), %rsi leaq _thread(%rip), %rdx xorl %eax, %eax movl %eax, %ecx callq _pthread_create cmpl $0, %eax je LBB4_6 ## %bb.5: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.3(%rip), %rsi movb $0, %al callq _fprintf movl $2, -124(%rbp) jmp LBB4_9 LBB4_6: movsd LCPI4_0(%rip), %xmm0 ## xmm0 = mem[0],zero movl $98, %edi callq _print_message movq -168(%rbp), %rdi xorl %eax, %eax movl %eax, %esi callq _pthread_join cmpl $0, _signalled(%rip) je LBB4_8 ## %bb.7: leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf movl $0, -124(%rbp) jmp LBB4_9 LBB4_8: leaq L_.str.5(%rip), %rdi movb $0, %al callq _printf movl $2, -124(%rbp) LBB4_9: movl -124(%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 LBB4_11 ## %bb.10: movl -172(%rbp), %eax ## 4-byte Reload addq $176, %rsp popq %rbp retq LBB4_11: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .zerofill __DATA,__bss,_signalled,4,2 ## @signalled .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz " - nanosleep failed: %d, t = %lld, %lld\n" .zerofill __DATA,__bss,_counter,4,2 ## @counter L_.str.1: ## @.str.1 .asciz "Signal handler failed\n" L_.str.2: ## @.str.2 .asciz "Cond creation failed\n" L_.str.3: ## @.str.3 .asciz "Thread creation failed\n" L_.str.4: ## @.str.4 .asciz " - Got CTRL+C, exiting\n" L_.str.5: ## @.str.5 .asciz " - not signalled???\n" .subsections_via_symbols
the_stack_data/218893751.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _yuanyin ; -- Begin function yuanyin .p2align 2 _yuanyin: ; @yuanyin .cfi_startproc ; %bb.0: sub sp, sp, #160 .cfi_def_cfa_offset 160 stp x29, x30, [sp, #144] ; 16-byte Folded Spill add x29, sp, #144 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] str x0, [sp, #24] str wzr, [sp, #16] str wzr, [sp, #20] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #24] ldrsw x9, [sp, #20] ldrsb w8, [x8, x9] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_15 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #24] ldrsw x9, [sp, #20] ldrsb w8, [x8, x9] str w8, [sp, #12] ; 4-byte Folded Spill subs w8, w8, #65 cset w8, eq tbnz w8, #0, LBB0_12 b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #12] ; 4-byte Folded Reload subs w8, w8, #69 cset w8, eq tbnz w8, #0, LBB0_12 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #12] ; 4-byte Folded Reload subs w8, w8, #73 cset w8, eq tbnz w8, #0, LBB0_12 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #12] ; 4-byte Folded Reload subs w8, w8, #79 cset w8, eq tbnz w8, #0, LBB0_12 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #12] ; 4-byte Folded Reload subs w8, w8, #85 cset w8, eq tbnz w8, #0, LBB0_12 b LBB0_7 LBB0_7: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #12] ; 4-byte Folded Reload subs w8, w8, #97 cset w8, eq tbnz w8, #0, LBB0_12 b LBB0_8 LBB0_8: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #12] ; 4-byte Folded Reload subs w8, w8, #101 cset w8, eq tbnz w8, #0, LBB0_12 b LBB0_9 LBB0_9: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #12] ; 4-byte Folded Reload subs w8, w8, #105 cset w8, eq tbnz w8, #0, LBB0_12 b LBB0_10 LBB0_10: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #12] ; 4-byte Folded Reload subs w8, w8, #111 cset w8, eq tbnz w8, #0, LBB0_12 b LBB0_11 LBB0_11: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #12] ; 4-byte Folded Reload subs w8, w8, #117 cset w8, ne tbnz w8, #0, LBB0_13 b LBB0_12 LBB0_12: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #24] ldrsw x9, [sp, #20] add x8, x8, x9 ldrb w8, [x8] ldrsw x10, [sp, #16] add x9, sp, #36 add x9, x9, x10 strb w8, [x9] ldr w8, [sp, #16] add w8, w8, #1 str w8, [sp, #16] b LBB0_13 LBB0_13: ; in Loop: Header=BB0_1 Depth=1 b LBB0_14 LBB0_14: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #20] add w8, w8, #1 str w8, [sp, #20] b LBB0_1 LBB0_15: ldrsw x9, [sp, #16] add x0, sp, #36 mov x8, x0 add x8, x8, x9 strb wzr, [x8] bl _puts ldr w8, [sp, #32] 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_17 b LBB0_16 LBB0_16: bl ___stack_chk_fail LBB0_17: ldr w0, [sp, #8] ; 4-byte Folded Reload ldp x29, x30, [sp, #144] ; 16-byte Folded Reload add sp, sp, #160 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #144 .cfi_def_cfa_offset 144 stp x29, x30, [sp, #128] ; 16-byte Folded Spill add x29, sp, #128 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] add x0, sp, #20 str x0, [sp, #8] ; 8-byte Folded Spill bl _gets ldr x0, [sp, #8] ; 8-byte Folded Reload bl _yuanyin 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, #128] ; 16-byte Folded Reload 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 .globl _yuanyin ## -- Begin function yuanyin .p2align 4, 0x90 _yuanyin: ## @yuanyin .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) movq %rdi, -128(%rbp) movl $0, -136(%rbp) movl $0, -132(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movq -128(%rbp), %rax movslq -132(%rbp), %rcx movsbl (%rax,%rcx), %eax cmpl $0, %eax je LBB0_6 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movq -128(%rbp), %rax movslq -132(%rbp), %rcx movsbl (%rax,%rcx), %eax movl %eax, -140(%rbp) ## 4-byte Spill subl $65, %eax je LBB0_3 jmp LBB0_9 LBB0_9: ## in Loop: Header=BB0_1 Depth=1 movl -140(%rbp), %eax ## 4-byte Reload subl $69, %eax je LBB0_3 jmp LBB0_10 LBB0_10: ## in Loop: Header=BB0_1 Depth=1 movl -140(%rbp), %eax ## 4-byte Reload subl $73, %eax je LBB0_3 jmp LBB0_11 LBB0_11: ## in Loop: Header=BB0_1 Depth=1 movl -140(%rbp), %eax ## 4-byte Reload subl $79, %eax je LBB0_3 jmp LBB0_12 LBB0_12: ## in Loop: Header=BB0_1 Depth=1 movl -140(%rbp), %eax ## 4-byte Reload subl $85, %eax je LBB0_3 jmp LBB0_13 LBB0_13: ## in Loop: Header=BB0_1 Depth=1 movl -140(%rbp), %eax ## 4-byte Reload subl $97, %eax je LBB0_3 jmp LBB0_14 LBB0_14: ## in Loop: Header=BB0_1 Depth=1 movl -140(%rbp), %eax ## 4-byte Reload subl $101, %eax je LBB0_3 jmp LBB0_15 LBB0_15: ## in Loop: Header=BB0_1 Depth=1 movl -140(%rbp), %eax ## 4-byte Reload subl $105, %eax je LBB0_3 jmp LBB0_16 LBB0_16: ## in Loop: Header=BB0_1 Depth=1 movl -140(%rbp), %eax ## 4-byte Reload subl $111, %eax je LBB0_3 jmp LBB0_17 LBB0_17: ## in Loop: Header=BB0_1 Depth=1 movl -140(%rbp), %eax ## 4-byte Reload subl $117, %eax jne LBB0_4 jmp LBB0_3 LBB0_3: ## in Loop: Header=BB0_1 Depth=1 movq -128(%rbp), %rax movslq -132(%rbp), %rcx movb (%rax,%rcx), %cl movslq -136(%rbp), %rax movb %cl, -112(%rbp,%rax) movl -136(%rbp), %eax addl $1, %eax movl %eax, -136(%rbp) LBB0_4: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_5 LBB0_5: ## in Loop: Header=BB0_1 Depth=1 movl -132(%rbp), %eax addl $1, %eax movl %eax, -132(%rbp) jmp LBB0_1 LBB0_6: movslq -136(%rbp), %rax movb $0, -112(%rbp,%rax) leaq -112(%rbp), %rdi callq _puts movl -116(%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_8 ## %bb.7: movl -144(%rbp), %eax ## 4-byte Reload addq $144, %rsp popq %rbp retq LBB0_8: 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 $112, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) leaq -112(%rbp), %rdi callq _gets leaq -112(%rbp), %rdi callq _yuanyin movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB1_2 ## %bb.1: xorl %eax, %eax addq $112, %rsp popq %rbp retq LBB1_2: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/55203.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _strdup ; -- Begin function strdup .p2align 2 _strdup: ; @strdup .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #16] ; kill: def $x8 killed $xzr str xzr, [sp] ldr x8, [sp, #16] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB0_4 b LBB0_1 LBB0_1: ldr x0, [sp, #16] bl _strlen add x8, x0, #1 str x8, [sp, #8] ldr x0, [sp, #8] bl _malloc mov x8, x0 str x8, [sp] subs x8, x0, #0 cset w8, ne tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: ; kill: def $x8 killed $xzr stur xzr, [x29, #-8] b LBB0_5 LBB0_3: ldr x0, [sp] ldr x1, [sp, #16] ldr x2, [sp, #8] mov x3, #-1 bl ___memcpy_chk b LBB0_4 LBB0_4: ldr x8, [sp] stur x8, [x29, #-8] b LBB0_5 LBB0_5: 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 _strdup ## -- Begin function strdup .p2align 4, 0x90 _strdup: ## @strdup .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -16(%rbp) movq $0, -32(%rbp) cmpq $0, -16(%rbp) je LBB0_4 ## %bb.1: movq -16(%rbp), %rdi callq _strlen addq $1, %rax movq %rax, -24(%rbp) movq -24(%rbp), %rdi callq _malloc movq %rax, -32(%rbp) cmpq $0, %rax jne LBB0_3 ## %bb.2: movq $0, -8(%rbp) jmp LBB0_5 LBB0_3: movq -32(%rbp), %rdi movq -16(%rbp), %rsi movq -24(%rbp), %rdx movq $-1, %rcx callq ___memcpy_chk LBB0_4: movq -32(%rbp), %rax movq %rax, -8(%rbp) LBB0_5: movq -8(%rbp), %rax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/674477.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl __glfwPlatformEnableSystemKeys ; -- Begin function _glfwPlatformEnableSystemKeys .p2align 2 __glfwPlatformEnableSystemKeys: ; @_glfwPlatformEnableSystemKeys .cfi_startproc ; %bb.0: ret .cfi_endproc ; -- End function .globl __glfwPlatformDisableSystemKeys ; -- Begin function _glfwPlatformDisableSystemKeys .p2align 2 __glfwPlatformDisableSystemKeys: ; @_glfwPlatformDisableSystemKeys .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 __glfwPlatformEnableSystemKeys ## -- Begin function _glfwPlatformEnableSystemKeys .p2align 4, 0x90 __glfwPlatformEnableSystemKeys: ## @_glfwPlatformEnableSystemKeys .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 __glfwPlatformDisableSystemKeys ## -- Begin function _glfwPlatformDisableSystemKeys .p2align 4, 0x90 __glfwPlatformDisableSystemKeys: ## @_glfwPlatformDisableSystemKeys .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/12637533.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _ltfs_get_thread_id ; -- Begin function ltfs_get_thread_id .p2align 2 _ltfs_get_thread_id: ; @ltfs_get_thread_id .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 _pthread_self bl _pthread_mach_thread_np stur w0, [x29, #-4] ldur w0, [x29, #-4] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _ltfs_get_thread_id ## -- Begin function ltfs_get_thread_id .p2align 4, 0x90 _ltfs_get_thread_id: ## @ltfs_get_thread_id .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp callq _pthread_self movq %rax, %rdi callq _pthread_mach_thread_np movl %eax, -4(%rbp) movl -4(%rbp), %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/75138840.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 str x0, [sp, #16] str x1, [sp, #24] ldr x8, [sp, #24] str x8, [sp, #8] add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #0 str w8, [sp, #4] ; 4-byte Folded Spill stur wzr, [x29, #-4] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _getenv str x0, [sp, #16] ldr x0, [sp, #8] ldr x1, [sp, #16] bl _foo 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 "gude" .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 movlpd %xmm0, -16(%rbp) movq %rdi, -8(%rbp) movq -8(%rbp), %rax movq %rax, -24(%rbp) popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl $0, -4(%rbp) leaq L_.str(%rip), %rdi callq _getenv movq %rax, -16(%rbp) movsd -24(%rbp), %xmm0 ## xmm0 = mem[0],zero movq -16(%rbp), %rdi callq _foo xorl %eax, %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "gude" .subsections_via_symbols
the_stack_data/29825647.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _demo ; -- Begin function demo .p2align 2 _demo: ; @demo .cfi_startproc ; %bb.0: stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill .cfi_def_cfa_offset 16 mov x29, sp .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 sub sp, sp, #64 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] stur w0, [x29, #-12] ldur w1, [x29, #-12] mov x0, #0 bl _wctomb sub sp, sp, #16 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 add sp, sp, #16 adrp x8, ___mb_cur_max@GOTPAGE ldr x8, [x8, ___mb_cur_max@GOTPAGEOFF] ldr w8, [x8] ; kill: def $x8 killed $w8 mov x9, sp stur x9, [x29, #-24] lsr x9, x8, #0 add x9, x9, #15 and x9, x9, #0xfffffffffffffff0 stur x9, [x29, #-56] ; 8-byte Folded Spill adrp x16, ___chkstk_darwin@GOTPAGE ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF] blr x16 ldur x10, [x29, #-56] ; 8-byte Folded Reload mov x9, sp subs x0, x9, x10 mov sp, x0 stur x0, [x29, #-48] ; 8-byte Folded Spill stur x8, [x29, #-32] ldur w1, [x29, #-12] bl _wctomb stur w0, [x29, #-36] ldur w9, [x29, #-12] ; implicit-def: $x8 mov x8, x9 sub sp, sp, #16 mov x9, sp str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf add sp, sp, #16 stur wzr, [x29, #-40] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-40] ldur w9, [x29, #-36] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_4 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldur x8, [x29, #-48] ; 8-byte Folded Reload ldursw x9, [x29, #-40] ldrb w10, [x8, x9] sub sp, sp, #16 mov x9, sp ; implicit-def: $x8 mov x8, x10 str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf add sp, sp, #16 b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-40] add w8, w8, #1 stur w8, [x29, #-40] b LBB0_1 LBB0_4: adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf ldur x8, [x29, #-24] stur x8, [x29, #-64] ; 8-byte Folded Spill ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: bl ___stack_chk_fail LBB0_6: ldur x8, [x29, #-64] ; 8-byte Folded Reload mov sp, x8 mov sp, x29 ldp x29, x30, [sp], #16 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .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 w0, #0 stur w0, [x29, #-4] ; 4-byte Folded Spill adrp x1, l_.str.4@PAGE add x1, x1, l_.str.4@PAGEOFF bl _setlocale adrp x8, ___mb_cur_max@GOTPAGE ldr x8, [x8, ___mb_cur_max@GOTPAGEOFF] ldr w9, [x8] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf mov w0, #65 bl _demo mov w0, #223 bl _demo mov w0, #53515 movk w0, #1, lsl #16 bl _demo ldur w0, [x29, #-4] ; 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 "State-dependent encoding? %d\n" l_.str.1: ; @.str.1 .asciz "wide char '%lc' -> multibyte char '" l_.str.2: ; @.str.2 .asciz "%#2x " l_.str.3: ; @.str.3 .asciz "'\n" l_.str.4: ; @.str.4 .asciz "en_US.utf8" l_.str.5: ; @.str.5 .asciz "MB_CUR_MAX = %zu\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _demo ## -- Begin function demo .p2align 4, 0x90 _demo: ## @demo .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $64, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl %edi, -12(%rbp) movl -12(%rbp), %esi xorl %eax, %eax movl %eax, -60(%rbp) ## 4-byte Spill movl %eax, %edi callq _wctomb movl %eax, %esi movl -60(%rbp), %eax ## 4-byte Reload leaq L_.str(%rip), %rdi ## kill: def $al killed $al killed $eax callq _printf movq ___mb_cur_max@GOTPCREL(%rip), %rax movl (%rax), %eax ## kill: def $rax killed $eax movq %rax, -56(%rbp) ## 8-byte Spill movq %rsp, %rcx movq %rcx, -24(%rbp) callq ____chkstk_darwin addq $15, %rax andq $-16, %rax subq %rax, %rsp movq -56(%rbp), %rax ## 8-byte Reload movq %rsp, %rdi movq %rdi, -48(%rbp) ## 8-byte Spill movq %rax, -32(%rbp) movl -12(%rbp), %esi callq _wctomb movl %eax, -36(%rbp) movl -12(%rbp), %esi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf movl $0, -40(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movl -40(%rbp), %eax cmpl -36(%rbp), %eax jge LBB0_4 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movq -48(%rbp), %rax ## 8-byte Reload movslq -40(%rbp), %rcx movzbl (%rax,%rcx), %esi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movl -40(%rbp), %eax addl $1, %eax movl %eax, -40(%rbp) jmp LBB0_1 LBB0_4: leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf movq -24(%rbp), %rax movq %rax, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_6 ## %bb.5: movq %rbp, %rsp popq %rbp retq LBB0_6: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp xorl %edi, %edi leaq L_.str.4(%rip), %rsi callq _setlocale movq ___mb_cur_max@GOTPCREL(%rip), %rax movl (%rax), %esi leaq L_.str.5(%rip), %rdi movb $0, %al callq _printf movl $65, %edi callq _demo movl $223, %edi callq _demo movl $119051, %edi ## imm = 0x1D10B callq _demo xorl %eax, %eax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "State-dependent encoding? %d\n" L_.str.1: ## @.str.1 .asciz "wide char '%lc' -> multibyte char '" L_.str.2: ## @.str.2 .asciz "%#2x " L_.str.3: ## @.str.3 .asciz "'\n" L_.str.4: ## @.str.4 .asciz "en_US.utf8" L_.str.5: ## @.str.5 .asciz "MB_CUR_MAX = %zu\n" .subsections_via_symbols
the_stack_data/32857.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 stur wzr, [x29, #-4] stur w0, [x29, #-8] stur x1, [x29, #-16] ldur w8, [x29, #-8] subs w8, w8, #3 cset w8, eq tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: mov w0, #1 adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF bl _err LBB0_2: ldur x8, [x29, #-16] ldr x0, [x8, #8] mov w1, #0 bl _open stur w0, [x29, #-20] ldur x8, [x29, #-16] ldr x0, [x8, #16] mov x9, sp mov x8, #1024 str x8, [x9] mov x8, #512 str x8, [x9, #8] mov x8, #511 str x8, [x9, #16] mov w1, #2 bl _open stur w0, [x29, #-24] ldur w8, [x29, #-20] adds w8, w8, #1 cset w8, eq tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: ldur w8, [x29, #-24] adds w8, w8, #1 cset w8, ne tbnz w8, #0, LBB0_5 b LBB0_4 LBB0_4: mov w0, #2 adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF bl _err LBB0_5: ldur x8, [x29, #-16] ldr x0, [x8, #8] add x1, sp, #40 bl _stat adds w8, w0, #1 cset w8, ne tbnz w8, #0, LBB0_7 b LBB0_6 LBB0_6: mov w0, #3 adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF bl _err LBB0_7: ldr x0, [sp, #136] bl _malloc add x1, sp, #32 str x0, [sp, #32] ldur w0, [x29, #-20] ldr x2, [sp, #136] bl _read ldr x8, [sp, #136] subs x8, x0, x8 cset w8, eq tbnz w8, #0, LBB0_9 b LBB0_8 LBB0_8: mov w0, #4 adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF bl _err LBB0_9: ldur w0, [x29, #-24] ldr x2, [sp, #136] add x1, sp, #32 bl _write ldr x8, [sp, #136] subs x8, x0, x8 cset w8, eq tbnz w8, #0, LBB0_11 b LBB0_10 LBB0_10: mov w0, #5 adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF bl _err LBB0_11: ldur w0, [x29, #-20] bl _close ldur w0, [x29, #-24] bl _close ldr x0, [sp, #32] bl _free mov w0, #0 bl _exit .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Arguments must be 3: cfile file1 file2\n" l_.str.1: ; @.str.1 .asciz "error" .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 $176, %rsp movl $0, -4(%rbp) movl %edi, -8(%rbp) movq %rsi, -16(%rbp) cmpl $3, -8(%rbp) je LBB0_2 ## %bb.1: leaq L_.str(%rip), %rsi xorl %eax, %eax ## kill: def $al killed $al killed $eax movl $1, %edi callq _err LBB0_2: movq -16(%rbp), %rax movq 8(%rax), %rdi xorl %esi, %esi movb $0, %al callq _open movl %eax, -20(%rbp) movq -16(%rbp), %rax movq 16(%rax), %rdi movl $2, %esi movl $1024, %edx ## imm = 0x400 movl $512, %ecx ## imm = 0x200 movl $511, %r8d ## imm = 0x1FF movb $0, %al callq _open movl %eax, -24(%rbp) cmpl $-1, -20(%rbp) je LBB0_4 ## %bb.3: cmpl $-1, -24(%rbp) jne LBB0_5 LBB0_4: leaq L_.str.1(%rip), %rsi xorl %eax, %eax ## kill: def $al killed $al killed $eax movl $2, %edi callq _err LBB0_5: movq -16(%rbp), %rax movq 8(%rax), %rdi leaq -168(%rbp), %rsi callq _stat$INODE64 cmpl $-1, %eax jne LBB0_7 ## %bb.6: leaq L_.str.1(%rip), %rsi xorl %eax, %eax ## kill: def $al killed $al killed $eax movl $3, %edi callq _err LBB0_7: movq -72(%rbp), %rdi callq _malloc movq %rax, -176(%rbp) movl -20(%rbp), %edi leaq -176(%rbp), %rsi movq -72(%rbp), %rdx callq _read cmpq -72(%rbp), %rax je LBB0_9 ## %bb.8: leaq L_.str.1(%rip), %rsi xorl %eax, %eax ## kill: def $al killed $al killed $eax movl $4, %edi callq _err LBB0_9: movl -24(%rbp), %edi leaq -176(%rbp), %rsi movq -72(%rbp), %rdx callq _write cmpq -72(%rbp), %rax je LBB0_11 ## %bb.10: leaq L_.str.1(%rip), %rsi xorl %eax, %eax ## kill: def $al killed $al killed $eax movl $5, %edi callq _err LBB0_11: movl -20(%rbp), %edi callq _close movl -24(%rbp), %edi callq _close movq -176(%rbp), %rdi callq _free xorl %edi, %edi callq _exit .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Arguments must be 3: cfile file1 file2\n" L_.str.1: ## @.str.1 .asciz "error" .subsections_via_symbols
the_stack_data/75137856.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #80 .cfi_def_cfa_offset 80 stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp, #64 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] mov x9, sp mov x8, #-1 str x8, [x9] mov w0, #111 bl _syscall stur w0, [x29, #-8] ldur w8, [x29, #-8] adds w8, w8, #1 cset w8, ne tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: bl ___error ldr w8, [x0] subs w8, w8, #14 cset w8, eq tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: ldur w9, [x29, #-8] ; implicit-def: $x8 mov x8, x9 stur x8, [x29, #-16] ; 8-byte Folded Spill bl ___error ldur x10, [x29, #-16] ; 8-byte Folded Reload ldr w9, [x0] ; 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 mov w8, #1 stur w8, [x29, #-4] b LBB0_10 LBB0_3: mov x9, sp mov x8, #3 str x8, [x9] mov x8, #-1 str x8, [x9, #8] str x8, [x9, #16] mov w0, #48 bl _syscall stur w0, [x29, #-8] ldur w8, [x29, #-8] adds w8, w8, #1 cset w8, ne tbnz w8, #0, LBB0_5 b LBB0_4 LBB0_4: bl ___error ldr w8, [x0] subs w8, w8, #14 cset w8, eq tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: ldur w9, [x29, #-8] ; implicit-def: $x8 mov x8, x9 stur x8, [x29, #-24] ; 8-byte Folded Spill bl ___error ldur x10, [x29, #-24] ; 8-byte Folded Reload ldr w9, [x0] ; 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 mov w8, #1 stur w8, [x29, #-4] b LBB0_10 LBB0_6: mov x9, sp mov x8, #30 str x8, [x9] mov x8, #-1 str x8, [x9, #8] str x8, [x9, #16] mov w0, #46 bl _syscall stur w0, [x29, #-8] ldur w8, [x29, #-8] adds w8, w8, #1 cset w8, ne tbnz w8, #0, LBB0_8 b LBB0_7 LBB0_7: bl ___error ldr w8, [x0] subs w8, w8, #14 cset w8, eq tbnz w8, #0, LBB0_9 b LBB0_8 LBB0_8: ldur w9, [x29, #-8] ; implicit-def: $x8 mov x8, x9 str x8, [sp, #32] ; 8-byte Folded Spill bl ___error ldr x10, [sp, #32] ; 8-byte Folded Reload ldr w9, [x0] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf mov w8, #1 stur w8, [x29, #-4] b LBB0_10 LBB0_9: stur wzr, [x29, #-4] b LBB0_10 LBB0_10: ldur w0, [x29, #-4] ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "SYS_sigsuspend did not return EFAULT: ret=%d, errno=%d\n" l_.str.1: ; @.str.1 .asciz "SYS_sigprocmask did not return EFAULT: ret=%d, errno=%d\n" l_.str.2: ; @.str.2 .asciz "SYS_sigaction did not return EFAULT: ret=%d, errno=%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 $111, %edi movl $4294967295, %esi ## imm = 0xFFFFFFFF movb $0, %al callq _syscall movl %eax, -8(%rbp) cmpl $-1, -8(%rbp) jne LBB0_2 ## %bb.1: callq ___error cmpl $14, (%rax) je LBB0_3 LBB0_2: movl -8(%rbp), %eax movl %eax, -12(%rbp) ## 4-byte Spill callq ___error movl -12(%rbp), %esi ## 4-byte Reload movl (%rax), %edx leaq L_.str(%rip), %rdi movb $0, %al callq _printf movl $1, -4(%rbp) jmp LBB0_10 LBB0_3: movl $48, %edi movl $3, %esi movl $4294967295, %ecx ## imm = 0xFFFFFFFF movl %ecx, %edx movb $0, %al callq _syscall movl %eax, -8(%rbp) cmpl $-1, -8(%rbp) jne LBB0_5 ## %bb.4: callq ___error cmpl $14, (%rax) je LBB0_6 LBB0_5: movl -8(%rbp), %eax movl %eax, -16(%rbp) ## 4-byte Spill callq ___error movl -16(%rbp), %esi ## 4-byte Reload movl (%rax), %edx leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf movl $1, -4(%rbp) jmp LBB0_10 LBB0_6: movl $46, %edi movl $30, %esi movl $4294967295, %ecx ## imm = 0xFFFFFFFF movl %ecx, %edx movb $0, %al callq _syscall movl %eax, -8(%rbp) cmpl $-1, -8(%rbp) jne LBB0_8 ## %bb.7: callq ___error cmpl $14, (%rax) je LBB0_9 LBB0_8: movl -8(%rbp), %eax movl %eax, -20(%rbp) ## 4-byte Spill callq ___error movl -20(%rbp), %esi ## 4-byte Reload movl (%rax), %edx leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf movl $1, -4(%rbp) jmp LBB0_10 LBB0_9: movl $0, -4(%rbp) LBB0_10: movl -4(%rbp), %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "SYS_sigsuspend did not return EFAULT: ret=%d, errno=%d\n" L_.str.1: ## @.str.1 .asciz "SYS_sigprocmask did not return EFAULT: ret=%d, errno=%d\n" L_.str.2: ## @.str.2 .asciz "SYS_sigaction did not return EFAULT: ret=%d, errno=%d\n" .subsections_via_symbols
the_stack_data/12638525.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #128 .cfi_def_cfa_offset 128 stp x29, x30, [sp, #112] ; 16-byte Folded Spill add x29, sp, #112 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] str wzr, [sp, #20] sub x0, x29, #48 adrp x1, l___const.main.v1@PAGE add x1, x1, l___const.main.v1@PAGEOFF mov x2, #40 bl _memcpy str wzr, [sp, #12] str wzr, [sp, #8] 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_7 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldrsw x9, [sp, #16] sub x8, x29, #48 ldr w8, [x8, x9, lsl #2] mov w10, #2 sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldrsw x9, [sp, #16] sub x8, x29, #48 ldr w8, [x8, x9, lsl #2] ldrsw x10, [sp, #12] mov x9, x10 add w9, w9, #1 str w9, [sp, #12] add x9, sp, #44 str w8, [x9, x10, lsl #2] b LBB0_5 LBB0_4: ; in Loop: Header=BB0_1 Depth=1 ldrsw x9, [sp, #16] sub x8, x29, #48 ldr w8, [x8, x9, lsl #2] ldrsw x10, [sp, #8] mov x9, x10 add w9, w9, #1 str w9, [sp, #8] add x9, sp, #24 str w8, [x9, x10, lsl #2] b LBB0_5 LBB0_5: ; in Loop: Header=BB0_1 Depth=1 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #16] add w8, w8, #1 str w8, [sp, #16] b LBB0_1 LBB0_7: adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf str wzr, [sp, #16] b LBB0_8 LBB0_8: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #16] subs w8, w8, #5 cset w8, ge tbnz w8, #0, LBB0_11 b LBB0_9 LBB0_9: ; in Loop: Header=BB0_8 Depth=1 ldrsw x9, [sp, #16] add x8, sp, #44 ldr w9, [x8, x9, lsl #2] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf b LBB0_10 LBB0_10: ; in Loop: Header=BB0_8 Depth=1 ldr w8, [sp, #16] add w8, w8, #1 str w8, [sp, #16] b LBB0_8 LBB0_11: adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf str wzr, [sp, #16] b LBB0_12 LBB0_12: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #16] subs w8, w8, #5 cset w8, ge tbnz w8, #0, LBB0_15 b LBB0_13 LBB0_13: ; in Loop: Header=BB0_12 Depth=1 ldrsw x9, [sp, #16] add x8, sp, #24 ldr w9, [x8, x9, lsl #2] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf b LBB0_14 LBB0_14: ; in Loop: Header=BB0_12 Depth=1 ldr w8, [sp, #16] add w8, w8, #1 str w8, [sp, #16] b LBB0_12 LBB0_15: 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_17 b LBB0_16 LBB0_16: bl ___stack_chk_fail LBB0_17: mov w0, #0 ldp x29, x30, [sp, #112] ; 16-byte Folded Reload add sp, sp, #128 ret .cfi_endproc ; -- End function .section __TEXT,__const .p2align 2 ; @__const.main.v1 l___const.main.v1: .long 1 ; 0x1 .long 2 ; 0x2 .long 3 ; 0x3 .long 4 ; 0x4 .long 5 ; 0x5 .long 6 ; 0x6 .long 7 ; 0x7 .long 8 ; 0x8 .long 9 ; 0x9 .long 10 ; 0xa .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "pares = " l_.str.1: ; @.str.1 .asciz "%d " l_.str.2: ; @.str.2 .asciz "\nimpares = " .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $128, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -116(%rbp) leaq -48(%rbp), %rdi leaq l___const.main.v1(%rip), %rsi movl $40, %edx callq _memcpy movl $0, -124(%rbp) movl $0, -128(%rbp) movl $0, -120(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 cmpl $10, -120(%rbp) jge LBB0_7 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movslq -120(%rbp), %rax movl -48(%rbp,%rax,4), %eax movl $2, %ecx cltd idivl %ecx cmpl $0, %edx jne LBB0_4 ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movslq -120(%rbp), %rax movl -48(%rbp,%rax,4), %ecx movl -124(%rbp), %eax movl %eax, %edx addl $1, %edx movl %edx, -124(%rbp) cltq movl %ecx, -80(%rbp,%rax,4) jmp LBB0_5 LBB0_4: ## in Loop: Header=BB0_1 Depth=1 movslq -120(%rbp), %rax movl -48(%rbp,%rax,4), %ecx movl -128(%rbp), %eax movl %eax, %edx addl $1, %edx movl %edx, -128(%rbp) cltq movl %ecx, -112(%rbp,%rax,4) LBB0_5: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_6 LBB0_6: ## in Loop: Header=BB0_1 Depth=1 movl -120(%rbp), %eax addl $1, %eax movl %eax, -120(%rbp) jmp LBB0_1 LBB0_7: leaq L_.str(%rip), %rdi movb $0, %al callq _printf movl $0, -120(%rbp) LBB0_8: ## =>This Inner Loop Header: Depth=1 cmpl $5, -120(%rbp) jge LBB0_11 ## %bb.9: ## in Loop: Header=BB0_8 Depth=1 movslq -120(%rbp), %rax movl -80(%rbp,%rax,4), %esi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf ## %bb.10: ## in Loop: Header=BB0_8 Depth=1 movl -120(%rbp), %eax addl $1, %eax movl %eax, -120(%rbp) jmp LBB0_8 LBB0_11: leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf movl $0, -120(%rbp) LBB0_12: ## =>This Inner Loop Header: Depth=1 cmpl $5, -120(%rbp) jge LBB0_15 ## %bb.13: ## in Loop: Header=BB0_12 Depth=1 movslq -120(%rbp), %rax movl -112(%rbp,%rax,4), %esi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf ## %bb.14: ## in Loop: Header=BB0_12 Depth=1 movl -120(%rbp), %eax addl $1, %eax movl %eax, -120(%rbp) jmp LBB0_12 LBB0_15: movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_17 ## %bb.16: xorl %eax, %eax addq $128, %rsp popq %rbp retq LBB0_17: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__const .p2align 4 ## @__const.main.v1 l___const.main.v1: .long 1 ## 0x1 .long 2 ## 0x2 .long 3 ## 0x3 .long 4 ## 0x4 .long 5 ## 0x5 .long 6 ## 0x6 .long 7 ## 0x7 .long 8 ## 0x8 .long 9 ## 0x9 .long 10 ## 0xa .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "pares = " L_.str.1: ## @.str.1 .asciz "%d " L_.str.2: ## @.str.2 .asciz "\nimpares = " .subsections_via_symbols
the_stack_data/988685.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _my_memcpy ; -- Begin function my_memcpy .p2align 2 _my_memcpy: ; @my_memcpy .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] bl _memcpy_forward ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function memcpy_forward _memcpy_forward: ; @memcpy_forward .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, #24] str x1, [sp, #16] str x2, [sp, #8] str xzr, [sp] b LBB1_1 LBB1_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp] ldr x9, [sp, #8] subs x8, x8, x9 cset w8, hs tbnz w8, #0, LBB1_4 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 ldr x8, [sp, #16] ldr x9, [sp] add x8, x8, x9 ldrb w8, [x8] ldr x9, [sp, #24] ldr x10, [sp] add x9, x9, x10 strb w8, [x9] b LBB1_3 LBB1_3: ; in Loop: Header=BB1_1 Depth=1 ldr x8, [sp] add x8, x8, #1 str x8, [sp] b LBB1_1 LBB1_4: ldr x0, [sp, #24] add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _my_memmove ; -- Begin function my_memmove .p2align 2 _my_memmove: ; @my_memmove .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] ldr x8, [sp, #16] ldr x9, [sp, #8] subs x8, x8, x9 cset w8, ls tbnz w8, #0, LBB2_2 b LBB2_1 LBB2_1: ldr x0, [sp, #16] ldr x1, [sp, #8] ldr x2, [sp] bl _memcpy_backwards stur x0, [x29, #-8] b LBB2_3 LBB2_2: ldr x0, [sp, #16] ldr x1, [sp, #8] ldr x2, [sp] bl _memcpy_forward stur x0, [x29, #-8] b LBB2_3 LBB2_3: 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 memcpy_backwards _memcpy_backwards: ; @memcpy_backwards .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, #24] str x1, [sp, #16] str x2, [sp, #8] str xzr, [sp] b LBB3_1 LBB3_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp] ldr x9, [sp, #8] subs x8, x8, x9 cset w8, hs tbnz w8, #0, LBB3_4 b LBB3_2 LBB3_2: ; in Loop: Header=BB3_1 Depth=1 ldr x8, [sp, #16] ldr x9, [sp, #8] ldr x10, [sp] subs x9, x9, x10 subs x9, x9, #1 add x8, x8, x9 ldrb w8, [x8] ldr x9, [sp, #24] ldr x10, [sp, #8] ldr x11, [sp] subs x10, x10, x11 subs x10, x10, #1 add x9, x9, x10 strb w8, [x9] 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: ldr x0, [sp, #24] 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, #128 .cfi_def_cfa_offset 128 stp x29, x30, [sp, #112] ; 16-byte Folded Spill add x29, sp, #112 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #16960 movk w8, #15, lsl #16 str w8, [sp, #20] ; 4-byte Folded Spill stur wzr, [x29, #-4] stur w0, [x29, #-8] stur x1, [x29, #-16] stur w8, [x29, #-20] mov w8, #4 stur w8, [x29, #-24] mov x0, #4 str x0, [sp, #24] ; 8-byte Folded Spill bl _malloc mov x8, x0 ldr x0, [sp, #24] ; 8-byte Folded Reload stur x8, [x29, #-32] bl _malloc stur x0, [x29, #-40] movi d0, #0000000000000000 str d0, [sp, #56] stur wzr, [x29, #-44] b LBB4_1 LBB4_1: ; =>This Inner Loop Header: Depth=1 ldr w9, [sp, #20] ; 4-byte Folded Reload ldur w8, [x29, #-44] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB4_4 b LBB4_2 LBB4_2: ; in Loop: Header=BB4_1 Depth=1 bl _clock str x0, [sp, #48] ldur x0, [x29, #-40] ldur x1, [x29, #-32] mov x2, #4 mov x3, #-1 bl ___memcpy_chk bl _clock ldr x8, [sp, #48] subs x8, x0, x8 ucvtf d1, x8 ldr d0, [sp, #56] fadd d0, d0, d1 str d0, [sp, #56] b LBB4_3 LBB4_3: ; in Loop: Header=BB4_1 Depth=1 ldur w8, [x29, #-44] add w8, w8, #1 stur w8, [x29, #-44] b LBB4_1 LBB4_4: movi d0, #0000000000000000 str d0, [sp, #40] stur wzr, [x29, #-44] b LBB4_5 LBB4_5: ; =>This Inner Loop Header: Depth=1 ldr w9, [sp, #20] ; 4-byte Folded Reload ldur w8, [x29, #-44] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB4_8 b LBB4_6 LBB4_6: ; in Loop: Header=BB4_5 Depth=1 bl _clock str x0, [sp, #32] ldur x0, [x29, #-40] ldur x1, [x29, #-32] mov x2, #4 mov x3, #-1 bl ___memmove_chk bl _clock ldr x8, [sp, #32] subs x8, x0, x8 ucvtf d1, x8 ldr d0, [sp, #40] fadd d0, d0, d1 str d0, [sp, #40] b LBB4_7 LBB4_7: ; in Loop: Header=BB4_5 Depth=1 ldur w8, [x29, #-44] add w8, w8, #1 stur w8, [x29, #-44] b LBB4_5 LBB4_8: ldr d0, [sp, #40] ldr d1, [sp, #56] fcmp d0, d1 cset w8, le tbnz w8, #0, LBB4_10 b LBB4_9 LBB4_9: ldr d0, [sp, #40] ldr d1, [sp, #56] fdiv d0, d0, d1 mov x8, sp str d0, [x8] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf b LBB4_11 LBB4_10: ldr d0, [sp, #56] ldr d1, [sp, #40] 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 b LBB4_11 LBB4_11: mov w0, #0 ldp x29, x30, [sp, #112] ; 16-byte Folded Reload add sp, sp, #128 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "memcpy is %Lf times faster\n" l_.str.1: ; @.str.1 .asciz "Surprise!\nmemmove is %Lf times faster then memcpy\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _my_memcpy ## -- Begin function my_memcpy .p2align 4, 0x90 _my_memcpy: ## @my_memcpy .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 callq _memcpy_forward addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function memcpy_forward _memcpy_forward: ## @memcpy_forward .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) movq %rdx, -24(%rbp) movq $0, -32(%rbp) LBB1_1: ## =>This Inner Loop Header: Depth=1 movq -32(%rbp), %rax cmpq -24(%rbp), %rax jae LBB1_4 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 movq -16(%rbp), %rax movq -32(%rbp), %rcx movb (%rax,%rcx), %dl movq -8(%rbp), %rax movq -32(%rbp), %rcx movb %dl, (%rax,%rcx) ## %bb.3: ## in Loop: Header=BB1_1 Depth=1 movq -32(%rbp), %rax addq $1, %rax movq %rax, -32(%rbp) jmp LBB1_1 LBB1_4: movq -8(%rbp), %rax popq %rbp retq .cfi_endproc ## -- End function .globl _my_memmove ## -- Begin function my_memmove .p2align 4, 0x90 _my_memmove: ## @my_memmove .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) movq -16(%rbp), %rax cmpq -24(%rbp), %rax jbe LBB2_2 ## %bb.1: movq -16(%rbp), %rdi movq -24(%rbp), %rsi movq -32(%rbp), %rdx callq _memcpy_backwards movq %rax, -8(%rbp) jmp LBB2_3 LBB2_2: movq -16(%rbp), %rdi movq -24(%rbp), %rsi movq -32(%rbp), %rdx callq _memcpy_forward movq %rax, -8(%rbp) LBB2_3: movq -8(%rbp), %rax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function memcpy_backwards _memcpy_backwards: ## @memcpy_backwards .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) movq %rdx, -24(%rbp) movq $0, -32(%rbp) LBB3_1: ## =>This Inner Loop Header: Depth=1 movq -32(%rbp), %rax cmpq -24(%rbp), %rax jae LBB3_4 ## %bb.2: ## in Loop: Header=BB3_1 Depth=1 movq -16(%rbp), %rax movq -24(%rbp), %rcx subq -32(%rbp), %rcx subq $1, %rcx movb (%rax,%rcx), %dl movq -8(%rbp), %rax movq -24(%rbp), %rcx subq -32(%rbp), %rcx subq $1, %rcx movb %dl, (%rax,%rcx) ## %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: movq -8(%rbp), %rax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ## -- Begin function main LCPI4_0: .quad 6881500230622117888 ## 0x5f80000000000000 .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 movl $0, -4(%rbp) movl %edi, -8(%rbp) movq %rsi, -16(%rbp) movl $1000000, -20(%rbp) ## imm = 0xF4240 movl $4, -24(%rbp) movl $4, %edi movq %rdi, -128(%rbp) ## 8-byte Spill callq _malloc movq -128(%rbp), %rdi ## 8-byte Reload movq %rax, -32(%rbp) callq _malloc movq %rax, -40(%rbp) fldz fstpt -64(%rbp) movl $0, -44(%rbp) LBB4_1: ## =>This Inner Loop Header: Depth=1 cmpl $1000000, -44(%rbp) ## imm = 0xF4240 jge LBB4_4 ## %bb.2: ## in Loop: Header=BB4_1 Depth=1 callq _clock movq %rax, -72(%rbp) movq -40(%rbp), %rdi movq -32(%rbp), %rsi movl $4, %edx movq $-1, %rcx callq ___memcpy_chk callq _clock movq -72(%rbp), %rcx subq %rcx, %rax movq %rax, -120(%rbp) sets %al movzbl %al, %eax movl %eax, %ecx fildll -120(%rbp) leaq LCPI4_0(%rip), %rax flds (%rax,%rcx,4) faddp %st, %st(1) fldt -64(%rbp) faddp %st, %st(1) fstpt -64(%rbp) ## %bb.3: ## in Loop: Header=BB4_1 Depth=1 movl -44(%rbp), %eax addl $1, %eax movl %eax, -44(%rbp) jmp LBB4_1 LBB4_4: fldz fstpt -96(%rbp) movl $0, -44(%rbp) LBB4_5: ## =>This Inner Loop Header: Depth=1 cmpl $1000000, -44(%rbp) ## imm = 0xF4240 jge LBB4_8 ## %bb.6: ## in Loop: Header=BB4_5 Depth=1 callq _clock movq %rax, -104(%rbp) movq -40(%rbp), %rdi movq -32(%rbp), %rsi movl $4, %edx movq $-1, %rcx callq ___memmove_chk callq _clock movq -104(%rbp), %rcx subq %rcx, %rax movq %rax, -112(%rbp) sets %al movzbl %al, %eax movl %eax, %ecx fildll -112(%rbp) leaq LCPI4_0(%rip), %rax flds (%rax,%rcx,4) faddp %st, %st(1) fldt -96(%rbp) faddp %st, %st(1) fstpt -96(%rbp) ## %bb.7: ## in Loop: Header=BB4_5 Depth=1 movl -44(%rbp), %eax addl $1, %eax movl %eax, -44(%rbp) jmp LBB4_5 LBB4_8: fldt -96(%rbp) fldt -64(%rbp) fxch %st(1) fucompi %st(1), %st fstp %st(0) jbe LBB4_10 jmp LBB4_9 LBB4_9: fldt -96(%rbp) fldt -64(%rbp) fdivrp %st, %st(1) movq %rsp, %rax fstpt (%rax) leaq L_.str(%rip), %rdi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _printf jmp LBB4_11 LBB4_10: fldt -64(%rbp) fldt -96(%rbp) fdivrp %st, %st(1) movq %rsp, %rax fstpt (%rax) leaq L_.str.1(%rip), %rdi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _printf LBB4_11: xorl %eax, %eax addq $144, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "memcpy is %Lf times faster\n" L_.str.1: ## @.str.1 .asciz "Surprise!\nmemmove is %Lf times faster then memcpy\n" .subsections_via_symbols
the_stack_data/193893791.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _scilab_rt_pie_d2_ ; -- Begin function scilab_rt_pie_d2_ .p2align 2 _scilab_rt_pie_d2_: ; @scilab_rt_pie_d2_ .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur w0, [x29, #-4] stur w1, [x29, #-8] stur x2, [x29, #-16] ldur w8, [x29, #-8] ; kill: def $x8 killed $w8 str x8, [sp, #8] ; 8-byte Folded Spill movi d0, #0000000000000000 str d0, [sp, #16] stur wzr, [x29, #-20] b LBB0_1 LBB0_1: ; =>This Loop Header: Depth=1 ; Child Loop BB0_3 Depth 2 ldur w8, [x29, #-20] ldur w9, [x29, #-4] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_8 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 str wzr, [sp, #24] b LBB0_3 LBB0_3: ; Parent Loop BB0_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #24] ldur w9, [x29, #-8] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_6 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_3 Depth=2 ldr x10, [sp, #8] ; 8-byte Folded Reload ldur x8, [x29, #-16] ldursw x9, [x29, #-20] mul x9, x9, x10 add x8, x8, x9, lsl #3 ldrsw x9, [sp, #24] ldr d1, [x8, x9, lsl #3] ldr d0, [sp, #16] fadd d0, d0, d1 str d0, [sp, #16] b LBB0_5 LBB0_5: ; in Loop: Header=BB0_3 Depth=2 ldr w8, [sp, #24] add w8, w8, #1 str w8, [sp, #24] b LBB0_3 LBB0_6: ; in Loop: Header=BB0_1 Depth=1 b LBB0_7 LBB0_7: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-20] add w8, w8, #1 stur w8, [x29, #-20] b LBB0_1 LBB0_8: ldr d0, [sp, #16] mov x8, sp str d0, [x8] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%f" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _scilab_rt_pie_d2_ ## -- Begin function scilab_rt_pie_d2_ .p2align 4, 0x90 _scilab_rt_pie_d2_: ## @scilab_rt_pie_d2_ .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movl %edi, -4(%rbp) movl %esi, -8(%rbp) movq %rdx, -16(%rbp) movl -8(%rbp), %eax ## kill: def $rax killed $eax movq %rax, -40(%rbp) ## 8-byte Spill xorps %xmm0, %xmm0 movsd %xmm0, -32(%rbp) movl $0, -20(%rbp) LBB0_1: ## =>This Loop Header: Depth=1 ## Child Loop BB0_3 Depth 2 movl -20(%rbp), %eax cmpl -4(%rbp), %eax jge LBB0_8 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl $0, -24(%rbp) LBB0_3: ## Parent Loop BB0_1 Depth=1 ## => This Inner Loop Header: Depth=2 movl -24(%rbp), %eax cmpl -8(%rbp), %eax jge LBB0_6 ## %bb.4: ## in Loop: Header=BB0_3 Depth=2 movq -40(%rbp), %rdx ## 8-byte Reload movq -16(%rbp), %rax movslq -20(%rbp), %rcx imulq %rdx, %rcx shlq $3, %rcx addq %rcx, %rax movslq -24(%rbp), %rcx movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero addsd -32(%rbp), %xmm0 movsd %xmm0, -32(%rbp) ## %bb.5: ## in Loop: Header=BB0_3 Depth=2 movl -24(%rbp), %eax addl $1, %eax movl %eax, -24(%rbp) jmp LBB0_3 LBB0_6: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_7 LBB0_7: ## in Loop: Header=BB0_1 Depth=1 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB0_1 LBB0_8: movsd -32(%rbp), %xmm0 ## xmm0 = mem[0],zero leaq L_.str(%rip), %rdi movb $1, %al callq _printf addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%f" .subsections_via_symbols
the_stack_data/2312.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _gt ; -- Begin function gt .p2align 2 _gt: ; @gt .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur w0, [x29, #-4] ldur w8, [x29, #-4] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: mov x8, #1 str x8, [sp, #16] ; 8-byte Folded Spill b LBB0_3 LBB0_2: ldursw x8, [x29, #-4] str x8, [sp, #8] ; 8-byte Folded Spill ldur w8, [x29, #-4] subs w0, w8, #1 bl _gt ldr x8, [sp, #8] ; 8-byte Folded Reload mul x8, x8, x0 str x8, [sp, #16] ; 8-byte Folded Spill b LBB0_3 LBB0_3: ldr x0, [sp, #16] ; 8-byte Folded Reload ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _C ; -- Begin function C .p2align 2 _C: ; @C .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 w0, [x29, #-4] bl _gt str x0, [sp, #16] ; 8-byte Folded Spill ldur w0, [x29, #-8] bl _gt str x0, [sp, #8] ; 8-byte Folded Spill ldur w8, [x29, #-4] ldur w9, [x29, #-8] subs w0, w8, w9 bl _gt ldr x8, [sp, #8] ; 8-byte Folded Reload mov x9, x0 ldr x0, [sp, #16] ; 8-byte Folded Reload mul x8, x8, x9 sdiv x0, x0, x8 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] stur wzr, [x29, #-12] mov x9, sp sub x8, x29, #8 str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _scanf b LBB2_1 LBB2_1: ; =>This Loop Header: Depth=1 ; Child Loop BB2_3 Depth 2 ldur w8, [x29, #-12] ldur w9, [x29, #-8] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB2_10 b LBB2_2 LBB2_2: ; in Loop: Header=BB2_1 Depth=1 str wzr, [sp, #16] b LBB2_3 LBB2_3: ; Parent Loop BB2_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #16] ldur w9, [x29, #-12] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB2_9 b LBB2_4 LBB2_4: ; in Loop: Header=BB2_3 Depth=2 ldr w8, [sp, #16] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB2_6 b LBB2_5 LBB2_5: ; in Loop: Header=BB2_3 Depth=2 ldr w8, [sp, #16] ldur w9, [x29, #-12] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB2_7 b LBB2_6 LBB2_6: ; in Loop: Header=BB2_3 Depth=2 adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf b LBB2_8 LBB2_7: ; in Loop: Header=BB2_3 Depth=2 ldur w0, [x29, #-12] ldr w1, [sp, #16] bl _C mov x8, sp str x0, [x8] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf b LBB2_8 LBB2_8: ; in Loop: Header=BB2_3 Depth=2 ldr w8, [sp, #16] add w8, w8, #1 str w8, [sp, #16] b LBB2_3 LBB2_9: ; in Loop: Header=BB2_1 Depth=1 adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf ldur w8, [x29, #-12] add w8, w8, #1 stur w8, [x29, #-12] b LBB2_1 LBB2_10: 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 "1 " l_.str.2: ; @.str.2 .asciz "%lld " l_.str.3: ; @.str.3 .asciz "\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _gt ## -- Begin function gt .p2align 4, 0x90 _gt: ## @gt .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl %edi, -4(%rbp) cmpl $0, -4(%rbp) jne LBB0_2 ## %bb.1: movl $1, %eax movq %rax, -16(%rbp) ## 8-byte Spill jmp LBB0_3 LBB0_2: movslq -4(%rbp), %rax movq %rax, -24(%rbp) ## 8-byte Spill movl -4(%rbp), %edi subl $1, %edi callq _gt movq %rax, %rcx movq -24(%rbp), %rax ## 8-byte Reload imulq %rcx, %rax movq %rax, -16(%rbp) ## 8-byte Spill LBB0_3: movq -16(%rbp), %rax ## 8-byte Reload addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _C ## -- Begin function C .p2align 4, 0x90 _C: ## @C .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl %edi, -4(%rbp) movl %esi, -8(%rbp) movl -4(%rbp), %edi callq _gt movq %rax, -16(%rbp) ## 8-byte Spill movl -8(%rbp), %edi callq _gt movq %rax, -24(%rbp) ## 8-byte Spill movl -4(%rbp), %edi subl -8(%rbp), %edi callq _gt movq -24(%rbp), %rcx ## 8-byte Reload movq %rax, %rdx movq -16(%rbp), %rax ## 8-byte Reload imulq %rdx, %rcx cqto idivq %rcx addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) movl $0, -12(%rbp) leaq L_.str(%rip), %rdi leaq -8(%rbp), %rsi movb $0, %al callq _scanf LBB2_1: ## =>This Loop Header: Depth=1 ## Child Loop BB2_3 Depth 2 movl -12(%rbp), %eax cmpl -8(%rbp), %eax jg LBB2_10 ## %bb.2: ## in Loop: Header=BB2_1 Depth=1 movl $0, -16(%rbp) LBB2_3: ## Parent Loop BB2_1 Depth=1 ## => This Inner Loop Header: Depth=2 movl -16(%rbp), %eax cmpl -12(%rbp), %eax jg LBB2_9 ## %bb.4: ## in Loop: Header=BB2_3 Depth=2 cmpl $0, -16(%rbp) je LBB2_6 ## %bb.5: ## in Loop: Header=BB2_3 Depth=2 movl -16(%rbp), %eax cmpl -12(%rbp), %eax jne LBB2_7 LBB2_6: ## in Loop: Header=BB2_3 Depth=2 leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf jmp LBB2_8 LBB2_7: ## in Loop: Header=BB2_3 Depth=2 movl -12(%rbp), %edi movl -16(%rbp), %esi callq _C movq %rax, %rsi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf LBB2_8: ## in Loop: Header=BB2_3 Depth=2 movl -16(%rbp), %eax addl $1, %eax movl %eax, -16(%rbp) jmp LBB2_3 LBB2_9: ## in Loop: Header=BB2_1 Depth=1 leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB2_1 LBB2_10: 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 "1 " L_.str.2: ## @.str.2 .asciz "%lld " L_.str.3: ## @.str.3 .asciz "\n" .subsections_via_symbols
the_stack_data/1133539.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, _candidate_count@GOTPAGE ldr x8, [x8, _candidate_count@GOTPAGEOFF] str x8, [sp, #16] ; 8-byte Folded Spill 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 x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov w8, #1 stur w8, [x29, #-4] b LBB0_20 LBB0_2: ldr x8, [sp, #16] ; 8-byte Folded Reload ldur w9, [x29, #-8] subs w9, w9, #1 str w9, [x8] ldr w8, [x8] subs w8, w8, #9 cset w8, le tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: mov x9, sp mov x8, #9 str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf mov w8, #2 stur w8, [x29, #-4] b LBB0_20 LBB0_4: stur wzr, [x29, #-20] b LBB0_5 LBB0_5: ; =>This Inner Loop Header: Depth=1 ldr x9, [sp, #16] ; 8-byte Folded Reload ldur w8, [x29, #-20] ldr w9, [x9] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_8 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_5 Depth=1 ldur x8, [x29, #-16] ldur w9, [x29, #-20] add w9, w9, #1 ldr x9, [x8, w9, sxtw #3] ldursw x8, [x29, #-20] lsl x10, x8, #4 adrp x8, _candidates@GOTPAGE ldr x8, [x8, _candidates@GOTPAGEOFF] str x9, [x8, x10] ldursw x9, [x29, #-20] add x8, x8, x9, lsl #4 str wzr, [x8, #8] b LBB0_7 LBB0_7: ; in Loop: Header=BB0_5 Depth=1 ldur w8, [x29, #-20] add w8, w8, #1 stur w8, [x29, #-20] b LBB0_5 LBB0_8: adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf mov x9, sp sub x8, x29, #24 str x8, [x9] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _scanf b LBB0_9 LBB0_9: ; =>This Inner Loop Header: Depth=1 bl _getchar stur w0, [x29, #-28] subs w8, w0, #10 cset w8, eq mov w9, #0 str w9, [sp, #12] ; 4-byte Folded Spill tbnz w8, #0, LBB0_11 b LBB0_10 LBB0_10: ; in Loop: Header=BB0_9 Depth=1 ldur w8, [x29, #-28] adds w8, w8, #1 cset w8, ne str w8, [sp, #12] ; 4-byte Folded Spill b LBB0_11 LBB0_11: ; in Loop: Header=BB0_9 Depth=1 ldr w8, [sp, #12] ; 4-byte Folded Reload tbz w8, #0, LBB0_13 b LBB0_12 LBB0_12: ; in Loop: Header=BB0_9 Depth=1 b LBB0_9 LBB0_13: str wzr, [sp, #32] b LBB0_14 LBB0_14: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #32] ldur w9, [x29, #-24] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_19 b LBB0_15 LBB0_15: ; in Loop: Header=BB0_14 Depth=1 adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf adrp x8, ___stdinp@GOTPAGE ldr x8, [x8, ___stdinp@GOTPAGEOFF] ldr x0, [x8] mov x1, #10 bl _inputString str x0, [sp, #24] ldr x0, [sp, #24] bl _vote tbnz w0, #0, LBB0_17 b LBB0_16 LBB0_16: ; in Loop: Header=BB0_14 Depth=1 adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf b LBB0_17 LBB0_17: ; in Loop: Header=BB0_14 Depth=1 ldr x0, [sp, #24] bl _free b LBB0_18 LBB0_18: ; in Loop: Header=BB0_14 Depth=1 ldr w8, [sp, #32] add w8, w8, #1 str w8, [sp, #32] b LBB0_14 LBB0_19: bl _print_winner b LBB0_20 LBB0_20: ldur w0, [x29, #-4] ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .globl _inputString ; -- Begin function inputString .p2align 2 _inputString: ; @inputString .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, #16] ldur x9, [x29, #-24] mov x8, #1 mul x1, x8, x9 mov x0, #0 bl _realloc str x0, [sp, #32] ldr x8, [sp, #32] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: ldr x8, [sp, #32] stur x8, [x29, #-8] b LBB1_12 LBB1_2: b LBB1_3 LBB1_3: ; =>This Inner Loop Header: Depth=1 ldur x0, [x29, #-16] bl _fgetc str w0, [sp, #28] mov w8, #-1 subs w8, w8, w0 cset w8, eq mov w9, #0 str w9, [sp, #12] ; 4-byte Folded Spill tbnz w8, #0, LBB1_5 b LBB1_4 LBB1_4: ; in Loop: Header=BB1_3 Depth=1 ldr w8, [sp, #28] subs w8, w8, #10 cset w8, ne str w8, [sp, #12] ; 4-byte Folded Spill b LBB1_5 LBB1_5: ; in Loop: Header=BB1_3 Depth=1 ldr w8, [sp, #12] ; 4-byte Folded Reload tbz w8, #0, LBB1_11 b LBB1_6 LBB1_6: ; in Loop: Header=BB1_3 Depth=1 ldr w8, [sp, #28] ldr x9, [sp, #32] ldr x10, [sp, #16] add x11, x10, #1 str x11, [sp, #16] strb w8, [x9, x10] ldr x8, [sp, #16] ldur x9, [x29, #-24] subs x8, x8, x9 cset w8, ne tbnz w8, #0, LBB1_10 b LBB1_7 LBB1_7: ; in Loop: Header=BB1_3 Depth=1 ldr x0, [sp, #32] ldur x8, [x29, #-24] add x9, x8, #16 stur x9, [x29, #-24] mov x8, #1 mul x1, x8, x9 bl _realloc str x0, [sp, #32] ldr x8, [sp, #32] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB1_9 b LBB1_8 LBB1_8: ldr x8, [sp, #32] stur x8, [x29, #-8] b LBB1_12 LBB1_9: ; in Loop: Header=BB1_3 Depth=1 b LBB1_10 LBB1_10: ; in Loop: Header=BB1_3 Depth=1 b LBB1_3 LBB1_11: ldr x9, [sp, #32] ldr x10, [sp, #16] mov x8, #1 add x11, x10, #1 str x11, [sp, #16] add x9, x9, x10 strb wzr, [x9] ldr x0, [sp, #32] ldr x9, [sp, #16] mul x1, x8, x9 bl _realloc stur x0, [x29, #-8] b LBB1_12 LBB1_12: ldur x0, [x29, #-8] ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .globl _vote ; -- Begin function vote .p2align 2 _vote: ; @vote .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #16] str wzr, [sp, #12] b LBB2_1 LBB2_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #12] adrp x9, _candidate_count@GOTPAGE ldr x9, [x9, _candidate_count@GOTPAGEOFF] ldr w9, [x9] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB2_6 b LBB2_2 LBB2_2: ; in Loop: Header=BB2_1 Depth=1 ldrsw x8, [sp, #12] lsl x9, x8, #4 adrp x8, _candidates@GOTPAGE ldr x8, [x8, _candidates@GOTPAGEOFF] ldr x0, [x8, x9] ldr x1, [sp, #16] bl _strcmp subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB2_4 b LBB2_3 LBB2_3: ldrsw x9, [sp, #12] adrp x8, _candidates@GOTPAGE ldr x8, [x8, _candidates@GOTPAGEOFF] add x9, x8, x9, lsl #4 ldr w8, [x9, #8] add w8, w8, #1 str w8, [x9, #8] mov w8, #1 and w8, w8, #0x1 and w8, w8, #0x1 sturb w8, [x29, #-1] b LBB2_7 LBB2_4: ; in Loop: Header=BB2_1 Depth=1 b LBB2_5 LBB2_5: ; in Loop: Header=BB2_1 Depth=1 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB2_1 LBB2_6: mov w8, #0 and w8, w8, #0x1 and w8, w8, #0x1 sturb w8, [x29, #-1] b LBB2_7 LBB2_7: ldurb w8, [x29, #-1] and w0, w8, #0x1 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _print_winner ; -- Begin function print_winner .p2align 2 _print_winner: ; @print_winner .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, _candidates@GOTPAGE ldr x8, [x8, _candidates@GOTPAGEOFF] str x8, [sp, #8] ; 8-byte Folded Spill stur wzr, [x29, #-4] stur wzr, [x29, #-8] b LBB3_1 LBB3_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-8] adrp x9, _candidate_count@GOTPAGE ldr x9, [x9, _candidate_count@GOTPAGEOFF] ldr w9, [x9] 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 x9, [sp, #8] ; 8-byte Folded Reload ldur w8, [x29, #-4] ldursw x10, [x29, #-8] add x9, x9, x10, lsl #4 ldr w9, [x9, #8] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB3_4 b LBB3_3 LBB3_3: ; in Loop: Header=BB3_1 Depth=1 ldr x8, [sp, #8] ; 8-byte Folded Reload ldursw x9, [x29, #-8] add x8, x8, x9, lsl #4 ldr w8, [x8, #8] stur w8, [x29, #-4] b LBB3_4 LBB3_4: ; in Loop: Header=BB3_1 Depth=1 b LBB3_5 LBB3_5: ; in Loop: Header=BB3_1 Depth=1 ldur w8, [x29, #-8] add w8, w8, #1 stur w8, [x29, #-8] b LBB3_1 LBB3_6: stur wzr, [x29, #-12] b LBB3_7 LBB3_7: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-12] adrp x9, _candidate_count@GOTPAGE ldr x9, [x9, _candidate_count@GOTPAGEOFF] ldr w9, [x9] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB3_12 b LBB3_8 LBB3_8: ; in Loop: Header=BB3_7 Depth=1 ldr x8, [sp, #8] ; 8-byte Folded Reload ldursw x9, [x29, #-12] add x8, x8, x9, lsl #4 ldr w8, [x8, #8] ldur w9, [x29, #-4] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB3_10 b LBB3_9 LBB3_9: ; in Loop: Header=BB3_7 Depth=1 ldr x8, [sp, #8] ; 8-byte Folded Reload ldursw x9, [x29, #-12] lsl x9, x9, #4 ldr x8, [x8, x9] mov x9, sp str x8, [x9] adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _printf b LBB3_10 LBB3_10: ; in Loop: Header=BB3_7 Depth=1 b LBB3_11 LBB3_11: ; in Loop: Header=BB3_7 Depth=1 ldur w8, [x29, #-12] add w8, w8, #1 stur w8, [x29, #-12] b LBB3_7 LBB3_12: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Usage: plurality [candidate ...]\n" .comm _candidate_count,4,2 ; @candidate_count l_.str.1: ; @.str.1 .asciz "Maximum number of candidates is %i\n" .comm _candidates,144,3 ; @candidates l_.str.2: ; @.str.2 .asciz "Number of voters: " l_.str.3: ; @.str.3 .asciz "%d" l_.str.4: ; @.str.4 .asciz "Vote: " l_.str.5: ; @.str.5 .asciz "Invalid vote.\n" l_.str.6: ; @.str.6 .asciz "winner: %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 $48, %rsp movl $0, -4(%rbp) movl %edi, -8(%rbp) movq %rsi, -16(%rbp) cmpl $2, -8(%rbp) jge LBB0_2 ## %bb.1: leaq L_.str(%rip), %rdi movb $0, %al callq _printf movl $1, -4(%rbp) jmp LBB0_20 LBB0_2: movl -8(%rbp), %ecx subl $1, %ecx movq _candidate_count@GOTPCREL(%rip), %rax movl %ecx, (%rax) movq _candidate_count@GOTPCREL(%rip), %rax cmpl $9, (%rax) jle LBB0_4 ## %bb.3: leaq L_.str.1(%rip), %rdi movl $9, %esi movb $0, %al callq _printf movl $2, -4(%rbp) jmp LBB0_20 LBB0_4: movl $0, -20(%rbp) LBB0_5: ## =>This Inner Loop Header: Depth=1 movl -20(%rbp), %eax movq _candidate_count@GOTPCREL(%rip), %rcx cmpl (%rcx), %eax jge LBB0_8 ## %bb.6: ## in Loop: Header=BB0_5 Depth=1 movq -16(%rbp), %rax movl -20(%rbp), %ecx addl $1, %ecx movslq %ecx, %rcx movq (%rax,%rcx,8), %rcx movslq -20(%rbp), %rdx movq _candidates@GOTPCREL(%rip), %rax shlq $4, %rdx addq %rdx, %rax movq %rcx, (%rax) movslq -20(%rbp), %rcx movq _candidates@GOTPCREL(%rip), %rax shlq $4, %rcx addq %rcx, %rax movl $0, 8(%rax) ## %bb.7: ## in Loop: Header=BB0_5 Depth=1 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB0_5 LBB0_8: leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf leaq L_.str.3(%rip), %rdi leaq -24(%rbp), %rsi movb $0, %al callq _scanf LBB0_9: ## =>This Inner Loop Header: Depth=1 callq _getchar movl %eax, %ecx movl %ecx, -28(%rbp) xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $10, %ecx movb %al, -41(%rbp) ## 1-byte Spill je LBB0_11 ## %bb.10: ## in Loop: Header=BB0_9 Depth=1 cmpl $-1, -28(%rbp) setne %al movb %al, -41(%rbp) ## 1-byte Spill LBB0_11: ## in Loop: Header=BB0_9 Depth=1 movb -41(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB0_12 jmp LBB0_13 LBB0_12: ## in Loop: Header=BB0_9 Depth=1 jmp LBB0_9 LBB0_13: movl $0, -32(%rbp) LBB0_14: ## =>This Inner Loop Header: Depth=1 movl -32(%rbp), %eax cmpl -24(%rbp), %eax jge LBB0_19 ## %bb.15: ## in Loop: Header=BB0_14 Depth=1 leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf movq ___stdinp@GOTPCREL(%rip), %rax movq (%rax), %rdi movl $10, %esi callq _inputString movq %rax, -40(%rbp) movq -40(%rbp), %rdi callq _vote testb $1, %al jne LBB0_17 ## %bb.16: ## in Loop: Header=BB0_14 Depth=1 leaq L_.str.5(%rip), %rdi movb $0, %al callq _printf LBB0_17: ## in Loop: Header=BB0_14 Depth=1 movq -40(%rbp), %rdi callq _free ## %bb.18: ## in Loop: Header=BB0_14 Depth=1 movl -32(%rbp), %eax addl $1, %eax movl %eax, -32(%rbp) jmp LBB0_14 LBB0_19: callq _print_winner LBB0_20: movl -4(%rbp), %eax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _inputString ## -- Begin function inputString .p2align 4, 0x90 _inputString: ## @inputString .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, -48(%rbp) movq -24(%rbp), %rsi shlq $0, %rsi xorl %eax, %eax movl %eax, %edi callq _realloc movq %rax, -32(%rbp) cmpq $0, -32(%rbp) jne LBB1_2 ## %bb.1: movq -32(%rbp), %rax movq %rax, -8(%rbp) jmp LBB1_12 LBB1_2: jmp LBB1_3 LBB1_3: ## =>This Inner Loop Header: Depth=1 movq -16(%rbp), %rdi callq _fgetc movl %eax, %edx movl %edx, -36(%rbp) xorl %eax, %eax ## kill: def $al killed $al killed $eax movl $4294967295, %ecx ## imm = 0xFFFFFFFF cmpl %edx, %ecx movb %al, -49(%rbp) ## 1-byte Spill je LBB1_5 ## %bb.4: ## in Loop: Header=BB1_3 Depth=1 cmpl $10, -36(%rbp) setne %al movb %al, -49(%rbp) ## 1-byte Spill LBB1_5: ## in Loop: Header=BB1_3 Depth=1 movb -49(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB1_6 jmp LBB1_11 LBB1_6: ## in Loop: Header=BB1_3 Depth=1 movl -36(%rbp), %eax movb %al, %dl movq -32(%rbp), %rax movq -48(%rbp), %rcx movq %rcx, %rsi addq $1, %rsi movq %rsi, -48(%rbp) movb %dl, (%rax,%rcx) movq -48(%rbp), %rax cmpq -24(%rbp), %rax jne LBB1_10 ## %bb.7: ## in Loop: Header=BB1_3 Depth=1 movq -32(%rbp), %rdi movq -24(%rbp), %rsi addq $16, %rsi movq %rsi, -24(%rbp) shlq $0, %rsi callq _realloc movq %rax, -32(%rbp) cmpq $0, -32(%rbp) jne LBB1_9 ## %bb.8: movq -32(%rbp), %rax movq %rax, -8(%rbp) jmp LBB1_12 LBB1_9: ## in Loop: Header=BB1_3 Depth=1 jmp LBB1_10 LBB1_10: ## in Loop: Header=BB1_3 Depth=1 jmp LBB1_3 LBB1_11: movq -32(%rbp), %rax movq -48(%rbp), %rcx movq %rcx, %rdx addq $1, %rdx movq %rdx, -48(%rbp) movb $0, (%rax,%rcx) movq -32(%rbp), %rdi movq -48(%rbp), %rsi shlq $0, %rsi callq _realloc movq %rax, -8(%rbp) LBB1_12: movq -8(%rbp), %rax addq $64, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _vote ## -- Begin function vote .p2align 4, 0x90 _vote: ## @vote .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -16(%rbp) movl $0, -20(%rbp) LBB2_1: ## =>This Inner Loop Header: Depth=1 movl -20(%rbp), %eax movq _candidate_count@GOTPCREL(%rip), %rcx cmpl (%rcx), %eax jge LBB2_6 ## %bb.2: ## in Loop: Header=BB2_1 Depth=1 movslq -20(%rbp), %rcx movq _candidates@GOTPCREL(%rip), %rax shlq $4, %rcx addq %rcx, %rax movq (%rax), %rdi movq -16(%rbp), %rsi callq _strcmp cmpl $0, %eax jne LBB2_4 ## %bb.3: movslq -20(%rbp), %rcx movq _candidates@GOTPCREL(%rip), %rax shlq $4, %rcx addq %rcx, %rax movl 8(%rax), %ecx addl $1, %ecx movl %ecx, 8(%rax) movb $1, -1(%rbp) jmp LBB2_7 LBB2_4: ## in Loop: Header=BB2_1 Depth=1 jmp LBB2_5 LBB2_5: ## in Loop: Header=BB2_1 Depth=1 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB2_1 LBB2_6: movb $0, -1(%rbp) LBB2_7: movb -1(%rbp), %al andb $1, %al movzbl %al, %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _print_winner ## -- Begin function print_winner .p2align 4, 0x90 _print_winner: ## @print_winner .cfi_startproc ## %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) LBB3_1: ## =>This Inner Loop Header: Depth=1 movl -8(%rbp), %eax movq _candidate_count@GOTPCREL(%rip), %rcx cmpl (%rcx), %eax jge LBB3_6 ## %bb.2: ## in Loop: Header=BB3_1 Depth=1 movl -4(%rbp), %eax movslq -8(%rbp), %rdx movq _candidates@GOTPCREL(%rip), %rcx shlq $4, %rdx addq %rdx, %rcx cmpl 8(%rcx), %eax jg LBB3_4 ## %bb.3: ## in Loop: Header=BB3_1 Depth=1 movslq -8(%rbp), %rcx movq _candidates@GOTPCREL(%rip), %rax shlq $4, %rcx addq %rcx, %rax movl 8(%rax), %eax movl %eax, -4(%rbp) LBB3_4: ## in Loop: Header=BB3_1 Depth=1 jmp LBB3_5 LBB3_5: ## in Loop: Header=BB3_1 Depth=1 movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) jmp LBB3_1 LBB3_6: movl $0, -12(%rbp) LBB3_7: ## =>This Inner Loop Header: Depth=1 movl -12(%rbp), %eax movq _candidate_count@GOTPCREL(%rip), %rcx cmpl (%rcx), %eax jge LBB3_12 ## %bb.8: ## in Loop: Header=BB3_7 Depth=1 movslq -12(%rbp), %rcx movq _candidates@GOTPCREL(%rip), %rax shlq $4, %rcx addq %rcx, %rax movl 8(%rax), %eax cmpl -4(%rbp), %eax jne LBB3_10 ## %bb.9: ## in Loop: Header=BB3_7 Depth=1 movslq -12(%rbp), %rcx movq _candidates@GOTPCREL(%rip), %rax shlq $4, %rcx addq %rcx, %rax movq (%rax), %rsi leaq L_.str.6(%rip), %rdi movb $0, %al callq _printf LBB3_10: ## in Loop: Header=BB3_7 Depth=1 jmp LBB3_11 LBB3_11: ## in Loop: Header=BB3_7 Depth=1 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB3_7 LBB3_12: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Usage: plurality [candidate ...]\n" .comm _candidate_count,4,2 ## @candidate_count L_.str.1: ## @.str.1 .asciz "Maximum number of candidates is %i\n" .comm _candidates,144,4 ## @candidates L_.str.2: ## @.str.2 .asciz "Number of voters: " L_.str.3: ## @.str.3 .asciz "%d" L_.str.4: ## @.str.4 .asciz "Vote: " L_.str.5: ## @.str.5 .asciz "Invalid vote.\n" L_.str.6: ## @.str.6 .asciz "winner: %s\n" .subsections_via_symbols
the_stack_data/82159.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #96 .cfi_def_cfa_offset 96 stp x29, x30, [sp, #80] ; 16-byte Folded Spill add x29, sp, #80 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, _H@GOTPAGE ldr x8, [x8, _H@GOTPAGEOFF] str x8, [sp, #8] ; 8-byte Folded Spill mov x10, #2340 movk x10, #61, lsl #16 mov x9, x8 add x9, x9, x10 str x9, [sp, #16] ; 8-byte Folded Spill mov x9, #2344 movk x9, #61, lsl #16 add x8, x8, x9 str x8, [sp, #24] ; 8-byte Folded Spill stur wzr, [x29, #-4] b LBB0_1 LBB0_1: ldr x8, [sp, #24] ; 8-byte Folded Reload ldr x10, [sp, #16] ; 8-byte Folded Reload mov w9, #1 str w9, [x10] str wzr, [x8] b LBB0_2 LBB0_2: 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_3 LBB0_3: ; =>This Loop Header: Depth=1 ; Child Loop BB0_20 Depth 2 ; Child Loop BB0_7 Depth 2 ldur w8, [x29, #-8] subs w9, w8, #1 stur w9, [x29, #-8] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_34 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_3 Depth=1 mov x9, sp sub x8, x29, #12 str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _scanf ldur w8, [x29, #-12] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB0_16 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_3 Depth=1 mov x9, sp sub x8, x29, #16 str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _scanf b LBB0_6 LBB0_6: ; in Loop: Header=BB0_3 Depth=1 ldr x9, [sp, #8] ; 8-byte Folded Reload ldr x12, [sp, #16] ; 8-byte Folded Reload ldur w8, [x29, #-16] stur w8, [x29, #-20] ldr w8, [x12] stur w8, [x29, #-24] ldur w8, [x29, #-20] ldrsw x10, [x12] mov x11, x10 add w11, w11, #1 str w11, [x12] str w8, [x9, x10, lsl #2] b LBB0_7 LBB0_7: ; Parent Loop BB0_3 Depth=1 ; => This Inner Loop Header: Depth=2 ldur w8, [x29, #-24] subs w8, w8, #1 cset w8, le tbnz w8, #0, LBB0_14 b LBB0_8 LBB0_8: ; in Loop: Header=BB0_7 Depth=2 ldr x9, [sp, #8] ; 8-byte Folded Reload ldur w8, [x29, #-24] mov w10, #2 sdiv w8, w8, w10 stur w8, [x29, #-28] ldursw x8, [x29, #-28] ldr w8, [x9, x8, lsl #2] ldursw x10, [x29, #-24] ldr w9, [x9, x10, lsl #2] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB0_12 b LBB0_9 LBB0_9: ; in Loop: Header=BB0_7 Depth=2 b LBB0_10 LBB0_10: ; in Loop: Header=BB0_7 Depth=2 ldr x9, [sp, #8] ; 8-byte Folded Reload ldursw x8, [x29, #-28] ldr w8, [x9, x8, lsl #2] stur w8, [x29, #-32] ldursw x8, [x29, #-24] ldr w8, [x9, x8, lsl #2] ldursw x10, [x29, #-28] str w8, [x9, x10, lsl #2] ldur w8, [x29, #-32] ldursw x10, [x29, #-24] str w8, [x9, x10, lsl #2] b LBB0_11 LBB0_11: ; in Loop: Header=BB0_7 Depth=2 b LBB0_13 LBB0_12: ; in Loop: Header=BB0_3 Depth=1 b LBB0_14 LBB0_13: ; in Loop: Header=BB0_7 Depth=2 ldur w8, [x29, #-28] stur w8, [x29, #-24] b LBB0_7 LBB0_14: ; in Loop: Header=BB0_3 Depth=1 ldr x9, [sp, #24] ; 8-byte Folded Reload ldr w8, [x9] add w8, w8, #1 str w8, [x9] b LBB0_15 LBB0_15: ; in Loop: Header=BB0_3 Depth=1 b LBB0_33 LBB0_16: ; in Loop: Header=BB0_3 Depth=1 ldur w8, [x29, #-12] subs w8, w8, #2 cset w8, ne tbnz w8, #0, LBB0_18 b LBB0_17 LBB0_17: ; in Loop: Header=BB0_3 Depth=1 ldr x8, [sp, #8] ; 8-byte Folded Reload ldr w9, [x8, #4] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf b LBB0_32 LBB0_18: ; in Loop: Header=BB0_3 Depth=1 b LBB0_19 LBB0_19: ; in Loop: Header=BB0_3 Depth=1 ldr x9, [sp, #8] ; 8-byte Folded Reload ldr x8, [sp, #16] ; 8-byte Folded Reload mov w10, #1 stur w10, [x29, #-36] ldr w10, [x8] subs w10, w10, #1 str w10, [x8] ldrsw x8, [x8] ldr w8, [x9, x8, lsl #2] str w8, [x9, #4] b LBB0_20 LBB0_20: ; Parent Loop BB0_3 Depth=1 ; => This Inner Loop Header: Depth=2 ldr x8, [sp, #16] ; 8-byte Folded Reload ldur w9, [x29, #-36] ldr w8, [x8] subs w8, w8, w9, lsl #1 cset w8, le tbnz w8, #0, LBB0_30 b LBB0_21 LBB0_21: ; in Loop: Header=BB0_20 Depth=2 ldr x9, [sp, #16] ; 8-byte Folded Reload ldur w8, [x29, #-36] lsl w8, w8, #1 str w8, [sp, #40] ldr w8, [sp, #40] add w8, w8, #1 ldr w9, [x9] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_24 b LBB0_22 LBB0_22: ; in Loop: Header=BB0_20 Depth=2 ldr x9, [sp, #8] ; 8-byte Folded Reload ldr w8, [sp, #40] add w8, w8, #1 ldr w8, [x9, w8, sxtw #2] ldrsw x10, [sp, #40] ldr w9, [x9, x10, lsl #2] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_24 b LBB0_23 LBB0_23: ; in Loop: Header=BB0_20 Depth=2 ldr w8, [sp, #40] add w8, w8, #1 str w8, [sp, #40] b LBB0_24 LBB0_24: ; in Loop: Header=BB0_20 Depth=2 ldr x9, [sp, #8] ; 8-byte Folded Reload ldrsw x8, [sp, #40] ldr w8, [x9, x8, lsl #2] ldursw x10, [x29, #-36] ldr w9, [x9, x10, lsl #2] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_28 b LBB0_25 LBB0_25: ; in Loop: Header=BB0_20 Depth=2 b LBB0_26 LBB0_26: ; in Loop: Header=BB0_20 Depth=2 ldr x9, [sp, #8] ; 8-byte Folded Reload ldrsw x8, [sp, #40] ldr w8, [x9, x8, lsl #2] str w8, [sp, #36] ldursw x8, [x29, #-36] ldr w8, [x9, x8, lsl #2] ldrsw x10, [sp, #40] str w8, [x9, x10, lsl #2] ldr w8, [sp, #36] ldursw x10, [x29, #-36] str w8, [x9, x10, lsl #2] b LBB0_27 LBB0_27: ; in Loop: Header=BB0_20 Depth=2 b LBB0_29 LBB0_28: ; in Loop: Header=BB0_3 Depth=1 b LBB0_30 LBB0_29: ; in Loop: Header=BB0_20 Depth=2 ldr w8, [sp, #40] stur w8, [x29, #-36] b LBB0_20 LBB0_30: ; in Loop: Header=BB0_3 Depth=1 ldr x9, [sp, #24] ; 8-byte Folded Reload ldr w8, [x9] subs w8, w8, #1 str w8, [x9] b LBB0_31 LBB0_31: ; in Loop: Header=BB0_3 Depth=1 b LBB0_32 LBB0_32: ; in Loop: Header=BB0_3 Depth=1 b LBB0_33 LBB0_33: ; in Loop: Header=BB0_3 Depth=1 b LBB0_3 LBB0_34: mov w0, #0 ldp x29, x30, [sp, #80] ; 16-byte Folded Reload add sp, sp, #96 ret .cfi_endproc ; -- End function .comm _H,4000044,2 ; @H .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d" l_.str.1: ; @.str.1 .asciz "%d\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movl $0, -4(%rbp) ## %bb.1: movq _H@GOTPCREL(%rip), %rax movl $1, 4000036(%rax) movq _H@GOTPCREL(%rip), %rax movl $0, 4000040(%rax) ## %bb.2: leaq L_.str(%rip), %rdi leaq -8(%rbp), %rsi movb $0, %al callq _scanf LBB0_3: ## =>This Loop Header: Depth=1 ## Child Loop BB0_7 Depth 2 ## Child Loop BB0_20 Depth 2 movl -8(%rbp), %eax movl %eax, %ecx addl $-1, %ecx movl %ecx, -8(%rbp) cmpl $0, %eax je LBB0_34 ## %bb.4: ## in Loop: Header=BB0_3 Depth=1 leaq L_.str(%rip), %rdi leaq -12(%rbp), %rsi movb $0, %al callq _scanf cmpl $1, -12(%rbp) jne LBB0_16 ## %bb.5: ## in Loop: Header=BB0_3 Depth=1 leaq L_.str(%rip), %rdi leaq -16(%rbp), %rsi movb $0, %al callq _scanf ## %bb.6: ## in Loop: Header=BB0_3 Depth=1 movl -16(%rbp), %eax movl %eax, -20(%rbp) movq _H@GOTPCREL(%rip), %rax movl 4000036(%rax), %eax movl %eax, -24(%rbp) movl -20(%rbp), %edx movq _H@GOTPCREL(%rip), %rax movl 4000036(%rax), %eax movl %eax, %esi addl $1, %esi movq _H@GOTPCREL(%rip), %rcx movl %esi, 4000036(%rcx) movslq %eax, %rcx movq _H@GOTPCREL(%rip), %rax movl %edx, (%rax,%rcx,4) LBB0_7: ## Parent Loop BB0_3 Depth=1 ## => This Inner Loop Header: Depth=2 cmpl $1, -24(%rbp) jle LBB0_14 ## %bb.8: ## in Loop: Header=BB0_7 Depth=2 movl -24(%rbp), %eax movl $2, %ecx cltd idivl %ecx movl %eax, -28(%rbp) movslq -28(%rbp), %rcx movq _H@GOTPCREL(%rip), %rax movl (%rax,%rcx,4), %eax movslq -24(%rbp), %rdx movq _H@GOTPCREL(%rip), %rcx cmpl (%rcx,%rdx,4), %eax jle LBB0_12 ## %bb.9: ## in Loop: Header=BB0_7 Depth=2 jmp LBB0_10 LBB0_10: ## in Loop: Header=BB0_7 Depth=2 movslq -28(%rbp), %rcx movq _H@GOTPCREL(%rip), %rax movl (%rax,%rcx,4), %eax movl %eax, -32(%rbp) movslq -24(%rbp), %rcx movq _H@GOTPCREL(%rip), %rax movl (%rax,%rcx,4), %edx movslq -28(%rbp), %rcx movq _H@GOTPCREL(%rip), %rax movl %edx, (%rax,%rcx,4) movl -32(%rbp), %edx movslq -24(%rbp), %rcx movq _H@GOTPCREL(%rip), %rax movl %edx, (%rax,%rcx,4) ## %bb.11: ## in Loop: Header=BB0_7 Depth=2 jmp LBB0_13 LBB0_12: ## in Loop: Header=BB0_3 Depth=1 jmp LBB0_14 LBB0_13: ## in Loop: Header=BB0_7 Depth=2 movl -28(%rbp), %eax movl %eax, -24(%rbp) jmp LBB0_7 LBB0_14: ## in Loop: Header=BB0_3 Depth=1 movq _H@GOTPCREL(%rip), %rax movl 4000040(%rax), %ecx addl $1, %ecx movq _H@GOTPCREL(%rip), %rax movl %ecx, 4000040(%rax) ## %bb.15: ## in Loop: Header=BB0_3 Depth=1 jmp LBB0_33 LBB0_16: ## in Loop: Header=BB0_3 Depth=1 cmpl $2, -12(%rbp) jne LBB0_18 ## %bb.17: ## in Loop: Header=BB0_3 Depth=1 movq _H@GOTPCREL(%rip), %rax movl 4(%rax), %esi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf jmp LBB0_32 LBB0_18: ## in Loop: Header=BB0_3 Depth=1 jmp LBB0_19 LBB0_19: ## in Loop: Header=BB0_3 Depth=1 movl $1, -36(%rbp) movq _H@GOTPCREL(%rip), %rax movl 4000036(%rax), %ecx addl $-1, %ecx movq _H@GOTPCREL(%rip), %rax movl %ecx, 4000036(%rax) movq _H@GOTPCREL(%rip), %rax movslq 4000036(%rax), %rcx movq _H@GOTPCREL(%rip), %rax movl (%rax,%rcx,4), %ecx movq _H@GOTPCREL(%rip), %rax movl %ecx, 4(%rax) LBB0_20: ## Parent Loop BB0_3 Depth=1 ## => This Inner Loop Header: Depth=2 movl -36(%rbp), %eax shll $1, %eax movq _H@GOTPCREL(%rip), %rcx cmpl 4000036(%rcx), %eax jge LBB0_30 ## %bb.21: ## in Loop: Header=BB0_20 Depth=2 movl -36(%rbp), %eax shll $1, %eax movl %eax, -40(%rbp) movl -40(%rbp), %eax addl $1, %eax movq _H@GOTPCREL(%rip), %rcx cmpl 4000036(%rcx), %eax jge LBB0_24 ## %bb.22: ## in Loop: Header=BB0_20 Depth=2 movl -40(%rbp), %eax addl $1, %eax movslq %eax, %rcx movq _H@GOTPCREL(%rip), %rax movl (%rax,%rcx,4), %eax movslq -40(%rbp), %rdx movq _H@GOTPCREL(%rip), %rcx cmpl (%rcx,%rdx,4), %eax jge LBB0_24 ## %bb.23: ## in Loop: Header=BB0_20 Depth=2 movl -40(%rbp), %eax addl $1, %eax movl %eax, -40(%rbp) LBB0_24: ## in Loop: Header=BB0_20 Depth=2 movslq -40(%rbp), %rcx movq _H@GOTPCREL(%rip), %rax movl (%rax,%rcx,4), %eax movslq -36(%rbp), %rdx movq _H@GOTPCREL(%rip), %rcx cmpl (%rcx,%rdx,4), %eax jge LBB0_28 ## %bb.25: ## in Loop: Header=BB0_20 Depth=2 jmp LBB0_26 LBB0_26: ## in Loop: Header=BB0_20 Depth=2 movslq -40(%rbp), %rcx movq _H@GOTPCREL(%rip), %rax movl (%rax,%rcx,4), %eax movl %eax, -44(%rbp) movslq -36(%rbp), %rcx movq _H@GOTPCREL(%rip), %rax movl (%rax,%rcx,4), %edx movslq -40(%rbp), %rcx movq _H@GOTPCREL(%rip), %rax movl %edx, (%rax,%rcx,4) movl -44(%rbp), %edx movslq -36(%rbp), %rcx movq _H@GOTPCREL(%rip), %rax movl %edx, (%rax,%rcx,4) ## %bb.27: ## in Loop: Header=BB0_20 Depth=2 jmp LBB0_29 LBB0_28: ## in Loop: Header=BB0_3 Depth=1 jmp LBB0_30 LBB0_29: ## in Loop: Header=BB0_20 Depth=2 movl -40(%rbp), %eax movl %eax, -36(%rbp) jmp LBB0_20 LBB0_30: ## in Loop: Header=BB0_3 Depth=1 movq _H@GOTPCREL(%rip), %rax movl 4000040(%rax), %ecx addl $-1, %ecx movq _H@GOTPCREL(%rip), %rax movl %ecx, 4000040(%rax) ## %bb.31: ## in Loop: Header=BB0_3 Depth=1 jmp LBB0_32 LBB0_32: ## in Loop: Header=BB0_3 Depth=1 jmp LBB0_33 LBB0_33: ## in Loop: Header=BB0_3 Depth=1 jmp LBB0_3 LBB0_34: xorl %eax, %eax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .comm _H,4000044,2 ## @H .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d" L_.str.1: ## @.str.1 .asciz "%d\n" .subsections_via_symbols
the_stack_data/63797.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/951641.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #96 .cfi_def_cfa_offset 96 stp x29, x30, [sp, #80] ; 16-byte Folded Spill add x29, sp, #80 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, _a@GOTPAGE ldr x8, [x8, _a@GOTPAGEOFF] str x8, [sp, #16] ; 8-byte Folded Spill stur wzr, [x29, #-4] mov x9, sp sub x8, x29, #8 str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _scanf stur wzr, [x29, #-28] b LBB0_1 LBB0_1: ; =>This Loop Header: Depth=1 ; Child Loop BB0_3 Depth 2 ; Child Loop BB0_5 Depth 3 ; Child Loop BB0_11 Depth 2 ldur w8, [x29, #-28] ldur w9, [x29, #-8] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_16 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 str xzr, [sp, #40] mov x9, sp sub x8, x29, #32 str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf mov w8, #1 stur w8, [x29, #-20] b LBB0_3 LBB0_3: ; Parent Loop BB0_1 Depth=1 ; => This Loop Header: Depth=2 ; Child Loop BB0_5 Depth 3 ldur w8, [x29, #-20] ldur w9, [x29, #-32] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_10 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_3 Depth=2 mov w8, #1 stur w8, [x29, #-24] b LBB0_5 LBB0_5: ; Parent Loop BB0_1 Depth=1 ; Parent Loop BB0_3 Depth=2 ; => This Inner Loop Header: Depth=3 ldur w8, [x29, #-24] ldur w9, [x29, #-32] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_8 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_5 Depth=3 mov x9, sp add x8, sp, #24 str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _scanf ldr x9, [sp, #16] ; 8-byte Folded Reload ldur w8, [x29, #-20] ldr x10, [sp, #24] lsl x10, x10, #3 str w8, [x9, x10] ldur w8, [x29, #-24] ldr x10, [sp, #24] add x9, x9, x10, lsl #3 str w8, [x9, #4] b LBB0_7 LBB0_7: ; in Loop: Header=BB0_5 Depth=3 ldur w8, [x29, #-24] add w8, w8, #1 stur w8, [x29, #-24] b LBB0_5 LBB0_8: ; in Loop: Header=BB0_3 Depth=2 b LBB0_9 LBB0_9: ; in Loop: Header=BB0_3 Depth=2 ldur w8, [x29, #-20] add w8, w8, #1 stur w8, [x29, #-20] b LBB0_3 LBB0_10: ; in Loop: Header=BB0_1 Depth=1 mov x8, #1 str x8, [sp, #32] b LBB0_11 LBB0_11: ; Parent Loop BB0_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr x8, [sp, #32] ldur w9, [x29, #-32] ldur w10, [x29, #-32] mul w9, w9, w10 subs w9, w9, #1 subs x8, x8, w9, sxtw cset w8, gt tbnz w8, #0, LBB0_14 b LBB0_12 LBB0_12: ; in Loop: Header=BB0_11 Depth=2 ldr x9, [sp, #16] ; 8-byte Folded Reload ldr x8, [sp, #32] lsl x8, x8, #3 ldr w8, [x9, x8] ldr x10, [sp, #32] add x10, x10, #1 lsl x10, x10, #3 ldr w9, [x9, x10] subs w0, w8, w9 bl _abs ldr x9, [sp, #16] ; 8-byte Folded Reload stur w0, [x29, #-12] ldr x10, [sp, #32] mov x8, x9 add x8, x8, x10, lsl #3 ldr w8, [x8, #4] ldr x10, [sp, #32] add x10, x10, #1 add x9, x9, x10, lsl #3 ldr w9, [x9, #4] subs w0, w8, w9 bl _abs stur w0, [x29, #-16] ldr x8, [sp, #40] ldursw x9, [x29, #-12] add x8, x8, x9 ldursw x9, [x29, #-16] add x8, x8, x9 str x8, [sp, #40] b LBB0_13 LBB0_13: ; in Loop: Header=BB0_11 Depth=2 ldr x8, [sp, #32] add x8, x8, #1 str x8, [sp, #32] b LBB0_11 LBB0_14: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #40] mov x9, sp str x8, [x9] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf b LBB0_15 LBB0_15: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-28] add w8, w8, #1 stur w8, [x29, #-28] b LBB0_1 LBB0_16: mov w0, #0 ldp x29, x30, [sp, #80] ; 16-byte Folded Reload add sp, sp, #96 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d" l_.str.1: ; @.str.1 .asciz "%d " l_.str.2: ; @.str.2 .asciz "%ld" .comm _a,2000016,2 ; @a l_.str.3: ; @.str.3 .asciz "\n%ld\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) leaq L_.str(%rip), %rdi leaq -8(%rbp), %rsi movb $0, %al callq _scanf movl $0, -28(%rbp) LBB0_1: ## =>This Loop Header: Depth=1 ## Child Loop BB0_3 Depth 2 ## Child Loop BB0_5 Depth 3 ## Child Loop BB0_11 Depth 2 movl -28(%rbp), %eax cmpl -8(%rbp), %eax jge LBB0_16 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movq $0, -40(%rbp) leaq L_.str.1(%rip), %rdi leaq -32(%rbp), %rsi movb $0, %al callq _scanf movl $1, -20(%rbp) LBB0_3: ## Parent Loop BB0_1 Depth=1 ## => This Loop Header: Depth=2 ## Child Loop BB0_5 Depth 3 movl -20(%rbp), %eax cmpl -32(%rbp), %eax jg LBB0_10 ## %bb.4: ## in Loop: Header=BB0_3 Depth=2 movl $1, -24(%rbp) LBB0_5: ## Parent Loop BB0_1 Depth=1 ## Parent Loop BB0_3 Depth=2 ## => This Inner Loop Header: Depth=3 movl -24(%rbp), %eax cmpl -32(%rbp), %eax jg LBB0_8 ## %bb.6: ## in Loop: Header=BB0_5 Depth=3 leaq L_.str.2(%rip), %rdi leaq -56(%rbp), %rsi movb $0, %al callq _scanf movl -20(%rbp), %edx movq -56(%rbp), %rcx movq _a@GOTPCREL(%rip), %rax movl %edx, (%rax,%rcx,8) movl -24(%rbp), %edx movq -56(%rbp), %rcx movq _a@GOTPCREL(%rip), %rax movl %edx, 4(%rax,%rcx,8) ## %bb.7: ## in Loop: Header=BB0_5 Depth=3 movl -24(%rbp), %eax addl $1, %eax movl %eax, -24(%rbp) jmp LBB0_5 LBB0_8: ## in Loop: Header=BB0_3 Depth=2 jmp LBB0_9 LBB0_9: ## in Loop: Header=BB0_3 Depth=2 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB0_3 LBB0_10: ## in Loop: Header=BB0_1 Depth=1 movq $1, -48(%rbp) LBB0_11: ## Parent Loop BB0_1 Depth=1 ## => This Inner Loop Header: Depth=2 movq -48(%rbp), %rax movl -32(%rbp), %ecx imull -32(%rbp), %ecx subl $1, %ecx movslq %ecx, %rcx cmpq %rcx, %rax jg LBB0_14 ## %bb.12: ## in Loop: Header=BB0_11 Depth=2 movq -48(%rbp), %rcx movq _a@GOTPCREL(%rip), %rax movl (%rax,%rcx,8), %edi movq -48(%rbp), %rcx movq _a@GOTPCREL(%rip), %rax subl 8(%rax,%rcx,8), %edi callq _abs movl %eax, -12(%rbp) movq -48(%rbp), %rcx movq _a@GOTPCREL(%rip), %rax movl 4(%rax,%rcx,8), %edi movq -48(%rbp), %rcx movq _a@GOTPCREL(%rip), %rax subl 12(%rax,%rcx,8), %edi callq _abs movl %eax, -16(%rbp) movq -40(%rbp), %rax movslq -12(%rbp), %rcx addq %rcx, %rax movslq -16(%rbp), %rcx addq %rcx, %rax movq %rax, -40(%rbp) ## %bb.13: ## in Loop: Header=BB0_11 Depth=2 movq -48(%rbp), %rax addq $1, %rax movq %rax, -48(%rbp) jmp LBB0_11 LBB0_14: ## in Loop: Header=BB0_1 Depth=1 movq -40(%rbp), %rsi leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf ## %bb.15: ## in Loop: Header=BB0_1 Depth=1 movl -28(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) jmp LBB0_1 LBB0_16: xorl %eax, %eax addq $64, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d" L_.str.1: ## @.str.1 .asciz "%d " L_.str.2: ## @.str.2 .asciz "%ld" .comm _a,2000016,4 ## @a L_.str.3: ## @.str.3 .asciz "\n%ld\n" .subsections_via_symbols
the_stack_data/50136731.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _range ; -- Begin function range .p2align 2 _range: ; @range .cfi_startproc ; %bb.0: sub sp, sp, #352 .cfi_def_cfa_offset 352 stp x28, x27, [sp, #320] ; 16-byte Folded Spill stp x29, x30, [sp, #336] ; 16-byte Folded Spill add x29, sp, #336 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w27, -24 .cfi_offset w28, -32 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] str x0, [sp, #40] ldr x0, [sp, #40] adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF bl _fopen str x0, [sp, #32] ldr x8, [sp, #32] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: mov w8, #-1 str w8, [sp, #52] b LBB0_12 LBB0_2: mov w8, #2147483647 str w8, [sp, #28] mov w8, #-2147483648 str w8, [sp, #24] b LBB0_3 LBB0_3: ; =>This Inner Loop Header: Depth=1 ldr x2, [sp, #32] add x0, sp, #56 mov w1, #256 bl _fgets subs x8, x0, #0 cset w8, eq tbnz w8, #0, LBB0_11 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_3 Depth=1 add x0, sp, #56 strb wzr, [sp, #311] bl _atoi str w0, [sp, #20] ldr w8, [sp, #28] ldr w9, [sp, #20] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_3 Depth=1 ldr w8, [sp, #20] str w8, [sp, #16] ; 4-byte Folded Spill b LBB0_7 LBB0_6: ; in Loop: Header=BB0_3 Depth=1 ldr w8, [sp, #28] str w8, [sp, #16] ; 4-byte Folded Spill b LBB0_7 LBB0_7: ; in Loop: Header=BB0_3 Depth=1 ldr w8, [sp, #16] ; 4-byte Folded Reload str w8, [sp, #28] ldr w8, [sp, #24] ldr w9, [sp, #20] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_9 b LBB0_8 LBB0_8: ; in Loop: Header=BB0_3 Depth=1 ldr w8, [sp, #20] str w8, [sp, #12] ; 4-byte Folded Spill b LBB0_10 LBB0_9: ; in Loop: Header=BB0_3 Depth=1 ldr w8, [sp, #24] str w8, [sp, #12] ; 4-byte Folded Spill b LBB0_10 LBB0_10: ; in Loop: Header=BB0_3 Depth=1 ldr w8, [sp, #12] ; 4-byte Folded Reload str w8, [sp, #24] b LBB0_3 LBB0_11: ldr x0, [sp, #32] bl _fclose ldr w8, [sp, #24] ldr w9, [sp, #28] subs w8, w8, w9 str w8, [sp, #52] b LBB0_12 LBB0_12: ldr w8, [sp, #52] str w8, [sp, #8] ; 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_14 b LBB0_13 LBB0_13: bl ___stack_chk_fail LBB0_14: ldr w0, [sp, #8] ; 4-byte Folded Reload ldp x29, x30, [sp, #336] ; 16-byte Folded Reload ldp x28, x27, [sp, #320] ; 16-byte Folded Reload add sp, sp, #352 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "r" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _range ## -- Begin function range .p2align 4, 0x90 _range: ## @range .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $320, %rsp ## imm = 0x140 movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movq %rdi, -288(%rbp) movq -288(%rbp), %rdi leaq L_.str(%rip), %rsi callq _fopen movq %rax, -296(%rbp) cmpq $0, -296(%rbp) jne LBB0_2 ## %bb.1: movl $-1, -276(%rbp) jmp LBB0_12 LBB0_2: movl $2147483647, -300(%rbp) ## imm = 0x7FFFFFFF movl $-2147483648, -304(%rbp) ## imm = 0x80000000 LBB0_3: ## =>This Inner Loop Header: Depth=1 leaq -272(%rbp), %rdi movq -296(%rbp), %rdx movl $256, %esi ## imm = 0x100 callq _fgets cmpq $0, %rax je LBB0_11 ## %bb.4: ## in Loop: Header=BB0_3 Depth=1 movb $0, -17(%rbp) leaq -272(%rbp), %rdi callq _atoi movl %eax, -308(%rbp) movl -300(%rbp), %eax cmpl -308(%rbp), %eax jle LBB0_6 ## %bb.5: ## in Loop: Header=BB0_3 Depth=1 movl -308(%rbp), %eax movl %eax, -312(%rbp) ## 4-byte Spill jmp LBB0_7 LBB0_6: ## in Loop: Header=BB0_3 Depth=1 movl -300(%rbp), %eax movl %eax, -312(%rbp) ## 4-byte Spill LBB0_7: ## in Loop: Header=BB0_3 Depth=1 movl -312(%rbp), %eax ## 4-byte Reload movl %eax, -300(%rbp) movl -304(%rbp), %eax cmpl -308(%rbp), %eax jge LBB0_9 ## %bb.8: ## in Loop: Header=BB0_3 Depth=1 movl -308(%rbp), %eax movl %eax, -316(%rbp) ## 4-byte Spill jmp LBB0_10 LBB0_9: ## in Loop: Header=BB0_3 Depth=1 movl -304(%rbp), %eax movl %eax, -316(%rbp) ## 4-byte Spill LBB0_10: ## in Loop: Header=BB0_3 Depth=1 movl -316(%rbp), %eax ## 4-byte Reload movl %eax, -304(%rbp) jmp LBB0_3 LBB0_11: movq -296(%rbp), %rdi callq _fclose movl -304(%rbp), %eax subl -300(%rbp), %eax movl %eax, -276(%rbp) LBB0_12: movl -276(%rbp), %eax movl %eax, -320(%rbp) ## 4-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_14 ## %bb.13: movl -320(%rbp), %eax ## 4-byte Reload addq $320, %rsp ## imm = 0x140 popq %rbp retq LBB0_14: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "r" .subsections_via_symbols
the_stack_data/1075848.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _trim ; -- Begin function trim .p2align 2 _trim: ; @trim .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #8] ldr x0, [sp, #8] bl _strlen subs x8, x0, #1 str x8, [sp] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #8] ldr x9, [sp] ldrsb w8, [x8, x9] subs w8, w8, #10 cset w8, ne 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 ldr x8, [sp, #8] ldr x9, [sp] subs x10, x9, #1 str x10, [sp] add x8, x8, x9 strb wzr, [x8] b LBB0_1 LBB0_4: ldr x0, [sp, #8] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #160 .cfi_def_cfa_offset 160 stp x29, x30, [sp, #144] ; 16-byte Folded Spill add x29, sp, #144 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] ; kill: def $x8 killed $xzr stur xzr, [x29, #-16] stur xzr, [x29, #-24] 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, #-40] ldur x8, [x29, #-40] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: mov w8, #1 stur w8, [x29, #-4] b LBB1_12 LBB1_2: adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF adrp x1, l_.str.3@PAGE add x1, x1, l_.str.3@PAGEOFF bl _fopen stur x0, [x29, #-48] ldur x8, [x29, #-48] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB1_4 b LBB1_3 LBB1_3: mov w8, #1 stur w8, [x29, #-4] b LBB1_12 LBB1_4: ldur x2, [x29, #-40] sub x0, x29, #16 sub x1, x29, #24 bl _getline adds x8, x0, #1 cset w8, ne tbnz w8, #0, LBB1_6 b LBB1_5 LBB1_5: mov w0, #1 bl _exit LBB1_6: ldur x1, [x29, #-48] adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _fputs stur xzr, [x29, #-56] b LBB1_7 LBB1_7: ; =>This Inner Loop Header: Depth=1 ldur x2, [x29, #-40] sub x0, x29, #16 sub x1, x29, #24 bl _getline stur x0, [x29, #-32] adds x8, x0, #1 cset w8, eq tbnz w8, #0, LBB1_11 b LBB1_8 LBB1_8: ; in Loop: Header=BB1_7 Depth=1 ldur x0, [x29, #-16] adrp x1, l_.str.5@PAGE add x1, x1, l_.str.5@PAGEOFF str x1, [sp, #40] ; 8-byte Folded Spill bl _strtok ldr x1, [sp, #40] ; 8-byte Folded Reload stur x0, [x29, #-64] mov x0, #0 str x0, [sp, #48] ; 8-byte Folded Spill bl _strtok ldr x1, [sp, #40] ; 8-byte Folded Reload mov x8, x0 ldr x0, [sp, #48] ; 8-byte Folded Reload str x8, [sp, #72] bl _strtok ldr x1, [sp, #40] ; 8-byte Folded Reload mov x8, x0 ldr x0, [sp, #48] ; 8-byte Folded Reload str x8, [sp, #64] bl _strtok str x0, [sp, #56] ldr x8, [sp, #56] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB1_10 b LBB1_9 LBB1_9: ; in Loop: Header=BB1_7 Depth=1 ldr x8, [sp, #64] str x8, [sp, #56] adrp x8, l_.str.6@PAGE add x8, x8, l_.str.6@PAGEOFF str x8, [sp, #64] b LBB1_10 LBB1_10: ; in Loop: Header=BB1_7 Depth=1 ldr x0, [sp, #56] bl _trim ldur x0, [x29, #-48] ldur x12, [x29, #-64] ldr x11, [sp, #72] ldr x10, [sp, #64] ldr x8, [sp, #56] mov x9, sp str x12, [x9] str x11, [x9, #8] str x10, [x9, #16] str x8, [x9, #24] adrp x1, l_.str.7@PAGE add x1, x1, l_.str.7@PAGEOFF bl _fprintf ldur x8, [x29, #-56] add x8, x8, #1 stur x8, [x29, #-56] b LBB1_7 LBB1_11: ldur x1, [x29, #-48] adrp x0, l_.str.8@PAGE add x0, x0, l_.str.8@PAGEOFF bl _fputs ldur x0, [x29, #-48] ldur x8, [x29, #-56] mov x9, sp str x8, [x9] adrp x1, l_.str.9@PAGE add x1, x1, l_.str.9@PAGEOFF bl _fprintf ldur x0, [x29, #-40] bl _fclose ldur x0, [x29, #-48] bl _fclose b LBB1_12 LBB1_12: ldur w0, [x29, #-4] ldp x29, x30, [sp, #144] ; 16-byte Folded Reload add sp, sp, #160 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "data.csv" l_.str.1: ; @.str.1 .asciz "r" l_.str.2: ; @.str.2 .asciz "data.h" l_.str.3: ; @.str.3 .asciz "w" l_.str.4: ; @.str.4 .asciz "struct Row {\n\tchar date[20];\n\tfloat price;\n\tfloat dividends;\n\tfloat cpi;\n\tfloat roi;\n};\n\nstruct Row rows[] = {\n" l_.str.5: ; @.str.5 .asciz "," l_.str.6: ; @.str.6 .asciz "0.00" l_.str.7: ; @.str.7 .asciz "\t{ \"%s\", %s, %s, %s }, \n" l_.str.8: ; @.str.8 .asciz "};\n\n" l_.str.9: ; @.str.9 .asciz "#define row_count %ld\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _trim ## -- Begin function trim .p2align 4, 0x90 _trim: ## @trim .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) movq -8(%rbp), %rdi callq _strlen subq $1, %rax movq %rax, -16(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movq -8(%rbp), %rax movq -16(%rbp), %rcx movsbl (%rax,%rcx), %eax cmpl $10, %eax jne LBB0_4 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_3 LBB0_3: ## in Loop: Header=BB0_1 Depth=1 movq -8(%rbp), %rax movq -16(%rbp), %rcx movq %rcx, %rdx addq $-1, %rdx movq %rdx, -16(%rbp) movb $0, (%rax,%rcx) jmp LBB0_1 LBB0_4: movq -8(%rbp), %rax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $96, %rsp movl $0, -4(%rbp) movq $0, -16(%rbp) movq $0, -24(%rbp) leaq L_.str(%rip), %rdi leaq L_.str.1(%rip), %rsi callq _fopen movq %rax, -40(%rbp) cmpq $0, -40(%rbp) jne LBB1_2 ## %bb.1: movl $1, -4(%rbp) jmp LBB1_12 LBB1_2: leaq L_.str.2(%rip), %rdi leaq L_.str.3(%rip), %rsi callq _fopen movq %rax, -48(%rbp) cmpq $0, -48(%rbp) jne LBB1_4 ## %bb.3: movl $1, -4(%rbp) jmp LBB1_12 LBB1_4: movq -40(%rbp), %rdx leaq -16(%rbp), %rdi leaq -24(%rbp), %rsi callq _getline cmpq $-1, %rax jne LBB1_6 ## %bb.5: movl $1, %edi callq _exit LBB1_6: movq -48(%rbp), %rsi leaq L_.str.4(%rip), %rdi callq _fputs movq $0, -56(%rbp) LBB1_7: ## =>This Inner Loop Header: Depth=1 movq -40(%rbp), %rdx leaq -16(%rbp), %rdi leaq -24(%rbp), %rsi callq _getline movq %rax, -32(%rbp) cmpq $-1, %rax je LBB1_11 ## %bb.8: ## in Loop: Header=BB1_7 Depth=1 movq -16(%rbp), %rdi leaq L_.str.5(%rip), %rsi callq _strtok movq %rax, -64(%rbp) xorl %eax, %eax movl %eax, %edi leaq L_.str.5(%rip), %rsi callq _strtok movq %rax, -72(%rbp) xorl %eax, %eax movl %eax, %edi leaq L_.str.5(%rip), %rsi callq _strtok movq %rax, -80(%rbp) xorl %eax, %eax movl %eax, %edi leaq L_.str.5(%rip), %rsi callq _strtok movq %rax, -88(%rbp) cmpq $0, -88(%rbp) jne LBB1_10 ## %bb.9: ## in Loop: Header=BB1_7 Depth=1 movq -80(%rbp), %rax movq %rax, -88(%rbp) leaq L_.str.6(%rip), %rax movq %rax, -80(%rbp) LBB1_10: ## in Loop: Header=BB1_7 Depth=1 movq -88(%rbp), %rdi callq _trim movq -48(%rbp), %rdi movq -64(%rbp), %rdx movq -72(%rbp), %rcx movq -80(%rbp), %r8 movq -88(%rbp), %r9 leaq L_.str.7(%rip), %rsi movb $0, %al callq _fprintf movq -56(%rbp), %rax addq $1, %rax movq %rax, -56(%rbp) jmp LBB1_7 LBB1_11: movq -48(%rbp), %rsi leaq L_.str.8(%rip), %rdi callq _fputs movq -48(%rbp), %rdi movq -56(%rbp), %rdx leaq L_.str.9(%rip), %rsi movb $0, %al callq _fprintf movq -40(%rbp), %rdi callq _fclose movq -48(%rbp), %rdi callq _fclose LBB1_12: movl -4(%rbp), %eax addq $96, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "data.csv" L_.str.1: ## @.str.1 .asciz "r" L_.str.2: ## @.str.2 .asciz "data.h" L_.str.3: ## @.str.3 .asciz "w" L_.str.4: ## @.str.4 .asciz "struct Row {\n\tchar date[20];\n\tfloat price;\n\tfloat dividends;\n\tfloat cpi;\n\tfloat roi;\n};\n\nstruct Row rows[] = {\n" L_.str.5: ## @.str.5 .asciz "," L_.str.6: ## @.str.6 .asciz "0.00" L_.str.7: ## @.str.7 .asciz "\t{ \"%s\", %s, %s, %s }, \n" L_.str.8: ## @.str.8 .asciz "};\n\n" L_.str.9: ## @.str.9 .asciz "#define row_count %ld\n" .subsections_via_symbols
the_stack_data/107953120.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] stur w0, [x29, #-8] str x1, [sp, #16] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov x9, sp add x8, sp, #15 str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf ldrsb w8, [sp, #15] subs w8, w8, #97 cset w8, eq tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: ldrsb w8, [sp, #15] subs w8, w8, #65 cset w8, ne tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: ldrsb w10, [sp, #15] mov x9, sp ; implicit-def: $x8 mov x8, x10 str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf b LBB0_20 LBB0_3: ldrsb w8, [sp, #15] subs w8, w8, #101 cset w8, eq tbnz w8, #0, LBB0_5 b LBB0_4 LBB0_4: ldrsb w8, [sp, #15] subs w8, w8, #69 cset w8, ne tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: ldrsb w10, [sp, #15] mov x9, sp ; implicit-def: $x8 mov x8, x10 str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf b LBB0_19 LBB0_6: ldrsb w8, [sp, #15] subs w8, w8, #105 cset w8, eq tbnz w8, #0, LBB0_8 b LBB0_7 LBB0_7: ldrsb w8, [sp, #15] subs w8, w8, #73 cset w8, ne tbnz w8, #0, LBB0_9 b LBB0_8 LBB0_8: ldrsb w10, [sp, #15] mov x9, sp ; implicit-def: $x8 mov x8, x10 str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf b LBB0_18 LBB0_9: ldrsb w8, [sp, #15] subs w8, w8, #111 cset w8, eq tbnz w8, #0, LBB0_11 b LBB0_10 LBB0_10: ldrsb w8, [sp, #15] subs w8, w8, #79 cset w8, ne tbnz w8, #0, LBB0_12 b LBB0_11 LBB0_11: ldrsb w10, [sp, #15] mov x9, sp ; implicit-def: $x8 mov x8, x10 str x8, [x9] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf b LBB0_17 LBB0_12: ldrsb w8, [sp, #15] subs w8, w8, #117 cset w8, eq tbnz w8, #0, LBB0_14 b LBB0_13 LBB0_13: ldrsb w8, [sp, #15] subs w8, w8, #85 cset w8, ne tbnz w8, #0, LBB0_15 b LBB0_14 LBB0_14: ldrsb w10, [sp, #15] mov x9, sp ; implicit-def: $x8 mov x8, x10 str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf b LBB0_16 LBB0_15: ldrsb w10, [sp, #15] mov x9, sp ; implicit-def: $x8 mov x8, x10 str x8, [x9] adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf b LBB0_16 LBB0_16: b LBB0_17 LBB0_17: b LBB0_18 LBB0_18: b LBB0_19 LBB0_19: b LBB0_20 LBB0_20: 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 "\nDigite uma letra: " l_.str.1: ; @.str.1 .asciz "%c" l_.str.2: ; @.str.2 .asciz "\nA letra %c e uma VOGAL." l_.str.3: ; @.str.3 .asciz "\nA letra %c uma VOGAL." l_.str.4: ; @.str.4 .asciz "\nA letra %c NAO E uma VOGAL." .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) leaq L_.str(%rip), %rdi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi leaq -17(%rbp), %rsi movb $0, %al callq _scanf movsbl -17(%rbp), %eax cmpl $97, %eax je LBB0_2 ## %bb.1: movsbl -17(%rbp), %eax cmpl $65, %eax jne LBB0_3 LBB0_2: movsbl -17(%rbp), %esi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf jmp LBB0_20 LBB0_3: movsbl -17(%rbp), %eax cmpl $101, %eax je LBB0_5 ## %bb.4: movsbl -17(%rbp), %eax cmpl $69, %eax jne LBB0_6 LBB0_5: movsbl -17(%rbp), %esi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf jmp LBB0_19 LBB0_6: movsbl -17(%rbp), %eax cmpl $105, %eax je LBB0_8 ## %bb.7: movsbl -17(%rbp), %eax cmpl $73, %eax jne LBB0_9 LBB0_8: movsbl -17(%rbp), %esi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf jmp LBB0_18 LBB0_9: movsbl -17(%rbp), %eax cmpl $111, %eax je LBB0_11 ## %bb.10: movsbl -17(%rbp), %eax cmpl $79, %eax jne LBB0_12 LBB0_11: movsbl -17(%rbp), %esi leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf jmp LBB0_17 LBB0_12: movsbl -17(%rbp), %eax cmpl $117, %eax je LBB0_14 ## %bb.13: movsbl -17(%rbp), %eax cmpl $85, %eax jne LBB0_15 LBB0_14: movsbl -17(%rbp), %esi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf jmp LBB0_16 LBB0_15: movsbl -17(%rbp), %esi leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf LBB0_16: jmp LBB0_17 LBB0_17: jmp LBB0_18 LBB0_18: jmp LBB0_19 LBB0_19: jmp LBB0_20 LBB0_20: xorl %eax, %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "\nDigite uma letra: " L_.str.1: ## @.str.1 .asciz "%c" L_.str.2: ## @.str.2 .asciz "\nA letra %c e uma VOGAL." L_.str.3: ## @.str.3 .asciz "\nA letra %c uma VOGAL." L_.str.4: ## @.str.4 .asciz "\nA letra %c NAO E uma VOGAL." .subsections_via_symbols
the_stack_data/100140271.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/92324213.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 0x400451eb851eb852 ; double 2.54 lCPI0_1: .quad 0x403e7ae147ae147b ; double 30.48 .section __TEXT,__text,regular,pure_instructions .globl _main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] stur w0, [x29, #-8] stur x1, [x29, #-16] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf mov x9, sp add x8, sp, #20 str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _scanf b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr s0, [sp, #20] fcmp s0, #0.0 cset w8, le tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 add x8, sp, #20 str x8, [sp, #8] ; 8-byte Folded Spill ldr s0, [sp, #20] fcvt d0, s0 adrp x8, lCPI0_1@PAGE ldr d1, [x8, lCPI0_1@PAGEOFF] fdiv d0, d0, d1 fcvtzs w8, d0 stur w8, [x29, #-20] ldr s0, [sp, #20] fcvt d2, s0 ldur s3, [x29, #-20] ; implicit-def: $d0 fmov s0, s3 sshll.2d v0, v0, #0 ; kill: def $d0 killed $d0 killed $q0 scvtf d0, d0 fmsub d0, d0, d1, d2 adrp x8, lCPI0_0@PAGE ldr d1, [x8, lCPI0_0@PAGEOFF] fdiv d0, d0, d1 fcvt s0, d0 str s0, [sp, #24] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf ldr x8, [sp, #8] ; 8-byte Folded Reload mov x9, sp str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _scanf b LBB0_1 LBB0_3: adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf mov w0, #0 ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "CONVERT CM TO INCHES!\n" l_.str.1: ; @.str.1 .asciz "Enter the height in centimeters:" l_.str.2: ; @.str.2 .asciz "%f" l_.str.3: ; @.str.3 .asciz "Enter the height in centimeters( <=0 To QUIT ):" l_.str.4: ; @.str.4 .asciz "PROGRAM EXIT!\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 0x400451eb851eb852 ## double 2.54 LCPI0_1: .quad 0x403e7ae147ae147b ## double 30.48 .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 leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf leaq L_.str.2(%rip), %rdi leaq -28(%rbp), %rsi movb $0, %al callq _scanf LBB0_1: ## =>This Inner Loop Header: Depth=1 movss -28(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero xorps %xmm1, %xmm1 ucomiss %xmm1, %xmm0 jbe LBB0_3 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movss -28(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movsd LCPI0_1(%rip), %xmm1 ## xmm1 = mem[0],zero divsd %xmm1, %xmm0 cvttsd2si %xmm0, %eax movl %eax, -20(%rbp) movss -28(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm1 cvtsi2sdl -20(%rbp), %xmm0 movq %xmm0, %rax movabsq $-9223372036854775808, %rcx ## imm = 0x8000000000000000 xorq %rcx, %rax movq %rax, %xmm0 movsd LCPI0_1(%rip), %xmm2 ## xmm2 = mem[0],zero mulsd %xmm2, %xmm0 addsd %xmm1, %xmm0 movsd LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero divsd %xmm1, %xmm0 cvtsd2ss %xmm0, %xmm0 movss %xmm0, -24(%rbp) leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf leaq L_.str.2(%rip), %rdi leaq -28(%rbp), %rsi movb $0, %al callq _scanf jmp LBB0_1 LBB0_3: leaq L_.str.4(%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 "CONVERT CM TO INCHES!\n" L_.str.1: ## @.str.1 .asciz "Enter the height in centimeters:" L_.str.2: ## @.str.2 .asciz "%f" L_.str.3: ## @.str.3 .asciz "Enter the height in centimeters( <=0 To QUIT ):" L_.str.4: ## @.str.4 .asciz "PROGRAM EXIT!\n" .subsections_via_symbols
the_stack_data/154831998.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _shellsort ; -- Begin function shellsort .p2align 2 _shellsort: ; @shellsort .cfi_startproc ; %bb.0: sub sp, sp, #80 .cfi_def_cfa_offset 80 stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp, #64 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] stur w1, [x29, #-12] stur x2, [x29, #-24] stur w3, [x29, #-28] str wzr, [sp, #32] b LBB0_1 LBB0_1: ; =>This Loop Header: Depth=1 ; Child Loop BB0_3 Depth 2 ; Child Loop BB0_5 Depth 3 ldr w8, [sp, #32] ldur w9, [x29, #-28] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_14 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldur x8, [x29, #-24] ldrsw x9, [sp, #32] ldr w8, [x8, x9, lsl #2] str w8, [sp, #20] ldr w8, [sp, #20] str w8, [sp, #28] b LBB0_3 LBB0_3: ; Parent Loop BB0_1 Depth=1 ; => This Loop Header: Depth=2 ; Child Loop BB0_5 Depth 3 ldr w8, [sp, #28] ldur w9, [x29, #-12] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_12 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_3 Depth=2 adrp x9, _shellsort.nc@PAGE ldr w8, [x9, _shellsort.nc@PAGEOFF] add w8, w8, #1 str w8, [x9, _shellsort.nc@PAGEOFF] ldur x8, [x29, #-8] ldrsw x9, [sp, #28] ldr w8, [x8, x9, lsl #2] str w8, [sp, #16] ldr w8, [sp, #28] ldr w9, [sp, #20] subs w8, w8, w9 str w8, [sp, #24] b LBB0_5 LBB0_5: ; Parent Loop BB0_1 Depth=1 ; Parent Loop BB0_3 Depth=2 ; => This Inner Loop Header: Depth=3 ldr w8, [sp, #24] subs w8, w8, #0 cset w8, lt mov w9, #0 str w9, [sp, #12] ; 4-byte Folded Spill tbnz w8, #0, LBB0_7 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_5 Depth=3 ldr w8, [sp, #16] ldur x9, [x29, #-8] ldrsw x10, [sp, #24] ldr w9, [x9, x10, lsl #2] subs w8, w8, w9 cset w8, lt str w8, [sp, #12] ; 4-byte Folded Spill b LBB0_7 LBB0_7: ; in Loop: Header=BB0_5 Depth=3 ldr w8, [sp, #12] ; 4-byte Folded Reload tbz w8, #0, LBB0_10 b LBB0_8 LBB0_8: ; in Loop: Header=BB0_5 Depth=3 ldur x8, [x29, #-8] ldrsw x9, [sp, #24] ldr w8, [x8, x9, lsl #2] ldur x9, [x29, #-8] ldr w10, [sp, #24] ldr w11, [sp, #20] add w10, w10, w11 str w8, [x9, w10, sxtw #2] b LBB0_9 LBB0_9: ; in Loop: Header=BB0_5 Depth=3 ldr w8, [sp, #24] ldr w9, [sp, #20] subs w8, w8, w9 str w8, [sp, #24] b LBB0_5 LBB0_10: ; in Loop: Header=BB0_3 Depth=2 ldr w8, [sp, #16] ldur x9, [x29, #-8] ldr w10, [sp, #24] ldr w11, [sp, #20] add w10, w10, w11 str w8, [x9, w10, sxtw #2] b LBB0_11 LBB0_11: ; in Loop: Header=BB0_3 Depth=2 ldr w8, [sp, #28] add w8, w8, #1 str w8, [sp, #28] b LBB0_3 LBB0_12: ; in Loop: Header=BB0_1 Depth=1 b LBB0_13 LBB0_13: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #32] add w8, w8, #1 str w8, [sp, #32] b LBB0_1 LBB0_14: adrp x8, _shellsort.nc@PAGE ldr w9, [x8, _shellsort.nc@PAGEOFF] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf 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, #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] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf mov x9, sp add x8, sp, #24 str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _scanf adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf str wzr, [sp, #20] b LBB1_1 LBB1_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #20] ldr w9, [sp, #24] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_4 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 ldrsw x9, [sp, #20] add x8, sp, #48 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 _scanf b LBB1_3 LBB1_3: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #20] add w8, w8, #1 str w8, [sp, #20] b LBB1_1 LBB1_4: adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf mov x9, sp add x8, sp, #16 str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _scanf adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf str wzr, [sp, #20] b LBB1_5 LBB1_5: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #20] ldr w9, [sp, #16] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_8 b LBB1_6 LBB1_6: ; in Loop: Header=BB1_5 Depth=1 ldrsw x9, [sp, #20] add x8, sp, #28 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 _scanf b LBB1_7 LBB1_7: ; in Loop: Header=BB1_5 Depth=1 ldr w8, [sp, #20] add w8, w8, #1 str w8, [sp, #20] b LBB1_5 LBB1_8: ldr w1, [sp, #24] ldr w3, [sp, #16] add x0, sp, #48 add x2, sp, #28 bl _shellsort adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _printf str wzr, [sp, #20] b LBB1_9 LBB1_9: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #20] ldr w9, [sp, #24] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_12 b LBB1_10 LBB1_10: ; in Loop: Header=BB1_9 Depth=1 ldrsw x9, [sp, #20] add x8, sp, #48 ldr w9, [x8, x9, lsl #2] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.7@PAGE add x0, x0, l_.str.7@PAGEOFF bl _printf b LBB1_11 LBB1_11: ; in Loop: Header=BB1_9 Depth=1 ldr w8, [sp, #20] add w8, w8, #1 str w8, [sp, #20] b LBB1_9 LBB1_12: ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB1_14 b LBB1_13 LBB1_13: bl ___stack_chk_fail LBB1_14: ldp x29, x30, [sp, #96] ; 16-byte Folded Reload add sp, sp, #112 ret .cfi_endproc ; -- End function .zerofill __DATA,__bss,_shellsort.nc,4,2 ; @shellsort.nc .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "No of Comparisons required %d\n" l_.str.1: ; @.str.1 .asciz "Enter no of elements : " l_.str.2: ; @.str.2 .asciz "%d" l_.str.3: ; @.str.3 .asciz "Enter elements for sorting : " l_.str.4: ; @.str.4 .asciz "Enter no of increments : " l_.str.5: ; @.str.5 .asciz "Enter values of increment : " l_.str.6: ; @.str.6 .asciz "Sorted array is as follows\t" l_.str.7: ; @.str.7 .asciz "%d\t" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _shellsort ## -- Begin function shellsort .p2align 4, 0x90 _shellsort: ## @shellsort .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $64, %rsp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) movq %rdx, -24(%rbp) movl %ecx, -28(%rbp) movl $0, -32(%rbp) LBB0_1: ## =>This Loop Header: Depth=1 ## Child Loop BB0_3 Depth 2 ## Child Loop BB0_5 Depth 3 movl -32(%rbp), %eax cmpl -28(%rbp), %eax jge LBB0_14 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movq -24(%rbp), %rax movslq -32(%rbp), %rcx movl (%rax,%rcx,4), %eax movl %eax, -44(%rbp) movl -44(%rbp), %eax movl %eax, -36(%rbp) LBB0_3: ## Parent Loop BB0_1 Depth=1 ## => This Loop Header: Depth=2 ## Child Loop BB0_5 Depth 3 movl -36(%rbp), %eax cmpl -12(%rbp), %eax jge LBB0_12 ## %bb.4: ## in Loop: Header=BB0_3 Depth=2 movl _shellsort.nc(%rip), %eax addl $1, %eax movl %eax, _shellsort.nc(%rip) movq -8(%rbp), %rax movslq -36(%rbp), %rcx movl (%rax,%rcx,4), %eax movl %eax, -48(%rbp) movl -36(%rbp), %eax subl -44(%rbp), %eax movl %eax, -40(%rbp) LBB0_5: ## Parent Loop BB0_1 Depth=1 ## Parent Loop BB0_3 Depth=2 ## => This Inner Loop Header: Depth=3 xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $0, -40(%rbp) movb %al, -49(%rbp) ## 1-byte Spill jl LBB0_7 ## %bb.6: ## in Loop: Header=BB0_5 Depth=3 movl -48(%rbp), %eax movq -8(%rbp), %rcx movslq -40(%rbp), %rdx cmpl (%rcx,%rdx,4), %eax setl %al movb %al, -49(%rbp) ## 1-byte Spill LBB0_7: ## in Loop: Header=BB0_5 Depth=3 movb -49(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB0_8 jmp LBB0_10 LBB0_8: ## in Loop: Header=BB0_5 Depth=3 movq -8(%rbp), %rax movslq -40(%rbp), %rcx movl (%rax,%rcx,4), %edx movq -8(%rbp), %rax movl -40(%rbp), %ecx addl -44(%rbp), %ecx movslq %ecx, %rcx movl %edx, (%rax,%rcx,4) ## %bb.9: ## in Loop: Header=BB0_5 Depth=3 movl -40(%rbp), %eax subl -44(%rbp), %eax movl %eax, -40(%rbp) jmp LBB0_5 LBB0_10: ## in Loop: Header=BB0_3 Depth=2 movl -48(%rbp), %edx movq -8(%rbp), %rax movl -40(%rbp), %ecx addl -44(%rbp), %ecx movslq %ecx, %rcx movl %edx, (%rax,%rcx,4) ## %bb.11: ## in Loop: Header=BB0_3 Depth=2 movl -36(%rbp), %eax addl $1, %eax movl %eax, -36(%rbp) jmp LBB0_3 LBB0_12: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_13 LBB0_13: ## in Loop: Header=BB0_1 Depth=1 movl -32(%rbp), %eax addl $1, %eax movl %eax, -32(%rbp) jmp LBB0_1 LBB0_14: movl _shellsort.nc(%rip), %esi leaq L_.str(%rip), %rdi movb $0, %al callq _printf addq $64, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $96, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf leaq L_.str.2(%rip), %rdi leaq -84(%rbp), %rsi movb $0, %al callq _scanf leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf movl $0, -88(%rbp) LBB1_1: ## =>This Inner Loop Header: Depth=1 movl -88(%rbp), %eax cmpl -84(%rbp), %eax jge LBB1_4 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 movslq -88(%rbp), %rax leaq -48(%rbp), %rsi shlq $2, %rax addq %rax, %rsi leaq L_.str.2(%rip), %rdi movb $0, %al callq _scanf ## %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: leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf leaq L_.str.2(%rip), %rdi leaq -92(%rbp), %rsi movb $0, %al callq _scanf leaq L_.str.5(%rip), %rdi movb $0, %al callq _printf movl $0, -88(%rbp) LBB1_5: ## =>This Inner Loop Header: Depth=1 movl -88(%rbp), %eax cmpl -92(%rbp), %eax jge LBB1_8 ## %bb.6: ## in Loop: Header=BB1_5 Depth=1 movslq -88(%rbp), %rax leaq -80(%rbp), %rsi shlq $2, %rax addq %rax, %rsi leaq L_.str.2(%rip), %rdi movb $0, %al callq _scanf ## %bb.7: ## in Loop: Header=BB1_5 Depth=1 movl -88(%rbp), %eax addl $1, %eax movl %eax, -88(%rbp) jmp LBB1_5 LBB1_8: leaq -48(%rbp), %rdi movl -84(%rbp), %esi leaq -80(%rbp), %rdx movl -92(%rbp), %ecx callq _shellsort leaq L_.str.6(%rip), %rdi movb $0, %al callq _printf movl $0, -88(%rbp) LBB1_9: ## =>This Inner Loop Header: Depth=1 movl -88(%rbp), %eax cmpl -84(%rbp), %eax jge LBB1_12 ## %bb.10: ## in Loop: Header=BB1_9 Depth=1 movslq -88(%rbp), %rax movl -48(%rbp,%rax,4), %esi leaq L_.str.7(%rip), %rdi movb $0, %al callq _printf ## %bb.11: ## in Loop: Header=BB1_9 Depth=1 movl -88(%rbp), %eax addl $1, %eax movl %eax, -88(%rbp) jmp LBB1_9 LBB1_12: movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB1_14 ## %bb.13: addq $96, %rsp popq %rbp retq LBB1_14: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .zerofill __DATA,__bss,_shellsort.nc,4,2 ## @shellsort.nc .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "No of Comparisons required %d\n" L_.str.1: ## @.str.1 .asciz "Enter no of elements : " L_.str.2: ## @.str.2 .asciz "%d" L_.str.3: ## @.str.3 .asciz "Enter elements for sorting : " L_.str.4: ## @.str.4 .asciz "Enter no of increments : " L_.str.5: ## @.str.5 .asciz "Enter values of increment : " L_.str.6: ## @.str.6 .asciz "Sorted array is as follows\t" L_.str.7: ## @.str.7 .asciz "%d\t" .subsections_via_symbols
the_stack_data/546393.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 wzr, [sp, #32] str wzr, [sp, #28] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #28] subs w8, w8, #1 cset w8, eq tbnz w8, #0, LBB0_3 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 ldrsw x9, [sp, #32] add x8, sp, #48 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 str x0, [sp, #16] ; 8-byte Folded Spill bl _scanf ldr w8, [sp, #32] add w8, w8, #1 str w8, [sp, #32] 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 add x8, sp, #28 str x8, [x9] bl _scanf b LBB0_1 LBB0_3: str wzr, [sp, #40] b LBB0_4 LBB0_4: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #40] ldr w9, [sp, #32] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_7 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_4 Depth=1 ldr w8, [sp, #36] ldrsw x10, [sp, #40] add x9, sp, #48 ldr w9, [x9, x10, lsl #2] add w8, w8, w9 str w8, [sp, #36] b LBB0_6 LBB0_6: ; in Loop: Header=BB0_4 Depth=1 ldr w8, [sp, #40] add w8, w8, #1 str w8, [sp, #40] b LBB0_4 LBB0_7: ldr w9, [sp, #36] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf ldur x9, [x29, #-24] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_9 b LBB0_8 LBB0_8: bl ___stack_chk_fail LBB0_9: mov w0, #0 ldp x29, x30, [sp, #272] ; 16-byte Folded Reload ldp x28, x27, [sp, #256] ; 16-byte Folded Reload add sp, sp, #288 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "\nIntroduzca un numero " l_.str.1: ; @.str.1 .asciz "%d" l_.str.2: ; @.str.2 .asciz "\nPulse 1 para salir " l_.str.3: ; @.str.3 .asciz "\nEl resultado es %d\n\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $240, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -212(%rbp) movl $0, -224(%rbp) movl $0, -228(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 cmpl $1, -228(%rbp) je LBB0_3 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 leaq L_.str(%rip), %rdi movb $0, %al callq _printf movslq -224(%rbp), %rax leaq -208(%rbp), %rsi shlq $2, %rax addq %rax, %rsi leaq L_.str.1(%rip), %rdi movb $0, %al callq _scanf movl -224(%rbp), %eax addl $1, %eax movl %eax, -224(%rbp) leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi leaq -228(%rbp), %rsi movb $0, %al callq _scanf jmp LBB0_1 LBB0_3: movl $0, -216(%rbp) LBB0_4: ## =>This Inner Loop Header: Depth=1 movl -216(%rbp), %eax cmpl -224(%rbp), %eax jge LBB0_7 ## %bb.5: ## in Loop: Header=BB0_4 Depth=1 movl -220(%rbp), %eax movslq -216(%rbp), %rcx addl -208(%rbp,%rcx,4), %eax movl %eax, -220(%rbp) ## %bb.6: ## in Loop: Header=BB0_4 Depth=1 movl -216(%rbp), %eax addl $1, %eax movl %eax, -216(%rbp) jmp LBB0_4 LBB0_7: movl -220(%rbp), %esi leaq L_.str.3(%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_9 ## %bb.8: xorl %eax, %eax addq $240, %rsp popq %rbp retq LBB0_9: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "\nIntroduzca un numero " L_.str.1: ## @.str.1 .asciz "%d" L_.str.2: ## @.str.2 .asciz "\nPulse 1 para salir " L_.str.3: ## @.str.3 .asciz "\nEl resultado es %d\n\n" .subsections_via_symbols
the_stack_data/1237749.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, #1000 cset w8, gt tbnz w8, #0, LBB0_11 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-8] stur w8, [x29, #-12] b LBB0_3 LBB0_3: ; Parent Loop BB0_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldur w8, [x29, #-12] subs w8, w8, #1000 cset w8, gt tbnz w8, #0, LBB0_9 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_3 Depth=2 ldur w8, [x29, #-8] ldur w9, [x29, #-8] mul w8, w8, w9 ldur w9, [x29, #-12] ldur w10, [x29, #-12] mul w9, w9, w10 add w8, w8, w9 scvtf d0, w8 fsqrt d0, d0 fcvtzs w8, d0 stur w8, [x29, #-16] ldur w8, [x29, #-8] ldur w9, [x29, #-12] add w8, w8, w9 ldur w9, [x29, #-16] add w9, w8, w9 mov w8, #1000 subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_7 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_3 Depth=2 ldur w8, [x29, #-8] ldur w9, [x29, #-8] mul w8, w8, w9 ldur w9, [x29, #-12] ldur w10, [x29, #-12] mul w9, w9, w10 add w8, w8, w9 ldur w9, [x29, #-16] ldur w10, [x29, #-16] mul w9, w9, w10 subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_7 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_3 Depth=2 ldur w8, [x29, #-8] ; implicit-def: $x12 mov x12, x8 ldur w8, [x29, #-12] ; implicit-def: $x11 mov x11, x8 ldur w9, [x29, #-16] ; implicit-def: $x8 mov x8, x9 ldur w9, [x29, #-8] ldur w10, [x29, #-12] mul w9, w9, w10 ldur w10, [x29, #-16] mul w10, w9, w10 mov x9, sp str x12, [x9] str x11, [x9, #8] str x8, [x9, #16] ; implicit-def: $x8 mov x8, x10 str x8, [x9, #24] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf b LBB0_7 LBB0_7: ; in Loop: Header=BB0_3 Depth=2 b LBB0_8 LBB0_8: ; in Loop: Header=BB0_3 Depth=2 ldur w8, [x29, #-12] add w8, w8, #1 stur w8, [x29, #-12] b LBB0_3 LBB0_9: ; in Loop: Header=BB0_1 Depth=1 b LBB0_10 LBB0_10: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-8] add w8, w8, #1 stur w8, [x29, #-8] b LBB0_1 LBB0_11: mov w0, #0 ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "a: %d, b: %d, c: %d, prod: %d\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) movl $1, -8(%rbp) LBB0_1: ## =>This Loop Header: Depth=1 ## Child Loop BB0_3 Depth 2 cmpl $1000, -8(%rbp) ## imm = 0x3E8 jg LBB0_11 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl -8(%rbp), %eax movl %eax, -12(%rbp) LBB0_3: ## Parent Loop BB0_1 Depth=1 ## => This Inner Loop Header: Depth=2 cmpl $1000, -12(%rbp) ## imm = 0x3E8 jg LBB0_9 ## %bb.4: ## in Loop: Header=BB0_3 Depth=2 movl -8(%rbp), %eax imull -8(%rbp), %eax movl -12(%rbp), %ecx imull -12(%rbp), %ecx addl %ecx, %eax cvtsi2sd %eax, %xmm0 sqrtsd %xmm0, %xmm0 cvttsd2si %xmm0, %eax movl %eax, -16(%rbp) movl -8(%rbp), %ecx addl -12(%rbp), %ecx addl -16(%rbp), %ecx movl $1000, %eax ## imm = 0x3E8 cmpl %ecx, %eax jne LBB0_7 ## %bb.5: ## in Loop: Header=BB0_3 Depth=2 movl -8(%rbp), %eax imull -8(%rbp), %eax movl -12(%rbp), %ecx imull -12(%rbp), %ecx addl %ecx, %eax movl -16(%rbp), %ecx imull -16(%rbp), %ecx cmpl %ecx, %eax jne LBB0_7 ## %bb.6: ## in Loop: Header=BB0_3 Depth=2 movl -8(%rbp), %esi movl -12(%rbp), %edx movl -16(%rbp), %ecx movl -8(%rbp), %r8d imull -12(%rbp), %r8d imull -16(%rbp), %r8d leaq L_.str(%rip), %rdi movb $0, %al callq _printf LBB0_7: ## in Loop: Header=BB0_3 Depth=2 jmp LBB0_8 LBB0_8: ## in Loop: Header=BB0_3 Depth=2 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB0_3 LBB0_9: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_10 LBB0_10: ## in Loop: Header=BB0_1 Depth=1 movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) jmp LBB0_1 LBB0_11: xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "a: %d, b: %d, c: %d, prod: %d\n" .subsections_via_symbols
the_stack_data/770947.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov x9, sp add x8, sp, #12 str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf mov w8, #1 stur w8, [x29, #-8] b LBB0_1 LBB0_1: ; =>This Loop Header: Depth=1 ; Child Loop BB0_3 Depth 2 ldur w8, [x29, #-8] ldr w9, [sp, #12] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_15 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] ldr w9, [sp, #12] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_13 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_3 Depth=2 ldur w8, [x29, #-12] ldr w9, [sp, #12] add w9, w9, #1 ldur w10, [x29, #-8] subs w9, w9, w10 subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_11 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_3 Depth=2 ldur w8, [x29, #-8] subs w8, w8, #1 cset w8, eq tbnz w8, #0, LBB0_8 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_3 Depth=2 ldur w8, [x29, #-12] subs w8, w8, #1 cset w8, eq tbnz w8, #0, LBB0_8 b LBB0_7 LBB0_7: ; in Loop: Header=BB0_3 Depth=2 ldur w8, [x29, #-12] ldr w9, [sp, #12] add w9, w9, #1 ldur w10, [x29, #-8] subs w9, w9, w10 subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_9 b LBB0_8 LBB0_8: ; in Loop: Header=BB0_3 Depth=2 adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf b LBB0_10 LBB0_9: ; in Loop: Header=BB0_3 Depth=2 adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf b LBB0_10 LBB0_10: ; in Loop: Header=BB0_3 Depth=2 b LBB0_11 LBB0_11: ; in Loop: Header=BB0_3 Depth=2 b LBB0_12 LBB0_12: ; in Loop: Header=BB0_3 Depth=2 ldur w8, [x29, #-12] add w8, w8, #1 stur w8, [x29, #-12] b LBB0_3 LBB0_13: ; in Loop: Header=BB0_1 Depth=1 adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf b LBB0_14 LBB0_14: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-8] add w8, w8, #1 stur w8, [x29, #-8] b LBB0_1 LBB0_15: mov w0, #0 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Enter Number : " l_.str.1: ; @.str.1 .asciz "%d" l_.str.2: ; @.str.2 .asciz "* " l_.str.3: ; @.str.3 .asciz " " l_.str.4: ; @.str.4 .asciz "\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl $0, -4(%rbp) leaq L_.str(%rip), %rdi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi leaq -20(%rbp), %rsi movb $0, %al callq _scanf movl $1, -8(%rbp) LBB0_1: ## =>This Loop Header: Depth=1 ## Child Loop BB0_3 Depth 2 movl -8(%rbp), %eax cmpl -20(%rbp), %eax jg LBB0_15 ## %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 -20(%rbp), %eax jg LBB0_13 ## %bb.4: ## in Loop: Header=BB0_3 Depth=2 movl -12(%rbp), %eax movl -20(%rbp), %ecx addl $1, %ecx subl -8(%rbp), %ecx cmpl %ecx, %eax jg LBB0_11 ## %bb.5: ## in Loop: Header=BB0_3 Depth=2 cmpl $1, -8(%rbp) je LBB0_8 ## %bb.6: ## in Loop: Header=BB0_3 Depth=2 cmpl $1, -12(%rbp) je LBB0_8 ## %bb.7: ## in Loop: Header=BB0_3 Depth=2 movl -12(%rbp), %eax movl -20(%rbp), %ecx addl $1, %ecx subl -8(%rbp), %ecx cmpl %ecx, %eax jne LBB0_9 LBB0_8: ## in Loop: Header=BB0_3 Depth=2 leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf jmp LBB0_10 LBB0_9: ## in Loop: Header=BB0_3 Depth=2 leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf LBB0_10: ## in Loop: Header=BB0_3 Depth=2 jmp LBB0_11 LBB0_11: ## in Loop: Header=BB0_3 Depth=2 jmp LBB0_12 LBB0_12: ## in Loop: Header=BB0_3 Depth=2 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB0_3 LBB0_13: ## in Loop: Header=BB0_1 Depth=1 leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf ## %bb.14: ## in Loop: Header=BB0_1 Depth=1 movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) jmp LBB0_1 LBB0_15: xorl %eax, %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Enter Number : " L_.str.1: ## @.str.1 .asciz "%d" L_.str.2: ## @.str.2 .asciz "* " L_.str.3: ## @.str.3 .asciz " " L_.str.4: ## @.str.4 .asciz "\n" .subsections_via_symbols
the_stack_data/247019433.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, #3104 sub x10, x29, #40 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] str wzr, [sp, #56] adrp x8, l___const.main.map@PAGE add x8, x8, l___const.main.map@PAGEOFF ldr x9, [x8] str x9, [x10] ldrh w8, [x8, #8] sturh w8, [x29, #-32] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF bl _fopen str x0, [sp, #48] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF adrp x1, l_.str.3@PAGE add x1, x1, l_.str.3@PAGEOFF bl _fopen str x0, [sp, #40] ldr x8, [sp, #48] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: ldr x8, [sp, #40] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf mov w0, #1 bl _exit LBB0_3: str wzr, [sp, #36] b LBB0_4 LBB0_4: ; =>This Loop Header: Depth=1 ; Child Loop BB0_6 Depth 2 ldr w8, [sp, #36] subs w8, w8, #20 cset w8, ge tbnz w8, #0, LBB0_11 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_4 Depth=1 str wzr, [sp, #32] b LBB0_6 LBB0_6: ; Parent Loop BB0_4 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #32] subs w8, w8, #30 cset w8, ge tbnz w8, #0, LBB0_9 b LBB0_7 LBB0_7: ; in Loop: Header=BB0_6 Depth=2 ldr x0, [sp, #48] ldrsw x8, [sp, #36] mov x9, #120 mul x9, x8, x9 add x8, sp, #680 add x8, x8, x9 ldrsw x9, [sp, #32] add x8, x8, x9, lsl #2 mov x9, sp str x8, [x9] adrp x1, l_.str.5@PAGE add x1, x1, l_.str.5@PAGEOFF bl _fscanf b LBB0_8 LBB0_8: ; in Loop: Header=BB0_6 Depth=2 ldr w8, [sp, #32] add w8, w8, #1 str w8, [sp, #32] b LBB0_6 LBB0_9: ; in Loop: Header=BB0_4 Depth=1 b LBB0_10 LBB0_10: ; in Loop: Header=BB0_4 Depth=1 ldr w8, [sp, #36] add w8, w8, #1 str w8, [sp, #36] b LBB0_4 LBB0_11: str wzr, [sp, #28] b LBB0_12 LBB0_12: ; =>This Loop Header: Depth=1 ; Child Loop BB0_14 Depth 2 ldr w8, [sp, #28] subs w8, w8, #20 cset w8, ge tbnz w8, #0, LBB0_19 b LBB0_13 LBB0_13: ; in Loop: Header=BB0_12 Depth=1 str wzr, [sp, #24] b LBB0_14 LBB0_14: ; Parent Loop BB0_12 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #24] subs w8, w8, #30 cset w8, ge tbnz w8, #0, LBB0_17 b LBB0_15 LBB0_15: ; in Loop: Header=BB0_14 Depth=2 ldrsw x8, [sp, #28] mov x9, #120 mul x9, x8, x9 add x8, sp, #680 add x8, x8, x9 ldrsw x9, [sp, #24] ldrsw x9, [x8, x9, lsl #2] sub x8, x29, #40 add x8, x8, x9 ldrb w8, [x8] ldrsw x9, [sp, #28] mov x10, #31 mul x10, x9, x10 add x9, sp, #60 add x9, x9, x10 ldrsw x10, [sp, #24] add x9, x9, x10 strb w8, [x9] b LBB0_16 LBB0_16: ; in Loop: Header=BB0_14 Depth=2 ldr w8, [sp, #24] add w8, w8, #1 str w8, [sp, #24] b LBB0_14 LBB0_17: ; in Loop: Header=BB0_12 Depth=1 ldrsw x8, [sp, #28] mov x9, #31 mul x9, x8, x9 add x8, sp, #60 add x8, x8, x9 strb wzr, [x8, #30] b LBB0_18 LBB0_18: ; in Loop: Header=BB0_12 Depth=1 ldr w8, [sp, #28] add w8, w8, #1 str w8, [sp, #28] b LBB0_12 LBB0_19: str wzr, [sp, #20] b LBB0_20 LBB0_20: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #20] subs w8, w8, #20 cset w8, ge tbnz w8, #0, LBB0_23 b LBB0_21 LBB0_21: ; in Loop: Header=BB0_20 Depth=1 ldr x0, [sp, #40] ldrsw x8, [sp, #20] mov x9, #31 mul x9, x8, x9 add x8, sp, #60 add x8, x8, x9 mov x9, sp str x8, [x9] adrp x1, l_.str.6@PAGE add x1, x1, l_.str.6@PAGEOFF bl _fprintf b LBB0_22 LBB0_22: ; in Loop: Header=BB0_20 Depth=1 ldr w8, [sp, #20] add w8, w8, #1 str w8, [sp, #20] b LBB0_20 LBB0_23: ldr x0, [sp, #48] bl _fclose ldr x0, [sp, #40] bl _fclose ldur x9, [x29, #-24] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_25 b LBB0_24 LBB0_24: bl ___stack_chk_fail LBB0_25: mov w0, #0 add sp, sp, #3104 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x28, x27, [sp], #32 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .section __TEXT,__const l___const.main.map: ; @__const.main.map .ascii " .':~*= %#" .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Exer_13_12_input.txt" l_.str.1: ; @.str.1 .asciz "r" l_.str.2: ; @.str.2 .asciz "Exer_13_12_output.txt" l_.str.3: ; @.str.3 .asciz "w" l_.str.4: ; @.str.4 .asciz "Can't open file.\n" l_.str.5: ; @.str.5 .asciz "%d" l_.str.6: ; @.str.6 .asciz "%s\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $3104, %rsp ## imm = 0xC20 movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -3060(%rbp) movq l___const.main.map(%rip), %rax movq %rax, -18(%rbp) movw l___const.main.map+8(%rip), %ax movw %ax, -10(%rbp) leaq L_.str(%rip), %rdi leaq L_.str.1(%rip), %rsi callq _fopen movq %rax, -3072(%rbp) leaq L_.str.2(%rip), %rdi leaq L_.str.3(%rip), %rsi callq _fopen movq %rax, -3080(%rbp) cmpq $0, -3072(%rbp) je LBB0_2 ## %bb.1: cmpq $0, -3080(%rbp) jne LBB0_3 LBB0_2: leaq L_.str.4(%rip), %rdi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _printf movl $1, %edi callq _exit LBB0_3: movl $0, -3084(%rbp) LBB0_4: ## =>This Loop Header: Depth=1 ## Child Loop BB0_6 Depth 2 cmpl $20, -3084(%rbp) jge LBB0_11 ## %bb.5: ## in Loop: Header=BB0_4 Depth=1 movl $0, -3088(%rbp) LBB0_6: ## Parent Loop BB0_4 Depth=1 ## => This Inner Loop Header: Depth=2 cmpl $30, -3088(%rbp) jge LBB0_9 ## %bb.7: ## in Loop: Header=BB0_6 Depth=2 movq -3072(%rbp), %rdi movslq -3084(%rbp), %rax leaq -2432(%rbp), %rdx imulq $120, %rax, %rax addq %rax, %rdx movslq -3088(%rbp), %rax shlq $2, %rax addq %rax, %rdx leaq L_.str.5(%rip), %rsi movb $0, %al callq _fscanf ## %bb.8: ## in Loop: Header=BB0_6 Depth=2 movl -3088(%rbp), %eax addl $1, %eax movl %eax, -3088(%rbp) jmp LBB0_6 LBB0_9: ## in Loop: Header=BB0_4 Depth=1 jmp LBB0_10 LBB0_10: ## in Loop: Header=BB0_4 Depth=1 movl -3084(%rbp), %eax addl $1, %eax movl %eax, -3084(%rbp) jmp LBB0_4 LBB0_11: movl $0, -3092(%rbp) LBB0_12: ## =>This Loop Header: Depth=1 ## Child Loop BB0_14 Depth 2 cmpl $20, -3092(%rbp) jge LBB0_19 ## %bb.13: ## in Loop: Header=BB0_12 Depth=1 movl $0, -3096(%rbp) LBB0_14: ## Parent Loop BB0_12 Depth=1 ## => This Inner Loop Header: Depth=2 cmpl $30, -3096(%rbp) jge LBB0_17 ## %bb.15: ## in Loop: Header=BB0_14 Depth=2 movslq -3092(%rbp), %rcx leaq -2432(%rbp), %rax imulq $120, %rcx, %rcx addq %rcx, %rax movslq -3096(%rbp), %rcx movslq (%rax,%rcx,4), %rax movb -18(%rbp,%rax), %dl movslq -3092(%rbp), %rcx leaq -3056(%rbp), %rax imulq $31, %rcx, %rcx addq %rcx, %rax movslq -3096(%rbp), %rcx movb %dl, (%rax,%rcx) ## %bb.16: ## in Loop: Header=BB0_14 Depth=2 movl -3096(%rbp), %eax addl $1, %eax movl %eax, -3096(%rbp) jmp LBB0_14 LBB0_17: ## in Loop: Header=BB0_12 Depth=1 movslq -3092(%rbp), %rcx leaq -3056(%rbp), %rax imulq $31, %rcx, %rcx addq %rcx, %rax movb $0, 30(%rax) ## %bb.18: ## in Loop: Header=BB0_12 Depth=1 movl -3092(%rbp), %eax addl $1, %eax movl %eax, -3092(%rbp) jmp LBB0_12 LBB0_19: movl $0, -3100(%rbp) LBB0_20: ## =>This Inner Loop Header: Depth=1 cmpl $20, -3100(%rbp) jge LBB0_23 ## %bb.21: ## in Loop: Header=BB0_20 Depth=1 movq -3080(%rbp), %rdi movslq -3100(%rbp), %rax leaq -3056(%rbp), %rdx imulq $31, %rax, %rax addq %rax, %rdx leaq L_.str.6(%rip), %rsi movb $0, %al callq _fprintf ## %bb.22: ## in Loop: Header=BB0_20 Depth=1 movl -3100(%rbp), %eax addl $1, %eax movl %eax, -3100(%rbp) jmp LBB0_20 LBB0_23: movq -3072(%rbp), %rdi callq _fclose movq -3080(%rbp), %rdi callq _fclose movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_25 ## %bb.24: xorl %eax, %eax addq $3104, %rsp ## imm = 0xC20 popq %rbp retq LBB0_25: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__const l___const.main.map: ## @__const.main.map .ascii " .':~*= %#" .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Exer_13_12_input.txt" L_.str.1: ## @.str.1 .asciz "r" L_.str.2: ## @.str.2 .asciz "Exer_13_12_output.txt" L_.str.3: ## @.str.3 .asciz "w" L_.str.4: ## @.str.4 .asciz "Can't open file.\n" L_.str.5: ## @.str.5 .asciz "%d" L_.str.6: ## @.str.6 .asciz "%s\n" .subsections_via_symbols
the_stack_data/17242.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 _strdup str x0, [sp, #24] ldr x9, [sp, #24] mov w8, #72 strb w8, [x9] ldr x8, [sp, #24] mov x9, sp str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf ldr w0, [sp, #20] ; 4-byte Folded Reload bl _exit .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "hello" l_.str.1: ; @.str.1 .asciz "%s\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl $0, -4(%rbp) movl %edi, -8(%rbp) movq %rsi, -16(%rbp) leaq L_.str(%rip), %rdi callq _strdup movq %rax, -24(%rbp) movq -24(%rbp), %rax movb $72, (%rax) movq -24(%rbp), %rsi leaq L_.str.1(%rip), %rdi xorl %eax, %eax movl %eax, -28(%rbp) ## 4-byte Spill callq _printf movl -28(%rbp), %edi ## 4-byte Reload callq _exit .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "hello" L_.str.1: ## @.str.1 .asciz "%s\n" .subsections_via_symbols
the_stack_data/93887944.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _deadlock_transfer ; -- Begin function deadlock_transfer .p2align 2 _deadlock_transfer: ; @deadlock_transfer .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] ldur x8, [x29, #-8] stur x8, [x29, #-16] ldur x8, [x29, #-16] ldr x8, [x8] ldr w8, [x8, #72] ; implicit-def: $x11 mov x11, x8 ldur x8, [x29, #-16] ldr x8, [x8, #8] ldr w8, [x8, #72] ; implicit-def: $x10 mov x10, x8 ldur x8, [x29, #-16] ldr w9, [x8, #16] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x11, [x9] str x10, [x9, #8] str x8, [x9, #16] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldur x8, [x29, #-16] ldr x8, [x8] add x0, x8, #8 bl _pthread_mutex_lock mov w0, #1 bl _sleep ldur x8, [x29, #-16] ldr x8, [x8, #8] add x0, x8, #8 bl _pthread_mutex_lock ldur x8, [x29, #-16] ldr w10, [x8, #16] ldur x8, [x29, #-16] ldr x9, [x8] ldr w8, [x9] subs w8, w8, w10 str w8, [x9] ldur x8, [x29, #-16] ldr w10, [x8, #16] ldur x8, [x29, #-16] ldr x9, [x8, #8] ldr w8, [x9] add w8, w8, w10 str w8, [x9] ldur x8, [x29, #-16] ldr x8, [x8, #8] add x0, x8, #8 bl _pthread_mutex_unlock ldur x8, [x29, #-16] ldr x8, [x8] add x0, x8, #8 bl _pthread_mutex_unlock mov x0, #0 ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _create_account ; -- Begin function create_account .p2align 2 _create_account: ; @create_account .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 w8, [sp, #4] ldr x9, [sp, #8] str w8, [x9] adrp x9, _create_account.aid@PAGE ldr w8, [x9, _create_account.aid@PAGEOFF] add w8, w8, #1 str w8, [x9, _create_account.aid@PAGEOFF] ldr x9, [sp, #8] str w8, [x9, #72] ldr x8, [sp, #8] add x0, x8, #8 mov x1, #0 bl _pthread_mutex_init 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, #336 .cfi_def_cfa_offset 336 stp x28, x27, [sp, #304] ; 16-byte Folded Spill stp x29, x30, [sp, #320] ; 16-byte Folded Spill add x29, sp, #320 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w27, -24 .cfi_offset w28, -32 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] str wzr, [sp, #132] str w0, [sp, #128] str x1, [sp, #120] sub x0, x29, #104 str x0, [sp, #48] ; 8-byte Folded Spill mov w1, #1000 str w1, [sp, #36] ; 4-byte Folded Spill bl _create_account ldr w1, [sp, #36] ; 4-byte Folded Reload add x0, sp, #136 str x0, [sp, #40] ; 8-byte Folded Spill bl _create_account ldur w8, [x29, #-104] ; implicit-def: $x10 mov x10, x8 ldr w9, [sp, #136] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf ldr x10, [sp, #40] ; 8-byte Folded Reload ldr x9, [sp, #48] ; 8-byte Folded Reload add x3, sp, #80 mov x8, x9 str x8, [sp, #80] mov x8, x10 str x8, [sp, #88] mov w8, #100 str w8, [sp, #96] str x10, [sp, #56] str x9, [sp, #64] str w8, [sp, #72] add x0, sp, #112 mov x1, #0 adrp x2, _deadlock_transfer@PAGE add x2, x2, _deadlock_transfer@PAGEOFF bl _pthread_create subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB2_2 b LBB2_1 LBB2_1: adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] ldr x0, [x8] adrp x1, l_.str.2@PAGE add x1, x1, l_.str.2@PAGEOFF bl _fprintf mov w0, #1 bl _exit LBB2_2: add x0, sp, #104 mov x1, #0 adrp x2, _deadlock_transfer@PAGE add x2, x2, _deadlock_transfer@PAGEOFF add x3, sp, #56 bl _pthread_create subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB2_4 b LBB2_3 LBB2_3: adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] ldr x0, [x8] adrp x1, l_.str.2@PAGE add x1, x1, l_.str.2@PAGEOFF bl _fprintf mov w0, #1 bl _exit LBB2_4: ldr x0, [sp, #112] mov x1, #0 bl _pthread_join subs w8, w0, #0 cset w9, ne ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB2_6 b LBB2_5 LBB2_5: adrp x0, l___func__.main@PAGE add x0, x0, l___func__.main@PAGEOFF adrp x1, l_.str.3@PAGE add x1, x1, l_.str.3@PAGEOFF mov w2, #74 adrp x3, l_.str.4@PAGE add x3, x3, l_.str.4@PAGEOFF bl ___assert_rtn LBB2_6: b LBB2_7 LBB2_7: ldr x0, [sp, #104] mov x1, #0 bl _pthread_join subs w8, w0, #0 cset w9, ne ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB2_9 b LBB2_8 LBB2_8: adrp x0, l___func__.main@PAGE add x0, x0, l___func__.main@PAGEOFF adrp x1, l_.str.3@PAGE add x1, x1, l_.str.3@PAGEOFF mov w2, #75 adrp x3, l_.str.5@PAGE add x3, x3, l_.str.5@PAGEOFF bl ___assert_rtn LBB2_9: b LBB2_10 LBB2_10: sub x8, x29, #104 str x8, [sp, #16] ; 8-byte Folded Spill ldur w8, [x29, #-104] ; implicit-def: $x10 mov x10, x8 add x8, sp, #136 str x8, [sp, #24] ; 8-byte Folded Spill ldr w9, [sp, #136] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _printf ldr x8, [sp, #16] ; 8-byte Folded Reload add x0, x8, #8 bl _pthread_mutex_destroy ldr x8, [sp, #24] ; 8-byte Folded Reload add x0, x8, #8 bl _pthread_mutex_destroy ldur x9, [x29, #-24] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB2_12 b LBB2_11 LBB2_11: bl ___stack_chk_fail LBB2_12: mov w0, #0 ldp x29, x30, [sp, #320] ; 16-byte Folded Reload ldp x28, x27, [sp, #304] ; 16-byte Folded Reload add sp, sp, #336 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d -> %d transfer $%d\n" .zerofill __DATA,__bss,_create_account.aid,4,2 ; @create_account.aid l_.str.1: ; @.str.1 .asciz "main begin: a1's balance=%d, a2's balance=%d\n" l_.str.2: ; @.str.2 .asciz "pthread_create failed.\n" l___func__.main: ; @__func__.main .asciz "main" l_.str.3: ; @.str.3 .asciz "30504.c" l_.str.4: ; @.str.4 .asciz "pthread_join(p1, NULL) == 0" l_.str.5: ; @.str.5 .asciz "pthread_join(p2, NULL) == 0" l_.str.6: ; @.str.6 .asciz "main end: a1's balance=%d, a2's balance=%d\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _deadlock_transfer ## -- Begin function deadlock_transfer .p2align 4, 0x90 _deadlock_transfer: ## @deadlock_transfer .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) movq -8(%rbp), %rax movq %rax, -16(%rbp) movq -16(%rbp), %rax movq (%rax), %rax movl 72(%rax), %esi movq -16(%rbp), %rax movq 8(%rax), %rax movl 72(%rax), %edx movq -16(%rbp), %rax movl 16(%rax), %ecx leaq L_.str(%rip), %rdi movb $0, %al callq _printf movq -16(%rbp), %rax movq (%rax), %rdi addq $8, %rdi callq _pthread_mutex_lock movl $1, %edi callq _sleep movq -16(%rbp), %rax movq 8(%rax), %rdi addq $8, %rdi callq _pthread_mutex_lock movq -16(%rbp), %rax movl 16(%rax), %edx movq -16(%rbp), %rax movq (%rax), %rax movl (%rax), %ecx subl %edx, %ecx movl %ecx, (%rax) movq -16(%rbp), %rax movl 16(%rax), %ecx movq -16(%rbp), %rax movq 8(%rax), %rax addl (%rax), %ecx movl %ecx, (%rax) movq -16(%rbp), %rax movq 8(%rax), %rdi addq $8, %rdi callq _pthread_mutex_unlock movq -16(%rbp), %rax movq (%rax), %rdi addq $8, %rdi callq _pthread_mutex_unlock xorl %eax, %eax ## kill: def $rax killed $eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _create_account ## -- Begin function create_account .p2align 4, 0x90 _create_account: ## @create_account .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) movl -12(%rbp), %ecx movq -8(%rbp), %rax movl %ecx, (%rax) movl _create_account.aid(%rip), %ecx addl $1, %ecx movl %ecx, _create_account.aid(%rip) movq -8(%rbp), %rax movl %ecx, 72(%rax) movq -8(%rbp), %rdi addq $8, %rdi xorl %eax, %eax movl %eax, %esi callq _pthread_mutex_init 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 $256, %rsp ## imm = 0x100 movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -172(%rbp) movl %edi, -176(%rbp) movq %rsi, -184(%rbp) leaq -88(%rbp), %rdi movl $1000, %esi ## imm = 0x3E8 callq _create_account leaq -168(%rbp), %rdi movl $1000, %esi ## imm = 0x3E8 callq _create_account movl -88(%rbp), %esi movl -168(%rbp), %edx leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf leaq -88(%rbp), %rax movq %rax, -224(%rbp) leaq -168(%rbp), %rax movq %rax, -216(%rbp) movl $100, -208(%rbp) leaq -168(%rbp), %rax movq %rax, -248(%rbp) leaq -88(%rbp), %rax movq %rax, -240(%rbp) movl $100, -232(%rbp) leaq -224(%rbp), %rcx leaq -192(%rbp), %rdi xorl %eax, %eax movl %eax, %esi leaq _deadlock_transfer(%rip), %rdx callq _pthread_create cmpl $0, %eax je LBB2_2 ## %bb.1: 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 LBB2_2: leaq -248(%rbp), %rcx leaq -200(%rbp), %rdi xorl %eax, %eax movl %eax, %esi leaq _deadlock_transfer(%rip), %rdx callq _pthread_create cmpl $0, %eax je LBB2_4 ## %bb.3: 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 LBB2_4: movq -192(%rbp), %rdi xorl %eax, %eax movl %eax, %esi callq _pthread_join cmpl $0, %eax sete %al xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB2_6 ## %bb.5: leaq L___func__.main(%rip), %rdi leaq L_.str.3(%rip), %rsi leaq L_.str.4(%rip), %rcx movl $74, %edx callq ___assert_rtn LBB2_6: jmp LBB2_7 LBB2_7: movq -200(%rbp), %rdi xorl %eax, %eax movl %eax, %esi callq _pthread_join cmpl $0, %eax sete %al xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB2_9 ## %bb.8: leaq L___func__.main(%rip), %rdi leaq L_.str.3(%rip), %rsi leaq L_.str.5(%rip), %rcx movl $75, %edx callq ___assert_rtn LBB2_9: jmp LBB2_10 LBB2_10: movl -88(%rbp), %esi movl -168(%rbp), %edx leaq L_.str.6(%rip), %rdi movb $0, %al callq _printf leaq -88(%rbp), %rdi addq $8, %rdi callq _pthread_mutex_destroy leaq -168(%rbp), %rdi addq $8, %rdi callq _pthread_mutex_destroy movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB2_12 ## %bb.11: xorl %eax, %eax addq $256, %rsp ## imm = 0x100 popq %rbp retq LBB2_12: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d -> %d transfer $%d\n" .zerofill __DATA,__bss,_create_account.aid,4,2 ## @create_account.aid L_.str.1: ## @.str.1 .asciz "main begin: a1's balance=%d, a2's balance=%d\n" L_.str.2: ## @.str.2 .asciz "pthread_create failed.\n" L___func__.main: ## @__func__.main .asciz "main" L_.str.3: ## @.str.3 .asciz "30504.c" L_.str.4: ## @.str.4 .asciz "pthread_join(p1, NULL) == 0" L_.str.5: ## @.str.5 .asciz "pthread_join(p2, NULL) == 0" L_.str.6: ## @.str.6 .asciz "main end: a1's balance=%d, a2's balance=%d\n" .subsections_via_symbols
the_stack_data/30504.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, #3 stur w8, [x29, #-4] mov w8, #62915 movk w8, #16456, lsl #16 fmov s0, w8 str s0, [sp, #8] ldr s0, [sp, #8] ldur s1, [x29, #-4] scvtf s1, s1 fmul s0, s0, s1 ldur s1, [x29, #-4] scvtf s1, s1 fmul s0, s0, s1 fcvt d0, s0 mov x8, sp str d0, [x8] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov w0, #0 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "the area of the circul %f\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 0x4048f5c3 ## float 3.1400001 .section __TEXT,__text,regular,pure_instructions .globl _main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $3, -4(%rbp) movss LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, -8(%rbp) movss -8(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtsi2ssl -4(%rbp), %xmm1 mulss %xmm1, %xmm0 cvtsi2ssl -4(%rbp), %xmm1 mulss %xmm1, %xmm0 cvtss2sd %xmm0, %xmm0 leaq L_.str(%rip), %rdi movb $1, %al callq _printf xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "the area of the circul %f\n" .subsections_via_symbols
the_stack_data/476664.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #128 .cfi_def_cfa_offset 128 stp x29, x30, [sp, #112] ; 16-byte Folded Spill add x29, sp, #112 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] stur w0, [x29, #-8] stur x1, [x29, #-16] ldur w8, [x29, #-8] subs w8, w8, #2 cset w8, ge tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: ldur x8, [x29, #-16] ldr x8, [x8] mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov w8, #-1 stur w8, [x29, #-4] b LBB0_25 LBB0_2: mov w0, #0 bl _umask mov w0, #8 sub x1, x29, #48 bl _getrlimit subs w8, w0, #0 cset w8, ge tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _perror b LBB0_4 LBB0_4: bl _fork str w0, [sp, #44] subs w8, w0, #0 cset w8, ge tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _perror b LBB0_9 LBB0_6: ldr w8, [sp, #44] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_8 b LBB0_7 LBB0_7: stur wzr, [x29, #-4] b LBB0_25 LBB0_8: b LBB0_9 LBB0_9: bl _setsid sub x1, x29, #32 mov x8, #1 stur x8, [x29, #-32] stur wzr, [x29, #-24] stur wzr, [x29, #-20] mov w0, #1 mov x2, #0 bl _sigaction subs w8, w0, #0 cset w8, ge tbnz w8, #0, LBB0_11 b LBB0_10 LBB0_10: adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _perror b LBB0_11 LBB0_11: adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _chdir subs w8, w0, #0 cset w8, ge tbnz w8, #0, LBB0_13 b LBB0_12 LBB0_12: adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _perror b LBB0_13 LBB0_13: ldur x8, [x29, #-40] mov x9, #9223372036854775807 subs x8, x8, x9 cset w8, ne tbnz w8, #0, LBB0_15 b LBB0_14 LBB0_14: mov x8, #1024 stur x8, [x29, #-40] b LBB0_15 LBB0_15: str wzr, [sp, #48] b LBB0_16 LBB0_16: ; =>This Inner Loop Header: Depth=1 ldrsw x8, [sp, #48] ldur x9, [x29, #-40] subs x8, x8, x9 cset w8, hs tbnz w8, #0, LBB0_19 b LBB0_17 LBB0_17: ; in Loop: Header=BB0_16 Depth=1 ldr w0, [sp, #48] bl _close b LBB0_18 LBB0_18: ; in Loop: Header=BB0_16 Depth=1 ldr w8, [sp, #48] add w8, w8, #1 str w8, [sp, #48] b LBB0_16 LBB0_19: adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF mov w1, #2 str w1, [sp, #40] ; 4-byte Folded Spill bl _open stur w0, [x29, #-52] mov w0, #0 str w0, [sp, #36] ; 4-byte Folded Spill bl _dup mov x8, x0 ldr w0, [sp, #36] ; 4-byte Folded Reload str w8, [sp, #56] bl _dup ldr w1, [sp, #40] ; 4-byte Folded Reload str w0, [sp, #52] ldur x8, [x29, #-16] ldr x0, [x8, #8] mov w2, #24 bl _openlog ldur w8, [x29, #-52] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_22 b LBB0_20 LBB0_20: ldr w8, [sp, #56] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB0_22 b LBB0_21 LBB0_21: ldr w8, [sp, #52] subs w8, w8, #2 cset w8, eq tbnz w8, #0, LBB0_23 b LBB0_22 LBB0_22: ldur w8, [x29, #-52] ; implicit-def: $x11 mov x11, x8 ldr w8, [sp, #56] ; implicit-def: $x10 mov x10, x8 ldr w9, [sp, #52] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x11, [x9] str x10, [x9, #8] str x8, [x9, #16] mov w0, #3 adrp x1, l_.str.7@PAGE add x1, x1, l_.str.7@PAGEOFF bl _syslog$DARWIN_EXTSN mov w8, #-1 stur w8, [x29, #-4] b LBB0_25 LBB0_23: mov w0, #6 adrp x1, l_.str.8@PAGE add x1, x1, l_.str.8@PAGEOFF bl _syslog$DARWIN_EXTSN b LBB0_24 LBB0_24: ; =>This Inner Loop Header: Depth=1 b LBB0_24 LBB0_25: ldur w0, [x29, #-4] ldp x29, x30, [sp, #112] ; 16-byte Folded Reload add sp, sp, #128 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Usage : %s command\n" l_.str.1: ; @.str.1 .asciz "getlimit()" l_.str.2: ; @.str.2 .asciz "error()" l_.str.3: ; @.str.3 .asciz "sigaction() : Can't ignore SIGHUP" l_.str.4: ; @.str.4 .asciz "/" l_.str.5: ; @.str.5 .asciz "cd()" l_.str.6: ; @.str.6 .asciz "/dev/null" l_.str.7: ; @.str.7 .asciz "unexpected file descriptors %d %d %d" l_.str.8: ; @.str.8 .asciz "Daemon Process" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $80, %rsp movl $0, -4(%rbp) movl %edi, -8(%rbp) movq %rsi, -16(%rbp) cmpl $2, -8(%rbp) jge LBB0_2 ## %bb.1: movq -16(%rbp), %rax movq (%rax), %rsi leaq L_.str(%rip), %rdi movb $0, %al callq _printf movl $-1, -4(%rbp) jmp LBB0_25 LBB0_2: xorl %edi, %edi callq _umask movl $8, %edi leaq -48(%rbp), %rsi callq _getrlimit cmpl $0, %eax jge LBB0_4 ## %bb.3: leaq L_.str.1(%rip), %rdi callq _perror LBB0_4: callq _fork movl %eax, -68(%rbp) cmpl $0, %eax jge LBB0_6 ## %bb.5: leaq L_.str.2(%rip), %rdi callq _perror jmp LBB0_9 LBB0_6: cmpl $0, -68(%rbp) je LBB0_8 ## %bb.7: movl $0, -4(%rbp) jmp LBB0_25 LBB0_8: jmp LBB0_9 LBB0_9: callq _setsid movl $1, %eax movq %rax, -32(%rbp) movl $0, -24(%rbp) movl $0, -20(%rbp) movl $1, %edi leaq -32(%rbp), %rsi xorl %eax, %eax movl %eax, %edx callq _sigaction cmpl $0, %eax jge LBB0_11 ## %bb.10: leaq L_.str.3(%rip), %rdi callq _perror LBB0_11: leaq L_.str.4(%rip), %rdi callq _chdir cmpl $0, %eax jge LBB0_13 ## %bb.12: leaq L_.str.5(%rip), %rdi callq _perror LBB0_13: movabsq $9223372036854775807, %rax ## imm = 0x7FFFFFFFFFFFFFFF cmpq %rax, -40(%rbp) jne LBB0_15 ## %bb.14: movq $1024, -40(%rbp) ## imm = 0x400 LBB0_15: movl $0, -64(%rbp) LBB0_16: ## =>This Inner Loop Header: Depth=1 movslq -64(%rbp), %rax cmpq -40(%rbp), %rax jae LBB0_19 ## %bb.17: ## in Loop: Header=BB0_16 Depth=1 movl -64(%rbp), %edi callq _close ## %bb.18: ## in Loop: Header=BB0_16 Depth=1 movl -64(%rbp), %eax addl $1, %eax movl %eax, -64(%rbp) jmp LBB0_16 LBB0_19: leaq L_.str.6(%rip), %rdi movl $2, %esi movb $0, %al callq _open movl %eax, -52(%rbp) xorl %edi, %edi callq _dup movl %eax, -56(%rbp) xorl %edi, %edi callq _dup movl %eax, -60(%rbp) movq -16(%rbp), %rax movq 8(%rax), %rdi movl $2, %esi movl $24, %edx callq _openlog cmpl $0, -52(%rbp) jne LBB0_22 ## %bb.20: cmpl $1, -56(%rbp) jne LBB0_22 ## %bb.21: cmpl $2, -60(%rbp) je LBB0_23 LBB0_22: movl -52(%rbp), %edx movl -56(%rbp), %ecx movl -60(%rbp), %r8d movl $3, %edi leaq L_.str.7(%rip), %rsi movb $0, %al callq _syslog$DARWIN_EXTSN movl $-1, -4(%rbp) jmp LBB0_25 LBB0_23: movl $6, %edi leaq L_.str.8(%rip), %rsi movb $0, %al callq _syslog$DARWIN_EXTSN LBB0_24: ## =>This Inner Loop Header: Depth=1 jmp LBB0_24 LBB0_25: movl -4(%rbp), %eax addq $80, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Usage : %s command\n" L_.str.1: ## @.str.1 .asciz "getlimit()" L_.str.2: ## @.str.2 .asciz "error()" L_.str.3: ## @.str.3 .asciz "sigaction() : Can't ignore SIGHUP" L_.str.4: ## @.str.4 .asciz "/" L_.str.5: ## @.str.5 .asciz "cd()" L_.str.6: ## @.str.6 .asciz "/dev/null" L_.str.7: ## @.str.7 .asciz "unexpected file descriptors %d %d %d" L_.str.8: ## @.str.8 .asciz "Daemon Process" .subsections_via_symbols
the_stack_data/95450335.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _pollSysfs ; -- Begin function pollSysfs .p2align 2 _pollSysfs: ; @pollSysfs .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] ldur w0, [x29, #-8] sub x1, x29, #13 mov x2, #1 bl _read adds x8, x0, #1 cset w8, ne tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: mov w8, #-1 stur w8, [x29, #-4] b LBB0_10 LBB0_2: ldur w8, [x29, #-8] str w8, [sp, #24] mov w8, #10 strh w8, [sp, #28] strh wzr, [sp, #30] ldur w8, [x29, #-12] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: ldur w8, [x29, #-12] mov w9, #1000 sdiv w8, w8, w9 str w8, [sp, #12] ; 4-byte Folded Spill b LBB0_5 LBB0_4: ldur w8, [x29, #-12] str w8, [sp, #12] ; 4-byte Folded Spill b LBB0_5 LBB0_5: ldr w8, [sp, #12] ; 4-byte Folded Reload str w8, [sp, #20] ldr w2, [sp, #20] add x0, sp, #24 mov w1, #1 bl _poll str w0, [sp, #16] ldr w8, [sp, #16] adds w8, w8, #1 cset w8, ne tbnz w8, #0, LBB0_7 b LBB0_6 LBB0_6: mov w8, #-1 stur w8, [x29, #-4] b LBB0_10 LBB0_7: ldr w0, [sp, #24] mov x1, #0 mov w2, #0 bl _lseek adds x8, x0, #1 cset w8, ne tbnz w8, #0, LBB0_9 b LBB0_8 LBB0_8: mov w8, #-1 stur w8, [x29, #-4] b LBB0_10 LBB0_9: ldr w8, [sp, #16] stur w8, [x29, #-4] b LBB0_10 LBB0_10: ldur w0, [x29, #-4] 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 _pollSysfs ## -- Begin function pollSysfs .p2align 4, 0x90 _pollSysfs: ## @pollSysfs .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) movl -8(%rbp), %edi leaq -13(%rbp), %rsi movl $1, %edx callq _read cmpq $-1, %rax jne LBB0_2 ## %bb.1: movl $-1, -4(%rbp) jmp LBB0_10 LBB0_2: movl -8(%rbp), %eax movl %eax, -24(%rbp) movw $10, -20(%rbp) movw $0, -18(%rbp) cmpl $0, -12(%rbp) jle LBB0_4 ## %bb.3: movl -12(%rbp), %eax movl $1000, %ecx ## imm = 0x3E8 cltd idivl %ecx movl %eax, -36(%rbp) ## 4-byte Spill jmp LBB0_5 LBB0_4: movl -12(%rbp), %eax movl %eax, -36(%rbp) ## 4-byte Spill LBB0_5: movl -36(%rbp), %eax ## 4-byte Reload movl %eax, -28(%rbp) movl -28(%rbp), %edx leaq -24(%rbp), %rdi movl $1, %esi callq _poll movl %eax, -32(%rbp) cmpl $-1, -32(%rbp) jne LBB0_7 ## %bb.6: movl $-1, -4(%rbp) jmp LBB0_10 LBB0_7: movl -24(%rbp), %edi xorl %eax, %eax movl %eax, %esi xorl %edx, %edx callq _lseek cmpq $-1, %rax jne LBB0_9 ## %bb.8: movl $-1, -4(%rbp) jmp LBB0_10 LBB0_9: movl -32(%rbp), %eax movl %eax, -4(%rbp) LBB0_10: movl -4(%rbp), %eax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/32951546.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _uart_config ; -- Begin function uart_config .p2align 2 _uart_config: ; @uart_config .cfi_startproc ; %bb.0: mov x9, #112 movk x9, #22016, lsl #16 ldr w8, [x9] and w8, w8, #0xfffffe1f str w8, [x9] ldr w8, [x9] mov w10, #160 orr w8, w8, w10 str w8, [x9] mov x9, #1342177280 mov w8, #3 str w8, [x9] mov x9, #4 movk x9, #20480, lsl #16 mov w8, #5 str w8, [x9] mov x9, #40 movk x9, #20480, lsl #16 mov w8, #26 str w8, [x9] ret .cfi_endproc ; -- End function .globl _putchar ; -- Begin function putchar .p2align 2 _putchar: ; @putchar .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #8] b LBB1_1 LBB1_1: ; =>This Inner Loop Header: Depth=1 mov x8, #16 movk x8, #20480, lsl #16 ldr w8, [x8] ands w8, w8, #0x4 cset w8, ne tbnz w8, #0, LBB1_3 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 b LBB1_1 LBB1_3: ldr w8, [sp, #8] mov x9, #32 movk x9, #20480, lsl #16 strb w8, [x9] ldr w0, [sp, #12] add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _getchar ; -- Begin function getchar .p2align 2 _getchar: ; @getchar .cfi_startproc ; %bb.0: b LBB2_1 LBB2_1: ; =>This Inner Loop Header: Depth=1 mov x8, #16 movk x8, #20480, lsl #16 ldr w8, [x8] ands w8, w8, #0x1 cset w8, ne tbnz w8, #0, LBB2_3 b LBB2_2 LBB2_2: ; in Loop: Header=BB2_1 Depth=1 b LBB2_1 LBB2_3: mov x8, #36 movk x8, #20480, lsl #16 ldrb w0, [x8] ret .cfi_endproc ; -- End function .globl _puts ; -- Begin function puts .p2align 2 _puts: ; @puts .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] b LBB3_1 LBB3_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp] ldrb w8, [x8] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB3_3 b LBB3_2 LBB3_2: ; in Loop: Header=BB3_1 Depth=1 ldr x8, [sp] add x9, x8, #1 str x9, [sp] ldrsb w0, [x8] bl _putchar b LBB3_1 LBB3_3: ldur w0, [x29, #-4] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _uart_config ## -- Begin function uart_config .p2align 4, 0x90 _uart_config: ## @uart_config .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl $1442840688, %eax ## imm = 0x56000070 movl (%rax), %ecx andl $-481, %ecx ## imm = 0xFE1F movl $1442840688, %eax ## imm = 0x56000070 movl %ecx, (%rax) movl $1442840688, %eax ## imm = 0x56000070 movl (%rax), %ecx orl $160, %ecx movl $1442840688, %eax ## imm = 0x56000070 movl %ecx, (%rax) movl $1342177280, %eax ## imm = 0x50000000 movl $3, (%rax) movl $1342177284, %eax ## imm = 0x50000004 movl $5, (%rax) movl $1342177320, %eax ## imm = 0x50000028 movl $26, (%rax) popq %rbp retq .cfi_endproc ## -- End function .globl _putchar ## -- Begin function putchar .p2align 4, 0x90 _putchar: ## @putchar .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) LBB1_1: ## =>This Inner Loop Header: Depth=1 movl $1342177296, %eax ## imm = 0x50000010 movl (%rax), %eax andl $4, %eax cmpl $0, %eax setne %al xorb $-1, %al testb $1, %al jne LBB1_2 jmp LBB1_3 LBB1_2: ## in Loop: Header=BB1_1 Depth=1 jmp LBB1_1 LBB1_3: movl -8(%rbp), %eax movb %al, %cl movl $1342177312, %eax ## imm = 0x50000020 movb %cl, (%rax) movl -4(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .globl _getchar ## -- Begin function getchar .p2align 4, 0x90 _getchar: ## @getchar .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp jmp LBB2_1 LBB2_1: ## =>This Inner Loop Header: Depth=1 movl $1342177296, %eax ## imm = 0x50000010 movl (%rax), %eax andl $1, %eax cmpl $0, %eax setne %al xorb $-1, %al testb $1, %al jne LBB2_2 jmp LBB2_3 LBB2_2: ## in Loop: Header=BB2_1 Depth=1 jmp LBB2_1 LBB2_3: movl $1342177316, %eax ## imm = 0x50000024 movb (%rax), %al movzbl %al, %eax popq %rbp retq .cfi_endproc ## -- End function .globl _puts ## -- Begin function puts .p2align 4, 0x90 _puts: ## @puts .cfi_startproc ## %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) LBB3_1: ## =>This Inner Loop Header: Depth=1 movq -16(%rbp), %rax cmpb $0, (%rax) je LBB3_3 ## %bb.2: ## in Loop: Header=BB3_1 Depth=1 movq -16(%rbp), %rax movq %rax, %rcx addq $1, %rcx movq %rcx, -16(%rbp) movsbl (%rax), %edi callq _putchar jmp LBB3_1 LBB3_3: movl -4(%rbp), %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/1068457.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] adrp x8, l_.str@PAGE add x8, x8, l_.str@PAGEOFF str x8, [sp, #16] ldr x8, [sp, #16] mov x9, sp str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf 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 "abc" 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 _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %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), %rax movq %rax, -16(%rbp) movq -16(%rbp), %rsi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "abc" L_.str.1: ## @.str.1 .asciz "%s" .subsections_via_symbols
the_stack_data/18887809.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _find_missing_number_among_0_to_n_v1 ; -- Begin function find_missing_number_among_0_to_n_v1 .p2align 2 _find_missing_number_among_0_to_n_v1: ; @find_missing_number_among_0_to_n_v1 .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, #16] str w1, [sp, #12] ldr x8, [sp, #16] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: ldr w8, [sp, #12] subs w8, w8, #0 cset w8, gt tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: mov w8, #-1 str w8, [sp, #28] b LBB0_12 LBB0_3: str wzr, [sp, #8] str wzr, [sp, #4] b LBB0_4 LBB0_4: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #4] ldr w9, [sp, #12] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_7 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_4 Depth=1 ldr w9, [sp, #4] ldr w8, [sp, #8] add w8, w8, w9 str w8, [sp, #8] b LBB0_6 LBB0_6: ; in Loop: Header=BB0_4 Depth=1 ldr w8, [sp, #4] add w8, w8, #1 str w8, [sp, #4] b LBB0_4 LBB0_7: str wzr, [sp, #4] b LBB0_8 LBB0_8: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #4] ldr w9, [sp, #12] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_11 b LBB0_9 LBB0_9: ; in Loop: Header=BB0_8 Depth=1 ldr x8, [sp, #16] ldrsw x9, [sp, #4] ldr w9, [x8, x9, lsl #2] ldr w8, [sp, #8] subs w8, w8, w9 str w8, [sp, #8] b LBB0_10 LBB0_10: ; in Loop: Header=BB0_8 Depth=1 ldr w8, [sp, #4] add w8, w8, #1 str w8, [sp, #4] b LBB0_8 LBB0_11: ldr w8, [sp, #8] str w8, [sp, #28] b LBB0_12 LBB0_12: ldr w0, [sp, #28] add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _find_missing_number_among_0_to_n_v2 ; -- Begin function find_missing_number_among_0_to_n_v2 .p2align 2 _find_missing_number_among_0_to_n_v2: ; @find_missing_number_among_0_to_n_v2 .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, #16] str w1, [sp, #12] ldr x8, [sp, #16] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: ldr w8, [sp, #12] subs w8, w8, #0 cset w8, gt tbnz w8, #0, LBB1_3 b LBB1_2 LBB1_2: mov w8, #-1 str w8, [sp, #28] b LBB1_10 LBB1_3: str wzr, [sp, #8] str wzr, [sp, #4] b LBB1_4 LBB1_4: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #4] ldr w9, [sp, #12] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB1_9 b LBB1_5 LBB1_5: ; in Loop: Header=BB1_4 Depth=1 ldr w9, [sp, #4] ldr w8, [sp, #8] add w8, w8, w9 str w8, [sp, #8] ldr w8, [sp, #4] ldr w9, [sp, #12] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_7 b LBB1_6 LBB1_6: ; in Loop: Header=BB1_4 Depth=1 ldr x8, [sp, #16] ldrsw x9, [sp, #4] ldr w9, [x8, x9, lsl #2] ldr w8, [sp, #8] subs w8, w8, w9 str w8, [sp, #8] b LBB1_7 LBB1_7: ; in Loop: Header=BB1_4 Depth=1 b LBB1_8 LBB1_8: ; in Loop: Header=BB1_4 Depth=1 ldr w8, [sp, #4] add w8, w8, #1 str w8, [sp, #4] b LBB1_4 LBB1_9: ldr w8, [sp, #8] str w8, [sp, #28] b LBB1_10 LBB1_10: ldr w0, [sp, #28] add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _find_missing_number_among_0_to_n_v3 ; -- Begin function find_missing_number_among_0_to_n_v3 .p2align 2 _find_missing_number_among_0_to_n_v3: ; @find_missing_number_among_0_to_n_v3 .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, #16] str w1, [sp, #12] ldr x8, [sp, #16] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB2_2 b LBB2_1 LBB2_1: ldr w8, [sp, #12] subs w8, w8, #0 cset w8, gt tbnz w8, #0, LBB2_3 b LBB2_2 LBB2_2: mov w8, #-1 str w8, [sp, #28] b LBB2_8 LBB2_3: str wzr, [sp, #8] str wzr, [sp, #4] b LBB2_4 LBB2_4: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #4] ldr w9, [sp, #12] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB2_7 b LBB2_5 LBB2_5: ; in Loop: Header=BB2_4 Depth=1 ldr w9, [sp, #4] ldr w8, [sp, #8] add w8, w8, w9 str w8, [sp, #8] ldr x8, [sp, #16] ldrsw x9, [sp, #4] ldr w9, [x8, x9, lsl #2] ldr w8, [sp, #8] subs w8, w8, w9 str w8, [sp, #8] b LBB2_6 LBB2_6: ; in Loop: Header=BB2_4 Depth=1 ldr w8, [sp, #4] add w8, w8, #1 str w8, [sp, #4] b LBB2_4 LBB2_7: ldr w9, [sp, #12] ldr w8, [sp, #8] add w8, w8, w9 str w8, [sp, #8] ldr w8, [sp, #8] str w8, [sp, #28] b LBB2_8 LBB2_8: ldr w0, [sp, #28] add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _find_missing_number_among_0_to_n_v4 ; -- Begin function find_missing_number_among_0_to_n_v4 .p2align 2 _find_missing_number_among_0_to_n_v4: ; @find_missing_number_among_0_to_n_v4 .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, #16] str w1, [sp, #12] ldr x8, [sp, #16] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB3_2 b LBB3_1 LBB3_1: ldr w8, [sp, #12] subs w8, w8, #0 cset w8, gt tbnz w8, #0, LBB3_3 b LBB3_2 LBB3_2: mov w8, #-1 str w8, [sp, #28] b LBB3_8 LBB3_3: str wzr, [sp, #8] str wzr, [sp, #4] b LBB3_4 LBB3_4: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #4] ldr w9, [sp, #12] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB3_7 b LBB3_5 LBB3_5: ; in Loop: Header=BB3_4 Depth=1 ldr w9, [sp, #4] ldr w8, [sp, #8] eor w8, w8, w9 str w8, [sp, #8] ldr x8, [sp, #16] ldrsw x9, [sp, #4] ldr w9, [x8, x9, lsl #2] ldr w8, [sp, #8] eor w8, w8, w9 str w8, [sp, #8] b LBB3_6 LBB3_6: ; in Loop: Header=BB3_4 Depth=1 ldr w8, [sp, #4] add w8, w8, #1 str w8, [sp, #4] b LBB3_4 LBB3_7: ldr w9, [sp, #12] ldr w8, [sp, #8] eor w8, w8, w9 str w8, [sp, #8] ldr w8, [sp, #8] str w8, [sp, #28] b LBB3_8 LBB3_8: ldr w0, [sp, #28] add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #336 .cfi_def_cfa_offset 336 stp x28, x27, [sp, #304] ; 16-byte Folded Spill stp x29, x30, [sp, #320] ; 16-byte Folded Spill add x29, sp, #320 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w27, -24 .cfi_offset w28, -32 sub x8, x29, #40 str x8, [sp, #56] ; 8-byte Folded Spill adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] str wzr, [sp, #96] ; kill: def $x8 killed $xzr str xzr, [sp, #88] mov w8, #10 str w8, [sp, #84] ldr x0, [sp, #88] ldr w1, [sp, #84] bl _find_missing_number_among_0_to_n_v1 mov w8, #-1 subs w8, w8, w0 cset w9, ne ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB4_2 b LBB4_1 LBB4_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, #197 adrp x3, l_.str.1@PAGE add x3, x3, l_.str.1@PAGEOFF bl ___assert_rtn LBB4_2: b LBB4_3 LBB4_3: ldr x0, [sp, #88] ldr w1, [sp, #84] bl _find_missing_number_among_0_to_n_v2 mov w8, #-1 subs w8, w8, w0 cset w9, ne ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB4_5 b LBB4_4 LBB4_4: adrp x0, l___func__.main@PAGE add x0, x0, l___func__.main@PAGEOFF adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF mov w2, #198 adrp x3, l_.str.2@PAGE add x3, x3, l_.str.2@PAGEOFF bl ___assert_rtn LBB4_5: b LBB4_6 LBB4_6: ldr x0, [sp, #88] ldr w1, [sp, #84] bl _find_missing_number_among_0_to_n_v3 mov w8, #-1 subs w8, w8, w0 cset w9, ne ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB4_8 b LBB4_7 LBB4_7: adrp x0, l___func__.main@PAGE add x0, x0, l___func__.main@PAGEOFF adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF mov w2, #199 adrp x3, l_.str.3@PAGE add x3, x3, l_.str.3@PAGEOFF bl ___assert_rtn LBB4_8: b LBB4_9 LBB4_9: ldr x0, [sp, #88] ldr w1, [sp, #84] bl _find_missing_number_among_0_to_n_v4 mov w8, #-1 subs w8, w8, w0 cset w9, ne ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB4_11 b LBB4_10 LBB4_10: adrp x0, l___func__.main@PAGE add x0, x0, l___func__.main@PAGEOFF adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF mov w2, #200 adrp x3, l_.str.4@PAGE add x3, x3, l_.str.4@PAGEOFF bl ___assert_rtn LBB4_11: b LBB4_12 LBB4_12: ldr x10, [sp, #56] ; 8-byte Folded Reload adrp x8, l___const.main.array1@PAGE add x8, x8, l___const.main.array1@PAGEOFF ldr x9, [x8] sub x0, x29, #40 str x9, [x10] ldr w8, [x8, #8] stur w8, [x29, #-32] mov w8, #-10 str w8, [sp, #80] ldr w1, [sp, #80] bl _find_missing_number_among_0_to_n_v1 mov w8, #-1 subs w8, w8, w0 cset w9, ne ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB4_14 b LBB4_13 LBB4_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, #208 adrp x3, l_.str.5@PAGE add x3, x3, l_.str.5@PAGEOFF bl ___assert_rtn LBB4_14: b LBB4_15 LBB4_15: ldr w1, [sp, #80] sub x0, x29, #40 bl _find_missing_number_among_0_to_n_v2 mov w8, #-1 subs w8, w8, w0 cset w9, ne ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB4_17 b LBB4_16 LBB4_16: 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, #209 adrp x3, l_.str.6@PAGE add x3, x3, l_.str.6@PAGEOFF bl ___assert_rtn LBB4_17: b LBB4_18 LBB4_18: ldr w1, [sp, #80] sub x0, x29, #40 bl _find_missing_number_among_0_to_n_v3 mov w8, #-1 subs w8, w8, w0 cset w9, ne ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB4_20 b LBB4_19 LBB4_19: 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, #210 adrp x3, l_.str.7@PAGE add x3, x3, l_.str.7@PAGEOFF bl ___assert_rtn LBB4_20: b LBB4_21 LBB4_21: ldr w1, [sp, #80] sub x0, x29, #40 bl _find_missing_number_among_0_to_n_v4 mov w8, #-1 subs w8, w8, w0 cset w9, ne ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB4_23 b LBB4_22 LBB4_22: adrp x0, l___func__.main@PAGE add x0, x0, l___func__.main@PAGEOFF adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF mov w2, #211 adrp x3, l_.str.8@PAGE add x3, x3, l_.str.8@PAGEOFF bl ___assert_rtn LBB4_23: b LBB4_24 LBB4_24: sub x0, x29, #100 str x0, [sp, #48] ; 8-byte Folded Spill adrp x1, l___const.main.array2@PAGE add x1, x1, l___const.main.array2@PAGEOFF mov x2, #60 bl _memcpy ldr x0, [sp, #48] ; 8-byte Folded Reload mov w8, #15 str w8, [sp, #76] ldr w1, [sp, #76] bl _find_missing_number_among_0_to_n_v1 mov w8, #2 subs w8, w8, w0 cset w9, ne ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB4_26 b LBB4_25 LBB4_25: 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, #219 adrp x3, l_.str.9@PAGE add x3, x3, l_.str.9@PAGEOFF bl ___assert_rtn LBB4_26: b LBB4_27 LBB4_27: ldr w1, [sp, #76] sub x0, x29, #100 bl _find_missing_number_among_0_to_n_v2 mov w8, #2 subs w8, w8, w0 cset w9, ne ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB4_29 b LBB4_28 LBB4_28: 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, #220 adrp x3, l_.str.10@PAGE add x3, x3, l_.str.10@PAGEOFF bl ___assert_rtn LBB4_29: b LBB4_30 LBB4_30: ldr w1, [sp, #76] sub x0, x29, #100 bl _find_missing_number_among_0_to_n_v3 mov w8, #2 subs w8, w8, w0 cset w9, ne ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB4_32 b LBB4_31 LBB4_31: 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, #221 adrp x3, l_.str.11@PAGE add x3, x3, l_.str.11@PAGEOFF bl ___assert_rtn LBB4_32: b LBB4_33 LBB4_33: ldr w1, [sp, #76] sub x0, x29, #100 bl _find_missing_number_among_0_to_n_v4 mov w8, #2 subs w8, w8, w0 cset w9, ne ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB4_35 b LBB4_34 LBB4_34: 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, #222 adrp x3, l_.str.12@PAGE add x3, x3, l_.str.12@PAGEOFF bl ___assert_rtn LBB4_35: b LBB4_36 LBB4_36: add x0, sp, #160 str x0, [sp, #40] ; 8-byte Folded Spill adrp x1, l___const.main.array3@PAGE add x1, x1, l___const.main.array3@PAGEOFF mov x2, #60 bl _memcpy ldr x0, [sp, #40] ; 8-byte Folded Reload mov w8, #15 str w8, [sp, #72] ldr w1, [sp, #72] bl _find_missing_number_among_0_to_n_v1 mov w8, #0 subs w8, w8, w0 cset w9, ne ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB4_38 b LBB4_37 LBB4_37: 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, #230 adrp x3, l_.str.13@PAGE add x3, x3, l_.str.13@PAGEOFF bl ___assert_rtn LBB4_38: b LBB4_39 LBB4_39: ldr w1, [sp, #72] add x0, sp, #160 bl _find_missing_number_among_0_to_n_v2 mov w8, #0 subs w8, w8, w0 cset w9, ne ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB4_41 b LBB4_40 LBB4_40: 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, #231 adrp x3, l_.str.14@PAGE add x3, x3, l_.str.14@PAGEOFF bl ___assert_rtn LBB4_41: b LBB4_42 LBB4_42: ldr w1, [sp, #72] add x0, sp, #160 bl _find_missing_number_among_0_to_n_v3 mov w8, #0 subs w8, w8, w0 cset w9, ne ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB4_44 b LBB4_43 LBB4_43: 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, #232 adrp x3, l_.str.15@PAGE add x3, x3, l_.str.15@PAGEOFF bl ___assert_rtn LBB4_44: b LBB4_45 LBB4_45: ldr w1, [sp, #72] add x0, sp, #160 bl _find_missing_number_among_0_to_n_v4 mov w8, #0 subs w8, w8, w0 cset w9, ne ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB4_47 b LBB4_46 LBB4_46: 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, #233 adrp x3, l_.str.16@PAGE add x3, x3, l_.str.16@PAGEOFF bl ___assert_rtn LBB4_47: b LBB4_48 LBB4_48: add x0, sp, #100 str x0, [sp, #24] ; 8-byte Folded Spill adrp x1, l___const.main.array4@PAGE add x1, x1, l___const.main.array4@PAGEOFF mov x2, #60 bl _memcpy ldr x0, [sp, #24] ; 8-byte Folded Reload mov w8, #15 str w8, [sp, #68] ldr w8, [sp, #68] str w8, [sp, #36] ; 4-byte Folded Spill ldr w1, [sp, #68] bl _find_missing_number_among_0_to_n_v1 ldr w8, [sp, #36] ; 4-byte Folded Reload subs w8, w8, w0 cset w9, ne ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB4_50 b LBB4_49 LBB4_49: adrp x0, l___func__.main@PAGE add x0, x0, l___func__.main@PAGEOFF adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF mov w2, #241 adrp x3, l_.str.17@PAGE add x3, x3, l_.str.17@PAGEOFF bl ___assert_rtn LBB4_50: b LBB4_51 LBB4_51: ldr w8, [sp, #68] str w8, [sp, #20] ; 4-byte Folded Spill ldr w1, [sp, #68] add x0, sp, #100 bl _find_missing_number_among_0_to_n_v2 ldr w8, [sp, #20] ; 4-byte Folded Reload subs w8, w8, w0 cset w9, ne ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB4_53 b LBB4_52 LBB4_52: 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, #242 adrp x3, l_.str.18@PAGE add x3, x3, l_.str.18@PAGEOFF bl ___assert_rtn LBB4_53: b LBB4_54 LBB4_54: ldr w8, [sp, #68] str w8, [sp, #16] ; 4-byte Folded Spill ldr w1, [sp, #68] add x0, sp, #100 bl _find_missing_number_among_0_to_n_v3 ldr w8, [sp, #16] ; 4-byte Folded Reload subs w8, w8, w0 cset w9, ne ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB4_56 b LBB4_55 LBB4_55: 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, #243 adrp x3, l_.str.19@PAGE add x3, x3, l_.str.19@PAGEOFF bl ___assert_rtn LBB4_56: b LBB4_57 LBB4_57: ldr w8, [sp, #68] str w8, [sp, #12] ; 4-byte Folded Spill ldr w1, [sp, #68] add x0, sp, #100 bl _find_missing_number_among_0_to_n_v4 ldr w8, [sp, #12] ; 4-byte Folded Reload subs w8, w8, w0 cset w9, ne ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB4_59 b LBB4_58 LBB4_58: 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, #244 adrp x3, l_.str.20@PAGE add x3, x3, l_.str.20@PAGEOFF bl ___assert_rtn LBB4_59: b LBB4_60 LBB4_60: ldur x9, [x29, #-24] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB4_62 b LBB4_61 LBB4_61: bl ___stack_chk_fail LBB4_62: mov w0, #0 ldp x29, x30, [sp, #320] ; 16-byte Folded Reload ldp x28, x27, [sp, #304] ; 16-byte Folded Reload add sp, sp, #336 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l___func__.main: ; @__func__.main .asciz "main" l_.str: ; @.str .asciz "969100.c" l_.str.1: ; @.str.1 .asciz "ILLEGAL == find_missing_number_among_0_to_n_v1(array0, len0)" l_.str.2: ; @.str.2 .asciz "ILLEGAL == find_missing_number_among_0_to_n_v2(array0, len0)" l_.str.3: ; @.str.3 .asciz "ILLEGAL == find_missing_number_among_0_to_n_v3(array0, len0)" l_.str.4: ; @.str.4 .asciz "ILLEGAL == find_missing_number_among_0_to_n_v4(array0, len0)" .section __TEXT,__const .p2align 2 ; @__const.main.array1 l___const.main.array1: .long 0 ; 0x0 .long 1 ; 0x1 .long 3 ; 0x3 .section __TEXT,__cstring,cstring_literals l_.str.5: ; @.str.5 .asciz "ILLEGAL == find_missing_number_among_0_to_n_v1(array1, len1)" l_.str.6: ; @.str.6 .asciz "ILLEGAL == find_missing_number_among_0_to_n_v2(array1, len1)" l_.str.7: ; @.str.7 .asciz "ILLEGAL == find_missing_number_among_0_to_n_v3(array1, len1)" l_.str.8: ; @.str.8 .asciz "ILLEGAL == find_missing_number_among_0_to_n_v4(array1, len1)" .section __TEXT,__const .p2align 2 ; @__const.main.array2 l___const.main.array2: .long 0 ; 0x0 .long 1 ; 0x1 .long 3 ; 0x3 .long 4 ; 0x4 .long 5 ; 0x5 .long 6 ; 0x6 .long 7 ; 0x7 .long 8 ; 0x8 .long 9 ; 0x9 .long 10 ; 0xa .long 11 ; 0xb .long 12 ; 0xc .long 13 ; 0xd .long 14 ; 0xe .long 15 ; 0xf .section __TEXT,__cstring,cstring_literals l_.str.9: ; @.str.9 .asciz "2 == find_missing_number_among_0_to_n_v1(array2, len2)" l_.str.10: ; @.str.10 .asciz "2 == find_missing_number_among_0_to_n_v2(array2, len2)" l_.str.11: ; @.str.11 .asciz "2 == find_missing_number_among_0_to_n_v3(array2, len2)" l_.str.12: ; @.str.12 .asciz "2 == find_missing_number_among_0_to_n_v4(array2, len2)" .section __TEXT,__const .p2align 2 ; @__const.main.array3 l___const.main.array3: .long 1 ; 0x1 .long 2 ; 0x2 .long 3 ; 0x3 .long 4 ; 0x4 .long 5 ; 0x5 .long 6 ; 0x6 .long 7 ; 0x7 .long 8 ; 0x8 .long 9 ; 0x9 .long 10 ; 0xa .long 11 ; 0xb .long 12 ; 0xc .long 13 ; 0xd .long 14 ; 0xe .long 15 ; 0xf .section __TEXT,__cstring,cstring_literals l_.str.13: ; @.str.13 .asciz "0 == find_missing_number_among_0_to_n_v1(array3, len3)" l_.str.14: ; @.str.14 .asciz "0 == find_missing_number_among_0_to_n_v2(array3, len3)" l_.str.15: ; @.str.15 .asciz "0 == find_missing_number_among_0_to_n_v3(array3, len3)" l_.str.16: ; @.str.16 .asciz "0 == find_missing_number_among_0_to_n_v4(array3, len3)" .section __TEXT,__const .p2align 2 ; @__const.main.array4 l___const.main.array4: .long 0 ; 0x0 .long 1 ; 0x1 .long 2 ; 0x2 .long 3 ; 0x3 .long 4 ; 0x4 .long 5 ; 0x5 .long 6 ; 0x6 .long 7 ; 0x7 .long 8 ; 0x8 .long 9 ; 0x9 .long 10 ; 0xa .long 11 ; 0xb .long 12 ; 0xc .long 13 ; 0xd .long 14 ; 0xe .section __TEXT,__cstring,cstring_literals l_.str.17: ; @.str.17 .asciz "len4 == find_missing_number_among_0_to_n_v1(array4, len4)" l_.str.18: ; @.str.18 .asciz "len4 == find_missing_number_among_0_to_n_v2(array4, len4)" l_.str.19: ; @.str.19 .asciz "len4 == find_missing_number_among_0_to_n_v3(array4, len4)" l_.str.20: ; @.str.20 .asciz "len4 == find_missing_number_among_0_to_n_v4(array4, len4)" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _find_missing_number_among_0_to_n_v1 ## -- Begin function find_missing_number_among_0_to_n_v1 .p2align 4, 0x90 _find_missing_number_among_0_to_n_v1: ## @find_missing_number_among_0_to_n_v1 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -16(%rbp) movl %esi, -20(%rbp) cmpq $0, -16(%rbp) je LBB0_2 ## %bb.1: cmpl $0, -20(%rbp) jg LBB0_3 LBB0_2: movl $-1, -4(%rbp) jmp LBB0_12 LBB0_3: movl $0, -24(%rbp) movl $0, -28(%rbp) LBB0_4: ## =>This Inner Loop Header: Depth=1 movl -28(%rbp), %eax cmpl -20(%rbp), %eax jg LBB0_7 ## %bb.5: ## in Loop: Header=BB0_4 Depth=1 movl -28(%rbp), %eax addl -24(%rbp), %eax movl %eax, -24(%rbp) ## %bb.6: ## in Loop: Header=BB0_4 Depth=1 movl -28(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) jmp LBB0_4 LBB0_7: movl $0, -28(%rbp) LBB0_8: ## =>This Inner Loop Header: Depth=1 movl -28(%rbp), %eax cmpl -20(%rbp), %eax jge LBB0_11 ## %bb.9: ## in Loop: Header=BB0_8 Depth=1 movq -16(%rbp), %rax movslq -28(%rbp), %rcx movl (%rax,%rcx,4), %ecx movl -24(%rbp), %eax subl %ecx, %eax movl %eax, -24(%rbp) ## %bb.10: ## in Loop: Header=BB0_8 Depth=1 movl -28(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) jmp LBB0_8 LBB0_11: movl -24(%rbp), %eax movl %eax, -4(%rbp) LBB0_12: movl -4(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .globl _find_missing_number_among_0_to_n_v2 ## -- Begin function find_missing_number_among_0_to_n_v2 .p2align 4, 0x90 _find_missing_number_among_0_to_n_v2: ## @find_missing_number_among_0_to_n_v2 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -16(%rbp) movl %esi, -20(%rbp) cmpq $0, -16(%rbp) je LBB1_2 ## %bb.1: cmpl $0, -20(%rbp) jg LBB1_3 LBB1_2: movl $-1, -4(%rbp) jmp LBB1_10 LBB1_3: movl $0, -24(%rbp) movl $0, -28(%rbp) LBB1_4: ## =>This Inner Loop Header: Depth=1 movl -28(%rbp), %eax cmpl -20(%rbp), %eax jg LBB1_9 ## %bb.5: ## in Loop: Header=BB1_4 Depth=1 movl -28(%rbp), %eax addl -24(%rbp), %eax movl %eax, -24(%rbp) movl -28(%rbp), %eax cmpl -20(%rbp), %eax jge LBB1_7 ## %bb.6: ## in Loop: Header=BB1_4 Depth=1 movq -16(%rbp), %rax movslq -28(%rbp), %rcx movl (%rax,%rcx,4), %ecx movl -24(%rbp), %eax subl %ecx, %eax movl %eax, -24(%rbp) LBB1_7: ## in Loop: Header=BB1_4 Depth=1 jmp LBB1_8 LBB1_8: ## in Loop: Header=BB1_4 Depth=1 movl -28(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) jmp LBB1_4 LBB1_9: movl -24(%rbp), %eax movl %eax, -4(%rbp) LBB1_10: movl -4(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .globl _find_missing_number_among_0_to_n_v3 ## -- Begin function find_missing_number_among_0_to_n_v3 .p2align 4, 0x90 _find_missing_number_among_0_to_n_v3: ## @find_missing_number_among_0_to_n_v3 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -16(%rbp) movl %esi, -20(%rbp) cmpq $0, -16(%rbp) je LBB2_2 ## %bb.1: cmpl $0, -20(%rbp) jg LBB2_3 LBB2_2: movl $-1, -4(%rbp) jmp LBB2_8 LBB2_3: movl $0, -24(%rbp) movl $0, -28(%rbp) LBB2_4: ## =>This Inner Loop Header: Depth=1 movl -28(%rbp), %eax cmpl -20(%rbp), %eax jge LBB2_7 ## %bb.5: ## in Loop: Header=BB2_4 Depth=1 movl -28(%rbp), %eax addl -24(%rbp), %eax movl %eax, -24(%rbp) movq -16(%rbp), %rax movslq -28(%rbp), %rcx movl (%rax,%rcx,4), %ecx movl -24(%rbp), %eax subl %ecx, %eax movl %eax, -24(%rbp) ## %bb.6: ## in Loop: Header=BB2_4 Depth=1 movl -28(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) jmp LBB2_4 LBB2_7: movl -20(%rbp), %eax addl -24(%rbp), %eax movl %eax, -24(%rbp) movl -24(%rbp), %eax movl %eax, -4(%rbp) LBB2_8: movl -4(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .globl _find_missing_number_among_0_to_n_v4 ## -- Begin function find_missing_number_among_0_to_n_v4 .p2align 4, 0x90 _find_missing_number_among_0_to_n_v4: ## @find_missing_number_among_0_to_n_v4 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -16(%rbp) movl %esi, -20(%rbp) cmpq $0, -16(%rbp) je LBB3_2 ## %bb.1: cmpl $0, -20(%rbp) jg LBB3_3 LBB3_2: movl $-1, -4(%rbp) jmp LBB3_8 LBB3_3: movl $0, -24(%rbp) movl $0, -28(%rbp) LBB3_4: ## =>This Inner Loop Header: Depth=1 movl -28(%rbp), %eax cmpl -20(%rbp), %eax jge LBB3_7 ## %bb.5: ## in Loop: Header=BB3_4 Depth=1 movl -28(%rbp), %eax xorl -24(%rbp), %eax movl %eax, -24(%rbp) movq -16(%rbp), %rax movslq -28(%rbp), %rcx movl (%rax,%rcx,4), %eax xorl -24(%rbp), %eax movl %eax, -24(%rbp) ## %bb.6: ## in Loop: Header=BB3_4 Depth=1 movl -28(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) jmp LBB3_4 LBB3_7: movl -20(%rbp), %eax xorl -24(%rbp), %eax movl %eax, -24(%rbp) movl -24(%rbp), %eax movl %eax, -4(%rbp) LBB3_8: movl -4(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $272, %rsp ## imm = 0x110 movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -212(%rbp) movq $0, -224(%rbp) movl $10, -228(%rbp) movq -224(%rbp), %rdi movl -228(%rbp), %esi callq _find_missing_number_among_0_to_n_v1 movl %eax, %ecx movl $4294967295, %eax ## imm = 0xFFFFFFFF cmpl %ecx, %eax sete %al xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB4_2 ## %bb.1: leaq L___func__.main(%rip), %rdi leaq L_.str(%rip), %rsi leaq L_.str.1(%rip), %rcx movl $197, %edx callq ___assert_rtn LBB4_2: jmp LBB4_3 LBB4_3: movq -224(%rbp), %rdi movl -228(%rbp), %esi callq _find_missing_number_among_0_to_n_v2 movl %eax, %ecx movl $4294967295, %eax ## imm = 0xFFFFFFFF cmpl %ecx, %eax sete %al xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB4_5 ## %bb.4: leaq L___func__.main(%rip), %rdi leaq L_.str(%rip), %rsi leaq L_.str.2(%rip), %rcx movl $198, %edx callq ___assert_rtn LBB4_5: jmp LBB4_6 LBB4_6: movq -224(%rbp), %rdi movl -228(%rbp), %esi callq _find_missing_number_among_0_to_n_v3 movl %eax, %ecx movl $4294967295, %eax ## imm = 0xFFFFFFFF cmpl %ecx, %eax sete %al xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB4_8 ## %bb.7: leaq L___func__.main(%rip), %rdi leaq L_.str(%rip), %rsi leaq L_.str.3(%rip), %rcx movl $199, %edx callq ___assert_rtn LBB4_8: jmp LBB4_9 LBB4_9: movq -224(%rbp), %rdi movl -228(%rbp), %esi callq _find_missing_number_among_0_to_n_v4 movl %eax, %ecx movl $4294967295, %eax ## imm = 0xFFFFFFFF cmpl %ecx, %eax sete %al xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB4_11 ## %bb.10: leaq L___func__.main(%rip), %rdi leaq L_.str(%rip), %rsi leaq L_.str.4(%rip), %rcx movl $200, %edx callq ___assert_rtn LBB4_11: jmp LBB4_12 LBB4_12: movq l___const.main.array1(%rip), %rax movq %rax, -20(%rbp) movl l___const.main.array1+8(%rip), %eax movl %eax, -12(%rbp) movl $-10, -232(%rbp) leaq -20(%rbp), %rdi movl -232(%rbp), %esi callq _find_missing_number_among_0_to_n_v1 movl %eax, %ecx movl $4294967295, %eax ## imm = 0xFFFFFFFF cmpl %ecx, %eax sete %al xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB4_14 ## %bb.13: leaq L___func__.main(%rip), %rdi leaq L_.str(%rip), %rsi leaq L_.str.5(%rip), %rcx movl $208, %edx callq ___assert_rtn LBB4_14: jmp LBB4_15 LBB4_15: leaq -20(%rbp), %rdi movl -232(%rbp), %esi callq _find_missing_number_among_0_to_n_v2 movl %eax, %ecx movl $4294967295, %eax ## imm = 0xFFFFFFFF cmpl %ecx, %eax sete %al xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB4_17 ## %bb.16: leaq L___func__.main(%rip), %rdi leaq L_.str(%rip), %rsi leaq L_.str.6(%rip), %rcx movl $209, %edx callq ___assert_rtn LBB4_17: jmp LBB4_18 LBB4_18: leaq -20(%rbp), %rdi movl -232(%rbp), %esi callq _find_missing_number_among_0_to_n_v3 movl %eax, %ecx movl $4294967295, %eax ## imm = 0xFFFFFFFF cmpl %ecx, %eax sete %al xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB4_20 ## %bb.19: leaq L___func__.main(%rip), %rdi leaq L_.str(%rip), %rsi leaq L_.str.7(%rip), %rcx movl $210, %edx callq ___assert_rtn LBB4_20: jmp LBB4_21 LBB4_21: leaq -20(%rbp), %rdi movl -232(%rbp), %esi callq _find_missing_number_among_0_to_n_v4 movl %eax, %ecx movl $4294967295, %eax ## imm = 0xFFFFFFFF cmpl %ecx, %eax sete %al xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB4_23 ## %bb.22: leaq L___func__.main(%rip), %rdi leaq L_.str(%rip), %rsi leaq L_.str.8(%rip), %rcx movl $211, %edx callq ___assert_rtn LBB4_23: jmp LBB4_24 LBB4_24: leaq -80(%rbp), %rdi leaq l___const.main.array2(%rip), %rsi movl $60, %edx callq _memcpy movl $15, -236(%rbp) leaq -80(%rbp), %rdi movl -236(%rbp), %esi callq _find_missing_number_among_0_to_n_v1 movl %eax, %ecx movl $2, %eax cmpl %ecx, %eax sete %al xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB4_26 ## %bb.25: leaq L___func__.main(%rip), %rdi leaq L_.str(%rip), %rsi leaq L_.str.9(%rip), %rcx movl $219, %edx callq ___assert_rtn LBB4_26: jmp LBB4_27 LBB4_27: leaq -80(%rbp), %rdi movl -236(%rbp), %esi callq _find_missing_number_among_0_to_n_v2 movl %eax, %ecx movl $2, %eax cmpl %ecx, %eax sete %al xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB4_29 ## %bb.28: leaq L___func__.main(%rip), %rdi leaq L_.str(%rip), %rsi leaq L_.str.10(%rip), %rcx movl $220, %edx callq ___assert_rtn LBB4_29: jmp LBB4_30 LBB4_30: leaq -80(%rbp), %rdi movl -236(%rbp), %esi callq _find_missing_number_among_0_to_n_v3 movl %eax, %ecx movl $2, %eax cmpl %ecx, %eax sete %al xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB4_32 ## %bb.31: leaq L___func__.main(%rip), %rdi leaq L_.str(%rip), %rsi leaq L_.str.11(%rip), %rcx movl $221, %edx callq ___assert_rtn LBB4_32: jmp LBB4_33 LBB4_33: leaq -80(%rbp), %rdi movl -236(%rbp), %esi callq _find_missing_number_among_0_to_n_v4 movl %eax, %ecx movl $2, %eax cmpl %ecx, %eax sete %al xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB4_35 ## %bb.34: leaq L___func__.main(%rip), %rdi leaq L_.str(%rip), %rsi leaq L_.str.12(%rip), %rcx movl $222, %edx callq ___assert_rtn LBB4_35: jmp LBB4_36 LBB4_36: leaq -144(%rbp), %rdi leaq l___const.main.array3(%rip), %rsi movl $60, %edx callq _memcpy movl $15, -240(%rbp) leaq -144(%rbp), %rdi movl -240(%rbp), %esi callq _find_missing_number_among_0_to_n_v1 movl %eax, %ecx xorl %eax, %eax cmpl %ecx, %eax sete %al xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB4_38 ## %bb.37: leaq L___func__.main(%rip), %rdi leaq L_.str(%rip), %rsi leaq L_.str.13(%rip), %rcx movl $230, %edx callq ___assert_rtn LBB4_38: jmp LBB4_39 LBB4_39: leaq -144(%rbp), %rdi movl -240(%rbp), %esi callq _find_missing_number_among_0_to_n_v2 movl %eax, %ecx xorl %eax, %eax cmpl %ecx, %eax sete %al xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB4_41 ## %bb.40: leaq L___func__.main(%rip), %rdi leaq L_.str(%rip), %rsi leaq L_.str.14(%rip), %rcx movl $231, %edx callq ___assert_rtn LBB4_41: jmp LBB4_42 LBB4_42: leaq -144(%rbp), %rdi movl -240(%rbp), %esi callq _find_missing_number_among_0_to_n_v3 movl %eax, %ecx xorl %eax, %eax cmpl %ecx, %eax sete %al xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB4_44 ## %bb.43: leaq L___func__.main(%rip), %rdi leaq L_.str(%rip), %rsi leaq L_.str.15(%rip), %rcx movl $232, %edx callq ___assert_rtn LBB4_44: jmp LBB4_45 LBB4_45: leaq -144(%rbp), %rdi movl -240(%rbp), %esi callq _find_missing_number_among_0_to_n_v4 movl %eax, %ecx xorl %eax, %eax cmpl %ecx, %eax sete %al xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB4_47 ## %bb.46: leaq L___func__.main(%rip), %rdi leaq L_.str(%rip), %rsi leaq L_.str.16(%rip), %rcx movl $233, %edx callq ___assert_rtn LBB4_47: jmp LBB4_48 LBB4_48: leaq -208(%rbp), %rdi leaq l___const.main.array4(%rip), %rsi movl $60, %edx callq _memcpy movl $15, -244(%rbp) movl -244(%rbp), %eax movl %eax, -248(%rbp) ## 4-byte Spill leaq -208(%rbp), %rdi movl -244(%rbp), %esi callq _find_missing_number_among_0_to_n_v1 movl %eax, %ecx movl -248(%rbp), %eax ## 4-byte Reload cmpl %ecx, %eax sete %al xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB4_50 ## %bb.49: leaq L___func__.main(%rip), %rdi leaq L_.str(%rip), %rsi leaq L_.str.17(%rip), %rcx movl $241, %edx callq ___assert_rtn LBB4_50: jmp LBB4_51 LBB4_51: movl -244(%rbp), %eax movl %eax, -252(%rbp) ## 4-byte Spill leaq -208(%rbp), %rdi movl -244(%rbp), %esi callq _find_missing_number_among_0_to_n_v2 movl %eax, %ecx movl -252(%rbp), %eax ## 4-byte Reload cmpl %ecx, %eax sete %al xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB4_53 ## %bb.52: leaq L___func__.main(%rip), %rdi leaq L_.str(%rip), %rsi leaq L_.str.18(%rip), %rcx movl $242, %edx callq ___assert_rtn LBB4_53: jmp LBB4_54 LBB4_54: movl -244(%rbp), %eax movl %eax, -256(%rbp) ## 4-byte Spill leaq -208(%rbp), %rdi movl -244(%rbp), %esi callq _find_missing_number_among_0_to_n_v3 movl %eax, %ecx movl -256(%rbp), %eax ## 4-byte Reload cmpl %ecx, %eax sete %al xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB4_56 ## %bb.55: leaq L___func__.main(%rip), %rdi leaq L_.str(%rip), %rsi leaq L_.str.19(%rip), %rcx movl $243, %edx callq ___assert_rtn LBB4_56: jmp LBB4_57 LBB4_57: movl -244(%rbp), %eax movl %eax, -260(%rbp) ## 4-byte Spill leaq -208(%rbp), %rdi movl -244(%rbp), %esi callq _find_missing_number_among_0_to_n_v4 movl %eax, %ecx movl -260(%rbp), %eax ## 4-byte Reload cmpl %ecx, %eax sete %al xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB4_59 ## %bb.58: leaq L___func__.main(%rip), %rdi leaq L_.str(%rip), %rsi leaq L_.str.20(%rip), %rcx movl $244, %edx callq ___assert_rtn LBB4_59: jmp LBB4_60 LBB4_60: movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB4_62 ## %bb.61: xorl %eax, %eax addq $272, %rsp ## imm = 0x110 popq %rbp retq LBB4_62: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L___func__.main: ## @__func__.main .asciz "main" L_.str: ## @.str .asciz "969100.c" L_.str.1: ## @.str.1 .asciz "ILLEGAL == find_missing_number_among_0_to_n_v1(array0, len0)" L_.str.2: ## @.str.2 .asciz "ILLEGAL == find_missing_number_among_0_to_n_v2(array0, len0)" L_.str.3: ## @.str.3 .asciz "ILLEGAL == find_missing_number_among_0_to_n_v3(array0, len0)" L_.str.4: ## @.str.4 .asciz "ILLEGAL == find_missing_number_among_0_to_n_v4(array0, len0)" .section __TEXT,__const .p2align 2 ## @__const.main.array1 l___const.main.array1: .long 0 ## 0x0 .long 1 ## 0x1 .long 3 ## 0x3 .section __TEXT,__cstring,cstring_literals L_.str.5: ## @.str.5 .asciz "ILLEGAL == find_missing_number_among_0_to_n_v1(array1, len1)" L_.str.6: ## @.str.6 .asciz "ILLEGAL == find_missing_number_among_0_to_n_v2(array1, len1)" L_.str.7: ## @.str.7 .asciz "ILLEGAL == find_missing_number_among_0_to_n_v3(array1, len1)" L_.str.8: ## @.str.8 .asciz "ILLEGAL == find_missing_number_among_0_to_n_v4(array1, len1)" .section __TEXT,__const .p2align 4 ## @__const.main.array2 l___const.main.array2: .long 0 ## 0x0 .long 1 ## 0x1 .long 3 ## 0x3 .long 4 ## 0x4 .long 5 ## 0x5 .long 6 ## 0x6 .long 7 ## 0x7 .long 8 ## 0x8 .long 9 ## 0x9 .long 10 ## 0xa .long 11 ## 0xb .long 12 ## 0xc .long 13 ## 0xd .long 14 ## 0xe .long 15 ## 0xf .section __TEXT,__cstring,cstring_literals L_.str.9: ## @.str.9 .asciz "2 == find_missing_number_among_0_to_n_v1(array2, len2)" L_.str.10: ## @.str.10 .asciz "2 == find_missing_number_among_0_to_n_v2(array2, len2)" L_.str.11: ## @.str.11 .asciz "2 == find_missing_number_among_0_to_n_v3(array2, len2)" L_.str.12: ## @.str.12 .asciz "2 == find_missing_number_among_0_to_n_v4(array2, len2)" .section __TEXT,__const .p2align 4 ## @__const.main.array3 l___const.main.array3: .long 1 ## 0x1 .long 2 ## 0x2 .long 3 ## 0x3 .long 4 ## 0x4 .long 5 ## 0x5 .long 6 ## 0x6 .long 7 ## 0x7 .long 8 ## 0x8 .long 9 ## 0x9 .long 10 ## 0xa .long 11 ## 0xb .long 12 ## 0xc .long 13 ## 0xd .long 14 ## 0xe .long 15 ## 0xf .section __TEXT,__cstring,cstring_literals L_.str.13: ## @.str.13 .asciz "0 == find_missing_number_among_0_to_n_v1(array3, len3)" L_.str.14: ## @.str.14 .asciz "0 == find_missing_number_among_0_to_n_v2(array3, len3)" L_.str.15: ## @.str.15 .asciz "0 == find_missing_number_among_0_to_n_v3(array3, len3)" L_.str.16: ## @.str.16 .asciz "0 == find_missing_number_among_0_to_n_v4(array3, len3)" .section __TEXT,__const .p2align 4 ## @__const.main.array4 l___const.main.array4: .long 0 ## 0x0 .long 1 ## 0x1 .long 2 ## 0x2 .long 3 ## 0x3 .long 4 ## 0x4 .long 5 ## 0x5 .long 6 ## 0x6 .long 7 ## 0x7 .long 8 ## 0x8 .long 9 ## 0x9 .long 10 ## 0xa .long 11 ## 0xb .long 12 ## 0xc .long 13 ## 0xd .long 14 ## 0xe .section __TEXT,__cstring,cstring_literals L_.str.17: ## @.str.17 .asciz "len4 == find_missing_number_among_0_to_n_v1(array4, len4)" L_.str.18: ## @.str.18 .asciz "len4 == find_missing_number_among_0_to_n_v2(array4, len4)" L_.str.19: ## @.str.19 .asciz "len4 == find_missing_number_among_0_to_n_v3(array4, len4)" L_.str.20: ## @.str.20 .asciz "len4 == find_missing_number_among_0_to_n_v4(array4, len4)" .subsections_via_symbols
the_stack_data/969100.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, _a@GOTPAGE ldr x8, [x8, _a@GOTPAGEOFF] str x8, [sp, #32] ; 8-byte Folded Spill adrp x8, _b@GOTPAGE ldr x8, [x8, _b@GOTPAGEOFF] str x8, [sp, #40] ; 8-byte Folded Spill adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] str x8, [sp, #24] ; 8-byte Folded Spill stur wzr, [x29, #-4] stur w0, [x29, #-8] stur x1, [x29, #-16] ldur x8, [x29, #-16] ldr x0, [x8, #8] adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF bl _fopen stur x0, [x29, #-24] ldur x8, [x29, #-16] ldr x0, [x8, #16] adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF bl _fopen ldr x10, [sp, #32] ; 8-byte Folded Reload ldr x8, [sp, #40] ; 8-byte Folded Reload stur x0, [x29, #-32] ldur x0, [x29, #-24] mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x1, l_.str.2@PAGE add x1, x1, l_.str.2@PAGEOFF bl _fscanf ldur x0, [x29, #-24] bl _fclose ldr x10, [sp, #24] ; 8-byte Folded Reload ldr x9, [sp, #32] ; 8-byte Folded Reload ldr x8, [sp, #40] ; 8-byte Folded Reload ldr x0, [x10] ldr w9, [x9] ; implicit-def: $x10 mov x10, x9 ldr w9, [x8] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x1, l_.str.3@PAGE add x1, x1, l_.str.3@PAGEOFF bl _fprintf ldr x8, [sp, #24] ; 8-byte Folded Reload ldr x0, [x8] bl _fflush ldr x8, [sp, #32] ; 8-byte Folded Reload ldr x9, [sp, #40] ; 8-byte Folded Reload ldr w8, [x8] ldr w9, [x9] subs w8, w8, w9 cset w9, gt ; 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.4@PAGE add x1, x1, l_.str.4@PAGEOFF mov w2, #14 adrp x3, l_.str.5@PAGE add x3, x3, l_.str.5@PAGEOFF bl ___assert_rtn LBB0_2: b LBB0_3 LBB0_3: ldr x8, [sp, #40] ; 8-byte Folded Reload ldr w9, [x8] ; 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 adrp x8, ___stdoutp@GOTPAGE ldr x8, [x8, ___stdoutp@GOTPAGEOFF] ldr x0, [x8] bl _fflush mov w8, #1 stur w8, [x29, #-36] b LBB0_4 LBB0_4: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-36] subs w8, w8, #30 cset w8, gt tbnz w8, #0, LBB0_16 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_4 Depth=1 mov x9, sp sub x8, x29, #41 str x8, [sp, #16] ; 8-byte Folded Spill str x8, [x9] add x8, sp, #48 str x8, [x9, #8] adrp x0, l_.str.7@PAGE add x0, x0, l_.str.7@PAGEOFF bl _scanf ldr x8, [sp, #24] ; 8-byte Folded Reload ldr x10, [sp, #16] ; 8-byte Folded Reload ldr x0, [x8] ldr w9, [sp, #48] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x1, l_.str.8@PAGE add x1, x1, l_.str.8@PAGEOFF bl _fprintf ldursb w8, [x29, #-41] subs w8, w8, #63 cset w8, ne tbnz w8, #0, LBB0_7 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_4 Depth=1 ldr x8, [sp, #32] ; 8-byte Folded Reload ldr w8, [x8] ldr w9, [sp, #48] subs w8, w8, w9 cset w10, ge mov x9, sp ; implicit-def: $x8 mov x8, x10 and x8, x8, #0x1 str x8, [x9] adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _printf adrp x8, ___stdoutp@GOTPAGE ldr x8, [x8, ___stdoutp@GOTPAGEOFF] ldr x0, [x8] bl _fflush b LBB0_14 LBB0_7: ldursb w8, [x29, #-41] subs w8, w8, #33 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.4@PAGE add x1, x1, l_.str.4@PAGEOFF mov w2, #29 adrp x3, l_.str.9@PAGE add x3, x3, l_.str.9@PAGEOFF bl ___assert_rtn LBB0_9: b LBB0_10 LBB0_10: ldr x9, [sp, #32] ; 8-byte Folded Reload ldr w8, [sp, #48] ldr w9, [x9] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_12 b LBB0_11 LBB0_11: ldur x0, [x29, #-32] adrp x1, l_.str.10@PAGE add x1, x1, l_.str.10@PAGEOFF bl _fprintf b LBB0_13 LBB0_12: ldur x0, [x29, #-32] adrp x1, l_.str.11@PAGE add x1, x1, l_.str.11@PAGEOFF bl _fprintf b LBB0_13 LBB0_13: stur wzr, [x29, #-4] b LBB0_17 LBB0_14: ; in Loop: Header=BB0_4 Depth=1 b LBB0_15 LBB0_15: ; in Loop: Header=BB0_4 Depth=1 ldur w8, [x29, #-36] add w8, w8, #1 stur w8, [x29, #-36] b LBB0_4 LBB0_16: ldur x0, [x29, #-32] adrp x1, l_.str.11@PAGE add x1, x1, l_.str.11@PAGEOFF bl _fprintf ldur x0, [x29, #-32] bl _fclose stur wzr, [x29, #-4] b LBB0_17 LBB0_17: ldur w0, [x29, #-4] ldp x29, x30, [sp, #96] ; 16-byte Folded Reload add sp, sp, #112 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "r" l_.str.1: ; @.str.1 .asciz "w" l_.str.2: ; @.str.2 .asciz "%d%d" .comm _a,4,2 ; @a .comm _b,4,2 ; @b l_.str.3: ; @.str.3 .asciz "a=%d b=%d\n" l___func__.main: ; @__func__.main .asciz "main" l_.str.4: ; @.str.4 .asciz "2259.c" l_.str.5: ; @.str.5 .asciz "a <= b" l_.str.6: ; @.str.6 .asciz "%d\n" l_.str.7: ; @.str.7 .asciz "%s%d" l_.str.8: ; @.str.8 .asciz "b.cpp: x:[%s], y:[%d]\n" l_.str.9: ; @.str.9 .asciz "x[0] == '!'" l_.str.10: ; @.str.10 .asciz "AC\n" l_.str.11: ; @.str.11 .asciz "WA\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movl $0, -4(%rbp) movl %edi, -8(%rbp) movq %rsi, -16(%rbp) movq -16(%rbp), %rax movq 8(%rax), %rdi leaq L_.str(%rip), %rsi callq _fopen movq %rax, -24(%rbp) movq -16(%rbp), %rax movq 16(%rax), %rdi leaq L_.str.1(%rip), %rsi callq _fopen movq %rax, -32(%rbp) movq -24(%rbp), %rdi leaq L_.str.2(%rip), %rsi movq _a@GOTPCREL(%rip), %rdx movq _b@GOTPCREL(%rip), %rcx movb $0, %al callq _fscanf movq -24(%rbp), %rdi callq _fclose movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movq _a@GOTPCREL(%rip), %rax movl (%rax), %edx movq _b@GOTPCREL(%rip), %rax movl (%rax), %ecx leaq L_.str.3(%rip), %rsi movb $0, %al callq _fprintf movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi callq _fflush movq _a@GOTPCREL(%rip), %rax movl (%rax), %eax movq _b@GOTPCREL(%rip), %rcx cmpl (%rcx), %eax setle %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.4(%rip), %rsi leaq L_.str.5(%rip), %rcx movl $14, %edx callq ___assert_rtn LBB0_2: jmp LBB0_3 LBB0_3: movq _b@GOTPCREL(%rip), %rax movl (%rax), %esi leaq L_.str.6(%rip), %rdi movb $0, %al callq _printf movq ___stdoutp@GOTPCREL(%rip), %rax movq (%rax), %rdi callq _fflush movl $1, -36(%rbp) LBB0_4: ## =>This Inner Loop Header: Depth=1 cmpl $30, -36(%rbp) jg LBB0_16 ## %bb.5: ## in Loop: Header=BB0_4 Depth=1 leaq -41(%rbp), %rsi leaq L_.str.7(%rip), %rdi leaq -48(%rbp), %rdx movb $0, %al callq _scanf movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq -41(%rbp), %rdx movl -48(%rbp), %ecx leaq L_.str.8(%rip), %rsi movb $0, %al callq _fprintf movsbl -41(%rbp), %eax cmpl $63, %eax jne LBB0_7 ## %bb.6: ## in Loop: Header=BB0_4 Depth=1 movq _a@GOTPCREL(%rip), %rax movl (%rax), %eax cmpl -48(%rbp), %eax setge %al andb $1, %al movzbl %al, %esi leaq L_.str.6(%rip), %rdi movb $0, %al callq _printf movq ___stdoutp@GOTPCREL(%rip), %rax movq (%rax), %rdi callq _fflush jmp LBB0_14 LBB0_7: movsbl -41(%rbp), %eax cmpl $33, %eax sete %al xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB0_9 ## %bb.8: leaq L___func__.main(%rip), %rdi leaq L_.str.4(%rip), %rsi leaq L_.str.9(%rip), %rcx movl $29, %edx callq ___assert_rtn LBB0_9: jmp LBB0_10 LBB0_10: movl -48(%rbp), %eax movq _a@GOTPCREL(%rip), %rcx cmpl (%rcx), %eax jne LBB0_12 ## %bb.11: movq -32(%rbp), %rdi leaq L_.str.10(%rip), %rsi movb $0, %al callq _fprintf jmp LBB0_13 LBB0_12: movq -32(%rbp), %rdi leaq L_.str.11(%rip), %rsi movb $0, %al callq _fprintf LBB0_13: movl $0, -4(%rbp) jmp LBB0_17 LBB0_14: ## in Loop: Header=BB0_4 Depth=1 jmp LBB0_15 LBB0_15: ## in Loop: Header=BB0_4 Depth=1 movl -36(%rbp), %eax addl $1, %eax movl %eax, -36(%rbp) jmp LBB0_4 LBB0_16: movq -32(%rbp), %rdi leaq L_.str.11(%rip), %rsi movb $0, %al callq _fprintf movq -32(%rbp), %rdi callq _fclose movl $0, -4(%rbp) LBB0_17: movl -4(%rbp), %eax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "r" L_.str.1: ## @.str.1 .asciz "w" L_.str.2: ## @.str.2 .asciz "%d%d" .comm _a,4,2 ## @a .comm _b,4,2 ## @b L_.str.3: ## @.str.3 .asciz "a=%d b=%d\n" L___func__.main: ## @__func__.main .asciz "main" L_.str.4: ## @.str.4 .asciz "2259.c" L_.str.5: ## @.str.5 .asciz "a <= b" L_.str.6: ## @.str.6 .asciz "%d\n" L_.str.7: ## @.str.7 .asciz "%s%d" L_.str.8: ## @.str.8 .asciz "b.cpp: x:[%s], y:[%d]\n" L_.str.9: ## @.str.9 .asciz "x[0] == '!'" L_.str.10: ## @.str.10 .asciz "AC\n" L_.str.11: ## @.str.11 .asciz "WA\n" .subsections_via_symbols
the_stack_data/2259.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 mov w0, #0 str wzr, [sp, #12] add sp, sp, #16 ret .cfi_endproc ; -- End function .comm _t1,2,0 ; @t1 .comm _t2,2,0 ; @t2 .comm _t3,2,0 ; @t3 .comm _t4,1,0 ; @t4 .comm _t5,1,0 ; @t5 .comm _t6,1,0 ; @t6 .comm _t7,9,0 ; @t7 .comm _t8,1,0 ; @t8 .comm _t9,28,2 ; @t9 .comm _t10,16,3 ; @t10 .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) xorl %eax, %eax popq %rbp retq .cfi_endproc ## -- End function .comm _t1,2,0 ## @t1 .comm _t2,2,0 ## @t2 .comm _t3,2,0 ## @t3 .comm _t4,1,0 ## @t4 .comm _t5,1,0 ## @t5 .comm _t6,1,0 ## @t6 .comm _t7,9,0 ## @t7 .comm _t8,1,0 ## @t8 .comm _t9,28,2 ## @t9 .comm _t10,16,3 ## @t10 .subsections_via_symbols
the_stack_data/57950376.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] bl _getchar str w0, [sp, #8] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #8] adds w8, w8, #1 cset w8, eq tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldr w0, [sp, #8] bl _putchar bl _getchar str w0, [sp, #8] b LBB0_1 LBB0_3: ldur w0, [x29, #-4] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %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 _getchar movl %eax, -8(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 cmpl $-1, -8(%rbp) je LBB0_3 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl -8(%rbp), %edi callq _putchar callq _getchar movl %eax, -8(%rbp) jmp LBB0_1 LBB0_3: movl -4(%rbp), %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/153567.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _print_vector ; -- Begin function print_vector .p2align 2 _print_vector: ; @print_vector .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 w8, [x29, #-12] subs w8, w8, #10 cset w8, ge tbnz w8, #0, LBB0_4 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldur x8, [x29, #-8] 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@PAGE add x0, x0, l_.str@PAGEOFF bl _printf 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: 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 _insert_sort ; -- Begin function insert_sort .p2align 2 _insert_sort: ; @insert_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] mov w8, #1 str w8, [sp, #16] b LBB1_1 LBB1_1: ; =>This Loop Header: Depth=1 ; Child Loop BB1_3 Depth 2 ldr w8, [sp, #16] subs w8, w8, #10 cset w8, ge tbnz w8, #0, LBB1_11 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 ldur x8, [x29, #-8] ldrsw x9, [sp, #16] ldr w8, [x8, x9, lsl #2] stur w8, [x29, #-12] ldr w8, [sp, #16] subs 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] subs w8, w8, #0 cset w8, lt tbnz w8, #0, LBB1_9 b LBB1_4 LBB1_4: ; in Loop: Header=BB1_3 Depth=2 ldur w8, [x29, #-12] ldur x9, [x29, #-8] ldrsw x10, [sp, #12] ldr w9, [x9, x10, lsl #2] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_6 b LBB1_5 LBB1_5: ; in Loop: Header=BB1_3 Depth=2 ldur x8, [x29, #-8] ldrsw x9, [sp, #12] ldr w8, [x8, x9, lsl #2] ldur x9, [x29, #-8] ldr w10, [sp, #12] add w10, w10, #1 str w8, [x9, w10, sxtw #2] ldur w8, [x29, #-12] ldur x9, [x29, #-8] ldrsw x10, [sp, #12] str w8, [x9, x10, lsl #2] b LBB1_7 LBB1_6: ; in Loop: Header=BB1_1 Depth=1 b LBB1_9 LBB1_7: ; in Loop: Header=BB1_3 Depth=2 b LBB1_8 LBB1_8: ; in Loop: Header=BB1_3 Depth=2 ldr w8, [sp, #12] subs w8, w8, #1 str w8, [sp, #12] b LBB1_3 LBB1_9: ; in Loop: Header=BB1_1 Depth=1 ldur x0, [x29, #-8] bl _print_vector b LBB1_10 LBB1_10: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #16] add w8, w8, #1 str w8, [sp, #16] b LBB1_1 LBB1_11: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #80 .cfi_def_cfa_offset 80 stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp, #64 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] str wzr, [sp, #12] add x0, sp, #16 str x0, [sp] ; 8-byte Folded Spill adrp x1, l___const.main.array@PAGE add x1, x1, l___const.main.array@PAGEOFF mov x2, #40 bl _memcpy ldr x0, [sp] ; 8-byte Folded Reload bl _print_vector ldr x0, [sp] ; 8-byte Folded Reload bl _insert_sort 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 | " l_.str.1: ; @.str.1 .asciz "fim\n" .section __TEXT,__const .p2align 2 ; @__const.main.array l___const.main.array: .long 23 ; 0x17 .long 4 ; 0x4 .long 67 ; 0x43 .long 4294967288 ; 0xfffffff8 .long 4294967291 ; 0xfffffffb .long 54 ; 0x36 .long 21 ; 0x15 .long 87 ; 0x57 .long 2 ; 0x2 .long 4294967289 ; 0xfffffff9 .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _print_vector ## -- Begin function print_vector .p2align 4, 0x90 _print_vector: ## @print_vector .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) movl $0, -12(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 cmpl $10, -12(%rbp) jge LBB0_4 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movq -8(%rbp), %rax movslq -12(%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 -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB0_1 LBB0_4: leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _insert_sort ## -- Begin function insert_sort .p2align 4, 0x90 _insert_sort: ## @insert_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) movl $1, -16(%rbp) LBB1_1: ## =>This Loop Header: Depth=1 ## Child Loop BB1_3 Depth 2 cmpl $10, -16(%rbp) jge LBB1_11 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 movq -8(%rbp), %rax movslq -16(%rbp), %rcx movl (%rax,%rcx,4), %eax movl %eax, -12(%rbp) movl -16(%rbp), %eax subl $1, %eax movl %eax, -20(%rbp) LBB1_3: ## Parent Loop BB1_1 Depth=1 ## => This Inner Loop Header: Depth=2 cmpl $0, -20(%rbp) jl LBB1_9 ## %bb.4: ## in Loop: Header=BB1_3 Depth=2 movl -12(%rbp), %eax movq -8(%rbp), %rcx movslq -20(%rbp), %rdx cmpl (%rcx,%rdx,4), %eax jge LBB1_6 ## %bb.5: ## in Loop: Header=BB1_3 Depth=2 movq -8(%rbp), %rax movslq -20(%rbp), %rcx movl (%rax,%rcx,4), %edx movq -8(%rbp), %rax movl -20(%rbp), %ecx addl $1, %ecx movslq %ecx, %rcx movl %edx, (%rax,%rcx,4) movl -12(%rbp), %edx movq -8(%rbp), %rax movslq -20(%rbp), %rcx movl %edx, (%rax,%rcx,4) jmp LBB1_7 LBB1_6: ## in Loop: Header=BB1_1 Depth=1 jmp LBB1_9 LBB1_7: ## in Loop: Header=BB1_3 Depth=2 jmp LBB1_8 LBB1_8: ## in Loop: Header=BB1_3 Depth=2 movl -20(%rbp), %eax addl $-1, %eax movl %eax, -20(%rbp) jmp LBB1_3 LBB1_9: ## in Loop: Header=BB1_1 Depth=1 movq -8(%rbp), %rdi callq _print_vector ## %bb.10: ## in Loop: Header=BB1_1 Depth=1 movl -16(%rbp), %eax addl $1, %eax movl %eax, -16(%rbp) jmp LBB1_1 LBB1_11: addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $64, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -52(%rbp) leaq -48(%rbp), %rdi leaq l___const.main.array(%rip), %rsi movl $40, %edx callq _memcpy leaq -48(%rbp), %rdi callq _print_vector leaq -48(%rbp), %rdi callq _insert_sort 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 | " L_.str.1: ## @.str.1 .asciz "fim\n" .section __TEXT,__const .p2align 4 ## @__const.main.array l___const.main.array: .long 23 ## 0x17 .long 4 ## 0x4 .long 67 ## 0x43 .long 4294967288 ## 0xfffffff8 .long 4294967291 ## 0xfffffffb .long 54 ## 0x36 .long 21 ## 0x15 .long 87 ## 0x57 .long 2 ## 0x2 .long 4294967289 ## 0xfffffff9 .subsections_via_symbols
the_stack_data/193892552.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _ffs ; -- Begin function ffs .p2align 2 _ffs: ; @ffs .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #8] ldr w8, [sp, #8] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: str wzr, [sp, #12] b LBB0_7 LBB0_2: mov w8, #1 str w8, [sp, #4] b LBB0_3 LBB0_3: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #8] ands w8, w8, #0x1 cset w8, ne tbnz w8, #0, LBB0_6 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_3 Depth=1 ldr w8, [sp, #8] lsr w8, w8, #1 str w8, [sp, #8] b LBB0_5 LBB0_5: ; in Loop: Header=BB0_3 Depth=1 ldr w8, [sp, #4] add w8, w8, #1 str w8, [sp, #4] b LBB0_3 LBB0_6: ldr w8, [sp, #4] str w8, [sp, #12] b LBB0_7 LBB0_7: 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 _ffs ## -- Begin function ffs .p2align 4, 0x90 _ffs: ## @ffs .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, -8(%rbp) cmpl $0, -8(%rbp) jne LBB0_2 ## %bb.1: movl $0, -4(%rbp) jmp LBB0_7 LBB0_2: movl $1, -12(%rbp) LBB0_3: ## =>This Inner Loop Header: Depth=1 movl -8(%rbp), %eax andl $1, %eax cmpl $0, %eax setne %al xorb $-1, %al testb $1, %al jne LBB0_4 jmp LBB0_6 LBB0_4: ## in Loop: Header=BB0_3 Depth=1 movl -8(%rbp), %eax shrl $1, %eax movl %eax, -8(%rbp) ## %bb.5: ## in Loop: Header=BB0_3 Depth=1 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB0_3 LBB0_6: movl -12(%rbp), %eax movl %eax, -4(%rbp) LBB0_7: movl -4(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/29824484.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill .cfi_def_cfa_offset 16 mov x29, sp .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 sub sp, sp, #112 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] stur wzr, [x29, #-12] stur w0, [x29, #-16] stur x1, [x29, #-24] mov w8, #100 stur w8, [x29, #-36] stur w8, [x29, #-40] ldur w8, [x29, #-36] mov x9, x8 stur x9, [x29, #-80] ; 8-byte Folded Spill ldur w8, [x29, #-40] ; kill: def $x8 killed $w8 stur x8, [x29, #-96] ; 8-byte Folded Spill mov x10, sp stur x10, [x29, #-48] mul x9, x9, x8 lsl x9, x9, #3 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 x11, [x29, #-88] ; 8-byte Folded Reload ldur x9, [x29, #-80] ; 8-byte Folded Reload mov x10, sp subs x10, x10, x11 mov sp, x10 stur x10, [x29, #-72] ; 8-byte Folded Spill stur x9, [x29, #-56] stur x8, [x29, #-64] mov w8, #1 stur w8, [x29, #-28] b LBB0_1 LBB0_1: ; =>This Loop Header: Depth=1 ; Child Loop BB0_3 Depth 2 ldur w8, [x29, #-28] ldur w9, [x29, #-36] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_8 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 stur wzr, [x29, #-32] b LBB0_3 LBB0_3: ; Parent Loop BB0_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldur w8, [x29, #-32] ldur w9, [x29, #-40] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_6 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_3 Depth=2 ldur x8, [x29, #-72] ; 8-byte Folded Reload ldur x10, [x29, #-96] ; 8-byte Folded Reload ldur w9, [x29, #-28] subs w11, w9, #1 ; implicit-def: $x9 mov x9, x11 sxtw x9, w9 mul x9, x9, x10 add x9, x8, x9, lsl #3 ldursw x11, [x29, #-32] ldr d0, [x9, x11, lsl #3] ldursw x9, [x29, #-28] mul x9, x9, x10 add x8, x8, x9, lsl #3 ldursw x9, [x29, #-32] str d0, [x8, x9, lsl #3] b LBB0_5 LBB0_5: ; in Loop: Header=BB0_3 Depth=2 ldur w8, [x29, #-32] add w8, w8, #1 stur w8, [x29, #-32] b LBB0_3 LBB0_6: ; in Loop: Header=BB0_1 Depth=1 b LBB0_7 LBB0_7: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-28] add w8, w8, #1 stur w8, [x29, #-28] b LBB0_1 LBB0_8: ldur x8, [x29, #-72] ; 8-byte Folded Reload ldur x10, [x29, #-96] ; 8-byte Folded Reload mov x9, #50 mul x9, x9, x10 add x8, x8, x9, lsl #3 ldr d0, [x8, #400] sub sp, sp, #16 mov x8, sp str d0, [x8] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf add sp, sp, #16 stur wzr, [x29, #-12] ldur x8, [x29, #-48] mov sp, x8 ldur w8, [x29, #-12] stur w8, [x29, #-100] ; 4-byte Folded Spill ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_10 b LBB0_9 LBB0_9: bl ___stack_chk_fail LBB0_10: ldur w0, [x29, #-100] ; 4-byte Folded Reload mov sp, x29 ldp x29, x30, [sp], #16 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "b[50][50]=%f\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $96, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -12(%rbp) movl %edi, -16(%rbp) movq %rsi, -24(%rbp) movl $100, -36(%rbp) movl $100, -40(%rbp) movl -36(%rbp), %eax ## kill: def $rax killed $eax movq %rax, -88(%rbp) ## 8-byte Spill movl -40(%rbp), %ecx ## kill: def $rcx killed $ecx movq %rcx, -80(%rbp) ## 8-byte Spill movq %rsp, %rdx movq %rdx, -48(%rbp) imulq %rcx, %rax shlq $3, %rax callq ____chkstk_darwin movq -88(%rbp), %rcx ## 8-byte Reload addq $15, %rax andq $-16, %rax subq %rax, %rsp movq -80(%rbp), %rax ## 8-byte Reload movq %rsp, %rdx movq %rdx, -72(%rbp) ## 8-byte Spill movq %rcx, -56(%rbp) movq %rax, -64(%rbp) movl $1, -28(%rbp) LBB0_1: ## =>This Loop Header: Depth=1 ## Child Loop BB0_3 Depth 2 movl -28(%rbp), %eax cmpl -36(%rbp), %eax jge LBB0_8 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl $0, -32(%rbp) LBB0_3: ## Parent Loop BB0_1 Depth=1 ## => This Inner Loop Header: Depth=2 movl -32(%rbp), %eax cmpl -40(%rbp), %eax jge LBB0_6 ## %bb.4: ## in Loop: Header=BB0_3 Depth=2 movq -72(%rbp), %rax ## 8-byte Reload movq -80(%rbp), %rdx ## 8-byte Reload movl -28(%rbp), %ecx subl $1, %ecx movslq %ecx, %rsi imulq %rdx, %rsi shlq $3, %rsi movq %rax, %rcx addq %rsi, %rcx movslq -32(%rbp), %rsi movsd (%rcx,%rsi,8), %xmm0 ## xmm0 = mem[0],zero movslq -28(%rbp), %rcx imulq %rdx, %rcx shlq $3, %rcx addq %rcx, %rax movslq -32(%rbp), %rcx movsd %xmm0, (%rax,%rcx,8) ## %bb.5: ## in Loop: Header=BB0_3 Depth=2 movl -32(%rbp), %eax addl $1, %eax movl %eax, -32(%rbp) jmp LBB0_3 LBB0_6: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_7 LBB0_7: ## in Loop: Header=BB0_1 Depth=1 movl -28(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) jmp LBB0_1 LBB0_8: movq -72(%rbp), %rax ## 8-byte Reload movq -80(%rbp), %rcx ## 8-byte Reload imulq $50, %rcx, %rcx movsd 400(%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero leaq L_.str(%rip), %rdi movb $1, %al callq _printf movl $0, -12(%rbp) movq -48(%rbp), %rax movq %rax, %rsp movl -12(%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 LBB0_10 ## %bb.9: movl -92(%rbp), %eax ## 4-byte Reload movq %rbp, %rsp popq %rbp retq LBB0_10: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "b[50][50]=%f\n" .subsections_via_symbols
the_stack_data/54825606.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] mov w8, #1 strh w8, [sp, #38] strh wzr, [sp, #36] strh wzr, [sp, #34] ldur w8, [x29, #-8] subs w8, w8, #6 cset w8, eq tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: bl _usage b LBB0_2 LBB0_2: ldur x8, [x29, #-16] ldr x0, [x8, #8] add x1, sp, #40 mov w2, #10 bl _strtoul stur x0, [x29, #-24] ldur x8, [x29, #-24] subs x8, x8, #1 cset w8, lo tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: ldr x8, [sp, #40] ldrsb w8, [x8] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_5 b LBB0_4 LBB0_4: bl _usage b LBB0_5 LBB0_5: adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldur x8, [x29, #-16] ldr x8, [x8] mov x9, sp str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf ldur x8, [x29, #-24] mov x9, sp str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf ldur x8, [x29, #-16] ldr x8, [x8, #16] mov x9, sp str x8, [x9] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf ldur x8, [x29, #-16] ldr x8, [x8, #24] mov x9, sp str x8, [x9] adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf ldur x8, [x29, #-16] ldr x10, [x8, #40] ldur x8, [x29, #-16] ldr x8, [x8, #32] 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 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 ldur x8, [x29, #-16] ldr x8, [x8, #40] mov x9, sp str x8, [x9] adrp x0, l_.str.8@PAGE add x0, x0, l_.str.8@PAGEOFF bl _printf stur xzr, [x29, #-32] b LBB0_6 LBB0_6: ; =>This Loop Header: Depth=1 ; Child Loop BB0_12 Depth 2 ; Child Loop BB0_16 Depth 3 ldur x8, [x29, #-32] ldur x9, [x29, #-24] subs x8, x8, x9 cset w8, hs tbnz w8, #0, LBB0_22 b LBB0_7 LBB0_7: ; in Loop: Header=BB0_6 Depth=1 ldrh w8, [sp, #38] subs w8, w8, #127 cset w8, ne tbnz w8, #0, LBB0_9 b LBB0_8 LBB0_8: ; in Loop: Header=BB0_6 Depth=1 b LBB0_6 LBB0_9: ; in Loop: Header=BB0_6 Depth=1 ldrh w8, [sp, #38] subs w8, w8, #223 cset w8, le tbnz w8, #0, LBB0_11 b LBB0_10 LBB0_10: adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] ldr x0, [x8] ldur x8, [x29, #-32] mov x9, sp str x8, [x9] adrp x1, l_.str.9@PAGE add x1, x1, l_.str.9@PAGEOFF bl _fprintf mov w0, #-1 bl _exit LBB0_11: ; in Loop: Header=BB0_6 Depth=1 strh wzr, [sp, #36] b LBB0_12 LBB0_12: ; Parent Loop BB0_6 Depth=1 ; => This Loop Header: Depth=2 ; Child Loop BB0_16 Depth 3 ldrh w8, [sp, #36] subs w8, w8, #255 cset w8, ge mov w9, #0 str w9, [sp, #28] ; 4-byte Folded Spill tbnz w8, #0, LBB0_14 b LBB0_13 LBB0_13: ; in Loop: Header=BB0_12 Depth=2 ldur x8, [x29, #-32] ldur x9, [x29, #-24] subs x8, x8, x9 cset w8, lo str w8, [sp, #28] ; 4-byte Folded Spill b LBB0_14 LBB0_14: ; in Loop: Header=BB0_12 Depth=2 ldr w8, [sp, #28] ; 4-byte Folded Reload tbz w8, #0, LBB0_21 b LBB0_15 LBB0_15: ; in Loop: Header=BB0_12 Depth=2 strh wzr, [sp, #34] b LBB0_16 LBB0_16: ; Parent Loop BB0_6 Depth=1 ; Parent Loop BB0_12 Depth=2 ; => This Inner Loop Header: Depth=3 ldrh w8, [sp, #34] subs w8, w8, #255 cset w8, ge mov w9, #0 str w9, [sp, #24] ; 4-byte Folded Spill tbnz w8, #0, LBB0_18 b LBB0_17 LBB0_17: ; in Loop: Header=BB0_16 Depth=3 ldur x8, [x29, #-32] ldur x9, [x29, #-24] subs x8, x8, x9 cset w8, lo str w8, [sp, #24] ; 4-byte Folded Spill b LBB0_18 LBB0_18: ; in Loop: Header=BB0_16 Depth=3 ldr w8, [sp, #24] ; 4-byte Folded Reload tbz w8, #0, LBB0_20 b LBB0_19 LBB0_19: ; in Loop: Header=BB0_16 Depth=3 ldrh w12, [sp, #38] ldrh w11, [sp, #36] ldrh w10, [sp, #34] mov x9, sp ; implicit-def: $x8 mov x8, x12 str x8, [x9] ; implicit-def: $x8 mov x8, x11 str x8, [x9, #8] ; implicit-def: $x8 mov x8, x10 str x8, [x9, #16] adrp x0, l_.str.10@PAGE add x0, x0, l_.str.10@PAGEOFF bl _printf ldrh w8, [sp, #34] add w8, w8, #1 strh w8, [sp, #34] ldur x8, [x29, #-32] add x8, x8, #1 stur x8, [x29, #-32] b LBB0_16 LBB0_20: ; in Loop: Header=BB0_12 Depth=2 ldrh w8, [sp, #36] add w8, w8, #1 strh w8, [sp, #36] b LBB0_12 LBB0_21: ; in Loop: Header=BB0_6 Depth=1 ldrh w8, [sp, #38] add w8, w8, #1 strh w8, [sp, #38] b LBB0_6 LBB0_22: adrp x0, l_.str.11@PAGE add x0, x0, l_.str.11@PAGEOFF bl _printf adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _printf mov w0, #0 ldp x29, x30, [sp, #80] ; 16-byte Folded Reload add sp, sp, #96 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function 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] str x8, [sp, #8] ; 8-byte Folded Spill ldr x0, [x8] adrp x1, l_.str.12@PAGE add x1, x1, l_.str.12@PAGEOFF bl _fprintf ldr x8, [sp, #8] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.13@PAGE add x1, x1, l_.str.13@PAGEOFF bl _fprintf ldr x8, [sp, #8] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.14@PAGE add x1, x1, l_.str.14@PAGEOFF bl _fprintf mov w0, #-1 bl _exit .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "! BGP Quagga/Zebra configuration file\n" l_.str.1: ; @.str.1 .asciz "! Autogenerated with %s\n" l_.str.2: ; @.str.2 .asciz "! This configuration file injects %li /24 prefixes\n" l_.str.3: ; @.str.3 .asciz "router bgp %s\n" l_.str.4: ; @.str.4 .asciz " bgp router-id %s\n" l_.str.5: ; @.str.5 .asciz " neighbor %s remote-as %s\n" l_.str.6: ; @.str.6 .asciz " !\n" l_.str.7: ; @.str.7 .asciz " address-family ipv4 unicast\n" l_.str.8: ; @.str.8 .asciz " neighbor %s activate\n" l_.str.9: ; @.str.9 .asciz "Maximum number of valid networks reached: %lu\n" l_.str.10: ; @.str.10 .asciz " network %u.%i.%i.0/24\n" l_.str.11: ; @.str.11 .asciz " exit-address-family\n" l_.str.12: ; @.str.12 .asciz "quagga-bgp-netgen [nets-number] [local-as] [router-id] [remote-as] [remote-peer-ip]\n" l_.str.13: ; @.str.13 .asciz "example:\n" l_.str.14: ; @.str.14 .asciz "quagga-bgp-netgen 400000 100 0.0.0.100 200 10.0.0.2 > /usr/local/etc/frr/bgpd.conf\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movl $0, -4(%rbp) movl %edi, -8(%rbp) movq %rsi, -16(%rbp) movw $1, -42(%rbp) movw $0, -44(%rbp) movw $0, -46(%rbp) cmpl $6, -8(%rbp) je LBB0_2 ## %bb.1: callq _usage LBB0_2: movq -16(%rbp), %rax movq 8(%rax), %rdi leaq -40(%rbp), %rsi movl $10, %edx callq _strtoul movq %rax, -24(%rbp) cmpq $1, -24(%rbp) jb LBB0_4 ## %bb.3: movq -40(%rbp), %rax movsbl (%rax), %eax cmpl $0, %eax je LBB0_5 LBB0_4: callq _usage LBB0_5: leaq L_.str(%rip), %rdi movb $0, %al callq _printf movq -16(%rbp), %rax movq (%rax), %rsi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf movq -24(%rbp), %rsi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf movq -16(%rbp), %rax movq 16(%rax), %rsi leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf movq -16(%rbp), %rax movq 24(%rax), %rsi leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf movq -16(%rbp), %rax movq 40(%rax), %rsi movq -16(%rbp), %rax movq 32(%rax), %rdx leaq L_.str.5(%rip), %rdi movb $0, %al callq _printf leaq L_.str.6(%rip), %rdi movb $0, %al callq _printf leaq L_.str.7(%rip), %rdi movb $0, %al callq _printf movq -16(%rbp), %rax movq 40(%rax), %rsi leaq L_.str.8(%rip), %rdi movb $0, %al callq _printf movq $0, -32(%rbp) LBB0_6: ## =>This Loop Header: Depth=1 ## Child Loop BB0_12 Depth 2 ## Child Loop BB0_16 Depth 3 movq -32(%rbp), %rax cmpq -24(%rbp), %rax jae LBB0_22 ## %bb.7: ## in Loop: Header=BB0_6 Depth=1 movzwl -42(%rbp), %eax cmpl $127, %eax jne LBB0_9 ## %bb.8: ## in Loop: Header=BB0_6 Depth=1 jmp LBB0_6 LBB0_9: ## in Loop: Header=BB0_6 Depth=1 movzwl -42(%rbp), %eax cmpl $223, %eax jle LBB0_11 ## %bb.10: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movq -32(%rbp), %rdx leaq L_.str.9(%rip), %rsi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _fprintf movl $-1, %edi callq _exit LBB0_11: ## in Loop: Header=BB0_6 Depth=1 movw $0, -44(%rbp) LBB0_12: ## Parent Loop BB0_6 Depth=1 ## => This Loop Header: Depth=2 ## Child Loop BB0_16 Depth 3 movzwl -44(%rbp), %ecx xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $255, %ecx movb %al, -47(%rbp) ## 1-byte Spill jge LBB0_14 ## %bb.13: ## in Loop: Header=BB0_12 Depth=2 movq -32(%rbp), %rax cmpq -24(%rbp), %rax setb %al movb %al, -47(%rbp) ## 1-byte Spill LBB0_14: ## in Loop: Header=BB0_12 Depth=2 movb -47(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB0_15 jmp LBB0_21 LBB0_15: ## in Loop: Header=BB0_12 Depth=2 movw $0, -46(%rbp) LBB0_16: ## Parent Loop BB0_6 Depth=1 ## Parent Loop BB0_12 Depth=2 ## => This Inner Loop Header: Depth=3 movzwl -46(%rbp), %ecx xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $255, %ecx movb %al, -48(%rbp) ## 1-byte Spill jge LBB0_18 ## %bb.17: ## in Loop: Header=BB0_16 Depth=3 movq -32(%rbp), %rax cmpq -24(%rbp), %rax setb %al movb %al, -48(%rbp) ## 1-byte Spill LBB0_18: ## in Loop: Header=BB0_16 Depth=3 movb -48(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB0_19 jmp LBB0_20 LBB0_19: ## in Loop: Header=BB0_16 Depth=3 movzwl -42(%rbp), %esi movzwl -44(%rbp), %edx movzwl -46(%rbp), %ecx leaq L_.str.10(%rip), %rdi movb $0, %al callq _printf movw -46(%rbp), %ax addw $1, %ax movw %ax, -46(%rbp) movq -32(%rbp), %rax addq $1, %rax movq %rax, -32(%rbp) jmp LBB0_16 LBB0_20: ## in Loop: Header=BB0_12 Depth=2 movw -44(%rbp), %ax addw $1, %ax movw %ax, -44(%rbp) jmp LBB0_12 LBB0_21: ## in Loop: Header=BB0_6 Depth=1 movw -42(%rbp), %ax addw $1, %ax movw %ax, -42(%rbp) jmp LBB0_6 LBB0_22: leaq L_.str.11(%rip), %rdi movb $0, %al callq _printf leaq L_.str.6(%rip), %rdi movb $0, %al callq _printf xorl %eax, %eax addq $48, %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 subq $16, %rsp movq ___stderrp@GOTPCREL(%rip), %rax movq %rax, -16(%rbp) ## 8-byte Spill movq (%rax), %rdi leaq L_.str.12(%rip), %rsi xorl %eax, %eax ## kill: def $al killed $al killed $eax movb %al, -1(%rbp) ## 1-byte Spill callq _fprintf movq -16(%rbp), %rcx ## 8-byte Reload ## kill: def $edx killed $eax movb -1(%rbp), %al ## 1-byte Reload movq (%rcx), %rdi leaq L_.str.13(%rip), %rsi callq _fprintf movq -16(%rbp), %rcx ## 8-byte Reload ## kill: def $edx killed $eax movb -1(%rbp), %al ## 1-byte Reload movq (%rcx), %rdi leaq L_.str.14(%rip), %rsi callq _fprintf movl $-1, %edi callq _exit .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "! BGP Quagga/Zebra configuration file\n" L_.str.1: ## @.str.1 .asciz "! Autogenerated with %s\n" L_.str.2: ## @.str.2 .asciz "! This configuration file injects %li /24 prefixes\n" L_.str.3: ## @.str.3 .asciz "router bgp %s\n" L_.str.4: ## @.str.4 .asciz " bgp router-id %s\n" L_.str.5: ## @.str.5 .asciz " neighbor %s remote-as %s\n" L_.str.6: ## @.str.6 .asciz " !\n" L_.str.7: ## @.str.7 .asciz " address-family ipv4 unicast\n" L_.str.8: ## @.str.8 .asciz " neighbor %s activate\n" L_.str.9: ## @.str.9 .asciz "Maximum number of valid networks reached: %lu\n" L_.str.10: ## @.str.10 .asciz " network %u.%i.%i.0/24\n" L_.str.11: ## @.str.11 .asciz " exit-address-family\n" L_.str.12: ## @.str.12 .asciz "quagga-bgp-netgen [nets-number] [local-as] [router-id] [remote-as] [remote-peer-ip]\n" L_.str.13: ## @.str.13 .asciz "example:\n" L_.str.14: ## @.str.14 .asciz "quagga-bgp-netgen 400000 100 0.0.0.100 200 10.0.0.2 > /usr/local/etc/frr/bgpd.conf\n" .subsections_via_symbols
the_stack_data/62554.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] stur w0, [x29, #-8] stur x1, [x29, #-16] ldur w8, [x29, #-8] subs w8, w8, #3 cset w8, ne tbnz w8, #0, LBB0_9 b LBB0_1 LBB0_1: ldur x8, [x29, #-16] ldr x0, [x8, #8] bl _atoi stur w0, [x29, #-20] ldur w8, [x29, #-20] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_8 b LBB0_2 LBB0_2: ldur x8, [x29, #-16] ldr x0, [x8, #16] bl _atoi ; implicit-def: $x8 mov x8, x0 sxtw x8, w8 str x8, [sp, #16] ldr x0, [sp, #16] bl _malloc str x0, [sp, #8] ldr x0, [sp, #8] ldr x2, [sp, #16] mov w1, #0 mov x3, #-1 bl ___memset_chk b LBB0_3 LBB0_3: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #16] subs x8, x8, #0 cset w8, ls tbnz w8, #0, LBB0_7 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_3 Depth=1 ldr x8, [sp, #16] subs x8, x8, #1 str x8, [sp, #16] ldr x8, [sp, #8] ldr x9, [sp, #16] add x8, x8, x9 subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_3 Depth=1 adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf b LBB0_6 LBB0_6: ; in Loop: Header=BB0_3 Depth=1 b LBB0_3 LBB0_7: ldr x0, [sp, #8] bl _free b LBB0_8 LBB0_8: b LBB0_9 LBB0_9: 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 "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 $48, %rsp movl $0, -4(%rbp) movl %edi, -8(%rbp) movq %rsi, -16(%rbp) cmpl $3, -8(%rbp) jne LBB0_9 ## %bb.1: movq -16(%rbp), %rax movq 8(%rax), %rdi callq _atoi movl %eax, -20(%rbp) cmpl $0, -20(%rbp) jne LBB0_8 ## %bb.2: movq -16(%rbp), %rax movq 16(%rax), %rdi callq _atoi cltq movq %rax, -32(%rbp) movq -32(%rbp), %rdi callq _malloc movq %rax, -40(%rbp) movq -40(%rbp), %rdi movq -32(%rbp), %rdx xorl %esi, %esi movq $-1, %rcx callq ___memset_chk LBB0_3: ## =>This Inner Loop Header: Depth=1 cmpq $0, -32(%rbp) jbe LBB0_7 ## %bb.4: ## in Loop: Header=BB0_3 Depth=1 movq -32(%rbp), %rax addq $-1, %rax movq %rax, -32(%rbp) movq -40(%rbp), %rax addq -32(%rbp), %rax cmpq $0, %rax jne LBB0_6 ## %bb.5: ## in Loop: Header=BB0_3 Depth=1 leaq L_.str(%rip), %rdi movb $0, %al callq _printf LBB0_6: ## in Loop: Header=BB0_3 Depth=1 jmp LBB0_3 LBB0_7: movq -40(%rbp), %rdi callq _free LBB0_8: jmp LBB0_9 LBB0_9: xorl %eax, %eax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "0" .subsections_via_symbols
the_stack_data/45212.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov x9, sp sub x8, x29, #8 str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF str x0, [sp, #8] ; 8-byte Folded Spill bl _scanf adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf ldr x0, [sp, #8] ; 8-byte Folded Reload mov x9, sp sub x8, x29, #12 str x8, [x9] bl _scanf ldur s0, [x29, #-8] fcmp s0, #0.0 cset w8, le tbnz w8, #0, LBB0_7 b LBB0_1 LBB0_1: ldur s0, [x29, #-12] fcmp s0, #0.0 cset w8, le tbnz w8, #0, LBB0_7 b LBB0_2 LBB0_2: ldur s0, [x29, #-8] fcmp s0, #0.0 cset w8, le tbnz w8, #0, LBB0_5 b LBB0_3 LBB0_3: ldur s0, [x29, #-12] fcmp s0, #0.0 cset w8, le tbnz w8, #0, LBB0_5 b LBB0_4 LBB0_4: adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf b LBB0_6 LBB0_5: adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf b LBB0_6 LBB0_6: b LBB0_26 LBB0_7: ldur s0, [x29, #-8] fcmp s0, #0.0 cset w8, ne tbnz w8, #0, LBB0_10 b LBB0_8 LBB0_8: ldur s0, [x29, #-12] fcmp s0, #0.0 cset w8, ne tbnz w8, #0, LBB0_10 b LBB0_9 LBB0_9: adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf b LBB0_25 LBB0_10: ldur s0, [x29, #-8] fcmp s0, #0.0 cset w8, ne tbnz w8, #0, LBB0_12 b LBB0_11 LBB0_11: adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _printf b LBB0_24 LBB0_12: ldur s0, [x29, #-12] fcmp s0, #0.0 cset w8, ne tbnz w8, #0, LBB0_14 b LBB0_13 LBB0_13: adrp x0, l_.str.7@PAGE add x0, x0, l_.str.7@PAGEOFF bl _printf b LBB0_23 LBB0_14: ldur s0, [x29, #-8] fcmp s0, #0.0 cset w8, le tbnz w8, #0, LBB0_17 b LBB0_15 LBB0_15: ldur s0, [x29, #-12] fcmp s0, #0.0 cset w8, pl tbnz w8, #0, LBB0_17 b LBB0_16 LBB0_16: adrp x0, l_.str.8@PAGE add x0, x0, l_.str.8@PAGEOFF bl _printf b LBB0_22 LBB0_17: ldur s0, [x29, #-8] fcmp s0, #0.0 cset w8, pl tbnz w8, #0, LBB0_20 b LBB0_18 LBB0_18: ldur s0, [x29, #-12] fcmp s0, #0.0 cset w8, le tbnz w8, #0, LBB0_20 b LBB0_19 LBB0_19: adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf b LBB0_21 LBB0_20: adrp x0, l_.str.9@PAGE add x0, x0, l_.str.9@PAGEOFF bl _printf b LBB0_21 LBB0_21: b LBB0_22 LBB0_22: b LBB0_23 LBB0_23: b LBB0_24 LBB0_24: b LBB0_25 LBB0_25: b LBB0_26 LBB0_26: 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 "Digite o valor de x:" l_.str.1: ; @.str.1 .asciz "%f" l_.str.2: ; @.str.2 .asciz "Digite o valor de y:" l_.str.3: ; @.str.3 .asciz "Q1" l_.str.4: ; @.str.4 .asciz "Q2" l_.str.5: ; @.str.5 .asciz "Origem" l_.str.6: ; @.str.6 .asciz "Eixo y" l_.str.7: ; @.str.7 .asciz "Eixo x" l_.str.8: ; @.str.8 .asciz "Q4" l_.str.9: ; @.str.9 .asciz "Q3" .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 movss -8(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero xorps %xmm1, %xmm1 ucomiss %xmm1, %xmm0 jbe LBB0_7 ## %bb.1: movss -12(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero xorps %xmm1, %xmm1 ucomiss %xmm1, %xmm0 jbe LBB0_7 ## %bb.2: movss -8(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero xorps %xmm1, %xmm1 ucomiss %xmm1, %xmm0 jbe LBB0_5 ## %bb.3: movss -12(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero xorps %xmm1, %xmm1 ucomiss %xmm1, %xmm0 jbe LBB0_5 ## %bb.4: leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf jmp LBB0_6 LBB0_5: leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf LBB0_6: jmp LBB0_26 LBB0_7: movss -8(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero xorps %xmm1, %xmm1 ucomiss %xmm1, %xmm0 jne LBB0_10 jp LBB0_10 ## %bb.8: movss -12(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero xorps %xmm1, %xmm1 ucomiss %xmm1, %xmm0 jne LBB0_10 jp LBB0_10 ## %bb.9: leaq L_.str.5(%rip), %rdi movb $0, %al callq _printf jmp LBB0_25 LBB0_10: movss -8(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero xorps %xmm1, %xmm1 ucomiss %xmm1, %xmm0 jne LBB0_12 jp LBB0_12 ## %bb.11: leaq L_.str.6(%rip), %rdi movb $0, %al callq _printf jmp LBB0_24 LBB0_12: movss -12(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero xorps %xmm1, %xmm1 ucomiss %xmm1, %xmm0 jne LBB0_14 jp LBB0_14 ## %bb.13: leaq L_.str.7(%rip), %rdi movb $0, %al callq _printf jmp LBB0_23 LBB0_14: movss -8(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero xorps %xmm1, %xmm1 ucomiss %xmm1, %xmm0 jbe LBB0_17 ## %bb.15: xorps %xmm0, %xmm0 ucomiss -12(%rbp), %xmm0 jbe LBB0_17 ## %bb.16: leaq L_.str.8(%rip), %rdi movb $0, %al callq _printf jmp LBB0_22 LBB0_17: xorps %xmm0, %xmm0 ucomiss -8(%rbp), %xmm0 jbe LBB0_20 ## %bb.18: movss -12(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero xorps %xmm1, %xmm1 ucomiss %xmm1, %xmm0 jbe LBB0_20 ## %bb.19: leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf jmp LBB0_21 LBB0_20: leaq L_.str.9(%rip), %rdi movb $0, %al callq _printf LBB0_21: jmp LBB0_22 LBB0_22: jmp LBB0_23 LBB0_23: jmp LBB0_24 LBB0_24: jmp LBB0_25 LBB0_25: jmp LBB0_26 LBB0_26: xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Digite o valor de x:" L_.str.1: ## @.str.1 .asciz "%f" L_.str.2: ## @.str.2 .asciz "Digite o valor de y:" L_.str.3: ## @.str.3 .asciz "Q1" L_.str.4: ## @.str.4 .asciz "Q2" L_.str.5: ## @.str.5 .asciz "Origem" L_.str.6: ## @.str.6 .asciz "Eixo y" L_.str.7: ## @.str.7 .asciz "Eixo x" L_.str.8: ## @.str.8 .asciz "Q4" L_.str.9: ## @.str.9 .asciz "Q3" .subsections_via_symbols
the_stack_data/232954987.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _sum ; -- Begin function sum .p2align 2 _sum: ; @sum .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #12] str w1, [sp, #8] ldr w8, [sp, #12] ldr w9, [sp, #8] add w8, w8, w9 str w8, [sp, #4] 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 _sum ## -- Begin function sum .p2align 4, 0x90 _sum: ## @sum .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, -4(%rbp) movl %esi, -8(%rbp) movl -4(%rbp), %eax addl -8(%rbp), %eax movl %eax, -12(%rbp) movl -12(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/82012.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _palindromeQuery ; -- Begin function palindromeQuery .p2align 2 _palindromeQuery: ; @palindromeQuery .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, #24] str wzr, [sp, #8] str wzr, [sp, #4] b LBB0_1 LBB0_1: ; =>This Loop Header: Depth=1 ; Child Loop BB0_3 Depth 2 ; Child Loop BB0_5 Depth 3 ldr w8, [sp, #4] subs w8, w8, #3 cset w8, ge tbnz w8, #0, LBB0_13 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 str wzr, [sp] b LBB0_3 LBB0_3: ; Parent Loop BB0_1 Depth=1 ; => This Loop Header: Depth=2 ; Child Loop BB0_5 Depth 3 ldr w8, [sp] subs w8, w8, #3 cset w8, ge tbnz w8, #0, LBB0_11 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_3 Depth=2 ldr x8, [sp, #24] ldrsw x9, [sp, #4] mov x10, #12 mul x9, x9, x10 add x8, x8, x9 ldrsw x9, [sp] ldr w8, [x8, x9, lsl #2] str w8, [sp, #12] str wzr, [sp, #20] b LBB0_5 LBB0_5: ; Parent Loop BB0_1 Depth=1 ; Parent Loop BB0_3 Depth=2 ; => This Inner Loop Header: Depth=3 ldr x8, [sp, #24] ldrsw x9, [sp, #4] mov x10, #12 mul x9, x9, x10 add x8, x8, x9 ldrsw x9, [sp] ldr w8, [x8, x9, lsl #2] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_7 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_5 Depth=3 ldr x8, [sp, #24] ldrsw x9, [sp, #4] mov x11, #12 mul x9, x9, x11 add x8, x8, x9 ldrsw x9, [sp] ldr w8, [x8, x9, lsl #2] mov w10, #10 sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 str w8, [sp, #16] ldr w8, [sp, #20] mul w8, w8, w10 ldr w9, [sp, #16] add w8, w8, w9 str w8, [sp, #20] ldr x8, [sp, #24] ldrsw x9, [sp, #4] mul x9, x9, x11 add x8, x8, x9 ldrsw x9, [sp] add x9, x8, x9, lsl #2 ldr w8, [x9] sdiv w8, w8, w10 str w8, [x9] b LBB0_5 LBB0_7: ; in Loop: Header=BB0_3 Depth=2 ldr w8, [sp, #20] ldr w9, [sp, #12] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_9 b LBB0_8 LBB0_8: ; in Loop: Header=BB0_3 Depth=2 ldr w8, [sp, #8] add w8, w8, #1 str w8, [sp, #8] b LBB0_9 LBB0_9: ; in Loop: Header=BB0_3 Depth=2 b LBB0_10 LBB0_10: ; in Loop: Header=BB0_3 Depth=2 ldr w8, [sp] add w8, w8, #1 str w8, [sp] b LBB0_3 LBB0_11: ; in Loop: Header=BB0_1 Depth=1 b LBB0_12 LBB0_12: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #4] add w8, w8, #1 str w8, [sp, #4] b LBB0_1 LBB0_13: ldr w0, [sp, #8] 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, #112 .cfi_def_cfa_offset 112 stp x29, x30, [sp, #96] ; 16-byte Folded Spill add x29, sp, #96 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] str wzr, [sp, #48] str w0, [sp, #44] str x1, [sp, #32] str wzr, [sp, #28] b LBB1_1 LBB1_1: ; =>This Loop Header: Depth=1 ; Child Loop BB1_3 Depth 2 ldr w8, [sp, #28] subs w8, w8, #3 cset w8, ge tbnz w8, #0, LBB1_8 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 str wzr, [sp, #24] b LBB1_3 LBB1_3: ; Parent Loop BB1_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #24] subs w8, w8, #3 cset w8, ge tbnz w8, #0, LBB1_6 b LBB1_4 LBB1_4: ; in Loop: Header=BB1_3 Depth=2 ldr w8, [sp, #28] ; implicit-def: $x10 mov x10, x8 ldr w9, [sp, #24] ; 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 ldrsw x8, [sp, #28] mov x9, #12 mul x9, x8, x9 sub x8, x29, #44 add x8, x8, x9 ldrsw x9, [sp, #24] 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 LBB1_5 LBB1_5: ; in Loop: Header=BB1_3 Depth=2 ldr w8, [sp, #24] add w8, w8, #1 str w8, [sp, #24] b LBB1_3 LBB1_6: ; in Loop: Header=BB1_1 Depth=1 b LBB1_7 LBB1_7: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #28] add w8, w8, #1 str w8, [sp, #28] b LBB1_1 LBB1_8: sub x0, x29, #44 bl _palindromeQuery mov x9, sp ; implicit-def: $x8 mov x8, x0 str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf ldur 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: mov w0, #0 ldp x29, x30, [sp, #96] ; 16-byte Folded Reload add sp, sp, #112 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "A[%d][%d] : " l_.str.1: ; @.str.1 .asciz "%d" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _palindromeQuery ## -- Begin function palindromeQuery .p2align 4, 0x90 _palindromeQuery: ## @palindromeQuery .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, -24(%rbp) movl $0, -28(%rbp) LBB0_1: ## =>This Loop Header: Depth=1 ## Child Loop BB0_3 Depth 2 ## Child Loop BB0_5 Depth 3 cmpl $3, -28(%rbp) jge LBB0_13 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl $0, -32(%rbp) LBB0_3: ## Parent Loop BB0_1 Depth=1 ## => This Loop Header: Depth=2 ## Child Loop BB0_5 Depth 3 cmpl $3, -32(%rbp) jge LBB0_11 ## %bb.4: ## in Loop: Header=BB0_3 Depth=2 movq -8(%rbp), %rax movslq -28(%rbp), %rcx imulq $12, %rcx, %rcx addq %rcx, %rax movslq -32(%rbp), %rcx movl (%rax,%rcx,4), %eax movl %eax, -20(%rbp) movl $0, -12(%rbp) LBB0_5: ## Parent Loop BB0_1 Depth=1 ## Parent Loop BB0_3 Depth=2 ## => This Inner Loop Header: Depth=3 movq -8(%rbp), %rax movslq -28(%rbp), %rcx imulq $12, %rcx, %rcx addq %rcx, %rax movslq -32(%rbp), %rcx cmpl $0, (%rax,%rcx,4) je LBB0_7 ## %bb.6: ## in Loop: Header=BB0_5 Depth=3 movq -8(%rbp), %rax movslq -28(%rbp), %rcx imulq $12, %rcx, %rcx addq %rcx, %rax movslq -32(%rbp), %rcx movl (%rax,%rcx,4), %eax movl $10, %ecx cltd idivl %ecx movl %edx, -16(%rbp) imull $10, -12(%rbp), %eax addl -16(%rbp), %eax movl %eax, -12(%rbp) movq -8(%rbp), %rax movslq -28(%rbp), %rcx imulq $12, %rcx, %rcx addq %rcx, %rax movq %rax, -40(%rbp) ## 8-byte Spill movslq -32(%rbp), %rcx movl (%rax,%rcx,4), %eax movl $10, %esi cltd idivl %esi movl %eax, %edx movq -40(%rbp), %rax ## 8-byte Reload movl %edx, (%rax,%rcx,4) jmp LBB0_5 LBB0_7: ## in Loop: Header=BB0_3 Depth=2 movl -12(%rbp), %eax cmpl -20(%rbp), %eax jne LBB0_9 ## %bb.8: ## in Loop: Header=BB0_3 Depth=2 movl -24(%rbp), %eax addl $1, %eax movl %eax, -24(%rbp) LBB0_9: ## in Loop: Header=BB0_3 Depth=2 jmp LBB0_10 LBB0_10: ## in Loop: Header=BB0_3 Depth=2 movl -32(%rbp), %eax addl $1, %eax movl %eax, -32(%rbp) jmp LBB0_3 LBB0_11: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_12 LBB0_12: ## in Loop: Header=BB0_1 Depth=1 movl -28(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) jmp LBB0_1 LBB0_13: movl -24(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $80, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -52(%rbp) movl %edi, -56(%rbp) movq %rsi, -64(%rbp) movl $0, -68(%rbp) LBB1_1: ## =>This Loop Header: Depth=1 ## Child Loop BB1_3 Depth 2 cmpl $3, -68(%rbp) jge LBB1_8 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 movl $0, -72(%rbp) LBB1_3: ## Parent Loop BB1_1 Depth=1 ## => This Inner Loop Header: Depth=2 cmpl $3, -72(%rbp) jge LBB1_6 ## %bb.4: ## in Loop: Header=BB1_3 Depth=2 movl -68(%rbp), %esi movl -72(%rbp), %edx leaq L_.str(%rip), %rdi movb $0, %al callq _printf movslq -68(%rbp), %rax leaq -48(%rbp), %rsi imulq $12, %rax, %rax addq %rax, %rsi movslq -72(%rbp), %rax shlq $2, %rax addq %rax, %rsi leaq L_.str.1(%rip), %rdi movb $0, %al callq _scanf ## %bb.5: ## in Loop: Header=BB1_3 Depth=2 movl -72(%rbp), %eax addl $1, %eax movl %eax, -72(%rbp) jmp LBB1_3 LBB1_6: ## in Loop: Header=BB1_1 Depth=1 jmp LBB1_7 LBB1_7: ## in Loop: Header=BB1_1 Depth=1 movl -68(%rbp), %eax addl $1, %eax movl %eax, -68(%rbp) jmp LBB1_1 LBB1_8: leaq -48(%rbp), %rdi callq _palindromeQuery movl %eax, %esi 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 LBB1_10 ## %bb.9: xorl %eax, %eax addq $80, %rsp popq %rbp retq LBB1_10: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "A[%d][%d] : " L_.str.1: ## @.str.1 .asciz "%d" .subsections_via_symbols
the_stack_data/51700955.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] mov w8, #1 stur w8, [x29, #-8] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-8] subs w8, w8, #101 cset w8, ge tbnz w8, #0, LBB0_21 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-8] mov w10, #3 sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_5 b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-8] mov w10, #5 sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_5 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_1 Depth=1 stur wzr, [x29, #-12] b LBB0_12 LBB0_5: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-8] mov w10, #3 sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_7 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_1 Depth=1 mov w8, #1 stur w8, [x29, #-12] b LBB0_11 LBB0_7: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-8] mov w10, #5 sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_9 b LBB0_8 LBB0_8: ; in Loop: Header=BB0_1 Depth=1 mov w8, #2 stur w8, [x29, #-12] b LBB0_10 LBB0_9: ; in Loop: Header=BB0_1 Depth=1 mov w8, #3 stur w8, [x29, #-12] b LBB0_10 LBB0_10: ; in Loop: Header=BB0_1 Depth=1 b LBB0_11 LBB0_11: ; in Loop: Header=BB0_1 Depth=1 b LBB0_12 LBB0_12: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-12] subs w8, w8, #0 ; kill: def $x8 killed $w8 str x8, [sp, #8] ; 8-byte Folded Spill subs x8, x8, #3 cset w8, hi tbnz w8, #0, LBB0_18 ; %bb.13: ; in Loop: Header=BB0_1 Depth=1 ldr x11, [sp, #8] ; 8-byte Folded Reload adrp x10, lJTI0_0@PAGE add x10, x10, lJTI0_0@PAGEOFF Ltmp0: adr x8, Ltmp0 ldrsw x9, [x10, x11, lsl #2] add x8, x8, x9 br x8 LBB0_14: ; in Loop: Header=BB0_1 Depth=1 adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf b LBB0_19 LBB0_15: ; in Loop: Header=BB0_1 Depth=1 adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf b LBB0_19 LBB0_16: ; in Loop: Header=BB0_1 Depth=1 adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf b LBB0_19 LBB0_17: ; in Loop: Header=BB0_1 Depth=1 ldur w9, [x29, #-8] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf b LBB0_19 LBB0_18: ; in Loop: Header=BB0_1 Depth=1 b LBB0_19 LBB0_19: ; in Loop: Header=BB0_1 Depth=1 b LBB0_20 LBB0_20: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-8] add w8, w8, #1 stur w8, [x29, #-8] b LBB0_1 LBB0_21: mov w0, #0 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc .p2align 2 lJTI0_0: .long LBB0_14-Ltmp0 .long LBB0_15-Ltmp0 .long LBB0_16-Ltmp0 .long LBB0_17-Ltmp0 ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Fizzbuzz\n" l_.str.1: ; @.str.1 .asciz "Fizz\n" l_.str.2: ; @.str.2 .asciz "Buzz\n" 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 $32, %rsp movl $0, -4(%rbp) movl $1, -8(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 cmpl $101, -8(%rbp) jge LBB0_20 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl -8(%rbp), %eax movl $3, %ecx cltd idivl %ecx cmpl $0, %edx jne LBB0_5 ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movl -8(%rbp), %eax movl $5, %ecx cltd idivl %ecx cmpl $0, %edx jne LBB0_5 ## %bb.4: ## in Loop: Header=BB0_1 Depth=1 movl $0, -12(%rbp) jmp LBB0_12 LBB0_5: ## in Loop: Header=BB0_1 Depth=1 movl -8(%rbp), %eax movl $3, %ecx cltd idivl %ecx cmpl $0, %edx jne LBB0_7 ## %bb.6: ## in Loop: Header=BB0_1 Depth=1 movl $1, -12(%rbp) jmp LBB0_11 LBB0_7: ## in Loop: Header=BB0_1 Depth=1 movl -8(%rbp), %eax movl $5, %ecx cltd idivl %ecx cmpl $0, %edx jne LBB0_9 ## %bb.8: ## in Loop: Header=BB0_1 Depth=1 movl $2, -12(%rbp) jmp LBB0_10 LBB0_9: ## in Loop: Header=BB0_1 Depth=1 movl $3, -12(%rbp) LBB0_10: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_11 LBB0_11: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_12 LBB0_12: ## in Loop: Header=BB0_1 Depth=1 movl -12(%rbp), %eax ## kill: def $rax killed $eax movq %rax, -24(%rbp) ## 8-byte Spill subq $3, %rax ja LBB0_17 ## %bb.21: ## in Loop: Header=BB0_1 Depth=1 movq -24(%rbp), %rax ## 8-byte Reload leaq LJTI0_0(%rip), %rcx movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax LBB0_13: ## in Loop: Header=BB0_1 Depth=1 leaq L_.str(%rip), %rdi movb $0, %al callq _printf jmp LBB0_18 LBB0_14: ## in Loop: Header=BB0_1 Depth=1 leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf jmp LBB0_18 LBB0_15: ## in Loop: Header=BB0_1 Depth=1 leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf jmp LBB0_18 LBB0_16: ## in Loop: Header=BB0_1 Depth=1 movl -8(%rbp), %esi leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf jmp LBB0_18 LBB0_17: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_18 LBB0_18: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_19 LBB0_19: ## in Loop: Header=BB0_1 Depth=1 movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) jmp LBB0_1 LBB0_20: xorl %eax, %eax addq $32, %rsp popq %rbp retq .cfi_endproc .p2align 2, 0x90 .data_region jt32 .set L0_0_set_13, LBB0_13-LJTI0_0 .set L0_0_set_14, LBB0_14-LJTI0_0 .set L0_0_set_15, LBB0_15-LJTI0_0 .set L0_0_set_16, LBB0_16-LJTI0_0 LJTI0_0: .long L0_0_set_13 .long L0_0_set_14 .long L0_0_set_15 .long L0_0_set_16 .end_data_region ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Fizzbuzz\n" L_.str.1: ## @.str.1 .asciz "Fizz\n" L_.str.2: ## @.str.2 .asciz "Buzz\n" L_.str.3: ## @.str.3 .asciz "%d\n" .subsections_via_symbols
the_stack_data/37638881.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _insert_append ; -- Begin function insert_append .p2align 2 _insert_append: ; @insert_append .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, _head@GOTPAGE ldr x8, [x8, _head@GOTPAGEOFF] str x8, [sp] ; 8-byte Folded Spill stur w0, [x29, #-4] mov x0, #16 bl _malloc ldr x8, [sp] ; 8-byte Folded Reload str x0, [sp, #16] ldur w9, [x29, #-4] ldr x10, [sp, #16] str w9, [x10] ldr x9, [sp, #16] ; kill: def $x10 killed $xzr str xzr, [x9, #8] ldr x8, [x8] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB0_5 b LBB0_1 LBB0_1: ldr x8, [sp] ; 8-byte Folded Reload ldr x8, [x8] str x8, [sp, #8] b LBB0_2 LBB0_2: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #8] ldr x8, [x8, #8] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: ; in Loop: Header=BB0_2 Depth=1 ldr x8, [sp, #8] ldr x8, [x8, #8] str x8, [sp, #8] b LBB0_2 LBB0_4: ldr x8, [sp, #16] ldr x9, [sp, #8] str x8, [x9, #8] b LBB0_6 LBB0_5: ldr x9, [sp] ; 8-byte Folded Reload ldr x8, [sp, #16] str x8, [x9] b LBB0_6 LBB0_6: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _reverse ; -- Begin function reverse .p2align 2 _reverse: ; @reverse .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #8] ldr x8, [sp, #8] ldr x8, [x8, #8] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: ldr x8, [sp, #8] adrp x9, _head@GOTPAGE ldr x9, [x9, _head@GOTPAGEOFF] str x8, [x9] b LBB1_3 LBB1_2: ldr x8, [sp, #8] ldr x0, [x8, #8] bl _reverse ldr x8, [sp, #8] ldr x8, [x8, #8] str x8, [sp] ldr x8, [sp, #8] ldr x9, [sp] str x8, [x9, #8] ldr x8, [sp, #8] ; kill: def $x9 killed $xzr str xzr, [x8, #8] b LBB1_3 LBB1_3: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _print ; -- Begin function print .p2align 2 _print: ; @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, LBB2_2 b LBB2_1 LBB2_1: b LBB2_3 LBB2_2: ldr x8, [sp, #8] ldr w9, [x8] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldr x8, [sp, #8] ldr x0, [x8, #8] bl _print b LBB2_3 LBB2_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 adrp x8, _head@GOTPAGE ldr x8, [x8, _head@GOTPAGEOFF] str x8, [sp, #8] ; 8-byte Folded Spill mov w9, #0 stur w9, [x29, #-8] ; 4-byte Folded Spill stur wzr, [x29, #-4] ; kill: def $x9 killed $xzr str xzr, [x8] mov w0, #1 bl _insert_append mov w0, #2 bl _insert_append mov w0, #3 bl _insert_append mov w0, #4 bl _insert_append mov w0, #5 bl _insert_append adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf ldr x8, [sp, #8] ; 8-byte Folded Reload ldr x0, [x8] bl _print adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF str x0, [sp, #16] ; 8-byte Folded Spill bl _printf ldr x8, [sp, #8] ; 8-byte Folded Reload ldr x0, [x8] bl _reverse adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf ldr x8, [sp, #8] ; 8-byte Folded Reload ldr x0, [x8] bl _print ldr x0, [sp, #16] ; 8-byte Folded Reload bl _printf ldur w0, [x29, #-8] ; 4-byte Folded Reload ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .comm _head,8,3 ; @head .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz " %d" l_.str.1: ; @.str.1 .asciz "list is:" l_.str.2: ; @.str.2 .asciz "\n" l_.str.3: ; @.str.3 .asciz "Reverse list is:" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _insert_append ## -- Begin function insert_append .p2align 4, 0x90 _insert_append: ## @insert_append .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl %edi, -4(%rbp) movl $16, %edi callq _malloc movq %rax, -16(%rbp) movl -4(%rbp), %ecx movq -16(%rbp), %rax movl %ecx, (%rax) movq -16(%rbp), %rax movq $0, 8(%rax) movq _head@GOTPCREL(%rip), %rax cmpq $0, (%rax) je LBB0_5 ## %bb.1: movq _head@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -24(%rbp) LBB0_2: ## =>This Inner Loop Header: Depth=1 movq -24(%rbp), %rax cmpq $0, 8(%rax) je LBB0_4 ## %bb.3: ## in Loop: Header=BB0_2 Depth=1 movq -24(%rbp), %rax movq 8(%rax), %rax movq %rax, -24(%rbp) jmp LBB0_2 LBB0_4: movq -16(%rbp), %rcx movq -24(%rbp), %rax movq %rcx, 8(%rax) jmp LBB0_6 LBB0_5: movq -16(%rbp), %rcx movq _head@GOTPCREL(%rip), %rax movq %rcx, (%rax) LBB0_6: addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _reverse ## -- Begin function reverse .p2align 4, 0x90 _reverse: ## @reverse .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) movq -8(%rbp), %rax cmpq $0, 8(%rax) jne LBB1_2 ## %bb.1: movq -8(%rbp), %rcx movq _head@GOTPCREL(%rip), %rax movq %rcx, (%rax) jmp LBB1_3 LBB1_2: movq -8(%rbp), %rax movq 8(%rax), %rdi callq _reverse movq -8(%rbp), %rax movq 8(%rax), %rax movq %rax, -16(%rbp) movq -8(%rbp), %rcx movq -16(%rbp), %rax movq %rcx, 8(%rax) movq -8(%rbp), %rax movq $0, 8(%rax) LBB1_3: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _print ## -- Begin function print .p2align 4, 0x90 _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, -8(%rbp) cmpq $0, -8(%rbp) jne LBB2_2 ## %bb.1: jmp LBB2_3 LBB2_2: movq -8(%rbp), %rax movl (%rax), %esi leaq L_.str(%rip), %rdi movb $0, %al callq _printf movq -8(%rbp), %rax movq 8(%rax), %rdi callq _print LBB2_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) movq _head@GOTPCREL(%rip), %rax movq $0, (%rax) movl $1, %edi callq _insert_append movl $2, %edi callq _insert_append movl $3, %edi callq _insert_append movl $4, %edi callq _insert_append movl $5, %edi callq _insert_append leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf movq _head@GOTPCREL(%rip), %rax movq (%rax), %rdi callq _print leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf movq _head@GOTPCREL(%rip), %rax movq (%rax), %rdi callq _reverse leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf movq _head@GOTPCREL(%rip), %rax movq (%rax), %rdi callq _print leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .comm _head,8,3 ## @head .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz " %d" L_.str.1: ## @.str.1 .asciz "list is:" L_.str.2: ## @.str.2 .asciz "\n" L_.str.3: ## @.str.3 .asciz "Reverse list is:" .subsections_via_symbols
the_stack_data/115765432.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/950482.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _foo ; -- Begin function foo .p2align 2 _foo: ; @foo .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #12] ldr w8, [sp, #12] str w8, [sp, #8] adrp x8, _d@GOTPAGE ldr x8, [x8, _d@GOTPAGEOFF] add x9, sp, #8 ; InlineAsm Start ; InlineAsm End adrp x9, _cnt@GOTPAGE ldr x9, [x9, _cnt@GOTPAGEOFF] ldr w8, [x9] add w8, w8, #1 str w8, [x9] add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _f1 ; -- Begin function f1 .p2align 2 _f1: ; @f1 .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur w0, [x29, #-4] str w1, [sp, #8] ldur w8, [x29, #-4] ldr w9, [sp, #8] add w8, w8, w9 str w8, [sp, #4] ldr w8, [sp, #4] ldr w9, [sp, #8] subs w8, w8, w9 cset w8, ls tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: mov w0, #0 bl _foo b LBB1_2 LBB1_2: ldr w0, [sp, #4] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _f2 ; -- Begin function f2 .p2align 2 _f2: ; @f2 .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] str x1, [sp, #16] ldur x8, [x29, #-8] ldr x9, [sp, #16] add x8, x8, x9 str x8, [sp, #8] ldr x8, [sp, #8] ldr x9, [sp, #16] subs x8, x8, x9 cset w8, hi tbnz w8, #0, LBB2_2 b LBB2_1 LBB2_1: mov w0, #0 bl _foo b LBB2_2 LBB2_2: ldr x0, [sp, #8] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _f3 ; -- Begin function f3 .p2align 2 _f3: ; @f3 .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 sturh w0, [x29, #-2] sturh w1, [x29, #-4] ldurh w8, [x29, #-2] ldurh w9, [x29, #-4] add w8, w8, w9 sturh w8, [x29, #-6] ldurh w8, [x29, #-4] ldurh w9, [x29, #-6] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB3_2 b LBB3_1 LBB3_1: ldurh w0, [x29, #-6] bl _foo b LBB3_2 LBB3_2: ldurh w0, [x29, #-6] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _f4 ; -- Begin function f4 .p2align 2 _f4: ; @f4 .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] str x1, [sp, #16] ldur x8, [x29, #-8] ldr x9, [sp, #16] add x8, x8, x9 str x8, [sp, #8] ldr x8, [sp, #16] ldr x9, [sp, #8] subs x8, x8, x9 cset w8, lo tbnz w8, #0, LBB4_2 b LBB4_1 LBB4_1: mov w0, #0 bl _foo b LBB4_2 LBB4_2: ldr x0, [sp, #8] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _f5 ; -- Begin function f5 .p2align 2 _f5: ; @f5 .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur w0, [x29, #-4] str w1, [sp, #8] ldur w8, [x29, #-4] ldr w9, [sp, #8] add w8, w8, w9 str w8, [sp, #4] ldr w8, [sp, #4] ldr w9, [sp, #8] subs w8, w8, w9 cset w8, lo tbnz w8, #0, LBB5_2 b LBB5_1 LBB5_1: mov w0, #0 bl _foo b LBB5_2 LBB5_2: ldr w0, [sp, #4] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _f6 ; -- Begin function f6 .p2align 2 _f6: ; @f6 .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] str x1, [sp, #16] ldur x8, [x29, #-8] ldr x9, [sp, #16] add x8, x8, x9 str x8, [sp, #8] ldr x8, [sp, #8] ldr x9, [sp, #16] subs x8, x8, x9 cset w8, hs tbnz w8, #0, LBB6_2 b LBB6_1 LBB6_1: mov w0, #0 bl _foo b LBB6_2 LBB6_2: ldr x0, [sp, #8] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _f7 ; -- Begin function f7 .p2align 2 _f7: ; @f7 .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 sturh w0, [x29, #-2] sturh w1, [x29, #-4] ldurh w8, [x29, #-2] ldurh w9, [x29, #-4] add w8, w8, w9 sturh w8, [x29, #-6] ldurh w8, [x29, #-4] ldurh w9, [x29, #-6] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB7_2 b LBB7_1 LBB7_1: ldurh w0, [x29, #-6] bl _foo b LBB7_2 LBB7_2: ldurh w0, [x29, #-6] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _f8 ; -- Begin function f8 .p2align 2 _f8: ; @f8 .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] str x1, [sp, #16] ldur x8, [x29, #-8] ldr x9, [sp, #16] add x8, x8, x9 str x8, [sp, #8] adrp x8, _d@GOTPAGE ldr x8, [x8, _d@GOTPAGEOFF] ldr w8, [x8] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB8_2 b LBB8_1 LBB8_1: ldr x8, [sp, #16] ldr x9, [sp, #8] subs x8, x8, x9 cset w8, ls tbnz w8, #0, LBB8_3 b LBB8_2 LBB8_2: mov w0, #0 bl _foo b LBB8_3 LBB8_3: ldr x0, [sp, #8] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _f9 ; -- Begin function f9 .p2align 2 _f9: ; @f9 .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur w0, [x29, #-4] str w1, [sp, #8] ldur w8, [x29, #-4] ldr w9, [sp, #8] add w8, w8, w9 str w8, [sp, #4] adrp x8, _d@GOTPAGE ldr x8, [x8, _d@GOTPAGEOFF] ldr w8, [x8] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB9_2 b LBB9_1 LBB9_1: ldr w8, [sp, #4] ldr w9, [sp, #8] subs w8, w8, w9 cset w8, ls tbnz w8, #0, LBB9_3 b LBB9_2 LBB9_2: mov w0, #0 bl _foo b LBB9_3 LBB9_3: ldr w0, [sp, #4] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _f10 ; -- Begin function f10 .p2align 2 _f10: ; @f10 .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] str x1, [sp, #16] ldur x8, [x29, #-8] ldr x9, [sp, #16] add x8, x8, x9 str x8, [sp, #8] adrp x8, _d@GOTPAGE ldr x8, [x8, _d@GOTPAGEOFF] ldr w8, [x8] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB10_2 b LBB10_1 LBB10_1: ldr x8, [sp, #8] ldr x9, [sp, #16] subs x8, x8, x9 cset w8, hi tbnz w8, #0, LBB10_3 b LBB10_2 LBB10_2: mov w0, #0 bl _foo b LBB10_3 LBB10_3: ldr x0, [sp, #8] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _f11 ; -- Begin function f11 .p2align 2 _f11: ; @f11 .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 sturb w0, [x29, #-1] sturb w1, [x29, #-2] ldurb w8, [x29, #-1] ldurb w9, [x29, #-2] add w8, w8, w9 sturb w8, [x29, #-3] adrp x8, _d@GOTPAGE ldr x8, [x8, _d@GOTPAGEOFF] ldr w8, [x8] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB11_2 b LBB11_1 LBB11_1: ldurb w8, [x29, #-2] ldurb w9, [x29, #-3] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB11_3 b LBB11_2 LBB11_2: mov w0, #0 bl _foo b LBB11_3 LBB11_3: ldurb w0, [x29, #-3] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _f12 ; -- Begin function f12 .p2align 2 _f12: ; @f12 .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] str x1, [sp, #16] ldur x8, [x29, #-8] ldr x9, [sp, #16] add x8, x8, x9 str x8, [sp, #8] adrp x8, _d@GOTPAGE ldr x8, [x8, _d@GOTPAGEOFF] ldr w8, [x8] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB12_2 b LBB12_1 LBB12_1: ldr x8, [sp, #16] ldr x9, [sp, #8] subs x8, x8, x9 cset w8, lo tbnz w8, #0, LBB12_3 b LBB12_2 LBB12_2: mov w0, #0 bl _foo b LBB12_3 LBB12_3: ldr x0, [sp, #8] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _f13 ; -- Begin function f13 .p2align 2 _f13: ; @f13 .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur w0, [x29, #-4] str w1, [sp, #8] ldur w8, [x29, #-4] ldr w9, [sp, #8] add w8, w8, w9 str w8, [sp, #4] adrp x8, _d@GOTPAGE ldr x8, [x8, _d@GOTPAGEOFF] ldr w8, [x8] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB13_2 b LBB13_1 LBB13_1: ldr w8, [sp, #4] ldr w9, [sp, #8] subs w8, w8, w9 cset w8, lo tbnz w8, #0, LBB13_3 b LBB13_2 LBB13_2: mov w0, #0 bl _foo b LBB13_3 LBB13_3: ldr w0, [sp, #4] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _f14 ; -- Begin function f14 .p2align 2 _f14: ; @f14 .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] str x1, [sp, #16] ldur x8, [x29, #-8] ldr x9, [sp, #16] add x8, x8, x9 str x8, [sp, #8] adrp x8, _d@GOTPAGE ldr x8, [x8, _d@GOTPAGEOFF] ldr w8, [x8] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB14_2 b LBB14_1 LBB14_1: ldr x8, [sp, #8] ldr x9, [sp, #16] subs x8, x8, x9 cset w8, hs tbnz w8, #0, LBB14_3 b LBB14_2 LBB14_2: mov w0, #0 bl _foo b LBB14_3 LBB14_3: ldr x0, [sp, #8] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _f15 ; -- Begin function f15 .p2align 2 _f15: ; @f15 .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 sturh w0, [x29, #-2] sturh w1, [x29, #-4] ldurh w8, [x29, #-2] ldurh w9, [x29, #-4] add w8, w8, w9 sturh w8, [x29, #-6] adrp x8, _d@GOTPAGE ldr x8, [x8, _d@GOTPAGEOFF] ldr w8, [x8] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB15_2 b LBB15_1 LBB15_1: ldurh w8, [x29, #-4] ldurh w9, [x29, #-6] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB15_3 b LBB15_2 LBB15_2: mov w0, #0 bl _foo b LBB15_3 LBB15_3: ldurh w0, [x29, #-6] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _f16 ; -- Begin function f16 .p2align 2 _f16: ; @f16 .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] str x1, [sp, #16] ldur x8, [x29, #-8] ldr x9, [sp, #16] add x8, x8, x9 str x8, [sp, #8] adrp x8, _d@GOTPAGE ldr x8, [x8, _d@GOTPAGEOFF] ldr w8, [x8] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB16_2 b LBB16_1 LBB16_1: ldr x8, [sp, #16] ldr x9, [sp, #8] subs x8, x8, x9 cset w8, ls tbnz w8, #0, LBB16_3 b LBB16_2 LBB16_2: mov w0, #0 bl _foo b LBB16_3 LBB16_3: ldr x0, [sp, #8] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, _cnt@GOTPAGE ldr x8, [x8, _cnt@GOTPAGEOFF] stur x8, [x29, #-16] ; 8-byte Folded Spill mov w1, #0 stur wzr, [x29, #-4] mov w0, #-7 bl _f1 adds w8, w0, #7 cset w8, ne tbnz w8, #0, LBB17_2 b LBB17_1 LBB17_1: ldur x8, [x29, #-16] ; 8-byte Folded Reload ldr w8, [x8] subs w8, w8, #1 cset w8, eq tbnz w8, #0, LBB17_3 b LBB17_2 LBB17_2: bl _abort LBB17_3: mov w0, #-7 mov w1, #6 bl _f1 adds w8, w0, #1 cset w8, ne tbnz w8, #0, LBB17_5 b LBB17_4 LBB17_4: ldur x8, [x29, #-16] ; 8-byte Folded Reload ldr w8, [x8] subs w8, w8, #2 cset w8, eq tbnz w8, #0, LBB17_6 b LBB17_5 LBB17_5: bl _abort LBB17_6: mov w0, #-7 mov w1, #7 bl _f1 subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB17_8 b LBB17_7 LBB17_7: ldur x8, [x29, #-16] ; 8-byte Folded Reload ldr w8, [x8] subs w8, w8, #2 cset w8, eq tbnz w8, #0, LBB17_9 b LBB17_8 LBB17_8: bl _abort LBB17_9: mov w0, #-7 mov w1, #8 bl _f1 subs w8, w0, #1 cset w8, ne tbnz w8, #0, LBB17_11 b LBB17_10 LBB17_10: ldur x8, [x29, #-16] ; 8-byte Folded Reload ldr w8, [x8] subs w8, w8, #2 cset w8, eq tbnz w8, #0, LBB17_12 b LBB17_11 LBB17_11: bl _abort LBB17_12: mov x0, #-9 mov x1, #0 bl _f2 adds x8, x0, #9 cset w8, ne tbnz w8, #0, LBB17_14 b LBB17_13 LBB17_13: ldur x8, [x29, #-16] ; 8-byte Folded Reload ldr w8, [x8] subs w8, w8, #2 cset w8, eq tbnz w8, #0, LBB17_15 b LBB17_14 LBB17_14: bl _abort LBB17_15: mov x0, #-9 mov x1, #8 bl _f2 adds x8, x0, #1 cset w8, ne tbnz w8, #0, LBB17_17 b LBB17_16 LBB17_16: ldur x8, [x29, #-16] ; 8-byte Folded Reload ldr w8, [x8] subs w8, w8, #2 cset w8, eq tbnz w8, #0, LBB17_18 b LBB17_17 LBB17_17: bl _abort LBB17_18: mov x0, #-9 mov x1, #9 bl _f2 subs x8, x0, #0 cset w8, ne tbnz w8, #0, LBB17_20 b LBB17_19 LBB17_19: ldur x8, [x29, #-16] ; 8-byte Folded Reload ldr w8, [x8] subs w8, w8, #3 cset w8, eq tbnz w8, #0, LBB17_21 b LBB17_20 LBB17_20: bl _abort LBB17_21: mov x0, #-9 mov x1, #10 bl _f2 subs x8, x0, #1 cset w8, ne tbnz w8, #0, LBB17_23 b LBB17_22 LBB17_22: ldur x8, [x29, #-16] ; 8-byte Folded Reload ldr w8, [x8] subs w8, w8, #4 cset w8, eq tbnz w8, #0, LBB17_24 b LBB17_23 LBB17_23: bl _abort LBB17_24: mov w0, #65521 mov w1, #0 bl _f3 mov w8, #65521 subs w8, w8, w0, uxth cset w8, ne tbnz w8, #0, LBB17_26 b LBB17_25 LBB17_25: ldur x8, [x29, #-16] ; 8-byte Folded Reload ldr w8, [x8] subs w8, w8, #5 cset w8, eq tbnz w8, #0, LBB17_27 b LBB17_26 LBB17_26: bl _abort LBB17_27: mov w0, #65521 mov w1, #14 bl _f3 mov w8, #65535 subs w8, w8, w0, uxth cset w8, ne tbnz w8, #0, LBB17_29 b LBB17_28 LBB17_28: ldur x8, [x29, #-16] ; 8-byte Folded Reload ldr w8, [x8] subs w8, w8, #6 cset w8, eq tbnz w8, #0, LBB17_30 b LBB17_29 LBB17_29: bl _abort LBB17_30: mov w0, #65521 mov w1, #15 bl _f3 ands w8, w0, #0xffff cset w8, ne tbnz w8, #0, LBB17_32 b LBB17_31 LBB17_31: ldur x8, [x29, #-16] ; 8-byte Folded Reload ldr w8, [x8] subs w8, w8, #6 cset w8, eq tbnz w8, #0, LBB17_33 b LBB17_32 LBB17_32: bl _abort LBB17_33: mov w0, #65521 mov w1, #16 bl _f3 and w8, w0, #0xffff subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB17_35 b LBB17_34 LBB17_34: ldur x8, [x29, #-16] ; 8-byte Folded Reload ldr w8, [x8] subs w8, w8, #6 cset w8, eq tbnz w8, #0, LBB17_36 b LBB17_35 LBB17_35: bl _abort LBB17_36: mov x0, #-9132 str x0, [sp, #24] ; 8-byte Folded Spill mov x1, #0 bl _f4 ldr x8, [sp, #24] ; 8-byte Folded Reload subs x8, x0, x8 cset w8, ne tbnz w8, #0, LBB17_38 b LBB17_37 LBB17_37: ldur x8, [x29, #-16] ; 8-byte Folded Reload ldr w8, [x8] subs w8, w8, #6 cset w8, eq tbnz w8, #0, LBB17_39 b LBB17_38 LBB17_38: bl _abort LBB17_39: mov x0, #-9132 mov x1, #9131 bl _f4 adds x8, x0, #1 cset w8, ne tbnz w8, #0, LBB17_41 b LBB17_40 LBB17_40: ldur x8, [x29, #-16] ; 8-byte Folded Reload ldr w8, [x8] subs w8, w8, #6 cset w8, eq tbnz w8, #0, LBB17_42 b LBB17_41 LBB17_41: bl _abort LBB17_42: mov x0, #-9132 mov x1, #9132 bl _f4 subs x8, x0, #0 cset w8, ne tbnz w8, #0, LBB17_44 b LBB17_43 LBB17_43: ldur x8, [x29, #-16] ; 8-byte Folded Reload ldr w8, [x8] subs w8, w8, #7 cset w8, eq tbnz w8, #0, LBB17_45 b LBB17_44 LBB17_44: bl _abort LBB17_45: mov x0, #-9132 mov x1, #9133 bl _f4 subs x8, x0, #1 cset w8, ne tbnz w8, #0, LBB17_47 b LBB17_46 LBB17_46: ldur x8, [x29, #-16] ; 8-byte Folded Reload ldr w8, [x8] subs w8, w8, #8 cset w8, eq tbnz w8, #0, LBB17_48 b LBB17_47 LBB17_47: bl _abort LBB17_48: mov w0, #-7 mov w1, #0 bl _f5 adds w8, w0, #7 cset w8, ne tbnz w8, #0, LBB17_50 b LBB17_49 LBB17_49: ldur x8, [x29, #-16] ; 8-byte Folded Reload ldr w8, [x8] subs w8, w8, #9 cset w8, eq tbnz w8, #0, LBB17_51 b LBB17_50 LBB17_50: bl _abort LBB17_51: mov w0, #-7 mov w1, #6 bl _f5 adds w8, w0, #1 cset w8, ne tbnz w8, #0, LBB17_53 b LBB17_52 LBB17_52: ldur x8, [x29, #-16] ; 8-byte Folded Reload ldr w8, [x8] subs w8, w8, #10 cset w8, eq tbnz w8, #0, LBB17_54 b LBB17_53 LBB17_53: bl _abort LBB17_54: mov w0, #-7 mov w1, #7 bl _f5 subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB17_56 b LBB17_55 LBB17_55: ldur x8, [x29, #-16] ; 8-byte Folded Reload ldr w8, [x8] subs w8, w8, #10 cset w8, eq tbnz w8, #0, LBB17_57 b LBB17_56 LBB17_56: bl _abort LBB17_57: mov w0, #-7 mov w1, #8 bl _f5 subs w8, w0, #1 cset w8, ne tbnz w8, #0, LBB17_59 b LBB17_58 LBB17_58: ldur x8, [x29, #-16] ; 8-byte Folded Reload ldr w8, [x8] subs w8, w8, #10 cset w8, eq tbnz w8, #0, LBB17_60 b LBB17_59 LBB17_59: bl _abort LBB17_60: mov x0, #-9 mov x1, #0 bl _f6 adds x8, x0, #9 cset w8, ne tbnz w8, #0, LBB17_62 b LBB17_61 LBB17_61: ldur x8, [x29, #-16] ; 8-byte Folded Reload ldr w8, [x8] subs w8, w8, #10 cset w8, eq tbnz w8, #0, LBB17_63 b LBB17_62 LBB17_62: bl _abort LBB17_63: mov x0, #-9 mov x1, #8 bl _f6 adds x8, x0, #1 cset w8, ne tbnz w8, #0, LBB17_65 b LBB17_64 LBB17_64: ldur x8, [x29, #-16] ; 8-byte Folded Reload ldr w8, [x8] subs w8, w8, #10 cset w8, eq tbnz w8, #0, LBB17_66 b LBB17_65 LBB17_65: bl _abort LBB17_66: mov x0, #-9 mov x1, #9 bl _f6 subs x8, x0, #0 cset w8, ne tbnz w8, #0, LBB17_68 b LBB17_67 LBB17_67: ldur x8, [x29, #-16] ; 8-byte Folded Reload ldr w8, [x8] subs w8, w8, #11 cset w8, eq tbnz w8, #0, LBB17_69 b LBB17_68 LBB17_68: bl _abort LBB17_69: mov x0, #-9 mov x1, #10 bl _f6 subs x8, x0, #1 cset w8, ne tbnz w8, #0, LBB17_71 b LBB17_70 LBB17_70: ldur x8, [x29, #-16] ; 8-byte Folded Reload ldr w8, [x8] subs w8, w8, #12 cset w8, eq tbnz w8, #0, LBB17_72 b LBB17_71 LBB17_71: bl _abort LBB17_72: mov w0, #65521 mov w1, #0 bl _f7 mov w8, #65521 subs w8, w8, w0, uxth cset w8, ne tbnz w8, #0, LBB17_74 b LBB17_73 LBB17_73: ldur x8, [x29, #-16] ; 8-byte Folded Reload ldr w8, [x8] subs w8, w8, #13 cset w8, eq tbnz w8, #0, LBB17_75 b LBB17_74 LBB17_74: bl _abort LBB17_75: mov w0, #65521 mov w1, #14 bl _f7 mov w8, #65535 subs w8, w8, w0, uxth cset w8, ne tbnz w8, #0, LBB17_77 b LBB17_76 LBB17_76: ldur x8, [x29, #-16] ; 8-byte Folded Reload ldr w8, [x8] subs w8, w8, #14 cset w8, eq tbnz w8, #0, LBB17_78 b LBB17_77 LBB17_77: bl _abort LBB17_78: mov w0, #65521 mov w1, #15 bl _f7 ands w8, w0, #0xffff cset w8, ne tbnz w8, #0, LBB17_80 b LBB17_79 LBB17_79: ldur x8, [x29, #-16] ; 8-byte Folded Reload ldr w8, [x8] subs w8, w8, #14 cset w8, eq tbnz w8, #0, LBB17_81 b LBB17_80 LBB17_80: bl _abort LBB17_81: mov w0, #65521 mov w1, #16 bl _f7 and w8, w0, #0xffff subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB17_83 b LBB17_82 LBB17_82: ldur x8, [x29, #-16] ; 8-byte Folded Reload ldr w8, [x8] subs w8, w8, #14 cset w8, eq tbnz w8, #0, LBB17_84 b LBB17_83 LBB17_83: bl _abort LBB17_84: mov x0, #-9132 str x0, [sp, #16] ; 8-byte Folded Spill mov x1, #0 bl _f8 ldr x8, [sp, #16] ; 8-byte Folded Reload subs x8, x0, x8 cset w8, ne tbnz w8, #0, LBB17_86 b LBB17_85 LBB17_85: ldur x8, [x29, #-16] ; 8-byte Folded Reload ldr w8, [x8] subs w8, w8, #14 cset w8, eq tbnz w8, #0, LBB17_87 b LBB17_86 LBB17_86: bl _abort LBB17_87: mov x0, #-9132 mov x1, #9131 bl _f8 adds x8, x0, #1 cset w8, ne tbnz w8, #0, LBB17_89 b LBB17_88 LBB17_88: ldur x8, [x29, #-16] ; 8-byte Folded Reload ldr w8, [x8] subs w8, w8, #14 cset w8, eq tbnz w8, #0, LBB17_90 b LBB17_89 LBB17_89: bl _abort LBB17_90: mov x0, #-9132 mov x1, #9132 bl _f8 subs x8, x0, #0 cset w8, ne tbnz w8, #0, LBB17_92 b LBB17_91 LBB17_91: ldur x8, [x29, #-16] ; 8-byte Folded Reload ldr w8, [x8] subs w8, w8, #15 cset w8, eq tbnz w8, #0, LBB17_93 b LBB17_92 LBB17_92: bl _abort LBB17_93: mov x0, #-9132 mov x1, #9133 bl _f8 subs x8, x0, #1 cset w8, ne tbnz w8, #0, LBB17_95 b LBB17_94 LBB17_94: ldur x8, [x29, #-16] ; 8-byte Folded Reload ldr w8, [x8] subs w8, w8, #16 cset w8, eq tbnz w8, #0, LBB17_96 b LBB17_95 LBB17_95: bl _abort LBB17_96: ldur x8, [x29, #-16] ; 8-byte Folded Reload mov w1, #0 str wzr, [x8] mov w0, #-7 bl _f9 adds w8, w0, #7 cset w8, ne tbnz w8, #0, LBB17_98 b LBB17_97 LBB17_97: ldur x8, [x29, #-16] ; 8-byte Folded Reload ldr w8, [x8] subs w8, w8, #1 cset w8, eq tbnz w8, #0, LBB17_99 b LBB17_98 LBB17_98: bl _abort LBB17_99: mov w0, #-7 mov w1, #6 bl _f9 adds w8, w0, #1 cset w8, ne tbnz w8, #0, LBB17_101 b LBB17_100 LBB17_100: ldur x8, [x29, #-16] ; 8-byte Folded Reload ldr w8, [x8] subs w8, w8, #2 cset w8, eq tbnz w8, #0, LBB17_102 b LBB17_101 LBB17_101: bl _abort LBB17_102: mov w0, #-7 mov w1, #7 bl _f9 subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB17_104 b LBB17_103 LBB17_103: ldur x8, [x29, #-16] ; 8-byte Folded Reload ldr w8, [x8] subs w8, w8, #2 cset w8, eq tbnz w8, #0, LBB17_105 b LBB17_104 LBB17_104: bl _abort LBB17_105: mov w0, #-7 mov w1, #8 bl _f9 subs w8, w0, #1 cset w8, ne tbnz w8, #0, LBB17_107 b LBB17_106 LBB17_106: ldur x8, [x29, #-16] ; 8-byte Folded Reload ldr w8, [x8] subs w8, w8, #2 cset w8, eq tbnz w8, #0, LBB17_108 b LBB17_107 LBB17_107: bl _abort LBB17_108: mov x0, #-9 mov x1, #0 bl _f10 adds x8, x0, #9 cset w8, ne tbnz w8, #0, LBB17_110 b LBB17_109 LBB17_109: ldur x8, [x29, #-16] ; 8-byte Folded Reload ldr w8, [x8] subs w8, w8, #2 cset w8, eq tbnz w8, #0, LBB17_111 b LBB17_110 LBB17_110: bl _abort LBB17_111: mov x0, #-9 mov x1, #8 bl _f10 adds x8, x0, #1 cset w8, ne tbnz w8, #0, LBB17_113 b LBB17_112 LBB17_112: ldur x8, [x29, #-16] ; 8-byte Folded Reload ldr w8, [x8] subs w8, w8, #2 cset w8, eq tbnz w8, #0, LBB17_114 b LBB17_113 LBB17_113: bl _abort LBB17_114: mov x0, #-9 mov x1, #9 bl _f10 subs x8, x0, #0 cset w8, ne tbnz w8, #0, LBB17_116 b LBB17_115 LBB17_115: ldur x8, [x29, #-16] ; 8-byte Folded Reload ldr w8, [x8] subs w8, w8, #3 cset w8, eq tbnz w8, #0, LBB17_117 b LBB17_116 LBB17_116: bl _abort LBB17_117: mov x0, #-9 mov x1, #10 bl _f10 subs x8, x0, #1 cset w8, ne tbnz w8, #0, LBB17_119 b LBB17_118 LBB17_118: ldur x8, [x29, #-16] ; 8-byte Folded Reload ldr w8, [x8] subs w8, w8, #4 cset w8, eq tbnz w8, #0, LBB17_120 b LBB17_119 LBB17_119: bl _abort LBB17_120: mov w0, #241 mov w1, #0 bl _f11 and w8, w0, #0xff subs w8, w8, #241 cset w8, ne tbnz w8, #0, LBB17_122 b LBB17_121 LBB17_121: ldur x8, [x29, #-16] ; 8-byte Folded Reload ldr w8, [x8] subs w8, w8, #5 cset w8, eq tbnz w8, #0, LBB17_123 b LBB17_122 LBB17_122: bl _abort LBB17_123: mov w0, #241 mov w1, #14 bl _f11 and w8, w0, #0xff subs w8, w8, #255 cset w8, ne tbnz w8, #0, LBB17_125 b LBB17_124 LBB17_124: ldur x8, [x29, #-16] ; 8-byte Folded Reload ldr w8, [x8] subs w8, w8, #6 cset w8, eq tbnz w8, #0, LBB17_126 b LBB17_125 LBB17_125: bl _abort LBB17_126: mov w0, #241 mov w1, #15 bl _f11 ands w8, w0, #0xff cset w8, ne tbnz w8, #0, LBB17_128 b LBB17_127 LBB17_127: ldur x8, [x29, #-16] ; 8-byte Folded Reload ldr w8, [x8] subs w8, w8, #6 cset w8, eq tbnz w8, #0, LBB17_129 b LBB17_128 LBB17_128: bl _abort LBB17_129: mov w0, #241 mov w1, #16 bl _f11 and w8, w0, #0xff subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB17_131 b LBB17_130 LBB17_130: ldur x8, [x29, #-16] ; 8-byte Folded Reload ldr w8, [x8] subs w8, w8, #6 cset w8, eq tbnz w8, #0, LBB17_132 b LBB17_131 LBB17_131: bl _abort LBB17_132: mov x0, #-9132 str x0, [sp, #8] ; 8-byte Folded Spill mov x1, #0 bl _f12 ldr x8, [sp, #8] ; 8-byte Folded Reload subs x8, x0, x8 cset w8, ne tbnz w8, #0, LBB17_134 b LBB17_133 LBB17_133: ldur x8, [x29, #-16] ; 8-byte Folded Reload ldr w8, [x8] subs w8, w8, #6 cset w8, eq tbnz w8, #0, LBB17_135 b LBB17_134 LBB17_134: bl _abort LBB17_135: mov x0, #-9132 mov x1, #9131 bl _f12 adds x8, x0, #1 cset w8, ne tbnz w8, #0, LBB17_137 b LBB17_136 LBB17_136: ldur x8, [x29, #-16] ; 8-byte Folded Reload ldr w8, [x8] subs w8, w8, #6 cset w8, eq tbnz w8, #0, LBB17_138 b LBB17_137 LBB17_137: bl _abort LBB17_138: mov x0, #-9132 mov x1, #9132 bl _f12 subs x8, x0, #0 cset w8, ne tbnz w8, #0, LBB17_140 b LBB17_139 LBB17_139: ldur x8, [x29, #-16] ; 8-byte Folded Reload ldr w8, [x8] subs w8, w8, #7 cset w8, eq tbnz w8, #0, LBB17_141 b LBB17_140 LBB17_140: bl _abort LBB17_141: mov x0, #-9132 mov x1, #9133 bl _f12 subs x8, x0, #1 cset w8, ne tbnz w8, #0, LBB17_143 b LBB17_142 LBB17_142: ldur x8, [x29, #-16] ; 8-byte Folded Reload ldr w8, [x8] subs w8, w8, #8 cset w8, eq tbnz w8, #0, LBB17_144 b LBB17_143 LBB17_143: bl _abort LBB17_144: mov w0, #-7 mov w1, #0 bl _f13 adds w8, w0, #7 cset w8, ne tbnz w8, #0, LBB17_146 b LBB17_145 LBB17_145: ldur x8, [x29, #-16] ; 8-byte Folded Reload ldr w8, [x8] subs w8, w8, #9 cset w8, eq tbnz w8, #0, LBB17_147 b LBB17_146 LBB17_146: bl _abort LBB17_147: mov w0, #-7 mov w1, #6 bl _f13 adds w8, w0, #1 cset w8, ne tbnz w8, #0, LBB17_149 b LBB17_148 LBB17_148: ldur x8, [x29, #-16] ; 8-byte Folded Reload ldr w8, [x8] subs w8, w8, #10 cset w8, eq tbnz w8, #0, LBB17_150 b LBB17_149 LBB17_149: bl _abort LBB17_150: mov w0, #-7 mov w1, #7 bl _f13 subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB17_152 b LBB17_151 LBB17_151: ldur x8, [x29, #-16] ; 8-byte Folded Reload ldr w8, [x8] subs w8, w8, #10 cset w8, eq tbnz w8, #0, LBB17_153 b LBB17_152 LBB17_152: bl _abort LBB17_153: mov w0, #-7 mov w1, #8 bl _f13 subs w8, w0, #1 cset w8, ne tbnz w8, #0, LBB17_155 b LBB17_154 LBB17_154: ldur x8, [x29, #-16] ; 8-byte Folded Reload ldr w8, [x8] subs w8, w8, #10 cset w8, eq tbnz w8, #0, LBB17_156 b LBB17_155 LBB17_155: bl _abort LBB17_156: mov x0, #-9 mov x1, #0 bl _f14 adds x8, x0, #9 cset w8, ne tbnz w8, #0, LBB17_158 b LBB17_157 LBB17_157: ldur x8, [x29, #-16] ; 8-byte Folded Reload ldr w8, [x8] subs w8, w8, #10 cset w8, eq tbnz w8, #0, LBB17_159 b LBB17_158 LBB17_158: bl _abort LBB17_159: mov x0, #-9 mov x1, #8 bl _f14 adds x8, x0, #1 cset w8, ne tbnz w8, #0, LBB17_161 b LBB17_160 LBB17_160: ldur x8, [x29, #-16] ; 8-byte Folded Reload ldr w8, [x8] subs w8, w8, #10 cset w8, eq tbnz w8, #0, LBB17_162 b LBB17_161 LBB17_161: bl _abort LBB17_162: mov x0, #-9 mov x1, #9 bl _f14 subs x8, x0, #0 cset w8, ne tbnz w8, #0, LBB17_164 b LBB17_163 LBB17_163: ldur x8, [x29, #-16] ; 8-byte Folded Reload ldr w8, [x8] subs w8, w8, #11 cset w8, eq tbnz w8, #0, LBB17_165 b LBB17_164 LBB17_164: bl _abort LBB17_165: mov x0, #-9 mov x1, #10 bl _f14 subs x8, x0, #1 cset w8, ne tbnz w8, #0, LBB17_167 b LBB17_166 LBB17_166: ldur x8, [x29, #-16] ; 8-byte Folded Reload ldr w8, [x8] subs w8, w8, #12 cset w8, eq tbnz w8, #0, LBB17_168 b LBB17_167 LBB17_167: bl _abort LBB17_168: mov w0, #65521 mov w1, #0 bl _f15 mov w8, #65521 subs w8, w8, w0, uxth cset w8, ne tbnz w8, #0, LBB17_170 b LBB17_169 LBB17_169: ldur x8, [x29, #-16] ; 8-byte Folded Reload ldr w8, [x8] subs w8, w8, #13 cset w8, eq tbnz w8, #0, LBB17_171 b LBB17_170 LBB17_170: bl _abort LBB17_171: mov w0, #65521 mov w1, #14 bl _f15 mov w8, #65535 subs w8, w8, w0, uxth cset w8, ne tbnz w8, #0, LBB17_173 b LBB17_172 LBB17_172: ldur x8, [x29, #-16] ; 8-byte Folded Reload ldr w8, [x8] subs w8, w8, #14 cset w8, eq tbnz w8, #0, LBB17_174 b LBB17_173 LBB17_173: bl _abort LBB17_174: mov w0, #65521 mov w1, #15 bl _f15 ands w8, w0, #0xffff cset w8, ne tbnz w8, #0, LBB17_176 b LBB17_175 LBB17_175: ldur x8, [x29, #-16] ; 8-byte Folded Reload ldr w8, [x8] subs w8, w8, #14 cset w8, eq tbnz w8, #0, LBB17_177 b LBB17_176 LBB17_176: bl _abort LBB17_177: mov w0, #65521 mov w1, #16 bl _f15 and w8, w0, #0xffff subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB17_179 b LBB17_178 LBB17_178: ldur x8, [x29, #-16] ; 8-byte Folded Reload ldr w8, [x8] subs w8, w8, #14 cset w8, eq tbnz w8, #0, LBB17_180 b LBB17_179 LBB17_179: bl _abort LBB17_180: mov x0, #-9132 str x0, [sp] ; 8-byte Folded Spill mov x1, #0 bl _f16 ldr x8, [sp] ; 8-byte Folded Reload subs x8, x0, x8 cset w8, ne tbnz w8, #0, LBB17_182 b LBB17_181 LBB17_181: ldur x8, [x29, #-16] ; 8-byte Folded Reload ldr w8, [x8] subs w8, w8, #14 cset w8, eq tbnz w8, #0, LBB17_183 b LBB17_182 LBB17_182: bl _abort LBB17_183: mov x0, #-9132 mov x1, #9131 bl _f16 adds x8, x0, #1 cset w8, ne tbnz w8, #0, LBB17_185 b LBB17_184 LBB17_184: ldur x8, [x29, #-16] ; 8-byte Folded Reload ldr w8, [x8] subs w8, w8, #14 cset w8, eq tbnz w8, #0, LBB17_186 b LBB17_185 LBB17_185: bl _abort LBB17_186: mov x0, #-9132 mov x1, #9132 bl _f16 subs x8, x0, #0 cset w8, ne tbnz w8, #0, LBB17_188 b LBB17_187 LBB17_187: ldur x8, [x29, #-16] ; 8-byte Folded Reload ldr w8, [x8] subs w8, w8, #15 cset w8, eq tbnz w8, #0, LBB17_189 b LBB17_188 LBB17_188: bl _abort LBB17_189: mov x0, #-9132 mov x1, #9133 bl _f16 subs x8, x0, #1 cset w8, ne tbnz w8, #0, LBB17_191 b LBB17_190 LBB17_190: ldur x8, [x29, #-16] ; 8-byte Folded Reload ldr w8, [x8] subs w8, w8, #16 cset w8, eq tbnz w8, #0, LBB17_192 b LBB17_191 LBB17_191: bl _abort LBB17_192: mov w0, #0 ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .comm _d,4,2 ; @d .comm _cnt,4,2 ; @cnt .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _foo ## -- Begin function foo .p2align 4, 0x90 _foo: ## @foo .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, -4(%rbp) movl -4(%rbp), %eax movl %eax, -8(%rbp) movq _d@GOTPCREL(%rip), %rax ## InlineAsm Start ## InlineAsm End movq _cnt@GOTPCREL(%rip), %rax movl (%rax), %ecx addl $1, %ecx movq _cnt@GOTPCREL(%rip), %rax movl %ecx, (%rax) popq %rbp retq .cfi_endproc ## -- End function .globl _f1 ## -- Begin function f1 .p2align 4, 0x90 _f1: ## @f1 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl %edi, -4(%rbp) movl %esi, -8(%rbp) movl -4(%rbp), %eax addl -8(%rbp), %eax movl %eax, -12(%rbp) movl -12(%rbp), %eax cmpl -8(%rbp), %eax jbe LBB1_2 ## %bb.1: xorl %edi, %edi callq _foo LBB1_2: movl -12(%rbp), %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _f2 ## -- Begin function f2 .p2align 4, 0x90 _f2: ## @f2 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) movq -8(%rbp), %rax addq -16(%rbp), %rax movq %rax, -24(%rbp) movq -24(%rbp), %rax cmpq -16(%rbp), %rax ja LBB2_2 ## %bb.1: xorl %edi, %edi callq _foo LBB2_2: movq -24(%rbp), %rax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _f3 ## -- Begin function f3 .p2align 4, 0x90 _f3: ## @f3 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movw %si, %ax movw %di, %cx movw %cx, -2(%rbp) movw %ax, -4(%rbp) movzwl -2(%rbp), %eax movzwl -4(%rbp), %ecx addl %ecx, %eax ## kill: def $ax killed $ax killed $eax movw %ax, -6(%rbp) movzwl -4(%rbp), %eax movzwl -6(%rbp), %ecx cmpl %ecx, %eax jge LBB3_2 ## %bb.1: movzwl -6(%rbp), %edi callq _foo LBB3_2: movzwl -6(%rbp), %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _f4 ## -- Begin function f4 .p2align 4, 0x90 _f4: ## @f4 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) movq -8(%rbp), %rax addq -16(%rbp), %rax movq %rax, -24(%rbp) movq -16(%rbp), %rax cmpq -24(%rbp), %rax jb LBB4_2 ## %bb.1: xorl %edi, %edi callq _foo LBB4_2: movq -24(%rbp), %rax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _f5 ## -- Begin function f5 .p2align 4, 0x90 _f5: ## @f5 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl %edi, -4(%rbp) movl %esi, -8(%rbp) movl -4(%rbp), %eax addl -8(%rbp), %eax movl %eax, -12(%rbp) movl -12(%rbp), %eax cmpl -8(%rbp), %eax jb LBB5_2 ## %bb.1: xorl %edi, %edi callq _foo LBB5_2: movl -12(%rbp), %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _f6 ## -- Begin function f6 .p2align 4, 0x90 _f6: ## @f6 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) movq -8(%rbp), %rax addq -16(%rbp), %rax movq %rax, -24(%rbp) movq -24(%rbp), %rax cmpq -16(%rbp), %rax jae LBB6_2 ## %bb.1: xorl %edi, %edi callq _foo LBB6_2: movq -24(%rbp), %rax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _f7 ## -- Begin function f7 .p2align 4, 0x90 _f7: ## @f7 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movw %si, %ax movw %di, %cx movw %cx, -2(%rbp) movw %ax, -4(%rbp) movzwl -2(%rbp), %eax movzwl -4(%rbp), %ecx addl %ecx, %eax ## kill: def $ax killed $ax killed $eax movw %ax, -6(%rbp) movzwl -4(%rbp), %eax movzwl -6(%rbp), %ecx cmpl %ecx, %eax jg LBB7_2 ## %bb.1: movzwl -6(%rbp), %edi callq _foo LBB7_2: movzwl -6(%rbp), %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _f8 ## -- Begin function f8 .p2align 4, 0x90 _f8: ## @f8 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) movq -8(%rbp), %rax addq -16(%rbp), %rax movq %rax, -24(%rbp) movq _d@GOTPCREL(%rip), %rax cmpl $0, (%rax) jne LBB8_2 ## %bb.1: movq -16(%rbp), %rax cmpq -24(%rbp), %rax jbe LBB8_3 LBB8_2: xorl %edi, %edi callq _foo LBB8_3: movq -24(%rbp), %rax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _f9 ## -- Begin function f9 .p2align 4, 0x90 _f9: ## @f9 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl %edi, -4(%rbp) movl %esi, -8(%rbp) movl -4(%rbp), %eax addl -8(%rbp), %eax movl %eax, -12(%rbp) movq _d@GOTPCREL(%rip), %rax cmpl $0, (%rax) jne LBB9_2 ## %bb.1: movl -12(%rbp), %eax cmpl -8(%rbp), %eax jbe LBB9_3 LBB9_2: xorl %edi, %edi callq _foo LBB9_3: movl -12(%rbp), %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _f10 ## -- Begin function f10 .p2align 4, 0x90 _f10: ## @f10 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) movq -8(%rbp), %rax addq -16(%rbp), %rax movq %rax, -24(%rbp) movq _d@GOTPCREL(%rip), %rax cmpl $0, (%rax) jne LBB10_2 ## %bb.1: movq -24(%rbp), %rax cmpq -16(%rbp), %rax ja LBB10_3 LBB10_2: xorl %edi, %edi callq _foo LBB10_3: movq -24(%rbp), %rax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _f11 ## -- Begin function f11 .p2align 4, 0x90 _f11: ## @f11 .cfi_startproc ## %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 %sil, %al movb %dil, %cl movb %cl, -1(%rbp) movb %al, -2(%rbp) movzbl -1(%rbp), %eax movzbl -2(%rbp), %ecx addl %ecx, %eax ## kill: def $al killed $al killed $eax movb %al, -3(%rbp) movq _d@GOTPCREL(%rip), %rax cmpl $0, (%rax) jne LBB11_2 ## %bb.1: movzbl -2(%rbp), %eax movzbl -3(%rbp), %ecx cmpl %ecx, %eax jge LBB11_3 LBB11_2: xorl %edi, %edi callq _foo LBB11_3: movzbl -3(%rbp), %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _f12 ## -- Begin function f12 .p2align 4, 0x90 _f12: ## @f12 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) movq -8(%rbp), %rax addq -16(%rbp), %rax movq %rax, -24(%rbp) movq _d@GOTPCREL(%rip), %rax cmpl $0, (%rax) jne LBB12_2 ## %bb.1: movq -16(%rbp), %rax cmpq -24(%rbp), %rax jb LBB12_3 LBB12_2: xorl %edi, %edi callq _foo LBB12_3: movq -24(%rbp), %rax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _f13 ## -- Begin function f13 .p2align 4, 0x90 _f13: ## @f13 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl %edi, -4(%rbp) movl %esi, -8(%rbp) movl -4(%rbp), %eax addl -8(%rbp), %eax movl %eax, -12(%rbp) movq _d@GOTPCREL(%rip), %rax cmpl $0, (%rax) jne LBB13_2 ## %bb.1: movl -12(%rbp), %eax cmpl -8(%rbp), %eax jb LBB13_3 LBB13_2: xorl %edi, %edi callq _foo LBB13_3: movl -12(%rbp), %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _f14 ## -- Begin function f14 .p2align 4, 0x90 _f14: ## @f14 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) movq -8(%rbp), %rax addq -16(%rbp), %rax movq %rax, -24(%rbp) movq _d@GOTPCREL(%rip), %rax cmpl $0, (%rax) jne LBB14_2 ## %bb.1: movq -24(%rbp), %rax cmpq -16(%rbp), %rax jae LBB14_3 LBB14_2: xorl %edi, %edi callq _foo LBB14_3: movq -24(%rbp), %rax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _f15 ## -- Begin function f15 .p2align 4, 0x90 _f15: ## @f15 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movw %si, %ax movw %di, %cx movw %cx, -2(%rbp) movw %ax, -4(%rbp) movzwl -2(%rbp), %eax movzwl -4(%rbp), %ecx addl %ecx, %eax ## kill: def $ax killed $ax killed $eax movw %ax, -6(%rbp) movq _d@GOTPCREL(%rip), %rax cmpl $0, (%rax) jne LBB15_2 ## %bb.1: movzwl -4(%rbp), %eax movzwl -6(%rbp), %ecx cmpl %ecx, %eax jg LBB15_3 LBB15_2: xorl %edi, %edi callq _foo LBB15_3: movzwl -6(%rbp), %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _f16 ## -- Begin function f16 .p2align 4, 0x90 _f16: ## @f16 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) movq -8(%rbp), %rax addq -16(%rbp), %rax movq %rax, -24(%rbp) movq _d@GOTPCREL(%rip), %rax cmpl $0, (%rax) jne LBB16_2 ## %bb.1: movq -16(%rbp), %rax cmpq -24(%rbp), %rax jbe LBB16_3 LBB16_2: xorl %edi, %edi callq _foo LBB16_3: movq -24(%rbp), %rax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) movl $4294967289, %edi ## imm = 0xFFFFFFF9 xorl %esi, %esi callq _f1 cmpl $-7, %eax jne LBB17_2 ## %bb.1: movq _cnt@GOTPCREL(%rip), %rax cmpl $1, (%rax) je LBB17_3 LBB17_2: callq _abort LBB17_3: movl $4294967289, %edi ## imm = 0xFFFFFFF9 movl $6, %esi callq _f1 cmpl $-1, %eax jne LBB17_5 ## %bb.4: movq _cnt@GOTPCREL(%rip), %rax cmpl $2, (%rax) je LBB17_6 LBB17_5: callq _abort LBB17_6: movl $4294967289, %edi ## imm = 0xFFFFFFF9 movl $7, %esi callq _f1 cmpl $0, %eax jne LBB17_8 ## %bb.7: movq _cnt@GOTPCREL(%rip), %rax cmpl $2, (%rax) je LBB17_9 LBB17_8: callq _abort LBB17_9: movl $4294967289, %edi ## imm = 0xFFFFFFF9 movl $8, %esi callq _f1 cmpl $1, %eax jne LBB17_11 ## %bb.10: movq _cnt@GOTPCREL(%rip), %rax cmpl $2, (%rax) je LBB17_12 LBB17_11: callq _abort LBB17_12: movq $-9, %rdi xorl %eax, %eax movl %eax, %esi callq _f2 cmpq $-9, %rax jne LBB17_14 ## %bb.13: movq _cnt@GOTPCREL(%rip), %rax cmpl $2, (%rax) je LBB17_15 LBB17_14: callq _abort LBB17_15: movq $-9, %rdi movl $8, %esi callq _f2 cmpq $-1, %rax jne LBB17_17 ## %bb.16: movq _cnt@GOTPCREL(%rip), %rax cmpl $2, (%rax) je LBB17_18 LBB17_17: callq _abort LBB17_18: movq $-9, %rdi movl $9, %esi callq _f2 cmpq $0, %rax jne LBB17_20 ## %bb.19: movq _cnt@GOTPCREL(%rip), %rax cmpl $3, (%rax) je LBB17_21 LBB17_20: callq _abort LBB17_21: movq $-9, %rdi movl $10, %esi callq _f2 cmpq $1, %rax jne LBB17_23 ## %bb.22: movq _cnt@GOTPCREL(%rip), %rax cmpl $4, (%rax) je LBB17_24 LBB17_23: callq _abort LBB17_24: movl $65521, %edi ## imm = 0xFFF1 xorl %esi, %esi callq _f3 movzwl %ax, %eax cmpl $65521, %eax ## imm = 0xFFF1 jne LBB17_26 ## %bb.25: movq _cnt@GOTPCREL(%rip), %rax cmpl $5, (%rax) je LBB17_27 LBB17_26: callq _abort LBB17_27: movl $65521, %edi ## imm = 0xFFF1 movl $14, %esi callq _f3 movzwl %ax, %eax cmpl $65535, %eax ## imm = 0xFFFF jne LBB17_29 ## %bb.28: movq _cnt@GOTPCREL(%rip), %rax cmpl $6, (%rax) je LBB17_30 LBB17_29: callq _abort LBB17_30: movl $65521, %edi ## imm = 0xFFF1 movl $15, %esi callq _f3 movzwl %ax, %eax cmpl $0, %eax jne LBB17_32 ## %bb.31: movq _cnt@GOTPCREL(%rip), %rax cmpl $6, (%rax) je LBB17_33 LBB17_32: callq _abort LBB17_33: movl $65521, %edi ## imm = 0xFFF1 movl $16, %esi callq _f3 movzwl %ax, %eax cmpl $1, %eax jne LBB17_35 ## %bb.34: movq _cnt@GOTPCREL(%rip), %rax cmpl $6, (%rax) je LBB17_36 LBB17_35: callq _abort LBB17_36: movq $-9132, %rdi ## imm = 0xDC54 xorl %eax, %eax movl %eax, %esi callq _f4 cmpq $-9132, %rax ## imm = 0xDC54 jne LBB17_38 ## %bb.37: movq _cnt@GOTPCREL(%rip), %rax cmpl $6, (%rax) je LBB17_39 LBB17_38: callq _abort LBB17_39: movq $-9132, %rdi ## imm = 0xDC54 movl $9131, %esi ## imm = 0x23AB callq _f4 cmpq $-1, %rax jne LBB17_41 ## %bb.40: movq _cnt@GOTPCREL(%rip), %rax cmpl $6, (%rax) je LBB17_42 LBB17_41: callq _abort LBB17_42: movq $-9132, %rdi ## imm = 0xDC54 movl $9132, %esi ## imm = 0x23AC callq _f4 cmpq $0, %rax jne LBB17_44 ## %bb.43: movq _cnt@GOTPCREL(%rip), %rax cmpl $7, (%rax) je LBB17_45 LBB17_44: callq _abort LBB17_45: movq $-9132, %rdi ## imm = 0xDC54 movl $9133, %esi ## imm = 0x23AD callq _f4 cmpq $1, %rax jne LBB17_47 ## %bb.46: movq _cnt@GOTPCREL(%rip), %rax cmpl $8, (%rax) je LBB17_48 LBB17_47: callq _abort LBB17_48: movl $4294967289, %edi ## imm = 0xFFFFFFF9 xorl %esi, %esi callq _f5 cmpl $-7, %eax jne LBB17_50 ## %bb.49: movq _cnt@GOTPCREL(%rip), %rax cmpl $9, (%rax) je LBB17_51 LBB17_50: callq _abort LBB17_51: movl $4294967289, %edi ## imm = 0xFFFFFFF9 movl $6, %esi callq _f5 cmpl $-1, %eax jne LBB17_53 ## %bb.52: movq _cnt@GOTPCREL(%rip), %rax cmpl $10, (%rax) je LBB17_54 LBB17_53: callq _abort LBB17_54: movl $4294967289, %edi ## imm = 0xFFFFFFF9 movl $7, %esi callq _f5 cmpl $0, %eax jne LBB17_56 ## %bb.55: movq _cnt@GOTPCREL(%rip), %rax cmpl $10, (%rax) je LBB17_57 LBB17_56: callq _abort LBB17_57: movl $4294967289, %edi ## imm = 0xFFFFFFF9 movl $8, %esi callq _f5 cmpl $1, %eax jne LBB17_59 ## %bb.58: movq _cnt@GOTPCREL(%rip), %rax cmpl $10, (%rax) je LBB17_60 LBB17_59: callq _abort LBB17_60: movq $-9, %rdi xorl %eax, %eax movl %eax, %esi callq _f6 cmpq $-9, %rax jne LBB17_62 ## %bb.61: movq _cnt@GOTPCREL(%rip), %rax cmpl $10, (%rax) je LBB17_63 LBB17_62: callq _abort LBB17_63: movq $-9, %rdi movl $8, %esi callq _f6 cmpq $-1, %rax jne LBB17_65 ## %bb.64: movq _cnt@GOTPCREL(%rip), %rax cmpl $10, (%rax) je LBB17_66 LBB17_65: callq _abort LBB17_66: movq $-9, %rdi movl $9, %esi callq _f6 cmpq $0, %rax jne LBB17_68 ## %bb.67: movq _cnt@GOTPCREL(%rip), %rax cmpl $11, (%rax) je LBB17_69 LBB17_68: callq _abort LBB17_69: movq $-9, %rdi movl $10, %esi callq _f6 cmpq $1, %rax jne LBB17_71 ## %bb.70: movq _cnt@GOTPCREL(%rip), %rax cmpl $12, (%rax) je LBB17_72 LBB17_71: callq _abort LBB17_72: movl $65521, %edi ## imm = 0xFFF1 xorl %esi, %esi callq _f7 movzwl %ax, %eax cmpl $65521, %eax ## imm = 0xFFF1 jne LBB17_74 ## %bb.73: movq _cnt@GOTPCREL(%rip), %rax cmpl $13, (%rax) je LBB17_75 LBB17_74: callq _abort LBB17_75: movl $65521, %edi ## imm = 0xFFF1 movl $14, %esi callq _f7 movzwl %ax, %eax cmpl $65535, %eax ## imm = 0xFFFF jne LBB17_77 ## %bb.76: movq _cnt@GOTPCREL(%rip), %rax cmpl $14, (%rax) je LBB17_78 LBB17_77: callq _abort LBB17_78: movl $65521, %edi ## imm = 0xFFF1 movl $15, %esi callq _f7 movzwl %ax, %eax cmpl $0, %eax jne LBB17_80 ## %bb.79: movq _cnt@GOTPCREL(%rip), %rax cmpl $14, (%rax) je LBB17_81 LBB17_80: callq _abort LBB17_81: movl $65521, %edi ## imm = 0xFFF1 movl $16, %esi callq _f7 movzwl %ax, %eax cmpl $1, %eax jne LBB17_83 ## %bb.82: movq _cnt@GOTPCREL(%rip), %rax cmpl $14, (%rax) je LBB17_84 LBB17_83: callq _abort LBB17_84: movq $-9132, %rdi ## imm = 0xDC54 xorl %eax, %eax movl %eax, %esi callq _f8 cmpq $-9132, %rax ## imm = 0xDC54 jne LBB17_86 ## %bb.85: movq _cnt@GOTPCREL(%rip), %rax cmpl $14, (%rax) je LBB17_87 LBB17_86: callq _abort LBB17_87: movq $-9132, %rdi ## imm = 0xDC54 movl $9131, %esi ## imm = 0x23AB callq _f8 cmpq $-1, %rax jne LBB17_89 ## %bb.88: movq _cnt@GOTPCREL(%rip), %rax cmpl $14, (%rax) je LBB17_90 LBB17_89: callq _abort LBB17_90: movq $-9132, %rdi ## imm = 0xDC54 movl $9132, %esi ## imm = 0x23AC callq _f8 cmpq $0, %rax jne LBB17_92 ## %bb.91: movq _cnt@GOTPCREL(%rip), %rax cmpl $15, (%rax) je LBB17_93 LBB17_92: callq _abort LBB17_93: movq $-9132, %rdi ## imm = 0xDC54 movl $9133, %esi ## imm = 0x23AD callq _f8 cmpq $1, %rax jne LBB17_95 ## %bb.94: movq _cnt@GOTPCREL(%rip), %rax cmpl $16, (%rax) je LBB17_96 LBB17_95: callq _abort LBB17_96: movq _cnt@GOTPCREL(%rip), %rax movl $0, (%rax) movl $4294967289, %edi ## imm = 0xFFFFFFF9 xorl %esi, %esi callq _f9 cmpl $-7, %eax jne LBB17_98 ## %bb.97: movq _cnt@GOTPCREL(%rip), %rax cmpl $1, (%rax) je LBB17_99 LBB17_98: callq _abort LBB17_99: movl $4294967289, %edi ## imm = 0xFFFFFFF9 movl $6, %esi callq _f9 cmpl $-1, %eax jne LBB17_101 ## %bb.100: movq _cnt@GOTPCREL(%rip), %rax cmpl $2, (%rax) je LBB17_102 LBB17_101: callq _abort LBB17_102: movl $4294967289, %edi ## imm = 0xFFFFFFF9 movl $7, %esi callq _f9 cmpl $0, %eax jne LBB17_104 ## %bb.103: movq _cnt@GOTPCREL(%rip), %rax cmpl $2, (%rax) je LBB17_105 LBB17_104: callq _abort LBB17_105: movl $4294967289, %edi ## imm = 0xFFFFFFF9 movl $8, %esi callq _f9 cmpl $1, %eax jne LBB17_107 ## %bb.106: movq _cnt@GOTPCREL(%rip), %rax cmpl $2, (%rax) je LBB17_108 LBB17_107: callq _abort LBB17_108: movq $-9, %rdi xorl %eax, %eax movl %eax, %esi callq _f10 cmpq $-9, %rax jne LBB17_110 ## %bb.109: movq _cnt@GOTPCREL(%rip), %rax cmpl $2, (%rax) je LBB17_111 LBB17_110: callq _abort LBB17_111: movq $-9, %rdi movl $8, %esi callq _f10 cmpq $-1, %rax jne LBB17_113 ## %bb.112: movq _cnt@GOTPCREL(%rip), %rax cmpl $2, (%rax) je LBB17_114 LBB17_113: callq _abort LBB17_114: movq $-9, %rdi movl $9, %esi callq _f10 cmpq $0, %rax jne LBB17_116 ## %bb.115: movq _cnt@GOTPCREL(%rip), %rax cmpl $3, (%rax) je LBB17_117 LBB17_116: callq _abort LBB17_117: movq $-9, %rdi movl $10, %esi callq _f10 cmpq $1, %rax jne LBB17_119 ## %bb.118: movq _cnt@GOTPCREL(%rip), %rax cmpl $4, (%rax) je LBB17_120 LBB17_119: callq _abort LBB17_120: movl $241, %edi xorl %esi, %esi callq _f11 movzbl %al, %eax cmpl $241, %eax jne LBB17_122 ## %bb.121: movq _cnt@GOTPCREL(%rip), %rax cmpl $5, (%rax) je LBB17_123 LBB17_122: callq _abort LBB17_123: movl $241, %edi movl $14, %esi callq _f11 movzbl %al, %eax cmpl $255, %eax jne LBB17_125 ## %bb.124: movq _cnt@GOTPCREL(%rip), %rax cmpl $6, (%rax) je LBB17_126 LBB17_125: callq _abort LBB17_126: movl $241, %edi movl $15, %esi callq _f11 movzbl %al, %eax cmpl $0, %eax jne LBB17_128 ## %bb.127: movq _cnt@GOTPCREL(%rip), %rax cmpl $6, (%rax) je LBB17_129 LBB17_128: callq _abort LBB17_129: movl $241, %edi movl $16, %esi callq _f11 movzbl %al, %eax cmpl $1, %eax jne LBB17_131 ## %bb.130: movq _cnt@GOTPCREL(%rip), %rax cmpl $6, (%rax) je LBB17_132 LBB17_131: callq _abort LBB17_132: movq $-9132, %rdi ## imm = 0xDC54 xorl %eax, %eax movl %eax, %esi callq _f12 cmpq $-9132, %rax ## imm = 0xDC54 jne LBB17_134 ## %bb.133: movq _cnt@GOTPCREL(%rip), %rax cmpl $6, (%rax) je LBB17_135 LBB17_134: callq _abort LBB17_135: movq $-9132, %rdi ## imm = 0xDC54 movl $9131, %esi ## imm = 0x23AB callq _f12 cmpq $-1, %rax jne LBB17_137 ## %bb.136: movq _cnt@GOTPCREL(%rip), %rax cmpl $6, (%rax) je LBB17_138 LBB17_137: callq _abort LBB17_138: movq $-9132, %rdi ## imm = 0xDC54 movl $9132, %esi ## imm = 0x23AC callq _f12 cmpq $0, %rax jne LBB17_140 ## %bb.139: movq _cnt@GOTPCREL(%rip), %rax cmpl $7, (%rax) je LBB17_141 LBB17_140: callq _abort LBB17_141: movq $-9132, %rdi ## imm = 0xDC54 movl $9133, %esi ## imm = 0x23AD callq _f12 cmpq $1, %rax jne LBB17_143 ## %bb.142: movq _cnt@GOTPCREL(%rip), %rax cmpl $8, (%rax) je LBB17_144 LBB17_143: callq _abort LBB17_144: movl $4294967289, %edi ## imm = 0xFFFFFFF9 xorl %esi, %esi callq _f13 cmpl $-7, %eax jne LBB17_146 ## %bb.145: movq _cnt@GOTPCREL(%rip), %rax cmpl $9, (%rax) je LBB17_147 LBB17_146: callq _abort LBB17_147: movl $4294967289, %edi ## imm = 0xFFFFFFF9 movl $6, %esi callq _f13 cmpl $-1, %eax jne LBB17_149 ## %bb.148: movq _cnt@GOTPCREL(%rip), %rax cmpl $10, (%rax) je LBB17_150 LBB17_149: callq _abort LBB17_150: movl $4294967289, %edi ## imm = 0xFFFFFFF9 movl $7, %esi callq _f13 cmpl $0, %eax jne LBB17_152 ## %bb.151: movq _cnt@GOTPCREL(%rip), %rax cmpl $10, (%rax) je LBB17_153 LBB17_152: callq _abort LBB17_153: movl $4294967289, %edi ## imm = 0xFFFFFFF9 movl $8, %esi callq _f13 cmpl $1, %eax jne LBB17_155 ## %bb.154: movq _cnt@GOTPCREL(%rip), %rax cmpl $10, (%rax) je LBB17_156 LBB17_155: callq _abort LBB17_156: movq $-9, %rdi xorl %eax, %eax movl %eax, %esi callq _f14 cmpq $-9, %rax jne LBB17_158 ## %bb.157: movq _cnt@GOTPCREL(%rip), %rax cmpl $10, (%rax) je LBB17_159 LBB17_158: callq _abort LBB17_159: movq $-9, %rdi movl $8, %esi callq _f14 cmpq $-1, %rax jne LBB17_161 ## %bb.160: movq _cnt@GOTPCREL(%rip), %rax cmpl $10, (%rax) je LBB17_162 LBB17_161: callq _abort LBB17_162: movq $-9, %rdi movl $9, %esi callq _f14 cmpq $0, %rax jne LBB17_164 ## %bb.163: movq _cnt@GOTPCREL(%rip), %rax cmpl $11, (%rax) je LBB17_165 LBB17_164: callq _abort LBB17_165: movq $-9, %rdi movl $10, %esi callq _f14 cmpq $1, %rax jne LBB17_167 ## %bb.166: movq _cnt@GOTPCREL(%rip), %rax cmpl $12, (%rax) je LBB17_168 LBB17_167: callq _abort LBB17_168: movl $65521, %edi ## imm = 0xFFF1 xorl %esi, %esi callq _f15 movzwl %ax, %eax cmpl $65521, %eax ## imm = 0xFFF1 jne LBB17_170 ## %bb.169: movq _cnt@GOTPCREL(%rip), %rax cmpl $13, (%rax) je LBB17_171 LBB17_170: callq _abort LBB17_171: movl $65521, %edi ## imm = 0xFFF1 movl $14, %esi callq _f15 movzwl %ax, %eax cmpl $65535, %eax ## imm = 0xFFFF jne LBB17_173 ## %bb.172: movq _cnt@GOTPCREL(%rip), %rax cmpl $14, (%rax) je LBB17_174 LBB17_173: callq _abort LBB17_174: movl $65521, %edi ## imm = 0xFFF1 movl $15, %esi callq _f15 movzwl %ax, %eax cmpl $0, %eax jne LBB17_176 ## %bb.175: movq _cnt@GOTPCREL(%rip), %rax cmpl $14, (%rax) je LBB17_177 LBB17_176: callq _abort LBB17_177: movl $65521, %edi ## imm = 0xFFF1 movl $16, %esi callq _f15 movzwl %ax, %eax cmpl $1, %eax jne LBB17_179 ## %bb.178: movq _cnt@GOTPCREL(%rip), %rax cmpl $14, (%rax) je LBB17_180 LBB17_179: callq _abort LBB17_180: movq $-9132, %rdi ## imm = 0xDC54 xorl %eax, %eax movl %eax, %esi callq _f16 cmpq $-9132, %rax ## imm = 0xDC54 jne LBB17_182 ## %bb.181: movq _cnt@GOTPCREL(%rip), %rax cmpl $14, (%rax) je LBB17_183 LBB17_182: callq _abort LBB17_183: movq $-9132, %rdi ## imm = 0xDC54 movl $9131, %esi ## imm = 0x23AB callq _f16 cmpq $-1, %rax jne LBB17_185 ## %bb.184: movq _cnt@GOTPCREL(%rip), %rax cmpl $14, (%rax) je LBB17_186 LBB17_185: callq _abort LBB17_186: movq $-9132, %rdi ## imm = 0xDC54 movl $9132, %esi ## imm = 0x23AC callq _f16 cmpq $0, %rax jne LBB17_188 ## %bb.187: movq _cnt@GOTPCREL(%rip), %rax cmpl $15, (%rax) je LBB17_189 LBB17_188: callq _abort LBB17_189: movq $-9132, %rdi ## imm = 0xDC54 movl $9133, %esi ## imm = 0x23AD callq _f16 cmpq $1, %rax jne LBB17_191 ## %bb.190: movq _cnt@GOTPCREL(%rip), %rax cmpl $16, (%rax) je LBB17_192 LBB17_191: callq _abort LBB17_192: xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .comm _d,4,2 ## @d .comm _cnt,4,2 ## @cnt .subsections_via_symbols
the_stack_data/60807.c