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, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] mov w8, #1 str w8, [sp, #8] ldr w8, [sp, #8] lsl w8, w8, #4 str w8, [sp, #8] ldr w8, [sp, #8] subs w8, w8, #16 cset w9, ne ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: adrp x0, l___func__.main@PAGE add x0, x0, l___func__.main@PAGEOFF adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF mov w2, #13 adrp x3, l_.str.1@PAGE add x3, x3, l_.str.1@PAGEOFF bl ___assert_rtn LBB0_2: b LBB0_3 LBB0_3: ldr w8, [sp, #8] lsr w8, w8, #4 str w8, [sp, #8] ldr w8, [sp, #8] subs w8, w8, #1 cset w9, ne ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB0_5 b LBB0_4 LBB0_4: adrp x0, l___func__.main@PAGE add x0, x0, l___func__.main@PAGEOFF adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF mov w2, #15 adrp x3, l_.str.2@PAGE add x3, x3, l_.str.2@PAGEOFF bl ___assert_rtn LBB0_5: b LBB0_6 LBB0_6: ldr w8, [sp, #8] orr w8, w8, #0x10 str w8, [sp, #8] ldr w8, [sp, #8] eor w8, w8, #0x1 str w8, [sp, #8] ldr w8, [sp, #8] subs w8, w8, #16 cset w9, ne ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB0_8 b LBB0_7 LBB0_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, #18 adrp x3, l_.str.1@PAGE add x3, x3, l_.str.1@PAGEOFF bl ___assert_rtn LBB0_8: b LBB0_9 LBB0_9: ldr w8, [sp, #8] subs w8, w8, #15 str w8, [sp, #8] ldr w8, [sp, #8] subs w8, w8, #1 cset w9, ne ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB0_11 b LBB0_10 LBB0_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, #20 adrp x3, l_.str.2@PAGE add x3, x3, l_.str.2@PAGEOFF bl ___assert_rtn LBB0_11: b LBB0_12 LBB0_12: 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___func__.main: ; @__func__.main .asciz "main" l_.str: ; @.str .asciz "23575222.c" l_.str.1: ; @.str.1 .asciz "e == B" l_.str.2: ; @.str.2 .asciz "e == A" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) movl $1, -8(%rbp) movl -8(%rbp), %eax shll $4, %eax movl %eax, -8(%rbp) cmpl $16, -8(%rbp) sete %al xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB0_2 ## %bb.1: leaq L___func__.main(%rip), %rdi leaq L_.str(%rip), %rsi leaq L_.str.1(%rip), %rcx movl $13, %edx callq ___assert_rtn LBB0_2: jmp LBB0_3 LBB0_3: movl -8(%rbp), %eax shrl $4, %eax movl %eax, -8(%rbp) cmpl $1, -8(%rbp) sete %al xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB0_5 ## %bb.4: leaq L___func__.main(%rip), %rdi leaq L_.str(%rip), %rsi leaq L_.str.2(%rip), %rcx movl $15, %edx callq ___assert_rtn LBB0_5: jmp LBB0_6 LBB0_6: movl -8(%rbp), %eax orl $16, %eax movl %eax, -8(%rbp) movl -8(%rbp), %eax xorl $1, %eax movl %eax, -8(%rbp) cmpl $16, -8(%rbp) sete %al xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB0_8 ## %bb.7: leaq L___func__.main(%rip), %rdi leaq L_.str(%rip), %rsi leaq L_.str.1(%rip), %rcx movl $18, %edx callq ___assert_rtn LBB0_8: jmp LBB0_9 LBB0_9: movl -8(%rbp), %eax subl $15, %eax movl %eax, -8(%rbp) cmpl $1, -8(%rbp) sete %al xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB0_11 ## %bb.10: leaq L___func__.main(%rip), %rdi leaq L_.str(%rip), %rsi leaq L_.str.2(%rip), %rcx movl $20, %edx callq ___assert_rtn LBB0_11: jmp LBB0_12 LBB0_12: xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L___func__.main: ## @__func__.main .asciz "main" L_.str: ## @.str .asciz "23575222.c" L_.str.1: ## @.str.1 .asciz "e == B" L_.str.2: ## @.str.2 .asciz "e == A" .subsections_via_symbols
the_stack_data/23575222.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 strb wzr, [sp, #15] strb wzr, [sp, #14] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldrsb w8, [sp, #14] subs w8, w8, #5 cset w8, ge tbnz w8, #0, LBB0_4 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 mov w8, #7 strb w8, [sp, #13] ldrsb w8, [sp, #14] ldrsb w9, [sp, #13] mul w8, w8, w9 strb w8, [sp, #12] ldrb w8, [sp, #12] ldrsb x9, [sp, #15] mov x10, x9 add w10, w10, #1 strb w10, [sp, #15] mov x10, #1024 add x9, x9, #1024 strb w8, [x9] b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldrb w8, [sp, #14] add w8, w8, #1 strb w8, [sp, #14] b LBB0_1 LBB0_4: add sp, sp, #16 ret .cfi_endproc ; -- End function .section __TEXT,__const .globl _SCREEN ; @SCREEN .p2align 3 _SCREEN: .quad 1024 .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 movb $0, -1(%rbp) movb $0, -2(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movsbl -2(%rbp), %eax cmpl $5, %eax jge LBB0_4 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movb $7, -3(%rbp) movsbl -2(%rbp), %eax movsbl -3(%rbp), %ecx imull %ecx, %eax ## kill: def $al killed $al killed $eax movb %al, -4(%rbp) movb -4(%rbp), %dl movb -1(%rbp), %al movb %al, %cl addb $1, %cl movb %cl, -1(%rbp) movsbq %al, %rcx movl $1024, %eax ## imm = 0x400 movb %dl, (%rax,%rcx) ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movb -2(%rbp), %al addb $1, %al movb %al, -2(%rbp) jmp LBB0_1 LBB0_4: popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__const .globl _SCREEN ## @SCREEN .p2align 3 _SCREEN: .quad 1024 .subsections_via_symbols
the_stack_data/31386616.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _strrchr ; -- Begin function strrchr .p2align 2 _strrchr: ; @strrchr .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, #24] str w1, [sp, #20] ; kill: def $x8 killed $xzr str xzr, [sp, #8] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #24] ldrb w8, [x8] strb w8, [sp, #7] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_6 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldrsb w8, [sp, #7] ldr w9, [sp, #20] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #24] str x8, [sp, #8] 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 x8, [sp, #24] add x8, x8, #1 str x8, [sp, #24] b LBB0_1 LBB0_6: ldr x0, [sp, #8] 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 _strrchr ## -- Begin function strrchr .p2align 4, 0x90 _strrchr: ## @strrchr .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) movq $0, -24(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movq -8(%rbp), %rax movb (%rax), %al movb %al, -25(%rbp) cmpb $0, %al je LBB0_6 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movsbl -25(%rbp), %eax cmpl -12(%rbp), %eax jne LBB0_4 ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movq -8(%rbp), %rax movq %rax, -24(%rbp) LBB0_4: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_5 LBB0_5: ## in Loop: Header=BB0_1 Depth=1 movq -8(%rbp), %rax addq $1, %rax movq %rax, -8(%rbp) jmp LBB0_1 LBB0_6: movq -24(%rbp), %rax popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/620656.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, #-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 LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-12] ldur w9, [x29, #-8] mul w8, w8, w9 stur w8, [x29, #-16] ldur w8, [x29, #-12] ; implicit-def: $x11 mov x11, x8 ldur w8, [x29, #-8] ; implicit-def: $x10 mov x10, x8 ldur w9, [x29, #-16] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x11, [x9] str x10, [x9, #8] str x8, [x9, #16] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf ldur w8, [x29, #-12] add w8, w8, #1 stur w8, [x29, #-12] b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-12] subs w8, w8, #11 cset w8, lt tbnz w8, #0, LBB0_1 b LBB0_3 LBB0_3: mov w0, #0 ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d" l_.str.1: ; @.str.1 .asciz "%d x %d = %d\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) movl $1, -12(%rbp) leaq L_.str(%rip), %rdi leaq -8(%rbp), %rsi movb $0, %al callq _scanf LBB0_1: ## =>This Inner Loop Header: Depth=1 movl -12(%rbp), %eax imull -8(%rbp), %eax movl %eax, -16(%rbp) movl -12(%rbp), %esi movl -8(%rbp), %edx movl -16(%rbp), %ecx leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 cmpl $11, -12(%rbp) jl LBB0_1 ## %bb.3: 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 x %d = %d\n" .subsections_via_symbols
the_stack_data/348449.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _DivU64x64C ; -- Begin function DivU64x64C .p2align 2 _DivU64x64C: ; @DivU64x64C .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 str x0, [sp, #32] str x1, [sp, #24] str x2, [sp, #16] str x3, [sp, #8] ldr x8, [sp, #8] str wzr, [x8] ldr x8, [sp, #24] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB0_4 b LBB0_1 LBB0_1: ldr x9, [sp, #8] mov w8, #1 str w8, [x9] ldr x8, [sp, #16] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: ldr x9, [sp, #16] mov x8, #2147483648 str x8, [x9] b LBB0_3 LBB0_3: mov x8, #2147483648 str x8, [sp, #40] b LBB0_5 LBB0_4: str xzr, [sp, #40] b LBB0_5 LBB0_5: ldr x0, [sp, #40] add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #80 .cfi_def_cfa_offset 80 stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp, #64 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] mov x8, #4294967295 stur x8, [x29, #-16] ldur x9, [x29, #-16] add x8, x8, x9, lsl #32 stur x8, [x29, #-16] stur xzr, [x29, #-24] ldur x8, [x29, #-24] lsl x8, x8, #32 add x8, x8, #2 stur x8, [x29, #-24] ldur x0, [x29, #-16] ldur x1, [x29, #-24] add x2, sp, #32 add x3, sp, #20 bl _DivU64x64 str x0, [sp, #24] ldur x8, [x29, #-16] lsr x8, x8, #32 mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldur x8, [x29, #-16] mov x9, sp 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 _printf ldur x8, [x29, #-24] lsr x8, x8, #32 mov x9, sp str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf ldr x0, [sp, #8] ; 8-byte Folded Reload ldur x8, [x29, #-24] mov x9, sp str x8, [x9] bl _printf ldr x8, [sp, #24] lsr x8, x8, #32 mov x9, sp str x8, [x9] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf ldr x0, [sp, #8] ; 8-byte Folded Reload ldr x8, [sp, #24] mov x9, sp str x8, [x9] bl _printf ldr x8, [sp, #32] lsr x8, x8, #32 mov x9, sp str x8, [x9] adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf ldr x0, [sp, #8] ; 8-byte Folded Reload ldr x8, [sp, #32] mov x9, sp str x8, [x9] bl _printf ldr w9, [sp, #20] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf ldr x8, [sp, #24] mov x0, x8 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 "V1 = 0x%08x" l_.str.1: ; @.str.1 .asciz "%08x\n" l_.str.2: ; @.str.2 .asciz "V2 = 0x%08x" l_.str.3: ; @.str.3 .asciz "rt = 0x%08x" l_.str.4: ; @.str.4 .asciz "Hi = 0x%08x" l_.str.5: ; @.str.5 .asciz "Er = 0x%08x\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _DivU64x64C ## -- Begin function DivU64x64C .p2align 4, 0x90 _DivU64x64C: ## @DivU64x64C .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -16(%rbp) movq %rsi, -24(%rbp) movq %rdx, -32(%rbp) movq %rcx, -40(%rbp) movq -40(%rbp), %rax movl $0, (%rax) cmpq $0, -24(%rbp) jne LBB0_4 ## %bb.1: movq -40(%rbp), %rax movl $1, (%rax) cmpq $0, -32(%rbp) je LBB0_3 ## %bb.2: movq -32(%rbp), %rax movl $2147483648, %ecx ## imm = 0x80000000 movq %rcx, (%rax) LBB0_3: movl $2147483648, %eax ## imm = 0x80000000 movq %rax, -8(%rbp) jmp LBB0_5 LBB0_4: movq $0, -8(%rbp) LBB0_5: movq -8(%rbp), %rax popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movl $0, -4(%rbp) movl $4294967295, %eax ## imm = 0xFFFFFFFF movq %rax, -16(%rbp) movq -16(%rbp), %rax shlq $32, %rax movabsq $4294967295, %rcx ## imm = 0xFFFFFFFF addq %rcx, %rax movq %rax, -16(%rbp) movq $0, -24(%rbp) movq -24(%rbp), %rax shlq $32, %rax addq $2, %rax movq %rax, -24(%rbp) movq -16(%rbp), %rdi movq -24(%rbp), %rsi leaq -32(%rbp), %rdx leaq -44(%rbp), %rcx callq _DivU64x64 movq %rax, -40(%rbp) movq -16(%rbp), %rax shrq $32, %rax movl %eax, %esi leaq L_.str(%rip), %rdi movb $0, %al callq _printf movq -16(%rbp), %rax movl %eax, %esi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf movq -24(%rbp), %rax shrq $32, %rax movl %eax, %esi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf movq -24(%rbp), %rax movl %eax, %esi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf movq -40(%rbp), %rax shrq $32, %rax movl %eax, %esi leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf movq -40(%rbp), %rax movl %eax, %esi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf movq -32(%rbp), %rax shrq $32, %rax movl %eax, %esi leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf movq -32(%rbp), %rax movl %eax, %esi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf movl -44(%rbp), %esi leaq L_.str.5(%rip), %rdi movb $0, %al callq _printf movq -40(%rbp), %rax ## kill: def $eax killed $eax killed $rax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "V1 = 0x%08x" L_.str.1: ## @.str.1 .asciz "%08x\n" L_.str.2: ## @.str.2 .asciz "V2 = 0x%08x" L_.str.3: ## @.str.3 .asciz "rt = 0x%08x" L_.str.4: ## @.str.4 .asciz "Hi = 0x%08x" L_.str.5: ## @.str.5 .asciz "Er = 0x%08x\n" .subsections_via_symbols
the_stack_data/25137476.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/146897.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .comm _foo,8,3 ; @foo .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .comm _foo,8,3 ## @foo .subsections_via_symbols
the_stack_data/248580393.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/1059171.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #80 .cfi_def_cfa_offset 80 stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp, #64 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] adrp x8, l___const.main.str@PAGE add x8, x8, l___const.main.str@PAGEOFF ldr q0, [x8] add x0, sp, #16 str q0, [sp, #16] ldur q0, [x8, #13] stur q0, [x0, #13] bl _ft_strlowcase mov x8, sp str x0, [x8] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: bl ___stack_chk_fail LBB0_2: mov w0, #0 ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l___const.main.str: ; @__const.main.str .asciz "MesCouidlls au b0rd de l0$%^" l_.str: ; @.str .asciz "%s\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movq L___const.main.str(%rip), %rax movq %rax, -48(%rbp) movq L___const.main.str+8(%rip), %rax movq %rax, -40(%rbp) movq L___const.main.str+16(%rip), %rax movq %rax, -32(%rbp) movl L___const.main.str+24(%rip), %eax movl %eax, -24(%rbp) movb L___const.main.str+28(%rip), %al movb %al, -20(%rbp) leaq -48(%rbp), %rdi callq _ft_strlowcase movq %rax, %rsi leaq L_.str(%rip), %rdi movb $0, %al callq _printf movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_2 ## %bb.1: xorl %eax, %eax addq $48, %rsp popq %rbp retq LBB0_2: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals .p2align 4 ## @__const.main.str L___const.main.str: .asciz "MesCouidlls au b0rd de l0$%^" L_.str: ## @.str .asciz "%s\n" .subsections_via_symbols
the_stack_data/109593.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _GetNewNode ; -- Begin function GetNewNode .p2align 2 _GetNewNode: ; @GetNewNode .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur w0, [x29, #-4] mov x0, #24 bl _malloc str x0, [sp] ldur w8, [x29, #-4] ldr x9, [sp] str w8, [x9] ldr x8, [sp] ; kill: def $x9 killed $xzr str xzr, [x8, #16] ldr x8, [sp] str xzr, [x8, #8] ldr x0, [sp] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _InsertNode ; -- Begin function InsertNode .p2align 2 _InsertNode: ; @InsertNode .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #8] str w1, [sp, #4] ldr x8, [sp, #8] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: ldr w0, [sp, #4] bl _GetNewNode str x0, [sp, #8] b LBB1_6 LBB1_2: ldr w8, [sp, #4] ldr x9, [sp, #8] ldr w9, [x9] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB1_4 b LBB1_3 LBB1_3: ldr x8, [sp, #8] ldr x0, [x8, #8] ldr w1, [sp, #4] bl _InsertNode ldr x8, [sp, #8] str x0, [x8, #8] b LBB1_5 LBB1_4: ldr x8, [sp, #8] ldr x0, [x8, #16] ldr w1, [sp, #4] bl _InsertNode ldr x8, [sp, #8] str x0, [x8, #16] b LBB1_5 LBB1_5: b LBB1_6 LBB1_6: ldr x0, [sp, #8] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _Search ; -- Begin function Search .p2align 2 _Search: ; @Search .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #16] str w1, [sp, #12] ldr x8, [sp, #16] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB2_2 b LBB2_1 LBB2_1: stur wzr, [x29, #-4] b LBB2_7 LBB2_2: ldr w8, [sp, #12] ldr x9, [sp, #16] ldr w9, [x9] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB2_4 b LBB2_3 LBB2_3: mov w8, #1 stur w8, [x29, #-4] b LBB2_7 LBB2_4: ldr w8, [sp, #12] ldr x9, [sp, #16] ldr w9, [x9] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB2_6 b LBB2_5 LBB2_5: ldr x8, [sp, #16] ldr x0, [x8, #8] ldr w1, [sp, #12] bl _Search stur w0, [x29, #-4] b LBB2_7 LBB2_6: ldr x8, [sp, #16] ldr x0, [x8, #16] ldr w1, [sp, #12] bl _Search stur w0, [x29, #-4] b LBB2_7 LBB2_7: ldur w0, [x29, #-4] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _FindMin ; -- Begin function FindMin .p2align 2 _FindMin: ; @FindMin .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp] ldr x8, [sp] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB3_2 b LBB3_1 LBB3_1: adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov w8, #-1 stur w8, [x29, #-4] b LBB3_6 LBB3_2: ldr x8, [sp] ldr x8, [x8, #8] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB3_4 b LBB3_3 LBB3_3: ldr x8, [sp] ldr w8, [x8] stur w8, [x29, #-4] b LBB3_6 LBB3_4: b LBB3_5 LBB3_5: ldr x8, [sp] ldr x0, [x8, #8] bl _FindMin stur w0, [x29, #-4] b LBB3_6 LBB3_6: ldur w0, [x29, #-4] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _FindMax ; -- Begin function FindMax .p2align 2 _FindMax: ; @FindMax .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp] ldr x8, [sp] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB4_2 b LBB4_1 LBB4_1: adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf mov w8, #-1 stur w8, [x29, #-4] b LBB4_6 LBB4_2: ldr x8, [sp] ldr x8, [x8, #16] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB4_4 b LBB4_3 LBB4_3: ldr x8, [sp] ldr w8, [x8] stur w8, [x29, #-4] b LBB4_6 LBB4_4: b LBB4_5 LBB4_5: ldr x8, [sp] ldr x0, [x8, #16] bl _FindMax stur w0, [x29, #-4] b LBB4_6 LBB4_6: ldur w0, [x29, #-4] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #80 .cfi_def_cfa_offset 80 stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp, #64 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] stur w0, [x29, #-8] stur x1, [x29, #-16] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf ; kill: def $x8 killed $xzr stur xzr, [x29, #-24] ldur x0, [x29, #-24] mov w1, #20 bl _InsertNode stur x0, [x29, #-24] ldur x0, [x29, #-24] mov w1, #15 bl _InsertNode stur x0, [x29, #-24] ldur x0, [x29, #-24] mov w1, #25 bl _InsertNode stur x0, [x29, #-24] ldur x0, [x29, #-24] mov w1, #10 bl _InsertNode stur x0, [x29, #-24] ldur x0, [x29, #-24] mov w1, #17 bl _InsertNode stur x0, [x29, #-24] ldur x0, [x29, #-24] mov w1, #22 bl _InsertNode stur x0, [x29, #-24] ldur x0, [x29, #-24] mov w1, #27 bl _InsertNode stur x0, [x29, #-24] mov x9, sp adrp x8, l_.str.4@PAGE add x8, x8, l_.str.4@PAGEOFF str x8, [x9] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf mov x9, sp sub x8, x29, #28 str x8, [x9] adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _scanf ldur x0, [x29, #-24] ldur w1, [x29, #-28] bl _Search subs w8, w0, #1 cset w8, ne tbnz w8, #0, LBB5_2 b LBB5_1 LBB5_1: ldur w9, [x29, #-28] ; implicit-def: $x8 mov x8, x9 mov x9, sp adrp x10, l_.str.7@PAGE add x10, x10, l_.str.7@PAGEOFF str x10, [x9] str x8, [x9, #8] adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _printf b LBB5_3 LBB5_2: adrp x0, l_.str.8@PAGE add x0, x0, l_.str.8@PAGEOFF bl _printf b LBB5_3 LBB5_3: ldur x0, [x29, #-24] bl _FindMin str w0, [sp, #32] ldr w9, [sp, #32] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.9@PAGE add x0, x0, l_.str.9@PAGEOFF bl _printf ldur x0, [x29, #-24] bl _FindMax str w0, [sp, #28] ldr w9, [sp, #28] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.10@PAGE add x0, x0, l_.str.10@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 "tree is NULL\n" l_.str.1: ; @.str.1 .asciz "tree is empty\n" l_.str.2: ; @.str.2 .asciz "hello manohar\n\n" l_.str.3: ; @.str.3 .asciz "%s\n" l_.str.4: ; @.str.4 .asciz "Enter the elements to Search" l_.str.5: ; @.str.5 .asciz "%d" l_.str.6: ; @.str.6 .asciz "%s%d\n" l_.str.7: ; @.str.7 .asciz "elements found " l_.str.8: ; @.str.8 .asciz "Not found\n" l_.str.9: ; @.str.9 .asciz "Min=%d\n" l_.str.10: ; @.str.10 .asciz "Max=%d\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _GetNewNode ## -- Begin function GetNewNode .p2align 4, 0x90 _GetNewNode: ## @GetNewNode .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl %edi, -4(%rbp) movl $24, %edi callq _malloc movq %rax, -16(%rbp) movl -4(%rbp), %ecx movq -16(%rbp), %rax movl %ecx, (%rax) movq -16(%rbp), %rax movq $0, 16(%rax) movq -16(%rbp), %rax movq $0, 8(%rax) movq -16(%rbp), %rax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _InsertNode ## -- Begin function InsertNode .p2align 4, 0x90 _InsertNode: ## @InsertNode .cfi_startproc ## %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) cmpq $0, -8(%rbp) jne LBB1_2 ## %bb.1: movl -12(%rbp), %edi callq _GetNewNode movq %rax, -8(%rbp) jmp LBB1_6 LBB1_2: movl -12(%rbp), %eax movq -8(%rbp), %rcx cmpl (%rcx), %eax jg LBB1_4 ## %bb.3: movq -8(%rbp), %rax movq 8(%rax), %rdi movl -12(%rbp), %esi callq _InsertNode movq %rax, %rcx movq -8(%rbp), %rax movq %rcx, 8(%rax) jmp LBB1_5 LBB1_4: movq -8(%rbp), %rax movq 16(%rax), %rdi movl -12(%rbp), %esi callq _InsertNode movq %rax, %rcx movq -8(%rbp), %rax movq %rcx, 16(%rax) LBB1_5: jmp LBB1_6 LBB1_6: movq -8(%rbp), %rax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _Search ## -- Begin function Search .p2align 4, 0x90 _Search: ## @Search .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -16(%rbp) movl %esi, -20(%rbp) cmpq $0, -16(%rbp) jne LBB2_2 ## %bb.1: movl $0, -4(%rbp) jmp LBB2_7 LBB2_2: movl -20(%rbp), %eax movq -16(%rbp), %rcx cmpl (%rcx), %eax jne LBB2_4 ## %bb.3: movl $1, -4(%rbp) jmp LBB2_7 LBB2_4: movl -20(%rbp), %eax movq -16(%rbp), %rcx cmpl (%rcx), %eax jg LBB2_6 ## %bb.5: movq -16(%rbp), %rax movq 8(%rax), %rdi movl -20(%rbp), %esi callq _Search movl %eax, -4(%rbp) jmp LBB2_7 LBB2_6: movq -16(%rbp), %rax movq 16(%rax), %rdi movl -20(%rbp), %esi callq _Search movl %eax, -4(%rbp) LBB2_7: movl -4(%rbp), %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _FindMin ## -- Begin function FindMin .p2align 4, 0x90 _FindMin: ## @FindMin .cfi_startproc ## %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) cmpq $0, -16(%rbp) jne LBB3_2 ## %bb.1: leaq L_.str(%rip), %rdi movb $0, %al callq _printf movl $-1, -4(%rbp) jmp LBB3_6 LBB3_2: movq -16(%rbp), %rax cmpq $0, 8(%rax) jne LBB3_4 ## %bb.3: movq -16(%rbp), %rax movl (%rax), %eax movl %eax, -4(%rbp) jmp LBB3_6 LBB3_4: jmp LBB3_5 LBB3_5: movq -16(%rbp), %rax movq 8(%rax), %rdi callq _FindMin movl %eax, -4(%rbp) LBB3_6: movl -4(%rbp), %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _FindMax ## -- Begin function FindMax .p2align 4, 0x90 _FindMax: ## @FindMax .cfi_startproc ## %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) cmpq $0, -16(%rbp) jne LBB4_2 ## %bb.1: leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf movl $-1, -4(%rbp) jmp LBB4_6 LBB4_2: movq -16(%rbp), %rax cmpq $0, 16(%rax) jne LBB4_4 ## %bb.3: movq -16(%rbp), %rax movl (%rax), %eax movl %eax, -4(%rbp) jmp LBB4_6 LBB4_4: jmp LBB4_5 LBB4_5: movq -16(%rbp), %rax movq 16(%rax), %rdi callq _FindMax movl %eax, -4(%rbp) LBB4_6: movl -4(%rbp), %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movl $0, -4(%rbp) movl %edi, -8(%rbp) movq %rsi, -16(%rbp) leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf movq $0, -24(%rbp) movq -24(%rbp), %rdi movl $20, %esi callq _InsertNode movq %rax, -24(%rbp) movq -24(%rbp), %rdi movl $15, %esi callq _InsertNode movq %rax, -24(%rbp) movq -24(%rbp), %rdi movl $25, %esi callq _InsertNode movq %rax, -24(%rbp) movq -24(%rbp), %rdi movl $10, %esi callq _InsertNode movq %rax, -24(%rbp) movq -24(%rbp), %rdi movl $17, %esi callq _InsertNode movq %rax, -24(%rbp) movq -24(%rbp), %rdi movl $22, %esi callq _InsertNode movq %rax, -24(%rbp) movq -24(%rbp), %rdi movl $27, %esi callq _InsertNode movq %rax, -24(%rbp) leaq L_.str.3(%rip), %rdi leaq L_.str.4(%rip), %rsi movb $0, %al callq _printf leaq L_.str.5(%rip), %rdi leaq -28(%rbp), %rsi movb $0, %al callq _scanf movq -24(%rbp), %rdi movl -28(%rbp), %esi callq _Search cmpl $1, %eax jne LBB5_2 ## %bb.1: movl -28(%rbp), %edx leaq L_.str.6(%rip), %rdi leaq L_.str.7(%rip), %rsi movb $0, %al callq _printf jmp LBB5_3 LBB5_2: leaq L_.str.8(%rip), %rdi movb $0, %al callq _printf LBB5_3: movq -24(%rbp), %rdi callq _FindMin movl %eax, -32(%rbp) movl -32(%rbp), %esi leaq L_.str.9(%rip), %rdi movb $0, %al callq _printf movq -24(%rbp), %rdi callq _FindMax movl %eax, -36(%rbp) movl -36(%rbp), %esi leaq L_.str.10(%rip), %rdi movb $0, %al callq _printf xorl %eax, %eax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "tree is NULL\n" L_.str.1: ## @.str.1 .asciz "tree is empty\n" L_.str.2: ## @.str.2 .asciz "hello manohar\n\n" L_.str.3: ## @.str.3 .asciz "%s\n" L_.str.4: ## @.str.4 .asciz "Enter the elements to Search" L_.str.5: ## @.str.5 .asciz "%d" L_.str.6: ## @.str.6 .asciz "%s%d\n" L_.str.7: ## @.str.7 .asciz "elements found " L_.str.8: ## @.str.8 .asciz "Not found\n" L_.str.9: ## @.str.9 .asciz "Min=%d\n" L_.str.10: ## @.str.10 .asciz "Max=%d\n" .subsections_via_symbols
the_stack_data/526975.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/589137.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _ft_strdel ; -- Begin function ft_strdel .p2align 2 _ft_strdel: ; @ft_strdel .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, eq tbnz w8, #0, LBB0_3 b LBB0_1 LBB0_1: ldr x8, [sp, #8] ldr x8, [x8] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: ldr x8, [sp, #8] ldr x0, [x8] bl _free ldr x8, [sp, #8] ; kill: def $x9 killed $xzr str xzr, [x8] b LBB0_3 LBB0_3: 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 _ft_strdel ## -- Begin function ft_strdel .p2align 4, 0x90 _ft_strdel: ## @ft_strdel .cfi_startproc ## %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) je LBB0_3 ## %bb.1: movq -8(%rbp), %rax cmpq $0, (%rax) je LBB0_3 ## %bb.2: movq -8(%rbp), %rax movq (%rax), %rdi callq _free movq -8(%rbp), %rax movq $0, (%rax) LBB0_3: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/61076378.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov x9, sp sub x8, x29, #4 str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf ldur w8, [x29, #-4] ; implicit-def: $x10 mov x10, x8 ldur w9, [x29, #-4] ; 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 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Enter a number\n" l_.str.1: ; @.str.1 .asciz "%d" l_.str.2: ; @.str.2 .asciz "The number in octal is %o \t The number is %x \n " .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $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 movl -4(%rbp), %edx leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Enter a number\n" L_.str.1: ## @.str.1 .asciz "%d" L_.str.2: ## @.str.2 .asciz "The number in octal is %o \t The number is %x \n " .subsections_via_symbols
the_stack_data/162041.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #144 .cfi_def_cfa_offset 144 stp x29, x30, [sp, #128] ; 16-byte Folded Spill add x29, sp, #128 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] mov w1, #0 stur wzr, [x29, #-52] sub x0, x29, #48 mov x2, #40 bl _memset adrp x8, l_.str@PAGE add x8, x8, l_.str@PAGEOFF stur x8, [x29, #-48] adrp x8, l_.str.1@PAGE add x8, x8, l_.str.1@PAGEOFF stur x8, [x29, #-40] adrp x8, l_.str.2@PAGE add x8, x8, l_.str.2@PAGEOFF stur x8, [x29, #-32] adrp x8, l_.str.3@PAGE add x8, x8, l_.str.3@PAGEOFF stur x8, [x29, #-24] adrp x8, l_.str.4@PAGE add x8, x8, l_.str.4@PAGEOFF stur x8, [x29, #-16] str wzr, [sp, #52] b LBB0_1 LBB0_1: ; =>This Loop Header: Depth=1 ; Child Loop BB0_3 Depth 2 ldr w8, [sp, #52] subs w8, w8, #5 cset w8, ge tbnz w8, #0, LBB0_10 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #52] add w8, w8, #1 str w8, [sp, #48] b LBB0_3 LBB0_3: ; Parent Loop BB0_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #48] subs w8, w8, #5 cset w8, ge tbnz w8, #0, LBB0_8 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_3 Depth=2 ldrsw x9, [sp, #52] sub x8, x29, #48 str x8, [sp, #24] ; 8-byte Folded Spill ldr x0, [x8, x9, lsl #3] bl _strlen ldr x8, [sp, #24] ; 8-byte Folded Reload str x0, [sp, #32] ; 8-byte Folded Spill ldrsw x9, [sp, #48] ldr x0, [x8, x9, lsl #3] bl _strlen mov x8, x0 ldr x0, [sp, #32] ; 8-byte Folded Reload subs x8, x0, x8 cset w8, ls tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_3 Depth=2 ldrsw x8, [sp, #52] sub x9, x29, #48 ldr x8, [x9, x8, lsl #3] str x8, [sp, #64] ldrsw x8, [sp, #48] ldr x8, [x9, x8, lsl #3] ldrsw x10, [sp, #52] str x8, [x9, x10, lsl #3] ldr x8, [sp, #64] ldrsw x10, [sp, #48] str x8, [x9, x10, lsl #3] 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 w8, [sp, #48] add w8, w8, #1 str w8, [sp, #48] b LBB0_3 LBB0_8: ; in Loop: Header=BB0_1 Depth=1 b LBB0_9 LBB0_9: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #52] add w8, w8, #1 str w8, [sp, #52] b LBB0_1 LBB0_10: adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf str wzr, [sp, #44] b LBB0_11 LBB0_11: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #44] subs w8, w8, #5 cset w8, ge tbnz w8, #0, LBB0_14 b LBB0_12 LBB0_12: ; in Loop: Header=BB0_11 Depth=1 ldrsw x9, [sp, #44] sub x8, x29, #48 ldr x8, [x8, x9, lsl #3] mov x9, sp str x8, [x9] adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _printf b LBB0_13 LBB0_13: ; in Loop: Header=BB0_11 Depth=1 ldr w8, [sp, #44] add w8, w8, #1 str w8, [sp, #44] b LBB0_11 LBB0_14: mov w0, #10 bl _putchar str wzr, [sp, #40] b LBB0_15 LBB0_15: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #40] subs w8, w8, #5 cset w8, ge tbnz w8, #0, LBB0_21 b LBB0_16 LBB0_16: ; in Loop: Header=BB0_15 Depth=1 ldrsw x9, [sp, #40] sub x8, x29, #48 ldr x0, [x8, x9, lsl #3] bl _strlen subs x8, x0, #2 cset w8, ls tbnz w8, #0, LBB0_18 b LBB0_17 LBB0_17: ; in Loop: Header=BB0_15 Depth=1 ldrsw x9, [sp, #40] sub x8, x29, #48 ldr x8, [x8, x9, lsl #3] ldrsb w8, [x8, #2] str w8, [sp, #20] ; 4-byte Folded Spill b LBB0_19 LBB0_18: ; in Loop: Header=BB0_15 Depth=1 mov w8, #32 str w8, [sp, #20] ; 4-byte Folded Spill b LBB0_19 LBB0_19: ; in Loop: Header=BB0_15 Depth=1 ldr w8, [sp, #20] ; 4-byte Folded Reload ldrsw x10, [sp, #40] add x9, sp, #58 strb w8, [x9, x10] b LBB0_20 LBB0_20: ; in Loop: Header=BB0_15 Depth=1 ldr w8, [sp, #40] add w8, w8, #1 str w8, [sp, #40] b LBB0_15 LBB0_21: add x0, sp, #58 str x0, [sp, #8] ; 8-byte Folded Spill bl _strlen mov x9, x0 ldr x0, [sp, #8] ; 8-byte Folded Reload mov x8, x0 add x8, x8, x9 strb wzr, [x8] bl _puts ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_23 b LBB0_22 LBB0_22: bl ___stack_chk_fail LBB0_23: mov w0, #0 ldp x29, x30, [sp, #128] ; 16-byte Folded Reload add sp, sp, #144 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "ho" l_.str.1: ; @.str.1 .asciz "shanea" l_.str.2: ; @.str.2 .asciz "you" l_.str.3: ; @.str.3 .asciz "arent" l_.str.4: ; @.str.4 .asciz "seen" l_.str.5: ; @.str.5 .asciz "Sorted array: " l_.str.6: ; @.str.6 .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 $112, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -52(%rbp) leaq -48(%rbp), %rdi xorl %esi, %esi movl $40, %edx callq _memset leaq L_.str(%rip), %rax movq %rax, -48(%rbp) leaq L_.str.1(%rip), %rax movq %rax, -40(%rbp) leaq L_.str.2(%rip), %rax movq %rax, -32(%rbp) leaq L_.str.3(%rip), %rax movq %rax, -24(%rbp) leaq L_.str.4(%rip), %rax movq %rax, -16(%rbp) movl $0, -76(%rbp) LBB0_1: ## =>This Loop Header: Depth=1 ## Child Loop BB0_3 Depth 2 cmpl $5, -76(%rbp) jge LBB0_10 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl -76(%rbp), %eax addl $1, %eax movl %eax, -80(%rbp) LBB0_3: ## Parent Loop BB0_1 Depth=1 ## => This Inner Loop Header: Depth=2 cmpl $5, -80(%rbp) jge LBB0_8 ## %bb.4: ## in Loop: Header=BB0_3 Depth=2 movslq -76(%rbp), %rax movq -48(%rbp,%rax,8), %rdi callq _strlen movq %rax, -96(%rbp) ## 8-byte Spill movslq -80(%rbp), %rax movq -48(%rbp,%rax,8), %rdi callq _strlen movq %rax, %rcx movq -96(%rbp), %rax ## 8-byte Reload cmpq %rcx, %rax jbe LBB0_6 ## %bb.5: ## in Loop: Header=BB0_3 Depth=2 movslq -76(%rbp), %rax movq -48(%rbp,%rax,8), %rax movq %rax, -64(%rbp) movslq -80(%rbp), %rax movq -48(%rbp,%rax,8), %rcx movslq -76(%rbp), %rax movq %rcx, -48(%rbp,%rax,8) movq -64(%rbp), %rcx movslq -80(%rbp), %rax movq %rcx, -48(%rbp,%rax,8) LBB0_6: ## in Loop: Header=BB0_3 Depth=2 jmp LBB0_7 LBB0_7: ## in Loop: Header=BB0_3 Depth=2 movl -80(%rbp), %eax addl $1, %eax movl %eax, -80(%rbp) jmp LBB0_3 LBB0_8: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_9 LBB0_9: ## in Loop: Header=BB0_1 Depth=1 movl -76(%rbp), %eax addl $1, %eax movl %eax, -76(%rbp) jmp LBB0_1 LBB0_10: leaq L_.str.5(%rip), %rdi movb $0, %al callq _printf movl $0, -84(%rbp) LBB0_11: ## =>This Inner Loop Header: Depth=1 cmpl $5, -84(%rbp) jge LBB0_14 ## %bb.12: ## in Loop: Header=BB0_11 Depth=1 movslq -84(%rbp), %rax movq -48(%rbp,%rax,8), %rsi leaq L_.str.6(%rip), %rdi movb $0, %al callq _printf ## %bb.13: ## in Loop: Header=BB0_11 Depth=1 movl -84(%rbp), %eax addl $1, %eax movl %eax, -84(%rbp) jmp LBB0_11 LBB0_14: movl $10, %edi callq _putchar movl $0, -88(%rbp) LBB0_15: ## =>This Inner Loop Header: Depth=1 cmpl $5, -88(%rbp) jge LBB0_21 ## %bb.16: ## in Loop: Header=BB0_15 Depth=1 movslq -88(%rbp), %rax movq -48(%rbp,%rax,8), %rdi callq _strlen cmpq $2, %rax jbe LBB0_18 ## %bb.17: ## in Loop: Header=BB0_15 Depth=1 movslq -88(%rbp), %rax movq -48(%rbp,%rax,8), %rax movsbl 2(%rax), %eax movl %eax, -100(%rbp) ## 4-byte Spill jmp LBB0_19 LBB0_18: ## in Loop: Header=BB0_15 Depth=1 movl $32, %eax movl %eax, -100(%rbp) ## 4-byte Spill jmp LBB0_19 LBB0_19: ## in Loop: Header=BB0_15 Depth=1 movl -100(%rbp), %eax ## 4-byte Reload movb %al, %cl movslq -88(%rbp), %rax movb %cl, -70(%rbp,%rax) ## %bb.20: ## in Loop: Header=BB0_15 Depth=1 movl -88(%rbp), %eax addl $1, %eax movl %eax, -88(%rbp) jmp LBB0_15 LBB0_21: leaq -70(%rbp), %rdi callq _strlen movb $0, -70(%rbp,%rax) leaq -70(%rbp), %rdi callq _puts movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_23 ## %bb.22: xorl %eax, %eax addq $112, %rsp popq %rbp retq LBB0_23: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "ho" L_.str.1: ## @.str.1 .asciz "shanea" L_.str.2: ## @.str.2 .asciz "you" L_.str.3: ## @.str.3 .asciz "arent" L_.str.4: ## @.str.4 .asciz "seen" L_.str.5: ## @.str.5 .asciz "Sorted array: " L_.str.6: ## @.str.6 .asciz "%s " .subsections_via_symbols
the_stack_data/26701499.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _gol_atou ; -- Begin function gol_atou .p2align 2 _gol_atou: ; @gol_atou .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 wzr, [sp, #4] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #8] ldrsb w0, [x8] bl _gol_isspace subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #8] add x8, x8, #1 str x8, [sp, #8] b LBB0_1 LBB0_3: ldr x8, [sp, #8] ldrsb w8, [x8] subs w8, w8, #43 cset w8, ne tbnz w8, #0, LBB0_5 b LBB0_4 LBB0_4: ldr x8, [sp, #8] add x8, x8, #1 str x8, [sp, #8] b LBB0_5 LBB0_5: b LBB0_6 LBB0_6: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #8] ldrsb w0, [x8] bl _gol_isdigit subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB0_8 b LBB0_7 LBB0_7: ; in Loop: Header=BB0_6 Depth=1 ldr w8, [sp, #4] mov w9, #10 mul w8, w8, w9 str w8, [sp, #4] ldr x8, [sp, #8] ldrsb w8, [x8] subs w9, w8, #48 ldr w8, [sp, #4] add w8, w8, w9 str w8, [sp, #4] ldr x8, [sp, #8] add x8, x8, #1 str x8, [sp, #8] b LBB0_6 LBB0_8: ldr w0, [sp, #4] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function gol_isspace _gol_isspace: ; @gol_isspace .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 strb w0, [sp, #15] ldrsb w8, [sp, #15] subs w8, w8, #12 cset w8, eq mov w9, #1 str w9, [sp, #8] ; 4-byte Folded Spill tbnz w8, #0, LBB1_6 b LBB1_1 LBB1_1: ldrsb w8, [sp, #15] subs w8, w8, #9 cset w8, eq mov w9, #1 str w9, [sp, #8] ; 4-byte Folded Spill tbnz w8, #0, LBB1_6 b LBB1_2 LBB1_2: ldrsb w8, [sp, #15] subs w8, w8, #10 cset w8, eq mov w9, #1 str w9, [sp, #8] ; 4-byte Folded Spill tbnz w8, #0, LBB1_6 b LBB1_3 LBB1_3: ldrsb w8, [sp, #15] subs w8, w8, #13 cset w8, eq mov w9, #1 str w9, [sp, #8] ; 4-byte Folded Spill tbnz w8, #0, LBB1_6 b LBB1_4 LBB1_4: ldrsb w8, [sp, #15] subs w8, w8, #11 cset w8, eq mov w9, #1 str w9, [sp, #8] ; 4-byte Folded Spill tbnz w8, #0, LBB1_6 b LBB1_5 LBB1_5: ldrsb w8, [sp, #15] subs w8, w8, #32 cset w8, eq str w8, [sp, #8] ; 4-byte Folded Spill b LBB1_6 LBB1_6: ldr w8, [sp, #8] ; 4-byte Folded Reload and w0, w8, #0x1 add sp, sp, #16 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function gol_isdigit _gol_isdigit: ; @gol_isdigit .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 strb w0, [sp, #15] ldrsb w8, [sp, #15] subs w8, w8, #48 cset w8, lt mov w9, #0 str w9, [sp, #8] ; 4-byte Folded Spill tbnz w8, #0, LBB2_2 b LBB2_1 LBB2_1: ldrsb w8, [sp, #15] subs w8, w8, #57 cset w8, le str w8, [sp, #8] ; 4-byte Folded Spill b LBB2_2 LBB2_2: ldr w8, [sp, #8] ; 4-byte Folded Reload and w0, w8, #0x1 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 _gol_atou ## -- Begin function gol_atou .p2align 4, 0x90 _gol_atou: ## @gol_atou .cfi_startproc ## %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 movq -8(%rbp), %rax movsbl (%rax), %edi callq _gol_isspace cmpl $0, %eax je LBB0_3 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movq -8(%rbp), %rax addq $1, %rax movq %rax, -8(%rbp) jmp LBB0_1 LBB0_3: movq -8(%rbp), %rax movsbl (%rax), %eax cmpl $43, %eax jne LBB0_5 ## %bb.4: movq -8(%rbp), %rax addq $1, %rax movq %rax, -8(%rbp) LBB0_5: jmp LBB0_6 LBB0_6: ## =>This Inner Loop Header: Depth=1 movq -8(%rbp), %rax movsbl (%rax), %edi callq _gol_isdigit cmpl $0, %eax je LBB0_8 ## %bb.7: ## in Loop: Header=BB0_6 Depth=1 imull $10, -12(%rbp), %eax movl %eax, -12(%rbp) movq -8(%rbp), %rax movsbl (%rax), %eax subl $48, %eax addl -12(%rbp), %eax movl %eax, -12(%rbp) movq -8(%rbp), %rax addq $1, %rax movq %rax, -8(%rbp) jmp LBB0_6 LBB0_8: movl -12(%rbp), %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function gol_isspace _gol_isspace: ## @gol_isspace .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movb %dil, %al movb %al, -1(%rbp) movsbl -1(%rbp), %ecx movb $1, %al cmpl $12, %ecx movb %al, -2(%rbp) ## 1-byte Spill je LBB1_6 ## %bb.1: movsbl -1(%rbp), %ecx movb $1, %al cmpl $9, %ecx movb %al, -2(%rbp) ## 1-byte Spill je LBB1_6 ## %bb.2: movsbl -1(%rbp), %ecx movb $1, %al cmpl $10, %ecx movb %al, -2(%rbp) ## 1-byte Spill je LBB1_6 ## %bb.3: movsbl -1(%rbp), %ecx movb $1, %al cmpl $13, %ecx movb %al, -2(%rbp) ## 1-byte Spill je LBB1_6 ## %bb.4: movsbl -1(%rbp), %ecx movb $1, %al cmpl $11, %ecx movb %al, -2(%rbp) ## 1-byte Spill je LBB1_6 ## %bb.5: movsbl -1(%rbp), %eax cmpl $32, %eax sete %al movb %al, -2(%rbp) ## 1-byte Spill LBB1_6: movb -2(%rbp), %al ## 1-byte Reload andb $1, %al movzbl %al, %eax popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function gol_isdigit _gol_isdigit: ## @gol_isdigit .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movb %dil, %al movb %al, -1(%rbp) movsbl -1(%rbp), %ecx xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $48, %ecx movb %al, -2(%rbp) ## 1-byte Spill jl LBB2_2 ## %bb.1: movsbl -1(%rbp), %eax cmpl $57, %eax setle %al movb %al, -2(%rbp) ## 1-byte Spill LBB2_2: movb -2(%rbp), %al ## 1-byte Reload andb $1, %al movzbl %al, %eax popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/225144031.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] 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, #24] ; 8-byte Folded Spill bl _scanf adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf ldr x0, [sp, #24] ; 8-byte Folded Reload mov x9, sp sub x8, x29, #12 str x8, [x9] bl _scanf ldur w8, [x29, #-8] ldur w9, [x29, #-12] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: ldur w8, [x29, #-8] ; implicit-def: $x10 mov x10, x8 ldur w9, [x29, #-12] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf b LBB0_3 LBB0_2: ldur w8, [x29, #-12] ; implicit-def: $x10 mov x10, x8 ldur w9, [x29, #-8] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf b LBB0_3 LBB0_3: mov w0, #0 ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Digite o primeiro n\303\272mero: " l_.str.1: ; @.str.1 .asciz "%d" l_.str.2: ; @.str.2 .asciz "Digite o segundo n\303\272mero: " l_.str.3: ; @.str.3 .asciz "O primeiro n\303\272mero %d \303\251 maior que o segundo %d" l_.str.4: ; @.str.4 .asciz "O segundo n\303\272mero %d \303\251 maior que o primeiro %d" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) leaq L_.str(%rip), %rdi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi leaq -8(%rbp), %rsi movb $0, %al callq _scanf leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi leaq -12(%rbp), %rsi movb $0, %al callq _scanf movl -8(%rbp), %eax cmpl -12(%rbp), %eax jle LBB0_2 ## %bb.1: movl -8(%rbp), %esi movl -12(%rbp), %edx leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf jmp LBB0_3 LBB0_2: movl -12(%rbp), %esi movl -8(%rbp), %edx leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf LBB0_3: xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Digite o primeiro n\303\272mero: " L_.str.1: ## @.str.1 .asciz "%d" L_.str.2: ## @.str.2 .asciz "Digite o segundo n\303\272mero: " L_.str.3: ## @.str.3 .asciz "O primeiro n\303\272mero %d \303\251 maior que o segundo %d" L_.str.4: ## @.str.4 .asciz "O segundo n\303\272mero %d \303\251 maior que o primeiro %d" .subsections_via_symbols
the_stack_data/178265959.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _new_node ; -- Begin function new_node .p2align 2 _new_node: ; @new_node .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur w0, [x29, #-12] mov x0, #40 bl _malloc str x0, [sp, #8] ldr x8, [sp, #8] ; kill: def $x9 killed $xzr str xzr, [x8, #32] ldr x8, [sp, #8] str xzr, [x8, #24] ldur w8, [x29, #-12] ldr x9, [sp, #8] str w8, [x9] ldr x8, [sp, #8] str wzr, [x8, #16] ldr x8, [sp, #8] str wzr, [x8, #12] ldr x8, [sp, #8] str wzr, [x8, #4] ldr x8, [sp, #8] str wzr, [x8, #8] ldur x0, [x29, #-8] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _delete ; -- Begin function delete .p2align 2 _delete: ; @delete .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #16] str w1, [sp, #12] ldr x8, [sp, #16] ldr x8, [x8] str x8, [sp] ldr x8, [sp] ldr x8, [x8, #24] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB1_5 b LBB1_1 LBB1_1: ldr x8, [sp] ldr x8, [x8, #32] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB1_5 b LBB1_2 LBB1_2: ldr x8, [sp] ldr w8, [x8, #12] ldr w9, [sp, #12] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB1_4 b LBB1_3 LBB1_3: adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldr x8, [sp] str wzr, [x8, #4] ldr x8, [sp] str wzr, [x8, #8] ldr x8, [sp] str wzr, [x8, #16] ldr x8, [sp] str wzr, [x8, #12] mov w8, #1 stur w8, [x29, #-4] b LBB1_20 LBB1_4: stur wzr, [x29, #-4] b LBB1_20 LBB1_5: ldr x8, [sp] add x0, x8, #24 ldr w1, [sp, #12] bl _delete str w0, [sp, #8] ldr w8, [sp, #8] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB1_12 b LBB1_6 LBB1_6: ldr x8, [sp] ldr x8, [x8, #32] ldr w8, [x8, #8] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB1_11 b LBB1_7 LBB1_7: ldr x8, [sp] ldr x8, [x8, #32] ldr w8, [x8, #4] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB1_11 b LBB1_8 LBB1_8: ldr x8, [sp] ldr x8, [x8, #32] ldr x8, [x8, #24] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB1_11 b LBB1_9 LBB1_9: ldr x8, [sp] ldr x8, [x8, #32] ldr x8, [x8, #32] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB1_11 b LBB1_10 LBB1_10: ldr x8, [sp] str wzr, [x8, #8] ldr x8, [sp] str wzr, [x8, #4] ldr x8, [sp] ; kill: def $x9 killed $xzr str xzr, [x8, #32] ldr x8, [sp] str xzr, [x8, #24] mov w8, #1 stur w8, [x29, #-4] b LBB1_20 LBB1_11: b LBB1_12 LBB1_12: ldr x8, [sp] add x0, x8, #32 ldr w1, [sp, #12] bl _delete str w0, [sp, #8] ldr w8, [sp, #8] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB1_19 b LBB1_13 LBB1_13: ldr x8, [sp] ldr x8, [x8, #24] ldr w8, [x8, #8] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB1_18 b LBB1_14 LBB1_14: ldr x8, [sp] ldr x8, [x8, #24] ldr w8, [x8, #4] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB1_18 b LBB1_15 LBB1_15: ldr x8, [sp] ldr x8, [x8, #24] ldr x8, [x8, #24] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB1_18 b LBB1_16 LBB1_16: ldr x8, [sp] ldr x8, [x8, #24] ldr x8, [x8, #32] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB1_18 b LBB1_17 LBB1_17: ldr x8, [sp] str wzr, [x8, #8] ldr x8, [sp] str wzr, [x8, #4] ldr x8, [sp] ; kill: def $x9 killed $xzr str xzr, [x8, #32] ldr x8, [sp] str xzr, [x8, #24] mov w8, #1 stur w8, [x29, #-4] b LBB1_20 LBB1_18: b LBB1_19 LBB1_19: stur wzr, [x29, #-4] b LBB1_20 LBB1_20: ldur w0, [x29, #-4] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _BuddyAllocation ; -- Begin function BuddyAllocation .p2align 2 _BuddyAllocation: ; @BuddyAllocation .cfi_startproc ; %bb.0: sub sp, sp, #80 .cfi_def_cfa_offset 80 stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp, #64 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-16] stur w1, [x29, #-20] stur w2, [x29, #-24] stur w3, [x29, #-28] ldur x8, [x29, #-16] ldr x8, [x8] str x8, [sp, #24] ; kill: def $x8 killed $xzr str xzr, [sp, #8] ldr x8, [sp, #24] ldr w8, [x8] ldur w9, [x29, #-28] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB2_2 b LBB2_1 LBB2_1: adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf stur wzr, [x29, #-4] b LBB2_30 LBB2_2: ldr x8, [sp, #24] ldr w8, [x8] ldur w9, [x29, #-28] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB2_7 b LBB2_3 LBB2_3: ldr x8, [sp, #24] ldr x8, [x8, #24] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB2_6 b LBB2_4 LBB2_4: ldr x8, [sp, #24] ldr x8, [x8, #32] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB2_6 b LBB2_5 LBB2_5: ldur w8, [x29, #-28] ldr x9, [sp, #24] str w8, [x9] ldur w8, [x29, #-24] ldr x9, [sp, #24] str w8, [x9, #12] ldur w8, [x29, #-20] ldr x9, [sp, #24] str w8, [x9, #16] ldr x9, [sp, #24] mov w8, #1 str w8, [x9, #4] ldr x9, [sp, #24] str w8, [x9, #8] stur w8, [x29, #-4] b LBB2_30 LBB2_6: stur wzr, [x29, #-4] b LBB2_30 LBB2_7: ldr x8, [sp, #24] ldr w8, [x8, #8] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB2_22 b LBB2_8 LBB2_8: ldr x8, [sp, #24] ldr x8, [x8, #24] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB2_15 b LBB2_9 LBB2_9: ldr x8, [sp, #24] ldr w8, [x8] mov w9, #2 str w9, [sp, #4] ; 4-byte Folded Spill sdiv w0, w8, w9 bl _new_node ldr w9, [sp, #4] ; 4-byte Folded Reload ldr x8, [sp, #24] str x0, [x8, #24] ldr x8, [sp, #24] ldr w8, [x8] sdiv w0, w8, w9 bl _new_node ldr x8, [sp, #24] str x0, [x8, #32] ldr x8, [sp, #24] add x0, x8, #24 ldur w1, [x29, #-20] ldur w2, [x29, #-24] ldur w3, [x29, #-28] bl _BuddyAllocation str w0, [sp, #20] ldr x8, [sp, #24] ldr x8, [x8, #24] ldr w8, [x8, #8] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB2_12 b LBB2_10 LBB2_10: ldr x8, [sp, #24] ldr x8, [x8, #24] ldr w8, [x8, #4] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB2_12 b LBB2_11 LBB2_11: ldr x9, [sp, #24] mov w8, #1 str w8, [x9, #8] b LBB2_12 LBB2_12: ldr w8, [sp, #20] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB2_14 b LBB2_13 LBB2_13: mov w8, #1 stur w8, [x29, #-4] b LBB2_30 LBB2_14: b LBB2_21 LBB2_15: ldr x8, [sp, #24] add x0, x8, #24 ldur w1, [x29, #-20] ldur w2, [x29, #-24] ldur w3, [x29, #-28] bl _BuddyAllocation str w0, [sp, #20] ldr x8, [sp, #24] ldr x8, [x8, #24] ldr w8, [x8, #8] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB2_18 b LBB2_16 LBB2_16: ldr x8, [sp, #24] ldr x8, [x8, #24] ldr w8, [x8, #4] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB2_18 b LBB2_17 LBB2_17: ldr x9, [sp, #24] mov w8, #1 str w8, [x9, #8] b LBB2_18 LBB2_18: ldr w8, [sp, #20] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB2_20 b LBB2_19 LBB2_19: mov w8, #1 stur w8, [x29, #-4] b LBB2_30 LBB2_20: b LBB2_21 LBB2_21: b LBB2_22 LBB2_22: ldr x8, [sp, #24] ldr w8, [x8, #4] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB2_29 b LBB2_23 LBB2_23: ldr x8, [sp, #24] add x0, x8, #32 ldur w1, [x29, #-20] ldur w2, [x29, #-24] ldur w3, [x29, #-28] bl _BuddyAllocation str w0, [sp, #20] ldr x8, [sp, #24] ldr x8, [x8, #32] ldr w8, [x8, #8] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB2_26 b LBB2_24 LBB2_24: ldr x8, [sp, #24] ldr x8, [x8, #32] ldr w8, [x8, #4] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB2_26 b LBB2_25 LBB2_25: ldr x9, [sp, #24] mov w8, #1 str w8, [x9, #4] b LBB2_26 LBB2_26: ldr w8, [sp, #20] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB2_28 b LBB2_27 LBB2_27: mov w8, #1 stur w8, [x29, #-4] b LBB2_30 LBB2_28: b LBB2_29 LBB2_29: stur wzr, [x29, #-4] b LBB2_30 LBB2_30: ldur w0, [x29, #-4] ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .globl _printtree ; -- Begin function printtree .p2align 2 _printtree: ; @printtree .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] ldr x8, [x8, #24] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB3_3 b LBB3_1 LBB3_1: ldur x8, [x29, #-8] ldr x8, [x8, #32] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB3_3 b LBB3_2 LBB3_2: ldur x8, [x29, #-8] ldr w8, [x8] ; implicit-def: $x13 mov x13, x8 ldur x8, [x29, #-8] ldr w8, [x8, #16] ; implicit-def: $x12 mov x12, x8 ldur x8, [x29, #-8] ldr w8, [x8, #12] ; implicit-def: $x11 mov x11, x8 ldur x8, [x29, #-8] ldr w8, [x8, #8] ; implicit-def: $x10 mov x10, x8 ldur x8, [x29, #-8] ldr w9, [x8, #4] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x13, [x9] str x12, [x9, #8] str x11, [x9, #16] str x10, [x9, #24] str x8, [x9, #32] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf b LBB3_4 LBB3_3: ldur x8, [x29, #-8] ldr x0, [x8, #24] bl _printtree ldur x8, [x29, #-8] ldr x0, [x8, #32] bl _printtree b LBB3_4 LBB3_4: ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #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] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf mov x9, sp sub x8, x29, #8 str x8, [x9] adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _scanf stur wzr, [x29, #-12] ldur w0, [x29, #-8] bl _new_node stur x0, [x29, #-24] stur wzr, [x29, #-28] b LBB4_1 LBB4_1: ; =>This Loop Header: Depth=1 ; Child Loop BB4_5 Depth 2 ldur w8, [x29, #-28] subs w8, w8, #4 cset w8, eq tbnz w8, #0, LBB4_16 b LBB4_2 LBB4_2: ; in Loop: Header=BB4_1 Depth=1 adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf mov x9, sp sub x8, x29, #28 str x8, [x9] adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _scanf adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _printf ldur w8, [x29, #-28] subs w8, w8, #1 ; kill: def $x8 killed $w8 str x8, [sp, #16] ; 8-byte Folded Spill subs x8, x8, #3 cset w8, hi tbnz w8, #0, LBB4_14 ; %bb.3: ; in Loop: Header=BB4_1 Depth=1 ldr x11, [sp, #16] ; 8-byte Folded Reload adrp x10, lJTI4_0@PAGE add x10, x10, lJTI4_0@PAGEOFF Ltmp0: adr x8, Ltmp0 ldrsw x9, [x10, x11, lsl #2] add x8, x8, x9 br x8 LBB4_4: ; in Loop: Header=BB4_1 Depth=1 adrp x0, l_.str.7@PAGE add x0, x0, l_.str.7@PAGEOFF bl _printf mov x9, sp sub x8, x29, #32 str x8, [x9] adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF str x0, [sp, #8] ; 8-byte Folded Spill bl _scanf adrp x0, l_.str.8@PAGE add x0, x0, l_.str.8@PAGEOFF bl _printf ldr x0, [sp, #8] ; 8-byte Folded Reload mov x9, sp sub x8, x29, #36 str x8, [x9] bl _scanf mov w8, #1 str w8, [sp, #36] str wzr, [sp, #32] b LBB4_5 LBB4_5: ; Parent Loop BB4_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #36] ldur w9, [x29, #-32] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB4_7 b LBB4_6 LBB4_6: ; in Loop: Header=BB4_5 Depth=2 ldr w8, [sp, #36] lsl w8, w8, #1 str w8, [sp, #36] ldr w8, [sp, #32] add w8, w8, #1 str w8, [sp, #32] b LBB4_5 LBB4_7: ; in Loop: Header=BB4_1 Depth=1 ldr w8, [sp, #36] str w8, [sp, #40] ldr w9, [sp, #40] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.9@PAGE add x0, x0, l_.str.9@PAGEOFF bl _printf ldur w1, [x29, #-32] ldur w2, [x29, #-36] ldr w3, [sp, #40] sub x0, x29, #24 bl _BuddyAllocation stur w0, [x29, #-12] ldur w8, [x29, #-12] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB4_9 b LBB4_8 LBB4_8: ; in Loop: Header=BB4_1 Depth=1 ldur w8, [x29, #-36] add w8, w8, #1 stur w8, [x29, #-36] adrp x0, l_.str.10@PAGE add x0, x0, l_.str.10@PAGEOFF bl _printf ldur x0, [x29, #-24] bl _printtree b LBB4_10 LBB4_9: ; in Loop: Header=BB4_1 Depth=1 adrp x0, l_.str.11@PAGE add x0, x0, l_.str.11@PAGEOFF bl _printf b LBB4_10 LBB4_10: ; in Loop: Header=BB4_1 Depth=1 b LBB4_15 LBB4_11: ; in Loop: Header=BB4_1 Depth=1 adrp x0, l_.str.12@PAGE add x0, x0, l_.str.12@PAGEOFF bl _printf mov x9, sp add x8, sp, #28 str x8, [x9] adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _scanf ldr w1, [sp, #28] sub x0, x29, #24 bl _delete b LBB4_15 LBB4_12: ; in Loop: Header=BB4_1 Depth=1 adrp x0, l_.str.13@PAGE add x0, x0, l_.str.13@PAGEOFF bl _printf ldur x0, [x29, #-24] bl _printtree b LBB4_15 LBB4_13: adrp x0, l_.str.14@PAGE add x0, x0, l_.str.14@PAGEOFF bl _printf mov w0, #0 bl _exit LBB4_14: ; in Loop: Header=BB4_1 Depth=1 adrp x0, l_.str.15@PAGE add x0, x0, l_.str.15@PAGEOFF bl _printf b LBB4_15 LBB4_15: ; in Loop: Header=BB4_1 Depth=1 b LBB4_1 LBB4_16: mov w0, #0 ldp x29, x30, [sp, #80] ; 16-byte Folded Reload add sp, sp, #96 ret .cfi_endproc .p2align 2 lJTI4_0: .long LBB4_4-Ltmp0 .long LBB4_11-Ltmp0 .long LBB4_12-Ltmp0 .long LBB4_13-Ltmp0 ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "found\n" l_.str.1: ; @.str.1 .asciz "Insufficient space Sorry!!!\n" l_.str.2: ; @.str.2 .asciz "%d\t%d\t\t%d\t\t%d\t%d\n" l_.str.3: ; @.str.3 .asciz "enter the size of the main memory(in power of two )\n" l_.str.4: ; @.str.4 .asciz "%d" l_.str.5: ; @.str.5 .asciz "Enter your choice\n1.Add process\n2.Delete process\n3.print processess\n4.exit\n\n" l_.str.6: ; @.str.6 .asciz "####################################################\n" l_.str.7: ; @.str.7 .asciz "Enter process Size\n" l_.str.8: ; @.str.8 .asciz "Enter process ID\n" l_.str.9: ; @.str.9 .asciz "the actual size is %d\n" l_.str.10: ; @.str.10 .asciz "SIZE\tProcessSIZE\tPROCESSID\tLEFT\tRIGHT\t\n" l_.str.11: ; @.str.11 .asciz "Insufficent space\n" l_.str.12: ; @.str.12 .asciz "Enter process Id to delete the process\n" l_.str.13: ; @.str.13 .asciz "printing the tree with buddy\n" l_.str.14: ; @.str.14 .asciz "Exiting ............\n" l_.str.15: ; @.str.15 .asciz "Error Invalid choice\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _new_node ## -- Begin function new_node .p2align 4, 0x90 _new_node: ## @new_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 $32, %rsp movl %edi, -12(%rbp) movl $40, %edi callq _malloc movq %rax, -24(%rbp) movq -24(%rbp), %rax movq $0, 32(%rax) movq -24(%rbp), %rax movq $0, 24(%rax) movl -12(%rbp), %ecx movq -24(%rbp), %rax movl %ecx, (%rax) movq -24(%rbp), %rax movl $0, 16(%rax) movq -24(%rbp), %rax movl $0, 12(%rax) movq -24(%rbp), %rax movl $0, 4(%rax) movq -24(%rbp), %rax movl $0, 8(%rax) movq -8(%rbp), %rax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _delete ## -- Begin function delete .p2align 4, 0x90 _delete: ## @delete .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -16(%rbp) movl %esi, -20(%rbp) movq -16(%rbp), %rax movq (%rax), %rax movq %rax, -32(%rbp) movq -32(%rbp), %rax cmpq $0, 24(%rax) jne LBB1_5 ## %bb.1: movq -32(%rbp), %rax cmpq $0, 32(%rax) jne LBB1_5 ## %bb.2: movq -32(%rbp), %rax movl 12(%rax), %eax cmpl -20(%rbp), %eax jne LBB1_4 ## %bb.3: leaq L_.str(%rip), %rdi movb $0, %al callq _printf movq -32(%rbp), %rax movl $0, 4(%rax) movq -32(%rbp), %rax movl $0, 8(%rax) movq -32(%rbp), %rax movl $0, 16(%rax) movq -32(%rbp), %rax movl $0, 12(%rax) movl $1, -4(%rbp) jmp LBB1_20 LBB1_4: movl $0, -4(%rbp) jmp LBB1_20 LBB1_5: movq -32(%rbp), %rdi addq $24, %rdi movl -20(%rbp), %esi callq _delete movl %eax, -24(%rbp) cmpl $1, -24(%rbp) jne LBB1_12 ## %bb.6: movq -32(%rbp), %rax movq 32(%rax), %rax cmpl $0, 8(%rax) jne LBB1_11 ## %bb.7: movq -32(%rbp), %rax movq 32(%rax), %rax cmpl $0, 4(%rax) jne LBB1_11 ## %bb.8: movq -32(%rbp), %rax movq 32(%rax), %rax cmpq $0, 24(%rax) jne LBB1_11 ## %bb.9: movq -32(%rbp), %rax movq 32(%rax), %rax cmpq $0, 32(%rax) jne LBB1_11 ## %bb.10: movq -32(%rbp), %rax movl $0, 8(%rax) movq -32(%rbp), %rax movl $0, 4(%rax) movq -32(%rbp), %rax movq $0, 32(%rax) movq -32(%rbp), %rax movq $0, 24(%rax) movl $1, -4(%rbp) jmp LBB1_20 LBB1_11: jmp LBB1_12 LBB1_12: movq -32(%rbp), %rdi addq $32, %rdi movl -20(%rbp), %esi callq _delete movl %eax, -24(%rbp) cmpl $1, -24(%rbp) jne LBB1_19 ## %bb.13: movq -32(%rbp), %rax movq 24(%rax), %rax cmpl $0, 8(%rax) jne LBB1_18 ## %bb.14: movq -32(%rbp), %rax movq 24(%rax), %rax cmpl $0, 4(%rax) jne LBB1_18 ## %bb.15: movq -32(%rbp), %rax movq 24(%rax), %rax cmpq $0, 24(%rax) jne LBB1_18 ## %bb.16: movq -32(%rbp), %rax movq 24(%rax), %rax cmpq $0, 32(%rax) jne LBB1_18 ## %bb.17: movq -32(%rbp), %rax movl $0, 8(%rax) movq -32(%rbp), %rax movl $0, 4(%rax) movq -32(%rbp), %rax movq $0, 32(%rax) movq -32(%rbp), %rax movq $0, 24(%rax) movl $1, -4(%rbp) jmp LBB1_20 LBB1_18: jmp LBB1_19 LBB1_19: movl $0, -4(%rbp) LBB1_20: movl -4(%rbp), %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _BuddyAllocation ## -- Begin function BuddyAllocation .p2align 4, 0x90 _BuddyAllocation: ## @BuddyAllocation .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $64, %rsp movq %rdi, -16(%rbp) movl %esi, -20(%rbp) movl %edx, -24(%rbp) movl %ecx, -28(%rbp) movq -16(%rbp), %rax movq (%rax), %rax movq %rax, -40(%rbp) movq $0, -56(%rbp) movq -40(%rbp), %rax movl (%rax), %eax cmpl -28(%rbp), %eax jge LBB2_2 ## %bb.1: leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf movl $0, -4(%rbp) jmp LBB2_30 LBB2_2: movq -40(%rbp), %rax movl (%rax), %eax cmpl -28(%rbp), %eax jne LBB2_7 ## %bb.3: movq -40(%rbp), %rax cmpq $0, 24(%rax) jne LBB2_6 ## %bb.4: movq -40(%rbp), %rax cmpq $0, 32(%rax) jne LBB2_6 ## %bb.5: movl -28(%rbp), %ecx movq -40(%rbp), %rax movl %ecx, (%rax) movl -24(%rbp), %ecx movq -40(%rbp), %rax movl %ecx, 12(%rax) movl -20(%rbp), %ecx movq -40(%rbp), %rax movl %ecx, 16(%rax) movq -40(%rbp), %rax movl $1, 4(%rax) movq -40(%rbp), %rax movl $1, 8(%rax) movl $1, -4(%rbp) jmp LBB2_30 LBB2_6: movl $0, -4(%rbp) jmp LBB2_30 LBB2_7: movq -40(%rbp), %rax cmpl $0, 8(%rax) jne LBB2_22 ## %bb.8: movq -40(%rbp), %rax cmpq $0, 24(%rax) jne LBB2_15 ## %bb.9: movq -40(%rbp), %rax movl (%rax), %eax movl $2, %ecx cltd idivl %ecx movl %eax, %edi callq _new_node movq %rax, %rcx movq -40(%rbp), %rax movq %rcx, 24(%rax) movq -40(%rbp), %rax movl (%rax), %eax movl $2, %ecx cltd idivl %ecx movl %eax, %edi callq _new_node movq %rax, %rcx movq -40(%rbp), %rax movq %rcx, 32(%rax) movq -40(%rbp), %rdi addq $24, %rdi movl -20(%rbp), %esi movl -24(%rbp), %edx movl -28(%rbp), %ecx callq _BuddyAllocation movl %eax, -44(%rbp) movq -40(%rbp), %rax movq 24(%rax), %rax cmpl $1, 8(%rax) jne LBB2_12 ## %bb.10: movq -40(%rbp), %rax movq 24(%rax), %rax cmpl $1, 4(%rax) jne LBB2_12 ## %bb.11: movq -40(%rbp), %rax movl $1, 8(%rax) LBB2_12: cmpl $1, -44(%rbp) jne LBB2_14 ## %bb.13: movl $1, -4(%rbp) jmp LBB2_30 LBB2_14: jmp LBB2_21 LBB2_15: movq -40(%rbp), %rdi addq $24, %rdi movl -20(%rbp), %esi movl -24(%rbp), %edx movl -28(%rbp), %ecx callq _BuddyAllocation movl %eax, -44(%rbp) movq -40(%rbp), %rax movq 24(%rax), %rax cmpl $1, 8(%rax) jne LBB2_18 ## %bb.16: movq -40(%rbp), %rax movq 24(%rax), %rax cmpl $1, 4(%rax) jne LBB2_18 ## %bb.17: movq -40(%rbp), %rax movl $1, 8(%rax) LBB2_18: cmpl $1, -44(%rbp) jne LBB2_20 ## %bb.19: movl $1, -4(%rbp) jmp LBB2_30 LBB2_20: jmp LBB2_21 LBB2_21: jmp LBB2_22 LBB2_22: movq -40(%rbp), %rax cmpl $0, 4(%rax) jne LBB2_29 ## %bb.23: movq -40(%rbp), %rdi addq $32, %rdi movl -20(%rbp), %esi movl -24(%rbp), %edx movl -28(%rbp), %ecx callq _BuddyAllocation movl %eax, -44(%rbp) movq -40(%rbp), %rax movq 32(%rax), %rax cmpl $1, 8(%rax) jne LBB2_26 ## %bb.24: movq -40(%rbp), %rax movq 32(%rax), %rax cmpl $1, 4(%rax) jne LBB2_26 ## %bb.25: movq -40(%rbp), %rax movl $1, 4(%rax) LBB2_26: cmpl $1, -44(%rbp) jne LBB2_28 ## %bb.27: movl $1, -4(%rbp) jmp LBB2_30 LBB2_28: jmp LBB2_29 LBB2_29: movl $0, -4(%rbp) LBB2_30: movl -4(%rbp), %eax addq $64, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _printtree ## -- Begin function printtree .p2align 4, 0x90 _printtree: ## @printtree .cfi_startproc ## %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, 24(%rax) jne LBB3_3 ## %bb.1: movq -8(%rbp), %rax cmpq $0, 32(%rax) jne LBB3_3 ## %bb.2: movq -8(%rbp), %rax movl (%rax), %esi movq -8(%rbp), %rax movl 16(%rax), %edx movq -8(%rbp), %rax movl 12(%rax), %ecx movq -8(%rbp), %rax movl 8(%rax), %r8d movq -8(%rbp), %rax movl 4(%rax), %r9d leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf jmp LBB3_4 LBB3_3: movq -8(%rbp), %rax movq 24(%rax), %rdi callq _printtree movq -8(%rbp), %rax movq 32(%rax), %rdi callq _printtree LBB3_4: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $80, %rsp movl $0, -4(%rbp) leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf leaq L_.str.4(%rip), %rdi leaq -8(%rbp), %rsi movb $0, %al callq _scanf movl $0, -12(%rbp) movl -8(%rbp), %edi callq _new_node movq %rax, -24(%rbp) movl $0, -28(%rbp) LBB4_1: ## =>This Loop Header: Depth=1 ## Child Loop BB4_4 Depth 2 cmpl $4, -28(%rbp) je LBB4_15 ## %bb.2: ## in Loop: Header=BB4_1 Depth=1 leaq L_.str.5(%rip), %rdi xorl %eax, %eax ## kill: def $al killed $al killed $eax movb %al, -65(%rbp) ## 1-byte Spill callq _printf ## kill: def $ecx killed $eax movb -65(%rbp), %al ## 1-byte Reload leaq L_.str.4(%rip), %rdi leaq -28(%rbp), %rsi callq _scanf ## kill: def $ecx killed $eax movb -65(%rbp), %al ## 1-byte Reload leaq L_.str.6(%rip), %rdi callq _printf movl -28(%rbp), %eax decl %eax movl %eax, %ecx movq %rcx, -64(%rbp) ## 8-byte Spill subl $3, %eax ja LBB4_13 ## %bb.16: ## in Loop: Header=BB4_1 Depth=1 movq -64(%rbp), %rax ## 8-byte Reload leaq LJTI4_0(%rip), %rcx movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax LBB4_3: ## in Loop: Header=BB4_1 Depth=1 leaq L_.str.7(%rip), %rdi movb $0, %al callq _printf leaq L_.str.4(%rip), %rdi leaq -32(%rbp), %rsi movb $0, %al callq _scanf leaq L_.str.8(%rip), %rdi movb $0, %al callq _printf leaq L_.str.4(%rip), %rdi leaq -36(%rbp), %rsi movb $0, %al callq _scanf movl $1, -44(%rbp) movl $0, -48(%rbp) LBB4_4: ## Parent Loop BB4_1 Depth=1 ## => This Inner Loop Header: Depth=2 movl -44(%rbp), %eax cmpl -32(%rbp), %eax jge LBB4_6 ## %bb.5: ## in Loop: Header=BB4_4 Depth=2 movl -44(%rbp), %eax shll $1, %eax movl %eax, -44(%rbp) movl -48(%rbp), %eax addl $1, %eax movl %eax, -48(%rbp) jmp LBB4_4 LBB4_6: ## in Loop: Header=BB4_1 Depth=1 movl -44(%rbp), %eax movl %eax, -40(%rbp) movl -40(%rbp), %esi leaq L_.str.9(%rip), %rdi movb $0, %al callq _printf movl -32(%rbp), %esi movl -36(%rbp), %edx movl -40(%rbp), %ecx leaq -24(%rbp), %rdi callq _BuddyAllocation movl %eax, -12(%rbp) cmpl $1, -12(%rbp) jne LBB4_8 ## %bb.7: ## in Loop: Header=BB4_1 Depth=1 movl -36(%rbp), %eax addl $1, %eax movl %eax, -36(%rbp) leaq L_.str.10(%rip), %rdi movb $0, %al callq _printf movq -24(%rbp), %rdi callq _printtree jmp LBB4_9 LBB4_8: ## in Loop: Header=BB4_1 Depth=1 leaq L_.str.11(%rip), %rdi movb $0, %al callq _printf LBB4_9: ## in Loop: Header=BB4_1 Depth=1 jmp LBB4_14 LBB4_10: ## in Loop: Header=BB4_1 Depth=1 leaq L_.str.12(%rip), %rdi movb $0, %al callq _printf leaq L_.str.4(%rip), %rdi leaq -52(%rbp), %rsi movb $0, %al callq _scanf movl -52(%rbp), %esi leaq -24(%rbp), %rdi callq _delete jmp LBB4_14 LBB4_11: ## in Loop: Header=BB4_1 Depth=1 leaq L_.str.13(%rip), %rdi movb $0, %al callq _printf movq -24(%rbp), %rdi callq _printtree jmp LBB4_14 LBB4_12: leaq L_.str.14(%rip), %rdi xorl %eax, %eax movl %eax, -72(%rbp) ## 4-byte Spill callq _printf movl -72(%rbp), %edi ## 4-byte Reload callq _exit LBB4_13: ## in Loop: Header=BB4_1 Depth=1 leaq L_.str.15(%rip), %rdi movb $0, %al callq _printf LBB4_14: ## in Loop: Header=BB4_1 Depth=1 jmp LBB4_1 LBB4_15: xorl %eax, %eax addq $80, %rsp popq %rbp retq .cfi_endproc .p2align 2, 0x90 .data_region jt32 .set L4_0_set_3, LBB4_3-LJTI4_0 .set L4_0_set_10, LBB4_10-LJTI4_0 .set L4_0_set_11, LBB4_11-LJTI4_0 .set L4_0_set_12, LBB4_12-LJTI4_0 LJTI4_0: .long L4_0_set_3 .long L4_0_set_10 .long L4_0_set_11 .long L4_0_set_12 .end_data_region ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "found\n" L_.str.1: ## @.str.1 .asciz "Insufficient space Sorry!!!\n" L_.str.2: ## @.str.2 .asciz "%d\t%d\t\t%d\t\t%d\t%d\n" L_.str.3: ## @.str.3 .asciz "enter the size of the main memory(in power of two )\n" L_.str.4: ## @.str.4 .asciz "%d" L_.str.5: ## @.str.5 .asciz "Enter your choice\n1.Add process\n2.Delete process\n3.print processess\n4.exit\n\n" L_.str.6: ## @.str.6 .asciz "####################################################\n" L_.str.7: ## @.str.7 .asciz "Enter process Size\n" L_.str.8: ## @.str.8 .asciz "Enter process ID\n" L_.str.9: ## @.str.9 .asciz "the actual size is %d\n" L_.str.10: ## @.str.10 .asciz "SIZE\tProcessSIZE\tPROCESSID\tLEFT\tRIGHT\t\n" L_.str.11: ## @.str.11 .asciz "Insufficent space\n" L_.str.12: ## @.str.12 .asciz "Enter process Id to delete the process\n" L_.str.13: ## @.str.13 .asciz "printing the tree with buddy\n" L_.str.14: ## @.str.14 .asciz "Exiting ............\n" L_.str.15: ## @.str.15 .asciz "Error Invalid choice\n" .subsections_via_symbols
the_stack_data/26700711.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _dec ; -- Begin function dec .p2align 2 _dec: ; @dec .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 _cal ; -- Begin function cal .p2align 2 _cal: ; @cal .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur w0, [x29, #-4] stur w1, [x29, #-8] ldur w8, [x29, #-4] ldur w9, [x29, #-8] mul w8, w8, w9 stur w8, [x29, #-12] ldur w8, [x29, #-4] ldur w9, [x29, #-8] sdiv w8, w8, w9 str w8, [sp, #16] ldur w0, [x29, #-12] ldr w1, [sp, #16] bl _dec str w0, [sp, #12] ldur w8, [x29, #-4] ldur w9, [x29, #-8] add w8, w8, w9 ldr w9, [sp, #12] add w8, w8, w9 ldur w9, [x29, #-12] add w8, w8, w9 ldr w9, [sp, #16] add w0, w8, w9 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] stur w0, [x29, #-8] str x1, [sp, #16] mov w0, #2 mov w1, #1 bl _cal str w0, [sp, #12] ldr w8, [sp, #12] subs w8, w8, #11 cset w8, eq tbnz w8, #0, LBB2_2 b LBB2_1 LBB2_1: bl _abort LBB2_2: 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 _dec ## -- Begin function dec .p2align 4, 0x90 _dec: ## @dec .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 _cal ## -- Begin function cal .p2align 4, 0x90 _cal: ## @cal .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), %eax imull -8(%rbp), %eax movl %eax, -12(%rbp) movl -4(%rbp), %eax cltd idivl -8(%rbp) movl %eax, -16(%rbp) movl -12(%rbp), %edi movl -16(%rbp), %esi callq _dec movl %eax, -20(%rbp) movl -4(%rbp), %eax addl -8(%rbp), %eax addl -20(%rbp), %eax addl -12(%rbp), %eax addl -16(%rbp), %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl $0, -4(%rbp) movl %edi, -8(%rbp) movq %rsi, -16(%rbp) movl $2, %edi movl $1, %esi callq _cal movl %eax, -20(%rbp) cmpl $11, -20(%rbp) je LBB2_2 ## %bb.1: callq _abort LBB2_2: xorl %eax, %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/117329262.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _razsiri ; -- Begin function razsiri .p2align 2 _razsiri: ; @razsiri .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] stur w1, [x29, #-12] ldur w8, [x29, #-12] add w9, w8, #1 ; implicit-def: $x8 mov x8, x9 sxtw x8, w8 lsl x0, x8, #2 bl _malloc str x0, [sp, #8] str wzr, [sp, #4] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #4] ldur w9, [x29, #-12] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_4 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldur x8, [x29, #-8] ldr x8, [x8] ldrsw x9, [sp, #4] ldr w8, [x8, x9, lsl #2] ldr x9, [sp, #8] ldrsw x10, [sp, #4] str w8, [x9, x10, lsl #2] b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #4] add w8, w8, #1 str w8, [sp, #4] b LBB0_1 LBB0_4: ldur x8, [x29, #-8] ldr x0, [x8] bl _free ldr x8, [sp, #8] ldur x9, [x29, #-8] str x8, [x9] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #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, #5 stur w8, [x29, #-8] ldursw x8, [x29, #-8] lsl x0, x8, #2 bl _malloc sub x8, x29, #16 str x8, [sp, #8] ; 8-byte Folded Spill stur x0, [x29, #-16] ldur x8, [x29, #-16] str wzr, [x8] ldur x9, [x29, #-16] mov w8, #1 str w8, [x9, #4] ldur x9, [x29, #-16] mov w8, #2 str w8, [x9, #8] ldur x9, [x29, #-16] mov w8, #3 str w8, [x9, #12] ldur x9, [x29, #-16] mov w8, #4 str w8, [x9, #16] ldur x8, [x29, #-16] mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF str x0, [sp, #16] ; 8-byte Folded Spill bl _printf ldr x0, [sp, #8] ; 8-byte Folded Reload ldur w1, [x29, #-8] add w8, w1, #1 stur w8, [x29, #-8] bl _razsiri ldr x0, [sp, #16] ; 8-byte Folded Reload ldur x8, [x29, #-16] mov x9, sp str x8, [x9] bl _printf stur wzr, [x29, #-20] b LBB1_1 LBB1_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-20] ldur w9, [x29, #-8] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_4 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 ldur x8, [x29, #-16] ldursw x9, [x29, #-20] 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 LBB1_3 LBB1_3: ; in Loop: Header=BB1_1 Depth=1 ldur w8, [x29, #-20] add w8, w8, #1 stur w8, [x29, #-20] b LBB1_1 LBB1_4: 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 "Tabela tab je na naslovu %p\n" 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 _razsiri ## -- Begin function razsiri .p2align 4, 0x90 _razsiri: ## @razsiri .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) movl -12(%rbp), %eax addl $1, %eax movslq %eax, %rdi shlq $2, %rdi callq _malloc movq %rax, -24(%rbp) movl $0, -28(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movl -28(%rbp), %eax cmpl -12(%rbp), %eax jge LBB0_4 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movq -8(%rbp), %rax movq (%rax), %rax movslq -28(%rbp), %rcx movl (%rax,%rcx,4), %edx movq -24(%rbp), %rax movslq -28(%rbp), %rcx movl %edx, (%rax,%rcx,4) ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movl -28(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) jmp LBB0_1 LBB0_4: movq -8(%rbp), %rax movq (%rax), %rdi callq _free movq -24(%rbp), %rcx movq -8(%rbp), %rax movq %rcx, (%rax) addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl $0, -4(%rbp) movl $5, -8(%rbp) movslq -8(%rbp), %rdi shlq $2, %rdi callq _malloc movq %rax, -16(%rbp) movq -16(%rbp), %rax movl $0, (%rax) movq -16(%rbp), %rax movl $1, 4(%rax) movq -16(%rbp), %rax movl $2, 8(%rax) movq -16(%rbp), %rax movl $3, 12(%rax) movq -16(%rbp), %rax movl $4, 16(%rax) movq -16(%rbp), %rsi leaq L_.str(%rip), %rdi movb $0, %al callq _printf movl -8(%rbp), %esi movl %esi, %eax addl $1, %eax movl %eax, -8(%rbp) leaq -16(%rbp), %rdi callq _razsiri movq -16(%rbp), %rsi leaq L_.str(%rip), %rdi movb $0, %al callq _printf 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), %rax movslq -20(%rbp), %rcx movl (%rax,%rcx,4), %esi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf ## %bb.3: ## in Loop: Header=BB1_1 Depth=1 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB1_1 LBB1_4: xorl %eax, %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Tabela tab je na naslovu %p\n" L_.str.1: ## @.str.1 .asciz "%d\n" .subsections_via_symbols
the_stack_data/94272.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, #48 .cfi_def_cfa_offset 48 str x0, [sp, #40] str w1, [sp, #36] ldr x8, [sp, #40] str x8, [sp, #24] ldr x8, [sp, #40] ldrsw x9, [sp, #36] add x8, x8, x9, lsl #2 str x8, [sp, #16] str wzr, [sp, #12] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #24] ldr x9, [sp, #16] subs x8, x8, x9 cset w8, hs tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #24] add x9, x8, #4 str x9, [sp, #24] ldr w9, [x8] ldr w8, [sp, #12] add w8, w8, w9 str w8, [sp, #12] b LBB0_1 LBB0_3: ldr w0, [sp, #12] add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _run ; -- Begin function run .p2align 2 _run: ; @run .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] add x0, sp, #16 str x0, [sp, #8] ; 8-byte Folded Spill adrp x1, l___const.run.arr@PAGE add x1, x1, l___const.run.arr@PAGEOFF mov x2, #40 bl _memcpy ldr x0, [sp, #8] ; 8-byte Folded Reload mov w1, #10 bl _sum ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: bl ___stack_chk_fail LBB1_2: ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .section __TEXT,__const .p2align 2 ; @__const.run.arr l___const.run.arr: .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 .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _sum ## -- Begin function sum .p2align 4, 0x90 _sum: ## @sum .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) movq -8(%rbp), %rax movq %rax, -24(%rbp) movq -8(%rbp), %rax movslq -12(%rbp), %rcx shlq $2, %rcx addq %rcx, %rax movq %rax, -32(%rbp) movl $0, -36(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movq -24(%rbp), %rax cmpq -32(%rbp), %rax jae LBB0_3 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movq -24(%rbp), %rax movq %rax, %rcx addq $4, %rcx movq %rcx, -24(%rbp) movl (%rax), %eax addl -36(%rbp), %eax movl %eax, -36(%rbp) jmp LBB0_1 LBB0_3: movl -36(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .globl _run ## -- Begin function run .p2align 4, 0x90 _run: ## @run .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) leaq -48(%rbp), %rdi leaq l___const.run.arr(%rip), %rsi movl $40, %edx callq _memcpy leaq -48(%rbp), %rdi movl $10, %esi callq _sum movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB1_2 ## %bb.1: addq $48, %rsp popq %rbp retq LBB1_2: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__const .p2align 4 ## @__const.run.arr l___const.run.arr: .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 .subsections_via_symbols
the_stack_data/415312.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/59513851.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 stur wzr, [x29, #-4] mov w8, #1 stur w8, [x29, #-8] ; kill: def $x8 killed $xzr stur xzr, [x29, #-24] stur wzr, [x29, #-32] str xzr, [sp, #56] str wzr, [sp, #48] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-8] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_10 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf mov x9, sp sub x8, x29, #8 str x8, [x9] adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _scanf ldur w8, [x29, #-8] subs w8, w8, #0 ; kill: def $x8 killed $w8 str x8, [sp, #40] ; 8-byte Folded Spill subs x8, x8, #3 cset w8, hi tbnz w8, #0, LBB0_8 ; %bb.3: ; in Loop: Header=BB0_1 Depth=1 ldr x11, [sp, #40] ; 8-byte Folded Reload adrp x10, lJTI0_0@PAGE add x10, x10, lJTI0_0@PAGEOFF Ltmp0: adr x8, Ltmp0 ldrsw x9, [x10, x11, lsl #2] add x8, x8, x9 br x8 LBB0_4: ; in Loop: Header=BB0_1 Depth=1 adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _printf mov x9, sp sub x8, x29, #12 str x8, [x9] adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _scanf sub x0, x29, #32 str x0, [sp, #32] ; 8-byte Folded Spill ldur w1, [x29, #-32] ldur w2, [x29, #-12] bl _insertNode adrp x0, l_.str.7@PAGE add x0, x0, l_.str.7@PAGEOFF bl _printf ldr x0, [sp, #32] ; 8-byte Folded Reload bl _printList b LBB0_9 LBB0_5: ; in Loop: Header=BB0_1 Depth=1 sub x0, x29, #32 add x1, sp, #48 str x1, [sp, #24] ; 8-byte Folded Spill bl _createQueueFromLinkedList adrp x0, l_.str.8@PAGE add x0, x0, l_.str.8@PAGEOFF bl _printf ldr x0, [sp, #24] ; 8-byte Folded Reload bl _printList b LBB0_9 LBB0_6: ; in Loop: Header=BB0_1 Depth=1 add x0, sp, #48 str x0, [sp, #16] ; 8-byte Folded Spill bl _removeOddValues adrp x0, l_.str.9@PAGE add x0, x0, l_.str.9@PAGEOFF bl _printf ldr x0, [sp, #16] ; 8-byte Folded Reload bl _printList ldr x0, [sp, #16] ; 8-byte Folded Reload bl _removeAllItemsFromQueue sub x0, x29, #32 bl _removeAllItems b LBB0_9 LBB0_7: ; in Loop: Header=BB0_1 Depth=1 add x0, sp, #48 bl _removeAllItemsFromQueue sub x0, x29, #32 bl _removeAllItems b LBB0_9 LBB0_8: ; in Loop: Header=BB0_1 Depth=1 adrp x0, l_.str.10@PAGE add x0, x0, l_.str.10@PAGEOFF bl _printf b LBB0_9 LBB0_9: ; in Loop: Header=BB0_1 Depth=1 b LBB0_1 LBB0_10: mov w0, #0 ldp x29, x30, [sp, #96] ; 16-byte Folded Reload add sp, sp, #112 ret .cfi_endproc .p2align 2 lJTI0_0: .long LBB0_7-Ltmp0 .long LBB0_4-Ltmp0 .long LBB0_5-Ltmp0 .long LBB0_6-Ltmp0 ; -- End function .globl _insertNode ; -- Begin function insertNode .p2align 2 _insertNode: ; @insertNode .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-16] stur w1, [x29, #-20] str w2, [sp, #24] ldur x8, [x29, #-16] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB1_3 b LBB1_1 LBB1_1: ldur w8, [x29, #-20] subs w8, w8, #0 cset w8, lt tbnz w8, #0, LBB1_3 b LBB1_2 LBB1_2: ldur w8, [x29, #-20] ldur x9, [x29, #-16] ldr w9, [x9] add w9, w9, #1 subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB1_4 b LBB1_3 LBB1_3: mov w8, #-1 stur w8, [x29, #-4] b LBB1_14 LBB1_4: ldur x8, [x29, #-16] ldr x8, [x8, #8] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB1_6 b LBB1_5 LBB1_5: ldur w8, [x29, #-20] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB1_9 b LBB1_6 LBB1_6: ldur x8, [x29, #-16] ldr x8, [x8, #8] str x8, [sp, #8] mov x0, #16 bl _malloc ldur x8, [x29, #-16] str x0, [x8, #8] ldur x8, [x29, #-16] ldr x8, [x8, #8] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB1_8 b LBB1_7 LBB1_7: mov w0, #0 bl _exit LBB1_8: ldr w8, [sp, #24] ldur x9, [x29, #-16] ldr x9, [x9, #8] str w8, [x9] ldr x8, [sp, #8] ldur x9, [x29, #-16] ldr x9, [x9, #8] str x8, [x9, #8] ldur x9, [x29, #-16] ldr w8, [x9] add w8, w8, #1 str w8, [x9] stur wzr, [x29, #-4] b LBB1_14 LBB1_9: ldur x0, [x29, #-16] ldur w8, [x29, #-20] subs w1, w8, #1 bl _findNode mov x8, x0 str x8, [sp, #16] subs x8, x0, #0 cset w8, eq tbnz w8, #0, LBB1_13 b LBB1_10 LBB1_10: ldr x8, [sp, #16] ldr x8, [x8, #8] str x8, [sp, #8] mov x0, #16 bl _malloc ldr x8, [sp, #16] str x0, [x8, #8] ldr x8, [sp, #16] ldr x8, [x8, #8] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB1_12 b LBB1_11 LBB1_11: mov w0, #0 bl _exit LBB1_12: ldr w8, [sp, #24] ldr x9, [sp, #16] ldr x9, [x9, #8] str w8, [x9] ldr x8, [sp, #8] ldr x9, [sp, #16] ldr x9, [x9, #8] str x8, [x9, #8] ldur x9, [x29, #-16] ldr w8, [x9] add w8, w8, #1 str w8, [x9] stur wzr, [x29, #-4] b LBB1_14 LBB1_13: mov w8, #-1 stur w8, [x29, #-4] b LBB1_14 LBB1_14: ldur w0, [x29, #-4] ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _printList ; -- Begin function printList .p2align 2 _printList: ; @printList .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] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB2_2 b LBB2_1 LBB2_1: b LBB2_8 LBB2_2: ldur x8, [x29, #-8] ldr x8, [x8, #8] str x8, [sp, #16] ldr x8, [sp, #16] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB2_4 b LBB2_3 LBB2_3: adrp x0, l_.str.11@PAGE add x0, x0, l_.str.11@PAGEOFF bl _printf b LBB2_4 LBB2_4: b LBB2_5 LBB2_5: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #16] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB2_7 b LBB2_6 LBB2_6: ; in Loop: Header=BB2_5 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.12@PAGE add x0, x0, l_.str.12@PAGEOFF bl _printf ldr x8, [sp, #16] ldr x8, [x8, #8] str x8, [sp, #16] b LBB2_5 LBB2_7: adrp x0, l_.str.13@PAGE add x0, x0, l_.str.13@PAGEOFF bl _printf b LBB2_8 LBB2_8: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _createQueueFromLinkedList ; -- Begin function createQueueFromLinkedList .p2align 2 _createQueueFromLinkedList: ; @createQueueFromLinkedList .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #8] str x1, [sp] ldr x0, [sp] bl _removeAllItemsFromQueue b LBB3_1 LBB3_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #8] ldr 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 x0, [sp] ldr x8, [sp, #8] ldr x8, [x8, #8] ldr w1, [x8] bl _enqueue ldr x0, [sp, #8] mov w1, #0 bl _removeNode b LBB3_1 LBB3_3: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _removeOddValues ; -- Begin function removeOddValues .p2align 2 _removeOddValues: ; @removeOddValues .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 w8, [x8] str w8, [sp, #4] b LBB4_1 LBB4_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #4] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB4_5 b LBB4_2 LBB4_2: ; in Loop: Header=BB4_1 Depth=1 ldr x8, [sp, #8] ldr x8, [x8, #8] ldr w8, [x8] 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, LBB4_4 b LBB4_3 LBB4_3: ; in Loop: Header=BB4_1 Depth=1 ldr x0, [sp, #8] ldr x8, [sp, #8] ldr x8, [x8, #8] ldr w1, [x8] bl _enqueue b LBB4_4 LBB4_4: ; in Loop: Header=BB4_1 Depth=1 ldr x0, [sp, #8] bl _dequeue ldr w8, [sp, #4] subs w8, w8, #1 str w8, [sp, #4] b LBB4_1 LBB4_5: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _removeAllItemsFromQueue ; -- Begin function removeAllItemsFromQueue .p2align 2 _removeAllItemsFromQueue: ; @removeAllItemsFromQueue .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #8] ldr x8, [sp, #8] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB5_2 b LBB5_1 LBB5_1: b LBB5_6 LBB5_2: ldr x8, [sp, #8] ldr w8, [x8] str w8, [sp, #4] str wzr, [sp] b LBB5_3 LBB5_3: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp] ldr w9, [sp, #4] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB5_6 b LBB5_4 LBB5_4: ; in Loop: Header=BB5_3 Depth=1 ldr x0, [sp, #8] bl _dequeue b LBB5_5 LBB5_5: ; in Loop: Header=BB5_3 Depth=1 ldr w8, [sp] add w8, w8, #1 str w8, [sp] b LBB5_3 LBB5_6: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _removeAllItems ; -- Begin function removeAllItems .p2align 2 _removeAllItems: ; @removeAllItems .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] ldur x8, [x29, #-8] ldr x8, [x8, #8] str x8, [sp, #16] b LBB6_1 LBB6_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #16] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB6_3 b LBB6_2 LBB6_2: ; in Loop: Header=BB6_1 Depth=1 ldr x8, [sp, #16] ldr x8, [x8, #8] str x8, [sp, #8] ldr x0, [sp, #16] bl _free ldr x8, [sp, #8] str x8, [sp, #16] b LBB6_1 LBB6_3: ldur x8, [x29, #-8] ; kill: def $x9 killed $xzr str xzr, [x8, #8] ldur x8, [x29, #-8] str wzr, [x8] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _enqueue ; -- Begin function enqueue .p2align 2 _enqueue: ; @enqueue .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 x0, [sp, #8] ldr x8, [sp, #8] ldr w1, [x8] ldr w2, [sp, #4] bl _insertNode ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _removeNode ; -- Begin function removeNode .p2align 2 _removeNode: ; @removeNode .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-16] stur w1, [x29, #-20] ldur x8, [x29, #-16] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB8_3 b LBB8_1 LBB8_1: ldur w8, [x29, #-20] subs w8, w8, #0 cset w8, lt tbnz w8, #0, LBB8_3 b LBB8_2 LBB8_2: ldur w8, [x29, #-20] ldur x9, [x29, #-16] ldr w9, [x9] subs w8, w8, w9 cset w8, lt tbnz w8, #0, LBB8_4 b LBB8_3 LBB8_3: mov w8, #-1 stur w8, [x29, #-4] b LBB8_11 LBB8_4: ldur w8, [x29, #-20] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB8_6 b LBB8_5 LBB8_5: ldur x8, [x29, #-16] ldr x8, [x8, #8] ldr x8, [x8, #8] str x8, [sp, #8] ldur x8, [x29, #-16] ldr x0, [x8, #8] bl _free ldr x8, [sp, #8] ldur x9, [x29, #-16] str x8, [x9, #8] ldur x9, [x29, #-16] ldr w8, [x9] subs w8, w8, #1 str w8, [x9] stur wzr, [x29, #-4] b LBB8_11 LBB8_6: ldur x0, [x29, #-16] ldur w8, [x29, #-20] subs w1, w8, #1 bl _findNode mov x8, x0 str x8, [sp, #16] subs x8, x0, #0 cset w8, eq tbnz w8, #0, LBB8_10 b LBB8_7 LBB8_7: ldr x8, [sp, #16] ldr x8, [x8, #8] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB8_9 b LBB8_8 LBB8_8: mov w8, #-1 stur w8, [x29, #-4] b LBB8_11 LBB8_9: ldr x8, [sp, #16] ldr x8, [x8, #8] str x8, [sp, #8] ldr x8, [sp, #8] ldr x8, [x8, #8] ldr x9, [sp, #16] str x8, [x9, #8] ldr x0, [sp, #8] bl _free ldur x9, [x29, #-16] ldr w8, [x9] subs w8, w8, #1 str w8, [x9] stur wzr, [x29, #-4] b LBB8_11 LBB8_10: mov w8, #-1 stur w8, [x29, #-4] b LBB8_11 LBB8_11: ldur w0, [x29, #-4] ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _dequeue ; -- Begin function dequeue .p2align 2 _dequeue: ; @dequeue .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 x0, [sp, #16] bl _isEmptyQueue subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB9_2 b LBB9_1 LBB9_1: ldr x8, [sp, #16] ldr x8, [x8, #8] ldr w8, [x8] str w8, [sp, #12] ldr x0, [sp, #16] mov w1, #0 bl _removeNode ldr w8, [sp, #12] stur w8, [x29, #-4] b LBB9_3 LBB9_2: mov w8, #-1 stur w8, [x29, #-4] b LBB9_3 LBB9_3: ldur w0, [x29, #-4] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _isEmptyQueue ; -- Begin function isEmptyQueue .p2align 2 _isEmptyQueue: ; @isEmptyQueue .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp] ldr x8, [sp] ldr w8, [x8] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB10_2 b LBB10_1 LBB10_1: mov w8, #1 str w8, [sp, #12] b LBB10_3 LBB10_2: str wzr, [sp, #12] b LBB10_3 LBB10_3: ldr w0, [sp, #12] add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _findNode ; -- Begin function findNode .p2align 2 _findNode: ; @findNode .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, LBB11_3 b LBB11_1 LBB11_1: ldr w8, [sp, #12] subs w8, w8, #0 cset w8, lt tbnz w8, #0, LBB11_3 b LBB11_2 LBB11_2: ldr w8, [sp, #12] ldr x9, [sp, #16] ldr w9, [x9] subs w8, w8, w9 cset w8, lt tbnz w8, #0, LBB11_4 b LBB11_3 LBB11_3: ; kill: def $x8 killed $xzr str xzr, [sp, #24] b LBB11_13 LBB11_4: ldr x8, [sp, #16] ldr x8, [x8, #8] str x8, [sp] ldr x8, [sp] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB11_6 b LBB11_5 LBB11_5: ldr w8, [sp, #12] subs w8, w8, #0 cset w8, ge tbnz w8, #0, LBB11_7 b LBB11_6 LBB11_6: ; kill: def $x8 killed $xzr str xzr, [sp, #24] b LBB11_13 LBB11_7: b LBB11_8 LBB11_8: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #12] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB11_12 b LBB11_9 LBB11_9: ; in Loop: Header=BB11_8 Depth=1 ldr x8, [sp] ldr x8, [x8, #8] str x8, [sp] ldr x8, [sp] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB11_11 b LBB11_10 LBB11_10: ; kill: def $x8 killed $xzr str xzr, [sp, #24] b LBB11_13 LBB11_11: ; in Loop: Header=BB11_8 Depth=1 ldr w8, [sp, #12] subs w8, w8, #1 str w8, [sp, #12] b LBB11_8 LBB11_12: ldr x8, [sp] str x8, [sp, #24] b LBB11_13 LBB11_13: ldr x0, [sp, #24] add sp, sp, #32 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "1: Insert an integer into the linked list:\n" l_.str.1: ; @.str.1 .asciz "2: Create the queue from the linked list:\n" l_.str.2: ; @.str.2 .asciz "3: Remove odd numbers from the queue:\n" l_.str.3: ; @.str.3 .asciz "0: Quit:\n" l_.str.4: ; @.str.4 .asciz "Please input your choice(1/2/3/0): " l_.str.5: ; @.str.5 .asciz "%d" l_.str.6: ; @.str.6 .asciz "Input an integer that you want insert into the List: " l_.str.7: ; @.str.7 .asciz "The resulting linked list is: " l_.str.8: ; @.str.8 .asciz "The resulting queue is: " l_.str.9: ; @.str.9 .asciz "The resulting queue after removing odd integers is: " l_.str.10: ; @.str.10 .asciz "Choice unknown;\n" l_.str.11: ; @.str.11 .asciz "Empty" l_.str.12: ; @.str.12 .asciz "%d " l_.str.13: ; @.str.13 .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 $64, %rsp movl $0, -4(%rbp) movl $1, -8(%rbp) movq $0, -24(%rbp) movl $0, -32(%rbp) movq $0, -40(%rbp) movl $0, -48(%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 movb $0, %al callq _printf leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf LBB0_1: ## =>This Inner Loop Header: Depth=1 cmpl $0, -8(%rbp) je LBB0_9 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 leaq L_.str.4(%rip), %rdi xorl %eax, %eax ## kill: def $al killed $al killed $eax movb %al, -57(%rbp) ## 1-byte Spill callq _printf ## kill: def $ecx killed $eax movb -57(%rbp), %al ## 1-byte Reload leaq L_.str.5(%rip), %rdi leaq -8(%rbp), %rsi callq _scanf movl -8(%rbp), %eax ## kill: def $rax killed $eax movq %rax, -56(%rbp) ## 8-byte Spill subq $3, %rax ja LBB0_7 ## %bb.10: ## in Loop: Header=BB0_1 Depth=1 movq -56(%rbp), %rax ## 8-byte Reload leaq LJTI0_0(%rip), %rcx movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax LBB0_3: ## in Loop: Header=BB0_1 Depth=1 leaq L_.str.6(%rip), %rdi movb $0, %al callq _printf leaq L_.str.5(%rip), %rdi leaq -12(%rbp), %rsi movb $0, %al callq _scanf movl -32(%rbp), %esi movl -12(%rbp), %edx leaq -32(%rbp), %rdi callq _insertNode leaq L_.str.7(%rip), %rdi movb $0, %al callq _printf leaq -32(%rbp), %rdi callq _printList jmp LBB0_8 LBB0_4: ## in Loop: Header=BB0_1 Depth=1 leaq -32(%rbp), %rdi leaq -48(%rbp), %rsi callq _createQueueFromLinkedList leaq L_.str.8(%rip), %rdi movb $0, %al callq _printf leaq -48(%rbp), %rdi callq _printList jmp LBB0_8 LBB0_5: ## in Loop: Header=BB0_1 Depth=1 leaq -48(%rbp), %rdi callq _removeOddValues leaq L_.str.9(%rip), %rdi movb $0, %al callq _printf leaq -48(%rbp), %rdi callq _printList leaq -48(%rbp), %rdi callq _removeAllItemsFromQueue leaq -32(%rbp), %rdi callq _removeAllItems jmp LBB0_8 LBB0_6: ## in Loop: Header=BB0_1 Depth=1 leaq -48(%rbp), %rdi callq _removeAllItemsFromQueue leaq -32(%rbp), %rdi callq _removeAllItems jmp LBB0_8 LBB0_7: ## in Loop: Header=BB0_1 Depth=1 leaq L_.str.10(%rip), %rdi movb $0, %al callq _printf LBB0_8: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_1 LBB0_9: xorl %eax, %eax addq $64, %rsp popq %rbp retq .cfi_endproc .p2align 2, 0x90 .data_region jt32 .set L0_0_set_6, LBB0_6-LJTI0_0 .set L0_0_set_3, LBB0_3-LJTI0_0 .set L0_0_set_4, LBB0_4-LJTI0_0 .set L0_0_set_5, LBB0_5-LJTI0_0 LJTI0_0: .long L0_0_set_6 .long L0_0_set_3 .long L0_0_set_4 .long L0_0_set_5 .end_data_region ## -- End function .globl _insertNode ## -- Begin function insertNode .p2align 4, 0x90 _insertNode: ## @insertNode .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movq %rdi, -16(%rbp) movl %esi, -20(%rbp) movl %edx, -24(%rbp) cmpq $0, -16(%rbp) je LBB1_3 ## %bb.1: cmpl $0, -20(%rbp) jl LBB1_3 ## %bb.2: movl -20(%rbp), %eax movq -16(%rbp), %rcx movl (%rcx), %ecx addl $1, %ecx cmpl %ecx, %eax jle LBB1_4 LBB1_3: movl $-1, -4(%rbp) jmp LBB1_14 LBB1_4: movq -16(%rbp), %rax cmpq $0, 8(%rax) je LBB1_6 ## %bb.5: cmpl $0, -20(%rbp) jne LBB1_9 LBB1_6: movq -16(%rbp), %rax movq 8(%rax), %rax movq %rax, -40(%rbp) movl $16, %edi callq _malloc movq %rax, %rcx movq -16(%rbp), %rax movq %rcx, 8(%rax) movq -16(%rbp), %rax cmpq $0, 8(%rax) jne LBB1_8 ## %bb.7: xorl %edi, %edi callq _exit LBB1_8: movl -24(%rbp), %ecx movq -16(%rbp), %rax movq 8(%rax), %rax movl %ecx, (%rax) movq -40(%rbp), %rcx movq -16(%rbp), %rax movq 8(%rax), %rax movq %rcx, 8(%rax) movq -16(%rbp), %rax movl (%rax), %ecx addl $1, %ecx movl %ecx, (%rax) movl $0, -4(%rbp) jmp LBB1_14 LBB1_9: movq -16(%rbp), %rdi movl -20(%rbp), %esi subl $1, %esi callq _findNode movq %rax, -32(%rbp) cmpq $0, %rax je LBB1_13 ## %bb.10: movq -32(%rbp), %rax movq 8(%rax), %rax movq %rax, -40(%rbp) movl $16, %edi callq _malloc movq %rax, %rcx movq -32(%rbp), %rax movq %rcx, 8(%rax) movq -32(%rbp), %rax cmpq $0, 8(%rax) jne LBB1_12 ## %bb.11: xorl %edi, %edi callq _exit LBB1_12: movl -24(%rbp), %ecx movq -32(%rbp), %rax movq 8(%rax), %rax movl %ecx, (%rax) movq -40(%rbp), %rcx movq -32(%rbp), %rax movq 8(%rax), %rax movq %rcx, 8(%rax) movq -16(%rbp), %rax movl (%rax), %ecx addl $1, %ecx movl %ecx, (%rax) movl $0, -4(%rbp) jmp LBB1_14 LBB1_13: movl $-1, -4(%rbp) LBB1_14: movl -4(%rbp), %eax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _printList ## -- Begin function printList .p2align 4, 0x90 _printList: ## @printList .cfi_startproc ## %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_8 LBB2_2: movq -8(%rbp), %rax movq 8(%rax), %rax movq %rax, -16(%rbp) cmpq $0, -16(%rbp) jne LBB2_4 ## %bb.3: leaq L_.str.11(%rip), %rdi movb $0, %al callq _printf LBB2_4: jmp LBB2_5 LBB2_5: ## =>This Inner Loop Header: Depth=1 cmpq $0, -16(%rbp) je LBB2_7 ## %bb.6: ## in Loop: Header=BB2_5 Depth=1 movq -16(%rbp), %rax movl (%rax), %esi leaq L_.str.12(%rip), %rdi movb $0, %al callq _printf movq -16(%rbp), %rax movq 8(%rax), %rax movq %rax, -16(%rbp) jmp LBB2_5 LBB2_7: leaq L_.str.13(%rip), %rdi movb $0, %al callq _printf LBB2_8: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _createQueueFromLinkedList ## -- Begin function createQueueFromLinkedList .p2align 4, 0x90 _createQueueFromLinkedList: ## @createQueueFromLinkedList .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) movq -16(%rbp), %rdi callq _removeAllItemsFromQueue LBB3_1: ## =>This Inner Loop Header: Depth=1 movq -8(%rbp), %rax cmpl $0, (%rax) je LBB3_3 ## %bb.2: ## in Loop: Header=BB3_1 Depth=1 movq -16(%rbp), %rdi movq -8(%rbp), %rax movq 8(%rax), %rax movl (%rax), %esi callq _enqueue movq -8(%rbp), %rdi xorl %esi, %esi callq _removeNode jmp LBB3_1 LBB3_3: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _removeOddValues ## -- Begin function removeOddValues .p2align 4, 0x90 _removeOddValues: ## @removeOddValues .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) movq -8(%rbp), %rax movl (%rax), %eax movl %eax, -12(%rbp) LBB4_1: ## =>This Inner Loop Header: Depth=1 cmpl $0, -12(%rbp) je LBB4_5 ## %bb.2: ## in Loop: Header=BB4_1 Depth=1 movq -8(%rbp), %rax movq 8(%rax), %rax movl (%rax), %eax movl $2, %ecx cltd idivl %ecx cmpl $0, %edx jne LBB4_4 ## %bb.3: ## in Loop: Header=BB4_1 Depth=1 movq -8(%rbp), %rdi movq -8(%rbp), %rax movq 8(%rax), %rax movl (%rax), %esi callq _enqueue LBB4_4: ## in Loop: Header=BB4_1 Depth=1 movq -8(%rbp), %rdi callq _dequeue movl -12(%rbp), %eax addl $-1, %eax movl %eax, -12(%rbp) jmp LBB4_1 LBB4_5: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _removeAllItemsFromQueue ## -- Begin function removeAllItemsFromQueue .p2align 4, 0x90 _removeAllItemsFromQueue: ## @removeAllItemsFromQueue .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) cmpq $0, -8(%rbp) jne LBB5_2 ## %bb.1: jmp LBB5_6 LBB5_2: movq -8(%rbp), %rax movl (%rax), %eax movl %eax, -12(%rbp) movl $0, -16(%rbp) LBB5_3: ## =>This Inner Loop Header: Depth=1 movl -16(%rbp), %eax cmpl -12(%rbp), %eax jge LBB5_6 ## %bb.4: ## in Loop: Header=BB5_3 Depth=1 movq -8(%rbp), %rdi callq _dequeue ## %bb.5: ## in Loop: Header=BB5_3 Depth=1 movl -16(%rbp), %eax addl $1, %eax movl %eax, -16(%rbp) jmp LBB5_3 LBB5_6: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _removeAllItems ## -- Begin function removeAllItems .p2align 4, 0x90 _removeAllItems: ## @removeAllItems .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movq -8(%rbp), %rax movq 8(%rax), %rax movq %rax, -16(%rbp) LBB6_1: ## =>This Inner Loop Header: Depth=1 cmpq $0, -16(%rbp) je LBB6_3 ## %bb.2: ## in Loop: Header=BB6_1 Depth=1 movq -16(%rbp), %rax movq 8(%rax), %rax movq %rax, -24(%rbp) movq -16(%rbp), %rdi callq _free movq -24(%rbp), %rax movq %rax, -16(%rbp) jmp LBB6_1 LBB6_3: movq -8(%rbp), %rax movq $0, 8(%rax) movq -8(%rbp), %rax movl $0, (%rax) addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _enqueue ## -- Begin function enqueue .p2align 4, 0x90 _enqueue: ## @enqueue .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) movq -8(%rbp), %rdi movq -8(%rbp), %rax movl (%rax), %esi movl -12(%rbp), %edx callq _insertNode addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _removeNode ## -- Begin function removeNode .p2align 4, 0x90 _removeNode: ## @removeNode .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movq %rdi, -16(%rbp) movl %esi, -20(%rbp) cmpq $0, -16(%rbp) je LBB8_3 ## %bb.1: cmpl $0, -20(%rbp) jl LBB8_3 ## %bb.2: movl -20(%rbp), %eax movq -16(%rbp), %rcx cmpl (%rcx), %eax jl LBB8_4 LBB8_3: movl $-1, -4(%rbp) jmp LBB8_11 LBB8_4: cmpl $0, -20(%rbp) jne LBB8_6 ## %bb.5: movq -16(%rbp), %rax movq 8(%rax), %rax movq 8(%rax), %rax movq %rax, -40(%rbp) movq -16(%rbp), %rax movq 8(%rax), %rdi callq _free movq -40(%rbp), %rcx movq -16(%rbp), %rax movq %rcx, 8(%rax) movq -16(%rbp), %rax movl (%rax), %ecx addl $-1, %ecx movl %ecx, (%rax) movl $0, -4(%rbp) jmp LBB8_11 LBB8_6: movq -16(%rbp), %rdi movl -20(%rbp), %esi subl $1, %esi callq _findNode movq %rax, -32(%rbp) cmpq $0, %rax je LBB8_10 ## %bb.7: movq -32(%rbp), %rax cmpq $0, 8(%rax) jne LBB8_9 ## %bb.8: movl $-1, -4(%rbp) jmp LBB8_11 LBB8_9: movq -32(%rbp), %rax movq 8(%rax), %rax movq %rax, -40(%rbp) movq -40(%rbp), %rax movq 8(%rax), %rcx movq -32(%rbp), %rax movq %rcx, 8(%rax) movq -40(%rbp), %rdi callq _free movq -16(%rbp), %rax movl (%rax), %ecx addl $-1, %ecx movl %ecx, (%rax) movl $0, -4(%rbp) jmp LBB8_11 LBB8_10: movl $-1, -4(%rbp) LBB8_11: movl -4(%rbp), %eax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _dequeue ## -- Begin function dequeue .p2align 4, 0x90 _dequeue: ## @dequeue .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -16(%rbp) movq -16(%rbp), %rdi callq _isEmptyQueue cmpl $0, %eax jne LBB9_2 ## %bb.1: movq -16(%rbp), %rax movq 8(%rax), %rax movl (%rax), %eax movl %eax, -20(%rbp) movq -16(%rbp), %rdi xorl %esi, %esi callq _removeNode movl -20(%rbp), %eax movl %eax, -4(%rbp) jmp LBB9_3 LBB9_2: movl $-1, -4(%rbp) LBB9_3: movl -4(%rbp), %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _isEmptyQueue ## -- Begin function isEmptyQueue .p2align 4, 0x90 _isEmptyQueue: ## @isEmptyQueue .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -16(%rbp) movq -16(%rbp), %rax cmpl $0, (%rax) jne LBB10_2 ## %bb.1: movl $1, -4(%rbp) jmp LBB10_3 LBB10_2: movl $0, -4(%rbp) LBB10_3: movl -4(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .globl _findNode ## -- Begin function findNode .p2align 4, 0x90 _findNode: ## @findNode .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 LBB11_3 ## %bb.1: cmpl $0, -20(%rbp) jl LBB11_3 ## %bb.2: movl -20(%rbp), %eax movq -16(%rbp), %rcx cmpl (%rcx), %eax jl LBB11_4 LBB11_3: movq $0, -8(%rbp) jmp LBB11_13 LBB11_4: movq -16(%rbp), %rax movq 8(%rax), %rax movq %rax, -32(%rbp) cmpq $0, -32(%rbp) je LBB11_6 ## %bb.5: cmpl $0, -20(%rbp) jge LBB11_7 LBB11_6: movq $0, -8(%rbp) jmp LBB11_13 LBB11_7: jmp LBB11_8 LBB11_8: ## =>This Inner Loop Header: Depth=1 cmpl $0, -20(%rbp) jle LBB11_12 ## %bb.9: ## in Loop: Header=BB11_8 Depth=1 movq -32(%rbp), %rax movq 8(%rax), %rax movq %rax, -32(%rbp) cmpq $0, -32(%rbp) jne LBB11_11 ## %bb.10: movq $0, -8(%rbp) jmp LBB11_13 LBB11_11: ## in Loop: Header=BB11_8 Depth=1 movl -20(%rbp), %eax addl $-1, %eax movl %eax, -20(%rbp) jmp LBB11_8 LBB11_12: movq -32(%rbp), %rax movq %rax, -8(%rbp) LBB11_13: movq -8(%rbp), %rax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "1: Insert an integer into the linked list:\n" L_.str.1: ## @.str.1 .asciz "2: Create the queue from the linked list:\n" L_.str.2: ## @.str.2 .asciz "3: Remove odd numbers from the queue:\n" L_.str.3: ## @.str.3 .asciz "0: Quit:\n" L_.str.4: ## @.str.4 .asciz "Please input your choice(1/2/3/0): " L_.str.5: ## @.str.5 .asciz "%d" L_.str.6: ## @.str.6 .asciz "Input an integer that you want insert into the List: " L_.str.7: ## @.str.7 .asciz "The resulting linked list is: " L_.str.8: ## @.str.8 .asciz "The resulting queue is: " L_.str.9: ## @.str.9 .asciz "The resulting queue after removing odd integers is: " L_.str.10: ## @.str.10 .asciz "Choice unknown;\n" L_.str.11: ## @.str.11 .asciz "Empty" L_.str.12: ## @.str.12 .asciz "%d " L_.str.13: ## @.str.13 .asciz "\n" .subsections_via_symbols
the_stack_data/220454453.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #0 stur w8, [x29, #-12] ; 4-byte Folded Spill stur wzr, [x29, #-4] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov x9, sp sub x8, x29, #8 str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf ldur w8, [x29, #-8] mov w9, #2 sdiv w10, w8, w9 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 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 .globl _hello ; -- Begin function hello .p2align 2 _hello: ; @hello .cfi_startproc ; %bb.0: ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "hello world\n" l_.str.1: ; @.str.1 .asciz "%i" l_.str.2: ; @.str.2 .asciz "%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 -8(%rbp), %rsi movb $0, %al callq _scanf movl -8(%rbp), %eax movl $2, %ecx cltd idivl %ecx movl %eax, %esi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _hello ## -- Begin function hello .p2align 4, 0x90 _hello: ## @hello .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 .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "hello world\n" L_.str.1: ## @.str.1 .asciz "%i" L_.str.2: ## @.str.2 .asciz "%i\n" .subsections_via_symbols
the_stack_data/156393078.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, #28] ; 4-byte Folded Spill stur wzr, [x29, #-4] mov x9, sp mov x8, #2 str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov x9, sp mov x8, #8 str x8, [sp, #16] ; 8-byte Folded Spill str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf ldr x8, [sp, #16] ; 8-byte Folded Reload mov x9, sp str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf ldr x8, [sp, #16] ; 8-byte Folded Reload mov x9, sp str x8, [x9] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf ldr w0, [sp, #28] ; 4-byte Folded Reload ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "size of short = %ld bytes\n" l_.str.1: ; @.str.1 .asciz "size of long = %ld bytes\n" l_.str.2: ; @.str.2 .asciz "size of long long = %ld bytes\n" l_.str.3: ; @.str.3 .asciz "size of long double = %ld bytes\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movl $0, -4(%rbp) leaq L_.str(%rip), %rdi movl $2, %esi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi movl $8, %esi movb $0, %al callq _printf leaq L_.str.2(%rip), %rdi movl $8, %esi movb $0, %al callq _printf leaq L_.str.3(%rip), %rdi movl $16, %esi movb $0, %al callq _printf xorl %eax, %eax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "size of short = %ld bytes\n" L_.str.1: ## @.str.1 .asciz "size of long = %ld bytes\n" L_.str.2: ## @.str.2 .asciz "size of long long = %ld bytes\n" L_.str.3: ## @.str.3 .asciz "size of long double = %ld bytes\n" .subsections_via_symbols
the_stack_data/53072.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/220456900.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _my_add ; -- Begin function my_add .p2align 2 _my_add: ; @my_add .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 str x0, [sp, #40] add x9, sp, #32 add x8, sp, #48 str x8, [x9] str xzr, [sp, #24] str xzr, [sp, #16] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #16] ldr x9, [sp, #40] subs x8, x8, x9 cset w8, hs tbnz w8, #0, LBB0_4 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldr x9, [sp, #32] ldr x8, [x9] add x9, x9, #8 str x9, [sp, #32] str x8, [sp] ldr x8, [sp] str x8, [sp, #8] ldr x9, [sp, #8] ldr x8, [sp, #24] add x8, x8, x9 str x8, [sp, #24] b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #16] add x8, x8, #1 str x8, [sp, #16] b LBB0_1 LBB0_4: ldr x0, [sp, #24] add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _my_add2 ; -- Begin function my_add2 .p2align 2 _my_add2: ; @my_add2 .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, #24] add x9, sp, #16 add x8, sp, #32 str x8, [x9] str wzr, [sp, #12] str wzr, [sp, #8] b LBB1_1 LBB1_1: ; =>This Inner Loop Header: Depth=1 ldrsw x8, [sp, #8] ldr x9, [sp, #24] 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 x9, [sp, #16] ldr w8, [x9] add x9, x9, #8 str x9, [sp, #16] str w8, [sp] ldr w8, [sp] str w8, [sp, #4] ldr w9, [sp, #4] ldr w8, [sp, #12] add w8, w8, w9 str w8, [sp, #12] b LBB1_3 LBB1_3: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #8] add w8, w8, #1 str w8, [sp, #8] b LBB1_1 LBB1_4: ldr w0, [sp, #12] add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _update_static ; -- Begin function update_static .p2align 2 _update_static: ; @update_static .cfi_startproc ; %bb.0: adrp x9, _S@PAGE ldr w8, [x9, _S@PAGEOFF] add w8, w8, #1 str w8, [x9, _S@PAGEOFF] ret .cfi_endproc ; -- End function .globl _takes_int ; -- Begin function takes_int .p2align 2 _takes_int: ; @takes_int .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #12] ldr w8, [sp, #12] add w0, w8, #2 add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _takes_ptr ; -- Begin function takes_ptr .p2align 2 _takes_ptr: ; @takes_ptr .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] ldr x8, [sp, #8] ldr w8, [x8] add w0, w8, #2 add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _takes_ptr_option ; -- Begin function takes_ptr_option .p2align 2 _takes_ptr_option: ; @takes_ptr_option .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp] ldr x8, [sp] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB5_2 b LBB5_1 LBB5_1: ldr x8, [sp] ldr w8, [x8] subs w8, w8, #1 str w8, [sp, #12] b LBB5_3 LBB5_2: str wzr, [sp, #12] b LBB5_3 LBB5_3: ldr w0, [sp, #12] add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _mutates_ptr ; -- Begin function mutates_ptr .p2align 2 _mutates_ptr: ; @mutates_ptr .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] ldr x9, [sp, #8] ldr w8, [x9] subs w8, w8, #1 str w8, [x9] add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _name_in_c ; -- Begin function name_in_c .p2align 2 _name_in_c: ; @name_in_c .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #12] ldr w8, [sp, #12] add w0, w8, #2 add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _takes_struct ; -- Begin function takes_struct .p2align 2 _takes_struct: ; @takes_struct .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] ldr w8, [sp, #8] ldrb w9, [sp, #12] add w0, w8, w9 add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _takes_struct_ptr ; -- Begin function takes_struct_ptr .p2align 2 _takes_struct_ptr: ; @takes_struct_ptr .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] ldr x8, [sp, #8] ldr w8, [x8] ldr x9, [sp, #8] ldrb w9, [x9, #4] add w0, w8, w9 add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _takes_struct2 ; -- Begin function takes_struct2 .p2align 2 _takes_struct2: ; @takes_struct2 .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] str x0, [sp, #24] str x1, [sp, #32] ldr x8, [sp, #24] str x8, [sp, #8] ldr w8, [sp, #32] str w8, [sp, #16] ldr w8, [sp, #8] ldr w9, [sp, #16] add w8, w8, w9 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, LBB10_2 b LBB10_1 LBB10_1: bl ___stack_chk_fail LBB10_2: ldr w0, [sp, #4] ; 4-byte Folded Reload ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _takes_struct_ptr2 ; -- Begin function takes_struct_ptr2 .p2align 2 _takes_struct_ptr2: ; @takes_struct_ptr2 .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] ldr x8, [sp, #8] ldr w8, [x8] ldr x9, [sp, #8] ldrb w9, [x9, #4] add w0, w8, w9 add sp, sp, #16 ret .cfi_endproc ; -- End function .section __DATA,__data .globl _S ; @S .p2align 2 _S: .long 12 ; 0xc .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _my_add ## -- Begin function my_add .p2align 4, 0x90 _my_add: ## @my_add .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_11 ## %bb.10: 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_11: 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 $0, -48(%rbp) movq $0, -56(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movq -56(%rbp), %rax cmpq -40(%rbp), %rax jae LBB0_7 ## %bb.2: ## in Loop: Header=BB0_1 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_4 ## %bb.3: ## in Loop: Header=BB0_1 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_5 LBB0_4: ## in Loop: Header=BB0_1 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_5: ## in Loop: Header=BB0_1 Depth=1 movq -264(%rbp), %rax ## 8-byte Reload movq (%rax), %rax movq %rax, -64(%rbp) movq -64(%rbp), %rax addq -48(%rbp), %rax movq %rax, -48(%rbp) ## %bb.6: ## in Loop: Header=BB0_1 Depth=1 movq -56(%rbp), %rax addq $1, %rax movq %rax, -56(%rbp) jmp LBB0_1 LBB0_7: leaq -32(%rbp), %rax movq -48(%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_9 ## %bb.8: movq -272(%rbp), %rax ## 8-byte Reload addq $272, %rsp ## imm = 0x110 popq %rbp retq LBB0_9: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _my_add2 ## -- Begin function my_add2 .p2align 4, 0x90 _my_add2: ## @my_add2 .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 LBB1_11 ## %bb.10: 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) LBB1_11: 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) movl $0, -44(%rbp) movl $0, -48(%rbp) LBB1_1: ## =>This Inner Loop Header: Depth=1 movslq -48(%rbp), %rax cmpq -40(%rbp), %rax jae LBB1_7 ## %bb.2: ## in Loop: Header=BB1_1 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 LBB1_4 ## %bb.3: ## in Loop: Header=BB1_1 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 LBB1_5 LBB1_4: ## in Loop: Header=BB1_1 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 LBB1_5: ## in Loop: Header=BB1_1 Depth=1 movq -264(%rbp), %rax ## 8-byte Reload movl (%rax), %eax movl %eax, -52(%rbp) movl -52(%rbp), %eax addl -44(%rbp), %eax movl %eax, -44(%rbp) ## %bb.6: ## in Loop: Header=BB1_1 Depth=1 movl -48(%rbp), %eax addl $1, %eax movl %eax, -48(%rbp) jmp LBB1_1 LBB1_7: leaq -32(%rbp), %rax movl -44(%rbp), %eax movl %eax, -268(%rbp) ## 4-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB1_9 ## %bb.8: movl -268(%rbp), %eax ## 4-byte Reload addq $272, %rsp ## imm = 0x110 popq %rbp retq LBB1_9: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _update_static ## -- Begin function update_static .p2align 4, 0x90 _update_static: ## @update_static .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl _S(%rip), %eax addl $1, %eax movl %eax, _S(%rip) popq %rbp retq .cfi_endproc ## -- End function .globl _takes_int ## -- Begin function takes_int .p2align 4, 0x90 _takes_int: ## @takes_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 -4(%rbp), %eax addl $2, %eax popq %rbp retq .cfi_endproc ## -- End function .globl _takes_ptr ## -- Begin function takes_ptr .p2align 4, 0x90 _takes_ptr: ## @takes_ptr .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) movq -8(%rbp), %rax movl (%rax), %eax addl $2, %eax popq %rbp retq .cfi_endproc ## -- End function .globl _takes_ptr_option ## -- Begin function takes_ptr_option .p2align 4, 0x90 _takes_ptr_option: ## @takes_ptr_option .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) cmpq $0, -16(%rbp) je LBB5_2 ## %bb.1: movq -16(%rbp), %rax movl (%rax), %eax subl $1, %eax movl %eax, -4(%rbp) jmp LBB5_3 LBB5_2: movl $0, -4(%rbp) LBB5_3: movl -4(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .globl _mutates_ptr ## -- Begin function mutates_ptr .p2align 4, 0x90 _mutates_ptr: ## @mutates_ptr .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) movq -8(%rbp), %rax movl (%rax), %ecx subl $1, %ecx movl %ecx, (%rax) popq %rbp retq .cfi_endproc ## -- End function .globl _name_in_c ## -- Begin function name_in_c .p2align 4, 0x90 _name_in_c: ## @name_in_c .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 addl $2, %eax popq %rbp retq .cfi_endproc ## -- End function .globl _takes_struct ## -- Begin function takes_struct .p2align 4, 0x90 _takes_struct: ## @takes_struct .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 -8(%rbp), %eax movzbl -4(%rbp), %ecx addl %ecx, %eax popq %rbp retq .cfi_endproc ## -- End function .globl _takes_struct_ptr ## -- Begin function takes_struct_ptr .p2align 4, 0x90 _takes_struct_ptr: ## @takes_struct_ptr .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) movq -8(%rbp), %rax movl (%rax), %eax movq -8(%rbp), %rcx movzbl 4(%rcx), %ecx addl %ecx, %eax popq %rbp retq .cfi_endproc ## -- End function .globl _takes_struct2 ## -- Begin function takes_struct2 .p2align 4, 0x90 _takes_struct2: ## @takes_struct2 .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, -32(%rbp) movl %esi, -24(%rbp) movq -32(%rbp), %rax movq %rax, -16(%rbp) movl -24(%rbp), %eax movl %eax, -8(%rbp) movl -16(%rbp), %eax addl -8(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .globl _takes_struct_ptr2 ## -- Begin function takes_struct_ptr2 .p2align 4, 0x90 _takes_struct_ptr2: ## @takes_struct_ptr2 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) movq -8(%rbp), %rax movl (%rax), %eax movq -8(%rbp), %rcx movzbl 4(%rcx), %ecx addl %ecx, %eax popq %rbp retq .cfi_endproc ## -- End function .section __DATA,__data .globl _S ## @S .p2align 2 _S: .long 12 ## 0xc .subsections_via_symbols
the_stack_data/179830671.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _swap ; -- Begin function swap .p2align 2 _swap: ; @swap .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, #24] str x1, [sp, #16] ldr x8, [sp, #24] ldr w8, [x8] str w8, [sp, #12] ldr x8, [sp, #16] ldr w8, [x8] ldr x9, [sp, #24] str w8, [x9] ldr w8, [sp, #12] ldr x9, [sp, #16] str w8, [x9] add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _partition ; -- Begin function partition .p2align 2 _partition: ; @partition .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] stur w1, [x29, #-12] str w2, [sp, #16] ldur x8, [x29, #-8] ldursw x9, [x29, #-12] ldr w8, [x8, x9, lsl #2] str w8, [sp, #12] ldur w8, [x29, #-12] str w8, [sp, #8] ldr w8, [sp, #16] str w8, [sp, #4] b LBB1_1 LBB1_1: ; =>This Loop Header: Depth=1 ; Child Loop BB1_3 Depth 2 ; Child Loop BB1_6 Depth 2 ldr w8, [sp, #8] ldr w9, [sp, #4] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_11 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 b LBB1_3 LBB1_3: ; Parent Loop BB1_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldur x8, [x29, #-8] ldrsw x9, [sp, #8] ldr w8, [x8, x9, lsl #2] ldr w9, [sp, #12] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB1_5 b LBB1_4 LBB1_4: ; in Loop: Header=BB1_3 Depth=2 ldr w8, [sp, #8] add w8, w8, #1 str w8, [sp, #8] b LBB1_3 LBB1_5: ; in Loop: Header=BB1_1 Depth=1 b LBB1_6 LBB1_6: ; Parent Loop BB1_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldur x8, [x29, #-8] ldrsw x9, [sp, #4] ldr w8, [x8, x9, lsl #2] ldr w9, [sp, #12] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB1_8 b LBB1_7 LBB1_7: ; in Loop: Header=BB1_6 Depth=2 ldr w8, [sp, #4] subs w8, w8, #1 str w8, [sp, #4] b LBB1_6 LBB1_8: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #8] ldr w9, [sp, #4] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_10 b LBB1_9 LBB1_9: ; in Loop: Header=BB1_1 Depth=1 ldur x8, [x29, #-8] ldrsw x9, [sp, #8] add x0, x8, x9, lsl #2 ldur x8, [x29, #-8] ldrsw x9, [sp, #4] add x1, x8, x9, lsl #2 bl _swap b LBB1_10 LBB1_10: ; in Loop: Header=BB1_1 Depth=1 b LBB1_1 LBB1_11: ldur x8, [x29, #-8] ldrsw x9, [sp, #4] add x0, x8, x9, lsl #2 ldur x8, [x29, #-8] ldursw x9, [x29, #-12] add x1, x8, x9, lsl #2 bl _swap ldr w0, [sp, #4] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _quickSort ; -- Begin function quickSort .p2align 2 _quickSort: ; @quickSort .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] stur w1, [x29, #-12] str w2, [sp, #16] ldur w8, [x29, #-12] ldr w9, [sp, #16] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB2_2 b LBB2_1 LBB2_1: ldur x0, [x29, #-8] ldur w1, [x29, #-12] ldr w2, [sp, #16] bl _partition str w0, [sp, #12] ldur x0, [x29, #-8] ldur w1, [x29, #-12] ldr w8, [sp, #12] subs w2, w8, #1 bl _quickSort ldur x0, [x29, #-8] ldr w8, [sp, #12] add w1, w8, #1 ldr w2, [sp, #16] bl _quickSort b LBB2_2 LBB2_2: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill .cfi_def_cfa_offset 16 mov x29, sp .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 sub sp, sp, #64 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] stur wzr, [x29, #-12] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf sub sp, sp, #16 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 add sp, sp, #16 ldur w8, [x29, #-16] ; kill: def $x8 killed $w8 mov x9, sp stur x9, [x29, #-32] lsl x9, x8, #2 add x9, x9, #15 and x9, x9, #0xfffffffffffffff0 stur x9, [x29, #-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 x9, x9, x10 mov sp, x9 stur x9, [x29, #-48] ; 8-byte Folded Spill stur x8, [x29, #-40] stur wzr, [x29, #-20] b LBB3_1 LBB3_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-20] ldur w9, [x29, #-16] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB3_4 b LBB3_2 LBB3_2: ; in Loop: Header=BB3_1 Depth=1 bl _rand ldur x9, [x29, #-48] ; 8-byte Folded Reload mov w8, #100 sdiv w8, w0, w8 ldursw x10, [x29, #-20] str w8, [x9, x10, lsl #2] b LBB3_3 LBB3_3: ; in Loop: Header=BB3_1 Depth=1 ldur w8, [x29, #-20] add w8, w8, #1 stur w8, [x29, #-20] b LBB3_1 LBB3_4: ldur x0, [x29, #-48] ; 8-byte Folded Reload ldur w8, [x29, #-16] subs w2, w8, #1 mov w1, #0 bl _quickSort stur wzr, [x29, #-12] ldur x8, [x29, #-32] mov sp, x8 ldur w8, [x29, #-12] stur w8, [x29, #-60] ; 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_6 b LBB3_5 LBB3_5: bl ___stack_chk_fail LBB3_6: ldur w0, [x29, #-60] ; 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 "Enter size of array: " 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 _swap ## -- Begin function swap .p2align 4, 0x90 _swap: ## @swap .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) movq -8(%rbp), %rax movl (%rax), %eax movl %eax, -20(%rbp) movq -16(%rbp), %rax movl (%rax), %ecx movq -8(%rbp), %rax movl %ecx, (%rax) movl -20(%rbp), %ecx movq -16(%rbp), %rax movl %ecx, (%rax) popq %rbp retq .cfi_endproc ## -- End function .globl _partition ## -- Begin function partition .p2align 4, 0x90 _partition: ## @partition .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) movl %edx, -16(%rbp) movq -8(%rbp), %rax movslq -12(%rbp), %rcx movl (%rax,%rcx,4), %eax movl %eax, -20(%rbp) movl -12(%rbp), %eax movl %eax, -24(%rbp) movl -16(%rbp), %eax movl %eax, -28(%rbp) LBB1_1: ## =>This Loop Header: Depth=1 ## Child Loop BB1_3 Depth 2 ## Child Loop BB1_6 Depth 2 movl -24(%rbp), %eax cmpl -28(%rbp), %eax jge LBB1_11 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 jmp LBB1_3 LBB1_3: ## Parent Loop BB1_1 Depth=1 ## => This Inner Loop Header: Depth=2 movq -8(%rbp), %rax movslq -24(%rbp), %rcx movl (%rax,%rcx,4), %eax cmpl -20(%rbp), %eax jg LBB1_5 ## %bb.4: ## in Loop: Header=BB1_3 Depth=2 movl -24(%rbp), %eax addl $1, %eax movl %eax, -24(%rbp) jmp LBB1_3 LBB1_5: ## in Loop: Header=BB1_1 Depth=1 jmp LBB1_6 LBB1_6: ## Parent Loop BB1_1 Depth=1 ## => This Inner Loop Header: Depth=2 movq -8(%rbp), %rax movslq -28(%rbp), %rcx movl (%rax,%rcx,4), %eax cmpl -20(%rbp), %eax jle LBB1_8 ## %bb.7: ## in Loop: Header=BB1_6 Depth=2 movl -28(%rbp), %eax addl $-1, %eax movl %eax, -28(%rbp) jmp LBB1_6 LBB1_8: ## in Loop: Header=BB1_1 Depth=1 movl -24(%rbp), %eax cmpl -28(%rbp), %eax jge LBB1_10 ## %bb.9: ## in Loop: Header=BB1_1 Depth=1 movq -8(%rbp), %rdi movslq -24(%rbp), %rax shlq $2, %rax addq %rax, %rdi movq -8(%rbp), %rsi movslq -28(%rbp), %rax shlq $2, %rax addq %rax, %rsi callq _swap LBB1_10: ## in Loop: Header=BB1_1 Depth=1 jmp LBB1_1 LBB1_11: movq -8(%rbp), %rdi movslq -28(%rbp), %rax shlq $2, %rax addq %rax, %rdi movq -8(%rbp), %rsi movslq -12(%rbp), %rax shlq $2, %rax addq %rax, %rsi callq _swap movl -28(%rbp), %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _quickSort ## -- Begin function quickSort .p2align 4, 0x90 _quickSort: ## @quickSort .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) movl %edx, -16(%rbp) movl -12(%rbp), %eax cmpl -16(%rbp), %eax jge LBB2_2 ## %bb.1: movq -8(%rbp), %rdi movl -12(%rbp), %esi movl -16(%rbp), %edx callq _partition movl %eax, -20(%rbp) movq -8(%rbp), %rdi movl -12(%rbp), %esi movl -20(%rbp), %edx subl $1, %edx callq _quickSort movq -8(%rbp), %rdi movl -20(%rbp), %esi addl $1, %esi movl -16(%rbp), %edx callq _quickSort LBB2_2: addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $64, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -12(%rbp) leaq L_.str(%rip), %rdi xorl %eax, %eax ## kill: def $al killed $al killed $eax movb %al, -57(%rbp) ## 1-byte Spill callq _printf ## kill: def $ecx killed $eax movb -57(%rbp), %al ## 1-byte Reload leaq L_.str.1(%rip), %rdi leaq -16(%rbp), %rsi callq _scanf movl -16(%rbp), %eax ## kill: def $rax killed $eax movq %rax, -56(%rbp) ## 8-byte Spill movq %rsp, %rcx movq %rcx, -32(%rbp) shlq $2, %rax callq ____chkstk_darwin addq $15, %rax andq $-16, %rax subq %rax, %rsp movq -56(%rbp), %rax ## 8-byte Reload movq %rsp, %rcx movq %rcx, -48(%rbp) ## 8-byte Spill movq %rax, -40(%rbp) movl $0, -20(%rbp) LBB3_1: ## =>This Inner Loop Header: Depth=1 movl -20(%rbp), %eax cmpl -16(%rbp), %eax jge LBB3_4 ## %bb.2: ## in Loop: Header=BB3_1 Depth=1 callq _rand movl $100, %ecx cltd idivl %ecx movl %eax, %edx movq -48(%rbp), %rax ## 8-byte Reload movslq -20(%rbp), %rcx movl %edx, (%rax,%rcx,4) ## %bb.3: ## in Loop: Header=BB3_1 Depth=1 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB3_1 LBB3_4: movq -48(%rbp), %rdi ## 8-byte Reload movl -16(%rbp), %edx subl $1, %edx xorl %esi, %esi callq _quickSort movl $0, -12(%rbp) movq -32(%rbp), %rax movq %rax, %rsp movl -12(%rbp), %eax movl %eax, -64(%rbp) ## 4-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB3_6 ## %bb.5: movl -64(%rbp), %eax ## 4-byte Reload movq %rbp, %rsp popq %rbp retq LBB3_6: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Enter size of array: " L_.str.1: ## @.str.1 .asciz "%d" .subsections_via_symbols
the_stack_data/59511502.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #112 .cfi_def_cfa_offset 112 stp x29, x30, [sp, #96] ; 16-byte Folded Spill add x29, sp, #96 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] str wzr, [sp, #44] adrp x9, l___const.main.a@PAGE add x9, x9, l___const.main.a@PAGEOFF ldr q0, [x9] add x8, sp, #48 str q0, [sp, #48] ldur q0, [x9, #12] stur q0, [x8, #12] mov w9, #7 str w9, [sp, #36] mov x9, x8 str x9, [sp, #24] ldr w9, [sp, #36] subs w9, w9, #1 add x8, x8, w9, sxtw #2 str x8, [sp, #16] str wzr, [sp, #40] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #40] ldr w9, [sp, #36] subs w9, w9, #1 subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_4 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldrsw x9, [sp, #40] 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@PAGE add x0, x0, l_.str@PAGEOFF bl _printf b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #40] add w8, w8, #1 str w8, [sp, #40] b LBB0_1 LBB0_4: adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf str wzr, [sp, #40] b LBB0_5 LBB0_5: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #40] ldr w9, [sp, #36] subs w9, w9, #1 subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_8 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_5 Depth=1 ldr x8, [sp, #24] ldrsw x9, [sp, #40] ldr w9, [x8, x9, lsl #2] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf b LBB0_7 LBB0_7: ; in Loop: Header=BB0_5 Depth=1 ldr w8, [sp, #40] add w8, w8, #1 str w8, [sp, #40] b LBB0_5 LBB0_8: adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf str wzr, [sp, #40] b LBB0_9 LBB0_9: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #40] ldr w9, [sp, #36] subs w9, w9, #1 subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_12 b LBB0_10 LBB0_10: ; in Loop: Header=BB0_9 Depth=1 ldr x8, [sp, #24] add x9, x8, #4 str x9, [sp, #24] 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 b LBB0_11 LBB0_11: ; in Loop: Header=BB0_9 Depth=1 ldr w8, [sp, #40] add w8, w8, #1 str w8, [sp, #40] b LBB0_9 LBB0_12: adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf add x8, sp, #48 str x8, [sp, #24] b LBB0_13 LBB0_13: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #24] ldr x9, [sp, #16] subs x8, x8, x9 cset w8, hi tbnz w8, #0, LBB0_16 b LBB0_14 LBB0_14: ; in Loop: Header=BB0_13 Depth=1 ldr x8, [sp, #24] 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 b LBB0_15 LBB0_15: ; in Loop: Header=BB0_13 Depth=1 ldr x8, [sp, #24] add x8, x8, #4 str x8, [sp, #24] b LBB0_13 LBB0_16: adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf add x8, sp, #48 mov x9, x8 str x9, [sp, #24] ldr w9, [sp, #36] subs w9, w9, #1 add x8, x8, w9, sxtw #2 str x8, [sp, #16] b LBB0_17 LBB0_17: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #16] ldr x9, [sp, #24] subs x8, x8, x9 cset w8, lo tbnz w8, #0, LBB0_20 b LBB0_18 LBB0_18: ; in Loop: Header=BB0_17 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 b LBB0_19 LBB0_19: ; in Loop: Header=BB0_17 Depth=1 ldr x8, [sp, #16] subs x8, x8, #4 str x8, [sp, #16] b LBB0_17 LBB0_20: adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf add x8, sp, #48 mov x9, x8 str x9, [sp, #24] ldr w9, [sp, #36] subs w9, w9, #1 add x8, x8, w9, sxtw #2 str x8, [sp, #16] ldr x8, [sp, #16] ldr x9, [sp, #24] subs x8, x8, x9 mov x9, #4 sdiv x8, x8, x9 add x8, x8, #1 mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldr w8, [sp, #44] str w8, [sp, #12] ; 4-byte Folded Spill ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_22 b LBB0_21 LBB0_21: bl ___stack_chk_fail LBB0_22: ldr w0, [sp, #12] ; 4-byte Folded Reload ldp x29, x30, [sp, #96] ; 16-byte Folded Reload add sp, sp, #112 ret .cfi_endproc ; -- End function .section __TEXT,__const .p2align 2 ; @__const.main.a l___const.main.a: .long 1 ; 0x1 .long 2 ; 0x2 .long 3 ; 0x3 .long 4 ; 0x4 .long 5 ; 0x5 .long 6 ; 0x6 .long 7 ; 0x7 .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d," l_.str.1: ; @.str.1 .asciz "\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .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, -52(%rbp) movq l___const.main.a(%rip), %rax movq %rax, -48(%rbp) movq l___const.main.a+8(%rip), %rax movq %rax, -40(%rbp) movq l___const.main.a+16(%rip), %rax movq %rax, -32(%rbp) movl l___const.main.a+24(%rip), %eax movl %eax, -24(%rbp) movl $7, -60(%rbp) leaq -48(%rbp), %rax movq %rax, -72(%rbp) movl -60(%rbp), %eax subl $1, %eax movslq %eax, %rcx leaq -48(%rbp), %rax shlq $2, %rcx addq %rcx, %rax movq %rax, -80(%rbp) movl $0, -56(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movl -56(%rbp), %eax movl -60(%rbp), %ecx subl $1, %ecx cmpl %ecx, %eax jg LBB0_4 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movslq -56(%rbp), %rax movl -48(%rbp,%rax,4), %esi leaq L_.str(%rip), %rdi movb $0, %al callq _printf ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movl -56(%rbp), %eax addl $1, %eax movl %eax, -56(%rbp) jmp LBB0_1 LBB0_4: leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf movl $0, -56(%rbp) LBB0_5: ## =>This Inner Loop Header: Depth=1 movl -56(%rbp), %eax movl -60(%rbp), %ecx subl $1, %ecx cmpl %ecx, %eax jg LBB0_8 ## %bb.6: ## in Loop: Header=BB0_5 Depth=1 movq -72(%rbp), %rax movslq -56(%rbp), %rcx movl (%rax,%rcx,4), %esi leaq L_.str(%rip), %rdi movb $0, %al callq _printf ## %bb.7: ## in Loop: Header=BB0_5 Depth=1 movl -56(%rbp), %eax addl $1, %eax movl %eax, -56(%rbp) jmp LBB0_5 LBB0_8: leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf movl $0, -56(%rbp) LBB0_9: ## =>This Inner Loop Header: Depth=1 movl -56(%rbp), %eax movl -60(%rbp), %ecx subl $1, %ecx cmpl %ecx, %eax jg LBB0_12 ## %bb.10: ## in Loop: Header=BB0_9 Depth=1 movq -72(%rbp), %rax movq %rax, %rcx addq $4, %rcx movq %rcx, -72(%rbp) movl (%rax), %esi leaq L_.str(%rip), %rdi movb $0, %al callq _printf ## %bb.11: ## in Loop: Header=BB0_9 Depth=1 movl -56(%rbp), %eax addl $1, %eax movl %eax, -56(%rbp) jmp LBB0_9 LBB0_12: leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf leaq -48(%rbp), %rax movq %rax, -72(%rbp) LBB0_13: ## =>This Inner Loop Header: Depth=1 movq -72(%rbp), %rax cmpq -80(%rbp), %rax ja LBB0_16 ## %bb.14: ## in Loop: Header=BB0_13 Depth=1 movq -72(%rbp), %rax movl (%rax), %esi leaq L_.str(%rip), %rdi movb $0, %al callq _printf ## %bb.15: ## in Loop: Header=BB0_13 Depth=1 movq -72(%rbp), %rax addq $4, %rax movq %rax, -72(%rbp) jmp LBB0_13 LBB0_16: leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf leaq -48(%rbp), %rax movq %rax, -72(%rbp) movl -60(%rbp), %eax subl $1, %eax movslq %eax, %rcx leaq -48(%rbp), %rax shlq $2, %rcx addq %rcx, %rax movq %rax, -80(%rbp) LBB0_17: ## =>This Inner Loop Header: Depth=1 movq -80(%rbp), %rax cmpq -72(%rbp), %rax jb LBB0_20 ## %bb.18: ## in Loop: Header=BB0_17 Depth=1 movq -80(%rbp), %rax movl (%rax), %esi leaq L_.str(%rip), %rdi movb $0, %al callq _printf ## %bb.19: ## in Loop: Header=BB0_17 Depth=1 movq -80(%rbp), %rax addq $-4, %rax movq %rax, -80(%rbp) jmp LBB0_17 LBB0_20: leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf leaq -48(%rbp), %rax movq %rax, -72(%rbp) movl -60(%rbp), %eax subl $1, %eax movslq %eax, %rcx leaq -48(%rbp), %rax shlq $2, %rcx addq %rcx, %rax movq %rax, -80(%rbp) movq -80(%rbp), %rsi movq -72(%rbp), %rax subq %rax, %rsi sarq $2, %rsi addq $1, %rsi leaq L_.str(%rip), %rdi movb $0, %al callq _printf movl -52(%rbp), %eax movl %eax, -84(%rbp) ## 4-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_22 ## %bb.21: movl -84(%rbp), %eax ## 4-byte Reload addq $96, %rsp popq %rbp retq LBB0_22: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__const .p2align 4 ## @__const.main.a l___const.main.a: .long 1 ## 0x1 .long 2 ## 0x2 .long 3 ## 0x3 .long 4 ## 0x4 .long 5 ## 0x5 .long 6 ## 0x6 .long 7 ## 0x7 .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d," L_.str.1: ## @.str.1 .asciz "\n" .subsections_via_symbols
the_stack_data/39763.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #144 .cfi_def_cfa_offset 144 stp x29, x30, [sp, #128] ; 16-byte Folded Spill add x29, sp, #128 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, _Box@GOTPAGE ldr x8, [x8, _Box@GOTPAGEOFF] str x8, [sp, #48] ; 8-byte Folded Spill adrp x9, ___stdoutp@GOTPAGE ldr x9, [x9, ___stdoutp@GOTPAGEOFF] str x9, [sp, #56] ; 8-byte Folded Spill stur wzr, [x29, #-4] mov w10, #20 str w10, [x8] str w10, [x8, #4] str w10, [x8, #8] adrp x10, l___const.main.ref@PAGE add x10, x10, l___const.main.ref@PAGEOFF ldr q0, [x10] str q0, [sp, #64] ldr x10, [x10, #16] str x10, [sp, #80] ldr x0, [x9] ldr w9, [x8] ; implicit-def: $x11 mov x11, x9 ldr w9, [x8, #4] ; implicit-def: $x10 mov x10, x9 ldr w9, [x8, #8] ; implicit-def: $x8 mov x8, x9 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 b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #56] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF bl _fprintf sub x11, x29, #32 add x10, x11, #8 add x8, x11, #16 mov x9, sp str x11, [x9] str x10, [x9, #8] str x8, [x9, #16] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _scanf ldr x8, [sp, #56] ; 8-byte Folded Reload ldr x0, [x8] ldur d2, [x29, #-32] ldur d1, [x29, #-24] ldur d0, [x29, #-16] mov x8, sp str d2, [x8] str d1, [x8, #8] str d0, [x8, #16] adrp x1, l_.str.3@PAGE add x1, x1, l_.str.3@PAGEOFF bl _fprintf ldr x8, [sp, #56] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.4@PAGE add x1, x1, l_.str.4@PAGEOFF bl _fprintf ldr x10, [sp, #48] ; 8-byte Folded Reload ldr x8, [sp, #56] ; 8-byte Folded Reload ldur d0, [x29, #-32] ldur d1, [x29, #-32] ldr s3, [x10] ; implicit-def: $d2 fmov s2, s3 str d2, [sp, #24] ; 8-byte Folded Spill sshll.2d v2, v2, #0 ; kill: def $d2 killed $d2 killed $q2 scvtf d2, d2 fdiv d1, d1, d2 fcvtas x9, d1 ldrsw x11, [x10] mul x9, x9, x11 scvtf d1, x9 fsub d0, d0, d1 stur d0, [x29, #-32] ldur d0, [x29, #-24] ldur d1, [x29, #-24] ldr s3, [x10, #4] ; implicit-def: $d2 fmov s2, s3 str d2, [sp, #32] ; 8-byte Folded Spill sshll.2d v2, v2, #0 ; kill: def $d2 killed $d2 killed $q2 scvtf d2, d2 fdiv d1, d1, d2 fcvtas x9, d1 ldrsw x11, [x10, #4] mul x9, x9, x11 scvtf d1, x9 fsub d0, d0, d1 stur d0, [x29, #-24] ldur d0, [x29, #-16] ldur d1, [x29, #-16] ldr s3, [x10, #8] ; implicit-def: $d2 fmov s2, s3 str d2, [sp, #40] ; 8-byte Folded Spill sshll.2d v2, v2, #0 ; kill: def $d2 killed $d2 killed $q2 scvtf d2, d2 fdiv d1, d1, d2 fcvtas x9, d1 ldrsw x10, [x10, #8] mul x9, x9, x10 scvtf d1, x9 fsub d0, d0, d1 stur d0, [x29, #-16] ldr x0, [x8] ldur d2, [x29, #-32] ldur d1, [x29, #-24] ldur d0, [x29, #-16] mov x8, sp str d2, [x8] str d1, [x8, #8] str d0, [x8, #16] adrp x1, l_.str.5@PAGE add x1, x1, l_.str.5@PAGEOFF bl _fprintf b LBB0_1 .cfi_endproc ; -- End function .comm _Box,12,2 ; @Box .section __TEXT,__const .p2align 3 ; @__const.main.ref l___const.main.ref: .quad 0x4008000000000000 ; double 3 .quad 0x4008000000000000 ; double 3 .quad 0x4008000000000000 ; double 3 .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Box size: %d, %d, %d\n" l_.str.1: ; @.str.1 .asciz "Give vector x y z\n" l_.str.2: ; @.str.2 .asciz "%lf %lf %lf" l_.str.3: ; @.str.3 .asciz "test vector : %lf %lf %lf\n" l_.str.4: ; @.str.4 .asciz "Wrapping\n" l_.str.5: ; @.str.5 .asciz "new test vector : %lf %lf %lf\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 movl $0, -4(%rbp) movq _Box@GOTPCREL(%rip), %rax movl $20, (%rax) movq _Box@GOTPCREL(%rip), %rax movl $20, 4(%rax) movq _Box@GOTPCREL(%rip), %rax movl $20, 8(%rax) movq l___const.main.ref(%rip), %rax movq %rax, -56(%rbp) movq l___const.main.ref+8(%rip), %rax movq %rax, -48(%rbp) movq l___const.main.ref+16(%rip), %rax movq %rax, -40(%rbp) movq ___stdoutp@GOTPCREL(%rip), %rax movq (%rax), %rdi movq _Box@GOTPCREL(%rip), %rax movl (%rax), %edx movq _Box@GOTPCREL(%rip), %rax movl 4(%rax), %ecx movq _Box@GOTPCREL(%rip), %rax movl 8(%rax), %r8d leaq L_.str(%rip), %rsi movb $0, %al callq _fprintf LBB0_1: ## =>This Inner Loop Header: Depth=1 movq ___stdoutp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.1(%rip), %rsi movb $0, %al callq _fprintf leaq -32(%rbp), %rsi leaq -32(%rbp), %rdx addq $8, %rdx movq %rdx, -168(%rbp) ## 8-byte Spill leaq -32(%rbp), %rcx addq $16, %rcx movq %rcx, -160(%rbp) ## 8-byte Spill leaq L_.str.2(%rip), %rdi movb $0, %al callq _scanf movq ___stdoutp@GOTPCREL(%rip), %rax movq (%rax), %rdi movsd -32(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd -24(%rbp), %xmm1 ## xmm1 = mem[0],zero movsd -16(%rbp), %xmm2 ## xmm2 = mem[0],zero leaq L_.str.3(%rip), %rsi movb $3, %al callq _fprintf movq ___stdoutp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.4(%rip), %rsi movb $0, %al callq _fprintf movsd -32(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -144(%rbp) ## 8-byte Spill movsd -32(%rbp), %xmm0 ## xmm0 = mem[0],zero movq _Box@GOTPCREL(%rip), %rax cvtsi2sdl (%rax), %xmm1 divsd %xmm1, %xmm0 movsd %xmm0, -152(%rbp) ## 8-byte Spill callq _lround movsd -144(%rbp), %xmm0 ## 8-byte Reload ## xmm0 = mem[0],zero movq _Box@GOTPCREL(%rip), %rcx movslq (%rcx), %rcx imulq %rcx, %rax movq %rax, -136(%rbp) ## 8-byte Spill cvtsi2sd %rax, %xmm1 subsd %xmm1, %xmm0 movsd %xmm0, -128(%rbp) ## 8-byte Spill movsd %xmm0, -32(%rbp) movsd -24(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -112(%rbp) ## 8-byte Spill movsd -24(%rbp), %xmm0 ## xmm0 = mem[0],zero movq _Box@GOTPCREL(%rip), %rax cvtsi2sdl 4(%rax), %xmm1 divsd %xmm1, %xmm0 movsd %xmm0, -120(%rbp) ## 8-byte Spill callq _lround movsd -112(%rbp), %xmm0 ## 8-byte Reload ## xmm0 = mem[0],zero movq _Box@GOTPCREL(%rip), %rcx movslq 4(%rcx), %rcx imulq %rcx, %rax movq %rax, -104(%rbp) ## 8-byte Spill cvtsi2sd %rax, %xmm1 subsd %xmm1, %xmm0 movsd %xmm0, -96(%rbp) ## 8-byte Spill movsd %xmm0, -24(%rbp) movsd -16(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -80(%rbp) ## 8-byte Spill movsd -16(%rbp), %xmm0 ## xmm0 = mem[0],zero movq _Box@GOTPCREL(%rip), %rax cvtsi2sdl 8(%rax), %xmm1 divsd %xmm1, %xmm0 movsd %xmm0, -88(%rbp) ## 8-byte Spill callq _lround movsd -80(%rbp), %xmm0 ## 8-byte Reload ## xmm0 = mem[0],zero movq _Box@GOTPCREL(%rip), %rcx movslq 8(%rcx), %rcx imulq %rcx, %rax movq %rax, -72(%rbp) ## 8-byte Spill cvtsi2sd %rax, %xmm1 subsd %xmm1, %xmm0 movsd %xmm0, -64(%rbp) ## 8-byte Spill movsd %xmm0, -16(%rbp) movq ___stdoutp@GOTPCREL(%rip), %rax movq (%rax), %rdi movsd -32(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd -24(%rbp), %xmm1 ## xmm1 = mem[0],zero movsd -16(%rbp), %xmm2 ## xmm2 = mem[0],zero leaq L_.str.5(%rip), %rsi movb $3, %al callq _fprintf jmp LBB0_1 .cfi_endproc ## -- End function .comm _Box,12,2 ## @Box .section __TEXT,__const .p2align 3 ## @__const.main.ref l___const.main.ref: .quad 0x4008000000000000 ## double 3 .quad 0x4008000000000000 ## double 3 .quad 0x4008000000000000 ## double 3 .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Box size: %d, %d, %d\n" L_.str.1: ## @.str.1 .asciz "Give vector x y z\n" L_.str.2: ## @.str.2 .asciz "%lf %lf %lf" L_.str.3: ## @.str.3 .asciz "test vector : %lf %lf %lf\n" L_.str.4: ## @.str.4 .asciz "Wrapping\n" L_.str.5: ## @.str.5 .asciz "new test vector : %lf %lf %lf\n" .subsections_via_symbols
the_stack_data/23575369.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, #128 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] ldur x8, [x29, #-24] ldr x8, [x8, #8] stur x8, [x29, #-56] ldur x8, [x29, #-24] ldr x8, [x8, #16] stur x8, [x29, #-64] ldur x0, [x29, #-56] bl _strlen mov x8, x0 stur w8, [x29, #-68] ldur w8, [x29, #-68] add w8, w8, #1 ; kill: def $x8 killed $w8 mov x9, sp stur x9, [x29, #-80] lsr x9, x8, #0 add x9, x9, #15 and x9, x9, #0xfffffffffffffff0 stur x9, [x29, #-120] ; 8-byte Folded Spill adrp x16, ___chkstk_darwin@GOTPAGE ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF] blr x16 ldur x10, [x29, #-120] ; 8-byte Folded Reload mov x9, sp subs x9, x9, x10 mov sp, x9 stur x9, [x29, #-112] ; 8-byte Folded Spill stur x8, [x29, #-88] stur wzr, [x29, #-92] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-92] ldur w9, [x29, #-68] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_8 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldur x8, [x29, #-56] ldursw x9, [x29, #-92] add x8, x8, x9 ldrb w8, [x8] sturb w8, [x29, #-93] ldursb w0, [x29, #-93] bl _isalpha subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldursb w0, [x29, #-93] bl _isdigit subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB0_5 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_1 Depth=1 ldur x9, [x29, #-112] ; 8-byte Folded Reload ldurb w8, [x29, #-93] ldursw x10, [x29, #-92] add x9, x9, x10 strb w8, [x9] b LBB0_6 LBB0_5: ; in Loop: Header=BB0_1 Depth=1 ldur x8, [x29, #-112] ; 8-byte Folded Reload ldursw x9, [x29, #-92] add x9, x8, x9 mov w8, #95 strb w8, [x9] b LBB0_6 LBB0_6: ; in Loop: Header=BB0_1 Depth=1 b LBB0_7 LBB0_7: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-92] add w8, w8, #1 stur w8, [x29, #-92] b LBB0_1 LBB0_8: ldur x8, [x29, #-112] ; 8-byte Folded Reload ldursw x9, [x29, #-68] add x8, x8, x9 strb wzr, [x8] ldur x0, [x29, #-56] adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF bl _fopen stur x0, [x29, #-32] ldur x0, [x29, #-64] adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF bl _fopen ldur x8, [x29, #-112] ; 8-byte Folded Reload stur x0, [x29, #-40] ldur x0, [x29, #-40] sub sp, sp, #16 mov x9, sp str x8, [x9] adrp x1, l_.str.2@PAGE add x1, x1, l_.str.2@PAGEOFF bl _fprintf add sp, sp, #16 stur wzr, [x29, #-100] ldur x8, [x29, #-32] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB0_10 b LBB0_9 LBB0_9: ldur x8, [x29, #-40] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB0_11 b LBB0_10 LBB0_10: adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf b LBB0_19 LBB0_11: b LBB0_12 LBB0_12: ; =>This Inner Loop Header: Depth=1 ldur x0, [x29, #-32] bl _fgetc stur w0, [x29, #-44] adds w8, w0, #1 cset w8, eq tbnz w8, #0, LBB0_18 b LBB0_13 LBB0_13: ; in Loop: Header=BB0_12 Depth=1 ldur w8, [x29, #-100] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_17 b LBB0_14 LBB0_14: ; in Loop: Header=BB0_12 Depth=1 ldur x0, [x29, #-40] adrp x1, l_.str.4@PAGE add x1, x1, l_.str.4@PAGEOFF bl _fprintf ldur w8, [x29, #-100] mov w10, #10 sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_16 b LBB0_15 LBB0_15: ; in Loop: Header=BB0_12 Depth=1 ldur x0, [x29, #-40] adrp x1, l_.str.5@PAGE add x1, x1, l_.str.5@PAGEOFF bl _fprintf b LBB0_16 LBB0_16: ; in Loop: Header=BB0_12 Depth=1 b LBB0_17 LBB0_17: ; in Loop: Header=BB0_12 Depth=1 ldur w8, [x29, #-100] add w8, w8, #1 stur w8, [x29, #-100] ldur x0, [x29, #-40] ldur w10, [x29, #-44] sub sp, sp, #16 mov x9, sp ; implicit-def: $x8 mov x8, x10 and x8, x8, #0xff str x8, [x9] adrp x1, l_.str.6@PAGE add x1, x1, l_.str.6@PAGEOFF bl _fprintf add sp, sp, #16 b LBB0_12 LBB0_18: b LBB0_19 LBB0_19: ldur x0, [x29, #-40] adrp x1, l_.str.7@PAGE add x1, x1, l_.str.7@PAGEOFF bl _fprintf ldur x10, [x29, #-112] ; 8-byte Folded Reload ldur x0, [x29, #-40] ldur w9, [x29, #-100] ; implicit-def: $x8 mov x8, x9 sub sp, sp, #16 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 add sp, sp, #16 ldur x0, [x29, #-40] adrp x1, l_.str.9@PAGE add x1, x1, l_.str.9@PAGEOFF bl _fprintf ldur x0, [x29, #-32] bl _fclose ldur x0, [x29, #-40] bl _fclose stur wzr, [x29, #-12] ldur x8, [x29, #-80] mov sp, x8 ldur w8, [x29, #-12] stur w8, [x29, #-124] ; 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_21 b LBB0_20 LBB0_20: bl ___stack_chk_fail LBB0_21: ldur w0, [x29, #-124] ; 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 "rb" l_.str.1: ; @.str.1 .asciz "w" l_.str.2: ; @.str.2 .asciz "unsigned char %s[] = {\n" l_.str.3: ; @.str.3 .asciz "File not found\n" l_.str.4: ; @.str.4 .asciz "," l_.str.5: ; @.str.5 .asciz "\n" l_.str.6: ; @.str.6 .asciz "0x%02x" l_.str.7: ; @.str.7 .asciz "\n};\n" l_.str.8: ; @.str.8 .asciz "unsigned int %s_len = %d" l_.str.9: ; @.str.9 .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 $128, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -12(%rbp) movl %edi, -16(%rbp) movq %rsi, -24(%rbp) movq -24(%rbp), %rax movq 8(%rax), %rax movq %rax, -56(%rbp) movq -24(%rbp), %rax movq 16(%rax), %rax movq %rax, -64(%rbp) movq -56(%rbp), %rdi callq _strlen ## kill: def $eax killed $eax killed $rax movl %eax, -68(%rbp) movl -68(%rbp), %eax incl %eax ## kill: def $rax killed $eax movq %rax, -120(%rbp) ## 8-byte Spill movq %rsp, %rcx movq %rcx, -80(%rbp) callq ____chkstk_darwin addq $15, %rax andq $-16, %rax subq %rax, %rsp movq -120(%rbp), %rax ## 8-byte Reload movq %rsp, %rcx movq %rcx, -112(%rbp) ## 8-byte Spill movq %rax, -88(%rbp) movl $0, -92(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movl -92(%rbp), %eax cmpl -68(%rbp), %eax jge LBB0_8 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movq -56(%rbp), %rax movslq -92(%rbp), %rcx movb (%rax,%rcx), %al movb %al, -93(%rbp) movsbl -93(%rbp), %edi callq _isalpha cmpl $0, %eax jne LBB0_4 ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movsbl -93(%rbp), %edi callq _isdigit cmpl $0, %eax je LBB0_5 LBB0_4: ## in Loop: Header=BB0_1 Depth=1 movq -112(%rbp), %rax ## 8-byte Reload movb -93(%rbp), %dl movslq -92(%rbp), %rcx movb %dl, (%rax,%rcx) jmp LBB0_6 LBB0_5: ## in Loop: Header=BB0_1 Depth=1 movq -112(%rbp), %rax ## 8-byte Reload movslq -92(%rbp), %rcx movb $95, (%rax,%rcx) LBB0_6: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_7 LBB0_7: ## in Loop: Header=BB0_1 Depth=1 movl -92(%rbp), %eax addl $1, %eax movl %eax, -92(%rbp) jmp LBB0_1 LBB0_8: movq -112(%rbp), %rax ## 8-byte Reload movslq -68(%rbp), %rcx movb $0, (%rax,%rcx) movq -56(%rbp), %rdi leaq L_.str(%rip), %rsi callq _fopen movq %rax, -32(%rbp) movq -64(%rbp), %rdi leaq L_.str.1(%rip), %rsi callq _fopen movq -112(%rbp), %rdx ## 8-byte Reload movq %rax, -40(%rbp) movq -40(%rbp), %rdi leaq L_.str.2(%rip), %rsi movb $0, %al callq _fprintf movl $0, -100(%rbp) cmpq $0, -32(%rbp) je LBB0_10 ## %bb.9: cmpq $0, -40(%rbp) jne LBB0_11 LBB0_10: leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf jmp LBB0_19 LBB0_11: jmp LBB0_12 LBB0_12: ## =>This Inner Loop Header: Depth=1 movq -32(%rbp), %rdi callq _fgetc movl %eax, -44(%rbp) cmpl $-1, %eax je LBB0_18 ## %bb.13: ## in Loop: Header=BB0_12 Depth=1 cmpl $0, -100(%rbp) je LBB0_17 ## %bb.14: ## in Loop: Header=BB0_12 Depth=1 movq -40(%rbp), %rdi leaq L_.str.4(%rip), %rsi movb $0, %al callq _fprintf movl -100(%rbp), %eax movl $10, %ecx cltd idivl %ecx cmpl $0, %edx jne LBB0_16 ## %bb.15: ## in Loop: Header=BB0_12 Depth=1 movq -40(%rbp), %rdi leaq L_.str.5(%rip), %rsi movb $0, %al callq _fprintf LBB0_16: ## in Loop: Header=BB0_12 Depth=1 jmp LBB0_17 LBB0_17: ## in Loop: Header=BB0_12 Depth=1 movl -100(%rbp), %eax addl $1, %eax movl %eax, -100(%rbp) movq -40(%rbp), %rdi movl -44(%rbp), %eax ## kill: def $al killed $al killed $eax movzbl %al, %edx leaq L_.str.6(%rip), %rsi movb $0, %al callq _fprintf jmp LBB0_12 LBB0_18: jmp LBB0_19 LBB0_19: movq -40(%rbp), %rdi leaq L_.str.7(%rip), %rsi movb $0, %al callq _fprintf movq -112(%rbp), %rdx ## 8-byte Reload movq -40(%rbp), %rdi movl -100(%rbp), %ecx leaq L_.str.8(%rip), %rsi movb $0, %al callq _fprintf movq -40(%rbp), %rdi leaq L_.str.9(%rip), %rsi movb $0, %al callq _fprintf movq -32(%rbp), %rdi callq _fclose movq -40(%rbp), %rdi callq _fclose movl $0, -12(%rbp) movq -80(%rbp), %rax movq %rax, %rsp movl -12(%rbp), %eax movl %eax, -124(%rbp) ## 4-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_21 ## %bb.20: movl -124(%rbp), %eax ## 4-byte Reload movq %rbp, %rsp popq %rbp retq LBB0_21: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "rb" L_.str.1: ## @.str.1 .asciz "w" L_.str.2: ## @.str.2 .asciz "unsigned char %s[] = {\n" L_.str.3: ## @.str.3 .asciz "File not found\n" L_.str.4: ## @.str.4 .asciz "," L_.str.5: ## @.str.5 .asciz "\n" L_.str.6: ## @.str.6 .asciz "0x%02x" L_.str.7: ## @.str.7 .asciz "\n};\n" L_.str.8: ## @.str.8 .asciz "unsigned int %s_len = %d" L_.str.9: ## @.str.9 .asciz ";\n" .subsections_via_symbols
the_stack_data/116594.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #480 .cfi_def_cfa_offset 480 stp x28, x27, [sp, #448] ; 16-byte Folded Spill stp x29, x30, [sp, #464] ; 16-byte Folded Spill add x29, sp, #464 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w27, -24 .cfi_offset w28, -32 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] str wzr, [sp, #36] str wzr, [sp, #24] str wzr, [sp, #32] b LBB0_1 LBB0_1: ; =>This Loop Header: Depth=1 ; Child Loop BB0_3 Depth 2 ldr w8, [sp, #32] subs w8, w8, #3 cset w8, ge tbnz w8, #0, LBB0_8 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 str wzr, [sp, #28] b LBB0_3 LBB0_3: ; Parent Loop BB0_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #28] subs w8, w8, #3 cset w8, ge tbnz w8, #0, LBB0_6 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_3 Depth=2 ldrsw x8, [sp, #32] mov x9, #40 mul x9, x8, x9 add x8, sp, #40 add x8, x8, x9 ldrsw x9, [sp, #28] add x8, x8, x9, lsl #2 mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _scanf b LBB0_5 LBB0_5: ; in Loop: Header=BB0_3 Depth=2 ldr w8, [sp, #28] add w8, w8, #1 str w8, [sp, #28] b LBB0_3 LBB0_6: ; in Loop: Header=BB0_1 Depth=1 b LBB0_7 LBB0_7: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #32] add w8, w8, #1 str w8, [sp, #32] b LBB0_1 LBB0_8: str wzr, [sp, #32] b LBB0_9 LBB0_9: ; =>This Loop Header: Depth=1 ; Child Loop BB0_11 Depth 2 ldr w8, [sp, #32] subs w8, w8, #3 cset w8, ge tbnz w8, #0, LBB0_16 b LBB0_10 LBB0_10: ; in Loop: Header=BB0_9 Depth=1 str wzr, [sp, #28] b LBB0_11 LBB0_11: ; Parent Loop BB0_9 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #28] subs w8, w8, #3 cset w8, ge tbnz w8, #0, LBB0_14 b LBB0_12 LBB0_12: ; in Loop: Header=BB0_11 Depth=2 ldrsw x8, [sp, #32] mov x9, #40 mul x9, x8, x9 add x8, sp, #40 add x8, x8, x9 ldrsw x9, [sp, #28] ldr w9, [x8, x9, lsl #2] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf b LBB0_13 LBB0_13: ; in Loop: Header=BB0_11 Depth=2 ldr w8, [sp, #28] add w8, w8, #1 str w8, [sp, #28] b LBB0_11 LBB0_14: ; in Loop: Header=BB0_9 Depth=1 adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf b LBB0_15 LBB0_15: ; in Loop: Header=BB0_9 Depth=1 ldr w8, [sp, #32] add w8, w8, #1 str w8, [sp, #32] b LBB0_9 LBB0_16: str wzr, [sp, #32] b LBB0_17 LBB0_17: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #32] subs w8, w8, #3 cset w8, ge tbnz w8, #0, LBB0_20 b LBB0_18 LBB0_18: ; in Loop: Header=BB0_17 Depth=1 ldr w8, [sp, #24] ldrsw x9, [sp, #32] add x12, sp, #40 ldr w9, [x12, x9, lsl #2] add x10, x12, #40 ldr w11, [sp, #32] add w11, w11, #1 mov w15, #3 str w15, [sp, #20] ; 4-byte Folded Spill sdiv w13, w11, w15 mul w13, w13, w15 subs w11, w11, w13 ldr w10, [x10, w11, sxtw #2] add x11, x12, #80 ldr w13, [sp, #32] add w13, w13, #2 sdiv w14, w13, w15 mul w14, w14, w15 subs w13, w13, w14 ldr w11, [x11, w13, sxtw #2] mul w10, w10, w11 add x11, x12, #40 ldr w13, [sp, #32] add w13, w13, #2 sdiv w14, w13, w15 mul w14, w14, w15 subs w13, w13, w14 ldr w11, [x11, w13, sxtw #2] add x12, x12, #80 ldr w13, [sp, #32] add w13, w13, #1 sdiv w14, w13, w15 mul w14, w14, w15 subs w13, w13, w14 ldr w12, [x12, w13, sxtw #2] mul w11, w11, w12 subs w10, w10, w11 mul w9, w9, w10 add w8, w8, w9 str w8, [sp, #24] b LBB0_19 LBB0_19: ; in Loop: Header=BB0_17 Depth=1 ldr w8, [sp, #32] add w8, w8, #1 str w8, [sp, #32] b LBB0_17 LBB0_20: ldr w9, [sp, #24] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldr w8, [sp, #36] str w8, [sp, #16] ; 4-byte Folded Spill ldur x9, [x29, #-24] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_22 b LBB0_21 LBB0_21: bl ___stack_chk_fail LBB0_22: ldr w0, [sp, #16] ; 4-byte Folded Reload ldp x29, x30, [sp, #464] ; 16-byte Folded Reload ldp x28, x27, [sp, #448] ; 16-byte Folded Reload add sp, sp, #480 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d" l_.str.1: ; @.str.1 .asciz "\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $448, %rsp ## imm = 0x1C0 movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -420(%rbp) movl $0, -432(%rbp) movl $0, -424(%rbp) LBB0_1: ## =>This Loop Header: Depth=1 ## Child Loop BB0_3 Depth 2 cmpl $3, -424(%rbp) jge LBB0_8 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl $0, -428(%rbp) LBB0_3: ## Parent Loop BB0_1 Depth=1 ## => This Inner Loop Header: Depth=2 cmpl $3, -428(%rbp) jge LBB0_6 ## %bb.4: ## in Loop: Header=BB0_3 Depth=2 movslq -424(%rbp), %rax leaq -416(%rbp), %rsi imulq $40, %rax, %rax addq %rax, %rsi movslq -428(%rbp), %rax shlq $2, %rax addq %rax, %rsi leaq L_.str(%rip), %rdi movb $0, %al callq _scanf ## %bb.5: ## in Loop: Header=BB0_3 Depth=2 movl -428(%rbp), %eax addl $1, %eax movl %eax, -428(%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 -424(%rbp), %eax addl $1, %eax movl %eax, -424(%rbp) jmp LBB0_1 LBB0_8: movl $0, -424(%rbp) LBB0_9: ## =>This Loop Header: Depth=1 ## Child Loop BB0_11 Depth 2 cmpl $3, -424(%rbp) jge LBB0_16 ## %bb.10: ## in Loop: Header=BB0_9 Depth=1 movl $0, -428(%rbp) LBB0_11: ## Parent Loop BB0_9 Depth=1 ## => This Inner Loop Header: Depth=2 cmpl $3, -428(%rbp) jge LBB0_14 ## %bb.12: ## in Loop: Header=BB0_11 Depth=2 movslq -424(%rbp), %rcx leaq -416(%rbp), %rax imulq $40, %rcx, %rcx addq %rcx, %rax movslq -428(%rbp), %rcx movl (%rax,%rcx,4), %esi leaq L_.str(%rip), %rdi movb $0, %al callq _printf ## %bb.13: ## in Loop: Header=BB0_11 Depth=2 movl -428(%rbp), %eax addl $1, %eax movl %eax, -428(%rbp) jmp LBB0_11 LBB0_14: ## in Loop: Header=BB0_9 Depth=1 leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf ## %bb.15: ## in Loop: Header=BB0_9 Depth=1 movl -424(%rbp), %eax addl $1, %eax movl %eax, -424(%rbp) jmp LBB0_9 LBB0_16: movl $0, -424(%rbp) LBB0_17: ## =>This Inner Loop Header: Depth=1 cmpl $3, -424(%rbp) jge LBB0_20 ## %bb.18: ## in Loop: Header=BB0_17 Depth=1 movl -432(%rbp), %eax movl %eax, -440(%rbp) ## 4-byte Spill movslq -424(%rbp), %rax movl -416(%rbp,%rax,4), %ecx movl -424(%rbp), %eax addl $1, %eax movl $3, %esi cltd idivl %esi movslq %edx, %rax movl -376(%rbp,%rax,4), %eax movl %eax, -444(%rbp) ## 4-byte Spill movl -424(%rbp), %eax addl $2, %eax movl $3, %esi cltd idivl %esi movl -444(%rbp), %eax ## 4-byte Reload movslq %edx, %rdx imull -336(%rbp,%rdx,4), %eax movl %eax, -436(%rbp) ## 4-byte Spill movl -424(%rbp), %eax addl $2, %eax movl $3, %esi cltd idivl %esi movslq %edx, %rax movl -376(%rbp,%rax,4), %esi movl -424(%rbp), %eax addl $1, %eax movl $3, %edi cltd idivl %edi movl -440(%rbp), %eax ## 4-byte Reload movl %edx, %edi movl -436(%rbp), %edx ## 4-byte Reload movslq %edi, %rdi imull -336(%rbp,%rdi,4), %esi subl %esi, %edx imull %edx, %ecx addl %ecx, %eax movl %eax, -432(%rbp) ## %bb.19: ## in Loop: Header=BB0_17 Depth=1 movl -424(%rbp), %eax addl $1, %eax movl %eax, -424(%rbp) jmp LBB0_17 LBB0_20: movl -432(%rbp), %esi leaq L_.str(%rip), %rdi movb $0, %al callq _printf movl -420(%rbp), %eax movl %eax, -448(%rbp) ## 4-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_22 ## %bb.21: movl -448(%rbp), %eax ## 4-byte Reload addq $448, %rsp ## imm = 0x1C0 popq %rbp retq LBB0_22: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d" L_.str.1: ## @.str.1 .asciz "\n" .subsections_via_symbols
the_stack_data/150142249.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, #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] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldur w8, [x29, #-4] ldr w9, [sp, #8] add w0, w8, w9 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _sub ; -- Begin function sub .p2align 2 _sub: ; @sub .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] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf ldur w8, [x29, #-4] ldr w9, [sp, #8] subs w0, w8, w9 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _mul ; -- Begin function mul .p2align 2 _mul: ; @mul .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] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf ldur w8, [x29, #-4] ldr w9, [sp, #8] mul w0, w8, w9 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _div ; -- Begin function div .p2align 2 _div: ; @div .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] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf ldur w8, [x29, #-4] ldr w9, [sp, #8] sdiv w0, w8, w9 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _calculator ; -- Begin function calculator .p2align 2 _calculator: ; @calculator .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 x8, [x29, #-16] ldur w0, [x29, #-4] ldur w1, [x29, #-8] blr x8 stur w0, [x29, #-20] ldur w8, [x29, #-4] ; implicit-def: $x11 mov x11, x8 ldur w8, [x29, #-8] ; implicit-def: $x10 mov x10, x8 ldur w9, [x29, #-20] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x11, [x9] str x10, [x9, #8] str x8, [x9, #16] adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf ldur w0, [x29, #-20] ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf mov x9, sp sub x8, x29, #8 str x8, [x9] adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF str x0, [sp, #8] ; 8-byte Folded Spill bl _scanf adrp x0, l_.str.7@PAGE add x0, x0, l_.str.7@PAGEOFF bl _printf ldr x0, [sp, #8] ; 8-byte Folded Reload mov x9, sp sub x8, x29, #12 str x8, [x9] bl _scanf adrp x0, l_.str.8@PAGE add x0, x0, l_.str.8@PAGEOFF bl _printf ldr x0, [sp, #8] ; 8-byte Folded Reload mov x9, sp sub x8, x29, #16 str x8, [x9] bl _scanf ldur w8, [x29, #-16] subs w8, w8, #1 ; kill: def $x8 killed $w8 str x8, [sp, #16] ; 8-byte Folded Spill subs x8, x8, #3 cset w8, hi tbnz w8, #0, LBB5_6 ; %bb.1: ldr x11, [sp, #16] ; 8-byte Folded Reload adrp x10, lJTI5_0@PAGE add x10, x10, lJTI5_0@PAGEOFF Ltmp0: adr x8, Ltmp0 ldrsw x9, [x10, x11, lsl #2] add x8, x8, x9 br x8 LBB5_2: adrp x8, _add@PAGE add x8, x8, _add@PAGEOFF str x8, [sp, #24] ldur w0, [x29, #-8] ldur w1, [x29, #-12] ldr x2, [sp, #24] bl _calculator b LBB5_7 LBB5_3: adrp x8, _sub@PAGE add x8, x8, _sub@PAGEOFF str x8, [sp, #24] ldur w0, [x29, #-8] ldur w1, [x29, #-12] ldr x2, [sp, #24] bl _calculator b LBB5_7 LBB5_4: adrp x8, _mul@PAGE add x8, x8, _mul@PAGEOFF str x8, [sp, #24] ldur w0, [x29, #-8] ldur w1, [x29, #-12] ldr x2, [sp, #24] bl _calculator b LBB5_7 LBB5_5: adrp x8, _div@PAGE add x8, x8, _div@PAGEOFF str x8, [sp, #24] ldur w0, [x29, #-8] ldur w1, [x29, #-12] ldr x2, [sp, #24] bl _calculator b LBB5_7 LBB5_6: adrp x0, l_.str.9@PAGE add x0, x0, l_.str.9@PAGEOFF bl _printf b LBB5_7 LBB5_7: mov w0, #0 ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc .p2align 2 lJTI5_0: .long LBB5_2-Ltmp0 .long LBB5_3-Ltmp0 .long LBB5_4-Ltmp0 .long LBB5_5-Ltmp0 ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "addition of: " l_.str.1: ; @.str.1 .asciz "subtraction of: " l_.str.2: ; @.str.2 .asciz "multiplication of: " l_.str.3: ; @.str.3 .asciz "division of: " l_.str.4: ; @.str.4 .asciz "%d and %d is %d\n" l_.str.5: ; @.str.5 .asciz "Enter int a: \n" l_.str.6: ; @.str.6 .asciz "%d" l_.str.7: ; @.str.7 .asciz "Enter int b: \n" l_.str.8: ; @.str.8 .asciz "Choose:\n 1 for addition\n 2 for subtraction\n 3 for multiplication\n 4 for division\n" l_.str.9: ; @.str.9 .asciz "no such option\n" .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 subq $16, %rsp movl %edi, -4(%rbp) movl %esi, -8(%rbp) leaq L_.str(%rip), %rdi movb $0, %al callq _printf movl -4(%rbp), %eax addl -8(%rbp), %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _sub ## -- Begin function sub .p2align 4, 0x90 _sub: ## @sub .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl %edi, -4(%rbp) movl %esi, -8(%rbp) leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf movl -4(%rbp), %eax subl -8(%rbp), %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _mul ## -- Begin function mul .p2align 4, 0x90 _mul: ## @mul .cfi_startproc ## %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) leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf movl -4(%rbp), %eax imull -8(%rbp), %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _div ## -- Begin function div .p2align 4, 0x90 _div: ## @div .cfi_startproc ## %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) leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf movl -4(%rbp), %eax cltd idivl -8(%rbp) addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _calculator ## -- Begin function calculator .p2align 4, 0x90 _calculator: ## @calculator .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl %edi, -4(%rbp) movl %esi, -8(%rbp) movq %rdx, -16(%rbp) movq -16(%rbp), %rax movl -4(%rbp), %edi movl -8(%rbp), %esi callq *%rax movl %eax, -20(%rbp) movl -4(%rbp), %esi movl -8(%rbp), %edx movl -20(%rbp), %ecx leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf movl -20(%rbp), %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movl $0, -4(%rbp) leaq L_.str.5(%rip), %rdi xorl %eax, %eax ## kill: def $al killed $al killed $eax movb %al, -33(%rbp) ## 1-byte Spill callq _printf ## kill: def $ecx killed $eax movb -33(%rbp), %al ## 1-byte Reload leaq L_.str.6(%rip), %rdi movq %rdi, -48(%rbp) ## 8-byte Spill leaq -8(%rbp), %rsi callq _scanf ## kill: def $ecx killed $eax movb -33(%rbp), %al ## 1-byte Reload leaq L_.str.7(%rip), %rdi callq _printf movq -48(%rbp), %rdi ## 8-byte Reload ## kill: def $ecx killed $eax movb -33(%rbp), %al ## 1-byte Reload leaq -12(%rbp), %rsi callq _scanf ## kill: def $ecx killed $eax movb -33(%rbp), %al ## 1-byte Reload leaq L_.str.8(%rip), %rdi callq _printf movq -48(%rbp), %rdi ## 8-byte Reload ## kill: def $ecx killed $eax movb -33(%rbp), %al ## 1-byte Reload leaq -16(%rbp), %rsi callq _scanf movl -16(%rbp), %eax decl %eax movl %eax, %ecx movq %rcx, -32(%rbp) ## 8-byte Spill subl $3, %eax ja LBB5_5 ## %bb.7: movq -32(%rbp), %rax ## 8-byte Reload leaq LJTI5_0(%rip), %rcx movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax LBB5_1: leaq _add(%rip), %rax movq %rax, -24(%rbp) movl -8(%rbp), %edi movl -12(%rbp), %esi movq -24(%rbp), %rdx callq _calculator jmp LBB5_6 LBB5_2: leaq _sub(%rip), %rax movq %rax, -24(%rbp) movl -8(%rbp), %edi movl -12(%rbp), %esi movq -24(%rbp), %rdx callq _calculator jmp LBB5_6 LBB5_3: leaq _mul(%rip), %rax movq %rax, -24(%rbp) movl -8(%rbp), %edi movl -12(%rbp), %esi movq -24(%rbp), %rdx callq _calculator jmp LBB5_6 LBB5_4: leaq _div(%rip), %rax movq %rax, -24(%rbp) movl -8(%rbp), %edi movl -12(%rbp), %esi movq -24(%rbp), %rdx callq _calculator jmp LBB5_6 LBB5_5: leaq L_.str.9(%rip), %rdi movb $0, %al callq _printf LBB5_6: xorl %eax, %eax addq $48, %rsp popq %rbp retq .cfi_endproc .p2align 2, 0x90 .data_region jt32 .set L5_0_set_1, LBB5_1-LJTI5_0 .set L5_0_set_2, LBB5_2-LJTI5_0 .set L5_0_set_3, LBB5_3-LJTI5_0 .set L5_0_set_4, LBB5_4-LJTI5_0 LJTI5_0: .long L5_0_set_1 .long L5_0_set_2 .long L5_0_set_3 .long L5_0_set_4 .end_data_region ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "addition of: " L_.str.1: ## @.str.1 .asciz "subtraction of: " L_.str.2: ## @.str.2 .asciz "multiplication of: " L_.str.3: ## @.str.3 .asciz "division of: " L_.str.4: ## @.str.4 .asciz "%d and %d is %d\n" L_.str.5: ## @.str.5 .asciz "Enter int a: \n" L_.str.6: ## @.str.6 .asciz "%d" L_.str.7: ## @.str.7 .asciz "Enter int b: \n" L_.str.8: ## @.str.8 .asciz "Choose:\n 1 for addition\n 2 for subtraction\n 3 for multiplication\n 4 for division\n" L_.str.9: ## @.str.9 .asciz "no such option\n" .subsections_via_symbols
the_stack_data/618117.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #0 stur w8, [x29, #-12] ; 4-byte Folded Spill stur wzr, [x29, #-4] mov x9, sp sub x8, x29, #5 str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _scanf ldursb w10, [x29, #-5] mov x9, sp ; implicit-def: $x8 mov x8, x10 str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf 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 " %c " l_.str.1: ; @.str.1 .asciz " %d " .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) leaq L_.str(%rip), %rdi leaq -5(%rbp), %rsi movb $0, %al callq _scanf movsbl -5(%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 " %c " L_.str.1: ## @.str.1 .asciz " %d " .subsections_via_symbols
the_stack_data/1168645.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _create ; -- Begin function create .p2align 2 _create: ; @create .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur w0, [x29, #-4] ldursw x8, [x29, #-4] lsl x0, x8, #3 bl _malloc str x0, [sp, #16] str wzr, [sp, #12] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #12] 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 ldursw x8, [x29, #-4] lsl x0, x8, #2 bl _malloc ldr x8, [sp, #16] ldrsw x9, [sp, #12] str x0, [x8, x9, lsl #3] 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 x0, [sp, #16] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _add ; -- Begin function add .p2align 2 _add: ; @add .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 str w0, [sp, #44] str x1, [sp, #32] str x2, [sp, #24] str x3, [sp, #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] ldr w9, [sp, #44] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_8 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 str wzr, [sp, #8] b LBB1_3 LBB1_3: ; Parent Loop BB1_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #8] ldr w9, [sp, #44] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_6 b LBB1_4 LBB1_4: ; in Loop: Header=BB1_3 Depth=2 ldr x8, [sp, #32] ldrsw x9, [sp, #12] ldr x8, [x8, x9, lsl #3] ldrsw x9, [sp, #8] ldr w8, [x8, x9, lsl #2] ldr x9, [sp, #24] ldrsw x10, [sp, #12] ldr x9, [x9, x10, lsl #3] ldrsw x10, [sp, #8] ldr w9, [x9, x10, lsl #2] add w8, w8, w9 ldr x9, [sp, #16] ldrsw x10, [sp, #12] ldr x9, [x9, x10, lsl #3] ldrsw x10, [sp, #8] str w8, [x9, x10, lsl #2] 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: add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _copy ; -- Begin function copy .p2align 2 _copy: ; @copy .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 str w0, [sp, #44] str w1, [sp, #40] str w2, [sp, #36] str x3, [sp, #24] str x4, [sp, #16] str wzr, [sp, #12] b LBB2_1 LBB2_1: ; =>This Loop Header: Depth=1 ; Child Loop BB2_3 Depth 2 ldr w8, [sp, #12] ldr w9, [sp, #36] mov w10, #2 sdiv w9, w9, w10 subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB2_8 b LBB2_2 LBB2_2: ; in Loop: Header=BB2_1 Depth=1 str wzr, [sp, #8] b LBB2_3 LBB2_3: ; Parent Loop BB2_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #8] ldr w9, [sp, #36] mov w10, #2 sdiv w9, w9, w10 subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB2_6 b LBB2_4 LBB2_4: ; in Loop: Header=BB2_3 Depth=2 ldr x8, [sp, #24] ldr w9, [sp, #44] ldr w10, [sp, #12] add w9, w9, w10 ldr x8, [x8, w9, sxtw #3] ldr w9, [sp, #40] ldr w10, [sp, #8] add w9, w9, w10 ldr w8, [x8, w9, sxtw #2] ldr x9, [sp, #16] ldrsw x10, [sp, #12] ldr x9, [x9, x10, lsl #3] ldrsw x10, [sp, #8] str w8, [x9, x10, lsl #2] b LBB2_5 LBB2_5: ; in Loop: Header=BB2_3 Depth=2 ldr w8, [sp, #8] add w8, w8, #1 str w8, [sp, #8] b LBB2_3 LBB2_6: ; in Loop: Header=BB2_1 Depth=1 b LBB2_7 LBB2_7: ; in Loop: Header=BB2_1 Depth=1 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB2_1 LBB2_8: add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _scan ; -- Begin function scan .p2align 2 _scan: ; @scan .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur w0, [x29, #-4] str x1, [sp, #16] str wzr, [sp, #12] b LBB3_1 LBB3_1: ; =>This Loop Header: Depth=1 ; Child Loop BB3_3 Depth 2 ldr w8, [sp, #12] ldur w9, [x29, #-4] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB3_8 b LBB3_2 LBB3_2: ; in Loop: Header=BB3_1 Depth=1 str wzr, [sp, #8] b LBB3_3 LBB3_3: ; Parent Loop BB3_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #8] ldur w9, [x29, #-4] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB3_6 b LBB3_4 LBB3_4: ; in Loop: Header=BB3_3 Depth=2 ldr x8, [sp, #16] ldrsw x9, [sp, #12] ldr x8, [x8, x9, lsl #3] ldrsw x9, [sp, #8] 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 LBB3_5 LBB3_5: ; in Loop: Header=BB3_3 Depth=2 ldr w8, [sp, #8] add w8, w8, #1 str w8, [sp, #8] b LBB3_3 LBB3_6: ; in Loop: Header=BB3_1 Depth=1 b LBB3_7 LBB3_7: ; in Loop: Header=BB3_1 Depth=1 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB3_1 LBB3_8: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _print ; -- Begin function print .p2align 2 _print: ; @print .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur w0, [x29, #-4] str x1, [sp, #16] str wzr, [sp, #12] b LBB4_1 LBB4_1: ; =>This Loop Header: Depth=1 ; Child Loop BB4_3 Depth 2 ldr w8, [sp, #12] ldur w9, [x29, #-4] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB4_8 b LBB4_2 LBB4_2: ; in Loop: Header=BB4_1 Depth=1 str wzr, [sp, #8] b LBB4_3 LBB4_3: ; Parent Loop BB4_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #8] ldur w9, [x29, #-4] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB4_6 b LBB4_4 LBB4_4: ; in Loop: Header=BB4_3 Depth=2 ldr x8, [sp, #16] ldrsw x9, [sp, #12] ldr x8, [x8, x9, lsl #3] ldrsw x9, [sp, #8] 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 LBB4_5 LBB4_5: ; in Loop: Header=BB4_3 Depth=2 ldr w8, [sp, #8] add w8, w8, #1 str w8, [sp, #8] b LBB4_3 LBB4_6: ; in Loop: Header=BB4_1 Depth=1 mov x9, sp adrp x8, l_.str.3@PAGE add x8, x8, l_.str.3@PAGEOFF str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf b LBB4_7 LBB4_7: ; in Loop: Header=BB4_1 Depth=1 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB4_1 LBB4_8: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _matrix_mul ; -- Begin function matrix_mul .p2align 2 _matrix_mul: ; @matrix_mul .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 str w0, [sp, #44] str x1, [sp, #32] str x2, [sp, #24] str x3, [sp, #16] str wzr, [sp, #12] b LBB5_1 LBB5_1: ; =>This Loop Header: Depth=1 ; Child Loop BB5_3 Depth 2 ; Child Loop BB5_5 Depth 3 ldr w8, [sp, #12] ldr w9, [sp, #44] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB5_12 b LBB5_2 LBB5_2: ; in Loop: Header=BB5_1 Depth=1 str wzr, [sp, #8] b LBB5_3 LBB5_3: ; Parent Loop BB5_1 Depth=1 ; => This Loop Header: Depth=2 ; Child Loop BB5_5 Depth 3 ldr w8, [sp, #8] ldr w9, [sp, #44] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB5_10 b LBB5_4 LBB5_4: ; in Loop: Header=BB5_3 Depth=2 ldr x8, [sp, #16] ldrsw x9, [sp, #12] ldr x9, [x8, x9, lsl #3] ldrsw x10, [sp, #8] mov w8, #0 str w8, [x9, x10, lsl #2] str wzr, [sp, #4] b LBB5_5 LBB5_5: ; Parent Loop BB5_1 Depth=1 ; Parent Loop BB5_3 Depth=2 ; => This Inner Loop Header: Depth=3 ldr w8, [sp, #4] ldr w9, [sp, #44] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB5_8 b LBB5_6 LBB5_6: ; in Loop: Header=BB5_5 Depth=3 ldr x8, [sp, #32] ldrsw x9, [sp, #12] ldr x8, [x8, x9, lsl #3] ldrsw x9, [sp, #4] ldr w8, [x8, x9, lsl #2] ldr x9, [sp, #24] ldrsw x10, [sp, #4] ldr x9, [x9, x10, lsl #3] ldrsw x10, [sp, #8] ldr w9, [x9, x10, lsl #2] mul w10, w8, w9 ldr x8, [sp, #16] ldrsw x9, [sp, #12] ldr x8, [x8, x9, lsl #3] ldrsw x9, [sp, #8] add x9, x8, x9, lsl #2 ldr w8, [x9] add w8, w8, w10 str w8, [x9] b LBB5_7 LBB5_7: ; in Loop: Header=BB5_5 Depth=3 ldr w8, [sp, #4] add w8, w8, #1 str w8, [sp, #4] b LBB5_5 LBB5_8: ; in Loop: Header=BB5_3 Depth=2 b LBB5_9 LBB5_9: ; in Loop: Header=BB5_3 Depth=2 ldr w8, [sp, #8] add w8, w8, #1 str w8, [sp, #8] b LBB5_3 LBB5_10: ; in Loop: Header=BB5_1 Depth=1 b LBB5_11 LBB5_11: ; in Loop: Header=BB5_1 Depth=1 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB5_1 LBB5_12: add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _matrix_mul_dc ; -- Begin function matrix_mul_dc .p2align 2 _matrix_mul_dc: ; @matrix_mul_dc .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 stur w0, [x29, #-4] stur x1, [x29, #-16] stur x2, [x29, #-24] stur x3, [x29, #-32] ldur w8, [x29, #-4] mov w9, #2 sdiv w8, w8, w9 subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB6_2 b LBB6_1 LBB6_1: ldur w8, [x29, #-4] mov w9, #2 sdiv w0, w8, w9 ldur x1, [x29, #-16] ldur x2, [x29, #-24] ldur x3, [x29, #-32] bl _matrix_mul b LBB6_3 LBB6_2: ldur w8, [x29, #-4] mov w9, #2 str w9, [sp, #4] ; 4-byte Folded Spill sdiv w0, w8, w9 bl _create ldr w9, [sp, #4] ; 4-byte Folded Reload stur x0, [x29, #-40] ldur w8, [x29, #-4] sdiv w0, w8, w9 bl _create ldr w9, [sp, #4] ; 4-byte Folded Reload stur x0, [x29, #-48] ldur w8, [x29, #-4] sdiv w0, w8, w9 bl _create ldr w9, [sp, #4] ; 4-byte Folded Reload stur x0, [x29, #-56] ldur w8, [x29, #-4] sdiv w0, w8, w9 bl _create ldr w9, [sp, #4] ; 4-byte Folded Reload stur x0, [x29, #-64] ldur w8, [x29, #-4] sdiv w0, w8, w9 bl _create ldr w9, [sp, #4] ; 4-byte Folded Reload stur x0, [x29, #-72] ldur w8, [x29, #-4] sdiv w0, w8, w9 bl _create ldr w9, [sp, #4] ; 4-byte Folded Reload str x0, [sp, #80] ldur w8, [x29, #-4] sdiv w0, w8, w9 bl _create ldr w9, [sp, #4] ; 4-byte Folded Reload str x0, [sp, #72] ldur w8, [x29, #-4] sdiv w0, w8, w9 bl _create ldr w9, [sp, #4] ; 4-byte Folded Reload str x0, [sp, #64] ldur w8, [x29, #-4] sdiv w0, w8, w9 bl _create ldr w9, [sp, #4] ; 4-byte Folded Reload str x0, [sp, #56] ldur w8, [x29, #-4] sdiv w0, w8, w9 bl _create ldr w9, [sp, #4] ; 4-byte Folded Reload str x0, [sp, #48] ldur w8, [x29, #-4] sdiv w0, w8, w9 bl _create ldr w9, [sp, #4] ; 4-byte Folded Reload str x0, [sp, #40] ldur w8, [x29, #-4] sdiv w0, w8, w9 bl _create str x0, [sp, #32] ldur w2, [x29, #-4] ldur x3, [x29, #-16] ldur x4, [x29, #-40] mov w1, #0 str w1, [sp] ; 4-byte Folded Spill mov x0, x1 bl _copy ldr w0, [sp] ; 4-byte Folded Reload ldr w9, [sp, #4] ; 4-byte Folded Reload ldur w8, [x29, #-4] sdiv w1, w8, w9 ldur w2, [x29, #-4] ldur x3, [x29, #-16] ldur x4, [x29, #-48] bl _copy ldr w1, [sp] ; 4-byte Folded Reload ldr w9, [sp, #4] ; 4-byte Folded Reload ldur w8, [x29, #-4] sdiv w0, w8, w9 ldur w2, [x29, #-4] ldur x3, [x29, #-16] ldur x4, [x29, #-56] bl _copy ldr w9, [sp, #4] ; 4-byte Folded Reload ldur w8, [x29, #-4] sdiv w0, w8, w9 ldur w8, [x29, #-4] sdiv w1, w8, w9 ldur w2, [x29, #-4] ldur x3, [x29, #-16] ldur x4, [x29, #-64] bl _copy ldr w1, [sp] ; 4-byte Folded Reload ldur w2, [x29, #-4] ldur x3, [x29, #-24] ldur x4, [x29, #-72] mov x0, x1 bl _copy ldr w0, [sp] ; 4-byte Folded Reload ldr w9, [sp, #4] ; 4-byte Folded Reload ldur w8, [x29, #-4] sdiv w1, w8, w9 ldur w2, [x29, #-4] ldur x3, [x29, #-24] ldr x4, [sp, #80] bl _copy ldr w1, [sp] ; 4-byte Folded Reload ldr w9, [sp, #4] ; 4-byte Folded Reload ldur w8, [x29, #-4] sdiv w0, w8, w9 ldur w2, [x29, #-4] ldur x3, [x29, #-24] ldr x4, [sp, #72] bl _copy ldr w9, [sp, #4] ; 4-byte Folded Reload ldur w8, [x29, #-4] sdiv w0, w8, w9 ldur w8, [x29, #-4] sdiv w1, w8, w9 ldur w2, [x29, #-4] ldur x3, [x29, #-24] ldr x4, [sp, #64] bl _copy ldr w9, [sp, #4] ; 4-byte Folded Reload ldur w8, [x29, #-4] sdiv w0, w8, w9 bl _create ldr w9, [sp, #4] ; 4-byte Folded Reload str x0, [sp, #24] ldur w8, [x29, #-4] sdiv w0, w8, w9 bl _create ldr w9, [sp, #4] ; 4-byte Folded Reload str x0, [sp, #16] ldur w8, [x29, #-4] sdiv w0, w8, w9 ldur x1, [x29, #-40] ldur x2, [x29, #-72] ldr x3, [sp, #24] bl _matrix_mul_dc ldr w9, [sp, #4] ; 4-byte Folded Reload ldur w8, [x29, #-4] sdiv w0, w8, w9 ldur x1, [x29, #-48] ldr x2, [sp, #72] ldr x3, [sp, #16] bl _matrix_mul_dc ldr w9, [sp, #4] ; 4-byte Folded Reload ldur w8, [x29, #-4] sdiv w0, w8, w9 ldr x1, [sp, #24] ldr x2, [sp, #16] ldr x3, [sp, #56] bl _add ldr w9, [sp, #4] ; 4-byte Folded Reload ldur w8, [x29, #-4] sdiv w0, w8, w9 ldur x1, [x29, #-40] ldr x2, [sp, #80] ldr x3, [sp, #24] bl _matrix_mul_dc ldr w9, [sp, #4] ; 4-byte Folded Reload ldur w8, [x29, #-4] sdiv w0, w8, w9 ldur x1, [x29, #-48] ldr x2, [sp, #64] ldr x3, [sp, #16] bl _matrix_mul_dc ldr w9, [sp, #4] ; 4-byte Folded Reload ldur w8, [x29, #-4] sdiv w0, w8, w9 ldr x1, [sp, #24] ldr x2, [sp, #16] ldr x3, [sp, #48] bl _add ldr w9, [sp, #4] ; 4-byte Folded Reload ldur w8, [x29, #-4] sdiv w0, w8, w9 ldur x1, [x29, #-56] ldur x2, [x29, #-72] ldr x3, [sp, #24] bl _matrix_mul_dc ldr w9, [sp, #4] ; 4-byte Folded Reload ldur w8, [x29, #-4] sdiv w0, w8, w9 ldur x1, [x29, #-64] ldr x2, [sp, #72] ldr x3, [sp, #16] bl _matrix_mul_dc ldr w9, [sp, #4] ; 4-byte Folded Reload ldur w8, [x29, #-4] sdiv w0, w8, w9 ldr x1, [sp, #24] ldr x2, [sp, #16] ldr x3, [sp, #40] bl _add ldr w9, [sp, #4] ; 4-byte Folded Reload ldur w8, [x29, #-4] sdiv w0, w8, w9 ldur x1, [x29, #-56] ldr x2, [sp, #80] ldr x3, [sp, #24] bl _matrix_mul_dc ldr w9, [sp, #4] ; 4-byte Folded Reload ldur w8, [x29, #-4] sdiv w0, w8, w9 ldur x1, [x29, #-64] ldr x2, [sp, #64] ldr x3, [sp, #16] bl _matrix_mul_dc ldr w9, [sp, #4] ; 4-byte Folded Reload ldur w8, [x29, #-4] sdiv w0, w8, w9 ldr x1, [sp, #24] ldr x2, [sp, #16] ldr x3, [sp, #32] bl _add ldur w0, [x29, #-4] bl _create ldr w1, [sp] ; 4-byte Folded Reload str x0, [sp, #8] ldur w2, [x29, #-4] ldur x3, [x29, #-16] ldr x4, [sp, #8] mov x0, x1 bl _copy ldr w0, [sp] ; 4-byte Folded Reload ldr w9, [sp, #4] ; 4-byte Folded Reload ldur w8, [x29, #-4] sdiv w1, w8, w9 ldur w2, [x29, #-4] ldur x3, [x29, #-16] ldr x4, [sp, #8] bl _copy ldr w1, [sp] ; 4-byte Folded Reload ldr w9, [sp, #4] ; 4-byte Folded Reload ldur w8, [x29, #-4] sdiv w0, w8, w9 ldur w2, [x29, #-4] ldur x3, [x29, #-16] ldr x4, [sp, #8] bl _copy ldr w9, [sp, #4] ; 4-byte Folded Reload ldur w8, [x29, #-4] sdiv w0, w8, w9 ldur w8, [x29, #-4] sdiv w1, w8, w9 ldur w2, [x29, #-4] ldur x3, [x29, #-16] ldr x4, [sp, #8] bl _copy b LBB6_3 LBB6_3: ldp x29, x30, [sp, #160] ; 16-byte Folded Reload add sp, sp, #176 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 x9, sp sub x8, x29, #4 str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _scanf ldur w0, [x29, #-4] bl _create stur x0, [x29, #-16] ldur w0, [x29, #-4] bl _create str x0, [sp, #24] ldur w0, [x29, #-4] ldur x1, [x29, #-16] bl _scan ldur w0, [x29, #-4] ldr x1, [sp, #24] bl _scan ldur w0, [x29, #-4] bl _create str x0, [sp, #16] ldur w0, [x29, #-4] ldur x1, [x29, #-16] ldr x2, [sp, #24] ldr x3, [sp, #16] bl _matrix_mul ldur w0, [x29, #-4] ldr x1, [sp, #16] bl _print ldur w0, [x29, #-4] ldur x1, [x29, #-16] ldr x2, [sp, #24] ldr x3, [sp, #16] bl _matrix_mul_dc ldur w0, [x29, #-4] ldr x1, [sp, #16] bl _print mov w0, #0 ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d" l_.str.1: ; @.str.1 .asciz " %d " l_.str.2: ; @.str.2 .asciz "%s" l_.str.3: ; @.str.3 .asciz "\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _create ## -- Begin function create .p2align 4, 0x90 _create: ## @create .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl %edi, -4(%rbp) movslq -4(%rbp), %rdi shlq $3, %rdi callq _malloc movq %rax, -16(%rbp) movl $0, -20(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movl -20(%rbp), %eax cmpl -4(%rbp), %eax jge LBB0_4 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movslq -4(%rbp), %rdi shlq $2, %rdi callq _malloc movq %rax, %rdx movq -16(%rbp), %rax movslq -20(%rbp), %rcx movq %rdx, (%rax,%rcx,8) ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB0_1 LBB0_4: movq -16(%rbp), %rax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _add ## -- Begin function add .p2align 4, 0x90 _add: ## @add .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, -4(%rbp) movq %rsi, -16(%rbp) movq %rdx, -24(%rbp) movq %rcx, -32(%rbp) movl $0, -36(%rbp) LBB1_1: ## =>This Loop Header: Depth=1 ## Child Loop BB1_3 Depth 2 movl -36(%rbp), %eax cmpl -4(%rbp), %eax jge LBB1_8 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 movl $0, -40(%rbp) LBB1_3: ## Parent Loop BB1_1 Depth=1 ## => This Inner Loop Header: Depth=2 movl -40(%rbp), %eax cmpl -4(%rbp), %eax jge LBB1_6 ## %bb.4: ## in Loop: Header=BB1_3 Depth=2 movq -16(%rbp), %rax movslq -36(%rbp), %rcx movq (%rax,%rcx,8), %rax movslq -40(%rbp), %rcx movl (%rax,%rcx,4), %edx movq -24(%rbp), %rax movslq -36(%rbp), %rcx movq (%rax,%rcx,8), %rax movslq -40(%rbp), %rcx addl (%rax,%rcx,4), %edx movq -32(%rbp), %rax movslq -36(%rbp), %rcx movq (%rax,%rcx,8), %rax movslq -40(%rbp), %rcx movl %edx, (%rax,%rcx,4) ## %bb.5: ## in Loop: Header=BB1_3 Depth=2 movl -40(%rbp), %eax addl $1, %eax movl %eax, -40(%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 -36(%rbp), %eax addl $1, %eax movl %eax, -36(%rbp) jmp LBB1_1 LBB1_8: popq %rbp retq .cfi_endproc ## -- End function .globl _copy ## -- Begin function copy .p2align 4, 0x90 _copy: ## @copy .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, -4(%rbp) movl %esi, -8(%rbp) movl %edx, -12(%rbp) movq %rcx, -24(%rbp) movq %r8, -32(%rbp) movl $0, -36(%rbp) LBB2_1: ## =>This Loop Header: Depth=1 ## Child Loop BB2_3 Depth 2 movl -36(%rbp), %eax movl %eax, -44(%rbp) ## 4-byte Spill movl -12(%rbp), %eax movl $2, %ecx cltd idivl %ecx movl %eax, %ecx movl -44(%rbp), %eax ## 4-byte Reload cmpl %ecx, %eax jge LBB2_8 ## %bb.2: ## in Loop: Header=BB2_1 Depth=1 movl $0, -40(%rbp) LBB2_3: ## Parent Loop BB2_1 Depth=1 ## => This Inner Loop Header: Depth=2 movl -40(%rbp), %eax movl %eax, -48(%rbp) ## 4-byte Spill movl -12(%rbp), %eax movl $2, %ecx cltd idivl %ecx movl %eax, %ecx movl -48(%rbp), %eax ## 4-byte Reload cmpl %ecx, %eax jge LBB2_6 ## %bb.4: ## in Loop: Header=BB2_3 Depth=2 movq -24(%rbp), %rax movl -4(%rbp), %ecx addl -36(%rbp), %ecx movslq %ecx, %rcx movq (%rax,%rcx,8), %rax movl -8(%rbp), %ecx addl -40(%rbp), %ecx movslq %ecx, %rcx movl (%rax,%rcx,4), %edx movq -32(%rbp), %rax movslq -36(%rbp), %rcx movq (%rax,%rcx,8), %rax movslq -40(%rbp), %rcx movl %edx, (%rax,%rcx,4) ## %bb.5: ## in Loop: Header=BB2_3 Depth=2 movl -40(%rbp), %eax addl $1, %eax movl %eax, -40(%rbp) jmp LBB2_3 LBB2_6: ## in Loop: Header=BB2_1 Depth=1 jmp LBB2_7 LBB2_7: ## in Loop: Header=BB2_1 Depth=1 movl -36(%rbp), %eax addl $1, %eax movl %eax, -36(%rbp) jmp LBB2_1 LBB2_8: popq %rbp retq .cfi_endproc ## -- End function .globl _scan ## -- Begin function scan .p2align 4, 0x90 _scan: ## @scan .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl %edi, -4(%rbp) movq %rsi, -16(%rbp) movl $0, -20(%rbp) LBB3_1: ## =>This Loop Header: Depth=1 ## Child Loop BB3_3 Depth 2 movl -20(%rbp), %eax cmpl -4(%rbp), %eax jge LBB3_8 ## %bb.2: ## in Loop: Header=BB3_1 Depth=1 movl $0, -24(%rbp) LBB3_3: ## Parent Loop BB3_1 Depth=1 ## => This Inner Loop Header: Depth=2 movl -24(%rbp), %eax cmpl -4(%rbp), %eax jge LBB3_6 ## %bb.4: ## in Loop: Header=BB3_3 Depth=2 movq -16(%rbp), %rax movslq -20(%rbp), %rcx movq (%rax,%rcx,8), %rsi movslq -24(%rbp), %rax shlq $2, %rax addq %rax, %rsi leaq L_.str(%rip), %rdi movb $0, %al callq _scanf ## %bb.5: ## in Loop: Header=BB3_3 Depth=2 movl -24(%rbp), %eax addl $1, %eax movl %eax, -24(%rbp) jmp LBB3_3 LBB3_6: ## in Loop: Header=BB3_1 Depth=1 jmp LBB3_7 LBB3_7: ## in Loop: Header=BB3_1 Depth=1 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB3_1 LBB3_8: addq $32, %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 $32, %rsp movl %edi, -4(%rbp) movq %rsi, -16(%rbp) movl $0, -20(%rbp) LBB4_1: ## =>This Loop Header: Depth=1 ## Child Loop BB4_3 Depth 2 movl -20(%rbp), %eax cmpl -4(%rbp), %eax jge LBB4_8 ## %bb.2: ## in Loop: Header=BB4_1 Depth=1 movl $0, -24(%rbp) LBB4_3: ## Parent Loop BB4_1 Depth=1 ## => This Inner Loop Header: Depth=2 movl -24(%rbp), %eax cmpl -4(%rbp), %eax jge LBB4_6 ## %bb.4: ## in Loop: Header=BB4_3 Depth=2 movq -16(%rbp), %rax movslq -20(%rbp), %rcx movq (%rax,%rcx,8), %rax movslq -24(%rbp), %rcx movl (%rax,%rcx,4), %esi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf ## %bb.5: ## in Loop: Header=BB4_3 Depth=2 movl -24(%rbp), %eax addl $1, %eax movl %eax, -24(%rbp) jmp LBB4_3 LBB4_6: ## in Loop: Header=BB4_1 Depth=1 leaq L_.str.2(%rip), %rdi leaq L_.str.3(%rip), %rsi movb $0, %al callq _printf ## %bb.7: ## in Loop: Header=BB4_1 Depth=1 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB4_1 LBB4_8: addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _matrix_mul ## -- Begin function matrix_mul .p2align 4, 0x90 _matrix_mul: ## @matrix_mul .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, -4(%rbp) movq %rsi, -16(%rbp) movq %rdx, -24(%rbp) movq %rcx, -32(%rbp) movl $0, -36(%rbp) LBB5_1: ## =>This Loop Header: Depth=1 ## Child Loop BB5_3 Depth 2 ## Child Loop BB5_5 Depth 3 movl -36(%rbp), %eax cmpl -4(%rbp), %eax jge LBB5_12 ## %bb.2: ## in Loop: Header=BB5_1 Depth=1 movl $0, -40(%rbp) LBB5_3: ## Parent Loop BB5_1 Depth=1 ## => This Loop Header: Depth=2 ## Child Loop BB5_5 Depth 3 movl -40(%rbp), %eax cmpl -4(%rbp), %eax jge LBB5_10 ## %bb.4: ## in Loop: Header=BB5_3 Depth=2 movq -32(%rbp), %rax movslq -36(%rbp), %rcx movq (%rax,%rcx,8), %rax movslq -40(%rbp), %rcx movl $0, (%rax,%rcx,4) movl $0, -44(%rbp) LBB5_5: ## Parent Loop BB5_1 Depth=1 ## Parent Loop BB5_3 Depth=2 ## => This Inner Loop Header: Depth=3 movl -44(%rbp), %eax cmpl -4(%rbp), %eax jge LBB5_8 ## %bb.6: ## in Loop: Header=BB5_5 Depth=3 movq -16(%rbp), %rax movslq -36(%rbp), %rcx movq (%rax,%rcx,8), %rax movslq -44(%rbp), %rcx movl (%rax,%rcx,4), %edx movq -24(%rbp), %rax movslq -44(%rbp), %rcx movq (%rax,%rcx,8), %rax movslq -40(%rbp), %rcx imull (%rax,%rcx,4), %edx movq -32(%rbp), %rax movslq -36(%rbp), %rcx movq (%rax,%rcx,8), %rax movslq -40(%rbp), %rcx addl (%rax,%rcx,4), %edx movl %edx, (%rax,%rcx,4) ## %bb.7: ## in Loop: Header=BB5_5 Depth=3 movl -44(%rbp), %eax addl $1, %eax movl %eax, -44(%rbp) jmp LBB5_5 LBB5_8: ## in Loop: Header=BB5_3 Depth=2 jmp LBB5_9 LBB5_9: ## in Loop: Header=BB5_3 Depth=2 movl -40(%rbp), %eax addl $1, %eax movl %eax, -40(%rbp) jmp LBB5_3 LBB5_10: ## in Loop: Header=BB5_1 Depth=1 jmp LBB5_11 LBB5_11: ## in Loop: Header=BB5_1 Depth=1 movl -36(%rbp), %eax addl $1, %eax movl %eax, -36(%rbp) jmp LBB5_1 LBB5_12: popq %rbp retq .cfi_endproc ## -- End function .globl _matrix_mul_dc ## -- Begin function matrix_mul_dc .p2align 4, 0x90 _matrix_mul_dc: ## @matrix_mul_dc .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $160, %rsp movl %edi, -4(%rbp) movq %rsi, -16(%rbp) movq %rdx, -24(%rbp) movq %rcx, -32(%rbp) movl -4(%rbp), %eax movl $2, %ecx cltd idivl %ecx cmpl $1, %eax jne LBB6_2 ## %bb.1: movl -4(%rbp), %eax movl $2, %ecx cltd idivl %ecx movl %eax, %edi movq -16(%rbp), %rsi movq -24(%rbp), %rdx movq -32(%rbp), %rcx callq _matrix_mul jmp LBB6_3 LBB6_2: movl -4(%rbp), %eax movl $2, %ecx cltd idivl %ecx movl %eax, %edi callq _create movq %rax, -40(%rbp) movl -4(%rbp), %eax movl $2, %ecx cltd idivl %ecx movl %eax, %edi callq _create movq %rax, -48(%rbp) movl -4(%rbp), %eax movl $2, %ecx cltd idivl %ecx movl %eax, %edi callq _create movq %rax, -56(%rbp) movl -4(%rbp), %eax movl $2, %ecx cltd idivl %ecx movl %eax, %edi callq _create movq %rax, -64(%rbp) movl -4(%rbp), %eax movl $2, %ecx cltd idivl %ecx movl %eax, %edi callq _create movq %rax, -72(%rbp) movl -4(%rbp), %eax movl $2, %ecx cltd idivl %ecx movl %eax, %edi callq _create movq %rax, -80(%rbp) movl -4(%rbp), %eax movl $2, %ecx cltd idivl %ecx movl %eax, %edi callq _create movq %rax, -88(%rbp) movl -4(%rbp), %eax movl $2, %ecx cltd idivl %ecx movl %eax, %edi callq _create movq %rax, -96(%rbp) movl -4(%rbp), %eax movl $2, %ecx cltd idivl %ecx movl %eax, %edi callq _create movq %rax, -104(%rbp) movl -4(%rbp), %eax movl $2, %ecx cltd idivl %ecx movl %eax, %edi callq _create movq %rax, -112(%rbp) movl -4(%rbp), %eax movl $2, %ecx cltd idivl %ecx movl %eax, %edi callq _create movq %rax, -120(%rbp) movl -4(%rbp), %eax movl $2, %ecx cltd idivl %ecx movl %eax, %edi callq _create movq %rax, -128(%rbp) movl -4(%rbp), %edx movq -16(%rbp), %rcx movq -40(%rbp), %r8 xorl %esi, %esi movl %esi, %edi callq _copy movl -4(%rbp), %eax movl $2, %ecx cltd idivl %ecx movl %eax, %esi movl -4(%rbp), %edx movq -16(%rbp), %rcx movq -48(%rbp), %r8 xorl %edi, %edi callq _copy movl -4(%rbp), %eax movl $2, %ecx cltd idivl %ecx movl %eax, %edi movl -4(%rbp), %edx movq -16(%rbp), %rcx movq -56(%rbp), %r8 xorl %esi, %esi callq _copy movl -4(%rbp), %eax movl $2, %ecx cltd idivl %ecx movl %eax, %edi movl -4(%rbp), %eax movl $2, %ecx cltd idivl %ecx movl %eax, %esi movl -4(%rbp), %edx movq -16(%rbp), %rcx movq -64(%rbp), %r8 callq _copy movl -4(%rbp), %edx movq -24(%rbp), %rcx movq -72(%rbp), %r8 xorl %esi, %esi movl %esi, %edi callq _copy movl -4(%rbp), %eax movl $2, %ecx cltd idivl %ecx movl %eax, %esi movl -4(%rbp), %edx movq -24(%rbp), %rcx movq -80(%rbp), %r8 xorl %edi, %edi callq _copy movl -4(%rbp), %eax movl $2, %ecx cltd idivl %ecx movl %eax, %edi movl -4(%rbp), %edx movq -24(%rbp), %rcx movq -88(%rbp), %r8 xorl %esi, %esi callq _copy movl -4(%rbp), %eax movl $2, %ecx cltd idivl %ecx movl %eax, %edi movl -4(%rbp), %eax movl $2, %ecx cltd idivl %ecx movl %eax, %esi movl -4(%rbp), %edx movq -24(%rbp), %rcx movq -96(%rbp), %r8 callq _copy movl -4(%rbp), %eax movl $2, %ecx cltd idivl %ecx movl %eax, %edi callq _create movq %rax, -136(%rbp) movl -4(%rbp), %eax movl $2, %ecx cltd idivl %ecx movl %eax, %edi callq _create movq %rax, -144(%rbp) movl -4(%rbp), %eax movl $2, %ecx cltd idivl %ecx movl %eax, %edi movq -40(%rbp), %rsi movq -72(%rbp), %rdx movq -136(%rbp), %rcx callq _matrix_mul_dc movl -4(%rbp), %eax movl $2, %ecx cltd idivl %ecx movl %eax, %edi movq -48(%rbp), %rsi movq -88(%rbp), %rdx movq -144(%rbp), %rcx callq _matrix_mul_dc movl -4(%rbp), %eax movl $2, %ecx cltd idivl %ecx movl %eax, %edi movq -136(%rbp), %rsi movq -144(%rbp), %rdx movq -104(%rbp), %rcx callq _add movl -4(%rbp), %eax movl $2, %ecx cltd idivl %ecx movl %eax, %edi movq -40(%rbp), %rsi movq -80(%rbp), %rdx movq -136(%rbp), %rcx callq _matrix_mul_dc movl -4(%rbp), %eax movl $2, %ecx cltd idivl %ecx movl %eax, %edi movq -48(%rbp), %rsi movq -96(%rbp), %rdx movq -144(%rbp), %rcx callq _matrix_mul_dc movl -4(%rbp), %eax movl $2, %ecx cltd idivl %ecx movl %eax, %edi movq -136(%rbp), %rsi movq -144(%rbp), %rdx movq -112(%rbp), %rcx callq _add movl -4(%rbp), %eax movl $2, %ecx cltd idivl %ecx movl %eax, %edi movq -56(%rbp), %rsi movq -72(%rbp), %rdx movq -136(%rbp), %rcx callq _matrix_mul_dc movl -4(%rbp), %eax movl $2, %ecx cltd idivl %ecx movl %eax, %edi movq -64(%rbp), %rsi movq -88(%rbp), %rdx movq -144(%rbp), %rcx callq _matrix_mul_dc movl -4(%rbp), %eax movl $2, %ecx cltd idivl %ecx movl %eax, %edi movq -136(%rbp), %rsi movq -144(%rbp), %rdx movq -120(%rbp), %rcx callq _add movl -4(%rbp), %eax movl $2, %ecx cltd idivl %ecx movl %eax, %edi movq -56(%rbp), %rsi movq -80(%rbp), %rdx movq -136(%rbp), %rcx callq _matrix_mul_dc movl -4(%rbp), %eax movl $2, %ecx cltd idivl %ecx movl %eax, %edi movq -64(%rbp), %rsi movq -96(%rbp), %rdx movq -144(%rbp), %rcx callq _matrix_mul_dc movl -4(%rbp), %eax movl $2, %ecx cltd idivl %ecx movl %eax, %edi movq -136(%rbp), %rsi movq -144(%rbp), %rdx movq -128(%rbp), %rcx callq _add movl -4(%rbp), %edi callq _create movq %rax, -152(%rbp) movl -4(%rbp), %edx movq -16(%rbp), %rcx movq -152(%rbp), %r8 xorl %esi, %esi movl %esi, %edi callq _copy movl -4(%rbp), %eax movl $2, %ecx cltd idivl %ecx movl %eax, %esi movl -4(%rbp), %edx movq -16(%rbp), %rcx movq -152(%rbp), %r8 xorl %edi, %edi callq _copy movl -4(%rbp), %eax movl $2, %ecx cltd idivl %ecx movl %eax, %edi movl -4(%rbp), %edx movq -16(%rbp), %rcx movq -152(%rbp), %r8 xorl %esi, %esi callq _copy movl -4(%rbp), %eax movl $2, %ecx cltd idivl %ecx movl %eax, %edi movl -4(%rbp), %eax movl $2, %ecx cltd idivl %ecx movl %eax, %esi movl -4(%rbp), %edx movq -16(%rbp), %rcx movq -152(%rbp), %r8 callq _copy LBB6_3: addq $160, %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(%rip), %rdi leaq -4(%rbp), %rsi movb $0, %al callq _scanf movl -4(%rbp), %edi callq _create movq %rax, -16(%rbp) movl -4(%rbp), %edi callq _create movq %rax, -24(%rbp) movl -4(%rbp), %edi movq -16(%rbp), %rsi callq _scan movl -4(%rbp), %edi movq -24(%rbp), %rsi callq _scan movl -4(%rbp), %edi callq _create movq %rax, -32(%rbp) movl -4(%rbp), %edi movq -16(%rbp), %rsi movq -24(%rbp), %rdx movq -32(%rbp), %rcx callq _matrix_mul movl -4(%rbp), %edi movq -32(%rbp), %rsi callq _print movl -4(%rbp), %edi movq -16(%rbp), %rsi movq -24(%rbp), %rdx movq -32(%rbp), %rcx callq _matrix_mul_dc movl -4(%rbp), %edi movq -32(%rbp), %rsi callq _print 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 " L_.str.2: ## @.str.2 .asciz "%s" L_.str.3: ## @.str.3 .asciz "\n" .subsections_via_symbols
the_stack_data/40762423.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 xzr, [x29, #-24] stur xzr, [x29, #-16] stur xzr, [x29, #-8] ldursb w16, [x29, #-24] ldur w8, [x29, #-20] ; implicit-def: $x14 mov x14, x8 ldur x8, [x29, #-16] ldursb w13, [x29, #-8] ldursb w12, [x29, #-7] ldursb w11, [x29, #-6] ldursb w10, [x29, #-5] mov x9, sp ; implicit-def: $x15 mov x15, x16 str x15, [x9] str x14, [x9, #8] str x8, [x9, #16] ; implicit-def: $x8 mov x8, x13 str x8, [x9, #24] ; implicit-def: $x8 mov x8, x12 str x8, [x9, #32] ; implicit-def: $x8 mov x8, x11 str x8, [x9, #40] ; implicit-def: $x8 mov x8, x10 str x8, [x9, #48] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov w0, #0 ldp x29, x30, [sp, #80] ; 16-byte Folded Reload add sp, sp, #96 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d %d %ld %d %d %d %d\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp leaq -24(%rbp), %rdi xorl %esi, %esi movl $24, %edx callq _memset movsbl -24(%rbp), %esi movl -20(%rbp), %edx movq -16(%rbp), %rcx movsbl -8(%rbp), %r8d movsbl -7(%rbp), %r9d movsbl -6(%rbp), %r10d movsbl -5(%rbp), %eax leaq L_.str(%rip), %rdi movl %r10d, (%rsp) movl %eax, 8(%rsp) movb $0, %al callq _printf xorl %eax, %eax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d %d %ld %d %d %d %d\n" .subsections_via_symbols
the_stack_data/7949016.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _mattr ; -- Begin function mattr .p2align 2 _mattr: ; @mattr .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 str x0, [sp, #40] str x1, [sp, #32] str w2, [sp, #28] str w3, [sp, #24] str wzr, [sp, #12] b LBB0_1 LBB0_1: ; =>This Loop Header: Depth=1 ; Child Loop BB0_3 Depth 2 ldr w8, [sp, #12] ldr w9, [sp, #24] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_8 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 str wzr, [sp, #8] ldr x8, [sp, #32] str x8, [sp, #16] b LBB0_3 LBB0_3: ; Parent Loop BB0_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #8] ldr w9, [sp, #28] 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 x8, [sp, #16] ldr d0, [x8] ldr x8, [sp, #40] add x9, x8, #8 str x9, [sp, #40] str d0, [x8] b LBB0_5 LBB0_5: ; in Loop: Header=BB0_3 Depth=2 ldr w8, [sp, #8] add w8, w8, #1 str w8, [sp, #8] ldrsw x9, [sp, #24] ldr x8, [sp, #16] add x8, x8, x9, lsl #3 str x8, [sp, #16] b LBB0_3 LBB0_6: ; in Loop: Header=BB0_1 Depth=1 b LBB0_7 LBB0_7: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] ldr x8, [sp, #32] add x8, x8, #8 str x8, [sp, #32] b LBB0_1 LBB0_8: 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 _mattr ## -- Begin function mattr .p2align 4, 0x90 _mattr: ## @mattr .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) movl %edx, -20(%rbp) movl %ecx, -24(%rbp) movl $0, -36(%rbp) LBB0_1: ## =>This Loop Header: Depth=1 ## Child Loop BB0_3 Depth 2 movl -36(%rbp), %eax cmpl -24(%rbp), %eax jge LBB0_8 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl $0, -40(%rbp) movq -16(%rbp), %rax movq %rax, -32(%rbp) LBB0_3: ## Parent Loop BB0_1 Depth=1 ## => This Inner Loop Header: Depth=2 movl -40(%rbp), %eax cmpl -20(%rbp), %eax jge LBB0_6 ## %bb.4: ## in Loop: Header=BB0_3 Depth=2 movq -32(%rbp), %rax movsd (%rax), %xmm0 ## xmm0 = mem[0],zero movq -8(%rbp), %rax movq %rax, %rcx addq $8, %rcx movq %rcx, -8(%rbp) movsd %xmm0, (%rax) ## %bb.5: ## in Loop: Header=BB0_3 Depth=2 movl -40(%rbp), %eax addl $1, %eax movl %eax, -40(%rbp) movl -24(%rbp), %ecx movq -32(%rbp), %rax movslq %ecx, %rcx shlq $3, %rcx addq %rcx, %rax movq %rax, -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 -36(%rbp), %eax addl $1, %eax movl %eax, -36(%rbp) movq -16(%rbp), %rax addq $8, %rax movq %rax, -16(%rbp) jmp LBB0_1 LBB0_8: popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/178266782.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #80 .cfi_def_cfa_offset 80 stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp, #64 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] stur w0, [x29, #-8] stur x1, [x29, #-16] ldur w8, [x29, #-8] subs w8, w8, #5 cset w8, eq tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: bl _print_usage b LBB0_2 LBB0_2: b LBB0_3 LBB0_3: ; =>This Inner Loop Header: Depth=1 ldur w0, [x29, #-8] ldur x1, [x29, #-16] adrp x2, l_.str@PAGE add x2, x2, l_.str@PAGEOFF bl _getopt stur w0, [x29, #-20] adds w8, w0, #1 cset w8, eq tbnz w8, #0, LBB0_10 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_3 Depth=1 ldur w8, [x29, #-20] str w8, [sp, #28] ; 4-byte Folded Spill subs w8, w8, #97 cset w8, eq tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_3 Depth=1 ldr w8, [sp, #28] ; 4-byte Folded Reload subs w8, w8, #114 cset w8, eq tbnz w8, #0, LBB0_7 b LBB0_8 LBB0_6: ; in Loop: Header=BB0_3 Depth=1 adrp x8, _optarg@GOTPAGE ldr x8, [x8, _optarg@GOTPAGEOFF] ldr x0, [x8] bl _atof fcvt s0, d0 stur s0, [x29, #-24] b LBB0_9 LBB0_7: ; in Loop: Header=BB0_3 Depth=1 adrp x8, _optarg@GOTPAGE ldr x8, [x8, _optarg@GOTPAGEOFF] ldr x0, [x8] bl _atof fcvt s0, d0 stur s0, [x29, #-28] b LBB0_9 LBB0_8: ; in Loop: Header=BB0_3 Depth=1 bl _print_usage b LBB0_9 LBB0_9: ; in Loop: Header=BB0_3 Depth=1 b LBB0_3 LBB0_10: ldur s0, [x29, #-24] ldur s1, [x29, #-28] bl _area_of_square_from_arc str s0, [sp, #32] ldur s0, [x29, #-28] fcvt d2, s0 ldur s0, [x29, #-24] fcvt d1, s0 ldr s0, [sp, #32] fcvt d0, s0 mov x8, sp str d2, [x8] str d1, [x8, #8] str d0, [x8, #16] 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 .globl _print_usage ; -- Begin function print_usage .p2align 2 _print_usage: ; @print_usage .cfi_startproc ; %bb.0: stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill .cfi_def_cfa_offset 16 mov x29, sp .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf mov w0, #2 bl _exit .cfi_endproc ; -- End function .globl _area_of_square_from_arc ; -- Begin function area_of_square_from_arc .p2align 2 _area_of_square_from_arc: ; @area_of_square_from_arc .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] ldur s0, [x29, #-4] ldr s1, [sp, #8] bl _arc_length str s0, [sp, #4] ldr s0, [sp, #4] bl _line_to_square_side str s0, [sp] ldr s0, [sp] bl _area_of_square ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _arc_length ; -- Begin function arc_length .p2align 2 _arc_length: ; @arc_length .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] ldur s0, [x29, #-4] bl _get_radians str d0, [sp] ldr d0, [sp] ldr s1, [sp, #8] fcvt d1, s1 fmul d0, d0, d1 fcvt s0, d0 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _line_to_square_side ; -- Begin function line_to_square_side .p2align 2 _line_to_square_side: ; @line_to_square_side .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str s0, [sp, #12] ldr s0, [sp, #12] fmov s1, #4.00000000 fdiv s0, s0, s1 str s0, [sp, #8] ldr s0, [sp, #8] add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _area_of_square ; -- Begin function area_of_square .p2align 2 _area_of_square: ; @area_of_square .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str s0, [sp, #12] ldr s0, [sp, #12] ldr s1, [sp, #12] fmul s0, s0, s1 add sp, sp, #16 ret .cfi_endproc ; -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ; -- Begin function get_radians lCPI6_0: .quad 0x3f91df46a2529d39 ; double 0.017453292519943295 .section __TEXT,__text,regular,pure_instructions .globl _get_radians .p2align 2 _get_radians: ; @get_radians .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str s0, [sp, #12] ldr s0, [sp, #12] fcvt d1, s0 adrp x8, lCPI6_0@PAGE ldr d0, [x8, lCPI6_0@PAGEOFF] fmul d0, d0, d1 add sp, sp, #16 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "a:r:" l_.str.1: ; @.str.1 .asciz "Area of square formed from an arc of radius %.2f and angle %.2f degrees is %.3f" l_.str.2: ; @.str.2 .asciz "Usage: a.exe -r <radius> -a <angle in degrees>\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 $5, -8(%rbp) je LBB0_2 ## %bb.1: callq _print_usage LBB0_2: jmp LBB0_3 LBB0_3: ## =>This Inner Loop Header: Depth=1 movl -8(%rbp), %edi movq -16(%rbp), %rsi leaq L_.str(%rip), %rdx callq _getopt movl %eax, -20(%rbp) cmpl $-1, %eax je LBB0_9 ## %bb.4: ## in Loop: Header=BB0_3 Depth=1 movl -20(%rbp), %eax movl %eax, -36(%rbp) ## 4-byte Spill subl $97, %eax je LBB0_5 jmp LBB0_10 LBB0_10: ## in Loop: Header=BB0_3 Depth=1 movl -36(%rbp), %eax ## 4-byte Reload subl $114, %eax je LBB0_6 jmp LBB0_7 LBB0_5: ## in Loop: Header=BB0_3 Depth=1 movq _optarg@GOTPCREL(%rip), %rax movq (%rax), %rdi callq _atof cvtsd2ss %xmm0, %xmm0 movss %xmm0, -24(%rbp) jmp LBB0_8 LBB0_6: ## in Loop: Header=BB0_3 Depth=1 movq _optarg@GOTPCREL(%rip), %rax movq (%rax), %rdi callq _atof cvtsd2ss %xmm0, %xmm0 movss %xmm0, -28(%rbp) jmp LBB0_8 LBB0_7: ## in Loop: Header=BB0_3 Depth=1 callq _print_usage LBB0_8: ## in Loop: Header=BB0_3 Depth=1 jmp LBB0_3 LBB0_9: movss -24(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss -28(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero callq _area_of_square_from_arc movss %xmm0, -32(%rbp) movss -28(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movss -24(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero cvtss2sd %xmm1, %xmm1 movss -32(%rbp), %xmm2 ## xmm2 = mem[0],zero,zero,zero cvtss2sd %xmm2, %xmm2 leaq L_.str.1(%rip), %rdi movb $3, %al callq _printf xorl %eax, %eax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _print_usage ## -- Begin function print_usage .p2align 4, 0x90 _print_usage: ## @print_usage .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq L_.str.2(%rip), %rdi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _printf movl $2, %edi callq _exit .cfi_endproc ## -- End function .globl _area_of_square_from_arc ## -- Begin function area_of_square_from_arc .p2align 4, 0x90 _area_of_square_from_arc: ## @area_of_square_from_arc .cfi_startproc ## %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 -4(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss -8(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero callq _arc_length movss %xmm0, -12(%rbp) movss -12(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero callq _line_to_square_side movss %xmm0, -16(%rbp) movss -16(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero callq _area_of_square addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _arc_length ## -- Begin function arc_length .p2align 4, 0x90 _arc_length: ## @arc_length .cfi_startproc ## %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 -4(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero callq _get_radians movsd %xmm0, -16(%rbp) movsd -16(%rbp), %xmm0 ## xmm0 = mem[0],zero movss -8(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero cvtss2sd %xmm1, %xmm1 mulsd %xmm1, %xmm0 cvtsd2ss %xmm0, %xmm0 addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__literal4,4byte_literals .p2align 2 ## -- Begin function line_to_square_side LCPI4_0: .long 0x40800000 ## float 4 .section __TEXT,__text,regular,pure_instructions .globl _line_to_square_side .p2align 4, 0x90 _line_to_square_side: ## @line_to_square_side .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movss %xmm0, -4(%rbp) movss -4(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss LCPI4_0(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero divss %xmm1, %xmm0 movss %xmm0, -8(%rbp) movss -8(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero popq %rbp retq .cfi_endproc ## -- End function .globl _area_of_square ## -- Begin function area_of_square .p2align 4, 0x90 _area_of_square: ## @area_of_square .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movss %xmm0, -4(%rbp) movss -4(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero mulss -4(%rbp), %xmm0 popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ## -- Begin function get_radians LCPI6_0: .quad 0x3f91df46a2529d39 ## double 0.017453292519943295 .section __TEXT,__text,regular,pure_instructions .globl _get_radians .p2align 4, 0x90 _get_radians: ## @get_radians .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movss %xmm0, -4(%rbp) movss -4(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm1 movsd LCPI6_0(%rip), %xmm0 ## xmm0 = mem[0],zero mulsd %xmm1, %xmm0 popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "a:r:" L_.str.1: ## @.str.1 .asciz "Area of square formed from an arc of radius %.2f and angle %.2f degrees is %.3f" L_.str.2: ## @.str.2 .asciz "Usage: a.exe -r <radius> -a <angle in degrees>\n" .subsections_via_symbols
the_stack_data/153268427.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _check_digit ; -- Begin function check_digit .p2align 2 _check_digit: ; @check_digit .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 strb w0, [sp, #15] str x1, [sp] ldrsb w9, [sp, #15] mov w8, #48 subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: ldrsb w8, [sp, #15] subs w8, w8, #57 cset w8, le tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: ldr x8, [sp] str wzr, [x8] b LBB0_3 LBB0_3: add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _ft_str_is_numeric ; -- Begin function ft_str_is_numeric .p2align 2 _ft_str_is_numeric: ; @ft_str_is_numeric .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] add x8, sp, #16 str x8, [sp, #8] mov w8, #1 str w8, [sp, #16] b LBB1_1 LBB1_1: ; =>This Inner Loop Header: Depth=1 ldur x8, [x29, #-8] ldursw x9, [x29, #-12] ldrsb w8, [x8, x9] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB1_3 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 ldur x8, [x29, #-8] ldursw x9, [x29, #-12] ldrsb w0, [x8, x9] ldr x1, [sp, #8] bl _check_digit ldur w8, [x29, #-12] add w8, w8, #1 stur w8, [x29, #-12] b LBB1_1 LBB1_3: ldr w0, [sp, #16] 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 _check_digit ## -- Begin function check_digit .p2align 4, 0x90 _check_digit: ## @check_digit .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movb %dil, %al movb %al, -1(%rbp) movq %rsi, -16(%rbp) movsbl -1(%rbp), %ecx movl $48, %eax cmpl %ecx, %eax jg LBB0_2 ## %bb.1: movsbl -1(%rbp), %eax cmpl $57, %eax jle LBB0_3 LBB0_2: movq -16(%rbp), %rax movl $0, (%rax) LBB0_3: popq %rbp retq .cfi_endproc ## -- End function .globl _ft_str_is_numeric ## -- Begin function ft_str_is_numeric .p2align 4, 0x90 _ft_str_is_numeric: ## @ft_str_is_numeric .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movl $0, -12(%rbp) leaq -16(%rbp), %rax movq %rax, -24(%rbp) movl $1, -16(%rbp) LBB1_1: ## =>This Inner Loop Header: Depth=1 movq -8(%rbp), %rax movslq -12(%rbp), %rcx movsbl (%rax,%rcx), %eax cmpl $0, %eax je LBB1_3 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 movq -8(%rbp), %rax movslq -12(%rbp), %rcx movb (%rax,%rcx), %al movq -24(%rbp), %rsi movsbl %al, %edi callq _check_digit movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB1_1 LBB1_3: movl -16(%rbp), %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/248581150.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str wzr, [sp, #28] str w0, [sp, #24] str x1, [sp, #16] str x2, [sp, #8] mov w0, #123 add sp, sp, #32 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl $0, -4(%rbp) movl %edi, -8(%rbp) movq %rsi, -16(%rbp) movq %rdx, -24(%rbp) movl $123, %eax popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/108750.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _abs ; -- Begin function abs .p2align 2 _abs: ; @abs .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #8] ldr w8, [sp, #8] subs w8, w8, #0 cset w8, ge tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: ldr w9, [sp, #8] mov w8, #0 subs w8, w8, w9 str w8, [sp, #12] b LBB0_3 LBB0_2: ldr w8, [sp, #8] str w8, [sp, #12] b LBB0_3 LBB0_3: ldr w0, [sp, #12] add sp, sp, #16 ret .cfi_endproc ; -- End function .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 wzr, [sp, #8] str wzr, [sp, #4] b LBB1_1 LBB1_1: ; =>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_4 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 ldr w9, [sp, #4] ldr w8, [sp, #8] add w8, w8, w9 str w8, [sp, #8] b LBB1_3 LBB1_3: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #4] add w8, w8, #1 str w8, [sp, #4] b LBB1_1 LBB1_4: ldr w0, [sp, #8] add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill .cfi_def_cfa_offset 16 mov x29, sp .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 sub sp, sp, #96 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] stur wzr, [x29, #-12] 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, #-24] stur wzr, [x29, #-28] stur wzr, [x29, #-32] b LBB2_1 LBB2_1: ; =>This Inner Loop Header: Depth=1 ldur x0, [x29, #-24] bl _feof subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB2_3 b LBB2_2 LBB2_2: ; in Loop: Header=BB2_1 Depth=1 ldur x0, [x29, #-24] sub sp, sp, #16 mov x9, sp sub x8, x29, #32 str x8, [x9] adrp x1, l_.str.2@PAGE add x1, x1, l_.str.2@PAGEOFF bl _fscanf add sp, sp, #16 ldur w8, [x29, #-28] add w8, w8, #1 stur w8, [x29, #-28] b LBB2_1 LBB2_3: ldur w8, [x29, #-28] ; kill: def $x8 killed $w8 mov x9, sp stur x9, [x29, #-40] lsl x9, x8, #2 add x9, x9, #15 and x9, x9, #0xfffffffffffffff0 stur x9, [x29, #-80] ; 8-byte Folded Spill adrp x16, ___chkstk_darwin@GOTPAGE ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF] blr x16 ldur x10, [x29, #-80] ; 8-byte Folded Reload mov x9, sp subs x9, x9, x10 mov sp, x9 stur x9, [x29, #-72] ; 8-byte Folded Spill stur x8, [x29, #-48] stur wzr, [x29, #-28] ldur x0, [x29, #-24] bl _rewind b LBB2_4 LBB2_4: ; =>This Inner Loop Header: Depth=1 ldur x0, [x29, #-24] bl _feof subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB2_6 b LBB2_5 LBB2_5: ; in Loop: Header=BB2_4 Depth=1 ldur x8, [x29, #-72] ; 8-byte Folded Reload ldur x0, [x29, #-24] ldursw x9, [x29, #-28] add x8, x8, x9, lsl #2 sub sp, sp, #16 mov x9, sp str x8, [x9] adrp x1, l_.str.2@PAGE add x1, x1, l_.str.2@PAGEOFF bl _fscanf add sp, sp, #16 ldur w8, [x29, #-28] add w8, w8, #1 stur w8, [x29, #-28] b LBB2_4 LBB2_6: mov w8, #51711 movk w8, #15258, lsl #16 stur w8, [x29, #-52] stur wzr, [x29, #-32] stur wzr, [x29, #-56] b LBB2_7 LBB2_7: ; =>This Loop Header: Depth=1 ; Child Loop BB2_9 Depth 2 ldur w8, [x29, #-56] subs w8, w8, #2000 cset w8, ge tbnz w8, #0, LBB2_16 b LBB2_8 LBB2_8: ; in Loop: Header=BB2_7 Depth=1 stur wzr, [x29, #-32] stur wzr, [x29, #-60] b LBB2_9 LBB2_9: ; Parent Loop BB2_7 Depth=1 ; => This Inner Loop Header: Depth=2 ldur w8, [x29, #-60] ldur w9, [x29, #-28] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB2_12 b LBB2_10 LBB2_10: ; in Loop: Header=BB2_9 Depth=2 ldur x8, [x29, #-72] ; 8-byte Folded Reload ldursw x9, [x29, #-60] ldr w8, [x8, x9, lsl #2] ldur w9, [x29, #-56] subs w0, w8, w9 bl _abs ldur w8, [x29, #-32] add w8, w8, w0 stur w8, [x29, #-32] b LBB2_11 LBB2_11: ; in Loop: Header=BB2_9 Depth=2 ldur w8, [x29, #-60] add w8, w8, #1 stur w8, [x29, #-60] b LBB2_9 LBB2_12: ; in Loop: Header=BB2_7 Depth=1 ldur w8, [x29, #-52] ldur w9, [x29, #-32] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB2_14 b LBB2_13 LBB2_13: ; in Loop: Header=BB2_7 Depth=1 ldur w8, [x29, #-32] stur w8, [x29, #-52] b LBB2_14 LBB2_14: ; in Loop: Header=BB2_7 Depth=1 b LBB2_15 LBB2_15: ; in Loop: Header=BB2_7 Depth=1 ldur w8, [x29, #-56] add w8, w8, #1 stur w8, [x29, #-56] b LBB2_7 LBB2_16: ldur w9, [x29, #-52] ; implicit-def: $x8 mov x8, x9 sub sp, sp, #16 mov x9, sp str x8, [x9] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf add sp, sp, #16 ldur x8, [x29, #-40] mov sp, x8 ldur w8, [x29, #-12] stur w8, [x29, #-84] ; 4-byte Folded Spill ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB2_18 b LBB2_17 LBB2_17: bl ___stack_chk_fail LBB2_18: ldur w0, [x29, #-84] ; 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 "d7.txt" l_.str.1: ; @.str.1 .asciz "r" l_.str.2: ; @.str.2 .asciz "%d," l_.str.3: ; @.str.3 .asciz "%d" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _abs ## -- Begin function abs .p2align 4, 0x90 _abs: ## @abs .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, -8(%rbp) cmpl $0, -8(%rbp) jge LBB0_2 ## %bb.1: xorl %eax, %eax subl -8(%rbp), %eax movl %eax, -4(%rbp) jmp LBB0_3 LBB0_2: movl -8(%rbp), %eax movl %eax, -4(%rbp) LBB0_3: movl -4(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .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 $0, -8(%rbp) movl $0, -12(%rbp) LBB1_1: ## =>This Inner Loop Header: Depth=1 movl -12(%rbp), %eax cmpl -4(%rbp), %eax jg LBB1_4 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 movl -12(%rbp), %eax addl -8(%rbp), %eax movl %eax, -8(%rbp) ## %bb.3: ## in Loop: Header=BB1_1 Depth=1 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB1_1 LBB1_4: movl -8(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $96, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -12(%rbp) leaq L_.str(%rip), %rdi leaq L_.str.1(%rip), %rsi callq _fopen movq %rax, -24(%rbp) movl $0, -28(%rbp) movl $0, -32(%rbp) LBB2_1: ## =>This Inner Loop Header: Depth=1 movq -24(%rbp), %rdi callq _feof 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 movq -24(%rbp), %rdi leaq L_.str.2(%rip), %rsi leaq -32(%rbp), %rdx movb $0, %al callq _fscanf movl -28(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) jmp LBB2_1 LBB2_3: movl -28(%rbp), %eax ## kill: def $rax killed $eax movq %rax, -80(%rbp) ## 8-byte Spill movq %rsp, %rcx movq %rcx, -40(%rbp) shlq $2, %rax callq ____chkstk_darwin addq $15, %rax andq $-16, %rax subq %rax, %rsp movq -80(%rbp), %rax ## 8-byte Reload movq %rsp, %rcx movq %rcx, -72(%rbp) ## 8-byte Spill movq %rax, -48(%rbp) movl $0, -28(%rbp) movq -24(%rbp), %rdi callq _rewind LBB2_4: ## =>This Inner Loop Header: Depth=1 movq -24(%rbp), %rdi callq _feof cmpl $0, %eax setne %al xorb $-1, %al testb $1, %al jne LBB2_5 jmp LBB2_6 LBB2_5: ## in Loop: Header=BB2_4 Depth=1 movq -72(%rbp), %rdx ## 8-byte Reload movq -24(%rbp), %rdi movslq -28(%rbp), %rax shlq $2, %rax addq %rax, %rdx leaq L_.str.2(%rip), %rsi movb $0, %al callq _fscanf movl -28(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) jmp LBB2_4 LBB2_6: movl $999999999, -52(%rbp) ## imm = 0x3B9AC9FF movl $0, -32(%rbp) movl $0, -56(%rbp) LBB2_7: ## =>This Loop Header: Depth=1 ## Child Loop BB2_9 Depth 2 cmpl $2000, -56(%rbp) ## imm = 0x7D0 jge LBB2_16 ## %bb.8: ## in Loop: Header=BB2_7 Depth=1 movl $0, -32(%rbp) movl $0, -60(%rbp) LBB2_9: ## Parent Loop BB2_7 Depth=1 ## => This Inner Loop Header: Depth=2 movl -60(%rbp), %eax cmpl -28(%rbp), %eax jge LBB2_12 ## %bb.10: ## in Loop: Header=BB2_9 Depth=2 movq -72(%rbp), %rax ## 8-byte Reload movslq -60(%rbp), %rcx movl (%rax,%rcx,4), %edi subl -56(%rbp), %edi callq _abs addl -32(%rbp), %eax movl %eax, -32(%rbp) ## %bb.11: ## in Loop: Header=BB2_9 Depth=2 movl -60(%rbp), %eax addl $1, %eax movl %eax, -60(%rbp) jmp LBB2_9 LBB2_12: ## in Loop: Header=BB2_7 Depth=1 movl -52(%rbp), %eax cmpl -32(%rbp), %eax jle LBB2_14 ## %bb.13: ## in Loop: Header=BB2_7 Depth=1 movl -32(%rbp), %eax movl %eax, -52(%rbp) LBB2_14: ## in Loop: Header=BB2_7 Depth=1 jmp LBB2_15 LBB2_15: ## in Loop: Header=BB2_7 Depth=1 movl -56(%rbp), %eax addl $1, %eax movl %eax, -56(%rbp) jmp LBB2_7 LBB2_16: movl -52(%rbp), %esi leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf movq -40(%rbp), %rax movq %rax, %rsp movl -12(%rbp), %eax movl %eax, -84(%rbp) ## 4-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB2_18 ## %bb.17: movl -84(%rbp), %eax ## 4-byte Reload movq %rbp, %rsp popq %rbp retq LBB2_18: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "d7.txt" L_.str.1: ## @.str.1 .asciz "r" L_.str.2: ## @.str.2 .asciz "%d," L_.str.3: ## @.str.3 .asciz "%d" .subsections_via_symbols
the_stack_data/86075727.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _my_ffs ; -- Begin function my_ffs .p2align 2 _my_ffs: ; @my_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_9 LBB0_2: str wzr, [sp, #4] b LBB0_3 LBB0_3: ; =>This Inner Loop Header: Depth=1 ldrsw x8, [sp, #4] subs x8, x8, #32 cset w8, hs tbnz w8, #0, LBB0_8 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_3 Depth=1 ldr w8, [sp, #8] ldr w10, [sp, #4] mov w9, #1 lsl w9, w9, w10 ands w8, w8, w9 cset w8, eq tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: b LBB0_8 LBB0_6: ; in Loop: Header=BB0_3 Depth=1 b LBB0_7 LBB0_7: ; in Loop: Header=BB0_3 Depth=1 ldr w8, [sp, #4] add w8, w8, #1 str w8, [sp, #4] b LBB0_3 LBB0_8: ldr w8, [sp, #4] add w8, w8, #1 str w8, [sp, #12] b LBB0_9 LBB0_9: ldr w0, [sp, #12] add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _my_ctz ; -- Begin function my_ctz .p2align 2 _my_ctz: ; @my_ctz .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #12] str wzr, [sp, #8] b LBB1_1 LBB1_1: ; =>This Inner Loop Header: Depth=1 ldrsw x8, [sp, #8] subs x8, x8, #32 cset w8, hs tbnz w8, #0, LBB1_6 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #12] ldr w10, [sp, #8] mov w9, #1 lsl w9, w9, w10 ands w8, w8, w9 cset w8, eq tbnz w8, #0, LBB1_4 b LBB1_3 LBB1_3: b LBB1_6 LBB1_4: ; in Loop: Header=BB1_1 Depth=1 b LBB1_5 LBB1_5: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #8] add w8, w8, #1 str w8, [sp, #8] b LBB1_1 LBB1_6: ldr w0, [sp, #8] add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _my_clz ; -- Begin function my_clz .p2align 2 _my_clz: ; @my_clz .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #12] str wzr, [sp, #8] b LBB2_1 LBB2_1: ; =>This Inner Loop Header: Depth=1 ldrsw x8, [sp, #8] subs x8, x8, #32 cset w8, hs tbnz w8, #0, LBB2_6 b LBB2_2 LBB2_2: ; in Loop: Header=BB2_1 Depth=1 ldr w8, [sp, #12] ldrsw x10, [sp, #8] mov x9, #32 subs x9, x9, x10 subs x9, x9, #1 mov x10, x9 mov w9, #1 lsl w9, w9, w10 ands w8, w8, w9 cset w8, eq tbnz w8, #0, LBB2_4 b LBB2_3 LBB2_3: b LBB2_6 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: ldr w0, [sp, #8] add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _my_clrsb ; -- Begin function my_clrsb .p2align 2 _my_clrsb: ; @my_clrsb .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #12] ldr w8, [sp, #12] lsr w9, w8, #31 mov w8, #1 and w9, w9, #0x1 str w9, [sp, #4] str w8, [sp, #8] b LBB3_1 LBB3_1: ; =>This Inner Loop Header: Depth=1 ldrsw x8, [sp, #8] subs x8, x8, #32 cset w8, hs tbnz w8, #0, LBB3_6 b LBB3_2 LBB3_2: ; in Loop: Header=BB3_1 Depth=1 ldr w8, [sp, #12] ldrsw x10, [sp, #8] mov x9, #32 subs x9, x9, x10 subs x9, x9, #1 ; kill: def $w9 killed $w9 killed $x9 lsr w8, w8, w9 and w8, w8, #0x1 ldr w9, [sp, #4] subs w8, w8, w9 cset w8, eq tbnz w8, #0, LBB3_4 b LBB3_3 LBB3_3: b LBB3_6 LBB3_4: ; in Loop: Header=BB3_1 Depth=1 b LBB3_5 LBB3_5: ; in Loop: Header=BB3_1 Depth=1 ldr w8, [sp, #8] add w8, w8, #1 str w8, [sp, #8] b LBB3_1 LBB3_6: ldr w8, [sp, #8] subs w0, w8, #1 add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _my_popcount ; -- Begin function my_popcount .p2align 2 _my_popcount: ; @my_popcount .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #12] str wzr, [sp, #4] str wzr, [sp, #8] b LBB4_1 LBB4_1: ; =>This Inner Loop Header: Depth=1 ldrsw x8, [sp, #8] subs x8, x8, #32 cset w8, hs tbnz w8, #0, LBB4_6 b LBB4_2 LBB4_2: ; in Loop: Header=BB4_1 Depth=1 ldr w8, [sp, #12] ldr w10, [sp, #8] mov w9, #1 lsl w9, w9, w10 ands w8, w8, w9 cset w8, eq tbnz w8, #0, LBB4_4 b LBB4_3 LBB4_3: ; in Loop: Header=BB4_1 Depth=1 ldr w8, [sp, #4] add w8, w8, #1 str w8, [sp, #4] b LBB4_4 LBB4_4: ; in Loop: Header=BB4_1 Depth=1 b LBB4_5 LBB4_5: ; in Loop: Header=BB4_1 Depth=1 ldr w8, [sp, #8] add w8, w8, #1 str w8, [sp, #8] b LBB4_1 LBB4_6: ldr w0, [sp, #4] add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _my_parity ; -- Begin function my_parity .p2align 2 _my_parity: ; @my_parity .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #12] str wzr, [sp, #4] str wzr, [sp, #8] b LBB5_1 LBB5_1: ; =>This Inner Loop Header: Depth=1 ldrsw x8, [sp, #8] subs x8, x8, #32 cset w8, hs tbnz w8, #0, LBB5_6 b LBB5_2 LBB5_2: ; in Loop: Header=BB5_1 Depth=1 ldr w8, [sp, #12] ldr w10, [sp, #8] mov w9, #1 lsl w9, w9, w10 ands w8, w8, w9 cset w8, eq tbnz w8, #0, LBB5_4 b LBB5_3 LBB5_3: ; in Loop: Header=BB5_1 Depth=1 ldr w8, [sp, #4] add w8, w8, #1 str w8, [sp, #4] 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, #8] add w8, w8, #1 str w8, [sp, #8] b LBB5_1 LBB5_6: ldr w8, [sp, #4] and w0, w8, #0x1 add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _my_ffsl ; -- Begin function my_ffsl .p2align 2 _my_ffsl: ; @my_ffsl .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, #16] ldr x8, [sp, #16] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB6_2 b LBB6_1 LBB6_1: str wzr, [sp, #28] b LBB6_9 LBB6_2: str wzr, [sp, #12] b LBB6_3 LBB6_3: ; =>This Inner Loop Header: Depth=1 ldrsw x8, [sp, #12] subs x8, x8, #64 cset w8, hs tbnz w8, #0, LBB6_8 b LBB6_4 LBB6_4: ; in Loop: Header=BB6_3 Depth=1 ldr x8, [sp, #16] ldr w9, [sp, #12] mov x10, x9 mov x9, #1 lsl x9, x9, x10 ands x8, x8, x9 cset w8, eq tbnz w8, #0, LBB6_6 b LBB6_5 LBB6_5: b LBB6_8 LBB6_6: ; in Loop: Header=BB6_3 Depth=1 b LBB6_7 LBB6_7: ; in Loop: Header=BB6_3 Depth=1 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB6_3 LBB6_8: ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #28] b LBB6_9 LBB6_9: ldr w0, [sp, #28] add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _my_ctzl ; -- Begin function my_ctzl .p2align 2 _my_ctzl: ; @my_ctzl .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] str wzr, [sp, #4] b LBB7_1 LBB7_1: ; =>This Inner Loop Header: Depth=1 ldrsw x8, [sp, #4] subs x8, x8, #64 cset w8, hs tbnz w8, #0, LBB7_6 b LBB7_2 LBB7_2: ; in Loop: Header=BB7_1 Depth=1 ldr x8, [sp, #8] ldr w9, [sp, #4] mov x10, x9 mov x9, #1 lsl x9, x9, x10 ands x8, x8, x9 cset w8, eq tbnz w8, #0, LBB7_4 b LBB7_3 LBB7_3: b LBB7_6 LBB7_4: ; in Loop: Header=BB7_1 Depth=1 b LBB7_5 LBB7_5: ; in Loop: Header=BB7_1 Depth=1 ldr w8, [sp, #4] add w8, w8, #1 str w8, [sp, #4] b LBB7_1 LBB7_6: ldr w0, [sp, #4] add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _my_clzl ; -- Begin function my_clzl .p2align 2 _my_clzl: ; @my_clzl .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] str wzr, [sp, #4] b LBB8_1 LBB8_1: ; =>This Inner Loop Header: Depth=1 ldrsw x8, [sp, #4] subs x8, x8, #64 cset w8, hs tbnz w8, #0, LBB8_6 b LBB8_2 LBB8_2: ; in Loop: Header=BB8_1 Depth=1 ldr x8, [sp, #8] ldrsw x10, [sp, #4] mov x9, #64 subs x10, x9, x10 mov x9, #1 subs x10, x10, #1 lsl x9, x9, x10 ands x8, x8, x9 cset w8, eq tbnz w8, #0, LBB8_4 b LBB8_3 LBB8_3: b LBB8_6 LBB8_4: ; in Loop: Header=BB8_1 Depth=1 b LBB8_5 LBB8_5: ; in Loop: Header=BB8_1 Depth=1 ldr w8, [sp, #4] add w8, w8, #1 str w8, [sp, #4] b LBB8_1 LBB8_6: ldr w0, [sp, #4] add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _my_clrsbl ; -- Begin function my_clrsbl .p2align 2 _my_clrsbl: ; @my_clrsbl .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] ldr x8, [sp, #8] lsr x8, x8, #63 and x8, x8, #0x1 ; kill: def $w8 killed $w8 killed $x8 str w8, [sp] mov w8, #1 str w8, [sp, #4] b LBB9_1 LBB9_1: ; =>This Inner Loop Header: Depth=1 ldrsw x8, [sp, #4] subs x8, x8, #64 cset w8, hs tbnz w8, #0, LBB9_6 b LBB9_2 LBB9_2: ; in Loop: Header=BB9_1 Depth=1 ldr x8, [sp, #8] ldrsw x10, [sp, #4] mov x9, #64 subs x9, x9, x10 subs x9, x9, #1 lsr x8, x8, x9 and x8, x8, #0x1 ldrsw x9, [sp] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB9_4 b LBB9_3 LBB9_3: b LBB9_6 LBB9_4: ; in Loop: Header=BB9_1 Depth=1 b LBB9_5 LBB9_5: ; in Loop: Header=BB9_1 Depth=1 ldr w8, [sp, #4] add w8, w8, #1 str w8, [sp, #4] b LBB9_1 LBB9_6: ldr w8, [sp, #4] subs w0, w8, #1 add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _my_popcountl ; -- Begin function my_popcountl .p2align 2 _my_popcountl: ; @my_popcountl .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] str wzr, [sp] str wzr, [sp, #4] b LBB10_1 LBB10_1: ; =>This Inner Loop Header: Depth=1 ldrsw x8, [sp, #4] subs x8, x8, #64 cset w8, hs tbnz w8, #0, LBB10_6 b LBB10_2 LBB10_2: ; in Loop: Header=BB10_1 Depth=1 ldr x8, [sp, #8] ldr w9, [sp, #4] mov x10, x9 mov x9, #1 lsl x9, x9, x10 ands x8, x8, x9 cset w8, eq tbnz w8, #0, LBB10_4 b LBB10_3 LBB10_3: ; in Loop: Header=BB10_1 Depth=1 ldr w8, [sp] add w8, w8, #1 str w8, [sp] b LBB10_4 LBB10_4: ; in Loop: Header=BB10_1 Depth=1 b LBB10_5 LBB10_5: ; in Loop: Header=BB10_1 Depth=1 ldr w8, [sp, #4] add w8, w8, #1 str w8, [sp, #4] b LBB10_1 LBB10_6: ldr w0, [sp] add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _my_parityl ; -- Begin function my_parityl .p2align 2 _my_parityl: ; @my_parityl .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] str wzr, [sp] str wzr, [sp, #4] b LBB11_1 LBB11_1: ; =>This Inner Loop Header: Depth=1 ldrsw x8, [sp, #4] subs x8, x8, #64 cset w8, hs tbnz w8, #0, LBB11_6 b LBB11_2 LBB11_2: ; in Loop: Header=BB11_1 Depth=1 ldr x8, [sp, #8] ldr w9, [sp, #4] mov x10, x9 mov x9, #1 lsl x9, x9, x10 ands x8, x8, x9 cset w8, eq tbnz w8, #0, LBB11_4 b LBB11_3 LBB11_3: ; in Loop: Header=BB11_1 Depth=1 ldr w8, [sp] add w8, w8, #1 str w8, [sp] b LBB11_4 LBB11_4: ; in Loop: Header=BB11_1 Depth=1 b LBB11_5 LBB11_5: ; in Loop: Header=BB11_1 Depth=1 ldr w8, [sp, #4] add w8, w8, #1 str w8, [sp, #4] b LBB11_1 LBB11_6: ldr w8, [sp] and w0, w8, #0x1 add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _my_ffsll ; -- Begin function my_ffsll .p2align 2 _my_ffsll: ; @my_ffsll .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, #16] ldr x8, [sp, #16] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB12_2 b LBB12_1 LBB12_1: str wzr, [sp, #28] b LBB12_9 LBB12_2: str wzr, [sp, #12] b LBB12_3 LBB12_3: ; =>This Inner Loop Header: Depth=1 ldrsw x8, [sp, #12] subs x8, x8, #64 cset w8, hs tbnz w8, #0, LBB12_8 b LBB12_4 LBB12_4: ; in Loop: Header=BB12_3 Depth=1 ldr x8, [sp, #16] ldr w9, [sp, #12] mov x10, x9 mov x9, #1 lsl x9, x9, x10 ands x8, x8, x9 cset w8, eq tbnz w8, #0, LBB12_6 b LBB12_5 LBB12_5: b LBB12_8 LBB12_6: ; in Loop: Header=BB12_3 Depth=1 b LBB12_7 LBB12_7: ; in Loop: Header=BB12_3 Depth=1 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB12_3 LBB12_8: ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #28] b LBB12_9 LBB12_9: ldr w0, [sp, #28] add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _my_ctzll ; -- Begin function my_ctzll .p2align 2 _my_ctzll: ; @my_ctzll .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] str wzr, [sp, #4] b LBB13_1 LBB13_1: ; =>This Inner Loop Header: Depth=1 ldrsw x8, [sp, #4] subs x8, x8, #64 cset w8, hs tbnz w8, #0, LBB13_6 b LBB13_2 LBB13_2: ; in Loop: Header=BB13_1 Depth=1 ldr x8, [sp, #8] ldr w9, [sp, #4] mov x10, x9 mov x9, #1 lsl x9, x9, x10 ands x8, x8, x9 cset w8, eq tbnz w8, #0, LBB13_4 b LBB13_3 LBB13_3: b LBB13_6 LBB13_4: ; in Loop: Header=BB13_1 Depth=1 b LBB13_5 LBB13_5: ; in Loop: Header=BB13_1 Depth=1 ldr w8, [sp, #4] add w8, w8, #1 str w8, [sp, #4] b LBB13_1 LBB13_6: ldr w0, [sp, #4] add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _my_clzll ; -- Begin function my_clzll .p2align 2 _my_clzll: ; @my_clzll .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] str wzr, [sp, #4] b LBB14_1 LBB14_1: ; =>This Inner Loop Header: Depth=1 ldrsw x8, [sp, #4] subs x8, x8, #64 cset w8, hs tbnz w8, #0, LBB14_6 b LBB14_2 LBB14_2: ; in Loop: Header=BB14_1 Depth=1 ldr x8, [sp, #8] ldrsw x10, [sp, #4] mov x9, #64 subs x10, x9, x10 mov x9, #1 subs x10, x10, #1 lsl x9, x9, x10 ands x8, x8, x9 cset w8, eq tbnz w8, #0, LBB14_4 b LBB14_3 LBB14_3: b LBB14_6 LBB14_4: ; in Loop: Header=BB14_1 Depth=1 b LBB14_5 LBB14_5: ; in Loop: Header=BB14_1 Depth=1 ldr w8, [sp, #4] add w8, w8, #1 str w8, [sp, #4] b LBB14_1 LBB14_6: ldr w0, [sp, #4] add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _my_clrsbll ; -- Begin function my_clrsbll .p2align 2 _my_clrsbll: ; @my_clrsbll .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] ldr x8, [sp, #8] lsr x8, x8, #63 and x8, x8, #0x1 ; kill: def $w8 killed $w8 killed $x8 str w8, [sp] mov w8, #1 str w8, [sp, #4] b LBB15_1 LBB15_1: ; =>This Inner Loop Header: Depth=1 ldrsw x8, [sp, #4] subs x8, x8, #64 cset w8, hs tbnz w8, #0, LBB15_6 b LBB15_2 LBB15_2: ; in Loop: Header=BB15_1 Depth=1 ldr x8, [sp, #8] ldrsw x10, [sp, #4] mov x9, #64 subs x9, x9, x10 subs x9, x9, #1 lsr x8, x8, x9 and x8, x8, #0x1 ldrsw x9, [sp] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB15_4 b LBB15_3 LBB15_3: b LBB15_6 LBB15_4: ; in Loop: Header=BB15_1 Depth=1 b LBB15_5 LBB15_5: ; in Loop: Header=BB15_1 Depth=1 ldr w8, [sp, #4] add w8, w8, #1 str w8, [sp, #4] b LBB15_1 LBB15_6: ldr w8, [sp, #4] subs w0, w8, #1 add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _my_popcountll ; -- Begin function my_popcountll .p2align 2 _my_popcountll: ; @my_popcountll .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] str wzr, [sp] str wzr, [sp, #4] b LBB16_1 LBB16_1: ; =>This Inner Loop Header: Depth=1 ldrsw x8, [sp, #4] subs x8, x8, #64 cset w8, hs tbnz w8, #0, LBB16_6 b LBB16_2 LBB16_2: ; in Loop: Header=BB16_1 Depth=1 ldr x8, [sp, #8] ldr w9, [sp, #4] mov x10, x9 mov x9, #1 lsl x9, x9, x10 ands x8, x8, x9 cset w8, eq tbnz w8, #0, LBB16_4 b LBB16_3 LBB16_3: ; in Loop: Header=BB16_1 Depth=1 ldr w8, [sp] add w8, w8, #1 str w8, [sp] b LBB16_4 LBB16_4: ; in Loop: Header=BB16_1 Depth=1 b LBB16_5 LBB16_5: ; in Loop: Header=BB16_1 Depth=1 ldr w8, [sp, #4] add w8, w8, #1 str w8, [sp, #4] b LBB16_1 LBB16_6: ldr w0, [sp] add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _my_parityll ; -- Begin function my_parityll .p2align 2 _my_parityll: ; @my_parityll .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] str wzr, [sp] str wzr, [sp, #4] b LBB17_1 LBB17_1: ; =>This Inner Loop Header: Depth=1 ldrsw x8, [sp, #4] subs x8, x8, #64 cset w8, hs tbnz w8, #0, LBB17_6 b LBB17_2 LBB17_2: ; in Loop: Header=BB17_1 Depth=1 ldr x8, [sp, #8] ldr w9, [sp, #4] mov x10, x9 mov x9, #1 lsl x9, x9, x10 ands x8, x8, x9 cset w8, eq tbnz w8, #0, LBB17_4 b LBB17_3 LBB17_3: ; in Loop: Header=BB17_1 Depth=1 ldr w8, [sp] add w8, w8, #1 str w8, [sp] b LBB17_4 LBB17_4: ; in Loop: Header=BB17_1 Depth=1 b LBB17_5 LBB17_5: ; in Loop: Header=BB17_1 Depth=1 ldr w8, [sp, #4] add w8, w8, #1 str w8, [sp, #4] b LBB17_1 LBB17_6: ldr w8, [sp] and w0, w8, #0x1 add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #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 mov w8, #42405 movk w8, #42405, lsl #16 stur w8, [x29, #-64] ; 4-byte Folded Spill mov w8, #23130 movk w8, #23130, lsl #16 stur w8, [x29, #-60] ; 4-byte Folded Spill mov w8, #-889323520 stur w8, [x29, #-56] ; 4-byte Folded Spill mov w8, #65024 movk w8, #202, lsl #16 stur w8, [x29, #-52] ; 4-byte Folded Spill mov x8, #42405 movk x8, #42405, lsl #16 movk x8, #42405, lsl #32 movk x8, #42405, lsl #48 stur x8, [x29, #-48] ; 8-byte Folded Spill mov x8, #23130 movk x8, #23130, lsl #16 movk x8, #23130, lsl #32 movk x8, #23130, lsl #48 stur x8, [x29, #-40] ; 8-byte Folded Spill mov x8, #223192270503936 movk x8, #51966, lsl #48 stur x8, [x29, #-32] ; 8-byte Folded Spill mov x8, #3405643776 movk x8, #51966, lsl #32 stur x8, [x29, #-24] ; 8-byte Folded Spill mov x8, #51966 movk x8, #51966, lsl #16 stur x8, [x29, #-16] ; 8-byte Folded Spill stur wzr, [x29, #-4] stur wzr, [x29, #-8] b LBB18_1 LBB18_1: ; =>This Inner Loop Header: Depth=1 ldursw x8, [x29, #-8] subs x8, x8, #13 cset w8, hs tbnz w8, #0, LBB18_18 b LBB18_2 LBB18_2: ; in Loop: Header=BB18_1 Depth=1 ldursw x9, [x29, #-8] adrp x8, _ints@PAGE add x8, x8, _ints@PAGEOFF ldr w11, [x8, x9, lsl #2] rbit w9, w11 clz w10, w9 mov w9, #0 subs w11, w11, #0 cset w11, eq and w11, w11, #0x1 ands w11, w11, #0x1 csinc w9, w9, w10, ne stur w9, [x29, #-68] ; 4-byte Folded Spill ldursw x9, [x29, #-8] ldr w0, [x8, x9, lsl #2] bl _my_ffs ldur w8, [x29, #-68] ; 4-byte Folded Reload subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_4 b LBB18_3 LBB18_3: bl _abort LBB18_4: ; in Loop: Header=BB18_1 Depth=1 ldursw x9, [x29, #-8] adrp x8, _ints@PAGE add x8, x8, _ints@PAGEOFF ldr w8, [x8, x9, lsl #2] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB18_7 b LBB18_5 LBB18_5: ; in Loop: Header=BB18_1 Depth=1 ldursw x9, [x29, #-8] adrp x8, _ints@PAGE add x8, x8, _ints@PAGEOFF ldr w9, [x8, x9, lsl #2] clz w9, w9 stur w9, [x29, #-72] ; 4-byte Folded Spill ldursw x9, [x29, #-8] ldr w0, [x8, x9, lsl #2] bl _my_clz ldur w8, [x29, #-72] ; 4-byte Folded Reload subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_7 b LBB18_6 LBB18_6: bl _abort LBB18_7: ; in Loop: Header=BB18_1 Depth=1 ldursw x9, [x29, #-8] adrp x8, _ints@PAGE add x8, x8, _ints@PAGEOFF ldr w8, [x8, x9, lsl #2] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB18_10 b LBB18_8 LBB18_8: ; in Loop: Header=BB18_1 Depth=1 ldursw x9, [x29, #-8] adrp x8, _ints@PAGE add x8, x8, _ints@PAGEOFF ldr w9, [x8, x9, lsl #2] rbit w9, w9 clz w9, w9 stur w9, [x29, #-76] ; 4-byte Folded Spill ldursw x9, [x29, #-8] ldr w0, [x8, x9, lsl #2] bl _my_ctz ldur w8, [x29, #-76] ; 4-byte Folded Reload subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_10 b LBB18_9 LBB18_9: bl _abort LBB18_10: ; in Loop: Header=BB18_1 Depth=1 ldursw x9, [x29, #-8] adrp x8, _ints@PAGE add x8, x8, _ints@PAGEOFF ldr w9, [x8, x9, lsl #2] subs w10, w9, #0 cset w10, lt and w10, w10, #0x1 ands w10, w10, #0x1 cinv w9, w9, ne clz w9, w9 subs w9, w9, #1 str w9, [sp, #80] ; 4-byte Folded Spill ldursw x9, [x29, #-8] ldr w0, [x8, x9, lsl #2] bl _my_clrsb ldr w8, [sp, #80] ; 4-byte Folded Reload subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_12 b LBB18_11 LBB18_11: bl _abort LBB18_12: ; in Loop: Header=BB18_1 Depth=1 ldursw x9, [x29, #-8] adrp x8, _ints@PAGE add x8, x8, _ints@PAGEOFF ldr w9, [x8, x9, lsl #2] ; kill: def $x9 killed $w9 fmov d0, x9 cnt.8b v0, v0 uaddlv.8b h1, v0 ; implicit-def: $q0 fmov s0, s1 ; kill: def $s0 killed $s0 killed $q0 str s0, [sp, #76] ; 4-byte Folded Spill ldursw x9, [x29, #-8] ldr w0, [x8, x9, lsl #2] bl _my_popcount ldr s0, [sp, #76] ; 4-byte Folded Reload fmov w8, s0 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_14 b LBB18_13 LBB18_13: bl _abort LBB18_14: ; in Loop: Header=BB18_1 Depth=1 ldursw x9, [x29, #-8] adrp x8, _ints@PAGE add x8, x8, _ints@PAGEOFF ldr w9, [x8, x9, lsl #2] ; kill: def $x9 killed $w9 fmov d0, x9 cnt.8b v0, v0 uaddlv.8b h1, v0 ; implicit-def: $q0 fmov s0, s1 ; kill: def $s0 killed $s0 killed $q0 fmov w9, s0 and w9, w9, #0x1 str w9, [sp, #72] ; 4-byte Folded Spill ldursw x9, [x29, #-8] ldr w0, [x8, x9, lsl #2] bl _my_parity ldr w8, [sp, #72] ; 4-byte Folded Reload subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_16 b LBB18_15 LBB18_15: bl _abort LBB18_16: ; in Loop: Header=BB18_1 Depth=1 b LBB18_17 LBB18_17: ; in Loop: Header=BB18_1 Depth=1 ldur w8, [x29, #-8] add w8, w8, #1 stur w8, [x29, #-8] b LBB18_1 LBB18_18: stur wzr, [x29, #-8] b LBB18_19 LBB18_19: ; =>This Inner Loop Header: Depth=1 ldursw x8, [x29, #-8] subs x8, x8, #13 cset w8, hs tbnz w8, #0, LBB18_36 b LBB18_20 LBB18_20: ; in Loop: Header=BB18_19 Depth=1 ldursw x9, [x29, #-8] adrp x8, _longs@PAGE add x8, x8, _longs@PAGEOFF ldr x11, [x8, x9, lsl #3] rbit x9, x11 clz x10, x9 mov x9, #0 subs x11, x11, #0 cset w11, eq and w11, w11, #0x1 ands w11, w11, #0x1 csinc x9, x9, x10, ne ; kill: def $w9 killed $w9 killed $x9 str w9, [sp, #68] ; 4-byte Folded Spill ldursw x9, [x29, #-8] ldr x0, [x8, x9, lsl #3] bl _my_ffsl ldr w8, [sp, #68] ; 4-byte Folded Reload subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_22 b LBB18_21 LBB18_21: bl _abort LBB18_22: ; in Loop: Header=BB18_19 Depth=1 ldursw x9, [x29, #-8] adrp x8, _longs@PAGE add x8, x8, _longs@PAGEOFF ldr x8, [x8, x9, lsl #3] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB18_25 b LBB18_23 LBB18_23: ; in Loop: Header=BB18_19 Depth=1 ldursw x9, [x29, #-8] adrp x8, _longs@PAGE add x8, x8, _longs@PAGEOFF ldr x9, [x8, x9, lsl #3] clz x9, x9 ; kill: def $w9 killed $w9 killed $x9 str w9, [sp, #64] ; 4-byte Folded Spill ldursw x9, [x29, #-8] ldr x0, [x8, x9, lsl #3] bl _my_clzl ldr w8, [sp, #64] ; 4-byte Folded Reload subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_25 b LBB18_24 LBB18_24: bl _abort LBB18_25: ; in Loop: Header=BB18_19 Depth=1 ldursw x9, [x29, #-8] adrp x8, _longs@PAGE add x8, x8, _longs@PAGEOFF ldr x8, [x8, x9, lsl #3] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB18_28 b LBB18_26 LBB18_26: ; in Loop: Header=BB18_19 Depth=1 ldursw x9, [x29, #-8] adrp x8, _longs@PAGE add x8, x8, _longs@PAGEOFF ldr x9, [x8, x9, lsl #3] rbit x9, x9 clz x9, x9 ; kill: def $w9 killed $w9 killed $x9 str w9, [sp, #60] ; 4-byte Folded Spill ldursw x9, [x29, #-8] ldr x0, [x8, x9, lsl #3] bl _my_ctzl ldr w8, [sp, #60] ; 4-byte Folded Reload subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_28 b LBB18_27 LBB18_27: bl _abort LBB18_28: ; in Loop: Header=BB18_19 Depth=1 ldursw x9, [x29, #-8] adrp x8, _longs@PAGE add x8, x8, _longs@PAGEOFF ldr x9, [x8, x9, lsl #3] subs x10, x9, #0 cset w10, lt and w10, w10, #0x1 ands w10, w10, #0x1 cinv x9, x9, ne clz x9, x9 subs x9, x9, #1 ; kill: def $w9 killed $w9 killed $x9 str w9, [sp, #56] ; 4-byte Folded Spill ldursw x9, [x29, #-8] ldr x0, [x8, x9, lsl #3] bl _my_clrsbl ldr w8, [sp, #56] ; 4-byte Folded Reload subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_30 b LBB18_29 LBB18_29: bl _abort LBB18_30: ; in Loop: Header=BB18_19 Depth=1 ldursw x9, [x29, #-8] adrp x8, _longs@PAGE add x8, x8, _longs@PAGEOFF ldr x9, [x8, x9, lsl #3] fmov d0, x9 cnt.8b v0, v0 uaddlv.8b h1, v0 ; implicit-def: $q0 fmov s0, s1 ; kill: def $s0 killed $s0 killed $q0 fmov w9, s0 mov w9, w9 ; kill: def $x9 killed $w9 ; kill: def $w9 killed $w9 killed $x9 str w9, [sp, #52] ; 4-byte Folded Spill ldursw x9, [x29, #-8] ldr x0, [x8, x9, lsl #3] bl _my_popcountl ldr w8, [sp, #52] ; 4-byte Folded Reload subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_32 b LBB18_31 LBB18_31: bl _abort LBB18_32: ; in Loop: Header=BB18_19 Depth=1 ldursw x9, [x29, #-8] adrp x8, _longs@PAGE add x8, x8, _longs@PAGEOFF ldr x9, [x8, x9, lsl #3] fmov d0, x9 cnt.8b v0, v0 uaddlv.8b h1, v0 ; implicit-def: $q0 fmov s0, s1 ; kill: def $s0 killed $s0 killed $q0 fmov w9, s0 mov w9, w9 ; kill: def $x9 killed $w9 and x9, x9, #0x1 ; kill: def $w9 killed $w9 killed $x9 str w9, [sp, #48] ; 4-byte Folded Spill ldursw x9, [x29, #-8] ldr x0, [x8, x9, lsl #3] bl _my_parityl ldr w8, [sp, #48] ; 4-byte Folded Reload subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_34 b LBB18_33 LBB18_33: bl _abort LBB18_34: ; in Loop: Header=BB18_19 Depth=1 b LBB18_35 LBB18_35: ; in Loop: Header=BB18_19 Depth=1 ldur w8, [x29, #-8] add w8, w8, #1 stur w8, [x29, #-8] b LBB18_19 LBB18_36: stur wzr, [x29, #-8] b LBB18_37 LBB18_37: ; =>This Inner Loop Header: Depth=1 ldursw x8, [x29, #-8] subs x8, x8, #13 cset w8, hs tbnz w8, #0, LBB18_54 b LBB18_38 LBB18_38: ; in Loop: Header=BB18_37 Depth=1 ldursw x9, [x29, #-8] adrp x8, _longlongs@PAGE add x8, x8, _longlongs@PAGEOFF ldr x11, [x8, x9, lsl #3] rbit x9, x11 clz x10, x9 mov x9, #0 subs x11, x11, #0 cset w11, eq and w11, w11, #0x1 ands w11, w11, #0x1 csinc x9, x9, x10, ne ; kill: def $w9 killed $w9 killed $x9 str w9, [sp, #44] ; 4-byte Folded Spill ldursw x9, [x29, #-8] ldr x0, [x8, x9, lsl #3] bl _my_ffsll ldr w8, [sp, #44] ; 4-byte Folded Reload subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_40 b LBB18_39 LBB18_39: bl _abort LBB18_40: ; in Loop: Header=BB18_37 Depth=1 ldursw x9, [x29, #-8] adrp x8, _longlongs@PAGE add x8, x8, _longlongs@PAGEOFF ldr x8, [x8, x9, lsl #3] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB18_43 b LBB18_41 LBB18_41: ; in Loop: Header=BB18_37 Depth=1 ldursw x9, [x29, #-8] adrp x8, _longlongs@PAGE add x8, x8, _longlongs@PAGEOFF ldr x9, [x8, x9, lsl #3] clz x9, x9 ; kill: def $w9 killed $w9 killed $x9 str w9, [sp, #40] ; 4-byte Folded Spill ldursw x9, [x29, #-8] ldr x0, [x8, x9, lsl #3] bl _my_clzll ldr w8, [sp, #40] ; 4-byte Folded Reload subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_43 b LBB18_42 LBB18_42: bl _abort LBB18_43: ; in Loop: Header=BB18_37 Depth=1 ldursw x9, [x29, #-8] adrp x8, _longlongs@PAGE add x8, x8, _longlongs@PAGEOFF ldr x8, [x8, x9, lsl #3] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB18_46 b LBB18_44 LBB18_44: ; in Loop: Header=BB18_37 Depth=1 ldursw x9, [x29, #-8] adrp x8, _longlongs@PAGE add x8, x8, _longlongs@PAGEOFF ldr x9, [x8, x9, lsl #3] rbit x9, x9 clz x9, x9 ; kill: def $w9 killed $w9 killed $x9 str w9, [sp, #36] ; 4-byte Folded Spill ldursw x9, [x29, #-8] ldr x0, [x8, x9, lsl #3] bl _my_ctzll ldr w8, [sp, #36] ; 4-byte Folded Reload subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_46 b LBB18_45 LBB18_45: bl _abort LBB18_46: ; in Loop: Header=BB18_37 Depth=1 ldursw x9, [x29, #-8] adrp x8, _longlongs@PAGE add x8, x8, _longlongs@PAGEOFF ldr x9, [x8, x9, lsl #3] subs x10, x9, #0 cset w10, lt and w10, w10, #0x1 ands w10, w10, #0x1 cinv x9, x9, ne clz x9, x9 subs x9, x9, #1 ; kill: def $w9 killed $w9 killed $x9 str w9, [sp, #32] ; 4-byte Folded Spill ldursw x9, [x29, #-8] ldr x0, [x8, x9, lsl #3] bl _my_clrsbll ldr w8, [sp, #32] ; 4-byte Folded Reload subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_48 b LBB18_47 LBB18_47: bl _abort LBB18_48: ; in Loop: Header=BB18_37 Depth=1 ldursw x9, [x29, #-8] adrp x8, _longlongs@PAGE add x8, x8, _longlongs@PAGEOFF ldr x9, [x8, x9, lsl #3] fmov d0, x9 cnt.8b v0, v0 uaddlv.8b h1, v0 ; implicit-def: $q0 fmov s0, s1 ; kill: def $s0 killed $s0 killed $q0 fmov w9, s0 mov w9, w9 ; kill: def $x9 killed $w9 ; kill: def $w9 killed $w9 killed $x9 str w9, [sp, #28] ; 4-byte Folded Spill ldursw x9, [x29, #-8] ldr x0, [x8, x9, lsl #3] bl _my_popcountll ldr w8, [sp, #28] ; 4-byte Folded Reload subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_50 b LBB18_49 LBB18_49: bl _abort LBB18_50: ; in Loop: Header=BB18_37 Depth=1 ldursw x9, [x29, #-8] adrp x8, _longlongs@PAGE add x8, x8, _longlongs@PAGEOFF ldr x9, [x8, x9, lsl #3] fmov d0, x9 cnt.8b v0, v0 uaddlv.8b h1, v0 ; implicit-def: $q0 fmov s0, s1 ; kill: def $s0 killed $s0 killed $q0 fmov w9, s0 mov w9, w9 ; kill: def $x9 killed $w9 and x9, x9, #0x1 ; kill: def $w9 killed $w9 killed $x9 str w9, [sp, #24] ; 4-byte Folded Spill ldursw x9, [x29, #-8] ldr x0, [x8, x9, lsl #3] bl _my_parityll ldr w8, [sp, #24] ; 4-byte Folded Reload subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_52 b LBB18_51 LBB18_51: bl _abort LBB18_52: ; in Loop: Header=BB18_37 Depth=1 b LBB18_53 LBB18_53: ; in Loop: Header=BB18_37 Depth=1 ldur w8, [x29, #-8] add w8, w8, #1 stur w8, [x29, #-8] b LBB18_37 LBB18_54: mov w0, #0 str w0, [sp, #20] ; 4-byte Folded Spill bl _my_ffs ldr w8, [sp, #20] ; 4-byte Folded Reload subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_56 b LBB18_55 LBB18_55: bl _abort LBB18_56: mov w0, #0 bl _my_clrsb mov w8, #31 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_58 b LBB18_57 LBB18_57: bl _abort LBB18_58: mov w0, #0 str w0, [sp, #16] ; 4-byte Folded Spill bl _my_popcount ldr w8, [sp, #16] ; 4-byte Folded Reload subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_60 b LBB18_59 LBB18_59: bl _abort LBB18_60: mov w0, #0 str w0, [sp, #12] ; 4-byte Folded Spill bl _my_parity ldr w8, [sp, #12] ; 4-byte Folded Reload subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_62 b LBB18_61 LBB18_61: bl _abort LBB18_62: mov w0, #1 str w0, [sp, #8] ; 4-byte Folded Spill bl _my_ffs ldr w8, [sp, #8] ; 4-byte Folded Reload subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_64 b LBB18_63 LBB18_63: bl _abort LBB18_64: mov w0, #1 bl _my_clz mov w8, #31 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_66 b LBB18_65 LBB18_65: bl _abort LBB18_66: mov w0, #1 bl _my_ctz mov w8, #0 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_68 b LBB18_67 LBB18_67: bl _abort LBB18_68: mov w0, #1 bl _my_clrsb mov w8, #30 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_70 b LBB18_69 LBB18_69: bl _abort LBB18_70: mov w0, #1 str w0, [sp, #4] ; 4-byte Folded Spill bl _my_popcount ldr w8, [sp, #4] ; 4-byte Folded Reload subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_72 b LBB18_71 LBB18_71: bl _abort LBB18_72: mov w0, #1 str w0, [sp] ; 4-byte Folded Spill bl _my_parity ldr w8, [sp] ; 4-byte Folded Reload subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_74 b LBB18_73 LBB18_73: bl _abort LBB18_74: mov w0, #-2147483648 bl _my_ffs mov w8, #32 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_76 b LBB18_75 LBB18_75: bl _abort LBB18_76: mov w0, #-2147483648 bl _my_clz mov w8, #0 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_78 b LBB18_77 LBB18_77: bl _abort LBB18_78: mov w0, #-2147483648 bl _my_ctz mov w8, #31 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_80 b LBB18_79 LBB18_79: bl _abort LBB18_80: mov w0, #-2147483648 bl _my_clrsb mov w8, #0 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_82 b LBB18_81 LBB18_81: bl _abort LBB18_82: mov w0, #-2147483648 bl _my_popcount mov w8, #1 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_84 b LBB18_83 LBB18_83: bl _abort LBB18_84: mov w0, #-2147483648 bl _my_parity mov w8, #1 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_86 b LBB18_85 LBB18_85: bl _abort LBB18_86: mov w0, #1073741824 bl _my_ffs mov w8, #31 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_88 b LBB18_87 LBB18_87: bl _abort LBB18_88: mov w0, #1073741824 bl _my_clz mov w8, #1 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_90 b LBB18_89 LBB18_89: bl _abort LBB18_90: mov w0, #1073741824 bl _my_ctz mov w8, #30 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_92 b LBB18_91 LBB18_91: bl _abort LBB18_92: mov w0, #1073741824 bl _my_clrsb mov w8, #0 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_94 b LBB18_93 LBB18_93: bl _abort LBB18_94: mov w0, #1073741824 bl _my_popcount mov w8, #1 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_96 b LBB18_95 LBB18_95: bl _abort LBB18_96: mov w0, #1073741824 bl _my_parity mov w8, #1 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_98 b LBB18_97 LBB18_97: bl _abort LBB18_98: mov w0, #65536 bl _my_ffs mov w8, #17 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_100 b LBB18_99 LBB18_99: bl _abort LBB18_100: mov w0, #65536 bl _my_clz mov w8, #15 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_102 b LBB18_101 LBB18_101: bl _abort LBB18_102: mov w0, #65536 bl _my_ctz mov w8, #16 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_104 b LBB18_103 LBB18_103: bl _abort LBB18_104: mov w0, #65536 bl _my_clrsb mov w8, #14 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_106 b LBB18_105 LBB18_105: bl _abort LBB18_106: mov w0, #65536 bl _my_popcount mov w8, #1 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_108 b LBB18_107 LBB18_107: bl _abort LBB18_108: mov w0, #65536 bl _my_parity mov w8, #1 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_110 b LBB18_109 LBB18_109: bl _abort LBB18_110: mov w0, #32768 bl _my_ffs mov w8, #16 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_112 b LBB18_111 LBB18_111: bl _abort LBB18_112: mov w0, #32768 bl _my_clz mov w8, #16 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_114 b LBB18_113 LBB18_113: bl _abort LBB18_114: mov w0, #32768 bl _my_ctz mov w8, #15 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_116 b LBB18_115 LBB18_115: bl _abort LBB18_116: mov w0, #32768 bl _my_clrsb mov w8, #15 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_118 b LBB18_117 LBB18_117: bl _abort LBB18_118: mov w0, #32768 bl _my_popcount mov w8, #1 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_120 b LBB18_119 LBB18_119: bl _abort LBB18_120: mov w0, #32768 bl _my_parity mov w8, #1 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_122 b LBB18_121 LBB18_121: bl _abort LBB18_122: ldur w0, [x29, #-64] ; 4-byte Folded Reload bl _my_ffs mov w8, #1 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_124 b LBB18_123 LBB18_123: bl _abort LBB18_124: ldur w0, [x29, #-64] ; 4-byte Folded Reload bl _my_clz mov w8, #0 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_126 b LBB18_125 LBB18_125: bl _abort LBB18_126: ldur w0, [x29, #-64] ; 4-byte Folded Reload bl _my_ctz mov w8, #0 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_128 b LBB18_127 LBB18_127: bl _abort LBB18_128: ldur w0, [x29, #-64] ; 4-byte Folded Reload bl _my_clrsb mov w8, #0 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_130 b LBB18_129 LBB18_129: bl _abort LBB18_130: ldur w0, [x29, #-64] ; 4-byte Folded Reload bl _my_popcount mov w8, #16 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_132 b LBB18_131 LBB18_131: bl _abort LBB18_132: ldur w0, [x29, #-64] ; 4-byte Folded Reload bl _my_parity mov w8, #0 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_134 b LBB18_133 LBB18_133: bl _abort LBB18_134: ldur w0, [x29, #-60] ; 4-byte Folded Reload bl _my_ffs mov w8, #2 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_136 b LBB18_135 LBB18_135: bl _abort LBB18_136: ldur w0, [x29, #-60] ; 4-byte Folded Reload bl _my_clz mov w8, #1 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_138 b LBB18_137 LBB18_137: bl _abort LBB18_138: ldur w0, [x29, #-60] ; 4-byte Folded Reload bl _my_ctz mov w8, #1 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_140 b LBB18_139 LBB18_139: bl _abort LBB18_140: ldur w0, [x29, #-60] ; 4-byte Folded Reload bl _my_clrsb mov w8, #0 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_142 b LBB18_141 LBB18_141: bl _abort LBB18_142: ldur w0, [x29, #-60] ; 4-byte Folded Reload bl _my_popcount mov w8, #16 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_144 b LBB18_143 LBB18_143: bl _abort LBB18_144: ldur w0, [x29, #-60] ; 4-byte Folded Reload bl _my_parity mov w8, #0 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_146 b LBB18_145 LBB18_145: bl _abort LBB18_146: ldur w0, [x29, #-56] ; 4-byte Folded Reload bl _my_ffs mov w8, #18 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_148 b LBB18_147 LBB18_147: bl _abort LBB18_148: ldur w0, [x29, #-56] ; 4-byte Folded Reload bl _my_clz mov w8, #0 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_150 b LBB18_149 LBB18_149: bl _abort LBB18_150: ldur w0, [x29, #-56] ; 4-byte Folded Reload bl _my_ctz mov w8, #17 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_152 b LBB18_151 LBB18_151: bl _abort LBB18_152: ldur w0, [x29, #-56] ; 4-byte Folded Reload bl _my_clrsb mov w8, #1 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_154 b LBB18_153 LBB18_153: bl _abort LBB18_154: ldur w0, [x29, #-56] ; 4-byte Folded Reload bl _my_popcount mov w8, #11 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_156 b LBB18_155 LBB18_155: bl _abort LBB18_156: ldur w0, [x29, #-56] ; 4-byte Folded Reload bl _my_parity mov w8, #1 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_158 b LBB18_157 LBB18_157: bl _abort LBB18_158: ldur w0, [x29, #-52] ; 4-byte Folded Reload bl _my_ffs mov w8, #10 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_160 b LBB18_159 LBB18_159: bl _abort LBB18_160: ldur w0, [x29, #-52] ; 4-byte Folded Reload bl _my_clz mov w8, #8 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_162 b LBB18_161 LBB18_161: bl _abort LBB18_162: ldur w0, [x29, #-52] ; 4-byte Folded Reload bl _my_ctz mov w8, #9 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_164 b LBB18_163 LBB18_163: bl _abort LBB18_164: ldur w0, [x29, #-52] ; 4-byte Folded Reload bl _my_clrsb mov w8, #7 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_166 b LBB18_165 LBB18_165: bl _abort LBB18_166: ldur w0, [x29, #-52] ; 4-byte Folded Reload bl _my_popcount mov w8, #11 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_168 b LBB18_167 LBB18_167: bl _abort LBB18_168: ldur w0, [x29, #-52] ; 4-byte Folded Reload bl _my_parity mov w8, #1 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_170 b LBB18_169 LBB18_169: bl _abort LBB18_170: mov w0, #51966 bl _my_ffs mov w8, #2 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_172 b LBB18_171 LBB18_171: bl _abort LBB18_172: mov w0, #51966 bl _my_clz mov w8, #16 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_174 b LBB18_173 LBB18_173: bl _abort LBB18_174: mov w0, #51966 bl _my_ctz mov w8, #1 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_176 b LBB18_175 LBB18_175: bl _abort LBB18_176: mov w0, #51966 bl _my_clrsb mov w8, #15 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_178 b LBB18_177 LBB18_177: bl _abort LBB18_178: mov w0, #51966 bl _my_popcount mov w8, #11 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_180 b LBB18_179 LBB18_179: bl _abort LBB18_180: mov w0, #51966 bl _my_parity mov w8, #1 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_182 b LBB18_181 LBB18_181: bl _abort LBB18_182: mov w0, #-1 bl _my_ffs mov w8, #1 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_184 b LBB18_183 LBB18_183: bl _abort LBB18_184: mov w0, #-1 bl _my_clz mov w8, #0 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_186 b LBB18_185 LBB18_185: bl _abort LBB18_186: mov w0, #-1 bl _my_ctz mov w8, #0 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_188 b LBB18_187 LBB18_187: bl _abort LBB18_188: mov w0, #-1 bl _my_clrsb mov w8, #31 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_190 b LBB18_189 LBB18_189: bl _abort LBB18_190: mov w0, #-1 bl _my_popcount mov w8, #32 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_192 b LBB18_191 LBB18_191: bl _abort LBB18_192: mov w0, #-1 bl _my_parity mov w8, #0 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_194 b LBB18_193 LBB18_193: bl _abort LBB18_194: mov x0, #0 bl _my_ffsll mov w8, #0 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_196 b LBB18_195 LBB18_195: bl _abort LBB18_196: mov x0, #0 bl _my_clrsbll mov w8, #63 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_198 b LBB18_197 LBB18_197: bl _abort LBB18_198: mov x0, #0 bl _my_popcountll mov w8, #0 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_200 b LBB18_199 LBB18_199: bl _abort LBB18_200: mov x0, #0 bl _my_parityll mov w8, #0 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_202 b LBB18_201 LBB18_201: bl _abort LBB18_202: mov x0, #1 bl _my_ffsll mov w8, #1 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_204 b LBB18_203 LBB18_203: bl _abort LBB18_204: mov x0, #1 bl _my_clzll mov w8, #63 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_206 b LBB18_205 LBB18_205: bl _abort LBB18_206: mov x0, #1 bl _my_ctzll mov w8, #0 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_208 b LBB18_207 LBB18_207: bl _abort LBB18_208: mov x0, #1 bl _my_clrsbll mov w8, #62 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_210 b LBB18_209 LBB18_209: bl _abort LBB18_210: mov x0, #1 bl _my_popcountll mov w8, #1 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_212 b LBB18_211 LBB18_211: bl _abort LBB18_212: mov x0, #1 bl _my_parityll mov w8, #1 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_214 b LBB18_213 LBB18_213: bl _abort LBB18_214: mov x0, #-9223372036854775808 bl _my_ffsll mov w8, #64 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_216 b LBB18_215 LBB18_215: bl _abort LBB18_216: mov x0, #-9223372036854775808 bl _my_clzll mov w8, #0 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_218 b LBB18_217 LBB18_217: bl _abort LBB18_218: mov x0, #-9223372036854775808 bl _my_ctzll mov w8, #63 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_220 b LBB18_219 LBB18_219: bl _abort LBB18_220: mov x0, #-9223372036854775808 bl _my_clrsbll mov w8, #0 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_222 b LBB18_221 LBB18_221: bl _abort LBB18_222: mov x0, #-9223372036854775808 bl _my_popcountll mov w8, #1 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_224 b LBB18_223 LBB18_223: bl _abort LBB18_224: mov x0, #-9223372036854775808 bl _my_parityll mov w8, #1 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_226 b LBB18_225 LBB18_225: bl _abort LBB18_226: mov x0, #2 bl _my_ffsll mov w8, #2 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_228 b LBB18_227 LBB18_227: bl _abort LBB18_228: mov x0, #2 bl _my_clzll mov w8, #62 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_230 b LBB18_229 LBB18_229: bl _abort LBB18_230: mov x0, #2 bl _my_ctzll mov w8, #1 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_232 b LBB18_231 LBB18_231: bl _abort LBB18_232: mov x0, #2 bl _my_clrsbll mov w8, #61 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_234 b LBB18_233 LBB18_233: bl _abort LBB18_234: mov x0, #2 bl _my_popcountll mov w8, #1 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_236 b LBB18_235 LBB18_235: bl _abort LBB18_236: mov x0, #2 bl _my_parityll mov w8, #1 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_238 b LBB18_237 LBB18_237: bl _abort LBB18_238: mov x0, #4611686018427387904 bl _my_ffsll mov w8, #63 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_240 b LBB18_239 LBB18_239: bl _abort LBB18_240: mov x0, #4611686018427387904 bl _my_clzll mov w8, #1 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_242 b LBB18_241 LBB18_241: bl _abort LBB18_242: mov x0, #4611686018427387904 bl _my_ctzll mov w8, #62 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_244 b LBB18_243 LBB18_243: bl _abort LBB18_244: mov x0, #4611686018427387904 bl _my_clrsbll mov w8, #0 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_246 b LBB18_245 LBB18_245: bl _abort LBB18_246: mov x0, #4611686018427387904 bl _my_popcountll mov w8, #1 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_248 b LBB18_247 LBB18_247: bl _abort LBB18_248: mov x0, #4611686018427387904 bl _my_parityll mov w8, #1 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_250 b LBB18_249 LBB18_249: bl _abort LBB18_250: mov x0, #4294967296 bl _my_ffsll mov w8, #33 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_252 b LBB18_251 LBB18_251: bl _abort LBB18_252: mov x0, #4294967296 bl _my_clzll mov w8, #31 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_254 b LBB18_253 LBB18_253: bl _abort LBB18_254: mov x0, #4294967296 bl _my_ctzll mov w8, #32 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_256 b LBB18_255 LBB18_255: bl _abort LBB18_256: mov x0, #4294967296 bl _my_clrsbll mov w8, #30 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_258 b LBB18_257 LBB18_257: bl _abort LBB18_258: mov x0, #4294967296 bl _my_popcountll mov w8, #1 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_260 b LBB18_259 LBB18_259: bl _abort LBB18_260: mov x0, #4294967296 bl _my_parityll mov w8, #1 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_262 b LBB18_261 LBB18_261: bl _abort LBB18_262: mov x0, #2147483648 bl _my_ffsll mov w8, #32 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_264 b LBB18_263 LBB18_263: bl _abort LBB18_264: mov x0, #2147483648 bl _my_clzll mov w8, #32 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_266 b LBB18_265 LBB18_265: bl _abort LBB18_266: mov x0, #2147483648 bl _my_ctzll mov w8, #31 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_268 b LBB18_267 LBB18_267: bl _abort LBB18_268: mov x0, #2147483648 bl _my_clrsbll mov w8, #31 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_270 b LBB18_269 LBB18_269: bl _abort LBB18_270: mov x0, #2147483648 bl _my_popcountll mov w8, #1 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_272 b LBB18_271 LBB18_271: bl _abort LBB18_272: mov x0, #2147483648 bl _my_parityll mov w8, #1 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_274 b LBB18_273 LBB18_273: bl _abort LBB18_274: ldur x0, [x29, #-48] ; 8-byte Folded Reload bl _my_ffsll mov w8, #1 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_276 b LBB18_275 LBB18_275: bl _abort LBB18_276: ldur x0, [x29, #-48] ; 8-byte Folded Reload bl _my_clzll mov w8, #0 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_278 b LBB18_277 LBB18_277: bl _abort LBB18_278: ldur x0, [x29, #-48] ; 8-byte Folded Reload bl _my_ctzll mov w8, #0 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_280 b LBB18_279 LBB18_279: bl _abort LBB18_280: ldur x0, [x29, #-48] ; 8-byte Folded Reload bl _my_clrsbll mov w8, #0 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_282 b LBB18_281 LBB18_281: bl _abort LBB18_282: ldur x0, [x29, #-48] ; 8-byte Folded Reload bl _my_popcountll mov w8, #32 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_284 b LBB18_283 LBB18_283: bl _abort LBB18_284: ldur x0, [x29, #-48] ; 8-byte Folded Reload bl _my_parityll mov w8, #0 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_286 b LBB18_285 LBB18_285: bl _abort LBB18_286: ldur x0, [x29, #-40] ; 8-byte Folded Reload bl _my_ffsll mov w8, #2 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_288 b LBB18_287 LBB18_287: bl _abort LBB18_288: ldur x0, [x29, #-40] ; 8-byte Folded Reload bl _my_clzll mov w8, #1 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_290 b LBB18_289 LBB18_289: bl _abort LBB18_290: ldur x0, [x29, #-40] ; 8-byte Folded Reload bl _my_ctzll mov w8, #1 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_292 b LBB18_291 LBB18_291: bl _abort LBB18_292: ldur x0, [x29, #-40] ; 8-byte Folded Reload bl _my_clrsbll mov w8, #0 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_294 b LBB18_293 LBB18_293: bl _abort LBB18_294: ldur x0, [x29, #-40] ; 8-byte Folded Reload bl _my_popcountll mov w8, #32 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_296 b LBB18_295 LBB18_295: bl _abort LBB18_296: ldur x0, [x29, #-40] ; 8-byte Folded Reload bl _my_parityll mov w8, #0 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_298 b LBB18_297 LBB18_297: bl _abort LBB18_298: ldur x0, [x29, #-32] ; 8-byte Folded Reload bl _my_ffsll mov w8, #34 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_300 b LBB18_299 LBB18_299: bl _abort LBB18_300: ldur x0, [x29, #-32] ; 8-byte Folded Reload bl _my_clzll mov w8, #0 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_302 b LBB18_301 LBB18_301: bl _abort LBB18_302: ldur x0, [x29, #-32] ; 8-byte Folded Reload bl _my_ctzll mov w8, #33 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_304 b LBB18_303 LBB18_303: bl _abort LBB18_304: ldur x0, [x29, #-32] ; 8-byte Folded Reload bl _my_clrsbll mov w8, #1 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_306 b LBB18_305 LBB18_305: bl _abort LBB18_306: ldur x0, [x29, #-32] ; 8-byte Folded Reload bl _my_popcountll mov w8, #22 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_308 b LBB18_307 LBB18_307: bl _abort LBB18_308: ldur x0, [x29, #-32] ; 8-byte Folded Reload bl _my_parityll mov w8, #0 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_310 b LBB18_309 LBB18_309: bl _abort LBB18_310: ldur x0, [x29, #-24] ; 8-byte Folded Reload bl _my_ffsll mov w8, #18 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_312 b LBB18_311 LBB18_311: bl _abort LBB18_312: ldur x0, [x29, #-24] ; 8-byte Folded Reload bl _my_clzll mov w8, #16 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_314 b LBB18_313 LBB18_313: bl _abort LBB18_314: ldur x0, [x29, #-24] ; 8-byte Folded Reload bl _my_ctzll mov w8, #17 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_316 b LBB18_315 LBB18_315: bl _abort LBB18_316: ldur x0, [x29, #-24] ; 8-byte Folded Reload bl _my_clrsbll mov w8, #15 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_318 b LBB18_317 LBB18_317: bl _abort LBB18_318: ldur x0, [x29, #-24] ; 8-byte Folded Reload bl _my_popcountll mov w8, #22 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_320 b LBB18_319 LBB18_319: bl _abort LBB18_320: ldur x0, [x29, #-24] ; 8-byte Folded Reload bl _my_parityll mov w8, #0 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_322 b LBB18_321 LBB18_321: bl _abort LBB18_322: ldur x0, [x29, #-16] ; 8-byte Folded Reload bl _my_ffsll mov w8, #2 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_324 b LBB18_323 LBB18_323: bl _abort LBB18_324: ldur x0, [x29, #-16] ; 8-byte Folded Reload bl _my_clzll mov w8, #32 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_326 b LBB18_325 LBB18_325: bl _abort LBB18_326: ldur x0, [x29, #-16] ; 8-byte Folded Reload bl _my_ctzll mov w8, #1 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_328 b LBB18_327 LBB18_327: bl _abort LBB18_328: ldur x0, [x29, #-16] ; 8-byte Folded Reload bl _my_clrsbll mov w8, #31 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_330 b LBB18_329 LBB18_329: bl _abort LBB18_330: ldur x0, [x29, #-16] ; 8-byte Folded Reload bl _my_popcountll mov w8, #22 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_332 b LBB18_331 LBB18_331: bl _abort LBB18_332: ldur x0, [x29, #-16] ; 8-byte Folded Reload bl _my_parityll mov w8, #0 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_334 b LBB18_333 LBB18_333: bl _abort LBB18_334: mov x0, #-1 bl _my_ffsll mov w8, #1 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_336 b LBB18_335 LBB18_335: bl _abort LBB18_336: mov x0, #-1 bl _my_clzll mov w8, #0 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_338 b LBB18_337 LBB18_337: bl _abort LBB18_338: mov x0, #-1 bl _my_ctzll mov w8, #0 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_340 b LBB18_339 LBB18_339: bl _abort LBB18_340: mov x0, #-1 bl _my_clrsbll mov w8, #63 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_342 b LBB18_341 LBB18_341: bl _abort LBB18_342: mov x0, #-1 bl _my_popcountll mov w8, #64 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_344 b LBB18_343 LBB18_343: bl _abort LBB18_344: mov x0, #-1 bl _my_parityll mov w8, #0 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB18_346 b LBB18_345 LBB18_345: bl _abort LBB18_346: mov w0, #0 bl _exit .cfi_endproc ; -- End function .section __DATA,__data .globl _ints ; @ints .p2align 2 _ints: .long 0 ; 0x0 .long 1 ; 0x1 .long 2147483648 ; 0x80000000 .long 2 ; 0x2 .long 1073741824 ; 0x40000000 .long 65536 ; 0x10000 .long 32768 ; 0x8000 .long 2779096485 ; 0xa5a5a5a5 .long 1515870810 ; 0x5a5a5a5a .long 3405643776 ; 0xcafe0000 .long 13303296 ; 0xcafe00 .long 51966 ; 0xcafe .long 4294967295 ; 0xffffffff .globl _longs ; @longs .p2align 3 _longs: .quad 0 ; 0x0 .quad 1 ; 0x1 .quad -9223372036854775808 ; 0x8000000000000000 .quad 2 ; 0x2 .quad 4611686018427387904 ; 0x4000000000000000 .quad 4294967296 ; 0x100000000 .quad 2147483648 ; 0x80000000 .quad -6510615555426900571 ; 0xa5a5a5a5a5a5a5a5 .quad 6510615555426900570 ; 0x5a5a5a5a5a5a5a5a .quad -3819392241693097984 ; 0xcafecafe00000000 .quad 223195676147712 ; 0xcafecafe0000 .quad 3405695742 ; 0xcafecafe .quad -1 ; 0xffffffffffffffff .globl _longlongs ; @longlongs .p2align 3 _longlongs: .quad 0 ; 0x0 .quad 1 ; 0x1 .quad -9223372036854775808 ; 0x8000000000000000 .quad 2 ; 0x2 .quad 4611686018427387904 ; 0x4000000000000000 .quad 4294967296 ; 0x100000000 .quad 2147483648 ; 0x80000000 .quad -6510615555426900571 ; 0xa5a5a5a5a5a5a5a5 .quad 6510615555426900570 ; 0x5a5a5a5a5a5a5a5a .quad -3819392241693097984 ; 0xcafecafe00000000 .quad 223195676147712 ; 0xcafecafe0000 .quad 3405695742 ; 0xcafecafe .quad -1 ; 0xffffffffffffffff .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _my_ffs ## -- Begin function my_ffs .p2align 4, 0x90 _my_ffs: ## @my_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_9 LBB0_2: movl $0, -12(%rbp) LBB0_3: ## =>This Inner Loop Header: Depth=1 movslq -12(%rbp), %rax cmpq $32, %rax jae LBB0_8 ## %bb.4: ## in Loop: Header=BB0_3 Depth=1 movl -8(%rbp), %eax movl -12(%rbp), %ecx movl $1, %edx ## kill: def $cl killed $ecx shll %cl, %edx movl %edx, %ecx andl %ecx, %eax cmpl $0, %eax je LBB0_6 ## %bb.5: jmp LBB0_8 LBB0_6: ## in Loop: Header=BB0_3 Depth=1 jmp LBB0_7 LBB0_7: ## in Loop: Header=BB0_3 Depth=1 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB0_3 LBB0_8: movl -12(%rbp), %eax addl $1, %eax movl %eax, -4(%rbp) LBB0_9: movl -4(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .globl _my_ctz ## -- Begin function my_ctz .p2align 4, 0x90 _my_ctz: ## @my_ctz .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, -4(%rbp) movl $0, -8(%rbp) LBB1_1: ## =>This Inner Loop Header: Depth=1 movslq -8(%rbp), %rax cmpq $32, %rax jae LBB1_6 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 movl -4(%rbp), %eax movl -8(%rbp), %ecx movl $1, %edx ## kill: def $cl killed $ecx shll %cl, %edx movl %edx, %ecx andl %ecx, %eax cmpl $0, %eax je LBB1_4 ## %bb.3: jmp LBB1_6 LBB1_4: ## in Loop: Header=BB1_1 Depth=1 jmp LBB1_5 LBB1_5: ## in Loop: Header=BB1_1 Depth=1 movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) jmp LBB1_1 LBB1_6: movl -8(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .globl _my_clz ## -- Begin function my_clz .p2align 4, 0x90 _my_clz: ## @my_clz .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, -4(%rbp) movl $0, -8(%rbp) LBB2_1: ## =>This Inner Loop Header: Depth=1 movslq -8(%rbp), %rax cmpq $32, %rax jae LBB2_6 ## %bb.2: ## in Loop: Header=BB2_1 Depth=1 movl -4(%rbp), %eax movslq -8(%rbp), %rdx movl $32, %ecx subq %rdx, %rcx subq $1, %rcx ## kill: def $ecx killed $ecx killed $rcx movl $1, %edx ## kill: def $cl killed $ecx shll %cl, %edx movl %edx, %ecx andl %ecx, %eax cmpl $0, %eax je LBB2_4 ## %bb.3: jmp LBB2_6 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: movl -8(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .globl _my_clrsb ## -- Begin function my_clrsb .p2align 4, 0x90 _my_clrsb: ## @my_clrsb .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 shrl $31, %eax andl $1, %eax movl %eax, -12(%rbp) movl $1, -8(%rbp) LBB3_1: ## =>This Inner Loop Header: Depth=1 movslq -8(%rbp), %rax cmpq $32, %rax jae LBB3_6 ## %bb.2: ## in Loop: Header=BB3_1 Depth=1 movl -4(%rbp), %eax movslq -8(%rbp), %rdx movl $32, %ecx subq %rdx, %rcx subq $1, %rcx ## kill: def $ecx killed $ecx killed $rcx ## kill: def $cl killed $ecx shrl %cl, %eax andl $1, %eax cmpl -12(%rbp), %eax je LBB3_4 ## %bb.3: jmp LBB3_6 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 -8(%rbp), %eax subl $1, %eax popq %rbp retq .cfi_endproc ## -- End function .globl _my_popcount ## -- Begin function my_popcount .p2align 4, 0x90 _my_popcount: ## @my_popcount .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, -4(%rbp) movl $0, -12(%rbp) movl $0, -8(%rbp) LBB4_1: ## =>This Inner Loop Header: Depth=1 movslq -8(%rbp), %rax cmpq $32, %rax jae LBB4_6 ## %bb.2: ## in Loop: Header=BB4_1 Depth=1 movl -4(%rbp), %eax movl -8(%rbp), %ecx movl $1, %edx ## kill: def $cl killed $ecx shll %cl, %edx movl %edx, %ecx andl %ecx, %eax cmpl $0, %eax je LBB4_4 ## %bb.3: ## in Loop: Header=BB4_1 Depth=1 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) LBB4_4: ## in Loop: Header=BB4_1 Depth=1 jmp LBB4_5 LBB4_5: ## in Loop: Header=BB4_1 Depth=1 movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) jmp LBB4_1 LBB4_6: movl -12(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .globl _my_parity ## -- Begin function my_parity .p2align 4, 0x90 _my_parity: ## @my_parity .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, -4(%rbp) movl $0, -12(%rbp) movl $0, -8(%rbp) LBB5_1: ## =>This Inner Loop Header: Depth=1 movslq -8(%rbp), %rax cmpq $32, %rax jae LBB5_6 ## %bb.2: ## in Loop: Header=BB5_1 Depth=1 movl -4(%rbp), %eax movl -8(%rbp), %ecx movl $1, %edx ## kill: def $cl killed $ecx shll %cl, %edx movl %edx, %ecx andl %ecx, %eax cmpl $0, %eax je LBB5_4 ## %bb.3: ## in Loop: Header=BB5_1 Depth=1 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) LBB5_4: ## in Loop: Header=BB5_1 Depth=1 jmp LBB5_5 LBB5_5: ## in Loop: Header=BB5_1 Depth=1 movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) jmp LBB5_1 LBB5_6: movl -12(%rbp), %eax andl $1, %eax popq %rbp retq .cfi_endproc ## -- End function .globl _my_ffsl ## -- Begin function my_ffsl .p2align 4, 0x90 _my_ffsl: ## @my_ffsl .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) cmpq $0, -16(%rbp) jne LBB6_2 ## %bb.1: movl $0, -4(%rbp) jmp LBB6_9 LBB6_2: movl $0, -20(%rbp) LBB6_3: ## =>This Inner Loop Header: Depth=1 movslq -20(%rbp), %rax cmpq $64, %rax jae LBB6_8 ## %bb.4: ## in Loop: Header=BB6_3 Depth=1 movq -16(%rbp), %rax movl -20(%rbp), %ecx ## kill: def $rcx killed $ecx movl $1, %edx ## kill: def $cl killed $rcx shlq %cl, %rdx movq %rdx, %rcx andq %rcx, %rax cmpq $0, %rax je LBB6_6 ## %bb.5: jmp LBB6_8 LBB6_6: ## in Loop: Header=BB6_3 Depth=1 jmp LBB6_7 LBB6_7: ## in Loop: Header=BB6_3 Depth=1 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB6_3 LBB6_8: movl -20(%rbp), %eax addl $1, %eax movl %eax, -4(%rbp) LBB6_9: movl -4(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .globl _my_ctzl ## -- Begin function my_ctzl .p2align 4, 0x90 _my_ctzl: ## @my_ctzl .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) movl $0, -12(%rbp) LBB7_1: ## =>This Inner Loop Header: Depth=1 movslq -12(%rbp), %rax cmpq $64, %rax jae LBB7_6 ## %bb.2: ## in Loop: Header=BB7_1 Depth=1 movq -8(%rbp), %rax movl -12(%rbp), %ecx ## kill: def $rcx killed $ecx movl $1, %edx ## kill: def $cl killed $rcx shlq %cl, %rdx movq %rdx, %rcx andq %rcx, %rax cmpq $0, %rax je LBB7_4 ## %bb.3: jmp LBB7_6 LBB7_4: ## in Loop: Header=BB7_1 Depth=1 jmp LBB7_5 LBB7_5: ## in Loop: Header=BB7_1 Depth=1 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB7_1 LBB7_6: movl -12(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .globl _my_clzl ## -- Begin function my_clzl .p2align 4, 0x90 _my_clzl: ## @my_clzl .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) movl $0, -12(%rbp) LBB8_1: ## =>This Inner Loop Header: Depth=1 movslq -12(%rbp), %rax cmpq $64, %rax jae LBB8_6 ## %bb.2: ## in Loop: Header=BB8_1 Depth=1 movq -8(%rbp), %rax movslq -12(%rbp), %rdx movl $64, %ecx subq %rdx, %rcx subq $1, %rcx movl $1, %edx ## kill: def $cl killed $rcx shlq %cl, %rdx movq %rdx, %rcx andq %rcx, %rax cmpq $0, %rax je LBB8_4 ## %bb.3: jmp LBB8_6 LBB8_4: ## in Loop: Header=BB8_1 Depth=1 jmp LBB8_5 LBB8_5: ## in Loop: Header=BB8_1 Depth=1 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB8_1 LBB8_6: movl -12(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .globl _my_clrsbl ## -- Begin function my_clrsbl .p2align 4, 0x90 _my_clrsbl: ## @my_clrsbl .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 shrq $63, %rax andq $1, %rax ## kill: def $eax killed $eax killed $rax movl %eax, -16(%rbp) movl $1, -12(%rbp) LBB9_1: ## =>This Inner Loop Header: Depth=1 movslq -12(%rbp), %rax cmpq $64, %rax jae LBB9_6 ## %bb.2: ## in Loop: Header=BB9_1 Depth=1 movq -8(%rbp), %rax movslq -12(%rbp), %rdx movl $64, %ecx subq %rdx, %rcx subq $1, %rcx ## kill: def $cl killed $rcx shrq %cl, %rax andq $1, %rax movslq -16(%rbp), %rcx cmpq %rcx, %rax je LBB9_4 ## %bb.3: jmp LBB9_6 LBB9_4: ## in Loop: Header=BB9_1 Depth=1 jmp LBB9_5 LBB9_5: ## in Loop: Header=BB9_1 Depth=1 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB9_1 LBB9_6: movl -12(%rbp), %eax subl $1, %eax popq %rbp retq .cfi_endproc ## -- End function .globl _my_popcountl ## -- Begin function my_popcountl .p2align 4, 0x90 _my_popcountl: ## @my_popcountl .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, -16(%rbp) movl $0, -12(%rbp) LBB10_1: ## =>This Inner Loop Header: Depth=1 movslq -12(%rbp), %rax cmpq $64, %rax jae LBB10_6 ## %bb.2: ## in Loop: Header=BB10_1 Depth=1 movq -8(%rbp), %rax movl -12(%rbp), %ecx ## kill: def $rcx killed $ecx movl $1, %edx ## kill: def $cl killed $rcx shlq %cl, %rdx movq %rdx, %rcx andq %rcx, %rax cmpq $0, %rax je LBB10_4 ## %bb.3: ## in Loop: Header=BB10_1 Depth=1 movl -16(%rbp), %eax addl $1, %eax movl %eax, -16(%rbp) LBB10_4: ## in Loop: Header=BB10_1 Depth=1 jmp LBB10_5 LBB10_5: ## in Loop: Header=BB10_1 Depth=1 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB10_1 LBB10_6: movl -16(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .globl _my_parityl ## -- Begin function my_parityl .p2align 4, 0x90 _my_parityl: ## @my_parityl .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, -16(%rbp) movl $0, -12(%rbp) LBB11_1: ## =>This Inner Loop Header: Depth=1 movslq -12(%rbp), %rax cmpq $64, %rax jae LBB11_6 ## %bb.2: ## in Loop: Header=BB11_1 Depth=1 movq -8(%rbp), %rax movl -12(%rbp), %ecx ## kill: def $rcx killed $ecx movl $1, %edx ## kill: def $cl killed $rcx shlq %cl, %rdx movq %rdx, %rcx andq %rcx, %rax cmpq $0, %rax je LBB11_4 ## %bb.3: ## in Loop: Header=BB11_1 Depth=1 movl -16(%rbp), %eax addl $1, %eax movl %eax, -16(%rbp) LBB11_4: ## in Loop: Header=BB11_1 Depth=1 jmp LBB11_5 LBB11_5: ## in Loop: Header=BB11_1 Depth=1 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB11_1 LBB11_6: movl -16(%rbp), %eax andl $1, %eax popq %rbp retq .cfi_endproc ## -- End function .globl _my_ffsll ## -- Begin function my_ffsll .p2align 4, 0x90 _my_ffsll: ## @my_ffsll .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) cmpq $0, -16(%rbp) jne LBB12_2 ## %bb.1: movl $0, -4(%rbp) jmp LBB12_9 LBB12_2: movl $0, -20(%rbp) LBB12_3: ## =>This Inner Loop Header: Depth=1 movslq -20(%rbp), %rax cmpq $64, %rax jae LBB12_8 ## %bb.4: ## in Loop: Header=BB12_3 Depth=1 movq -16(%rbp), %rax movl -20(%rbp), %ecx ## kill: def $rcx killed $ecx movl $1, %edx ## kill: def $cl killed $rcx shlq %cl, %rdx movq %rdx, %rcx andq %rcx, %rax cmpq $0, %rax je LBB12_6 ## %bb.5: jmp LBB12_8 LBB12_6: ## in Loop: Header=BB12_3 Depth=1 jmp LBB12_7 LBB12_7: ## in Loop: Header=BB12_3 Depth=1 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB12_3 LBB12_8: movl -20(%rbp), %eax addl $1, %eax movl %eax, -4(%rbp) LBB12_9: movl -4(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .globl _my_ctzll ## -- Begin function my_ctzll .p2align 4, 0x90 _my_ctzll: ## @my_ctzll .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) movl $0, -12(%rbp) LBB13_1: ## =>This Inner Loop Header: Depth=1 movslq -12(%rbp), %rax cmpq $64, %rax jae LBB13_6 ## %bb.2: ## in Loop: Header=BB13_1 Depth=1 movq -8(%rbp), %rax movl -12(%rbp), %ecx ## kill: def $rcx killed $ecx movl $1, %edx ## kill: def $cl killed $rcx shlq %cl, %rdx movq %rdx, %rcx andq %rcx, %rax cmpq $0, %rax je LBB13_4 ## %bb.3: jmp LBB13_6 LBB13_4: ## in Loop: Header=BB13_1 Depth=1 jmp LBB13_5 LBB13_5: ## in Loop: Header=BB13_1 Depth=1 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB13_1 LBB13_6: movl -12(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .globl _my_clzll ## -- Begin function my_clzll .p2align 4, 0x90 _my_clzll: ## @my_clzll .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) movl $0, -12(%rbp) LBB14_1: ## =>This Inner Loop Header: Depth=1 movslq -12(%rbp), %rax cmpq $64, %rax jae LBB14_6 ## %bb.2: ## in Loop: Header=BB14_1 Depth=1 movq -8(%rbp), %rax movslq -12(%rbp), %rdx movl $64, %ecx subq %rdx, %rcx subq $1, %rcx movl $1, %edx ## kill: def $cl killed $rcx shlq %cl, %rdx movq %rdx, %rcx andq %rcx, %rax cmpq $0, %rax je LBB14_4 ## %bb.3: jmp LBB14_6 LBB14_4: ## in Loop: Header=BB14_1 Depth=1 jmp LBB14_5 LBB14_5: ## in Loop: Header=BB14_1 Depth=1 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB14_1 LBB14_6: movl -12(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .globl _my_clrsbll ## -- Begin function my_clrsbll .p2align 4, 0x90 _my_clrsbll: ## @my_clrsbll .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 shrq $63, %rax andq $1, %rax ## kill: def $eax killed $eax killed $rax movl %eax, -16(%rbp) movl $1, -12(%rbp) LBB15_1: ## =>This Inner Loop Header: Depth=1 movslq -12(%rbp), %rax cmpq $64, %rax jae LBB15_6 ## %bb.2: ## in Loop: Header=BB15_1 Depth=1 movq -8(%rbp), %rax movslq -12(%rbp), %rdx movl $64, %ecx subq %rdx, %rcx subq $1, %rcx ## kill: def $cl killed $rcx shrq %cl, %rax andq $1, %rax movslq -16(%rbp), %rcx cmpq %rcx, %rax je LBB15_4 ## %bb.3: jmp LBB15_6 LBB15_4: ## in Loop: Header=BB15_1 Depth=1 jmp LBB15_5 LBB15_5: ## in Loop: Header=BB15_1 Depth=1 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB15_1 LBB15_6: movl -12(%rbp), %eax subl $1, %eax popq %rbp retq .cfi_endproc ## -- End function .globl _my_popcountll ## -- Begin function my_popcountll .p2align 4, 0x90 _my_popcountll: ## @my_popcountll .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, -16(%rbp) movl $0, -12(%rbp) LBB16_1: ## =>This Inner Loop Header: Depth=1 movslq -12(%rbp), %rax cmpq $64, %rax jae LBB16_6 ## %bb.2: ## in Loop: Header=BB16_1 Depth=1 movq -8(%rbp), %rax movl -12(%rbp), %ecx ## kill: def $rcx killed $ecx movl $1, %edx ## kill: def $cl killed $rcx shlq %cl, %rdx movq %rdx, %rcx andq %rcx, %rax cmpq $0, %rax je LBB16_4 ## %bb.3: ## in Loop: Header=BB16_1 Depth=1 movl -16(%rbp), %eax addl $1, %eax movl %eax, -16(%rbp) LBB16_4: ## in Loop: Header=BB16_1 Depth=1 jmp LBB16_5 LBB16_5: ## in Loop: Header=BB16_1 Depth=1 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB16_1 LBB16_6: movl -16(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .globl _my_parityll ## -- Begin function my_parityll .p2align 4, 0x90 _my_parityll: ## @my_parityll .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, -16(%rbp) movl $0, -12(%rbp) LBB17_1: ## =>This Inner Loop Header: Depth=1 movslq -12(%rbp), %rax cmpq $64, %rax jae LBB17_6 ## %bb.2: ## in Loop: Header=BB17_1 Depth=1 movq -8(%rbp), %rax movl -12(%rbp), %ecx ## kill: def $rcx killed $ecx movl $1, %edx ## kill: def $cl killed $rcx shlq %cl, %rdx movq %rdx, %rcx andq %rcx, %rax cmpq $0, %rax je LBB17_4 ## %bb.3: ## in Loop: Header=BB17_1 Depth=1 movl -16(%rbp), %eax addl $1, %eax movl %eax, -16(%rbp) LBB17_4: ## in Loop: Header=BB17_1 Depth=1 jmp LBB17_5 LBB17_5: ## in Loop: Header=BB17_1 Depth=1 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB17_1 LBB17_6: movl -16(%rbp), %eax andl $1, %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 movl $0, -4(%rbp) movl $0, -8(%rbp) LBB18_1: ## =>This Inner Loop Header: Depth=1 movslq -8(%rbp), %rax cmpq $13, %rax jae LBB18_18 ## %bb.2: ## in Loop: Header=BB18_1 Depth=1 movslq -8(%rbp), %rcx leaq _ints(%rip), %rax movl (%rax,%rcx,4), %edx bsfl %edx, %eax addl $1, %eax xorl %ecx, %ecx cmpl $0, %edx cmovel %ecx, %eax movl %eax, -12(%rbp) ## 4-byte Spill movslq -8(%rbp), %rcx leaq _ints(%rip), %rax movl (%rax,%rcx,4), %edi callq _my_ffs movl %eax, %ecx movl -12(%rbp), %eax ## 4-byte Reload cmpl %ecx, %eax je LBB18_4 ## %bb.3: callq _abort LBB18_4: ## in Loop: Header=BB18_1 Depth=1 movslq -8(%rbp), %rcx leaq _ints(%rip), %rax cmpl $0, (%rax,%rcx,4) je LBB18_7 ## %bb.5: ## in Loop: Header=BB18_1 Depth=1 movslq -8(%rbp), %rcx leaq _ints(%rip), %rax movl (%rax,%rcx,4), %eax bsrl %eax, %eax xorl $31, %eax movl %eax, -16(%rbp) ## 4-byte Spill movslq -8(%rbp), %rcx leaq _ints(%rip), %rax movl (%rax,%rcx,4), %edi callq _my_clz movl %eax, %ecx movl -16(%rbp), %eax ## 4-byte Reload cmpl %ecx, %eax je LBB18_7 ## %bb.6: callq _abort LBB18_7: ## in Loop: Header=BB18_1 Depth=1 movslq -8(%rbp), %rcx leaq _ints(%rip), %rax cmpl $0, (%rax,%rcx,4) je LBB18_10 ## %bb.8: ## in Loop: Header=BB18_1 Depth=1 movslq -8(%rbp), %rcx leaq _ints(%rip), %rax movl (%rax,%rcx,4), %eax bsfl %eax, %eax movl %eax, -20(%rbp) ## 4-byte Spill movslq -8(%rbp), %rcx leaq _ints(%rip), %rax movl (%rax,%rcx,4), %edi callq _my_ctz movl %eax, %ecx movl -20(%rbp), %eax ## 4-byte Reload cmpl %ecx, %eax je LBB18_10 ## %bb.9: callq _abort LBB18_10: ## in Loop: Header=BB18_1 Depth=1 movslq -8(%rbp), %rcx leaq _ints(%rip), %rax movl (%rax,%rcx,4), %eax movl %eax, %ecx xorl $-1, %ecx cmpl $0, %eax cmovll %ecx, %eax bsrl %eax, %eax movl $63, %ecx cmovel %ecx, %eax xorl $31, %eax subl $1, %eax movl %eax, -24(%rbp) ## 4-byte Spill movslq -8(%rbp), %rcx leaq _ints(%rip), %rax movl (%rax,%rcx,4), %edi callq _my_clrsb movl %eax, %ecx movl -24(%rbp), %eax ## 4-byte Reload cmpl %ecx, %eax je LBB18_12 ## %bb.11: callq _abort LBB18_12: ## in Loop: Header=BB18_1 Depth=1 movslq -8(%rbp), %rcx leaq _ints(%rip), %rax movl (%rax,%rcx,4), %ecx movl %ecx, %eax shrl %eax andl $1431655765, %eax ## imm = 0x55555555 subl %eax, %ecx movl %ecx, %eax andl $858993459, %eax ## imm = 0x33333333 shrl $2, %ecx andl $858993459, %ecx ## imm = 0x33333333 addl %ecx, %eax movl %eax, %ecx shrl $4, %ecx addl %ecx, %eax andl $252645135, %eax ## imm = 0xF0F0F0F imull $16843009, %eax, %eax ## imm = 0x1010101 shrl $24, %eax movl %eax, -28(%rbp) ## 4-byte Spill movslq -8(%rbp), %rcx leaq _ints(%rip), %rax movl (%rax,%rcx,4), %edi callq _my_popcount movl %eax, %ecx movl -28(%rbp), %eax ## 4-byte Reload cmpl %ecx, %eax je LBB18_14 ## %bb.13: callq _abort LBB18_14: ## in Loop: Header=BB18_1 Depth=1 movslq -8(%rbp), %rcx leaq _ints(%rip), %rax movl (%rax,%rcx,4), %ecx movl %ecx, %eax shrl %eax andl $1431655765, %eax ## imm = 0x55555555 subl %eax, %ecx movl %ecx, %eax andl $858993459, %eax ## imm = 0x33333333 shrl $2, %ecx andl $858993459, %ecx ## imm = 0x33333333 addl %ecx, %eax movl %eax, %ecx shrl $4, %ecx addl %ecx, %eax andl $252645135, %eax ## imm = 0xF0F0F0F imull $16843009, %eax, %eax ## imm = 0x1010101 shrl $24, %eax andl $1, %eax movl %eax, -32(%rbp) ## 4-byte Spill movslq -8(%rbp), %rcx leaq _ints(%rip), %rax movl (%rax,%rcx,4), %edi callq _my_parity movl %eax, %ecx movl -32(%rbp), %eax ## 4-byte Reload cmpl %ecx, %eax je LBB18_16 ## %bb.15: callq _abort LBB18_16: ## in Loop: Header=BB18_1 Depth=1 jmp LBB18_17 LBB18_17: ## in Loop: Header=BB18_1 Depth=1 movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) jmp LBB18_1 LBB18_18: movl $0, -8(%rbp) LBB18_19: ## =>This Inner Loop Header: Depth=1 movslq -8(%rbp), %rax cmpq $13, %rax jae LBB18_36 ## %bb.20: ## in Loop: Header=BB18_19 Depth=1 movslq -8(%rbp), %rcx leaq _longs(%rip), %rax movq (%rax,%rcx,8), %rdx bsfq %rdx, %rax addq $1, %rax xorl %ecx, %ecx ## kill: def $rcx killed $ecx cmpq $0, %rdx cmoveq %rcx, %rax ## kill: def $eax killed $eax killed $rax movl %eax, -36(%rbp) ## 4-byte Spill movslq -8(%rbp), %rcx leaq _longs(%rip), %rax movq (%rax,%rcx,8), %rdi callq _my_ffsl movl %eax, %ecx movl -36(%rbp), %eax ## 4-byte Reload cmpl %ecx, %eax je LBB18_22 ## %bb.21: callq _abort LBB18_22: ## in Loop: Header=BB18_19 Depth=1 movslq -8(%rbp), %rcx leaq _longs(%rip), %rax cmpq $0, (%rax,%rcx,8) je LBB18_25 ## %bb.23: ## in Loop: Header=BB18_19 Depth=1 movslq -8(%rbp), %rcx leaq _longs(%rip), %rax movq (%rax,%rcx,8), %rax bsrq %rax, %rax xorq $63, %rax ## kill: def $eax killed $eax killed $rax movl %eax, -40(%rbp) ## 4-byte Spill movslq -8(%rbp), %rcx leaq _longs(%rip), %rax movq (%rax,%rcx,8), %rdi callq _my_clzl movl %eax, %ecx movl -40(%rbp), %eax ## 4-byte Reload cmpl %ecx, %eax je LBB18_25 ## %bb.24: callq _abort LBB18_25: ## in Loop: Header=BB18_19 Depth=1 movslq -8(%rbp), %rcx leaq _longs(%rip), %rax cmpq $0, (%rax,%rcx,8) je LBB18_28 ## %bb.26: ## in Loop: Header=BB18_19 Depth=1 movslq -8(%rbp), %rcx leaq _longs(%rip), %rax movq (%rax,%rcx,8), %rax bsfq %rax, %rax ## kill: def $eax killed $eax killed $rax movl %eax, -44(%rbp) ## 4-byte Spill movslq -8(%rbp), %rcx leaq _longs(%rip), %rax movq (%rax,%rcx,8), %rdi callq _my_ctzl movl %eax, %ecx movl -44(%rbp), %eax ## 4-byte Reload cmpl %ecx, %eax je LBB18_28 ## %bb.27: callq _abort LBB18_28: ## in Loop: Header=BB18_19 Depth=1 movslq -8(%rbp), %rcx leaq _longs(%rip), %rax movq (%rax,%rcx,8), %rax movq %rax, %rcx xorq $-1, %rcx cmpq $0, %rax cmovlq %rcx, %rax bsrq %rax, %rax movl $127, %ecx cmoveq %rcx, %rax xorq $63, %rax subq $1, %rax ## kill: def $eax killed $eax killed $rax movl %eax, -48(%rbp) ## 4-byte Spill movslq -8(%rbp), %rcx leaq _longs(%rip), %rax movq (%rax,%rcx,8), %rdi callq _my_clrsbl movl %eax, %ecx movl -48(%rbp), %eax ## 4-byte Reload cmpl %ecx, %eax je LBB18_30 ## %bb.29: callq _abort LBB18_30: ## in Loop: Header=BB18_19 Depth=1 movslq -8(%rbp), %rcx leaq _longs(%rip), %rax movq (%rax,%rcx,8), %rcx movq %rcx, %rax shrq %rax movabsq $6148914691236517205, %rdx ## imm = 0x5555555555555555 andq %rdx, %rax subq %rax, %rcx movabsq $3689348814741910323, %rdx ## imm = 0x3333333333333333 movq %rcx, %rax andq %rdx, %rax shrq $2, %rcx andq %rdx, %rcx addq %rcx, %rax movq %rax, %rcx shrq $4, %rcx addq %rcx, %rax movabsq $1085102592571150095, %rcx ## imm = 0xF0F0F0F0F0F0F0F andq %rcx, %rax movabsq $72340172838076673, %rcx ## imm = 0x101010101010101 imulq %rcx, %rax shrq $56, %rax ## kill: def $eax killed $eax killed $rax movl %eax, -52(%rbp) ## 4-byte Spill movslq -8(%rbp), %rcx leaq _longs(%rip), %rax movq (%rax,%rcx,8), %rdi callq _my_popcountl movl %eax, %ecx movl -52(%rbp), %eax ## 4-byte Reload cmpl %ecx, %eax je LBB18_32 ## %bb.31: callq _abort LBB18_32: ## in Loop: Header=BB18_19 Depth=1 movslq -8(%rbp), %rcx leaq _longs(%rip), %rax movq (%rax,%rcx,8), %rcx movq %rcx, %rax shrq %rax movabsq $6148914691236517205, %rdx ## imm = 0x5555555555555555 andq %rdx, %rax subq %rax, %rcx movabsq $3689348814741910323, %rdx ## imm = 0x3333333333333333 movq %rcx, %rax andq %rdx, %rax shrq $2, %rcx andq %rdx, %rcx addq %rcx, %rax movq %rax, %rcx shrq $4, %rcx addq %rcx, %rax movabsq $1085102592571150095, %rcx ## imm = 0xF0F0F0F0F0F0F0F andq %rcx, %rax movabsq $72340172838076673, %rcx ## imm = 0x101010101010101 imulq %rcx, %rax shrq $56, %rax andq $1, %rax ## kill: def $eax killed $eax killed $rax movl %eax, -56(%rbp) ## 4-byte Spill movslq -8(%rbp), %rcx leaq _longs(%rip), %rax movq (%rax,%rcx,8), %rdi callq _my_parityl movl %eax, %ecx movl -56(%rbp), %eax ## 4-byte Reload cmpl %ecx, %eax je LBB18_34 ## %bb.33: callq _abort LBB18_34: ## in Loop: Header=BB18_19 Depth=1 jmp LBB18_35 LBB18_35: ## in Loop: Header=BB18_19 Depth=1 movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) jmp LBB18_19 LBB18_36: movl $0, -8(%rbp) LBB18_37: ## =>This Inner Loop Header: Depth=1 movslq -8(%rbp), %rax cmpq $13, %rax jae LBB18_54 ## %bb.38: ## in Loop: Header=BB18_37 Depth=1 movslq -8(%rbp), %rcx leaq _longlongs(%rip), %rax movq (%rax,%rcx,8), %rdx bsfq %rdx, %rax addq $1, %rax xorl %ecx, %ecx ## kill: def $rcx killed $ecx cmpq $0, %rdx cmoveq %rcx, %rax ## kill: def $eax killed $eax killed $rax movl %eax, -60(%rbp) ## 4-byte Spill movslq -8(%rbp), %rcx leaq _longlongs(%rip), %rax movq (%rax,%rcx,8), %rdi callq _my_ffsll movl %eax, %ecx movl -60(%rbp), %eax ## 4-byte Reload cmpl %ecx, %eax je LBB18_40 ## %bb.39: callq _abort LBB18_40: ## in Loop: Header=BB18_37 Depth=1 movslq -8(%rbp), %rcx leaq _longlongs(%rip), %rax cmpq $0, (%rax,%rcx,8) je LBB18_43 ## %bb.41: ## in Loop: Header=BB18_37 Depth=1 movslq -8(%rbp), %rcx leaq _longlongs(%rip), %rax movq (%rax,%rcx,8), %rax bsrq %rax, %rax xorq $63, %rax ## kill: def $eax killed $eax killed $rax movl %eax, -64(%rbp) ## 4-byte Spill movslq -8(%rbp), %rcx leaq _longlongs(%rip), %rax movq (%rax,%rcx,8), %rdi callq _my_clzll movl %eax, %ecx movl -64(%rbp), %eax ## 4-byte Reload cmpl %ecx, %eax je LBB18_43 ## %bb.42: callq _abort LBB18_43: ## in Loop: Header=BB18_37 Depth=1 movslq -8(%rbp), %rcx leaq _longlongs(%rip), %rax cmpq $0, (%rax,%rcx,8) je LBB18_46 ## %bb.44: ## in Loop: Header=BB18_37 Depth=1 movslq -8(%rbp), %rcx leaq _longlongs(%rip), %rax movq (%rax,%rcx,8), %rax bsfq %rax, %rax ## kill: def $eax killed $eax killed $rax movl %eax, -68(%rbp) ## 4-byte Spill movslq -8(%rbp), %rcx leaq _longlongs(%rip), %rax movq (%rax,%rcx,8), %rdi callq _my_ctzll movl %eax, %ecx movl -68(%rbp), %eax ## 4-byte Reload cmpl %ecx, %eax je LBB18_46 ## %bb.45: callq _abort LBB18_46: ## in Loop: Header=BB18_37 Depth=1 movslq -8(%rbp), %rcx leaq _longlongs(%rip), %rax movq (%rax,%rcx,8), %rax movq %rax, %rcx xorq $-1, %rcx cmpq $0, %rax cmovlq %rcx, %rax bsrq %rax, %rax movl $127, %ecx cmoveq %rcx, %rax xorq $63, %rax subq $1, %rax ## kill: def $eax killed $eax killed $rax movl %eax, -72(%rbp) ## 4-byte Spill movslq -8(%rbp), %rcx leaq _longlongs(%rip), %rax movq (%rax,%rcx,8), %rdi callq _my_clrsbll movl %eax, %ecx movl -72(%rbp), %eax ## 4-byte Reload cmpl %ecx, %eax je LBB18_48 ## %bb.47: callq _abort LBB18_48: ## in Loop: Header=BB18_37 Depth=1 movslq -8(%rbp), %rcx leaq _longlongs(%rip), %rax movq (%rax,%rcx,8), %rcx movq %rcx, %rax shrq %rax movabsq $6148914691236517205, %rdx ## imm = 0x5555555555555555 andq %rdx, %rax subq %rax, %rcx movabsq $3689348814741910323, %rdx ## imm = 0x3333333333333333 movq %rcx, %rax andq %rdx, %rax shrq $2, %rcx andq %rdx, %rcx addq %rcx, %rax movq %rax, %rcx shrq $4, %rcx addq %rcx, %rax movabsq $1085102592571150095, %rcx ## imm = 0xF0F0F0F0F0F0F0F andq %rcx, %rax movabsq $72340172838076673, %rcx ## imm = 0x101010101010101 imulq %rcx, %rax shrq $56, %rax ## kill: def $eax killed $eax killed $rax movl %eax, -76(%rbp) ## 4-byte Spill movslq -8(%rbp), %rcx leaq _longlongs(%rip), %rax movq (%rax,%rcx,8), %rdi callq _my_popcountll movl %eax, %ecx movl -76(%rbp), %eax ## 4-byte Reload cmpl %ecx, %eax je LBB18_50 ## %bb.49: callq _abort LBB18_50: ## in Loop: Header=BB18_37 Depth=1 movslq -8(%rbp), %rcx leaq _longlongs(%rip), %rax movq (%rax,%rcx,8), %rcx movq %rcx, %rax shrq %rax movabsq $6148914691236517205, %rdx ## imm = 0x5555555555555555 andq %rdx, %rax subq %rax, %rcx movabsq $3689348814741910323, %rdx ## imm = 0x3333333333333333 movq %rcx, %rax andq %rdx, %rax shrq $2, %rcx andq %rdx, %rcx addq %rcx, %rax movq %rax, %rcx shrq $4, %rcx addq %rcx, %rax movabsq $1085102592571150095, %rcx ## imm = 0xF0F0F0F0F0F0F0F andq %rcx, %rax movabsq $72340172838076673, %rcx ## imm = 0x101010101010101 imulq %rcx, %rax shrq $56, %rax andq $1, %rax ## kill: def $eax killed $eax killed $rax movl %eax, -80(%rbp) ## 4-byte Spill movslq -8(%rbp), %rcx leaq _longlongs(%rip), %rax movq (%rax,%rcx,8), %rdi callq _my_parityll movl %eax, %ecx movl -80(%rbp), %eax ## 4-byte Reload cmpl %ecx, %eax je LBB18_52 ## %bb.51: callq _abort LBB18_52: ## in Loop: Header=BB18_37 Depth=1 jmp LBB18_53 LBB18_53: ## in Loop: Header=BB18_37 Depth=1 movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) jmp LBB18_37 LBB18_54: xorl %edi, %edi callq _my_ffs movl %eax, %ecx xorl %eax, %eax cmpl %ecx, %eax je LBB18_56 ## %bb.55: callq _abort LBB18_56: xorl %edi, %edi callq _my_clrsb movl %eax, %ecx movl $31, %eax cmpl %ecx, %eax je LBB18_58 ## %bb.57: callq _abort LBB18_58: xorl %edi, %edi callq _my_popcount movl %eax, %ecx xorl %eax, %eax cmpl %ecx, %eax je LBB18_60 ## %bb.59: callq _abort LBB18_60: xorl %edi, %edi callq _my_parity movl %eax, %ecx xorl %eax, %eax cmpl %ecx, %eax je LBB18_62 ## %bb.61: callq _abort LBB18_62: movl $1, %edi callq _my_ffs movl %eax, %ecx movl $1, %eax cmpl %ecx, %eax je LBB18_64 ## %bb.63: callq _abort LBB18_64: movl $1, %edi callq _my_clz movl %eax, %ecx movl $31, %eax cmpl %ecx, %eax je LBB18_66 ## %bb.65: callq _abort LBB18_66: movl $1, %edi callq _my_ctz movl %eax, %ecx xorl %eax, %eax cmpl %ecx, %eax je LBB18_68 ## %bb.67: callq _abort LBB18_68: movl $1, %edi callq _my_clrsb movl %eax, %ecx movl $30, %eax cmpl %ecx, %eax je LBB18_70 ## %bb.69: callq _abort LBB18_70: movl $1, %edi callq _my_popcount movl %eax, %ecx movl $1, %eax cmpl %ecx, %eax je LBB18_72 ## %bb.71: callq _abort LBB18_72: movl $1, %edi callq _my_parity movl %eax, %ecx movl $1, %eax cmpl %ecx, %eax je LBB18_74 ## %bb.73: callq _abort LBB18_74: movl $2147483648, %edi ## imm = 0x80000000 callq _my_ffs movl %eax, %ecx movl $32, %eax cmpl %ecx, %eax je LBB18_76 ## %bb.75: callq _abort LBB18_76: movl $2147483648, %edi ## imm = 0x80000000 callq _my_clz movl %eax, %ecx xorl %eax, %eax cmpl %ecx, %eax je LBB18_78 ## %bb.77: callq _abort LBB18_78: movl $2147483648, %edi ## imm = 0x80000000 callq _my_ctz movl %eax, %ecx movl $31, %eax cmpl %ecx, %eax je LBB18_80 ## %bb.79: callq _abort LBB18_80: movl $2147483648, %edi ## imm = 0x80000000 callq _my_clrsb movl %eax, %ecx xorl %eax, %eax cmpl %ecx, %eax je LBB18_82 ## %bb.81: callq _abort LBB18_82: movl $2147483648, %edi ## imm = 0x80000000 callq _my_popcount movl %eax, %ecx movl $1, %eax cmpl %ecx, %eax je LBB18_84 ## %bb.83: callq _abort LBB18_84: movl $2147483648, %edi ## imm = 0x80000000 callq _my_parity movl %eax, %ecx movl $1, %eax cmpl %ecx, %eax je LBB18_86 ## %bb.85: callq _abort LBB18_86: movl $1073741824, %edi ## imm = 0x40000000 callq _my_ffs movl %eax, %ecx movl $31, %eax cmpl %ecx, %eax je LBB18_88 ## %bb.87: callq _abort LBB18_88: movl $1073741824, %edi ## imm = 0x40000000 callq _my_clz movl %eax, %ecx movl $1, %eax cmpl %ecx, %eax je LBB18_90 ## %bb.89: callq _abort LBB18_90: movl $1073741824, %edi ## imm = 0x40000000 callq _my_ctz movl %eax, %ecx movl $30, %eax cmpl %ecx, %eax je LBB18_92 ## %bb.91: callq _abort LBB18_92: movl $1073741824, %edi ## imm = 0x40000000 callq _my_clrsb movl %eax, %ecx xorl %eax, %eax cmpl %ecx, %eax je LBB18_94 ## %bb.93: callq _abort LBB18_94: movl $1073741824, %edi ## imm = 0x40000000 callq _my_popcount movl %eax, %ecx movl $1, %eax cmpl %ecx, %eax je LBB18_96 ## %bb.95: callq _abort LBB18_96: movl $1073741824, %edi ## imm = 0x40000000 callq _my_parity movl %eax, %ecx movl $1, %eax cmpl %ecx, %eax je LBB18_98 ## %bb.97: callq _abort LBB18_98: movl $65536, %edi ## imm = 0x10000 callq _my_ffs movl %eax, %ecx movl $17, %eax cmpl %ecx, %eax je LBB18_100 ## %bb.99: callq _abort LBB18_100: movl $65536, %edi ## imm = 0x10000 callq _my_clz movl %eax, %ecx movl $15, %eax cmpl %ecx, %eax je LBB18_102 ## %bb.101: callq _abort LBB18_102: movl $65536, %edi ## imm = 0x10000 callq _my_ctz movl %eax, %ecx movl $16, %eax cmpl %ecx, %eax je LBB18_104 ## %bb.103: callq _abort LBB18_104: movl $65536, %edi ## imm = 0x10000 callq _my_clrsb movl %eax, %ecx movl $14, %eax cmpl %ecx, %eax je LBB18_106 ## %bb.105: callq _abort LBB18_106: movl $65536, %edi ## imm = 0x10000 callq _my_popcount movl %eax, %ecx movl $1, %eax cmpl %ecx, %eax je LBB18_108 ## %bb.107: callq _abort LBB18_108: movl $65536, %edi ## imm = 0x10000 callq _my_parity movl %eax, %ecx movl $1, %eax cmpl %ecx, %eax je LBB18_110 ## %bb.109: callq _abort LBB18_110: movl $32768, %edi ## imm = 0x8000 callq _my_ffs movl %eax, %ecx movl $16, %eax cmpl %ecx, %eax je LBB18_112 ## %bb.111: callq _abort LBB18_112: movl $32768, %edi ## imm = 0x8000 callq _my_clz movl %eax, %ecx movl $16, %eax cmpl %ecx, %eax je LBB18_114 ## %bb.113: callq _abort LBB18_114: movl $32768, %edi ## imm = 0x8000 callq _my_ctz movl %eax, %ecx movl $15, %eax cmpl %ecx, %eax je LBB18_116 ## %bb.115: callq _abort LBB18_116: movl $32768, %edi ## imm = 0x8000 callq _my_clrsb movl %eax, %ecx movl $15, %eax cmpl %ecx, %eax je LBB18_118 ## %bb.117: callq _abort LBB18_118: movl $32768, %edi ## imm = 0x8000 callq _my_popcount movl %eax, %ecx movl $1, %eax cmpl %ecx, %eax je LBB18_120 ## %bb.119: callq _abort LBB18_120: movl $32768, %edi ## imm = 0x8000 callq _my_parity movl %eax, %ecx movl $1, %eax cmpl %ecx, %eax je LBB18_122 ## %bb.121: callq _abort LBB18_122: movl $2779096485, %edi ## imm = 0xA5A5A5A5 callq _my_ffs movl %eax, %ecx movl $1, %eax cmpl %ecx, %eax je LBB18_124 ## %bb.123: callq _abort LBB18_124: movl $2779096485, %edi ## imm = 0xA5A5A5A5 callq _my_clz movl %eax, %ecx xorl %eax, %eax cmpl %ecx, %eax je LBB18_126 ## %bb.125: callq _abort LBB18_126: movl $2779096485, %edi ## imm = 0xA5A5A5A5 callq _my_ctz movl %eax, %ecx xorl %eax, %eax cmpl %ecx, %eax je LBB18_128 ## %bb.127: callq _abort LBB18_128: movl $2779096485, %edi ## imm = 0xA5A5A5A5 callq _my_clrsb movl %eax, %ecx xorl %eax, %eax cmpl %ecx, %eax je LBB18_130 ## %bb.129: callq _abort LBB18_130: movl $2779096485, %edi ## imm = 0xA5A5A5A5 callq _my_popcount movl %eax, %ecx movl $16, %eax cmpl %ecx, %eax je LBB18_132 ## %bb.131: callq _abort LBB18_132: movl $2779096485, %edi ## imm = 0xA5A5A5A5 callq _my_parity movl %eax, %ecx xorl %eax, %eax cmpl %ecx, %eax je LBB18_134 ## %bb.133: callq _abort LBB18_134: movl $1515870810, %edi ## imm = 0x5A5A5A5A callq _my_ffs movl %eax, %ecx movl $2, %eax cmpl %ecx, %eax je LBB18_136 ## %bb.135: callq _abort LBB18_136: movl $1515870810, %edi ## imm = 0x5A5A5A5A callq _my_clz movl %eax, %ecx movl $1, %eax cmpl %ecx, %eax je LBB18_138 ## %bb.137: callq _abort LBB18_138: movl $1515870810, %edi ## imm = 0x5A5A5A5A callq _my_ctz movl %eax, %ecx movl $1, %eax cmpl %ecx, %eax je LBB18_140 ## %bb.139: callq _abort LBB18_140: movl $1515870810, %edi ## imm = 0x5A5A5A5A callq _my_clrsb movl %eax, %ecx xorl %eax, %eax cmpl %ecx, %eax je LBB18_142 ## %bb.141: callq _abort LBB18_142: movl $1515870810, %edi ## imm = 0x5A5A5A5A callq _my_popcount movl %eax, %ecx movl $16, %eax cmpl %ecx, %eax je LBB18_144 ## %bb.143: callq _abort LBB18_144: movl $1515870810, %edi ## imm = 0x5A5A5A5A callq _my_parity movl %eax, %ecx xorl %eax, %eax cmpl %ecx, %eax je LBB18_146 ## %bb.145: callq _abort LBB18_146: movl $3405643776, %edi ## imm = 0xCAFE0000 callq _my_ffs movl %eax, %ecx movl $18, %eax cmpl %ecx, %eax je LBB18_148 ## %bb.147: callq _abort LBB18_148: movl $3405643776, %edi ## imm = 0xCAFE0000 callq _my_clz movl %eax, %ecx xorl %eax, %eax cmpl %ecx, %eax je LBB18_150 ## %bb.149: callq _abort LBB18_150: movl $3405643776, %edi ## imm = 0xCAFE0000 callq _my_ctz movl %eax, %ecx movl $17, %eax cmpl %ecx, %eax je LBB18_152 ## %bb.151: callq _abort LBB18_152: movl $3405643776, %edi ## imm = 0xCAFE0000 callq _my_clrsb movl %eax, %ecx movl $1, %eax cmpl %ecx, %eax je LBB18_154 ## %bb.153: callq _abort LBB18_154: movl $3405643776, %edi ## imm = 0xCAFE0000 callq _my_popcount movl %eax, %ecx movl $11, %eax cmpl %ecx, %eax je LBB18_156 ## %bb.155: callq _abort LBB18_156: movl $3405643776, %edi ## imm = 0xCAFE0000 callq _my_parity movl %eax, %ecx movl $1, %eax cmpl %ecx, %eax je LBB18_158 ## %bb.157: callq _abort LBB18_158: movl $13303296, %edi ## imm = 0xCAFE00 callq _my_ffs movl %eax, %ecx movl $10, %eax cmpl %ecx, %eax je LBB18_160 ## %bb.159: callq _abort LBB18_160: movl $13303296, %edi ## imm = 0xCAFE00 callq _my_clz movl %eax, %ecx movl $8, %eax cmpl %ecx, %eax je LBB18_162 ## %bb.161: callq _abort LBB18_162: movl $13303296, %edi ## imm = 0xCAFE00 callq _my_ctz movl %eax, %ecx movl $9, %eax cmpl %ecx, %eax je LBB18_164 ## %bb.163: callq _abort LBB18_164: movl $13303296, %edi ## imm = 0xCAFE00 callq _my_clrsb movl %eax, %ecx movl $7, %eax cmpl %ecx, %eax je LBB18_166 ## %bb.165: callq _abort LBB18_166: movl $13303296, %edi ## imm = 0xCAFE00 callq _my_popcount movl %eax, %ecx movl $11, %eax cmpl %ecx, %eax je LBB18_168 ## %bb.167: callq _abort LBB18_168: movl $13303296, %edi ## imm = 0xCAFE00 callq _my_parity movl %eax, %ecx movl $1, %eax cmpl %ecx, %eax je LBB18_170 ## %bb.169: callq _abort LBB18_170: movl $51966, %edi ## imm = 0xCAFE callq _my_ffs movl %eax, %ecx movl $2, %eax cmpl %ecx, %eax je LBB18_172 ## %bb.171: callq _abort LBB18_172: movl $51966, %edi ## imm = 0xCAFE callq _my_clz movl %eax, %ecx movl $16, %eax cmpl %ecx, %eax je LBB18_174 ## %bb.173: callq _abort LBB18_174: movl $51966, %edi ## imm = 0xCAFE callq _my_ctz movl %eax, %ecx movl $1, %eax cmpl %ecx, %eax je LBB18_176 ## %bb.175: callq _abort LBB18_176: movl $51966, %edi ## imm = 0xCAFE callq _my_clrsb movl %eax, %ecx movl $15, %eax cmpl %ecx, %eax je LBB18_178 ## %bb.177: callq _abort LBB18_178: movl $51966, %edi ## imm = 0xCAFE callq _my_popcount movl %eax, %ecx movl $11, %eax cmpl %ecx, %eax je LBB18_180 ## %bb.179: callq _abort LBB18_180: movl $51966, %edi ## imm = 0xCAFE callq _my_parity movl %eax, %ecx movl $1, %eax cmpl %ecx, %eax je LBB18_182 ## %bb.181: callq _abort LBB18_182: movl $4294967295, %edi ## imm = 0xFFFFFFFF callq _my_ffs movl %eax, %ecx movl $1, %eax cmpl %ecx, %eax je LBB18_184 ## %bb.183: callq _abort LBB18_184: movl $4294967295, %edi ## imm = 0xFFFFFFFF callq _my_clz movl %eax, %ecx xorl %eax, %eax cmpl %ecx, %eax je LBB18_186 ## %bb.185: callq _abort LBB18_186: movl $4294967295, %edi ## imm = 0xFFFFFFFF callq _my_ctz movl %eax, %ecx xorl %eax, %eax cmpl %ecx, %eax je LBB18_188 ## %bb.187: callq _abort LBB18_188: movl $4294967295, %edi ## imm = 0xFFFFFFFF callq _my_clrsb movl %eax, %ecx movl $31, %eax cmpl %ecx, %eax je LBB18_190 ## %bb.189: callq _abort LBB18_190: movl $4294967295, %edi ## imm = 0xFFFFFFFF callq _my_popcount movl %eax, %ecx movl $32, %eax cmpl %ecx, %eax je LBB18_192 ## %bb.191: callq _abort LBB18_192: movl $4294967295, %edi ## imm = 0xFFFFFFFF callq _my_parity movl %eax, %ecx xorl %eax, %eax cmpl %ecx, %eax je LBB18_194 ## %bb.193: callq _abort LBB18_194: xorl %eax, %eax movl %eax, %edi callq _my_ffsll movl %eax, %ecx xorl %eax, %eax cmpl %ecx, %eax je LBB18_196 ## %bb.195: callq _abort LBB18_196: xorl %eax, %eax movl %eax, %edi callq _my_clrsbll movl %eax, %ecx movl $63, %eax cmpl %ecx, %eax je LBB18_198 ## %bb.197: callq _abort LBB18_198: xorl %eax, %eax movl %eax, %edi callq _my_popcountll movl %eax, %ecx xorl %eax, %eax cmpl %ecx, %eax je LBB18_200 ## %bb.199: callq _abort LBB18_200: xorl %eax, %eax movl %eax, %edi callq _my_parityll movl %eax, %ecx xorl %eax, %eax cmpl %ecx, %eax je LBB18_202 ## %bb.201: callq _abort LBB18_202: movl $1, %edi callq _my_ffsll movl %eax, %ecx movl $1, %eax cmpl %ecx, %eax je LBB18_204 ## %bb.203: callq _abort LBB18_204: movl $1, %edi callq _my_clzll movl %eax, %ecx movl $63, %eax cmpl %ecx, %eax je LBB18_206 ## %bb.205: callq _abort LBB18_206: movl $1, %edi callq _my_ctzll movl %eax, %ecx xorl %eax, %eax cmpl %ecx, %eax je LBB18_208 ## %bb.207: callq _abort LBB18_208: movl $1, %edi callq _my_clrsbll movl %eax, %ecx movl $62, %eax cmpl %ecx, %eax je LBB18_210 ## %bb.209: callq _abort LBB18_210: movl $1, %edi callq _my_popcountll movl %eax, %ecx movl $1, %eax cmpl %ecx, %eax je LBB18_212 ## %bb.211: callq _abort LBB18_212: movl $1, %edi callq _my_parityll movl %eax, %ecx movl $1, %eax cmpl %ecx, %eax je LBB18_214 ## %bb.213: callq _abort LBB18_214: movabsq $-9223372036854775808, %rdi ## imm = 0x8000000000000000 callq _my_ffsll movl %eax, %ecx movl $64, %eax cmpl %ecx, %eax je LBB18_216 ## %bb.215: callq _abort LBB18_216: movabsq $-9223372036854775808, %rdi ## imm = 0x8000000000000000 callq _my_clzll movl %eax, %ecx xorl %eax, %eax cmpl %ecx, %eax je LBB18_218 ## %bb.217: callq _abort LBB18_218: movabsq $-9223372036854775808, %rdi ## imm = 0x8000000000000000 callq _my_ctzll movl %eax, %ecx movl $63, %eax cmpl %ecx, %eax je LBB18_220 ## %bb.219: callq _abort LBB18_220: movabsq $-9223372036854775808, %rdi ## imm = 0x8000000000000000 callq _my_clrsbll movl %eax, %ecx xorl %eax, %eax cmpl %ecx, %eax je LBB18_222 ## %bb.221: callq _abort LBB18_222: movabsq $-9223372036854775808, %rdi ## imm = 0x8000000000000000 callq _my_popcountll movl %eax, %ecx movl $1, %eax cmpl %ecx, %eax je LBB18_224 ## %bb.223: callq _abort LBB18_224: movabsq $-9223372036854775808, %rdi ## imm = 0x8000000000000000 callq _my_parityll movl %eax, %ecx movl $1, %eax cmpl %ecx, %eax je LBB18_226 ## %bb.225: callq _abort LBB18_226: movl $2, %edi callq _my_ffsll movl %eax, %ecx movl $2, %eax cmpl %ecx, %eax je LBB18_228 ## %bb.227: callq _abort LBB18_228: movl $2, %edi callq _my_clzll movl %eax, %ecx movl $62, %eax cmpl %ecx, %eax je LBB18_230 ## %bb.229: callq _abort LBB18_230: movl $2, %edi callq _my_ctzll movl %eax, %ecx movl $1, %eax cmpl %ecx, %eax je LBB18_232 ## %bb.231: callq _abort LBB18_232: movl $2, %edi callq _my_clrsbll movl %eax, %ecx movl $61, %eax cmpl %ecx, %eax je LBB18_234 ## %bb.233: callq _abort LBB18_234: movl $2, %edi callq _my_popcountll movl %eax, %ecx movl $1, %eax cmpl %ecx, %eax je LBB18_236 ## %bb.235: callq _abort LBB18_236: movl $2, %edi callq _my_parityll movl %eax, %ecx movl $1, %eax cmpl %ecx, %eax je LBB18_238 ## %bb.237: callq _abort LBB18_238: movabsq $4611686018427387904, %rdi ## imm = 0x4000000000000000 callq _my_ffsll movl %eax, %ecx movl $63, %eax cmpl %ecx, %eax je LBB18_240 ## %bb.239: callq _abort LBB18_240: movabsq $4611686018427387904, %rdi ## imm = 0x4000000000000000 callq _my_clzll movl %eax, %ecx movl $1, %eax cmpl %ecx, %eax je LBB18_242 ## %bb.241: callq _abort LBB18_242: movabsq $4611686018427387904, %rdi ## imm = 0x4000000000000000 callq _my_ctzll movl %eax, %ecx movl $62, %eax cmpl %ecx, %eax je LBB18_244 ## %bb.243: callq _abort LBB18_244: movabsq $4611686018427387904, %rdi ## imm = 0x4000000000000000 callq _my_clrsbll movl %eax, %ecx xorl %eax, %eax cmpl %ecx, %eax je LBB18_246 ## %bb.245: callq _abort LBB18_246: movabsq $4611686018427387904, %rdi ## imm = 0x4000000000000000 callq _my_popcountll movl %eax, %ecx movl $1, %eax cmpl %ecx, %eax je LBB18_248 ## %bb.247: callq _abort LBB18_248: movabsq $4611686018427387904, %rdi ## imm = 0x4000000000000000 callq _my_parityll movl %eax, %ecx movl $1, %eax cmpl %ecx, %eax je LBB18_250 ## %bb.249: callq _abort LBB18_250: movabsq $4294967296, %rdi ## imm = 0x100000000 callq _my_ffsll movl %eax, %ecx movl $33, %eax cmpl %ecx, %eax je LBB18_252 ## %bb.251: callq _abort LBB18_252: movabsq $4294967296, %rdi ## imm = 0x100000000 callq _my_clzll movl %eax, %ecx movl $31, %eax cmpl %ecx, %eax je LBB18_254 ## %bb.253: callq _abort LBB18_254: movabsq $4294967296, %rdi ## imm = 0x100000000 callq _my_ctzll movl %eax, %ecx movl $32, %eax cmpl %ecx, %eax je LBB18_256 ## %bb.255: callq _abort LBB18_256: movabsq $4294967296, %rdi ## imm = 0x100000000 callq _my_clrsbll movl %eax, %ecx movl $30, %eax cmpl %ecx, %eax je LBB18_258 ## %bb.257: callq _abort LBB18_258: movabsq $4294967296, %rdi ## imm = 0x100000000 callq _my_popcountll movl %eax, %ecx movl $1, %eax cmpl %ecx, %eax je LBB18_260 ## %bb.259: callq _abort LBB18_260: movabsq $4294967296, %rdi ## imm = 0x100000000 callq _my_parityll movl %eax, %ecx movl $1, %eax cmpl %ecx, %eax je LBB18_262 ## %bb.261: callq _abort LBB18_262: movl $2147483648, %edi ## imm = 0x80000000 callq _my_ffsll movl %eax, %ecx movl $32, %eax cmpl %ecx, %eax je LBB18_264 ## %bb.263: callq _abort LBB18_264: movl $2147483648, %edi ## imm = 0x80000000 callq _my_clzll movl %eax, %ecx movl $32, %eax cmpl %ecx, %eax je LBB18_266 ## %bb.265: callq _abort LBB18_266: movl $2147483648, %edi ## imm = 0x80000000 callq _my_ctzll movl %eax, %ecx movl $31, %eax cmpl %ecx, %eax je LBB18_268 ## %bb.267: callq _abort LBB18_268: movl $2147483648, %edi ## imm = 0x80000000 callq _my_clrsbll movl %eax, %ecx movl $31, %eax cmpl %ecx, %eax je LBB18_270 ## %bb.269: callq _abort LBB18_270: movl $2147483648, %edi ## imm = 0x80000000 callq _my_popcountll movl %eax, %ecx movl $1, %eax cmpl %ecx, %eax je LBB18_272 ## %bb.271: callq _abort LBB18_272: movl $2147483648, %edi ## imm = 0x80000000 callq _my_parityll movl %eax, %ecx movl $1, %eax cmpl %ecx, %eax je LBB18_274 ## %bb.273: callq _abort LBB18_274: movabsq $-6510615555426900571, %rdi ## imm = 0xA5A5A5A5A5A5A5A5 callq _my_ffsll movl %eax, %ecx movl $1, %eax cmpl %ecx, %eax je LBB18_276 ## %bb.275: callq _abort LBB18_276: movabsq $-6510615555426900571, %rdi ## imm = 0xA5A5A5A5A5A5A5A5 callq _my_clzll movl %eax, %ecx xorl %eax, %eax cmpl %ecx, %eax je LBB18_278 ## %bb.277: callq _abort LBB18_278: movabsq $-6510615555426900571, %rdi ## imm = 0xA5A5A5A5A5A5A5A5 callq _my_ctzll movl %eax, %ecx xorl %eax, %eax cmpl %ecx, %eax je LBB18_280 ## %bb.279: callq _abort LBB18_280: movabsq $-6510615555426900571, %rdi ## imm = 0xA5A5A5A5A5A5A5A5 callq _my_clrsbll movl %eax, %ecx xorl %eax, %eax cmpl %ecx, %eax je LBB18_282 ## %bb.281: callq _abort LBB18_282: movabsq $-6510615555426900571, %rdi ## imm = 0xA5A5A5A5A5A5A5A5 callq _my_popcountll movl %eax, %ecx movl $32, %eax cmpl %ecx, %eax je LBB18_284 ## %bb.283: callq _abort LBB18_284: movabsq $-6510615555426900571, %rdi ## imm = 0xA5A5A5A5A5A5A5A5 callq _my_parityll movl %eax, %ecx xorl %eax, %eax cmpl %ecx, %eax je LBB18_286 ## %bb.285: callq _abort LBB18_286: movabsq $6510615555426900570, %rdi ## imm = 0x5A5A5A5A5A5A5A5A callq _my_ffsll movl %eax, %ecx movl $2, %eax cmpl %ecx, %eax je LBB18_288 ## %bb.287: callq _abort LBB18_288: movabsq $6510615555426900570, %rdi ## imm = 0x5A5A5A5A5A5A5A5A callq _my_clzll movl %eax, %ecx movl $1, %eax cmpl %ecx, %eax je LBB18_290 ## %bb.289: callq _abort LBB18_290: movabsq $6510615555426900570, %rdi ## imm = 0x5A5A5A5A5A5A5A5A callq _my_ctzll movl %eax, %ecx movl $1, %eax cmpl %ecx, %eax je LBB18_292 ## %bb.291: callq _abort LBB18_292: movabsq $6510615555426900570, %rdi ## imm = 0x5A5A5A5A5A5A5A5A callq _my_clrsbll movl %eax, %ecx xorl %eax, %eax cmpl %ecx, %eax je LBB18_294 ## %bb.293: callq _abort LBB18_294: movabsq $6510615555426900570, %rdi ## imm = 0x5A5A5A5A5A5A5A5A callq _my_popcountll movl %eax, %ecx movl $32, %eax cmpl %ecx, %eax je LBB18_296 ## %bb.295: callq _abort LBB18_296: movabsq $6510615555426900570, %rdi ## imm = 0x5A5A5A5A5A5A5A5A callq _my_parityll movl %eax, %ecx xorl %eax, %eax cmpl %ecx, %eax je LBB18_298 ## %bb.297: callq _abort LBB18_298: movabsq $-3819392241693097984, %rdi ## imm = 0xCAFECAFE00000000 callq _my_ffsll movl %eax, %ecx movl $34, %eax cmpl %ecx, %eax je LBB18_300 ## %bb.299: callq _abort LBB18_300: movabsq $-3819392241693097984, %rdi ## imm = 0xCAFECAFE00000000 callq _my_clzll movl %eax, %ecx xorl %eax, %eax cmpl %ecx, %eax je LBB18_302 ## %bb.301: callq _abort LBB18_302: movabsq $-3819392241693097984, %rdi ## imm = 0xCAFECAFE00000000 callq _my_ctzll movl %eax, %ecx movl $33, %eax cmpl %ecx, %eax je LBB18_304 ## %bb.303: callq _abort LBB18_304: movabsq $-3819392241693097984, %rdi ## imm = 0xCAFECAFE00000000 callq _my_clrsbll movl %eax, %ecx movl $1, %eax cmpl %ecx, %eax je LBB18_306 ## %bb.305: callq _abort LBB18_306: movabsq $-3819392241693097984, %rdi ## imm = 0xCAFECAFE00000000 callq _my_popcountll movl %eax, %ecx movl $22, %eax cmpl %ecx, %eax je LBB18_308 ## %bb.307: callq _abort LBB18_308: movabsq $-3819392241693097984, %rdi ## imm = 0xCAFECAFE00000000 callq _my_parityll movl %eax, %ecx xorl %eax, %eax cmpl %ecx, %eax je LBB18_310 ## %bb.309: callq _abort LBB18_310: movabsq $223195676147712, %rdi ## imm = 0xCAFECAFE0000 callq _my_ffsll movl %eax, %ecx movl $18, %eax cmpl %ecx, %eax je LBB18_312 ## %bb.311: callq _abort LBB18_312: movabsq $223195676147712, %rdi ## imm = 0xCAFECAFE0000 callq _my_clzll movl %eax, %ecx movl $16, %eax cmpl %ecx, %eax je LBB18_314 ## %bb.313: callq _abort LBB18_314: movabsq $223195676147712, %rdi ## imm = 0xCAFECAFE0000 callq _my_ctzll movl %eax, %ecx movl $17, %eax cmpl %ecx, %eax je LBB18_316 ## %bb.315: callq _abort LBB18_316: movabsq $223195676147712, %rdi ## imm = 0xCAFECAFE0000 callq _my_clrsbll movl %eax, %ecx movl $15, %eax cmpl %ecx, %eax je LBB18_318 ## %bb.317: callq _abort LBB18_318: movabsq $223195676147712, %rdi ## imm = 0xCAFECAFE0000 callq _my_popcountll movl %eax, %ecx movl $22, %eax cmpl %ecx, %eax je LBB18_320 ## %bb.319: callq _abort LBB18_320: movabsq $223195676147712, %rdi ## imm = 0xCAFECAFE0000 callq _my_parityll movl %eax, %ecx xorl %eax, %eax cmpl %ecx, %eax je LBB18_322 ## %bb.321: callq _abort LBB18_322: movl $3405695742, %edi ## imm = 0xCAFECAFE callq _my_ffsll movl %eax, %ecx movl $2, %eax cmpl %ecx, %eax je LBB18_324 ## %bb.323: callq _abort LBB18_324: movl $3405695742, %edi ## imm = 0xCAFECAFE callq _my_clzll movl %eax, %ecx movl $32, %eax cmpl %ecx, %eax je LBB18_326 ## %bb.325: callq _abort LBB18_326: movl $3405695742, %edi ## imm = 0xCAFECAFE callq _my_ctzll movl %eax, %ecx movl $1, %eax cmpl %ecx, %eax je LBB18_328 ## %bb.327: callq _abort LBB18_328: movl $3405695742, %edi ## imm = 0xCAFECAFE callq _my_clrsbll movl %eax, %ecx movl $31, %eax cmpl %ecx, %eax je LBB18_330 ## %bb.329: callq _abort LBB18_330: movl $3405695742, %edi ## imm = 0xCAFECAFE callq _my_popcountll movl %eax, %ecx movl $22, %eax cmpl %ecx, %eax je LBB18_332 ## %bb.331: callq _abort LBB18_332: movl $3405695742, %edi ## imm = 0xCAFECAFE callq _my_parityll movl %eax, %ecx xorl %eax, %eax cmpl %ecx, %eax je LBB18_334 ## %bb.333: callq _abort LBB18_334: movq $-1, %rdi callq _my_ffsll movl %eax, %ecx movl $1, %eax cmpl %ecx, %eax je LBB18_336 ## %bb.335: callq _abort LBB18_336: movq $-1, %rdi callq _my_clzll movl %eax, %ecx xorl %eax, %eax cmpl %ecx, %eax je LBB18_338 ## %bb.337: callq _abort LBB18_338: movq $-1, %rdi callq _my_ctzll movl %eax, %ecx xorl %eax, %eax cmpl %ecx, %eax je LBB18_340 ## %bb.339: callq _abort LBB18_340: movq $-1, %rdi callq _my_clrsbll movl %eax, %ecx movl $63, %eax cmpl %ecx, %eax je LBB18_342 ## %bb.341: callq _abort LBB18_342: movq $-1, %rdi callq _my_popcountll movl %eax, %ecx movl $64, %eax cmpl %ecx, %eax je LBB18_344 ## %bb.343: callq _abort LBB18_344: movq $-1, %rdi callq _my_parityll movl %eax, %ecx xorl %eax, %eax cmpl %ecx, %eax je LBB18_346 ## %bb.345: callq _abort LBB18_346: xorl %edi, %edi callq _exit .cfi_endproc ## -- End function .section __DATA,__data .globl _ints ## @ints .p2align 4 _ints: .long 0 ## 0x0 .long 1 ## 0x1 .long 2147483648 ## 0x80000000 .long 2 ## 0x2 .long 1073741824 ## 0x40000000 .long 65536 ## 0x10000 .long 32768 ## 0x8000 .long 2779096485 ## 0xa5a5a5a5 .long 1515870810 ## 0x5a5a5a5a .long 3405643776 ## 0xcafe0000 .long 13303296 ## 0xcafe00 .long 51966 ## 0xcafe .long 4294967295 ## 0xffffffff .globl _longs ## @longs .p2align 4 _longs: .quad 0 ## 0x0 .quad 1 ## 0x1 .quad -9223372036854775808 ## 0x8000000000000000 .quad 2 ## 0x2 .quad 4611686018427387904 ## 0x4000000000000000 .quad 4294967296 ## 0x100000000 .quad 2147483648 ## 0x80000000 .quad -6510615555426900571 ## 0xa5a5a5a5a5a5a5a5 .quad 6510615555426900570 ## 0x5a5a5a5a5a5a5a5a .quad -3819392241693097984 ## 0xcafecafe00000000 .quad 223195676147712 ## 0xcafecafe0000 .quad 3405695742 ## 0xcafecafe .quad -1 ## 0xffffffffffffffff .globl _longlongs ## @longlongs .p2align 4 _longlongs: .quad 0 ## 0x0 .quad 1 ## 0x1 .quad -9223372036854775808 ## 0x8000000000000000 .quad 2 ## 0x2 .quad 4611686018427387904 ## 0x4000000000000000 .quad 4294967296 ## 0x100000000 .quad 2147483648 ## 0x80000000 .quad -6510615555426900571 ## 0xa5a5a5a5a5a5a5a5 .quad 6510615555426900570 ## 0x5a5a5a5a5a5a5a5a .quad -3819392241693097984 ## 0xcafecafe00000000 .quad 223195676147712 ## 0xcafecafe0000 .quad 3405695742 ## 0xcafecafe .quad -1 ## 0xffffffffffffffff .subsections_via_symbols
the_stack_data/95449008.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/120000.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _isFull ; -- Begin function isFull .p2align 2 _isFull: ; @isFull .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, #16] str wzr, [sp, #12] b LBB0_1 LBB0_1: ; =>This Loop Header: Depth=1 ; Child Loop BB0_3 Depth 2 ldr w8, [sp, #12] subs w8, w8, #3 cset w8, hs tbnz w8, #0, LBB0_10 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, #3 cset w8, hs tbnz w8, #0, LBB0_8 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_3 Depth=2 ldr x8, [sp, #16] ldr w9, [sp, #12] ; kill: def $x9 killed $w9 mov x10, #12 mul x9, x9, x10 add x8, x8, x9 ldr w9, [sp, #8] ; kill: def $x9 killed $w9 ldr w8, [x8, x9, lsl #2] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: str wzr, [sp, #28] b LBB0_11 LBB0_6: ; in Loop: Header=BB0_3 Depth=2 b LBB0_7 LBB0_7: ; in Loop: Header=BB0_3 Depth=2 ldr w8, [sp, #8] add w8, w8, #1 str w8, [sp, #8] b LBB0_3 LBB0_8: ; in Loop: Header=BB0_1 Depth=1 b LBB0_9 LBB0_9: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB0_1 LBB0_10: mov w8, #1 str w8, [sp, #28] b LBB0_11 LBB0_11: ldr w0, [sp, #28] add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _isWin ; -- Begin function isWin .p2align 2 _isWin: ; @isWin .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, #16] str wzr, [sp, #12] b LBB1_1 LBB1_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #12] subs w8, w8, #3 cset w8, hs tbnz w8, #0, LBB1_12 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 ldr x8, [sp, #16] ldr w9, [sp, #12] ; kill: def $x9 killed $w9 ldr w8, [x8, x9, lsl #2] ldr x9, [sp, #16] add x9, x9, #12 ldr w10, [sp, #12] ; kill: def $x10 killed $w10 ldr w9, [x9, x10, lsl #2] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB1_6 b LBB1_3 LBB1_3: ; in Loop: Header=BB1_1 Depth=1 ldr x8, [sp, #16] add x8, x8, #24 ldr w9, [sp, #12] ; kill: def $x9 killed $w9 ldr w8, [x8, x9, lsl #2] ldr x9, [sp, #16] add x9, x9, #12 ldr w10, [sp, #12] ; kill: def $x10 killed $w10 ldr w9, [x9, x10, lsl #2] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB1_6 b LBB1_4 LBB1_4: ; in Loop: Header=BB1_1 Depth=1 ldr x8, [sp, #16] add x8, x8, #24 ldr w9, [sp, #12] ; kill: def $x9 killed $w9 ldr w8, [x8, x9, lsl #2] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB1_6 b LBB1_5 LBB1_5: ldr x8, [sp, #16] ldr w9, [sp, #12] ; kill: def $x9 killed $w9 ldr w8, [x8, x9, lsl #2] str w8, [sp, #28] b LBB1_18 LBB1_6: ; in Loop: Header=BB1_1 Depth=1 ldr x8, [sp, #16] ldr w9, [sp, #12] ; kill: def $x9 killed $w9 mov x11, #12 mul x9, x9, x11 ldr w8, [x8, x9] ldr x9, [sp, #16] ldr w10, [sp, #12] ; kill: def $x10 killed $w10 mul x10, x10, x11 add x9, x9, x10 ldr w9, [x9, #4] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB1_10 b LBB1_7 LBB1_7: ; in Loop: Header=BB1_1 Depth=1 ldr x8, [sp, #16] ldr w9, [sp, #12] ; kill: def $x9 killed $w9 mov x11, #12 mul x9, x9, x11 add x8, x8, x9 ldr w8, [x8, #8] ldr x9, [sp, #16] ldr w10, [sp, #12] ; kill: def $x10 killed $w10 mul x10, x10, x11 add x9, x9, x10 ldr w9, [x9, #4] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB1_10 b LBB1_8 LBB1_8: ; in Loop: Header=BB1_1 Depth=1 ldr x8, [sp, #16] ldr w9, [sp, #12] ; kill: def $x9 killed $w9 mov x10, #12 mul x9, x9, x10 add x8, x8, x9 ldr w8, [x8, #8] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB1_10 b LBB1_9 LBB1_9: ldr x8, [sp, #16] ldr w9, [sp, #12] ; kill: def $x9 killed $w9 mov x10, #12 mul x9, x9, x10 ldr w8, [x8, x9] str w8, [sp, #28] b LBB1_18 LBB1_10: ; in Loop: Header=BB1_1 Depth=1 b LBB1_11 LBB1_11: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB1_1 LBB1_12: ldr x8, [sp, #16] ldr w8, [x8] ldr x9, [sp, #16] ldr w9, [x9, #16] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB1_14 b LBB1_13 LBB1_13: ldr x8, [sp, #16] ldr w8, [x8, #32] ldr x9, [sp, #16] ldr w9, [x9, #16] subs w8, w8, w9 cset w8, eq tbnz w8, #0, LBB1_16 b LBB1_14 LBB1_14: ldr x8, [sp, #16] ldr w8, [x8, #24] ldr x9, [sp, #16] ldr w9, [x9, #16] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB1_17 b LBB1_15 LBB1_15: ldr x8, [sp, #16] ldr w8, [x8, #8] ldr x9, [sp, #16] ldr w9, [x9, #16] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB1_17 b LBB1_16 LBB1_16: ldr x8, [sp, #16] ldr w8, [x8, #16] str w8, [sp, #28] b LBB1_18 LBB1_17: str wzr, [sp, #28] b LBB1_18 LBB1_18: ldr w0, [sp, #28] add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _good ; -- Begin function good .p2align 2 _good: ; @good .cfi_startproc ; %bb.0: sub sp, sp, #112 .cfi_def_cfa_offset 112 stp x29, x30, [sp, #96] ; 16-byte Folded Spill add x29, sp, #96 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-16] stur w1, [x29, #-20] stur w2, [x29, #-24] ldur x0, [x29, #-16] bl _isWin subs w8, w0, #1 cset w8, ne tbnz w8, #0, LBB2_2 b LBB2_1 LBB2_1: ldur w8, [x29, #-20] lsl w9, w8, #1 mov w8, #1 lsl w8, w8, w9 stur w8, [x29, #-4] b LBB2_21 LBB2_2: stur wzr, [x29, #-28] ldur w9, [x29, #-24] mov w8, #2 subs w9, w9, #2 cset w9, eq and w9, w9, #0x1 ands w9, w9, #0x1 csinc w8, w8, wzr, eq stur w8, [x29, #-32] stur wzr, [x29, #-36] stur wzr, [x29, #-40] b LBB2_3 LBB2_3: ; =>This Loop Header: Depth=1 ; Child Loop BB2_5 Depth 2 ldur w8, [x29, #-40] subs w8, w8, #3 cset w8, hs tbnz w8, #0, LBB2_20 b LBB2_4 LBB2_4: ; in Loop: Header=BB2_3 Depth=1 stur wzr, [x29, #-44] b LBB2_5 LBB2_5: ; Parent Loop BB2_3 Depth=1 ; => This Inner Loop Header: Depth=2 ldur w8, [x29, #-44] subs w8, w8, #3 cset w8, hs tbnz w8, #0, LBB2_18 b LBB2_6 LBB2_6: ; in Loop: Header=BB2_5 Depth=2 ldur x8, [x29, #-16] ldur w9, [x29, #-40] ; kill: def $x9 killed $w9 mov x10, #12 mul x9, x9, x10 add x8, x8, x9 ldur w9, [x29, #-44] ; kill: def $x9 killed $w9 ldr w8, [x8, x9, lsl #2] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB2_16 b LBB2_7 LBB2_7: ; in Loop: Header=BB2_5 Depth=2 ldur x1, [x29, #-16] add x0, sp, #16 str x0, [sp, #8] ; 8-byte Folded Spill mov x2, #36 bl _memcpy ldr x0, [sp, #8] ; 8-byte Folded Reload ldur w8, [x29, #-32] ldur w9, [x29, #-40] ; kill: def $x9 killed $w9 mov x10, #12 mul x10, x9, x10 mov x9, x0 add x9, x9, x10 ldur w10, [x29, #-44] ; kill: def $x10 killed $w10 str w8, [x9, x10, lsl #2] bl _isWin subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB2_12 b LBB2_8 LBB2_8: add x0, sp, #16 bl _isWin subs w8, w0, #2 cset w8, ne tbnz w8, #0, LBB2_10 b LBB2_9 LBB2_9: mov w8, #0 str w8, [sp, #4] ; 4-byte Folded Spill b LBB2_11 LBB2_10: ldur w9, [x29, #-20] mov w8, #1 subs w9, w9, #1 lsl w9, w9, #1 lsl w8, w8, w9 str w8, [sp, #4] ; 4-byte Folded Spill b LBB2_11 LBB2_11: ldr w8, [sp, #4] ; 4-byte Folded Reload stur w8, [x29, #-4] b LBB2_21 LBB2_12: ; in Loop: Header=BB2_5 Depth=2 add x0, sp, #16 bl _isFull subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB2_14 b LBB2_13 LBB2_13: ; in Loop: Header=BB2_5 Depth=2 mov w0, #1 str w0, [sp] ; 4-byte Folded Spill b LBB2_15 LBB2_14: ; in Loop: Header=BB2_5 Depth=2 ldur w8, [x29, #-20] subs w1, w8, #1 ldur w2, [x29, #-32] add x0, sp, #16 bl _good str w0, [sp] ; 4-byte Folded Spill b LBB2_15 LBB2_15: ; in Loop: Header=BB2_5 Depth=2 ldr w9, [sp] ; 4-byte Folded Reload ldur w8, [x29, #-28] add w8, w8, w9 stur w8, [x29, #-28] b LBB2_16 LBB2_16: ; in Loop: Header=BB2_5 Depth=2 b LBB2_17 LBB2_17: ; in Loop: Header=BB2_5 Depth=2 ldur w8, [x29, #-44] add w8, w8, #1 stur w8, [x29, #-44] b LBB2_5 LBB2_18: ; in Loop: Header=BB2_3 Depth=1 b LBB2_19 LBB2_19: ; in Loop: Header=BB2_3 Depth=1 ldur w8, [x29, #-40] add w8, w8, #1 stur w8, [x29, #-40] b LBB2_3 LBB2_20: ldur w8, [x29, #-28] stur w8, [x29, #-4] b LBB2_21 LBB2_21: ldur w0, [x29, #-4] ldp x29, x30, [sp, #96] ; 16-byte Folded Reload add sp, sp, #112 ret .cfi_endproc ; -- End function .globl _dump ; -- Begin function dump .p2align 2 _dump: ; @dump .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf stur wzr, [x29, #-12] b LBB3_1 LBB3_1: ; =>This Loop Header: Depth=1 ; Child Loop BB3_3 Depth 2 ldur w8, [x29, #-12] subs w8, w8, #3 cset w8, hs tbnz w8, #0, LBB3_11 b LBB3_2 LBB3_2: ; in Loop: Header=BB3_1 Depth=1 str wzr, [sp, #16] b LBB3_3 LBB3_3: ; Parent Loop BB3_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #16] subs w8, w8, #3 cset w8, hs tbnz w8, #0, LBB3_9 b LBB3_4 LBB3_4: ; in Loop: Header=BB3_3 Depth=2 ldur x8, [x29, #-8] ldr w9, [sp, #16] ; kill: def $x9 killed $w9 mov x10, #12 mul x9, x9, x10 add x8, x8, x9 ldur w9, [x29, #-12] ; kill: def $x9 killed $w9 ldr w8, [x8, x9, lsl #2] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB3_6 b LBB3_5 LBB3_5: ; in Loop: Header=BB3_3 Depth=2 mov w8, #32 str w8, [sp, #12] ; 4-byte Folded Spill b LBB3_7 LBB3_6: ; in Loop: Header=BB3_3 Depth=2 ldur x8, [x29, #-8] ldr w9, [sp, #16] ; kill: def $x9 killed $w9 mov x10, #12 mul x9, x9, x10 add x8, x8, x9 ldur w9, [x29, #-12] ; kill: def $x9 killed $w9 ldr w8, [x8, x9, lsl #2] subs w8, w8, #1 cset w8, eq and w10, w8, #0x1 mov w9, #88 mov w8, #79 ands w10, w10, #0x1 csel w8, w8, w9, ne str w8, [sp, #12] ; 4-byte Folded Spill b LBB3_7 LBB3_7: ; in Loop: Header=BB3_3 Depth=2 ldr w10, [sp, #12] ; 4-byte Folded Reload mov x9, sp ; implicit-def: $x8 mov x8, x10 str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf b LBB3_8 LBB3_8: ; in Loop: Header=BB3_3 Depth=2 ldr w8, [sp, #16] add w8, w8, #1 str w8, [sp, #16] b LBB3_3 LBB3_9: ; in Loop: Header=BB3_1 Depth=1 adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf b LBB3_10 LBB3_10: ; in Loop: Header=BB3_1 Depth=1 ldur w8, [x29, #-12] add w8, w8, #1 stur w8, [x29, #-12] b LBB3_1 LBB3_11: adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _moveAI ; -- Begin function moveAI .p2align 2 _moveAI: ; @moveAI .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 str x8, [sp, #16] ; 8-byte Folded Spill stur x0, [x29, #-8] stur w1, [x29, #-12] stur wzr, [x29, #-16] mov w8, #-1 stur w8, [x29, #-20] stur wzr, [x29, #-24] b LBB4_1 LBB4_1: ; =>This Loop Header: Depth=1 ; Child Loop BB4_3 Depth 2 ldur w8, [x29, #-24] subs w8, w8, #3 cset w8, hs tbnz w8, #0, LBB4_12 b LBB4_2 LBB4_2: ; in Loop: Header=BB4_1 Depth=1 stur wzr, [x29, #-28] b LBB4_3 LBB4_3: ; Parent Loop BB4_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldur w8, [x29, #-28] subs w8, w8, #3 cset w8, hs tbnz w8, #0, LBB4_10 b LBB4_4 LBB4_4: ; in Loop: Header=BB4_3 Depth=2 ldur x8, [x29, #-8] ldur w9, [x29, #-24] ; kill: def $x9 killed $w9 mov x10, #12 mul x9, x9, x10 add x8, x8, x9 ldur w9, [x29, #-28] ; kill: def $x9 killed $w9 ldr w8, [x8, x9, lsl #2] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB4_8 b LBB4_5 LBB4_5: ; in Loop: Header=BB4_3 Depth=2 ldur x1, [x29, #-8] add x0, sp, #32 str x0, [sp, #8] ; 8-byte Folded Spill mov x2, #36 bl _memcpy ldr x0, [sp, #8] ; 8-byte Folded Reload ldur w8, [x29, #-24] ; kill: def $x8 killed $w8 mov x9, #12 mul x9, x8, x9 mov x8, x0 add x8, x8, x9 ldur w9, [x29, #-28] ; kill: def $x9 killed $w9 mov w2, #1 str w2, [x8, x9, lsl #2] ldur w8, [x29, #-12] subs w1, w8, #1 bl _good str w0, [sp, #28] ldr w8, [sp, #28] ldur w9, [x29, #-20] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB4_7 b LBB4_6 LBB4_6: ; in Loop: Header=BB4_3 Depth=2 ldr x0, [sp, #16] ; 8-byte Folded Reload add x1, sp, #32 mov x2, #36 bl _memcpy ldr w8, [sp, #28] stur w8, [x29, #-20] b LBB4_7 LBB4_7: ; in Loop: Header=BB4_3 Depth=2 ldur w8, [x29, #-16] add w8, w8, #1 stur w8, [x29, #-16] b LBB4_8 LBB4_8: ; in Loop: Header=BB4_3 Depth=2 b LBB4_9 LBB4_9: ; in Loop: Header=BB4_3 Depth=2 ldur w8, [x29, #-28] add w8, w8, #1 stur w8, [x29, #-28] b LBB4_3 LBB4_10: ; in Loop: Header=BB4_1 Depth=1 b LBB4_11 LBB4_11: ; in Loop: Header=BB4_1 Depth=1 ldur w8, [x29, #-24] add w8, w8, #1 stur w8, [x29, #-24] b LBB4_1 LBB4_12: ldur w8, [x29, #-16] ldur w9, [x29, #-12] subs w8, w8, w9 cset w8, eq tbnz w8, #0, LBB4_14 b LBB4_13 LBB4_13: adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf b LBB4_14 LBB4_14: ldp x29, x30, [sp, #96] ; 16-byte Folded Reload add sp, sp, #112 ret .cfi_endproc ; -- End function .globl _moveUser ; -- Begin function moveUser .p2align 2 _moveUser: ; @moveUser .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] bl _rand bl _srand b LBB5_1 LBB5_1: ; =>This Inner Loop Header: Depth=1 bl _rand mov w8, #43690 movk w8, #10922, lsl #16 str w8, [sp, #12] ; 4-byte Folded Spill sdiv w8, w0, w8 stur w8, [x29, #-12] bl _rand ldr w8, [sp, #12] ; 4-byte Folded Reload sdiv w8, w0, w8 str w8, [sp, #16] b LBB5_2 LBB5_2: ; in Loop: Header=BB5_1 Depth=1 ldur x8, [x29, #-8] ldur w9, [x29, #-12] ; kill: def $x9 killed $w9 mov x10, #12 mul x9, x9, x10 add x8, x8, x9 ldr w9, [sp, #16] ; kill: def $x9 killed $w9 ldr w8, [x8, x9, lsl #2] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB5_1 b LBB5_3 LBB5_3: ldur x8, [x29, #-8] ldur w9, [x29, #-12] ; kill: def $x9 killed $w9 mov x10, #12 mul x9, x9, x10 add x9, x8, x9 ldr w8, [sp, #16] mov x10, x8 mov w8, #2 str w8, [x9, x10, lsl #2] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #144 .cfi_def_cfa_offset 144 stp x29, x30, [sp, #128] ; 16-byte Folded Spill add x29, sp, #128 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] b LBB6_1 LBB6_1: ; =>This Loop Header: Depth=1 ; Child Loop BB6_2 Depth 2 ; Child Loop BB6_4 Depth 3 ; Child Loop BB6_10 Depth 2 stur wzr, [x29, #-48] b LBB6_2 LBB6_2: ; Parent Loop BB6_1 Depth=1 ; => This Loop Header: Depth=2 ; Child Loop BB6_4 Depth 3 ldur w8, [x29, #-48] subs w8, w8, #3 cset w8, hs tbnz w8, #0, LBB6_9 b LBB6_3 LBB6_3: ; in Loop: Header=BB6_2 Depth=2 stur wzr, [x29, #-52] b LBB6_4 LBB6_4: ; Parent Loop BB6_1 Depth=1 ; Parent Loop BB6_2 Depth=2 ; => This Inner Loop Header: Depth=3 ldur w8, [x29, #-52] subs w8, w8, #3 cset w8, hs tbnz w8, #0, LBB6_7 b LBB6_5 LBB6_5: ; in Loop: Header=BB6_4 Depth=3 ldur w8, [x29, #-48] ; kill: def $x8 killed $w8 mov x9, #12 mul x9, x8, x9 sub x8, x29, #44 add x9, x8, x9 ldur w8, [x29, #-52] mov x10, x8 mov w8, #0 str w8, [x9, x10, lsl #2] b LBB6_6 LBB6_6: ; in Loop: Header=BB6_4 Depth=3 ldur w8, [x29, #-52] add w8, w8, #1 stur w8, [x29, #-52] b LBB6_4 LBB6_7: ; in Loop: Header=BB6_2 Depth=2 b LBB6_8 LBB6_8: ; in Loop: Header=BB6_2 Depth=2 ldur w8, [x29, #-48] add w8, w8, #1 stur w8, [x29, #-48] b LBB6_2 LBB6_9: ; in Loop: Header=BB6_1 Depth=1 mov w8, #9 stur w8, [x29, #-56] b LBB6_10 LBB6_10: ; Parent Loop BB6_1 Depth=1 ; => This Inner Loop Header: Depth=2 sub x0, x29, #44 bl _isFull subs w8, w0, #0 cset w8, ne mov w9, #0 str w9, [sp, #32] ; 4-byte Folded Spill tbnz w8, #0, LBB6_12 b LBB6_11 LBB6_11: ; in Loop: Header=BB6_10 Depth=2 sub x0, x29, #44 bl _isWin subs w8, w0, #0 cset w8, eq str w8, [sp, #32] ; 4-byte Folded Spill b LBB6_12 LBB6_12: ; in Loop: Header=BB6_10 Depth=2 ldr w8, [sp, #32] ; 4-byte Folded Reload tbz w8, #0, LBB6_17 b LBB6_13 LBB6_13: ; in Loop: Header=BB6_10 Depth=2 sub x0, x29, #44 str x0, [sp, #24] ; 8-byte Folded Spill bl _moveUser ldr x0, [sp, #24] ; 8-byte Folded Reload bl _dump ldr x0, [sp, #24] ; 8-byte Folded Reload ldur w8, [x29, #-56] subs w8, w8, #1 stur w8, [x29, #-56] bl _isFull subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB6_15 b LBB6_14 LBB6_14: ; in Loop: Header=BB6_10 Depth=2 sub x0, x29, #44 bl _isWin subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB6_16 b LBB6_15 LBB6_15: ; in Loop: Header=BB6_1 Depth=1 b LBB6_17 LBB6_16: ; in Loop: Header=BB6_10 Depth=2 adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf ldur w1, [x29, #-56] add x8, sp, #36 str x8, [sp, #8] ; 8-byte Folded Spill sub x0, x29, #44 str x0, [sp, #16] ; 8-byte Folded Spill bl _moveAI ldr x1, [sp, #8] ; 8-byte Folded Reload ldr x0, [sp, #16] ; 8-byte Folded Reload mov x2, #36 bl _memcpy ldr x0, [sp, #16] ; 8-byte Folded Reload bl _dump ldur w8, [x29, #-56] subs w8, w8, #1 stur w8, [x29, #-56] b LBB6_10 LBB6_17: ; in Loop: Header=BB6_1 Depth=1 sub x0, x29, #44 bl _isWin stur w0, [x29, #-8] ldur w8, [x29, #-8] str w8, [sp, #4] ; 4-byte Folded Spill subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB6_22 b LBB6_18 LBB6_18: ; in Loop: Header=BB6_1 Depth=1 ldr w8, [sp, #4] ; 4-byte Folded Reload subs w8, w8, #1 cset w8, eq tbnz w8, #0, LBB6_21 b LBB6_19 LBB6_19: ; in Loop: Header=BB6_1 Depth=1 ldr w8, [sp, #4] ; 4-byte Folded Reload subs w8, w8, #2 cset w8, ne tbnz w8, #0, LBB6_23 b LBB6_20 LBB6_20: ; in Loop: Header=BB6_1 Depth=1 adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf b LBB6_23 LBB6_21: ; in Loop: Header=BB6_1 Depth=1 adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _printf b LBB6_23 LBB6_22: ; in Loop: Header=BB6_1 Depth=1 adrp x0, l_.str.7@PAGE add x0, x0, l_.str.7@PAGEOFF bl _printf b LBB6_23 LBB6_23: ; in Loop: Header=BB6_1 Depth=1 b LBB6_24 LBB6_24: ; in Loop: Header=BB6_1 Depth=1 ldur w8, [x29, #-8] subs w8, w8, #2 cset w8, ne tbnz w8, #0, LBB6_1 b LBB6_25 LBB6_25: mov w0, #0 ldp x29, x30, [sp, #128] ; 16-byte Folded Reload add sp, sp, #144 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "--\n" l_.str.1: ; @.str.1 .asciz "%c" l_.str.2: ; @.str.2 .asciz "\n" l_.str.3: ; @.str.3 .asciz "internal error\n" l_.str.4: ; @.str.4 .asciz "thinking\n" l_.str.5: ; @.str.5 .asciz "Cross Wins\n" l_.str.6: ; @.str.6 .asciz "Zeroes Wins\n" l_.str.7: ; @.str.7 .asciz "Draw\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _isFull ## -- Begin function isFull .p2align 4, 0x90 _isFull: ## @isFull .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 $0, -20(%rbp) LBB0_1: ## =>This Loop Header: Depth=1 ## Child Loop BB0_3 Depth 2 cmpl $3, -20(%rbp) jae LBB0_10 ## %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 cmpl $3, -24(%rbp) jae LBB0_8 ## %bb.4: ## in Loop: Header=BB0_3 Depth=2 movq -16(%rbp), %rax movl -20(%rbp), %ecx ## kill: def $rcx killed $ecx imulq $12, %rcx, %rcx addq %rcx, %rax movl -24(%rbp), %ecx ## kill: def $rcx killed $ecx cmpl $0, (%rax,%rcx,4) jne LBB0_6 ## %bb.5: movl $0, -4(%rbp) jmp LBB0_11 LBB0_6: ## in Loop: Header=BB0_3 Depth=2 jmp LBB0_7 LBB0_7: ## in Loop: Header=BB0_3 Depth=2 movl -24(%rbp), %eax addl $1, %eax movl %eax, -24(%rbp) jmp LBB0_3 LBB0_8: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_9 LBB0_9: ## in Loop: Header=BB0_1 Depth=1 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB0_1 LBB0_10: movl $1, -4(%rbp) LBB0_11: movl -4(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .globl _isWin ## -- Begin function isWin .p2align 4, 0x90 _isWin: ## @isWin .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 $0, -20(%rbp) LBB1_1: ## =>This Inner Loop Header: Depth=1 cmpl $3, -20(%rbp) jae LBB1_12 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 movq -16(%rbp), %rax movl -20(%rbp), %ecx ## kill: def $rcx killed $ecx movl (%rax,%rcx,4), %eax movq -16(%rbp), %rcx movl -20(%rbp), %edx ## kill: def $rdx killed $edx cmpl 12(%rcx,%rdx,4), %eax jne LBB1_6 ## %bb.3: ## in Loop: Header=BB1_1 Depth=1 movq -16(%rbp), %rax movl -20(%rbp), %ecx ## kill: def $rcx killed $ecx movl 24(%rax,%rcx,4), %eax movq -16(%rbp), %rcx movl -20(%rbp), %edx ## kill: def $rdx killed $edx cmpl 12(%rcx,%rdx,4), %eax jne LBB1_6 ## %bb.4: ## in Loop: Header=BB1_1 Depth=1 movq -16(%rbp), %rax movl -20(%rbp), %ecx ## kill: def $rcx killed $ecx cmpl $0, 24(%rax,%rcx,4) je LBB1_6 ## %bb.5: movq -16(%rbp), %rax movl -20(%rbp), %ecx ## kill: def $rcx killed $ecx movl (%rax,%rcx,4), %eax movl %eax, -4(%rbp) jmp LBB1_18 LBB1_6: ## in Loop: Header=BB1_1 Depth=1 movq -16(%rbp), %rax movl -20(%rbp), %ecx ## kill: def $rcx killed $ecx imulq $12, %rcx, %rcx addq %rcx, %rax movl (%rax), %eax movq -16(%rbp), %rcx movl -20(%rbp), %edx ## kill: def $rdx killed $edx imulq $12, %rdx, %rdx addq %rdx, %rcx cmpl 4(%rcx), %eax jne LBB1_10 ## %bb.7: ## in Loop: Header=BB1_1 Depth=1 movq -16(%rbp), %rax movl -20(%rbp), %ecx ## kill: def $rcx killed $ecx imulq $12, %rcx, %rcx addq %rcx, %rax movl 8(%rax), %eax movq -16(%rbp), %rcx movl -20(%rbp), %edx ## kill: def $rdx killed $edx imulq $12, %rdx, %rdx addq %rdx, %rcx cmpl 4(%rcx), %eax jne LBB1_10 ## %bb.8: ## in Loop: Header=BB1_1 Depth=1 movq -16(%rbp), %rax movl -20(%rbp), %ecx ## kill: def $rcx killed $ecx imulq $12, %rcx, %rcx addq %rcx, %rax cmpl $0, 8(%rax) je LBB1_10 ## %bb.9: movq -16(%rbp), %rax movl -20(%rbp), %ecx ## kill: def $rcx killed $ecx imulq $12, %rcx, %rcx addq %rcx, %rax movl (%rax), %eax movl %eax, -4(%rbp) jmp LBB1_18 LBB1_10: ## in Loop: Header=BB1_1 Depth=1 jmp LBB1_11 LBB1_11: ## in Loop: Header=BB1_1 Depth=1 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB1_1 LBB1_12: movq -16(%rbp), %rax movl (%rax), %eax movq -16(%rbp), %rcx cmpl 16(%rcx), %eax jne LBB1_14 ## %bb.13: movq -16(%rbp), %rax movl 32(%rax), %eax movq -16(%rbp), %rcx cmpl 16(%rcx), %eax je LBB1_16 LBB1_14: movq -16(%rbp), %rax movl 24(%rax), %eax movq -16(%rbp), %rcx cmpl 16(%rcx), %eax jne LBB1_17 ## %bb.15: movq -16(%rbp), %rax movl 8(%rax), %eax movq -16(%rbp), %rcx cmpl 16(%rcx), %eax jne LBB1_17 LBB1_16: movq -16(%rbp), %rax movl 16(%rax), %eax movl %eax, -4(%rbp) jmp LBB1_18 LBB1_17: movl $0, -4(%rbp) LBB1_18: movl -4(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .globl _good ## -- Begin function good .p2align 4, 0x90 _good: ## @good .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $96, %rsp movq %rdi, -16(%rbp) movl %esi, -20(%rbp) movl %edx, -24(%rbp) movq -16(%rbp), %rdi callq _isWin cmpl $1, %eax jne LBB2_2 ## %bb.1: movl -20(%rbp), %ecx shll $1, %ecx movl $1, %eax ## kill: def $cl killed $ecx shll %cl, %eax movl %eax, -4(%rbp) jmp LBB2_21 LBB2_2: movl $0, -28(%rbp) movl -24(%rbp), %edx movl $2, %eax movl $1, %ecx cmpl $2, %edx cmovel %ecx, %eax movl %eax, -32(%rbp) movl $0, -36(%rbp) movl $0, -40(%rbp) LBB2_3: ## =>This Loop Header: Depth=1 ## Child Loop BB2_5 Depth 2 cmpl $3, -40(%rbp) jae LBB2_20 ## %bb.4: ## in Loop: Header=BB2_3 Depth=1 movl $0, -44(%rbp) LBB2_5: ## Parent Loop BB2_3 Depth=1 ## => This Inner Loop Header: Depth=2 cmpl $3, -44(%rbp) jae LBB2_18 ## %bb.6: ## in Loop: Header=BB2_5 Depth=2 movq -16(%rbp), %rax movl -40(%rbp), %ecx ## kill: def $rcx killed $ecx imulq $12, %rcx, %rcx addq %rcx, %rax movl -44(%rbp), %ecx ## kill: def $rcx killed $ecx cmpl $0, (%rax,%rcx,4) jne LBB2_16 ## %bb.7: ## in Loop: Header=BB2_5 Depth=2 movq -16(%rbp), %rsi leaq -80(%rbp), %rdi movl $36, %edx callq _memcpy movl -32(%rbp), %edx leaq -80(%rbp), %rax movl -40(%rbp), %ecx ## kill: def $rcx killed $ecx imulq $12, %rcx, %rcx addq %rcx, %rax movl -44(%rbp), %ecx ## kill: def $rcx killed $ecx movl %edx, (%rax,%rcx,4) leaq -80(%rbp), %rdi callq _isWin cmpl $0, %eax je LBB2_12 ## %bb.8: leaq -80(%rbp), %rdi callq _isWin cmpl $2, %eax jne LBB2_10 ## %bb.9: xorl %eax, %eax movl %eax, -84(%rbp) ## 4-byte Spill jmp LBB2_11 LBB2_10: movl -20(%rbp), %ecx subl $1, %ecx shll $1, %ecx movl $1, %eax ## kill: def $cl killed $ecx shll %cl, %eax movl %eax, -84(%rbp) ## 4-byte Spill LBB2_11: movl -84(%rbp), %eax ## 4-byte Reload movl %eax, -4(%rbp) jmp LBB2_21 LBB2_12: ## in Loop: Header=BB2_5 Depth=2 leaq -80(%rbp), %rdi callq _isFull cmpl $0, %eax je LBB2_14 ## %bb.13: ## in Loop: Header=BB2_5 Depth=2 movl $1, %eax movl %eax, -88(%rbp) ## 4-byte Spill jmp LBB2_15 LBB2_14: ## in Loop: Header=BB2_5 Depth=2 movl -20(%rbp), %esi subl $1, %esi movl -32(%rbp), %edx leaq -80(%rbp), %rdi callq _good movl %eax, -88(%rbp) ## 4-byte Spill LBB2_15: ## in Loop: Header=BB2_5 Depth=2 movl -88(%rbp), %eax ## 4-byte Reload addl -28(%rbp), %eax movl %eax, -28(%rbp) LBB2_16: ## in Loop: Header=BB2_5 Depth=2 jmp LBB2_17 LBB2_17: ## in Loop: Header=BB2_5 Depth=2 movl -44(%rbp), %eax addl $1, %eax movl %eax, -44(%rbp) jmp LBB2_5 LBB2_18: ## in Loop: Header=BB2_3 Depth=1 jmp LBB2_19 LBB2_19: ## in Loop: Header=BB2_3 Depth=1 movl -40(%rbp), %eax addl $1, %eax movl %eax, -40(%rbp) jmp LBB2_3 LBB2_20: movl -28(%rbp), %eax movl %eax, -4(%rbp) LBB2_21: movl -4(%rbp), %eax addq $96, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _dump ## -- Begin function dump .p2align 4, 0x90 _dump: ## @dump .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) leaq L_.str(%rip), %rdi movb $0, %al callq _printf movl $0, -12(%rbp) LBB3_1: ## =>This Loop Header: Depth=1 ## Child Loop BB3_3 Depth 2 cmpl $3, -12(%rbp) jae LBB3_11 ## %bb.2: ## in Loop: Header=BB3_1 Depth=1 movl $0, -16(%rbp) LBB3_3: ## Parent Loop BB3_1 Depth=1 ## => This Inner Loop Header: Depth=2 cmpl $3, -16(%rbp) jae LBB3_9 ## %bb.4: ## in Loop: Header=BB3_3 Depth=2 movq -8(%rbp), %rax movl -16(%rbp), %ecx ## kill: def $rcx killed $ecx imulq $12, %rcx, %rcx addq %rcx, %rax movl -12(%rbp), %ecx ## kill: def $rcx killed $ecx cmpl $0, (%rax,%rcx,4) jne LBB3_6 ## %bb.5: ## in Loop: Header=BB3_3 Depth=2 movl $32, %eax movl %eax, -20(%rbp) ## 4-byte Spill jmp LBB3_7 LBB3_6: ## in Loop: Header=BB3_3 Depth=2 movq -8(%rbp), %rax movl -16(%rbp), %ecx ## kill: def $rcx killed $ecx imulq $12, %rcx, %rcx addq %rcx, %rax movl -12(%rbp), %ecx ## kill: def $rcx killed $ecx movl (%rax,%rcx,4), %edx movl $88, %eax movl $79, %ecx cmpl $1, %edx cmovel %ecx, %eax movl %eax, -20(%rbp) ## 4-byte Spill LBB3_7: ## in Loop: Header=BB3_3 Depth=2 movl -20(%rbp), %esi ## 4-byte Reload leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf ## %bb.8: ## in Loop: Header=BB3_3 Depth=2 movl -16(%rbp), %eax addl $1, %eax movl %eax, -16(%rbp) jmp LBB3_3 LBB3_9: ## in Loop: Header=BB3_1 Depth=1 leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf ## %bb.10: ## in Loop: Header=BB3_1 Depth=1 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB3_1 LBB3_11: leaq L_.str(%rip), %rdi movb $0, %al callq _printf addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _moveAI ## -- Begin function moveAI .p2align 4, 0x90 _moveAI: ## @moveAI .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $96, %rsp movq %rdi, -88(%rbp) ## 8-byte Spill movq %rdi, -80(%rbp) ## 8-byte Spill movq %rsi, -8(%rbp) movl %edx, -12(%rbp) movl $0, -16(%rbp) movl $-1, -20(%rbp) movl $0, -24(%rbp) LBB4_1: ## =>This Loop Header: Depth=1 ## Child Loop BB4_3 Depth 2 cmpl $3, -24(%rbp) jae LBB4_12 ## %bb.2: ## in Loop: Header=BB4_1 Depth=1 movl $0, -28(%rbp) LBB4_3: ## Parent Loop BB4_1 Depth=1 ## => This Inner Loop Header: Depth=2 cmpl $3, -28(%rbp) jae LBB4_10 ## %bb.4: ## in Loop: Header=BB4_3 Depth=2 movq -8(%rbp), %rax movl -24(%rbp), %ecx ## kill: def $rcx killed $ecx imulq $12, %rcx, %rcx addq %rcx, %rax movl -28(%rbp), %ecx ## kill: def $rcx killed $ecx cmpl $0, (%rax,%rcx,4) jne LBB4_8 ## %bb.5: ## in Loop: Header=BB4_3 Depth=2 movq -8(%rbp), %rsi leaq -64(%rbp), %rdi movl $36, %edx callq _memcpy leaq -64(%rbp), %rax movl -24(%rbp), %ecx ## kill: def $rcx killed $ecx imulq $12, %rcx, %rcx addq %rcx, %rax movl -28(%rbp), %ecx ## kill: def $rcx killed $ecx movl $1, (%rax,%rcx,4) movl -12(%rbp), %esi subl $1, %esi leaq -64(%rbp), %rdi movl $1, %edx callq _good movl %eax, -68(%rbp) movl -68(%rbp), %eax cmpl -20(%rbp), %eax jle LBB4_7 ## %bb.6: ## in Loop: Header=BB4_3 Depth=2 movq -88(%rbp), %rdi ## 8-byte Reload leaq -64(%rbp), %rsi movl $36, %edx callq _memcpy movl -68(%rbp), %eax movl %eax, -20(%rbp) LBB4_7: ## in Loop: Header=BB4_3 Depth=2 movl -16(%rbp), %eax addl $1, %eax movl %eax, -16(%rbp) LBB4_8: ## in Loop: Header=BB4_3 Depth=2 jmp LBB4_9 LBB4_9: ## in Loop: Header=BB4_3 Depth=2 movl -28(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) jmp LBB4_3 LBB4_10: ## in Loop: Header=BB4_1 Depth=1 jmp LBB4_11 LBB4_11: ## in Loop: Header=BB4_1 Depth=1 movl -24(%rbp), %eax addl $1, %eax movl %eax, -24(%rbp) jmp LBB4_1 LBB4_12: movl -16(%rbp), %eax cmpl -12(%rbp), %eax je LBB4_14 ## %bb.13: leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf LBB4_14: movq -80(%rbp), %rax ## 8-byte Reload addq $96, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _moveUser ## -- Begin function moveUser .p2align 4, 0x90 _moveUser: ## @moveUser .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) callq _rand movl %eax, %edi callq _srand LBB5_1: ## =>This Inner Loop Header: Depth=1 callq _rand movl $715827882, %ecx ## imm = 0x2AAAAAAA cltd idivl %ecx movl %eax, -12(%rbp) callq _rand movl $715827882, %ecx ## imm = 0x2AAAAAAA cltd idivl %ecx movl %eax, -16(%rbp) ## %bb.2: ## in Loop: Header=BB5_1 Depth=1 movq -8(%rbp), %rax movl -12(%rbp), %ecx ## kill: def $rcx killed $ecx imulq $12, %rcx, %rcx addq %rcx, %rax movl -16(%rbp), %ecx ## kill: def $rcx killed $ecx cmpl $0, (%rax,%rcx,4) jne LBB5_1 ## %bb.3: movq -8(%rbp), %rax movl -12(%rbp), %ecx ## kill: def $rcx killed $ecx imulq $12, %rcx, %rcx addq %rcx, %rax movl -16(%rbp), %ecx ## kill: def $rcx killed $ecx movl $2, (%rax,%rcx,4) addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $112, %rsp movl $0, -4(%rbp) LBB6_1: ## =>This Loop Header: Depth=1 ## Child Loop BB6_2 Depth 2 ## Child Loop BB6_4 Depth 3 ## Child Loop BB6_10 Depth 2 movl $0, -52(%rbp) LBB6_2: ## Parent Loop BB6_1 Depth=1 ## => This Loop Header: Depth=2 ## Child Loop BB6_4 Depth 3 cmpl $3, -52(%rbp) jae LBB6_9 ## %bb.3: ## in Loop: Header=BB6_2 Depth=2 movl $0, -56(%rbp) LBB6_4: ## Parent Loop BB6_1 Depth=1 ## Parent Loop BB6_2 Depth=2 ## => This Inner Loop Header: Depth=3 cmpl $3, -56(%rbp) jae LBB6_7 ## %bb.5: ## in Loop: Header=BB6_4 Depth=3 leaq -48(%rbp), %rax movl -52(%rbp), %ecx ## kill: def $rcx killed $ecx imulq $12, %rcx, %rcx addq %rcx, %rax movl -56(%rbp), %ecx ## kill: def $rcx killed $ecx movl $0, (%rax,%rcx,4) ## %bb.6: ## in Loop: Header=BB6_4 Depth=3 movl -56(%rbp), %eax addl $1, %eax movl %eax, -56(%rbp) jmp LBB6_4 LBB6_7: ## in Loop: Header=BB6_2 Depth=2 jmp LBB6_8 LBB6_8: ## in Loop: Header=BB6_2 Depth=2 movl -52(%rbp), %eax addl $1, %eax movl %eax, -52(%rbp) jmp LBB6_2 LBB6_9: ## in Loop: Header=BB6_1 Depth=1 movl $9, -60(%rbp) LBB6_10: ## Parent Loop BB6_1 Depth=1 ## => This Inner Loop Header: Depth=2 leaq -48(%rbp), %rdi callq _isFull movl %eax, %ecx xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $0, %ecx movb %al, -97(%rbp) ## 1-byte Spill jne LBB6_12 ## %bb.11: ## in Loop: Header=BB6_10 Depth=2 leaq -48(%rbp), %rdi callq _isWin cmpl $0, %eax sete %al movb %al, -97(%rbp) ## 1-byte Spill LBB6_12: ## in Loop: Header=BB6_10 Depth=2 movb -97(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB6_13 jmp LBB6_17 LBB6_13: ## in Loop: Header=BB6_10 Depth=2 leaq -48(%rbp), %rdi callq _moveUser leaq -48(%rbp), %rdi callq _dump movl -60(%rbp), %eax addl $-1, %eax movl %eax, -60(%rbp) leaq -48(%rbp), %rdi callq _isFull cmpl $0, %eax jne LBB6_15 ## %bb.14: ## in Loop: Header=BB6_10 Depth=2 leaq -48(%rbp), %rdi callq _isWin cmpl $0, %eax je LBB6_16 LBB6_15: ## in Loop: Header=BB6_1 Depth=1 jmp LBB6_17 LBB6_16: ## in Loop: Header=BB6_10 Depth=2 leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf movl -60(%rbp), %edx leaq -96(%rbp), %rdi leaq -48(%rbp), %rsi callq _moveAI leaq -48(%rbp), %rdi leaq -96(%rbp), %rsi movl $36, %edx callq _memcpy leaq -48(%rbp), %rdi callq _dump movl -60(%rbp), %eax addl $-1, %eax movl %eax, -60(%rbp) jmp LBB6_10 LBB6_17: ## in Loop: Header=BB6_1 Depth=1 leaq -48(%rbp), %rdi callq _isWin movl %eax, -8(%rbp) movl -8(%rbp), %eax movl %eax, -104(%rbp) ## 4-byte Spill testl %eax, %eax je LBB6_20 jmp LBB6_24 LBB6_24: ## in Loop: Header=BB6_1 Depth=1 movl -104(%rbp), %eax ## 4-byte Reload subl $1, %eax je LBB6_19 jmp LBB6_25 LBB6_25: ## in Loop: Header=BB6_1 Depth=1 movl -104(%rbp), %eax ## 4-byte Reload subl $2, %eax jne LBB6_21 jmp LBB6_18 LBB6_18: ## in Loop: Header=BB6_1 Depth=1 leaq L_.str.5(%rip), %rdi movb $0, %al callq _printf jmp LBB6_21 LBB6_19: ## in Loop: Header=BB6_1 Depth=1 leaq L_.str.6(%rip), %rdi movb $0, %al callq _printf jmp LBB6_21 LBB6_20: ## in Loop: Header=BB6_1 Depth=1 leaq L_.str.7(%rip), %rdi movb $0, %al callq _printf LBB6_21: ## in Loop: Header=BB6_1 Depth=1 jmp LBB6_22 LBB6_22: ## in Loop: Header=BB6_1 Depth=1 cmpl $2, -8(%rbp) jne LBB6_1 ## %bb.23: xorl %eax, %eax addq $112, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "--\n" L_.str.1: ## @.str.1 .asciz "%c" L_.str.2: ## @.str.2 .asciz "\n" L_.str.3: ## @.str.3 .asciz "internal error\n" L_.str.4: ## @.str.4 .asciz "thinking\n" L_.str.5: ## @.str.5 .asciz "Cross Wins\n" L_.str.6: ## @.str.6 .asciz "Zeroes Wins\n" L_.str.7: ## @.str.7 .asciz "Draw\n" .subsections_via_symbols
the_stack_data/107746.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/165765998.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] ldr x8, [sp, #16] ldr x0, [x8, #8] bl _atoi strh w0, [sp, #14] ldrsh w10, [sp, #14] mov x9, sp ; implicit-def: $x8 mov x8, x10 str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldrsh w8, [sp, #14] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf b LBB0_3 LBB0_2: adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf b LBB0_3 LBB0_3: ldur w0, [x29, #-4] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d\n" l_.str.1: ; @.str.1 .asciz "You are admin!\n" l_.str.2: ; @.str.2 .asciz "You are a user!\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl $0, -4(%rbp) movl %edi, -8(%rbp) movq %rsi, -16(%rbp) movq -16(%rbp), %rax movq 8(%rax), %rdi callq _atoi ## kill: def $ax killed $ax killed $eax movw %ax, -18(%rbp) movswl -18(%rbp), %esi leaq L_.str(%rip), %rdi movb $0, %al callq _printf movswl -18(%rbp), %eax cmpl $0, %eax jne LBB0_2 ## %bb.1: leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf jmp LBB0_3 LBB0_2: leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf LBB0_3: movl -4(%rbp), %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d\n" L_.str.1: ## @.str.1 .asciz "You are admin!\n" L_.str.2: ## @.str.2 .asciz "You are a user!\n" .subsections_via_symbols
the_stack_data/82951147.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 w0, [sp, #12] str x1, [sp] mov w0, #0 add sp, sp, #16 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, -4(%rbp) movq %rsi, -16(%rbp) xorl %eax, %eax popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/153267431.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 s0, [sp, #12] ldr s0, [sp, #12] fmov s1, #1.00000000 fadd s0, s0, s1 add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _g ; -- Begin function g .p2align 2 _g: ; @g .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str s0, [sp, #12] ldr s1, [sp, #12] fmov s2, #3.00000000 fmov s0, #2.00000000 fmadd s0, s0, s1, s2 add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _h ; -- Begin function h .p2align 2 _h: ; @h .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str s0, [sp, #12] ldr s0, [sp, #12] ldr s1, [sp, #12] fmov s2, #1.00000000 fmadd s0, s0, s1, s2 add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _i ; -- Begin function i .p2align 2 _i: ; @i .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str s0, [sp, #12] ldr s1, [sp, #12] fmov s0, #5.00000000 fmul s0, s0, s1 ldr s1, [sp, #12] ldr s3, [sp, #12] fmov s2, #3.00000000 fmul s2, s2, s3 fmadd s0, s0, s1, s2 fmov s1, #1.00000000 fadd s0, s0, s1 add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _j ; -- Begin function j .p2align 2 _j: ; @j .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] ldur s0, [x29, #-4] fcvt d0, s0 fmov d1, #3.00000000 str d1, [sp] ; 8-byte Folded Spill bl _pow fmov d1, d0 ldr d0, [sp] ; 8-byte Folded Reload ldur s3, [x29, #-4] fmov s2, #5.00000000 fmul s2, s2, s3 ldur s3, [x29, #-4] fmul s2, s2, s3 fcvt d2, s2 fmadd d0, d0, d1, d2 ldur s2, [x29, #-4] fmov s1, #3.00000000 fmul s1, s1, s2 fcvt d1, s1 fadd d0, d0, d1 fmov d1, #4.00000000 fadd d0, d0, d1 fcvt s0, d0 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _k ; -- Begin function k .p2align 2 _k: ; @k .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur s0, [x29, #-4] ldur s0, [x29, #-4] fcvt d0, s0 fmov d1, #10.00000000 bl _pow str d0, [sp, #16] ; 8-byte Folded Spill ldur s0, [x29, #-4] fcvt d0, s0 fmov d1, #3.00000000 str d1, [sp, #8] ; 8-byte Folded Spill bl _pow ldr d1, [sp, #8] ; 8-byte Folded Reload fmov d2, d0 ldr d0, [sp, #16] ; 8-byte Folded Reload fsub d0, d0, d2 fadd d0, d0, d1 fcvt s0, d0 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _l ; -- Begin function l .p2align 2 _l: ; @l .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] ldur s0, [x29, #-4] fcvt d0, s0 fmov d1, #10.00000000 bl _pow fmov d1, d0 ldur s2, [x29, #-4] fmov s0, #4.00000000 fmul s0, s0, s2 ldur s2, [x29, #-4] fmul s0, s0, s2 fcvt d2, s0 fmov d0, #3.00000000 fmadd d0, d0, d1, d2 fmov d1, #5.00000000 fadd d0, d0, d1 fcvt s0, d0 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ; -- Begin function m lCPI7_0: .quad 0x4059000000000000 ; double 100 .section __TEXT,__text,regular,pure_instructions .globl _m .p2align 2 _m: ; @m .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur s0, [x29, #-4] ldur s0, [x29, #-4] fcvt d0, s0 adrp x8, lCPI7_0@PAGE ldr d1, [x8, lCPI7_0@PAGEOFF] bl _pow fmov d1, d0 ldur s2, [x29, #-4] fmov s0, #3.00000000 fmul s0, s0, s2 fcvt d2, s0 fmov d0, #10.00000000 fmadd d0, d0, d1, d2 fmov d1, #1.00000000 fadd d0, d0, d1 fcvt s0, d0 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _a ; -- Begin function a .p2align 2 _a: ; @a .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str s0, [sp, #12] ldr s0, [sp, #12] fmov s1, #3.00000000 fadd s0, s0, s1 fcvtzs w0, s0 add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _b ; -- Begin function b .p2align 2 _b: ; @b .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str s0, [sp, #12] ldr s0, [sp, #12] ldr s1, [sp, #12] fmov s2, #-2.00000000 fmadd s0, s0, s1, s2 fcvtzs w0, s0 add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _n ; -- Begin function n .p2align 2 _n: ; @n .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 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] ldur s0, [x29, #-4] bl _a str w0, [sp, #8] ; 4-byte Folded Spill ldur s0, [x29, #-4] bl _b mov x8, x0 ldr w0, [sp, #8] ; 4-byte Folded Reload add w8, w0, w8 scvtf s0, w8 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _c ; -- Begin function c .p2align 2 _c: ; @c .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str s0, [sp, #12] ldr s0, [sp, #12] fmov s1, #1.00000000 fadd s0, s0, s1 add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _d ; -- Begin function d .p2align 2 _d: ; @d .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str s0, [sp, #12] ldr s0, [sp, #12] ldr s1, [sp, #12] fmul s0, s0, s1 ldr s1, [sp, #12] fmul s0, s0, s1 add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _o ; -- Begin function o .p2align 2 _o: ; @o .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] ldur s0, [x29, #-4] bl _d bl _c ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _p1 ; -- Begin function p1 .p2align 2 _p1: ; @p1 .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str s0, [sp, #12] ldr s1, [sp, #12] fmov s0, #3.00000000 fmul s0, s0, s1 ldr s1, [sp, #12] fmul s0, s0, s1 ldr s1, [sp, #12] fmov s2, #2.00000000 fmadd s0, s0, s1, s2 add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _p2 ; -- Begin function p2 .p2align 2 _p2: ; @p2 .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str s0, [sp, #12] ldr s1, [sp, #12] fmov s0, #20.00000000 fmul s0, s0, s1 ldr s1, [sp, #12] fmov s2, #1.00000000 fmadd s0, s0, s1, s2 add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _p ; -- Begin function p .p2align 2 _p: ; @p .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] ldur s0, [x29, #-4] bl _p1 str s0, [sp, #8] ; 4-byte Folded Spill ldur s0, [x29, #-4] bl _p2 fmov s1, s0 ldr s0, [sp, #8] ; 4-byte Folded Reload fdiv s0, s0, s1 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 movi d0, #0000000000000000 bl _f fcvt d0, s0 mov x8, sp str d0, [x8] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF stur x0, [x29, #-8] ; 8-byte Folded Spill bl _printf fmov s0, #1.00000000 stur s0, [x29, #-12] ; 4-byte Folded Spill bl _g ldur x0, [x29, #-8] ; 8-byte Folded Reload fcvt d0, s0 mov x8, sp str d0, [x8] bl _printf fmov s0, #2.00000000 bl _h ldur x0, [x29, #-8] ; 8-byte Folded Reload fcvt d0, s0 mov x8, sp str d0, [x8] bl _printf ldur s0, [x29, #-12] ; 4-byte Folded Reload bl _i ldur x0, [x29, #-8] ; 8-byte Folded Reload fcvt d0, s0 mov x8, sp str d0, [x8] bl _printf ldur s0, [x29, #-12] ; 4-byte Folded Reload bl _j ldur x0, [x29, #-8] ; 8-byte Folded Reload fcvt d0, s0 mov x8, sp str d0, [x8] bl _printf ldur s0, [x29, #-12] ; 4-byte Folded Reload bl _k ldur x0, [x29, #-8] ; 8-byte Folded Reload fcvt d0, s0 mov x8, sp str d0, [x8] bl _printf ldur s0, [x29, #-12] ; 4-byte Folded Reload bl _l ldur x0, [x29, #-8] ; 8-byte Folded Reload fcvt d0, s0 mov x8, sp str d0, [x8] bl _printf ldur s0, [x29, #-12] ; 4-byte Folded Reload bl _m ldur x0, [x29, #-8] ; 8-byte Folded Reload fcvt d0, s0 mov x8, sp str d0, [x8] bl _printf ldur s0, [x29, #-12] ; 4-byte Folded Reload bl _n ldur x0, [x29, #-8] ; 8-byte Folded Reload fcvt d0, s0 mov x8, sp str d0, [x8] bl _printf ldur s0, [x29, #-12] ; 4-byte Folded Reload bl _o ldur x0, [x29, #-8] ; 8-byte Folded Reload fcvt d0, s0 mov x8, sp str d0, [x8] bl _printf ldur s0, [x29, #-12] ; 4-byte Folded Reload bl _p ldur x0, [x29, #-8] ; 8-byte Folded Reload fcvt d0, s0 mov x8, sp str d0, [x8] bl _printf ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%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 f LCPI0_0: .long 0x3f800000 ## float 1 .section __TEXT,__text,regular,pure_instructions .globl _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 movss %xmm0, -4(%rbp) movss LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero addss -4(%rbp), %xmm0 popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__literal4,4byte_literals .p2align 2 ## -- Begin function g LCPI1_0: .long 0x40400000 ## float 3 .section __TEXT,__text,regular,pure_instructions .globl _g .p2align 4, 0x90 _g: ## @g .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movss %xmm0, -4(%rbp) movss -4(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero addss %xmm0, %xmm0 movss LCPI1_0(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero addss %xmm1, %xmm0 popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__literal4,4byte_literals .p2align 2 ## -- Begin function h LCPI2_0: .long 0x3f800000 ## float 1 .section __TEXT,__text,regular,pure_instructions .globl _h .p2align 4, 0x90 _h: ## @h .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movss %xmm0, -4(%rbp) movss -4(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss -4(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero mulss %xmm1, %xmm0 movss LCPI2_0(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero addss %xmm1, %xmm0 popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__literal4,4byte_literals .p2align 2 ## -- Begin function i LCPI3_0: .long 0x3f800000 ## float 1 LCPI3_1: .long 0x40400000 ## float 3 LCPI3_2: .long 0x40a00000 ## float 5 .section __TEXT,__text,regular,pure_instructions .globl _i .p2align 4, 0x90 _i: ## @i .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movss %xmm0, -4(%rbp) movss LCPI3_2(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero mulss -4(%rbp), %xmm0 movss -4(%rbp), %xmm2 ## xmm2 = mem[0],zero,zero,zero movss LCPI3_1(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero mulss -4(%rbp), %xmm1 mulss %xmm2, %xmm0 addss %xmm1, %xmm0 movss LCPI3_0(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero addss %xmm1, %xmm0 popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ## -- Begin function j LCPI4_0: .quad 0x4010000000000000 ## double 4 LCPI4_2: .quad 0x4008000000000000 ## double 3 .section __TEXT,__literal4,4byte_literals .p2align 2 LCPI4_1: .long 0x40400000 ## float 3 LCPI4_3: .long 0x40a00000 ## float 5 .section __TEXT,__text,regular,pure_instructions .globl _j .p2align 4, 0x90 _j: ## @j .cfi_startproc ## %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 -4(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movsd LCPI4_2(%rip), %xmm1 ## xmm1 = mem[0],zero callq _pow movss LCPI4_3(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero mulss -4(%rbp), %xmm1 mulss -4(%rbp), %xmm1 cvtss2sd %xmm1, %xmm1 movsd LCPI4_2(%rip), %xmm2 ## xmm2 = mem[0],zero mulsd %xmm2, %xmm0 addsd %xmm1, %xmm0 movss LCPI4_1(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero mulss -4(%rbp), %xmm1 cvtss2sd %xmm1, %xmm1 addsd %xmm1, %xmm0 movsd LCPI4_0(%rip), %xmm1 ## xmm1 = mem[0],zero addsd %xmm1, %xmm0 cvtsd2ss %xmm0, %xmm0 addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ## -- Begin function k LCPI5_0: .quad 0x4008000000000000 ## double 3 LCPI5_1: .quad 0x4024000000000000 ## double 10 .section __TEXT,__text,regular,pure_instructions .globl _k .p2align 4, 0x90 _k: ## @k .cfi_startproc ## %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 -4(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movsd LCPI5_1(%rip), %xmm1 ## xmm1 = mem[0],zero callq _pow movsd %xmm0, -16(%rbp) ## 8-byte Spill movss -4(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movsd LCPI5_0(%rip), %xmm1 ## xmm1 = mem[0],zero callq _pow movaps %xmm0, %xmm1 movsd -16(%rbp), %xmm0 ## 8-byte Reload ## xmm0 = mem[0],zero subsd %xmm1, %xmm0 movsd LCPI5_0(%rip), %xmm1 ## xmm1 = mem[0],zero addsd %xmm1, %xmm0 cvtsd2ss %xmm0, %xmm0 addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ## -- Begin function l LCPI6_0: .quad 0x4014000000000000 ## double 5 LCPI6_1: .quad 0x4008000000000000 ## double 3 LCPI6_3: .quad 0x4024000000000000 ## double 10 .section __TEXT,__literal4,4byte_literals .p2align 2 LCPI6_2: .long 0x40800000 ## float 4 .section __TEXT,__text,regular,pure_instructions .globl _l .p2align 4, 0x90 _l: ## @l .cfi_startproc ## %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 -4(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movsd LCPI6_3(%rip), %xmm1 ## xmm1 = mem[0],zero callq _pow movss LCPI6_2(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero mulss -4(%rbp), %xmm1 mulss -4(%rbp), %xmm1 cvtss2sd %xmm1, %xmm1 movsd LCPI6_1(%rip), %xmm2 ## xmm2 = mem[0],zero mulsd %xmm2, %xmm0 addsd %xmm1, %xmm0 movsd LCPI6_0(%rip), %xmm1 ## xmm1 = mem[0],zero addsd %xmm1, %xmm0 cvtsd2ss %xmm0, %xmm0 addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ## -- Begin function m LCPI7_0: .quad 0x3ff0000000000000 ## double 1 LCPI7_1: .quad 0x4024000000000000 ## double 10 LCPI7_3: .quad 0x4059000000000000 ## double 100 .section __TEXT,__literal4,4byte_literals .p2align 2 LCPI7_2: .long 0x40400000 ## float 3 .section __TEXT,__text,regular,pure_instructions .globl _m .p2align 4, 0x90 _m: ## @m .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movss %xmm0, -4(%rbp) movss -4(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movsd LCPI7_3(%rip), %xmm1 ## xmm1 = mem[0],zero callq _pow movss LCPI7_2(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero mulss -4(%rbp), %xmm1 cvtss2sd %xmm1, %xmm1 movsd LCPI7_1(%rip), %xmm2 ## xmm2 = mem[0],zero mulsd %xmm2, %xmm0 addsd %xmm1, %xmm0 movsd LCPI7_0(%rip), %xmm1 ## xmm1 = mem[0],zero addsd %xmm1, %xmm0 cvtsd2ss %xmm0, %xmm0 addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__literal4,4byte_literals .p2align 2 ## -- Begin function a LCPI8_0: .long 0x40400000 ## float 3 .section __TEXT,__text,regular,pure_instructions .globl _a .p2align 4, 0x90 _a: ## @a .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movss %xmm0, -4(%rbp) movss LCPI8_0(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero addss -4(%rbp), %xmm0 cvttss2si %xmm0, %eax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__literal4,4byte_literals .p2align 2 ## -- Begin function b LCPI9_0: .long 0xc0000000 ## float -2 .section __TEXT,__text,regular,pure_instructions .globl _b .p2align 4, 0x90 _b: ## @b .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movss %xmm0, -4(%rbp) movss -4(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss -4(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero mulss %xmm1, %xmm0 movss LCPI9_0(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero addss %xmm1, %xmm0 cvttss2si %xmm0, %eax popq %rbp retq .cfi_endproc ## -- End function .globl _n ## -- Begin function n .p2align 4, 0x90 _n: ## @n .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movss %xmm0, -4(%rbp) movss -4(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero callq _a movl %eax, -8(%rbp) ## 4-byte Spill movss -4(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero callq _b movl %eax, %ecx movl -8(%rbp), %eax ## 4-byte Reload addl %ecx, %eax cvtsi2ss %eax, %xmm0 addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__literal4,4byte_literals .p2align 2 ## -- Begin function c LCPI11_0: .long 0x3f800000 ## float 1 .section __TEXT,__text,regular,pure_instructions .globl _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 movss %xmm0, -4(%rbp) movss LCPI11_0(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero addss -4(%rbp), %xmm0 popq %rbp retq .cfi_endproc ## -- End function .globl _d ## -- Begin function d .p2align 4, 0x90 _d: ## @d .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movss %xmm0, -4(%rbp) movss -4(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero mulss -4(%rbp), %xmm0 mulss -4(%rbp), %xmm0 popq %rbp retq .cfi_endproc ## -- End function .globl _o ## -- Begin function o .p2align 4, 0x90 _o: ## @o .cfi_startproc ## %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 -4(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero callq _d callq _c addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__literal4,4byte_literals .p2align 2 ## -- Begin function p1 LCPI14_0: .long 0x40000000 ## float 2 LCPI14_1: .long 0x40400000 ## float 3 .section __TEXT,__text,regular,pure_instructions .globl _p1 .p2align 4, 0x90 _p1: ## @p1 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movss %xmm0, -4(%rbp) movss LCPI14_1(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero mulss -4(%rbp), %xmm0 mulss -4(%rbp), %xmm0 movss -4(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero mulss %xmm1, %xmm0 movss LCPI14_0(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero addss %xmm1, %xmm0 popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__literal4,4byte_literals .p2align 2 ## -- Begin function p2 LCPI15_0: .long 0x3f800000 ## float 1 LCPI15_1: .long 0x41a00000 ## float 20 .section __TEXT,__text,regular,pure_instructions .globl _p2 .p2align 4, 0x90 _p2: ## @p2 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movss %xmm0, -4(%rbp) movss LCPI15_1(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero mulss -4(%rbp), %xmm0 movss -4(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero mulss %xmm1, %xmm0 movss LCPI15_0(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero addss %xmm1, %xmm0 popq %rbp retq .cfi_endproc ## -- End function .globl _p ## -- Begin function p .p2align 4, 0x90 _p: ## @p .cfi_startproc ## %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 -4(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero callq _p1 movss %xmm0, -8(%rbp) ## 4-byte Spill movss -4(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero callq _p2 movaps %xmm0, %xmm1 movss -8(%rbp), %xmm0 ## 4-byte Reload ## xmm0 = mem[0],zero,zero,zero divss %xmm1, %xmm0 addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__literal4,4byte_literals .p2align 2 ## -- Begin function main LCPI17_0: .long 0x3f800000 ## float 1 LCPI17_1: .long 0x40000000 ## float 2 .section __TEXT,__text,regular,pure_instructions .globl _main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp xorps %xmm0, %xmm0 callq _f cvtss2sd %xmm0, %xmm0 leaq L_.str(%rip), %rdi movb $1, %al callq _printf movss LCPI17_0(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero callq _g cvtss2sd %xmm0, %xmm0 leaq L_.str(%rip), %rdi movb $1, %al callq _printf movss LCPI17_1(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero callq _h cvtss2sd %xmm0, %xmm0 leaq L_.str(%rip), %rdi movb $1, %al callq _printf movss LCPI17_0(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero callq _i cvtss2sd %xmm0, %xmm0 leaq L_.str(%rip), %rdi movb $1, %al callq _printf movss LCPI17_0(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero callq _j cvtss2sd %xmm0, %xmm0 leaq L_.str(%rip), %rdi movb $1, %al callq _printf movss LCPI17_0(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero callq _k cvtss2sd %xmm0, %xmm0 leaq L_.str(%rip), %rdi movb $1, %al callq _printf movss LCPI17_0(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero callq _l cvtss2sd %xmm0, %xmm0 leaq L_.str(%rip), %rdi movb $1, %al callq _printf movss LCPI17_0(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero callq _m cvtss2sd %xmm0, %xmm0 leaq L_.str(%rip), %rdi movb $1, %al callq _printf movss LCPI17_0(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero callq _n cvtss2sd %xmm0, %xmm0 leaq L_.str(%rip), %rdi movb $1, %al callq _printf movss LCPI17_0(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero callq _o cvtss2sd %xmm0, %xmm0 leaq L_.str(%rip), %rdi movb $1, %al callq _printf movss LCPI17_0(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero callq _p cvtss2sd %xmm0, %xmm0 leaq L_.str(%rip), %rdi movb $1, %al callq _printf popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%f \n" .subsections_via_symbols
the_stack_data/121388.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _mykurtosis ; -- Begin function mykurtosis .p2align 2 _mykurtosis: ; @mykurtosis .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] movi d0, #0000000000000000 str d0, [sp, #24] stur wzr, [x29, #-16] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-16] ldur w9, [x29, #-12] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_4 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldur x8, [x29, #-8] ldursw x9, [x29, #-16] ldr d1, [x8, x9, lsl #3] ldr d0, [sp, #24] fadd d0, d0, d1 str d0, [sp, #24] b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-16] add w8, w8, #1 stur w8, [x29, #-16] b LBB0_1 LBB0_4: ldur s1, [x29, #-12] ; implicit-def: $d0 fmov s0, s1 sshll.2d v0, v0, #0 ; kill: def $d0 killed $d0 killed $q0 scvtf d1, d0 ldr d0, [sp, #24] fdiv d0, d0, d1 str d0, [sp, #24] movi d0, #0000000000000000 str d0, [sp, #8] str d0, [sp, #16] stur wzr, [x29, #-16] b LBB0_5 LBB0_5: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-16] ldur w9, [x29, #-12] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_8 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_5 Depth=1 ldur x8, [x29, #-8] ldursw x9, [x29, #-16] ldr d0, [x8, x9, lsl #3] ldr d1, [sp, #24] fsub d0, d0, d1 ldur x8, [x29, #-8] ldursw x9, [x29, #-16] ldr d1, [x8, x9, lsl #3] ldr d2, [sp, #24] fsub d1, d1, d2 ldr d2, [sp, #8] fmadd d0, d0, d1, d2 str d0, [sp, #8] ldur x8, [x29, #-8] ldursw x9, [x29, #-16] ldr d0, [x8, x9, lsl #3] ldr d1, [sp, #24] fsub d0, d0, d1 fmov d1, #4.00000000 bl _pow fmov d1, d0 ldr d0, [sp, #16] fadd d0, d0, d1 str d0, [sp, #16] b LBB0_7 LBB0_7: ; in Loop: Header=BB0_5 Depth=1 ldur w8, [x29, #-16] add w8, w8, #1 stur w8, [x29, #-16] b LBB0_5 LBB0_8: ldr d0, [sp, #8] ldr d1, [sp, #8] fmul d0, d0, d1 str d0, [sp] ldur s1, [x29, #-12] ; implicit-def: $d0 fmov s0, s1 sshll.2d v0, v0, #0 ; kill: def $d0 killed $d0 killed $q0 scvtf d1, d0 ldr d0, [sp, #16] fmul d0, d0, d1 str d0, [sp, #16] ldr d0, [sp, #16] ldr d1, [sp] fdiv d0, d0, d1 ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ; -- Begin function main lCPI1_0: .quad 0xbfe649ba5e353f7d ; double -0.69650000000000001 lCPI1_1: .quad 0x3fd6809d495182aa ; double 0.35160000000000002 lCPI1_2: .quad 0x3fb339c0ebedfa44 ; double 0.0751 lCPI1_3: .quad 0x3fe40ebedfa43fe6 ; double 0.62680000000000002 lCPI1_4: .quad 0x3ff2a3d70a3d70a4 ; double 1.165 .section __TEXT,__text,regular,pure_instructions .globl _main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #96 .cfi_def_cfa_offset 96 stp x29, x30, [sp, #80] ; 16-byte Folded Spill add x29, sp, #80 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] str w0, [sp, #28] str x1, [sp, #16] add x0, sp, #32 str x0, [sp, #8] ; 8-byte Folded Spill mov w1, #0 mov x2, #40 bl _memset ldr x0, [sp, #8] ; 8-byte Folded Reload adrp x8, lCPI1_4@PAGE ldr d0, [x8, lCPI1_4@PAGEOFF] str d0, [sp, #32] adrp x8, lCPI1_3@PAGE ldr d0, [x8, lCPI1_3@PAGEOFF] str d0, [sp, #40] adrp x8, lCPI1_2@PAGE ldr d0, [x8, lCPI1_2@PAGEOFF] str d0, [sp, #48] adrp x8, lCPI1_1@PAGE ldr d0, [x8, lCPI1_1@PAGEOFF] str d0, [sp, #56] adrp x8, lCPI1_0@PAGE ldr d0, [x8, lCPI1_0@PAGEOFF] str d0, [sp, #64] mov w1, #5 bl _mykurtosis mov x8, sp str d0, [x8] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: bl ___stack_chk_fail LBB1_2: mov w0, #0 ldp x29, x30, [sp, #80] ; 16-byte Folded Reload add sp, sp, #96 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Kurtosis of x[1.165, 0.6268, 0.0751, 0.3516, -0.6965] is %f\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 mykurtosis LCPI0_0: .quad 0x4010000000000000 ## double 4 .section __TEXT,__text,regular,pure_instructions .globl _mykurtosis .p2align 4, 0x90 _mykurtosis: ## @mykurtosis .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) xorps %xmm0, %xmm0 movsd %xmm0, -24(%rbp) movl $0, -16(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movl -16(%rbp), %eax cmpl -12(%rbp), %eax jge LBB0_4 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movq -8(%rbp), %rax movslq -16(%rbp), %rcx movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero addsd -24(%rbp), %xmm0 movsd %xmm0, -24(%rbp) ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movl -16(%rbp), %eax addl $1, %eax movl %eax, -16(%rbp) jmp LBB0_1 LBB0_4: cvtsi2sdl -12(%rbp), %xmm1 movsd -24(%rbp), %xmm0 ## xmm0 = mem[0],zero divsd %xmm1, %xmm0 movsd %xmm0, -24(%rbp) xorps %xmm0, %xmm0 movsd %xmm0, -40(%rbp) xorps %xmm0, %xmm0 movsd %xmm0, -32(%rbp) movl $0, -16(%rbp) LBB0_5: ## =>This Inner Loop Header: Depth=1 movl -16(%rbp), %eax cmpl -12(%rbp), %eax jge LBB0_8 ## %bb.6: ## in Loop: Header=BB0_5 Depth=1 movq -8(%rbp), %rax movslq -16(%rbp), %rcx movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero subsd -24(%rbp), %xmm0 movq -8(%rbp), %rax movslq -16(%rbp), %rcx movsd (%rax,%rcx,8), %xmm2 ## xmm2 = mem[0],zero subsd -24(%rbp), %xmm2 movsd -40(%rbp), %xmm1 ## xmm1 = mem[0],zero mulsd %xmm2, %xmm0 addsd %xmm1, %xmm0 movsd %xmm0, -40(%rbp) movq -8(%rbp), %rax movslq -16(%rbp), %rcx movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero subsd -24(%rbp), %xmm0 movsd LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero callq _pow addsd -32(%rbp), %xmm0 movsd %xmm0, -32(%rbp) ## %bb.7: ## in Loop: Header=BB0_5 Depth=1 movl -16(%rbp), %eax addl $1, %eax movl %eax, -16(%rbp) jmp LBB0_5 LBB0_8: movsd -40(%rbp), %xmm0 ## xmm0 = mem[0],zero mulsd -40(%rbp), %xmm0 movsd %xmm0, -48(%rbp) cvtsi2sdl -12(%rbp), %xmm0 mulsd -32(%rbp), %xmm0 movsd %xmm0, -32(%rbp) movsd -32(%rbp), %xmm0 ## xmm0 = mem[0],zero divsd -48(%rbp), %xmm0 addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ## -- Begin function main LCPI1_0: .quad 0xbfe649ba5e353f7d ## double -0.69650000000000001 LCPI1_1: .quad 0x3fd6809d495182aa ## double 0.35160000000000002 LCPI1_2: .quad 0x3fb339c0ebedfa44 ## double 0.0751 LCPI1_3: .quad 0x3fe40ebedfa43fe6 ## double 0.62680000000000002 LCPI1_4: .quad 0x3ff2a3d70a3d70a4 ## double 1.165 .section __TEXT,__text,regular,pure_instructions .globl _main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $64, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl %edi, -52(%rbp) movq %rsi, -64(%rbp) leaq -48(%rbp), %rdi xorl %esi, %esi movl $40, %edx callq _memset movsd LCPI1_4(%rip), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -48(%rbp) movsd LCPI1_3(%rip), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -40(%rbp) movsd LCPI1_2(%rip), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -32(%rbp) movsd LCPI1_1(%rip), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -24(%rbp) movsd LCPI1_0(%rip), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -16(%rbp) leaq -48(%rbp), %rdi movl $5, %esi callq _mykurtosis leaq L_.str(%rip), %rdi movb $1, %al callq _printf movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB1_2 ## %bb.1: xorl %eax, %eax addq $64, %rsp popq %rbp retq LBB1_2: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Kurtosis of x[1.165, 0.6268, 0.0751, 0.3516, -0.6965] is %f\n" .subsections_via_symbols
the_stack_data/9513947.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _bar ; -- Begin function bar .p2align 2 _bar: ; @bar .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #8] ldr w8, [sp, #8] str w8, [sp, #12] ldr w0, [sp, #12] add sp, sp, #16 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _bar ## -- Begin function bar .p2align 4, 0x90 _bar: ## @bar .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, -8(%rbp) movl -8(%rbp), %eax movl %eax, -4(%rbp) movl -4(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/48576595.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/29639.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 0x40afa128f5c28f5c ; double 4048.5799999999999 .section __TEXT,__text,regular,pure_instructions .globl _main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #0 str w8, [sp, #20] ; 4-byte Folded Spill stur wzr, [x29, #-4] stur w0, [x29, #-8] stur x1, [x29, #-16] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov x9, sp sub x8, x29, #20 str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf ldur s0, [x29, #-20] fcvt d0, s0 adrp x8, lCPI0_0@PAGE ldr d1, [x8, lCPI0_0@PAGEOFF] fmul d0, d0, d1 fcvt s0, d0 str s0, [sp, #24] ldur s0, [x29, #-20] fcvt d1, s0 ldr s0, [sp, #24] fcvt d0, s0 mov x8, sp str d1, [x8] str d0, [x8, #8] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf ldr w0, [sp, #20] ; 4-byte Folded Reload ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Insert an area in square acres: " l_.str.1: ; @.str.1 .asciz "%f" l_.str.2: ; @.str.2 .asciz "%.2f acres is %.2f meters" .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 0x40afa128f5c28f5c ## double 4048.5799999999999 .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 leaq -20(%rbp), %rsi movb $0, %al callq _scanf movss -20(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movsd LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero mulsd %xmm1, %xmm0 cvtsd2ss %xmm0, %xmm0 movss %xmm0, -24(%rbp) movss -20(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movss -24(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero cvtss2sd %xmm1, %xmm1 leaq L_.str.2(%rip), %rdi movb $2, %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 "Insert an area in square acres: " L_.str.1: ## @.str.1 .asciz "%f" L_.str.2: ## @.str.2 .asciz "%.2f acres is %.2f meters" .subsections_via_symbols
the_stack_data/90766696.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] stur w0, [x29, #-8] str x1, [sp, #16] ldur w8, [x29, #-8] subs w8, w8, #1 cset w8, eq tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: ldr x8, [sp, #16] ldr x8, [x8, #8] mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf b LBB0_3 LBB0_2: ldr x8, [sp, #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 b LBB0_3 LBB0_3: mov w0, #0 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Hello %s!" l_.str.1: ; @.str.1 .asciz "usage: %s name" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) movl %edi, -8(%rbp) movq %rsi, -16(%rbp) cmpl $1, -8(%rbp) je LBB0_2 ## %bb.1: movq -16(%rbp), %rax movq 8(%rax), %rsi leaq L_.str(%rip), %rdi movb $0, %al callq _printf jmp LBB0_3 LBB0_2: movq -16(%rbp), %rax movq (%rax), %rsi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf LBB0_3: xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Hello %s!" L_.str.1: ## @.str.1 .asciz "usage: %s name" .subsections_via_symbols
the_stack_data/173579062.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _bar ; -- Begin function bar .p2align 2 _bar: ; @bar .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #12] ldr w8, [sp, #12] add w0, w8, #2 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, #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, #42 cset w8, ne tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: b LBB1_6 LBB1_2: str wzr, [sp, #8] b LBB1_3 LBB1_3: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #8] ldur w9, [x29, #-4] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_6 b LBB1_4 LBB1_4: ; in Loop: Header=BB1_3 Depth=1 ldr w0, [sp, #8] bl _bar adrp x9, _gl@PAGE ldr w8, [x9, _gl@PAGEOFF] add w8, w8, w0 str w8, [x9, _gl@PAGEOFF] b LBB1_5 LBB1_5: ; in Loop: Header=BB1_3 Depth=1 ldr w8, [sp, #8] add w8, w8, #1 str w8, [sp, #8] b LBB1_3 LBB1_6: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] mov w0, #3 bl _foo adrp x8, _gl@PAGE ldr w8, [x8, _gl@PAGEOFF] subs w8, w8, #9 cset w8, eq tbnz w8, #0, LBB2_2 b LBB2_1 LBB2_1: bl _abort LBB2_2: mov w0, #0 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _gl ; @gl .zerofill __DATA,__common,_gl,4,2 .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _bar ## -- Begin function bar .p2align 4, 0x90 _bar: ## @bar .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, -4(%rbp) movl -4(%rbp), %eax addl $2, %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 $16, %rsp movl %edi, -4(%rbp) cmpl $42, -4(%rbp) jne LBB1_2 ## %bb.1: jmp LBB1_6 LBB1_2: movl $0, -8(%rbp) LBB1_3: ## =>This Inner Loop Header: Depth=1 movl -8(%rbp), %eax cmpl -4(%rbp), %eax jge LBB1_6 ## %bb.4: ## in Loop: Header=BB1_3 Depth=1 movl -8(%rbp), %edi callq _bar addl _gl(%rip), %eax movl %eax, _gl(%rip) ## %bb.5: ## in Loop: Header=BB1_3 Depth=1 movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) jmp LBB1_3 LBB1_6: 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 $3, %edi callq _foo cmpl $9, _gl(%rip) je LBB2_2 ## %bb.1: callq _abort LBB2_2: xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _gl ## @gl .zerofill __DATA,__common,_gl,4,2 .subsections_via_symbols
the_stack_data/159516456.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] mov w8, #1 str w8, [sp, #12] b LBB0_1 LBB0_1: ; =>This Loop Header: Depth=1 ; Child Loop BB0_3 Depth 2 ; Child Loop BB0_6 Depth 2 adrp x8, ___stdinp@GOTPAGE ldr x8, [x8, ___stdinp@GOTPAGEOFF] ldr x0, [x8] add x1, sp, #16 bl _fgetln mov x8, x0 str x8, [sp, #24] subs x8, x0, #0 cset w8, eq tbnz w8, #0, LBB0_16 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 x8, [sp, #16] subs x9, x8, #1 str x9, [sp, #16] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB0_15 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_3 Depth=2 ldr w8, [sp, #8] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_11 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_1 Depth=1 b LBB0_6 LBB0_6: ; Parent Loop BB0_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr x8, [sp, #24] add x9, x8, #1 str x9, [sp, #24] ldrsb w8, [x8] strb w8, [sp, #7] ldr w9, [sp, #8] subs w8, w8, w9 cset w8, eq mov w9, #0 str w9, [sp] ; 4-byte Folded Spill tbnz w8, #0, LBB0_8 b LBB0_7 LBB0_7: ; in Loop: Header=BB0_6 Depth=2 ldrsb w8, [sp, #7] subs w8, w8, #10 cset w8, ne str w8, [sp] ; 4-byte Folded Spill b LBB0_8 LBB0_8: ; in Loop: Header=BB0_6 Depth=2 ldr w8, [sp] ; 4-byte Folded Reload tbz w8, #0, LBB0_10 b LBB0_9 LBB0_9: ; in Loop: Header=BB0_6 Depth=2 ldrsb w0, [sp, #7] bl _putchar b LBB0_6 LBB0_10: ; in Loop: Header=BB0_1 Depth=1 str wzr, [sp, #12] str wzr, [sp, #8] b LBB0_15 LBB0_11: ; in Loop: Header=BB0_3 Depth=2 ldr x8, [sp, #24] add x9, x8, #1 str x9, [sp, #24] ldrsb w8, [x8] strb w8, [sp, #7] subs w8, w8, #34 cset w8, eq tbnz w8, #0, LBB0_13 b LBB0_12 LBB0_12: ; in Loop: Header=BB0_3 Depth=2 ldrsb w8, [sp, #7] subs w8, w8, #39 cset w8, ne tbnz w8, #0, LBB0_14 b LBB0_13 LBB0_13: ; in Loop: Header=BB0_3 Depth=2 ldrsb w8, [sp, #7] str w8, [sp, #8] b LBB0_14 LBB0_14: ; in Loop: Header=BB0_3 Depth=2 b LBB0_3 LBB0_15: ; in Loop: Header=BB0_1 Depth=1 b LBB0_1 LBB0_16: mov w0, #0 ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movl $0, -4(%rbp) movl %edi, -8(%rbp) movq %rsi, -16(%rbp) movl $1, -36(%rbp) LBB0_1: ## =>This Loop Header: Depth=1 ## Child Loop BB0_3 Depth 2 ## Child Loop BB0_6 Depth 2 movq ___stdinp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq -32(%rbp), %rsi callq _fgetln movq %rax, -24(%rbp) cmpq $0, %rax je LBB0_16 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl $0, -40(%rbp) LBB0_3: ## Parent Loop BB0_1 Depth=1 ## => This Inner Loop Header: Depth=2 movq -32(%rbp), %rax movq %rax, %rcx addq $-1, %rcx movq %rcx, -32(%rbp) cmpq $0, %rax je LBB0_15 ## %bb.4: ## in Loop: Header=BB0_3 Depth=2 cmpl $0, -40(%rbp) je LBB0_11 ## %bb.5: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_6 LBB0_6: ## Parent Loop BB0_1 Depth=1 ## => This Inner Loop Header: Depth=2 movq -24(%rbp), %rax movq %rax, %rcx addq $1, %rcx movq %rcx, -24(%rbp) movb (%rax), %al movb %al, -41(%rbp) movsbl %al, %ecx xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl -40(%rbp), %ecx movb %al, -42(%rbp) ## 1-byte Spill je LBB0_8 ## %bb.7: ## in Loop: Header=BB0_6 Depth=2 movsbl -41(%rbp), %eax cmpl $10, %eax setne %al movb %al, -42(%rbp) ## 1-byte Spill LBB0_8: ## in Loop: Header=BB0_6 Depth=2 movb -42(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB0_9 jmp LBB0_10 LBB0_9: ## in Loop: Header=BB0_6 Depth=2 movsbl -41(%rbp), %edi callq _putchar jmp LBB0_6 LBB0_10: ## in Loop: Header=BB0_1 Depth=1 movl $0, -36(%rbp) movl $0, -40(%rbp) jmp LBB0_15 LBB0_11: ## in Loop: Header=BB0_3 Depth=2 movq -24(%rbp), %rax movq %rax, %rcx addq $1, %rcx movq %rcx, -24(%rbp) movb (%rax), %al movb %al, -41(%rbp) movsbl %al, %eax cmpl $34, %eax je LBB0_13 ## %bb.12: ## in Loop: Header=BB0_3 Depth=2 movsbl -41(%rbp), %eax cmpl $39, %eax jne LBB0_14 LBB0_13: ## in Loop: Header=BB0_3 Depth=2 movsbl -41(%rbp), %eax movl %eax, -40(%rbp) LBB0_14: ## in Loop: Header=BB0_3 Depth=2 jmp LBB0_3 LBB0_15: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_1 LBB0_16: xorl %eax, %eax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/449197.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, #848 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] str wzr, [sp, #32] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #32] subs w8, w8, #100 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, #24 str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _scanf ldr d0, [sp, #24] ldrsw x9, [sp, #32] add x8, sp, #40 str d0, [x8, x9, lsl #3] b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #32] add w8, w8, #1 str w8, [sp, #32] b LBB0_1 LBB0_4: str wzr, [sp, #32] b LBB0_5 LBB0_5: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #32] subs w8, w8, #100 cset w8, ge tbnz w8, #0, LBB0_10 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_5 Depth=1 ldrsw x9, [sp, #32] add x8, sp, #40 ldr d0, [x8, x9, lsl #3] fmov d1, #10.00000000 fcmp d0, d1 cset w8, hi tbnz w8, #0, LBB0_8 b LBB0_7 LBB0_7: ; in Loop: Header=BB0_5 Depth=1 ldr w8, [sp, #32] ; implicit-def: $x9 mov x9, x8 ldrsw x10, [sp, #32] add x8, sp, #40 ldr d0, [x8, x10, lsl #3] mov x8, sp str x9, [x8] str d0, [x8, #8] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf 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, #32] add w8, w8, #1 str w8, [sp, #32] b LBB0_5 LBB0_10: ldur x9, [x29, #-24] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_12 b LBB0_11 LBB0_11: bl ___stack_chk_fail LBB0_12: mov w0, #0 add sp, sp, #848 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 "%lf" l_.str.1: ; @.str.1 .asciz "A[%d] = %.1lf\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 0x4024000000000000 ## double 10 .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 $832, %rsp ## imm = 0x340 movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -820(%rbp) movl $0, -824(%rbp) movl $0, -824(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 cmpl $100, -824(%rbp) jge LBB0_4 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 leaq L_.str(%rip), %rdi leaq -832(%rbp), %rsi movb $0, %al callq _scanf movsd -832(%rbp), %xmm0 ## xmm0 = mem[0],zero movslq -824(%rbp), %rax movsd %xmm0, -816(%rbp,%rax,8) ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movl -824(%rbp), %eax addl $1, %eax movl %eax, -824(%rbp) jmp LBB0_1 LBB0_4: movl $0, -824(%rbp) LBB0_5: ## =>This Inner Loop Header: Depth=1 cmpl $100, -824(%rbp) jge LBB0_10 ## %bb.6: ## in Loop: Header=BB0_5 Depth=1 movslq -824(%rbp), %rax movsd LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero ucomisd -816(%rbp,%rax,8), %xmm0 jb LBB0_8 ## %bb.7: ## in Loop: Header=BB0_5 Depth=1 movl -824(%rbp), %esi movslq -824(%rbp), %rax movsd -816(%rbp,%rax,8), %xmm0 ## xmm0 = mem[0],zero leaq L_.str.1(%rip), %rdi movb $1, %al callq _printf LBB0_8: ## in Loop: Header=BB0_5 Depth=1 jmp LBB0_9 LBB0_9: ## in Loop: Header=BB0_5 Depth=1 movl -824(%rbp), %eax addl $1, %eax movl %eax, -824(%rbp) jmp LBB0_5 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 $832, %rsp ## imm = 0x340 popq %rbp retq LBB0_12: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%lf" L_.str.1: ## @.str.1 .asciz "A[%d] = %.1lf\n" .subsections_via_symbols
the_stack_data/1209332.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/140765577.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] stur w0, [x29, #-8] stur x1, [x29, #-16] stur wzr, [x29, #-20] ldur w8, [x29, #-8] subs w8, w8, #2 cset w8, ne tbnz w8, #0, LBB0_13 b LBB0_1 LBB0_1: b LBB0_2 LBB0_2: ; =>This Inner Loop Header: Depth=1 ldur x8, [x29, #-16] ldr x8, [x8, #8] ldursw x9, [x29, #-20] ldrsb w8, [x8, x9] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_7 b LBB0_3 LBB0_3: ; in Loop: Header=BB0_2 Depth=1 ldur x8, [x29, #-16] ldr x8, [x8, #8] ldursw x9, [x29, #-20] ldrsb w8, [x8, x9] subs w8, w8, #32 cset w8, gt tbnz w8, #0, LBB0_6 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_2 Depth=1 ldur x8, [x29, #-16] ldr x8, [x8, #8] ldur w9, [x29, #-20] add w9, w9, #1 ldrsb w8, [x8, w9, sxtw] subs w8, w8, #32 cset w8, le tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_2 Depth=1 ldur x8, [x29, #-16] ldr x8, [x8, #8] ldur w9, [x29, #-20] add w9, w9, #1 add x8, x8, w9, sxtw str x8, [sp, #16] b LBB0_6 LBB0_6: ; in Loop: Header=BB0_2 Depth=1 ldur w8, [x29, #-20] add w8, w8, #1 stur w8, [x29, #-20] b LBB0_2 LBB0_7: stur wzr, [x29, #-20] b LBB0_8 LBB0_8: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #16] subs x8, x8, #0 cset w8, eq mov w9, #0 str w9, [sp, #12] ; 4-byte Folded Spill tbnz w8, #0, LBB0_10 b LBB0_9 LBB0_9: ; in Loop: Header=BB0_8 Depth=1 ldr x8, [sp, #16] ldursw x9, [x29, #-20] ldrsb w8, [x8, x9] subs w8, w8, #32 cset w8, gt str w8, [sp, #12] ; 4-byte Folded Spill b LBB0_10 LBB0_10: ; in Loop: Header=BB0_8 Depth=1 ldr w8, [sp, #12] ; 4-byte Folded Reload tbz w8, #0, LBB0_12 b LBB0_11 LBB0_11: ; in Loop: Header=BB0_8 Depth=1 ldr x8, [sp, #16] ldursw x9, [x29, #-20] add x1, x8, x9 mov w0, #1 mov x2, #1 bl _write ldur w8, [x29, #-20] add w8, w8, #1 stur w8, [x29, #-20] b LBB0_8 LBB0_12: b LBB0_13 LBB0_13: mov w0, #1 adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF mov x2, #1 bl _write mov w0, #0 ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .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 $48, %rsp movl $0, -4(%rbp) movl %edi, -8(%rbp) movq %rsi, -16(%rbp) movl $0, -20(%rbp) cmpl $2, -8(%rbp) jne LBB0_13 ## %bb.1: jmp LBB0_2 LBB0_2: ## =>This Inner Loop Header: Depth=1 movq -16(%rbp), %rax movq 8(%rax), %rax movslq -20(%rbp), %rcx movsbl (%rax,%rcx), %eax cmpl $0, %eax je LBB0_7 ## %bb.3: ## in Loop: Header=BB0_2 Depth=1 movq -16(%rbp), %rax movq 8(%rax), %rax movslq -20(%rbp), %rcx movsbl (%rax,%rcx), %eax cmpl $32, %eax jg LBB0_6 ## %bb.4: ## in Loop: Header=BB0_2 Depth=1 movq -16(%rbp), %rax movq 8(%rax), %rax movl -20(%rbp), %ecx addl $1, %ecx movslq %ecx, %rcx movsbl (%rax,%rcx), %eax cmpl $32, %eax jle LBB0_6 ## %bb.5: ## in Loop: Header=BB0_2 Depth=1 movq -16(%rbp), %rax movq 8(%rax), %rax movl -20(%rbp), %ecx addl $1, %ecx movslq %ecx, %rcx addq %rcx, %rax movq %rax, -32(%rbp) LBB0_6: ## in Loop: Header=BB0_2 Depth=1 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB0_2 LBB0_7: movl $0, -20(%rbp) LBB0_8: ## =>This Inner Loop Header: Depth=1 xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpq $0, -32(%rbp) movb %al, -33(%rbp) ## 1-byte Spill je LBB0_10 ## %bb.9: ## in Loop: Header=BB0_8 Depth=1 movq -32(%rbp), %rax movslq -20(%rbp), %rcx movsbl (%rax,%rcx), %eax cmpl $32, %eax setg %al movb %al, -33(%rbp) ## 1-byte Spill LBB0_10: ## in Loop: Header=BB0_8 Depth=1 movb -33(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB0_11 jmp LBB0_12 LBB0_11: ## in Loop: Header=BB0_8 Depth=1 movq -32(%rbp), %rsi movslq -20(%rbp), %rax addq %rax, %rsi movl $1, %edi movl $1, %edx callq _write movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB0_8 LBB0_12: jmp LBB0_13 LBB0_13: movl $1, %edi leaq L_.str(%rip), %rsi movl $1, %edx callq _write xorl %eax, %eax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "\n" .subsections_via_symbols
the_stack_data/1167653.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #448 .cfi_def_cfa_offset 448 stp x28, x27, [sp, #416] ; 16-byte Folded Spill stp x29, x30, [sp, #432] ; 16-byte Folded Spill add x29, sp, #432 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w27, -24 .cfi_offset w28, -32 adrp x8, _sock@GOTPAGE ldr x8, [x8, _sock@GOTPAGEOFF] str x8, [sp, #32] ; 8-byte Folded Spill adrp x8, ___darwin_check_fd_set_overflow@GOTPAGE ldr x8, [x8, ___darwin_check_fd_set_overflow@GOTPAGEOFF] subs x8, x8, #0 cset w8, ne str w8, [sp, #44] ; 4-byte Folded Spill adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] str x8, [sp, #48] ; 8-byte Folded Spill stur wzr, [x29, #-148] stur w0, [x29, #-152] stur x1, [x29, #-160] ldur w8, [x29, #-152] subs w8, w8, #2 cset w8, lt tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: ldur w8, [x29, #-152] subs w8, w8, #3 cset w8, le tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: ldr x8, [sp, #48] ; 8-byte Folded Reload ldr x0, [x8] ldur x8, [x29, #-160] ldr x8, [x8] mov x9, sp str x8, [x9] adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF bl _fprintf mov w0, #1 bl _exit LBB0_3: ldur x8, [x29, #-160] ldr x8, [x8, #8] stur x8, [x29, #-208] ldur w8, [x29, #-152] subs w8, w8, #3 cset w8, ne tbnz w8, #0, LBB0_5 b LBB0_4 LBB0_4: ldur x8, [x29, #-160] ldr x0, [x8, #16] bl _atoi sturh w0, [x29, #-162] b LBB0_6 LBB0_5: mov w8, #7 sturh w8, [x29, #-162] b LBB0_6 LBB0_6: mov w1, #2 mov x0, x1 mov w2, #17 bl _socket ldr x8, [sp, #32] ; 8-byte Folded Reload str w0, [x8] ldr w8, [x8] subs w8, w8, #0 cset w8, ge tbnz w8, #0, LBB0_8 b LBB0_7 LBB0_7: ldr x8, [sp, #48] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF bl _fprintf mov w0, #1 bl _exit LBB0_8: str xzr, [sp, #208] str xzr, [sp, #216] mov w8, #2 strb w8, [sp, #209] ldur x0, [x29, #-208] bl _inet_addr str w0, [sp, #212] b LBB0_9 LBB0_9: ldurh w0, [x29, #-162] bl __OSSwapInt16 and w8, w0, #0xffff str w8, [sp, #28] ; 4-byte Folded Spill b LBB0_10 LBB0_10: ldr x8, [sp, #32] ; 8-byte Folded Reload ldr w9, [sp, #28] ; 4-byte Folded Reload strh w9, [sp, #210] ldr w8, [x8] str w8, [sp, #204] stur xzr, [x29, #-184] stur xzr, [x29, #-176] mov w8, #2 sturb w8, [x29, #-183] stur wzr, [x29, #-180] b LBB0_11 LBB0_11: ldurh w0, [x29, #-162] bl __OSSwapInt16 and w8, w0, #0xffff str w8, [sp, #24] ; 4-byte Folded Spill b LBB0_12 LBB0_12: ldr x8, [sp, #32] ; 8-byte Folded Reload ldr w9, [sp, #24] ; 4-byte Folded Reload sub x1, x29, #184 sturh w9, [x29, #-182] ldr w0, [x8] mov w2, #16 bl _bind subs w8, w0, #0 cset w8, ge tbnz w8, #0, LBB0_14 b LBB0_13 LBB0_13: ldr x8, [sp, #48] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.2@PAGE add x1, x1, l_.str.2@PAGEOFF bl _fprintf mov w0, #1 bl _exit LBB0_14: adrp x8, _IOSignalHandler@PAGE add x8, x8, _IOSignalHandler@PAGEOFF stur x8, [x29, #-200] mov w8, #-1 stur w8, [x29, #-192] b LBB0_15 LBB0_15: sub x1, x29, #200 stur wzr, [x29, #-188] mov w0, #23 mov x2, #0 bl _sigaction subs w8, w0, #0 cset w8, ge tbnz w8, #0, LBB0_17 b LBB0_16 LBB0_16: ldr x8, [sp, #48] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.4@PAGE add x1, x1, l_.str.4@PAGEOFF bl _fprintf mov w0, #1 bl _exit LBB0_17: ldr x8, [sp, #32] ; 8-byte Folded Reload ldr w8, [x8] str w8, [sp, #20] ; 4-byte Folded Spill bl _getpid mov x10, x0 ldr w0, [sp, #20] ; 4-byte Folded Reload mov x9, sp ; implicit-def: $x8 mov x8, x10 str x8, [x9] mov w1, #6 bl _fcntl subs w8, w0, #0 cset w8, ge tbnz w8, #0, LBB0_19 b LBB0_18 LBB0_18: ldr x8, [sp, #48] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.5@PAGE add x1, x1, l_.str.5@PAGEOFF bl _fprintf mov w0, #1 bl _exit LBB0_19: ldr x8, [sp, #32] ; 8-byte Folded Reload ldr w0, [x8] mov x9, sp mov x8, #68 str x8, [x9] mov w1, #4 bl _fcntl subs w8, w0, #0 cset w8, ge tbnz w8, #0, LBB0_21 b LBB0_20 LBB0_20: ldr x8, [sp, #48] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.6@PAGE add x1, x1, l_.str.6@PAGEOFF bl _fprintf mov w0, #1 bl _exit LBB0_21: b LBB0_22 LBB0_22: ; =>This Inner Loop Header: Depth=1 add x0, sp, #76 str x0, [sp, #8] ; 8-byte Folded Spill mov w1, #0 mov x2, #128 bl _memset ldr x9, [sp, #8] ; 8-byte Folded Reload ldr w8, [sp, #44] ; 4-byte Folded Reload stur wzr, [x29, #-116] stur x9, [x29, #-128] ldur w10, [x29, #-116] ldur x9, [x29, #-128] stur w10, [x29, #-40] stur x9, [x29, #-48] tbz w8, #0, LBB0_24 b LBB0_23 LBB0_23: ; in Loop: Header=BB0_22 Depth=1 ldur w0, [x29, #-40] ldur x1, [x29, #-48] mov w2, #0 bl ___darwin_check_fd_set_overflow stur w0, [x29, #-36] b LBB0_25 LBB0_24: ; in Loop: Header=BB0_22 Depth=1 mov w8, #1 stur w8, [x29, #-36] b LBB0_25 LBB0_25: ; in Loop: Header=BB0_22 Depth=1 ldur w8, [x29, #-36] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_27 b LBB0_26 LBB0_26: ; in Loop: Header=BB0_22 Depth=1 ldursw x8, [x29, #-116] mov x11, #32 udiv x9, x8, x11 mul x9, x9, x11 subs x9, x8, x9 mov x8, #1 lsl x8, x8, x9 mov x10, x8 ldur x8, [x29, #-128] ldursw x9, [x29, #-116] udiv x9, x9, x11 add x9, x8, x9, lsl #2 ldr w8, [x9] orr w8, w8, w10 str w8, [x9] b LBB0_27 LBB0_27: ; in Loop: Header=BB0_22 Depth=1 ldr w8, [sp, #44] ; 4-byte Folded Reload ldr x9, [sp, #32] ; 8-byte Folded Reload ldr w9, [x9] stur w9, [x29, #-132] add x9, sp, #76 stur x9, [x29, #-144] ldur w10, [x29, #-132] ldur x9, [x29, #-144] stur w10, [x29, #-24] stur x9, [x29, #-32] tbz w8, #0, LBB0_29 b LBB0_28 LBB0_28: ; in Loop: Header=BB0_22 Depth=1 ldur w0, [x29, #-24] ldur x1, [x29, #-32] mov w2, #0 bl ___darwin_check_fd_set_overflow stur w0, [x29, #-20] b LBB0_30 LBB0_29: ; in Loop: Header=BB0_22 Depth=1 mov w8, #1 stur w8, [x29, #-20] b LBB0_30 LBB0_30: ; in Loop: Header=BB0_22 Depth=1 ldur w8, [x29, #-20] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_32 b LBB0_31 LBB0_31: ; in Loop: Header=BB0_22 Depth=1 ldursw x8, [x29, #-132] mov x11, #32 udiv x9, x8, x11 mul x9, x9, x11 subs x9, x8, x9 mov x8, #1 lsl x8, x8, x9 mov x10, x8 ldur x8, [x29, #-144] ldursw x9, [x29, #-132] udiv x9, x9, x11 add x9, x8, x9, lsl #2 ldr w8, [x9] orr w8, w8, w10 str w8, [x9] b LBB0_32 LBB0_32: ; in Loop: Header=BB0_22 Depth=1 add x4, sp, #56 mov x8, #2 str x8, [sp, #56] str wzr, [sp, #64] ldr w8, [sp, #204] add w0, w8, #1 add x1, sp, #76 mov x3, #0 mov x2, x3 bl _select subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB0_34 b LBB0_33 LBB0_33: ; in Loop: Header=BB0_22 Depth=1 b LBB0_22 LBB0_34: ; in Loop: Header=BB0_22 Depth=1 ldr w8, [sp, #44] ; 4-byte Folded Reload stur wzr, [x29, #-88] add x9, sp, #76 stur x9, [x29, #-96] ldur w10, [x29, #-88] ldur x9, [x29, #-96] stur w10, [x29, #-72] stur x9, [x29, #-80] tbz w8, #0, LBB0_36 b LBB0_35 LBB0_35: ; in Loop: Header=BB0_22 Depth=1 ldur w0, [x29, #-72] ldur x1, [x29, #-80] mov w2, #0 bl ___darwin_check_fd_set_overflow stur w0, [x29, #-68] b LBB0_37 LBB0_36: ; in Loop: Header=BB0_22 Depth=1 mov w8, #1 stur w8, [x29, #-68] b LBB0_37 LBB0_37: ; in Loop: Header=BB0_22 Depth=1 ldur w8, [x29, #-68] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_39 b LBB0_38 LBB0_38: ; in Loop: Header=BB0_22 Depth=1 ldur x8, [x29, #-96] ldursw x9, [x29, #-88] mov x11, #32 udiv x9, x9, x11 ldr w8, [x8, x9, lsl #2] ldursw x9, [x29, #-88] udiv x10, x9, x11 mul x10, x10, x11 subs x10, x9, x10 mov x9, #1 lsl x9, x9, x10 ; kill: def $w9 killed $w9 killed $x9 and w8, w8, w9 stur w8, [x29, #-84] b LBB0_40 LBB0_39: ; in Loop: Header=BB0_22 Depth=1 stur wzr, [x29, #-84] b LBB0_40 LBB0_40: ; in Loop: Header=BB0_22 Depth=1 ldur w8, [x29, #-84] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_44 b LBB0_41 LBB0_41: ; in Loop: Header=BB0_22 Depth=1 add x0, sp, #208 bl _SendEchoMessage subs w8, w0, #0 cset w8, ge tbnz w8, #0, LBB0_43 b LBB0_42 LBB0_42: b LBB0_55 LBB0_43: ; in Loop: Header=BB0_22 Depth=1 b LBB0_44 LBB0_44: ; in Loop: Header=BB0_22 Depth=1 ldr w8, [sp, #44] ; 4-byte Folded Reload ldr x9, [sp, #32] ; 8-byte Folded Reload ldr w9, [x9] stur w9, [x29, #-104] add x9, sp, #76 stur x9, [x29, #-112] ldur w10, [x29, #-104] ldur x9, [x29, #-112] stur w10, [x29, #-56] stur x9, [x29, #-64] tbz w8, #0, LBB0_46 b LBB0_45 LBB0_45: ; in Loop: Header=BB0_22 Depth=1 ldur w0, [x29, #-56] ldur x1, [x29, #-64] mov w2, #0 bl ___darwin_check_fd_set_overflow stur w0, [x29, #-52] b LBB0_47 LBB0_46: ; in Loop: Header=BB0_22 Depth=1 mov w8, #1 stur w8, [x29, #-52] b LBB0_47 LBB0_47: ; in Loop: Header=BB0_22 Depth=1 ldur w8, [x29, #-52] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_49 b LBB0_48 LBB0_48: ; in Loop: Header=BB0_22 Depth=1 ldur x8, [x29, #-112] ldursw x9, [x29, #-104] mov x11, #32 udiv x9, x9, x11 ldr w8, [x8, x9, lsl #2] ldursw x9, [x29, #-104] udiv x10, x9, x11 mul x10, x10, x11 subs x10, x9, x10 mov x9, #1 lsl x9, x9, x10 ; kill: def $w9 killed $w9 killed $x9 and w8, w8, w9 stur w8, [x29, #-100] b LBB0_50 LBB0_49: ; in Loop: Header=BB0_22 Depth=1 stur wzr, [x29, #-100] b LBB0_50 LBB0_50: ; in Loop: Header=BB0_22 Depth=1 ldur w8, [x29, #-100] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_54 b LBB0_51 LBB0_51: ; in Loop: Header=BB0_22 Depth=1 add x0, sp, #208 bl _ReceiveEchoMessage subs w8, w0, #0 cset w8, ge tbnz w8, #0, LBB0_53 b LBB0_52 LBB0_52: b LBB0_55 LBB0_53: ; in Loop: Header=BB0_22 Depth=1 b LBB0_54 LBB0_54: ; in Loop: Header=BB0_22 Depth=1 b LBB0_22 LBB0_55: ldr x8, [sp, #32] ; 8-byte Folded Reload ldr w0, [x8] bl _close mov w0, #0 bl _exit .cfi_endproc ; -- End function .p2align 2 ; -- Begin function _OSSwapInt16 __OSSwapInt16: ; @_OSSwapInt16 .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 strh w0, [sp, #14] ldrh w9, [sp, #14] ldrh w8, [sp, #14] asr w8, w8, #8 orr w8, w8, w9, lsl #8 and w0, w8, #0xffff add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _IOSignalHandler ; -- Begin function IOSignalHandler .p2align 2 _IOSignalHandler: ; @IOSignalHandler .cfi_startproc ; %bb.0: sub sp, sp, #352 .cfi_def_cfa_offset 352 stp x28, x27, [sp, #320] ; 16-byte Folded Spill stp x29, x30, [sp, #336] ; 16-byte Folded Spill add x29, sp, #336 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w27, -24 .cfi_offset w28, -32 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] str w0, [sp, #36] b LBB2_1 LBB2_1: ; =>This Inner Loop Header: Depth=1 add x5, sp, #32 mov w8, #16 str w8, [sp, #32] adrp x8, _sock@GOTPAGE ldr x8, [x8, _sock@GOTPAGEOFF] ldr w0, [x8] add x1, sp, #41 mov x2, #255 mov w3, #0 sub x4, x29, #40 bl _recvfrom mov x8, x0 str w8, [sp, #28] ldr w8, [sp, #28] subs w8, w8, #0 cset w8, ge tbnz w8, #0, LBB2_5 b LBB2_2 LBB2_2: ; in Loop: Header=BB2_1 Depth=1 bl ___error ldr w8, [x0] subs w8, w8, #35 cset w8, eq tbnz w8, #0, LBB2_4 b LBB2_3 LBB2_3: adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] ldr x0, [x8] adrp x1, l_.str.7@PAGE add x1, x1, l_.str.7@PAGEOFF bl _fprintf mov w0, #1 bl _exit LBB2_4: ; in Loop: Header=BB2_1 Depth=1 b LBB2_8 LBB2_5: ; in Loop: Header=BB2_1 Depth=1 sub x8, x29, #40 str x8, [sp, #16] ; 8-byte Folded Spill ldur w8, [x29, #-36] mov x0, x8 bl _inet_ntoa mov x8, sp str x0, [x8] adrp x0, l_.str.8@PAGE add x0, x0, l_.str.8@PAGEOFF bl _printf ldr x4, [sp, #16] ; 8-byte Folded Reload adrp x8, _sock@GOTPAGE ldr x8, [x8, _sock@GOTPAGEOFF] ldr w0, [x8] ldrsw x2, [sp, #28] add x1, sp, #41 mov w3, #0 mov w5, #16 bl _sendto mov x8, x0 str w8, [sp, #24] ldr w8, [sp, #28] ldr w9, [sp, #24] subs w8, w8, w9 cset w8, eq tbnz w8, #0, LBB2_7 b LBB2_6 LBB2_6: adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] ldr x0, [x8] adrp x1, l_.str.9@PAGE add x1, x1, l_.str.9@PAGEOFF bl _fprintf mov w0, #1 bl _exit LBB2_7: ; in Loop: Header=BB2_1 Depth=1 b LBB2_8 LBB2_8: ; in Loop: Header=BB2_1 Depth=1 b LBB2_9 LBB2_9: ; in Loop: Header=BB2_1 Depth=1 ldr w8, [sp, #28] subs w8, w8, #0 cset w8, ge tbnz w8, #0, LBB2_1 b LBB2_10 LBB2_10: ldur x9, [x29, #-24] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB2_12 b LBB2_11 LBB2_11: bl ___stack_chk_fail LBB2_12: ldp x29, x30, [sp, #336] ; 16-byte Folded Reload ldp x28, x27, [sp, #320] ; 16-byte Folded Reload add sp, sp, #352 ret .cfi_endproc ; -- End function .globl _SendEchoMessage ; -- Begin function SendEchoMessage .p2align 2 _SendEchoMessage: ; @SendEchoMessage .cfi_startproc ; %bb.0: sub sp, sp, #336 .cfi_def_cfa_offset 336 stp x28, x27, [sp, #304] ; 16-byte Folded Spill stp x29, x30, [sp, #320] ; 16-byte Folded Spill add x29, sp, #320 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w27, -24 .cfi_offset w28, -32 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] str x0, [sp, #24] adrp x8, ___stdinp@GOTPAGE ldr x8, [x8, ___stdinp@GOTPAGEOFF] ldr x2, [x8] add x0, sp, #40 mov w1, #256 bl _fgets subs x8, x0, #0 cset w8, ne tbnz w8, #0, LBB3_2 b LBB3_1 LBB3_1: mov w8, #-1 str w8, [sp, #36] b LBB3_7 LBB3_2: add x0, sp, #40 bl _strlen mov x8, x0 str w8, [sp, #20] ldr w8, [sp, #20] subs w8, w8, #1 cset w8, ge tbnz w8, #0, LBB3_4 b LBB3_3 LBB3_3: adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] ldr x0, [x8] adrp x1, l_.str.10@PAGE add x1, x1, l_.str.10@PAGEOFF bl _fprintf mov w8, #-1 str w8, [sp, #36] b LBB3_7 LBB3_4: adrp x8, _sock@GOTPAGE ldr x8, [x8, _sock@GOTPAGEOFF] ldr w0, [x8] ldrsw x2, [sp, #20] ldr x4, [sp, #24] add x1, sp, #40 mov w3, #0 mov w5, #16 bl _sendto mov x8, x0 str w8, [sp, #16] ldr w8, [sp, #20] ldr w9, [sp, #16] subs w8, w8, w9 cset w8, eq tbnz w8, #0, LBB3_6 b LBB3_5 LBB3_5: adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] ldr x0, [x8] adrp x1, l_.str.11@PAGE add x1, x1, l_.str.11@PAGEOFF bl _fprintf mov w8, #-1 str w8, [sp, #36] b LBB3_7 LBB3_6: str wzr, [sp, #36] b LBB3_7 LBB3_7: ldr w8, [sp, #36] str w8, [sp, #12] ; 4-byte Folded Spill ldur x9, [x29, #-24] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB3_9 b LBB3_8 LBB3_8: bl ___stack_chk_fail LBB3_9: ldr w0, [sp, #12] ; 4-byte Folded Reload ldp x29, x30, [sp, #320] ; 16-byte Folded Reload ldp x28, x27, [sp, #304] ; 16-byte Folded Reload add sp, sp, #336 ret .cfi_endproc ; -- End function .globl _ReceiveEchoMessage ; -- Begin function ReceiveEchoMessage .p2align 2 _ReceiveEchoMessage: ; @ReceiveEchoMessage .cfi_startproc ; %bb.0: sub sp, sp, #352 .cfi_def_cfa_offset 352 stp x28, x27, [sp, #320] ; 16-byte Folded Spill stp x29, x30, [sp, #336] ; 16-byte Folded Spill add x29, sp, #336 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w27, -24 .cfi_offset w28, -32 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] str x0, [sp, #24] add x5, sp, #20 mov w8, #16 str w8, [sp, #20] adrp x8, _sock@GOTPAGE ldr x8, [x8, _sock@GOTPAGEOFF] ldr w0, [x8] add x1, sp, #40 mov x2, #255 mov w3, #0 sub x4, x29, #40 bl _recvfrom mov x8, x0 str w8, [sp, #16] ldr w8, [sp, #16] subs w8, w8, #0 cset w8, ge tbnz w8, #0, LBB4_2 b LBB4_1 LBB4_1: adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] ldr x0, [x8] adrp x1, l_.str.7@PAGE add x1, x1, l_.str.7@PAGEOFF bl _fprintf mov w8, #-1 str w8, [sp, #36] b LBB4_5 LBB4_2: ldur w8, [x29, #-36] ldr x9, [sp, #24] ldr w9, [x9, #4] subs w8, w8, w9 cset w8, eq tbnz w8, #0, LBB4_4 b LBB4_3 LBB4_3: adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] ldr x0, [x8] adrp x1, l_.str.12@PAGE add x1, x1, l_.str.12@PAGEOFF bl _fprintf mov w8, #-1 str w8, [sp, #36] b LBB4_5 LBB4_4: ldrsw x10, [sp, #16] add x8, sp, #40 mov x9, x8 add x9, x9, x10 strb wzr, [x9] mov x9, sp str x8, [x9] adrp x0, l_.str.13@PAGE add x0, x0, l_.str.13@PAGEOFF bl _printf str wzr, [sp, #36] b LBB4_5 LBB4_5: ldr w8, [sp, #36] str w8, [sp, #12] ; 4-byte Folded Spill ldur x9, [x29, #-24] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB4_7 b LBB4_6 LBB4_6: bl ___stack_chk_fail LBB4_7: ldr w0, [sp, #12] ; 4-byte Folded Reload ldp x29, x30, [sp, #336] ; 16-byte Folded Reload ldp x28, x27, [sp, #320] ; 16-byte Folded Reload add sp, sp, #352 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Usage: %s <Server IP> [<Echo Port>]\n" .comm _sock,4,2 ; @sock l_.str.1: ; @.str.1 .asciz "socket() failed\n" l_.str.2: ; @.str.2 .asciz "bind() failed\n" l_.str.3: ; @.str.3 .asciz "sigfillset() failed\n" l_.str.4: ; @.str.4 .asciz "sigaction() failed\n" l_.str.5: ; @.str.5 .asciz "Unable to set process owner to us\n" l_.str.6: ; @.str.6 .asciz "Unable to put the sock into nonblocking/async mode\n" l_.str.7: ; @.str.7 .asciz "recvfrom() failed\n" l_.str.8: ; @.str.8 .asciz "Handling client %s\n" l_.str.9: ; @.str.9 .asciz "sendto() sent a differrent number of bytes than expected\n" l_.str.10: ; @.str.10 .asciz "No input string.\n" l_.str.11: ; @.str.11 .asciz "sendto() sent a different number of bytes than expected\n" l_.str.12: ; @.str.12 .asciz "Error: received a packet from unknown source.\n" l_.str.13: ; @.str.13 .asciz "Received: %s\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $400, %rsp ## imm = 0x190 movl $0, -132(%rbp) movl %edi, -136(%rbp) movq %rsi, -144(%rbp) cmpl $2, -136(%rbp) jl LBB0_2 ## %bb.1: cmpl $3, -136(%rbp) jle LBB0_3 LBB0_2: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movq -144(%rbp), %rax movq (%rax), %rdx leaq L_.str(%rip), %rsi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _fprintf movl $1, %edi callq _exit LBB0_3: movq -144(%rbp), %rax movq 8(%rax), %rax movq %rax, -192(%rbp) cmpl $3, -136(%rbp) jne LBB0_5 ## %bb.4: movq -144(%rbp), %rax movq 16(%rax), %rdi callq _atoi ## kill: def $ax killed $ax killed $eax movw %ax, -146(%rbp) jmp LBB0_6 LBB0_5: movw $7, -146(%rbp) LBB0_6: movl $2, %esi movl $17, %edx movl %esi, %edi callq _socket movl %eax, %ecx movq _sock@GOTPCREL(%rip), %rax movl %ecx, (%rax) movq _sock@GOTPCREL(%rip), %rax cmpl $0, (%rax) jge LBB0_8 ## %bb.7: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.1(%rip), %rsi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _fprintf movl $1, %edi callq _exit LBB0_8: leaq -208(%rbp), %rdi xorl %esi, %esi movl $16, %edx callq _memset movb $2, -207(%rbp) movq -192(%rbp), %rdi callq _inet_addr movl %eax, -204(%rbp) ## %bb.9: movzwl -146(%rbp), %edi callq __OSSwapInt16 movzwl %ax, %eax movl %eax, -372(%rbp) ## 4-byte Spill ## %bb.10: movl -372(%rbp), %eax ## 4-byte Reload movw %ax, -206(%rbp) movq _sock@GOTPCREL(%rip), %rax movl (%rax), %eax movl %eax, -212(%rbp) leaq -168(%rbp), %rdi xorl %esi, %esi movl $16, %edx callq _memset movb $2, -167(%rbp) movl $0, -164(%rbp) ## %bb.11: movzwl -146(%rbp), %edi callq __OSSwapInt16 movzwl %ax, %eax movl %eax, -376(%rbp) ## 4-byte Spill ## %bb.12: movl -376(%rbp), %eax ## 4-byte Reload movw %ax, -166(%rbp) movq _sock@GOTPCREL(%rip), %rax movl (%rax), %edi leaq -168(%rbp), %rsi movl $16, %edx callq _bind cmpl $0, %eax jge LBB0_14 ## %bb.13: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.2(%rip), %rsi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _fprintf movl $1, %edi callq _exit LBB0_14: leaq _IOSignalHandler(%rip), %rax movq %rax, -184(%rbp) movl $-1, -176(%rbp) ## %bb.15: movl $0, -172(%rbp) movl $23, %edi leaq -184(%rbp), %rsi xorl %eax, %eax movl %eax, %edx callq _sigaction cmpl $0, %eax jge LBB0_17 ## %bb.16: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.4(%rip), %rsi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _fprintf movl $1, %edi callq _exit LBB0_17: movq _sock@GOTPCREL(%rip), %rax movl (%rax), %eax movl %eax, -380(%rbp) ## 4-byte Spill callq _getpid movl -380(%rbp), %edi ## 4-byte Reload movl %eax, %edx movl $6, %esi movb $0, %al callq _fcntl cmpl $0, %eax jge LBB0_19 ## %bb.18: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.5(%rip), %rsi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _fprintf movl $1, %edi callq _exit LBB0_19: movq _sock@GOTPCREL(%rip), %rax movl (%rax), %edi movl $4, %esi movl $68, %edx movb $0, %al callq _fcntl cmpl $0, %eax jge LBB0_21 ## %bb.20: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.6(%rip), %rsi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _fprintf movl $1, %edi callq _exit LBB0_21: jmp LBB0_22 LBB0_22: ## =>This Inner Loop Header: Depth=1 xorps %xmm0, %xmm0 movaps %xmm0, -400(%rbp) ## 16-byte Spill movaps %xmm0, -240(%rbp) movaps %xmm0, -256(%rbp) movaps %xmm0, -272(%rbp) movaps %xmm0, -288(%rbp) movaps %xmm0, -304(%rbp) movaps %xmm0, -320(%rbp) movaps %xmm0, -336(%rbp) movaps %xmm0, -352(%rbp) movl $0, -100(%rbp) leaq -352(%rbp), %rax movq %rax, -112(%rbp) movl -100(%rbp), %ecx movq -112(%rbp), %rax movl %ecx, -24(%rbp) movq %rax, -32(%rbp) movq ___darwin_check_fd_set_overflow@GOTPCREL(%rip), %rax testq %rax, %rax je LBB0_24 jmp LBB0_23 LBB0_23: ## in Loop: Header=BB0_22 Depth=1 movl -24(%rbp), %edi movq -32(%rbp), %rsi xorl %edx, %edx callq ___darwin_check_fd_set_overflow movl %eax, -20(%rbp) jmp LBB0_25 LBB0_24: ## in Loop: Header=BB0_22 Depth=1 movl $1, -20(%rbp) LBB0_25: ## in Loop: Header=BB0_22 Depth=1 cmpl $0, -20(%rbp) je LBB0_27 ## %bb.26: ## in Loop: Header=BB0_22 Depth=1 movslq -100(%rbp), %rcx andq $31, %rcx movl $1, %eax ## kill: def $cl killed $rcx shlq %cl, %rax movl %eax, %edx movq -112(%rbp), %rax movslq -100(%rbp), %rcx shrq $5, %rcx orl (%rax,%rcx,4), %edx movl %edx, (%rax,%rcx,4) LBB0_27: ## in Loop: Header=BB0_22 Depth=1 movq _sock@GOTPCREL(%rip), %rax movl (%rax), %eax movl %eax, -116(%rbp) leaq -352(%rbp), %rax movq %rax, -128(%rbp) movl -116(%rbp), %ecx movq -128(%rbp), %rax movl %ecx, -8(%rbp) movq %rax, -16(%rbp) movq ___darwin_check_fd_set_overflow@GOTPCREL(%rip), %rax testq %rax, %rax je LBB0_29 jmp LBB0_28 LBB0_28: ## in Loop: Header=BB0_22 Depth=1 movl -8(%rbp), %edi movq -16(%rbp), %rsi xorl %edx, %edx callq ___darwin_check_fd_set_overflow movl %eax, -4(%rbp) jmp LBB0_30 LBB0_29: ## in Loop: Header=BB0_22 Depth=1 movl $1, -4(%rbp) LBB0_30: ## in Loop: Header=BB0_22 Depth=1 cmpl $0, -4(%rbp) je LBB0_32 ## %bb.31: ## in Loop: Header=BB0_22 Depth=1 movslq -116(%rbp), %rcx andq $31, %rcx movl $1, %eax ## kill: def $cl killed $rcx shlq %cl, %rax movl %eax, %edx movq -128(%rbp), %rax movslq -116(%rbp), %rcx shrq $5, %rcx orl (%rax,%rcx,4), %edx movl %edx, (%rax,%rcx,4) LBB0_32: ## in Loop: Header=BB0_22 Depth=1 movq $2, -368(%rbp) movl $0, -360(%rbp) movl -212(%rbp), %edi addl $1, %edi leaq -352(%rbp), %rsi xorl %eax, %eax movl %eax, %ecx leaq -368(%rbp), %r8 movq %rcx, %rdx callq _select$1050 cmpl $0, %eax jne LBB0_34 ## %bb.33: ## in Loop: Header=BB0_22 Depth=1 jmp LBB0_22 LBB0_34: ## in Loop: Header=BB0_22 Depth=1 movl $0, -72(%rbp) leaq -352(%rbp), %rax movq %rax, -80(%rbp) movl -72(%rbp), %ecx movq -80(%rbp), %rax movl %ecx, -56(%rbp) movq %rax, -64(%rbp) movq ___darwin_check_fd_set_overflow@GOTPCREL(%rip), %rax testq %rax, %rax je LBB0_36 jmp LBB0_35 LBB0_35: ## in Loop: Header=BB0_22 Depth=1 movl -56(%rbp), %edi movq -64(%rbp), %rsi xorl %edx, %edx callq ___darwin_check_fd_set_overflow movl %eax, -52(%rbp) jmp LBB0_37 LBB0_36: ## in Loop: Header=BB0_22 Depth=1 movl $1, -52(%rbp) LBB0_37: ## in Loop: Header=BB0_22 Depth=1 cmpl $0, -52(%rbp) je LBB0_39 ## %bb.38: ## in Loop: Header=BB0_22 Depth=1 movq -80(%rbp), %rax movslq -72(%rbp), %rcx shrq $5, %rcx movl (%rax,%rcx,4), %eax movslq -72(%rbp), %rcx andq $31, %rcx movl $1, %edx ## kill: def $cl killed $rcx shlq %cl, %rdx movq %rdx, %rcx ## kill: def $ecx killed $ecx killed $rcx andl %ecx, %eax movl %eax, -68(%rbp) jmp LBB0_40 LBB0_39: ## in Loop: Header=BB0_22 Depth=1 movl $0, -68(%rbp) LBB0_40: ## in Loop: Header=BB0_22 Depth=1 cmpl $0, -68(%rbp) je LBB0_44 ## %bb.41: ## in Loop: Header=BB0_22 Depth=1 leaq -208(%rbp), %rdi callq _SendEchoMessage cmpl $0, %eax jge LBB0_43 ## %bb.42: jmp LBB0_55 LBB0_43: ## in Loop: Header=BB0_22 Depth=1 jmp LBB0_44 LBB0_44: ## in Loop: Header=BB0_22 Depth=1 movq _sock@GOTPCREL(%rip), %rax movl (%rax), %eax movl %eax, -88(%rbp) leaq -352(%rbp), %rax movq %rax, -96(%rbp) movl -88(%rbp), %ecx movq -96(%rbp), %rax movl %ecx, -40(%rbp) movq %rax, -48(%rbp) movq ___darwin_check_fd_set_overflow@GOTPCREL(%rip), %rax testq %rax, %rax je LBB0_46 jmp LBB0_45 LBB0_45: ## in Loop: Header=BB0_22 Depth=1 movl -40(%rbp), %edi movq -48(%rbp), %rsi xorl %edx, %edx callq ___darwin_check_fd_set_overflow movl %eax, -36(%rbp) jmp LBB0_47 LBB0_46: ## in Loop: Header=BB0_22 Depth=1 movl $1, -36(%rbp) LBB0_47: ## in Loop: Header=BB0_22 Depth=1 cmpl $0, -36(%rbp) je LBB0_49 ## %bb.48: ## in Loop: Header=BB0_22 Depth=1 movq -96(%rbp), %rax movslq -88(%rbp), %rcx shrq $5, %rcx movl (%rax,%rcx,4), %eax movslq -88(%rbp), %rcx andq $31, %rcx movl $1, %edx ## kill: def $cl killed $rcx shlq %cl, %rdx movq %rdx, %rcx ## kill: def $ecx killed $ecx killed $rcx andl %ecx, %eax movl %eax, -84(%rbp) jmp LBB0_50 LBB0_49: ## in Loop: Header=BB0_22 Depth=1 movl $0, -84(%rbp) LBB0_50: ## in Loop: Header=BB0_22 Depth=1 cmpl $0, -84(%rbp) je LBB0_54 ## %bb.51: ## in Loop: Header=BB0_22 Depth=1 leaq -208(%rbp), %rdi callq _ReceiveEchoMessage cmpl $0, %eax jge LBB0_53 ## %bb.52: jmp LBB0_55 LBB0_53: ## in Loop: Header=BB0_22 Depth=1 jmp LBB0_54 LBB0_54: ## in Loop: Header=BB0_22 Depth=1 jmp LBB0_22 LBB0_55: movq _sock@GOTPCREL(%rip), %rax movl (%rax), %edi callq _close xorl %edi, %edi callq _exit .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function _OSSwapInt16 __OSSwapInt16: ## @_OSSwapInt16 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movw %di, %ax movw %ax, -2(%rbp) movzwl -2(%rbp), %eax shll $8, %eax movzwl -2(%rbp), %ecx sarl $8, %ecx orl %ecx, %eax ## kill: def $ax killed $ax killed $eax movzwl %ax, %eax popq %rbp retq .cfi_endproc ## -- End function .globl _IOSignalHandler ## -- Begin function IOSignalHandler .p2align 4, 0x90 _IOSignalHandler: ## @IOSignalHandler .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $304, %rsp ## imm = 0x130 movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl %edi, -292(%rbp) LBB2_1: ## =>This Inner Loop Header: Depth=1 movl $16, -296(%rbp) movq _sock@GOTPCREL(%rip), %rax movl (%rax), %edi leaq -288(%rbp), %rsi leaq -24(%rbp), %r8 movl $255, %edx xorl %ecx, %ecx leaq -296(%rbp), %r9 callq _recvfrom ## kill: def $eax killed $eax killed $rax movl %eax, -300(%rbp) cmpl $0, -300(%rbp) jge LBB2_5 ## %bb.2: ## in Loop: Header=BB2_1 Depth=1 callq ___error cmpl $35, (%rax) je LBB2_4 ## %bb.3: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.7(%rip), %rsi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _fprintf movl $1, %edi callq _exit LBB2_4: ## in Loop: Header=BB2_1 Depth=1 jmp LBB2_8 LBB2_5: ## in Loop: Header=BB2_1 Depth=1 movl -20(%rbp), %edi callq _inet_ntoa movq %rax, %rsi leaq L_.str.8(%rip), %rdi movb $0, %al callq _printf movq _sock@GOTPCREL(%rip), %rax movl (%rax), %edi leaq -288(%rbp), %rsi movslq -300(%rbp), %rdx leaq -24(%rbp), %r8 xorl %ecx, %ecx movl $16, %r9d callq _sendto ## kill: def $eax killed $eax killed $rax movl %eax, -304(%rbp) movl -300(%rbp), %eax cmpl -304(%rbp), %eax je LBB2_7 ## %bb.6: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.9(%rip), %rsi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _fprintf movl $1, %edi callq _exit LBB2_7: ## in Loop: Header=BB2_1 Depth=1 jmp LBB2_8 LBB2_8: ## in Loop: Header=BB2_1 Depth=1 jmp LBB2_9 LBB2_9: ## in Loop: Header=BB2_1 Depth=1 cmpl $0, -300(%rbp) jge LBB2_1 ## %bb.10: movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB2_12 ## %bb.11: addq $304, %rsp ## imm = 0x130 popq %rbp retq LBB2_12: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _SendEchoMessage ## -- Begin function SendEchoMessage .p2align 4, 0x90 _SendEchoMessage: ## @SendEchoMessage .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $304, %rsp ## imm = 0x130 movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movq %rdi, -288(%rbp) leaq -272(%rbp), %rdi movq ___stdinp@GOTPCREL(%rip), %rax movq (%rax), %rdx movl $256, %esi ## imm = 0x100 callq _fgets cmpq $0, %rax jne LBB3_2 ## %bb.1: movl $-1, -276(%rbp) jmp LBB3_7 LBB3_2: leaq -272(%rbp), %rdi callq _strlen ## kill: def $eax killed $eax killed $rax movl %eax, -292(%rbp) cmpl $1, -292(%rbp) jge LBB3_4 ## %bb.3: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.10(%rip), %rsi movb $0, %al callq _fprintf movl $-1, -276(%rbp) jmp LBB3_7 LBB3_4: movq _sock@GOTPCREL(%rip), %rax movl (%rax), %edi leaq -272(%rbp), %rsi movslq -292(%rbp), %rdx movq -288(%rbp), %r8 xorl %ecx, %ecx movl $16, %r9d callq _sendto ## kill: def $eax killed $eax killed $rax movl %eax, -296(%rbp) movl -292(%rbp), %eax cmpl -296(%rbp), %eax je LBB3_6 ## %bb.5: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.11(%rip), %rsi movb $0, %al callq _fprintf movl $-1, -276(%rbp) jmp LBB3_7 LBB3_6: movl $0, -276(%rbp) LBB3_7: movl -276(%rbp), %eax movl %eax, -300(%rbp) ## 4-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB3_9 ## %bb.8: movl -300(%rbp), %eax ## 4-byte Reload addq $304, %rsp ## imm = 0x130 popq %rbp retq LBB3_9: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _ReceiveEchoMessage ## -- Begin function ReceiveEchoMessage .p2align 4, 0x90 _ReceiveEchoMessage: ## @ReceiveEchoMessage .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $320, %rsp ## imm = 0x140 movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movq %rdi, -304(%rbp) movl $16, -308(%rbp) movq _sock@GOTPCREL(%rip), %rax movl (%rax), %edi leaq -288(%rbp), %rsi leaq -24(%rbp), %r8 movl $255, %edx xorl %ecx, %ecx leaq -308(%rbp), %r9 callq _recvfrom ## kill: def $eax killed $eax killed $rax movl %eax, -312(%rbp) cmpl $0, -312(%rbp) jge LBB4_2 ## %bb.1: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.7(%rip), %rsi movb $0, %al callq _fprintf movl $-1, -292(%rbp) jmp LBB4_5 LBB4_2: movl -20(%rbp), %eax movq -304(%rbp), %rcx cmpl 4(%rcx), %eax je LBB4_4 ## %bb.3: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.12(%rip), %rsi movb $0, %al callq _fprintf movl $-1, -292(%rbp) jmp LBB4_5 LBB4_4: movslq -312(%rbp), %rax movb $0, -288(%rbp,%rax) leaq -288(%rbp), %rsi leaq L_.str.13(%rip), %rdi movb $0, %al callq _printf movl $0, -292(%rbp) LBB4_5: movl -292(%rbp), %eax movl %eax, -316(%rbp) ## 4-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB4_7 ## %bb.6: movl -316(%rbp), %eax ## 4-byte Reload addq $320, %rsp ## imm = 0x140 popq %rbp retq LBB4_7: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Usage: %s <Server IP> [<Echo Port>]\n" .comm _sock,4,2 ## @sock L_.str.1: ## @.str.1 .asciz "socket() failed\n" L_.str.2: ## @.str.2 .asciz "bind() failed\n" L_.str.3: ## @.str.3 .asciz "sigfillset() failed\n" L_.str.4: ## @.str.4 .asciz "sigaction() failed\n" L_.str.5: ## @.str.5 .asciz "Unable to set process owner to us\n" L_.str.6: ## @.str.6 .asciz "Unable to put the sock into nonblocking/async mode\n" L_.str.7: ## @.str.7 .asciz "recvfrom() failed\n" L_.str.8: ## @.str.8 .asciz "Handling client %s\n" L_.str.9: ## @.str.9 .asciz "sendto() sent a differrent number of bytes than expected\n" L_.str.10: ## @.str.10 .asciz "No input string.\n" L_.str.11: ## @.str.11 .asciz "sendto() sent a different number of bytes than expected\n" L_.str.12: ## @.str.12 .asciz "Error: received a packet from unknown source.\n" L_.str.13: ## @.str.13 .asciz "Received: %s\n" .subsections_via_symbols
the_stack_data/3262920.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .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@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov x9, sp sub x8, x29, #12 str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF str x0, [sp, #16] ; 8-byte Folded Spill bl _scanf adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf ldr x0, [sp, #16] ; 8-byte Folded Reload mov x9, sp sub x8, x29, #4 str x8, [x9] bl _scanf adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf ldr x0, [sp, #16] ; 8-byte Folded Reload mov x9, sp sub x8, x29, #8 str x8, [x9] bl _scanf ldur s0, [x29, #-12] bl _converterGrausEmRadianos stur s0, [x29, #-16] ldur s0, [x29, #-4] ldur s1, [x29, #-8] ldur s2, [x29, #-16] bl _areaDoTriangulo stur s0, [x29, #-20] ldur s0, [x29, #-20] fcvt d0, s0 mov x8, sp str d0, [x8] adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf mov w0, #0 ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _converterGrausEmRadianos ; -- Begin function converterGrausEmRadianos .p2align 2 _converterGrausEmRadianos: ; @converterGrausEmRadianos .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str s0, [sp, #12] mov w8, #4056 movk w8, #16457, lsl #16 fmov s0, w8 str s0, [sp, #8] ldr s1, [sp, #12] fmul s0, s0, s1 mov w8, #1127481344 fmov s1, w8 fdiv s0, s0, s1 add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _areaDoTriangulo ; -- Begin function areaDoTriangulo .p2align 2 _areaDoTriangulo: ; @areaDoTriangulo .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur s0, [x29, #-4] stur s1, [x29, #-8] stur s2, [x29, #-12] ldur s0, [x29, #-4] ldur s1, [x29, #-8] fmul s0, s0, s1 fcvt d0, s0 str d0, [sp, #8] ; 8-byte Folded Spill ldur s0, [x29, #-12] fcvt d0, s0 bl _sin fmov d1, d0 ldr d0, [sp, #8] ; 8-byte Folded Reload fmul d0, d0, d1 fmov d1, #2.00000000 fdiv d0, d0, d1 fcvt s0, d0 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 do angulo: " l_.str.1: ; @.str.1 .asciz "%f" l_.str.2: ; @.str.2 .asciz "Digite o valor do lado a: " l_.str.3: ; @.str.3 .asciz "Digite o valor do lado b: " l_.str.4: ; @.str.4 .asciz "Area do triangulo: %.2f" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp leaq L_.str(%rip), %rdi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi leaq -12(%rbp), %rsi movb $0, %al callq _scanf leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi leaq -4(%rbp), %rsi movb $0, %al callq _scanf leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi leaq -8(%rbp), %rsi movb $0, %al callq _scanf movss -12(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero callq _converterGrausEmRadianos movss %xmm0, -16(%rbp) movss -4(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss -8(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero movss -16(%rbp), %xmm2 ## xmm2 = mem[0],zero,zero,zero callq _areaDoTriangulo movss %xmm0, -20(%rbp) movss -20(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 leaq L_.str.4(%rip), %rdi movb $1, %al callq _printf xorl %eax, %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__literal4,4byte_literals .p2align 2 ## -- Begin function converterGrausEmRadianos LCPI1_0: .long 0x43340000 ## float 180 LCPI1_1: .long 0x40490fd8 ## float 3.14159203 .section __TEXT,__text,regular,pure_instructions .globl _converterGrausEmRadianos .p2align 4, 0x90 _converterGrausEmRadianos: ## @converterGrausEmRadianos .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movss %xmm0, -4(%rbp) movss LCPI1_1(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, -8(%rbp) movss LCPI1_1(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero mulss -4(%rbp), %xmm0 movss LCPI1_0(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero divss %xmm1, %xmm0 popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ## -- Begin function areaDoTriangulo LCPI2_0: .quad 0x4000000000000000 ## double 2 .section __TEXT,__text,regular,pure_instructions .globl _areaDoTriangulo .p2align 4, 0x90 _areaDoTriangulo: ## @areaDoTriangulo .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 movss %xmm0, -4(%rbp) movss %xmm1, -8(%rbp) movss %xmm2, -12(%rbp) movss -4(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero mulss -8(%rbp), %xmm0 cvtss2sd %xmm0, %xmm0 movsd %xmm0, -24(%rbp) ## 8-byte Spill movss -12(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 callq _sin movaps %xmm0, %xmm1 movsd -24(%rbp), %xmm0 ## 8-byte Reload ## xmm0 = mem[0],zero mulsd %xmm1, %xmm0 movsd LCPI2_0(%rip), %xmm1 ## xmm1 = mem[0],zero divsd %xmm1, %xmm0 cvtsd2ss %xmm0, %xmm0 addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Digite o valor do angulo: " L_.str.1: ## @.str.1 .asciz "%f" L_.str.2: ## @.str.2 .asciz "Digite o valor do lado a: " L_.str.3: ## @.str.3 .asciz "Digite o valor do lado b: " L_.str.4: ## @.str.4 .asciz "Area do triangulo: %.2f" .subsections_via_symbols
the_stack_data/97013438.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: mov w0, #0 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp xorl %eax, %eax popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/119582.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/242331354.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _init_win_params ; -- Begin function init_win_params .p2align 2 _init_win_params: ; @init_win_params .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] ldr x9, [sp, #8] mov w8, #5 str w8, [x9, #8] ldr x9, [sp, #8] mov w8, #10 str w8, [x9, #12] adrp x8, _LINES@GOTPAGE ldr x8, [x8, _LINES@GOTPAGEOFF] ldr w8, [x8] ldr x9, [sp, #8] ldr w9, [x9, #8] subs w8, w8, w9 mov w9, #2 sdiv w8, w8, w9 ldr x10, [sp, #8] str w8, [x10, #4] adrp x8, _COLS@GOTPAGE ldr x8, [x8, _COLS@GOTPAGEOFF] ldr w8, [x8] ldr x10, [sp, #8] ldr w10, [x10, #12] subs w8, w8, w10 sdiv w8, w8, w9 ldr x9, [sp, #8] str w8, [x9] ldr x9, [sp, #8] mov w8, #124 str w8, [x9, #16] ldr x9, [sp, #8] str w8, [x9, #20] ldr x9, [sp, #8] mov w8, #45 str w8, [x9, #24] ldr x9, [sp, #8] str w8, [x9, #28] ldr x9, [sp, #8] mov w8, #43 str w8, [x9, #32] ldr x9, [sp, #8] str w8, [x9, #36] ldr x9, [sp, #8] str w8, [x9, #40] ldr x9, [sp, #8] str w8, [x9, #44] add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _print_win_params ; -- Begin function print_win_params .p2align 2 _print_win_params: ; @print_win_params .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] ldr w8, [x8] ; implicit-def: $x12 mov x12, x8 ldur x8, [x29, #-8] ldr w8, [x8, #4] ; implicit-def: $x11 mov x11, x8 ldur x8, [x29, #-8] ldr w8, [x8, #12] ; implicit-def: $x10 mov x10, x8 ldur x8, [x29, #-8] ldr w9, [x8, #8] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x12, [x9] str x11, [x9, #8] str x10, [x9, #16] str x8, [x9, #24] mov w0, #25 mov w1, #0 adrp x2, l_.str@PAGE add x2, x2, l_.str@PAGEOFF bl _mvprintw adrp x8, _stdscr@GOTPAGE ldr x8, [x8, _stdscr@GOTPAGEOFF] ldr x0, [x8] bl _wrefresh ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _create_box ; -- Begin function create_box .p2align 2 _create_box: ; @create_box .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, _stdscr@GOTPAGE ldr x8, [x8, _stdscr@GOTPAGEOFF] str x8, [sp] ; 8-byte Folded Spill stur x0, [x29, #-8] mov w8, #1 and w8, w1, w8 sturb w8, [x29, #-9] ldur x8, [x29, #-8] ldr w8, [x8] stur w8, [x29, #-16] ldur x8, [x29, #-8] ldr w8, [x8, #4] stur w8, [x29, #-20] ldur x8, [x29, #-8] ldr w8, [x8, #12] str w8, [sp, #24] ldur x8, [x29, #-8] ldr w8, [x8, #8] str w8, [sp, #20] ldurb w8, [x29, #-9] and w8, w8, #0x1 subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB2_26 b LBB2_1 LBB2_1: ldr x8, [sp] ; 8-byte Folded Reload ldr x0, [x8] ldur w1, [x29, #-20] ldur w2, [x29, #-16] bl _wmove adds w8, w0, #1 cset w8, ne tbnz w8, #0, LBB2_3 b LBB2_2 LBB2_2: b LBB2_4 LBB2_3: ldr x8, [sp] ; 8-byte Folded Reload ldr x0, [x8] ldur x8, [x29, #-8] ldr w1, [x8, #32] bl _waddch b LBB2_4 LBB2_4: ldr x8, [sp] ; 8-byte Folded Reload ldr x0, [x8] ldur w1, [x29, #-20] ldur w8, [x29, #-16] ldr w9, [sp, #24] add w2, w8, w9 bl _wmove adds w8, w0, #1 cset w8, ne tbnz w8, #0, LBB2_6 b LBB2_5 LBB2_5: b LBB2_7 LBB2_6: ldr x8, [sp] ; 8-byte Folded Reload ldr x0, [x8] ldur x8, [x29, #-8] ldr w1, [x8, #36] bl _waddch b LBB2_7 LBB2_7: ldr x8, [sp] ; 8-byte Folded Reload ldr x0, [x8] ldur w8, [x29, #-20] ldr w9, [sp, #20] add w1, w8, w9 ldur w2, [x29, #-16] bl _wmove adds w8, w0, #1 cset w8, ne tbnz w8, #0, LBB2_9 b LBB2_8 LBB2_8: b LBB2_10 LBB2_9: ldr x8, [sp] ; 8-byte Folded Reload ldr x0, [x8] ldur x8, [x29, #-8] ldr w1, [x8, #40] bl _waddch b LBB2_10 LBB2_10: ldr x8, [sp] ; 8-byte Folded Reload ldr x0, [x8] ldur w8, [x29, #-20] ldr w9, [sp, #20] add w1, w8, w9 ldur w8, [x29, #-16] ldr w9, [sp, #24] add w2, w8, w9 bl _wmove adds w8, w0, #1 cset w8, ne tbnz w8, #0, LBB2_12 b LBB2_11 LBB2_11: b LBB2_13 LBB2_12: ldr x8, [sp] ; 8-byte Folded Reload ldr x0, [x8] ldur x8, [x29, #-8] ldr w1, [x8, #44] bl _waddch b LBB2_13 LBB2_13: ldr x8, [sp] ; 8-byte Folded Reload ldr x0, [x8] ldur w1, [x29, #-20] ldur w8, [x29, #-16] add w2, w8, #1 bl _wmove adds w8, w0, #1 cset w8, ne tbnz w8, #0, LBB2_15 b LBB2_14 LBB2_14: b LBB2_16 LBB2_15: ldr x8, [sp] ; 8-byte Folded Reload ldr x0, [x8] ldur x8, [x29, #-8] ldr w1, [x8, #24] ldr w8, [sp, #24] subs w2, w8, #1 bl _whline b LBB2_16 LBB2_16: ldr x8, [sp] ; 8-byte Folded Reload ldr x0, [x8] ldur w8, [x29, #-20] ldr w9, [sp, #20] add w1, w8, w9 ldur w8, [x29, #-16] add w2, w8, #1 bl _wmove adds w8, w0, #1 cset w8, ne tbnz w8, #0, LBB2_18 b LBB2_17 LBB2_17: b LBB2_19 LBB2_18: ldr x8, [sp] ; 8-byte Folded Reload ldr x0, [x8] ldur x8, [x29, #-8] ldr w1, [x8, #28] ldr w8, [sp, #24] subs w2, w8, #1 bl _whline b LBB2_19 LBB2_19: ldr x8, [sp] ; 8-byte Folded Reload ldr x0, [x8] ldur w8, [x29, #-20] add w1, w8, #1 ldur w2, [x29, #-16] bl _wmove adds w8, w0, #1 cset w8, ne tbnz w8, #0, LBB2_21 b LBB2_20 LBB2_20: b LBB2_22 LBB2_21: ldr x8, [sp] ; 8-byte Folded Reload ldr x0, [x8] ldur x8, [x29, #-8] ldr w1, [x8, #16] ldr w8, [sp, #20] subs w2, w8, #1 bl _wvline b LBB2_22 LBB2_22: ldr x8, [sp] ; 8-byte Folded Reload ldr x0, [x8] ldur w8, [x29, #-20] add w1, w8, #1 ldur w8, [x29, #-16] ldr w9, [sp, #24] add w2, w8, w9 bl _wmove adds w8, w0, #1 cset w8, ne tbnz w8, #0, LBB2_24 b LBB2_23 LBB2_23: b LBB2_25 LBB2_24: ldr x8, [sp] ; 8-byte Folded Reload ldr x0, [x8] ldur x8, [x29, #-8] ldr w1, [x8, #20] ldr w8, [sp, #20] subs w2, w8, #1 bl _wvline b LBB2_25 LBB2_25: b LBB2_38 LBB2_26: ldur w8, [x29, #-20] str w8, [sp, #16] b LBB2_27 LBB2_27: ; =>This Loop Header: Depth=1 ; Child Loop BB2_29 Depth 2 ldr w8, [sp, #16] ldur w9, [x29, #-20] ldr w10, [sp, #20] add w9, w9, w10 subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB2_37 b LBB2_28 LBB2_28: ; in Loop: Header=BB2_27 Depth=1 ldur w8, [x29, #-16] str w8, [sp, #12] b LBB2_29 LBB2_29: ; Parent Loop BB2_27 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #12] ldur w9, [x29, #-16] ldr w10, [sp, #24] add w9, w9, w10 subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB2_35 b LBB2_30 LBB2_30: ; in Loop: Header=BB2_29 Depth=2 ldr x8, [sp] ; 8-byte Folded Reload ldr x0, [x8] ldr w1, [sp, #16] ldr w2, [sp, #12] bl _wmove adds w8, w0, #1 cset w8, ne tbnz w8, #0, LBB2_32 b LBB2_31 LBB2_31: ; in Loop: Header=BB2_29 Depth=2 b LBB2_33 LBB2_32: ; in Loop: Header=BB2_29 Depth=2 ldr x8, [sp] ; 8-byte Folded Reload ldr x0, [x8] mov w1, #32 bl _waddch b LBB2_33 LBB2_33: ; in Loop: Header=BB2_29 Depth=2 b LBB2_34 LBB2_34: ; in Loop: Header=BB2_29 Depth=2 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB2_29 LBB2_35: ; in Loop: Header=BB2_27 Depth=1 b LBB2_36 LBB2_36: ; in Loop: Header=BB2_27 Depth=1 ldr w8, [sp, #16] add w8, w8, #1 str w8, [sp, #16] b LBB2_27 LBB2_37: b LBB2_38 LBB2_38: ldr x8, [sp] ; 8-byte Folded Reload ldr x0, [x8] bl _wrefresh ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #192 .cfi_def_cfa_offset 192 stp x29, x30, [sp, #176] ; 16-byte Folded Spill add x29, sp, #176 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, _stdscr@GOTPAGE ldr x8, [x8, _stdscr@GOTPAGEOFF] str x8, [sp, #80] ; 8-byte Folded Spill mov w8, #0 str w8, [sp, #76] ; 4-byte Folded Spill stur wzr, [x29, #-4] bl _initscr bl _start_color bl _cbreak ldr x8, [sp, #80] ; 8-byte Folded Reload ldr x0, [x8] mov w8, #1 stur w8, [x29, #-68] ; 4-byte Folded Spill and w1, w8, #0x1 bl _keypad bl _noecho ldr w2, [sp, #76] ; 4-byte Folded Reload ldur w0, [x29, #-68] ; 4-byte Folded Reload mov w1, #6 bl _init_pair sub x0, x29, #52 stur x0, [x29, #-64] ; 8-byte Folded Spill bl _init_win_params ldr x8, [sp, #80] ; 8-byte Folded Reload ldr x0, [x8] mov w1, #256 stur w1, [x29, #-84] ; 4-byte Folded Spill mov x2, #0 stur x2, [x29, #-80] ; 8-byte Folded Spill bl _wattr_on adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printw ldr x8, [sp, #80] ; 8-byte Folded Reload ldr x0, [x8] bl _wrefresh ldr x8, [sp, #80] ; 8-byte Folded Reload ldur w1, [x29, #-84] ; 4-byte Folded Reload ldur x2, [x29, #-80] ; 8-byte Folded Reload ldr x0, [x8] bl _wattr_off ldur w8, [x29, #-68] ; 4-byte Folded Reload ldur x0, [x29, #-64] ; 8-byte Folded Reload and w1, w8, #0x1 bl _create_box b LBB3_1 LBB3_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #80] ; 8-byte Folded Reload ldr x0, [x8] bl _wgetch stur w0, [x29, #-56] subs w8, w0, #113 cset w8, eq tbnz w8, #0, LBB3_9 b LBB3_2 LBB3_2: ; in Loop: Header=BB3_1 Depth=1 ldur w8, [x29, #-56] subs w8, w8, #258 ; kill: def $x8 killed $w8 str x8, [sp, #64] ; 8-byte Folded Spill subs x8, x8, #3 cset w8, hi tbnz w8, #0, LBB3_8 ; %bb.3: ; in Loop: Header=BB3_1 Depth=1 ldr x11, [sp, #64] ; 8-byte Folded Reload adrp x10, lJTI3_0@PAGE add x10, x10, lJTI3_0@PAGEOFF Ltmp1: adr x8, Ltmp1 ldrsw x9, [x10, x11, lsl #2] add x8, x8, x9 br x8 LBB3_4: ; in Loop: Header=BB3_1 Depth=1 sub x0, x29, #52 str x0, [sp, #48] ; 8-byte Folded Spill mov w8, #1 str w8, [sp, #60] ; 4-byte Folded Spill mov w8, #0 and w1, w8, #0x1 bl _create_box ldr x0, [sp, #48] ; 8-byte Folded Reload ldr w8, [sp, #60] ; 4-byte Folded Reload ldur w9, [x29, #-52] subs w9, w9, #1 stur w9, [x29, #-52] and w1, w8, #0x1 bl _create_box b LBB3_8 LBB3_5: ; in Loop: Header=BB3_1 Depth=1 sub x0, x29, #52 str x0, [sp, #32] ; 8-byte Folded Spill mov w8, #1 str w8, [sp, #44] ; 4-byte Folded Spill mov w8, #0 and w1, w8, #0x1 bl _create_box ldr x0, [sp, #32] ; 8-byte Folded Reload ldr w8, [sp, #44] ; 4-byte Folded Reload ldur w9, [x29, #-52] add w9, w9, #1 stur w9, [x29, #-52] and w1, w8, #0x1 bl _create_box b LBB3_8 LBB3_6: ; in Loop: Header=BB3_1 Depth=1 sub x0, x29, #52 str x0, [sp, #16] ; 8-byte Folded Spill mov w8, #1 str w8, [sp, #28] ; 4-byte Folded Spill mov w8, #0 and w1, w8, #0x1 bl _create_box ldr x0, [sp, #16] ; 8-byte Folded Reload ldr w8, [sp, #28] ; 4-byte Folded Reload ldur w9, [x29, #-48] subs w9, w9, #1 stur w9, [x29, #-48] and w1, w8, #0x1 bl _create_box b LBB3_8 LBB3_7: ; in Loop: Header=BB3_1 Depth=1 sub x0, x29, #52 str x0, [sp] ; 8-byte Folded Spill mov w8, #1 str w8, [sp, #12] ; 4-byte Folded Spill mov w8, #0 and w1, w8, #0x1 bl _create_box ldr x0, [sp] ; 8-byte Folded Reload ldr w8, [sp, #12] ; 4-byte Folded Reload ldur w9, [x29, #-48] add w9, w9, #1 stur w9, [x29, #-48] and w1, w8, #0x1 bl _create_box b LBB3_8 LBB3_8: ; in Loop: Header=BB3_1 Depth=1 b LBB3_1 LBB3_9: bl _endwin mov w0, #0 ldp x29, x30, [sp, #176] ; 16-byte Folded Reload add sp, sp, #192 ret .cfi_endproc .p2align 2 lJTI3_0: .long LBB3_7-Ltmp1 .long LBB3_6-Ltmp1 .long LBB3_4-Ltmp1 .long LBB3_5-Ltmp1 ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d %d %d %d" l_.str.1: ; @.str.1 .asciz "Press q to exit" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _init_win_params ## -- Begin function init_win_params .p2align 4, 0x90 _init_win_params: ## @init_win_params .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 $5, 8(%rax) movq -8(%rbp), %rax movl $10, 12(%rax) movq _LINES@GOTPCREL(%rip), %rax movl (%rax), %eax movq -8(%rbp), %rcx subl 8(%rcx), %eax movl $2, %ecx cltd idivl %ecx movl %eax, %ecx movq -8(%rbp), %rax movl %ecx, 4(%rax) movq _COLS@GOTPCREL(%rip), %rax movl (%rax), %eax movq -8(%rbp), %rcx subl 12(%rcx), %eax movl $2, %ecx cltd idivl %ecx movl %eax, %ecx movq -8(%rbp), %rax movl %ecx, (%rax) movq -8(%rbp), %rax movl $124, 16(%rax) movq -8(%rbp), %rax movl $124, 20(%rax) movq -8(%rbp), %rax movl $45, 24(%rax) movq -8(%rbp), %rax movl $45, 28(%rax) movq -8(%rbp), %rax movl $43, 32(%rax) movq -8(%rbp), %rax movl $43, 36(%rax) movq -8(%rbp), %rax movl $43, 40(%rax) movq -8(%rbp), %rax movl $43, 44(%rax) popq %rbp retq .cfi_endproc ## -- End function .globl _print_win_params ## -- Begin function print_win_params .p2align 4, 0x90 _print_win_params: ## @print_win_params .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) movq -8(%rbp), %rax movl (%rax), %ecx movq -8(%rbp), %rax movl 4(%rax), %r8d movq -8(%rbp), %rax movl 12(%rax), %r9d movq -8(%rbp), %rax movl 8(%rax), %eax movl $25, %edi xorl %esi, %esi leaq L_.str(%rip), %rdx movl %eax, (%rsp) movb $0, %al callq _mvprintw movq _stdscr@GOTPCREL(%rip), %rax movq (%rax), %rdi callq _wrefresh addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _create_box ## -- Begin function create_box .p2align 4, 0x90 _create_box: ## @create_box .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movb %sil, %al movq %rdi, -8(%rbp) andb $1, %al movb %al, -9(%rbp) movq -8(%rbp), %rax movl (%rax), %eax movl %eax, -16(%rbp) movq -8(%rbp), %rax movl 4(%rax), %eax movl %eax, -20(%rbp) movq -8(%rbp), %rax movl 12(%rax), %eax movl %eax, -24(%rbp) movq -8(%rbp), %rax movl 8(%rax), %eax movl %eax, -28(%rbp) movb -9(%rbp), %al andb $1, %al movzbl %al, %eax cmpl $1, %eax jne LBB2_26 ## %bb.1: movq _stdscr@GOTPCREL(%rip), %rax movq (%rax), %rdi movl -20(%rbp), %esi movl -16(%rbp), %edx callq _wmove cmpl $-1, %eax jne LBB2_3 ## %bb.2: jmp LBB2_4 LBB2_3: movq _stdscr@GOTPCREL(%rip), %rax movq (%rax), %rdi movq -8(%rbp), %rax movl 32(%rax), %esi callq _waddch LBB2_4: movq _stdscr@GOTPCREL(%rip), %rax movq (%rax), %rdi movl -20(%rbp), %esi movl -16(%rbp), %edx addl -24(%rbp), %edx callq _wmove cmpl $-1, %eax jne LBB2_6 ## %bb.5: jmp LBB2_7 LBB2_6: movq _stdscr@GOTPCREL(%rip), %rax movq (%rax), %rdi movq -8(%rbp), %rax movl 36(%rax), %esi callq _waddch LBB2_7: movq _stdscr@GOTPCREL(%rip), %rax movq (%rax), %rdi movl -20(%rbp), %esi addl -28(%rbp), %esi movl -16(%rbp), %edx callq _wmove cmpl $-1, %eax jne LBB2_9 ## %bb.8: jmp LBB2_10 LBB2_9: movq _stdscr@GOTPCREL(%rip), %rax movq (%rax), %rdi movq -8(%rbp), %rax movl 40(%rax), %esi callq _waddch LBB2_10: movq _stdscr@GOTPCREL(%rip), %rax movq (%rax), %rdi movl -20(%rbp), %esi addl -28(%rbp), %esi movl -16(%rbp), %edx addl -24(%rbp), %edx callq _wmove cmpl $-1, %eax jne LBB2_12 ## %bb.11: jmp LBB2_13 LBB2_12: movq _stdscr@GOTPCREL(%rip), %rax movq (%rax), %rdi movq -8(%rbp), %rax movl 44(%rax), %esi callq _waddch LBB2_13: movq _stdscr@GOTPCREL(%rip), %rax movq (%rax), %rdi movl -20(%rbp), %esi movl -16(%rbp), %edx addl $1, %edx callq _wmove cmpl $-1, %eax jne LBB2_15 ## %bb.14: jmp LBB2_16 LBB2_15: movq _stdscr@GOTPCREL(%rip), %rax movq (%rax), %rdi movq -8(%rbp), %rax movl 24(%rax), %esi movl -24(%rbp), %edx subl $1, %edx callq _whline LBB2_16: movq _stdscr@GOTPCREL(%rip), %rax movq (%rax), %rdi movl -20(%rbp), %esi addl -28(%rbp), %esi movl -16(%rbp), %edx addl $1, %edx callq _wmove cmpl $-1, %eax jne LBB2_18 ## %bb.17: jmp LBB2_19 LBB2_18: movq _stdscr@GOTPCREL(%rip), %rax movq (%rax), %rdi movq -8(%rbp), %rax movl 28(%rax), %esi movl -24(%rbp), %edx subl $1, %edx callq _whline LBB2_19: movq _stdscr@GOTPCREL(%rip), %rax movq (%rax), %rdi movl -20(%rbp), %esi addl $1, %esi movl -16(%rbp), %edx callq _wmove cmpl $-1, %eax jne LBB2_21 ## %bb.20: jmp LBB2_22 LBB2_21: movq _stdscr@GOTPCREL(%rip), %rax movq (%rax), %rdi movq -8(%rbp), %rax movl 16(%rax), %esi movl -28(%rbp), %edx subl $1, %edx callq _wvline LBB2_22: movq _stdscr@GOTPCREL(%rip), %rax movq (%rax), %rdi movl -20(%rbp), %esi addl $1, %esi movl -16(%rbp), %edx addl -24(%rbp), %edx callq _wmove cmpl $-1, %eax jne LBB2_24 ## %bb.23: jmp LBB2_25 LBB2_24: movq _stdscr@GOTPCREL(%rip), %rax movq (%rax), %rdi movq -8(%rbp), %rax movl 20(%rax), %esi movl -28(%rbp), %edx subl $1, %edx callq _wvline LBB2_25: jmp LBB2_38 LBB2_26: movl -20(%rbp), %eax movl %eax, -32(%rbp) LBB2_27: ## =>This Loop Header: Depth=1 ## Child Loop BB2_29 Depth 2 movl -32(%rbp), %eax movl -20(%rbp), %ecx addl -28(%rbp), %ecx cmpl %ecx, %eax jg LBB2_37 ## %bb.28: ## in Loop: Header=BB2_27 Depth=1 movl -16(%rbp), %eax movl %eax, -36(%rbp) LBB2_29: ## Parent Loop BB2_27 Depth=1 ## => This Inner Loop Header: Depth=2 movl -36(%rbp), %eax movl -16(%rbp), %ecx addl -24(%rbp), %ecx cmpl %ecx, %eax jg LBB2_35 ## %bb.30: ## in Loop: Header=BB2_29 Depth=2 movq _stdscr@GOTPCREL(%rip), %rax movq (%rax), %rdi movl -32(%rbp), %esi movl -36(%rbp), %edx callq _wmove cmpl $-1, %eax jne LBB2_32 ## %bb.31: ## in Loop: Header=BB2_29 Depth=2 jmp LBB2_33 LBB2_32: ## in Loop: Header=BB2_29 Depth=2 movq _stdscr@GOTPCREL(%rip), %rax movq (%rax), %rdi movl $32, %esi callq _waddch LBB2_33: ## in Loop: Header=BB2_29 Depth=2 ## %bb.34: ## in Loop: Header=BB2_29 Depth=2 movl -36(%rbp), %eax addl $1, %eax movl %eax, -36(%rbp) jmp LBB2_29 LBB2_35: ## in Loop: Header=BB2_27 Depth=1 jmp LBB2_36 LBB2_36: ## in Loop: Header=BB2_27 Depth=1 movl -32(%rbp), %eax addl $1, %eax movl %eax, -32(%rbp) jmp LBB2_27 LBB2_37: jmp LBB2_38 LBB2_38: movq _stdscr@GOTPCREL(%rip), %rax movq (%rax), %rdi callq _wrefresh addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $80, %rsp movl $0, -4(%rbp) callq _initscr callq _start_color callq _cbreak movq _stdscr@GOTPCREL(%rip), %rax movq (%rax), %rdi movl $1, %esi callq _keypad callq _noecho movl $1, %edi movl $6, %esi xorl %edx, %edx callq _init_pair leaq -56(%rbp), %rdi callq _init_win_params movq _stdscr@GOTPCREL(%rip), %rax movq (%rax), %rdi movl $256, %esi ## imm = 0x100 xorl %eax, %eax movl %eax, %edx callq _wattr_on leaq L_.str.1(%rip), %rdi movb $0, %al callq _printw movq _stdscr@GOTPCREL(%rip), %rax movq (%rax), %rdi callq _wrefresh movq _stdscr@GOTPCREL(%rip), %rax movq (%rax), %rdi movl $256, %esi ## imm = 0x100 xorl %eax, %eax movl %eax, %edx callq _wattr_off leaq -56(%rbp), %rdi movl $1, %esi callq _create_box LBB3_1: ## =>This Inner Loop Header: Depth=1 movq _stdscr@GOTPCREL(%rip), %rax movq (%rax), %rdi callq _wgetch movl %eax, -60(%rbp) cmpl $113, %eax je LBB3_8 ## %bb.2: ## in Loop: Header=BB3_1 Depth=1 movl -60(%rbp), %eax addl $-258, %eax ## imm = 0xFEFE movl %eax, %ecx movq %rcx, -72(%rbp) ## 8-byte Spill subl $3, %eax ja LBB3_7 ## %bb.9: ## in Loop: Header=BB3_1 Depth=1 movq -72(%rbp), %rax ## 8-byte Reload leaq LJTI3_0(%rip), %rcx movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax LBB3_3: ## in Loop: Header=BB3_1 Depth=1 leaq -56(%rbp), %rdi xorl %esi, %esi callq _create_box movl -56(%rbp), %eax addl $-1, %eax movl %eax, -56(%rbp) leaq -56(%rbp), %rdi movl $1, %esi callq _create_box jmp LBB3_7 LBB3_4: ## in Loop: Header=BB3_1 Depth=1 leaq -56(%rbp), %rdi xorl %esi, %esi callq _create_box movl -56(%rbp), %eax addl $1, %eax movl %eax, -56(%rbp) leaq -56(%rbp), %rdi movl $1, %esi callq _create_box jmp LBB3_7 LBB3_5: ## in Loop: Header=BB3_1 Depth=1 leaq -56(%rbp), %rdi xorl %esi, %esi callq _create_box movl -52(%rbp), %eax addl $-1, %eax movl %eax, -52(%rbp) leaq -56(%rbp), %rdi movl $1, %esi callq _create_box jmp LBB3_7 LBB3_6: ## in Loop: Header=BB3_1 Depth=1 leaq -56(%rbp), %rdi xorl %esi, %esi callq _create_box movl -52(%rbp), %eax addl $1, %eax movl %eax, -52(%rbp) leaq -56(%rbp), %rdi movl $1, %esi callq _create_box LBB3_7: ## in Loop: Header=BB3_1 Depth=1 jmp LBB3_1 LBB3_8: callq _endwin xorl %eax, %eax addq $80, %rsp popq %rbp retq .cfi_endproc .p2align 2, 0x90 .data_region jt32 .set L3_0_set_6, LBB3_6-LJTI3_0 .set L3_0_set_5, LBB3_5-LJTI3_0 .set L3_0_set_3, LBB3_3-LJTI3_0 .set L3_0_set_4, LBB3_4-LJTI3_0 LJTI3_0: .long L3_0_set_6 .long L3_0_set_5 .long L3_0_set_3 .long L3_0_set_4 .end_data_region ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d %d %d %d" L_.str.1: ## @.str.1 .asciz "Press q to exit" .subsections_via_symbols
the_stack_data/159514905.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _searchInsert ; -- Begin function searchInsert .p2align 2 _searchInsert: ; @searchInsert .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 str x0, [sp, #32] str w1, [sp, #28] str w2, [sp, #24] str wzr, [sp, #20] ldr w8, [sp, #28] str w8, [sp, #16] b LBB0_1 LBB0_1: ; =>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_9 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #20] ldr w9, [sp, #16] ldr w10, [sp, #20] subs w9, w9, w10 add w8, w8, w9 asr w8, w8, #1 str w8, [sp, #12] ldr x8, [sp, #32] ldrsw x9, [sp, #12] ldr w8, [x8, x9, lsl #2] ldr w9, [sp, #24] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #20] b LBB0_8 LBB0_4: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #32] ldrsw x9, [sp, #12] ldr w8, [x8, x9, lsl #2] ldr w9, [sp, #24] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #12] str w8, [sp, #16] b LBB0_7 LBB0_6: ldr w8, [sp, #12] str w8, [sp, #44] b LBB0_10 LBB0_7: ; in Loop: Header=BB0_1 Depth=1 b LBB0_8 LBB0_8: ; in Loop: Header=BB0_1 Depth=1 b LBB0_1 LBB0_9: ldr w8, [sp, #16] str w8, [sp, #44] b LBB0_10 LBB0_10: ldr w0, [sp, #44] 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 _searchInsert ## -- Begin function searchInsert .p2align 4, 0x90 _searchInsert: ## @searchInsert .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 %edx, -24(%rbp) movl $0, -28(%rbp) movl -20(%rbp), %eax movl %eax, -32(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movl -28(%rbp), %eax cmpl -32(%rbp), %eax jge LBB0_9 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl -28(%rbp), %eax movl -32(%rbp), %ecx subl -28(%rbp), %ecx addl %ecx, %eax sarl $1, %eax movl %eax, -36(%rbp) movq -16(%rbp), %rax movslq -36(%rbp), %rcx movl (%rax,%rcx,4), %eax cmpl -24(%rbp), %eax jge LBB0_4 ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movl -36(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) jmp LBB0_8 LBB0_4: ## in Loop: Header=BB0_1 Depth=1 movq -16(%rbp), %rax movslq -36(%rbp), %rcx movl (%rax,%rcx,4), %eax cmpl -24(%rbp), %eax jle LBB0_6 ## %bb.5: ## in Loop: Header=BB0_1 Depth=1 movl -36(%rbp), %eax movl %eax, -32(%rbp) jmp LBB0_7 LBB0_6: movl -36(%rbp), %eax movl %eax, -4(%rbp) jmp LBB0_10 LBB0_7: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_8 LBB0_8: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_1 LBB0_9: movl -32(%rbp), %eax movl %eax, -4(%rbp) LBB0_10: movl -4(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/4163.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/472946.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 add x8, sp, #16 str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _scanf ldr w8, [sp, #16] 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, #1 cset w8, lt tbnz w8, #0, LBB0_11 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, #16] subs w8, w8, w9 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, #-12] subs w8, w8, w9 cset w8, eq tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_3 Depth=2 ldr w8, [sp, #16] add w8, w8, #1 ldur w9, [x29, #-12] subs w10, w8, w9 mov x9, sp ; implicit-def: $x8 mov x8, x10 str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf b LBB0_7 LBB0_6: ; in Loop: Header=BB0_3 Depth=2 adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf b LBB0_7 LBB0_7: ; in Loop: Header=BB0_3 Depth=2 b LBB0_8 LBB0_8: ; in Loop: Header=BB0_3 Depth=2 ldur w8, [x29, #-12] add w8, w8, #1 stur w8, [x29, #-12] b LBB0_3 LBB0_9: ; in Loop: Header=BB0_1 Depth=1 adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf b LBB0_10 LBB0_10: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-8] subs w8, w8, #1 stur w8, [x29, #-8] b LBB0_1 LBB0_11: mov w0, #0 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d" l_.str.1: ; @.str.1 .asciz "*" l_.str.2: ; @.str.2 .asciz "\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) leaq L_.str(%rip), %rdi leaq -16(%rbp), %rsi movb $0, %al callq _scanf movl -16(%rbp), %eax movl %eax, -8(%rbp) LBB0_1: ## =>This Loop Header: Depth=1 ## Child Loop BB0_3 Depth 2 cmpl $1, -8(%rbp) jl LBB0_11 ## %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 -16(%rbp), %eax jg LBB0_9 ## %bb.4: ## in Loop: Header=BB0_3 Depth=2 movl -8(%rbp), %eax cmpl -12(%rbp), %eax je LBB0_6 ## %bb.5: ## in Loop: Header=BB0_3 Depth=2 movl -16(%rbp), %esi addl $1, %esi subl -12(%rbp), %esi leaq L_.str(%rip), %rdi movb $0, %al callq _printf jmp LBB0_7 LBB0_6: ## in Loop: Header=BB0_3 Depth=2 leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf LBB0_7: ## in Loop: Header=BB0_3 Depth=2 jmp LBB0_8 LBB0_8: ## in Loop: Header=BB0_3 Depth=2 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB0_3 LBB0_9: ## in Loop: Header=BB0_1 Depth=1 leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf ## %bb.10: ## in Loop: Header=BB0_1 Depth=1 movl -8(%rbp), %eax subl $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 "%d" L_.str.1: ## @.str.1 .asciz "*" L_.str.2: ## @.str.2 .asciz "\n" .subsections_via_symbols
the_stack_data/72013037.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #96 .cfi_def_cfa_offset 96 stp x29, x30, [sp, #80] ; 16-byte Folded Spill add x29, sp, #80 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] str wzr, [sp, #28] adrp x8, _ADC_samples@PAGE add x8, x8, _ADC_samples@PAGEOFF str x8, [sp, #16] str wzr, [sp, #12] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #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 ldr x8, [sp, #16] ldr s0, [x8] scvtf s0, s0 mov w8, #1166016512 fmov s1, w8 fdiv s0, s0, s1 fcvt d0, s0 fmov d2, #-1.50000000 fmov d1, #3.00000000 fmadd d0, d0, d1, d2 fcvt s0, d0 ldrsw x9, [sp, #12] add x8, sp, #32 str s0, [x8, x9, lsl #2] ldr x8, [sp, #16] add x8, x8, #4 str x8, [sp, #16] 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 s0, [sp, #32] fcvtzs w8, s0 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_6 b LBB0_5 LBB0_5: bl ___stack_chk_fail LBB0_6: ldr w0, [sp, #8] ; 4-byte Folded Reload ldp x29, x30, [sp, #80] ; 16-byte Folded Reload add sp, sp, #96 ret .cfi_endproc ; -- End function .section __DATA,__data .globl _ADC_samples ; @ADC_samples .p2align 2 _ADC_samples: .long 1522 ; 0x5f2 .long 1812 ; 0x714 .long 2177 ; 0x881 .long 2488 ; 0x9b8 .long 2472 ; 0x9a8 .long 0 ; 0x0 .long 512 ; 0x200 .long 1024 ; 0x400 .long 2048 ; 0x800 .long 4095 ; 0xfff .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __TEXT,__literal8,8byte_literals .p2align 3 ## -- Begin function main LCPI0_0: .quad 0x4008000000000000 ## double 3 LCPI0_1: .quad 0xbff8000000000000 ## double -1.5 .section __TEXT,__literal4,4byte_literals .p2align 2 LCPI0_2: .long 0x45800000 ## float 4096 .section __TEXT,__text,regular,pure_instructions .globl _main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $80, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -52(%rbp) leaq _ADC_samples(%rip), %rax movq %rax, -64(%rbp) movl $0, -68(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 cmpl $10, -68(%rbp) jge LBB0_4 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movq -64(%rbp), %rax cvtsi2ssl (%rax), %xmm0 movss LCPI0_2(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero divss %xmm1, %xmm0 cvtss2sd %xmm0, %xmm0 movsd LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero mulsd %xmm1, %xmm0 movsd LCPI0_1(%rip), %xmm1 ## xmm1 = mem[0],zero addsd %xmm1, %xmm0 cvtsd2ss %xmm0, %xmm0 movslq -68(%rbp), %rax movss %xmm0, -48(%rbp,%rax,4) movq -64(%rbp), %rax addq $4, %rax movq %rax, -64(%rbp) ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movl -68(%rbp), %eax addl $1, %eax movl %eax, -68(%rbp) jmp LBB0_1 LBB0_4: cvttss2si -48(%rbp), %eax movl %eax, -72(%rbp) ## 4-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_6 ## %bb.5: movl -72(%rbp), %eax ## 4-byte Reload addq $80, %rsp popq %rbp retq LBB0_6: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __DATA,__data .globl _ADC_samples ## @ADC_samples .p2align 4 _ADC_samples: .long 1522 ## 0x5f2 .long 1812 ## 0x714 .long 2177 ## 0x881 .long 2488 ## 0x9b8 .long 2472 ## 0x9a8 .long 0 ## 0x0 .long 512 ## 0x200 .long 1024 ## 0x400 .long 2048 ## 0x800 .long 4095 ## 0xfff .subsections_via_symbols
the_stack_data/70449407.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _next ; -- Begin function next .p2align 2 _next: ; @next .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 str x0, [sp, #56] str x1, [sp, #48] str x2, [sp, #40] str x3, [sp, #32] ldr x8, [sp, #56] ldr x10, [sp, #40] udiv x9, x8, x10 mul x9, x9, x10 subs x8, x8, x9 str x8, [sp, #24] ldr x8, [sp, #56] ldr x9, [sp, #40] udiv x8, x8, x9 str x8, [sp, #16] str xzr, [sp, #8] ldr x8, [sp, #24] subs x8, x8, #0 cset w8, ls tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: ldr x8, [sp, #56] subs x8, x8, #1 ldr x9, [sp, #48] ldr x10, [sp, #8] add x11, x10, #1 str x11, [sp, #8] str x8, [x9, x10, lsl #3] b LBB0_2 LBB0_2: ldr x8, [sp, #24] add x8, x8, #1 ldr x9, [sp, #40] subs x8, x8, x9 cset w8, hs tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: ldr x8, [sp, #56] add x8, x8, #1 ldr x9, [sp, #48] ldr x10, [sp, #8] add x11, x10, #1 str x11, [sp, #8] str x8, [x9, x10, lsl #3] b LBB0_4 LBB0_4: ldr x8, [sp, #16] subs x8, x8, #0 cset w8, ls tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: ldr x8, [sp, #56] ldr x9, [sp, #40] subs x8, x8, x9 ldr x9, [sp, #48] ldr x10, [sp, #8] add x11, x10, #1 str x11, [sp, #8] str x8, [x9, x10, lsl #3] b LBB0_6 LBB0_6: ldr x8, [sp, #16] add x8, x8, #1 ldr x9, [sp, #32] subs x8, x8, x9 cset w8, hs tbnz w8, #0, LBB0_8 b LBB0_7 LBB0_7: ldr x8, [sp, #56] ldr x9, [sp, #40] add x8, x8, x9 ldr x9, [sp, #48] ldr x10, [sp, #8] add x11, x10, #1 str x11, [sp, #8] str x8, [x9, x10, lsl #3] b LBB0_8 LBB0_8: ldr x0, [sp, #8] add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _read_grid ; -- Begin function read_grid .p2align 2 _read_grid: ; @read_grid .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] stur x1, [x29, #-16] str xzr, [sp, #24] b LBB1_1 LBB1_1: ; =>This Loop Header: Depth=1 ; Child Loop BB1_3 Depth 2 ldr x8, [sp, #24] subs x8, x8, #100 cset w8, hs tbnz w8, #0, LBB1_8 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 str xzr, [sp, #16] b LBB1_3 LBB1_3: ; Parent Loop BB1_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr x8, [sp, #16] subs x8, x8, #100 cset w8, hs tbnz w8, #0, LBB1_6 b LBB1_4 LBB1_4: ; in Loop: Header=BB1_3 Depth=2 ldur x0, [x29, #-16] bl _fgetc strb w0, [sp, #15] ldrsb w8, [sp, #15] subs w8, w8, #48 ldur x9, [x29, #-8] ldr x10, [sp, #24] mov x11, #100 mul x10, x10, x11 ldr x11, [sp, #16] add x10, x10, x11 strb w8, [x9, x10] b LBB1_5 LBB1_5: ; in Loop: Header=BB1_3 Depth=2 ldr x8, [sp, #16] add x8, x8, #1 str x8, [sp, #16] b LBB1_3 LBB1_6: ; in Loop: Header=BB1_1 Depth=1 ldur x0, [x29, #-16] bl _fgetc b LBB1_7 LBB1_7: ; in Loop: Header=BB1_1 Depth=1 ldr x8, [sp, #24] add x8, x8, #1 str x8, [sp, #24] b LBB1_1 LBB1_8: ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _dijkstra ; -- Begin function dijkstra .p2align 2 _dijkstra: ; @dijkstra .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, #240 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] stur x0, [x29, #-64] stur x1, [x29, #-72] stur x2, [x29, #-80] stur xzr, [x29, #-88] ldur x8, [x29, #-72] ldur x9, [x29, #-80] mul x8, x8, x9 mov x9, sp stur x9, [x29, #-96] lsr x9, x8, #0 add x9, x9, #15 and x9, x9, #0xfffffffffffffff0 stur x9, [x29, #-224] ; 8-byte Folded Spill adrp x16, ___chkstk_darwin@GOTPAGE ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF] blr x16 ldur x10, [x29, #-224] ; 8-byte Folded Reload mov x9, sp subs x9, x9, x10 mov sp, x9 stur x9, [x29, #-216] ; 8-byte Folded Spill stur x8, [x29, #-104] ldur x8, [x29, #-72] ldur x9, [x29, #-80] mul x8, x8, x9 lsl x9, x8, #3 add x9, x9, #15 and x9, x9, #0xfffffffffffffff0 stur x9, [x29, #-208] ; 8-byte Folded Spill adrp x16, ___chkstk_darwin@GOTPAGE ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF] blr x16 ldur x10, [x29, #-208] ; 8-byte Folded Reload mov x9, sp subs x9, x9, x10 mov sp, x9 stur x9, [x29, #-200] ; 8-byte Folded Spill stur x8, [x29, #-112] ldur x8, [x29, #-72] ldur x9, [x29, #-80] mul x8, x8, x9 lsl x9, x8, #3 add x9, x9, #15 and x9, x9, #0xfffffffffffffff0 stur x9, [x29, #-192] ; 8-byte Folded Spill adrp x16, ___chkstk_darwin@GOTPAGE ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF] blr x16 ldur x10, [x29, #-192] ; 8-byte Folded Reload mov x9, sp subs x9, x9, x10 mov sp, x9 stur x9, [x29, #-184] ; 8-byte Folded Spill stur x8, [x29, #-120] stur xzr, [x29, #-128] b LBB2_1 LBB2_1: ; =>This Inner Loop Header: Depth=1 ldur x8, [x29, #-128] ldur x9, [x29, #-72] ldur x10, [x29, #-80] mul x9, x9, x10 subs x8, x8, x9 cset w8, hs tbnz w8, #0, LBB2_4 b LBB2_2 LBB2_2: ; in Loop: Header=BB2_1 Depth=1 ldur x9, [x29, #-184] ; 8-byte Folded Reload ldur x10, [x29, #-200] ; 8-byte Folded Reload ldur x8, [x29, #-216] ; 8-byte Folded Reload ldur x11, [x29, #-128] add x11, x8, x11 mov w8, #1 strb w8, [x11] ldur x11, [x29, #-128] mov x8, #-1 str x8, [x10, x11, lsl #3] ldur x10, [x29, #-128] str x8, [x9, x10, lsl #3] b LBB2_3 LBB2_3: ; in Loop: Header=BB2_1 Depth=1 ldur x8, [x29, #-128] add x8, x8, #1 stur x8, [x29, #-128] b LBB2_1 LBB2_4: ldur x9, [x29, #-200] ; 8-byte Folded Reload ldur x10, [x29, #-88] mov x8, #0 str x8, [x9, x10, lsl #3] b LBB2_5 LBB2_5: ; =>This Loop Header: Depth=1 ; Child Loop BB2_7 Depth 2 ; Child Loop BB2_18 Depth 2 b LBB2_6 LBB2_6: ; in Loop: Header=BB2_5 Depth=1 mov w8, #1 sturb w8, [x29, #-129] stur xzr, [x29, #-144] stur xzr, [x29, #-152] b LBB2_7 LBB2_7: ; Parent Loop BB2_5 Depth=1 ; => This Inner Loop Header: Depth=2 ldur x8, [x29, #-152] ldur x9, [x29, #-72] ldur x10, [x29, #-80] mul x9, x9, x10 subs x8, x8, x9 cset w8, hs tbnz w8, #0, LBB2_15 b LBB2_8 LBB2_8: ; in Loop: Header=BB2_7 Depth=2 ldur x8, [x29, #-216] ; 8-byte Folded Reload ldur x9, [x29, #-152] add x8, x8, x9 ldrb w8, [x8] tbz w8, #0, LBB2_13 b LBB2_9 LBB2_9: ; in Loop: Header=BB2_7 Depth=2 ldur x8, [x29, #-216] ; 8-byte Folded Reload sturb wzr, [x29, #-129] ldur x9, [x29, #-144] add x8, x8, x9 ldrb w8, [x8] tbz w8, #0, LBB2_11 b LBB2_10 LBB2_10: ; in Loop: Header=BB2_7 Depth=2 ldur x9, [x29, #-200] ; 8-byte Folded Reload ldur x8, [x29, #-152] ldr x8, [x9, x8, lsl #3] ldur x10, [x29, #-144] ldr x9, [x9, x10, lsl #3] subs x8, x8, x9 cset w8, hs tbnz w8, #0, LBB2_12 b LBB2_11 LBB2_11: ; in Loop: Header=BB2_7 Depth=2 ldur x8, [x29, #-152] stur x8, [x29, #-144] b LBB2_12 LBB2_12: ; in Loop: Header=BB2_7 Depth=2 b LBB2_13 LBB2_13: ; in Loop: Header=BB2_7 Depth=2 b LBB2_14 LBB2_14: ; in Loop: Header=BB2_7 Depth=2 ldur x8, [x29, #-152] add x8, x8, #1 stur x8, [x29, #-152] b LBB2_7 LBB2_15: ; in Loop: Header=BB2_5 Depth=1 ldurb w8, [x29, #-129] tbz w8, #0, LBB2_17 b LBB2_16 LBB2_16: b LBB2_26 LBB2_17: ; in Loop: Header=BB2_5 Depth=1 ldur x8, [x29, #-216] ; 8-byte Folded Reload ldur x9, [x29, #-144] add x8, x8, x9 strb wzr, [x8] stur xzr, [x29, #-160] b LBB2_18 LBB2_18: ; Parent Loop BB2_5 Depth=1 ; => This Inner Loop Header: Depth=2 ldur x8, [x29, #-160] stur x8, [x29, #-232] ; 8-byte Folded Spill ldur x0, [x29, #-144] ldur x2, [x29, #-72] ldur x3, [x29, #-80] sub x1, x29, #56 bl _next ldur x8, [x29, #-232] ; 8-byte Folded Reload subs x8, x8, x0 cset w8, hs tbnz w8, #0, LBB2_25 b LBB2_19 LBB2_19: ; in Loop: Header=BB2_18 Depth=2 ldur x8, [x29, #-216] ; 8-byte Folded Reload ldur x10, [x29, #-160] sub x9, x29, #56 ldr x9, [x9, x10, lsl #3] stur x9, [x29, #-168] ldur x9, [x29, #-168] add x8, x8, x9 ldrb w8, [x8] tbz w8, #0, LBB2_23 b LBB2_20 LBB2_20: ; in Loop: Header=BB2_18 Depth=2 ldur x9, [x29, #-200] ; 8-byte Folded Reload ldur x8, [x29, #-144] ldr x8, [x9, x8, lsl #3] ldur x10, [x29, #-64] ldur x11, [x29, #-168] ldrsb x10, [x10, x11] add x8, x8, x10 stur x8, [x29, #-176] ldur x8, [x29, #-176] ldur x10, [x29, #-168] ldr x9, [x9, x10, lsl #3] subs x8, x8, x9 cset w8, hs tbnz w8, #0, LBB2_22 b LBB2_21 LBB2_21: ; in Loop: Header=BB2_18 Depth=2 ldur x9, [x29, #-184] ; 8-byte Folded Reload ldur x10, [x29, #-200] ; 8-byte Folded Reload ldur x8, [x29, #-176] ldur x11, [x29, #-168] str x8, [x10, x11, lsl #3] ldur x8, [x29, #-144] ldur x10, [x29, #-168] str x8, [x9, x10, lsl #3] b LBB2_22 LBB2_22: ; in Loop: Header=BB2_18 Depth=2 b LBB2_23 LBB2_23: ; in Loop: Header=BB2_18 Depth=2 b LBB2_24 LBB2_24: ; in Loop: Header=BB2_18 Depth=2 ldur x8, [x29, #-160] add x8, x8, #1 stur x8, [x29, #-160] b LBB2_18 LBB2_25: ; in Loop: Header=BB2_5 Depth=1 b LBB2_5 LBB2_26: ldur x8, [x29, #-200] ; 8-byte Folded Reload ldur x9, [x29, #-72] ldur x10, [x29, #-80] mul x9, x9, x10 subs x9, x9, #1 ldr x8, [x8, x9, lsl #3] stur x8, [x29, #-248] ; 8-byte Folded Spill ldur x8, [x29, #-96] stur x8, [x29, #-240] ; 8-byte Folded Spill ldur x9, [x29, #-24] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB2_28 b LBB2_27 LBB2_27: bl ___stack_chk_fail LBB2_28: ldur x0, [x29, #-248] ; 8-byte Folded Reload ldur x8, [x29, #-240] ; 8-byte Folded Reload mov sp, x8 sub sp, x29, #16 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x28, x27, [sp], #32 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: 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, #63472 movk w9, #3, lsl #16 adrp x16, ___chkstk_darwin@GOTPAGE ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF] blr x16 sub sp, sp, #63, lsl #12 ; =258048 sub sp, sp, #2032 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] str wzr, [sp, #68] 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, #56] ldr x1, [sp, #56] add x0, sp, #61, lsl #12 ; =249856 add x0, x0, #216 str x0, [sp, #16] ; 8-byte Folded Spill bl _read_grid ldr x0, [sp, #56] bl _fclose ldr x0, [sp, #16] ; 8-byte Folded Reload mov x2, #100 mov x1, x2 bl _dijkstra mov x8, sp str x0, [x8] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf str xzr, [sp, #48] b LBB3_1 LBB3_1: ; =>This Loop Header: Depth=1 ; Child Loop BB3_3 Depth 2 ; Child Loop BB3_5 Depth 3 ; Child Loop BB3_7 Depth 4 ldr x8, [sp, #48] subs x8, x8, #5 cset w8, hs tbnz w8, #0, LBB3_16 b LBB3_2 LBB3_2: ; in Loop: Header=BB3_1 Depth=1 str xzr, [sp, #40] b LBB3_3 LBB3_3: ; Parent Loop BB3_1 Depth=1 ; => This Loop Header: Depth=2 ; Child Loop BB3_5 Depth 3 ; Child Loop BB3_7 Depth 4 ldr x8, [sp, #40] subs x8, x8, #5 cset w8, hs tbnz w8, #0, LBB3_14 b LBB3_4 LBB3_4: ; in Loop: Header=BB3_3 Depth=2 str xzr, [sp, #32] b LBB3_5 LBB3_5: ; Parent Loop BB3_1 Depth=1 ; Parent Loop BB3_3 Depth=2 ; => This Loop Header: Depth=3 ; Child Loop BB3_7 Depth 4 ldr x8, [sp, #32] subs x8, x8, #100 cset w8, hs tbnz w8, #0, LBB3_12 b LBB3_6 LBB3_6: ; in Loop: Header=BB3_5 Depth=3 str xzr, [sp, #24] b LBB3_7 LBB3_7: ; Parent Loop BB3_1 Depth=1 ; Parent Loop BB3_3 Depth=2 ; Parent Loop BB3_5 Depth=3 ; => This Inner Loop Header: Depth=4 ldr x8, [sp, #24] subs x8, x8, #100 cset w8, hs tbnz w8, #0, LBB3_10 b LBB3_8 LBB3_8: ; in Loop: Header=BB3_7 Depth=4 ldr x8, [sp, #32] mov x11, #100 mul x8, x8, x11 ldr x9, [sp, #24] add x9, x8, x9 add x8, sp, #61, lsl #12 ; =249856 add x8, x8, #216 ldrsb x8, [x8, x9] ldr x9, [sp, #40] add x8, x8, x9 ldr x9, [sp, #48] add x8, x8, x9 subs x8, x8, #1 mov x10, #9 udiv x9, x8, x10 mul x9, x9, x10 subs x8, x8, x9 add x8, x8, #1 ldr x9, [sp, #32] ldr x10, [sp, #48] mul x10, x11, x10 add x9, x9, x10 mul x9, x9, x11 mov x10, #5 mul x9, x9, x10 ldr x10, [sp, #24] ldr x12, [sp, #40] mul x11, x11, x12 add x10, x10, x11 add x10, x9, x10 add x9, sp, #72 ; kill: def $w8 killed $w8 killed $x8 strb w8, [x9, x10] b LBB3_9 LBB3_9: ; in Loop: Header=BB3_7 Depth=4 ldr x8, [sp, #24] add x8, x8, #1 str x8, [sp, #24] b LBB3_7 LBB3_10: ; in Loop: Header=BB3_5 Depth=3 b LBB3_11 LBB3_11: ; in Loop: Header=BB3_5 Depth=3 ldr x8, [sp, #32] add x8, x8, #1 str x8, [sp, #32] b LBB3_5 LBB3_12: ; in Loop: Header=BB3_3 Depth=2 b LBB3_13 LBB3_13: ; in Loop: Header=BB3_3 Depth=2 ldr x8, [sp, #40] add x8, x8, #1 str x8, [sp, #40] b LBB3_3 LBB3_14: ; in Loop: Header=BB3_1 Depth=1 b LBB3_15 LBB3_15: ; in Loop: Header=BB3_1 Depth=1 ldr x8, [sp, #48] add x8, x8, #1 str x8, [sp, #48] b LBB3_1 LBB3_16: add x0, sp, #72 mov x2, #500 mov x1, x2 bl _dijkstra mov x8, sp str x0, [x8] 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, LBB3_18 b LBB3_17 LBB3_17: bl ___stack_chk_fail LBB3_18: mov w0, #0 add sp, sp, #63, lsl #12 ; =258048 add sp, sp, #2032 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x28, x27, [sp], #32 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "input/day-15.input" l_.str.1: ; @.str.1 .asciz "r" l_.str.2: ; @.str.2 .asciz "PART 1: %lu\n" l_.str.3: ; @.str.3 .asciz "PART 2: %lu\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _next ## -- Begin function next .p2align 4, 0x90 _next: ## @next .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 %rcx, -32(%rbp) movq -8(%rbp), %rax xorl %ecx, %ecx movl %ecx, %edx divq -24(%rbp) movq %rdx, -40(%rbp) movq -8(%rbp), %rax xorl %ecx, %ecx movl %ecx, %edx divq -24(%rbp) movq %rax, -48(%rbp) movq $0, -56(%rbp) cmpq $0, -40(%rbp) jbe LBB0_2 ## %bb.1: movq -8(%rbp), %rdx subq $1, %rdx movq -16(%rbp), %rax movq -56(%rbp), %rcx movq %rcx, %rsi addq $1, %rsi movq %rsi, -56(%rbp) movq %rdx, (%rax,%rcx,8) LBB0_2: movq -40(%rbp), %rax addq $1, %rax cmpq -24(%rbp), %rax jae LBB0_4 ## %bb.3: movq -8(%rbp), %rdx addq $1, %rdx movq -16(%rbp), %rax movq -56(%rbp), %rcx movq %rcx, %rsi addq $1, %rsi movq %rsi, -56(%rbp) movq %rdx, (%rax,%rcx,8) LBB0_4: cmpq $0, -48(%rbp) jbe LBB0_6 ## %bb.5: movq -8(%rbp), %rdx subq -24(%rbp), %rdx movq -16(%rbp), %rax movq -56(%rbp), %rcx movq %rcx, %rsi addq $1, %rsi movq %rsi, -56(%rbp) movq %rdx, (%rax,%rcx,8) LBB0_6: movq -48(%rbp), %rax addq $1, %rax cmpq -32(%rbp), %rax jae LBB0_8 ## %bb.7: movq -8(%rbp), %rdx addq -24(%rbp), %rdx movq -16(%rbp), %rax movq -56(%rbp), %rcx movq %rcx, %rsi addq $1, %rsi movq %rsi, -56(%rbp) movq %rdx, (%rax,%rcx,8) LBB0_8: movq -56(%rbp), %rax popq %rbp retq .cfi_endproc ## -- End function .globl _read_grid ## -- Begin function read_grid .p2align 4, 0x90 _read_grid: ## @read_grid .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) movq $0, -24(%rbp) LBB1_1: ## =>This Loop Header: Depth=1 ## Child Loop BB1_3 Depth 2 cmpq $100, -24(%rbp) jae LBB1_8 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 movq $0, -32(%rbp) LBB1_3: ## Parent Loop BB1_1 Depth=1 ## => This Inner Loop Header: Depth=2 cmpq $100, -32(%rbp) jae LBB1_6 ## %bb.4: ## in Loop: Header=BB1_3 Depth=2 movq -16(%rbp), %rdi callq _fgetc ## kill: def $al killed $al killed $eax movb %al, -33(%rbp) movsbl -33(%rbp), %eax subl $48, %eax movb %al, %dl movq -8(%rbp), %rax imulq $100, -24(%rbp), %rcx addq -32(%rbp), %rcx movb %dl, (%rax,%rcx) ## %bb.5: ## in Loop: Header=BB1_3 Depth=2 movq -32(%rbp), %rax addq $1, %rax movq %rax, -32(%rbp) jmp LBB1_3 LBB1_6: ## in Loop: Header=BB1_1 Depth=1 movq -16(%rbp), %rdi callq _fgetc ## %bb.7: ## in Loop: Header=BB1_1 Depth=1 movq -24(%rbp), %rax addq $1, %rax movq %rax, -24(%rbp) jmp LBB1_1 LBB1_8: addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _dijkstra ## -- Begin function dijkstra .p2align 4, 0x90 _dijkstra: ## @dijkstra .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) movq %rdi, -56(%rbp) movq %rsi, -64(%rbp) movq %rdx, -72(%rbp) movq $0, -80(%rbp) movq -64(%rbp), %rax movq -72(%rbp), %rcx imulq %rcx, %rax movq %rax, -216(%rbp) ## 8-byte Spill movq %rsp, %rcx movq %rcx, -88(%rbp) callq ____chkstk_darwin addq $15, %rax andq $-16, %rax subq %rax, %rsp movq -216(%rbp), %rax ## 8-byte Reload movq %rsp, %rcx movq %rcx, -208(%rbp) ## 8-byte Spill movq %rax, -96(%rbp) movq -64(%rbp), %rax movq -72(%rbp), %rcx imulq %rcx, %rax movq %rax, -200(%rbp) ## 8-byte Spill shlq $3, %rax callq ____chkstk_darwin addq $15, %rax andq $-16, %rax subq %rax, %rsp movq -200(%rbp), %rax ## 8-byte Reload movq %rsp, %rcx movq %rcx, -192(%rbp) ## 8-byte Spill movq %rax, -104(%rbp) movq -64(%rbp), %rax movq -72(%rbp), %rcx imulq %rcx, %rax movq %rax, -184(%rbp) ## 8-byte Spill shlq $3, %rax callq ____chkstk_darwin addq $15, %rax andq $-16, %rax subq %rax, %rsp movq -184(%rbp), %rax ## 8-byte Reload movq %rsp, %rcx movq %rcx, -176(%rbp) ## 8-byte Spill movq %rax, -112(%rbp) movq $0, -120(%rbp) LBB2_1: ## =>This Inner Loop Header: Depth=1 movq -120(%rbp), %rax movq -64(%rbp), %rcx imulq -72(%rbp), %rcx cmpq %rcx, %rax jae LBB2_4 ## %bb.2: ## in Loop: Header=BB2_1 Depth=1 movq -176(%rbp), %rax ## 8-byte Reload movq -192(%rbp), %rcx ## 8-byte Reload movq -208(%rbp), %rdx ## 8-byte Reload movq -120(%rbp), %rsi movb $1, (%rdx,%rsi) movq -120(%rbp), %rdx movq $-1, (%rcx,%rdx,8) movq -120(%rbp), %rcx movq $-1, (%rax,%rcx,8) ## %bb.3: ## in Loop: Header=BB2_1 Depth=1 movq -120(%rbp), %rax addq $1, %rax movq %rax, -120(%rbp) jmp LBB2_1 LBB2_4: movq -192(%rbp), %rax ## 8-byte Reload movq -80(%rbp), %rcx movq $0, (%rax,%rcx,8) LBB2_5: ## =>This Loop Header: Depth=1 ## Child Loop BB2_7 Depth 2 ## Child Loop BB2_18 Depth 2 jmp LBB2_6 LBB2_6: ## in Loop: Header=BB2_5 Depth=1 movb $1, -121(%rbp) movq $0, -136(%rbp) movq $0, -144(%rbp) LBB2_7: ## Parent Loop BB2_5 Depth=1 ## => This Inner Loop Header: Depth=2 movq -144(%rbp), %rax movq -64(%rbp), %rcx imulq -72(%rbp), %rcx cmpq %rcx, %rax jae LBB2_15 ## %bb.8: ## in Loop: Header=BB2_7 Depth=2 movq -208(%rbp), %rax ## 8-byte Reload movq -144(%rbp), %rcx testb $1, (%rax,%rcx) je LBB2_13 ## %bb.9: ## in Loop: Header=BB2_7 Depth=2 movq -208(%rbp), %rax ## 8-byte Reload movb $0, -121(%rbp) movq -136(%rbp), %rcx testb $1, (%rax,%rcx) je LBB2_11 ## %bb.10: ## in Loop: Header=BB2_7 Depth=2 movq -192(%rbp), %rcx ## 8-byte Reload movq -144(%rbp), %rax movq (%rcx,%rax,8), %rax movq -136(%rbp), %rdx cmpq (%rcx,%rdx,8), %rax jae LBB2_12 LBB2_11: ## in Loop: Header=BB2_7 Depth=2 movq -144(%rbp), %rax movq %rax, -136(%rbp) LBB2_12: ## in Loop: Header=BB2_7 Depth=2 jmp LBB2_13 LBB2_13: ## in Loop: Header=BB2_7 Depth=2 jmp LBB2_14 LBB2_14: ## in Loop: Header=BB2_7 Depth=2 movq -144(%rbp), %rax addq $1, %rax movq %rax, -144(%rbp) jmp LBB2_7 LBB2_15: ## in Loop: Header=BB2_5 Depth=1 testb $1, -121(%rbp) je LBB2_17 ## %bb.16: jmp LBB2_26 LBB2_17: ## in Loop: Header=BB2_5 Depth=1 movq -208(%rbp), %rax ## 8-byte Reload movq -136(%rbp), %rcx movb $0, (%rax,%rcx) movq $0, -152(%rbp) LBB2_18: ## Parent Loop BB2_5 Depth=1 ## => This Inner Loop Header: Depth=2 movq -152(%rbp), %rax movq %rax, -224(%rbp) ## 8-byte Spill movq -136(%rbp), %rdi leaq -48(%rbp), %rsi movq -64(%rbp), %rdx movq -72(%rbp), %rcx callq _next movq %rax, %rcx movq -224(%rbp), %rax ## 8-byte Reload cmpq %rcx, %rax jae LBB2_25 ## %bb.19: ## in Loop: Header=BB2_18 Depth=2 movq -208(%rbp), %rax ## 8-byte Reload movq -152(%rbp), %rcx movq -48(%rbp,%rcx,8), %rcx movq %rcx, -160(%rbp) movq -160(%rbp), %rcx testb $1, (%rax,%rcx) je LBB2_23 ## %bb.20: ## in Loop: Header=BB2_18 Depth=2 movq -192(%rbp), %rcx ## 8-byte Reload movq -136(%rbp), %rax movq (%rcx,%rax,8), %rax movq -56(%rbp), %rdx movq -160(%rbp), %rsi movsbq (%rdx,%rsi), %rdx addq %rdx, %rax movq %rax, -168(%rbp) movq -168(%rbp), %rax movq -160(%rbp), %rdx cmpq (%rcx,%rdx,8), %rax jae LBB2_22 ## %bb.21: ## in Loop: Header=BB2_18 Depth=2 movq -176(%rbp), %rax ## 8-byte Reload movq -192(%rbp), %rcx ## 8-byte Reload movq -168(%rbp), %rsi movq -160(%rbp), %rdx movq %rsi, (%rcx,%rdx,8) movq -136(%rbp), %rdx movq -160(%rbp), %rcx movq %rdx, (%rax,%rcx,8) LBB2_22: ## in Loop: Header=BB2_18 Depth=2 jmp LBB2_23 LBB2_23: ## in Loop: Header=BB2_18 Depth=2 jmp LBB2_24 LBB2_24: ## in Loop: Header=BB2_18 Depth=2 movq -152(%rbp), %rax addq $1, %rax movq %rax, -152(%rbp) jmp LBB2_18 LBB2_25: ## in Loop: Header=BB2_5 Depth=1 jmp LBB2_5 LBB2_26: movq -192(%rbp), %rax ## 8-byte Reload movq -64(%rbp), %rcx imulq -72(%rbp), %rcx subq $1, %rcx movq (%rax,%rcx,8), %rax movq %rax, -232(%rbp) ## 8-byte Spill movq -88(%rbp), %rax movq %rax, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB2_28 ## %bb.27: movq -232(%rbp), %rax ## 8-byte Reload movq %rbp, %rsp popq %rbp retq LBB2_28: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl $260064, %eax ## imm = 0x3F7E0 callq ____chkstk_darwin subq %rax, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -260020(%rbp) leaq L_.str(%rip), %rdi leaq L_.str.1(%rip), %rsi callq _fopen movq %rax, -260032(%rbp) leaq -10016(%rbp), %rdi movq -260032(%rbp), %rsi callq _read_grid movq -260032(%rbp), %rdi callq _fclose leaq -10016(%rbp), %rdi movl $100, %edx movq %rdx, %rsi callq _dijkstra movq %rax, %rsi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf movq $0, -260040(%rbp) LBB3_1: ## =>This Loop Header: Depth=1 ## Child Loop BB3_3 Depth 2 ## Child Loop BB3_5 Depth 3 ## Child Loop BB3_7 Depth 4 cmpq $5, -260040(%rbp) jae LBB3_16 ## %bb.2: ## in Loop: Header=BB3_1 Depth=1 movq $0, -260048(%rbp) LBB3_3: ## Parent Loop BB3_1 Depth=1 ## => This Loop Header: Depth=2 ## Child Loop BB3_5 Depth 3 ## Child Loop BB3_7 Depth 4 cmpq $5, -260048(%rbp) jae LBB3_14 ## %bb.4: ## in Loop: Header=BB3_3 Depth=2 movq $0, -260056(%rbp) LBB3_5: ## Parent Loop BB3_1 Depth=1 ## Parent Loop BB3_3 Depth=2 ## => This Loop Header: Depth=3 ## Child Loop BB3_7 Depth 4 cmpq $100, -260056(%rbp) jae LBB3_12 ## %bb.6: ## in Loop: Header=BB3_5 Depth=3 movq $0, -260064(%rbp) LBB3_7: ## Parent Loop BB3_1 Depth=1 ## Parent Loop BB3_3 Depth=2 ## Parent Loop BB3_5 Depth=3 ## => This Inner Loop Header: Depth=4 cmpq $100, -260064(%rbp) jae LBB3_10 ## %bb.8: ## in Loop: Header=BB3_7 Depth=4 imulq $100, -260056(%rbp), %rax addq -260064(%rbp), %rax movsbq -10016(%rbp,%rax), %rax addq -260048(%rbp), %rax addq -260040(%rbp), %rax subq $1, %rax movl $9, %ecx xorl %edx, %edx ## kill: def $rdx killed $edx divq %rcx addq $1, %rdx movb %dl, %cl movq -260056(%rbp), %rax imulq $100, -260040(%rbp), %rdx addq %rdx, %rax imulq $100, %rax, %rax imulq $5, %rax, %rax movq -260064(%rbp), %rdx imulq $100, -260048(%rbp), %rsi addq %rsi, %rdx addq %rdx, %rax movb %cl, -260016(%rbp,%rax) ## %bb.9: ## in Loop: Header=BB3_7 Depth=4 movq -260064(%rbp), %rax addq $1, %rax movq %rax, -260064(%rbp) jmp LBB3_7 LBB3_10: ## in Loop: Header=BB3_5 Depth=3 jmp LBB3_11 LBB3_11: ## in Loop: Header=BB3_5 Depth=3 movq -260056(%rbp), %rax addq $1, %rax movq %rax, -260056(%rbp) jmp LBB3_5 LBB3_12: ## in Loop: Header=BB3_3 Depth=2 jmp LBB3_13 LBB3_13: ## in Loop: Header=BB3_3 Depth=2 movq -260048(%rbp), %rax addq $1, %rax movq %rax, -260048(%rbp) jmp LBB3_3 LBB3_14: ## in Loop: Header=BB3_1 Depth=1 jmp LBB3_15 LBB3_15: ## in Loop: Header=BB3_1 Depth=1 movq -260040(%rbp), %rax addq $1, %rax movq %rax, -260040(%rbp) jmp LBB3_1 LBB3_16: leaq -260016(%rbp), %rdi movl $500, %edx ## imm = 0x1F4 movq %rdx, %rsi callq _dijkstra movq %rax, %rsi 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 LBB3_18 ## %bb.17: xorl %eax, %eax addq $260064, %rsp ## imm = 0x3F7E0 popq %rbp retq LBB3_18: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "input/day-15.input" L_.str.1: ## @.str.1 .asciz "r" L_.str.2: ## @.str.2 .asciz "PART 1: %lu\n" L_.str.3: ## @.str.3 .asciz "PART 2: %lu\n" .subsections_via_symbols
the_stack_data/840681.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _addition ; -- Begin function addition .p2align 2 _addition: ; @addition .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur s0, [x29, #-4] stur w0, [x29, #-8] ldur s0, [x29, #-4] fcvt d0, s0 ldur w9, [x29, #-8] ; implicit-def: $x8 mov x8, x9 mov x9, sp str d0, [x9] str x8, [x9, #8] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldur s0, [x29, #-4] ldur s1, [x29, #-8] scvtf s1, s1 fadd s0, s0, s1 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #0 str w8, [sp, #8] ; 4-byte Folded Spill stur wzr, [x29, #-4] bl _run 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 "a=%f b=%d\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _addition ## -- Begin function addition .p2align 4, 0x90 _addition: ## @addition .cfi_startproc ## %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) movl %edi, -8(%rbp) movss -4(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movl -8(%rbp), %esi leaq L_.str(%rip), %rdi movb $1, %al callq _printf movss -4(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtsi2ssl -8(%rbp), %xmm1 addss %xmm1, %xmm0 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) movb $0, %al callq _run xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "a=%f b=%d\n" .subsections_via_symbols
the_stack_data/68886760.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _avg ; -- Begin function avg .p2align 2 _avg: ; @avg .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, #24] mov w8, #2 str w8, [sp, #20] str wzr, [sp, #12] str wzr, [sp, #16] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #16] subs w8, w8, #2 cset w8, ge tbnz w8, #0, LBB0_4 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #24] ldrsw x9, [sp, #16] ldr w9, [x8, x9, lsl #2] ldr w8, [sp, #12] add w8, w8, w9 str w8, [sp, #12] b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #16] add w8, w8, #1 str w8, [sp, #16] b LBB0_1 LBB0_4: ldr w0, [sp, #12] add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _arrcpy ; -- Begin function arrcpy .p2align 2 _arrcpy: ; @arrcpy .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] str x1, [sp] ldr x8, [sp] ldr w8, [x8] ldr x9, [sp, #8] str w8, [x9] add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _len ; -- Begin function len .p2align 2 _len: ; @len .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, #24] str wzr, [sp, #20] ldr x8, [sp, #24] str x8, [sp, #8] b LBB2_1 LBB2_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #8] ldrsw x9, [sp, #20] ldrsw x8, [x8, x9, lsl #2] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB2_3 b LBB2_2 LBB2_2: ldr w0, [sp, #20] add sp, sp, #32 ret LBB2_3: ; in Loop: Header=BB2_1 Depth=1 ldr w8, [sp, #20] add w8, w8, #1 str w8, [sp, #20] b LBB2_1 .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _avg ## -- Begin function avg .p2align 4, 0x90 _avg: ## @avg .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 $2, -12(%rbp) movl $0, -20(%rbp) movl $0, -16(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 cmpl $2, -16(%rbp) jge LBB0_4 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movq -8(%rbp), %rax movslq -16(%rbp), %rcx movl (%rax,%rcx,4), %eax addl -20(%rbp), %eax movl %eax, -20(%rbp) ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movl -16(%rbp), %eax addl $1, %eax movl %eax, -16(%rbp) jmp LBB0_1 LBB0_4: movl -20(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .globl _arrcpy ## -- Begin function arrcpy .p2align 4, 0x90 _arrcpy: ## @arrcpy .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) movq -16(%rbp), %rax movl (%rax), %ecx movq -8(%rbp), %rax movl %ecx, (%rax) popq %rbp retq .cfi_endproc ## -- End function .globl _len ## -- Begin function len .p2align 4, 0x90 _len: ## @len .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) movl $0, -12(%rbp) movq -8(%rbp), %rax movq %rax, -24(%rbp) LBB2_1: ## =>This Inner Loop Header: Depth=1 movq -24(%rbp), %rax movslq -12(%rbp), %rcx movslq (%rax,%rcx,4), %rax cmpq $0, %rax jne LBB2_3 ## %bb.2: movl -12(%rbp), %eax popq %rbp retq LBB2_3: ## in Loop: Header=BB2_1 Depth=1 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB2_1 .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/774665.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #96 .cfi_def_cfa_offset 96 stp x29, x30, [sp, #80] ; 16-byte Folded Spill add x29, sp, #80 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #0 str w8, [sp, #28] ; 4-byte Folded Spill stur wzr, [x29, #-4] stur w0, [x29, #-8] stur x1, [x29, #-16] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov x9, sp add x8, sp, #40 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 x0, [sp, #16] ; 8-byte Folded Reload ldr x8, [sp, #40] ldr x9, [sp, #40] add x9, x9, #1 mul x8, x8, x9 mov x9, #2 sdiv x8, x8, x9 stur x8, [x29, #-32] ldr x8, [sp, #40] ldr x10, [sp, #40] add x10, x10, #1 mul x8, x8, x10 ldr x10, [sp, #40] mul x9, x9, x10 add x9, x9, #1 mul x8, x8, x9 mov x9, #6 sdiv x8, x8, x9 stur x8, [x29, #-24] ldur x8, [x29, #-24] ldur x9, [x29, #-32] ldur x10, [x29, #-32] mul x9, x9, x10 subs x8, x8, x9 str x8, [sp, #32] ldr x8, [sp, #32] mov x9, sp str x8, [x9] bl _printf ldr w0, [sp, #28] ; 4-byte Folded Reload ldp x29, x30, [sp, #80] ; 16-byte Folded Reload add sp, sp, #96 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Enter the number:" l_.str.1: ; @.str.1 .asciz "%ld" .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) leaq L_.str(%rip), %rdi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi leaq -40(%rbp), %rsi movb $0, %al callq _scanf movq -40(%rbp), %rax movq -40(%rbp), %rcx addq $1, %rcx imulq %rcx, %rax movl $2, %ecx cqto idivq %rcx movq %rax, -32(%rbp) movq -40(%rbp), %rax movq -40(%rbp), %rcx addq $1, %rcx imulq %rcx, %rax movq -40(%rbp), %rcx shlq $1, %rcx addq $1, %rcx imulq %rcx, %rax movl $6, %ecx cqto idivq %rcx movq %rax, -24(%rbp) movq -24(%rbp), %rax movq -32(%rbp), %rcx imulq -32(%rbp), %rcx subq %rcx, %rax movq %rax, -48(%rbp) movq -48(%rbp), %rsi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf xorl %eax, %eax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Enter the number:" L_.str.1: ## @.str.1 .asciz "%ld" .subsections_via_symbols
the_stack_data/43128.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: stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill .cfi_def_cfa_offset 16 mov x29, sp .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] ldr x0, [x8] adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF bl _fprintf mov w0, #-1 bl _exit .cfi_endproc ; -- End function .globl _get_token ; -- Begin function get_token .p2align 2 _get_token: ; @get_token .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, #16] ldr x8, [sp, #16] ldrsb w8, [x8] subs w8, w8, #0 ; kill: def $x8 killed $w8 str x8, [sp, #8] ; 8-byte Folded Spill subs x8, x8, #47 cset w8, hi tbnz w8, #0, LBB1_7 ; %bb.1: ldr x11, [sp, #8] ; 8-byte Folded Reload adrp x10, lJTI1_0@PAGE add x10, x10, lJTI1_0@PAGEOFF Ltmp1: adr x8, Ltmp1 ldrsw x9, [x10, x11, lsl #2] add x8, x8, x9 br x8 LBB1_2: mov w8, #1 str w8, [sp, #28] b LBB1_8 LBB1_3: mov w8, #2 str w8, [sp, #28] b LBB1_8 LBB1_4: mov w8, #3 str w8, [sp, #28] b LBB1_8 LBB1_5: mov w8, #4 str w8, [sp, #28] b LBB1_8 LBB1_6: mov w8, #5 str w8, [sp, #28] b LBB1_8 LBB1_7: str wzr, [sp, #28] b LBB1_8 LBB1_8: ldr w0, [sp, #28] add sp, sp, #32 ret .cfi_endproc .p2align 2 lJTI1_0: .long LBB1_6-Ltmp1 .long LBB1_7-Ltmp1 .long LBB1_7-Ltmp1 .long LBB1_7-Ltmp1 .long LBB1_7-Ltmp1 .long LBB1_7-Ltmp1 .long LBB1_7-Ltmp1 .long LBB1_7-Ltmp1 .long LBB1_7-Ltmp1 .long LBB1_7-Ltmp1 .long LBB1_7-Ltmp1 .long LBB1_7-Ltmp1 .long LBB1_7-Ltmp1 .long LBB1_7-Ltmp1 .long LBB1_7-Ltmp1 .long LBB1_7-Ltmp1 .long LBB1_7-Ltmp1 .long LBB1_7-Ltmp1 .long LBB1_7-Ltmp1 .long LBB1_7-Ltmp1 .long LBB1_7-Ltmp1 .long LBB1_7-Ltmp1 .long LBB1_7-Ltmp1 .long LBB1_7-Ltmp1 .long LBB1_7-Ltmp1 .long LBB1_7-Ltmp1 .long LBB1_7-Ltmp1 .long LBB1_7-Ltmp1 .long LBB1_7-Ltmp1 .long LBB1_7-Ltmp1 .long LBB1_7-Ltmp1 .long LBB1_7-Ltmp1 .long LBB1_7-Ltmp1 .long LBB1_7-Ltmp1 .long LBB1_7-Ltmp1 .long LBB1_7-Ltmp1 .long LBB1_7-Ltmp1 .long LBB1_7-Ltmp1 .long LBB1_7-Ltmp1 .long LBB1_7-Ltmp1 .long LBB1_7-Ltmp1 .long LBB1_7-Ltmp1 .long LBB1_4-Ltmp1 .long LBB1_2-Ltmp1 .long LBB1_7-Ltmp1 .long LBB1_3-Ltmp1 .long LBB1_7-Ltmp1 .long LBB1_5-Ltmp1 ; -- End function .globl _expr ; -- Begin function expr .p2align 2 _expr: ; @expr .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-16] stur wzr, [x29, #-20] ldur x8, [x29, #-16] str x8, [sp, #8] b LBB2_1 LBB2_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #8] ldrsb w8, [x8] subs w8, w8, #32 cset w8, ne tbnz w8, #0, LBB2_3 b LBB2_2 LBB2_2: ; in Loop: Header=BB2_1 Depth=1 ldr x8, [sp, #8] add x8, x8, #1 str x8, [sp, #8] b LBB2_1 LBB2_3: ldr x0, [sp, #8] bl _get_token subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB2_5 b LBB2_4 LBB2_4: bl _error stur wzr, [x29, #-4] b LBB2_23 LBB2_5: ldr x0, [sp, #8] bl _atoi stur w0, [x29, #-20] ldr x0, [sp, #8] adrp x1, _DIGITS@PAGE add x1, x1, _DIGITS@PAGEOFF bl _strspn ldr x8, [sp, #8] add x8, x8, x0 str x8, [sp, #8] b LBB2_6 LBB2_6: ; =>This Loop Header: Depth=1 ; Child Loop BB2_8 Depth 2 ; Child Loop BB2_11 Depth 2 ldr x0, [sp, #8] bl _get_token subs w8, w0, #5 cset w8, eq tbnz w8, #0, LBB2_22 b LBB2_7 LBB2_7: ; in Loop: Header=BB2_6 Depth=1 b LBB2_8 LBB2_8: ; Parent Loop BB2_6 Depth=1 ; => This Inner Loop Header: Depth=2 ldr x8, [sp, #8] ldrsb w8, [x8] subs w8, w8, #32 cset w8, ne tbnz w8, #0, LBB2_10 b LBB2_9 LBB2_9: ; in Loop: Header=BB2_8 Depth=2 ldr x8, [sp, #8] add x8, x8, #1 str x8, [sp, #8] b LBB2_8 LBB2_10: ; in Loop: Header=BB2_6 Depth=1 ldr x0, [sp, #8] bl _get_token str w0, [sp, #24] ldr x8, [sp, #8] add x8, x8, #1 str x8, [sp, #8] b LBB2_11 LBB2_11: ; Parent Loop BB2_6 Depth=1 ; => This Inner Loop Header: Depth=2 ldr x8, [sp, #8] ldrsb w8, [x8] subs w8, w8, #32 cset w8, ne tbnz w8, #0, LBB2_13 b LBB2_12 LBB2_12: ; in Loop: Header=BB2_11 Depth=2 ldr x8, [sp, #8] add x8, x8, #1 str x8, [sp, #8] b LBB2_11 LBB2_13: ; in Loop: Header=BB2_6 Depth=1 ldr x0, [sp, #8] bl _get_token subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB2_15 b LBB2_14 LBB2_14: bl _error stur wzr, [x29, #-4] b LBB2_23 LBB2_15: ; in Loop: Header=BB2_6 Depth=1 ldr x0, [sp, #8] bl _atoi str w0, [sp, #20] ldr x0, [sp, #8] adrp x1, _DIGITS@PAGE add x1, x1, _DIGITS@PAGEOFF bl _strspn ldr x8, [sp, #8] add x8, x8, x0 str x8, [sp, #8] ldr w8, [sp, #24] subs w8, w8, #1 ; kill: def $x8 killed $w8 str x8, [sp] ; 8-byte Folded Spill subs x8, x8, #3 cset w8, hi tbnz w8, #0, LBB2_21 ; %bb.16: ; in Loop: Header=BB2_6 Depth=1 ldr x11, [sp] ; 8-byte Folded Reload adrp x10, lJTI2_0@PAGE add x10, x10, lJTI2_0@PAGEOFF Ltmp2: adr x8, Ltmp2 ldrsw x9, [x10, x11, lsl #2] add x8, x8, x9 br x8 LBB2_17: ; in Loop: Header=BB2_6 Depth=1 ldr w9, [sp, #20] ldur w8, [x29, #-20] add w8, w8, w9 stur w8, [x29, #-20] b LBB2_21 LBB2_18: ; in Loop: Header=BB2_6 Depth=1 ldr w9, [sp, #20] ldur w8, [x29, #-20] subs w8, w8, w9 stur w8, [x29, #-20] b LBB2_21 LBB2_19: ; in Loop: Header=BB2_6 Depth=1 ldr w9, [sp, #20] ldur w8, [x29, #-20] mul w8, w8, w9 stur w8, [x29, #-20] b LBB2_21 LBB2_20: ; in Loop: Header=BB2_6 Depth=1 ldr w9, [sp, #20] ldur w8, [x29, #-20] sdiv w8, w8, w9 stur w8, [x29, #-20] b LBB2_21 LBB2_21: ; in Loop: Header=BB2_6 Depth=1 b LBB2_6 LBB2_22: ldur w8, [x29, #-20] stur w8, [x29, #-4] b LBB2_23 LBB2_23: ldur w0, [x29, #-4] ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc .p2align 2 lJTI2_0: .long LBB2_17-Ltmp2 .long LBB2_18-Ltmp2 .long LBB2_19-Ltmp2 .long LBB2_20-Ltmp2 ; -- 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 mov w8, #0 str w8, [sp, #28] ; 4-byte Folded Spill stur wzr, [x29, #-20] stur w0, [x29, #-24] stur x1, [x29, #-32] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf adrp x8, ___stdinp@GOTPAGE ldr x8, [x8, ___stdinp@GOTPAGEOFF] ldr x2, [x8] add x0, sp, #32 str x0, [sp, #16] ; 8-byte Folded Spill mov w1, #255 bl _fgets ldr x0, [sp, #16] ; 8-byte Folded Reload bl _strlen ldr x8, [sp, #16] ; 8-byte Folded Reload subs x10, x0, #1 mov x9, x8 add x9, x9, x10 strb wzr, [x9] adrp x9, ___stderrp@GOTPAGE ldr x9, [x9, ___stderrp@GOTPAGEOFF] ldr x0, [x9] mov x9, sp str x8, [x9] adrp x1, l_.str.2@PAGE add x1, x1, l_.str.2@PAGEOFF bl _fprintf ldr x0, [sp, #16] ; 8-byte Folded Reload bl _expr 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 ldr w0, [sp, #28] ; 4-byte Folded Reload bl _exit .cfi_endproc ; -- End function .section __TEXT,__const .globl _DIGITS ; @DIGITS _DIGITS: .asciz "0123456789" .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Error! Check your input.\n" l_.str.1: ; @.str.1 .asciz "Calc> " l_.str.2: ; @.str.2 .asciz "Input: %s\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 _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 movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str(%rip), %rsi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _fprintf movl $-1, %edi callq _exit .cfi_endproc ## -- End function .globl _get_token ## -- Begin function get_token .p2align 4, 0x90 _get_token: ## @get_token .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -16(%rbp) movq -16(%rbp), %rax movsbl (%rax), %eax movl %eax, %ecx movq %rcx, -24(%rbp) ## 8-byte Spill subl $47, %eax ja LBB1_6 ## %bb.8: movq -24(%rbp), %rax ## 8-byte Reload leaq LJTI1_0(%rip), %rcx movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax LBB1_1: movl $1, -4(%rbp) jmp LBB1_7 LBB1_2: movl $2, -4(%rbp) jmp LBB1_7 LBB1_3: movl $3, -4(%rbp) jmp LBB1_7 LBB1_4: movl $4, -4(%rbp) jmp LBB1_7 LBB1_5: movl $5, -4(%rbp) jmp LBB1_7 LBB1_6: movl $0, -4(%rbp) LBB1_7: movl -4(%rbp), %eax popq %rbp retq .cfi_endproc .p2align 2, 0x90 .data_region jt32 .set L1_0_set_5, LBB1_5-LJTI1_0 .set L1_0_set_6, LBB1_6-LJTI1_0 .set L1_0_set_3, LBB1_3-LJTI1_0 .set L1_0_set_1, LBB1_1-LJTI1_0 .set L1_0_set_2, LBB1_2-LJTI1_0 .set L1_0_set_4, LBB1_4-LJTI1_0 LJTI1_0: .long L1_0_set_5 .long L1_0_set_6 .long L1_0_set_6 .long L1_0_set_6 .long L1_0_set_6 .long L1_0_set_6 .long L1_0_set_6 .long L1_0_set_6 .long L1_0_set_6 .long L1_0_set_6 .long L1_0_set_6 .long L1_0_set_6 .long L1_0_set_6 .long L1_0_set_6 .long L1_0_set_6 .long L1_0_set_6 .long L1_0_set_6 .long L1_0_set_6 .long L1_0_set_6 .long L1_0_set_6 .long L1_0_set_6 .long L1_0_set_6 .long L1_0_set_6 .long L1_0_set_6 .long L1_0_set_6 .long L1_0_set_6 .long L1_0_set_6 .long L1_0_set_6 .long L1_0_set_6 .long L1_0_set_6 .long L1_0_set_6 .long L1_0_set_6 .long L1_0_set_6 .long L1_0_set_6 .long L1_0_set_6 .long L1_0_set_6 .long L1_0_set_6 .long L1_0_set_6 .long L1_0_set_6 .long L1_0_set_6 .long L1_0_set_6 .long L1_0_set_6 .long L1_0_set_3 .long L1_0_set_1 .long L1_0_set_6 .long L1_0_set_2 .long L1_0_set_6 .long L1_0_set_4 .end_data_region ## -- End function .globl _expr ## -- Begin function expr .p2align 4, 0x90 _expr: ## @expr .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movq %rdi, -16(%rbp) movl $0, -20(%rbp) movq -16(%rbp), %rax movq %rax, -40(%rbp) LBB2_1: ## =>This Inner Loop Header: Depth=1 movq -40(%rbp), %rax movsbl (%rax), %eax cmpl $32, %eax jne LBB2_3 ## %bb.2: ## in Loop: Header=BB2_1 Depth=1 movq -40(%rbp), %rax addq $1, %rax movq %rax, -40(%rbp) jmp LBB2_1 LBB2_3: movq -40(%rbp), %rdi callq _get_token cmpl $0, %eax je LBB2_5 ## %bb.4: callq _error movl $0, -4(%rbp) jmp LBB2_22 LBB2_5: movq -40(%rbp), %rdi callq _atoi movl %eax, -20(%rbp) movq -40(%rbp), %rdi leaq _DIGITS(%rip), %rsi callq _strspn addq -40(%rbp), %rax movq %rax, -40(%rbp) LBB2_6: ## =>This Loop Header: Depth=1 ## Child Loop BB2_8 Depth 2 ## Child Loop BB2_11 Depth 2 movq -40(%rbp), %rdi callq _get_token cmpl $5, %eax je LBB2_21 ## %bb.7: ## in Loop: Header=BB2_6 Depth=1 jmp LBB2_8 LBB2_8: ## Parent Loop BB2_6 Depth=1 ## => This Inner Loop Header: Depth=2 movq -40(%rbp), %rax movsbl (%rax), %eax cmpl $32, %eax jne LBB2_10 ## %bb.9: ## in Loop: Header=BB2_8 Depth=2 movq -40(%rbp), %rax addq $1, %rax movq %rax, -40(%rbp) jmp LBB2_8 LBB2_10: ## in Loop: Header=BB2_6 Depth=1 movq -40(%rbp), %rdi callq _get_token movl %eax, -24(%rbp) movq -40(%rbp), %rax addq $1, %rax movq %rax, -40(%rbp) LBB2_11: ## Parent Loop BB2_6 Depth=1 ## => This Inner Loop Header: Depth=2 movq -40(%rbp), %rax movsbl (%rax), %eax cmpl $32, %eax jne LBB2_13 ## %bb.12: ## in Loop: Header=BB2_11 Depth=2 movq -40(%rbp), %rax addq $1, %rax movq %rax, -40(%rbp) jmp LBB2_11 LBB2_13: ## in Loop: Header=BB2_6 Depth=1 movq -40(%rbp), %rdi callq _get_token cmpl $0, %eax je LBB2_15 ## %bb.14: callq _error movl $0, -4(%rbp) jmp LBB2_22 LBB2_15: ## in Loop: Header=BB2_6 Depth=1 movq -40(%rbp), %rdi callq _atoi movl %eax, -28(%rbp) movq -40(%rbp), %rdi leaq _DIGITS(%rip), %rsi callq _strspn movq %rax, %rcx movq -40(%rbp), %rax addq %rcx, %rax movq %rax, -40(%rbp) movl -24(%rbp), %eax decl %eax movl %eax, %ecx movq %rcx, -48(%rbp) ## 8-byte Spill subl $3, %eax ja LBB2_20 ## %bb.23: ## in Loop: Header=BB2_6 Depth=1 movq -48(%rbp), %rax ## 8-byte Reload leaq LJTI2_0(%rip), %rcx movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax LBB2_16: ## in Loop: Header=BB2_6 Depth=1 movl -28(%rbp), %eax addl -20(%rbp), %eax movl %eax, -20(%rbp) jmp LBB2_20 LBB2_17: ## in Loop: Header=BB2_6 Depth=1 movl -28(%rbp), %ecx movl -20(%rbp), %eax subl %ecx, %eax movl %eax, -20(%rbp) jmp LBB2_20 LBB2_18: ## in Loop: Header=BB2_6 Depth=1 movl -28(%rbp), %eax imull -20(%rbp), %eax movl %eax, -20(%rbp) jmp LBB2_20 LBB2_19: ## in Loop: Header=BB2_6 Depth=1 movl -28(%rbp), %ecx movl -20(%rbp), %eax cltd idivl %ecx movl %eax, -20(%rbp) LBB2_20: ## in Loop: Header=BB2_6 Depth=1 jmp LBB2_6 LBB2_21: movl -20(%rbp), %eax movl %eax, -4(%rbp) LBB2_22: movl -4(%rbp), %eax addq $48, %rsp popq %rbp retq .cfi_endproc .p2align 2, 0x90 .data_region jt32 .set L2_0_set_16, LBB2_16-LJTI2_0 .set L2_0_set_17, LBB2_17-LJTI2_0 .set L2_0_set_18, LBB2_18-LJTI2_0 .set L2_0_set_19, LBB2_19-LJTI2_0 LJTI2_0: .long L2_0_set_16 .long L2_0_set_17 .long L2_0_set_18 .long L2_0_set_19 .end_data_region ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $288, %rsp ## imm = 0x120 movl $0, -4(%rbp) movl %edi, -8(%rbp) movq %rsi, -16(%rbp) leaq L_.str.1(%rip), %rdi xorl %eax, %eax movl %eax, -276(%rbp) ## 4-byte Spill movb %al, -277(%rbp) ## 1-byte Spill callq _printf movq ___stdinp@GOTPCREL(%rip), %rax movq (%rax), %rdx leaq -272(%rbp), %rdi movq %rdi, -288(%rbp) ## 8-byte Spill movl $255, %esi callq _fgets movq -288(%rbp), %rdi ## 8-byte Reload callq _strlen movq -288(%rbp), %rdx ## 8-byte Reload movq %rax, %rcx movb -277(%rbp), %al ## 1-byte Reload movb $0, -1(%rcx,%rdx) movq ___stderrp@GOTPCREL(%rip), %rcx movq (%rcx), %rdi leaq L_.str.2(%rip), %rsi callq _fprintf movq -288(%rbp), %rdi ## 8-byte Reload callq _expr movl %eax, %esi movb -277(%rbp), %al ## 1-byte Reload leaq L_.str.3(%rip), %rdi callq _printf movl -276(%rbp), %edi ## 4-byte Reload callq _exit .cfi_endproc ## -- End function .section __TEXT,__const .globl _DIGITS ## @DIGITS _DIGITS: .asciz "0123456789" .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Error! Check your input.\n" L_.str.1: ## @.str.1 .asciz "Calc> " L_.str.2: ## @.str.2 .asciz "Input: %s\n" L_.str.3: ## @.str.3 .asciz "%d\n" .subsections_via_symbols
the_stack_data/957430.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _RandomFunc ; -- Begin function RandomFunc .p2align 2 _RandomFunc: ; @RandomFunc .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, #24] str x1, [sp, #16] ldr x8, [sp, #24] ldrh w8, [x8] ; kill: def $x8 killed $w8 mov x9, #26986 movk x9, #13958, lsl #16 add x8, x8, x9 mov x9, #64278 mul x8, x8, x9 ; kill: def $w8 killed $w8 killed $x8 strh w8, [sp, #14] strh wzr, [sp, #12] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldrh w8, [sp, #12] ldr x9, [sp, #24] ldrh w9, [x9, #2] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_6 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldrh w8, [sp, #14] ldrh w9, [sp, #12] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 add x8, sp, #14 ldrb w9, [sp, #15] strb w9, [sp, #11] ldrb w9, [sp, #14] strb w9, [sp, #15] ldrb w9, [sp, #11] strb w9, [sp, #14] ldrh w9, [sp, #12] ; kill: def $x9 killed $w9 ldrh w10, [x8, x9, lsl #1] ldrh w9, [sp, #12] ; kill: def $x9 killed $w9 add x9, x8, x9, lsl #1 ldrh w8, [x9] add w8, w8, w10 strh w8, [x9] b LBB0_5 LBB0_4: ; in Loop: Header=BB0_1 Depth=1 ldrh w9, [sp, #14] ldrh w8, [sp, #14] add w8, w8, w9 strh w8, [sp, #14] b LBB0_5 LBB0_5: ; in Loop: Header=BB0_1 Depth=1 ldrh w8, [sp, #12] add w8, w8, #1 strh w8, [sp, #12] b LBB0_1 LBB0_6: ldrh w8, [sp, #14] ; kill: def $x8 killed $w8 mov x9, #41122 movk x9, #2540, lsl #16 mul x8, x8, x9 mov x9, #34066 mul x8, x8, x9 ldr x9, [sp, #16] ; kill: def $w8 killed $w8 killed $x8 strh w8, [x9] add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] stur w0, [x29, #-8] stur x1, [x29, #-16] bl _megaInit ldur w8, [x29, #-8] subs w8, w8, #2 cset w8, eq tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_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 LBB1_2: b LBB1_3 LBB1_3: str wzr, [sp, #24] b LBB1_4 LBB1_4: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #24] subs w8, w8, #1 cset w8, ge tbnz w8, #0, LBB1_6 b LBB1_5 LBB1_5: ; in Loop: Header=BB1_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 strh w8, [sp, #22] ldrh w8, [sp, #22] ldrsw x10, [sp, #24] sub x9, x29, #18 add x9, x9, x10, lsl #1 strh w8, [x9] ldr w8, [sp, #24] add w8, w8, #1 str w8, [sp, #24] b LBB1_4 LBB1_6: sub x0, x29, #18 sub x1, x29, #20 bl _RandomFunc ldurh w8, [x29, #-20] mov w9, #31026 subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB1_8 b LBB1_7 LBB1_7: adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf b LBB1_9 LBB1_8: b LBB1_9 LBB1_9: str wzr, [sp, #16] b LBB1_10 LBB1_10: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #16] subs w8, w8, #1 cset w8, ge tbnz w8, #0, LBB1_12 b LBB1_11 LBB1_11: ; in Loop: Header=BB1_10 Depth=1 ldrsw x9, [sp, #16] sub x8, x29, #20 ldrh w10, [x8, x9, lsl #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 ldr w8, [sp, #16] add w8, w8, #1 str w8, [sp, #16] b LBB1_10 LBB1_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 .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Call this program with %i arguments\n" l_.str.1: ; @.str.1 .asciz "You win!\n" l_.str.2: ; @.str.2 .asciz "%u\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _RandomFunc ## -- Begin function RandomFunc .p2align 4, 0x90 _RandomFunc: ## @RandomFunc .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) movq -8(%rbp), %rax movzwl (%rax), %eax ## kill: def $rax killed $eax addq $914778474, %rax ## imm = 0x3686696A imulq $64278, %rax, %rax ## imm = 0xFB16 ## kill: def $ax killed $ax killed $rax movw %ax, -18(%rbp) movw $0, -20(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movzwl -20(%rbp), %eax movq -8(%rbp), %rcx movzwl 2(%rcx), %ecx cmpl %ecx, %eax jge LBB0_6 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movzwl -18(%rbp), %eax movzwl -20(%rbp), %ecx cmpl %ecx, %eax jge LBB0_4 ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movb -17(%rbp), %al movb %al, -21(%rbp) movb -18(%rbp), %al movb %al, -17(%rbp) movb -21(%rbp), %al movb %al, -18(%rbp) movzwl -20(%rbp), %eax ## kill: def $rax killed $eax movzwl -18(%rbp,%rax,2), %edx movzwl -20(%rbp), %eax ## kill: def $rax killed $eax movzwl -18(%rbp,%rax,2), %ecx addl %edx, %ecx ## kill: def $cx killed $cx killed $ecx movw %cx, -18(%rbp,%rax,2) jmp LBB0_5 LBB0_4: ## in Loop: Header=BB0_1 Depth=1 movzwl -18(%rbp), %ecx movzwl -18(%rbp), %eax addl %ecx, %eax ## kill: def $ax killed $ax killed $eax movw %ax, -18(%rbp) LBB0_5: ## in Loop: Header=BB0_1 Depth=1 movw -20(%rbp), %ax addw $1, %ax movw %ax, -20(%rbp) jmp LBB0_1 LBB0_6: movzwl -18(%rbp), %eax ## kill: def $rax killed $eax imulq $166502562, %rax, %rax ## imm = 0x9ECA0A2 imulq $34066, %rax, %rax ## imm = 0x8512 movw %ax, %cx movq -16(%rbp), %rax movw %cx, (%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) movl %edi, -8(%rbp) movq %rsi, -16(%rbp) callq _megaInit cmpl $2, -8(%rbp) je LBB1_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 LBB1_2: jmp LBB1_3 LBB1_3: movl $0, -24(%rbp) LBB1_4: ## =>This Inner Loop Header: Depth=1 cmpl $1, -24(%rbp) jge LBB1_6 ## %bb.5: ## in Loop: Header=BB1_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 $ax killed $ax killed $rax movw %ax, -26(%rbp) movw -26(%rbp), %cx movslq -24(%rbp), %rax movw %cx, -18(%rbp,%rax,2) movl -24(%rbp), %eax addl $1, %eax movl %eax, -24(%rbp) jmp LBB1_4 LBB1_6: leaq -18(%rbp), %rdi leaq -20(%rbp), %rsi callq _RandomFunc movzwl -20(%rbp), %eax cmpl $31026, %eax ## imm = 0x7932 jne LBB1_8 ## %bb.7: leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf jmp LBB1_9 LBB1_8: jmp LBB1_9 LBB1_9: movl $0, -32(%rbp) LBB1_10: ## =>This Inner Loop Header: Depth=1 cmpl $1, -32(%rbp) jge LBB1_12 ## %bb.11: ## in Loop: Header=BB1_10 Depth=1 movslq -32(%rbp), %rax movzwl -20(%rbp,%rax,2), %esi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf movl -32(%rbp), %eax addl $1, %eax movl %eax, -32(%rbp) jmp LBB1_10 LBB1_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 .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/84328.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #112 .cfi_def_cfa_offset 112 stp x29, x30, [sp, #96] ; 16-byte Folded Spill add x29, sp, #96 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] str wzr, [sp, #20] mov w0, #60 bl _header b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 add x0, sp, #27 mov w1, #61 bl _mygets subs x8, x0, #0 cset w8, eq tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 mov x9, sp add x8, sp, #27 str x8, [sp, #8] ; 8-byte Folded Spill str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldr x0, [sp, #8] ; 8-byte Folded Reload bl _revstr ldr x8, [sp, #8] ; 8-byte Folded Reload mov x9, sp str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _puts b LBB0_1 LBB0_3: adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _puts ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_5 b LBB0_4 LBB0_4: bl ___stack_chk_fail LBB0_5: mov w0, #0 ldp x29, x30, [sp, #96] ; 16-byte Folded Reload add sp, sp, #112 ret .cfi_endproc ; -- End function .globl _header ; -- Begin function header .p2align 2 _header: ; @header .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur w0, [x29, #-4] adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _puts adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _puts ldur w9, [x29, #-4] ; 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 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _mygets ; -- Begin function mygets .p2align 2 _mygets: ; @mygets .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #16] str w1, [sp, #12] str wzr, [sp, #4] str wzr, [sp, #8] b LBB2_1 LBB2_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #4] ldr w9, [sp, #12] subs w9, w9, #1 subs w8, w8, w9 cset w8, ge mov w9, #0 str w9, [sp] ; 4-byte Folded Spill tbnz w8, #0, LBB2_4 b LBB2_2 LBB2_2: ; in Loop: Header=BB2_1 Depth=1 bl _getchar str w0, [sp, #8] adds w8, w0, #1 cset w8, eq mov w9, #0 str w9, [sp] ; 4-byte Folded Spill tbnz w8, #0, LBB2_4 b LBB2_3 LBB2_3: ; in Loop: Header=BB2_1 Depth=1 ldr w8, [sp, #8] subs w8, w8, #10 cset w8, ne str w8, [sp] ; 4-byte Folded Spill b LBB2_4 LBB2_4: ; in Loop: Header=BB2_1 Depth=1 ldr w8, [sp] ; 4-byte Folded Reload tbz w8, #0, LBB2_7 b LBB2_5 LBB2_5: ; in Loop: Header=BB2_1 Depth=1 ldr w8, [sp, #8] ldr x9, [sp, #16] ldrsw x10, [sp, #4] strb w8, [x9, x10] b LBB2_6 LBB2_6: ; in Loop: Header=BB2_1 Depth=1 ldr w8, [sp, #4] add w8, w8, #1 str w8, [sp, #4] b LBB2_1 LBB2_7: ldr x8, [sp, #16] ldrsw x9, [sp, #4] add x8, x8, x9 strb wzr, [x8] ldr w8, [sp, #8] subs w8, w8, #10 cset w8, eq tbnz w8, #0, LBB2_13 b LBB2_8 LBB2_8: ldr w8, [sp, #8] adds w8, w8, #1 cset w8, eq tbnz w8, #0, LBB2_13 b LBB2_9 LBB2_9: b LBB2_10 LBB2_10: ; =>This Inner Loop Header: Depth=1 bl _getchar subs w8, w0, #10 cset w8, eq tbnz w8, #0, LBB2_12 b LBB2_11 LBB2_11: ; in Loop: Header=BB2_10 Depth=1 b LBB2_10 LBB2_12: b LBB2_13 LBB2_13: ldr w8, [sp, #4] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB2_15 b LBB2_14 LBB2_14: ldr x8, [sp, #16] stur x8, [x29, #-8] b LBB2_16 LBB2_15: ; kill: def $x8 killed $xzr stur xzr, [x29, #-8] b LBB2_16 LBB2_16: ldur x0, [x29, #-8] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _revstr ; -- Begin function revstr .p2align 2 _revstr: ; @revstr .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, #24] str wzr, [sp, #20] b LBB3_1 LBB3_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #24] ldrsw x9, [sp, #20] add x8, x8, x9 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 w8, [sp, #20] add w8, w8, #1 str w8, [sp, #20] b LBB3_1 LBB3_3: ldr w8, [sp, #20] subs w8, w8, #1 cset w8, le tbnz w8, #0, LBB3_9 b LBB3_4 LBB3_4: str wzr, [sp, #12] ldr w8, [sp, #20] mov w9, #2 sdiv w8, w8, w9 str w8, [sp, #8] b LBB3_5 LBB3_5: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #12] ldr w9, [sp, #8] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB3_8 b LBB3_6 LBB3_6: ; in Loop: Header=BB3_5 Depth=1 ldr x8, [sp, #24] ldrsw x9, [sp, #12] add x8, x8, x9 ldrb w8, [x8] strb w8, [sp, #19] ldr x8, [sp, #24] ldr w9, [sp, #20] subs w9, w9, #1 ldr w10, [sp, #12] subs w9, w9, w10 add x8, x8, w9, sxtw ldrb w8, [x8] ldr x9, [sp, #24] ldrsw x10, [sp, #12] add x9, x9, x10 strb w8, [x9] ldrb w8, [sp, #19] ldr x9, [sp, #24] ldr w10, [sp, #20] subs w10, w10, #1 ldr w11, [sp, #12] subs w10, w10, w11 add x9, x9, w10, sxtw strb w8, [x9] b LBB3_7 LBB3_7: ; in Loop: Header=BB3_5 Depth=1 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB3_5 LBB3_8: b LBB3_9 LBB3_9: add sp, sp, #32 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Initial string: %s\n" l_.str.1: ; @.str.1 .asciz "Reversed string: %s\n" l_.str.2: ; @.str.2 .asciz "Enter new string (Enter to quit):" l_.str.3: ; @.str.3 .asciz "done" l_.str.4: ; @.str.4 .asciz "*** Test the revstr() function ***" l_.str.5: ; @.str.5 .asciz "It replaces the contents of a string with the string reversed\n" l_.str.6: ; @.str.6 .asciz "Enter a string up to %d characters: \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, -84(%rbp) movl $60, %edi callq _header LBB0_1: ## =>This Inner Loop Header: Depth=1 leaq -80(%rbp), %rdi movl $61, %esi callq _mygets cmpq $0, %rax je LBB0_3 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 leaq -80(%rbp), %rsi leaq L_.str(%rip), %rdi movb $0, %al callq _printf leaq -80(%rbp), %rdi callq _revstr leaq -80(%rbp), %rsi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf leaq L_.str.2(%rip), %rdi callq _puts jmp LBB0_1 LBB0_3: leaq L_.str.3(%rip), %rdi callq _puts movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_5 ## %bb.4: xorl %eax, %eax addq $96, %rsp popq %rbp retq LBB0_5: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _header ## -- Begin function header .p2align 4, 0x90 _header: ## @header .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl %edi, -4(%rbp) leaq L_.str.4(%rip), %rdi callq _puts leaq L_.str.5(%rip), %rdi callq _puts movl -4(%rbp), %esi leaq L_.str.6(%rip), %rdi movb $0, %al callq _printf addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _mygets ## -- Begin function mygets .p2align 4, 0x90 _mygets: ## @mygets .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -16(%rbp) movl %esi, -20(%rbp) movl $0, -28(%rbp) movl $0, -24(%rbp) LBB2_1: ## =>This Inner Loop Header: Depth=1 movl -28(%rbp), %ecx movl -20(%rbp), %edx subl $1, %edx xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl %edx, %ecx movb %al, -29(%rbp) ## 1-byte Spill jge LBB2_4 ## %bb.2: ## in Loop: Header=BB2_1 Depth=1 callq _getchar movl %eax, %ecx movl %ecx, -24(%rbp) xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $-1, %ecx movb %al, -29(%rbp) ## 1-byte Spill je LBB2_4 ## %bb.3: ## in Loop: Header=BB2_1 Depth=1 cmpl $10, -24(%rbp) setne %al movb %al, -29(%rbp) ## 1-byte Spill LBB2_4: ## in Loop: Header=BB2_1 Depth=1 movb -29(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB2_5 jmp LBB2_7 LBB2_5: ## in Loop: Header=BB2_1 Depth=1 movl -24(%rbp), %eax movb %al, %dl movq -16(%rbp), %rax movslq -28(%rbp), %rcx movb %dl, (%rax,%rcx) ## %bb.6: ## in Loop: Header=BB2_1 Depth=1 movl -28(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) jmp LBB2_1 LBB2_7: movq -16(%rbp), %rax movslq -28(%rbp), %rcx movb $0, (%rax,%rcx) cmpl $10, -24(%rbp) je LBB2_13 ## %bb.8: cmpl $-1, -24(%rbp) je LBB2_13 ## %bb.9: jmp LBB2_10 LBB2_10: ## =>This Inner Loop Header: Depth=1 callq _getchar cmpl $10, %eax je LBB2_12 ## %bb.11: ## in Loop: Header=BB2_10 Depth=1 jmp LBB2_10 LBB2_12: jmp LBB2_13 LBB2_13: cmpl $0, -28(%rbp) jle LBB2_15 ## %bb.14: movq -16(%rbp), %rax movq %rax, -8(%rbp) jmp LBB2_16 LBB2_15: movq $0, -8(%rbp) LBB2_16: movq -8(%rbp), %rax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _revstr ## -- Begin function revstr .p2align 4, 0x90 _revstr: ## @revstr .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) movl $0, -12(%rbp) LBB3_1: ## =>This Inner Loop Header: Depth=1 movq -8(%rbp), %rax movslq -12(%rbp), %rcx cmpb $0, (%rax,%rcx) je LBB3_3 ## %bb.2: ## in Loop: Header=BB3_1 Depth=1 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB3_1 LBB3_3: cmpl $1, -12(%rbp) jle LBB3_9 ## %bb.4: movl $0, -20(%rbp) movl -12(%rbp), %eax movl $2, %ecx cltd idivl %ecx movl %eax, -24(%rbp) LBB3_5: ## =>This Inner Loop Header: Depth=1 movl -20(%rbp), %eax cmpl -24(%rbp), %eax jge LBB3_8 ## %bb.6: ## in Loop: Header=BB3_5 Depth=1 movq -8(%rbp), %rax movslq -20(%rbp), %rcx movb (%rax,%rcx), %al movb %al, -13(%rbp) movq -8(%rbp), %rax movl -12(%rbp), %ecx subl $1, %ecx subl -20(%rbp), %ecx movslq %ecx, %rcx movb (%rax,%rcx), %dl movq -8(%rbp), %rax movslq -20(%rbp), %rcx movb %dl, (%rax,%rcx) movb -13(%rbp), %dl movq -8(%rbp), %rax movl -12(%rbp), %ecx subl $1, %ecx subl -20(%rbp), %ecx movslq %ecx, %rcx movb %dl, (%rax,%rcx) ## %bb.7: ## in Loop: Header=BB3_5 Depth=1 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB3_5 LBB3_8: jmp LBB3_9 LBB3_9: popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Initial string: %s\n" L_.str.1: ## @.str.1 .asciz "Reversed string: %s\n" L_.str.2: ## @.str.2 .asciz "Enter new string (Enter to quit):" L_.str.3: ## @.str.3 .asciz "done" L_.str.4: ## @.str.4 .asciz "*** Test the revstr() function ***" L_.str.5: ## @.str.5 .asciz "It replaces the contents of a string with the string reversed\n" L_.str.6: ## @.str.6 .asciz "Enter a string up to %d characters: \n" .subsections_via_symbols
the_stack_data/57949100.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, #1168 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] str wzr, [sp, #76] str wzr, [sp, #80] str wzr, [sp, #200] str wzr, [sp, #320] str wzr, [sp, #440] str wzr, [sp, #560] str wzr, [sp, #680] str wzr, [sp, #800] str wzr, [sp, #920] stur wzr, [x29, #-144] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF str x0, [sp, #48] ; 8-byte Folded Spill bl _printf adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf ldr x0, [sp, #48] ; 8-byte Folded Reload bl _printf adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf mov x9, sp add x8, sp, #68 str x8, [x9] adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _scanf ldr w8, [sp, #68] subs w8, w8, #1 ; kill: def $x8 killed $w8 str x8, [sp, #56] ; 8-byte Folded Spill subs x8, x8, #8 cset w8, hi tbnz w8, #0, LBB0_12 ; %bb.2: ; in Loop: Header=BB0_1 Depth=1 ldr x11, [sp, #56] ; 8-byte Folded Reload adrp x10, lJTI0_0@PAGE add x10, x10, lJTI0_0@PAGEOFF Ltmp0: adr x8, Ltmp0 ldrsw x9, [x10, x11, lsl #2] add x8, x8, x9 br x8 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 adrp x0, l_.str.7@PAGE add x0, x0, l_.str.7@PAGEOFF bl _printf add x0, sp, #680 bl _insert adrp x0, l_.str.8@PAGE add x0, x0, l_.str.8@PAGEOFF bl _printf sub x0, x29, #144 bl _insert adrp x0, l_.str.9@PAGE add x0, x0, l_.str.9@PAGEOFF bl _printf add x0, sp, #920 bl _insert b LBB0_12 LBB0_4: ; in Loop: Header=BB0_1 Depth=1 adrp x0, l_.str.10@PAGE add x0, x0, l_.str.10@PAGEOFF bl _printf adrp x0, l_.str.11@PAGE add x0, x0, l_.str.11@PAGEOFF bl _printf sub x0, x29, #144 bl _display b LBB0_12 LBB0_5: ; in Loop: Header=BB0_1 Depth=1 adrp x0, l_.str.12@PAGE add x0, x0, l_.str.12@PAGEOFF bl _printf adrp x0, l_.str.13@PAGE add x0, x0, l_.str.13@PAGEOFF bl _printf add x0, sp, #920 bl _display b LBB0_12 LBB0_6: ; in Loop: Header=BB0_1 Depth=1 sub x0, x29, #144 add x1, sp, #920 add x2, sp, #800 str x2, [sp, #40] ; 8-byte Folded Spill bl _Union adrp x0, l_.str.14@PAGE add x0, x0, l_.str.14@PAGEOFF bl _printf ldr x0, [sp, #40] ; 8-byte Folded Reload bl _display b LBB0_12 LBB0_7: ; in Loop: Header=BB0_1 Depth=1 add x0, sp, #680 add x1, sp, #800 add x2, sp, #560 str x2, [sp, #32] ; 8-byte Folded Spill bl _difference adrp x0, l_.str.15@PAGE add x0, x0, l_.str.15@PAGEOFF bl _printf ldr x0, [sp, #32] ; 8-byte Folded Reload bl _display b LBB0_12 LBB0_8: ; in Loop: Header=BB0_1 Depth=1 sub x0, x29, #144 add x1, sp, #920 add x2, sp, #440 str x2, [sp, #24] ; 8-byte Folded Spill bl _difference adrp x0, l_.str.16@PAGE add x0, x0, l_.str.16@PAGEOFF bl _printf ldr x0, [sp, #24] ; 8-byte Folded Reload bl _display b LBB0_12 LBB0_9: ; in Loop: Header=BB0_1 Depth=1 add x0, sp, #920 sub x1, x29, #144 add x2, sp, #320 str x2, [sp, #16] ; 8-byte Folded Spill bl _difference adrp x0, l_.str.17@PAGE add x0, x0, l_.str.17@PAGEOFF bl _printf ldr x0, [sp, #16] ; 8-byte Folded Reload bl _display b LBB0_12 LBB0_10: ; in Loop: Header=BB0_1 Depth=1 sub x0, x29, #144 add x1, sp, #440 add x2, sp, #80 str x2, [sp, #8] ; 8-byte Folded Spill bl _difference adrp x0, l_.str.18@PAGE add x0, x0, l_.str.18@PAGEOFF bl _printf ldr x0, [sp, #8] ; 8-byte Folded Reload bl _display b LBB0_12 LBB0_11: mov w0, #0 bl _exit LBB0_12: ; in Loop: Header=BB0_1 Depth=1 adrp x0, l_.str.19@PAGE add x0, x0, l_.str.19@PAGEOFF bl _printf mov x9, sp add x8, sp, #64 str x8, [x9] adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _scanf ldr w8, [sp, #64] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_14 b LBB0_13 LBB0_13: b LBB0_16 LBB0_14: ; in Loop: Header=BB0_1 Depth=1 b LBB0_15 LBB0_15: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #68] subs w8, w8, #8 cset w8, ne tbnz w8, #0, LBB0_1 b LBB0_16 LBB0_16: ldur x9, [x29, #-24] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_18 b LBB0_17 LBB0_17: bl ___stack_chk_fail LBB0_18: mov w0, #0 add sp, sp, #1168 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x28, x27, [sp], #32 ; 16-byte Folded Reload ret .cfi_endproc .p2align 2 lJTI0_0: .long LBB0_3-Ltmp0 .long LBB0_4-Ltmp0 .long LBB0_5-Ltmp0 .long LBB0_6-Ltmp0 .long LBB0_7-Ltmp0 .long LBB0_8-Ltmp0 .long LBB0_9-Ltmp0 .long LBB0_10-Ltmp0 .long LBB0_11-Ltmp0 ; -- End function .globl _insert ; -- Begin function insert .p2align 2 _insert: ; @insert .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] ldur x8, [x29, #-8] str wzr, [x8] adrp x0, l_.str.20@PAGE add x0, x0, l_.str.20@PAGEOFF bl _printf mov x9, sp sub x8, x29, #12 str x8, [x9] adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _scanf ldur w8, [x29, #-12] ldur x9, [x29, #-8] str w8, [x9] adrp x0, l_.str.21@PAGE add x0, x0, l_.str.21@PAGEOFF bl _printf mov w8, #1 str w8, [sp, #16] b LBB1_1 LBB1_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #16] ldur w9, [x29, #-12] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB1_4 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 ldur x8, [x29, #-8] ldrsw x9, [sp, #16] add x8, x8, x9, lsl #2 mov x9, sp str x8, [x9] adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _scanf b LBB1_3 LBB1_3: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #16] add w8, w8, #1 str w8, [sp, #16] b LBB1_1 LBB1_4: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _display ; -- Begin function display .p2align 2 _display: ; @display .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] ldur x8, [x29, #-8] ldr w8, [x8] str w8, [sp, #16] ldr w8, [sp, #16] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB2_2 b LBB2_1 LBB2_1: adrp x0, l_.str.22@PAGE add x0, x0, l_.str.22@PAGEOFF bl _printf b LBB2_7 LBB2_2: adrp x0, l_.str.23@PAGE add x0, x0, l_.str.23@PAGEOFF bl _printf mov w8, #1 stur w8, [x29, #-12] b LBB2_3 LBB2_3: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-12] ldr w9, [sp, #16] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB2_6 b LBB2_4 LBB2_4: ; in Loop: Header=BB2_3 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.24@PAGE add x0, x0, l_.str.24@PAGEOFF bl _printf b LBB2_5 LBB2_5: ; in Loop: Header=BB2_3 Depth=1 ldur w8, [x29, #-12] add w8, w8, #1 stur w8, [x29, #-12] b LBB2_3 LBB2_6: adrp x0, l_.str.25@PAGE add x0, x0, l_.str.25@PAGEOFF bl _printf b LBB2_7 LBB2_7: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _Union ; -- Begin function Union .p2align 2 _Union: ; @Union .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 str x0, [sp, #40] str x1, [sp, #32] str x2, [sp, #24] ldr x8, [sp, #40] ldr w8, [x8] str w8, [sp, #16] str wzr, [sp, #20] b LBB3_1 LBB3_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #20] ldr w9, [sp, #16] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB3_4 b LBB3_2 LBB3_2: ; in Loop: Header=BB3_1 Depth=1 ldr x8, [sp, #40] ldrsw x9, [sp, #20] ldr w8, [x8, x9, lsl #2] ldr x9, [sp, #24] ldrsw x10, [sp, #20] str w8, [x9, x10, lsl #2] b LBB3_3 LBB3_3: ; in Loop: Header=BB3_1 Depth=1 ldr w8, [sp, #20] add w8, w8, #1 str w8, [sp, #20] b LBB3_1 LBB3_4: ldr w8, [sp, #16] str w8, [sp, #8] ldr w9, [sp, #8] mov w8, #1 add w9, w9, #1 str w9, [sp, #8] ldr x9, [sp, #32] ldr w9, [x9] str w9, [sp, #12] str w8, [sp, #20] b LBB3_5 LBB3_5: ; =>This Loop Header: Depth=1 ; Child Loop BB3_7 Depth 2 ldr w8, [sp, #20] ldr w9, [sp, #12] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB3_17 b LBB3_6 LBB3_6: ; in Loop: Header=BB3_5 Depth=1 mov w8, #1 str w8, [sp, #4] b LBB3_7 LBB3_7: ; Parent Loop BB3_5 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #4] ldr w9, [sp, #16] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB3_13 b LBB3_8 LBB3_8: ; in Loop: Header=BB3_7 Depth=2 ldr x8, [sp, #32] ldrsw x9, [sp, #20] ldr w8, [x8, x9, lsl #2] ldr x9, [sp, #40] ldrsw x10, [sp, #4] ldr w9, [x9, x10, lsl #2] subs w8, w8, w9 cset w8, eq tbnz w8, #0, LBB3_10 b LBB3_9 LBB3_9: ; in Loop: Header=BB3_7 Depth=2 mov w8, #1 str w8, [sp] b LBB3_11 LBB3_10: ; in Loop: Header=BB3_5 Depth=1 str wzr, [sp] b LBB3_13 LBB3_11: ; in Loop: Header=BB3_7 Depth=2 b LBB3_12 LBB3_12: ; in Loop: Header=BB3_7 Depth=2 ldr w8, [sp, #4] add w8, w8, #1 str w8, [sp, #4] b LBB3_7 LBB3_13: ; in Loop: Header=BB3_5 Depth=1 ldr w8, [sp] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB3_15 b LBB3_14 LBB3_14: ; in Loop: Header=BB3_5 Depth=1 ldr x9, [sp, #24] ldr w8, [x9] add w8, w8, #1 str w8, [x9] ldr x8, [sp, #32] ldrsw x9, [sp, #20] ldr w8, [x8, x9, lsl #2] ldr x9, [sp, #24] ldrsw x10, [sp, #8] str w8, [x9, x10, lsl #2] ldr w8, [sp, #8] add w8, w8, #1 str w8, [sp, #8] b LBB3_15 LBB3_15: ; in Loop: Header=BB3_5 Depth=1 b LBB3_16 LBB3_16: ; in Loop: Header=BB3_5 Depth=1 ldr w8, [sp, #20] add w8, w8, #1 str w8, [sp, #20] b LBB3_5 LBB3_17: add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _difference ; -- Begin function difference .p2align 2 _difference: ; @difference .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 str x0, [sp, #40] str x1, [sp, #32] str x2, [sp, #24] mov w8, #1 str w8, [sp, #8] str w8, [sp] ldr x9, [sp, #40] ldr w9, [x9] str w9, [sp, #16] ldr x9, [sp, #32] ldr w9, [x9] str w9, [sp, #12] ldr x9, [sp, #24] str wzr, [x9] str w8, [sp, #20] b LBB4_1 LBB4_1: ; =>This Loop Header: Depth=1 ; Child Loop BB4_3 Depth 2 ldr w8, [sp, #20] ldr w9, [sp, #16] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB4_13 b LBB4_2 LBB4_2: ; in Loop: Header=BB4_1 Depth=1 mov w8, #1 str w8, [sp, #4] b LBB4_3 LBB4_3: ; Parent Loop BB4_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #4] ldr w9, [sp, #12] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB4_9 b LBB4_4 LBB4_4: ; in Loop: Header=BB4_3 Depth=2 ldr x8, [sp, #40] ldrsw x9, [sp, #20] ldr w8, [x8, x9, lsl #2] ldr x9, [sp, #32] ldrsw x10, [sp, #4] ldr w9, [x9, x10, lsl #2] subs w8, w8, w9 cset w8, eq tbnz w8, #0, LBB4_6 b LBB4_5 LBB4_5: ; in Loop: Header=BB4_3 Depth=2 mov w8, #1 str w8, [sp] b LBB4_7 LBB4_6: ; in Loop: Header=BB4_1 Depth=1 str wzr, [sp] b LBB4_9 LBB4_7: ; in Loop: Header=BB4_3 Depth=2 b LBB4_8 LBB4_8: ; in Loop: Header=BB4_3 Depth=2 ldr w8, [sp, #4] add w8, w8, #1 str w8, [sp, #4] b LBB4_3 LBB4_9: ; in Loop: Header=BB4_1 Depth=1 ldr w8, [sp] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB4_11 b LBB4_10 LBB4_10: ; in Loop: Header=BB4_1 Depth=1 ldr x8, [sp, #40] ldrsw x9, [sp, #20] ldr w8, [x8, x9, lsl #2] ldr x9, [sp, #24] ldrsw x10, [sp, #8] str w8, [x9, x10, lsl #2] ldr x9, [sp, #24] ldr w8, [x9] add w8, w8, #1 str w8, [x9] ldr w8, [sp, #8] add w8, w8, #1 str w8, [sp, #8] b LBB4_11 LBB4_11: ; in Loop: Header=BB4_1 Depth=1 b LBB4_12 LBB4_12: ; in Loop: Header=BB4_1 Depth=1 ldr w8, [sp, #20] add w8, w8, #1 str w8, [sp, #20] b LBB4_1 LBB4_13: add sp, sp, #48 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "\n\n\t\t------------------------------------------------------------" l_.str.1: ; @.str.1 .asciz "\n\n\t\t\t*** MENU ***" l_.str.2: ; @.str.2 .asciz "\n\n\t\t1.Enter the choice of student\n\n\t\t2.Student Who play Badminton \n\n\t\t3.Student Who play Cricket" l_.str.3: ; @.str.3 .asciz "\n\n\t\t4.Student Who play Badminton ,Cricket Or Both\n\n\t\t5.Student Who play neither Badminton nor Cricket " l_.str.4: ; @.str.4 .asciz "\n\n\t\t6.Student Who play only Badminton(A-B)\n\n\t\t7.Student Who play only Cricket(B-A)\n\n\t\t8.Student Who play Both Games \n\n\t\t9.Exit" l_.str.5: ; @.str.5 .asciz "\n\n\n\t\tEnter Your Choice:" l_.str.6: ; @.str.6 .asciz "%d" l_.str.7: ; @.str.7 .asciz "\n\n\t\t Enter students present in class" l_.str.8: ; @.str.8 .asciz "\n\n\t\t Student Who play Badminton \n\n" l_.str.9: ; @.str.9 .asciz "\n\n\t\t Student Who play Cricket \n\n" l_.str.10: ; @.str.10 .asciz "\n\n\n\t\t *** Student Who play Badminton *** :\n\n" l_.str.11: ; @.str.11 .asciz "\n\n\n\t\t Roll No of Students :-->\n" l_.str.12: ; @.str.12 .asciz "\n\n\n\t\t *** Student Who play Cricket*** :\n\n" l_.str.13: ; @.str.13 .asciz "\n\n\n\t\t Roll No of Students :-->\n" l_.str.14: ; @.str.14 .asciz "\n\n\n\t\t Student Who play Badminton ,Cricket Or Both(AUB):-->\n" l_.str.15: ; @.str.15 .asciz "\n\n\n\t\t Student Who play neither Badminton nor Cricket:-->\n" l_.str.16: ; @.str.16 .asciz "\n\n\n\t\t Student Who play only Badminton (A-B):-->\n" l_.str.17: ; @.str.17 .asciz "\n\n\n\t\t Student Who play only Cricket (B-A):-->\n" l_.str.18: ; @.str.18 .asciz "\n\n\n\t\t Student Who both the game:-->\n" l_.str.19: ; @.str.19 .asciz "\n\n\n\t\tDo u want to continue............" l_.str.20: ; @.str.20 .asciz "\n\n\t\tEnter No. of Students :\t" l_.str.21: ; @.str.21 .asciz "\n\n\n\t\tEnter Roll no of Student :\n" l_.str.22: ; @.str.22 .asciz "\n\n\n\t\t\tNULL SET" l_.str.23: ; @.str.23 .asciz "\n\n\t\t{ " l_.str.24: ; @.str.24 .asciz "%d " l_.str.25: ; @.str.25 .asciz "}" .comm _total,4,2 ; @total .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $1200, %rsp ## imm = 0x4B0 movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -1156(%rbp) movl $0, -1152(%rbp) movl $0, -1024(%rbp) movl $0, -896(%rbp) movl $0, -768(%rbp) movl $0, -640(%rbp) movl $0, -512(%rbp) movl $0, -384(%rbp) movl $0, -256(%rbp) movl $0, -128(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 leaq L_.str(%rip), %rdi movq %rdi, -1192(%rbp) ## 8-byte Spill xorl %eax, %eax ## kill: def $al killed $al killed $eax movb %al, -1177(%rbp) ## 1-byte Spill callq _printf ## kill: def $ecx killed $eax movb -1177(%rbp), %al ## 1-byte Reload leaq L_.str.1(%rip), %rdi callq _printf ## kill: def $ecx killed $eax movb -1177(%rbp), %al ## 1-byte Reload leaq L_.str.2(%rip), %rdi callq _printf ## kill: def $ecx killed $eax movb -1177(%rbp), %al ## 1-byte Reload leaq L_.str.3(%rip), %rdi callq _printf ## kill: def $ecx killed $eax movb -1177(%rbp), %al ## 1-byte Reload leaq L_.str.4(%rip), %rdi callq _printf movq -1192(%rbp), %rdi ## 8-byte Reload ## kill: def $ecx killed $eax movb -1177(%rbp), %al ## 1-byte Reload callq _printf ## kill: def $ecx killed $eax movb -1177(%rbp), %al ## 1-byte Reload leaq L_.str.5(%rip), %rdi callq _printf ## kill: def $ecx killed $eax movb -1177(%rbp), %al ## 1-byte Reload leaq L_.str.6(%rip), %rdi leaq -1164(%rbp), %rsi callq _scanf movl -1164(%rbp), %eax decl %eax movl %eax, %ecx movq %rcx, -1176(%rbp) ## 8-byte Spill subl $8, %eax ja LBB0_11 ## %bb.18: ## in Loop: Header=BB0_1 Depth=1 movq -1176(%rbp), %rax ## 8-byte Reload leaq LJTI0_0(%rip), %rcx movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax LBB0_2: ## in Loop: Header=BB0_1 Depth=1 leaq L_.str.7(%rip), %rdi movb $0, %al callq _printf leaq -512(%rbp), %rdi callq _insert leaq L_.str.8(%rip), %rdi movb $0, %al callq _printf leaq -128(%rbp), %rdi callq _insert leaq L_.str.9(%rip), %rdi movb $0, %al callq _printf leaq -256(%rbp), %rdi callq _insert jmp LBB0_11 LBB0_3: ## in Loop: Header=BB0_1 Depth=1 leaq L_.str.10(%rip), %rdi movb $0, %al callq _printf leaq L_.str.11(%rip), %rdi movb $0, %al callq _printf leaq -128(%rbp), %rdi callq _display jmp LBB0_11 LBB0_4: ## in Loop: Header=BB0_1 Depth=1 leaq L_.str.12(%rip), %rdi movb $0, %al callq _printf leaq L_.str.13(%rip), %rdi movb $0, %al callq _printf leaq -256(%rbp), %rdi callq _display jmp LBB0_11 LBB0_5: ## in Loop: Header=BB0_1 Depth=1 leaq -128(%rbp), %rdi leaq -256(%rbp), %rsi leaq -384(%rbp), %rdx callq _Union leaq L_.str.14(%rip), %rdi movb $0, %al callq _printf leaq -384(%rbp), %rdi callq _display jmp LBB0_11 LBB0_6: ## in Loop: Header=BB0_1 Depth=1 leaq -512(%rbp), %rdi leaq -384(%rbp), %rsi leaq -640(%rbp), %rdx callq _difference leaq L_.str.15(%rip), %rdi movb $0, %al callq _printf leaq -640(%rbp), %rdi callq _display jmp LBB0_11 LBB0_7: ## in Loop: Header=BB0_1 Depth=1 leaq -128(%rbp), %rdi leaq -256(%rbp), %rsi leaq -768(%rbp), %rdx callq _difference leaq L_.str.16(%rip), %rdi movb $0, %al callq _printf leaq -768(%rbp), %rdi callq _display jmp LBB0_11 LBB0_8: ## in Loop: Header=BB0_1 Depth=1 leaq -256(%rbp), %rdi leaq -128(%rbp), %rsi leaq -896(%rbp), %rdx callq _difference leaq L_.str.17(%rip), %rdi movb $0, %al callq _printf leaq -896(%rbp), %rdi callq _display jmp LBB0_11 LBB0_9: ## in Loop: Header=BB0_1 Depth=1 leaq -128(%rbp), %rdi leaq -768(%rbp), %rsi leaq -1152(%rbp), %rdx callq _difference leaq L_.str.18(%rip), %rdi movb $0, %al callq _printf leaq -1152(%rbp), %rdi callq _display jmp LBB0_11 LBB0_10: xorl %edi, %edi callq _exit LBB0_11: ## in Loop: Header=BB0_1 Depth=1 leaq L_.str.19(%rip), %rdi movb $0, %al callq _printf leaq L_.str.6(%rip), %rdi leaq -1168(%rbp), %rsi movb $0, %al callq _scanf cmpl $0, -1168(%rbp) jne LBB0_13 ## %bb.12: jmp LBB0_15 LBB0_13: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_14 LBB0_14: ## in Loop: Header=BB0_1 Depth=1 cmpl $8, -1164(%rbp) jne LBB0_1 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 $1200, %rsp ## imm = 0x4B0 popq %rbp retq LBB0_17: callq ___stack_chk_fail ud2 .cfi_endproc .p2align 2, 0x90 .data_region jt32 .set L0_0_set_2, LBB0_2-LJTI0_0 .set L0_0_set_3, LBB0_3-LJTI0_0 .set L0_0_set_4, LBB0_4-LJTI0_0 .set L0_0_set_5, LBB0_5-LJTI0_0 .set L0_0_set_6, LBB0_6-LJTI0_0 .set L0_0_set_7, LBB0_7-LJTI0_0 .set L0_0_set_8, LBB0_8-LJTI0_0 .set L0_0_set_9, LBB0_9-LJTI0_0 .set L0_0_set_10, LBB0_10-LJTI0_0 LJTI0_0: .long L0_0_set_2 .long L0_0_set_3 .long L0_0_set_4 .long L0_0_set_5 .long L0_0_set_6 .long L0_0_set_7 .long L0_0_set_8 .long L0_0_set_9 .long L0_0_set_10 .end_data_region ## -- End function .globl _insert ## -- Begin function insert .p2align 4, 0x90 _insert: ## @insert .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movq -8(%rbp), %rax movl $0, (%rax) leaq L_.str.20(%rip), %rdi movb $0, %al callq _printf leaq L_.str.6(%rip), %rdi leaq -12(%rbp), %rsi movb $0, %al callq _scanf movl -12(%rbp), %ecx movq -8(%rbp), %rax movl %ecx, (%rax) leaq L_.str.21(%rip), %rdi movb $0, %al callq _printf movl $1, -16(%rbp) LBB1_1: ## =>This Inner Loop Header: Depth=1 movl -16(%rbp), %eax cmpl -12(%rbp), %eax jg LBB1_4 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 movq -8(%rbp), %rsi movslq -16(%rbp), %rax shlq $2, %rax addq %rax, %rsi leaq L_.str.6(%rip), %rdi movb $0, %al callq _scanf ## %bb.3: ## in Loop: Header=BB1_1 Depth=1 movl -16(%rbp), %eax addl $1, %eax movl %eax, -16(%rbp) jmp LBB1_1 LBB1_4: addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _display ## -- Begin function display .p2align 4, 0x90 _display: ## @display .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) movq -8(%rbp), %rax movl (%rax), %eax movl %eax, -16(%rbp) cmpl $0, -16(%rbp) jne LBB2_2 ## %bb.1: leaq L_.str.22(%rip), %rdi movb $0, %al callq _printf jmp LBB2_7 LBB2_2: leaq L_.str.23(%rip), %rdi movb $0, %al callq _printf movl $1, -12(%rbp) LBB2_3: ## =>This Inner Loop Header: Depth=1 movl -12(%rbp), %eax cmpl -16(%rbp), %eax jg LBB2_6 ## %bb.4: ## in Loop: Header=BB2_3 Depth=1 movq -8(%rbp), %rax movslq -12(%rbp), %rcx movl (%rax,%rcx,4), %esi leaq L_.str.24(%rip), %rdi movb $0, %al callq _printf ## %bb.5: ## in Loop: Header=BB2_3 Depth=1 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB2_3 LBB2_6: leaq L_.str.25(%rip), %rdi movb $0, %al callq _printf LBB2_7: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _Union ## -- Begin function Union .p2align 4, 0x90 _Union: ## @Union .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 -8(%rbp), %rax movl (%rax), %eax movl %eax, -32(%rbp) movl $0, -28(%rbp) LBB3_1: ## =>This Inner Loop Header: Depth=1 movl -28(%rbp), %eax cmpl -32(%rbp), %eax jg LBB3_4 ## %bb.2: ## in Loop: Header=BB3_1 Depth=1 movq -8(%rbp), %rax movslq -28(%rbp), %rcx movl (%rax,%rcx,4), %edx movq -24(%rbp), %rax movslq -28(%rbp), %rcx movl %edx, (%rax,%rcx,4) ## %bb.3: ## in Loop: Header=BB3_1 Depth=1 movl -28(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) jmp LBB3_1 LBB3_4: movl -32(%rbp), %eax movl %eax, -40(%rbp) movl -40(%rbp), %eax addl $1, %eax movl %eax, -40(%rbp) movq -16(%rbp), %rax movl (%rax), %eax movl %eax, -36(%rbp) movl $1, -28(%rbp) LBB3_5: ## =>This Loop Header: Depth=1 ## Child Loop BB3_7 Depth 2 movl -28(%rbp), %eax cmpl -36(%rbp), %eax jg LBB3_17 ## %bb.6: ## in Loop: Header=BB3_5 Depth=1 movl $1, -44(%rbp) LBB3_7: ## Parent Loop BB3_5 Depth=1 ## => This Inner Loop Header: Depth=2 movl -44(%rbp), %eax cmpl -32(%rbp), %eax jg LBB3_13 ## %bb.8: ## in Loop: Header=BB3_7 Depth=2 movq -16(%rbp), %rax movslq -28(%rbp), %rcx movl (%rax,%rcx,4), %eax movq -8(%rbp), %rcx movslq -44(%rbp), %rdx cmpl (%rcx,%rdx,4), %eax je LBB3_10 ## %bb.9: ## in Loop: Header=BB3_7 Depth=2 movl $1, -48(%rbp) jmp LBB3_11 LBB3_10: ## in Loop: Header=BB3_5 Depth=1 movl $0, -48(%rbp) jmp LBB3_13 LBB3_11: ## in Loop: Header=BB3_7 Depth=2 jmp LBB3_12 LBB3_12: ## in Loop: Header=BB3_7 Depth=2 movl -44(%rbp), %eax addl $1, %eax movl %eax, -44(%rbp) jmp LBB3_7 LBB3_13: ## in Loop: Header=BB3_5 Depth=1 cmpl $1, -48(%rbp) jne LBB3_15 ## %bb.14: ## in Loop: Header=BB3_5 Depth=1 movq -24(%rbp), %rax movl (%rax), %ecx addl $1, %ecx movl %ecx, (%rax) movq -16(%rbp), %rax movslq -28(%rbp), %rcx movl (%rax,%rcx,4), %edx movq -24(%rbp), %rax movslq -40(%rbp), %rcx movl %edx, (%rax,%rcx,4) movl -40(%rbp), %eax addl $1, %eax movl %eax, -40(%rbp) LBB3_15: ## in Loop: Header=BB3_5 Depth=1 jmp LBB3_16 LBB3_16: ## in Loop: Header=BB3_5 Depth=1 movl -28(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) jmp LBB3_5 LBB3_17: popq %rbp retq .cfi_endproc ## -- End function .globl _difference ## -- Begin function difference .p2align 4, 0x90 _difference: ## @difference .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) movq %rdx, -24(%rbp) movl $1, -40(%rbp) movl $1, -48(%rbp) movq -8(%rbp), %rax movl (%rax), %eax movl %eax, -32(%rbp) movq -16(%rbp), %rax movl (%rax), %eax movl %eax, -36(%rbp) movq -24(%rbp), %rax movl $0, (%rax) movl $1, -28(%rbp) LBB4_1: ## =>This Loop Header: Depth=1 ## Child Loop BB4_3 Depth 2 movl -28(%rbp), %eax cmpl -32(%rbp), %eax jg LBB4_13 ## %bb.2: ## in Loop: Header=BB4_1 Depth=1 movl $1, -44(%rbp) LBB4_3: ## Parent Loop BB4_1 Depth=1 ## => This Inner Loop Header: Depth=2 movl -44(%rbp), %eax cmpl -36(%rbp), %eax jg LBB4_9 ## %bb.4: ## in Loop: Header=BB4_3 Depth=2 movq -8(%rbp), %rax movslq -28(%rbp), %rcx movl (%rax,%rcx,4), %eax movq -16(%rbp), %rcx movslq -44(%rbp), %rdx cmpl (%rcx,%rdx,4), %eax je LBB4_6 ## %bb.5: ## in Loop: Header=BB4_3 Depth=2 movl $1, -48(%rbp) jmp LBB4_7 LBB4_6: ## in Loop: Header=BB4_1 Depth=1 movl $0, -48(%rbp) jmp LBB4_9 LBB4_7: ## in Loop: Header=BB4_3 Depth=2 jmp LBB4_8 LBB4_8: ## in Loop: Header=BB4_3 Depth=2 movl -44(%rbp), %eax addl $1, %eax movl %eax, -44(%rbp) jmp LBB4_3 LBB4_9: ## in Loop: Header=BB4_1 Depth=1 cmpl $1, -48(%rbp) jne LBB4_11 ## %bb.10: ## in Loop: Header=BB4_1 Depth=1 movq -8(%rbp), %rax movslq -28(%rbp), %rcx movl (%rax,%rcx,4), %edx movq -24(%rbp), %rax movslq -40(%rbp), %rcx movl %edx, (%rax,%rcx,4) movq -24(%rbp), %rax movl (%rax), %ecx addl $1, %ecx movl %ecx, (%rax) movl -40(%rbp), %eax addl $1, %eax movl %eax, -40(%rbp) LBB4_11: ## in Loop: Header=BB4_1 Depth=1 jmp LBB4_12 LBB4_12: ## in Loop: Header=BB4_1 Depth=1 movl -28(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) jmp LBB4_1 LBB4_13: popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "\n\n\t\t------------------------------------------------------------" L_.str.1: ## @.str.1 .asciz "\n\n\t\t\t*** MENU ***" L_.str.2: ## @.str.2 .asciz "\n\n\t\t1.Enter the choice of student\n\n\t\t2.Student Who play Badminton \n\n\t\t3.Student Who play Cricket" L_.str.3: ## @.str.3 .asciz "\n\n\t\t4.Student Who play Badminton ,Cricket Or Both\n\n\t\t5.Student Who play neither Badminton nor Cricket " L_.str.4: ## @.str.4 .asciz "\n\n\t\t6.Student Who play only Badminton(A-B)\n\n\t\t7.Student Who play only Cricket(B-A)\n\n\t\t8.Student Who play Both Games \n\n\t\t9.Exit" L_.str.5: ## @.str.5 .asciz "\n\n\n\t\tEnter Your Choice:" L_.str.6: ## @.str.6 .asciz "%d" L_.str.7: ## @.str.7 .asciz "\n\n\t\t Enter students present in class" L_.str.8: ## @.str.8 .asciz "\n\n\t\t Student Who play Badminton \n\n" L_.str.9: ## @.str.9 .asciz "\n\n\t\t Student Who play Cricket \n\n" L_.str.10: ## @.str.10 .asciz "\n\n\n\t\t *** Student Who play Badminton *** :\n\n" L_.str.11: ## @.str.11 .asciz "\n\n\n\t\t Roll No of Students :-->\n" L_.str.12: ## @.str.12 .asciz "\n\n\n\t\t *** Student Who play Cricket*** :\n\n" L_.str.13: ## @.str.13 .asciz "\n\n\n\t\t Roll No of Students :-->\n" L_.str.14: ## @.str.14 .asciz "\n\n\n\t\t Student Who play Badminton ,Cricket Or Both(AUB):-->\n" L_.str.15: ## @.str.15 .asciz "\n\n\n\t\t Student Who play neither Badminton nor Cricket:-->\n" L_.str.16: ## @.str.16 .asciz "\n\n\n\t\t Student Who play only Badminton (A-B):-->\n" L_.str.17: ## @.str.17 .asciz "\n\n\n\t\t Student Who play only Cricket (B-A):-->\n" L_.str.18: ## @.str.18 .asciz "\n\n\n\t\t Student Who both the game:-->\n" L_.str.19: ## @.str.19 .asciz "\n\n\n\t\tDo u want to continue............" L_.str.20: ## @.str.20 .asciz "\n\n\t\tEnter No. of Students :\t" L_.str.21: ## @.str.21 .asciz "\n\n\n\t\tEnter Roll no of Student :\n" L_.str.22: ## @.str.22 .asciz "\n\n\n\t\t\tNULL SET" L_.str.23: ## @.str.23 .asciz "\n\n\t\t{ " L_.str.24: ## @.str.24 .asciz "%d " L_.str.25: ## @.str.25 .asciz "}" .comm _total,4,2 ## @total .subsections_via_symbols
the_stack_data/345847.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _max_of_four ; -- Begin function max_of_four .p2align 2 _max_of_four: ; @max_of_four .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 str w0, [sp, #44] str w1, [sp, #40] str w2, [sp, #36] str w3, [sp, #32] ldr w8, [sp, #44] ldr w9, [sp, #40] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: ldr w8, [sp, #44] str w8, [sp, #20] ; 4-byte Folded Spill b LBB0_3 LBB0_2: ldr w8, [sp, #40] str w8, [sp, #20] ; 4-byte Folded Spill b LBB0_3 LBB0_3: ldr w8, [sp, #20] ; 4-byte Folded Reload str w8, [sp, #28] ldr w8, [sp, #36] ldr w9, [sp, #32] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB0_5 b LBB0_4 LBB0_4: ldr w8, [sp, #36] str w8, [sp, #16] ; 4-byte Folded Spill b LBB0_6 LBB0_5: ldr w8, [sp, #32] str w8, [sp, #16] ; 4-byte Folded Spill b LBB0_6 LBB0_6: ldr w8, [sp, #16] ; 4-byte Folded Reload str w8, [sp, #24] ldr w8, [sp, #28] ldr w9, [sp, #24] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB0_8 b LBB0_7 LBB0_7: ldr w8, [sp, #28] str w8, [sp, #12] ; 4-byte Folded Spill b LBB0_9 LBB0_8: ldr w8, [sp, #24] str w8, [sp, #12] ; 4-byte Folded Spill b LBB0_9 LBB0_9: ldr w0, [sp, #12] ; 4-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 mov w8, #0 stur w8, [x29, #-28] ; 4-byte Folded Spill stur wzr, [x29, #-4] mov x9, sp sub x8, x29, #8 str x8, [x9] sub x8, x29, #12 str x8, [x9, #8] sub x8, x29, #16 str x8, [x9, #16] sub x8, x29, #20 str x8, [x9, #24] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _scanf ldur w0, [x29, #-8] ldur w1, [x29, #-12] ldur w2, [x29, #-16] ldur w3, [x29, #-20] bl _max_of_four stur w0, [x29, #-24] ldur w9, [x29, #-24] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf ldur w0, [x29, #-28] ; 4-byte Folded Reload ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d %d %d %d" l_.str.1: ; @.str.1 .asciz "%d" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _max_of_four ## -- Begin function max_of_four .p2align 4, 0x90 _max_of_four: ## @max_of_four .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, -4(%rbp) movl %esi, -8(%rbp) movl %edx, -12(%rbp) movl %ecx, -16(%rbp) movl -4(%rbp), %eax cmpl -8(%rbp), %eax jle LBB0_2 ## %bb.1: movl -4(%rbp), %eax movl %eax, -28(%rbp) ## 4-byte Spill jmp LBB0_3 LBB0_2: movl -8(%rbp), %eax movl %eax, -28(%rbp) ## 4-byte Spill LBB0_3: movl -28(%rbp), %eax ## 4-byte Reload movl %eax, -20(%rbp) movl -12(%rbp), %eax cmpl -16(%rbp), %eax jle LBB0_5 ## %bb.4: movl -12(%rbp), %eax movl %eax, -32(%rbp) ## 4-byte Spill jmp LBB0_6 LBB0_5: movl -16(%rbp), %eax movl %eax, -32(%rbp) ## 4-byte Spill LBB0_6: movl -32(%rbp), %eax ## 4-byte Reload movl %eax, -24(%rbp) movl -20(%rbp), %eax cmpl -24(%rbp), %eax jle LBB0_8 ## %bb.7: movl -20(%rbp), %eax movl %eax, -36(%rbp) ## 4-byte Spill jmp LBB0_9 LBB0_8: movl -24(%rbp), %eax movl %eax, -36(%rbp) ## 4-byte Spill LBB0_9: movl -36(%rbp), %eax ## 4-byte Reload popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl $0, -4(%rbp) leaq L_.str(%rip), %rdi leaq -8(%rbp), %rsi leaq -12(%rbp), %rdx leaq -16(%rbp), %rcx leaq -20(%rbp), %r8 movb $0, %al callq _scanf movl -8(%rbp), %edi movl -12(%rbp), %esi movl -16(%rbp), %edx movl -20(%rbp), %ecx callq _max_of_four movl %eax, -24(%rbp) movl -24(%rbp), %esi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf xorl %eax, %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d %d %d %d" L_.str.1: ## @.str.1 .asciz "%d" .subsections_via_symbols
the_stack_data/231392805.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] str wzr, [sp, #24] str w0, [sp, #20] str x1, [sp, #8] mov w8, #1 str w8, [sp, #4] str wzr, [sp] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp] mov w9, #4105 subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: b LBB0_5 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 mov x9, #4105 sub x8, x29, #18 add x9, x8, x9 mov w8, #65 strb w8, [x9] b LBB0_4 LBB0_4: ; in Loop: Header=BB0_1 Depth=1 ldr w9, [sp, #4] ldr w8, [sp] add w8, w8, w9 str w8, [sp] b LBB0_1 LBB0_5: ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_7 b LBB0_6 LBB0_6: bl ___stack_chk_fail LBB0_7: mov w0, #0 ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -24(%rbp) movl %edi, -28(%rbp) movq %rsi, -40(%rbp) movl $1, -44(%rbp) movl $0, -48(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 cmpl $4105, -48(%rbp) ## imm = 0x1009 jle LBB0_3 ## %bb.2: jmp LBB0_5 LBB0_3: ## in Loop: Header=BB0_1 Depth=1 movb $65, 4087(%rbp) ## %bb.4: ## in Loop: Header=BB0_1 Depth=1 movl -44(%rbp), %eax addl -48(%rbp), %eax movl %eax, -48(%rbp) jmp LBB0_1 LBB0_5: movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_7 ## %bb.6: xorl %eax, %eax addq $48, %rsp popq %rbp retq LBB0_7: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/14201587.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #0 str w8, [sp, #8] ; 4-byte Folded Spill stur wzr, [x29, #-4] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldr w0, [sp, #8] ; 4-byte Folded Reload ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "hello world\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) leaq L_.str(%rip), %rdi movb $0, %al callq _printf xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "hello world\n" .subsections_via_symbols
the_stack_data/730760.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #144 .cfi_def_cfa_offset 144 stp x29, x30, [sp, #128] ; 16-byte Folded Spill add x29, sp, #128 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] str wzr, [sp, #36] str wzr, [sp, #32] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #32] subs w8, w8, #10 cset w8, ge tbnz w8, #0, LBB0_4 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldrsw x10, [sp, #32] add x9, sp, #40 mov w8, #1 str w8, [x9, x10, lsl #2] b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #32] add w8, w8, #1 str w8, [sp, #32] b LBB0_1 LBB0_4: str wzr, [sp, #28] b LBB0_5 LBB0_5: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #28] subs w8, w8, #10 cset w8, ge tbnz w8, #0, LBB0_8 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_5 Depth=1 adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldrsw x9, [sp, #28] sub x8, x29, #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 bl _scanf b LBB0_7 LBB0_7: ; in Loop: Header=BB0_5 Depth=1 ldr w8, [sp, #28] add w8, w8, #1 str w8, [sp, #28] b LBB0_5 LBB0_8: str wzr, [sp, #24] b LBB0_9 LBB0_9: ; =>This Loop Header: Depth=1 ; Child Loop BB0_11 Depth 2 ldr w8, [sp, #24] subs w8, w8, #10 cset w8, ge tbnz w8, #0, LBB0_18 b LBB0_10 LBB0_10: ; in Loop: Header=BB0_9 Depth=1 mov w8, #2 str w8, [sp, #20] b LBB0_11 LBB0_11: ; Parent Loop BB0_9 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #20] ldrsw x10, [sp, #24] sub x9, x29, #48 ldr w9, [x9, x10, lsl #2] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_16 b LBB0_12 LBB0_12: ; in Loop: Header=BB0_11 Depth=2 ldrsw x9, [sp, #24] sub x8, x29, #48 ldr w8, [x8, x9, lsl #2] ldr w10, [sp, #20] sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_14 b LBB0_13 LBB0_13: ; in Loop: Header=BB0_9 Depth=1 ldrsw x10, [sp, #24] add x9, sp, #40 mov w8, #0 str w8, [x9, x10, lsl #2] b LBB0_16 LBB0_14: ; in Loop: Header=BB0_11 Depth=2 b LBB0_15 LBB0_15: ; in Loop: Header=BB0_11 Depth=2 ldr w8, [sp, #20] add w8, w8, #1 str w8, [sp, #20] b LBB0_11 LBB0_16: ; in Loop: Header=BB0_9 Depth=1 b LBB0_17 LBB0_17: ; in Loop: Header=BB0_9 Depth=1 ldr w8, [sp, #24] add w8, w8, #1 str w8, [sp, #24] b LBB0_9 LBB0_18: str wzr, [sp, #16] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf str wzr, [sp, #12] b LBB0_19 LBB0_19: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #12] subs w8, w8, #10 cset w8, ge tbnz w8, #0, LBB0_24 b LBB0_20 LBB0_20: ; in Loop: Header=BB0_19 Depth=1 ldrsw x9, [sp, #12] add x8, sp, #40 ldr w8, [x8, x9, lsl #2] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB0_22 b LBB0_21 LBB0_21: ; in Loop: Header=BB0_19 Depth=1 ldr w9, [sp, #16] ldrsw x10, [sp, #12] sub x8, x29, #48 ldr w10, [x8, x10, lsl #2] add w9, w9, w10 str w9, [sp, #16] ldrsw x9, [sp, #12] ldr w9, [x8, x9, lsl #2] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf b LBB0_22 LBB0_22: ; in Loop: Header=BB0_19 Depth=1 b LBB0_23 LBB0_23: ; in Loop: Header=BB0_19 Depth=1 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB0_19 LBB0_24: 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 ldr w8, [sp, #36] 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_26 b LBB0_25 LBB0_25: bl ___stack_chk_fail LBB0_26: ldr w0, [sp, #8] ; 4-byte Folded Reload ldp x29, x30, [sp, #128] ; 16-byte Folded Reload add sp, sp, #144 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Digite um numero: " l_.str.1: ; @.str.1 .asciz "%d" l_.str.2: ; @.str.2 .asciz "os numeros primos sao: " l_.str.3: ; @.str.3 .asciz "%d, " l_.str.4: ; @.str.4 .asciz "\nA soma eh: %d" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $128, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -100(%rbp) movl $0, -104(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 cmpl $10, -104(%rbp) jge LBB0_4 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movslq -104(%rbp), %rax movl $1, -96(%rbp,%rax,4) ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movl -104(%rbp), %eax addl $1, %eax movl %eax, -104(%rbp) jmp LBB0_1 LBB0_4: movl $0, -108(%rbp) LBB0_5: ## =>This Inner Loop Header: Depth=1 cmpl $10, -108(%rbp) jge LBB0_8 ## %bb.6: ## in Loop: Header=BB0_5 Depth=1 leaq L_.str(%rip), %rdi movb $0, %al callq _printf movslq -108(%rbp), %rax leaq -48(%rbp), %rsi shlq $2, %rax addq %rax, %rsi leaq L_.str.1(%rip), %rdi movb $0, %al callq _scanf ## %bb.7: ## in Loop: Header=BB0_5 Depth=1 movl -108(%rbp), %eax addl $1, %eax movl %eax, -108(%rbp) jmp LBB0_5 LBB0_8: movl $0, -112(%rbp) LBB0_9: ## =>This Loop Header: Depth=1 ## Child Loop BB0_11 Depth 2 cmpl $10, -112(%rbp) jge LBB0_18 ## %bb.10: ## in Loop: Header=BB0_9 Depth=1 movl $2, -116(%rbp) LBB0_11: ## Parent Loop BB0_9 Depth=1 ## => This Inner Loop Header: Depth=2 movl -116(%rbp), %eax movslq -112(%rbp), %rcx cmpl -48(%rbp,%rcx,4), %eax jge LBB0_16 ## %bb.12: ## in Loop: Header=BB0_11 Depth=2 movslq -112(%rbp), %rax movl -48(%rbp,%rax,4), %eax cltd idivl -116(%rbp) cmpl $0, %edx jne LBB0_14 ## %bb.13: ## in Loop: Header=BB0_9 Depth=1 movslq -112(%rbp), %rax movl $0, -96(%rbp,%rax,4) jmp LBB0_16 LBB0_14: ## in Loop: Header=BB0_11 Depth=2 jmp LBB0_15 LBB0_15: ## in Loop: Header=BB0_11 Depth=2 movl -116(%rbp), %eax addl $1, %eax movl %eax, -116(%rbp) jmp LBB0_11 LBB0_16: ## in Loop: Header=BB0_9 Depth=1 jmp LBB0_17 LBB0_17: ## in Loop: Header=BB0_9 Depth=1 movl -112(%rbp), %eax addl $1, %eax movl %eax, -112(%rbp) jmp LBB0_9 LBB0_18: movl $0, -120(%rbp) leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf movl $0, -124(%rbp) LBB0_19: ## =>This Inner Loop Header: Depth=1 cmpl $10, -124(%rbp) jge LBB0_24 ## %bb.20: ## in Loop: Header=BB0_19 Depth=1 movslq -124(%rbp), %rax cmpl $1, -96(%rbp,%rax,4) jne LBB0_22 ## %bb.21: ## in Loop: Header=BB0_19 Depth=1 movl -120(%rbp), %eax movslq -124(%rbp), %rcx addl -48(%rbp,%rcx,4), %eax movl %eax, -120(%rbp) movslq -124(%rbp), %rax movl -48(%rbp,%rax,4), %esi leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf LBB0_22: ## in Loop: Header=BB0_19 Depth=1 jmp LBB0_23 LBB0_23: ## in Loop: Header=BB0_19 Depth=1 movl -124(%rbp), %eax addl $1, %eax movl %eax, -124(%rbp) jmp LBB0_19 LBB0_24: movl -120(%rbp), %esi leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf movl -100(%rbp), %eax movl %eax, -128(%rbp) ## 4-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_26 ## %bb.25: movl -128(%rbp), %eax ## 4-byte Reload addq $128, %rsp popq %rbp retq LBB0_26: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Digite um numero: " L_.str.1: ## @.str.1 .asciz "%d" L_.str.2: ## @.str.2 .asciz "os numeros primos sao: " L_.str.3: ## @.str.3 .asciz "%d, " L_.str.4: ## @.str.4 .asciz "\nA soma eh: %d" .subsections_via_symbols
the_stack_data/203536.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _soma ; -- Begin function soma .p2align 2 _soma: ; @soma .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #12] str w1, [sp, #8] str w2, [sp, #4] ldr w8, [sp, #12] ldr w9, [sp, #8] add w8, w8, w9 ldr w9, [sp, #4] add w0, w8, w9 add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #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@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov x9, sp sub x8, x29, #4 str x8, [x9] sub x8, x29, #8 str x8, [x9, #8] sub x8, x29, #12 str x8, [x9, #16] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf ldur w0, [x29, #-4] ldur w1, [x29, #-8] ldur w2, [x29, #-12] bl _soma stur w0, [x29, #-20] ldur w9, [x29, #-20] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf 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 "digite 3 valores: " l_.str.1: ; @.str.1 .asciz "%d %d %d" l_.str.2: ; @.str.2 .asciz "a resultado e: %d" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _soma ## -- Begin function soma .p2align 4, 0x90 _soma: ## @soma .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, -4(%rbp) movl %esi, -8(%rbp) movl %edx, -12(%rbp) movl -4(%rbp), %eax addl -8(%rbp), %eax addl -12(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp leaq L_.str(%rip), %rdi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi leaq -4(%rbp), %rsi leaq -8(%rbp), %rdx leaq -12(%rbp), %rcx movb $0, %al callq _scanf movl -4(%rbp), %edi movl -8(%rbp), %esi movl -12(%rbp), %edx callq _soma movl %eax, -20(%rbp) movl -20(%rbp), %esi leaq L_.str.2(%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 "digite 3 valores: " L_.str.1: ## @.str.1 .asciz "%d %d %d" L_.str.2: ## @.str.2 .asciz "a resultado e: %d" .subsections_via_symbols
the_stack_data/405248.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _malloc3dArray ; -- Begin function malloc3dArray .p2align 2 _malloc3dArray: ; @malloc3dArray .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] stur w2, [x29, #-12] ldursw x8, [x29, #-4] lsl x0, x8, #3 bl _malloc str x0, [sp] str wzr, [sp, #16] b LBB0_1 LBB0_1: ; =>This Loop Header: Depth=1 ; Child Loop BB0_3 Depth 2 ldr w8, [sp, #16] ldur w9, [x29, #-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 ldursw x8, [x29, #-8] lsl x0, x8, #3 bl _malloc ldr x8, [sp] ldrsw x9, [sp, #16] str x0, [x8, x9, lsl #3] str wzr, [sp, #12] b LBB0_3 LBB0_3: ; Parent Loop BB0_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #12] 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 ldursw x8, [x29, #-12] lsl x0, x8, #2 bl _malloc ldr x8, [sp] ldrsw x9, [sp, #16] ldr x8, [x8, x9, lsl #3] ldrsw x9, [sp, #12] str x0, [x8, x9, lsl #3] b LBB0_5 LBB0_5: ; in Loop: Header=BB0_3 Depth=2 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB0_3 LBB0_6: ; in Loop: Header=BB0_1 Depth=1 b LBB0_7 LBB0_7: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #16] add w8, w8, #1 str w8, [sp, #16] b LBB0_1 LBB0_8: ldr x0, [sp] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] mov w8, #10 stur w8, [x29, #-20] mov w8, #20 str w8, [sp, #24] mov w8, #30 str w8, [sp, #20] ldur w0, [x29, #-20] ldr w1, [sp, #24] ldr w2, [sp, #20] bl _malloc3dArray stur x0, [x29, #-16] str wzr, [sp, #16] b LBB1_1 LBB1_1: ; =>This Loop Header: Depth=1 ; Child Loop BB1_3 Depth 2 ; Child Loop BB1_5 Depth 3 ldr w8, [sp, #16] ldur w9, [x29, #-20] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_12 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 str wzr, [sp, #12] b LBB1_3 LBB1_3: ; Parent Loop BB1_1 Depth=1 ; => This Loop Header: Depth=2 ; Child Loop BB1_5 Depth 3 ldr w8, [sp, #12] ldr w9, [sp, #24] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_10 b LBB1_4 LBB1_4: ; in Loop: Header=BB1_3 Depth=2 str wzr, [sp, #8] b LBB1_5 LBB1_5: ; Parent Loop BB1_1 Depth=1 ; Parent Loop BB1_3 Depth=2 ; => This Inner Loop Header: Depth=3 ldr w8, [sp, #8] ldr w9, [sp, #20] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_8 b LBB1_6 LBB1_6: ; in Loop: Header=BB1_5 Depth=3 ldr w8, [sp, #16] ldr w9, [sp, #12] mul w8, w8, w9 ldr w9, [sp, #8] mul w8, w8, w9 ldur x9, [x29, #-16] ldrsw x10, [sp, #16] ldr x9, [x9, x10, lsl #3] ldrsw x10, [sp, #12] ldr x9, [x9, x10, lsl #3] ldrsw x10, [sp, #8] str w8, [x9, x10, lsl #2] b LBB1_7 LBB1_7: ; in Loop: Header=BB1_5 Depth=3 ldr w8, [sp, #8] add w8, w8, #1 str w8, [sp, #8] b LBB1_5 LBB1_8: ; in Loop: Header=BB1_3 Depth=2 b LBB1_9 LBB1_9: ; in Loop: Header=BB1_3 Depth=2 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB1_3 LBB1_10: ; in Loop: Header=BB1_1 Depth=1 b LBB1_11 LBB1_11: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #16] add w8, w8, #1 str w8, [sp, #16] b LBB1_1 LBB1_12: str wzr, [sp, #16] b LBB1_13 LBB1_13: ; =>This Loop Header: Depth=1 ; Child Loop BB1_15 Depth 2 ; Child Loop BB1_17 Depth 3 ldr w8, [sp, #16] ldur w9, [x29, #-20] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_24 b LBB1_14 LBB1_14: ; in Loop: Header=BB1_13 Depth=1 str wzr, [sp, #12] b LBB1_15 LBB1_15: ; Parent Loop BB1_13 Depth=1 ; => This Loop Header: Depth=2 ; Child Loop BB1_17 Depth 3 ldr w8, [sp, #12] ldr w9, [sp, #24] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_22 b LBB1_16 LBB1_16: ; in Loop: Header=BB1_15 Depth=2 str wzr, [sp, #8] b LBB1_17 LBB1_17: ; Parent Loop BB1_13 Depth=1 ; Parent Loop BB1_15 Depth=2 ; => This Inner Loop Header: Depth=3 ldr w8, [sp, #8] ldr w9, [sp, #20] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_20 b LBB1_18 LBB1_18: ; in Loop: Header=BB1_17 Depth=3 ldur x8, [x29, #-16] ldrsw x9, [sp, #16] ldr x8, [x8, x9, lsl #3] ldrsw x9, [sp, #12] ldr x8, [x8, x9, lsl #3] ldrsw x9, [sp, #8] ldr w9, [x8, x9, lsl #2] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf b LBB1_19 LBB1_19: ; in Loop: Header=BB1_17 Depth=3 ldr w8, [sp, #8] add w8, w8, #1 str w8, [sp, #8] b LBB1_17 LBB1_20: ; in Loop: Header=BB1_15 Depth=2 b LBB1_21 LBB1_21: ; in Loop: Header=BB1_15 Depth=2 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB1_15 LBB1_22: ; in Loop: Header=BB1_13 Depth=1 b LBB1_23 LBB1_23: ; in Loop: Header=BB1_13 Depth=1 ldr w8, [sp, #16] add w8, w8, #1 str w8, [sp, #16] b LBB1_13 LBB1_24: ldur w0, [x29, #-4] ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "[%d]" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _malloc3dArray ## -- Begin function malloc3dArray .p2align 4, 0x90 _malloc3dArray: ## @malloc3dArray .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 %edx, -12(%rbp) movslq -4(%rbp), %rdi shlq $3, %rdi callq _malloc movq %rax, -32(%rbp) movl $0, -16(%rbp) LBB0_1: ## =>This Loop Header: Depth=1 ## Child Loop BB0_3 Depth 2 movl -16(%rbp), %eax cmpl -4(%rbp), %eax jge LBB0_8 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movslq -8(%rbp), %rdi shlq $3, %rdi callq _malloc movq %rax, %rdx movq -32(%rbp), %rax movslq -16(%rbp), %rcx movq %rdx, (%rax,%rcx,8) movl $0, -20(%rbp) LBB0_3: ## Parent Loop BB0_1 Depth=1 ## => This Inner Loop Header: Depth=2 movl -20(%rbp), %eax cmpl -8(%rbp), %eax jge LBB0_6 ## %bb.4: ## in Loop: Header=BB0_3 Depth=2 movslq -12(%rbp), %rdi shlq $2, %rdi callq _malloc movq %rax, %rdx movq -32(%rbp), %rax movslq -16(%rbp), %rcx movq (%rax,%rcx,8), %rax movslq -20(%rbp), %rcx movq %rdx, (%rax,%rcx,8) ## %bb.5: ## in Loop: Header=BB0_3 Depth=2 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB0_3 LBB0_6: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_7 LBB0_7: ## in Loop: Header=BB0_1 Depth=1 movl -16(%rbp), %eax addl $1, %eax movl %eax, -16(%rbp) jmp LBB0_1 LBB0_8: movq -32(%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 $48, %rsp movl $0, -4(%rbp) movl $10, -20(%rbp) movl $20, -24(%rbp) movl $30, -28(%rbp) movl -20(%rbp), %edi movl -24(%rbp), %esi movl -28(%rbp), %edx callq _malloc3dArray movq %rax, -16(%rbp) movl $0, -32(%rbp) LBB1_1: ## =>This Loop Header: Depth=1 ## Child Loop BB1_3 Depth 2 ## Child Loop BB1_5 Depth 3 movl -32(%rbp), %eax cmpl -20(%rbp), %eax jge LBB1_12 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 movl $0, -36(%rbp) LBB1_3: ## Parent Loop BB1_1 Depth=1 ## => This Loop Header: Depth=2 ## Child Loop BB1_5 Depth 3 movl -36(%rbp), %eax cmpl -24(%rbp), %eax jge LBB1_10 ## %bb.4: ## in Loop: Header=BB1_3 Depth=2 movl $0, -40(%rbp) LBB1_5: ## Parent Loop BB1_1 Depth=1 ## Parent Loop BB1_3 Depth=2 ## => This Inner Loop Header: Depth=3 movl -40(%rbp), %eax cmpl -28(%rbp), %eax jge LBB1_8 ## %bb.6: ## in Loop: Header=BB1_5 Depth=3 movl -32(%rbp), %edx imull -36(%rbp), %edx imull -40(%rbp), %edx movq -16(%rbp), %rax movslq -32(%rbp), %rcx movq (%rax,%rcx,8), %rax movslq -36(%rbp), %rcx movq (%rax,%rcx,8), %rax movslq -40(%rbp), %rcx movl %edx, (%rax,%rcx,4) ## %bb.7: ## in Loop: Header=BB1_5 Depth=3 movl -40(%rbp), %eax addl $1, %eax movl %eax, -40(%rbp) jmp LBB1_5 LBB1_8: ## in Loop: Header=BB1_3 Depth=2 jmp LBB1_9 LBB1_9: ## in Loop: Header=BB1_3 Depth=2 movl -36(%rbp), %eax addl $1, %eax movl %eax, -36(%rbp) jmp LBB1_3 LBB1_10: ## in Loop: Header=BB1_1 Depth=1 jmp LBB1_11 LBB1_11: ## in Loop: Header=BB1_1 Depth=1 movl -32(%rbp), %eax addl $1, %eax movl %eax, -32(%rbp) jmp LBB1_1 LBB1_12: movl $0, -32(%rbp) LBB1_13: ## =>This Loop Header: Depth=1 ## Child Loop BB1_15 Depth 2 ## Child Loop BB1_17 Depth 3 movl -32(%rbp), %eax cmpl -20(%rbp), %eax jge LBB1_24 ## %bb.14: ## in Loop: Header=BB1_13 Depth=1 movl $0, -36(%rbp) LBB1_15: ## Parent Loop BB1_13 Depth=1 ## => This Loop Header: Depth=2 ## Child Loop BB1_17 Depth 3 movl -36(%rbp), %eax cmpl -24(%rbp), %eax jge LBB1_22 ## %bb.16: ## in Loop: Header=BB1_15 Depth=2 movl $0, -40(%rbp) LBB1_17: ## Parent Loop BB1_13 Depth=1 ## Parent Loop BB1_15 Depth=2 ## => This Inner Loop Header: Depth=3 movl -40(%rbp), %eax cmpl -28(%rbp), %eax jge LBB1_20 ## %bb.18: ## in Loop: Header=BB1_17 Depth=3 movq -16(%rbp), %rax movslq -32(%rbp), %rcx movq (%rax,%rcx,8), %rax movslq -36(%rbp), %rcx movq (%rax,%rcx,8), %rax movslq -40(%rbp), %rcx movl (%rax,%rcx,4), %esi leaq L_.str(%rip), %rdi movb $0, %al callq _printf ## %bb.19: ## in Loop: Header=BB1_17 Depth=3 movl -40(%rbp), %eax addl $1, %eax movl %eax, -40(%rbp) jmp LBB1_17 LBB1_20: ## in Loop: Header=BB1_15 Depth=2 jmp LBB1_21 LBB1_21: ## in Loop: Header=BB1_15 Depth=2 movl -36(%rbp), %eax addl $1, %eax movl %eax, -36(%rbp) jmp LBB1_15 LBB1_22: ## in Loop: Header=BB1_13 Depth=1 jmp LBB1_23 LBB1_23: ## in Loop: Header=BB1_13 Depth=1 movl -32(%rbp), %eax addl $1, %eax movl %eax, -32(%rbp) jmp LBB1_13 LBB1_24: movl -4(%rbp), %eax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "[%d]" .subsections_via_symbols
the_stack_data/1227526.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #96 .cfi_def_cfa_offset 96 stp x29, x30, [sp, #80] ; 16-byte Folded Spill add x29, sp, #80 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] str wzr, [sp, #24] 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, gt tbnz w8, #0, LBB0_4 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 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@PAGE add x0, x0, l_.str@PAGEOFF bl _scanf b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #20] add w8, w8, #1 str w8, [sp, #20] b LBB0_1 LBB0_4: ldr s0, [sp, #68] scvtf s0, s0 str s0, [sp, #16] mov w8, #10 str w8, [sp, #20] b LBB0_5 LBB0_5: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #20] subs w8, w8, #1 cset w8, lt tbnz w8, #0, LBB0_8 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_5 Depth=1 ldr w8, [sp, #20] subs w9, w8, #1 add x8, sp, #28 ldr s0, [x8, w9, sxtw #2] scvtf s0, s0 ldr s2, [sp, #16] fmov s1, #1.00000000 fdiv s1, s1, s2 fadd s0, s0, s1 str s0, [sp, #16] b LBB0_7 LBB0_7: ; in Loop: Header=BB0_5 Depth=1 ldr w8, [sp, #20] subs w8, w8, #1 str w8, [sp, #20] b LBB0_5 LBB0_8: ldr s0, [sp, #16] fcvt d0, s0 mov x8, sp str d0, [x8] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_10 b LBB0_9 LBB0_9: bl ___stack_chk_fail LBB0_10: 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 "%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 0x3f800000 ## float 1 .section __TEXT,__text,regular,pure_instructions .globl _main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $80, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -68(%rbp) movl $0, -72(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 cmpl $10, -72(%rbp) jg LBB0_4 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movslq -72(%rbp), %rax leaq -64(%rbp), %rsi shlq $2, %rax addq %rax, %rsi leaq L_.str(%rip), %rdi movb $0, %al callq _scanf ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movl -72(%rbp), %eax addl $1, %eax movl %eax, -72(%rbp) jmp LBB0_1 LBB0_4: cvtsi2ssl -24(%rbp), %xmm0 movss %xmm0, -76(%rbp) movl $10, -72(%rbp) LBB0_5: ## =>This Inner Loop Header: Depth=1 cmpl $1, -72(%rbp) jl LBB0_8 ## %bb.6: ## in Loop: Header=BB0_5 Depth=1 movl -72(%rbp), %eax subl $1, %eax cltq cvtsi2ssl -64(%rbp,%rax,4), %xmm0 movss LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero divss -76(%rbp), %xmm1 addss %xmm1, %xmm0 movss %xmm0, -76(%rbp) ## %bb.7: ## in Loop: Header=BB0_5 Depth=1 movl -72(%rbp), %eax addl $-1, %eax movl %eax, -72(%rbp) jmp LBB0_5 LBB0_8: movss -76(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 leaq L_.str.1(%rip), %rdi movb $1, %al callq _printf movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_10 ## %bb.9: xorl %eax, %eax addq $80, %rsp popq %rbp retq LBB0_10: 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 "%f\n" .subsections_via_symbols
the_stack_data/248579796.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __DATA,__data .globl _oiram_1_fire_data ; @oiram_1_fire_data _oiram_1_fire_data: .ascii "\020\033\007\004\030\030\030\030\005\005\007\030\030\025\001\001\001\030\004\004\b\030\005\025\025\025\001\001\030\004\003\013\030\005\025\025\025\030\030\030\030\030\030\002\002\r\030\005\005\005\030\030\030\030\030\030\030\030\030\001\002\f\030\005\005\030\030'''''\030\030\002\001\f\030\030\030\030\030'\017\017\030\017\030\030\003\001\r\030\017\017\030\030'\017\017\030\017\030\030\030\002\001\016\030\017\017\030\030\030'\017\017\017\017\021\021\030\001\001\016\030'\017'\030'\017\030''\017\017\017\030\001\002\016\030'''\017\030\030\030\030''\030\030\030\003\013\030\030''\017\017\030\030\030\030\030\002\002\n\030\030\023\030'''''\030\004\001\n\030\005\025\030\023\030\030\030\030\030\005\001\013\030\025\025\001\030\030\030\005\001\030\030\001\001\030\002\000\017\030\005\025\001\030\001\001\001\030\005\001\030\030\001\030\001\000\017\030\005\025\030\021\001\001\001\001\030\005\025\030\021\030\001\000\016\030\005\005\030\021\021\001\001\001\030\030\030\030\030\002\000\016\030\030\005\005\030\021\021\021\030\001\037\037\001\030\002\001\r\030\030\030\n\030\030\030\001\001\037\037\001\030\002\001\r\030\n\n\n\023\023\037\023\037\037\037\023\030\002\002\r\030\n\023\023\037\023\n\023\023\023\023\030\030\001\001\001\030\001\r\030\n\023\023\n\030\n\n\023\030\"\031\030\001\001\030\001\005\030\n\n\n\030\001\007\030\n\030\"\031(\030\001\001\030\001\004\031\030\030\030\003\005\030\031\031(\030\001\002\006\030(\031\031(\030\002\004\030((\030\002\003\005\030\030\030\030\030\003\002\030\030\003" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __DATA,__data .globl _oiram_1_fire_data ## @oiram_1_fire_data .p2align 4 _oiram_1_fire_data: .ascii "\020\033\007\004\030\030\030\030\005\005\007\030\030\025\001\001\001\030\004\004\b\030\005\025\025\025\001\001\030\004\003\013\030\005\025\025\025\030\030\030\030\030\030\002\002\r\030\005\005\005\030\030\030\030\030\030\030\030\030\001\002\f\030\005\005\030\030'''''\030\030\002\001\f\030\030\030\030\030'\017\017\030\017\030\030\003\001\r\030\017\017\030\030'\017\017\030\017\030\030\030\002\001\016\030\017\017\030\030\030'\017\017\017\017\021\021\030\001\001\016\030'\017'\030'\017\030''\017\017\017\030\001\002\016\030'''\017\030\030\030\030''\030\030\030\003\013\030\030''\017\017\030\030\030\030\030\002\002\n\030\030\023\030'''''\030\004\001\n\030\005\025\030\023\030\030\030\030\030\005\001\013\030\025\025\001\030\030\030\005\001\030\030\001\001\030\002\000\017\030\005\025\001\030\001\001\001\030\005\001\030\030\001\030\001\000\017\030\005\025\030\021\001\001\001\001\030\005\025\030\021\030\001\000\016\030\005\005\030\021\021\001\001\001\030\030\030\030\030\002\000\016\030\030\005\005\030\021\021\021\030\001\037\037\001\030\002\001\r\030\030\030\n\030\030\030\001\001\037\037\001\030\002\001\r\030\n\n\n\023\023\037\023\037\037\037\023\030\002\002\r\030\n\023\023\037\023\n\023\023\023\023\030\030\001\001\001\030\001\r\030\n\023\023\n\030\n\n\023\030\"\031\030\001\001\030\001\005\030\n\n\n\030\001\007\030\n\030\"\031(\030\001\001\030\001\004\031\030\030\030\003\005\030\031\031(\030\001\002\006\030(\031\031(\030\002\004\030((\030\002\003\005\030\030\030\030\030\003\002\030\030\003" .subsections_via_symbols
the_stack_data/36075013.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl ___mktime_internal ; -- Begin function __mktime_internal .p2align 2 ___mktime_internal: ; @__mktime_internal .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 stur x0, [x29, #-32] stur x1, [x29, #-40] stur x2, [x29, #-48] mov w8, #6 stur w8, [x29, #-148] ldur x8, [x29, #-32] ldr w8, [x8] stur w8, [x29, #-152] ldur x8, [x29, #-32] ldr w8, [x8, #4] stur w8, [x29, #-156] ldur x8, [x29, #-32] ldr w8, [x8, #8] str w8, [sp, #160] ldur x8, [x29, #-32] ldr w8, [x8, #12] str w8, [sp, #156] ldur x8, [x29, #-32] ldr w8, [x8, #16] str w8, [sp, #152] ldur x8, [x29, #-32] ldr w8, [x8, #20] str w8, [sp, #148] ldur x8, [x29, #-32] ldr w8, [x8, #32] str w8, [sp, #144] ldr w8, [sp, #152] mov w9, #12 sdiv w10, w8, w9 mul w10, w10, w9 subs w8, w8, w10 str w8, [sp, #140] ldr w8, [sp, #140] subs w8, w8, #0 cset w8, lt and w8, w8, #0x1 str w8, [sp, #136] ldr w8, [sp, #152] sdiv w8, w8, w9 ldr w9, [sp, #136] subs w8, w8, w9 str w8, [sp, #132] ldr w8, [sp, #148] ldr w9, [sp, #132] add w8, w8, w9 str w8, [sp, #128] ldr w8, [sp, #128] add w8, w8, #1900 mov w10, #4 sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 subs w8, w8, #0 cset w8, ne mov w9, #0 str w9, [sp, #44] ; 4-byte Folded Spill tbnz w8, #0, LBB0_4 b LBB0_1 LBB0_1: ldr w8, [sp, #128] add w8, w8, #1900 mov w10, #100 sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 subs w8, w8, #0 cset w8, ne mov w9, #1 str w9, [sp, #40] ; 4-byte Folded Spill tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: ldr w8, [sp, #128] add w8, w8, #1900 mov w10, #400 sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 subs w8, w8, #0 cset w8, eq str w8, [sp, #40] ; 4-byte Folded Spill b LBB0_3 LBB0_3: ldr w8, [sp, #40] ; 4-byte Folded Reload str w8, [sp, #44] ; 4-byte Folded Spill b LBB0_4 LBB0_4: ldr w8, [sp, #44] ; 4-byte Folded Reload ; kill: def $x8 killed $w8 and x8, x8, #0x1 mov x9, #26 mul x9, x8, x9 adrp x8, ___mon_yday@PAGE add x8, x8, ___mon_yday@PAGEOFF add x8, x8, x9 ldr w9, [sp, #140] ldr w11, [sp, #136] mov w10, #12 mul w10, w10, w11 add w9, w9, w10 ldrh w8, [x8, w9, sxtw #1] ldr w9, [sp, #156] add w8, w8, w9 subs w8, w8, #1 str w8, [sp, #124] ldur w8, [x29, #-152] str w8, [sp, #120] ldur w8, [x29, #-152] subs w8, w8, #0 cset w8, ge tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: stur wzr, [x29, #-152] b LBB0_6 LBB0_6: ldur w9, [x29, #-152] mov w8, #59 subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_8 b LBB0_7 LBB0_7: mov w8, #59 stur w8, [x29, #-152] b LBB0_8 LBB0_8: sub x5, x29, #144 mov w8, #70 stur w8, [x29, #-124] stur wzr, [x29, #-144] stur wzr, [x29, #-140] stur wzr, [x29, #-136] stur wzr, [x29, #-116] ldr w0, [sp, #128] ldr w1, [sp, #124] ldr w2, [sp, #160] ldur w3, [x29, #-156] ldur w4, [x29, #-152] bl _ydhms_tm_diff stur x0, [x29, #-72] ldur x8, [x29, #-72] ldur x9, [x29, #-48] ldr x9, [x9] add x8, x8, x9 stur x8, [x29, #-88] stur x8, [x29, #-80] stur x8, [x29, #-56] b LBB0_9 LBB0_9: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #128] str w8, [sp, #36] ; 4-byte Folded Spill ldr w8, [sp, #124] str w8, [sp, #20] ; 4-byte Folded Spill ldr w8, [sp, #160] str w8, [sp, #24] ; 4-byte Folded Spill ldur w8, [x29, #-156] str w8, [sp, #28] ; 4-byte Folded Spill ldur w8, [x29, #-152] str w8, [sp, #32] ; 4-byte Folded Spill ldur x0, [x29, #-40] sub x1, x29, #56 sub x2, x29, #144 bl _ranged_convert ldr w1, [sp, #20] ; 4-byte Folded Reload ldr w2, [sp, #24] ; 4-byte Folded Reload ldr w3, [sp, #28] ; 4-byte Folded Reload ldr w4, [sp, #32] ; 4-byte Folded Reload mov x5, x0 ldr w0, [sp, #36] ; 4-byte Folded Reload bl _ydhms_tm_diff stur x0, [x29, #-64] subs x8, x0, #0 cset w8, eq tbnz w8, #0, LBB0_21 b LBB0_10 LBB0_10: ; in Loop: Header=BB0_9 Depth=1 ldur x8, [x29, #-56] ldur x9, [x29, #-80] subs x8, x8, x9 cset w8, ne tbnz w8, #0, LBB0_16 b LBB0_11 LBB0_11: ; in Loop: Header=BB0_9 Depth=1 ldur x8, [x29, #-56] ldur x9, [x29, #-88] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_16 b LBB0_12 LBB0_12: ; in Loop: Header=BB0_9 Depth=1 ldr w8, [sp, #144] subs w8, w8, #0 cset w8, lt tbnz w8, #0, LBB0_15 b LBB0_13 LBB0_13: ; in Loop: Header=BB0_9 Depth=1 ldur w8, [x29, #-112] subs w8, w8, #0 cset w8, lt tbnz w8, #0, LBB0_15 b LBB0_14 LBB0_14: ; in Loop: Header=BB0_9 Depth=1 ldr w8, [sp, #144] subs w8, w8, #0 cset w8, ne and w8, w8, #0x1 ldur w9, [x29, #-112] subs w9, w9, #0 cset w9, ne and w9, w9, #0x1 subs w8, w8, w9 cset w8, eq tbnz w8, #0, LBB0_16 b LBB0_15 LBB0_15: b LBB0_21 LBB0_16: ; in Loop: Header=BB0_9 Depth=1 ldur w8, [x29, #-148] subs w8, w8, #1 stur w8, [x29, #-148] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_18 b LBB0_17 LBB0_17: mov x8, #-1 stur x8, [x29, #-24] b LBB0_41 LBB0_18: ; in Loop: Header=BB0_9 Depth=1 b LBB0_19 LBB0_19: ; in Loop: Header=BB0_9 Depth=1 b LBB0_20 LBB0_20: ; in Loop: Header=BB0_9 Depth=1 ldur x8, [x29, #-88] stur x8, [x29, #-80] ldur x8, [x29, #-56] stur x8, [x29, #-88] ldur x9, [x29, #-64] ldur x8, [x29, #-56] add x8, x8, x9 stur x8, [x29, #-56] b LBB0_9 LBB0_21: ldur x8, [x29, #-64] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB0_34 b LBB0_22 LBB0_22: ldr w8, [sp, #144] ldur w9, [x29, #-112] subs w8, w8, w9 cset w8, eq tbnz w8, #0, LBB0_34 b LBB0_23 LBB0_23: ldr w9, [sp, #144] mov w8, #0 subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_34 b LBB0_24 LBB0_24: ldur w9, [x29, #-112] mov w8, #0 subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_34 b LBB0_25 LBB0_25: mov w8, #24918 movk w8, #120, lsl #16 str w8, [sp, #116] ldur x8, [x29, #-56] ldr w10, [sp, #116] mov w9, #3 mul w10, w9, w10 mov x9, #-9223372036854775808 add x9, x9, w10, sxtw subs x8, x8, x9 cset w8, ge tbnz w8, #0, LBB0_27 b LBB0_26 LBB0_26: ldr w9, [sp, #116] mov w8, #0 subs w8, w8, w9 str w8, [sp, #116] b LBB0_27 LBB0_27: mov w8, #1 str w8, [sp, #112] b LBB0_28 LBB0_28: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #112] subs w8, w8, #3 cset w8, gt tbnz w8, #0, LBB0_33 b LBB0_29 LBB0_29: ; in Loop: Header=BB0_28 Depth=1 ldur x8, [x29, #-56] ldr w9, [sp, #112] ldr w10, [sp, #116] mul w9, w9, w10 subs x8, x8, w9, sxtw add x1, sp, #104 str x8, [sp, #104] ldur x0, [x29, #-40] add x2, sp, #48 bl _ranged_convert ldr w8, [sp, #80] ldr w9, [sp, #144] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_31 b LBB0_30 LBB0_30: ldr x8, [sp, #104] str x8, [sp, #8] ; 8-byte Folded Spill ldr w0, [sp, #128] ldr w1, [sp, #124] ldr w2, [sp, #160] ldur w3, [x29, #-156] ldur w4, [x29, #-152] add x5, sp, #48 bl _ydhms_tm_diff ldr x8, [sp, #8] ; 8-byte Folded Reload add x8, x8, x0 sub x1, x29, #56 stur x8, [x29, #-56] ldur x0, [x29, #-40] sub x2, x29, #144 bl _ranged_convert b LBB0_33 LBB0_31: ; in Loop: Header=BB0_28 Depth=1 b LBB0_32 LBB0_32: ; in Loop: Header=BB0_28 Depth=1 ldr w8, [sp, #112] add w8, w8, #1 str w8, [sp, #112] b LBB0_28 LBB0_33: b LBB0_34 LBB0_34: ldur x8, [x29, #-56] ldur x9, [x29, #-72] subs x8, x8, x9 ldur x9, [x29, #-48] str x8, [x9] ldr w8, [sp, #120] ldur w9, [x29, #-144] subs w8, w8, w9 cset w8, eq tbnz w8, #0, LBB0_40 b LBB0_35 LBB0_35: ldr w8, [sp, #120] ldur w9, [x29, #-152] subs w8, w8, w9 str w8, [sp] ; 4-byte Folded Spill ldur w8, [x29, #-152] subs w8, w8, #0 cset w8, ne mov w9, #0 str w9, [sp, #4] ; 4-byte Folded Spill tbnz w8, #0, LBB0_37 b LBB0_36 LBB0_36: ldur w8, [x29, #-144] subs w8, w8, #60 cset w8, eq str w8, [sp, #4] ; 4-byte Folded Spill b LBB0_37 LBB0_37: ldr w8, [sp] ; 4-byte Folded Reload ldr w9, [sp, #4] ; 4-byte Folded Reload and w9, w9, #0x1 add w9, w8, w9 sub x0, x29, #56 ldur x8, [x29, #-56] add x8, x8, w9, sxtw stur x8, [x29, #-56] ldur x8, [x29, #-40] sub x1, x29, #144 blr x8 subs x8, x0, #0 cset w8, ne tbnz w8, #0, LBB0_39 b LBB0_38 LBB0_38: mov x8, #-1 stur x8, [x29, #-24] b LBB0_41 LBB0_39: b LBB0_40 LBB0_40: ldur x0, [x29, #-32] sub x1, x29, #144 mov x2, #56 bl _memcpy ldur x8, [x29, #-56] stur x8, [x29, #-24] b LBB0_41 LBB0_41: ldur x0, [x29, #-24] 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 .p2align 2 ; -- Begin function ydhms_tm_diff _ydhms_tm_diff: ; @ydhms_tm_diff .cfi_startproc ; %bb.0: sub sp, sp, #96 .cfi_def_cfa_offset 96 str w0, [sp, #84] str w1, [sp, #80] str w2, [sp, #76] str w3, [sp, #72] str w4, [sp, #68] str x5, [sp, #56] ldr x8, [sp, #56] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: mov x8, #1 str x8, [sp, #88] b LBB1_3 LBB1_2: ldr w8, [sp, #84] asr w8, w8, #2 add w8, w8, #475 ldr w9, [sp, #84] ands w9, w9, #0x3 cset w9, eq and w9, w9, #0x1 subs w8, w8, w9 str w8, [sp, #52] ldr x8, [sp, #56] ldr w8, [x8, #20] asr w8, w8, #2 add w8, w8, #475 ldr x9, [sp, #56] ldr w9, [x9, #20] ands w9, w9, #0x3 cset w9, eq and w9, w9, #0x1 subs w8, w8, w9 str w8, [sp, #48] ldr w8, [sp, #52] mov w11, #25 sdiv w8, w8, w11 ldr w9, [sp, #52] sdiv w10, w9, w11 mul w10, w10, w11 subs w9, w9, w10 subs w9, w9, #0 cset w9, lt and w9, w9, #0x1 subs w8, w8, w9 str w8, [sp, #44] ldr w8, [sp, #48] sdiv w8, w8, w11 ldr w9, [sp, #48] sdiv w10, w9, w11 mul w10, w10, w11 subs w9, w9, w10 subs w9, w9, #0 cset w9, lt and w9, w9, #0x1 subs w8, w8, w9 str w8, [sp, #40] ldr w8, [sp, #44] asr w8, w8, #2 str w8, [sp, #36] ldr w8, [sp, #40] asr w8, w8, #2 str w8, [sp, #32] ldr w8, [sp, #52] ldr w9, [sp, #48] subs w8, w8, w9 ldr w9, [sp, #44] ldr w10, [sp, #40] subs w9, w9, w10 subs w8, w8, w9 ldr w9, [sp, #36] ldr w10, [sp, #32] subs w9, w9, w10 add w8, w8, w9 str w8, [sp, #28] ldrsw x8, [sp, #84] ldr x9, [sp, #56] ldrsw x9, [x9, #20] subs x8, x8, x9 str x8, [sp, #16] ldr x9, [sp, #16] mov x8, #365 mul x8, x8, x9 ldrsw x9, [sp, #28] add x8, x8, x9 ldr w9, [sp, #80] ldr x10, [sp, #56] ldr w10, [x10, #28] subs w9, w9, w10 add x8, x8, w9, sxtw str x8, [sp, #8] ldr x9, [sp, #8] mov x8, #24 mul x8, x8, x9 ldr w9, [sp, #76] ldr x10, [sp, #56] ldr w10, [x10, #8] subs w9, w9, w10 add x9, x8, w9, sxtw mov x8, #60 mul x9, x8, x9 ldr w10, [sp, #72] ldr x11, [sp, #56] ldr w11, [x11, #4] subs w10, w10, w11 add x9, x9, w10, sxtw mul x8, x8, x9 ldr w9, [sp, #68] ldr x10, [sp, #56] ldr w10, [x10] subs w9, w9, w10 add x8, x8, w9, sxtw str x8, [sp, #88] b LBB1_3 LBB1_3: ldr x0, [sp, #88] add sp, sp, #96 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function ranged_convert _ranged_convert: ; @ranged_convert .cfi_startproc ; %bb.0: sub sp, sp, #144 .cfi_def_cfa_offset 144 stp x29, x30, [sp, #128] ; 16-byte Folded Spill add x29, sp, #128 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] stur x1, [x29, #-16] stur x2, [x29, #-24] ldur x8, [x29, #-8] ldur x0, [x29, #-16] ldur x1, [x29, #-24] blr x8 mov x8, x0 stur x8, [x29, #-32] subs x8, x0, #0 cset w8, ne tbnz w8, #0, LBB2_15 b LBB2_1 LBB2_1: ldur x8, [x29, #-16] ldr x8, [x8] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB2_15 b LBB2_2 LBB2_2: ldur x8, [x29, #-16] ldr x8, [x8] stur x8, [x29, #-40] stur xzr, [x29, #-48] b LBB2_3 LBB2_3: ; =>This Inner Loop Header: Depth=1 ldur x8, [x29, #-40] ldur x9, [x29, #-48] ldur x10, [x29, #-40] subs x10, x10, #0 cset w10, lt and w11, w10, #0x1 mov w10, #1 ands w11, w11, #0x1 csinv w10, w10, wzr, eq add x9, x9, w10, sxtw subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB2_11 b LBB2_4 LBB2_4: ; in Loop: Header=BB2_3 Depth=1 ldur x8, [x29, #-40] subs x8, x8, #0 cset w8, ge tbnz w8, #0, LBB2_6 b LBB2_5 LBB2_5: ; in Loop: Header=BB2_3 Depth=1 ldur x8, [x29, #-40] ldur x9, [x29, #-48] ldur x10, [x29, #-40] subs x9, x9, x10 add x8, x8, x9, asr #1 str x8, [sp, #8] ; 8-byte Folded Spill b LBB2_7 LBB2_6: ; in Loop: Header=BB2_3 Depth=1 ldur x8, [x29, #-48] ldur x9, [x29, #-40] ldur x10, [x29, #-48] subs x9, x9, x10 add x8, x8, x9, asr #1 str x8, [sp, #8] ; 8-byte Folded Spill b LBB2_7 LBB2_7: ; in Loop: Header=BB2_3 Depth=1 ldr x8, [sp, #8] ; 8-byte Folded Reload ldur x9, [x29, #-16] str x8, [x9] str x8, [sp, #16] ldur x8, [x29, #-8] ldur x0, [x29, #-16] ldur x1, [x29, #-24] blr x8 mov x8, x0 stur x8, [x29, #-32] subs x8, x0, #0 cset w8, eq tbnz w8, #0, LBB2_9 b LBB2_8 LBB2_8: ; in Loop: Header=BB2_3 Depth=1 ldur x1, [x29, #-32] add x0, sp, #24 mov x2, #56 bl _memcpy ldr x8, [sp, #16] stur x8, [x29, #-48] b LBB2_10 LBB2_9: ; in Loop: Header=BB2_3 Depth=1 ldr x8, [sp, #16] stur x8, [x29, #-40] b LBB2_10 LBB2_10: ; in Loop: Header=BB2_3 Depth=1 b LBB2_3 LBB2_11: ldur x8, [x29, #-32] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB2_14 b LBB2_12 LBB2_12: ldur x8, [x29, #-48] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB2_14 b LBB2_13 LBB2_13: ldur x8, [x29, #-48] ldur x9, [x29, #-16] str x8, [x9] ldur x0, [x29, #-24] add x1, sp, #24 mov x2, #56 bl _memcpy ldur x8, [x29, #-24] stur x8, [x29, #-32] b LBB2_14 LBB2_14: b LBB2_15 LBB2_15: ldur x0, [x29, #-32] ldp x29, x30, [sp, #128] ; 16-byte Folded Reload add sp, sp, #144 ret .cfi_endproc ; -- End function .globl _mktime ; -- Begin function _mktime .p2align 2 _mktime: ; @"\01_mktime" .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] adrp x1, _my_mktime_localtime_r@PAGE add x1, x1, _my_mktime_localtime_r@PAGEOFF adrp x2, _localtime_offset@PAGE add x2, x2, _localtime_offset@PAGEOFF bl ___mktime_internal ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function my_mktime_localtime_r _my_mktime_localtime_r: ; @my_mktime_localtime_r .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #16] str x1, [sp, #8] ldr x0, [sp, #16] bl _localtime str x0, [sp] ldr x8, [sp] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB4_2 b LBB4_1 LBB4_1: ; kill: def $x8 killed $xzr stur xzr, [x29, #-8] b LBB4_3 LBB4_2: ldr x0, [sp, #8] ldr x1, [sp] mov x2, #56 bl _memcpy ldr x8, [sp, #8] stur x8, [x29, #-8] b LBB4_3 LBB4_3: ldur x0, [x29, #-8] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .section __TEXT,__const .globl ___mon_yday ; @__mon_yday .p2align 1 ___mon_yday: .short 0 ; 0x0 .short 31 ; 0x1f .short 59 ; 0x3b .short 90 ; 0x5a .short 120 ; 0x78 .short 151 ; 0x97 .short 181 ; 0xb5 .short 212 ; 0xd4 .short 243 ; 0xf3 .short 273 ; 0x111 .short 304 ; 0x130 .short 334 ; 0x14e .short 365 ; 0x16d .short 0 ; 0x0 .short 31 ; 0x1f .short 60 ; 0x3c .short 91 ; 0x5b .short 121 ; 0x79 .short 152 ; 0x98 .short 182 ; 0xb6 .short 213 ; 0xd5 .short 244 ; 0xf4 .short 274 ; 0x112 .short 305 ; 0x131 .short 335 ; 0x14f .short 366 ; 0x16e .zerofill __DATA,__bss,_localtime_offset,8,3 ; @localtime_offset .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl ___mktime_internal ## -- Begin function __mktime_internal .p2align 4, 0x90 ___mktime_internal: ## @__mktime_internal .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $304, %rsp ## imm = 0x130 movq %rdi, -16(%rbp) movq %rsi, -24(%rbp) movq %rdx, -32(%rbp) movl $6, -132(%rbp) movq -16(%rbp), %rax movl (%rax), %eax movl %eax, -136(%rbp) movq -16(%rbp), %rax movl 4(%rax), %eax movl %eax, -140(%rbp) movq -16(%rbp), %rax movl 8(%rax), %eax movl %eax, -144(%rbp) movq -16(%rbp), %rax movl 12(%rax), %eax movl %eax, -148(%rbp) movq -16(%rbp), %rax movl 16(%rax), %eax movl %eax, -152(%rbp) movq -16(%rbp), %rax movl 20(%rax), %eax movl %eax, -156(%rbp) movq -16(%rbp), %rax movl 32(%rax), %eax movl %eax, -160(%rbp) movl -152(%rbp), %eax movl $12, %ecx cltd idivl %ecx movl %edx, -164(%rbp) cmpl $0, -164(%rbp) setl %al andb $1, %al movzbl %al, %eax movl %eax, -168(%rbp) movl -152(%rbp), %eax movl $12, %ecx cltd idivl %ecx subl -168(%rbp), %eax movl %eax, -172(%rbp) movl -156(%rbp), %eax addl -172(%rbp), %eax movl %eax, -176(%rbp) movl -176(%rbp), %eax addl $1900, %eax ## imm = 0x76C movl $4, %ecx cltd idivl %ecx xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $0, %edx movb %al, -257(%rbp) ## 1-byte Spill jne LBB0_4 ## %bb.1: movl -176(%rbp), %eax addl $1900, %eax ## imm = 0x76C movl $100, %ecx cltd idivl %ecx movb $1, %al cmpl $0, %edx movb %al, -258(%rbp) ## 1-byte Spill jne LBB0_3 ## %bb.2: movl -176(%rbp), %eax addl $1900, %eax ## imm = 0x76C movl $400, %ecx ## imm = 0x190 cltd idivl %ecx cmpl $0, %edx sete %al movb %al, -258(%rbp) ## 1-byte Spill LBB0_3: movb -258(%rbp), %al ## 1-byte Reload movb %al, -257(%rbp) ## 1-byte Spill LBB0_4: movb -257(%rbp), %al ## 1-byte Reload andb $1, %al movzbl %al, %eax movslq %eax, %rcx leaq ___mon_yday(%rip), %rax imulq $26, %rcx, %rcx addq %rcx, %rax movl -164(%rbp), %ecx imull $12, -168(%rbp), %edx addl %edx, %ecx movslq %ecx, %rcx movzwl (%rax,%rcx,2), %eax addl -148(%rbp), %eax subl $1, %eax movl %eax, -180(%rbp) movl -136(%rbp), %eax movl %eax, -184(%rbp) cmpl $0, -136(%rbp) jge LBB0_6 ## %bb.5: movl $0, -136(%rbp) LBB0_6: movl $59, %eax cmpl -136(%rbp), %eax jge LBB0_8 ## %bb.7: movl $59, -136(%rbp) LBB0_8: movl $70, -108(%rbp) movl $0, -128(%rbp) movl $0, -124(%rbp) movl $0, -120(%rbp) movl $0, -100(%rbp) movl -176(%rbp), %edi movl -180(%rbp), %esi movl -144(%rbp), %edx movl -140(%rbp), %ecx movl -136(%rbp), %r8d leaq -128(%rbp), %r9 callq _ydhms_tm_diff movq %rax, -56(%rbp) movq -56(%rbp), %rax movq -32(%rbp), %rcx addq (%rcx), %rax movq %rax, -72(%rbp) movq %rax, -64(%rbp) movq %rax, -40(%rbp) LBB0_9: ## =>This Inner Loop Header: Depth=1 movl -176(%rbp), %eax movl %eax, -280(%rbp) ## 4-byte Spill movl -180(%rbp), %eax movl %eax, -276(%rbp) ## 4-byte Spill movl -144(%rbp), %eax movl %eax, -272(%rbp) ## 4-byte Spill movl -140(%rbp), %eax movl %eax, -268(%rbp) ## 4-byte Spill movl -136(%rbp), %eax movl %eax, -264(%rbp) ## 4-byte Spill movq -24(%rbp), %rdi leaq -40(%rbp), %rsi leaq -128(%rbp), %rdx callq _ranged_convert movl -280(%rbp), %edi ## 4-byte Reload movl -276(%rbp), %esi ## 4-byte Reload movl -272(%rbp), %edx ## 4-byte Reload movl -268(%rbp), %ecx ## 4-byte Reload movl -264(%rbp), %r8d ## 4-byte Reload movq %rax, %r9 callq _ydhms_tm_diff movq %rax, -48(%rbp) cmpq $0, %rax je LBB0_21 ## %bb.10: ## in Loop: Header=BB0_9 Depth=1 movq -40(%rbp), %rax cmpq -64(%rbp), %rax jne LBB0_16 ## %bb.11: ## in Loop: Header=BB0_9 Depth=1 movq -40(%rbp), %rax cmpq -72(%rbp), %rax je LBB0_16 ## %bb.12: ## in Loop: Header=BB0_9 Depth=1 cmpl $0, -160(%rbp) jl LBB0_15 ## %bb.13: ## in Loop: Header=BB0_9 Depth=1 cmpl $0, -96(%rbp) jl LBB0_15 ## %bb.14: ## in Loop: Header=BB0_9 Depth=1 cmpl $0, -160(%rbp) setne %al andb $1, %al movzbl %al, %eax cmpl $0, -96(%rbp) setne %cl andb $1, %cl movzbl %cl, %ecx cmpl %ecx, %eax je LBB0_16 LBB0_15: jmp LBB0_21 LBB0_16: ## in Loop: Header=BB0_9 Depth=1 movl -132(%rbp), %eax addl $-1, %eax movl %eax, -132(%rbp) cmpl $0, %eax jne LBB0_18 ## %bb.17: movq $-1, -8(%rbp) jmp LBB0_41 LBB0_18: ## in Loop: Header=BB0_9 Depth=1 jmp LBB0_19 LBB0_19: ## in Loop: Header=BB0_9 Depth=1 jmp LBB0_20 LBB0_20: ## in Loop: Header=BB0_9 Depth=1 movq -72(%rbp), %rax movq %rax, -64(%rbp) movq -40(%rbp), %rax movq %rax, -72(%rbp) movq -48(%rbp), %rax addq -40(%rbp), %rax movq %rax, -40(%rbp) jmp LBB0_9 LBB0_21: cmpq $0, -48(%rbp) jne LBB0_34 ## %bb.22: movl -160(%rbp), %eax cmpl -96(%rbp), %eax je LBB0_34 ## %bb.23: xorl %eax, %eax cmpl -160(%rbp), %eax jg LBB0_34 ## %bb.24: xorl %eax, %eax cmpl -96(%rbp), %eax jg LBB0_34 ## %bb.25: movl $7889238, -188(%rbp) ## imm = 0x786156 movq -40(%rbp), %rax imull $3, -188(%rbp), %ecx movslq %ecx, %rcx movabsq $-9223372036854775808, %rdx ## imm = 0x8000000000000000 addq %rdx, %rcx cmpq %rcx, %rax jge LBB0_27 ## %bb.26: xorl %eax, %eax subl -188(%rbp), %eax movl %eax, -188(%rbp) LBB0_27: movl $1, -192(%rbp) LBB0_28: ## =>This Inner Loop Header: Depth=1 cmpl $3, -192(%rbp) jg LBB0_33 ## %bb.29: ## in Loop: Header=BB0_28 Depth=1 movq -40(%rbp), %rax movl -192(%rbp), %ecx imull -188(%rbp), %ecx movslq %ecx, %rcx subq %rcx, %rax movq %rax, -200(%rbp) movq -24(%rbp), %rdi leaq -200(%rbp), %rsi leaq -256(%rbp), %rdx callq _ranged_convert movl -224(%rbp), %eax cmpl -160(%rbp), %eax jne LBB0_31 ## %bb.30: movq -200(%rbp), %rax movq %rax, -288(%rbp) ## 8-byte Spill movl -176(%rbp), %edi movl -180(%rbp), %esi movl -144(%rbp), %edx movl -140(%rbp), %ecx movl -136(%rbp), %r8d leaq -256(%rbp), %r9 callq _ydhms_tm_diff movq %rax, %rcx movq -288(%rbp), %rax ## 8-byte Reload addq %rcx, %rax movq %rax, -40(%rbp) movq -24(%rbp), %rdi leaq -40(%rbp), %rsi leaq -128(%rbp), %rdx callq _ranged_convert jmp LBB0_33 LBB0_31: ## in Loop: Header=BB0_28 Depth=1 jmp LBB0_32 LBB0_32: ## in Loop: Header=BB0_28 Depth=1 movl -192(%rbp), %eax addl $1, %eax movl %eax, -192(%rbp) jmp LBB0_28 LBB0_33: jmp LBB0_34 LBB0_34: movq -40(%rbp), %rcx subq -56(%rbp), %rcx movq -32(%rbp), %rax movq %rcx, (%rax) movl -184(%rbp), %eax cmpl -128(%rbp), %eax je LBB0_40 ## %bb.35: movl -184(%rbp), %eax subl -136(%rbp), %eax movl %eax, -296(%rbp) ## 4-byte Spill xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $0, -136(%rbp) movb %al, -289(%rbp) ## 1-byte Spill jne LBB0_37 ## %bb.36: cmpl $60, -128(%rbp) sete %al movb %al, -289(%rbp) ## 1-byte Spill LBB0_37: movl -296(%rbp), %eax ## 4-byte Reload movb -289(%rbp), %cl ## 1-byte Reload andb $1, %cl movzbl %cl, %ecx addl %ecx, %eax cltq addq -40(%rbp), %rax movq %rax, -40(%rbp) leaq -40(%rbp), %rdi leaq -128(%rbp), %rsi callq *-24(%rbp) cmpq $0, %rax jne LBB0_39 ## %bb.38: movq $-1, -8(%rbp) jmp LBB0_41 LBB0_39: jmp LBB0_40 LBB0_40: movq -16(%rbp), %rdi leaq -128(%rbp), %rsi movl $56, %edx callq _memcpy movq -40(%rbp), %rax movq %rax, -8(%rbp) LBB0_41: movq -8(%rbp), %rax addq $304, %rsp ## imm = 0x130 popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function ydhms_tm_diff _ydhms_tm_diff: ## @ydhms_tm_diff .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, -12(%rbp) movl %esi, -16(%rbp) movl %edx, -20(%rbp) movl %ecx, -24(%rbp) movl %r8d, -28(%rbp) movq %r9, -40(%rbp) cmpq $0, -40(%rbp) jne LBB1_2 ## %bb.1: movq $1, -8(%rbp) jmp LBB1_3 LBB1_2: movl -12(%rbp), %eax sarl $2, %eax addl $475, %eax ## imm = 0x1DB movl -12(%rbp), %ecx andl $3, %ecx cmpl $0, %ecx setne %cl xorb $-1, %cl andb $1, %cl movzbl %cl, %ecx subl %ecx, %eax movl %eax, -44(%rbp) movq -40(%rbp), %rax movl 20(%rax), %eax sarl $2, %eax addl $475, %eax ## imm = 0x1DB movq -40(%rbp), %rcx movl 20(%rcx), %ecx andl $3, %ecx cmpl $0, %ecx setne %cl xorb $-1, %cl andb $1, %cl movzbl %cl, %ecx subl %ecx, %eax movl %eax, -48(%rbp) movl -44(%rbp), %eax movl $25, %ecx cltd idivl %ecx movl %eax, -96(%rbp) ## 4-byte Spill movl -44(%rbp), %eax movl $25, %ecx cltd idivl %ecx movl -96(%rbp), %eax ## 4-byte Reload cmpl $0, %edx setl %cl andb $1, %cl movzbl %cl, %ecx subl %ecx, %eax movl %eax, -52(%rbp) movl -48(%rbp), %eax movl $25, %ecx cltd idivl %ecx movl %eax, -92(%rbp) ## 4-byte Spill movl -48(%rbp), %eax movl $25, %ecx cltd idivl %ecx movl -92(%rbp), %eax ## 4-byte Reload cmpl $0, %edx setl %cl andb $1, %cl movzbl %cl, %ecx subl %ecx, %eax movl %eax, -56(%rbp) movl -52(%rbp), %eax sarl $2, %eax movl %eax, -60(%rbp) movl -56(%rbp), %eax sarl $2, %eax movl %eax, -64(%rbp) movl -44(%rbp), %eax subl -48(%rbp), %eax movl -52(%rbp), %ecx subl -56(%rbp), %ecx subl %ecx, %eax movl -60(%rbp), %ecx subl -64(%rbp), %ecx addl %ecx, %eax movl %eax, -68(%rbp) movslq -12(%rbp), %rax movq -40(%rbp), %rcx movslq 20(%rcx), %rcx subq %rcx, %rax movq %rax, -80(%rbp) imulq $365, -80(%rbp), %rax ## imm = 0x16D movslq -68(%rbp), %rcx addq %rcx, %rax movl -16(%rbp), %ecx movq -40(%rbp), %rdx subl 28(%rdx), %ecx movslq %ecx, %rcx addq %rcx, %rax movq %rax, -88(%rbp) imulq $24, -88(%rbp), %rax movl -20(%rbp), %ecx movq -40(%rbp), %rdx subl 8(%rdx), %ecx movslq %ecx, %rcx addq %rcx, %rax imulq $60, %rax, %rax movl -24(%rbp), %ecx movq -40(%rbp), %rdx subl 4(%rdx), %ecx movslq %ecx, %rcx addq %rcx, %rax imulq $60, %rax, %rax movl -28(%rbp), %ecx movq -40(%rbp), %rdx subl (%rdx), %ecx movslq %ecx, %rcx addq %rcx, %rax movq %rax, -8(%rbp) LBB1_3: movq -8(%rbp), %rax popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function ranged_convert _ranged_convert: ## @ranged_convert .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $128, %rsp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) movq %rdx, -24(%rbp) movq -8(%rbp), %rax movq -16(%rbp), %rdi movq -24(%rbp), %rsi callq *%rax movq %rax, -32(%rbp) cmpq $0, %rax jne LBB2_15 ## %bb.1: movq -16(%rbp), %rax cmpq $0, (%rax) je LBB2_15 ## %bb.2: movq -16(%rbp), %rax movq (%rax), %rax movq %rax, -40(%rbp) movq $0, -48(%rbp) LBB2_3: ## =>This Inner Loop Header: Depth=1 movq -40(%rbp), %rax movq -48(%rbp), %rcx movq -40(%rbp), %rdi movl $1, %edx movl $4294967295, %esi ## imm = 0xFFFFFFFF cmpq $0, %rdi cmovll %esi, %edx movslq %edx, %rdx addq %rdx, %rcx cmpq %rcx, %rax je LBB2_11 ## %bb.4: ## in Loop: Header=BB2_3 Depth=1 cmpq $0, -40(%rbp) jge LBB2_6 ## %bb.5: ## in Loop: Header=BB2_3 Depth=1 movq -40(%rbp), %rax movq -48(%rbp), %rcx subq -40(%rbp), %rcx sarq $1, %rcx addq %rcx, %rax movq %rax, -120(%rbp) ## 8-byte Spill jmp LBB2_7 LBB2_6: ## in Loop: Header=BB2_3 Depth=1 movq -48(%rbp), %rax movq -40(%rbp), %rcx subq -48(%rbp), %rcx sarq $1, %rcx addq %rcx, %rax movq %rax, -120(%rbp) ## 8-byte Spill LBB2_7: ## in Loop: Header=BB2_3 Depth=1 movq -120(%rbp), %rax ## 8-byte Reload movq -16(%rbp), %rcx movq %rax, (%rcx) movq %rax, -112(%rbp) movq -8(%rbp), %rax movq -16(%rbp), %rdi movq -24(%rbp), %rsi callq *%rax movq %rax, -32(%rbp) cmpq $0, %rax je LBB2_9 ## %bb.8: ## in Loop: Header=BB2_3 Depth=1 movq -32(%rbp), %rsi leaq -104(%rbp), %rdi movl $56, %edx callq _memcpy movq -112(%rbp), %rax movq %rax, -48(%rbp) jmp LBB2_10 LBB2_9: ## in Loop: Header=BB2_3 Depth=1 movq -112(%rbp), %rax movq %rax, -40(%rbp) LBB2_10: ## in Loop: Header=BB2_3 Depth=1 jmp LBB2_3 LBB2_11: cmpq $0, -32(%rbp) jne LBB2_14 ## %bb.12: cmpq $0, -48(%rbp) je LBB2_14 ## %bb.13: movq -48(%rbp), %rcx movq -16(%rbp), %rax movq %rcx, (%rax) movq -24(%rbp), %rdi leaq -104(%rbp), %rsi movl $56, %edx callq _memcpy movq -24(%rbp), %rax movq %rax, -32(%rbp) LBB2_14: jmp LBB2_15 LBB2_15: movq -32(%rbp), %rax addq $128, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _mktime ## -- Begin function _mktime .p2align 4, 0x90 _mktime: ## @"\01_mktime" .cfi_startproc ## %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 leaq _my_mktime_localtime_r(%rip), %rsi leaq _localtime_offset(%rip), %rdx callq ___mktime_internal addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function my_mktime_localtime_r _my_mktime_localtime_r: ## @my_mktime_localtime_r .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -16(%rbp) movq %rsi, -24(%rbp) movq -16(%rbp), %rdi callq _localtime movq %rax, -32(%rbp) cmpq $0, -32(%rbp) jne LBB4_2 ## %bb.1: movq $0, -8(%rbp) jmp LBB4_3 LBB4_2: movq -24(%rbp), %rdi movq -32(%rbp), %rsi movl $56, %edx callq _memcpy movq -24(%rbp), %rax movq %rax, -8(%rbp) LBB4_3: movq -8(%rbp), %rax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__const .globl ___mon_yday ## @__mon_yday .p2align 4 ___mon_yday: .short 0 ## 0x0 .short 31 ## 0x1f .short 59 ## 0x3b .short 90 ## 0x5a .short 120 ## 0x78 .short 151 ## 0x97 .short 181 ## 0xb5 .short 212 ## 0xd4 .short 243 ## 0xf3 .short 273 ## 0x111 .short 304 ## 0x130 .short 334 ## 0x14e .short 365 ## 0x16d .short 0 ## 0x0 .short 31 ## 0x1f .short 60 ## 0x3c .short 91 ## 0x5b .short 121 ## 0x79 .short 152 ## 0x98 .short 182 ## 0xb6 .short 213 ## 0xd5 .short 244 ## 0xf4 .short 274 ## 0x112 .short 305 ## 0x131 .short 335 ## 0x14f .short 366 ## 0x16e .zerofill __DATA,__bss,_localtime_offset,8,3 ## @localtime_offset .subsections_via_symbols
the_stack_data/98574664.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] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _puts adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] ldr x1, [x8] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _fputs stur wzr, [x29, #-20] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-20] ldur w9, [x29, #-8] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_4 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-20] ; implicit-def: $x10 mov x10, x8 ldur x8, [x29, #-16] ldursw x9, [x29, #-20] ldr x8, [x8, x9, lsl #3] mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-20] add w8, w8, #1 stur w8, [x29, #-20] b LBB0_1 LBB0_4: ldur w8, [x29, #-8] subs w10, w8, #2 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 w8, [x29, #-8] subs w0, w8, #2 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 "The echo_arguments test program" l_.str.1: ; @.str.1 .asciz "This is a output line to stderr\n" l_.str.2: ; @.str.2 .asciz "argument %2d is '%s'\n" l_.str.3: ; @.str.3 .asciz "exit code of the test program is %d\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl $0, -4(%rbp) movl %edi, -8(%rbp) movq %rsi, -16(%rbp) leaq L_.str(%rip), %rdi callq _puts movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rsi leaq L_.str.1(%rip), %rdi callq _fputs movl $0, -20(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movl -20(%rbp), %eax cmpl -8(%rbp), %eax jge LBB0_4 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl -20(%rbp), %esi movq -16(%rbp), %rax movslq -20(%rbp), %rcx movq (%rax,%rcx,8), %rdx leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB0_1 LBB0_4: movl -8(%rbp), %esi subl $2, %esi leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf movl -8(%rbp), %eax subl $2, %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "The echo_arguments test program" L_.str.1: ## @.str.1 .asciz "This is a output line to stderr\n" L_.str.2: ## @.str.2 .asciz "argument %2d is '%s'\n" L_.str.3: ## @.str.3 .asciz "exit code of the test program is %d\n" .subsections_via_symbols
the_stack_data/218891937.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #112 .cfi_def_cfa_offset 112 stp x29, x30, [sp, #96] ; 16-byte Folded Spill add x29, sp, #96 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] str wzr, [sp, #40] str w0, [sp, #36] str x1, [sp, #24] add x0, sp, #44 adrp x1, l___const.main.lance@PAGE add x1, x1, l___const.main.lance@PAGEOFF mov x2, #44 bl _memcpy str wzr, [sp, #20] str wzr, [sp, #16] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #16] subs w8, w8, #11 cset w8, ge tbnz w8, #0, LBB0_6 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldrsw x9, [sp, #16] add x8, sp, #44 ldr w8, [x8, x9, lsl #2] ldr w9, [sp, #20] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldrsw x9, [sp, #16] add x8, sp, #44 ldr w8, [x8, x9, lsl #2] str w8, [sp, #20] 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, #16] add w8, w8, #1 str w8, [sp, #16] b LBB0_1 LBB0_6: ldr w9, [sp, #20] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_8 b LBB0_7 LBB0_7: bl ___stack_chk_fail LBB0_8: mov w0, #0 ldp x29, x30, [sp, #96] ; 16-byte Folded Reload add sp, sp, #112 ret .cfi_endproc ; -- End function .section __TEXT,__const .p2align 2 ; @__const.main.lance l___const.main.lance: .long 8 ; 0x8 .long 6 ; 0x6 .long 5 ; 0x5 .long 5 ; 0x5 .long 31 ; 0x1f .long 100 ; 0x64 .long 800 ; 0x320 .long 4 ; 0x4 .long 31 ; 0x1f .long 4 ; 0x4 .long 6 ; 0x6 .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "maior numero e %d" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $96, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -68(%rbp) movl %edi, -72(%rbp) movq %rsi, -80(%rbp) leaq -64(%rbp), %rdi leaq l___const.main.lance(%rip), %rsi movl $44, %edx callq _memcpy movl $0, -84(%rbp) movl $0, -88(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 cmpl $11, -88(%rbp) jge LBB0_6 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movslq -88(%rbp), %rax movl -64(%rbp,%rax,4), %eax cmpl -84(%rbp), %eax jle LBB0_4 ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movslq -88(%rbp), %rax movl -64(%rbp,%rax,4), %eax movl %eax, -84(%rbp) LBB0_4: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_5 LBB0_5: ## in Loop: Header=BB0_1 Depth=1 movl -88(%rbp), %eax addl $1, %eax movl %eax, -88(%rbp) jmp LBB0_1 LBB0_6: movl -84(%rbp), %esi leaq L_.str(%rip), %rdi movb $0, %al callq _printf movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_8 ## %bb.7: xorl %eax, %eax addq $96, %rsp popq %rbp retq LBB0_8: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__const .p2align 4 ## @__const.main.lance l___const.main.lance: .long 8 ## 0x8 .long 6 ## 0x6 .long 5 ## 0x5 .long 5 ## 0x5 .long 31 ## 0x1f .long 100 ## 0x64 .long 800 ## 0x320 .long 4 ## 0x4 .long 31 ## 0x1f .long 4 ## 0x4 .long 6 ## 0x6 .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "maior numero e %d" .subsections_via_symbols
the_stack_data/247017498.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/18161.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] str w0, [sp, #8] str x1, [sp] ldr w8, [sp, #8] subs w8, w8, #1 cset w8, le tbnz w8, #0, LBB0_5 b LBB0_1 LBB0_1: b LBB0_2 LBB0_2: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp] ldr x8, [x8, #8] ldrb w8, [x8] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: ; in Loop: Header=BB0_2 Depth=1 ldr x9, [sp] ldr x1, [x9, #8] mov x8, x1 add x8, x8, #1 str x8, [x9, #8] mov w0, #1 mov x2, #1 bl _write b LBB0_2 LBB0_4: b LBB0_5 LBB0_5: mov w0, #1 adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF mov x2, #1 bl _write mov w0, #0 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) movl %edi, -8(%rbp) movq %rsi, -16(%rbp) cmpl $1, -8(%rbp) jle LBB0_5 ## %bb.1: jmp LBB0_2 LBB0_2: ## =>This Inner Loop Header: Depth=1 movq -16(%rbp), %rax movq 8(%rax), %rax cmpb $0, (%rax) je LBB0_4 ## %bb.3: ## in Loop: Header=BB0_2 Depth=1 movq -16(%rbp), %rax movq 8(%rax), %rsi movq %rsi, %rcx addq $1, %rcx movq %rcx, 8(%rax) movl $1, %edi movl $1, %edx callq _write jmp LBB0_2 LBB0_4: jmp LBB0_5 LBB0_5: movl $1, %edi leaq L_.str(%rip), %rsi movl $1, %edx callq _write xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "\n" .subsections_via_symbols
the_stack_data/190767686.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, #896 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] mov w8, #0 str w8, [sp, #24] ; 4-byte Folded Spill str wzr, [sp, #80] mov x9, sp add x8, sp, #76 str x8, [x9] add x8, sp, #72 str x8, [x9, #8] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _scanf add x0, sp, #84 mov x1, #804 bl _bzero ldr w8, [sp, #24] ; 4-byte Folded Reload ldr w9, [sp, #72] mov w11, #2 sdiv w10, w9, w11 mul w10, w10, w11 subs w9, w9, w10 subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: mov w9, #2 str w9, [sp, #68] ldr w8, [sp, #72] sdiv w8, w8, w9 subs w8, w8, #1 str w8, [sp, #64] b LBB0_3 LBB0_2: mov w8, #1 str w8, [sp, #68] ldr w8, [sp, #72] mov w9, #2 sdiv w8, w8, w9 str w8, [sp, #64] b LBB0_3 LBB0_3: str wzr, [sp, #60] ldrsw x9, [sp, #76] mov x8, #4 mul x0, x8, x9 bl _malloc str x0, [sp, #48] str xzr, [sp, #40] b LBB0_4 LBB0_4: ; =>This Loop Header: Depth=1 ; Child Loop BB0_7 Depth 2 ; Child Loop BB0_41 Depth 2 ; Child Loop BB0_23 Depth 2 ; Child Loop BB0_16 Depth 2 ldr x8, [sp, #40] ldrsw x9, [sp, #76] subs x8, x8, x9 cset w8, hs tbnz w8, #0, LBB0_55 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_4 Depth=1 ldr x8, [sp, #48] ldr x9, [sp, #40] add x8, x8, x9, lsl #2 mov x9, sp str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf ldr x8, [sp, #40] ldrsw x9, [sp, #72] subs x8, x8, x9 cset w8, lo tbnz w8, #0, LBB0_53 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_4 Depth=1 ldr w8, [sp, #64] str w8, [sp, #36] str wzr, [sp, #32] str wzr, [sp, #28] b LBB0_7 LBB0_7: ; Parent Loop BB0_4 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #36] subs w8, w8, #0 cset w8, le mov w9, #0 str w9, [sp, #20] ; 4-byte Folded Spill tbnz w8, #0, LBB0_9 b LBB0_8 LBB0_8: ; in Loop: Header=BB0_7 Depth=2 ldr w8, [sp, #32] subs w8, w8, #200 cset w8, le str w8, [sp, #20] ; 4-byte Folded Spill b LBB0_9 LBB0_9: ; in Loop: Header=BB0_7 Depth=2 ldr w8, [sp, #20] ; 4-byte Folded Reload tbz w8, #0, LBB0_13 b LBB0_10 LBB0_10: ; in Loop: Header=BB0_7 Depth=2 ldrsw x9, [sp, #32] add x8, sp, #84 ldr w8, [x8, x9, lsl #2] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_12 b LBB0_11 LBB0_11: ; in Loop: Header=BB0_7 Depth=2 ldrsw x9, [sp, #32] add x8, sp, #84 ldr w9, [x8, x9, lsl #2] ldr w8, [sp, #36] subs w8, w8, w9 str w8, [sp, #36] b LBB0_12 LBB0_12: ; in Loop: Header=BB0_7 Depth=2 ldr w8, [sp, #32] add w8, w8, #1 str w8, [sp, #32] b LBB0_7 LBB0_13: ; in Loop: Header=BB0_4 Depth=1 ldr w9, [sp, #36] mov w8, #0 subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_37 b LBB0_14 LBB0_14: ; in Loop: Header=BB0_4 Depth=1 ldr w9, [sp, #68] mov w8, #1 subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_22 b LBB0_15 LBB0_15: ; in Loop: Header=BB0_4 Depth=1 b LBB0_16 LBB0_16: ; Parent Loop BB0_4 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #32] subs w8, w8, #200 cset w8, gt tbnz w8, #0, LBB0_21 b LBB0_17 LBB0_17: ; in Loop: Header=BB0_16 Depth=2 ldrsw x9, [sp, #32] add x8, sp, #84 ldr w8, [x8, x9, lsl #2] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_19 b LBB0_18 LBB0_18: ; in Loop: Header=BB0_4 Depth=1 ldr w8, [sp, #32] lsl w8, w8, #1 str w8, [sp, #28] b LBB0_21 LBB0_19: ; in Loop: Header=BB0_16 Depth=2 b LBB0_20 LBB0_20: ; in Loop: Header=BB0_16 Depth=2 ldr w8, [sp, #32] add w8, w8, #1 str w8, [sp, #32] b LBB0_16 LBB0_21: ; in Loop: Header=BB0_4 Depth=1 b LBB0_36 LBB0_22: ; in Loop: Header=BB0_4 Depth=1 b LBB0_23 LBB0_23: ; Parent Loop BB0_4 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #36] adds w8, w8, #2 cset w8, le mov w9, #0 str w9, [sp, #16] ; 4-byte Folded Spill tbnz w8, #0, LBB0_25 b LBB0_24 LBB0_24: ; in Loop: Header=BB0_23 Depth=2 ldr w8, [sp, #32] subs w8, w8, #200 cset w8, le str w8, [sp, #16] ; 4-byte Folded Spill b LBB0_25 LBB0_25: ; in Loop: Header=BB0_23 Depth=2 ldr w8, [sp, #16] ; 4-byte Folded Reload tbz w8, #0, LBB0_35 b LBB0_26 LBB0_26: ; in Loop: Header=BB0_23 Depth=2 ldrsw x9, [sp, #32] add x8, sp, #84 ldr w8, [x8, x9, lsl #2] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_34 b LBB0_27 LBB0_27: ; in Loop: Header=BB0_23 Depth=2 ldrsw x9, [sp, #32] add x8, sp, #84 ldr w9, [x8, x9, lsl #2] ldr w8, [sp, #36] subs w8, w8, w9 str w8, [sp, #36] ldr w9, [sp, #36] mov w8, #-1 subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_29 b LBB0_28 LBB0_28: ; in Loop: Header=BB0_23 Depth=2 ldr w9, [sp, #32] ldr w8, [sp, #28] add w8, w8, w9 str w8, [sp, #28] b LBB0_33 LBB0_29: ; in Loop: Header=BB0_4 Depth=1 ldr w9, [sp, #28] mov w8, #0 subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_31 b LBB0_30 LBB0_30: ; in Loop: Header=BB0_4 Depth=1 ldr w9, [sp, #32] mov w8, #2 mul w8, w8, w9 str w8, [sp, #28] b LBB0_32 LBB0_31: ; in Loop: Header=BB0_4 Depth=1 ldr w9, [sp, #32] ldr w8, [sp, #28] add w8, w8, w9 str w8, [sp, #28] b LBB0_32 LBB0_32: ; in Loop: Header=BB0_4 Depth=1 b LBB0_35 LBB0_33: ; in Loop: Header=BB0_23 Depth=2 b LBB0_34 LBB0_34: ; in Loop: Header=BB0_23 Depth=2 ldr w8, [sp, #32] add w8, w8, #1 str w8, [sp, #32] b LBB0_23 LBB0_35: ; in Loop: Header=BB0_4 Depth=1 b LBB0_36 LBB0_36: ; in Loop: Header=BB0_4 Depth=1 b LBB0_50 LBB0_37: ; in Loop: Header=BB0_4 Depth=1 ldr w9, [sp, #36] mov w8, #-1 subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_48 b LBB0_38 LBB0_38: ; in Loop: Header=BB0_4 Depth=1 ldr w9, [sp, #68] mov w8, #1 subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_40 b LBB0_39 LBB0_39: ; in Loop: Header=BB0_4 Depth=1 ldr w8, [sp, #32] subs w9, w8, #1 mov w8, #2 mul w8, w8, w9 str w8, [sp, #28] b LBB0_47 LBB0_40: ; in Loop: Header=BB0_4 Depth=1 ldr w8, [sp, #32] subs w8, w8, #1 str w8, [sp, #28] b LBB0_41 LBB0_41: ; Parent Loop BB0_4 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #32] subs w8, w8, #200 cset w8, gt tbnz w8, #0, LBB0_46 b LBB0_42 LBB0_42: ; in Loop: Header=BB0_41 Depth=2 ldrsw x9, [sp, #32] add x8, sp, #84 ldr w8, [x8, x9, lsl #2] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_44 b LBB0_43 LBB0_43: ; in Loop: Header=BB0_4 Depth=1 ldr w9, [sp, #32] ldr w8, [sp, #28] add w8, w8, w9 str w8, [sp, #28] b LBB0_46 LBB0_44: ; in Loop: Header=BB0_41 Depth=2 b LBB0_45 LBB0_45: ; in Loop: Header=BB0_41 Depth=2 ldr w8, [sp, #32] add w8, w8, #1 str w8, [sp, #32] b LBB0_41 LBB0_46: ; in Loop: Header=BB0_4 Depth=1 b LBB0_47 LBB0_47: ; in Loop: Header=BB0_4 Depth=1 b LBB0_49 LBB0_48: ; in Loop: Header=BB0_4 Depth=1 ldr w8, [sp, #32] subs w9, w8, #1 mov w8, #2 mul w8, w8, w9 str w8, [sp, #28] b LBB0_49 LBB0_49: ; in Loop: Header=BB0_4 Depth=1 b LBB0_50 LBB0_50: ; in Loop: Header=BB0_4 Depth=1 ldr x8, [sp, #48] ldr x9, [sp, #40] ldr w8, [x8, x9, lsl #2] ldr w9, [sp, #28] subs w8, w8, w9 cset w8, lt tbnz w8, #0, LBB0_52 b LBB0_51 LBB0_51: ; in Loop: Header=BB0_4 Depth=1 ldr w8, [sp, #60] add w8, w8, #1 str w8, [sp, #60] b LBB0_52 LBB0_52: ; in Loop: Header=BB0_4 Depth=1 ldr x8, [sp, #48] ldr x9, [sp, #40] ldrsw x10, [sp, #72] subs x9, x9, x10 ldrsw x9, [x8, x9, lsl #2] add x8, sp, #84 add x9, x8, x9, lsl #2 ldr w8, [x9] subs w8, w8, #1 str w8, [x9] b LBB0_53 LBB0_53: ; in Loop: Header=BB0_4 Depth=1 ldr x8, [sp, #48] ldr x9, [sp, #40] ldrsw x9, [x8, x9, lsl #2] add x8, sp, #84 add x9, x8, x9, lsl #2 ldr w8, [x9] add w8, w8, #1 str w8, [x9] b LBB0_54 LBB0_54: ; in Loop: Header=BB0_4 Depth=1 ldr x8, [sp, #40] add x8, x8, #1 str x8, [sp, #40] b LBB0_4 LBB0_55: ldr w9, [sp, #60] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf ldr x0, [sp, #48] bl _free ldur x9, [x29, #-24] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_57 b LBB0_56 LBB0_56: bl ___stack_chk_fail LBB0_57: mov w0, #0 add sp, sp, #896 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 %d" l_.str.1: ; @.str.1 .asciz "%d" l_.str.2: ; @.str.2 .asciz "%d\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $880, %rsp ## imm = 0x370 movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -820(%rbp) leaq L_.str(%rip), %rdi leaq -824(%rbp), %rsi leaq -828(%rbp), %rdx movb $0, %al callq _scanf leaq -816(%rbp), %rdi xorl %esi, %esi movl $804, %edx ## imm = 0x324 callq _memset movl -828(%rbp), %eax movl $2, %ecx cltd idivl %ecx xorl %eax, %eax cmpl %edx, %eax jne LBB0_2 ## %bb.1: movl $2, -832(%rbp) movl -828(%rbp), %eax movl $2, %ecx cltd idivl %ecx subl $1, %eax movl %eax, -836(%rbp) jmp LBB0_3 LBB0_2: movl $1, -832(%rbp) movl -828(%rbp), %eax movl $2, %ecx cltd idivl %ecx movl %eax, -836(%rbp) LBB0_3: movl $0, -840(%rbp) movslq -824(%rbp), %rdi shlq $2, %rdi callq _malloc movq %rax, -848(%rbp) movq $0, -856(%rbp) LBB0_4: ## =>This Loop Header: Depth=1 ## Child Loop BB0_7 Depth 2 ## Child Loop BB0_16 Depth 2 ## Child Loop BB0_23 Depth 2 ## Child Loop BB0_41 Depth 2 movq -856(%rbp), %rax movslq -824(%rbp), %rcx cmpq %rcx, %rax jae LBB0_55 ## %bb.5: ## in Loop: Header=BB0_4 Depth=1 movq -848(%rbp), %rsi movq -856(%rbp), %rax shlq $2, %rax addq %rax, %rsi leaq L_.str.1(%rip), %rdi movb $0, %al callq _scanf movq -856(%rbp), %rax movslq -828(%rbp), %rcx cmpq %rcx, %rax jb LBB0_53 ## %bb.6: ## in Loop: Header=BB0_4 Depth=1 movl -836(%rbp), %eax movl %eax, -860(%rbp) movl $0, -864(%rbp) movl $0, -868(%rbp) LBB0_7: ## Parent Loop BB0_4 Depth=1 ## => This Inner Loop Header: Depth=2 xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $0, -860(%rbp) movb %al, -869(%rbp) ## 1-byte Spill jle LBB0_9 ## %bb.8: ## in Loop: Header=BB0_7 Depth=2 cmpl $200, -864(%rbp) setle %al movb %al, -869(%rbp) ## 1-byte Spill LBB0_9: ## in Loop: Header=BB0_7 Depth=2 movb -869(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB0_10 jmp LBB0_13 LBB0_10: ## in Loop: Header=BB0_7 Depth=2 movslq -864(%rbp), %rax cmpl $0, -816(%rbp,%rax,4) je LBB0_12 ## %bb.11: ## in Loop: Header=BB0_7 Depth=2 movslq -864(%rbp), %rax movl -816(%rbp,%rax,4), %ecx movl -860(%rbp), %eax subl %ecx, %eax movl %eax, -860(%rbp) LBB0_12: ## in Loop: Header=BB0_7 Depth=2 movl -864(%rbp), %eax addl $1, %eax movl %eax, -864(%rbp) jmp LBB0_7 LBB0_13: ## in Loop: Header=BB0_4 Depth=1 xorl %eax, %eax cmpl -860(%rbp), %eax jne LBB0_37 ## %bb.14: ## in Loop: Header=BB0_4 Depth=1 movl $1, %eax cmpl -832(%rbp), %eax jne LBB0_22 ## %bb.15: ## in Loop: Header=BB0_4 Depth=1 LBB0_16: ## Parent Loop BB0_4 Depth=1 ## => This Inner Loop Header: Depth=2 cmpl $200, -864(%rbp) jg LBB0_21 ## %bb.17: ## in Loop: Header=BB0_16 Depth=2 movslq -864(%rbp), %rax cmpl $0, -816(%rbp,%rax,4) je LBB0_19 ## %bb.18: ## in Loop: Header=BB0_4 Depth=1 movl -864(%rbp), %eax shll $1, %eax movl %eax, -868(%rbp) jmp LBB0_21 LBB0_19: ## in Loop: Header=BB0_16 Depth=2 jmp LBB0_20 LBB0_20: ## in Loop: Header=BB0_16 Depth=2 movl -864(%rbp), %eax addl $1, %eax movl %eax, -864(%rbp) jmp LBB0_16 LBB0_21: ## in Loop: Header=BB0_4 Depth=1 jmp LBB0_36 LBB0_22: ## in Loop: Header=BB0_4 Depth=1 jmp LBB0_23 LBB0_23: ## Parent Loop BB0_4 Depth=1 ## => This Inner Loop Header: Depth=2 xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $-2, -860(%rbp) movb %al, -870(%rbp) ## 1-byte Spill jle LBB0_25 ## %bb.24: ## in Loop: Header=BB0_23 Depth=2 cmpl $200, -864(%rbp) setle %al movb %al, -870(%rbp) ## 1-byte Spill LBB0_25: ## in Loop: Header=BB0_23 Depth=2 movb -870(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB0_26 jmp LBB0_35 LBB0_26: ## in Loop: Header=BB0_23 Depth=2 movslq -864(%rbp), %rax cmpl $0, -816(%rbp,%rax,4) je LBB0_34 ## %bb.27: ## in Loop: Header=BB0_23 Depth=2 movslq -864(%rbp), %rax movl -816(%rbp,%rax,4), %ecx movl -860(%rbp), %eax subl %ecx, %eax movl %eax, -860(%rbp) movl $4294967295, %eax ## imm = 0xFFFFFFFF cmpl -860(%rbp), %eax jne LBB0_29 ## %bb.28: ## in Loop: Header=BB0_23 Depth=2 movl -864(%rbp), %eax addl -868(%rbp), %eax movl %eax, -868(%rbp) jmp LBB0_33 LBB0_29: ## in Loop: Header=BB0_4 Depth=1 xorl %eax, %eax cmpl -868(%rbp), %eax jne LBB0_31 ## %bb.30: ## in Loop: Header=BB0_4 Depth=1 movl -864(%rbp), %eax shll $1, %eax movl %eax, -868(%rbp) jmp LBB0_32 LBB0_31: ## in Loop: Header=BB0_4 Depth=1 movl -864(%rbp), %eax addl -868(%rbp), %eax movl %eax, -868(%rbp) LBB0_32: ## in Loop: Header=BB0_4 Depth=1 jmp LBB0_35 LBB0_33: ## in Loop: Header=BB0_23 Depth=2 jmp LBB0_34 LBB0_34: ## in Loop: Header=BB0_23 Depth=2 movl -864(%rbp), %eax addl $1, %eax movl %eax, -864(%rbp) jmp LBB0_23 LBB0_35: ## in Loop: Header=BB0_4 Depth=1 jmp LBB0_36 LBB0_36: ## in Loop: Header=BB0_4 Depth=1 jmp LBB0_50 LBB0_37: ## in Loop: Header=BB0_4 Depth=1 movl $4294967295, %eax ## imm = 0xFFFFFFFF cmpl -860(%rbp), %eax jne LBB0_48 ## %bb.38: ## in Loop: Header=BB0_4 Depth=1 movl $1, %eax cmpl -832(%rbp), %eax jne LBB0_40 ## %bb.39: ## in Loop: Header=BB0_4 Depth=1 movl -864(%rbp), %eax subl $1, %eax shll $1, %eax movl %eax, -868(%rbp) jmp LBB0_47 LBB0_40: ## in Loop: Header=BB0_4 Depth=1 movl -864(%rbp), %eax subl $1, %eax movl %eax, -868(%rbp) LBB0_41: ## Parent Loop BB0_4 Depth=1 ## => This Inner Loop Header: Depth=2 cmpl $200, -864(%rbp) jg LBB0_46 ## %bb.42: ## in Loop: Header=BB0_41 Depth=2 movslq -864(%rbp), %rax cmpl $0, -816(%rbp,%rax,4) je LBB0_44 ## %bb.43: ## in Loop: Header=BB0_4 Depth=1 movl -864(%rbp), %eax addl -868(%rbp), %eax movl %eax, -868(%rbp) jmp LBB0_46 LBB0_44: ## in Loop: Header=BB0_41 Depth=2 jmp LBB0_45 LBB0_45: ## in Loop: Header=BB0_41 Depth=2 movl -864(%rbp), %eax addl $1, %eax movl %eax, -864(%rbp) jmp LBB0_41 LBB0_46: ## in Loop: Header=BB0_4 Depth=1 jmp LBB0_47 LBB0_47: ## in Loop: Header=BB0_4 Depth=1 jmp LBB0_49 LBB0_48: ## in Loop: Header=BB0_4 Depth=1 movl -864(%rbp), %eax subl $1, %eax shll $1, %eax movl %eax, -868(%rbp) LBB0_49: ## in Loop: Header=BB0_4 Depth=1 jmp LBB0_50 LBB0_50: ## in Loop: Header=BB0_4 Depth=1 movq -848(%rbp), %rax movq -856(%rbp), %rcx movl (%rax,%rcx,4), %eax cmpl -868(%rbp), %eax jl LBB0_52 ## %bb.51: ## in Loop: Header=BB0_4 Depth=1 movl -840(%rbp), %eax addl $1, %eax movl %eax, -840(%rbp) LBB0_52: ## in Loop: Header=BB0_4 Depth=1 movq -848(%rbp), %rax movq -856(%rbp), %rcx movslq -828(%rbp), %rdx subq %rdx, %rcx movslq (%rax,%rcx,4), %rax movl -816(%rbp,%rax,4), %ecx addl $-1, %ecx movl %ecx, -816(%rbp,%rax,4) LBB0_53: ## in Loop: Header=BB0_4 Depth=1 movq -848(%rbp), %rax movq -856(%rbp), %rcx movslq (%rax,%rcx,4), %rax movl -816(%rbp,%rax,4), %ecx addl $1, %ecx movl %ecx, -816(%rbp,%rax,4) ## %bb.54: ## in Loop: Header=BB0_4 Depth=1 movq -856(%rbp), %rax addq $1, %rax movq %rax, -856(%rbp) jmp LBB0_4 LBB0_55: movl -840(%rbp), %esi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf movq -848(%rbp), %rdi callq _free movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_57 ## %bb.56: xorl %eax, %eax addq $880, %rsp ## imm = 0x370 popq %rbp retq LBB0_57: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d %d" L_.str.1: ## @.str.1 .asciz "%d" L_.str.2: ## @.str.2 .asciz "%d\n" .subsections_via_symbols
the_stack_data/234519285.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _swap_direct ; -- Begin function swap_direct .p2align 2 _swap_direct: ; @swap_direct .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, #24] str x1, [sp, #16] ldr x8, [sp, #24] ldr w8, [x8] str w8, [sp, #12] ldr x8, [sp, #16] ldr w8, [x8] ldr x9, [sp, #24] str w8, [x9] ldr w8, [sp, #12] ldr x9, [sp, #16] str w8, [x9] add sp, sp, #32 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _swap_direct ## -- Begin function swap_direct .p2align 4, 0x90 _swap_direct: ## @swap_direct .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) movq -8(%rbp), %rax movl (%rax), %eax movl %eax, -20(%rbp) movq -16(%rbp), %rax movl (%rax), %ecx movq -8(%rbp), %rax movl %ecx, (%rax) movl -20(%rbp), %ecx movq -16(%rbp), %rax movl %ecx, (%rax) popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/129152.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] stur w0, [x29, #-8] str x1, [sp, #16] ldur w8, [x29, #-8] subs w8, w8, #2 cset w8, eq tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] ldr x0, [x8] adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF bl _fprintf mov w0, #1 bl _exit LBB0_2: ldr x8, [sp, #16] ldr x0, [x8, #8] bl _atoi str w0, [sp, #12] subs w8, w0, #0 cset w8, le tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: ldr w0, [sp, #12] bl _sleep b LBB0_4 LBB0_4: mov w0, #0 bl _exit .cfi_endproc ; -- End function .section __DATA,__data .globl _copyright ; @copyright _copyright: .asciz "@(#) Copyright (c) 1988 Regents of the University of California.\n All rights reserved.\n" .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "usage: sleep time\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl $0, -4(%rbp) movl %edi, -8(%rbp) movq %rsi, -16(%rbp) cmpl $2, -8(%rbp) je LBB0_2 ## %bb.1: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str(%rip), %rsi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _fprintf movl $1, %edi callq _exit LBB0_2: movq -16(%rbp), %rax movq 8(%rax), %rdi callq _atoi movl %eax, -20(%rbp) cmpl $0, %eax jle LBB0_4 ## %bb.3: movl -20(%rbp), %edi callq _sleep LBB0_4: xorl %edi, %edi callq _exit .cfi_endproc ## -- End function .section __DATA,__data .globl _copyright ## @copyright .p2align 4 _copyright: .asciz "@(#) Copyright (c) 1988 Regents of the University of California.\n All rights reserved.\n" .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "usage: sleep time\n" .subsections_via_symbols
the_stack_data/137396.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __TEXT,__const .globl _GREENWOODVersionString ; @GREENWOODVersionString _GREENWOODVersionString: .asciz "@(#)PROGRAM:GREENWOOD PROJECT:GREENWOOD-1\n" .globl _GREENWOODVersionNumber ; @GREENWOODVersionNumber .p2align 3 _GREENWOODVersionNumber: .quad 0x3ff0000000000000 ; double 1 .no_dead_strip _GREENWOODVersionString .no_dead_strip _GREENWOODVersionNumber .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __TEXT,__const .globl _GREENWOODVersionString ## @GREENWOODVersionString .p2align 4 _GREENWOODVersionString: .asciz "@(#)PROGRAM:GREENWOOD PROJECT:GREENWOOD-1\n" .globl _GREENWOODVersionNumber ## @GREENWOODVersionNumber .p2align 3 _GREENWOODVersionNumber: .quad 0x3ff0000000000000 ## double 1 .no_dead_strip _GREENWOODVersionString .no_dead_strip _GREENWOODVersionNumber .subsections_via_symbols
the_stack_data/7951396.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] mov w0, #3 str w0, [sp, #12] ; 4-byte Folded Spill add x1, sp, #32 str x1, [sp, #16] ; 8-byte Folded Spill bl _input_array ldr w0, [sp, #12] ; 4-byte Folded Reload ldr x1, [sp, #16] ; 8-byte Folded Reload bl _show_result adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: bl ___stack_chk_fail LBB0_2: mov w0, #0 ldp x29, x30, [sp, #160] ; 16-byte Folded Reload add sp, sp, #176 ret .cfi_endproc ; -- End function .globl _input_array ; -- Begin function input_array .p2align 2 _input_array: ; @input_array .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur w0, [x29, #-4] str x1, [sp, #16] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf str wzr, [sp, #12] b LBB1_1 LBB1_1: ; =>This Loop Header: Depth=1 ; Child Loop BB1_3 Depth 2 ldr w8, [sp, #12] ldur w9, [x29, #-4] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_8 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf 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, #5 cset w8, ge tbnz w8, #0, LBB1_6 b LBB1_4 LBB1_4: ; in Loop: Header=BB1_3 Depth=2 ldr x8, [sp, #16] ldrsw x9, [sp, #12] mov x10, #40 mul x9, x9, x10 add x8, x8, x9 ldrsw x9, [sp, #8] add x8, x8, x9, lsl #3 mov x9, sp str x8, [x9] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _scanf 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: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _show_result ; -- Begin function show_result .p2align 2 _show_result: ; @show_result .cfi_startproc ; %bb.0: sub sp, sp, #80 .cfi_def_cfa_offset 80 stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp, #64 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur w0, [x29, #-4] stur x1, [x29, #-16] 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 stur wzr, [x29, #-20] b LBB2_1 LBB2_1: ; =>This Loop Header: Depth=1 ; Child Loop BB2_3 Depth 2 ldur w8, [x29, #-20] ldur w9, [x29, #-4] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB2_8 b LBB2_2 LBB2_2: ; in Loop: Header=BB2_1 Depth=1 stur wzr, [x29, #-24] b LBB2_3 LBB2_3: ; Parent Loop BB2_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldur w8, [x29, #-24] subs w8, w8, #5 cset w8, ge tbnz w8, #0, LBB2_6 b LBB2_4 LBB2_4: ; in Loop: Header=BB2_3 Depth=2 ldur x8, [x29, #-16] ldursw x9, [x29, #-20] mov x10, #40 mul x9, x9, x10 add x8, x8, x9 ldursw x9, [x29, #-24] ldr d0, [x8, x9, lsl #3] mov x8, sp str d0, [x8] adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _printf b LBB2_5 LBB2_5: ; in Loop: Header=BB2_3 Depth=2 ldur w8, [x29, #-24] add w8, w8, #1 stur w8, [x29, #-24] b LBB2_3 LBB2_6: ; in Loop: Header=BB2_1 Depth=1 adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf b LBB2_7 LBB2_7: ; in Loop: Header=BB2_1 Depth=1 ldur w8, [x29, #-20] add w8, w8, #1 stur w8, [x29, #-20] b LBB2_1 LBB2_8: adrp x0, l_.str.7@PAGE add x0, x0, l_.str.7@PAGEOFF bl _printf stur wzr, [x29, #-28] b LBB2_9 LBB2_9: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-28] ldur w9, [x29, #-4] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB2_12 b LBB2_10 LBB2_10: ; in Loop: Header=BB2_9 Depth=1 ldur w9, [x29, #-28] ; implicit-def: $x8 mov x8, x9 str x8, [sp, #24] ; 8-byte Folded Spill ldur x8, [x29, #-16] ldursw x9, [x29, #-28] mov x10, #40 mul x9, x9, x10 add x1, x8, x9 mov w0, #5 bl _col_average ldr x9, [sp, #24] ; 8-byte Folded Reload mov x8, sp str x9, [x8] str d0, [x8, #8] adrp x0, l_.str.8@PAGE add x0, x0, l_.str.8@PAGEOFF bl _printf b LBB2_11 LBB2_11: ; in Loop: Header=BB2_9 Depth=1 ldur w8, [x29, #-28] add w8, w8, #1 stur w8, [x29, #-28] b LBB2_9 LBB2_12: ldur x1, [x29, #-16] mov w0, #3 str w0, [sp, #20] ; 4-byte Folded Spill bl _array_average mov x8, sp str d0, [x8] adrp x0, l_.str.9@PAGE add x0, x0, l_.str.9@PAGEOFF bl _printf ldr w0, [sp, #20] ; 4-byte Folded Reload ldur x1, [x29, #-16] bl _array_max_number mov x8, sp str d0, [x8] adrp x0, l_.str.10@PAGE add x0, x0, l_.str.10@PAGEOFF bl _printf ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .globl _col_average ; -- Begin function col_average .p2align 2 _col_average: ; @col_average .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str w0, [sp, #28] str x1, [sp, #16] movi d0, #0000000000000000 str d0, [sp, #8] str wzr, [sp, #4] b LBB3_1 LBB3_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #4] ldr w9, [sp, #28] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB3_4 b LBB3_2 LBB3_2: ; in Loop: Header=BB3_1 Depth=1 ldr x8, [sp, #16] ldrsw x9, [sp, #4] ldr d1, [x8, x9, lsl #3] ldr d0, [sp, #8] fadd d0, d0, d1 str d0, [sp, #8] b LBB3_3 LBB3_3: ; in Loop: Header=BB3_1 Depth=1 ldr w8, [sp, #4] add w8, w8, #1 str w8, [sp, #4] b LBB3_1 LBB3_4: ldr d0, [sp, #8] ldr s2, [sp, #28] ; implicit-def: $d1 fmov s1, s2 sshll.2d v1, v1, #0 ; kill: def $d1 killed $d1 killed $q1 scvtf d1, d1 fdiv d0, d0, d1 add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _array_average ; -- Begin function array_average .p2align 2 _array_average: ; @array_average .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur w0, [x29, #-4] str x1, [sp, #16] movi d0, #0000000000000000 str d0, [sp, #8] str wzr, [sp, #4] b LBB4_1 LBB4_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #4] 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 ldr x8, [sp, #16] ldrsw x9, [sp, #4] mov x10, #40 mul x9, x9, x10 add x1, x8, x9 mov w0, #5 bl _col_average fmov d1, d0 ldr d0, [sp, #8] fadd d0, d0, d1 str d0, [sp, #8] b LBB4_3 LBB4_3: ; in Loop: Header=BB4_1 Depth=1 ldr w8, [sp, #4] add w8, w8, #1 str w8, [sp, #4] b LBB4_1 LBB4_4: ldr d0, [sp, #8] ldur s2, [x29, #-4] ; implicit-def: $d1 fmov s1, s2 sshll.2d v1, v1, #0 ; kill: def $d1 killed $d1 killed $q1 scvtf d1, d1 fdiv d0, d0, d1 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _array_max_number ; -- Begin function array_max_number .p2align 2 _array_max_number: ; @array_max_number .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str w0, [sp, #28] str x1, [sp, #16] ldr x8, [sp, #16] ldr d0, [x8] str d0, [sp, #8] str wzr, [sp, #4] b LBB5_1 LBB5_1: ; =>This Loop Header: Depth=1 ; Child Loop BB5_3 Depth 2 ldr w8, [sp, #4] ldr w9, [sp, #28] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB5_10 b LBB5_2 LBB5_2: ; in Loop: Header=BB5_1 Depth=1 str wzr, [sp] b LBB5_3 LBB5_3: ; Parent Loop BB5_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp] subs w8, w8, #5 cset w8, ge tbnz w8, #0, LBB5_8 b LBB5_4 LBB5_4: ; in Loop: Header=BB5_3 Depth=2 ldr d0, [sp, #8] ldr x8, [sp, #16] ldrsw x9, [sp, #4] mov x10, #40 mul x9, x9, x10 add x8, x8, x9 ldrsw x9, [sp] ldr d1, [x8, x9, lsl #3] fcmp d0, d1 cset w8, pl tbnz w8, #0, LBB5_6 b LBB5_5 LBB5_5: ; in Loop: Header=BB5_3 Depth=2 ldr x8, [sp, #16] ldrsw x9, [sp, #4] mov x10, #40 mul x9, x9, x10 add x8, x8, x9 ldrsw x9, [sp] ldr d0, [x8, x9, lsl #3] str d0, [sp, #8] b LBB5_6 LBB5_6: ; in Loop: Header=BB5_3 Depth=2 b LBB5_7 LBB5_7: ; in Loop: Header=BB5_3 Depth=2 ldr w8, [sp] add w8, w8, #1 str w8, [sp] b LBB5_3 LBB5_8: ; in Loop: Header=BB5_1 Depth=1 b LBB5_9 LBB5_9: ; in Loop: Header=BB5_1 Depth=1 ldr w8, [sp, #4] add w8, w8, #1 str w8, [sp, #4] b LBB5_1 LBB5_10: ldr d0, [sp, #8] add sp, sp, #32 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "\n" l_.str.1: ; @.str.1 .asciz "Enter the array number.\n" l_.str.2: ; @.str.2 .asciz "Enter five double number seprate by enter:\n" l_.str.3: ; @.str.3 .asciz "%lf" l_.str.4: ; @.str.4 .asciz "Now, Let's check the array!\n" l_.str.5: ; @.str.5 .asciz "The array you input is:\n" l_.str.6: ; @.str.6 .asciz "%5g" l_.str.7: ; @.str.7 .asciz "The Average of every column is:\n" l_.str.8: ; @.str.8 .asciz "The %d column's average is %g.\n" l_.str.9: ; @.str.9 .asciz "The array's data average is %g\n" l_.str.10: ; @.str.10 .asciz "The max datum in the array is %g" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $144, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -132(%rbp) leaq -128(%rbp), %rsi movl $3, %edi callq _input_array leaq -128(%rbp), %rsi movl $3, %edi callq _show_result leaq L_.str(%rip), %rdi movb $0, %al callq _printf movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_2 ## %bb.1: xorl %eax, %eax addq $144, %rsp popq %rbp retq LBB0_2: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _input_array ## -- Begin function input_array .p2align 4, 0x90 _input_array: ## @input_array .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl %edi, -4(%rbp) movq %rsi, -16(%rbp) leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf movl $0, -20(%rbp) LBB1_1: ## =>This Loop Header: Depth=1 ## Child Loop BB1_3 Depth 2 movl -20(%rbp), %eax cmpl -4(%rbp), %eax jge LBB1_8 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf movl $0, -24(%rbp) LBB1_3: ## Parent Loop BB1_1 Depth=1 ## => This Inner Loop Header: Depth=2 cmpl $5, -24(%rbp) jge LBB1_6 ## %bb.4: ## in Loop: Header=BB1_3 Depth=2 movq -16(%rbp), %rsi movslq -20(%rbp), %rax imulq $40, %rax, %rax addq %rax, %rsi movslq -24(%rbp), %rax shlq $3, %rax addq %rax, %rsi leaq L_.str.3(%rip), %rdi movb $0, %al callq _scanf ## %bb.5: ## in Loop: Header=BB1_3 Depth=2 movl -24(%rbp), %eax addl $1, %eax movl %eax, -24(%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 -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB1_1 LBB1_8: addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _show_result ## -- Begin function show_result .p2align 4, 0x90 _show_result: ## @show_result .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl %edi, -4(%rbp) movq %rsi, -16(%rbp) leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf leaq L_.str.5(%rip), %rdi movb $0, %al callq _printf movl $0, -20(%rbp) LBB2_1: ## =>This Loop Header: Depth=1 ## Child Loop BB2_3 Depth 2 movl -20(%rbp), %eax cmpl -4(%rbp), %eax jge LBB2_8 ## %bb.2: ## in Loop: Header=BB2_1 Depth=1 movl $0, -24(%rbp) LBB2_3: ## Parent Loop BB2_1 Depth=1 ## => This Inner Loop Header: Depth=2 cmpl $5, -24(%rbp) jge LBB2_6 ## %bb.4: ## in Loop: Header=BB2_3 Depth=2 movq -16(%rbp), %rax movslq -20(%rbp), %rcx imulq $40, %rcx, %rcx addq %rcx, %rax movslq -24(%rbp), %rcx movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero leaq L_.str.6(%rip), %rdi movb $1, %al callq _printf ## %bb.5: ## in Loop: Header=BB2_3 Depth=2 movl -24(%rbp), %eax addl $1, %eax movl %eax, -24(%rbp) jmp LBB2_3 LBB2_6: ## in Loop: Header=BB2_1 Depth=1 leaq L_.str(%rip), %rdi movb $0, %al callq _printf ## %bb.7: ## in Loop: Header=BB2_1 Depth=1 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB2_1 LBB2_8: leaq L_.str.7(%rip), %rdi movb $0, %al callq _printf movl $0, -28(%rbp) LBB2_9: ## =>This Inner Loop Header: Depth=1 movl -28(%rbp), %eax cmpl -4(%rbp), %eax jge LBB2_12 ## %bb.10: ## in Loop: Header=BB2_9 Depth=1 movl -28(%rbp), %eax movl %eax, -32(%rbp) ## 4-byte Spill movq -16(%rbp), %rsi movslq -28(%rbp), %rax imulq $40, %rax, %rax addq %rax, %rsi movl $5, %edi callq _col_average movl -32(%rbp), %esi ## 4-byte Reload leaq L_.str.8(%rip), %rdi movb $1, %al callq _printf ## %bb.11: ## in Loop: Header=BB2_9 Depth=1 movl -28(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) jmp LBB2_9 LBB2_12: movq -16(%rbp), %rsi movl $3, %edi callq _array_average leaq L_.str.9(%rip), %rdi movb $1, %al callq _printf movq -16(%rbp), %rsi movl $3, %edi callq _array_max_number leaq L_.str.10(%rip), %rdi movb $1, %al callq _printf addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _col_average ## -- Begin function col_average .p2align 4, 0x90 _col_average: ## @col_average .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) xorps %xmm0, %xmm0 movsd %xmm0, -24(%rbp) movl $0, -28(%rbp) LBB3_1: ## =>This Inner Loop Header: Depth=1 movl -28(%rbp), %eax cmpl -4(%rbp), %eax jge LBB3_4 ## %bb.2: ## in Loop: Header=BB3_1 Depth=1 movq -16(%rbp), %rax movslq -28(%rbp), %rcx movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero addsd -24(%rbp), %xmm0 movsd %xmm0, -24(%rbp) ## %bb.3: ## in Loop: Header=BB3_1 Depth=1 movl -28(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) jmp LBB3_1 LBB3_4: movsd -24(%rbp), %xmm0 ## xmm0 = mem[0],zero cvtsi2sdl -4(%rbp), %xmm1 divsd %xmm1, %xmm0 popq %rbp retq .cfi_endproc ## -- End function .globl _array_average ## -- Begin function array_average .p2align 4, 0x90 _array_average: ## @array_average .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl %edi, -4(%rbp) movq %rsi, -16(%rbp) xorps %xmm0, %xmm0 movsd %xmm0, -24(%rbp) 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 movq -16(%rbp), %rsi movslq -28(%rbp), %rax imulq $40, %rax, %rax addq %rax, %rsi movl $5, %edi callq _col_average addsd -24(%rbp), %xmm0 movsd %xmm0, -24(%rbp) ## %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: movsd -24(%rbp), %xmm0 ## xmm0 = mem[0],zero cvtsi2sdl -4(%rbp), %xmm1 divsd %xmm1, %xmm0 addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _array_max_number ## -- Begin function array_max_number .p2align 4, 0x90 _array_max_number: ## @array_max_number .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 movsd (%rax), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -24(%rbp) movl $0, -28(%rbp) LBB5_1: ## =>This Loop Header: Depth=1 ## Child Loop BB5_3 Depth 2 movl -28(%rbp), %eax cmpl -4(%rbp), %eax jge LBB5_10 ## %bb.2: ## in Loop: Header=BB5_1 Depth=1 movl $0, -32(%rbp) LBB5_3: ## Parent Loop BB5_1 Depth=1 ## => This Inner Loop Header: Depth=2 cmpl $5, -32(%rbp) jge LBB5_8 ## %bb.4: ## in Loop: Header=BB5_3 Depth=2 movsd -24(%rbp), %xmm1 ## xmm1 = mem[0],zero movq -16(%rbp), %rax movslq -28(%rbp), %rcx imulq $40, %rcx, %rcx addq %rcx, %rax movslq -32(%rbp), %rcx movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero ucomisd %xmm1, %xmm0 jbe LBB5_6 ## %bb.5: ## in Loop: Header=BB5_3 Depth=2 movq -16(%rbp), %rax movslq -28(%rbp), %rcx imulq $40, %rcx, %rcx addq %rcx, %rax movslq -32(%rbp), %rcx movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -24(%rbp) LBB5_6: ## in Loop: Header=BB5_3 Depth=2 jmp LBB5_7 LBB5_7: ## in Loop: Header=BB5_3 Depth=2 movl -32(%rbp), %eax addl $1, %eax movl %eax, -32(%rbp) jmp LBB5_3 LBB5_8: ## in Loop: Header=BB5_1 Depth=1 jmp LBB5_9 LBB5_9: ## in Loop: Header=BB5_1 Depth=1 movl -28(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) jmp LBB5_1 LBB5_10: movsd -24(%rbp), %xmm0 ## xmm0 = mem[0],zero popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "\n" L_.str.1: ## @.str.1 .asciz "Enter the array number.\n" L_.str.2: ## @.str.2 .asciz "Enter five double number seprate by enter:\n" L_.str.3: ## @.str.3 .asciz "%lf" L_.str.4: ## @.str.4 .asciz "Now, Let's check the array!\n" L_.str.5: ## @.str.5 .asciz "The array you input is:\n" L_.str.6: ## @.str.6 .asciz "%5g" L_.str.7: ## @.str.7 .asciz "The Average of every column is:\n" L_.str.8: ## @.str.8 .asciz "The %d column's average is %g.\n" L_.str.9: ## @.str.9 .asciz "The array's data average is %g\n" L_.str.10: ## @.str.10 .asciz "The max datum in the array is %g" .subsections_via_symbols
the_stack_data/148577585.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #80 .cfi_def_cfa_offset 80 stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp, #64 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] str wzr, [sp, #12] str w0, [sp, #8] str x1, [sp] mov w8, #55 str w8, [sp, #84] 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, #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 _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $64, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -52(%rbp) movl %edi, -56(%rbp) movq %rsi, -64(%rbp) movl $55, 20(%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 $64, %rsp popq %rbp retq LBB0_2: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/140898.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _triwave8 ; -- Begin function triwave8 .p2align 2 _triwave8: ; @triwave8 .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 strb w0, [sp, #15] ldrb w8, [sp, #15] ands w8, w8, #0x80 cset w8, eq tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: ldrb w9, [sp, #15] mov w8, #255 subs w8, w8, w9 strb w8, [sp, #15] b LBB0_2 LBB0_2: ldrb w8, [sp, #15] lsl w8, w8, #1 strb w8, [sp, #14] ldrb w0, [sp, #14] add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] sturh wzr, [x29, #-6] b LBB1_1 LBB1_1: ; =>This Inner Loop Header: Depth=1 ldurh w8, [x29, #-6] subs w8, w8, #256 cset w8, ge tbnz w8, #0, LBB1_4 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 ldurh w8, [x29, #-6] stur w8, [x29, #-12] ; 4-byte Folded Spill ldurh w8, [x29, #-6] and w0, w8, #0xff bl _triwave8 ldur w10, [x29, #-12] ; 4-byte Folded Reload mov x9, sp ; implicit-def: $x8 mov x8, x10 str x8, [x9] ; implicit-def: $x8 mov x8, x0 and x8, x8, #0xff str x8, [x9, #8] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf b LBB1_3 LBB1_3: ; in Loop: Header=BB1_1 Depth=1 ldurh w8, [x29, #-6] add w8, w8, #1 sturh w8, [x29, #-6] b LBB1_1 LBB1_4: mov w0, #0 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d, %d\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _triwave8 ## -- Begin function triwave8 .p2align 4, 0x90 _triwave8: ## @triwave8 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movb %dil, %al movb %al, -1(%rbp) movzbl -1(%rbp), %eax andl $128, %eax cmpl $0, %eax je LBB0_2 ## %bb.1: movzbl -1(%rbp), %ecx movl $255, %eax subl %ecx, %eax ## kill: def $al killed $al killed $eax movb %al, -1(%rbp) LBB0_2: movzbl -1(%rbp), %eax shll $1, %eax ## kill: def $al killed $al killed $eax movb %al, -2(%rbp) movzbl -2(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) movw $0, -6(%rbp) LBB1_1: ## =>This Inner Loop Header: Depth=1 movzwl -6(%rbp), %eax cmpl $256, %eax ## imm = 0x100 jge LBB1_4 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 movzwl -6(%rbp), %eax movl %eax, -12(%rbp) ## 4-byte Spill movw -6(%rbp), %ax ## kill: def $al killed $al killed $ax movzbl %al, %edi callq _triwave8 movl -12(%rbp), %esi ## 4-byte Reload movzbl %al, %edx leaq L_.str(%rip), %rdi movb $0, %al callq _printf ## %bb.3: ## in Loop: Header=BB1_1 Depth=1 movw -6(%rbp), %ax addw $1, %ax movw %ax, -6(%rbp) jmp LBB1_1 LBB1_4: xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d, %d\n" .subsections_via_symbols
the_stack_data/934273.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, #64 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] stur wzr, [x29, #-12] mov w8, #9 stur w8, [x29, #-16] ldur w8, [x29, #-16] ; kill: def $x8 killed $w8 mov x9, sp stur x9, [x29, #-32] lsl x9, x8, #2 add x9, x9, #15 and x9, x9, #0xfffffffffffffff0 stur x9, [x29, #-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 x9, x9, x10 mov sp, x9 stur x9, [x29, #-48] ; 8-byte Folded Spill stur x8, [x29, #-40] stur wzr, [x29, #-20] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-20] ldur w9, [x29, #-16] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_4 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldur x9, [x29, #-48] ; 8-byte Folded Reload ldursw x10, [x29, #-20] mov w8, #-1 str w8, [x9, x10, lsl #2] b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-20] add w8, w8, #1 stur w8, [x29, #-20] b LBB0_1 LBB0_4: mov w8, #10 stur w8, [x29, #-24] sub sp, sp, #16 mov x8, sp str xzr, [x8] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf add sp, sp, #16 stur wzr, [x29, #-20] b LBB0_5 LBB0_5: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-20] ldur w9, [x29, #-16] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_8 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_5 Depth=1 ldur x9, [x29, #-48] ; 8-byte Folded Reload ldur w8, [x29, #-24] ldursw x10, [x29, #-20] str w8, [x9, x10, lsl #2] 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.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf stur wzr, [x29, #-20] b LBB0_9 LBB0_9: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-20] ldur w9, [x29, #-16] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_12 b LBB0_10 LBB0_10: ; in Loop: Header=BB0_9 Depth=1 ldur x8, [x29, #-48] ; 8-byte Folded Reload ldur w9, [x29, #-20] ; implicit-def: $x10 mov x10, x9 ldursw x9, [x29, #-20] ldr w9, [x8, x9, lsl #2] ; implicit-def: $x8 mov x8, x9 sub sp, sp, #16 mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf add sp, sp, #16 b LBB0_11 LBB0_11: ; in Loop: Header=BB0_9 Depth=1 ldur w8, [x29, #-20] add w8, w8, #1 stur w8, [x29, #-20] b LBB0_9 LBB0_12: stur wzr, [x29, #-12] ldur x8, [x29, #-32] mov sp, x8 ldur w8, [x29, #-12] stur w8, [x29, #-60] ; 4-byte Folded Spill ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_14 b LBB0_13 LBB0_13: bl ___stack_chk_fail LBB0_14: ldur w0, [x29, #-60] ; 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 "Master construct is executed by thread %d\n" l_.str.1: ; @.str.1 .asciz "After the parallel region:\n" l_.str.2: ; @.str.2 .asciz "b[%d] = %d\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $64, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -12(%rbp) movl $9, -16(%rbp) movl -16(%rbp), %eax ## kill: def $rax killed $eax movq %rax, -56(%rbp) ## 8-byte Spill movq %rsp, %rcx movq %rcx, -32(%rbp) shlq $2, %rax callq ____chkstk_darwin addq $15, %rax andq $-16, %rax subq %rax, %rsp movq -56(%rbp), %rax ## 8-byte Reload movq %rsp, %rcx movq %rcx, -48(%rbp) ## 8-byte Spill movq %rax, -40(%rbp) movl $0, -20(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movl -20(%rbp), %eax cmpl -16(%rbp), %eax jge LBB0_4 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movq -48(%rbp), %rax ## 8-byte Reload movslq -20(%rbp), %rcx movl $-1, (%rax,%rcx,4) ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB0_1 LBB0_4: movl $10, -24(%rbp) leaq L_.str(%rip), %rdi xorl %esi, %esi movb $0, %al callq _printf movl $0, -20(%rbp) LBB0_5: ## =>This Inner Loop Header: Depth=1 movl -20(%rbp), %eax cmpl -16(%rbp), %eax jge LBB0_8 ## %bb.6: ## in Loop: Header=BB0_5 Depth=1 movq -48(%rbp), %rax ## 8-byte Reload movl -24(%rbp), %edx movslq -20(%rbp), %rcx movl %edx, (%rax,%rcx,4) ## %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.1(%rip), %rdi movb $0, %al callq _printf movl $0, -20(%rbp) LBB0_9: ## =>This Inner Loop Header: Depth=1 movl -20(%rbp), %eax cmpl -16(%rbp), %eax jge LBB0_12 ## %bb.10: ## in Loop: Header=BB0_9 Depth=1 movq -48(%rbp), %rax ## 8-byte Reload movl -20(%rbp), %esi movslq -20(%rbp), %rcx movl (%rax,%rcx,4), %edx leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf ## %bb.11: ## in Loop: Header=BB0_9 Depth=1 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB0_9 LBB0_12: movl $0, -12(%rbp) movq -32(%rbp), %rax movq %rax, %rsp movl -12(%rbp), %eax movl %eax, -60(%rbp) ## 4-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_14 ## %bb.13: movl -60(%rbp), %eax ## 4-byte Reload movq %rbp, %rsp popq %rbp retq LBB0_14: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Master construct is executed by thread %d\n" L_.str.1: ## @.str.1 .asciz "After the parallel region:\n" L_.str.2: ## @.str.2 .asciz "b[%d] = %d\n" .subsections_via_symbols
the_stack_data/11075277.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 x0, [sp, #8] ldr x8, [sp, #8] str wzr, [x8] add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _bar ; -- Begin function bar .p2align 2 _bar: ; @bar .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _until05 ; -- Begin function until05 .p2align 2 _until05: ; @until05 .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 b LBB2_1 LBB2_1: ; =>This Inner Loop Header: Depth=1 add x0, sp, #8 ldr w8, [sp, #8] stur w8, [x29, #-4] bl _foo b LBB2_2 LBB2_2: ; in Loop: Header=BB2_1 Depth=1 ldur w8, [x29, #-4] ldr w9, [sp, #8] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB2_1 b LBB2_3 LBB2_3: b LBB2_4 LBB2_4: ; =>This Inner Loop Header: Depth=1 add x0, sp, #8 ldr w8, [sp, #8] stur w8, [x29, #-4] bl _bar b LBB2_5 LBB2_5: ; in Loop: Header=BB2_4 Depth=1 ldur w8, [x29, #-4] ldr w9, [sp, #8] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB2_4 b LBB2_6 LBB2_6: ldur w9, [x29, #-4] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d" .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 %rdi, -8(%rbp) movq -8(%rbp), %rax movl $0, (%rax) popq %rbp retq .cfi_endproc ## -- End function .globl _bar ## -- Begin function bar .p2align 4, 0x90 _bar: ## @bar .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) popq %rbp retq .cfi_endproc ## -- End function .globl _until05 ## -- Begin function until05 .p2align 4, 0x90 _until05: ## @until05 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp LBB2_1: ## =>This Inner Loop Header: Depth=1 movl -8(%rbp), %eax movl %eax, -4(%rbp) leaq -8(%rbp), %rdi callq _foo ## %bb.2: ## in Loop: Header=BB2_1 Depth=1 movl -4(%rbp), %eax cmpl -8(%rbp), %eax jne LBB2_1 ## %bb.3: jmp LBB2_4 LBB2_4: ## =>This Inner Loop Header: Depth=1 movl -8(%rbp), %eax movl %eax, -4(%rbp) leaq -8(%rbp), %rdi callq _bar ## %bb.5: ## in Loop: Header=BB2_4 Depth=1 movl -4(%rbp), %eax cmpl -8(%rbp), %eax jne LBB2_4 ## %bb.6: movl -4(%rbp), %esi leaq L_.str(%rip), %rdi movb $0, %al callq _printf addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d" .subsections_via_symbols
the_stack_data/179829679.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] bl _malloc_all ldur w8, [x29, #-8] subs w8, w8, #1 cset w8, gt tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: mov w8, #1 str w8, [sp, #12] ; 4-byte Folded Spill b LBB0_6 LBB0_2: ldr x8, [sp, #16] ldr x0, [x8, #8] bl _atoi mov w9, #7 sdiv w8, w0, w9 mul w8, w8, w9 subs w8, w0, w8 subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: ldr x8, [sp, #16] ldr x0, [x8, #8] bl _atoi mov w9, #7 sdiv w8, w0, w9 mul w8, w8, w9 subs w8, w0, w8 str w8, [sp, #8] ; 4-byte Folded Spill b LBB0_5 LBB0_4: mov w8, #1 str w8, [sp, #8] ; 4-byte Folded Spill b LBB0_5 LBB0_5: ldr w8, [sp, #8] ; 4-byte Folded Reload str w8, [sp, #12] ; 4-byte Folded Spill b LBB0_6 LBB0_6: ldr w9, [sp, #12] ; 4-byte Folded Reload adrp x8, _i@GOTPAGE ldr x8, [x8, _i@GOTPAGEOFF] str w9, [x8] ldrsw x9, [x8] adrp x8, _free_ptr@PAGE add x8, x8, _free_ptr@PAGEOFF ldr x8, [x8, x9, lsl #3] blr x8 ldur w0, [x29, #-4] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _malloc_all ; -- Begin function malloc_all .p2align 2 _malloc_all: ; @malloc_all .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, _ptr@GOTPAGE ldr x8, [x8, _ptr@GOTPAGEOFF] stur x8, [x29, #-16] ; 8-byte Folded Spill adrp x8, _i@GOTPAGE ldr x8, [x8, _i@GOTPAGEOFF] stur x8, [x29, #-8] ; 8-byte Folded Spill mov x0, #128 str x0, [sp, #24] ; 8-byte Folded Spill bl _malloc ldur x9, [x29, #-16] ; 8-byte Folded Reload mov x8, x0 ldr x0, [sp, #24] ; 8-byte Folded Reload str x8, [x9, #8] bl _malloc ldur x9, [x29, #-16] ; 8-byte Folded Reload mov x8, x0 ldr x0, [sp, #24] ; 8-byte Folded Reload str x8, [x9, #16] bl _malloc ldur x8, [x29, #-16] ; 8-byte Folded Reload str x0, [x8, #24] mov x0, #262144 bl _malloc ldur x8, [x29, #-16] ; 8-byte Folded Reload ldur x9, [x29, #-8] ; 8-byte Folded Reload str x0, [x8, #32] mov w8, #1 str w8, [x9] b LBB1_1 LBB1_1: ; =>This Inner Loop Header: Depth=1 ldur x8, [x29, #-8] ; 8-byte Folded Reload ldr w8, [x8] subs w8, w8, #10 cset w8, ge tbnz w8, #0, LBB1_6 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 ldur x8, [x29, #-16] ; 8-byte Folded Reload ldur x9, [x29, #-8] ; 8-byte Folded Reload ldrsw x9, [x9] ldr x8, [x8, x9, lsl #3] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB1_4 b LBB1_3 LBB1_3: ; in Loop: Header=BB1_1 Depth=1 ldur x8, [x29, #-16] ; 8-byte Folded Reload ldur x9, [x29, #-8] ; 8-byte Folded Reload ldr w11, [x9] ; implicit-def: $x10 mov x10, x11 ldrsw x9, [x9] ldr x8, [x8, x9, lsl #3] mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf b LBB1_4 LBB1_4: ; in Loop: Header=BB1_1 Depth=1 b LBB1_5 LBB1_5: ; in Loop: Header=BB1_1 Depth=1 ldur x9, [x29, #-8] ; 8-byte Folded Reload ldr w8, [x9] add w8, w8, #1 str w8, [x9] b LBB1_1 LBB1_6: ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _free1 ; -- Begin function free1 .p2align 2 _free1: ; @free1 .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, _ptr@GOTPAGE ldr x8, [x8, _ptr@GOTPAGEOFF] str x8, [sp, #8] ; 8-byte Folded Spill adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf bl _getchar ldr x8, [sp, #8] ; 8-byte Folded Reload ldr x0, [x8, #8] bl _free bl _getchar ldr x8, [sp, #8] ; 8-byte Folded Reload ldr x0, [x8, #16] bl _free bl _getchar ldr x8, [sp, #8] ; 8-byte Folded Reload ldr x0, [x8, #24] bl _free bl _getchar ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _free2 ; -- Begin function free2 .p2align 2 _free2: ; @free2 .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, _ptr@GOTPAGE ldr x8, [x8, _ptr@GOTPAGEOFF] str x8, [sp, #8] ; 8-byte Folded Spill adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf bl _getchar ldr x8, [sp, #8] ; 8-byte Folded Reload ldr x0, [x8, #8] bl _free bl _getchar ldr x8, [sp, #8] ; 8-byte Folded Reload ldr x0, [x8, #24] bl _free bl _getchar ldr x8, [sp, #8] ; 8-byte Folded Reload ldr x0, [x8, #16] bl _free bl _getchar ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _free3 ; -- Begin function free3 .p2align 2 _free3: ; @free3 .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, _ptr@GOTPAGE ldr x8, [x8, _ptr@GOTPAGEOFF] str x8, [sp, #8] ; 8-byte Folded Spill adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf bl _getchar ldr x8, [sp, #8] ; 8-byte Folded Reload ldr x0, [x8, #16] bl _free bl _getchar ldr x8, [sp, #8] ; 8-byte Folded Reload ldr x0, [x8, #8] bl _free bl _getchar ldr x8, [sp, #8] ; 8-byte Folded Reload ldr x0, [x8, #24] bl _free bl _getchar ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _free4 ; -- Begin function free4 .p2align 2 _free4: ; @free4 .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, _ptr@GOTPAGE ldr x8, [x8, _ptr@GOTPAGEOFF] str x8, [sp, #8] ; 8-byte Folded Spill adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf bl _getchar ldr x8, [sp, #8] ; 8-byte Folded Reload ldr x0, [x8, #16] bl _free bl _getchar ldr x8, [sp, #8] ; 8-byte Folded Reload ldr x0, [x8, #24] bl _free bl _getchar ldr x8, [sp, #8] ; 8-byte Folded Reload ldr x0, [x8, #8] bl _free bl _getchar ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _free5 ; -- Begin function free5 .p2align 2 _free5: ; @free5 .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, _ptr@GOTPAGE ldr x8, [x8, _ptr@GOTPAGEOFF] str x8, [sp, #8] ; 8-byte Folded Spill adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf bl _getchar ldr x8, [sp, #8] ; 8-byte Folded Reload ldr x0, [x8, #24] bl _free bl _getchar ldr x8, [sp, #8] ; 8-byte Folded Reload ldr x0, [x8, #8] bl _free bl _getchar ldr x8, [sp, #8] ; 8-byte Folded Reload ldr x0, [x8, #16] bl _free bl _getchar ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _free6 ; -- Begin function free6 .p2align 2 _free6: ; @free6 .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, _ptr@GOTPAGE ldr x8, [x8, _ptr@GOTPAGEOFF] str x8, [sp, #8] ; 8-byte Folded Spill adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _printf bl _getchar ldr x8, [sp, #8] ; 8-byte Folded Reload ldr x0, [x8, #24] bl _free bl _getchar ldr x8, [sp, #8] ; 8-byte Folded Reload ldr x0, [x8, #16] bl _free bl _getchar ldr x8, [sp, #8] ; 8-byte Folded Reload ldr x0, [x8, #8] bl _free bl _getchar ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .section __DATA,__data .globl _free_ptr ; @free_ptr .p2align 3 _free_ptr: .quad 0 .quad _free1 .quad _free2 .quad _free3 .quad _free4 .quad _free5 .quad _free6 .comm _i,4,2 ; @i .comm _ptr,80,3 ; @ptr .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "ptr[%02d] = %p\n" l_.str.1: ; @.str.1 .asciz "call free1: ptr1 -> ptr2 -> ptr3\n" l_.str.2: ; @.str.2 .asciz "call free2: ptr1 -> ptr3 -> ptr2\n" l_.str.3: ; @.str.3 .asciz "call free3: ptr2 -> ptr1 -> ptr3 \n" l_.str.4: ; @.str.4 .asciz "call free4: ptr2 -> ptr3 -> ptr1\n" l_.str.5: ; @.str.5 .asciz "call free5: ptr3 -> ptr1 -> ptr2\n" l_.str.6: ; @.str.6 .asciz "call free6: ptr3 -> ptr2 -> ptr1\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 _malloc_all cmpl $1, -8(%rbp) jg LBB0_2 ## %bb.1: movl $1, %eax movl %eax, -20(%rbp) ## 4-byte Spill jmp LBB0_6 LBB0_2: movq -16(%rbp), %rax movq 8(%rax), %rdi callq _atoi movl $7, %ecx cltd idivl %ecx cmpl $0, %edx je LBB0_4 ## %bb.3: movq -16(%rbp), %rax movq 8(%rax), %rdi callq _atoi movl $7, %ecx cltd idivl %ecx movl %edx, -24(%rbp) ## 4-byte Spill jmp LBB0_5 LBB0_4: movl $1, %eax movl %eax, -24(%rbp) ## 4-byte Spill jmp LBB0_5 LBB0_5: movl -24(%rbp), %eax ## 4-byte Reload movl %eax, -20(%rbp) ## 4-byte Spill LBB0_6: movl -20(%rbp), %ecx ## 4-byte Reload movq _i@GOTPCREL(%rip), %rax movl %ecx, (%rax) movq _i@GOTPCREL(%rip), %rax movslq (%rax), %rdx leaq _free_ptr(%rip), %rcx movb $0, %al callq *(%rcx,%rdx,8) movl -4(%rbp), %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _malloc_all ## -- Begin function malloc_all .p2align 4, 0x90 _malloc_all: ## @malloc_all .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl $128, %edi callq _malloc movq %rax, %rcx movq _ptr@GOTPCREL(%rip), %rax movq %rcx, 8(%rax) movl $128, %edi callq _malloc movq %rax, %rcx movq _ptr@GOTPCREL(%rip), %rax movq %rcx, 16(%rax) movl $128, %edi callq _malloc movq %rax, %rcx movq _ptr@GOTPCREL(%rip), %rax movq %rcx, 24(%rax) movl $262144, %edi ## imm = 0x40000 callq _malloc movq %rax, %rcx movq _ptr@GOTPCREL(%rip), %rax movq %rcx, 32(%rax) movq _i@GOTPCREL(%rip), %rax movl $1, (%rax) LBB1_1: ## =>This Inner Loop Header: Depth=1 movq _i@GOTPCREL(%rip), %rax cmpl $10, (%rax) jge LBB1_6 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 movq _i@GOTPCREL(%rip), %rax movslq (%rax), %rcx movq _ptr@GOTPCREL(%rip), %rax cmpq $0, (%rax,%rcx,8) je LBB1_4 ## %bb.3: ## in Loop: Header=BB1_1 Depth=1 movq _i@GOTPCREL(%rip), %rax movl (%rax), %esi movq _i@GOTPCREL(%rip), %rax movslq (%rax), %rcx movq _ptr@GOTPCREL(%rip), %rax movq (%rax,%rcx,8), %rdx leaq L_.str(%rip), %rdi movb $0, %al callq _printf LBB1_4: ## in Loop: Header=BB1_1 Depth=1 jmp LBB1_5 LBB1_5: ## in Loop: Header=BB1_1 Depth=1 movq _i@GOTPCREL(%rip), %rax movl (%rax), %ecx addl $1, %ecx movq _i@GOTPCREL(%rip), %rax movl %ecx, (%rax) jmp LBB1_1 LBB1_6: popq %rbp retq .cfi_endproc ## -- End function .globl _free1 ## -- Begin function free1 .p2align 4, 0x90 _free1: ## @free1 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf callq _getchar movq _ptr@GOTPCREL(%rip), %rax movq 8(%rax), %rdi callq _free callq _getchar movq _ptr@GOTPCREL(%rip), %rax movq 16(%rax), %rdi callq _free callq _getchar movq _ptr@GOTPCREL(%rip), %rax movq 24(%rax), %rdi callq _free callq _getchar popq %rbp retq .cfi_endproc ## -- End function .globl _free2 ## -- Begin function free2 .p2align 4, 0x90 _free2: ## @free2 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf callq _getchar movq _ptr@GOTPCREL(%rip), %rax movq 8(%rax), %rdi callq _free callq _getchar movq _ptr@GOTPCREL(%rip), %rax movq 24(%rax), %rdi callq _free callq _getchar movq _ptr@GOTPCREL(%rip), %rax movq 16(%rax), %rdi callq _free callq _getchar popq %rbp retq .cfi_endproc ## -- End function .globl _free3 ## -- Begin function free3 .p2align 4, 0x90 _free3: ## @free3 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf callq _getchar movq _ptr@GOTPCREL(%rip), %rax movq 16(%rax), %rdi callq _free callq _getchar movq _ptr@GOTPCREL(%rip), %rax movq 8(%rax), %rdi callq _free callq _getchar movq _ptr@GOTPCREL(%rip), %rax movq 24(%rax), %rdi callq _free callq _getchar popq %rbp retq .cfi_endproc ## -- End function .globl _free4 ## -- Begin function free4 .p2align 4, 0x90 _free4: ## @free4 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf callq _getchar movq _ptr@GOTPCREL(%rip), %rax movq 16(%rax), %rdi callq _free callq _getchar movq _ptr@GOTPCREL(%rip), %rax movq 24(%rax), %rdi callq _free callq _getchar movq _ptr@GOTPCREL(%rip), %rax movq 8(%rax), %rdi callq _free callq _getchar popq %rbp retq .cfi_endproc ## -- End function .globl _free5 ## -- Begin function free5 .p2align 4, 0x90 _free5: ## @free5 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq L_.str.5(%rip), %rdi movb $0, %al callq _printf callq _getchar movq _ptr@GOTPCREL(%rip), %rax movq 24(%rax), %rdi callq _free callq _getchar movq _ptr@GOTPCREL(%rip), %rax movq 8(%rax), %rdi callq _free callq _getchar movq _ptr@GOTPCREL(%rip), %rax movq 16(%rax), %rdi callq _free callq _getchar popq %rbp retq .cfi_endproc ## -- End function .globl _free6 ## -- Begin function free6 .p2align 4, 0x90 _free6: ## @free6 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq L_.str.6(%rip), %rdi movb $0, %al callq _printf callq _getchar movq _ptr@GOTPCREL(%rip), %rax movq 24(%rax), %rdi callq _free callq _getchar movq _ptr@GOTPCREL(%rip), %rax movq 16(%rax), %rdi callq _free callq _getchar movq _ptr@GOTPCREL(%rip), %rax movq 8(%rax), %rdi callq _free callq _getchar popq %rbp retq .cfi_endproc ## -- End function .section __DATA,__data .globl _free_ptr ## @free_ptr .p2align 4 _free_ptr: .quad 0 .quad _free1 .quad _free2 .quad _free3 .quad _free4 .quad _free5 .quad _free6 .comm _i,4,2 ## @i .comm _ptr,80,4 ## @ptr .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "ptr[%02d] = %p\n" L_.str.1: ## @.str.1 .asciz "call free1: ptr1 -> ptr2 -> ptr3\n" L_.str.2: ## @.str.2 .asciz "call free2: ptr1 -> ptr3 -> ptr2\n" L_.str.3: ## @.str.3 .asciz "call free3: ptr2 -> ptr1 -> ptr3 \n" L_.str.4: ## @.str.4 .asciz "call free4: ptr2 -> ptr3 -> ptr1\n" L_.str.5: ## @.str.5 .asciz "call free5: ptr3 -> ptr1 -> ptr2\n" L_.str.6: ## @.str.6 .asciz "call free6: ptr3 -> ptr2 -> ptr1\n" .subsections_via_symbols
the_stack_data/302799.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _printit ; -- Begin function printit .p2align 2 _printit: ; @printit .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] ldur w9, [x29, #-4] ; implicit-def: $x8 mov x8, x9 str x8, [sp, #24] ; 8-byte Folded Spill ldur w9, [x29, #-8] ; implicit-def: $x8 mov x8, x9 stur x8, [x29, #-16] ; 8-byte Folded Spill ldur w0, [x29, #-4] ldur w1, [x29, #-8] bl _fillBits ldr x10, [sp, #24] ; 8-byte Folded Reload ldur x9, [x29, #-16] ; 8-byte Folded Reload mov x8, sp str x10, [x8] str x9, [x8, #8] str x0, [x8, #16] 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 .p2align 2 ; -- Begin function fillBits _fillBits: ; @fillBits .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #4] str w1, [sp] ldr w8, [sp] subs w8, w8, #63 cset w8, ne tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: ldr w8, [sp, #4] mov x9, x8 mov x8, #1 lsl x8, x8, x9 subs x8, x8, #1 mvn x8, x8 str x8, [sp, #8] b LBB1_5 LBB1_2: ldr w8, [sp, #4] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB1_4 b LBB1_3 LBB1_3: ldrsw x9, [sp] mov x8, #1 add x9, x9, #1 lsl x8, x8, x9 subs x8, x8, #1 str x8, [sp, #8] b LBB1_5 LBB1_4: ldr w8, [sp, #4] mov x9, x8 mov x8, #1 lsl x9, x8, x9 subs x9, x9, #1 ldrsw x10, [sp] add x10, x10, #1 lsl x8, x8, x10 subs x8, x8, #1 bic x8, x8, x9 str x8, [sp, #8] b LBB1_5 LBB1_5: ldr x0, [sp, #8] add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w0, #0 stur w0, [x29, #-4] ; 4-byte Folded Spill mov w1, #63 str w1, [sp, #4] ; 4-byte Folded Spill bl _printit ldr w1, [sp, #4] ; 4-byte Folded Reload mov w0, #1 bl _printit ldr w1, [sp, #4] ; 4-byte Folded Reload mov w0, #2 bl _printit ldr w1, [sp, #4] ; 4-byte Folded Reload mov w0, #3 bl _printit ldr w1, [sp, #4] ; 4-byte Folded Reload mov w0, #4 stur w0, [x29, #-8] ; 4-byte Folded Spill bl _printit ldr w1, [sp, #4] ; 4-byte Folded Reload mov w0, #5 bl _printit ldr w1, [sp, #4] ; 4-byte Folded Reload mov w0, #6 bl _printit ldr w1, [sp, #4] ; 4-byte Folded Reload mov w0, #7 str w0, [sp, #8] ; 4-byte Folded Spill bl _printit ldr w1, [sp, #4] ; 4-byte Folded Reload mov w0, #8 str w0, [sp, #12] ; 4-byte Folded Spill bl _printit ldr w1, [sp, #4] ; 4-byte Folded Reload mov w0, #9 str w0, [sp, #16] ; 4-byte Folded Spill bl _printit ldr w1, [sp, #4] ; 4-byte Folded Reload mov w0, #10 stur w0, [x29, #-12] ; 4-byte Folded Spill bl _printit ldr w0, [sp, #8] ; 4-byte Folded Reload mov w1, #62 bl _printit ldr w0, [sp, #12] ; 4-byte Folded Reload mov w1, #61 bl _printit ldr w0, [sp, #16] ; 4-byte Folded Reload mov w1, #60 bl _printit ldur w0, [x29, #-12] ; 4-byte Folded Reload mov w1, #59 bl _printit ldur w0, [x29, #-12] ; 4-byte Folded Reload mov w1, #58 bl _printit ldur w0, [x29, #-12] ; 4-byte Folded Reload mov w1, #57 bl _printit ldur w0, [x29, #-12] ; 4-byte Folded Reload mov w1, #56 bl _printit ldur w0, [x29, #-12] ; 4-byte Folded Reload mov w1, #55 bl _printit ldur w0, [x29, #-12] ; 4-byte Folded Reload mov w1, #54 bl _printit ldur w1, [x29, #-8] ; 4-byte Folded Reload mov x0, x1 bl _printit ldur w0, [x29, #-4] ; 4-byte Folded Reload ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "[%d,%d] = %08lx\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _printit ## -- Begin function printit .p2align 4, 0x90 _printit: ## @printit .cfi_startproc ## %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 movl %eax, -16(%rbp) ## 4-byte Spill movl -8(%rbp), %eax movl %eax, -12(%rbp) ## 4-byte Spill movl -4(%rbp), %edi movl -8(%rbp), %esi callq _fillBits movl -16(%rbp), %esi ## 4-byte Reload movl -12(%rbp), %edx ## 4-byte Reload movq %rax, %rcx leaq L_.str(%rip), %rdi movb $0, %al callq _printf addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function fillBits _fillBits: ## @fillBits .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, -12(%rbp) movl %esi, -16(%rbp) cmpl $63, -16(%rbp) jne LBB1_2 ## %bb.1: movl -12(%rbp), %eax movl %eax, %ecx movl $1, %eax ## kill: def $cl killed $rcx shlq %cl, %rax subq $1, %rax xorq $-1, %rax movq %rax, -8(%rbp) jmp LBB1_5 LBB1_2: cmpl $0, -12(%rbp) jne LBB1_4 ## %bb.3: movslq -16(%rbp), %rcx addq $1, %rcx movl $1, %eax ## kill: def $cl killed $rcx shlq %cl, %rax subq $1, %rax movq %rax, -8(%rbp) jmp LBB1_5 LBB1_4: movl -12(%rbp), %eax movl %eax, %ecx movl $1, %eax ## kill: def $cl killed $rcx shlq %cl, %rax subq $1, %rax xorq $-1, %rax movslq -16(%rbp), %rcx addq $1, %rcx movl $1, %edx ## kill: def $cl killed $rcx shlq %cl, %rdx movq %rdx, %rcx subq $1, %rcx andq %rcx, %rax movq %rax, -8(%rbp) LBB1_5: movq -8(%rbp), %rax popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp xorl %edi, %edi movl $63, %esi callq _printit movl $1, %edi movl $63, %esi callq _printit movl $2, %edi movl $63, %esi callq _printit movl $3, %edi movl $63, %esi callq _printit movl $4, %edi movl $63, %esi callq _printit movl $5, %edi movl $63, %esi callq _printit movl $6, %edi movl $63, %esi callq _printit movl $7, %edi movl $63, %esi callq _printit movl $8, %edi movl $63, %esi callq _printit movl $9, %edi movl $63, %esi callq _printit movl $10, %edi movl $63, %esi callq _printit movl $7, %edi movl $62, %esi callq _printit movl $8, %edi movl $61, %esi callq _printit movl $9, %edi movl $60, %esi callq _printit movl $10, %edi movl $59, %esi callq _printit movl $10, %edi movl $58, %esi callq _printit movl $10, %edi movl $57, %esi callq _printit movl $10, %edi movl $56, %esi callq _printit movl $10, %edi movl $55, %esi callq _printit movl $10, %edi movl $54, %esi callq _printit movl $4, %esi movl %esi, %edi callq _printit xorl %eax, %eax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "[%d,%d] = %08lx\n" .subsections_via_symbols
the_stack_data/37636961.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _test_citer ; -- Begin function test_citer .p2align 2 _test_citer: ; @test_citer .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] ldr x8, [sp, #24] str x8, [sp, #24] ldr x8, [sp, #16] str x8, [sp, #16] ldr x8, [sp, #8] str x8, [sp, #8] str wzr, [sp, #4] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #4] subs w8, w8, #1023 cset w8, ge tbnz w8, #0, LBB0_4 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #24] ldrsw x9, [sp, #4] ldr w8, [x8, x9, lsl #2] ldr x9, [sp, #16] ldrsw x10, [sp, #4] ldr w9, [x9, x10, lsl #2] add w8, w8, w9 ldr x9, [sp, #8] ldrsw x10, [sp, #4] str w8, [x9, x10, lsl #2] b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #4] add w8, w8, #1 str w8, [sp, #4] b LBB0_1 LBB0_4: add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _test_viter ; -- Begin function test_viter .p2align 2 _test_viter: ; @test_viter .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 w3, [sp, #4] ldr x8, [sp, #24] str x8, [sp, #24] ldr x8, [sp, #16] str x8, [sp, #16] ldr x8, [sp, #8] str x8, [sp, #8] str wzr, [sp] b LBB1_1 LBB1_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp] ldr w9, [sp, #4] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_4 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 ldr x8, [sp, #24] ldrsw x9, [sp] ldr w8, [x8, x9, lsl #2] ldr x9, [sp, #16] ldrsw x10, [sp] ldr w9, [x9, x10, lsl #2] add w8, w8, w9 ldr x9, [sp, #8] ldrsw x10, [sp] str w8, [x9, x10, lsl #2] b LBB1_3 LBB1_3: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp] add w8, w8, #1 str w8, [sp] b LBB1_1 LBB1_4: add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _init_data ; -- Begin function init_data .p2align 2 _init_data: ; @init_data .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 w3, [sp, #4] str wzr, [sp] b LBB2_1 LBB2_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp] ldr w9, [sp, #4] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB2_4 b LBB2_2 LBB2_2: ; in Loop: Header=BB2_1 Depth=1 ldr w8, [sp] ldr x9, [sp, #24] ldrsw x10, [sp] str w8, [x9, x10, lsl #2] ldr w9, [sp] mov w8, #0 subs w9, w8, w9 ldr x10, [sp, #16] ldrsw x11, [sp] str w9, [x10, x11, lsl #2] ldr x9, [sp, #8] ldrsw x10, [sp] str w8, [x9, x10, lsl #2] ; InlineAsm Start ; InlineAsm End b LBB2_3 LBB2_3: ; in Loop: Header=BB2_1 Depth=1 ldr w8, [sp] add w8, w8, #1 str w8, [sp] b LBB2_1 LBB2_4: ldr w8, [sp, #4] ldr x9, [sp, #8] ldrsw x10, [sp, #4] str w8, [x9, x10, lsl #2] ldr x9, [sp, #16] ldrsw x10, [sp, #4] str w8, [x9, x10, lsl #2] ldr x9, [sp, #24] ldrsw x10, [sp, #4] str w8, [x9, x10, lsl #2] add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _run_test ; -- Begin function run_test .p2align 2 _run_test: ; @run_test .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 sub x0, x29, #8 mov x1, #64 mov x2, #4096 bl _posix_memalign subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB3_2 b LBB3_1 LBB3_1: b LBB3_27 LBB3_2: add x0, sp, #16 mov x1, #64 mov x2, #4096 bl _posix_memalign subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB3_4 b LBB3_3 LBB3_3: b LBB3_27 LBB3_4: add x0, sp, #8 mov x1, #64 mov x2, #4096 bl _posix_memalign subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB3_6 b LBB3_5 LBB3_5: b LBB3_27 LBB3_6: ldur x0, [x29, #-8] ldr x1, [sp, #16] ldr x2, [sp, #8] mov w3, #1023 bl _init_data ldur x0, [x29, #-8] ldr x1, [sp, #16] ldr x2, [sp, #8] bl _test_citer str wzr, [sp, #4] b LBB3_7 LBB3_7: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #4] subs w8, w8, #1023 cset w8, ge tbnz w8, #0, LBB3_12 b LBB3_8 LBB3_8: ; in Loop: Header=BB3_7 Depth=1 ldr x8, [sp, #8] ldrsw x9, [sp, #4] ldr w8, [x8, x9, lsl #2] ldur x9, [x29, #-8] ldrsw x10, [sp, #4] ldr w9, [x9, x10, lsl #2] ldr x10, [sp, #16] ldrsw x11, [sp, #4] ldr w10, [x10, x11, lsl #2] add w9, w9, w10 subs w8, w8, w9 cset w8, eq tbnz w8, #0, LBB3_10 b LBB3_9 LBB3_9: bl _abort LBB3_10: ; in Loop: Header=BB3_7 Depth=1 b LBB3_11 LBB3_11: ; in Loop: Header=BB3_7 Depth=1 ldr w8, [sp, #4] add w8, w8, #1 str w8, [sp, #4] b LBB3_7 LBB3_12: ldur x8, [x29, #-8] ldr w8, [x8, #4092] subs w8, w8, #1023 cset w8, ne tbnz w8, #0, LBB3_15 b LBB3_13 LBB3_13: ldr x8, [sp, #16] ldr w8, [x8, #4092] subs w8, w8, #1023 cset w8, ne tbnz w8, #0, LBB3_15 b LBB3_14 LBB3_14: ldr x8, [sp, #8] ldr w8, [x8, #4092] subs w8, w8, #1023 cset w8, eq tbnz w8, #0, LBB3_16 b LBB3_15 LBB3_15: bl _abort LBB3_16: ldur x0, [x29, #-8] ldr x1, [sp, #16] ldr x2, [sp, #8] mov w3, #1023 str w3, [sp] ; 4-byte Folded Spill bl _init_data ldr w3, [sp] ; 4-byte Folded Reload ldur x0, [x29, #-8] ldr x1, [sp, #16] ldr x2, [sp, #8] bl _test_viter str wzr, [sp, #4] b LBB3_17 LBB3_17: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #4] subs w8, w8, #1023 cset w8, ge tbnz w8, #0, LBB3_22 b LBB3_18 LBB3_18: ; in Loop: Header=BB3_17 Depth=1 ldr x8, [sp, #8] ldrsw x9, [sp, #4] ldr w8, [x8, x9, lsl #2] ldur x9, [x29, #-8] ldrsw x10, [sp, #4] ldr w9, [x9, x10, lsl #2] ldr x10, [sp, #16] ldrsw x11, [sp, #4] ldr w10, [x10, x11, lsl #2] add w9, w9, w10 subs w8, w8, w9 cset w8, eq tbnz w8, #0, LBB3_20 b LBB3_19 LBB3_19: bl _abort LBB3_20: ; in Loop: Header=BB3_17 Depth=1 b LBB3_21 LBB3_21: ; in Loop: Header=BB3_17 Depth=1 ldr w8, [sp, #4] add w8, w8, #1 str w8, [sp, #4] b LBB3_17 LBB3_22: ldur x8, [x29, #-8] ldr w8, [x8, #4092] subs w8, w8, #1023 cset w8, ne tbnz w8, #0, LBB3_25 b LBB3_23 LBB3_23: ldr x8, [sp, #16] ldr w8, [x8, #4092] subs w8, w8, #1023 cset w8, ne tbnz w8, #0, LBB3_25 b LBB3_24 LBB3_24: ldr x8, [sp, #8] ldr w8, [x8, #4092] subs w8, w8, #1023 cset w8, eq tbnz w8, #0, LBB3_26 b LBB3_25 LBB3_25: bl _abort LBB3_26: ldur x0, [x29, #-8] bl _free ldr x0, [sp, #16] bl _free ldr x0, [sp, #8] bl _free b LBB3_27 LBB3_27: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, _posix_memalign@GOTPAGE ldr x8, [x8, _posix_memalign@GOTPAGEOFF] subs x8, x8, #0 cset w8, ne stur wzr, [x29, #-4] str w0, [sp, #8] str x1, [sp] tbnz w8, #0, LBB4_2 b LBB4_1 LBB4_1: stur wzr, [x29, #-4] b LBB4_3 LBB4_2: bl _run_test stur wzr, [x29, #-4] b LBB4_3 LBB4_3: ldur w0, [x29, #-4] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .weak_reference _posix_memalign .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _test_citer ## -- Begin function test_citer .p2align 4, 0x90 _test_citer: ## @test_citer .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 -8(%rbp), %rax movq %rax, -8(%rbp) movq -16(%rbp), %rax movq %rax, -16(%rbp) movq -24(%rbp), %rax movq %rax, -24(%rbp) movl $0, -28(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 cmpl $1023, -28(%rbp) ## imm = 0x3FF jge LBB0_4 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movq -8(%rbp), %rax movslq -28(%rbp), %rcx movl (%rax,%rcx,4), %edx movq -16(%rbp), %rax movslq -28(%rbp), %rcx addl (%rax,%rcx,4), %edx movq -24(%rbp), %rax movslq -28(%rbp), %rcx movl %edx, (%rax,%rcx,4) ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movl -28(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) jmp LBB0_1 LBB0_4: popq %rbp retq .cfi_endproc ## -- End function .globl _test_viter ## -- Begin function test_viter .p2align 4, 0x90 _test_viter: ## @test_viter .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) movq %rdx, -24(%rbp) movl %ecx, -28(%rbp) movq -8(%rbp), %rax movq %rax, -8(%rbp) movq -16(%rbp), %rax movq %rax, -16(%rbp) movq -24(%rbp), %rax movq %rax, -24(%rbp) movl $0, -32(%rbp) LBB1_1: ## =>This Inner Loop Header: Depth=1 movl -32(%rbp), %eax cmpl -28(%rbp), %eax jge LBB1_4 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 movq -8(%rbp), %rax movslq -32(%rbp), %rcx movl (%rax,%rcx,4), %edx movq -16(%rbp), %rax movslq -32(%rbp), %rcx addl (%rax,%rcx,4), %edx movq -24(%rbp), %rax movslq -32(%rbp), %rcx movl %edx, (%rax,%rcx,4) ## %bb.3: ## in Loop: Header=BB1_1 Depth=1 movl -32(%rbp), %eax addl $1, %eax movl %eax, -32(%rbp) jmp LBB1_1 LBB1_4: popq %rbp retq .cfi_endproc ## -- End function .globl _init_data ## -- Begin function init_data .p2align 4, 0x90 _init_data: ## @init_data .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) movq %rdx, -24(%rbp) movl %ecx, -28(%rbp) movl $0, -32(%rbp) LBB2_1: ## =>This Inner Loop Header: Depth=1 movl -32(%rbp), %eax cmpl -28(%rbp), %eax jge LBB2_4 ## %bb.2: ## in Loop: Header=BB2_1 Depth=1 movl -32(%rbp), %edx movq -8(%rbp), %rax movslq -32(%rbp), %rcx movl %edx, (%rax,%rcx,4) xorl %edx, %edx subl -32(%rbp), %edx movq -16(%rbp), %rax movslq -32(%rbp), %rcx movl %edx, (%rax,%rcx,4) movq -24(%rbp), %rax movslq -32(%rbp), %rcx movl $0, (%rax,%rcx,4) ## InlineAsm Start ## InlineAsm End ## %bb.3: ## in Loop: Header=BB2_1 Depth=1 movl -32(%rbp), %eax addl $1, %eax movl %eax, -32(%rbp) jmp LBB2_1 LBB2_4: movl -28(%rbp), %edx movq -24(%rbp), %rax movslq -28(%rbp), %rcx movl %edx, (%rax,%rcx,4) movq -16(%rbp), %rax movslq -28(%rbp), %rcx movl %edx, (%rax,%rcx,4) movq -8(%rbp), %rax movslq -28(%rbp), %rcx movl %edx, (%rax,%rcx,4) popq %rbp retq .cfi_endproc ## -- End function .globl _run_test ## -- Begin function run_test .p2align 4, 0x90 _run_test: ## @run_test .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp leaq -8(%rbp), %rdi movl $64, %esi movl $4096, %edx ## imm = 0x1000 callq _posix_memalign cmpl $0, %eax je LBB3_2 ## %bb.1: jmp LBB3_27 LBB3_2: leaq -16(%rbp), %rdi movl $64, %esi movl $4096, %edx ## imm = 0x1000 callq _posix_memalign cmpl $0, %eax je LBB3_4 ## %bb.3: jmp LBB3_27 LBB3_4: leaq -24(%rbp), %rdi movl $64, %esi movl $4096, %edx ## imm = 0x1000 callq _posix_memalign cmpl $0, %eax je LBB3_6 ## %bb.5: jmp LBB3_27 LBB3_6: movq -8(%rbp), %rdi movq -16(%rbp), %rsi movq -24(%rbp), %rdx movl $1023, %ecx ## imm = 0x3FF callq _init_data movq -8(%rbp), %rdi movq -16(%rbp), %rsi movq -24(%rbp), %rdx callq _test_citer movl $0, -28(%rbp) LBB3_7: ## =>This Inner Loop Header: Depth=1 cmpl $1023, -28(%rbp) ## imm = 0x3FF jge LBB3_12 ## %bb.8: ## in Loop: Header=BB3_7 Depth=1 movq -24(%rbp), %rax movslq -28(%rbp), %rcx movl (%rax,%rcx,4), %eax movq -8(%rbp), %rcx movslq -28(%rbp), %rdx movl (%rcx,%rdx,4), %ecx movq -16(%rbp), %rdx movslq -28(%rbp), %rsi addl (%rdx,%rsi,4), %ecx cmpl %ecx, %eax je LBB3_10 ## %bb.9: callq _abort LBB3_10: ## in Loop: Header=BB3_7 Depth=1 jmp LBB3_11 LBB3_11: ## in Loop: Header=BB3_7 Depth=1 movl -28(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) jmp LBB3_7 LBB3_12: movq -8(%rbp), %rax cmpl $1023, 4092(%rax) ## imm = 0x3FF jne LBB3_15 ## %bb.13: movq -16(%rbp), %rax cmpl $1023, 4092(%rax) ## imm = 0x3FF jne LBB3_15 ## %bb.14: movq -24(%rbp), %rax cmpl $1023, 4092(%rax) ## imm = 0x3FF je LBB3_16 LBB3_15: callq _abort LBB3_16: movq -8(%rbp), %rdi movq -16(%rbp), %rsi movq -24(%rbp), %rdx movl $1023, %ecx ## imm = 0x3FF callq _init_data movq -8(%rbp), %rdi movq -16(%rbp), %rsi movq -24(%rbp), %rdx movl $1023, %ecx ## imm = 0x3FF callq _test_viter movl $0, -28(%rbp) LBB3_17: ## =>This Inner Loop Header: Depth=1 cmpl $1023, -28(%rbp) ## imm = 0x3FF jge LBB3_22 ## %bb.18: ## in Loop: Header=BB3_17 Depth=1 movq -24(%rbp), %rax movslq -28(%rbp), %rcx movl (%rax,%rcx,4), %eax movq -8(%rbp), %rcx movslq -28(%rbp), %rdx movl (%rcx,%rdx,4), %ecx movq -16(%rbp), %rdx movslq -28(%rbp), %rsi addl (%rdx,%rsi,4), %ecx cmpl %ecx, %eax je LBB3_20 ## %bb.19: callq _abort LBB3_20: ## in Loop: Header=BB3_17 Depth=1 jmp LBB3_21 LBB3_21: ## in Loop: Header=BB3_17 Depth=1 movl -28(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) jmp LBB3_17 LBB3_22: movq -8(%rbp), %rax cmpl $1023, 4092(%rax) ## imm = 0x3FF jne LBB3_25 ## %bb.23: movq -16(%rbp), %rax cmpl $1023, 4092(%rax) ## imm = 0x3FF jne LBB3_25 ## %bb.24: movq -24(%rbp), %rax cmpl $1023, 4092(%rax) ## imm = 0x3FF je LBB3_26 LBB3_25: callq _abort LBB3_26: movq -8(%rbp), %rdi callq _free movq -16(%rbp), %rdi callq _free movq -24(%rbp), %rdi callq _free LBB3_27: addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) movl %edi, -8(%rbp) movq %rsi, -16(%rbp) movq _posix_memalign@GOTPCREL(%rip), %rax testq %rax, %rax jne LBB4_2 jmp LBB4_1 LBB4_1: movl $0, -4(%rbp) jmp LBB4_3 LBB4_2: callq _run_test movl $0, -4(%rbp) LBB4_3: movl -4(%rbp), %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .weak_reference _posix_memalign .subsections_via_symbols
the_stack_data/911866.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _isPrime ; -- Begin function isPrime .p2align 2 _isPrime: ; @isPrime .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #8] ldr w8, [sp, #8] subs w8, w8, #2 cset w8, ge tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: str wzr, [sp, #12] b LBB0_13 LBB0_2: ldr w8, [sp, #8] subs w8, w8, #2 cset w8, ne tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: mov w8, #1 str w8, [sp, #12] b LBB0_13 LBB0_4: ldr w8, [sp, #8] mov w10, #2 sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: str wzr, [sp, #12] b LBB0_13 LBB0_6: mov w8, #3 str w8, [sp, #4] b LBB0_7 LBB0_7: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #4] ldr w9, [sp, #4] mul w8, w8, w9 ldr w9, [sp, #8] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_12 b LBB0_8 LBB0_8: ; in Loop: Header=BB0_7 Depth=1 ldr w8, [sp, #8] ldr w10, [sp, #4] sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_10 b LBB0_9 LBB0_9: str wzr, [sp, #12] b LBB0_13 LBB0_10: ; in Loop: Header=BB0_7 Depth=1 b LBB0_11 LBB0_11: ; in Loop: Header=BB0_7 Depth=1 ldr w8, [sp, #4] add w8, w8, #1 str w8, [sp, #4] b LBB0_7 LBB0_12: mov w8, #1 str w8, [sp, #12] b LBB0_13 LBB0_13: 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 _isPrime ## -- Begin function isPrime .p2align 4, 0x90 _isPrime: ## @isPrime .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 $2, -8(%rbp) jge LBB0_2 ## %bb.1: movl $0, -4(%rbp) jmp LBB0_13 LBB0_2: cmpl $2, -8(%rbp) jne LBB0_4 ## %bb.3: movl $1, -4(%rbp) jmp LBB0_13 LBB0_4: movl -8(%rbp), %eax movl $2, %ecx cltd idivl %ecx cmpl $0, %edx jne LBB0_6 ## %bb.5: movl $0, -4(%rbp) jmp LBB0_13 LBB0_6: movl $3, -12(%rbp) LBB0_7: ## =>This Inner Loop Header: Depth=1 movl -12(%rbp), %eax imull -12(%rbp), %eax cmpl -8(%rbp), %eax jge LBB0_12 ## %bb.8: ## in Loop: Header=BB0_7 Depth=1 movl -8(%rbp), %eax cltd idivl -12(%rbp) cmpl $0, %edx jne LBB0_10 ## %bb.9: movl $0, -4(%rbp) jmp LBB0_13 LBB0_10: ## in Loop: Header=BB0_7 Depth=1 jmp LBB0_11 LBB0_11: ## in Loop: Header=BB0_7 Depth=1 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB0_7 LBB0_12: movl $1, -4(%rbp) LBB0_13: movl -4(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/15763490.c