arm
stringlengths
122
20M
x86
stringlengths
122
20M
filename
stringlengths
18
26
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _f ; -- Begin function f .p2align 2 _f: ; @f .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, #8] lsr w8, w8, #16 ldr w9, [sp, #4] lsr w9, w9, #16 mul w9, w8, w9 ldr w8, [sp, #12] add w8, w8, w9 str w8, [sp, #12] ldr w0, [sp, #12] add sp, sp, #16 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _f ## -- Begin function f .p2align 4, 0x90 _f: ## @f .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, -4(%rbp) movl %esi, -8(%rbp) movl %edx, -12(%rbp) movl -8(%rbp), %eax shrl $16, %eax movl -12(%rbp), %ecx shrl $16, %ecx imull %ecx, %eax addl -4(%rbp), %eax movl %eax, -4(%rbp) movl -4(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/95450861.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _func ; -- Begin function func .p2align 2 _func: ; @func .cfi_startproc ; %bb.0: sub sp, sp, #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] strb wzr, [sp, #11] ldrb w8, [sp, #11] adrp x9, _arr1@GOTPAGE ldr x9, [x9, _arr1@GOTPAGEOFF] strb w8, [x9] ldrsb x8, [sp, #11] str x8, [sp] ; 8-byte Folded Spill ldur x9, [x29, #-24] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: bl ___stack_chk_fail LBB0_2: ldr x0, [sp] ; 8-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 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #272 .cfi_def_cfa_offset 272 stp x28, x27, [sp, #240] ; 16-byte Folded Spill stp x29, x30, [sp, #256] ; 16-byte Folded Spill add x29, sp, #256 .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, #28] adrp x9, _a@PAGE mov w8, #1 str w8, [x9, _a@PAGEOFF] adrp x10, _b@GOTPAGE ldr x10, [x10, _b@GOTPAGEOFF] mov w9, #2 str w9, [x10] str wzr, [sp, #24] str w8, [sp, #20] mov w8, #1 strb w8, [sp, #19] bl _func str wzr, [sp, #12] b LBB1_1 LBB1_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #12] subs w8, w8, #100 cset w8, ge tbnz w8, #0, LBB1_4 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #12] adrp x9, _a@PAGE str w8, [x9, _a@PAGEOFF] b LBB1_3 LBB1_3: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB1_1 LBB1_4: ldr w8, [sp, #24] ldr w9, [sp, #20] add w8, w8, w9 ldrsb w9, [sp, #19] subs w8, w8, w9 str w8, [sp, #8] ; 4-byte Folded Spill ldur x9, [x29, #-24] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB1_6 b LBB1_5 LBB1_5: bl ___stack_chk_fail LBB1_6: ldr w0, [sp, #8] ; 4-byte Folded Reload ldp x29, x30, [sp, #256] ; 16-byte Folded Reload ldp x28, x27, [sp, #240] ; 16-byte Folded Reload add sp, sp, #272 ret .cfi_endproc ; -- End function .globl _a ; @a .zerofill __DATA,__common,_a,4,2 .comm _arr1,100,0 ; @arr1 .comm _b,4,2 ; @b .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _func ## -- Begin function func .p2align 4, 0x90 _func: ## @func .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $336, %rsp ## imm = 0x150 movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movb $0, -321(%rbp) movb -321(%rbp), %cl movq _arr1@GOTPCREL(%rip), %rax movb %cl, (%rax) movsbq -321(%rbp), %rax movq %rax, -336(%rbp) ## 8-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_2 ## %bb.1: movq -336(%rbp), %rax ## 8-byte Reload addq $336, %rsp ## imm = 0x150 popq %rbp retq LBB0_2: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $240, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -212(%rbp) movl $1, _a(%rip) movq _b@GOTPCREL(%rip), %rax movl $2, (%rax) movl $0, -216(%rbp) movl $1, -220(%rbp) movb $1, -221(%rbp) callq _func movl $0, -228(%rbp) LBB1_1: ## =>This Inner Loop Header: Depth=1 cmpl $100, -228(%rbp) jge LBB1_4 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 movl -228(%rbp), %eax movl %eax, _a(%rip) ## %bb.3: ## in Loop: Header=BB1_1 Depth=1 movl -228(%rbp), %eax addl $1, %eax movl %eax, -228(%rbp) jmp LBB1_1 LBB1_4: movl -216(%rbp), %eax addl -220(%rbp), %eax movsbl -221(%rbp), %ecx subl %ecx, %eax movl %eax, -232(%rbp) ## 4-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB1_6 ## %bb.5: movl -232(%rbp), %eax ## 4-byte Reload addq $240, %rsp popq %rbp retq LBB1_6: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _a ## @a .zerofill __DATA,__common,_a,4,2 .comm _arr1,100,4 ## @arr1 .comm _b,4,2 ## @b .subsections_via_symbols
the_stack_data/47133.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: ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _f ## -- Begin function f .p2align 4, 0x90 _f: ## @f .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/97488.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] str wzr, [sp, #24] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #24] subs w8, w8, #10 cset w8, ge tbnz w8, #0, LBB0_4 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldrsw x9, [sp, #24] add x8, sp, #32 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, #24] add w8, w8, #1 str w8, [sp, #24] b LBB0_1 LBB0_4: str wzr, [sp, #20] b LBB0_5 LBB0_5: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #20] subs w8, w8, #10 cset w8, ge tbnz w8, #0, LBB0_10 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_5 Depth=1 ldrsw x9, [sp, #20] add x8, sp, #32 ldr w8, [x8, x9, lsl #2] subs w8, w8, #1 cset w8, ge tbnz w8, #0, LBB0_8 b LBB0_7 LBB0_7: ; in Loop: Header=BB0_5 Depth=1 ldrsw x10, [sp, #20] add x9, sp, #32 mov w8, #1 str w8, [x9, x10, lsl #2] 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, #20] add w8, w8, #1 str w8, [sp, #20] b LBB0_5 LBB0_10: str wzr, [sp, #16] b LBB0_11 LBB0_11: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #16] subs w8, w8, #10 cset w8, ge tbnz w8, #0, LBB0_14 b LBB0_12 LBB0_12: ; in Loop: Header=BB0_11 Depth=1 ldr w8, [sp, #16] ; implicit-def: $x10 mov x10, x8 ldrsw x9, [sp, #16] add x8, sp, #32 ldr w9, [x8, x9, lsl #2] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf b LBB0_13 LBB0_13: ; in Loop: Header=BB0_11 Depth=1 ldr w8, [sp, #16] add w8, w8, #1 str w8, [sp, #16] b LBB0_11 LBB0_14: ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_16 b LBB0_15 LBB0_15: bl ___stack_chk_fail LBB0_16: mov w0, #0 ldp x29, x30, [sp, #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 "X[%i] = %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 $64, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -52(%rbp) movl $0, -56(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 cmpl $10, -56(%rbp) jge LBB0_4 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movslq -56(%rbp), %rax leaq -48(%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 -56(%rbp), %eax addl $1, %eax movl %eax, -56(%rbp) jmp LBB0_1 LBB0_4: movl $0, -60(%rbp) LBB0_5: ## =>This Inner Loop Header: Depth=1 cmpl $10, -60(%rbp) jge LBB0_10 ## %bb.6: ## in Loop: Header=BB0_5 Depth=1 movslq -60(%rbp), %rax cmpl $1, -48(%rbp,%rax,4) jge LBB0_8 ## %bb.7: ## in Loop: Header=BB0_5 Depth=1 movslq -60(%rbp), %rax movl $1, -48(%rbp,%rax,4) LBB0_8: ## in Loop: Header=BB0_5 Depth=1 jmp LBB0_9 LBB0_9: ## in Loop: Header=BB0_5 Depth=1 movl -60(%rbp), %eax addl $1, %eax movl %eax, -60(%rbp) jmp LBB0_5 LBB0_10: movl $0, -64(%rbp) LBB0_11: ## =>This Inner Loop Header: Depth=1 cmpl $10, -64(%rbp) jge LBB0_14 ## %bb.12: ## in Loop: Header=BB0_11 Depth=1 movl -64(%rbp), %esi movslq -64(%rbp), %rax movl -48(%rbp,%rax,4), %edx leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf ## %bb.13: ## in Loop: Header=BB0_11 Depth=1 movl -64(%rbp), %eax addl $1, %eax movl %eax, -64(%rbp) jmp LBB0_11 LBB0_14: movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_16 ## %bb.15: xorl %eax, %eax addq $64, %rsp popq %rbp retq LBB0_16: 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 "X[%i] = %i\n" .subsections_via_symbols
the_stack_data/26699702.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] str x2, [sp, #24] str wzr, [sp, #20] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #24] ldrsw x9, [sp, #20] ldr x8, [x8, x9, lsl #3] subs x8, x8, #0 cset w8, eq mov w9, #0 str w9, [sp, #16] ; 4-byte Folded Spill tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #24] ldrsw x9, [sp, #20] ldr x8, [x8, x9, lsl #3] ldrsb w8, [x8] subs w8, w8, #0 cset w8, ne str w8, [sp, #16] ; 4-byte Folded Spill b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #16] ; 4-byte Folded Reload tbz w8, #0, LBB0_5 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #24] ldrsw x9, [sp, #20] ldr x8, [x8, x9, lsl #3] mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldr w8, [sp, #20] add w8, w8, #1 str w8, [sp, #20] b LBB0_1 LBB0_5: mov w0, #0 ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%s\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl $0, -4(%rbp) movl %edi, -8(%rbp) movq %rsi, -16(%rbp) movq %rdx, -24(%rbp) movl $0, -28(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movq -24(%rbp), %rcx movslq -28(%rbp), %rdx xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpq $0, (%rcx,%rdx,8) movb %al, -29(%rbp) ## 1-byte Spill je LBB0_3 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movq -24(%rbp), %rax movslq -28(%rbp), %rcx movq (%rax,%rcx,8), %rax movsbl (%rax), %eax cmpl $0, %eax setne %al movb %al, -29(%rbp) ## 1-byte Spill LBB0_3: ## in Loop: Header=BB0_1 Depth=1 movb -29(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB0_4 jmp LBB0_5 LBB0_4: ## in Loop: Header=BB0_1 Depth=1 movq -24(%rbp), %rax movslq -28(%rbp), %rcx movq (%rax,%rcx,8), %rsi leaq L_.str(%rip), %rdi movb $0, %al callq _printf movl -28(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) jmp LBB0_1 LBB0_5: xorl %eax, %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%s\n" .subsections_via_symbols
the_stack_data/466199.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 _min ; -- Begin function min .p2align 2 _min: ; @min .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, #24] str w1, [sp, #20] str w2, [sp, #16] str wzr, [sp, #12] ldr x8, [sp, #24] ldrsw x9, [sp, #20] ldr w8, [x8, x9, lsl #2] str w8, [sp, #8] ldr w8, [sp, #20] str w8, [sp, #4] ldr w8, [sp, #20] str w8, [sp, #12] b LBB1_1 LBB1_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #12] ldr w9, [sp, #16] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_6 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 ldr x8, [sp, #24] ldrsw x9, [sp, #12] ldr w8, [x8, x9, lsl #2] ldr w9, [sp, #8] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_4 b LBB1_3 LBB1_3: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #12] str w8, [sp, #4] b LBB1_4 LBB1_4: ; in Loop: Header=BB1_1 Depth=1 b LBB1_5 LBB1_5: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB1_1 LBB1_6: ldr w0, [sp, #4] add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _selection ; -- Begin function selection .p2align 2 _selection: ; @selection .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] stur w1, [x29, #-12] str wzr, [sp, #16] str wzr, [sp, #12] str wzr, [sp, #8] str wzr, [sp, #16] b LBB2_1 LBB2_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #16] ldur w9, [x29, #-12] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB2_4 b LBB2_2 LBB2_2: ; in Loop: Header=BB2_1 Depth=1 ldur x0, [x29, #-8] ldr w1, [sp, #16] ldur w2, [x29, #-12] bl _min str w0, [sp, #8] ldur x8, [x29, #-8] 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 ldur x8, [x29, #-8] ldrsw x9, [sp, #8] add x0, x8, x9, lsl #2 ldur x8, [x29, #-8] ldrsw x9, [sp, #16] add x1, x8, x9, lsl #2 bl _swap b LBB2_3 LBB2_3: ; in Loop: Header=BB2_1 Depth=1 ldr w8, [sp, #16] add w8, w8, #1 str w8, [sp, #16] b LBB2_1 LBB2_4: ldur x0, [x29, #-8] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] sub x8, x29, #8 str x8, [sp, #8] ; 8-byte Folded Spill stur wzr, [x29, #-8] stur wzr, [x29, #-12] stur wzr, [x29, #-16] stur wzr, [x29, #-20] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf ldr x8, [sp, #8] ; 8-byte Folded Reload mov x9, sp str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _scanf ldursw x0, [x29, #-8] mov x1, #4 bl _calloc str x0, [sp, #16] stur wzr, [x29, #-12] b LBB3_1 LBB3_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-12] ldur w9, [x29, #-8] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB3_4 b LBB3_2 LBB3_2: ; in Loop: Header=BB3_1 Depth=1 ldur w8, [x29, #-12] add w10, w8, #1 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 ldr x8, [sp, #16] ldursw x9, [x29, #-12] add x8, x8, x9, lsl #2 mov x9, sp str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _scanf b LBB3_3 LBB3_3: ; in Loop: Header=BB3_1 Depth=1 ldur w8, [x29, #-12] add w8, w8, #1 stur w8, [x29, #-12] b LBB3_1 LBB3_4: stur wzr, [x29, #-12] b LBB3_5 LBB3_5: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-12] ldur w9, [x29, #-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, #16] 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.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf b LBB3_7 LBB3_7: ; in Loop: Header=BB3_5 Depth=1 ldur w8, [x29, #-12] add w8, w8, #1 stur w8, [x29, #-12] b LBB3_5 LBB3_8: adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf ldr x0, [sp, #16] ldur w1, [x29, #-8] bl _selection str x0, [sp, #16] adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _printf stur wzr, [x29, #-12] b LBB3_9 LBB3_9: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-12] ldur w9, [x29, #-8] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB3_12 b LBB3_10 LBB3_10: ; in Loop: Header=BB3_9 Depth=1 ldr x8, [sp, #16] 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.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf b LBB3_11 LBB3_11: ; in Loop: Header=BB3_9 Depth=1 ldur w8, [x29, #-12] add w8, w8, #1 stur w8, [x29, #-12] b LBB3_9 LBB3_12: adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@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 "%d\n" l_.str.1: ; @.str.1 .asciz "Enter number of elements: " l_.str.2: ; @.str.2 .asciz "%d" l_.str.3: ; @.str.3 .asciz "Enter %d th element: " l_.str.4: ; @.str.4 .asciz "%d " l_.str.5: ; @.str.5 .asciz "\n" l_.str.6: ; @.str.6 .asciz "Sorted array is\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _swap ## -- Begin function swap .p2align 4, 0x90 _swap: ## @swap .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) movq -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 _min ## -- Begin function min .p2align 4, 0x90 _min: ## @min .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) movl %edx, -16(%rbp) movl $0, -20(%rbp) movq -8(%rbp), %rax movslq -12(%rbp), %rcx movl (%rax,%rcx,4), %eax movl %eax, -24(%rbp) movl -12(%rbp), %eax movl %eax, -28(%rbp) movl -12(%rbp), %eax movl %eax, -20(%rbp) LBB1_1: ## =>This Inner Loop Header: Depth=1 movl -20(%rbp), %eax cmpl -16(%rbp), %eax jge LBB1_6 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 movq -8(%rbp), %rax movslq -20(%rbp), %rcx movl (%rax,%rcx,4), %eax cmpl -24(%rbp), %eax jge LBB1_4 ## %bb.3: ## in Loop: Header=BB1_1 Depth=1 movl -20(%rbp), %eax movl %eax, -28(%rbp) LBB1_4: ## in Loop: Header=BB1_1 Depth=1 jmp LBB1_5 LBB1_5: ## in Loop: Header=BB1_1 Depth=1 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB1_1 LBB1_6: movl -28(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .globl _selection ## -- Begin function selection .p2align 4, 0x90 _selection: ## @selection .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) movl $0, -16(%rbp) movl $0, -20(%rbp) movl $0, -24(%rbp) movl $0, -16(%rbp) LBB2_1: ## =>This Inner Loop Header: Depth=1 movl -16(%rbp), %eax cmpl -12(%rbp), %eax jge LBB2_4 ## %bb.2: ## in Loop: Header=BB2_1 Depth=1 movq -8(%rbp), %rdi movl -16(%rbp), %esi movl -12(%rbp), %edx callq _min movl %eax, -24(%rbp) movq -8(%rbp), %rax movslq -24(%rbp), %rcx movl (%rax,%rcx,4), %esi leaq L_.str(%rip), %rdi movb $0, %al callq _printf movq -8(%rbp), %rdi movslq -24(%rbp), %rax shlq $2, %rax addq %rax, %rdi movq -8(%rbp), %rsi movslq -16(%rbp), %rax shlq $2, %rax addq %rax, %rsi callq _swap ## %bb.3: ## in Loop: Header=BB2_1 Depth=1 movl -16(%rbp), %eax addl $1, %eax movl %eax, -16(%rbp) jmp LBB2_1 LBB2_4: movq -8(%rbp), %rax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl $0, -4(%rbp) movl $0, -8(%rbp) movl $0, -12(%rbp) movl $0, -16(%rbp) movl $0, -20(%rbp) leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf leaq L_.str.2(%rip), %rdi leaq -8(%rbp), %rsi movb $0, %al callq _scanf movslq -8(%rbp), %rdi movl $4, %esi callq _calloc movq %rax, -32(%rbp) movl $0, -12(%rbp) LBB3_1: ## =>This Inner Loop Header: Depth=1 movl -12(%rbp), %eax cmpl -8(%rbp), %eax jge LBB3_4 ## %bb.2: ## in Loop: Header=BB3_1 Depth=1 movl -12(%rbp), %esi addl $1, %esi leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf movq -32(%rbp), %rsi movslq -12(%rbp), %rax shlq $2, %rax addq %rax, %rsi leaq L_.str.2(%rip), %rdi movb $0, %al callq _scanf ## %bb.3: ## in Loop: Header=BB3_1 Depth=1 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB3_1 LBB3_4: movl $0, -12(%rbp) LBB3_5: ## =>This Inner Loop Header: Depth=1 movl -12(%rbp), %eax cmpl -8(%rbp), %eax jge LBB3_8 ## %bb.6: ## in Loop: Header=BB3_5 Depth=1 movq -32(%rbp), %rax movslq -12(%rbp), %rcx movl (%rax,%rcx,4), %esi leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf ## %bb.7: ## in Loop: Header=BB3_5 Depth=1 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB3_5 LBB3_8: leaq L_.str.5(%rip), %rdi movb $0, %al callq _printf movq -32(%rbp), %rdi movl -8(%rbp), %esi callq _selection movq %rax, -32(%rbp) leaq L_.str.6(%rip), %rdi movb $0, %al callq _printf movl $0, -12(%rbp) LBB3_9: ## =>This Inner Loop Header: Depth=1 movl -12(%rbp), %eax cmpl -8(%rbp), %eax jge LBB3_12 ## %bb.10: ## in Loop: Header=BB3_9 Depth=1 movq -32(%rbp), %rax movslq -12(%rbp), %rcx movl (%rax,%rcx,4), %esi leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf ## %bb.11: ## in Loop: Header=BB3_9 Depth=1 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB3_9 LBB3_12: leaq L_.str.5(%rip), %rdi movb $0, %al callq _printf xorl %eax, %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d\n" L_.str.1: ## @.str.1 .asciz "Enter number of elements: " L_.str.2: ## @.str.2 .asciz "%d" L_.str.3: ## @.str.3 .asciz "Enter %d th element: " L_.str.4: ## @.str.4 .asciz "%d " L_.str.5: ## @.str.5 .asciz "\n" L_.str.6: ## @.str.6 .asciz "Sorted array is\n" .subsections_via_symbols
the_stack_data/45450854.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 sub x0, x29, #16 mov x1, #0 bl _gettimeofday str wzr, [sp, #12] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #12] subs w8, w8, #1000 cset w8, ge tbnz w8, #0, LBB0_4 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB0_1 LBB0_4: add x0, sp, #16 mov x1, #0 bl _gettimeofday ldr x8, [sp, #16] mov x10, #16960 movk x10, #15, lsl #16 mul x8, x8, x10 ldrsw x9, [sp, #24] add x8, x8, x9 ldur x9, [x29, #-16] mul x9, x9, x10 ldursw x10, [x29, #-8] add x9, x9, x10 subs x8, 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, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "printing time of day %ld\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp leaq -16(%rbp), %rdi xorl %eax, %eax movl %eax, %esi callq _gettimeofday movl $0, -36(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 cmpl $1000, -36(%rbp) ## imm = 0x3E8 jge LBB0_4 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_3 LBB0_3: ## in Loop: Header=BB0_1 Depth=1 movl -36(%rbp), %eax addl $1, %eax movl %eax, -36(%rbp) jmp LBB0_1 LBB0_4: leaq -32(%rbp), %rdi xorl %eax, %eax movl %eax, %esi callq _gettimeofday imulq $1000000, -32(%rbp), %rsi ## imm = 0xF4240 movslq -24(%rbp), %rax addq %rax, %rsi imulq $1000000, -16(%rbp), %rax ## imm = 0xF4240 movslq -8(%rbp), %rcx addq %rcx, %rax subq %rax, %rsi leaq L_.str(%rip), %rdi movb $0, %al callq _printf addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "printing time of day %ld\n" .subsections_via_symbols
the_stack_data/955169.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] bl ___VERIFIER_nondet_int str w0, [sp, #8] bl ___VERIFIER_nondet_int str w0, [sp, #4] b LBB0_1 LBB0_1: ; =>This Loop Header: Depth=1 ; Child Loop BB0_3 Depth 2 ldr w8, [sp, #8] subs w8, w8, #10 cset w8, gt tbnz w8, #0, LBB0_6 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 mov w8, #1000 str w8, [sp, #4] b LBB0_3 LBB0_3: ; Parent Loop BB0_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #4] subs w8, w8, #1 cset w8, le tbnz w8, #0, LBB0_5 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_3 Depth=2 ldr w8, [sp, #4] subs w8, w8, #1 str w8, [sp, #4] b LBB0_3 LBB0_5: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #8] add w8, w8, #1 str w8, [sp, #8] b LBB0_1 LBB0_6: mov w0, #0 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) callq ___VERIFIER_nondet_int movl %eax, -8(%rbp) callq ___VERIFIER_nondet_int movl %eax, -12(%rbp) LBB0_1: ## =>This Loop Header: Depth=1 ## Child Loop BB0_3 Depth 2 cmpl $10, -8(%rbp) jg LBB0_6 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl $1000, -12(%rbp) ## imm = 0x3E8 LBB0_3: ## Parent Loop BB0_1 Depth=1 ## => This Inner Loop Header: Depth=2 cmpl $1, -12(%rbp) jle LBB0_5 ## %bb.4: ## in Loop: Header=BB0_3 Depth=2 movl -12(%rbp), %eax subl $1, %eax movl %eax, -12(%rbp) jmp LBB0_3 LBB0_5: ## in Loop: Header=BB0_1 Depth=1 movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) jmp LBB0_1 LBB0_6: xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/132964.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] mov x9, #32824 movk x9, #16388, lsl #16 ldr w8, [x9] orr w8, w8, #0x200 str w8, [x9] mov x9, #36868 movk x9, #16388, lsl #16 mov w8, #256 str w8, [x9] mov x9, #61460 movk x9, #16399, lsl #16 ldr w8, [x9] orr w8, w8, #0x2 str w8, [x9] mov x9, #61448 movk x9, #16399, lsl #16 ldr w8, [x9] and w8, w8, #0xfffffffd str w8, [x9] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 mov x9, #61452 movk x9, #16399, lsl #16 ldr w8, [x9] orr w8, w8, #0x2 str w8, [x9] mov w0, #100 bl _delay b LBB0_1 .cfi_endproc ; -- End function .globl _delay ; -- Begin function delay .p2align 2 _delay: ; @delay .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 Loop Header: Depth=1 ; Child Loop BB1_3 Depth 2 ldr w8, [sp, #8] ldr w9, [sp, #12] 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, #4] b LBB1_3 LBB1_3: ; Parent Loop BB1_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #4] mov w9, #5000 subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_6 b LBB1_4 LBB1_4: ; in Loop: Header=BB1_3 Depth=2 ; InlineAsm Start nop ; InlineAsm End b LBB1_5 LBB1_5: ; in Loop: Header=BB1_3 Depth=2 ldr w8, [sp, #4] add w8, w8, #1 str w8, [sp, #4] 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, #8] add w8, w8, #1 str w8, [sp, #8] b LBB1_1 LBB1_8: add sp, sp, #16 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) movl $1074036792, %eax ## imm = 0x40048038 movl (%rax), %ecx orl $512, %ecx ## imm = 0x200 movl $1074036792, %eax ## imm = 0x40048038 movl %ecx, (%rax) movl $1074040836, %eax ## imm = 0x40049004 movl $256, (%rax) ## imm = 0x100 movl $1074786324, %eax ## imm = 0x400FF014 movl (%rax), %ecx orl $2, %ecx movl $1074786324, %eax ## imm = 0x400FF014 movl %ecx, (%rax) movl $1074786312, %eax ## imm = 0x400FF008 movl (%rax), %ecx andl $-3, %ecx movl $1074786312, %eax ## imm = 0x400FF008 movl %ecx, (%rax) LBB0_1: ## =>This Inner Loop Header: Depth=1 movl $1074786316, %eax ## imm = 0x400FF00C movl (%rax), %ecx orl $2, %ecx movl %ecx, -8(%rbp) ## 4-byte Spill movl $1074786316, %eax ## imm = 0x400FF00C movl %ecx, (%rax) movl $100, %edi callq _delay jmp LBB0_1 .cfi_endproc ## -- End function .globl _delay ## -- Begin function delay .p2align 4, 0x90 _delay: ## @delay .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, -4(%rbp) movl $0, -8(%rbp) LBB1_1: ## =>This Loop Header: Depth=1 ## Child Loop BB1_3 Depth 2 movl -8(%rbp), %eax cmpl -4(%rbp), %eax jge LBB1_8 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 movl $0, -12(%rbp) LBB1_3: ## Parent Loop BB1_1 Depth=1 ## => This Inner Loop Header: Depth=2 cmpl $5000, -12(%rbp) ## imm = 0x1388 jge LBB1_6 ## %bb.4: ## in Loop: Header=BB1_3 Depth=2 ## InlineAsm Start nop ## InlineAsm End ## %bb.5: ## in Loop: Header=BB1_3 Depth=2 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%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 -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) jmp LBB1_1 LBB1_8: popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/215768775.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _readname ; -- Begin function readname .p2align 2 _readname: ; @readname .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] str x2, [sp, #24] str x3, [sp, #16] str x4, [sp, #8] ldur x0, [x29, #-8] ldur w1, [x29, #-12] ldr x2, [sp, #24] ldr x3, [sp, #16] ldr x4, [sp, #8] mov x5, #10 bl _readname_loop ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function readname_loop _readname_loop: ; @readname_loop .cfi_startproc ; %bb.0: sub sp, sp, #128 .cfi_def_cfa_offset 128 stp x29, x30, [sp, #112] ; 16-byte Folded Spill add x29, sp, #112 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-16] stur w1, [x29, #-20] stur x2, [x29, #-32] stur x3, [x29, #-40] stur x4, [x29, #-48] str x5, [sp, #56] ldr x8, [sp, #56] subs x8, x8, #0 cset w8, hi tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: stur wzr, [x29, #-4] b LBB1_24 LBB1_2: str wzr, [sp, #28] ldur x8, [x29, #-32] ldr x8, [x8] str x8, [sp, #40] ldur x8, [x29, #-40] str x8, [sp, #32] b LBB1_3 LBB1_3: ; =>This Loop Header: Depth=1 ; Child Loop BB1_13 Depth 2 ldr x8, [sp, #40] ldrsb w8, [x8] subs w8, w8, #0 cset w8, eq mov w9, #0 str w9, [sp, #16] ; 4-byte Folded Spill tbnz w8, #0, LBB1_5 b LBB1_4 LBB1_4: ; in Loop: Header=BB1_3 Depth=1 ldrsw x8, [sp, #28] ldur x9, [x29, #-48] subs x9, x9, #2 subs x8, x8, x9 cset w8, lo str w8, [sp, #16] ; 4-byte Folded Spill b LBB1_5 LBB1_5: ; in Loop: Header=BB1_3 Depth=1 ldr w8, [sp, #16] ; 4-byte Folded Reload tbz w8, #0, LBB1_22 b LBB1_6 LBB1_6: ; in Loop: Header=BB1_3 Depth=1 ldr x8, [sp, #40] add x9, x8, #1 str x9, [sp, #40] ldrb w8, [x8] strb w8, [sp, #23] ldrsb w8, [sp, #23] and w8, w8, #0xc0 subs w8, w8, #192 cset w8, ne tbnz w8, #0, LBB1_12 b LBB1_7 LBB1_7: ldr x8, [sp, #40] ldursb w8, [x8, #-1] and w9, w8, #0x3f ldr x8, [sp, #40] ldrb w8, [x8] orr w8, w8, w9, lsl #8 str w8, [sp, #24] ldr w8, [sp, #24] ldur w9, [x29, #-20] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB1_11 b LBB1_8 LBB1_8: ldr w8, [sp, #28] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB1_10 b LBB1_9 LBB1_9: stur wzr, [x29, #-4] b LBB1_24 LBB1_10: b LBB1_22 LBB1_11: ldur x8, [x29, #-16] ldrsw x9, [sp, #24] add x8, x8, x9 add x2, sp, #48 str x8, [sp, #48] ldur x0, [x29, #-16] ldur w1, [x29, #-20] ldr x3, [sp, #32] ldur x8, [x29, #-48] ldrsw x9, [sp, #28] subs x4, x8, x9 ldr x8, [sp, #56] subs x5, x8, #1 bl _readname_loop ldr w8, [sp, #28] add w8, w8, w0 str w8, [sp, #28] b LBB1_23 LBB1_12: ; in Loop: Header=BB1_3 Depth=1 b LBB1_13 LBB1_13: ; Parent Loop BB1_3 Depth=1 ; => This Inner Loop Header: Depth=2 ldrsb w8, [sp, #23] subs w8, w8, #0 cset w8, eq mov w9, #0 str w9, [sp, #12] ; 4-byte Folded Spill tbnz w8, #0, LBB1_15 b LBB1_14 LBB1_14: ; in Loop: Header=BB1_13 Depth=2 ldrsw x8, [sp, #28] ldur x9, [x29, #-48] subs x9, x9, #1 subs x8, x8, x9 cset w8, lo str w8, [sp, #12] ; 4-byte Folded Spill b LBB1_15 LBB1_15: ; in Loop: Header=BB1_13 Depth=2 ldr w8, [sp, #12] ; 4-byte Folded Reload tbz w8, #0, LBB1_17 b LBB1_16 LBB1_16: ; in Loop: Header=BB1_13 Depth=2 ldr x8, [sp, #40] add x9, x8, #1 str x9, [sp, #40] ldrb w8, [x8] ldr x9, [sp, #32] add x10, x9, #1 str x10, [sp, #32] strb w8, [x9] ldr w8, [sp, #28] add w8, w8, #1 str w8, [sp, #28] ldrb w9, [sp, #23] mov w8, #-1 add w8, w8, w9, uxtb strb w8, [sp, #23] b LBB1_13 LBB1_17: ; in Loop: Header=BB1_3 Depth=1 ldrsw x8, [sp, #28] ldur x9, [x29, #-48] subs x9, x9, #1 subs x8, x8, x9 cset w8, lo tbnz w8, #0, LBB1_19 b LBB1_18 LBB1_18: b LBB1_22 LBB1_19: ; in Loop: Header=BB1_3 Depth=1 ldr x8, [sp, #40] ldrsb w8, [x8] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB1_21 b LBB1_20 LBB1_20: ; in Loop: Header=BB1_3 Depth=1 ldr x9, [sp, #32] add x8, x9, #1 str x8, [sp, #32] mov w8, #46 strb w8, [x9] ldr w8, [sp, #28] add w8, w8, #1 str w8, [sp, #28] b LBB1_21 LBB1_21: ; in Loop: Header=BB1_3 Depth=1 b LBB1_3 LBB1_22: ldur x8, [x29, #-40] ldrsw x9, [sp, #28] mov x10, x9 add w10, w10, #1 str w10, [sp, #28] add x8, x8, x9 strb wzr, [x8] b LBB1_23 LBB1_23: ldr x8, [sp, #40] add x8, x8, #1 ldur x9, [x29, #-32] str x8, [x9] ldr w8, [sp, #28] stur w8, [x29, #-4] b LBB1_24 LBB1_24: ldur w0, [x29, #-4] ldp x29, x30, [sp, #112] ; 16-byte Folded Reload add sp, sp, #128 ret .cfi_endproc ; -- End function .globl _readshort ; -- Begin function readshort .p2align 2 _readshort: ; @readshort .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, #16] ldr x8, [x8] str x8, [sp] ldr x8, [sp] ldrb w9, [x8] ldr x8, [sp] ldrb w8, [x8, #1] orr w8, w8, w9, lsl #8 ldr x9, [sp, #8] strh w8, [x9] ldr x9, [sp, #16] ldr x8, [x9] add x8, x8, #2 str x8, [x9] mov w0, #2 add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _readlong ; -- Begin function readlong .p2align 2 _readlong: ; @readlong .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, #16] ldr x8, [x8] str x8, [sp] ldr x8, [sp] ldrb w9, [x8] ldr x8, [sp] ldrb w8, [x8, #1] lsl w8, w8, #16 orr w8, w8, w9, lsl #24 ldr x9, [sp] ldrb w9, [x9, #2] orr w8, w8, w9, lsl #8 ldr x9, [sp] ldrb w9, [x9, #3] orr w8, w8, w9 ldr x9, [sp, #8] str w8, [x9] ldr x9, [sp, #16] ldr x8, [x9] add x8, x8, #4 str x8, [x9] mov w0, #4 add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _readdata ; -- Begin function readdata .p2align 2 _readdata: ; @readdata .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] str x1, [sp, #16] str x2, [sp, #8] str x3, [sp] ldr x0, [sp, #8] ldr x8, [sp, #16] ldr x1, [x8] ldr x2, [sp] mov x3, #-1 bl ___memcpy_chk ldr x10, [sp] ldr x9, [sp, #16] ldr x8, [x9] add x8, x8, x10 str x8, [x9] ldr x8, [sp] mov x0, x8 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _readtxtbin ; -- Begin function readtxtbin .p2align 2 _readtxtbin: ; @readtxtbin .cfi_startproc ; %bb.0: sub sp, sp, #80 .cfi_def_cfa_offset 80 stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp, #64 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-16] stur x1, [x29, #-24] str x2, [sp, #32] str x3, [sp, #24] str x4, [sp, #16] str wzr, [sp] b LBB5_1 LBB5_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #32] subs x8, x8, #0 cset w8, ls tbnz w8, #0, LBB5_7 b LBB5_2 LBB5_2: ; in Loop: Header=BB5_1 Depth=1 ldur x8, [x29, #-24] ldr x8, [x8] str x8, [sp, #8] ldr x8, [sp, #8] ldrb w8, [x8] str w8, [sp, #4] ldur x9, [x29, #-24] ldr x8, [x9] add x8, x8, #1 str x8, [x9] ldr x8, [sp, #32] subs x8, x8, #1 str x8, [sp, #32] ldrsw x8, [sp, #4] ldr x9, [sp, #32] subs x8, x8, x9 cset w8, ls tbnz w8, #0, LBB5_4 b LBB5_3 LBB5_3: stur wzr, [x29, #-4] b LBB5_8 LBB5_4: ; in Loop: Header=BB5_1 Depth=1 ldrsw x8, [sp, #4] ldr x9, [sp, #16] subs x8, x8, x9 cset w8, ls tbnz w8, #0, LBB5_6 b LBB5_5 LBB5_5: stur wzr, [x29, #-4] b LBB5_8 LBB5_6: ; in Loop: Header=BB5_1 Depth=1 ldr x0, [sp, #24] ldur x8, [x29, #-24] ldr x1, [x8] ldrsw x2, [sp, #4] mov x3, #-1 bl ___memcpy_chk ldrsw x9, [sp, #4] ldr x8, [sp, #24] add x8, x8, x9 str x8, [sp, #24] ldrsw x10, [sp, #4] ldur x9, [x29, #-24] ldr x8, [x9] add x8, x8, x10 str x8, [x9] ldrsw x9, [sp, #4] ldr x8, [sp, #32] subs x8, x8, x9 str x8, [sp, #32] ldrsw x9, [sp, #4] ldr x8, [sp, #16] subs x8, x8, x9 str x8, [sp, #16] ldr w9, [sp, #4] ldr w8, [sp] add w8, w8, w9 str w8, [sp] b LBB5_1 LBB5_7: ldr w8, [sp] stur w8, [x29, #-4] b LBB5_8 LBB5_8: ldur w0, [x29, #-4] ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .globl _putname ; -- Begin function putname .p2align 2 _putname: ; @putname .cfi_startproc ; %bb.0: sub sp, sp, #96 .cfi_def_cfa_offset 96 stp x29, x30, [sp, #80] ; 16-byte Folded Spill add x29, sp, #80 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-16] stur x1, [x29, #-24] stur x2, [x29, #-32] ldur x0, [x29, #-32] bl _strdup str x0, [sp, #24] ldur x8, [x29, #-24] ; kill: def $w8 killed $w8 killed $x8 str w8, [sp, #36] ldur x8, [x29, #-16] ldr x8, [x8] str x8, [sp, #16] ldr x0, [sp, #24] adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF bl _strtok str x0, [sp, #40] b LBB6_1 LBB6_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #40] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB6_6 b LBB6_2 LBB6_2: ; in Loop: Header=BB6_1 Depth=1 ldr x0, [sp, #40] bl _strlen subs x8, x0, #63 cset w8, hi tbnz w8, #0, LBB6_4 b LBB6_3 LBB6_3: ; in Loop: Header=BB6_1 Depth=1 ldr x0, [sp, #40] bl _strlen ldrsw x8, [sp, #36] subs x8, x0, x8 cset w8, ls tbnz w8, #0, LBB6_5 b LBB6_4 LBB6_4: ldr x0, [sp, #24] bl _free mov w8, #-1 stur w8, [x29, #-4] b LBB6_7 LBB6_5: ; in Loop: Header=BB6_1 Depth=1 ldr x0, [sp, #40] bl _strlen add x9, x0, #1 ldrsw x8, [sp, #36] subs x8, x8, x9 ; kill: def $w8 killed $w8 killed $x8 str w8, [sp, #36] ldr x0, [sp, #40] bl _strlen ldr x9, [sp, #16] add x8, x9, #1 str x8, [sp, #16] mov x8, x0 strb w8, [x9] ldr x8, [sp, #16] str x8, [sp, #8] ; 8-byte Folded Spill ldr x8, [sp, #40] str x8, [sp] ; 8-byte Folded Spill ldr x0, [sp, #40] bl _strlen ldr x1, [sp] ; 8-byte Folded Reload mov x2, x0 ldr x0, [sp, #8] ; 8-byte Folded Reload mov x3, #-1 bl ___memcpy_chk ldr x0, [sp, #40] bl _strlen ldr x8, [sp, #16] add x8, x8, x0 str x8, [sp, #16] mov x0, #0 adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF bl _strtok str x0, [sp, #40] b LBB6_1 LBB6_6: ldr x8, [sp, #16] add x9, x8, #1 str x9, [sp, #16] strb wzr, [x8] ldr x0, [sp, #24] bl _free ldr x8, [sp, #16] ldur x9, [x29, #-16] str x8, [x9] ldur x8, [x29, #-24] ldrsw x9, [sp, #36] subs x8, x8, x9 ; kill: def $w8 killed $w8 killed $x8 stur w8, [x29, #-4] b LBB6_7 LBB6_7: ldur w0, [x29, #-4] ldp x29, x30, [sp, #80] ; 16-byte Folded Reload add sp, sp, #96 ret .cfi_endproc ; -- End function .globl _putbyte ; -- Begin function putbyte .p2align 2 _putbyte: ; @putbyte .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] strb w1, [sp, #7] ldrb w8, [sp, #7] ldr x9, [sp, #8] ldr x9, [x9] strb w8, [x9] ldr x9, [sp, #8] ldr x8, [x9] add x8, x8, #1 str x8, [x9] mov w0, #1 add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _putshort ; -- Begin function putshort .p2align 2 _putshort: ; @putshort .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, #24] strh w1, [sp, #22] ldr x8, [sp, #24] ldr x8, [x8] str x8, [sp, #8] ldrh w8, [sp, #22] asr w8, w8, #8 ldr x9, [sp, #8] add x10, x9, #1 str x10, [sp, #8] strb w8, [x9] ldrh w8, [sp, #22] ldr x9, [sp, #8] add x10, x9, #1 str x10, [sp, #8] strb w8, [x9] ldr x8, [sp, #8] ldr x9, [sp, #24] str x8, [x9] mov w0, #2 add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _putlong ; -- Begin function putlong .p2align 2 _putlong: ; @putlong .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, #24] str w1, [sp, #20] ldr x8, [sp, #24] ldr x8, [x8] str x8, [sp, #8] ldr w8, [sp, #20] lsr w8, w8, #24 ldr x9, [sp, #8] add x10, x9, #1 str x10, [sp, #8] strb w8, [x9] ldr w8, [sp, #20] lsr w8, w8, #16 ldr x9, [sp, #8] add x10, x9, #1 str x10, [sp, #8] strb w8, [x9] ldr w8, [sp, #20] lsr w8, w8, #8 ldr x9, [sp, #8] add x10, x9, #1 str x10, [sp, #8] strb w8, [x9] ldr w8, [sp, #20] ldr x9, [sp, #8] add x10, x9, #1 str x10, [sp, #8] strb w8, [x9] ldr x8, [sp, #8] ldr x9, [sp, #24] str x8, [x9] mov w0, #4 add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _putdata ; -- Begin function putdata .p2align 2 _putdata: ; @putdata .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] str x1, [sp, #16] str x2, [sp, #8] ldur x8, [x29, #-8] ldr x0, [x8] ldr x1, [sp, #16] ldr x2, [sp, #8] mov x3, #-1 bl ___memcpy_chk ldr x10, [sp, #8] ldur x9, [x29, #-8] ldr x8, [x9] add x8, x8, x10 str x8, [x9] ldr x8, [sp, #8] mov x0, x8 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _puttxtbin ; -- Begin function puttxtbin .p2align 2 _puttxtbin: ; @puttxtbin .cfi_startproc ; %bb.0: sub sp, sp, #96 .cfi_def_cfa_offset 96 stp x29, x30, [sp, #80] ; 16-byte Folded Spill add x29, sp, #80 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-16] stur x1, [x29, #-24] stur x2, [x29, #-32] str x3, [sp, #40] add x8, sp, #39 str x8, [sp, #24] ldr x8, [sp, #24] str x8, [sp, #16] str wzr, [sp, #8] b LBB11_1 LBB11_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #40] subs x8, x8, #0 cset w8, ls tbnz w8, #0, LBB11_7 b LBB11_2 LBB11_2: ; in Loop: Header=BB11_1 Depth=1 ldr x8, [sp, #40] ; kill: def $w8 killed $w8 killed $x8 str w8, [sp, #12] ldr w8, [sp, #12] subs w8, w8, #252 cset w8, le tbnz w8, #0, LBB11_4 b LBB11_3 LBB11_3: ; in Loop: Header=BB11_1 Depth=1 mov w8, #252 str w8, [sp, #12] b LBB11_4 LBB11_4: ; in Loop: Header=BB11_1 Depth=1 ldr w8, [sp, #12] add w9, w8, #1 ; implicit-def: $x8 mov x8, x9 sxtw x8, w8 ldur x9, [x29, #-24] subs x8, x8, x9 cset w8, ls tbnz w8, #0, LBB11_6 b LBB11_5 LBB11_5: mov w8, #-1 stur w8, [x29, #-4] b LBB11_8 LBB11_6: ; in Loop: Header=BB11_1 Depth=1 ldr w8, [sp, #12] strb w8, [sp, #39] ldr x8, [sp, #16] ldrb w8, [x8] ldur x9, [x29, #-16] ldr x9, [x9] strb w8, [x9] ldur x9, [x29, #-16] ldr x8, [x9] add x8, x8, #1 str x8, [x9] ldur x8, [x29, #-24] mov x3, #-1 subs x8, x8, #1 stur x8, [x29, #-24] ldr w8, [sp, #8] add w8, w8, #1 str w8, [sp, #8] ldur x8, [x29, #-16] ldr x0, [x8] ldur x1, [x29, #-32] ldrsw x2, [sp, #12] bl ___memcpy_chk ldrsw x10, [sp, #12] ldur x9, [x29, #-16] ldr x8, [x9] add x8, x8, x10 str x8, [x9] ldrsw x9, [sp, #12] ldur x8, [x29, #-32] add x8, x8, x9 stur x8, [x29, #-32] ldrsw x9, [sp, #12] ldur x8, [x29, #-24] subs x8, x8, x9 stur x8, [x29, #-24] ldrsw x9, [sp, #12] ldr x8, [sp, #40] subs x8, x8, x9 str x8, [sp, #40] ldr w9, [sp, #12] ldr w8, [sp, #8] add w8, w8, w9 str w8, [sp, #8] b LBB11_1 LBB11_7: ldr w8, [sp, #8] stur w8, [x29, #-4] b LBB11_8 LBB11_8: ldur w0, [x29, #-4] 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 "." .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _readname ## -- Begin function readname .p2align 4, 0x90 _readname: ## @readname .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) movq %rdx, -24(%rbp) movq %rcx, -32(%rbp) movq %r8, -40(%rbp) movq -8(%rbp), %rdi movl -12(%rbp), %esi movq -24(%rbp), %rdx movq -32(%rbp), %rcx movq -40(%rbp), %r8 movl $10, %r9d callq _readname_loop addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function readname_loop _readname_loop: ## @readname_loop .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $96, %rsp movq %rdi, -16(%rbp) movl %esi, -20(%rbp) movq %rdx, -32(%rbp) movq %rcx, -40(%rbp) movq %r8, -48(%rbp) movq %r9, -56(%rbp) cmpq $0, -56(%rbp) ja LBB1_2 ## %bb.1: movl $0, -4(%rbp) jmp LBB1_24 LBB1_2: movl $0, -84(%rbp) movq -32(%rbp), %rax movq (%rax), %rax movq %rax, -72(%rbp) movq -40(%rbp), %rax movq %rax, -80(%rbp) LBB1_3: ## =>This Loop Header: Depth=1 ## Child Loop BB1_13 Depth 2 movq -72(%rbp), %rax movsbl (%rax), %ecx xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $0, %ecx movb %al, -90(%rbp) ## 1-byte Spill je LBB1_5 ## %bb.4: ## in Loop: Header=BB1_3 Depth=1 movslq -84(%rbp), %rax movq -48(%rbp), %rcx subq $2, %rcx cmpq %rcx, %rax setb %al movb %al, -90(%rbp) ## 1-byte Spill LBB1_5: ## in Loop: Header=BB1_3 Depth=1 movb -90(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB1_6 jmp LBB1_22 LBB1_6: ## in Loop: Header=BB1_3 Depth=1 movq -72(%rbp), %rax movq %rax, %rcx addq $1, %rcx movq %rcx, -72(%rbp) movb (%rax), %al movb %al, -89(%rbp) movsbl -89(%rbp), %eax andl $192, %eax cmpl $192, %eax jne LBB1_12 ## %bb.7: movq -72(%rbp), %rax movsbl -1(%rax), %eax andl $63, %eax shll $8, %eax movq -72(%rbp), %rcx movsbl (%rcx), %ecx andl $255, %ecx orl %ecx, %eax movl %eax, -88(%rbp) movl -88(%rbp), %eax cmpl -20(%rbp), %eax jle LBB1_11 ## %bb.8: cmpl $0, -84(%rbp) jne LBB1_10 ## %bb.9: movl $0, -4(%rbp) jmp LBB1_24 LBB1_10: jmp LBB1_22 LBB1_11: movq -16(%rbp), %rax movslq -88(%rbp), %rcx addq %rcx, %rax movq %rax, -64(%rbp) movq -16(%rbp), %rdi movl -20(%rbp), %esi movq -80(%rbp), %rcx movq -48(%rbp), %r8 movslq -84(%rbp), %rax subq %rax, %r8 movq -56(%rbp), %r9 subq $1, %r9 leaq -64(%rbp), %rdx callq _readname_loop addl -84(%rbp), %eax movl %eax, -84(%rbp) jmp LBB1_23 LBB1_12: ## in Loop: Header=BB1_3 Depth=1 jmp LBB1_13 LBB1_13: ## Parent Loop BB1_3 Depth=1 ## => This Inner Loop Header: Depth=2 movsbl -89(%rbp), %ecx xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $0, %ecx movb %al, -91(%rbp) ## 1-byte Spill je LBB1_15 ## %bb.14: ## in Loop: Header=BB1_13 Depth=2 movslq -84(%rbp), %rax movq -48(%rbp), %rcx subq $1, %rcx cmpq %rcx, %rax setb %al movb %al, -91(%rbp) ## 1-byte Spill LBB1_15: ## in Loop: Header=BB1_13 Depth=2 movb -91(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB1_16 jmp LBB1_17 LBB1_16: ## in Loop: Header=BB1_13 Depth=2 movq -72(%rbp), %rax movq %rax, %rcx addq $1, %rcx movq %rcx, -72(%rbp) movb (%rax), %cl movq -80(%rbp), %rax movq %rax, %rdx addq $1, %rdx movq %rdx, -80(%rbp) movb %cl, (%rax) movl -84(%rbp), %eax addl $1, %eax movl %eax, -84(%rbp) movb -89(%rbp), %al addb $-1, %al movb %al, -89(%rbp) jmp LBB1_13 LBB1_17: ## in Loop: Header=BB1_3 Depth=1 movslq -84(%rbp), %rax movq -48(%rbp), %rcx subq $1, %rcx cmpq %rcx, %rax jb LBB1_19 ## %bb.18: jmp LBB1_22 LBB1_19: ## in Loop: Header=BB1_3 Depth=1 movq -72(%rbp), %rax movsbl (%rax), %eax cmpl $0, %eax je LBB1_21 ## %bb.20: ## in Loop: Header=BB1_3 Depth=1 movq -80(%rbp), %rax movq %rax, %rcx addq $1, %rcx movq %rcx, -80(%rbp) movb $46, (%rax) movl -84(%rbp), %eax addl $1, %eax movl %eax, -84(%rbp) LBB1_21: ## in Loop: Header=BB1_3 Depth=1 jmp LBB1_3 LBB1_22: movq -40(%rbp), %rax movl -84(%rbp), %ecx movl %ecx, %edx addl $1, %edx movl %edx, -84(%rbp) movslq %ecx, %rcx movb $0, (%rax,%rcx) LBB1_23: movq -72(%rbp), %rcx addq $1, %rcx movq -32(%rbp), %rax movq %rcx, (%rax) movl -84(%rbp), %eax movl %eax, -4(%rbp) LBB1_24: movl -4(%rbp), %eax addq $96, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _readshort ## -- Begin function readshort .p2align 4, 0x90 _readshort: ## @readshort .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 -16(%rbp), %rax movq (%rax), %rax movq %rax, -32(%rbp) movq -32(%rbp), %rax movzbl (%rax), %eax shll $8, %eax movq -32(%rbp), %rcx movzbl 1(%rcx), %ecx orl %ecx, %eax movw %ax, %cx movq -24(%rbp), %rax movw %cx, (%rax) movq -16(%rbp), %rax movq (%rax), %rcx addq $2, %rcx movq %rcx, (%rax) movl $2, %eax popq %rbp retq .cfi_endproc ## -- End function .globl _readlong ## -- Begin function readlong .p2align 4, 0x90 _readlong: ## @readlong .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 -16(%rbp), %rax movq (%rax), %rax movq %rax, -32(%rbp) movq -32(%rbp), %rax movzbl (%rax), %ecx shll $24, %ecx movq -32(%rbp), %rax movzbl 1(%rax), %eax shll $16, %eax orl %eax, %ecx movq -32(%rbp), %rax movzbl 2(%rax), %eax shll $8, %eax orl %eax, %ecx movq -32(%rbp), %rax movzbl 3(%rax), %eax orl %eax, %ecx movq -24(%rbp), %rax movl %ecx, (%rax) movq -16(%rbp), %rax movq (%rax), %rcx addq $4, %rcx movq %rcx, (%rax) movl $4, %eax popq %rbp retq .cfi_endproc ## -- End function .globl _readdata ## -- Begin function readdata .p2align 4, 0x90 _readdata: ## @readdata .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) movq %rdx, -24(%rbp) movq %rcx, -32(%rbp) movq -24(%rbp), %rdi movq -16(%rbp), %rax movq (%rax), %rsi movq -32(%rbp), %rdx movq $-1, %rcx callq ___memcpy_chk movq -32(%rbp), %rcx movq -16(%rbp), %rax addq (%rax), %rcx movq %rcx, (%rax) movq -32(%rbp), %rax ## kill: def $eax killed $eax killed $rax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _readtxtbin ## -- Begin function readtxtbin .p2align 4, 0x90 _readtxtbin: ## @readtxtbin .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $64, %rsp movq %rdi, -16(%rbp) movq %rsi, -24(%rbp) movq %rdx, -32(%rbp) movq %rcx, -40(%rbp) movq %r8, -48(%rbp) movl $0, -64(%rbp) LBB5_1: ## =>This Inner Loop Header: Depth=1 cmpq $0, -32(%rbp) jbe LBB5_7 ## %bb.2: ## in Loop: Header=BB5_1 Depth=1 movq -24(%rbp), %rax movq (%rax), %rax movq %rax, -56(%rbp) movq -56(%rbp), %rax movzbl (%rax), %eax movl %eax, -60(%rbp) movq -24(%rbp), %rax movq (%rax), %rcx addq $1, %rcx movq %rcx, (%rax) movq -32(%rbp), %rax addq $-1, %rax movq %rax, -32(%rbp) movslq -60(%rbp), %rax cmpq -32(%rbp), %rax jbe LBB5_4 ## %bb.3: movl $0, -4(%rbp) jmp LBB5_8 LBB5_4: ## in Loop: Header=BB5_1 Depth=1 movslq -60(%rbp), %rax cmpq -48(%rbp), %rax jbe LBB5_6 ## %bb.5: movl $0, -4(%rbp) jmp LBB5_8 LBB5_6: ## in Loop: Header=BB5_1 Depth=1 movq -40(%rbp), %rdi movq -24(%rbp), %rax movq (%rax), %rsi movslq -60(%rbp), %rdx movq $-1, %rcx callq ___memcpy_chk movl -60(%rbp), %ecx movq -40(%rbp), %rax movslq %ecx, %rcx addq %rcx, %rax movq %rax, -40(%rbp) movl -60(%rbp), %edx movq -24(%rbp), %rax movq (%rax), %rcx movslq %edx, %rdx addq %rdx, %rcx movq %rcx, (%rax) movslq -60(%rbp), %rcx movq -32(%rbp), %rax subq %rcx, %rax movq %rax, -32(%rbp) movslq -60(%rbp), %rcx movq -48(%rbp), %rax subq %rcx, %rax movq %rax, -48(%rbp) movl -60(%rbp), %eax addl -64(%rbp), %eax movl %eax, -64(%rbp) jmp LBB5_1 LBB5_7: movl -64(%rbp), %eax movl %eax, -4(%rbp) LBB5_8: movl -4(%rbp), %eax addq $64, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _putname ## -- Begin function putname .p2align 4, 0x90 _putname: ## @putname .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $80, %rsp movq %rdi, -16(%rbp) movq %rsi, -24(%rbp) movq %rdx, -32(%rbp) movq -32(%rbp), %rdi callq _strdup movq %rax, -56(%rbp) movq -24(%rbp), %rax ## kill: def $eax killed $eax killed $rax movl %eax, -44(%rbp) movq -16(%rbp), %rax movq (%rax), %rax movq %rax, -64(%rbp) movq -56(%rbp), %rdi leaq L_.str(%rip), %rsi callq _strtok movq %rax, -40(%rbp) LBB6_1: ## =>This Inner Loop Header: Depth=1 cmpq $0, -40(%rbp) je LBB6_6 ## %bb.2: ## in Loop: Header=BB6_1 Depth=1 movq -40(%rbp), %rdi callq _strlen cmpq $63, %rax ja LBB6_4 ## %bb.3: ## in Loop: Header=BB6_1 Depth=1 movq -40(%rbp), %rdi callq _strlen movslq -44(%rbp), %rcx cmpq %rcx, %rax jbe LBB6_5 LBB6_4: movq -56(%rbp), %rdi callq _free movl $-1, -4(%rbp) jmp LBB6_7 LBB6_5: ## in Loop: Header=BB6_1 Depth=1 movq -40(%rbp), %rdi callq _strlen movq %rax, %rcx addq $1, %rcx movslq -44(%rbp), %rax subq %rcx, %rax ## kill: def $eax killed $eax killed $rax movl %eax, -44(%rbp) movq -40(%rbp), %rdi callq _strlen movb %al, %cl movq -64(%rbp), %rax movq %rax, %rdx addq $1, %rdx movq %rdx, -64(%rbp) movb %cl, (%rax) movq -64(%rbp), %rax movq %rax, -80(%rbp) ## 8-byte Spill movq -40(%rbp), %rax movq %rax, -72(%rbp) ## 8-byte Spill movq -40(%rbp), %rdi callq _strlen movq -80(%rbp), %rdi ## 8-byte Reload movq -72(%rbp), %rsi ## 8-byte Reload movq %rax, %rdx movq $-1, %rcx callq ___memcpy_chk movq -40(%rbp), %rdi callq _strlen addq -64(%rbp), %rax movq %rax, -64(%rbp) xorl %eax, %eax movl %eax, %edi leaq L_.str(%rip), %rsi callq _strtok movq %rax, -40(%rbp) jmp LBB6_1 LBB6_6: movq -64(%rbp), %rax movq %rax, %rcx addq $1, %rcx movq %rcx, -64(%rbp) movb $0, (%rax) movq -56(%rbp), %rdi callq _free movq -64(%rbp), %rcx movq -16(%rbp), %rax movq %rcx, (%rax) movq -24(%rbp), %rax movslq -44(%rbp), %rcx subq %rcx, %rax ## kill: def $eax killed $eax killed $rax movl %eax, -4(%rbp) LBB6_7: movl -4(%rbp), %eax addq $80, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _putbyte ## -- Begin function putbyte .p2align 4, 0x90 _putbyte: ## @putbyte .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movb %sil, %al movq %rdi, -8(%rbp) movb %al, -9(%rbp) movb -9(%rbp), %cl movq -8(%rbp), %rax movq (%rax), %rax movb %cl, (%rax) movq -8(%rbp), %rax movq (%rax), %rcx addq $1, %rcx movq %rcx, (%rax) movl $1, %eax popq %rbp retq .cfi_endproc ## -- End function .globl _putshort ## -- Begin function putshort .p2align 4, 0x90 _putshort: ## @putshort .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movw %si, %ax movq %rdi, -8(%rbp) movw %ax, -10(%rbp) movq -8(%rbp), %rax movq (%rax), %rax movq %rax, -24(%rbp) movzwl -10(%rbp), %eax sarl $8, %eax movb %al, %cl movq -24(%rbp), %rax movq %rax, %rdx addq $1, %rdx movq %rdx, -24(%rbp) movb %cl, (%rax) movw -10(%rbp), %ax movb %al, %cl movq -24(%rbp), %rax movq %rax, %rdx addq $1, %rdx movq %rdx, -24(%rbp) movb %cl, (%rax) movq -24(%rbp), %rcx movq -8(%rbp), %rax movq %rcx, (%rax) movl $2, %eax popq %rbp retq .cfi_endproc ## -- End function .globl _putlong ## -- Begin function putlong .p2align 4, 0x90 _putlong: ## @putlong .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), %rax movq %rax, -24(%rbp) movl -12(%rbp), %eax shrl $24, %eax movb %al, %cl movq -24(%rbp), %rax movq %rax, %rdx addq $1, %rdx movq %rdx, -24(%rbp) movb %cl, (%rax) movl -12(%rbp), %eax shrl $16, %eax movb %al, %cl movq -24(%rbp), %rax movq %rax, %rdx addq $1, %rdx movq %rdx, -24(%rbp) movb %cl, (%rax) movl -12(%rbp), %eax shrl $8, %eax movb %al, %cl movq -24(%rbp), %rax movq %rax, %rdx addq $1, %rdx movq %rdx, -24(%rbp) movb %cl, (%rax) movl -12(%rbp), %eax movb %al, %cl movq -24(%rbp), %rax movq %rax, %rdx addq $1, %rdx movq %rdx, -24(%rbp) movb %cl, (%rax) movq -24(%rbp), %rcx movq -8(%rbp), %rax movq %rcx, (%rax) movl $4, %eax popq %rbp retq .cfi_endproc ## -- End function .globl _putdata ## -- Begin function putdata .p2align 4, 0x90 _putdata: ## @putdata .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) movq %rdx, -24(%rbp) movq -8(%rbp), %rax movq (%rax), %rdi movq -16(%rbp), %rsi movq -24(%rbp), %rdx movq $-1, %rcx callq ___memcpy_chk movq -24(%rbp), %rcx movq -8(%rbp), %rax addq (%rax), %rcx movq %rcx, (%rax) movq -24(%rbp), %rax ## kill: def $eax killed $eax killed $rax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _puttxtbin ## -- Begin function puttxtbin .p2align 4, 0x90 _puttxtbin: ## @puttxtbin .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $80, %rsp movq %rdi, -16(%rbp) movq %rsi, -24(%rbp) movq %rdx, -32(%rbp) movq %rcx, -40(%rbp) leaq -41(%rbp), %rax movq %rax, -56(%rbp) movq -56(%rbp), %rax movq %rax, -64(%rbp) movl $0, -72(%rbp) LBB11_1: ## =>This Inner Loop Header: Depth=1 cmpq $0, -40(%rbp) jbe LBB11_7 ## %bb.2: ## in Loop: Header=BB11_1 Depth=1 movq -40(%rbp), %rax ## kill: def $eax killed $eax killed $rax movl %eax, -68(%rbp) cmpl $252, -68(%rbp) jle LBB11_4 ## %bb.3: ## in Loop: Header=BB11_1 Depth=1 movl $252, -68(%rbp) LBB11_4: ## in Loop: Header=BB11_1 Depth=1 movl -68(%rbp), %eax addl $1, %eax cltq cmpq -24(%rbp), %rax jbe LBB11_6 ## %bb.5: movl $-1, -4(%rbp) jmp LBB11_8 LBB11_6: ## in Loop: Header=BB11_1 Depth=1 movl -68(%rbp), %eax ## kill: def $al killed $al killed $eax movb %al, -41(%rbp) movq -64(%rbp), %rax movb (%rax), %cl movq -16(%rbp), %rax movq (%rax), %rax movb %cl, (%rax) movq -16(%rbp), %rax movq (%rax), %rcx addq $1, %rcx movq %rcx, (%rax) movq -24(%rbp), %rax addq $-1, %rax movq %rax, -24(%rbp) movl -72(%rbp), %eax addl $1, %eax movl %eax, -72(%rbp) movq -16(%rbp), %rax movq (%rax), %rdi movq -32(%rbp), %rsi movslq -68(%rbp), %rdx movq $-1, %rcx callq ___memcpy_chk movl -68(%rbp), %edx movq -16(%rbp), %rax movq (%rax), %rcx movslq %edx, %rdx addq %rdx, %rcx movq %rcx, (%rax) movl -68(%rbp), %ecx movq -32(%rbp), %rax movslq %ecx, %rcx addq %rcx, %rax movq %rax, -32(%rbp) movslq -68(%rbp), %rcx movq -24(%rbp), %rax subq %rcx, %rax movq %rax, -24(%rbp) movslq -68(%rbp), %rcx movq -40(%rbp), %rax subq %rcx, %rax movq %rax, -40(%rbp) movl -68(%rbp), %eax addl -72(%rbp), %eax movl %eax, -72(%rbp) jmp LBB11_1 LBB11_7: movl -72(%rbp), %eax movl %eax, -4(%rbp) LBB11_8: movl -4(%rbp), %eax addq $80, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "." .subsections_via_symbols
the_stack_data/29825606.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 strb w0, [sp, #15] ldrb w0, [sp, #15] add sp, sp, #16 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _foo ## -- Begin function foo .p2align 4, 0x90 _foo: ## @foo .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movb %dil, %al movb %al, -1(%rbp) movzbl -1(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/140766682.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] str wzr, [sp, #24] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #24] subs w8, w8, #10 cset w8, ge tbnz w8, #0, LBB0_4 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldrsw x9, [sp, #24] add x8, sp, #32 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, #24] add w8, w8, #1 str w8, [sp, #24] b LBB0_1 LBB0_4: str wzr, [sp, #24] b LBB0_5 LBB0_5: ; =>This Loop Header: Depth=1 ; Child Loop BB0_7 Depth 2 ldr w8, [sp, #24] subs w8, w8, #9 cset w8, ge tbnz w8, #0, LBB0_14 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_5 Depth=1 str wzr, [sp, #20] b LBB0_7 LBB0_7: ; Parent Loop BB0_5 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #20] ldr w10, [sp, #24] mov w9, #10 subs w9, w9, w10 subs w9, w9, #1 subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_12 b LBB0_8 LBB0_8: ; in Loop: Header=BB0_7 Depth=2 ldrsw x8, [sp, #20] add x9, sp, #32 ldr w8, [x9, x8, lsl #2] ldr w10, [sp, #20] add w10, w10, #1 ldr w9, [x9, w10, sxtw #2] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB0_10 b LBB0_9 LBB0_9: ; in Loop: Header=BB0_7 Depth=2 ldrsw x8, [sp, #20] add x9, sp, #32 ldr w8, [x9, x8, lsl #2] str w8, [sp, #16] ldr w8, [sp, #20] add w8, w8, #1 ldr w8, [x9, w8, sxtw #2] ldrsw x10, [sp, #20] str w8, [x9, x10, lsl #2] ldr w8, [sp, #16] ldr w10, [sp, #20] add w10, w10, #1 str w8, [x9, w10, sxtw #2] b LBB0_10 LBB0_10: ; in Loop: Header=BB0_7 Depth=2 b LBB0_11 LBB0_11: ; in Loop: Header=BB0_7 Depth=2 ldr w8, [sp, #20] add w8, w8, #1 str w8, [sp, #20] b LBB0_7 LBB0_12: ; in Loop: Header=BB0_5 Depth=1 b LBB0_13 LBB0_13: ; in Loop: Header=BB0_5 Depth=1 ldr w8, [sp, #24] add w8, w8, #1 str w8, [sp, #24] b LBB0_5 LBB0_14: str wzr, [sp, #24] b LBB0_15 LBB0_15: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #24] subs w8, w8, #10 cset w8, ge tbnz w8, #0, LBB0_18 b LBB0_16 LBB0_16: ; in Loop: Header=BB0_15 Depth=1 ldrsw x9, [sp, #24] add x8, sp, #32 ldr w9, [x8, x9, lsl #2] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf b LBB0_17 LBB0_17: ; in Loop: Header=BB0_15 Depth=1 ldr w8, [sp, #24] add w8, w8, #1 str w8, [sp, #24] b LBB0_15 LBB0_18: 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_20 b LBB0_19 LBB0_19: bl ___stack_chk_fail LBB0_20: mov w0, #0 ldp x29, x30, [sp, #80] ; 16-byte Folded Reload add sp, sp, #96 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d" l_.str.1: ; @.str.1 .asciz "%d " .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 $0, -56(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 cmpl $10, -56(%rbp) jge LBB0_4 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 leaq -48(%rbp), %rsi movslq -56(%rbp), %rax shlq $2, %rax addq %rax, %rsi leaq L_.str(%rip), %rdi movb $0, %al callq _scanf ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movl -56(%rbp), %eax addl $1, %eax movl %eax, -56(%rbp) jmp LBB0_1 LBB0_4: movl $0, -56(%rbp) LBB0_5: ## =>This Loop Header: Depth=1 ## Child Loop BB0_7 Depth 2 cmpl $9, -56(%rbp) jge LBB0_14 ## %bb.6: ## in Loop: Header=BB0_5 Depth=1 movl $0, -60(%rbp) LBB0_7: ## Parent Loop BB0_5 Depth=1 ## => This Inner Loop Header: Depth=2 movl -60(%rbp), %eax movl $10, %ecx subl -56(%rbp), %ecx subl $1, %ecx cmpl %ecx, %eax jge LBB0_12 ## %bb.8: ## in Loop: Header=BB0_7 Depth=2 movslq -60(%rbp), %rax movl -48(%rbp,%rax,4), %eax movl -60(%rbp), %ecx addl $1, %ecx movslq %ecx, %rcx cmpl -48(%rbp,%rcx,4), %eax jle LBB0_10 ## %bb.9: ## in Loop: Header=BB0_7 Depth=2 movslq -60(%rbp), %rax movl -48(%rbp,%rax,4), %eax movl %eax, -64(%rbp) movl -60(%rbp), %eax addl $1, %eax cltq movl -48(%rbp,%rax,4), %ecx movslq -60(%rbp), %rax movl %ecx, -48(%rbp,%rax,4) movl -64(%rbp), %ecx movl -60(%rbp), %eax addl $1, %eax cltq movl %ecx, -48(%rbp,%rax,4) LBB0_10: ## in Loop: Header=BB0_7 Depth=2 jmp LBB0_11 LBB0_11: ## in Loop: Header=BB0_7 Depth=2 movl -60(%rbp), %eax addl $1, %eax movl %eax, -60(%rbp) jmp LBB0_7 LBB0_12: ## in Loop: Header=BB0_5 Depth=1 jmp LBB0_13 LBB0_13: ## in Loop: Header=BB0_5 Depth=1 movl -56(%rbp), %eax addl $1, %eax movl %eax, -56(%rbp) jmp LBB0_5 LBB0_14: movl $0, -56(%rbp) LBB0_15: ## =>This Inner Loop Header: Depth=1 cmpl $10, -56(%rbp) jge LBB0_18 ## %bb.16: ## in Loop: Header=BB0_15 Depth=1 movslq -56(%rbp), %rax movl -48(%rbp,%rax,4), %esi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf ## %bb.17: ## in Loop: Header=BB0_15 Depth=1 movl -56(%rbp), %eax addl $1, %eax movl %eax, -56(%rbp) jmp LBB0_15 LBB0_18: movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_20 ## %bb.19: xorl %eax, %eax addq $64, %rsp popq %rbp retq LBB0_20: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d" L_.str.1: ## @.str.1 .asciz "%d " .subsections_via_symbols
the_stack_data/176705261.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #0 str w8, [sp, #16] ; 4-byte Folded Spill stur wzr, [x29, #-4] stur w0, [x29, #-8] stur x1, [x29, #-16] ldur x8, [x29, #-16] ldr x0, [x8, #8] bl _atof str d0, [sp, #24] ldr d0, [sp, #24] fcvtzs w8, d0 str w8, [sp, #20] ldr w9, [sp, #20] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldr w0, [sp, #16] ; 4-byte Folded Reload ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .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 _atof movsd %xmm0, -24(%rbp) cvttsd2si -24(%rbp), %eax movl %eax, -28(%rbp) movl -28(%rbp), %esi leaq L_.str(%rip), %rdi movb $0, %al callq _printf xorl %eax, %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d\n" .subsections_via_symbols
the_stack_data/58251.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _TwoFunc ; -- Begin function TwoFunc .p2align 2 _TwoFunc: ; @TwoFunc .cfi_startproc ; %bb.0: stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill .cfi_def_cfa_offset 16 mov x29, sp .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 bl _OneFunc bl _NoDepZ_func ldp x29, x30, [sp], #16 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _TwoFunc ## -- Begin function TwoFunc .p2align 4, 0x90 _TwoFunc: ## @TwoFunc .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, %al callq _OneFunc movb $0, %al callq _NoDepZ_func popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/393250.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #496 .cfi_def_cfa_offset 496 stp x28, x27, [sp, #464] ; 16-byte Folded Spill stp x29, x30, [sp, #480] ; 16-byte Folded Spill add x29, sp, #480 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w27, -24 .cfi_offset w28, -32 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] mov w8, #1 str w8, [sp, #36] 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 bl _scanf adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf str wzr, [sp, #52] b LBB0_1 LBB0_1: ; =>This Loop Header: Depth=1 ; Child Loop BB0_3 Depth 2 ldr w8, [sp, #52] ldr w9, [sp, #40] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_10 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 str wzr, [sp, #48] b LBB0_3 LBB0_3: ; Parent Loop BB0_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #48] ldr w9, [sp, #40] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_8 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_3 Depth=2 ldrsw x8, [sp, #52] mov x9, #40 str x9, [sp, #16] ; 8-byte Folded Spill mul x9, x8, x9 add x8, sp, #56 str x8, [sp, #24] ; 8-byte Folded Spill add x8, x8, x9 ldrsw x9, [sp, #48] add x8, x8, x9, lsl #2 mov x9, sp str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf ldr x10, [sp, #16] ; 8-byte Folded Reload ldr x8, [sp, #24] ; 8-byte Folded Reload ldrsw x9, [sp, #52] mul x9, x9, x10 add x8, x8, x9 ldrsw x9, [sp, #48] ldr w8, [x8, x9, lsl #2] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_3 Depth=2 ldrsw x8, [sp, #52] mov x9, #40 mul x9, x8, x9 add x8, sp, #56 add x9, x8, x9 ldrsw x10, [sp, #48] mov w8, #9999 str w8, [x9, x10, lsl #2] 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.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf str wzr, [sp, #52] b LBB0_11 LBB0_11: ; =>This Loop Header: Depth=1 ; Child Loop BB0_13 Depth 2 ; Child Loop BB0_15 Depth 3 ldr w8, [sp, #52] ldr w9, [sp, #40] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_24 b LBB0_12 LBB0_12: ; in Loop: Header=BB0_11 Depth=1 str wzr, [sp, #48] b LBB0_13 LBB0_13: ; Parent Loop BB0_11 Depth=1 ; => This Loop Header: Depth=2 ; Child Loop BB0_15 Depth 3 ldr w8, [sp, #48] ldr w9, [sp, #40] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_22 b LBB0_14 LBB0_14: ; in Loop: Header=BB0_13 Depth=2 str wzr, [sp, #44] b LBB0_15 LBB0_15: ; Parent Loop BB0_11 Depth=1 ; Parent Loop BB0_13 Depth=2 ; => This Inner Loop Header: Depth=3 ldr w8, [sp, #44] ldr w9, [sp, #40] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_20 b LBB0_16 LBB0_16: ; in Loop: Header=BB0_15 Depth=3 ldrsw x8, [sp, #52] mov x12, #40 mul x9, x8, x12 add x10, sp, #56 mov x8, x10 add x8, x8, x9 ldrsw x9, [sp, #48] ldr w8, [x8, x9, lsl #2] ldrsw x9, [sp, #52] mul x11, x9, x12 mov x9, x10 add x9, x9, x11 ldrsw x11, [sp, #44] ldr w9, [x9, x11, lsl #2] ldrsw x11, [sp, #44] mul x11, x11, x12 add x10, x10, x11 ldrsw x11, [sp, #48] ldr w10, [x10, x11, lsl #2] add w9, w9, w10 subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB0_18 b LBB0_17 LBB0_17: ; in Loop: Header=BB0_15 Depth=3 ldrsw x8, [sp, #52] mov x11, #40 mul x10, x8, x11 add x9, sp, #56 mov x8, x9 add x8, x8, x10 ldrsw x10, [sp, #44] ldr w8, [x8, x10, lsl #2] ldrsw x10, [sp, #44] mul x12, x10, x11 mov x10, x9 add x10, x10, x12 ldrsw x12, [sp, #48] ldr w10, [x10, x12, lsl #2] add w8, w8, w10 ldrsw x10, [sp, #52] mul x10, x10, x11 add x9, x9, x10 ldrsw x10, [sp, #48] str w8, [x9, x10, lsl #2] b LBB0_18 LBB0_18: ; in Loop: Header=BB0_15 Depth=3 b LBB0_19 LBB0_19: ; in Loop: Header=BB0_15 Depth=3 ldr w8, [sp, #44] add w8, w8, #1 str w8, [sp, #44] b LBB0_15 LBB0_20: ; in Loop: Header=BB0_13 Depth=2 b LBB0_21 LBB0_21: ; in Loop: Header=BB0_13 Depth=2 ldr w8, [sp, #48] add w8, w8, #1 str w8, [sp, #48] b LBB0_13 LBB0_22: ; in Loop: Header=BB0_11 Depth=1 b LBB0_23 LBB0_23: ; in Loop: Header=BB0_11 Depth=1 ldr w8, [sp, #52] add w8, w8, #1 str w8, [sp, #52] b LBB0_11 LBB0_24: b LBB0_25 LBB0_25: ; =>This Loop Header: Depth=1 ; Child Loop BB0_27 Depth 2 ldr w8, [sp, #36] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB0_33 b LBB0_26 LBB0_26: ; in Loop: Header=BB0_25 Depth=1 adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf mov x9, sp add x8, sp, #48 str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf str wzr, [sp, #52] b LBB0_27 LBB0_27: ; Parent Loop BB0_25 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #52] ldr w9, [sp, #40] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_32 b LBB0_28 LBB0_28: ; in Loop: Header=BB0_27 Depth=2 ldr w8, [sp, #52] ldr w9, [sp, #48] subs w8, w8, w9 cset w8, eq tbnz w8, #0, LBB0_30 b LBB0_29 LBB0_29: ; in Loop: Header=BB0_27 Depth=2 ldr w8, [sp, #52] ; implicit-def: $x10 mov x10, x8 ldrsw x8, [sp, #48] mov x9, #40 mul x9, x8, x9 add x8, sp, #56 add x8, x8, x9 ldrsw x9, [sp, #52] ldr w9, [x8, x9, lsl #2] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf b LBB0_30 LBB0_30: ; in Loop: Header=BB0_27 Depth=2 b LBB0_31 LBB0_31: ; in Loop: Header=BB0_27 Depth=2 ldr w8, [sp, #52] add w8, w8, #1 str w8, [sp, #52] b LBB0_27 LBB0_32: ; in Loop: Header=BB0_25 Depth=1 adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _printf mov x9, sp add x8, sp, #36 str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf b LBB0_25 LBB0_33: 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_35 b LBB0_34 LBB0_34: bl ___stack_chk_fail LBB0_35: ldp x29, x30, [sp, #480] ; 16-byte Folded Reload ldp x28, x27, [sp, #464] ; 16-byte Folded Reload add sp, sp, #496 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Enter no. of routers:" l_.str.1: ; @.str.1 .asciz "%d" l_.str.2: ; @.str.2 .asciz "Enter adjacency matrix for router:\n" l_.str.3: ; @.str.3 .asciz "After Sharing routing tables:\n" l_.str.4: ; @.str.4 .asciz "\n Enter the required router:" l_.str.5: ; @.str.5 .asciz "\nDistance to %d :%d\n" l_.str.6: ; @.str.6 .asciz "Want to give another input(Yes=1/No=0):" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $448, %rsp ## imm = 0x1C0 movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $1, -436(%rbp) leaq L_.str(%rip), %rdi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi leaq -432(%rbp), %rsi movb $0, %al callq _scanf leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf movl $0, -420(%rbp) LBB0_1: ## =>This Loop Header: Depth=1 ## Child Loop BB0_3 Depth 2 movl -420(%rbp), %eax cmpl -432(%rbp), %eax jge LBB0_10 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl $0, -424(%rbp) LBB0_3: ## Parent Loop BB0_1 Depth=1 ## => This Inner Loop Header: Depth=2 movl -424(%rbp), %eax cmpl -432(%rbp), %eax jge LBB0_8 ## %bb.4: ## in Loop: Header=BB0_3 Depth=2 movslq -420(%rbp), %rax leaq -416(%rbp), %rsi imulq $40, %rax, %rax addq %rax, %rsi movslq -424(%rbp), %rax shlq $2, %rax addq %rax, %rsi leaq L_.str.1(%rip), %rdi movb $0, %al callq _scanf movslq -420(%rbp), %rcx leaq -416(%rbp), %rax imulq $40, %rcx, %rcx addq %rcx, %rax movslq -424(%rbp), %rcx cmpl $0, (%rax,%rcx,4) jne LBB0_6 ## %bb.5: ## in Loop: Header=BB0_3 Depth=2 movslq -420(%rbp), %rcx leaq -416(%rbp), %rax imulq $40, %rcx, %rcx addq %rcx, %rax movslq -424(%rbp), %rcx movl $9999, (%rax,%rcx,4) ## imm = 0x270F LBB0_6: ## in Loop: Header=BB0_3 Depth=2 jmp LBB0_7 LBB0_7: ## in Loop: Header=BB0_3 Depth=2 movl -424(%rbp), %eax addl $1, %eax movl %eax, -424(%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 -420(%rbp), %eax addl $1, %eax movl %eax, -420(%rbp) jmp LBB0_1 LBB0_10: leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf movl $0, -420(%rbp) LBB0_11: ## =>This Loop Header: Depth=1 ## Child Loop BB0_13 Depth 2 ## Child Loop BB0_15 Depth 3 movl -420(%rbp), %eax cmpl -432(%rbp), %eax jge LBB0_24 ## %bb.12: ## in Loop: Header=BB0_11 Depth=1 movl $0, -424(%rbp) LBB0_13: ## Parent Loop BB0_11 Depth=1 ## => This Loop Header: Depth=2 ## Child Loop BB0_15 Depth 3 movl -424(%rbp), %eax cmpl -432(%rbp), %eax jge LBB0_22 ## %bb.14: ## in Loop: Header=BB0_13 Depth=2 movl $0, -428(%rbp) LBB0_15: ## Parent Loop BB0_11 Depth=1 ## Parent Loop BB0_13 Depth=2 ## => This Inner Loop Header: Depth=3 movl -428(%rbp), %eax cmpl -432(%rbp), %eax jge LBB0_20 ## %bb.16: ## in Loop: Header=BB0_15 Depth=3 movslq -420(%rbp), %rcx leaq -416(%rbp), %rax imulq $40, %rcx, %rcx addq %rcx, %rax movslq -424(%rbp), %rcx movl (%rax,%rcx,4), %eax movslq -420(%rbp), %rdx leaq -416(%rbp), %rcx imulq $40, %rdx, %rdx addq %rdx, %rcx movslq -428(%rbp), %rdx movl (%rcx,%rdx,4), %ecx movslq -428(%rbp), %rsi leaq -416(%rbp), %rdx imulq $40, %rsi, %rsi addq %rsi, %rdx movslq -424(%rbp), %rsi addl (%rdx,%rsi,4), %ecx cmpl %ecx, %eax jle LBB0_18 ## %bb.17: ## in Loop: Header=BB0_15 Depth=3 movslq -420(%rbp), %rcx leaq -416(%rbp), %rax imulq $40, %rcx, %rcx addq %rcx, %rax movslq -428(%rbp), %rcx movl (%rax,%rcx,4), %edx movslq -428(%rbp), %rcx leaq -416(%rbp), %rax imulq $40, %rcx, %rcx addq %rcx, %rax movslq -424(%rbp), %rcx addl (%rax,%rcx,4), %edx movslq -420(%rbp), %rcx leaq -416(%rbp), %rax imulq $40, %rcx, %rcx addq %rcx, %rax movslq -424(%rbp), %rcx movl %edx, (%rax,%rcx,4) LBB0_18: ## in Loop: Header=BB0_15 Depth=3 jmp LBB0_19 LBB0_19: ## in Loop: Header=BB0_15 Depth=3 movl -428(%rbp), %eax addl $1, %eax movl %eax, -428(%rbp) jmp LBB0_15 LBB0_20: ## in Loop: Header=BB0_13 Depth=2 jmp LBB0_21 LBB0_21: ## in Loop: Header=BB0_13 Depth=2 movl -424(%rbp), %eax addl $1, %eax movl %eax, -424(%rbp) jmp LBB0_13 LBB0_22: ## in Loop: Header=BB0_11 Depth=1 jmp LBB0_23 LBB0_23: ## in Loop: Header=BB0_11 Depth=1 movl -420(%rbp), %eax addl $1, %eax movl %eax, -420(%rbp) jmp LBB0_11 LBB0_24: jmp LBB0_25 LBB0_25: ## =>This Loop Header: Depth=1 ## Child Loop BB0_27 Depth 2 cmpl $1, -436(%rbp) jne LBB0_33 ## %bb.26: ## in Loop: Header=BB0_25 Depth=1 leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi leaq -424(%rbp), %rsi movb $0, %al callq _scanf movl $0, -420(%rbp) LBB0_27: ## Parent Loop BB0_25 Depth=1 ## => This Inner Loop Header: Depth=2 movl -420(%rbp), %eax cmpl -432(%rbp), %eax jge LBB0_32 ## %bb.28: ## in Loop: Header=BB0_27 Depth=2 movl -420(%rbp), %eax cmpl -424(%rbp), %eax je LBB0_30 ## %bb.29: ## in Loop: Header=BB0_27 Depth=2 movl -420(%rbp), %esi movslq -424(%rbp), %rcx leaq -416(%rbp), %rax imulq $40, %rcx, %rcx addq %rcx, %rax movslq -420(%rbp), %rcx movl (%rax,%rcx,4), %edx leaq L_.str.5(%rip), %rdi movb $0, %al callq _printf LBB0_30: ## in Loop: Header=BB0_27 Depth=2 jmp LBB0_31 LBB0_31: ## in Loop: Header=BB0_27 Depth=2 movl -420(%rbp), %eax addl $1, %eax movl %eax, -420(%rbp) jmp LBB0_27 LBB0_32: ## in Loop: Header=BB0_25 Depth=1 leaq L_.str.6(%rip), %rdi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi leaq -436(%rbp), %rsi movb $0, %al callq _scanf jmp LBB0_25 LBB0_33: movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_35 ## %bb.34: addq $448, %rsp ## imm = 0x1C0 popq %rbp retq LBB0_35: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Enter no. of routers:" L_.str.1: ## @.str.1 .asciz "%d" L_.str.2: ## @.str.2 .asciz "Enter adjacency matrix for router:\n" L_.str.3: ## @.str.3 .asciz "After Sharing routing tables:\n" L_.str.4: ## @.str.4 .asciz "\n Enter the required router:" L_.str.5: ## @.str.5 .asciz "\nDistance to %d :%d\n" L_.str.6: ## @.str.6 .asciz "Want to give another input(Yes=1/No=0):" .subsections_via_symbols
the_stack_data/119084.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, #208 .cfi_def_cfa_offset 208 stp x29, x30, [sp, #192] ; 16-byte Folded Spill add x29, sp, #192 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #0 str w8, [sp, #52] ; 4-byte Folded Spill stur wzr, [x29, #-4] adrp x8, l___const.main.stu1@PAGE add x8, x8, l___const.main.stu1@PAGEOFF ldr q0, [x8] sub x10, x29, #48 stur q0, [x29, #-48] ldr q0, [x8, #16] stur q0, [x29, #-32] adrp x8, l___const.main.stu2@PAGE add x8, x8, l___const.main.stu2@PAGEOFF ldr q0, [x8] sub x9, x29, #80 stur q0, [x29, #-80] ldr q0, [x8, #16] stur q0, [x29, #-64] adrp x11, l___const.main.stu3@PAGE add x11, x11, l___const.main.stu3@PAGEOFF ldr q0, [x11] add x8, sp, #80 str q0, [sp, #80] ldr q0, [x11, #16] str q0, [sp, #96] str x10, [sp, #72] str x9, [sp, #64] str x8, [sp, #56] adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf ldur w8, [x29, #-48] ; implicit-def: $x11 mov x11, x8 ldur x10, [x29, #-40] ldur x9, [x29, #-32] ldur d0, [x29, #-24] mov x8, sp str x11, [x8] str x10, [x8, #8] str x9, [x8, #16] str d0, [x8, #24] adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF str x0, [sp, #40] ; 8-byte Folded Spill bl _printf ldr x0, [sp, #40] ; 8-byte Folded Reload ldr x8, [sp, #64] ldr w8, [x8] ; implicit-def: $x11 mov x11, x8 ldr x8, [sp, #64] ldr x10, [x8, #8] ldr x8, [sp, #64] ldr x9, [x8, #16] ldr x8, [sp, #64] ldr d0, [x8, #24] mov x8, sp str x11, [x8] str x10, [x8, #8] str x9, [x8, #16] str d0, [x8, #24] bl _printf ldr x0, [sp, #40] ; 8-byte Folded Reload ldr x8, [sp, #56] ldr w8, [x8] ; implicit-def: $x11 mov x11, x8 ldr x8, [sp, #56] ldr x10, [x8, #8] ldr x8, [sp, #56] ldr x9, [x8, #16] ldr x8, [sp, #56] ldr d0, [x8, #24] mov x8, sp str x11, [x8] str x10, [x8, #8] str x9, [x8, #16] str d0, [x8, #24] bl _printf ldr w0, [sp, #52] ; 4-byte Folded Reload ldp x29, x30, [sp, #192] ; 16-byte Folded Reload add sp, sp, #208 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "\347\247\213\346\241\220" l_.str.1: ; @.str.1 .asciz "\347\224\267" .section __DATA,__const .p2align 3 ; @__const.main.stu1 l___const.main.stu1: .long 1 ; 0x1 .space 4 .quad l_.str .quad l_.str.1 .quad 0x4057e00000000000 ; double 95.5 .section __TEXT,__cstring,cstring_literals l_.str.2: ; @.str.2 .asciz "\345\260\217\351\233\250" l_.str.3: ; @.str.3 .asciz "\345\245\263" .section __DATA,__const .p2align 3 ; @__const.main.stu2 l___const.main.stu2: .long 2 ; 0x2 .space 4 .quad l_.str.2 .quad l_.str.3 .quad 0x4056200000000000 ; double 88.5 .section __TEXT,__cstring,cstring_literals l_.str.4: ; @.str.4 .asciz "\347\247\213\351\246\231" .section __DATA,__const .p2align 3 ; @__const.main.stu3 l___const.main.stu3: .long 3 ; 0x3 .space 4 .quad l_.str.4 .quad l_.str.3 .quad 0x4057200000000000 ; double 92.5 .section __TEXT,__cstring,cstring_literals l_.str.5: ; @.str.5 .asciz "ID\t Name\t Sex\t Score\n" l_.str.6: ; @.str.6 .asciz "%d\t %s\t %s\t %.1f\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 movl $0, -4(%rbp) movq l___const.main.stu1(%rip), %rax movq %rax, -40(%rbp) movq l___const.main.stu1+8(%rip), %rax movq %rax, -32(%rbp) movq l___const.main.stu1+16(%rip), %rax movq %rax, -24(%rbp) movq l___const.main.stu1+24(%rip), %rax movq %rax, -16(%rbp) movq l___const.main.stu2(%rip), %rax movq %rax, -72(%rbp) movq l___const.main.stu2+8(%rip), %rax movq %rax, -64(%rbp) movq l___const.main.stu2+16(%rip), %rax movq %rax, -56(%rbp) movq l___const.main.stu2+24(%rip), %rax movq %rax, -48(%rbp) movq l___const.main.stu3(%rip), %rax movq %rax, -104(%rbp) movq l___const.main.stu3+8(%rip), %rax movq %rax, -96(%rbp) movq l___const.main.stu3+16(%rip), %rax movq %rax, -88(%rbp) movq l___const.main.stu3+24(%rip), %rax movq %rax, -80(%rbp) leaq -40(%rbp), %rax movq %rax, -112(%rbp) leaq -72(%rbp), %rax movq %rax, -120(%rbp) leaq -104(%rbp), %rax movq %rax, -128(%rbp) leaq L_.str.5(%rip), %rdi movb $0, %al callq _printf movl -40(%rbp), %esi movq -32(%rbp), %rdx movq -24(%rbp), %rcx movsd -16(%rbp), %xmm0 ## xmm0 = mem[0],zero leaq L_.str.6(%rip), %rdi movb $1, %al callq _printf movq -120(%rbp), %rax movl (%rax), %esi movq -120(%rbp), %rax movq 8(%rax), %rdx movq -120(%rbp), %rax movq 16(%rax), %rcx movq -120(%rbp), %rax movsd 24(%rax), %xmm0 ## xmm0 = mem[0],zero leaq L_.str.6(%rip), %rdi movb $1, %al callq _printf movq -128(%rbp), %rax movl (%rax), %esi movq -128(%rbp), %rax movq 8(%rax), %rdx movq -128(%rbp), %rax movq 16(%rax), %rcx movq -128(%rbp), %rax movsd 24(%rax), %xmm0 ## xmm0 = mem[0],zero leaq L_.str.6(%rip), %rdi movb $1, %al callq _printf xorl %eax, %eax addq $128, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "\347\247\213\346\241\220" L_.str.1: ## @.str.1 .asciz "\347\224\267" .section __DATA,__const .p2align 3 ## @__const.main.stu1 l___const.main.stu1: .long 1 ## 0x1 .space 4 .quad L_.str .quad L_.str.1 .quad 0x4057e00000000000 ## double 95.5 .section __TEXT,__cstring,cstring_literals L_.str.2: ## @.str.2 .asciz "\345\260\217\351\233\250" L_.str.3: ## @.str.3 .asciz "\345\245\263" .section __DATA,__const .p2align 3 ## @__const.main.stu2 l___const.main.stu2: .long 2 ## 0x2 .space 4 .quad L_.str.2 .quad L_.str.3 .quad 0x4056200000000000 ## double 88.5 .section __TEXT,__cstring,cstring_literals L_.str.4: ## @.str.4 .asciz "\347\247\213\351\246\231" .section __DATA,__const .p2align 3 ## @__const.main.stu3 l___const.main.stu3: .long 3 ## 0x3 .space 4 .quad L_.str.4 .quad L_.str.3 .quad 0x4057200000000000 ## double 92.5 .section __TEXT,__cstring,cstring_literals L_.str.5: ## @.str.5 .asciz "ID\t Name\t Sex\t Score\n" L_.str.6: ## @.str.6 .asciz "%d\t %s\t %s\t %.1f\n" .subsections_via_symbols
the_stack_data/82951468.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _my_putstr ; -- Begin function my_putstr .p2align 2 _my_putstr: ; @my_putstr .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] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #8] ldrsb w8, [x8] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #8] ldrsb w0, [x8] bl _my_putchar ldr x8, [sp, #8] add x8, x8, #1 str x8, [sp, #8] b LBB0_1 LBB0_3: mov w0, #0 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _my_putstr ## -- Begin function my_putstr .p2align 4, 0x90 _my_putstr: ## @my_putstr .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) LBB0_1: ## =>This Inner Loop Header: Depth=1 movq -8(%rbp), %rax movsbl (%rax), %eax cmpl $0, %eax je LBB0_3 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movq -8(%rbp), %rax movsbl (%rax), %edi callq _my_putchar movq -8(%rbp), %rax addq $1, %rax movq %rax, -8(%rbp) jmp LBB0_1 LBB0_3: xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/34513576.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl ___android_log_print ; -- Begin function __android_log_print .p2align 2 ___android_log_print: ; @__android_log_print .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, #48] str x1, [sp, #40] str x2, [sp, #32] add x9, sp, #24 add x8, x29, #16 str x8, [x9] ldr x0, [sp, #32] adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF mov x2, #15 bl _strncmp subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: str wzr, [sp, #52] b LBB0_3 LBB0_2: ldr x4, [sp, #32] ldr x5, [sp, #24] add x0, sp, #56 str x0, [sp, #16] ; 8-byte Folded Spill mov x3, #256 mov x1, x3 mov w2, #0 bl ___vsnprintf_chk ldr x0, [sp, #16] ; 8-byte Folded Reload bl _printf str w0, [sp, #52] b LBB0_3 LBB0_3: ldr w8, [sp, #52] str w8, [sp, #12] ; 4-byte Folded Spill ldur x9, [x29, #-24] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_5 b LBB0_4 LBB0_4: bl ___stack_chk_fail LBB0_5: 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 "This application" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl ___android_log_print ## -- Begin function __android_log_print .p2align 4, 0x90 ___android_log_print: ## @__android_log_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 $512, %rsp ## imm = 0x200 testb %al, %al je LBB0_7 ## %bb.6: movaps %xmm0, -448(%rbp) movaps %xmm1, -432(%rbp) movaps %xmm2, -416(%rbp) movaps %xmm3, -400(%rbp) movaps %xmm4, -384(%rbp) movaps %xmm5, -368(%rbp) movaps %xmm6, -352(%rbp) movaps %xmm7, -336(%rbp) LBB0_7: movq %r9, -456(%rbp) movq %r8, -464(%rbp) movq %rcx, -472(%rbp) movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl %edi, -296(%rbp) movq %rsi, -304(%rbp) movq %rdx, -312(%rbp) leaq -32(%rbp), %rax leaq -496(%rbp), %rcx movq %rcx, 16(%rax) leaq 16(%rbp), %rcx movq %rcx, 8(%rax) movl $48, 4(%rax) movl $24, (%rax) movq -312(%rbp), %rdi leaq L_.str(%rip), %rsi movl $15, %edx callq _strncmp cmpl $0, %eax jne LBB0_2 ## %bb.1: movl $0, -292(%rbp) jmp LBB0_3 LBB0_2: leaq -288(%rbp), %rdi movq -312(%rbp), %r8 leaq -32(%rbp), %r9 movl $256, %ecx ## imm = 0x100 xorl %edx, %edx movq %rcx, %rsi callq ___vsnprintf_chk leaq -32(%rbp), %rax leaq -288(%rbp), %rdi movb $0, %al callq _printf movl %eax, -292(%rbp) LBB0_3: movl -292(%rbp), %eax movl %eax, -500(%rbp) ## 4-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_5 ## %bb.4: movl -500(%rbp), %eax ## 4-byte Reload addq $512, %rsp ## imm = 0x200 popq %rbp retq LBB0_5: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "This application" .subsections_via_symbols
the_stack_data/6388100.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _makeEqual ; -- Begin function makeEqual .p2align 2 _makeEqual: ; @makeEqual .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] str x2, [sp, #24] str w3, [sp, #20] str wzr, [sp, #8] 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, #-12] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_10 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 str wzr, [sp, #12] b LBB0_3 LBB0_3: ; Parent Loop BB0_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #12] ldr w9, [sp, #20] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_8 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_3 Depth=2 ldur x8, [x29, #-8] ldrsw x9, [sp, #16] ldrsb w8, [x8, x9] ldr x9, [sp, #24] ldrsw x10, [sp, #12] ldrsb w9, [x9, x10] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #8] add w8, w8, #2 str w8, [sp, #8] ldr w9, [sp, #8] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldr x8, [sp, #24] ldrsw x9, [sp, #12] add x8, x8, x9 strb wzr, [x8] b LBB0_8 LBB0_6: ; in Loop: Header=BB0_3 Depth=2 b LBB0_7 LBB0_7: ; in Loop: Header=BB0_3 Depth=2 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] 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, #16] add w8, w8, #1 str w8, [sp, #16] b LBB0_1 LBB0_10: ldur w8, [x29, #-12] ldr w9, [sp, #20] add w8, w8, w9 ldr w9, [sp, #8] subs w0, w8, w9 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 mov w8, #0 str w8, [sp, #40] ; 4-byte Folded Spill stur wzr, [x29, #-4] mov x9, sp sub x8, x29, #8 str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF str x0, [sp, #32] ; 8-byte Folded Spill bl _scanf ldursw x8, [x29, #-8] lsr x0, x8, #0 bl _malloc stur x0, [x29, #-24] sub x8, x29, #12 str x8, [sp, #16] ; 8-byte Folded Spill ldursw x8, [x29, #-12] lsr x0, x8, #0 bl _malloc stur x0, [x29, #-32] ldur x8, [x29, #-24] mov x9, sp 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 ldr x8, [sp, #16] ; 8-byte Folded Reload ldr x0, [sp, #32] ; 8-byte Folded Reload mov x9, sp str x8, [x9] bl _scanf ldr x0, [sp, #24] ; 8-byte Folded Reload ldur x8, [x29, #-32] mov x9, sp str x8, [x9] bl _scanf ldur x0, [x29, #-24] ldur w1, [x29, #-8] ldur x2, [x29, #-32] ldur w3, [x29, #-12] bl _makeEqual mov x8, x0 ldr x0, [sp, #32] ; 8-byte Folded Reload stur w8, [x29, #-36] ldur w9, [x29, #-36] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] bl _printf ldr w0, [sp, #40] ; 4-byte Folded Reload ldp x29, x30, [sp, #80] ; 16-byte Folded Reload add sp, sp, #96 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d" l_.str.1: ; @.str.1 .asciz "%s" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _makeEqual ## -- Begin function makeEqual .p2align 4, 0x90 _makeEqual: ## @makeEqual .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) movq %rdx, -24(%rbp) movl %ecx, -28(%rbp) movl $0, -40(%rbp) movl $0, -32(%rbp) LBB0_1: ## =>This Loop Header: Depth=1 ## Child Loop BB0_3 Depth 2 movl -32(%rbp), %eax cmpl -12(%rbp), %eax jge LBB0_10 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl $0, -36(%rbp) LBB0_3: ## Parent Loop BB0_1 Depth=1 ## => This Inner Loop Header: Depth=2 movl -36(%rbp), %eax cmpl -28(%rbp), %eax jge LBB0_8 ## %bb.4: ## in Loop: Header=BB0_3 Depth=2 movq -8(%rbp), %rax movslq -32(%rbp), %rcx movsbl (%rax,%rcx), %eax movq -24(%rbp), %rcx movslq -36(%rbp), %rdx movsbl (%rcx,%rdx), %ecx cmpl %ecx, %eax jne LBB0_6 ## %bb.5: ## in Loop: Header=BB0_1 Depth=1 movl -40(%rbp), %eax addl $2, %eax movl %eax, -40(%rbp) movl -40(%rbp), %esi leaq L_.str(%rip), %rdi movb $0, %al callq _printf movq -24(%rbp), %rax movslq -36(%rbp), %rcx movb $0, (%rax,%rcx) jmp LBB0_8 LBB0_6: ## in Loop: Header=BB0_3 Depth=2 jmp LBB0_7 LBB0_7: ## in Loop: Header=BB0_3 Depth=2 movl -36(%rbp), %eax addl $1, %eax movl %eax, -36(%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 -32(%rbp), %eax addl $1, %eax movl %eax, -32(%rbp) jmp LBB0_1 LBB0_10: movl -12(%rbp), %eax addl -28(%rbp), %eax subl -40(%rbp), %eax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movl $0, -4(%rbp) leaq L_.str(%rip), %rdi leaq -8(%rbp), %rsi movb $0, %al callq _scanf movslq -8(%rbp), %rdi shlq $0, %rdi callq _malloc movq %rax, -24(%rbp) movslq -12(%rbp), %rdi shlq $0, %rdi callq _malloc movq %rax, -32(%rbp) movq -24(%rbp), %rsi leaq L_.str.1(%rip), %rdi movb $0, %al callq _scanf leaq L_.str(%rip), %rdi leaq -12(%rbp), %rsi movb $0, %al callq _scanf movq -32(%rbp), %rsi leaq L_.str.1(%rip), %rdi movb $0, %al callq _scanf movq -24(%rbp), %rdi movl -8(%rbp), %esi movq -32(%rbp), %rdx movl -12(%rbp), %ecx callq _makeEqual movl %eax, -36(%rbp) movl -36(%rbp), %esi leaq L_.str(%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 "%d" L_.str.1: ## @.str.1 .asciz "%s" .subsections_via_symbols
the_stack_data/1104146.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __DATA,__data .globl _ebc_disp ; @ebc_disp _ebc_disp: .asciz "\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\020\n\013\034\035\036\037*+7\0332\t\r5\026089:<>?@AB\031\032\277\f\27661\024CDEFGHIJ\0273./\b\030KLMNOPQRS=4,-\022\021\023T\200\201\202\203\204\205\206\207\210UVWXYZ[\211\212\213\214\215\216\217\220\221\\]^_`ab;\222\223\224\225\226\227\230\231cdefghijklmnopqrstuvwx\017\240\241\242\243\244\245\246\247\250yz{|\001\002\016\251\252\253\254\255\256\257\260\261}~\177\003\004\005\025\232\262\263\264\265\266\267\270\271\233\234\235\006\007\236 !\"#$%&'()\272\273\274\275\237" .globl _disp_ebc ; @disp_ebc _disp_ebc: .ascii "\000\316\317\335\336\337\355\356nLAB]M\320\300@~}\177a\340OjoZ[JCDEF\360\361\362\363\364\365\366\367\370\371GH{|lmP`KkzN_IQRS\241TyUVWXYbcdefghipqrstuvwx\200\212\213\214\215\216\217\220\232\233\234\235\236\237\240\252\253\254\255\256\257\260\261\262\263\264\265\266\267\270\271\272\273\274\275\276\277\312\313\314\315\332\333\334\201\202\203\204\205\206\207\210\211\221\222\223\224\225\226\227\230\231\242\243\244\245\246\247\250\251\341\352\353\354\357\376\301\302\303\304\305\306\307\310\311\321\322\323\324\325\326\327\330\331\342\343\344\345\346\347\350\351\372\373\374\375^\\" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __DATA,__data .globl _ebc_disp ## @ebc_disp .p2align 4 _ebc_disp: .asciz "\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\020\n\013\034\035\036\037*+7\0332\t\r5\026089:<>?@AB\031\032\277\f\27661\024CDEFGHIJ\0273./\b\030KLMNOPQRS=4,-\022\021\023T\200\201\202\203\204\205\206\207\210UVWXYZ[\211\212\213\214\215\216\217\220\221\\]^_`ab;\222\223\224\225\226\227\230\231cdefghijklmnopqrstuvwx\017\240\241\242\243\244\245\246\247\250yz{|\001\002\016\251\252\253\254\255\256\257\260\261}~\177\003\004\005\025\232\262\263\264\265\266\267\270\271\233\234\235\006\007\236 !\"#$%&'()\272\273\274\275\237" .globl _disp_ebc ## @disp_ebc .p2align 4 _disp_ebc: .ascii "\000\316\317\335\336\337\355\356nLAB]M\320\300@~}\177a\340OjoZ[JCDEF\360\361\362\363\364\365\366\367\370\371GH{|lmP`KkzN_IQRS\241TyUVWXYbcdefghipqrstuvwx\200\212\213\214\215\216\217\220\232\233\234\235\236\237\240\252\253\254\255\256\257\260\261\262\263\264\265\266\267\270\271\272\273\274\275\276\277\312\313\314\315\332\333\334\201\202\203\204\205\206\207\210\211\221\222\223\224\225\226\227\230\231\242\243\244\245\246\247\250\251\341\352\353\354\357\376\301\302\303\304\305\306\307\310\311\321\322\323\324\325\326\327\330\331\342\343\344\345\346\347\350\351\372\373\374\375^\\" .subsections_via_symbols
the_stack_data/89200665.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/237642934.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] mov x0, #4 bl _malloc str x0, [sp, #16] ldr x8, [sp, #16] subs x8, x8, #0 cset w9, eq ; 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, #6 adrp x3, l_.str.1@PAGE add x3, x3, l_.str.1@PAGEOFF bl ___assert_rtn LBB0_2: b LBB0_3 LBB0_3: ldr x8, [sp, #16] ldr s0, [x8] str s0, [sp, #12] ldr s0, [sp, #12] fcvt d0, s0 mov x8, sp str d0, [x8] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf ldur w0, [x29, #-4] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l___func__.main: ; @__func__.main .asciz "main" l_.str: ; @.str .asciz "97013217.c" l_.str.1: ; @.str.1 .asciz "p != NULL" l_.str.2: ; @.str.2 .asciz "f=%f\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl $0, -4(%rbp) movl $4, %edi callq _malloc movq %rax, -16(%rbp) cmpq $0, -16(%rbp) setne %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 $6, %edx callq ___assert_rtn LBB0_2: jmp LBB0_3 LBB0_3: movq -16(%rbp), %rax movss (%rax), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, -20(%rbp) movss -20(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 leaq L_.str.2(%rip), %rdi movb $1, %al callq _printf movl -4(%rbp), %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L___func__.main: ## @__func__.main .asciz "main" L_.str: ## @.str .asciz "97013217.c" L_.str.1: ## @.str.1 .asciz "p != NULL" L_.str.2: ## @.str.2 .asciz "f=%f\n" .subsections_via_symbols
the_stack_data/97013217.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str wzr, [sp, #12] mov w8, #5 str w8, [sp, #8] ldr w0, [sp, #8] add sp, sp, #16 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl $0, -4(%rbp) movl $5, -8(%rbp) movl -8(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/23573942.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _foo ; -- Begin function foo .p2align 2 _foo: ; @foo .cfi_startproc ; %bb.0: ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _foo ## -- Begin function foo .p2align 4, 0x90 _foo: ## @foo .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/187642912.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _print_var ; -- Begin function print_var .p2align 2 _print_var: ; @print_var .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, _var@PAGE ldr w9, [x8, _var@PAGEOFF] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _print_foo ; -- Begin function print_foo .p2align 2 _print_foo: ; @print_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 adrp x8, _foo@PAGE ldr w9, [x8, _foo@PAGEOFF] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .section __DATA,__data .globl _var ; @var .p2align 2 _var: .long 123 ; 0x7b .globl _foo ; @foo .p2align 2 _foo: .long 121 ; 0x79 .globl _var2 ; @var2 .p2align 2 _var2: .long 123 ; 0x7b .long 456 ; 0x1c8 .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "DLL sees var = %d\n" l_.str.1: ; @.str.1 .asciz "DLL sees foo = %d\n" .section __DATA,__data .globl _func_ptr ; @func_ptr .p2align 3 _func_ptr: .quad _print_foo .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _print_var ## -- Begin function print_var .p2align 4, 0x90 _print_var: ## @print_var .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl _var(%rip), %esi leaq L_.str(%rip), %rdi movb $0, %al callq _printf popq %rbp retq .cfi_endproc ## -- End function .globl _print_foo ## -- Begin function print_foo .p2align 4, 0x90 _print_foo: ## @print_foo .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl _foo(%rip), %esi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf popq %rbp retq .cfi_endproc ## -- End function .section __DATA,__data .globl _var ## @var .p2align 2 _var: .long 123 ## 0x7b .globl _foo ## @foo .p2align 2 _foo: .long 121 ## 0x79 .globl _var2 ## @var2 .p2align 2 _var2: .long 123 ## 0x7b .long 456 ## 0x1c8 .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "DLL sees var = %d\n" L_.str.1: ## @.str.1 .asciz "DLL sees foo = %d\n" .section __DATA,__data .globl _func_ptr ## @func_ptr .p2align 3 _func_ptr: .quad _print_foo .subsections_via_symbols
the_stack_data/87636917.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _numTimesAllBlue ; -- Begin function numTimesAllBlue .p2align 2 _numTimesAllBlue: ; @numTimesAllBlue .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, #24] str w1, [sp, #20] str wzr, [sp, #16] str wzr, [sp, #12] str wzr, [sp, #8] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #8] ldr w9, [sp, #20] 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, #16] ldr x9, [sp, #24] ldrsw x10, [sp, #8] ldr w9, [x9, x10, lsl #2] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #16] str w8, [sp, #4] ; 4-byte Folded Spill b LBB0_5 LBB0_4: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #24] ldrsw x9, [sp, #8] ldr w8, [x8, x9, lsl #2] str w8, [sp, #4] ; 4-byte Folded Spill b LBB0_5 LBB0_5: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #4] ; 4-byte Folded Reload str w8, [sp, #16] ldr w8, [sp, #16] ldr w9, [sp, #8] add w9, w9, #1 subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_7 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB0_7 LBB0_7: ; in Loop: Header=BB0_1 Depth=1 b LBB0_8 LBB0_8: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #8] add w8, w8, #1 str w8, [sp, #8] b LBB0_1 LBB0_9: ldr w0, [sp, #12] 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 _numTimesAllBlue ## -- Begin function numTimesAllBlue .p2align 4, 0x90 _numTimesAllBlue: ## @numTimesAllBlue .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) movl $0, -16(%rbp) movl $0, -20(%rbp) movl $0, -24(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movl -24(%rbp), %eax cmpl -12(%rbp), %eax jge LBB0_9 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl -16(%rbp), %eax movq -8(%rbp), %rcx movslq -24(%rbp), %rdx cmpl (%rcx,%rdx,4), %eax jle LBB0_4 ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movl -16(%rbp), %eax movl %eax, -28(%rbp) ## 4-byte Spill jmp LBB0_5 LBB0_4: ## in Loop: Header=BB0_1 Depth=1 movq -8(%rbp), %rax movslq -24(%rbp), %rcx movl (%rax,%rcx,4), %eax movl %eax, -28(%rbp) ## 4-byte Spill LBB0_5: ## in Loop: Header=BB0_1 Depth=1 movl -28(%rbp), %eax ## 4-byte Reload movl %eax, -16(%rbp) movl -16(%rbp), %eax movl -24(%rbp), %ecx addl $1, %ecx cmpl %ecx, %eax jne LBB0_7 ## %bb.6: ## in Loop: Header=BB0_1 Depth=1 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) LBB0_7: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_8 LBB0_8: ## in Loop: Header=BB0_1 Depth=1 movl -24(%rbp), %eax addl $1, %eax movl %eax, -24(%rbp) jmp LBB0_1 LBB0_9: movl -20(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/125863.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _square ; -- Begin function square .p2align 2 _square: ; @square .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x0, _mutexCount@GOTPAGE ldr x0, [x0, _mutexCount@GOTPAGEOFF] str x0, [sp, #8] ; 8-byte Folded Spill bl _pthread_mutex_lock ldr x0, [sp, #8] ; 8-byte Folded Reload adrp x9, _count@PAGE ldr w8, [x9, _count@PAGEOFF] ldr w10, [x9, _count@PAGEOFF] mul w8, w8, w10 str w8, [x9, _count@PAGEOFF] bl _pthread_mutex_unlock ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _inc_thread ; -- Begin function inc_thread .p2align 2 _inc_thread: ; @inc_thread .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] b LBB1_1 LBB1_1: ; =>This Inner Loop Header: Depth=1 adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf adrp x0, _mutexCount@GOTPAGE ldr x0, [x0, _mutexCount@GOTPAGEOFF] stur x0, [x29, #-16] ; 8-byte Folded Spill bl _pthread_mutex_lock adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf adrp x9, _count@PAGE str x9, [sp, #16] ; 8-byte Folded Spill ldr w8, [x9, _count@PAGEOFF] add w8, w8, #1 str w8, [x9, _count@PAGEOFF] bl _square ldr x8, [sp, #16] ; 8-byte Folded Reload ldr w9, [x8, _count@PAGEOFF] ; implicit-def: $x8 mov x8, x9 str x8, [sp, #24] ; 8-byte Folded Spill mov x9, sp str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf ldur x0, [x29, #-16] ; 8-byte Folded Reload bl _pthread_mutex_unlock adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf b LBB1_1 .cfi_endproc ; -- End function .globl _dec_thread ; -- Begin function dec_thread .p2align 2 _dec_thread: ; @dec_thread .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] b LBB2_1 LBB2_1: ; =>This Inner Loop Header: Depth=1 adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf adrp x0, _mutexCount@GOTPAGE ldr x0, [x0, _mutexCount@GOTPAGEOFF] str x0, [sp, #16] ; 8-byte Folded Spill bl _pthread_mutex_unlock adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf adrp x8, _count@PAGE ldr w9, [x8, _count@PAGEOFF] subs w9, w9, #1 str w9, [x8, _count@PAGEOFF] ldr w9, [x8, _count@PAGEOFF] ; implicit-def: $x8 mov x8, x9 str x8, [sp, #8] ; 8-byte Folded Spill mov x9, sp str x8, [x9] adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _printf ldr x0, [sp, #16] ; 8-byte Folded Reload bl _pthread_mutex_unlock adrp x0, l_.str.7@PAGE add x0, x0, l_.str.7@PAGEOFF bl _printf b LBB2_1 .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 str w8, [sp, #28] ; 4-byte Folded Spill stur wzr, [x29, #-4] stur w0, [x29, #-8] stur x1, [x29, #-16] adrp x0, l_.str.8@PAGE add x0, x0, l_.str.8@PAGEOFF bl _printf ldr w1, [sp, #28] ; 4-byte Folded Reload adrp x0, _mutexCount@GOTPAGE ldr x0, [x0, _mutexCount@GOTPAGEOFF] str x0, [sp, #16] ; 8-byte Folded Spill bl _pthread_mutexattr_settype adrp x0, _mutexCountAttr@GOTPAGE ldr x0, [x0, _mutexCountAttr@GOTPAGEOFF] str x0, [sp] ; 8-byte Folded Spill bl _pthread_mutexattr_init ldr x0, [sp] ; 8-byte Folded Reload mov w1, #2 bl _pthread_mutexattr_settype sub x0, x29, #24 mov x3, #0 str x3, [sp, #8] ; 8-byte Folded Spill mov x1, x3 adrp x2, _inc_thread@PAGE add x2, x2, _inc_thread@PAGEOFF bl _pthread_create ldr x3, [sp, #8] ; 8-byte Folded Reload add x0, sp, #32 mov x1, x3 adrp x2, _dec_thread@PAGE add x2, x2, _dec_thread@PAGEOFF bl _pthread_create ldr x1, [sp, #8] ; 8-byte Folded Reload ldur x0, [x29, #-24] bl _pthread_join ldr x1, [sp, #8] ; 8-byte Folded Reload ldr x0, [sp, #32] bl _pthread_join ldr x0, [sp, #16] ; 8-byte Folded Reload bl _pthread_mutex_destroy adrp x0, l_.str.9@PAGE add x0, x0, l_.str.9@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 __DATA,__data .globl _count ; @count .p2align 2 _count: .long 10 ; 0xa .comm _mutexCount,64,3 ; @mutexCount .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "IncThread: Grabbing mutex\n" l_.str.1: ; @.str.1 .asciz "IncThread: Inside CS\n" l_.str.2: ; @.str.2 .asciz "IncThread: %d\n" l_.str.3: ; @.str.3 .asciz "IncThread: Releasing mutex\n" l_.str.4: ; @.str.4 .asciz "DecThread: Grabbing mutex\n" l_.str.5: ; @.str.5 .asciz "Decthread: Inside CS/n" l_.str.6: ; @.str.6 .asciz "DecThread: %d\n" l_.str.7: ; @.str.7 .asciz "DecThread: Release mutex\n" l_.str.8: ; @.str.8 .asciz "Main thread: Before creating hello thread\n" .comm _mutexCountAttr,64,3 ; @mutexCountAttr l_.str.9: ; @.str.9 .asciz "Main thread: After creating hello thread\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _square ## -- Begin function square .p2align 4, 0x90 _square: ## @square .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq _mutexCount@GOTPCREL(%rip), %rdi callq _pthread_mutex_lock movl _count(%rip), %eax imull _count(%rip), %eax movl %eax, _count(%rip) movq _mutexCount@GOTPCREL(%rip), %rdi callq _pthread_mutex_unlock popq %rbp retq .cfi_endproc ## -- End function .globl _inc_thread ## -- Begin function inc_thread .p2align 4, 0x90 _inc_thread: ## @inc_thread .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) LBB1_1: ## =>This Inner Loop Header: Depth=1 leaq L_.str(%rip), %rdi movb $0, %al callq _printf movq _mutexCount@GOTPCREL(%rip), %rdi callq _pthread_mutex_lock leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf movl _count(%rip), %eax addl $1, %eax movl %eax, -12(%rbp) ## 4-byte Spill movl %eax, _count(%rip) callq _square movl _count(%rip), %esi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf movq _mutexCount@GOTPCREL(%rip), %rdi callq _pthread_mutex_unlock leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf jmp LBB1_1 .cfi_endproc ## -- End function .globl _dec_thread ## -- Begin function dec_thread .p2align 4, 0x90 _dec_thread: ## @dec_thread .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) LBB2_1: ## =>This Inner Loop Header: Depth=1 leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf movq _mutexCount@GOTPCREL(%rip), %rdi callq _pthread_mutex_unlock leaq L_.str.5(%rip), %rdi movb $0, %al callq _printf movl _count(%rip), %eax addl $-1, %eax movl %eax, -12(%rbp) ## 4-byte Spill movl %eax, _count(%rip) movl _count(%rip), %esi leaq L_.str.6(%rip), %rdi movb $0, %al callq _printf movq _mutexCount@GOTPCREL(%rip), %rdi callq _pthread_mutex_unlock leaq L_.str.7(%rip), %rdi movb $0, %al callq _printf jmp LBB2_1 .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl $0, -4(%rbp) movl %edi, -8(%rbp) movq %rsi, -16(%rbp) leaq L_.str.8(%rip), %rdi movb $0, %al callq _printf movq _mutexCount@GOTPCREL(%rip), %rdi xorl %esi, %esi callq _pthread_mutexattr_settype movq _mutexCountAttr@GOTPCREL(%rip), %rdi callq _pthread_mutexattr_init movq _mutexCountAttr@GOTPCREL(%rip), %rdi movl $2, %esi callq _pthread_mutexattr_settype leaq -24(%rbp), %rdi xorl %eax, %eax movl %eax, %ecx leaq _inc_thread(%rip), %rdx movq %rcx, %rsi callq _pthread_create leaq -32(%rbp), %rdi xorl %eax, %eax movl %eax, %ecx leaq _dec_thread(%rip), %rdx movq %rcx, %rsi callq _pthread_create movq -24(%rbp), %rdi xorl %eax, %eax movl %eax, %esi callq _pthread_join movq -32(%rbp), %rdi xorl %eax, %eax movl %eax, %esi callq _pthread_join movq _mutexCount@GOTPCREL(%rip), %rdi callq _pthread_mutex_destroy leaq L_.str.9(%rip), %rdi movb $0, %al callq _printf xorl %eax, %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __DATA,__data .globl _count ## @count .p2align 2 _count: .long 10 ## 0xa .comm _mutexCount,64,3 ## @mutexCount .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "IncThread: Grabbing mutex\n" L_.str.1: ## @.str.1 .asciz "IncThread: Inside CS\n" L_.str.2: ## @.str.2 .asciz "IncThread: %d\n" L_.str.3: ## @.str.3 .asciz "IncThread: Releasing mutex\n" L_.str.4: ## @.str.4 .asciz "DecThread: Grabbing mutex\n" L_.str.5: ## @.str.5 .asciz "Decthread: Inside CS/n" L_.str.6: ## @.str.6 .asciz "DecThread: %d\n" L_.str.7: ## @.str.7 .asciz "DecThread: Release mutex\n" L_.str.8: ## @.str.8 .asciz "Main thread: Before creating hello thread\n" .comm _mutexCountAttr,64,3 ## @mutexCountAttr L_.str.9: ## @.str.9 .asciz "Main thread: After creating hello thread\n" .subsections_via_symbols
the_stack_data/151706996.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/40559.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] ldr w8, [x8] ; kill: def $x8 killed $w8 mov x9, #54700 movk x9, #781, lsl #16 orr x8, x8, x9 lsr x8, x8, #3 ; kill: def $w8 killed $w8 killed $x8 str w8, [sp, #12] ldr w8, [sp, #12] lsr w8, w8, #3 ands w8, w8, #0x1 cset w8, eq tbnz w8, #0, LBB0_5 b LBB0_1 LBB0_1: ldr w8, [sp, #12] lsr w8, w8, #4 ands w8, w8, #0x1 cset w8, eq tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: ldr w8, [sp, #12] lsr w8, w8, #1 and w8, w8, #0x7 ; kill: def $x8 killed $w8 orr x9, x8, #0x1 ldr w8, [sp, #12] ; kill: def $w9 killed $w9 killed $x9 lsr w8, w8, w9 str w8, [sp, #12] b LBB0_4 LBB0_3: ldrb w8, [sp, #12] strb w8, [sp, #11] ldrb w8, [sp, #15] strb w8, [sp, #12] ldrb w8, [sp, #11] strb w8, [sp, #15] ldr w8, [sp, #12] lsr w8, w8, #3 and w8, w8, #0x7 ; kill: def $x8 killed $w8 orr x9, x8, #0x1 ldr w8, [sp, #12] ; kill: def $w9 killed $w9 killed $x9 lsl w8, w8, w9 str w8, [sp, #12] b LBB0_4 LBB0_4: b LBB0_6 LBB0_5: ldr w8, [sp, #12] lsr w8, w8, #3 and w8, w8, #0x7 ; kill: def $x8 killed $w8 orr x9, x8, #0x1 ldr w8, [sp, #12] ; kill: def $w9 killed $w9 killed $x9 lsr w8, w8, w9 str w8, [sp, #12] ldr w8, [sp, #12] lsr w8, w8, #4 and w8, w8, #0x7 ; kill: def $x8 killed $w8 orr x9, x8, #0x1 ldr w8, [sp, #12] ; kill: def $w9 killed $w9 killed $x9 lsl w8, w8, w9 str w8, [sp, #12] b LBB0_6 LBB0_6: ldr w8, [sp, #12] ; kill: def $x8 killed $w8 mov x9, #60890 movk x9, #14069, lsl #16 orr x8, x8, x9 ldr x9, [sp, #16] ; kill: def $w8 killed $w8 killed $x8 str w8, [x9] add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _megaInit ; -- Begin function megaInit .p2align 2 _megaInit: ; @megaInit .cfi_startproc ; %bb.0: ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #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, LBB2_2 b LBB2_1 LBB2_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 LBB2_2: b LBB2_3 LBB2_3: str wzr, [sp, #20] b LBB2_4 LBB2_4: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #20] subs w8, w8, #1 cset w8, ge tbnz w8, #0, LBB2_6 b LBB2_5 LBB2_5: ; in Loop: Header=BB2_4 Depth=1 ldur x8, [x29, #-16] ldr w9, [sp, #20] add w9, w9, #1 ldr x0, [x8, w9, sxtw #3] mov x1, #0 mov w2, #10 bl _strtoul mov x8, x0 str w8, [sp, #16] ldr w8, [sp, #16] ldrsw x10, [sp, #20] sub x9, x29, #20 str w8, [x9, x10, lsl #2] ldr w8, [sp, #20] add w8, w8, #1 str w8, [sp, #20] b LBB2_4 LBB2_6: sub x0, x29, #20 add x1, sp, #24 bl _RandomFunc ldr w8, [sp, #24] mov w9, #16818 movk w9, #64734, lsl #16 subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB2_8 b LBB2_7 LBB2_7: adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf b LBB2_9 LBB2_8: b LBB2_9 LBB2_9: str wzr, [sp, #12] b LBB2_10 LBB2_10: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #12] subs w8, w8, #1 cset w8, ge tbnz w8, #0, LBB2_12 b LBB2_11 LBB2_11: ; in Loop: Header=BB2_10 Depth=1 ldrsw x9, [sp, #12] add x8, sp, #24 ldr w9, [x8, x9, lsl #2] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB2_10 LBB2_12: 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 "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 movl (%rax), %eax ## kill: def $rax killed $eax orq $51238316, %rax ## imm = 0x30DD5AC shrq $3, %rax ## kill: def $eax killed $eax killed $rax movl %eax, -20(%rbp) movl -20(%rbp), %eax shrl $3, %eax andl $1, %eax cmpl $0, %eax je LBB0_5 ## %bb.1: movl -20(%rbp), %eax shrl $4, %eax andl $1, %eax cmpl $0, %eax je LBB0_3 ## %bb.2: movl -20(%rbp), %eax shrl $1, %eax andl $7, %eax movl %eax, %eax movl %eax, %ecx orq $1, %rcx movl -20(%rbp), %eax ## kill: def $ecx killed $ecx killed $rcx ## kill: def $cl killed $ecx shrl %cl, %eax movl %eax, -20(%rbp) jmp LBB0_4 LBB0_3: movb -20(%rbp), %al movb %al, -21(%rbp) movb -17(%rbp), %al movb %al, -20(%rbp) movb -21(%rbp), %al movb %al, -17(%rbp) movl -20(%rbp), %eax shrl $3, %eax andl $7, %eax movl %eax, %eax movl %eax, %ecx orq $1, %rcx movl -20(%rbp), %eax ## kill: def $ecx killed $ecx killed $rcx ## kill: def $cl killed $ecx shll %cl, %eax movl %eax, -20(%rbp) LBB0_4: jmp LBB0_6 LBB0_5: movl -20(%rbp), %eax shrl $3, %eax andl $7, %eax movl %eax, %eax movl %eax, %ecx orq $1, %rcx movl -20(%rbp), %eax ## kill: def $ecx killed $ecx killed $rcx ## kill: def $cl killed $ecx shrl %cl, %eax movl %eax, -20(%rbp) movl -20(%rbp), %eax shrl $4, %eax andl $7, %eax movl %eax, %eax movl %eax, %ecx orq $1, %rcx movl -20(%rbp), %eax ## kill: def $ecx killed $ecx killed $rcx ## kill: def $cl killed $ecx shll %cl, %eax movl %eax, -20(%rbp) LBB0_6: movl -20(%rbp), %eax ## kill: def $rax killed $eax orq $922086874, %rax ## imm = 0x36F5EDDA movl %eax, %ecx movq -16(%rbp), %rax movl %ecx, (%rax) popq %rbp retq .cfi_endproc ## -- End function .globl _megaInit ## -- Begin function megaInit .p2align 4, 0x90 _megaInit: ## @megaInit .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movl $0, -4(%rbp) movl %edi, -8(%rbp) movq %rsi, -16(%rbp) callq _megaInit cmpl $2, -8(%rbp) je LBB2_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 LBB2_2: jmp LBB2_3 LBB2_3: movl $0, -28(%rbp) LBB2_4: ## =>This Inner Loop Header: Depth=1 cmpl $1, -28(%rbp) jge LBB2_6 ## %bb.5: ## in Loop: Header=BB2_4 Depth=1 movq -16(%rbp), %rax movl -28(%rbp), %ecx addl $1, %ecx movslq %ecx, %rcx movq (%rax,%rcx,8), %rdi xorl %eax, %eax movl %eax, %esi movl $10, %edx callq _strtoul ## kill: def $eax killed $eax killed $rax movl %eax, -32(%rbp) movl -32(%rbp), %ecx movslq -28(%rbp), %rax movl %ecx, -20(%rbp,%rax,4) movl -28(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) jmp LBB2_4 LBB2_6: leaq -20(%rbp), %rdi leaq -24(%rbp), %rsi callq _RandomFunc cmpl $-52543054, -24(%rbp) ## imm = 0xFCDE41B2 jne LBB2_8 ## %bb.7: leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf jmp LBB2_9 LBB2_8: jmp LBB2_9 LBB2_9: movl $0, -36(%rbp) LBB2_10: ## =>This Inner Loop Header: Depth=1 cmpl $1, -36(%rbp) jge LBB2_12 ## %bb.11: ## in Loop: Header=BB2_10 Depth=1 movslq -36(%rbp), %rax movl -24(%rbp,%rax,4), %esi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf movl -36(%rbp), %eax addl $1, %eax movl %eax, -36(%rbp) jmp LBB2_10 LBB2_12: movl -4(%rbp), %eax addq $48, %rsp 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/165769249.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/86696.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] bl ___VERIFIER_nondet_int str w0, [sp, #8] bl ___VERIFIER_nondet_int str w0, [sp, #4] ldr w8, [sp, #8] subs w8, w8, #0 cset w8, lt tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: b LBB0_3 LBB0_2: mov w8, #-1 str w8, [sp, #4] b LBB0_3 LBB0_3: b LBB0_4 LBB0_4: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #4] subs w8, w8, #0 cset w8, lt tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_4 Depth=1 bl ___VERIFIER_nondet_int str w0, [sp, #4] b LBB0_4 LBB0_6: mov w8, #2 str w8, [sp, #4] mov w0, #0 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) callq ___VERIFIER_nondet_int movl %eax, -8(%rbp) callq ___VERIFIER_nondet_int movl %eax, -12(%rbp) cmpl $0, -8(%rbp) jl LBB0_2 ## %bb.1: jmp LBB0_3 LBB0_2: movl $-1, -12(%rbp) LBB0_3: jmp LBB0_4 LBB0_4: ## =>This Inner Loop Header: Depth=1 cmpl $0, -12(%rbp) jl LBB0_6 ## %bb.5: ## in Loop: Header=BB0_4 Depth=1 callq ___VERIFIER_nondet_int movl %eax, -12(%rbp) jmp LBB0_4 LBB0_6: movl $2, -12(%rbp) xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/44526.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _foo ; -- Begin function foo .p2align 2 _foo: ; @foo .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #12] str w1, [sp, #8] ldr w8, [sp, #12] ldr w9, [sp, #8] subs w8, w8, w9 subs w8, w8, #0 cset w8, lt 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 _foo ## -- Begin function foo .p2align 4, 0x90 _foo: ## @foo .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, -4(%rbp) movl %esi, -8(%rbp) movl -4(%rbp), %eax subl -8(%rbp), %eax cmpl $0, %eax setl %al andb $1, %al movzbl %al, %eax popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/86076335.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _print_array ; -- Begin function print_array .p2align 2 _print_array: ; @print_array .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] stur w1, [x29, #-12] str w2, [sp, #16] ldur w8, [x29, #-12] subs w8, w8, #0 cset w8, lt tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: ldr w8, [sp, #16] subs w8, w8, #0 cset w8, ge tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf b LBB0_10 LBB0_3: ldur w8, [x29, #-12] ldr w9, [sp, #16] subs w8, w8, w9 cset w8, lt tbnz w8, #0, LBB0_5 b LBB0_4 LBB0_4: adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf b LBB0_10 LBB0_5: b LBB0_6 LBB0_6: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-12] ldr w9, [sp, #16] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_9 b LBB0_7 LBB0_7: ; in Loop: Header=BB0_6 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.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf b LBB0_8 LBB0_8: ; in Loop: Header=BB0_6 Depth=1 ldur w8, [x29, #-12] add w8, w8, #1 stur w8, [x29, #-12] b LBB0_6 LBB0_9: adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf b LBB0_10 LBB0_10: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _add_one_to_all ; -- Begin function add_one_to_all .p2align 2 _add_one_to_all: ; @add_one_to_all .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] str w1, [sp, #4] str wzr, [sp] 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, #8] ldrsw x9, [sp] add x9, x8, x9, lsl #2 ldr w8, [x9] add w8, w8, #1 str w8, [x9] 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, #16 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #80 .cfi_def_cfa_offset 80 stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp, #64 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] str wzr, [sp, #28] str wzr, [sp, #24] adrp x8, l___const.main.integers@PAGE add x8, x8, l___const.main.integers@PAGEOFF ldr q0, [x8] add x9, sp, #32 str x9, [sp, #16] ; 8-byte Folded Spill str q0, [sp, #32] ldr w8, [x8, #16] str w8, [sp, #48] adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf ldr x0, [sp, #16] ; 8-byte Folded Reload ldr w1, [sp, #24] mov w2, #5 str w2, [sp, #12] ; 4-byte Folded Spill bl _print_array ldr x0, [sp, #16] ; 8-byte Folded Reload ldr w1, [sp, #12] ; 4-byte Folded Reload bl _add_one_to_all adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf ldr w2, [sp, #12] ; 4-byte Folded Reload ldr x0, [sp, #16] ; 8-byte Folded Reload ldr w1, [sp, #24] bl _print_array ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB2_2 b LBB2_1 LBB2_1: bl ___stack_chk_fail LBB2_2: mov w0, #0 ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Error in array dimensions\n" l_.str.1: ; @.str.1 .asciz "Error: index exceeds array bounds\n" l_.str.2: ; @.str.2 .asciz "%i " l_.str.3: ; @.str.3 .asciz "\n" .section __TEXT,__const .p2align 2 ; @__const.main.integers l___const.main.integers: .long 19 ; 0x13 .long 91 ; 0x5b .long 4 ; 0x4 .long 8 ; 0x8 .long 10 ; 0xa .section __TEXT,__cstring,cstring_literals l_.str.4: ; @.str.4 .asciz "The array before adding:\n" l_.str.5: ; @.str.5 .asciz "The array after adding:\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _print_array ## -- Begin function print_array .p2align 4, 0x90 _print_array: ## @print_array .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) movl %edx, -16(%rbp) cmpl $0, -12(%rbp) jl LBB0_2 ## %bb.1: cmpl $0, -16(%rbp) jge LBB0_3 LBB0_2: leaq L_.str(%rip), %rdi movb $0, %al callq _printf jmp LBB0_10 LBB0_3: movl -12(%rbp), %eax cmpl -16(%rbp), %eax jl LBB0_5 ## %bb.4: leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf jmp LBB0_10 LBB0_5: jmp LBB0_6 LBB0_6: ## =>This Inner Loop Header: Depth=1 movl -12(%rbp), %eax cmpl -16(%rbp), %eax jge LBB0_9 ## %bb.7: ## in Loop: Header=BB0_6 Depth=1 movq -8(%rbp), %rax movslq -12(%rbp), %rcx movl (%rax,%rcx,4), %esi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf ## %bb.8: ## in Loop: Header=BB0_6 Depth=1 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB0_6 LBB0_9: leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf LBB0_10: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _add_one_to_all ## -- Begin function add_one_to_all .p2align 4, 0x90 _add_one_to_all: ## @add_one_to_all .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) movl $0, -16(%rbp) movl $0, -16(%rbp) LBB1_1: ## =>This Inner Loop Header: Depth=1 movl -16(%rbp), %eax cmpl -12(%rbp), %eax jge LBB1_4 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 movq -8(%rbp), %rax movslq -16(%rbp), %rcx movl (%rax,%rcx,4), %edx addl $1, %edx movl %edx, (%rax,%rcx,4) ## %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: 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 movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -36(%rbp) movl $0, -40(%rbp) movq l___const.main.integers(%rip), %rax movq %rax, -32(%rbp) movq l___const.main.integers+8(%rip), %rax movq %rax, -24(%rbp) movl l___const.main.integers+16(%rip), %eax movl %eax, -16(%rbp) leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf leaq -32(%rbp), %rdi movl -40(%rbp), %esi movl $5, %edx callq _print_array leaq -32(%rbp), %rdi movl $5, %esi callq _add_one_to_all leaq L_.str.5(%rip), %rdi movb $0, %al callq _printf leaq -32(%rbp), %rdi movl -40(%rbp), %esi movl $5, %edx callq _print_array movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB2_2 ## %bb.1: xorl %eax, %eax addq $48, %rsp popq %rbp retq LBB2_2: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Error in array dimensions\n" L_.str.1: ## @.str.1 .asciz "Error: index exceeds array bounds\n" L_.str.2: ## @.str.2 .asciz "%i " L_.str.3: ## @.str.3 .asciz "\n" .section __TEXT,__const .p2align 4 ## @__const.main.integers l___const.main.integers: .long 19 ## 0x13 .long 91 ## 0x5b .long 4 ## 0x4 .long 8 ## 0x8 .long 10 ## 0xa .section __TEXT,__cstring,cstring_literals L_.str.4: ## @.str.4 .asciz "The array before adding:\n" L_.str.5: ## @.str.5 .asciz "The array after adding:\n" .subsections_via_symbols
the_stack_data/518611.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _test_switch ; -- Begin function test_switch .p2align 2 _test_switch: ; @test_switch .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, _global_v@PAGE ldr w8, [x8, _global_v@PAGEOFF] str w8, [sp, #8] ; 4-byte Folded Spill subs w8, w8, #1 cset w8, eq tbnz w8, #0, LBB0_3 b LBB0_1 LBB0_1: ldr w8, [sp, #8] ; 4-byte Folded Reload subs w8, w8, #5 cset w8, eq tbnz w8, #0, LBB0_4 b LBB0_2 LBB0_2: ldr w8, [sp, #8] ; 4-byte Folded Reload subs w8, w8, #7 cset w8, eq tbnz w8, #0, LBB0_5 b LBB0_6 LBB0_3: adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf b LBB0_7 LBB0_4: adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf b LBB0_7 LBB0_5: adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf b LBB0_7 LBB0_6: adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf b LBB0_7 LBB0_7: ldur w0, [x29, #-4] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur w0, [x29, #-4] str x1, [sp] bl _test_switch mov w0, #0 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .section __DATA,__data .globl _global_v ; @global_v .p2align 2 _global_v: .long 5 ; 0x5 .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "1" l_.str.1: ; @.str.1 .asciz "5" l_.str.2: ; @.str.2 .asciz "7" l_.str.3: ; @.str.3 .asciz "fail" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _test_switch ## -- Begin function test_switch .p2align 4, 0x90 _test_switch: ## @test_switch .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 _global_v(%rip), %eax movl %eax, -8(%rbp) ## 4-byte Spill subl $1, %eax je LBB0_1 jmp LBB0_6 LBB0_6: movl -8(%rbp), %eax ## 4-byte Reload subl $5, %eax je LBB0_2 jmp LBB0_7 LBB0_7: movl -8(%rbp), %eax ## 4-byte Reload subl $7, %eax je LBB0_3 jmp LBB0_4 LBB0_1: leaq L_.str(%rip), %rdi movb $0, %al callq _printf jmp LBB0_5 LBB0_2: leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf jmp LBB0_5 LBB0_3: leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf jmp LBB0_5 LBB0_4: leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf LBB0_5: movl -4(%rbp), %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl %edi, -4(%rbp) movq %rsi, -16(%rbp) callq _test_switch xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __DATA,__data .globl _global_v ## @global_v .p2align 2 _global_v: .long 5 ## 0x5 .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "1" L_.str.1: ## @.str.1 .asciz "5" L_.str.2: ## @.str.2 .asciz "7" L_.str.3: ## @.str.3 .asciz "fail" .subsections_via_symbols
the_stack_data/173577176.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #80 .cfi_def_cfa_offset 80 stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp, #64 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] mov x9, sp sub x8, x29, #8 str x8, [x9] 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 s0, [x29, #-8] ldur s1, [x29, #-12] fmov s2, #3.00000000 fmul s2, s1, s2 fmov s1, #2.00000000 fmadd s2, s0, s1, s2 ldur s0, [x29, #-16] fmov s1, #4.00000000 fmadd s0, s0, s1, s2 ldur s1, [x29, #-20] fadd s0, s0, s1 fmov s1, #10.00000000 fdiv s0, s0, s1 stur s0, [x29, #-24] ldur s0, [x29, #-24] 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 s0, [x29, #-24] fcvt d0, s0 fmov d1, #7.00000000 fcmp d0, d1 cset w8, lt tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf b LBB0_12 LBB0_2: ldur s0, [x29, #-24] fcvt d0, s0 fmov d1, #5.00000000 fcmp d0, d1 cset w8, pl tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf b LBB0_11 LBB0_4: ldur s0, [x29, #-24] fcvt d0, s0 fmov d1, #5.00000000 fcmp d0, d1 cset w8, lt tbnz w8, #0, LBB0_10 b LBB0_5 LBB0_5: ldur s0, [x29, #-24] fcvt d0, s0 fmov d1, #7.00000000 fcmp d0, d1 cset w8, pl tbnz w8, #0, LBB0_10 b LBB0_6 LBB0_6: adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@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 s0, [x29, #-28] fcvt d0, s0 mov x8, sp str d0, [x8] adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _printf ldur s0, [x29, #-24] ldur s1, [x29, #-28] fadd s0, s0, s1 fmov s1, #2.00000000 fdiv s0, s0, s1 stur s0, [x29, #-24] ldur s0, [x29, #-24] fcvt d0, s0 fmov d1, #5.00000000 fcmp d0, d1 cset w8, lt tbnz w8, #0, LBB0_8 b LBB0_7 LBB0_7: adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf b LBB0_9 LBB0_8: adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf b LBB0_9 LBB0_9: ldur s0, [x29, #-24] fcvt d0, s0 mov x8, sp str d0, [x8] adrp x0, l_.str.7@PAGE add x0, x0, l_.str.7@PAGEOFF bl _printf b LBB0_10 LBB0_10: b LBB0_11 LBB0_11: b LBB0_12 LBB0_12: ldur w0, [x29, #-4] ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%f %f %f %f" l_.str.1: ; @.str.1 .asciz "Media: %.1f\n" l_.str.2: ; @.str.2 .asciz "Aluno aprovado.\n" l_.str.3: ; @.str.3 .asciz "Aluno reprovado.\n" l_.str.4: ; @.str.4 .asciz "Aluno em exame.\n" l_.str.5: ; @.str.5 .asciz "%f" l_.str.6: ; @.str.6 .asciz "Nota do exame: %.1f\n" l_.str.7: ; @.str.7 .asciz "Media final: %.1f\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __TEXT,__literal8,8byte_literals .p2align 3 ## -- Begin function main LCPI0_0: .quad 0x401c000000000000 ## double 7 LCPI0_4: .quad 0x4014000000000000 ## double 5 .section __TEXT,__literal4,4byte_literals .p2align 2 LCPI0_1: .long 0x41200000 ## float 10 LCPI0_2: .long 0x40800000 ## float 4 LCPI0_3: .long 0x40400000 ## float 3 LCPI0_5: .long 0x40000000 ## float 2 .section __TEXT,__text,regular,pure_instructions .globl _main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl $0, -4(%rbp) leaq L_.str(%rip), %rdi leaq -8(%rbp), %rsi leaq -12(%rbp), %rdx leaq -16(%rbp), %rcx leaq -20(%rbp), %r8 movb $0, %al callq _scanf movss -8(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero movss LCPI0_3(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero mulss -12(%rbp), %xmm0 addss %xmm1, %xmm1 addss %xmm0, %xmm1 movss -16(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss LCPI0_2(%rip), %xmm2 ## xmm2 = mem[0],zero,zero,zero mulss %xmm2, %xmm0 addss %xmm1, %xmm0 addss -20(%rbp), %xmm0 movss LCPI0_1(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero divss %xmm1, %xmm0 movss %xmm0, -24(%rbp) movss -24(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 leaq L_.str.1(%rip), %rdi movb $1, %al callq _printf movss -24(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movsd LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero ucomisd %xmm1, %xmm0 jb LBB0_2 ## %bb.1: leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf jmp LBB0_12 LBB0_2: movss -24(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm1 movsd LCPI0_4(%rip), %xmm0 ## xmm0 = mem[0],zero ucomisd %xmm1, %xmm0 jbe LBB0_4 ## %bb.3: leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf jmp LBB0_11 LBB0_4: movss -24(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movsd LCPI0_4(%rip), %xmm1 ## xmm1 = mem[0],zero ucomisd %xmm1, %xmm0 jb LBB0_10 ## %bb.5: movss -24(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm1 movsd LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero ucomisd %xmm1, %xmm0 jbe LBB0_10 ## %bb.6: leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf leaq L_.str.5(%rip), %rdi leaq -28(%rbp), %rsi movb $0, %al callq _scanf movss -28(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 leaq L_.str.6(%rip), %rdi movb $1, %al callq _printf movss -24(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero addss -28(%rbp), %xmm0 movss LCPI0_5(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero divss %xmm1, %xmm0 movss %xmm0, -24(%rbp) movss -24(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movsd LCPI0_4(%rip), %xmm1 ## xmm1 = mem[0],zero ucomisd %xmm1, %xmm0 jb LBB0_8 ## %bb.7: leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf jmp LBB0_9 LBB0_8: leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf LBB0_9: movss -24(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 leaq L_.str.7(%rip), %rdi movb $1, %al callq _printf LBB0_10: jmp LBB0_11 LBB0_11: jmp LBB0_12 LBB0_12: movl -4(%rbp), %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%f %f %f %f" L_.str.1: ## @.str.1 .asciz "Media: %.1f\n" L_.str.2: ## @.str.2 .asciz "Aluno aprovado.\n" L_.str.3: ## @.str.3 .asciz "Aluno reprovado.\n" L_.str.4: ## @.str.4 .asciz "Aluno em exame.\n" L_.str.5: ## @.str.5 .asciz "%f" L_.str.6: ## @.str.6 .asciz "Nota do exame: %.1f\n" L_.str.7: ## @.str.7 .asciz "Media final: %.1f\n" .subsections_via_symbols
the_stack_data/492363.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl ___VERIFIER_nondet_bool ; -- Begin function __VERIFIER_nondet_bool .p2align 2 ___VERIFIER_nondet_bool: ; @__VERIFIER_nondet_bool .cfi_startproc ; %bb.0: stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill .cfi_def_cfa_offset 16 mov x29, sp .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 bl ___VERIFIER_nondet_int subs w8, w0, #0 cset w8, ne and w0, w8, #0x1 ldp x29, x30, [sp], #16 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #208 .cfi_def_cfa_offset 208 stp x29, x30, [sp, #192] ; 16-byte Folded Spill add x29, sp, #192 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] bl ___VERIFIER_nondet_int str w0, [sp, #88] bl ___VERIFIER_nondet_bool stur w0, [x29, #-8] bl ___VERIFIER_nondet_bool stur w0, [x29, #-16] bl ___VERIFIER_nondet_float stur s0, [x29, #-24] bl ___VERIFIER_nondet_bool stur w0, [x29, #-32] bl ___VERIFIER_nondet_float stur s0, [x29, #-40] bl ___VERIFIER_nondet_float stur s0, [x29, #-48] bl ___VERIFIER_nondet_float stur s0, [x29, #-56] bl ___VERIFIER_nondet_float stur s0, [x29, #-64] bl ___VERIFIER_nondet_float stur s0, [x29, #-72] bl ___VERIFIER_nondet_float stur s0, [x29, #-80] bl ___VERIFIER_nondet_bool stur w0, [x29, #-88] bl ___VERIFIER_nondet_float str s0, [sp, #96] ldur w8, [x29, #-88] subs w8, w8, #0 cset w8, ne mov w9, #0 str w9, [sp, #80] ; 4-byte Folded Spill tbnz w8, #0, LBB1_6 b LBB1_1 LBB1_1: ldur s0, [x29, #-80] fcvt d2, s0 ldur s0, [x29, #-72] fcvt d1, s0 fmov d0, #-1.00000000 fmadd d1, d0, d1, d2 fmov d0, #14.00000000 fcmp d0, d1 cset w8, ls tbnz w8, #0, LBB1_4 b LBB1_2 LBB1_2: ldur s0, [x29, #-64] fcvt d2, s0 ldur s0, [x29, #-40] fcvt d1, s0 fmov d0, #-1.00000000 fmadd d1, d0, d1, d2 fmov d0, #12.00000000 fcmp d0, d1 cset w8, hi tbnz w8, #0, LBB1_4 b LBB1_3 LBB1_3: ldur w8, [x29, #-32] subs w8, w8, #0 cset w8, eq mov w9, #0 str w9, [sp, #80] ; 4-byte Folded Spill tbnz w8, #0, LBB1_6 b LBB1_4 LBB1_4: ldur w8, [x29, #-16] subs w8, w8, #0 cset w8, ne mov w9, #0 str w9, [sp, #80] ; 4-byte Folded Spill tbnz w8, #0, LBB1_6 b LBB1_5 LBB1_5: ldur w8, [x29, #-8] subs w8, w8, #0 cset w8, eq str w8, [sp, #80] ; 4-byte Folded Spill b LBB1_6 LBB1_6: ldr w8, [sp, #80] ; 4-byte Folded Reload and w8, w8, #0x1 str w8, [sp, #84] b LBB1_7 LBB1_7: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #88] subs w8, w8, #0 cset w8, lt mov w9, #0 str w9, [sp, #76] ; 4-byte Folded Spill tbnz w8, #0, LBB1_9 b LBB1_8 LBB1_8: ; in Loop: Header=BB1_7 Depth=1 ldr w8, [sp, #84] subs w8, w8, #0 cset w8, ne str w8, [sp, #76] ; 4-byte Folded Spill b LBB1_9 LBB1_9: ; in Loop: Header=BB1_7 Depth=1 ldr w8, [sp, #76] ; 4-byte Folded Reload tbz w8, #0, LBB1_120 b LBB1_10 LBB1_10: ; in Loop: Header=BB1_7 Depth=1 ldur w8, [x29, #-16] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB1_13 b LBB1_11 LBB1_11: ; in Loop: Header=BB1_7 Depth=1 ldur w8, [x29, #-8] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB1_13 b LBB1_12 LBB1_12: ; in Loop: Header=BB1_7 Depth=1 bl ___VERIFIER_nondet_int str w0, [sp, #88] b LBB1_14 LBB1_13: ; in Loop: Header=BB1_7 Depth=1 ldr w8, [sp, #88] subs w8, w8, #1 str w8, [sp, #88] b LBB1_14 LBB1_14: ; in Loop: Header=BB1_7 Depth=1 bl ___VERIFIER_nondet_bool stur w0, [x29, #-12] bl ___VERIFIER_nondet_bool stur w0, [x29, #-20] bl ___VERIFIER_nondet_float stur s0, [x29, #-28] bl ___VERIFIER_nondet_bool stur w0, [x29, #-36] bl ___VERIFIER_nondet_float stur s0, [x29, #-44] bl ___VERIFIER_nondet_float stur s0, [x29, #-52] bl ___VERIFIER_nondet_float stur s0, [x29, #-60] bl ___VERIFIER_nondet_float stur s0, [x29, #-68] bl ___VERIFIER_nondet_float stur s0, [x29, #-76] bl ___VERIFIER_nondet_float stur s0, [x29, #-84] bl ___VERIFIER_nondet_bool stur w0, [x29, #-92] bl ___VERIFIER_nondet_float str s0, [sp, #92] ldur s0, [x29, #-40] fcvt d2, s0 ldur s0, [x29, #-60] fcvt d1, s0 fmov d0, #-1.00000000 fmadd d0, d0, d1, d2 fmov d1, #-17.00000000 fcmp d0, d1 cset w8, hi mov w9, #0 str w9, [sp, #72] ; 4-byte Folded Spill tbnz w8, #0, LBB1_119 b LBB1_15 LBB1_15: ; in Loop: Header=BB1_7 Depth=1 ldur s0, [x29, #-64] fcvt d2, s0 ldur s0, [x29, #-60] fcvt d1, s0 fmov d0, #-1.00000000 fmadd d0, d0, d1, d2 fmov d1, #-8.00000000 fcmp d0, d1 cset w8, hi mov w9, #0 str w9, [sp, #72] ; 4-byte Folded Spill tbnz w8, #0, LBB1_119 b LBB1_16 LBB1_16: ; in Loop: Header=BB1_7 Depth=1 ldur s0, [x29, #-24] fcvt d2, s0 ldur s0, [x29, #-60] fcvt d1, s0 fmov d0, #-1.00000000 fmadd d0, d0, d1, d2 fmov d1, #-3.00000000 fcmp d0, d1 cset w8, hi mov w9, #0 str w9, [sp, #72] ; 4-byte Folded Spill tbnz w8, #0, LBB1_119 b LBB1_17 LBB1_17: ; in Loop: Header=BB1_7 Depth=1 ldr s0, [sp, #96] fcvt d2, s0 ldur s0, [x29, #-60] fcvt d1, s0 fmov d0, #-1.00000000 fmadd d0, d0, d1, d2 fmov d1, #-6.00000000 fcmp d0, d1 cset w8, hi mov w9, #0 str w9, [sp, #72] ; 4-byte Folded Spill tbnz w8, #0, LBB1_119 b LBB1_18 LBB1_18: ; in Loop: Header=BB1_7 Depth=1 ldur s0, [x29, #-40] fcvt d2, s0 ldur s0, [x29, #-60] fcvt d1, s0 fmov d0, #-1.00000000 fmadd d0, d0, d1, d2 fmov d1, #-17.00000000 fcmp d0, d1 cset w8, eq tbnz w8, #0, LBB1_22 b LBB1_19 LBB1_19: ; in Loop: Header=BB1_7 Depth=1 ldur s0, [x29, #-64] fcvt d2, s0 ldur s0, [x29, #-60] fcvt d1, s0 fmov d0, #-1.00000000 fmadd d0, d0, d1, d2 fmov d1, #-8.00000000 fcmp d0, d1 cset w8, eq tbnz w8, #0, LBB1_22 b LBB1_20 LBB1_20: ; in Loop: Header=BB1_7 Depth=1 ldur s0, [x29, #-24] fcvt d2, s0 ldur s0, [x29, #-60] fcvt d1, s0 fmov d0, #-1.00000000 fmadd d0, d0, d1, d2 fmov d1, #-3.00000000 fcmp d0, d1 cset w8, eq tbnz w8, #0, LBB1_22 b LBB1_21 LBB1_21: ; in Loop: Header=BB1_7 Depth=1 ldr s0, [sp, #96] fcvt d2, s0 ldur s0, [x29, #-60] fcvt d1, s0 fmov d0, #-1.00000000 fmadd d0, d0, d1, d2 fmov d1, #-6.00000000 fcmp d0, d1 cset w8, ne mov w9, #0 str w9, [sp, #72] ; 4-byte Folded Spill tbnz w8, #0, LBB1_119 b LBB1_22 LBB1_22: ; in Loop: Header=BB1_7 Depth=1 ldur s0, [x29, #-40] fcvt d2, s0 ldur s0, [x29, #-28] fcvt d1, s0 fmov d0, #-1.00000000 fmadd d0, d0, d1, d2 fmov d1, #-7.00000000 fcmp d0, d1 cset w8, hi mov w9, #0 str w9, [sp, #72] ; 4-byte Folded Spill tbnz w8, #0, LBB1_119 b LBB1_23 LBB1_23: ; in Loop: Header=BB1_7 Depth=1 ldur s0, [x29, #-72] fcvt d2, s0 ldur s0, [x29, #-28] fcvt d1, s0 fmov d0, #-1.00000000 fmadd d0, d0, d1, d2 fmov d1, #-17.00000000 fcmp d0, d1 cset w8, hi mov w9, #0 str w9, [sp, #72] ; 4-byte Folded Spill tbnz w8, #0, LBB1_119 b LBB1_24 LBB1_24: ; in Loop: Header=BB1_7 Depth=1 ldur s0, [x29, #-24] fcvt d2, s0 ldur s0, [x29, #-28] fcvt d1, s0 fmov d0, #-1.00000000 fmadd d0, d0, d1, d2 fmov d1, #-4.00000000 fcmp d0, d1 cset w8, hi mov w9, #0 str w9, [sp, #72] ; 4-byte Folded Spill tbnz w8, #0, LBB1_119 b LBB1_25 LBB1_25: ; in Loop: Header=BB1_7 Depth=1 ldur s0, [x29, #-80] fcvt d2, s0 ldur s0, [x29, #-28] fcvt d1, s0 fmov d0, #-1.00000000 fmadd d0, d0, d1, d2 fmov d1, #-6.00000000 fcmp d0, d1 cset w8, hi mov w9, #0 str w9, [sp, #72] ; 4-byte Folded Spill tbnz w8, #0, LBB1_119 b LBB1_26 LBB1_26: ; in Loop: Header=BB1_7 Depth=1 ldur s0, [x29, #-40] fcvt d2, s0 ldur s0, [x29, #-28] fcvt d1, s0 fmov d0, #-1.00000000 fmadd d0, d0, d1, d2 fmov d1, #-7.00000000 fcmp d0, d1 cset w8, eq tbnz w8, #0, LBB1_30 b LBB1_27 LBB1_27: ; in Loop: Header=BB1_7 Depth=1 ldur s0, [x29, #-72] fcvt d2, s0 ldur s0, [x29, #-28] fcvt d1, s0 fmov d0, #-1.00000000 fmadd d0, d0, d1, d2 fmov d1, #-17.00000000 fcmp d0, d1 cset w8, eq tbnz w8, #0, LBB1_30 b LBB1_28 LBB1_28: ; in Loop: Header=BB1_7 Depth=1 ldur s0, [x29, #-24] fcvt d2, s0 ldur s0, [x29, #-28] fcvt d1, s0 fmov d0, #-1.00000000 fmadd d0, d0, d1, d2 fmov d1, #-4.00000000 fcmp d0, d1 cset w8, eq tbnz w8, #0, LBB1_30 b LBB1_29 LBB1_29: ; in Loop: Header=BB1_7 Depth=1 ldur s0, [x29, #-80] fcvt d2, s0 ldur s0, [x29, #-28] fcvt d1, s0 fmov d0, #-1.00000000 fmadd d0, d0, d1, d2 fmov d1, #-6.00000000 fcmp d0, d1 cset w8, ne mov w9, #0 str w9, [sp, #72] ; 4-byte Folded Spill tbnz w8, #0, LBB1_119 b LBB1_30 LBB1_30: ; in Loop: Header=BB1_7 Depth=1 ldur s0, [x29, #-40] fcvt d2, s0 ldur s0, [x29, #-84] fcvt d1, s0 fmov d0, #-1.00000000 fmadd d0, d0, d1, d2 fmov d1, #-13.00000000 fcmp d0, d1 cset w8, hi mov w9, #0 str w9, [sp, #72] ; 4-byte Folded Spill tbnz w8, #0, LBB1_119 b LBB1_31 LBB1_31: ; in Loop: Header=BB1_7 Depth=1 ldur s0, [x29, #-64] fcvt d2, s0 ldur s0, [x29, #-84] fcvt d1, s0 fmov d0, #-1.00000000 fmadd d0, d0, d1, d2 fmov d1, #-15.00000000 fcmp d0, d1 cset w8, hi mov w9, #0 str w9, [sp, #72] ; 4-byte Folded Spill tbnz w8, #0, LBB1_119 b LBB1_32 LBB1_32: ; in Loop: Header=BB1_7 Depth=1 ldur s0, [x29, #-56] fcvt d2, s0 ldur s0, [x29, #-84] fcvt d1, s0 fmov d0, #-1.00000000 fmadd d0, d0, d1, d2 fmov d1, #-19.00000000 fcmp d0, d1 cset w8, hi mov w9, #0 str w9, [sp, #72] ; 4-byte Folded Spill tbnz w8, #0, LBB1_119 b LBB1_33 LBB1_33: ; in Loop: Header=BB1_7 Depth=1 ldur s0, [x29, #-72] fcvt d2, s0 ldur s0, [x29, #-84] fcvt d1, s0 fmov d0, #-1.00000000 fmadd d0, d0, d1, d2 fmov d1, #-4.00000000 fcmp d0, d1 cset w8, hi mov w9, #0 str w9, [sp, #72] ; 4-byte Folded Spill tbnz w8, #0, LBB1_119 b LBB1_34 LBB1_34: ; in Loop: Header=BB1_7 Depth=1 ldur s0, [x29, #-40] fcvt d2, s0 ldur s0, [x29, #-84] fcvt d1, s0 fmov d0, #-1.00000000 fmadd d0, d0, d1, d2 fmov d1, #-13.00000000 fcmp d0, d1 cset w8, eq tbnz w8, #0, LBB1_38 b LBB1_35 LBB1_35: ; in Loop: Header=BB1_7 Depth=1 ldur s0, [x29, #-64] fcvt d2, s0 ldur s0, [x29, #-84] fcvt d1, s0 fmov d0, #-1.00000000 fmadd d0, d0, d1, d2 fmov d1, #-15.00000000 fcmp d0, d1 cset w8, eq tbnz w8, #0, LBB1_38 b LBB1_36 LBB1_36: ; in Loop: Header=BB1_7 Depth=1 ldur s0, [x29, #-56] fcvt d2, s0 ldur s0, [x29, #-84] fcvt d1, s0 fmov d0, #-1.00000000 fmadd d0, d0, d1, d2 fmov d1, #-19.00000000 fcmp d0, d1 cset w8, eq tbnz w8, #0, LBB1_38 b LBB1_37 LBB1_37: ; in Loop: Header=BB1_7 Depth=1 ldur s0, [x29, #-72] fcvt d2, s0 ldur s0, [x29, #-84] fcvt d1, s0 fmov d0, #-1.00000000 fmadd d0, d0, d1, d2 fmov d1, #-4.00000000 fcmp d0, d1 cset w8, ne mov w9, #0 str w9, [sp, #72] ; 4-byte Folded Spill tbnz w8, #0, LBB1_119 b LBB1_38 LBB1_38: ; in Loop: Header=BB1_7 Depth=1 ldur s0, [x29, #-40] fcvt d2, s0 ldur s0, [x29, #-76] fcvt d1, s0 fmov d0, #-1.00000000 fmadd d0, d0, d1, d2 fmov d1, #-12.00000000 fcmp d0, d1 cset w8, hi mov w9, #0 str w9, [sp, #72] ; 4-byte Folded Spill tbnz w8, #0, LBB1_119 b LBB1_39 LBB1_39: ; in Loop: Header=BB1_7 Depth=1 ldur s0, [x29, #-64] fcvt d2, s0 ldur s0, [x29, #-76] fcvt d1, s0 fmov d0, #-1.00000000 fmadd d0, d0, d1, d2 fmov d1, #-19.00000000 fcmp d0, d1 cset w8, hi mov w9, #0 str w9, [sp, #72] ; 4-byte Folded Spill tbnz w8, #0, LBB1_119 b LBB1_40 LBB1_40: ; in Loop: Header=BB1_7 Depth=1 ldur s0, [x29, #-56] fcvt d2, s0 ldur s0, [x29, #-76] fcvt d1, s0 fmov d0, #-1.00000000 fmadd d0, d0, d1, d2 fmov d1, #-17.00000000 fcmp d0, d1 cset w8, hi mov w9, #0 str w9, [sp, #72] ; 4-byte Folded Spill tbnz w8, #0, LBB1_119 b LBB1_41 LBB1_41: ; in Loop: Header=BB1_7 Depth=1 ldur s0, [x29, #-24] fcvt d2, s0 ldur s0, [x29, #-76] fcvt d1, s0 fmov d0, #-1.00000000 fmadd d0, d0, d1, d2 fmov d1, #-2.00000000 fcmp d0, d1 cset w8, hi mov w9, #0 str w9, [sp, #72] ; 4-byte Folded Spill tbnz w8, #0, LBB1_119 b LBB1_42 LBB1_42: ; in Loop: Header=BB1_7 Depth=1 ldur s0, [x29, #-40] fcvt d2, s0 ldur s0, [x29, #-76] fcvt d1, s0 fmov d0, #-1.00000000 fmadd d0, d0, d1, d2 fmov d1, #-12.00000000 fcmp d0, d1 cset w8, eq tbnz w8, #0, LBB1_46 b LBB1_43 LBB1_43: ; in Loop: Header=BB1_7 Depth=1 ldur s0, [x29, #-64] fcvt d2, s0 ldur s0, [x29, #-76] fcvt d1, s0 fmov d0, #-1.00000000 fmadd d0, d0, d1, d2 fmov d1, #-19.00000000 fcmp d0, d1 cset w8, eq tbnz w8, #0, LBB1_46 b LBB1_44 LBB1_44: ; in Loop: Header=BB1_7 Depth=1 ldur s0, [x29, #-56] fcvt d2, s0 ldur s0, [x29, #-76] fcvt d1, s0 fmov d0, #-1.00000000 fmadd d0, d0, d1, d2 fmov d1, #-17.00000000 fcmp d0, d1 cset w8, eq tbnz w8, #0, LBB1_46 b LBB1_45 LBB1_45: ; in Loop: Header=BB1_7 Depth=1 ldur s0, [x29, #-24] fcvt d2, s0 ldur s0, [x29, #-76] fcvt d1, s0 fmov d0, #-1.00000000 fmadd d0, d0, d1, d2 fmov d1, #-2.00000000 fcmp d0, d1 cset w8, ne mov w9, #0 str w9, [sp, #72] ; 4-byte Folded Spill tbnz w8, #0, LBB1_119 b LBB1_46 LBB1_46: ; in Loop: Header=BB1_7 Depth=1 ldur s0, [x29, #-40] fcvt d2, s0 ldr s0, [sp, #92] fcvt d1, s0 fmov d0, #-1.00000000 fmadd d0, d0, d1, d2 fmov d1, #-7.00000000 fcmp d0, d1 cset w8, hi mov w9, #0 str w9, [sp, #72] ; 4-byte Folded Spill tbnz w8, #0, LBB1_119 b LBB1_47 LBB1_47: ; in Loop: Header=BB1_7 Depth=1 ldur s0, [x29, #-64] fcvt d2, s0 ldr s0, [sp, #92] fcvt d0, s0 fmov d1, #-1.00000000 fmadd d0, d1, d0, d2 fcmp d0, d1 cset w8, hi mov w9, #0 str w9, [sp, #72] ; 4-byte Folded Spill tbnz w8, #0, LBB1_119 b LBB1_48 LBB1_48: ; in Loop: Header=BB1_7 Depth=1 ldur s0, [x29, #-80] fcvt d2, s0 ldr s0, [sp, #92] fcvt d1, s0 fmov d0, #-1.00000000 fmadd d0, d0, d1, d2 fmov d1, #-4.00000000 fcmp d0, d1 cset w8, hi mov w9, #0 str w9, [sp, #72] ; 4-byte Folded Spill tbnz w8, #0, LBB1_119 b LBB1_49 LBB1_49: ; in Loop: Header=BB1_7 Depth=1 ldur s0, [x29, #-48] fcvt d2, s0 ldr s0, [sp, #92] fcvt d1, s0 fmov d0, #-1.00000000 fmadd d0, d0, d1, d2 fmov d1, #-10.00000000 fcmp d0, d1 cset w8, hi mov w9, #0 str w9, [sp, #72] ; 4-byte Folded Spill tbnz w8, #0, LBB1_119 b LBB1_50 LBB1_50: ; in Loop: Header=BB1_7 Depth=1 ldur s0, [x29, #-40] fcvt d2, s0 ldr s0, [sp, #92] fcvt d1, s0 fmov d0, #-1.00000000 fmadd d0, d0, d1, d2 fmov d1, #-7.00000000 fcmp d0, d1 cset w8, eq tbnz w8, #0, LBB1_54 b LBB1_51 LBB1_51: ; in Loop: Header=BB1_7 Depth=1 ldur s0, [x29, #-64] fcvt d2, s0 ldr s0, [sp, #92] fcvt d0, s0 fmov d1, #-1.00000000 fmadd d0, d1, d0, d2 fcmp d0, d1 cset w8, eq tbnz w8, #0, LBB1_54 b LBB1_52 LBB1_52: ; in Loop: Header=BB1_7 Depth=1 ldur s0, [x29, #-80] fcvt d2, s0 ldr s0, [sp, #92] fcvt d1, s0 fmov d0, #-1.00000000 fmadd d0, d0, d1, d2 fmov d1, #-4.00000000 fcmp d0, d1 cset w8, eq tbnz w8, #0, LBB1_54 b LBB1_53 LBB1_53: ; in Loop: Header=BB1_7 Depth=1 ldur s0, [x29, #-48] fcvt d2, s0 ldr s0, [sp, #92] fcvt d1, s0 fmov d0, #-1.00000000 fmadd d0, d0, d1, d2 fmov d1, #-10.00000000 fcmp d0, d1 cset w8, ne mov w9, #0 str w9, [sp, #72] ; 4-byte Folded Spill tbnz w8, #0, LBB1_119 b LBB1_54 LBB1_54: ; in Loop: Header=BB1_7 Depth=1 ldur s0, [x29, #-64] fcvt d2, s0 ldur s0, [x29, #-52] fcvt d1, s0 fmov d0, #-1.00000000 fmadd d0, d0, d1, d2 fmov d1, #-19.00000000 fcmp d0, d1 cset w8, hi mov w9, #0 str w9, [sp, #72] ; 4-byte Folded Spill tbnz w8, #0, LBB1_119 b LBB1_55 LBB1_55: ; in Loop: Header=BB1_7 Depth=1 ldur s0, [x29, #-48] fcvt d2, s0 ldur s0, [x29, #-52] fcvt d1, s0 fmov d0, #-1.00000000 fmadd d0, d0, d1, d2 fmov d1, #-13.00000000 fcmp d0, d1 cset w8, hi mov w9, #0 str w9, [sp, #72] ; 4-byte Folded Spill tbnz w8, #0, LBB1_119 b LBB1_56 LBB1_56: ; in Loop: Header=BB1_7 Depth=1 ldur s0, [x29, #-24] fcvt d2, s0 ldur s0, [x29, #-52] fcvt d1, s0 fmov d0, #-1.00000000 fmadd d0, d0, d1, d2 fmov d1, #-6.00000000 fcmp d0, d1 cset w8, hi mov w9, #0 str w9, [sp, #72] ; 4-byte Folded Spill tbnz w8, #0, LBB1_119 b LBB1_57 LBB1_57: ; in Loop: Header=BB1_7 Depth=1 ldr s0, [sp, #96] fcvt d2, s0 ldur s0, [x29, #-52] fcvt d1, s0 fmov d0, #-1.00000000 fmadd d0, d0, d1, d2 fmov d1, #-18.00000000 fcmp d0, d1 cset w8, hi mov w9, #0 str w9, [sp, #72] ; 4-byte Folded Spill tbnz w8, #0, LBB1_119 b LBB1_58 LBB1_58: ; in Loop: Header=BB1_7 Depth=1 ldur s0, [x29, #-64] fcvt d2, s0 ldur s0, [x29, #-52] fcvt d1, s0 fmov d0, #-1.00000000 fmadd d0, d0, d1, d2 fmov d1, #-19.00000000 fcmp d0, d1 cset w8, eq tbnz w8, #0, LBB1_62 b LBB1_59 LBB1_59: ; in Loop: Header=BB1_7 Depth=1 ldur s0, [x29, #-48] fcvt d2, s0 ldur s0, [x29, #-52] fcvt d1, s0 fmov d0, #-1.00000000 fmadd d0, d0, d1, d2 fmov d1, #-13.00000000 fcmp d0, d1 cset w8, eq tbnz w8, #0, LBB1_62 b LBB1_60 LBB1_60: ; in Loop: Header=BB1_7 Depth=1 ldur s0, [x29, #-24] fcvt d2, s0 ldur s0, [x29, #-52] fcvt d1, s0 fmov d0, #-1.00000000 fmadd d0, d0, d1, d2 fmov d1, #-6.00000000 fcmp d0, d1 cset w8, eq tbnz w8, #0, LBB1_62 b LBB1_61 LBB1_61: ; in Loop: Header=BB1_7 Depth=1 ldr s0, [sp, #96] fcvt d2, s0 ldur s0, [x29, #-52] fcvt d1, s0 fmov d0, #-1.00000000 fmadd d0, d0, d1, d2 fmov d1, #-18.00000000 fcmp d0, d1 cset w8, ne mov w9, #0 str w9, [sp, #72] ; 4-byte Folded Spill tbnz w8, #0, LBB1_119 b LBB1_62 LBB1_62: ; in Loop: Header=BB1_7 Depth=1 ldur s0, [x29, #-40] fcvt d2, s0 ldur s0, [x29, #-68] fcvt d1, s0 fmov d0, #-1.00000000 fmadd d0, d0, d1, d2 fmov d1, #-13.00000000 fcmp d0, d1 cset w8, hi mov w9, #0 str w9, [sp, #72] ; 4-byte Folded Spill tbnz w8, #0, LBB1_119 b LBB1_63 LBB1_63: ; in Loop: Header=BB1_7 Depth=1 ldur s0, [x29, #-64] fcvt d2, s0 ldur s0, [x29, #-68] fcvt d1, s0 fmov d0, #-1.00000000 fmadd d0, d0, d1, d2 fmov d1, #-12.00000000 fcmp d0, d1 cset w8, hi mov w9, #0 str w9, [sp, #72] ; 4-byte Folded Spill tbnz w8, #0, LBB1_119 b LBB1_64 LBB1_64: ; in Loop: Header=BB1_7 Depth=1 ldur s0, [x29, #-24] fcvt d2, s0 ldur s0, [x29, #-68] fcvt d1, s0 fmov d0, #-1.00000000 fmadd d0, d0, d1, d2 fmov d1, #-7.00000000 fcmp d0, d1 cset w8, hi mov w9, #0 str w9, [sp, #72] ; 4-byte Folded Spill tbnz w8, #0, LBB1_119 b LBB1_65 LBB1_65: ; in Loop: Header=BB1_7 Depth=1 ldur s0, [x29, #-80] fcvt d2, s0 ldur s0, [x29, #-68] fcvt d1, s0 fmov d0, #-1.00000000 fmadd d0, d0, d1, d2 fmov d1, #-17.00000000 fcmp d0, d1 cset w8, hi mov w9, #0 str w9, [sp, #72] ; 4-byte Folded Spill tbnz w8, #0, LBB1_119 b LBB1_66 LBB1_66: ; in Loop: Header=BB1_7 Depth=1 ldur s0, [x29, #-40] fcvt d2, s0 ldur s0, [x29, #-68] fcvt d1, s0 fmov d0, #-1.00000000 fmadd d0, d0, d1, d2 fmov d1, #-13.00000000 fcmp d0, d1 cset w8, eq tbnz w8, #0, LBB1_70 b LBB1_67 LBB1_67: ; in Loop: Header=BB1_7 Depth=1 ldur s0, [x29, #-64] fcvt d2, s0 ldur s0, [x29, #-68] fcvt d1, s0 fmov d0, #-1.00000000 fmadd d0, d0, d1, d2 fmov d1, #-12.00000000 fcmp d0, d1 cset w8, eq tbnz w8, #0, LBB1_70 b LBB1_68 LBB1_68: ; in Loop: Header=BB1_7 Depth=1 ldur s0, [x29, #-24] fcvt d2, s0 ldur s0, [x29, #-68] fcvt d1, s0 fmov d0, #-1.00000000 fmadd d0, d0, d1, d2 fmov d1, #-7.00000000 fcmp d0, d1 cset w8, eq tbnz w8, #0, LBB1_70 b LBB1_69 LBB1_69: ; in Loop: Header=BB1_7 Depth=1 ldur s0, [x29, #-80] fcvt d2, s0 ldur s0, [x29, #-68] fcvt d1, s0 fmov d0, #-1.00000000 fmadd d0, d0, d1, d2 fmov d1, #-17.00000000 fcmp d0, d1 cset w8, ne mov w9, #0 str w9, [sp, #72] ; 4-byte Folded Spill tbnz w8, #0, LBB1_119 b LBB1_70 LBB1_70: ; in Loop: Header=BB1_7 Depth=1 ldur s0, [x29, #-40] fcvt d2, s0 ldur s0, [x29, #-44] fcvt d1, s0 fmov d0, #-1.00000000 fmadd d0, d0, d1, d2 fmov d1, #-16.00000000 fcmp d0, d1 cset w8, hi mov w9, #0 str w9, [sp, #72] ; 4-byte Folded Spill tbnz w8, #0, LBB1_119 b LBB1_71 LBB1_71: ; in Loop: Header=BB1_7 Depth=1 ldur s0, [x29, #-80] fcvt d2, s0 ldur s0, [x29, #-44] fcvt d1, s0 fmov d0, #-1.00000000 fmadd d0, d0, d1, d2 fmov d1, #-13.00000000 fcmp d0, d1 cset w8, hi mov w9, #0 str w9, [sp, #72] ; 4-byte Folded Spill tbnz w8, #0, LBB1_119 b LBB1_72 LBB1_72: ; in Loop: Header=BB1_7 Depth=1 ldur s0, [x29, #-56] fcvt d2, s0 ldur s0, [x29, #-44] fcvt d1, s0 fmov d0, #-1.00000000 fmadd d0, d0, d1, d2 fmov d1, #-16.00000000 fcmp d0, d1 cset w8, hi mov w9, #0 str w9, [sp, #72] ; 4-byte Folded Spill tbnz w8, #0, LBB1_119 b LBB1_73 LBB1_73: ; in Loop: Header=BB1_7 Depth=1 ldur s0, [x29, #-24] fcvt d2, s0 ldur s0, [x29, #-44] fcvt d1, s0 fmov d0, #-1.00000000 fmadd d0, d0, d1, d2 fmov d1, #-10.00000000 fcmp d0, d1 cset w8, hi mov w9, #0 str w9, [sp, #72] ; 4-byte Folded Spill tbnz w8, #0, LBB1_119 b LBB1_74 LBB1_74: ; in Loop: Header=BB1_7 Depth=1 ldur s0, [x29, #-40] fcvt d2, s0 ldur s0, [x29, #-44] fcvt d1, s0 fmov d0, #-1.00000000 fmadd d0, d0, d1, d2 fmov d1, #-16.00000000 fcmp d0, d1 cset w8, eq tbnz w8, #0, LBB1_78 b LBB1_75 LBB1_75: ; in Loop: Header=BB1_7 Depth=1 ldur s0, [x29, #-80] fcvt d2, s0 ldur s0, [x29, #-44] fcvt d1, s0 fmov d0, #-1.00000000 fmadd d0, d0, d1, d2 fmov d1, #-13.00000000 fcmp d0, d1 cset w8, eq tbnz w8, #0, LBB1_78 b LBB1_76 LBB1_76: ; in Loop: Header=BB1_7 Depth=1 ldur s0, [x29, #-56] fcvt d2, s0 ldur s0, [x29, #-44] fcvt d1, s0 fmov d0, #-1.00000000 fmadd d0, d0, d1, d2 fmov d1, #-16.00000000 fcmp d0, d1 cset w8, eq tbnz w8, #0, LBB1_78 b LBB1_77 LBB1_77: ; in Loop: Header=BB1_7 Depth=1 ldur s0, [x29, #-24] fcvt d2, s0 ldur s0, [x29, #-44] fcvt d1, s0 fmov d0, #-1.00000000 fmadd d0, d0, d1, d2 fmov d1, #-10.00000000 fcmp d0, d1 cset w8, ne mov w9, #0 str w9, [sp, #72] ; 4-byte Folded Spill tbnz w8, #0, LBB1_119 b LBB1_78 LBB1_78: ; in Loop: Header=BB1_7 Depth=1 ldur w8, [x29, #-32] str w8, [sp, #64] ; 4-byte Folded Spill ldur w8, [x29, #-36] subs w8, w8, #0 cset w8, ne mov w9, #1 str w9, [sp, #68] ; 4-byte Folded Spill tbnz w8, #0, LBB1_82 b LBB1_79 LBB1_79: ; in Loop: Header=BB1_7 Depth=1 ldur s0, [x29, #-68] fcvt d2, s0 ldur s0, [x29, #-44] fcvt d1, s0 fmov d0, #-1.00000000 fmadd d1, d0, d1, d2 fmov d0, #12.00000000 fcmp d0, d1 cset w8, hi mov w9, #0 str w9, [sp, #60] ; 4-byte Folded Spill tbnz w8, #0, LBB1_81 b LBB1_80 LBB1_80: ; in Loop: Header=BB1_7 Depth=1 ldur s0, [x29, #-84] fcvt d2, s0 ldur s0, [x29, #-76] fcvt d1, s0 fmov d0, #-1.00000000 fmadd d1, d0, d1, d2 fmov d0, #14.00000000 fcmp d0, d1 cset w8, hi str w8, [sp, #60] ; 4-byte Folded Spill b LBB1_81 LBB1_81: ; in Loop: Header=BB1_7 Depth=1 ldr w8, [sp, #60] ; 4-byte Folded Reload eor w8, w8, #0x1 str w8, [sp, #68] ; 4-byte Folded Spill b LBB1_82 LBB1_82: ; in Loop: Header=BB1_7 Depth=1 ldr w8, [sp, #64] ; 4-byte Folded Reload ldr w9, [sp, #68] ; 4-byte Folded Reload and w9, w9, #0x1 subs w8, w8, w9 cset w8, ne mov w9, #0 str w9, [sp, #56] ; 4-byte Folded Spill tbnz w8, #0, LBB1_118 b LBB1_83 LBB1_83: ; in Loop: Header=BB1_7 Depth=1 ldur w8, [x29, #-88] str w8, [sp, #48] ; 4-byte Folded Spill ldur w8, [x29, #-92] subs w8, w8, #0 cset w8, ne mov w9, #1 str w9, [sp, #52] ; 4-byte Folded Spill tbnz w8, #0, LBB1_89 b LBB1_84 LBB1_84: ; in Loop: Header=BB1_7 Depth=1 ldur w8, [x29, #-36] subs w8, w8, #0 cset w8, ne mov w9, #1 str w9, [sp, #44] ; 4-byte Folded Spill tbnz w8, #0, LBB1_88 b LBB1_85 LBB1_85: ; in Loop: Header=BB1_7 Depth=1 ldur s0, [x29, #-68] fcvt d2, s0 ldur s0, [x29, #-44] fcvt d1, s0 fmov d0, #-1.00000000 fmadd d1, d0, d1, d2 fmov d0, #12.00000000 fcmp d0, d1 cset w8, hi mov w9, #0 str w9, [sp, #40] ; 4-byte Folded Spill tbnz w8, #0, LBB1_87 b LBB1_86 LBB1_86: ; in Loop: Header=BB1_7 Depth=1 ldur s0, [x29, #-84] fcvt d2, s0 ldur s0, [x29, #-76] fcvt d1, s0 fmov d0, #-1.00000000 fmadd d1, d0, d1, d2 fmov d0, #14.00000000 fcmp d0, d1 cset w8, hi str w8, [sp, #40] ; 4-byte Folded Spill b LBB1_87 LBB1_87: ; in Loop: Header=BB1_7 Depth=1 ldr w8, [sp, #40] ; 4-byte Folded Reload eor w8, w8, #0x1 str w8, [sp, #44] ; 4-byte Folded Spill b LBB1_88 LBB1_88: ; in Loop: Header=BB1_7 Depth=1 ldr w8, [sp, #44] ; 4-byte Folded Reload eor w8, w8, #0x1 str w8, [sp, #52] ; 4-byte Folded Spill b LBB1_89 LBB1_89: ; in Loop: Header=BB1_7 Depth=1 ldr w8, [sp, #48] ; 4-byte Folded Reload ldr w9, [sp, #52] ; 4-byte Folded Reload and w9, w9, #0x1 subs w8, w8, w9 cset w8, ne mov w9, #0 str w9, [sp, #56] ; 4-byte Folded Spill tbnz w8, #0, LBB1_118 b LBB1_90 LBB1_90: ; in Loop: Header=BB1_7 Depth=1 ldur w8, [x29, #-20] str w8, [sp, #36] ; 4-byte Folded Spill ldur w8, [x29, #-16] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB1_92 b LBB1_91 LBB1_91: ; in Loop: Header=BB1_7 Depth=1 ldur w8, [x29, #-8] subs w8, w8, #0 cset w8, ne mov w9, #0 str w9, [sp, #32] ; 4-byte Folded Spill tbnz w8, #0, LBB1_102 b LBB1_92 LBB1_92: ; in Loop: Header=BB1_7 Depth=1 ldur w8, [x29, #-16] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB1_94 b LBB1_93 LBB1_93: ; in Loop: Header=BB1_7 Depth=1 ldur w8, [x29, #-8] subs w8, w8, #0 cset w8, ne mov w9, #1 str w9, [sp, #28] ; 4-byte Folded Spill tbnz w8, #0, LBB1_101 b LBB1_94 LBB1_94: ; in Loop: Header=BB1_7 Depth=1 ldur s0, [x29, #-80] fcvt d2, s0 ldur s0, [x29, #-72] fcvt d1, s0 fmov d0, #-1.00000000 fmadd d1, d0, d1, d2 fmov d0, #14.00000000 fcmp d0, d1 cset w8, ls mov w9, #1 str w9, [sp, #24] ; 4-byte Folded Spill tbnz w8, #0, LBB1_100 b LBB1_95 LBB1_95: ; in Loop: Header=BB1_7 Depth=1 ldur s0, [x29, #-64] fcvt d2, s0 ldur s0, [x29, #-40] fcvt d1, s0 fmov d0, #-1.00000000 fmadd d1, d0, d1, d2 fmov d0, #12.00000000 fcmp d0, d1 cset w8, hi mov w9, #1 str w9, [sp, #24] ; 4-byte Folded Spill tbnz w8, #0, LBB1_100 b LBB1_96 LBB1_96: ; in Loop: Header=BB1_7 Depth=1 ldur s0, [x29, #-80] fcvt d2, s0 ldur s0, [x29, #-72] fcvt d1, s0 fmov d0, #-1.00000000 fmadd d1, d0, d1, d2 fmov d0, #14.00000000 fcmp d0, d1 cset w8, ls tbnz w8, #0, LBB1_99 b LBB1_97 LBB1_97: ; in Loop: Header=BB1_7 Depth=1 ldur s0, [x29, #-64] fcvt d2, s0 ldur s0, [x29, #-40] fcvt d1, s0 fmov d0, #-1.00000000 fmadd d1, d0, d1, d2 fmov d0, #12.00000000 fcmp d0, d1 cset w8, hi tbnz w8, #0, LBB1_99 b LBB1_98 LBB1_98: ; in Loop: Header=BB1_7 Depth=1 ldur w8, [x29, #-32] subs w8, w8, #0 cset w8, eq mov w9, #1 str w9, [sp, #24] ; 4-byte Folded Spill tbnz w8, #0, LBB1_100 b LBB1_99 LBB1_99: ; in Loop: Header=BB1_7 Depth=1 ldur w8, [x29, #-16] subs w8, w8, #0 cset w8, ne str w8, [sp, #24] ; 4-byte Folded Spill b LBB1_100 LBB1_100: ; in Loop: Header=BB1_7 Depth=1 ldr w8, [sp, #24] ; 4-byte Folded Reload str w8, [sp, #28] ; 4-byte Folded Spill b LBB1_101 LBB1_101: ; in Loop: Header=BB1_7 Depth=1 ldr w8, [sp, #28] ; 4-byte Folded Reload str w8, [sp, #32] ; 4-byte Folded Spill b LBB1_102 LBB1_102: ; in Loop: Header=BB1_7 Depth=1 ldr w8, [sp, #36] ; 4-byte Folded Reload ldr w9, [sp, #32] ; 4-byte Folded Reload and w9, w9, #0x1 subs w8, w8, w9 cset w8, ne mov w9, #0 str w9, [sp, #56] ; 4-byte Folded Spill tbnz w8, #0, LBB1_118 b LBB1_103 LBB1_103: ; in Loop: Header=BB1_7 Depth=1 ldur w8, [x29, #-12] str w8, [sp, #20] ; 4-byte Folded Spill ldur w8, [x29, #-16] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB1_105 b LBB1_104 LBB1_104: ; in Loop: Header=BB1_7 Depth=1 ldur w8, [x29, #-8] subs w8, w8, #0 cset w8, ne mov w9, #0 str w9, [sp, #16] ; 4-byte Folded Spill tbnz w8, #0, LBB1_117 b LBB1_105 LBB1_105: ; in Loop: Header=BB1_7 Depth=1 ldur w8, [x29, #-16] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB1_107 b LBB1_106 LBB1_106: ; in Loop: Header=BB1_7 Depth=1 ldur w8, [x29, #-8] subs w8, w8, #0 cset w8, ne mov w9, #1 str w9, [sp, #12] ; 4-byte Folded Spill tbnz w8, #0, LBB1_116 b LBB1_107 LBB1_107: ; in Loop: Header=BB1_7 Depth=1 ldur s0, [x29, #-80] fcvt d2, s0 ldur s0, [x29, #-72] fcvt d1, s0 fmov d0, #-1.00000000 fmadd d1, d0, d1, d2 fmov d0, #14.00000000 fcmp d0, d1 cset w8, ls tbnz w8, #0, LBB1_110 b LBB1_108 LBB1_108: ; in Loop: Header=BB1_7 Depth=1 ldur s0, [x29, #-64] fcvt d2, s0 ldur s0, [x29, #-40] fcvt d1, s0 fmov d0, #-1.00000000 fmadd d1, d0, d1, d2 fmov d0, #12.00000000 fcmp d0, d1 cset w8, hi tbnz w8, #0, LBB1_110 b LBB1_109 LBB1_109: ; in Loop: Header=BB1_7 Depth=1 ldur w8, [x29, #-32] subs w8, w8, #0 cset w8, eq mov w9, #1 str w9, [sp, #8] ; 4-byte Folded Spill tbnz w8, #0, LBB1_115 b LBB1_110 LBB1_110: ; in Loop: Header=BB1_7 Depth=1 ldur w8, [x29, #-88] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB1_114 b LBB1_111 LBB1_111: ; in Loop: Header=BB1_7 Depth=1 ldur s0, [x29, #-80] fcvt d2, s0 ldur s0, [x29, #-72] fcvt d1, s0 fmov d0, #-1.00000000 fmadd d1, d0, d1, d2 fmov d0, #14.00000000 fcmp d0, d1 cset w8, ls mov w9, #1 str w9, [sp, #8] ; 4-byte Folded Spill tbnz w8, #0, LBB1_115 b LBB1_112 LBB1_112: ; in Loop: Header=BB1_7 Depth=1 ldur s0, [x29, #-64] fcvt d2, s0 ldur s0, [x29, #-40] fcvt d1, s0 fmov d0, #-1.00000000 fmadd d1, d0, d1, d2 fmov d0, #12.00000000 fcmp d0, d1 cset w8, hi mov w9, #1 str w9, [sp, #8] ; 4-byte Folded Spill tbnz w8, #0, LBB1_115 b LBB1_113 LBB1_113: ; in Loop: Header=BB1_7 Depth=1 ldur w8, [x29, #-32] subs w8, w8, #0 cset w8, ne mov w9, #1 str w9, [sp, #8] ; 4-byte Folded Spill tbnz w8, #0, LBB1_115 b LBB1_114 LBB1_114: ; in Loop: Header=BB1_7 Depth=1 ldur w8, [x29, #-8] subs w8, w8, #0 cset w8, ne str w8, [sp, #8] ; 4-byte Folded Spill b LBB1_115 LBB1_115: ; in Loop: Header=BB1_7 Depth=1 ldr w8, [sp, #8] ; 4-byte Folded Reload str w8, [sp, #12] ; 4-byte Folded Spill b LBB1_116 LBB1_116: ; in Loop: Header=BB1_7 Depth=1 ldr w8, [sp, #12] ; 4-byte Folded Reload str w8, [sp, #16] ; 4-byte Folded Spill b LBB1_117 LBB1_117: ; in Loop: Header=BB1_7 Depth=1 ldr w8, [sp, #20] ; 4-byte Folded Reload ldr w9, [sp, #16] ; 4-byte Folded Reload and w9, w9, #0x1 subs w8, w8, w9 cset w8, eq str w8, [sp, #56] ; 4-byte Folded Spill b LBB1_118 LBB1_118: ; in Loop: Header=BB1_7 Depth=1 ldr w8, [sp, #56] ; 4-byte Folded Reload str w8, [sp, #72] ; 4-byte Folded Spill b LBB1_119 LBB1_119: ; in Loop: Header=BB1_7 Depth=1 ldr w8, [sp, #72] ; 4-byte Folded Reload and w8, w8, #0x1 str w8, [sp, #84] ldur w8, [x29, #-12] stur w8, [x29, #-8] ldur w8, [x29, #-20] stur w8, [x29, #-16] ldur s0, [x29, #-28] stur s0, [x29, #-24] ldur w8, [x29, #-36] stur w8, [x29, #-32] ldur s0, [x29, #-44] stur s0, [x29, #-40] ldur s0, [x29, #-52] stur s0, [x29, #-48] ldur s0, [x29, #-60] stur s0, [x29, #-56] ldur s0, [x29, #-68] stur s0, [x29, #-64] ldur s0, [x29, #-76] stur s0, [x29, #-72] ldur s0, [x29, #-84] stur s0, [x29, #-80] ldur w8, [x29, #-92] stur w8, [x29, #-88] ldr s0, [sp, #92] str s0, [sp, #96] b LBB1_7 LBB1_120: ldur w0, [x29, #-4] ldp x29, x30, [sp, #192] ; 16-byte Folded Reload add sp, sp, #208 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl ___VERIFIER_nondet_bool ## -- Begin function __VERIFIER_nondet_bool .p2align 4, 0x90 ___VERIFIER_nondet_bool: ## @__VERIFIER_nondet_bool .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp callq ___VERIFIER_nondet_int cmpl $0, %eax setne %al andb $1, %al movzbl %al, %eax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ## -- Begin function main LCPI1_0: .quad 0x402c000000000000 ## double 14 LCPI1_1: .quad 0x4028000000000000 ## double 12 LCPI1_2: .quad 0xc031000000000000 ## double -17 LCPI1_3: .quad 0xc020000000000000 ## double -8 LCPI1_4: .quad 0xc008000000000000 ## double -3 LCPI1_5: .quad 0xc018000000000000 ## double -6 LCPI1_6: .quad 0xc01c000000000000 ## double -7 LCPI1_7: .quad 0xc010000000000000 ## double -4 LCPI1_8: .quad 0xc02a000000000000 ## double -13 LCPI1_9: .quad 0xc02e000000000000 ## double -15 LCPI1_10: .quad 0xc033000000000000 ## double -19 LCPI1_11: .quad 0xc028000000000000 ## double -12 LCPI1_12: .quad 0xc000000000000000 ## double -2 LCPI1_13: .quad 0xbff0000000000000 ## double -1 LCPI1_14: .quad 0xc024000000000000 ## double -10 LCPI1_15: .quad 0xc032000000000000 ## double -18 LCPI1_16: .quad 0xc030000000000000 ## double -16 .section __TEXT,__text,regular,pure_instructions .globl _main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $144, %rsp movl $0, -4(%rbp) callq ___VERIFIER_nondet_int movl %eax, -104(%rbp) callq ___VERIFIER_nondet_bool movl %eax, -8(%rbp) callq ___VERIFIER_nondet_bool movl %eax, -16(%rbp) callq ___VERIFIER_nondet_float movss %xmm0, -24(%rbp) callq ___VERIFIER_nondet_bool movl %eax, -32(%rbp) callq ___VERIFIER_nondet_float movss %xmm0, -40(%rbp) callq ___VERIFIER_nondet_float movss %xmm0, -48(%rbp) callq ___VERIFIER_nondet_float movss %xmm0, -56(%rbp) callq ___VERIFIER_nondet_float movss %xmm0, -64(%rbp) callq ___VERIFIER_nondet_float movss %xmm0, -72(%rbp) callq ___VERIFIER_nondet_float movss %xmm0, -80(%rbp) callq ___VERIFIER_nondet_bool movl %eax, -88(%rbp) callq ___VERIFIER_nondet_float movss %xmm0, -96(%rbp) xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $0, -88(%rbp) movb %al, -109(%rbp) ## 1-byte Spill jne LBB1_6 ## %bb.1: movss -80(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movss -72(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero cvtss2sd %xmm1, %xmm1 subsd %xmm1, %xmm0 movsd LCPI1_0(%rip), %xmm1 ## xmm1 = mem[0],zero ucomisd %xmm1, %xmm0 jae LBB1_4 ## %bb.2: movss -64(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movss -40(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero cvtss2sd %xmm1, %xmm1 subsd %xmm1, %xmm0 movsd LCPI1_1(%rip), %xmm1 ## xmm1 = mem[0],zero ucomisd %xmm1, %xmm0 jb LBB1_4 ## %bb.3: xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $0, -32(%rbp) movb %al, -109(%rbp) ## 1-byte Spill je LBB1_6 LBB1_4: xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $0, -16(%rbp) movb %al, -109(%rbp) ## 1-byte Spill jne LBB1_6 ## %bb.5: cmpl $0, -8(%rbp) setne %al xorb $-1, %al movb %al, -109(%rbp) ## 1-byte Spill LBB1_6: movb -109(%rbp), %al ## 1-byte Reload andb $1, %al movzbl %al, %eax movl %eax, -108(%rbp) LBB1_7: ## =>This Inner Loop Header: Depth=1 xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $0, -104(%rbp) movb %al, -110(%rbp) ## 1-byte Spill jl LBB1_9 ## %bb.8: ## in Loop: Header=BB1_7 Depth=1 cmpl $0, -108(%rbp) setne %al movb %al, -110(%rbp) ## 1-byte Spill LBB1_9: ## in Loop: Header=BB1_7 Depth=1 movb -110(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB1_10 jmp LBB1_120 LBB1_10: ## in Loop: Header=BB1_7 Depth=1 cmpl $0, -16(%rbp) je LBB1_13 ## %bb.11: ## in Loop: Header=BB1_7 Depth=1 cmpl $0, -8(%rbp) je LBB1_13 ## %bb.12: ## in Loop: Header=BB1_7 Depth=1 callq ___VERIFIER_nondet_int movl %eax, -104(%rbp) jmp LBB1_14 LBB1_13: ## in Loop: Header=BB1_7 Depth=1 movl -104(%rbp), %eax addl $-1, %eax movl %eax, -104(%rbp) LBB1_14: ## in Loop: Header=BB1_7 Depth=1 callq ___VERIFIER_nondet_bool movl %eax, -12(%rbp) callq ___VERIFIER_nondet_bool movl %eax, -20(%rbp) callq ___VERIFIER_nondet_float movss %xmm0, -28(%rbp) callq ___VERIFIER_nondet_bool movl %eax, -36(%rbp) callq ___VERIFIER_nondet_float movss %xmm0, -44(%rbp) callq ___VERIFIER_nondet_float movss %xmm0, -52(%rbp) callq ___VERIFIER_nondet_float movss %xmm0, -60(%rbp) callq ___VERIFIER_nondet_float movss %xmm0, -68(%rbp) callq ___VERIFIER_nondet_float movss %xmm0, -76(%rbp) callq ___VERIFIER_nondet_float movss %xmm0, -84(%rbp) callq ___VERIFIER_nondet_bool movl %eax, -92(%rbp) callq ___VERIFIER_nondet_float movss %xmm0, -100(%rbp) movss -40(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm1 movss -60(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 subsd %xmm0, %xmm1 xorl %eax, %eax ## kill: def $al killed $al killed $eax movsd LCPI1_2(%rip), %xmm0 ## xmm0 = mem[0],zero ucomisd %xmm1, %xmm0 movb %al, -111(%rbp) ## 1-byte Spill jb LBB1_119 ## %bb.15: ## in Loop: Header=BB1_7 Depth=1 movss -64(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm1 movss -60(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 subsd %xmm0, %xmm1 xorl %eax, %eax ## kill: def $al killed $al killed $eax movsd LCPI1_3(%rip), %xmm0 ## xmm0 = mem[0],zero ucomisd %xmm1, %xmm0 movb %al, -111(%rbp) ## 1-byte Spill jb LBB1_119 ## %bb.16: ## in Loop: Header=BB1_7 Depth=1 movss -24(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm1 movss -60(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 subsd %xmm0, %xmm1 xorl %eax, %eax ## kill: def $al killed $al killed $eax movsd LCPI1_4(%rip), %xmm0 ## xmm0 = mem[0],zero ucomisd %xmm1, %xmm0 movb %al, -111(%rbp) ## 1-byte Spill jb LBB1_119 ## %bb.17: ## in Loop: Header=BB1_7 Depth=1 movss -96(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm1 movss -60(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 subsd %xmm0, %xmm1 xorl %eax, %eax ## kill: def $al killed $al killed $eax movsd LCPI1_5(%rip), %xmm0 ## xmm0 = mem[0],zero ucomisd %xmm1, %xmm0 movb %al, -111(%rbp) ## 1-byte Spill jb LBB1_119 ## %bb.18: ## in Loop: Header=BB1_7 Depth=1 movss -40(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movss -60(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero cvtss2sd %xmm1, %xmm1 subsd %xmm1, %xmm0 movsd LCPI1_2(%rip), %xmm1 ## xmm1 = mem[0],zero ucomisd %xmm1, %xmm0 jne LBB1_19 jp LBB1_19 jmp LBB1_22 LBB1_19: ## in Loop: Header=BB1_7 Depth=1 movss -64(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movss -60(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero cvtss2sd %xmm1, %xmm1 subsd %xmm1, %xmm0 movsd LCPI1_3(%rip), %xmm1 ## xmm1 = mem[0],zero ucomisd %xmm1, %xmm0 jne LBB1_20 jp LBB1_20 jmp LBB1_22 LBB1_20: ## in Loop: Header=BB1_7 Depth=1 movss -24(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movss -60(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero cvtss2sd %xmm1, %xmm1 subsd %xmm1, %xmm0 movsd LCPI1_4(%rip), %xmm1 ## xmm1 = mem[0],zero ucomisd %xmm1, %xmm0 jne LBB1_21 jp LBB1_21 jmp LBB1_22 LBB1_21: ## in Loop: Header=BB1_7 Depth=1 movss -96(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movss -60(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero cvtss2sd %xmm1, %xmm1 subsd %xmm1, %xmm0 xorl %eax, %eax ## kill: def $al killed $al killed $eax movsd LCPI1_5(%rip), %xmm1 ## xmm1 = mem[0],zero ucomisd %xmm1, %xmm0 movb %al, -111(%rbp) ## 1-byte Spill jne LBB1_119 jp LBB1_119 LBB1_22: ## in Loop: Header=BB1_7 Depth=1 movss -40(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm1 movss -28(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 subsd %xmm0, %xmm1 xorl %eax, %eax ## kill: def $al killed $al killed $eax movsd LCPI1_6(%rip), %xmm0 ## xmm0 = mem[0],zero ucomisd %xmm1, %xmm0 movb %al, -111(%rbp) ## 1-byte Spill jb LBB1_119 ## %bb.23: ## in Loop: Header=BB1_7 Depth=1 movss -72(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm1 movss -28(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 subsd %xmm0, %xmm1 xorl %eax, %eax ## kill: def $al killed $al killed $eax movsd LCPI1_2(%rip), %xmm0 ## xmm0 = mem[0],zero ucomisd %xmm1, %xmm0 movb %al, -111(%rbp) ## 1-byte Spill jb LBB1_119 ## %bb.24: ## in Loop: Header=BB1_7 Depth=1 movss -24(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm1 movss -28(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 subsd %xmm0, %xmm1 xorl %eax, %eax ## kill: def $al killed $al killed $eax movsd LCPI1_7(%rip), %xmm0 ## xmm0 = mem[0],zero ucomisd %xmm1, %xmm0 movb %al, -111(%rbp) ## 1-byte Spill jb LBB1_119 ## %bb.25: ## in Loop: Header=BB1_7 Depth=1 movss -80(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm1 movss -28(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 subsd %xmm0, %xmm1 xorl %eax, %eax ## kill: def $al killed $al killed $eax movsd LCPI1_5(%rip), %xmm0 ## xmm0 = mem[0],zero ucomisd %xmm1, %xmm0 movb %al, -111(%rbp) ## 1-byte Spill jb LBB1_119 ## %bb.26: ## in Loop: Header=BB1_7 Depth=1 movss -40(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movss -28(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero cvtss2sd %xmm1, %xmm1 subsd %xmm1, %xmm0 movsd LCPI1_6(%rip), %xmm1 ## xmm1 = mem[0],zero ucomisd %xmm1, %xmm0 jne LBB1_27 jp LBB1_27 jmp LBB1_30 LBB1_27: ## in Loop: Header=BB1_7 Depth=1 movss -72(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movss -28(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero cvtss2sd %xmm1, %xmm1 subsd %xmm1, %xmm0 movsd LCPI1_2(%rip), %xmm1 ## xmm1 = mem[0],zero ucomisd %xmm1, %xmm0 jne LBB1_28 jp LBB1_28 jmp LBB1_30 LBB1_28: ## in Loop: Header=BB1_7 Depth=1 movss -24(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movss -28(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero cvtss2sd %xmm1, %xmm1 subsd %xmm1, %xmm0 movsd LCPI1_7(%rip), %xmm1 ## xmm1 = mem[0],zero ucomisd %xmm1, %xmm0 jne LBB1_29 jp LBB1_29 jmp LBB1_30 LBB1_29: ## in Loop: Header=BB1_7 Depth=1 movss -80(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movss -28(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero cvtss2sd %xmm1, %xmm1 subsd %xmm1, %xmm0 xorl %eax, %eax ## kill: def $al killed $al killed $eax movsd LCPI1_5(%rip), %xmm1 ## xmm1 = mem[0],zero ucomisd %xmm1, %xmm0 movb %al, -111(%rbp) ## 1-byte Spill jne LBB1_119 jp LBB1_119 LBB1_30: ## in Loop: Header=BB1_7 Depth=1 movss -40(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm1 movss -84(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 subsd %xmm0, %xmm1 xorl %eax, %eax ## kill: def $al killed $al killed $eax movsd LCPI1_8(%rip), %xmm0 ## xmm0 = mem[0],zero ucomisd %xmm1, %xmm0 movb %al, -111(%rbp) ## 1-byte Spill jb LBB1_119 ## %bb.31: ## in Loop: Header=BB1_7 Depth=1 movss -64(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm1 movss -84(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 subsd %xmm0, %xmm1 xorl %eax, %eax ## kill: def $al killed $al killed $eax movsd LCPI1_9(%rip), %xmm0 ## xmm0 = mem[0],zero ucomisd %xmm1, %xmm0 movb %al, -111(%rbp) ## 1-byte Spill jb LBB1_119 ## %bb.32: ## in Loop: Header=BB1_7 Depth=1 movss -56(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm1 movss -84(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 subsd %xmm0, %xmm1 xorl %eax, %eax ## kill: def $al killed $al killed $eax movsd LCPI1_10(%rip), %xmm0 ## xmm0 = mem[0],zero ucomisd %xmm1, %xmm0 movb %al, -111(%rbp) ## 1-byte Spill jb LBB1_119 ## %bb.33: ## in Loop: Header=BB1_7 Depth=1 movss -72(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm1 movss -84(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 subsd %xmm0, %xmm1 xorl %eax, %eax ## kill: def $al killed $al killed $eax movsd LCPI1_7(%rip), %xmm0 ## xmm0 = mem[0],zero ucomisd %xmm1, %xmm0 movb %al, -111(%rbp) ## 1-byte Spill jb LBB1_119 ## %bb.34: ## in Loop: Header=BB1_7 Depth=1 movss -40(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movss -84(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero cvtss2sd %xmm1, %xmm1 subsd %xmm1, %xmm0 movsd LCPI1_8(%rip), %xmm1 ## xmm1 = mem[0],zero ucomisd %xmm1, %xmm0 jne LBB1_35 jp LBB1_35 jmp LBB1_38 LBB1_35: ## in Loop: Header=BB1_7 Depth=1 movss -64(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movss -84(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero cvtss2sd %xmm1, %xmm1 subsd %xmm1, %xmm0 movsd LCPI1_9(%rip), %xmm1 ## xmm1 = mem[0],zero ucomisd %xmm1, %xmm0 jne LBB1_36 jp LBB1_36 jmp LBB1_38 LBB1_36: ## in Loop: Header=BB1_7 Depth=1 movss -56(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movss -84(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero cvtss2sd %xmm1, %xmm1 subsd %xmm1, %xmm0 movsd LCPI1_10(%rip), %xmm1 ## xmm1 = mem[0],zero ucomisd %xmm1, %xmm0 jne LBB1_37 jp LBB1_37 jmp LBB1_38 LBB1_37: ## in Loop: Header=BB1_7 Depth=1 movss -72(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movss -84(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero cvtss2sd %xmm1, %xmm1 subsd %xmm1, %xmm0 xorl %eax, %eax ## kill: def $al killed $al killed $eax movsd LCPI1_7(%rip), %xmm1 ## xmm1 = mem[0],zero ucomisd %xmm1, %xmm0 movb %al, -111(%rbp) ## 1-byte Spill jne LBB1_119 jp LBB1_119 LBB1_38: ## in Loop: Header=BB1_7 Depth=1 movss -40(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm1 movss -76(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 subsd %xmm0, %xmm1 xorl %eax, %eax ## kill: def $al killed $al killed $eax movsd LCPI1_11(%rip), %xmm0 ## xmm0 = mem[0],zero ucomisd %xmm1, %xmm0 movb %al, -111(%rbp) ## 1-byte Spill jb LBB1_119 ## %bb.39: ## in Loop: Header=BB1_7 Depth=1 movss -64(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm1 movss -76(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 subsd %xmm0, %xmm1 xorl %eax, %eax ## kill: def $al killed $al killed $eax movsd LCPI1_10(%rip), %xmm0 ## xmm0 = mem[0],zero ucomisd %xmm1, %xmm0 movb %al, -111(%rbp) ## 1-byte Spill jb LBB1_119 ## %bb.40: ## in Loop: Header=BB1_7 Depth=1 movss -56(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm1 movss -76(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 subsd %xmm0, %xmm1 xorl %eax, %eax ## kill: def $al killed $al killed $eax movsd LCPI1_2(%rip), %xmm0 ## xmm0 = mem[0],zero ucomisd %xmm1, %xmm0 movb %al, -111(%rbp) ## 1-byte Spill jb LBB1_119 ## %bb.41: ## in Loop: Header=BB1_7 Depth=1 movss -24(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm1 movss -76(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 subsd %xmm0, %xmm1 xorl %eax, %eax ## kill: def $al killed $al killed $eax movsd LCPI1_12(%rip), %xmm0 ## xmm0 = mem[0],zero ucomisd %xmm1, %xmm0 movb %al, -111(%rbp) ## 1-byte Spill jb LBB1_119 ## %bb.42: ## in Loop: Header=BB1_7 Depth=1 movss -40(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movss -76(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero cvtss2sd %xmm1, %xmm1 subsd %xmm1, %xmm0 movsd LCPI1_11(%rip), %xmm1 ## xmm1 = mem[0],zero ucomisd %xmm1, %xmm0 jne LBB1_43 jp LBB1_43 jmp LBB1_46 LBB1_43: ## in Loop: Header=BB1_7 Depth=1 movss -64(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movss -76(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero cvtss2sd %xmm1, %xmm1 subsd %xmm1, %xmm0 movsd LCPI1_10(%rip), %xmm1 ## xmm1 = mem[0],zero ucomisd %xmm1, %xmm0 jne LBB1_44 jp LBB1_44 jmp LBB1_46 LBB1_44: ## in Loop: Header=BB1_7 Depth=1 movss -56(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movss -76(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero cvtss2sd %xmm1, %xmm1 subsd %xmm1, %xmm0 movsd LCPI1_2(%rip), %xmm1 ## xmm1 = mem[0],zero ucomisd %xmm1, %xmm0 jne LBB1_45 jp LBB1_45 jmp LBB1_46 LBB1_45: ## in Loop: Header=BB1_7 Depth=1 movss -24(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movss -76(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero cvtss2sd %xmm1, %xmm1 subsd %xmm1, %xmm0 xorl %eax, %eax ## kill: def $al killed $al killed $eax movsd LCPI1_12(%rip), %xmm1 ## xmm1 = mem[0],zero ucomisd %xmm1, %xmm0 movb %al, -111(%rbp) ## 1-byte Spill jne LBB1_119 jp LBB1_119 LBB1_46: ## in Loop: Header=BB1_7 Depth=1 movss -40(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm1 movss -100(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 subsd %xmm0, %xmm1 xorl %eax, %eax ## kill: def $al killed $al killed $eax movsd LCPI1_6(%rip), %xmm0 ## xmm0 = mem[0],zero ucomisd %xmm1, %xmm0 movb %al, -111(%rbp) ## 1-byte Spill jb LBB1_119 ## %bb.47: ## in Loop: Header=BB1_7 Depth=1 movss -64(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm1 movss -100(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 subsd %xmm0, %xmm1 xorl %eax, %eax ## kill: def $al killed $al killed $eax movsd LCPI1_13(%rip), %xmm0 ## xmm0 = mem[0],zero ucomisd %xmm1, %xmm0 movb %al, -111(%rbp) ## 1-byte Spill jb LBB1_119 ## %bb.48: ## in Loop: Header=BB1_7 Depth=1 movss -80(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm1 movss -100(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 subsd %xmm0, %xmm1 xorl %eax, %eax ## kill: def $al killed $al killed $eax movsd LCPI1_7(%rip), %xmm0 ## xmm0 = mem[0],zero ucomisd %xmm1, %xmm0 movb %al, -111(%rbp) ## 1-byte Spill jb LBB1_119 ## %bb.49: ## in Loop: Header=BB1_7 Depth=1 movss -48(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm1 movss -100(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 subsd %xmm0, %xmm1 xorl %eax, %eax ## kill: def $al killed $al killed $eax movsd LCPI1_14(%rip), %xmm0 ## xmm0 = mem[0],zero ucomisd %xmm1, %xmm0 movb %al, -111(%rbp) ## 1-byte Spill jb LBB1_119 ## %bb.50: ## in Loop: Header=BB1_7 Depth=1 movss -40(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movss -100(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero cvtss2sd %xmm1, %xmm1 subsd %xmm1, %xmm0 movsd LCPI1_6(%rip), %xmm1 ## xmm1 = mem[0],zero ucomisd %xmm1, %xmm0 jne LBB1_51 jp LBB1_51 jmp LBB1_54 LBB1_51: ## in Loop: Header=BB1_7 Depth=1 movss -64(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movss -100(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero cvtss2sd %xmm1, %xmm1 subsd %xmm1, %xmm0 movsd LCPI1_13(%rip), %xmm1 ## xmm1 = mem[0],zero ucomisd %xmm1, %xmm0 jne LBB1_52 jp LBB1_52 jmp LBB1_54 LBB1_52: ## in Loop: Header=BB1_7 Depth=1 movss -80(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movss -100(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero cvtss2sd %xmm1, %xmm1 subsd %xmm1, %xmm0 movsd LCPI1_7(%rip), %xmm1 ## xmm1 = mem[0],zero ucomisd %xmm1, %xmm0 jne LBB1_53 jp LBB1_53 jmp LBB1_54 LBB1_53: ## in Loop: Header=BB1_7 Depth=1 movss -48(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movss -100(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero cvtss2sd %xmm1, %xmm1 subsd %xmm1, %xmm0 xorl %eax, %eax ## kill: def $al killed $al killed $eax movsd LCPI1_14(%rip), %xmm1 ## xmm1 = mem[0],zero ucomisd %xmm1, %xmm0 movb %al, -111(%rbp) ## 1-byte Spill jne LBB1_119 jp LBB1_119 LBB1_54: ## in Loop: Header=BB1_7 Depth=1 movss -64(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm1 movss -52(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 subsd %xmm0, %xmm1 xorl %eax, %eax ## kill: def $al killed $al killed $eax movsd LCPI1_10(%rip), %xmm0 ## xmm0 = mem[0],zero ucomisd %xmm1, %xmm0 movb %al, -111(%rbp) ## 1-byte Spill jb LBB1_119 ## %bb.55: ## in Loop: Header=BB1_7 Depth=1 movss -48(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm1 movss -52(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 subsd %xmm0, %xmm1 xorl %eax, %eax ## kill: def $al killed $al killed $eax movsd LCPI1_8(%rip), %xmm0 ## xmm0 = mem[0],zero ucomisd %xmm1, %xmm0 movb %al, -111(%rbp) ## 1-byte Spill jb LBB1_119 ## %bb.56: ## in Loop: Header=BB1_7 Depth=1 movss -24(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm1 movss -52(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 subsd %xmm0, %xmm1 xorl %eax, %eax ## kill: def $al killed $al killed $eax movsd LCPI1_5(%rip), %xmm0 ## xmm0 = mem[0],zero ucomisd %xmm1, %xmm0 movb %al, -111(%rbp) ## 1-byte Spill jb LBB1_119 ## %bb.57: ## in Loop: Header=BB1_7 Depth=1 movss -96(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm1 movss -52(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 subsd %xmm0, %xmm1 xorl %eax, %eax ## kill: def $al killed $al killed $eax movsd LCPI1_15(%rip), %xmm0 ## xmm0 = mem[0],zero ucomisd %xmm1, %xmm0 movb %al, -111(%rbp) ## 1-byte Spill jb LBB1_119 ## %bb.58: ## in Loop: Header=BB1_7 Depth=1 movss -64(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movss -52(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero cvtss2sd %xmm1, %xmm1 subsd %xmm1, %xmm0 movsd LCPI1_10(%rip), %xmm1 ## xmm1 = mem[0],zero ucomisd %xmm1, %xmm0 jne LBB1_59 jp LBB1_59 jmp LBB1_62 LBB1_59: ## in Loop: Header=BB1_7 Depth=1 movss -48(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movss -52(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero cvtss2sd %xmm1, %xmm1 subsd %xmm1, %xmm0 movsd LCPI1_8(%rip), %xmm1 ## xmm1 = mem[0],zero ucomisd %xmm1, %xmm0 jne LBB1_60 jp LBB1_60 jmp LBB1_62 LBB1_60: ## in Loop: Header=BB1_7 Depth=1 movss -24(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movss -52(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero cvtss2sd %xmm1, %xmm1 subsd %xmm1, %xmm0 movsd LCPI1_5(%rip), %xmm1 ## xmm1 = mem[0],zero ucomisd %xmm1, %xmm0 jne LBB1_61 jp LBB1_61 jmp LBB1_62 LBB1_61: ## in Loop: Header=BB1_7 Depth=1 movss -96(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movss -52(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero cvtss2sd %xmm1, %xmm1 subsd %xmm1, %xmm0 xorl %eax, %eax ## kill: def $al killed $al killed $eax movsd LCPI1_15(%rip), %xmm1 ## xmm1 = mem[0],zero ucomisd %xmm1, %xmm0 movb %al, -111(%rbp) ## 1-byte Spill jne LBB1_119 jp LBB1_119 LBB1_62: ## in Loop: Header=BB1_7 Depth=1 movss -40(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm1 movss -68(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 subsd %xmm0, %xmm1 xorl %eax, %eax ## kill: def $al killed $al killed $eax movsd LCPI1_8(%rip), %xmm0 ## xmm0 = mem[0],zero ucomisd %xmm1, %xmm0 movb %al, -111(%rbp) ## 1-byte Spill jb LBB1_119 ## %bb.63: ## in Loop: Header=BB1_7 Depth=1 movss -64(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm1 movss -68(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 subsd %xmm0, %xmm1 xorl %eax, %eax ## kill: def $al killed $al killed $eax movsd LCPI1_11(%rip), %xmm0 ## xmm0 = mem[0],zero ucomisd %xmm1, %xmm0 movb %al, -111(%rbp) ## 1-byte Spill jb LBB1_119 ## %bb.64: ## in Loop: Header=BB1_7 Depth=1 movss -24(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm1 movss -68(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 subsd %xmm0, %xmm1 xorl %eax, %eax ## kill: def $al killed $al killed $eax movsd LCPI1_6(%rip), %xmm0 ## xmm0 = mem[0],zero ucomisd %xmm1, %xmm0 movb %al, -111(%rbp) ## 1-byte Spill jb LBB1_119 ## %bb.65: ## in Loop: Header=BB1_7 Depth=1 movss -80(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm1 movss -68(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 subsd %xmm0, %xmm1 xorl %eax, %eax ## kill: def $al killed $al killed $eax movsd LCPI1_2(%rip), %xmm0 ## xmm0 = mem[0],zero ucomisd %xmm1, %xmm0 movb %al, -111(%rbp) ## 1-byte Spill jb LBB1_119 ## %bb.66: ## in Loop: Header=BB1_7 Depth=1 movss -40(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movss -68(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero cvtss2sd %xmm1, %xmm1 subsd %xmm1, %xmm0 movsd LCPI1_8(%rip), %xmm1 ## xmm1 = mem[0],zero ucomisd %xmm1, %xmm0 jne LBB1_67 jp LBB1_67 jmp LBB1_70 LBB1_67: ## in Loop: Header=BB1_7 Depth=1 movss -64(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movss -68(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero cvtss2sd %xmm1, %xmm1 subsd %xmm1, %xmm0 movsd LCPI1_11(%rip), %xmm1 ## xmm1 = mem[0],zero ucomisd %xmm1, %xmm0 jne LBB1_68 jp LBB1_68 jmp LBB1_70 LBB1_68: ## in Loop: Header=BB1_7 Depth=1 movss -24(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movss -68(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero cvtss2sd %xmm1, %xmm1 subsd %xmm1, %xmm0 movsd LCPI1_6(%rip), %xmm1 ## xmm1 = mem[0],zero ucomisd %xmm1, %xmm0 jne LBB1_69 jp LBB1_69 jmp LBB1_70 LBB1_69: ## in Loop: Header=BB1_7 Depth=1 movss -80(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movss -68(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero cvtss2sd %xmm1, %xmm1 subsd %xmm1, %xmm0 xorl %eax, %eax ## kill: def $al killed $al killed $eax movsd LCPI1_2(%rip), %xmm1 ## xmm1 = mem[0],zero ucomisd %xmm1, %xmm0 movb %al, -111(%rbp) ## 1-byte Spill jne LBB1_119 jp LBB1_119 LBB1_70: ## in Loop: Header=BB1_7 Depth=1 movss -40(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm1 movss -44(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 subsd %xmm0, %xmm1 xorl %eax, %eax ## kill: def $al killed $al killed $eax movsd LCPI1_16(%rip), %xmm0 ## xmm0 = mem[0],zero ucomisd %xmm1, %xmm0 movb %al, -111(%rbp) ## 1-byte Spill jb LBB1_119 ## %bb.71: ## in Loop: Header=BB1_7 Depth=1 movss -80(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm1 movss -44(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 subsd %xmm0, %xmm1 xorl %eax, %eax ## kill: def $al killed $al killed $eax movsd LCPI1_8(%rip), %xmm0 ## xmm0 = mem[0],zero ucomisd %xmm1, %xmm0 movb %al, -111(%rbp) ## 1-byte Spill jb LBB1_119 ## %bb.72: ## in Loop: Header=BB1_7 Depth=1 movss -56(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm1 movss -44(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 subsd %xmm0, %xmm1 xorl %eax, %eax ## kill: def $al killed $al killed $eax movsd LCPI1_16(%rip), %xmm0 ## xmm0 = mem[0],zero ucomisd %xmm1, %xmm0 movb %al, -111(%rbp) ## 1-byte Spill jb LBB1_119 ## %bb.73: ## in Loop: Header=BB1_7 Depth=1 movss -24(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm1 movss -44(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 subsd %xmm0, %xmm1 xorl %eax, %eax ## kill: def $al killed $al killed $eax movsd LCPI1_14(%rip), %xmm0 ## xmm0 = mem[0],zero ucomisd %xmm1, %xmm0 movb %al, -111(%rbp) ## 1-byte Spill jb LBB1_119 ## %bb.74: ## in Loop: Header=BB1_7 Depth=1 movss -40(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movss -44(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero cvtss2sd %xmm1, %xmm1 subsd %xmm1, %xmm0 movsd LCPI1_16(%rip), %xmm1 ## xmm1 = mem[0],zero ucomisd %xmm1, %xmm0 jne LBB1_75 jp LBB1_75 jmp LBB1_78 LBB1_75: ## in Loop: Header=BB1_7 Depth=1 movss -80(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movss -44(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero cvtss2sd %xmm1, %xmm1 subsd %xmm1, %xmm0 movsd LCPI1_8(%rip), %xmm1 ## xmm1 = mem[0],zero ucomisd %xmm1, %xmm0 jne LBB1_76 jp LBB1_76 jmp LBB1_78 LBB1_76: ## in Loop: Header=BB1_7 Depth=1 movss -56(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movss -44(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero cvtss2sd %xmm1, %xmm1 subsd %xmm1, %xmm0 movsd LCPI1_16(%rip), %xmm1 ## xmm1 = mem[0],zero ucomisd %xmm1, %xmm0 jne LBB1_77 jp LBB1_77 jmp LBB1_78 LBB1_77: ## in Loop: Header=BB1_7 Depth=1 movss -24(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movss -44(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero cvtss2sd %xmm1, %xmm1 subsd %xmm1, %xmm0 xorl %eax, %eax ## kill: def $al killed $al killed $eax movsd LCPI1_14(%rip), %xmm1 ## xmm1 = mem[0],zero ucomisd %xmm1, %xmm0 movb %al, -111(%rbp) ## 1-byte Spill jne LBB1_119 jp LBB1_119 LBB1_78: ## in Loop: Header=BB1_7 Depth=1 movl -32(%rbp), %eax movl %eax, -116(%rbp) ## 4-byte Spill movb $1, %al cmpl $0, -36(%rbp) movb %al, -112(%rbp) ## 1-byte Spill jne LBB1_82 ## %bb.79: ## in Loop: Header=BB1_7 Depth=1 movss -68(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movss -44(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero cvtss2sd %xmm1, %xmm1 subsd %xmm1, %xmm0 xorl %eax, %eax ## kill: def $al killed $al killed $eax movsd LCPI1_1(%rip), %xmm1 ## xmm1 = mem[0],zero ucomisd %xmm1, %xmm0 movb %al, -117(%rbp) ## 1-byte Spill jb LBB1_81 ## %bb.80: ## in Loop: Header=BB1_7 Depth=1 movss -84(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movss -76(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero cvtss2sd %xmm1, %xmm1 subsd %xmm1, %xmm0 movsd LCPI1_0(%rip), %xmm1 ## xmm1 = mem[0],zero ucomisd %xmm1, %xmm0 setae %al xorb $-1, %al movb %al, -117(%rbp) ## 1-byte Spill LBB1_81: ## in Loop: Header=BB1_7 Depth=1 movb -117(%rbp), %al ## 1-byte Reload xorb $-1, %al movb %al, -112(%rbp) ## 1-byte Spill LBB1_82: ## in Loop: Header=BB1_7 Depth=1 movl -116(%rbp), %ecx ## 4-byte Reload movb -112(%rbp), %al ## 1-byte Reload andb $1, %al movzbl %al, %edx xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl %edx, %ecx movb %al, -118(%rbp) ## 1-byte Spill jne LBB1_118 ## %bb.83: ## in Loop: Header=BB1_7 Depth=1 movl -88(%rbp), %eax movl %eax, -124(%rbp) ## 4-byte Spill movb $1, %al cmpl $0, -92(%rbp) movb %al, -119(%rbp) ## 1-byte Spill jne LBB1_89 ## %bb.84: ## in Loop: Header=BB1_7 Depth=1 movb $1, %al cmpl $0, -36(%rbp) movb %al, -125(%rbp) ## 1-byte Spill jne LBB1_88 ## %bb.85: ## in Loop: Header=BB1_7 Depth=1 movss -68(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movss -44(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero cvtss2sd %xmm1, %xmm1 subsd %xmm1, %xmm0 xorl %eax, %eax ## kill: def $al killed $al killed $eax movsd LCPI1_1(%rip), %xmm1 ## xmm1 = mem[0],zero ucomisd %xmm1, %xmm0 movb %al, -126(%rbp) ## 1-byte Spill jb LBB1_87 ## %bb.86: ## in Loop: Header=BB1_7 Depth=1 movss -84(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movss -76(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero cvtss2sd %xmm1, %xmm1 subsd %xmm1, %xmm0 movsd LCPI1_0(%rip), %xmm1 ## xmm1 = mem[0],zero ucomisd %xmm1, %xmm0 setae %al xorb $-1, %al movb %al, -126(%rbp) ## 1-byte Spill LBB1_87: ## in Loop: Header=BB1_7 Depth=1 movb -126(%rbp), %al ## 1-byte Reload xorb $-1, %al movb %al, -125(%rbp) ## 1-byte Spill LBB1_88: ## in Loop: Header=BB1_7 Depth=1 movb -125(%rbp), %al ## 1-byte Reload xorb $-1, %al movb %al, -119(%rbp) ## 1-byte Spill LBB1_89: ## in Loop: Header=BB1_7 Depth=1 movl -124(%rbp), %ecx ## 4-byte Reload movb -119(%rbp), %al ## 1-byte Reload andb $1, %al movzbl %al, %edx xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl %edx, %ecx movb %al, -118(%rbp) ## 1-byte Spill jne LBB1_118 ## %bb.90: ## in Loop: Header=BB1_7 Depth=1 movl -20(%rbp), %eax movl %eax, -132(%rbp) ## 4-byte Spill cmpl $0, -16(%rbp) je LBB1_92 ## %bb.91: ## in Loop: Header=BB1_7 Depth=1 xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $0, -8(%rbp) movb %al, -133(%rbp) ## 1-byte Spill jne LBB1_102 LBB1_92: ## in Loop: Header=BB1_7 Depth=1 cmpl $0, -16(%rbp) je LBB1_94 ## %bb.93: ## in Loop: Header=BB1_7 Depth=1 movb $1, %al cmpl $0, -8(%rbp) movb %al, -134(%rbp) ## 1-byte Spill jne LBB1_101 LBB1_94: ## in Loop: Header=BB1_7 Depth=1 movss -80(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movss -72(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero cvtss2sd %xmm1, %xmm1 subsd %xmm1, %xmm0 movb $1, %al movsd LCPI1_0(%rip), %xmm1 ## xmm1 = mem[0],zero ucomisd %xmm1, %xmm0 movb %al, -135(%rbp) ## 1-byte Spill jae LBB1_100 ## %bb.95: ## in Loop: Header=BB1_7 Depth=1 movss -64(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movss -40(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero cvtss2sd %xmm1, %xmm1 subsd %xmm1, %xmm0 movb $1, %al movsd LCPI1_1(%rip), %xmm1 ## xmm1 = mem[0],zero ucomisd %xmm1, %xmm0 movb %al, -135(%rbp) ## 1-byte Spill jb LBB1_100 ## %bb.96: ## in Loop: Header=BB1_7 Depth=1 movss -80(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movss -72(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero cvtss2sd %xmm1, %xmm1 subsd %xmm1, %xmm0 movsd LCPI1_0(%rip), %xmm1 ## xmm1 = mem[0],zero ucomisd %xmm1, %xmm0 jae LBB1_99 ## %bb.97: ## in Loop: Header=BB1_7 Depth=1 movss -64(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movss -40(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero cvtss2sd %xmm1, %xmm1 subsd %xmm1, %xmm0 movsd LCPI1_1(%rip), %xmm1 ## xmm1 = mem[0],zero ucomisd %xmm1, %xmm0 jb LBB1_99 ## %bb.98: ## in Loop: Header=BB1_7 Depth=1 movb $1, %al cmpl $0, -32(%rbp) movb %al, -135(%rbp) ## 1-byte Spill je LBB1_100 LBB1_99: ## in Loop: Header=BB1_7 Depth=1 cmpl $0, -16(%rbp) setne %al movb %al, -135(%rbp) ## 1-byte Spill LBB1_100: ## in Loop: Header=BB1_7 Depth=1 movb -135(%rbp), %al ## 1-byte Reload movb %al, -134(%rbp) ## 1-byte Spill LBB1_101: ## in Loop: Header=BB1_7 Depth=1 movb -134(%rbp), %al ## 1-byte Reload movb %al, -133(%rbp) ## 1-byte Spill LBB1_102: ## in Loop: Header=BB1_7 Depth=1 movl -132(%rbp), %ecx ## 4-byte Reload movb -133(%rbp), %al ## 1-byte Reload andb $1, %al movzbl %al, %edx xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl %edx, %ecx movb %al, -118(%rbp) ## 1-byte Spill jne LBB1_118 ## %bb.103: ## in Loop: Header=BB1_7 Depth=1 movl -12(%rbp), %eax movl %eax, -140(%rbp) ## 4-byte Spill cmpl $0, -16(%rbp) je LBB1_105 ## %bb.104: ## in Loop: Header=BB1_7 Depth=1 xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $0, -8(%rbp) movb %al, -141(%rbp) ## 1-byte Spill jne LBB1_117 LBB1_105: ## in Loop: Header=BB1_7 Depth=1 cmpl $0, -16(%rbp) je LBB1_107 ## %bb.106: ## in Loop: Header=BB1_7 Depth=1 movb $1, %al cmpl $0, -8(%rbp) movb %al, -142(%rbp) ## 1-byte Spill jne LBB1_116 LBB1_107: ## in Loop: Header=BB1_7 Depth=1 movss -80(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movss -72(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero cvtss2sd %xmm1, %xmm1 subsd %xmm1, %xmm0 movsd LCPI1_0(%rip), %xmm1 ## xmm1 = mem[0],zero ucomisd %xmm1, %xmm0 jae LBB1_110 ## %bb.108: ## in Loop: Header=BB1_7 Depth=1 movss -64(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movss -40(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero cvtss2sd %xmm1, %xmm1 subsd %xmm1, %xmm0 movsd LCPI1_1(%rip), %xmm1 ## xmm1 = mem[0],zero ucomisd %xmm1, %xmm0 jb LBB1_110 ## %bb.109: ## in Loop: Header=BB1_7 Depth=1 movb $1, %al cmpl $0, -32(%rbp) movb %al, -143(%rbp) ## 1-byte Spill je LBB1_115 LBB1_110: ## in Loop: Header=BB1_7 Depth=1 cmpl $0, -88(%rbp) jne LBB1_114 ## %bb.111: ## in Loop: Header=BB1_7 Depth=1 movss -80(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movss -72(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero cvtss2sd %xmm1, %xmm1 subsd %xmm1, %xmm0 movb $1, %al movsd LCPI1_0(%rip), %xmm1 ## xmm1 = mem[0],zero ucomisd %xmm1, %xmm0 movb %al, -143(%rbp) ## 1-byte Spill jae LBB1_115 ## %bb.112: ## in Loop: Header=BB1_7 Depth=1 movss -64(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movss -40(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero cvtss2sd %xmm1, %xmm1 subsd %xmm1, %xmm0 movb $1, %al movsd LCPI1_1(%rip), %xmm1 ## xmm1 = mem[0],zero ucomisd %xmm1, %xmm0 movb %al, -143(%rbp) ## 1-byte Spill jb LBB1_115 ## %bb.113: ## in Loop: Header=BB1_7 Depth=1 movb $1, %al cmpl $0, -32(%rbp) movb %al, -143(%rbp) ## 1-byte Spill jne LBB1_115 LBB1_114: ## in Loop: Header=BB1_7 Depth=1 cmpl $0, -8(%rbp) setne %al movb %al, -143(%rbp) ## 1-byte Spill LBB1_115: ## in Loop: Header=BB1_7 Depth=1 movb -143(%rbp), %al ## 1-byte Reload movb %al, -142(%rbp) ## 1-byte Spill LBB1_116: ## in Loop: Header=BB1_7 Depth=1 movb -142(%rbp), %al ## 1-byte Reload movb %al, -141(%rbp) ## 1-byte Spill LBB1_117: ## in Loop: Header=BB1_7 Depth=1 movl -140(%rbp), %eax ## 4-byte Reload movb -141(%rbp), %cl ## 1-byte Reload andb $1, %cl movzbl %cl, %ecx cmpl %ecx, %eax sete %al movb %al, -118(%rbp) ## 1-byte Spill LBB1_118: ## in Loop: Header=BB1_7 Depth=1 movb -118(%rbp), %al ## 1-byte Reload movb %al, -111(%rbp) ## 1-byte Spill LBB1_119: ## in Loop: Header=BB1_7 Depth=1 movb -111(%rbp), %al ## 1-byte Reload andb $1, %al movzbl %al, %eax movl %eax, -108(%rbp) movl -12(%rbp), %eax movl %eax, -8(%rbp) movl -20(%rbp), %eax movl %eax, -16(%rbp) movss -28(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, -24(%rbp) movl -36(%rbp), %eax movl %eax, -32(%rbp) movss -44(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, -40(%rbp) movss -52(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, -48(%rbp) movss -60(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, -56(%rbp) movss -68(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, -64(%rbp) movss -76(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, -72(%rbp) movss -84(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, -80(%rbp) movl -92(%rbp), %eax movl %eax, -88(%rbp) movss -100(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, -96(%rbp) jmp LBB1_7 LBB1_120: movl -4(%rbp), %eax addq $144, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/470986.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] stur wzr, [x29, #-8] stur wzr, [x29, #-12] mov x0, #0 bl _time ; kill: def $w0 killed $w0 killed $x0 bl _srand bl _rand mov w9, #1000 sdiv w8, w0, w9 mul w8, w8, w9 subs w8, w0, w8 add w8, w8, #1 stur w8, [x29, #-8] mov x9, sp adrp x8, l_.str.1@PAGE add x8, x8, l_.str.1@PAGEOFF str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf b LBB0_1 LBB0_1: ; =>This Loop Header: Depth=1 ; Child Loop BB0_7 Depth 2 ldur w8, [x29, #-12] ldur w9, [x29, #-8] subs w8, w8, w9 cset w8, eq tbnz w8, #0, LBB0_24 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 mov x9, sp adrp x8, l_.str.2@PAGE add x8, x8, l_.str.2@PAGEOFF str x8, [x9] 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.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _scanf ldur w9, [x29, #-12] mov w8, #1000 subs w8, w8, w9 cset w8, lo tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-12] subs w8, w8, #0 cset w8, hs tbnz w8, #0, LBB0_5 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_1 Depth=1 mov x9, sp adrp x8, l_.str.5@PAGE add x8, x8, l_.str.5@PAGEOFF str x8, [x9] adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf b LBB0_23 LBB0_5: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-12] ldur w9, [x29, #-8] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_16 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_1 Depth=1 mov x9, sp adrp x8, l_.str.6@PAGE add x8, x8, l_.str.6@PAGEOFF str x8, [x9] adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf b LBB0_7 LBB0_7: ; Parent Loop BB0_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldur w8, [x29, #-12] ldur w9, [x29, #-8] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_15 b LBB0_8 LBB0_8: ; in Loop: Header=BB0_7 Depth=2 mov x9, sp adrp x8, l_.str.7@PAGE add x8, x8, l_.str.7@PAGEOFF str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF str x0, [sp, #8] ; 8-byte Folded Spill bl _printf ldr x0, [sp, #8] ; 8-byte Folded Reload mov x9, sp sub x8, x29, #13 str x8, [x9] bl _scanf ldursb w8, [x29, #-13] subs w8, w8, #121 cset w8, ne tbnz w8, #0, LBB0_10 b LBB0_9 LBB0_9: ; in Loop: Header=BB0_7 Depth=2 bl _rand mov w9, #1000 sdiv w8, w0, w9 mul w8, w8, w9 subs w8, w0, w8 add w8, w8, #1 stur w8, [x29, #-8] b LBB0_14 LBB0_10: ; in Loop: Header=BB0_7 Depth=2 ldursb w8, [x29, #-13] subs w8, w8, #110 cset w8, ne tbnz w8, #0, LBB0_12 b LBB0_11 LBB0_11: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-8] stur w8, [x29, #-12] b LBB0_15 LBB0_12: ; in Loop: Header=BB0_7 Depth=2 mov x9, sp adrp x8, l_.str.9@PAGE add x8, x8, l_.str.9@PAGEOFF str x8, [x9] adrp x0, l_.str.8@PAGE add x0, x0, l_.str.8@PAGEOFF bl _printf b LBB0_13 LBB0_13: ; in Loop: Header=BB0_7 Depth=2 b LBB0_14 LBB0_14: ; in Loop: Header=BB0_7 Depth=2 b LBB0_7 LBB0_15: ; in Loop: Header=BB0_1 Depth=1 b LBB0_22 LBB0_16: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-12] ldur w9, [x29, #-8] subs w8, w8, w9 cset w8, hi tbnz w8, #0, LBB0_18 b LBB0_17 LBB0_17: ; in Loop: Header=BB0_1 Depth=1 mov x9, sp adrp x8, l_.str.10@PAGE add x8, x8, l_.str.10@PAGEOFF str x8, [x9] adrp x0, l_.str.8@PAGE add x0, x0, l_.str.8@PAGEOFF bl _printf b LBB0_21 LBB0_18: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-12] ldur w9, [x29, #-8] subs w8, w8, w9 cset w8, lo tbnz w8, #0, LBB0_20 b LBB0_19 LBB0_19: ; in Loop: Header=BB0_1 Depth=1 mov x9, sp adrp x8, l_.str.11@PAGE add x8, x8, l_.str.11@PAGEOFF str x8, [x9] adrp x0, l_.str.8@PAGE add x0, x0, l_.str.8@PAGEOFF bl _printf b LBB0_20 LBB0_20: ; in Loop: Header=BB0_1 Depth=1 b LBB0_21 LBB0_21: ; in Loop: Header=BB0_1 Depth=1 b LBB0_22 LBB0_22: ; in Loop: Header=BB0_1 Depth=1 b LBB0_23 LBB0_23: ; in Loop: Header=BB0_1 Depth=1 b LBB0_1 LBB0_24: 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 "%s" l_.str.1: ; @.str.1 .asciz "I have a number between 1 and 1000. Can you guess my number?\n\n" l_.str.2: ; @.str.2 .asciz "Please type your first guess: " l_.str.3: ; @.str.3 .asciz "%u" l_.str.4: ; @.str.4 .asciz "%s\n\n" l_.str.5: ; @.str.5 .asciz "Please input number 0~1000" l_.str.6: ; @.str.6 .asciz "Excellent! You guessed the number!" l_.str.7: ; @.str.7 .asciz "Would you like to play again?(y or n)" l_.str.8: ; @.str.8 .asciz "%s\n" l_.str.9: ; @.str.9 .asciz "Please input \"y\" or \"n\"!" l_.str.10: ; @.str.10 .asciz "Too low, Try again." l_.str.11: ; @.str.11 .asciz "Too high, Try again." .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) movl $0, -8(%rbp) movl $0, -12(%rbp) xorl %eax, %eax movl %eax, %edi callq _time movl %eax, %edi callq _srand callq _rand movl $1000, %ecx ## imm = 0x3E8 cltd idivl %ecx addl $1, %edx movl %edx, -8(%rbp) leaq L_.str(%rip), %rdi leaq L_.str.1(%rip), %rsi movb $0, %al callq _printf LBB0_1: ## =>This Loop Header: Depth=1 ## Child Loop BB0_7 Depth 2 movl -12(%rbp), %eax cmpl -8(%rbp), %eax je LBB0_24 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 leaq L_.str(%rip), %rdi leaq L_.str.2(%rip), %rsi movb $0, %al callq _printf leaq L_.str.3(%rip), %rdi leaq -12(%rbp), %rsi movb $0, %al callq _scanf movl $1000, %eax ## imm = 0x3E8 cmpl -12(%rbp), %eax jb LBB0_4 ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 cmpl $0, -12(%rbp) jae LBB0_5 LBB0_4: ## in Loop: Header=BB0_1 Depth=1 leaq L_.str.4(%rip), %rdi leaq L_.str.5(%rip), %rsi movb $0, %al callq _printf jmp LBB0_23 LBB0_5: ## in Loop: Header=BB0_1 Depth=1 movl -12(%rbp), %eax cmpl -8(%rbp), %eax jne LBB0_16 ## %bb.6: ## in Loop: Header=BB0_1 Depth=1 leaq L_.str.4(%rip), %rdi leaq L_.str.6(%rip), %rsi movb $0, %al callq _printf LBB0_7: ## Parent Loop BB0_1 Depth=1 ## => This Inner Loop Header: Depth=2 movl -12(%rbp), %eax cmpl -8(%rbp), %eax jne LBB0_15 ## %bb.8: ## in Loop: Header=BB0_7 Depth=2 leaq L_.str(%rip), %rdi leaq L_.str.7(%rip), %rsi movb $0, %al callq _printf leaq L_.str(%rip), %rdi leaq -13(%rbp), %rsi movb $0, %al callq _scanf movsbl -13(%rbp), %eax cmpl $121, %eax jne LBB0_10 ## %bb.9: ## in Loop: Header=BB0_7 Depth=2 callq _rand movl $1000, %ecx ## imm = 0x3E8 cltd idivl %ecx addl $1, %edx movl %edx, -8(%rbp) jmp LBB0_14 LBB0_10: ## in Loop: Header=BB0_7 Depth=2 movsbl -13(%rbp), %eax cmpl $110, %eax jne LBB0_12 ## %bb.11: ## in Loop: Header=BB0_1 Depth=1 movl -8(%rbp), %eax movl %eax, -12(%rbp) jmp LBB0_15 LBB0_12: ## in Loop: Header=BB0_7 Depth=2 leaq L_.str.8(%rip), %rdi leaq L_.str.9(%rip), %rsi movb $0, %al callq _printf ## %bb.13: ## in Loop: Header=BB0_7 Depth=2 jmp LBB0_14 LBB0_14: ## in Loop: Header=BB0_7 Depth=2 jmp LBB0_7 LBB0_15: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_22 LBB0_16: ## in Loop: Header=BB0_1 Depth=1 movl -12(%rbp), %eax cmpl -8(%rbp), %eax ja LBB0_18 ## %bb.17: ## in Loop: Header=BB0_1 Depth=1 leaq L_.str.8(%rip), %rdi leaq L_.str.10(%rip), %rsi movb $0, %al callq _printf jmp LBB0_21 LBB0_18: ## in Loop: Header=BB0_1 Depth=1 movl -12(%rbp), %eax cmpl -8(%rbp), %eax jb LBB0_20 ## %bb.19: ## in Loop: Header=BB0_1 Depth=1 leaq L_.str.8(%rip), %rdi leaq L_.str.11(%rip), %rsi movb $0, %al callq _printf LBB0_20: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_21 LBB0_21: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_22 LBB0_22: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_23 LBB0_23: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_1 LBB0_24: movl -4(%rbp), %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%s" L_.str.1: ## @.str.1 .asciz "I have a number between 1 and 1000. Can you guess my number?\n\n" L_.str.2: ## @.str.2 .asciz "Please type your first guess: " L_.str.3: ## @.str.3 .asciz "%u" L_.str.4: ## @.str.4 .asciz "%s\n\n" L_.str.5: ## @.str.5 .asciz "Please input number 0~1000" L_.str.6: ## @.str.6 .asciz "Excellent! You guessed the number!" L_.str.7: ## @.str.7 .asciz "Would you like to play again?(y or n)" L_.str.8: ## @.str.8 .asciz "%s\n" L_.str.9: ## @.str.9 .asciz "Please input \"y\" or \"n\"!" L_.str.10: ## @.str.10 .asciz "Too low, Try again." L_.str.11: ## @.str.11 .asciz "Too high, Try again." .subsections_via_symbols
the_stack_data/28262897.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _A_output ; -- Begin function A_output .p2align 2 _A_output: ; @A_output .cfi_startproc ; %bb.0: ret .cfi_endproc ; -- End function .globl _B_output ; -- Begin function B_output .p2align 2 _B_output: ; @B_output .cfi_startproc ; %bb.0: ret .cfi_endproc ; -- End function .globl _A_input ; -- Begin function A_input .p2align 2 _A_input: ; @A_input .cfi_startproc ; %bb.0: ret .cfi_endproc ; -- End function .globl _A_timerinterrupt ; -- Begin function A_timerinterrupt .p2align 2 _A_timerinterrupt: ; @A_timerinterrupt .cfi_startproc ; %bb.0: ret .cfi_endproc ; -- End function .globl _A_init ; -- Begin function A_init .p2align 2 _A_init: ; @A_init .cfi_startproc ; %bb.0: ret .cfi_endproc ; -- End function .globl _B_input ; -- Begin function B_input .p2align 2 _B_input: ; @B_input .cfi_startproc ; %bb.0: ret .cfi_endproc ; -- End function .globl _B_timerinterrupt ; -- Begin function B_timerinterrupt .p2align 2 _B_timerinterrupt: ; @B_timerinterrupt .cfi_startproc ; %bb.0: ret .cfi_endproc ; -- End function .globl _B_init ; -- Begin function B_init .p2align 2 _B_init: ; @B_init .cfi_startproc ; %bb.0: ret .cfi_endproc ; -- End function .globl _isNumber ; -- Begin function isNumber .p2align 2 _isNumber: ; @isNumber .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp] b LBB8_1 LBB8_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp] ldrb w8, [x8] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB8_6 b LBB8_2 LBB8_2: ; in Loop: Header=BB8_1 Depth=1 ldr x8, [sp] ldrsb w0, [x8] bl _isdigit subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB8_4 b LBB8_3 LBB8_3: stur wzr, [x29, #-4] b LBB8_7 LBB8_4: ; in Loop: Header=BB8_1 Depth=1 ldr x8, [sp] add x8, x8, #1 str x8, [sp] b LBB8_5 LBB8_5: ; in Loop: Header=BB8_1 Depth=1 b LBB8_1 LBB8_6: mov w8, #1 stur w8, [x29, #-4] b LBB8_7 LBB8_7: 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, #336 .cfi_def_cfa_offset 336 stp x28, x27, [sp, #304] ; 16-byte Folded Spill stp x29, x30, [sp, #320] ; 16-byte Folded Spill add x29, sp, #320 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w27, -24 .cfi_offset w28, -32 sub x8, x29, #96 str x8, [sp, #56] ; 8-byte Folded Spill adrp x8, _optarg@GOTPAGE ldr x8, [x8, _optarg@GOTPAGEOFF] str x8, [sp, #64] ; 8-byte Folded Spill adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] str x8, [sp, #72] ; 8-byte Folded Spill adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] str wzr, [sp, #124] str w0, [sp, #120] str x1, [sp, #112] ldr w8, [sp, #120] subs w8, w8, #5 cset w8, eq tbnz w8, #0, LBB9_2 b LBB9_1 LBB9_1: ldr x8, [sp, #72] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF bl _fprintf ldr x8, [sp, #112] ldr x8, [x8] mov x9, sp str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf mov w8, #-1 str w8, [sp, #124] b LBB9_66 LBB9_2: b LBB9_3 LBB9_3: ; =>This Inner Loop Header: Depth=1 ldr w0, [sp, #120] ldr x1, [sp, #112] adrp x2, l_.str.2@PAGE add x2, x2, l_.str.2@PAGEOFF bl _getopt str w0, [sp, #88] adds w8, w0, #1 cset w8, eq tbnz w8, #0, LBB9_16 b LBB9_4 LBB9_4: ; in Loop: Header=BB9_3 Depth=1 ldr w8, [sp, #88] str w8, [sp, #52] ; 4-byte Folded Spill subs w8, w8, #63 cset w8, eq tbnz w8, #0, LBB9_13 b LBB9_5 LBB9_5: ; in Loop: Header=BB9_3 Depth=1 ldr w8, [sp, #52] ; 4-byte Folded Reload subs w8, w8, #115 cset w8, eq tbnz w8, #0, LBB9_7 b LBB9_6 LBB9_6: ; in Loop: Header=BB9_3 Depth=1 ldr w8, [sp, #52] ; 4-byte Folded Reload subs w8, w8, #119 cset w8, eq tbnz w8, #0, LBB9_10 b LBB9_14 LBB9_7: ; in Loop: Header=BB9_3 Depth=1 ldr x8, [sp, #64] ; 8-byte Folded Reload ldr x0, [x8] bl _isNumber subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB9_9 b LBB9_8 LBB9_8: ldr x8, [sp, #72] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.3@PAGE add x1, x1, l_.str.3@PAGEOFF bl _fprintf mov w8, #-1 str w8, [sp, #124] b LBB9_66 LBB9_9: ; in Loop: Header=BB9_3 Depth=1 ldr x8, [sp, #64] ; 8-byte Folded Reload ldr x0, [x8] bl _atoi str w0, [sp, #84] b LBB9_15 LBB9_10: ; in Loop: Header=BB9_3 Depth=1 ldr x8, [sp, #64] ; 8-byte Folded Reload ldr x0, [x8] bl _isNumber subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB9_12 b LBB9_11 LBB9_11: ldr x8, [sp, #72] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.4@PAGE add x1, x1, l_.str.4@PAGEOFF bl _fprintf mov w8, #-1 str w8, [sp, #124] b LBB9_66 LBB9_12: ; in Loop: Header=BB9_3 Depth=1 ldr x8, [sp, #64] ; 8-byte Folded Reload ldr x0, [x8] bl _atoi adrp x8, _WINSIZE@GOTPAGE ldr x8, [x8, _WINSIZE@GOTPAGEOFF] str w0, [x8] b LBB9_15 LBB9_13: ; in Loop: Header=BB9_3 Depth=1 b LBB9_15 LBB9_14: ldr x8, [sp, #112] ldr x8, [x8] mov x9, sp str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf mov w8, #-1 str w8, [sp, #124] b LBB9_66 LBB9_15: ; in Loop: Header=BB9_3 Depth=1 b LBB9_3 LBB9_16: ldr w0, [sp, #84] bl _init bl _A_init bl _B_init b LBB9_17 LBB9_17: ; =>This Loop Header: Depth=1 ; Child Loop BB9_48 Depth 2 ; Child Loop BB9_33 Depth 2 ; Child Loop BB9_38 Depth 2 adrp x8, _evlist@PAGE ldr x8, [x8, _evlist@PAGEOFF] str x8, [sp, #104] ldr x8, [sp, #104] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB9_19 b LBB9_18 LBB9_18: b LBB9_65 LBB9_19: ; in Loop: Header=BB9_17 Depth=1 adrp x8, _evlist@PAGE ldr x9, [x8, _evlist@PAGEOFF] ldr x9, [x9, #32] str x9, [x8, _evlist@PAGEOFF] ldr x8, [x8, _evlist@PAGEOFF] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB9_21 b LBB9_20 LBB9_20: ; in Loop: Header=BB9_17 Depth=1 adrp x8, _evlist@PAGE ldr x8, [x8, _evlist@PAGEOFF] ; kill: def $x9 killed $xzr str xzr, [x8, #24] b LBB9_21 LBB9_21: ; in Loop: Header=BB9_17 Depth=1 adrp x8, _TRACE@PAGE ldr w8, [x8, _TRACE@PAGEOFF] subs w8, w8, #2 cset w8, lt tbnz w8, #0, LBB9_29 b LBB9_22 LBB9_22: ; in Loop: Header=BB9_17 Depth=1 ldr x8, [sp, #104] ldr s0, [x8] fcvt d0, s0 mov x8, sp str d0, [x8] adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf ldr x8, [sp, #104] ldr w9, [x8, #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 ldr x8, [sp, #104] ldr w8, [x8, #4] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB9_24 b LBB9_23 LBB9_23: ; in Loop: Header=BB9_17 Depth=1 adrp x0, l_.str.7@PAGE add x0, x0, l_.str.7@PAGEOFF bl _printf b LBB9_28 LBB9_24: ; in Loop: Header=BB9_17 Depth=1 ldr x8, [sp, #104] ldr w8, [x8, #4] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB9_26 b LBB9_25 LBB9_25: ; in Loop: Header=BB9_17 Depth=1 adrp x0, l_.str.8@PAGE add x0, x0, l_.str.8@PAGEOFF bl _printf b LBB9_27 LBB9_26: ; in Loop: Header=BB9_17 Depth=1 adrp x0, l_.str.9@PAGE add x0, x0, l_.str.9@PAGEOFF bl _printf b LBB9_27 LBB9_27: ; in Loop: Header=BB9_17 Depth=1 b LBB9_28 LBB9_28: ; in Loop: Header=BB9_17 Depth=1 ldr x8, [sp, #104] ldr w9, [x8, #8] ; 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 b LBB9_29 LBB9_29: ; in Loop: Header=BB9_17 Depth=1 ldr x8, [sp, #104] ldr s0, [x8] adrp x8, _time@PAGE str s0, [x8, _time@PAGEOFF] adrp x8, _nsim@PAGE ldr w8, [x8, _nsim@PAGEOFF] adrp x9, _nsimmax@PAGE ldr w9, [x9, _nsimmax@PAGEOFF] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB9_31 b LBB9_30 LBB9_30: b LBB9_64 LBB9_31: ; in Loop: Header=BB9_17 Depth=1 ldr x8, [sp, #104] ldr w8, [x8, #4] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB9_46 b LBB9_32 LBB9_32: ; in Loop: Header=BB9_17 Depth=1 bl _generate_next_arrival adrp x8, _nsim@PAGE ldr w8, [x8, _nsim@PAGEOFF] mov w10, #26 sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 str w8, [sp, #96] str wzr, [sp, #100] b LBB9_33 LBB9_33: ; Parent Loop BB9_17 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #100] subs w8, w8, #20 cset w8, ge tbnz w8, #0, LBB9_36 b LBB9_34 LBB9_34: ; in Loop: Header=BB9_33 Depth=2 ldr w8, [sp, #96] add w8, w8, #97 ldrsw x10, [sp, #100] sub x9, x29, #44 strb w8, [x9, x10] b LBB9_35 LBB9_35: ; in Loop: Header=BB9_33 Depth=2 ldr w8, [sp, #100] add w8, w8, #1 str w8, [sp, #100] b LBB9_33 LBB9_36: ; in Loop: Header=BB9_17 Depth=1 adrp x8, _TRACE@PAGE ldr w8, [x8, _TRACE@PAGEOFF] subs w8, w8, #2 cset w8, le tbnz w8, #0, LBB9_42 b LBB9_37 LBB9_37: ; in Loop: Header=BB9_17 Depth=1 adrp x0, l_.str.11@PAGE add x0, x0, l_.str.11@PAGEOFF bl _printf str wzr, [sp, #100] b LBB9_38 LBB9_38: ; Parent Loop BB9_17 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #100] subs w8, w8, #20 cset w8, ge tbnz w8, #0, LBB9_41 b LBB9_39 LBB9_39: ; in Loop: Header=BB9_38 Depth=2 ldrsw x9, [sp, #100] sub x8, x29, #44 ldrsb w10, [x8, x9] mov x9, sp ; implicit-def: $x8 mov x8, x10 str x8, [x9] adrp x0, l_.str.12@PAGE add x0, x0, l_.str.12@PAGEOFF bl _printf b LBB9_40 LBB9_40: ; in Loop: Header=BB9_38 Depth=2 ldr w8, [sp, #100] add w8, w8, #1 str w8, [sp, #100] b LBB9_38 LBB9_41: ; in Loop: Header=BB9_17 Depth=1 adrp x0, l_.str.13@PAGE add x0, x0, l_.str.13@PAGEOFF bl _printf b LBB9_42 LBB9_42: ; in Loop: Header=BB9_17 Depth=1 adrp x9, _nsim@PAGE ldr w8, [x9, _nsim@PAGEOFF] add w8, w8, #1 str w8, [x9, _nsim@PAGEOFF] ldr x8, [sp, #104] ldr w8, [x8, #8] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB9_44 b LBB9_43 LBB9_43: ; in Loop: Header=BB9_17 Depth=1 ldr x8, [sp, #56] ; 8-byte Folded Reload ldur q0, [x29, #-44] sub x0, x29, #96 str q0, [x8] ldur w8, [x29, #-28] stur w8, [x29, #-80] bl _A_output b LBB9_45 LBB9_44: ; in Loop: Header=BB9_17 Depth=1 ldur q0, [x29, #-44] sub x0, x29, #128 stur q0, [x29, #-128] ldur w8, [x29, #-28] stur w8, [x29, #-112] bl _B_output b LBB9_45 LBB9_45: ; in Loop: Header=BB9_17 Depth=1 b LBB9_63 LBB9_46: ; in Loop: Header=BB9_17 Depth=1 ldr x8, [sp, #104] ldr w8, [x8, #4] subs w8, w8, #2 cset w8, ne tbnz w8, #0, LBB9_55 b LBB9_47 LBB9_47: ; in Loop: Header=BB9_17 Depth=1 ldr x8, [sp, #104] ldr x8, [x8, #16] ldr w8, [x8] stur w8, [x29, #-76] ldr x8, [sp, #104] ldr x8, [x8, #16] ldr w8, [x8, #4] stur w8, [x29, #-72] ldr x8, [sp, #104] ldr x8, [x8, #16] ldr w8, [x8, #8] stur w8, [x29, #-68] str wzr, [sp, #100] b LBB9_48 LBB9_48: ; Parent Loop BB9_17 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #100] subs w8, w8, #20 cset w8, ge tbnz w8, #0, LBB9_51 b LBB9_49 LBB9_49: ; in Loop: Header=BB9_48 Depth=2 ldr x8, [sp, #104] ldr x8, [x8, #16] add x8, x8, #12 ldrsw x9, [sp, #100] add x8, x8, x9 ldrb w8, [x8] sub x9, x29, #76 add x9, x9, #12 ldrsw x10, [sp, #100] add x9, x9, x10 strb w8, [x9] b LBB9_50 LBB9_50: ; in Loop: Header=BB9_48 Depth=2 ldr w8, [sp, #100] add w8, w8, #1 str w8, [sp, #100] b LBB9_48 LBB9_51: ; in Loop: Header=BB9_17 Depth=1 ldr x8, [sp, #104] ldr w8, [x8, #8] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB9_53 b LBB9_52 LBB9_52: ; in Loop: Header=BB9_17 Depth=1 ldur q0, [x29, #-76] add x0, sp, #160 str q0, [sp, #160] ldur q0, [x29, #-60] str q0, [sp, #176] bl _A_input b LBB9_54 LBB9_53: ; in Loop: Header=BB9_17 Depth=1 ldur q0, [x29, #-76] add x0, sp, #128 str q0, [sp, #128] ldur q0, [x29, #-60] str q0, [sp, #144] bl _B_input b LBB9_54 LBB9_54: ; in Loop: Header=BB9_17 Depth=1 ldr x8, [sp, #104] ldr x0, [x8, #16] bl _free b LBB9_62 LBB9_55: ; in Loop: Header=BB9_17 Depth=1 ldr x8, [sp, #104] ldr w8, [x8, #4] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB9_60 b LBB9_56 LBB9_56: ; in Loop: Header=BB9_17 Depth=1 ldr x8, [sp, #104] ldr w8, [x8, #8] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB9_58 b LBB9_57 LBB9_57: ; in Loop: Header=BB9_17 Depth=1 bl _A_timerinterrupt b LBB9_59 LBB9_58: ; in Loop: Header=BB9_17 Depth=1 bl _B_timerinterrupt b LBB9_59 LBB9_59: ; in Loop: Header=BB9_17 Depth=1 b LBB9_61 LBB9_60: ; in Loop: Header=BB9_17 Depth=1 adrp x0, l_.str.14@PAGE add x0, x0, l_.str.14@PAGEOFF bl _printf b LBB9_61 LBB9_61: ; in Loop: Header=BB9_17 Depth=1 b LBB9_62 LBB9_62: ; in Loop: Header=BB9_17 Depth=1 b LBB9_63 LBB9_63: ; in Loop: Header=BB9_17 Depth=1 ldr x0, [sp, #104] bl _free b LBB9_17 LBB9_64: b LBB9_65 LBB9_65: adrp x8, _time@PAGE str x8, [sp, #40] ; 8-byte Folded Spill ldr s0, [x8, _time@PAGEOFF] fcvt d0, s0 adrp x8, _nsim@PAGE ldr w9, [x8, _nsim@PAGEOFF] ; implicit-def: $x8 mov x8, x9 mov x9, sp str d0, [x9] str x8, [x9, #8] adrp x0, l_.str.15@PAGE add x0, x0, l_.str.15@PAGEOFF bl _printf adrp x0, l_.str.13@PAGE add x0, x0, l_.str.13@PAGEOFF bl _printf adrp x0, l_.str.16@PAGE add x0, x0, l_.str.16@PAGEOFF bl _printf adrp x8, _A_application@PAGE ldr w9, [x8, _A_application@PAGEOFF] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.17@PAGE add x0, x0, l_.str.17@PAGEOFF bl _printf adrp x8, _A_transport@PAGE ldr w9, [x8, _A_transport@PAGEOFF] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.18@PAGE add x0, x0, l_.str.18@PAGEOFF bl _printf adrp x8, _B_transport@PAGE ldr w9, [x8, _B_transport@PAGEOFF] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.19@PAGE add x0, x0, l_.str.19@PAGEOFF bl _printf adrp x8, _B_application@PAGE str x8, [sp, #32] ; 8-byte Folded Spill ldr w9, [x8, _B_application@PAGEOFF] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.20@PAGE add x0, x0, l_.str.20@PAGEOFF bl _printf ldr x8, [sp, #40] ; 8-byte Folded Reload ldr s0, [x8, _time@PAGEOFF] fcvt d0, s0 mov x8, sp str d0, [x8] adrp x0, l_.str.21@PAGE add x0, x0, l_.str.21@PAGEOFF bl _printf ldr x9, [sp, #32] ; 8-byte Folded Reload ldr x8, [sp, #40] ; 8-byte Folded Reload ldr s0, [x9, _B_application@PAGEOFF] scvtf s0, s0 ldr s1, [x8, _time@PAGEOFF] fdiv s0, s0, s1 fcvt d0, s0 mov x8, sp str d0, [x8] adrp x0, l_.str.22@PAGE add x0, x0, l_.str.22@PAGEOFF bl _printf str wzr, [sp, #124] b LBB9_66 LBB9_66: ldr w8, [sp, #124] str w8, [sp, #28] ; 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, LBB9_68 b LBB9_67 LBB9_67: bl ___stack_chk_fail LBB9_68: ldr w0, [sp, #28] ; 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 .section __TEXT,__literal8,8byte_literals .p2align 3 ; -- Begin function init lCPI10_0: .quad 0x408f400000000000 ; double 1000 .section __TEXT,__text,regular,pure_instructions .globl _init .p2align 2 _init: ; @init .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] adrp x0, l_.str.23@PAGE add x0, x0, l_.str.23@PAGEOFF bl _printf adrp x0, l_.str.24@PAGE add x0, x0, l_.str.24@PAGEOFF bl _printf mov x9, sp adrp x8, _nsimmax@PAGE add x8, x8, _nsimmax@PAGEOFF str x8, [x9] adrp x0, l_.str.25@PAGE add x0, x0, l_.str.25@PAGEOFF str x0, [sp, #24] ; 8-byte Folded Spill bl _scanf adrp x0, l_.str.26@PAGE add x0, x0, l_.str.26@PAGEOFF bl _printf mov x9, sp adrp x8, _lossprob@PAGE add x8, x8, _lossprob@PAGEOFF str x8, [x9] adrp x0, l_.str.27@PAGE add x0, x0, l_.str.27@PAGEOFF str x0, [sp, #16] ; 8-byte Folded Spill bl _scanf adrp x0, l_.str.28@PAGE add x0, x0, l_.str.28@PAGEOFF bl _printf ldr x0, [sp, #16] ; 8-byte Folded Reload mov x9, sp adrp x8, _corruptprob@PAGE add x8, x8, _corruptprob@PAGEOFF str x8, [x9] bl _scanf adrp x0, l_.str.29@PAGE add x0, x0, l_.str.29@PAGEOFF bl _printf ldr x0, [sp, #16] ; 8-byte Folded Reload mov x9, sp adrp x8, _lambda@PAGE add x8, x8, _lambda@PAGEOFF str x8, [x9] bl _scanf adrp x0, l_.str.30@PAGE add x0, x0, l_.str.30@PAGEOFF bl _printf ldr x0, [sp, #24] ; 8-byte Folded Reload mov x9, sp adrp x8, _TRACE@PAGE add x8, x8, _TRACE@PAGEOFF str x8, [x9] bl _scanf ldur w0, [x29, #-4] bl _srand movi d0, #0000000000000000 stur s0, [x29, #-12] stur wzr, [x29, #-8] b LBB10_1 LBB10_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-8] subs w8, w8, #1000 cset w8, ge tbnz w8, #0, LBB10_4 b LBB10_2 LBB10_2: ; in Loop: Header=BB10_1 Depth=1 ldur s0, [x29, #-12] str s0, [sp, #12] ; 4-byte Folded Spill bl _jimsrand fmov s1, s0 ldr s0, [sp, #12] ; 4-byte Folded Reload fadd s0, s0, s1 stur s0, [x29, #-12] b LBB10_3 LBB10_3: ; in Loop: Header=BB10_1 Depth=1 ldur w8, [x29, #-8] add w8, w8, #1 stur w8, [x29, #-8] b LBB10_1 LBB10_4: ldur s0, [x29, #-12] fcvt d0, s0 adrp x8, lCPI10_0@PAGE ldr d1, [x8, lCPI10_0@PAGEOFF] fdiv d0, d0, d1 fcvt s0, d0 stur s0, [x29, #-16] ldur s0, [x29, #-16] fcvt d0, s0 fmov d1, #0.25000000 fcmp d0, d1 cset w8, mi tbnz w8, #0, LBB10_6 b LBB10_5 LBB10_5: ldur s0, [x29, #-16] fcvt d0, s0 fmov d1, #0.75000000 fcmp d0, d1 cset w8, le tbnz w8, #0, LBB10_7 b LBB10_6 LBB10_6: adrp x0, l_.str.31@PAGE add x0, x0, l_.str.31@PAGEOFF bl _printf adrp x0, l_.str.32@PAGE add x0, x0, l_.str.32@PAGEOFF bl _printf adrp x0, l_.str.33@PAGE add x0, x0, l_.str.33@PAGEOFF bl _printf mov w0, #0 bl _exit LBB10_7: adrp x8, _ntolayer3@PAGE str wzr, [x8, _ntolayer3@PAGEOFF] adrp x8, _nlost@PAGE str wzr, [x8, _nlost@PAGEOFF] adrp x8, _ncorrupt@PAGE str wzr, [x8, _ncorrupt@PAGEOFF] adrp x8, _time@PAGE movi d0, #0000000000000000 str s0, [x8, _time@PAGEOFF] bl _generate_next_arrival 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 jimsrand lCPI11_0: .quad 0x41dfffffffc00000 ; double 2147483647 .section __TEXT,__text,regular,pure_instructions .globl _jimsrand .p2align 2 _jimsrand: ; @jimsrand .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, lCPI11_0@PAGE ldr d0, [x8, lCPI11_0@PAGEOFF] str d0, [sp, #8] bl _rand scvtf d0, w0 ldr d1, [sp, #8] fdiv d0, d0, d1 fcvt s0, d0 str s0, [sp, #4] ldr s0, [sp, #4] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _generate_next_arrival ; -- Begin function generate_next_arrival .p2align 2 _generate_next_arrival: ; @generate_next_arrival .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, _TRACE@PAGE ldr w8, [x8, _TRACE@PAGEOFF] subs w8, w8, #2 cset w8, le tbnz w8, #0, LBB12_2 b LBB12_1 LBB12_1: adrp x0, l_.str.34@PAGE add x0, x0, l_.str.34@PAGEOFF bl _printf b LBB12_2 LBB12_2: adrp x8, _lambda@PAGE ldr s0, [x8, _lambda@PAGEOFF] str s0, [sp, #4] ; 4-byte Folded Spill bl _jimsrand fmov s1, s0 ldr s0, [sp, #4] ; 4-byte Folded Reload fmul s0, s0, s1 fmov s1, #2.00000000 fmul s0, s0, s1 fcvt d0, s0 stur d0, [x29, #-8] mov x0, #40 bl _malloc str x0, [sp, #16] adrp x8, _time@PAGE ldr s0, [x8, _time@PAGEOFF] fcvt d0, s0 ldur d1, [x29, #-8] fadd d0, d0, d1 fcvt s0, d0 ldr x8, [sp, #16] str s0, [x8] ldr x9, [sp, #16] mov w8, #1 str w8, [x9, #4] ldr x8, [sp, #16] str wzr, [x8, #8] ldr x0, [sp, #16] bl _insertevent ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _insertevent ; -- Begin function insertevent .p2align 2 _insertevent: ; @insertevent .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] adrp x8, _TRACE@PAGE ldr w8, [x8, _TRACE@PAGEOFF] subs w8, w8, #2 cset w8, le tbnz w8, #0, LBB13_2 b LBB13_1 LBB13_1: adrp x8, _time@PAGE ldr s0, [x8, _time@PAGEOFF] fcvt d0, s0 mov x8, sp str d0, [x8] adrp x0, l_.str.35@PAGE add x0, x0, l_.str.35@PAGEOFF bl _printf ldur x8, [x29, #-8] ldr s0, [x8] fcvt d0, s0 mov x8, sp str d0, [x8] adrp x0, l_.str.36@PAGE add x0, x0, l_.str.36@PAGEOFF bl _printf b LBB13_2 LBB13_2: adrp x8, _evlist@PAGE ldr x8, [x8, _evlist@PAGEOFF] stur x8, [x29, #-16] ldur x8, [x29, #-16] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB13_4 b LBB13_3 LBB13_3: ldur x8, [x29, #-8] adrp x9, _evlist@PAGE str x8, [x9, _evlist@PAGEOFF] ldur x8, [x29, #-8] ; kill: def $x9 killed $xzr str xzr, [x8, #32] ldur x8, [x29, #-8] str xzr, [x8, #24] b LBB13_17 LBB13_4: ldur x8, [x29, #-16] str x8, [sp, #24] b LBB13_5 LBB13_5: ; =>This Inner Loop Header: Depth=1 ldur x8, [x29, #-16] subs x8, x8, #0 cset w8, eq mov w9, #0 str w9, [sp, #20] ; 4-byte Folded Spill tbnz w8, #0, LBB13_7 b LBB13_6 LBB13_6: ; in Loop: Header=BB13_5 Depth=1 ldur x8, [x29, #-8] ldr s0, [x8] ldur x8, [x29, #-16] ldr s1, [x8] fcmp s0, s1 cset w8, gt str w8, [sp, #20] ; 4-byte Folded Spill b LBB13_7 LBB13_7: ; in Loop: Header=BB13_5 Depth=1 ldr w8, [sp, #20] ; 4-byte Folded Reload tbz w8, #0, LBB13_10 b LBB13_8 LBB13_8: ; in Loop: Header=BB13_5 Depth=1 ldur x8, [x29, #-16] str x8, [sp, #24] b LBB13_9 LBB13_9: ; in Loop: Header=BB13_5 Depth=1 ldur x8, [x29, #-16] ldr x8, [x8, #32] stur x8, [x29, #-16] b LBB13_5 LBB13_10: ldur x8, [x29, #-16] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB13_12 b LBB13_11 LBB13_11: ldur x8, [x29, #-8] ldr x9, [sp, #24] str x8, [x9, #32] ldr x8, [sp, #24] ldur x9, [x29, #-8] str x8, [x9, #24] ldur x8, [x29, #-8] ; kill: def $x9 killed $xzr str xzr, [x8, #32] b LBB13_16 LBB13_12: ldur x8, [x29, #-16] adrp x9, _evlist@PAGE ldr x9, [x9, _evlist@PAGEOFF] subs x8, x8, x9 cset w8, ne tbnz w8, #0, LBB13_14 b LBB13_13 LBB13_13: adrp x9, _evlist@PAGE ldr x8, [x9, _evlist@PAGEOFF] ldur x10, [x29, #-8] str x8, [x10, #32] ldur x8, [x29, #-8] ; kill: def $x10 killed $xzr str xzr, [x8, #24] ldur x8, [x29, #-8] ldur x10, [x29, #-8] ldr x10, [x10, #32] str x8, [x10, #24] ldur x8, [x29, #-8] str x8, [x9, _evlist@PAGEOFF] b LBB13_15 LBB13_14: ldur x8, [x29, #-16] ldur x9, [x29, #-8] str x8, [x9, #32] ldur x8, [x29, #-16] ldr x8, [x8, #24] ldur x9, [x29, #-8] str x8, [x9, #24] ldur x8, [x29, #-8] ldur x9, [x29, #-16] ldr x9, [x9, #24] str x8, [x9, #32] ldur x8, [x29, #-8] ldur x9, [x29, #-16] str x8, [x9, #24] b LBB13_15 LBB13_15: b LBB13_16 LBB13_16: b LBB13_17 LBB13_17: ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _printevlist ; -- Begin function printevlist .p2align 2 _printevlist: ; @printevlist .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.37@PAGE add x0, x0, l_.str.37@PAGEOFF bl _printf adrp x8, _evlist@PAGE ldr x8, [x8, _evlist@PAGEOFF] stur x8, [x29, #-8] b LBB14_1 LBB14_1: ; =>This Inner Loop Header: Depth=1 ldur x8, [x29, #-8] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB14_4 b LBB14_2 LBB14_2: ; in Loop: Header=BB14_1 Depth=1 ldur x8, [x29, #-8] ldr s0, [x8] fcvt d0, s0 ldur x8, [x29, #-8] ldr w8, [x8, #4] ; implicit-def: $x10 mov x10, x8 ldur x8, [x29, #-8] ldr w9, [x8, #8] ; implicit-def: $x8 mov x8, x9 mov x9, sp str d0, [x9] str x10, [x9, #8] str x8, [x9, #16] adrp x0, l_.str.38@PAGE add x0, x0, l_.str.38@PAGEOFF bl _printf b LBB14_3 LBB14_3: ; in Loop: Header=BB14_1 Depth=1 ldur x8, [x29, #-8] ldr x8, [x8, #32] stur x8, [x29, #-8] b LBB14_1 LBB14_4: adrp x0, l_.str.39@PAGE add x0, x0, l_.str.39@PAGEOFF bl _printf ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _stoptimer ; -- Begin function stoptimer .p2align 2 _stoptimer: ; @stoptimer .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur w0, [x29, #-4] adrp x8, _TRACE@PAGE ldr w8, [x8, _TRACE@PAGEOFF] subs w8, w8, #2 cset w8, le tbnz w8, #0, LBB15_2 b LBB15_1 LBB15_1: adrp x8, _time@PAGE ldr s0, [x8, _time@PAGEOFF] fcvt d0, s0 mov x8, sp str d0, [x8] adrp x0, l_.str.40@PAGE add x0, x0, l_.str.40@PAGEOFF bl _printf b LBB15_2 LBB15_2: adrp x8, _evlist@PAGE ldr x8, [x8, _evlist@PAGEOFF] str x8, [sp, #16] b LBB15_3 LBB15_3: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #16] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB15_19 b LBB15_4 LBB15_4: ; in Loop: Header=BB15_3 Depth=1 ldr x8, [sp, #16] ldr w8, [x8, #4] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB15_17 b LBB15_5 LBB15_5: ; in Loop: Header=BB15_3 Depth=1 ldr x8, [sp, #16] ldr w8, [x8, #8] ldur w9, [x29, #-4] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB15_17 b LBB15_6 LBB15_6: ldr x8, [sp, #16] ldr x8, [x8, #32] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB15_9 b LBB15_7 LBB15_7: ldr x8, [sp, #16] ldr x8, [x8, #24] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB15_9 b LBB15_8 LBB15_8: ; kill: def $x8 killed $xzr adrp x8, _evlist@PAGE str xzr, [x8, _evlist@PAGEOFF] b LBB15_16 LBB15_9: ldr x8, [sp, #16] ldr x8, [x8, #32] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB15_11 b LBB15_10 LBB15_10: ldr x8, [sp, #16] ldr x8, [x8, #24] ; kill: def $x9 killed $xzr str xzr, [x8, #32] b LBB15_15 LBB15_11: ldr x8, [sp, #16] adrp x9, _evlist@PAGE ldr x9, [x9, _evlist@PAGEOFF] subs x8, x8, x9 cset w8, ne tbnz w8, #0, LBB15_13 b LBB15_12 LBB15_12: ldr x8, [sp, #16] ldr x8, [x8, #32] ; kill: def $x9 killed $xzr str xzr, [x8, #24] ldr x8, [sp, #16] ldr x8, [x8, #32] adrp x9, _evlist@PAGE str x8, [x9, _evlist@PAGEOFF] b LBB15_14 LBB15_13: ldr x8, [sp, #16] ldr x8, [x8, #24] ldr x9, [sp, #16] ldr x9, [x9, #32] str x8, [x9, #24] ldr x8, [sp, #16] ldr x8, [x8, #32] ldr x9, [sp, #16] ldr x9, [x9, #24] str x8, [x9, #32] b LBB15_14 LBB15_14: b LBB15_15 LBB15_15: b LBB15_16 LBB15_16: ldr x0, [sp, #16] bl _free b LBB15_20 LBB15_17: ; in Loop: Header=BB15_3 Depth=1 b LBB15_18 LBB15_18: ; in Loop: Header=BB15_3 Depth=1 ldr x8, [sp, #16] ldr x8, [x8, #32] str x8, [sp, #16] b LBB15_3 LBB15_19: adrp x0, l_.str.41@PAGE add x0, x0, l_.str.41@PAGEOFF bl _printf b LBB15_20 LBB15_20: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _starttimer ; -- Begin function starttimer .p2align 2 _starttimer: ; @starttimer .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 fcvt s0, d0 stur w0, [x29, #-4] stur s0, [x29, #-8] adrp x8, _TRACE@PAGE ldr w8, [x8, _TRACE@PAGEOFF] subs w8, w8, #2 cset w8, le tbnz w8, #0, LBB16_2 b LBB16_1 LBB16_1: adrp x8, _time@PAGE ldr s0, [x8, _time@PAGEOFF] fcvt d0, s0 mov x8, sp str d0, [x8] adrp x0, l_.str.42@PAGE add x0, x0, l_.str.42@PAGEOFF bl _printf b LBB16_2 LBB16_2: adrp x8, _evlist@PAGE ldr x8, [x8, _evlist@PAGEOFF] str x8, [sp, #16] b LBB16_3 LBB16_3: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #16] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB16_9 b LBB16_4 LBB16_4: ; in Loop: Header=BB16_3 Depth=1 ldr x8, [sp, #16] ldr w8, [x8, #4] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB16_7 b LBB16_5 LBB16_5: ; in Loop: Header=BB16_3 Depth=1 ldr x8, [sp, #16] ldr w8, [x8, #8] ldur w9, [x29, #-4] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB16_7 b LBB16_6 LBB16_6: adrp x0, l_.str.43@PAGE add x0, x0, l_.str.43@PAGEOFF bl _printf b LBB16_10 LBB16_7: ; in Loop: Header=BB16_3 Depth=1 b LBB16_8 LBB16_8: ; in Loop: Header=BB16_3 Depth=1 ldr x8, [sp, #16] ldr x8, [x8, #32] str x8, [sp, #16] b LBB16_3 LBB16_9: mov x0, #40 bl _malloc str x0, [sp, #8] adrp x8, _time@PAGE ldr s0, [x8, _time@PAGEOFF] ldur s1, [x29, #-8] fadd s0, s0, s1 ldr x8, [sp, #8] str s0, [x8] ldr x8, [sp, #8] str wzr, [x8, #4] ldur w8, [x29, #-4] ldr x9, [sp, #8] str w8, [x9, #8] ldr x0, [sp, #8] bl _insertevent b LBB16_10 LBB16_10: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _tolayer3 ; -- Begin function tolayer3 .p2align 2 _tolayer3: ; @tolayer3 .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 x1, [sp, #40] ; 8-byte Folded Spill stur w0, [x29, #-4] adrp x9, _ntolayer3@PAGE ldr w8, [x9, _ntolayer3@PAGEOFF] add w8, w8, #1 str w8, [x9, _ntolayer3@PAGEOFF] bl _jimsrand adrp x8, _lossprob@PAGE ldr s1, [x8, _lossprob@PAGEOFF] fcmp s0, s1 cset w8, pl tbnz w8, #0, LBB17_4 b LBB17_1 LBB17_1: adrp x9, _nlost@PAGE ldr w8, [x9, _nlost@PAGEOFF] add w8, w8, #1 str w8, [x9, _nlost@PAGEOFF] adrp x8, _TRACE@PAGE ldr w8, [x8, _TRACE@PAGEOFF] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB17_3 b LBB17_2 LBB17_2: adrp x0, l_.str.44@PAGE add x0, x0, l_.str.44@PAGEOFF bl _printf b LBB17_3 LBB17_3: b LBB17_34 LBB17_4: mov x0, #32 bl _malloc ldr x8, [sp, #40] ; 8-byte Folded Reload stur x0, [x29, #-16] ldr w9, [x8] ldur x10, [x29, #-16] str w9, [x10] ldr w9, [x8, #4] ldur x10, [x29, #-16] str w9, [x10, #4] ldr w8, [x8, #8] ldur x9, [x29, #-16] str w8, [x9, #8] stur wzr, [x29, #-44] b LBB17_5 LBB17_5: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-44] subs w8, w8, #20 cset w8, ge tbnz w8, #0, LBB17_8 b LBB17_6 LBB17_6: ; in Loop: Header=BB17_5 Depth=1 ldr x8, [sp, #40] ; 8-byte Folded Reload add x8, x8, #12 ldursw x9, [x29, #-44] add x8, x8, x9 ldrb w8, [x8] ldur x9, [x29, #-16] add x9, x9, #12 ldursw x10, [x29, #-44] add x9, x9, x10 strb w8, [x9] b LBB17_7 LBB17_7: ; in Loop: Header=BB17_5 Depth=1 ldur w8, [x29, #-44] add w8, w8, #1 stur w8, [x29, #-44] b LBB17_5 LBB17_8: adrp x8, _TRACE@PAGE ldr w8, [x8, _TRACE@PAGEOFF] subs w8, w8, #2 cset w8, le tbnz w8, #0, LBB17_14 b LBB17_9 LBB17_9: ldur x8, [x29, #-16] ldr w8, [x8] ; implicit-def: $x11 mov x11, x8 ldur x8, [x29, #-16] ldr w8, [x8, #4] ; implicit-def: $x10 mov x10, x8 ldur x8, [x29, #-16] 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 x0, l_.str.45@PAGE add x0, x0, l_.str.45@PAGEOFF bl _printf stur wzr, [x29, #-44] b LBB17_10 LBB17_10: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-44] subs w8, w8, #20 cset w8, ge tbnz w8, #0, LBB17_13 b LBB17_11 LBB17_11: ; in Loop: Header=BB17_10 Depth=1 ldur x8, [x29, #-16] add x8, x8, #12 ldursw x9, [x29, #-44] ldrsb w10, [x8, x9] mov x9, sp ; implicit-def: $x8 mov x8, x10 str x8, [x9] adrp x0, l_.str.12@PAGE add x0, x0, l_.str.12@PAGEOFF bl _printf b LBB17_12 LBB17_12: ; in Loop: Header=BB17_10 Depth=1 ldur w8, [x29, #-44] add w8, w8, #1 stur w8, [x29, #-44] b LBB17_10 LBB17_13: adrp x0, l_.str.13@PAGE add x0, x0, l_.str.13@PAGEOFF bl _printf b LBB17_14 LBB17_14: mov x0, #40 bl _malloc stur x0, [x29, #-24] ldur x8, [x29, #-24] mov w10, #2 str w10, [x8, #4] ldur w8, [x29, #-4] add w8, w8, #1 sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 ldur x9, [x29, #-24] str w8, [x9, #8] ldur x8, [x29, #-16] ldur x9, [x29, #-24] str x8, [x9, #16] adrp x8, _time@PAGE ldr s0, [x8, _time@PAGEOFF] stur s0, [x29, #-36] adrp x8, _evlist@PAGE ldr x8, [x8, _evlist@PAGEOFF] stur x8, [x29, #-32] b LBB17_15 LBB17_15: ; =>This Inner Loop Header: Depth=1 ldur x8, [x29, #-32] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB17_21 b LBB17_16 LBB17_16: ; in Loop: Header=BB17_15 Depth=1 ldur x8, [x29, #-32] ldr w8, [x8, #4] subs w8, w8, #2 cset w8, ne tbnz w8, #0, LBB17_19 b LBB17_17 LBB17_17: ; in Loop: Header=BB17_15 Depth=1 ldur x8, [x29, #-32] ldr w8, [x8, #8] ldur x9, [x29, #-24] ldr w9, [x9, #8] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB17_19 b LBB17_18 LBB17_18: ; in Loop: Header=BB17_15 Depth=1 ldur x8, [x29, #-32] ldr s0, [x8] stur s0, [x29, #-36] b LBB17_19 LBB17_19: ; in Loop: Header=BB17_15 Depth=1 b LBB17_20 LBB17_20: ; in Loop: Header=BB17_15 Depth=1 ldur x8, [x29, #-32] ldr x8, [x8, #32] stur x8, [x29, #-32] b LBB17_15 LBB17_21: ldur s0, [x29, #-36] fmov s1, #1.00000000 fadd s0, s0, s1 str s0, [sp, #36] ; 4-byte Folded Spill bl _jimsrand ldr s2, [sp, #36] ; 4-byte Folded Reload fmov s1, s0 fmov s0, #9.00000000 fmadd s0, s0, s1, s2 ldur x8, [x29, #-24] str s0, [x8] bl _jimsrand adrp x8, _corruptprob@PAGE ldr s1, [x8, _corruptprob@PAGEOFF] fcmp s0, s1 cset w8, pl tbnz w8, #0, LBB17_31 b LBB17_22 LBB17_22: adrp x9, _ncorrupt@PAGE ldr w8, [x9, _ncorrupt@PAGEOFF] add w8, w8, #1 str w8, [x9, _ncorrupt@PAGEOFF] bl _jimsrand stur s0, [x29, #-40] fcvt d0, s0 fmov d1, #0.75000000 fcmp d0, d1 cset w8, pl tbnz w8, #0, LBB17_24 b LBB17_23 LBB17_23: ldur x9, [x29, #-16] mov w8, #90 strb w8, [x9, #12] b LBB17_28 LBB17_24: ldur s0, [x29, #-40] fcvt d0, s0 fmov d1, #0.87500000 fcmp d0, d1 cset w8, pl tbnz w8, #0, LBB17_26 b LBB17_25 LBB17_25: ldur x9, [x29, #-16] mov w8, #16959 movk w8, #15, lsl #16 str w8, [x9] b LBB17_27 LBB17_26: ldur x9, [x29, #-16] mov w8, #16959 movk w8, #15, lsl #16 str w8, [x9, #4] b LBB17_27 LBB17_27: b LBB17_28 LBB17_28: adrp x8, _TRACE@PAGE ldr w8, [x8, _TRACE@PAGEOFF] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB17_30 b LBB17_29 LBB17_29: adrp x0, l_.str.46@PAGE add x0, x0, l_.str.46@PAGEOFF bl _printf b LBB17_30 LBB17_30: b LBB17_31 LBB17_31: adrp x8, _TRACE@PAGE ldr w8, [x8, _TRACE@PAGEOFF] subs w8, w8, #2 cset w8, le tbnz w8, #0, LBB17_33 b LBB17_32 LBB17_32: adrp x0, l_.str.47@PAGE add x0, x0, l_.str.47@PAGEOFF bl _printf b LBB17_33 LBB17_33: ldur x0, [x29, #-24] bl _insertevent b LBB17_34 LBB17_34: ldp x29, x30, [sp, #96] ; 16-byte Folded Reload add sp, sp, #112 ret .cfi_endproc ; -- End function .globl _tolayer5 ; -- Begin function tolayer5 .p2align 2 _tolayer5: ; @tolayer5 .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 x8, _TRACE@PAGE ldr w8, [x8, _TRACE@PAGEOFF] subs w8, w8, #2 cset w8, le tbnz w8, #0, LBB18_6 b LBB18_1 LBB18_1: adrp x0, l_.str.48@PAGE add x0, x0, l_.str.48@PAGEOFF bl _printf str wzr, [sp, #12] b LBB18_2 LBB18_2: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #12] subs w8, w8, #20 cset w8, ge tbnz w8, #0, LBB18_5 b LBB18_3 LBB18_3: ; in Loop: Header=BB18_2 Depth=1 ldr x8, [sp, #16] ldrsw x9, [sp, #12] ldrsb w10, [x8, x9] mov x9, sp ; implicit-def: $x8 mov x8, x10 str x8, [x9] adrp x0, l_.str.12@PAGE add x0, x0, l_.str.12@PAGEOFF bl _printf b LBB18_4 LBB18_4: ; in Loop: Header=BB18_2 Depth=1 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB18_2 LBB18_5: adrp x0, l_.str.13@PAGE add x0, x0, l_.str.13@PAGEOFF bl _printf b LBB18_6 LBB18_6: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _A_application ; @A_application .zerofill __DATA,__common,_A_application,4,2 .globl _A_transport ; @A_transport .zerofill __DATA,__common,_A_transport,4,2 .globl _B_application ; @B_application .zerofill __DATA,__common,_B_application,4,2 .globl _B_transport ; @B_transport .zerofill __DATA,__common,_B_transport,4,2 .globl _TIMEOUT ; @TIMEOUT .zerofill __DATA,__common,_TIMEOUT,4,2 .globl _SND_BUFSIZE ; @SND_BUFSIZE .zerofill __DATA,__common,_SND_BUFSIZE,4,2 .globl _RCV_BUFSIZE ; @RCV_BUFSIZE .zerofill __DATA,__common,_RCV_BUFSIZE,4,2 .globl _evlist ; @evlist .zerofill __DATA,__common,_evlist,8,3 .section __DATA,__data .globl _TRACE ; @TRACE .p2align 2 _TRACE: .long 1 ; 0x1 .globl _nsim ; @nsim .zerofill __DATA,__common,_nsim,4,2 .globl _nsimmax ; @nsimmax .zerofill __DATA,__common,_nsimmax,4,2 .globl _time ; @time .zerofill __DATA,__common,_time,4,2 .globl _lossprob ; @lossprob .zerofill __DATA,__common,_lossprob,4,2 .globl _corruptprob ; @corruptprob .zerofill __DATA,__common,_corruptprob,4,2 .globl _lambda ; @lambda .zerofill __DATA,__common,_lambda,4,2 .globl _ntolayer3 ; @ntolayer3 .zerofill __DATA,__common,_ntolayer3,4,2 .globl _nlost ; @nlost .zerofill __DATA,__common,_nlost,4,2 .globl _ncorrupt ; @ncorrupt .zerofill __DATA,__common,_ncorrupt,4,2 .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Missing arguments\n" l_.str.1: ; @.str.1 .asciz "Usage: %s -s SEED -w WINDOWSIZE\n" l_.str.2: ; @.str.2 .asciz "s:w:" l_.str.3: ; @.str.3 .asciz "Invalid value for -s\n" l_.str.4: ; @.str.4 .asciz "Invalid value for -w\n" .comm _WINSIZE,4,2 ; @WINSIZE l_.str.5: ; @.str.5 .asciz "\nEVENT time: %f," l_.str.6: ; @.str.6 .asciz " type: %d" l_.str.7: ; @.str.7 .asciz ", timerinterrupt " l_.str.8: ; @.str.8 .asciz ", fromlayer5 " l_.str.9: ; @.str.9 .asciz ", fromlayer3 " l_.str.10: ; @.str.10 .asciz " entity: %d\n" l_.str.11: ; @.str.11 .asciz " MAINLOOP: data given to student: " l_.str.12: ; @.str.12 .asciz "%c" l_.str.13: ; @.str.13 .asciz "\n" l_.str.14: ; @.str.14 .asciz "INTERNAL PANIC: unknown event type \n" l_.str.15: ; @.str.15 .asciz " Simulator terminated at time %f\n after sending %d msgs from layer5\n" l_.str.16: ; @.str.16 .asciz "Protocol: SR\n" l_.str.17: ; @.str.17 .asciz "[PA2]%d packets sent from the Application Layer of Sender A[/PA2]\n" l_.str.18: ; @.str.18 .asciz "[PA2]%d packets sent from the Transport Layer of Sender A[/PA2]\n" l_.str.19: ; @.str.19 .asciz "[PA2]%d packets received at the Transport layer of Receiver B[/PA2]\n" l_.str.20: ; @.str.20 .asciz "[PA2]%d packets received at the Application layer of Receiver B[/PA2]\n" l_.str.21: ; @.str.21 .asciz "[PA2]Total time: %f time units[/PA2]\n" l_.str.22: ; @.str.22 .asciz "[PA2]Throughput: %f packets/time units[/PA2]\n" l_.str.23: ; @.str.23 .asciz "----- Stop and Wait Network Simulator Version 1.1 -------- \n\n" l_.str.24: ; @.str.24 .asciz "Enter the number of messages to simulate: " l_.str.25: ; @.str.25 .asciz "%d" l_.str.26: ; @.str.26 .asciz "Enter packet loss probability [enter 0.0 for no loss]:" l_.str.27: ; @.str.27 .asciz "%f" l_.str.28: ; @.str.28 .asciz "Enter packet corruption probability [0.0 for no corruption]:" l_.str.29: ; @.str.29 .asciz "Enter average time between messages from sender's layer5 [ > 0.0]:" l_.str.30: ; @.str.30 .asciz "Enter TRACE:" l_.str.31: ; @.str.31 .asciz "It is likely that random number generation on your machine\n" l_.str.32: ; @.str.32 .asciz "is different from what this emulator expects. Please take\n" l_.str.33: ; @.str.33 .asciz "a look at the routine jimsrand() in the emulator code. Sorry. \n" l_.str.34: ; @.str.34 .asciz " GENERATE NEXT ARRIVAL: creating new arrival\n" l_.str.35: ; @.str.35 .asciz " INSERTEVENT: time is %lf\n" l_.str.36: ; @.str.36 .asciz " INSERTEVENT: future time will be %lf\n" l_.str.37: ; @.str.37 .asciz "--------------\nEvent List Follows:\n" l_.str.38: ; @.str.38 .asciz "Event time: %f, type: %d entity: %d\n" l_.str.39: ; @.str.39 .asciz "--------------\n" l_.str.40: ; @.str.40 .asciz " STOP TIMER: stopping timer at %f\n" l_.str.41: ; @.str.41 .asciz "Warning: unable to cancel your timer. It wasn't running.\n" l_.str.42: ; @.str.42 .asciz " START TIMER: starting timer at %f\n" l_.str.43: ; @.str.43 .asciz "Warning: attempt to start a timer that is already started\n" l_.str.44: ; @.str.44 .asciz " TOLAYER3: packet being lost\n" l_.str.45: ; @.str.45 .asciz " TOLAYER3: seq: %d, ack %d, check: %d " l_.str.46: ; @.str.46 .asciz " TOLAYER3: packet being corrupted\n" l_.str.47: ; @.str.47 .asciz " TOLAYER3: scheduling arrival on other side\n" l_.str.48: ; @.str.48 .asciz " TOLAYER5: data received: " .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _A_output ## -- Begin function A_output .p2align 4, 0x90 _A_output: ## @A_output .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp popq %rbp retq .cfi_endproc ## -- End function .globl _B_output ## -- Begin function B_output .p2align 4, 0x90 _B_output: ## @B_output .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp popq %rbp retq .cfi_endproc ## -- End function .globl _A_input ## -- Begin function A_input .p2align 4, 0x90 _A_input: ## @A_input .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp popq %rbp retq .cfi_endproc ## -- End function .globl _A_timerinterrupt ## -- Begin function A_timerinterrupt .p2align 4, 0x90 _A_timerinterrupt: ## @A_timerinterrupt .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp popq %rbp retq .cfi_endproc ## -- End function .globl _A_init ## -- Begin function A_init .p2align 4, 0x90 _A_init: ## @A_init .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp popq %rbp retq .cfi_endproc ## -- End function .globl _B_input ## -- Begin function B_input .p2align 4, 0x90 _B_input: ## @B_input .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp popq %rbp retq .cfi_endproc ## -- End function .globl _B_timerinterrupt ## -- Begin function B_timerinterrupt .p2align 4, 0x90 _B_timerinterrupt: ## @B_timerinterrupt .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp popq %rbp retq .cfi_endproc ## -- End function .globl _B_init ## -- Begin function B_init .p2align 4, 0x90 _B_init: ## @B_init .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp popq %rbp retq .cfi_endproc ## -- End function .globl _isNumber ## -- Begin function isNumber .p2align 4, 0x90 _isNumber: ## @isNumber .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) LBB8_1: ## =>This Inner Loop Header: Depth=1 movq -16(%rbp), %rax cmpb $0, (%rax) je LBB8_6 ## %bb.2: ## in Loop: Header=BB8_1 Depth=1 movq -16(%rbp), %rax movsbl (%rax), %edi callq _isdigit cmpl $0, %eax jne LBB8_4 ## %bb.3: movl $0, -4(%rbp) jmp LBB8_7 LBB8_4: ## in Loop: Header=BB8_1 Depth=1 movq -16(%rbp), %rax addq $1, %rax movq %rax, -16(%rbp) ## %bb.5: ## in Loop: Header=BB8_1 Depth=1 jmp LBB8_1 LBB8_6: movl $1, -4(%rbp) LBB8_7: 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 $160, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -68(%rbp) movl %edi, -72(%rbp) movq %rsi, -80(%rbp) cmpl $5, -72(%rbp) je LBB9_2 ## %bb.1: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str(%rip), %rsi movb $0, %al callq _fprintf movq -80(%rbp), %rax movq (%rax), %rsi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf movl $-1, -68(%rbp) jmp LBB9_64 LBB9_2: jmp LBB9_3 LBB9_3: ## =>This Inner Loop Header: Depth=1 movl -72(%rbp), %edi movq -80(%rbp), %rsi leaq L_.str.2(%rip), %rdx callq _getopt movl %eax, -104(%rbp) cmpl $-1, %eax je LBB9_14 ## %bb.4: ## in Loop: Header=BB9_3 Depth=1 movl -104(%rbp), %eax movl %eax, -112(%rbp) ## 4-byte Spill subl $63, %eax je LBB9_11 jmp LBB9_67 LBB9_67: ## in Loop: Header=BB9_3 Depth=1 movl -112(%rbp), %eax ## 4-byte Reload subl $115, %eax je LBB9_5 jmp LBB9_68 LBB9_68: ## in Loop: Header=BB9_3 Depth=1 movl -112(%rbp), %eax ## 4-byte Reload subl $119, %eax je LBB9_8 jmp LBB9_12 LBB9_5: ## in Loop: Header=BB9_3 Depth=1 movq _optarg@GOTPCREL(%rip), %rax movq (%rax), %rdi callq _isNumber cmpl $0, %eax jne LBB9_7 ## %bb.6: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.3(%rip), %rsi movb $0, %al callq _fprintf movl $-1, -68(%rbp) jmp LBB9_64 LBB9_7: ## in Loop: Header=BB9_3 Depth=1 movq _optarg@GOTPCREL(%rip), %rax movq (%rax), %rdi callq _atoi movl %eax, -108(%rbp) jmp LBB9_13 LBB9_8: ## in Loop: Header=BB9_3 Depth=1 movq _optarg@GOTPCREL(%rip), %rax movq (%rax), %rdi callq _isNumber cmpl $0, %eax jne LBB9_10 ## %bb.9: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.4(%rip), %rsi movb $0, %al callq _fprintf movl $-1, -68(%rbp) jmp LBB9_64 LBB9_10: ## in Loop: Header=BB9_3 Depth=1 movq _optarg@GOTPCREL(%rip), %rax movq (%rax), %rdi callq _atoi movl %eax, %ecx movq _WINSIZE@GOTPCREL(%rip), %rax movl %ecx, (%rax) jmp LBB9_13 LBB9_11: ## in Loop: Header=BB9_3 Depth=1 jmp LBB9_13 LBB9_12: movq -80(%rbp), %rax movq (%rax), %rsi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf movl $-1, -68(%rbp) jmp LBB9_64 LBB9_13: ## in Loop: Header=BB9_3 Depth=1 jmp LBB9_3 LBB9_14: movl -108(%rbp), %edi callq _init callq _A_init callq _B_init LBB9_15: ## =>This Loop Header: Depth=1 ## Child Loop BB9_31 Depth 2 ## Child Loop BB9_36 Depth 2 ## Child Loop BB9_46 Depth 2 movq _evlist(%rip), %rax movq %rax, -88(%rbp) cmpq $0, -88(%rbp) jne LBB9_17 ## %bb.16: jmp LBB9_63 LBB9_17: ## in Loop: Header=BB9_15 Depth=1 movq _evlist(%rip), %rax movq 32(%rax), %rax movq %rax, _evlist(%rip) cmpq $0, _evlist(%rip) je LBB9_19 ## %bb.18: ## in Loop: Header=BB9_15 Depth=1 movq _evlist(%rip), %rax movq $0, 24(%rax) LBB9_19: ## in Loop: Header=BB9_15 Depth=1 cmpl $2, _TRACE(%rip) jl LBB9_27 ## %bb.20: ## in Loop: Header=BB9_15 Depth=1 movq -88(%rbp), %rax movss (%rax), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 leaq L_.str.5(%rip), %rdi movb $1, %al callq _printf movq -88(%rbp), %rax movl 4(%rax), %esi leaq L_.str.6(%rip), %rdi movb $0, %al callq _printf movq -88(%rbp), %rax cmpl $0, 4(%rax) jne LBB9_22 ## %bb.21: ## in Loop: Header=BB9_15 Depth=1 leaq L_.str.7(%rip), %rdi movb $0, %al callq _printf jmp LBB9_26 LBB9_22: ## in Loop: Header=BB9_15 Depth=1 movq -88(%rbp), %rax cmpl $1, 4(%rax) jne LBB9_24 ## %bb.23: ## in Loop: Header=BB9_15 Depth=1 leaq L_.str.8(%rip), %rdi movb $0, %al callq _printf jmp LBB9_25 LBB9_24: ## in Loop: Header=BB9_15 Depth=1 leaq L_.str.9(%rip), %rdi movb $0, %al callq _printf LBB9_25: ## in Loop: Header=BB9_15 Depth=1 jmp LBB9_26 LBB9_26: ## in Loop: Header=BB9_15 Depth=1 movq -88(%rbp), %rax movl 8(%rax), %esi leaq L_.str.10(%rip), %rdi movb $0, %al callq _printf LBB9_27: ## in Loop: Header=BB9_15 Depth=1 movq -88(%rbp), %rax movss (%rax), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, _time(%rip) movl _nsim(%rip), %eax cmpl _nsimmax(%rip), %eax jne LBB9_29 ## %bb.28: jmp LBB9_62 LBB9_29: ## in Loop: Header=BB9_15 Depth=1 movq -88(%rbp), %rax cmpl $1, 4(%rax) jne LBB9_44 ## %bb.30: ## in Loop: Header=BB9_15 Depth=1 callq _generate_next_arrival movl _nsim(%rip), %eax movl $26, %ecx cltd idivl %ecx movl %edx, -96(%rbp) movl $0, -92(%rbp) LBB9_31: ## Parent Loop BB9_15 Depth=1 ## => This Inner Loop Header: Depth=2 cmpl $20, -92(%rbp) jge LBB9_34 ## %bb.32: ## in Loop: Header=BB9_31 Depth=2 movl -96(%rbp), %eax addl $97, %eax movb %al, %cl movslq -92(%rbp), %rax movb %cl, -32(%rbp,%rax) ## %bb.33: ## in Loop: Header=BB9_31 Depth=2 movl -92(%rbp), %eax addl $1, %eax movl %eax, -92(%rbp) jmp LBB9_31 LBB9_34: ## in Loop: Header=BB9_15 Depth=1 cmpl $2, _TRACE(%rip) jle LBB9_40 ## %bb.35: ## in Loop: Header=BB9_15 Depth=1 leaq L_.str.11(%rip), %rdi movb $0, %al callq _printf movl $0, -92(%rbp) LBB9_36: ## Parent Loop BB9_15 Depth=1 ## => This Inner Loop Header: Depth=2 cmpl $20, -92(%rbp) jge LBB9_39 ## %bb.37: ## in Loop: Header=BB9_36 Depth=2 movslq -92(%rbp), %rax movsbl -32(%rbp,%rax), %esi leaq L_.str.12(%rip), %rdi movb $0, %al callq _printf ## %bb.38: ## in Loop: Header=BB9_36 Depth=2 movl -92(%rbp), %eax addl $1, %eax movl %eax, -92(%rbp) jmp LBB9_36 LBB9_39: ## in Loop: Header=BB9_15 Depth=1 leaq L_.str.13(%rip), %rdi movb $0, %al callq _printf LBB9_40: ## in Loop: Header=BB9_15 Depth=1 movl _nsim(%rip), %eax addl $1, %eax movl %eax, _nsim(%rip) movq -88(%rbp), %rax cmpl $0, 8(%rax) jne LBB9_42 ## %bb.41: ## in Loop: Header=BB9_15 Depth=1 leaq -32(%rbp), %rax movq (%rax), %rcx movq %rcx, (%rsp) movq 8(%rax), %rcx movq %rcx, 8(%rsp) movl 16(%rax), %eax movl %eax, 16(%rsp) callq _A_output jmp LBB9_43 LBB9_42: ## in Loop: Header=BB9_15 Depth=1 leaq -32(%rbp), %rax movq (%rax), %rcx movq %rcx, (%rsp) movq 8(%rax), %rcx movq %rcx, 8(%rsp) movl 16(%rax), %eax movl %eax, 16(%rsp) callq _B_output LBB9_43: ## in Loop: Header=BB9_15 Depth=1 jmp LBB9_61 LBB9_44: ## in Loop: Header=BB9_15 Depth=1 movq -88(%rbp), %rax cmpl $2, 4(%rax) jne LBB9_53 ## %bb.45: ## in Loop: Header=BB9_15 Depth=1 movq -88(%rbp), %rax movq 16(%rax), %rax movl (%rax), %eax movl %eax, -64(%rbp) movq -88(%rbp), %rax movq 16(%rax), %rax movl 4(%rax), %eax movl %eax, -60(%rbp) movq -88(%rbp), %rax movq 16(%rax), %rax movl 8(%rax), %eax movl %eax, -56(%rbp) movl $0, -92(%rbp) LBB9_46: ## Parent Loop BB9_15 Depth=1 ## => This Inner Loop Header: Depth=2 cmpl $20, -92(%rbp) jge LBB9_49 ## %bb.47: ## in Loop: Header=BB9_46 Depth=2 movq -88(%rbp), %rax movq 16(%rax), %rax movslq -92(%rbp), %rcx movb 12(%rax,%rcx), %cl movslq -92(%rbp), %rax movb %cl, -52(%rbp,%rax) ## %bb.48: ## in Loop: Header=BB9_46 Depth=2 movl -92(%rbp), %eax addl $1, %eax movl %eax, -92(%rbp) jmp LBB9_46 LBB9_49: ## in Loop: Header=BB9_15 Depth=1 movq -88(%rbp), %rax cmpl $0, 8(%rax) jne LBB9_51 ## %bb.50: ## in Loop: Header=BB9_15 Depth=1 leaq -64(%rbp), %rax movq (%rax), %rcx movq %rcx, (%rsp) movq 8(%rax), %rcx movq %rcx, 8(%rsp) movq 16(%rax), %rcx movq %rcx, 16(%rsp) movq 24(%rax), %rax movq %rax, 24(%rsp) callq _A_input jmp LBB9_52 LBB9_51: ## in Loop: Header=BB9_15 Depth=1 leaq -64(%rbp), %rax movq (%rax), %rcx movq %rcx, (%rsp) movq 8(%rax), %rcx movq %rcx, 8(%rsp) movq 16(%rax), %rcx movq %rcx, 16(%rsp) movq 24(%rax), %rax movq %rax, 24(%rsp) callq _B_input LBB9_52: ## in Loop: Header=BB9_15 Depth=1 movq -88(%rbp), %rax movq 16(%rax), %rdi callq _free jmp LBB9_60 LBB9_53: ## in Loop: Header=BB9_15 Depth=1 movq -88(%rbp), %rax cmpl $0, 4(%rax) jne LBB9_58 ## %bb.54: ## in Loop: Header=BB9_15 Depth=1 movq -88(%rbp), %rax cmpl $0, 8(%rax) jne LBB9_56 ## %bb.55: ## in Loop: Header=BB9_15 Depth=1 callq _A_timerinterrupt jmp LBB9_57 LBB9_56: ## in Loop: Header=BB9_15 Depth=1 callq _B_timerinterrupt LBB9_57: ## in Loop: Header=BB9_15 Depth=1 jmp LBB9_59 LBB9_58: ## in Loop: Header=BB9_15 Depth=1 leaq L_.str.14(%rip), %rdi movb $0, %al callq _printf LBB9_59: ## in Loop: Header=BB9_15 Depth=1 jmp LBB9_60 LBB9_60: ## in Loop: Header=BB9_15 Depth=1 jmp LBB9_61 LBB9_61: ## in Loop: Header=BB9_15 Depth=1 movq -88(%rbp), %rdi callq _free jmp LBB9_15 LBB9_62: jmp LBB9_63 LBB9_63: movss _time(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movl _nsim(%rip), %esi leaq L_.str.15(%rip), %rdi movb $1, %al callq _printf leaq L_.str.13(%rip), %rdi movb $0, %al callq _printf leaq L_.str.16(%rip), %rdi movb $0, %al callq _printf movl _A_application(%rip), %esi leaq L_.str.17(%rip), %rdi movb $0, %al callq _printf movl _A_transport(%rip), %esi leaq L_.str.18(%rip), %rdi movb $0, %al callq _printf movl _B_transport(%rip), %esi leaq L_.str.19(%rip), %rdi movb $0, %al callq _printf movl _B_application(%rip), %esi leaq L_.str.20(%rip), %rdi movb $0, %al callq _printf movss _time(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 leaq L_.str.21(%rip), %rdi movb $1, %al callq _printf cvtsi2ssl _B_application(%rip), %xmm0 divss _time(%rip), %xmm0 cvtss2sd %xmm0, %xmm0 leaq L_.str.22(%rip), %rdi movb $1, %al callq _printf movl $0, -68(%rbp) LBB9_64: movl -68(%rbp), %eax movl %eax, -116(%rbp) ## 4-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB9_66 ## %bb.65: movl -116(%rbp), %eax ## 4-byte Reload addq $160, %rsp popq %rbp retq LBB9_66: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ## -- Begin function init LCPI10_0: .quad 0x3fd0000000000000 ## double 0.25 LCPI10_1: .quad 0x408f400000000000 ## double 1000 LCPI10_2: .quad 0x3fe8000000000000 ## double 0.75 .section __TEXT,__text,regular,pure_instructions .globl _init .p2align 4, 0x90 _init: ## @init .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl %edi, -4(%rbp) leaq L_.str.23(%rip), %rdi movb $0, %al callq _printf leaq L_.str.24(%rip), %rdi movb $0, %al callq _printf leaq L_.str.25(%rip), %rdi leaq _nsimmax(%rip), %rsi movb $0, %al callq _scanf leaq L_.str.26(%rip), %rdi movb $0, %al callq _printf leaq L_.str.27(%rip), %rdi leaq _lossprob(%rip), %rsi movb $0, %al callq _scanf leaq L_.str.28(%rip), %rdi movb $0, %al callq _printf leaq L_.str.27(%rip), %rdi leaq _corruptprob(%rip), %rsi movb $0, %al callq _scanf leaq L_.str.29(%rip), %rdi movb $0, %al callq _printf leaq L_.str.27(%rip), %rdi leaq _lambda(%rip), %rsi movb $0, %al callq _scanf leaq L_.str.30(%rip), %rdi movb $0, %al callq _printf leaq L_.str.25(%rip), %rdi leaq _TRACE(%rip), %rsi movb $0, %al callq _scanf movl -4(%rbp), %edi callq _srand xorps %xmm0, %xmm0 movss %xmm0, -12(%rbp) movl $0, -8(%rbp) LBB10_1: ## =>This Inner Loop Header: Depth=1 cmpl $1000, -8(%rbp) ## imm = 0x3E8 jge LBB10_4 ## %bb.2: ## in Loop: Header=BB10_1 Depth=1 movss -12(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, -20(%rbp) ## 4-byte Spill callq _jimsrand movaps %xmm0, %xmm1 movss -20(%rbp), %xmm0 ## 4-byte Reload ## xmm0 = mem[0],zero,zero,zero addss %xmm1, %xmm0 movss %xmm0, -12(%rbp) ## %bb.3: ## in Loop: Header=BB10_1 Depth=1 movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) jmp LBB10_1 LBB10_4: movss -12(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movsd LCPI10_1(%rip), %xmm1 ## xmm1 = mem[0],zero divsd %xmm1, %xmm0 cvtsd2ss %xmm0, %xmm0 movss %xmm0, -16(%rbp) movss -16(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm1 movsd LCPI10_0(%rip), %xmm0 ## xmm0 = mem[0],zero ucomisd %xmm1, %xmm0 ja LBB10_6 ## %bb.5: movss -16(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movsd LCPI10_2(%rip), %xmm1 ## xmm1 = mem[0],zero ucomisd %xmm1, %xmm0 jbe LBB10_7 LBB10_6: leaq L_.str.31(%rip), %rdi xorl %eax, %eax movl %eax, -24(%rbp) ## 4-byte Spill movb %al, -25(%rbp) ## 1-byte Spill callq _printf ## kill: def $ecx killed $eax movb -25(%rbp), %al ## 1-byte Reload leaq L_.str.32(%rip), %rdi callq _printf ## kill: def $ecx killed $eax movb -25(%rbp), %al ## 1-byte Reload leaq L_.str.33(%rip), %rdi callq _printf movl -24(%rbp), %edi ## 4-byte Reload callq _exit LBB10_7: movl $0, _ntolayer3(%rip) movl $0, _nlost(%rip) movl $0, _ncorrupt(%rip) xorps %xmm0, %xmm0 movss %xmm0, _time(%rip) callq _generate_next_arrival addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ## -- Begin function jimsrand LCPI11_0: .quad 0x41dfffffffc00000 ## double 2147483647 .section __TEXT,__text,regular,pure_instructions .globl _jimsrand .p2align 4, 0x90 _jimsrand: ## @jimsrand .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movsd LCPI11_0(%rip), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -8(%rbp) callq _rand cvtsi2sd %eax, %xmm0 divsd -8(%rbp), %xmm0 cvtsd2ss %xmm0, %xmm0 movss %xmm0, -12(%rbp) movss -12(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__literal4,4byte_literals .p2align 2 ## -- Begin function generate_next_arrival LCPI12_0: .long 0x40000000 ## float 2 .section __TEXT,__text,regular,pure_instructions .globl _generate_next_arrival .p2align 4, 0x90 _generate_next_arrival: ## @generate_next_arrival .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 cmpl $2, _TRACE(%rip) jle LBB12_2 ## %bb.1: leaq L_.str.34(%rip), %rdi movb $0, %al callq _printf LBB12_2: movss _lambda(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, -28(%rbp) ## 4-byte Spill callq _jimsrand movaps %xmm0, %xmm1 movss -28(%rbp), %xmm0 ## 4-byte Reload ## xmm0 = mem[0],zero,zero,zero mulss %xmm1, %xmm0 movss LCPI12_0(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero mulss %xmm1, %xmm0 cvtss2sd %xmm0, %xmm0 movsd %xmm0, -8(%rbp) movl $40, %edi callq _malloc movq %rax, -16(%rbp) movss _time(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 addsd -8(%rbp), %xmm0 cvtsd2ss %xmm0, %xmm0 movq -16(%rbp), %rax movss %xmm0, (%rax) movq -16(%rbp), %rax movl $1, 4(%rax) movq -16(%rbp), %rax movl $0, 8(%rax) movq -16(%rbp), %rdi callq _insertevent addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _insertevent ## -- Begin function insertevent .p2align 4, 0x90 _insertevent: ## @insertevent .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) cmpl $2, _TRACE(%rip) jle LBB13_2 ## %bb.1: movss _time(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 leaq L_.str.35(%rip), %rdi movb $1, %al callq _printf movq -8(%rbp), %rax movss (%rax), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 leaq L_.str.36(%rip), %rdi movb $1, %al callq _printf LBB13_2: movq _evlist(%rip), %rax movq %rax, -16(%rbp) cmpq $0, -16(%rbp) jne LBB13_4 ## %bb.3: movq -8(%rbp), %rax movq %rax, _evlist(%rip) movq -8(%rbp), %rax movq $0, 32(%rax) movq -8(%rbp), %rax movq $0, 24(%rax) jmp LBB13_17 LBB13_4: movq -16(%rbp), %rax movq %rax, -24(%rbp) LBB13_5: ## =>This Inner Loop Header: Depth=1 xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpq $0, -16(%rbp) movb %al, -25(%rbp) ## 1-byte Spill je LBB13_7 ## %bb.6: ## in Loop: Header=BB13_5 Depth=1 movq -8(%rbp), %rax movss (%rax), %xmm0 ## xmm0 = mem[0],zero,zero,zero movq -16(%rbp), %rax ucomiss (%rax), %xmm0 seta %al movb %al, -25(%rbp) ## 1-byte Spill LBB13_7: ## in Loop: Header=BB13_5 Depth=1 movb -25(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB13_8 jmp LBB13_10 LBB13_8: ## in Loop: Header=BB13_5 Depth=1 movq -16(%rbp), %rax movq %rax, -24(%rbp) ## %bb.9: ## in Loop: Header=BB13_5 Depth=1 movq -16(%rbp), %rax movq 32(%rax), %rax movq %rax, -16(%rbp) jmp LBB13_5 LBB13_10: cmpq $0, -16(%rbp) jne LBB13_12 ## %bb.11: movq -8(%rbp), %rcx movq -24(%rbp), %rax movq %rcx, 32(%rax) movq -24(%rbp), %rcx movq -8(%rbp), %rax movq %rcx, 24(%rax) movq -8(%rbp), %rax movq $0, 32(%rax) jmp LBB13_16 LBB13_12: movq -16(%rbp), %rax cmpq _evlist(%rip), %rax jne LBB13_14 ## %bb.13: movq _evlist(%rip), %rcx movq -8(%rbp), %rax movq %rcx, 32(%rax) movq -8(%rbp), %rax movq $0, 24(%rax) movq -8(%rbp), %rcx movq -8(%rbp), %rax movq 32(%rax), %rax movq %rcx, 24(%rax) movq -8(%rbp), %rax movq %rax, _evlist(%rip) jmp LBB13_15 LBB13_14: movq -16(%rbp), %rcx movq -8(%rbp), %rax movq %rcx, 32(%rax) movq -16(%rbp), %rax movq 24(%rax), %rcx movq -8(%rbp), %rax movq %rcx, 24(%rax) movq -8(%rbp), %rcx movq -16(%rbp), %rax movq 24(%rax), %rax movq %rcx, 32(%rax) movq -8(%rbp), %rcx movq -16(%rbp), %rax movq %rcx, 24(%rax) LBB13_15: jmp LBB13_16 LBB13_16: jmp LBB13_17 LBB13_17: addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _printevlist ## -- Begin function printevlist .p2align 4, 0x90 _printevlist: ## @printevlist .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.37(%rip), %rdi movb $0, %al callq _printf movq _evlist(%rip), %rax movq %rax, -8(%rbp) LBB14_1: ## =>This Inner Loop Header: Depth=1 cmpq $0, -8(%rbp) je LBB14_4 ## %bb.2: ## in Loop: Header=BB14_1 Depth=1 movq -8(%rbp), %rax movss (%rax), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movq -8(%rbp), %rax movl 4(%rax), %esi movq -8(%rbp), %rax movl 8(%rax), %edx leaq L_.str.38(%rip), %rdi movb $1, %al callq _printf ## %bb.3: ## in Loop: Header=BB14_1 Depth=1 movq -8(%rbp), %rax movq 32(%rax), %rax movq %rax, -8(%rbp) jmp LBB14_1 LBB14_4: leaq L_.str.39(%rip), %rdi movb $0, %al callq _printf addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _stoptimer ## -- Begin function stoptimer .p2align 4, 0x90 _stoptimer: ## @stoptimer .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl %edi, -4(%rbp) cmpl $2, _TRACE(%rip) jle LBB15_2 ## %bb.1: movss _time(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 leaq L_.str.40(%rip), %rdi movb $1, %al callq _printf LBB15_2: movq _evlist(%rip), %rax movq %rax, -16(%rbp) LBB15_3: ## =>This Inner Loop Header: Depth=1 cmpq $0, -16(%rbp) je LBB15_19 ## %bb.4: ## in Loop: Header=BB15_3 Depth=1 movq -16(%rbp), %rax cmpl $0, 4(%rax) jne LBB15_17 ## %bb.5: ## in Loop: Header=BB15_3 Depth=1 movq -16(%rbp), %rax movl 8(%rax), %eax cmpl -4(%rbp), %eax jne LBB15_17 ## %bb.6: movq -16(%rbp), %rax cmpq $0, 32(%rax) jne LBB15_9 ## %bb.7: movq -16(%rbp), %rax cmpq $0, 24(%rax) jne LBB15_9 ## %bb.8: movq $0, _evlist(%rip) jmp LBB15_16 LBB15_9: movq -16(%rbp), %rax cmpq $0, 32(%rax) jne LBB15_11 ## %bb.10: movq -16(%rbp), %rax movq 24(%rax), %rax movq $0, 32(%rax) jmp LBB15_15 LBB15_11: movq -16(%rbp), %rax cmpq _evlist(%rip), %rax jne LBB15_13 ## %bb.12: movq -16(%rbp), %rax movq 32(%rax), %rax movq $0, 24(%rax) movq -16(%rbp), %rax movq 32(%rax), %rax movq %rax, _evlist(%rip) jmp LBB15_14 LBB15_13: movq -16(%rbp), %rax movq 24(%rax), %rcx movq -16(%rbp), %rax movq 32(%rax), %rax movq %rcx, 24(%rax) movq -16(%rbp), %rax movq 32(%rax), %rcx movq -16(%rbp), %rax movq 24(%rax), %rax movq %rcx, 32(%rax) LBB15_14: jmp LBB15_15 LBB15_15: jmp LBB15_16 LBB15_16: movq -16(%rbp), %rdi callq _free jmp LBB15_20 LBB15_17: ## in Loop: Header=BB15_3 Depth=1 jmp LBB15_18 LBB15_18: ## in Loop: Header=BB15_3 Depth=1 movq -16(%rbp), %rax movq 32(%rax), %rax movq %rax, -16(%rbp) jmp LBB15_3 LBB15_19: leaq L_.str.41(%rip), %rdi movb $0, %al callq _printf LBB15_20: addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _starttimer ## -- Begin function starttimer .p2align 4, 0x90 _starttimer: ## @starttimer .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 cvtsd2ss %xmm0, %xmm0 movl %edi, -4(%rbp) movss %xmm0, -8(%rbp) cmpl $2, _TRACE(%rip) jle LBB16_2 ## %bb.1: movss _time(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 leaq L_.str.42(%rip), %rdi movb $1, %al callq _printf LBB16_2: movq _evlist(%rip), %rax movq %rax, -16(%rbp) LBB16_3: ## =>This Inner Loop Header: Depth=1 cmpq $0, -16(%rbp) je LBB16_9 ## %bb.4: ## in Loop: Header=BB16_3 Depth=1 movq -16(%rbp), %rax cmpl $0, 4(%rax) jne LBB16_7 ## %bb.5: ## in Loop: Header=BB16_3 Depth=1 movq -16(%rbp), %rax movl 8(%rax), %eax cmpl -4(%rbp), %eax jne LBB16_7 ## %bb.6: leaq L_.str.43(%rip), %rdi movb $0, %al callq _printf jmp LBB16_10 LBB16_7: ## in Loop: Header=BB16_3 Depth=1 jmp LBB16_8 LBB16_8: ## in Loop: Header=BB16_3 Depth=1 movq -16(%rbp), %rax movq 32(%rax), %rax movq %rax, -16(%rbp) jmp LBB16_3 LBB16_9: movl $40, %edi callq _malloc movq %rax, -24(%rbp) movss _time(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero addss -8(%rbp), %xmm0 movq -24(%rbp), %rax movss %xmm0, (%rax) movq -24(%rbp), %rax movl $0, 4(%rax) movl -4(%rbp), %ecx movq -24(%rbp), %rax movl %ecx, 8(%rax) movq -24(%rbp), %rdi callq _insertevent LBB16_10: addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__literal4,4byte_literals .p2align 2 ## -- Begin function tolayer3 LCPI17_0: .long 0x41100000 ## float 9 LCPI17_1: .long 0x3f800000 ## float 1 .section __TEXT,__literal8,8byte_literals .p2align 3 LCPI17_2: .quad 0x3fe8000000000000 ## double 0.75 LCPI17_3: .quad 0x3fec000000000000 ## double 0.875 .section __TEXT,__text,regular,pure_instructions .globl _tolayer3 .p2align 4, 0x90 _tolayer3: ## @tolayer3 .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 leaq 16(%rbp), %rax movq %rax, -56(%rbp) ## 8-byte Spill movl %edi, -4(%rbp) movl _ntolayer3(%rip), %eax addl $1, %eax movl %eax, _ntolayer3(%rip) callq _jimsrand movaps %xmm0, %xmm1 movss _lossprob(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero ucomiss %xmm1, %xmm0 jbe LBB17_4 ## %bb.1: movl _nlost(%rip), %eax addl $1, %eax movl %eax, _nlost(%rip) cmpl $0, _TRACE(%rip) jle LBB17_3 ## %bb.2: leaq L_.str.44(%rip), %rdi movb $0, %al callq _printf LBB17_3: jmp LBB17_34 LBB17_4: movl $32, %edi callq _malloc movq %rax, %rcx movq -56(%rbp), %rax ## 8-byte Reload movq %rcx, -16(%rbp) movl (%rax), %edx movq -16(%rbp), %rcx movl %edx, (%rcx) movl 4(%rax), %edx movq -16(%rbp), %rcx movl %edx, 4(%rcx) movl 8(%rax), %ecx movq -16(%rbp), %rax movl %ecx, 8(%rax) movl $0, -44(%rbp) LBB17_5: ## =>This Inner Loop Header: Depth=1 cmpl $20, -44(%rbp) jge LBB17_8 ## %bb.6: ## in Loop: Header=BB17_5 Depth=1 movq -56(%rbp), %rax ## 8-byte Reload movslq -44(%rbp), %rcx movb 12(%rax,%rcx), %dl movq -16(%rbp), %rax movslq -44(%rbp), %rcx movb %dl, 12(%rax,%rcx) ## %bb.7: ## in Loop: Header=BB17_5 Depth=1 movl -44(%rbp), %eax addl $1, %eax movl %eax, -44(%rbp) jmp LBB17_5 LBB17_8: cmpl $2, _TRACE(%rip) jle LBB17_14 ## %bb.9: movq -16(%rbp), %rax movl (%rax), %esi movq -16(%rbp), %rax movl 4(%rax), %edx movq -16(%rbp), %rax movl 8(%rax), %ecx leaq L_.str.45(%rip), %rdi movb $0, %al callq _printf movl $0, -44(%rbp) LBB17_10: ## =>This Inner Loop Header: Depth=1 cmpl $20, -44(%rbp) jge LBB17_13 ## %bb.11: ## in Loop: Header=BB17_10 Depth=1 movq -16(%rbp), %rax movslq -44(%rbp), %rcx movsbl 12(%rax,%rcx), %esi leaq L_.str.12(%rip), %rdi movb $0, %al callq _printf ## %bb.12: ## in Loop: Header=BB17_10 Depth=1 movl -44(%rbp), %eax addl $1, %eax movl %eax, -44(%rbp) jmp LBB17_10 LBB17_13: leaq L_.str.13(%rip), %rdi movb $0, %al callq _printf LBB17_14: movl $40, %edi callq _malloc movq %rax, -24(%rbp) movq -24(%rbp), %rax movl $2, 4(%rax) movl -4(%rbp), %eax addl $1, %eax movl $2, %ecx cltd idivl %ecx movq -24(%rbp), %rax movl %edx, 8(%rax) movq -16(%rbp), %rcx movq -24(%rbp), %rax movq %rcx, 16(%rax) movss _time(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, -36(%rbp) movq _evlist(%rip), %rax movq %rax, -32(%rbp) LBB17_15: ## =>This Inner Loop Header: Depth=1 cmpq $0, -32(%rbp) je LBB17_21 ## %bb.16: ## in Loop: Header=BB17_15 Depth=1 movq -32(%rbp), %rax cmpl $2, 4(%rax) jne LBB17_19 ## %bb.17: ## in Loop: Header=BB17_15 Depth=1 movq -32(%rbp), %rax movl 8(%rax), %eax movq -24(%rbp), %rcx cmpl 8(%rcx), %eax jne LBB17_19 ## %bb.18: ## in Loop: Header=BB17_15 Depth=1 movq -32(%rbp), %rax movss (%rax), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, -36(%rbp) LBB17_19: ## in Loop: Header=BB17_15 Depth=1 jmp LBB17_20 LBB17_20: ## in Loop: Header=BB17_15 Depth=1 movq -32(%rbp), %rax movq 32(%rax), %rax movq %rax, -32(%rbp) jmp LBB17_15 LBB17_21: movss LCPI17_1(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero addss -36(%rbp), %xmm0 movss %xmm0, -60(%rbp) ## 4-byte Spill callq _jimsrand movss -60(%rbp), %xmm1 ## 4-byte Reload ## xmm1 = mem[0],zero,zero,zero movss LCPI17_0(%rip), %xmm2 ## xmm2 = mem[0],zero,zero,zero mulss %xmm2, %xmm0 addss %xmm1, %xmm0 movq -24(%rbp), %rax movss %xmm0, (%rax) callq _jimsrand movaps %xmm0, %xmm1 movss _corruptprob(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero ucomiss %xmm1, %xmm0 jbe LBB17_31 ## %bb.22: movl _ncorrupt(%rip), %eax addl $1, %eax movl %eax, _ncorrupt(%rip) callq _jimsrand movss %xmm0, -40(%rbp) cvtss2sd %xmm0, %xmm1 movsd LCPI17_2(%rip), %xmm0 ## xmm0 = mem[0],zero ucomisd %xmm1, %xmm0 jbe LBB17_24 ## %bb.23: movq -16(%rbp), %rax movb $90, 12(%rax) jmp LBB17_28 LBB17_24: movss -40(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm1 movsd LCPI17_3(%rip), %xmm0 ## xmm0 = mem[0],zero ucomisd %xmm1, %xmm0 jbe LBB17_26 ## %bb.25: movq -16(%rbp), %rax movl $999999, (%rax) ## imm = 0xF423F jmp LBB17_27 LBB17_26: movq -16(%rbp), %rax movl $999999, 4(%rax) ## imm = 0xF423F LBB17_27: jmp LBB17_28 LBB17_28: cmpl $0, _TRACE(%rip) jle LBB17_30 ## %bb.29: leaq L_.str.46(%rip), %rdi movb $0, %al callq _printf LBB17_30: jmp LBB17_31 LBB17_31: cmpl $2, _TRACE(%rip) jle LBB17_33 ## %bb.32: leaq L_.str.47(%rip), %rdi movb $0, %al callq _printf LBB17_33: movq -24(%rbp), %rdi callq _insertevent LBB17_34: addq $64, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _tolayer5 ## -- Begin function tolayer5 .p2align 4, 0x90 _tolayer5: ## @tolayer5 .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) cmpl $2, _TRACE(%rip) jle LBB18_6 ## %bb.1: leaq L_.str.48(%rip), %rdi movb $0, %al callq _printf movl $0, -20(%rbp) LBB18_2: ## =>This Inner Loop Header: Depth=1 cmpl $20, -20(%rbp) jge LBB18_5 ## %bb.3: ## in Loop: Header=BB18_2 Depth=1 movq -16(%rbp), %rax movslq -20(%rbp), %rcx movsbl (%rax,%rcx), %esi leaq L_.str.12(%rip), %rdi movb $0, %al callq _printf ## %bb.4: ## in Loop: Header=BB18_2 Depth=1 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB18_2 LBB18_5: leaq L_.str.13(%rip), %rdi movb $0, %al callq _printf LBB18_6: addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _A_application ## @A_application .zerofill __DATA,__common,_A_application,4,2 .globl _A_transport ## @A_transport .zerofill __DATA,__common,_A_transport,4,2 .globl _B_application ## @B_application .zerofill __DATA,__common,_B_application,4,2 .globl _B_transport ## @B_transport .zerofill __DATA,__common,_B_transport,4,2 .globl _TIMEOUT ## @TIMEOUT .zerofill __DATA,__common,_TIMEOUT,4,2 .globl _SND_BUFSIZE ## @SND_BUFSIZE .zerofill __DATA,__common,_SND_BUFSIZE,4,2 .globl _RCV_BUFSIZE ## @RCV_BUFSIZE .zerofill __DATA,__common,_RCV_BUFSIZE,4,2 .globl _evlist ## @evlist .zerofill __DATA,__common,_evlist,8,3 .section __DATA,__data .globl _TRACE ## @TRACE .p2align 2 _TRACE: .long 1 ## 0x1 .globl _nsim ## @nsim .zerofill __DATA,__common,_nsim,4,2 .globl _nsimmax ## @nsimmax .zerofill __DATA,__common,_nsimmax,4,2 .globl _time ## @time .zerofill __DATA,__common,_time,4,2 .globl _lossprob ## @lossprob .zerofill __DATA,__common,_lossprob,4,2 .globl _corruptprob ## @corruptprob .zerofill __DATA,__common,_corruptprob,4,2 .globl _lambda ## @lambda .zerofill __DATA,__common,_lambda,4,2 .globl _ntolayer3 ## @ntolayer3 .zerofill __DATA,__common,_ntolayer3,4,2 .globl _nlost ## @nlost .zerofill __DATA,__common,_nlost,4,2 .globl _ncorrupt ## @ncorrupt .zerofill __DATA,__common,_ncorrupt,4,2 .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Missing arguments\n" L_.str.1: ## @.str.1 .asciz "Usage: %s -s SEED -w WINDOWSIZE\n" L_.str.2: ## @.str.2 .asciz "s:w:" L_.str.3: ## @.str.3 .asciz "Invalid value for -s\n" L_.str.4: ## @.str.4 .asciz "Invalid value for -w\n" .comm _WINSIZE,4,2 ## @WINSIZE L_.str.5: ## @.str.5 .asciz "\nEVENT time: %f," L_.str.6: ## @.str.6 .asciz " type: %d" L_.str.7: ## @.str.7 .asciz ", timerinterrupt " L_.str.8: ## @.str.8 .asciz ", fromlayer5 " L_.str.9: ## @.str.9 .asciz ", fromlayer3 " L_.str.10: ## @.str.10 .asciz " entity: %d\n" L_.str.11: ## @.str.11 .asciz " MAINLOOP: data given to student: " L_.str.12: ## @.str.12 .asciz "%c" L_.str.13: ## @.str.13 .asciz "\n" L_.str.14: ## @.str.14 .asciz "INTERNAL PANIC: unknown event type \n" L_.str.15: ## @.str.15 .asciz " Simulator terminated at time %f\n after sending %d msgs from layer5\n" L_.str.16: ## @.str.16 .asciz "Protocol: SR\n" L_.str.17: ## @.str.17 .asciz "[PA2]%d packets sent from the Application Layer of Sender A[/PA2]\n" L_.str.18: ## @.str.18 .asciz "[PA2]%d packets sent from the Transport Layer of Sender A[/PA2]\n" L_.str.19: ## @.str.19 .asciz "[PA2]%d packets received at the Transport layer of Receiver B[/PA2]\n" L_.str.20: ## @.str.20 .asciz "[PA2]%d packets received at the Application layer of Receiver B[/PA2]\n" L_.str.21: ## @.str.21 .asciz "[PA2]Total time: %f time units[/PA2]\n" L_.str.22: ## @.str.22 .asciz "[PA2]Throughput: %f packets/time units[/PA2]\n" L_.str.23: ## @.str.23 .asciz "----- Stop and Wait Network Simulator Version 1.1 -------- \n\n" L_.str.24: ## @.str.24 .asciz "Enter the number of messages to simulate: " L_.str.25: ## @.str.25 .asciz "%d" L_.str.26: ## @.str.26 .asciz "Enter packet loss probability [enter 0.0 for no loss]:" L_.str.27: ## @.str.27 .asciz "%f" L_.str.28: ## @.str.28 .asciz "Enter packet corruption probability [0.0 for no corruption]:" L_.str.29: ## @.str.29 .asciz "Enter average time between messages from sender's layer5 [ > 0.0]:" L_.str.30: ## @.str.30 .asciz "Enter TRACE:" L_.str.31: ## @.str.31 .asciz "It is likely that random number generation on your machine\n" L_.str.32: ## @.str.32 .asciz "is different from what this emulator expects. Please take\n" L_.str.33: ## @.str.33 .asciz "a look at the routine jimsrand() in the emulator code. Sorry. \n" L_.str.34: ## @.str.34 .asciz " GENERATE NEXT ARRIVAL: creating new arrival\n" L_.str.35: ## @.str.35 .asciz " INSERTEVENT: time is %lf\n" L_.str.36: ## @.str.36 .asciz " INSERTEVENT: future time will be %lf\n" L_.str.37: ## @.str.37 .asciz "--------------\nEvent List Follows:\n" L_.str.38: ## @.str.38 .asciz "Event time: %f, type: %d entity: %d\n" L_.str.39: ## @.str.39 .asciz "--------------\n" L_.str.40: ## @.str.40 .asciz " STOP TIMER: stopping timer at %f\n" L_.str.41: ## @.str.41 .asciz "Warning: unable to cancel your timer. It wasn't running.\n" L_.str.42: ## @.str.42 .asciz " START TIMER: starting timer at %f\n" L_.str.43: ## @.str.43 .asciz "Warning: attempt to start a timer that is already started\n" L_.str.44: ## @.str.44 .asciz " TOLAYER3: packet being lost\n" L_.str.45: ## @.str.45 .asciz " TOLAYER3: seq: %d, ack %d, check: %d " L_.str.46: ## @.str.46 .asciz " TOLAYER3: packet being corrupted\n" L_.str.47: ## @.str.47 .asciz " TOLAYER3: scheduling arrival on other side\n" L_.str.48: ## @.str.48 .asciz " TOLAYER5: data received: " .subsections_via_symbols
the_stack_data/198579688.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _some_c_function ; -- Begin function some_c_function .p2align 2 _some_c_function: ; @some_c_function .cfi_startproc ; %bb.0: ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _some_c_function ## -- Begin function some_c_function .p2align 4, 0x90 _some_c_function: ## @some_c_function .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/104828797.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 mov w0, #0 str wzr, [sp, #12] str wzr, [sp] str wzr, [sp, #8] ldr w8, [sp, #8] str w8, [sp] ldrsh w8, [sp, #4] str w8, [sp] ldr w8, [sp, #4] str w8, [sp] ldr w8, [sp, #8] str w8, [sp] add sp, sp, #16 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl $0, -4(%rbp) movl $0, -20(%rbp) movl $0, -12(%rbp) movl -12(%rbp), %eax movl %eax, -20(%rbp) movswl -16(%rbp), %eax movl %eax, -20(%rbp) movl -16(%rbp), %eax movl %eax, -20(%rbp) movl -12(%rbp), %eax movl %eax, -20(%rbp) xorl %eax, %eax popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/1083191.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/48574811.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _vector_add ; -- Begin function vector_add .p2align 2 _vector_add: ; @vector_add .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str wzr, [sp, #12] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #12] subs w8, w8, #1024 cset w8, ge tbnz w8, #0, LBB0_4 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldrsw x9, [sp, #12] adrp x8, _b@GOTPAGE ldr x8, [x8, _b@GOTPAGEOFF] ldr s0, [x8, x9, lsl #2] ldrsw x9, [sp, #12] adrp x8, _c@GOTPAGE ldr x8, [x8, _c@GOTPAGEOFF] ldr s1, [x8, x9, lsl #2] fadd s0, s0, s1 ldrsw x9, [sp, #12] adrp x8, _a@GOTPAGE ldr x8, [x8, _a@GOTPAGEOFF] str s0, [x8, x9, lsl #2] 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: add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _vector_subtract ; -- Begin function vector_subtract .p2align 2 _vector_subtract: ; @vector_subtract .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str wzr, [sp, #12] b LBB1_1 LBB1_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #12] subs w8, w8, #1024 cset w8, ge tbnz w8, #0, LBB1_4 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 ldrsw x9, [sp, #12] adrp x8, _b@GOTPAGE ldr x8, [x8, _b@GOTPAGEOFF] ldr s0, [x8, x9, lsl #2] ldrsw x9, [sp, #12] adrp x8, _c@GOTPAGE ldr x8, [x8, _c@GOTPAGEOFF] ldr s1, [x8, x9, lsl #2] fsub s0, s0, s1 ldrsw x9, [sp, #12] adrp x8, _a@GOTPAGE ldr x8, [x8, _a@GOTPAGEOFF] str s0, [x8, x9, lsl #2] b LBB1_3 LBB1_3: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB1_1 LBB1_4: add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _vector_multiply ; -- Begin function vector_multiply .p2align 2 _vector_multiply: ; @vector_multiply .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str wzr, [sp, #12] b LBB2_1 LBB2_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #12] subs w8, w8, #1024 cset w8, ge tbnz w8, #0, LBB2_4 b LBB2_2 LBB2_2: ; in Loop: Header=BB2_1 Depth=1 ldrsw x9, [sp, #12] adrp x8, _b@GOTPAGE ldr x8, [x8, _b@GOTPAGEOFF] ldr s0, [x8, x9, lsl #2] ldrsw x9, [sp, #12] adrp x8, _c@GOTPAGE ldr x8, [x8, _c@GOTPAGEOFF] ldr s1, [x8, x9, lsl #2] fmul s0, s0, s1 ldrsw x9, [sp, #12] adrp x8, _a@GOTPAGE ldr x8, [x8, _a@GOTPAGEOFF] str s0, [x8, x9, lsl #2] b LBB2_3 LBB2_3: ; in Loop: Header=BB2_1 Depth=1 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB2_1 LBB2_4: add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _vector_multiply_add ; -- Begin function vector_multiply_add .p2align 2 _vector_multiply_add: ; @vector_multiply_add .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str wzr, [sp, #12] b LBB3_1 LBB3_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #12] subs w8, w8, #1024 cset w8, ge tbnz w8, #0, LBB3_4 b LBB3_2 LBB3_2: ; in Loop: Header=BB3_1 Depth=1 ldrsw x9, [sp, #12] adrp x8, _b@GOTPAGE ldr x8, [x8, _b@GOTPAGEOFF] ldr s0, [x8, x9, lsl #2] ldrsw x9, [sp, #12] adrp x8, _c@GOTPAGE ldr x8, [x8, _c@GOTPAGEOFF] ldr s1, [x8, x9, lsl #2] ldrsw x9, [sp, #12] adrp x8, _d@GOTPAGE ldr x8, [x8, _d@GOTPAGEOFF] ldr s2, [x8, x9, lsl #2] fmadd s0, s0, s1, s2 ldrsw x9, [sp, #12] adrp x8, _a@GOTPAGE ldr x8, [x8, _a@GOTPAGEOFF] str s0, [x8, x9, lsl #2] b LBB3_3 LBB3_3: ; in Loop: Header=BB3_1 Depth=1 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB3_1 LBB3_4: add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _vector_multiply_subtract ; -- Begin function vector_multiply_subtract .p2align 2 _vector_multiply_subtract: ; @vector_multiply_subtract .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str wzr, [sp, #12] b LBB4_1 LBB4_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #12] subs w8, w8, #1024 cset w8, ge tbnz w8, #0, LBB4_4 b LBB4_2 LBB4_2: ; in Loop: Header=BB4_1 Depth=1 ldrsw x9, [sp, #12] adrp x8, _b@GOTPAGE ldr x8, [x8, _b@GOTPAGEOFF] ldr s0, [x8, x9, lsl #2] ldrsw x9, [sp, #12] adrp x8, _c@GOTPAGE ldr x8, [x8, _c@GOTPAGEOFF] ldr s1, [x8, x9, lsl #2] ldrsw x9, [sp, #12] adrp x8, _d@GOTPAGE ldr x8, [x8, _d@GOTPAGEOFF] ldr s2, [x8, x9, lsl #2] fnmsub s0, s0, s1, s2 ldrsw x9, [sp, #12] adrp x8, _a@GOTPAGE ldr x8, [x8, _a@GOTPAGEOFF] str s0, [x8, x9, lsl #2] b LBB4_3 LBB4_3: ; in Loop: Header=BB4_1 Depth=1 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB4_1 LBB4_4: add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _vector_divide ; -- Begin function vector_divide .p2align 2 _vector_divide: ; @vector_divide .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str wzr, [sp, #12] b LBB5_1 LBB5_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #12] subs w8, w8, #1024 cset w8, ge tbnz w8, #0, LBB5_4 b LBB5_2 LBB5_2: ; in Loop: Header=BB5_1 Depth=1 ldrsw x9, [sp, #12] adrp x8, _b@GOTPAGE ldr x8, [x8, _b@GOTPAGEOFF] ldr s0, [x8, x9, lsl #2] ldrsw x9, [sp, #12] adrp x8, _c@GOTPAGE ldr x8, [x8, _c@GOTPAGEOFF] ldr s1, [x8, x9, lsl #2] fdiv s0, s0, s1 ldrsw x9, [sp, #12] adrp x8, _a@GOTPAGE ldr x8, [x8, _a@GOTPAGEOFF] str s0, [x8, x9, lsl #2] b LBB5_3 LBB5_3: ; in Loop: Header=BB5_1 Depth=1 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB5_1 LBB5_4: add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _vector_sqrt ; -- Begin function vector_sqrt .p2align 2 _vector_sqrt: ; @vector_sqrt .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str wzr, [sp, #12] b LBB6_1 LBB6_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #12] subs w8, w8, #1024 cset w8, ge tbnz w8, #0, LBB6_4 b LBB6_2 LBB6_2: ; in Loop: Header=BB6_1 Depth=1 ldrsw x9, [sp, #12] adrp x8, _b@GOTPAGE ldr x8, [x8, _b@GOTPAGEOFF] ldr s0, [x8, x9, lsl #2] fsqrt s0, s0 ldrsw x9, [sp, #12] adrp x8, _a@GOTPAGE ldr x8, [x8, _a@GOTPAGEOFF] str s0, [x8, x9, lsl #2] b LBB6_3 LBB6_3: ; in Loop: Header=BB6_1 Depth=1 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB6_1 LBB6_4: add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _vector_floor ; -- Begin function vector_floor .p2align 2 _vector_floor: ; @vector_floor .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str wzr, [sp, #12] b LBB7_1 LBB7_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #12] subs w8, w8, #1024 cset w8, ge tbnz w8, #0, LBB7_4 b LBB7_2 LBB7_2: ; in Loop: Header=BB7_1 Depth=1 ldrsw x9, [sp, #12] adrp x8, _b@GOTPAGE ldr x8, [x8, _b@GOTPAGEOFF] ldr s0, [x8, x9, lsl #2] frintm s0, s0 ldrsw x9, [sp, #12] adrp x8, _a@GOTPAGE ldr x8, [x8, _a@GOTPAGEOFF] str s0, [x8, x9, lsl #2] b LBB7_3 LBB7_3: ; in Loop: Header=BB7_1 Depth=1 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB7_1 LBB7_4: add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _vector_ceil ; -- Begin function vector_ceil .p2align 2 _vector_ceil: ; @vector_ceil .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str wzr, [sp, #12] b LBB8_1 LBB8_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #12] subs w8, w8, #1024 cset w8, ge tbnz w8, #0, LBB8_4 b LBB8_2 LBB8_2: ; in Loop: Header=BB8_1 Depth=1 ldrsw x9, [sp, #12] adrp x8, _b@GOTPAGE ldr x8, [x8, _b@GOTPAGEOFF] ldr s0, [x8, x9, lsl #2] frintp s0, s0 ldrsw x9, [sp, #12] adrp x8, _a@GOTPAGE ldr x8, [x8, _a@GOTPAGEOFF] str s0, [x8, x9, lsl #2] b LBB8_3 LBB8_3: ; in Loop: Header=BB8_1 Depth=1 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB8_1 LBB8_4: add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _vector_trunc ; -- Begin function vector_trunc .p2align 2 _vector_trunc: ; @vector_trunc .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str wzr, [sp, #12] b LBB9_1 LBB9_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #12] subs w8, w8, #1024 cset w8, ge tbnz w8, #0, LBB9_4 b LBB9_2 LBB9_2: ; in Loop: Header=BB9_1 Depth=1 ldrsw x9, [sp, #12] adrp x8, _b@GOTPAGE ldr x8, [x8, _b@GOTPAGEOFF] ldr s0, [x8, x9, lsl #2] frintz s0, s0 ldrsw x9, [sp, #12] adrp x8, _a@GOTPAGE ldr x8, [x8, _a@GOTPAGEOFF] str s0, [x8, x9, lsl #2] b LBB9_3 LBB9_3: ; in Loop: Header=BB9_1 Depth=1 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB9_1 LBB9_4: add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _vector_nearbyint ; -- Begin function vector_nearbyint .p2align 2 _vector_nearbyint: ; @vector_nearbyint .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str wzr, [sp, #12] b LBB10_1 LBB10_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #12] subs w8, w8, #1024 cset w8, ge tbnz w8, #0, LBB10_4 b LBB10_2 LBB10_2: ; in Loop: Header=BB10_1 Depth=1 ldrsw x9, [sp, #12] adrp x8, _b@GOTPAGE ldr x8, [x8, _b@GOTPAGEOFF] ldr s0, [x8, x9, lsl #2] frinti s0, s0 ldrsw x9, [sp, #12] adrp x8, _a@GOTPAGE ldr x8, [x8, _a@GOTPAGEOFF] str s0, [x8, x9, lsl #2] b LBB10_3 LBB10_3: ; in Loop: Header=BB10_1 Depth=1 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB10_1 LBB10_4: add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _vector_rint ; -- Begin function vector_rint .p2align 2 _vector_rint: ; @vector_rint .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str wzr, [sp, #12] b LBB11_1 LBB11_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #12] subs w8, w8, #1024 cset w8, ge tbnz w8, #0, LBB11_4 b LBB11_2 LBB11_2: ; in Loop: Header=BB11_1 Depth=1 ldrsw x9, [sp, #12] adrp x8, _b@GOTPAGE ldr x8, [x8, _b@GOTPAGEOFF] ldr s0, [x8, x9, lsl #2] frintx s0, s0 ldrsw x9, [sp, #12] adrp x8, _a@GOTPAGE ldr x8, [x8, _a@GOTPAGEOFF] str s0, [x8, x9, lsl #2] b LBB11_3 LBB11_3: ; in Loop: Header=BB11_1 Depth=1 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB11_1 LBB11_4: add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _vector_copysign ; -- Begin function vector_copysign .p2align 2 _vector_copysign: ; @vector_copysign .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 mov w8, #0 str w8, [sp, #12] b LBB12_1 LBB12_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #12] subs w8, w8, #1023 b.gt LBB12_4 b LBB12_2 LBB12_2: ; in Loop: Header=BB12_1 Depth=1 ldrsw x8, [sp, #12] lsl x9, x8, #2 adrp x8, _b@GOTPAGE ldr x8, [x8, _b@GOTPAGEOFF] ldr s0, [x8, x9] adrp x8, _c@GOTPAGE ldr x8, [x8, _c@GOTPAGEOFF] ldr s1, [x8, x9] ; implicit-def: $q2 fmov s2, s1 ; implicit-def: $q1 fmov s1, s0 mvni.4s v0, #128, lsl #24 bsl.16b v0, v1, v2 ; kill: def $s0 killed $s0 killed $q0 adrp x8, _a@GOTPAGE ldr x8, [x8, _a@GOTPAGEOFF] str s0, [x8, x9] b LBB12_3 LBB12_3: ; in Loop: Header=BB12_1 Depth=1 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB12_1 LBB12_4: add sp, sp, #16 ret .cfi_endproc ; -- End function .comm _b,4096,5 ; @b .comm _c,4096,5 ; @c .comm _a,4096,5 ; @a .comm _d,4096,5 ; @d .comm _e,4096,5 ; @e .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _vector_add ## -- Begin function vector_add .p2align 4, 0x90 _vector_add: ## @vector_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 $0, -4(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 cmpl $1024, -4(%rbp) ## imm = 0x400 jge LBB0_4 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movslq -4(%rbp), %rcx movq _b@GOTPCREL(%rip), %rax movss (%rax,%rcx,4), %xmm0 ## xmm0 = mem[0],zero,zero,zero movslq -4(%rbp), %rcx movq _c@GOTPCREL(%rip), %rax addss (%rax,%rcx,4), %xmm0 movslq -4(%rbp), %rcx movq _a@GOTPCREL(%rip), %rax movss %xmm0, (%rax,%rcx,4) ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movl -4(%rbp), %eax addl $1, %eax movl %eax, -4(%rbp) jmp LBB0_1 LBB0_4: popq %rbp retq .cfi_endproc ## -- End function .globl _vector_subtract ## -- Begin function vector_subtract .p2align 4, 0x90 _vector_subtract: ## @vector_subtract .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl $0, -4(%rbp) LBB1_1: ## =>This Inner Loop Header: Depth=1 cmpl $1024, -4(%rbp) ## imm = 0x400 jge LBB1_4 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 movslq -4(%rbp), %rcx movq _b@GOTPCREL(%rip), %rax movss (%rax,%rcx,4), %xmm0 ## xmm0 = mem[0],zero,zero,zero movslq -4(%rbp), %rcx movq _c@GOTPCREL(%rip), %rax subss (%rax,%rcx,4), %xmm0 movslq -4(%rbp), %rcx movq _a@GOTPCREL(%rip), %rax movss %xmm0, (%rax,%rcx,4) ## %bb.3: ## in Loop: Header=BB1_1 Depth=1 movl -4(%rbp), %eax addl $1, %eax movl %eax, -4(%rbp) jmp LBB1_1 LBB1_4: popq %rbp retq .cfi_endproc ## -- End function .globl _vector_multiply ## -- Begin function vector_multiply .p2align 4, 0x90 _vector_multiply: ## @vector_multiply .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl $0, -4(%rbp) LBB2_1: ## =>This Inner Loop Header: Depth=1 cmpl $1024, -4(%rbp) ## imm = 0x400 jge LBB2_4 ## %bb.2: ## in Loop: Header=BB2_1 Depth=1 movslq -4(%rbp), %rcx movq _b@GOTPCREL(%rip), %rax movss (%rax,%rcx,4), %xmm0 ## xmm0 = mem[0],zero,zero,zero movslq -4(%rbp), %rcx movq _c@GOTPCREL(%rip), %rax mulss (%rax,%rcx,4), %xmm0 movslq -4(%rbp), %rcx movq _a@GOTPCREL(%rip), %rax movss %xmm0, (%rax,%rcx,4) ## %bb.3: ## in Loop: Header=BB2_1 Depth=1 movl -4(%rbp), %eax addl $1, %eax movl %eax, -4(%rbp) jmp LBB2_1 LBB2_4: popq %rbp retq .cfi_endproc ## -- End function .globl _vector_multiply_add ## -- Begin function vector_multiply_add .p2align 4, 0x90 _vector_multiply_add: ## @vector_multiply_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 $0, -4(%rbp) LBB3_1: ## =>This Inner Loop Header: Depth=1 cmpl $1024, -4(%rbp) ## imm = 0x400 jge LBB3_4 ## %bb.2: ## in Loop: Header=BB3_1 Depth=1 movslq -4(%rbp), %rcx movq _b@GOTPCREL(%rip), %rax movss (%rax,%rcx,4), %xmm0 ## xmm0 = mem[0],zero,zero,zero movslq -4(%rbp), %rcx movq _c@GOTPCREL(%rip), %rax movss (%rax,%rcx,4), %xmm2 ## xmm2 = mem[0],zero,zero,zero movslq -4(%rbp), %rcx movq _d@GOTPCREL(%rip), %rax movss (%rax,%rcx,4), %xmm1 ## xmm1 = mem[0],zero,zero,zero mulss %xmm2, %xmm0 addss %xmm1, %xmm0 movslq -4(%rbp), %rcx movq _a@GOTPCREL(%rip), %rax movss %xmm0, (%rax,%rcx,4) ## %bb.3: ## in Loop: Header=BB3_1 Depth=1 movl -4(%rbp), %eax addl $1, %eax movl %eax, -4(%rbp) jmp LBB3_1 LBB3_4: popq %rbp retq .cfi_endproc ## -- End function .globl _vector_multiply_subtract ## -- Begin function vector_multiply_subtract .p2align 4, 0x90 _vector_multiply_subtract: ## @vector_multiply_subtract .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) LBB4_1: ## =>This Inner Loop Header: Depth=1 cmpl $1024, -4(%rbp) ## imm = 0x400 jge LBB4_4 ## %bb.2: ## in Loop: Header=BB4_1 Depth=1 movslq -4(%rbp), %rcx movq _b@GOTPCREL(%rip), %rax movss (%rax,%rcx,4), %xmm0 ## xmm0 = mem[0],zero,zero,zero movslq -4(%rbp), %rcx movq _c@GOTPCREL(%rip), %rax movss (%rax,%rcx,4), %xmm2 ## xmm2 = mem[0],zero,zero,zero movslq -4(%rbp), %rcx movq _d@GOTPCREL(%rip), %rax movss (%rax,%rcx,4), %xmm1 ## xmm1 = mem[0],zero,zero,zero movd %xmm1, %eax xorl $2147483648, %eax ## imm = 0x80000000 movd %eax, %xmm1 mulss %xmm2, %xmm0 addss %xmm1, %xmm0 movslq -4(%rbp), %rcx movq _a@GOTPCREL(%rip), %rax movss %xmm0, (%rax,%rcx,4) ## %bb.3: ## in Loop: Header=BB4_1 Depth=1 movl -4(%rbp), %eax addl $1, %eax movl %eax, -4(%rbp) jmp LBB4_1 LBB4_4: popq %rbp retq .cfi_endproc ## -- End function .globl _vector_divide ## -- Begin function vector_divide .p2align 4, 0x90 _vector_divide: ## @vector_divide .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) LBB5_1: ## =>This Inner Loop Header: Depth=1 cmpl $1024, -4(%rbp) ## imm = 0x400 jge LBB5_4 ## %bb.2: ## in Loop: Header=BB5_1 Depth=1 movslq -4(%rbp), %rcx movq _b@GOTPCREL(%rip), %rax movss (%rax,%rcx,4), %xmm0 ## xmm0 = mem[0],zero,zero,zero movslq -4(%rbp), %rcx movq _c@GOTPCREL(%rip), %rax divss (%rax,%rcx,4), %xmm0 movslq -4(%rbp), %rcx movq _a@GOTPCREL(%rip), %rax movss %xmm0, (%rax,%rcx,4) ## %bb.3: ## in Loop: Header=BB5_1 Depth=1 movl -4(%rbp), %eax addl $1, %eax movl %eax, -4(%rbp) jmp LBB5_1 LBB5_4: popq %rbp retq .cfi_endproc ## -- End function .globl _vector_sqrt ## -- Begin function vector_sqrt .p2align 4, 0x90 _vector_sqrt: ## @vector_sqrt .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) LBB6_1: ## =>This Inner Loop Header: Depth=1 cmpl $1024, -4(%rbp) ## imm = 0x400 jge LBB6_4 ## %bb.2: ## in Loop: Header=BB6_1 Depth=1 movslq -4(%rbp), %rcx movq _b@GOTPCREL(%rip), %rax movss (%rax,%rcx,4), %xmm0 ## xmm0 = mem[0],zero,zero,zero sqrtss %xmm0, %xmm0 movslq -4(%rbp), %rcx movq _a@GOTPCREL(%rip), %rax movss %xmm0, (%rax,%rcx,4) ## %bb.3: ## in Loop: Header=BB6_1 Depth=1 movl -4(%rbp), %eax addl $1, %eax movl %eax, -4(%rbp) jmp LBB6_1 LBB6_4: popq %rbp retq .cfi_endproc ## -- End function .globl _vector_floor ## -- Begin function vector_floor .p2align 4, 0x90 _vector_floor: ## @vector_floor .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) LBB7_1: ## =>This Inner Loop Header: Depth=1 cmpl $1024, -4(%rbp) ## imm = 0x400 jge LBB7_4 ## %bb.2: ## in Loop: Header=BB7_1 Depth=1 movslq -4(%rbp), %rcx movq _b@GOTPCREL(%rip), %rax movss (%rax,%rcx,4), %xmm0 ## xmm0 = mem[0],zero,zero,zero roundss $9, %xmm0, %xmm0 movslq -4(%rbp), %rcx movq _a@GOTPCREL(%rip), %rax movss %xmm0, (%rax,%rcx,4) ## %bb.3: ## in Loop: Header=BB7_1 Depth=1 movl -4(%rbp), %eax addl $1, %eax movl %eax, -4(%rbp) jmp LBB7_1 LBB7_4: popq %rbp retq .cfi_endproc ## -- End function .globl _vector_ceil ## -- Begin function vector_ceil .p2align 4, 0x90 _vector_ceil: ## @vector_ceil .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) LBB8_1: ## =>This Inner Loop Header: Depth=1 cmpl $1024, -4(%rbp) ## imm = 0x400 jge LBB8_4 ## %bb.2: ## in Loop: Header=BB8_1 Depth=1 movslq -4(%rbp), %rcx movq _b@GOTPCREL(%rip), %rax movss (%rax,%rcx,4), %xmm0 ## xmm0 = mem[0],zero,zero,zero roundss $10, %xmm0, %xmm0 movslq -4(%rbp), %rcx movq _a@GOTPCREL(%rip), %rax movss %xmm0, (%rax,%rcx,4) ## %bb.3: ## in Loop: Header=BB8_1 Depth=1 movl -4(%rbp), %eax addl $1, %eax movl %eax, -4(%rbp) jmp LBB8_1 LBB8_4: popq %rbp retq .cfi_endproc ## -- End function .globl _vector_trunc ## -- Begin function vector_trunc .p2align 4, 0x90 _vector_trunc: ## @vector_trunc .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) LBB9_1: ## =>This Inner Loop Header: Depth=1 cmpl $1024, -4(%rbp) ## imm = 0x400 jge LBB9_4 ## %bb.2: ## in Loop: Header=BB9_1 Depth=1 movslq -4(%rbp), %rcx movq _b@GOTPCREL(%rip), %rax movss (%rax,%rcx,4), %xmm0 ## xmm0 = mem[0],zero,zero,zero roundss $11, %xmm0, %xmm0 movslq -4(%rbp), %rcx movq _a@GOTPCREL(%rip), %rax movss %xmm0, (%rax,%rcx,4) ## %bb.3: ## in Loop: Header=BB9_1 Depth=1 movl -4(%rbp), %eax addl $1, %eax movl %eax, -4(%rbp) jmp LBB9_1 LBB9_4: popq %rbp retq .cfi_endproc ## -- End function .globl _vector_nearbyint ## -- Begin function vector_nearbyint .p2align 4, 0x90 _vector_nearbyint: ## @vector_nearbyint .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) LBB10_1: ## =>This Inner Loop Header: Depth=1 cmpl $1024, -4(%rbp) ## imm = 0x400 jge LBB10_4 ## %bb.2: ## in Loop: Header=BB10_1 Depth=1 movslq -4(%rbp), %rcx movq _b@GOTPCREL(%rip), %rax movss (%rax,%rcx,4), %xmm0 ## xmm0 = mem[0],zero,zero,zero roundss $12, %xmm0, %xmm0 movslq -4(%rbp), %rcx movq _a@GOTPCREL(%rip), %rax movss %xmm0, (%rax,%rcx,4) ## %bb.3: ## in Loop: Header=BB10_1 Depth=1 movl -4(%rbp), %eax addl $1, %eax movl %eax, -4(%rbp) jmp LBB10_1 LBB10_4: popq %rbp retq .cfi_endproc ## -- End function .globl _vector_rint ## -- Begin function vector_rint .p2align 4, 0x90 _vector_rint: ## @vector_rint .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) LBB11_1: ## =>This Inner Loop Header: Depth=1 cmpl $1024, -4(%rbp) ## imm = 0x400 jge LBB11_4 ## %bb.2: ## in Loop: Header=BB11_1 Depth=1 movslq -4(%rbp), %rcx movq _b@GOTPCREL(%rip), %rax movss (%rax,%rcx,4), %xmm0 ## xmm0 = mem[0],zero,zero,zero roundss $4, %xmm0, %xmm0 movslq -4(%rbp), %rcx movq _a@GOTPCREL(%rip), %rax movss %xmm0, (%rax,%rcx,4) ## %bb.3: ## in Loop: Header=BB11_1 Depth=1 movl -4(%rbp), %eax addl $1, %eax movl %eax, -4(%rbp) jmp LBB11_1 LBB11_4: popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__literal16,16byte_literals .p2align 4 ## -- Begin function vector_copysign LCPI12_0: .long 0x80000000 ## float -0 .long 0x80000000 ## float -0 .long 0x80000000 ## float -0 .long 0x80000000 ## float -0 LCPI12_1: .long 0x7fffffff ## float NaN .long 0x7fffffff ## float NaN .long 0x7fffffff ## float NaN .long 0x7fffffff ## float NaN .section __TEXT,__text,regular,pure_instructions .globl _vector_copysign .p2align 4, 0x90 _vector_copysign: ## @vector_copysign .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) LBB12_1: ## =>This Inner Loop Header: Depth=1 cmpl $1024, -4(%rbp) ## imm = 0x400 jge LBB12_4 ## %bb.2: ## in Loop: Header=BB12_1 Depth=1 movslq -4(%rbp), %rcx movq _b@GOTPCREL(%rip), %rax movss (%rax,%rcx,4), %xmm0 ## xmm0 = mem[0],zero,zero,zero movslq -4(%rbp), %rcx movq _c@GOTPCREL(%rip), %rax movss (%rax,%rcx,4), %xmm1 ## xmm1 = mem[0],zero,zero,zero movaps LCPI12_0(%rip), %xmm2 ## xmm2 = [-0.0E+0,-0.0E+0,-0.0E+0,-0.0E+0] pand %xmm2, %xmm1 movaps LCPI12_1(%rip), %xmm2 ## xmm2 = [NaN,NaN,NaN,NaN] pand %xmm2, %xmm0 por %xmm1, %xmm0 movslq -4(%rbp), %rcx movq _a@GOTPCREL(%rip), %rax movss %xmm0, (%rax,%rcx,4) ## %bb.3: ## in Loop: Header=BB12_1 Depth=1 movl -4(%rbp), %eax addl $1, %eax movl %eax, -4(%rbp) jmp LBB12_1 LBB12_4: popq %rbp retq .cfi_endproc ## -- End function .comm _b,4096,5 ## @b .comm _c,4096,5 ## @c .comm _a,4096,5 ## @a .comm _d,4096,5 ## @d .comm _e,4096,5 ## @e .subsections_via_symbols
the_stack_data/96709.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/1201312.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, #1234 stur w8, [x29, #-4] mov w8, #5678 stur w8, [x29, #-8] 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 ldur w8, [x29, #-4] ldur w9, [x29, #-8] add 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 w8, [x29, #-4] ; implicit-def: $x11 mov x11, x8 ldur w9, [x29, #-8] ; implicit-def: $x8 mov x8, x9 ldur w9, [x29, #-4] ldur w10, [x29, #-8] add w10, w9, w10 mov x9, sp str x11, [x9] str x8, [x9, #8] ; implicit-def: $x8 mov x8, x10 str x8, [x9, #16] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf mov w0, #0 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Hello, World!\n" l_.str.1: ; @.str.1 .asciz "Hello again, World!\n" l_.str.2: ; @.str.2 .asciz "Sum = %d\n" l_.str.3: ; @.str.3 .asciz "Sum of %d and %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 $1234, -4(%rbp) ## imm = 0x4D2 movl $5678, -8(%rbp) ## imm = 0x162E leaq L_.str(%rip), %rdi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf movl -4(%rbp), %esi addl -8(%rbp), %esi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf movl -4(%rbp), %esi movl -8(%rbp), %edx movl -4(%rbp), %ecx addl -8(%rbp), %ecx leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Hello, World!\n" L_.str.1: ## @.str.1 .asciz "Hello again, World!\n" L_.str.2: ## @.str.2 .asciz "Sum = %d\n" L_.str.3: ## @.str.3 .asciz "Sum of %d and %d = %d\n" .subsections_via_symbols
the_stack_data/162642711.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl __nrrdGzDummySymbol ; -- Begin function _nrrdGzDummySymbol .p2align 2 __nrrdGzDummySymbol: ; @_nrrdGzDummySymbol .cfi_startproc ; %bb.0: mov w0, #42 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl __nrrdGzDummySymbol ## -- Begin function _nrrdGzDummySymbol .p2align 4, 0x90 __nrrdGzDummySymbol: ## @_nrrdGzDummySymbol .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl $42, %eax popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/812402.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #0 stur w8, [x29, #-20] ; 4-byte Folded Spill stur wzr, [x29, #-4] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov x9, sp sub x8, x29, #8 str x8, [x9] sub x8, x29, #12 str x8, [x9, #8] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf ldur w8, [x29, #-12] sturb w8, [x29, #-13] ldur w9, [x29, #-8] ; implicit-def: $x8 mov x8, x9 ldursb w10, [x29, #-13] mov x9, sp str x8, [x9] ; implicit-def: $x8 mov x8, x10 str x8, [x9, #8] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf ldur w0, [x29, #-20] ; 4-byte Folded Reload ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Please input two numbers:" l_.str.1: ; @.str.1 .asciz "%d %d" l_.str.2: ; @.str.2 .asciz "You input %c and %c\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 leaq -12(%rbp), %rdx movb $0, %al callq _scanf movl -12(%rbp), %eax ## kill: def $al killed $al killed $eax movb %al, -13(%rbp) movl -8(%rbp), %esi movsbl -13(%rbp), %edx leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Please input two numbers:" L_.str.1: ## @.str.1 .asciz "%d %d" L_.str.2: ## @.str.2 .asciz "You input %c and %c\n" .subsections_via_symbols
the_stack_data/162642618.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #112 .cfi_def_cfa_offset 112 stp x29, x30, [sp, #96] ; 16-byte Folded Spill add x29, sp, #96 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] stur wzr, [x29, #-32] stur wzr, [x29, #-36] stur wzr, [x29, #-40] stur wzr, [x29, #-44] str wzr, [sp, #48] str wzr, [sp, #44] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov x9, sp sub x8, x29, #28 str x8, [sp, #24] ; 8-byte Folded Spill str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf ldr x0, [sp, #24] ; 8-byte Folded Reload bl _strlen mov x8, x0 str w8, [sp, #40] str wzr, [sp, #36] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #36] ldr w9, [sp, #40] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_11 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldrsw x9, [sp, #36] sub x8, x29, #28 ldrsb w8, [x8, x9] subs w8, w8, #97 ; kill: def $x8 killed $w8 str x8, [sp, #16] ; 8-byte Folded Spill subs x8, x8, #20 cset w8, hi tbnz w8, #0, LBB0_9 ; %bb.3: ; in Loop: Header=BB0_1 Depth=1 ldr x11, [sp, #16] ; 8-byte Folded Reload adrp x10, lJTI0_0@PAGE add x10, x10, lJTI0_0@PAGEOFF Ltmp0: adr x8, Ltmp0 ldrsw x9, [x10, x11, lsl #2] add x8, x8, x9 br x8 LBB0_4: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-36] add w8, w8, #1 stur w8, [x29, #-36] b LBB0_5 LBB0_5: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-40] add w8, w8, #1 stur w8, [x29, #-40] b LBB0_6 LBB0_6: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #36] add w8, w8, #1 str w8, [sp, #36] b LBB0_7 LBB0_7: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #48] add w8, w8, #1 str w8, [sp, #48] b LBB0_8 LBB0_8: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #44] add w8, w8, #1 str w8, [sp, #44] b LBB0_9 LBB0_9: ; in Loop: Header=BB0_1 Depth=1 b LBB0_10 LBB0_10: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #36] add w8, w8, #1 str w8, [sp, #36] b LBB0_1 LBB0_11: ldur w9, [x29, #-36] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf ldur w9, [x29, #-40] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf ldur w9, [x29, #-44] ; 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 w9, [sp, #48] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf ldr w9, [sp, #44] ; 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 ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_13 b LBB0_12 LBB0_12: bl ___stack_chk_fail LBB0_13: mov w0, #0 ldp x29, x30, [sp, #96] ; 16-byte Folded Reload add sp, sp, #112 ret .cfi_endproc .p2align 2 lJTI0_0: .long LBB0_4-Ltmp0 .long LBB0_9-Ltmp0 .long LBB0_9-Ltmp0 .long LBB0_9-Ltmp0 .long LBB0_5-Ltmp0 .long LBB0_9-Ltmp0 .long LBB0_9-Ltmp0 .long LBB0_9-Ltmp0 .long LBB0_6-Ltmp0 .long LBB0_9-Ltmp0 .long LBB0_9-Ltmp0 .long LBB0_9-Ltmp0 .long LBB0_9-Ltmp0 .long LBB0_9-Ltmp0 .long LBB0_7-Ltmp0 .long LBB0_9-Ltmp0 .long LBB0_9-Ltmp0 .long LBB0_9-Ltmp0 .long LBB0_9-Ltmp0 .long LBB0_9-Ltmp0 .long LBB0_8-Ltmp0 ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Type your word: " l_.str.1: ; @.str.1 .asciz "%c" l_.str.2: ; @.str.2 .asciz "[a] = %i\n" l_.str.3: ; @.str.3 .asciz "[e] = %i\n" l_.str.4: ; @.str.4 .asciz "[i] = %i\n" l_.str.5: ; @.str.5 .asciz "[o] = %i\n" l_.str.6: ; @.str.6 .asciz "[u] = %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 $80, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -36(%rbp) movl $0, -40(%rbp) movl $0, -44(%rbp) movl $0, -48(%rbp) movl $0, -52(%rbp) movl $0, -56(%rbp) leaq L_.str(%rip), %rdi movb $0, %al callq _printf leaq -32(%rbp), %rsi leaq L_.str.1(%rip), %rdi movb $0, %al callq _scanf leaq -32(%rbp), %rdi callq _strlen ## kill: def $eax killed $eax killed $rax movl %eax, -60(%rbp) movl $0, -64(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movl -64(%rbp), %eax cmpl -60(%rbp), %eax jge LBB0_10 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movslq -64(%rbp), %rax movsbl -32(%rbp,%rax), %eax addl $-97, %eax movl %eax, %ecx movq %rcx, -72(%rbp) ## 8-byte Spill subl $20, %eax ja LBB0_8 ## %bb.13: ## in Loop: Header=BB0_1 Depth=1 movq -72(%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 movl -40(%rbp), %eax addl $1, %eax movl %eax, -40(%rbp) LBB0_4: ## in Loop: Header=BB0_1 Depth=1 movl -44(%rbp), %eax addl $1, %eax movl %eax, -44(%rbp) LBB0_5: ## in Loop: Header=BB0_1 Depth=1 movl -64(%rbp), %eax addl $1, %eax movl %eax, -64(%rbp) LBB0_6: ## in Loop: Header=BB0_1 Depth=1 movl -52(%rbp), %eax addl $1, %eax movl %eax, -52(%rbp) LBB0_7: ## in Loop: Header=BB0_1 Depth=1 movl -56(%rbp), %eax addl $1, %eax movl %eax, -56(%rbp) LBB0_8: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_9 LBB0_9: ## in Loop: Header=BB0_1 Depth=1 movl -64(%rbp), %eax addl $1, %eax movl %eax, -64(%rbp) jmp LBB0_1 LBB0_10: movl -40(%rbp), %esi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf movl -44(%rbp), %esi leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf movl -48(%rbp), %esi leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf movl -52(%rbp), %esi leaq L_.str.5(%rip), %rdi movb $0, %al callq _printf movl -56(%rbp), %esi leaq L_.str.6(%rip), %rdi movb $0, %al callq _printf movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_12 ## %bb.11: xorl %eax, %eax addq $80, %rsp popq %rbp retq LBB0_12: callq ___stack_chk_fail ud2 .cfi_endproc .p2align 2, 0x90 .data_region jt32 .set L0_0_set_3, LBB0_3-LJTI0_0 .set L0_0_set_8, LBB0_8-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 LJTI0_0: .long L0_0_set_3 .long L0_0_set_8 .long L0_0_set_8 .long L0_0_set_8 .long L0_0_set_4 .long L0_0_set_8 .long L0_0_set_8 .long L0_0_set_8 .long L0_0_set_5 .long L0_0_set_8 .long L0_0_set_8 .long L0_0_set_8 .long L0_0_set_8 .long L0_0_set_8 .long L0_0_set_6 .long L0_0_set_8 .long L0_0_set_8 .long L0_0_set_8 .long L0_0_set_8 .long L0_0_set_8 .long L0_0_set_7 .end_data_region ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Type your word: " L_.str.1: ## @.str.1 .asciz "%c" L_.str.2: ## @.str.2 .asciz "[a] = %i\n" L_.str.3: ## @.str.3 .asciz "[e] = %i\n" L_.str.4: ## @.str.4 .asciz "[i] = %i\n" L_.str.5: ## @.str.5 .asciz "[o] = %i\n" L_.str.6: ## @.str.6 .asciz "[u] = %i\n" .subsections_via_symbols
the_stack_data/50501.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _append_path_segment ; -- Begin function append_path_segment .p2align 2 _append_path_segment: ; @append_path_segment .cfi_startproc ; %bb.0: sub sp, sp, #80 .cfi_def_cfa_offset 80 stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp, #64 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-16] stur x1, [x29, #-24] ldur x8, [x29, #-16] ldr x8, [x8] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: ldur x8, [x29, #-24] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: mov w8, #-1 stur w8, [x29, #-4] b LBB0_18 LBB0_3: ldur x8, [x29, #-16] ldr x0, [x8] bl _strlen str x0, [sp, #32] ldur x0, [x29, #-24] bl _strlen str x0, [sp, #24] ldr x8, [sp, #24] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB0_5 b LBB0_4 LBB0_4: stur wzr, [x29, #-4] b LBB0_18 LBB0_5: ldur x8, [x29, #-16] ldr x0, [x8] ldur x1, [x29, #-24] bl _strstr str x0, [sp, #16] b LBB0_6 LBB0_6: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #16] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB0_13 b LBB0_7 LBB0_7: ; in Loop: Header=BB0_6 Depth=1 ldr x8, [sp, #16] ldur x9, [x29, #-16] ldr x9, [x9] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_9 b LBB0_8 LBB0_8: ; in Loop: Header=BB0_6 Depth=1 ldr x8, [sp, #16] ldursb w8, [x8, #-1] subs w8, w8, #58 cset w8, ne tbnz w8, #0, LBB0_12 b LBB0_9 LBB0_9: ; in Loop: Header=BB0_6 Depth=1 ldr x8, [sp, #16] ldr x9, [sp, #24] ldrsb w8, [x8, x9] subs w8, w8, #58 cset w8, eq tbnz w8, #0, LBB0_11 b LBB0_10 LBB0_10: ; in Loop: Header=BB0_6 Depth=1 ldr x8, [sp, #16] ldr x9, [sp, #24] ldrsb w8, [x8, x9] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_12 b LBB0_11 LBB0_11: stur wzr, [x29, #-4] b LBB0_18 LBB0_12: ; in Loop: Header=BB0_6 Depth=1 ldr x8, [sp, #16] add x0, x8, #1 ldur x1, [x29, #-24] bl _strstr str x0, [sp, #16] b LBB0_6 LBB0_13: ldr x8, [sp, #32] ldr x9, [sp, #24] add x8, x8, x9 add x8, x8, #2 str x8, [sp, #8] ldur x8, [x29, #-16] ldr x0, [x8] ldr x1, [sp, #8] bl _reallocf ldur x8, [x29, #-16] str x0, [x8] ldur x8, [x29, #-16] ldr x8, [x8] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB0_15 b LBB0_14 LBB0_14: mov w8, #-1 stur w8, [x29, #-4] b LBB0_18 LBB0_15: ldr x8, [sp, #32] subs x8, x8, #0 cset w8, ls tbnz w8, #0, LBB0_17 b LBB0_16 LBB0_16: ldur x8, [x29, #-16] ldr x0, [x8] ldr x2, [sp, #8] adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF mov x3, #-1 bl ___strlcat_chk b LBB0_17 LBB0_17: ldur x8, [x29, #-16] ldr x0, [x8] ldur x1, [x29, #-24] ldr x2, [sp, #8] mov x3, #-1 bl ___strlcat_chk stur wzr, [x29, #-4] b LBB0_18 LBB0_18: ldur w0, [x29, #-4] ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .globl _read_segment ; -- Begin function read_segment .p2align 2 _read_segment: ; @read_segment .cfi_startproc ; %bb.0: sub sp, sp, #96 .cfi_def_cfa_offset 96 stp x29, x30, [sp, #80] ; 16-byte Folded Spill add x29, sp, #80 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-16] stur x1, [x29, #-24] stur wzr, [x29, #-28] str xzr, [sp, #40] b LBB1_1 LBB1_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #40] ldur x9, [x29, #-24] subs x8, x8, x9 cset w8, hs tbnz w8, #0, LBB1_8 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 ldur x8, [x29, #-16] ldr x9, [sp, #40] add x8, x8, x9 ldrb w8, [x8] strb w8, [sp, #31] ldrsb w8, [sp, #31] subs w8, w8, #34 cset w8, eq tbnz w8, #0, LBB1_5 b LBB1_3 LBB1_3: ; in Loop: Header=BB1_1 Depth=1 ldrsb w8, [sp, #31] subs w8, w8, #39 cset w8, eq tbnz w8, #0, LBB1_5 b LBB1_4 LBB1_4: ; in Loop: Header=BB1_1 Depth=1 ldrsb w8, [sp, #31] subs w8, w8, #36 cset w8, ne tbnz w8, #0, LBB1_6 b LBB1_5 LBB1_5: ; in Loop: Header=BB1_1 Depth=1 ldur w8, [x29, #-28] add w8, w8, #1 stur w8, [x29, #-28] b LBB1_6 LBB1_6: ; in Loop: Header=BB1_1 Depth=1 b LBB1_7 LBB1_7: ; in Loop: Header=BB1_1 Depth=1 ldr x8, [sp, #40] add x8, x8, #1 str x8, [sp, #40] b LBB1_1 LBB1_8: ldur x8, [x29, #-24] ldursw x9, [x29, #-28] add x8, x8, x9 mov x0, #1 add x8, x8, #1 str x8, [sp, #16] ldr x1, [sp, #16] bl _calloc str x0, [sp, #8] ldr x8, [sp, #8] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB1_10 b LBB1_9 LBB1_9: ; kill: def $x8 killed $xzr stur xzr, [x29, #-8] b LBB1_23 LBB1_10: str xzr, [sp, #40] str xzr, [sp, #32] b LBB1_11 LBB1_11: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #40] ldur x9, [x29, #-24] subs x8, x8, x9 cset w8, hs tbnz w8, #0, LBB1_22 b LBB1_12 LBB1_12: ; in Loop: Header=BB1_11 Depth=1 ldur x8, [x29, #-16] ldr x9, [sp, #40] add x8, x8, x9 ldrb w8, [x8] strb w8, [sp, #7] ldrsb w8, [sp, #7] subs w8, w8, #34 cset w8, eq tbnz w8, #0, LBB1_15 b LBB1_13 LBB1_13: ; in Loop: Header=BB1_11 Depth=1 ldrsb w8, [sp, #7] subs w8, w8, #39 cset w8, eq tbnz w8, #0, LBB1_15 b LBB1_14 LBB1_14: ; in Loop: Header=BB1_11 Depth=1 ldrsb w8, [sp, #7] subs w8, w8, #36 cset w8, ne tbnz w8, #0, LBB1_16 b LBB1_15 LBB1_15: ; in Loop: Header=BB1_11 Depth=1 ldr x8, [sp, #8] ldr x9, [sp, #32] add x10, x9, #1 str x10, [sp, #32] add x9, x8, x9 mov w8, #92 strb w8, [x9] ldrb w8, [sp, #7] ldr x9, [sp, #8] ldr x10, [sp, #32] add x9, x9, x10 strb w8, [x9] b LBB1_20 LBB1_16: ; in Loop: Header=BB1_11 Depth=1 ldrsb w8, [sp, #7] subs w8, w8, #10 cset w8, ne tbnz w8, #0, LBB1_18 b LBB1_17 LBB1_17: ldr x8, [sp, #8] ldr x9, [sp, #32] add x8, x8, x9 strb wzr, [x8] b LBB1_22 LBB1_18: ; in Loop: Header=BB1_11 Depth=1 ldur x8, [x29, #-16] ldr x9, [sp, #40] add x8, x8, x9 ldrb w8, [x8] ldr x9, [sp, #8] ldr x10, [sp, #32] add x9, x9, x10 strb w8, [x9] b LBB1_19 LBB1_19: ; in Loop: Header=BB1_11 Depth=1 b LBB1_20 LBB1_20: ; in Loop: Header=BB1_11 Depth=1 b LBB1_21 LBB1_21: ; in Loop: Header=BB1_11 Depth=1 ldr x8, [sp, #40] add x8, x8, #1 str x8, [sp, #40] ldr x8, [sp, #32] add x8, x8, #1 str x8, [sp, #32] b LBB1_11 LBB1_22: ldr x8, [sp, #8] stur x8, [x29, #-8] b LBB1_23 LBB1_23: ldur x0, [x29, #-8] ldp x29, x30, [sp, #80] ; 16-byte Folded Reload add sp, sp, #96 ret .cfi_endproc ; -- End function .globl _construct_path ; -- Begin function construct_path .p2align 2 _construct_path: ; @construct_path .cfi_startproc ; %bb.0: sub sp, sp, #160 .cfi_def_cfa_offset 160 stp x29, x30, [sp, #144] ; 16-byte Folded Spill add x29, sp, #144 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] stur x0, [x29, #-48] stur x1, [x29, #-56] stur x2, [x29, #-64] mov x1, #1 mov x0, x1 bl _calloc str x0, [sp, #56] ldur x8, [x29, #-56] sub x0, x29, #32 stur x8, [x29, #-32] ldur x8, [x29, #-64] stur x8, [x29, #-24] mov x2, #0 stur xzr, [x29, #-16] mov w1, #80 bl _fts_open str x0, [sp, #72] ldr x8, [sp, #72] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB2_2 b LBB2_1 LBB2_1: ldur x0, [x29, #-64] bl _perror ; kill: def $x8 killed $xzr stur xzr, [x29, #-40] b LBB2_26 LBB2_2: b LBB2_3 LBB2_3: ; =>This Loop Header: Depth=1 ; Child Loop BB2_11 Depth 2 ldr x0, [sp, #72] bl _fts_read mov x8, x0 str x8, [sp, #64] subs x8, x0, #0 cset w8, eq tbnz w8, #0, LBB2_15 b LBB2_4 LBB2_4: ; in Loop: Header=BB2_3 Depth=1 ldr x8, [sp, #64] ldrh w8, [x8, #88] subs w8, w8, #8 cset w8, eq tbnz w8, #0, LBB2_8 b LBB2_5 LBB2_5: ; in Loop: Header=BB2_3 Depth=1 ldr x8, [sp, #64] ldrsh w8, [x8, #86] subs w8, w8, #1 cset w8, lt tbnz w8, #0, LBB2_7 b LBB2_6 LBB2_6: ; in Loop: Header=BB2_3 Depth=1 ldr x0, [sp, #72] ldr x1, [sp, #64] mov w2, #4 bl _fts_set b LBB2_7 LBB2_7: ; in Loop: Header=BB2_3 Depth=1 b LBB2_3 LBB2_8: ; in Loop: Header=BB2_3 Depth=1 ldr x8, [sp, #64] ldr x0, [x8, #40] adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF bl _fopen str x0, [sp, #48] ldr x8, [sp, #48] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB2_10 b LBB2_9 LBB2_9: ; in Loop: Header=BB2_3 Depth=1 ldr x8, [sp, #64] ldr x0, [x8, #40] bl _perror b LBB2_3 LBB2_10: ; in Loop: Header=BB2_3 Depth=1 b LBB2_11 LBB2_11: ; Parent Loop BB2_3 Depth=1 ; => This Inner Loop Header: Depth=2 ldr x0, [sp, #48] add x1, sp, #40 bl _fgetln str x0, [sp, #32] ldr x8, [sp, #32] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB2_13 b LBB2_12 LBB2_12: ; in Loop: Header=BB2_3 Depth=1 b LBB2_14 LBB2_13: ; in Loop: Header=BB2_11 Depth=2 ldr x0, [sp, #32] ldr x1, [sp, #40] bl _read_segment str x0, [sp, #24] ldr x1, [sp, #24] add x0, sp, #56 bl _append_path_segment b LBB2_11 LBB2_14: ; in Loop: Header=BB2_3 Depth=1 ldr x0, [sp, #48] bl _fclose b LBB2_3 LBB2_15: ldr x0, [sp, #72] bl _fts_close ldur x0, [x29, #-48] bl _getenv str x0, [sp, #16] ldr x8, [sp, #16] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB2_17 b LBB2_16 LBB2_16: ldr x0, [sp, #16] bl _strdup str x0, [sp, #16] b LBB2_17 LBB2_17: b LBB2_18 LBB2_18: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #16] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB2_25 b LBB2_19 LBB2_19: ; in Loop: Header=BB2_18 Depth=1 ldr x0, [sp, #16] mov w1, #58 bl _strchr str x0, [sp, #8] ldr x8, [sp, #8] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB2_21 b LBB2_20 LBB2_20: ; in Loop: Header=BB2_18 Depth=1 ldr x8, [sp, #8] strb wzr, [x8] b LBB2_21 LBB2_21: ; in Loop: Header=BB2_18 Depth=1 ldr x1, [sp, #16] add x0, sp, #56 bl _append_path_segment ldr x8, [sp, #8] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB2_23 b LBB2_22 LBB2_22: ; in Loop: Header=BB2_18 Depth=1 ldr x8, [sp, #8] add x8, x8, #1 str x8, [sp, #16] b LBB2_24 LBB2_23: ; in Loop: Header=BB2_18 Depth=1 ; kill: def $x8 killed $xzr str xzr, [sp, #16] b LBB2_24 LBB2_24: ; in Loop: Header=BB2_18 Depth=1 b LBB2_18 LBB2_25: ldr x8, [sp, #56] stur x8, [x29, #-40] b LBB2_26 LBB2_26: ldur x8, [x29, #-40] str x8, [sp] ; 8-byte Folded Spill ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB2_28 b LBB2_27 LBB2_27: bl ___stack_chk_fail LBB2_28: ldr x0, [sp] ; 8-byte Folded Reload ldp x29, x30, [sp, #144] ; 16-byte Folded Reload add sp, sp, #160 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #96 .cfi_def_cfa_offset 96 stp x29, x30, [sp, #80] ; 16-byte Folded Spill add x29, sp, #80 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] stur w0, [x29, #-8] stur x1, [x29, #-16] mov w8, #1 stur w8, [x29, #-20] ldur w8, [x29, #-8] subs w8, w8, #2 cset w8, le tbnz w8, #0, LBB3_2 b LBB3_1 LBB3_1: bl _usage b LBB3_2 LBB3_2: adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _getenv stur x0, [x29, #-32] ldur x8, [x29, #-32] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB3_6 b LBB3_3 LBB3_3: ldur x0, [x29, #-32] adrp x1, l_.str.3@PAGE add x1, x1, l_.str.3@PAGEOFF bl _strstr str x0, [sp, #40] ldr x8, [sp, #40] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB3_5 b LBB3_4 LBB3_4: stur wzr, [x29, #-20] b LBB3_5 LBB3_5: b LBB3_6 LBB3_6: ldur w8, [x29, #-8] subs w8, w8, #2 cset w8, ne tbnz w8, #0, LBB3_9 b LBB3_7 LBB3_7: ldur x8, [x29, #-16] ldr x0, [x8, #8] adrp x1, l_.str.4@PAGE add x1, x1, l_.str.4@PAGEOFF bl _strcmp subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB3_9 b LBB3_8 LBB3_8: stur wzr, [x29, #-20] b LBB3_9 LBB3_9: ldur w8, [x29, #-8] subs w8, w8, #2 cset w8, ne tbnz w8, #0, LBB3_12 b LBB3_10 LBB3_10: ldur x8, [x29, #-16] ldr x0, [x8, #8] adrp x1, l_.str.5@PAGE add x1, x1, l_.str.5@PAGEOFF bl _strcmp subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB3_12 b LBB3_11 LBB3_11: mov w8, #1 stur w8, [x29, #-20] b LBB3_12 LBB3_12: adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF adrp x1, l_.str.7@PAGE add x1, x1, l_.str.7@PAGEOFF adrp x2, l_.str.8@PAGE add x2, x2, l_.str.8@PAGEOFF bl _construct_path str x0, [sp, #32] ; kill: def $x8 killed $xzr str xzr, [sp, #24] adrp x0, l_.str.9@PAGE add x0, x0, l_.str.9@PAGEOFF bl _getenv subs x8, x0, #0 cset w8, ne and w8, w8, #0x1 str w8, [sp, #20] ldr w8, [sp, #20] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB3_14 b LBB3_13 LBB3_13: adrp x0, l_.str.9@PAGE add x0, x0, l_.str.9@PAGEOFF adrp x1, l_.str.10@PAGE add x1, x1, l_.str.10@PAGEOFF adrp x2, l_.str.11@PAGE add x2, x2, l_.str.11@PAGEOFF bl _construct_path str x0, [sp, #24] b LBB3_14 LBB3_14: ldur w8, [x29, #-20] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB3_18 b LBB3_15 LBB3_15: ldr x8, [sp, #32] mov x9, sp str x8, [x9] adrp x0, l_.str.12@PAGE add x0, x0, l_.str.12@PAGEOFF bl _printf ldr w8, [sp, #20] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB3_17 b LBB3_16 LBB3_16: ldr x8, [sp, #24] mov x9, sp str x8, [x9] adrp x0, l_.str.13@PAGE add x0, x0, l_.str.13@PAGEOFF bl _printf b LBB3_17 LBB3_17: b LBB3_21 LBB3_18: ldr x8, [sp, #32] mov x9, sp str x8, [x9] adrp x0, l_.str.14@PAGE add x0, x0, l_.str.14@PAGEOFF bl _printf ldr w8, [sp, #20] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB3_20 b LBB3_19 LBB3_19: ldr x8, [sp, #24] mov x9, sp str x8, [x9] adrp x0, l_.str.15@PAGE add x0, x0, l_.str.15@PAGEOFF bl _printf b LBB3_20 LBB3_20: b LBB3_21 LBB3_21: mov w0, #0 ldp x29, x30, [sp, #80] ; 16-byte Folded Reload add sp, sp, #96 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function usage _usage: ; @usage .cfi_startproc ; %bb.0: 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.16@PAGE add x1, x1, l_.str.16@PAGEOFF bl _fprintf mov w0, #1 bl _exit .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz ":" l_.str.1: ; @.str.1 .asciz "r" l_.str.2: ; @.str.2 .asciz "SHELL" l_.str.3: ; @.str.3 .asciz "csh" l_.str.4: ; @.str.4 .asciz "-c" l_.str.5: ; @.str.5 .asciz "-s" l_.str.6: ; @.str.6 .asciz "PATH" l_.str.7: ; @.str.7 .asciz "/etc/paths" l_.str.8: ; @.str.8 .asciz "/etc/paths.d" l_.str.9: ; @.str.9 .asciz "MANPATH" l_.str.10: ; @.str.10 .asciz "/etc/manpaths" l_.str.11: ; @.str.11 .asciz "/etc/manpaths.d" l_.str.12: ; @.str.12 .asciz "setenv PATH \"%s\";\n" l_.str.13: ; @.str.13 .asciz "setenv MANPATH \"%s\";\n" l_.str.14: ; @.str.14 .asciz "PATH=\"%s\"; export PATH;\n" l_.str.15: ; @.str.15 .asciz "MANPATH=\"%s\"; export MANPATH;\n" l_.str.16: ; @.str.16 .asciz "usage: path_helper [-c | -s]" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _append_path_segment ## -- Begin function append_path_segment .p2align 4, 0x90 _append_path_segment: ## @append_path_segment .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $64, %rsp movq %rdi, -16(%rbp) movq %rsi, -24(%rbp) movq -16(%rbp), %rax cmpq $0, (%rax) je LBB0_2 ## %bb.1: cmpq $0, -24(%rbp) jne LBB0_3 LBB0_2: movl $-1, -4(%rbp) jmp LBB0_18 LBB0_3: movq -16(%rbp), %rax movq (%rax), %rdi callq _strlen movq %rax, -32(%rbp) movq -24(%rbp), %rdi callq _strlen movq %rax, -40(%rbp) cmpq $0, -40(%rbp) jne LBB0_5 ## %bb.4: movl $0, -4(%rbp) jmp LBB0_18 LBB0_5: movq -16(%rbp), %rax movq (%rax), %rdi movq -24(%rbp), %rsi callq _strstr movq %rax, -48(%rbp) LBB0_6: ## =>This Inner Loop Header: Depth=1 cmpq $0, -48(%rbp) je LBB0_13 ## %bb.7: ## in Loop: Header=BB0_6 Depth=1 movq -48(%rbp), %rax movq -16(%rbp), %rcx cmpq (%rcx), %rax je LBB0_9 ## %bb.8: ## in Loop: Header=BB0_6 Depth=1 movq -48(%rbp), %rax movsbl -1(%rax), %eax cmpl $58, %eax jne LBB0_12 LBB0_9: ## in Loop: Header=BB0_6 Depth=1 movq -48(%rbp), %rax movq -40(%rbp), %rcx movsbl (%rax,%rcx), %eax cmpl $58, %eax je LBB0_11 ## %bb.10: ## in Loop: Header=BB0_6 Depth=1 movq -48(%rbp), %rax movq -40(%rbp), %rcx movsbl (%rax,%rcx), %eax cmpl $0, %eax jne LBB0_12 LBB0_11: movl $0, -4(%rbp) jmp LBB0_18 LBB0_12: ## in Loop: Header=BB0_6 Depth=1 movq -48(%rbp), %rdi addq $1, %rdi movq -24(%rbp), %rsi callq _strstr movq %rax, -48(%rbp) jmp LBB0_6 LBB0_13: movq -32(%rbp), %rax addq -40(%rbp), %rax addq $2, %rax movq %rax, -56(%rbp) movq -16(%rbp), %rax movq (%rax), %rdi movq -56(%rbp), %rsi callq _reallocf movq %rax, %rcx movq -16(%rbp), %rax movq %rcx, (%rax) movq -16(%rbp), %rax cmpq $0, (%rax) jne LBB0_15 ## %bb.14: movl $-1, -4(%rbp) jmp LBB0_18 LBB0_15: cmpq $0, -32(%rbp) jbe LBB0_17 ## %bb.16: movq -16(%rbp), %rax movq (%rax), %rdi movq -56(%rbp), %rdx leaq L_.str(%rip), %rsi movq $-1, %rcx callq ___strlcat_chk LBB0_17: movq -16(%rbp), %rax movq (%rax), %rdi movq -24(%rbp), %rsi movq -56(%rbp), %rdx movq $-1, %rcx callq ___strlcat_chk movl $0, -4(%rbp) LBB0_18: movl -4(%rbp), %eax addq $64, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _read_segment ## -- Begin function read_segment .p2align 4, 0x90 _read_segment: ## @read_segment .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $80, %rsp movq %rdi, -16(%rbp) movq %rsi, -24(%rbp) movl $0, -28(%rbp) movq $0, -40(%rbp) LBB1_1: ## =>This Inner Loop Header: Depth=1 movq -40(%rbp), %rax cmpq -24(%rbp), %rax jae LBB1_8 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 movq -16(%rbp), %rax movq -40(%rbp), %rcx movb (%rax,%rcx), %al movb %al, -49(%rbp) movsbl -49(%rbp), %eax cmpl $34, %eax je LBB1_5 ## %bb.3: ## in Loop: Header=BB1_1 Depth=1 movsbl -49(%rbp), %eax cmpl $39, %eax je LBB1_5 ## %bb.4: ## in Loop: Header=BB1_1 Depth=1 movsbl -49(%rbp), %eax cmpl $36, %eax jne LBB1_6 LBB1_5: ## in Loop: Header=BB1_1 Depth=1 movl -28(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) LBB1_6: ## in Loop: Header=BB1_1 Depth=1 jmp LBB1_7 LBB1_7: ## in Loop: Header=BB1_1 Depth=1 movq -40(%rbp), %rax addq $1, %rax movq %rax, -40(%rbp) jmp LBB1_1 LBB1_8: movq -24(%rbp), %rax movslq -28(%rbp), %rcx addq %rcx, %rax addq $1, %rax movq %rax, -64(%rbp) movq -64(%rbp), %rsi movl $1, %edi callq _calloc movq %rax, -72(%rbp) cmpq $0, -72(%rbp) jne LBB1_10 ## %bb.9: movq $0, -8(%rbp) jmp LBB1_23 LBB1_10: movq $0, -40(%rbp) movq $0, -48(%rbp) LBB1_11: ## =>This Inner Loop Header: Depth=1 movq -40(%rbp), %rax cmpq -24(%rbp), %rax jae LBB1_22 ## %bb.12: ## in Loop: Header=BB1_11 Depth=1 movq -16(%rbp), %rax movq -40(%rbp), %rcx movb (%rax,%rcx), %al movb %al, -73(%rbp) movsbl -73(%rbp), %eax cmpl $34, %eax je LBB1_15 ## %bb.13: ## in Loop: Header=BB1_11 Depth=1 movsbl -73(%rbp), %eax cmpl $39, %eax je LBB1_15 ## %bb.14: ## in Loop: Header=BB1_11 Depth=1 movsbl -73(%rbp), %eax cmpl $36, %eax jne LBB1_16 LBB1_15: ## in Loop: Header=BB1_11 Depth=1 movq -72(%rbp), %rax movq -48(%rbp), %rcx movq %rcx, %rdx addq $1, %rdx movq %rdx, -48(%rbp) movb $92, (%rax,%rcx) movb -73(%rbp), %dl movq -72(%rbp), %rax movq -48(%rbp), %rcx movb %dl, (%rax,%rcx) jmp LBB1_20 LBB1_16: ## in Loop: Header=BB1_11 Depth=1 movsbl -73(%rbp), %eax cmpl $10, %eax jne LBB1_18 ## %bb.17: movq -72(%rbp), %rax movq -48(%rbp), %rcx movb $0, (%rax,%rcx) jmp LBB1_22 LBB1_18: ## in Loop: Header=BB1_11 Depth=1 movq -16(%rbp), %rax movq -40(%rbp), %rcx movb (%rax,%rcx), %dl movq -72(%rbp), %rax movq -48(%rbp), %rcx movb %dl, (%rax,%rcx) ## %bb.19: ## in Loop: Header=BB1_11 Depth=1 jmp LBB1_20 LBB1_20: ## in Loop: Header=BB1_11 Depth=1 jmp LBB1_21 LBB1_21: ## in Loop: Header=BB1_11 Depth=1 movq -40(%rbp), %rax addq $1, %rax movq %rax, -40(%rbp) movq -48(%rbp), %rax addq $1, %rax movq %rax, -48(%rbp) jmp LBB1_11 LBB1_22: movq -72(%rbp), %rax movq %rax, -8(%rbp) LBB1_23: movq -8(%rbp), %rax addq $80, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _construct_path ## -- Begin function construct_path .p2align 4, 0x90 _construct_path: ## @construct_path .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $144, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movq %rdi, -48(%rbp) movq %rsi, -56(%rbp) movq %rdx, -64(%rbp) movl $1, %esi movq %rsi, %rdi callq _calloc movq %rax, -88(%rbp) movq -56(%rbp), %rax movq %rax, -32(%rbp) movq -64(%rbp), %rax movq %rax, -24(%rbp) movq $0, -16(%rbp) leaq -32(%rbp), %rdi movl $80, %esi xorl %eax, %eax movl %eax, %edx callq _fts_open$INODE64 movq %rax, -72(%rbp) cmpq $0, -72(%rbp) jne LBB2_2 ## %bb.1: movq -64(%rbp), %rdi callq _perror movq $0, -40(%rbp) jmp LBB2_26 LBB2_2: jmp LBB2_3 LBB2_3: ## =>This Loop Header: Depth=1 ## Child Loop BB2_11 Depth 2 movq -72(%rbp), %rdi callq _fts_read$INODE64 movq %rax, -80(%rbp) cmpq $0, %rax je LBB2_15 ## %bb.4: ## in Loop: Header=BB2_3 Depth=1 movq -80(%rbp), %rax movzwl 88(%rax), %eax cmpl $8, %eax je LBB2_8 ## %bb.5: ## in Loop: Header=BB2_3 Depth=1 movq -80(%rbp), %rax movswl 86(%rax), %eax cmpl $1, %eax jl LBB2_7 ## %bb.6: ## in Loop: Header=BB2_3 Depth=1 movq -72(%rbp), %rdi movq -80(%rbp), %rsi movl $4, %edx callq _fts_set$INODE64 LBB2_7: ## in Loop: Header=BB2_3 Depth=1 jmp LBB2_3 LBB2_8: ## in Loop: Header=BB2_3 Depth=1 movq -80(%rbp), %rax movq 40(%rax), %rdi leaq L_.str.1(%rip), %rsi callq _fopen movq %rax, -96(%rbp) cmpq $0, -96(%rbp) jne LBB2_10 ## %bb.9: ## in Loop: Header=BB2_3 Depth=1 movq -80(%rbp), %rax movq 40(%rax), %rdi callq _perror jmp LBB2_3 LBB2_10: ## in Loop: Header=BB2_3 Depth=1 jmp LBB2_11 LBB2_11: ## Parent Loop BB2_3 Depth=1 ## => This Inner Loop Header: Depth=2 movq -96(%rbp), %rdi leaq -104(%rbp), %rsi callq _fgetln movq %rax, -112(%rbp) cmpq $0, -112(%rbp) jne LBB2_13 ## %bb.12: ## in Loop: Header=BB2_3 Depth=1 jmp LBB2_14 LBB2_13: ## in Loop: Header=BB2_11 Depth=2 movq -112(%rbp), %rdi movq -104(%rbp), %rsi callq _read_segment movq %rax, -120(%rbp) movq -120(%rbp), %rsi leaq -88(%rbp), %rdi callq _append_path_segment jmp LBB2_11 LBB2_14: ## in Loop: Header=BB2_3 Depth=1 movq -96(%rbp), %rdi callq _fclose jmp LBB2_3 LBB2_15: movq -72(%rbp), %rdi callq _fts_close$INODE64 movq -48(%rbp), %rdi callq _getenv movq %rax, -128(%rbp) cmpq $0, -128(%rbp) je LBB2_17 ## %bb.16: movq -128(%rbp), %rdi callq _strdup movq %rax, -128(%rbp) LBB2_17: jmp LBB2_18 LBB2_18: ## =>This Inner Loop Header: Depth=1 cmpq $0, -128(%rbp) je LBB2_25 ## %bb.19: ## in Loop: Header=BB2_18 Depth=1 movq -128(%rbp), %rdi movl $58, %esi callq _strchr movq %rax, -136(%rbp) cmpq $0, -136(%rbp) je LBB2_21 ## %bb.20: ## in Loop: Header=BB2_18 Depth=1 movq -136(%rbp), %rax movb $0, (%rax) LBB2_21: ## in Loop: Header=BB2_18 Depth=1 movq -128(%rbp), %rsi leaq -88(%rbp), %rdi callq _append_path_segment cmpq $0, -136(%rbp) je LBB2_23 ## %bb.22: ## in Loop: Header=BB2_18 Depth=1 movq -136(%rbp), %rax addq $1, %rax movq %rax, -128(%rbp) jmp LBB2_24 LBB2_23: ## in Loop: Header=BB2_18 Depth=1 movq $0, -128(%rbp) LBB2_24: ## in Loop: Header=BB2_18 Depth=1 jmp LBB2_18 LBB2_25: movq -88(%rbp), %rax movq %rax, -40(%rbp) LBB2_26: movq -40(%rbp), %rax movq %rax, -144(%rbp) ## 8-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB2_28 ## %bb.27: movq -144(%rbp), %rax ## 8-byte Reload addq $144, %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 subq $64, %rsp movl $0, -4(%rbp) movl %edi, -8(%rbp) movq %rsi, -16(%rbp) movl $1, -20(%rbp) cmpl $2, -8(%rbp) jle LBB3_2 ## %bb.1: callq _usage LBB3_2: leaq L_.str.2(%rip), %rdi callq _getenv movq %rax, -32(%rbp) cmpq $0, -32(%rbp) je LBB3_6 ## %bb.3: movq -32(%rbp), %rdi leaq L_.str.3(%rip), %rsi callq _strstr movq %rax, -40(%rbp) cmpq $0, -40(%rbp) je LBB3_5 ## %bb.4: movl $0, -20(%rbp) LBB3_5: jmp LBB3_6 LBB3_6: cmpl $2, -8(%rbp) jne LBB3_9 ## %bb.7: movq -16(%rbp), %rax movq 8(%rax), %rdi leaq L_.str.4(%rip), %rsi callq _strcmp cmpl $0, %eax jne LBB3_9 ## %bb.8: movl $0, -20(%rbp) LBB3_9: cmpl $2, -8(%rbp) jne LBB3_12 ## %bb.10: movq -16(%rbp), %rax movq 8(%rax), %rdi leaq L_.str.5(%rip), %rsi callq _strcmp cmpl $0, %eax jne LBB3_12 ## %bb.11: movl $1, -20(%rbp) LBB3_12: leaq L_.str.6(%rip), %rdi leaq L_.str.7(%rip), %rsi leaq L_.str.8(%rip), %rdx callq _construct_path movq %rax, -48(%rbp) movq $0, -56(%rbp) leaq L_.str.9(%rip), %rdi callq _getenv cmpq $0, %rax setne %al andb $1, %al movzbl %al, %eax movl %eax, -60(%rbp) cmpl $0, -60(%rbp) je LBB3_14 ## %bb.13: leaq L_.str.9(%rip), %rdi leaq L_.str.10(%rip), %rsi leaq L_.str.11(%rip), %rdx callq _construct_path movq %rax, -56(%rbp) LBB3_14: cmpl $0, -20(%rbp) jne LBB3_18 ## %bb.15: movq -48(%rbp), %rsi leaq L_.str.12(%rip), %rdi movb $0, %al callq _printf cmpl $0, -60(%rbp) je LBB3_17 ## %bb.16: movq -56(%rbp), %rsi leaq L_.str.13(%rip), %rdi movb $0, %al callq _printf LBB3_17: jmp LBB3_21 LBB3_18: movq -48(%rbp), %rsi leaq L_.str.14(%rip), %rdi movb $0, %al callq _printf cmpl $0, -60(%rbp) je LBB3_20 ## %bb.19: movq -56(%rbp), %rsi leaq L_.str.15(%rip), %rdi movb $0, %al callq _printf LBB3_20: jmp LBB3_21 LBB3_21: xorl %eax, %eax addq $64, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function usage _usage: ## @usage .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.16(%rip), %rsi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _fprintf movl $1, %edi callq _exit .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz ":" L_.str.1: ## @.str.1 .asciz "r" L_.str.2: ## @.str.2 .asciz "SHELL" L_.str.3: ## @.str.3 .asciz "csh" L_.str.4: ## @.str.4 .asciz "-c" L_.str.5: ## @.str.5 .asciz "-s" L_.str.6: ## @.str.6 .asciz "PATH" L_.str.7: ## @.str.7 .asciz "/etc/paths" L_.str.8: ## @.str.8 .asciz "/etc/paths.d" L_.str.9: ## @.str.9 .asciz "MANPATH" L_.str.10: ## @.str.10 .asciz "/etc/manpaths" L_.str.11: ## @.str.11 .asciz "/etc/manpaths.d" L_.str.12: ## @.str.12 .asciz "setenv PATH \"%s\";\n" L_.str.13: ## @.str.13 .asciz "setenv MANPATH \"%s\";\n" L_.str.14: ## @.str.14 .asciz "PATH=\"%s\"; export PATH;\n" L_.str.15: ## @.str.15 .asciz "MANPATH=\"%s\"; export MANPATH;\n" L_.str.16: ## @.str.16 .asciz "usage: path_helper [-c | -s]" .subsections_via_symbols
the_stack_data/773819.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, #16] mov w0, #-125 add x1, sp, #20 str x1, [sp, #8] ; 8-byte Folded Spill mov w2, #8 bl _itoa ldr x8, [sp, #8] ; 8-byte Folded Reload mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: bl ___stack_chk_fail LBB0_2: mov w0, #0 ldp x29, x30, [sp, #128] ; 16-byte Folded Reload add sp, sp, #144 ret .cfi_endproc ; -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ; -- Begin function itoa lCPI1_0: .quad 0x4040000000000000 ; double 32 .section __TEXT,__text,regular,pure_instructions .globl _itoa .p2align 2 _itoa: ; @itoa .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur w0, [x29, #-4] str x1, [sp, #16] str w2, [sp, #12] str wzr, [sp, #8] ldur w8, [x29, #-4] str w8, [sp, #4] subs w8, w8, #0 cset w8, ge tbnz w8, #0, LBB1_5 b LBB1_1 LBB1_1: ldur w8, [x29, #-4] str w8, [sp] ; 4-byte Folded Spill fmov d0, #2.00000000 adrp x8, lCPI1_0@PAGE ldr d1, [x8, lCPI1_0@PAGEOFF] bl _pow ldr w8, [sp] ; 4-byte Folded Reload fneg d0, d0 fcvtzs w9, d0 subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB1_3 b LBB1_2 LBB1_2: ldur w8, [x29, #-4] add w9, w8, #1 mov w8, #0 subs w8, w8, w9 stur w8, [x29, #-4] ldur w8, [x29, #-4] mov w9, #10 sdiv w10, w8, w9 mul w10, w10, w9 subs w8, w8, w10 add w8, w8, #1 add w8, w8, #48 ldr x10, [sp, #16] ldrsw x11, [sp, #8] mov x12, x11 add w12, w12, #1 str w12, [sp, #8] strb w8, [x10, x11] ldur w8, [x29, #-4] sdiv w8, w8, w9 stur w8, [x29, #-4] b LBB1_4 LBB1_3: ldur w9, [x29, #-4] mov w8, #0 subs w8, w8, w9 stur w8, [x29, #-4] b LBB1_4 LBB1_4: b LBB1_5 LBB1_5: b LBB1_6 LBB1_6: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-4] mov w10, #10 sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 add w8, w8, #48 ldr x9, [sp, #16] ldrsw x10, [sp, #8] mov x11, x10 add w11, w11, #1 str w11, [sp, #8] strb w8, [x9, x10] b LBB1_7 LBB1_7: ; in Loop: Header=BB1_6 Depth=1 ldur w8, [x29, #-4] mov w9, #10 sdiv w8, w8, w9 stur w8, [x29, #-4] subs w8, w8, #0 cset w8, gt tbnz w8, #0, LBB1_6 b LBB1_8 LBB1_8: ldr w8, [sp, #4] subs w8, w8, #0 cset w8, ge tbnz w8, #0, LBB1_10 b LBB1_9 LBB1_9: ldr x8, [sp, #16] ldrsw x9, [sp, #8] mov x10, x9 add w10, w10, #1 str w10, [sp, #8] add x9, x8, x9 mov w8, #45 strb w8, [x9] b LBB1_10 LBB1_10: b LBB1_11 LBB1_11: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #8] ldr w9, [sp, #12] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_13 b LBB1_12 LBB1_12: ; in Loop: Header=BB1_11 Depth=1 ldr x8, [sp, #16] ldrsw x9, [sp, #8] mov x10, x9 add w10, w10, #1 str w10, [sp, #8] add x9, x8, x9 mov w8, #32 strb w8, [x9] b LBB1_11 LBB1_13: ldr x8, [sp, #16] ldrsw x9, [sp, #8] add x8, x8, x9 strb wzr, [x8] ldr x0, [sp, #16] bl _reverse ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _reverse ; -- Begin function reverse .p2align 2 _reverse: ; @reverse .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, #24] str wzr, [sp, #20] str wzr, [sp, #16] str wzr, [sp, #12] b LBB2_1 LBB2_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #24] ldr w9, [sp, #16] ; kill: def $x9 killed $w9 mov x10, x9 add w10, w10, #1 str w10, [sp, #16] ldrsb w8, [x8, x9] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB2_3 b LBB2_2 LBB2_2: ; in Loop: Header=BB2_1 Depth=1 b LBB2_1 LBB2_3: ldr w8, [sp, #16] subs w8, w8, #2 str w8, [sp, #16] ldr w8, [sp, #16] add w8, w8, #1 str w8, [sp, #12] str wzr, [sp, #20] b LBB2_4 LBB2_4: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #20] ldr w9, [sp, #12] mov w10, #2 udiv w9, w9, w10 subs w8, w8, w9 cset w8, hs tbnz w8, #0, LBB2_7 b LBB2_5 LBB2_5: ; in Loop: Header=BB2_4 Depth=1 ldr x8, [sp, #24] ldr w9, [sp, #20] ; kill: def $x9 killed $w9 add x8, x8, x9 ldrb w8, [x8] strb w8, [sp, #11] ldr x8, [sp, #24] ldr w9, [sp, #16] ; kill: def $x9 killed $w9 add x8, x8, x9 ldrb w8, [x8] ldr x9, [sp, #24] ldr w10, [sp, #20] ; kill: def $x10 killed $w10 add x9, x9, x10 strb w8, [x9] ldrb w8, [sp, #11] ldr x9, [sp, #24] ldr w10, [sp, #16] ; kill: def $x10 killed $w10 add x9, x9, x10 strb w8, [x9] b LBB2_6 LBB2_6: ; in Loop: Header=BB2_4 Depth=1 ldr w8, [sp, #20] add w8, w8, #1 str w8, [sp, #20] ldr w8, [sp, #16] subs w8, w8, #1 str w8, [sp, #16] b LBB2_4 LBB2_7: add sp, sp, #32 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals 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 $128, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -116(%rbp) leaq -112(%rbp), %rsi movl $4294967171, %edi ## imm = 0xFFFFFF83 movl $8, %edx callq _itoa leaq -112(%rbp), %rsi leaq L_.str(%rip), %rdi movb $0, %al callq _printf movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_2 ## %bb.1: xorl %eax, %eax addq $128, %rsp popq %rbp retq LBB0_2: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ## -- Begin function itoa LCPI1_0: .quad 0x4000000000000000 ## double 2 LCPI1_1: .quad 0x4040000000000000 ## double 32 .section __TEXT,__text,regular,pure_instructions .globl _itoa .p2align 4, 0x90 _itoa: ## @itoa .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl %edi, -4(%rbp) movq %rsi, -16(%rbp) movl %edx, -20(%rbp) movl $0, -24(%rbp) movl -4(%rbp), %eax movl %eax, -28(%rbp) cmpl $0, %eax jge LBB1_5 ## %bb.1: movl -4(%rbp), %eax movl %eax, -32(%rbp) ## 4-byte Spill movsd LCPI1_0(%rip), %xmm0 ## xmm0 = mem[0],zero movsd LCPI1_1(%rip), %xmm1 ## xmm1 = mem[0],zero callq _pow movl -32(%rbp), %eax ## 4-byte Reload movq %xmm0, %rcx movabsq $-9223372036854775808, %rdx ## imm = 0x8000000000000000 xorq %rdx, %rcx movq %rcx, %xmm0 cvttsd2si %xmm0, %ecx cmpl %ecx, %eax jne LBB1_3 ## %bb.2: movl -4(%rbp), %ecx addl $1, %ecx xorl %eax, %eax subl %ecx, %eax movl %eax, -4(%rbp) movl -4(%rbp), %eax movl $10, %ecx cltd idivl %ecx movl %edx, %eax addl $1, %eax addl $48, %eax movb %al, %dl movq -16(%rbp), %rax movl -24(%rbp), %ecx movl %ecx, %esi addl $1, %esi movl %esi, -24(%rbp) movslq %ecx, %rcx movb %dl, (%rax,%rcx) movl -4(%rbp), %eax movl $10, %ecx cltd idivl %ecx movl %eax, -4(%rbp) jmp LBB1_4 LBB1_3: xorl %eax, %eax subl -4(%rbp), %eax movl %eax, -4(%rbp) LBB1_4: jmp LBB1_5 LBB1_5: jmp LBB1_6 LBB1_6: ## =>This Inner Loop Header: Depth=1 movl -4(%rbp), %eax movl $10, %ecx cltd idivl %ecx addl $48, %edx ## kill: def $dl killed $dl killed $edx movq -16(%rbp), %rax movl -24(%rbp), %ecx movl %ecx, %esi addl $1, %esi movl %esi, -24(%rbp) movslq %ecx, %rcx movb %dl, (%rax,%rcx) ## %bb.7: ## in Loop: Header=BB1_6 Depth=1 movl -4(%rbp), %eax movl $10, %ecx cltd idivl %ecx movl %eax, -4(%rbp) cmpl $0, %eax jg LBB1_6 ## %bb.8: cmpl $0, -28(%rbp) jge LBB1_10 ## %bb.9: movq -16(%rbp), %rax movl -24(%rbp), %ecx movl %ecx, %edx addl $1, %edx movl %edx, -24(%rbp) movslq %ecx, %rcx movb $45, (%rax,%rcx) LBB1_10: jmp LBB1_11 LBB1_11: ## =>This Inner Loop Header: Depth=1 movl -24(%rbp), %eax cmpl -20(%rbp), %eax jge LBB1_13 ## %bb.12: ## in Loop: Header=BB1_11 Depth=1 movq -16(%rbp), %rax movl -24(%rbp), %ecx movl %ecx, %edx addl $1, %edx movl %edx, -24(%rbp) movslq %ecx, %rcx movb $32, (%rax,%rcx) jmp LBB1_11 LBB1_13: movq -16(%rbp), %rax movslq -24(%rbp), %rcx movb $0, (%rax,%rcx) movq -16(%rbp), %rdi callq _reverse addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _reverse ## -- Begin function reverse .p2align 4, 0x90 _reverse: ## @reverse .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) movl $0, -12(%rbp) movl $0, -16(%rbp) movl $0, -20(%rbp) LBB2_1: ## =>This Inner Loop Header: Depth=1 movq -8(%rbp), %rax movl -16(%rbp), %ecx movl %ecx, %edx addl $1, %edx movl %edx, -16(%rbp) movl %ecx, %ecx ## kill: def $rcx killed $ecx movsbl (%rax,%rcx), %eax cmpl $0, %eax je LBB2_3 ## %bb.2: ## in Loop: Header=BB2_1 Depth=1 jmp LBB2_1 LBB2_3: movl -16(%rbp), %eax subl $2, %eax movl %eax, -16(%rbp) movl -16(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) movl $0, -12(%rbp) LBB2_4: ## =>This Inner Loop Header: Depth=1 movl -12(%rbp), %eax movl -20(%rbp), %ecx shrl $1, %ecx cmpl %ecx, %eax jae LBB2_7 ## %bb.5: ## in Loop: Header=BB2_4 Depth=1 movq -8(%rbp), %rax movl -12(%rbp), %ecx ## kill: def $rcx killed $ecx movb (%rax,%rcx), %al movb %al, -21(%rbp) movq -8(%rbp), %rax movl -16(%rbp), %ecx ## kill: def $rcx killed $ecx movb (%rax,%rcx), %dl movq -8(%rbp), %rax movl -12(%rbp), %ecx ## kill: def $rcx killed $ecx movb %dl, (%rax,%rcx) movb -21(%rbp), %dl movq -8(%rbp), %rax movl -16(%rbp), %ecx ## kill: def $rcx killed $ecx movb %dl, (%rax,%rcx) ## %bb.6: ## in Loop: Header=BB2_4 Depth=1 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) movl -16(%rbp), %eax addl $-1, %eax movl %eax, -16(%rbp) jmp LBB2_4 LBB2_7: popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%s\n" .subsections_via_symbols
the_stack_data/151706535.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _ldexpl ; -- Begin function ldexpl .p2align 2 _ldexpl: ; @ldexpl .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 d0, [sp, #8] str w0, [sp, #4] ldr d0, [sp, #8] ldr w0, [sp, #4] bl _scalbnl 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 _ldexpl ## -- Begin function ldexpl .p2align 4, 0x90 _ldexpl: ## @ldexpl .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 fldt 16(%rbp) fstpt -16(%rbp) movl %edi, -20(%rbp) fldt -16(%rbp) movl -20(%rbp), %edi movq %rsp, %rax fstpt (%rax) callq _scalbnl fld %st(0) fstp %st(0) addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/19247.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #112 .cfi_def_cfa_offset 112 stp x29, x30, [sp, #96] ; 16-byte Folded Spill add x29, sp, #96 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] mov w8, #0 str w8, [sp, #24] ; 4-byte Folded Spill str wzr, [sp, #36] add x0, sp, #40 str x0, [sp, #16] ; 8-byte Folded Spill adrp x1, l___const.main.arr@PAGE add x1, x1, l___const.main.arr@PAGEOFF mov x2, #48 bl _memcpy ldr x0, [sp, #16] ; 8-byte Folded Reload ldr w1, [sp, #24] ; 4-byte Folded Reload mov w8, #12 str w8, [sp, #32] ldr w8, [sp, #32] subs w2, w8, #1 bl _insertionSort str wzr, [sp, #28] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #28] ldr w9, [sp, #32] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_4 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldrsw x9, [sp, #28] add x8, sp, #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_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #28] add w8, w8, #1 str w8, [sp, #28] b LBB0_1 LBB0_4: ldr w8, [sp, #36] 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_6 b LBB0_5 LBB0_5: bl ___stack_chk_fail LBB0_6: 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 .globl _insertionSort ; -- Begin function insertionSort .p2align 2 _insertionSort: ; @insertionSort .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, #24] str w1, [sp, #20] str w2, [sp, #16] ldr w8, [sp, #20] add w8, w8, #1 str w8, [sp, #8] b LBB1_1 LBB1_1: ; =>This Loop Header: Depth=1 ; Child Loop BB1_3 Depth 2 ldr w8, [sp, #8] ldr w9, [sp, #16] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB1_9 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 ldr x8, [sp, #24] ldrsw x9, [sp, #8] ldr w8, [x8, x9, lsl #2] str w8, [sp, #12] ldr w8, [sp, #8] subs w8, w8, #1 str w8, [sp, #4] b LBB1_3 LBB1_3: ; Parent Loop BB1_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #4] ldr w9, [sp, #20] subs w8, w8, w9 cset w8, lt mov w9, #0 str w9, [sp] ; 4-byte Folded Spill tbnz w8, #0, LBB1_5 b LBB1_4 LBB1_4: ; in Loop: Header=BB1_3 Depth=2 ldr x8, [sp, #24] ldrsw x9, [sp, #4] ldr w8, [x8, x9, lsl #2] ldr w9, [sp, #12] subs w8, w8, w9 cset w8, gt str w8, [sp] ; 4-byte Folded Spill b LBB1_5 LBB1_5: ; in Loop: Header=BB1_3 Depth=2 ldr w8, [sp] ; 4-byte Folded Reload tbz w8, #0, LBB1_7 b LBB1_6 LBB1_6: ; in Loop: Header=BB1_3 Depth=2 ldr x8, [sp, #24] ldrsw x9, [sp, #4] ldr w8, [x8, x9, lsl #2] ldr x9, [sp, #24] ldr w10, [sp, #4] add w10, w10, #1 str w8, [x9, w10, sxtw #2] ldr w8, [sp, #4] subs w8, w8, #1 str w8, [sp, #4] b LBB1_3 LBB1_7: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #12] ldr x9, [sp, #24] ldr w10, [sp, #4] add w10, w10, #1 str w8, [x9, w10, sxtw #2] b LBB1_8 LBB1_8: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #8] add w8, w8, #1 str w8, [sp, #8] b LBB1_1 LBB1_9: add sp, sp, #32 ret .cfi_endproc ; -- End function .section __TEXT,__const .p2align 2 ; @__const.main.arr l___const.main.arr: .long 1 ; 0x1 .long 2 ; 0x2 .long 55 ; 0x37 .long 4 ; 0x4 .long 37 ; 0x25 .long 3 ; 0x3 .long 44 ; 0x2c .long 21 ; 0x15 .long 33 ; 0x21 .long 304 ; 0x130 .long 45 ; 0x2d .long 16 ; 0x10 .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 _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $80, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -68(%rbp) leaq -64(%rbp), %rdi leaq l___const.main.arr(%rip), %rsi movl $48, %edx callq _memcpy movl $12, -72(%rbp) leaq -64(%rbp), %rdi movl -72(%rbp), %edx subl $1, %edx xorl %esi, %esi callq _insertionSort movl $0, -76(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movl -76(%rbp), %eax cmpl -72(%rbp), %eax jge LBB0_4 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movslq -76(%rbp), %rax movl -64(%rbp,%rax,4), %esi leaq L_.str(%rip), %rdi movb $0, %al callq _printf ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movl -76(%rbp), %eax addl $1, %eax movl %eax, -76(%rbp) jmp LBB0_1 LBB0_4: movl -68(%rbp), %eax movl %eax, -80(%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 -80(%rbp), %eax ## 4-byte Reload addq $80, %rsp popq %rbp retq LBB0_6: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _insertionSort ## -- Begin function insertionSort .p2align 4, 0x90 _insertionSort: ## @insertionSort .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) movl %edx, -16(%rbp) movl -12(%rbp), %eax addl $1, %eax movl %eax, -24(%rbp) LBB1_1: ## =>This Loop Header: Depth=1 ## Child Loop BB1_3 Depth 2 movl -24(%rbp), %eax cmpl -16(%rbp), %eax jg LBB1_9 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 movq -8(%rbp), %rax movslq -24(%rbp), %rcx movl (%rax,%rcx,4), %eax movl %eax, -20(%rbp) movl -24(%rbp), %eax subl $1, %eax movl %eax, -28(%rbp) LBB1_3: ## Parent Loop BB1_1 Depth=1 ## => This Inner Loop Header: Depth=2 movl -28(%rbp), %ecx xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl -12(%rbp), %ecx movb %al, -29(%rbp) ## 1-byte Spill jl LBB1_5 ## %bb.4: ## in Loop: Header=BB1_3 Depth=2 movq -8(%rbp), %rax movslq -28(%rbp), %rcx movl (%rax,%rcx,4), %eax cmpl -20(%rbp), %eax setg %al movb %al, -29(%rbp) ## 1-byte Spill LBB1_5: ## in Loop: Header=BB1_3 Depth=2 movb -29(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB1_6 jmp LBB1_7 LBB1_6: ## in Loop: Header=BB1_3 Depth=2 movq -8(%rbp), %rax movslq -28(%rbp), %rcx movl (%rax,%rcx,4), %edx movq -8(%rbp), %rax movl -28(%rbp), %ecx addl $1, %ecx movslq %ecx, %rcx movl %edx, (%rax,%rcx,4) movl -28(%rbp), %eax addl $-1, %eax movl %eax, -28(%rbp) jmp LBB1_3 LBB1_7: ## in Loop: Header=BB1_1 Depth=1 movl -20(%rbp), %edx movq -8(%rbp), %rax movl -28(%rbp), %ecx addl $1, %ecx movslq %ecx, %rcx movl %edx, (%rax,%rcx,4) ## %bb.8: ## in Loop: Header=BB1_1 Depth=1 movl -24(%rbp), %eax addl $1, %eax movl %eax, -24(%rbp) jmp LBB1_1 LBB1_9: popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__const .p2align 4 ## @__const.main.arr l___const.main.arr: .long 1 ## 0x1 .long 2 ## 0x2 .long 55 ## 0x37 .long 4 ## 0x4 .long 37 ## 0x25 .long 3 ## 0x3 .long 44 ## 0x2c .long 21 ## 0x15 .long 33 ## 0x21 .long 304 ## 0x130 .long 45 ## 0x2d .long 16 ## 0x10 .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d " .subsections_via_symbols
the_stack_data/153919.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/94285.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _str_len ; -- Begin function str_len .p2align 2 _str_len: ; @str_len .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] str wzr, [sp, #4] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #8] ldrsw x9, [sp, #4] ldrsb w8, [x8, x9] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_4 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #4] add w8, w8, #1 str w8, [sp, #4] b LBB0_1 LBB0_4: ldr w0, [sp, #4] add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _replace_substring ; -- Begin function replace_substring .p2align 2 _replace_substring: ; @replace_substring .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] stur x1, [x29, #-16] str x2, [sp, #24] str wzr, [sp, #20] str wzr, [sp, #16] b LBB1_1 LBB1_1: ; =>This Loop Header: Depth=1 ; Child Loop BB1_3 Depth 2 ldur x8, [x29, #-8] ldrsw x9, [sp, #16] ldrsb w8, [x8, x9] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB1_13 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 str wzr, [sp, #12] b LBB1_3 LBB1_3: ; Parent Loop BB1_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #12] str w8, [sp, #8] ; 4-byte Folded Spill ldur x0, [x29, #-16] bl _str_len ldr w8, [sp, #8] ; 4-byte Folded Reload subs w8, w8, w0 cset w8, ge tbnz w8, #0, LBB1_9 b LBB1_4 LBB1_4: ; in Loop: Header=BB1_3 Depth=2 ldur x8, [x29, #-8] ldr w9, [sp, #12] ldr w10, [sp, #16] add w9, w9, w10 ldrsb w8, [x8, w9, sxtw] ldur x9, [x29, #-16] ldrsw x10, [sp, #12] ldrsb w9, [x9, x10] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB1_6 b LBB1_5 LBB1_5: ; in Loop: Header=BB1_3 Depth=2 mov w8, #1 str w8, [sp, #20] b LBB1_7 LBB1_6: ; in Loop: Header=BB1_1 Depth=1 str wzr, [sp, #20] b LBB1_9 LBB1_7: ; in Loop: Header=BB1_3 Depth=2 b LBB1_8 LBB1_8: ; in Loop: Header=BB1_3 Depth=2 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB1_3 LBB1_9: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #20] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB1_11 b LBB1_10 LBB1_10: ; in Loop: Header=BB1_1 Depth=1 ldr x8, [sp, #24] mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldur x0, [x29, #-16] bl _str_len ldr w8, [sp, #16] add w8, w8, w0 str w8, [sp, #16] b LBB1_12 LBB1_11: ; in Loop: Header=BB1_1 Depth=1 ldur x8, [x29, #-8] ldrsw x9, [sp, #16] ldrsb w10, [x8, x9] mov x9, sp ; implicit-def: $x8 mov x8, x10 str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf ldr w8, [sp, #16] add w8, w8, #1 str w8, [sp, #16] b LBB1_12 LBB1_12: ; in Loop: Header=BB1_1 Depth=1 b LBB1_1 LBB1_13: 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 mov w8, #0 str w8, [sp, #36] ; 4-byte Folded Spill stur wzr, [x29, #-4] mov x9, sp sub x8, x29, #8 str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF str x0, [sp, #8] ; 8-byte Folded Spill bl _scanf ldursw x9, [x29, #-8] mov x8, #1 str x8, [sp, #16] ; 8-byte Folded Spill mul x0, x8, x9 bl _malloc stur x0, [x29, #-24] ldur x8, [x29, #-24] mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF str x0, [sp, #24] ; 8-byte Folded Spill bl _scanf ldr x0, [sp, #8] ; 8-byte Folded Reload mov x9, sp sub x8, x29, #12 str x8, [x9] bl _scanf ldr x8, [sp, #16] ; 8-byte Folded Reload ldursw x9, [x29, #-12] mul x0, x8, x9 bl _malloc mov x8, x0 ldr x0, [sp, #24] ; 8-byte Folded Reload stur x8, [x29, #-32] ldur x8, [x29, #-32] mov x9, sp str x8, [x9] bl _scanf ldr x0, [sp, #8] ; 8-byte Folded Reload mov x9, sp sub x8, x29, #16 str x8, [x9] bl _scanf ldr x8, [sp, #16] ; 8-byte Folded Reload ldursw x9, [x29, #-16] mul x0, x8, x9 bl _malloc mov x8, x0 ldr x0, [sp, #24] ; 8-byte Folded Reload str x8, [sp, #40] ldr x8, [sp, #40] mov x9, sp str x8, [x9] bl _scanf ldur x0, [x29, #-24] ldur x1, [x29, #-32] ldr x2, [sp, #40] bl _replace_substring ldr w0, [sp, #36] ; 4-byte Folded Reload ldp x29, x30, [sp, #80] ; 16-byte Folded Reload add sp, sp, #96 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%s" l_.str.1: ; @.str.1 .asciz "%c" l_.str.2: ; @.str.2 .asciz "%d" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _str_len ## -- Begin function str_len .p2align 4, 0x90 _str_len: ## @str_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) LBB0_1: ## =>This Inner Loop Header: Depth=1 movq -8(%rbp), %rax movslq -12(%rbp), %rcx movsbl (%rax,%rcx), %eax cmpl $0, %eax je LBB0_4 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_3 LBB0_3: ## in Loop: Header=BB0_1 Depth=1 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB0_1 LBB0_4: movl -12(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .globl _replace_substring ## -- Begin function replace_substring .p2align 4, 0x90 _replace_substring: ## @replace_substring .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) movq %rdx, -24(%rbp) movl $0, -28(%rbp) movl $0, -32(%rbp) LBB1_1: ## =>This Loop Header: Depth=1 ## Child Loop BB1_3 Depth 2 movq -8(%rbp), %rax movslq -32(%rbp), %rcx movsbl (%rax,%rcx), %eax cmpl $0, %eax je LBB1_13 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 movl $0, -36(%rbp) LBB1_3: ## Parent Loop BB1_1 Depth=1 ## => This Inner Loop Header: Depth=2 movl -36(%rbp), %eax movl %eax, -40(%rbp) ## 4-byte Spill movq -16(%rbp), %rdi callq _str_len movl %eax, %ecx movl -40(%rbp), %eax ## 4-byte Reload cmpl %ecx, %eax jge LBB1_9 ## %bb.4: ## in Loop: Header=BB1_3 Depth=2 movq -8(%rbp), %rax movl -36(%rbp), %ecx addl -32(%rbp), %ecx movslq %ecx, %rcx movsbl (%rax,%rcx), %eax movq -16(%rbp), %rcx movslq -36(%rbp), %rdx movsbl (%rcx,%rdx), %ecx cmpl %ecx, %eax jne LBB1_6 ## %bb.5: ## in Loop: Header=BB1_3 Depth=2 movl $1, -28(%rbp) jmp LBB1_7 LBB1_6: ## in Loop: Header=BB1_1 Depth=1 movl $0, -28(%rbp) jmp LBB1_9 LBB1_7: ## in Loop: Header=BB1_3 Depth=2 jmp LBB1_8 LBB1_8: ## in Loop: Header=BB1_3 Depth=2 movl -36(%rbp), %eax addl $1, %eax movl %eax, -36(%rbp) jmp LBB1_3 LBB1_9: ## in Loop: Header=BB1_1 Depth=1 cmpl $1, -28(%rbp) jne LBB1_11 ## %bb.10: ## in Loop: Header=BB1_1 Depth=1 movq -24(%rbp), %rsi leaq L_.str(%rip), %rdi movb $0, %al callq _printf movq -16(%rbp), %rdi callq _str_len addl -32(%rbp), %eax movl %eax, -32(%rbp) jmp LBB1_12 LBB1_11: ## in Loop: Header=BB1_1 Depth=1 movq -8(%rbp), %rax movslq -32(%rbp), %rcx movsbl (%rax,%rcx), %esi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf movl -32(%rbp), %eax addl $1, %eax movl %eax, -32(%rbp) LBB1_12: ## in Loop: Header=BB1_1 Depth=1 jmp LBB1_1 LBB1_13: 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 $48, %rsp movl $0, -4(%rbp) leaq L_.str.2(%rip), %rdi leaq -8(%rbp), %rsi movb $0, %al callq _scanf movslq -8(%rbp), %rdi shlq $0, %rdi callq _malloc movq %rax, -24(%rbp) movq -24(%rbp), %rsi leaq L_.str(%rip), %rdi movb $0, %al callq _scanf leaq L_.str.2(%rip), %rdi leaq -12(%rbp), %rsi movb $0, %al callq _scanf movslq -12(%rbp), %rdi shlq $0, %rdi callq _malloc movq %rax, -32(%rbp) movq -32(%rbp), %rsi leaq L_.str(%rip), %rdi movb $0, %al callq _scanf leaq L_.str.2(%rip), %rdi leaq -16(%rbp), %rsi movb $0, %al callq _scanf movslq -16(%rbp), %rdi shlq $0, %rdi callq _malloc movq %rax, -40(%rbp) movq -40(%rbp), %rsi leaq L_.str(%rip), %rdi movb $0, %al callq _scanf movq -24(%rbp), %rdi movq -32(%rbp), %rsi movq -40(%rbp), %rdx callq _replace_substring xorl %eax, %eax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%s" L_.str.1: ## @.str.1 .asciz "%c" L_.str.2: ## @.str.2 .asciz "%d" .subsections_via_symbols
the_stack_data/11075129.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _foo ; -- Begin function foo .p2align 2 _foo: ; @foo .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 mov w8, #1 strb w8, [sp, #15] add sp, sp, #16 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _foo ## -- Begin function foo .p2align 4, 0x90 _foo: ## @foo .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movb $1, -1(%rbp) popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/126703025.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov x9, sp add x8, sp, #8 str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf ldr w8, [sp, #8] mov w10, #4 sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: ldr w8, [sp, #8] mov w10, #100 sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: ldr w8, [sp, #8] mov w10, #400 sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: ldr w9, [sp, #8] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf b LBB0_5 LBB0_4: ldr w9, [sp, #8] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf b LBB0_5 LBB0_5: mov w0, #0 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Enter the year" l_.str.1: ; @.str.1 .asciz "%d" l_.str.2: ; @.str.2 .asciz "%d is a leap year" l_.str.3: ; @.str.3 .asciz "%d is not a leap year" .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 $4, %ecx cltd idivl %ecx cmpl $0, %edx jne LBB0_2 ## %bb.1: movl -8(%rbp), %eax movl $100, %ecx cltd idivl %ecx cmpl $0, %edx jne LBB0_3 LBB0_2: movl -8(%rbp), %eax movl $400, %ecx ## imm = 0x190 cltd idivl %ecx cmpl $0, %edx jne LBB0_4 LBB0_3: movl -8(%rbp), %esi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf jmp LBB0_5 LBB0_4: movl -8(%rbp), %esi leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf LBB0_5: xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Enter the year" L_.str.1: ## @.str.1 .asciz "%d" L_.str.2: ## @.str.2 .asciz "%d is a leap year" L_.str.3: ## @.str.3 .asciz "%d is not a leap year" .subsections_via_symbols
the_stack_data/165767095.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, #16] ; 8-byte Folded Spill bl _scanf adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf ldr x0, [sp, #16] ; 8-byte Folded Reload mov x9, sp sub x8, x29, #12 str x8, [x9] bl _scanf 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, #16 str x8, [x9] bl _scanf adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf ldr x0, [sp, #16] ; 8-byte Folded Reload mov x9, sp sub x8, x29, #20 str x8, [x9] bl _scanf ldur w8, [x29, #-8] mov w10, #2 sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_5 b LBB0_1 LBB0_1: ldur w8, [x29, #-12] mov w10, #2 sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_5 b LBB0_2 LBB0_2: ldur w8, [x29, #-16] mov w10, #2 sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_5 b LBB0_3 LBB0_3: ldur w8, [x29, #-20] 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_5 b LBB0_4 LBB0_4: ldur w8, [x29, #-8] ldur w9, [x29, #-12] add w8, w8, w9 ldur w9, [x29, #-16] add w8, w8, w9 ldur w9, [x29, #-20] add w8, w8, w9 mov w9, #4 sdiv w8, w8, w9 scvtf s0, w8 str s0, [sp, #24] ldr s0, [sp, #24] fcvt d0, s0 mov x8, sp str d0, [x8] adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf b LBB0_61 LBB0_5: ldur w8, [x29, #-8] mov w10, #2 sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_9 b LBB0_6 LBB0_6: ldur w8, [x29, #-12] mov w10, #2 sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_9 b LBB0_7 LBB0_7: ldur w8, [x29, #-16] mov w10, #2 sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_9 b LBB0_8 LBB0_8: ldur w8, [x29, #-8] ldur w9, [x29, #-12] add w8, w8, w9 ldur w9, [x29, #-16] add w8, w8, w9 mov w9, #3 sdiv w8, w8, w9 scvtf s0, w8 str s0, [sp, #24] ldr s0, [sp, #24] fcvt d0, s0 mov x8, sp str d0, [x8] adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf b LBB0_60 LBB0_9: ldur w8, [x29, #-8] mov w10, #2 sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_13 b LBB0_10 LBB0_10: ldur w8, [x29, #-12] mov w10, #2 sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_13 b LBB0_11 LBB0_11: ldur w8, [x29, #-20] 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_13 b LBB0_12 LBB0_12: ldur w8, [x29, #-8] ldur w9, [x29, #-12] add w8, w8, w9 ldur w9, [x29, #-20] add w8, w8, w9 mov w9, #3 sdiv w8, w8, w9 scvtf s0, w8 str s0, [sp, #24] ldr s0, [sp, #24] fcvt d0, s0 mov x8, sp str d0, [x8] adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf b LBB0_59 LBB0_13: ldur w8, [x29, #-8] mov w10, #2 sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_17 b LBB0_14 LBB0_14: ldur w8, [x29, #-16] mov w10, #2 sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_17 b LBB0_15 LBB0_15: ldur w8, [x29, #-20] 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_17 b LBB0_16 LBB0_16: ldur w8, [x29, #-8] ldur w9, [x29, #-16] add w8, w8, w9 ldur w9, [x29, #-20] add w8, w8, w9 mov w9, #3 sdiv w8, w8, w9 scvtf s0, w8 str s0, [sp, #24] ldr s0, [sp, #24] fcvt d0, s0 mov x8, sp str d0, [x8] adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf b LBB0_58 LBB0_17: ldur w8, [x29, #-12] mov w10, #2 sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_21 b LBB0_18 LBB0_18: ldur w8, [x29, #-16] mov w10, #2 sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_21 b LBB0_19 LBB0_19: ldur w8, [x29, #-20] 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_21 b LBB0_20 LBB0_20: ldur w8, [x29, #-12] ldur w9, [x29, #-16] add w8, w8, w9 ldur w9, [x29, #-20] add w8, w8, w9 mov w9, #3 sdiv w8, w8, w9 scvtf s0, w8 str s0, [sp, #24] ldr s0, [sp, #24] fcvt d0, s0 mov x8, sp str d0, [x8] adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf b LBB0_57 LBB0_21: ldur w8, [x29, #-8] mov w10, #2 sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_24 b LBB0_22 LBB0_22: ldur w8, [x29, #-20] 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_24 b LBB0_23 LBB0_23: ldur w8, [x29, #-8] ldur w9, [x29, #-20] add w8, w8, w9 mov w9, #2 sdiv w8, w8, w9 scvtf s0, w8 str s0, [sp, #24] ldr s0, [sp, #24] fcvt d0, s0 mov x8, sp str d0, [x8] adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf b LBB0_56 LBB0_24: ldur w8, [x29, #-8] mov w10, #2 sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_27 b LBB0_25 LBB0_25: ldur w8, [x29, #-16] mov w10, #2 sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_27 b LBB0_26 LBB0_26: ldur w8, [x29, #-8] ldur w9, [x29, #-16] add w8, w8, w9 mov w9, #2 sdiv w8, w8, w9 scvtf s0, w8 str s0, [sp, #24] ldr s0, [sp, #24] fcvt d0, s0 mov x8, sp str d0, [x8] adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf b LBB0_55 LBB0_27: ldur w8, [x29, #-8] mov w10, #2 sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_30 b LBB0_28 LBB0_28: ldur w8, [x29, #-12] mov w10, #2 sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_30 b LBB0_29 LBB0_29: ldur w8, [x29, #-8] ldur w9, [x29, #-12] add w8, w8, w9 mov w9, #2 sdiv w8, w8, w9 scvtf s0, w8 str s0, [sp, #24] ldr s0, [sp, #24] fcvt d0, s0 mov x8, sp str d0, [x8] adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf b LBB0_54 LBB0_30: ldur w8, [x29, #-12] mov w10, #2 sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_33 b LBB0_31 LBB0_31: ldur w8, [x29, #-20] 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_33 b LBB0_32 LBB0_32: ldur w8, [x29, #-12] ldur w9, [x29, #-20] add w8, w8, w9 mov w9, #2 sdiv w8, w8, w9 scvtf s0, w8 str s0, [sp, #24] ldr s0, [sp, #24] fcvt d0, s0 mov x8, sp str d0, [x8] adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf b LBB0_53 LBB0_33: ldur w8, [x29, #-12] mov w10, #2 sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_36 b LBB0_34 LBB0_34: ldur w8, [x29, #-16] mov w10, #2 sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_36 b LBB0_35 LBB0_35: ldur w8, [x29, #-12] ldur w9, [x29, #-16] add w8, w8, w9 mov w9, #2 sdiv w8, w8, w9 scvtf s0, w8 str s0, [sp, #24] ldr s0, [sp, #24] fcvt d0, s0 mov x8, sp str d0, [x8] adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf b LBB0_52 LBB0_36: ldur w8, [x29, #-16] mov w10, #2 sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_39 b LBB0_37 LBB0_37: ldur w8, [x29, #-20] 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_39 b LBB0_38 LBB0_38: ldur w8, [x29, #-16] ldur w9, [x29, #-20] add w8, w8, w9 mov w9, #2 sdiv w8, w8, w9 scvtf s0, w8 str s0, [sp, #24] ldr s0, [sp, #24] fcvt d0, s0 mov x8, sp str d0, [x8] adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf b LBB0_51 LBB0_39: ldur w8, [x29, #-8] mov w10, #2 sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_41 b LBB0_40 LBB0_40: ldur s0, [x29, #-8] scvtf s0, s0 str s0, [sp, #24] ldr s0, [sp, #24] fcvt d0, s0 mov x8, sp str d0, [x8] adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf b LBB0_50 LBB0_41: ldur w8, [x29, #-12] mov w10, #2 sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_43 b LBB0_42 LBB0_42: ldur s0, [x29, #-12] scvtf s0, s0 str s0, [sp, #24] ldr s0, [sp, #24] fcvt d0, s0 mov x8, sp str d0, [x8] adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf b LBB0_49 LBB0_43: ldur w8, [x29, #-16] mov w10, #2 sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_45 b LBB0_44 LBB0_44: ldur s0, [x29, #-16] scvtf s0, s0 str s0, [sp, #24] ldr s0, [sp, #24] fcvt d0, s0 mov x8, sp str d0, [x8] adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf b LBB0_48 LBB0_45: ldur w8, [x29, #-20] 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_47 b LBB0_46 LBB0_46: ldur s0, [x29, #-20] scvtf s0, s0 str s0, [sp, #24] ldr s0, [sp, #24] fcvt d0, s0 mov x8, sp str d0, [x8] adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf b LBB0_47 LBB0_47: b LBB0_48 LBB0_48: b LBB0_49 LBB0_49: b LBB0_50 LBB0_50: b LBB0_51 LBB0_51: b LBB0_52 LBB0_52: b LBB0_53 LBB0_53: b LBB0_54 LBB0_54: b LBB0_55 LBB0_55: b LBB0_56 LBB0_56: b LBB0_57 LBB0_57: b LBB0_58 LBB0_58: b LBB0_59 LBB0_59: b LBB0_60 LBB0_60: b LBB0_61 LBB0_61: 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 "Informe o Primeiro Numero -> " l_.str.1: ; @.str.1 .asciz "%d" l_.str.2: ; @.str.2 .asciz "Informe o Segundo Numero -> " l_.str.3: ; @.str.3 .asciz "Informe o Terceiro Numero -> " l_.str.4: ; @.str.4 .asciz "Informe o Quarto Numero -> " l_.str.5: ; @.str.5 .asciz "A Media aritmetica dos numeros pares corresponde a: %.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 movl $0, -4(%rbp) leaq L_.str(%rip), %rdi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi leaq -8(%rbp), %rsi movb $0, %al callq _scanf leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi leaq -12(%rbp), %rsi movb $0, %al callq _scanf leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi leaq -16(%rbp), %rsi movb $0, %al callq _scanf leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi leaq -20(%rbp), %rsi movb $0, %al callq _scanf movl -8(%rbp), %eax movl $2, %ecx cltd idivl %ecx cmpl $0, %edx jne LBB0_5 ## %bb.1: movl -12(%rbp), %eax movl $2, %ecx cltd idivl %ecx cmpl $0, %edx jne LBB0_5 ## %bb.2: movl -16(%rbp), %eax movl $2, %ecx cltd idivl %ecx cmpl $0, %edx jne LBB0_5 ## %bb.3: movl -20(%rbp), %eax movl $2, %ecx cltd idivl %ecx cmpl $0, %edx jne LBB0_5 ## %bb.4: movl -8(%rbp), %eax addl -12(%rbp), %eax addl -16(%rbp), %eax addl -20(%rbp), %eax movl $4, %ecx cltd idivl %ecx cvtsi2ss %eax, %xmm0 movss %xmm0, -24(%rbp) movss -24(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 leaq L_.str.5(%rip), %rdi movb $1, %al callq _printf jmp LBB0_61 LBB0_5: movl -8(%rbp), %eax movl $2, %ecx cltd idivl %ecx cmpl $0, %edx jne LBB0_9 ## %bb.6: movl -12(%rbp), %eax movl $2, %ecx cltd idivl %ecx cmpl $0, %edx jne LBB0_9 ## %bb.7: movl -16(%rbp), %eax movl $2, %ecx cltd idivl %ecx cmpl $0, %edx jne LBB0_9 ## %bb.8: movl -8(%rbp), %eax addl -12(%rbp), %eax addl -16(%rbp), %eax movl $3, %ecx cltd idivl %ecx cvtsi2ss %eax, %xmm0 movss %xmm0, -24(%rbp) movss -24(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 leaq L_.str.5(%rip), %rdi movb $1, %al callq _printf jmp LBB0_60 LBB0_9: movl -8(%rbp), %eax movl $2, %ecx cltd idivl %ecx cmpl $0, %edx jne LBB0_13 ## %bb.10: movl -12(%rbp), %eax movl $2, %ecx cltd idivl %ecx cmpl $0, %edx jne LBB0_13 ## %bb.11: movl -20(%rbp), %eax movl $2, %ecx cltd idivl %ecx cmpl $0, %edx jne LBB0_13 ## %bb.12: movl -8(%rbp), %eax addl -12(%rbp), %eax addl -20(%rbp), %eax movl $3, %ecx cltd idivl %ecx cvtsi2ss %eax, %xmm0 movss %xmm0, -24(%rbp) movss -24(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 leaq L_.str.5(%rip), %rdi movb $1, %al callq _printf jmp LBB0_59 LBB0_13: movl -8(%rbp), %eax movl $2, %ecx cltd idivl %ecx cmpl $0, %edx jne LBB0_17 ## %bb.14: movl -16(%rbp), %eax movl $2, %ecx cltd idivl %ecx cmpl $0, %edx jne LBB0_17 ## %bb.15: movl -20(%rbp), %eax movl $2, %ecx cltd idivl %ecx cmpl $0, %edx jne LBB0_17 ## %bb.16: movl -8(%rbp), %eax addl -16(%rbp), %eax addl -20(%rbp), %eax movl $3, %ecx cltd idivl %ecx cvtsi2ss %eax, %xmm0 movss %xmm0, -24(%rbp) movss -24(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 leaq L_.str.5(%rip), %rdi movb $1, %al callq _printf jmp LBB0_58 LBB0_17: movl -12(%rbp), %eax movl $2, %ecx cltd idivl %ecx cmpl $0, %edx jne LBB0_21 ## %bb.18: movl -16(%rbp), %eax movl $2, %ecx cltd idivl %ecx cmpl $0, %edx jne LBB0_21 ## %bb.19: movl -20(%rbp), %eax movl $2, %ecx cltd idivl %ecx cmpl $0, %edx jne LBB0_21 ## %bb.20: movl -12(%rbp), %eax addl -16(%rbp), %eax addl -20(%rbp), %eax movl $3, %ecx cltd idivl %ecx cvtsi2ss %eax, %xmm0 movss %xmm0, -24(%rbp) movss -24(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 leaq L_.str.5(%rip), %rdi movb $1, %al callq _printf jmp LBB0_57 LBB0_21: movl -8(%rbp), %eax movl $2, %ecx cltd idivl %ecx cmpl $0, %edx jne LBB0_24 ## %bb.22: movl -20(%rbp), %eax movl $2, %ecx cltd idivl %ecx cmpl $0, %edx jne LBB0_24 ## %bb.23: movl -8(%rbp), %eax addl -20(%rbp), %eax movl $2, %ecx cltd idivl %ecx cvtsi2ss %eax, %xmm0 movss %xmm0, -24(%rbp) movss -24(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 leaq L_.str.5(%rip), %rdi movb $1, %al callq _printf jmp LBB0_56 LBB0_24: movl -8(%rbp), %eax movl $2, %ecx cltd idivl %ecx cmpl $0, %edx jne LBB0_27 ## %bb.25: movl -16(%rbp), %eax movl $2, %ecx cltd idivl %ecx cmpl $0, %edx jne LBB0_27 ## %bb.26: movl -8(%rbp), %eax addl -16(%rbp), %eax movl $2, %ecx cltd idivl %ecx cvtsi2ss %eax, %xmm0 movss %xmm0, -24(%rbp) movss -24(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 leaq L_.str.5(%rip), %rdi movb $1, %al callq _printf jmp LBB0_55 LBB0_27: movl -8(%rbp), %eax movl $2, %ecx cltd idivl %ecx cmpl $0, %edx jne LBB0_30 ## %bb.28: movl -12(%rbp), %eax movl $2, %ecx cltd idivl %ecx cmpl $0, %edx jne LBB0_30 ## %bb.29: movl -8(%rbp), %eax addl -12(%rbp), %eax movl $2, %ecx cltd idivl %ecx cvtsi2ss %eax, %xmm0 movss %xmm0, -24(%rbp) movss -24(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 leaq L_.str.5(%rip), %rdi movb $1, %al callq _printf jmp LBB0_54 LBB0_30: movl -12(%rbp), %eax movl $2, %ecx cltd idivl %ecx cmpl $0, %edx jne LBB0_33 ## %bb.31: movl -20(%rbp), %eax movl $2, %ecx cltd idivl %ecx cmpl $0, %edx jne LBB0_33 ## %bb.32: movl -12(%rbp), %eax addl -20(%rbp), %eax movl $2, %ecx cltd idivl %ecx cvtsi2ss %eax, %xmm0 movss %xmm0, -24(%rbp) movss -24(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 leaq L_.str.5(%rip), %rdi movb $1, %al callq _printf jmp LBB0_53 LBB0_33: movl -12(%rbp), %eax movl $2, %ecx cltd idivl %ecx cmpl $0, %edx jne LBB0_36 ## %bb.34: movl -16(%rbp), %eax movl $2, %ecx cltd idivl %ecx cmpl $0, %edx jne LBB0_36 ## %bb.35: movl -12(%rbp), %eax addl -16(%rbp), %eax movl $2, %ecx cltd idivl %ecx cvtsi2ss %eax, %xmm0 movss %xmm0, -24(%rbp) movss -24(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 leaq L_.str.5(%rip), %rdi movb $1, %al callq _printf jmp LBB0_52 LBB0_36: movl -16(%rbp), %eax movl $2, %ecx cltd idivl %ecx cmpl $0, %edx jne LBB0_39 ## %bb.37: movl -20(%rbp), %eax movl $2, %ecx cltd idivl %ecx cmpl $0, %edx jne LBB0_39 ## %bb.38: movl -16(%rbp), %eax addl -20(%rbp), %eax movl $2, %ecx cltd idivl %ecx cvtsi2ss %eax, %xmm0 movss %xmm0, -24(%rbp) movss -24(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 leaq L_.str.5(%rip), %rdi movb $1, %al callq _printf jmp LBB0_51 LBB0_39: movl -8(%rbp), %eax movl $2, %ecx cltd idivl %ecx cmpl $0, %edx jne LBB0_41 ## %bb.40: cvtsi2ssl -8(%rbp), %xmm0 movss %xmm0, -24(%rbp) movss -24(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 leaq L_.str.5(%rip), %rdi movb $1, %al callq _printf jmp LBB0_50 LBB0_41: movl -12(%rbp), %eax movl $2, %ecx cltd idivl %ecx cmpl $0, %edx jne LBB0_43 ## %bb.42: cvtsi2ssl -12(%rbp), %xmm0 movss %xmm0, -24(%rbp) movss -24(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 leaq L_.str.5(%rip), %rdi movb $1, %al callq _printf jmp LBB0_49 LBB0_43: movl -16(%rbp), %eax movl $2, %ecx cltd idivl %ecx cmpl $0, %edx jne LBB0_45 ## %bb.44: cvtsi2ssl -16(%rbp), %xmm0 movss %xmm0, -24(%rbp) movss -24(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 leaq L_.str.5(%rip), %rdi movb $1, %al callq _printf jmp LBB0_48 LBB0_45: movl -20(%rbp), %eax movl $2, %ecx cltd idivl %ecx cmpl $0, %edx jne LBB0_47 ## %bb.46: cvtsi2ssl -20(%rbp), %xmm0 movss %xmm0, -24(%rbp) movss -24(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 leaq L_.str.5(%rip), %rdi movb $1, %al callq _printf LBB0_47: jmp LBB0_48 LBB0_48: jmp LBB0_49 LBB0_49: jmp LBB0_50 LBB0_50: jmp LBB0_51 LBB0_51: jmp LBB0_52 LBB0_52: jmp LBB0_53 LBB0_53: jmp LBB0_54 LBB0_54: jmp LBB0_55 LBB0_55: jmp LBB0_56 LBB0_56: jmp LBB0_57 LBB0_57: jmp LBB0_58 LBB0_58: jmp LBB0_59 LBB0_59: jmp LBB0_60 LBB0_60: jmp LBB0_61 LBB0_61: xorl %eax, %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Informe o Primeiro Numero -> " L_.str.1: ## @.str.1 .asciz "%d" L_.str.2: ## @.str.2 .asciz "Informe o Segundo Numero -> " L_.str.3: ## @.str.3 .asciz "Informe o Terceiro Numero -> " L_.str.4: ## @.str.4 .asciz "Informe o Quarto Numero -> " L_.str.5: ## @.str.5 .asciz "A Media aritmetica dos numeros pares corresponde a: %.2f" .subsections_via_symbols
the_stack_data/232956683.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _ec_raise_ ; -- Begin function ec_raise_ .p2align 2 _ec_raise_: ; @ec_raise_ .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 w0, [x8] bl _raise ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _ec_raise ; -- Begin function ec_raise .p2align 2 _ec_raise: ; @ec_raise .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #8] ldr x0, [sp, #8] bl _ec_raise_ 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 _ec_raise_ ## -- Begin function ec_raise_ .p2align 4, 0x90 _ec_raise_: ## @ec_raise_ .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), %edi callq _raise addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _ec_raise ## -- Begin function ec_raise .p2align 4, 0x90 _ec_raise: ## @ec_raise .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) movq -8(%rbp), %rdi callq _ec_raise_ addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/150142904.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 x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] str wzr, [sp, #12] adrp x8, l___const.main.s1@PAGE add x8, x8, l___const.main.s1@PAGEOFF ldr x8, [x8] add x0, sp, #16 str x8, [sp, #16] adrp x8, l___const.main.s2@PAGE add x8, x8, l___const.main.s2@PAGEOFF ldrh w8, [x8] add x1, sp, #10 strh w8, [sp, #10] bl _any mov x9, sp ; implicit-def: $x8 mov x8, x0 str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf 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, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _any ; -- Begin function any .p2align 2 _any: ; @any .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 str x0, [sp, #32] str x1, [sp, #24] str wzr, [sp, #20] str wzr, [sp, #16] b LBB1_1 LBB1_1: ; =>This Loop Header: Depth=1 ; Child Loop BB1_3 Depth 2 ldr x8, [sp, #32] ldrsw x9, [sp, #20] mov x10, x9 add w10, w10, #1 str w10, [sp, #20] ldrsb w8, [x8, x9] strb w8, [sp, #15] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB1_10 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 str wzr, [sp, #16] b LBB1_3 LBB1_3: ; Parent Loop BB1_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr x8, [sp, #24] ldrsw x9, [sp, #16] mov x10, x9 add w10, w10, #1 str w10, [sp, #16] ldrsb w8, [x8, x9] strb w8, [sp, #14] subs w8, w8, #0 cset w8, eq mov w9, #0 str w9, [sp, #8] ; 4-byte Folded Spill tbnz w8, #0, LBB1_5 b LBB1_4 LBB1_4: ; in Loop: Header=BB1_3 Depth=2 ldrsb w8, [sp, #14] ldrsb w9, [sp, #15] subs w8, w8, w9 cset w8, ne str w8, [sp, #8] ; 4-byte Folded Spill b LBB1_5 LBB1_5: ; in Loop: Header=BB1_3 Depth=2 ldr w8, [sp, #8] ; 4-byte Folded Reload tbz w8, #0, LBB1_7 b LBB1_6 LBB1_6: ; in Loop: Header=BB1_3 Depth=2 b LBB1_3 LBB1_7: ; in Loop: Header=BB1_1 Depth=1 ldrsb w8, [sp, #14] ldrsb w9, [sp, #15] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB1_9 b LBB1_8 LBB1_8: ldr w8, [sp, #20] subs w8, w8, #1 str w8, [sp, #44] b LBB1_11 LBB1_9: ; in Loop: Header=BB1_1 Depth=1 b LBB1_1 LBB1_10: mov w8, #-1 str w8, [sp, #44] b LBB1_11 LBB1_11: ldr w0, [sp, #44] add sp, sp, #48 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l___const.main.s1: ; @__const.main.s1 .asciz "catrugb" l___const.main.s2: ; @__const.main.s2 .asciz "h" l_.str: ; @.str .asciz "%d\n\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -20(%rbp) movq L___const.main.s1(%rip), %rax movq %rax, -16(%rbp) movw L___const.main.s2(%rip), %ax movw %ax, -22(%rbp) leaq -16(%rbp), %rdi leaq -22(%rbp), %rsi callq _any movl %eax, %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_2 ## %bb.1: xorl %eax, %eax addq $32, %rsp popq %rbp retq LBB0_2: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _any ## -- Begin function any .p2align 4, 0x90 _any: ## @any .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -16(%rbp) movq %rsi, -24(%rbp) movl $0, -28(%rbp) movl $0, -32(%rbp) LBB1_1: ## =>This Loop Header: Depth=1 ## Child Loop BB1_3 Depth 2 movq -16(%rbp), %rax movl -28(%rbp), %ecx movl %ecx, %edx addl $1, %edx movl %edx, -28(%rbp) movslq %ecx, %rcx movb (%rax,%rcx), %al movb %al, -33(%rbp) movsbl %al, %eax cmpl $0, %eax je LBB1_10 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 movl $0, -32(%rbp) LBB1_3: ## Parent Loop BB1_1 Depth=1 ## => This Inner Loop Header: Depth=2 movq -24(%rbp), %rax movl -32(%rbp), %ecx movl %ecx, %edx addl $1, %edx movl %edx, -32(%rbp) movslq %ecx, %rcx movb (%rax,%rcx), %al movb %al, -34(%rbp) movsbl %al, %ecx xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $0, %ecx movb %al, -35(%rbp) ## 1-byte Spill je LBB1_5 ## %bb.4: ## in Loop: Header=BB1_3 Depth=2 movsbl -34(%rbp), %eax movsbl -33(%rbp), %ecx cmpl %ecx, %eax setne %al movb %al, -35(%rbp) ## 1-byte Spill LBB1_5: ## in Loop: Header=BB1_3 Depth=2 movb -35(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB1_6 jmp LBB1_7 LBB1_6: ## in Loop: Header=BB1_3 Depth=2 jmp LBB1_3 LBB1_7: ## in Loop: Header=BB1_1 Depth=1 movsbl -34(%rbp), %eax movsbl -33(%rbp), %ecx cmpl %ecx, %eax jne LBB1_9 ## %bb.8: movl -28(%rbp), %eax subl $1, %eax movl %eax, -4(%rbp) jmp LBB1_11 LBB1_9: ## in Loop: Header=BB1_1 Depth=1 jmp LBB1_1 LBB1_10: movl $-1, -4(%rbp) LBB1_11: movl -4(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L___const.main.s1: ## @__const.main.s1 .asciz "catrugb" L___const.main.s2: ## @__const.main.s2 .asciz "h" L_.str: ## @.str .asciz "%d\n\n" .subsections_via_symbols
the_stack_data/25137120.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: stp x28, x27, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w27, -24 .cfi_offset w28, -32 mov w9, #20672 adrp x16, ___chkstk_darwin@GOTPAGE ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF] blr x16 sub sp, sp, #5, lsl #12 ; =20480 sub sp, sp, #192 sub x8, x29, #152 str x8, [sp, #32] ; 8-byte Folded Spill mov w2, #0 str w2, [sp, #44] ; 4-byte Folded Spill str wzr, [x8, #132] str w0, [x8, #128] stur x1, [x29, #-32] mov w1, #1 mov x0, x1 bl _socket ldr x9, [sp, #32] ; 8-byte Folded Reload ldr w8, [sp, #44] ; 4-byte Folded Reload str w0, [x9, #116] ldr w9, [x9, #116] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _perror mov w0, #1 bl _exit LBB0_2: adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF str x0, [sp, #16] ; 8-byte Folded Spill bl _unlink sub x0, x29, #142 str x0, [sp, #24] ; 8-byte Folded Spill mov w1, #0 mov x2, #106 bl _memset ldr x1, [sp, #16] ; 8-byte Folded Reload ldr x8, [sp, #24] ; 8-byte Folded Reload ldr x10, [sp, #32] ; 8-byte Folded Reload mov w9, #1 strb w9, [x10, #11] add x0, x8, #2 mov x2, #104 bl ___strcpy_chk ldr x1, [sp, #24] ; 8-byte Folded Reload ldr x8, [sp, #32] ; 8-byte Folded Reload ldr w0, [x8, #116] mov w2, #106 bl _bind ldr x8, [sp, #32] ; 8-byte Folded Reload str w0, [x8, #4] ldr w9, [x8, #4] mov w8, #0 subs w8, w8, w9 cset w8, eq tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _perror ldr x8, [sp, #32] ; 8-byte Folded Reload ldr w0, [x8, #116] bl _close mov w0, #1 bl _exit LBB0_4: ldr x8, [sp, #32] ; 8-byte Folded Reload ldr w0, [x8, #116] mov w1, #5 bl _listen ldr x8, [sp, #32] ; 8-byte Folded Reload str w0, [x8, #4] ldr w9, [x8, #4] mov w8, #0 subs w8, w8, w9 cset w8, eq tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _perror ldr x8, [sp, #32] ; 8-byte Folded Reload ldr w0, [x8, #116] bl _close mov w0, #1 bl _exit LBB0_6: b LBB0_7 LBB0_7: ; =>This Loop Header: Depth=1 ; Child Loop BB0_9 Depth 2 ldr x8, [sp, #32] ; 8-byte Folded Reload ldr w0, [x8, #116] mov x2, #0 mov x1, x2 bl _accept ldr x8, [sp, #32] ; 8-byte Folded Reload str w0, [x8] ldr w9, [x8] mov w8, #0 subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_12 b LBB0_8 LBB0_8: ; in Loop: Header=BB0_7 Depth=1 adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf ldr x8, [sp, #32] ; 8-byte Folded Reload ldr w0, [x8] add x1, sp, #56 mov x2, #20480 bl _read str x0, [sp, #48] b LBB0_9 LBB0_9: ; Parent Loop BB0_7 Depth=1 ; => This Inner Loop Header: Depth=2 ldr x9, [sp, #48] mov x8, #0 subs x8, x8, x9 cset w8, ge tbnz w8, #0, LBB0_11 b LBB0_10 LBB0_10: ; in Loop: Header=BB0_9 Depth=2 ldr x8, [sp, #48] mov x9, sp str x8, [x9] adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf mov w0, #1 bl _sleep ldr x8, [sp, #32] ; 8-byte Folded Reload ldr w0, [x8] add x1, sp, #56 mov x2, #20480 bl _read str x0, [sp, #48] b LBB0_9 LBB0_11: ; in Loop: Header=BB0_7 Depth=1 adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf ldr x8, [sp, #32] ; 8-byte Folded Reload ldr w0, [x8] bl _close b LBB0_12 LBB0_12: ; in Loop: Header=BB0_7 Depth=1 b LBB0_7 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "socket" l_.str.1: ; @.str.1 .asciz "slow_receiver.sock" l_.str.2: ; @.str.2 .asciz "bind" l_.str.3: ; @.str.3 .asciz "connected\n" l_.str.4: ; @.str.4 .asciz "received %zi bytes...\n" l_.str.5: ; @.str.5 .asciz "connection closed\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl $20640, %eax ## imm = 0x50A0 callq ____chkstk_darwin subq %rax, %rsp movl $0, -4(%rbp) movl %edi, -8(%rbp) movq %rsi, -16(%rbp) movl $1, %esi xorl %edx, %edx movl %esi, %edi callq _socket movl %eax, -20(%rbp) xorl %eax, %eax cmpl -20(%rbp), %eax jle LBB0_2 ## %bb.1: leaq L_.str(%rip), %rdi callq _perror movl $1, %edi callq _exit LBB0_2: leaq L_.str.1(%rip), %rdi callq _unlink leaq -128(%rbp), %rdi xorl %esi, %esi movl $106, %edx callq _memset movb $1, -127(%rbp) leaq -128(%rbp), %rdi addq $2, %rdi leaq L_.str.1(%rip), %rsi movl $104, %edx callq ___strcpy_chk movl -20(%rbp), %edi leaq -128(%rbp), %rsi movl $106, %edx callq _bind movl %eax, -132(%rbp) xorl %eax, %eax cmpl -132(%rbp), %eax je LBB0_4 ## %bb.3: leaq L_.str.2(%rip), %rdi callq _perror movl -20(%rbp), %edi callq _close movl $1, %edi callq _exit LBB0_4: movl -20(%rbp), %edi movl $5, %esi callq _listen movl %eax, -132(%rbp) xorl %eax, %eax cmpl -132(%rbp), %eax je LBB0_6 ## %bb.5: leaq L_.str.2(%rip), %rdi callq _perror movl -20(%rbp), %edi callq _close movl $1, %edi callq _exit LBB0_6: jmp LBB0_7 LBB0_7: ## =>This Loop Header: Depth=1 ## Child Loop BB0_9 Depth 2 movl -20(%rbp), %edi xorl %eax, %eax movl %eax, %edx movq %rdx, %rsi callq _accept movl %eax, -136(%rbp) xorl %eax, %eax cmpl -136(%rbp), %eax jg LBB0_12 ## %bb.8: ## in Loop: Header=BB0_7 Depth=1 leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf movl -136(%rbp), %edi leaq -20624(%rbp), %rsi movl $20480, %edx ## imm = 0x5000 callq _read movq %rax, -20632(%rbp) LBB0_9: ## Parent Loop BB0_7 Depth=1 ## => This Inner Loop Header: Depth=2 xorl %eax, %eax ## kill: def $rax killed $eax cmpq -20632(%rbp), %rax jge LBB0_11 ## %bb.10: ## in Loop: Header=BB0_9 Depth=2 movq -20632(%rbp), %rsi leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf movl $1, %edi callq _sleep movl -136(%rbp), %edi leaq -20624(%rbp), %rsi movl $20480, %edx ## imm = 0x5000 callq _read movq %rax, -20632(%rbp) jmp LBB0_9 LBB0_11: ## in Loop: Header=BB0_7 Depth=1 leaq L_.str.5(%rip), %rdi movb $0, %al callq _printf movl -136(%rbp), %edi callq _close LBB0_12: ## in Loop: Header=BB0_7 Depth=1 jmp LBB0_7 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "socket" L_.str.1: ## @.str.1 .asciz "slow_receiver.sock" L_.str.2: ## @.str.2 .asciz "bind" L_.str.3: ## @.str.3 .asciz "connected\n" L_.str.4: ## @.str.4 .asciz "received %zi bytes...\n" L_.str.5: ## @.str.5 .asciz "connection closed\n" .subsections_via_symbols
the_stack_data/366225.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #464 .cfi_def_cfa_offset 464 stp x28, x27, [sp, #432] ; 16-byte Folded Spill stp x29, x30, [sp, #448] ; 16-byte Folded Spill add x29, sp, #448 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w27, -24 .cfi_offset w28, -32 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] str wzr, [sp, #80] str w0, [sp, #76] str x1, [sp, #64] ldr w8, [sp, #76] subs w8, w8, #2 cset w8, lt mov w9, #0 str w9, [sp, #20] ; 4-byte Folded Spill tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: mov w8, #1 str w8, [sp, #20] ; 4-byte Folded Spill b LBB0_2 LBB0_2: ldr w8, [sp, #20] ; 4-byte Folded Reload eor w9, w8, #0x1 ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: adrp x0, l___func__.main@PAGE add x0, x0, l___func__.main@PAGEOFF adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF mov w2, #84 adrp x3, l_.str.2@PAGE add x3, x3, l_.str.2@PAGEOFF bl ___assert_rtn LBB0_4: b LBB0_5 LBB0_5: adrp x8, ___stdoutp@GOTPAGE ldr x8, [x8, ___stdoutp@GOTPAGEOFF] ldr x0, [x8] adrp x1, _main.stdoutBuffer@PAGE add x1, x1, _main.stdoutBuffer@PAGEOFF mov w2, #0 mov x3, #256 bl _setvbuf ldr x8, [sp, #64] ldr x0, [x8, #8] adrp x1, l_.str.3@PAGE add x1, x1, l_.str.3@PAGEOFF bl _fopen str x0, [sp, #56] ldr x8, [sp, #56] subs x8, x8, #0 cset w8, eq mov w9, #0 str w9, [sp, #16] ; 4-byte Folded Spill tbnz w8, #0, LBB0_7 b LBB0_6 LBB0_6: mov w8, #1 str w8, [sp, #16] ; 4-byte Folded Spill b LBB0_7 LBB0_7: ldr w8, [sp, #16] ; 4-byte Folded Reload eor w9, w8, #0x1 ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB0_9 b LBB0_8 LBB0_8: adrp x0, l___func__.main@PAGE add x0, x0, l___func__.main@PAGEOFF adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF mov w2, #93 adrp x3, l_.str.5@PAGE add x3, x3, l_.str.5@PAGEOFF bl ___assert_rtn LBB0_9: b LBB0_10 LBB0_10: add x0, sp, #168 mov w1, #0 mov x2, #256 bl _memset b LBB0_11 LBB0_11: ; =>This Loop Header: Depth=1 ; Child Loop BB0_18 Depth 2 ; Child Loop BB0_20 Depth 3 ldr x2, [sp, #56] add x0, sp, #168 mov w1, #256 bl _fgets subs x8, x0, #0 cset w8, eq tbnz w8, #0, LBB0_35 b LBB0_12 LBB0_12: ; in Loop: Header=BB0_11 Depth=1 ldrsb w8, [sp, #168] subs w8, w8, #52 cset w8, eq mov w9, #1 str w9, [sp, #12] ; 4-byte Folded Spill tbnz w8, #0, LBB0_14 b LBB0_13 LBB0_13: ; in Loop: Header=BB0_11 Depth=1 ldrsb w8, [sp, #168] subs w8, w8, #57 cset w8, eq str w8, [sp, #12] ; 4-byte Folded Spill b LBB0_14 LBB0_14: ; in Loop: Header=BB0_11 Depth=1 ldr w8, [sp, #12] ; 4-byte Folded Reload eor w9, w8, #0x1 ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB0_16 b LBB0_15 LBB0_15: adrp x0, l___func__.main@PAGE add x0, x0, l___func__.main@PAGEOFF adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF mov w2, #99 adrp x3, l_.str.6@PAGE add x3, x3, l_.str.6@PAGEOFF bl ___assert_rtn LBB0_16: ; in Loop: Header=BB0_11 Depth=1 b LBB0_17 LBB0_17: ; in Loop: Header=BB0_11 Depth=1 add x0, sp, #87 mov w1, #0 mov x2, #81 bl _memset add x8, sp, #168 ldrsb w9, [sp, #168] subs w10, w9, #48 ; implicit-def: $x9 mov x9, x10 sxtw x9, w9 str x9, [sp, #48] add x8, x8, #2 str x8, [sp, #40] str xzr, [sp, #32] b LBB0_18 LBB0_18: ; Parent Loop BB0_11 Depth=1 ; => This Loop Header: Depth=2 ; Child Loop BB0_20 Depth 3 ldr x8, [sp, #32] ldr x9, [sp, #48] subs x8, x8, x9 cset w8, hs tbnz w8, #0, LBB0_34 b LBB0_19 LBB0_19: ; in Loop: Header=BB0_18 Depth=2 str xzr, [sp, #24] b LBB0_20 LBB0_20: ; Parent Loop BB0_11 Depth=1 ; Parent Loop BB0_18 Depth=2 ; => This Inner Loop Header: Depth=3 ldr x8, [sp, #24] ldr x9, [sp, #48] subs x8, x8, x9 cset w8, hs tbnz w8, #0, LBB0_32 b LBB0_21 LBB0_21: ; in Loop: Header=BB0_20 Depth=3 ldr x8, [sp, #40] ldrsb w0, [x8] bl _isdigit subs w8, w0, #0 cset w9, eq ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB0_23 b LBB0_22 LBB0_22: adrp x0, l___func__.main@PAGE add x0, x0, l___func__.main@PAGEOFF adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF mov w2, #110 adrp x3, l_.str.7@PAGE add x3, x3, l_.str.7@PAGEOFF bl ___assert_rtn LBB0_23: ; in Loop: Header=BB0_20 Depth=3 b LBB0_24 LBB0_24: ; in Loop: Header=BB0_20 Depth=3 ldr x8, [sp, #40] ldrsb w8, [x8, #1] subs w8, w8, #44 cset w8, eq mov w9, #1 str w9, [sp, #8] ; 4-byte Folded Spill tbnz w8, #0, LBB0_27 b LBB0_25 LBB0_25: ; in Loop: Header=BB0_20 Depth=3 ldr x8, [sp, #40] ldrsb w8, [x8, #1] subs w8, w8, #10 cset w8, eq mov w9, #1 str w9, [sp, #8] ; 4-byte Folded Spill tbnz w8, #0, LBB0_27 b LBB0_26 LBB0_26: ; in Loop: Header=BB0_20 Depth=3 ldr x8, [sp, #40] ldrb w8, [x8, #1] subs w8, w8, #0 cset w8, eq str w8, [sp, #8] ; 4-byte Folded Spill b LBB0_27 LBB0_27: ; in Loop: Header=BB0_20 Depth=3 ldr w8, [sp, #8] ; 4-byte Folded Reload eor w9, w8, #0x1 ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB0_29 b LBB0_28 LBB0_28: adrp x0, l___func__.main@PAGE add x0, x0, l___func__.main@PAGEOFF adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF mov w2, #111 adrp x3, l_.str.8@PAGE add x3, x3, l_.str.8@PAGEOFF bl ___assert_rtn LBB0_29: ; in Loop: Header=BB0_20 Depth=3 b LBB0_30 LBB0_30: ; in Loop: Header=BB0_20 Depth=3 ldr x8, [sp, #40] ldrsb w8, [x8] subs w8, w8, #48 ldr x9, [sp, #32] mov x10, #9 mul x10, x9, x10 add x9, sp, #87 add x9, x9, x10 ldr x10, [sp, #24] strb w8, [x9, x10] b LBB0_31 LBB0_31: ; in Loop: Header=BB0_20 Depth=3 ldr x8, [sp, #24] add x8, x8, #1 str x8, [sp, #24] ldr x8, [sp, #40] add x8, x8, #2 str x8, [sp, #40] b LBB0_20 LBB0_32: ; in Loop: Header=BB0_18 Depth=2 b LBB0_33 LBB0_33: ; in Loop: Header=BB0_18 Depth=2 ldr x8, [sp, #32] add x8, x8, #1 str x8, [sp, #32] b LBB0_18 LBB0_34: ; in Loop: Header=BB0_11 Depth=1 ldr x1, [sp, #48] add x0, sp, #87 bl _isValidSudokuGrid and w10, w0, #0x1 adrp x9, l_.str.10@PAGE add x9, x9, l_.str.10@PAGEOFF adrp x8, l_.str.9@PAGE add x8, x8, l_.str.9@PAGEOFF ands w10, w10, #0x1 csel x0, x8, x9, ne bl _puts b LBB0_11 LBB0_35: ldr w8, [sp, #80] str w8, [sp, #4] ; 4-byte Folded Spill ldur x9, [x29, #-24] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_37 b LBB0_36 LBB0_36: bl ___stack_chk_fail LBB0_37: ldr w0, [sp, #4] ; 4-byte Folded Reload ldp x29, x30, [sp, #448] ; 16-byte Folded Reload ldp x28, x27, [sp, #432] ; 16-byte Folded Reload add sp, sp, #464 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function isValidSudokuGrid _isValidSudokuGrid: ; @isValidSudokuGrid .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-16] str x1, [sp, #24] ldr x8, [sp, #24] subs x8, x8, #4 cset w8, eq tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: ldr x8, [sp, #24] subs x8, x8, #9 cset w8, ne mov w9, #0 str w9, [sp, #12] ; 4-byte Folded Spill tbnz w8, #0, LBB1_3 b LBB1_2 LBB1_2: ldur x8, [x29, #-16] subs x8, x8, #0 cset w8, ne str w8, [sp, #12] ; 4-byte Folded Spill b LBB1_3 LBB1_3: ldr w8, [sp, #12] ; 4-byte Folded Reload eor w9, w8, #0x1 ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB1_5 b LBB1_4 LBB1_4: adrp x0, l___func__.isValidSudokuGrid@PAGE add x0, x0, l___func__.isValidSudokuGrid@PAGEOFF adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF mov w2, #64 adrp x3, l_.str.11@PAGE add x3, x3, l_.str.11@PAGEOFF bl ___assert_rtn LBB1_5: b LBB1_6 LBB1_6: str xzr, [sp, #16] b LBB1_7 LBB1_7: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #16] ldr x9, [sp, #24] subs x8, x8, x9 cset w8, hs tbnz w8, #0, LBB1_13 b LBB1_8 LBB1_8: ; in Loop: Header=BB1_7 Depth=1 ldur x0, [x29, #-16] ldr x1, [sp, #16] ldr x2, [sp, #24] bl _isValidSudokuSlice tbz w0, #0, LBB1_10 b LBB1_9 LBB1_9: ; in Loop: Header=BB1_7 Depth=1 ldur x0, [x29, #-16] ldr x1, [sp, #16] ldr x2, [sp, #24] bl _isValidSudokuSubGrid tbnz w0, #0, LBB1_11 b LBB1_10 LBB1_10: mov w8, #0 and w8, w8, #0x1 and w8, w8, #0x1 sturb w8, [x29, #-1] b LBB1_14 LBB1_11: ; in Loop: Header=BB1_7 Depth=1 b LBB1_12 LBB1_12: ; in Loop: Header=BB1_7 Depth=1 ldr x8, [sp, #16] add x8, x8, #1 str x8, [sp, #16] b LBB1_7 LBB1_13: mov w8, #1 and w8, w8, #0x1 and w8, w8, #0x1 sturb w8, [x29, #-1] b LBB1_14 LBB1_14: ldurb w8, [x29, #-1] and w0, w8, #0x1 ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function isValidSudokuSlice _isValidSudokuSlice: ; @isValidSudokuSlice .cfi_startproc ; %bb.0: sub sp, sp, #80 .cfi_def_cfa_offset 80 stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp, #64 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-16] stur x1, [x29, #-24] str x2, [sp, #32] ldur x8, [x29, #-16] subs x8, x8, #0 cset w8, eq mov w9, #0 str w9, [sp, #4] ; 4-byte Folded Spill tbnz w8, #0, LBB2_5 b LBB2_1 LBB2_1: ldur x8, [x29, #-24] subs x8, x8, #9 cset w8, hs mov w9, #0 str w9, [sp, #4] ; 4-byte Folded Spill tbnz w8, #0, LBB2_5 b LBB2_2 LBB2_2: ldr x8, [sp, #32] subs x8, x8, #4 cset w8, eq mov w9, #1 str w9, [sp] ; 4-byte Folded Spill tbnz w8, #0, LBB2_4 b LBB2_3 LBB2_3: ldr x8, [sp, #32] subs x8, x8, #9 cset w8, eq str w8, [sp] ; 4-byte Folded Spill b LBB2_4 LBB2_4: ldr w8, [sp] ; 4-byte Folded Reload str w8, [sp, #4] ; 4-byte Folded Spill b LBB2_5 LBB2_5: ldr w8, [sp, #4] ; 4-byte Folded Reload eor w9, w8, #0x1 ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB2_7 b LBB2_6 LBB2_6: adrp x0, l___func__.isValidSudokuSlice@PAGE add x0, x0, l___func__.isValidSudokuSlice@PAGEOFF adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF mov w2, #12 adrp x3, l_.str.12@PAGE add x3, x3, l_.str.12@PAGEOFF bl ___assert_rtn LBB2_7: b LBB2_8 LBB2_8: ldr x9, [sp, #32] mov x8, #32 subs x8, x8, x9 cset w9, ls ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB2_10 b LBB2_9 LBB2_9: adrp x0, l___func__.isValidSudokuSlice@PAGE add x0, x0, l___func__.isValidSudokuSlice@PAGEOFF adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF mov w2, #13 adrp x3, l_.str.13@PAGE add x3, x3, l_.str.13@PAGEOFF bl ___assert_rtn LBB2_10: b LBB2_11 LBB2_11: str wzr, [sp, #28] str wzr, [sp, #24] str xzr, [sp, #16] b LBB2_12 LBB2_12: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #16] ldr x9, [sp, #32] subs x8, x8, x9 cset w8, hs tbnz w8, #0, LBB2_18 b LBB2_13 LBB2_13: ; in Loop: Header=BB2_12 Depth=1 ldur x8, [x29, #-16] ldur x9, [x29, #-24] mov x11, #9 mul x9, x9, x11 add x8, x8, x9 ldr x9, [sp, #16] ldrb w9, [x8, x9] mov w8, #1 lsl w9, w8, w9 str w9, [sp, #12] ldur x9, [x29, #-16] ldr x10, [sp, #16] mul x10, x10, x11 add x9, x9, x10 ldur x10, [x29, #-24] ldrb w9, [x9, x10] lsl w8, w8, w9 str w8, [sp, #8] ldr w8, [sp, #28] ldr w9, [sp, #12] ands w8, w8, w9 cset w8, ne tbnz w8, #0, LBB2_15 b LBB2_14 LBB2_14: ; in Loop: Header=BB2_12 Depth=1 ldr w8, [sp, #24] ldr w9, [sp, #8] ands w8, w8, w9 cset w8, eq tbnz w8, #0, LBB2_16 b LBB2_15 LBB2_15: mov w8, #0 and w8, w8, #0x1 and w8, w8, #0x1 sturb w8, [x29, #-1] b LBB2_19 LBB2_16: ; in Loop: Header=BB2_12 Depth=1 ldr w9, [sp, #12] ldr w8, [sp, #28] orr w8, w8, w9 str w8, [sp, #28] ldr w9, [sp, #8] ldr w8, [sp, #24] orr w8, w8, w9 str w8, [sp, #24] b LBB2_17 LBB2_17: ; in Loop: Header=BB2_12 Depth=1 ldr x8, [sp, #16] add x8, x8, #1 str x8, [sp, #16] b LBB2_12 LBB2_18: mov w8, #1 and w8, w8, #0x1 and w8, w8, #0x1 sturb w8, [x29, #-1] b LBB2_19 LBB2_19: ldurb w8, [x29, #-1] and w0, w8, #0x1 ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function isValidSudokuSubGrid _isValidSudokuSubGrid: ; @isValidSudokuSubGrid .cfi_startproc ; %bb.0: sub sp, sp, #112 .cfi_def_cfa_offset 112 stp x29, x30, [sp, #96] ; 16-byte Folded Spill add x29, sp, #96 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-16] stur x1, [x29, #-24] stur x2, [x29, #-32] ldur x8, [x29, #-16] subs x8, x8, #0 cset w8, eq mov w9, #0 str w9, [sp, #8] ; 4-byte Folded Spill tbnz w8, #0, LBB3_5 b LBB3_1 LBB3_1: ldur x8, [x29, #-24] subs x8, x8, #9 cset w8, hs mov w9, #0 str w9, [sp, #8] ; 4-byte Folded Spill tbnz w8, #0, LBB3_5 b LBB3_2 LBB3_2: ldur x8, [x29, #-32] subs x8, x8, #4 cset w8, eq mov w9, #1 str w9, [sp, #4] ; 4-byte Folded Spill tbnz w8, #0, LBB3_4 b LBB3_3 LBB3_3: ldur x8, [x29, #-32] subs x8, x8, #9 cset w8, eq str w8, [sp, #4] ; 4-byte Folded Spill b LBB3_4 LBB3_4: ldr w8, [sp, #4] ; 4-byte Folded Reload str w8, [sp, #8] ; 4-byte Folded Spill b LBB3_5 LBB3_5: ldr w8, [sp, #8] ; 4-byte Folded Reload eor w9, w8, #0x1 ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB3_7 b LBB3_6 LBB3_6: adrp x0, l___func__.isValidSudokuSubGrid@PAGE add x0, x0, l___func__.isValidSudokuSubGrid@PAGEOFF adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF mov w2, #37 adrp x3, l_.str.12@PAGE add x3, x3, l_.str.12@PAGEOFF bl ___assert_rtn LBB3_7: b LBB3_8 LBB3_8: ldur x9, [x29, #-32] mov x8, #32 subs x8, x8, x9 cset w9, ls ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB3_10 b LBB3_9 LBB3_9: adrp x0, l___func__.isValidSudokuSubGrid@PAGE add x0, x0, l___func__.isValidSudokuSubGrid@PAGEOFF adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF mov w2, #38 adrp x3, l_.str.13@PAGE add x3, x3, l_.str.13@PAGEOFF bl ___assert_rtn LBB3_10: b LBB3_11 LBB3_11: ldur x8, [x29, #-32] subs x8, x8, #9 cset w8, eq and w10, w8, #0x1 mov w9, #2 mov w8, #3 ands w10, w10, #0x1 csel w9, w8, w9, ne ; implicit-def: $x8 mov x8, x9 sxtw x8, w8 stur x8, [x29, #-40] ldur x8, [x29, #-24] ldur x9, [x29, #-40] udiv x8, x8, x9 ldur x9, [x29, #-40] mul x8, x8, x9 str x8, [sp, #48] ldur x8, [x29, #-24] ldur x10, [x29, #-40] udiv x9, x8, x10 mul x9, x9, x10 subs x8, x8, x9 ldur x9, [x29, #-40] mul x8, x8, x9 str x8, [sp, #40] str wzr, [sp, #36] ldr x8, [sp, #48] str x8, [sp, #24] b LBB3_12 LBB3_12: ; =>This Loop Header: Depth=1 ; Child Loop BB3_14 Depth 2 ldr x8, [sp, #24] ldr x9, [sp, #48] ldur x10, [x29, #-40] add x9, x9, x10 subs x8, x8, x9 cset w8, hs tbnz w8, #0, LBB3_21 b LBB3_13 LBB3_13: ; in Loop: Header=BB3_12 Depth=1 ldr x8, [sp, #40] str x8, [sp, #16] b LBB3_14 LBB3_14: ; Parent Loop BB3_12 Depth=1 ; => This Inner Loop Header: Depth=2 ldr x8, [sp, #16] ldr x9, [sp, #40] ldur x10, [x29, #-40] add x9, x9, x10 subs x8, x8, x9 cset w8, hs tbnz w8, #0, LBB3_19 b LBB3_15 LBB3_15: ; in Loop: Header=BB3_14 Depth=2 ldur x8, [x29, #-16] ldr x9, [sp, #24] mov x10, #9 mul x9, x9, x10 add x8, x8, x9 ldr x9, [sp, #16] ldrb w9, [x8, x9] mov w8, #1 lsl w8, w8, w9 str w8, [sp, #12] ldr w8, [sp, #36] ldr w9, [sp, #12] ands w8, w8, w9 cset w8, eq tbnz w8, #0, LBB3_17 b LBB3_16 LBB3_16: mov w8, #0 and w8, w8, #0x1 and w8, w8, #0x1 sturb w8, [x29, #-1] b LBB3_22 LBB3_17: ; in Loop: Header=BB3_14 Depth=2 ldr w9, [sp, #12] ldr w8, [sp, #36] orr w8, w8, w9 str w8, [sp, #36] b LBB3_18 LBB3_18: ; in Loop: Header=BB3_14 Depth=2 ldr x8, [sp, #16] add x8, x8, #1 str x8, [sp, #16] b LBB3_14 LBB3_19: ; in Loop: Header=BB3_12 Depth=1 b LBB3_20 LBB3_20: ; in Loop: Header=BB3_12 Depth=1 ldr x8, [sp, #24] add x8, x8, #1 str x8, [sp, #24] b LBB3_12 LBB3_21: mov w8, #1 and w8, w8, #0x1 and w8, w8, #0x1 sturb w8, [x29, #-1] b LBB3_22 LBB3_22: ldurb w8, [x29, #-1] and w0, w8, #0x1 ldp x29, x30, [sp, #96] ; 16-byte Folded Reload add sp, sp, #112 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Expecting at least one command-line argument." l___func__.main: ; @__func__.main .asciz "main" l_.str.1: ; @.str.1 .asciz "1164154.c" l_.str.2: ; @.str.2 .asciz "argc >= 2 && \"Expecting at least one command-line argument.\"" .zerofill __DATA,__bss,_main.stdoutBuffer,256,0 ; @main.stdoutBuffer l_.str.3: ; @.str.3 .asciz "r" l_.str.4: ; @.str.4 .asciz "Failed to open input stream." l_.str.5: ; @.str.5 .asciz "inputStream && \"Failed to open input stream.\"" l_.str.6: ; @.str.6 .asciz "*lineBuffer == '4' || *lineBuffer == '9'" l_.str.7: ; @.str.7 .asciz "isdigit(*c)" l_.str.8: ; @.str.8 .asciz "*(c + 1) == ',' || *(c + 1) == '\\n' || !*(c + 1)" l_.str.9: ; @.str.9 .asciz "True" l_.str.10: ; @.str.10 .asciz "False" l___func__.isValidSudokuGrid: ; @__func__.isValidSudokuGrid .asciz "isValidSudokuGrid" l_.str.11: ; @.str.11 .asciz "(gridSize == 4 || gridSize == 9) && grid" l___func__.isValidSudokuSlice: ; @__func__.isValidSudokuSlice .asciz "isValidSudokuSlice" l_.str.12: ; @.str.12 .asciz "grid && (index < 9) && (gridSize == 4 || gridSize == 9)" l_.str.13: ; @.str.13 .asciz "(sizeof(unsigned) * CHAR_BIT) > gridSize" l___func__.isValidSudokuSubGrid: ; @__func__.isValidSudokuSubGrid .asciz "isValidSudokuSubGrid" .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 $432, %rsp ## imm = 0x1B0 movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -372(%rbp) movl %edi, -376(%rbp) movq %rsi, -384(%rbp) xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $2, -376(%rbp) movb %al, -425(%rbp) ## 1-byte Spill jl LBB0_2 ## %bb.1: movb $1, %al movb %al, -425(%rbp) ## 1-byte Spill jmp LBB0_2 LBB0_2: movb -425(%rbp), %al ## 1-byte Reload xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB0_4 ## %bb.3: leaq L___func__.main(%rip), %rdi leaq L_.str.1(%rip), %rsi leaq L_.str.2(%rip), %rcx movl $84, %edx callq ___assert_rtn LBB0_4: jmp LBB0_5 LBB0_5: movq ___stdoutp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq _main.stdoutBuffer(%rip), %rsi xorl %edx, %edx movl $256, %ecx ## imm = 0x100 callq _setvbuf movq -384(%rbp), %rax movq 8(%rax), %rdi leaq L_.str.3(%rip), %rsi callq _fopen movq %rax, -392(%rbp) xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpq $0, -392(%rbp) movb %al, -426(%rbp) ## 1-byte Spill je LBB0_7 ## %bb.6: movb $1, %al movb %al, -426(%rbp) ## 1-byte Spill jmp LBB0_7 LBB0_7: movb -426(%rbp), %al ## 1-byte Reload xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB0_9 ## %bb.8: leaq L___func__.main(%rip), %rdi leaq L_.str.1(%rip), %rsi leaq L_.str.5(%rip), %rcx movl $93, %edx callq ___assert_rtn LBB0_9: jmp LBB0_10 LBB0_10: leaq -272(%rbp), %rdi xorl %esi, %esi movl $256, %edx ## imm = 0x100 callq _memset LBB0_11: ## =>This Loop Header: Depth=1 ## Child Loop BB0_18 Depth 2 ## Child Loop BB0_20 Depth 3 leaq -272(%rbp), %rdi movq -392(%rbp), %rdx movl $256, %esi ## imm = 0x100 callq _fgets cmpq $0, %rax je LBB0_35 ## %bb.12: ## in Loop: Header=BB0_11 Depth=1 movsbl -272(%rbp), %ecx movb $1, %al cmpl $52, %ecx movb %al, -427(%rbp) ## 1-byte Spill je LBB0_14 ## %bb.13: ## in Loop: Header=BB0_11 Depth=1 movsbl -272(%rbp), %eax cmpl $57, %eax sete %al movb %al, -427(%rbp) ## 1-byte Spill LBB0_14: ## in Loop: Header=BB0_11 Depth=1 movb -427(%rbp), %al ## 1-byte Reload xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB0_16 ## %bb.15: leaq L___func__.main(%rip), %rdi leaq L_.str.1(%rip), %rsi leaq L_.str.6(%rip), %rcx movl $99, %edx callq ___assert_rtn LBB0_16: ## in Loop: Header=BB0_11 Depth=1 jmp LBB0_17 LBB0_17: ## in Loop: Header=BB0_11 Depth=1 leaq -368(%rbp), %rdi xorl %esi, %esi movl $81, %edx callq _memset movsbl -272(%rbp), %eax subl $48, %eax cltq movq %rax, -400(%rbp) leaq -272(%rbp), %rax addq $2, %rax movq %rax, -408(%rbp) movq $0, -416(%rbp) LBB0_18: ## Parent Loop BB0_11 Depth=1 ## => This Loop Header: Depth=2 ## Child Loop BB0_20 Depth 3 movq -416(%rbp), %rax cmpq -400(%rbp), %rax jae LBB0_34 ## %bb.19: ## in Loop: Header=BB0_18 Depth=2 movq $0, -424(%rbp) LBB0_20: ## Parent Loop BB0_11 Depth=1 ## Parent Loop BB0_18 Depth=2 ## => This Inner Loop Header: Depth=3 movq -424(%rbp), %rax cmpq -400(%rbp), %rax jae LBB0_32 ## %bb.21: ## in Loop: Header=BB0_20 Depth=3 movq -408(%rbp), %rax movsbl (%rax), %edi callq _isdigit cmpl $0, %eax setne %al xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB0_23 ## %bb.22: leaq L___func__.main(%rip), %rdi leaq L_.str.1(%rip), %rsi leaq L_.str.7(%rip), %rcx movl $110, %edx callq ___assert_rtn LBB0_23: ## in Loop: Header=BB0_20 Depth=3 jmp LBB0_24 LBB0_24: ## in Loop: Header=BB0_20 Depth=3 movq -408(%rbp), %rax movsbl 1(%rax), %ecx movb $1, %al cmpl $44, %ecx movb %al, -428(%rbp) ## 1-byte Spill je LBB0_27 ## %bb.25: ## in Loop: Header=BB0_20 Depth=3 movq -408(%rbp), %rax movsbl 1(%rax), %ecx movb $1, %al cmpl $10, %ecx movb %al, -428(%rbp) ## 1-byte Spill je LBB0_27 ## %bb.26: ## in Loop: Header=BB0_20 Depth=3 movq -408(%rbp), %rax cmpb $0, 1(%rax) setne %al xorb $-1, %al movb %al, -428(%rbp) ## 1-byte Spill LBB0_27: ## in Loop: Header=BB0_20 Depth=3 movb -428(%rbp), %al ## 1-byte Reload xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB0_29 ## %bb.28: leaq L___func__.main(%rip), %rdi leaq L_.str.1(%rip), %rsi leaq L_.str.8(%rip), %rcx movl $111, %edx callq ___assert_rtn LBB0_29: ## in Loop: Header=BB0_20 Depth=3 jmp LBB0_30 LBB0_30: ## in Loop: Header=BB0_20 Depth=3 movq -408(%rbp), %rax movsbl (%rax), %eax subl $48, %eax movb %al, %dl leaq -368(%rbp), %rax imulq $9, -416(%rbp), %rcx addq %rcx, %rax movq -424(%rbp), %rcx movb %dl, (%rax,%rcx) ## %bb.31: ## in Loop: Header=BB0_20 Depth=3 movq -424(%rbp), %rax addq $1, %rax movq %rax, -424(%rbp) movq -408(%rbp), %rax addq $2, %rax movq %rax, -408(%rbp) jmp LBB0_20 LBB0_32: ## in Loop: Header=BB0_18 Depth=2 jmp LBB0_33 LBB0_33: ## in Loop: Header=BB0_18 Depth=2 movq -416(%rbp), %rax addq $1, %rax movq %rax, -416(%rbp) jmp LBB0_18 LBB0_34: ## in Loop: Header=BB0_11 Depth=1 leaq -368(%rbp), %rdi movq -400(%rbp), %rsi callq _isValidSudokuGrid movb %al, %cl leaq L_.str.10(%rip), %rdi leaq L_.str.9(%rip), %rax testb $1, %cl cmovneq %rax, %rdi callq _puts jmp LBB0_11 LBB0_35: movl -372(%rbp), %eax movl %eax, -432(%rbp) ## 4-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_37 ## %bb.36: movl -432(%rbp), %eax ## 4-byte Reload addq $432, %rsp ## imm = 0x1B0 popq %rbp retq LBB0_37: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function isValidSudokuGrid _isValidSudokuGrid: ## @isValidSudokuGrid .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movq %rdi, -16(%rbp) movq %rsi, -24(%rbp) cmpq $4, -24(%rbp) je LBB1_2 ## %bb.1: xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpq $9, -24(%rbp) movb %al, -33(%rbp) ## 1-byte Spill jne LBB1_3 LBB1_2: cmpq $0, -16(%rbp) setne %al movb %al, -33(%rbp) ## 1-byte Spill LBB1_3: movb -33(%rbp), %al ## 1-byte Reload xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB1_5 ## %bb.4: leaq L___func__.isValidSudokuGrid(%rip), %rdi leaq L_.str.1(%rip), %rsi leaq L_.str.11(%rip), %rcx movl $64, %edx callq ___assert_rtn LBB1_5: jmp LBB1_6 LBB1_6: movq $0, -32(%rbp) LBB1_7: ## =>This Inner Loop Header: Depth=1 movq -32(%rbp), %rax cmpq -24(%rbp), %rax jae LBB1_13 ## %bb.8: ## in Loop: Header=BB1_7 Depth=1 movq -16(%rbp), %rdi movq -32(%rbp), %rsi movq -24(%rbp), %rdx callq _isValidSudokuSlice testb $1, %al jne LBB1_9 jmp LBB1_10 LBB1_9: ## in Loop: Header=BB1_7 Depth=1 movq -16(%rbp), %rdi movq -32(%rbp), %rsi movq -24(%rbp), %rdx callq _isValidSudokuSubGrid testb $1, %al jne LBB1_11 LBB1_10: movb $0, -1(%rbp) jmp LBB1_14 LBB1_11: ## in Loop: Header=BB1_7 Depth=1 jmp LBB1_12 LBB1_12: ## in Loop: Header=BB1_7 Depth=1 movq -32(%rbp), %rax addq $1, %rax movq %rax, -32(%rbp) jmp LBB1_7 LBB1_13: movb $1, -1(%rbp) LBB1_14: movb -1(%rbp), %al andb $1, %al movzbl %al, %eax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function isValidSudokuSlice _isValidSudokuSlice: ## @isValidSudokuSlice .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $64, %rsp movq %rdi, -16(%rbp) movq %rsi, -24(%rbp) movq %rdx, -32(%rbp) xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpq $0, -16(%rbp) movb %al, -57(%rbp) ## 1-byte Spill je LBB2_5 ## %bb.1: xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpq $9, -24(%rbp) movb %al, -57(%rbp) ## 1-byte Spill jae LBB2_5 ## %bb.2: movb $1, %al cmpq $4, -32(%rbp) movb %al, -58(%rbp) ## 1-byte Spill je LBB2_4 ## %bb.3: cmpq $9, -32(%rbp) sete %al movb %al, -58(%rbp) ## 1-byte Spill LBB2_4: movb -58(%rbp), %al ## 1-byte Reload movb %al, -57(%rbp) ## 1-byte Spill LBB2_5: movb -57(%rbp), %al ## 1-byte Reload xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB2_7 ## %bb.6: leaq L___func__.isValidSudokuSlice(%rip), %rdi leaq L_.str.1(%rip), %rsi leaq L_.str.12(%rip), %rcx movl $12, %edx callq ___assert_rtn LBB2_7: jmp LBB2_8 LBB2_8: movl $32, %eax cmpq -32(%rbp), %rax seta %al xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB2_10 ## %bb.9: leaq L___func__.isValidSudokuSlice(%rip), %rdi leaq L_.str.1(%rip), %rsi leaq L_.str.13(%rip), %rcx movl $13, %edx callq ___assert_rtn LBB2_10: jmp LBB2_11 LBB2_11: movl $0, -36(%rbp) movl $0, -40(%rbp) movq $0, -48(%rbp) LBB2_12: ## =>This Inner Loop Header: Depth=1 movq -48(%rbp), %rax cmpq -32(%rbp), %rax jae LBB2_18 ## %bb.13: ## in Loop: Header=BB2_12 Depth=1 movq -16(%rbp), %rax imulq $9, -24(%rbp), %rcx addq %rcx, %rax movq -48(%rbp), %rcx movzbl (%rax,%rcx), %ecx movl $1, %eax ## kill: def $cl killed $ecx shll %cl, %eax movl %eax, -52(%rbp) movq -16(%rbp), %rax imulq $9, -48(%rbp), %rcx addq %rcx, %rax movq -24(%rbp), %rcx movzbl (%rax,%rcx), %ecx movl $1, %eax ## kill: def $cl killed $ecx shll %cl, %eax movl %eax, -56(%rbp) movl -36(%rbp), %eax andl -52(%rbp), %eax cmpl $0, %eax jne LBB2_15 ## %bb.14: ## in Loop: Header=BB2_12 Depth=1 movl -40(%rbp), %eax andl -56(%rbp), %eax cmpl $0, %eax je LBB2_16 LBB2_15: movb $0, -1(%rbp) jmp LBB2_19 LBB2_16: ## in Loop: Header=BB2_12 Depth=1 movl -52(%rbp), %eax orl -36(%rbp), %eax movl %eax, -36(%rbp) movl -56(%rbp), %eax orl -40(%rbp), %eax movl %eax, -40(%rbp) ## %bb.17: ## in Loop: Header=BB2_12 Depth=1 movq -48(%rbp), %rax addq $1, %rax movq %rax, -48(%rbp) jmp LBB2_12 LBB2_18: movb $1, -1(%rbp) LBB2_19: movb -1(%rbp), %al andb $1, %al movzbl %al, %eax addq $64, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function isValidSudokuSubGrid _isValidSudokuSubGrid: ## @isValidSudokuSubGrid .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $96, %rsp movq %rdi, -16(%rbp) movq %rsi, -24(%rbp) movq %rdx, -32(%rbp) xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpq $0, -16(%rbp) movb %al, -85(%rbp) ## 1-byte Spill je LBB3_5 ## %bb.1: xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpq $9, -24(%rbp) movb %al, -85(%rbp) ## 1-byte Spill jae LBB3_5 ## %bb.2: movb $1, %al cmpq $4, -32(%rbp) movb %al, -86(%rbp) ## 1-byte Spill je LBB3_4 ## %bb.3: cmpq $9, -32(%rbp) sete %al movb %al, -86(%rbp) ## 1-byte Spill LBB3_4: movb -86(%rbp), %al ## 1-byte Reload movb %al, -85(%rbp) ## 1-byte Spill LBB3_5: movb -85(%rbp), %al ## 1-byte Reload xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB3_7 ## %bb.6: leaq L___func__.isValidSudokuSubGrid(%rip), %rdi leaq L_.str.1(%rip), %rsi leaq L_.str.12(%rip), %rcx movl $37, %edx callq ___assert_rtn LBB3_7: jmp LBB3_8 LBB3_8: movl $32, %eax cmpq -32(%rbp), %rax seta %al xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB3_10 ## %bb.9: leaq L___func__.isValidSudokuSubGrid(%rip), %rdi leaq L_.str.1(%rip), %rsi leaq L_.str.13(%rip), %rcx movl $38, %edx callq ___assert_rtn LBB3_10: jmp LBB3_11 LBB3_11: movq -32(%rbp), %rdx movl $2, %eax movl $3, %ecx cmpq $9, %rdx cmovel %ecx, %eax cltq movq %rax, -40(%rbp) movq -24(%rbp), %rax xorl %ecx, %ecx movl %ecx, %edx divq -40(%rbp) imulq -40(%rbp), %rax movq %rax, -48(%rbp) movq -24(%rbp), %rax xorl %ecx, %ecx movl %ecx, %edx divq -40(%rbp) imulq -40(%rbp), %rdx movq %rdx, -56(%rbp) movl $0, -60(%rbp) movq -48(%rbp), %rax movq %rax, -72(%rbp) LBB3_12: ## =>This Loop Header: Depth=1 ## Child Loop BB3_14 Depth 2 movq -72(%rbp), %rax movq -48(%rbp), %rcx addq -40(%rbp), %rcx cmpq %rcx, %rax jae LBB3_21 ## %bb.13: ## in Loop: Header=BB3_12 Depth=1 movq -56(%rbp), %rax movq %rax, -80(%rbp) LBB3_14: ## Parent Loop BB3_12 Depth=1 ## => This Inner Loop Header: Depth=2 movq -80(%rbp), %rax movq -56(%rbp), %rcx addq -40(%rbp), %rcx cmpq %rcx, %rax jae LBB3_19 ## %bb.15: ## in Loop: Header=BB3_14 Depth=2 movq -16(%rbp), %rax imulq $9, -72(%rbp), %rcx addq %rcx, %rax movq -80(%rbp), %rcx movzbl (%rax,%rcx), %ecx movl $1, %eax ## kill: def $cl killed $ecx shll %cl, %eax movl %eax, -84(%rbp) movl -60(%rbp), %eax andl -84(%rbp), %eax cmpl $0, %eax je LBB3_17 ## %bb.16: movb $0, -1(%rbp) jmp LBB3_22 LBB3_17: ## in Loop: Header=BB3_14 Depth=2 movl -84(%rbp), %eax orl -60(%rbp), %eax movl %eax, -60(%rbp) ## %bb.18: ## in Loop: Header=BB3_14 Depth=2 movq -80(%rbp), %rax addq $1, %rax movq %rax, -80(%rbp) jmp LBB3_14 LBB3_19: ## in Loop: Header=BB3_12 Depth=1 jmp LBB3_20 LBB3_20: ## in Loop: Header=BB3_12 Depth=1 movq -72(%rbp), %rax addq $1, %rax movq %rax, -72(%rbp) jmp LBB3_12 LBB3_21: movb $1, -1(%rbp) LBB3_22: movb -1(%rbp), %al andb $1, %al movzbl %al, %eax addq $96, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Expecting at least one command-line argument." L___func__.main: ## @__func__.main .asciz "main" L_.str.1: ## @.str.1 .asciz "1164154.c" L_.str.2: ## @.str.2 .asciz "argc >= 2 && \"Expecting at least one command-line argument.\"" .zerofill __DATA,__bss,_main.stdoutBuffer,256,4 ## @main.stdoutBuffer L_.str.3: ## @.str.3 .asciz "r" L_.str.4: ## @.str.4 .asciz "Failed to open input stream." L_.str.5: ## @.str.5 .asciz "inputStream && \"Failed to open input stream.\"" L_.str.6: ## @.str.6 .asciz "*lineBuffer == '4' || *lineBuffer == '9'" L_.str.7: ## @.str.7 .asciz "isdigit(*c)" L_.str.8: ## @.str.8 .asciz "*(c + 1) == ',' || *(c + 1) == '\\n' || !*(c + 1)" L_.str.9: ## @.str.9 .asciz "True" L_.str.10: ## @.str.10 .asciz "False" L___func__.isValidSudokuGrid: ## @__func__.isValidSudokuGrid .asciz "isValidSudokuGrid" L_.str.11: ## @.str.11 .asciz "(gridSize == 4 || gridSize == 9) && grid" L___func__.isValidSudokuSlice: ## @__func__.isValidSudokuSlice .asciz "isValidSudokuSlice" L_.str.12: ## @.str.12 .asciz "grid && (index < 9) && (gridSize == 4 || gridSize == 9)" L_.str.13: ## @.str.13 .asciz "(sizeof(unsigned) * CHAR_BIT) > gridSize" L___func__.isValidSudokuSubGrid: ## @__func__.isValidSudokuSubGrid .asciz "isValidSudokuSubGrid" .subsections_via_symbols
the_stack_data/1164154.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _bubble_sort ; -- Begin function bubble_sort .p2align 2 _bubble_sort: ; @bubble_sort .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, #24] str w1, [sp, #20] str wzr, [sp, #16] b LBB0_1 LBB0_1: ; =>This Loop Header: Depth=1 ; Child Loop BB0_3 Depth 2 ldr w8, [sp, #16] ldr w9, [sp, #20] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_10 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 str wzr, [sp, #12] b LBB0_3 LBB0_3: ; Parent Loop BB0_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #12] ldr w9, [sp, #20] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_8 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_3 Depth=2 ldr x8, [sp, #24] ldrsw x9, [sp, #12] ldr w8, [x8, x9, lsl #2] ldr x9, [sp, #24] ldr w10, [sp, #12] add w10, w10, #1 ldr w9, [x9, w10, sxtw #2] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_3 Depth=2 ldr x8, [sp, #24] ldrsw x9, [sp, #12] ldr w8, [x8, x9, lsl #2] str w8, [sp, #8] ldr x8, [sp, #24] ldr w9, [sp, #12] add w9, w9, #1 ldr w8, [x8, w9, sxtw #2] ldr x9, [sp, #24] ldrsw x10, [sp, #12] str w8, [x9, x10, lsl #2] ldr w8, [sp, #8] ldr x9, [sp, #24] ldr w10, [sp, #12] add w10, w10, #1 str w8, [x9, w10, sxtw #2] 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, #12] add w8, w8, #1 str w8, [sp, #12] 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, #16] add w8, w8, #1 str w8, [sp, #16] b LBB0_1 LBB0_10: add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] adrp x8, l___const.main.arr@PAGE add x8, x8, l___const.main.arr@PAGEOFF ldr q0, [x8] add x0, sp, #16 str q0, [sp, #16] ldr x8, [x8, #16] str x8, [sp, #32] mov w1, #5 bl _bubble_sort str wzr, [sp, #12] b LBB1_1 LBB1_1: ; =>This Inner Loop Header: Depth=1 ldrsw x8, [sp, #12] subs x8, x8, #5 cset w8, hi tbnz w8, #0, LBB1_4 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 ldrsw x9, [sp, #12] add x8, sp, #16 ldr w9, [x8, x9, lsl #2] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf b LBB1_3 LBB1_3: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB1_1 LBB1_4: ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB1_6 b LBB1_5 LBB1_5: bl ___stack_chk_fail LBB1_6: ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .section __TEXT,__const .p2align 2 ; @__const.main.arr l___const.main.arr: .long 10 ; 0xa .long 99 ; 0x63 .long 12 ; 0xc .long 13 ; 0xd .long 45 ; 0x2d .long 32 ; 0x20 .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d \t" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _bubble_sort ## -- Begin function bubble_sort .p2align 4, 0x90 _bubble_sort: ## @bubble_sort .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) movl $0, -16(%rbp) LBB0_1: ## =>This Loop Header: Depth=1 ## Child Loop BB0_3 Depth 2 movl -16(%rbp), %eax cmpl -12(%rbp), %eax jg LBB0_10 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl $0, -20(%rbp) LBB0_3: ## Parent Loop BB0_1 Depth=1 ## => This Inner Loop Header: Depth=2 movl -20(%rbp), %eax cmpl -12(%rbp), %eax jg LBB0_8 ## %bb.4: ## in Loop: Header=BB0_3 Depth=2 movq -8(%rbp), %rax movslq -20(%rbp), %rcx movl (%rax,%rcx,4), %eax movq -8(%rbp), %rcx movl -20(%rbp), %edx addl $1, %edx movslq %edx, %rdx cmpl (%rcx,%rdx,4), %eax jle LBB0_6 ## %bb.5: ## in Loop: Header=BB0_3 Depth=2 movq -8(%rbp), %rax movslq -20(%rbp), %rcx movl (%rax,%rcx,4), %eax movl %eax, -24(%rbp) movq -8(%rbp), %rax movl -20(%rbp), %ecx addl $1, %ecx movslq %ecx, %rcx movl (%rax,%rcx,4), %edx movq -8(%rbp), %rax movslq -20(%rbp), %rcx movl %edx, (%rax,%rcx,4) movl -24(%rbp), %edx movq -8(%rbp), %rax movl -20(%rbp), %ecx addl $1, %ecx movslq %ecx, %rcx movl %edx, (%rax,%rcx,4) LBB0_6: ## in Loop: Header=BB0_3 Depth=2 jmp LBB0_7 LBB0_7: ## in Loop: Header=BB0_3 Depth=2 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB0_3 LBB0_8: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_9 LBB0_9: ## in Loop: Header=BB0_1 Depth=1 movl -16(%rbp), %eax addl $1, %eax movl %eax, -16(%rbp) jmp LBB0_1 LBB0_10: 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 movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movq l___const.main.arr(%rip), %rax movq %rax, -32(%rbp) movq l___const.main.arr+8(%rip), %rax movq %rax, -24(%rbp) movq l___const.main.arr+16(%rip), %rax movq %rax, -16(%rbp) leaq -32(%rbp), %rdi movl $5, %esi callq _bubble_sort movl $0, -36(%rbp) LBB1_1: ## =>This Inner Loop Header: Depth=1 movslq -36(%rbp), %rax cmpq $5, %rax ja LBB1_4 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 movslq -36(%rbp), %rax movl -32(%rbp,%rax,4), %esi leaq L_.str(%rip), %rdi movb $0, %al callq _printf ## %bb.3: ## in Loop: Header=BB1_1 Depth=1 movl -36(%rbp), %eax addl $1, %eax movl %eax, -36(%rbp) jmp LBB1_1 LBB1_4: movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB1_6 ## %bb.5: addq $48, %rsp popq %rbp retq LBB1_6: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__const .p2align 4 ## @__const.main.arr l___const.main.arr: .long 10 ## 0xa .long 99 ## 0x63 .long 12 ## 0xc .long 13 ## 0xd .long 45 ## 0x2d .long 32 ## 0x20 .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d \t" .subsections_via_symbols
the_stack_data/47001.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _t_fun ; -- Begin function t_fun .p2align 2 _t_fun: ; @t_fun .cfi_startproc ; %bb.0: sub sp, sp, #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, _B@PAGE add x0, x0, _B@PAGEOFF str x0, [sp, #16] ; 8-byte Folded Spill bl _pthread_mutex_lock adrp x0, _A@PAGE add x0, x0, _A@PAGEOFF str x0, [sp, #8] ; 8-byte Folded Spill bl _pthread_mutex_lock ldr x0, [sp, #8] ; 8-byte Folded Reload adrp x9, _g@PAGE str x9, [sp] ; 8-byte Folded Spill mov w8, #1 str w8, [x9, _g@PAGEOFF] bl _pthread_mutex_unlock ldr x0, [sp, #8] ; 8-byte Folded Reload bl _pthread_mutex_lock ldr x9, [sp] ; 8-byte Folded Reload ldr x0, [sp, #8] ; 8-byte Folded Reload mov w8, #2 str w8, [x9, _g@PAGEOFF] bl _pthread_mutex_unlock ldr x0, [sp, #16] ; 8-byte Folded Reload bl _pthread_mutex_unlock mov x0, #0 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 stur wzr, [x29, #-4] mov x0, sp mov x3, #0 mov x1, x3 adrp x2, _t_fun@PAGE add x2, x2, _t_fun@PAGEOFF bl _pthread_create adrp x0, _B@PAGE add x0, x0, _B@PAGEOFF bl _pthread_mutex_lock adrp x0, _A@PAGE add x0, x0, _A@PAGEOFF bl _pthread_mutex_lock adrp x8, _g@PAGE ldr w8, [x8, _g@PAGEOFF] subs w8, w8, #2 cset w9, ne ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: adrp x0, l___func__.main@PAGE add x0, x0, l___func__.main@PAGEOFF adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF mov w2, #26 adrp x3, l_.str.1@PAGE add x3, x3, l_.str.1@PAGEOFF bl ___assert_rtn LBB1_2: b LBB1_3 LBB1_3: adrp x0, _A@PAGE add x0, x0, _A@PAGEOFF bl _pthread_mutex_unlock adrp x0, _B@PAGE add x0, x0, _B@PAGEOFF bl _pthread_mutex_unlock mov w0, #0 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .section __DATA,__data .globl _g ; @g .p2align 2 _g: .long 2 ; 0x2 .globl _A ; @A .p2align 3 _A: .quad 850045863 ; 0x32aaaba7 .space 56 .globl _B ; @B .p2align 3 _B: .quad 850045863 ; 0x32aaaba7 .space 56 .section __TEXT,__cstring,cstring_literals l___func__.main: ; @__func__.main .asciz "main" l_.str: ; @.str .asciz "212642716.c" l_.str.1: ; @.str.1 .asciz "g == 2" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _t_fun ## -- Begin function t_fun .p2align 4, 0x90 _t_fun: ## @t_fun .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) leaq _B(%rip), %rdi callq _pthread_mutex_lock leaq _A(%rip), %rdi callq _pthread_mutex_lock movl $1, _g(%rip) leaq _A(%rip), %rdi callq _pthread_mutex_unlock leaq _A(%rip), %rdi callq _pthread_mutex_lock movl $2, _g(%rip) leaq _A(%rip), %rdi callq _pthread_mutex_unlock leaq _B(%rip), %rdi callq _pthread_mutex_unlock xorl %eax, %eax ## kill: def $rax killed $eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) leaq -16(%rbp), %rdi xorl %eax, %eax movl %eax, %ecx leaq _t_fun(%rip), %rdx movq %rcx, %rsi callq _pthread_create leaq _B(%rip), %rdi callq _pthread_mutex_lock leaq _A(%rip), %rdi callq _pthread_mutex_lock cmpl $2, _g(%rip) sete %al xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB1_2 ## %bb.1: leaq L___func__.main(%rip), %rdi leaq L_.str(%rip), %rsi leaq L_.str.1(%rip), %rcx movl $26, %edx callq ___assert_rtn LBB1_2: jmp LBB1_3 LBB1_3: leaq _A(%rip), %rdi callq _pthread_mutex_unlock leaq _B(%rip), %rdi callq _pthread_mutex_unlock xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __DATA,__data .globl _g ## @g .p2align 2 _g: .long 2 ## 0x2 .globl _A ## @A .p2align 3 _A: .quad 850045863 ## 0x32aaaba7 .space 56 .globl _B ## @B .p2align 3 _B: .quad 850045863 ## 0x32aaaba7 .space 56 .section __TEXT,__cstring,cstring_literals L___func__.main: ## @__func__.main .asciz "main" L_.str: ## @.str .asciz "212642716.c" L_.str.1: ## @.str.1 .asciz "g == 2" .subsections_via_symbols
the_stack_data/212642716.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #0 stur w8, [x29, #-16] ; 4-byte Folded Spill stur wzr, [x29, #-4] mov w8, #10 stur w8, [x29, #-8] mov w8, #7 stur w8, [x29, #-12] ldur w8, [x29, #-8] ; implicit-def: $x11 mov x11, x8 ldur w9, [x29, #-12] ; implicit-def: $x8 mov x8, x9 ldur w9, [x29, #-8] ldur w10, [x29, #-12] and w10, w9, w10 mov x9, sp str x11, [x9] str x8, [x9, #8] ; implicit-def: $x8 mov x8, x10 str x8, [x9, #16] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldur w0, [x29, #-16] ; 4-byte Folded Reload ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d and %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 $10, -8(%rbp) movl $7, -12(%rbp) movl -8(%rbp), %esi movl -12(%rbp), %edx movl -8(%rbp), %ecx andl -12(%rbp), %ecx leaq L_.str(%rip), %rdi movb $0, %al callq _printf xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d and %d = %d\n" .subsections_via_symbols
the_stack_data/15761442.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _ft_putchar ; -- Begin function ft_putchar .p2align 2 _ft_putchar: ; @ft_putchar .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 sub x1, x29, #1 sturb w0, [x29, #-1] mov w0, #1 mov x2, #1 bl _write ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _ft_print_comb ; -- Begin function ft_print_comb .p2align 2 _ft_print_comb: ; @ft_print_comb .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, #48 sturb w8, [x29, #-1] b LBB1_1 LBB1_1: ; =>This Loop Header: Depth=1 ; Child Loop BB1_3 Depth 2 ; Child Loop BB1_5 Depth 3 ldursb w8, [x29, #-1] subs w8, w8, #57 cset w8, gt tbnz w8, #0, LBB1_13 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 ldursb w8, [x29, #-1] add w8, w8, #1 sturb w8, [x29, #-2] b LBB1_3 LBB1_3: ; Parent Loop BB1_1 Depth=1 ; => This Loop Header: Depth=2 ; Child Loop BB1_5 Depth 3 ldursb w8, [x29, #-2] subs w8, w8, #57 cset w8, gt tbnz w8, #0, LBB1_12 b LBB1_4 LBB1_4: ; in Loop: Header=BB1_3 Depth=2 ldursb w8, [x29, #-2] add w8, w8, #1 sturb w8, [x29, #-3] b LBB1_5 LBB1_5: ; Parent Loop BB1_1 Depth=1 ; Parent Loop BB1_3 Depth=2 ; => This Inner Loop Header: Depth=3 ldursb w8, [x29, #-3] subs w8, w8, #57 cset w8, gt tbnz w8, #0, LBB1_11 b LBB1_6 LBB1_6: ; in Loop: Header=BB1_5 Depth=3 ldursb w0, [x29, #-1] bl _ft_putchar ldursb w0, [x29, #-2] bl _ft_putchar ldursb w0, [x29, #-3] bl _ft_putchar ldursb w8, [x29, #-1] subs w8, w8, #55 cset w8, ne tbnz w8, #0, LBB1_9 b LBB1_7 LBB1_7: ; in Loop: Header=BB1_5 Depth=3 ldursb w8, [x29, #-2] subs w8, w8, #56 cset w8, ne tbnz w8, #0, LBB1_9 b LBB1_8 LBB1_8: ; in Loop: Header=BB1_5 Depth=3 ldursb w8, [x29, #-3] subs w8, w8, #57 cset w8, eq tbnz w8, #0, LBB1_10 b LBB1_9 LBB1_9: ; in Loop: Header=BB1_5 Depth=3 mov w0, #44 bl _ft_putchar mov w0, #32 bl _ft_putchar b LBB1_10 LBB1_10: ; in Loop: Header=BB1_5 Depth=3 ldurb w8, [x29, #-3] add w8, w8, #1 sturb w8, [x29, #-3] b LBB1_5 LBB1_11: ; in Loop: Header=BB1_3 Depth=2 ldurb w8, [x29, #-2] add w8, w8, #1 sturb w8, [x29, #-2] b LBB1_3 LBB1_12: ; in Loop: Header=BB1_1 Depth=1 ldurb w8, [x29, #-1] add w8, w8, #1 sturb w8, [x29, #-1] b LBB1_1 LBB1_13: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #0 str w8, [sp, #8] ; 4-byte Folded Spill stur wzr, [x29, #-4] bl _ft_print_comb ldr w0, [sp, #8] ; 4-byte Folded Reload ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _ft_putchar ## -- Begin function ft_putchar .p2align 4, 0x90 _ft_putchar: ## @ft_putchar .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movb %dil, %al movb %al, -1(%rbp) movl $1, %edi leaq -1(%rbp), %rsi movl $1, %edx callq _write addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _ft_print_comb ## -- Begin function ft_print_comb .p2align 4, 0x90 _ft_print_comb: ## @ft_print_comb .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movb $48, -1(%rbp) LBB1_1: ## =>This Loop Header: Depth=1 ## Child Loop BB1_3 Depth 2 ## Child Loop BB1_5 Depth 3 movsbl -1(%rbp), %eax cmpl $57, %eax jg LBB1_13 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 movsbl -1(%rbp), %eax addl $1, %eax ## kill: def $al killed $al killed $eax movb %al, -2(%rbp) LBB1_3: ## Parent Loop BB1_1 Depth=1 ## => This Loop Header: Depth=2 ## Child Loop BB1_5 Depth 3 movsbl -2(%rbp), %eax cmpl $57, %eax jg LBB1_12 ## %bb.4: ## in Loop: Header=BB1_3 Depth=2 movsbl -2(%rbp), %eax addl $1, %eax ## kill: def $al killed $al killed $eax movb %al, -3(%rbp) LBB1_5: ## Parent Loop BB1_1 Depth=1 ## Parent Loop BB1_3 Depth=2 ## => This Inner Loop Header: Depth=3 movsbl -3(%rbp), %eax cmpl $57, %eax jg LBB1_11 ## %bb.6: ## in Loop: Header=BB1_5 Depth=3 movsbl -1(%rbp), %edi callq _ft_putchar movsbl -2(%rbp), %edi callq _ft_putchar movsbl -3(%rbp), %edi callq _ft_putchar movsbl -1(%rbp), %eax cmpl $55, %eax jne LBB1_9 ## %bb.7: ## in Loop: Header=BB1_5 Depth=3 movsbl -2(%rbp), %eax cmpl $56, %eax jne LBB1_9 ## %bb.8: ## in Loop: Header=BB1_5 Depth=3 movsbl -3(%rbp), %eax cmpl $57, %eax je LBB1_10 LBB1_9: ## in Loop: Header=BB1_5 Depth=3 movl $44, %edi callq _ft_putchar movl $32, %edi callq _ft_putchar LBB1_10: ## in Loop: Header=BB1_5 Depth=3 movb -3(%rbp), %al addb $1, %al movb %al, -3(%rbp) jmp LBB1_5 LBB1_11: ## in Loop: Header=BB1_3 Depth=2 movb -2(%rbp), %al addb $1, %al movb %al, -2(%rbp) jmp LBB1_3 LBB1_12: ## in Loop: Header=BB1_1 Depth=1 movb -1(%rbp), %al addb $1, %al movb %al, -1(%rbp) jmp LBB1_1 LBB1_13: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) callq _ft_print_comb xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/215905.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _strncmp ; -- Begin function strncmp .p2align 2 _strncmp: ; @strncmp .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #16] str x1, [sp, #8] str x2, [sp] ldr x8, [sp] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: stur wzr, [x29, #-4] b LBB0_10 LBB0_2: b LBB0_3 LBB0_3: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #16] ldrsb w8, [x8] ldr x9, [sp, #8] add x10, x9, #1 str x10, [sp, #8] ldrsb w9, [x9] subs w8, w8, w9 cset w8, eq tbnz w8, #0, LBB0_5 b LBB0_4 LBB0_4: ldr x8, [sp, #16] ldrb w8, [x8] ldr x9, [sp, #8] subs x10, x9, #1 str x10, [sp, #8] ldurb w9, [x9, #-1] subs w8, w8, w9 stur w8, [x29, #-4] b LBB0_10 LBB0_5: ; in Loop: Header=BB0_3 Depth=1 ldr x8, [sp, #16] add x9, x8, #1 str x9, [sp, #16] ldrsb w8, [x8] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_7 b LBB0_6 LBB0_6: b LBB0_9 LBB0_7: ; in Loop: Header=BB0_3 Depth=1 b LBB0_8 LBB0_8: ; in Loop: Header=BB0_3 Depth=1 mov w0, #42 bl ___mark ldr x8, [sp] subs x8, x8, #1 str x8, [sp] subs x8, x8, #0 cset w8, ne and w8, w8, #0x1 ands w8, w0, w8 cset w8, ne tbnz w8, #0, LBB0_3 b LBB0_9 LBB0_9: stur wzr, [x29, #-4] b LBB0_10 LBB0_10: ldur w0, [x29, #-4] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _strncmp ## -- Begin function strncmp .p2align 4, 0x90 _strncmp: ## @strncmp .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -16(%rbp) movq %rsi, -24(%rbp) movq %rdx, -32(%rbp) cmpq $0, -32(%rbp) jne LBB0_2 ## %bb.1: movl $0, -4(%rbp) jmp LBB0_10 LBB0_2: jmp LBB0_3 LBB0_3: ## =>This Inner Loop Header: Depth=1 movq -16(%rbp), %rax movsbl (%rax), %eax movq -24(%rbp), %rcx movq %rcx, %rdx addq $1, %rdx movq %rdx, -24(%rbp) movsbl (%rcx), %ecx cmpl %ecx, %eax je LBB0_5 ## %bb.4: movq -16(%rbp), %rax movzbl (%rax), %eax movq -24(%rbp), %rcx movq %rcx, %rdx addq $-1, %rdx movq %rdx, -24(%rbp) movzbl -1(%rcx), %ecx subl %ecx, %eax movl %eax, -4(%rbp) jmp LBB0_10 LBB0_5: ## in Loop: Header=BB0_3 Depth=1 movq -16(%rbp), %rax movq %rax, %rcx addq $1, %rcx movq %rcx, -16(%rbp) movsbl (%rax), %eax cmpl $0, %eax jne LBB0_7 ## %bb.6: jmp LBB0_9 LBB0_7: ## in Loop: Header=BB0_3 Depth=1 jmp LBB0_8 LBB0_8: ## in Loop: Header=BB0_3 Depth=1 movl $42, %edi callq ___mark movq -32(%rbp), %rcx addq $-1, %rcx movq %rcx, -32(%rbp) cmpq $0, %rcx setne %cl andb $1, %cl movzbl %cl, %ecx andl %ecx, %eax cmpl $0, %eax jne LBB0_3 LBB0_9: movl $0, -4(%rbp) LBB0_10: movl -4(%rbp), %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/150139513.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _getPositionThroughBinarySearch ; -- Begin function getPositionThroughBinarySearch .p2align 2 _getPositionThroughBinarySearch: ; @getPositionThroughBinarySearch .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] ldur w9, [x29, #-20] ; kill: def $x9 killed $w9 ldr w8, [x8, x9, lsl #2] str w8, [sp, #32] ldur x8, [x29, #-16] ldur w9, [x29, #-24] ; kill: def $x9 killed $w9 ldr w8, [x8, x9, lsl #2] str w8, [sp, #28] mov x0, #1 mov x1, #4 bl _calloc str x0, [sp, #16] ldur w8, [x29, #-28] ldr w9, [sp, #32] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: ldur w8, [x29, #-20] add w8, w8, #1 ldr x9, [sp, #16] str w8, [x9] ldr x8, [sp, #16] stur x8, [x29, #-8] b LBB0_8 LBB0_2: ldur w8, [x29, #-28] ldr w9, [sp, #32] subs w8, w8, w9 cset w8, ls tbnz w8, #0, LBB0_7 b LBB0_3 LBB0_3: ldur w8, [x29, #-28] ldr w9, [sp, #28] subs w8, w8, w9 cset w8, hi tbnz w8, #0, LBB0_7 b LBB0_4 LBB0_4: ldur w8, [x29, #-20] ldur w9, [x29, #-24] add w8, w8, w9 mov w9, #2 udiv w8, w8, w9 str w8, [sp, #12] ldur x8, [x29, #-16] ldr w9, [sp, #12] ; kill: def $x9 killed $w9 ldr w8, [x8, x9, lsl #2] str w8, [sp, #8] ldur w8, [x29, #-28] ldr w9, [sp, #8] subs w8, w8, w9 cset w8, hi tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: ldur x0, [x29, #-16] ldur w1, [x29, #-20] ldr w2, [sp, #12] ldur w3, [x29, #-28] bl _getPositionThroughBinarySearch stur x0, [x29, #-8] b LBB0_8 LBB0_6: ldur x0, [x29, #-16] ldr w8, [sp, #12] add w1, w8, #1 ldur w2, [x29, #-24] ldur w3, [x29, #-28] bl _getPositionThroughBinarySearch stur x0, [x29, #-8] b LBB0_8 LBB0_7: ; kill: def $x8 killed $xzr stur xzr, [x29, #-8] b LBB0_8 LBB0_8: ldur x0, [x29, #-8] ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill .cfi_def_cfa_offset 16 mov x29, sp .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 sub sp, sp, #112 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] stur wzr, [x29, #-12] stur wzr, [x29, #-28] sub sp, sp, #16 mov x9, sp sub x8, x29, #16 str x8, [x9] sub x8, x29, #20 str x8, [x9, #8] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _scanf add sp, sp, #16 b LBB1_1 LBB1_1: ; =>This Loop Header: Depth=1 ; Child Loop BB1_5 Depth 2 ; Child Loop BB1_7 Depth 3 ; Child Loop BB1_15 Depth 2 ldur w8, [x29, #-16] subs w8, w8, #0 cset w8, ne mov w9, #0 stur w9, [x29, #-76] ; 4-byte Folded Spill tbnz w8, #0, LBB1_3 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 ldur w8, [x29, #-20] subs w8, w8, #0 cset w8, eq stur w8, [x29, #-76] ; 4-byte Folded Spill b LBB1_3 LBB1_3: ; in Loop: Header=BB1_1 Depth=1 ldur w8, [x29, #-76] ; 4-byte Folded Reload tbnz w8, #0, LBB1_22 b LBB1_4 LBB1_4: ; in Loop: Header=BB1_1 Depth=1 ldur w8, [x29, #-28] mov w9, #1 stur w9, [x29, #-80] ; 4-byte Folded Spill add w8, w8, #1 stur w8, [x29, #-28] ldur w9, [x29, #-28] ; implicit-def: $x8 mov x8, x9 sub sp, sp, #16 mov x9, sp str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf add sp, sp, #16 ldur w8, [x29, #-16] ; kill: def $x8 killed $w8 stur x8, [x29, #-96] ; 8-byte Folded Spill mov x9, sp stur x9, [x29, #-40] lsl x8, x8, #2 add x8, x8, #15 and x9, x8, #0xfffffffffffffff0 stur x9, [x29, #-104] ; 8-byte Folded Spill adrp x16, ___chkstk_darwin@GOTPAGE ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF] blr x16 ldur x10, [x29, #-104] ; 8-byte Folded Reload ldur x9, [x29, #-96] ; 8-byte Folded Reload mov x8, sp subs x8, x8, x10 mov sp, x8 stur x8, [x29, #-88] ; 8-byte Folded Spill stur x9, [x29, #-48] sub sp, sp, #16 mov x9, sp str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _scanf ldur w8, [x29, #-80] ; 4-byte Folded Reload add sp, sp, #16 stur w8, [x29, #-24] b LBB1_5 LBB1_5: ; Parent Loop BB1_1 Depth=1 ; => This Loop Header: Depth=2 ; Child Loop BB1_7 Depth 3 ldur w8, [x29, #-24] ldur w9, [x29, #-16] subs w8, w8, w9 cset w8, hs tbnz w8, #0, LBB1_14 b LBB1_6 LBB1_6: ; in Loop: Header=BB1_5 Depth=2 sub sp, sp, #16 mov x9, sp sub x8, x29, #52 str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _scanf add sp, sp, #16 ldur w8, [x29, #-24] subs w8, w8, #1 stur w8, [x29, #-56] b LBB1_7 LBB1_7: ; Parent Loop BB1_1 Depth=1 ; Parent Loop BB1_5 Depth=2 ; => This Inner Loop Header: Depth=3 ldur w8, [x29, #-56] subs w8, w8, #0 cset w8, lt mov w9, #0 stur w9, [x29, #-108] ; 4-byte Folded Spill tbnz w8, #0, LBB1_9 b LBB1_8 LBB1_8: ; in Loop: Header=BB1_7 Depth=3 ldur x8, [x29, #-88] ; 8-byte Folded Reload ldursw x9, [x29, #-56] ldr w8, [x8, x9, lsl #2] ldur w9, [x29, #-52] subs w8, w8, w9 cset w8, hi stur w8, [x29, #-108] ; 4-byte Folded Spill b LBB1_9 LBB1_9: ; in Loop: Header=BB1_7 Depth=3 ldur w8, [x29, #-108] ; 4-byte Folded Reload tbz w8, #0, LBB1_12 b LBB1_10 LBB1_10: ; in Loop: Header=BB1_7 Depth=3 ldur x9, [x29, #-88] ; 8-byte Folded Reload ldursw x8, [x29, #-56] ldr w8, [x9, x8, lsl #2] ldur w10, [x29, #-56] add w10, w10, #1 str w8, [x9, w10, sxtw #2] b LBB1_11 LBB1_11: ; in Loop: Header=BB1_7 Depth=3 ldur w8, [x29, #-56] subs w8, w8, #1 stur w8, [x29, #-56] b LBB1_7 LBB1_12: ; in Loop: Header=BB1_5 Depth=2 ldur x9, [x29, #-88] ; 8-byte Folded Reload ldur w8, [x29, #-52] ldur w10, [x29, #-56] add w10, w10, #1 str w8, [x9, w10, sxtw #2] b LBB1_13 LBB1_13: ; in Loop: Header=BB1_5 Depth=2 ldur w8, [x29, #-24] add w8, w8, #1 stur w8, [x29, #-24] b LBB1_5 LBB1_14: ; in Loop: Header=BB1_1 Depth=1 stur wzr, [x29, #-24] b LBB1_15 LBB1_15: ; Parent Loop BB1_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldur w8, [x29, #-24] ldur w9, [x29, #-20] subs w8, w8, w9 cset w8, hs tbnz w8, #0, LBB1_21 b LBB1_16 LBB1_16: ; in Loop: Header=BB1_15 Depth=2 sub sp, sp, #16 mov x9, sp sub x8, x29, #60 str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _scanf ldur x0, [x29, #-88] ; 8-byte Folded Reload add sp, sp, #16 ldur w8, [x29, #-16] subs w2, w8, #1 ldur w3, [x29, #-60] mov w1, #0 bl _getPositionThroughBinarySearch stur x0, [x29, #-72] ldur x8, [x29, #-72] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB1_18 b LBB1_17 LBB1_17: ; in Loop: Header=BB1_15 Depth=2 ldur w9, [x29, #-60] ; 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 b LBB1_19 LBB1_18: ; in Loop: Header=BB1_15 Depth=2 ldur w8, [x29, #-60] ; implicit-def: $x10 mov x10, x8 ldur x8, [x29, #-72] ldr w9, [x8] ; implicit-def: $x8 mov x8, x9 sub sp, sp, #16 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 add sp, sp, #16 b LBB1_19 LBB1_19: ; in Loop: Header=BB1_15 Depth=2 ldur x0, [x29, #-72] bl _free b LBB1_20 LBB1_20: ; in Loop: Header=BB1_15 Depth=2 ldur w8, [x29, #-24] add w8, w8, #1 stur w8, [x29, #-24] b LBB1_15 LBB1_21: ; in Loop: Header=BB1_1 Depth=1 sub sp, sp, #16 mov x9, sp sub x8, x29, #16 str x8, [x9] sub x8, x29, #20 str x8, [x9, #8] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _scanf add sp, sp, #16 ldur x8, [x29, #-40] mov sp, x8 b LBB1_1 LBB1_22: 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_24 b LBB1_23 LBB1_23: bl ___stack_chk_fail LBB1_24: mov w0, #0 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 "%u %u" l_.str.1: ; @.str.1 .asciz "CASE# %u:\n" l_.str.2: ; @.str.2 .asciz "%u" l_.str.3: ; @.str.3 .asciz "%u not found\n" l_.str.4: ; @.str.4 .asciz "%u found at %u\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _getPositionThroughBinarySearch ## -- Begin function getPositionThroughBinarySearch .p2align 4, 0x90 _getPositionThroughBinarySearch: ## @getPositionThroughBinarySearch .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 movl -20(%rbp), %ecx ## kill: def $rcx killed $ecx movl (%rax,%rcx,4), %eax movl %eax, -32(%rbp) movq -16(%rbp), %rax movl -24(%rbp), %ecx ## kill: def $rcx killed $ecx movl (%rax,%rcx,4), %eax movl %eax, -36(%rbp) movl $1, %edi movl $4, %esi callq _calloc movq %rax, -48(%rbp) movl -28(%rbp), %eax cmpl -32(%rbp), %eax jne LBB0_2 ## %bb.1: movl -20(%rbp), %ecx addl $1, %ecx movq -48(%rbp), %rax movl %ecx, (%rax) movq -48(%rbp), %rax movq %rax, -8(%rbp) jmp LBB0_8 LBB0_2: movl -28(%rbp), %eax cmpl -32(%rbp), %eax jbe LBB0_7 ## %bb.3: movl -28(%rbp), %eax cmpl -36(%rbp), %eax ja LBB0_7 ## %bb.4: movl -20(%rbp), %eax addl -24(%rbp), %eax shrl $1, %eax movl %eax, -52(%rbp) movq -16(%rbp), %rax movl -52(%rbp), %ecx ## kill: def $rcx killed $ecx movl (%rax,%rcx,4), %eax movl %eax, -56(%rbp) movl -28(%rbp), %eax cmpl -56(%rbp), %eax ja LBB0_6 ## %bb.5: movq -16(%rbp), %rdi movl -20(%rbp), %esi movl -52(%rbp), %edx movl -28(%rbp), %ecx callq _getPositionThroughBinarySearch movq %rax, -8(%rbp) jmp LBB0_8 LBB0_6: movq -16(%rbp), %rdi movl -52(%rbp), %esi addl $1, %esi movl -24(%rbp), %edx movl -28(%rbp), %ecx callq _getPositionThroughBinarySearch movq %rax, -8(%rbp) jmp LBB0_8 LBB0_7: movq $0, -8(%rbp) LBB0_8: movq -8(%rbp), %rax addq $64, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $112, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -12(%rbp) movl $0, -28(%rbp) leaq L_.str(%rip), %rdi leaq -16(%rbp), %rsi leaq -20(%rbp), %rdx movb $0, %al callq _scanf LBB1_1: ## =>This Loop Header: Depth=1 ## Child Loop BB1_5 Depth 2 ## Child Loop BB1_7 Depth 3 ## Child Loop BB1_15 Depth 2 xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $0, -16(%rbp) movb %al, -73(%rbp) ## 1-byte Spill jne LBB1_3 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 cmpl $0, -20(%rbp) sete %al movb %al, -73(%rbp) ## 1-byte Spill LBB1_3: ## in Loop: Header=BB1_1 Depth=1 movb -73(%rbp), %al ## 1-byte Reload xorb $-1, %al testb $1, %al jne LBB1_4 jmp LBB1_22 LBB1_4: ## in Loop: Header=BB1_1 Depth=1 movl -28(%rbp), %eax incl %eax movl %eax, -28(%rbp) movl -28(%rbp), %esi leaq L_.str.1(%rip), %rdi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _printf movl -16(%rbp), %eax ## kill: def $rax killed $eax movq %rax, -96(%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 -96(%rbp), %rax ## 8-byte Reload movq %rsp, %rsi movq %rsi, -88(%rbp) ## 8-byte Spill movq %rax, -48(%rbp) leaq L_.str.2(%rip), %rdi movb $0, %al callq _scanf movl $1, -24(%rbp) LBB1_5: ## Parent Loop BB1_1 Depth=1 ## => This Loop Header: Depth=2 ## Child Loop BB1_7 Depth 3 movl -24(%rbp), %eax cmpl -16(%rbp), %eax jae LBB1_14 ## %bb.6: ## in Loop: Header=BB1_5 Depth=2 leaq L_.str.2(%rip), %rdi leaq -52(%rbp), %rsi movb $0, %al callq _scanf movl -24(%rbp), %eax subl $1, %eax movl %eax, -56(%rbp) LBB1_7: ## Parent Loop BB1_1 Depth=1 ## Parent Loop BB1_5 Depth=2 ## => This Inner Loop Header: Depth=3 xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $0, -56(%rbp) movb %al, -97(%rbp) ## 1-byte Spill jl LBB1_9 ## %bb.8: ## in Loop: Header=BB1_7 Depth=3 movq -88(%rbp), %rax ## 8-byte Reload movslq -56(%rbp), %rcx movl (%rax,%rcx,4), %eax cmpl -52(%rbp), %eax seta %al movb %al, -97(%rbp) ## 1-byte Spill LBB1_9: ## in Loop: Header=BB1_7 Depth=3 movb -97(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB1_10 jmp LBB1_12 LBB1_10: ## in Loop: Header=BB1_7 Depth=3 movq -88(%rbp), %rax ## 8-byte Reload movslq -56(%rbp), %rcx movl (%rax,%rcx,4), %edx movl -56(%rbp), %ecx addl $1, %ecx movslq %ecx, %rcx movl %edx, (%rax,%rcx,4) ## %bb.11: ## in Loop: Header=BB1_7 Depth=3 movl -56(%rbp), %eax addl $-1, %eax movl %eax, -56(%rbp) jmp LBB1_7 LBB1_12: ## in Loop: Header=BB1_5 Depth=2 movq -88(%rbp), %rax ## 8-byte Reload movl -52(%rbp), %edx movl -56(%rbp), %ecx addl $1, %ecx movslq %ecx, %rcx movl %edx, (%rax,%rcx,4) ## %bb.13: ## in Loop: Header=BB1_5 Depth=2 movl -24(%rbp), %eax addl $1, %eax movl %eax, -24(%rbp) jmp LBB1_5 LBB1_14: ## in Loop: Header=BB1_1 Depth=1 movl $0, -24(%rbp) LBB1_15: ## Parent Loop BB1_1 Depth=1 ## => This Inner Loop Header: Depth=2 movl -24(%rbp), %eax cmpl -20(%rbp), %eax jae LBB1_21 ## %bb.16: ## in Loop: Header=BB1_15 Depth=2 leaq L_.str.2(%rip), %rdi leaq -60(%rbp), %rsi movb $0, %al callq _scanf movq -88(%rbp), %rdi ## 8-byte Reload movl -16(%rbp), %edx subl $1, %edx movl -60(%rbp), %ecx xorl %esi, %esi callq _getPositionThroughBinarySearch movq %rax, -72(%rbp) cmpq $0, -72(%rbp) jne LBB1_18 ## %bb.17: ## in Loop: Header=BB1_15 Depth=2 movl -60(%rbp), %esi leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf jmp LBB1_19 LBB1_18: ## in Loop: Header=BB1_15 Depth=2 movl -60(%rbp), %esi movq -72(%rbp), %rax movl (%rax), %edx leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf LBB1_19: ## in Loop: Header=BB1_15 Depth=2 movq -72(%rbp), %rdi callq _free ## %bb.20: ## in Loop: Header=BB1_15 Depth=2 movl -24(%rbp), %eax addl $1, %eax movl %eax, -24(%rbp) jmp LBB1_15 LBB1_21: ## in Loop: Header=BB1_1 Depth=1 leaq L_.str(%rip), %rdi leaq -16(%rbp), %rsi leaq -20(%rbp), %rdx movb $0, %al callq _scanf movq -40(%rbp), %rax movq %rax, %rsp jmp LBB1_1 LBB1_22: movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB1_24 ## %bb.23: xorl %eax, %eax movq %rbp, %rsp popq %rbp retq LBB1_24: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%u %u" L_.str.1: ## @.str.1 .asciz "CASE# %u:\n" L_.str.2: ## @.str.2 .asciz "%u" L_.str.3: ## @.str.3 .asciz "%u not found\n" L_.str.4: ## @.str.4 .asciz "%u found at %u\n" .subsections_via_symbols
the_stack_data/124548.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/31386805.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 adrp x9, _str@GOTPAGE ldr x9, [x9, _str@GOTPAGEOFF] str wzr, [sp, #12] adrp x8, l_.str@PAGE add x8, x8, l_.str@PAGEOFF str x8, [x9] adrp x8, l_.str.1@PAGE add x8, x8, l_.str.1@PAGEOFF str x8, [x9, #8] adrp x8, l_.str.2@PAGE add x8, x8, l_.str.2@PAGEOFF str x8, [x9, #16] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 b LBB0_1 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "IN" .comm _str,24,3 ; @str l_.str.1: ; @.str.1 .asciz "OUT" l_.str.2: ; @.str.2 .asciz "TRISTATE" .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) movq _str@GOTPCREL(%rip), %rax leaq L_.str(%rip), %rcx movq %rcx, (%rax) movq _str@GOTPCREL(%rip), %rax leaq L_.str.1(%rip), %rcx movq %rcx, 8(%rax) movq _str@GOTPCREL(%rip), %rax leaq L_.str.2(%rip), %rcx movq %rcx, 16(%rax) LBB0_1: ## =>This Inner Loop Header: Depth=1 jmp LBB0_1 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "IN" .comm _str,24,4 ## @str L_.str.1: ## @.str.1 .asciz "OUT" L_.str.2: ## @.str.2 .asciz "TRISTATE" .subsections_via_symbols
the_stack_data/23576000.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _foo ; -- Begin function foo .p2align 2 _foo: ; @foo .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] fmov s0, #1.00000000 str s0, [sp, #16] str s0, [sp, #20] ldr s1, [sp, #16] ldr s0, [sp, #20] fneg s0, s0 str s1, [sp, #16] str s0, [sp, #20] ldr s1, [sp, #16] ldr s0, [sp, #20] str s1, [sp, #8] str s0, [sp, #12] ldr s0, [sp, #8] str s0, [sp] ; 4-byte Folded Spill ldr s0, [sp, #12] str s0, [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, LBB0_2 b LBB0_1 LBB0_1: bl ___stack_chk_fail LBB0_2: ldr s1, [sp, #4] ; 4-byte Folded Reload ldr s0, [sp] ; 4-byte Folded Reload 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] bl _foo str s0, [sp, #4] ; 4-byte Folded Spill fmov s0, s1 ldr s1, [sp, #4] ; 4-byte Folded Reload fcvt d1, s1 fcvt d0, s0 str d1, [sp, #8] str d0, [sp, #16] ldr d0, [sp, #8] fmov d1, #1.00000000 fcmp d0, d1 cset w8, ne tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: ldr d0, [sp, #16] fmov d1, #-1.00000000 fcmp d0, d1 cset w8, eq tbnz w8, #0, LBB1_3 b LBB1_2 LBB1_2: bl _abort LBB1_3: mov w0, #0 bl _exit .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __TEXT,__literal16,16byte_literals .p2align 4 ## -- Begin function foo LCPI0_0: .long 0x80000000 ## float -0 .long 0x80000000 ## float -0 .long 0x80000000 ## float -0 .long 0x80000000 ## float -0 .section __TEXT,__text,regular,pure_instructions .globl _foo .p2align 4, 0x90 _foo: ## @foo .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $1065353216, -16(%rbp) ## imm = 0x3F800000 movl $1065353216, -12(%rbp) ## imm = 0x3F800000 movaps LCPI0_0(%rip), %xmm1 ## xmm1 = [-0.0E+0,-0.0E+0,-0.0E+0,-0.0E+0] movss -12(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero pxor %xmm1, %xmm0 movss %xmm0, -12(%rbp) movss -16(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero movss -12(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm1, -24(%rbp) movss %xmm0, -20(%rbp) movsd -24(%rbp), %xmm0 ## xmm0 = mem[0],zero movaps %xmm0, -48(%rbp) ## 16-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_2 ## %bb.1: movaps -48(%rbp), %xmm0 ## 16-byte Reload addq $48, %rsp popq %rbp retq LBB0_2: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ## -- Begin function main LCPI1_0: .quad 0x3ff0000000000000 ## double 1 LCPI1_1: .quad 0xbff0000000000000 ## double -1 .section __TEXT,__text,regular,pure_instructions .globl _main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movl $0, -4(%rbp) callq _foo movlpd %xmm0, -40(%rbp) movss -40(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero movss -36(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm1, %xmm1 cvtss2sd %xmm0, %xmm0 movsd %xmm1, -32(%rbp) movsd %xmm0, -24(%rbp) movsd -32(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd LCPI1_0(%rip), %xmm1 ## xmm1 = mem[0],zero ucomisd %xmm1, %xmm0 jne LBB1_2 jp LBB1_2 ## %bb.1: movsd -24(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd LCPI1_1(%rip), %xmm1 ## xmm1 = mem[0],zero ucomisd %xmm1, %xmm0 jne LBB1_2 jp LBB1_2 jmp LBB1_3 LBB1_2: callq _abort LBB1_3: xorl %edi, %edi callq _exit .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/117328358.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] stur wzr, [x29, #-12] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov x9, sp sub x8, x29, #8 str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf ldur w8, [x29, #-8] stur w8, [x29, #-12] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-8] subs w8, w8, #1 cset w8, le tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-8] subs w9, w8, #1 ldur w8, [x29, #-12] add w8, w8, w9 stur w8, [x29, #-12] ldur w8, [x29, #-8] subs w8, w8, #1 stur w8, [x29, #-8] b LBB0_1 LBB0_3: ldur w9, [x29, #-12] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf mov w0, #0 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "enter number : " l_.str.1: ; @.str.1 .asciz "%d" l_.str.2: ; @.str.2 .asciz "total = %d" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) movl $0, -12(%rbp) leaq L_.str(%rip), %rdi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi leaq -8(%rbp), %rsi movb $0, %al callq _scanf movl -8(%rbp), %eax movl %eax, -12(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 cmpl $1, -8(%rbp) jle LBB0_3 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl -8(%rbp), %eax subl $1, %eax addl -12(%rbp), %eax movl %eax, -12(%rbp) movl -8(%rbp), %eax addl $-1, %eax movl %eax, -8(%rbp) jmp LBB0_1 LBB0_3: movl -12(%rbp), %esi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "enter number : " L_.str.1: ## @.str.1 .asciz "%d" L_.str.2: ## @.str.2 .asciz "total = %d" .subsections_via_symbols
the_stack_data/248579404.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function key_schedule _key_schedule: ; @key_schedule .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 adrp x8, _s5@GOTPAGE ldr x8, [x8, _s5@GOTPAGEOFF] adrp x11, _s6@GOTPAGE ldr x11, [x11, _s6@GOTPAGEOFF] adrp x10, _s7@GOTPAGE ldr x10, [x10, _s7@GOTPAGEOFF] adrp x9, _sb8@GOTPAGE ldr x9, [x9, _sb8@GOTPAGEOFF] str x0, [sp, #24] str x1, [sp, #16] str x2, [sp, #8] ldr x12, [sp, #24] ldr w12, [x12] ldr x13, [x8] ldr x14, [sp, #24] ldr w14, [x14, #12] asr w14, w14, #16 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x11] ldr x14, [sp, #24] ldr w14, [x14, #12] asr w14, w14, #0 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x10] ldr x14, [sp, #24] ldr w14, [x14, #12] asr w14, w14, #24 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x9] ldr x14, [sp, #24] ldr w14, [x14, #12] asr w14, w14, #8 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x10] ldr x14, [sp, #24] ldr w14, [x14, #8] asr w14, w14, #24 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [sp, #16] str w12, [x13] ldr x12, [sp, #24] ldr w12, [x12, #8] ldr x13, [x8] ldr x14, [sp, #16] ldr w14, [x14] asr w14, w14, #24 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x11] ldr x14, [sp, #16] ldr w14, [x14] asr w14, w14, #8 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x10] ldr x14, [sp, #16] ldr w14, [x14] asr w14, w14, #16 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x9] ldr x14, [sp, #16] ldr w14, [x14] asr w14, w14, #0 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x9] ldr x14, [sp, #24] ldr w14, [x14, #8] asr w14, w14, #8 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [sp, #16] str w12, [x13, #4] ldr x12, [sp, #24] ldr w12, [x12, #12] ldr x13, [x8] ldr x14, [sp, #16] ldr w14, [x14, #4] asr w14, w14, #0 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x11] ldr x14, [sp, #16] ldr w14, [x14, #4] asr w14, w14, #8 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x10] ldr x14, [sp, #16] ldr w14, [x14, #4] asr w14, w14, #16 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x9] ldr x14, [sp, #16] ldr w14, [x14, #4] asr w14, w14, #24 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x8] ldr x14, [sp, #24] ldr w14, [x14, #8] asr w14, w14, #16 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [sp, #16] str w12, [x13, #8] ldr x12, [sp, #24] ldr w12, [x12, #4] ldr x13, [x8] ldr x14, [sp, #16] ldr w14, [x14, #8] asr w14, w14, #8 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x11] ldr x14, [sp, #16] ldr w14, [x14, #8] asr w14, w14, #16 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x10] ldr x14, [sp, #16] ldr w14, [x14, #8] asr w14, w14, #0 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x9] ldr x14, [sp, #16] ldr w14, [x14, #8] asr w14, w14, #24 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x11] ldr x14, [sp, #24] ldr w14, [x14, #8] asr w14, w14, #0 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [sp, #16] str w12, [x13, #12] ldr x12, [x8] ldr x13, [sp, #16] ldr w13, [x13, #8] asr w13, w13, #24 and w13, w13, #0xff ldr w12, [x12, w13, sxtw #2] ldr x13, [x11] ldr x14, [sp, #16] ldr w14, [x14, #8] asr w14, w14, #16 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x10] ldr x14, [sp, #16] ldr w14, [x14, #4] asr w14, w14, #0 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x9] ldr x14, [sp, #16] ldr w14, [x14, #4] asr w14, w14, #8 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x8] ldr x14, [sp, #16] ldr w14, [x14] asr w14, w14, #8 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [sp, #8] str w12, [x13] ldr x12, [x8] ldr x13, [sp, #16] ldr w13, [x13, #8] asr w13, w13, #8 and w13, w13, #0xff ldr w12, [x12, w13, sxtw #2] ldr x13, [x11] ldr x14, [sp, #16] ldr w14, [x14, #8] asr w14, w14, #0 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x10] ldr x14, [sp, #16] ldr w14, [x14, #4] asr w14, w14, #16 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x9] ldr x14, [sp, #16] ldr w14, [x14, #4] asr w14, w14, #24 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x11] ldr x14, [sp, #16] ldr w14, [x14, #4] asr w14, w14, #8 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [sp, #8] str w12, [x13, #4] ldr x12, [x8] ldr x13, [sp, #16] ldr w13, [x13, #12] asr w13, w13, #24 and w13, w13, #0xff ldr w12, [x12, w13, sxtw #2] ldr x13, [x11] ldr x14, [sp, #16] ldr w14, [x14, #12] asr w14, w14, #16 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x10] ldr x14, [sp, #16] ldr w14, [x14] asr w14, w14, #0 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x9] ldr x14, [sp, #16] ldr w14, [x14] asr w14, w14, #8 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x10] ldr x14, [sp, #16] ldr w14, [x14, #8] asr w14, w14, #16 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [sp, #8] str w12, [x13, #8] ldr x12, [x8] ldr x13, [sp, #16] ldr w13, [x13, #12] asr w13, w13, #8 and w13, w13, #0xff ldr w12, [x12, w13, sxtw #2] ldr x13, [x11] ldr x14, [sp, #16] ldr w14, [x14, #12] asr w14, w14, #0 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x10] ldr x14, [sp, #16] ldr w14, [x14] asr w14, w14, #16 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x9] ldr x14, [sp, #16] ldr w14, [x14] asr w14, w14, #24 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x9] ldr x14, [sp, #16] ldr w14, [x14, #12] asr w14, w14, #24 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [sp, #8] str w12, [x13, #12] ldr x12, [sp, #16] ldr w12, [x12, #8] ldr x13, [x8] ldr x14, [sp, #16] ldr w14, [x14, #4] asr w14, w14, #16 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x11] ldr x14, [sp, #16] ldr w14, [x14, #4] asr w14, w14, #0 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x10] ldr x14, [sp, #16] ldr w14, [x14, #4] asr w14, w14, #24 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x9] ldr x14, [sp, #16] ldr w14, [x14, #4] asr w14, w14, #8 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x10] ldr x14, [sp, #16] ldr w14, [x14] asr w14, w14, #24 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [sp, #24] str w12, [x13] ldr x12, [sp, #16] ldr w12, [x12] ldr x13, [x8] ldr x14, [sp, #24] ldr w14, [x14] asr w14, w14, #24 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x11] ldr x14, [sp, #24] ldr w14, [x14] asr w14, w14, #8 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x10] ldr x14, [sp, #24] ldr w14, [x14] asr w14, w14, #16 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x9] ldr x14, [sp, #24] ldr w14, [x14] asr w14, w14, #0 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x9] ldr x14, [sp, #16] ldr w14, [x14] asr w14, w14, #8 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [sp, #24] str w12, [x13, #4] ldr x12, [sp, #16] ldr w12, [x12, #4] ldr x13, [x8] ldr x14, [sp, #24] ldr w14, [x14, #4] asr w14, w14, #0 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x11] ldr x14, [sp, #24] ldr w14, [x14, #4] asr w14, w14, #8 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x10] ldr x14, [sp, #24] ldr w14, [x14, #4] asr w14, w14, #16 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x9] ldr x14, [sp, #24] ldr w14, [x14, #4] asr w14, w14, #24 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x8] ldr x14, [sp, #16] ldr w14, [x14] asr w14, w14, #16 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [sp, #24] str w12, [x13, #8] ldr x12, [sp, #16] ldr w12, [x12, #12] ldr x13, [x8] ldr x14, [sp, #24] ldr w14, [x14, #8] asr w14, w14, #8 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x11] ldr x14, [sp, #24] ldr w14, [x14, #8] asr w14, w14, #16 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x10] ldr x14, [sp, #24] ldr w14, [x14, #8] asr w14, w14, #0 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x9] ldr x14, [sp, #24] ldr w14, [x14, #8] asr w14, w14, #24 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x11] ldr x14, [sp, #16] ldr w14, [x14] asr w14, w14, #0 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [sp, #24] str w12, [x13, #12] ldr x12, [x8] ldr x13, [sp, #24] ldr w13, [x13] asr w13, w13, #0 and w13, w13, #0xff ldr w12, [x12, w13, sxtw #2] ldr x13, [x11] ldr x14, [sp, #24] ldr w14, [x14] asr w14, w14, #8 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x10] ldr x14, [sp, #24] ldr w14, [x14, #12] asr w14, w14, #24 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x9] ldr x14, [sp, #24] ldr w14, [x14, #12] asr w14, w14, #16 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x8] ldr x14, [sp, #24] ldr w14, [x14, #8] asr w14, w14, #24 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [sp, #8] str w12, [x13, #16] ldr x12, [x8] ldr x13, [sp, #24] ldr w13, [x13] asr w13, w13, #16 and w13, w13, #0xff ldr w12, [x12, w13, sxtw #2] ldr x13, [x11] ldr x14, [sp, #24] ldr w14, [x14] asr w14, w14, #24 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x10] ldr x14, [sp, #24] ldr w14, [x14, #12] asr w14, w14, #8 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x9] ldr x14, [sp, #24] ldr w14, [x14, #12] asr w14, w14, #0 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x11] ldr x14, [sp, #24] ldr w14, [x14, #12] asr w14, w14, #16 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [sp, #8] str w12, [x13, #20] ldr x12, [x8] ldr x13, [sp, #24] ldr w13, [x13, #4] asr w13, w13, #0 and w13, w13, #0xff ldr w12, [x12, w13, sxtw #2] ldr x13, [x11] ldr x14, [sp, #24] ldr w14, [x14, #4] asr w14, w14, #8 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x10] ldr x14, [sp, #24] ldr w14, [x14, #8] asr w14, w14, #24 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x9] ldr x14, [sp, #24] ldr w14, [x14, #8] asr w14, w14, #16 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x10] ldr x14, [sp, #24] ldr w14, [x14] asr w14, w14, #0 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [sp, #8] str w12, [x13, #24] ldr x12, [x8] ldr x13, [sp, #24] ldr w13, [x13, #4] asr w13, w13, #16 and w13, w13, #0xff ldr w12, [x12, w13, sxtw #2] ldr x13, [x11] ldr x14, [sp, #24] ldr w14, [x14, #4] asr w14, w14, #24 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x10] ldr x14, [sp, #24] ldr w14, [x14, #8] asr w14, w14, #8 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x9] ldr x14, [sp, #24] ldr w14, [x14, #8] asr w14, w14, #0 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x9] ldr x14, [sp, #24] ldr w14, [x14, #4] asr w14, w14, #0 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [sp, #8] str w12, [x13, #28] ldr x12, [sp, #24] ldr w12, [x12] ldr x13, [x8] ldr x14, [sp, #24] ldr w14, [x14, #12] asr w14, w14, #16 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x11] ldr x14, [sp, #24] ldr w14, [x14, #12] asr w14, w14, #0 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x10] ldr x14, [sp, #24] ldr w14, [x14, #12] asr w14, w14, #24 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x9] ldr x14, [sp, #24] ldr w14, [x14, #12] asr w14, w14, #8 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x10] ldr x14, [sp, #24] ldr w14, [x14, #8] asr w14, w14, #24 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [sp, #16] str w12, [x13] ldr x12, [sp, #24] ldr w12, [x12, #8] ldr x13, [x8] ldr x14, [sp, #16] ldr w14, [x14] asr w14, w14, #24 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x11] ldr x14, [sp, #16] ldr w14, [x14] asr w14, w14, #8 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x10] ldr x14, [sp, #16] ldr w14, [x14] asr w14, w14, #16 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x9] ldr x14, [sp, #16] ldr w14, [x14] asr w14, w14, #0 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x9] ldr x14, [sp, #24] ldr w14, [x14, #8] asr w14, w14, #8 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [sp, #16] str w12, [x13, #4] ldr x12, [sp, #24] ldr w12, [x12, #12] ldr x13, [x8] ldr x14, [sp, #16] ldr w14, [x14, #4] asr w14, w14, #0 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x11] ldr x14, [sp, #16] ldr w14, [x14, #4] asr w14, w14, #8 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x10] ldr x14, [sp, #16] ldr w14, [x14, #4] asr w14, w14, #16 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x9] ldr x14, [sp, #16] ldr w14, [x14, #4] asr w14, w14, #24 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x8] ldr x14, [sp, #24] ldr w14, [x14, #8] asr w14, w14, #16 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [sp, #16] str w12, [x13, #8] ldr x12, [sp, #24] ldr w12, [x12, #4] ldr x13, [x8] ldr x14, [sp, #16] ldr w14, [x14, #8] asr w14, w14, #8 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x11] ldr x14, [sp, #16] ldr w14, [x14, #8] asr w14, w14, #16 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x10] ldr x14, [sp, #16] ldr w14, [x14, #8] asr w14, w14, #0 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x9] ldr x14, [sp, #16] ldr w14, [x14, #8] asr w14, w14, #24 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x11] ldr x14, [sp, #24] ldr w14, [x14, #8] asr w14, w14, #0 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [sp, #16] str w12, [x13, #12] ldr x12, [x8] ldr x13, [sp, #16] ldr w13, [x13] asr w13, w13, #0 and w13, w13, #0xff ldr w12, [x12, w13, sxtw #2] ldr x13, [x11] ldr x14, [sp, #16] ldr w14, [x14] asr w14, w14, #8 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x10] ldr x14, [sp, #16] ldr w14, [x14, #12] asr w14, w14, #24 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x9] ldr x14, [sp, #16] ldr w14, [x14, #12] asr w14, w14, #16 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x8] ldr x14, [sp, #16] ldr w14, [x14, #8] asr w14, w14, #16 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [sp, #8] str w12, [x13, #32] ldr x12, [x8] ldr x13, [sp, #16] ldr w13, [x13] asr w13, w13, #16 and w13, w13, #0xff ldr w12, [x12, w13, sxtw #2] ldr x13, [x11] ldr x14, [sp, #16] ldr w14, [x14] asr w14, w14, #24 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x10] ldr x14, [sp, #16] ldr w14, [x14, #12] asr w14, w14, #8 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x9] ldr x14, [sp, #16] ldr w14, [x14, #12] asr w14, w14, #0 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x11] ldr x14, [sp, #16] ldr w14, [x14, #12] asr w14, w14, #24 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [sp, #8] str w12, [x13, #36] ldr x12, [x8] ldr x13, [sp, #16] ldr w13, [x13, #4] asr w13, w13, #0 and w13, w13, #0xff ldr w12, [x12, w13, sxtw #2] ldr x13, [x11] ldr x14, [sp, #16] ldr w14, [x14, #4] asr w14, w14, #8 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x10] ldr x14, [sp, #16] ldr w14, [x14, #8] asr w14, w14, #24 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x9] ldr x14, [sp, #16] ldr w14, [x14, #8] asr w14, w14, #16 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x10] ldr x14, [sp, #16] ldr w14, [x14] asr w14, w14, #8 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [sp, #8] str w12, [x13, #40] ldr x12, [x8] ldr x13, [sp, #16] ldr w13, [x13, #4] asr w13, w13, #16 and w13, w13, #0xff ldr w12, [x12, w13, sxtw #2] ldr x13, [x11] ldr x14, [sp, #16] ldr w14, [x14, #4] asr w14, w14, #24 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x10] ldr x14, [sp, #16] ldr w14, [x14, #8] asr w14, w14, #8 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x9] ldr x14, [sp, #16] ldr w14, [x14, #8] asr w14, w14, #0 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x9] ldr x14, [sp, #16] ldr w14, [x14, #4] asr w14, w14, #8 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [sp, #8] str w12, [x13, #44] ldr x12, [sp, #16] ldr w12, [x12, #8] ldr x13, [x8] ldr x14, [sp, #16] ldr w14, [x14, #4] asr w14, w14, #16 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x11] ldr x14, [sp, #16] ldr w14, [x14, #4] asr w14, w14, #0 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x10] ldr x14, [sp, #16] ldr w14, [x14, #4] asr w14, w14, #24 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x9] ldr x14, [sp, #16] ldr w14, [x14, #4] asr w14, w14, #8 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x10] ldr x14, [sp, #16] ldr w14, [x14] asr w14, w14, #24 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [sp, #24] str w12, [x13] ldr x12, [sp, #16] ldr w12, [x12] ldr x13, [x8] ldr x14, [sp, #24] ldr w14, [x14] asr w14, w14, #24 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x11] ldr x14, [sp, #24] ldr w14, [x14] asr w14, w14, #8 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x10] ldr x14, [sp, #24] ldr w14, [x14] asr w14, w14, #16 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x9] ldr x14, [sp, #24] ldr w14, [x14] asr w14, w14, #0 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x9] ldr x14, [sp, #16] ldr w14, [x14] asr w14, w14, #8 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [sp, #24] str w12, [x13, #4] ldr x12, [sp, #16] ldr w12, [x12, #4] ldr x13, [x8] ldr x14, [sp, #24] ldr w14, [x14, #4] asr w14, w14, #0 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x11] ldr x14, [sp, #24] ldr w14, [x14, #4] asr w14, w14, #8 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x10] ldr x14, [sp, #24] ldr w14, [x14, #4] asr w14, w14, #16 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x9] ldr x14, [sp, #24] ldr w14, [x14, #4] asr w14, w14, #24 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x8] ldr x14, [sp, #16] ldr w14, [x14] asr w14, w14, #16 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [sp, #24] str w12, [x13, #8] ldr x12, [sp, #16] ldr w12, [x12, #12] ldr x13, [x8] ldr x14, [sp, #24] ldr w14, [x14, #8] asr w14, w14, #8 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x11] ldr x14, [sp, #24] ldr w14, [x14, #8] asr w14, w14, #16 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x10] ldr x14, [sp, #24] ldr w14, [x14, #8] asr w14, w14, #0 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x9] ldr x14, [sp, #24] ldr w14, [x14, #8] asr w14, w14, #24 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x11] ldr x14, [sp, #16] ldr w14, [x14] asr w14, w14, #0 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [sp, #24] str w12, [x13, #12] ldr x12, [x8] ldr x13, [sp, #24] ldr w13, [x13, #8] asr w13, w13, #24 and w13, w13, #0xff ldr w12, [x12, w13, sxtw #2] ldr x13, [x11] ldr x14, [sp, #24] ldr w14, [x14, #8] asr w14, w14, #16 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x10] ldr x14, [sp, #24] ldr w14, [x14, #4] asr w14, w14, #0 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x9] ldr x14, [sp, #24] ldr w14, [x14, #4] asr w14, w14, #8 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x8] ldr x14, [sp, #24] ldr w14, [x14] asr w14, w14, #0 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [sp, #8] str w12, [x13, #48] ldr x12, [x8] ldr x13, [sp, #24] ldr w13, [x13, #8] asr w13, w13, #8 and w13, w13, #0xff ldr w12, [x12, w13, sxtw #2] ldr x13, [x11] ldr x14, [sp, #24] ldr w14, [x14, #8] asr w14, w14, #0 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x10] ldr x14, [sp, #24] ldr w14, [x14, #4] asr w14, w14, #16 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x9] ldr x14, [sp, #24] ldr w14, [x14, #4] asr w14, w14, #24 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x11] ldr x14, [sp, #24] ldr w14, [x14, #4] asr w14, w14, #0 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [sp, #8] str w12, [x13, #52] ldr x12, [x8] ldr x13, [sp, #24] ldr w13, [x13, #12] asr w13, w13, #24 and w13, w13, #0xff ldr w12, [x12, w13, sxtw #2] ldr x13, [x11] ldr x14, [sp, #24] ldr w14, [x14, #12] asr w14, w14, #16 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x10] ldr x14, [sp, #24] ldr w14, [x14] asr w14, w14, #0 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x9] ldr x14, [sp, #24] ldr w14, [x14] asr w14, w14, #8 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [x10] ldr x14, [sp, #24] ldr w14, [x14, #8] asr w14, w14, #24 and w14, w14, #0xff ldr w13, [x13, w14, sxtw #2] eor w12, w12, w13 ldr x13, [sp, #8] str w12, [x13, #56] ldr x8, [x8] ldr x12, [sp, #24] ldr w12, [x12, #12] asr w12, w12, #8 and w12, w12, #0xff ldr w8, [x8, w12, sxtw #2] ldr x11, [x11] ldr x12, [sp, #24] ldr w12, [x12, #12] asr w12, w12, #0 and w12, w12, #0xff ldr w11, [x11, w12, sxtw #2] eor w8, w8, w11 ldr x10, [x10] ldr x11, [sp, #24] ldr w11, [x11] asr w11, w11, #16 and w11, w11, #0xff ldr w10, [x10, w11, sxtw #2] eor w8, w8, w10 ldr x10, [x9] ldr x11, [sp, #24] ldr w11, [x11] asr w11, w11, #24 and w11, w11, #0xff ldr w10, [x10, w11, sxtw #2] eor w8, w8, w10 ldr x9, [x9] ldr x10, [sp, #24] ldr w10, [x10, #12] asr w10, w10, #16 and w10, w10, #0xff ldr w9, [x9, w10, sxtw #2] eor w8, w8, w9 ldr x9, [sp, #8] str w8, [x9, #60] add sp, sp, #32 ret .cfi_endproc ; -- End function .comm _s5,8,3 ; @s5 .comm _s6,8,3 ; @s6 .comm _s7,8,3 ; @s7 .comm _sb8,8,3 ; @sb8 .no_dead_strip _key_schedule .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function key_schedule _key_schedule: ## @key_schedule .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), %ecx movq _s5@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rdx movl 12(%rdx), %edx sarl $16, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _s6@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rdx movl 12(%rdx), %edx sarl $0, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _s7@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rdx movl 12(%rdx), %edx sarl $24, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _sb8@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rdx movl 12(%rdx), %edx sarl $8, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _s7@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rdx movl 8(%rdx), %edx sarl $24, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq -16(%rbp), %rax movl %ecx, (%rax) movq -8(%rbp), %rax movl 8(%rax), %ecx movq _s5@GOTPCREL(%rip), %rax movq (%rax), %rax movq -16(%rbp), %rdx movl (%rdx), %edx sarl $24, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _s6@GOTPCREL(%rip), %rax movq (%rax), %rax movq -16(%rbp), %rdx movl (%rdx), %edx sarl $8, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _s7@GOTPCREL(%rip), %rax movq (%rax), %rax movq -16(%rbp), %rdx movl (%rdx), %edx sarl $16, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _sb8@GOTPCREL(%rip), %rax movq (%rax), %rax movq -16(%rbp), %rdx movl (%rdx), %edx sarl $0, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _sb8@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rdx movl 8(%rdx), %edx sarl $8, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq -16(%rbp), %rax movl %ecx, 4(%rax) movq -8(%rbp), %rax movl 12(%rax), %ecx movq _s5@GOTPCREL(%rip), %rax movq (%rax), %rax movq -16(%rbp), %rdx movl 4(%rdx), %edx sarl $0, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _s6@GOTPCREL(%rip), %rax movq (%rax), %rax movq -16(%rbp), %rdx movl 4(%rdx), %edx sarl $8, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _s7@GOTPCREL(%rip), %rax movq (%rax), %rax movq -16(%rbp), %rdx movl 4(%rdx), %edx sarl $16, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _sb8@GOTPCREL(%rip), %rax movq (%rax), %rax movq -16(%rbp), %rdx movl 4(%rdx), %edx sarl $24, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _s5@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rdx movl 8(%rdx), %edx sarl $16, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq -16(%rbp), %rax movl %ecx, 8(%rax) movq -8(%rbp), %rax movl 4(%rax), %ecx movq _s5@GOTPCREL(%rip), %rax movq (%rax), %rax movq -16(%rbp), %rdx movl 8(%rdx), %edx sarl $8, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _s6@GOTPCREL(%rip), %rax movq (%rax), %rax movq -16(%rbp), %rdx movl 8(%rdx), %edx sarl $16, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _s7@GOTPCREL(%rip), %rax movq (%rax), %rax movq -16(%rbp), %rdx movl 8(%rdx), %edx sarl $0, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _sb8@GOTPCREL(%rip), %rax movq (%rax), %rax movq -16(%rbp), %rdx movl 8(%rdx), %edx sarl $24, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _s6@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rdx movl 8(%rdx), %edx sarl $0, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq -16(%rbp), %rax movl %ecx, 12(%rax) movq _s5@GOTPCREL(%rip), %rax movq (%rax), %rax movq -16(%rbp), %rcx movl 8(%rcx), %ecx sarl $24, %ecx andl $255, %ecx movslq %ecx, %rcx movl (%rax,%rcx,4), %ecx movq _s6@GOTPCREL(%rip), %rax movq (%rax), %rax movq -16(%rbp), %rdx movl 8(%rdx), %edx sarl $16, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _s7@GOTPCREL(%rip), %rax movq (%rax), %rax movq -16(%rbp), %rdx movl 4(%rdx), %edx sarl $0, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _sb8@GOTPCREL(%rip), %rax movq (%rax), %rax movq -16(%rbp), %rdx movl 4(%rdx), %edx sarl $8, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _s5@GOTPCREL(%rip), %rax movq (%rax), %rax movq -16(%rbp), %rdx movl (%rdx), %edx sarl $8, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq -24(%rbp), %rax movl %ecx, (%rax) movq _s5@GOTPCREL(%rip), %rax movq (%rax), %rax movq -16(%rbp), %rcx movl 8(%rcx), %ecx sarl $8, %ecx andl $255, %ecx movslq %ecx, %rcx movl (%rax,%rcx,4), %ecx movq _s6@GOTPCREL(%rip), %rax movq (%rax), %rax movq -16(%rbp), %rdx movl 8(%rdx), %edx sarl $0, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _s7@GOTPCREL(%rip), %rax movq (%rax), %rax movq -16(%rbp), %rdx movl 4(%rdx), %edx sarl $16, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _sb8@GOTPCREL(%rip), %rax movq (%rax), %rax movq -16(%rbp), %rdx movl 4(%rdx), %edx sarl $24, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _s6@GOTPCREL(%rip), %rax movq (%rax), %rax movq -16(%rbp), %rdx movl 4(%rdx), %edx sarl $8, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq -24(%rbp), %rax movl %ecx, 4(%rax) movq _s5@GOTPCREL(%rip), %rax movq (%rax), %rax movq -16(%rbp), %rcx movl 12(%rcx), %ecx sarl $24, %ecx andl $255, %ecx movslq %ecx, %rcx movl (%rax,%rcx,4), %ecx movq _s6@GOTPCREL(%rip), %rax movq (%rax), %rax movq -16(%rbp), %rdx movl 12(%rdx), %edx sarl $16, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _s7@GOTPCREL(%rip), %rax movq (%rax), %rax movq -16(%rbp), %rdx movl (%rdx), %edx sarl $0, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _sb8@GOTPCREL(%rip), %rax movq (%rax), %rax movq -16(%rbp), %rdx movl (%rdx), %edx sarl $8, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _s7@GOTPCREL(%rip), %rax movq (%rax), %rax movq -16(%rbp), %rdx movl 8(%rdx), %edx sarl $16, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq -24(%rbp), %rax movl %ecx, 8(%rax) movq _s5@GOTPCREL(%rip), %rax movq (%rax), %rax movq -16(%rbp), %rcx movl 12(%rcx), %ecx sarl $8, %ecx andl $255, %ecx movslq %ecx, %rcx movl (%rax,%rcx,4), %ecx movq _s6@GOTPCREL(%rip), %rax movq (%rax), %rax movq -16(%rbp), %rdx movl 12(%rdx), %edx sarl $0, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _s7@GOTPCREL(%rip), %rax movq (%rax), %rax movq -16(%rbp), %rdx movl (%rdx), %edx sarl $16, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _sb8@GOTPCREL(%rip), %rax movq (%rax), %rax movq -16(%rbp), %rdx movl (%rdx), %edx sarl $24, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _sb8@GOTPCREL(%rip), %rax movq (%rax), %rax movq -16(%rbp), %rdx movl 12(%rdx), %edx sarl $24, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq -24(%rbp), %rax movl %ecx, 12(%rax) movq -16(%rbp), %rax movl 8(%rax), %ecx movq _s5@GOTPCREL(%rip), %rax movq (%rax), %rax movq -16(%rbp), %rdx movl 4(%rdx), %edx sarl $16, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _s6@GOTPCREL(%rip), %rax movq (%rax), %rax movq -16(%rbp), %rdx movl 4(%rdx), %edx sarl $0, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _s7@GOTPCREL(%rip), %rax movq (%rax), %rax movq -16(%rbp), %rdx movl 4(%rdx), %edx sarl $24, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _sb8@GOTPCREL(%rip), %rax movq (%rax), %rax movq -16(%rbp), %rdx movl 4(%rdx), %edx sarl $8, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _s7@GOTPCREL(%rip), %rax movq (%rax), %rax movq -16(%rbp), %rdx movl (%rdx), %edx sarl $24, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq -8(%rbp), %rax movl %ecx, (%rax) movq -16(%rbp), %rax movl (%rax), %ecx movq _s5@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rdx movl (%rdx), %edx sarl $24, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _s6@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rdx movl (%rdx), %edx sarl $8, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _s7@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rdx movl (%rdx), %edx sarl $16, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _sb8@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rdx movl (%rdx), %edx sarl $0, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _sb8@GOTPCREL(%rip), %rax movq (%rax), %rax movq -16(%rbp), %rdx movl (%rdx), %edx sarl $8, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq -8(%rbp), %rax movl %ecx, 4(%rax) movq -16(%rbp), %rax movl 4(%rax), %ecx movq _s5@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rdx movl 4(%rdx), %edx sarl $0, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _s6@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rdx movl 4(%rdx), %edx sarl $8, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _s7@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rdx movl 4(%rdx), %edx sarl $16, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _sb8@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rdx movl 4(%rdx), %edx sarl $24, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _s5@GOTPCREL(%rip), %rax movq (%rax), %rax movq -16(%rbp), %rdx movl (%rdx), %edx sarl $16, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq -8(%rbp), %rax movl %ecx, 8(%rax) movq -16(%rbp), %rax movl 12(%rax), %ecx movq _s5@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rdx movl 8(%rdx), %edx sarl $8, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _s6@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rdx movl 8(%rdx), %edx sarl $16, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _s7@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rdx movl 8(%rdx), %edx sarl $0, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _sb8@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rdx movl 8(%rdx), %edx sarl $24, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _s6@GOTPCREL(%rip), %rax movq (%rax), %rax movq -16(%rbp), %rdx movl (%rdx), %edx sarl $0, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq -8(%rbp), %rax movl %ecx, 12(%rax) movq _s5@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx movl (%rcx), %ecx sarl $0, %ecx andl $255, %ecx movslq %ecx, %rcx movl (%rax,%rcx,4), %ecx movq _s6@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rdx movl (%rdx), %edx sarl $8, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _s7@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rdx movl 12(%rdx), %edx sarl $24, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _sb8@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rdx movl 12(%rdx), %edx sarl $16, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _s5@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rdx movl 8(%rdx), %edx sarl $24, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq -24(%rbp), %rax movl %ecx, 16(%rax) movq _s5@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx movl (%rcx), %ecx sarl $16, %ecx andl $255, %ecx movslq %ecx, %rcx movl (%rax,%rcx,4), %ecx movq _s6@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rdx movl (%rdx), %edx sarl $24, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _s7@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rdx movl 12(%rdx), %edx sarl $8, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _sb8@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rdx movl 12(%rdx), %edx sarl $0, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _s6@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rdx movl 12(%rdx), %edx sarl $16, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq -24(%rbp), %rax movl %ecx, 20(%rax) movq _s5@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx movl 4(%rcx), %ecx sarl $0, %ecx andl $255, %ecx movslq %ecx, %rcx movl (%rax,%rcx,4), %ecx movq _s6@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rdx movl 4(%rdx), %edx sarl $8, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _s7@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rdx movl 8(%rdx), %edx sarl $24, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _sb8@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rdx movl 8(%rdx), %edx sarl $16, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _s7@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rdx movl (%rdx), %edx sarl $0, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq -24(%rbp), %rax movl %ecx, 24(%rax) movq _s5@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx movl 4(%rcx), %ecx sarl $16, %ecx andl $255, %ecx movslq %ecx, %rcx movl (%rax,%rcx,4), %ecx movq _s6@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rdx movl 4(%rdx), %edx sarl $24, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _s7@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rdx movl 8(%rdx), %edx sarl $8, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _sb8@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rdx movl 8(%rdx), %edx sarl $0, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _sb8@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rdx movl 4(%rdx), %edx sarl $0, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq -24(%rbp), %rax movl %ecx, 28(%rax) movq -8(%rbp), %rax movl (%rax), %ecx movq _s5@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rdx movl 12(%rdx), %edx sarl $16, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _s6@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rdx movl 12(%rdx), %edx sarl $0, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _s7@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rdx movl 12(%rdx), %edx sarl $24, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _sb8@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rdx movl 12(%rdx), %edx sarl $8, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _s7@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rdx movl 8(%rdx), %edx sarl $24, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq -16(%rbp), %rax movl %ecx, (%rax) movq -8(%rbp), %rax movl 8(%rax), %ecx movq _s5@GOTPCREL(%rip), %rax movq (%rax), %rax movq -16(%rbp), %rdx movl (%rdx), %edx sarl $24, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _s6@GOTPCREL(%rip), %rax movq (%rax), %rax movq -16(%rbp), %rdx movl (%rdx), %edx sarl $8, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _s7@GOTPCREL(%rip), %rax movq (%rax), %rax movq -16(%rbp), %rdx movl (%rdx), %edx sarl $16, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _sb8@GOTPCREL(%rip), %rax movq (%rax), %rax movq -16(%rbp), %rdx movl (%rdx), %edx sarl $0, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _sb8@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rdx movl 8(%rdx), %edx sarl $8, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq -16(%rbp), %rax movl %ecx, 4(%rax) movq -8(%rbp), %rax movl 12(%rax), %ecx movq _s5@GOTPCREL(%rip), %rax movq (%rax), %rax movq -16(%rbp), %rdx movl 4(%rdx), %edx sarl $0, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _s6@GOTPCREL(%rip), %rax movq (%rax), %rax movq -16(%rbp), %rdx movl 4(%rdx), %edx sarl $8, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _s7@GOTPCREL(%rip), %rax movq (%rax), %rax movq -16(%rbp), %rdx movl 4(%rdx), %edx sarl $16, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _sb8@GOTPCREL(%rip), %rax movq (%rax), %rax movq -16(%rbp), %rdx movl 4(%rdx), %edx sarl $24, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _s5@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rdx movl 8(%rdx), %edx sarl $16, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq -16(%rbp), %rax movl %ecx, 8(%rax) movq -8(%rbp), %rax movl 4(%rax), %ecx movq _s5@GOTPCREL(%rip), %rax movq (%rax), %rax movq -16(%rbp), %rdx movl 8(%rdx), %edx sarl $8, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _s6@GOTPCREL(%rip), %rax movq (%rax), %rax movq -16(%rbp), %rdx movl 8(%rdx), %edx sarl $16, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _s7@GOTPCREL(%rip), %rax movq (%rax), %rax movq -16(%rbp), %rdx movl 8(%rdx), %edx sarl $0, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _sb8@GOTPCREL(%rip), %rax movq (%rax), %rax movq -16(%rbp), %rdx movl 8(%rdx), %edx sarl $24, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _s6@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rdx movl 8(%rdx), %edx sarl $0, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq -16(%rbp), %rax movl %ecx, 12(%rax) movq _s5@GOTPCREL(%rip), %rax movq (%rax), %rax movq -16(%rbp), %rcx movl (%rcx), %ecx sarl $0, %ecx andl $255, %ecx movslq %ecx, %rcx movl (%rax,%rcx,4), %ecx movq _s6@GOTPCREL(%rip), %rax movq (%rax), %rax movq -16(%rbp), %rdx movl (%rdx), %edx sarl $8, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _s7@GOTPCREL(%rip), %rax movq (%rax), %rax movq -16(%rbp), %rdx movl 12(%rdx), %edx sarl $24, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _sb8@GOTPCREL(%rip), %rax movq (%rax), %rax movq -16(%rbp), %rdx movl 12(%rdx), %edx sarl $16, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _s5@GOTPCREL(%rip), %rax movq (%rax), %rax movq -16(%rbp), %rdx movl 8(%rdx), %edx sarl $16, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq -24(%rbp), %rax movl %ecx, 32(%rax) movq _s5@GOTPCREL(%rip), %rax movq (%rax), %rax movq -16(%rbp), %rcx movl (%rcx), %ecx sarl $16, %ecx andl $255, %ecx movslq %ecx, %rcx movl (%rax,%rcx,4), %ecx movq _s6@GOTPCREL(%rip), %rax movq (%rax), %rax movq -16(%rbp), %rdx movl (%rdx), %edx sarl $24, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _s7@GOTPCREL(%rip), %rax movq (%rax), %rax movq -16(%rbp), %rdx movl 12(%rdx), %edx sarl $8, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _sb8@GOTPCREL(%rip), %rax movq (%rax), %rax movq -16(%rbp), %rdx movl 12(%rdx), %edx sarl $0, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _s6@GOTPCREL(%rip), %rax movq (%rax), %rax movq -16(%rbp), %rdx movl 12(%rdx), %edx sarl $24, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq -24(%rbp), %rax movl %ecx, 36(%rax) movq _s5@GOTPCREL(%rip), %rax movq (%rax), %rax movq -16(%rbp), %rcx movl 4(%rcx), %ecx sarl $0, %ecx andl $255, %ecx movslq %ecx, %rcx movl (%rax,%rcx,4), %ecx movq _s6@GOTPCREL(%rip), %rax movq (%rax), %rax movq -16(%rbp), %rdx movl 4(%rdx), %edx sarl $8, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _s7@GOTPCREL(%rip), %rax movq (%rax), %rax movq -16(%rbp), %rdx movl 8(%rdx), %edx sarl $24, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _sb8@GOTPCREL(%rip), %rax movq (%rax), %rax movq -16(%rbp), %rdx movl 8(%rdx), %edx sarl $16, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _s7@GOTPCREL(%rip), %rax movq (%rax), %rax movq -16(%rbp), %rdx movl (%rdx), %edx sarl $8, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq -24(%rbp), %rax movl %ecx, 40(%rax) movq _s5@GOTPCREL(%rip), %rax movq (%rax), %rax movq -16(%rbp), %rcx movl 4(%rcx), %ecx sarl $16, %ecx andl $255, %ecx movslq %ecx, %rcx movl (%rax,%rcx,4), %ecx movq _s6@GOTPCREL(%rip), %rax movq (%rax), %rax movq -16(%rbp), %rdx movl 4(%rdx), %edx sarl $24, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _s7@GOTPCREL(%rip), %rax movq (%rax), %rax movq -16(%rbp), %rdx movl 8(%rdx), %edx sarl $8, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _sb8@GOTPCREL(%rip), %rax movq (%rax), %rax movq -16(%rbp), %rdx movl 8(%rdx), %edx sarl $0, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _sb8@GOTPCREL(%rip), %rax movq (%rax), %rax movq -16(%rbp), %rdx movl 4(%rdx), %edx sarl $8, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq -24(%rbp), %rax movl %ecx, 44(%rax) movq -16(%rbp), %rax movl 8(%rax), %ecx movq _s5@GOTPCREL(%rip), %rax movq (%rax), %rax movq -16(%rbp), %rdx movl 4(%rdx), %edx sarl $16, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _s6@GOTPCREL(%rip), %rax movq (%rax), %rax movq -16(%rbp), %rdx movl 4(%rdx), %edx sarl $0, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _s7@GOTPCREL(%rip), %rax movq (%rax), %rax movq -16(%rbp), %rdx movl 4(%rdx), %edx sarl $24, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _sb8@GOTPCREL(%rip), %rax movq (%rax), %rax movq -16(%rbp), %rdx movl 4(%rdx), %edx sarl $8, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _s7@GOTPCREL(%rip), %rax movq (%rax), %rax movq -16(%rbp), %rdx movl (%rdx), %edx sarl $24, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq -8(%rbp), %rax movl %ecx, (%rax) movq -16(%rbp), %rax movl (%rax), %ecx movq _s5@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rdx movl (%rdx), %edx sarl $24, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _s6@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rdx movl (%rdx), %edx sarl $8, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _s7@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rdx movl (%rdx), %edx sarl $16, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _sb8@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rdx movl (%rdx), %edx sarl $0, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _sb8@GOTPCREL(%rip), %rax movq (%rax), %rax movq -16(%rbp), %rdx movl (%rdx), %edx sarl $8, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq -8(%rbp), %rax movl %ecx, 4(%rax) movq -16(%rbp), %rax movl 4(%rax), %ecx movq _s5@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rdx movl 4(%rdx), %edx sarl $0, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _s6@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rdx movl 4(%rdx), %edx sarl $8, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _s7@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rdx movl 4(%rdx), %edx sarl $16, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _sb8@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rdx movl 4(%rdx), %edx sarl $24, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _s5@GOTPCREL(%rip), %rax movq (%rax), %rax movq -16(%rbp), %rdx movl (%rdx), %edx sarl $16, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq -8(%rbp), %rax movl %ecx, 8(%rax) movq -16(%rbp), %rax movl 12(%rax), %ecx movq _s5@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rdx movl 8(%rdx), %edx sarl $8, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _s6@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rdx movl 8(%rdx), %edx sarl $16, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _s7@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rdx movl 8(%rdx), %edx sarl $0, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _sb8@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rdx movl 8(%rdx), %edx sarl $24, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _s6@GOTPCREL(%rip), %rax movq (%rax), %rax movq -16(%rbp), %rdx movl (%rdx), %edx sarl $0, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq -8(%rbp), %rax movl %ecx, 12(%rax) movq _s5@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx movl 8(%rcx), %ecx sarl $24, %ecx andl $255, %ecx movslq %ecx, %rcx movl (%rax,%rcx,4), %ecx movq _s6@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rdx movl 8(%rdx), %edx sarl $16, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _s7@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rdx movl 4(%rdx), %edx sarl $0, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _sb8@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rdx movl 4(%rdx), %edx sarl $8, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _s5@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rdx movl (%rdx), %edx sarl $0, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq -24(%rbp), %rax movl %ecx, 48(%rax) movq _s5@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx movl 8(%rcx), %ecx sarl $8, %ecx andl $255, %ecx movslq %ecx, %rcx movl (%rax,%rcx,4), %ecx movq _s6@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rdx movl 8(%rdx), %edx sarl $0, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _s7@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rdx movl 4(%rdx), %edx sarl $16, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _sb8@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rdx movl 4(%rdx), %edx sarl $24, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _s6@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rdx movl 4(%rdx), %edx sarl $0, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq -24(%rbp), %rax movl %ecx, 52(%rax) movq _s5@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx movl 12(%rcx), %ecx sarl $24, %ecx andl $255, %ecx movslq %ecx, %rcx movl (%rax,%rcx,4), %ecx movq _s6@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rdx movl 12(%rdx), %edx sarl $16, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _s7@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rdx movl (%rdx), %edx sarl $0, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _sb8@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rdx movl (%rdx), %edx sarl $8, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _s7@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rdx movl 8(%rdx), %edx sarl $24, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq -24(%rbp), %rax movl %ecx, 56(%rax) movq _s5@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx movl 12(%rcx), %ecx sarl $8, %ecx andl $255, %ecx movslq %ecx, %rcx movl (%rax,%rcx,4), %ecx movq _s6@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rdx movl 12(%rdx), %edx sarl $0, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _s7@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rdx movl (%rdx), %edx sarl $16, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _sb8@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rdx movl (%rdx), %edx sarl $24, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq _sb8@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rdx movl 12(%rdx), %edx sarl $16, %edx andl $255, %edx movslq %edx, %rdx xorl (%rax,%rdx,4), %ecx movq -24(%rbp), %rax movl %ecx, 60(%rax) popq %rbp retq .cfi_endproc ## -- End function .comm _s5,8,3 ## @s5 .comm _s6,8,3 ## @s6 .comm _s7,8,3 ## @s7 .comm _sb8,8,3 ## @sb8 .no_dead_strip _key_schedule .subsections_via_symbols
the_stack_data/377393.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, #48] mov x0, #200 bl _malloc str x0, [sp, #40] ldr x8, [sp, #40] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: mov w8, #1 str w8, [sp, #48] b LBB0_3 LBB0_2: adrp x8, ___stdinp@GOTPAGE ldr x8, [x8, ___stdinp@GOTPAGEOFF] ldr x2, [x8] add x0, sp, #52 str x0, [sp, #24] ; 8-byte Folded Spill mov w1, #100 bl _fgets ldr x0, [sp, #24] ; 8-byte Folded Reload bl _strlen mov x8, x0 str w8, [sp, #36] ldr w8, [sp, #36] ldr x9, [sp, #40] ldr w10, [sp, #36] ; kill: def $x10 killed $w10 str w8, [x9, x10, lsl #2] ldr x8, [sp, #40] ldr w9, [sp, #36] ; kill: def $x9 killed $w9 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 ldr x0, [sp, #40] bl _free str wzr, [sp, #48] b LBB0_3 LBB0_3: ldr w8, [sp, #48] str w8, [sp, #20] ; 4-byte Folded Spill ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_5 b LBB0_4 LBB0_4: bl ___stack_chk_fail LBB0_5: ldr w0, [sp, #20] ; 4-byte Folded Reload ldp x29, x30, [sp, #160] ; 16-byte Folded Reload add sp, sp, #176 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $144, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -116(%rbp) movl $200, %edi callq _malloc movq %rax, -128(%rbp) cmpq $0, -128(%rbp) jne LBB0_2 ## %bb.1: movl $1, -116(%rbp) jmp LBB0_3 LBB0_2: leaq -112(%rbp), %rdi movq ___stdinp@GOTPCREL(%rip), %rax movq (%rax), %rdx movl $100, %esi callq _fgets leaq -112(%rbp), %rdi callq _strlen ## kill: def $eax killed $eax killed $rax movl %eax, -132(%rbp) movl -132(%rbp), %edx movq -128(%rbp), %rax movl -132(%rbp), %ecx ## kill: def $rcx killed $ecx movl %edx, (%rax,%rcx,4) movq -128(%rbp), %rax movl -132(%rbp), %ecx ## kill: def $rcx killed $ecx movl (%rax,%rcx,4), %esi leaq L_.str(%rip), %rdi movb $0, %al callq _printf movq -128(%rbp), %rdi callq _free movl $0, -116(%rbp) LBB0_3: movl -116(%rbp), %eax movl %eax, -136(%rbp) ## 4-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_5 ## %bb.4: movl -136(%rbp), %eax ## 4-byte Reload addq $144, %rsp popq %rbp retq LBB0_5: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d" .subsections_via_symbols
the_stack_data/75137745.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] stur wzr, [x29, #-8] stur wzr, [x29, #-12] stur wzr, [x29, #-16] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _getInt stur w0, [x29, #-8] ldur w8, [x29, #-8] str w8, [sp, #24] ; 4-byte Folded Spill subs w8, w8, #1 cset w8, eq tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: ldr w8, [sp, #24] ; 4-byte Folded Reload subs w8, w8, #2 cset w8, eq tbnz w8, #0, LBB0_6 b LBB0_13 LBB0_2: adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _getInt stur w0, [x29, #-12] bl _check_prime subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: ldur w9, [x29, #-12] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf b LBB0_5 LBB0_4: ldur w9, [x29, #-12] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf b LBB0_5 LBB0_5: b LBB0_14 LBB0_6: adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _getInt stur w0, [x29, #-12] stur wzr, [x29, #-20] b LBB0_7 LBB0_7: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-16] ldur w9, [x29, #-12] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_12 b LBB0_8 LBB0_8: ; in Loop: Header=BB0_7 Depth=1 ldur w0, [x29, #-20] bl _check_prime subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB0_10 b LBB0_9 LBB0_9: ; in Loop: Header=BB0_7 Depth=1 ldur w8, [x29, #-16] add w11, w8, #1 stur w11, [x29, #-16] ldur w9, [x29, #-20] ; implicit-def: $x8 mov x8, x9 mov x9, sp ; implicit-def: $x10 mov x10, x11 str x10, [x9] str x8, [x9, #8] adrp x0, l_.str.7@PAGE add x0, x0, l_.str.7@PAGEOFF bl _printf b LBB0_10 LBB0_10: ; in Loop: Header=BB0_7 Depth=1 b LBB0_11 LBB0_11: ; in Loop: Header=BB0_7 Depth=1 ldur w8, [x29, #-20] add w8, w8, #1 stur w8, [x29, #-20] b LBB0_7 LBB0_12: b LBB0_14 LBB0_13: adrp x0, l_.str.8@PAGE add x0, x0, l_.str.8@PAGEOFF bl _printf b LBB0_14 LBB0_14: mov w0, #0 ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _getInt ; -- Begin function getInt .p2align 2 _getInt: ; @getInt .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] sub x8, x29, #12 str x8, [sp, #8] ; 8-byte Folded Spill stur wzr, [x29, #-12] ldur x8, [x29, #-8] mov x9, sp str x8, [x9] adrp x0, l_.str.9@PAGE add x0, x0, l_.str.9@PAGEOFF bl _printf ldr x8, [sp, #8] ; 8-byte Folded Reload mov x9, sp str x8, [x9] adrp x0, l_.str.10@PAGE add x0, x0, l_.str.10@PAGEOFF bl _scanf ldur w0, [x29, #-12] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _check_prime ; -- Begin function check_prime .p2align 2 _check_prime: ; @check_prime .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, LBB2_2 b LBB2_1 LBB2_1: str wzr, [sp, #12] b LBB2_9 LBB2_2: mov w8, #2 str w8, [sp, #4] b LBB2_3 LBB2_3: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #4] ldr w9, [sp, #8] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB2_8 b LBB2_4 LBB2_4: ; in Loop: Header=BB2_3 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, LBB2_6 b LBB2_5 LBB2_5: str wzr, [sp, #12] b LBB2_9 LBB2_6: ; in Loop: Header=BB2_3 Depth=1 b LBB2_7 LBB2_7: ; in Loop: Header=BB2_3 Depth=1 ldr w8, [sp, #4] add w8, w8, #1 str w8, [sp, #4] b LBB2_3 LBB2_8: mov w8, #1 str w8, [sp, #12] b LBB2_9 LBB2_9: ldr w0, [sp, #12] add sp, sp, #16 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "1. Is it prime or not\n" l_.str.1: ; @.str.1 .asciz "2. Nth prime number\n" l_.str.2: ; @.str.2 .asciz "Choice : " l_.str.3: ; @.str.3 .asciz "Enter a positive integer : " l_.str.4: ; @.str.4 .asciz "%d is a prime number\n" l_.str.5: ; @.str.5 .asciz "%d is not a prime number\n" l_.str.6: ; @.str.6 .asciz "Enter an integer for N : " l_.str.7: ; @.str.7 .asciz "%d. prime number : %d\n" l_.str.8: ; @.str.8 .asciz "Invalid choice!\n" l_.str.9: ; @.str.9 .asciz "%s" l_.str.10: ; @.str.10 .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 $32, %rsp movl $0, -4(%rbp) movl $0, -8(%rbp) movl $0, -12(%rbp) movl $0, -16(%rbp) leaq L_.str(%rip), %rdi xorl %eax, %eax ## kill: def $al killed $al killed $eax movb %al, -25(%rbp) ## 1-byte Spill callq _printf ## kill: def $ecx killed $eax movb -25(%rbp), %al ## 1-byte Reload leaq L_.str.1(%rip), %rdi callq _printf leaq L_.str.2(%rip), %rdi callq _getInt movl %eax, -8(%rbp) movl -8(%rbp), %eax movl %eax, -24(%rbp) ## 4-byte Spill subl $1, %eax je LBB0_1 jmp LBB0_14 LBB0_14: movl -24(%rbp), %eax ## 4-byte Reload subl $2, %eax je LBB0_5 jmp LBB0_12 LBB0_1: leaq L_.str.3(%rip), %rdi callq _getInt movl %eax, %edi movl %edi, -12(%rbp) callq _check_prime cmpl $0, %eax je LBB0_3 ## %bb.2: movl -12(%rbp), %esi leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf jmp LBB0_4 LBB0_3: movl -12(%rbp), %esi leaq L_.str.5(%rip), %rdi movb $0, %al callq _printf LBB0_4: jmp LBB0_13 LBB0_5: leaq L_.str.6(%rip), %rdi callq _getInt movl %eax, -12(%rbp) movl $0, -20(%rbp) LBB0_6: ## =>This Inner Loop Header: Depth=1 movl -16(%rbp), %eax cmpl -12(%rbp), %eax jge LBB0_11 ## %bb.7: ## in Loop: Header=BB0_6 Depth=1 movl -20(%rbp), %edi callq _check_prime cmpl $0, %eax je LBB0_9 ## %bb.8: ## in Loop: Header=BB0_6 Depth=1 movl -16(%rbp), %esi addl $1, %esi movl %esi, -16(%rbp) movl -20(%rbp), %edx leaq L_.str.7(%rip), %rdi movb $0, %al callq _printf LBB0_9: ## in Loop: Header=BB0_6 Depth=1 jmp LBB0_10 LBB0_10: ## in Loop: Header=BB0_6 Depth=1 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB0_6 LBB0_11: jmp LBB0_13 LBB0_12: leaq L_.str.8(%rip), %rdi movb $0, %al callq _printf LBB0_13: xorl %eax, %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _getInt ## -- Begin function getInt .p2align 4, 0x90 _getInt: ## @getInt .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) movq -8(%rbp), %rsi leaq L_.str.9(%rip), %rdi movb $0, %al callq _printf leaq L_.str.10(%rip), %rdi leaq -12(%rbp), %rsi movb $0, %al callq _scanf movl -12(%rbp), %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _check_prime ## -- Begin function check_prime .p2align 4, 0x90 _check_prime: ## @check_prime .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, -8(%rbp) cmpl $2, -8(%rbp) jge LBB2_2 ## %bb.1: movl $0, -4(%rbp) jmp LBB2_9 LBB2_2: movl $2, -12(%rbp) LBB2_3: ## =>This Inner Loop Header: Depth=1 movl -12(%rbp), %eax cmpl -8(%rbp), %eax jge LBB2_8 ## %bb.4: ## in Loop: Header=BB2_3 Depth=1 movl -8(%rbp), %eax cltd idivl -12(%rbp) cmpl $0, %edx jne LBB2_6 ## %bb.5: movl $0, -4(%rbp) jmp LBB2_9 LBB2_6: ## in Loop: Header=BB2_3 Depth=1 jmp LBB2_7 LBB2_7: ## in Loop: Header=BB2_3 Depth=1 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB2_3 LBB2_8: movl $1, -4(%rbp) LBB2_9: movl -4(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "1. Is it prime or not\n" L_.str.1: ## @.str.1 .asciz "2. Nth prime number\n" L_.str.2: ## @.str.2 .asciz "Choice : " L_.str.3: ## @.str.3 .asciz "Enter a positive integer : " L_.str.4: ## @.str.4 .asciz "%d is a prime number\n" L_.str.5: ## @.str.5 .asciz "%d is not a prime number\n" L_.str.6: ## @.str.6 .asciz "Enter an integer for N : " L_.str.7: ## @.str.7 .asciz "%d. prime number : %d\n" L_.str.8: ## @.str.8 .asciz "Invalid choice!\n" L_.str.9: ## @.str.9 .asciz "%s" L_.str.10: ## @.str.10 .asciz "%d" .subsections_via_symbols
the_stack_data/234517843.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _save_vtk ; -- Begin function save_vtk .p2align 2 _save_vtk: ; @save_vtk .cfi_startproc ; %bb.0: sub sp, sp, #96 .cfi_def_cfa_offset 96 stp x29, x30, [sp, #80] ; 16-byte Folded Spill add x29, sp, #80 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] stur x1, [x29, #-16] stur x2, [x29, #-24] stur w3, [x29, #-28] stur w4, [x29, #-32] str x5, [sp, #40] ldr x0, [sp, #40] adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF bl _fopen str x0, [sp, #24] ldr x0, [sp, #24] adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF bl _fprintf ldr x0, [sp, #24] adrp x1, l_.str.2@PAGE add x1, x1, l_.str.2@PAGEOFF bl _fprintf ldr x0, [sp, #24] ldur w8, [x29, #-28] ldur w9, [x29, #-32] mul w10, w8, w9 mov x9, sp ; implicit-def: $x8 mov x8, x10 str x8, [x9] adrp x1, l_.str.3@PAGE add x1, x1, l_.str.3@PAGEOFF bl _fprintf str wzr, [sp, #32] b LBB0_1 LBB0_1: ; =>This Loop Header: Depth=1 ; Child Loop BB0_3 Depth 2 ldr w8, [sp, #32] ldur w9, [x29, #-32] 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, #36] b LBB0_3 LBB0_3: ; Parent Loop BB0_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #36] ldur w9, [x29, #-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 x0, [sp, #24] ldur x8, [x29, #-16] ldrsw x9, [sp, #36] ldr d2, [x8, x9, lsl #3] ldur x8, [x29, #-24] ldrsw x9, [sp, #32] ldr d1, [x8, x9, lsl #3] ldur x8, [x29, #-8] ldr w9, [sp, #32] ldur w10, [x29, #-32] ldr w11, [sp, #36] ldur w12, [x29, #-28] mov w13, #0 mul w12, w12, w13 add w11, w11, w12 mul w10, w10, w11 add w9, w9, w10 ldr d0, [x8, w9, sxtw #3] mov x8, sp str d2, [x8] str d1, [x8, #8] str d0, [x8, #16] adrp x1, l_.str.4@PAGE add x1, x1, l_.str.4@PAGEOFF bl _fprintf b LBB0_5 LBB0_5: ; in Loop: Header=BB0_3 Depth=2 ldr w8, [sp, #36] add w8, w8, #1 str w8, [sp, #36] 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: ldr x0, [sp, #24] ldur w9, [x29, #-32] ; implicit-def: $x8 mov x8, x9 ldur w9, [x29, #-32] ldur w10, [x29, #-28] add w10, w10, #1 mul w10, w9, w10 mov x9, sp str x8, [x9] ; implicit-def: $x8 mov x8, x10 str x8, [x9, #8] adrp x1, l_.str.5@PAGE add x1, x1, l_.str.5@PAGEOFF bl _fprintf str wzr, [sp, #32] b LBB0_9 LBB0_9: ; =>This Loop Header: Depth=1 ; Child Loop BB0_11 Depth 2 ldr w8, [sp, #32] ldur w9, [x29, #-32] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_16 b LBB0_10 LBB0_10: ; in Loop: Header=BB0_9 Depth=1 ldr x0, [sp, #24] ldur w9, [x29, #-28] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x1, l_.str.6@PAGE add x1, x1, l_.str.6@PAGEOFF bl _fprintf str wzr, [sp, #36] b LBB0_11 LBB0_11: ; Parent Loop BB0_9 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #36] ldur w9, [x29, #-28] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_14 b LBB0_12 LBB0_12: ; in Loop: Header=BB0_11 Depth=2 ldr x0, [sp, #24] ldr w8, [sp, #36] ldr w9, [sp, #32] ldur w10, [x29, #-28] mul w9, w9, w10 add w10, w8, w9 mov x9, sp ; implicit-def: $x8 mov x8, x10 str x8, [x9] adrp x1, l_.str.6@PAGE add x1, x1, l_.str.6@PAGEOFF bl _fprintf b LBB0_13 LBB0_13: ; in Loop: Header=BB0_11 Depth=2 ldr w8, [sp, #36] add w8, w8, #1 str w8, [sp, #36] b LBB0_11 LBB0_14: ; in Loop: Header=BB0_9 Depth=1 ldr x0, [sp, #24] adrp x1, l_.str.7@PAGE add x1, x1, l_.str.7@PAGEOFF bl _fprintf 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: ldr x0, [sp, #24] ldur w8, [x29, #-28] ldur w9, [x29, #-32] mul w10, w8, w9 mov x9, sp ; implicit-def: $x8 mov x8, x10 str x8, [x9] adrp x1, l_.str.8@PAGE add x1, x1, l_.str.8@PAGEOFF bl _fprintf str wzr, [sp, #32] b LBB0_17 LBB0_17: ; =>This Loop Header: Depth=1 ; Child Loop BB0_19 Depth 2 ldr w8, [sp, #32] ldur w9, [x29, #-32] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_24 b LBB0_18 LBB0_18: ; in Loop: Header=BB0_17 Depth=1 str wzr, [sp, #36] b LBB0_19 LBB0_19: ; Parent Loop BB0_17 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #36] ldur w9, [x29, #-28] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_22 b LBB0_20 LBB0_20: ; in Loop: Header=BB0_19 Depth=2 ldr x0, [sp, #24] ldur x8, [x29, #-8] ldr w9, [sp, #32] ldur w10, [x29, #-32] ldr w11, [sp, #36] ldur w12, [x29, #-28] mov w13, #0 mul w12, w12, w13 add w11, w11, w12 mul w10, w10, w11 add w9, w9, w10 ldr d0, [x8, w9, sxtw #3] mov x8, sp str d0, [x8] adrp x1, l_.str.9@PAGE add x1, x1, l_.str.9@PAGEOFF bl _fprintf b LBB0_21 LBB0_21: ; in Loop: Header=BB0_19 Depth=2 ldr w8, [sp, #36] add w8, w8, #1 str w8, [sp, #36] b LBB0_19 LBB0_22: ; in Loop: Header=BB0_17 Depth=1 b LBB0_23 LBB0_23: ; in Loop: Header=BB0_17 Depth=1 ldr w8, [sp, #32] add w8, w8, #1 str w8, [sp, #32] b LBB0_17 LBB0_24: ldr x0, [sp, #24] bl _fclose 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 "w" l_.str.1: ; @.str.1 .asciz "# vtk DataFile Version 2.0\n" l_.str.2: ; @.str.2 .asciz "VTK\nASCII\nDATASET POLYDATA\n" l_.str.3: ; @.str.3 .asciz "\nPOINTS %d double\n" l_.str.4: ; @.str.4 .asciz "%e %e %e\n" l_.str.5: ; @.str.5 .asciz "\nVERTICES %d %d\n" l_.str.6: ; @.str.6 .asciz "%d " l_.str.7: ; @.str.7 .asciz "\n" l_.str.8: ; @.str.8 .asciz "POINT_DATA %d\nSCALARS height double 1\nLOOKUP_TABLE default\n" l_.str.9: ; @.str.9 .asciz "%e\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _save_vtk ## -- Begin function save_vtk .p2align 4, 0x90 _save_vtk: ## @save_vtk .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $64, %rsp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) movq %rdx, -24(%rbp) movl %ecx, -28(%rbp) movl %r8d, -32(%rbp) movq %r9, -40(%rbp) movq -40(%rbp), %rdi leaq L_.str(%rip), %rsi callq _fopen movq %rax, -56(%rbp) movq -56(%rbp), %rdi leaq L_.str.1(%rip), %rsi movb $0, %al callq _fprintf movq -56(%rbp), %rdi leaq L_.str.2(%rip), %rsi movb $0, %al callq _fprintf movq -56(%rbp), %rdi movl -28(%rbp), %edx imull -32(%rbp), %edx leaq L_.str.3(%rip), %rsi movb $0, %al callq _fprintf movl $0, -48(%rbp) LBB0_1: ## =>This Loop Header: Depth=1 ## Child Loop BB0_3 Depth 2 movl -48(%rbp), %eax cmpl -32(%rbp), %eax jge LBB0_8 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl $0, -44(%rbp) LBB0_3: ## Parent Loop BB0_1 Depth=1 ## => This Inner Loop Header: Depth=2 movl -44(%rbp), %eax cmpl -28(%rbp), %eax jge LBB0_6 ## %bb.4: ## in Loop: Header=BB0_3 Depth=2 movq -56(%rbp), %rdi movq -16(%rbp), %rax movslq -44(%rbp), %rcx movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero movq -24(%rbp), %rax movslq -48(%rbp), %rcx movsd (%rax,%rcx,8), %xmm1 ## xmm1 = mem[0],zero movq -8(%rbp), %rax movl -48(%rbp), %ecx movl -32(%rbp), %edx movl -44(%rbp), %esi imull $0, -28(%rbp), %r8d addl %r8d, %esi imull %esi, %edx addl %edx, %ecx movslq %ecx, %rcx movsd (%rax,%rcx,8), %xmm2 ## xmm2 = mem[0],zero leaq L_.str.4(%rip), %rsi movb $3, %al callq _fprintf ## %bb.5: ## in Loop: Header=BB0_3 Depth=2 movl -44(%rbp), %eax addl $1, %eax movl %eax, -44(%rbp) jmp LBB0_3 LBB0_6: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_7 LBB0_7: ## in Loop: Header=BB0_1 Depth=1 movl -48(%rbp), %eax addl $1, %eax movl %eax, -48(%rbp) jmp LBB0_1 LBB0_8: movq -56(%rbp), %rdi movl -32(%rbp), %edx movl -32(%rbp), %ecx movl -28(%rbp), %eax addl $1, %eax imull %eax, %ecx leaq L_.str.5(%rip), %rsi movb $0, %al callq _fprintf movl $0, -48(%rbp) LBB0_9: ## =>This Loop Header: Depth=1 ## Child Loop BB0_11 Depth 2 movl -48(%rbp), %eax cmpl -32(%rbp), %eax jge LBB0_16 ## %bb.10: ## in Loop: Header=BB0_9 Depth=1 movq -56(%rbp), %rdi movl -28(%rbp), %edx leaq L_.str.6(%rip), %rsi movb $0, %al callq _fprintf movl $0, -44(%rbp) LBB0_11: ## Parent Loop BB0_9 Depth=1 ## => This Inner Loop Header: Depth=2 movl -44(%rbp), %eax cmpl -28(%rbp), %eax jge LBB0_14 ## %bb.12: ## in Loop: Header=BB0_11 Depth=2 movq -56(%rbp), %rdi movl -44(%rbp), %edx movl -48(%rbp), %eax imull -28(%rbp), %eax addl %eax, %edx leaq L_.str.6(%rip), %rsi movb $0, %al callq _fprintf ## %bb.13: ## in Loop: Header=BB0_11 Depth=2 movl -44(%rbp), %eax addl $1, %eax movl %eax, -44(%rbp) jmp LBB0_11 LBB0_14: ## in Loop: Header=BB0_9 Depth=1 movq -56(%rbp), %rdi leaq L_.str.7(%rip), %rsi movb $0, %al callq _fprintf ## %bb.15: ## in Loop: Header=BB0_9 Depth=1 movl -48(%rbp), %eax addl $1, %eax movl %eax, -48(%rbp) jmp LBB0_9 LBB0_16: movq -56(%rbp), %rdi movl -28(%rbp), %edx imull -32(%rbp), %edx leaq L_.str.8(%rip), %rsi movb $0, %al callq _fprintf movl $0, -48(%rbp) LBB0_17: ## =>This Loop Header: Depth=1 ## Child Loop BB0_19 Depth 2 movl -48(%rbp), %eax cmpl -32(%rbp), %eax jge LBB0_24 ## %bb.18: ## in Loop: Header=BB0_17 Depth=1 movl $0, -44(%rbp) LBB0_19: ## Parent Loop BB0_17 Depth=1 ## => This Inner Loop Header: Depth=2 movl -44(%rbp), %eax cmpl -28(%rbp), %eax jge LBB0_22 ## %bb.20: ## in Loop: Header=BB0_19 Depth=2 movq -56(%rbp), %rdi movq -8(%rbp), %rax movl -48(%rbp), %ecx movl -32(%rbp), %edx movl -44(%rbp), %esi imull $0, -28(%rbp), %r8d addl %r8d, %esi imull %esi, %edx addl %edx, %ecx movslq %ecx, %rcx movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero leaq L_.str.9(%rip), %rsi movb $1, %al callq _fprintf ## %bb.21: ## in Loop: Header=BB0_19 Depth=2 movl -44(%rbp), %eax addl $1, %eax movl %eax, -44(%rbp) jmp LBB0_19 LBB0_22: ## in Loop: Header=BB0_17 Depth=1 jmp LBB0_23 LBB0_23: ## in Loop: Header=BB0_17 Depth=1 movl -48(%rbp), %eax addl $1, %eax movl %eax, -48(%rbp) jmp LBB0_17 LBB0_24: movq -56(%rbp), %rdi callq _fclose addq $64, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "w" L_.str.1: ## @.str.1 .asciz "# vtk DataFile Version 2.0\n" L_.str.2: ## @.str.2 .asciz "VTK\nASCII\nDATASET POLYDATA\n" L_.str.3: ## @.str.3 .asciz "\nPOINTS %d double\n" L_.str.4: ## @.str.4 .asciz "%e %e %e\n" L_.str.5: ## @.str.5 .asciz "\nVERTICES %d %d\n" L_.str.6: ## @.str.6 .asciz "%d " L_.str.7: ## @.str.7 .asciz "\n" L_.str.8: ## @.str.8 .asciz "POINT_DATA %d\nSCALARS height double 1\nLOOKUP_TABLE default\n" L_.str.9: ## @.str.9 .asciz "%e\n" .subsections_via_symbols
the_stack_data/190768484.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/162643557.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, #52] str w0, [sp, #48] str x1, [sp, #40] ldr x8, [sp, #40] ldr x8, [x8, #8] str x8, [sp, #32] add x0, sp, #56 str x0, [sp, #16] ; 8-byte Folded Spill bl _pthread_attr_init ldr x1, [sp, #16] ; 8-byte Folded Reload ldr x3, [sp, #32] add x0, sp, #24 adrp x2, _runner@PAGE add x2, x2, _runner@PAGEOFF bl _pthread_create ldr x0, [sp, #24] mov x1, #0 bl _pthread_join adrp x8, _sum@GOTPAGE ldr x8, [x8, _sum@GOTPAGEOFF] ldr w9, [x8] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: bl ___stack_chk_fail LBB0_2: mov w0, #0 ldp x29, x30, [sp, #128] ; 16-byte Folded Reload add sp, sp, #144 ret .cfi_endproc ; -- End function .globl _runner ; -- Begin function runner .p2align 2 _runner: ; @runner .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, _sum@GOTPAGE ldr x8, [x8, _sum@GOTPAGEOFF] str x8, [sp, #8] ; 8-byte Folded Spill stur x0, [x29, #-8] ldur x0, [x29, #-8] bl _atoi ldr x8, [sp, #8] ; 8-byte Folded Reload str w0, [sp, #16] str wzr, [x8] mov w8, #1 stur w8, [x29, #-12] b LBB1_1 LBB1_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-12] ldr w9, [sp, #16] 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 x9, [sp, #8] ; 8-byte Folded Reload ldur w10, [x29, #-12] ldr w8, [x9] add w8, w8, w10 str w8, [x9] b LBB1_3 LBB1_3: ; in Loop: Header=BB1_1 Depth=1 ldur w8, [x29, #-12] add w8, w8, #1 stur w8, [x29, #-12] b LBB1_1 LBB1_4: mov x0, #0 bl _pthread_exit .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "sum = %d\n" .comm _sum,4,2 ; @sum .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, -76(%rbp) movl %edi, -80(%rbp) movq %rsi, -88(%rbp) movq -88(%rbp), %rax movq 8(%rax), %rax movq %rax, -96(%rbp) leaq -72(%rbp), %rdi callq _pthread_attr_init movq -96(%rbp), %rcx leaq -104(%rbp), %rdi leaq -72(%rbp), %rsi leaq _runner(%rip), %rdx callq _pthread_create movq -104(%rbp), %rdi xorl %eax, %eax movl %eax, %esi callq _pthread_join movq _sum@GOTPCREL(%rip), %rax movl (%rax), %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_2 ## %bb.1: xorl %eax, %eax addq $112, %rsp popq %rbp retq LBB0_2: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _runner ## -- Begin function runner .p2align 4, 0x90 _runner: ## @runner .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) movq -8(%rbp), %rdi callq _atoi movl %eax, -16(%rbp) movq _sum@GOTPCREL(%rip), %rax movl $0, (%rax) movl $1, -12(%rbp) LBB1_1: ## =>This Inner Loop Header: Depth=1 movl -12(%rbp), %eax cmpl -16(%rbp), %eax jg LBB1_4 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 movl -12(%rbp), %ecx movq _sum@GOTPCREL(%rip), %rax addl (%rax), %ecx movq _sum@GOTPCREL(%rip), %rax movl %ecx, (%rax) ## %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: xorl %eax, %eax movl %eax, %edi callq _pthread_exit .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "sum = %d\n" .comm _sum,4,2 ## @sum .subsections_via_symbols
the_stack_data/45449563.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _errquit ; -- Begin function errquit .p2align 2 _errquit: ; @errquit .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #8] ldr x0, [sp, #8] bl _perror mov w0, #1 bl _exit .cfi_endproc ; -- End function .globl _thread_function ; -- Begin function thread_function .p2align 2 _thread_function: ; @thread_function .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, #544 stur x0, [x29, #-24] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf b LBB1_1 LBB1_1: ; =>This Loop Header: Depth=1 ; Child Loop BB1_11 Depth 2 adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] ldr x0, [x8] adrp x1, l_.str.3@PAGE add x1, x1, l_.str.3@PAGEOFF bl _fprintf adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf adrp x8, ___stdinp@GOTPAGE ldr x8, [x8, ___stdinp@GOTPAGEOFF] ldr x2, [x8] add x0, sp, #20 str x0, [sp, #8] ; 8-byte Folded Spill mov w1, #511 bl _fgets ldr x0, [sp, #8] ; 8-byte Folded Reload adrp x1, l_.str.5@PAGE add x1, x1, l_.str.5@PAGEOFF bl _strcmp subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB1_3 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 b LBB1_1 LBB1_3: ; in Loop: Header=BB1_1 Depth=1 add x0, sp, #20 adrp x1, l_.str.6@PAGE add x1, x1, l_.str.6@PAGEOFF bl _strcmp subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB1_5 b LBB1_4 LBB1_4: ; in Loop: Header=BB1_1 Depth=1 adrp x0, l_.str.7@PAGE add x0, x0, l_.str.7@PAGEOFF bl _printf b LBB1_19 LBB1_5: ; in Loop: Header=BB1_1 Depth=1 add x0, sp, #20 adrp x1, l_.str.8@PAGE add x1, x1, l_.str.8@PAGEOFF bl _strcmp subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB1_7 b LBB1_6 LBB1_6: ; in Loop: Header=BB1_1 Depth=1 adrp x8, _num_user@PAGE ldr w9, [x8, _num_user@PAGEOFF] ; 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 b LBB1_18 LBB1_7: ; in Loop: Header=BB1_1 Depth=1 add x0, sp, #20 adrp x1, l_.str.10@PAGE add x1, x1, l_.str.10@PAGEOFF bl _strcmp subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB1_9 b LBB1_8 LBB1_8: ; in Loop: Header=BB1_1 Depth=1 adrp x8, _num_chat@PAGE ldr w9, [x8, _num_chat@PAGEOFF] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.11@PAGE add x0, x0, l_.str.11@PAGEOFF bl _printf b LBB1_17 LBB1_9: ; in Loop: Header=BB1_1 Depth=1 add x0, sp, #20 adrp x1, l_.str.12@PAGE add x1, x1, l_.str.12@PAGEOFF bl _strcmp subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB1_15 b LBB1_10 LBB1_10: ; in Loop: Header=BB1_1 Depth=1 stur wzr, [x29, #-28] b LBB1_11 LBB1_11: ; Parent Loop BB1_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldur w8, [x29, #-28] adrp x9, _num_user@PAGE ldr w9, [x9, _num_user@PAGEOFF] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_14 b LBB1_12 LBB1_12: ; in Loop: Header=BB1_11 Depth=2 ldursw x8, [x29, #-28] mov x9, #20 mul x9, x8, x9 adrp x8, _ip_list@GOTPAGE ldr x8, [x8, _ip_list@GOTPAGEOFF] add x8, x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.13@PAGE add x0, x0, l_.str.13@PAGEOFF bl _printf b LBB1_13 LBB1_13: ; in Loop: Header=BB1_11 Depth=2 ldur w8, [x29, #-28] add w8, w8, #1 stur w8, [x29, #-28] b LBB1_11 LBB1_14: ; in Loop: Header=BB1_1 Depth=1 b LBB1_16 LBB1_15: ; in Loop: Header=BB1_1 Depth=1 adrp x0, l_.str.14@PAGE add x0, x0, l_.str.14@PAGEOFF bl _printf b LBB1_16 LBB1_16: ; in Loop: Header=BB1_1 Depth=1 b LBB1_17 LBB1_17: ; in Loop: Header=BB1_1 Depth=1 b LBB1_18 LBB1_18: ; in Loop: Header=BB1_1 Depth=1 b LBB1_19 LBB1_19: ; in Loop: Header=BB1_1 Depth=1 b LBB1_20 LBB1_20: ; in Loop: Header=BB1_1 Depth=1 b LBB1_1 .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: stp x28, x27, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w27, -24 .cfi_offset w28, -32 sub sp, sp, #928 adrp x8, _listen_sock@GOTPAGE ldr x8, [x8, _listen_sock@GOTPAGEOFF] str x8, [sp, #56] ; 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, #68] ; 4-byte Folded Spill adrp x8, _tm@GOTPAGE ldr x8, [x8, _tm@GOTPAGEOFF] str x8, [sp, #72] ; 8-byte Folded Spill adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] str x8, [sp, #80] ; 8-byte Folded Spill adrp x8, _clisock_list@GOTPAGE ldr x8, [x8, _clisock_list@GOTPAGEOFF] str x8, [sp, #88] ; 8-byte Folded Spill stur wzr, [x29, #-148] stur w0, [x29, #-152] stur x1, [x29, #-160] mov w8, #16 str w8, [sp, #236] ldur w8, [x29, #-152] subs w8, w8, #2 cset w8, eq tbnz w8, #0, LBB2_2 b LBB2_1 LBB2_1: ldur x8, [x29, #-160] ldr x8, [x8] mov x9, sp str x8, [x9] adrp x0, l_.str.15@PAGE add x0, x0, l_.str.15@PAGEOFF bl _printf mov w0, #0 bl _exit LBB2_2: ldur x8, [x29, #-160] ldr x0, [x8, #8] bl _atoi mov x1, x0 mov w0, #0 mov w2, #5 bl _tcp_listen ldr x8, [sp, #56] ; 8-byte Folded Reload str w0, [x8] add x0, sp, #96 mov x3, #0 mov x1, x3 adrp x2, _thread_function@PAGE add x2, x2, _thread_function@PAGEOFF bl _pthread_create b LBB2_3 LBB2_3: ; =>This Loop Header: Depth=1 ; Child Loop BB2_9 Depth 2 ; Child Loop BB2_30 Depth 2 ; Child Loop BB2_43 Depth 3 add x0, sp, #108 str x0, [sp, #48] ; 8-byte Folded Spill mov w1, #0 mov x2, #128 bl _memset ldr x10, [sp, #56] ; 8-byte Folded Reload ldr x9, [sp, #48] ; 8-byte Folded Reload ldr w8, [sp, #68] ; 4-byte Folded Reload ldr w10, [x10] stur w10, [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, LBB2_5 b LBB2_4 LBB2_4: ; in Loop: Header=BB2_3 Depth=1 ldur w0, [x29, #-40] ldur x1, [x29, #-48] mov w2, #0 bl ___darwin_check_fd_set_overflow stur w0, [x29, #-36] b LBB2_6 LBB2_5: ; in Loop: Header=BB2_3 Depth=1 mov w8, #1 stur w8, [x29, #-36] b LBB2_6 LBB2_6: ; in Loop: Header=BB2_3 Depth=1 ldur w8, [x29, #-36] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB2_8 b LBB2_7 LBB2_7: ; in Loop: Header=BB2_3 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 LBB2_8 LBB2_8: ; in Loop: Header=BB2_3 Depth=1 str wzr, [sp, #252] b LBB2_9 LBB2_9: ; Parent Loop BB2_3 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #252] adrp x9, _num_user@PAGE ldr w9, [x9, _num_user@PAGEOFF] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB2_17 b LBB2_10 LBB2_10: ; in Loop: Header=BB2_9 Depth=2 ldr w8, [sp, #68] ; 4-byte Folded Reload ldr x9, [sp, #88] ; 8-byte Folded Reload ldrsw x10, [sp, #252] ldr w9, [x9, x10, lsl #2] stur w9, [x29, #-132] add x9, sp, #108 stur x9, [x29, #-144] ldur w10, [x29, #-132] ldur x9, [x29, #-144] stur w10, [x29, #-24] stur x9, [x29, #-32] tbz w8, #0, LBB2_12 b LBB2_11 LBB2_11: ; in Loop: Header=BB2_9 Depth=2 ldur w0, [x29, #-24] ldur x1, [x29, #-32] mov w2, #0 bl ___darwin_check_fd_set_overflow stur w0, [x29, #-20] b LBB2_13 LBB2_12: ; in Loop: Header=BB2_9 Depth=2 mov w8, #1 stur w8, [x29, #-20] b LBB2_13 LBB2_13: ; in Loop: Header=BB2_9 Depth=2 ldur w8, [x29, #-20] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB2_15 b LBB2_14 LBB2_14: ; in Loop: Header=BB2_9 Depth=2 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 LBB2_15 LBB2_15: ; in Loop: Header=BB2_9 Depth=2 b LBB2_16 LBB2_16: ; in Loop: Header=BB2_9 Depth=2 ldr w8, [sp, #252] add w8, w8, #1 str w8, [sp, #252] b LBB2_9 LBB2_17: ; in Loop: Header=BB2_3 Depth=1 bl _getmax add w9, w0, #1 adrp x8, _maxfdp1@GOTPAGE ldr x8, [x8, _maxfdp1@GOTPAGEOFF] str w9, [x8] ldr w0, [x8] add x1, sp, #108 mov x4, #0 mov x2, x4 mov x3, x4 bl _select subs w8, w0, #0 cset w8, ge tbnz w8, #0, LBB2_19 b LBB2_18 LBB2_18: ; in Loop: Header=BB2_3 Depth=1 adrp x0, l_.str.16@PAGE add x0, x0, l_.str.16@PAGEOFF bl _errquit b LBB2_19 LBB2_19: ; in Loop: Header=BB2_3 Depth=1 ldr w8, [sp, #68] ; 4-byte Folded Reload ldr x9, [sp, #56] ; 8-byte Folded Reload ldr w9, [x9] stur w9, [x29, #-88] add x9, sp, #108 stur x9, [x29, #-96] ldur w10, [x29, #-88] ldur x9, [x29, #-96] stur w10, [x29, #-72] stur x9, [x29, #-80] tbz w8, #0, LBB2_21 b LBB2_20 LBB2_20: ; in Loop: Header=BB2_3 Depth=1 ldur w0, [x29, #-72] ldur x1, [x29, #-80] mov w2, #0 bl ___darwin_check_fd_set_overflow stur w0, [x29, #-68] b LBB2_22 LBB2_21: ; in Loop: Header=BB2_3 Depth=1 mov w8, #1 stur w8, [x29, #-68] b LBB2_22 LBB2_22: ; in Loop: Header=BB2_3 Depth=1 ldur w8, [x29, #-68] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB2_24 b LBB2_23 LBB2_23: ; in Loop: Header=BB2_3 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 LBB2_25 LBB2_24: ; in Loop: Header=BB2_3 Depth=1 stur wzr, [x29, #-84] b LBB2_25 LBB2_25: ; in Loop: Header=BB2_3 Depth=1 ldur w8, [x29, #-84] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB2_29 b LBB2_26 LBB2_26: ; in Loop: Header=BB2_3 Depth=1 ldr x8, [sp, #56] ; 8-byte Folded Reload ldr w0, [x8] sub x1, x29, #176 add x2, sp, #236 bl _accept str w0, [sp, #240] ldr w8, [sp, #240] adds w8, w8, #1 cset w8, ne tbnz w8, #0, LBB2_28 b LBB2_27 LBB2_27: ; in Loop: Header=BB2_3 Depth=1 adrp x0, l_.str.17@PAGE add x0, x0, l_.str.17@PAGEOFF bl _errquit b LBB2_28 LBB2_28: ; in Loop: Header=BB2_3 Depth=1 ldr w0, [sp, #240] sub x1, x29, #176 bl _addClient ldr w8, [sp, #240] str w8, [sp, #44] ; 4-byte Folded Spill adrp x8, _START_STRING@PAGE ldr x9, [x8, _START_STRING@PAGEOFF] str x9, [sp, #32] ; 8-byte Folded Spill ldr x0, [x8, _START_STRING@PAGEOFF] bl _strlen ldr x1, [sp, #32] ; 8-byte Folded Reload mov x2, x0 ldr w0, [sp, #44] ; 4-byte Folded Reload mov w3, #0 bl _send mov x0, #0 bl _time mov x8, x0 adrp x0, _ct@GOTPAGE ldr x0, [x0, _ct@GOTPAGEOFF] str x8, [x0] bl _localtime mov x1, x0 ldr x0, [sp, #72] ; 8-byte Folded Reload mov x2, #56 bl _memcpy mov w0, #1 adrp x1, l_.str.18@PAGE add x1, x1, l_.str.18@PAGEOFF mov x2, #4 bl _write ldr x8, [sp, #72] ; 8-byte Folded Reload ldr w9, [x8, #8] ; implicit-def: $x11 mov x11, x9 ldr w9, [x8, #4] ; implicit-def: $x10 mov x10, x9 ldr w9, [x8] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x11, [x9] str x10, [x9, #8] str x8, [x9, #16] adrp x0, l_.str.19@PAGE add x0, x0, l_.str.19@PAGEOFF bl _printf ldr x8, [sp, #80] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.20@PAGE add x1, x1, l_.str.20@PAGEOFF bl _fprintf adrp x8, _num_user@PAGE ldr w9, [x8, _num_user@PAGEOFF] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.21@PAGE add x0, x0, l_.str.21@PAGEOFF bl _printf ldr x8, [sp, #80] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.22@PAGE add x1, x1, l_.str.22@PAGEOFF bl _fprintf ldr x8, [sp, #80] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.4@PAGE add x1, x1, l_.str.4@PAGEOFF bl _fprintf b LBB2_29 LBB2_29: ; in Loop: Header=BB2_3 Depth=1 str wzr, [sp, #252] b LBB2_30 LBB2_30: ; Parent Loop BB2_3 Depth=1 ; => This Loop Header: Depth=2 ; Child Loop BB2_43 Depth 3 ldr w8, [sp, #252] adrp x9, _num_user@PAGE ldr w9, [x9, _num_user@PAGEOFF] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB2_49 b LBB2_31 LBB2_31: ; in Loop: Header=BB2_30 Depth=2 ldr w8, [sp, #68] ; 4-byte Folded Reload ldr x9, [sp, #88] ; 8-byte Folded Reload ldrsw x10, [sp, #252] ldr w9, [x9, x10, lsl #2] stur w9, [x29, #-104] add x9, sp, #108 stur x9, [x29, #-112] ldur w10, [x29, #-104] ldur x9, [x29, #-112] stur w10, [x29, #-56] stur x9, [x29, #-64] tbz w8, #0, LBB2_33 b LBB2_32 LBB2_32: ; in Loop: Header=BB2_30 Depth=2 ldur w0, [x29, #-56] ldur x1, [x29, #-64] mov w2, #0 bl ___darwin_check_fd_set_overflow stur w0, [x29, #-52] b LBB2_34 LBB2_33: ; in Loop: Header=BB2_30 Depth=2 mov w8, #1 stur w8, [x29, #-52] b LBB2_34 LBB2_34: ; in Loop: Header=BB2_30 Depth=2 ldur w8, [x29, #-52] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB2_36 b LBB2_35 LBB2_35: ; in Loop: Header=BB2_30 Depth=2 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 LBB2_37 LBB2_36: ; in Loop: Header=BB2_30 Depth=2 stur wzr, [x29, #-100] b LBB2_37 LBB2_37: ; in Loop: Header=BB2_30 Depth=2 ldur w8, [x29, #-100] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB2_47 b LBB2_38 LBB2_38: ; in Loop: Header=BB2_30 Depth=2 ldr x8, [sp, #88] ; 8-byte Folded Reload adrp x10, _num_chat@PAGE ldr w9, [x10, _num_chat@PAGEOFF] add w9, w9, #1 str w9, [x10, _num_chat@PAGEOFF] ldrsw x9, [sp, #252] ldr w0, [x8, x9, lsl #2] add x1, sp, #256 mov x2, #511 mov w3, #0 bl _recv mov x8, x0 str w8, [sp, #244] ldr w8, [sp, #244] subs w8, w8, #0 cset w8, gt tbnz w8, #0, LBB2_40 b LBB2_39 LBB2_39: ; in Loop: Header=BB2_30 Depth=2 ldr w0, [sp, #252] bl _removeClient b LBB2_48 LBB2_40: ; in Loop: Header=BB2_30 Depth=2 ldrsw x9, [sp, #244] add x0, sp, #256 mov x8, x0 add x8, x8, x9 strb wzr, [x8] adrp x8, _EXIT_STRING@PAGE ldr x1, [x8, _EXIT_STRING@PAGEOFF] bl _strstr subs x8, x0, #0 cset w8, eq tbnz w8, #0, LBB2_42 b LBB2_41 LBB2_41: ; in Loop: Header=BB2_30 Depth=2 ldr w0, [sp, #252] bl _removeClient b LBB2_48 LBB2_42: ; in Loop: Header=BB2_30 Depth=2 str wzr, [sp, #248] b LBB2_43 LBB2_43: ; Parent Loop BB2_3 Depth=1 ; Parent Loop BB2_30 Depth=2 ; => This Inner Loop Header: Depth=3 ldr w8, [sp, #248] adrp x9, _num_user@PAGE ldr w9, [x9, _num_user@PAGEOFF] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB2_46 b LBB2_44 LBB2_44: ; in Loop: Header=BB2_43 Depth=3 ldr x8, [sp, #88] ; 8-byte Folded Reload ldrsw x9, [sp, #248] ldr w0, [x8, x9, lsl #2] ldrsw x2, [sp, #244] add x1, sp, #256 mov w3, #0 bl _send b LBB2_45 LBB2_45: ; in Loop: Header=BB2_43 Depth=3 ldr w8, [sp, #248] add w8, w8, #1 str w8, [sp, #248] b LBB2_43 LBB2_46: ; in Loop: Header=BB2_30 Depth=2 adrp x0, l_.str.18@PAGE add x0, x0, l_.str.18@PAGEOFF bl _printf ldr x8, [sp, #80] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.23@PAGE add x1, x1, l_.str.23@PAGEOFF bl _fprintf mov x9, sp add x8, sp, #256 str x8, [x9] adrp x0, l_.str.24@PAGE add x0, x0, l_.str.24@PAGEOFF bl _printf ldr x8, [sp, #80] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.22@PAGE add x1, x1, l_.str.22@PAGEOFF bl _fprintf ldr x8, [sp, #80] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.4@PAGE add x1, x1, l_.str.4@PAGEOFF bl _fprintf b LBB2_47 LBB2_47: ; in Loop: Header=BB2_30 Depth=2 b LBB2_48 LBB2_48: ; in Loop: Header=BB2_30 Depth=2 ldr w8, [sp, #252] add w8, w8, #1 str w8, [sp, #252] b LBB2_30 LBB2_49: ; in Loop: Header=BB2_3 Depth=1 b LBB2_3 .cfi_endproc ; -- End function .globl _tcp_listen ; -- Begin function tcp_listen .p2align 2 _tcp_listen: ; @tcp_listen .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] stur w0, [x29, #-28] str w1, [sp, #32] str w2, [sp, #28] mov w0, #2 mov w1, #1 mov w2, #0 bl _socket str w0, [sp, #24] ldr w8, [sp, #24] adds w8, w8, #1 cset w8, ne tbnz w8, #0, LBB3_2 b LBB3_1 LBB3_1: adrp x0, l_.str.27@PAGE add x0, x0, l_.str.27@PAGEOFF bl _perror mov w0, #1 bl _exit LBB3_2: stur xzr, [x29, #-24] stur xzr, [x29, #-16] mov w8, #2 sturb w8, [x29, #-23] b LBB3_3 LBB3_3: ldur w0, [x29, #-28] bl __OSSwapInt32 str w0, [sp, #20] ; 4-byte Folded Spill b LBB3_4 LBB3_4: ldr w8, [sp, #20] ; 4-byte Folded Reload stur w8, [x29, #-20] b LBB3_5 LBB3_5: ldr w8, [sp, #32] and w0, w8, #0xffff bl __OSSwapInt16 and w8, w0, #0xffff str w8, [sp, #16] ; 4-byte Folded Spill b LBB3_6 LBB3_6: ldr w8, [sp, #16] ; 4-byte Folded Reload sub x1, x29, #24 sturh w8, [x29, #-22] ldr w0, [sp, #24] mov w2, #16 bl _bind subs w8, w0, #0 cset w8, ge tbnz w8, #0, LBB3_8 b LBB3_7 LBB3_7: adrp x0, l_.str.28@PAGE add x0, x0, l_.str.28@PAGEOFF bl _perror mov w0, #1 bl _exit LBB3_8: ldr w0, [sp, #24] ldr w1, [sp, #28] bl _listen ldr w8, [sp, #24] 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, LBB3_10 b LBB3_9 LBB3_9: bl ___stack_chk_fail LBB3_10: ldr w0, [sp, #12] ; 4-byte Folded Reload ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .globl _addClient ; -- Begin function addClient .p2align 2 _addClient: ; @addClient .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 w0, [sp, #32] str x1, [sp, #24] ldr x8, [sp, #24] mov w0, #2 add x1, x8, #4 sub x2, x29, #28 str x2, [sp, #8] ; 8-byte Folded Spill mov w3, #20 bl _inet_ntop mov w0, #1 adrp x1, l_.str.18@PAGE add x1, x1, l_.str.18@PAGEOFF mov x2, #4 bl _write adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] ldr x0, [x8] adrp x1, l_.str.20@PAGE add x1, x1, l_.str.20@PAGEOFF bl _fprintf ldr x8, [sp, #8] ; 8-byte Folded Reload mov x9, sp str x8, [x9] adrp x0, l_.str.25@PAGE add x0, x0, l_.str.25@PAGEOFF bl _printf ldr x1, [sp, #8] ; 8-byte Folded Reload ldr w9, [sp, #32] adrp x8, _num_user@PAGE str x8, [sp, #16] ; 8-byte Folded Spill ldrsw x11, [x8, _num_user@PAGEOFF] adrp x10, _clisock_list@GOTPAGE ldr x10, [x10, _clisock_list@GOTPAGEOFF] str w9, [x10, x11, lsl #2] ldrsw x8, [x8, _num_user@PAGEOFF] mov x9, #20 mul x9, x8, x9 adrp x8, _ip_list@GOTPAGE ldr x8, [x8, _ip_list@GOTPAGEOFF] add x0, x8, x9 mov x2, #-1 bl ___strcpy_chk ldr x9, [sp, #16] ; 8-byte Folded Reload ldr w8, [x9, _num_user@PAGEOFF] add w8, w8, #1 str w8, [x9, _num_user@PAGEOFF] ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB4_2 b LBB4_1 LBB4_1: bl ___stack_chk_fail LBB4_2: ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .globl _removeClient ; -- Begin function removeClient .p2align 2 _removeClient: ; @removeClient .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, _clisock_list@GOTPAGE ldr x8, [x8, _clisock_list@GOTPAGEOFF] str x8, [sp, #32] ; 8-byte Folded Spill adrp x9, _tm@GOTPAGE ldr x9, [x9, _tm@GOTPAGEOFF] stur x9, [x29, #-24] ; 8-byte Folded Spill adrp x9, ___stderrp@GOTPAGE ldr x9, [x9, ___stderrp@GOTPAGEOFF] stur x9, [x29, #-16] ; 8-byte Folded Spill stur w0, [x29, #-4] ldursw x9, [x29, #-4] ldr w0, [x8, x9, lsl #2] bl _close ldur w8, [x29, #-4] adrp x9, _num_user@PAGE ldr w9, [x9, _num_user@PAGEOFF] subs w9, w9, #1 subs w8, w8, w9 cset w8, eq tbnz w8, #0, LBB5_2 b LBB5_1 LBB5_1: ldr x10, [sp, #32] ; 8-byte Folded Reload adrp x8, _num_user@PAGE ldr w9, [x8, _num_user@PAGEOFF] subs w9, w9, #1 ldr w9, [x10, w9, sxtw #2] ldursw x11, [x29, #-4] str w9, [x10, x11, lsl #2] ldursw x9, [x29, #-4] mov x10, #20 mul x11, x9, x10 adrp x10, _ip_list@GOTPAGE ldr x10, [x10, _ip_list@GOTPAGEOFF] mov x9, x10 add x0, x9, x11 ldr w8, [x8, _num_user@PAGEOFF] subs w8, w8, #1 mov w9, #20 smaddl x1, w8, w9, x10 mov x2, #-1 bl ___strcpy_chk b LBB5_2 LBB5_2: adrp x9, _num_user@PAGE str x9, [sp, #24] ; 8-byte Folded Spill ldr w8, [x9, _num_user@PAGEOFF] subs w8, w8, #1 str w8, [x9, _num_user@PAGEOFF] mov x0, #0 bl _time mov x8, x0 adrp x0, _ct@GOTPAGE ldr x0, [x0, _ct@GOTPAGEOFF] str x8, [x0] bl _localtime mov x1, x0 ldur x0, [x29, #-24] ; 8-byte Folded Reload mov x2, #56 bl _memcpy mov w0, #1 adrp x1, l_.str.18@PAGE add x1, x1, l_.str.18@PAGEOFF mov x2, #4 bl _write ldur x8, [x29, #-16] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.20@PAGE add x1, x1, l_.str.20@PAGEOFF bl _fprintf ldur x8, [x29, #-24] ; 8-byte Folded Reload ldr w9, [x8, #8] ; implicit-def: $x11 mov x11, x9 ldr w9, [x8, #4] ; implicit-def: $x10 mov x10, x9 ldr w9, [x8] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x11, [x9] str x10, [x9, #8] str x8, [x9, #16] adrp x0, l_.str.19@PAGE add x0, x0, l_.str.19@PAGEOFF bl _printf ldr x8, [sp, #24] ; 8-byte Folded Reload ldr w9, [x8, _num_user@PAGEOFF] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.26@PAGE add x0, x0, l_.str.26@PAGEOFF bl _printf ldur x8, [x29, #-16] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.22@PAGE add x1, x1, l_.str.22@PAGEOFF bl _fprintf ldur x8, [x29, #-16] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.4@PAGE add x1, x1, l_.str.4@PAGEOFF bl _fprintf ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .globl _getmax ; -- Begin function getmax .p2align 2 _getmax: ; @getmax .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 adrp x8, _listen_sock@GOTPAGE ldr x8, [x8, _listen_sock@GOTPAGEOFF] ldr w8, [x8] str w8, [sp, #12] str wzr, [sp, #8] b LBB6_1 LBB6_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #8] adrp x9, _num_user@PAGE ldr w9, [x9, _num_user@PAGEOFF] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB6_6 b LBB6_2 LBB6_2: ; in Loop: Header=BB6_1 Depth=1 ldrsw x9, [sp, #8] adrp x8, _clisock_list@GOTPAGE ldr x8, [x8, _clisock_list@GOTPAGEOFF] ldr w8, [x8, x9, lsl #2] ldr w9, [sp, #12] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB6_4 b LBB6_3 LBB6_3: ; in Loop: Header=BB6_1 Depth=1 ldrsw x9, [sp, #8] adrp x8, _clisock_list@GOTPAGE ldr x8, [x8, _clisock_list@GOTPAGEOFF] ldr w8, [x8, x9, lsl #2] str w8, [sp, #12] b LBB6_4 LBB6_4: ; in Loop: Header=BB6_1 Depth=1 b LBB6_5 LBB6_5: ; in Loop: Header=BB6_1 Depth=1 ldr w8, [sp, #8] add w8, w8, #1 str w8, [sp, #8] b LBB6_1 LBB6_6: ldr w0, [sp, #12] add sp, sp, #16 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function _OSSwapInt32 __OSSwapInt32: ; @_OSSwapInt32 .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #12] ldr w8, [sp, #12] rev w8, w8 str w8, [sp, #12] ldr w0, [sp, #12] add sp, sp, #16 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function _OSSwapInt16 __OSSwapInt16: ; @_OSSwapInt16 .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 strh w0, [sp, #14] ldrh w9, [sp, #14] ldrh w8, [sp, #14] asr w8, w8, #8 orr w8, w8, w9, lsl #8 and w0, w8, #0xffff add sp, sp, #16 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "exit" .section __DATA,__data .globl _EXIT_STRING ; @EXIT_STRING .p2align 3 _EXIT_STRING: .quad l_.str .section __TEXT,__cstring,cstring_literals l_.str.1: ; @.str.1 .asciz "Connected to chat_server \n" .section __DATA,__data .globl _START_STRING ; @START_STRING .p2align 3 _START_STRING: .quad l_.str.1 .globl _num_user ; @num_user .zerofill __DATA,__common,_num_user,4,2 .globl _num_chat ; @num_chat .zerofill __DATA,__common,_num_chat,4,2 .section __TEXT,__cstring,cstring_literals l_.str.2: ; @.str.2 .asciz "\353\252\205\353\240\271\354\226\264 \353\252\251\353\241\235 : help, num_user, num_chat, ip_list\n" l_.str.3: ; @.str.3 .asciz "\033[1;32m" l_.str.4: ; @.str.4 .asciz "server>" l_.str.5: ; @.str.5 .asciz "\n" l_.str.6: ; @.str.6 .asciz "help\n" l_.str.7: ; @.str.7 .asciz "help, num_user, num_chat, ip_list\n" l_.str.8: ; @.str.8 .asciz "num_user\n" l_.str.9: ; @.str.9 .asciz "\355\230\204\354\236\254 \354\260\270\352\260\200\354\236\220 \354\210\230 = %d\n" l_.str.10: ; @.str.10 .asciz "num_chat\n" l_.str.11: ; @.str.11 .asciz "\354\247\200\352\270\210\352\271\214\354\247\200 \354\230\244\352\260\204 \353\214\200\355\231\224\354\235\230 \354\210\230 = %d\n" l_.str.12: ; @.str.12 .asciz "ip_list\n" l_.str.13: ; @.str.13 .asciz "%s\n" .comm _ip_list,20480,0 ; @ip_list l_.str.14: ; @.str.14 .asciz "\355\225\264\353\213\271 \353\252\205\353\240\271\354\226\264\352\260\200 \354\227\206\354\212\265\353\213\210\353\213\244.help\353\245\274 \354\260\270\354\241\260\355\225\230\354\204\270\354\232\224.\n" l_.str.15: ; @.str.15 .asciz "\354\202\254\354\232\251\353\262\225 :%s port\n" .comm _listen_sock,4,2 ; @listen_sock .comm _clisock_list,4096,2 ; @clisock_list .comm _maxfdp1,4,2 ; @maxfdp1 l_.str.16: ; @.str.16 .asciz "select fail" l_.str.17: ; @.str.17 .asciz "accept fail" .comm _ct,8,3 ; @ct .comm _tm,56,3 ; @tm l_.str.18: ; @.str.18 .asciz "\033[0G" l_.str.19: ; @.str.19 .asciz "[%02d:%02d:%02d]" l_.str.20: ; @.str.20 .asciz "\033[33m" l_.str.21: ; @.str.21 .asciz "\354\202\254\354\232\251\354\236\220 1\353\252\205 \354\266\224\352\260\200. \355\230\204\354\236\254 \354\260\270\352\260\200\354\236\220 \354\210\230 = %d\n" l_.str.22: ; @.str.22 .asciz "\033[32m" l_.str.23: ; @.str.23 .asciz "\033[97m" l_.str.24: ; @.str.24 .asciz "%s" l_.str.25: ; @.str.25 .asciz "new client: %s\n" l_.str.26: ; @.str.26 .asciz "\354\261\204\355\214\205 \354\260\270\352\260\200\354\236\220 1\353\252\205 \355\203\210\355\207\264. \355\230\204\354\236\254 \354\260\270\352\260\200\354\236\220 \354\210\230 = %d\n" l_.str.27: ; @.str.27 .asciz "socket fail" l_.str.28: ; @.str.28 .asciz "bind fail" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _errquit ## -- Begin function errquit .p2align 4, 0x90 _errquit: ## @errquit .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) movq -8(%rbp), %rdi callq _perror movl $1, %edi callq _exit .cfi_endproc ## -- End function .globl _thread_function ## -- Begin function thread_function .p2align 4, 0x90 _thread_function: ## @thread_function .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $528, %rsp ## imm = 0x210 movq %rdi, -8(%rbp) leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf LBB1_1: ## =>This Loop Header: Depth=1 ## Child Loop BB1_11 Depth 2 movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.3(%rip), %rsi movb $0, %al callq _fprintf leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf leaq -528(%rbp), %rdi movq ___stdinp@GOTPCREL(%rip), %rax movq (%rax), %rdx movl $511, %esi ## imm = 0x1FF callq _fgets leaq -528(%rbp), %rdi leaq L_.str.5(%rip), %rsi callq _strcmp cmpl $0, %eax jne LBB1_3 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 jmp LBB1_1 LBB1_3: ## in Loop: Header=BB1_1 Depth=1 leaq -528(%rbp), %rdi leaq L_.str.6(%rip), %rsi callq _strcmp cmpl $0, %eax jne LBB1_5 ## %bb.4: ## in Loop: Header=BB1_1 Depth=1 leaq L_.str.7(%rip), %rdi movb $0, %al callq _printf jmp LBB1_19 LBB1_5: ## in Loop: Header=BB1_1 Depth=1 leaq -528(%rbp), %rdi leaq L_.str.8(%rip), %rsi callq _strcmp cmpl $0, %eax jne LBB1_7 ## %bb.6: ## in Loop: Header=BB1_1 Depth=1 movl _num_user(%rip), %esi leaq L_.str.9(%rip), %rdi movb $0, %al callq _printf jmp LBB1_18 LBB1_7: ## in Loop: Header=BB1_1 Depth=1 leaq -528(%rbp), %rdi leaq L_.str.10(%rip), %rsi callq _strcmp cmpl $0, %eax jne LBB1_9 ## %bb.8: ## in Loop: Header=BB1_1 Depth=1 movl _num_chat(%rip), %esi leaq L_.str.11(%rip), %rdi movb $0, %al callq _printf jmp LBB1_17 LBB1_9: ## in Loop: Header=BB1_1 Depth=1 leaq -528(%rbp), %rdi leaq L_.str.12(%rip), %rsi callq _strcmp cmpl $0, %eax jne LBB1_15 ## %bb.10: ## in Loop: Header=BB1_1 Depth=1 movl $0, -12(%rbp) LBB1_11: ## Parent Loop BB1_1 Depth=1 ## => This Inner Loop Header: Depth=2 movl -12(%rbp), %eax cmpl _num_user(%rip), %eax jge LBB1_14 ## %bb.12: ## in Loop: Header=BB1_11 Depth=2 movslq -12(%rbp), %rax movq _ip_list@GOTPCREL(%rip), %rsi imulq $20, %rax, %rax addq %rax, %rsi leaq L_.str.13(%rip), %rdi movb $0, %al callq _printf ## %bb.13: ## in Loop: Header=BB1_11 Depth=2 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB1_11 LBB1_14: ## in Loop: Header=BB1_1 Depth=1 jmp LBB1_16 LBB1_15: ## in Loop: Header=BB1_1 Depth=1 leaq L_.str.14(%rip), %rdi movb $0, %al callq _printf LBB1_16: ## in Loop: Header=BB1_1 Depth=1 jmp LBB1_17 LBB1_17: ## in Loop: Header=BB1_1 Depth=1 jmp LBB1_18 LBB1_18: ## in Loop: Header=BB1_1 Depth=1 jmp LBB1_19 LBB1_19: ## in Loop: Header=BB1_1 Depth=1 jmp LBB1_20 LBB1_20: ## in Loop: Header=BB1_1 Depth=1 jmp LBB1_1 .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $880, %rsp ## imm = 0x370 movl $0, -132(%rbp) movl %edi, -136(%rbp) movq %rsi, -144(%rbp) movl $16, -692(%rbp) cmpl $2, -136(%rbp) je LBB2_2 ## %bb.1: movq -144(%rbp), %rax movq (%rax), %rsi leaq L_.str.15(%rip), %rdi xorl %eax, %eax movl %eax, -844(%rbp) ## 4-byte Spill callq _printf movl -844(%rbp), %edi ## 4-byte Reload callq _exit LBB2_2: movq -144(%rbp), %rax movq 8(%rax), %rdi callq _atoi movl %eax, %esi xorl %edi, %edi movl $5, %edx callq _tcp_listen movl %eax, %ecx movq _listen_sock@GOTPCREL(%rip), %rax movl %ecx, (%rax) leaq -840(%rbp), %rdi xorl %eax, %eax movl %eax, %ecx leaq _thread_function(%rip), %rdx movq %rcx, %rsi callq _pthread_create LBB2_3: ## =>This Loop Header: Depth=1 ## Child Loop BB2_9 Depth 2 ## Child Loop BB2_30 Depth 2 ## Child Loop BB2_43 Depth 3 xorps %xmm0, %xmm0 movaps %xmm0, -864(%rbp) ## 16-byte Spill movaps %xmm0, -720(%rbp) movaps %xmm0, -736(%rbp) movaps %xmm0, -752(%rbp) movaps %xmm0, -768(%rbp) movaps %xmm0, -784(%rbp) movaps %xmm0, -800(%rbp) movaps %xmm0, -816(%rbp) movaps %xmm0, -832(%rbp) movq _listen_sock@GOTPCREL(%rip), %rax movl (%rax), %eax movl %eax, -100(%rbp) leaq -832(%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 LBB2_5 jmp LBB2_4 LBB2_4: ## in Loop: Header=BB2_3 Depth=1 movl -24(%rbp), %edi movq -32(%rbp), %rsi xorl %edx, %edx callq ___darwin_check_fd_set_overflow movl %eax, -20(%rbp) jmp LBB2_6 LBB2_5: ## in Loop: Header=BB2_3 Depth=1 movl $1, -20(%rbp) LBB2_6: ## in Loop: Header=BB2_3 Depth=1 cmpl $0, -20(%rbp) je LBB2_8 ## %bb.7: ## in Loop: Header=BB2_3 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) LBB2_8: ## in Loop: Header=BB2_3 Depth=1 movl $0, -676(%rbp) LBB2_9: ## Parent Loop BB2_3 Depth=1 ## => This Inner Loop Header: Depth=2 movl -676(%rbp), %eax cmpl _num_user(%rip), %eax jge LBB2_17 ## %bb.10: ## in Loop: Header=BB2_9 Depth=2 movslq -676(%rbp), %rcx movq _clisock_list@GOTPCREL(%rip), %rax movl (%rax,%rcx,4), %eax movl %eax, -116(%rbp) leaq -832(%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 LBB2_12 jmp LBB2_11 LBB2_11: ## in Loop: Header=BB2_9 Depth=2 movl -8(%rbp), %edi movq -16(%rbp), %rsi xorl %edx, %edx callq ___darwin_check_fd_set_overflow movl %eax, -4(%rbp) jmp LBB2_13 LBB2_12: ## in Loop: Header=BB2_9 Depth=2 movl $1, -4(%rbp) LBB2_13: ## in Loop: Header=BB2_9 Depth=2 cmpl $0, -4(%rbp) je LBB2_15 ## %bb.14: ## in Loop: Header=BB2_9 Depth=2 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) LBB2_15: ## in Loop: Header=BB2_9 Depth=2 jmp LBB2_16 LBB2_16: ## in Loop: Header=BB2_9 Depth=2 movl -676(%rbp), %eax addl $1, %eax movl %eax, -676(%rbp) jmp LBB2_9 LBB2_17: ## in Loop: Header=BB2_3 Depth=1 callq _getmax movl %eax, %ecx addl $1, %ecx movq _maxfdp1@GOTPCREL(%rip), %rax movl %ecx, (%rax) movq _maxfdp1@GOTPCREL(%rip), %rax movl (%rax), %edi leaq -832(%rbp), %rsi xorl %eax, %eax movl %eax, %r8d movq %r8, %rdx movq %r8, %rcx callq _select$1050 cmpl $0, %eax jge LBB2_19 ## %bb.18: ## in Loop: Header=BB2_3 Depth=1 leaq L_.str.16(%rip), %rdi callq _errquit LBB2_19: ## in Loop: Header=BB2_3 Depth=1 movq _listen_sock@GOTPCREL(%rip), %rax movl (%rax), %eax movl %eax, -72(%rbp) leaq -832(%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 LBB2_21 jmp LBB2_20 LBB2_20: ## in Loop: Header=BB2_3 Depth=1 movl -56(%rbp), %edi movq -64(%rbp), %rsi xorl %edx, %edx callq ___darwin_check_fd_set_overflow movl %eax, -52(%rbp) jmp LBB2_22 LBB2_21: ## in Loop: Header=BB2_3 Depth=1 movl $1, -52(%rbp) LBB2_22: ## in Loop: Header=BB2_3 Depth=1 cmpl $0, -52(%rbp) je LBB2_24 ## %bb.23: ## in Loop: Header=BB2_3 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 LBB2_25 LBB2_24: ## in Loop: Header=BB2_3 Depth=1 movl $0, -68(%rbp) LBB2_25: ## in Loop: Header=BB2_3 Depth=1 cmpl $0, -68(%rbp) je LBB2_29 ## %bb.26: ## in Loop: Header=BB2_3 Depth=1 movq _listen_sock@GOTPCREL(%rip), %rax movl (%rax), %edi leaq -160(%rbp), %rsi leaq -692(%rbp), %rdx callq _accept movl %eax, -688(%rbp) cmpl $-1, -688(%rbp) jne LBB2_28 ## %bb.27: ## in Loop: Header=BB2_3 Depth=1 leaq L_.str.17(%rip), %rdi callq _errquit LBB2_28: ## in Loop: Header=BB2_3 Depth=1 movl -688(%rbp), %edi leaq -160(%rbp), %rsi callq _addClient movl -688(%rbp), %eax movl %eax, -876(%rbp) ## 4-byte Spill movq _START_STRING(%rip), %rax movq %rax, -872(%rbp) ## 8-byte Spill movq _START_STRING(%rip), %rdi callq _strlen movl -876(%rbp), %edi ## 4-byte Reload movq -872(%rbp), %rsi ## 8-byte Reload movq %rax, %rdx xorl %ecx, %ecx callq _send xorl %eax, %eax movl %eax, %edi callq _time movq %rax, %rcx movq _ct@GOTPCREL(%rip), %rax movq %rcx, (%rax) movq _ct@GOTPCREL(%rip), %rdi callq _localtime movq %rax, %rsi movq _tm@GOTPCREL(%rip), %rdi movl $56, %edx callq _memcpy movl $1, %edi leaq L_.str.18(%rip), %rsi movl $4, %edx callq _write movq _tm@GOTPCREL(%rip), %rax movl 8(%rax), %esi movq _tm@GOTPCREL(%rip), %rax movl 4(%rax), %edx movq _tm@GOTPCREL(%rip), %rax movl (%rax), %ecx leaq L_.str.19(%rip), %rdi movb $0, %al callq _printf movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.20(%rip), %rsi movb $0, %al callq _fprintf movl _num_user(%rip), %esi leaq L_.str.21(%rip), %rdi movb $0, %al callq _printf movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.22(%rip), %rsi movb $0, %al callq _fprintf movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.4(%rip), %rsi movb $0, %al callq _fprintf LBB2_29: ## in Loop: Header=BB2_3 Depth=1 movl $0, -676(%rbp) LBB2_30: ## Parent Loop BB2_3 Depth=1 ## => This Loop Header: Depth=2 ## Child Loop BB2_43 Depth 3 movl -676(%rbp), %eax cmpl _num_user(%rip), %eax jge LBB2_49 ## %bb.31: ## in Loop: Header=BB2_30 Depth=2 movslq -676(%rbp), %rcx movq _clisock_list@GOTPCREL(%rip), %rax movl (%rax,%rcx,4), %eax movl %eax, -88(%rbp) leaq -832(%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 LBB2_33 jmp LBB2_32 LBB2_32: ## in Loop: Header=BB2_30 Depth=2 movl -40(%rbp), %edi movq -48(%rbp), %rsi xorl %edx, %edx callq ___darwin_check_fd_set_overflow movl %eax, -36(%rbp) jmp LBB2_34 LBB2_33: ## in Loop: Header=BB2_30 Depth=2 movl $1, -36(%rbp) LBB2_34: ## in Loop: Header=BB2_30 Depth=2 cmpl $0, -36(%rbp) je LBB2_36 ## %bb.35: ## in Loop: Header=BB2_30 Depth=2 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 LBB2_37 LBB2_36: ## in Loop: Header=BB2_30 Depth=2 movl $0, -84(%rbp) LBB2_37: ## in Loop: Header=BB2_30 Depth=2 cmpl $0, -84(%rbp) je LBB2_47 ## %bb.38: ## in Loop: Header=BB2_30 Depth=2 movl _num_chat(%rip), %eax addl $1, %eax movl %eax, _num_chat(%rip) movslq -676(%rbp), %rcx movq _clisock_list@GOTPCREL(%rip), %rax movl (%rax,%rcx,4), %edi leaq -672(%rbp), %rsi movl $511, %edx ## imm = 0x1FF xorl %ecx, %ecx callq _recv ## kill: def $eax killed $eax killed $rax movl %eax, -684(%rbp) cmpl $0, -684(%rbp) jg LBB2_40 ## %bb.39: ## in Loop: Header=BB2_30 Depth=2 movl -676(%rbp), %edi callq _removeClient jmp LBB2_48 LBB2_40: ## in Loop: Header=BB2_30 Depth=2 movslq -684(%rbp), %rax movb $0, -672(%rbp,%rax) leaq -672(%rbp), %rdi movq _EXIT_STRING(%rip), %rsi callq _strstr cmpq $0, %rax je LBB2_42 ## %bb.41: ## in Loop: Header=BB2_30 Depth=2 movl -676(%rbp), %edi callq _removeClient jmp LBB2_48 LBB2_42: ## in Loop: Header=BB2_30 Depth=2 movl $0, -680(%rbp) LBB2_43: ## Parent Loop BB2_3 Depth=1 ## Parent Loop BB2_30 Depth=2 ## => This Inner Loop Header: Depth=3 movl -680(%rbp), %eax cmpl _num_user(%rip), %eax jge LBB2_46 ## %bb.44: ## in Loop: Header=BB2_43 Depth=3 movslq -680(%rbp), %rcx movq _clisock_list@GOTPCREL(%rip), %rax movl (%rax,%rcx,4), %edi leaq -672(%rbp), %rsi movslq -684(%rbp), %rdx xorl %ecx, %ecx callq _send ## %bb.45: ## in Loop: Header=BB2_43 Depth=3 movl -680(%rbp), %eax addl $1, %eax movl %eax, -680(%rbp) jmp LBB2_43 LBB2_46: ## in Loop: Header=BB2_30 Depth=2 leaq L_.str.18(%rip), %rdi movb $0, %al callq _printf movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.23(%rip), %rsi movb $0, %al callq _fprintf leaq -672(%rbp), %rsi leaq L_.str.24(%rip), %rdi movb $0, %al callq _printf movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.22(%rip), %rsi movb $0, %al callq _fprintf movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.4(%rip), %rsi movb $0, %al callq _fprintf LBB2_47: ## in Loop: Header=BB2_30 Depth=2 jmp LBB2_48 LBB2_48: ## in Loop: Header=BB2_30 Depth=2 movl -676(%rbp), %eax addl $1, %eax movl %eax, -676(%rbp) jmp LBB2_30 LBB2_49: ## in Loop: Header=BB2_3 Depth=1 jmp LBB2_3 .cfi_endproc ## -- End function .globl _tcp_listen ## -- Begin function tcp_listen .p2align 4, 0x90 _tcp_listen: ## @tcp_listen .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, -28(%rbp) movl %esi, -32(%rbp) movl %edx, -36(%rbp) movl $2, %edi movl $1, %esi xorl %edx, %edx callq _socket movl %eax, -40(%rbp) cmpl $-1, -40(%rbp) jne LBB3_2 ## %bb.1: leaq L_.str.27(%rip), %rdi callq _perror movl $1, %edi callq _exit LBB3_2: leaq -24(%rbp), %rdi xorl %esi, %esi movl $16, %edx callq _memset movb $2, -23(%rbp) ## %bb.3: movl -28(%rbp), %edi callq __OSSwapInt32 movl %eax, -44(%rbp) ## 4-byte Spill ## %bb.4: movl -44(%rbp), %eax ## 4-byte Reload movl %eax, -20(%rbp) ## %bb.5: movl -32(%rbp), %eax ## kill: def $ax killed $ax killed $eax movzwl %ax, %edi callq __OSSwapInt16 movzwl %ax, %eax movl %eax, -48(%rbp) ## 4-byte Spill ## %bb.6: movl -48(%rbp), %eax ## 4-byte Reload movw %ax, -22(%rbp) movl -40(%rbp), %edi leaq -24(%rbp), %rsi movl $16, %edx callq _bind cmpl $0, %eax jge LBB3_8 ## %bb.7: leaq L_.str.28(%rip), %rdi callq _perror movl $1, %edi callq _exit LBB3_8: movl -40(%rbp), %edi movl -36(%rbp), %esi callq _listen movl -40(%rbp), %eax movl %eax, -52(%rbp) ## 4-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB3_10 ## %bb.9: movl -52(%rbp), %eax ## 4-byte Reload addq $64, %rsp popq %rbp retq LBB3_10: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _addClient ## -- Begin function addClient .p2align 4, 0x90 _addClient: ## @addClient .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 %edi, -36(%rbp) movq %rsi, -48(%rbp) movq -48(%rbp), %rsi addq $4, %rsi leaq -32(%rbp), %rdx movl $2, %edi movl $20, %ecx callq _inet_ntop movl $1, %edi leaq L_.str.18(%rip), %rsi movl $4, %edx callq _write movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.20(%rip), %rsi movb $0, %al callq _fprintf leaq -32(%rbp), %rsi leaq L_.str.25(%rip), %rdi movb $0, %al callq _printf movl -36(%rbp), %edx movslq _num_user(%rip), %rcx movq _clisock_list@GOTPCREL(%rip), %rax movl %edx, (%rax,%rcx,4) movslq _num_user(%rip), %rax movq _ip_list@GOTPCREL(%rip), %rdi imulq $20, %rax, %rax addq %rax, %rdi leaq -32(%rbp), %rsi movq $-1, %rdx callq ___strcpy_chk movl _num_user(%rip), %eax addl $1, %eax movl %eax, _num_user(%rip) movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB4_2 ## %bb.1: addq $48, %rsp popq %rbp retq LBB4_2: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _removeClient ## -- Begin function removeClient .p2align 4, 0x90 _removeClient: ## @removeClient .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) movslq -4(%rbp), %rcx movq _clisock_list@GOTPCREL(%rip), %rax movl (%rax,%rcx,4), %edi callq _close movl -4(%rbp), %eax movl _num_user(%rip), %ecx subl $1, %ecx cmpl %ecx, %eax je LBB5_2 ## %bb.1: movl _num_user(%rip), %eax subl $1, %eax movslq %eax, %rcx movq _clisock_list@GOTPCREL(%rip), %rax movl (%rax,%rcx,4), %edx movslq -4(%rbp), %rcx movq _clisock_list@GOTPCREL(%rip), %rax movl %edx, (%rax,%rcx,4) movslq -4(%rbp), %rax movq _ip_list@GOTPCREL(%rip), %rdi imulq $20, %rax, %rax addq %rax, %rdi movl _num_user(%rip), %eax subl $1, %eax cltq movq _ip_list@GOTPCREL(%rip), %rsi imulq $20, %rax, %rax addq %rax, %rsi movq $-1, %rdx callq ___strcpy_chk LBB5_2: movl _num_user(%rip), %eax addl $-1, %eax movl %eax, _num_user(%rip) xorl %eax, %eax movl %eax, %edi callq _time movq %rax, %rcx movq _ct@GOTPCREL(%rip), %rax movq %rcx, (%rax) movq _ct@GOTPCREL(%rip), %rdi callq _localtime movq %rax, %rsi movq _tm@GOTPCREL(%rip), %rdi movl $56, %edx callq _memcpy movl $1, %edi leaq L_.str.18(%rip), %rsi movl $4, %edx callq _write movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.20(%rip), %rsi movb $0, %al callq _fprintf movq _tm@GOTPCREL(%rip), %rax movl 8(%rax), %esi movq _tm@GOTPCREL(%rip), %rax movl 4(%rax), %edx movq _tm@GOTPCREL(%rip), %rax movl (%rax), %ecx leaq L_.str.19(%rip), %rdi movb $0, %al callq _printf movl _num_user(%rip), %esi leaq L_.str.26(%rip), %rdi movb $0, %al callq _printf movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.22(%rip), %rsi movb $0, %al callq _fprintf movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.4(%rip), %rsi movb $0, %al callq _fprintf addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _getmax ## -- Begin function getmax .p2align 4, 0x90 _getmax: ## @getmax .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq _listen_sock@GOTPCREL(%rip), %rax movl (%rax), %eax movl %eax, -4(%rbp) movl $0, -8(%rbp) LBB6_1: ## =>This Inner Loop Header: Depth=1 movl -8(%rbp), %eax cmpl _num_user(%rip), %eax jge LBB6_6 ## %bb.2: ## in Loop: Header=BB6_1 Depth=1 movslq -8(%rbp), %rcx movq _clisock_list@GOTPCREL(%rip), %rax movl (%rax,%rcx,4), %eax cmpl -4(%rbp), %eax jle LBB6_4 ## %bb.3: ## in Loop: Header=BB6_1 Depth=1 movslq -8(%rbp), %rcx movq _clisock_list@GOTPCREL(%rip), %rax movl (%rax,%rcx,4), %eax movl %eax, -4(%rbp) LBB6_4: ## in Loop: Header=BB6_1 Depth=1 jmp LBB6_5 LBB6_5: ## in Loop: Header=BB6_1 Depth=1 movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) jmp LBB6_1 LBB6_6: movl -4(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function _OSSwapInt32 __OSSwapInt32: ## @_OSSwapInt32 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, -4(%rbp) movl -4(%rbp), %eax bswapl %eax popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function _OSSwapInt16 __OSSwapInt16: ## @_OSSwapInt16 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movw %di, %ax movw %ax, -2(%rbp) movzwl -2(%rbp), %eax shll $8, %eax movzwl -2(%rbp), %ecx sarl $8, %ecx orl %ecx, %eax ## kill: def $ax killed $ax killed $eax movzwl %ax, %eax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "exit" .section __DATA,__data .globl _EXIT_STRING ## @EXIT_STRING .p2align 3 _EXIT_STRING: .quad L_.str .section __TEXT,__cstring,cstring_literals L_.str.1: ## @.str.1 .asciz "Connected to chat_server \n" .section __DATA,__data .globl _START_STRING ## @START_STRING .p2align 3 _START_STRING: .quad L_.str.1 .globl _num_user ## @num_user .zerofill __DATA,__common,_num_user,4,2 .globl _num_chat ## @num_chat .zerofill __DATA,__common,_num_chat,4,2 .section __TEXT,__cstring,cstring_literals L_.str.2: ## @.str.2 .asciz "\353\252\205\353\240\271\354\226\264 \353\252\251\353\241\235 : help, num_user, num_chat, ip_list\n" L_.str.3: ## @.str.3 .asciz "\033[1;32m" L_.str.4: ## @.str.4 .asciz "server>" L_.str.5: ## @.str.5 .asciz "\n" L_.str.6: ## @.str.6 .asciz "help\n" L_.str.7: ## @.str.7 .asciz "help, num_user, num_chat, ip_list\n" L_.str.8: ## @.str.8 .asciz "num_user\n" L_.str.9: ## @.str.9 .asciz "\355\230\204\354\236\254 \354\260\270\352\260\200\354\236\220 \354\210\230 = %d\n" L_.str.10: ## @.str.10 .asciz "num_chat\n" L_.str.11: ## @.str.11 .asciz "\354\247\200\352\270\210\352\271\214\354\247\200 \354\230\244\352\260\204 \353\214\200\355\231\224\354\235\230 \354\210\230 = %d\n" L_.str.12: ## @.str.12 .asciz "ip_list\n" L_.str.13: ## @.str.13 .asciz "%s\n" .comm _ip_list,20480,4 ## @ip_list L_.str.14: ## @.str.14 .asciz "\355\225\264\353\213\271 \353\252\205\353\240\271\354\226\264\352\260\200 \354\227\206\354\212\265\353\213\210\353\213\244.help\353\245\274 \354\260\270\354\241\260\355\225\230\354\204\270\354\232\224.\n" L_.str.15: ## @.str.15 .asciz "\354\202\254\354\232\251\353\262\225 :%s port\n" .comm _listen_sock,4,2 ## @listen_sock .comm _clisock_list,4096,4 ## @clisock_list .comm _maxfdp1,4,2 ## @maxfdp1 L_.str.16: ## @.str.16 .asciz "select fail" L_.str.17: ## @.str.17 .asciz "accept fail" .comm _ct,8,3 ## @ct .comm _tm,56,3 ## @tm L_.str.18: ## @.str.18 .asciz "\033[0G" L_.str.19: ## @.str.19 .asciz "[%02d:%02d:%02d]" L_.str.20: ## @.str.20 .asciz "\033[33m" L_.str.21: ## @.str.21 .asciz "\354\202\254\354\232\251\354\236\220 1\353\252\205 \354\266\224\352\260\200. \355\230\204\354\236\254 \354\260\270\352\260\200\354\236\220 \354\210\230 = %d\n" L_.str.22: ## @.str.22 .asciz "\033[32m" L_.str.23: ## @.str.23 .asciz "\033[97m" L_.str.24: ## @.str.24 .asciz "%s" L_.str.25: ## @.str.25 .asciz "new client: %s\n" L_.str.26: ## @.str.26 .asciz "\354\261\204\355\214\205 \354\260\270\352\260\200\354\236\220 1\353\252\205 \355\203\210\355\207\264. \355\230\204\354\236\254 \354\260\270\352\260\200\354\236\220 \354\210\230 = %d\n" L_.str.27: ## @.str.27 .asciz "socket fail" L_.str.28: ## @.str.28 .asciz "bind fail" .subsections_via_symbols
the_stack_data/125140740.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov x9, sp sub x8, x29, #8 str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-8] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-8] mov w10, #10 str w10, [sp, #16] ; 4-byte Folded Spill sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 stur w8, [x29, #-12] ldur w9, [x29, #-12] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf ldr w9, [sp, #16] ; 4-byte Folded Reload ldur w8, [x29, #-8] sdiv w8, w8, w9 stur w8, [x29, #-8] b LBB0_1 LBB0_3: adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf mov w0, #0 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Enter your number\n" l_.str.1: ; @.str.1 .asciz "%i" 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 movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi leaq -8(%rbp), %rsi movb $0, %al callq _scanf LBB0_1: ## =>This Inner Loop Header: Depth=1 cmpl $0, -8(%rbp) je LBB0_3 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl -8(%rbp), %eax movl $10, %ecx cltd idivl %ecx movl %edx, -12(%rbp) movl -12(%rbp), %esi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf movl -8(%rbp), %eax movl $10, %ecx cltd idivl %ecx movl %eax, -8(%rbp) jmp LBB0_1 LBB0_3: leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Enter your number\n" L_.str.1: ## @.str.1 .asciz "%i" L_.str.2: ## @.str.2 .asciz "\n" .subsections_via_symbols
the_stack_data/76699440.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _menu ; -- Begin function menu .p2align 2 _menu: ; @menu .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf mov x9, sp sub x8, x29, #4 str x8, [x9] adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _scanf ldur w0, [x29, #-4] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _lee_numeros ; -- Begin function lee_numeros .p2align 2 _lee_numeros: ; @lee_numeros .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x0, l_.str.7@PAGE add x0, x0, l_.str.7@PAGEOFF bl _printf mov x9, sp sub x8, x29, #4 str x8, [x9] adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _scanf ldur w0, [x29, #-4] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _sumar ; -- Begin function sumar .p2align 2 _sumar: ; @sumar .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 bl _lee_numeros stur w0, [x29, #-4] bl _lee_numeros str w0, [sp, #8] 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 _restar ; -- Begin function restar .p2align 2 _restar: ; @restar .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 bl _lee_numeros stur w0, [x29, #-4] bl _lee_numeros str w0, [sp, #8] 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 _div ; -- Begin function div .p2align 2 _div: ; @div .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] add w8, w8, #1 str w8, [sp, #12] ldr w8, [sp, #12] ldr w9, [sp, #8] sdiv w8, w8, w9 scvtf s0, w8 add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] b LBB5_1 LBB5_1: ; =>This Inner Loop Header: Depth=1 bl _menu stur w0, [x29, #-8] ldur w8, [x29, #-8] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB5_3 b LBB5_2 LBB5_2: ; in Loop: Header=BB5_1 Depth=1 bl _sumar mov x9, sp ; implicit-def: $x8 mov x8, x0 str x8, [x9] adrp x0, l_.str.8@PAGE add x0, x0, l_.str.8@PAGEOFF bl _printf b LBB5_3 LBB5_3: ; in Loop: Header=BB5_1 Depth=1 ldur w8, [x29, #-8] subs w8, w8, #2 cset w8, ne tbnz w8, #0, LBB5_5 b LBB5_4 LBB5_4: ; in Loop: Header=BB5_1 Depth=1 bl _restar mov x9, sp ; implicit-def: $x8 mov x8, x0 str x8, [x9] adrp x0, l_.str.8@PAGE add x0, x0, l_.str.8@PAGEOFF bl _printf b LBB5_5 LBB5_5: ; in Loop: Header=BB5_1 Depth=1 ldur w8, [x29, #-8] subs w8, w8, #3 cset w8, ne tbnz w8, #0, LBB5_7 b LBB5_6 LBB5_6: ; in Loop: Header=BB5_1 Depth=1 b LBB5_7 LBB5_7: ; in Loop: Header=BB5_1 Depth=1 ldur w8, [x29, #-8] subs w8, w8, #4 cset w8, ne tbnz w8, #0, LBB5_9 b LBB5_8 LBB5_8: ; in Loop: Header=BB5_1 Depth=1 bl _lee_numeros stur w0, [x29, #-12] bl _lee_numeros str w0, [sp, #16] ldur w0, [x29, #-12] ldr w1, [sp, #16] bl _div fcvt d0, s0 mov x8, sp str d0, [x8] adrp x0, l_.str.9@PAGE add x0, x0, l_.str.9@PAGEOFF bl _printf b LBB5_9 LBB5_9: ; in Loop: Header=BB5_1 Depth=1 b LBB5_1 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "1 - Suma\n" l_.str.1: ; @.str.1 .asciz "2 - Resta\n" l_.str.2: ; @.str.2 .asciz "3 - Multiplicacion\n" l_.str.3: ; @.str.3 .asciz "4 - Division\n" l_.str.4: ; @.str.4 .asciz "5 - Salir\n" l_.str.5: ; @.str.5 .asciz "Opcion\n" l_.str.6: ; @.str.6 .asciz "%d" l_.str.7: ; @.str.7 .asciz "Introduzca numero " l_.str.8: ; @.str.8 .asciz "El resultado es %d\n" l_.str.9: ; @.str.9 .asciz "El resultado es %f\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _menu ## -- Begin function menu .p2align 4, 0x90 _menu: ## @menu .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp 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 leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf leaq L_.str.5(%rip), %rdi movb $0, %al callq _printf leaq L_.str.6(%rip), %rdi leaq -4(%rbp), %rsi movb $0, %al callq _scanf movl -4(%rbp), %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _lee_numeros ## -- Begin function lee_numeros .p2align 4, 0x90 _lee_numeros: ## @lee_numeros .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.7(%rip), %rdi movb $0, %al callq _printf leaq L_.str.6(%rip), %rdi leaq -4(%rbp), %rsi movb $0, %al callq _scanf movl -4(%rbp), %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _sumar ## -- Begin function sumar .p2align 4, 0x90 _sumar: ## @sumar .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp callq _lee_numeros movl %eax, -4(%rbp) callq _lee_numeros movl %eax, -8(%rbp) movl -4(%rbp), %eax addl -8(%rbp), %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _restar ## -- Begin function restar .p2align 4, 0x90 _restar: ## @restar .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp callq _lee_numeros movl %eax, -4(%rbp) callq _lee_numeros movl %eax, -8(%rbp) movl -4(%rbp), %eax subl -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 movl %edi, -4(%rbp) movl %esi, -8(%rbp) movl -4(%rbp), %eax addl $1, %eax movl %eax, -4(%rbp) movl -4(%rbp), %eax cltd idivl -8(%rbp) cvtsi2ss %eax, %xmm0 popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) LBB5_1: ## =>This Inner Loop Header: Depth=1 callq _menu movl %eax, -8(%rbp) cmpl $1, -8(%rbp) jne LBB5_3 ## %bb.2: ## in Loop: Header=BB5_1 Depth=1 callq _sumar movl %eax, %esi leaq L_.str.8(%rip), %rdi movb $0, %al callq _printf LBB5_3: ## in Loop: Header=BB5_1 Depth=1 cmpl $2, -8(%rbp) jne LBB5_5 ## %bb.4: ## in Loop: Header=BB5_1 Depth=1 callq _restar movl %eax, %esi leaq L_.str.8(%rip), %rdi movb $0, %al callq _printf LBB5_5: ## in Loop: Header=BB5_1 Depth=1 cmpl $3, -8(%rbp) jne LBB5_7 ## %bb.6: ## in Loop: Header=BB5_1 Depth=1 jmp LBB5_7 LBB5_7: ## in Loop: Header=BB5_1 Depth=1 cmpl $4, -8(%rbp) jne LBB5_9 ## %bb.8: ## in Loop: Header=BB5_1 Depth=1 callq _lee_numeros movl %eax, -12(%rbp) callq _lee_numeros movl %eax, -16(%rbp) movl -12(%rbp), %edi movl -16(%rbp), %esi callq _div cvtss2sd %xmm0, %xmm0 leaq L_.str.9(%rip), %rdi movb $1, %al callq _printf LBB5_9: ## in Loop: Header=BB5_1 Depth=1 jmp LBB5_1 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "1 - Suma\n" L_.str.1: ## @.str.1 .asciz "2 - Resta\n" L_.str.2: ## @.str.2 .asciz "3 - Multiplicacion\n" L_.str.3: ## @.str.3 .asciz "4 - Division\n" L_.str.4: ## @.str.4 .asciz "5 - Salir\n" L_.str.5: ## @.str.5 .asciz "Opcion\n" L_.str.6: ## @.str.6 .asciz "%d" L_.str.7: ## @.str.7 .asciz "Introduzca numero " L_.str.8: ## @.str.8 .asciz "El resultado es %d\n" L_.str.9: ## @.str.9 .asciz "El resultado es %f\n" .subsections_via_symbols
the_stack_data/628411.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Signal 0" l_.str.1: ; @.str.1 .asciz "HUP" l_.str.2: ; @.str.2 .asciz "INT" l_.str.3: ; @.str.3 .asciz "QUIT" l_.str.4: ; @.str.4 .asciz "ILL" l_.str.5: ; @.str.5 .asciz "TRAP" l_.str.6: ; @.str.6 .asciz "ABRT" l_.str.7: ; @.str.7 .asciz "EMT" l_.str.8: ; @.str.8 .asciz "FPE" l_.str.9: ; @.str.9 .asciz "KILL" l_.str.10: ; @.str.10 .asciz "BUS" l_.str.11: ; @.str.11 .asciz "SEGV" l_.str.12: ; @.str.12 .asciz "SYS" l_.str.13: ; @.str.13 .asciz "PIPE" l_.str.14: ; @.str.14 .asciz "ALRM" l_.str.15: ; @.str.15 .asciz "TERM" l_.str.16: ; @.str.16 .asciz "URG" l_.str.17: ; @.str.17 .asciz "STOP" l_.str.18: ; @.str.18 .asciz "TSTP" l_.str.19: ; @.str.19 .asciz "CONT" l_.str.20: ; @.str.20 .asciz "CHLD" l_.str.21: ; @.str.21 .asciz "TTIN" l_.str.22: ; @.str.22 .asciz "TTOU" l_.str.23: ; @.str.23 .asciz "IO" l_.str.24: ; @.str.24 .asciz "XCPU" l_.str.25: ; @.str.25 .asciz "XFSZ" l_.str.26: ; @.str.26 .asciz "VTALRM" l_.str.27: ; @.str.27 .asciz "PROF" l_.str.28: ; @.str.28 .asciz "WINCH" l_.str.29: ; @.str.29 .asciz "INFO" l_.str.30: ; @.str.30 .asciz "USR1" l_.str.31: ; @.str.31 .asciz "USR2" .section __DATA,__const .globl _sys_signame ; @sys_signame .p2align 3 _sys_signame: .quad l_.str .quad l_.str.1 .quad l_.str.2 .quad l_.str.3 .quad l_.str.4 .quad l_.str.5 .quad l_.str.6 .quad l_.str.7 .quad l_.str.8 .quad l_.str.9 .quad l_.str.10 .quad l_.str.11 .quad l_.str.12 .quad l_.str.13 .quad l_.str.14 .quad l_.str.15 .quad l_.str.16 .quad l_.str.17 .quad l_.str.18 .quad l_.str.19 .quad l_.str.20 .quad l_.str.21 .quad l_.str.22 .quad l_.str.23 .quad l_.str.24 .quad l_.str.25 .quad l_.str.26 .quad l_.str.27 .quad l_.str.28 .quad l_.str.29 .quad l_.str.30 .quad l_.str.31 .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Signal 0" L_.str.1: ## @.str.1 .asciz "HUP" L_.str.2: ## @.str.2 .asciz "INT" L_.str.3: ## @.str.3 .asciz "QUIT" L_.str.4: ## @.str.4 .asciz "ILL" L_.str.5: ## @.str.5 .asciz "TRAP" L_.str.6: ## @.str.6 .asciz "ABRT" L_.str.7: ## @.str.7 .asciz "EMT" L_.str.8: ## @.str.8 .asciz "FPE" L_.str.9: ## @.str.9 .asciz "KILL" L_.str.10: ## @.str.10 .asciz "BUS" L_.str.11: ## @.str.11 .asciz "SEGV" L_.str.12: ## @.str.12 .asciz "SYS" L_.str.13: ## @.str.13 .asciz "PIPE" L_.str.14: ## @.str.14 .asciz "ALRM" L_.str.15: ## @.str.15 .asciz "TERM" L_.str.16: ## @.str.16 .asciz "URG" L_.str.17: ## @.str.17 .asciz "STOP" L_.str.18: ## @.str.18 .asciz "TSTP" L_.str.19: ## @.str.19 .asciz "CONT" L_.str.20: ## @.str.20 .asciz "CHLD" L_.str.21: ## @.str.21 .asciz "TTIN" L_.str.22: ## @.str.22 .asciz "TTOU" L_.str.23: ## @.str.23 .asciz "IO" L_.str.24: ## @.str.24 .asciz "XCPU" L_.str.25: ## @.str.25 .asciz "XFSZ" L_.str.26: ## @.str.26 .asciz "VTALRM" L_.str.27: ## @.str.27 .asciz "PROF" L_.str.28: ## @.str.28 .asciz "WINCH" L_.str.29: ## @.str.29 .asciz "INFO" L_.str.30: ## @.str.30 .asciz "USR1" L_.str.31: ## @.str.31 .asciz "USR2" .section __DATA,__const .globl _sys_signame ## @sys_signame .p2align 4 _sys_signame: .quad L_.str .quad L_.str.1 .quad L_.str.2 .quad L_.str.3 .quad L_.str.4 .quad L_.str.5 .quad L_.str.6 .quad L_.str.7 .quad L_.str.8 .quad L_.str.9 .quad L_.str.10 .quad L_.str.11 .quad L_.str.12 .quad L_.str.13 .quad L_.str.14 .quad L_.str.15 .quad L_.str.16 .quad L_.str.17 .quad L_.str.18 .quad L_.str.19 .quad L_.str.20 .quad L_.str.21 .quad L_.str.22 .quad L_.str.23 .quad L_.str.24 .quad L_.str.25 .quad L_.str.26 .quad L_.str.27 .quad L_.str.28 .quad L_.str.29 .quad L_.str.30 .quad L_.str.31 .subsections_via_symbols
the_stack_data/120019.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] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf b LBB0_2 LBB0_2: ldr w8, [sp, #16] add w8, w8, #1 stur w8, [x29, #-12] b LBB0_3 LBB0_3: ; =>This Loop Header: Depth=1 ; Child Loop BB0_5 Depth 2 ldur w8, [x29, #-12] ldr w9, [sp, #16] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB0_14 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_3 Depth=1 mov w8, #1 stur w8, [x29, #-8] mov w8, #2 str w8, [sp, #12] b LBB0_5 LBB0_5: ; Parent Loop BB0_3 Depth=1 ; => This Inner Loop Header: Depth=2 ldr s1, [sp, #12] ; implicit-def: $d0 fmov s0, s1 sshll.2d v0, v0, #0 ; kill: def $d0 killed $d0 killed $q0 scvtf d0, d0 ldur s2, [x29, #-12] ; implicit-def: $d1 fmov s1, s2 sshll.2d v1, v1, #0 ; kill: def $d1 killed $d1 killed $q1 scvtf d1, d1 fsqrt d1, d1 fcmp d0, d1 cset w8, hi tbnz w8, #0, LBB0_10 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_5 Depth=2 ldur w8, [x29, #-12] ldr w10, [sp, #12] sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_8 b LBB0_7 LBB0_7: ; in Loop: Header=BB0_3 Depth=1 stur wzr, [x29, #-8] b LBB0_10 LBB0_8: ; in Loop: Header=BB0_5 Depth=2 b LBB0_9 LBB0_9: ; in Loop: Header=BB0_5 Depth=2 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB0_5 LBB0_10: ; in Loop: Header=BB0_3 Depth=1 ldur w8, [x29, #-8] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB0_12 b LBB0_11 LBB0_11: ldur w9, [x29, #-12] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf b LBB0_14 LBB0_12: ; in Loop: Header=BB0_3 Depth=1 b LBB0_13 LBB0_13: ; in Loop: Header=BB0_3 Depth=1 ldur w8, [x29, #-12] add w8, w8, #1 stur w8, [x29, #-12] b LBB0_3 LBB0_14: 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 "2" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl $0, -4(%rbp) leaq L_.str(%rip), %rdi leaq -16(%rbp), %rsi movb $0, %al callq _scanf cmpl $1, -16(%rbp) jne LBB0_2 ## %bb.1: leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf LBB0_2: movl -16(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) LBB0_3: ## =>This Loop Header: Depth=1 ## Child Loop BB0_5 Depth 2 movl -12(%rbp), %eax cmpl -16(%rbp), %eax jle LBB0_14 ## %bb.4: ## in Loop: Header=BB0_3 Depth=1 movl $1, -8(%rbp) movl $2, -20(%rbp) LBB0_5: ## Parent Loop BB0_3 Depth=1 ## => This Inner Loop Header: Depth=2 cvtsi2sdl -20(%rbp), %xmm1 cvtsi2sdl -12(%rbp), %xmm0 sqrtsd %xmm0, %xmm0 ucomisd %xmm1, %xmm0 jb LBB0_10 ## %bb.6: ## in Loop: Header=BB0_5 Depth=2 movl -12(%rbp), %eax cltd idivl -20(%rbp) cmpl $0, %edx jne LBB0_8 ## %bb.7: ## in Loop: Header=BB0_3 Depth=1 movl $0, -8(%rbp) jmp LBB0_10 LBB0_8: ## in Loop: Header=BB0_5 Depth=2 jmp LBB0_9 LBB0_9: ## in Loop: Header=BB0_5 Depth=2 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB0_5 LBB0_10: ## in Loop: Header=BB0_3 Depth=1 cmpl $1, -8(%rbp) jne LBB0_12 ## %bb.11: movl -12(%rbp), %esi leaq L_.str(%rip), %rdi movb $0, %al callq _printf jmp LBB0_14 LBB0_12: ## in Loop: Header=BB0_3 Depth=1 jmp LBB0_13 LBB0_13: ## in Loop: Header=BB0_3 Depth=1 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB0_3 LBB0_14: 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 "2" .subsections_via_symbols
the_stack_data/75411.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __TEXT,__const .globl _titlemap_tiles16_flags_9 ; @titlemap_tiles16_flags_9 _titlemap_tiles16_flags_9: .ascii "\006\006\006\001\006\006\006\006\006\006\006\006\001\006\006\001\001\006\006\001\006\006\006\006\001\006\006\001\006\006\002\001\001\001\001\006\006\006\001\006\006\001\006\006\001\001\001\001\006\006\006\001\006\006\006\001\006\002\001\006\006\001\006\006\006\001\006\006\006\001\006\001\002\001\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\001\006\006\006\006\006\006\006\006\006\001\006\002\002\006\006\006\006\006\006\006\001\001\006\006\001\001\001\006\006\006\001\006\002\006\002\001\001\001\006\001\006\001\006\001\006\002\006\002\006\006\006\006\006\006\002\006\002\006\001\006\004\006\001\006\002\006\006\006\001\006\002\002\001\001\001\006\001\001\001\006\001\006\001\006\004\006\001\006\006\006\002\006\001\006\004\006\001\001\001\006\001\006\002\006\002\006\001\006\004\001\002\001\001\001\001\001\001\001\001\001\001\002" .space 42 .ascii "\006\006\006\005\006\006\006\006\001\006\001\006\006\006\006\005\001\006\006\001\006\006\006\006\001\006\006\001\006\006\002\001\006\001\006\001\006\006\006\006\006\001\006\006\001\001\006\001\006\006\006\001\006\006\006\001\006\002\001\006\006\001\006\001\001\001\006\006\006\001\006\001\002\001\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\001\006\001\006\006\006\006\006\006\001\006\002\006\002\002\006\006\006\006\006\006\006\001\001\006\006\001\001\001\006\001\006\002\006\002\006\002\001\001\001\006\001\006\001\006\002\006\002\006\002\006\006\006\006\006\006\002\006\002\006\001\006\004\006\005\006\002\006\001\006\002\006\002\002\001\001\001\006\001\005\005\006\005\006\005\006\004\006\001\006\006\006\002\006\001\006\004\006\005\005\005\006\005\006\002\006\002\006\001\006\004\002\002\001\001\001\001\001\001\001\001\002\001\002" .space 42 .ascii "\006\006\006\005\006\006\006\006\006\006\006\006\006\006\006\005\006\006\006\006\006\006\006\006\006\006\006\006\006\006\002\006\006\006\006\006\006\006\006\006\006\006\006\006\001\006\006\001\006\006\006\006\006\006\006\006\006\002\006\006\006\006\006\001\001\006\006\006\006\006\006\001\002\006\006\006\006\006\006\006\001\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\002\006\002\006\002\002\006\006\006\006\006\001\006\001\006\006\006\006\001\006\006\002\006\002\006\002\006\002\001\001\001\006\001\006\002\006\002\006\002\006\002\006\006\006\006\001\006\002\006\002\006\001\006\004\006\005\006\002\006\002\006\002\006\002\002\001\001\001\006\001\005\005\006\005\006\005\006\004\006\001\006\006\006\002\006\001\006\004\006\005\005\005\006\005\006\002\006\002\006\001\006\004\002\002\001\001\001\001\001\001\002\001\002\001\002" .space 42 .ascii "\006\006\006\005\006\006\001\006\006\001\006\006\006\006\006\005\006\001\006\006\006\006\006\006\006\001\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\001\006\006\001\006\001\001\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\001\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\001\006\006\001\006\001\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\001\006\006\006\006\001\006\006\006\006\006\006\006\006\006\001\001\001\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\001\006\004\006\005\006\006\006\006\006\006\006\006\006\001\001\001\006\001\005\005\006\005\006\005\006\004\006\001\006\006\006\006\006\001\006\004\006\005\005\005\006\005\006\006\006\006\006\001\006\004\006\006\001\001\001\001\006\001\006\001\006\001\006" .space 42 .ascii "\006\006\006\005\006\006\006\006\006\006\006\001\006\006\006\005\006\001\006\006\006\006\006\006\001\001\006\006\006\006\006\006\006\006\006\006\006\006\001\006\006\006\006\006\001\006\006\001\001\001\001\001\006\006\006\006\006\006\006\006\006\006\006\006\006\001\006\006\006\006\006\001\006\006\006\006\006\006\006\006\001\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\001\006\001\006\006\006\006\001\006\006\006\006\006\006\006\006\006\001\001\001\006\001\006\006\006\006\006\006\006\006\006\006\006\006\001\006\006\006\006\006\001\006\004\006\005\006\006\006\006\006\006\006\006\006\001\001\001\006\001\005\005\006\005\006\005\006\004\006\001\006\006\006\006\006\001\006\004\006\005\005\005\006\005\006\006\006\006\006\001\006\004\006\006\001\001\001\001\001\001\006\001\006\001\006" .space 42 .ascii "\006\006\006\005\006\006\006\001\006\006\006\006\006\006\006\005\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\001\006\006\001\006\006\006\006\006\006\001\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\001\006\006\006\006\006\006\006\006\001\006\006\006\006\006\006\001\006\006\006\006\006\006\006\006\006\006\006\001\006\006\006\006\006\006\006\006\006\006\001\006\001\006\006\006\006\001\006\006\001\006\006\006\006\006\006\001\001\001\006\001\006\001\006\006\006\006\006\006\006\006\006\006\001\006\006\006\006\006\001\006\004\006\005\006\006\006\001\006\006\006\006\006\001\001\001\006\001\005\005\006\005\006\005\006\004\006\001\006\006\006\006\006\001\006\004\006\005\005\005\006\005\006\006\006\006\006\001\006\004\006\006\001\001\001\001\001\001\001\001\006\001\006" .space 42 .ascii "\006\006\006\001\006\006\006\006\006\006\001\006\006\006\006\001\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\001\006\006\006\006\006\006\001\006\006\001\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\001\006\006\006\006\006\006\006\001\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\001\006\006\006\006\006\006\006\001\006\001\006\006\006\006\006\006\006\006\006\006\001\006\006\006\006\001\006\006\001\006\001\006\006\006\006\001\001\001\006\001\006\001\006\001\006\006\006\006\006\006\006\006\006\006\006\006\006\006\001\006\004\006\001\006\006\006\001\006\001\006\006\006\001\001\001\006\001\001\001\006\001\006\001\006\004\006\001\006\006\006\006\006\001\006\004\006\001\001\001\006\001\006\006\006\006\006\001\006\004\001\006\001\001\001\001\001\001\001\001\001\001\006" .space 42 .ascii "\006\006\006\001\006\001\006\006\006\006\006\006\006\006\006\001\006\001\006\006\006\006\006\006\006\006\006\006\006\006\001\006\006\006\006\006\006\001\006\006\001\006\006\006\001\006\006\001\006\006\001\006\006\006\006\006\006\001\006\001\006\006\006\006\001\006\006\001\006\006\006\001\001\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\001\006\006\006\006\006\006\006\006\006\001\006\001\001\006\006\006\006\006\006\006\001\006\006\006\006\001\006\006\006\006\001\006\001\006\001\001\001\001\006\001\006\001\006\001\006\001\006\001\006\006\006\006\006\006\001\006\001\006\001\006\004\006\001\006\001\006\006\006\001\006\001\001\001\001\001\006\001\001\001\006\001\006\001\006\001\006\006\006\006\006\001\006\001\006\004\006\001\001\001\006\001\006\001\006\001\006\001\006\004\001\001\001\001\001\001\001\001\001\001\001\001\001" .space 42 .ascii "\006\006\006\006\006\006\006\006\006\006\006\006\006\006\001\001\006\006\006\001\001\001\001\006\006\006\001\006\006\001\001\001\001\006\001\006\006\006\006\001\006\006\006\001\001\001\001\001\006\006\006\006\006\001\006\006\001\001\006\001\006\006\001\006\006\006\006\001\006\006\006\001\001\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\001\001\006\006\006\006\006\006\001\001\006\001\006\006\001\006\006\006\006\006\006\001\006\001\001\001\001\001\001\001\001\001\001\001\001\001\001\006\006\006\001\006\006\001\006\001\001\001\006\004\006\006\006\001\001\006\001\006\001\001\001\001\001\001\001\001\006\006\006\006\006\006\006\001\006\006\006\006\006\001\001\001\006\004\006\006\006\006\006\006\001\001\001\001\001\001\001\004\006\001\001\001\001\001\001\001\001\001\001\001\001" .space 42 .ascii "\006\006\006\006\006\006\001\006\001\006\006\006\006\006\001\001\006\006\006\001\001\001\001\006\006\006\001\006\006\001\006\001\001\006\001\006\006\006\006\001\006\006\006\001\001\001\001\001\006\006\006\006\006\001\006\006\001\006\006\006\006\006\001\006\006\006\006\006\006\006\006\001\001\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\001\001\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\001\001\006\001\006\006\001\006\006\006\006\006\006\006\006\006\001\001\001\001\001\001\001\001\001\001\001\001\001\006\006\006\001\006\006\006\006\006\001\006\006\001\006\006\006\006\001\006\001\006\001\006\006\001\001\001\001\001\006\006\006\006\006\006\006\006\006\006\006\006\006\006\001\006\006\001\006\006\006\006\006\006\001\001\001\001\001\001\001\001\006\006\001\001\001\001\001\001\001\001\001\001\001" .space 42 .ascii "\006\006\006\006\006\006\006\006\006\006\006\001\006\006\001\001\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\001\001\006\006\006\006\006\006\001\001\006\006\001\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\001\001\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\001\001\006\006\006\006\001\006\006\006\006\006\006\006\006\006\001\001\001\001\001\001\001\001\001\001\001\001\001\006\006\006\006\006\006\006\006\006\001\001\006\001\006\006\006\006\006\006\006\006\006\006\006\001\001\001\001\001\006\006\006\006\006\006\006\006\006\006\006\006\006\006\001\001\006\001\006\006\006\006\006\006\001\001\001\001\001\001\001\001\006\006\001\001\001\001\001\001\001\001\001\001\001" .space 42 .ascii "\006\006\006\006\006\006\006\006\006\006\001\006\006\006\001\001\006\006\006\006\006\006\006\006\006\006\001\006\006\006\006\006\006\006\006\001\001\006\006\006\006\006\006\001\001\006\006\001\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\001\001\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\001\006\001\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\001\001\006\006\006\006\001\006\006\006\006\006\006\006\006\006\001\001\001\001\001\001\001\001\001\001\001\001\001\006\006\006\006\006\006\006\006\006\001\001\006\001\006\006\006\006\006\006\006\006\006\006\006\001\001\001\001\001\006\006\006\006\006\006\006\006\006\006\006\006\006\006\001\001\006\001\006\006\006\006\006\006\001\001\001\001\001\001\001\001\006\006\001\001\001\001\001\001\001\001\001\001\001" .space 42 .ascii "\006\006\006\006\006\006\006\006\006\001\006\006\006\006\001\001\006\006\006\006\006\006\006\006\006\006\001\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\001\001\006\006\001\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\001\001\001\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\001\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\001\001\006\006\006\006\001\006\006\006\006\006\006\006\006\006\001\001\001\001\001\001\001\001\001\001\001\001\001\006\006\006\006\006\006\006\006\006\001\001\001\006\006\006\006\006\006\006\006\006\006\006\006\001\001\001\001\001\006\006\006\006\006\006\006\006\006\006\006\006\006\006\001\001\001\006\006\006\006\006\006\006\001\001\001\001\001\001\001\001\006\006\001\001\001\001\001\001\001\001\001\001\001" .space 42 .ascii "\006\006\006\006\006\006\006\006\006\006\006\006\006\006\001\006\006\006\006\006\006\006\006\006\001\006\006\006\006\006\006\006\006\006\006\001\001\006\001\006\006\006\006\001\006\006\006\001\006\006\006\001\001\006\006\006\006\006\006\006\006\006\006\006\006\001\006\006\006\006\001\001\001\006\006\006\006\006\006\006\006\006\006\006\006\006\006\001\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\001\006\006\006\006\006\001\006\006\006\006\006\006\006\006\006\006\006\006\001\006\001\006\001\006\001\006\001\006\006\006\006\006\006\006\006\006\006\006\001\001\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\001\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\001\001\006\006\006\006\006\006\006\001\006\001\006\001\001\001\006\006\006\001\001\001\001\001\001\001\001\001\001\001" .space 42 .ascii "\006\006\006\006\006\001\006\006\001\006\006\006\006\006\001\006\006\006\006\006\006\006\006\006\001\006\006\006\006\006\006\006\006\006\006\006\006\006\001\006\006\006\006\001\006\006\006\006\006\006\006\001\006\006\006\006\006\006\006\006\006\006\006\006\006\001\006\006\006\006\001\001\001\006\006\006\006\006\006\006\006\006\006\006\006\006\001\006\001\001\006\001\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\001\006\006\006\006\006\001\006\006\006\006\006\006\006\006\006\006\006\006\001\006\001\006\001\006\001\006\001\006\006\006\006\006\006\006\006\006\006\006\001\004\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\001\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\001\004\006\006\006\006\006\006\006\001\006\001\006\001\001\004\006\006\006\001\001\001\001\001\001\001\001\001\001\001" .space 42 .ascii "\006\006\006\006\006\006\006\006\006\006\006\006\006\001\001\006\006\006\006\001\001\001\006\006\001\006\006\006\001\001\001\006\006\006\006\006\006\006\001\006\006\006\006\001\006\006\006\006\006\006\006\006\006\006\006\006\001\001\006\006\006\006\006\006\006\001\006\006\001\006\001\001\001\006\006\006\006\006\006\006\006\006\006\006\006\006\001\006\006\001\006\001\006\006\006\006\006\006\006\006\006\006\001\006\006\006\006\006\006\006\006\001\006\006\006\001\006\001\006\006\006\006\006\001\006\001\006\006\006\006\001\006\001\006\001\006\001\006\001\006\001\001\001\006\001\001\006\001\006\001\006\004\006\006\006\001\006\006\001\006\001\001\001\001\006\006\006\001\006\006\006\006\006\006\006\001\006\006\006\006\006\001\006\001\006\004\006\006\006\006\006\006\006\001\006\001\006\001\006\004\006\001\001\001\001\001\001\001\001\001\001\001\001\001" .space 42 .globl _titlemap_tiles16_flags_9_filler ; @titlemap_tiles16_flags_9_filler _titlemap_tiles16_flags_9_filler: .space 4096 .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __TEXT,__const .globl _titlemap_tiles16_flags_9 ## @titlemap_tiles16_flags_9 .p2align 4 _titlemap_tiles16_flags_9: .ascii "\006\006\006\001\006\006\006\006\006\006\006\006\001\006\006\001\001\006\006\001\006\006\006\006\001\006\006\001\006\006\002\001\001\001\001\006\006\006\001\006\006\001\006\006\001\001\001\001\006\006\006\001\006\006\006\001\006\002\001\006\006\001\006\006\006\001\006\006\006\001\006\001\002\001\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\001\006\006\006\006\006\006\006\006\006\001\006\002\002\006\006\006\006\006\006\006\001\001\006\006\001\001\001\006\006\006\001\006\002\006\002\001\001\001\006\001\006\001\006\001\006\002\006\002\006\006\006\006\006\006\002\006\002\006\001\006\004\006\001\006\002\006\006\006\001\006\002\002\001\001\001\006\001\001\001\006\001\006\001\006\004\006\001\006\006\006\002\006\001\006\004\006\001\001\001\006\001\006\002\006\002\006\001\006\004\001\002\001\001\001\001\001\001\001\001\001\001\002" .space 42 .ascii "\006\006\006\005\006\006\006\006\001\006\001\006\006\006\006\005\001\006\006\001\006\006\006\006\001\006\006\001\006\006\002\001\006\001\006\001\006\006\006\006\006\001\006\006\001\001\006\001\006\006\006\001\006\006\006\001\006\002\001\006\006\001\006\001\001\001\006\006\006\001\006\001\002\001\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\001\006\001\006\006\006\006\006\006\001\006\002\006\002\002\006\006\006\006\006\006\006\001\001\006\006\001\001\001\006\001\006\002\006\002\006\002\001\001\001\006\001\006\001\006\002\006\002\006\002\006\006\006\006\006\006\002\006\002\006\001\006\004\006\005\006\002\006\001\006\002\006\002\002\001\001\001\006\001\005\005\006\005\006\005\006\004\006\001\006\006\006\002\006\001\006\004\006\005\005\005\006\005\006\002\006\002\006\001\006\004\002\002\001\001\001\001\001\001\001\001\002\001\002" .space 42 .ascii "\006\006\006\005\006\006\006\006\006\006\006\006\006\006\006\005\006\006\006\006\006\006\006\006\006\006\006\006\006\006\002\006\006\006\006\006\006\006\006\006\006\006\006\006\001\006\006\001\006\006\006\006\006\006\006\006\006\002\006\006\006\006\006\001\001\006\006\006\006\006\006\001\002\006\006\006\006\006\006\006\001\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\002\006\002\006\002\002\006\006\006\006\006\001\006\001\006\006\006\006\001\006\006\002\006\002\006\002\006\002\001\001\001\006\001\006\002\006\002\006\002\006\002\006\006\006\006\001\006\002\006\002\006\001\006\004\006\005\006\002\006\002\006\002\006\002\002\001\001\001\006\001\005\005\006\005\006\005\006\004\006\001\006\006\006\002\006\001\006\004\006\005\005\005\006\005\006\002\006\002\006\001\006\004\002\002\001\001\001\001\001\001\002\001\002\001\002" .space 42 .ascii "\006\006\006\005\006\006\001\006\006\001\006\006\006\006\006\005\006\001\006\006\006\006\006\006\006\001\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\001\006\006\001\006\001\001\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\001\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\001\006\006\001\006\001\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\001\006\006\006\006\001\006\006\006\006\006\006\006\006\006\001\001\001\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\001\006\004\006\005\006\006\006\006\006\006\006\006\006\001\001\001\006\001\005\005\006\005\006\005\006\004\006\001\006\006\006\006\006\001\006\004\006\005\005\005\006\005\006\006\006\006\006\001\006\004\006\006\001\001\001\001\006\001\006\001\006\001\006" .space 42 .ascii "\006\006\006\005\006\006\006\006\006\006\006\001\006\006\006\005\006\001\006\006\006\006\006\006\001\001\006\006\006\006\006\006\006\006\006\006\006\006\001\006\006\006\006\006\001\006\006\001\001\001\001\001\006\006\006\006\006\006\006\006\006\006\006\006\006\001\006\006\006\006\006\001\006\006\006\006\006\006\006\006\001\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\001\006\001\006\006\006\006\001\006\006\006\006\006\006\006\006\006\001\001\001\006\001\006\006\006\006\006\006\006\006\006\006\006\006\001\006\006\006\006\006\001\006\004\006\005\006\006\006\006\006\006\006\006\006\001\001\001\006\001\005\005\006\005\006\005\006\004\006\001\006\006\006\006\006\001\006\004\006\005\005\005\006\005\006\006\006\006\006\001\006\004\006\006\001\001\001\001\001\001\006\001\006\001\006" .space 42 .ascii "\006\006\006\005\006\006\006\001\006\006\006\006\006\006\006\005\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\001\006\006\001\006\006\006\006\006\006\001\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\001\006\006\006\006\006\006\006\006\001\006\006\006\006\006\006\001\006\006\006\006\006\006\006\006\006\006\006\001\006\006\006\006\006\006\006\006\006\006\001\006\001\006\006\006\006\001\006\006\001\006\006\006\006\006\006\001\001\001\006\001\006\001\006\006\006\006\006\006\006\006\006\006\001\006\006\006\006\006\001\006\004\006\005\006\006\006\001\006\006\006\006\006\001\001\001\006\001\005\005\006\005\006\005\006\004\006\001\006\006\006\006\006\001\006\004\006\005\005\005\006\005\006\006\006\006\006\001\006\004\006\006\001\001\001\001\001\001\001\001\006\001\006" .space 42 .ascii "\006\006\006\001\006\006\006\006\006\006\001\006\006\006\006\001\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\001\006\006\006\006\006\006\001\006\006\001\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\001\006\006\006\006\006\006\006\001\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\001\006\006\006\006\006\006\006\001\006\001\006\006\006\006\006\006\006\006\006\006\001\006\006\006\006\001\006\006\001\006\001\006\006\006\006\001\001\001\006\001\006\001\006\001\006\006\006\006\006\006\006\006\006\006\006\006\006\006\001\006\004\006\001\006\006\006\001\006\001\006\006\006\001\001\001\006\001\001\001\006\001\006\001\006\004\006\001\006\006\006\006\006\001\006\004\006\001\001\001\006\001\006\006\006\006\006\001\006\004\001\006\001\001\001\001\001\001\001\001\001\001\006" .space 42 .ascii "\006\006\006\001\006\001\006\006\006\006\006\006\006\006\006\001\006\001\006\006\006\006\006\006\006\006\006\006\006\006\001\006\006\006\006\006\006\001\006\006\001\006\006\006\001\006\006\001\006\006\001\006\006\006\006\006\006\001\006\001\006\006\006\006\001\006\006\001\006\006\006\001\001\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\001\006\006\006\006\006\006\006\006\006\001\006\001\001\006\006\006\006\006\006\006\001\006\006\006\006\001\006\006\006\006\001\006\001\006\001\001\001\001\006\001\006\001\006\001\006\001\006\001\006\006\006\006\006\006\001\006\001\006\001\006\004\006\001\006\001\006\006\006\001\006\001\001\001\001\001\006\001\001\001\006\001\006\001\006\001\006\006\006\006\006\001\006\001\006\004\006\001\001\001\006\001\006\001\006\001\006\001\006\004\001\001\001\001\001\001\001\001\001\001\001\001\001" .space 42 .ascii "\006\006\006\006\006\006\006\006\006\006\006\006\006\006\001\001\006\006\006\001\001\001\001\006\006\006\001\006\006\001\001\001\001\006\001\006\006\006\006\001\006\006\006\001\001\001\001\001\006\006\006\006\006\001\006\006\001\001\006\001\006\006\001\006\006\006\006\001\006\006\006\001\001\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\001\001\006\006\006\006\006\006\001\001\006\001\006\006\001\006\006\006\006\006\006\001\006\001\001\001\001\001\001\001\001\001\001\001\001\001\001\006\006\006\001\006\006\001\006\001\001\001\006\004\006\006\006\001\001\006\001\006\001\001\001\001\001\001\001\001\006\006\006\006\006\006\006\001\006\006\006\006\006\001\001\001\006\004\006\006\006\006\006\006\001\001\001\001\001\001\001\004\006\001\001\001\001\001\001\001\001\001\001\001\001" .space 42 .ascii "\006\006\006\006\006\006\001\006\001\006\006\006\006\006\001\001\006\006\006\001\001\001\001\006\006\006\001\006\006\001\006\001\001\006\001\006\006\006\006\001\006\006\006\001\001\001\001\001\006\006\006\006\006\001\006\006\001\006\006\006\006\006\001\006\006\006\006\006\006\006\006\001\001\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\001\001\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\001\001\006\001\006\006\001\006\006\006\006\006\006\006\006\006\001\001\001\001\001\001\001\001\001\001\001\001\001\006\006\006\001\006\006\006\006\006\001\006\006\001\006\006\006\006\001\006\001\006\001\006\006\001\001\001\001\001\006\006\006\006\006\006\006\006\006\006\006\006\006\006\001\006\006\001\006\006\006\006\006\006\001\001\001\001\001\001\001\001\006\006\001\001\001\001\001\001\001\001\001\001\001" .space 42 .ascii "\006\006\006\006\006\006\006\006\006\006\006\001\006\006\001\001\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\001\001\006\006\006\006\006\006\001\001\006\006\001\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\001\001\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\001\001\006\006\006\006\001\006\006\006\006\006\006\006\006\006\001\001\001\001\001\001\001\001\001\001\001\001\001\006\006\006\006\006\006\006\006\006\001\001\006\001\006\006\006\006\006\006\006\006\006\006\006\001\001\001\001\001\006\006\006\006\006\006\006\006\006\006\006\006\006\006\001\001\006\001\006\006\006\006\006\006\001\001\001\001\001\001\001\001\006\006\001\001\001\001\001\001\001\001\001\001\001" .space 42 .ascii "\006\006\006\006\006\006\006\006\006\006\001\006\006\006\001\001\006\006\006\006\006\006\006\006\006\006\001\006\006\006\006\006\006\006\006\001\001\006\006\006\006\006\006\001\001\006\006\001\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\001\001\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\001\006\001\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\001\001\006\006\006\006\001\006\006\006\006\006\006\006\006\006\001\001\001\001\001\001\001\001\001\001\001\001\001\006\006\006\006\006\006\006\006\006\001\001\006\001\006\006\006\006\006\006\006\006\006\006\006\001\001\001\001\001\006\006\006\006\006\006\006\006\006\006\006\006\006\006\001\001\006\001\006\006\006\006\006\006\001\001\001\001\001\001\001\001\006\006\001\001\001\001\001\001\001\001\001\001\001" .space 42 .ascii "\006\006\006\006\006\006\006\006\006\001\006\006\006\006\001\001\006\006\006\006\006\006\006\006\006\006\001\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\001\001\006\006\001\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\001\001\001\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\001\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\001\001\006\006\006\006\001\006\006\006\006\006\006\006\006\006\001\001\001\001\001\001\001\001\001\001\001\001\001\006\006\006\006\006\006\006\006\006\001\001\001\006\006\006\006\006\006\006\006\006\006\006\006\001\001\001\001\001\006\006\006\006\006\006\006\006\006\006\006\006\006\006\001\001\001\006\006\006\006\006\006\006\001\001\001\001\001\001\001\001\006\006\001\001\001\001\001\001\001\001\001\001\001" .space 42 .ascii "\006\006\006\006\006\006\006\006\006\006\006\006\006\006\001\006\006\006\006\006\006\006\006\006\001\006\006\006\006\006\006\006\006\006\006\001\001\006\001\006\006\006\006\001\006\006\006\001\006\006\006\001\001\006\006\006\006\006\006\006\006\006\006\006\006\001\006\006\006\006\001\001\001\006\006\006\006\006\006\006\006\006\006\006\006\006\006\001\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\001\006\006\006\006\006\001\006\006\006\006\006\006\006\006\006\006\006\006\001\006\001\006\001\006\001\006\001\006\006\006\006\006\006\006\006\006\006\006\001\001\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\001\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\001\001\006\006\006\006\006\006\006\001\006\001\006\001\001\001\006\006\006\001\001\001\001\001\001\001\001\001\001\001" .space 42 .ascii "\006\006\006\006\006\001\006\006\001\006\006\006\006\006\001\006\006\006\006\006\006\006\006\006\001\006\006\006\006\006\006\006\006\006\006\006\006\006\001\006\006\006\006\001\006\006\006\006\006\006\006\001\006\006\006\006\006\006\006\006\006\006\006\006\006\001\006\006\006\006\001\001\001\006\006\006\006\006\006\006\006\006\006\006\006\006\001\006\001\001\006\001\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\001\006\006\006\006\006\001\006\006\006\006\006\006\006\006\006\006\006\006\001\006\001\006\001\006\001\006\001\006\006\006\006\006\006\006\006\006\006\006\001\004\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\001\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\001\004\006\006\006\006\006\006\006\001\006\001\006\001\001\004\006\006\006\001\001\001\001\001\001\001\001\001\001\001" .space 42 .ascii "\006\006\006\006\006\006\006\006\006\006\006\006\006\001\001\006\006\006\006\001\001\001\006\006\001\006\006\006\001\001\001\006\006\006\006\006\006\006\001\006\006\006\006\001\006\006\006\006\006\006\006\006\006\006\006\006\001\001\006\006\006\006\006\006\006\001\006\006\001\006\001\001\001\006\006\006\006\006\006\006\006\006\006\006\006\006\001\006\006\001\006\001\006\006\006\006\006\006\006\006\006\006\001\006\006\006\006\006\006\006\006\001\006\006\006\001\006\001\006\006\006\006\006\001\006\001\006\006\006\006\001\006\001\006\001\006\001\006\001\006\001\001\001\006\001\001\006\001\006\001\006\004\006\006\006\001\006\006\001\006\001\001\001\001\006\006\006\001\006\006\006\006\006\006\006\001\006\006\006\006\006\001\006\001\006\004\006\006\006\006\006\006\006\001\006\001\006\001\006\004\006\001\001\001\001\001\001\001\001\001\001\001\001\001" .space 42 .globl _titlemap_tiles16_flags_9_filler ## @titlemap_tiles16_flags_9_filler .p2align 4 _titlemap_tiles16_flags_9_filler: .space 4096 .subsections_via_symbols
the_stack_data/137452.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __TEXT,__const .globl _Pods_FacebookLoginVersionString ; @Pods_FacebookLoginVersionString _Pods_FacebookLoginVersionString: .asciz "@(#)PROGRAM:Pods_FacebookLogin PROJECT:Pods-1\n" .globl _Pods_FacebookLoginVersionNumber ; @Pods_FacebookLoginVersionNumber .p2align 3 _Pods_FacebookLoginVersionNumber: .quad 0x3ff0000000000000 ; double 1 .no_dead_strip _Pods_FacebookLoginVersionString .no_dead_strip _Pods_FacebookLoginVersionNumber .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __TEXT,__const .globl _Pods_FacebookLoginVersionString ## @Pods_FacebookLoginVersionString .p2align 4 _Pods_FacebookLoginVersionString: .asciz "@(#)PROGRAM:Pods_FacebookLogin PROJECT:Pods-1\n" .globl _Pods_FacebookLoginVersionNumber ## @Pods_FacebookLoginVersionNumber .p2align 3 _Pods_FacebookLoginVersionNumber: .quad 0x3ff0000000000000 ## double 1 .no_dead_strip _Pods_FacebookLoginVersionString .no_dead_strip _Pods_FacebookLoginVersionNumber .subsections_via_symbols
the_stack_data/12638184.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _doHelp ; -- Begin function doHelp .p2align 2 _doHelp: ; @doHelp .cfi_startproc ; %bb.0: stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill .cfi_def_cfa_offset 16 mov x29, sp .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf 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 ldp x29, x30, [sp], #16 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .globl _changemode ; -- Begin function changemode .p2align 2 _changemode: ; @changemode .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, _newt@PAGE add x8, x8, _newt@PAGEOFF stur x8, [x29, #-16] ; 8-byte Folded Spill stur w0, [x29, #-4] ldur w8, [x29, #-4] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: mov w0, #0 str w0, [sp, #20] ; 4-byte Folded Spill adrp x1, _oldt@PAGE add x1, x1, _oldt@PAGEOFF str x1, [sp, #8] ; 8-byte Folded Spill bl _tcgetattr ldr x1, [sp, #8] ; 8-byte Folded Reload adrp x0, _newt@PAGE add x0, x0, _newt@PAGEOFF str x0, [sp, #24] ; 8-byte Folded Spill mov x2, #72 bl _memcpy ldur x9, [x29, #-16] ; 8-byte Folded Reload ldr w1, [sp, #20] ; 4-byte Folded Reload ldr x2, [sp, #24] ; 8-byte Folded Reload ldr x8, [x9, #24] mov x10, #-265 and x8, x8, x10 str x8, [x9, #24] mov x0, x1 bl _tcsetattr b LBB1_3 LBB1_2: mov w1, #0 mov x0, x1 adrp x2, _oldt@PAGE add x2, x2, _oldt@PAGEOFF bl _tcsetattr b LBB1_3 LBB1_3: ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _kbhit ; -- Begin function kbhit .p2align 2 _kbhit: ; @kbhit .cfi_startproc ; %bb.0: sub sp, sp, #272 .cfi_def_cfa_offset 272 stp x28, x27, [sp, #240] ; 16-byte Folded Spill stp x29, x30, [sp, #256] ; 16-byte Folded Spill add x29, sp, #256 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w27, -24 .cfi_offset w28, -32 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, #28] ; 4-byte Folded Spill stur xzr, [x29, #-96] mov w1, #0 stur wzr, [x29, #-88] add x0, sp, #32 str x0, [sp, #16] ; 8-byte Folded Spill mov x2, #128 bl _memset ldr x9, [sp, #16] ; 8-byte Folded Reload ldr w8, [sp, #28] ; 4-byte Folded Reload stur wzr, [x29, #-68] stur x9, [x29, #-80] ldur w10, [x29, #-68] ldur x9, [x29, #-80] stur w10, [x29, #-24] stur x9, [x29, #-32] tbz w8, #0, LBB2_2 b LBB2_1 LBB2_1: ldur w0, [x29, #-24] ldur x1, [x29, #-32] mov w2, #0 bl ___darwin_check_fd_set_overflow stur w0, [x29, #-20] b LBB2_3 LBB2_2: mov w8, #1 stur w8, [x29, #-20] b LBB2_3 LBB2_3: ldur w8, [x29, #-20] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB2_5 b LBB2_4 LBB2_4: ldursw x8, [x29, #-68] 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, #-80] ldursw x9, [x29, #-68] udiv x9, x9, x11 add x9, x8, x9, lsl #2 ldr w8, [x9] orr w8, w8, w10 str w8, [x9] b LBB2_5 LBB2_5: mov w0, #1 add x1, sp, #32 str x1, [sp, #8] ; 8-byte Folded Spill mov x3, #0 mov x2, x3 sub x4, x29, #96 bl _select ldr x9, [sp, #8] ; 8-byte Folded Reload ldr w8, [sp, #28] ; 4-byte Folded Reload stur wzr, [x29, #-56] stur x9, [x29, #-64] ldur w10, [x29, #-56] ldur x9, [x29, #-64] stur w10, [x29, #-40] stur x9, [x29, #-48] tbz w8, #0, LBB2_7 b LBB2_6 LBB2_6: ldur w0, [x29, #-40] ldur x1, [x29, #-48] mov w2, #0 bl ___darwin_check_fd_set_overflow stur w0, [x29, #-36] b LBB2_8 LBB2_7: mov w8, #1 stur w8, [x29, #-36] b LBB2_8 LBB2_8: ldur w8, [x29, #-36] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB2_10 b LBB2_9 LBB2_9: ldur x8, [x29, #-64] ldursw x9, [x29, #-56] mov x11, #32 udiv x9, x9, x11 ldr w8, [x8, x9, lsl #2] ldursw x9, [x29, #-56] 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, #-52] b LBB2_11 LBB2_10: stur wzr, [x29, #-52] b LBB2_11 LBB2_11: ldur w0, [x29, #-52] ldp x29, x30, [sp, #256] ; 16-byte Folded Reload ldp x28, x27, [sp, #240] ; 16-byte Folded Reload add sp, sp, #272 ret .cfi_endproc ; -- End function .globl _controlMotor ; -- Begin function controlMotor .p2align 2 _controlMotor: ; @controlMotor .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, #57792 movk w8, #228, lsl #16 str w8, [sp] ; 4-byte Folded Spill stur w0, [x29, #-8] stur w1, [x29, #-12] stur w2, [x29, #-16] stur wzr, [x29, #-20] str wzr, [sp, #16] str wzr, [sp, #8] ldur w8, [x29, #-12] subs w8, w8, #400 cset w8, ge tbnz w8, #0, LBB3_2 b LBB3_1 LBB3_1: ldr w8, [sp] ; 4-byte Folded Reload ldur w9, [x29, #-12] str w9, [sp, #20] ldr w9, [sp, #20] sdiv w8, w8, w9 str w8, [sp, #24] b LBB3_3 LBB3_2: ldr w8, [sp] ; 4-byte Folded Reload mov w9, #400 str w9, [sp, #20] ldr w9, [sp, #20] sdiv w8, w8, w9 str w8, [sp, #24] b LBB3_3 LBB3_3: b LBB3_4 LBB3_4: ; =>This Inner Loop Header: Depth=1 ldursw x9, [x29, #-20] adrp x8, _stepValue@PAGE add x8, x8, _stepValue@PAGEOFF ldrh w8, [x8, x9, lsl #1] add x1, sp, #12 str w8, [sp, #12] ldur w0, [x29, #-8] mov x2, #4 bl _write ldur w8, [x29, #-20] add w8, w8, #1 stur w8, [x29, #-20] ldur w8, [x29, #-20] subs w8, w8, #4 cset w8, lt tbnz w8, #0, LBB3_16 b LBB3_5 LBB3_5: ; in Loop: Header=BB3_4 Depth=1 stur wzr, [x29, #-20] ldr w8, [sp, #8] add w8, w8, #1 str w8, [sp, #8] ldr w8, [sp, #16] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB3_9 b LBB3_6 LBB3_6: ; in Loop: Header=BB3_4 Depth=1 ldr w8, [sp, #8] ldr w9, [sp, #4] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB3_8 b LBB3_7 LBB3_7: adrp x8, _stepValue@PAGE ldrh w8, [x8, _stepValue@PAGEOFF] add x1, sp, #12 str w8, [sp, #12] ldur w0, [x29, #-8] mov x2, #4 bl _write b LBB3_21 LBB3_8: ; in Loop: Header=BB3_4 Depth=1 b LBB3_15 LBB3_9: ; in Loop: Header=BB3_4 Depth=1 ldr w8, [sp, #8] subs w8, w8, #5 cset w8, le tbnz w8, #0, LBB3_14 b LBB3_10 LBB3_10: ; in Loop: Header=BB3_4 Depth=1 str wzr, [sp, #8] ldur w8, [x29, #-12] ldr w9, [sp, #20] add w9, w9, #400 subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB3_12 b LBB3_11 LBB3_11: ; in Loop: Header=BB3_4 Depth=1 ldr w8, [sp] ; 4-byte Folded Reload ldur w9, [x29, #-12] str w9, [sp, #20] ldr w9, [sp, #20] sdiv w8, w8, w9 str w8, [sp, #24] ldur w8, [x29, #-16] ldr w10, [sp, #24] mov w9, #16960 movk w9, #15, lsl #16 sdiv w9, w9, w10 mul w8, w8, w9 str w8, [sp, #4] mov w8, #1 str w8, [sp, #16] b LBB3_13 LBB3_12: ; in Loop: Header=BB3_4 Depth=1 ldr w8, [sp] ; 4-byte Folded Reload ldr w9, [sp, #20] add w9, w9, #400 str w9, [sp, #20] ldr w9, [sp, #20] sdiv w8, w8, w9 str w8, [sp, #24] b LBB3_13 LBB3_13: ; in Loop: Header=BB3_4 Depth=1 b LBB3_14 LBB3_14: ; in Loop: Header=BB3_4 Depth=1 b LBB3_15 LBB3_15: ; in Loop: Header=BB3_4 Depth=1 b LBB3_16 LBB3_16: ; in Loop: Header=BB3_4 Depth=1 ldr w0, [sp, #24] bl _usleep bl _kbhit subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB3_20 b LBB3_17 LBB3_17: ; in Loop: Header=BB3_4 Depth=1 bl _getchar subs w8, w0, #113 cset w8, ne tbnz w8, #0, LBB3_19 b LBB3_18 LBB3_18: adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf stur wzr, [x29, #-4] b LBB3_22 LBB3_19: ; in Loop: Header=BB3_4 Depth=1 b LBB3_20 LBB3_20: ; in Loop: Header=BB3_4 Depth=1 b LBB3_4 LBB3_21: mov w8, #1 stur w8, [x29, #-4] b LBB3_22 LBB3_22: ldur w0, [x29, #-4] ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #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, #3 cset w8, ge tbnz w8, #0, LBB4_2 b LBB4_1 LBB4_1: adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _perror bl _doHelp mov w8, #1 stur w8, [x29, #-4] b LBB4_11 LBB4_2: ldr x8, [sp, #16] ldr x0, [x8, #8] bl _atoi str w0, [sp, #8] ldr w8, [sp, #8] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB4_4 b LBB4_3 LBB4_3: mov w8, #60 str w8, [sp, #8] b LBB4_4 LBB4_4: ldr w8, [sp, #8] subs w8, w8, #3600 cset w8, le tbnz w8, #0, LBB4_6 b LBB4_5 LBB4_5: mov w8, #3600 str w8, [sp, #8] b LBB4_6 LBB4_6: ldr x8, [sp, #16] ldr x0, [x8, #16] bl _atoi str w0, [sp, #12] ldr w8, [sp, #12] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB4_8 b LBB4_7 LBB4_7: mov w8, #3 str w8, [sp, #12] b LBB4_8 LBB4_8: mov w0, #1 bl _changemode adrp x0, l_.str.7@PAGE add x0, x0, l_.str.7@PAGEOFF mov w1, #2 bl _open str w0, [sp, #4] ldr w8, [sp, #4] subs w8, w8, #0 cset w8, ge tbnz w8, #0, LBB4_10 b LBB4_9 LBB4_9: adrp x0, l_.str.8@PAGE add x0, x0, l_.str.8@PAGEOFF bl _perror mov w8, #1 stur w8, [x29, #-4] b LBB4_11 LBB4_10: ldr w0, [sp, #4] ldr w1, [sp, #8] ldr w2, [sp, #12] bl _controlMotor ldr w0, [sp, #4] bl _close mov w0, #0 bl _changemode stur wzr, [x29, #-4] b LBB4_11 LBB4_11: ldur w0, [x29, #-4] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Usage:\n" l_.str.1: ; @.str.1 .asciz "motortest velocity sec\n" l_.str.2: ; @.str.2 .asciz "velocity :60 ~ 3600 \n" l_.str.3: ; @.str.3 .asciz "Exit => 'q'\n" l_.str.4: ; @.str.4 .asciz "ex) motortest 500 3 ; 30 velocity for 3 Sec\n" .section __TEXT,__const .globl _stepValue ; @stepValue .p2align 1 _stepValue: .short 9 ; 0x9 .short 3 ; 0x3 .short 6 ; 0x6 .short 12 ; 0xc .zerofill __DATA,__bss,_oldt,72,3 ; @oldt .zerofill __DATA,__bss,_newt,72,3 ; @newt .section __TEXT,__cstring,cstring_literals l_.str.5: ; @.str.5 .asciz "Exit mledtest\n" l_.str.6: ; @.str.6 .asciz " Args number is less than 3\n" l_.str.7: ; @.str.7 .asciz "/dev/cnmotor" l_.str.8: ; @.str.8 .asciz "driver open error.\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _doHelp ## -- Begin function doHelp .p2align 4, 0x90 _doHelp: ## @doHelp .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq L_.str(%rip), %rdi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf popq %rbp retq .cfi_endproc ## -- End function .globl _changemode ## -- Begin function changemode .p2align 4, 0x90 _changemode: ## @changemode .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl %edi, -4(%rbp) cmpl $1, -4(%rbp) jne LBB1_2 ## %bb.1: xorl %edi, %edi leaq _oldt(%rip), %rsi callq _tcgetattr leaq _newt(%rip), %rdi leaq _oldt(%rip), %rsi movl $72, %edx callq _memcpy movq _newt+24(%rip), %rax andq $-265, %rax ## imm = 0xFEF7 movq %rax, _newt+24(%rip) xorl %esi, %esi leaq _newt(%rip), %rdx movl %esi, %edi callq _tcsetattr jmp LBB1_3 LBB1_2: xorl %esi, %esi leaq _oldt(%rip), %rdx movl %esi, %edi callq _tcsetattr LBB1_3: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _kbhit ## -- Begin function kbhit .p2align 4, 0x90 _kbhit: ## @kbhit .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 $0, -80(%rbp) movl $0, -72(%rbp) xorps %xmm0, %xmm0 movaps %xmm0, -224(%rbp) ## 16-byte Spill movaps %xmm0, -96(%rbp) movaps %xmm0, -112(%rbp) movaps %xmm0, -128(%rbp) movaps %xmm0, -144(%rbp) movaps %xmm0, -160(%rbp) movaps %xmm0, -176(%rbp) movaps %xmm0, -192(%rbp) movaps %xmm0, -208(%rbp) movl $0, -52(%rbp) leaq -208(%rbp), %rax movq %rax, -64(%rbp) movl -52(%rbp), %ecx movq -64(%rbp), %rax movl %ecx, -8(%rbp) movq %rax, -16(%rbp) movq ___darwin_check_fd_set_overflow@GOTPCREL(%rip), %rax testq %rax, %rax je LBB2_2 jmp LBB2_1 LBB2_1: movl -8(%rbp), %edi movq -16(%rbp), %rsi xorl %edx, %edx callq ___darwin_check_fd_set_overflow movl %eax, -4(%rbp) jmp LBB2_3 LBB2_2: movl $1, -4(%rbp) LBB2_3: cmpl $0, -4(%rbp) je LBB2_5 ## %bb.4: movslq -52(%rbp), %rcx andq $31, %rcx movl $1, %eax ## kill: def $cl killed $rcx shlq %cl, %rax movl %eax, %edx movq -64(%rbp), %rax movslq -52(%rbp), %rcx shrq $5, %rcx orl (%rax,%rcx,4), %edx movl %edx, (%rax,%rcx,4) LBB2_5: xorl %eax, %eax movl %eax, %ecx movl $1, %edi leaq -208(%rbp), %rsi movq %rsi, -232(%rbp) ## 8-byte Spill leaq -80(%rbp), %r8 movq %rcx, %rdx callq _select$1050 ## kill: def $ecx killed $eax movq -232(%rbp), %rax ## 8-byte Reload movl $0, -40(%rbp) movq %rax, -48(%rbp) movl -40(%rbp), %ecx movq -48(%rbp), %rax movl %ecx, -24(%rbp) movq %rax, -32(%rbp) movq ___darwin_check_fd_set_overflow@GOTPCREL(%rip), %rax testq %rax, %rax je LBB2_7 jmp LBB2_6 LBB2_6: movl -24(%rbp), %edi movq -32(%rbp), %rsi xorl %edx, %edx callq ___darwin_check_fd_set_overflow movl %eax, -20(%rbp) jmp LBB2_8 LBB2_7: movl $1, -20(%rbp) LBB2_8: cmpl $0, -20(%rbp) je LBB2_10 ## %bb.9: movq -48(%rbp), %rax movslq -40(%rbp), %rcx shrq $5, %rcx movl (%rax,%rcx,4), %eax movslq -40(%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, -36(%rbp) jmp LBB2_11 LBB2_10: movl $0, -36(%rbp) LBB2_11: movl -36(%rbp), %eax addq $240, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _controlMotor ## -- Begin function controlMotor .p2align 4, 0x90 _controlMotor: ## @controlMotor .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movl %edi, -8(%rbp) movl %esi, -12(%rbp) movl %edx, -16(%rbp) movl $0, -20(%rbp) movl $0, -32(%rbp) movl $0, -40(%rbp) cmpl $400, -12(%rbp) ## imm = 0x190 jge LBB3_2 ## %bb.1: movl -12(%rbp), %eax movl %eax, -28(%rbp) movl $15000000, %eax ## imm = 0xE4E1C0 cltd idivl -28(%rbp) movl %eax, -24(%rbp) jmp LBB3_3 LBB3_2: movl $400, -28(%rbp) ## imm = 0x190 movl $15000000, %eax ## imm = 0xE4E1C0 cltd idivl -28(%rbp) movl %eax, -24(%rbp) LBB3_3: jmp LBB3_4 LBB3_4: ## =>This Inner Loop Header: Depth=1 movslq -20(%rbp), %rcx leaq _stepValue(%rip), %rax movzwl (%rax,%rcx,2), %eax movl %eax, -36(%rbp) movl -8(%rbp), %edi leaq -36(%rbp), %rsi movl $4, %edx callq _write movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) cmpl $4, -20(%rbp) jl LBB3_16 ## %bb.5: ## in Loop: Header=BB3_4 Depth=1 movl $0, -20(%rbp) movl -40(%rbp), %eax addl $1, %eax movl %eax, -40(%rbp) cmpl $0, -32(%rbp) je LBB3_9 ## %bb.6: ## in Loop: Header=BB3_4 Depth=1 movl -40(%rbp), %eax cmpl -44(%rbp), %eax jle LBB3_8 ## %bb.7: movzwl _stepValue(%rip), %eax movl %eax, -36(%rbp) movl -8(%rbp), %edi leaq -36(%rbp), %rsi movl $4, %edx callq _write jmp LBB3_21 LBB3_8: ## in Loop: Header=BB3_4 Depth=1 jmp LBB3_15 LBB3_9: ## in Loop: Header=BB3_4 Depth=1 cmpl $5, -40(%rbp) jle LBB3_14 ## %bb.10: ## in Loop: Header=BB3_4 Depth=1 movl $0, -40(%rbp) movl -12(%rbp), %eax movl -28(%rbp), %ecx addl $400, %ecx ## imm = 0x190 cmpl %ecx, %eax jg LBB3_12 ## %bb.11: ## in Loop: Header=BB3_4 Depth=1 movl -12(%rbp), %eax movl %eax, -28(%rbp) movl $15000000, %eax ## imm = 0xE4E1C0 cltd idivl -28(%rbp) movl %eax, -24(%rbp) movl -16(%rbp), %eax movl %eax, -48(%rbp) ## 4-byte Spill movl $1000000, %eax ## imm = 0xF4240 cltd idivl -24(%rbp) movl %eax, %ecx movl -48(%rbp), %eax ## 4-byte Reload imull %ecx, %eax movl %eax, -44(%rbp) movl $1, -32(%rbp) jmp LBB3_13 LBB3_12: ## in Loop: Header=BB3_4 Depth=1 movl -28(%rbp), %eax addl $400, %eax ## imm = 0x190 movl %eax, -28(%rbp) movl $15000000, %eax ## imm = 0xE4E1C0 cltd idivl -28(%rbp) movl %eax, -24(%rbp) LBB3_13: ## in Loop: Header=BB3_4 Depth=1 jmp LBB3_14 LBB3_14: ## in Loop: Header=BB3_4 Depth=1 jmp LBB3_15 LBB3_15: ## in Loop: Header=BB3_4 Depth=1 jmp LBB3_16 LBB3_16: ## in Loop: Header=BB3_4 Depth=1 movl -24(%rbp), %edi callq _usleep callq _kbhit cmpl $0, %eax je LBB3_20 ## %bb.17: ## in Loop: Header=BB3_4 Depth=1 callq _getchar cmpl $113, %eax jne LBB3_19 ## %bb.18: leaq L_.str.5(%rip), %rdi movb $0, %al callq _printf movl $0, -4(%rbp) jmp LBB3_22 LBB3_19: ## in Loop: Header=BB3_4 Depth=1 jmp LBB3_20 LBB3_20: ## in Loop: Header=BB3_4 Depth=1 jmp LBB3_4 LBB3_21: movl $1, -4(%rbp) LBB3_22: movl -4(%rbp), %eax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl $0, -4(%rbp) movl %edi, -8(%rbp) movq %rsi, -16(%rbp) cmpl $3, -8(%rbp) jge LBB4_2 ## %bb.1: leaq L_.str.6(%rip), %rdi callq _perror callq _doHelp movl $1, -4(%rbp) jmp LBB4_11 LBB4_2: movq -16(%rbp), %rax movq 8(%rax), %rdi callq _atoi movl %eax, -24(%rbp) cmpl $0, -24(%rbp) jne LBB4_4 ## %bb.3: movl $60, -24(%rbp) LBB4_4: cmpl $3600, -24(%rbp) ## imm = 0xE10 jle LBB4_6 ## %bb.5: movl $3600, -24(%rbp) ## imm = 0xE10 LBB4_6: movq -16(%rbp), %rax movq 16(%rax), %rdi callq _atoi movl %eax, -20(%rbp) cmpl $0, -20(%rbp) jne LBB4_8 ## %bb.7: movl $3, -20(%rbp) LBB4_8: movl $1, %edi callq _changemode leaq L_.str.7(%rip), %rdi movl $2, %esi movb $0, %al callq _open movl %eax, -28(%rbp) cmpl $0, -28(%rbp) jge LBB4_10 ## %bb.9: leaq L_.str.8(%rip), %rdi callq _perror movl $1, -4(%rbp) jmp LBB4_11 LBB4_10: movl -28(%rbp), %edi movl -24(%rbp), %esi movl -20(%rbp), %edx callq _controlMotor movl -28(%rbp), %edi callq _close xorl %edi, %edi callq _changemode movl $0, -4(%rbp) LBB4_11: movl -4(%rbp), %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Usage:\n" L_.str.1: ## @.str.1 .asciz "motortest velocity sec\n" L_.str.2: ## @.str.2 .asciz "velocity :60 ~ 3600 \n" L_.str.3: ## @.str.3 .asciz "Exit => 'q'\n" L_.str.4: ## @.str.4 .asciz "ex) motortest 500 3 ; 30 velocity for 3 Sec\n" .section __TEXT,__const .globl _stepValue ## @stepValue .p2align 1 _stepValue: .short 9 ## 0x9 .short 3 ## 0x3 .short 6 ## 0x6 .short 12 ## 0xc .zerofill __DATA,__bss,_oldt,72,3 ## @oldt .zerofill __DATA,__bss,_newt,72,3 ## @newt .section __TEXT,__cstring,cstring_literals L_.str.5: ## @.str.5 .asciz "Exit mledtest\n" L_.str.6: ## @.str.6 .asciz " Args number is less than 3\n" L_.str.7: ## @.str.7 .asciz "/dev/cnmotor" L_.str.8: ## @.str.8 .asciz "driver open error.\n" .subsections_via_symbols
the_stack_data/107953059.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _f ; -- Begin function f .p2align 2 _f: ; @f .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #16] str w1, [sp, #12] ldr w8, [sp, #12] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: stur wzr, [x29, #-4] b LBB0_5 LBB0_2: ldr x0, [sp, #16] ldr w8, [sp, #12] subs w1, w8, #1 bl _f str w0, [sp, #8] ldr x8, [sp, #16] ldr w9, [sp, #12] subs w9, w9, #1 ldr w8, [x8, w9, sxtw #2] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: ldr w8, [sp, #8] ldr x9, [sp, #16] ldr w10, [sp, #12] subs w10, w10, #1 ldr w9, [x9, w10, sxtw #2] add w8, w8, w9 str w8, [sp, #8] b LBB0_4 LBB0_4: ldr w8, [sp, #8] stur w8, [x29, #-4] b LBB0_5 LBB0_5: ldur w0, [x29, #-4] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _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, #12] adrp x8, l___const.main.v@PAGE add x8, x8, l___const.main.v@PAGEOFF ldr q0, [x8] add x0, sp, #16 str q0, [sp, #16] ldr x8, [x8, #16] str x8, [sp, #32] mov w1, #6 bl _f mov x9, sp ; implicit-def: $x8 mov x8, x0 str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: bl ___stack_chk_fail LBB1_2: mov w0, #0 ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .section __TEXT,__const .p2align 2 ; @__const.main.v l___const.main.v: .long 2 ; 0x2 .long 4294967292 ; 0xfffffffc .long 7 ; 0x7 .long 0 ; 0x0 .long 4294967295 ; 0xffffffff .long 4 ; 0x4 .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 _f ## -- Begin function f .p2align 4, 0x90 _f: ## @f .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -16(%rbp) movl %esi, -20(%rbp) cmpl $0, -20(%rbp) jne LBB0_2 ## %bb.1: movl $0, -4(%rbp) jmp LBB0_5 LBB0_2: movq -16(%rbp), %rdi movl -20(%rbp), %esi subl $1, %esi callq _f movl %eax, -24(%rbp) movq -16(%rbp), %rax movl -20(%rbp), %ecx subl $1, %ecx movslq %ecx, %rcx cmpl $0, (%rax,%rcx,4) jle LBB0_4 ## %bb.3: movl -24(%rbp), %eax movq -16(%rbp), %rcx movl -20(%rbp), %edx subl $1, %edx movslq %edx, %rdx addl (%rcx,%rdx,4), %eax movl %eax, -24(%rbp) LBB0_4: movl -24(%rbp), %eax movl %eax, -4(%rbp) LBB0_5: movl -4(%rbp), %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -36(%rbp) movq l___const.main.v(%rip), %rax movq %rax, -32(%rbp) movq l___const.main.v+8(%rip), %rax movq %rax, -24(%rbp) movq l___const.main.v+16(%rip), %rax movq %rax, -16(%rbp) leaq -32(%rbp), %rdi movl $6, %esi callq _f movl %eax, %esi leaq L_.str(%rip), %rdi movb $0, %al callq _printf movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB1_2 ## %bb.1: xorl %eax, %eax addq $48, %rsp popq %rbp retq LBB1_2: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__const .p2align 4 ## @__const.main.v l___const.main.v: .long 2 ## 0x2 .long 4294967292 ## 0xfffffffc .long 7 ## 0x7 .long 0 ## 0x0 .long 4294967295 ## 0xffffffff .long 4 ## 0x4 .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d" .subsections_via_symbols
the_stack_data/103266146.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "counter3.dll" .section __DATA,__data .globl _pszDllPathname ; @pszDllPathname .p2align 3 _pszDllPathname: .quad l_.str .section __TEXT,__cstring,cstring_literals l_.str.1: ; @.str.1 .asciz "C:/Program Files (x86)/Esterel Technologies/Esterel SCADE 6.2.1/SCADE Suite/bin/SCSSMLNC.exe" .section __DATA,__data .globl _pszLauncherPathname ; @pszLauncherPathname .p2align 3 _pszLauncherPathname: .quad l_.str.1 .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "counter3.dll" .section __DATA,__data .globl _pszDllPathname ## @pszDllPathname .p2align 3 _pszDllPathname: .quad L_.str .section __TEXT,__cstring,cstring_literals L_.str.1: ## @.str.1 .asciz "C:/Program Files (x86)/Esterel Technologies/Esterel SCADE 6.2.1/SCADE Suite/bin/SCSSMLNC.exe" .section __DATA,__data .globl _pszLauncherPathname ## @pszLauncherPathname .p2align 3 _pszLauncherPathname: .quad L_.str.1 .subsections_via_symbols
the_stack_data/111079256.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #0 stur w8, [x29, #-20] ; 4-byte Folded Spill stur wzr, [x29, #-4] mov x0, #4 bl _malloc stur x0, [x29, #-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 ldur x0, [x29, #-16] bl _free ldr x0, [sp, #16] ; 8-byte Folded Reload ldur x8, [x29, #-16] mov x9, sp str x8, [x9] bl _printf ldur x0, [x29, #-16] bl _free ldr x0, [sp, #16] ; 8-byte Folded Reload ldur x8, [x29, #-16] mov x9, sp str x8, [x9] bl _printf ldur w0, [x29, #-20] ; 4-byte Folded Reload ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "i=%p\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 $4, %edi callq _malloc movq %rax, -16(%rbp) movq -16(%rbp), %rsi leaq L_.str(%rip), %rdi movb $0, %al callq _printf movq -16(%rbp), %rdi callq _free movq -16(%rbp), %rsi leaq L_.str(%rip), %rdi movb $0, %al callq _printf movq -16(%rbp), %rdi callq _free movq -16(%rbp), %rsi leaq L_.str(%rip), %rdi movb $0, %al callq _printf xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "i=%p\n" .subsections_via_symbols
the_stack_data/106341.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _bitCount ; -- Begin function bitCount .p2align 2 _bitCount: ; @bitCount .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #12] str wzr, [sp, #8] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #12] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_4 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #8] add w8, w8, #1 str w8, [sp, #8] b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #12] subs w9, w8, #1 ldr w8, [sp, #12] and w8, w8, w9 str w8, [sp, #12] b LBB0_1 LBB0_4: ldr w0, [sp, #8] add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _countBits ; -- Begin function countBits .p2align 2 _countBits: ; @countBits .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] ldur w8, [x29, #-4] add w8, w8, #1 ldr x9, [sp, #16] str w8, [x9] ldr x8, [sp, #16] ldrsw x9, [x8] mov x8, #4 mul x0, x8, x9 bl _malloc str x0, [sp, #8] str wzr, [sp, #4] b LBB1_1 LBB1_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #4] ldur w9, [x29, #-4] 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 w0, [sp, #4] bl _bitCount ldr x8, [sp, #8] ldrsw x9, [sp, #4] str w0, [x8, x9, lsl #2] b LBB1_3 LBB1_3: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #4] add w8, w8, #1 str w8, [sp, #4] b LBB1_1 LBB1_4: ldr x0, [sp, #8] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _bitCount ## -- Begin function bitCount .p2align 4, 0x90 _bitCount: ## @bitCount .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) LBB0_1: ## =>This Inner Loop Header: Depth=1 cmpl $0, -4(%rbp) je LBB0_4 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movl -4(%rbp), %eax subl $1, %eax andl -4(%rbp), %eax movl %eax, -4(%rbp) jmp LBB0_1 LBB0_4: movl -8(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .globl _countBits ## -- Begin function countBits .p2align 4, 0x90 _countBits: ## @countBits .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 -4(%rbp), %ecx addl $1, %ecx movq -16(%rbp), %rax movl %ecx, (%rax) movq -16(%rbp), %rax movslq (%rax), %rdi shlq $2, %rdi callq _malloc movq %rax, -24(%rbp) movl $0, -28(%rbp) LBB1_1: ## =>This Inner Loop Header: Depth=1 movl -28(%rbp), %eax cmpl -4(%rbp), %eax jg LBB1_4 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 movl -28(%rbp), %edi callq _bitCount movl %eax, %edx movq -24(%rbp), %rax movslq -28(%rbp), %rcx movl %edx, (%rax,%rcx,4) ## %bb.3: ## in Loop: Header=BB1_1 Depth=1 movl -28(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) jmp LBB1_1 LBB1_4: movq -24(%rbp), %rax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/141367.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _subarraySum ; -- Begin function subarraySum .p2align 2 _subarraySum: ; @subarraySum .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 str x0, [sp, #40] str w1, [sp, #36] str w2, [sp, #32] ldr w8, [sp, #36] subs w8, w8, #0 cset w8, eq mov w9, #0 str w9, [sp, #12] ; 4-byte Folded Spill tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: ldr x8, [sp, #40] ldr w8, [x8] ldr w9, [sp, #32] subs w8, w8, w9 cset w8, eq str w8, [sp, #12] ; 4-byte Folded Spill b LBB0_2 LBB0_2: ldr w8, [sp, #12] ; 4-byte Folded Reload and w8, w8, #0x1 str w8, [sp, #28] mov w8, #1 str w8, [sp, #24] b LBB0_3 LBB0_3: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #24] ldr w9, [sp, #36] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_6 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_3 Depth=1 ldr x8, [sp, #40] ldr w9, [sp, #24] subs w9, w9, #1 ldr w10, [x8, w9, sxtw #2] ldr x8, [sp, #40] ldrsw x9, [sp, #24] add x9, x8, x9, lsl #2 ldr w8, [x9] add w8, w8, w10 str w8, [x9] b LBB0_5 LBB0_5: ; in Loop: Header=BB0_3 Depth=1 ldr w8, [sp, #24] add w8, w8, #1 str w8, [sp, #24] b LBB0_3 LBB0_6: mov w8, #1 str w8, [sp, #20] b LBB0_7 LBB0_7: ; =>This Loop Header: Depth=1 ; Child Loop BB0_9 Depth 2 ldr w8, [sp, #20] ldr w9, [sp, #36] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_16 b LBB0_8 LBB0_8: ; in Loop: Header=BB0_7 Depth=1 ldr x8, [sp, #40] ldrsw x9, [sp, #20] ldr w8, [x8, x9, lsl #2] ldr w9, [sp, #32] subs w8, w8, w9 cset w8, eq and w9, w8, #0x1 ldr w8, [sp, #28] add w8, w8, w9 str w8, [sp, #28] ldr w8, [sp, #20] str w8, [sp, #16] b LBB0_9 LBB0_9: ; Parent Loop BB0_7 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #16] ldr w9, [sp, #36] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_14 b LBB0_10 LBB0_10: ; in Loop: Header=BB0_9 Depth=2 ldr x8, [sp, #40] ldrsw x9, [sp, #16] ldr w8, [x8, x9, lsl #2] ldr x9, [sp, #40] ldr w10, [sp, #20] subs w10, w10, #1 ldr w9, [x9, w10, sxtw #2] subs w8, w8, w9 ldr w9, [sp, #32] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_12 b LBB0_11 LBB0_11: ; in Loop: Header=BB0_9 Depth=2 ldr w8, [sp, #28] add w8, w8, #1 str w8, [sp, #28] b LBB0_12 LBB0_12: ; in Loop: Header=BB0_9 Depth=2 b LBB0_13 LBB0_13: ; in Loop: Header=BB0_9 Depth=2 ldr w8, [sp, #16] add w8, w8, #1 str w8, [sp, #16] b LBB0_9 LBB0_14: ; in Loop: Header=BB0_7 Depth=1 b LBB0_15 LBB0_15: ; in Loop: Header=BB0_7 Depth=1 ldr w8, [sp, #20] add w8, w8, #1 str w8, [sp, #20] b LBB0_7 LBB0_16: ldr w0, [sp, #28] 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 _subarraySum ## -- Begin function subarraySum .p2align 4, 0x90 _subarraySum: ## @subarraySum .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) movl %edx, -16(%rbp) xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $0, -12(%rbp) movb %al, -33(%rbp) ## 1-byte Spill je LBB0_2 ## %bb.1: movq -8(%rbp), %rax movl (%rax), %eax cmpl -16(%rbp), %eax sete %al movb %al, -33(%rbp) ## 1-byte Spill LBB0_2: movb -33(%rbp), %al ## 1-byte Reload andb $1, %al movzbl %al, %eax movl %eax, -20(%rbp) movl $1, -24(%rbp) LBB0_3: ## =>This Inner Loop Header: Depth=1 movl -24(%rbp), %eax cmpl -12(%rbp), %eax jge LBB0_6 ## %bb.4: ## in Loop: Header=BB0_3 Depth=1 movq -8(%rbp), %rax movl -24(%rbp), %ecx subl $1, %ecx movslq %ecx, %rcx movl (%rax,%rcx,4), %edx movq -8(%rbp), %rax movslq -24(%rbp), %rcx addl (%rax,%rcx,4), %edx movl %edx, (%rax,%rcx,4) ## %bb.5: ## in Loop: Header=BB0_3 Depth=1 movl -24(%rbp), %eax addl $1, %eax movl %eax, -24(%rbp) jmp LBB0_3 LBB0_6: movl $1, -28(%rbp) LBB0_7: ## =>This Loop Header: Depth=1 ## Child Loop BB0_9 Depth 2 movl -28(%rbp), %eax cmpl -12(%rbp), %eax jge LBB0_16 ## %bb.8: ## in Loop: Header=BB0_7 Depth=1 movq -8(%rbp), %rax movslq -28(%rbp), %rcx movl (%rax,%rcx,4), %eax cmpl -16(%rbp), %eax sete %al andb $1, %al movzbl %al, %eax addl -20(%rbp), %eax movl %eax, -20(%rbp) movl -28(%rbp), %eax movl %eax, -32(%rbp) LBB0_9: ## Parent Loop BB0_7 Depth=1 ## => This Inner Loop Header: Depth=2 movl -32(%rbp), %eax cmpl -12(%rbp), %eax jge LBB0_14 ## %bb.10: ## in Loop: Header=BB0_9 Depth=2 movq -8(%rbp), %rax movslq -32(%rbp), %rcx movl (%rax,%rcx,4), %eax movq -8(%rbp), %rcx movl -28(%rbp), %edx subl $1, %edx movslq %edx, %rdx subl (%rcx,%rdx,4), %eax cmpl -16(%rbp), %eax jne LBB0_12 ## %bb.11: ## in Loop: Header=BB0_9 Depth=2 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) LBB0_12: ## in Loop: Header=BB0_9 Depth=2 jmp LBB0_13 LBB0_13: ## in Loop: Header=BB0_9 Depth=2 movl -32(%rbp), %eax addl $1, %eax movl %eax, -32(%rbp) jmp LBB0_9 LBB0_14: ## in Loop: Header=BB0_7 Depth=1 jmp LBB0_15 LBB0_15: ## in Loop: Header=BB0_7 Depth=1 movl -28(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) jmp LBB0_7 LBB0_16: movl -20(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/20450994.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] mov w8, #1 stur w8, [x29, #-8] stur wzr, [x29, #-12] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-12] ldur w9, [x29, #-8] add w8, w8, w9 stur w8, [x29, #-12] ldur w8, [x29, #-8] add w8, w8, #1 stur w8, [x29, #-8] b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-8] subs w8, w8, #100 cset w8, le tbnz w8, #0, LBB0_1 b LBB0_3 LBB0_3: ldur w9, [x29, #-12] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf 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 "the value of sum from 1 to 100 is %d.\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) movl $1, -8(%rbp) movl $0, -12(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movl -12(%rbp), %eax addl -8(%rbp), %eax movl %eax, -12(%rbp) movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 cmpl $100, -8(%rbp) jle LBB0_1 ## %bb.3: movl -12(%rbp), %esi leaq L_.str(%rip), %rdi movb $0, %al callq _printf xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "the value of sum from 1 to 100 is %d.\n" .subsections_via_symbols
the_stack_data/178265709.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] movi d0, #0000000000000000 stur s0, [x29, #-16] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf mov x9, sp sub x8, x29, #8 str x8, [x9] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _scanf adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@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 ldur s0, [x29, #-12] mov w8, #1112014848 fmov s1, w8 fcmp s0, s1 cset w8, le tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: ldur s0, [x29, #-12] mov w8, #1112014848 fmov s1, w8 fsub s0, s0, s1 stur s0, [x29, #-16] ldur s0, [x29, #-12] ldur s1, [x29, #-16] fsub s0, s0, s1 stur s0, [x29, #-12] b LBB0_2 LBB0_2: ldur s0, [x29, #-12] fmov s1, #10.00000000 fmul s0, s0, s1 stur s0, [x29, #-12] ldur s0, [x29, #-16] fmov s1, #20.00000000 fmul s0, s0, s1 stur s0, [x29, #-16] ldur w8, [x29, #-8] ; implicit-def: $x9 mov x9, x8 ldur s0, [x29, #-12] fcvt d1, s0 ldur s0, [x29, #-16] fcvt d0, s0 mov x8, sp str x9, [x8] str d1, [x8, #8] str d0, [x8, #16] adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _printf ldur w0, [x29, #-4] ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Este programa calcula o sal\303\241rio de um oper\303\241rio de acordo com o\n" l_.str.1: ; @.str.1 .asciz "n\303\272mero de horas trabalhadas, bem como horas extras.\n" l_.str.2: ; @.str.2 .asciz "Informe o c\303\263digo do oper\303\241rio: " l_.str.3: ; @.str.3 .asciz "%i" l_.str.4: ; @.str.4 .asciz "Agora informe o n\303\272mero de horas trabalhadas: " l_.str.5: ; @.str.5 .asciz "%f" l_.str.6: ; @.str.6 .asciz "O oper\303\241rio %i receber\303\241 R$ %.2f e um adicional de R$ %.2f de horas extras" .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 0x42480000 ## float 50 LCPI0_1: .long 0x41a00000 ## float 20 LCPI0_2: .long 0x41200000 ## float 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 $16, %rsp movl $0, -4(%rbp) xorps %xmm0, %xmm0 movss %xmm0, -16(%rbp) leaq L_.str(%rip), %rdi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf leaq L_.str.3(%rip), %rdi leaq -8(%rbp), %rsi movb $0, %al callq _scanf leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf leaq L_.str.5(%rip), %rdi leaq -12(%rbp), %rsi movb $0, %al callq _scanf movss -12(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero ucomiss %xmm1, %xmm0 jbe LBB0_2 ## %bb.1: movss -12(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero subss %xmm1, %xmm0 movss %xmm0, -16(%rbp) movss -12(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero subss -16(%rbp), %xmm0 movss %xmm0, -12(%rbp) LBB0_2: movss LCPI0_2(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero mulss -12(%rbp), %xmm0 movss %xmm0, -12(%rbp) movss LCPI0_1(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero mulss -16(%rbp), %xmm0 movss %xmm0, -16(%rbp) movl -8(%rbp), %esi movss -12(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movss -16(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero cvtss2sd %xmm1, %xmm1 leaq L_.str.6(%rip), %rdi movb $2, %al callq _printf movl -4(%rbp), %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Este programa calcula o sal\303\241rio de um oper\303\241rio de acordo com o\n" L_.str.1: ## @.str.1 .asciz "n\303\272mero de horas trabalhadas, bem como horas extras.\n" L_.str.2: ## @.str.2 .asciz "Informe o c\303\263digo do oper\303\241rio: " L_.str.3: ## @.str.3 .asciz "%i" L_.str.4: ## @.str.4 .asciz "Agora informe o n\303\272mero de horas trabalhadas: " L_.str.5: ## @.str.5 .asciz "%f" L_.str.6: ## @.str.6 .asciz "O oper\303\241rio %i receber\303\241 R$ %.2f e um adicional de R$ %.2f de horas extras" .subsections_via_symbols
the_stack_data/45125.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _getservbyport_r ; -- Begin function getservbyport_r .p2align 2 _getservbyport_r: ; @getservbyport_r .cfi_startproc ; %bb.0: sub sp, sp, #144 .cfi_def_cfa_offset 144 stp x29, x30, [sp, #128] ; 16-byte Folded Spill add x29, sp, #128 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] stur w0, [x29, #-32] stur x1, [x29, #-40] stur x2, [x29, #-48] stur x3, [x29, #-56] str x4, [sp, #64] str x5, [sp, #56] sturb wzr, [x29, #-24] mov w8, #2 sturb w8, [x29, #-23] ldur w8, [x29, #-32] sturh w8, [x29, #-22] stur wzr, [x29, #-20] stur xzr, [x29, #-16] ldur x8, [x29, #-40] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB0_4 b LBB0_1 LBB0_1: ldur w0, [x29, #-32] ldur x2, [x29, #-48] ldur x3, [x29, #-56] ldr x4, [sp, #64] ldr x5, [sp, #56] adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF bl _getservbyport_r str w0, [sp, #48] ldr w8, [sp, #48] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: ldur w0, [x29, #-32] ldur x2, [x29, #-48] ldur x3, [x29, #-56] ldr x4, [sp, #64] ldr x5, [sp, #56] adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF bl _getservbyport_r str w0, [sp, #48] b LBB0_3 LBB0_3: ldr w8, [sp, #48] stur w8, [x29, #-28] b LBB0_22 LBB0_4: ldr x8, [sp, #56] ; kill: def $x9 killed $xzr str xzr, [x8] ldur x8, [x29, #-56] and x8, x8, #0x7 ; kill: def $w8 killed $w8 killed $x8 str w8, [sp, #52] ldr w8, [sp, #52] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: mov w8, #8 str w8, [sp, #52] b LBB0_6 LBB0_6: ldr x8, [sp, #64] ldrsw x10, [sp, #52] mov x9, #24 subs x9, x9, x10 subs x8, x8, x9 cset w8, hs tbnz w8, #0, LBB0_8 b LBB0_7 LBB0_7: mov w8, #34 stur w8, [x29, #-28] b LBB0_22 LBB0_8: ldrsw x9, [sp, #52] mov x8, #8 subs x10, x8, x9 ldur x9, [x29, #-56] add x9, x9, x10 stur x9, [x29, #-56] ldrsw x9, [sp, #52] subs x9, x8, x9 ldr x8, [sp, #64] subs x8, x8, x9 str x8, [sp, #64] ldur x0, [x29, #-40] adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF bl _strcmp subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB0_11 b LBB0_9 LBB0_9: ldur x0, [x29, #-40] adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF bl _strcmp subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB0_11 b LBB0_10 LBB0_10: mov w8, #22 stur w8, [x29, #-28] b LBB0_22 LBB0_11: ldur w8, [x29, #-32] ldur x9, [x29, #-48] str w8, [x9, #16] ldur x8, [x29, #-40] ldur x9, [x29, #-48] str x8, [x9, #24] ldur x8, [x29, #-56] ldur x9, [x29, #-48] str x8, [x9, #8] ldur x8, [x29, #-56] add x8, x8, #16 stur x8, [x29, #-56] ldr x8, [sp, #64] subs x8, x8, #16 str x8, [sp, #64] ldur x8, [x29, #-48] ldr x8, [x8, #8] mov x9, #0 str x9, [sp, #24] ; 8-byte Folded Spill str xzr, [x8, #8] ldur x8, [x29, #-56] ldur x9, [x29, #-48] str x8, [x9] ldur x9, [x29, #-48] ldr x9, [x9, #8] str x8, [x9] ldur x8, [x29, #-56] str x8, [sp, #32] ; 8-byte Folded Spill ldr x8, [sp, #64] ; kill: def $w8 killed $w8 killed $x8 str w8, [sp, #40] ; 4-byte Folded Spill ldur x0, [x29, #-40] adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF bl _strcmp ldr x2, [sp, #24] ; 8-byte Folded Reload ldr x4, [sp, #32] ; 8-byte Folded Reload ldr w5, [sp, #40] ; 4-byte Folded Reload mov w3, #0 subs w8, w0, #0 cset w8, ne and w8, w8, #0x1 mov w1, #16 ands w8, w8, #0x1 csel w6, w3, w1, ne sub x0, x29, #24 bl _getnameinfo str w0, [sp, #44] ; 4-byte Folded Spill subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB0_16 b LBB0_12 LBB0_12: ldr w8, [sp, #44] ; 4-byte Folded Reload subs w8, w8, #6 cset w8, eq tbnz w8, #0, LBB0_14 b LBB0_13 LBB0_13: ldr w8, [sp, #44] ; 4-byte Folded Reload subs w8, w8, #11 cset w8, ne tbnz w8, #0, LBB0_15 b LBB0_14 LBB0_14: mov w8, #12 stur w8, [x29, #-28] b LBB0_22 LBB0_15: mov w8, #2 stur w8, [x29, #-28] b LBB0_22 LBB0_16: b LBB0_17 LBB0_17: ldur x0, [x29, #-56] mov x1, #0 mov w2, #10 bl _strtol str x0, [sp, #16] ; 8-byte Folded Spill b LBB0_18 LBB0_18: ldur w8, [x29, #-32] and w0, w8, #0xffff bl __OSSwapInt16 str w0, [sp, #12] ; 4-byte Folded Spill b LBB0_19 LBB0_19: ldr x8, [sp, #16] ; 8-byte Folded Reload ldr w10, [sp, #12] ; 4-byte Folded Reload ; implicit-def: $x9 mov x9, x10 and x9, x9, #0xffff ; kill: def $w9 killed $w9 killed $x9 subs x8, x8, w9, uxth cset w8, ne tbnz w8, #0, LBB0_21 b LBB0_20 LBB0_20: mov w8, #2 stur w8, [x29, #-28] b LBB0_22 LBB0_21: ldur x8, [x29, #-48] ldr x9, [sp, #56] str x8, [x9] stur wzr, [x29, #-28] b LBB0_22 LBB0_22: ldur w8, [x29, #-28] 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_24 b LBB0_23 LBB0_23: bl ___stack_chk_fail LBB0_24: 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 .p2align 2 ; -- Begin function _OSSwapInt16 __OSSwapInt16: ; @_OSSwapInt16 .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 strh w0, [sp, #14] ldrh w9, [sp, #14] ldrh w8, [sp, #14] asr w8, w8, #8 orr w8, w8, w9, lsl #8 and w0, w8, #0xffff add sp, sp, #16 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "tcp" l_.str.1: ; @.str.1 .asciz "udp" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _getservbyport_r ## -- Begin function getservbyport_r .p2align 4, 0x90 _getservbyport_r: ## @getservbyport_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 $128, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl %edi, -32(%rbp) movq %rsi, -40(%rbp) movq %rdx, -48(%rbp) movq %rcx, -56(%rbp) movq %r8, -64(%rbp) movq %r9, -72(%rbp) movb $0, -24(%rbp) movb $2, -23(%rbp) movl -32(%rbp), %eax ## kill: def $ax killed $ax killed $eax movw %ax, -22(%rbp) leaq -24(%rbp), %rdi addq $4, %rdi xorl %esi, %esi movl $4, %edx callq _memset leaq -24(%rbp), %rdi addq $8, %rdi xorl %esi, %esi movl $8, %edx callq _memset cmpq $0, -40(%rbp) jne LBB0_4 ## %bb.1: movl -32(%rbp), %edi movq -48(%rbp), %rdx movq -56(%rbp), %rcx movq -64(%rbp), %r8 movq -72(%rbp), %r9 leaq L_.str(%rip), %rsi callq _getservbyport_r movl %eax, -80(%rbp) cmpl $0, -80(%rbp) je LBB0_3 ## %bb.2: movl -32(%rbp), %edi movq -48(%rbp), %rdx movq -56(%rbp), %rcx movq -64(%rbp), %r8 movq -72(%rbp), %r9 leaq L_.str.1(%rip), %rsi callq _getservbyport_r movl %eax, -80(%rbp) LBB0_3: movl -80(%rbp), %eax movl %eax, -28(%rbp) jmp LBB0_20 LBB0_4: movq -72(%rbp), %rax movq $0, (%rax) movq -56(%rbp), %rax andq $7, %rax ## kill: def $eax killed $eax killed $rax movl %eax, -76(%rbp) cmpl $0, -76(%rbp) jne LBB0_6 ## %bb.5: movl $8, -76(%rbp) LBB0_6: movq -64(%rbp), %rax movslq -76(%rbp), %rdx movl $24, %ecx subq %rdx, %rcx cmpq %rcx, %rax jae LBB0_8 ## %bb.7: movl $34, -28(%rbp) jmp LBB0_20 LBB0_8: movslq -76(%rbp), %rcx movl $8, %eax subq %rcx, %rax addq -56(%rbp), %rax movq %rax, -56(%rbp) movslq -76(%rbp), %rax movl $8, %ecx subq %rax, %rcx movq -64(%rbp), %rax subq %rcx, %rax movq %rax, -64(%rbp) movq -40(%rbp), %rdi leaq L_.str(%rip), %rsi callq _strcmp cmpl $0, %eax je LBB0_11 ## %bb.9: movq -40(%rbp), %rdi leaq L_.str.1(%rip), %rsi callq _strcmp cmpl $0, %eax je LBB0_11 ## %bb.10: movl $22, -28(%rbp) jmp LBB0_20 LBB0_11: movl -32(%rbp), %ecx movq -48(%rbp), %rax movl %ecx, 16(%rax) movq -40(%rbp), %rcx movq -48(%rbp), %rax movq %rcx, 24(%rax) movq -56(%rbp), %rcx movq -48(%rbp), %rax movq %rcx, 8(%rax) movq -56(%rbp), %rax addq $16, %rax movq %rax, -56(%rbp) movq -64(%rbp), %rax addq $-16, %rax movq %rax, -64(%rbp) movq -48(%rbp), %rax movq 8(%rax), %rax movq $0, 8(%rax) movq -56(%rbp), %rcx movq -48(%rbp), %rax movq %rcx, (%rax) movq -48(%rbp), %rax movq 8(%rax), %rax movq %rcx, (%rax) movq -56(%rbp), %rax movq %rax, -96(%rbp) ## 8-byte Spill movl -64(%rbp), %eax movl %eax, -88(%rbp) ## 4-byte Spill movq -40(%rbp), %rdi leaq L_.str.1(%rip), %rsi callq _strcmp movq -96(%rbp), %r8 ## 8-byte Reload movl -88(%rbp), %r9d ## 4-byte Reload testl %eax, %eax sete %al movzbl %al, %ecx shll $4, %ecx movq %rsp, %rax movl %ecx, (%rax) xorl %ecx, %ecx movl %ecx, %edx leaq -24(%rbp), %rdi movl $16, %esi callq _getnameinfo movl %eax, %ecx movl %ecx, -84(%rbp) ## 4-byte Spill testl %eax, %eax je LBB0_14 jmp LBB0_23 LBB0_23: movl -84(%rbp), %eax ## 4-byte Reload subl $6, %eax je LBB0_12 jmp LBB0_24 LBB0_24: movl -84(%rbp), %eax ## 4-byte Reload subl $11, %eax jne LBB0_13 jmp LBB0_12 LBB0_12: movl $12, -28(%rbp) jmp LBB0_20 LBB0_13: movl $2, -28(%rbp) jmp LBB0_20 LBB0_14: jmp LBB0_15 LBB0_15: movq -56(%rbp), %rdi xorl %eax, %eax movl %eax, %esi movl $10, %edx callq _strtol movq %rax, -104(%rbp) ## 8-byte Spill ## %bb.16: movl -32(%rbp), %eax ## kill: def $ax killed $ax killed $eax movzwl %ax, %edi callq __OSSwapInt16 movzwl %ax, %eax movl %eax, -108(%rbp) ## 4-byte Spill ## %bb.17: movq -104(%rbp), %rax ## 8-byte Reload movl -108(%rbp), %ecx ## 4-byte Reload movzwl %cx, %ecx ## kill: def $rcx killed $ecx cmpq %rcx, %rax jne LBB0_19 ## %bb.18: movl $2, -28(%rbp) jmp LBB0_20 LBB0_19: movq -48(%rbp), %rcx movq -72(%rbp), %rax movq %rcx, (%rax) movl $0, -28(%rbp) LBB0_20: movl -28(%rbp), %eax movl %eax, -112(%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 -112(%rbp), %eax ## 4-byte Reload addq $128, %rsp popq %rbp retq LBB0_22: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function _OSSwapInt16 __OSSwapInt16: ## @_OSSwapInt16 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movw %di, %ax movw %ax, -2(%rbp) movzwl -2(%rbp), %eax shll $8, %eax movzwl -2(%rbp), %ecx sarl $8, %ecx orl %ecx, %eax ## kill: def $ax killed $ax killed $eax movzwl %ax, %eax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "tcp" L_.str.1: ## @.str.1 .asciz "udp" .subsections_via_symbols
the_stack_data/177593.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _DualPipe_Destructor ; -- Begin function DualPipe_Destructor .p2align 2 _DualPipe_Destructor: ; @DualPipe_Destructor .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] ldrb w8, [x8, #24] lsl w8, w8, #6 sxtb w8, w8 asr w8, w8, #7 sxtb w8, w8 subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: add x1, sp, #4 str wzr, [sp, #4] ldr x8, [sp, #8] ldr w0, [x8, #20] mov w2, #1 bl _waitpid b LBB0_2 LBB0_2: ldr x0, [sp, #8] bl _free ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _DualPipe_CloseInput ; -- Begin function DualPipe_CloseInput .p2align 2 _DualPipe_CloseInput: ; @DualPipe_CloseInput .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 _DualPipe_CloseOutput ; -- Begin function DualPipe_CloseOutput .p2align 2 _DualPipe_CloseOutput: ; @DualPipe_CloseOutput .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 _DualPipe_Read ; -- Begin function DualPipe_Read .p2align 2 _DualPipe_Read: ; @DualPipe_Read .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] str x1, [sp, #16] str w2, [sp, #12] str w3, [sp, #8] ldur x8, [x29, #-8] ldr x0, [x8] bl _fileno ldr x1, [sp, #16] ldr w8, [sp, #12] ldr w9, [sp, #8] mul w8, w8, w9 mov x2, x8 bl _read mov x8, x0 str w8, [sp, #4] ldr w8, [sp, #4] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB3_3 b LBB3_1 LBB3_1: ldr w8, [sp, #4] subs w8, w8, #0 cset w8, ge tbnz w8, #0, LBB3_4 b LBB3_2 LBB3_2: bl ___error ldr w8, [x0] subs w8, w8, #35 cset w8, eq tbnz w8, #0, LBB3_4 b LBB3_3 LBB3_3: ldur x9, [x29, #-8] ldrb w8, [x9, #24] and w8, w8, #0xfffffffe orr w8, w8, #0x1 strb w8, [x9, #24] b LBB3_4 LBB3_4: ldr w8, [sp, #4] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB3_6 b LBB3_5 LBB3_5: ldr w8, [sp, #4] ldr w9, [sp, #12] udiv w8, w8, w9 str w8, [sp] ; 4-byte Folded Spill b LBB3_7 LBB3_6: mov w8, #0 str w8, [sp] ; 4-byte Folded Spill b LBB3_7 LBB3_7: ldr w0, [sp] ; 4-byte Folded Reload ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _DualPipe_Write ; -- Begin function DualPipe_Write .p2align 2 _DualPipe_Write: ; @DualPipe_Write .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, #24] str x1, [sp, #16] str w2, [sp, #12] str w3, [sp, #8] mov w0, #0 add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _DualPipe_Getc ; -- Begin function DualPipe_Getc .p2align 2 _DualPipe_Getc: ; @DualPipe_Getc .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] str x1, [sp] mov w0, #0 add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _DualPipe_Putc ; -- Begin function DualPipe_Putc .p2align 2 _DualPipe_Putc: ; @DualPipe_Putc .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] strb w1, [sp, #7] mov w0, #0 add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _DualPipe_Puts ; -- Begin function DualPipe_Puts .p2align 2 _DualPipe_Puts: ; @DualPipe_Puts .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] str x1, [sp] mov w0, #0 add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _DualPipe_Seek ; -- Begin function DualPipe_Seek .p2align 2 _DualPipe_Seek: ; @DualPipe_Seek .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] str w1, [sp, #4] str w2, [sp] mov w0, #0 add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _DualPipe_Tell ; -- Begin function DualPipe_Tell .p2align 2 _DualPipe_Tell: ; @DualPipe_Tell .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] mov w0, #0 add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _DualPipe_Eof ; -- Begin function DualPipe_Eof .p2align 2 _DualPipe_Eof: ; @DualPipe_Eof .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #8] ldr x8, [sp, #8] ldr x8, [x8] subs x8, x8, #0 cset w8, eq mov w9, #1 str w9, [sp, #4] ; 4-byte Folded Spill tbnz w8, #0, LBB10_3 b LBB10_1 LBB10_1: ldr x8, [sp, #8] ldrb w8, [x8, #24] lsl w8, w8, #7 sxtb w8, w8 asr w8, w8, #7 sxtb w8, w8 subs w8, w8, #0 cset w8, ne mov w9, #1 str w9, [sp, #4] ; 4-byte Folded Spill tbnz w8, #0, LBB10_3 b LBB10_2 LBB10_2: ldr x8, [sp, #8] ldr x0, [x8] bl _feof subs w8, w0, #0 cset w8, ne str w8, [sp, #4] ; 4-byte Folded Spill b LBB10_3 LBB10_3: ldr w8, [sp, #4] ; 4-byte Folded Reload and w0, w8, #0x1 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _DualPipe_GetSize ; -- Begin function DualPipe_GetSize .p2align 2 _DualPipe_GetSize: ; @DualPipe_GetSize .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] mov w0, #0 add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _DualPipe_Peek ; -- Begin function DualPipe_Peek .p2align 2 _DualPipe_Peek: ; @DualPipe_Peek .cfi_startproc ; %bb.0: sub sp, sp, #240 .cfi_def_cfa_offset 240 stp x29, x30, [sp, #224] ; 16-byte Folded Spill add x29, sp, #224 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 sub x8, x29, #48 str x8, [sp, #8] ; 8-byte Folded Spill adrp x9, ___darwin_check_fd_set_overflow@GOTPAGE ldr x9, [x9, ___darwin_check_fd_set_overflow@GOTPAGEOFF] subs x9, x9, #0 cset w9, eq str w9, [sp, #16] ; 4-byte Folded Spill str x0, [x8] stur wzr, [x29, #-52] ldr x0, [x8] bl _DualPipe_Eof subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB12_7 b LBB12_1 LBB12_1: ldr x8, [sp, #8] ; 8-byte Folded Reload ldr x8, [x8] ldr x0, [x8] bl _fileno str w0, [sp, #20] add x0, sp, #44 str x0, [sp] ; 8-byte Folded Spill mov w1, #0 mov x2, #128 bl _memset ldr x9, [sp] ; 8-byte Folded Reload ldr x10, [sp, #8] ; 8-byte Folded Reload ldr w8, [sp, #16] ; 4-byte Folded Reload ldr w11, [sp, #20] stur w11, [x29, #-20] str x9, [x10, #16] ldur w11, [x29, #-20] ldr x9, [x10, #16] stur w11, [x29, #-8] str x9, [x10, #32] tbnz w8, #0, LBB12_3 b LBB12_2 LBB12_2: ldr x8, [sp, #8] ; 8-byte Folded Reload ldur w0, [x29, #-8] ldr x1, [x8, #32] mov w2, #0 bl ___darwin_check_fd_set_overflow stur w0, [x29, #-4] b LBB12_4 LBB12_3: mov w8, #1 stur w8, [x29, #-4] b LBB12_4 LBB12_4: ldur w8, [x29, #-4] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB12_6 b LBB12_5 LBB12_5: ldr x8, [sp, #8] ; 8-byte Folded Reload ldursw x9, [x29, #-20] mov x11, #32 udiv x10, x9, x11 mul x10, x10, x11 subs x10, x9, x10 mov x9, #1 lsl x9, x9, x10 mov x10, x9 ldr x8, [x8, #16] ldursw x9, [x29, #-20] udiv x9, x9, x11 add x9, x8, x9, lsl #2 ldr w8, [x9] orr w8, w8, w10 str w8, [x9] b LBB12_6 LBB12_6: add x4, sp, #24 str xzr, [sp, #24] str wzr, [sp, #32] ldr w8, [sp, #20] add w0, w8, #1 add x1, sp, #44 mov x3, #0 mov x2, x3 bl _select subs w8, w0, #0 cset w8, gt and w8, w8, #0x1 stur w8, [x29, #-36] b LBB12_8 LBB12_7: ldur w8, [x29, #-52] stur w8, [x29, #-36] b LBB12_8 LBB12_8: ldur w0, [x29, #-36] ldp x29, x30, [sp, #224] ; 16-byte Folded Reload add sp, sp, #240 ret .cfi_endproc ; -- End function .globl _DualPipe_Terminate ; -- Begin function DualPipe_Terminate .p2align 2 _DualPipe_Terminate: ; @DualPipe_Terminate .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, #20] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB13_2 b LBB13_1 LBB13_1: ldr x8, [sp, #8] ldr w0, [x8, #20] mov w1, #15 bl _kill b LBB13_2 LBB13_2: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _DualPipe_GetExitCode ; -- Begin function DualPipe_GetExitCode .p2align 2 _DualPipe_GetExitCode: ; @DualPipe_GetExitCode .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] ldrb w8, [x8, #24] lsl w8, w8, #6 sxtb w8, w8 asr w8, w8, #7 sxtb w8, w8 subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB14_2 b LBB14_1 LBB14_1: add x1, sp, #4 mov w2, #0 str wzr, [sp, #4] ldr x8, [sp, #8] ldr w0, [x8, #20] bl _waitpid ldr w8, [sp, #4] asr w8, w8, #8 and w8, w8, #0xff ldr x9, [sp, #8] str w8, [x9, #16] ldr x9, [sp, #8] ldrb w8, [x9, #24] and w8, w8, #0xfffffffd orr w8, w8, #0x2 strb w8, [x9, #24] b LBB14_2 LBB14_2: ldr x8, [sp, #8] ldr w0, [x8, #16] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _DualPipe_GetProcessID ; -- Begin function DualPipe_GetProcessID .p2align 2 _DualPipe_GetProcessID: ; @DualPipe_GetProcessID .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] ldr x8, [sp, #8] ldr w0, [x8, #20] add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _DualPipe_Wait ; -- Begin function DualPipe_Wait .p2align 2 _DualPipe_Wait: ; @DualPipe_Wait .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #8] ldr x8, [sp, #8] ldr w8, [x8, #20] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB16_2 b LBB16_1 LBB16_1: add x1, sp, #4 mov w2, #0 str wzr, [sp, #4] ldr x8, [sp, #8] ldr w0, [x8, #20] bl _waitpid ldr w8, [sp, #4] asr w8, w8, #8 and w8, w8, #0xff ldr x9, [sp, #8] str w8, [x9, #16] ldr x9, [sp, #8] ldrb w8, [x9, #24] and w8, w8, #0xfffffffd orr w8, w8, #0x2 strb w8, [x9, #24] b LBB16_2 LBB16_2: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl __DualPipeOpen ; -- Begin function _DualPipeOpen .p2align 2 __DualPipeOpen: ; @_DualPipeOpen .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, #2224 add x8, sp, #1168 str x8, [sp, #24] ; 8-byte Folded Spill adrp x9, ___stack_chk_guard@GOTPAGE ldr x9, [x9, ___stack_chk_guard@GOTPAGEOFF] ldr x9, [x9] stur x9, [x29, #-24] str w0, [sp, #132] str x1, [sp, #120] str x2, [sp, #112] str x3, [sp, #104] str x4, [sp, #96] ; kill: def $x9 killed $xzr str xzr, [sp, #88] str xzr, [sp, #80] str xzr, [sp, #72] str xzr, [x8, #1040] str xzr, [x8, #1032] mov w8, #1 str w8, [sp, #64] ldr w8, [sp, #132] ands w8, w8, #0x2 cset w8, ne tbnz w8, #0, LBB17_2 b LBB17_1 LBB17_1: ldr w8, [sp, #132] ands w8, w8, #0x1 cset w8, eq tbnz w8, #0, LBB17_5 b LBB17_2 LBB17_2: sub x0, x29, #40 bl _pipe subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB17_4 b LBB17_3 LBB17_3: str wzr, [sp, #64] b LBB17_4 LBB17_4: b LBB17_5 LBB17_5: ldr w8, [sp, #132] ands w8, w8, #0x4 cset w8, eq tbnz w8, #0, LBB17_9 b LBB17_6 LBB17_6: sub x0, x29, #32 bl _pipe subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB17_8 b LBB17_7 LBB17_7: str wzr, [sp, #64] b LBB17_8 LBB17_8: b LBB17_9 LBB17_9: ldr w8, [sp, #64] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB17_45 b LBB17_10 LBB17_10: bl _fork str w0, [sp, #68] ldr w8, [sp, #68] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB17_16 b LBB17_11 LBB17_11: ldur w8, [x29, #-32] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB17_13 b LBB17_12 LBB17_12: ldur w0, [x29, #-32] bl _close ldur w0, [x29, #-28] adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF bl _fdopen str x0, [sp, #72] b LBB17_13 LBB17_13: ldur w8, [x29, #-36] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB17_15 b LBB17_14 LBB17_14: ldur w0, [x29, #-36] bl _close ldur w0, [x29, #-40] adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF bl _fdopen str x0, [sp, #80] b LBB17_15 LBB17_15: b LBB17_41 LBB17_16: ldr w8, [sp, #68] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB17_40 b LBB17_17 LBB17_17: ldr x0, [sp, #120] bl ___ecereNameSpace__ecere__sys__CopyString str x0, [sp, #48] ldur w8, [x29, #-28] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB17_19 b LBB17_18 LBB17_18: ldur w0, [x29, #-28] bl _close b LBB17_19 LBB17_19: ldur w8, [x29, #-40] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB17_21 b LBB17_20 LBB17_20: ldur w0, [x29, #-40] bl _close b LBB17_21 LBB17_21: ldr w8, [sp, #132] ands w8, w8, #0x2 cset w8, eq tbnz w8, #0, LBB17_24 b LBB17_22 LBB17_22: ldur w8, [x29, #-36] subs w8, w8, #2 cset w8, eq tbnz w8, #0, LBB17_24 b LBB17_23 LBB17_23: ldur w0, [x29, #-36] mov w1, #2 bl _dup2 b LBB17_24 LBB17_24: ldr w8, [sp, #132] ands w8, w8, #0x1 cset w8, eq tbnz w8, #0, LBB17_27 b LBB17_25 LBB17_25: ldur w8, [x29, #-36] subs w8, w8, #1 cset w8, eq tbnz w8, #0, LBB17_27 b LBB17_26 LBB17_26: ldur w0, [x29, #-36] mov w1, #1 bl _dup2 b LBB17_27 LBB17_27: ldur w8, [x29, #-36] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB17_30 b LBB17_28 LBB17_28: ldur w8, [x29, #-36] subs w8, w8, #1 cset w8, eq tbnz w8, #0, LBB17_30 b LBB17_29 LBB17_29: ldur w0, [x29, #-36] bl _close b LBB17_30 LBB17_30: ldr w8, [sp, #132] ands w8, w8, #0x4 cset w8, eq tbnz w8, #0, LBB17_33 b LBB17_31 LBB17_31: ldur w8, [x29, #-32] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB17_33 b LBB17_32 LBB17_32: ldur w0, [x29, #-32] mov w1, #0 bl _dup2 ldur w0, [x29, #-32] bl _close b LBB17_33 LBB17_33: ldr x0, [sp, #48] mov w1, #128 add x2, sp, #1168 str x2, [sp, #16] ; 8-byte Folded Spill mov w3, #2 bl ___ecereNameSpace__ecere__sys__Tokenize ldr x9, [sp, #16] ; 8-byte Folded Reload str w0, [sp, #60] ldrsw x10, [sp, #60] mov x8, #0 str x8, [x9, x10, lsl #3] ldr x8, [sp, #112] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB17_37 b LBB17_34 LBB17_34: ldr x0, [sp, #112] bl ___ecereNameSpace__ecere__sys__CopyString str x0, [sp, #40] ldr x0, [sp, #40] mov w1, #128 add x2, sp, #136 str x2, [sp, #8] ; 8-byte Folded Spill mov w3, #0 bl ___ecereNameSpace__ecere__sys__Tokenize ldr x8, [sp, #24] ; 8-byte Folded Reload ldr x2, [sp, #8] ; 8-byte Folded Reload str w0, [sp, #36] ldrsw x10, [sp, #36] mov x9, #0 str x9, [x2, x10, lsl #3] add x1, sp, #1168 ldr x0, [x8] bl _execve subs w8, w0, #0 cset w8, ge tbnz w8, #0, LBB17_36 b LBB17_35 LBB17_35: ldr x0, [sp, #48] bl ___ecereNameSpace__ecere__com__eSystem_Delete ldr x0, [sp, #40] bl ___ecereNameSpace__ecere__com__eSystem_Delete mov w0, #1 bl _exit LBB17_36: ldr x0, [sp, #48] bl ___ecereNameSpace__ecere__com__eSystem_Delete ldr x0, [sp, #40] bl ___ecereNameSpace__ecere__com__eSystem_Delete mov w0, #0 bl _exit LBB17_37: ldr x8, [sp, #24] ; 8-byte Folded Reload add x1, sp, #1168 ldr x0, [x8] bl _execvp subs w8, w0, #0 cset w8, ge tbnz w8, #0, LBB17_39 b LBB17_38 LBB17_38: ldr x0, [sp, #48] bl ___ecereNameSpace__ecere__com__eSystem_Delete mov w0, #1 bl _exit LBB17_39: ldr x0, [sp, #48] bl ___ecereNameSpace__ecere__com__eSystem_Delete mov w0, #0 bl _exit LBB17_40: b LBB17_41 LBB17_41: ldr x8, [sp, #80] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB17_43 b LBB17_42 LBB17_42: ldr x8, [sp, #72] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB17_44 b LBB17_43 LBB17_43: mov x0, #1 mov x1, #32 bl _calloc str x0, [sp, #88] ldr x8, [sp, #80] ldr x9, [sp, #88] str x8, [x9] ldr x9, [sp, #104] str x8, [x9] ldr x8, [sp, #72] ldr x9, [sp, #88] str x8, [x9, #8] ldr x9, [sp, #96] str x8, [x9] ldr w8, [sp, #68] ldr x9, [sp, #88] str w8, [x9, #20] b LBB17_44 LBB17_44: b LBB17_54 LBB17_45: ldur w8, [x29, #-32] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB17_47 b LBB17_46 LBB17_46: ldur w0, [x29, #-32] bl _close b LBB17_47 LBB17_47: ldur w8, [x29, #-28] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB17_49 b LBB17_48 LBB17_48: ldur w0, [x29, #-28] bl _close b LBB17_49 LBB17_49: ldur w8, [x29, #-36] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB17_51 b LBB17_50 LBB17_50: ldur w0, [x29, #-36] bl _close b LBB17_51 LBB17_51: ldur w8, [x29, #-40] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB17_53 b LBB17_52 LBB17_52: ldur w0, [x29, #-40] bl _close b LBB17_53 LBB17_53: b LBB17_54 LBB17_54: ldr x8, [sp, #88] str x8, [sp] ; 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, LBB17_56 b LBB17_55 LBB17_55: bl ___stack_chk_fail LBB17_56: ldr x0, [sp] ; 8-byte Folded Reload add sp, sp, #2224 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 "w" l_.str.1: ; @.str.1 .asciz "r" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _DualPipe_Destructor ## -- Begin function DualPipe_Destructor .p2align 4, 0x90 _DualPipe_Destructor: ## @DualPipe_Destructor .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 movb 24(%rax), %al shlb $6, %al sarb $7, %al movsbl %al, %eax cmpl $0, %eax jne LBB0_2 ## %bb.1: movl $0, -12(%rbp) movq -8(%rbp), %rax movl 20(%rax), %edi leaq -12(%rbp), %rsi movl $1, %edx callq _waitpid LBB0_2: movq -8(%rbp), %rdi callq _free addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _DualPipe_CloseInput ## -- Begin function DualPipe_CloseInput .p2align 4, 0x90 _DualPipe_CloseInput: ## @DualPipe_CloseInput .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 _DualPipe_CloseOutput ## -- Begin function DualPipe_CloseOutput .p2align 4, 0x90 _DualPipe_CloseOutput: ## @DualPipe_CloseOutput .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 _DualPipe_Read ## -- Begin function DualPipe_Read .p2align 4, 0x90 _DualPipe_Read: ## @DualPipe_Read .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) movl %edx, -20(%rbp) movl %ecx, -24(%rbp) movq -8(%rbp), %rax movq (%rax), %rdi callq _fileno movl %eax, %edi movq -16(%rbp), %rsi movl -20(%rbp), %eax imull -24(%rbp), %eax movl %eax, %eax movl %eax, %edx callq _read ## kill: def $eax killed $eax killed $rax movl %eax, -28(%rbp) cmpl $0, -28(%rbp) je LBB3_3 ## %bb.1: cmpl $0, -28(%rbp) jge LBB3_4 ## %bb.2: callq ___error cmpl $35, (%rax) je LBB3_4 LBB3_3: movq -8(%rbp), %rax movb 24(%rax), %cl andb $-2, %cl orb $1, %cl movb %cl, 24(%rax) LBB3_4: cmpl $0, -28(%rbp) jle LBB3_6 ## %bb.5: movl -28(%rbp), %eax xorl %edx, %edx divl -20(%rbp) movl %eax, -32(%rbp) ## 4-byte Spill jmp LBB3_7 LBB3_6: xorl %eax, %eax movl %eax, -32(%rbp) ## 4-byte Spill jmp LBB3_7 LBB3_7: movl -32(%rbp), %eax ## 4-byte Reload addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _DualPipe_Write ## -- Begin function DualPipe_Write .p2align 4, 0x90 _DualPipe_Write: ## @DualPipe_Write .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) xorl %eax, %eax popq %rbp retq .cfi_endproc ## -- End function .globl _DualPipe_Getc ## -- Begin function DualPipe_Getc .p2align 4, 0x90 _DualPipe_Getc: ## @DualPipe_Getc .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) xorl %eax, %eax popq %rbp retq .cfi_endproc ## -- End function .globl _DualPipe_Putc ## -- Begin function DualPipe_Putc .p2align 4, 0x90 _DualPipe_Putc: ## @DualPipe_Putc .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movb %sil, %al movq %rdi, -8(%rbp) movb %al, -9(%rbp) xorl %eax, %eax popq %rbp retq .cfi_endproc ## -- End function .globl _DualPipe_Puts ## -- Begin function DualPipe_Puts .p2align 4, 0x90 _DualPipe_Puts: ## @DualPipe_Puts .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) xorl %eax, %eax popq %rbp retq .cfi_endproc ## -- End function .globl _DualPipe_Seek ## -- Begin function DualPipe_Seek .p2align 4, 0x90 _DualPipe_Seek: ## @DualPipe_Seek .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) movl %edx, -16(%rbp) xorl %eax, %eax popq %rbp retq .cfi_endproc ## -- End function .globl _DualPipe_Tell ## -- Begin function DualPipe_Tell .p2align 4, 0x90 _DualPipe_Tell: ## @DualPipe_Tell .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) xorl %eax, %eax popq %rbp retq .cfi_endproc ## -- End function .globl _DualPipe_Eof ## -- Begin function DualPipe_Eof .p2align 4, 0x90 _DualPipe_Eof: ## @DualPipe_Eof .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), %rcx movb $1, %al cmpq $0, (%rcx) movb %al, -9(%rbp) ## 1-byte Spill je LBB10_3 ## %bb.1: movq -8(%rbp), %rax movb 24(%rax), %al shlb $7, %al sarb $7, %al movsbl %al, %ecx movb $1, %al cmpl $0, %ecx movb %al, -9(%rbp) ## 1-byte Spill jne LBB10_3 ## %bb.2: movq -8(%rbp), %rax movq (%rax), %rdi callq _feof cmpl $0, %eax setne %al movb %al, -9(%rbp) ## 1-byte Spill LBB10_3: movb -9(%rbp), %al ## 1-byte Reload andb $1, %al movzbl %al, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _DualPipe_GetSize ## -- Begin function DualPipe_GetSize .p2align 4, 0x90 _DualPipe_GetSize: ## @DualPipe_GetSize .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) xorl %eax, %eax popq %rbp retq .cfi_endproc ## -- End function .globl _DualPipe_Peek ## -- Begin function DualPipe_Peek .p2align 4, 0x90 _DualPipe_Peek: ## @DualPipe_Peek .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $240, %rsp movq %rdi, -48(%rbp) movl $0, -52(%rbp) movq -48(%rbp), %rdi callq _DualPipe_Eof cmpl $0, %eax jne LBB12_7 ## %bb.1: movq -48(%rbp), %rax movq (%rax), %rdi callq _fileno movl %eax, -212(%rbp) xorps %xmm0, %xmm0 movaps %xmm0, -240(%rbp) ## 16-byte Spill movaps %xmm0, -80(%rbp) movaps %xmm0, -96(%rbp) movaps %xmm0, -112(%rbp) movaps %xmm0, -128(%rbp) movaps %xmm0, -144(%rbp) movaps %xmm0, -160(%rbp) movaps %xmm0, -176(%rbp) movaps %xmm0, -192(%rbp) movl -212(%rbp), %eax movl %eax, -20(%rbp) leaq -192(%rbp), %rax movq %rax, -32(%rbp) movl -20(%rbp), %ecx movq -32(%rbp), %rax movl %ecx, -8(%rbp) movq %rax, -16(%rbp) movq ___darwin_check_fd_set_overflow@GOTPCREL(%rip), %rax testq %rax, %rax je LBB12_3 jmp LBB12_2 LBB12_2: movl -8(%rbp), %edi movq -16(%rbp), %rsi xorl %edx, %edx callq ___darwin_check_fd_set_overflow movl %eax, -4(%rbp) jmp LBB12_4 LBB12_3: movl $1, -4(%rbp) LBB12_4: cmpl $0, -4(%rbp) je LBB12_6 ## %bb.5: movslq -20(%rbp), %rcx andq $31, %rcx movl $1, %eax ## kill: def $cl killed $rcx shlq %cl, %rax movl %eax, %edx movq -32(%rbp), %rax movslq -20(%rbp), %rcx shrq $5, %rcx orl (%rax,%rcx,4), %edx movl %edx, (%rax,%rcx,4) LBB12_6: movq $0, -208(%rbp) movl $0, -200(%rbp) movl -212(%rbp), %edi addl $1, %edi leaq -192(%rbp), %rsi xorl %eax, %eax movl %eax, %ecx leaq -208(%rbp), %r8 movq %rcx, %rdx callq _select$1050 cmpl $0, %eax setg %al andb $1, %al movzbl %al, %eax movl %eax, -36(%rbp) jmp LBB12_8 LBB12_7: movl -52(%rbp), %eax movl %eax, -36(%rbp) LBB12_8: movl -36(%rbp), %eax addq $240, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _DualPipe_Terminate ## -- Begin function DualPipe_Terminate .p2align 4, 0x90 _DualPipe_Terminate: ## @DualPipe_Terminate .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 cmpl $0, 20(%rax) je LBB13_2 ## %bb.1: movq -8(%rbp), %rax movl 20(%rax), %edi movl $15, %esi callq _kill LBB13_2: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _DualPipe_GetExitCode ## -- Begin function DualPipe_GetExitCode .p2align 4, 0x90 _DualPipe_GetExitCode: ## @DualPipe_GetExitCode .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 movb 24(%rax), %al shlb $6, %al sarb $7, %al movsbl %al, %eax cmpl $0, %eax jne LBB14_2 ## %bb.1: movl $0, -12(%rbp) movq -8(%rbp), %rax movl 20(%rax), %edi leaq -12(%rbp), %rsi xorl %edx, %edx callq _waitpid movl -12(%rbp), %ecx sarl $8, %ecx andl $255, %ecx movq -8(%rbp), %rax movl %ecx, 16(%rax) movq -8(%rbp), %rax movb 24(%rax), %cl andb $-3, %cl orb $2, %cl movb %cl, 24(%rax) LBB14_2: movq -8(%rbp), %rax movl 16(%rax), %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _DualPipe_GetProcessID ## -- Begin function DualPipe_GetProcessID .p2align 4, 0x90 _DualPipe_GetProcessID: ## @DualPipe_GetProcessID .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 20(%rax), %eax popq %rbp retq .cfi_endproc ## -- End function .globl _DualPipe_Wait ## -- Begin function DualPipe_Wait .p2align 4, 0x90 _DualPipe_Wait: ## @DualPipe_Wait .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) movq -8(%rbp), %rax cmpl $0, 20(%rax) je LBB16_2 ## %bb.1: movl $0, -12(%rbp) movq -8(%rbp), %rax movl 20(%rax), %edi leaq -12(%rbp), %rsi xorl %edx, %edx callq _waitpid movl -12(%rbp), %ecx sarl $8, %ecx andl $255, %ecx movq -8(%rbp), %rax movl %ecx, 16(%rax) movq -8(%rbp), %rax movb 24(%rax), %cl andb $-3, %cl orb $2, %cl movb %cl, 24(%rax) LBB16_2: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl __DualPipeOpen ## -- Begin function _DualPipeOpen .p2align 4, 0x90 __DualPipeOpen: ## @_DualPipeOpen .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $2208, %rsp ## imm = 0x8A0 movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl %edi, -2100(%rbp) movq %rsi, -2112(%rbp) movq %rdx, -2120(%rbp) movq %rcx, -2128(%rbp) movq %r8, -2136(%rbp) movq $0, -2144(%rbp) movq $0, -2152(%rbp) movq $0, -2160(%rbp) leaq -16(%rbp), %rdi xorl %esi, %esi movl $8, %edx callq _memset leaq -24(%rbp), %rdi xorl %esi, %esi movl $8, %edx callq _memset movl $1, -2168(%rbp) movl -2100(%rbp), %eax andl $2, %eax cmpl $0, %eax jne LBB17_2 ## %bb.1: movl -2100(%rbp), %eax andl $1, %eax cmpl $0, %eax je LBB17_5 LBB17_2: leaq -24(%rbp), %rdi callq _pipe cmpl $0, %eax je LBB17_4 ## %bb.3: movl $0, -2168(%rbp) LBB17_4: jmp LBB17_5 LBB17_5: movl -2100(%rbp), %eax andl $4, %eax cmpl $0, %eax je LBB17_9 ## %bb.6: leaq -16(%rbp), %rdi callq _pipe cmpl $0, %eax je LBB17_8 ## %bb.7: movl $0, -2168(%rbp) LBB17_8: jmp LBB17_9 LBB17_9: cmpl $0, -2168(%rbp) je LBB17_45 ## %bb.10: callq _fork movl %eax, -2164(%rbp) cmpl $0, -2164(%rbp) jle LBB17_16 ## %bb.11: cmpl $0, -16(%rbp) je LBB17_13 ## %bb.12: movl -16(%rbp), %edi callq _close movl -12(%rbp), %edi leaq L_.str(%rip), %rsi callq _fdopen movq %rax, -2160(%rbp) LBB17_13: cmpl $0, -20(%rbp) je LBB17_15 ## %bb.14: movl -20(%rbp), %edi callq _close movl -24(%rbp), %edi leaq L_.str.1(%rip), %rsi callq _fdopen movq %rax, -2152(%rbp) LBB17_15: jmp LBB17_41 LBB17_16: cmpl $0, -2164(%rbp) jne LBB17_40 ## %bb.17: movq -2112(%rbp), %rdi callq ___ecereNameSpace__ecere__sys__CopyString movq %rax, -2184(%rbp) cmpl $0, -12(%rbp) je LBB17_19 ## %bb.18: movl -12(%rbp), %edi callq _close LBB17_19: cmpl $0, -24(%rbp) je LBB17_21 ## %bb.20: movl -24(%rbp), %edi callq _close LBB17_21: movl -2100(%rbp), %eax andl $2, %eax cmpl $0, %eax je LBB17_24 ## %bb.22: cmpl $2, -20(%rbp) je LBB17_24 ## %bb.23: movl -20(%rbp), %edi movl $2, %esi callq _dup2 LBB17_24: movl -2100(%rbp), %eax andl $1, %eax cmpl $0, %eax je LBB17_27 ## %bb.25: cmpl $1, -20(%rbp) je LBB17_27 ## %bb.26: movl -20(%rbp), %edi movl $1, %esi callq _dup2 LBB17_27: cmpl $0, -20(%rbp) je LBB17_30 ## %bb.28: cmpl $1, -20(%rbp) je LBB17_30 ## %bb.29: movl -20(%rbp), %edi callq _close LBB17_30: movl -2100(%rbp), %eax andl $4, %eax cmpl $0, %eax je LBB17_33 ## %bb.31: cmpl $0, -16(%rbp) je LBB17_33 ## %bb.32: movl -16(%rbp), %edi xorl %esi, %esi callq _dup2 movl -16(%rbp), %edi callq _close LBB17_33: movq -2184(%rbp), %rdi leaq -1056(%rbp), %rdx movl $128, %esi movl $2, %ecx callq ___ecereNameSpace__ecere__sys__Tokenize movl %eax, -2172(%rbp) movslq -2172(%rbp), %rax movq $0, -1056(%rbp,%rax,8) cmpq $0, -2120(%rbp) je LBB17_37 ## %bb.34: movq -2120(%rbp), %rdi callq ___ecereNameSpace__ecere__sys__CopyString movq %rax, -2192(%rbp) movq -2192(%rbp), %rdi leaq -2096(%rbp), %rdx movl $128, %esi xorl %ecx, %ecx callq ___ecereNameSpace__ecere__sys__Tokenize movl %eax, -2196(%rbp) movslq -2196(%rbp), %rax movq $0, -2096(%rbp,%rax,8) movq -1056(%rbp), %rdi leaq -1056(%rbp), %rsi leaq -2096(%rbp), %rdx callq _execve cmpl $0, %eax jge LBB17_36 ## %bb.35: movq -2184(%rbp), %rdi callq ___ecereNameSpace__ecere__com__eSystem_Delete movq -2192(%rbp), %rdi callq ___ecereNameSpace__ecere__com__eSystem_Delete movl $1, %edi callq _exit LBB17_36: movq -2184(%rbp), %rdi callq ___ecereNameSpace__ecere__com__eSystem_Delete movq -2192(%rbp), %rdi callq ___ecereNameSpace__ecere__com__eSystem_Delete xorl %edi, %edi callq _exit LBB17_37: movq -1056(%rbp), %rdi leaq -1056(%rbp), %rsi callq _execvp cmpl $0, %eax jge LBB17_39 ## %bb.38: movq -2184(%rbp), %rdi callq ___ecereNameSpace__ecere__com__eSystem_Delete movl $1, %edi callq _exit LBB17_39: movq -2184(%rbp), %rdi callq ___ecereNameSpace__ecere__com__eSystem_Delete xorl %edi, %edi callq _exit LBB17_40: jmp LBB17_41 LBB17_41: cmpq $0, -2152(%rbp) jne LBB17_43 ## %bb.42: cmpq $0, -2160(%rbp) je LBB17_44 LBB17_43: movl $1, %edi movl $32, %esi callq _calloc movq %rax, -2144(%rbp) movq -2152(%rbp), %rcx movq -2144(%rbp), %rax movq %rcx, (%rax) movq -2128(%rbp), %rax movq %rcx, (%rax) movq -2160(%rbp), %rcx movq -2144(%rbp), %rax movq %rcx, 8(%rax) movq -2136(%rbp), %rax movq %rcx, (%rax) movl -2164(%rbp), %ecx movq -2144(%rbp), %rax movl %ecx, 20(%rax) LBB17_44: jmp LBB17_54 LBB17_45: cmpl $0, -16(%rbp) je LBB17_47 ## %bb.46: movl -16(%rbp), %edi callq _close LBB17_47: cmpl $0, -12(%rbp) je LBB17_49 ## %bb.48: movl -12(%rbp), %edi callq _close LBB17_49: cmpl $0, -20(%rbp) je LBB17_51 ## %bb.50: movl -20(%rbp), %edi callq _close LBB17_51: cmpl $0, -24(%rbp) je LBB17_53 ## %bb.52: movl -24(%rbp), %edi callq _close LBB17_53: jmp LBB17_54 LBB17_54: movq -2144(%rbp), %rax movq %rax, -2208(%rbp) ## 8-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB17_56 ## %bb.55: movq -2208(%rbp), %rax ## 8-byte Reload addq $2208, %rsp ## imm = 0x8A0 popq %rbp retq LBB17_56: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "w" L_.str.1: ## @.str.1 .asciz "r" .subsections_via_symbols
the_stack_data/120820.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str wzr, [sp, #12] mov w8, #255 strb w8, [sp, #11] ldrsb w0, [sp, #11] add sp, sp, #16 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl $0, -4(%rbp) movb $-1, -5(%rbp) movsbl -5(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/6743.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _thread_n ; -- Begin function thread_n .p2align 2 _thread_n: ; @thread_n .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] ldur x8, [x29, #-8] str x8, [sp, #16] adrp x8, _mutex@GOTPAGE ldr x8, [x8, _mutex@GOTPAGEOFF] ldr x0, [x8] bl _mutex_lock ldr x9, [sp, #16] adrp x8, _shared@GOTPAGE ldr x8, [x8, _shared@GOTPAGEOFF] ; kill: def $w9 killed $w9 killed $x9 str w9, [x8] ldr w8, [x8] str w8, [sp, #12] ldrsw x8, [sp, #12] ldr x9, [sp, #16] subs x8, x8, x9 cset w9, ne ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: adrp x0, l___func__.thread_n@PAGE add x0, x0, l___func__.thread_n@PAGEOFF adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF mov w2, #104 adrp x3, l_.str.1@PAGE add x3, x3, l_.str.1@PAGEOFF bl ___assert_rtn LBB0_2: b LBB0_3 LBB0_3: adrp x8, _mutex@GOTPAGE ldr x8, [x8, _mutex@GOTPAGEOFF] ldr x0, [x8] bl _mutex_unlock mov x0, #0 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function mutex_lock _mutex_lock: ; @mutex_lock .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 x0, [x29, #-8] bl _mutex_lock_fastpath subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: b LBB1_9 LBB1_2: b LBB1_3 LBB1_3: ; =>This Inner Loop Header: Depth=1 ldur x0, [x29, #-8] bl _mutex_lock_slowpath_check subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB1_9 b LBB1_4 LBB1_4: ; in Loop: Header=BB1_3 Depth=1 ldur x8, [x29, #-8] add x10, x8, #4 mov w8, #1 stur w8, [x29, #-12] ldur w9, [x29, #-12] ldadd w9, w9, [x10] stur w9, [x29, #-16] stur w8, [x29, #-20] ldur x11, [x29, #-8] mov w8, #2 str w8, [sp, #24] ldur w9, [x29, #-20] ldr w10, [sp, #24] mov x8, x9 cas w8, w10, [x11] str w8, [sp, #4] ; 4-byte Folded Spill subs w8, w8, w9 cset w8, eq str w8, [sp, #8] ; 4-byte Folded Spill tbnz w8, #0, LBB1_6 b LBB1_5 LBB1_5: ; in Loop: Header=BB1_3 Depth=1 ldr w8, [sp, #4] ; 4-byte Folded Reload stur w8, [x29, #-20] b LBB1_6 LBB1_6: ; in Loop: Header=BB1_3 Depth=1 ldr w8, [sp, #8] ; 4-byte Folded Reload mov w9, #1 and w8, w8, w9 strb w8, [sp, #23] ldrb w8, [sp, #23] tbnz w8, #0, LBB1_8 b LBB1_7 LBB1_7: ; in Loop: Header=BB1_3 Depth=1 b LBB1_8 LBB1_8: ; in Loop: Header=BB1_3 Depth=1 ldur x0, [x29, #-8] mov w1, #2 bl ___futex_wait ldur x8, [x29, #-8] add x9, x8, #4 mov w8, #1 str w8, [sp, #16] ldr w8, [sp, #16] neg w8, w8 ldadd w8, w8, [x9] str w8, [sp, #12] b LBB1_3 LBB1_9: ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function mutex_unlock _mutex_unlock: ; @mutex_unlock .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 x9, [x29, #-8] str wzr, [sp, #16] ldr w8, [sp, #16] swp w8, w8, [x9] str w8, [sp, #12] ldr w8, [sp, #12] stur w8, [x29, #-12] ldur x8, [x29, #-8] ldr w8, [x8, #4] str w8, [sp, #8] ldr w8, [sp, #8] subs w8, w8, #0 cset w8, gt tbnz w8, #0, LBB2_2 b LBB2_1 LBB2_1: ldur w8, [x29, #-12] subs w8, w8, #1 cset w8, eq tbnz w8, #0, LBB2_3 b LBB2_2 LBB2_2: ldur x0, [x29, #-8] mov w1, #1 bl ___futex_wake b LBB2_3 LBB2_3: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #80 .cfi_def_cfa_offset 80 stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp, #64 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #0 str w8, [sp, #20] ; 4-byte Folded Spill stur wzr, [x29, #-4] mov x0, #8 bl _malloc adrp x8, _mutex@GOTPAGE ldr x8, [x8, _mutex@GOTPAGEOFF] str x0, [x8] ldr x0, [x8] bl _mutex_init sub x0, x29, #16 mov x3, #0 str x3, [sp] ; 8-byte Folded Spill mov x1, x3 adrp x2, _thread_n@PAGE add x2, x2, _thread_n@PAGEOFF str x2, [sp, #8] ; 8-byte Folded Spill bl _pthread_create ldr x1, [sp] ; 8-byte Folded Reload ldr x2, [sp, #8] ; 8-byte Folded Reload sub x0, x29, #24 mov x3, #1 bl _pthread_create ldr x1, [sp] ; 8-byte Folded Reload ldr x2, [sp, #8] ; 8-byte Folded Reload add x0, sp, #32 mov x3, #2 bl _pthread_create ldr x1, [sp] ; 8-byte Folded Reload ldr x2, [sp, #8] ; 8-byte Folded Reload add x0, sp, #24 mov x3, #3 bl _pthread_create ldr w0, [sp, #20] ; 4-byte Folded Reload ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function mutex_init _mutex_init: ; @mutex_init .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] ldr x8, [sp, #8] str wzr, [x8] ldr x8, [sp, #8] str wzr, [x8, #4] add sp, sp, #16 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function mutex_lock_fastpath _mutex_lock_fastpath: ; @mutex_lock_fastpath .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, #24] str wzr, [sp, #20] ldr x11, [sp, #24] mov w8, #1 str w8, [sp, #16] ldr w9, [sp, #20] ldr w10, [sp, #16] mov x8, x9 casa w8, w10, [x11] str w8, [sp, #4] ; 4-byte Folded Spill subs w8, w8, w9 cset w8, eq str w8, [sp, #8] ; 4-byte Folded Spill tbnz w8, #0, LBB5_2 b LBB5_1 LBB5_1: ldr w8, [sp, #4] ; 4-byte Folded Reload str w8, [sp, #20] b LBB5_2 LBB5_2: ldr w8, [sp, #8] ; 4-byte Folded Reload mov w9, #1 and w8, w8, w9 strb w8, [sp, #15] ldrb w8, [sp, #15] and w0, w8, #0x1 add sp, sp, #32 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function mutex_lock_slowpath_check _mutex_lock_slowpath_check: ; @mutex_lock_slowpath_check .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, #24] str wzr, [sp, #20] ldr x11, [sp, #24] mov w8, #1 str w8, [sp, #16] ldr w9, [sp, #20] ldr w10, [sp, #16] mov x8, x9 casa w8, w10, [x11] str w8, [sp, #4] ; 4-byte Folded Spill subs w8, w8, w9 cset w8, eq str w8, [sp, #8] ; 4-byte Folded Spill tbnz w8, #0, LBB6_2 b LBB6_1 LBB6_1: ldr w8, [sp, #4] ; 4-byte Folded Reload str w8, [sp, #20] b LBB6_2 LBB6_2: ldr w8, [sp, #8] ; 4-byte Folded Reload mov w9, #1 and w8, w8, w9 strb w8, [sp, #15] ldrb w8, [sp, #15] and w0, w8, #0x1 add sp, sp, #32 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function __futex_wait ___futex_wait: ; @__futex_wait .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, #24] str w1, [sp, #20] adrp x8, _sig@PAGE add x8, x8, _sig@PAGEOFF ldar w8, [x8] str w8, [sp, #12] ldr w8, [sp, #12] str w8, [sp, #16] ldr x8, [sp, #24] ldar w8, [x8] str w8, [sp, #8] ldr w8, [sp, #8] ldr w9, [sp, #20] subs w8, w8, w9 cset w8, eq tbnz w8, #0, LBB7_2 b LBB7_1 LBB7_1: b LBB7_5 LBB7_2: b LBB7_3 LBB7_3: ; =>This Inner Loop Header: Depth=1 adrp x8, _sig@PAGE add x8, x8, _sig@PAGEOFF ldar w8, [x8] str w8, [sp, #4] ldr w8, [sp, #4] ldr w9, [sp, #16] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB7_5 b LBB7_4 LBB7_4: ; in Loop: Header=BB7_3 Depth=1 b LBB7_3 LBB7_5: add sp, sp, #32 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function __futex_wake ___futex_wake: ; @__futex_wake .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, #24] str w1, [sp, #20] mov w8, #1 str w8, [sp, #16] ldr w8, [sp, #16] adrp x9, _sig@PAGE add x9, x9, _sig@PAGEOFF ldaddl w8, w8, [x9] str w8, [sp, #12] add sp, sp, #32 ret .cfi_endproc ; -- End function .comm _mutex,8,3 ; @mutex .comm _shared,4,2 ; @shared .section __TEXT,__cstring,cstring_literals l___func__.thread_n: ; @__func__.thread_n .asciz "thread_n" l_.str: ; @.str .asciz "1203733.c" l_.str.1: ; @.str.1 .asciz "r == index" .zerofill __DATA,__bss,_sig,4,2 ; @sig .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _thread_n ## -- Begin function thread_n .p2align 4, 0x90 _thread_n: ## @thread_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 $32, %rsp movq %rdi, -8(%rbp) movq -8(%rbp), %rax movq %rax, -16(%rbp) movq _mutex@GOTPCREL(%rip), %rax movq (%rax), %rdi callq _mutex_lock movq -16(%rbp), %rax movl %eax, %ecx movq _shared@GOTPCREL(%rip), %rax movl %ecx, (%rax) movq _shared@GOTPCREL(%rip), %rax movl (%rax), %eax movl %eax, -20(%rbp) movslq -20(%rbp), %rax cmpq -16(%rbp), %rax sete %al xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB0_2 ## %bb.1: leaq L___func__.thread_n(%rip), %rdi leaq L_.str(%rip), %rsi leaq L_.str.1(%rip), %rcx movl $104, %edx callq ___assert_rtn LBB0_2: jmp LBB0_3 LBB0_3: movq _mutex@GOTPCREL(%rip), %rax movq (%rax), %rdi callq _mutex_unlock xorl %eax, %eax ## kill: def $rax killed $eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function mutex_lock _mutex_lock: ## @mutex_lock .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 -8(%rbp), %rdi callq _mutex_lock_fastpath cmpl $0, %eax je LBB1_2 ## %bb.1: jmp LBB1_9 LBB1_2: jmp LBB1_3 LBB1_3: ## =>This Inner Loop Header: Depth=1 movq -8(%rbp), %rdi callq _mutex_lock_slowpath_check cmpl $0, %eax jne LBB1_9 ## %bb.4: ## in Loop: Header=BB1_3 Depth=1 movq -8(%rbp), %rcx movl $1, -12(%rbp) movl -12(%rbp), %eax lock xaddl %eax, 4(%rcx) movl %eax, -16(%rbp) movl $1, -20(%rbp) movq -8(%rbp), %rcx movl $2, -24(%rbp) movl -20(%rbp), %eax movl -24(%rbp), %edx lock cmpxchgl %edx, (%rcx) movl %eax, %ecx sete %al movb %al, -41(%rbp) ## 1-byte Spill movl %ecx, -40(%rbp) ## 4-byte Spill testb $1, %al jne LBB1_6 ## %bb.5: ## in Loop: Header=BB1_3 Depth=1 movl -40(%rbp), %eax ## 4-byte Reload movl %eax, -20(%rbp) LBB1_6: ## in Loop: Header=BB1_3 Depth=1 movb -41(%rbp), %al ## 1-byte Reload andb $1, %al movb %al, -25(%rbp) testb $1, -25(%rbp) jne LBB1_8 ## %bb.7: ## in Loop: Header=BB1_3 Depth=1 jmp LBB1_8 LBB1_8: ## in Loop: Header=BB1_3 Depth=1 movq -8(%rbp), %rdi movl $2, %esi callq ___futex_wait movq -8(%rbp), %rcx movl $1, -32(%rbp) movl -32(%rbp), %eax negl %eax lock xaddl %eax, 4(%rcx) movl %eax, -36(%rbp) jmp LBB1_3 LBB1_9: addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function mutex_unlock _mutex_unlock: ## @mutex_unlock .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), %rcx movl $0, -16(%rbp) movl -16(%rbp), %eax xchgl %eax, (%rcx) movl %eax, -20(%rbp) movl -20(%rbp), %eax movl %eax, -12(%rbp) movq -8(%rbp), %rax movl 4(%rax), %eax movl %eax, -24(%rbp) cmpl $0, -24(%rbp) jg LBB2_2 ## %bb.1: cmpl $1, -12(%rbp) je LBB2_3 LBB2_2: movq -8(%rbp), %rdi movl $1, %esi callq ___futex_wake LBB2_3: addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movl $0, -4(%rbp) movl $8, %edi callq _malloc movq %rax, %rcx movq _mutex@GOTPCREL(%rip), %rax movq %rcx, (%rax) movq _mutex@GOTPCREL(%rip), %rax movq (%rax), %rdi callq _mutex_init leaq -16(%rbp), %rdi xorl %eax, %eax movl %eax, %ecx leaq _thread_n(%rip), %rdx movq %rcx, %rsi callq _pthread_create leaq -24(%rbp), %rdi xorl %eax, %eax movl %eax, %esi leaq _thread_n(%rip), %rdx movl $1, %ecx callq _pthread_create leaq -32(%rbp), %rdi xorl %eax, %eax movl %eax, %esi leaq _thread_n(%rip), %rdx movl $2, %ecx callq _pthread_create leaq -40(%rbp), %rdi xorl %eax, %eax movl %eax, %esi leaq _thread_n(%rip), %rdx movl $3, %ecx callq _pthread_create xorl %eax, %eax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function mutex_init _mutex_init: ## @mutex_init .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) movq -8(%rbp), %rax movl $0, (%rax) movq -8(%rbp), %rax movl $0, 4(%rax) popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function mutex_lock_fastpath _mutex_lock_fastpath: ## @mutex_lock_fastpath .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), %rcx movl $1, -16(%rbp) movl -12(%rbp), %eax movl -16(%rbp), %edx lock cmpxchgl %edx, (%rcx) movl %eax, %ecx sete %al movb %al, -25(%rbp) ## 1-byte Spill movl %ecx, -24(%rbp) ## 4-byte Spill testb $1, %al jne LBB5_2 ## %bb.1: movl -24(%rbp), %eax ## 4-byte Reload movl %eax, -12(%rbp) LBB5_2: movb -25(%rbp), %al ## 1-byte Reload andb $1, %al movb %al, -17(%rbp) movb -17(%rbp), %al andb $1, %al movzbl %al, %eax popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function mutex_lock_slowpath_check _mutex_lock_slowpath_check: ## @mutex_lock_slowpath_check .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), %rcx movl $1, -16(%rbp) movl -12(%rbp), %eax movl -16(%rbp), %edx lock cmpxchgl %edx, (%rcx) movl %eax, %ecx sete %al movb %al, -25(%rbp) ## 1-byte Spill movl %ecx, -24(%rbp) ## 4-byte Spill testb $1, %al jne LBB6_2 ## %bb.1: movl -24(%rbp), %eax ## 4-byte Reload movl %eax, -12(%rbp) LBB6_2: movb -25(%rbp), %al ## 1-byte Reload andb $1, %al movb %al, -17(%rbp) movb -17(%rbp), %al andb $1, %al movzbl %al, %eax popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function __futex_wait ___futex_wait: ## @__futex_wait .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) movl _sig(%rip), %eax movl %eax, -20(%rbp) movl -20(%rbp), %eax movl %eax, -16(%rbp) movq -8(%rbp), %rax movl (%rax), %eax movl %eax, -24(%rbp) movl -24(%rbp), %eax cmpl -12(%rbp), %eax je LBB7_2 ## %bb.1: jmp LBB7_5 LBB7_2: jmp LBB7_3 LBB7_3: ## =>This Inner Loop Header: Depth=1 movl _sig(%rip), %eax movl %eax, -28(%rbp) movl -28(%rbp), %eax cmpl -16(%rbp), %eax jne LBB7_5 ## %bb.4: ## in Loop: Header=BB7_3 Depth=1 jmp LBB7_3 LBB7_5: popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function __futex_wake ___futex_wake: ## @__futex_wake .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) movl $1, -16(%rbp) movl -16(%rbp), %eax lock xaddl %eax, _sig(%rip) movl %eax, -20(%rbp) popq %rbp retq .cfi_endproc ## -- End function .comm _mutex,8,3 ## @mutex .comm _shared,4,2 ## @shared .section __TEXT,__cstring,cstring_literals L___func__.thread_n: ## @__func__.thread_n .asciz "thread_n" L_.str: ## @.str .asciz "1203733.c" L_.str.1: ## @.str.1 .asciz "r == index" .zerofill __DATA,__bss,_sig,4,2 ## @sig .subsections_via_symbols
the_stack_data/1203733.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] bl ___VERIFIER_nondet_int stur w0, [x29, #-12] bl ___VERIFIER_nondet_int str w0, [sp, #16] bl ___VERIFIER_nondet_int str w0, [sp, #12] stur wzr, [x29, #-8] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-12] ldr w9, [sp, #12] subs w8, w8, w9 cset w8, le mov w9, #0 str w9, [sp, #8] ; 4-byte Folded Spill tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #16] ldr w9, [sp, #12] subs w8, w8, w9 cset w8, gt str w8, [sp, #8] ; 4-byte Folded Spill b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #8] ; 4-byte Folded Reload tbz w8, #0, LBB0_5 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-12] subs w8, w8, #1 stur w8, [x29, #-12] ldr w8, [sp, #16] subs w8, w8, #1 str w8, [sp, #16] ldur w8, [x29, #-8] add w8, w8, #1 stur w8, [x29, #-8] b LBB0_1 LBB0_5: 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 _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl $0, -4(%rbp) callq ___VERIFIER_nondet_int movl %eax, -12(%rbp) callq ___VERIFIER_nondet_int movl %eax, -16(%rbp) callq ___VERIFIER_nondet_int movl %eax, -20(%rbp) movl $0, -8(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movl -12(%rbp), %ecx xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl -20(%rbp), %ecx movb %al, -21(%rbp) ## 1-byte Spill jle LBB0_3 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl -16(%rbp), %eax cmpl -20(%rbp), %eax setg %al movb %al, -21(%rbp) ## 1-byte Spill LBB0_3: ## in Loop: Header=BB0_1 Depth=1 movb -21(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB0_4 jmp LBB0_5 LBB0_4: ## in Loop: Header=BB0_1 Depth=1 movl -12(%rbp), %eax subl $1, %eax movl %eax, -12(%rbp) movl -16(%rbp), %eax subl $1, %eax movl %eax, -16(%rbp) movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) jmp LBB0_1 LBB0_5: xorl %eax, %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/122016382.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _merging ; -- Begin function merging .p2align 2 _merging: ; @merging .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 adrp x8, _b@GOTPAGE ldr x8, [x8, _b@GOTPAGEOFF] str x8, [sp, #16] ; 8-byte Folded Spill str w0, [sp, #44] str w1, [sp, #40] str w2, [sp, #36] ldr w8, [sp, #44] str w8, [sp, #32] ldr w8, [sp, #40] add w8, w8, #1 str w8, [sp, #28] ldr w8, [sp, #44] str w8, [sp, #24] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #32] ldr w9, [sp, #40] subs w8, w8, w9 cset w8, gt mov w9, #0 str w9, [sp, #12] ; 4-byte Folded Spill tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #28] ldr w9, [sp, #36] subs w8, w8, w9 cset w8, le str w8, [sp, #12] ; 4-byte Folded Spill b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #12] ; 4-byte Folded Reload tbz w8, #0, LBB0_9 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_1 Depth=1 ldrsw x8, [sp, #32] adrp x9, _a@PAGE add x9, x9, _a@PAGEOFF ldr w8, [x9, x8, lsl #2] ldrsw x10, [sp, #28] ldr w9, [x9, x10, lsl #2] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_1 Depth=1 ldr x9, [sp, #16] ; 8-byte Folded Reload ldrsw x10, [sp, #32] mov x8, x10 add w8, w8, #1 str w8, [sp, #32] adrp x8, _a@PAGE add x8, x8, _a@PAGEOFF ldr w8, [x8, x10, lsl #2] ldrsw x10, [sp, #24] str w8, [x9, x10, lsl #2] b LBB0_7 LBB0_6: ; in Loop: Header=BB0_1 Depth=1 ldr x9, [sp, #16] ; 8-byte Folded Reload ldrsw x10, [sp, #28] mov x8, x10 add w8, w8, #1 str w8, [sp, #28] adrp x8, _a@PAGE add x8, x8, _a@PAGEOFF ldr w8, [x8, x10, lsl #2] ldrsw x10, [sp, #24] str w8, [x9, x10, lsl #2] b LBB0_7 LBB0_7: ; in Loop: Header=BB0_1 Depth=1 b LBB0_8 LBB0_8: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #24] add w8, w8, #1 str w8, [sp, #24] b LBB0_1 LBB0_9: b LBB0_10 LBB0_10: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #32] ldr w9, [sp, #40] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_12 b LBB0_11 LBB0_11: ; in Loop: Header=BB0_10 Depth=1 ldr x9, [sp, #16] ; 8-byte Folded Reload ldrsw x10, [sp, #32] mov x8, x10 add w8, w8, #1 str w8, [sp, #32] adrp x8, _a@PAGE add x8, x8, _a@PAGEOFF ldr w8, [x8, x10, lsl #2] ldrsw x10, [sp, #24] mov x11, x10 add w11, w11, #1 str w11, [sp, #24] str w8, [x9, x10, lsl #2] b LBB0_10 LBB0_12: b LBB0_13 LBB0_13: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #28] ldr w9, [sp, #36] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_15 b LBB0_14 LBB0_14: ; in Loop: Header=BB0_13 Depth=1 ldr x9, [sp, #16] ; 8-byte Folded Reload ldrsw x10, [sp, #28] mov x8, x10 add w8, w8, #1 str w8, [sp, #28] adrp x8, _a@PAGE add x8, x8, _a@PAGEOFF ldr w8, [x8, x10, lsl #2] ldrsw x10, [sp, #24] mov x11, x10 add w11, w11, #1 str w11, [sp, #24] str w8, [x9, x10, lsl #2] b LBB0_13 LBB0_15: ldr w8, [sp, #44] str w8, [sp, #24] b LBB0_16 LBB0_16: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #24] ldr w9, [sp, #36] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_19 b LBB0_17 LBB0_17: ; in Loop: Header=BB0_16 Depth=1 ldr x8, [sp, #16] ; 8-byte Folded Reload ldrsw x9, [sp, #24] ldr w8, [x8, x9, lsl #2] ldrsw x10, [sp, #24] adrp x9, _a@PAGE add x9, x9, _a@PAGEOFF str w8, [x9, x10, lsl #2] b LBB0_18 LBB0_18: ; in Loop: Header=BB0_16 Depth=1 ldr w8, [sp, #24] add w8, w8, #1 str w8, [sp, #24] b LBB0_16 LBB0_19: add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _sort ; -- Begin function sort .p2align 2 _sort: ; @sort .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur w0, [x29, #-4] str w1, [sp, #8] ldur w8, [x29, #-4] ldr w9, [sp, #8] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: ldur w8, [x29, #-4] ldr w9, [sp, #8] add w8, w8, w9 mov w9, #2 sdiv w8, w8, w9 str w8, [sp, #4] ldur w0, [x29, #-4] ldr w1, [sp, #4] bl _sort ldr w8, [sp, #4] add w0, w8, #1 ldr w1, [sp, #8] bl _sort ldur w0, [x29, #-4] ldr w1, [sp, #4] ldr w2, [sp, #8] bl _merging b LBB1_3 LBB1_2: b LBB1_3 LBB1_3: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf str wzr, [sp, #8] b LBB2_1 LBB2_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #8] subs w8, w8, #10 cset w8, gt tbnz w8, #0, LBB2_4 b LBB2_2 LBB2_2: ; in Loop: Header=BB2_1 Depth=1 ldrsw x9, [sp, #8] adrp x8, _a@PAGE add x8, x8, _a@PAGEOFF ldr w9, [x8, x9, lsl #2] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf b LBB2_3 LBB2_3: ; in Loop: Header=BB2_1 Depth=1 ldr w8, [sp, #8] add w8, w8, #1 str w8, [sp, #8] b LBB2_1 LBB2_4: mov w0, #0 mov w1, #10 bl _sort adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf str wzr, [sp, #8] b LBB2_5 LBB2_5: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #8] subs w8, w8, #10 cset w8, gt tbnz w8, #0, LBB2_8 b LBB2_6 LBB2_6: ; in Loop: Header=BB2_5 Depth=1 ldrsw x9, [sp, #8] adrp x8, _a@PAGE add x8, x8, _a@PAGEOFF ldr w9, [x8, x9, lsl #2] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf b LBB2_7 LBB2_7: ; in Loop: Header=BB2_5 Depth=1 ldr w8, [sp, #8] add w8, w8, #1 str w8, [sp, #8] b LBB2_5 LBB2_8: ldur w0, [x29, #-4] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .section __DATA,__data .globl _a ; @a .p2align 2 _a: .long 10 ; 0xa .long 14 ; 0xe .long 19 ; 0x13 .long 26 ; 0x1a .long 27 ; 0x1b .long 31 ; 0x1f .long 33 ; 0x21 .long 35 ; 0x23 .long 42 ; 0x2a .long 44 ; 0x2c .long 0 ; 0x0 .comm _b,40,2 ; @b .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "List before sorting\n" l_.str.1: ; @.str.1 .asciz "%d " l_.str.2: ; @.str.2 .asciz "\nList after sorting\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _merging ## -- Begin function merging .p2align 4, 0x90 _merging: ## @merging .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, -4(%rbp) movl %esi, -8(%rbp) movl %edx, -12(%rbp) movl -4(%rbp), %eax movl %eax, -16(%rbp) movl -8(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) movl -4(%rbp), %eax movl %eax, -24(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movl -16(%rbp), %ecx xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl -8(%rbp), %ecx movb %al, -25(%rbp) ## 1-byte Spill jg LBB0_3 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl -20(%rbp), %eax cmpl -12(%rbp), %eax setle %al movb %al, -25(%rbp) ## 1-byte Spill LBB0_3: ## in Loop: Header=BB0_1 Depth=1 movb -25(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB0_4 jmp LBB0_9 LBB0_4: ## in Loop: Header=BB0_1 Depth=1 movslq -16(%rbp), %rcx leaq _a(%rip), %rax movl (%rax,%rcx,4), %eax movslq -20(%rbp), %rdx leaq _a(%rip), %rcx cmpl (%rcx,%rdx,4), %eax jg LBB0_6 ## %bb.5: ## in Loop: Header=BB0_1 Depth=1 movl -16(%rbp), %eax movl %eax, %ecx addl $1, %ecx movl %ecx, -16(%rbp) movslq %eax, %rcx leaq _a(%rip), %rax movl (%rax,%rcx,4), %edx movslq -24(%rbp), %rcx movq _b@GOTPCREL(%rip), %rax movl %edx, (%rax,%rcx,4) jmp LBB0_7 LBB0_6: ## in Loop: Header=BB0_1 Depth=1 movl -20(%rbp), %eax movl %eax, %ecx addl $1, %ecx movl %ecx, -20(%rbp) movslq %eax, %rcx leaq _a(%rip), %rax movl (%rax,%rcx,4), %edx movslq -24(%rbp), %rcx movq _b@GOTPCREL(%rip), %rax movl %edx, (%rax,%rcx,4) LBB0_7: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_8 LBB0_8: ## in Loop: Header=BB0_1 Depth=1 movl -24(%rbp), %eax addl $1, %eax movl %eax, -24(%rbp) jmp LBB0_1 LBB0_9: jmp LBB0_10 LBB0_10: ## =>This Inner Loop Header: Depth=1 movl -16(%rbp), %eax cmpl -8(%rbp), %eax jg LBB0_12 ## %bb.11: ## in Loop: Header=BB0_10 Depth=1 movl -16(%rbp), %eax movl %eax, %ecx addl $1, %ecx movl %ecx, -16(%rbp) movslq %eax, %rcx leaq _a(%rip), %rax movl (%rax,%rcx,4), %edx movl -24(%rbp), %eax movl %eax, %ecx addl $1, %ecx movl %ecx, -24(%rbp) movslq %eax, %rcx movq _b@GOTPCREL(%rip), %rax movl %edx, (%rax,%rcx,4) jmp LBB0_10 LBB0_12: jmp LBB0_13 LBB0_13: ## =>This Inner Loop Header: Depth=1 movl -20(%rbp), %eax cmpl -12(%rbp), %eax jg LBB0_15 ## %bb.14: ## in Loop: Header=BB0_13 Depth=1 movl -20(%rbp), %eax movl %eax, %ecx addl $1, %ecx movl %ecx, -20(%rbp) movslq %eax, %rcx leaq _a(%rip), %rax movl (%rax,%rcx,4), %edx movl -24(%rbp), %eax movl %eax, %ecx addl $1, %ecx movl %ecx, -24(%rbp) movslq %eax, %rcx movq _b@GOTPCREL(%rip), %rax movl %edx, (%rax,%rcx,4) jmp LBB0_13 LBB0_15: movl -4(%rbp), %eax movl %eax, -24(%rbp) LBB0_16: ## =>This Inner Loop Header: Depth=1 movl -24(%rbp), %eax cmpl -12(%rbp), %eax jg LBB0_19 ## %bb.17: ## in Loop: Header=BB0_16 Depth=1 movslq -24(%rbp), %rcx movq _b@GOTPCREL(%rip), %rax movl (%rax,%rcx,4), %edx movslq -24(%rbp), %rcx leaq _a(%rip), %rax movl %edx, (%rax,%rcx,4) ## %bb.18: ## in Loop: Header=BB0_16 Depth=1 movl -24(%rbp), %eax addl $1, %eax movl %eax, -24(%rbp) jmp LBB0_16 LBB0_19: popq %rbp retq .cfi_endproc ## -- End function .globl _sort ## -- Begin function sort .p2align 4, 0x90 _sort: ## @sort .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl %edi, -4(%rbp) movl %esi, -8(%rbp) movl -4(%rbp), %eax cmpl -8(%rbp), %eax jge LBB1_2 ## %bb.1: movl -4(%rbp), %eax addl -8(%rbp), %eax movl $2, %ecx cltd idivl %ecx movl %eax, -12(%rbp) movl -4(%rbp), %edi movl -12(%rbp), %esi callq _sort movl -12(%rbp), %edi addl $1, %edi movl -8(%rbp), %esi callq _sort movl -4(%rbp), %edi movl -12(%rbp), %esi movl -8(%rbp), %edx callq _merging jmp LBB1_3 LBB1_2: jmp LBB1_3 LBB1_3: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) leaq L_.str(%rip), %rdi movb $0, %al callq _printf movl $0, -8(%rbp) LBB2_1: ## =>This Inner Loop Header: Depth=1 cmpl $10, -8(%rbp) jg LBB2_4 ## %bb.2: ## in Loop: Header=BB2_1 Depth=1 movslq -8(%rbp), %rcx leaq _a(%rip), %rax movl (%rax,%rcx,4), %esi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf ## %bb.3: ## in Loop: Header=BB2_1 Depth=1 movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) jmp LBB2_1 LBB2_4: xorl %edi, %edi movl $10, %esi callq _sort leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf movl $0, -8(%rbp) LBB2_5: ## =>This Inner Loop Header: Depth=1 cmpl $10, -8(%rbp) jg LBB2_8 ## %bb.6: ## in Loop: Header=BB2_5 Depth=1 movslq -8(%rbp), %rcx leaq _a(%rip), %rax movl (%rax,%rcx,4), %esi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf ## %bb.7: ## in Loop: Header=BB2_5 Depth=1 movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) jmp LBB2_5 LBB2_8: movl -4(%rbp), %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __DATA,__data .globl _a ## @a .p2align 4 _a: .long 10 ## 0xa .long 14 ## 0xe .long 19 ## 0x13 .long 26 ## 0x1a .long 27 ## 0x1b .long 31 ## 0x1f .long 33 ## 0x21 .long 35 ## 0x23 .long 42 ## 0x2a .long 44 ## 0x2c .long 0 ## 0x0 .comm _b,40,4 ## @b .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "List before sorting\n" L_.str.1: ## @.str.1 .asciz "%d " L_.str.2: ## @.str.2 .asciz "\nList after sorting\n" .subsections_via_symbols
the_stack_data/56381.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/125140130.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _foo ; -- Begin function foo .p2align 2 _foo: ; @foo .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 adrp x8, _f@PAGE add x8, x8, _f@PAGEOFF str x8, [sp, #24] ; 8-byte Folded Spill adrp x9, _a@PAGE ldr x8, [x9, _a@PAGEOFF] mov x10, x8 adrp x8, _b@PAGE ldrb w8, [x8, _b@PAGEOFF] subs w8, w8, w10, sxtb cset w10, gt ; implicit-def: $x8 mov x8, x10 and x8, x8, #0x1 str x8, [x9, _a@PAGEOFF] adrp x8, _d@PAGE ldrb w8, [x8, _d@PAGEOFF] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: adrp x8, _e@PAGE ldr x8, [x8, _e@PAGEOFF] str x8, [sp, #16] ; 8-byte Folded Spill b LBB0_3 LBB0_2: mov x8, #0 str x8, [sp, #16] ; 8-byte Folded Spill b LBB0_3 LBB0_3: ldr x8, [sp, #24] ; 8-byte Folded Reload ldr x9, [sp, #16] ; 8-byte Folded Reload str x9, [sp, #8] ; 8-byte Folded Spill ldr x8, [x8, #8] adrp x9, _a@PAGE ldr x9, [x9, _a@PAGEOFF] mul x8, x8, x9 subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB0_5 b LBB0_4 LBB0_4: mov x8, #1 str x8, [sp] ; 8-byte Folded Spill b LBB0_6 LBB0_5: adrp x8, _g@PAGE ldr x8, [x8, _g@PAGEOFF] str x8, [sp] ; 8-byte Folded Spill b LBB0_6 LBB0_6: ldr x8, [sp, #8] ; 8-byte Folded Reload ldr x9, [sp] ; 8-byte Folded Reload subs x8, x8, x9 adrp x9, _c@PAGE str x8, [x9, _c@PAGEOFF] add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] bl _foo adrp x8, _a@PAGE ldr x8, [x8, _a@PAGEOFF] subs x8, x8, #1 cset w8, ne tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: adrp x8, _c@PAGE ldr x8, [x8, _c@PAGEOFF] mov x9, #43301 movk x9, #26197, lsl #16 movk x9, #11197, lsl #32 movk x9, #12880, lsl #48 subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB1_3 b LBB1_2 LBB1_2: bl _abort LBB1_3: mov w0, #0 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .section __DATA,__data .globl _a ; @a .p2align 3 _a: .quad 16 ; 0x10 .globl _b ; @b _b: .byte 195 ; 0xc3 .globl _c ; @c .p2align 3 _c: .quad -1 ; 0xffffffffffffffff .globl _d ; @d _d: .byte 1 ; 0x1 .globl _e ; @e .p2align 3 _e: .quad 3625445792498952486 ; 0x32502bbd6655a926 .quad 0 ; 0x0 .globl _f ; @f .p2align 3 _f: .quad 0 ; 0x0 .quad 8985037393681294663 ; 0x7cb143e79ff9a547 .globl _g ; @g .p2align 3 _g: .quad 5052410635626804928 ; 0x461dc4b44bf0f6c0 .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 _a(%rip), %rax ## kill: def $al killed $al killed $rax movsbl %al, %eax movzbl _b(%rip), %ecx cmpl %ecx, %eax setl %al andb $1, %al movzbl %al, %eax cltq movq %rax, _a(%rip) movzbl _d(%rip), %eax cmpl $0, %eax je LBB0_2 ## %bb.1: movq _e(%rip), %rax movq %rax, -8(%rbp) ## 8-byte Spill jmp LBB0_3 LBB0_2: xorl %eax, %eax ## kill: def $rax killed $eax movq %rax, -8(%rbp) ## 8-byte Spill jmp LBB0_3 LBB0_3: movq -8(%rbp), %rax ## 8-byte Reload movq %rax, -16(%rbp) ## 8-byte Spill movq _f+8(%rip), %rax imulq _a(%rip), %rax cmpq $0, %rax je LBB0_5 ## %bb.4: movl $1, %eax movq %rax, -24(%rbp) ## 8-byte Spill jmp LBB0_6 LBB0_5: movq _g(%rip), %rax movq %rax, -24(%rbp) ## 8-byte Spill LBB0_6: movq -16(%rbp), %rax ## 8-byte Reload movq -24(%rbp), %rcx ## 8-byte Reload subq %rcx, %rax movq %rax, _c(%rip) popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) callq _foo cmpq $1, _a(%rip) jne LBB1_2 ## %bb.1: movabsq $3625445792498952485, %rax ## imm = 0x32502BBD6655A925 cmpq %rax, _c(%rip) je LBB1_3 LBB1_2: callq _abort LBB1_3: xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __DATA,__data .globl _a ## @a .p2align 3 _a: .quad 16 ## 0x10 .globl _b ## @b _b: .byte 195 ## 0xc3 .globl _c ## @c .p2align 3 _c: .quad -1 ## 0xffffffffffffffff .globl _d ## @d _d: .byte 1 ## 0x1 .globl _e ## @e .p2align 4 _e: .quad 3625445792498952486 ## 0x32502bbd6655a926 .quad 0 ## 0x0 .globl _f ## @f .p2align 4 _f: .quad 0 ## 0x0 .quad 8985037393681294663 ## 0x7cb143e79ff9a547 .globl _g ## @g .p2align 3 _g: .quad 5052410635626804928 ## 0x461dc4b44bf0f6c0 .subsections_via_symbols
the_stack_data/74088.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _reset_state ; -- Begin function reset_state .p2align 2 _reset_state: ; @reset_state .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] str x1, [sp, #16] str wzr, [sp, #12] str wzr, [sp, #12] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #12] subs w8, w8, #8 cset w8, ge tbnz w8, #0, LBB0_4 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldur x8, [x29, #-8] ldrsw x9, [sp, #12] ldr x0, [x8, x9, lsl #3] bl _free b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB0_1 LBB0_4: str wzr, [sp, #12] b LBB0_5 LBB0_5: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #12] subs w8, w8, #6 cset w8, ge tbnz w8, #0, LBB0_8 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_5 Depth=1 ldr x8, [sp, #16] ldrsw x9, [sp, #12] ldr x0, [x8, x9, lsl #3] bl _free b LBB0_7 LBB0_7: ; in Loop: Header=BB0_5 Depth=1 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB0_5 LBB0_8: adrp x9, _tasktab@PAGE mov x8, #10 str x8, [x9, _tasktab@PAGEOFF] str wzr, [sp, #12] b LBB0_9 LBB0_9: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #12] subs w8, w8, #10 cset w8, ge tbnz w8, #0, LBB0_12 b LBB0_10 LBB0_10: ; in Loop: Header=BB0_9 Depth=1 ldr w8, [sp, #12] add w10, w8, #1 adrp x9, _tasktab@PAGE add x9, x9, _tasktab@PAGEOFF mov x8, #0 str x8, [x9, w10, sxtw #3] b LBB0_11 LBB0_11: ; in Loop: Header=BB0_9 Depth=1 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB0_9 LBB0_12: adrp x8, _tasklist@PAGE ; kill: def $x9 killed $xzr str xzr, [x8, _tasklist@PAGEOFF] adrp x8, _tcb@GOTPAGE ldr x8, [x8, _tcb@GOTPAGEOFF] str xzr, [x8] adrp x8, _taskid@PAGE str xzr, [x8, _taskid@PAGEOFF] adrp x8, _v1@PAGE str xzr, [x8, _v1@PAGEOFF] adrp x8, _v2@PAGE str xzr, [x8, _v2@PAGEOFF] adrp x8, _qpktcount@PAGE str wzr, [x8, _qpktcount@PAGEOFF] adrp x8, _holdcount@PAGE str wzr, [x8, _holdcount@PAGEOFF] adrp x8, _layout@PAGE str wzr, [x8, _layout@PAGEOFF] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _createtask ; -- Begin function createtask .p2align 2 _createtask: ; @createtask .cfi_startproc ; %bb.0: sub sp, sp, #80 .cfi_def_cfa_offset 80 stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp, #64 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur w0, [x29, #-4] stur w1, [x29, #-8] stur x2, [x29, #-16] stur w3, [x29, #-20] str x4, [sp, #32] str x5, [sp, #24] str x6, [sp, #16] mov x0, #56 bl _malloc str x0, [sp, #8] ldr x8, [sp, #8] ldursw x10, [x29, #-4] adrp x9, _tasktab@PAGE add x9, x9, _tasktab@PAGEOFF str x8, [x9, x10, lsl #3] adrp x9, _tasklist@PAGE ldr x8, [x9, _tasklist@PAGEOFF] ldr x10, [sp, #8] str x8, [x10] ldur w8, [x29, #-4] ldr x10, [sp, #8] str w8, [x10, #8] ldur w8, [x29, #-8] ldr x10, [sp, #8] str w8, [x10, #12] ldur x8, [x29, #-16] ldr x10, [sp, #8] str x8, [x10, #16] ldur w8, [x29, #-20] ldr x10, [sp, #8] str w8, [x10, #24] ldr x8, [sp, #32] ldr x10, [sp, #8] str x8, [x10, #32] ldr x8, [sp, #24] ldr x10, [sp, #8] str x8, [x10, #40] ldr x8, [sp, #16] ldr x10, [sp, #8] str x8, [x10, #48] ldr x8, [sp, #8] str x8, [x9, _tasklist@PAGEOFF] ldr x0, [sp, #8] ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .globl _pkt ; -- Begin function pkt .p2align 2 _pkt: ; @pkt .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] mov x0, #24 bl _malloc str x0, [sp] str wzr, [sp, #12] b LBB2_1 LBB2_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #12] subs w8, w8, #3 cset w8, gt tbnz w8, #0, LBB2_4 b LBB2_2 LBB2_2: ; in Loop: Header=BB2_1 Depth=1 ldr x8, [sp] add x8, x8, #20 ldrsw x9, [sp, #12] add x8, x8, x9 strb wzr, [x8] b LBB2_3 LBB2_3: ; in Loop: Header=BB2_1 Depth=1 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB2_1 LBB2_4: ldur x8, [x29, #-8] ldr x9, [sp] str x8, [x9] ldur w8, [x29, #-12] ldr x9, [sp] str w8, [x9, #8] ldr w8, [sp, #16] ldr x9, [sp] str w8, [x9, #12] ldr x8, [sp] str wzr, [x8, #16] ldr x0, [sp] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _trace ; -- Begin function trace .p2align 2 _trace: ; @trace .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 sturb w0, [x29, #-1] adrp x9, _layout@PAGE ldr w8, [x9, _layout@PAGEOFF] subs w8, w8, #1 str w8, [x9, _layout@PAGEOFF] subs w8, w8, #0 cset w8, gt 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, #50 adrp x9, _layout@PAGE str w8, [x9, _layout@PAGEOFF] b LBB3_2 LBB3_2: ldursb w10, [x29, #-1] mov x9, sp ; implicit-def: $x8 mov x8, x10 str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _schedule ; -- Begin function schedule .p2align 2 _schedule: ; @schedule .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, _tcb@GOTPAGE ldr x8, [x8, _tcb@GOTPAGEOFF] str x8, [sp, #24] ; 8-byte Folded Spill b LBB4_1 LBB4_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #24] ; 8-byte Folded Reload ldr x8, [x8] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB4_11 b LBB4_2 LBB4_2: ; in Loop: Header=BB4_1 Depth=1 ldr x8, [sp, #24] ; 8-byte Folded Reload ; kill: def $x9 killed $xzr stur xzr, [x29, #-8] ldr x8, [x8] ldr w8, [x8, #24] str w8, [sp, #20] ; 4-byte Folded Spill subs w8, w8, #0 subs w8, w8, #1 cset w8, ls tbnz w8, #0, LBB4_7 b LBB4_3 LBB4_3: ; in Loop: Header=BB4_1 Depth=1 ldr w8, [sp, #20] ; 4-byte Folded Reload subs w8, w8, #2 cset w8, eq tbnz w8, #0, LBB4_8 b LBB4_4 LBB4_4: ; in Loop: Header=BB4_1 Depth=1 ldr w8, [sp, #20] ; 4-byte Folded Reload subs w8, w8, #3 cset w8, eq tbnz w8, #0, LBB4_6 b LBB4_5 LBB4_5: ; in Loop: Header=BB4_1 Depth=1 ldr w8, [sp, #20] ; 4-byte Folded Reload subs w8, w8, #4 subs w8, w8, #3 cset w8, ls tbnz w8, #0, LBB4_8 b LBB4_9 LBB4_6: ; in Loop: Header=BB4_1 Depth=1 ldr x9, [sp, #24] ; 8-byte Folded Reload ldr x8, [x9] ldr x8, [x8, #16] stur x8, [x29, #-8] ldur x8, [x29, #-8] ldr x8, [x8] ldr x10, [x9] str x8, [x10, #16] ldr x8, [x9] ldr x8, [x8, #16] subs x8, x8, #0 cset w8, eq and w8, w8, #0x1 ands w8, w8, #0x1 cset w8, eq ldr x9, [x9] str w8, [x9, #24] b LBB4_7 LBB4_7: ; in Loop: Header=BB4_1 Depth=1 ldr x8, [sp, #24] ; 8-byte Folded Reload ldr x9, [x8] ldrsw x9, [x9, #8] adrp x10, _taskid@PAGE str x9, [x10, _taskid@PAGEOFF] ldr x9, [x8] ldr x9, [x9, #40] adrp x10, _v1@PAGE str x10, [sp] ; 8-byte Folded Spill str x9, [x10, _v1@PAGEOFF] ldr x9, [x8] ldr x9, [x9, #48] adrp x10, _v2@PAGE str x10, [sp, #8] ; 8-byte Folded Spill str x9, [x10, _v2@PAGEOFF] ldr x8, [x8] ldr x8, [x8, #32] ldur x0, [x29, #-8] blr x8 ldr x10, [sp] ; 8-byte Folded Reload ldr x8, [sp, #8] ; 8-byte Folded Reload ldr x9, [sp, #24] ; 8-byte Folded Reload stur x0, [x29, #-16] ldr x10, [x10, _v1@PAGEOFF] ldr x11, [x9] str x10, [x11, #40] ldr x8, [x8, _v2@PAGEOFF] ldr x10, [x9] str x8, [x10, #48] ldur x8, [x29, #-16] str x8, [x9] b LBB4_10 LBB4_8: ; in Loop: Header=BB4_1 Depth=1 ldr x9, [sp, #24] ; 8-byte Folded Reload ldr x8, [x9] ldr x8, [x8] str x8, [x9] b LBB4_10 LBB4_9: b LBB4_11 LBB4_10: ; in Loop: Header=BB4_1 Depth=1 b LBB4_1 LBB4_11: ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _r_wait ; -- Begin function r_wait .p2align 2 _r_wait: ; @r_wait .cfi_startproc ; %bb.0: adrp x8, _tcb@GOTPAGE ldr x8, [x8, _tcb@GOTPAGEOFF] ldr x10, [x8] ldr w9, [x10, #24] orr w9, w9, #0x2 str w9, [x10, #24] ldr x0, [x8] ret .cfi_endproc ; -- End function .globl _holdself ; -- Begin function holdself .p2align 2 _holdself: ; @holdself .cfi_startproc ; %bb.0: adrp x9, _holdcount@PAGE ldr w8, [x9, _holdcount@PAGEOFF] add w8, w8, #1 str w8, [x9, _holdcount@PAGEOFF] adrp x8, _tcb@GOTPAGE ldr x8, [x8, _tcb@GOTPAGEOFF] ldr x10, [x8] ldr w9, [x10, #24] orr w9, w9, #0x4 str w9, [x10, #24] ldr x8, [x8] ldr x0, [x8] ret .cfi_endproc ; -- End function .globl _findtcb ; -- Begin function findtcb .p2align 2 _findtcb: ; @findtcb .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] ; kill: def $x8 killed $xzr str xzr, [sp, #16] ldur w9, [x29, #-4] mov w8, #1 subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB7_3 b LBB7_1 LBB7_1: ldursw x8, [x29, #-4] adrp x9, _tasktab@PAGE ldr x9, [x9, _tasktab@PAGEOFF] subs x8, x8, x9 cset w8, gt tbnz w8, #0, LBB7_3 b LBB7_2 LBB7_2: ldursw x9, [x29, #-4] adrp x8, _tasktab@PAGE add x8, x8, _tasktab@PAGEOFF ldr x8, [x8, x9, lsl #3] str x8, [sp, #16] b LBB7_3 LBB7_3: ldr x8, [sp, #16] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB7_5 b LBB7_4 LBB7_4: ldur w9, [x29, #-4] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf b LBB7_5 LBB7_5: ldr x0, [sp, #16] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _release ; -- Begin function release .p2align 2 _release: ; @release .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] ldur w0, [x29, #-12] bl _findtcb str x0, [sp, #8] ldr x8, [sp, #8] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB8_2 b LBB8_1 LBB8_1: ; kill: def $x8 killed $xzr stur xzr, [x29, #-8] b LBB8_5 LBB8_2: ldr x9, [sp, #8] ldr w8, [x9, #24] mov w10, #65531 and w8, w8, w10 str w8, [x9, #24] ldr x8, [sp, #8] ldr w8, [x8, #12] adrp x9, _tcb@GOTPAGE ldr x9, [x9, _tcb@GOTPAGEOFF] ldr x9, [x9] ldr w9, [x9, #12] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB8_4 b LBB8_3 LBB8_3: ldr x8, [sp, #8] stur x8, [x29, #-8] b LBB8_5 LBB8_4: adrp x8, _tcb@GOTPAGE ldr x8, [x8, _tcb@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] b LBB8_5 LBB8_5: ldur x0, [x29, #-8] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _qpkt ; -- Begin function qpkt .p2align 2 _qpkt: ; @qpkt .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #16] ldr x8, [sp, #16] ldr w0, [x8, #8] bl _findtcb str x0, [sp, #8] ldr x8, [sp, #8] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB9_2 b LBB9_1 LBB9_1: ldr x8, [sp, #8] stur x8, [x29, #-8] b LBB9_8 LBB9_2: adrp x9, _qpktcount@PAGE ldr w8, [x9, _qpktcount@PAGEOFF] add w8, w8, #1 str w8, [x9, _qpktcount@PAGEOFF] ldr x8, [sp, #16] ; kill: def $x9 killed $xzr str xzr, [x8] adrp x8, _taskid@PAGE ldr x8, [x8, _taskid@PAGEOFF] ldr x9, [sp, #16] ; kill: def $w8 killed $w8 killed $x8 str w8, [x9, #8] ldr x8, [sp, #8] ldr x8, [x8, #16] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB9_6 b LBB9_3 LBB9_3: ldr x8, [sp, #16] ldr x9, [sp, #8] str x8, [x9, #16] ldr x9, [sp, #8] ldr w8, [x9, #24] orr w8, w8, #0x1 str w8, [x9, #24] ldr x8, [sp, #8] ldr w8, [x8, #12] adrp x9, _tcb@GOTPAGE ldr x9, [x9, _tcb@GOTPAGEOFF] ldr x9, [x9] ldr w9, [x9, #12] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB9_5 b LBB9_4 LBB9_4: ldr x8, [sp, #8] stur x8, [x29, #-8] b LBB9_8 LBB9_5: b LBB9_7 LBB9_6: ldr x0, [sp, #16] ldr x8, [sp, #8] add x1, x8, #16 bl _append b LBB9_7 LBB9_7: adrp x8, _tcb@GOTPAGE ldr x8, [x8, _tcb@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] b LBB9_8 LBB9_8: ldur x0, [x29, #-8] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _append ; -- Begin function append .p2align 2 _append: ; @append .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] str x1, [sp] ldr x8, [sp, #8] ; kill: def $x9 killed $xzr str xzr, [x8] b LBB10_1 LBB10_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp] ldr x8, [x8] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB10_3 b LBB10_2 LBB10_2: ; in Loop: Header=BB10_1 Depth=1 ldr x8, [sp] ldr x8, [x8] str x8, [sp] b LBB10_1 LBB10_3: ldr x8, [sp, #8] ldr x9, [sp] str x8, [x9] add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _idlefn ; -- Begin function idlefn .p2align 2 _idlefn: ; @idlefn .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp] adrp x9, _v2@PAGE ldr x8, [x9, _v2@PAGEOFF] subs x8, x8, #1 str x8, [x9, _v2@PAGEOFF] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB11_2 b LBB11_1 LBB11_1: bl _holdself str x0, [sp, #8] b LBB11_5 LBB11_2: adrp x8, _v1@PAGE ldr x8, [x8, _v1@PAGEOFF] ands x8, x8, #0x1 cset w8, ne tbnz w8, #0, LBB11_4 b LBB11_3 LBB11_3: adrp x9, _v1@PAGE ldr x8, [x9, _v1@PAGEOFF] asr x8, x8, #1 and x8, x8, #0x7fff str x8, [x9, _v1@PAGEOFF] mov w0, #5 bl _release str x0, [sp, #8] b LBB11_5 LBB11_4: adrp x9, _v1@PAGE ldr x8, [x9, _v1@PAGEOFF] asr x8, x8, #1 and x8, x8, #0x7fff mov x10, #53256 eor x8, x8, x10 str x8, [x9, _v1@PAGEOFF] mov w0, #6 bl _release str x0, [sp, #8] b LBB11_5 LBB11_5: ldr x0, [sp, #8] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _workfn ; -- Begin function workfn .p2align 2 _workfn: ; @workfn .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #16] ldr x8, [sp, #16] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB12_2 b LBB12_1 LBB12_1: bl _r_wait stur x0, [x29, #-8] b LBB12_9 LBB12_2: adrp x8, _v1@PAGE ldr x10, [x8, _v1@PAGEOFF] mov x9, #7 subs x9, x9, x10 str x9, [x8, _v1@PAGEOFF] ldr x8, [x8, _v1@PAGEOFF] ldr x9, [sp, #16] ; kill: def $w8 killed $w8 killed $x8 str w8, [x9, #8] ldr x8, [sp, #16] str wzr, [x8, #16] str wzr, [sp, #12] b LBB12_3 LBB12_3: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #12] subs w8, w8, #3 cset w8, gt tbnz w8, #0, LBB12_8 b LBB12_4 LBB12_4: ; in Loop: Header=BB12_3 Depth=1 adrp x8, _v2@PAGE ldr x9, [x8, _v2@PAGEOFF] add x9, x9, #1 str x9, [x8, _v2@PAGEOFF] ldr x8, [x8, _v2@PAGEOFF] subs x8, x8, #26 cset w8, le tbnz w8, #0, LBB12_6 b LBB12_5 LBB12_5: ; in Loop: Header=BB12_3 Depth=1 mov x8, #1 adrp x9, _v2@PAGE str x8, [x9, _v2@PAGEOFF] b LBB12_6 LBB12_6: ; in Loop: Header=BB12_3 Depth=1 adrp x8, _v2@PAGE ldr x9, [x8, _v2@PAGEOFF] adrp x8, _alphabet@PAGE add x8, x8, _alphabet@PAGEOFF add x8, x8, x9 ldrb w8, [x8] ldr x9, [sp, #16] add x9, x9, #20 ldrsw x10, [sp, #12] add x9, x9, x10 strb w8, [x9] 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 x0, [sp, #16] bl _qpkt stur x0, [x29, #-8] b LBB12_9 LBB12_9: ldur x0, [x29, #-8] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _handlerfn ; -- Begin function handlerfn .p2align 2 _handlerfn: ; @handlerfn .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] ldur x8, [x29, #-16] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB13_2 b LBB13_1 LBB13_1: ldur x0, [x29, #-16] ldur x8, [x29, #-16] ldr w8, [x8, #12] subs w8, w8, #1001 cset w8, eq and w10, w8, #0x1 adrp x9, _v2@PAGE add x9, x9, _v2@PAGEOFF adrp x8, _v1@PAGE add x8, x8, _v1@PAGEOFF ands w10, w10, #0x1 csel x1, x8, x9, ne bl _append b LBB13_2 LBB13_2: adrp x8, _v1@PAGE ldr x8, [x8, _v1@PAGEOFF] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB13_8 b LBB13_3 LBB13_3: adrp x8, _v1@PAGE ldr x8, [x8, _v1@PAGEOFF] str x8, [sp, #16] ldr x8, [sp, #16] ldr w8, [x8, #16] stur w8, [x29, #-20] ldur w8, [x29, #-20] subs w8, w8, #3 cset w8, le tbnz w8, #0, LBB13_5 b LBB13_4 LBB13_4: adrp x9, _v1@PAGE ldr x8, [x9, _v1@PAGEOFF] ldr x8, [x8] str x8, [x9, _v1@PAGEOFF] ldr x0, [sp, #16] bl _qpkt stur x0, [x29, #-8] b LBB13_9 LBB13_5: adrp x8, _v2@PAGE ldr x8, [x8, _v2@PAGEOFF] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB13_7 b LBB13_6 LBB13_6: adrp x9, _v2@PAGE ldr x8, [x9, _v2@PAGEOFF] str x8, [sp, #8] ldr x8, [x9, _v2@PAGEOFF] ldr x8, [x8] str x8, [x9, _v2@PAGEOFF] ldr x8, [sp, #16] add x8, x8, #20 ldursw x9, [x29, #-20] ldrsb w8, [x8, x9] ldr x9, [sp, #8] str w8, [x9, #16] ldur w8, [x29, #-20] add w8, w8, #1 ldr x9, [sp, #16] str w8, [x9, #16] ldr x0, [sp, #8] bl _qpkt stur x0, [x29, #-8] b LBB13_9 LBB13_7: b LBB13_8 LBB13_8: bl _r_wait stur x0, [x29, #-8] b LBB13_9 LBB13_9: ldur x0, [x29, #-8] ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _devfn ; -- Begin function devfn .p2align 2 _devfn: ; @devfn .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, LBB14_4 b LBB14_1 LBB14_1: adrp x8, _v1@PAGE ldr x8, [x8, _v1@PAGEOFF] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB14_3 b LBB14_2 LBB14_2: bl _r_wait str x0, [sp, #8] b LBB14_5 LBB14_3: adrp x8, _v1@PAGE ldr x9, [x8, _v1@PAGEOFF] str x9, [sp] str xzr, [x8, _v1@PAGEOFF] ldr x0, [sp] bl _qpkt str x0, [sp, #8] b LBB14_5 LBB14_4: ldr x8, [sp] adrp x9, _v1@PAGE str x8, [x9, _v1@PAGEOFF] bl _holdself str x0, [sp, #8] b LBB14_5 LBB14_5: ldr x0, [sp, #8] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #320 .cfi_def_cfa_offset 320 stp x28, x27, [sp, #288] ; 16-byte Folded Spill stp x29, x30, [sp, #304] ; 16-byte Folded Spill add x29, sp, #304 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w27, -24 .cfi_offset w28, -32 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] stur wzr, [x29, #-140] mov w8, #25 stur w8, [x29, #-144] ; kill: def $x8 killed $xzr str xzr, [sp, #152] str wzr, [sp, #148] str wzr, [sp, #144] str wzr, [sp, #140] str wzr, [sp, #140] b LBB15_1 LBB15_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #140] ldur w9, [x29, #-144] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB15_7 b LBB15_2 LBB15_2: ; in Loop: Header=BB15_1 Depth=1 mov w3, #0 str w3, [sp, #40] ; 4-byte Folded Spill str wzr, [sp, #144] str wzr, [sp, #148] ldr x2, [sp, #152] mov w0, #1 mov x1, x3 adrp x4, _idlefn@PAGE add x4, x4, _idlefn@PAGEOFF mov x5, #1 mov x6, #10000 bl _createtask ldr w1, [sp, #40] ; 4-byte Folded Reload ldrsw x9, [sp, #144] mov x8, x9 add w8, w8, #1 str w8, [sp, #144] sub x8, x29, #72 str x8, [sp, #120] ; 8-byte Folded Spill str x0, [x8, x9, lsl #3] mov x0, #0 str x0, [sp, #48] ; 8-byte Folded Spill mov w2, #1001 str w2, [sp, #44] ; 4-byte Folded Spill bl _pkt ldr w1, [sp, #40] ; 4-byte Folded Reload ldr w2, [sp, #44] ; 4-byte Folded Reload mov x8, x0 str x8, [sp, #152] ldrsw x9, [sp, #148] mov x8, x9 add w8, w8, #1 str w8, [sp, #148] sub x8, x29, #136 str x8, [sp, #64] ; 8-byte Folded Spill str x0, [x8, x9, lsl #3] ldr x0, [sp, #152] bl _pkt ldr x8, [sp, #64] ; 8-byte Folded Reload mov x9, x0 str x9, [sp, #152] ldrsw x9, [sp, #148] mov x10, x9 add w10, w10, #1 str w10, [sp, #148] str x0, [x8, x9, lsl #3] ldr x2, [sp, #152] mov w0, #2 str w0, [sp, #92] ; 4-byte Folded Spill mov w1, #1000 str w1, [sp, #60] ; 4-byte Folded Spill mov w3, #3 str w3, [sp, #76] ; 4-byte Folded Spill adrp x4, _workfn@PAGE add x4, x4, _workfn@PAGEOFF mov x5, #3 mov x6, #0 str x6, [sp, #104] ; 8-byte Folded Spill bl _createtask ldr w2, [sp, #60] ; 4-byte Folded Reload ldr x9, [sp, #120] ; 8-byte Folded Reload mov x8, x0 ldr x0, [sp, #48] ; 8-byte Folded Reload ldrsw x10, [sp, #144] mov x11, x10 add w11, w11, #1 str w11, [sp, #144] str x8, [x9, x10, lsl #3] mov w1, #5 str w1, [sp, #88] ; 4-byte Folded Spill bl _pkt ldr w2, [sp, #60] ; 4-byte Folded Reload ldr x8, [sp, #64] ; 8-byte Folded Reload ldr w1, [sp, #88] ; 4-byte Folded Reload mov x9, x0 str x9, [sp, #152] ldrsw x9, [sp, #148] mov x10, x9 add w10, w10, #1 str w10, [sp, #148] str x0, [x8, x9, lsl #3] ldr x0, [sp, #152] bl _pkt ldr w2, [sp, #60] ; 4-byte Folded Reload ldr x8, [sp, #64] ; 8-byte Folded Reload ldr w1, [sp, #88] ; 4-byte Folded Reload mov x9, x0 str x9, [sp, #152] ldrsw x9, [sp, #148] mov x10, x9 add w10, w10, #1 str w10, [sp, #148] str x0, [x8, x9, lsl #3] ldr x0, [sp, #152] bl _pkt ldr x8, [sp, #64] ; 8-byte Folded Reload ldr w3, [sp, #76] ; 4-byte Folded Reload ldr x6, [sp, #104] ; 8-byte Folded Reload mov x9, x0 str x9, [sp, #152] ldrsw x9, [sp, #148] mov x10, x9 add w10, w10, #1 str w10, [sp, #148] str x0, [x8, x9, lsl #3] ldr x2, [sp, #152] mov x0, x3 mov w1, #2000 adrp x4, _handlerfn@PAGE add x4, x4, _handlerfn@PAGEOFF str x4, [sp, #80] ; 8-byte Folded Spill mov x5, x6 bl _createtask ldr w2, [sp, #60] ; 4-byte Folded Reload ldr x9, [sp, #120] ; 8-byte Folded Reload mov x8, x0 ldr x0, [sp, #48] ; 8-byte Folded Reload ldrsw x10, [sp, #144] mov x11, x10 add w11, w11, #1 str w11, [sp, #144] str x8, [x9, x10, lsl #3] mov w1, #6 str w1, [sp, #116] ; 4-byte Folded Spill bl _pkt ldr w2, [sp, #60] ; 4-byte Folded Reload ldr x8, [sp, #64] ; 8-byte Folded Reload ldr w1, [sp, #116] ; 4-byte Folded Reload mov x9, x0 str x9, [sp, #152] ldrsw x9, [sp, #148] mov x10, x9 add w10, w10, #1 str w10, [sp, #148] str x0, [x8, x9, lsl #3] ldr x0, [sp, #152] bl _pkt ldr w2, [sp, #60] ; 4-byte Folded Reload ldr x8, [sp, #64] ; 8-byte Folded Reload ldr w1, [sp, #116] ; 4-byte Folded Reload mov x9, x0 str x9, [sp, #152] ldrsw x9, [sp, #148] mov x10, x9 add w10, w10, #1 str w10, [sp, #148] str x0, [x8, x9, lsl #3] ldr x0, [sp, #152] bl _pkt ldr x8, [sp, #64] ; 8-byte Folded Reload ldr w3, [sp, #76] ; 4-byte Folded Reload ldr x4, [sp, #80] ; 8-byte Folded Reload ldr x6, [sp, #104] ; 8-byte Folded Reload mov x9, x0 str x9, [sp, #152] ldrsw x9, [sp, #148] mov x10, x9 add w10, w10, #1 str w10, [sp, #148] str x0, [x8, x9, lsl #3] ldr x2, [sp, #152] mov w0, #4 mov w1, #3000 mov x5, x6 bl _createtask ldr w3, [sp, #92] ; 4-byte Folded Reload ldr x6, [sp, #104] ; 8-byte Folded Reload ldr x9, [sp, #120] ; 8-byte Folded Reload mov x8, x0 ldr w0, [sp, #88] ; 4-byte Folded Reload ldrsw x10, [sp, #144] mov x11, x10 add w11, w11, #1 str w11, [sp, #144] str x8, [x9, x10, lsl #3] str xzr, [sp, #152] ldr x2, [sp, #152] mov w1, #4000 adrp x4, _devfn@PAGE add x4, x4, _devfn@PAGEOFF str x4, [sp, #96] ; 8-byte Folded Spill mov x5, x6 bl _createtask ldr w3, [sp, #92] ; 4-byte Folded Reload ldr x4, [sp, #96] ; 8-byte Folded Reload ldr x6, [sp, #104] ; 8-byte Folded Reload ldr x9, [sp, #120] ; 8-byte Folded Reload mov x8, x0 ldr w0, [sp, #116] ; 4-byte Folded Reload ldrsw x10, [sp, #144] mov x11, x10 add w11, w11, #1 str w11, [sp, #144] str x8, [x9, x10, lsl #3] ldr x2, [sp, #152] mov w1, #5000 mov x5, x6 bl _createtask ldr x8, [sp, #120] ; 8-byte Folded Reload ldrsw x9, [sp, #144] mov x10, x9 add w10, w10, #1 str w10, [sp, #144] str x0, [x8, x9, lsl #3] adrp x8, _tasklist@PAGE ldr x8, [x8, _tasklist@PAGEOFF] adrp x9, _tcb@GOTPAGE ldr x9, [x9, _tcb@GOTPAGEOFF] str x8, [x9] adrp x8, _holdcount@PAGE str wzr, [x8, _holdcount@PAGEOFF] adrp x8, _qpktcount@PAGE str x8, [sp, #128] ; 8-byte Folded Spill str wzr, [x8, _qpktcount@PAGEOFF] adrp x8, _layout@PAGE str wzr, [x8, _layout@PAGEOFF] bl _schedule ldr x8, [sp, #128] ; 8-byte Folded Reload ldr w8, [x8, _qpktcount@PAGEOFF] mov w9, #23246 subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB15_4 b LBB15_3 LBB15_3: ; in Loop: Header=BB15_1 Depth=1 adrp x8, _holdcount@PAGE ldr w8, [x8, _holdcount@PAGEOFF] mov w9, #9297 subs w8, w8, w9 cset w8, eq tbnz w8, #0, LBB15_5 b LBB15_4 LBB15_4: ; in Loop: Header=BB15_1 Depth=1 adrp x8, _qpktcount@PAGE ldr w8, [x8, _qpktcount@PAGEOFF] ; implicit-def: $x10 mov x10, x8 adrp x8, _holdcount@PAGE ldr w9, [x8, _holdcount@PAGEOFF] ; implicit-def: $x8 mov x8, x9 mov x9, sp mov x11, #23246 str x11, [x9] mov x11, #9297 str x11, [x9, #8] str x10, [x9, #16] str x8, [x9, #24] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf b LBB15_5 LBB15_5: ; in Loop: Header=BB15_1 Depth=1 sub x0, x29, #136 sub x1, x29, #72 bl _reset_state b LBB15_6 LBB15_6: ; in Loop: Header=BB15_1 Depth=1 ldr w8, [sp, #140] add w8, w8, #1 str w8, [sp, #140] b LBB15_1 LBB15_7: ldur x9, [x29, #-24] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB15_9 b LBB15_8 LBB15_8: bl ___stack_chk_fail LBB15_9: mov w0, #0 ldp x29, x30, [sp, #304] ; 16-byte Folded Reload ldp x28, x27, [sp, #288] ; 16-byte Folded Reload add sp, sp, #320 ret .cfi_endproc ; -- End function .section __TEXT,__const .globl _alphabet ; @alphabet _alphabet: .asciz "0ABCDEFGHIJKLMNOPQRSTUVWXYZ" .section __DATA,__data .globl _tasktab ; @tasktab .p2align 3 _tasktab: .quad 10 .space 80 .globl _tasklist ; @tasklist .zerofill __DATA,__common,_tasklist,8,3 .globl _taskid ; @taskid .zerofill __DATA,__common,_taskid,8,3 .globl _v1 ; @v1 .zerofill __DATA,__common,_v1,8,3 .globl _v2 ; @v2 .zerofill __DATA,__common,_v2,8,3 .globl _qpktcount ; @qpktcount .zerofill __DATA,__common,_qpktcount,4,2 .globl _holdcount ; @holdcount .zerofill __DATA,__common,_holdcount,4,2 .globl _layout ; @layout .zerofill __DATA,__common,_layout,4,2 .comm _tcb,8,3 ; @tcb .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "\n" l_.str.1: ; @.str.1 .asciz "%c" l_.str.2: ; @.str.2 .asciz "\nBad task id %d\n" l_.str.3: ; @.str.3 .asciz "Sanity check failed! Expected: %d, %d. Got: %d, %d.\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _reset_state ## -- Begin function reset_state .p2align 4, 0x90 _reset_state: ## @reset_state .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) movl $0, -20(%rbp) movl $0, -20(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 cmpl $8, -20(%rbp) jge LBB0_4 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movq -8(%rbp), %rax movslq -20(%rbp), %rcx movq (%rax,%rcx,8), %rdi callq _free ## %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 $0, -20(%rbp) LBB0_5: ## =>This Inner Loop Header: Depth=1 cmpl $6, -20(%rbp) jge LBB0_8 ## %bb.6: ## in Loop: Header=BB0_5 Depth=1 movq -16(%rbp), %rax movslq -20(%rbp), %rcx movq (%rax,%rcx,8), %rdi callq _free ## %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: movl $10, %eax movq %rax, _tasktab(%rip) movl $0, -20(%rbp) LBB0_9: ## =>This Inner Loop Header: Depth=1 cmpl $10, -20(%rbp) jge LBB0_12 ## %bb.10: ## in Loop: Header=BB0_9 Depth=1 movl -20(%rbp), %eax addl $1, %eax movslq %eax, %rcx leaq _tasktab(%rip), %rax movq $0, (%rax,%rcx,8) ## %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: movq $0, _tasklist(%rip) movq _tcb@GOTPCREL(%rip), %rax movq $0, (%rax) movq $0, _taskid(%rip) movq $0, _v1(%rip) movq $0, _v2(%rip) movl $0, _qpktcount(%rip) movl $0, _holdcount(%rip) movl $0, _layout(%rip) addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _createtask ## -- Begin function createtask .p2align 4, 0x90 _createtask: ## @createtask .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 16(%rbp), %rax movl %edi, -4(%rbp) movl %esi, -8(%rbp) movq %rdx, -16(%rbp) movl %ecx, -20(%rbp) movq %r8, -32(%rbp) movq %r9, -40(%rbp) movl $56, %edi callq _malloc movq %rax, -48(%rbp) movq -48(%rbp), %rdx movslq -4(%rbp), %rcx leaq _tasktab(%rip), %rax movq %rdx, (%rax,%rcx,8) movq _tasklist(%rip), %rcx movq -48(%rbp), %rax movq %rcx, (%rax) movl -4(%rbp), %ecx movq -48(%rbp), %rax movl %ecx, 8(%rax) movl -8(%rbp), %ecx movq -48(%rbp), %rax movl %ecx, 12(%rax) movq -16(%rbp), %rcx movq -48(%rbp), %rax movq %rcx, 16(%rax) movl -20(%rbp), %ecx movq -48(%rbp), %rax movl %ecx, 24(%rax) movq -32(%rbp), %rcx movq -48(%rbp), %rax movq %rcx, 32(%rax) movq -40(%rbp), %rcx movq -48(%rbp), %rax movq %rcx, 40(%rax) movq 16(%rbp), %rcx movq -48(%rbp), %rax movq %rcx, 48(%rax) movq -48(%rbp), %rax movq %rax, _tasklist(%rip) movq -48(%rbp), %rax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _pkt ## -- Begin function pkt .p2align 4, 0x90 _pkt: ## @pkt .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 $24, %edi callq _malloc movq %rax, -32(%rbp) movl $0, -20(%rbp) LBB2_1: ## =>This Inner Loop Header: Depth=1 cmpl $3, -20(%rbp) jg LBB2_4 ## %bb.2: ## in Loop: Header=BB2_1 Depth=1 movq -32(%rbp), %rax movslq -20(%rbp), %rcx movb $0, 20(%rax,%rcx) ## %bb.3: ## in Loop: Header=BB2_1 Depth=1 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB2_1 LBB2_4: movq -8(%rbp), %rcx movq -32(%rbp), %rax movq %rcx, (%rax) movl -12(%rbp), %ecx movq -32(%rbp), %rax movl %ecx, 8(%rax) movl -16(%rbp), %ecx movq -32(%rbp), %rax movl %ecx, 12(%rax) movq -32(%rbp), %rax movl $0, 16(%rax) movq -32(%rbp), %rax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _trace ## -- Begin function trace .p2align 4, 0x90 _trace: ## @trace .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movb %dil, %al movb %al, -1(%rbp) movl _layout(%rip), %eax addl $-1, %eax movl %eax, _layout(%rip) cmpl $0, %eax jg LBB3_2 ## %bb.1: leaq L_.str(%rip), %rdi movb $0, %al callq _printf movl $50, _layout(%rip) LBB3_2: movsbl -1(%rbp), %esi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _schedule ## -- Begin function schedule .p2align 4, 0x90 _schedule: ## @schedule .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 LBB4_1: ## =>This Inner Loop Header: Depth=1 movq _tcb@GOTPCREL(%rip), %rax cmpq $0, (%rax) je LBB4_8 ## %bb.2: ## in Loop: Header=BB4_1 Depth=1 movq $0, -8(%rbp) movq _tcb@GOTPCREL(%rip), %rax movq (%rax), %rax movl 24(%rax), %eax movl %eax, -20(%rbp) ## 4-byte Spill subl $2, %eax jb LBB4_4 jmp LBB4_9 LBB4_9: ## in Loop: Header=BB4_1 Depth=1 movl -20(%rbp), %eax ## 4-byte Reload subl $2, %eax je LBB4_5 jmp LBB4_10 LBB4_10: ## in Loop: Header=BB4_1 Depth=1 movl -20(%rbp), %eax ## 4-byte Reload subl $3, %eax je LBB4_3 jmp LBB4_11 LBB4_11: ## in Loop: Header=BB4_1 Depth=1 movl -20(%rbp), %eax ## 4-byte Reload addl $-4, %eax subl $4, %eax jb LBB4_5 jmp LBB4_6 LBB4_3: ## in Loop: Header=BB4_1 Depth=1 movq _tcb@GOTPCREL(%rip), %rax movq (%rax), %rax movq 16(%rax), %rax movq %rax, -8(%rbp) movq -8(%rbp), %rax movq (%rax), %rcx movq _tcb@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rcx, 16(%rax) movq _tcb@GOTPCREL(%rip), %rax movq (%rax), %rax movq 16(%rax), %rdx movl $1, %ecx xorl %eax, %eax cmpq $0, %rdx cmovel %eax, %ecx movq _tcb@GOTPCREL(%rip), %rax movq (%rax), %rax movl %ecx, 24(%rax) LBB4_4: ## in Loop: Header=BB4_1 Depth=1 movq _tcb@GOTPCREL(%rip), %rax movq (%rax), %rax movslq 8(%rax), %rax movq %rax, _taskid(%rip) movq _tcb@GOTPCREL(%rip), %rax movq (%rax), %rax movq 40(%rax), %rax movq %rax, _v1(%rip) movq _tcb@GOTPCREL(%rip), %rax movq (%rax), %rax movq 48(%rax), %rax movq %rax, _v2(%rip) movq _tcb@GOTPCREL(%rip), %rax movq (%rax), %rax movq 32(%rax), %rax movq -8(%rbp), %rdi callq *%rax movq %rax, -16(%rbp) movq _v1(%rip), %rcx movq _tcb@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rcx, 40(%rax) movq _v2(%rip), %rcx movq _tcb@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rcx, 48(%rax) movq -16(%rbp), %rcx movq _tcb@GOTPCREL(%rip), %rax movq %rcx, (%rax) jmp LBB4_7 LBB4_5: ## in Loop: Header=BB4_1 Depth=1 movq _tcb@GOTPCREL(%rip), %rax movq (%rax), %rax movq (%rax), %rcx movq _tcb@GOTPCREL(%rip), %rax movq %rcx, (%rax) jmp LBB4_7 LBB4_6: jmp LBB4_8 LBB4_7: ## in Loop: Header=BB4_1 Depth=1 jmp LBB4_1 LBB4_8: addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _r_wait ## -- Begin function r_wait .p2align 4, 0x90 _r_wait: ## @r_wait .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq _tcb@GOTPCREL(%rip), %rax movq (%rax), %rax movl 24(%rax), %ecx orl $2, %ecx movl %ecx, 24(%rax) movq _tcb@GOTPCREL(%rip), %rax movq (%rax), %rax popq %rbp retq .cfi_endproc ## -- End function .globl _holdself ## -- Begin function holdself .p2align 4, 0x90 _holdself: ## @holdself .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl _holdcount(%rip), %eax addl $1, %eax movl %eax, _holdcount(%rip) movq _tcb@GOTPCREL(%rip), %rax movq (%rax), %rax movl 24(%rax), %ecx orl $4, %ecx movl %ecx, 24(%rax) movq _tcb@GOTPCREL(%rip), %rax movq (%rax), %rax movq (%rax), %rax popq %rbp retq .cfi_endproc ## -- End function .globl _findtcb ## -- Begin function findtcb .p2align 4, 0x90 _findtcb: ## @findtcb .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) movq $0, -16(%rbp) movl $1, %eax cmpl -4(%rbp), %eax jg LBB7_3 ## %bb.1: movslq -4(%rbp), %rax movq _tasktab(%rip), %rcx cmpq %rcx, %rax jg LBB7_3 ## %bb.2: movslq -4(%rbp), %rcx leaq _tasktab(%rip), %rax movq (%rax,%rcx,8), %rax movq %rax, -16(%rbp) LBB7_3: cmpq $0, -16(%rbp) jne LBB7_5 ## %bb.4: movl -4(%rbp), %esi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf LBB7_5: movq -16(%rbp), %rax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _release ## -- Begin function release .p2align 4, 0x90 _release: ## @release .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 -12(%rbp), %edi callq _findtcb movq %rax, -24(%rbp) cmpq $0, -24(%rbp) jne LBB8_2 ## %bb.1: movq $0, -8(%rbp) jmp LBB8_5 LBB8_2: movq -24(%rbp), %rax movl 24(%rax), %ecx andl $65531, %ecx ## imm = 0xFFFB movl %ecx, 24(%rax) movq -24(%rbp), %rax movl 12(%rax), %eax movq _tcb@GOTPCREL(%rip), %rcx movq (%rcx), %rcx cmpl 12(%rcx), %eax jle LBB8_4 ## %bb.3: movq -24(%rbp), %rax movq %rax, -8(%rbp) jmp LBB8_5 LBB8_4: movq _tcb@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) LBB8_5: movq -8(%rbp), %rax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _qpkt ## -- Begin function qpkt .p2align 4, 0x90 _qpkt: ## @qpkt .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -16(%rbp) movq -16(%rbp), %rax movl 8(%rax), %edi callq _findtcb movq %rax, -24(%rbp) cmpq $0, -24(%rbp) jne LBB9_2 ## %bb.1: movq -24(%rbp), %rax movq %rax, -8(%rbp) jmp LBB9_8 LBB9_2: movl _qpktcount(%rip), %eax addl $1, %eax movl %eax, _qpktcount(%rip) movq -16(%rbp), %rax movq $0, (%rax) movq _taskid(%rip), %rax movl %eax, %ecx movq -16(%rbp), %rax movl %ecx, 8(%rax) movq -24(%rbp), %rax cmpq $0, 16(%rax) jne LBB9_6 ## %bb.3: movq -16(%rbp), %rcx movq -24(%rbp), %rax movq %rcx, 16(%rax) movq -24(%rbp), %rax movl 24(%rax), %ecx orl $1, %ecx movl %ecx, 24(%rax) movq -24(%rbp), %rax movl 12(%rax), %eax movq _tcb@GOTPCREL(%rip), %rcx movq (%rcx), %rcx cmpl 12(%rcx), %eax jle LBB9_5 ## %bb.4: movq -24(%rbp), %rax movq %rax, -8(%rbp) jmp LBB9_8 LBB9_5: jmp LBB9_7 LBB9_6: movq -16(%rbp), %rdi movq -24(%rbp), %rsi addq $16, %rsi callq _append LBB9_7: movq _tcb@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) LBB9_8: movq -8(%rbp), %rax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _append ## -- Begin function append .p2align 4, 0x90 _append: ## @append .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 movq $0, (%rax) LBB10_1: ## =>This Inner Loop Header: Depth=1 movq -16(%rbp), %rax cmpq $0, (%rax) je LBB10_3 ## %bb.2: ## in Loop: Header=BB10_1 Depth=1 movq -16(%rbp), %rax movq (%rax), %rax movq %rax, -16(%rbp) jmp LBB10_1 LBB10_3: movq -8(%rbp), %rcx movq -16(%rbp), %rax movq %rcx, (%rax) popq %rbp retq .cfi_endproc ## -- End function .globl _idlefn ## -- Begin function idlefn .p2align 4, 0x90 _idlefn: ## @idlefn .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -16(%rbp) movq _v2(%rip), %rax addq $-1, %rax movq %rax, _v2(%rip) cmpq $0, %rax jne LBB11_2 ## %bb.1: callq _holdself movq %rax, -8(%rbp) jmp LBB11_5 LBB11_2: movq _v1(%rip), %rax andq $1, %rax cmpq $0, %rax jne LBB11_4 ## %bb.3: movq _v1(%rip), %rax sarq $1, %rax andq $32767, %rax ## imm = 0x7FFF movq %rax, _v1(%rip) movl $5, %edi callq _release movq %rax, -8(%rbp) jmp LBB11_5 LBB11_4: movq _v1(%rip), %rax sarq $1, %rax andq $32767, %rax ## imm = 0x7FFF xorq $53256, %rax ## imm = 0xD008 movq %rax, _v1(%rip) movl $6, %edi callq _release movq %rax, -8(%rbp) LBB11_5: movq -8(%rbp), %rax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _workfn ## -- Begin function workfn .p2align 4, 0x90 _workfn: ## @workfn .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) cmpq $0, -16(%rbp) jne LBB12_2 ## %bb.1: callq _r_wait movq %rax, -8(%rbp) jmp LBB12_9 LBB12_2: movl $7, %eax subq _v1(%rip), %rax movq %rax, _v1(%rip) movq _v1(%rip), %rax movl %eax, %ecx movq -16(%rbp), %rax movl %ecx, 8(%rax) movq -16(%rbp), %rax movl $0, 16(%rax) movl $0, -20(%rbp) LBB12_3: ## =>This Inner Loop Header: Depth=1 cmpl $3, -20(%rbp) jg LBB12_8 ## %bb.4: ## in Loop: Header=BB12_3 Depth=1 movq _v2(%rip), %rax addq $1, %rax movq %rax, _v2(%rip) cmpq $26, _v2(%rip) jle LBB12_6 ## %bb.5: ## in Loop: Header=BB12_3 Depth=1 movq $1, _v2(%rip) LBB12_6: ## in Loop: Header=BB12_3 Depth=1 movq _v2(%rip), %rcx leaq _alphabet(%rip), %rax movb (%rax,%rcx), %dl movq -16(%rbp), %rax movslq -20(%rbp), %rcx movb %dl, 20(%rax,%rcx) ## %bb.7: ## in Loop: Header=BB12_3 Depth=1 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB12_3 LBB12_8: movq -16(%rbp), %rdi callq _qpkt movq %rax, -8(%rbp) LBB12_9: movq -8(%rbp), %rax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _handlerfn ## -- Begin function handlerfn .p2align 4, 0x90 _handlerfn: ## @handlerfn .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) cmpq $0, -16(%rbp) je LBB13_2 ## %bb.1: movq -16(%rbp), %rdi movq -16(%rbp), %rax movl 12(%rax), %ecx leaq _v2(%rip), %rsi leaq _v1(%rip), %rax cmpl $1001, %ecx ## imm = 0x3E9 cmoveq %rax, %rsi callq _append LBB13_2: cmpq $0, _v1(%rip) je LBB13_8 ## %bb.3: movq _v1(%rip), %rax movq %rax, -32(%rbp) movq -32(%rbp), %rax movl 16(%rax), %eax movl %eax, -20(%rbp) cmpl $3, -20(%rbp) jle LBB13_5 ## %bb.4: movq _v1(%rip), %rax movq (%rax), %rax movq %rax, _v1(%rip) movq -32(%rbp), %rdi callq _qpkt movq %rax, -8(%rbp) jmp LBB13_9 LBB13_5: cmpq $0, _v2(%rip) je LBB13_7 ## %bb.6: movq _v2(%rip), %rax movq %rax, -40(%rbp) movq _v2(%rip), %rax movq (%rax), %rax movq %rax, _v2(%rip) movq -32(%rbp), %rax movslq -20(%rbp), %rcx movsbl 20(%rax,%rcx), %ecx movq -40(%rbp), %rax movl %ecx, 16(%rax) movl -20(%rbp), %ecx addl $1, %ecx movq -32(%rbp), %rax movl %ecx, 16(%rax) movq -40(%rbp), %rdi callq _qpkt movq %rax, -8(%rbp) jmp LBB13_9 LBB13_7: jmp LBB13_8 LBB13_8: callq _r_wait movq %rax, -8(%rbp) LBB13_9: movq -8(%rbp), %rax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _devfn ## -- Begin function devfn .p2align 4, 0x90 _devfn: ## @devfn .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 LBB14_4 ## %bb.1: cmpq $0, _v1(%rip) jne LBB14_3 ## %bb.2: callq _r_wait movq %rax, -8(%rbp) jmp LBB14_5 LBB14_3: movq _v1(%rip), %rax movq %rax, -16(%rbp) movq $0, _v1(%rip) movq -16(%rbp), %rdi callq _qpkt movq %rax, -8(%rbp) jmp LBB14_5 LBB14_4: movq -16(%rbp), %rax movq %rax, _v1(%rip) callq _holdself movq %rax, -8(%rbp) LBB14_5: movq -8(%rbp), %rax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $176, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -132(%rbp) movl $25, -136(%rbp) movq $0, -144(%rbp) movl $0, -148(%rbp) movl $0, -152(%rbp) movl $0, -156(%rbp) movl $0, -156(%rbp) LBB15_1: ## =>This Inner Loop Header: Depth=1 movl -156(%rbp), %eax cmpl -136(%rbp), %eax jge LBB15_7 ## %bb.2: ## in Loop: Header=BB15_1 Depth=1 movl $0, -152(%rbp) movl $0, -148(%rbp) movq -144(%rbp), %rdx movl $1, %edi xorl %ecx, %ecx leaq _idlefn(%rip), %r8 movl $1, %r9d movl %ecx, %esi movq $10000, (%rsp) ## imm = 0x2710 callq _createtask movq %rax, %rcx movl -152(%rbp), %eax movl %eax, %edx addl $1, %edx movl %edx, -152(%rbp) cltq movq %rcx, -64(%rbp,%rax,8) xorl %eax, %eax movl %eax, %edi xorl %esi, %esi movl $1001, %edx ## imm = 0x3E9 callq _pkt movq %rax, %rcx movq %rcx, -144(%rbp) movl -148(%rbp), %eax movl %eax, %edx addl $1, %edx movl %edx, -148(%rbp) cltq movq %rcx, -128(%rbp,%rax,8) movq -144(%rbp), %rdi xorl %esi, %esi movl $1001, %edx ## imm = 0x3E9 callq _pkt movq %rax, %rcx movq %rcx, -144(%rbp) movl -148(%rbp), %eax movl %eax, %edx addl $1, %edx movl %edx, -148(%rbp) cltq movq %rcx, -128(%rbp,%rax,8) movq -144(%rbp), %rdx movl $2, %edi movl $1000, %esi ## imm = 0x3E8 movl $3, %ecx leaq _workfn(%rip), %r8 movl $3, %r9d xorl %eax, %eax ## kill: def $rax killed $eax movq $0, (%rsp) callq _createtask movq %rax, %rcx movl -152(%rbp), %eax movl %eax, %edx addl $1, %edx movl %edx, -152(%rbp) cltq movq %rcx, -64(%rbp,%rax,8) xorl %eax, %eax movl %eax, %edi movl $5, %esi movl $1000, %edx ## imm = 0x3E8 callq _pkt movq %rax, %rcx movq %rcx, -144(%rbp) movl -148(%rbp), %eax movl %eax, %edx addl $1, %edx movl %edx, -148(%rbp) cltq movq %rcx, -128(%rbp,%rax,8) movq -144(%rbp), %rdi movl $5, %esi movl $1000, %edx ## imm = 0x3E8 callq _pkt movq %rax, %rcx movq %rcx, -144(%rbp) movl -148(%rbp), %eax movl %eax, %edx addl $1, %edx movl %edx, -148(%rbp) cltq movq %rcx, -128(%rbp,%rax,8) movq -144(%rbp), %rdi movl $5, %esi movl $1000, %edx ## imm = 0x3E8 callq _pkt movq %rax, %rcx movq %rcx, -144(%rbp) movl -148(%rbp), %eax movl %eax, %edx addl $1, %edx movl %edx, -148(%rbp) cltq movq %rcx, -128(%rbp,%rax,8) movq -144(%rbp), %rdx movl $3, %ecx movl $2000, %esi ## imm = 0x7D0 leaq _handlerfn(%rip), %r8 xorl %eax, %eax movl %eax, %r9d movl %ecx, %edi movq $0, (%rsp) callq _createtask movq %rax, %rcx movl -152(%rbp), %eax movl %eax, %edx addl $1, %edx movl %edx, -152(%rbp) cltq movq %rcx, -64(%rbp,%rax,8) xorl %eax, %eax movl %eax, %edi movl $6, %esi movl $1000, %edx ## imm = 0x3E8 callq _pkt movq %rax, %rcx movq %rcx, -144(%rbp) movl -148(%rbp), %eax movl %eax, %edx addl $1, %edx movl %edx, -148(%rbp) cltq movq %rcx, -128(%rbp,%rax,8) movq -144(%rbp), %rdi movl $6, %esi movl $1000, %edx ## imm = 0x3E8 callq _pkt movq %rax, %rcx movq %rcx, -144(%rbp) movl -148(%rbp), %eax movl %eax, %edx addl $1, %edx movl %edx, -148(%rbp) cltq movq %rcx, -128(%rbp,%rax,8) movq -144(%rbp), %rdi movl $6, %esi movl $1000, %edx ## imm = 0x3E8 callq _pkt movq %rax, %rcx movq %rcx, -144(%rbp) movl -148(%rbp), %eax movl %eax, %edx addl $1, %edx movl %edx, -148(%rbp) cltq movq %rcx, -128(%rbp,%rax,8) movq -144(%rbp), %rdx movl $4, %edi movl $3000, %esi ## imm = 0xBB8 movl $3, %ecx leaq _handlerfn(%rip), %r8 xorl %eax, %eax movl %eax, %r9d movq $0, (%rsp) callq _createtask movq %rax, %rcx movl -152(%rbp), %eax movl %eax, %edx addl $1, %edx movl %edx, -152(%rbp) cltq movq %rcx, -64(%rbp,%rax,8) movq $0, -144(%rbp) movq -144(%rbp), %rdx movl $5, %edi movl $4000, %esi ## imm = 0xFA0 movl $2, %ecx leaq _devfn(%rip), %r8 xorl %eax, %eax movl %eax, %r9d movq $0, (%rsp) callq _createtask movq %rax, %rcx movl -152(%rbp), %eax movl %eax, %edx addl $1, %edx movl %edx, -152(%rbp) cltq movq %rcx, -64(%rbp,%rax,8) movq -144(%rbp), %rdx movl $6, %edi movl $5000, %esi ## imm = 0x1388 movl $2, %ecx leaq _devfn(%rip), %r8 xorl %eax, %eax movl %eax, %r9d movq $0, (%rsp) callq _createtask movq %rax, %rcx movl -152(%rbp), %eax movl %eax, %edx addl $1, %edx movl %edx, -152(%rbp) cltq movq %rcx, -64(%rbp,%rax,8) movq _tasklist(%rip), %rcx movq _tcb@GOTPCREL(%rip), %rax movq %rcx, (%rax) movl $0, _holdcount(%rip) movl $0, _qpktcount(%rip) movl $0, _layout(%rip) callq _schedule cmpl $23246, _qpktcount(%rip) ## imm = 0x5ACE jne LBB15_4 ## %bb.3: ## in Loop: Header=BB15_1 Depth=1 cmpl $9297, _holdcount(%rip) ## imm = 0x2451 je LBB15_5 LBB15_4: ## in Loop: Header=BB15_1 Depth=1 movl _qpktcount(%rip), %ecx movl _holdcount(%rip), %r8d leaq L_.str.3(%rip), %rdi movl $23246, %esi ## imm = 0x5ACE movl $9297, %edx ## imm = 0x2451 movb $0, %al callq _printf LBB15_5: ## in Loop: Header=BB15_1 Depth=1 leaq -128(%rbp), %rdi leaq -64(%rbp), %rsi callq _reset_state ## %bb.6: ## in Loop: Header=BB15_1 Depth=1 movl -156(%rbp), %eax addl $1, %eax movl %eax, -156(%rbp) jmp LBB15_1 LBB15_7: movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB15_9 ## %bb.8: xorl %eax, %eax addq $176, %rsp popq %rbp retq LBB15_9: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__const .globl _alphabet ## @alphabet .p2align 4 _alphabet: .asciz "0ABCDEFGHIJKLMNOPQRSTUVWXYZ" .section __DATA,__data .globl _tasktab ## @tasktab .p2align 4 _tasktab: .quad 10 .space 80 .globl _tasklist ## @tasklist .zerofill __DATA,__common,_tasklist,8,3 .globl _taskid ## @taskid .zerofill __DATA,__common,_taskid,8,3 .globl _v1 ## @v1 .zerofill __DATA,__common,_v1,8,3 .globl _v2 ## @v2 .zerofill __DATA,__common,_v2,8,3 .globl _qpktcount ## @qpktcount .zerofill __DATA,__common,_qpktcount,4,2 .globl _holdcount ## @holdcount .zerofill __DATA,__common,_holdcount,4,2 .globl _layout ## @layout .zerofill __DATA,__common,_layout,4,2 .comm _tcb,8,3 ## @tcb .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "\n" L_.str.1: ## @.str.1 .asciz "%c" L_.str.2: ## @.str.2 .asciz "\nBad task id %d\n" L_.str.3: ## @.str.3 .asciz "Sanity check failed! Expected: %d, %d. Got: %d, %d.\n" .subsections_via_symbols
the_stack_data/79510.c