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 _OsBackTrace ; -- Begin function OsBackTrace .p2align 2 _OsBackTrace: ; @OsBackTrace .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 _OsBackTrace ## -- Begin function OsBackTrace .p2align 4, 0x90 _OsBackTrace: ## @OsBackTrace .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/103265321.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _dupstr ; -- Begin function dupstr .p2align 2 _dupstr: ; @dupstr .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] ; kill: def $x8 killed $xzr str xzr, [sp] ldr x8, [sp, #8] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB0_4 b LBB0_1 LBB0_1: ldr x0, [sp, #8] bl _strlen add x0, x0, #1 bl _malloc str x0, [sp] ldr x8, [sp] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: ldr x0, [sp] ldr x1, [sp, #8] mov x2, #-1 bl ___strcpy_chk b LBB0_3 LBB0_3: b LBB0_4 LBB0_4: ldr x0, [sp] 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 _dupstr ## -- Begin function dupstr .p2align 4, 0x90 _dupstr: ## @dupstr .cfi_startproc ## %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 $0, -16(%rbp) cmpq $0, -8(%rbp) je LBB0_4 ## %bb.1: movq -8(%rbp), %rdi callq _strlen movq %rax, %rdi addq $1, %rdi callq _malloc movq %rax, -16(%rbp) cmpq $0, -16(%rbp) je LBB0_3 ## %bb.2: movq -16(%rbp), %rdi movq -8(%rbp), %rsi movq $-1, %rdx callq ___strcpy_chk LBB0_3: jmp LBB0_4 LBB0_4: movq -16(%rbp), %rax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/154831540.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, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] str x8, [sp, #24] ; 8-byte Folded Spill stur wzr, [x29, #-4] stur w0, [x29, #-8] stur x1, [x29, #-16] ldur w8, [x29, #-8] subs w8, w8, #2 cset w8, ge tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: ldr x8, [sp, #24] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF bl _fprintf b LBB0_25 LBB0_2: ldur x8, [x29, #-16] ldr x9, [x8, #8] adrp x8, _filename@PAGE str x9, [x8, _filename@PAGEOFF] ldr x0, [x8, _filename@PAGEOFF] adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF bl _fopen stur x0, [x29, #-24] ldur x8, [x29, #-24] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: ldr x8, [sp, #24] ; 8-byte Folded Reload ldr x0, [x8] adrp x8, _filename@PAGE ldr x8, [x8, _filename@PAGEOFF] mov x9, sp str x8, [x9] adrp x1, l_.str.2@PAGE add x1, x1, l_.str.2@PAGEOFF bl _fprintf b LBB0_24 LBB0_4: ldur x0, [x29, #-24] mov x1, #0 mov w2, #2 bl _fseek ldur x0, [x29, #-24] bl _ftell stur x0, [x29, #-32] ldur x0, [x29, #-24] bl _rewind ldur x8, [x29, #-32] subs x8, x8, #0 cset w8, gt tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: ldr x8, [sp, #24] ; 8-byte Folded Reload ldr x0, [x8] adrp x8, _filename@PAGE ldr x8, [x8, _filename@PAGEOFF] mov x9, sp str x8, [x9] adrp x1, l_.str.3@PAGE add x1, x1, l_.str.3@PAGEOFF bl _fprintf ldur x0, [x29, #-24] bl _fclose b LBB0_23 LBB0_6: ldur w8, [x29, #-8] subs w8, w8, #2 cset w8, le tbnz w8, #0, LBB0_10 b LBB0_7 LBB0_7: ldur x8, [x29, #-16] ldr x0, [x8, #16] adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF bl _fopen adrp x8, _read_data_file@PAGE str x0, [x8, _read_data_file@PAGEOFF] ldur w8, [x29, #-8] subs w8, w8, #3 cset w8, le tbnz w8, #0, LBB0_9 b LBB0_8 LBB0_8: ldur x8, [x29, #-16] ldr x0, [x8, #24] mov x9, sp adrp x8, _srate@PAGE add x8, x8, _srate@PAGEOFF str x8, [x9] adrp x1, l_.str.4@PAGE add x1, x1, l_.str.4@PAGEOFF bl _sscanf b LBB0_9 LBB0_9: b LBB0_10 LBB0_10: bl _start_clean ldur x8, [x29, #-32] mov x1, #1 str x1, [sp, #16] ; 8-byte Folded Spill add x0, x8, #1 bl _calloc ldr x1, [sp, #16] ; 8-byte Folded Reload stur x0, [x29, #-48] ldur x0, [x29, #-48] ldur x2, [x29, #-32] ldur x3, [x29, #-24] bl _fread stur x0, [x29, #-40] ldur x0, [x29, #-24] bl _fclose ldur x8, [x29, #-48] ldrb w8, [x8] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_12 b LBB0_11 LBB0_11: ldur x8, [x29, #-48] ldrb w8, [x8, #1] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_17 b LBB0_12 LBB0_12: ldr x8, [sp, #24] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.5@PAGE add x1, x1, l_.str.5@PAGEOFF bl _fprintf ldur x8, [x29, #-40] mov x9, #4 udiv x8, x8, x9 adrp x9, _total_commands@PAGE ; kill: def $w8 killed $w8 killed $x8 str w8, [x9, _total_commands@PAGEOFF] adrp x8, _current_command@PAGE str wzr, [x8, _current_command@PAGEOFF] stur wzr, [x29, #-52] b LBB0_13 LBB0_13: ; =>This Inner Loop Header: Depth=1 ldursw x8, [x29, #-52] ldur x9, [x29, #-40] subs x8, x8, x9 cset w8, hs tbnz w8, #0, LBB0_16 b LBB0_14 LBB0_14: ; in Loop: Header=BB0_13 Depth=1 ldur x8, [x29, #-48] ldur w9, [x29, #-52] add w9, w9, #0 ldrb w8, [x8, w9, sxtw] stur w8, [x29, #-60] ldur x8, [x29, #-48] ldur w9, [x29, #-52] add w9, w9, #1 ldrb w8, [x8, w9, sxtw] str w8, [sp, #64] ldur x8, [x29, #-48] ldur w9, [x29, #-52] add w9, w9, #2 ldrb w8, [x8, w9, sxtw] str w8, [sp, #60] ldur x8, [x29, #-48] ldur w9, [x29, #-52] add w9, w9, #3 ldrb w8, [x8, w9, sxtw] str w8, [sp, #56] ldr w8, [sp, #56] ldr w9, [sp, #60] add w8, w8, w9, lsl #8 ldr w9, [sp, #64] add w8, w8, w9, lsl #16 ldur w9, [x29, #-60] add w8, w8, w9, lsl #24 stur w8, [x29, #-56] ldur w0, [x29, #-56] bl _handle_command b LBB0_15 LBB0_15: ; in Loop: Header=BB0_13 Depth=1 ldur w8, [x29, #-52] add w8, w8, #4 stur w8, [x29, #-52] b LBB0_13 LBB0_16: b LBB0_22 LBB0_17: ldr x8, [sp, #24] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.6@PAGE add x1, x1, l_.str.6@PAGEOFF bl _fprintf ldur x8, [x29, #-40] mov x9, #5 udiv x8, x8, x9 adrp x9, _total_commands@PAGE ; kill: def $w8 killed $w8 killed $x8 str w8, [x9, _total_commands@PAGEOFF] adrp x8, _current_command@PAGE str wzr, [x8, _current_command@PAGEOFF] stur wzr, [x29, #-52] b LBB0_18 LBB0_18: ; =>This Inner Loop Header: Depth=1 ldursw x8, [x29, #-52] ldur x9, [x29, #-40] subs x8, x8, x9 cset w8, hs tbnz w8, #0, LBB0_21 b LBB0_19 LBB0_19: ; in Loop: Header=BB0_18 Depth=1 ldur x8, [x29, #-48] ldur w9, [x29, #-52] add w9, w9, #0 ldrb w8, [x8, w9, sxtw] str w8, [sp, #48] ldur x8, [x29, #-48] ldur w9, [x29, #-52] add w9, w9, #1 ldrb w8, [x8, w9, sxtw] str w8, [sp, #44] ldur x8, [x29, #-48] ldur w9, [x29, #-52] add w9, w9, #2 ldrb w8, [x8, w9, sxtw] str w8, [sp, #40] ldur x8, [x29, #-48] ldur w9, [x29, #-52] add w9, w9, #3 ldrb w8, [x8, w9, sxtw] str w8, [sp, #36] ldur x8, [x29, #-48] ldur w9, [x29, #-52] add w9, w9, #4 ldrb w8, [x8, w9, sxtw] str w8, [sp, #32] ldr w8, [sp, #32] asr w9, w8, #4 ldr w8, [sp, #36] lsl w8, w8, #4 add w8, w8, w9, uxtb ldr w9, [sp, #40] add w8, w8, w9, lsl #12 ldr w9, [sp, #44] add w8, w8, w9, lsl #20 ldrb w9, [sp, #48] add w8, w8, w9, lsl #28 str w8, [sp, #52] ldr w0, [sp, #52] bl _handle_command b LBB0_20 LBB0_20: ; in Loop: Header=BB0_18 Depth=1 ldur w8, [x29, #-52] add w8, w8, #5 stur w8, [x29, #-52] b LBB0_18 LBB0_21: b LBB0_22 LBB0_22: b LBB0_23 LBB0_23: bl _all_done b LBB0_24 LBB0_24: b LBB0_25 LBB0_25: mov w0, #0 ldp x29, x30, [sp, #128] ; 16-byte Folded Reload add sp, sp, #144 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function start_clean _start_clean: ; @start_clean .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] b LBB1_1 LBB1_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-4] subs w8, w8, #64 cset w8, ge tbnz w8, #0, LBB1_4 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 ldursw x9, [x29, #-4] adrp x8, _gen_outs@PAGE add x8, x8, _gen_outs@PAGEOFF movi d0, #0000000000000000 str d0, [sp] ; 8-byte Folded Spill str d0, [x8, x9, lsl #3] ldursw x9, [x29, #-4] adrp x8, _gen_ins@PAGE add x8, x8, _gen_ins@PAGEOFF str d0, [x8, x9, lsl #3] ldursw x9, [x29, #-4] adrp x8, _mod_outs@PAGE add x8, x8, _mod_outs@PAGEOFF str d0, [x8, x9, lsl #3] ldursw x9, [x29, #-4] adrp x8, _mod_ins@PAGE add x8, x8, _mod_ins@PAGEOFF str d0, [x8, x9, lsl #3] ldursw x9, [x29, #-4] adrp x8, _prev_mod_ins@PAGE add x8, x8, _prev_mod_ins@PAGEOFF str d0, [x8, x9, lsl #3] ldursw x9, [x29, #-4] adrp x8, _prev_gen_ins@PAGE add x8, x8, _prev_gen_ins@PAGEOFF str d0, [x8, x9, lsl #3] ldursw x9, [x29, #-4] adrp x8, _peak_mod_ins@PAGE add x8, x8, _peak_mod_ins@PAGEOFF str d0, [x8, x9, lsl #3] ldursw x9, [x29, #-4] adrp x8, _peak_gen_ins@PAGE add x8, x8, _peak_gen_ins@PAGEOFF str d0, [x8, x9, lsl #3] b LBB1_3 LBB1_3: ; in Loop: Header=BB1_1 Depth=1 ldur w8, [x29, #-4] add w8, w8, #1 stur w8, [x29, #-4] b LBB1_1 LBB1_4: stur wzr, [x29, #-4] b LBB1_5 LBB1_5: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-4] subs w8, w8, #256 cset w8, ge tbnz w8, #0, LBB1_8 b LBB1_6 LBB1_6: ; in Loop: Header=BB1_5 Depth=1 mov x0, #1 mov x1, #104 bl _calloc ldursw x9, [x29, #-4] adrp x8, _gens@PAGE add x8, x8, _gens@PAGEOFF str x0, [x8, x9, lsl #3] b LBB1_7 LBB1_7: ; in Loop: Header=BB1_5 Depth=1 ldur w8, [x29, #-4] add w8, w8, #1 stur w8, [x29, #-4] b LBB1_5 LBB1_8: stur wzr, [x29, #-4] b LBB1_9 LBB1_9: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-4] subs w8, w8, #128 cset w8, ge tbnz w8, #0, LBB1_12 b LBB1_10 LBB1_10: ; in Loop: Header=BB1_9 Depth=1 mov x0, #1 mov x1, #104 bl _calloc ldursw x8, [x29, #-4] adrp x9, _mods@PAGE add x9, x9, _mods@PAGEOFF str x0, [x9, x8, lsl #3] ldursw x8, [x29, #-4] ldr x10, [x9, x8, lsl #3] mov w8, #1 str w8, [x10, #40] ldursw x10, [x29, #-4] ldr x9, [x9, x10, lsl #3] str w8, [x9, #44] b LBB1_11 LBB1_11: ; in Loop: Header=BB1_9 Depth=1 ldur w8, [x29, #-4] add w8, w8, #1 stur w8, [x29, #-4] b LBB1_9 LBB1_12: stur wzr, [x29, #-4] b LBB1_13 LBB1_13: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-4] subs w8, w8, #32 cset w8, ge tbnz w8, #0, LBB1_16 b LBB1_14 LBB1_14: ; in Loop: Header=BB1_13 Depth=1 mov x0, #1 mov x1, #40 bl _calloc ldursw x9, [x29, #-4] adrp x8, _dlys@PAGE add x8, x8, _dlys@PAGEOFF str x0, [x8, x9, lsl #3] b LBB1_15 LBB1_15: ; in Loop: Header=BB1_13 Depth=1 ldur w8, [x29, #-4] add w8, w8, #1 stur w8, [x29, #-4] b LBB1_13 LBB1_16: stur wzr, [x29, #-4] b LBB1_17 LBB1_17: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-4] subs w8, w8, #16, lsl #12 ; =65536 cset w8, ge tbnz w8, #0, LBB1_20 b LBB1_18 LBB1_18: ; in Loop: Header=BB1_17 Depth=1 ldursw x9, [x29, #-4] adrp x8, _delay_memory@PAGE add x8, x8, _delay_memory@PAGEOFF movi d0, #0000000000000000 str d0, [x8, x9, lsl #3] b LBB1_19 LBB1_19: ; in Loop: Header=BB1_17 Depth=1 ldur w8, [x29, #-4] add w8, w8, #1 stur w8, [x29, #-4] b LBB1_17 LBB1_20: stur wzr, [x29, #-4] b LBB1_21 LBB1_21: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-4] subs w8, w8, #4 cset w8, ge tbnz w8, #0, LBB1_24 b LBB1_22 LBB1_22: ; in Loop: Header=BB1_21 Depth=1 ldursw x9, [x29, #-4] adrp x8, _dac_out@PAGE add x8, x8, _dac_out@PAGEOFF movi d0, #0000000000000000 str s0, [x8, x9, lsl #2] ldursw x9, [x29, #-4] adrp x8, _dac_out_peak@PAGE add x8, x8, _dac_out_peak@PAGEOFF str s0, [x8, x9, lsl #2] b LBB1_23 LBB1_23: ; in Loop: Header=BB1_21 Depth=1 ldur w8, [x29, #-4] add w8, w8, #1 stur w8, [x29, #-4] b LBB1_21 LBB1_24: adrp x8, _tick@PAGE str wzr, [x8, _tick@PAGEOFF] adrp x8, _pass@PAGE str wzr, [x8, _pass@PAGEOFF] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function handle_command _handle_command: ; @handle_command .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur w0, [x29, #-4] adrp x8, _start_describing@PAGE ldr w8, [x8, _start_describing@PAGEOFF] adrp x9, _samples@PAGE ldr w9, [x9, _samples@PAGEOFF] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB2_3 b LBB2_1 LBB2_1: adrp x8, _stop_describing@PAGE ldr w8, [x8, _stop_describing@PAGEOFF] adrp x9, _samples@PAGE ldr w9, [x9, _samples@PAGEOFF] subs w8, w8, w9 cset w8, lt tbnz w8, #0, LBB2_3 b LBB2_2 LBB2_2: mov w8, #1 adrp x9, _describe_commands@PAGE strb w8, [x9, _describe_commands@PAGEOFF] b LBB2_4 LBB2_3: adrp x8, _describe_commands@PAGE strb wzr, [x8, _describe_commands@PAGEOFF] b LBB2_4 LBB2_4: ldur w8, [x29, #-4] asr w8, w8, #8 and w8, w8, #0xf str w8, [sp, #8] ldr w8, [sp, #8] subs w8, w8, #0 ; kill: def $x8 killed $w8 str x8, [sp] ; 8-byte Folded Spill subs x8, x8, #15 cset w8, hi tbnz w8, #0, LBB2_28 ; %bb.5: ldr x11, [sp] ; 8-byte Folded Reload adrp x10, lJTI2_0@PAGE add x10, x10, lJTI2_0@PAGEOFF Ltmp0: adr x8, Ltmp0 ldrsw x9, [x10, x11, lsl #2] add x8, x8, x9 br x8 LBB2_6: ldur w8, [x29, #-4] asr w8, w8, #7 and w8, w8, #0x1 subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB2_8 b LBB2_7 LBB2_7: ldur w0, [x29, #-4] bl _dly_command b LBB2_9 LBB2_8: ldur w0, [x29, #-4] bl _misc_command b LBB2_9 LBB2_9: b LBB2_29 LBB2_10: ldur w8, [x29, #-4] asr w8, w8, #7 and w8, w8, #0x1 subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB2_12 b LBB2_11 LBB2_11: ldur w0, [x29, #-4] bl _ticks_command b LBB2_13 LBB2_12: ldur w0, [x29, #-4] bl _timer_command b LBB2_13 LBB2_13: b LBB2_29 LBB2_14: ldur w0, [x29, #-4] bl _gq_command b LBB2_29 LBB2_15: ldur w0, [x29, #-4] bl _gj_command b LBB2_29 LBB2_16: ldur w0, [x29, #-4] bl _gp_command b LBB2_29 LBB2_17: ldur w0, [x29, #-4] bl _gn_command b LBB2_29 LBB2_18: ldur w0, [x29, #-4] bl _gl_command b LBB2_29 LBB2_19: ldur w0, [x29, #-4] bl _gk_command b LBB2_29 LBB2_20: ldur w0, [x29, #-4] bl _gmode_command b LBB2_29 LBB2_21: ldur w0, [x29, #-4] bl _go_command b LBB2_29 LBB2_22: ldur w0, [x29, #-4] bl _mm_command b LBB2_29 LBB2_23: ldur w0, [x29, #-4] bl _ml_command b LBB2_29 LBB2_24: ldur w8, [x29, #-4] asr w8, w8, #7 ands w8, w8, #0x1 cset w8, ne tbnz w8, #0, LBB2_26 b LBB2_25 LBB2_25: ldur w0, [x29, #-4] bl _mmode_command b LBB2_27 LBB2_26: ldur w0, [x29, #-4] bl _mrm_command b LBB2_27 LBB2_27: b LBB2_29 LBB2_28: adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] ldr x0, [x8] adrp x1, l_.str.7@PAGE add x1, x1, l_.str.7@PAGEOFF bl _fprintf b LBB2_29 LBB2_29: adrp x9, _current_command@PAGE ldr w8, [x9, _current_command@PAGEOFF] add w8, w8, #1 str w8, [x9, _current_command@PAGEOFF] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc .p2align 2 lJTI2_0: .long LBB2_6-Ltmp0 .long LBB2_10-Ltmp0 .long LBB2_14-Ltmp0 .long LBB2_14-Ltmp0 .long LBB2_15-Ltmp0 .long LBB2_15-Ltmp0 .long LBB2_16-Ltmp0 .long LBB2_17-Ltmp0 .long LBB2_18-Ltmp0 .long LBB2_19-Ltmp0 .long LBB2_20-Ltmp0 .long LBB2_21-Ltmp0 .long LBB2_22-Ltmp0 .long LBB2_22-Ltmp0 .long LBB2_23-Ltmp0 .long LBB2_24-Ltmp0 ; -- End function .p2align 2 ; -- Begin function all_done _all_done: ; @all_done .cfi_startproc ; %bb.0: sub sp, sp, #128 .cfi_def_cfa_offset 128 stp x29, x30, [sp, #112] ; 16-byte Folded Spill add x29, sp, #112 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, _dac_out_peak@PAGE add x8, x8, _dac_out_peak@PAGEOFF stur x8, [x29, #-16] ; 8-byte Folded Spill adrp x8, _snd_file@PAGE ldr x8, [x8, _snd_file@PAGEOFF] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB3_2 b LBB3_1 LBB3_1: adrp x8, _snd_file@PAGE stur x8, [x29, #-48] ; 8-byte Folded Spill ldr x0, [x8, _snd_file@PAGEOFF] bl _fclose adrp x8, _output_filename@PAGE stur x8, [x29, #-40] ; 8-byte Folded Spill ldr x0, [x8, _output_filename@PAGEOFF] adrp x1, l_.str.183@PAGE add x1, x1, l_.str.183@PAGEOFF bl _fopen ldur x8, [x29, #-48] ; 8-byte Folded Reload str x0, [x8, _snd_file@PAGEOFF] ldr x0, [x8, _snd_file@PAGEOFF] mov x1, #4 str x1, [sp, #40] ; 8-byte Folded Spill mov w2, #0 str w2, [sp, #36] ; 4-byte Folded Spill bl _fseek ldr x1, [sp, #40] ; 8-byte Folded Reload ldur x8, [x29, #-48] ; 8-byte Folded Reload adrp x9, _samples@PAGE stur x9, [x29, #-32] ; 8-byte Folded Spill ldr w9, [x9, _samples@PAGEOFF] lsl w9, w9, #2 lsl w9, w9, #2 add w9, w9, #88 sub x0, x29, #4 str x0, [sp, #56] ; 8-byte Folded Spill stur w9, [x29, #-4] ldr x3, [x8, _snd_file@PAGEOFF] mov x2, #1 str x2, [sp, #48] ; 8-byte Folded Spill bl _fwrite ldr w2, [sp, #36] ; 4-byte Folded Reload ldur x8, [x29, #-48] ; 8-byte Folded Reload ldr x0, [x8, _snd_file@PAGEOFF] mov x1, #76 bl _fseek ldr x1, [sp, #40] ; 8-byte Folded Reload ldr x2, [sp, #48] ; 8-byte Folded Reload ldur x8, [x29, #-48] ; 8-byte Folded Reload ldur x9, [x29, #-32] ; 8-byte Folded Reload ldr x0, [sp, #56] ; 8-byte Folded Reload ldr w9, [x9, _samples@PAGEOFF] lsl w9, w9, #2 lsl w9, w9, #2 stur w9, [x29, #-4] ldr x3, [x8, _snd_file@PAGEOFF] bl _fwrite ldur x8, [x29, #-48] ; 8-byte Folded Reload ldr x0, [x8, _snd_file@PAGEOFF] bl _fclose ldur x8, [x29, #-40] ; 8-byte Folded Reload ldur x12, [x29, #-32] ; 8-byte Folded Reload adrp x9, ___stderrp@GOTPAGE ldr x9, [x9, ___stderrp@GOTPAGEOFF] stur x9, [x29, #-24] ; 8-byte Folded Spill ldr x0, [x9] ldr x11, [x8, _output_filename@PAGEOFF] adrp x8, _srate@PAGE ldr w9, [x8, _srate@PAGEOFF] ; implicit-def: $x10 mov x10, x9 ldr w13, [x12, _samples@PAGEOFF] ; implicit-def: $x9 mov x9, x13 ldr s1, [x12, _samples@PAGEOFF] ; implicit-def: $d0 fmov s0, s1 sshll.2d v0, v0, #0 ; kill: def $d0 killed $d0 killed $q0 scvtf d0, d0 ldr s2, [x8, _srate@PAGEOFF] ; implicit-def: $d1 fmov s1, s2 sshll.2d v1, v1, #0 ; kill: def $d1 killed $d1 killed $q1 scvtf d1, d1 fdiv d0, d0, d1 mov x8, sp str x11, [x8] str x10, [x8, #8] str x9, [x8, #16] str d0, [x8, #24] adrp x1, l_.str.184@PAGE add x1, x1, l_.str.184@PAGEOFF bl _fprintf ldur x9, [x29, #-24] ; 8-byte Folded Reload ldur x8, [x29, #-16] ; 8-byte Folded Reload ldr x0, [x9] adrp x9, _dac_out_peak@PAGE ldr s0, [x9, _dac_out_peak@PAGEOFF] fcvt d3, s0 ldr s0, [x8, #4] fcvt d2, s0 ldr s0, [x8, #8] fcvt d1, s0 ldr s0, [x8, #12] fcvt d0, s0 mov x8, sp str d3, [x8] str d2, [x8, #8] str d1, [x8, #16] str d0, [x8, #24] adrp x1, l_.str.185@PAGE add x1, x1, l_.str.185@PAGEOFF bl _fprintf b LBB3_2 LBB3_2: mov w0, #0 bl _exit .cfi_endproc ; -- End function .p2align 2 ; -- Begin function dly_command _dly_command: ; @dly_command .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, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] str x8, [sp, #40] ; 8-byte Folded Spill adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] stur w0, [x29, #-52] adrp x8, l___const.dly_command.UU_name@PAGE add x8, x8, l___const.dly_command.UU_name@PAGEOFF ldr q0, [x8] stur q0, [x29, #-48] ldr q0, [x8, #16] stur q0, [x29, #-32] ldur w8, [x29, #-52] and w8, w8, #0x1f stur w8, [x29, #-56] ldur w8, [x29, #-52] asr w8, w8, #5 and w8, w8, #0x3 stur w8, [x29, #-60] ldur w8, [x29, #-60] subs w8, w8, #3 cset w8, ne tbnz w8, #0, LBB4_2 b LBB4_1 LBB4_1: ldr x8, [sp, #40] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.12@PAGE add x1, x1, l_.str.12@PAGEOFF bl _fprintf b LBB4_16 LBB4_2: ldur w8, [x29, #-52] asr w8, w8, #12 and w8, w8, #0xf str w8, [sp, #64] ldur w8, [x29, #-52] asr w8, w8, #16 and w8, w8, #0xffff str w8, [sp, #60] ldursw x9, [x29, #-56] adrp x8, _dlys@PAGE add x8, x8, _dlys@PAGEOFF ldr x8, [x8, x9, lsl #3] str x8, [sp, #48] ldur w8, [x29, #-60] str w8, [sp, #36] ; 4-byte Folded Spill subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB4_5 b LBB4_3 LBB4_3: ldr w8, [sp, #36] ; 4-byte Folded Reload subs w8, w8, #1 cset w8, eq tbnz w8, #0, LBB4_6 b LBB4_4 LBB4_4: ldr w8, [sp, #36] ; 4-byte Folded Reload subs w8, w8, #2 cset w8, eq tbnz w8, #0, LBB4_7 b LBB4_8 LBB4_5: ldr w8, [sp, #60] ldr x9, [sp, #48] str w8, [x9, #12] ldr x8, [sp, #48] str wzr, [x8, #8] b LBB4_8 LBB4_6: ldr w8, [sp, #60] ldr x9, [sp, #48] str w8, [x9, #8] b LBB4_8 LBB4_7: ldr w8, [sp, #60] ldr x9, [sp, #48] str w8, [x9, #4] ldr w8, [sp, #64] ldr x9, [sp, #48] str w8, [x9] b LBB4_8 LBB4_8: adrp x8, _describe_commands@PAGE ldrb w8, [x8, _describe_commands@PAGEOFF] tbz w8, #0, LBB4_16 b LBB4_9 LBB4_9: ldr x8, [sp, #40] ; 8-byte Folded Reload ldr x0, [x8] ldur w8, [x29, #-56] ; implicit-def: $x10 mov x10, x8 ldursw x9, [x29, #-60] sub x8, x29, #48 ldr x8, [x8, x9, lsl #3] mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x1, l_.str.13@PAGE add x1, x1, l_.str.13@PAGEOFF bl _fprintf ldur w8, [x29, #-60] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB4_11 b LBB4_10 LBB4_10: ldr x8, [sp, #40] ; 8-byte Folded Reload ldr x0, [x8] ldr x8, [sp, #48] ldr w9, [x8, #12] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x1, l_.str.14@PAGE add x1, x1, l_.str.14@PAGEOFF bl _fprintf b LBB4_15 LBB4_11: ldur w8, [x29, #-60] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB4_13 b LBB4_12 LBB4_12: ldr x8, [sp, #40] ; 8-byte Folded Reload ldr x0, [x8] ldr x8, [sp, #48] ldr w9, [x8, #8] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x1, l_.str.15@PAGE add x1, x1, l_.str.15@PAGEOFF bl _fprintf b LBB4_14 LBB4_13: ldr x8, [sp, #40] ; 8-byte Folded Reload ldr x8, [x8] str x8, [sp, #24] ; 8-byte Folded Spill ldr x8, [sp, #48] ldr w9, [x8, #4] ; implicit-def: $x8 mov x8, x9 str x8, [sp, #16] ; 8-byte Folded Spill ldr x8, [sp, #48] ldr w0, [x8] bl _P_name ldr x10, [sp, #16] ; 8-byte Folded Reload mov x8, x0 ldr x0, [sp, #24] ; 8-byte Folded Reload mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x1, l_.str.16@PAGE add x1, x1, l_.str.16@PAGEOFF bl _fprintf b LBB4_14 LBB4_14: b LBB4_15 LBB4_15: ldr x8, [sp, #40] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.17@PAGE add x1, x1, l_.str.17@PAGEOFF bl _fprintf b LBB4_16 LBB4_16: 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_18 b LBB4_17 LBB4_17: bl ___stack_chk_fail LBB4_18: ldp x29, x30, [sp, #128] ; 16-byte Folded Reload add sp, sp, #144 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function misc_command _misc_command: ; @misc_command .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, #-52] adrp x8, l___const.misc_command.RR_name@PAGE add x8, x8, l___const.misc_command.RR_name@PAGEOFF ldr q0, [x8] stur q0, [x29, #-48] ldr q0, [x8, #16] stur q0, [x29, #-32] ldur w8, [x29, #-52] asr w8, w8, #12 and w8, w8, #0xfffff stur w8, [x29, #-56] ldur w8, [x29, #-52] asr w8, w8, #5 and w8, w8, #0x3 stur w8, [x29, #-60] ldur w8, [x29, #-52] asr w8, w8, #2 and w8, w8, #0x1 str w8, [sp, #64] ldur w8, [x29, #-52] asr w8, w8, #1 and w8, w8, #0x1 str w8, [sp, #60] ldur w8, [x29, #-52] asr w8, w8, #0 and w8, w8, #0x1 str w8, [sp, #56] adrp x8, _describe_commands@PAGE ldrb w8, [x8, _describe_commands@PAGEOFF] tbz w8, #0, LBB5_2 b LBB5_1 LBB5_1: adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] ldr x0, [x8] ldur w8, [x29, #-56] ; implicit-def: $x13 mov x13, x8 ldursw x9, [x29, #-60] sub x8, x29, #48 ldr x12, [x8, x9, lsl #3] ldr w8, [sp, #64] subs w8, w8, #1 cset w8, eq and w10, w8, #0x1 adrp x9, l_.str.30@PAGE add x9, x9, l_.str.30@PAGEOFF adrp x8, l_.str.29@PAGE add x8, x8, l_.str.29@PAGEOFF ands w10, w10, #0x1 csel x11, x8, x9, ne ldr w9, [sp, #60] subs w9, w9, #1 cset w9, eq and w10, w9, #0x1 adrp x9, l_.str.31@PAGE add x9, x9, l_.str.31@PAGEOFF ands w10, w10, #0x1 csel x10, x8, x9, ne ldr w9, [sp, #56] subs w9, w9, #1 cset w9, eq and w14, w9, #0x1 adrp x9, l_.str.32@PAGE add x9, x9, l_.str.32@PAGEOFF ands w14, w14, #0x1 csel x8, x8, x9, ne mov x9, sp str x13, [x9] str x12, [x9, #8] str x11, [x9, #16] str x10, [x9, #24] str x8, [x9, #32] adrp x1, l_.str.28@PAGE add x1, x1, l_.str.28@PAGEOFF bl _fprintf b LBB5_2 LBB5_2: ldur w8, [x29, #-60] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB5_4 b LBB5_3 LBB5_3: ldur w8, [x29, #-56] adrp x9, _DX@PAGE str w8, [x9, _DX@PAGEOFF] b LBB5_4 LBB5_4: ldr w8, [sp, #64] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB5_13 b LBB5_5 LBB5_5: str wzr, [sp, #52] b LBB5_6 LBB5_6: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #52] subs w8, w8, #256 cset w8, ge tbnz w8, #0, LBB5_12 b LBB5_7 LBB5_7: ; in Loop: Header=BB5_6 Depth=1 ldrsw x9, [sp, #52] adrp x8, _gens@PAGE add x8, x8, _gens@PAGEOFF ldr x8, [x8, x9, lsl #3] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB5_10 b LBB5_8 LBB5_8: ; in Loop: Header=BB5_6 Depth=1 ldrsw x9, [sp, #52] adrp x8, _gens@PAGE add x8, x8, _gens@PAGEOFF ldr x8, [x8, x9, lsl #3] ldr w8, [x8, #44] asr w8, w8, #6 and w8, w8, #0xf subs w8, w8, #9 cset w8, ne tbnz w8, #0, LBB5_10 b LBB5_9 LBB5_9: ; in Loop: Header=BB5_6 Depth=1 ldr w0, [sp, #52] mov w1, #15 bl _set_osc_run b LBB5_10 LBB5_10: ; in Loop: Header=BB5_6 Depth=1 b LBB5_11 LBB5_11: ; in Loop: Header=BB5_6 Depth=1 ldr w8, [sp, #52] add w8, w8, #1 str w8, [sp, #52] b LBB5_6 LBB5_12: b LBB5_13 LBB5_13: ldr w8, [sp, #60] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB5_22 b LBB5_14 LBB5_14: str wzr, [sp, #48] b LBB5_15 LBB5_15: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #48] subs w8, w8, #256 cset w8, ge tbnz w8, #0, LBB5_21 b LBB5_16 LBB5_16: ; in Loop: Header=BB5_15 Depth=1 ldrsw x9, [sp, #48] adrp x8, _gens@PAGE add x8, x8, _gens@PAGEOFF ldr x8, [x8, x9, lsl #3] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB5_19 b LBB5_17 LBB5_17: ; in Loop: Header=BB5_15 Depth=1 ldrsw x9, [sp, #48] adrp x8, _gens@PAGE add x8, x8, _gens@PAGEOFF ldr x8, [x8, x9, lsl #3] ldr w8, [x8, #44] asr w8, w8, #6 and w8, w8, #0xf subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB5_19 b LBB5_18 LBB5_18: ; in Loop: Header=BB5_15 Depth=1 ldr w0, [sp, #48] mov w1, #15 bl _set_osc_run b LBB5_19 LBB5_19: ; in Loop: Header=BB5_15 Depth=1 b LBB5_20 LBB5_20: ; in Loop: Header=BB5_15 Depth=1 ldr w8, [sp, #48] add w8, w8, #1 str w8, [sp, #48] b LBB5_15 LBB5_21: b LBB5_22 LBB5_22: ldr w8, [sp, #56] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB5_25 b LBB5_23 LBB5_23: adrp x8, _total_commands@PAGE ldr w8, [x8, _total_commands@PAGEOFF] adrp x9, _current_command@PAGE ldr w9, [x9, _current_command@PAGEOFF] subs w8, w8, w9 subs w8, w8, #1000 cset w8, le tbnz w8, #0, LBB5_25 b LBB5_24 LBB5_24: adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] ldr x0, [x8] ldur w9, [x29, #-52] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x1, l_.str.33@PAGE add x1, x1, l_.str.33@PAGEOFF bl _fprintf b LBB5_25 LBB5_25: ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB5_27 b LBB5_26 LBB5_26: bl ___stack_chk_fail LBB5_27: 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 ticks_command lCPI6_0: .quad 0x41cdcd6500000000 ; double 1.0E+9 lCPI6_1: .quad 0x4068600000000000 ; double 195 .section __TEXT,__text,regular,pure_instructions .p2align 2 _ticks_command: ; @ticks_command .cfi_startproc ; %bb.0: sub sp, sp, #224 .cfi_def_cfa_offset 224 stp x29, x30, [sp, #208] ; 16-byte Folded Spill add x29, sp, #208 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] str x8, [sp, #40] ; 8-byte Folded Spill adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] str w0, [sp, #76] adrp x8, l___const.ticks_command.Q_name@PAGE add x8, x8, l___const.ticks_command.Q_name@PAGEOFF ldr q0, [x8] stur q0, [x29, #-32] ldr w8, [sp, #76] asr w8, w8, #4 and w8, w8, #0x1 str w8, [sp, #64] ldr w8, [sp, #76] asr w8, w8, #3 and w8, w8, #0x1 str w8, [sp, #72] ldr w8, [sp, #76] asr w8, w8, #12 and w8, w8, #0x3ff str w8, [sp, #68] ldr w8, [sp, #64] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB6_4 b LBB6_1 LBB6_1: adrp x8, _bit_31_warned@PAGE ldrb w8, [x8, _bit_31_warned@PAGEOFF] tbnz w8, #0, LBB6_3 b LBB6_2 LBB6_2: ldr x8, [sp, #40] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.37@PAGE add x1, x1, l_.str.37@PAGEOFF bl _fprintf mov w8, #1 adrp x9, _bit_31_warned@PAGE strb w8, [x9, _bit_31_warned@PAGEOFF] b LBB6_3 LBB6_3: b LBB6_35 LBB6_4: ldr w8, [sp, #68] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB6_14 b LBB6_5 LBB6_5: ldr w8, [sp, #72] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB6_7 b LBB6_6 LBB6_6: ldr w8, [sp, #68] add w8, w8, #1 adrp x9, _processing_ticks@PAGE str w8, [x9, _processing_ticks@PAGEOFF] b LBB6_13 LBB6_7: adrp x8, _srate@PAGE ldr w8, [x8, _srate@PAGEOFF] subs w8, w8, #1 cset w8, gt tbnz w8, #0, LBB6_11 b LBB6_8 LBB6_8: ldr w8, [sp, #68] add w9, w8, #2 adrp x8, _highest_tick_per_pass@PAGE str w9, [x8, _highest_tick_per_pass@PAGEOFF] ldr w8, [x8, _highest_tick_per_pass@PAGEOFF] subs w8, w8, #256 cset w8, le tbnz w8, #0, LBB6_10 b LBB6_9 LBB6_9: mov w8, #256 adrp x9, _highest_tick_per_pass@PAGE str w8, [x9, _highest_tick_per_pass@PAGEOFF] b LBB6_10 LBB6_10: adrp x8, _highest_tick_per_pass@PAGE ldr w8, [x8, _highest_tick_per_pass@PAGEOFF] mov w9, #195 mul w8, w8, w9 scvtf d1, w8 adrp x8, lCPI6_0@PAGE ldr d0, [x8, lCPI6_0@PAGEOFF] fdiv d0, d0, d1 fcvtzs w8, d0 adrp x9, _srate@PAGE str w8, [x9, _srate@PAGEOFF] b LBB6_12 LBB6_11: adrp x8, _srate@PAGE ldr s1, [x8, _srate@PAGEOFF] ; implicit-def: $d0 fmov s0, s1 sshll.2d v0, v0, #0 ; kill: def $d0 killed $d0 killed $q0 scvtf d1, d0 adrp x8, lCPI6_0@PAGE ldr d0, [x8, lCPI6_0@PAGEOFF] fdiv d0, d0, d1 adrp x8, lCPI6_1@PAGE ldr d1, [x8, lCPI6_1@PAGEOFF] fdiv d0, d0, d1 fcvtzs w8, d0 adrp x9, _highest_tick_per_pass@PAGE str w8, [x9, _highest_tick_per_pass@PAGEOFF] b LBB6_12 LBB6_12: b LBB6_13 LBB6_13: b LBB6_14 LBB6_14: adrp x8, _describe_commands@PAGE ldrb w8, [x8, _describe_commands@PAGEOFF] tbz w8, #0, LBB6_18 b LBB6_15 LBB6_15: ldr x8, [sp, #40] ; 8-byte Folded Reload ldr x0, [x8] ldrsw x9, [sp, #72] sub x8, x29, #32 ldr x10, [x8, x9, lsl #3] ldr w9, [sp, #68] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x1, l_.str.38@PAGE add x1, x1, l_.str.38@PAGEOFF bl _fprintf ldr w8, [sp, #72] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB6_17 b LBB6_16 LBB6_16: ldr x8, [sp, #40] ; 8-byte Folded Reload ldr x0, [x8] adrp x8, _srate@PAGE ldr w9, [x8, _srate@PAGEOFF] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x1, l_.str.39@PAGE add x1, x1, l_.str.39@PAGEOFF bl _fprintf b LBB6_17 LBB6_17: ldr x8, [sp, #40] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.17@PAGE add x1, x1, l_.str.17@PAGEOFF bl _fprintf b LBB6_18 LBB6_18: ldr w8, [sp, #68] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB6_35 b LBB6_19 LBB6_19: adrp x8, _srate@PAGE ldr w8, [x8, _srate@PAGEOFF] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB6_35 b LBB6_20 LBB6_20: adrp x8, _snd_file@PAGE ldr x8, [x8, _snd_file@PAGEOFF] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB6_24 b LBB6_21 LBB6_21: adrp x8, _samples@PAGE ldr w8, [x8, _samples@PAGEOFF] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB6_24 b LBB6_22 LBB6_22: ldr w8, [sp, #72] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB6_24 b LBB6_23 LBB6_23: adrp x8, _snd_file@PAGE str x8, [sp, #32] ; 8-byte Folded Spill ldr x0, [x8, _snd_file@PAGEOFF] bl _fclose ldr x8, [sp, #32] ; 8-byte Folded Reload ; kill: def $x9 killed $xzr str xzr, [x8, _snd_file@PAGEOFF] b LBB6_24 LBB6_24: adrp x8, _snd_file@PAGE ldr x8, [x8, _snd_file@PAGEOFF] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB6_34 b LBB6_25 LBB6_25: add x0, sp, #80 adrp x1, l___const.ticks_command.header_info@PAGE add x1, x1, l___const.ticks_command.header_info@PAGEOFF mov x2, #96 bl _memcpy adrp x8, _srate@PAGE ldr w8, [x8, _srate@PAGEOFF] str w8, [sp, #140] adrp x8, _filename@PAGE str x8, [sp, #24] ; 8-byte Folded Spill ldr x0, [x8, _filename@PAGEOFF] bl _strlen mov x8, x0 str w8, [sp, #48] ldr w8, [sp, #48] add w9, w8, #1 ; implicit-def: $x8 mov x8, x9 sxtw x0, w8 bl _malloc ldr x8, [sp, #24] ; 8-byte Folded Reload adrp x9, _output_filename@PAGE str x0, [x9, _output_filename@PAGEOFF] ldr x0, [x9, _output_filename@PAGEOFF] ldr x1, [x8, _filename@PAGEOFF] mov x2, #-1 bl ___strcpy_chk ldr w8, [sp, #48] subs w8, w8, #1 str w8, [sp, #52] b LBB6_26 LBB6_26: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #52] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB6_31 b LBB6_27 LBB6_27: ; in Loop: Header=BB6_26 Depth=1 adrp x8, _filename@PAGE ldr x8, [x8, _filename@PAGEOFF] ldrsw x9, [sp, #52] ldrsb w8, [x8, x9] subs w8, w8, #46 cset w8, ne tbnz w8, #0, LBB6_29 b LBB6_28 LBB6_28: adrp x8, _output_filename@PAGE ldr x8, [x8, _output_filename@PAGEOFF] ldrsw x9, [sp, #52] add x8, x8, x9 str x8, [sp, #56] b LBB6_31 LBB6_29: ; in Loop: Header=BB6_26 Depth=1 b LBB6_30 LBB6_30: ; in Loop: Header=BB6_26 Depth=1 ldr w8, [sp, #52] subs w8, w8, #1 str w8, [sp, #52] b LBB6_26 LBB6_31: ldr x8, [sp, #56] add x0, x8, #1 adrp x1, l_.str.40@PAGE add x1, x1, l_.str.40@PAGEOFF mov x2, #-1 bl ___strcpy_chk adrp x8, _output_filename@PAGE ldr x0, [x8, _output_filename@PAGEOFF] adrp x1, l_.str.41@PAGE add x1, x1, l_.str.41@PAGEOFF bl _fopen adrp x8, _snd_file@PAGE str x0, [x8, _snd_file@PAGEOFF] ldr x8, [x8, _snd_file@PAGEOFF] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB6_33 b LBB6_32 LBB6_32: ldr x8, [sp, #40] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.42@PAGE add x1, x1, l_.str.42@PAGEOFF bl _fprintf mov w0, #0 bl _exit LBB6_33: adrp x8, _snd_file@PAGE ldr x3, [x8, _snd_file@PAGEOFF] add x0, sp, #80 mov x1, #4 mov x2, #24 bl _fwrite b LBB6_34 LBB6_34: b LBB6_35 LBB6_35: 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, LBB6_37 b LBB6_36 LBB6_36: bl ___stack_chk_fail LBB6_37: ldp x29, x30, [sp, #208] ; 16-byte Folded Reload add sp, sp, #224 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function timer_command _timer_command: ; @timer_command .cfi_startproc ; %bb.0: sub sp, sp, #128 .cfi_def_cfa_offset 128 stp x29, x30, [sp, #112] ; 16-byte Folded Spill add x29, sp, #112 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] stur w0, [x29, #-52] adrp x8, l___const.timer_command.TT_name@PAGE add x8, x8, l___const.timer_command.TT_name@PAGEOFF ldr q0, [x8] stur q0, [x29, #-48] ldr q0, [x8, #16] stur q0, [x29, #-32] ldur w8, [x29, #-52] asr w8, w8, #3 and w8, w8, #0x3 str w8, [sp, #52] ldur w8, [x29, #-52] asr w8, w8, #12 and w8, w8, #0xfffff str w8, [sp, #56] adrp x8, _describe_commands@PAGE ldrb w8, [x8, _describe_commands@PAGEOFF] tbz w8, #0, LBB7_2 b LBB7_1 LBB7_1: adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] ldr x0, [x8] ldrsw x9, [sp, #52] sub x8, x29, #48 ldr x11, [x8, x9, lsl #3] ldr w8, [sp, #56] ; implicit-def: $x10 mov x10, x8 adrp x8, _samples@PAGE ldr w12, [x8, _samples@PAGEOFF] ; implicit-def: $x9 mov x9, x12 ldr s1, [x8, _samples@PAGEOFF] ; implicit-def: $d0 fmov s0, s1 sshll.2d v0, v0, #0 ; kill: def $d0 killed $d0 killed $q0 scvtf d0, d0 adrp x8, _srate@PAGE ldr s2, [x8, _srate@PAGEOFF] ; implicit-def: $d1 fmov s1, s2 sshll.2d v1, v1, #0 ; kill: def $d1 killed $d1 killed $q1 scvtf d1, d1 fdiv d0, d0, d1 mov x8, sp str x11, [x8] str x10, [x8, #8] str x9, [x8, #16] str d0, [x8, #24] adrp x1, l_.str.46@PAGE add x1, x1, l_.str.46@PAGEOFF bl _fprintf b LBB7_2 LBB7_2: ldr w8, [sp, #52] subs w8, w8, #0 ; kill: def $x8 killed $w8 str x8, [sp, #40] ; 8-byte Folded Spill subs x8, x8, #3 cset w8, hi tbnz w8, #0, LBB7_8 ; %bb.3: ldr x11, [sp, #40] ; 8-byte Folded Reload adrp x10, lJTI7_0@PAGE add x10, x10, lJTI7_0@PAGEOFF Ltmp1: adr x8, Ltmp1 ldrsw x9, [x10, x11, lsl #2] add x8, x8, x9 br x8 LBB7_4: b LBB7_8 LBB7_5: ldr w8, [sp, #56] adrp x9, _pass@PAGE str w8, [x9, _pass@PAGEOFF] b LBB7_8 LBB7_6: ldr w0, [sp, #56] bl _linger b LBB7_8 LBB7_7: adrp x8, _pass@PAGE str wzr, [x8, _pass@PAGEOFF] ldr w0, [sp, #56] bl _linger b LBB7_8 LBB7_8: 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, LBB7_10 b LBB7_9 LBB7_9: bl ___stack_chk_fail LBB7_10: ldp x29, x30, [sp, #112] ; 16-byte Folded Reload add sp, sp, #128 ret .cfi_endproc .p2align 2 lJTI7_0: .long LBB7_4-Ltmp1 .long LBB7_5-Ltmp1 .long LBB7_6-Ltmp1 .long LBB7_7-Ltmp1 ; -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ; -- Begin function gq_command lCPI8_0: .quad 0x4170000000000000 ; double 16777216 .section __TEXT,__text,regular,pure_instructions .p2align 2 _gq_command: ; @gq_command .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, #-36] stur wzr, [x29, #-52] adrp x8, l___const.gq_command.E_name@PAGE add x8, x8, l___const.gq_command.E_name@PAGEOFF ldr q0, [x8] stur q0, [x29, #-32] ldur w8, [x29, #-36] asr w8, w8, #0 and w8, w8, #0xff stur w8, [x29, #-48] ldur w8, [x29, #-36] asr w8, w8, #8 and w8, w8, #0x1 stur w8, [x29, #-44] ldur w8, [x29, #-36] asr w8, w8, #12 and w8, w8, #0xfffff stur w8, [x29, #-40] ldursw x9, [x29, #-48] adrp x8, _gens@PAGE add x8, x8, _gens@PAGEOFF ldr x8, [x8, x9, lsl #3] str x8, [sp, #56] ldr x8, [sp, #56] ldr w8, [x8, #24] stur w8, [x29, #-56] ldr x8, [sp, #56] ldr d0, [x8, #88] str d0, [sp, #64] ldur w8, [x29, #-44] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB8_2 b LBB8_1 LBB8_1: ldur w8, [x29, #-40] ldr x9, [sp, #56] str w8, [x9, #24] b LBB8_3 LBB8_2: ldur w10, [x29, #-40] adrp x8, _DX@PAGE ldr w9, [x8, _DX@PAGEOFF] asr w9, w9, #16 bfi w9, w10, #4, #28 ldr x10, [sp, #56] str w9, [x10, #24] ldr w9, [x8, _DX@PAGEOFF] stur w9, [x29, #-52] str wzr, [x8, _DX@PAGEOFF] b LBB8_3 LBB8_3: ldr x8, [sp, #56] ldr s1, [x8, #24] ; implicit-def: $d0 fmov s0, s1 sshll.2d v0, v0, #0 ; kill: def $d0 killed $d0 killed $q0 scvtf d0, d0 adrp x8, lCPI8_0@PAGE ldr d1, [x8, lCPI8_0@PAGEOFF] fdiv d0, d0, d1 ldr x8, [sp, #56] str d0, [x8, #88] adrp x8, _describe_commands@PAGE ldrb w8, [x8, _describe_commands@PAGEOFF] tbz w8, #0, LBB8_8 b LBB8_4 LBB8_4: ldur w8, [x29, #-44] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB8_6 b LBB8_5 LBB8_5: adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] ldr x0, [x8] ldur w8, [x29, #-48] ; implicit-def: $x11 mov x11, x8 ldursw x9, [x29, #-44] sub x8, x29, #32 ldr x10, [x8, x9, lsl #3] ldr x8, [sp, #56] ldr w8, [x8, #24] ; implicit-def: $x9 mov x9, x8 ldr x8, [sp, #56] ldr d0, [x8, #88] mov x8, sp str x11, [x8] str x10, [x8, #8] str x9, [x8, #16] str d0, [x8, #24] adrp x1, l_.str.123@PAGE add x1, x1, l_.str.123@PAGEOFF bl _fprintf b LBB8_7 LBB8_6: adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] ldr x0, [x8] ldur w8, [x29, #-48] ; implicit-def: $x13 mov x13, x8 ldursw x9, [x29, #-44] sub x8, x29, #32 ldr x12, [x8, x9, lsl #3] ldur w8, [x29, #-40] ; implicit-def: $x11 mov x11, x8 ldr x8, [sp, #56] ldr w8, [x8, #24] ; implicit-def: $x10 mov x10, x8 ldr x8, [sp, #56] ldr d0, [x8, #88] ldur w9, [x29, #-52] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x13, [x9] str x12, [x9, #8] str x11, [x9, #16] str x10, [x9, #24] str d0, [x9, #32] str x8, [x9, #40] adrp x1, l_.str.124@PAGE add x1, x1, l_.str.124@PAGEOFF bl _fprintf b LBB8_7 LBB8_7: b LBB8_8 LBB8_8: 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, LBB8_10 b LBB8_9 LBB8_9: bl ___stack_chk_fail LBB8_10: 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 gj_command lCPI9_0: .quad 0x41a0000000000000 ; double 134217728 .section __TEXT,__text,regular,pure_instructions .p2align 2 _gj_command: ; @gj_command .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, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] str x8, [sp, #80] ; 8-byte Folded Spill adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] stur w0, [x29, #-36] stur wzr, [x29, #-52] adrp x8, l___const.gj_command.E_name@PAGE add x8, x8, l___const.gj_command.E_name@PAGEOFF ldr q0, [x8] stur q0, [x29, #-32] ldur w8, [x29, #-36] asr w8, w8, #0 and w8, w8, #0xff stur w8, [x29, #-48] ldur w8, [x29, #-36] asr w8, w8, #8 and w8, w8, #0x1 stur w8, [x29, #-44] ldur w8, [x29, #-36] asr w8, w8, #12 and w8, w8, #0xfffff stur w8, [x29, #-40] ldursw x9, [x29, #-48] adrp x8, _gens@PAGE add x8, x8, _gens@PAGEOFF ldr x8, [x8, x9, lsl #3] stur x8, [x29, #-72] ldur x8, [x29, #-72] ldr w8, [x8, #4] stur w8, [x29, #-56] ldur x8, [x29, #-72] ldr s1, [x8, #4] ; implicit-def: $d0 fmov s0, s1 sshll.2d v0, v0, #0 ; kill: def $d0 killed $d0 killed $q0 scvtf d0, d0 stur d0, [x29, #-64] ldur w8, [x29, #-44] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB9_5 b LBB9_1 LBB9_1: ldur w8, [x29, #-40] subs w8, w8, #128, lsl #12 ; =524288 cset w8, ge tbnz w8, #0, LBB9_3 b LBB9_2 LBB9_2: ldur w8, [x29, #-40] str w8, [sp, #76] ; 4-byte Folded Spill b LBB9_4 LBB9_3: ldur w8, [x29, #-40] and w8, w8, #0x7ffff subs w8, w8, #128, lsl #12 ; =524288 str w8, [sp, #76] ; 4-byte Folded Spill b LBB9_4 LBB9_4: ldr w8, [sp, #76] ; 4-byte Folded Reload ldur x9, [x29, #-72] str w8, [x9, #4] b LBB9_9 LBB9_5: ldur w9, [x29, #-40] adrp x8, _DX@PAGE ldr w8, [x8, _DX@PAGEOFF] asr w8, w8, #12 add w8, w8, w9, lsl #8 mov w9, #134217728 subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB9_7 b LBB9_6 LBB9_6: ldur w9, [x29, #-40] adrp x8, _DX@PAGE ldr w8, [x8, _DX@PAGEOFF] asr w8, w8, #12 add w8, w8, w9, lsl #8 str w8, [sp, #72] ; 4-byte Folded Spill b LBB9_8 LBB9_7: ldur w9, [x29, #-40] adrp x8, _DX@PAGE ldr w8, [x8, _DX@PAGEOFF] asr w8, w8, #12 add w8, w8, w9, lsl #8 and w8, w8, #0x7ffffff mov w9, #134217728 subs w8, w8, w9 str w8, [sp, #72] ; 4-byte Folded Spill b LBB9_8 LBB9_8: ldr w8, [sp, #72] ; 4-byte Folded Reload ldur x9, [x29, #-72] str w8, [x9, #4] adrp x8, _DX@PAGE ldr w9, [x8, _DX@PAGEOFF] stur w9, [x29, #-52] str wzr, [x8, _DX@PAGEOFF] b LBB9_9 LBB9_9: ldur x8, [x29, #-72] ldr s1, [x8, #4] ; implicit-def: $d0 fmov s0, s1 sshll.2d v0, v0, #0 ; kill: def $d0 killed $d0 killed $q0 scvtf d0, d0 adrp x8, lCPI9_0@PAGE ldr d1, [x8, lCPI9_0@PAGEOFF] fdiv d0, d0, d1 ldur x8, [x29, #-72] str d0, [x8, #56] adrp x8, _describe_commands@PAGE ldrb w8, [x8, _describe_commands@PAGEOFF] tbz w8, #0, LBB9_14 b LBB9_10 LBB9_10: ldur w8, [x29, #-44] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB9_12 b LBB9_11 LBB9_11: ldr x8, [sp, #80] ; 8-byte Folded Reload ldr x0, [x8] ldur w8, [x29, #-48] ; implicit-def: $x11 mov x11, x8 ldursw x9, [x29, #-44] sub x8, x29, #32 ldr x10, [x8, x9, lsl #3] ldur x8, [x29, #-72] ldr w8, [x8, #4] ; implicit-def: $x9 mov x9, x8 ldur x8, [x29, #-72] ldr d1, [x8, #56] ldur x8, [x29, #-72] ldr d0, [x8, #56] fmov d2, #0.50000000 fmul d0, d0, d2 adrp x8, _srate@PAGE ldr s3, [x8, _srate@PAGEOFF] ; implicit-def: $d2 fmov s2, s3 sshll.2d v2, v2, #0 ; kill: def $d2 killed $d2 killed $q2 scvtf d2, d2 fmul d0, d0, d2 mov x8, sp str x11, [x8] str x10, [x8, #8] str x9, [x8, #16] str d1, [x8, #24] str d0, [x8, #32] adrp x1, l_.str.125@PAGE add x1, x1, l_.str.125@PAGEOFF bl _fprintf b LBB9_13 LBB9_12: ldr x8, [sp, #80] ; 8-byte Folded Reload ldr x0, [x8] ldur w8, [x29, #-48] ; implicit-def: $x13 mov x13, x8 ldursw x9, [x29, #-44] sub x8, x29, #32 ldr x12, [x8, x9, lsl #3] ldur w8, [x29, #-52] ; implicit-def: $x11 mov x11, x8 ldur w8, [x29, #-40] ; implicit-def: $x10 mov x10, x8 ldur x8, [x29, #-72] ldr w8, [x8, #4] ; implicit-def: $x9 mov x9, x8 ldur x8, [x29, #-72] ldr d1, [x8, #56] ldur x8, [x29, #-72] ldr d0, [x8, #56] fmov d2, #0.50000000 fmul d0, d0, d2 adrp x8, _srate@PAGE ldr s3, [x8, _srate@PAGEOFF] ; implicit-def: $d2 fmov s2, s3 sshll.2d v2, v2, #0 ; kill: def $d2 killed $d2 killed $q2 scvtf d2, d2 fmul d0, d0, d2 mov x8, sp str x13, [x8] str x12, [x8, #8] str x11, [x8, #16] str x10, [x8, #24] str x9, [x8, #32] str d1, [x8, #40] str d0, [x8, #48] adrp x1, l_.str.126@PAGE add x1, x1, l_.str.126@PAGEOFF bl _fprintf b LBB9_13 LBB9_13: b LBB9_14 LBB9_14: ldur x0, [x29, #-72] bl _gen_is_active tbz w0, #0, LBB9_18 b LBB9_15 LBB9_15: ldur x8, [x29, #-72] ldr w8, [x8, #4] ldur w9, [x29, #-56] subs w8, w8, w9 cset w8, eq tbnz w8, #0, LBB9_18 b LBB9_16 LBB9_16: adrp x8, _samples@PAGE ldr w8, [x8, _samples@PAGEOFF] adrp x9, _last_GMODE_command@PAGE ldr w9, [x9, _last_GMODE_command@PAGEOFF] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB9_18 b LBB9_17 LBB9_17: ldr x8, [sp, #80] ; 8-byte Folded Reload ldr x0, [x8] adrp x8, _samples@PAGE ldr w9, [x8, _samples@PAGEOFF] ; implicit-def: $x13 mov x13, x9 ldr s1, [x8, _samples@PAGEOFF] ; implicit-def: $d0 fmov s0, s1 sshll.2d v0, v0, #0 ; kill: def $d0 killed $d0 killed $q0 scvtf d0, d0 adrp x8, _srate@PAGE ldr s2, [x8, _srate@PAGEOFF] ; implicit-def: $d1 fmov s1, s2 sshll.2d v1, v1, #0 ; kill: def $d1 killed $d1 killed $q1 scvtf d1, d1 fdiv d2, d0, d1 adrp x9, _current_command@PAGE ldr w9, [x9, _current_command@PAGEOFF] ; implicit-def: $x12 mov x12, x9 ldur w9, [x29, #-48] ; implicit-def: $x11 mov x11, x9 ldur x9, [x29, #-72] ldr d0, [x9, #56] fmov d3, #0.50000000 fmul d0, d0, d3 ldr s4, [x8, _srate@PAGEOFF] ; implicit-def: $d1 fmov s1, s4 sshll.2d v1, v1, #0 ; kill: def $d1 killed $d1 killed $q1 scvtf d1, d1 fmul d1, d0, d1 ldur s4, [x29, #-56] ; implicit-def: $d0 fmov s0, s4 sshll.2d v0, v0, #0 ; kill: def $d0 killed $d0 killed $q0 scvtf d0, d0 adrp x9, lCPI9_0@PAGE ldr d4, [x9, lCPI9_0@PAGEOFF] fdiv d0, d0, d4 fmul d0, d0, d3 ldr s4, [x8, _srate@PAGEOFF] ; implicit-def: $d3 fmov s3, s4 sshll.2d v3, v3, #0 ; kill: def $d3 killed $d3 killed $q3 scvtf d3, d3 fmul d0, d0, d3 adrp x8, _last_GMODE_command@PAGE ldr w8, [x8, _last_GMODE_command@PAGEOFF] ; implicit-def: $x10 mov x10, x8 ldur w9, [x29, #-40] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x9, [sp, #64] ; 8-byte Folded Spill str x13, [x9] str d2, [x9, #8] str x12, [x9, #16] str x11, [x9, #24] str d1, [x9, #32] str d0, [x9, #40] str x10, [x9, #48] str x8, [x9, #56] adrp x1, l_.str.127@PAGE add x1, x1, l_.str.127@PAGEOFF bl _fprintf b LBB9_18 LBB9_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, LBB9_20 b LBB9_19 LBB9_19: bl ___stack_chk_fail LBB9_20: ldp x29, x30, [sp, #160] ; 16-byte Folded Reload add sp, sp, #176 ret .cfi_endproc ; -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ; -- Begin function gp_command lCPI10_0: .quad 0x4120000000000000 ; double 524288 .section __TEXT,__text,regular,pure_instructions .p2align 2 _gp_command: ; @gp_command .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] ldur w8, [x29, #-4] asr w8, w8, #0 and w8, w8, #0xff stur w8, [x29, #-12] ldur w8, [x29, #-4] asr w8, w8, #12 and w8, w8, #0xfffff stur w8, [x29, #-8] ldursw x9, [x29, #-12] adrp x8, _gens@PAGE add x8, x8, _gens@PAGEOFF ldr x8, [x8, x9, lsl #3] stur x8, [x29, #-24] ldur w8, [x29, #-8] subs w8, w8, #128, lsl #12 ; =524288 cset w8, ge tbnz w8, #0, LBB10_2 b LBB10_1 LBB10_1: ldur w8, [x29, #-8] stur w8, [x29, #-28] ; 4-byte Folded Spill b LBB10_3 LBB10_2: ldur w8, [x29, #-8] and w8, w8, #0x7ffff subs w8, w8, #128, lsl #12 ; =524288 stur w8, [x29, #-28] ; 4-byte Folded Spill b LBB10_3 LBB10_3: ldur w8, [x29, #-28] ; 4-byte Folded Reload ldur x9, [x29, #-24] str w8, [x9, #20] ldur x8, [x29, #-24] ldr s1, [x8, #20] ; implicit-def: $d0 fmov s0, s1 sshll.2d v0, v0, #0 ; kill: def $d0 killed $d0 killed $q0 scvtf d0, d0 adrp x8, lCPI10_0@PAGE ldr d1, [x8, lCPI10_0@PAGEOFF] fdiv d0, d0, d1 ldur x8, [x29, #-24] str d0, [x8, #80] adrp x8, _describe_commands@PAGE ldrb w8, [x8, _describe_commands@PAGEOFF] tbz w8, #0, LBB10_5 b LBB10_4 LBB10_4: adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] ldr x0, [x8] ldur w8, [x29, #-12] ; implicit-def: $x10 mov x10, x8 ldur x8, [x29, #-24] ldr w8, [x8, #20] ; implicit-def: $x9 mov x9, x8 ldur x8, [x29, #-24] ldr d0, [x8, #80] adrp x8, _srate@PAGE ldr s2, [x8, _srate@PAGEOFF] ; implicit-def: $d1 fmov s1, s2 sshll.2d v1, v1, #0 ; kill: def $d1 killed $d1 killed $q1 scvtf d1, d1 fmul d1, d0, d1 ldur x8, [x29, #-24] ldr d0, [x8, #88] mov x8, sp str x10, [x8] str x9, [x8, #8] str d1, [x8, #16] str d0, [x8, #24] adrp x1, l_.str.128@PAGE add x1, x1, l_.str.128@PAGEOFF bl _fprintf b LBB10_5 LBB10_5: ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function gn_command _gn_command: ; @gn_command .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, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] str x8, [sp, #48] ; 8-byte Folded Spill adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] stur w0, [x29, #-52] adrp x8, l___const.gn_command.SS_name@PAGE add x8, x8, l___const.gn_command.SS_name@PAGEOFF ldr q0, [x8] stur q0, [x29, #-48] ldr q0, [x8, #16] stur q0, [x29, #-32] ldur w8, [x29, #-52] asr w8, w8, #0 and w8, w8, #0xff str w8, [sp, #68] ldur w8, [x29, #-52] asr w8, w8, #12 and w8, w8, #0xf str w8, [sp, #72] ldur w8, [x29, #-52] asr w8, w8, #16 and w8, w8, #0x7ff stur w8, [x29, #-68] ldur w8, [x29, #-52] asr w8, w8, #28 and w8, w8, #0x3 stur w8, [x29, #-64] ldur w8, [x29, #-52] asr w8, w8, #30 and w8, w8, #0x1 stur w8, [x29, #-60] ldur w8, [x29, #-52] asr w8, w8, #31 and w8, w8, #0x1 stur w8, [x29, #-56] adrp x8, _describe_commands@PAGE ldrb w8, [x8, _describe_commands@PAGEOFF] tbz w8, #0, LBB11_11 b LBB11_1 LBB11_1: ldur w8, [x29, #-56] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB11_6 b LBB11_2 LBB11_2: ldur w8, [x29, #-60] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB11_4 b LBB11_3 LBB11_3: ldr x8, [sp, #48] ; 8-byte Folded Reload ldr x0, [x8] ldr w8, [sp, #68] ; implicit-def: $x10 mov x10, x8 ldursw x9, [x29, #-64] sub x8, x29, #48 ldr x8, [x8, x9, lsl #3] mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x1, l_.str.132@PAGE add x1, x1, l_.str.132@PAGEOFF bl _fprintf b LBB11_5 LBB11_4: ldr x8, [sp, #48] ; 8-byte Folded Reload ldr x0, [x8] ldr w8, [sp, #68] ; implicit-def: $x11 mov x11, x8 ldr w8, [sp, #72] ; implicit-def: $x10 mov x10, x8 ldursw x9, [x29, #-64] sub x8, x29, #48 ldr x8, [x8, x9, lsl #3] mov x9, sp str x11, [x9] str x10, [x9, #8] str x8, [x9, #16] adrp x1, l_.str.133@PAGE add x1, x1, l_.str.133@PAGEOFF bl _fprintf b LBB11_5 LBB11_5: b LBB11_10 LBB11_6: ldur w8, [x29, #-60] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB11_8 b LBB11_7 LBB11_7: ldr x8, [sp, #48] ; 8-byte Folded Reload ldr x0, [x8] ldr w8, [sp, #68] ; implicit-def: $x11 mov x11, x8 ldur w8, [x29, #-68] ; implicit-def: $x10 mov x10, x8 ldursw x9, [x29, #-64] sub x8, x29, #48 ldr x8, [x8, x9, lsl #3] mov x9, sp str x11, [x9] str x10, [x9, #8] str x8, [x9, #16] adrp x1, l_.str.134@PAGE add x1, x1, l_.str.134@PAGEOFF bl _fprintf b LBB11_9 LBB11_8: ldr x8, [sp, #48] ; 8-byte Folded Reload ldr x0, [x8] ldr w8, [sp, #68] ; implicit-def: $x12 mov x12, x8 ldur w8, [x29, #-68] ; implicit-def: $x11 mov x11, x8 ldursw x9, [x29, #-64] sub x8, x29, #48 ldr x10, [x8, x9, lsl #3] ldr w9, [sp, #72] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x12, [x9] str x11, [x9, #8] str x10, [x9, #16] str x8, [x9, #24] adrp x1, l_.str.135@PAGE add x1, x1, l_.str.135@PAGEOFF bl _fprintf b LBB11_9 LBB11_9: b LBB11_10 LBB11_10: b LBB11_11 LBB11_11: ldrsw x9, [sp, #68] adrp x8, _gens@PAGE add x8, x8, _gens@PAGEOFF ldr x8, [x8, x9, lsl #3] str x8, [sp, #56] ldur w8, [x29, #-56] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB11_13 b LBB11_12 LBB11_12: ldur w8, [x29, #-68] ldr x9, [sp, #56] str w8, [x9, #12] b LBB11_13 LBB11_13: ldur w8, [x29, #-60] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB11_15 b LBB11_14 LBB11_14: ldr w8, [sp, #72] ldr x9, [sp, #56] str w8, [x9, #16] b LBB11_15 LBB11_15: ldur w8, [x29, #-64] str w8, [sp, #44] ; 4-byte Folded Spill subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB11_17 b LBB11_16 LBB11_16: ldr w8, [sp, #44] ; 4-byte Folded Reload subs w8, w8, #1 cset w8, eq tbnz w8, #0, LBB11_18 b LBB11_19 LBB11_17: ldr x8, [sp, #56] str wzr, [x8, #40] b LBB11_19 LBB11_18: ldr x9, [sp, #56] mov w8, #1 str w8, [x9, #40] b LBB11_19 LBB11_19: ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB11_21 b LBB11_20 LBB11_20: bl ___stack_chk_fail LBB11_21: ldp x29, x30, [sp, #144] ; 16-byte Folded Reload add sp, sp, #160 ret .cfi_endproc ; -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ; -- Begin function gl_command lCPI12_0: .quad 0x40affe0000000000 ; double 4095 .section __TEXT,__text,regular,pure_instructions .p2align 2 _gl_command: ; @gl_command .cfi_startproc ; %bb.0: sub sp, sp, #128 .cfi_def_cfa_offset 128 stp x29, x30, [sp, #112] ; 16-byte Folded Spill add x29, sp, #112 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] stur x8, [x29, #-48] ; 8-byte Folded Spill stur w0, [x29, #-4] ldur w8, [x29, #-4] asr w8, w8, #0 and w8, w8, #0xff stur w8, [x29, #-24] ldur w8, [x29, #-4] asr w8, w8, #12 and w8, w8, #0x3f stur w8, [x29, #-12] ldur w8, [x29, #-4] asr w8, w8, #18 and w8, w8, #0xfff stur w8, [x29, #-8] ldur w8, [x29, #-4] asr w8, w8, #31 and w8, w8, #0x1 stur w8, [x29, #-16] ldur w8, [x29, #-4] asr w8, w8, #30 and w8, w8, #0x1 stur w8, [x29, #-20] ldursw x9, [x29, #-24] adrp x8, _gens@PAGE add x8, x8, _gens@PAGEOFF ldr x8, [x8, x9, lsl #3] stur x8, [x29, #-40] ldur x8, [x29, #-40] ldr w8, [x8, #32] stur w8, [x29, #-28] ldur w8, [x29, #-16] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB12_2 b LBB12_1 LBB12_1: ldur w8, [x29, #-8] ldur x9, [x29, #-40] str w8, [x9, #28] ldur s1, [x29, #-8] ; implicit-def: $d0 fmov s0, s1 sshll.2d v0, v0, #0 ; kill: def $d0 killed $d0 killed $q0 scvtf d0, d0 adrp x8, lCPI12_0@PAGE ldr d1, [x8, lCPI12_0@PAGEOFF] fdiv d0, d0, d1 ldur x8, [x29, #-40] str d0, [x8, #96] b LBB12_2 LBB12_2: ldur w8, [x29, #-20] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB12_4 b LBB12_3 LBB12_3: ldur w8, [x29, #-12] ldur x9, [x29, #-40] str w8, [x9, #32] b LBB12_4 LBB12_4: adrp x8, _describe_commands@PAGE ldrb w8, [x8, _describe_commands@PAGEOFF] tbz w8, #0, LBB12_15 b LBB12_5 LBB12_5: ldur w8, [x29, #-16] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB12_10 b LBB12_6 LBB12_6: ldur w8, [x29, #-20] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB12_8 b LBB12_7 LBB12_7: ldur x8, [x29, #-48] ; 8-byte Folded Reload ldr x0, [x8] ldur w9, [x29, #-24] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x1, l_.str.136@PAGE add x1, x1, l_.str.136@PAGEOFF bl _fprintf b LBB12_9 LBB12_8: ldur x8, [x29, #-48] ; 8-byte Folded Reload ldr x0, [x8] ldur w8, [x29, #-24] ; implicit-def: $x10 mov x10, x8 ldur x8, [x29, #-40] ldr w9, [x8, #32] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x1, l_.str.137@PAGE add x1, x1, l_.str.137@PAGEOFF bl _fprintf b LBB12_9 LBB12_9: b LBB12_14 LBB12_10: ldur w8, [x29, #-20] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB12_12 b LBB12_11 LBB12_11: ldur x8, [x29, #-48] ; 8-byte Folded Reload ldr x0, [x8] ldur w8, [x29, #-24] ; implicit-def: $x10 mov x10, x8 ldur x8, [x29, #-40] ldr w8, [x8, #28] ; implicit-def: $x9 mov x9, x8 ldur x8, [x29, #-40] ldr d0, [x8, #96] mov x8, sp str x10, [x8] str x9, [x8, #8] str d0, [x8, #16] adrp x1, l_.str.138@PAGE add x1, x1, l_.str.138@PAGEOFF bl _fprintf b LBB12_13 LBB12_12: ldur x8, [x29, #-48] ; 8-byte Folded Reload ldr x0, [x8] ldur w8, [x29, #-24] ; implicit-def: $x11 mov x11, x8 ldur x8, [x29, #-40] ldr w8, [x8, #32] ; implicit-def: $x10 mov x10, x8 ldur x8, [x29, #-40] ldr w8, [x8, #28] ; implicit-def: $x9 mov x9, x8 ldur x8, [x29, #-40] ldr d0, [x8, #96] mov x8, sp str x11, [x8] str x10, [x8, #8] str x9, [x8, #16] str d0, [x8, #24] adrp x1, l_.str.139@PAGE add x1, x1, l_.str.139@PAGEOFF bl _fprintf b LBB12_13 LBB12_13: b LBB12_14 LBB12_14: b LBB12_15 LBB12_15: ldur w8, [x29, #-8] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB12_19 b LBB12_16 LBB12_16: ldur w8, [x29, #-16] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB12_19 b LBB12_17 LBB12_17: ldur w8, [x29, #-20] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB12_19 b LBB12_18 LBB12_18: ldur x8, [x29, #-48] ; 8-byte Folded Reload ldr x0, [x8] adrp x8, _samples@PAGE ldr w9, [x8, _samples@PAGEOFF] ; implicit-def: $x12 mov x12, x9 ldr s1, [x8, _samples@PAGEOFF] ; implicit-def: $d0 fmov s0, s1 sshll.2d v0, v0, #0 ; kill: def $d0 killed $d0 killed $q0 scvtf d0, d0 adrp x8, _srate@PAGE ldr s2, [x8, _srate@PAGEOFF] ; implicit-def: $d1 fmov s1, s2 sshll.2d v1, v1, #0 ; kill: def $d1 killed $d1 killed $q1 scvtf d1, d1 fdiv d0, d0, d1 adrp x8, _current_command@PAGE ldr w8, [x8, _current_command@PAGEOFF] ; implicit-def: $x11 mov x11, x8 ldur w8, [x29, #-24] ; implicit-def: $x10 mov x10, x8 ldur w9, [x29, #-12] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x12, [x9] str d0, [x9, #8] str x11, [x9, #16] str x10, [x9, #24] str x8, [x9, #32] adrp x1, l_.str.140@PAGE add x1, x1, l_.str.140@PAGEOFF bl _fprintf b LBB12_19 LBB12_19: ldur x0, [x29, #-40] bl _gen_is_active tbz w0, #0, LBB12_24 b LBB12_20 LBB12_20: ldur x8, [x29, #-40] ldr w8, [x8, #32] ldur w9, [x29, #-28] subs w8, w8, w9 cset w8, eq tbnz w8, #0, LBB12_24 b LBB12_21 LBB12_21: adrp x8, _samples@PAGE ldr w8, [x8, _samples@PAGEOFF] adrp x9, _last_GMODE_command@PAGE ldr w9, [x9, _last_GMODE_command@PAGEOFF] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB12_24 b LBB12_22 LBB12_22: ldur w8, [x29, #-20] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB12_24 b LBB12_23 LBB12_23: ldur x8, [x29, #-48] ; 8-byte Folded Reload ldr x0, [x8] adrp x8, _samples@PAGE ldr w9, [x8, _samples@PAGEOFF] ; implicit-def: $x14 mov x14, x9 ldr s1, [x8, _samples@PAGEOFF] ; implicit-def: $d0 fmov s0, s1 sshll.2d v0, v0, #0 ; kill: def $d0 killed $d0 killed $q0 scvtf d0, d0 adrp x8, _srate@PAGE ldr s2, [x8, _srate@PAGEOFF] ; implicit-def: $d1 fmov s1, s2 sshll.2d v1, v1, #0 ; kill: def $d1 killed $d1 killed $q1 scvtf d1, d1 fdiv d0, d0, d1 adrp x8, _current_command@PAGE ldr w8, [x8, _current_command@PAGEOFF] ; implicit-def: $x13 mov x13, x8 ldur w8, [x29, #-24] ; implicit-def: $x12 mov x12, x8 ldur x8, [x29, #-40] ldr w8, [x8, #32] ; implicit-def: $x11 mov x11, x8 ldur w8, [x29, #-28] ; implicit-def: $x10 mov x10, x8 adrp x8, _last_GMODE_command@PAGE ldr w9, [x8, _last_GMODE_command@PAGEOFF] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x14, [x9] str d0, [x9, #8] str x13, [x9, #16] str x12, [x9, #24] str x11, [x9, #32] str x10, [x9, #40] str x8, [x9, #48] adrp x1, l_.str.141@PAGE add x1, x1, l_.str.141@PAGEOFF bl _fprintf b LBB12_24 LBB12_24: ldp x29, x30, [sp, #112] ; 16-byte Folded Reload add sp, sp, #128 ret .cfi_endproc ; -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ; -- Begin function gk_command lCPI13_0: .quad 0x4120000000000000 ; double 524288 .section __TEXT,__text,regular,pure_instructions .p2align 2 _gk_command: ; @gk_command .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 w0, [x29, #-4] ldur w8, [x29, #-4] asr w8, w8, #0 and w8, w8, #0xff stur w8, [x29, #-12] ldur w8, [x29, #-4] asr w8, w8, #12 and w8, w8, #0xfffff stur w8, [x29, #-8] ldursw x9, [x29, #-12] adrp x8, _gens@PAGE add x8, x8, _gens@PAGEOFF ldr x8, [x8, x9, lsl #3] stur x8, [x29, #-32] ldur x8, [x29, #-32] ldr w8, [x8, #8] stur w8, [x29, #-16] ldur x8, [x29, #-32] ldr d0, [x8, #64] stur d0, [x29, #-24] ldur w8, [x29, #-8] subs w8, w8, #128, lsl #12 ; =524288 cset w8, ge tbnz w8, #0, LBB13_2 b LBB13_1 LBB13_1: ldur w8, [x29, #-8] stur w8, [x29, #-36] ; 4-byte Folded Spill b LBB13_3 LBB13_2: ldur w8, [x29, #-8] and w8, w8, #0x7ffff subs w8, w8, #128, lsl #12 ; =524288 stur w8, [x29, #-36] ; 4-byte Folded Spill b LBB13_3 LBB13_3: ldur w8, [x29, #-36] ; 4-byte Folded Reload ldur x9, [x29, #-32] str w8, [x9, #8] ldur x8, [x29, #-32] ldr s1, [x8, #8] ; implicit-def: $d0 fmov s0, s1 sshll.2d v0, v0, #0 ; kill: def $d0 killed $d0 killed $q0 scvtf d0, d0 adrp x8, lCPI13_0@PAGE ldr d1, [x8, lCPI13_0@PAGEOFF] fdiv d0, d0, d1 ldur x8, [x29, #-32] str d0, [x8, #64] adrp x8, _describe_commands@PAGE ldrb w8, [x8, _describe_commands@PAGEOFF] tbz w8, #0, LBB13_5 b LBB13_4 LBB13_4: adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] ldr x0, [x8] ldur w8, [x29, #-12] ; implicit-def: $x10 mov x10, x8 ldur x8, [x29, #-32] ldr w8, [x8, #8] ; implicit-def: $x9 mov x9, x8 ldur x8, [x29, #-32] ldr d0, [x8, #64] mov x8, sp str x10, [x8] str x9, [x8, #8] str d0, [x8, #16] adrp x1, l_.str.142@PAGE add x1, x1, l_.str.142@PAGEOFF bl _fprintf b LBB13_5 LBB13_5: ldur x0, [x29, #-32] bl _gen_is_active tbz w0, #0, LBB13_8 b LBB13_6 LBB13_6: adrp x8, _samples@PAGE ldr w8, [x8, _samples@PAGEOFF] adrp x9, _last_GMODE_command@PAGE ldr w9, [x9, _last_GMODE_command@PAGEOFF] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB13_8 b LBB13_7 LBB13_7: adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] ldr x0, [x8] adrp x8, _samples@PAGE ldr w9, [x8, _samples@PAGEOFF] ; implicit-def: $x12 mov x12, x9 ldr s1, [x8, _samples@PAGEOFF] ; implicit-def: $d0 fmov s0, s1 sshll.2d v0, v0, #0 ; kill: def $d0 killed $d0 killed $q0 scvtf d0, d0 adrp x8, _srate@PAGE ldr s2, [x8, _srate@PAGEOFF] ; implicit-def: $d1 fmov s1, s2 sshll.2d v1, v1, #0 ; kill: def $d1 killed $d1 killed $q1 scvtf d1, d1 fdiv d1, d0, d1 adrp x8, _current_command@PAGE ldr w8, [x8, _current_command@PAGEOFF] ; implicit-def: $x11 mov x11, x8 ldur w8, [x29, #-12] ; implicit-def: $x10 mov x10, x8 ldur x8, [x29, #-32] ldr d0, [x8, #64] adrp x8, _last_GMODE_command@PAGE ldr w9, [x8, _last_GMODE_command@PAGEOFF] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x12, [x9] str d1, [x9, #8] str x11, [x9, #16] str x10, [x9, #24] str d0, [x9, #32] str x8, [x9, #40] adrp x1, l_.str.143@PAGE add x1, x1, l_.str.143@PAGEOFF bl _fprintf b LBB13_8 LBB13_8: ldp x29, x30, [sp, #96] ; 16-byte Folded Reload add sp, sp, #112 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function gmode_command _gmode_command: ; @gmode_command .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, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] str x8, [sp, #64] ; 8-byte Folded Spill stur w0, [x29, #-4] adrp x8, _samples@PAGE ldr w8, [x8, _samples@PAGEOFF] adrp x9, _last_GMODE_command@PAGE str w8, [x9, _last_GMODE_command@PAGEOFF] ldur w8, [x29, #-4] asr w8, w8, #0 and w8, w8, #0xff stur w8, [x29, #-8] ldur w8, [x29, #-4] asr w8, w8, #12 and w8, w8, #0x7f stur w8, [x29, #-28] ldur w8, [x29, #-4] asr w8, w8, #19 and w8, w8, #0x3ff stur w8, [x29, #-24] ldur w8, [x29, #-4] asr w8, w8, #31 mov w9, #1 stur w9, [x29, #-52] ; 4-byte Folded Spill and w8, w8, #0x1 stur w8, [x29, #-12] ldur w8, [x29, #-4] asr w8, w8, #30 and w8, w8, #0x1 stur w8, [x29, #-16] ldur w8, [x29, #-4] asr w8, w8, #29 and w8, w8, #0x1 stur w8, [x29, #-20] ldursw x9, [x29, #-8] adrp x8, _gens@PAGE add x8, x8, _gens@PAGEOFF ldr x8, [x8, x9, lsl #3] stur x8, [x29, #-48] ldur x8, [x29, #-48] ldr w8, [x8, #36] stur w8, [x29, #-36] ldur x8, [x29, #-48] ldr w8, [x8, #44] stur w8, [x29, #-32] ldur x0, [x29, #-48] bl _gen_is_active ldur w8, [x29, #-52] ; 4-byte Folded Reload and w8, w0, w8 sturb w8, [x29, #-37] ldur w8, [x29, #-12] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB14_2 b LBB14_1 LBB14_1: ldur w8, [x29, #-24] ldur x9, [x29, #-48] str w8, [x9, #44] b LBB14_2 LBB14_2: ldur w8, [x29, #-16] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB14_4 b LBB14_3 LBB14_3: ldur w8, [x29, #-28] ldur x9, [x29, #-48] str w8, [x9, #36] b LBB14_4 LBB14_4: ldur w8, [x29, #-20] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB14_6 b LBB14_5 LBB14_5: ldur x8, [x29, #-48] str wzr, [x8, #8] b LBB14_6 LBB14_6: adrp x8, _describe_commands@PAGE ldrb w8, [x8, _describe_commands@PAGEOFF] tbz w8, #0, LBB14_19 b LBB14_7 LBB14_7: ldr x8, [sp, #64] ; 8-byte Folded Reload ldr x0, [x8] ldur w9, [x29, #-8] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x1, l_.str.57@PAGE add x1, x1, l_.str.57@PAGEOFF bl _fprintf ldur w8, [x29, #-12] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB14_9 b LBB14_8 LBB14_8: ldr x8, [sp, #64] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.144@PAGE add x1, x1, l_.str.144@PAGEOFF bl _fprintf ldur x8, [x29, #-48] ldr w0, [x8, #44] bl _print_gmode_name b LBB14_9 LBB14_9: ldur w8, [x29, #-16] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB14_13 b LBB14_10 LBB14_10: ldur w8, [x29, #-12] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB14_12 b LBB14_11 LBB14_11: ldr x8, [sp, #64] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.145@PAGE add x1, x1, l_.str.145@PAGEOFF bl _fprintf b LBB14_12 LBB14_12: ldr x8, [sp, #64] ; 8-byte Folded Reload ldr x0, [x8] ldur x8, [x29, #-48] ldr w8, [x8, #36] asr w8, w8, #6 subs w8, w8, #0 cset w8, eq and w10, w8, #0x1 adrp x9, l_.str.148@PAGE add x9, x9, l_.str.148@PAGEOFF adrp x8, l_.str.147@PAGE add x8, x8, l_.str.147@PAGEOFF ands w10, w10, #0x1 csel x8, x8, x9, ne ldur x9, [x29, #-48] ldr w9, [x9, #36] and w10, w9, #0x3f mov x9, sp str x8, [x9] ; implicit-def: $x8 mov x8, x10 str x8, [x9, #8] adrp x1, l_.str.146@PAGE add x1, x1, l_.str.146@PAGEOFF bl _fprintf b LBB14_13 LBB14_13: ldur w8, [x29, #-20] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB14_18 b LBB14_14 LBB14_14: ldur w8, [x29, #-12] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB14_16 b LBB14_15 LBB14_15: ldur w8, [x29, #-16] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB14_17 b LBB14_16 LBB14_16: ldr x8, [sp, #64] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.145@PAGE add x1, x1, l_.str.145@PAGEOFF bl _fprintf b LBB14_17 LBB14_17: ldr x8, [sp, #64] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.149@PAGE add x1, x1, l_.str.149@PAGEOFF bl _fprintf b LBB14_18 LBB14_18: ldr x8, [sp, #64] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.17@PAGE add x1, x1, l_.str.17@PAGEOFF bl _fprintf b LBB14_19 LBB14_19: ldur w0, [x29, #-24] bl _bad_mode tbz w0, #0, LBB14_21 b LBB14_20 LBB14_20: ldr x8, [sp, #64] ; 8-byte Folded Reload ldr x0, [x8] adrp x8, _samples@PAGE ldr w9, [x8, _samples@PAGEOFF] ; implicit-def: $x12 mov x12, x9 ldr s1, [x8, _samples@PAGEOFF] ; implicit-def: $d0 fmov s0, s1 sshll.2d v0, v0, #0 ; kill: def $d0 killed $d0 killed $q0 scvtf d0, d0 adrp x8, _srate@PAGE ldr s2, [x8, _srate@PAGEOFF] ; implicit-def: $d1 fmov s1, s2 sshll.2d v1, v1, #0 ; kill: def $d1 killed $d1 killed $q1 scvtf d1, d1 fdiv d0, d0, d1 adrp x8, _current_command@PAGE ldr w8, [x8, _current_command@PAGEOFF] ; implicit-def: $x11 mov x11, x8 ldur w8, [x29, #-8] ; implicit-def: $x10 mov x10, x8 ldur w9, [x29, #-24] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x12, [x9] str d0, [x9, #8] str x11, [x9, #16] str x10, [x9, #24] str x8, [x9, #32] adrp x1, l_.str.150@PAGE add x1, x1, l_.str.150@PAGEOFF bl _fprintf b LBB14_21 LBB14_21: ldur x0, [x29, #-48] bl _gen_is_active tbz w0, #0, LBB14_24 b LBB14_22 LBB14_22: ldur w8, [x29, #-8] adrp x9, _processing_ticks@PAGE ldr w9, [x9, _processing_ticks@PAGEOFF] subs w8, w8, w9 cset w8, lt tbnz w8, #0, LBB14_24 b LBB14_23 LBB14_23: ldr x8, [sp, #64] ; 8-byte Folded Reload ldr x0, [x8] adrp x8, _samples@PAGE ldr w9, [x8, _samples@PAGEOFF] ; implicit-def: $x12 mov x12, x9 ldr s1, [x8, _samples@PAGEOFF] ; implicit-def: $d0 fmov s0, s1 sshll.2d v0, v0, #0 ; kill: def $d0 killed $d0 killed $q0 scvtf d0, d0 adrp x8, _srate@PAGE ldr s2, [x8, _srate@PAGEOFF] ; implicit-def: $d1 fmov s1, s2 sshll.2d v1, v1, #0 ; kill: def $d1 killed $d1 killed $q1 scvtf d1, d1 fdiv d0, d0, d1 adrp x8, _current_command@PAGE ldr w8, [x8, _current_command@PAGEOFF] ; implicit-def: $x11 mov x11, x8 ldur w8, [x29, #-8] ; implicit-def: $x10 mov x10, x8 adrp x8, _processing_ticks@PAGE ldr w9, [x8, _processing_ticks@PAGEOFF] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x12, [x9] str d0, [x9, #8] str x11, [x9, #16] str x10, [x9, #24] str x8, [x9, #32] adrp x1, l_.str.151@PAGE add x1, x1, l_.str.151@PAGEOFF bl _fprintf b LBB14_24 LBB14_24: ldurb w8, [x29, #-37] tbz w8, #0, LBB14_32 b LBB14_25 LBB14_25: ldur x8, [x29, #-48] ldr w8, [x8, #36] ldur w9, [x29, #-36] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB14_27 b LBB14_26 LBB14_26: ldur x8, [x29, #-48] ldr w8, [x8, #44] ldur w9, [x29, #-32] subs w8, w8, w9 cset w8, eq tbnz w8, #0, LBB14_32 b LBB14_27 LBB14_27: adrp x8, _samples@PAGE ldr w8, [x8, _samples@PAGEOFF] adrp x9, _last_GMODE_command@PAGE ldr w9, [x9, _last_GMODE_command@PAGEOFF] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB14_32 b LBB14_28 LBB14_28: ldur x8, [x29, #-48] ldr w8, [x8, #36] ldur w9, [x29, #-36] subs w8, w8, w9 cset w8, eq tbnz w8, #0, LBB14_30 b LBB14_29 LBB14_29: ldr x8, [sp, #64] ; 8-byte Folded Reload ldr x0, [x8] adrp x8, _samples@PAGE ldr w9, [x8, _samples@PAGEOFF] ; implicit-def: $x14 mov x14, x9 ldr s1, [x8, _samples@PAGEOFF] ; implicit-def: $d0 fmov s0, s1 sshll.2d v0, v0, #0 ; kill: def $d0 killed $d0 killed $q0 scvtf d0, d0 adrp x8, _srate@PAGE ldr s2, [x8, _srate@PAGEOFF] ; implicit-def: $d1 fmov s1, s2 sshll.2d v1, v1, #0 ; kill: def $d1 killed $d1 killed $q1 scvtf d1, d1 fdiv d0, d0, d1 adrp x8, _current_command@PAGE ldr w8, [x8, _current_command@PAGEOFF] ; implicit-def: $x13 mov x13, x8 ldur w8, [x29, #-8] ; implicit-def: $x12 mov x12, x8 ldur x8, [x29, #-48] ldr w8, [x8, #36] ; implicit-def: $x11 mov x11, x8 ldur w8, [x29, #-36] ; implicit-def: $x10 mov x10, x8 adrp x8, _last_GMODE_command@PAGE ldr w9, [x8, _last_GMODE_command@PAGEOFF] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x14, [x9] str d0, [x9, #8] str x13, [x9, #16] str x12, [x9, #24] str x11, [x9, #32] str x10, [x9, #40] str x8, [x9, #48] adrp x1, l_.str.152@PAGE add x1, x1, l_.str.152@PAGEOFF bl _fprintf b LBB14_31 LBB14_30: ldr x8, [sp, #64] ; 8-byte Folded Reload ldr x0, [x8] adrp x8, _samples@PAGE ldr w9, [x8, _samples@PAGEOFF] ; implicit-def: $x11 mov x11, x9 ldr s1, [x8, _samples@PAGEOFF] ; implicit-def: $d0 fmov s0, s1 sshll.2d v0, v0, #0 ; kill: def $d0 killed $d0 killed $q0 scvtf d0, d0 adrp x8, _srate@PAGE ldr s2, [x8, _srate@PAGEOFF] ; implicit-def: $d1 fmov s1, s2 sshll.2d v1, v1, #0 ; kill: def $d1 killed $d1 killed $q1 scvtf d1, d1 fdiv d0, d0, d1 adrp x8, _current_command@PAGE ldr w8, [x8, _current_command@PAGEOFF] ; implicit-def: $x10 mov x10, x8 ldur w9, [x29, #-8] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x11, [x9] str d0, [x9, #8] str x10, [x9, #16] str x8, [x9, #24] adrp x1, l_.str.153@PAGE add x1, x1, l_.str.153@PAGEOFF bl _fprintf ldur x8, [x29, #-48] ldr w0, [x8, #44] bl _print_gmode_name ldr x8, [sp, #64] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.154@PAGE add x1, x1, l_.str.154@PAGEOFF bl _fprintf ldur w0, [x29, #-32] bl _print_gmode_name ldr x8, [sp, #64] ; 8-byte Folded Reload ldr x0, [x8] adrp x8, _last_GMODE_command@PAGE ldr w9, [x8, _last_GMODE_command@PAGEOFF] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x1, l_.str.155@PAGE add x1, x1, l_.str.155@PAGEOFF bl _fprintf b LBB14_31 LBB14_31: b LBB14_32 LBB14_32: 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 go_command lCPI15_0: .quad 0x4070000000000000 ; double 256 lCPI15_1: .quad 0x4120000000000000 ; double 524288 .section __TEXT,__text,regular,pure_instructions .p2align 2 _go_command: ; @go_command .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 w0, [x29, #-4] ldur w8, [x29, #-4] asr w8, w8, #0 and w8, w8, #0xff stur w8, [x29, #-12] ldur w8, [x29, #-4] asr w8, w8, #12 and w8, w8, #0xfffff stur w8, [x29, #-8] ldursw x9, [x29, #-12] adrp x8, _gens@PAGE add x8, x8, _gens@PAGEOFF ldr x8, [x8, x9, lsl #3] stur x8, [x29, #-24] ldur w8, [x29, #-8] subs w8, w8, #128, lsl #12 ; =524288 cset w8, ge tbnz w8, #0, LBB15_2 b LBB15_1 LBB15_1: ldur w8, [x29, #-8] stur w8, [x29, #-28] ; 4-byte Folded Spill b LBB15_3 LBB15_2: ldur w8, [x29, #-8] and w8, w8, #0x7ffff subs w8, w8, #128, lsl #12 ; =524288 stur w8, [x29, #-28] ; 4-byte Folded Spill b LBB15_3 LBB15_3: ldur w8, [x29, #-28] ; 4-byte Folded Reload ldur x9, [x29, #-24] str w8, [x9] ldur x8, [x29, #-24] ldr s1, [x8] ; implicit-def: $d0 fmov s0, s1 sshll.2d v0, v0, #0 ; kill: def $d0 killed $d0 killed $q0 scvtf d0, d0 adrp x8, lCPI15_1@PAGE ldr d1, [x8, lCPI15_1@PAGEOFF] fdiv d0, d0, d1 ldur x8, [x29, #-24] str d0, [x8, #48] adrp x8, _describe_commands@PAGE ldrb w8, [x8, _describe_commands@PAGEOFF] tbz w8, #0, LBB15_8 b LBB15_4 LBB15_4: ldur x8, [x29, #-24] ldr w8, [x8, #44] asr w8, w8, #6 and w8, w8, #0xf subs w8, w8, #2 cset w8, ne tbnz w8, #0, LBB15_6 b LBB15_5 LBB15_5: adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] ldr x0, [x8] ldur w8, [x29, #-12] ; implicit-def: $x10 mov x10, x8 ldur w9, [x29, #-8] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x1, l_.str.156@PAGE add x1, x1, l_.str.156@PAGEOFF bl _fprintf b LBB15_7 LBB15_6: adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] ldr x0, [x8] ldur w8, [x29, #-12] ; implicit-def: $x10 mov x10, x8 ldur x8, [x29, #-24] ldr w8, [x8] ; implicit-def: $x9 mov x9, x8 ldur x8, [x29, #-24] ldr d2, [x8, #48] ldur x8, [x29, #-24] ldr d0, [x8, #48] fmov d3, #0.50000000 fmul d0, d0, d3 adrp x8, _srate@PAGE ldr s4, [x8, _srate@PAGEOFF] ; implicit-def: $d1 fmov s1, s4 sshll.2d v1, v1, #0 ; kill: def $d1 killed $d1 killed $q1 scvtf d1, d1 fmul d0, d0, d1 ldr s4, [x8, _srate@PAGEOFF] ; implicit-def: $d1 fmov s1, s4 sshll.2d v1, v1, #0 ; kill: def $d1 killed $d1 killed $q1 scvtf d1, d1 fmul d0, d0, d1 adrp x11, lCPI15_0@PAGE ldr d1, [x11, lCPI15_0@PAGEOFF] fdiv d1, d0, d1 ldur x11, [x29, #-24] ldr d0, [x11, #56] ldr s5, [x8, _srate@PAGEOFF] ; implicit-def: $d4 fmov s4, s5 sshll.2d v4, v4, #0 ; kill: def $d4 killed $d4 killed $q4 scvtf d4, d4 fmul d0, d0, d4 fmul d0, d0, d3 mov x8, sp str x10, [x8] str x9, [x8, #8] str d2, [x8, #16] str d1, [x8, #24] str d0, [x8, #32] adrp x1, l_.str.157@PAGE add x1, x1, l_.str.157@PAGEOFF bl _fprintf b LBB15_7 LBB15_7: b LBB15_8 LBB15_8: ldp x29, x30, [sp, #80] ; 16-byte Folded Reload add sp, sp, #96 ret .cfi_endproc ; -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ; -- Begin function mm_command lCPI16_0: .quad 0x41c0000000000000 ; double 536870912 .section __TEXT,__text,regular,pure_instructions .p2align 2 _mm_command: ; @mm_command .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, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] stur x8, [x29, #-48] ; 8-byte Folded Spill stur w0, [x29, #-4] stur wzr, [x29, #-20] ldur w8, [x29, #-4] asr w8, w8, #0 and w8, w8, #0x7f stur w8, [x29, #-8] ldur w8, [x29, #-4] asr w8, w8, #7 and w8, w8, #0x3 stur w8, [x29, #-12] ldur w8, [x29, #-4] asr w8, w8, #12 and w8, w8, #0xfffff stur w8, [x29, #-16] ldursw x9, [x29, #-8] adrp x8, _mods@PAGE add x8, x8, _mods@PAGEOFF ldr x8, [x8, x9, lsl #3] stur x8, [x29, #-32] ldur w8, [x29, #-12] subs w8, w8, #0 ; kill: def $x8 killed $w8 stur x8, [x29, #-40] ; 8-byte Folded Spill subs x8, x8, #3 cset w8, hi tbnz w8, #0, LBB16_18 ; %bb.1: ldur x11, [x29, #-40] ; 8-byte Folded Reload adrp x10, lJTI16_0@PAGE add x10, x10, lJTI16_0@PAGEOFF Ltmp2: adr x8, Ltmp2 ldrsw x9, [x10, x11, lsl #2] add x8, x8, x9 br x8 LBB16_2: ldur w8, [x29, #-16] subs w8, w8, #128, lsl #12 ; =524288 cset w8, ge tbnz w8, #0, LBB16_4 b LBB16_3 LBB16_3: ldur w8, [x29, #-16] stur w8, [x29, #-52] ; 4-byte Folded Spill b LBB16_5 LBB16_4: ldur w8, [x29, #-16] and w8, w8, #0x7ffff subs w8, w8, #128, lsl #12 ; =524288 stur w8, [x29, #-52] ; 4-byte Folded Spill b LBB16_5 LBB16_5: ldur w8, [x29, #-52] ; 4-byte Folded Reload ldur x9, [x29, #-32] str w8, [x9] ldur x8, [x29, #-32] ldr s1, [x8] ; implicit-def: $d0 fmov s0, s1 sshll.2d v0, v0, #0 ; kill: def $d0 killed $d0 killed $q0 scvtf d0, d0 adrp x8, lCPI16_0@PAGE ldr d1, [x8, lCPI16_0@PAGEOFF] fdiv d0, d0, d1 ldur x8, [x29, #-32] str d0, [x8, #56] ldur x8, [x29, #-32] ldr w8, [x8] ldur x9, [x29, #-32] str w8, [x9, #48] ldur x8, [x29, #-32] ldr d0, [x8, #56] ldur x8, [x29, #-32] str d0, [x8, #88] ldur x8, [x29, #-32] ldr w8, [x8] ldur x9, [x29, #-32] ldr w9, [x9, #44] mul w8, w8, w9 mov w9, #4 sdiv w8, w8, w9 ldur x9, [x29, #-32] str w8, [x9] ldur x8, [x29, #-32] ldr s1, [x8, #44] ; implicit-def: $d0 fmov s0, s1 sshll.2d v0, v0, #0 ; kill: def $d0 killed $d0 killed $q0 scvtf d1, d0 ldur x8, [x29, #-32] ldr d0, [x8, #56] fmul d0, d0, d1 str d0, [x8, #56] b LBB16_18 LBB16_6: ldur w8, [x29, #-16] subs w8, w8, #128, lsl #12 ; =524288 cset w8, ge tbnz w8, #0, LBB16_8 b LBB16_7 LBB16_7: ldur w8, [x29, #-16] stur w8, [x29, #-56] ; 4-byte Folded Spill b LBB16_9 LBB16_8: ldur w8, [x29, #-16] and w8, w8, #0x7ffff subs w8, w8, #128, lsl #12 ; =524288 stur w8, [x29, #-56] ; 4-byte Folded Spill b LBB16_9 LBB16_9: ldur w8, [x29, #-56] ; 4-byte Folded Reload ldur x9, [x29, #-32] str w8, [x9, #4] ldur x8, [x29, #-32] ldr s1, [x8, #4] ; implicit-def: $d0 fmov s0, s1 sshll.2d v0, v0, #0 ; kill: def $d0 killed $d0 killed $q0 scvtf d0, d0 adrp x8, lCPI16_0@PAGE ldr d1, [x8, lCPI16_0@PAGEOFF] fdiv d0, d0, d1 ldur x8, [x29, #-32] str d0, [x8, #64] ldur x8, [x29, #-32] ldr w8, [x8, #4] ldur x9, [x29, #-32] str w8, [x9, #52] ldur x8, [x29, #-32] ldr d0, [x8, #64] ldur x8, [x29, #-32] str d0, [x8, #96] ldur x8, [x29, #-32] ldr w8, [x8, #4] ldur x9, [x29, #-32] ldr w9, [x9, #40] mul w8, w8, w9 mov w9, #4 sdiv w8, w8, w9 ldur x9, [x29, #-32] str w8, [x9, #4] ldur x8, [x29, #-32] ldr s1, [x8, #40] ; implicit-def: $d0 fmov s0, s1 sshll.2d v0, v0, #0 ; kill: def $d0 killed $d0 killed $q0 scvtf d1, d0 ldur x8, [x29, #-32] ldr d0, [x8, #64] fmul d0, d0, d1 str d0, [x8, #64] b LBB16_18 LBB16_10: ldur w9, [x29, #-16] adrp x8, _DX@PAGE ldr w8, [x8, _DX@PAGEOFF] asr w8, w8, #10 and w8, w8, #0x3ff add w8, w8, w9, lsl #10 mov w9, #536870912 subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB16_12 b LBB16_11 LBB16_11: ldur w9, [x29, #-16] adrp x8, _DX@PAGE ldr w8, [x8, _DX@PAGEOFF] asr w8, w8, #10 and w8, w8, #0x3ff add w8, w8, w9, lsl #10 stur w8, [x29, #-60] ; 4-byte Folded Spill b LBB16_13 LBB16_12: ldur w9, [x29, #-16] adrp x8, _DX@PAGE ldr w8, [x8, _DX@PAGEOFF] asr w8, w8, #10 and w8, w8, #0x3ff add w8, w8, w9, lsl #10 and w8, w8, #0x1fffffff mov w9, #536870912 subs w8, w8, w9 stur w8, [x29, #-60] ; 4-byte Folded Spill b LBB16_13 LBB16_13: ldur w8, [x29, #-60] ; 4-byte Folded Reload ldur x9, [x29, #-32] str w8, [x9] ldur x8, [x29, #-32] ldr s1, [x8] ; implicit-def: $d0 fmov s0, s1 sshll.2d v0, v0, #0 ; kill: def $d0 killed $d0 killed $q0 scvtf d0, d0 adrp x8, lCPI16_0@PAGE ldr d1, [x8, lCPI16_0@PAGEOFF] fdiv d0, d0, d1 ldur x8, [x29, #-32] str d0, [x8, #56] ldur x8, [x29, #-32] ldr w8, [x8] ldur x9, [x29, #-32] str w8, [x9, #48] ldur x8, [x29, #-32] ldr d0, [x8, #56] ldur x8, [x29, #-32] str d0, [x8, #88] adrp x8, _DX@PAGE ldr w9, [x8, _DX@PAGEOFF] stur w9, [x29, #-20] str wzr, [x8, _DX@PAGEOFF] ldur x8, [x29, #-32] ldr w8, [x8] mov w9, #4 sdiv w8, w8, w9 ldur x9, [x29, #-32] ldr w9, [x9, #44] mul w8, w8, w9 ldur x9, [x29, #-32] str w8, [x9] ldur x8, [x29, #-32] ldr s1, [x8, #44] ; implicit-def: $d0 fmov s0, s1 sshll.2d v0, v0, #0 ; kill: def $d0 killed $d0 killed $q0 scvtf d1, d0 ldur x8, [x29, #-32] ldr d0, [x8, #56] fmul d0, d0, d1 str d0, [x8, #56] b LBB16_18 LBB16_14: ldur w9, [x29, #-16] adrp x8, _DX@PAGE ldr w8, [x8, _DX@PAGEOFF] asr w8, w8, #10 and w8, w8, #0x3ff add w8, w8, w9, lsl #10 mov w9, #536870912 subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB16_16 b LBB16_15 LBB16_15: ldur w9, [x29, #-16] adrp x8, _DX@PAGE ldr w8, [x8, _DX@PAGEOFF] asr w8, w8, #10 and w8, w8, #0x3ff add w8, w8, w9, lsl #10 stur w8, [x29, #-64] ; 4-byte Folded Spill b LBB16_17 LBB16_16: ldur w9, [x29, #-16] adrp x8, _DX@PAGE ldr w8, [x8, _DX@PAGEOFF] asr w8, w8, #10 and w8, w8, #0x3ff add w8, w8, w9, lsl #10 and w8, w8, #0x1fffffff mov w9, #536870912 subs w8, w8, w9 stur w8, [x29, #-64] ; 4-byte Folded Spill b LBB16_17 LBB16_17: ldur w8, [x29, #-64] ; 4-byte Folded Reload ldur x9, [x29, #-32] str w8, [x9, #4] ldur x8, [x29, #-32] ldr s1, [x8, #4] ; implicit-def: $d0 fmov s0, s1 sshll.2d v0, v0, #0 ; kill: def $d0 killed $d0 killed $q0 scvtf d0, d0 adrp x8, lCPI16_0@PAGE ldr d1, [x8, lCPI16_0@PAGEOFF] fdiv d0, d0, d1 ldur x8, [x29, #-32] str d0, [x8, #64] ldur x8, [x29, #-32] ldr w8, [x8, #4] ldur x9, [x29, #-32] str w8, [x9, #52] ldur x8, [x29, #-32] ldr d0, [x8, #64] ldur x8, [x29, #-32] str d0, [x8, #96] adrp x8, _DX@PAGE ldr w9, [x8, _DX@PAGEOFF] stur w9, [x29, #-20] str wzr, [x8, _DX@PAGEOFF] ldur x8, [x29, #-32] ldr w8, [x8, #4] mov w9, #4 sdiv w8, w8, w9 ldur x9, [x29, #-32] ldr w9, [x9, #40] mul w8, w8, w9 ldur x9, [x29, #-32] str w8, [x9, #4] ldur x8, [x29, #-32] ldr s1, [x8, #40] ; implicit-def: $d0 fmov s0, s1 sshll.2d v0, v0, #0 ; kill: def $d0 killed $d0 killed $q0 scvtf d1, d0 ldur x8, [x29, #-32] ldr d0, [x8, #64] fmul d0, d0, d1 str d0, [x8, #64] b LBB16_18 LBB16_18: adrp x8, _describe_commands@PAGE ldrb w8, [x8, _describe_commands@PAGEOFF] tbz w8, #0, LBB16_26 b LBB16_19 LBB16_19: ldur w8, [x29, #-12] subs w8, w8, #0 ; kill: def $x8 killed $w8 stur x8, [x29, #-72] ; 8-byte Folded Spill subs x8, x8, #3 cset w8, hi tbnz w8, #0, LBB16_25 ; %bb.20: ldur x11, [x29, #-72] ; 8-byte Folded Reload adrp x10, lJTI16_1@PAGE add x10, x10, lJTI16_1@PAGEOFF Ltmp3: adr x8, Ltmp3 ldrsw x9, [x10, x11, lsl #2] add x8, x8, x9 br x8 LBB16_21: ldur x8, [x29, #-48] ; 8-byte Folded Reload ldr x0, [x8] ldur w8, [x29, #-8] ; implicit-def: $x11 mov x11, x8 ldur w8, [x29, #-16] ; implicit-def: $x10 mov x10, x8 ldur x8, [x29, #-32] ldr w8, [x8] ; implicit-def: $x9 mov x9, x8 ldur x8, [x29, #-32] ldr d0, [x8, #56] mov x8, sp str x11, [x8] str x10, [x8, #8] str x9, [x8, #16] str d0, [x8, #24] adrp x1, l_.str.158@PAGE add x1, x1, l_.str.158@PAGEOFF bl _fprintf b LBB16_25 LBB16_22: ldur x8, [x29, #-48] ; 8-byte Folded Reload ldr x0, [x8] ldur w8, [x29, #-8] ; implicit-def: $x11 mov x11, x8 ldur w8, [x29, #-16] ; implicit-def: $x10 mov x10, x8 ldur x8, [x29, #-32] ldr w8, [x8, #4] ; implicit-def: $x9 mov x9, x8 ldur x8, [x29, #-32] ldr d0, [x8, #64] mov x8, sp str x11, [x8] str x10, [x8, #8] str x9, [x8, #16] str d0, [x8, #24] adrp x1, l_.str.159@PAGE add x1, x1, l_.str.159@PAGEOFF bl _fprintf b LBB16_25 LBB16_23: ldur x8, [x29, #-48] ; 8-byte Folded Reload ldr x0, [x8] ldur w8, [x29, #-8] ; implicit-def: $x14 mov x14, x8 ldur w8, [x29, #-16] ; implicit-def: $x13 mov x13, x8 ldur w8, [x29, #-20] ; implicit-def: $x12 mov x12, x8 ldur x8, [x29, #-32] ldr w8, [x8, #44] ; implicit-def: $x11 mov x11, x8 ldur x8, [x29, #-32] ldr w8, [x8, #48] ; implicit-def: $x10 mov x10, x8 ldur x8, [x29, #-32] ldr w8, [x8] ; implicit-def: $x9 mov x9, x8 ldur x8, [x29, #-32] ldr d1, [x8, #88] ldur x8, [x29, #-32] ldr d0, [x8, #56] mov x8, sp str x8, [sp, #80] ; 8-byte Folded Spill str x14, [x8] str x13, [x8, #8] str x12, [x8, #16] str x11, [x8, #24] str x10, [x8, #32] str x9, [x8, #40] str d1, [x8, #48] str d0, [x8, #56] adrp x1, l_.str.160@PAGE add x1, x1, l_.str.160@PAGEOFF bl _fprintf b LBB16_25 LBB16_24: ldur x8, [x29, #-48] ; 8-byte Folded Reload ldr x0, [x8] ldur w8, [x29, #-8] ; implicit-def: $x14 mov x14, x8 ldur w8, [x29, #-16] ; implicit-def: $x13 mov x13, x8 ldur w8, [x29, #-20] ; implicit-def: $x12 mov x12, x8 ldur x8, [x29, #-32] ldr w8, [x8, #40] ; implicit-def: $x11 mov x11, x8 ldur x8, [x29, #-32] ldr w8, [x8, #52] ; implicit-def: $x10 mov x10, x8 ldur x8, [x29, #-32] ldr w8, [x8, #4] ; implicit-def: $x9 mov x9, x8 ldur x8, [x29, #-32] ldr d1, [x8, #96] ldur x8, [x29, #-32] ldr d0, [x8, #64] mov x8, sp str x8, [sp, #72] ; 8-byte Folded Spill str x14, [x8] str x13, [x8, #8] str x12, [x8, #16] str x11, [x8, #24] str x10, [x8, #32] str x9, [x8, #40] str d1, [x8, #48] str d0, [x8, #56] adrp x1, l_.str.161@PAGE add x1, x1, l_.str.161@PAGEOFF bl _fprintf b LBB16_25 LBB16_25: b LBB16_26 LBB16_26: ldp x29, x30, [sp, #160] ; 16-byte Folded Reload add sp, sp, #176 ret .cfi_endproc .p2align 2 lJTI16_0: .long LBB16_2-Ltmp2 .long LBB16_6-Ltmp2 .long LBB16_10-Ltmp2 .long LBB16_14-Ltmp2 .p2align 2 lJTI16_1: .long LBB16_21-Ltmp3 .long LBB16_22-Ltmp3 .long LBB16_23-Ltmp3 .long LBB16_24-Ltmp3 ; -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ; -- Begin function ml_command lCPI17_0: .quad 0x4120000000000000 ; double 524288 .section __TEXT,__text,regular,pure_instructions .p2align 2 _ml_command: ; @ml_command .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] ldur w8, [x29, #-4] asr w8, w8, #0 and w8, w8, #0x7f stur w8, [x29, #-8] ldur w8, [x29, #-4] asr w8, w8, #12 and w8, w8, #0xfffff stur w8, [x29, #-16] ldur w8, [x29, #-4] asr w8, w8, #7 and w8, w8, #0x1 stur w8, [x29, #-12] ldursw x9, [x29, #-8] adrp x8, _mods@PAGE add x8, x8, _mods@PAGEOFF ldr x8, [x8, x9, lsl #3] stur x8, [x29, #-24] ldur w8, [x29, #-12] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB17_5 b LBB17_1 LBB17_1: ldur w8, [x29, #-16] subs w8, w8, #128, lsl #12 ; =524288 cset w8, ge tbnz w8, #0, LBB17_3 b LBB17_2 LBB17_2: ldur w8, [x29, #-16] stur w8, [x29, #-28] ; 4-byte Folded Spill b LBB17_4 LBB17_3: ldur w8, [x29, #-16] and w8, w8, #0x7ffff subs w8, w8, #128, lsl #12 ; =524288 stur w8, [x29, #-28] ; 4-byte Folded Spill b LBB17_4 LBB17_4: ldur w8, [x29, #-28] ; 4-byte Folded Reload ldur x9, [x29, #-24] str w8, [x9, #8] ldur x8, [x29, #-24] ldr s1, [x8, #8] ; implicit-def: $d0 fmov s0, s1 sshll.2d v0, v0, #0 ; kill: def $d0 killed $d0 killed $q0 scvtf d0, d0 adrp x8, lCPI17_0@PAGE ldr d1, [x8, lCPI17_0@PAGEOFF] fdiv d0, d0, d1 ldur x8, [x29, #-24] str d0, [x8, #72] b LBB17_9 LBB17_5: ldur w8, [x29, #-16] subs w8, w8, #128, lsl #12 ; =524288 cset w8, ge tbnz w8, #0, LBB17_7 b LBB17_6 LBB17_6: ldur w8, [x29, #-16] str w8, [sp, #32] ; 4-byte Folded Spill b LBB17_8 LBB17_7: ldur w8, [x29, #-16] and w8, w8, #0x7ffff subs w8, w8, #128, lsl #12 ; =524288 str w8, [sp, #32] ; 4-byte Folded Spill b LBB17_8 LBB17_8: ldr w8, [sp, #32] ; 4-byte Folded Reload ldur x9, [x29, #-24] str w8, [x9, #12] ldur x8, [x29, #-24] ldr s1, [x8, #12] ; implicit-def: $d0 fmov s0, s1 sshll.2d v0, v0, #0 ; kill: def $d0 killed $d0 killed $q0 scvtf d0, d0 adrp x8, lCPI17_0@PAGE ldr d1, [x8, lCPI17_0@PAGEOFF] fdiv d0, d0, d1 ldur x8, [x29, #-24] str d0, [x8, #80] b LBB17_9 LBB17_9: adrp x8, _describe_commands@PAGE ldrb w8, [x8, _describe_commands@PAGEOFF] tbz w8, #0, LBB17_14 b LBB17_10 LBB17_10: ldur w8, [x29, #-12] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB17_12 b LBB17_11 LBB17_11: adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] ldr x0, [x8] ldur w8, [x29, #-8] ; implicit-def: $x11 mov x11, x8 ldur w8, [x29, #-16] ; implicit-def: $x10 mov x10, x8 ldur x8, [x29, #-24] ldr w8, [x8, #8] ; implicit-def: $x9 mov x9, x8 ldur x8, [x29, #-24] ldr d0, [x8, #72] mov x8, sp str x11, [x8] str x10, [x8, #8] str x9, [x8, #16] str d0, [x8, #24] adrp x1, l_.str.162@PAGE add x1, x1, l_.str.162@PAGEOFF bl _fprintf b LBB17_13 LBB17_12: adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] ldr x0, [x8] ldur w8, [x29, #-8] ; implicit-def: $x11 mov x11, x8 ldur w8, [x29, #-16] ; implicit-def: $x10 mov x10, x8 ldur x8, [x29, #-24] ldr w8, [x8, #12] ; implicit-def: $x9 mov x9, x8 ldur x8, [x29, #-24] ldr d0, [x8, #80] mov x8, sp str x11, [x8] str x10, [x8, #8] str x9, [x8, #16] str d0, [x8, #24] adrp x1, l_.str.163@PAGE add x1, x1, l_.str.163@PAGEOFF bl _fprintf b LBB17_13 LBB17_13: b LBB17_14 LBB17_14: ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function mmode_command _mmode_command: ; @mmode_command .cfi_startproc ; %bb.0: sub sp, sp, #128 .cfi_def_cfa_offset 128 stp x29, x30, [sp, #112] ; 16-byte Folded Spill add x29, sp, #112 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] stur x8, [x29, #-48] ; 8-byte Folded Spill stur w0, [x29, #-4] ldur w8, [x29, #-4] asr w8, w8, #0 and w8, w8, #0x7f stur w8, [x29, #-8] ldur w8, [x29, #-4] asr w8, w8, #12 and w8, w8, #0x7f stur w8, [x29, #-12] ldur w8, [x29, #-4] asr w8, w8, #19 and w8, w8, #0x1ff stur w8, [x29, #-16] ldur w8, [x29, #-4] asr w8, w8, #31 and w8, w8, #0x1 stur w8, [x29, #-20] ldur w8, [x29, #-4] asr w8, w8, #30 and w8, w8, #0x1 stur w8, [x29, #-24] ldur w8, [x29, #-4] asr w8, w8, #29 and w8, w8, #0x1 stur w8, [x29, #-28] ldur w8, [x29, #-4] asr w8, w8, #28 and w8, w8, #0x1 stur w8, [x29, #-32] ldursw x9, [x29, #-8] adrp x8, _mods@PAGE add x8, x8, _mods@PAGEOFF ldr x8, [x8, x9, lsl #3] stur x8, [x29, #-40] ldur w8, [x29, #-24] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB18_2 b LBB18_1 LBB18_1: ldur w8, [x29, #-12] ldur x9, [x29, #-40] str w8, [x9, #24] b LBB18_2 LBB18_2: ldur w8, [x29, #-28] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB18_4 b LBB18_3 LBB18_3: ldur x8, [x29, #-40] str wzr, [x8, #8] ldur x8, [x29, #-40] movi d0, #0000000000000000 str d0, [x8, #72] b LBB18_4 LBB18_4: ldur w8, [x29, #-32] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB18_9 b LBB18_5 LBB18_5: ldur w8, [x29, #-16] and w9, w8, #0x3 mov w8, #1 lsl w9, w8, w9 ldur x10, [x29, #-40] str w9, [x10, #40] ldur w9, [x29, #-16] asr w9, w9, #2 and w9, w9, #0x3 lsl w8, w8, w9 ldur x9, [x29, #-40] str w8, [x9, #44] ldur x8, [x29, #-40] ldr w8, [x8, #48] mov w9, #4 sdiv w8, w8, w9 ldur x10, [x29, #-40] ldr w10, [x10, #44] mul w8, w8, w10 ldur x10, [x29, #-40] str w8, [x10] ldur x8, [x29, #-40] ldr w8, [x8, #52] sdiv w8, w8, w9 ldur x9, [x29, #-40] ldr w9, [x9, #40] mul w8, w8, w9 ldur x9, [x29, #-40] str w8, [x9, #4] ldur x8, [x29, #-40] ldr d0, [x8, #88] ldur x8, [x29, #-40] ldr s2, [x8, #44] ; implicit-def: $d1 fmov s1, s2 sshll.2d v1, v1, #0 ; kill: def $d1 killed $d1 killed $q1 scvtf d1, d1 fmul d0, d0, d1 ldur x8, [x29, #-40] str d0, [x8, #56] ldur x8, [x29, #-40] ldr d0, [x8, #96] ldur x8, [x29, #-40] ldr s2, [x8, #40] ; implicit-def: $d1 fmov s1, s2 sshll.2d v1, v1, #0 ; kill: def $d1 killed $d1 killed $q1 scvtf d1, d1 fmul d0, d0, d1 ldur x8, [x29, #-40] str d0, [x8, #64] ldur w8, [x29, #-20] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB18_7 b LBB18_6 LBB18_6: ldur w8, [x29, #-16] ldur x9, [x29, #-40] str w8, [x9, #28] b LBB18_8 LBB18_7: ldur w8, [x29, #-16] and w8, w8, #0xf ldur x9, [x29, #-40] ldr w9, [x9, #28] and w9, w9, #0x1f0 add w8, w8, w9 ldur x9, [x29, #-40] str w8, [x9, #28] b LBB18_8 LBB18_8: b LBB18_12 LBB18_9: ldur w8, [x29, #-20] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB18_11 b LBB18_10 LBB18_10: ldur w8, [x29, #-16] and w8, w8, #0x1f0 ldur x9, [x29, #-40] ldr w9, [x9, #28] and w9, w9, #0xf add w8, w8, w9 ldur x9, [x29, #-40] str w8, [x9, #28] b LBB18_11 LBB18_11: b LBB18_12 LBB18_12: adrp x8, _describe_commands@PAGE ldrb w8, [x8, _describe_commands@PAGEOFF] tbz w8, #0, LBB18_31 b LBB18_13 LBB18_13: ldur x8, [x29, #-48] ; 8-byte Folded Reload ldr x0, [x8] ldur w9, [x29, #-8] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x1, l_.str.164@PAGE add x1, x1, l_.str.164@PAGEOFF bl _fprintf ldur w8, [x29, #-20] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB18_15 b LBB18_14 LBB18_14: ldur x8, [x29, #-48] ; 8-byte Folded Reload ldr x8, [x8] str x8, [sp, #56] ; 8-byte Folded Spill ldur w8, [x29, #-16] asr w0, w8, #4 bl _mode_name mov x8, x0 ldr x0, [sp, #56] ; 8-byte Folded Reload mov x9, sp str x8, [x9] adrp x1, l_.str.165@PAGE add x1, x1, l_.str.165@PAGEOFF bl _fprintf b LBB18_15 LBB18_15: ldur w8, [x29, #-32] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB18_19 b LBB18_16 LBB18_16: ldur w8, [x29, #-20] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB18_18 b LBB18_17 LBB18_17: ldur x8, [x29, #-48] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.145@PAGE add x1, x1, l_.str.145@PAGEOFF bl _fprintf b LBB18_18 LBB18_18: ldur x8, [x29, #-48] ; 8-byte Folded Reload ldr x0, [x8] ldur w8, [x29, #-16] asr w8, w8, #2 and w13, w8, #0x3 ldur w8, [x29, #-16] and w12, w8, #0x3 ldur x8, [x29, #-40] ldr w8, [x8] ; implicit-def: $x10 mov x10, x8 ldur x8, [x29, #-40] ldr d1, [x8, #56] ldur x8, [x29, #-40] ldr w8, [x8, #4] ; implicit-def: $x9 mov x9, x8 ldur x8, [x29, #-40] ldr d0, [x8, #64] mov x8, sp ; implicit-def: $x11 mov x11, x13 str x11, [x8] ; implicit-def: $x11 mov x11, x12 str x11, [x8, #8] str x10, [x8, #16] str d1, [x8, #24] str x9, [x8, #32] str d0, [x8, #40] adrp x1, l_.str.166@PAGE add x1, x1, l_.str.166@PAGEOFF bl _fprintf b LBB18_19 LBB18_19: ldur w8, [x29, #-24] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB18_24 b LBB18_20 LBB18_20: ldur w8, [x29, #-32] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB18_22 b LBB18_21 LBB18_21: ldur w8, [x29, #-20] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB18_23 b LBB18_22 LBB18_22: ldur x8, [x29, #-48] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.145@PAGE add x1, x1, l_.str.145@PAGEOFF bl _fprintf b LBB18_23 LBB18_23: ldur x8, [x29, #-48] ; 8-byte Folded Reload ldr x0, [x8] ldur w8, [x29, #-12] asr w8, w8, #6 subs w8, w8, #0 cset w8, eq and w10, w8, #0x1 adrp x9, l_.str.169@PAGE add x9, x9, l_.str.169@PAGEOFF adrp x8, l_.str.168@PAGE add x8, x8, l_.str.168@PAGEOFF ands w10, w10, #0x1 csel x8, x8, x9, ne ldur w9, [x29, #-12] and w10, w9, #0x3f mov x9, sp str x8, [x9] ; implicit-def: $x8 mov x8, x10 str x8, [x9, #8] adrp x1, l_.str.167@PAGE add x1, x1, l_.str.167@PAGEOFF bl _fprintf b LBB18_24 LBB18_24: ldur w8, [x29, #-28] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB18_30 b LBB18_25 LBB18_25: ldur w8, [x29, #-24] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB18_28 b LBB18_26 LBB18_26: ldur w8, [x29, #-32] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB18_28 b LBB18_27 LBB18_27: ldur w8, [x29, #-20] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB18_29 b LBB18_28 LBB18_28: ldur x8, [x29, #-48] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.145@PAGE add x1, x1, l_.str.145@PAGEOFF bl _fprintf b LBB18_29 LBB18_29: ldur x8, [x29, #-48] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.170@PAGE add x1, x1, l_.str.170@PAGEOFF bl _fprintf b LBB18_30 LBB18_30: ldur x8, [x29, #-48] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.17@PAGE add x1, x1, l_.str.17@PAGEOFF bl _fprintf b LBB18_31 LBB18_31: ldur w8, [x29, #-16] asr w8, w8, #4 subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB18_34 b LBB18_32 LBB18_32: ldur w9, [x29, #-8] adrp x8, _processing_ticks@PAGE ldr w8, [x8, _processing_ticks@PAGEOFF] subs w8, w8, w9, lsl #1 cset w8, gt tbnz w8, #0, LBB18_34 b LBB18_33 LBB18_33: ldur x8, [x29, #-48] ; 8-byte Folded Reload ldr x0, [x8] adrp x8, _samples@PAGE ldr w9, [x8, _samples@PAGEOFF] ; implicit-def: $x12 mov x12, x9 ldr s1, [x8, _samples@PAGEOFF] ; implicit-def: $d0 fmov s0, s1 sshll.2d v0, v0, #0 ; kill: def $d0 killed $d0 killed $q0 scvtf d0, d0 adrp x8, _srate@PAGE ldr s2, [x8, _srate@PAGEOFF] ; implicit-def: $d1 fmov s1, s2 sshll.2d v1, v1, #0 ; kill: def $d1 killed $d1 killed $q1 scvtf d1, d1 fdiv d0, d0, d1 adrp x8, _current_command@PAGE ldr w8, [x8, _current_command@PAGEOFF] ; implicit-def: $x11 mov x11, x8 ldur w8, [x29, #-8] ; implicit-def: $x10 mov x10, x8 adrp x8, _processing_ticks@PAGE ldr w9, [x8, _processing_ticks@PAGEOFF] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x12, [x9] str d0, [x9, #8] str x11, [x9, #16] str x10, [x9, #24] str x8, [x9, #32] adrp x1, l_.str.171@PAGE add x1, x1, l_.str.171@PAGEOFF bl _fprintf b LBB18_34 LBB18_34: ldp x29, x30, [sp, #112] ; 16-byte Folded Reload add sp, sp, #128 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function mrm_command _mrm_command: ; @mrm_command .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, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] str x8, [sp, #16] ; 8-byte Folded Spill stur w0, [x29, #-4] ldur w8, [x29, #-4] asr w8, w8, #0 and w8, w8, #0x7f stur w8, [x29, #-8] ldur w8, [x29, #-4] asr w8, w8, #12 and w8, w8, #0xff stur w8, [x29, #-16] ldur w8, [x29, #-4] asr w8, w8, #20 and w8, w8, #0xff stur w8, [x29, #-12] ldur w8, [x29, #-4] asr w8, w8, #31 and w8, w8, #0x1 stur w8, [x29, #-20] ldur w8, [x29, #-4] asr w8, w8, #30 and w8, w8, #0x1 stur w8, [x29, #-24] ldur w8, [x29, #-4] asr w8, w8, #28 and w8, w8, #0x3 stur w8, [x29, #-28] ldursw x9, [x29, #-8] adrp x8, _mods@PAGE add x8, x8, _mods@PAGEOFF ldr x8, [x8, x9, lsl #3] str x8, [sp, #24] ldur w8, [x29, #-20] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB19_2 b LBB19_1 LBB19_1: ldur w8, [x29, #-12] ldr x9, [sp, #24] str w8, [x9, #20] b LBB19_2 LBB19_2: ldur w8, [x29, #-24] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB19_4 b LBB19_3 LBB19_3: ldur w8, [x29, #-16] ldr x9, [sp, #24] str w8, [x9, #16] b LBB19_4 LBB19_4: ldur w8, [x29, #-28] str w8, [sp, #12] ; 4-byte Folded Spill subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB19_7 b LBB19_5 LBB19_5: ldr w8, [sp, #12] ; 4-byte Folded Reload subs w8, w8, #1 cset w8, eq tbnz w8, #0, LBB19_8 b LBB19_6 LBB19_6: ldr w8, [sp, #12] ; 4-byte Folded Reload subs w8, w8, #2 cset w8, eq tbnz w8, #0, LBB19_9 b LBB19_10 LBB19_7: ldr x8, [sp, #24] str wzr, [x8, #36] b LBB19_10 LBB19_8: ldr x9, [sp, #24] mov w8, #1 str w8, [x9, #36] b LBB19_10 LBB19_9: ldr x8, [sp, #24] str wzr, [x8, #12] ldr x8, [sp, #24] movi d0, #0000000000000000 str d0, [x8, #80] b LBB19_10 LBB19_10: adrp x8, _describe_commands@PAGE ldrb w8, [x8, _describe_commands@PAGEOFF] tbz w8, #0, LBB19_25 b LBB19_11 LBB19_11: ldr x8, [sp, #16] ; 8-byte Folded Reload ldr x0, [x8] ldur w9, [x29, #-8] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x1, l_.str.172@PAGE add x1, x1, l_.str.172@PAGEOFF bl _fprintf ldur w8, [x29, #-20] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB19_16 b LBB19_12 LBB19_12: ldr x8, [sp, #24] ldr w8, [x8, #28] asr w8, w8, #4 and w8, w8, #0x1f subs w8, w8, #7 cset w8, ne tbnz w8, #0, LBB19_14 b LBB19_13 LBB19_13: ldr x8, [sp, #16] ; 8-byte Folded Reload ldr x0, [x8] ldur w8, [x29, #-12] and w10, w8, #0x1f mov x9, sp ; implicit-def: $x8 mov x8, x10 str x8, [x9] adrp x1, l_.str.173@PAGE add x1, x1, l_.str.173@PAGEOFF bl _fprintf b LBB19_15 LBB19_14: ldr x8, [sp, #16] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.174@PAGE add x1, x1, l_.str.174@PAGEOFF bl _fprintf ldur w0, [x29, #-12] bl _print_mod_read_name b LBB19_15 LBB19_15: b LBB19_16 LBB19_16: ldur w8, [x29, #-24] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB19_18 b LBB19_17 LBB19_17: ldr x8, [sp, #16] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.175@PAGE add x1, x1, l_.str.175@PAGEOFF bl _fprintf ldur w0, [x29, #-16] bl _print_mod_read_name b LBB19_18 LBB19_18: ldur w8, [x29, #-28] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB19_20 b LBB19_19 LBB19_19: ldr x8, [sp, #16] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.176@PAGE add x1, x1, l_.str.176@PAGEOFF bl _fprintf b LBB19_20 LBB19_20: ldur w8, [x29, #-28] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB19_22 b LBB19_21 LBB19_21: ldr x8, [sp, #16] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.177@PAGE add x1, x1, l_.str.177@PAGEOFF bl _fprintf b LBB19_22 LBB19_22: ldur w8, [x29, #-28] subs w8, w8, #2 cset w8, ne tbnz w8, #0, LBB19_24 b LBB19_23 LBB19_23: ldr x8, [sp, #16] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.178@PAGE add x1, x1, l_.str.178@PAGEOFF bl _fprintf b LBB19_24 LBB19_24: ldr x8, [sp, #16] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.17@PAGE add x1, x1, l_.str.17@PAGEOFF bl _fprintf b LBB19_25 LBB19_25: ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function P_name _P_name: ; @P_name .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str w0, [sp, #20] ldr w8, [sp, #20] subs w8, w8, #0 ; kill: def $x8 killed $w8 str x8, [sp, #8] ; 8-byte Folded Spill subs x8, x8, #12 cset w8, hi tbnz w8, #0, LBB20_7 ; %bb.1: ldr x11, [sp, #8] ; 8-byte Folded Reload adrp x10, lJTI20_0@PAGE add x10, x10, lJTI20_0@PAGEOFF Ltmp5: adr x8, Ltmp5 ldrsw x9, [x10, x11, lsl #2] add x8, x8, x9 br x8 LBB20_2: adrp x8, l_.str.18@PAGE add x8, x8, l_.str.18@PAGEOFF str x8, [sp, #24] b LBB20_8 LBB20_3: adrp x8, l_.str.19@PAGE add x8, x8, l_.str.19@PAGEOFF str x8, [sp, #24] b LBB20_8 LBB20_4: adrp x8, l_.str.20@PAGE add x8, x8, l_.str.20@PAGEOFF str x8, [sp, #24] b LBB20_8 LBB20_5: adrp x8, l_.str.21@PAGE add x8, x8, l_.str.21@PAGEOFF str x8, [sp, #24] b LBB20_8 LBB20_6: adrp x8, l_.str.22@PAGE add x8, x8, l_.str.22@PAGEOFF str x8, [sp, #24] b LBB20_8 LBB20_7: adrp x8, l_.str.23@PAGE add x8, x8, l_.str.23@PAGEOFF str x8, [sp, #24] b LBB20_8 LBB20_8: ldr x0, [sp, #24] add sp, sp, #32 ret .cfi_endproc .p2align 2 lJTI20_0: .long LBB20_2-Ltmp5 .long LBB20_7-Ltmp5 .long LBB20_7-Ltmp5 .long LBB20_7-Ltmp5 .long LBB20_7-Ltmp5 .long LBB20_7-Ltmp5 .long LBB20_7-Ltmp5 .long LBB20_7-Ltmp5 .long LBB20_3-Ltmp5 .long LBB20_7-Ltmp5 .long LBB20_5-Ltmp5 .long LBB20_6-Ltmp5 .long LBB20_4-Ltmp5 ; -- End function .p2align 2 ; -- Begin function set_osc_run _set_osc_run: ; @set_osc_run .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur w0, [x29, #-4] str w1, [sp, #8] ldur w8, [x29, #-4] subs w8, w8, #256 cset w8, lt tbnz w8, #0, LBB21_2 b LBB21_1 LBB21_1: adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] ldr x0, [x8] adrp x1, l_.str.34@PAGE add x1, x1, l_.str.34@PAGEOFF bl _fprintf stur wzr, [x29, #-4] b LBB21_2 LBB21_2: ldursw x9, [x29, #-4] adrp x8, _gens@PAGE add x8, x8, _gens@PAGEOFF ldr x8, [x8, x9, lsl #3] str x8, [sp] ldr x8, [sp] ldr w8, [x8, #44] ldr w9, [sp, #8] bfi w8, w9, #6, #26 ldr x9, [sp] str w8, [x9, #44] ldr x8, [sp] ldr w8, [x8, #44] subs w8, w8, #3 cset w8, ne tbnz w8, #0, LBB21_4 b LBB21_3 LBB21_3: ldr x9, [sp] mov w8, #2 str w8, [x9, #44] b LBB21_4 LBB21_4: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function linger _linger: ; @linger .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, _snd_file@PAGE ldr x8, [x8, _snd_file@PAGEOFF] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB22_2 b LBB22_1 LBB22_1: adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] ldr x0, [x8] adrp x1, l_.str.47@PAGE add x1, x1, l_.str.47@PAGEOFF bl _fprintf mov w0, #0 bl _exit LBB22_2: ldur w8, [x29, #-4] adrp x9, _pass@PAGE ldr w9, [x9, _pass@PAGEOFF] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB22_4 b LBB22_3 LBB22_3: adrp x9, _pass@PAGE ldr w8, [x9, _pass@PAGEOFF] subs w8, w8, #256, lsl #12 ; =1048576 str w8, [x9, _pass@PAGEOFF] b LBB22_4 LBB22_4: b LBB22_5 LBB22_5: ; =>This Loop Header: Depth=1 ; Child Loop BB22_7 Depth 2 ; Child Loop BB22_21 Depth 2 ; Child Loop BB22_29 Depth 2 adrp x8, _pass@PAGE ldr w8, [x8, _pass@PAGEOFF] ldur w9, [x29, #-4] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB22_37 b LBB22_6 LBB22_6: ; in Loop: Header=BB22_5 Depth=1 str wzr, [sp, #16] str wzr, [sp, #12] str wzr, [sp, #8] stur wzr, [x29, #-12] b LBB22_7 LBB22_7: ; Parent Loop BB22_5 Depth=1 ; => This Inner Loop Header: Depth=2 ldur w8, [x29, #-12] adrp x9, _processing_ticks@PAGE ldr w9, [x9, _processing_ticks@PAGEOFF] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB22_18 b LBB22_8 LBB22_8: ; in Loop: Header=BB22_7 Depth=2 ldr w8, [sp, #16] subs w8, w8, #256 cset w8, ge tbnz w8, #0, LBB22_10 b LBB22_9 LBB22_9: ; in Loop: Header=BB22_7 Depth=2 ldr w0, [sp, #16] add w8, w0, #1 str w8, [sp, #16] bl _process_gen b LBB22_10 LBB22_10: ; in Loop: Header=BB22_7 Depth=2 ldur w8, [x29, #-12] ands w8, w8, #0x1 cset w8, ne tbnz w8, #0, LBB22_13 b LBB22_11 LBB22_11: ; in Loop: Header=BB22_7 Depth=2 ldr w8, [sp, #12] subs w8, w8, #128 cset w8, ge tbnz w8, #0, LBB22_13 b LBB22_12 LBB22_12: ; in Loop: Header=BB22_7 Depth=2 ldr w0, [sp, #12] add w8, w0, #1 str w8, [sp, #12] bl _process_mod b LBB22_13 LBB22_13: ; in Loop: Header=BB22_7 Depth=2 ldur w8, [x29, #-12] ands w8, w8, #0x3 cset w8, ne tbnz w8, #0, LBB22_16 b LBB22_14 LBB22_14: ; in Loop: Header=BB22_7 Depth=2 ldr w8, [sp, #8] subs w8, w8, #32 cset w8, ge tbnz w8, #0, LBB22_16 b LBB22_15 LBB22_15: ; in Loop: Header=BB22_7 Depth=2 ldr w0, [sp, #8] add w8, w0, #1 str w8, [sp, #8] bl _process_dly b LBB22_16 LBB22_16: ; in Loop: Header=BB22_7 Depth=2 b LBB22_17 LBB22_17: ; in Loop: Header=BB22_7 Depth=2 ldur w8, [x29, #-12] add w8, w8, #1 stur w8, [x29, #-12] b LBB22_7 LBB22_18: ; in Loop: Header=BB22_5 Depth=1 adrp x8, _dump_patch_at@PAGE ldr w8, [x8, _dump_patch_at@PAGEOFF] adrp x9, _samples@PAGE ldr w9, [x9, _samples@PAGEOFF] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB22_20 b LBB22_19 LBB22_19: ; in Loop: Header=BB22_5 Depth=1 bl _dump_patch b LBB22_20 LBB22_20: ; in Loop: Header=BB22_5 Depth=1 stur wzr, [x29, #-8] b LBB22_21 LBB22_21: ; Parent Loop BB22_5 Depth=1 ; => This Inner Loop Header: Depth=2 ldur w8, [x29, #-8] subs w8, w8, #64 cset w8, ge tbnz w8, #0, LBB22_28 b LBB22_22 LBB22_22: ; in Loop: Header=BB22_21 Depth=2 ldursw x9, [x29, #-8] adrp x8, _gen_ins@PAGE add x8, x8, _gen_ins@PAGEOFF ldr d0, [x8, x9, lsl #3] fabs d0, d0 ldursw x9, [x29, #-8] adrp x8, _peak_gen_ins@PAGE add x8, x8, _peak_gen_ins@PAGEOFF ldr d1, [x8, x9, lsl #3] fcmp d0, d1 cset w8, le tbnz w8, #0, LBB22_24 b LBB22_23 LBB22_23: ; in Loop: Header=BB22_21 Depth=2 ldursw x9, [x29, #-8] adrp x8, _gen_ins@PAGE add x8, x8, _gen_ins@PAGEOFF ldr d0, [x8, x9, lsl #3] fabs d0, d0 ldursw x9, [x29, #-8] adrp x8, _peak_gen_ins@PAGE add x8, x8, _peak_gen_ins@PAGEOFF str d0, [x8, x9, lsl #3] b LBB22_24 LBB22_24: ; in Loop: Header=BB22_21 Depth=2 ldursw x8, [x29, #-8] adrp x9, _gen_ins@PAGE add x9, x9, _gen_ins@PAGEOFF ldr d0, [x9, x8, lsl #3] ldursw x10, [x29, #-8] adrp x8, _prev_gen_ins@PAGE add x8, x8, _prev_gen_ins@PAGEOFF str d0, [x8, x10, lsl #3] ldursw x10, [x29, #-8] adrp x8, _gen_outs@PAGE add x8, x8, _gen_outs@PAGEOFF ldr d0, [x8, x10, lsl #3] ldursw x10, [x29, #-8] str d0, [x9, x10, lsl #3] ldursw x9, [x29, #-8] movi d0, #0000000000000000 str d0, [x8, x9, lsl #3] ldursw x9, [x29, #-8] adrp x8, _mod_ins@PAGE add x8, x8, _mod_ins@PAGEOFF ldr d0, [x8, x9, lsl #3] fabs d0, d0 ldursw x9, [x29, #-8] adrp x8, _peak_mod_ins@PAGE add x8, x8, _peak_mod_ins@PAGEOFF ldr d1, [x8, x9, lsl #3] fcmp d0, d1 cset w8, le tbnz w8, #0, LBB22_26 b LBB22_25 LBB22_25: ; in Loop: Header=BB22_21 Depth=2 ldursw x9, [x29, #-8] adrp x8, _mod_ins@PAGE add x8, x8, _mod_ins@PAGEOFF ldr d0, [x8, x9, lsl #3] fabs d0, d0 ldursw x9, [x29, #-8] adrp x8, _peak_mod_ins@PAGE add x8, x8, _peak_mod_ins@PAGEOFF str d0, [x8, x9, lsl #3] b LBB22_26 LBB22_26: ; in Loop: Header=BB22_21 Depth=2 ldursw x8, [x29, #-8] adrp x9, _mod_ins@PAGE add x9, x9, _mod_ins@PAGEOFF ldr d0, [x9, x8, lsl #3] ldursw x10, [x29, #-8] adrp x8, _prev_mod_ins@PAGE add x8, x8, _prev_mod_ins@PAGEOFF str d0, [x8, x10, lsl #3] ldursw x10, [x29, #-8] adrp x8, _mod_outs@PAGE add x8, x8, _mod_outs@PAGEOFF ldr d0, [x8, x10, lsl #3] ldursw x10, [x29, #-8] str d0, [x9, x10, lsl #3] ldursw x9, [x29, #-8] movi d0, #0000000000000000 str d0, [x8, x9, lsl #3] b LBB22_27 LBB22_27: ; in Loop: Header=BB22_21 Depth=2 ldur w8, [x29, #-8] add w8, w8, #1 stur w8, [x29, #-8] b LBB22_21 LBB22_28: ; in Loop: Header=BB22_5 Depth=1 adrp x8, _snd_file@PAGE ldr x3, [x8, _snd_file@PAGEOFF] adrp x0, _dac_out@PAGE add x0, x0, _dac_out@PAGEOFF mov x2, #4 mov x1, x2 bl _fwrite adrp x9, _samples@PAGE ldr w8, [x9, _samples@PAGEOFF] add w8, w8, #1 str w8, [x9, _samples@PAGEOFF] stur wzr, [x29, #-8] b LBB22_29 LBB22_29: ; Parent Loop BB22_5 Depth=1 ; => This Inner Loop Header: Depth=2 ldur w8, [x29, #-8] subs w8, w8, #4 cset w8, ge tbnz w8, #0, LBB22_34 b LBB22_30 LBB22_30: ; in Loop: Header=BB22_29 Depth=2 ldursw x9, [x29, #-8] adrp x8, _dac_out@PAGE add x8, x8, _dac_out@PAGEOFF ldr s0, [x8, x9, lsl #2] fcvt d0, s0 fabs d0, d0 ldursw x9, [x29, #-8] adrp x8, _dac_out_peak@PAGE add x8, x8, _dac_out_peak@PAGEOFF ldr s1, [x8, x9, lsl #2] fcvt d1, s1 fcmp d0, d1 cset w8, le tbnz w8, #0, LBB22_32 b LBB22_31 LBB22_31: ; in Loop: Header=BB22_29 Depth=2 ldursw x9, [x29, #-8] adrp x8, _dac_out@PAGE add x8, x8, _dac_out@PAGEOFF ldr s0, [x8, x9, lsl #2] fcvt d0, s0 fabs d0, d0 fcvt s0, d0 ldursw x9, [x29, #-8] adrp x8, _dac_out_peak@PAGE add x8, x8, _dac_out_peak@PAGEOFF str s0, [x8, x9, lsl #2] b LBB22_32 LBB22_32: ; in Loop: Header=BB22_29 Depth=2 ldursw x9, [x29, #-8] adrp x8, _dac_out@PAGE add x8, x8, _dac_out@PAGEOFF movi d0, #0000000000000000 str s0, [x8, x9, lsl #2] b LBB22_33 LBB22_33: ; in Loop: Header=BB22_29 Depth=2 ldur w8, [x29, #-8] add w8, w8, #1 stur w8, [x29, #-8] b LBB22_29 LBB22_34: ; in Loop: Header=BB22_5 Depth=1 adrp x9, _pass@PAGE ldr w8, [x9, _pass@PAGEOFF] add w8, w8, #1 str w8, [x9, _pass@PAGEOFF] adrp x8, _samples@PAGE ldr w8, [x8, _samples@PAGEOFF] adds w8, w8, #1 cset w8, ne tbnz w8, #0, LBB22_36 b LBB22_35 LBB22_35: ; in Loop: Header=BB22_5 Depth=1 bl _all_done b LBB22_36 LBB22_36: ; in Loop: Header=BB22_5 Depth=1 b LBB22_5 LBB22_37: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ; -- Begin function process_gen lCPI23_0: .quad 0x4040000000000000 ; double 32 lCPI23_1: .quad 0x400921fb54442d18 ; double 3.1415926535897931 lCPI23_2: .quad 0x4070000000000000 ; double 256 .section __TEXT,__text,regular,pure_instructions .p2align 2 _process_gen: ; @process_gen .cfi_startproc ; %bb.0: sub sp, sp, #160 .cfi_def_cfa_offset 160 stp x29, x30, [sp, #144] ; 16-byte Folded Spill add x29, sp, #144 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur w0, [x29, #-4] ldursw x9, [x29, #-4] adrp x8, _gens@PAGE add x8, x8, _gens@PAGEOFF ldr x8, [x8, x9, lsl #3] stur x8, [x29, #-16] ldur x8, [x29, #-16] ldr w8, [x8, #44] asr w8, w8, #6 ands w8, w8, #0xf cset w8, ne tbnz w8, #0, LBB23_2 b LBB23_1 LBB23_1: b LBB23_73 LBB23_2: ldur x8, [x29, #-16] ldr w8, [x8, #44] asr w8, w8, #6 and w8, w8, #0xf subs w8, w8, #3 cset w8, ne tbnz w8, #0, LBB23_4 b LBB23_3 LBB23_3: b LBB23_73 LBB23_4: ldur x8, [x29, #-16] ldr w8, [x8, #36] asr w8, w8, #6 subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB23_6 b LBB23_5 LBB23_5: ldur x8, [x29, #-16] ldr w8, [x8, #36] and w9, w8, #0x3f adrp x8, _gen_ins@PAGE add x8, x8, _gen_ins@PAGEOFF ldr d0, [x8, w9, sxtw #3] stur d0, [x29, #-24] b LBB23_7 LBB23_6: ldur x8, [x29, #-16] ldr w8, [x8, #36] and w9, w8, #0x3f adrp x8, _mod_ins@PAGE add x8, x8, _mod_ins@PAGEOFF ldr d0, [x8, w9, sxtw #3] stur d0, [x29, #-24] b LBB23_7 LBB23_7: ldur d0, [x29, #-24] ldur x8, [x29, #-16] ldr d1, [x8, #56] fadd d0, d0, d1 stur d0, [x29, #-32] ldur x8, [x29, #-16] ldr w0, [x8, #44] bl _osc_is_running tbz w0, #0, LBB23_9 b LBB23_8 LBB23_8: ldur x8, [x29, #-16] ldr d0, [x8, #48] adrp x8, lCPI23_2@PAGE ldr d1, [x8, lCPI23_2@PAGEOFF] fdiv d1, d0, d1 ldur x8, [x29, #-16] ldr d0, [x8, #56] fadd d0, d0, d1 str d0, [x8, #56] b LBB23_9 LBB23_9: ldur x8, [x29, #-16] ldr w8, [x8, #44] and w8, w8, #0xf subs w8, w8, #8 cset w8, ne tbnz w8, #0, LBB23_11 b LBB23_10 LBB23_10: ldur d0, [x29, #-32] stur d0, [x29, #-40] b LBB23_12 LBB23_11: ldur x8, [x29, #-16] ldr d0, [x8, #64] stur d0, [x29, #-40] b LBB23_12 LBB23_12: ldur x8, [x29, #-16] ldr w0, [x8, #44] bl _osc_is_running tbz w0, #0, LBB23_14 b LBB23_13 LBB23_13: ldur d1, [x29, #-32] ldur x8, [x29, #-16] ldr d0, [x8, #64] fadd d0, d0, d1 str d0, [x8, #64] b LBB23_14 LBB23_14: ldur x8, [x29, #-16] ldr w8, [x8, #44] asr w8, w8, #6 and w8, w8, #0xf subs w8, w8, #2 cset w8, ne tbnz w8, #0, LBB23_16 b LBB23_15 LBB23_15: ldur d0, [x29, #-24] ldur x8, [x29, #-16] ldr w8, [x8] and w0, w8, #0xf bl _dac_write b LBB23_73 LBB23_16: ldur x8, [x29, #-16] ldr w8, [x8, #44] ands w8, w8, #0xf cset w8, eq tbnz w8, #0, LBB23_22 b LBB23_17 LBB23_17: ldur x8, [x29, #-16] ldr w8, [x8, #44] and w8, w8, #0xf subs w8, w8, #8 cset w8, eq tbnz w8, #0, LBB23_22 b LBB23_18 LBB23_18: ldur d0, [x29, #-40] ldur x8, [x29, #-16] ldr s2, [x8, #12] ; implicit-def: $d1 fmov s1, s2 sshll.2d v1, v1, #0 ; kill: def $d1 killed $d1 killed $q1 scvtf d1, d1 fmul d0, d0, d1 stur d0, [x29, #-48] ldur d0, [x29, #-40] stur d0, [x29, #-56] ldur d0, [x29, #-56] fmov d1, #1.00000000 bl _fmod fcmp d0, #0.0 cset w8, eq tbnz w8, #0, LBB23_20 b LBB23_19 LBB23_19: ldur d1, [x29, #-48] adrp x8, lCPI23_1@PAGE ldr d0, [x8, lCPI23_1@PAGEOFF] str d0, [sp, #8] ; 8-byte Folded Spill fmul d0, d0, d1 bl _sin fmov d1, d0 ldr d0, [sp, #8] ; 8-byte Folded Reload str d1, [sp, #16] ; 8-byte Folded Spill ldur d1, [x29, #-56] fmul d0, d0, d1 bl _sin fmov d1, d0 ldr d0, [sp, #16] ; 8-byte Folded Reload fdiv d0, d0, d1 str d0, [sp, #40] b LBB23_21 LBB23_20: ldur x8, [x29, #-16] ldr s1, [x8, #12] ; implicit-def: $d0 fmov s0, s1 sshll.2d v0, v0, #0 ; kill: def $d0 killed $d0 killed $q0 scvtf d0, d0 str d0, [sp, #40] b LBB23_21 LBB23_21: b LBB23_23 LBB23_22: ldur d0, [x29, #-40] stur d0, [x29, #-48] ldur d1, [x29, #-48] adrp x8, lCPI23_1@PAGE ldr d0, [x8, lCPI23_1@PAGEOFF] fmul d0, d0, d1 bl _sin str d0, [sp, #40] b LBB23_23 LBB23_23: ldr d0, [sp, #40] ldur x8, [x29, #-16] ldr w9, [x8, #16] mov w8, #1 lsl w8, w8, w9 scvtf d1, w8 fdiv d0, d0, d1 stur d0, [x29, #-64] ldur x8, [x29, #-16] ldr w8, [x8, #44] and w8, w8, #0xf subs w8, w8, #0 ; kill: def $x8 killed $w8 str x8, [sp] ; 8-byte Folded Spill subs x8, x8, #8 cset w8, hi tbnz w8, #0, LBB23_36 ; %bb.24: ldr x11, [sp] ; 8-byte Folded Reload adrp x10, lJTI23_0@PAGE add x10, x10, lJTI23_0@PAGEOFF Ltmp6: adr x8, Ltmp6 ldrsw x9, [x10, x11, lsl #2] add x8, x8, x9 br x8 LBB23_25: ldur d0, [x29, #-64] str d0, [sp, #72] b LBB23_36 LBB23_26: ldur d0, [x29, #-40] fmov d1, #2.00000000 bl _fmod fmov d1, #1.00000000 fsub d0, d0, d1 str d0, [sp, #72] b LBB23_36 LBB23_27: ldur d0, [x29, #-40] fmov d1, #2.00000000 bl _fmod fmov d1, #1.00000000 fcmp d0, d1 cset w8, pl tbnz w8, #0, LBB23_29 b LBB23_28 LBB23_28: fmov d0, #-0.50000000 str d0, [sp, #72] b LBB23_30 LBB23_29: fmov d0, #0.50000000 str d0, [sp, #72] b LBB23_30 LBB23_30: b LBB23_36 LBB23_31: ldur x8, [x29, #-16] ldr d0, [x8, #64] fmov d1, #2.00000000 fcmp d0, d1 cset w8, ge tbnz w8, #0, LBB23_33 b LBB23_32 LBB23_32: ldur x8, [x29, #-16] ldr d0, [x8, #64] fmov d1, #-2.00000000 fcmp d0, d1 cset w8, pl tbnz w8, #0, LBB23_34 b LBB23_33 LBB23_33: ldur x8, [x29, #-16] ldr d0, [x8, #64] fmov d1, #2.00000000 bl _fmod ldur x8, [x29, #-16] str d0, [x8, #64] fmov d0, #0.50000000 str d0, [sp, #72] b LBB23_35 LBB23_34: movi d0, #0000000000000000 str d0, [sp, #72] b LBB23_35 LBB23_35: b LBB23_36 LBB23_36: ldur x8, [x29, #-16] ldr d0, [x8, #88] str d0, [sp, #64] ldur x8, [x29, #-16] ldr w0, [x8, #44] bl _env_is_running tbz w0, #0, LBB23_52 b LBB23_37 LBB23_37: ldur x8, [x29, #-16] ldr d0, [x8, #88] str d0, [sp, #32] ldur x8, [x29, #-16] ldr d0, [x8, #80] adrp x8, lCPI23_0@PAGE ldr d1, [x8, lCPI23_0@PAGEOFF] fdiv d1, d0, d1 ldur x8, [x29, #-16] ldr d0, [x8, #88] fadd d0, d0, d1 str d0, [x8, #88] ldur x8, [x29, #-16] ldr d0, [x8, #88] fmov d1, #1.00000000 fcmp d0, d1 cset w8, gt tbnz w8, #0, LBB23_39 b LBB23_38 LBB23_38: ldur x8, [x29, #-16] ldr d0, [x8, #88] fcmp d0, #0.0 cset w8, pl tbnz w8, #0, LBB23_51 b LBB23_39 LBB23_39: ldur x8, [x29, #-16] ldr w8, [x8, #44] asr w8, w8, #6 and w8, w8, #0xf subs w8, w8, #15 cset w8, ne tbnz w8, #0, LBB23_41 b LBB23_40 LBB23_40: ldr d0, [sp, #32] ldur x8, [x29, #-16] str d0, [x8, #88] b LBB23_50 LBB23_41: ldur x8, [x29, #-16] ldr w8, [x8, #44] asr w8, w8, #6 and w8, w8, #0xf subs w8, w8, #13 cset w8, ne tbnz w8, #0, LBB23_45 b LBB23_42 LBB23_42: ldur w0, [x29, #-4] mov w1, #9 bl _set_osc_run ldur w8, [x29, #-4] add w9, w8, #1 adrp x8, _gens@PAGE add x8, x8, _gens@PAGEOFF ldr x8, [x8, w9, sxtw #3] ldr w8, [x8, #44] asr w8, w8, #6 and w8, w8, #0xf subs w8, w8, #9 cset w8, ne tbnz w8, #0, LBB23_44 b LBB23_43 LBB23_43: ldur w8, [x29, #-4] add w0, w8, #1 mov w1, #13 bl _set_osc_run b LBB23_44 LBB23_44: b LBB23_49 LBB23_45: ldur x8, [x29, #-16] ldr w8, [x8, #44] asr w8, w8, #6 and w8, w8, #0xf subs w8, w8, #14 cset w8, ne tbnz w8, #0, LBB23_48 b LBB23_46 LBB23_46: ldur w8, [x29, #-4] add w9, w8, #1 adrp x8, _gens@PAGE add x8, x8, _gens@PAGEOFF ldr x8, [x8, w9, sxtw #3] ldr w8, [x8, #44] asr w8, w8, #6 and w8, w8, #0xf subs w8, w8, #9 cset w8, ne tbnz w8, #0, LBB23_48 b LBB23_47 LBB23_47: ldur w8, [x29, #-4] add w0, w8, #1 mov w1, #13 bl _set_osc_run b LBB23_48 LBB23_48: b LBB23_49 LBB23_49: b LBB23_50 LBB23_50: b LBB23_51 LBB23_51: b LBB23_52 LBB23_52: ldur x8, [x29, #-16] ldr w8, [x8, #44] asr w8, w8, #4 and w8, w8, #0x3 subs w8, w8, #3 cset w8, eq tbnz w8, #0, LBB23_54 b LBB23_53 LBB23_53: ldur x8, [x29, #-16] ldr w8, [x8, #44] asr w8, w8, #4 and w8, w8, #0x3 subs w8, w8, #2 cset w8, ne tbnz w8, #0, LBB23_55 b LBB23_54 LBB23_54: ldr d1, [sp, #64] fmov d0, #-16.00000000 fmul d1, d0, d1 fmov d0, #2.00000000 bl _pow str d0, [sp, #56] b LBB23_56 LBB23_55: ldr d0, [sp, #64] str d0, [sp, #56] b LBB23_56 LBB23_56: ldur x8, [x29, #-16] ldr w8, [x8, #44] asr w8, w8, #4 and w8, w8, #0x3 subs w8, w8, #1 cset w8, eq tbnz w8, #0, LBB23_58 b LBB23_57 LBB23_57: ldur x8, [x29, #-16] ldr w8, [x8, #44] asr w8, w8, #4 and w8, w8, #0x3 subs w8, w8, #3 cset w8, ne tbnz w8, #0, LBB23_59 b LBB23_58 LBB23_58: ldur x8, [x29, #-16] ldr d0, [x8, #96] ldr d1, [sp, #56] fadd d0, d0, d1 str d0, [sp, #48] b LBB23_60 LBB23_59: ldur x8, [x29, #-16] ldr d0, [x8, #96] ldr d1, [sp, #56] fsub d0, d0, d1 str d0, [sp, #48] b LBB23_60 LBB23_60: ldr d1, [sp, #48] ldr d0, [sp, #72] fmul d0, d0, d1 str d0, [sp, #72] ldur x8, [x29, #-16] ldr w0, [x8, #44] bl _adding_to_sum tbz w0, #0, LBB23_73 b LBB23_61 LBB23_61: ldur x8, [x29, #-16] ldr w8, [x8, #44] asr w8, w8, #6 and w8, w8, #0xf subs w8, w8, #7 cset w8, eq tbnz w8, #0, LBB23_66 b LBB23_62 LBB23_62: ldur x8, [x29, #-16] ldr w8, [x8, #40] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB23_64 b LBB23_63 LBB23_63: ldr d0, [sp, #72] fmov d1, #2.00000000 fdiv d1, d0, d1 ldur x8, [x29, #-16] ldrsw x9, [x8, #32] adrp x8, _gen_outs@PAGE add x8, x8, _gen_outs@PAGEOFF add x8, x8, x9, lsl #3 ldr d0, [x8] fadd d0, d0, d1 str d0, [x8] b LBB23_65 LBB23_64: ldr d1, [sp, #72] ldur x8, [x29, #-16] ldrsw x9, [x8, #32] adrp x8, _gen_outs@PAGE add x8, x8, _gen_outs@PAGEOFF add x8, x8, x9, lsl #3 ldr d0, [x8] fadd d0, d0, d1 str d0, [x8] b LBB23_65 LBB23_65: b LBB23_72 LBB23_66: adrp x8, _read_data_file@PAGE ldr x8, [x8, _read_data_file@PAGEOFF] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB23_68 b LBB23_67 LBB23_67: adrp x8, _read_data_file@PAGE ldr x3, [x8, _read_data_file@PAGEOFF] add x0, sp, #28 mov x1, #4 mov x2, #1 bl _fread ldr d0, [sp, #72] ldr s1, [sp, #28] fcvt d1, s1 fadd d0, d0, d1 ldur x8, [x29, #-16] ldrsw x9, [x8, #32] adrp x8, _gen_outs@PAGE add x8, x8, _gen_outs@PAGEOFF str d0, [x8, x9, lsl #3] b LBB23_71 LBB23_68: adrp x8, _read_data_warned@PAGE ldrb w8, [x8, _read_data_warned@PAGEOFF] tbnz w8, #0, LBB23_70 b LBB23_69 LBB23_69: adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] ldr x0, [x8] adrp x1, l_.str.48@PAGE add x1, x1, l_.str.48@PAGEOFF bl _fprintf mov w8, #1 adrp x9, _read_data_warned@PAGE strb w8, [x9, _read_data_warned@PAGEOFF] b LBB23_70 LBB23_70: b LBB23_71 LBB23_71: b LBB23_72 LBB23_72: b LBB23_73 LBB23_73: ldp x29, x30, [sp, #144] ; 16-byte Folded Reload add sp, sp, #160 ret .cfi_endproc .p2align 2 lJTI23_0: .long LBB23_25-Ltmp6 .long LBB23_26-Ltmp6 .long LBB23_27-Ltmp6 .long LBB23_31-Ltmp6 .long LBB23_25-Ltmp6 .long LBB23_36-Ltmp6 .long LBB23_36-Ltmp6 .long LBB23_36-Ltmp6 .long LBB23_25-Ltmp6 ; -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ; -- Begin function process_mod lCPI24_0: .quad 0x4120000000000000 ; double 524288 lCPI24_1: .quad 0x4090000000000000 ; double 1024 lCPI24_2: .quad 0xbec0000000000000 ; double -1.9073486328125E-6 lCPI24_3: .quad 0x3ec0000000000000 ; double 1.9073486328125E-6 .section __TEXT,__text,regular,pure_instructions .p2align 2 _process_mod: ; @process_mod .cfi_startproc ; %bb.0: sub sp, sp, #144 .cfi_def_cfa_offset 144 stp x29, x30, [sp, #128] ; 16-byte Folded Spill add x29, sp, #128 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur w0, [x29, #-4] ldursw x9, [x29, #-4] adrp x8, _mods@PAGE add x8, x8, _mods@PAGEOFF ldr x8, [x8, x9, lsl #3] stur x8, [x29, #-16] ldur x8, [x29, #-16] ldr w8, [x8, #28] asr w8, w8, #4 and w8, w8, #0x1f stur w8, [x29, #-20] ldur w8, [x29, #-20] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB24_2 b LBB24_1 LBB24_1: b LBB24_61 LBB24_2: ldur x8, [x29, #-16] ldr w0, [x8, #16] bl _mod_read stur d0, [x29, #-40] ldur x8, [x29, #-16] ldr w0, [x8, #20] bl _mod_read stur d0, [x29, #-48] ldur w8, [x29, #-20] subs w8, w8, #0 ; kill: def $x8 killed $w8 str x8, [sp, #56] ; 8-byte Folded Spill subs x8, x8, #29 cset w8, hi tbnz w8, #0, LBB24_60 ; %bb.3: ldr x11, [sp, #56] ; 8-byte Folded Reload adrp x10, lJTI24_0@PAGE add x10, x10, lJTI24_0@PAGEOFF Ltmp7: adr x8, Ltmp7 ldrsw x9, [x10, x11, lsl #2] add x8, x8, x9 br x8 LBB24_4: b LBB24_61 LBB24_5: ldur x8, [x29, #-16] ldr w8, [x8, #8] ldur x9, [x29, #-16] ldr w9, [x9, #12] ldur x10, [x29, #-16] ldr w10, [x10] mul w9, w9, w10 add w8, w8, w9, asr #10 and w8, w8, #0xfffff stur w8, [x29, #-24] ldur x8, [x29, #-16] ldr w8, [x8, #24] str w8, [sp, #52] ; 4-byte Folded Spill ldur w8, [x29, #-24] subs w8, w8, #128, lsl #12 ; =524288 cset w8, ge tbnz w8, #0, LBB24_7 b LBB24_6 LBB24_6: ldur w8, [x29, #-24] str w8, [sp, #48] ; 4-byte Folded Spill b LBB24_8 LBB24_7: ldur w8, [x29, #-24] and w8, w8, #0x7ffff subs w8, w8, #128, lsl #12 ; =524288 str w8, [sp, #48] ; 4-byte Folded Spill b LBB24_8 LBB24_8: ldr w0, [sp, #52] ; 4-byte Folded Reload ldr w8, [sp, #48] ; 4-byte Folded Reload scvtf d0, w8 adrp x8, lCPI24_0@PAGE ldr d1, [x8, lCPI24_0@PAGEOFF] fdiv d0, d0, d1 bl _mod_write ldur w8, [x29, #-24] ldur x9, [x29, #-16] str w8, [x9, #12] b LBB24_61 LBB24_9: ldur x8, [x29, #-16] ldr w8, [x8, #8] ldur x9, [x29, #-16] ldr w9, [x9, #12] ldur x10, [x29, #-16] ldr w10, [x10] mul w9, w9, w10 add w8, w8, w9, asr #10 and w8, w8, #0xfffff stur w8, [x29, #-24] ldur x8, [x29, #-16] ldr w8, [x8, #24] str w8, [sp, #44] ; 4-byte Folded Spill ldur w8, [x29, #-24] subs w8, w8, #128, lsl #12 ; =524288 cset w8, ge tbnz w8, #0, LBB24_11 b LBB24_10 LBB24_10: ldur w8, [x29, #-24] str w8, [sp, #40] ; 4-byte Folded Spill b LBB24_12 LBB24_11: ldur w8, [x29, #-24] and w8, w8, #0x7ffff subs w8, w8, #128, lsl #12 ; =524288 str w8, [sp, #40] ; 4-byte Folded Spill b LBB24_12 LBB24_12: ldr w0, [sp, #44] ; 4-byte Folded Reload ldr w8, [sp, #40] ; 4-byte Folded Reload scvtf d0, w8 adrp x8, lCPI24_0@PAGE ldr d1, [x8, lCPI24_0@PAGEOFF] fdiv d0, d0, d1 bl _mod_write ldur d0, [x29, #-48] fcmp d0, #0.0 cset w8, eq tbnz w8, #0, LBB24_15 b LBB24_13 LBB24_13: ldur x8, [x29, #-16] ldr w8, [x8, #4] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB24_15 b LBB24_14 LBB24_14: ldur w8, [x29, #-24] ldur x9, [x29, #-16] str w8, [x9, #12] b LBB24_15 LBB24_15: b LBB24_61 LBB24_16: ldur x8, [x29, #-16] ldr w0, [x8, #24] ldur x8, [x29, #-16] ldr d0, [x8, #80] bl _mod_write ldur d0, [x29, #-48] ldur x8, [x29, #-16] ldr d1, [x8, #64] fmul d0, d0, d1 fcmp d0, #0.0 cset w8, eq tbnz w8, #0, LBB24_18 b LBB24_17 LBB24_17: ldur d0, [x29, #-40] ldur x8, [x29, #-16] ldr d1, [x8, #56] fmul d0, d0, d1 ldur x8, [x29, #-16] str d0, [x8, #80] b LBB24_18 LBB24_18: b LBB24_61 LBB24_19: ldur d0, [x29, #-40] ldur x8, [x29, #-16] ldr d1, [x8, #56] ldur x8, [x29, #-16] ldr d2, [x8, #72] fmadd d0, d0, d1, d2 stur d0, [x29, #-56] ldur d0, [x29, #-56] fcmp d0, #0.0 cset w8, pl tbnz w8, #0, LBB24_21 b LBB24_20 LBB24_20: ldur x8, [x29, #-16] ldr w0, [x8, #24] movi d0, #0000000000000000 bl _mod_write b LBB24_22 LBB24_21: ldur x8, [x29, #-16] ldr w0, [x8, #24] ldur d0, [x29, #-48] ldur x8, [x29, #-16] ldr d1, [x8, #64] fmul d0, d0, d1 bl _mod_write b LBB24_22 LBB24_22: b LBB24_61 LBB24_23: ldur x8, [x29, #-16] ldr w0, [x8, #24] ldur x8, [x29, #-16] ldr d2, [x8, #72] ldur x8, [x29, #-16] ldr d0, [x8, #80] ldur x8, [x29, #-16] ldr d1, [x8, #56] fmadd d0, d0, d1, d2 bl _mod_write ldur x8, [x29, #-16] ldr w8, [x8, #20] and w0, w8, #0x1f bl _delay_read ldur x8, [x29, #-16] str d0, [x8, #72] ldur d2, [x29, #-40] ldur x8, [x29, #-16] ldr d0, [x8, #72] ldur x8, [x29, #-16] ldr d1, [x8, #64] fmadd d0, d0, d1, d2 ldur x8, [x29, #-16] str d0, [x8, #80] ldur x8, [x29, #-16] ldr w8, [x8, #20] and w0, w8, #0x1f ldur x8, [x29, #-16] ldr d0, [x8, #80] bl _delay_write b LBB24_61 LBB24_24: ldur x8, [x29, #-16] ldr d0, [x8, #80] ldur x8, [x29, #-16] ldr d1, [x8, #64] fmul d0, d0, d1 stur d0, [x29, #-56] ldur x8, [x29, #-16] ldr d0, [x8, #72] ldur x8, [x29, #-16] ldr d1, [x8, #56] fmul d0, d0, d1 str d0, [sp, #64] ldur d0, [x29, #-56] ldr d1, [sp, #64] fadd d0, d0, d1 ldur d1, [x29, #-40] fadd d0, d0, d1 stur d0, [x29, #-32] ldur x8, [x29, #-16] ldr w0, [x8, #24] ldur d0, [x29, #-32] bl _mod_write ldur x8, [x29, #-16] ldr d0, [x8, #80] ldur x8, [x29, #-16] str d0, [x8, #72] ldur d0, [x29, #-32] ldur x8, [x29, #-16] str d0, [x8, #80] ldur w8, [x29, #-20] subs w8, w8, #9 cset w8, ne tbnz w8, #0, LBB24_26 b LBB24_25 LBB24_25: ldur d0, [x29, #-48] adrp x8, lCPI24_1@PAGE ldr d1, [x8, lCPI24_1@PAGEOFF] fdiv d1, d0, d1 ldur x8, [x29, #-16] ldr d0, [x8, #56] fadd d0, d0, d1 str d0, [x8, #56] b LBB24_26 LBB24_26: ldur w8, [x29, #-20] subs w8, w8, #11 cset w8, ne tbnz w8, #0, LBB24_28 b LBB24_27 LBB24_27: ldur d0, [x29, #-48] adrp x8, lCPI24_1@PAGE ldr d1, [x8, lCPI24_1@PAGEOFF] fdiv d1, d0, d1 ldur x8, [x29, #-16] ldr d0, [x8, #64] fadd d0, d0, d1 str d0, [x8, #64] b LBB24_28 LBB24_28: b LBB24_61 LBB24_29: ldur x8, [x29, #-16] ldr d0, [x8, #80] ldur x8, [x29, #-16] ldr d1, [x8, #64] fmul d0, d0, d1 stur d0, [x29, #-56] ldur x8, [x29, #-16] ldr d0, [x8, #72] ldur x8, [x29, #-16] ldr d1, [x8, #56] fmul d0, d0, d1 str d0, [sp, #64] ldur x8, [x29, #-16] ldr w0, [x8, #24] ldur d0, [x29, #-56] ldr d1, [sp, #64] fadd d0, d0, d1 ldur d1, [x29, #-40] fadd d0, d0, d1 bl _mod_write ldur x8, [x29, #-16] ldr d0, [x8, #80] ldur x8, [x29, #-16] str d0, [x8, #72] ldur d0, [x29, #-40] adrp x8, lCPI24_1@PAGE ldr d1, [x8, lCPI24_1@PAGEOFF] fdiv d0, d0, d1 ldur x8, [x29, #-16] str d0, [x8, #80] ldur w8, [x29, #-20] subs w8, w8, #13 cset w8, ne tbnz w8, #0, LBB24_31 b LBB24_30 LBB24_30: ldur d0, [x29, #-48] adrp x8, lCPI24_1@PAGE ldr d1, [x8, lCPI24_1@PAGEOFF] fdiv d1, d0, d1 ldur x8, [x29, #-16] ldr d0, [x8, #56] fadd d0, d0, d1 str d0, [x8, #56] b LBB24_31 LBB24_31: ldur w8, [x29, #-20] subs w8, w8, #15 cset w8, ne tbnz w8, #0, LBB24_33 b LBB24_32 LBB24_32: ldur d0, [x29, #-48] adrp x8, lCPI24_1@PAGE ldr d1, [x8, lCPI24_1@PAGEOFF] fdiv d1, d0, d1 ldur x8, [x29, #-16] ldr d0, [x8, #64] fadd d0, d0, d1 str d0, [x8, #64] b LBB24_33 LBB24_33: b LBB24_61 LBB24_34: ldur x8, [x29, #-16] ldr w0, [x8, #24] ldur d0, [x29, #-40] ldur x8, [x29, #-16] ldr s2, [x8] ; implicit-def: $d1 fmov s1, s2 sshll.2d v1, v1, #0 ; kill: def $d1 killed $d1 killed $q1 scvtf d1, d1 ldur d2, [x29, #-48] ldur x8, [x29, #-16] ldr s4, [x8, #4] ; implicit-def: $d3 fmov s3, s4 sshll.2d v3, v3, #0 ; kill: def $d3 killed $d3 killed $q3 scvtf d3, d3 fmul d2, d2, d3 fmadd d0, d0, d1, d2 bl _mod_write b LBB24_61 LBB24_35: ldur x8, [x29, #-16] ldr w0, [x8, #24] ldur d0, [x29, #-40] ldur x8, [x29, #-16] ldr d1, [x8, #56] ldur d2, [x29, #-48] ldur x8, [x29, #-16] ldr d3, [x8, #64] fmul d2, d2, d3 fmadd d0, d0, d1, d2 bl _mod_write b LBB24_61 LBB24_36: ldur x8, [x29, #-16] ldr d0, [x8, #80] ldur x8, [x29, #-16] ldr d1, [x8, #64] fmul d0, d0, d1 stur d0, [x29, #-56] ldur d0, [x29, #-48] ldur x8, [x29, #-16] ldr d1, [x8, #56] fmul d0, d0, d1 str d0, [sp, #64] ldur d0, [x29, #-56] ldr d1, [sp, #64] fadd d0, d0, d1 ldur x8, [x29, #-16] str d0, [x8, #80] ldur x8, [x29, #-16] ldr w0, [x8, #24] ldur x8, [x29, #-16] ldr d0, [x8, #80] bl _mod_write b LBB24_61 LBB24_37: ldur x8, [x29, #-16] ldr d0, [x8, #80] ldur x8, [x29, #-16] ldr d1, [x8, #64] fmul d0, d0, d1 stur d0, [x29, #-56] ldur x8, [x29, #-16] ldr d0, [x8, #72] ldur x8, [x29, #-16] ldr d1, [x8, #56] fmul d0, d0, d1 str d0, [sp, #64] ldur x8, [x29, #-16] ldr d0, [x8, #80] ldur x8, [x29, #-16] str d0, [x8, #72] ldur d0, [x29, #-40] adrp x8, lCPI24_1@PAGE ldr d1, [x8, lCPI24_1@PAGEOFF] fdiv d0, d0, d1 ldur x8, [x29, #-16] str d0, [x8, #80] ldur x8, [x29, #-16] ldr w0, [x8, #24] ldur d0, [x29, #-56] ldr d1, [sp, #64] fadd d0, d0, d1 bl _mod_write b LBB24_61 LBB24_38: ldur x8, [x29, #-16] ldr w0, [x8, #24] ldur x8, [x29, #-16] ldr d0, [x8, #80] ldur x8, [x29, #-16] ldr d1, [x8, #64] fmul d0, d0, d1 bl _mod_write ldur d0, [x29, #-40] ldur d1, [x29, #-48] fmul d0, d0, d1 ldur x8, [x29, #-16] str d0, [x8, #80] b LBB24_61 LBB24_39: ldur x8, [x29, #-16] ldr w0, [x8, #24] ldur x8, [x29, #-16] ldr d0, [x8, #80] ldur x8, [x29, #-16] ldr d1, [x8, #64] fmul d0, d0, d1 bl _mod_write ldur d0, [x29, #-40] ldur d1, [x29, #-48] fmov d2, #1.00000000 fadd d1, d1, d2 fmul d0, d0, d1 fmov d1, #0.50000000 fmul d0, d0, d1 ldur x8, [x29, #-16] str d0, [x8, #80] b LBB24_61 LBB24_40: ldur d0, [x29, #-40] ldur x8, [x29, #-16] ldr d1, [x8, #56] fmul d0, d0, d1 stur d0, [x29, #-56] ldur d0, [x29, #-48] ldur x8, [x29, #-16] ldr d1, [x8, #64] fmul d0, d0, d1 str d0, [sp, #64] ldur x8, [x29, #-16] ldr w8, [x8, #24] str w8, [sp, #36] ; 4-byte Folded Spill ldur d0, [x29, #-56] ldr d1, [sp, #64] fcmp d0, d1 cset w8, le tbnz w8, #0, LBB24_42 b LBB24_41 LBB24_41: ldur d0, [x29, #-56] str d0, [sp, #24] ; 8-byte Folded Spill b LBB24_43 LBB24_42: ldr d0, [sp, #64] str d0, [sp, #24] ; 8-byte Folded Spill b LBB24_43 LBB24_43: ldr w0, [sp, #36] ; 4-byte Folded Reload ldr d0, [sp, #24] ; 8-byte Folded Reload bl _mod_write b LBB24_61 LBB24_44: ldur d0, [x29, #-40] ldur x8, [x29, #-16] ldr d1, [x8, #56] fmul d0, d0, d1 stur d0, [x29, #-56] ldur d0, [x29, #-48] ldur x8, [x29, #-16] ldr d1, [x8, #64] fmul d0, d0, d1 str d0, [sp, #64] ldur x8, [x29, #-16] ldr w8, [x8, #24] str w8, [sp, #20] ; 4-byte Folded Spill ldur d0, [x29, #-56] ldr d1, [sp, #64] fcmp d0, d1 cset w8, pl tbnz w8, #0, LBB24_46 b LBB24_45 LBB24_45: ldur d0, [x29, #-56] str d0, [sp, #8] ; 8-byte Folded Spill b LBB24_47 LBB24_46: ldr d0, [sp, #64] str d0, [sp, #8] ; 8-byte Folded Spill b LBB24_47 LBB24_47: ldr w0, [sp, #20] ; 4-byte Folded Reload ldr d0, [sp, #8] ; 8-byte Folded Reload bl _mod_write b LBB24_61 LBB24_48: ldur d0, [x29, #-40] ldur x8, [x29, #-16] ldr d1, [x8, #56] fmul d0, d0, d1 stur d0, [x29, #-56] ldur d0, [x29, #-48] ldur x8, [x29, #-16] ldr d1, [x8, #64] fmul d0, d0, d1 str d0, [sp, #64] ldur d0, [x29, #-56] ldr d1, [sp, #64] fcmp d0, d1 cset w8, pl tbnz w8, #0, LBB24_50 b LBB24_49 LBB24_49: ldur x8, [x29, #-16] ldr w0, [x8, #24] adrp x8, lCPI24_2@PAGE ldr d0, [x8, lCPI24_2@PAGEOFF] bl _mod_write b LBB24_54 LBB24_50: ldur d0, [x29, #-56] ldr d1, [sp, #64] fcmp d0, d1 cset w8, ne tbnz w8, #0, LBB24_52 b LBB24_51 LBB24_51: ldur x8, [x29, #-16] ldr w0, [x8, #24] movi d0, #0000000000000000 bl _mod_write b LBB24_53 LBB24_52: ldur x8, [x29, #-16] ldr w0, [x8, #24] adrp x8, lCPI24_3@PAGE ldr d0, [x8, lCPI24_3@PAGEOFF] bl _mod_write b LBB24_53 LBB24_53: b LBB24_54 LBB24_54: b LBB24_61 LBB24_55: ldur d0, [x29, #-48] ldur x8, [x29, #-16] ldr d1, [x8, #56] fmul d0, d0, d1 stur d0, [x29, #-56] ldur x8, [x29, #-16] ldr d0, [x8, #80] ldur x8, [x29, #-16] ldr d1, [x8, #56] fmul d0, d0, d1 str d0, [sp, #64] ldr d0, [sp, #64] fcmp d0, #0.0 cset w8, eq tbnz w8, #0, LBB24_59 b LBB24_56 LBB24_56: ldur d0, [x29, #-56] fcmp d0, #0.0 cset w8, eq tbnz w8, #0, LBB24_58 b LBB24_57 LBB24_57: ldur d0, [x29, #-56] ldr d1, [sp, #64] fmul d0, d0, d1 fcmp d0, #0.0 cset w8, pl tbnz w8, #0, LBB24_59 b LBB24_58 LBB24_58: ldur x8, [x29, #-16] ldr w0, [x8, #24] adrp x8, lCPI24_2@PAGE ldr d0, [x8, lCPI24_2@PAGEOFF] bl _mod_write b LBB24_59 LBB24_59: ldur d0, [x29, #-56] ldur x8, [x29, #-16] str d0, [x8, #80] b LBB24_61 LBB24_60: adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] ldr x0, [x8] adrp x1, l_.str.49@PAGE add x1, x1, l_.str.49@PAGEOFF bl _fprintf b LBB24_61 LBB24_61: ldp x29, x30, [sp, #128] ; 16-byte Folded Reload add sp, sp, #144 ret .cfi_endproc .p2align 2 lJTI24_0: .long LBB24_4-Ltmp7 .long LBB24_60-Ltmp7 .long LBB24_5-Ltmp7 .long LBB24_9-Ltmp7 .long LBB24_16-Ltmp7 .long LBB24_60-Ltmp7 .long LBB24_19-Ltmp7 .long LBB24_23-Ltmp7 .long LBB24_24-Ltmp7 .long LBB24_24-Ltmp7 .long LBB24_60-Ltmp7 .long LBB24_24-Ltmp7 .long LBB24_29-Ltmp7 .long LBB24_29-Ltmp7 .long LBB24_60-Ltmp7 .long LBB24_29-Ltmp7 .long LBB24_34-Ltmp7 .long LBB24_36-Ltmp7 .long LBB24_60-Ltmp7 .long LBB24_60-Ltmp7 .long LBB24_35-Ltmp7 .long LBB24_60-Ltmp7 .long LBB24_37-Ltmp7 .long LBB24_60-Ltmp7 .long LBB24_38-Ltmp7 .long LBB24_39-Ltmp7 .long LBB24_40-Ltmp7 .long LBB24_44-Ltmp7 .long LBB24_48-Ltmp7 .long LBB24_55-Ltmp7 ; -- End function .p2align 2 ; -- Begin function process_dly _process_dly: ; @process_dly .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #12] ldrsw x9, [sp, #12] adrp x8, _dlys@PAGE add x8, x8, _dlys@PAGEOFF ldr x8, [x8, x9, lsl #3] str x8, [sp] ldr x9, [sp] ldr w8, [x9, #8] add w8, w8, #1 str w8, [x9, #8] ldr x8, [sp] ldr w8, [x8, #8] ldr x9, [sp] ldr w9, [x9, #4] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB25_2 b LBB25_1 LBB25_1: ldr x8, [sp] str wzr, [x8, #8] b LBB25_2 LBB25_2: add sp, sp, #16 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function dump_patch _dump_patch: ; @dump_patch .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, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] stur x8, [x29, #-56] ; 8-byte Folded Spill ldr x0, [x8] adrp x8, _samples@PAGE ldr w8, [x8, _samples@PAGEOFF] ; implicit-def: $x10 mov x10, x8 adrp x8, _current_command@PAGE ldr w9, [x8, _current_command@PAGEOFF] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x1, l_.str.53@PAGE add x1, x1, l_.str.53@PAGEOFF bl _fprintf stur wzr, [x29, #-4] stur wzr, [x29, #-8] b LBB26_1 LBB26_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-4] subs w8, w8, #256 cset w8, ge tbnz w8, #0, LBB26_6 b LBB26_2 LBB26_2: ; in Loop: Header=BB26_1 Depth=1 ldursw x9, [x29, #-4] adrp x8, _gens@PAGE add x8, x8, _gens@PAGEOFF ldr x8, [x8, x9, lsl #3] ldr w8, [x8, #44] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB26_4 b LBB26_3 LBB26_3: ; in Loop: Header=BB26_1 Depth=1 ldur w8, [x29, #-8] add w8, w8, #1 stur w8, [x29, #-8] b LBB26_4 LBB26_4: ; in Loop: Header=BB26_1 Depth=1 b LBB26_5 LBB26_5: ; in Loop: Header=BB26_1 Depth=1 ldur w8, [x29, #-4] add w8, w8, #1 stur w8, [x29, #-4] b LBB26_1 LBB26_6: ldur x8, [x29, #-56] ; 8-byte Folded Reload ldr x0, [x8] ldur w9, [x29, #-8] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x1, l_.str.54@PAGE add x1, x1, l_.str.54@PAGEOFF bl _fprintf stur wzr, [x29, #-4] stur wzr, [x29, #-8] b LBB26_7 LBB26_7: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-4] subs w8, w8, #128 cset w8, ge tbnz w8, #0, LBB26_12 b LBB26_8 LBB26_8: ; in Loop: Header=BB26_7 Depth=1 ldursw x9, [x29, #-4] adrp x8, _mods@PAGE add x8, x8, _mods@PAGEOFF ldr x8, [x8, x9, lsl #3] ldr w8, [x8, #28] asr w8, w8, #4 ands w8, w8, #0x1f cset w8, eq tbnz w8, #0, LBB26_10 b LBB26_9 LBB26_9: ; in Loop: Header=BB26_7 Depth=1 ldur w8, [x29, #-8] add w8, w8, #1 stur w8, [x29, #-8] b LBB26_10 LBB26_10: ; in Loop: Header=BB26_7 Depth=1 b LBB26_11 LBB26_11: ; in Loop: Header=BB26_7 Depth=1 ldur w8, [x29, #-4] add w8, w8, #1 stur w8, [x29, #-4] b LBB26_7 LBB26_12: ldur x8, [x29, #-56] ; 8-byte Folded Reload ldr x0, [x8] ldur w9, [x29, #-8] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x1, l_.str.55@PAGE add x1, x1, l_.str.55@PAGEOFF bl _fprintf stur wzr, [x29, #-4] stur wzr, [x29, #-8] b LBB26_13 LBB26_13: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-4] subs w8, w8, #32 cset w8, ge tbnz w8, #0, LBB26_18 b LBB26_14 LBB26_14: ; in Loop: Header=BB26_13 Depth=1 ldursw x9, [x29, #-4] adrp x8, _dlys@PAGE add x8, x8, _dlys@PAGEOFF ldr x8, [x8, x9, lsl #3] ldr w8, [x8] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB26_16 b LBB26_15 LBB26_15: ; in Loop: Header=BB26_13 Depth=1 ldur w8, [x29, #-8] add w8, w8, #1 stur w8, [x29, #-8] b LBB26_16 LBB26_16: ; in Loop: Header=BB26_13 Depth=1 b LBB26_17 LBB26_17: ; in Loop: Header=BB26_13 Depth=1 ldur w8, [x29, #-4] add w8, w8, #1 stur w8, [x29, #-4] b LBB26_13 LBB26_18: ldur x8, [x29, #-56] ; 8-byte Folded Reload ldr x0, [x8] ldur w9, [x29, #-8] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x1, l_.str.56@PAGE add x1, x1, l_.str.56@PAGEOFF bl _fprintf stur wzr, [x29, #-4] b LBB26_19 LBB26_19: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-4] subs w8, w8, #256 cset w8, ge tbnz w8, #0, LBB26_32 b LBB26_20 LBB26_20: ; in Loop: Header=BB26_19 Depth=1 ldursw x9, [x29, #-4] adrp x8, _gens@PAGE add x8, x8, _gens@PAGEOFF ldr x8, [x8, x9, lsl #3] ldr w8, [x8, #44] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB26_30 b LBB26_21 LBB26_21: ; in Loop: Header=BB26_19 Depth=1 ldur x8, [x29, #-56] ; 8-byte Folded Reload ldursw x10, [x29, #-4] adrp x9, _gens@PAGE add x9, x9, _gens@PAGEOFF ldr x9, [x9, x10, lsl #3] stur x9, [x29, #-16] ldr x0, [x8] ldur w9, [x29, #-4] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x1, l_.str.57@PAGE add x1, x1, l_.str.57@PAGEOFF bl _fprintf ldur x8, [x29, #-16] ldr w0, [x8, #44] bl _print_gmode_name ldur x8, [x29, #-56] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.58@PAGE add x1, x1, l_.str.58@PAGEOFF bl _fprintf ldur x8, [x29, #-16] ldr w8, [x8, #36] asr w8, w8, #6 subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB26_23 b LBB26_22 LBB26_22: ; in Loop: Header=BB26_19 Depth=1 ldur x8, [x29, #-16] ldr w8, [x8, #36] and w0, w8, #0x3f bl _dump_gen_sum b LBB26_24 LBB26_23: ; in Loop: Header=BB26_19 Depth=1 ldur x8, [x29, #-16] ldr w0, [x8, #36] bl _print_mod_sum b LBB26_24 LBB26_24: ; in Loop: Header=BB26_19 Depth=1 ldur x8, [x29, #-56] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.59@PAGE add x1, x1, l_.str.59@PAGEOFF bl _fprintf ldur x8, [x29, #-16] ldr w8, [x8, #44] asr w8, w8, #6 and w8, w8, #0xf subs w8, w8, #2 cset w8, ne tbnz w8, #0, LBB26_26 b LBB26_25 LBB26_25: ; in Loop: Header=BB26_19 Depth=1 ldur x8, [x29, #-56] ; 8-byte Folded Reload ldr x0, [x8] ldur x8, [x29, #-16] ldr w8, [x8] and w10, w8, #0xf mov x9, sp ; implicit-def: $x8 mov x8, x10 str x8, [x9] adrp x1, l_.str.60@PAGE add x1, x1, l_.str.60@PAGEOFF bl _fprintf b LBB26_27 LBB26_26: ; in Loop: Header=BB26_19 Depth=1 ldur x8, [x29, #-16] ldr w0, [x8, #32] bl _dump_gen_sum b LBB26_27 LBB26_27: ; in Loop: Header=BB26_19 Depth=1 ldur x8, [x29, #-56] ; 8-byte Folded Reload ldr x8, [x8] stur x8, [x29, #-64] ; 8-byte Folded Spill ldur x8, [x29, #-16] ldr w0, [x8, #32] bl _gen_mem_readers stur w0, [x29, #-68] ; 4-byte Folded Spill ldur x0, [x29, #-16] bl _gen_amp ldur w10, [x29, #-68] ; 4-byte Folded Reload ldur x0, [x29, #-64] ; 8-byte Folded Reload fmov d1, d0 ldur x8, [x29, #-16] ldr d0, [x8, #56] fmov d2, #0.50000000 fmul d0, d0, d2 adrp x8, _srate@PAGE ldr s3, [x8, _srate@PAGEOFF] ; implicit-def: $d2 fmov s2, s3 sshll.2d v2, v2, #0 ; kill: def $d2 killed $d2 killed $q2 scvtf d2, d2 fmul d0, d0, d2 mov x8, sp ; implicit-def: $x9 mov x9, x10 str x9, [x8] str d1, [x8, #8] str d0, [x8, #16] adrp x1, l_.str.61@PAGE add x1, x1, l_.str.61@PAGEOFF bl _fprintf ldur x8, [x29, #-16] ldr d0, [x8, #56] fcmp d0, #0.0 cset w8, ne tbnz w8, #0, LBB26_29 b LBB26_28 LBB26_28: ; in Loop: Header=BB26_19 Depth=1 ldur x8, [x29, #-56] ; 8-byte Folded Reload ldr x0, [x8] ldur x8, [x29, #-16] ldr d0, [x8, #64] mov x8, sp str d0, [x8] adrp x1, l_.str.62@PAGE add x1, x1, l_.str.62@PAGEOFF bl _fprintf b LBB26_29 LBB26_29: ; in Loop: Header=BB26_19 Depth=1 ldur x8, [x29, #-56] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.63@PAGE add x1, x1, l_.str.63@PAGEOFF bl _fprintf b LBB26_30 LBB26_30: ; in Loop: Header=BB26_19 Depth=1 b LBB26_31 LBB26_31: ; in Loop: Header=BB26_19 Depth=1 ldur w8, [x29, #-4] add w8, w8, #1 stur w8, [x29, #-4] b LBB26_19 LBB26_32: ldur x8, [x29, #-56] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.17@PAGE add x1, x1, l_.str.17@PAGEOFF bl _fprintf stur wzr, [x29, #-4] b LBB26_33 LBB26_33: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-4] subs w8, w8, #128 cset w8, ge tbnz w8, #0, LBB26_47 b LBB26_34 LBB26_34: ; in Loop: Header=BB26_33 Depth=1 ldursw x9, [x29, #-4] adrp x8, _mods@PAGE add x8, x8, _mods@PAGEOFF ldr x8, [x8, x9, lsl #3] ldr w8, [x8, #28] asr w8, w8, #4 ands w8, w8, #0x1f cset w8, eq tbnz w8, #0, LBB26_45 b LBB26_35 LBB26_35: ; in Loop: Header=BB26_33 Depth=1 ldur x8, [x29, #-56] ; 8-byte Folded Reload ldursw x10, [x29, #-4] adrp x9, _mods@PAGE add x9, x9, _mods@PAGEOFF ldr x9, [x9, x10, lsl #3] stur x9, [x29, #-24] ldr x8, [x8] str x8, [sp, #80] ; 8-byte Folded Spill ldur w9, [x29, #-4] ; implicit-def: $x8 mov x8, x9 str x8, [sp, #72] ; 8-byte Folded Spill ldur x8, [x29, #-24] ldr w8, [x8, #28] asr w8, w8, #4 and w0, w8, #0x1f bl _mode_name ldr x10, [sp, #72] ; 8-byte Folded Reload mov x8, x0 ldr x0, [sp, #80] ; 8-byte Folded Reload mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x1, l_.str.64@PAGE add x1, x1, l_.str.64@PAGEOFF bl _fprintf ldur x8, [x29, #-24] ldr w8, [x8, #28] asr w8, w8, #4 and w8, w8, #0x1f subs w8, w8, #20 cset w8, ne tbnz w8, #0, LBB26_37 b LBB26_36 LBB26_36: ; in Loop: Header=BB26_33 Depth=1 ldur x8, [x29, #-56] ; 8-byte Folded Reload ldr x0, [x8] ldur x8, [x29, #-24] ldr d0, [x8, #56] mov x8, sp str d0, [x8] adrp x1, l_.str.65@PAGE add x1, x1, l_.str.65@PAGEOFF bl _fprintf b LBB26_37 LBB26_37: ; in Loop: Header=BB26_33 Depth=1 ldur x8, [x29, #-56] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.66@PAGE add x1, x1, l_.str.66@PAGEOFF bl _fprintf ldur x8, [x29, #-24] ldr w0, [x8, #16] bl _print_mod_sum ldur x8, [x29, #-56] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.67@PAGE add x1, x1, l_.str.67@PAGEOFF bl _fprintf ldur x8, [x29, #-24] ldr w8, [x8, #28] asr w8, w8, #4 and w8, w8, #0x1f subs w8, w8, #20 cset w8, ne tbnz w8, #0, LBB26_39 b LBB26_38 LBB26_38: ; in Loop: Header=BB26_33 Depth=1 ldur x8, [x29, #-56] ; 8-byte Folded Reload ldr x0, [x8] ldur x8, [x29, #-24] ldr d0, [x8, #64] mov x8, sp str d0, [x8] adrp x1, l_.str.65@PAGE add x1, x1, l_.str.65@PAGEOFF bl _fprintf b LBB26_39 LBB26_39: ; in Loop: Header=BB26_33 Depth=1 ldur x8, [x29, #-56] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.68@PAGE add x1, x1, l_.str.68@PAGEOFF bl _fprintf ldur x8, [x29, #-24] ldr w8, [x8, #28] asr w8, w8, #4 and w8, w8, #0x1f subs w8, w8, #7 cset w8, ne tbnz w8, #0, LBB26_41 b LBB26_40 LBB26_40: ; in Loop: Header=BB26_33 Depth=1 ldur x8, [x29, #-56] ; 8-byte Folded Reload ldur x9, [x29, #-24] ldr w9, [x9, #20] and w10, w9, #0x1f adrp x9, _dlys@PAGE add x9, x9, _dlys@PAGEOFF ldr x9, [x9, w10, sxtw #3] stur x9, [x29, #-32] ldr x0, [x8] ldur x8, [x29, #-24] ldr w8, [x8, #20] and w10, w8, #0x1f ldur x8, [x29, #-32] ldr w8, [x8, #12] ldur x9, [x29, #-32] ldr w9, [x9, #8] add w9, w8, w9 adrp x8, _delay_memory@PAGE add x8, x8, _delay_memory@PAGEOFF ldr d0, [x8, w9, sxtw #3] mov x8, sp ; implicit-def: $x9 mov x9, x10 str x9, [x8] str d0, [x8, #8] adrp x1, l_.str.69@PAGE add x1, x1, l_.str.69@PAGEOFF bl _fprintf ldur x8, [x29, #-56] ; 8-byte Folded Reload ldr x0, [x8] ldur x8, [x29, #-24] ldr d3, [x8, #56] ldur x8, [x29, #-24] ldr d2, [x8, #64] ldur x8, [x29, #-24] ldr d1, [x8, #72] ldur x8, [x29, #-24] ldr d0, [x8, #80] mov x8, sp str d3, [x8] str d2, [x8, #8] str d1, [x8, #16] str d0, [x8, #24] adrp x1, l_.str.70@PAGE add x1, x1, l_.str.70@PAGEOFF bl _fprintf b LBB26_42 LBB26_41: ; in Loop: Header=BB26_33 Depth=1 ldur x8, [x29, #-24] ldr w0, [x8, #20] bl _print_mod_sum b LBB26_42 LBB26_42: ; in Loop: Header=BB26_33 Depth=1 ldur x8, [x29, #-56] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.59@PAGE add x1, x1, l_.str.59@PAGEOFF bl _fprintf ldur x8, [x29, #-24] ldr w8, [x8, #24] asr w8, w8, #6 subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB26_44 b LBB26_43 LBB26_43: ; in Loop: Header=BB26_33 Depth=1 ldur x8, [x29, #-56] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.71@PAGE add x1, x1, l_.str.71@PAGEOFF bl _fprintf b LBB26_44 LBB26_44: ; in Loop: Header=BB26_33 Depth=1 ldur x8, [x29, #-24] ldr w8, [x8, #24] and w0, w8, #0x3f bl _dump_mod_sum ldur x8, [x29, #-56] ; 8-byte Folded Reload ldr x8, [x8] str x8, [sp, #64] ; 8-byte Folded Spill ldur x8, [x29, #-24] ldr w0, [x8, #24] bl _mod_mem_readers mov x10, x0 ldr x0, [sp, #64] ; 8-byte Folded Reload mov x9, sp ; implicit-def: $x8 mov x8, x10 str x8, [x9] adrp x1, l_.str.72@PAGE add x1, x1, l_.str.72@PAGEOFF bl _fprintf b LBB26_45 LBB26_45: ; in Loop: Header=BB26_33 Depth=1 b LBB26_46 LBB26_46: ; in Loop: Header=BB26_33 Depth=1 ldur w8, [x29, #-4] add w8, w8, #1 stur w8, [x29, #-4] b LBB26_33 LBB26_47: ldur x8, [x29, #-56] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.17@PAGE add x1, x1, l_.str.17@PAGEOFF bl _fprintf stur wzr, [x29, #-4] b LBB26_48 LBB26_48: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-4] subs w8, w8, #32 cset w8, ge tbnz w8, #0, LBB26_53 b LBB26_49 LBB26_49: ; in Loop: Header=BB26_48 Depth=1 ldursw x9, [x29, #-4] adrp x8, _dlys@PAGE add x8, x8, _dlys@PAGEOFF ldr x8, [x8, x9, lsl #3] ldr w8, [x8] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB26_51 b LBB26_50 LBB26_50: ; in Loop: Header=BB26_48 Depth=1 ldur x8, [x29, #-56] ; 8-byte Folded Reload ldursw x10, [x29, #-4] adrp x9, _dlys@PAGE add x9, x9, _dlys@PAGEOFF ldr x9, [x9, x10, lsl #3] stur x9, [x29, #-40] ldr x8, [x8] str x8, [sp, #56] ; 8-byte Folded Spill ldur w9, [x29, #-4] ; implicit-def: $x8 mov x8, x9 str x8, [sp, #48] ; 8-byte Folded Spill ldur x8, [x29, #-40] ldr w0, [x8] bl _P_name ldr x13, [sp, #48] ; 8-byte Folded Reload mov x12, x0 ldr x0, [sp, #56] ; 8-byte Folded Reload ldur x8, [x29, #-40] ldr w8, [x8, #12] ldur x9, [x29, #-40] ldr w9, [x9, #8] add w9, w8, w9 adrp x8, _delay_memory@PAGE add x8, x8, _delay_memory@PAGEOFF ldr d0, [x8, w9, sxtw #3] ldur x8, [x29, #-40] ldr w8, [x8, #12] ; implicit-def: $x11 mov x11, x8 ldur x8, [x29, #-40] ldr w8, [x8, #8] ; implicit-def: $x10 mov x10, x8 ldur x8, [x29, #-40] ldr w9, [x8, #4] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x13, [x9] str x12, [x9, #8] str d0, [x9, #16] str x11, [x9, #24] str x10, [x9, #32] str x8, [x9, #40] adrp x1, l_.str.73@PAGE add x1, x1, l_.str.73@PAGEOFF bl _fprintf b LBB26_51 LBB26_51: ; in Loop: Header=BB26_48 Depth=1 b LBB26_52 LBB26_52: ; in Loop: Header=BB26_48 Depth=1 ldur w8, [x29, #-4] add w8, w8, #1 stur w8, [x29, #-4] b LBB26_48 LBB26_53: adrp x8, _delay_memory@PAGE ldr d0, [x8, _delay_memory@PAGEOFF] fabs d0, d0 stur d0, [x29, #-48] mov w8, #1 stur w8, [x29, #-4] b LBB26_54 LBB26_54: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-4] subs w8, w8, #16, lsl #12 ; =65536 cset w8, ge tbnz w8, #0, LBB26_59 b LBB26_55 LBB26_55: ; in Loop: Header=BB26_54 Depth=1 ldursw x9, [x29, #-4] adrp x8, _delay_memory@PAGE add x8, x8, _delay_memory@PAGEOFF ldr d0, [x8, x9, lsl #3] fabs d0, d0 ldur d1, [x29, #-48] fcmp d0, d1 cset w8, le tbnz w8, #0, LBB26_57 b LBB26_56 LBB26_56: ; in Loop: Header=BB26_54 Depth=1 ldursw x9, [x29, #-4] adrp x8, _delay_memory@PAGE add x8, x8, _delay_memory@PAGEOFF ldr d0, [x8, x9, lsl #3] fabs d0, d0 stur d0, [x29, #-48] b LBB26_57 LBB26_57: ; in Loop: Header=BB26_54 Depth=1 b LBB26_58 LBB26_58: ; in Loop: Header=BB26_54 Depth=1 ldur w8, [x29, #-4] add w8, w8, #1 stur w8, [x29, #-4] b LBB26_54 LBB26_59: ldur x8, [x29, #-56] ; 8-byte Folded Reload ldr x0, [x8] ldur d0, [x29, #-48] mov x8, sp str d0, [x8] adrp x1, l_.str.74@PAGE add x1, x1, l_.str.74@PAGEOFF bl _fprintf ldp x29, x30, [sp, #160] ; 16-byte Folded Reload add sp, sp, #176 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function osc_is_running _osc_is_running: ; @osc_is_running .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #12] ldr w8, [sp, #12] asr w8, w8, #6 and w8, w8, #0xf str w8, [sp, #8] ldr w8, [sp, #8] subs w8, w8, #15 cset w8, eq mov w9, #1 str w9, [sp, #4] ; 4-byte Folded Spill tbnz w8, #0, LBB27_4 b LBB27_1 LBB27_1: ldr w8, [sp, #8] subs w8, w8, #14 cset w8, eq mov w9, #1 str w9, [sp, #4] ; 4-byte Folded Spill tbnz w8, #0, LBB27_4 b LBB27_2 LBB27_2: ldr w8, [sp, #8] subs w8, w8, #9 cset w8, eq mov w9, #1 str w9, [sp, #4] ; 4-byte Folded Spill tbnz w8, #0, LBB27_4 b LBB27_3 LBB27_3: ldr w8, [sp, #8] subs w8, w8, #13 cset w8, eq str w8, [sp, #4] ; 4-byte Folded Spill b LBB27_4 LBB27_4: ldr w8, [sp, #4] ; 4-byte Folded Reload and w0, w8, #0x1 add sp, sp, #16 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function dac_write _dac_write: ; @dac_write .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str d0, [sp, #8] str w0, [sp, #4] ldr d0, [sp, #8] fmov d1, #2.00000000 fdiv d0, d0, d1 fcvt s1, d0 ldrsw x9, [sp, #4] adrp x8, _dac_out@PAGE add x8, x8, _dac_out@PAGEOFF add x8, x8, x9, lsl #2 ldr s0, [x8] fadd s0, s0, s1 str s0, [x8] add sp, sp, #16 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function env_is_running _env_is_running: ; @env_is_running .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #12] ldr w8, [sp, #12] asr w8, w8, #6 and w8, w8, #0xf str w8, [sp, #8] ldr w8, [sp, #8] subs w8, w8, #15 cset w8, eq mov w9, #1 str w9, [sp, #4] ; 4-byte Folded Spill tbnz w8, #0, LBB29_4 b LBB29_1 LBB29_1: ldr w8, [sp, #8] subs w8, w8, #14 cset w8, eq mov w9, #1 str w9, [sp, #4] ; 4-byte Folded Spill tbnz w8, #0, LBB29_4 b LBB29_2 LBB29_2: ldr w8, [sp, #8] subs w8, w8, #7 cset w8, eq mov w9, #1 str w9, [sp, #4] ; 4-byte Folded Spill tbnz w8, #0, LBB29_4 b LBB29_3 LBB29_3: ldr w8, [sp, #8] subs w8, w8, #13 cset w8, eq str w8, [sp, #4] ; 4-byte Folded Spill b LBB29_4 LBB29_4: ldr w8, [sp, #4] ; 4-byte Folded Reload and w0, w8, #0x1 add sp, sp, #16 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function adding_to_sum _adding_to_sum: ; @adding_to_sum .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #12] ldr w8, [sp, #12] asr w8, w8, #6 and w8, w8, #0xf str w8, [sp, #8] ldr w8, [sp, #8] subs w8, w8, #15 cset w8, eq mov w9, #1 str w9, [sp, #4] ; 4-byte Folded Spill tbnz w8, #0, LBB30_4 b LBB30_1 LBB30_1: ldr w8, [sp, #8] subs w8, w8, #14 cset w8, eq mov w9, #1 str w9, [sp, #4] ; 4-byte Folded Spill tbnz w8, #0, LBB30_4 b LBB30_2 LBB30_2: ldr w8, [sp, #8] subs w8, w8, #7 cset w8, eq mov w9, #1 str w9, [sp, #4] ; 4-byte Folded Spill tbnz w8, #0, LBB30_4 b LBB30_3 LBB30_3: ldr w8, [sp, #8] subs w8, w8, #13 cset w8, eq str w8, [sp, #4] ; 4-byte Folded Spill b LBB30_4 LBB30_4: ldr w8, [sp, #4] ; 4-byte Folded Reload and w0, w8, #0x1 add sp, sp, #16 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function mod_read _mod_read: ; @mod_read .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str w0, [sp, #20] ldr w8, [sp, #20] and w8, w8, #0x3f str w8, [sp, #12] ldr w8, [sp, #20] asr w8, w8, #6 and w8, w8, #0x3 str w8, [sp, #16] ldr w8, [sp, #16] subs w8, w8, #0 ; kill: def $x8 killed $w8 str x8, [sp] ; 8-byte Folded Spill subs x8, x8, #3 cset w8, hi tbnz w8, #0, LBB31_6 ; %bb.1: ldr x11, [sp] ; 8-byte Folded Reload adrp x10, lJTI31_0@PAGE add x10, x10, lJTI31_0@PAGEOFF Ltmp14: adr x8, Ltmp14 ldrsw x9, [x10, x11, lsl #2] add x8, x8, x9 br x8 LBB31_2: ldrsw x9, [sp, #12] adrp x8, _gen_ins@PAGE add x8, x8, _gen_ins@PAGEOFF ldr d0, [x8, x9, lsl #3] str d0, [sp, #24] b LBB31_7 LBB31_3: ldrsw x9, [sp, #12] adrp x8, _mod_ins@PAGE add x8, x8, _mod_ins@PAGEOFF ldr d0, [x8, x9, lsl #3] str d0, [sp, #24] b LBB31_7 LBB31_4: ldrsw x9, [sp, #12] adrp x8, _mod_outs@PAGE add x8, x8, _mod_outs@PAGEOFF ldr d0, [x8, x9, lsl #3] str d0, [sp, #24] b LBB31_7 LBB31_5: ldrsw x9, [sp, #12] adrp x8, _mod_ins@PAGE add x8, x8, _mod_ins@PAGEOFF ldr d0, [x8, x9, lsl #3] str d0, [sp, #24] b LBB31_7 LBB31_6: movi d0, #0000000000000000 str d0, [sp, #24] b LBB31_7 LBB31_7: ldr d0, [sp, #24] add sp, sp, #32 ret .cfi_endproc .p2align 2 lJTI31_0: .long LBB31_2-Ltmp14 .long LBB31_3-Ltmp14 .long LBB31_4-Ltmp14 .long LBB31_5-Ltmp14 ; -- End function .p2align 2 ; -- Begin function mod_write _mod_write: ; @mod_write .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, #-24] str d0, [sp, #32] mov w8, #0 tbz w8, #0, LBB32_2 b LBB32_1 LBB32_1: ldr d0, [sp, #32] fcvt s0, d0 stur s0, [x29, #-20] ldur s0, [x29, #-20] ldur s1, [x29, #-20] fcmp s0, s1 cset w8, ne ands w8, w8, #0x1 cset w8, ne tbnz w8, #0, LBB32_5 b LBB32_6 LBB32_2: mov w8, #1 tbz w8, #0, LBB32_4 b LBB32_3 LBB32_3: ldr d0, [sp, #32] stur d0, [x29, #-16] ldur d0, [x29, #-16] ldur d1, [x29, #-16] fcmp d0, d1 cset w8, ne ands w8, w8, #0x1 cset w8, ne tbnz w8, #0, LBB32_5 b LBB32_6 LBB32_4: ldr d0, [sp, #32] stur d0, [x29, #-8] ldur d0, [x29, #-8] ldur d1, [x29, #-8] fcmp d0, d1 cset w8, ne ands w8, w8, #0x1 cset w8, eq tbnz w8, #0, LBB32_6 b LBB32_5 LBB32_5: adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] ldr x0, [x8] ldur w8, [x29, #-24] asr w11, w8, #6 ldur w8, [x29, #-24] and w10, w8, #0x3f mov x9, sp ; implicit-def: $x8 mov x8, x11 str x8, [x9] ; implicit-def: $x8 mov x8, x10 str x8, [x9, #8] adrp x1, l_.str.50@PAGE add x1, x1, l_.str.50@PAGEOFF bl _fprintf b LBB32_6 LBB32_6: ldur w8, [x29, #-24] and w8, w8, #0x3f str w8, [sp, #24] ldur w8, [x29, #-24] asr w8, w8, #6 and w8, w8, #0x1 str w8, [sp, #28] ldr w8, [sp, #28] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB32_8 b LBB32_7 LBB32_7: ldr d1, [sp, #32] ldrsw x9, [sp, #24] adrp x8, _mod_outs@PAGE add x8, x8, _mod_outs@PAGEOFF add x8, x8, x9, lsl #3 ldr d0, [x8] fadd d0, d0, d1 str d0, [x8] b LBB32_9 LBB32_8: ldr d0, [sp, #32] ldrsw x9, [sp, #24] adrp x8, _mod_outs@PAGE add x8, x8, _mod_outs@PAGEOFF str d0, [x8, x9, lsl #3] b LBB32_9 LBB32_9: ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function delay_read _delay_read: ; @delay_read .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, #-12] ldursw x9, [x29, #-12] adrp x8, _dlys@PAGE add x8, x8, _dlys@PAGEOFF ldr x8, [x8, x9, lsl #3] str x8, [sp, #24] ldr x8, [sp, #24] ldr w8, [x8] subs w8, w8, #0 ; kill: def $x8 killed $w8 str x8, [sp] ; 8-byte Folded Spill subs x8, x8, #12 cset w8, hi tbnz w8, #0, LBB33_7 ; %bb.1: ldr x11, [sp] ; 8-byte Folded Reload adrp x10, lJTI33_0@PAGE add x10, x10, lJTI33_0@PAGEOFF Ltmp15: adr x8, Ltmp15 ldrsw x9, [x10, x11, lsl #2] add x8, x8, x9 br x8 LBB33_2: movi d0, #0000000000000000 stur d0, [x29, #-8] b LBB33_8 LBB33_3: ldr x8, [sp, #24] ldr d0, [x8, #32] str d0, [sp, #16] ldr x8, [sp, #24] ldr d0, [x8, #24] ldr x8, [sp, #24] str d0, [x8, #32] ldr x8, [sp, #24] ldr w8, [x8, #12] ldr x9, [sp, #24] ldr w9, [x9, #8] add w9, w8, w9 adrp x8, _delay_memory@PAGE add x8, x8, _delay_memory@PAGEOFF ldr d0, [x8, w9, sxtw #3] ldr x8, [sp, #24] str d0, [x8, #24] ldr d0, [sp, #16] stur d0, [x29, #-8] b LBB33_8 LBB33_4: adrp x8, _table_read_warned@PAGE ldrb w8, [x8, _table_read_warned@PAGEOFF] tbnz w8, #0, LBB33_6 b LBB33_5 LBB33_5: adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] ldr x0, [x8] adrp x1, l_.str.51@PAGE add x1, x1, l_.str.51@PAGEOFF bl _fprintf mov w8, #1 adrp x9, _table_read_warned@PAGE strb w8, [x9, _table_read_warned@PAGEOFF] b LBB33_6 LBB33_6: ldr x8, [sp, #24] ldr w8, [x8, #4] and w8, w8, #0xf str w8, [sp, #12] ldr x8, [sp, #24] ldr w8, [x8, #16] ldr w9, [sp, #12] asr w8, w8, w9 and w8, w8, #0xffff str w8, [sp, #8] ldr x8, [sp, #24] ldr w8, [x8, #12] ldr w9, [sp, #8] add w9, w8, w9 adrp x8, _delay_memory@PAGE add x8, x8, _delay_memory@PAGEOFF ldr d0, [x8, w9, sxtw #3] stur d0, [x29, #-8] b LBB33_8 LBB33_7: movi d0, #0000000000000000 stur d0, [x29, #-8] b LBB33_8 LBB33_8: ldur d0, [x29, #-8] ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc .p2align 2 lJTI33_0: .long LBB33_2-Ltmp15 .long LBB33_7-Ltmp15 .long LBB33_7-Ltmp15 .long LBB33_7-Ltmp15 .long LBB33_7-Ltmp15 .long LBB33_7-Ltmp15 .long LBB33_7-Ltmp15 .long LBB33_7-Ltmp15 .long LBB33_3-Ltmp15 .long LBB33_7-Ltmp15 .long LBB33_4-Ltmp15 .long LBB33_4-Ltmp15 .long LBB33_3-Ltmp15 ; -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ; -- Begin function delay_write lCPI34_0: .quad 0x4120000000000000 ; double 524288 .section __TEXT,__text,regular,pure_instructions .p2align 2 _delay_write: ; @delay_write .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur w0, [x29, #-4] stur d0, [x29, #-16] ldursw x9, [x29, #-4] adrp x8, _dlys@PAGE add x8, x8, _dlys@PAGEOFF ldr x8, [x8, x9, lsl #3] str x8, [sp, #24] ldr x8, [sp, #24] ldr w8, [x8] subs w8, w8, #0 ; kill: def $x8 killed $w8 str x8, [sp, #16] ; 8-byte Folded Spill subs x8, x8, #12 cset w8, hi tbnz w8, #0, LBB34_10 ; %bb.1: ldr x11, [sp, #16] ; 8-byte Folded Reload adrp x10, lJTI34_0@PAGE add x10, x10, lJTI34_0@PAGEOFF Ltmp16: adr x8, Ltmp16 ldrsw x9, [x10, x11, lsl #2] add x8, x8, x9 br x8 LBB34_2: b LBB34_10 LBB34_3: ldur d0, [x29, #-16] ldr x8, [sp, #24] ldr w8, [x8, #12] ldr x9, [sp, #24] ldr w9, [x9, #8] add w9, w8, w9 adrp x8, _delay_memory@PAGE add x8, x8, _delay_memory@PAGEOFF str d0, [x8, w9, sxtw #3] b LBB34_10 LBB34_4: adrp x8, _table_write_warned@PAGE ldrb w8, [x8, _table_write_warned@PAGEOFF] tbnz w8, #0, LBB34_6 b LBB34_5 LBB34_5: adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] ldr x0, [x8] adrp x1, l_.str.52@PAGE add x1, x1, l_.str.52@PAGEOFF bl _fprintf mov w8, #1 adrp x9, _table_write_warned@PAGE strb w8, [x9, _table_write_warned@PAGEOFF] b LBB34_6 LBB34_6: ldur d0, [x29, #-16] fcmp d0, #0.0 cset w8, lt tbnz w8, #0, LBB34_8 b LBB34_7 LBB34_7: ldur d0, [x29, #-16] adrp x8, lCPI34_0@PAGE ldr d1, [x8, lCPI34_0@PAGEOFF] fmul d0, d0, d1 fcvtzs w8, d0 str w8, [sp, #12] ; 4-byte Folded Spill b LBB34_9 LBB34_8: ldur d0, [x29, #-16] fmov d1, #1.00000000 fadd d0, d0, d1 adrp x8, lCPI34_0@PAGE ldr d1, [x8, lCPI34_0@PAGEOFF] fmul d0, d0, d1 fcvtzs w8, d0 str w8, [sp, #12] ; 4-byte Folded Spill b LBB34_9 LBB34_9: ldr w8, [sp, #12] ; 4-byte Folded Reload ldr x9, [sp, #24] str w8, [x9, #16] b LBB34_10 LBB34_10: ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc .p2align 2 lJTI34_0: .long LBB34_2-Ltmp16 .long LBB34_10-Ltmp16 .long LBB34_10-Ltmp16 .long LBB34_10-Ltmp16 .long LBB34_10-Ltmp16 .long LBB34_10-Ltmp16 .long LBB34_10-Ltmp16 .long LBB34_10-Ltmp16 .long LBB34_3-Ltmp16 .long LBB34_10-Ltmp16 .long LBB34_4-Ltmp16 .long LBB34_4-Ltmp16 .long LBB34_2-Ltmp16 ; -- End function .p2align 2 ; -- Begin function print_gmode_name _print_gmode_name: ; @print_gmode_name .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, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] str x8, [sp, #24] ; 8-byte Folded Spill adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] str w0, [sp, #44] adrp x8, l___const.print_gmode_name.E_name@PAGE add x8, x8, l___const.print_gmode_name.E_name@PAGEOFF ldr q0, [x8] str q0, [sp, #48] ldr q0, [x8, #16] str q0, [sp, #64] ldr w8, [sp, #44] asr w8, w8, #6 and w8, w8, #0xf str w8, [sp, #40] ldr w8, [sp, #44] asr w8, w8, #4 and w8, w8, #0x3 str w8, [sp, #36] ldr w8, [sp, #44] and w8, w8, #0xf str w8, [sp, #32] ldr w8, [sp, #40] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB35_2 b LBB35_1 LBB35_1: ldr x8, [sp, #24] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.18@PAGE add x1, x1, l_.str.18@PAGEOFF bl _fprintf b LBB35_26 LBB35_2: ldr w8, [sp, #40] subs w8, w8, #2 cset w8, eq tbnz w8, #0, LBB35_15 b LBB35_3 LBB35_3: ldr w8, [sp, #40] subs w8, w8, #7 cset w8, eq tbnz w8, #0, LBB35_15 b LBB35_4 LBB35_4: ldr w8, [sp, #40] subs w8, w8, #3 cset w8, eq tbnz w8, #0, LBB35_15 b LBB35_5 LBB35_5: ldr w8, [sp, #32] subs w8, w8, #0 ; kill: def $x8 killed $w8 str x8, [sp, #16] ; 8-byte Folded Spill subs x8, x8, #8 cset w8, hi tbnz w8, #0, LBB35_13 ; %bb.6: ldr x11, [sp, #16] ; 8-byte Folded Reload adrp x10, lJTI35_0@PAGE add x10, x10, lJTI35_0@PAGEOFF Ltmp17: adr x8, Ltmp17 ldrsw x9, [x10, x11, lsl #2] add x8, x8, x9 br x8 LBB35_7: ldr x8, [sp, #24] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.79@PAGE add x1, x1, l_.str.79@PAGEOFF bl _fprintf b LBB35_14 LBB35_8: ldr x8, [sp, #24] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.80@PAGE add x1, x1, l_.str.80@PAGEOFF bl _fprintf b LBB35_14 LBB35_9: ldr x8, [sp, #24] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.81@PAGE add x1, x1, l_.str.81@PAGEOFF bl _fprintf b LBB35_14 LBB35_10: ldr x8, [sp, #24] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.82@PAGE add x1, x1, l_.str.82@PAGEOFF bl _fprintf b LBB35_14 LBB35_11: ldr x8, [sp, #24] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.83@PAGE add x1, x1, l_.str.83@PAGEOFF bl _fprintf b LBB35_14 LBB35_12: ldr x8, [sp, #24] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.84@PAGE add x1, x1, l_.str.84@PAGEOFF bl _fprintf b LBB35_14 LBB35_13: ldr x8, [sp, #24] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.23@PAGE add x1, x1, l_.str.23@PAGEOFF bl _fprintf b LBB35_14 LBB35_14: ldr x8, [sp, #24] ; 8-byte Folded Reload ldr x0, [x8] ldrsw x9, [sp, #36] add x8, sp, #48 ldr x8, [x8, x9, lsl #3] mov x9, sp str x8, [x9] adrp x1, l_.str.85@PAGE add x1, x1, l_.str.85@PAGEOFF bl _fprintf b LBB35_15 LBB35_15: ldr w8, [sp, #40] subs w8, w8, #1 ; kill: def $x8 killed $w8 str x8, [sp, #8] ; 8-byte Folded Spill subs x8, x8, #14 cset w8, hi tbnz w8, #0, LBB35_25 ; %bb.16: ldr x11, [sp, #8] ; 8-byte Folded Reload adrp x10, lJTI35_1@PAGE add x10, x10, lJTI35_1@PAGEOFF Ltmp18: adr x8, Ltmp18 ldrsw x9, [x10, x11, lsl #2] add x8, x8, x9 br x8 LBB35_17: ldr x8, [sp, #24] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.86@PAGE add x1, x1, l_.str.86@PAGEOFF bl _fprintf b LBB35_26 LBB35_18: ldr x8, [sp, #24] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.66@PAGE add x1, x1, l_.str.66@PAGEOFF bl _fprintf b LBB35_26 LBB35_19: ldr x8, [sp, #24] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.68@PAGE add x1, x1, l_.str.68@PAGEOFF bl _fprintf b LBB35_26 LBB35_20: ldr x8, [sp, #24] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.87@PAGE add x1, x1, l_.str.87@PAGEOFF bl _fprintf b LBB35_26 LBB35_21: ldr x8, [sp, #24] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.88@PAGE add x1, x1, l_.str.88@PAGEOFF bl _fprintf b LBB35_26 LBB35_22: ldr x8, [sp, #24] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.89@PAGE add x1, x1, l_.str.89@PAGEOFF bl _fprintf b LBB35_26 LBB35_23: ldr x8, [sp, #24] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.90@PAGE add x1, x1, l_.str.90@PAGEOFF bl _fprintf b LBB35_26 LBB35_24: ldr x8, [sp, #24] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.91@PAGE add x1, x1, l_.str.91@PAGEOFF bl _fprintf b LBB35_26 LBB35_25: ldr x8, [sp, #24] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.23@PAGE add x1, x1, l_.str.23@PAGEOFF bl _fprintf b LBB35_26 LBB35_26: 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, LBB35_28 b LBB35_27 LBB35_27: bl ___stack_chk_fail LBB35_28: ldp x29, x30, [sp, #96] ; 16-byte Folded Reload add sp, sp, #112 ret .cfi_endproc .p2align 2 lJTI35_0: .long LBB35_11-Ltmp17 .long LBB35_8-Ltmp17 .long LBB35_9-Ltmp17 .long LBB35_10-Ltmp17 .long LBB35_7-Ltmp17 .long LBB35_13-Ltmp17 .long LBB35_13-Ltmp17 .long LBB35_13-Ltmp17 .long LBB35_12-Ltmp17 .p2align 2 lJTI35_1: .long LBB35_17-Ltmp18 .long LBB35_24-Ltmp18 .long LBB35_23-Ltmp18 .long LBB35_25-Ltmp18 .long LBB35_25-Ltmp18 .long LBB35_25-Ltmp18 .long LBB35_22-Ltmp18 .long LBB35_25-Ltmp18 .long LBB35_20-Ltmp18 .long LBB35_25-Ltmp18 .long LBB35_25-Ltmp18 .long LBB35_25-Ltmp18 .long LBB35_21-Ltmp18 .long LBB35_19-Ltmp18 .long LBB35_18-Ltmp18 ; -- End function .p2align 2 ; -- Begin function dump_gen_sum _dump_gen_sum: ; @dump_gen_sum .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 x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] ldr x0, [x8] ldur w8, [x29, #-4] ; implicit-def: $x9 mov x9, x8 ldursw x10, [x29, #-4] adrp x8, _prev_gen_ins@PAGE add x8, x8, _prev_gen_ins@PAGEOFF ldr d3, [x8, x10, lsl #3] ldursw x10, [x29, #-4] adrp x8, _gen_ins@PAGE add x8, x8, _gen_ins@PAGEOFF ldr d2, [x8, x10, lsl #3] ldursw x10, [x29, #-4] adrp x8, _gen_outs@PAGE add x8, x8, _gen_outs@PAGEOFF ldr d1, [x8, x10, lsl #3] ldursw x10, [x29, #-4] adrp x8, _peak_gen_ins@PAGE add x8, x8, _peak_gen_ins@PAGEOFF ldr d0, [x8, x10, lsl #3] mov x8, sp str x9, [x8] str d3, [x8, #8] str d2, [x8, #16] str d1, [x8, #24] str d0, [x8, #32] adrp x1, l_.str.92@PAGE add x1, x1, l_.str.92@PAGEOFF bl _fprintf stur wzr, [x29, #-8] b LBB36_1 LBB36_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-8] subs w8, w8, #256 cset w8, ge tbnz w8, #0, LBB36_7 b LBB36_2 LBB36_2: ; in Loop: Header=BB36_1 Depth=1 ldursw x9, [x29, #-8] adrp x8, _gens@PAGE add x8, x8, _gens@PAGEOFF ldr x8, [x8, x9, lsl #3] ldr w8, [x8, #44] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB36_5 b LBB36_3 LBB36_3: ; in Loop: Header=BB36_1 Depth=1 ldursw x9, [x29, #-8] adrp x8, _gens@PAGE add x8, x8, _gens@PAGEOFF ldr x8, [x8, x9, lsl #3] ldr w8, [x8, #32] ldur w9, [x29, #-4] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB36_5 b LBB36_4 LBB36_4: ; in Loop: Header=BB36_1 Depth=1 adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] ldr x0, [x8] ldur w9, [x29, #-8] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x1, l_.str.93@PAGE add x1, x1, l_.str.93@PAGEOFF bl _fprintf b LBB36_5 LBB36_5: ; in Loop: Header=BB36_1 Depth=1 b LBB36_6 LBB36_6: ; in Loop: Header=BB36_1 Depth=1 ldur w8, [x29, #-8] add w8, w8, #1 stur w8, [x29, #-8] b LBB36_1 LBB36_7: ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function print_mod_sum _print_mod_sum: ; @print_mod_sum .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, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] str x8, [sp, #8] ; 8-byte Folded Spill stur w0, [x29, #-4] ldur w8, [x29, #-4] and w8, w8, #0x3f stur w8, [x29, #-8] ldur w8, [x29, #-4] asr w8, w8, #6 and w8, w8, #0x3 subs w8, w8, #0 ; kill: def $x8 killed $w8 str x8, [sp, #16] ; 8-byte Folded Spill subs x8, x8, #3 cset w8, hi tbnz w8, #0, LBB37_24 ; %bb.1: ldr x11, [sp, #16] ; 8-byte Folded Reload adrp x10, lJTI37_0@PAGE add x10, x10, lJTI37_0@PAGEOFF Ltmp19: adr x8, Ltmp19 ldrsw x9, [x10, x11, lsl #2] add x8, x8, x9 br x8 LBB37_2: ldr x8, [sp, #8] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.94@PAGE add x1, x1, l_.str.94@PAGEOFF bl _fprintf ldur w0, [x29, #-8] bl _dump_gen_sum b LBB37_24 LBB37_3: ldr x8, [sp, #8] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.94@PAGE add x1, x1, l_.str.94@PAGEOFF bl _fprintf ldur w8, [x29, #-8] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB37_11 b LBB37_4 LBB37_4: adrp x8, _prev_mod_ins@PAGE ldr d0, [x8, _prev_mod_ins@PAGEOFF] fcmp d0, #0.0 cset w8, ne tbnz w8, #0, LBB37_8 b LBB37_5 LBB37_5: adrp x8, _mod_ins@PAGE ldr d0, [x8, _mod_ins@PAGEOFF] fcmp d0, #0.0 cset w8, ne tbnz w8, #0, LBB37_8 b LBB37_6 LBB37_6: adrp x8, _mod_outs@PAGE ldr d0, [x8, _mod_outs@PAGEOFF] fcmp d0, #0.0 cset w8, ne tbnz w8, #0, LBB37_8 b LBB37_7 LBB37_7: adrp x8, _peak_mod_ins@PAGE ldr d0, [x8, _peak_mod_ins@PAGEOFF] fcmp d0, #0.0 cset w8, eq tbnz w8, #0, LBB37_9 b LBB37_8 LBB37_8: mov w0, #0 bl _dump_mod_sum b LBB37_10 LBB37_9: ldr x8, [sp, #8] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.95@PAGE add x1, x1, l_.str.95@PAGEOFF bl _fprintf b LBB37_10 LBB37_10: b LBB37_12 LBB37_11: ldur w0, [x29, #-8] bl _dump_mod_sum b LBB37_12 LBB37_12: b LBB37_24 LBB37_13: ldr x8, [sp, #8] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.96@PAGE add x1, x1, l_.str.96@PAGEOFF bl _fprintf ldur w8, [x29, #-8] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB37_21 b LBB37_14 LBB37_14: adrp x8, _prev_mod_ins@PAGE ldr d0, [x8, _prev_mod_ins@PAGEOFF] fcmp d0, #0.0 cset w8, ne tbnz w8, #0, LBB37_18 b LBB37_15 LBB37_15: adrp x8, _mod_ins@PAGE ldr d0, [x8, _mod_ins@PAGEOFF] fcmp d0, #0.0 cset w8, ne tbnz w8, #0, LBB37_18 b LBB37_16 LBB37_16: adrp x8, _mod_outs@PAGE ldr d0, [x8, _mod_outs@PAGEOFF] fcmp d0, #0.0 cset w8, ne tbnz w8, #0, LBB37_18 b LBB37_17 LBB37_17: adrp x8, _peak_mod_ins@PAGE ldr d0, [x8, _peak_mod_ins@PAGEOFF] fcmp d0, #0.0 cset w8, eq tbnz w8, #0, LBB37_19 b LBB37_18 LBB37_18: mov w0, #0 bl _dump_mod_sum b LBB37_20 LBB37_19: ldr x8, [sp, #8] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.95@PAGE add x1, x1, l_.str.95@PAGEOFF bl _fprintf b LBB37_20 LBB37_20: b LBB37_22 LBB37_21: ldur w0, [x29, #-8] bl _dump_mod_sum b LBB37_22 LBB37_22: b LBB37_24 LBB37_23: ldr x8, [sp, #8] ; 8-byte Folded Reload ldr x0, [x8] ldur w9, [x29, #-4] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x1, l_.str.97@PAGE add x1, x1, l_.str.97@PAGEOFF bl _fprintf b LBB37_24 LBB37_24: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc .p2align 2 lJTI37_0: .long LBB37_2-Ltmp19 .long LBB37_3-Ltmp19 .long LBB37_13-Ltmp19 .long LBB37_23-Ltmp19 ; -- End function .p2align 2 ; -- Begin function gen_mem_readers _gen_mem_readers: ; @gen_mem_readers .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #12] str wzr, [sp, #4] str wzr, [sp, #8] b LBB38_1 LBB38_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #8] subs w8, w8, #256 cset w8, ge tbnz w8, #0, LBB38_7 b LBB38_2 LBB38_2: ; in Loop: Header=BB38_1 Depth=1 ldrsw x9, [sp, #8] adrp x8, _gens@PAGE add x8, x8, _gens@PAGEOFF ldr x8, [x8, x9, lsl #3] ldr w8, [x8, #44] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB38_5 b LBB38_3 LBB38_3: ; in Loop: Header=BB38_1 Depth=1 ldrsw x9, [sp, #8] adrp x8, _gens@PAGE add x8, x8, _gens@PAGEOFF ldr x8, [x8, x9, lsl #3] ldr w8, [x8, #36] ldr w9, [sp, #12] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB38_5 b LBB38_4 LBB38_4: ; in Loop: Header=BB38_1 Depth=1 ldr w8, [sp, #4] add w8, w8, #1 str w8, [sp, #4] b LBB38_5 LBB38_5: ; in Loop: Header=BB38_1 Depth=1 b LBB38_6 LBB38_6: ; in Loop: Header=BB38_1 Depth=1 ldr w8, [sp, #8] add w8, w8, #1 str w8, [sp, #8] b LBB38_1 LBB38_7: str wzr, [sp, #8] b LBB38_8 LBB38_8: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #8] subs w8, w8, #128 cset w8, ge tbnz w8, #0, LBB38_18 b LBB38_9 LBB38_9: ; in Loop: Header=BB38_8 Depth=1 ldrsw x9, [sp, #8] adrp x8, _mods@PAGE add x8, x8, _mods@PAGEOFF ldr x8, [x8, x9, lsl #3] ldr w8, [x8, #28] asr w8, w8, #4 ands w8, w8, #0x1f cset w8, eq tbnz w8, #0, LBB38_16 b LBB38_10 LBB38_10: ; in Loop: Header=BB38_8 Depth=1 ldrsw x9, [sp, #8] adrp x8, _mods@PAGE add x8, x8, _mods@PAGEOFF ldr x8, [x8, x9, lsl #3] ldr w8, [x8, #16] ldr w9, [sp, #12] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB38_12 b LBB38_11 LBB38_11: ; in Loop: Header=BB38_8 Depth=1 ldr w8, [sp, #4] add w8, w8, #1 str w8, [sp, #4] b LBB38_12 LBB38_12: ; in Loop: Header=BB38_8 Depth=1 ldrsw x9, [sp, #8] adrp x8, _mods@PAGE add x8, x8, _mods@PAGEOFF ldr x8, [x8, x9, lsl #3] ldr w8, [x8, #28] asr w8, w8, #4 and w8, w8, #0x1f subs w8, w8, #7 cset w8, eq tbnz w8, #0, LBB38_15 b LBB38_13 LBB38_13: ; in Loop: Header=BB38_8 Depth=1 ldrsw x9, [sp, #8] adrp x8, _mods@PAGE add x8, x8, _mods@PAGEOFF ldr x8, [x8, x9, lsl #3] ldr w8, [x8, #20] ldr w9, [sp, #12] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB38_15 b LBB38_14 LBB38_14: ; in Loop: Header=BB38_8 Depth=1 ldr w8, [sp, #4] add w8, w8, #1 str w8, [sp, #4] b LBB38_15 LBB38_15: ; in Loop: Header=BB38_8 Depth=1 b LBB38_16 LBB38_16: ; in Loop: Header=BB38_8 Depth=1 b LBB38_17 LBB38_17: ; in Loop: Header=BB38_8 Depth=1 ldr w8, [sp, #8] add w8, w8, #1 str w8, [sp, #8] b LBB38_8 LBB38_18: ldr w0, [sp, #4] add sp, sp, #16 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function gen_amp _gen_amp: ; @gen_amp .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #16] ldr x8, [sp, #16] ldr w8, [x8, #44] asr w8, w8, #6 ands w8, w8, #0xf cset w8, ne tbnz w8, #0, LBB39_2 b LBB39_1 LBB39_1: movi d0, #0000000000000000 stur d0, [x29, #-8] b LBB39_10 LBB39_2: ldr x8, [sp, #16] ldr w8, [x8, #44] asr w8, w8, #4 and w8, w8, #0x3 str w8, [sp, #12] ldr w8, [sp, #12] subs w8, w8, #3 cset w8, eq tbnz w8, #0, LBB39_4 b LBB39_3 LBB39_3: ldr w8, [sp, #12] subs w8, w8, #2 cset w8, ne tbnz w8, #0, LBB39_5 b LBB39_4 LBB39_4: ldr x8, [sp, #16] ldr d1, [x8, #88] fmov d0, #-16.00000000 fmul d1, d0, d1 fmov d0, #2.00000000 bl _pow str d0, [sp] b LBB39_6 LBB39_5: ldr x8, [sp, #16] ldr d0, [x8, #88] str d0, [sp] b LBB39_6 LBB39_6: ldr w8, [sp, #12] subs w8, w8, #1 cset w8, eq tbnz w8, #0, LBB39_8 b LBB39_7 LBB39_7: ldr w8, [sp, #12] subs w8, w8, #3 cset w8, ne tbnz w8, #0, LBB39_9 b LBB39_8 LBB39_8: ldr x8, [sp, #16] ldr d0, [x8, #96] ldr d1, [sp] fadd d0, d0, d1 stur d0, [x29, #-8] b LBB39_10 LBB39_9: ldr x8, [sp, #16] ldr d0, [x8, #96] ldr d1, [sp] fsub d0, d0, d1 stur d0, [x29, #-8] b LBB39_10 LBB39_10: ldur d0, [x29, #-8] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function mode_name _mode_name: ; @mode_name .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str w0, [sp, #20] ldr w8, [sp, #20] subs w8, w8, #0 ; kill: def $x8 killed $w8 str x8, [sp, #8] ; 8-byte Folded Spill subs x8, x8, #29 cset w8, hi tbnz w8, #0, LBB40_24 ; %bb.1: ldr x11, [sp, #8] ; 8-byte Folded Reload adrp x10, lJTI40_0@PAGE add x10, x10, lJTI40_0@PAGEOFF Ltmp22: adr x8, Ltmp22 ldrsw x9, [x10, x11, lsl #2] add x8, x8, x9 br x8 LBB40_2: adrp x8, l_.str.18@PAGE add x8, x8, l_.str.18@PAGEOFF str x8, [sp, #24] b LBB40_25 LBB40_3: adrp x8, l_.str.98@PAGE add x8, x8, l_.str.98@PAGEOFF str x8, [sp, #24] b LBB40_25 LBB40_4: adrp x8, l_.str.99@PAGE add x8, x8, l_.str.99@PAGEOFF str x8, [sp, #24] b LBB40_25 LBB40_5: adrp x8, l_.str.100@PAGE add x8, x8, l_.str.100@PAGEOFF str x8, [sp, #24] b LBB40_25 LBB40_6: adrp x8, l_.str.101@PAGE add x8, x8, l_.str.101@PAGEOFF str x8, [sp, #24] b LBB40_25 LBB40_7: adrp x8, l_.str.102@PAGE add x8, x8, l_.str.102@PAGEOFF str x8, [sp, #24] b LBB40_25 LBB40_8: adrp x8, l_.str.103@PAGE add x8, x8, l_.str.103@PAGEOFF str x8, [sp, #24] b LBB40_25 LBB40_9: adrp x8, l_.str.104@PAGE add x8, x8, l_.str.104@PAGEOFF str x8, [sp, #24] b LBB40_25 LBB40_10: adrp x8, l_.str.105@PAGE add x8, x8, l_.str.105@PAGEOFF str x8, [sp, #24] b LBB40_25 LBB40_11: adrp x8, l_.str.106@PAGE add x8, x8, l_.str.106@PAGEOFF str x8, [sp, #24] b LBB40_25 LBB40_12: adrp x8, l_.str.107@PAGE add x8, x8, l_.str.107@PAGEOFF str x8, [sp, #24] b LBB40_25 LBB40_13: adrp x8, l_.str.108@PAGE add x8, x8, l_.str.108@PAGEOFF str x8, [sp, #24] b LBB40_25 LBB40_14: adrp x8, l_.str.109@PAGE add x8, x8, l_.str.109@PAGEOFF str x8, [sp, #24] b LBB40_25 LBB40_15: adrp x8, l_.str.110@PAGE add x8, x8, l_.str.110@PAGEOFF str x8, [sp, #24] b LBB40_25 LBB40_16: adrp x8, l_.str.111@PAGE add x8, x8, l_.str.111@PAGEOFF str x8, [sp, #24] b LBB40_25 LBB40_17: adrp x8, l_.str.112@PAGE add x8, x8, l_.str.112@PAGEOFF str x8, [sp, #24] b LBB40_25 LBB40_18: adrp x8, l_.str.113@PAGE add x8, x8, l_.str.113@PAGEOFF str x8, [sp, #24] b LBB40_25 LBB40_19: adrp x8, l_.str.114@PAGE add x8, x8, l_.str.114@PAGEOFF str x8, [sp, #24] b LBB40_25 LBB40_20: adrp x8, l_.str.115@PAGE add x8, x8, l_.str.115@PAGEOFF str x8, [sp, #24] b LBB40_25 LBB40_21: adrp x8, l_.str.116@PAGE add x8, x8, l_.str.116@PAGEOFF str x8, [sp, #24] b LBB40_25 LBB40_22: adrp x8, l_.str.117@PAGE add x8, x8, l_.str.117@PAGEOFF str x8, [sp, #24] b LBB40_25 LBB40_23: adrp x8, l_.str.118@PAGE add x8, x8, l_.str.118@PAGEOFF str x8, [sp, #24] b LBB40_25 LBB40_24: adrp x8, l_.str.23@PAGE add x8, x8, l_.str.23@PAGEOFF str x8, [sp, #24] b LBB40_25 LBB40_25: ldr x0, [sp, #24] add sp, sp, #32 ret .cfi_endproc .p2align 2 lJTI40_0: .long LBB40_2-Ltmp22 .long LBB40_24-Ltmp22 .long LBB40_3-Ltmp22 .long LBB40_4-Ltmp22 .long LBB40_5-Ltmp22 .long LBB40_24-Ltmp22 .long LBB40_6-Ltmp22 .long LBB40_7-Ltmp22 .long LBB40_8-Ltmp22 .long LBB40_9-Ltmp22 .long LBB40_24-Ltmp22 .long LBB40_10-Ltmp22 .long LBB40_11-Ltmp22 .long LBB40_12-Ltmp22 .long LBB40_24-Ltmp22 .long LBB40_13-Ltmp22 .long LBB40_14-Ltmp22 .long LBB40_15-Ltmp22 .long LBB40_24-Ltmp22 .long LBB40_24-Ltmp22 .long LBB40_16-Ltmp22 .long LBB40_24-Ltmp22 .long LBB40_17-Ltmp22 .long LBB40_24-Ltmp22 .long LBB40_18-Ltmp22 .long LBB40_19-Ltmp22 .long LBB40_20-Ltmp22 .long LBB40_21-Ltmp22 .long LBB40_22-Ltmp22 .long LBB40_23-Ltmp22 ; -- End function .p2align 2 ; -- Begin function dump_mod_sum _dump_mod_sum: ; @dump_mod_sum .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 x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] ldr x0, [x8] ldur w8, [x29, #-4] ; implicit-def: $x9 mov x9, x8 ldursw x10, [x29, #-4] adrp x8, _prev_mod_ins@PAGE add x8, x8, _prev_mod_ins@PAGEOFF ldr d3, [x8, x10, lsl #3] ldursw x10, [x29, #-4] adrp x8, _mod_ins@PAGE add x8, x8, _mod_ins@PAGEOFF ldr d2, [x8, x10, lsl #3] ldursw x10, [x29, #-4] adrp x8, _mod_outs@PAGE add x8, x8, _mod_outs@PAGEOFF ldr d1, [x8, x10, lsl #3] ldursw x10, [x29, #-4] adrp x8, _peak_mod_ins@PAGE add x8, x8, _peak_mod_ins@PAGEOFF ldr d0, [x8, x10, lsl #3] mov x8, sp str x9, [x8] str d3, [x8, #8] str d2, [x8, #16] str d1, [x8, #24] str d0, [x8, #32] adrp x1, l_.str.119@PAGE add x1, x1, l_.str.119@PAGEOFF bl _fprintf stur wzr, [x29, #-8] b LBB41_1 LBB41_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-8] subs w8, w8, #128 cset w8, ge tbnz w8, #0, LBB41_7 b LBB41_2 LBB41_2: ; in Loop: Header=BB41_1 Depth=1 ldursw x9, [x29, #-8] adrp x8, _mods@PAGE add x8, x8, _mods@PAGEOFF ldr x8, [x8, x9, lsl #3] ldr w8, [x8, #28] asr w8, w8, #4 ands w8, w8, #0x1f cset w8, eq tbnz w8, #0, LBB41_5 b LBB41_3 LBB41_3: ; in Loop: Header=BB41_1 Depth=1 ldursw x9, [x29, #-8] adrp x8, _mods@PAGE add x8, x8, _mods@PAGEOFF ldr x8, [x8, x9, lsl #3] ldr w8, [x8, #24] and w8, w8, #0x3f ldur w9, [x29, #-4] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB41_5 b LBB41_4 LBB41_4: ; in Loop: Header=BB41_1 Depth=1 adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] ldr x0, [x8] ldur w9, [x29, #-8] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x1, l_.str.120@PAGE add x1, x1, l_.str.120@PAGEOFF bl _fprintf b LBB41_5 LBB41_5: ; in Loop: Header=BB41_1 Depth=1 b LBB41_6 LBB41_6: ; in Loop: Header=BB41_1 Depth=1 ldur w8, [x29, #-8] add w8, w8, #1 stur w8, [x29, #-8] b LBB41_1 LBB41_7: ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function mod_mem_readers _mod_mem_readers: ; @mod_mem_readers .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #12] str wzr, [sp, #4] str wzr, [sp, #8] b LBB42_1 LBB42_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #8] subs w8, w8, #256 cset w8, ge tbnz w8, #0, LBB42_7 b LBB42_2 LBB42_2: ; in Loop: Header=BB42_1 Depth=1 ldrsw x9, [sp, #8] adrp x8, _gens@PAGE add x8, x8, _gens@PAGEOFF ldr x8, [x8, x9, lsl #3] ldr w8, [x8, #44] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB42_5 b LBB42_3 LBB42_3: ; in Loop: Header=BB42_1 Depth=1 ldrsw x9, [sp, #8] adrp x8, _gens@PAGE add x8, x8, _gens@PAGEOFF ldr x8, [x8, x9, lsl #3] ldr w8, [x8, #36] ldr w9, [sp, #12] add w9, w9, #64 subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB42_5 b LBB42_4 LBB42_4: ; in Loop: Header=BB42_1 Depth=1 ldr w8, [sp, #4] add w8, w8, #1 str w8, [sp, #4] b LBB42_5 LBB42_5: ; in Loop: Header=BB42_1 Depth=1 b LBB42_6 LBB42_6: ; in Loop: Header=BB42_1 Depth=1 ldr w8, [sp, #8] add w8, w8, #1 str w8, [sp, #8] b LBB42_1 LBB42_7: str wzr, [sp, #8] b LBB42_8 LBB42_8: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #8] subs w8, w8, #128 cset w8, ge tbnz w8, #0, LBB42_20 b LBB42_9 LBB42_9: ; in Loop: Header=BB42_8 Depth=1 ldrsw x9, [sp, #8] adrp x8, _mods@PAGE add x8, x8, _mods@PAGEOFF ldr x8, [x8, x9, lsl #3] ldr w8, [x8, #28] asr w8, w8, #4 ands w8, w8, #0x1f cset w8, eq tbnz w8, #0, LBB42_18 b LBB42_10 LBB42_10: ; in Loop: Header=BB42_8 Depth=1 ldrsw x9, [sp, #8] adrp x8, _mods@PAGE add x8, x8, _mods@PAGEOFF ldr x8, [x8, x9, lsl #3] ldr w8, [x8, #16] ldr w9, [sp, #12] add w9, w9, #64 subs w8, w8, w9 cset w8, eq tbnz w8, #0, LBB42_12 b LBB42_11 LBB42_11: ; in Loop: Header=BB42_8 Depth=1 ldrsw x9, [sp, #8] adrp x8, _mods@PAGE add x8, x8, _mods@PAGEOFF ldr x8, [x8, x9, lsl #3] ldr w8, [x8, #16] ldr w9, [sp, #12] add w9, w9, #128 subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB42_13 b LBB42_12 LBB42_12: ; in Loop: Header=BB42_8 Depth=1 ldr w8, [sp, #4] add w8, w8, #1 str w8, [sp, #4] b LBB42_13 LBB42_13: ; in Loop: Header=BB42_8 Depth=1 ldrsw x9, [sp, #8] adrp x8, _mods@PAGE add x8, x8, _mods@PAGEOFF ldr x8, [x8, x9, lsl #3] ldr w8, [x8, #28] asr w8, w8, #4 and w8, w8, #0x1f subs w8, w8, #7 cset w8, eq tbnz w8, #0, LBB42_17 b LBB42_14 LBB42_14: ; in Loop: Header=BB42_8 Depth=1 ldrsw x9, [sp, #8] adrp x8, _mods@PAGE add x8, x8, _mods@PAGEOFF ldr x8, [x8, x9, lsl #3] ldr w8, [x8, #20] ldr w9, [sp, #12] add w9, w9, #64 subs w8, w8, w9 cset w8, eq tbnz w8, #0, LBB42_16 b LBB42_15 LBB42_15: ; in Loop: Header=BB42_8 Depth=1 ldrsw x9, [sp, #8] adrp x8, _mods@PAGE add x8, x8, _mods@PAGEOFF ldr x8, [x8, x9, lsl #3] ldr w8, [x8, #20] ldr w9, [sp, #12] add w9, w9, #128 subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB42_17 b LBB42_16 LBB42_16: ; in Loop: Header=BB42_8 Depth=1 ldr w8, [sp, #4] add w8, w8, #1 str w8, [sp, #4] b LBB42_17 LBB42_17: ; in Loop: Header=BB42_8 Depth=1 b LBB42_18 LBB42_18: ; in Loop: Header=BB42_8 Depth=1 b LBB42_19 LBB42_19: ; in Loop: Header=BB42_8 Depth=1 ldr w8, [sp, #8] add w8, w8, #1 str w8, [sp, #8] b LBB42_8 LBB42_20: ldr w0, [sp, #4] add sp, sp, #16 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function gen_is_active _gen_is_active: ; @gen_is_active .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, #44] bl _osc_is_running mov w8, #0 str w8, [sp, #4] ; 4-byte Folded Spill tbz w0, #0, LBB43_3 b LBB43_1 LBB43_1: ldr x8, [sp, #8] ldr w8, [x8, #24] subs w8, w8, #0 cset w8, eq mov w9, #0 str w9, [sp, #4] ; 4-byte Folded Spill tbnz w8, #0, LBB43_3 b LBB43_2 LBB43_2: ldr x8, [sp, #8] ldr w8, [x8, #4] subs w8, w8, #0 cset w8, ne str w8, [sp, #4] ; 4-byte Folded Spill b LBB43_3 LBB43_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 .p2align 2 ; -- Begin function bad_mode _bad_mode: ; @bad_mode .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str w0, [sp, #24] ldr w8, [sp, #24] asr w8, w8, #6 and w8, w8, #0xf str w8, [sp, #20] ldr w8, [sp, #24] asr w8, w8, #4 and w8, w8, #0x3 str w8, [sp, #16] ldr w8, [sp, #24] and w8, w8, #0xf str w8, [sp, #12] ldr w8, [sp, #20] subs w8, w8, #2 cset w8, eq tbnz w8, #0, LBB44_9 b LBB44_1 LBB44_1: ldr w8, [sp, #20] subs w8, w8, #7 cset w8, eq tbnz w8, #0, LBB44_9 b LBB44_2 LBB44_2: ldr w8, [sp, #20] subs w8, w8, #3 cset w8, eq tbnz w8, #0, LBB44_9 b LBB44_3 LBB44_3: ldr w8, [sp, #20] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB44_9 b LBB44_4 LBB44_4: ldr w8, [sp, #12] str w8, [sp, #8] ; 4-byte Folded Spill subs w8, w8, #0 subs w8, w8, #4 cset w8, ls tbnz w8, #0, LBB44_6 b LBB44_5 LBB44_5: ldr w8, [sp, #8] ; 4-byte Folded Reload subs w8, w8, #8 cset w8, ne tbnz w8, #0, LBB44_7 b LBB44_6 LBB44_6: b LBB44_8 LBB44_7: mov w8, #1 and w8, w8, #0x1 and w8, w8, #0x1 strb w8, [sp, #31] b LBB44_16 LBB44_8: b LBB44_9 LBB44_9: ldr w8, [sp, #20] str w8, [sp, #4] ; 4-byte Folded Spill subs w8, w8, #0 subs w8, w8, #3 cset w8, ls tbnz w8, #0, LBB44_13 b LBB44_10 LBB44_10: ldr w8, [sp, #4] ; 4-byte Folded Reload subs w8, w8, #7 cset w8, eq tbnz w8, #0, LBB44_13 b LBB44_11 LBB44_11: ldr w8, [sp, #4] ; 4-byte Folded Reload subs w8, w8, #9 cset w8, eq tbnz w8, #0, LBB44_13 b LBB44_12 LBB44_12: ldr w8, [sp, #4] ; 4-byte Folded Reload subs w8, w8, #13 subs w8, w8, #2 cset w8, hi tbnz w8, #0, LBB44_14 b LBB44_13 LBB44_13: b LBB44_15 LBB44_14: mov w8, #1 and w8, w8, #0x1 and w8, w8, #0x1 strb w8, [sp, #31] b LBB44_16 LBB44_15: mov w8, #0 and w8, w8, #0x1 and w8, w8, #0x1 strb w8, [sp, #31] b LBB44_16 LBB44_16: ldrb w8, [sp, #31] and w0, w8, #0x1 add sp, sp, #32 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function print_mod_read_name _print_mod_read_name: ; @print_mod_read_name .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 x9, ___stderrp@GOTPAGE ldr x9, [x9, ___stderrp@GOTPAGEOFF] str x9, [sp, #16] ; 8-byte Folded Spill adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] str w0, [sp, #28] adrp x10, l___const.print_mod_read_name.mem_names@PAGE add x10, x10, l___const.print_mod_read_name.mem_names@PAGEOFF ldr q0, [x10] add x8, sp, #32 str q0, [sp, #32] ldr q0, [x10, #16] str q0, [sp, #48] ldr x0, [x9] ldr w9, [sp, #28] asr w9, w9, #6 and w9, w9, #0x3 ldr x8, [x8, w9, sxtw #3] mov x9, sp str x8, [x9] adrp x1, l_.str.181@PAGE add x1, x1, l_.str.181@PAGEOFF bl _fprintf ldr w8, [sp, #28] ands w8, w8, #0x3f cset w8, ne tbnz w8, #0, LBB45_3 b LBB45_1 LBB45_1: ldr w8, [sp, #28] asr w8, w8, #6 ands w8, w8, #0x3 cset w8, eq tbnz w8, #0, LBB45_3 b LBB45_2 LBB45_2: ldr x8, [sp, #16] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.95@PAGE add x1, x1, l_.str.95@PAGEOFF bl _fprintf b LBB45_4 LBB45_3: ldr x8, [sp, #16] ; 8-byte Folded Reload ldr x0, [x8] ldr w8, [sp, #28] and w10, w8, #0x3f mov x9, sp ; implicit-def: $x8 mov x8, x10 str x8, [x9] adrp x1, l_.str.4@PAGE add x1, x1, l_.str.4@PAGEOFF bl _fprintf b LBB45_4 LBB45_4: ldr x8, [sp, #16] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.182@PAGE add x1, x1, l_.str.182@PAGEOFF bl _fprintf 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, LBB45_6 b LBB45_5 LBB45_5: bl ___stack_chk_fail LBB45_6: ldp x29, x30, [sp, #80] ; 16-byte Folded Reload add sp, sp, #96 ret .cfi_endproc ; -- End function .globl _snd_file ; @snd_file .zerofill __DATA,__common,_snd_file,8,3 .globl _read_data_file ; @read_data_file .zerofill __DATA,__common,_read_data_file,8,3 .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "sam filename [read_data file] [srate]\n" .zerofill __DATA,__bss,_filename,8,3 ; @filename l_.str.1: ; @.str.1 .asciz "r" l_.str.2: ; @.str.2 .asciz "can't find %s\n" l_.str.3: ; @.str.3 .asciz "%s is empty\n" l_.str.4: ; @.str.4 .asciz "%d" .section __DATA,__data .p2align 2 ; @srate _srate: .long 1 ; 0x1 .section __TEXT,__cstring,cstring_literals l_.str.5: ; @.str.5 .asciz "32\n" .zerofill __DATA,__bss,_total_commands,4,2 ; @total_commands .zerofill __DATA,__bss,_current_command,4,2 ; @current_command l_.str.6: ; @.str.6 .asciz "36\n" .zerofill __DATA,__bss,_gen_outs,512,3 ; @gen_outs .zerofill __DATA,__bss,_gen_ins,512,3 ; @gen_ins .zerofill __DATA,__bss,_mod_outs,512,3 ; @mod_outs .zerofill __DATA,__bss,_mod_ins,512,3 ; @mod_ins .zerofill __DATA,__bss,_prev_mod_ins,512,3 ; @prev_mod_ins .zerofill __DATA,__bss,_prev_gen_ins,512,3 ; @prev_gen_ins .zerofill __DATA,__bss,_peak_mod_ins,512,3 ; @peak_mod_ins .zerofill __DATA,__bss,_peak_gen_ins,512,3 ; @peak_gen_ins .zerofill __DATA,__bss,_gens,2048,3 ; @gens .zerofill __DATA,__bss,_mods,1024,3 ; @mods .zerofill __DATA,__bss,_dlys,256,3 ; @dlys .zerofill __DATA,__bss,_delay_memory,524288,3 ; @delay_memory .zerofill __DATA,__bss,_dac_out,16,2 ; @dac_out .zerofill __DATA,__bss,_dac_out_peak,16,2 ; @dac_out_peak .zerofill __DATA,__bss,_tick,4,2 ; @tick .zerofill __DATA,__bss,_pass,4,2 ; @pass .section __DATA,__data .p2align 2 ; @start_describing _start_describing: .long 4294967295 ; 0xffffffff .zerofill __DATA,__bss,_samples,4,2 ; @samples .p2align 2 ; @stop_describing _stop_describing: .long 4294967295 ; 0xffffffff .zerofill __DATA,__bss,_describe_commands,1,0 ; @describe_commands .section __TEXT,__cstring,cstring_literals l_.str.7: ; @.str.7 .asciz "impossible command\n" l_.str.8: ; @.str.8 .asciz "set base, clear index" l_.str.9: ; @.str.9 .asciz "set index" l_.str.10: ; @.str.10 .asciz "set size" l_.str.11: ; @.str.11 .asciz "un-used!" .section __DATA,__const .p2align 3 ; @__const.dly_command.UU_name l___const.dly_command.UU_name: .quad l_.str.8 .quad l_.str.9 .quad l_.str.10 .quad l_.str.11 .section __TEXT,__cstring,cstring_literals l_.str.12: ; @.str.12 .asciz "unknown delay command!\n" l_.str.13: ; @.str.13 .asciz "d%d %s" l_.str.14: ; @.str.14 .asciz ": X: %d" l_.str.15: ; @.str.15 .asciz ": Y: %d" l_.str.16: ; @.str.16 .asciz ": Z: %d, P: %s" l_.str.17: ; @.str.17 .asciz "\n" l_.str.18: ; @.str.18 .asciz "inactive" l_.str.19: ; @.str.19 .asciz "line" l_.str.20: ; @.str.20 .asciz "tap" l_.str.21: ; @.str.21 .asciz "table" l_.str.22: ; @.str.22 .asciz "rtable" l_.str.23: ; @.str.23 .asciz "unknown" l_.str.24: ; @.str.24 .asciz "noop" l_.str.25: ; @.str.25 .asciz "load DX" l_.str.26: ; @.str.26 .asciz "TTL-A" l_.str.27: ; @.str.27 .asciz "TTL-B" .section __DATA,__const .p2align 3 ; @__const.misc_command.RR_name l___const.misc_command.RR_name: .quad l_.str.24 .quad l_.str.25 .quad l_.str.26 .quad l_.str.27 .section __TEXT,__cstring,cstring_literals l_.str.28: ; @.str.28 .asciz "sam: %d, %s%s%s%s\n" l_.str.29: ; @.str.29 .space 1 l_.str.30: ; @.str.30 .asciz ", clear waits" l_.str.31: ; @.str.31 .asciz ", clear pauses" l_.str.32: ; @.str.32 .asciz ", stop clock" .zerofill __DATA,__bss,_DX,4,2 ; @DX l_.str.33: ; @.str.33 .asciz "sam: %x: stop clock?\n" l_.str.34: ; @.str.34 .asciz "gen mode set overflow\n" l_.str.35: ; @.str.35 .asciz "set highest processing tick" l_.str.36: ; @.str.36 .asciz "set highest tick" .section __DATA,__const .p2align 3 ; @__const.ticks_command.Q_name l___const.ticks_command.Q_name: .quad l_.str.35 .quad l_.str.36 .zerofill __DATA,__bss,_bit_31_warned,1,0 ; @bit_31_warned .section __TEXT,__cstring,cstring_literals l_.str.37: ; @.str.37 .asciz "ticks bit 31 is on?\n" .zerofill __DATA,__bss,_processing_ticks,4,2 ; @processing_ticks .zerofill __DATA,__bss,_highest_tick_per_pass,4,2 ; @highest_tick_per_pass l_.str.38: ; @.str.38 .asciz "sam %s: %d" l_.str.39: ; @.str.39 .asciz " (%d Hz)" .section __TEXT,__const .p2align 2 ; @__const.ticks_command.header_info l___const.ticks_command.header_info: .long 1179011410 ; 0x46464952 .long 88 ; 0x58 .long 1163280727 ; 0x45564157 .long 1263424842 ; 0x4b4e554a .long 28 ; 0x1c .long 0 ; 0x0 .long 0 ; 0x0 .long 0 ; 0x0 .long 0 ; 0x0 .long 0 ; 0x0 .long 0 ; 0x0 .long 0 ; 0x0 .long 544501094 ; 0x20746d66 .long 16 ; 0x10 .long 262147 ; 0x40003 .long 44100 ; 0xac44 .long 705600 ; 0xac440 .long 2097168 ; 0x200010 .long 1635017060 ; 0x61746164 .long 16 ; 0x10 .long 0 ; 0x0 .long 0 ; 0x0 .long 0 ; 0x0 .long 0 ; 0x0 .zerofill __DATA,__bss,_output_filename,8,3 ; @output_filename .section __TEXT,__cstring,cstring_literals l_.str.40: ; @.str.40 .asciz "wav" l_.str.41: ; @.str.41 .asciz "w" l_.str.42: ; @.str.42 .asciz "can't open test.snd!\n" l_.str.43: ; @.str.43 .asciz "set pass" l_.str.44: ; @.str.44 .asciz "linger" l_.str.45: ; @.str.45 .asciz "clear pass and linger" .section __DATA,__const .p2align 3 ; @__const.timer_command.TT_name l___const.timer_command.TT_name: .quad l_.str.24 .quad l_.str.43 .quad l_.str.44 .quad l_.str.45 .section __TEXT,__cstring,cstring_literals l_.str.46: ; @.str.46 .asciz "sam %s: %d at sample %d %.4f\n" l_.str.47: ; @.str.47 .asciz "no ticks setting found!\n" .section __DATA,__data .p2align 2 ; @dump_patch_at _dump_patch_at: .long 4294967295 ; 0xffffffff .zerofill __DATA,__bss,_read_data_warned,1,0 ; @read_data_warned .section __TEXT,__cstring,cstring_literals l_.str.48: ; @.str.48 .asciz "read data?!?\n" l_.str.49: ; @.str.49 .asciz "reserved modifier mode?\n" l_.str.50: ; @.str.50 .asciz "write %d %d NaN!\n" .zerofill __DATA,__bss,_table_read_warned,1,0 ; @table_read_warned l_.str.51: ; @.str.51 .asciz "table lookup read is unlikely to work.\n" .zerofill __DATA,__bss,_table_write_warned,1,0 ; @table_write_warned l_.str.52: ; @.str.52 .asciz "table lookup write is unlikely to work.\n" l_.str.53: ; @.str.53 .asciz "sample: %d, command: %d, " l_.str.54: ; @.str.54 .asciz "active gens: %d, " l_.str.55: ; @.str.55 .asciz "active mods: %d, " l_.str.56: ; @.str.56 .asciz "active delays: %d\n\n" l_.str.57: ; @.str.57 .asciz "g%d " l_.str.58: ; @.str.58 .asciz " [" l_.str.59: ; @.str.59 .asciz "]->[" l_.str.60: ; @.str.60 .asciz "OUT%d" l_.str.61: ; @.str.61 .asciz " (%d)], (amp: %.3f, freq: %.3f" l_.str.62: ; @.str.62 .asciz ", phase: %.3f" l_.str.63: ; @.str.63 .asciz ")\n" l_.str.64: ; @.str.64 .asciz "m%d %s " l_.str.65: ; @.str.65 .asciz "%.4f * " l_.str.66: ; @.str.66 .asciz "A" l_.str.67: ; @.str.67 .asciz "], " l_.str.68: ; @.str.68 .asciz "B" l_.str.69: ; @.str.69 .asciz "[delay: %d (%.4f)" l_.str.70: ; @.str.70 .asciz ", M0: %.4f, M1: %.4f, L0: %.4f, L1: %.4f" l_.str.71: ; @.str.71 .asciz "-replace" l_.str.72: ; @.str.72 .asciz " (%d)]\n" l_.str.73: ; @.str.73 .asciz "d%d %s %.3f (%d + %d of %d)\n" l_.str.74: ; @.str.74 .asciz "delay memory peak: %.4f\n\n" l_.str.75: ; @.str.75 .asciz "L-Q" l_.str.76: ; @.str.76 .asciz "L+Q" l_.str.77: ; @.str.77 .asciz "L-2^Q" l_.str.78: ; @.str.78 .asciz "L+2^Q" .section __DATA,__const .p2align 3 ; @__const.print_gmode_name.E_name l___const.print_gmode_name.E_name: .quad l_.str.75 .quad l_.str.76 .quad l_.str.77 .quad l_.str.78 .section __TEXT,__cstring,cstring_literals l_.str.79: ; @.str.79 .asciz "ncos" l_.str.80: ; @.str.80 .asciz "saw" l_.str.81: ; @.str.81 .asciz "square" l_.str.82: ; @.str.82 .asciz "pulse" l_.str.83: ; @.str.83 .asciz "sin" l_.str.84: ; @.str.84 .asciz "sin+fm" l_.str.85: ; @.str.85 .asciz "-%s-" l_.str.86: ; @.str.86 .asciz "pause" l_.str.87: ; @.str.87 .asciz "wait" l_.str.88: ; @.str.88 .asciz "C" l_.str.89: ; @.str.89 .asciz "rd" l_.str.90: ; @.str.90 .asciz "wrt" l_.str.91: ; @.str.91 .asciz "DAC" l_.str.92: ; @.str.92 .asciz "g-sum%d: %.3f %.3f %.3f [max: %.3f]" l_.str.93: ; @.str.93 .asciz " g%d" l_.str.94: ; @.str.94 .asciz "[" l_.str.95: ; @.str.95 .asciz "zero" l_.str.96: ; @.str.96 .asciz "-out[" l_.str.97: ; @.str.97 .asciz "[illegal: %d" l_.str.98: ; @.str.98 .asciz "noise" l_.str.99: ; @.str.99 .asciz "triggered-noise" l_.str.100: ; @.str.100 .asciz "latch" l_.str.101: ; @.str.101 .asciz "thresh" l_.str.102: ; @.str.102 .asciz "delay" l_.str.103: ; @.str.103 .asciz "2pole" l_.str.104: ; @.str.104 .asciz "2pole-M0" l_.str.105: ; @.str.105 .asciz "2pole-M1" l_.str.106: ; @.str.106 .asciz "2zero" l_.str.107: ; @.str.107 .asciz "2zero-M0" l_.str.108: ; @.str.108 .asciz "2zero-M1" l_.str.109: ; @.str.109 .asciz "int-mix" l_.str.110: ; @.str.110 .asciz "1pole" l_.str.111: ; @.str.111 .asciz "mix" l_.str.112: ; @.str.112 .asciz "1zero" l_.str.113: ; @.str.113 .asciz "multiply" l_.str.114: ; @.str.114 .asciz "am" l_.str.115: ; @.str.115 .asciz "max" l_.str.116: ; @.str.116 .asciz "min" l_.str.117: ; @.str.117 .asciz "signum" l_.str.118: ; @.str.118 .asciz "0cross" l_.str.119: ; @.str.119 .asciz "m-sum%d: %.3f %.3f %.3f [max: %.3f]" l_.str.120: ; @.str.120 .asciz " m%d" l_.str.121: ; @.str.121 .asciz "right adjusted" l_.str.122: ; @.str.122 .asciz "left adjusted + DX" .section __DATA,__const .p2align 3 ; @__const.gq_command.E_name l___const.gq_command.E_name: .quad l_.str.121 .quad l_.str.122 .section __TEXT,__cstring,cstring_literals l_.str.123: ; @.str.123 .asciz "g%d amp: %s, %d %.4f\n" l_.str.124: ; @.str.124 .asciz "g%d amp: %s, %d = %d %.4f (DX: %d)\n" .section __DATA,__const .p2align 3 ; @__const.gj_command.E_name l___const.gj_command.E_name: .quad l_.str.121 .quad l_.str.122 .section __TEXT,__cstring,cstring_literals l_.str.125: ; @.str.125 .asciz "g%d freq: %s, %d %.4f (%.4f Hz)\n" l_.str.126: ; @.str.126 .asciz "g%d freq: %s (DX: %d), %d = %d %.4f (%.4f Hz)\n" .zerofill __DATA,__bss,_last_GMODE_command,4,2 ; @last_GMODE_command l_.str.127: ; @.str.127 .asciz "sample %d (%.3f), command %d, stray freq: g%d %.4f from %.4f (last mode sample: %d), data: %d\n" l_.str.128: ; @.str.128 .asciz "g%d amp change: %d (%.4f/sec), amp: %.4f\n" l_.str.129: ; @.str.129 .asciz ", clear GS" l_.str.130: ; @.str.130 .asciz ", set GS to 1" l_.str.131: ; @.str.131 .asciz ", GS reserved?" .section __DATA,__const .p2align 3 ; @__const.gn_command.SS_name l___const.gn_command.SS_name: .quad l_.str.129 .quad l_.str.130 .quad l_.str.29 .quad l_.str.131 .section __TEXT,__cstring,cstring_literals l_.str.132: ; @.str.132 .asciz "g%d sum-memory shift:%s\n" l_.str.133: ; @.str.133 .asciz "g%d ncos scale: %d%s\n" l_.str.134: ; @.str.134 .asciz "g%d ncos: %d%s\n" l_.str.135: ; @.str.135 .asciz "g%d ncos: %d%s, scale: %d\n" l_.str.136: ; @.str.136 .asciz "g%d: noop\n" l_.str.137: ; @.str.137 .asciz "g%d outloc: gen-outs[%d]\n" l_.str.138: ; @.str.138 .asciz "g%d amp offset: %d = %.4f\n" l_.str.139: ; @.str.139 .asciz "g%d outloc: gen-outs[%d] + amp offset: %d = %.4f\n" l_.str.140: ; @.str.140 .asciz "sample %d (%.3f), command %d, possible gen output loc overflow: g%d %d\n" l_.str.141: ; @.str.141 .asciz "sample %d (%.3f), command %d, stray output loc: g%d %d from %d (last mode sample: %d)\n" l_.str.142: ; @.str.142 .asciz "g%d phase: %d %.4f\n" l_.str.143: ; @.str.143 .asciz "sample %d (%.3f), command %d, stray phase: g%d %.4f (last mode sample: %d)\n" l_.str.144: ; @.str.144 .asciz "mode: " l_.str.145: ; @.str.145 .asciz ", " l_.str.146: ; @.str.146 .asciz "inloc: %s[%d]" l_.str.147: ; @.str.147 .asciz "gen-ins" l_.str.148: ; @.str.148 .asciz "mod-ins" l_.str.149: ; @.str.149 .asciz "clear phase" l_.str.150: ; @.str.150 .asciz "sample %d (%.3f), command %d, bad mode: g%d %x\n" l_.str.151: ; @.str.151 .asciz "sample %d (%.3f), command %d, g%d cannot actually run (procticks: %d)\n" l_.str.152: ; @.str.152 .asciz "sample %d (%.3f), command %d, stray input loc: g%d %d from %d (last mode sample: %d)\n" l_.str.153: ; @.str.153 .asciz "sample %d (%.3f), command %d, stray mode: g%d " l_.str.154: ; @.str.154 .asciz " from " l_.str.155: ; @.str.155 .asciz " (last mode sample: %d)\n" l_.str.156: ; @.str.156 .asciz "g%d DAC out: %d\n" l_.str.157: ; @.str.157 .asciz "g%d freq change: %d %.4f (%.4f Hz/sec), freq: %.4f\n" l_.str.158: ; @.str.158 .asciz "m%d M0: %d: %d %.6f\n" l_.str.159: ; @.str.159 .asciz "m%d M1: %d: %d %.6f\n" l_.str.160: ; @.str.160 .asciz "m%d M0+DX: data: %d + DX: %d (scl: %d), %d -> %d, %.6f -> %.6f\n" l_.str.161: ; @.str.161 .asciz "m%d M1+DX: data: %d + DX: %d (scl: %d), %d -> %d, %.6f -> %.6f\n" l_.str.162: ; @.str.162 .asciz "m%d L0: %d: %d %.6f\n" l_.str.163: ; @.str.163 .asciz "m%d L1: %d: %d %.6f\n" l_.str.164: ; @.str.164 .asciz "m%d " l_.str.165: ; @.str.165 .asciz "mode: %s" l_.str.166: ; @.str.166 .asciz "AA: %d, BB: %d (M0: %d, %.3f, M1: %d, %.3f)" l_.str.167: ; @.str.167 .asciz "outloc(%s): mod-outs[%d]" l_.str.168: ; @.str.168 .asciz "+" l_.str.169: ; @.str.169 .asciz "=" l_.str.170: ; @.str.170 .asciz "L0=0" l_.str.171: ; @.str.171 .asciz "sample %d (%.3f), command %d, m%d cannot actually run (procticks: %d)\n" l_.str.172: ; @.str.172 .asciz "m%d inlocs:" l_.str.173: ; @.str.173 .asciz ", delay: %d" l_.str.174: ; @.str.174 .asciz ", MRM: " l_.str.175: ; @.str.175 .asciz ", MIN: " l_.str.176: ; @.str.176 .asciz ", trunc off" l_.str.177: ; @.str.177 .asciz ", trunc on" l_.str.178: ; @.str.178 .asciz ", L1=0" l_.str.179: ; @.str.179 .asciz "mod-outs" l_.str.180: ; @.str.180 .asciz "oops" .section __DATA,__const .p2align 3 ; @__const.print_mod_read_name.mem_names l___const.print_mod_read_name.mem_names: .quad l_.str.147 .quad l_.str.148 .quad l_.str.179 .quad l_.str.180 .section __TEXT,__cstring,cstring_literals l_.str.181: ; @.str.181 .asciz "%s[" l_.str.182: ; @.str.182 .asciz "]" l_.str.183: ; @.str.183 .asciz "r+" l_.str.184: ; @.str.184 .asciz "%s: %dHz, %d samples, %.4f secs" l_.str.185: ; @.str.185 .asciz ", maxamps: %.3f %.3f %.3f %.3f\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $96, %rsp movl $0, -4(%rbp) movl %edi, -8(%rbp) movq %rsi, -16(%rbp) cmpl $2, -8(%rbp) jge LBB0_2 ## %bb.1: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str(%rip), %rsi movb $0, %al callq _fprintf jmp LBB0_25 LBB0_2: movq -16(%rbp), %rax movq 8(%rax), %rax movq %rax, _filename(%rip) movq _filename(%rip), %rdi leaq L_.str.1(%rip), %rsi callq _fopen movq %rax, -24(%rbp) cmpq $0, -24(%rbp) jne LBB0_4 ## %bb.3: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movq _filename(%rip), %rdx leaq L_.str.2(%rip), %rsi movb $0, %al callq _fprintf jmp LBB0_24 LBB0_4: movq -24(%rbp), %rdi xorl %eax, %eax movl %eax, %esi movl $2, %edx callq _fseek movq -24(%rbp), %rdi callq _ftell movq %rax, -32(%rbp) movq -24(%rbp), %rdi callq _rewind cmpq $0, -32(%rbp) jg LBB0_6 ## %bb.5: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movq _filename(%rip), %rdx leaq L_.str.3(%rip), %rsi movb $0, %al callq _fprintf movq -24(%rbp), %rdi callq _fclose jmp LBB0_23 LBB0_6: cmpl $2, -8(%rbp) jle LBB0_10 ## %bb.7: movq -16(%rbp), %rax movq 16(%rax), %rdi leaq L_.str.1(%rip), %rsi callq _fopen movq %rax, _read_data_file(%rip) cmpl $3, -8(%rbp) jle LBB0_9 ## %bb.8: movq -16(%rbp), %rax movq 24(%rax), %rdi leaq L_.str.4(%rip), %rsi leaq _srate(%rip), %rdx movb $0, %al callq _sscanf LBB0_9: jmp LBB0_10 LBB0_10: callq _start_clean movq -32(%rbp), %rdi addq $1, %rdi movl $1, %esi callq _calloc movq %rax, -48(%rbp) movq -48(%rbp), %rdi movq -32(%rbp), %rdx movq -24(%rbp), %rcx movl $1, %esi callq _fread movq %rax, -40(%rbp) movq -24(%rbp), %rdi callq _fclose movq -48(%rbp), %rax movzbl (%rax), %eax cmpl $0, %eax jne LBB0_12 ## %bb.11: movq -48(%rbp), %rax movzbl 1(%rax), %eax cmpl $0, %eax je LBB0_17 LBB0_12: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.5(%rip), %rsi movb $0, %al callq _fprintf movq -40(%rbp), %rax shrq $2, %rax ## kill: def $eax killed $eax killed $rax movl %eax, _total_commands(%rip) movl $0, _current_command(%rip) movl $0, -52(%rbp) LBB0_13: ## =>This Inner Loop Header: Depth=1 movslq -52(%rbp), %rax cmpq -40(%rbp), %rax jae LBB0_16 ## %bb.14: ## in Loop: Header=BB0_13 Depth=1 movq -48(%rbp), %rax movl -52(%rbp), %ecx addl $0, %ecx movslq %ecx, %rcx movzbl (%rax,%rcx), %eax movl %eax, -60(%rbp) movq -48(%rbp), %rax movl -52(%rbp), %ecx addl $1, %ecx movslq %ecx, %rcx movzbl (%rax,%rcx), %eax movl %eax, -64(%rbp) movq -48(%rbp), %rax movl -52(%rbp), %ecx addl $2, %ecx movslq %ecx, %rcx movzbl (%rax,%rcx), %eax movl %eax, -68(%rbp) movq -48(%rbp), %rax movl -52(%rbp), %ecx addl $3, %ecx movslq %ecx, %rcx movzbl (%rax,%rcx), %eax movl %eax, -72(%rbp) movl -72(%rbp), %eax movl -68(%rbp), %ecx shll $8, %ecx addl %ecx, %eax movl -64(%rbp), %ecx shll $16, %ecx addl %ecx, %eax movl -60(%rbp), %ecx shll $24, %ecx addl %ecx, %eax movl %eax, -56(%rbp) movl -56(%rbp), %edi callq _handle_command ## %bb.15: ## in Loop: Header=BB0_13 Depth=1 movl -52(%rbp), %eax addl $4, %eax movl %eax, -52(%rbp) jmp LBB0_13 LBB0_16: jmp LBB0_22 LBB0_17: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.6(%rip), %rsi movb $0, %al callq _fprintf movq -40(%rbp), %rax movl $5, %ecx xorl %edx, %edx ## kill: def $rdx killed $edx divq %rcx ## kill: def $eax killed $eax killed $rax movl %eax, _total_commands(%rip) movl $0, _current_command(%rip) movl $0, -52(%rbp) LBB0_18: ## =>This Inner Loop Header: Depth=1 movslq -52(%rbp), %rax cmpq -40(%rbp), %rax jae LBB0_21 ## %bb.19: ## in Loop: Header=BB0_18 Depth=1 movq -48(%rbp), %rax movl -52(%rbp), %ecx addl $0, %ecx movslq %ecx, %rcx movzbl (%rax,%rcx), %eax movl %eax, -80(%rbp) movq -48(%rbp), %rax movl -52(%rbp), %ecx addl $1, %ecx movslq %ecx, %rcx movzbl (%rax,%rcx), %eax movl %eax, -84(%rbp) movq -48(%rbp), %rax movl -52(%rbp), %ecx addl $2, %ecx movslq %ecx, %rcx movzbl (%rax,%rcx), %eax movl %eax, -88(%rbp) movq -48(%rbp), %rax movl -52(%rbp), %ecx addl $3, %ecx movslq %ecx, %rcx movzbl (%rax,%rcx), %eax movl %eax, -92(%rbp) movq -48(%rbp), %rax movl -52(%rbp), %ecx addl $4, %ecx movslq %ecx, %rcx movzbl (%rax,%rcx), %eax movl %eax, -96(%rbp) movl -96(%rbp), %eax sarl $4, %eax andl $255, %eax movl -92(%rbp), %ecx shll $4, %ecx addl %ecx, %eax movl -88(%rbp), %ecx shll $12, %ecx addl %ecx, %eax movl -84(%rbp), %ecx shll $20, %ecx addl %ecx, %eax movl -80(%rbp), %ecx andl $255, %ecx shll $28, %ecx addl %ecx, %eax movl %eax, -76(%rbp) movl -76(%rbp), %edi callq _handle_command ## %bb.20: ## in Loop: Header=BB0_18 Depth=1 movl -52(%rbp), %eax addl $5, %eax movl %eax, -52(%rbp) jmp LBB0_18 LBB0_21: jmp LBB0_22 LBB0_22: jmp LBB0_23 LBB0_23: callq _all_done LBB0_24: jmp LBB0_25 LBB0_25: xorl %eax, %eax addq $96, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function start_clean _start_clean: ## @start_clean .cfi_startproc ## %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) LBB1_1: ## =>This Inner Loop Header: Depth=1 cmpl $64, -4(%rbp) jge LBB1_4 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 movslq -4(%rbp), %rcx leaq _gen_outs(%rip), %rax xorps %xmm0, %xmm0 movsd %xmm0, (%rax,%rcx,8) movslq -4(%rbp), %rcx leaq _gen_ins(%rip), %rax xorps %xmm0, %xmm0 movsd %xmm0, (%rax,%rcx,8) movslq -4(%rbp), %rcx leaq _mod_outs(%rip), %rax xorps %xmm0, %xmm0 movsd %xmm0, (%rax,%rcx,8) movslq -4(%rbp), %rcx leaq _mod_ins(%rip), %rax xorps %xmm0, %xmm0 movsd %xmm0, (%rax,%rcx,8) movslq -4(%rbp), %rcx leaq _prev_mod_ins(%rip), %rax xorps %xmm0, %xmm0 movsd %xmm0, (%rax,%rcx,8) movslq -4(%rbp), %rcx leaq _prev_gen_ins(%rip), %rax xorps %xmm0, %xmm0 movsd %xmm0, (%rax,%rcx,8) movslq -4(%rbp), %rcx leaq _peak_mod_ins(%rip), %rax xorps %xmm0, %xmm0 movsd %xmm0, (%rax,%rcx,8) movslq -4(%rbp), %rcx leaq _peak_gen_ins(%rip), %rax xorps %xmm0, %xmm0 movsd %xmm0, (%rax,%rcx,8) ## %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: movl $0, -4(%rbp) LBB1_5: ## =>This Inner Loop Header: Depth=1 cmpl $256, -4(%rbp) ## imm = 0x100 jge LBB1_8 ## %bb.6: ## in Loop: Header=BB1_5 Depth=1 movl $1, %edi movl $104, %esi callq _calloc movq %rax, %rdx movslq -4(%rbp), %rcx leaq _gens(%rip), %rax movq %rdx, (%rax,%rcx,8) ## %bb.7: ## in Loop: Header=BB1_5 Depth=1 movl -4(%rbp), %eax addl $1, %eax movl %eax, -4(%rbp) jmp LBB1_5 LBB1_8: movl $0, -4(%rbp) LBB1_9: ## =>This Inner Loop Header: Depth=1 cmpl $128, -4(%rbp) jge LBB1_12 ## %bb.10: ## in Loop: Header=BB1_9 Depth=1 movl $1, %edi movl $104, %esi callq _calloc movq %rax, %rdx movslq -4(%rbp), %rcx leaq _mods(%rip), %rax movq %rdx, (%rax,%rcx,8) movslq -4(%rbp), %rcx leaq _mods(%rip), %rax movq (%rax,%rcx,8), %rax movl $1, 40(%rax) movslq -4(%rbp), %rcx leaq _mods(%rip), %rax movq (%rax,%rcx,8), %rax movl $1, 44(%rax) ## %bb.11: ## in Loop: Header=BB1_9 Depth=1 movl -4(%rbp), %eax addl $1, %eax movl %eax, -4(%rbp) jmp LBB1_9 LBB1_12: movl $0, -4(%rbp) LBB1_13: ## =>This Inner Loop Header: Depth=1 cmpl $32, -4(%rbp) jge LBB1_16 ## %bb.14: ## in Loop: Header=BB1_13 Depth=1 movl $1, %edi movl $40, %esi callq _calloc movq %rax, %rdx movslq -4(%rbp), %rcx leaq _dlys(%rip), %rax movq %rdx, (%rax,%rcx,8) ## %bb.15: ## in Loop: Header=BB1_13 Depth=1 movl -4(%rbp), %eax addl $1, %eax movl %eax, -4(%rbp) jmp LBB1_13 LBB1_16: movl $0, -4(%rbp) LBB1_17: ## =>This Inner Loop Header: Depth=1 cmpl $65536, -4(%rbp) ## imm = 0x10000 jge LBB1_20 ## %bb.18: ## in Loop: Header=BB1_17 Depth=1 movslq -4(%rbp), %rcx leaq _delay_memory(%rip), %rax xorps %xmm0, %xmm0 movsd %xmm0, (%rax,%rcx,8) ## %bb.19: ## in Loop: Header=BB1_17 Depth=1 movl -4(%rbp), %eax addl $1, %eax movl %eax, -4(%rbp) jmp LBB1_17 LBB1_20: movl $0, -4(%rbp) LBB1_21: ## =>This Inner Loop Header: Depth=1 cmpl $4, -4(%rbp) jge LBB1_24 ## %bb.22: ## in Loop: Header=BB1_21 Depth=1 movslq -4(%rbp), %rcx leaq _dac_out(%rip), %rax xorps %xmm0, %xmm0 movss %xmm0, (%rax,%rcx,4) movslq -4(%rbp), %rcx leaq _dac_out_peak(%rip), %rax xorps %xmm0, %xmm0 movss %xmm0, (%rax,%rcx,4) ## %bb.23: ## in Loop: Header=BB1_21 Depth=1 movl -4(%rbp), %eax addl $1, %eax movl %eax, -4(%rbp) jmp LBB1_21 LBB1_24: movl $0, _tick(%rip) movl $0, _pass(%rip) addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function handle_command _handle_command: ## @handle_command .cfi_startproc ## %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 _start_describing(%rip), %eax cmpl _samples(%rip), %eax jg LBB2_3 ## %bb.1: movl _stop_describing(%rip), %eax cmpl _samples(%rip), %eax jl LBB2_3 ## %bb.2: movb $1, _describe_commands(%rip) jmp LBB2_4 LBB2_3: movb $0, _describe_commands(%rip) LBB2_4: movl -4(%rbp), %eax shrl $8, %eax andl $15, %eax movl %eax, -8(%rbp) movl -8(%rbp), %eax ## kill: def $rax killed $eax movq %rax, -16(%rbp) ## 8-byte Spill subq $15, %rax ja LBB2_27 ## %bb.29: movq -16(%rbp), %rax ## 8-byte Reload leaq LJTI2_0(%rip), %rcx movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax LBB2_5: movl -4(%rbp), %eax sarl $7, %eax andl $1, %eax cmpl $1, %eax jne LBB2_7 ## %bb.6: movl -4(%rbp), %edi callq _dly_command jmp LBB2_8 LBB2_7: movl -4(%rbp), %edi callq _misc_command LBB2_8: jmp LBB2_28 LBB2_9: movl -4(%rbp), %eax sarl $7, %eax andl $1, %eax cmpl $1, %eax jne LBB2_11 ## %bb.10: movl -4(%rbp), %edi callq _ticks_command jmp LBB2_12 LBB2_11: movl -4(%rbp), %edi callq _timer_command LBB2_12: jmp LBB2_28 LBB2_13: movl -4(%rbp), %edi callq _gq_command jmp LBB2_28 LBB2_14: movl -4(%rbp), %edi callq _gj_command jmp LBB2_28 LBB2_15: movl -4(%rbp), %edi callq _gp_command jmp LBB2_28 LBB2_16: movl -4(%rbp), %edi callq _gn_command jmp LBB2_28 LBB2_17: movl -4(%rbp), %edi callq _gl_command jmp LBB2_28 LBB2_18: movl -4(%rbp), %edi callq _gk_command jmp LBB2_28 LBB2_19: movl -4(%rbp), %edi callq _gmode_command jmp LBB2_28 LBB2_20: movl -4(%rbp), %edi callq _go_command jmp LBB2_28 LBB2_21: movl -4(%rbp), %edi callq _mm_command jmp LBB2_28 LBB2_22: movl -4(%rbp), %edi callq _ml_command jmp LBB2_28 LBB2_23: movl -4(%rbp), %eax sarl $7, %eax andl $1, %eax cmpl $0, %eax jne LBB2_25 ## %bb.24: movl -4(%rbp), %edi callq _mmode_command jmp LBB2_26 LBB2_25: movl -4(%rbp), %edi callq _mrm_command LBB2_26: jmp LBB2_28 LBB2_27: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.7(%rip), %rsi movb $0, %al callq _fprintf LBB2_28: movl _current_command(%rip), %eax addl $1, %eax movl %eax, _current_command(%rip) addq $16, %rsp popq %rbp retq .cfi_endproc .p2align 2, 0x90 .data_region jt32 .set L2_0_set_5, LBB2_5-LJTI2_0 .set L2_0_set_9, LBB2_9-LJTI2_0 .set L2_0_set_13, LBB2_13-LJTI2_0 .set L2_0_set_14, LBB2_14-LJTI2_0 .set L2_0_set_15, LBB2_15-LJTI2_0 .set L2_0_set_16, LBB2_16-LJTI2_0 .set L2_0_set_17, LBB2_17-LJTI2_0 .set L2_0_set_18, LBB2_18-LJTI2_0 .set L2_0_set_19, LBB2_19-LJTI2_0 .set L2_0_set_20, LBB2_20-LJTI2_0 .set L2_0_set_21, LBB2_21-LJTI2_0 .set L2_0_set_22, LBB2_22-LJTI2_0 .set L2_0_set_23, LBB2_23-LJTI2_0 LJTI2_0: .long L2_0_set_5 .long L2_0_set_9 .long L2_0_set_13 .long L2_0_set_13 .long L2_0_set_14 .long L2_0_set_14 .long L2_0_set_15 .long L2_0_set_16 .long L2_0_set_17 .long L2_0_set_18 .long L2_0_set_19 .long L2_0_set_20 .long L2_0_set_21 .long L2_0_set_21 .long L2_0_set_22 .long L2_0_set_23 .end_data_region ## -- End function .p2align 4, 0x90 ## -- Begin function all_done _all_done: ## @all_done .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp cmpq $0, _snd_file(%rip) je LBB3_2 ## %bb.1: movq _snd_file(%rip), %rdi callq _fclose movq _output_filename(%rip), %rdi leaq L_.str.183(%rip), %rsi callq _fopen movq %rax, _snd_file(%rip) movq _snd_file(%rip), %rdi movl $4, %esi xorl %edx, %edx callq _fseek movl _samples(%rip), %eax shll $2, %eax shll $2, %eax addl $88, %eax movl %eax, -4(%rbp) leaq -4(%rbp), %rdi movq _snd_file(%rip), %rcx movl $4, %esi movl $1, %edx callq _fwrite movq _snd_file(%rip), %rdi movl $76, %esi xorl %edx, %edx callq _fseek movl _samples(%rip), %eax shll $2, %eax shll $2, %eax movl %eax, -4(%rbp) leaq -4(%rbp), %rdi movq _snd_file(%rip), %rcx movl $4, %esi movl $1, %edx callq _fwrite movq _snd_file(%rip), %rdi callq _fclose movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movq _output_filename(%rip), %rdx movl _srate(%rip), %ecx movl _samples(%rip), %r8d cvtsi2sdl _samples(%rip), %xmm0 cvtsi2sdl _srate(%rip), %xmm1 divsd %xmm1, %xmm0 leaq L_.str.184(%rip), %rsi movb $1, %al callq _fprintf movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movss _dac_out_peak(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movss _dac_out_peak+4(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero cvtss2sd %xmm1, %xmm1 movss _dac_out_peak+8(%rip), %xmm2 ## xmm2 = mem[0],zero,zero,zero cvtss2sd %xmm2, %xmm2 movss _dac_out_peak+12(%rip), %xmm3 ## xmm3 = mem[0],zero,zero,zero cvtss2sd %xmm3, %xmm3 leaq L_.str.185(%rip), %rsi movb $4, %al callq _fprintf LBB3_2: xorl %edi, %edi callq _exit .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function dly_command _dly_command: ## @dly_command .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $96, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl %edi, -52(%rbp) movq l___const.dly_command.UU_name(%rip), %rax movq %rax, -48(%rbp) movq l___const.dly_command.UU_name+8(%rip), %rax movq %rax, -40(%rbp) movq l___const.dly_command.UU_name+16(%rip), %rax movq %rax, -32(%rbp) movq l___const.dly_command.UU_name+24(%rip), %rax movq %rax, -24(%rbp) movl -52(%rbp), %eax andl $31, %eax movl %eax, -56(%rbp) movl -52(%rbp), %eax sarl $5, %eax andl $3, %eax movl %eax, -60(%rbp) cmpl $3, -60(%rbp) jne LBB4_2 ## %bb.1: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.12(%rip), %rsi movb $0, %al callq _fprintf jmp LBB4_14 LBB4_2: movl -52(%rbp), %eax shrl $12, %eax andl $15, %eax movl %eax, -64(%rbp) movzwl -50(%rbp), %eax movl %eax, -68(%rbp) movslq -56(%rbp), %rcx leaq _dlys(%rip), %rax movq (%rax,%rcx,8), %rax movq %rax, -80(%rbp) movl -60(%rbp), %eax movl %eax, -84(%rbp) ## 4-byte Spill testl %eax, %eax je LBB4_3 jmp LBB4_17 LBB4_17: movl -84(%rbp), %eax ## 4-byte Reload subl $1, %eax je LBB4_4 jmp LBB4_18 LBB4_18: movl -84(%rbp), %eax ## 4-byte Reload subl $2, %eax je LBB4_5 jmp LBB4_6 LBB4_3: movl -68(%rbp), %ecx movq -80(%rbp), %rax movl %ecx, 12(%rax) movq -80(%rbp), %rax movl $0, 8(%rax) jmp LBB4_6 LBB4_4: movl -68(%rbp), %ecx movq -80(%rbp), %rax movl %ecx, 8(%rax) jmp LBB4_6 LBB4_5: movl -68(%rbp), %ecx movq -80(%rbp), %rax movl %ecx, 4(%rax) movl -64(%rbp), %ecx movq -80(%rbp), %rax movl %ecx, (%rax) LBB4_6: testb $1, _describe_commands(%rip) je LBB4_14 ## %bb.7: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movl -56(%rbp), %edx movslq -60(%rbp), %rax movq -48(%rbp,%rax,8), %rcx leaq L_.str.13(%rip), %rsi movb $0, %al callq _fprintf cmpl $0, -60(%rbp) jne LBB4_9 ## %bb.8: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movq -80(%rbp), %rax movl 12(%rax), %edx leaq L_.str.14(%rip), %rsi movb $0, %al callq _fprintf jmp LBB4_13 LBB4_9: cmpl $1, -60(%rbp) jne LBB4_11 ## %bb.10: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movq -80(%rbp), %rax movl 8(%rax), %edx leaq L_.str.15(%rip), %rsi movb $0, %al callq _fprintf jmp LBB4_12 LBB4_11: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -96(%rbp) ## 8-byte Spill movq -80(%rbp), %rax movl 4(%rax), %eax movl %eax, -88(%rbp) ## 4-byte Spill movq -80(%rbp), %rax movl (%rax), %edi callq _P_name movq -96(%rbp), %rdi ## 8-byte Reload movl -88(%rbp), %edx ## 4-byte Reload movq %rax, %rcx leaq L_.str.16(%rip), %rsi movb $0, %al callq _fprintf LBB4_12: jmp LBB4_13 LBB4_13: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.17(%rip), %rsi movb $0, %al callq _fprintf LBB4_14: movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB4_16 ## %bb.15: addq $96, %rsp popq %rbp retq LBB4_16: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function misc_command _misc_command: ## @misc_command .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $96, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl %edi, -52(%rbp) movq l___const.misc_command.RR_name(%rip), %rax movq %rax, -48(%rbp) movq l___const.misc_command.RR_name+8(%rip), %rax movq %rax, -40(%rbp) movq l___const.misc_command.RR_name+16(%rip), %rax movq %rax, -32(%rbp) movq l___const.misc_command.RR_name+24(%rip), %rax movq %rax, -24(%rbp) movl -52(%rbp), %eax sarl $12, %eax andl $1048575, %eax ## imm = 0xFFFFF movl %eax, -56(%rbp) movl -52(%rbp), %eax sarl $5, %eax andl $3, %eax movl %eax, -60(%rbp) movl -52(%rbp), %eax sarl $2, %eax andl $1, %eax movl %eax, -64(%rbp) movl -52(%rbp), %eax sarl $1, %eax andl $1, %eax movl %eax, -68(%rbp) movl -52(%rbp), %eax sarl $0, %eax andl $1, %eax movl %eax, -72(%rbp) testb $1, _describe_commands(%rip) je LBB5_2 ## %bb.1: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movl -56(%rbp), %edx movslq -60(%rbp), %rax movq -48(%rbp,%rax,8), %rcx movl -64(%rbp), %esi leaq L_.str.30(%rip), %r8 leaq L_.str.29(%rip), %rax cmpl $1, %esi cmoveq %rax, %r8 movl -68(%rbp), %esi leaq L_.str.31(%rip), %r9 leaq L_.str.29(%rip), %rax cmpl $1, %esi cmoveq %rax, %r9 movl -72(%rbp), %r10d leaq L_.str.32(%rip), %rax leaq L_.str.29(%rip), %rsi cmpl $1, %r10d cmoveq %rsi, %rax leaq L_.str.28(%rip), %rsi movq %rax, (%rsp) movb $0, %al callq _fprintf LBB5_2: cmpl $1, -60(%rbp) jne LBB5_4 ## %bb.3: movl -56(%rbp), %eax movl %eax, _DX(%rip) LBB5_4: cmpl $1, -64(%rbp) jne LBB5_13 ## %bb.5: movl $0, -76(%rbp) LBB5_6: ## =>This Inner Loop Header: Depth=1 cmpl $256, -76(%rbp) ## imm = 0x100 jge LBB5_12 ## %bb.7: ## in Loop: Header=BB5_6 Depth=1 movslq -76(%rbp), %rcx leaq _gens(%rip), %rax cmpq $0, (%rax,%rcx,8) je LBB5_10 ## %bb.8: ## in Loop: Header=BB5_6 Depth=1 movslq -76(%rbp), %rcx leaq _gens(%rip), %rax movq (%rax,%rcx,8), %rax movl 44(%rax), %eax sarl $6, %eax andl $15, %eax cmpl $9, %eax jne LBB5_10 ## %bb.9: ## in Loop: Header=BB5_6 Depth=1 movl -76(%rbp), %edi movl $15, %esi callq _set_osc_run LBB5_10: ## in Loop: Header=BB5_6 Depth=1 jmp LBB5_11 LBB5_11: ## in Loop: Header=BB5_6 Depth=1 movl -76(%rbp), %eax addl $1, %eax movl %eax, -76(%rbp) jmp LBB5_6 LBB5_12: jmp LBB5_13 LBB5_13: cmpl $1, -68(%rbp) jne LBB5_22 ## %bb.14: movl $0, -80(%rbp) LBB5_15: ## =>This Inner Loop Header: Depth=1 cmpl $256, -80(%rbp) ## imm = 0x100 jge LBB5_21 ## %bb.16: ## in Loop: Header=BB5_15 Depth=1 movslq -80(%rbp), %rcx leaq _gens(%rip), %rax cmpq $0, (%rax,%rcx,8) je LBB5_19 ## %bb.17: ## in Loop: Header=BB5_15 Depth=1 movslq -80(%rbp), %rcx leaq _gens(%rip), %rax movq (%rax,%rcx,8), %rax movl 44(%rax), %eax sarl $6, %eax andl $15, %eax cmpl $1, %eax jne LBB5_19 ## %bb.18: ## in Loop: Header=BB5_15 Depth=1 movl -80(%rbp), %edi movl $15, %esi callq _set_osc_run LBB5_19: ## in Loop: Header=BB5_15 Depth=1 jmp LBB5_20 LBB5_20: ## in Loop: Header=BB5_15 Depth=1 movl -80(%rbp), %eax addl $1, %eax movl %eax, -80(%rbp) jmp LBB5_15 LBB5_21: jmp LBB5_22 LBB5_22: cmpl $1, -72(%rbp) jne LBB5_25 ## %bb.23: movl _total_commands(%rip), %eax subl _current_command(%rip), %eax cmpl $1000, %eax ## imm = 0x3E8 jle LBB5_25 ## %bb.24: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movl -52(%rbp), %edx leaq L_.str.33(%rip), %rsi movb $0, %al callq _fprintf LBB5_25: movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB5_27 ## %bb.26: addq $96, %rsp popq %rbp retq LBB5_27: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ## -- Begin function ticks_command LCPI6_0: .quad 0x4068600000000000 ## double 195 LCPI6_1: .quad 0x41cdcd6500000000 ## double 1.0E+9 .section __TEXT,__text,regular,pure_instructions .p2align 4, 0x90 _ticks_command: ## @ticks_command .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 %edi, -132(%rbp) movq l___const.ticks_command.Q_name(%rip), %rax movq %rax, -32(%rbp) movq l___const.ticks_command.Q_name+8(%rip), %rax movq %rax, -24(%rbp) movl -132(%rbp), %eax sarl $4, %eax andl $1, %eax movl %eax, -144(%rbp) movl -132(%rbp), %eax sarl $3, %eax andl $1, %eax movl %eax, -136(%rbp) movl -132(%rbp), %eax sarl $12, %eax andl $1023, %eax ## imm = 0x3FF movl %eax, -140(%rbp) cmpl $0, -144(%rbp) je LBB6_4 ## %bb.1: testb $1, _bit_31_warned(%rip) jne LBB6_3 ## %bb.2: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.37(%rip), %rsi movb $0, %al callq _fprintf movb $1, _bit_31_warned(%rip) LBB6_3: jmp LBB6_35 LBB6_4: cmpl $0, -140(%rbp) je LBB6_14 ## %bb.5: cmpl $0, -136(%rbp) jne LBB6_7 ## %bb.6: movl -140(%rbp), %eax addl $1, %eax movl %eax, _processing_ticks(%rip) jmp LBB6_13 LBB6_7: cmpl $1, _srate(%rip) jg LBB6_11 ## %bb.8: movl -140(%rbp), %eax addl $2, %eax movl %eax, _highest_tick_per_pass(%rip) cmpl $256, _highest_tick_per_pass(%rip) ## imm = 0x100 jle LBB6_10 ## %bb.9: movl $256, _highest_tick_per_pass(%rip) ## imm = 0x100 LBB6_10: imull $195, _highest_tick_per_pass(%rip), %eax cvtsi2sd %eax, %xmm1 movsd LCPI6_1(%rip), %xmm0 ## xmm0 = mem[0],zero divsd %xmm1, %xmm0 cvttsd2si %xmm0, %eax movl %eax, _srate(%rip) jmp LBB6_12 LBB6_11: cvtsi2sdl _srate(%rip), %xmm1 movsd LCPI6_1(%rip), %xmm0 ## xmm0 = mem[0],zero divsd %xmm1, %xmm0 movsd LCPI6_0(%rip), %xmm1 ## xmm1 = mem[0],zero divsd %xmm1, %xmm0 cvttsd2si %xmm0, %eax movl %eax, _highest_tick_per_pass(%rip) LBB6_12: jmp LBB6_13 LBB6_13: jmp LBB6_14 LBB6_14: testb $1, _describe_commands(%rip) je LBB6_18 ## %bb.15: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movslq -136(%rbp), %rax movq -32(%rbp,%rax,8), %rdx movl -140(%rbp), %ecx leaq L_.str.38(%rip), %rsi movb $0, %al callq _fprintf cmpl $1, -136(%rbp) jne LBB6_17 ## %bb.16: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movl _srate(%rip), %edx leaq L_.str.39(%rip), %rsi movb $0, %al callq _fprintf LBB6_17: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.17(%rip), %rsi movb $0, %al callq _fprintf LBB6_18: cmpl $0, -140(%rbp) je LBB6_35 ## %bb.19: cmpl $0, _srate(%rip) je LBB6_35 ## %bb.20: cmpq $0, _snd_file(%rip) je LBB6_24 ## %bb.21: cmpl $0, _samples(%rip) jne LBB6_24 ## %bb.22: cmpl $1, -136(%rbp) jne LBB6_24 ## %bb.23: movq _snd_file(%rip), %rdi callq _fclose movq $0, _snd_file(%rip) LBB6_24: cmpq $0, _snd_file(%rip) jne LBB6_34 ## %bb.25: leaq -128(%rbp), %rdi leaq l___const.ticks_command.header_info(%rip), %rsi movl $96, %edx callq _memcpy movl _srate(%rip), %eax movl %eax, -68(%rbp) movq _filename(%rip), %rdi callq _strlen ## kill: def $eax killed $eax killed $rax movl %eax, -160(%rbp) movl -160(%rbp), %eax addl $1, %eax movslq %eax, %rdi callq _malloc movq %rax, _output_filename(%rip) movq _output_filename(%rip), %rdi movq _filename(%rip), %rsi movq $-1, %rdx callq ___strcpy_chk movl -160(%rbp), %eax subl $1, %eax movl %eax, -156(%rbp) LBB6_26: ## =>This Inner Loop Header: Depth=1 cmpl $0, -156(%rbp) jle LBB6_31 ## %bb.27: ## in Loop: Header=BB6_26 Depth=1 movq _filename(%rip), %rax movslq -156(%rbp), %rcx movsbl (%rax,%rcx), %eax cmpl $46, %eax jne LBB6_29 ## %bb.28: movq _output_filename(%rip), %rax movslq -156(%rbp), %rcx addq %rcx, %rax movq %rax, -152(%rbp) jmp LBB6_31 LBB6_29: ## in Loop: Header=BB6_26 Depth=1 jmp LBB6_30 LBB6_30: ## in Loop: Header=BB6_26 Depth=1 movl -156(%rbp), %eax addl $-1, %eax movl %eax, -156(%rbp) jmp LBB6_26 LBB6_31: movq -152(%rbp), %rdi addq $1, %rdi leaq L_.str.40(%rip), %rsi movq $-1, %rdx callq ___strcpy_chk movq _output_filename(%rip), %rdi leaq L_.str.41(%rip), %rsi callq _fopen movq %rax, _snd_file(%rip) cmpq $0, _snd_file(%rip) jne LBB6_33 ## %bb.32: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.42(%rip), %rsi xorl %eax, %eax movl %eax, -164(%rbp) ## 4-byte Spill callq _fprintf movl -164(%rbp), %edi ## 4-byte Reload callq _exit LBB6_33: leaq -128(%rbp), %rdi movq _snd_file(%rip), %rcx movl $4, %esi movl $24, %edx callq _fwrite LBB6_34: jmp LBB6_35 LBB6_35: movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB6_37 ## %bb.36: addq $176, %rsp popq %rbp retq LBB6_37: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function timer_command _timer_command: ## @timer_command .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 %edi, -52(%rbp) movq l___const.timer_command.TT_name(%rip), %rax movq %rax, -48(%rbp) movq l___const.timer_command.TT_name+8(%rip), %rax movq %rax, -40(%rbp) movq l___const.timer_command.TT_name+16(%rip), %rax movq %rax, -32(%rbp) movq l___const.timer_command.TT_name+24(%rip), %rax movq %rax, -24(%rbp) movl -52(%rbp), %eax sarl $3, %eax andl $3, %eax movl %eax, -60(%rbp) movl -52(%rbp), %eax sarl $12, %eax andl $1048575, %eax ## imm = 0xFFFFF movl %eax, -56(%rbp) testb $1, _describe_commands(%rip) je LBB7_2 ## %bb.1: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movslq -60(%rbp), %rax movq -48(%rbp,%rax,8), %rdx movl -56(%rbp), %ecx movl _samples(%rip), %r8d cvtsi2sdl _samples(%rip), %xmm0 cvtsi2sdl _srate(%rip), %xmm1 divsd %xmm1, %xmm0 leaq L_.str.46(%rip), %rsi movb $1, %al callq _fprintf LBB7_2: movl -60(%rbp), %eax ## kill: def $rax killed $eax movq %rax, -72(%rbp) ## 8-byte Spill subq $3, %rax ja LBB7_7 ## %bb.10: movq -72(%rbp), %rax ## 8-byte Reload leaq LJTI7_0(%rip), %rcx movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax LBB7_3: jmp LBB7_7 LBB7_4: movl -56(%rbp), %eax movl %eax, _pass(%rip) jmp LBB7_7 LBB7_5: movl -56(%rbp), %edi callq _linger jmp LBB7_7 LBB7_6: movl $0, _pass(%rip) movl -56(%rbp), %edi callq _linger LBB7_7: movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB7_9 ## %bb.8: addq $80, %rsp popq %rbp retq LBB7_9: callq ___stack_chk_fail ud2 .cfi_endproc .p2align 2, 0x90 .data_region jt32 .set L7_0_set_3, LBB7_3-LJTI7_0 .set L7_0_set_4, LBB7_4-LJTI7_0 .set L7_0_set_5, LBB7_5-LJTI7_0 .set L7_0_set_6, LBB7_6-LJTI7_0 LJTI7_0: .long L7_0_set_3 .long L7_0_set_4 .long L7_0_set_5 .long L7_0_set_6 .end_data_region ## -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ## -- Begin function gq_command LCPI8_0: .quad 0x4170000000000000 ## double 16777216 .section __TEXT,__text,regular,pure_instructions .p2align 4, 0x90 _gq_command: ## @gq_command .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 %edi, -36(%rbp) movl $0, -52(%rbp) movq l___const.gq_command.E_name(%rip), %rax movq %rax, -32(%rbp) movq l___const.gq_command.E_name+8(%rip), %rax movq %rax, -24(%rbp) movl -36(%rbp), %eax sarl $0, %eax andl $255, %eax movl %eax, -48(%rbp) movl -36(%rbp), %eax sarl $8, %eax andl $1, %eax movl %eax, -44(%rbp) movl -36(%rbp), %eax sarl $12, %eax andl $1048575, %eax ## imm = 0xFFFFF movl %eax, -40(%rbp) movslq -48(%rbp), %rcx leaq _gens(%rip), %rax movq (%rax,%rcx,8), %rax movq %rax, -72(%rbp) movq -72(%rbp), %rax movl 24(%rax), %eax movl %eax, -56(%rbp) movq -72(%rbp), %rax movsd 88(%rax), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -64(%rbp) cmpl $0, -44(%rbp) jne LBB8_2 ## %bb.1: movl -40(%rbp), %ecx movq -72(%rbp), %rax movl %ecx, 24(%rax) jmp LBB8_3 LBB8_2: movl -40(%rbp), %ecx shll $4, %ecx movl _DX(%rip), %eax sarl $16, %eax andl $15, %eax orl %eax, %ecx movq -72(%rbp), %rax movl %ecx, 24(%rax) movl _DX(%rip), %eax movl %eax, -52(%rbp) movl $0, _DX(%rip) LBB8_3: movq -72(%rbp), %rax cvtsi2sdl 24(%rax), %xmm0 movsd LCPI8_0(%rip), %xmm1 ## xmm1 = mem[0],zero divsd %xmm1, %xmm0 movq -72(%rbp), %rax movsd %xmm0, 88(%rax) testb $1, _describe_commands(%rip) je LBB8_8 ## %bb.4: cmpl $0, -44(%rbp) jne LBB8_6 ## %bb.5: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movl -48(%rbp), %edx movslq -44(%rbp), %rax movq -32(%rbp,%rax,8), %rcx movq -72(%rbp), %rax movl 24(%rax), %r8d movq -72(%rbp), %rax movsd 88(%rax), %xmm0 ## xmm0 = mem[0],zero leaq L_.str.123(%rip), %rsi movb $1, %al callq _fprintf jmp LBB8_7 LBB8_6: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movl -48(%rbp), %edx movslq -44(%rbp), %rax movq -32(%rbp,%rax,8), %rcx movl -40(%rbp), %r8d movq -72(%rbp), %rax movl 24(%rax), %r9d movq -72(%rbp), %rax movsd 88(%rax), %xmm0 ## xmm0 = mem[0],zero movl -52(%rbp), %eax leaq L_.str.124(%rip), %rsi movl %eax, (%rsp) movb $1, %al callq _fprintf LBB8_7: jmp LBB8_8 LBB8_8: movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB8_10 ## %bb.9: addq $80, %rsp popq %rbp retq LBB8_10: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ## -- Begin function gj_command LCPI9_0: .quad 0x41a0000000000000 ## double 134217728 LCPI9_1: .quad 0x3fe0000000000000 ## double 0.5 .section __TEXT,__text,regular,pure_instructions .p2align 4, 0x90 _gj_command: ## @gj_command .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $96, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl %edi, -36(%rbp) movl $0, -52(%rbp) movq l___const.gj_command.E_name(%rip), %rax movq %rax, -32(%rbp) movq l___const.gj_command.E_name+8(%rip), %rax movq %rax, -24(%rbp) movl -36(%rbp), %eax sarl $0, %eax andl $255, %eax movl %eax, -48(%rbp) movl -36(%rbp), %eax sarl $8, %eax andl $1, %eax movl %eax, -44(%rbp) movl -36(%rbp), %eax sarl $12, %eax andl $1048575, %eax ## imm = 0xFFFFF movl %eax, -40(%rbp) movslq -48(%rbp), %rcx leaq _gens(%rip), %rax movq (%rax,%rcx,8), %rax movq %rax, -72(%rbp) movq -72(%rbp), %rax movl 4(%rax), %eax movl %eax, -56(%rbp) movq -72(%rbp), %rax cvtsi2sdl 4(%rax), %xmm0 movsd %xmm0, -64(%rbp) cmpl $0, -44(%rbp) jne LBB9_5 ## %bb.1: cmpl $524288, -40(%rbp) ## imm = 0x80000 jge LBB9_3 ## %bb.2: movl -40(%rbp), %eax movl %eax, -76(%rbp) ## 4-byte Spill jmp LBB9_4 LBB9_3: movl -40(%rbp), %eax andl $524287, %eax ## imm = 0x7FFFF subl $524288, %eax ## imm = 0x80000 movl %eax, -76(%rbp) ## 4-byte Spill LBB9_4: movl -76(%rbp), %ecx ## 4-byte Reload movq -72(%rbp), %rax movl %ecx, 4(%rax) jmp LBB9_9 LBB9_5: movl -40(%rbp), %eax shll $8, %eax movl _DX(%rip), %ecx sarl $12, %ecx addl %ecx, %eax cmpl $134217728, %eax ## imm = 0x8000000 jge LBB9_7 ## %bb.6: movl -40(%rbp), %eax shll $8, %eax movl _DX(%rip), %ecx sarl $12, %ecx addl %ecx, %eax movl %eax, -80(%rbp) ## 4-byte Spill jmp LBB9_8 LBB9_7: movl -40(%rbp), %eax shll $8, %eax movl _DX(%rip), %ecx sarl $12, %ecx addl %ecx, %eax andl $134217727, %eax ## imm = 0x7FFFFFF subl $134217728, %eax ## imm = 0x8000000 movl %eax, -80(%rbp) ## 4-byte Spill LBB9_8: movl -80(%rbp), %ecx ## 4-byte Reload movq -72(%rbp), %rax movl %ecx, 4(%rax) movl _DX(%rip), %eax movl %eax, -52(%rbp) movl $0, _DX(%rip) LBB9_9: movq -72(%rbp), %rax cvtsi2sdl 4(%rax), %xmm0 movsd LCPI9_0(%rip), %xmm1 ## xmm1 = mem[0],zero divsd %xmm1, %xmm0 movq -72(%rbp), %rax movsd %xmm0, 56(%rax) testb $1, _describe_commands(%rip) je LBB9_14 ## %bb.10: cmpl $0, -44(%rbp) jne LBB9_12 ## %bb.11: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movl -48(%rbp), %edx movslq -44(%rbp), %rax movq -32(%rbp,%rax,8), %rcx movq -72(%rbp), %rax movl 4(%rax), %r8d movq -72(%rbp), %rax movsd 56(%rax), %xmm0 ## xmm0 = mem[0],zero movq -72(%rbp), %rax movsd LCPI9_1(%rip), %xmm1 ## xmm1 = mem[0],zero mulsd 56(%rax), %xmm1 cvtsi2sdl _srate(%rip), %xmm2 mulsd %xmm2, %xmm1 leaq L_.str.125(%rip), %rsi movb $2, %al callq _fprintf jmp LBB9_13 LBB9_12: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movl -48(%rbp), %edx movslq -44(%rbp), %rax movq -32(%rbp,%rax,8), %rcx movl -52(%rbp), %r8d movl -40(%rbp), %r9d movq -72(%rbp), %rax movl 4(%rax), %eax movq -72(%rbp), %rsi movsd 56(%rsi), %xmm0 ## xmm0 = mem[0],zero movq -72(%rbp), %rsi movsd LCPI9_1(%rip), %xmm1 ## xmm1 = mem[0],zero mulsd 56(%rsi), %xmm1 cvtsi2sdl _srate(%rip), %xmm2 mulsd %xmm2, %xmm1 leaq L_.str.126(%rip), %rsi movl %eax, (%rsp) movb $2, %al callq _fprintf LBB9_13: jmp LBB9_14 LBB9_14: movq -72(%rbp), %rdi callq _gen_is_active testb $1, %al jne LBB9_15 jmp LBB9_18 LBB9_15: movq -72(%rbp), %rax movl 4(%rax), %eax cmpl -56(%rbp), %eax je LBB9_18 ## %bb.16: movl _samples(%rip), %eax cmpl _last_GMODE_command(%rip), %eax jle LBB9_18 ## %bb.17: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movl _samples(%rip), %edx cvtsi2sdl _samples(%rip), %xmm0 cvtsi2sdl _srate(%rip), %xmm1 divsd %xmm1, %xmm0 movl _current_command(%rip), %ecx movl -48(%rbp), %r8d movq -72(%rbp), %rax movsd LCPI9_1(%rip), %xmm1 ## xmm1 = mem[0],zero mulsd 56(%rax), %xmm1 cvtsi2sdl _srate(%rip), %xmm2 mulsd %xmm2, %xmm1 cvtsi2sdl -56(%rbp), %xmm2 movsd LCPI9_0(%rip), %xmm3 ## xmm3 = mem[0],zero divsd %xmm3, %xmm2 movsd LCPI9_1(%rip), %xmm3 ## xmm3 = mem[0],zero mulsd %xmm3, %xmm2 cvtsi2sdl _srate(%rip), %xmm3 mulsd %xmm3, %xmm2 movl _last_GMODE_command(%rip), %r9d movl -40(%rbp), %eax leaq L_.str.127(%rip), %rsi movl %eax, (%rsp) movb $3, %al callq _fprintf LBB9_18: movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB9_20 ## %bb.19: addq $96, %rsp popq %rbp retq LBB9_20: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ## -- Begin function gp_command LCPI10_0: .quad 0x4120000000000000 ## double 524288 .section __TEXT,__text,regular,pure_instructions .p2align 4, 0x90 _gp_command: ## @gp_command .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl %edi, -4(%rbp) movl -4(%rbp), %eax sarl $0, %eax andl $255, %eax movl %eax, -12(%rbp) movl -4(%rbp), %eax sarl $12, %eax andl $1048575, %eax ## imm = 0xFFFFF movl %eax, -8(%rbp) movslq -12(%rbp), %rcx leaq _gens(%rip), %rax movq (%rax,%rcx,8), %rax movq %rax, -24(%rbp) cmpl $524288, -8(%rbp) ## imm = 0x80000 jge LBB10_2 ## %bb.1: movl -8(%rbp), %eax movl %eax, -28(%rbp) ## 4-byte Spill jmp LBB10_3 LBB10_2: movl -8(%rbp), %eax andl $524287, %eax ## imm = 0x7FFFF subl $524288, %eax ## imm = 0x80000 movl %eax, -28(%rbp) ## 4-byte Spill LBB10_3: movl -28(%rbp), %ecx ## 4-byte Reload movq -24(%rbp), %rax movl %ecx, 20(%rax) movq -24(%rbp), %rax cvtsi2sdl 20(%rax), %xmm0 movsd LCPI10_0(%rip), %xmm1 ## xmm1 = mem[0],zero divsd %xmm1, %xmm0 movq -24(%rbp), %rax movsd %xmm0, 80(%rax) testb $1, _describe_commands(%rip) je LBB10_5 ## %bb.4: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movl -12(%rbp), %edx movq -24(%rbp), %rax movl 20(%rax), %ecx movq -24(%rbp), %rax movsd 80(%rax), %xmm0 ## xmm0 = mem[0],zero cvtsi2sdl _srate(%rip), %xmm1 mulsd %xmm1, %xmm0 movq -24(%rbp), %rax movsd 88(%rax), %xmm1 ## xmm1 = mem[0],zero leaq L_.str.128(%rip), %rsi movb $2, %al callq _fprintf LBB10_5: addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function gn_command _gn_command: ## @gn_command .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $96, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl %edi, -52(%rbp) movq l___const.gn_command.SS_name(%rip), %rax movq %rax, -48(%rbp) movq l___const.gn_command.SS_name+8(%rip), %rax movq %rax, -40(%rbp) movq l___const.gn_command.SS_name+16(%rip), %rax movq %rax, -32(%rbp) movq l___const.gn_command.SS_name+24(%rip), %rax movq %rax, -24(%rbp) movl -52(%rbp), %eax sarl $0, %eax andl $255, %eax movl %eax, -76(%rbp) movl -52(%rbp), %eax sarl $12, %eax andl $15, %eax movl %eax, -72(%rbp) movl -52(%rbp), %eax sarl $16, %eax andl $2047, %eax ## imm = 0x7FF movl %eax, -68(%rbp) movl -52(%rbp), %eax sarl $28, %eax andl $3, %eax movl %eax, -64(%rbp) movl -52(%rbp), %eax sarl $30, %eax andl $1, %eax movl %eax, -60(%rbp) movl -52(%rbp), %eax sarl $31, %eax andl $1, %eax movl %eax, -56(%rbp) testb $1, _describe_commands(%rip) je LBB11_11 ## %bb.1: cmpl $1, -56(%rbp) jne LBB11_6 ## %bb.2: cmpl $1, -60(%rbp) jne LBB11_4 ## %bb.3: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movl -76(%rbp), %edx movslq -64(%rbp), %rax movq -48(%rbp,%rax,8), %rcx leaq L_.str.132(%rip), %rsi movb $0, %al callq _fprintf jmp LBB11_5 LBB11_4: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movl -76(%rbp), %edx movl -72(%rbp), %ecx movslq -64(%rbp), %rax movq -48(%rbp,%rax,8), %r8 leaq L_.str.133(%rip), %rsi movb $0, %al callq _fprintf LBB11_5: jmp LBB11_10 LBB11_6: cmpl $1, -60(%rbp) jne LBB11_8 ## %bb.7: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movl -76(%rbp), %edx movl -68(%rbp), %ecx movslq -64(%rbp), %rax movq -48(%rbp,%rax,8), %r8 leaq L_.str.134(%rip), %rsi movb $0, %al callq _fprintf jmp LBB11_9 LBB11_8: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movl -76(%rbp), %edx movl -68(%rbp), %ecx movslq -64(%rbp), %rax movq -48(%rbp,%rax,8), %r8 movl -72(%rbp), %r9d leaq L_.str.135(%rip), %rsi movb $0, %al callq _fprintf LBB11_9: jmp LBB11_10 LBB11_10: jmp LBB11_11 LBB11_11: movslq -76(%rbp), %rcx leaq _gens(%rip), %rax movq (%rax,%rcx,8), %rax movq %rax, -88(%rbp) cmpl $0, -56(%rbp) jne LBB11_13 ## %bb.12: movl -68(%rbp), %ecx movq -88(%rbp), %rax movl %ecx, 12(%rax) LBB11_13: cmpl $0, -60(%rbp) jne LBB11_15 ## %bb.14: movl -72(%rbp), %ecx movq -88(%rbp), %rax movl %ecx, 16(%rax) LBB11_15: movl -64(%rbp), %eax movl %eax, -92(%rbp) ## 4-byte Spill testl %eax, %eax je LBB11_16 jmp LBB11_21 LBB11_21: movl -92(%rbp), %eax ## 4-byte Reload subl $1, %eax je LBB11_17 jmp LBB11_18 LBB11_16: movq -88(%rbp), %rax movl $0, 40(%rax) jmp LBB11_18 LBB11_17: movq -88(%rbp), %rax movl $1, 40(%rax) LBB11_18: movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB11_20 ## %bb.19: addq $96, %rsp popq %rbp retq LBB11_20: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ## -- Begin function gl_command LCPI12_0: .quad 0x40affe0000000000 ## double 4095 .section __TEXT,__text,regular,pure_instructions .p2align 4, 0x90 _gl_command: ## @gl_command .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 %edi, -4(%rbp) movl -4(%rbp), %eax sarl $0, %eax andl $255, %eax movl %eax, -24(%rbp) movl -4(%rbp), %eax sarl $12, %eax andl $63, %eax movl %eax, -12(%rbp) movl -4(%rbp), %eax sarl $18, %eax andl $4095, %eax ## imm = 0xFFF movl %eax, -8(%rbp) movl -4(%rbp), %eax sarl $31, %eax andl $1, %eax movl %eax, -16(%rbp) movl -4(%rbp), %eax sarl $30, %eax andl $1, %eax movl %eax, -20(%rbp) movslq -24(%rbp), %rcx leaq _gens(%rip), %rax movq (%rax,%rcx,8), %rax movq %rax, -40(%rbp) movq -40(%rbp), %rax movl 32(%rax), %eax movl %eax, -28(%rbp) cmpl $0, -16(%rbp) jne LBB12_2 ## %bb.1: movl -8(%rbp), %ecx movq -40(%rbp), %rax movl %ecx, 28(%rax) cvtsi2sdl -8(%rbp), %xmm0 movsd LCPI12_0(%rip), %xmm1 ## xmm1 = mem[0],zero divsd %xmm1, %xmm0 movq -40(%rbp), %rax movsd %xmm0, 96(%rax) LBB12_2: cmpl $0, -20(%rbp) jne LBB12_4 ## %bb.3: movl -12(%rbp), %ecx movq -40(%rbp), %rax movl %ecx, 32(%rax) LBB12_4: testb $1, _describe_commands(%rip) je LBB12_15 ## %bb.5: cmpl $1, -16(%rbp) jne LBB12_10 ## %bb.6: cmpl $1, -20(%rbp) jne LBB12_8 ## %bb.7: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movl -24(%rbp), %edx leaq L_.str.136(%rip), %rsi movb $0, %al callq _fprintf jmp LBB12_9 LBB12_8: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movl -24(%rbp), %edx movq -40(%rbp), %rax movl 32(%rax), %ecx leaq L_.str.137(%rip), %rsi movb $0, %al callq _fprintf LBB12_9: jmp LBB12_14 LBB12_10: cmpl $0, -20(%rbp) jne LBB12_12 ## %bb.11: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movl -24(%rbp), %edx movq -40(%rbp), %rax movl 28(%rax), %ecx movq -40(%rbp), %rax movsd 96(%rax), %xmm0 ## xmm0 = mem[0],zero leaq L_.str.138(%rip), %rsi movb $1, %al callq _fprintf jmp LBB12_13 LBB12_12: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movl -24(%rbp), %edx movq -40(%rbp), %rax movl 32(%rax), %ecx movq -40(%rbp), %rax movl 28(%rax), %r8d movq -40(%rbp), %rax movsd 96(%rax), %xmm0 ## xmm0 = mem[0],zero leaq L_.str.139(%rip), %rsi movb $1, %al callq _fprintf LBB12_13: jmp LBB12_14 LBB12_14: jmp LBB12_15 LBB12_15: cmpl $1, -8(%rbp) jne LBB12_19 ## %bb.16: cmpl $1, -16(%rbp) jne LBB12_19 ## %bb.17: cmpl $0, -20(%rbp) jne LBB12_19 ## %bb.18: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movl _samples(%rip), %edx cvtsi2sdl _samples(%rip), %xmm0 cvtsi2sdl _srate(%rip), %xmm1 divsd %xmm1, %xmm0 movl _current_command(%rip), %ecx movl -24(%rbp), %r8d movl -12(%rbp), %r9d leaq L_.str.140(%rip), %rsi movb $1, %al callq _fprintf LBB12_19: movq -40(%rbp), %rdi callq _gen_is_active testb $1, %al jne LBB12_20 jmp LBB12_24 LBB12_20: movq -40(%rbp), %rax movl 32(%rax), %eax cmpl -28(%rbp), %eax je LBB12_24 ## %bb.21: movl _samples(%rip), %eax cmpl _last_GMODE_command(%rip), %eax jle LBB12_24 ## %bb.22: cmpl $0, -20(%rbp) jne LBB12_24 ## %bb.23: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movl _samples(%rip), %edx cvtsi2sdl _samples(%rip), %xmm0 cvtsi2sdl _srate(%rip), %xmm1 divsd %xmm1, %xmm0 movl _current_command(%rip), %ecx movl -24(%rbp), %r8d movq -40(%rbp), %rax movl 32(%rax), %r9d movl -28(%rbp), %r10d movl _last_GMODE_command(%rip), %eax leaq L_.str.141(%rip), %rsi movl %r10d, (%rsp) movl %eax, 8(%rsp) movb $1, %al callq _fprintf LBB12_24: addq $64, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ## -- Begin function gk_command LCPI13_0: .quad 0x4120000000000000 ## double 524288 .section __TEXT,__text,regular,pure_instructions .p2align 4, 0x90 _gk_command: ## @gk_command .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movl %edi, -4(%rbp) movl -4(%rbp), %eax sarl $0, %eax andl $255, %eax movl %eax, -12(%rbp) movl -4(%rbp), %eax sarl $12, %eax andl $1048575, %eax ## imm = 0xFFFFF movl %eax, -8(%rbp) movslq -12(%rbp), %rcx leaq _gens(%rip), %rax movq (%rax,%rcx,8), %rax movq %rax, -32(%rbp) movq -32(%rbp), %rax movl 8(%rax), %eax movl %eax, -16(%rbp) movq -32(%rbp), %rax movsd 64(%rax), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -24(%rbp) cmpl $524288, -8(%rbp) ## imm = 0x80000 jge LBB13_2 ## %bb.1: movl -8(%rbp), %eax movl %eax, -36(%rbp) ## 4-byte Spill jmp LBB13_3 LBB13_2: movl -8(%rbp), %eax andl $524287, %eax ## imm = 0x7FFFF subl $524288, %eax ## imm = 0x80000 movl %eax, -36(%rbp) ## 4-byte Spill LBB13_3: movl -36(%rbp), %ecx ## 4-byte Reload movq -32(%rbp), %rax movl %ecx, 8(%rax) movq -32(%rbp), %rax cvtsi2sdl 8(%rax), %xmm0 movsd LCPI13_0(%rip), %xmm1 ## xmm1 = mem[0],zero divsd %xmm1, %xmm0 movq -32(%rbp), %rax movsd %xmm0, 64(%rax) testb $1, _describe_commands(%rip) je LBB13_5 ## %bb.4: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movl -12(%rbp), %edx movq -32(%rbp), %rax movl 8(%rax), %ecx movq -32(%rbp), %rax movsd 64(%rax), %xmm0 ## xmm0 = mem[0],zero leaq L_.str.142(%rip), %rsi movb $1, %al callq _fprintf LBB13_5: movq -32(%rbp), %rdi callq _gen_is_active testb $1, %al jne LBB13_6 jmp LBB13_8 LBB13_6: movl _samples(%rip), %eax cmpl _last_GMODE_command(%rip), %eax jle LBB13_8 ## %bb.7: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movl _samples(%rip), %edx cvtsi2sdl _samples(%rip), %xmm0 cvtsi2sdl _srate(%rip), %xmm1 divsd %xmm1, %xmm0 movl _current_command(%rip), %ecx movl -12(%rbp), %r8d movq -32(%rbp), %rax movsd 64(%rax), %xmm1 ## xmm1 = mem[0],zero movl _last_GMODE_command(%rip), %r9d leaq L_.str.143(%rip), %rsi movb $2, %al callq _fprintf LBB13_8: addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function gmode_command _gmode_command: ## @gmode_command .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 %edi, -4(%rbp) movl _samples(%rip), %eax movl %eax, _last_GMODE_command(%rip) movl -4(%rbp), %eax sarl $0, %eax andl $255, %eax movl %eax, -8(%rbp) movl -4(%rbp), %eax sarl $12, %eax andl $127, %eax movl %eax, -28(%rbp) movl -4(%rbp), %eax sarl $19, %eax andl $1023, %eax ## imm = 0x3FF movl %eax, -24(%rbp) movl -4(%rbp), %eax sarl $31, %eax andl $1, %eax movl %eax, -12(%rbp) movl -4(%rbp), %eax sarl $30, %eax andl $1, %eax movl %eax, -16(%rbp) movl -4(%rbp), %eax sarl $29, %eax andl $1, %eax movl %eax, -20(%rbp) movslq -8(%rbp), %rcx leaq _gens(%rip), %rax movq (%rax,%rcx,8), %rax movq %rax, -48(%rbp) movq -48(%rbp), %rax movl 36(%rax), %eax movl %eax, -36(%rbp) movq -48(%rbp), %rax movl 44(%rax), %eax movl %eax, -32(%rbp) movq -48(%rbp), %rdi callq _gen_is_active andb $1, %al movb %al, -37(%rbp) cmpl $0, -12(%rbp) jne LBB14_2 ## %bb.1: movl -24(%rbp), %ecx movq -48(%rbp), %rax movl %ecx, 44(%rax) LBB14_2: cmpl $0, -16(%rbp) jne LBB14_4 ## %bb.3: movl -28(%rbp), %ecx movq -48(%rbp), %rax movl %ecx, 36(%rax) LBB14_4: cmpl $1, -20(%rbp) jne LBB14_6 ## %bb.5: movq -48(%rbp), %rax movl $0, 8(%rax) LBB14_6: testb $1, _describe_commands(%rip) je LBB14_19 ## %bb.7: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movl -8(%rbp), %edx leaq L_.str.57(%rip), %rsi movb $0, %al callq _fprintf cmpl $0, -12(%rbp) jne LBB14_9 ## %bb.8: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.144(%rip), %rsi movb $0, %al callq _fprintf movq -48(%rbp), %rax movl 44(%rax), %edi callq _print_gmode_name LBB14_9: cmpl $0, -16(%rbp) jne LBB14_13 ## %bb.10: cmpl $0, -12(%rbp) jne LBB14_12 ## %bb.11: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.145(%rip), %rsi movb $0, %al callq _fprintf LBB14_12: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movq -48(%rbp), %rax movl 36(%rax), %ecx sarl $6, %ecx leaq L_.str.148(%rip), %rdx leaq L_.str.147(%rip), %rax cmpl $0, %ecx cmoveq %rax, %rdx movq -48(%rbp), %rax movl 36(%rax), %ecx andl $63, %ecx leaq L_.str.146(%rip), %rsi movb $0, %al callq _fprintf LBB14_13: cmpl $1, -20(%rbp) jne LBB14_18 ## %bb.14: cmpl $0, -12(%rbp) je LBB14_16 ## %bb.15: cmpl $0, -16(%rbp) jne LBB14_17 LBB14_16: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.145(%rip), %rsi movb $0, %al callq _fprintf LBB14_17: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.149(%rip), %rsi movb $0, %al callq _fprintf LBB14_18: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.17(%rip), %rsi movb $0, %al callq _fprintf LBB14_19: movl -24(%rbp), %edi callq _bad_mode testb $1, %al jne LBB14_20 jmp LBB14_21 LBB14_20: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movl _samples(%rip), %edx cvtsi2sdl _samples(%rip), %xmm0 cvtsi2sdl _srate(%rip), %xmm1 divsd %xmm1, %xmm0 movl _current_command(%rip), %ecx movl -8(%rbp), %r8d movl -24(%rbp), %r9d leaq L_.str.150(%rip), %rsi movb $1, %al callq _fprintf LBB14_21: movq -48(%rbp), %rdi callq _gen_is_active testb $1, %al jne LBB14_22 jmp LBB14_24 LBB14_22: movl -8(%rbp), %eax cmpl _processing_ticks(%rip), %eax jl LBB14_24 ## %bb.23: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movl _samples(%rip), %edx cvtsi2sdl _samples(%rip), %xmm0 cvtsi2sdl _srate(%rip), %xmm1 divsd %xmm1, %xmm0 movl _current_command(%rip), %ecx movl -8(%rbp), %r8d movl _processing_ticks(%rip), %r9d leaq L_.str.151(%rip), %rsi movb $1, %al callq _fprintf LBB14_24: testb $1, -37(%rbp) je LBB14_32 ## %bb.25: movq -48(%rbp), %rax movl 36(%rax), %eax cmpl -36(%rbp), %eax jne LBB14_27 ## %bb.26: movq -48(%rbp), %rax movl 44(%rax), %eax cmpl -32(%rbp), %eax je LBB14_32 LBB14_27: movl _samples(%rip), %eax cmpl _last_GMODE_command(%rip), %eax jle LBB14_32 ## %bb.28: movq -48(%rbp), %rax movl 36(%rax), %eax cmpl -36(%rbp), %eax je LBB14_30 ## %bb.29: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movl _samples(%rip), %edx cvtsi2sdl _samples(%rip), %xmm0 cvtsi2sdl _srate(%rip), %xmm1 divsd %xmm1, %xmm0 movl _current_command(%rip), %ecx movl -8(%rbp), %r8d movq -48(%rbp), %rax movl 36(%rax), %r9d movl -36(%rbp), %r10d movl _last_GMODE_command(%rip), %eax leaq L_.str.152(%rip), %rsi movl %r10d, (%rsp) movl %eax, 8(%rsp) movb $1, %al callq _fprintf jmp LBB14_31 LBB14_30: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movl _samples(%rip), %edx cvtsi2sdl _samples(%rip), %xmm0 cvtsi2sdl _srate(%rip), %xmm1 divsd %xmm1, %xmm0 movl _current_command(%rip), %ecx movl -8(%rbp), %r8d leaq L_.str.153(%rip), %rsi movb $1, %al callq _fprintf movq -48(%rbp), %rax movl 44(%rax), %edi callq _print_gmode_name movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.154(%rip), %rsi movb $0, %al callq _fprintf movl -32(%rbp), %edi callq _print_gmode_name movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movl _last_GMODE_command(%rip), %edx leaq L_.str.155(%rip), %rsi movb $0, %al callq _fprintf LBB14_31: jmp LBB14_32 LBB14_32: addq $64, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ## -- Begin function go_command LCPI15_0: .quad 0x4120000000000000 ## double 524288 LCPI15_1: .quad 0x3fe0000000000000 ## double 0.5 LCPI15_2: .quad 0x4070000000000000 ## double 256 .section __TEXT,__text,regular,pure_instructions .p2align 4, 0x90 _go_command: ## @go_command .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl %edi, -4(%rbp) movl -4(%rbp), %eax sarl $0, %eax andl $255, %eax movl %eax, -12(%rbp) movl -4(%rbp), %eax sarl $12, %eax andl $1048575, %eax ## imm = 0xFFFFF movl %eax, -8(%rbp) movslq -12(%rbp), %rcx leaq _gens(%rip), %rax movq (%rax,%rcx,8), %rax movq %rax, -24(%rbp) cmpl $524288, -8(%rbp) ## imm = 0x80000 jge LBB15_2 ## %bb.1: movl -8(%rbp), %eax movl %eax, -28(%rbp) ## 4-byte Spill jmp LBB15_3 LBB15_2: movl -8(%rbp), %eax andl $524287, %eax ## imm = 0x7FFFF subl $524288, %eax ## imm = 0x80000 movl %eax, -28(%rbp) ## 4-byte Spill LBB15_3: movl -28(%rbp), %ecx ## 4-byte Reload movq -24(%rbp), %rax movl %ecx, (%rax) movq -24(%rbp), %rax cvtsi2sdl (%rax), %xmm0 movsd LCPI15_0(%rip), %xmm1 ## xmm1 = mem[0],zero divsd %xmm1, %xmm0 movq -24(%rbp), %rax movsd %xmm0, 48(%rax) testb $1, _describe_commands(%rip) je LBB15_8 ## %bb.4: movq -24(%rbp), %rax movl 44(%rax), %eax sarl $6, %eax andl $15, %eax cmpl $2, %eax jne LBB15_6 ## %bb.5: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movl -12(%rbp), %edx movl -8(%rbp), %ecx leaq L_.str.156(%rip), %rsi movb $0, %al callq _fprintf jmp LBB15_7 LBB15_6: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movl -12(%rbp), %edx movq -24(%rbp), %rax movl (%rax), %ecx movq -24(%rbp), %rax movsd 48(%rax), %xmm0 ## xmm0 = mem[0],zero movq -24(%rbp), %rax movsd LCPI15_1(%rip), %xmm1 ## xmm1 = mem[0],zero mulsd 48(%rax), %xmm1 cvtsi2sdl _srate(%rip), %xmm2 mulsd %xmm2, %xmm1 cvtsi2sdl _srate(%rip), %xmm2 mulsd %xmm2, %xmm1 movsd LCPI15_2(%rip), %xmm2 ## xmm2 = mem[0],zero divsd %xmm2, %xmm1 movq -24(%rbp), %rax movsd 56(%rax), %xmm2 ## xmm2 = mem[0],zero cvtsi2sdl _srate(%rip), %xmm3 mulsd %xmm3, %xmm2 movsd LCPI15_1(%rip), %xmm3 ## xmm3 = mem[0],zero mulsd %xmm3, %xmm2 leaq L_.str.157(%rip), %rsi movb $3, %al callq _fprintf LBB15_7: jmp LBB15_8 LBB15_8: addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ## -- Begin function mm_command LCPI16_0: .quad 0x41c0000000000000 ## double 536870912 .section __TEXT,__text,regular,pure_instructions .p2align 4, 0x90 _mm_command: ## @mm_command .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $80, %rsp movl %edi, -4(%rbp) movl $0, -20(%rbp) movl -4(%rbp), %eax andl $127, %eax movl %eax, -8(%rbp) movl -4(%rbp), %eax shrl $7, %eax andl $3, %eax movl %eax, -12(%rbp) movl -4(%rbp), %eax shrl $12, %eax movl %eax, -16(%rbp) movslq -8(%rbp), %rcx leaq _mods(%rip), %rax movq (%rax,%rcx,8), %rax movq %rax, -32(%rbp) movl -12(%rbp), %eax ## kill: def $rax killed $eax movq %rax, -40(%rbp) ## 8-byte Spill subq $3, %rax ja LBB16_17 ## %bb.25: movq -40(%rbp), %rax ## 8-byte Reload leaq LJTI16_0(%rip), %rcx movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax LBB16_1: cmpl $524288, -16(%rbp) ## imm = 0x80000 jge LBB16_3 ## %bb.2: movl -16(%rbp), %eax movl %eax, -44(%rbp) ## 4-byte Spill jmp LBB16_4 LBB16_3: movl -16(%rbp), %eax andl $524287, %eax ## imm = 0x7FFFF subl $524288, %eax ## imm = 0x80000 movl %eax, -44(%rbp) ## 4-byte Spill LBB16_4: movl -44(%rbp), %ecx ## 4-byte Reload movq -32(%rbp), %rax movl %ecx, (%rax) movq -32(%rbp), %rax cvtsi2sdl (%rax), %xmm0 movsd LCPI16_0(%rip), %xmm1 ## xmm1 = mem[0],zero divsd %xmm1, %xmm0 movq -32(%rbp), %rax movsd %xmm0, 56(%rax) movq -32(%rbp), %rax movl (%rax), %ecx movq -32(%rbp), %rax movl %ecx, 48(%rax) movq -32(%rbp), %rax movsd 56(%rax), %xmm0 ## xmm0 = mem[0],zero movq -32(%rbp), %rax movsd %xmm0, 88(%rax) movq -32(%rbp), %rax movl (%rax), %eax movq -32(%rbp), %rcx imull 44(%rcx), %eax movl $4, %ecx cltd idivl %ecx movl %eax, %ecx movq -32(%rbp), %rax movl %ecx, (%rax) movq -32(%rbp), %rax cvtsi2sdl 44(%rax), %xmm0 movq -32(%rbp), %rax mulsd 56(%rax), %xmm0 movsd %xmm0, 56(%rax) jmp LBB16_17 LBB16_5: cmpl $524288, -16(%rbp) ## imm = 0x80000 jge LBB16_7 ## %bb.6: movl -16(%rbp), %eax movl %eax, -48(%rbp) ## 4-byte Spill jmp LBB16_8 LBB16_7: movl -16(%rbp), %eax andl $524287, %eax ## imm = 0x7FFFF subl $524288, %eax ## imm = 0x80000 movl %eax, -48(%rbp) ## 4-byte Spill LBB16_8: movl -48(%rbp), %ecx ## 4-byte Reload movq -32(%rbp), %rax movl %ecx, 4(%rax) movq -32(%rbp), %rax cvtsi2sdl 4(%rax), %xmm0 movsd LCPI16_0(%rip), %xmm1 ## xmm1 = mem[0],zero divsd %xmm1, %xmm0 movq -32(%rbp), %rax movsd %xmm0, 64(%rax) movq -32(%rbp), %rax movl 4(%rax), %ecx movq -32(%rbp), %rax movl %ecx, 52(%rax) movq -32(%rbp), %rax movsd 64(%rax), %xmm0 ## xmm0 = mem[0],zero movq -32(%rbp), %rax movsd %xmm0, 96(%rax) movq -32(%rbp), %rax movl 4(%rax), %eax movq -32(%rbp), %rcx imull 40(%rcx), %eax movl $4, %ecx cltd idivl %ecx movl %eax, %ecx movq -32(%rbp), %rax movl %ecx, 4(%rax) movq -32(%rbp), %rax cvtsi2sdl 40(%rax), %xmm0 movq -32(%rbp), %rax mulsd 64(%rax), %xmm0 movsd %xmm0, 64(%rax) jmp LBB16_17 LBB16_9: movl -16(%rbp), %eax shll $10, %eax movl _DX(%rip), %ecx sarl $10, %ecx andl $1023, %ecx ## imm = 0x3FF addl %ecx, %eax cmpl $536870912, %eax ## imm = 0x20000000 jge LBB16_11 ## %bb.10: movl -16(%rbp), %eax shll $10, %eax movl _DX(%rip), %ecx sarl $10, %ecx andl $1023, %ecx ## imm = 0x3FF addl %ecx, %eax movl %eax, -52(%rbp) ## 4-byte Spill jmp LBB16_12 LBB16_11: movl -16(%rbp), %eax shll $10, %eax movl _DX(%rip), %ecx sarl $10, %ecx andl $1023, %ecx ## imm = 0x3FF addl %ecx, %eax andl $536870911, %eax ## imm = 0x1FFFFFFF subl $536870912, %eax ## imm = 0x20000000 movl %eax, -52(%rbp) ## 4-byte Spill LBB16_12: movl -52(%rbp), %ecx ## 4-byte Reload movq -32(%rbp), %rax movl %ecx, (%rax) movq -32(%rbp), %rax cvtsi2sdl (%rax), %xmm0 movsd LCPI16_0(%rip), %xmm1 ## xmm1 = mem[0],zero divsd %xmm1, %xmm0 movq -32(%rbp), %rax movsd %xmm0, 56(%rax) movq -32(%rbp), %rax movl (%rax), %ecx movq -32(%rbp), %rax movl %ecx, 48(%rax) movq -32(%rbp), %rax movsd 56(%rax), %xmm0 ## xmm0 = mem[0],zero movq -32(%rbp), %rax movsd %xmm0, 88(%rax) movl _DX(%rip), %eax movl %eax, -20(%rbp) movl $0, _DX(%rip) movq -32(%rbp), %rax movl (%rax), %eax movl $4, %ecx cltd idivl %ecx movl %eax, %ecx movq -32(%rbp), %rax imull 44(%rax), %ecx movq -32(%rbp), %rax movl %ecx, (%rax) movq -32(%rbp), %rax cvtsi2sdl 44(%rax), %xmm0 movq -32(%rbp), %rax mulsd 56(%rax), %xmm0 movsd %xmm0, 56(%rax) jmp LBB16_17 LBB16_13: movl -16(%rbp), %eax shll $10, %eax movl _DX(%rip), %ecx sarl $10, %ecx andl $1023, %ecx ## imm = 0x3FF addl %ecx, %eax cmpl $536870912, %eax ## imm = 0x20000000 jge LBB16_15 ## %bb.14: movl -16(%rbp), %eax shll $10, %eax movl _DX(%rip), %ecx sarl $10, %ecx andl $1023, %ecx ## imm = 0x3FF addl %ecx, %eax movl %eax, -56(%rbp) ## 4-byte Spill jmp LBB16_16 LBB16_15: movl -16(%rbp), %eax shll $10, %eax movl _DX(%rip), %ecx sarl $10, %ecx andl $1023, %ecx ## imm = 0x3FF addl %ecx, %eax andl $536870911, %eax ## imm = 0x1FFFFFFF subl $536870912, %eax ## imm = 0x20000000 movl %eax, -56(%rbp) ## 4-byte Spill LBB16_16: movl -56(%rbp), %ecx ## 4-byte Reload movq -32(%rbp), %rax movl %ecx, 4(%rax) movq -32(%rbp), %rax cvtsi2sdl 4(%rax), %xmm0 movsd LCPI16_0(%rip), %xmm1 ## xmm1 = mem[0],zero divsd %xmm1, %xmm0 movq -32(%rbp), %rax movsd %xmm0, 64(%rax) movq -32(%rbp), %rax movl 4(%rax), %ecx movq -32(%rbp), %rax movl %ecx, 52(%rax) movq -32(%rbp), %rax movsd 64(%rax), %xmm0 ## xmm0 = mem[0],zero movq -32(%rbp), %rax movsd %xmm0, 96(%rax) movl _DX(%rip), %eax movl %eax, -20(%rbp) movl $0, _DX(%rip) movq -32(%rbp), %rax movl 4(%rax), %eax movl $4, %ecx cltd idivl %ecx movl %eax, %ecx movq -32(%rbp), %rax imull 40(%rax), %ecx movq -32(%rbp), %rax movl %ecx, 4(%rax) movq -32(%rbp), %rax cvtsi2sdl 40(%rax), %xmm0 movq -32(%rbp), %rax mulsd 64(%rax), %xmm0 movsd %xmm0, 64(%rax) LBB16_17: testb $1, _describe_commands(%rip) je LBB16_24 ## %bb.18: movl -12(%rbp), %eax ## kill: def $rax killed $eax movq %rax, -64(%rbp) ## 8-byte Spill subq $3, %rax ja LBB16_23 ## %bb.26: movq -64(%rbp), %rax ## 8-byte Reload leaq LJTI16_1(%rip), %rcx movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax LBB16_19: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movl -8(%rbp), %edx movl -16(%rbp), %ecx movq -32(%rbp), %rax movl (%rax), %r8d movq -32(%rbp), %rax movsd 56(%rax), %xmm0 ## xmm0 = mem[0],zero leaq L_.str.158(%rip), %rsi movb $1, %al callq _fprintf jmp LBB16_23 LBB16_20: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movl -8(%rbp), %edx movl -16(%rbp), %ecx movq -32(%rbp), %rax movl 4(%rax), %r8d movq -32(%rbp), %rax movsd 64(%rax), %xmm0 ## xmm0 = mem[0],zero leaq L_.str.159(%rip), %rsi movb $1, %al callq _fprintf jmp LBB16_23 LBB16_21: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movl -8(%rbp), %edx movl -16(%rbp), %ecx movl -20(%rbp), %r8d movq -32(%rbp), %rax movl 44(%rax), %r9d movq -32(%rbp), %rax movl 48(%rax), %r10d movq -32(%rbp), %rax movl (%rax), %eax movq -32(%rbp), %rsi movsd 88(%rsi), %xmm0 ## xmm0 = mem[0],zero movq -32(%rbp), %rsi movsd 56(%rsi), %xmm1 ## xmm1 = mem[0],zero leaq L_.str.160(%rip), %rsi movl %r10d, (%rsp) movl %eax, 8(%rsp) movb $2, %al callq _fprintf jmp LBB16_23 LBB16_22: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movl -8(%rbp), %edx movl -16(%rbp), %ecx movl -20(%rbp), %r8d movq -32(%rbp), %rax movl 40(%rax), %r9d movq -32(%rbp), %rax movl 52(%rax), %r10d movq -32(%rbp), %rax movl 4(%rax), %eax movq -32(%rbp), %rsi movsd 96(%rsi), %xmm0 ## xmm0 = mem[0],zero movq -32(%rbp), %rsi movsd 64(%rsi), %xmm1 ## xmm1 = mem[0],zero leaq L_.str.161(%rip), %rsi movl %r10d, (%rsp) movl %eax, 8(%rsp) movb $2, %al callq _fprintf LBB16_23: jmp LBB16_24 LBB16_24: addq $80, %rsp popq %rbp retq .cfi_endproc .p2align 2, 0x90 .data_region jt32 .set L16_0_set_1, LBB16_1-LJTI16_0 .set L16_0_set_5, LBB16_5-LJTI16_0 .set L16_0_set_9, LBB16_9-LJTI16_0 .set L16_0_set_13, LBB16_13-LJTI16_0 LJTI16_0: .long L16_0_set_1 .long L16_0_set_5 .long L16_0_set_9 .long L16_0_set_13 .set L16_1_set_19, LBB16_19-LJTI16_1 .set L16_1_set_20, LBB16_20-LJTI16_1 .set L16_1_set_21, LBB16_21-LJTI16_1 .set L16_1_set_22, LBB16_22-LJTI16_1 LJTI16_1: .long L16_1_set_19 .long L16_1_set_20 .long L16_1_set_21 .long L16_1_set_22 .end_data_region ## -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ## -- Begin function ml_command LCPI17_0: .quad 0x4120000000000000 ## double 524288 .section __TEXT,__text,regular,pure_instructions .p2align 4, 0x90 _ml_command: ## @ml_command .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl %edi, -4(%rbp) movl -4(%rbp), %eax sarl $0, %eax andl $127, %eax movl %eax, -8(%rbp) movl -4(%rbp), %eax sarl $12, %eax andl $1048575, %eax ## imm = 0xFFFFF movl %eax, -16(%rbp) movl -4(%rbp), %eax sarl $7, %eax andl $1, %eax movl %eax, -12(%rbp) movslq -8(%rbp), %rcx leaq _mods(%rip), %rax movq (%rax,%rcx,8), %rax movq %rax, -24(%rbp) cmpl $0, -12(%rbp) jne LBB17_5 ## %bb.1: cmpl $524288, -16(%rbp) ## imm = 0x80000 jge LBB17_3 ## %bb.2: movl -16(%rbp), %eax movl %eax, -28(%rbp) ## 4-byte Spill jmp LBB17_4 LBB17_3: movl -16(%rbp), %eax andl $524287, %eax ## imm = 0x7FFFF subl $524288, %eax ## imm = 0x80000 movl %eax, -28(%rbp) ## 4-byte Spill LBB17_4: movl -28(%rbp), %ecx ## 4-byte Reload movq -24(%rbp), %rax movl %ecx, 8(%rax) movq -24(%rbp), %rax cvtsi2sdl 8(%rax), %xmm0 movsd LCPI17_0(%rip), %xmm1 ## xmm1 = mem[0],zero divsd %xmm1, %xmm0 movq -24(%rbp), %rax movsd %xmm0, 72(%rax) jmp LBB17_9 LBB17_5: cmpl $524288, -16(%rbp) ## imm = 0x80000 jge LBB17_7 ## %bb.6: movl -16(%rbp), %eax movl %eax, -32(%rbp) ## 4-byte Spill jmp LBB17_8 LBB17_7: movl -16(%rbp), %eax andl $524287, %eax ## imm = 0x7FFFF subl $524288, %eax ## imm = 0x80000 movl %eax, -32(%rbp) ## 4-byte Spill LBB17_8: movl -32(%rbp), %ecx ## 4-byte Reload movq -24(%rbp), %rax movl %ecx, 12(%rax) movq -24(%rbp), %rax cvtsi2sdl 12(%rax), %xmm0 movsd LCPI17_0(%rip), %xmm1 ## xmm1 = mem[0],zero divsd %xmm1, %xmm0 movq -24(%rbp), %rax movsd %xmm0, 80(%rax) LBB17_9: testb $1, _describe_commands(%rip) je LBB17_14 ## %bb.10: cmpl $0, -12(%rbp) jne LBB17_12 ## %bb.11: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movl -8(%rbp), %edx movl -16(%rbp), %ecx movq -24(%rbp), %rax movl 8(%rax), %r8d movq -24(%rbp), %rax movsd 72(%rax), %xmm0 ## xmm0 = mem[0],zero leaq L_.str.162(%rip), %rsi movb $1, %al callq _fprintf jmp LBB17_13 LBB17_12: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movl -8(%rbp), %edx movl -16(%rbp), %ecx movq -24(%rbp), %rax movl 12(%rax), %r8d movq -24(%rbp), %rax movsd 80(%rax), %xmm0 ## xmm0 = mem[0],zero leaq L_.str.163(%rip), %rsi movb $1, %al callq _fprintf LBB17_13: jmp LBB17_14 LBB17_14: addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function mmode_command _mmode_command: ## @mmode_command .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movl %edi, -4(%rbp) movl -4(%rbp), %eax sarl $0, %eax andl $127, %eax movl %eax, -8(%rbp) movl -4(%rbp), %eax sarl $12, %eax andl $127, %eax movl %eax, -12(%rbp) movl -4(%rbp), %eax sarl $19, %eax andl $511, %eax ## imm = 0x1FF movl %eax, -16(%rbp) movl -4(%rbp), %eax sarl $31, %eax andl $1, %eax movl %eax, -20(%rbp) movl -4(%rbp), %eax sarl $30, %eax andl $1, %eax movl %eax, -24(%rbp) movl -4(%rbp), %eax sarl $29, %eax andl $1, %eax movl %eax, -28(%rbp) movl -4(%rbp), %eax sarl $28, %eax andl $1, %eax movl %eax, -32(%rbp) movslq -8(%rbp), %rcx leaq _mods(%rip), %rax movq (%rax,%rcx,8), %rax movq %rax, -40(%rbp) cmpl $0, -24(%rbp) jne LBB18_2 ## %bb.1: movl -12(%rbp), %ecx movq -40(%rbp), %rax movl %ecx, 24(%rax) LBB18_2: cmpl $1, -28(%rbp) jne LBB18_4 ## %bb.3: movq -40(%rbp), %rax movl $0, 8(%rax) movq -40(%rbp), %rax xorps %xmm0, %xmm0 movsd %xmm0, 72(%rax) LBB18_4: cmpl $0, -32(%rbp) jne LBB18_9 ## %bb.5: movl -16(%rbp), %ecx andl $3, %ecx movl $1, %eax ## kill: def $cl killed $ecx shll %cl, %eax movl %eax, %ecx movq -40(%rbp), %rax movl %ecx, 40(%rax) movl -16(%rbp), %ecx sarl $2, %ecx andl $3, %ecx movl $1, %eax ## kill: def $cl killed $ecx shll %cl, %eax movl %eax, %ecx movq -40(%rbp), %rax movl %ecx, 44(%rax) movq -40(%rbp), %rax movl 48(%rax), %eax movl $4, %ecx cltd idivl %ecx movl %eax, %ecx movq -40(%rbp), %rax imull 44(%rax), %ecx movq -40(%rbp), %rax movl %ecx, (%rax) movq -40(%rbp), %rax movl 52(%rax), %eax movl $4, %ecx cltd idivl %ecx movl %eax, %ecx movq -40(%rbp), %rax imull 40(%rax), %ecx movq -40(%rbp), %rax movl %ecx, 4(%rax) movq -40(%rbp), %rax movsd 88(%rax), %xmm0 ## xmm0 = mem[0],zero movq -40(%rbp), %rax cvtsi2sdl 44(%rax), %xmm1 mulsd %xmm1, %xmm0 movq -40(%rbp), %rax movsd %xmm0, 56(%rax) movq -40(%rbp), %rax movsd 96(%rax), %xmm0 ## xmm0 = mem[0],zero movq -40(%rbp), %rax cvtsi2sdl 40(%rax), %xmm1 mulsd %xmm1, %xmm0 movq -40(%rbp), %rax movsd %xmm0, 64(%rax) cmpl $0, -20(%rbp) jne LBB18_7 ## %bb.6: movl -16(%rbp), %ecx movq -40(%rbp), %rax movl %ecx, 28(%rax) jmp LBB18_8 LBB18_7: movl -16(%rbp), %ecx andl $15, %ecx movq -40(%rbp), %rax movl 28(%rax), %eax andl $496, %eax ## imm = 0x1F0 addl %eax, %ecx movq -40(%rbp), %rax movl %ecx, 28(%rax) LBB18_8: jmp LBB18_12 LBB18_9: cmpl $0, -20(%rbp) jne LBB18_11 ## %bb.10: movl -16(%rbp), %ecx andl $496, %ecx ## imm = 0x1F0 movq -40(%rbp), %rax movl 28(%rax), %eax andl $15, %eax addl %eax, %ecx movq -40(%rbp), %rax movl %ecx, 28(%rax) LBB18_11: jmp LBB18_12 LBB18_12: testb $1, _describe_commands(%rip) je LBB18_31 ## %bb.13: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movl -8(%rbp), %edx leaq L_.str.164(%rip), %rsi movb $0, %al callq _fprintf cmpl $0, -20(%rbp) jne LBB18_15 ## %bb.14: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -48(%rbp) ## 8-byte Spill movl -16(%rbp), %edi sarl $4, %edi callq _mode_name movq -48(%rbp), %rdi ## 8-byte Reload movq %rax, %rdx leaq L_.str.165(%rip), %rsi movb $0, %al callq _fprintf LBB18_15: cmpl $0, -32(%rbp) jne LBB18_19 ## %bb.16: cmpl $0, -20(%rbp) jne LBB18_18 ## %bb.17: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.145(%rip), %rsi movb $0, %al callq _fprintf LBB18_18: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movl -16(%rbp), %edx sarl $2, %edx andl $3, %edx movl -16(%rbp), %ecx andl $3, %ecx movq -40(%rbp), %rax movl (%rax), %r8d movq -40(%rbp), %rax movsd 56(%rax), %xmm0 ## xmm0 = mem[0],zero movq -40(%rbp), %rax movl 4(%rax), %r9d movq -40(%rbp), %rax movsd 64(%rax), %xmm1 ## xmm1 = mem[0],zero leaq L_.str.166(%rip), %rsi movb $2, %al callq _fprintf LBB18_19: cmpl $0, -24(%rbp) jne LBB18_24 ## %bb.20: cmpl $0, -32(%rbp) je LBB18_22 ## %bb.21: cmpl $0, -20(%rbp) jne LBB18_23 LBB18_22: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.145(%rip), %rsi movb $0, %al callq _fprintf LBB18_23: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movl -12(%rbp), %ecx sarl $6, %ecx leaq L_.str.169(%rip), %rdx leaq L_.str.168(%rip), %rax cmpl $0, %ecx cmoveq %rax, %rdx movl -12(%rbp), %ecx andl $63, %ecx leaq L_.str.167(%rip), %rsi movb $0, %al callq _fprintf LBB18_24: cmpl $1, -28(%rbp) jne LBB18_30 ## %bb.25: cmpl $0, -24(%rbp) je LBB18_28 ## %bb.26: cmpl $0, -32(%rbp) je LBB18_28 ## %bb.27: cmpl $0, -20(%rbp) jne LBB18_29 LBB18_28: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.145(%rip), %rsi movb $0, %al callq _fprintf LBB18_29: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.170(%rip), %rsi movb $0, %al callq _fprintf LBB18_30: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.17(%rip), %rsi movb $0, %al callq _fprintf LBB18_31: movl -16(%rbp), %eax sarl $4, %eax cmpl $0, %eax je LBB18_34 ## %bb.32: movl -8(%rbp), %eax shll $1, %eax cmpl _processing_ticks(%rip), %eax jl LBB18_34 ## %bb.33: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movl _samples(%rip), %edx cvtsi2sdl _samples(%rip), %xmm0 cvtsi2sdl _srate(%rip), %xmm1 divsd %xmm1, %xmm0 movl _current_command(%rip), %ecx movl -8(%rbp), %r8d movl _processing_ticks(%rip), %r9d leaq L_.str.171(%rip), %rsi movb $1, %al callq _fprintf LBB18_34: addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function mrm_command _mrm_command: ## @mrm_command .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movl %edi, -4(%rbp) movl -4(%rbp), %eax sarl $0, %eax andl $127, %eax movl %eax, -8(%rbp) movl -4(%rbp), %eax sarl $12, %eax andl $255, %eax movl %eax, -16(%rbp) movl -4(%rbp), %eax sarl $20, %eax andl $255, %eax movl %eax, -12(%rbp) movl -4(%rbp), %eax sarl $31, %eax andl $1, %eax movl %eax, -20(%rbp) movl -4(%rbp), %eax sarl $30, %eax andl $1, %eax movl %eax, -24(%rbp) movl -4(%rbp), %eax sarl $28, %eax andl $3, %eax movl %eax, -28(%rbp) movslq -8(%rbp), %rcx leaq _mods(%rip), %rax movq (%rax,%rcx,8), %rax movq %rax, -40(%rbp) cmpl $0, -20(%rbp) jne LBB19_2 ## %bb.1: movl -12(%rbp), %ecx movq -40(%rbp), %rax movl %ecx, 20(%rax) LBB19_2: cmpl $0, -24(%rbp) jne LBB19_4 ## %bb.3: movl -16(%rbp), %ecx movq -40(%rbp), %rax movl %ecx, 16(%rax) LBB19_4: movl -28(%rbp), %eax movl %eax, -44(%rbp) ## 4-byte Spill testl %eax, %eax je LBB19_5 jmp LBB19_24 LBB19_24: movl -44(%rbp), %eax ## 4-byte Reload subl $1, %eax je LBB19_6 jmp LBB19_25 LBB19_25: movl -44(%rbp), %eax ## 4-byte Reload subl $2, %eax je LBB19_7 jmp LBB19_8 LBB19_5: movq -40(%rbp), %rax movl $0, 36(%rax) jmp LBB19_8 LBB19_6: movq -40(%rbp), %rax movl $1, 36(%rax) jmp LBB19_8 LBB19_7: movq -40(%rbp), %rax movl $0, 12(%rax) movq -40(%rbp), %rax xorps %xmm0, %xmm0 movsd %xmm0, 80(%rax) LBB19_8: testb $1, _describe_commands(%rip) je LBB19_23 ## %bb.9: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movl -8(%rbp), %edx leaq L_.str.172(%rip), %rsi movb $0, %al callq _fprintf cmpl $0, -20(%rbp) jne LBB19_14 ## %bb.10: movq -40(%rbp), %rax movl 28(%rax), %eax sarl $4, %eax andl $31, %eax cmpl $7, %eax jne LBB19_12 ## %bb.11: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movl -12(%rbp), %edx andl $31, %edx leaq L_.str.173(%rip), %rsi movb $0, %al callq _fprintf jmp LBB19_13 LBB19_12: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.174(%rip), %rsi movb $0, %al callq _fprintf movl -12(%rbp), %edi callq _print_mod_read_name LBB19_13: jmp LBB19_14 LBB19_14: cmpl $0, -24(%rbp) jne LBB19_16 ## %bb.15: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.175(%rip), %rsi movb $0, %al callq _fprintf movl -16(%rbp), %edi callq _print_mod_read_name LBB19_16: cmpl $0, -28(%rbp) jne LBB19_18 ## %bb.17: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.176(%rip), %rsi movb $0, %al callq _fprintf LBB19_18: cmpl $1, -28(%rbp) jne LBB19_20 ## %bb.19: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.177(%rip), %rsi movb $0, %al callq _fprintf LBB19_20: cmpl $2, -28(%rbp) jne LBB19_22 ## %bb.21: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.178(%rip), %rsi movb $0, %al callq _fprintf LBB19_22: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.17(%rip), %rsi movb $0, %al callq _fprintf LBB19_23: addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function P_name _P_name: ## @P_name .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, -12(%rbp) movl -12(%rbp), %eax ## kill: def $rax killed $eax movq %rax, -24(%rbp) ## 8-byte Spill subq $12, %rax ja LBB20_6 ## %bb.8: movq -24(%rbp), %rax ## 8-byte Reload leaq LJTI20_0(%rip), %rcx movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax LBB20_1: leaq L_.str.18(%rip), %rax movq %rax, -8(%rbp) jmp LBB20_7 LBB20_2: leaq L_.str.19(%rip), %rax movq %rax, -8(%rbp) jmp LBB20_7 LBB20_3: leaq L_.str.20(%rip), %rax movq %rax, -8(%rbp) jmp LBB20_7 LBB20_4: leaq L_.str.21(%rip), %rax movq %rax, -8(%rbp) jmp LBB20_7 LBB20_5: leaq L_.str.22(%rip), %rax movq %rax, -8(%rbp) jmp LBB20_7 LBB20_6: leaq L_.str.23(%rip), %rax movq %rax, -8(%rbp) LBB20_7: movq -8(%rbp), %rax popq %rbp retq .cfi_endproc .p2align 2, 0x90 .data_region jt32 .set L20_0_set_1, LBB20_1-LJTI20_0 .set L20_0_set_6, LBB20_6-LJTI20_0 .set L20_0_set_2, LBB20_2-LJTI20_0 .set L20_0_set_4, LBB20_4-LJTI20_0 .set L20_0_set_5, LBB20_5-LJTI20_0 .set L20_0_set_3, LBB20_3-LJTI20_0 LJTI20_0: .long L20_0_set_1 .long L20_0_set_6 .long L20_0_set_6 .long L20_0_set_6 .long L20_0_set_6 .long L20_0_set_6 .long L20_0_set_6 .long L20_0_set_6 .long L20_0_set_2 .long L20_0_set_6 .long L20_0_set_4 .long L20_0_set_5 .long L20_0_set_3 .end_data_region ## -- End function .p2align 4, 0x90 ## -- Begin function set_osc_run _set_osc_run: ## @set_osc_run .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl %edi, -4(%rbp) movl %esi, -8(%rbp) cmpl $256, -4(%rbp) ## imm = 0x100 jl LBB21_2 ## %bb.1: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.34(%rip), %rsi movb $0, %al callq _fprintf movl $0, -4(%rbp) LBB21_2: movslq -4(%rbp), %rcx leaq _gens(%rip), %rax movq (%rax,%rcx,8), %rax movq %rax, -16(%rbp) movq -16(%rbp), %rax movl 44(%rax), %ecx andl $63, %ecx movl -8(%rbp), %eax shll $6, %eax orl %eax, %ecx movq -16(%rbp), %rax movl %ecx, 44(%rax) movq -16(%rbp), %rax cmpl $3, 44(%rax) jne LBB21_4 ## %bb.3: movq -16(%rbp), %rax movl $2, 44(%rax) LBB21_4: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__literal16,16byte_literals .p2align 4 ## -- Begin function linger LCPI22_0: .quad 0x7fffffffffffffff ## double NaN .quad 0x7fffffffffffffff ## double NaN .section __TEXT,__text,regular,pure_instructions .p2align 4, 0x90 _linger: ## @linger .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) cmpq $0, _snd_file(%rip) jne LBB22_2 ## %bb.1: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.47(%rip), %rsi xorl %eax, %eax movl %eax, -28(%rbp) ## 4-byte Spill callq _fprintf movl -28(%rbp), %edi ## 4-byte Reload callq _exit LBB22_2: movl -4(%rbp), %eax cmpl _pass(%rip), %eax jge LBB22_4 ## %bb.3: movl _pass(%rip), %eax subl $1048576, %eax ## imm = 0x100000 movl %eax, _pass(%rip) LBB22_4: jmp LBB22_5 LBB22_5: ## =>This Loop Header: Depth=1 ## Child Loop BB22_7 Depth 2 ## Child Loop BB22_21 Depth 2 ## Child Loop BB22_29 Depth 2 movl _pass(%rip), %eax cmpl -4(%rbp), %eax jge LBB22_37 ## %bb.6: ## in Loop: Header=BB22_5 Depth=1 movl $0, -16(%rbp) movl $0, -20(%rbp) movl $0, -24(%rbp) movl $0, -12(%rbp) LBB22_7: ## Parent Loop BB22_5 Depth=1 ## => This Inner Loop Header: Depth=2 movl -12(%rbp), %eax cmpl _processing_ticks(%rip), %eax jge LBB22_18 ## %bb.8: ## in Loop: Header=BB22_7 Depth=2 cmpl $256, -16(%rbp) ## imm = 0x100 jge LBB22_10 ## %bb.9: ## in Loop: Header=BB22_7 Depth=2 movl -16(%rbp), %edi movl %edi, %eax addl $1, %eax movl %eax, -16(%rbp) callq _process_gen LBB22_10: ## in Loop: Header=BB22_7 Depth=2 movl -12(%rbp), %eax andl $1, %eax cmpl $0, %eax jne LBB22_13 ## %bb.11: ## in Loop: Header=BB22_7 Depth=2 cmpl $128, -20(%rbp) jge LBB22_13 ## %bb.12: ## in Loop: Header=BB22_7 Depth=2 movl -20(%rbp), %edi movl %edi, %eax addl $1, %eax movl %eax, -20(%rbp) callq _process_mod LBB22_13: ## in Loop: Header=BB22_7 Depth=2 movl -12(%rbp), %eax andl $3, %eax cmpl $0, %eax jne LBB22_16 ## %bb.14: ## in Loop: Header=BB22_7 Depth=2 cmpl $32, -24(%rbp) jge LBB22_16 ## %bb.15: ## in Loop: Header=BB22_7 Depth=2 movl -24(%rbp), %edi movl %edi, %eax addl $1, %eax movl %eax, -24(%rbp) callq _process_dly LBB22_16: ## in Loop: Header=BB22_7 Depth=2 jmp LBB22_17 LBB22_17: ## in Loop: Header=BB22_7 Depth=2 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB22_7 LBB22_18: ## in Loop: Header=BB22_5 Depth=1 movl _dump_patch_at(%rip), %eax cmpl _samples(%rip), %eax jne LBB22_20 ## %bb.19: ## in Loop: Header=BB22_5 Depth=1 callq _dump_patch LBB22_20: ## in Loop: Header=BB22_5 Depth=1 movl $0, -8(%rbp) LBB22_21: ## Parent Loop BB22_5 Depth=1 ## => This Inner Loop Header: Depth=2 cmpl $64, -8(%rbp) jge LBB22_28 ## %bb.22: ## in Loop: Header=BB22_21 Depth=2 movslq -8(%rbp), %rcx leaq _gen_ins(%rip), %rax movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero movaps LCPI22_0(%rip), %xmm1 ## xmm1 = [NaN,NaN] pand %xmm1, %xmm0 movslq -8(%rbp), %rcx leaq _peak_gen_ins(%rip), %rax ucomisd (%rax,%rcx,8), %xmm0 jbe LBB22_24 ## %bb.23: ## in Loop: Header=BB22_21 Depth=2 movslq -8(%rbp), %rcx leaq _gen_ins(%rip), %rax movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero movaps LCPI22_0(%rip), %xmm1 ## xmm1 = [NaN,NaN] pand %xmm1, %xmm0 movslq -8(%rbp), %rcx leaq _peak_gen_ins(%rip), %rax movsd %xmm0, (%rax,%rcx,8) LBB22_24: ## in Loop: Header=BB22_21 Depth=2 movslq -8(%rbp), %rcx leaq _gen_ins(%rip), %rax movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero movslq -8(%rbp), %rcx leaq _prev_gen_ins(%rip), %rax movsd %xmm0, (%rax,%rcx,8) movslq -8(%rbp), %rcx leaq _gen_outs(%rip), %rax movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero movslq -8(%rbp), %rcx leaq _gen_ins(%rip), %rax movsd %xmm0, (%rax,%rcx,8) movslq -8(%rbp), %rcx leaq _gen_outs(%rip), %rax xorps %xmm0, %xmm0 movsd %xmm0, (%rax,%rcx,8) movslq -8(%rbp), %rcx leaq _mod_ins(%rip), %rax movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero movaps LCPI22_0(%rip), %xmm1 ## xmm1 = [NaN,NaN] pand %xmm1, %xmm0 movslq -8(%rbp), %rcx leaq _peak_mod_ins(%rip), %rax ucomisd (%rax,%rcx,8), %xmm0 jbe LBB22_26 ## %bb.25: ## in Loop: Header=BB22_21 Depth=2 movslq -8(%rbp), %rcx leaq _mod_ins(%rip), %rax movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero movaps LCPI22_0(%rip), %xmm1 ## xmm1 = [NaN,NaN] pand %xmm1, %xmm0 movslq -8(%rbp), %rcx leaq _peak_mod_ins(%rip), %rax movsd %xmm0, (%rax,%rcx,8) LBB22_26: ## in Loop: Header=BB22_21 Depth=2 movslq -8(%rbp), %rcx leaq _mod_ins(%rip), %rax movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero movslq -8(%rbp), %rcx leaq _prev_mod_ins(%rip), %rax movsd %xmm0, (%rax,%rcx,8) movslq -8(%rbp), %rcx leaq _mod_outs(%rip), %rax movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero movslq -8(%rbp), %rcx leaq _mod_ins(%rip), %rax movsd %xmm0, (%rax,%rcx,8) movslq -8(%rbp), %rcx leaq _mod_outs(%rip), %rax xorps %xmm0, %xmm0 movsd %xmm0, (%rax,%rcx,8) ## %bb.27: ## in Loop: Header=BB22_21 Depth=2 movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) jmp LBB22_21 LBB22_28: ## in Loop: Header=BB22_5 Depth=1 movq _snd_file(%rip), %rcx leaq _dac_out(%rip), %rdi movl $4, %edx movq %rdx, %rsi callq _fwrite movl _samples(%rip), %eax addl $1, %eax movl %eax, _samples(%rip) movl $0, -8(%rbp) LBB22_29: ## Parent Loop BB22_5 Depth=1 ## => This Inner Loop Header: Depth=2 cmpl $4, -8(%rbp) jge LBB22_34 ## %bb.30: ## in Loop: Header=BB22_29 Depth=2 movslq -8(%rbp), %rcx leaq _dac_out(%rip), %rax movss (%rax,%rcx,4), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movaps LCPI22_0(%rip), %xmm1 ## xmm1 = [NaN,NaN] pand %xmm1, %xmm0 movslq -8(%rbp), %rcx leaq _dac_out_peak(%rip), %rax movss (%rax,%rcx,4), %xmm1 ## xmm1 = mem[0],zero,zero,zero cvtss2sd %xmm1, %xmm1 ucomisd %xmm1, %xmm0 jbe LBB22_32 ## %bb.31: ## in Loop: Header=BB22_29 Depth=2 movslq -8(%rbp), %rcx leaq _dac_out(%rip), %rax movss (%rax,%rcx,4), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movaps LCPI22_0(%rip), %xmm1 ## xmm1 = [NaN,NaN] pand %xmm1, %xmm0 cvtsd2ss %xmm0, %xmm0 movslq -8(%rbp), %rcx leaq _dac_out_peak(%rip), %rax movss %xmm0, (%rax,%rcx,4) LBB22_32: ## in Loop: Header=BB22_29 Depth=2 movslq -8(%rbp), %rcx leaq _dac_out(%rip), %rax xorps %xmm0, %xmm0 movss %xmm0, (%rax,%rcx,4) ## %bb.33: ## in Loop: Header=BB22_29 Depth=2 movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) jmp LBB22_29 LBB22_34: ## in Loop: Header=BB22_5 Depth=1 movl _pass(%rip), %eax addl $1, %eax movl %eax, _pass(%rip) cmpl $-1, _samples(%rip) jne LBB22_36 ## %bb.35: ## in Loop: Header=BB22_5 Depth=1 callq _all_done LBB22_36: ## in Loop: Header=BB22_5 Depth=1 jmp LBB22_5 LBB22_37: addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ## -- Begin function process_gen LCPI23_0: .quad 0x4070000000000000 ## double 256 LCPI23_1: .quad 0x400921fb54442d18 ## double 3.1415926535897931 LCPI23_2: .quad 0x3ff0000000000000 ## double 1 LCPI23_3: .quad 0x4000000000000000 ## double 2 LCPI23_4: .quad 0xc000000000000000 ## double -2 LCPI23_5: .quad 0x3fe0000000000000 ## double 0.5 LCPI23_6: .quad 0xbfe0000000000000 ## double -0.5 LCPI23_7: .quad 0x4040000000000000 ## double 32 LCPI23_8: .quad 0xc030000000000000 ## double -16 .section __TEXT,__text,regular,pure_instructions .p2align 4, 0x90 _process_gen: ## @process_gen .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 %edi, -4(%rbp) movslq -4(%rbp), %rcx leaq _gens(%rip), %rax movq (%rax,%rcx,8), %rax movq %rax, -16(%rbp) movq -16(%rbp), %rax movl 44(%rax), %eax sarl $6, %eax andl $15, %eax cmpl $0, %eax jne LBB23_2 ## %bb.1: jmp LBB23_72 LBB23_2: movq -16(%rbp), %rax movl 44(%rax), %eax sarl $6, %eax andl $15, %eax cmpl $3, %eax jne LBB23_4 ## %bb.3: jmp LBB23_72 LBB23_4: movq -16(%rbp), %rax movl 36(%rax), %eax sarl $6, %eax cmpl $0, %eax jne LBB23_6 ## %bb.5: movq -16(%rbp), %rax movl 36(%rax), %eax andl $63, %eax movslq %eax, %rcx leaq _gen_ins(%rip), %rax movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -24(%rbp) jmp LBB23_7 LBB23_6: movq -16(%rbp), %rax movl 36(%rax), %eax andl $63, %eax movslq %eax, %rcx leaq _mod_ins(%rip), %rax movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -24(%rbp) LBB23_7: movsd -24(%rbp), %xmm0 ## xmm0 = mem[0],zero movq -16(%rbp), %rax addsd 56(%rax), %xmm0 movsd %xmm0, -32(%rbp) movq -16(%rbp), %rax movl 44(%rax), %edi callq _osc_is_running testb $1, %al jne LBB23_8 jmp LBB23_9 LBB23_8: movq -16(%rbp), %rax movsd 48(%rax), %xmm0 ## xmm0 = mem[0],zero movsd LCPI23_0(%rip), %xmm1 ## xmm1 = mem[0],zero divsd %xmm1, %xmm0 movq -16(%rbp), %rax addsd 56(%rax), %xmm0 movsd %xmm0, 56(%rax) LBB23_9: movq -16(%rbp), %rax movl 44(%rax), %eax andl $15, %eax cmpl $8, %eax jne LBB23_11 ## %bb.10: movsd -32(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -40(%rbp) jmp LBB23_12 LBB23_11: movq -16(%rbp), %rax movsd 64(%rax), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -40(%rbp) LBB23_12: movq -16(%rbp), %rax movl 44(%rax), %edi callq _osc_is_running testb $1, %al jne LBB23_13 jmp LBB23_14 LBB23_13: movsd -32(%rbp), %xmm0 ## xmm0 = mem[0],zero movq -16(%rbp), %rax addsd 64(%rax), %xmm0 movsd %xmm0, 64(%rax) LBB23_14: movq -16(%rbp), %rax movl 44(%rax), %eax sarl $6, %eax andl $15, %eax cmpl $2, %eax jne LBB23_16 ## %bb.15: movsd -24(%rbp), %xmm0 ## xmm0 = mem[0],zero movq -16(%rbp), %rax movl (%rax), %edi andl $15, %edi callq _dac_write jmp LBB23_72 LBB23_16: movq -16(%rbp), %rax movl 44(%rax), %eax andl $15, %eax cmpl $0, %eax je LBB23_22 ## %bb.17: movq -16(%rbp), %rax movl 44(%rax), %eax andl $15, %eax cmpl $8, %eax je LBB23_22 ## %bb.18: movsd -40(%rbp), %xmm0 ## xmm0 = mem[0],zero movq -16(%rbp), %rax cvtsi2sdl 12(%rax), %xmm1 mulsd %xmm1, %xmm0 movsd %xmm0, -48(%rbp) movsd -40(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -56(%rbp) movsd -56(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd LCPI23_2(%rip), %xmm1 ## xmm1 = mem[0],zero callq _fmod xorps %xmm1, %xmm1 ucomisd %xmm1, %xmm0 jne LBB23_19 jp LBB23_19 jmp LBB23_20 LBB23_19: movsd LCPI23_1(%rip), %xmm0 ## xmm0 = mem[0],zero mulsd -48(%rbp), %xmm0 callq _sin movsd %xmm0, -128(%rbp) ## 8-byte Spill movsd LCPI23_1(%rip), %xmm0 ## xmm0 = mem[0],zero mulsd -56(%rbp), %xmm0 callq _sin movaps %xmm0, %xmm1 movsd -128(%rbp), %xmm0 ## 8-byte Reload ## xmm0 = mem[0],zero divsd %xmm1, %xmm0 movsd %xmm0, -104(%rbp) jmp LBB23_21 LBB23_20: movq -16(%rbp), %rax cvtsi2sdl 12(%rax), %xmm0 movsd %xmm0, -104(%rbp) LBB23_21: jmp LBB23_23 LBB23_22: movsd -40(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -48(%rbp) movsd LCPI23_1(%rip), %xmm0 ## xmm0 = mem[0],zero mulsd -48(%rbp), %xmm0 callq _sin movsd %xmm0, -104(%rbp) LBB23_23: movsd -104(%rbp), %xmm0 ## xmm0 = mem[0],zero movq -16(%rbp), %rax movb 16(%rax), %cl movl $1, %eax shll %cl, %eax cvtsi2sd %eax, %xmm1 divsd %xmm1, %xmm0 movsd %xmm0, -64(%rbp) movq -16(%rbp), %rax movl 44(%rax), %eax ## kill: def $rax killed $eax ## kill: def $eax killed $eax killed $rax andl $15, %eax ## kill: def $rax killed $eax movq %rax, -136(%rbp) ## 8-byte Spill subl $8, %eax ja LBB23_35 ## %bb.73: movq -136(%rbp), %rax ## 8-byte Reload leaq LJTI23_0(%rip), %rcx movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax LBB23_24: movsd -64(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -72(%rbp) jmp LBB23_35 LBB23_25: movsd -40(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd LCPI23_3(%rip), %xmm1 ## xmm1 = mem[0],zero callq _fmod movsd LCPI23_2(%rip), %xmm1 ## xmm1 = mem[0],zero subsd %xmm1, %xmm0 movsd %xmm0, -72(%rbp) jmp LBB23_35 LBB23_26: movsd -40(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd LCPI23_3(%rip), %xmm1 ## xmm1 = mem[0],zero callq _fmod movaps %xmm0, %xmm1 movsd LCPI23_2(%rip), %xmm0 ## xmm0 = mem[0],zero ucomisd %xmm1, %xmm0 jbe LBB23_28 ## %bb.27: movsd LCPI23_6(%rip), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -72(%rbp) jmp LBB23_29 LBB23_28: movsd LCPI23_5(%rip), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -72(%rbp) LBB23_29: jmp LBB23_35 LBB23_30: movq -16(%rbp), %rax movsd 64(%rax), %xmm0 ## xmm0 = mem[0],zero movsd LCPI23_3(%rip), %xmm1 ## xmm1 = mem[0],zero ucomisd %xmm1, %xmm0 jae LBB23_32 ## %bb.31: movq -16(%rbp), %rax movsd LCPI23_4(%rip), %xmm0 ## xmm0 = mem[0],zero ucomisd 64(%rax), %xmm0 jbe LBB23_33 LBB23_32: movq -16(%rbp), %rax movsd 64(%rax), %xmm0 ## xmm0 = mem[0],zero movsd LCPI23_3(%rip), %xmm1 ## xmm1 = mem[0],zero callq _fmod movq -16(%rbp), %rax movsd %xmm0, 64(%rax) movsd LCPI23_5(%rip), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -72(%rbp) jmp LBB23_34 LBB23_33: xorps %xmm0, %xmm0 movsd %xmm0, -72(%rbp) LBB23_34: jmp LBB23_35 LBB23_35: movq -16(%rbp), %rax movsd 88(%rax), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -80(%rbp) movq -16(%rbp), %rax movl 44(%rax), %edi callq _env_is_running testb $1, %al jne LBB23_36 jmp LBB23_51 LBB23_36: movq -16(%rbp), %rax movsd 88(%rax), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -112(%rbp) movq -16(%rbp), %rax movsd 80(%rax), %xmm0 ## xmm0 = mem[0],zero movsd LCPI23_7(%rip), %xmm1 ## xmm1 = mem[0],zero divsd %xmm1, %xmm0 movq -16(%rbp), %rax addsd 88(%rax), %xmm0 movsd %xmm0, 88(%rax) movq -16(%rbp), %rax movsd 88(%rax), %xmm0 ## xmm0 = mem[0],zero movsd LCPI23_2(%rip), %xmm1 ## xmm1 = mem[0],zero ucomisd %xmm1, %xmm0 ja LBB23_38 ## %bb.37: movq -16(%rbp), %rax xorps %xmm0, %xmm0 ucomisd 88(%rax), %xmm0 jbe LBB23_50 LBB23_38: movq -16(%rbp), %rax movl 44(%rax), %eax sarl $6, %eax andl $15, %eax cmpl $15, %eax jne LBB23_40 ## %bb.39: movsd -112(%rbp), %xmm0 ## xmm0 = mem[0],zero movq -16(%rbp), %rax movsd %xmm0, 88(%rax) jmp LBB23_49 LBB23_40: movq -16(%rbp), %rax movl 44(%rax), %eax sarl $6, %eax andl $15, %eax cmpl $13, %eax jne LBB23_44 ## %bb.41: movl -4(%rbp), %edi movl $9, %esi callq _set_osc_run movl -4(%rbp), %eax addl $1, %eax movslq %eax, %rcx leaq _gens(%rip), %rax movq (%rax,%rcx,8), %rax movl 44(%rax), %eax sarl $6, %eax andl $15, %eax cmpl $9, %eax jne LBB23_43 ## %bb.42: movl -4(%rbp), %edi addl $1, %edi movl $13, %esi callq _set_osc_run LBB23_43: jmp LBB23_48 LBB23_44: movq -16(%rbp), %rax movl 44(%rax), %eax sarl $6, %eax andl $15, %eax cmpl $14, %eax jne LBB23_47 ## %bb.45: movl -4(%rbp), %eax addl $1, %eax movslq %eax, %rcx leaq _gens(%rip), %rax movq (%rax,%rcx,8), %rax movl 44(%rax), %eax sarl $6, %eax andl $15, %eax cmpl $9, %eax jne LBB23_47 ## %bb.46: movl -4(%rbp), %edi addl $1, %edi movl $13, %esi callq _set_osc_run LBB23_47: jmp LBB23_48 LBB23_48: jmp LBB23_49 LBB23_49: jmp LBB23_50 LBB23_50: jmp LBB23_51 LBB23_51: movq -16(%rbp), %rax movl 44(%rax), %eax sarl $4, %eax andl $3, %eax cmpl $3, %eax je LBB23_53 ## %bb.52: movq -16(%rbp), %rax movl 44(%rax), %eax sarl $4, %eax andl $3, %eax cmpl $2, %eax jne LBB23_54 LBB23_53: movsd LCPI23_8(%rip), %xmm1 ## xmm1 = mem[0],zero mulsd -80(%rbp), %xmm1 movsd LCPI23_3(%rip), %xmm0 ## xmm0 = mem[0],zero callq _pow movsd %xmm0, -88(%rbp) jmp LBB23_55 LBB23_54: movsd -80(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -88(%rbp) LBB23_55: movq -16(%rbp), %rax movl 44(%rax), %eax sarl $4, %eax andl $3, %eax cmpl $1, %eax je LBB23_57 ## %bb.56: movq -16(%rbp), %rax movl 44(%rax), %eax sarl $4, %eax andl $3, %eax cmpl $3, %eax jne LBB23_58 LBB23_57: movq -16(%rbp), %rax movsd 96(%rax), %xmm0 ## xmm0 = mem[0],zero addsd -88(%rbp), %xmm0 movsd %xmm0, -96(%rbp) jmp LBB23_59 LBB23_58: movq -16(%rbp), %rax movsd 96(%rax), %xmm0 ## xmm0 = mem[0],zero subsd -88(%rbp), %xmm0 movsd %xmm0, -96(%rbp) LBB23_59: movsd -96(%rbp), %xmm0 ## xmm0 = mem[0],zero mulsd -72(%rbp), %xmm0 movsd %xmm0, -72(%rbp) movq -16(%rbp), %rax movl 44(%rax), %edi callq _adding_to_sum testb $1, %al jne LBB23_60 jmp LBB23_72 LBB23_60: movq -16(%rbp), %rax movl 44(%rax), %eax sarl $6, %eax andl $15, %eax cmpl $7, %eax je LBB23_65 ## %bb.61: movq -16(%rbp), %rax cmpl $0, 40(%rax) jne LBB23_63 ## %bb.62: movsd -72(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd LCPI23_3(%rip), %xmm1 ## xmm1 = mem[0],zero divsd %xmm1, %xmm0 movq -16(%rbp), %rax movslq 32(%rax), %rcx leaq _gen_outs(%rip), %rax addsd (%rax,%rcx,8), %xmm0 leaq _gen_outs(%rip), %rax movsd %xmm0, (%rax,%rcx,8) jmp LBB23_64 LBB23_63: movsd -72(%rbp), %xmm0 ## xmm0 = mem[0],zero movq -16(%rbp), %rax movslq 32(%rax), %rcx leaq _gen_outs(%rip), %rax addsd (%rax,%rcx,8), %xmm0 leaq _gen_outs(%rip), %rax movsd %xmm0, (%rax,%rcx,8) LBB23_64: jmp LBB23_71 LBB23_65: cmpq $0, _read_data_file(%rip) je LBB23_67 ## %bb.66: leaq -116(%rbp), %rdi movq _read_data_file(%rip), %rcx movl $4, %esi movl $1, %edx callq _fread movsd -72(%rbp), %xmm0 ## xmm0 = mem[0],zero movss -116(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero cvtss2sd %xmm1, %xmm1 addsd %xmm1, %xmm0 movq -16(%rbp), %rax movslq 32(%rax), %rcx leaq _gen_outs(%rip), %rax movsd %xmm0, (%rax,%rcx,8) jmp LBB23_70 LBB23_67: testb $1, _read_data_warned(%rip) jne LBB23_69 ## %bb.68: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.48(%rip), %rsi movb $0, %al callq _fprintf movb $1, _read_data_warned(%rip) LBB23_69: jmp LBB23_70 LBB23_70: jmp LBB23_71 LBB23_71: jmp LBB23_72 LBB23_72: addq $144, %rsp popq %rbp retq .cfi_endproc .p2align 2, 0x90 .data_region jt32 .set L23_0_set_24, LBB23_24-LJTI23_0 .set L23_0_set_25, LBB23_25-LJTI23_0 .set L23_0_set_26, LBB23_26-LJTI23_0 .set L23_0_set_30, LBB23_30-LJTI23_0 .set L23_0_set_35, LBB23_35-LJTI23_0 LJTI23_0: .long L23_0_set_24 .long L23_0_set_25 .long L23_0_set_26 .long L23_0_set_30 .long L23_0_set_24 .long L23_0_set_35 .long L23_0_set_35 .long L23_0_set_35 .long L23_0_set_24 .end_data_region ## -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ## -- Begin function process_mod LCPI24_0: .quad 0xbec0000000000000 ## double -1.9073486328125E-6 LCPI24_1: .quad 0x3ec0000000000000 ## double 1.9073486328125E-6 LCPI24_2: .quad 0x3fe0000000000000 ## double 0.5 LCPI24_3: .quad 0x3ff0000000000000 ## double 1 LCPI24_4: .quad 0x4090000000000000 ## double 1024 LCPI24_5: .quad 0x4120000000000000 ## double 524288 .section __TEXT,__text,regular,pure_instructions .p2align 4, 0x90 _process_mod: ## @process_mod .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 %edi, -4(%rbp) movslq -4(%rbp), %rcx leaq _mods(%rip), %rax movq (%rax,%rcx,8), %rax movq %rax, -16(%rbp) movq -16(%rbp), %rax movl 28(%rax), %eax sarl $4, %eax andl $31, %eax movl %eax, -20(%rbp) cmpl $0, -20(%rbp) jne LBB24_2 ## %bb.1: jmp LBB24_60 LBB24_2: movq -16(%rbp), %rax movl 16(%rax), %edi callq _mod_read movsd %xmm0, -40(%rbp) movq -16(%rbp), %rax movl 20(%rax), %edi callq _mod_read movsd %xmm0, -48(%rbp) movl -20(%rbp), %eax ## kill: def $rax killed $eax movq %rax, -72(%rbp) ## 8-byte Spill subq $29, %rax ja LBB24_59 ## %bb.61: movq -72(%rbp), %rax ## 8-byte Reload leaq LJTI24_0(%rip), %rcx movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax LBB24_3: jmp LBB24_60 LBB24_4: movq -16(%rbp), %rax movl 8(%rax), %eax movq -16(%rbp), %rcx movl 12(%rcx), %ecx movq -16(%rbp), %rdx imull (%rdx), %ecx sarl $10, %ecx addl %ecx, %eax andl $1048575, %eax ## imm = 0xFFFFF movl %eax, -24(%rbp) movq -16(%rbp), %rax movl 24(%rax), %eax movl %eax, -76(%rbp) ## 4-byte Spill cmpl $524288, -24(%rbp) ## imm = 0x80000 jge LBB24_6 ## %bb.5: movl -24(%rbp), %eax movl %eax, -80(%rbp) ## 4-byte Spill jmp LBB24_7 LBB24_6: movl -24(%rbp), %eax andl $524287, %eax ## imm = 0x7FFFF subl $524288, %eax ## imm = 0x80000 movl %eax, -80(%rbp) ## 4-byte Spill LBB24_7: movl -76(%rbp), %edi ## 4-byte Reload movl -80(%rbp), %eax ## 4-byte Reload cvtsi2sd %eax, %xmm0 movsd LCPI24_5(%rip), %xmm1 ## xmm1 = mem[0],zero divsd %xmm1, %xmm0 callq _mod_write movl -24(%rbp), %ecx movq -16(%rbp), %rax movl %ecx, 12(%rax) jmp LBB24_60 LBB24_8: movq -16(%rbp), %rax movl 8(%rax), %eax movq -16(%rbp), %rcx movl 12(%rcx), %ecx movq -16(%rbp), %rdx imull (%rdx), %ecx sarl $10, %ecx addl %ecx, %eax andl $1048575, %eax ## imm = 0xFFFFF movl %eax, -24(%rbp) movq -16(%rbp), %rax movl 24(%rax), %eax movl %eax, -84(%rbp) ## 4-byte Spill cmpl $524288, -24(%rbp) ## imm = 0x80000 jge LBB24_10 ## %bb.9: movl -24(%rbp), %eax movl %eax, -88(%rbp) ## 4-byte Spill jmp LBB24_11 LBB24_10: movl -24(%rbp), %eax andl $524287, %eax ## imm = 0x7FFFF subl $524288, %eax ## imm = 0x80000 movl %eax, -88(%rbp) ## 4-byte Spill LBB24_11: movl -84(%rbp), %edi ## 4-byte Reload movl -88(%rbp), %eax ## 4-byte Reload cvtsi2sd %eax, %xmm0 movsd LCPI24_5(%rip), %xmm1 ## xmm1 = mem[0],zero divsd %xmm1, %xmm0 callq _mod_write movsd -48(%rbp), %xmm0 ## xmm0 = mem[0],zero xorps %xmm1, %xmm1 ucomisd %xmm1, %xmm0 jne LBB24_12 jp LBB24_12 jmp LBB24_14 LBB24_12: movq -16(%rbp), %rax cmpl $0, 4(%rax) je LBB24_14 ## %bb.13: movl -24(%rbp), %ecx movq -16(%rbp), %rax movl %ecx, 12(%rax) LBB24_14: jmp LBB24_60 LBB24_15: movq -16(%rbp), %rax movl 24(%rax), %edi movq -16(%rbp), %rax movsd 80(%rax), %xmm0 ## xmm0 = mem[0],zero callq _mod_write movsd -48(%rbp), %xmm0 ## xmm0 = mem[0],zero movq -16(%rbp), %rax mulsd 64(%rax), %xmm0 xorps %xmm1, %xmm1 ucomisd %xmm1, %xmm0 jne LBB24_16 jp LBB24_16 jmp LBB24_17 LBB24_16: movsd -40(%rbp), %xmm0 ## xmm0 = mem[0],zero movq -16(%rbp), %rax mulsd 56(%rax), %xmm0 movq -16(%rbp), %rax movsd %xmm0, 80(%rax) LBB24_17: jmp LBB24_60 LBB24_18: movsd -40(%rbp), %xmm0 ## xmm0 = mem[0],zero movq -16(%rbp), %rax movsd 56(%rax), %xmm2 ## xmm2 = mem[0],zero movq -16(%rbp), %rax movsd 72(%rax), %xmm1 ## xmm1 = mem[0],zero mulsd %xmm2, %xmm0 addsd %xmm1, %xmm0 movsd %xmm0, -56(%rbp) xorps %xmm0, %xmm0 ucomisd -56(%rbp), %xmm0 jbe LBB24_20 ## %bb.19: movq -16(%rbp), %rax movl 24(%rax), %edi xorps %xmm0, %xmm0 callq _mod_write jmp LBB24_21 LBB24_20: movq -16(%rbp), %rax movl 24(%rax), %edi movsd -48(%rbp), %xmm0 ## xmm0 = mem[0],zero movq -16(%rbp), %rax mulsd 64(%rax), %xmm0 callq _mod_write LBB24_21: jmp LBB24_60 LBB24_22: movq -16(%rbp), %rax movl 24(%rax), %edi movq -16(%rbp), %rax movsd 72(%rax), %xmm1 ## xmm1 = mem[0],zero movq -16(%rbp), %rax movsd 80(%rax), %xmm0 ## xmm0 = mem[0],zero movq -16(%rbp), %rax movsd 56(%rax), %xmm2 ## xmm2 = mem[0],zero mulsd %xmm2, %xmm0 addsd %xmm1, %xmm0 callq _mod_write movq -16(%rbp), %rax movl 20(%rax), %edi andl $31, %edi callq _delay_read movq -16(%rbp), %rax movsd %xmm0, 72(%rax) movsd -40(%rbp), %xmm1 ## xmm1 = mem[0],zero movq -16(%rbp), %rax movsd 72(%rax), %xmm0 ## xmm0 = mem[0],zero movq -16(%rbp), %rax movsd 64(%rax), %xmm2 ## xmm2 = mem[0],zero mulsd %xmm2, %xmm0 addsd %xmm1, %xmm0 movq -16(%rbp), %rax movsd %xmm0, 80(%rax) movq -16(%rbp), %rax movl 20(%rax), %edi andl $31, %edi movq -16(%rbp), %rax movsd 80(%rax), %xmm0 ## xmm0 = mem[0],zero callq _delay_write jmp LBB24_60 LBB24_23: movq -16(%rbp), %rax movsd 80(%rax), %xmm0 ## xmm0 = mem[0],zero movq -16(%rbp), %rax mulsd 64(%rax), %xmm0 movsd %xmm0, -56(%rbp) movq -16(%rbp), %rax movsd 72(%rax), %xmm0 ## xmm0 = mem[0],zero movq -16(%rbp), %rax mulsd 56(%rax), %xmm0 movsd %xmm0, -64(%rbp) movsd -56(%rbp), %xmm0 ## xmm0 = mem[0],zero addsd -64(%rbp), %xmm0 addsd -40(%rbp), %xmm0 movsd %xmm0, -32(%rbp) movq -16(%rbp), %rax movl 24(%rax), %edi movsd -32(%rbp), %xmm0 ## xmm0 = mem[0],zero callq _mod_write movq -16(%rbp), %rax movsd 80(%rax), %xmm0 ## xmm0 = mem[0],zero movq -16(%rbp), %rax movsd %xmm0, 72(%rax) movsd -32(%rbp), %xmm0 ## xmm0 = mem[0],zero movq -16(%rbp), %rax movsd %xmm0, 80(%rax) cmpl $9, -20(%rbp) jne LBB24_25 ## %bb.24: movsd -48(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd LCPI24_4(%rip), %xmm1 ## xmm1 = mem[0],zero divsd %xmm1, %xmm0 movq -16(%rbp), %rax addsd 56(%rax), %xmm0 movsd %xmm0, 56(%rax) LBB24_25: cmpl $11, -20(%rbp) jne LBB24_27 ## %bb.26: movsd -48(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd LCPI24_4(%rip), %xmm1 ## xmm1 = mem[0],zero divsd %xmm1, %xmm0 movq -16(%rbp), %rax addsd 64(%rax), %xmm0 movsd %xmm0, 64(%rax) LBB24_27: jmp LBB24_60 LBB24_28: movq -16(%rbp), %rax movsd 80(%rax), %xmm0 ## xmm0 = mem[0],zero movq -16(%rbp), %rax mulsd 64(%rax), %xmm0 movsd %xmm0, -56(%rbp) movq -16(%rbp), %rax movsd 72(%rax), %xmm0 ## xmm0 = mem[0],zero movq -16(%rbp), %rax mulsd 56(%rax), %xmm0 movsd %xmm0, -64(%rbp) movq -16(%rbp), %rax movl 24(%rax), %edi movsd -56(%rbp), %xmm0 ## xmm0 = mem[0],zero addsd -64(%rbp), %xmm0 addsd -40(%rbp), %xmm0 callq _mod_write movq -16(%rbp), %rax movsd 80(%rax), %xmm0 ## xmm0 = mem[0],zero movq -16(%rbp), %rax movsd %xmm0, 72(%rax) movsd -40(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd LCPI24_4(%rip), %xmm1 ## xmm1 = mem[0],zero divsd %xmm1, %xmm0 movq -16(%rbp), %rax movsd %xmm0, 80(%rax) cmpl $13, -20(%rbp) jne LBB24_30 ## %bb.29: movsd -48(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd LCPI24_4(%rip), %xmm1 ## xmm1 = mem[0],zero divsd %xmm1, %xmm0 movq -16(%rbp), %rax addsd 56(%rax), %xmm0 movsd %xmm0, 56(%rax) LBB24_30: cmpl $15, -20(%rbp) jne LBB24_32 ## %bb.31: movsd -48(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd LCPI24_4(%rip), %xmm1 ## xmm1 = mem[0],zero divsd %xmm1, %xmm0 movq -16(%rbp), %rax addsd 64(%rax), %xmm0 movsd %xmm0, 64(%rax) LBB24_32: jmp LBB24_60 LBB24_33: movq -16(%rbp), %rax movl 24(%rax), %edi movsd -40(%rbp), %xmm0 ## xmm0 = mem[0],zero movq -16(%rbp), %rax cvtsi2sdl (%rax), %xmm2 movsd -48(%rbp), %xmm1 ## xmm1 = mem[0],zero movq -16(%rbp), %rax cvtsi2sdl 4(%rax), %xmm3 mulsd %xmm3, %xmm1 mulsd %xmm2, %xmm0 addsd %xmm1, %xmm0 callq _mod_write jmp LBB24_60 LBB24_34: movq -16(%rbp), %rax movl 24(%rax), %edi movsd -40(%rbp), %xmm0 ## xmm0 = mem[0],zero movq -16(%rbp), %rax movsd 56(%rax), %xmm2 ## xmm2 = mem[0],zero movsd -48(%rbp), %xmm1 ## xmm1 = mem[0],zero movq -16(%rbp), %rax mulsd 64(%rax), %xmm1 mulsd %xmm2, %xmm0 addsd %xmm1, %xmm0 callq _mod_write jmp LBB24_60 LBB24_35: movq -16(%rbp), %rax movsd 80(%rax), %xmm0 ## xmm0 = mem[0],zero movq -16(%rbp), %rax mulsd 64(%rax), %xmm0 movsd %xmm0, -56(%rbp) movsd -48(%rbp), %xmm0 ## xmm0 = mem[0],zero movq -16(%rbp), %rax mulsd 56(%rax), %xmm0 movsd %xmm0, -64(%rbp) movsd -56(%rbp), %xmm0 ## xmm0 = mem[0],zero addsd -64(%rbp), %xmm0 movq -16(%rbp), %rax movsd %xmm0, 80(%rax) movq -16(%rbp), %rax movl 24(%rax), %edi movq -16(%rbp), %rax movsd 80(%rax), %xmm0 ## xmm0 = mem[0],zero callq _mod_write jmp LBB24_60 LBB24_36: movq -16(%rbp), %rax movsd 80(%rax), %xmm0 ## xmm0 = mem[0],zero movq -16(%rbp), %rax mulsd 64(%rax), %xmm0 movsd %xmm0, -56(%rbp) movq -16(%rbp), %rax movsd 72(%rax), %xmm0 ## xmm0 = mem[0],zero movq -16(%rbp), %rax mulsd 56(%rax), %xmm0 movsd %xmm0, -64(%rbp) movq -16(%rbp), %rax movsd 80(%rax), %xmm0 ## xmm0 = mem[0],zero movq -16(%rbp), %rax movsd %xmm0, 72(%rax) movsd -40(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd LCPI24_4(%rip), %xmm1 ## xmm1 = mem[0],zero divsd %xmm1, %xmm0 movq -16(%rbp), %rax movsd %xmm0, 80(%rax) movq -16(%rbp), %rax movl 24(%rax), %edi movsd -56(%rbp), %xmm0 ## xmm0 = mem[0],zero addsd -64(%rbp), %xmm0 callq _mod_write jmp LBB24_60 LBB24_37: movq -16(%rbp), %rax movl 24(%rax), %edi movq -16(%rbp), %rax movsd 80(%rax), %xmm0 ## xmm0 = mem[0],zero movq -16(%rbp), %rax mulsd 64(%rax), %xmm0 callq _mod_write movsd -40(%rbp), %xmm0 ## xmm0 = mem[0],zero mulsd -48(%rbp), %xmm0 movq -16(%rbp), %rax movsd %xmm0, 80(%rax) jmp LBB24_60 LBB24_38: movq -16(%rbp), %rax movl 24(%rax), %edi movq -16(%rbp), %rax movsd 80(%rax), %xmm0 ## xmm0 = mem[0],zero movq -16(%rbp), %rax mulsd 64(%rax), %xmm0 callq _mod_write movsd -40(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd LCPI24_3(%rip), %xmm1 ## xmm1 = mem[0],zero addsd -48(%rbp), %xmm1 mulsd %xmm1, %xmm0 movsd LCPI24_2(%rip), %xmm1 ## xmm1 = mem[0],zero mulsd %xmm1, %xmm0 movq -16(%rbp), %rax movsd %xmm0, 80(%rax) jmp LBB24_60 LBB24_39: movsd -40(%rbp), %xmm0 ## xmm0 = mem[0],zero movq -16(%rbp), %rax mulsd 56(%rax), %xmm0 movsd %xmm0, -56(%rbp) movsd -48(%rbp), %xmm0 ## xmm0 = mem[0],zero movq -16(%rbp), %rax mulsd 64(%rax), %xmm0 movsd %xmm0, -64(%rbp) movq -16(%rbp), %rax movl 24(%rax), %eax movl %eax, -92(%rbp) ## 4-byte Spill movsd -56(%rbp), %xmm0 ## xmm0 = mem[0],zero ucomisd -64(%rbp), %xmm0 jbe LBB24_41 ## %bb.40: movsd -56(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -104(%rbp) ## 8-byte Spill jmp LBB24_42 LBB24_41: movsd -64(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -104(%rbp) ## 8-byte Spill LBB24_42: movl -92(%rbp), %edi ## 4-byte Reload movsd -104(%rbp), %xmm0 ## 8-byte Reload ## xmm0 = mem[0],zero callq _mod_write jmp LBB24_60 LBB24_43: movsd -40(%rbp), %xmm0 ## xmm0 = mem[0],zero movq -16(%rbp), %rax mulsd 56(%rax), %xmm0 movsd %xmm0, -56(%rbp) movsd -48(%rbp), %xmm0 ## xmm0 = mem[0],zero movq -16(%rbp), %rax mulsd 64(%rax), %xmm0 movsd %xmm0, -64(%rbp) movq -16(%rbp), %rax movl 24(%rax), %eax movl %eax, -108(%rbp) ## 4-byte Spill movsd -56(%rbp), %xmm1 ## xmm1 = mem[0],zero movsd -64(%rbp), %xmm0 ## xmm0 = mem[0],zero ucomisd %xmm1, %xmm0 jbe LBB24_45 ## %bb.44: movsd -56(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -120(%rbp) ## 8-byte Spill jmp LBB24_46 LBB24_45: movsd -64(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -120(%rbp) ## 8-byte Spill LBB24_46: movl -108(%rbp), %edi ## 4-byte Reload movsd -120(%rbp), %xmm0 ## 8-byte Reload ## xmm0 = mem[0],zero callq _mod_write jmp LBB24_60 LBB24_47: movsd -40(%rbp), %xmm0 ## xmm0 = mem[0],zero movq -16(%rbp), %rax mulsd 56(%rax), %xmm0 movsd %xmm0, -56(%rbp) movsd -48(%rbp), %xmm0 ## xmm0 = mem[0],zero movq -16(%rbp), %rax mulsd 64(%rax), %xmm0 movsd %xmm0, -64(%rbp) movsd -56(%rbp), %xmm1 ## xmm1 = mem[0],zero movsd -64(%rbp), %xmm0 ## xmm0 = mem[0],zero ucomisd %xmm1, %xmm0 jbe LBB24_49 ## %bb.48: movq -16(%rbp), %rax movl 24(%rax), %edi movsd LCPI24_0(%rip), %xmm0 ## xmm0 = mem[0],zero callq _mod_write jmp LBB24_53 LBB24_49: movsd -56(%rbp), %xmm0 ## xmm0 = mem[0],zero ucomisd -64(%rbp), %xmm0 jne LBB24_51 jp LBB24_51 ## %bb.50: movq -16(%rbp), %rax movl 24(%rax), %edi xorps %xmm0, %xmm0 callq _mod_write jmp LBB24_52 LBB24_51: movq -16(%rbp), %rax movl 24(%rax), %edi movsd LCPI24_1(%rip), %xmm0 ## xmm0 = mem[0],zero callq _mod_write LBB24_52: jmp LBB24_53 LBB24_53: jmp LBB24_60 LBB24_54: movsd -48(%rbp), %xmm0 ## xmm0 = mem[0],zero movq -16(%rbp), %rax mulsd 56(%rax), %xmm0 movsd %xmm0, -56(%rbp) movq -16(%rbp), %rax movsd 80(%rax), %xmm0 ## xmm0 = mem[0],zero movq -16(%rbp), %rax mulsd 56(%rax), %xmm0 movsd %xmm0, -64(%rbp) movsd -64(%rbp), %xmm0 ## xmm0 = mem[0],zero xorps %xmm1, %xmm1 ucomisd %xmm1, %xmm0 jne LBB24_55 jp LBB24_55 jmp LBB24_58 LBB24_55: movsd -56(%rbp), %xmm0 ## xmm0 = mem[0],zero xorps %xmm1, %xmm1 ucomisd %xmm1, %xmm0 jne LBB24_56 jp LBB24_56 jmp LBB24_57 LBB24_56: movsd -56(%rbp), %xmm1 ## xmm1 = mem[0],zero mulsd -64(%rbp), %xmm1 xorps %xmm0, %xmm0 ucomisd %xmm1, %xmm0 jbe LBB24_58 LBB24_57: movq -16(%rbp), %rax movl 24(%rax), %edi movsd LCPI24_0(%rip), %xmm0 ## xmm0 = mem[0],zero callq _mod_write LBB24_58: movsd -56(%rbp), %xmm0 ## xmm0 = mem[0],zero movq -16(%rbp), %rax movsd %xmm0, 80(%rax) jmp LBB24_60 LBB24_59: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.49(%rip), %rsi movb $0, %al callq _fprintf LBB24_60: addq $128, %rsp popq %rbp retq .cfi_endproc .p2align 2, 0x90 .data_region jt32 .set L24_0_set_3, LBB24_3-LJTI24_0 .set L24_0_set_59, LBB24_59-LJTI24_0 .set L24_0_set_4, LBB24_4-LJTI24_0 .set L24_0_set_8, LBB24_8-LJTI24_0 .set L24_0_set_15, LBB24_15-LJTI24_0 .set L24_0_set_18, LBB24_18-LJTI24_0 .set L24_0_set_22, LBB24_22-LJTI24_0 .set L24_0_set_23, LBB24_23-LJTI24_0 .set L24_0_set_28, LBB24_28-LJTI24_0 .set L24_0_set_33, LBB24_33-LJTI24_0 .set L24_0_set_35, LBB24_35-LJTI24_0 .set L24_0_set_34, LBB24_34-LJTI24_0 .set L24_0_set_36, LBB24_36-LJTI24_0 .set L24_0_set_37, LBB24_37-LJTI24_0 .set L24_0_set_38, LBB24_38-LJTI24_0 .set L24_0_set_39, LBB24_39-LJTI24_0 .set L24_0_set_43, LBB24_43-LJTI24_0 .set L24_0_set_47, LBB24_47-LJTI24_0 .set L24_0_set_54, LBB24_54-LJTI24_0 LJTI24_0: .long L24_0_set_3 .long L24_0_set_59 .long L24_0_set_4 .long L24_0_set_8 .long L24_0_set_15 .long L24_0_set_59 .long L24_0_set_18 .long L24_0_set_22 .long L24_0_set_23 .long L24_0_set_23 .long L24_0_set_59 .long L24_0_set_23 .long L24_0_set_28 .long L24_0_set_28 .long L24_0_set_59 .long L24_0_set_28 .long L24_0_set_33 .long L24_0_set_35 .long L24_0_set_59 .long L24_0_set_59 .long L24_0_set_34 .long L24_0_set_59 .long L24_0_set_36 .long L24_0_set_59 .long L24_0_set_37 .long L24_0_set_38 .long L24_0_set_39 .long L24_0_set_43 .long L24_0_set_47 .long L24_0_set_54 .end_data_region ## -- End function .p2align 4, 0x90 ## -- Begin function process_dly _process_dly: ## @process_dly .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) movslq -4(%rbp), %rcx leaq _dlys(%rip), %rax movq (%rax,%rcx,8), %rax movq %rax, -16(%rbp) movq -16(%rbp), %rax movl 8(%rax), %ecx addl $1, %ecx movl %ecx, 8(%rax) movq -16(%rbp), %rax movl 8(%rax), %eax movq -16(%rbp), %rcx cmpl 4(%rcx), %eax jle LBB25_2 ## %bb.1: movq -16(%rbp), %rax movl $0, 8(%rax) LBB25_2: popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__literal16,16byte_literals .p2align 4 ## -- Begin function dump_patch LCPI26_0: .quad 0x7fffffffffffffff ## double NaN .quad 0x7fffffffffffffff ## double NaN .section __TEXT,__literal8,8byte_literals .p2align 3 LCPI26_1: .quad 0x3fe0000000000000 ## double 0.5 .section __TEXT,__text,regular,pure_instructions .p2align 4, 0x90 _dump_patch: ## @dump_patch .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 ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movl _samples(%rip), %edx movl _current_command(%rip), %ecx leaq L_.str.53(%rip), %rsi movb $0, %al callq _fprintf movl $0, -4(%rbp) movl $0, -8(%rbp) LBB26_1: ## =>This Inner Loop Header: Depth=1 cmpl $256, -4(%rbp) ## imm = 0x100 jge LBB26_6 ## %bb.2: ## in Loop: Header=BB26_1 Depth=1 movslq -4(%rbp), %rcx leaq _gens(%rip), %rax movq (%rax,%rcx,8), %rax cmpl $0, 44(%rax) je LBB26_4 ## %bb.3: ## in Loop: Header=BB26_1 Depth=1 movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) LBB26_4: ## in Loop: Header=BB26_1 Depth=1 jmp LBB26_5 LBB26_5: ## in Loop: Header=BB26_1 Depth=1 movl -4(%rbp), %eax addl $1, %eax movl %eax, -4(%rbp) jmp LBB26_1 LBB26_6: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movl -8(%rbp), %edx leaq L_.str.54(%rip), %rsi movb $0, %al callq _fprintf movl $0, -4(%rbp) movl $0, -8(%rbp) LBB26_7: ## =>This Inner Loop Header: Depth=1 cmpl $128, -4(%rbp) jge LBB26_12 ## %bb.8: ## in Loop: Header=BB26_7 Depth=1 movslq -4(%rbp), %rcx leaq _mods(%rip), %rax movq (%rax,%rcx,8), %rax movl 28(%rax), %eax sarl $4, %eax andl $31, %eax cmpl $0, %eax je LBB26_10 ## %bb.9: ## in Loop: Header=BB26_7 Depth=1 movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) LBB26_10: ## in Loop: Header=BB26_7 Depth=1 jmp LBB26_11 LBB26_11: ## in Loop: Header=BB26_7 Depth=1 movl -4(%rbp), %eax addl $1, %eax movl %eax, -4(%rbp) jmp LBB26_7 LBB26_12: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movl -8(%rbp), %edx leaq L_.str.55(%rip), %rsi movb $0, %al callq _fprintf movl $0, -4(%rbp) movl $0, -8(%rbp) LBB26_13: ## =>This Inner Loop Header: Depth=1 cmpl $32, -4(%rbp) jge LBB26_18 ## %bb.14: ## in Loop: Header=BB26_13 Depth=1 movslq -4(%rbp), %rcx leaq _dlys(%rip), %rax movq (%rax,%rcx,8), %rax cmpl $0, (%rax) je LBB26_16 ## %bb.15: ## in Loop: Header=BB26_13 Depth=1 movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) LBB26_16: ## in Loop: Header=BB26_13 Depth=1 jmp LBB26_17 LBB26_17: ## in Loop: Header=BB26_13 Depth=1 movl -4(%rbp), %eax addl $1, %eax movl %eax, -4(%rbp) jmp LBB26_13 LBB26_18: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movl -8(%rbp), %edx leaq L_.str.56(%rip), %rsi movb $0, %al callq _fprintf movl $0, -4(%rbp) LBB26_19: ## =>This Inner Loop Header: Depth=1 cmpl $256, -4(%rbp) ## imm = 0x100 jge LBB26_32 ## %bb.20: ## in Loop: Header=BB26_19 Depth=1 movslq -4(%rbp), %rcx leaq _gens(%rip), %rax movq (%rax,%rcx,8), %rax cmpl $0, 44(%rax) je LBB26_30 ## %bb.21: ## in Loop: Header=BB26_19 Depth=1 movslq -4(%rbp), %rcx leaq _gens(%rip), %rax movq (%rax,%rcx,8), %rax movq %rax, -16(%rbp) movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movl -4(%rbp), %edx leaq L_.str.57(%rip), %rsi movb $0, %al callq _fprintf movq -16(%rbp), %rax movl 44(%rax), %edi callq _print_gmode_name movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.58(%rip), %rsi movb $0, %al callq _fprintf movq -16(%rbp), %rax movl 36(%rax), %eax sarl $6, %eax cmpl $0, %eax jne LBB26_23 ## %bb.22: ## in Loop: Header=BB26_19 Depth=1 movq -16(%rbp), %rax movl 36(%rax), %edi andl $63, %edi callq _dump_gen_sum jmp LBB26_24 LBB26_23: ## in Loop: Header=BB26_19 Depth=1 movq -16(%rbp), %rax movl 36(%rax), %edi callq _print_mod_sum LBB26_24: ## in Loop: Header=BB26_19 Depth=1 movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.59(%rip), %rsi movb $0, %al callq _fprintf movq -16(%rbp), %rax movl 44(%rax), %eax sarl $6, %eax andl $15, %eax cmpl $2, %eax jne LBB26_26 ## %bb.25: ## in Loop: Header=BB26_19 Depth=1 movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movq -16(%rbp), %rax movl (%rax), %edx andl $15, %edx leaq L_.str.60(%rip), %rsi movb $0, %al callq _fprintf jmp LBB26_27 LBB26_26: ## in Loop: Header=BB26_19 Depth=1 movq -16(%rbp), %rax movl 32(%rax), %edi callq _dump_gen_sum LBB26_27: ## in Loop: Header=BB26_19 Depth=1 movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -64(%rbp) ## 8-byte Spill movq -16(%rbp), %rax movl 32(%rax), %edi callq _gen_mem_readers movl %eax, -52(%rbp) ## 4-byte Spill movq -16(%rbp), %rdi callq _gen_amp movq -64(%rbp), %rdi ## 8-byte Reload movl -52(%rbp), %edx ## 4-byte Reload movq -16(%rbp), %rax movsd LCPI26_1(%rip), %xmm1 ## xmm1 = mem[0],zero mulsd 56(%rax), %xmm1 cvtsi2sdl _srate(%rip), %xmm2 mulsd %xmm2, %xmm1 leaq L_.str.61(%rip), %rsi movb $2, %al callq _fprintf movq -16(%rbp), %rax movsd 56(%rax), %xmm0 ## xmm0 = mem[0],zero xorps %xmm1, %xmm1 ucomisd %xmm1, %xmm0 jne LBB26_29 jp LBB26_29 ## %bb.28: ## in Loop: Header=BB26_19 Depth=1 movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movq -16(%rbp), %rax movsd 64(%rax), %xmm0 ## xmm0 = mem[0],zero leaq L_.str.62(%rip), %rsi movb $1, %al callq _fprintf LBB26_29: ## in Loop: Header=BB26_19 Depth=1 movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.63(%rip), %rsi movb $0, %al callq _fprintf LBB26_30: ## in Loop: Header=BB26_19 Depth=1 jmp LBB26_31 LBB26_31: ## in Loop: Header=BB26_19 Depth=1 movl -4(%rbp), %eax addl $1, %eax movl %eax, -4(%rbp) jmp LBB26_19 LBB26_32: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.17(%rip), %rsi movb $0, %al callq _fprintf movl $0, -4(%rbp) LBB26_33: ## =>This Inner Loop Header: Depth=1 cmpl $128, -4(%rbp) jge LBB26_47 ## %bb.34: ## in Loop: Header=BB26_33 Depth=1 movslq -4(%rbp), %rcx leaq _mods(%rip), %rax movq (%rax,%rcx,8), %rax movl 28(%rax), %eax sarl $4, %eax andl $31, %eax cmpl $0, %eax je LBB26_45 ## %bb.35: ## in Loop: Header=BB26_33 Depth=1 movslq -4(%rbp), %rcx leaq _mods(%rip), %rax movq (%rax,%rcx,8), %rax movq %rax, -24(%rbp) movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -80(%rbp) ## 8-byte Spill movl -4(%rbp), %eax movl %eax, -68(%rbp) ## 4-byte Spill movq -24(%rbp), %rax movl 28(%rax), %edi sarl $4, %edi andl $31, %edi callq _mode_name movq -80(%rbp), %rdi ## 8-byte Reload movl -68(%rbp), %edx ## 4-byte Reload movq %rax, %rcx leaq L_.str.64(%rip), %rsi movb $0, %al callq _fprintf movq -24(%rbp), %rax movl 28(%rax), %eax sarl $4, %eax andl $31, %eax cmpl $20, %eax jne LBB26_37 ## %bb.36: ## in Loop: Header=BB26_33 Depth=1 movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movq -24(%rbp), %rax movsd 56(%rax), %xmm0 ## xmm0 = mem[0],zero leaq L_.str.65(%rip), %rsi movb $1, %al callq _fprintf LBB26_37: ## in Loop: Header=BB26_33 Depth=1 movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.66(%rip), %rsi movb $0, %al callq _fprintf movq -24(%rbp), %rax movl 16(%rax), %edi callq _print_mod_sum movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.67(%rip), %rsi movb $0, %al callq _fprintf movq -24(%rbp), %rax movl 28(%rax), %eax sarl $4, %eax andl $31, %eax cmpl $20, %eax jne LBB26_39 ## %bb.38: ## in Loop: Header=BB26_33 Depth=1 movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movq -24(%rbp), %rax movsd 64(%rax), %xmm0 ## xmm0 = mem[0],zero leaq L_.str.65(%rip), %rsi movb $1, %al callq _fprintf LBB26_39: ## in Loop: Header=BB26_33 Depth=1 movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.68(%rip), %rsi movb $0, %al callq _fprintf movq -24(%rbp), %rax movl 28(%rax), %eax sarl $4, %eax andl $31, %eax cmpl $7, %eax jne LBB26_41 ## %bb.40: ## in Loop: Header=BB26_33 Depth=1 movq -24(%rbp), %rax movl 20(%rax), %eax andl $31, %eax movslq %eax, %rcx leaq _dlys(%rip), %rax movq (%rax,%rcx,8), %rax movq %rax, -32(%rbp) movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movq -24(%rbp), %rax movl 20(%rax), %edx andl $31, %edx movq -32(%rbp), %rax movl 12(%rax), %eax movq -32(%rbp), %rcx addl 8(%rcx), %eax movslq %eax, %rcx leaq _delay_memory(%rip), %rax movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero leaq L_.str.69(%rip), %rsi movb $1, %al callq _fprintf movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movq -24(%rbp), %rax movsd 56(%rax), %xmm0 ## xmm0 = mem[0],zero movq -24(%rbp), %rax movsd 64(%rax), %xmm1 ## xmm1 = mem[0],zero movq -24(%rbp), %rax movsd 72(%rax), %xmm2 ## xmm2 = mem[0],zero movq -24(%rbp), %rax movsd 80(%rax), %xmm3 ## xmm3 = mem[0],zero leaq L_.str.70(%rip), %rsi movb $4, %al callq _fprintf jmp LBB26_42 LBB26_41: ## in Loop: Header=BB26_33 Depth=1 movq -24(%rbp), %rax movl 20(%rax), %edi callq _print_mod_sum LBB26_42: ## in Loop: Header=BB26_33 Depth=1 movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.59(%rip), %rsi movb $0, %al callq _fprintf movq -24(%rbp), %rax movl 24(%rax), %eax sarl $6, %eax cmpl $0, %eax je LBB26_44 ## %bb.43: ## in Loop: Header=BB26_33 Depth=1 movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.71(%rip), %rsi movb $0, %al callq _fprintf LBB26_44: ## in Loop: Header=BB26_33 Depth=1 movq -24(%rbp), %rax movl 24(%rax), %edi andl $63, %edi callq _dump_mod_sum movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -88(%rbp) ## 8-byte Spill movq -24(%rbp), %rax movl 24(%rax), %edi callq _mod_mem_readers movq -88(%rbp), %rdi ## 8-byte Reload movl %eax, %edx leaq L_.str.72(%rip), %rsi movb $0, %al callq _fprintf LBB26_45: ## in Loop: Header=BB26_33 Depth=1 jmp LBB26_46 LBB26_46: ## in Loop: Header=BB26_33 Depth=1 movl -4(%rbp), %eax addl $1, %eax movl %eax, -4(%rbp) jmp LBB26_33 LBB26_47: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.17(%rip), %rsi movb $0, %al callq _fprintf movl $0, -4(%rbp) LBB26_48: ## =>This Inner Loop Header: Depth=1 cmpl $32, -4(%rbp) jge LBB26_53 ## %bb.49: ## in Loop: Header=BB26_48 Depth=1 movslq -4(%rbp), %rcx leaq _dlys(%rip), %rax movq (%rax,%rcx,8), %rax cmpl $0, (%rax) je LBB26_51 ## %bb.50: ## in Loop: Header=BB26_48 Depth=1 movslq -4(%rbp), %rcx leaq _dlys(%rip), %rax movq (%rax,%rcx,8), %rax movq %rax, -40(%rbp) movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -104(%rbp) ## 8-byte Spill movl -4(%rbp), %eax movl %eax, -92(%rbp) ## 4-byte Spill movq -40(%rbp), %rax movl (%rax), %edi callq _P_name movq -104(%rbp), %rdi ## 8-byte Reload movl -92(%rbp), %edx ## 4-byte Reload movq %rax, %rcx movq -40(%rbp), %rax movl 12(%rax), %eax movq -40(%rbp), %rsi addl 8(%rsi), %eax movslq %eax, %rsi leaq _delay_memory(%rip), %rax movsd (%rax,%rsi,8), %xmm0 ## xmm0 = mem[0],zero movq -40(%rbp), %rax movl 12(%rax), %r8d movq -40(%rbp), %rax movl 8(%rax), %r9d movq -40(%rbp), %rax movl 4(%rax), %eax leaq L_.str.73(%rip), %rsi movl %eax, (%rsp) movb $1, %al callq _fprintf LBB26_51: ## in Loop: Header=BB26_48 Depth=1 jmp LBB26_52 LBB26_52: ## in Loop: Header=BB26_48 Depth=1 movl -4(%rbp), %eax addl $1, %eax movl %eax, -4(%rbp) jmp LBB26_48 LBB26_53: movsd _delay_memory(%rip), %xmm0 ## xmm0 = mem[0],zero movaps LCPI26_0(%rip), %xmm1 ## xmm1 = [NaN,NaN] pand %xmm1, %xmm0 movsd %xmm0, -48(%rbp) movl $1, -4(%rbp) LBB26_54: ## =>This Inner Loop Header: Depth=1 cmpl $65536, -4(%rbp) ## imm = 0x10000 jge LBB26_59 ## %bb.55: ## in Loop: Header=BB26_54 Depth=1 movslq -4(%rbp), %rcx leaq _delay_memory(%rip), %rax movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero movaps LCPI26_0(%rip), %xmm1 ## xmm1 = [NaN,NaN] pand %xmm1, %xmm0 ucomisd -48(%rbp), %xmm0 jbe LBB26_57 ## %bb.56: ## in Loop: Header=BB26_54 Depth=1 movslq -4(%rbp), %rcx leaq _delay_memory(%rip), %rax movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero movaps LCPI26_0(%rip), %xmm1 ## xmm1 = [NaN,NaN] pand %xmm1, %xmm0 movsd %xmm0, -48(%rbp) LBB26_57: ## in Loop: Header=BB26_54 Depth=1 jmp LBB26_58 LBB26_58: ## in Loop: Header=BB26_54 Depth=1 movl -4(%rbp), %eax addl $1, %eax movl %eax, -4(%rbp) jmp LBB26_54 LBB26_59: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movsd -48(%rbp), %xmm0 ## xmm0 = mem[0],zero leaq L_.str.74(%rip), %rsi movb $1, %al callq _fprintf addq $112, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function osc_is_running _osc_is_running: ## @osc_is_running .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 sarl $6, %eax andl $15, %eax movl %eax, -8(%rbp) movb $1, %al cmpl $15, -8(%rbp) movb %al, -9(%rbp) ## 1-byte Spill je LBB27_4 ## %bb.1: movb $1, %al cmpl $14, -8(%rbp) movb %al, -9(%rbp) ## 1-byte Spill je LBB27_4 ## %bb.2: movb $1, %al cmpl $9, -8(%rbp) movb %al, -9(%rbp) ## 1-byte Spill je LBB27_4 ## %bb.3: cmpl $13, -8(%rbp) sete %al movb %al, -9(%rbp) ## 1-byte Spill LBB27_4: movb -9(%rbp), %al ## 1-byte Reload andb $1, %al movzbl %al, %eax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ## -- Begin function dac_write LCPI28_0: .quad 0x4000000000000000 ## double 2 .section __TEXT,__text,regular,pure_instructions .p2align 4, 0x90 _dac_write: ## @dac_write .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movsd %xmm0, -8(%rbp) movl %edi, -12(%rbp) movsd -8(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd LCPI28_0(%rip), %xmm1 ## xmm1 = mem[0],zero divsd %xmm1, %xmm0 cvtsd2ss %xmm0, %xmm0 movslq -12(%rbp), %rcx leaq _dac_out(%rip), %rax addss (%rax,%rcx,4), %xmm0 leaq _dac_out(%rip), %rax movss %xmm0, (%rax,%rcx,4) popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function env_is_running _env_is_running: ## @env_is_running .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 sarl $6, %eax andl $15, %eax movl %eax, -8(%rbp) movb $1, %al cmpl $15, -8(%rbp) movb %al, -9(%rbp) ## 1-byte Spill je LBB29_4 ## %bb.1: movb $1, %al cmpl $14, -8(%rbp) movb %al, -9(%rbp) ## 1-byte Spill je LBB29_4 ## %bb.2: movb $1, %al cmpl $7, -8(%rbp) movb %al, -9(%rbp) ## 1-byte Spill je LBB29_4 ## %bb.3: cmpl $13, -8(%rbp) sete %al movb %al, -9(%rbp) ## 1-byte Spill LBB29_4: movb -9(%rbp), %al ## 1-byte Reload andb $1, %al movzbl %al, %eax popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function adding_to_sum _adding_to_sum: ## @adding_to_sum .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, -4(%rbp) movl -4(%rbp), %eax sarl $6, %eax andl $15, %eax movl %eax, -8(%rbp) movb $1, %al cmpl $15, -8(%rbp) movb %al, -9(%rbp) ## 1-byte Spill je LBB30_4 ## %bb.1: movb $1, %al cmpl $14, -8(%rbp) movb %al, -9(%rbp) ## 1-byte Spill je LBB30_4 ## %bb.2: movb $1, %al cmpl $7, -8(%rbp) movb %al, -9(%rbp) ## 1-byte Spill je LBB30_4 ## %bb.3: cmpl $13, -8(%rbp) sete %al movb %al, -9(%rbp) ## 1-byte Spill LBB30_4: movb -9(%rbp), %al ## 1-byte Reload andb $1, %al movzbl %al, %eax popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function mod_read _mod_read: ## @mod_read .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, -12(%rbp) movl -12(%rbp), %eax andl $63, %eax movl %eax, -20(%rbp) movl -12(%rbp), %eax shrl $6, %eax andl $3, %eax movl %eax, -16(%rbp) movl -16(%rbp), %eax ## kill: def $rax killed $eax movq %rax, -32(%rbp) ## 8-byte Spill subq $3, %rax ja LBB31_5 ## %bb.7: movq -32(%rbp), %rax ## 8-byte Reload leaq LJTI31_0(%rip), %rcx movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax LBB31_1: movslq -20(%rbp), %rcx leaq _gen_ins(%rip), %rax movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -8(%rbp) jmp LBB31_6 LBB31_2: movslq -20(%rbp), %rcx leaq _mod_ins(%rip), %rax movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -8(%rbp) jmp LBB31_6 LBB31_3: movslq -20(%rbp), %rcx leaq _mod_outs(%rip), %rax movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -8(%rbp) jmp LBB31_6 LBB31_4: movslq -20(%rbp), %rcx leaq _mod_ins(%rip), %rax movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -8(%rbp) jmp LBB31_6 LBB31_5: xorps %xmm0, %xmm0 movsd %xmm0, -8(%rbp) LBB31_6: movsd -8(%rbp), %xmm0 ## xmm0 = mem[0],zero popq %rbp retq .cfi_endproc .p2align 2, 0x90 .data_region jt32 .set L31_0_set_1, LBB31_1-LJTI31_0 .set L31_0_set_2, LBB31_2-LJTI31_0 .set L31_0_set_3, LBB31_3-LJTI31_0 .set L31_0_set_4, LBB31_4-LJTI31_0 LJTI31_0: .long L31_0_set_1 .long L31_0_set_2 .long L31_0_set_3 .long L31_0_set_4 .end_data_region ## -- End function .p2align 4, 0x90 ## -- Begin function mod_write _mod_write: ## @mod_write .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, -32(%rbp) movsd %xmm0, -40(%rbp) xorl %eax, %eax ## kill: def $al killed $al killed $eax testb $1, %al jne LBB32_1 jmp LBB32_2 LBB32_1: movsd -40(%rbp), %xmm0 ## xmm0 = mem[0],zero cvtsd2ss %xmm0, %xmm0 movss %xmm0, -28(%rbp) movss -28(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero ucomiss -28(%rbp), %xmm0 setne %al setp %cl orb %cl, %al andb $1, %al movzbl %al, %eax cmpl $0, %eax jne LBB32_5 jmp LBB32_6 LBB32_2: movb $1, %al testb $1, %al jne LBB32_3 jmp LBB32_4 LBB32_3: movsd -40(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -24(%rbp) movsd -24(%rbp), %xmm0 ## xmm0 = mem[0],zero ucomisd -24(%rbp), %xmm0 setne %al setp %cl orb %cl, %al andb $1, %al movzbl %al, %eax cmpl $0, %eax jne LBB32_5 jmp LBB32_6 LBB32_4: fldl -40(%rbp) fstpt -16(%rbp) fldt -16(%rbp) fucompi %st(0), %st setp %al andb $1, %al movzbl %al, %eax cmpl $0, %eax je LBB32_6 LBB32_5: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movl -32(%rbp), %edx sarl $6, %edx movl -32(%rbp), %ecx andl $63, %ecx leaq L_.str.50(%rip), %rsi movb $0, %al callq _fprintf LBB32_6: movl -32(%rbp), %eax andl $63, %eax movl %eax, -48(%rbp) movl -32(%rbp), %eax sarl $6, %eax andl $1, %eax movl %eax, -44(%rbp) cmpl $0, -44(%rbp) jne LBB32_8 ## %bb.7: movsd -40(%rbp), %xmm0 ## xmm0 = mem[0],zero movslq -48(%rbp), %rcx leaq _mod_outs(%rip), %rax addsd (%rax,%rcx,8), %xmm0 leaq _mod_outs(%rip), %rax movsd %xmm0, (%rax,%rcx,8) jmp LBB32_9 LBB32_8: movsd -40(%rbp), %xmm0 ## xmm0 = mem[0],zero movslq -48(%rbp), %rcx leaq _mod_outs(%rip), %rax movsd %xmm0, (%rax,%rcx,8) LBB32_9: addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function delay_read _delay_read: ## @delay_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 $48, %rsp movl %edi, -12(%rbp) movslq -12(%rbp), %rcx leaq _dlys(%rip), %rax movq (%rax,%rcx,8), %rax movq %rax, -24(%rbp) movq -24(%rbp), %rax movl (%rax), %eax ## kill: def $rax killed $eax movq %rax, -48(%rbp) ## 8-byte Spill subq $12, %rax ja LBB33_6 ## %bb.8: movq -48(%rbp), %rax ## 8-byte Reload leaq LJTI33_0(%rip), %rcx movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax LBB33_1: xorps %xmm0, %xmm0 movsd %xmm0, -8(%rbp) jmp LBB33_7 LBB33_2: movq -24(%rbp), %rax movsd 32(%rax), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -32(%rbp) movq -24(%rbp), %rax movsd 24(%rax), %xmm0 ## xmm0 = mem[0],zero movq -24(%rbp), %rax movsd %xmm0, 32(%rax) movq -24(%rbp), %rax movl 12(%rax), %eax movq -24(%rbp), %rcx addl 8(%rcx), %eax movslq %eax, %rcx leaq _delay_memory(%rip), %rax movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero movq -24(%rbp), %rax movsd %xmm0, 24(%rax) movsd -32(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -8(%rbp) jmp LBB33_7 LBB33_3: testb $1, _table_read_warned(%rip) jne LBB33_5 ## %bb.4: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.51(%rip), %rsi movb $0, %al callq _fprintf movb $1, _table_read_warned(%rip) LBB33_5: movq -24(%rbp), %rax movl 4(%rax), %eax andl $15, %eax movl %eax, -36(%rbp) movq -24(%rbp), %rax movl 16(%rax), %eax movl -36(%rbp), %ecx ## kill: def $cl killed $ecx sarl %cl, %eax andl $65535, %eax ## imm = 0xFFFF movl %eax, -40(%rbp) movq -24(%rbp), %rax movl 12(%rax), %eax addl -40(%rbp), %eax movslq %eax, %rcx leaq _delay_memory(%rip), %rax movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -8(%rbp) jmp LBB33_7 LBB33_6: xorps %xmm0, %xmm0 movsd %xmm0, -8(%rbp) LBB33_7: movsd -8(%rbp), %xmm0 ## xmm0 = mem[0],zero addq $48, %rsp popq %rbp retq .cfi_endproc .p2align 2, 0x90 .data_region jt32 .set L33_0_set_1, LBB33_1-LJTI33_0 .set L33_0_set_6, LBB33_6-LJTI33_0 .set L33_0_set_2, LBB33_2-LJTI33_0 .set L33_0_set_3, LBB33_3-LJTI33_0 LJTI33_0: .long L33_0_set_1 .long L33_0_set_6 .long L33_0_set_6 .long L33_0_set_6 .long L33_0_set_6 .long L33_0_set_6 .long L33_0_set_6 .long L33_0_set_6 .long L33_0_set_2 .long L33_0_set_6 .long L33_0_set_3 .long L33_0_set_3 .long L33_0_set_2 .end_data_region ## -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ## -- Begin function delay_write LCPI34_0: .quad 0x4120000000000000 ## double 524288 LCPI34_1: .quad 0x3ff0000000000000 ## double 1 .section __TEXT,__text,regular,pure_instructions .p2align 4, 0x90 _delay_write: ## @delay_write .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movl %edi, -4(%rbp) movsd %xmm0, -16(%rbp) movslq -4(%rbp), %rcx leaq _dlys(%rip), %rax movq (%rax,%rcx,8), %rax movq %rax, -24(%rbp) movq -24(%rbp), %rax movl (%rax), %eax ## kill: def $rax killed $eax movq %rax, -32(%rbp) ## 8-byte Spill subq $12, %rax ja LBB34_9 ## %bb.10: movq -32(%rbp), %rax ## 8-byte Reload leaq LJTI34_0(%rip), %rcx movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax LBB34_1: jmp LBB34_9 LBB34_2: movsd -16(%rbp), %xmm0 ## xmm0 = mem[0],zero movq -24(%rbp), %rax movl 12(%rax), %eax movq -24(%rbp), %rcx addl 8(%rcx), %eax movslq %eax, %rcx leaq _delay_memory(%rip), %rax movsd %xmm0, (%rax,%rcx,8) jmp LBB34_9 LBB34_3: testb $1, _table_write_warned(%rip) jne LBB34_5 ## %bb.4: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.52(%rip), %rsi movb $0, %al callq _fprintf movb $1, _table_write_warned(%rip) LBB34_5: movsd -16(%rbp), %xmm0 ## xmm0 = mem[0],zero xorps %xmm1, %xmm1 ucomisd %xmm1, %xmm0 jb LBB34_7 ## %bb.6: movsd LCPI34_0(%rip), %xmm0 ## xmm0 = mem[0],zero mulsd -16(%rbp), %xmm0 cvttsd2si %xmm0, %eax movl %eax, -36(%rbp) ## 4-byte Spill jmp LBB34_8 LBB34_7: movsd LCPI34_1(%rip), %xmm0 ## xmm0 = mem[0],zero addsd -16(%rbp), %xmm0 movsd LCPI34_0(%rip), %xmm1 ## xmm1 = mem[0],zero mulsd %xmm1, %xmm0 cvttsd2si %xmm0, %eax movl %eax, -36(%rbp) ## 4-byte Spill LBB34_8: movl -36(%rbp), %ecx ## 4-byte Reload movq -24(%rbp), %rax movl %ecx, 16(%rax) LBB34_9: addq $48, %rsp popq %rbp retq .cfi_endproc .p2align 2, 0x90 .data_region jt32 .set L34_0_set_1, LBB34_1-LJTI34_0 .set L34_0_set_9, LBB34_9-LJTI34_0 .set L34_0_set_2, LBB34_2-LJTI34_0 .set L34_0_set_3, LBB34_3-LJTI34_0 LJTI34_0: .long L34_0_set_1 .long L34_0_set_9 .long L34_0_set_9 .long L34_0_set_9 .long L34_0_set_9 .long L34_0_set_9 .long L34_0_set_9 .long L34_0_set_9 .long L34_0_set_2 .long L34_0_set_9 .long L34_0_set_3 .long L34_0_set_3 .long L34_0_set_1 .end_data_region ## -- End function .p2align 4, 0x90 ## -- Begin function print_gmode_name _print_gmode_name: ## @print_gmode_name .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 %edi, -52(%rbp) movq l___const.print_gmode_name.E_name(%rip), %rax movq %rax, -48(%rbp) movq l___const.print_gmode_name.E_name+8(%rip), %rax movq %rax, -40(%rbp) movq l___const.print_gmode_name.E_name+16(%rip), %rax movq %rax, -32(%rbp) movq l___const.print_gmode_name.E_name+24(%rip), %rax movq %rax, -24(%rbp) movl -52(%rbp), %eax sarl $6, %eax andl $15, %eax movl %eax, -56(%rbp) movl -52(%rbp), %eax sarl $4, %eax andl $3, %eax movl %eax, -60(%rbp) movl -52(%rbp), %eax andl $15, %eax movl %eax, -64(%rbp) cmpl $0, -56(%rbp) jne LBB35_2 ## %bb.1: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.18(%rip), %rsi movb $0, %al callq _fprintf jmp LBB35_24 LBB35_2: cmpl $2, -56(%rbp) je LBB35_14 ## %bb.3: cmpl $7, -56(%rbp) je LBB35_14 ## %bb.4: cmpl $3, -56(%rbp) je LBB35_14 ## %bb.5: movl -64(%rbp), %eax ## kill: def $rax killed $eax movq %rax, -72(%rbp) ## 8-byte Spill subq $8, %rax ja LBB35_12 ## %bb.27: movq -72(%rbp), %rax ## 8-byte Reload leaq LJTI35_0(%rip), %rcx movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax LBB35_6: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.79(%rip), %rsi movb $0, %al callq _fprintf jmp LBB35_13 LBB35_7: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.80(%rip), %rsi movb $0, %al callq _fprintf jmp LBB35_13 LBB35_8: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.81(%rip), %rsi movb $0, %al callq _fprintf jmp LBB35_13 LBB35_9: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.82(%rip), %rsi movb $0, %al callq _fprintf jmp LBB35_13 LBB35_10: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.83(%rip), %rsi movb $0, %al callq _fprintf jmp LBB35_13 LBB35_11: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.84(%rip), %rsi movb $0, %al callq _fprintf jmp LBB35_13 LBB35_12: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.23(%rip), %rsi movb $0, %al callq _fprintf LBB35_13: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movslq -60(%rbp), %rax movq -48(%rbp,%rax,8), %rdx leaq L_.str.85(%rip), %rsi movb $0, %al callq _fprintf LBB35_14: movl -56(%rbp), %eax decl %eax movl %eax, %ecx movq %rcx, -80(%rbp) ## 8-byte Spill subl $14, %eax ja LBB35_23 ## %bb.28: movq -80(%rbp), %rax ## 8-byte Reload leaq LJTI35_1(%rip), %rcx movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax LBB35_15: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.86(%rip), %rsi movb $0, %al callq _fprintf jmp LBB35_24 LBB35_16: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.66(%rip), %rsi movb $0, %al callq _fprintf jmp LBB35_24 LBB35_17: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.68(%rip), %rsi movb $0, %al callq _fprintf jmp LBB35_24 LBB35_18: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.87(%rip), %rsi movb $0, %al callq _fprintf jmp LBB35_24 LBB35_19: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.88(%rip), %rsi movb $0, %al callq _fprintf jmp LBB35_24 LBB35_20: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.89(%rip), %rsi movb $0, %al callq _fprintf jmp LBB35_24 LBB35_21: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.90(%rip), %rsi movb $0, %al callq _fprintf jmp LBB35_24 LBB35_22: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.91(%rip), %rsi movb $0, %al callq _fprintf jmp LBB35_24 LBB35_23: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.23(%rip), %rsi movb $0, %al callq _fprintf LBB35_24: movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB35_26 ## %bb.25: addq $80, %rsp popq %rbp retq LBB35_26: callq ___stack_chk_fail ud2 .cfi_endproc .p2align 2, 0x90 .data_region jt32 .set L35_0_set_10, LBB35_10-LJTI35_0 .set L35_0_set_7, LBB35_7-LJTI35_0 .set L35_0_set_8, LBB35_8-LJTI35_0 .set L35_0_set_9, LBB35_9-LJTI35_0 .set L35_0_set_6, LBB35_6-LJTI35_0 .set L35_0_set_12, LBB35_12-LJTI35_0 .set L35_0_set_11, LBB35_11-LJTI35_0 LJTI35_0: .long L35_0_set_10 .long L35_0_set_7 .long L35_0_set_8 .long L35_0_set_9 .long L35_0_set_6 .long L35_0_set_12 .long L35_0_set_12 .long L35_0_set_12 .long L35_0_set_11 .set L35_1_set_15, LBB35_15-LJTI35_1 .set L35_1_set_22, LBB35_22-LJTI35_1 .set L35_1_set_21, LBB35_21-LJTI35_1 .set L35_1_set_23, LBB35_23-LJTI35_1 .set L35_1_set_20, LBB35_20-LJTI35_1 .set L35_1_set_18, LBB35_18-LJTI35_1 .set L35_1_set_19, LBB35_19-LJTI35_1 .set L35_1_set_17, LBB35_17-LJTI35_1 .set L35_1_set_16, LBB35_16-LJTI35_1 LJTI35_1: .long L35_1_set_15 .long L35_1_set_22 .long L35_1_set_21 .long L35_1_set_23 .long L35_1_set_23 .long L35_1_set_23 .long L35_1_set_20 .long L35_1_set_23 .long L35_1_set_18 .long L35_1_set_23 .long L35_1_set_23 .long L35_1_set_23 .long L35_1_set_19 .long L35_1_set_17 .long L35_1_set_16 .end_data_region ## -- End function .p2align 4, 0x90 ## -- Begin function dump_gen_sum _dump_gen_sum: ## @dump_gen_sum .cfi_startproc ## %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 ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movl -4(%rbp), %edx movslq -4(%rbp), %rcx leaq _prev_gen_ins(%rip), %rax movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero movslq -4(%rbp), %rcx leaq _gen_ins(%rip), %rax movsd (%rax,%rcx,8), %xmm1 ## xmm1 = mem[0],zero movslq -4(%rbp), %rcx leaq _gen_outs(%rip), %rax movsd (%rax,%rcx,8), %xmm2 ## xmm2 = mem[0],zero movslq -4(%rbp), %rcx leaq _peak_gen_ins(%rip), %rax movsd (%rax,%rcx,8), %xmm3 ## xmm3 = mem[0],zero leaq L_.str.92(%rip), %rsi movb $4, %al callq _fprintf movl $0, -8(%rbp) LBB36_1: ## =>This Inner Loop Header: Depth=1 cmpl $256, -8(%rbp) ## imm = 0x100 jge LBB36_7 ## %bb.2: ## in Loop: Header=BB36_1 Depth=1 movslq -8(%rbp), %rcx leaq _gens(%rip), %rax movq (%rax,%rcx,8), %rax cmpl $0, 44(%rax) je LBB36_5 ## %bb.3: ## in Loop: Header=BB36_1 Depth=1 movslq -8(%rbp), %rcx leaq _gens(%rip), %rax movq (%rax,%rcx,8), %rax movl 32(%rax), %eax cmpl -4(%rbp), %eax jne LBB36_5 ## %bb.4: ## in Loop: Header=BB36_1 Depth=1 movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movl -8(%rbp), %edx leaq L_.str.93(%rip), %rsi movb $0, %al callq _fprintf LBB36_5: ## in Loop: Header=BB36_1 Depth=1 jmp LBB36_6 LBB36_6: ## in Loop: Header=BB36_1 Depth=1 movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) jmp LBB36_1 LBB36_7: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function print_mod_sum _print_mod_sum: ## @print_mod_sum .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl %edi, -4(%rbp) movl -4(%rbp), %eax andl $63, %eax movl %eax, -8(%rbp) movl -4(%rbp), %eax shrl $6, %eax andl $3, %eax movl %eax, %ecx movq %rcx, -16(%rbp) ## 8-byte Spill subl $3, %eax ja LBB37_23 ## %bb.24: movq -16(%rbp), %rax ## 8-byte Reload leaq LJTI37_0(%rip), %rcx movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax LBB37_1: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.94(%rip), %rsi movb $0, %al callq _fprintf movl -8(%rbp), %edi callq _dump_gen_sum jmp LBB37_23 LBB37_2: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.94(%rip), %rsi movb $0, %al callq _fprintf cmpl $0, -8(%rbp) jne LBB37_10 ## %bb.3: movsd _prev_mod_ins(%rip), %xmm0 ## xmm0 = mem[0],zero xorps %xmm1, %xmm1 ucomisd %xmm1, %xmm0 jne LBB37_7 jp LBB37_7 ## %bb.4: movsd _mod_ins(%rip), %xmm0 ## xmm0 = mem[0],zero xorps %xmm1, %xmm1 ucomisd %xmm1, %xmm0 jne LBB37_7 jp LBB37_7 ## %bb.5: movsd _mod_outs(%rip), %xmm0 ## xmm0 = mem[0],zero xorps %xmm1, %xmm1 ucomisd %xmm1, %xmm0 jne LBB37_7 jp LBB37_7 ## %bb.6: movsd _peak_mod_ins(%rip), %xmm0 ## xmm0 = mem[0],zero xorps %xmm1, %xmm1 ucomisd %xmm1, %xmm0 jne LBB37_7 jp LBB37_7 jmp LBB37_8 LBB37_7: xorl %edi, %edi callq _dump_mod_sum jmp LBB37_9 LBB37_8: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.95(%rip), %rsi movb $0, %al callq _fprintf LBB37_9: jmp LBB37_11 LBB37_10: movl -8(%rbp), %edi callq _dump_mod_sum LBB37_11: jmp LBB37_23 LBB37_12: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.96(%rip), %rsi movb $0, %al callq _fprintf cmpl $0, -8(%rbp) jne LBB37_20 ## %bb.13: movsd _prev_mod_ins(%rip), %xmm0 ## xmm0 = mem[0],zero xorps %xmm1, %xmm1 ucomisd %xmm1, %xmm0 jne LBB37_17 jp LBB37_17 ## %bb.14: movsd _mod_ins(%rip), %xmm0 ## xmm0 = mem[0],zero xorps %xmm1, %xmm1 ucomisd %xmm1, %xmm0 jne LBB37_17 jp LBB37_17 ## %bb.15: movsd _mod_outs(%rip), %xmm0 ## xmm0 = mem[0],zero xorps %xmm1, %xmm1 ucomisd %xmm1, %xmm0 jne LBB37_17 jp LBB37_17 ## %bb.16: movsd _peak_mod_ins(%rip), %xmm0 ## xmm0 = mem[0],zero xorps %xmm1, %xmm1 ucomisd %xmm1, %xmm0 jne LBB37_17 jp LBB37_17 jmp LBB37_18 LBB37_17: xorl %edi, %edi callq _dump_mod_sum jmp LBB37_19 LBB37_18: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.95(%rip), %rsi movb $0, %al callq _fprintf LBB37_19: jmp LBB37_21 LBB37_20: movl -8(%rbp), %edi callq _dump_mod_sum LBB37_21: jmp LBB37_23 LBB37_22: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movl -4(%rbp), %edx leaq L_.str.97(%rip), %rsi movb $0, %al callq _fprintf LBB37_23: addq $16, %rsp popq %rbp retq .cfi_endproc .p2align 2, 0x90 .data_region jt32 .set L37_0_set_1, LBB37_1-LJTI37_0 .set L37_0_set_2, LBB37_2-LJTI37_0 .set L37_0_set_12, LBB37_12-LJTI37_0 .set L37_0_set_22, LBB37_22-LJTI37_0 LJTI37_0: .long L37_0_set_1 .long L37_0_set_2 .long L37_0_set_12 .long L37_0_set_22 .end_data_region ## -- End function .p2align 4, 0x90 ## -- Begin function gen_mem_readers _gen_mem_readers: ## @gen_mem_readers .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, -4(%rbp) movl $0, -12(%rbp) movl $0, -8(%rbp) LBB38_1: ## =>This Inner Loop Header: Depth=1 cmpl $256, -8(%rbp) ## imm = 0x100 jge LBB38_7 ## %bb.2: ## in Loop: Header=BB38_1 Depth=1 movslq -8(%rbp), %rcx leaq _gens(%rip), %rax movq (%rax,%rcx,8), %rax cmpl $0, 44(%rax) je LBB38_5 ## %bb.3: ## in Loop: Header=BB38_1 Depth=1 movslq -8(%rbp), %rcx leaq _gens(%rip), %rax movq (%rax,%rcx,8), %rax movl 36(%rax), %eax cmpl -4(%rbp), %eax jne LBB38_5 ## %bb.4: ## in Loop: Header=BB38_1 Depth=1 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) LBB38_5: ## in Loop: Header=BB38_1 Depth=1 jmp LBB38_6 LBB38_6: ## in Loop: Header=BB38_1 Depth=1 movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) jmp LBB38_1 LBB38_7: movl $0, -8(%rbp) LBB38_8: ## =>This Inner Loop Header: Depth=1 cmpl $128, -8(%rbp) jge LBB38_18 ## %bb.9: ## in Loop: Header=BB38_8 Depth=1 movslq -8(%rbp), %rcx leaq _mods(%rip), %rax movq (%rax,%rcx,8), %rax movl 28(%rax), %eax sarl $4, %eax andl $31, %eax cmpl $0, %eax je LBB38_16 ## %bb.10: ## in Loop: Header=BB38_8 Depth=1 movslq -8(%rbp), %rcx leaq _mods(%rip), %rax movq (%rax,%rcx,8), %rax movl 16(%rax), %eax cmpl -4(%rbp), %eax jne LBB38_12 ## %bb.11: ## in Loop: Header=BB38_8 Depth=1 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) LBB38_12: ## in Loop: Header=BB38_8 Depth=1 movslq -8(%rbp), %rcx leaq _mods(%rip), %rax movq (%rax,%rcx,8), %rax movl 28(%rax), %eax sarl $4, %eax andl $31, %eax cmpl $7, %eax je LBB38_15 ## %bb.13: ## in Loop: Header=BB38_8 Depth=1 movslq -8(%rbp), %rcx leaq _mods(%rip), %rax movq (%rax,%rcx,8), %rax movl 20(%rax), %eax cmpl -4(%rbp), %eax jne LBB38_15 ## %bb.14: ## in Loop: Header=BB38_8 Depth=1 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) LBB38_15: ## in Loop: Header=BB38_8 Depth=1 jmp LBB38_16 LBB38_16: ## in Loop: Header=BB38_8 Depth=1 jmp LBB38_17 LBB38_17: ## in Loop: Header=BB38_8 Depth=1 movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) jmp LBB38_8 LBB38_18: movl -12(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ## -- Begin function gen_amp LCPI39_0: .quad 0x4000000000000000 ## double 2 LCPI39_1: .quad 0xc030000000000000 ## double -16 .section __TEXT,__text,regular,pure_instructions .p2align 4, 0x90 _gen_amp: ## @gen_amp .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 44(%rax), %eax sarl $6, %eax andl $15, %eax cmpl $0, %eax jne LBB39_2 ## %bb.1: xorps %xmm0, %xmm0 movsd %xmm0, -8(%rbp) jmp LBB39_10 LBB39_2: movq -16(%rbp), %rax movl 44(%rax), %eax sarl $4, %eax andl $3, %eax movl %eax, -20(%rbp) cmpl $3, -20(%rbp) je LBB39_4 ## %bb.3: cmpl $2, -20(%rbp) jne LBB39_5 LBB39_4: movq -16(%rbp), %rax movsd LCPI39_1(%rip), %xmm1 ## xmm1 = mem[0],zero mulsd 88(%rax), %xmm1 movsd LCPI39_0(%rip), %xmm0 ## xmm0 = mem[0],zero callq _pow movsd %xmm0, -32(%rbp) jmp LBB39_6 LBB39_5: movq -16(%rbp), %rax movsd 88(%rax), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -32(%rbp) LBB39_6: cmpl $1, -20(%rbp) je LBB39_8 ## %bb.7: cmpl $3, -20(%rbp) jne LBB39_9 LBB39_8: movq -16(%rbp), %rax movsd 96(%rax), %xmm0 ## xmm0 = mem[0],zero addsd -32(%rbp), %xmm0 movsd %xmm0, -8(%rbp) jmp LBB39_10 LBB39_9: movq -16(%rbp), %rax movsd 96(%rax), %xmm0 ## xmm0 = mem[0],zero subsd -32(%rbp), %xmm0 movsd %xmm0, -8(%rbp) LBB39_10: movsd -8(%rbp), %xmm0 ## xmm0 = mem[0],zero addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function mode_name _mode_name: ## @mode_name .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, -12(%rbp) movl -12(%rbp), %eax ## kill: def $rax killed $eax movq %rax, -24(%rbp) ## 8-byte Spill subq $29, %rax ja LBB40_23 ## %bb.25: movq -24(%rbp), %rax ## 8-byte Reload leaq LJTI40_0(%rip), %rcx movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax LBB40_1: leaq L_.str.18(%rip), %rax movq %rax, -8(%rbp) jmp LBB40_24 LBB40_2: leaq L_.str.98(%rip), %rax movq %rax, -8(%rbp) jmp LBB40_24 LBB40_3: leaq L_.str.99(%rip), %rax movq %rax, -8(%rbp) jmp LBB40_24 LBB40_4: leaq L_.str.100(%rip), %rax movq %rax, -8(%rbp) jmp LBB40_24 LBB40_5: leaq L_.str.101(%rip), %rax movq %rax, -8(%rbp) jmp LBB40_24 LBB40_6: leaq L_.str.102(%rip), %rax movq %rax, -8(%rbp) jmp LBB40_24 LBB40_7: leaq L_.str.103(%rip), %rax movq %rax, -8(%rbp) jmp LBB40_24 LBB40_8: leaq L_.str.104(%rip), %rax movq %rax, -8(%rbp) jmp LBB40_24 LBB40_9: leaq L_.str.105(%rip), %rax movq %rax, -8(%rbp) jmp LBB40_24 LBB40_10: leaq L_.str.106(%rip), %rax movq %rax, -8(%rbp) jmp LBB40_24 LBB40_11: leaq L_.str.107(%rip), %rax movq %rax, -8(%rbp) jmp LBB40_24 LBB40_12: leaq L_.str.108(%rip), %rax movq %rax, -8(%rbp) jmp LBB40_24 LBB40_13: leaq L_.str.109(%rip), %rax movq %rax, -8(%rbp) jmp LBB40_24 LBB40_14: leaq L_.str.110(%rip), %rax movq %rax, -8(%rbp) jmp LBB40_24 LBB40_15: leaq L_.str.111(%rip), %rax movq %rax, -8(%rbp) jmp LBB40_24 LBB40_16: leaq L_.str.112(%rip), %rax movq %rax, -8(%rbp) jmp LBB40_24 LBB40_17: leaq L_.str.113(%rip), %rax movq %rax, -8(%rbp) jmp LBB40_24 LBB40_18: leaq L_.str.114(%rip), %rax movq %rax, -8(%rbp) jmp LBB40_24 LBB40_19: leaq L_.str.115(%rip), %rax movq %rax, -8(%rbp) jmp LBB40_24 LBB40_20: leaq L_.str.116(%rip), %rax movq %rax, -8(%rbp) jmp LBB40_24 LBB40_21: leaq L_.str.117(%rip), %rax movq %rax, -8(%rbp) jmp LBB40_24 LBB40_22: leaq L_.str.118(%rip), %rax movq %rax, -8(%rbp) jmp LBB40_24 LBB40_23: leaq L_.str.23(%rip), %rax movq %rax, -8(%rbp) LBB40_24: movq -8(%rbp), %rax popq %rbp retq .cfi_endproc .p2align 2, 0x90 .data_region jt32 .set L40_0_set_1, LBB40_1-LJTI40_0 .set L40_0_set_23, LBB40_23-LJTI40_0 .set L40_0_set_2, LBB40_2-LJTI40_0 .set L40_0_set_3, LBB40_3-LJTI40_0 .set L40_0_set_4, LBB40_4-LJTI40_0 .set L40_0_set_5, LBB40_5-LJTI40_0 .set L40_0_set_6, LBB40_6-LJTI40_0 .set L40_0_set_7, LBB40_7-LJTI40_0 .set L40_0_set_8, LBB40_8-LJTI40_0 .set L40_0_set_9, LBB40_9-LJTI40_0 .set L40_0_set_10, LBB40_10-LJTI40_0 .set L40_0_set_11, LBB40_11-LJTI40_0 .set L40_0_set_12, LBB40_12-LJTI40_0 .set L40_0_set_13, LBB40_13-LJTI40_0 .set L40_0_set_14, LBB40_14-LJTI40_0 .set L40_0_set_15, LBB40_15-LJTI40_0 .set L40_0_set_16, LBB40_16-LJTI40_0 .set L40_0_set_17, LBB40_17-LJTI40_0 .set L40_0_set_18, LBB40_18-LJTI40_0 .set L40_0_set_19, LBB40_19-LJTI40_0 .set L40_0_set_20, LBB40_20-LJTI40_0 .set L40_0_set_21, LBB40_21-LJTI40_0 .set L40_0_set_22, LBB40_22-LJTI40_0 LJTI40_0: .long L40_0_set_1 .long L40_0_set_23 .long L40_0_set_2 .long L40_0_set_3 .long L40_0_set_4 .long L40_0_set_23 .long L40_0_set_5 .long L40_0_set_6 .long L40_0_set_7 .long L40_0_set_8 .long L40_0_set_23 .long L40_0_set_9 .long L40_0_set_10 .long L40_0_set_11 .long L40_0_set_23 .long L40_0_set_12 .long L40_0_set_13 .long L40_0_set_14 .long L40_0_set_23 .long L40_0_set_23 .long L40_0_set_15 .long L40_0_set_23 .long L40_0_set_16 .long L40_0_set_23 .long L40_0_set_17 .long L40_0_set_18 .long L40_0_set_19 .long L40_0_set_20 .long L40_0_set_21 .long L40_0_set_22 .end_data_region ## -- End function .p2align 4, 0x90 ## -- Begin function dump_mod_sum _dump_mod_sum: ## @dump_mod_sum .cfi_startproc ## %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 ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movl -4(%rbp), %edx movslq -4(%rbp), %rcx leaq _prev_mod_ins(%rip), %rax movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero movslq -4(%rbp), %rcx leaq _mod_ins(%rip), %rax movsd (%rax,%rcx,8), %xmm1 ## xmm1 = mem[0],zero movslq -4(%rbp), %rcx leaq _mod_outs(%rip), %rax movsd (%rax,%rcx,8), %xmm2 ## xmm2 = mem[0],zero movslq -4(%rbp), %rcx leaq _peak_mod_ins(%rip), %rax movsd (%rax,%rcx,8), %xmm3 ## xmm3 = mem[0],zero leaq L_.str.119(%rip), %rsi movb $4, %al callq _fprintf movl $0, -8(%rbp) LBB41_1: ## =>This Inner Loop Header: Depth=1 cmpl $128, -8(%rbp) jge LBB41_7 ## %bb.2: ## in Loop: Header=BB41_1 Depth=1 movslq -8(%rbp), %rcx leaq _mods(%rip), %rax movq (%rax,%rcx,8), %rax movl 28(%rax), %eax sarl $4, %eax andl $31, %eax cmpl $0, %eax je LBB41_5 ## %bb.3: ## in Loop: Header=BB41_1 Depth=1 movslq -8(%rbp), %rcx leaq _mods(%rip), %rax movq (%rax,%rcx,8), %rax movl 24(%rax), %eax andl $63, %eax cmpl -4(%rbp), %eax jne LBB41_5 ## %bb.4: ## in Loop: Header=BB41_1 Depth=1 movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movl -8(%rbp), %edx leaq L_.str.120(%rip), %rsi movb $0, %al callq _fprintf LBB41_5: ## in Loop: Header=BB41_1 Depth=1 jmp LBB41_6 LBB41_6: ## in Loop: Header=BB41_1 Depth=1 movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) jmp LBB41_1 LBB41_7: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function mod_mem_readers _mod_mem_readers: ## @mod_mem_readers .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, -4(%rbp) movl $0, -12(%rbp) movl $0, -8(%rbp) LBB42_1: ## =>This Inner Loop Header: Depth=1 cmpl $256, -8(%rbp) ## imm = 0x100 jge LBB42_7 ## %bb.2: ## in Loop: Header=BB42_1 Depth=1 movslq -8(%rbp), %rcx leaq _gens(%rip), %rax movq (%rax,%rcx,8), %rax cmpl $0, 44(%rax) je LBB42_5 ## %bb.3: ## in Loop: Header=BB42_1 Depth=1 movslq -8(%rbp), %rcx leaq _gens(%rip), %rax movq (%rax,%rcx,8), %rax movl 36(%rax), %eax movl -4(%rbp), %ecx addl $64, %ecx cmpl %ecx, %eax jne LBB42_5 ## %bb.4: ## in Loop: Header=BB42_1 Depth=1 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) LBB42_5: ## in Loop: Header=BB42_1 Depth=1 jmp LBB42_6 LBB42_6: ## in Loop: Header=BB42_1 Depth=1 movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) jmp LBB42_1 LBB42_7: movl $0, -8(%rbp) LBB42_8: ## =>This Inner Loop Header: Depth=1 cmpl $128, -8(%rbp) jge LBB42_20 ## %bb.9: ## in Loop: Header=BB42_8 Depth=1 movslq -8(%rbp), %rcx leaq _mods(%rip), %rax movq (%rax,%rcx,8), %rax movl 28(%rax), %eax sarl $4, %eax andl $31, %eax cmpl $0, %eax je LBB42_18 ## %bb.10: ## in Loop: Header=BB42_8 Depth=1 movslq -8(%rbp), %rcx leaq _mods(%rip), %rax movq (%rax,%rcx,8), %rax movl 16(%rax), %eax movl -4(%rbp), %ecx addl $64, %ecx cmpl %ecx, %eax je LBB42_12 ## %bb.11: ## in Loop: Header=BB42_8 Depth=1 movslq -8(%rbp), %rcx leaq _mods(%rip), %rax movq (%rax,%rcx,8), %rax movl 16(%rax), %eax movl -4(%rbp), %ecx addl $128, %ecx cmpl %ecx, %eax jne LBB42_13 LBB42_12: ## in Loop: Header=BB42_8 Depth=1 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) LBB42_13: ## in Loop: Header=BB42_8 Depth=1 movslq -8(%rbp), %rcx leaq _mods(%rip), %rax movq (%rax,%rcx,8), %rax movl 28(%rax), %eax sarl $4, %eax andl $31, %eax cmpl $7, %eax je LBB42_17 ## %bb.14: ## in Loop: Header=BB42_8 Depth=1 movslq -8(%rbp), %rcx leaq _mods(%rip), %rax movq (%rax,%rcx,8), %rax movl 20(%rax), %eax movl -4(%rbp), %ecx addl $64, %ecx cmpl %ecx, %eax je LBB42_16 ## %bb.15: ## in Loop: Header=BB42_8 Depth=1 movslq -8(%rbp), %rcx leaq _mods(%rip), %rax movq (%rax,%rcx,8), %rax movl 20(%rax), %eax movl -4(%rbp), %ecx addl $128, %ecx cmpl %ecx, %eax jne LBB42_17 LBB42_16: ## in Loop: Header=BB42_8 Depth=1 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) LBB42_17: ## in Loop: Header=BB42_8 Depth=1 jmp LBB42_18 LBB42_18: ## in Loop: Header=BB42_8 Depth=1 jmp LBB42_19 LBB42_19: ## in Loop: Header=BB42_8 Depth=1 movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) jmp LBB42_8 LBB42_20: movl -12(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function gen_is_active _gen_is_active: ## @gen_is_active .cfi_startproc ## %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 44(%rax), %edi callq _osc_is_running movb %al, %cl xorl %eax, %eax ## kill: def $al killed $al killed $eax testb $1, %cl movb %al, -9(%rbp) ## 1-byte Spill jne LBB43_1 jmp LBB43_3 LBB43_1: movq -8(%rbp), %rcx xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $0, 24(%rcx) movb %al, -9(%rbp) ## 1-byte Spill je LBB43_3 ## %bb.2: movq -8(%rbp), %rax cmpl $0, 4(%rax) setne %al movb %al, -9(%rbp) ## 1-byte Spill LBB43_3: movb -9(%rbp), %al ## 1-byte Reload andb $1, %al movzbl %al, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function bad_mode _bad_mode: ## @bad_mode .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, -8(%rbp) movl -8(%rbp), %eax sarl $6, %eax andl $15, %eax movl %eax, -12(%rbp) movl -8(%rbp), %eax sarl $4, %eax andl $3, %eax movl %eax, -16(%rbp) movl -8(%rbp), %eax andl $15, %eax movl %eax, -20(%rbp) cmpl $2, -12(%rbp) je LBB44_8 ## %bb.1: cmpl $7, -12(%rbp) je LBB44_8 ## %bb.2: cmpl $3, -12(%rbp) je LBB44_8 ## %bb.3: cmpl $0, -12(%rbp) je LBB44_8 ## %bb.4: movl -20(%rbp), %eax movl %eax, -24(%rbp) ## 4-byte Spill subl $5, %eax jb LBB44_5 jmp LBB44_13 LBB44_13: movl -24(%rbp), %eax ## 4-byte Reload subl $8, %eax jne LBB44_6 jmp LBB44_5 LBB44_5: jmp LBB44_7 LBB44_6: movb $1, -1(%rbp) jmp LBB44_12 LBB44_7: jmp LBB44_8 LBB44_8: movl -12(%rbp), %eax movl %eax, -28(%rbp) ## 4-byte Spill subl $4, %eax jb LBB44_9 jmp LBB44_14 LBB44_14: movl -28(%rbp), %eax ## 4-byte Reload subl $7, %eax je LBB44_9 jmp LBB44_15 LBB44_15: movl -28(%rbp), %eax ## 4-byte Reload subl $9, %eax je LBB44_9 jmp LBB44_16 LBB44_16: movl -28(%rbp), %eax ## 4-byte Reload addl $-13, %eax subl $2, %eax ja LBB44_10 jmp LBB44_9 LBB44_9: jmp LBB44_11 LBB44_10: movb $1, -1(%rbp) jmp LBB44_12 LBB44_11: movb $0, -1(%rbp) LBB44_12: movb -1(%rbp), %al andb $1, %al movzbl %al, %eax popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function print_mod_read_name _print_mod_read_name: ## @print_mod_read_name .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $64, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl %edi, -52(%rbp) movq l___const.print_mod_read_name.mem_names(%rip), %rax movq %rax, -48(%rbp) movq l___const.print_mod_read_name.mem_names+8(%rip), %rax movq %rax, -40(%rbp) movq l___const.print_mod_read_name.mem_names+16(%rip), %rax movq %rax, -32(%rbp) movq l___const.print_mod_read_name.mem_names+24(%rip), %rax movq %rax, -24(%rbp) movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movl -52(%rbp), %eax sarl $6, %eax andl $3, %eax cltq movq -48(%rbp,%rax,8), %rdx leaq L_.str.181(%rip), %rsi movb $0, %al callq _fprintf movl -52(%rbp), %eax andl $63, %eax cmpl $0, %eax jne LBB45_3 ## %bb.1: movl -52(%rbp), %eax sarl $6, %eax andl $3, %eax cmpl $0, %eax je LBB45_3 ## %bb.2: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.95(%rip), %rsi movb $0, %al callq _fprintf jmp LBB45_4 LBB45_3: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movl -52(%rbp), %edx andl $63, %edx leaq L_.str.4(%rip), %rsi movb $0, %al callq _fprintf LBB45_4: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.182(%rip), %rsi movb $0, %al callq _fprintf movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB45_6 ## %bb.5: addq $64, %rsp popq %rbp retq LBB45_6: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _snd_file ## @snd_file .zerofill __DATA,__common,_snd_file,8,3 .globl _read_data_file ## @read_data_file .zerofill __DATA,__common,_read_data_file,8,3 .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "sam filename [read_data file] [srate]\n" .zerofill __DATA,__bss,_filename,8,3 ## @filename L_.str.1: ## @.str.1 .asciz "r" L_.str.2: ## @.str.2 .asciz "can't find %s\n" L_.str.3: ## @.str.3 .asciz "%s is empty\n" L_.str.4: ## @.str.4 .asciz "%d" .section __DATA,__data .p2align 2 ## @srate _srate: .long 1 ## 0x1 .section __TEXT,__cstring,cstring_literals L_.str.5: ## @.str.5 .asciz "32\n" .zerofill __DATA,__bss,_total_commands,4,2 ## @total_commands .zerofill __DATA,__bss,_current_command,4,2 ## @current_command L_.str.6: ## @.str.6 .asciz "36\n" .zerofill __DATA,__bss,_gen_outs,512,4 ## @gen_outs .zerofill __DATA,__bss,_gen_ins,512,4 ## @gen_ins .zerofill __DATA,__bss,_mod_outs,512,4 ## @mod_outs .zerofill __DATA,__bss,_mod_ins,512,4 ## @mod_ins .zerofill __DATA,__bss,_prev_mod_ins,512,4 ## @prev_mod_ins .zerofill __DATA,__bss,_prev_gen_ins,512,4 ## @prev_gen_ins .zerofill __DATA,__bss,_peak_mod_ins,512,4 ## @peak_mod_ins .zerofill __DATA,__bss,_peak_gen_ins,512,4 ## @peak_gen_ins .zerofill __DATA,__bss,_gens,2048,4 ## @gens .zerofill __DATA,__bss,_mods,1024,4 ## @mods .zerofill __DATA,__bss,_dlys,256,4 ## @dlys .zerofill __DATA,__bss,_delay_memory,524288,4 ## @delay_memory .zerofill __DATA,__bss,_dac_out,16,4 ## @dac_out .zerofill __DATA,__bss,_dac_out_peak,16,4 ## @dac_out_peak .zerofill __DATA,__bss,_tick,4,2 ## @tick .zerofill __DATA,__bss,_pass,4,2 ## @pass .section __DATA,__data .p2align 2 ## @start_describing _start_describing: .long 4294967295 ## 0xffffffff .zerofill __DATA,__bss,_samples,4,2 ## @samples .p2align 2 ## @stop_describing _stop_describing: .long 4294967295 ## 0xffffffff .zerofill __DATA,__bss,_describe_commands,1,0 ## @describe_commands .section __TEXT,__cstring,cstring_literals L_.str.7: ## @.str.7 .asciz "impossible command\n" L_.str.8: ## @.str.8 .asciz "set base, clear index" L_.str.9: ## @.str.9 .asciz "set index" L_.str.10: ## @.str.10 .asciz "set size" L_.str.11: ## @.str.11 .asciz "un-used!" .section __DATA,__const .p2align 4 ## @__const.dly_command.UU_name l___const.dly_command.UU_name: .quad L_.str.8 .quad L_.str.9 .quad L_.str.10 .quad L_.str.11 .section __TEXT,__cstring,cstring_literals L_.str.12: ## @.str.12 .asciz "unknown delay command!\n" L_.str.13: ## @.str.13 .asciz "d%d %s" L_.str.14: ## @.str.14 .asciz ": X: %d" L_.str.15: ## @.str.15 .asciz ": Y: %d" L_.str.16: ## @.str.16 .asciz ": Z: %d, P: %s" L_.str.17: ## @.str.17 .asciz "\n" L_.str.18: ## @.str.18 .asciz "inactive" L_.str.19: ## @.str.19 .asciz "line" L_.str.20: ## @.str.20 .asciz "tap" L_.str.21: ## @.str.21 .asciz "table" L_.str.22: ## @.str.22 .asciz "rtable" L_.str.23: ## @.str.23 .asciz "unknown" L_.str.24: ## @.str.24 .asciz "noop" L_.str.25: ## @.str.25 .asciz "load DX" L_.str.26: ## @.str.26 .asciz "TTL-A" L_.str.27: ## @.str.27 .asciz "TTL-B" .section __DATA,__const .p2align 4 ## @__const.misc_command.RR_name l___const.misc_command.RR_name: .quad L_.str.24 .quad L_.str.25 .quad L_.str.26 .quad L_.str.27 .section __TEXT,__cstring,cstring_literals L_.str.28: ## @.str.28 .asciz "sam: %d, %s%s%s%s\n" L_.str.29: ## @.str.29 .space 1 L_.str.30: ## @.str.30 .asciz ", clear waits" L_.str.31: ## @.str.31 .asciz ", clear pauses" L_.str.32: ## @.str.32 .asciz ", stop clock" .zerofill __DATA,__bss,_DX,4,2 ## @DX L_.str.33: ## @.str.33 .asciz "sam: %x: stop clock?\n" L_.str.34: ## @.str.34 .asciz "gen mode set overflow\n" L_.str.35: ## @.str.35 .asciz "set highest processing tick" L_.str.36: ## @.str.36 .asciz "set highest tick" .section __DATA,__const .p2align 4 ## @__const.ticks_command.Q_name l___const.ticks_command.Q_name: .quad L_.str.35 .quad L_.str.36 .zerofill __DATA,__bss,_bit_31_warned,1,0 ## @bit_31_warned .section __TEXT,__cstring,cstring_literals L_.str.37: ## @.str.37 .asciz "ticks bit 31 is on?\n" .zerofill __DATA,__bss,_processing_ticks,4,2 ## @processing_ticks .zerofill __DATA,__bss,_highest_tick_per_pass,4,2 ## @highest_tick_per_pass L_.str.38: ## @.str.38 .asciz "sam %s: %d" L_.str.39: ## @.str.39 .asciz " (%d Hz)" .section __TEXT,__const .p2align 4 ## @__const.ticks_command.header_info l___const.ticks_command.header_info: .long 1179011410 ## 0x46464952 .long 88 ## 0x58 .long 1163280727 ## 0x45564157 .long 1263424842 ## 0x4b4e554a .long 28 ## 0x1c .long 0 ## 0x0 .long 0 ## 0x0 .long 0 ## 0x0 .long 0 ## 0x0 .long 0 ## 0x0 .long 0 ## 0x0 .long 0 ## 0x0 .long 544501094 ## 0x20746d66 .long 16 ## 0x10 .long 262147 ## 0x40003 .long 44100 ## 0xac44 .long 705600 ## 0xac440 .long 2097168 ## 0x200010 .long 1635017060 ## 0x61746164 .long 16 ## 0x10 .long 0 ## 0x0 .long 0 ## 0x0 .long 0 ## 0x0 .long 0 ## 0x0 .zerofill __DATA,__bss,_output_filename,8,3 ## @output_filename .section __TEXT,__cstring,cstring_literals L_.str.40: ## @.str.40 .asciz "wav" L_.str.41: ## @.str.41 .asciz "w" L_.str.42: ## @.str.42 .asciz "can't open test.snd!\n" L_.str.43: ## @.str.43 .asciz "set pass" L_.str.44: ## @.str.44 .asciz "linger" L_.str.45: ## @.str.45 .asciz "clear pass and linger" .section __DATA,__const .p2align 4 ## @__const.timer_command.TT_name l___const.timer_command.TT_name: .quad L_.str.24 .quad L_.str.43 .quad L_.str.44 .quad L_.str.45 .section __TEXT,__cstring,cstring_literals L_.str.46: ## @.str.46 .asciz "sam %s: %d at sample %d %.4f\n" L_.str.47: ## @.str.47 .asciz "no ticks setting found!\n" .section __DATA,__data .p2align 2 ## @dump_patch_at _dump_patch_at: .long 4294967295 ## 0xffffffff .zerofill __DATA,__bss,_read_data_warned,1,0 ## @read_data_warned .section __TEXT,__cstring,cstring_literals L_.str.48: ## @.str.48 .asciz "read data?!?\n" L_.str.49: ## @.str.49 .asciz "reserved modifier mode?\n" L_.str.50: ## @.str.50 .asciz "write %d %d NaN!\n" .zerofill __DATA,__bss,_table_read_warned,1,0 ## @table_read_warned L_.str.51: ## @.str.51 .asciz "table lookup read is unlikely to work.\n" .zerofill __DATA,__bss,_table_write_warned,1,0 ## @table_write_warned L_.str.52: ## @.str.52 .asciz "table lookup write is unlikely to work.\n" L_.str.53: ## @.str.53 .asciz "sample: %d, command: %d, " L_.str.54: ## @.str.54 .asciz "active gens: %d, " L_.str.55: ## @.str.55 .asciz "active mods: %d, " L_.str.56: ## @.str.56 .asciz "active delays: %d\n\n" L_.str.57: ## @.str.57 .asciz "g%d " L_.str.58: ## @.str.58 .asciz " [" L_.str.59: ## @.str.59 .asciz "]->[" L_.str.60: ## @.str.60 .asciz "OUT%d" L_.str.61: ## @.str.61 .asciz " (%d)], (amp: %.3f, freq: %.3f" L_.str.62: ## @.str.62 .asciz ", phase: %.3f" L_.str.63: ## @.str.63 .asciz ")\n" L_.str.64: ## @.str.64 .asciz "m%d %s " L_.str.65: ## @.str.65 .asciz "%.4f * " L_.str.66: ## @.str.66 .asciz "A" L_.str.67: ## @.str.67 .asciz "], " L_.str.68: ## @.str.68 .asciz "B" L_.str.69: ## @.str.69 .asciz "[delay: %d (%.4f)" L_.str.70: ## @.str.70 .asciz ", M0: %.4f, M1: %.4f, L0: %.4f, L1: %.4f" L_.str.71: ## @.str.71 .asciz "-replace" L_.str.72: ## @.str.72 .asciz " (%d)]\n" L_.str.73: ## @.str.73 .asciz "d%d %s %.3f (%d + %d of %d)\n" L_.str.74: ## @.str.74 .asciz "delay memory peak: %.4f\n\n" L_.str.75: ## @.str.75 .asciz "L-Q" L_.str.76: ## @.str.76 .asciz "L+Q" L_.str.77: ## @.str.77 .asciz "L-2^Q" L_.str.78: ## @.str.78 .asciz "L+2^Q" .section __DATA,__const .p2align 4 ## @__const.print_gmode_name.E_name l___const.print_gmode_name.E_name: .quad L_.str.75 .quad L_.str.76 .quad L_.str.77 .quad L_.str.78 .section __TEXT,__cstring,cstring_literals L_.str.79: ## @.str.79 .asciz "ncos" L_.str.80: ## @.str.80 .asciz "saw" L_.str.81: ## @.str.81 .asciz "square" L_.str.82: ## @.str.82 .asciz "pulse" L_.str.83: ## @.str.83 .asciz "sin" L_.str.84: ## @.str.84 .asciz "sin+fm" L_.str.85: ## @.str.85 .asciz "-%s-" L_.str.86: ## @.str.86 .asciz "pause" L_.str.87: ## @.str.87 .asciz "wait" L_.str.88: ## @.str.88 .asciz "C" L_.str.89: ## @.str.89 .asciz "rd" L_.str.90: ## @.str.90 .asciz "wrt" L_.str.91: ## @.str.91 .asciz "DAC" L_.str.92: ## @.str.92 .asciz "g-sum%d: %.3f %.3f %.3f [max: %.3f]" L_.str.93: ## @.str.93 .asciz " g%d" L_.str.94: ## @.str.94 .asciz "[" L_.str.95: ## @.str.95 .asciz "zero" L_.str.96: ## @.str.96 .asciz "-out[" L_.str.97: ## @.str.97 .asciz "[illegal: %d" L_.str.98: ## @.str.98 .asciz "noise" L_.str.99: ## @.str.99 .asciz "triggered-noise" L_.str.100: ## @.str.100 .asciz "latch" L_.str.101: ## @.str.101 .asciz "thresh" L_.str.102: ## @.str.102 .asciz "delay" L_.str.103: ## @.str.103 .asciz "2pole" L_.str.104: ## @.str.104 .asciz "2pole-M0" L_.str.105: ## @.str.105 .asciz "2pole-M1" L_.str.106: ## @.str.106 .asciz "2zero" L_.str.107: ## @.str.107 .asciz "2zero-M0" L_.str.108: ## @.str.108 .asciz "2zero-M1" L_.str.109: ## @.str.109 .asciz "int-mix" L_.str.110: ## @.str.110 .asciz "1pole" L_.str.111: ## @.str.111 .asciz "mix" L_.str.112: ## @.str.112 .asciz "1zero" L_.str.113: ## @.str.113 .asciz "multiply" L_.str.114: ## @.str.114 .asciz "am" L_.str.115: ## @.str.115 .asciz "max" L_.str.116: ## @.str.116 .asciz "min" L_.str.117: ## @.str.117 .asciz "signum" L_.str.118: ## @.str.118 .asciz "0cross" L_.str.119: ## @.str.119 .asciz "m-sum%d: %.3f %.3f %.3f [max: %.3f]" L_.str.120: ## @.str.120 .asciz " m%d" L_.str.121: ## @.str.121 .asciz "right adjusted" L_.str.122: ## @.str.122 .asciz "left adjusted + DX" .section __DATA,__const .p2align 4 ## @__const.gq_command.E_name l___const.gq_command.E_name: .quad L_.str.121 .quad L_.str.122 .section __TEXT,__cstring,cstring_literals L_.str.123: ## @.str.123 .asciz "g%d amp: %s, %d %.4f\n" L_.str.124: ## @.str.124 .asciz "g%d amp: %s, %d = %d %.4f (DX: %d)\n" .section __DATA,__const .p2align 4 ## @__const.gj_command.E_name l___const.gj_command.E_name: .quad L_.str.121 .quad L_.str.122 .section __TEXT,__cstring,cstring_literals L_.str.125: ## @.str.125 .asciz "g%d freq: %s, %d %.4f (%.4f Hz)\n" L_.str.126: ## @.str.126 .asciz "g%d freq: %s (DX: %d), %d = %d %.4f (%.4f Hz)\n" .zerofill __DATA,__bss,_last_GMODE_command,4,2 ## @last_GMODE_command L_.str.127: ## @.str.127 .asciz "sample %d (%.3f), command %d, stray freq: g%d %.4f from %.4f (last mode sample: %d), data: %d\n" L_.str.128: ## @.str.128 .asciz "g%d amp change: %d (%.4f/sec), amp: %.4f\n" L_.str.129: ## @.str.129 .asciz ", clear GS" L_.str.130: ## @.str.130 .asciz ", set GS to 1" L_.str.131: ## @.str.131 .asciz ", GS reserved?" .section __DATA,__const .p2align 4 ## @__const.gn_command.SS_name l___const.gn_command.SS_name: .quad L_.str.129 .quad L_.str.130 .quad L_.str.29 .quad L_.str.131 .section __TEXT,__cstring,cstring_literals L_.str.132: ## @.str.132 .asciz "g%d sum-memory shift:%s\n" L_.str.133: ## @.str.133 .asciz "g%d ncos scale: %d%s\n" L_.str.134: ## @.str.134 .asciz "g%d ncos: %d%s\n" L_.str.135: ## @.str.135 .asciz "g%d ncos: %d%s, scale: %d\n" L_.str.136: ## @.str.136 .asciz "g%d: noop\n" L_.str.137: ## @.str.137 .asciz "g%d outloc: gen-outs[%d]\n" L_.str.138: ## @.str.138 .asciz "g%d amp offset: %d = %.4f\n" L_.str.139: ## @.str.139 .asciz "g%d outloc: gen-outs[%d] + amp offset: %d = %.4f\n" L_.str.140: ## @.str.140 .asciz "sample %d (%.3f), command %d, possible gen output loc overflow: g%d %d\n" L_.str.141: ## @.str.141 .asciz "sample %d (%.3f), command %d, stray output loc: g%d %d from %d (last mode sample: %d)\n" L_.str.142: ## @.str.142 .asciz "g%d phase: %d %.4f\n" L_.str.143: ## @.str.143 .asciz "sample %d (%.3f), command %d, stray phase: g%d %.4f (last mode sample: %d)\n" L_.str.144: ## @.str.144 .asciz "mode: " L_.str.145: ## @.str.145 .asciz ", " L_.str.146: ## @.str.146 .asciz "inloc: %s[%d]" L_.str.147: ## @.str.147 .asciz "gen-ins" L_.str.148: ## @.str.148 .asciz "mod-ins" L_.str.149: ## @.str.149 .asciz "clear phase" L_.str.150: ## @.str.150 .asciz "sample %d (%.3f), command %d, bad mode: g%d %x\n" L_.str.151: ## @.str.151 .asciz "sample %d (%.3f), command %d, g%d cannot actually run (procticks: %d)\n" L_.str.152: ## @.str.152 .asciz "sample %d (%.3f), command %d, stray input loc: g%d %d from %d (last mode sample: %d)\n" L_.str.153: ## @.str.153 .asciz "sample %d (%.3f), command %d, stray mode: g%d " L_.str.154: ## @.str.154 .asciz " from " L_.str.155: ## @.str.155 .asciz " (last mode sample: %d)\n" L_.str.156: ## @.str.156 .asciz "g%d DAC out: %d\n" L_.str.157: ## @.str.157 .asciz "g%d freq change: %d %.4f (%.4f Hz/sec), freq: %.4f\n" L_.str.158: ## @.str.158 .asciz "m%d M0: %d: %d %.6f\n" L_.str.159: ## @.str.159 .asciz "m%d M1: %d: %d %.6f\n" L_.str.160: ## @.str.160 .asciz "m%d M0+DX: data: %d + DX: %d (scl: %d), %d -> %d, %.6f -> %.6f\n" L_.str.161: ## @.str.161 .asciz "m%d M1+DX: data: %d + DX: %d (scl: %d), %d -> %d, %.6f -> %.6f\n" L_.str.162: ## @.str.162 .asciz "m%d L0: %d: %d %.6f\n" L_.str.163: ## @.str.163 .asciz "m%d L1: %d: %d %.6f\n" L_.str.164: ## @.str.164 .asciz "m%d " L_.str.165: ## @.str.165 .asciz "mode: %s" L_.str.166: ## @.str.166 .asciz "AA: %d, BB: %d (M0: %d, %.3f, M1: %d, %.3f)" L_.str.167: ## @.str.167 .asciz "outloc(%s): mod-outs[%d]" L_.str.168: ## @.str.168 .asciz "+" L_.str.169: ## @.str.169 .asciz "=" L_.str.170: ## @.str.170 .asciz "L0=0" L_.str.171: ## @.str.171 .asciz "sample %d (%.3f), command %d, m%d cannot actually run (procticks: %d)\n" L_.str.172: ## @.str.172 .asciz "m%d inlocs:" L_.str.173: ## @.str.173 .asciz ", delay: %d" L_.str.174: ## @.str.174 .asciz ", MRM: " L_.str.175: ## @.str.175 .asciz ", MIN: " L_.str.176: ## @.str.176 .asciz ", trunc off" L_.str.177: ## @.str.177 .asciz ", trunc on" L_.str.178: ## @.str.178 .asciz ", L1=0" L_.str.179: ## @.str.179 .asciz "mod-outs" L_.str.180: ## @.str.180 .asciz "oops" .section __DATA,__const .p2align 4 ## @__const.print_mod_read_name.mem_names l___const.print_mod_read_name.mem_names: .quad L_.str.147 .quad L_.str.148 .quad L_.str.179 .quad L_.str.180 .section __TEXT,__cstring,cstring_literals L_.str.181: ## @.str.181 .asciz "%s[" L_.str.182: ## @.str.182 .asciz "]" L_.str.183: ## @.str.183 .asciz "r+" L_.str.184: ## @.str.184 .asciz "%s: %dHz, %d samples, %.4f secs" L_.str.185: ## @.str.185 .asciz ", maxamps: %.3f %.3f %.3f %.3f\n" .subsections_via_symbols
the_stack_data/22012833.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/67324462.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] 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 b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 mov x9, sp sub x8, x29, #16 str x8, [x9] sub x8, x29, #28 str x8, [x9, #8] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _scanf subs w8, w0, #2 cset w8, ne tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldur d0, [x29, #-16] ldur w0, [x29, #-28] bl _powercheck stur d0, [x29, #-24] ldur d1, [x29, #-16] ldur w8, [x29, #-28] ; implicit-def: $x9 mov x9, x8 ldur d0, [x29, #-24] mov x8, sp str d1, [x8] str x9, [x8, #8] str d0, [x8, #16] adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf b LBB0_1 LBB0_3: adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _printf mov w0, #0 ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .globl _powercheck ; -- Begin function powercheck .p2align 2 _powercheck: ; @powercheck .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur d0, [x29, #-8] stur w0, [x29, #-12] ldur d0, [x29, #-8] fcmp d0, #0.0 cset w8, ne tbnz w8, #0, LBB1_5 b LBB1_1 LBB1_1: ldur w8, [x29, #-12] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB1_3 b LBB1_2 LBB1_2: adrp x0, l_.str.7@PAGE add x0, x0, l_.str.7@PAGEOFF bl _printf fmov d0, #1.00000000 str d0, [sp, #8] b LBB1_4 LBB1_3: movi d0, #0000000000000000 str d0, [sp, #8] b LBB1_4 LBB1_4: b LBB1_11 LBB1_5: ldur w9, [x29, #-12] mov w8, #0 subs w9, w9, #0 cset w10, lt mov w9, #1 and w10, w10, #0x1 ands w10, w10, #0x1 csinc w8, w8, wzr, eq subs w8, w8, #0 cset w8, ne and w8, w8, w9 sturb w8, [x29, #-13] ldur w8, [x29, #-12] subs w8, w8, #0 cset w8, ge tbnz w8, #0, LBB1_7 b LBB1_6 LBB1_6: ldur w9, [x29, #-12] mov w8, #0 subs w8, w8, w9 str w8, [sp, #4] ; 4-byte Folded Spill b LBB1_8 LBB1_7: ldur w8, [x29, #-12] str w8, [sp, #4] ; 4-byte Folded Spill b LBB1_8 LBB1_8: ldr w8, [sp, #4] ; 4-byte Folded Reload stur w8, [x29, #-12] ldur d0, [x29, #-8] ldur w0, [x29, #-12] bl _power str d0, [sp, #8] ldurb w8, [x29, #-13] tbz w8, #0, LBB1_10 b LBB1_9 LBB1_9: ldr d1, [sp, #8] fmov d0, #1.00000000 fdiv d0, d0, d1 str d0, [sp, #8] b LBB1_10 LBB1_10: b LBB1_11 LBB1_11: ldr d0, [sp, #8] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _power ; -- Begin function power .p2align 2 _power: ; @power .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 d0, [sp, #16] str w0, [sp, #12] ldr w8, [sp, #12] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB2_2 b LBB2_1 LBB2_1: fmov d0, #1.00000000 stur d0, [x29, #-8] b LBB2_3 LBB2_2: ldr d0, [sp, #16] str d0, [sp] ; 8-byte Folded Spill ldr d0, [sp, #16] ldr w8, [sp, #12] subs w0, w8, #1 bl _power fmov d1, d0 ldr d0, [sp] ; 8-byte Folded Reload fmul d0, d0, d1 stur d0, [x29, #-8] b LBB2_3 LBB2_3: ldur d0, [x29, #-8] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Enter a number and the positive integer power" l_.str.1: ; @.str.1 .asciz " to which\nthe number will be raised to. Enter q" l_.str.2: ; @.str.2 .asciz " to quit.\n" l_.str.3: ; @.str.3 .asciz "%lf%d" l_.str.4: ; @.str.4 .asciz "%.3g to the power %d is %.5g\n" l_.str.5: ; @.str.5 .asciz "Enter next pair of numbers or q to quit.\n" l_.str.6: ; @.str.6 .asciz "Hope you enjoyed this power trip -- bye!\n" l_.str.7: ; @.str.7 .asciz "0 to the 0 is undefined. We wil use 1 for simplicity.\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl $0, -4(%rbp) leaq L_.str(%rip), %rdi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf LBB0_1: ## =>This Inner Loop Header: Depth=1 leaq L_.str.3(%rip), %rdi leaq -16(%rbp), %rsi leaq -28(%rbp), %rdx movb $0, %al callq _scanf cmpl $2, %eax jne LBB0_3 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movsd -16(%rbp), %xmm0 ## xmm0 = mem[0],zero movl -28(%rbp), %edi callq _powercheck movsd %xmm0, -24(%rbp) movsd -16(%rbp), %xmm0 ## xmm0 = mem[0],zero movl -28(%rbp), %esi movsd -24(%rbp), %xmm1 ## xmm1 = mem[0],zero leaq L_.str.4(%rip), %rdi movb $2, %al callq _printf leaq L_.str.5(%rip), %rdi movb $0, %al callq _printf jmp LBB0_1 LBB0_3: leaq L_.str.6(%rip), %rdi movb $0, %al callq _printf xorl %eax, %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ## -- Begin function powercheck LCPI1_0: .quad 0x3ff0000000000000 ## double 1 .section __TEXT,__text,regular,pure_instructions .globl _powercheck .p2align 4, 0x90 _powercheck: ## @powercheck .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 movsd %xmm0, -8(%rbp) movl %edi, -12(%rbp) movsd -8(%rbp), %xmm0 ## xmm0 = mem[0],zero xorps %xmm1, %xmm1 ucomisd %xmm1, %xmm0 jne LBB1_5 jp LBB1_5 ## %bb.1: cmpl $0, -12(%rbp) jne LBB1_3 ## %bb.2: leaq L_.str.7(%rip), %rdi movb $0, %al callq _printf movsd LCPI1_0(%rip), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -24(%rbp) jmp LBB1_4 LBB1_3: xorps %xmm0, %xmm0 movsd %xmm0, -24(%rbp) LBB1_4: jmp LBB1_11 LBB1_5: movl -12(%rbp), %edx xorl %eax, %eax movl $1, %ecx cmpl $0, %edx cmovll %ecx, %eax cmpl $0, %eax setne %al andb $1, %al movb %al, -13(%rbp) cmpl $0, -12(%rbp) jge LBB1_7 ## %bb.6: xorl %eax, %eax subl -12(%rbp), %eax movl %eax, -28(%rbp) ## 4-byte Spill jmp LBB1_8 LBB1_7: movl -12(%rbp), %eax movl %eax, -28(%rbp) ## 4-byte Spill LBB1_8: movl -28(%rbp), %eax ## 4-byte Reload movl %eax, -12(%rbp) movsd -8(%rbp), %xmm0 ## xmm0 = mem[0],zero movl -12(%rbp), %edi callq _power movsd %xmm0, -24(%rbp) testb $1, -13(%rbp) je LBB1_10 ## %bb.9: movsd LCPI1_0(%rip), %xmm0 ## xmm0 = mem[0],zero divsd -24(%rbp), %xmm0 movsd %xmm0, -24(%rbp) LBB1_10: jmp LBB1_11 LBB1_11: movsd -24(%rbp), %xmm0 ## xmm0 = mem[0],zero addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ## -- Begin function power LCPI2_0: .quad 0x3ff0000000000000 ## double 1 .section __TEXT,__text,regular,pure_instructions .globl _power .p2align 4, 0x90 _power: ## @power .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movsd %xmm0, -16(%rbp) movl %edi, -20(%rbp) cmpl $0, -20(%rbp) jne LBB2_2 ## %bb.1: movsd LCPI2_0(%rip), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -8(%rbp) jmp LBB2_3 LBB2_2: movsd -16(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -32(%rbp) ## 8-byte Spill movsd -16(%rbp), %xmm0 ## xmm0 = mem[0],zero movl -20(%rbp), %edi subl $1, %edi callq _power movaps %xmm0, %xmm1 movsd -32(%rbp), %xmm0 ## 8-byte Reload ## xmm0 = mem[0],zero mulsd %xmm1, %xmm0 movsd %xmm0, -8(%rbp) LBB2_3: movsd -8(%rbp), %xmm0 ## xmm0 = mem[0],zero addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Enter a number and the positive integer power" L_.str.1: ## @.str.1 .asciz " to which\nthe number will be raised to. Enter q" L_.str.2: ## @.str.2 .asciz " to quit.\n" L_.str.3: ## @.str.3 .asciz "%lf%d" L_.str.4: ## @.str.4 .asciz "%.3g to the power %d is %.5g\n" L_.str.5: ## @.str.5 .asciz "Enter next pair of numbers or q to quit.\n" L_.str.6: ## @.str.6 .asciz "Hope you enjoyed this power trip -- bye!\n" L_.str.7: ## @.str.7 .asciz "0 to the 0 is undefined. We wil use 1 for simplicity.\n" .subsections_via_symbols
the_stack_data/153266926.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #0 str w8, [sp, #8] ; 4-byte Folded Spill stur wzr, [x29, #-4] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldr w0, [sp, #8] ; 4-byte Folded Reload ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Hello, world!" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) leaq L_.str(%rip), %rdi movb $0, %al callq _printf xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Hello, world!" .subsections_via_symbols
the_stack_data/75137552.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _Selection_Sort ; -- Begin function Selection_Sort .p2align 2 _Selection_Sort: ; @Selection_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, #8] b LBB0_1 LBB0_1: ; =>This Loop Header: Depth=1 ; Child Loop BB0_3 Depth 2 ldr w8, [sp, #8] ldr w9, [sp, #20] subs w9, w9, #1 subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_10 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #8] str w8, [sp, #16] ldr w8, [sp, #8] add w8, w8, #1 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] 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 ldr x8, [sp, #24] ldrsw x9, [sp, #4] ldr w8, [x8, x9, lsl #2] ldr x9, [sp, #24] ldrsw x10, [sp, #16] ldr w9, [x9, x10, lsl #2] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_3 Depth=2 ldr w8, [sp, #4] str w8, [sp, #16] 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, #4] add w8, w8, #1 str w8, [sp, #4] b LBB0_3 LBB0_8: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #24] ldrsw x9, [sp, #8] ldr w8, [x8, x9, lsl #2] str w8, [sp, #12] ldr x8, [sp, #24] ldrsw x9, [sp, #16] ldr w8, [x8, x9, lsl #2] ldr x9, [sp, #24] ldrsw x10, [sp, #8] str w8, [x9, x10, lsl #2] ldr w8, [sp, #12] ldr x9, [sp, #24] ldrsw x10, [sp, #16] str w8, [x9, x10, lsl #2] b LBB0_9 LBB0_9: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #8] add w8, w8, #1 str w8, [sp, #8] b LBB0_1 LBB0_10: add sp, sp, #32 ret .cfi_endproc ; -- End function .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 wzr, [sp, #16] b LBB1_1 LBB1_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #16] ldur w9, [x29, #-12] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_4 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 ldur x8, [x29, #-8] ldrsw x9, [sp, #16] 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, #16] add w8, w8, #1 str w8, [sp, #16] b LBB1_1 LBB1_4: adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill .cfi_def_cfa_offset 16 mov x29, sp .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 sub sp, sp, #64 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] stur wzr, [x29, #-12] sub sp, sp, #16 mov x9, sp sub x8, x29, #16 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, #-16] ; kill: def $x8 killed $w8 mov x9, sp stur x9, [x29, #-24] lsl x9, x8, #2 add x9, x9, #15 and x9, x9, #0xfffffffffffffff0 stur x9, [x29, #-56] ; 8-byte Folded Spill adrp x16, ___chkstk_darwin@GOTPAGE ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF] blr x16 ldur x10, [x29, #-56] ; 8-byte Folded Reload mov x9, sp subs x9, x9, x10 mov sp, x9 stur x9, [x29, #-48] ; 8-byte Folded Spill stur x8, [x29, #-32] stur wzr, [x29, #-36] b LBB2_1 LBB2_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-36] ldur w9, [x29, #-16] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB2_4 b LBB2_2 LBB2_2: ; in Loop: Header=BB2_1 Depth=1 ldur x8, [x29, #-48] ; 8-byte Folded Reload ldursw x9, [x29, #-36] add x8, x8, x9, lsl #2 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 add sp, sp, #16 b LBB2_3 LBB2_3: ; in Loop: Header=BB2_1 Depth=1 ldur w8, [x29, #-36] add w8, w8, #1 stur w8, [x29, #-36] b LBB2_1 LBB2_4: ldur x0, [x29, #-48] ; 8-byte Folded Reload ldur w1, [x29, #-16] bl _Selection_Sort ldur x0, [x29, #-48] ; 8-byte Folded Reload ldur w1, [x29, #-16] bl _Print_Array stur wzr, [x29, #-12] ldur x8, [x29, #-24] mov sp, x8 ldur w8, [x29, #-12] stur w8, [x29, #-60] ; 4-byte Folded Spill ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB2_6 b LBB2_5 LBB2_5: bl ___stack_chk_fail LBB2_6: ldur w0, [x29, #-60] ; 4-byte Folded Reload mov sp, x29 ldp x29, x30, [sp], #16 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d\t" l_.str.1: ; @.str.1 .asciz "\n" 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 _Selection_Sort ## -- Begin function Selection_Sort .p2align 4, 0x90 _Selection_Sort: ## @Selection_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, -24(%rbp) LBB0_1: ## =>This Loop Header: Depth=1 ## Child Loop BB0_3 Depth 2 movl -24(%rbp), %eax movl -12(%rbp), %ecx subl $1, %ecx cmpl %ecx, %eax jge LBB0_10 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl -24(%rbp), %eax movl %eax, -16(%rbp) movl -24(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) LBB0_3: ## Parent Loop BB0_1 Depth=1 ## => This Inner Loop Header: Depth=2 movl -28(%rbp), %eax cmpl -12(%rbp), %eax jge LBB0_8 ## %bb.4: ## in Loop: Header=BB0_3 Depth=2 movq -8(%rbp), %rax movslq -28(%rbp), %rcx movl (%rax,%rcx,4), %eax movq -8(%rbp), %rcx movslq -16(%rbp), %rdx cmpl (%rcx,%rdx,4), %eax jge LBB0_6 ## %bb.5: ## in Loop: Header=BB0_3 Depth=2 movl -28(%rbp), %eax movl %eax, -16(%rbp) LBB0_6: ## in Loop: Header=BB0_3 Depth=2 jmp LBB0_7 LBB0_7: ## in Loop: Header=BB0_3 Depth=2 movl -28(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) jmp LBB0_3 LBB0_8: ## in Loop: Header=BB0_1 Depth=1 movq -8(%rbp), %rax movslq -24(%rbp), %rcx movl (%rax,%rcx,4), %eax movl %eax, -20(%rbp) movq -8(%rbp), %rax movslq -16(%rbp), %rcx movl (%rax,%rcx,4), %edx movq -8(%rbp), %rax movslq -24(%rbp), %rcx movl %edx, (%rax,%rcx,4) movl -20(%rbp), %edx movq -8(%rbp), %rax movslq -16(%rbp), %rcx movl %edx, (%rax,%rcx,4) ## %bb.9: ## in Loop: Header=BB0_1 Depth=1 movl -24(%rbp), %eax addl $1, %eax movl %eax, -24(%rbp) jmp LBB0_1 LBB0_10: popq %rbp retq .cfi_endproc ## -- End function .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 $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), %esi leaq L_.str(%rip), %rdi movb $0, %al callq _printf ## %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: leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $64, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -12(%rbp) leaq L_.str.2(%rip), %rdi xorl %eax, %eax ## kill: def $al killed $al killed $eax leaq -16(%rbp), %rsi callq _scanf movl -16(%rbp), %eax ## kill: def $rax killed $eax movq %rax, -56(%rbp) ## 8-byte Spill movq %rsp, %rcx movq %rcx, -24(%rbp) shlq $2, %rax callq ____chkstk_darwin addq $15, %rax andq $-16, %rax subq %rax, %rsp movq -56(%rbp), %rax ## 8-byte Reload movq %rsp, %rcx movq %rcx, -48(%rbp) ## 8-byte Spill movq %rax, -32(%rbp) movl $0, -36(%rbp) LBB2_1: ## =>This Inner Loop Header: Depth=1 movl -36(%rbp), %eax cmpl -16(%rbp), %eax jge LBB2_4 ## %bb.2: ## in Loop: Header=BB2_1 Depth=1 movq -48(%rbp), %rsi ## 8-byte Reload movslq -36(%rbp), %rax shlq $2, %rax addq %rax, %rsi leaq L_.str.2(%rip), %rdi movb $0, %al callq _scanf ## %bb.3: ## in Loop: Header=BB2_1 Depth=1 movl -36(%rbp), %eax addl $1, %eax movl %eax, -36(%rbp) jmp LBB2_1 LBB2_4: movq -48(%rbp), %rdi ## 8-byte Reload movl -16(%rbp), %esi callq _Selection_Sort movq -48(%rbp), %rdi ## 8-byte Reload movl -16(%rbp), %esi callq _Print_Array movl $0, -12(%rbp) movq -24(%rbp), %rax movq %rax, %rsp movl -12(%rbp), %eax movl %eax, -60(%rbp) ## 4-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB2_6 ## %bb.5: movl -60(%rbp), %eax ## 4-byte Reload movq %rbp, %rsp popq %rbp retq LBB2_6: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d\t" L_.str.1: ## @.str.1 .asciz "\n" L_.str.2: ## @.str.2 .asciz "%d" .subsections_via_symbols
the_stack_data/258486.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #144 .cfi_def_cfa_offset 144 stp x29, x30, [sp, #128] ; 16-byte Folded Spill add x29, sp, #128 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] str wzr, [sp, #36] str wzr, [sp, #32] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #32] subs w8, w8, #10 cset w8, ge tbnz w8, #0, LBB0_4 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldrsw x9, [sp, #32] sub x8, x29, #48 add x8, x8, x9, lsl #2 mov x9, sp str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #32] add w8, w8, #1 str w8, [sp, #32] b LBB0_1 LBB0_4: str wzr, [sp, #32] b LBB0_5 LBB0_5: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #32] subs w8, w8, #10 cset w8, ge tbnz w8, #0, LBB0_11 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_5 Depth=1 ldr w8, [sp, #32] mov w10, #2 sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_8 b LBB0_7 LBB0_7: ; in Loop: Header=BB0_5 Depth=1 ldrsw x9, [sp, #32] sub x8, x29, #48 ldr w8, [x8, x9, lsl #2] mov w9, #5 mul w8, w8, w9 ldrsw x10, [sp, #32] add x9, sp, #40 str w8, [x9, x10, lsl #2] b LBB0_9 LBB0_8: ; in Loop: Header=BB0_5 Depth=1 ldrsw x9, [sp, #32] sub x8, x29, #48 ldr w8, [x8, x9, lsl #2] add w8, w8, #5 ldrsw x10, [sp, #32] add x9, sp, #40 str w8, [x9, x10, lsl #2] b LBB0_9 LBB0_9: ; in Loop: Header=BB0_5 Depth=1 b LBB0_10 LBB0_10: ; in Loop: Header=BB0_5 Depth=1 ldr w8, [sp, #32] add w8, w8, #1 str w8, [sp, #32] b LBB0_5 LBB0_11: str wzr, [sp, #32] b LBB0_12 LBB0_12: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #32] subs w8, w8, #10 cset w8, ge tbnz w8, #0, LBB0_15 b LBB0_13 LBB0_13: ; in Loop: Header=BB0_12 Depth=1 ldr w8, [sp, #32] ; implicit-def: $x10 mov x10, x8 ldrsw x9, [sp, #32] sub x8, x29, #48 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.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf b LBB0_14 LBB0_14: ; in Loop: Header=BB0_12 Depth=1 ldr w8, [sp, #32] add w8, w8, #1 str w8, [sp, #32] b LBB0_12 LBB0_15: str wzr, [sp, #32] b LBB0_16 LBB0_16: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #32] subs w8, w8, #10 cset w8, ge tbnz w8, #0, LBB0_19 b LBB0_17 LBB0_17: ; in Loop: Header=BB0_16 Depth=1 ldr w8, [sp, #32] ; implicit-def: $x10 mov x10, x8 ldrsw x9, [sp, #32] add x8, sp, #40 ldr w9, [x8, x9, lsl #2] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf b LBB0_18 LBB0_18: ; in Loop: Header=BB0_16 Depth=1 ldr w8, [sp, #32] add w8, w8, #1 str w8, [sp, #32] b LBB0_16 LBB0_19: ldr w8, [sp, #36] str w8, [sp, #28] ; 4-byte Folded Spill ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_21 b LBB0_20 LBB0_20: bl ___stack_chk_fail LBB0_21: ldr w0, [sp, #28] ; 4-byte Folded Reload ldp x29, x30, [sp, #128] ; 16-byte Folded Reload add sp, sp, #144 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "digite um valor numerico inteiro: " l_.str.1: ; @.str.1 .asciz "%d" l_.str.2: ; @.str.2 .asciz "\nConteudo da matriz a indice %d = %d" l_.str.3: ; @.str.3 .asciz "\nConteudo da matriz B indice %d = %d" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $112, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -100(%rbp) movl $0, -104(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 cmpl $10, -104(%rbp) jge LBB0_4 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 leaq L_.str(%rip), %rdi movb $0, %al callq _printf movslq -104(%rbp), %rax leaq -48(%rbp), %rsi shlq $2, %rax addq %rax, %rsi leaq L_.str.1(%rip), %rdi movb $0, %al callq _scanf ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movl -104(%rbp), %eax addl $1, %eax movl %eax, -104(%rbp) jmp LBB0_1 LBB0_4: movl $0, -104(%rbp) LBB0_5: ## =>This Inner Loop Header: Depth=1 cmpl $10, -104(%rbp) jge LBB0_11 ## %bb.6: ## in Loop: Header=BB0_5 Depth=1 movl -104(%rbp), %eax movl $2, %ecx cltd idivl %ecx cmpl $0, %edx jne LBB0_8 ## %bb.7: ## in Loop: Header=BB0_5 Depth=1 movslq -104(%rbp), %rax imull $5, -48(%rbp,%rax,4), %ecx movslq -104(%rbp), %rax movl %ecx, -96(%rbp,%rax,4) jmp LBB0_9 LBB0_8: ## in Loop: Header=BB0_5 Depth=1 movslq -104(%rbp), %rax movl -48(%rbp,%rax,4), %ecx addl $5, %ecx movslq -104(%rbp), %rax movl %ecx, -96(%rbp,%rax,4) LBB0_9: ## in Loop: Header=BB0_5 Depth=1 jmp LBB0_10 LBB0_10: ## in Loop: Header=BB0_5 Depth=1 movl -104(%rbp), %eax addl $1, %eax movl %eax, -104(%rbp) jmp LBB0_5 LBB0_11: movl $0, -104(%rbp) LBB0_12: ## =>This Inner Loop Header: Depth=1 cmpl $10, -104(%rbp) jge LBB0_15 ## %bb.13: ## in Loop: Header=BB0_12 Depth=1 movl -104(%rbp), %esi movslq -104(%rbp), %rax movl -48(%rbp,%rax,4), %edx leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf ## %bb.14: ## in Loop: Header=BB0_12 Depth=1 movl -104(%rbp), %eax addl $1, %eax movl %eax, -104(%rbp) jmp LBB0_12 LBB0_15: movl $0, -104(%rbp) LBB0_16: ## =>This Inner Loop Header: Depth=1 cmpl $10, -104(%rbp) jge LBB0_19 ## %bb.17: ## in Loop: Header=BB0_16 Depth=1 movl -104(%rbp), %esi movslq -104(%rbp), %rax movl -96(%rbp,%rax,4), %edx leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf ## %bb.18: ## in Loop: Header=BB0_16 Depth=1 movl -104(%rbp), %eax addl $1, %eax movl %eax, -104(%rbp) jmp LBB0_16 LBB0_19: movl -100(%rbp), %eax movl %eax, -108(%rbp) ## 4-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_21 ## %bb.20: movl -108(%rbp), %eax ## 4-byte Reload addq $112, %rsp popq %rbp retq LBB0_21: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "digite um valor numerico inteiro: " L_.str.1: ## @.str.1 .asciz "%d" L_.str.2: ## @.str.2 .asciz "\nConteudo da matriz a indice %d = %d" L_.str.3: ## @.str.3 .asciz "\nConteudo da matriz B indice %d = %d" .subsections_via_symbols
the_stack_data/141371.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _test ; -- Begin function test .p2align 2 _test: ; @test .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 adrp x8, _s@PAGE adrp x9, _s@PAGE add x9, x9, _s@PAGEOFF str x9, [sp] ; 8-byte Folded Spill ldr w8, [x8, _s@PAGEOFF] subs w8, w8, #1 cset w8, eq tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: mov w8, #1 str w8, [sp, #12] b LBB0_5 LBB0_2: ldr x8, [sp] ; 8-byte Folded Reload ldr w8, [x8, #4] subs w8, w8, #2 cset w8, eq tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: mov w8, #2 str w8, [sp, #12] b LBB0_5 LBB0_4: str wzr, [sp, #12] b LBB0_5 LBB0_5: ldr w0, [sp, #12] add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #0 stur w8, [x29, #-12] ; 4-byte Folded Spill stur wzr, [x29, #-4] bl _test stur w0, [x29, #-8] ldur w9, [x29, #-8] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldur w0, [x29, #-12] ; 4-byte Folded Reload ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .section __DATA,__data .globl _s ; @s .p2align 2 _s: .long 1 ; 0x1 .long 2 ; 0x2 .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 _test ## -- Begin function test .p2align 4, 0x90 _test: ## @test .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp cmpl $1, _s(%rip) je LBB0_2 ## %bb.1: movl $1, -4(%rbp) jmp LBB0_5 LBB0_2: cmpl $2, _s+4(%rip) je LBB0_4 ## %bb.3: movl $2, -4(%rbp) jmp LBB0_5 LBB0_4: movl $0, -4(%rbp) LBB0_5: movl -4(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) callq _test movl %eax, -8(%rbp) movl -8(%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 __DATA,__data .globl _s ## @s .p2align 2 _s: .long 1 ## 0x1 .long 2 ## 0x2 .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d\n" .subsections_via_symbols
the_stack_data/62637222.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #288 .cfi_def_cfa_offset 288 stp x28, x27, [sp, #256] ; 16-byte Folded Spill stp x29, x30, [sp, #272] ; 16-byte Folded Spill add x29, sp, #272 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w27, -24 .cfi_offset w28, -32 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] str wzr, [sp, #44] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _puts mov x9, sp sub x8, x29, #124 str x8, [sp, #32] ; 8-byte Folded Spill 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 bl _getchar adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _puts ldr x0, [sp, #16] ; 8-byte Folded Reload mov x9, sp add x8, sp, #48 str x8, [sp, #24] ; 8-byte Folded Spill str x8, [x9] bl _scanf bl _getchar ldr x10, [sp, #32] ; 8-byte Folded Reload ldr x8, [sp, #24] ; 8-byte Folded Reload mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf ldr x1, [sp, #24] ; 8-byte Folded Reload ldr x0, [sp, #32] ; 8-byte Folded Reload bl _any ldur x9, [x29, #-24] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: bl ___stack_chk_fail LBB0_2: mov w0, #0 ldp x29, x30, [sp, #272] ; 16-byte Folded Reload ldp x28, x27, [sp, #256] ; 16-byte Folded Reload add sp, sp, #288 ret .cfi_endproc ; -- End function .globl _any ; -- Begin function any .p2align 2 _any: ; @any .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] b LBB1_1 LBB1_1: ; =>This Loop Header: Depth=1 ; Child Loop BB1_3 Depth 2 ldur x8, [x29, #-16] ldrb w8, [x8] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB1_12 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 ldur x8, [x29, #-8] str x8, [sp, #24] ldur x8, [x29, #-8] str x8, [sp, #24] b LBB1_3 LBB1_3: ; Parent Loop BB1_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr x8, [sp, #24] ldrb w8, [x8] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB1_8 b LBB1_4 LBB1_4: ; in Loop: Header=BB1_3 Depth=2 ldr x8, [sp, #24] ldrsb w8, [x8] ldur x9, [x29, #-16] ldrsb w9, [x9] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB1_6 b LBB1_5 LBB1_5: ; in Loop: Header=BB1_1 Depth=1 b LBB1_8 LBB1_6: ; in Loop: Header=BB1_3 Depth=2 b LBB1_7 LBB1_7: ; in Loop: Header=BB1_3 Depth=2 ldr x8, [sp, #24] add x8, x8, #1 str x8, [sp, #24] b LBB1_3 LBB1_8: ; in Loop: Header=BB1_1 Depth=1 ldur x8, [x29, #-16] add x9, x8, #1 stur x9, [x29, #-16] ldrsb w8, [x8] str w8, [sp, #20] ; 4-byte Folded Spill ldr x8, [sp, #24] ldrb w8, [x8] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB1_10 b LBB1_9 LBB1_9: ; in Loop: Header=BB1_1 Depth=1 mov w8, #-1 str w8, [sp, #16] ; 4-byte Folded Spill b LBB1_11 LBB1_10: ; in Loop: Header=BB1_1 Depth=1 ldr x8, [sp, #24] ldur x9, [x29, #-8] subs x8, x8, x9 ; kill: def $w8 killed $w8 killed $x8 str w8, [sp, #16] ; 4-byte Folded Spill b LBB1_11 LBB1_11: ; in Loop: Header=BB1_1 Depth=1 ldr w11, [sp, #20] ; 4-byte Folded Reload ldr w10, [sp, #16] ; 4-byte Folded Reload mov x9, sp ; implicit-def: $x8 mov x8, x11 str x8, [x9] ; implicit-def: $x8 mov x8, x10 str x8, [x9, #8] adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf b LBB1_1 LBB1_12: 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 "Input s1" l_.str.1: ; @.str.1 .asciz "%s" l_.str.2: ; @.str.2 .asciz "Input s2" l_.str.3: ; @.str.3 .asciz "s1: %s, s2: %s\n" l_.str.4: ; @.str.4 .asciz "%c's location: %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 $240, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -228(%rbp) leaq L_.str(%rip), %rdi callq _puts leaq -112(%rbp), %rsi leaq L_.str.1(%rip), %rdi movb $0, %al callq _scanf callq _getchar leaq L_.str.2(%rip), %rdi callq _puts leaq -224(%rbp), %rsi leaq L_.str.1(%rip), %rdi movb $0, %al callq _scanf callq _getchar leaq -112(%rbp), %rsi leaq -224(%rbp), %rdx leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf leaq -112(%rbp), %rdi leaq -224(%rbp), %rsi callq _any 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 $240, %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 subq $32, %rsp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) LBB1_1: ## =>This Loop Header: Depth=1 ## Child Loop BB1_3 Depth 2 movq -16(%rbp), %rax cmpb $0, (%rax) je LBB1_12 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 movq -8(%rbp), %rax movq %rax, -24(%rbp) movq -8(%rbp), %rax movq %rax, -24(%rbp) LBB1_3: ## Parent Loop BB1_1 Depth=1 ## => This Inner Loop Header: Depth=2 movq -24(%rbp), %rax cmpb $0, (%rax) je LBB1_8 ## %bb.4: ## in Loop: Header=BB1_3 Depth=2 movq -24(%rbp), %rax movsbl (%rax), %eax movq -16(%rbp), %rcx movsbl (%rcx), %ecx cmpl %ecx, %eax jne LBB1_6 ## %bb.5: ## in Loop: Header=BB1_1 Depth=1 jmp LBB1_8 LBB1_6: ## in Loop: Header=BB1_3 Depth=2 jmp LBB1_7 LBB1_7: ## in Loop: Header=BB1_3 Depth=2 movq -24(%rbp), %rax addq $1, %rax movq %rax, -24(%rbp) jmp LBB1_3 LBB1_8: ## in Loop: Header=BB1_1 Depth=1 movq -16(%rbp), %rax movq %rax, %rcx addq $1, %rcx movq %rcx, -16(%rbp) movsbl (%rax), %eax movl %eax, -28(%rbp) ## 4-byte Spill movq -24(%rbp), %rax cmpb $0, (%rax) jne LBB1_10 ## %bb.9: ## in Loop: Header=BB1_1 Depth=1 movl $4294967295, %eax ## imm = 0xFFFFFFFF movl %eax, -32(%rbp) ## 4-byte Spill jmp LBB1_11 LBB1_10: ## in Loop: Header=BB1_1 Depth=1 movq -24(%rbp), %rax movq -8(%rbp), %rcx subq %rcx, %rax ## kill: def $eax killed $eax killed $rax movl %eax, -32(%rbp) ## 4-byte Spill LBB1_11: ## in Loop: Header=BB1_1 Depth=1 movl -28(%rbp), %esi ## 4-byte Reload movl -32(%rbp), %edx ## 4-byte Reload leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf jmp LBB1_1 LBB1_12: addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Input s1" L_.str.1: ## @.str.1 .asciz "%s" L_.str.2: ## @.str.2 .asciz "Input s2" L_.str.3: ## @.str.3 .asciz "s1: %s, s2: %s\n" L_.str.4: ## @.str.4 .asciz "%c's location: %d\n" .subsections_via_symbols
the_stack_data/92328065.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/876120.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] stur w0, [x29, #-8] str x1, [sp, #16] ldur w8, [x29, #-8] subs w8, w8, #3 cset w8, le tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov w0, #1 bl _exit LBB0_2: ldr x8, [sp, #16] ldr x0, [x8, #8] bl _atoi str w0, [sp, #12] ldr x8, [sp, #16] ldr x0, [x8, #16] bl _atoi str w0, [sp, #8] ldr w8, [sp, #12] ldr w9, [sp, #8] add w10, w8, w9 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 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 "Invalid command line: supply two integers \n" l_.str.1: ; @.str.1 .asciz "%d\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .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) jle LBB0_2 ## %bb.1: leaq L_.str(%rip), %rdi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _printf movl $1, %edi callq _exit LBB0_2: movq -16(%rbp), %rax movq 8(%rax), %rdi callq _atoi movl %eax, -20(%rbp) movq -16(%rbp), %rax movq 16(%rax), %rdi callq _atoi movl %eax, -24(%rbp) movl -20(%rbp), %esi addl -24(%rbp), %esi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf xorl %eax, %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Invalid command line: supply two integers \n" L_.str.1: ## @.str.1 .asciz "%d\n" .subsections_via_symbols
the_stack_data/194301.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _tanhf ; -- Begin function tanhf .p2align 2 _tanhf: ; @tanhf .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur s0, [x29, #-4] ldur s0, [x29, #-4] bl _expf str s0, [sp, #8] ldr s1, [sp, #8] fmov s0, #1.00000000 fdiv s0, s0, s1 str s0, [sp, #4] ldr s0, [sp, #8] ldr s1, [sp, #4] fsub s0, s0, s1 ldr s1, [sp, #8] ldr s2, [sp, #4] fadd s1, s1, s2 fdiv s0, s0, s1 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 .section __TEXT,__literal4,4byte_literals .p2align 2 ## -- Begin function tanhf LCPI0_0: .long 0x3f800000 ## float 1 .section __TEXT,__text,regular,pure_instructions .globl _tanhf .p2align 4, 0x90 _tanhf: ## @tanhf .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movss %xmm0, -4(%rbp) movss -4(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero callq _expf movss %xmm0, -8(%rbp) movss LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero divss -8(%rbp), %xmm0 movss %xmm0, -12(%rbp) movss -8(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero subss -12(%rbp), %xmm0 movss -8(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero addss -12(%rbp), %xmm1 divss %xmm1, %xmm0 addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/115764406.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _f ; -- Begin function f .p2align 2 _f: ; @f .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #8] ldr w8, [sp, #8] subs w8, w8, #2 cset w8, eq tbnz w8, #0, LBB0_6 b LBB0_1 LBB0_1: ldr w8, [sp, #8] subs w8, w8, #3 cset w8, eq tbnz w8, #0, LBB0_5 b LBB0_2 LBB0_2: ldr w8, [sp, #8] subs w8, w8, #4 cset w8, ne tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: mov w8, #1 str w8, [sp, #12] b LBB0_6 LBB0_4: b LBB0_5 LBB0_5: b LBB0_6 LBB0_6: ldr w0, [sp, #12] add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: 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 ldur w0, [x29, #-4] bl _f str w0, [sp, #8] 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 _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, -8(%rbp) cmpl $2, -8(%rbp) je LBB0_6 ## %bb.1: cmpl $3, -8(%rbp) je LBB0_5 ## %bb.2: cmpl $4, -8(%rbp) jne LBB0_4 ## %bb.3: movl $1, -4(%rbp) jmp LBB0_6 LBB0_4: jmp LBB0_5 LBB0_5: jmp LBB0_6 LBB0_6: movl -4(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl -4(%rbp), %edi callq _f movl %eax, -8(%rbp) xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/78855.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] add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _assign01 ; -- Begin function assign01 .p2align 2 _assign01: ; @assign01 .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #1 str w8, [sp, #8] mov w8, #6 stur w8, [x29, #-4] ldur w0, [x29, #-4] bl _foo ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _foo ## -- Begin function foo .p2align 4, 0x90 _foo: ## @foo .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, -4(%rbp) popq %rbp retq .cfi_endproc ## -- End function .globl _assign01 ## -- Begin function assign01 .p2align 4, 0x90 _assign01: ## @assign01 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $1, -8(%rbp) movl $6, -4(%rbp) movl -4(%rbp), %edi callq _foo addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/181393493.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/95449256.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: stp x28, x27, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w27, -24 .cfi_offset w28, -32 sub sp, sp, #2112 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] str wzr, [sp, #148] str w0, [sp, #144] str x1, [sp, #136] str wzr, [sp, #104] str wzr, [sp, #100] ; kill: def $x8 killed $xzr str xzr, [sp, #80] ldr w8, [sp, #144] subs w8, w8, #2 cset w8, lt tbnz w8, #0, LBB0_116 b LBB0_1 LBB0_1: ldr x8, [sp, #136] ldr x8, [x8] mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf str wzr, [sp, #112] mov w8, #1 str w8, [sp, #132] b LBB0_2 LBB0_2: ; =>This Loop Header: Depth=1 ; Child Loop BB0_68 Depth 2 ; Child Loop BB0_74 Depth 3 ; Child Loop BB0_23 Depth 2 ; Child Loop BB0_26 Depth 3 ldr w8, [sp, #132] ldr w9, [sp, #144] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_97 b LBB0_3 LBB0_3: ; in Loop: Header=BB0_2 Depth=1 ldr x8, [sp, #136] ldrsw x9, [sp, #132] ldr x0, [x8, x9, lsl #3] adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF bl _strcmp subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB0_5 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_2 Depth=1 mov w8, #1 str w8, [sp, #104] b LBB0_95 LBB0_5: ; in Loop: Header=BB0_2 Depth=1 ldr x8, [sp, #136] ldrsw x9, [sp, #132] ldr x0, [x8, x9, lsl #3] adrp x1, l_.str.2@PAGE add x1, x1, l_.str.2@PAGEOFF bl _strcmp subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB0_7 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_2 Depth=1 str wzr, [sp, #104] str wzr, [sp, #100] b LBB0_94 LBB0_7: ; in Loop: Header=BB0_2 Depth=1 ldr x8, [sp, #136] ldrsw x9, [sp, #132] ldr x0, [x8, x9, lsl #3] adrp x1, l_.str.3@PAGE add x1, x1, l_.str.3@PAGEOFF bl _strcmp subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB0_9 b LBB0_8 LBB0_8: ; in Loop: Header=BB0_2 Depth=1 str wzr, [sp, #104] mov w8, #1 str w8, [sp, #100] b LBB0_93 LBB0_9: ; in Loop: Header=BB0_2 Depth=1 ldr x8, [sp, #136] ldrsw x9, [sp, #132] ldr x0, [x8, x9, lsl #3] adrp x1, l_.str.4@PAGE add x1, x1, l_.str.4@PAGEOFF mov x2, #6 bl _strncmp subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB0_11 b LBB0_10 LBB0_10: ; in Loop: Header=BB0_2 Depth=1 ldr x8, [sp, #136] ldrsw x9, [sp, #132] ldr x0, [x8, x9, lsl #3] mov w1, #61 bl _strchr add x8, x0, #1 str x8, [sp, #80] b LBB0_92 LBB0_11: ; in Loop: Header=BB0_2 Depth=1 ldr x8, [sp, #80] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB0_13 b LBB0_12 LBB0_12: ; in Loop: Header=BB0_2 Depth=1 ldr x10, [sp, #80] ldr x8, [sp, #136] ldrsw x9, [sp, #132] ldr x8, [x8, x9, lsl #3] mov x9, sp str x10, [x9] str x8, [x9, #8] add x0, sp, #152 mov x3, #1024 mov x1, x3 mov w2, #0 adrp x4, l_.str.5@PAGE add x4, x4, l_.str.5@PAGEOFF bl ___snprintf_chk b LBB0_14 LBB0_13: ; in Loop: Header=BB0_2 Depth=1 ldr x8, [sp, #136] ldrsw x9, [sp, #132] ldr x8, [x8, x9, lsl #3] mov x9, sp str x8, [x9] add x0, sp, #152 mov x3, #1024 mov x1, x3 mov w2, #0 adrp x4, l_.str.6@PAGE add x4, x4, l_.str.6@PAGEOFF bl ___snprintf_chk b LBB0_14 LBB0_14: ; in Loop: Header=BB0_2 Depth=1 add x0, sp, #152 adrp x1, l_.str.7@PAGE add x1, x1, l_.str.7@PAGEOFF bl _fopen mov x8, x0 str x8, [sp, #88] subs x8, x0, #0 cset w8, ne tbnz w8, #0, LBB0_16 b LBB0_15 LBB0_15: ; in Loop: Header=BB0_2 Depth=1 mov x9, sp add x8, sp, #152 str x8, [sp, #72] ; 8-byte Folded Spill str x8, [x9] adrp x0, l_.str.8@PAGE add x0, x0, l_.str.8@PAGEOFF bl _printf ldr x8, [sp, #72] ; 8-byte Folded Reload adrp x9, ___stderrp@GOTPAGE ldr x9, [x9, ___stderrp@GOTPAGEOFF] ldr x0, [x9] mov x9, sp str x8, [x9] adrp x1, l_.str.9@PAGE add x1, x1, l_.str.9@PAGEOFF bl _fprintf b LBB0_96 LBB0_16: ; in Loop: Header=BB0_2 Depth=1 ldr x0, [sp, #88] mov x1, #0 str x1, [sp, #64] ; 8-byte Folded Spill mov w2, #2 bl _fseek ldr x0, [sp, #88] bl _ftell ldr x1, [sp, #64] ; 8-byte Folded Reload mov x8, x0 str w8, [sp, #108] ldr x0, [sp, #88] mov w2, #0 bl _fseek ldr x8, [sp, #136] ldrsw x9, [sp, #132] ldr x8, [x8, x9, lsl #3] mov x9, sp str x8, [x9] adrp x0, l_.str.10@PAGE add x0, x0, l_.str.10@PAGEOFF bl _printf ldr w8, [sp, #104] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_62 b LBB0_17 LBB0_17: ; in Loop: Header=BB0_2 Depth=1 ldr w9, [sp, #112] ; implicit-def: $x8 mov x8, x9 str x8, [sp, #56] ; 8-byte Folded Spill ldr w8, [sp, #108] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_19 b LBB0_18 LBB0_18: ; in Loop: Header=BB0_2 Depth=1 ldr w8, [sp, #108] str w8, [sp, #52] ; 4-byte Folded Spill b LBB0_20 LBB0_19: ; in Loop: Header=BB0_2 Depth=1 mov w8, #1 str w8, [sp, #52] ; 4-byte Folded Spill b LBB0_20 LBB0_20: ; in Loop: Header=BB0_2 Depth=1 ldr x8, [sp, #56] ; 8-byte Folded Reload ldr w10, [sp, #52] ; 4-byte Folded Reload mov x9, sp str x8, [x9] ; implicit-def: $x8 mov x8, x10 str x8, [x9, #8] adrp x0, l_.str.11@PAGE add x0, x0, l_.str.11@PAGEOFF bl _printf ldr w8, [sp, #112] add w8, w8, #1 str w8, [sp, #112] ldr w8, [sp, #108] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_22 b LBB0_21 LBB0_21: ; in Loop: Header=BB0_2 Depth=1 adrp x0, l_.str.12@PAGE add x0, x0, l_.str.12@PAGEOFF bl _printf b LBB0_61 LBB0_22: ; in Loop: Header=BB0_2 Depth=1 b LBB0_23 LBB0_23: ; Parent Loop BB0_2 Depth=1 ; => This Loop Header: Depth=2 ; Child Loop BB0_26 Depth 3 str wzr, [sp, #120] ldrsw x10, [sp, #120] mov x8, x10 add w8, w8, #1 str w8, [sp, #120] add x8, sp, #1176 mov x9, x8 add x10, x9, x10 mov w9, #10 strb w9, [x10] ldrsw x9, [sp, #120] mov x10, x9 add w10, w10, #1 str w10, [sp, #120] add x9, x8, x9 mov w8, #34 strb w8, [x9] ldr x3, [sp, #88] sub x0, x29, #152 mov x1, #1 mov x2, #128 bl _fread mov x8, x0 str w8, [sp, #124] ldr w8, [sp, #124] subs w8, w8, #1 cset w8, ge tbnz w8, #0, LBB0_25 b LBB0_24 LBB0_24: ; in Loop: Header=BB0_2 Depth=1 b LBB0_60 LBB0_25: ; in Loop: Header=BB0_23 Depth=2 str wzr, [sp, #128] b LBB0_26 LBB0_26: ; Parent Loop BB0_2 Depth=1 ; Parent Loop BB0_23 Depth=2 ; => This Inner Loop Header: Depth=3 ldr w8, [sp, #128] ldr w9, [sp, #124] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_59 b LBB0_27 LBB0_27: ; in Loop: Header=BB0_26 Depth=3 ldrsw x9, [sp, #128] sub x8, x29, #152 ldrb w8, [x8, x9] subs w8, w8, #63 cset w8, ne tbnz w8, #0, LBB0_29 b LBB0_28 LBB0_28: ; in Loop: Header=BB0_26 Depth=3 ldrsw x10, [sp, #120] mov x8, x10 add w8, w8, #1 str w8, [sp, #120] add x8, sp, #1176 mov x9, x8 add x10, x9, x10 mov w9, #92 strb w9, [x10] ldrsw x9, [sp, #120] mov x10, x9 add w10, w10, #1 str w10, [sp, #120] add x9, x8, x9 mov w8, #63 strb w8, [x9] b LBB0_57 LBB0_29: ; in Loop: Header=BB0_26 Depth=3 ldrsw x9, [sp, #128] sub x8, x29, #152 ldrb w8, [x8, x9] subs w8, w8, #92 cset w8, ne tbnz w8, #0, LBB0_31 b LBB0_30 LBB0_30: ; in Loop: Header=BB0_26 Depth=3 ldrsw x10, [sp, #120] mov x8, x10 add w8, w8, #1 str w8, [sp, #120] add x9, sp, #1176 mov x8, x9 add x10, x8, x10 mov w8, #92 strb w8, [x10] ldrsw x10, [sp, #120] mov x11, x10 add w11, w11, #1 str w11, [sp, #120] add x9, x9, x10 strb w8, [x9] b LBB0_56 LBB0_31: ; in Loop: Header=BB0_26 Depth=3 ldrsw x9, [sp, #128] sub x8, x29, #152 ldrb w8, [x8, x9] subs w8, w8, #32 cset w8, lt tbnz w8, #0, LBB0_36 b LBB0_32 LBB0_32: ; in Loop: Header=BB0_26 Depth=3 ldrsw x9, [sp, #128] sub x8, x29, #152 ldrb w8, [x8, x9] subs w8, w8, #126 cset w8, gt tbnz w8, #0, LBB0_36 b LBB0_33 LBB0_33: ; in Loop: Header=BB0_26 Depth=3 ldrsw x9, [sp, #128] sub x8, x29, #152 ldrb w8, [x8, x9] subs w8, w8, #34 cset w8, eq tbnz w8, #0, LBB0_36 b LBB0_34 LBB0_34: ; in Loop: Header=BB0_26 Depth=3 ldrsw x9, [sp, #128] sub x8, x29, #152 ldrb w8, [x8, x9] subs w8, w8, #92 cset w8, eq tbnz w8, #0, LBB0_36 b LBB0_35 LBB0_35: ; in Loop: Header=BB0_26 Depth=3 ldrsw x9, [sp, #128] sub x8, x29, #152 add x8, x8, x9 ldrb w8, [x8] ldrsw x10, [sp, #120] mov x9, x10 add w9, w9, #1 str w9, [sp, #120] add x9, sp, #1176 add x9, x9, x10 strb w8, [x9] b LBB0_55 LBB0_36: ; in Loop: Header=BB0_26 Depth=3 ldrsw x9, [sp, #120] mov x8, x9 add w8, w8, #1 str w8, [sp, #120] add x8, sp, #1176 add x9, x8, x9 mov w8, #92 strb w8, [x9] ldrsw x9, [sp, #128] sub x8, x29, #152 ldrb w8, [x8, x9] subs w8, w8, #10 cset w8, ne tbnz w8, #0, LBB0_38 b LBB0_37 LBB0_37: ; in Loop: Header=BB0_26 Depth=3 ldrsw x9, [sp, #120] mov x8, x9 add w8, w8, #1 str w8, [sp, #120] add x8, sp, #1176 add x9, x8, x9 mov w8, #110 strb w8, [x9] b LBB0_54 LBB0_38: ; in Loop: Header=BB0_26 Depth=3 ldrsw x9, [sp, #128] sub x8, x29, #152 ldrb w8, [x8, x9] subs w8, w8, #13 cset w8, ne tbnz w8, #0, LBB0_40 b LBB0_39 LBB0_39: ; in Loop: Header=BB0_26 Depth=3 ldrsw x9, [sp, #120] mov x8, x9 add w8, w8, #1 str w8, [sp, #120] add x8, sp, #1176 add x9, x8, x9 mov w8, #114 strb w8, [x9] b LBB0_53 LBB0_40: ; in Loop: Header=BB0_26 Depth=3 ldrsw x9, [sp, #128] sub x8, x29, #152 ldrb w8, [x8, x9] subs w8, w8, #9 cset w8, ne tbnz w8, #0, LBB0_42 b LBB0_41 LBB0_41: ; in Loop: Header=BB0_26 Depth=3 ldrsw x9, [sp, #120] mov x8, x9 add w8, w8, #1 str w8, [sp, #120] add x8, sp, #1176 add x9, x8, x9 mov w8, #116 strb w8, [x9] b LBB0_52 LBB0_42: ; in Loop: Header=BB0_26 Depth=3 ldrsw x9, [sp, #128] sub x8, x29, #152 ldrb w8, [x8, x9] subs w8, w8, #64 cset w8, ge tbnz w8, #0, LBB0_46 b LBB0_43 LBB0_43: ; in Loop: Header=BB0_26 Depth=3 ldr w8, [sp, #128] ldr w9, [sp, #124] subs w9, w9, #1 subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_47 b LBB0_44 LBB0_44: ; in Loop: Header=BB0_26 Depth=3 ldr w8, [sp, #128] add w9, w8, #1 sub x8, x29, #152 ldrb w8, [x8, w9, sxtw] subs w8, w8, #48 cset w8, lt tbnz w8, #0, LBB0_47 b LBB0_45 LBB0_45: ; in Loop: Header=BB0_26 Depth=3 ldr w8, [sp, #128] add w9, w8, #1 sub x8, x29, #152 ldrb w8, [x8, w9, sxtw] subs w8, w8, #57 cset w8, gt tbnz w8, #0, LBB0_47 b LBB0_46 LBB0_46: ; in Loop: Header=BB0_26 Depth=3 ldrsw x9, [sp, #128] sub x8, x29, #152 ldrb w9, [x8, x9] asr w9, w9, #6 and w9, w9, #0x3 add w10, w9, #48 ldrsw x11, [sp, #120] mov x9, x11 add w9, w9, #1 str w9, [sp, #120] add x9, sp, #1176 strb w10, [x9, x11] ldrsw x10, [sp, #128] ldrb w10, [x8, x10] asr w10, w10, #3 and w10, w10, #0x7 add w10, w10, #48 ldrsw x11, [sp, #120] mov x12, x11 add w12, w12, #1 str w12, [sp, #120] strb w10, [x9, x11] ldrsw x10, [sp, #128] ldrb w8, [x8, x10] asr w8, w8, #0 and w8, w8, #0x7 add w8, w8, #48 ldrsw x10, [sp, #120] mov x11, x10 add w11, w11, #1 str w11, [sp, #120] strb w8, [x9, x10] b LBB0_51 LBB0_47: ; in Loop: Header=BB0_26 Depth=3 ldrsw x9, [sp, #128] sub x8, x29, #152 ldrb w8, [x8, x9] subs w8, w8, #8 cset w8, lt tbnz w8, #0, LBB0_49 b LBB0_48 LBB0_48: ; in Loop: Header=BB0_26 Depth=3 ldrsw x9, [sp, #128] sub x8, x29, #152 ldrb w9, [x8, x9] asr w9, w9, #3 and w9, w9, #0x7 add w10, w9, #48 ldrsw x11, [sp, #120] mov x9, x11 add w9, w9, #1 str w9, [sp, #120] add x9, sp, #1176 strb w10, [x9, x11] ldrsw x10, [sp, #128] ldrb w8, [x8, x10] asr w8, w8, #0 and w8, w8, #0x7 add w8, w8, #48 ldrsw x10, [sp, #120] mov x11, x10 add w11, w11, #1 str w11, [sp, #120] strb w8, [x9, x10] b LBB0_50 LBB0_49: ; in Loop: Header=BB0_26 Depth=3 ldrsw x9, [sp, #128] sub x8, x29, #152 ldrb w8, [x8, x9] asr w8, w8, #0 and w8, w8, #0x7 add w8, w8, #48 ldrsw x10, [sp, #120] mov x9, x10 add w9, w9, #1 str w9, [sp, #120] add x9, sp, #1176 strb w8, [x9, x10] b LBB0_50 LBB0_50: ; in Loop: Header=BB0_26 Depth=3 b LBB0_51 LBB0_51: ; in Loop: Header=BB0_26 Depth=3 b LBB0_52 LBB0_52: ; in Loop: Header=BB0_26 Depth=3 b LBB0_53 LBB0_53: ; in Loop: Header=BB0_26 Depth=3 b LBB0_54 LBB0_54: ; in Loop: Header=BB0_26 Depth=3 b LBB0_55 LBB0_55: ; in Loop: Header=BB0_26 Depth=3 b LBB0_56 LBB0_56: ; in Loop: Header=BB0_26 Depth=3 b LBB0_57 LBB0_57: ; in Loop: Header=BB0_26 Depth=3 b LBB0_58 LBB0_58: ; in Loop: Header=BB0_26 Depth=3 ldr w8, [sp, #128] add w8, w8, #1 str w8, [sp, #128] b LBB0_26 LBB0_59: ; in Loop: Header=BB0_23 Depth=2 ldrsw x9, [sp, #120] mov x8, x9 add w8, w8, #1 str w8, [sp, #120] add x0, sp, #1176 mov x8, x0 add x9, x8, x9 mov w8, #34 strb w8, [x9] ldrsw x2, [sp, #120] adrp x8, ___stdoutp@GOTPAGE ldr x8, [x8, ___stdoutp@GOTPAGEOFF] ldr x3, [x8] mov x1, #1 bl _fwrite b LBB0_23 LBB0_60: ; in Loop: Header=BB0_2 Depth=1 b LBB0_61 LBB0_61: ; in Loop: Header=BB0_2 Depth=1 adrp x0, l_.str.13@PAGE add x0, x0, l_.str.13@PAGEOFF bl _printf b LBB0_91 LBB0_62: ; in Loop: Header=BB0_2 Depth=1 mov w8, #1 str w8, [sp, #116] ldr w9, [sp, #112] ; implicit-def: $x8 mov x8, x9 str x8, [sp, #40] ; 8-byte Folded Spill ldr w8, [sp, #108] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_64 b LBB0_63 LBB0_63: ; in Loop: Header=BB0_2 Depth=1 ldr w8, [sp, #108] str w8, [sp, #36] ; 4-byte Folded Spill b LBB0_65 LBB0_64: ; in Loop: Header=BB0_2 Depth=1 mov w8, #1 str w8, [sp, #36] ; 4-byte Folded Spill b LBB0_65 LBB0_65: ; in Loop: Header=BB0_2 Depth=1 ldr x8, [sp, #40] ; 8-byte Folded Reload ldr w10, [sp, #36] ; 4-byte Folded Reload mov x9, sp str x8, [x9] ; implicit-def: $x8 mov x8, x10 str x8, [x9, #8] adrp x0, l_.str.14@PAGE add x0, x0, l_.str.14@PAGEOFF bl _printf ldr w8, [sp, #112] add w8, w8, #1 str w8, [sp, #112] ldr w8, [sp, #108] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_67 b LBB0_66 LBB0_66: ; in Loop: Header=BB0_2 Depth=1 adrp x0, l_.str.15@PAGE add x0, x0, l_.str.15@PAGEOFF bl _printf b LBB0_90 LBB0_67: ; in Loop: Header=BB0_2 Depth=1 b LBB0_68 LBB0_68: ; Parent Loop BB0_2 Depth=1 ; => This Loop Header: Depth=2 ; Child Loop BB0_74 Depth 3 ldr x3, [sp, #88] sub x0, x29, #152 mov x1, #1 mov x2, #128 bl _fread mov x8, x0 str w8, [sp, #124] ldr w8, [sp, #124] subs w8, w8, #1 cset w8, ge tbnz w8, #0, LBB0_70 b LBB0_69 LBB0_69: ; in Loop: Header=BB0_2 Depth=1 b LBB0_89 LBB0_70: ; in Loop: Header=BB0_68 Depth=2 str wzr, [sp, #120] ldr w8, [sp, #116] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_72 b LBB0_71 LBB0_71: ; in Loop: Header=BB0_68 Depth=2 str wzr, [sp, #116] b LBB0_73 LBB0_72: ; in Loop: Header=BB0_68 Depth=2 ldrsw x9, [sp, #120] mov x8, x9 add w8, w8, #1 str w8, [sp, #120] add x8, sp, #1176 add x9, x8, x9 mov w8, #44 strb w8, [x9] b LBB0_73 LBB0_73: ; in Loop: Header=BB0_68 Depth=2 ldrsw x9, [sp, #120] mov x8, x9 add w8, w8, #1 str w8, [sp, #120] add x8, sp, #1176 add x9, x8, x9 mov w8, #10 strb w8, [x9] str wzr, [sp, #128] b LBB0_74 LBB0_74: ; Parent Loop BB0_2 Depth=1 ; Parent Loop BB0_68 Depth=2 ; => This Inner Loop Header: Depth=3 ldr w8, [sp, #128] ldr w9, [sp, #124] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_88 b LBB0_75 LBB0_75: ; in Loop: Header=BB0_74 Depth=3 ldr w8, [sp, #128] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB0_77 b LBB0_76 LBB0_76: ; in Loop: Header=BB0_74 Depth=3 ldrsw x9, [sp, #120] mov x8, x9 add w8, w8, #1 str w8, [sp, #120] add x8, sp, #1176 add x9, x8, x9 mov w8, #44 strb w8, [x9] b LBB0_77 LBB0_77: ; in Loop: Header=BB0_74 Depth=3 ldr w8, [sp, #100] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_79 b LBB0_78 LBB0_78: ; in Loop: Header=BB0_74 Depth=3 ldrsw x10, [sp, #120] mov x8, x10 add w8, w8, #1 str w8, [sp, #120] add x9, sp, #1176 mov x8, x9 add x10, x8, x10 mov w8, #48 strb w8, [x10] ldrsw x10, [sp, #120] mov x8, x10 add w8, w8, #1 str w8, [sp, #120] mov x8, x9 add x10, x8, x10 mov w8, #120 strb w8, [x10] adrp x8, _nibbletohex@PAGE ldr x11, [x8, _nibbletohex@PAGEOFF] ldrsw x12, [sp, #128] sub x10, x29, #152 ldrb w12, [x10, x12] asr w12, w12, #4 and w12, w12, #0xf add x11, x11, w12, sxtw ldrb w11, [x11] ldrsw x13, [sp, #120] mov x12, x13 add w12, w12, #1 str w12, [sp, #120] mov x12, x9 add x12, x12, x13 strb w11, [x12] ldr x8, [x8, _nibbletohex@PAGEOFF] ldrsw x11, [sp, #128] ldrb w10, [x10, x11] and w10, w10, #0xf add x8, x8, w10, sxtw ldrb w8, [x8] ldrsw x10, [sp, #120] mov x11, x10 add w11, w11, #1 str w11, [sp, #120] add x9, x9, x10 strb w8, [x9] b LBB0_86 LBB0_79: ; in Loop: Header=BB0_74 Depth=3 ldrsw x9, [sp, #128] sub x8, x29, #152 ldrb w8, [x8, x9] subs w8, w8, #100 cset w8, lt tbnz w8, #0, LBB0_81 b LBB0_80 LBB0_80: ; in Loop: Header=BB0_74 Depth=3 ldrsw x9, [sp, #128] sub x8, x29, #152 ldrb w9, [x8, x9] mov w10, #100 sdiv w9, w9, w10 add w10, w9, #48 ldrsw x11, [sp, #120] mov x9, x11 add w9, w9, #1 str w9, [sp, #120] add x9, sp, #1176 strb w10, [x9, x11] ldrsw x10, [sp, #128] ldrb w10, [x8, x10] mov w11, #10 sdiv w10, w10, w11 sdiv w12, w10, w11 mul w12, w12, w11 subs w10, w10, w12 add w10, w10, #48 ldrsw x12, [sp, #120] mov x13, x12 add w13, w13, #1 str w13, [sp, #120] strb w10, [x9, x12] ldrsw x10, [sp, #128] ldrb w8, [x8, x10] sdiv w10, w8, w11 mul w10, w10, w11 subs w8, w8, w10 add w8, w8, #48 ldrsw x10, [sp, #120] mov x11, x10 add w11, w11, #1 str w11, [sp, #120] strb w8, [x9, x10] b LBB0_85 LBB0_81: ; in Loop: Header=BB0_74 Depth=3 ldrsw x9, [sp, #128] sub x8, x29, #152 ldrb w8, [x8, x9] subs w8, w8, #10 cset w8, lt tbnz w8, #0, LBB0_83 b LBB0_82 LBB0_82: ; in Loop: Header=BB0_74 Depth=3 ldrsw x9, [sp, #128] sub x8, x29, #152 ldrb w9, [x8, x9] mov w11, #10 sdiv w9, w9, w11 add w10, w9, #48 ldrsw x12, [sp, #120] mov x9, x12 add w9, w9, #1 str w9, [sp, #120] add x9, sp, #1176 strb w10, [x9, x12] ldrsw x10, [sp, #128] ldrb w8, [x8, x10] sdiv w10, w8, w11 mul w10, w10, w11 subs w8, w8, w10 add w8, w8, #48 ldrsw x10, [sp, #120] mov x11, x10 add w11, w11, #1 str w11, [sp, #120] strb w8, [x9, x10] b LBB0_84 LBB0_83: ; in Loop: Header=BB0_74 Depth=3 ldrsw x9, [sp, #128] sub x8, x29, #152 ldrb w8, [x8, x9] add w8, w8, #48 ldrsw x10, [sp, #120] mov x9, x10 add w9, w9, #1 str w9, [sp, #120] add x9, sp, #1176 strb w8, [x9, x10] b LBB0_84 LBB0_84: ; in Loop: Header=BB0_74 Depth=3 b LBB0_85 LBB0_85: ; in Loop: Header=BB0_74 Depth=3 b LBB0_86 LBB0_86: ; in Loop: Header=BB0_74 Depth=3 b LBB0_87 LBB0_87: ; in Loop: Header=BB0_74 Depth=3 ldr w8, [sp, #128] add w8, w8, #1 str w8, [sp, #128] b LBB0_74 LBB0_88: ; in Loop: Header=BB0_68 Depth=2 ldrsw x2, [sp, #120] adrp x8, ___stdoutp@GOTPAGE ldr x8, [x8, ___stdoutp@GOTPAGEOFF] ldr x3, [x8] add x0, sp, #1176 mov x1, #1 bl _fwrite b LBB0_68 LBB0_89: ; in Loop: Header=BB0_2 Depth=1 b LBB0_90 LBB0_90: ; in Loop: Header=BB0_2 Depth=1 adrp x0, l_.str.16@PAGE add x0, x0, l_.str.16@PAGEOFF bl _printf b LBB0_91 LBB0_91: ; in Loop: Header=BB0_2 Depth=1 ldr x0, [sp, #88] bl _fclose b LBB0_92 LBB0_92: ; in Loop: Header=BB0_2 Depth=1 b LBB0_93 LBB0_93: ; in Loop: Header=BB0_2 Depth=1 b LBB0_94 LBB0_94: ; in Loop: Header=BB0_2 Depth=1 b LBB0_95 LBB0_95: ; in Loop: Header=BB0_2 Depth=1 b LBB0_96 LBB0_96: ; in Loop: Header=BB0_2 Depth=1 ldr w8, [sp, #132] add w8, w8, #1 str w8, [sp, #132] b LBB0_2 LBB0_97: ldr w8, [sp, #112] mov w9, #1 str w9, [sp, #32] ; 4-byte Folded Spill add w10, w8, #1 mov x9, sp ; implicit-def: $x8 mov x8, x10 str x8, [x9] adrp x0, l_.str.17@PAGE add x0, x0, l_.str.17@PAGEOFF bl _printf ldr w8, [sp, #32] ; 4-byte Folded Reload str wzr, [sp, #112] ; kill: def $x9 killed $xzr str xzr, [sp, #80] str w8, [sp, #132] b LBB0_98 LBB0_98: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #132] ldr w9, [sp, #144] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_115 b LBB0_99 LBB0_99: ; in Loop: Header=BB0_98 Depth=1 ldr x8, [sp, #136] ldrsw x9, [sp, #132] ldr x0, [x8, x9, lsl #3] adrp x1, l_.str.4@PAGE add x1, x1, l_.str.4@PAGEOFF mov x2, #6 bl _strncmp subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB0_101 b LBB0_100 LBB0_100: ; in Loop: Header=BB0_98 Depth=1 ldr x8, [sp, #136] ldrsw x9, [sp, #132] ldr x0, [x8, x9, lsl #3] mov w1, #61 bl _strchr add x8, x0, #1 str x8, [sp, #80] b LBB0_113 LBB0_101: ; in Loop: Header=BB0_98 Depth=1 ldr x8, [sp, #136] ldrsw x9, [sp, #132] ldr x0, [x8, x9, lsl #3] 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_112 b LBB0_102 LBB0_102: ; in Loop: Header=BB0_98 Depth=1 ldr x8, [sp, #136] ldrsw x9, [sp, #132] ldr x0, [x8, x9, lsl #3] adrp x1, l_.str.2@PAGE add x1, x1, l_.str.2@PAGEOFF bl _strcmp subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB0_112 b LBB0_103 LBB0_103: ; in Loop: Header=BB0_98 Depth=1 ldr x8, [sp, #136] ldrsw x9, [sp, #132] ldr x0, [x8, x9, lsl #3] adrp x1, l_.str.3@PAGE add x1, x1, l_.str.3@PAGEOFF bl _strcmp subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB0_112 b LBB0_104 LBB0_104: ; in Loop: Header=BB0_98 Depth=1 ldr x8, [sp, #136] ldrsw x9, [sp, #132] ldr x0, [x8, x9, lsl #3] adrp x1, l_.str.4@PAGE add x1, x1, l_.str.4@PAGEOFF mov x2, #6 bl _strncmp subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB0_112 b LBB0_105 LBB0_105: ; in Loop: Header=BB0_98 Depth=1 ldr x8, [sp, #80] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB0_107 b LBB0_106 LBB0_106: ; in Loop: Header=BB0_98 Depth=1 ldr x10, [sp, #80] ldr x8, [sp, #136] ldrsw x9, [sp, #132] ldr x8, [x8, x9, lsl #3] mov x9, sp str x10, [x9] str x8, [x9, #8] add x0, sp, #152 mov x3, #1024 mov x1, x3 mov w2, #0 adrp x4, l_.str.5@PAGE add x4, x4, l_.str.5@PAGEOFF bl ___snprintf_chk b LBB0_108 LBB0_107: ; in Loop: Header=BB0_98 Depth=1 ldr x8, [sp, #136] ldrsw x9, [sp, #132] ldr x8, [x8, x9, lsl #3] mov x9, sp str x8, [x9] add x0, sp, #152 mov x3, #1024 mov x1, x3 mov w2, #0 adrp x4, l_.str.6@PAGE add x4, x4, l_.str.6@PAGEOFF bl ___snprintf_chk b LBB0_108 LBB0_108: ; in Loop: Header=BB0_98 Depth=1 add x0, sp, #152 adrp x1, l_.str.7@PAGE add x1, x1, l_.str.7@PAGEOFF bl _fopen mov x8, x0 str x8, [sp, #88] subs x8, x0, #0 cset w8, eq tbnz w8, #0, LBB0_110 b LBB0_109 LBB0_109: ; in Loop: Header=BB0_98 Depth=1 ldr x0, [sp, #88] mov x1, #0 mov w2, #2 bl _fseek ldr x0, [sp, #88] bl _ftell mov x8, x0 str w8, [sp, #108] ldr x8, [sp, #136] ldrsw x9, [sp, #132] ldr x11, [x8, x9, lsl #3] ldr w8, [sp, #112] ; implicit-def: $x10 mov x10, x8 ldr w9, [sp, #108] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x11, [x9] str x10, [x9, #8] str x8, [x9, #16] adrp x0, l_.str.18@PAGE add x0, x0, l_.str.18@PAGEOFF bl _printf ldr w8, [sp, #112] add w8, w8, #1 str w8, [sp, #112] ldr x0, [sp, #88] bl _fclose b LBB0_111 LBB0_110: ; in Loop: Header=BB0_98 Depth=1 mov x9, sp add x8, sp, #152 str x8, [x9] adrp x0, l_.str.8@PAGE add x0, x0, l_.str.8@PAGEOFF bl _printf b LBB0_111 LBB0_111: ; in Loop: Header=BB0_98 Depth=1 b LBB0_112 LBB0_112: ; in Loop: Header=BB0_98 Depth=1 b LBB0_113 LBB0_113: ; in Loop: Header=BB0_98 Depth=1 b LBB0_114 LBB0_114: ; in Loop: Header=BB0_98 Depth=1 ldr w8, [sp, #132] add w8, w8, #1 str w8, [sp, #132] b LBB0_98 LBB0_115: adrp x0, l_.str.19@PAGE add x0, x0, l_.str.19@PAGEOFF bl _printf str wzr, [sp, #148] b LBB0_117 LBB0_116: adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] ldr x0, [x8] ldr x8, [sp, #136] ldr x8, [x8] mov x9, sp str x8, [x9] adrp x1, l_.str.20@PAGE add x1, x1, l_.str.20@PAGEOFF bl _fprintf mov w8, #1 str w8, [sp, #148] b LBB0_117 LBB0_117: ldr w8, [sp, #148] 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, LBB0_119 b LBB0_118 LBB0_118: bl ___stack_chk_fail LBB0_119: ldr w0, [sp, #28] ; 4-byte Folded Reload add sp, sp, #2112 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 "/*this file generated by %s*/\n\ntypedef struct embeddedfile_s\n{\n\tchar *name;\n\tunsigned char *data;\n\tint datasize;\n}\nembeddedfile_t;\n\n" l_.str.1: ; @.str.1 .asciz "-strings" l_.str.2: ; @.str.2 .asciz "-array" l_.str.3: ; @.str.3 .asciz "-hexarray" l_.str.4: ; @.str.4 .asciz "-base=" l_.str.5: ; @.str.5 .asciz "%s/%s" l_.str.6: ; @.str.6 .asciz "%s" l_.str.7: ; @.str.7 .asciz "rb" l_.str.8: ; @.str.8 .asciz "/*file \"%s\" not found*/\n" l_.str.9: ; @.str.9 .asciz "file \"%s\" not found\n" l_.str.10: ; @.str.10 .asciz "/*file \"%s\"*/\n" l_.str.11: ; @.str.11 .asciz "char embeddedfile_data%i[%i] =" l_.str.12: ; @.str.12 .asciz "\"\"" l_.str.13: ; @.str.13 .asciz ";\n\n" l_.str.14: ; @.str.14 .asciz "unsigned char embeddedfile_data%i[%i] =\n{" l_.str.15: ; @.str.15 .asciz "\n0" .section __DATA,__data .p2align 3 ; @nibbletohex _nibbletohex: .quad l_.str.21 .section __TEXT,__cstring,cstring_literals l_.str.16: ; @.str.16 .asciz "\n};\n\n" l_.str.17: ; @.str.17 .asciz "embeddedfile_t embeddedfile[%i] =\n{\n" l_.str.18: ; @.str.18 .asciz "\t{\"%s\", embeddedfile_data%i, %i},\n" l_.str.19: ; @.str.19 .asciz "\t{0, 0, 0}\n};\n" l_.str.20: ; @.str.20 .asciz "usage: %s [options] inputfiles\nOptions:\n-strings output strings with escape codes\n-array output an array of bytes as decimal\n-hexarray output an array of bytes as hexidecimal\n" l_.str.21: ; @.str.21 .asciz "0123456789ABCDEF" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $2080, %rsp ## imm = 0x820 movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -1972(%rbp) movl %edi, -1976(%rbp) movq %rsi, -1984(%rbp) movl $0, -2016(%rbp) movl $0, -2020(%rbp) movq $0, -2040(%rbp) cmpl $2, -1976(%rbp) jl LBB0_116 ## %bb.1: movq -1984(%rbp), %rax movq (%rax), %rsi leaq L_.str(%rip), %rdi movb $0, %al callq _printf movl $0, -2008(%rbp) movl $1, -1988(%rbp) LBB0_2: ## =>This Loop Header: Depth=1 ## Child Loop BB0_23 Depth 2 ## Child Loop BB0_26 Depth 3 ## Child Loop BB0_68 Depth 2 ## Child Loop BB0_74 Depth 3 movl -1988(%rbp), %eax cmpl -1976(%rbp), %eax jge LBB0_97 ## %bb.3: ## in Loop: Header=BB0_2 Depth=1 movq -1984(%rbp), %rax movslq -1988(%rbp), %rcx movq (%rax,%rcx,8), %rdi leaq L_.str.1(%rip), %rsi callq _strcmp cmpl $0, %eax jne LBB0_5 ## %bb.4: ## in Loop: Header=BB0_2 Depth=1 movl $1, -2016(%rbp) jmp LBB0_95 LBB0_5: ## in Loop: Header=BB0_2 Depth=1 movq -1984(%rbp), %rax movslq -1988(%rbp), %rcx movq (%rax,%rcx,8), %rdi leaq L_.str.2(%rip), %rsi callq _strcmp cmpl $0, %eax jne LBB0_7 ## %bb.6: ## in Loop: Header=BB0_2 Depth=1 movl $0, -2016(%rbp) movl $0, -2020(%rbp) jmp LBB0_94 LBB0_7: ## in Loop: Header=BB0_2 Depth=1 movq -1984(%rbp), %rax movslq -1988(%rbp), %rcx movq (%rax,%rcx,8), %rdi leaq L_.str.3(%rip), %rsi callq _strcmp cmpl $0, %eax jne LBB0_9 ## %bb.8: ## in Loop: Header=BB0_2 Depth=1 movl $0, -2016(%rbp) movl $1, -2020(%rbp) jmp LBB0_93 LBB0_9: ## in Loop: Header=BB0_2 Depth=1 movq -1984(%rbp), %rax movslq -1988(%rbp), %rcx movq (%rax,%rcx,8), %rdi leaq L_.str.4(%rip), %rsi movl $6, %edx callq _strncmp cmpl $0, %eax jne LBB0_11 ## %bb.10: ## in Loop: Header=BB0_2 Depth=1 movq -1984(%rbp), %rax movslq -1988(%rbp), %rcx movq (%rax,%rcx,8), %rdi movl $61, %esi callq _strchr addq $1, %rax movq %rax, -2040(%rbp) jmp LBB0_92 LBB0_11: ## in Loop: Header=BB0_2 Depth=1 cmpq $0, -2040(%rbp) je LBB0_13 ## %bb.12: ## in Loop: Header=BB0_2 Depth=1 leaq -1968(%rbp), %rdi movq -2040(%rbp), %r9 movq -1984(%rbp), %rax movslq -1988(%rbp), %rcx movq (%rax,%rcx,8), %rax movl $1024, %ecx ## imm = 0x400 xorl %edx, %edx leaq L_.str.5(%rip), %r8 movq %rcx, %rsi movq %rax, (%rsp) movb $0, %al callq ___snprintf_chk jmp LBB0_14 LBB0_13: ## in Loop: Header=BB0_2 Depth=1 leaq -1968(%rbp), %rdi movq -1984(%rbp), %rax movslq -1988(%rbp), %rcx movq (%rax,%rcx,8), %r9 movl $1024, %ecx ## imm = 0x400 xorl %edx, %edx leaq L_.str.6(%rip), %r8 movq %rcx, %rsi movb $0, %al callq ___snprintf_chk LBB0_14: ## in Loop: Header=BB0_2 Depth=1 leaq -1968(%rbp), %rdi leaq L_.str.7(%rip), %rsi callq _fopen movq %rax, -2032(%rbp) cmpq $0, %rax jne LBB0_16 ## %bb.15: ## in Loop: Header=BB0_2 Depth=1 leaq -1968(%rbp), %rsi leaq L_.str.8(%rip), %rdi movb $0, %al callq _printf movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq -1968(%rbp), %rdx leaq L_.str.9(%rip), %rsi movb $0, %al callq _fprintf jmp LBB0_96 LBB0_16: ## in Loop: Header=BB0_2 Depth=1 movq -2032(%rbp), %rdi xorl %eax, %eax movl %eax, %esi movl $2, %edx callq _fseek movq -2032(%rbp), %rdi callq _ftell ## kill: def $eax killed $eax killed $rax movl %eax, -2012(%rbp) movq -2032(%rbp), %rdi xorl %eax, %eax movl %eax, %esi xorl %edx, %edx callq _fseek movq -1984(%rbp), %rax movslq -1988(%rbp), %rcx movq (%rax,%rcx,8), %rsi leaq L_.str.10(%rip), %rdi movb $0, %al callq _printf cmpl $0, -2016(%rbp) je LBB0_62 ## %bb.17: ## in Loop: Header=BB0_2 Depth=1 movl -2008(%rbp), %eax movl %eax, -2044(%rbp) ## 4-byte Spill cmpl $0, -2012(%rbp) je LBB0_19 ## %bb.18: ## in Loop: Header=BB0_2 Depth=1 movl -2012(%rbp), %eax movl %eax, -2048(%rbp) ## 4-byte Spill jmp LBB0_20 LBB0_19: ## in Loop: Header=BB0_2 Depth=1 movl $1, %eax movl %eax, -2048(%rbp) ## 4-byte Spill jmp LBB0_20 LBB0_20: ## in Loop: Header=BB0_2 Depth=1 movl -2044(%rbp), %esi ## 4-byte Reload movl -2048(%rbp), %edx ## 4-byte Reload leaq L_.str.11(%rip), %rdi movb $0, %al callq _printf movl -2008(%rbp), %eax addl $1, %eax movl %eax, -2008(%rbp) cmpl $0, -2012(%rbp) jne LBB0_22 ## %bb.21: ## in Loop: Header=BB0_2 Depth=1 leaq L_.str.12(%rip), %rdi movb $0, %al callq _printf jmp LBB0_61 LBB0_22: ## in Loop: Header=BB0_2 Depth=1 jmp LBB0_23 LBB0_23: ## Parent Loop BB0_2 Depth=1 ## => This Loop Header: Depth=2 ## Child Loop BB0_26 Depth 3 movl $0, -2000(%rbp) movl -2000(%rbp), %eax movl %eax, %ecx addl $1, %ecx movl %ecx, -2000(%rbp) cltq movb $10, -944(%rbp,%rax) movl -2000(%rbp), %eax movl %eax, %ecx addl $1, %ecx movl %ecx, -2000(%rbp) cltq movb $34, -944(%rbp,%rax) leaq -144(%rbp), %rdi movq -2032(%rbp), %rcx movl $1, %esi movl $128, %edx callq _fread ## kill: def $eax killed $eax killed $rax movl %eax, -1996(%rbp) cmpl $1, -1996(%rbp) jge LBB0_25 ## %bb.24: ## in Loop: Header=BB0_2 Depth=1 jmp LBB0_60 LBB0_25: ## in Loop: Header=BB0_23 Depth=2 movl $0, -1992(%rbp) LBB0_26: ## Parent Loop BB0_2 Depth=1 ## Parent Loop BB0_23 Depth=2 ## => This Inner Loop Header: Depth=3 movl -1992(%rbp), %eax cmpl -1996(%rbp), %eax jge LBB0_59 ## %bb.27: ## in Loop: Header=BB0_26 Depth=3 movslq -1992(%rbp), %rax movzbl -144(%rbp,%rax), %eax cmpl $63, %eax jne LBB0_29 ## %bb.28: ## in Loop: Header=BB0_26 Depth=3 movl -2000(%rbp), %eax movl %eax, %ecx addl $1, %ecx movl %ecx, -2000(%rbp) cltq movb $92, -944(%rbp,%rax) movl -2000(%rbp), %eax movl %eax, %ecx addl $1, %ecx movl %ecx, -2000(%rbp) cltq movb $63, -944(%rbp,%rax) jmp LBB0_57 LBB0_29: ## in Loop: Header=BB0_26 Depth=3 movslq -1992(%rbp), %rax movzbl -144(%rbp,%rax), %eax cmpl $92, %eax jne LBB0_31 ## %bb.30: ## in Loop: Header=BB0_26 Depth=3 movl -2000(%rbp), %eax movl %eax, %ecx addl $1, %ecx movl %ecx, -2000(%rbp) cltq movb $92, -944(%rbp,%rax) movl -2000(%rbp), %eax movl %eax, %ecx addl $1, %ecx movl %ecx, -2000(%rbp) cltq movb $92, -944(%rbp,%rax) jmp LBB0_56 LBB0_31: ## in Loop: Header=BB0_26 Depth=3 movslq -1992(%rbp), %rax movzbl -144(%rbp,%rax), %eax cmpl $32, %eax jl LBB0_36 ## %bb.32: ## in Loop: Header=BB0_26 Depth=3 movslq -1992(%rbp), %rax movzbl -144(%rbp,%rax), %eax cmpl $126, %eax jg LBB0_36 ## %bb.33: ## in Loop: Header=BB0_26 Depth=3 movslq -1992(%rbp), %rax movzbl -144(%rbp,%rax), %eax cmpl $34, %eax je LBB0_36 ## %bb.34: ## in Loop: Header=BB0_26 Depth=3 movslq -1992(%rbp), %rax movzbl -144(%rbp,%rax), %eax cmpl $92, %eax je LBB0_36 ## %bb.35: ## in Loop: Header=BB0_26 Depth=3 movslq -1992(%rbp), %rax movb -144(%rbp,%rax), %cl movl -2000(%rbp), %eax movl %eax, %edx addl $1, %edx movl %edx, -2000(%rbp) cltq movb %cl, -944(%rbp,%rax) jmp LBB0_55 LBB0_36: ## in Loop: Header=BB0_26 Depth=3 movl -2000(%rbp), %eax movl %eax, %ecx addl $1, %ecx movl %ecx, -2000(%rbp) cltq movb $92, -944(%rbp,%rax) movslq -1992(%rbp), %rax movzbl -144(%rbp,%rax), %eax cmpl $10, %eax jne LBB0_38 ## %bb.37: ## in Loop: Header=BB0_26 Depth=3 movl -2000(%rbp), %eax movl %eax, %ecx addl $1, %ecx movl %ecx, -2000(%rbp) cltq movb $110, -944(%rbp,%rax) jmp LBB0_54 LBB0_38: ## in Loop: Header=BB0_26 Depth=3 movslq -1992(%rbp), %rax movzbl -144(%rbp,%rax), %eax cmpl $13, %eax jne LBB0_40 ## %bb.39: ## in Loop: Header=BB0_26 Depth=3 movl -2000(%rbp), %eax movl %eax, %ecx addl $1, %ecx movl %ecx, -2000(%rbp) cltq movb $114, -944(%rbp,%rax) jmp LBB0_53 LBB0_40: ## in Loop: Header=BB0_26 Depth=3 movslq -1992(%rbp), %rax movzbl -144(%rbp,%rax), %eax cmpl $9, %eax jne LBB0_42 ## %bb.41: ## in Loop: Header=BB0_26 Depth=3 movl -2000(%rbp), %eax movl %eax, %ecx addl $1, %ecx movl %ecx, -2000(%rbp) cltq movb $116, -944(%rbp,%rax) jmp LBB0_52 LBB0_42: ## in Loop: Header=BB0_26 Depth=3 movslq -1992(%rbp), %rax movzbl -144(%rbp,%rax), %eax cmpl $64, %eax jge LBB0_46 ## %bb.43: ## in Loop: Header=BB0_26 Depth=3 movl -1992(%rbp), %eax movl -1996(%rbp), %ecx subl $1, %ecx cmpl %ecx, %eax jge LBB0_47 ## %bb.44: ## in Loop: Header=BB0_26 Depth=3 movl -1992(%rbp), %eax addl $1, %eax cltq movzbl -144(%rbp,%rax), %eax cmpl $48, %eax jl LBB0_47 ## %bb.45: ## in Loop: Header=BB0_26 Depth=3 movl -1992(%rbp), %eax addl $1, %eax cltq movzbl -144(%rbp,%rax), %eax cmpl $57, %eax jg LBB0_47 LBB0_46: ## in Loop: Header=BB0_26 Depth=3 movslq -1992(%rbp), %rax movzbl -144(%rbp,%rax), %eax sarl $6, %eax andl $3, %eax addl $48, %eax movb %al, %cl movl -2000(%rbp), %eax movl %eax, %edx addl $1, %edx movl %edx, -2000(%rbp) cltq movb %cl, -944(%rbp,%rax) movslq -1992(%rbp), %rax movzbl -144(%rbp,%rax), %eax sarl $3, %eax andl $7, %eax addl $48, %eax movb %al, %cl movl -2000(%rbp), %eax movl %eax, %edx addl $1, %edx movl %edx, -2000(%rbp) cltq movb %cl, -944(%rbp,%rax) movslq -1992(%rbp), %rax movzbl -144(%rbp,%rax), %eax sarl $0, %eax andl $7, %eax addl $48, %eax movb %al, %cl movl -2000(%rbp), %eax movl %eax, %edx addl $1, %edx movl %edx, -2000(%rbp) cltq movb %cl, -944(%rbp,%rax) jmp LBB0_51 LBB0_47: ## in Loop: Header=BB0_26 Depth=3 movslq -1992(%rbp), %rax movzbl -144(%rbp,%rax), %eax cmpl $8, %eax jl LBB0_49 ## %bb.48: ## in Loop: Header=BB0_26 Depth=3 movslq -1992(%rbp), %rax movzbl -144(%rbp,%rax), %eax sarl $3, %eax andl $7, %eax addl $48, %eax movb %al, %cl movl -2000(%rbp), %eax movl %eax, %edx addl $1, %edx movl %edx, -2000(%rbp) cltq movb %cl, -944(%rbp,%rax) movslq -1992(%rbp), %rax movzbl -144(%rbp,%rax), %eax sarl $0, %eax andl $7, %eax addl $48, %eax movb %al, %cl movl -2000(%rbp), %eax movl %eax, %edx addl $1, %edx movl %edx, -2000(%rbp) cltq movb %cl, -944(%rbp,%rax) jmp LBB0_50 LBB0_49: ## in Loop: Header=BB0_26 Depth=3 movslq -1992(%rbp), %rax movzbl -144(%rbp,%rax), %eax sarl $0, %eax andl $7, %eax addl $48, %eax movb %al, %cl movl -2000(%rbp), %eax movl %eax, %edx addl $1, %edx movl %edx, -2000(%rbp) cltq movb %cl, -944(%rbp,%rax) LBB0_50: ## in Loop: Header=BB0_26 Depth=3 jmp LBB0_51 LBB0_51: ## in Loop: Header=BB0_26 Depth=3 jmp LBB0_52 LBB0_52: ## in Loop: Header=BB0_26 Depth=3 jmp LBB0_53 LBB0_53: ## in Loop: Header=BB0_26 Depth=3 jmp LBB0_54 LBB0_54: ## in Loop: Header=BB0_26 Depth=3 jmp LBB0_55 LBB0_55: ## in Loop: Header=BB0_26 Depth=3 jmp LBB0_56 LBB0_56: ## in Loop: Header=BB0_26 Depth=3 jmp LBB0_57 LBB0_57: ## in Loop: Header=BB0_26 Depth=3 jmp LBB0_58 LBB0_58: ## in Loop: Header=BB0_26 Depth=3 movl -1992(%rbp), %eax addl $1, %eax movl %eax, -1992(%rbp) jmp LBB0_26 LBB0_59: ## in Loop: Header=BB0_23 Depth=2 movl -2000(%rbp), %eax movl %eax, %ecx addl $1, %ecx movl %ecx, -2000(%rbp) cltq movb $34, -944(%rbp,%rax) leaq -944(%rbp), %rdi movslq -2000(%rbp), %rdx movq ___stdoutp@GOTPCREL(%rip), %rax movq (%rax), %rcx movl $1, %esi callq _fwrite jmp LBB0_23 LBB0_60: ## in Loop: Header=BB0_2 Depth=1 jmp LBB0_61 LBB0_61: ## in Loop: Header=BB0_2 Depth=1 leaq L_.str.13(%rip), %rdi movb $0, %al callq _printf jmp LBB0_91 LBB0_62: ## in Loop: Header=BB0_2 Depth=1 movl $1, -2004(%rbp) movl -2008(%rbp), %eax movl %eax, -2052(%rbp) ## 4-byte Spill cmpl $0, -2012(%rbp) je LBB0_64 ## %bb.63: ## in Loop: Header=BB0_2 Depth=1 movl -2012(%rbp), %eax movl %eax, -2056(%rbp) ## 4-byte Spill jmp LBB0_65 LBB0_64: ## in Loop: Header=BB0_2 Depth=1 movl $1, %eax movl %eax, -2056(%rbp) ## 4-byte Spill jmp LBB0_65 LBB0_65: ## in Loop: Header=BB0_2 Depth=1 movl -2052(%rbp), %esi ## 4-byte Reload movl -2056(%rbp), %edx ## 4-byte Reload leaq L_.str.14(%rip), %rdi movb $0, %al callq _printf movl -2008(%rbp), %eax addl $1, %eax movl %eax, -2008(%rbp) cmpl $0, -2012(%rbp) jne LBB0_67 ## %bb.66: ## in Loop: Header=BB0_2 Depth=1 leaq L_.str.15(%rip), %rdi movb $0, %al callq _printf jmp LBB0_90 LBB0_67: ## in Loop: Header=BB0_2 Depth=1 jmp LBB0_68 LBB0_68: ## Parent Loop BB0_2 Depth=1 ## => This Loop Header: Depth=2 ## Child Loop BB0_74 Depth 3 leaq -144(%rbp), %rdi movq -2032(%rbp), %rcx movl $1, %esi movl $128, %edx callq _fread ## kill: def $eax killed $eax killed $rax movl %eax, -1996(%rbp) cmpl $1, -1996(%rbp) jge LBB0_70 ## %bb.69: ## in Loop: Header=BB0_2 Depth=1 jmp LBB0_89 LBB0_70: ## in Loop: Header=BB0_68 Depth=2 movl $0, -2000(%rbp) cmpl $0, -2004(%rbp) je LBB0_72 ## %bb.71: ## in Loop: Header=BB0_68 Depth=2 movl $0, -2004(%rbp) jmp LBB0_73 LBB0_72: ## in Loop: Header=BB0_68 Depth=2 movl -2000(%rbp), %eax movl %eax, %ecx addl $1, %ecx movl %ecx, -2000(%rbp) cltq movb $44, -944(%rbp,%rax) LBB0_73: ## in Loop: Header=BB0_68 Depth=2 movl -2000(%rbp), %eax movl %eax, %ecx addl $1, %ecx movl %ecx, -2000(%rbp) cltq movb $10, -944(%rbp,%rax) movl $0, -1992(%rbp) LBB0_74: ## Parent Loop BB0_2 Depth=1 ## Parent Loop BB0_68 Depth=2 ## => This Inner Loop Header: Depth=3 movl -1992(%rbp), %eax cmpl -1996(%rbp), %eax jge LBB0_88 ## %bb.75: ## in Loop: Header=BB0_74 Depth=3 cmpl $0, -1992(%rbp) jle LBB0_77 ## %bb.76: ## in Loop: Header=BB0_74 Depth=3 movl -2000(%rbp), %eax movl %eax, %ecx addl $1, %ecx movl %ecx, -2000(%rbp) cltq movb $44, -944(%rbp,%rax) LBB0_77: ## in Loop: Header=BB0_74 Depth=3 cmpl $0, -2020(%rbp) je LBB0_79 ## %bb.78: ## in Loop: Header=BB0_74 Depth=3 movl -2000(%rbp), %eax movl %eax, %ecx addl $1, %ecx movl %ecx, -2000(%rbp) cltq movb $48, -944(%rbp,%rax) movl -2000(%rbp), %eax movl %eax, %ecx addl $1, %ecx movl %ecx, -2000(%rbp) cltq movb $120, -944(%rbp,%rax) movq _nibbletohex(%rip), %rax movslq -1992(%rbp), %rcx movzbl -144(%rbp,%rcx), %ecx sarl $4, %ecx andl $15, %ecx movslq %ecx, %rcx movb (%rax,%rcx), %cl movl -2000(%rbp), %eax movl %eax, %edx addl $1, %edx movl %edx, -2000(%rbp) cltq movb %cl, -944(%rbp,%rax) movq _nibbletohex(%rip), %rax movslq -1992(%rbp), %rcx movzbl -144(%rbp,%rcx), %ecx andl $15, %ecx movslq %ecx, %rcx movb (%rax,%rcx), %cl movl -2000(%rbp), %eax movl %eax, %edx addl $1, %edx movl %edx, -2000(%rbp) cltq movb %cl, -944(%rbp,%rax) jmp LBB0_86 LBB0_79: ## in Loop: Header=BB0_74 Depth=3 movslq -1992(%rbp), %rax movzbl -144(%rbp,%rax), %eax cmpl $100, %eax jl LBB0_81 ## %bb.80: ## in Loop: Header=BB0_74 Depth=3 movslq -1992(%rbp), %rax movzbl -144(%rbp,%rax), %eax movl $100, %ecx cltd idivl %ecx addl $48, %eax movb %al, %cl movl -2000(%rbp), %eax movl %eax, %edx addl $1, %edx movl %edx, -2000(%rbp) cltq movb %cl, -944(%rbp,%rax) movslq -1992(%rbp), %rax movzbl -144(%rbp,%rax), %eax movl $10, %ecx cltd idivl %ecx movl $10, %ecx cltd idivl %ecx addl $48, %edx movb %dl, %cl movl -2000(%rbp), %eax movl %eax, %edx addl $1, %edx movl %edx, -2000(%rbp) cltq movb %cl, -944(%rbp,%rax) movslq -1992(%rbp), %rax movzbl -144(%rbp,%rax), %eax movl $10, %ecx cltd idivl %ecx addl $48, %edx movb %dl, %cl movl -2000(%rbp), %eax movl %eax, %edx addl $1, %edx movl %edx, -2000(%rbp) cltq movb %cl, -944(%rbp,%rax) jmp LBB0_85 LBB0_81: ## in Loop: Header=BB0_74 Depth=3 movslq -1992(%rbp), %rax movzbl -144(%rbp,%rax), %eax cmpl $10, %eax jl LBB0_83 ## %bb.82: ## in Loop: Header=BB0_74 Depth=3 movslq -1992(%rbp), %rax movzbl -144(%rbp,%rax), %eax movl $10, %ecx cltd idivl %ecx addl $48, %eax movb %al, %cl movl -2000(%rbp), %eax movl %eax, %edx addl $1, %edx movl %edx, -2000(%rbp) cltq movb %cl, -944(%rbp,%rax) movslq -1992(%rbp), %rax movzbl -144(%rbp,%rax), %eax movl $10, %ecx cltd idivl %ecx addl $48, %edx movb %dl, %cl movl -2000(%rbp), %eax movl %eax, %edx addl $1, %edx movl %edx, -2000(%rbp) cltq movb %cl, -944(%rbp,%rax) jmp LBB0_84 LBB0_83: ## in Loop: Header=BB0_74 Depth=3 movslq -1992(%rbp), %rax movzbl -144(%rbp,%rax), %eax addl $48, %eax movb %al, %cl movl -2000(%rbp), %eax movl %eax, %edx addl $1, %edx movl %edx, -2000(%rbp) cltq movb %cl, -944(%rbp,%rax) LBB0_84: ## in Loop: Header=BB0_74 Depth=3 jmp LBB0_85 LBB0_85: ## in Loop: Header=BB0_74 Depth=3 jmp LBB0_86 LBB0_86: ## in Loop: Header=BB0_74 Depth=3 jmp LBB0_87 LBB0_87: ## in Loop: Header=BB0_74 Depth=3 movl -1992(%rbp), %eax addl $1, %eax movl %eax, -1992(%rbp) jmp LBB0_74 LBB0_88: ## in Loop: Header=BB0_68 Depth=2 leaq -944(%rbp), %rdi movslq -2000(%rbp), %rdx movq ___stdoutp@GOTPCREL(%rip), %rax movq (%rax), %rcx movl $1, %esi callq _fwrite jmp LBB0_68 LBB0_89: ## in Loop: Header=BB0_2 Depth=1 jmp LBB0_90 LBB0_90: ## in Loop: Header=BB0_2 Depth=1 leaq L_.str.16(%rip), %rdi movb $0, %al callq _printf LBB0_91: ## in Loop: Header=BB0_2 Depth=1 movq -2032(%rbp), %rdi callq _fclose LBB0_92: ## in Loop: Header=BB0_2 Depth=1 jmp LBB0_93 LBB0_93: ## in Loop: Header=BB0_2 Depth=1 jmp LBB0_94 LBB0_94: ## in Loop: Header=BB0_2 Depth=1 jmp LBB0_95 LBB0_95: ## in Loop: Header=BB0_2 Depth=1 jmp LBB0_96 LBB0_96: ## in Loop: Header=BB0_2 Depth=1 movl -1988(%rbp), %eax addl $1, %eax movl %eax, -1988(%rbp) jmp LBB0_2 LBB0_97: movl -2008(%rbp), %esi addl $1, %esi leaq L_.str.17(%rip), %rdi movb $0, %al callq _printf movl $0, -2008(%rbp) movq $0, -2040(%rbp) movl $1, -1988(%rbp) LBB0_98: ## =>This Inner Loop Header: Depth=1 movl -1988(%rbp), %eax cmpl -1976(%rbp), %eax jge LBB0_115 ## %bb.99: ## in Loop: Header=BB0_98 Depth=1 movq -1984(%rbp), %rax movslq -1988(%rbp), %rcx movq (%rax,%rcx,8), %rdi leaq L_.str.4(%rip), %rsi movl $6, %edx callq _strncmp cmpl $0, %eax jne LBB0_101 ## %bb.100: ## in Loop: Header=BB0_98 Depth=1 movq -1984(%rbp), %rax movslq -1988(%rbp), %rcx movq (%rax,%rcx,8), %rdi movl $61, %esi callq _strchr addq $1, %rax movq %rax, -2040(%rbp) jmp LBB0_113 LBB0_101: ## in Loop: Header=BB0_98 Depth=1 movq -1984(%rbp), %rax movslq -1988(%rbp), %rcx movq (%rax,%rcx,8), %rdi leaq L_.str.1(%rip), %rsi callq _strcmp cmpl $0, %eax je LBB0_112 ## %bb.102: ## in Loop: Header=BB0_98 Depth=1 movq -1984(%rbp), %rax movslq -1988(%rbp), %rcx movq (%rax,%rcx,8), %rdi leaq L_.str.2(%rip), %rsi callq _strcmp cmpl $0, %eax je LBB0_112 ## %bb.103: ## in Loop: Header=BB0_98 Depth=1 movq -1984(%rbp), %rax movslq -1988(%rbp), %rcx movq (%rax,%rcx,8), %rdi leaq L_.str.3(%rip), %rsi callq _strcmp cmpl $0, %eax je LBB0_112 ## %bb.104: ## in Loop: Header=BB0_98 Depth=1 movq -1984(%rbp), %rax movslq -1988(%rbp), %rcx movq (%rax,%rcx,8), %rdi leaq L_.str.4(%rip), %rsi movl $6, %edx callq _strncmp cmpl $0, %eax je LBB0_112 ## %bb.105: ## in Loop: Header=BB0_98 Depth=1 cmpq $0, -2040(%rbp) je LBB0_107 ## %bb.106: ## in Loop: Header=BB0_98 Depth=1 leaq -1968(%rbp), %rdi movq -2040(%rbp), %r9 movq -1984(%rbp), %rax movslq -1988(%rbp), %rcx movq (%rax,%rcx,8), %rax movl $1024, %ecx ## imm = 0x400 xorl %edx, %edx leaq L_.str.5(%rip), %r8 movq %rcx, %rsi movq %rax, (%rsp) movb $0, %al callq ___snprintf_chk jmp LBB0_108 LBB0_107: ## in Loop: Header=BB0_98 Depth=1 leaq -1968(%rbp), %rdi movq -1984(%rbp), %rax movslq -1988(%rbp), %rcx movq (%rax,%rcx,8), %r9 movl $1024, %ecx ## imm = 0x400 xorl %edx, %edx leaq L_.str.6(%rip), %r8 movq %rcx, %rsi movb $0, %al callq ___snprintf_chk LBB0_108: ## in Loop: Header=BB0_98 Depth=1 leaq -1968(%rbp), %rdi leaq L_.str.7(%rip), %rsi callq _fopen movq %rax, -2032(%rbp) cmpq $0, %rax je LBB0_110 ## %bb.109: ## in Loop: Header=BB0_98 Depth=1 movq -2032(%rbp), %rdi xorl %eax, %eax movl %eax, %esi movl $2, %edx callq _fseek movq -2032(%rbp), %rdi callq _ftell ## kill: def $eax killed $eax killed $rax movl %eax, -2012(%rbp) movq -1984(%rbp), %rax movslq -1988(%rbp), %rcx movq (%rax,%rcx,8), %rsi movl -2008(%rbp), %edx movl -2012(%rbp), %ecx leaq L_.str.18(%rip), %rdi movb $0, %al callq _printf movl -2008(%rbp), %eax addl $1, %eax movl %eax, -2008(%rbp) movq -2032(%rbp), %rdi callq _fclose jmp LBB0_111 LBB0_110: ## in Loop: Header=BB0_98 Depth=1 leaq -1968(%rbp), %rsi leaq L_.str.8(%rip), %rdi movb $0, %al callq _printf LBB0_111: ## in Loop: Header=BB0_98 Depth=1 jmp LBB0_112 LBB0_112: ## in Loop: Header=BB0_98 Depth=1 jmp LBB0_113 LBB0_113: ## in Loop: Header=BB0_98 Depth=1 jmp LBB0_114 LBB0_114: ## in Loop: Header=BB0_98 Depth=1 movl -1988(%rbp), %eax addl $1, %eax movl %eax, -1988(%rbp) jmp LBB0_98 LBB0_115: leaq L_.str.19(%rip), %rdi movb $0, %al callq _printf movl $0, -1972(%rbp) jmp LBB0_117 LBB0_116: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movq -1984(%rbp), %rax movq (%rax), %rdx leaq L_.str.20(%rip), %rsi movb $0, %al callq _fprintf movl $1, -1972(%rbp) LBB0_117: movl -1972(%rbp), %eax movl %eax, -2060(%rbp) ## 4-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_119 ## %bb.118: movl -2060(%rbp), %eax ## 4-byte Reload addq $2080, %rsp ## imm = 0x820 popq %rbp retq LBB0_119: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "/*this file generated by %s*/\n\ntypedef struct embeddedfile_s\n{\n\tchar *name;\n\tunsigned char *data;\n\tint datasize;\n}\nembeddedfile_t;\n\n" L_.str.1: ## @.str.1 .asciz "-strings" L_.str.2: ## @.str.2 .asciz "-array" L_.str.3: ## @.str.3 .asciz "-hexarray" L_.str.4: ## @.str.4 .asciz "-base=" L_.str.5: ## @.str.5 .asciz "%s/%s" L_.str.6: ## @.str.6 .asciz "%s" L_.str.7: ## @.str.7 .asciz "rb" L_.str.8: ## @.str.8 .asciz "/*file \"%s\" not found*/\n" L_.str.9: ## @.str.9 .asciz "file \"%s\" not found\n" L_.str.10: ## @.str.10 .asciz "/*file \"%s\"*/\n" L_.str.11: ## @.str.11 .asciz "char embeddedfile_data%i[%i] =" L_.str.12: ## @.str.12 .asciz "\"\"" L_.str.13: ## @.str.13 .asciz ";\n\n" L_.str.14: ## @.str.14 .asciz "unsigned char embeddedfile_data%i[%i] =\n{" L_.str.15: ## @.str.15 .asciz "\n0" .section __DATA,__data .p2align 3 ## @nibbletohex _nibbletohex: .quad L_.str.21 .section __TEXT,__cstring,cstring_literals L_.str.16: ## @.str.16 .asciz "\n};\n\n" L_.str.17: ## @.str.17 .asciz "embeddedfile_t embeddedfile[%i] =\n{\n" L_.str.18: ## @.str.18 .asciz "\t{\"%s\", embeddedfile_data%i, %i},\n" L_.str.19: ## @.str.19 .asciz "\t{0, 0, 0}\n};\n" L_.str.20: ## @.str.20 .asciz "usage: %s [options] inputfiles\nOptions:\n-strings output strings with escape codes\n-array output an array of bytes as decimal\n-hexarray output an array of bytes as hexidecimal\n" L_.str.21: ## @.str.21 .asciz "0123456789ABCDEF" .subsections_via_symbols
the_stack_data/159514786.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 w8, #1 str w8, [sp, #8] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #8] subs w8, w8, #101 cset w8, ge tbnz w8, #0, LBB0_4 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldr w9, [sp, #8] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #8] add w8, w8, #1 str w8, [sp, #8] b LBB0_1 LBB0_4: 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 "%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 $1, -8(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 cmpl $101, -8(%rbp) jge LBB0_4 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl -8(%rbp), %esi leaq L_.str(%rip), %rdi movb $0, %al callq _printf ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) jmp LBB0_1 LBB0_4: xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d" .subsections_via_symbols
the_stack_data/11075739.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, _width@GOTPAGE ldr x8, [x8, _width@GOTPAGEOFF] str x8, [sp, #16] ; 8-byte Folded Spill stur wzr, [x29, #-4] stur w0, [x29, #-8] stur x1, [x29, #-16] ldur w8, [x29, #-8] subs w8, w8, #4 cset w8, ge tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf b LBB0_11 LBB0_2: ldur x8, [x29, #-16] ldr x0, [x8, #8] bl _atoi ldr x8, [sp, #16] ; 8-byte Folded Reload str w0, [x8] ldur x8, [x29, #-16] ldr x0, [x8, #16] bl _atoi adrp x8, _height@GOTPAGE ldr x8, [x8, _height@GOTPAGEOFF] str w0, [x8] ldur x8, [x29, #-16] ldr x8, [x8, #24] adrp x9, _data@GOTPAGE ldr x9, [x9, _data@GOTPAGEOFF] str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf stur wzr, [x29, #-20] str wzr, [sp, #24] str wzr, [sp, #24] b LBB0_3 LBB0_3: ; =>This Loop Header: Depth=1 ; Child Loop BB0_5 Depth 2 ldr w8, [sp, #24] adrp x9, _height@GOTPAGE ldr x9, [x9, _height@GOTPAGEOFF] ldr w9, [x9] subs w8, w8, w9 cset w8, hs tbnz w8, #0, LBB0_10 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_3 Depth=1 stur wzr, [x29, #-20] b LBB0_5 LBB0_5: ; Parent Loop BB0_3 Depth=1 ; => This Inner Loop Header: Depth=2 ldr x9, [sp, #16] ; 8-byte Folded Reload ldur w8, [x29, #-20] ldr w9, [x9] subs w8, w8, w9 cset w8, hs tbnz w8, #0, LBB0_8 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_5 Depth=2 ldr x11, [sp, #16] ; 8-byte Folded Reload adrp x8, _data@GOTPAGE ldr x8, [x8, _data@GOTPAGEOFF] ldr x8, [x8] ldur w9, [x29, #-20] ldr w10, [sp, #24] ldr w11, [x11] mul w10, w10, w11 add w9, w9, w10 ldrsb w8, [x8, w9, uxtw] subs w8, w8, #49 cset w8, eq and w10, w8, #0x1 mov w9, #32 mov w8, #56 ands w10, w10, #0x1 csel w10, w8, w9, ne mov x9, sp ; implicit-def: $x8 mov x8, x10 str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf b LBB0_7 LBB0_7: ; in Loop: Header=BB0_5 Depth=2 ldur w8, [x29, #-20] add w8, w8, #1 stur w8, [x29, #-20] b LBB0_5 LBB0_8: ; in Loop: Header=BB0_3 Depth=1 adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf b LBB0_9 LBB0_9: ; in Loop: Header=BB0_3 Depth=1 ldr w8, [sp, #24] add w8, w8, #1 str w8, [sp, #24] b LBB0_3 LBB0_10: b LBB0_11 LBB0_11: ldur w0, [x29, #-4] ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "NOT ENOUGH PARAMETER\n USAGE './a.out 60(width) 40(height) 010001010101...(magic string)'/n" .comm _width,4,2 ; @width .comm _height,4,2 ; @height .comm _data,8,3 ; @data l_.str.1: ; @.str.1 .asciz "\n\n\n\n\n" l_.str.2: ; @.str.2 .asciz "%c" l_.str.3: ; @.str.3 .asciz "\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .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 $4, -8(%rbp) jge LBB0_2 ## %bb.1: leaq L_.str(%rip), %rdi movb $0, %al callq _printf jmp LBB0_11 LBB0_2: movq -16(%rbp), %rax movq 8(%rax), %rdi callq _atoi movl %eax, %ecx movq _width@GOTPCREL(%rip), %rax movl %ecx, (%rax) movq -16(%rbp), %rax movq 16(%rax), %rdi callq _atoi movl %eax, %ecx movq _height@GOTPCREL(%rip), %rax movl %ecx, (%rax) movq -16(%rbp), %rax movq 24(%rax), %rcx movq _data@GOTPCREL(%rip), %rax movq %rcx, (%rax) leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf movl $0, -20(%rbp) movl $0, -24(%rbp) movl $0, -24(%rbp) LBB0_3: ## =>This Loop Header: Depth=1 ## Child Loop BB0_5 Depth 2 movl -24(%rbp), %eax movq _height@GOTPCREL(%rip), %rcx cmpl (%rcx), %eax jae LBB0_10 ## %bb.4: ## in Loop: Header=BB0_3 Depth=1 movl $0, -20(%rbp) LBB0_5: ## Parent Loop BB0_3 Depth=1 ## => This Inner Loop Header: Depth=2 movl -20(%rbp), %eax movq _width@GOTPCREL(%rip), %rcx cmpl (%rcx), %eax jae LBB0_8 ## %bb.6: ## in Loop: Header=BB0_5 Depth=2 movq _data@GOTPCREL(%rip), %rax movq (%rax), %rax movl -20(%rbp), %ecx movl -24(%rbp), %edx movq _width@GOTPCREL(%rip), %rsi imull (%rsi), %edx addl %edx, %ecx movl %ecx, %ecx ## kill: def $rcx killed $ecx movsbl (%rax,%rcx), %ecx movl $32, %esi movl $56, %eax cmpl $49, %ecx cmovel %eax, %esi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf ## %bb.7: ## in Loop: Header=BB0_5 Depth=2 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB0_5 LBB0_8: ## in Loop: Header=BB0_3 Depth=1 leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf ## %bb.9: ## in Loop: Header=BB0_3 Depth=1 movl -24(%rbp), %eax addl $1, %eax movl %eax, -24(%rbp) jmp LBB0_3 LBB0_10: jmp LBB0_11 LBB0_11: movl -4(%rbp), %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "NOT ENOUGH PARAMETER\n USAGE './a.out 60(width) 40(height) 010001010101...(magic string)'/n" .comm _width,4,2 ## @width .comm _height,4,2 ## @height .comm _data,8,3 ## @data L_.str.1: ## @.str.1 .asciz "\n\n\n\n\n" L_.str.2: ## @.str.2 .asciz "%c" L_.str.3: ## @.str.3 .asciz "\n" .subsections_via_symbols
the_stack_data/36074113.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/141396.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _my_function ; -- Begin function my_function .p2align 2 _my_function: ; @my_function .cfi_startproc ; %bb.0: mov w0, #2 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_function ## -- Begin function my_function .p2align 4, 0x90 _my_function: ## @my_function .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl $2, %eax popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/294900.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _hal_wifi_get_default_module ; -- Begin function hal_wifi_get_default_module .p2align 2 _hal_wifi_get_default_module: ; @hal_wifi_get_default_module .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x0, _g_wifi_module@PAGE add x0, x0, _g_wifi_module@PAGEOFF str x0, [sp, #8] ; 8-byte Folded Spill ; kill: def $x8 killed $xzr str xzr, [sp, #16] bl _dlist_empty subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: ; kill: def $x8 killed $xzr stur xzr, [x29, #-8] b LBB0_3 LBB0_2: ldr x8, [sp, #8] ; 8-byte Folded Reload ldr x8, [x8, #8] subs x8, x8, #0 str x8, [sp, #16] ldr x8, [sp, #16] stur x8, [x29, #-8] b LBB0_3 LBB0_3: ldur x0, [x29, #-8] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function dlist_empty _dlist_empty: ; @dlist_empty .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] ldr x8, [sp, #8] ldr x8, [x8, #8] ldr x9, [sp, #8] subs x8, x8, x9 cset w8, eq and w0, w8, #0x1 add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _hal_wifi_register_module ; -- Begin function hal_wifi_register_module .p2align 2 _hal_wifi_register_module: ; @hal_wifi_register_module .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #8] ldr x0, [sp, #8] adrp x1, _g_wifi_module@PAGE add x1, x1, _g_wifi_module@PAGEOFF bl _dlist_add_tail ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function dlist_add_tail _dlist_add_tail: ; @dlist_add_tail .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #8] str x1, [sp] ldr x0, [sp, #8] ldr x8, [sp] ldr x1, [x8] ldr x2, [sp] bl ___dlist_add ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _hal_wifi_init ; -- Begin function hal_wifi_init .p2align 2 _hal_wifi_init: ; @hal_wifi_init .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, _g_wifi_module@PAGE add x8, x8, _g_wifi_module@PAGEOFF stur wzr, [x29, #-4] ldr x8, [x8, #8] str x8, [sp, #16] b LBB4_1 LBB4_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #16] adrp x9, _g_wifi_module@PAGE add x9, x9, _g_wifi_module@PAGEOFF subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB4_4 b LBB4_2 LBB4_2: ; in Loop: Header=BB4_1 Depth=1 ldr x8, [sp, #16] str x8, [sp, #8] ldr x8, [sp, #8] ldr x8, [x8, #48] ldr x0, [sp, #8] blr x8 b LBB4_3 LBB4_3: ; in Loop: Header=BB4_1 Depth=1 ldr x8, [sp, #16] ldr x8, [x8, #8] str x8, [sp, #16] b LBB4_1 LBB4_4: ldur w0, [x29, #-4] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _hal_wifi_get_mac_addr ; -- Begin function hal_wifi_get_mac_addr .p2align 2 _hal_wifi_get_mac_addr: ; @hal_wifi_get_mac_addr .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #16] str x1, [sp, #8] ldr x8, [sp, #16] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB5_2 b LBB5_1 LBB5_1: bl _hal_wifi_get_default_module str x0, [sp, #16] b LBB5_2 LBB5_2: ldr x8, [sp, #16] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB5_5 b LBB5_3 LBB5_3: ldr x8, [sp, #16] ldr x8, [x8, #56] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB5_5 b LBB5_4 LBB5_4: ldr x8, [sp, #16] ldr x8, [x8, #56] ldr x0, [sp, #16] ldr x1, [sp, #8] blr x8 stur wzr, [x29, #-4] b LBB5_6 LBB5_5: mov w8, #-1 stur w8, [x29, #-4] b LBB5_6 LBB5_6: ldur w0, [x29, #-4] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _hal_wifi_set_mac_addr ; -- Begin function hal_wifi_set_mac_addr .p2align 2 _hal_wifi_set_mac_addr: ; @hal_wifi_set_mac_addr .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #16] str x1, [sp, #8] ldr x8, [sp, #16] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB6_2 b LBB6_1 LBB6_1: bl _hal_wifi_get_default_module str x0, [sp, #16] b LBB6_2 LBB6_2: ldr x8, [sp, #16] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB6_5 b LBB6_3 LBB6_3: ldr x8, [sp, #16] ldr x8, [x8, #64] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB6_5 b LBB6_4 LBB6_4: ldr x8, [sp, #16] ldr x8, [x8, #64] ldr x0, [sp, #16] ldr x1, [sp, #8] blr x8 stur wzr, [x29, #-4] b LBB6_6 LBB6_5: mov w8, #-1 stur w8, [x29, #-4] b LBB6_6 LBB6_6: ldur w0, [x29, #-4] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _hal_wifi_start ; -- Begin function hal_wifi_start .p2align 2 _hal_wifi_start: ; @hal_wifi_start .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #16] str x1, [sp, #8] ldr x8, [sp, #16] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB7_2 b LBB7_1 LBB7_1: bl _hal_wifi_get_default_module str x0, [sp, #16] b LBB7_2 LBB7_2: ldr x8, [sp, #16] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB7_4 b LBB7_3 LBB7_3: mov w8, #-1 stur w8, [x29, #-4] b LBB7_5 LBB7_4: ldr x8, [sp, #16] ldr x8, [x8, #72] ldr x0, [sp, #16] ldr x1, [sp, #8] blr x8 stur w0, [x29, #-4] b LBB7_5 LBB7_5: ldur w0, [x29, #-4] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _hal_wifi_start_adv ; -- Begin function hal_wifi_start_adv .p2align 2 _hal_wifi_start_adv: ; @hal_wifi_start_adv .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #8] str x1, [sp] ldr x8, [sp, #8] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB8_2 b LBB8_1 LBB8_1: bl _hal_wifi_get_default_module str x0, [sp, #8] b LBB8_2 LBB8_2: ldr x8, [sp, #8] ldr x8, [x8, #80] ldr x0, [sp, #8] ldr x1, [sp] blr x8 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _hal_wifi_get_ip_stat ; -- Begin function hal_wifi_get_ip_stat .p2align 2 _hal_wifi_get_ip_stat: ; @hal_wifi_get_ip_stat .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] ldur x8, [x29, #-8] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB9_2 b LBB9_1 LBB9_1: bl _hal_wifi_get_default_module stur x0, [x29, #-8] b LBB9_2 LBB9_2: ldur x8, [x29, #-8] ldr x8, [x8, #88] ldur x0, [x29, #-8] ldr x1, [sp, #16] ldr w2, [sp, #12] blr x8 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _hal_wifi_get_link_stat ; -- Begin function hal_wifi_get_link_stat .p2align 2 _hal_wifi_get_link_stat: ; @hal_wifi_get_link_stat .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #8] str x1, [sp] ldr x8, [sp, #8] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB10_2 b LBB10_1 LBB10_1: bl _hal_wifi_get_default_module str x0, [sp, #8] b LBB10_2 LBB10_2: ldr x8, [sp, #8] ldr x8, [x8, #96] ldr x0, [sp, #8] ldr x1, [sp] blr x8 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _hal_wifi_start_scan ; -- Begin function hal_wifi_start_scan .p2align 2 _hal_wifi_start_scan: ; @hal_wifi_start_scan .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #8] ldr x8, [sp, #8] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB11_2 b LBB11_1 LBB11_1: bl _hal_wifi_get_default_module str x0, [sp, #8] b LBB11_2 LBB11_2: ldr x8, [sp, #8] ldr x8, [x8, #104] ldr x0, [sp, #8] blr x8 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _hal_wifi_start_scan_adv ; -- Begin function hal_wifi_start_scan_adv .p2align 2 _hal_wifi_start_scan_adv: ; @hal_wifi_start_scan_adv .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #8] ldr x8, [sp, #8] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB12_2 b LBB12_1 LBB12_1: bl _hal_wifi_get_default_module str x0, [sp, #8] b LBB12_2 LBB12_2: ldr x8, [sp, #8] ldr x8, [x8, #112] ldr x0, [sp, #8] blr x8 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _hal_wifi_power_off ; -- Begin function hal_wifi_power_off .p2align 2 _hal_wifi_power_off: ; @hal_wifi_power_off .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #8] ldr x8, [sp, #8] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB13_2 b LBB13_1 LBB13_1: bl _hal_wifi_get_default_module str x0, [sp, #8] b LBB13_2 LBB13_2: ldr x8, [sp, #8] ldr x8, [x8, #120] ldr x0, [sp, #8] blr x8 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _hal_wifi_power_on ; -- Begin function hal_wifi_power_on .p2align 2 _hal_wifi_power_on: ; @hal_wifi_power_on .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #8] ldr x8, [sp, #8] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB14_2 b LBB14_1 LBB14_1: bl _hal_wifi_get_default_module str x0, [sp, #8] b LBB14_2 LBB14_2: ldr x8, [sp, #8] ldr x8, [x8, #128] ldr x0, [sp, #8] blr x8 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _hal_wifi_suspend ; -- Begin function hal_wifi_suspend .p2align 2 _hal_wifi_suspend: ; @hal_wifi_suspend .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #8] ldr x8, [sp, #8] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB15_2 b LBB15_1 LBB15_1: bl _hal_wifi_get_default_module str x0, [sp, #8] b LBB15_2 LBB15_2: ldr x8, [sp, #8] ldr x8, [x8, #136] ldr x0, [sp, #8] blr x8 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _hal_wifi_suspend_station ; -- Begin function hal_wifi_suspend_station .p2align 2 _hal_wifi_suspend_station: ; @hal_wifi_suspend_station .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #8] ldr x8, [sp, #8] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB16_2 b LBB16_1 LBB16_1: bl _hal_wifi_get_default_module str x0, [sp, #8] b LBB16_2 LBB16_2: ldr x8, [sp, #8] ldr x8, [x8, #144] ldr x0, [sp, #8] blr x8 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _hal_wifi_suspend_soft_ap ; -- Begin function hal_wifi_suspend_soft_ap .p2align 2 _hal_wifi_suspend_soft_ap: ; @hal_wifi_suspend_soft_ap .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #8] ldr x8, [sp, #8] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB17_2 b LBB17_1 LBB17_1: bl _hal_wifi_get_default_module str x0, [sp, #8] b LBB17_2 LBB17_2: ldr x8, [sp, #8] ldr x8, [x8, #152] ldr x0, [sp, #8] blr x8 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _hal_wifi_set_channel ; -- Begin function hal_wifi_set_channel .p2align 2 _hal_wifi_set_channel: ; @hal_wifi_set_channel .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #8] str w1, [sp, #4] ldr x8, [sp, #8] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB18_2 b LBB18_1 LBB18_1: bl _hal_wifi_get_default_module str x0, [sp, #8] b LBB18_2 LBB18_2: ldr x8, [sp, #8] ldr x8, [x8, #160] ldr x0, [sp, #8] ldr w1, [sp, #4] blr x8 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _hal_wifi_get_channel ; -- Begin function hal_wifi_get_channel .p2align 2 _hal_wifi_get_channel: ; @hal_wifi_get_channel .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #8] ldr x8, [sp, #8] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB19_2 b LBB19_1 LBB19_1: bl _hal_wifi_get_default_module str x0, [sp, #8] b LBB19_2 LBB19_2: ldr x8, [sp, #8] ldr x8, [x8, #168] ldr x0, [sp, #8] blr x8 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _hal_wifi_get_channel_list ; -- Begin function hal_wifi_get_channel_list .p2align 2 _hal_wifi_get_channel_list: ; @hal_wifi_get_channel_list .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #8] str x1, [sp] ldr x8, [sp, #8] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB20_2 b LBB20_1 LBB20_1: bl _hal_wifi_get_default_module str x0, [sp, #8] b LBB20_2 LBB20_2: ldr x8, [sp, #8] ldr x8, [x8, #176] ldr x0, [sp, #8] ldr x1, [sp] blr x8 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _hal_wifi_start_wifi_monitor ; -- Begin function hal_wifi_start_wifi_monitor .p2align 2 _hal_wifi_start_wifi_monitor: ; @hal_wifi_start_wifi_monitor .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #8] ldr x8, [sp, #8] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB21_2 b LBB21_1 LBB21_1: bl _hal_wifi_get_default_module str x0, [sp, #8] b LBB21_2 LBB21_2: ldr x8, [sp, #8] ldr x8, [x8, #184] ldr x0, [sp, #8] blr x8 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _hal_wifi_stop_wifi_monitor ; -- Begin function hal_wifi_stop_wifi_monitor .p2align 2 _hal_wifi_stop_wifi_monitor: ; @hal_wifi_stop_wifi_monitor .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #8] ldr x8, [sp, #8] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB22_2 b LBB22_1 LBB22_1: bl _hal_wifi_get_default_module str x0, [sp, #8] b LBB22_2 LBB22_2: ldr x8, [sp, #8] ldr x8, [x8, #192] ldr x0, [sp, #8] blr x8 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _hal_wifi_register_monitor_cb ; -- Begin function hal_wifi_register_monitor_cb .p2align 2 _hal_wifi_register_monitor_cb: ; @hal_wifi_register_monitor_cb .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #8] str x1, [sp] ldr x8, [sp, #8] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB23_2 b LBB23_1 LBB23_1: bl _hal_wifi_get_default_module str x0, [sp, #8] b LBB23_2 LBB23_2: ldr x8, [sp, #8] ldr x8, [x8, #200] ldr x0, [sp, #8] ldr x1, [sp] blr x8 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _hal_wifi_install_event ; -- Begin function hal_wifi_install_event .p2align 2 _hal_wifi_install_event: ; @hal_wifi_install_event .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] str x1, [sp] ldr x9, [sp, #8] mov x8, #0 subs x8, x8, x9 cset w8, ne tbnz w8, #0, LBB24_2 b LBB24_1 LBB24_1: b LBB24_3 LBB24_2: ldr x8, [sp] ldr x9, [sp, #8] str x8, [x9, #40] b LBB24_3 LBB24_3: add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _hal_wlan_register_mgnt_monitor_cb ; -- Begin function hal_wlan_register_mgnt_monitor_cb .p2align 2 _hal_wlan_register_mgnt_monitor_cb: ; @hal_wlan_register_mgnt_monitor_cb .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #8] str x1, [sp] ldr x8, [sp, #8] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB25_2 b LBB25_1 LBB25_1: bl _hal_wifi_get_default_module str x0, [sp, #8] b LBB25_2 LBB25_2: ldr x8, [sp, #8] ldr x8, [x8, #208] ldr x0, [sp, #8] ldr x1, [sp] blr x8 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _hal_wlan_send_80211_raw_frame ; -- Begin function hal_wlan_send_80211_raw_frame .p2align 2 _hal_wlan_send_80211_raw_frame: ; @hal_wlan_send_80211_raw_frame .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] ldur x8, [x29, #-8] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB26_2 b LBB26_1 LBB26_1: bl _hal_wifi_get_default_module stur x0, [x29, #-8] b LBB26_2 LBB26_2: ldur x8, [x29, #-8] ldr x8, [x8, #216] ldur x0, [x29, #-8] ldr x1, [sp, #16] ldr w2, [sp, #12] blr x8 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _hal_wifi_start_debug_mode ; -- Begin function hal_wifi_start_debug_mode .p2align 2 _hal_wifi_start_debug_mode: ; @hal_wifi_start_debug_mode .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #8] ldr x8, [sp, #8] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB27_2 b LBB27_1 LBB27_1: bl _hal_wifi_get_default_module str x0, [sp, #8] b LBB27_2 LBB27_2: ldr x8, [sp, #8] ldr x8, [x8, #224] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB27_4 b LBB27_3 LBB27_3: b LBB27_5 LBB27_4: ldr x8, [sp, #8] ldr x8, [x8, #224] ldr x0, [sp, #8] blr x8 b LBB27_5 LBB27_5: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _hal_wifi_stop_debug_mode ; -- Begin function hal_wifi_stop_debug_mode .p2align 2 _hal_wifi_stop_debug_mode: ; @hal_wifi_stop_debug_mode .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #8] ldr x8, [sp, #8] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB28_2 b LBB28_1 LBB28_1: bl _hal_wifi_get_default_module str x0, [sp, #8] b LBB28_2 LBB28_2: ldr x8, [sp, #8] ldr x8, [x8, #232] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB28_4 b LBB28_3 LBB28_3: b LBB28_5 LBB28_4: ldr x8, [sp, #8] ldr x8, [x8, #232] ldr x0, [sp, #8] blr x8 b LBB28_5 LBB28_5: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function __dlist_add ___dlist_add: ; @__dlist_add .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, #8] ldr x9, [sp, #24] str x8, [x9, #8] ldr x8, [sp, #16] ldr x9, [sp, #24] str x8, [x9] ldr x8, [sp, #24] ldr x9, [sp, #16] str x8, [x9, #8] ldr x8, [sp, #24] ldr x9, [sp, #8] str x8, [x9] add sp, sp, #32 ret .cfi_endproc ; -- End function .section __DATA,__data .p2align 3 ; @g_wifi_module _g_wifi_module: .quad _g_wifi_module .quad _g_wifi_module .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _hal_wifi_get_default_module ## -- Begin function hal_wifi_get_default_module .p2align 4, 0x90 _hal_wifi_get_default_module: ## @hal_wifi_get_default_module .cfi_startproc ## %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 $0, -16(%rbp) leaq _g_wifi_module(%rip), %rdi callq _dlist_empty cmpl $0, %eax je LBB0_2 ## %bb.1: movq $0, -8(%rbp) jmp LBB0_3 LBB0_2: movq _g_wifi_module+8(%rip), %rax subq $0, %rax movq %rax, -16(%rbp) movq -16(%rbp), %rax movq %rax, -8(%rbp) LBB0_3: movq -8(%rbp), %rax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function dlist_empty _dlist_empty: ## @dlist_empty .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) movq -8(%rbp), %rax movq 8(%rax), %rax cmpq -8(%rbp), %rax sete %al andb $1, %al movzbl %al, %eax popq %rbp retq .cfi_endproc ## -- End function .globl _hal_wifi_register_module ## -- Begin function hal_wifi_register_module .p2align 4, 0x90 _hal_wifi_register_module: ## @hal_wifi_register_module .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) movq -8(%rbp), %rdi leaq _g_wifi_module(%rip), %rsi callq _dlist_add_tail addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function dlist_add_tail _dlist_add_tail: ## @dlist_add_tail .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) movq -8(%rbp), %rdi movq -16(%rbp), %rax movq (%rax), %rsi movq -16(%rbp), %rdx callq ___dlist_add addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _hal_wifi_init ## -- Begin function hal_wifi_init .p2align 4, 0x90 _hal_wifi_init: ## @hal_wifi_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 $0, -4(%rbp) movq _g_wifi_module+8(%rip), %rax movq %rax, -16(%rbp) LBB4_1: ## =>This Inner Loop Header: Depth=1 leaq _g_wifi_module(%rip), %rax cmpq %rax, -16(%rbp) je LBB4_4 ## %bb.2: ## in Loop: Header=BB4_1 Depth=1 movq -16(%rbp), %rax movq %rax, -24(%rbp) movq -24(%rbp), %rax movq 48(%rax), %rax movq -24(%rbp), %rdi callq *%rax ## %bb.3: ## in Loop: Header=BB4_1 Depth=1 movq -16(%rbp), %rax movq 8(%rax), %rax movq %rax, -16(%rbp) jmp LBB4_1 LBB4_4: movl -4(%rbp), %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _hal_wifi_get_mac_addr ## -- Begin function hal_wifi_get_mac_addr .p2align 4, 0x90 _hal_wifi_get_mac_addr: ## @hal_wifi_get_mac_addr .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -16(%rbp) movq %rsi, -24(%rbp) cmpq $0, -16(%rbp) jne LBB5_2 ## %bb.1: callq _hal_wifi_get_default_module movq %rax, -16(%rbp) LBB5_2: cmpq $0, -16(%rbp) je LBB5_5 ## %bb.3: movq -16(%rbp), %rax cmpq $0, 56(%rax) je LBB5_5 ## %bb.4: movq -16(%rbp), %rax movq 56(%rax), %rax movq -16(%rbp), %rdi movq -24(%rbp), %rsi callq *%rax movl $0, -4(%rbp) jmp LBB5_6 LBB5_5: movl $-1, -4(%rbp) LBB5_6: movl -4(%rbp), %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _hal_wifi_set_mac_addr ## -- Begin function hal_wifi_set_mac_addr .p2align 4, 0x90 _hal_wifi_set_mac_addr: ## @hal_wifi_set_mac_addr .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -16(%rbp) movq %rsi, -24(%rbp) cmpq $0, -16(%rbp) jne LBB6_2 ## %bb.1: callq _hal_wifi_get_default_module movq %rax, -16(%rbp) LBB6_2: cmpq $0, -16(%rbp) je LBB6_5 ## %bb.3: movq -16(%rbp), %rax cmpq $0, 64(%rax) je LBB6_5 ## %bb.4: movq -16(%rbp), %rax movq 64(%rax), %rax movq -16(%rbp), %rdi movq -24(%rbp), %rsi callq *%rax movl $0, -4(%rbp) jmp LBB6_6 LBB6_5: movl $-1, -4(%rbp) LBB6_6: movl -4(%rbp), %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _hal_wifi_start ## -- Begin function hal_wifi_start .p2align 4, 0x90 _hal_wifi_start: ## @hal_wifi_start .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -16(%rbp) movq %rsi, -24(%rbp) cmpq $0, -16(%rbp) jne LBB7_2 ## %bb.1: callq _hal_wifi_get_default_module movq %rax, -16(%rbp) LBB7_2: cmpq $0, -16(%rbp) jne LBB7_4 ## %bb.3: movl $-1, -4(%rbp) jmp LBB7_5 LBB7_4: movq -16(%rbp), %rax movq 72(%rax), %rax movq -16(%rbp), %rdi movq -24(%rbp), %rsi callq *%rax movl %eax, -4(%rbp) LBB7_5: movl -4(%rbp), %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _hal_wifi_start_adv ## -- Begin function hal_wifi_start_adv .p2align 4, 0x90 _hal_wifi_start_adv: ## @hal_wifi_start_adv .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) cmpq $0, -8(%rbp) jne LBB8_2 ## %bb.1: callq _hal_wifi_get_default_module movq %rax, -8(%rbp) LBB8_2: movq -8(%rbp), %rax movq 80(%rax), %rax movq -8(%rbp), %rdi movq -16(%rbp), %rsi callq *%rax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _hal_wifi_get_ip_stat ## -- Begin function hal_wifi_get_ip_stat .p2align 4, 0x90 _hal_wifi_get_ip_stat: ## @hal_wifi_get_ip_stat .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) cmpq $0, -8(%rbp) jne LBB9_2 ## %bb.1: callq _hal_wifi_get_default_module movq %rax, -8(%rbp) LBB9_2: movq -8(%rbp), %rax movq 88(%rax), %rax movq -8(%rbp), %rdi movq -16(%rbp), %rsi movl -20(%rbp), %edx callq *%rax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _hal_wifi_get_link_stat ## -- Begin function hal_wifi_get_link_stat .p2align 4, 0x90 _hal_wifi_get_link_stat: ## @hal_wifi_get_link_stat .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) cmpq $0, -8(%rbp) jne LBB10_2 ## %bb.1: callq _hal_wifi_get_default_module movq %rax, -8(%rbp) LBB10_2: movq -8(%rbp), %rax movq 96(%rax), %rax movq -8(%rbp), %rdi movq -16(%rbp), %rsi callq *%rax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _hal_wifi_start_scan ## -- Begin function hal_wifi_start_scan .p2align 4, 0x90 _hal_wifi_start_scan: ## @hal_wifi_start_scan .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) cmpq $0, -8(%rbp) jne LBB11_2 ## %bb.1: callq _hal_wifi_get_default_module movq %rax, -8(%rbp) LBB11_2: movq -8(%rbp), %rax movq 104(%rax), %rax movq -8(%rbp), %rdi callq *%rax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _hal_wifi_start_scan_adv ## -- Begin function hal_wifi_start_scan_adv .p2align 4, 0x90 _hal_wifi_start_scan_adv: ## @hal_wifi_start_scan_adv .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) cmpq $0, -8(%rbp) jne LBB12_2 ## %bb.1: callq _hal_wifi_get_default_module movq %rax, -8(%rbp) LBB12_2: movq -8(%rbp), %rax movq 112(%rax), %rax movq -8(%rbp), %rdi callq *%rax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _hal_wifi_power_off ## -- Begin function hal_wifi_power_off .p2align 4, 0x90 _hal_wifi_power_off: ## @hal_wifi_power_off .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) cmpq $0, -8(%rbp) jne LBB13_2 ## %bb.1: callq _hal_wifi_get_default_module movq %rax, -8(%rbp) LBB13_2: movq -8(%rbp), %rax movq 120(%rax), %rax movq -8(%rbp), %rdi callq *%rax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _hal_wifi_power_on ## -- Begin function hal_wifi_power_on .p2align 4, 0x90 _hal_wifi_power_on: ## @hal_wifi_power_on .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) cmpq $0, -8(%rbp) jne LBB14_2 ## %bb.1: callq _hal_wifi_get_default_module movq %rax, -8(%rbp) LBB14_2: movq -8(%rbp), %rax movq 128(%rax), %rax movq -8(%rbp), %rdi callq *%rax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _hal_wifi_suspend ## -- Begin function hal_wifi_suspend .p2align 4, 0x90 _hal_wifi_suspend: ## @hal_wifi_suspend .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) cmpq $0, -8(%rbp) jne LBB15_2 ## %bb.1: callq _hal_wifi_get_default_module movq %rax, -8(%rbp) LBB15_2: movq -8(%rbp), %rax movq 136(%rax), %rax movq -8(%rbp), %rdi callq *%rax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _hal_wifi_suspend_station ## -- Begin function hal_wifi_suspend_station .p2align 4, 0x90 _hal_wifi_suspend_station: ## @hal_wifi_suspend_station .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) cmpq $0, -8(%rbp) jne LBB16_2 ## %bb.1: callq _hal_wifi_get_default_module movq %rax, -8(%rbp) LBB16_2: movq -8(%rbp), %rax movq 144(%rax), %rax movq -8(%rbp), %rdi callq *%rax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _hal_wifi_suspend_soft_ap ## -- Begin function hal_wifi_suspend_soft_ap .p2align 4, 0x90 _hal_wifi_suspend_soft_ap: ## @hal_wifi_suspend_soft_ap .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) cmpq $0, -8(%rbp) jne LBB17_2 ## %bb.1: callq _hal_wifi_get_default_module movq %rax, -8(%rbp) LBB17_2: movq -8(%rbp), %rax movq 152(%rax), %rax movq -8(%rbp), %rdi callq *%rax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _hal_wifi_set_channel ## -- Begin function hal_wifi_set_channel .p2align 4, 0x90 _hal_wifi_set_channel: ## @hal_wifi_set_channel .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) cmpq $0, -8(%rbp) jne LBB18_2 ## %bb.1: callq _hal_wifi_get_default_module movq %rax, -8(%rbp) LBB18_2: movq -8(%rbp), %rax movq 160(%rax), %rax movq -8(%rbp), %rdi movl -12(%rbp), %esi callq *%rax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _hal_wifi_get_channel ## -- Begin function hal_wifi_get_channel .p2align 4, 0x90 _hal_wifi_get_channel: ## @hal_wifi_get_channel .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) cmpq $0, -8(%rbp) jne LBB19_2 ## %bb.1: callq _hal_wifi_get_default_module movq %rax, -8(%rbp) LBB19_2: movq -8(%rbp), %rax movq 168(%rax), %rax movq -8(%rbp), %rdi callq *%rax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _hal_wifi_get_channel_list ## -- Begin function hal_wifi_get_channel_list .p2align 4, 0x90 _hal_wifi_get_channel_list: ## @hal_wifi_get_channel_list .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) cmpq $0, -8(%rbp) jne LBB20_2 ## %bb.1: callq _hal_wifi_get_default_module movq %rax, -8(%rbp) LBB20_2: movq -8(%rbp), %rax movq 176(%rax), %rax movq -8(%rbp), %rdi movq -16(%rbp), %rsi callq *%rax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _hal_wifi_start_wifi_monitor ## -- Begin function hal_wifi_start_wifi_monitor .p2align 4, 0x90 _hal_wifi_start_wifi_monitor: ## @hal_wifi_start_wifi_monitor .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) cmpq $0, -8(%rbp) jne LBB21_2 ## %bb.1: callq _hal_wifi_get_default_module movq %rax, -8(%rbp) LBB21_2: movq -8(%rbp), %rax movq 184(%rax), %rax movq -8(%rbp), %rdi callq *%rax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _hal_wifi_stop_wifi_monitor ## -- Begin function hal_wifi_stop_wifi_monitor .p2align 4, 0x90 _hal_wifi_stop_wifi_monitor: ## @hal_wifi_stop_wifi_monitor .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) cmpq $0, -8(%rbp) jne LBB22_2 ## %bb.1: callq _hal_wifi_get_default_module movq %rax, -8(%rbp) LBB22_2: movq -8(%rbp), %rax movq 192(%rax), %rax movq -8(%rbp), %rdi callq *%rax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _hal_wifi_register_monitor_cb ## -- Begin function hal_wifi_register_monitor_cb .p2align 4, 0x90 _hal_wifi_register_monitor_cb: ## @hal_wifi_register_monitor_cb .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) cmpq $0, -8(%rbp) jne LBB23_2 ## %bb.1: callq _hal_wifi_get_default_module movq %rax, -8(%rbp) LBB23_2: movq -8(%rbp), %rax movq 200(%rax), %rax movq -8(%rbp), %rdi movq -16(%rbp), %rsi callq *%rax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _hal_wifi_install_event ## -- Begin function hal_wifi_install_event .p2align 4, 0x90 _hal_wifi_install_event: ## @hal_wifi_install_event .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 ## kill: def $rax killed $eax cmpq -8(%rbp), %rax jne LBB24_2 ## %bb.1: jmp LBB24_3 LBB24_2: movq -16(%rbp), %rcx movq -8(%rbp), %rax movq %rcx, 40(%rax) LBB24_3: popq %rbp retq .cfi_endproc ## -- End function .globl _hal_wlan_register_mgnt_monitor_cb ## -- Begin function hal_wlan_register_mgnt_monitor_cb .p2align 4, 0x90 _hal_wlan_register_mgnt_monitor_cb: ## @hal_wlan_register_mgnt_monitor_cb .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) cmpq $0, -8(%rbp) jne LBB25_2 ## %bb.1: callq _hal_wifi_get_default_module movq %rax, -8(%rbp) LBB25_2: movq -8(%rbp), %rax movq 208(%rax), %rax movq -8(%rbp), %rdi movq -16(%rbp), %rsi callq *%rax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _hal_wlan_send_80211_raw_frame ## -- Begin function hal_wlan_send_80211_raw_frame .p2align 4, 0x90 _hal_wlan_send_80211_raw_frame: ## @hal_wlan_send_80211_raw_frame .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) cmpq $0, -8(%rbp) jne LBB26_2 ## %bb.1: callq _hal_wifi_get_default_module movq %rax, -8(%rbp) LBB26_2: movq -8(%rbp), %rax movq 216(%rax), %rax movq -8(%rbp), %rdi movq -16(%rbp), %rsi movl -20(%rbp), %edx callq *%rax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _hal_wifi_start_debug_mode ## -- Begin function hal_wifi_start_debug_mode .p2align 4, 0x90 _hal_wifi_start_debug_mode: ## @hal_wifi_start_debug_mode .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) cmpq $0, -8(%rbp) jne LBB27_2 ## %bb.1: callq _hal_wifi_get_default_module movq %rax, -8(%rbp) LBB27_2: movq -8(%rbp), %rax cmpq $0, 224(%rax) jne LBB27_4 ## %bb.3: jmp LBB27_5 LBB27_4: movq -8(%rbp), %rax movq 224(%rax), %rax movq -8(%rbp), %rdi callq *%rax LBB27_5: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _hal_wifi_stop_debug_mode ## -- Begin function hal_wifi_stop_debug_mode .p2align 4, 0x90 _hal_wifi_stop_debug_mode: ## @hal_wifi_stop_debug_mode .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) cmpq $0, -8(%rbp) jne LBB28_2 ## %bb.1: callq _hal_wifi_get_default_module movq %rax, -8(%rbp) LBB28_2: movq -8(%rbp), %rax cmpq $0, 232(%rax) jne LBB28_4 ## %bb.3: jmp LBB28_5 LBB28_4: movq -8(%rbp), %rax movq 232(%rax), %rax movq -8(%rbp), %rdi callq *%rax LBB28_5: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function __dlist_add ___dlist_add: ## @__dlist_add .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 -24(%rbp), %rcx movq -8(%rbp), %rax movq %rcx, 8(%rax) movq -16(%rbp), %rcx movq -8(%rbp), %rax movq %rcx, (%rax) movq -8(%rbp), %rcx movq -16(%rbp), %rax movq %rcx, 8(%rax) movq -8(%rbp), %rcx movq -24(%rbp), %rax movq %rcx, (%rax) popq %rbp retq .cfi_endproc ## -- End function .section __DATA,__data .p2align 3 ## @g_wifi_module _g_wifi_module: .quad _g_wifi_module .quad _g_wifi_module .subsections_via_symbols
the_stack_data/55615.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _leaf_node_insert ; -- Begin function leaf_node_insert .p2align 2 _leaf_node_insert: ; @leaf_node_insert .cfi_startproc ; %bb.0: sub sp, sp, #80 .cfi_def_cfa_offset 80 stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp, #64 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] stur w1, [x29, #-12] stur x2, [x29, #-24] ldur x8, [x29, #-8] ldr x8, [x8] ldr x0, [x8] ldur x8, [x29, #-8] ldr w1, [x8, #8] bl _get_page str x0, [sp, #32] ldr x0, [sp, #32] bl _leaf_node_num_cells ldr w8, [x0] str w8, [sp, #28] ldr w8, [sp, #28] subs w8, w8, #13 cset w8, lo tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: ldur x0, [x29, #-8] ldur w1, [x29, #-12] ldur x2, [x29, #-24] bl _leaf_node_split_and_insert b LBB0_9 LBB0_2: ldur x8, [x29, #-8] ldr w8, [x8, #12] ldr w9, [sp, #28] subs w8, w8, w9 cset w8, hs tbnz w8, #0, LBB0_8 b LBB0_3 LBB0_3: ldr w8, [sp, #28] str w8, [sp, #24] b LBB0_4 LBB0_4: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #24] ldur x9, [x29, #-8] ldr w9, [x9, #12] subs w8, w8, w9 cset w8, ls tbnz w8, #0, LBB0_7 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_4 Depth=1 ldr x0, [sp, #32] ldr w1, [sp, #24] bl _leaf_node_cell str x0, [sp, #16] ; 8-byte Folded Spill ldr x0, [sp, #32] ldr w8, [sp, #24] subs w1, w8, #1 bl _leaf_node_cell mov x1, x0 ldr x0, [sp, #16] ; 8-byte Folded Reload mov x2, #297 bl _memcpy b LBB0_6 LBB0_6: ; in Loop: Header=BB0_4 Depth=1 ldr w8, [sp, #24] subs w8, w8, #1 str w8, [sp, #24] b LBB0_4 LBB0_7: b LBB0_8 LBB0_8: ldr x0, [sp, #32] bl _leaf_node_num_cells ldr w8, [x0] add w8, w8, #1 str w8, [x0] ldur w8, [x29, #-12] str w8, [sp, #4] ; 4-byte Folded Spill ldr x0, [sp, #32] ldur x8, [x29, #-8] ldr w1, [x8, #12] bl _leaf_node_key ldr w8, [sp, #4] ; 4-byte Folded Reload str w8, [x0] ldur x8, [x29, #-24] str x8, [sp, #8] ; 8-byte Folded Spill ldr x0, [sp, #32] ldur x8, [x29, #-8] ldr w1, [x8, #12] bl _leaf_node_value mov x1, x0 ldr x0, [sp, #8] ; 8-byte Folded Reload bl _serialize_row b LBB0_9 LBB0_9: ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .globl _get_page ; -- Begin function get_page .p2align 2 _get_page: ; @get_page .cfi_startproc ; %bb.0: sub sp, sp, #80 .cfi_def_cfa_offset 80 stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp, #64 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] stur w1, [x29, #-12] ldur w8, [x29, #-12] subs w8, w8, #100 cset w8, ls tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: ldur w9, [x29, #-12] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] mov x8, #100 str x8, [x9, #8] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf mov w0, #1 bl _exit LBB1_2: ldur x8, [x29, #-8] add x8, x8, #16 ldur w9, [x29, #-12] ; kill: def $x9 killed $w9 ldr x8, [x8, x9, lsl #3] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB1_12 b LBB1_3 LBB1_3: mov x0, #4 bl _malloc stur x0, [x29, #-24] ldur x8, [x29, #-8] ldr w8, [x8, #4] mov w10, #4096 udiv w8, w8, w10 stur w8, [x29, #-28] ldur x8, [x29, #-8] ldr w8, [x8, #4] udiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB1_5 b LBB1_4 LBB1_4: ldur w8, [x29, #-28] add w8, w8, #1 stur w8, [x29, #-28] b LBB1_5 LBB1_5: ldur w8, [x29, #-12] ldur w9, [x29, #-28] subs w8, w8, w9 cset w8, hs tbnz w8, #0, LBB1_9 b LBB1_6 LBB1_6: ldur x8, [x29, #-8] ldr w0, [x8] ldur w8, [x29, #-12] lsl w8, w8, #12 mov x1, x8 mov w2, #0 bl _lseek ldur x8, [x29, #-8] ldr w0, [x8] ldur x1, [x29, #-24] mov x2, #4096 bl _read str x0, [sp, #24] ldr x8, [sp, #24] adds x8, x8, #1 cset w8, ne tbnz w8, #0, LBB1_8 b LBB1_7 LBB1_7: bl ___error ldr w9, [x0] ; 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 mov w0, #1 bl _exit LBB1_8: b LBB1_9 LBB1_9: ldur x8, [x29, #-24] ldur x9, [x29, #-8] add x9, x9, #16 ldur w10, [x29, #-12] ; kill: def $x10 killed $w10 str x8, [x9, x10, lsl #3] ldur w8, [x29, #-12] ldur x9, [x29, #-8] ldr w9, [x9, #8] subs w8, w8, w9 cset w8, lo tbnz w8, #0, LBB1_11 b LBB1_10 LBB1_10: ldur w8, [x29, #-12] add w8, w8, #1 ldur x9, [x29, #-8] str w8, [x9, #8] b LBB1_11 LBB1_11: b LBB1_12 LBB1_12: ldur x8, [x29, #-8] add x8, x8, #16 ldur w9, [x29, #-12] ; kill: def $x9 killed $w9 ldr x0, [x8, x9, lsl #3] ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .globl _leaf_node_num_cells ; -- Begin function leaf_node_num_cells .p2align 2 _leaf_node_num_cells: ; @leaf_node_num_cells .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] ldr x8, [sp, #8] add x0, x8, #6 add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _leaf_node_split_and_insert ; -- Begin function leaf_node_split_and_insert .p2align 2 _leaf_node_split_and_insert: ; @leaf_node_split_and_insert .cfi_startproc ; %bb.0: sub sp, sp, #160 .cfi_def_cfa_offset 160 stp x29, x30, [sp, #144] ; 16-byte Folded Spill add x29, sp, #144 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] stur w1, [x29, #-12] stur x2, [x29, #-24] ldur x8, [x29, #-8] ldr x8, [x8] ldr x0, [x8] ldur x8, [x29, #-8] ldr w1, [x8, #8] bl _get_page stur x0, [x29, #-32] ldur x0, [x29, #-32] bl _get_node_max_key stur w0, [x29, #-36] ldur x8, [x29, #-8] ldr x8, [x8] ldr x0, [x8] bl _get_unused_page_num stur w0, [x29, #-40] ldur x8, [x29, #-8] ldr x8, [x8] ldr x0, [x8] ldur w1, [x29, #-40] bl _get_page stur x0, [x29, #-48] ldur x0, [x29, #-48] bl _initialize_leaf_node ldur x0, [x29, #-32] bl _node_parent ldr w8, [x0] str w8, [sp, #36] ; 4-byte Folded Spill ldur x0, [x29, #-48] bl _node_parent ldr w8, [sp, #36] ; 4-byte Folded Reload str w8, [x0] ldur x0, [x29, #-32] bl _leaf_node_next_leaf ldr w8, [x0] str w8, [sp, #40] ; 4-byte Folded Spill ldur x0, [x29, #-48] bl _leaf_node_next_leaf ldr w8, [sp, #40] ; 4-byte Folded Reload str w8, [x0] ldur w8, [x29, #-40] str w8, [sp, #44] ; 4-byte Folded Spill ldur x0, [x29, #-32] bl _leaf_node_next_leaf ldr w8, [sp, #44] ; 4-byte Folded Reload str w8, [x0] mov w8, #13 stur w8, [x29, #-52] b LBB3_1 LBB3_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-52] subs w8, w8, #0 cset w8, lt tbnz w8, #0, LBB3_13 b LBB3_2 LBB3_2: ; in Loop: Header=BB3_1 Depth=1 ldur w8, [x29, #-52] subs w8, w8, #7 cset w8, lo tbnz w8, #0, LBB3_4 b LBB3_3 LBB3_3: ; in Loop: Header=BB3_1 Depth=1 ldur x8, [x29, #-48] stur x8, [x29, #-64] b LBB3_5 LBB3_4: ; in Loop: Header=BB3_1 Depth=1 ldur x8, [x29, #-32] stur x8, [x29, #-64] b LBB3_5 LBB3_5: ; in Loop: Header=BB3_1 Depth=1 ldur w8, [x29, #-52] mov w10, #7 udiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 stur w8, [x29, #-68] ldur x0, [x29, #-64] ldur w1, [x29, #-68] bl _leaf_node_cell str x0, [sp, #64] ldur w8, [x29, #-52] ldur x9, [x29, #-8] ldr w9, [x9, #12] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB3_7 b LBB3_6 LBB3_6: ; in Loop: Header=BB3_1 Depth=1 ldur x8, [x29, #-24] str x8, [sp, #24] ; 8-byte Folded Spill ldur x0, [x29, #-64] ldur w1, [x29, #-68] bl _leaf_node_value mov x1, x0 ldr x0, [sp, #24] ; 8-byte Folded Reload bl _serialize_row ldur w8, [x29, #-12] str w8, [sp, #32] ; 4-byte Folded Spill ldur x0, [x29, #-64] ldur w1, [x29, #-68] bl _leaf_node_key ldr w8, [sp, #32] ; 4-byte Folded Reload str w8, [x0] b LBB3_11 LBB3_7: ; in Loop: Header=BB3_1 Depth=1 ldur w8, [x29, #-52] ldur x9, [x29, #-8] ldr w9, [x9, #12] subs w8, w8, w9 cset w8, ls tbnz w8, #0, LBB3_9 b LBB3_8 LBB3_8: ; in Loop: Header=BB3_1 Depth=1 ldr x8, [sp, #64] str x8, [sp, #16] ; 8-byte Folded Spill ldur x0, [x29, #-32] ldur w8, [x29, #-52] subs w1, w8, #1 bl _leaf_node_cell mov x1, x0 ldr x0, [sp, #16] ; 8-byte Folded Reload mov x2, #297 mov x3, #-1 bl ___memcpy_chk b LBB3_10 LBB3_9: ; in Loop: Header=BB3_1 Depth=1 ldr x8, [sp, #64] str x8, [sp, #8] ; 8-byte Folded Spill ldur x0, [x29, #-32] ldur w1, [x29, #-52] bl _leaf_node_cell mov x1, x0 ldr x0, [sp, #8] ; 8-byte Folded Reload mov x2, #297 mov x3, #-1 bl ___memcpy_chk b LBB3_10 LBB3_10: ; in Loop: Header=BB3_1 Depth=1 b LBB3_11 LBB3_11: ; in Loop: Header=BB3_1 Depth=1 b LBB3_12 LBB3_12: ; in Loop: Header=BB3_1 Depth=1 ldur w8, [x29, #-52] subs w8, w8, #1 stur w8, [x29, #-52] b LBB3_1 LBB3_13: ldur x0, [x29, #-32] bl _leaf_node_num_cells mov w8, #7 str w8, [sp, #4] ; 4-byte Folded Spill str w8, [x0] ldur x0, [x29, #-48] bl _leaf_node_num_cells ldr w8, [sp, #4] ; 4-byte Folded Reload str w8, [x0] ldur x0, [x29, #-32] bl _is_node_root tbz w0, #0, LBB3_15 b LBB3_14 LBB3_14: ldur x8, [x29, #-8] ldr x0, [x8] ldur w1, [x29, #-40] bl _create_new_root b LBB3_16 LBB3_15: ldur x0, [x29, #-32] bl _node_parent ldr w8, [x0] str w8, [sp, #60] ldur x0, [x29, #-32] bl _get_node_max_key str w0, [sp, #56] ldur x8, [x29, #-8] ldr x8, [x8] ldr x0, [x8] ldr w1, [sp, #60] bl _get_page str x0, [sp, #48] ldr x0, [sp, #48] ldur w1, [x29, #-36] ldr w2, [sp, #56] bl _update_internal_node_key ldur x8, [x29, #-8] ldr x0, [x8] ldr w1, [sp, #60] ldur w2, [x29, #-40] bl _internal_node_insert b LBB3_16 LBB3_16: ldp x29, x30, [sp, #144] ; 16-byte Folded Reload add sp, sp, #160 ret .cfi_endproc ; -- End function .globl _leaf_node_cell ; -- Begin function leaf_node_cell .p2align 2 _leaf_node_cell: ; @leaf_node_cell .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] str w1, [sp, #4] ldr x8, [sp, #8] add x8, x8, #14 ldr w9, [sp, #4] mov w10, #297 mul w9, w9, w10 ; kill: def $x9 killed $w9 add x0, x8, x9 add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _leaf_node_key ; -- Begin function leaf_node_key .p2align 2 _leaf_node_key: ; @leaf_node_key .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #8] str w1, [sp, #4] ldr x0, [sp, #8] ldr w1, [sp, #4] bl _leaf_node_cell ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _serialize_row ; -- Begin function serialize_row .p2align 2 _serialize_row: ; @serialize_row .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] str x1, [sp, #16] ldr x0, [sp, #16] ldur x1, [x29, #-8] mov x2, #4 mov x3, #-1 str x3, [sp, #8] ; 8-byte Folded Spill bl ___memcpy_chk ldr x3, [sp, #8] ; 8-byte Folded Reload ldr x9, [sp, #16] ldur x8, [x29, #-8] add x0, x9, #4 add x1, x8, #4 mov x2, #33 bl ___memcpy_chk ldr x3, [sp, #8] ; 8-byte Folded Reload ldr x9, [sp, #16] ldur x8, [x29, #-8] add x0, x9, #37 add x1, x8, #37 mov x2, #256 bl ___memcpy_chk ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _leaf_node_value ; -- Begin function leaf_node_value .p2align 2 _leaf_node_value: ; @leaf_node_value .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #8] str w1, [sp, #4] ldr x0, [sp, #8] ldr w1, [sp, #4] bl _leaf_node_cell add x0, x0, #4 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _initialize_leaf_node ; -- Begin function initialize_leaf_node .p2align 2 _initialize_leaf_node: ; @initialize_leaf_node .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] mov w1, #1 bl _set_node_type ldr x0, [sp, #8] mov w8, #0 and w1, w8, #0x1 bl _set_node_root ldr x0, [sp, #8] bl _leaf_node_num_cells str wzr, [x0] ldr x0, [sp, #8] bl _leaf_node_next_leaf ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _set_node_type ; -- Begin function set_node_type .p2align 2 _set_node_type: ; @set_node_type .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] str w1, [sp, #4] ldr w8, [sp, #4] strb w8, [sp, #3] ldrb w8, [sp, #3] ldr x9, [sp, #8] strb w8, [x9] add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _set_node_root ; -- Begin function set_node_root .p2align 2 _set_node_root: ; @set_node_root .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] mov w8, #1 and w8, w1, w8 strb w8, [sp, #7] ldrb w8, [sp, #7] and w8, w8, #0x1 strb w8, [sp, #6] ldrb w8, [sp, #6] ldr x9, [sp, #8] strb w8, [x9, #1] add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _leaf_node_next_leaf ; -- Begin function leaf_node_next_leaf .p2align 2 _leaf_node_next_leaf: ; @leaf_node_next_leaf .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] ldr x8, [sp, #8] add x0, x8, #10 add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _table_start ; -- Begin function table_start .p2align 2 _table_start: ; @table_start .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] ldur x0, [x29, #-8] mov w1, #0 bl _table_find str x0, [sp, #16] ldur x8, [x29, #-8] ldr x0, [x8] ldr x8, [sp, #16] ldr w1, [x8, #8] bl _get_page str x0, [sp, #8] ldr x0, [sp, #8] bl _leaf_node_num_cells ldr w8, [x0] str w8, [sp, #4] ldr w8, [sp, #4] subs w8, w8, #0 cset w8, eq ldr x9, [sp, #16] and w8, w8, #0x1 strb w8, [x9, #16] ldr x0, [sp, #16] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _table_find ; -- Begin function table_find .p2align 2 _table_find: ; @table_find .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #16] str w1, [sp, #12] ldr x8, [sp, #16] ldr w8, [x8, #8] str w8, [sp, #8] ldr x8, [sp, #16] ldr x0, [x8] ldr w1, [sp, #8] bl _get_page str x0, [sp] ldr x0, [sp] bl _get_node_type subs w8, w0, #1 cset w8, ne tbnz w8, #0, LBB13_2 b LBB13_1 LBB13_1: ldr x0, [sp, #16] ldr w1, [sp, #8] ldr w2, [sp, #12] bl _leaf_node_find stur x0, [x29, #-8] b LBB13_3 LBB13_2: ldr x0, [sp, #16] ldr w1, [sp, #8] ldr w2, [sp, #12] bl _internal_node_find stur x0, [x29, #-8] b LBB13_3 LBB13_3: ldur x0, [x29, #-8] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _get_node_type ; -- Begin function get_node_type .p2align 2 _get_node_type: ; @get_node_type .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] ldr x8, [sp, #8] ldrb w8, [x8] strb w8, [sp, #7] ldrb w0, [sp, #7] add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _leaf_node_find ; -- Begin function leaf_node_find .p2align 2 _leaf_node_find: ; @leaf_node_find .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] ldur x8, [x29, #-16] ldr x0, [x8] ldur w1, [x29, #-20] bl _get_page str x0, [sp, #32] ldr x0, [sp, #32] bl _leaf_node_num_cells ldr w8, [x0] str w8, [sp, #28] mov x0, #24 bl _malloc str x0, [sp, #16] ldur x8, [x29, #-16] ldr x9, [sp, #16] str x8, [x9] ldur w8, [x29, #-20] ldr x9, [sp, #16] str w8, [x9, #8] str wzr, [sp, #12] ldr w8, [sp, #28] str w8, [sp, #8] b LBB15_1 LBB15_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #8] ldr w9, [sp, #12] subs w8, w8, w9 cset w8, eq tbnz w8, #0, LBB15_8 b LBB15_2 LBB15_2: ; in Loop: Header=BB15_1 Depth=1 ldr w8, [sp, #12] ldr w9, [sp, #8] add w8, w8, w9 mov w9, #2 udiv w8, w8, w9 str w8, [sp, #4] ldr x0, [sp, #32] ldr w1, [sp, #4] bl _leaf_node_key ldr w8, [x0] str w8, [sp] ldur w8, [x29, #-24] ldr w9, [sp] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB15_4 b LBB15_3 LBB15_3: ldr w8, [sp, #4] ldr x9, [sp, #16] str w8, [x9, #12] ldr x8, [sp, #16] stur x8, [x29, #-8] b LBB15_9 LBB15_4: ; in Loop: Header=BB15_1 Depth=1 ldur w8, [x29, #-24] ldr w9, [sp] subs w8, w8, w9 cset w8, hs tbnz w8, #0, LBB15_6 b LBB15_5 LBB15_5: ; in Loop: Header=BB15_1 Depth=1 ldr w8, [sp, #12] str w8, [sp, #8] b LBB15_7 LBB15_6: ; in Loop: Header=BB15_1 Depth=1 ldr w8, [sp, #4] add w8, w8, #1 str w8, [sp, #12] b LBB15_7 LBB15_7: ; in Loop: Header=BB15_1 Depth=1 b LBB15_1 LBB15_8: ldr w8, [sp, #12] ldr x9, [sp, #16] str w8, [x9, #12] ldr x8, [sp, #16] stur x8, [x29, #-8] b LBB15_9 LBB15_9: ldur x0, [x29, #-8] ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .globl _internal_node_find ; -- Begin function internal_node_find .p2align 2 _internal_node_find: ; @internal_node_find .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 w1, [x29, #-20] stur w2, [x29, #-24] ldur x8, [x29, #-16] ldr x0, [x8] ldur w1, [x29, #-20] bl _get_page stur x0, [x29, #-32] ldur x0, [x29, #-32] bl _internal_node_num_keys ldr w8, [x0] stur w8, [x29, #-36] str wzr, [sp, #40] ldur w8, [x29, #-36] str w8, [sp, #36] b LBB16_1 LBB16_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #40] ldr w9, [sp, #36] subs w8, w8, w9 cset w8, eq tbnz w8, #0, LBB16_6 b LBB16_2 LBB16_2: ; in Loop: Header=BB16_1 Depth=1 ldr w8, [sp, #40] ldr w9, [sp, #36] add w8, w8, w9 mov w9, #2 udiv w8, w8, w9 str w8, [sp, #32] ldur x0, [x29, #-32] ldr w1, [sp, #32] bl _internal_node_key ldr w8, [x0] str w8, [sp, #28] ldr w8, [sp, #28] ldur w9, [x29, #-24] subs w8, w8, w9 cset w8, lo tbnz w8, #0, LBB16_4 b LBB16_3 LBB16_3: ; in Loop: Header=BB16_1 Depth=1 ldr w8, [sp, #32] str w8, [sp, #36] b LBB16_5 LBB16_4: ; in Loop: Header=BB16_1 Depth=1 ldr w8, [sp, #32] add w8, w8, #1 str w8, [sp, #40] b LBB16_5 LBB16_5: ; in Loop: Header=BB16_1 Depth=1 b LBB16_1 LBB16_6: ldur x0, [x29, #-32] ldur w1, [x29, #-24] bl _internal_node_find_child str w0, [sp, #24] ldur x0, [x29, #-32] ldr w1, [sp, #24] bl _internal_node_child ldr w8, [x0] str w8, [sp, #20] ldur x8, [x29, #-16] ldr x0, [x8] ldr w1, [sp, #20] bl _get_page str x0, [sp, #8] ldr x0, [sp, #8] bl _get_node_type str w0, [sp, #4] ; 4-byte Folded Spill subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB16_9 b LBB16_7 LBB16_7: ldr w8, [sp, #4] ; 4-byte Folded Reload subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB16_10 b LBB16_8 LBB16_8: ldur x0, [x29, #-16] ldr w1, [sp, #20] ldur w2, [x29, #-24] bl _leaf_node_find stur x0, [x29, #-8] b LBB16_10 LBB16_9: ldur x0, [x29, #-16] ldr w1, [sp, #20] ldur w2, [x29, #-24] bl _internal_node_find stur x0, [x29, #-8] b LBB16_10 LBB16_10: ldur x0, [x29, #-8] ldp x29, x30, [sp, #80] ; 16-byte Folded Reload add sp, sp, #96 ret .cfi_endproc ; -- End function .globl _internal_node_num_keys ; -- Begin function internal_node_num_keys .p2align 2 _internal_node_num_keys: ; @internal_node_num_keys .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] ldr x8, [sp, #8] add x0, x8, #6 add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _internal_node_key ; -- Begin function internal_node_key .p2align 2 _internal_node_key: ; @internal_node_key .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #8] str w1, [sp, #4] ldr x0, [sp, #8] ldr w1, [sp, #4] bl _internal_node_cell add x0, x0, #4 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _internal_node_find_child ; -- Begin function internal_node_find_child .p2align 2 _internal_node_find_child: ; @internal_node_find_child .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] stur w1, [x29, #-12] ldur x0, [x29, #-8] bl _internal_node_num_keys ldr w8, [x0] str w8, [sp, #16] str wzr, [sp, #12] ldr w8, [sp, #16] str w8, [sp, #8] b LBB19_1 LBB19_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #12] ldr w9, [sp, #8] subs w8, w8, w9 cset w8, eq tbnz w8, #0, LBB19_6 b LBB19_2 LBB19_2: ; in Loop: Header=BB19_1 Depth=1 ldr w8, [sp, #12] ldr w9, [sp, #8] add w8, w8, w9 mov w9, #2 udiv w8, w8, w9 str w8, [sp, #4] ldur x0, [x29, #-8] ldr w1, [sp, #4] bl _internal_node_key ldr w8, [x0] str w8, [sp] ldr w8, [sp] ldur w9, [x29, #-12] subs w8, w8, w9 cset w8, lo tbnz w8, #0, LBB19_4 b LBB19_3 LBB19_3: ; in Loop: Header=BB19_1 Depth=1 ldr w8, [sp, #4] str w8, [sp, #8] b LBB19_5 LBB19_4: ; in Loop: Header=BB19_1 Depth=1 ldr w8, [sp, #4] add w8, w8, #1 str w8, [sp, #12] b LBB19_5 LBB19_5: ; in Loop: Header=BB19_1 Depth=1 b LBB19_1 LBB19_6: ldr w0, [sp, #12] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _internal_node_child ; -- Begin function internal_node_child .p2align 2 _internal_node_child: ; @internal_node_child .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-16] stur w1, [x29, #-20] ldur x0, [x29, #-16] bl _internal_node_num_keys ldr w8, [x0] str w8, [sp, #24] ldur w8, [x29, #-20] ldr w9, [sp, #24] subs w8, w8, w9 cset w8, ls tbnz w8, #0, LBB20_2 b LBB20_1 LBB20_1: ldur w8, [x29, #-20] ; implicit-def: $x10 mov x10, x8 ldr w9, [sp, #24] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov w0, #1 bl _exit LBB20_2: ldur w8, [x29, #-20] ldr w9, [sp, #24] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB20_4 b LBB20_3 LBB20_3: ldur x0, [x29, #-16] bl _internal_node_right_child stur x0, [x29, #-8] b LBB20_5 LBB20_4: ldur x0, [x29, #-16] ldur w1, [x29, #-20] bl _internal_node_cell stur x0, [x29, #-8] b LBB20_5 LBB20_5: ldur x0, [x29, #-8] ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _get_node_max_key ; -- Begin function get_node_max_key .p2align 2 _get_node_max_key: ; @get_node_max_key .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 x0, [x29, #-16] bl _get_node_type stur w0, [x29, #-20] ; 4-byte Folded Spill subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB21_2 b LBB21_1 LBB21_1: ldur w8, [x29, #-20] ; 4-byte Folded Reload subs w8, w8, #1 cset w8, eq tbnz w8, #0, LBB21_3 b LBB21_4 LBB21_2: ldur x8, [x29, #-16] str x8, [sp, #16] ; 8-byte Folded Spill ldur x0, [x29, #-16] bl _internal_node_num_keys mov x8, x0 ldr x0, [sp, #16] ; 8-byte Folded Reload ldr w8, [x8] subs w1, w8, #1 bl _internal_node_key ldr w8, [x0] stur w8, [x29, #-4] b LBB21_4 LBB21_3: ldur x8, [x29, #-16] str x8, [sp, #8] ; 8-byte Folded Spill ldur x0, [x29, #-16] bl _leaf_node_num_cells mov x8, x0 ldr x0, [sp, #8] ; 8-byte Folded Reload ldr w8, [x8] subs w1, w8, #1 bl _leaf_node_key ldr w8, [x0] stur w8, [x29, #-4] b LBB21_4 LBB21_4: ldur w0, [x29, #-4] ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _get_unused_page_num ; -- Begin function get_unused_page_num .p2align 2 _get_unused_page_num: ; @get_unused_page_num .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] ldr x8, [sp, #8] ldr w0, [x8, #8] add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _node_parent ; -- Begin function node_parent .p2align 2 _node_parent: ; @node_parent .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] ldr x8, [sp, #8] add x0, x8, #2 add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _is_node_root ; -- Begin function is_node_root .p2align 2 _is_node_root: ; @is_node_root .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] ldr x8, [sp, #8] ldrb w8, [x8, #1] strb w8, [sp, #7] ldrb w8, [sp, #7] subs w8, w8, #0 cset w8, ne and w0, w8, #0x1 add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _create_new_root ; -- Begin function create_new_root .p2align 2 _create_new_root: ; @create_new_root .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 w1, [x29, #-12] ldur x8, [x29, #-8] ldr x0, [x8] ldur x8, [x29, #-8] ldr w1, [x8, #8] bl _get_page stur x0, [x29, #-24] ldur x8, [x29, #-8] ldr x0, [x8] ldur w1, [x29, #-12] bl _get_page stur x0, [x29, #-32] ldur x8, [x29, #-8] ldr x0, [x8] bl _get_unused_page_num stur w0, [x29, #-36] ldur x8, [x29, #-8] ldr x0, [x8] ldur w1, [x29, #-36] bl _get_page str x0, [sp, #32] ldr x0, [sp, #32] ldur x1, [x29, #-24] mov x2, #4096 mov x3, #-1 bl ___memcpy_chk ldr x0, [sp, #32] mov w8, #0 str w8, [sp, #16] ; 4-byte Folded Spill mov w9, #1 str w9, [sp, #8] ; 4-byte Folded Spill and w1, w8, #0x1 bl _set_node_root ldur x0, [x29, #-24] bl _initialize_internal_node ldr w8, [sp, #8] ; 4-byte Folded Reload ldur x0, [x29, #-24] and w1, w8, #0x1 bl _set_node_root ldur x0, [x29, #-24] bl _internal_node_num_keys ldr w8, [sp, #8] ; 4-byte Folded Reload ldr w1, [sp, #16] ; 4-byte Folded Reload str w8, [x0] ldur w8, [x29, #-36] str w8, [sp, #12] ; 4-byte Folded Spill ldur x0, [x29, #-24] bl _internal_node_child ldr w8, [sp, #12] ; 4-byte Folded Reload str w8, [x0] ldr x0, [sp, #32] bl _get_node_max_key ldr w1, [sp, #16] ; 4-byte Folded Reload str w0, [sp, #28] ldr w8, [sp, #28] str w8, [sp, #20] ; 4-byte Folded Spill ldur x0, [x29, #-24] bl _internal_node_key ldr w8, [sp, #20] ; 4-byte Folded Reload str w8, [x0] ldur w8, [x29, #-12] str w8, [sp, #24] ; 4-byte Folded Spill ldur x0, [x29, #-24] bl _internal_node_right_child ldr w8, [sp, #24] ; 4-byte Folded Reload str w8, [x0] ldp x29, x30, [sp, #80] ; 16-byte Folded Reload add sp, sp, #96 ret .cfi_endproc ; -- End function .globl _update_internal_node_key ; -- Begin function update_internal_node_key .p2align 2 _update_internal_node_key: ; @update_internal_node_key .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 x0, [x29, #-8] ldur w1, [x29, #-12] bl _internal_node_find_child str w0, [sp, #12] ldr w8, [sp, #16] str w8, [sp, #8] ; 4-byte Folded Spill ldur x0, [x29, #-8] ldr w1, [sp, #12] bl _internal_node_key ldr w8, [sp, #8] ; 4-byte Folded Reload str w8, [x0] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _internal_node_insert ; -- Begin function internal_node_insert .p2align 2 _internal_node_insert: ; @internal_node_insert .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] stur w2, [x29, #-16] ldur x8, [x29, #-8] ldr x0, [x8] ldur w1, [x29, #-12] bl _get_page str x0, [sp, #24] ldur x8, [x29, #-8] ldr x0, [x8] ldur w1, [x29, #-16] bl _get_page str x0, [sp, #16] ldr x0, [sp, #16] bl _get_node_max_key str w0, [sp, #12] ldr x0, [sp, #24] ldr w1, [sp, #12] bl _internal_node_find_child str w0, [sp, #8] ldr x0, [sp, #24] bl _internal_node_num_keys ldr w8, [x0] str w8, [sp, #4] ldr w8, [sp, #4] add w8, w8, #1 str w8, [sp] ; 4-byte Folded Spill ldr x0, [sp, #24] bl _internal_node_num_keys ldr w8, [sp] ; 4-byte Folded Reload str w8, [x0] ldr w8, [sp, #4] subs w8, w8, #3 cset w8, lo tbnz w8, #0, LBB27_2 b LBB27_1 LBB27_1: adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf mov w0, #1 bl _exit LBB27_2: ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _initialize_internal_node ; -- Begin function initialize_internal_node .p2align 2 _initialize_internal_node: ; @initialize_internal_node .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] mov w1, #0 str w1, [sp, #4] ; 4-byte Folded Spill bl _set_node_type ldr w8, [sp, #4] ; 4-byte Folded Reload ldr x0, [sp, #8] and w1, w8, #0x1 bl _set_node_root ldr x0, [sp, #8] bl _internal_node_num_keys str wzr, [x0] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _internal_node_right_child ; -- Begin function internal_node_right_child .p2align 2 _internal_node_right_child: ; @internal_node_right_child .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] ldr x8, [sp, #8] add x0, x8, #10 add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _internal_node_cell ; -- Begin function internal_node_cell .p2align 2 _internal_node_cell: ; @internal_node_cell .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] str w1, [sp, #4] ldr x8, [sp, #8] add x8, x8, #14 ldr w9, [sp, #4] lsl w9, w9, #3 ; kill: def $x9 killed $w9 add x0, x8, x9 add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _cursor_value ; -- Begin function cursor_value .p2align 2 _cursor_value: ; @cursor_value .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] ldur x8, [x29, #-8] ldr w8, [x8, #8] stur w8, [x29, #-12] ldur x8, [x29, #-8] ldr x8, [x8] ldr x0, [x8] ldur w1, [x29, #-12] bl _get_page str x0, [sp, #8] ldr x0, [sp, #8] ldur x8, [x29, #-8] ldr w1, [x8, #12] bl _leaf_node_cell ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _cursor_advance ; -- Begin function cursor_advance .p2align 2 _cursor_advance: ; @cursor_advance .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] ldur x8, [x29, #-8] ldr w8, [x8, #8] stur w8, [x29, #-12] ldur x8, [x29, #-8] ldr x8, [x8] ldr x0, [x8] ldur w1, [x29, #-12] bl _get_page str x0, [sp, #8] ldur x9, [x29, #-8] ldr w8, [x9, #12] add w8, w8, #1 str w8, [x9, #12] ldur x8, [x29, #-8] ldr w8, [x8, #12] str w8, [sp] ; 4-byte Folded Spill ldr x0, [sp, #8] bl _leaf_node_num_cells ldr w8, [sp] ; 4-byte Folded Reload ldr w9, [x0] subs w8, w8, w9 cset w8, lo tbnz w8, #0, LBB32_5 b LBB32_1 LBB32_1: ldr x0, [sp, #8] bl _leaf_node_next_leaf ldr w8, [x0] str w8, [sp, #4] ldr w8, [sp, #4] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB32_3 b LBB32_2 LBB32_2: ldur x9, [x29, #-8] mov w8, #1 strb w8, [x9, #16] b LBB32_4 LBB32_3: ldr w8, [sp, #4] ldur x9, [x29, #-8] str w8, [x9, #8] ldur x8, [x29, #-8] str wzr, [x8, #12] b LBB32_4 LBB32_4: b LBB32_5 LBB32_5: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _deserialize_row ; -- Begin function deserialize_row .p2align 2 _deserialize_row: ; @deserialize_row .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] str x1, [sp, #16] ldr x0, [sp, #16] ldur x1, [x29, #-8] mov x2, #4 mov x3, #-1 str x3, [sp, #8] ; 8-byte Folded Spill bl ___memcpy_chk ldr x3, [sp, #8] ; 8-byte Folded Reload ldr x9, [sp, #16] ldur x8, [x29, #-8] add x0, x9, #4 add x1, x8, #4 mov x2, #33 bl ___memcpy_chk ldr x3, [sp, #8] ; 8-byte Folded Reload ldr x9, [sp, #16] ldur x8, [x29, #-8] add x0, x9, #37 add x1, x8, #37 mov x2, #256 bl ___memcpy_chk ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _pager_flush ; -- Begin function pager_flush .p2align 2 _pager_flush: ; @pager_flush .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] stur w1, [x29, #-12] ldur x8, [x29, #-8] add x8, x8, #16 ldur w9, [x29, #-12] ; kill: def $x9 killed $w9 ldr x8, [x8, x9, lsl #3] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB34_2 b LBB34_1 LBB34_1: adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf mov w0, #1 bl _exit LBB34_2: ldur x8, [x29, #-8] ldr w0, [x8] ldur w8, [x29, #-12] lsl w8, w8, #12 mov x1, x8 mov w2, #0 bl _lseek str x0, [sp, #24] ldr x8, [sp, #24] adds x8, x8, #1 cset w8, ne tbnz w8, #0, LBB34_4 b LBB34_3 LBB34_3: bl ___error ldr w9, [x0] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf mov w0, #1 bl _exit LBB34_4: ldur x8, [x29, #-8] ldr w0, [x8] ldur x8, [x29, #-8] add x8, x8, #16 ldur w9, [x29, #-12] ; kill: def $x9 killed $w9 ldr x1, [x8, x9, lsl #3] mov x2, #4096 bl _write str x0, [sp, #16] ldr x8, [sp, #16] adds x8, x8, #1 cset w8, ne tbnz w8, #0, LBB34_6 b LBB34_5 LBB34_5: bl ___error ldr w9, [x0] ; 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 mov w0, #1 bl _exit LBB34_6: ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _db_close ; -- Begin function db_close .p2align 2 _db_close: ; @db_close .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] ldur x8, [x29, #-8] ldr x8, [x8] stur x8, [x29, #-16] stur wzr, [x29, #-20] b LBB35_1 LBB35_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-20] ldur x9, [x29, #-16] ldr w9, [x9, #8] subs w8, w8, w9 cset w8, hs tbnz w8, #0, LBB35_6 b LBB35_2 LBB35_2: ; in Loop: Header=BB35_1 Depth=1 ldur x8, [x29, #-16] add x8, x8, #16 ldur w9, [x29, #-20] ; kill: def $x9 killed $w9 ldr x8, [x8, x9, lsl #3] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB35_4 b LBB35_3 LBB35_3: ; in Loop: Header=BB35_1 Depth=1 b LBB35_5 LBB35_4: ; in Loop: Header=BB35_1 Depth=1 ldur x0, [x29, #-16] ldur w1, [x29, #-20] bl _pager_flush b LBB35_5 LBB35_5: ; in Loop: Header=BB35_1 Depth=1 ldur w8, [x29, #-20] add w8, w8, #1 stur w8, [x29, #-20] b LBB35_1 LBB35_6: ldur x8, [x29, #-16] ldr w0, [x8] bl _close str w0, [sp, #24] ldr w8, [sp, #24] adds w8, w8, #1 cset w8, ne tbnz w8, #0, LBB35_8 b LBB35_7 LBB35_7: adrp x0, l_.str.7@PAGE add x0, x0, l_.str.7@PAGEOFF bl _printf mov w0, #1 bl _exit LBB35_8: str wzr, [sp, #20] b LBB35_9 LBB35_9: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #20] subs w8, w8, #100 cset w8, hs tbnz w8, #0, LBB35_14 b LBB35_10 LBB35_10: ; in Loop: Header=BB35_9 Depth=1 ldur x8, [x29, #-16] add x8, x8, #16 ldr w9, [sp, #20] ; kill: def $x9 killed $w9 ldr x8, [x8, x9, lsl #3] str x8, [sp, #8] ldr x8, [sp, #8] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB35_12 b LBB35_11 LBB35_11: ; in Loop: Header=BB35_9 Depth=1 ldr x0, [sp, #8] bl _free b LBB35_12 LBB35_12: ; in Loop: Header=BB35_9 Depth=1 b LBB35_13 LBB35_13: ; in Loop: Header=BB35_9 Depth=1 ldr w8, [sp, #20] add w8, w8, #1 str w8, [sp, #20] b LBB35_9 LBB35_14: ldur x0, [x29, #-16] bl _free ldur x0, [x29, #-8] bl _free ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _print_prompt ; -- Begin function print_prompt .p2align 2 _print_prompt: ; @print_prompt .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.8@PAGE add x0, x0, l_.str.8@PAGEOFF bl _printf ldp x29, x30, [sp], #16 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .globl _print_row ; -- Begin function print_row .p2align 2 _print_row: ; @print_row .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] ldur x8, [x29, #-8] ldr w8, [x8] ; implicit-def: $x11 mov x11, x8 ldur x8, [x29, #-8] add x10, x8, #4 ldur x8, [x29, #-8] add x8, x8, #37 mov x9, sp str x11, [x9] str x10, [x9, #8] str x8, [x9, #16] adrp x0, l_.str.9@PAGE add x0, x0, l_.str.9@PAGEOFF bl _printf ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _new_input_buffer ; -- Begin function new_input_buffer .p2align 2 _new_input_buffer: ; @new_input_buffer .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov x0, #24 bl _malloc str x0, [sp, #8] ldr x8, [sp, #8] ; kill: def $x9 killed $xzr str xzr, [x8] ldr x8, [sp, #8] str xzr, [x8, #8] ldr x8, [sp, #8] str xzr, [x8, #16] ldr x0, [sp, #8] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _pager_open ; -- Begin function pager_open .p2align 2 _pager_open: ; @pager_open .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] mov x9, sp mov x8, #384 str x8, [x9] mov w1, #514 bl _open stur w0, [x29, #-12] ldur w8, [x29, #-12] adds w8, w8, #1 cset w8, ne tbnz w8, #0, LBB39_2 b LBB39_1 LBB39_1: adrp x0, l_.str.10@PAGE add x0, x0, l_.str.10@PAGEOFF bl _printf mov w0, #1 bl _exit LBB39_2: ldur w0, [x29, #-12] mov x1, #0 mov w2, #2 bl _lseek str x0, [sp, #24] mov x0, #816 bl _malloc str x0, [sp, #16] ldur w8, [x29, #-12] ldr x9, [sp, #16] str w8, [x9] ldr x8, [sp, #24] ldr x9, [sp, #16] ; kill: def $w8 killed $w8 killed $x8 str w8, [x9, #4] ldr x8, [sp, #24] mov x10, #4096 sdiv x8, x8, x10 ldr x9, [sp, #16] ; kill: def $w8 killed $w8 killed $x8 str w8, [x9, #8] ldr x8, [sp, #24] sdiv x9, x8, x10 mul x9, x9, x10 subs x8, x8, x9 subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB39_4 b LBB39_3 LBB39_3: adrp x0, l_.str.11@PAGE add x0, x0, l_.str.11@PAGEOFF bl _printf mov w0, #1 bl _exit LBB39_4: str wzr, [sp, #12] b LBB39_5 LBB39_5: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #12] subs w8, w8, #100 cset w8, hs tbnz w8, #0, LBB39_8 b LBB39_6 LBB39_6: ; in Loop: Header=BB39_5 Depth=1 ldr x8, [sp, #16] add x9, x8, #16 ldr w8, [sp, #12] mov x10, x8 mov x8, #0 str x8, [x9, x10, lsl #3] b LBB39_7 LBB39_7: ; in Loop: Header=BB39_5 Depth=1 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB39_5 LBB39_8: ldr x0, [sp, #16] ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _db_open ; -- Begin function db_open .p2align 2 _db_open: ; @db_open .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] ldur x0, [x29, #-8] bl _pager_open str x0, [sp, #16] mov x0, #16 bl _malloc str x0, [sp, #8] ldr x8, [sp, #16] ldr x9, [sp, #8] str x8, [x9] ldr x8, [sp, #8] str wzr, [x8, #8] ldr x8, [sp, #16] ldr w8, [x8, #8] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB40_2 b LBB40_1 LBB40_1: ldr x0, [sp, #16] mov w1, #0 bl _get_page str x0, [sp] ldr x0, [sp] bl _initialize_leaf_node ldr x0, [sp] mov w8, #1 and w1, w8, #0x1 bl _set_node_root b LBB40_2 LBB40_2: ldr x0, [sp, #8] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _read_input ; -- Begin function read_input .p2align 2 _read_input: ; @read_input .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #8] ldr x0, [sp, #8] ldr x8, [sp, #8] adrp x9, ___stdinp@GOTPAGE ldr x9, [x9, ___stdinp@GOTPAGEOFF] ldr x2, [x9] add x1, x8, #8 bl _getline str x0, [sp] ldr x8, [sp] subs x8, x8, #0 cset w8, gt tbnz w8, #0, LBB41_2 b LBB41_1 LBB41_1: adrp x0, l_.str.12@PAGE add x0, x0, l_.str.12@PAGEOFF bl _printf mov w0, #1 bl _exit LBB41_2: ldr x8, [sp] subs x8, x8, #1 ldr x9, [sp, #8] str x8, [x9, #16] ldr x8, [sp, #8] ldr x8, [x8] ldr x9, [sp] subs x9, x9, #1 add x8, x8, x9 strb wzr, [x8] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _close_input_buffer ; -- Begin function close_input_buffer .p2align 2 _close_input_buffer: ; @close_input_buffer .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 x0, [x8] bl _free 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 _print_constants ; -- Begin function print_constants .p2align 2 _print_constants: ; @print_constants .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov x9, sp mov x8, #293 str x8, [x9] adrp x0, l_.str.13@PAGE add x0, x0, l_.str.13@PAGEOFF bl _printf mov x9, sp mov x8, #6 str x8, [x9] adrp x0, l_.str.14@PAGE add x0, x0, l_.str.14@PAGEOFF bl _printf mov x9, sp mov x8, #14 str x8, [x9] adrp x0, l_.str.15@PAGE add x0, x0, l_.str.15@PAGEOFF bl _printf mov x9, sp mov x8, #297 str x8, [x9] adrp x0, l_.str.16@PAGE add x0, x0, l_.str.16@PAGEOFF bl _printf mov x9, sp mov x8, #4082 str x8, [x9] adrp x0, l_.str.17@PAGE add x0, x0, l_.str.17@PAGEOFF bl _printf mov x9, sp mov x8, #13 str x8, [x9] adrp x0, l_.str.18@PAGE add x0, x0, l_.str.18@PAGEOFF bl _printf ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _indent ; -- Begin function indent .p2align 2 _indent: ; @indent .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur w0, [x29, #-4] str wzr, [sp, #8] b LBB44_1 LBB44_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #8] ldur w9, [x29, #-4] subs w8, w8, w9 cset w8, hs tbnz w8, #0, LBB44_4 b LBB44_2 LBB44_2: ; in Loop: Header=BB44_1 Depth=1 adrp x0, l_.str.19@PAGE add x0, x0, l_.str.19@PAGEOFF bl _printf b LBB44_3 LBB44_3: ; in Loop: Header=BB44_1 Depth=1 ldr w8, [sp, #8] add w8, w8, #1 str w8, [sp, #8] b LBB44_1 LBB44_4: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _print_tree ; -- Begin function print_tree .p2align 2 _print_tree: ; @print_tree .cfi_startproc ; %bb.0: sub sp, sp, #80 .cfi_def_cfa_offset 80 stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp, #64 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] stur w1, [x29, #-12] stur w2, [x29, #-16] ldur x0, [x29, #-8] ldur w1, [x29, #-12] bl _get_page stur x0, [x29, #-24] ldur x0, [x29, #-24] bl _get_node_type str w0, [sp, #20] ; 4-byte Folded Spill subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB45_7 b LBB45_1 LBB45_1: ldr w8, [sp, #20] ; 4-byte Folded Reload subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB45_12 b LBB45_2 LBB45_2: ldur x0, [x29, #-24] bl _leaf_node_num_cells ldr w8, [x0] stur w8, [x29, #-28] ldur w0, [x29, #-16] bl _indent ldur w9, [x29, #-28] ; 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 str wzr, [sp, #28] b LBB45_3 LBB45_3: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #28] ldur w9, [x29, #-28] subs w8, w8, w9 cset w8, hs tbnz w8, #0, LBB45_6 b LBB45_4 LBB45_4: ; in Loop: Header=BB45_3 Depth=1 ldur w8, [x29, #-16] add w0, w8, #1 bl _indent ldur x0, [x29, #-24] ldr w1, [sp, #28] bl _leaf_node_key ldr w9, [x0] ; 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 b LBB45_5 LBB45_5: ; in Loop: Header=BB45_3 Depth=1 ldr w8, [sp, #28] add w8, w8, #1 str w8, [sp, #28] b LBB45_3 LBB45_6: b LBB45_12 LBB45_7: ldur x0, [x29, #-24] bl _internal_node_num_keys ldr w8, [x0] stur w8, [x29, #-28] ldur w0, [x29, #-16] bl _indent ldur w9, [x29, #-28] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.22@PAGE add x0, x0, l_.str.22@PAGEOFF bl _printf str wzr, [sp, #24] b LBB45_8 LBB45_8: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #24] ldur w9, [x29, #-28] subs w8, w8, w9 cset w8, hs tbnz w8, #0, LBB45_11 b LBB45_9 LBB45_9: ; in Loop: Header=BB45_8 Depth=1 ldur x0, [x29, #-24] ldr w1, [sp, #24] bl _internal_node_child ldr w8, [x0] str w8, [sp, #32] ldur x0, [x29, #-8] ldr w1, [sp, #32] ldur w8, [x29, #-16] add w2, w8, #1 bl _print_tree ldur w8, [x29, #-16] add w0, w8, #1 bl _indent ldur x0, [x29, #-24] ldr w1, [sp, #24] bl _internal_node_key ldr w9, [x0] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.23@PAGE add x0, x0, l_.str.23@PAGEOFF bl _printf b LBB45_10 LBB45_10: ; in Loop: Header=BB45_8 Depth=1 ldr w8, [sp, #24] add w8, w8, #1 str w8, [sp, #24] b LBB45_8 LBB45_11: ldur x0, [x29, #-24] bl _internal_node_right_child ldr w8, [x0] str w8, [sp, #32] ldur x0, [x29, #-8] ldr w1, [sp, #32] ldur w8, [x29, #-16] add w2, w8, #1 bl _print_tree b LBB45_12 LBB45_12: ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .globl _do_meta_command ; -- Begin function do_meta_command .p2align 2 _do_meta_command: ; @do_meta_command .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #16] str x1, [sp, #8] ldr x8, [sp, #16] ldr x0, [x8] adrp x1, l_.str.24@PAGE add x1, x1, l_.str.24@PAGEOFF bl _strcmp subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB46_2 b LBB46_1 LBB46_1: ldr x0, [sp, #8] bl _db_close mov w0, #0 bl _exit LBB46_2: ldr x8, [sp, #16] ldr x0, [x8] adrp x1, l_.str.25@PAGE add x1, x1, l_.str.25@PAGEOFF bl _strcmp subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB46_4 b LBB46_3 LBB46_3: adrp x0, l_.str.26@PAGE add x0, x0, l_.str.26@PAGEOFF bl _printf ldr x8, [sp, #8] ldr x0, [x8] mov w2, #0 mov x1, x2 bl _print_tree stur wzr, [x29, #-4] b LBB46_7 LBB46_4: ldr x8, [sp, #16] ldr x0, [x8] adrp x1, l_.str.27@PAGE add x1, x1, l_.str.27@PAGEOFF bl _strcmp subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB46_6 b LBB46_5 LBB46_5: adrp x0, l_.str.28@PAGE add x0, x0, l_.str.28@PAGEOFF bl _printf bl _print_constants stur wzr, [x29, #-4] b LBB46_7 LBB46_6: mov w8, #1 stur w8, [x29, #-4] b LBB46_7 LBB46_7: ldur w0, [x29, #-4] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _prepare_insert ; -- Begin function prepare_insert .p2align 2 _prepare_insert: ; @prepare_insert .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] ldur x9, [x29, #-24] mov w8, #1 str w8, [x9] ldur x8, [x29, #-16] ldr x0, [x8] adrp x1, l_.str.29@PAGE add x1, x1, l_.str.29@PAGEOFF str x1, [sp] ; 8-byte Folded Spill bl _strtok ldr x1, [sp] ; 8-byte Folded Reload stur x0, [x29, #-32] mov x0, #0 str x0, [sp, #8] ; 8-byte Folded Spill bl _strtok ldr x1, [sp] ; 8-byte Folded Reload mov x8, x0 ldr x0, [sp, #8] ; 8-byte Folded Reload str x8, [sp, #40] bl _strtok ldr x1, [sp] ; 8-byte Folded Reload mov x8, x0 ldr x0, [sp, #8] ; 8-byte Folded Reload str x8, [sp, #32] bl _strtok str x0, [sp, #24] ldr x8, [sp, #40] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB47_3 b LBB47_1 LBB47_1: ldr x8, [sp, #32] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB47_3 b LBB47_2 LBB47_2: ldr x8, [sp, #24] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB47_4 b LBB47_3 LBB47_3: mov w8, #2 stur w8, [x29, #-4] b LBB47_11 LBB47_4: ldr x0, [sp, #40] bl _atoi str w0, [sp, #20] ldr w8, [sp, #20] subs w8, w8, #0 cset w8, ge tbnz w8, #0, LBB47_6 b LBB47_5 LBB47_5: mov w8, #3 stur w8, [x29, #-4] b LBB47_11 LBB47_6: ldr x0, [sp, #32] bl _strlen subs x8, x0, #32 cset w8, ls tbnz w8, #0, LBB47_8 b LBB47_7 LBB47_7: mov w8, #4 stur w8, [x29, #-4] b LBB47_11 LBB47_8: ldr x0, [sp, #24] bl _strlen subs x8, x0, #255 cset w8, ls tbnz w8, #0, LBB47_10 b LBB47_9 LBB47_9: mov w8, #4 stur w8, [x29, #-4] b LBB47_11 LBB47_10: ldr w8, [sp, #20] ldur x9, [x29, #-24] str w8, [x9, #4] ldur x8, [x29, #-24] add x0, x8, #8 ldr x1, [sp, #32] mov x2, #33 bl ___strcpy_chk ldur x8, [x29, #-24] add x0, x8, #41 ldr x1, [sp, #24] mov x2, #-1 bl ___strcpy_chk stur wzr, [x29, #-4] b LBB47_11 LBB47_11: ldur w0, [x29, #-4] ldp x29, x30, [sp, #80] ; 16-byte Folded Reload add sp, sp, #96 ret .cfi_endproc ; -- End function .globl _prepare_statement ; -- Begin function prepare_statement .p2align 2 _prepare_statement: ; @prepare_statement .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #16] str x1, [sp, #8] ldr x8, [sp, #16] ldr x0, [x8] adrp x1, l_.str.30@PAGE add x1, x1, l_.str.30@PAGEOFF mov x2, #6 bl _strncmp subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB48_2 b LBB48_1 LBB48_1: ldr x0, [sp, #16] ldr x1, [sp, #8] bl _prepare_insert stur w0, [x29, #-4] b LBB48_5 LBB48_2: ldr x8, [sp, #16] ldr x0, [x8] adrp x1, l_.str.31@PAGE add x1, x1, l_.str.31@PAGEOFF bl _strcmp subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB48_4 b LBB48_3 LBB48_3: ldr x8, [sp, #8] str wzr, [x8] stur wzr, [x29, #-4] b LBB48_5 LBB48_4: mov w8, #1 stur w8, [x29, #-4] b LBB48_5 LBB48_5: ldur w0, [x29, #-4] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _execute_insert ; -- Begin function execute_insert .p2align 2 _execute_insert: ; @execute_insert .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] ldur x8, [x29, #-24] ldr x0, [x8] ldur x8, [x29, #-24] ldr w1, [x8, #8] bl _get_page stur x0, [x29, #-32] ldur x0, [x29, #-32] bl _leaf_node_num_cells ldr w8, [x0] stur w8, [x29, #-36] ldur x8, [x29, #-16] add x8, x8, #4 str x8, [sp, #32] ldr x8, [sp, #32] ldr w8, [x8] str w8, [sp, #28] ldur x0, [x29, #-24] ldr w1, [sp, #28] bl _table_find str x0, [sp, #16] ldr x8, [sp, #16] ldr w8, [x8, #12] ldur w9, [x29, #-36] subs w8, w8, w9 cset w8, hs tbnz w8, #0, LBB49_4 b LBB49_1 LBB49_1: ldur x0, [x29, #-32] ldr x8, [sp, #16] ldr w1, [x8, #12] bl _leaf_node_key ldr w8, [x0] str w8, [sp, #12] ldr w8, [sp, #12] ldr w9, [sp, #28] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB49_3 b LBB49_2 LBB49_2: mov w8, #1 stur w8, [x29, #-4] b LBB49_5 LBB49_3: b LBB49_4 LBB49_4: ldr x8, [sp, #32] str x8, [sp] ; 8-byte Folded Spill ldr x0, [sp, #16] bl _cursor_value mov x1, x0 ldr x0, [sp] ; 8-byte Folded Reload bl _serialize_row ldr x0, [sp, #16] ldr x8, [sp, #32] ldr w1, [x8] ldr x2, [sp, #32] bl _leaf_node_insert ldr x0, [sp, #16] bl _free stur wzr, [x29, #-4] b LBB49_5 LBB49_5: ldur w0, [x29, #-4] ldp x29, x30, [sp, #80] ; 16-byte Folded Reload add sp, sp, #96 ret .cfi_endproc ; -- End function .globl _execute_select ; -- Begin function execute_select .p2align 2 _execute_select: ; @execute_select .cfi_startproc ; %bb.0: sub sp, sp, #368 .cfi_def_cfa_offset 368 stp x28, x27, [sp, #336] ; 16-byte Folded Spill stp x29, x30, [sp, #352] ; 16-byte Folded Spill add x29, sp, #352 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w27, -24 .cfi_offset w28, -32 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] str x0, [sp, #24] str x1, [sp, #16] ldr x0, [sp, #16] bl _table_start str x0, [sp, #8] b LBB50_1 LBB50_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #8] ldrb w8, [x8, #16] tbnz w8, #0, LBB50_3 b LBB50_2 LBB50_2: ; in Loop: Header=BB50_1 Depth=1 ldr x0, [sp, #8] bl _cursor_value add x1, sp, #32 str x1, [sp] ; 8-byte Folded Spill bl _deserialize_row ldr x0, [sp] ; 8-byte Folded Reload bl _print_row ldr x0, [sp, #8] bl _cursor_advance b LBB50_1 LBB50_3: ldr x0, [sp, #8] bl _free ldur x9, [x29, #-24] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB50_5 b LBB50_4 LBB50_4: bl ___stack_chk_fail LBB50_5: mov w0, #0 ldp x29, x30, [sp, #352] ; 16-byte Folded Reload ldp x28, x27, [sp, #336] ; 16-byte Folded Reload add sp, sp, #368 ret .cfi_endproc ; -- End function .globl _execute_statement ; -- Begin function execute_statement .p2align 2 _execute_statement: ; @execute_statement .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #16] str x1, [sp, #8] ldr x8, [sp, #16] ldr w8, [x8] str w8, [sp, #4] ; 4-byte Folded Spill subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB51_3 b LBB51_1 LBB51_1: ldr w8, [sp, #4] ; 4-byte Folded Reload subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB51_4 b LBB51_2 LBB51_2: ldr x0, [sp, #16] ldr x1, [sp, #8] bl _execute_insert stur w0, [x29, #-4] b LBB51_4 LBB51_3: ldr x0, [sp, #16] ldr x1, [sp, #8] bl _execute_select stur w0, [x29, #-4] b LBB51_4 LBB51_4: 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, #416 .cfi_def_cfa_offset 416 stp x28, x27, [sp, #384] ; 16-byte Folded Spill stp x29, x30, [sp, #400] ; 16-byte Folded Spill add x29, sp, #400 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w27, -24 .cfi_offset w28, -32 sub x8, x29, #56 str x8, [sp, #32] ; 8-byte Folded Spill stur wzr, [x29, #-20] stur w0, [x29, #-24] str x1, [x8, #24] ldur w8, [x29, #-24] subs w8, w8, #2 cset w8, ge tbnz w8, #0, LBB52_2 b LBB52_1 LBB52_1: adrp x0, l_.str.32@PAGE add x0, x0, l_.str.32@PAGEOFF bl _printf mov w0, #1 bl _exit LBB52_2: ldr x8, [sp, #32] ; 8-byte Folded Reload ldr x9, [x8, #24] ldr x9, [x9, #8] str x9, [x8, #16] ldr x0, [x8, #16] bl _db_open ldr x8, [sp, #32] ; 8-byte Folded Reload str x0, [x8, #8] bl _new_input_buffer ldr x8, [sp, #32] ; 8-byte Folded Reload str x0, [x8] b LBB52_3 LBB52_3: ; =>This Inner Loop Header: Depth=1 bl _print_prompt ldr x8, [sp, #32] ; 8-byte Folded Reload ldr x0, [x8] bl _read_input ldr x8, [sp, #32] ; 8-byte Folded Reload ldr x8, [x8] ldr x8, [x8] ldrsb w8, [x8] subs w8, w8, #46 cset w8, ne tbnz w8, #0, LBB52_9 b LBB52_4 LBB52_4: ; in Loop: Header=BB52_3 Depth=1 ldr x8, [sp, #32] ; 8-byte Folded Reload ldr x0, [x8] ldr x1, [x8, #8] bl _do_meta_command str w0, [sp, #28] ; 4-byte Folded Spill subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB52_6 b LBB52_5 LBB52_5: ; in Loop: Header=BB52_3 Depth=1 ldr w8, [sp, #28] ; 4-byte Folded Reload subs w8, w8, #1 cset w8, eq tbnz w8, #0, LBB52_7 b LBB52_8 LBB52_6: ; in Loop: Header=BB52_3 Depth=1 b LBB52_3 LBB52_7: ; in Loop: Header=BB52_3 Depth=1 ldr x8, [sp, #32] ; 8-byte Folded Reload ldr x8, [x8] ldr x8, [x8] mov x9, sp str x8, [x9] adrp x0, l_.str.33@PAGE add x0, x0, l_.str.33@PAGEOFF bl _printf b LBB52_3 LBB52_8: ; in Loop: Header=BB52_3 Depth=1 b LBB52_9 LBB52_9: ; in Loop: Header=BB52_3 Depth=1 ldr x8, [sp, #32] ; 8-byte Folded Reload ldr x0, [x8] add x1, sp, #44 bl _prepare_statement subs w8, w0, #0 ; kill: def $x8 killed $w8 str x8, [sp, #16] ; 8-byte Folded Spill subs x8, x8, #4 cset w8, hi tbnz w8, #0, LBB52_16 ; %bb.10: ; in Loop: Header=BB52_3 Depth=1 ldr x11, [sp, #16] ; 8-byte Folded Reload adrp x10, lJTI52_0@PAGE add x10, x10, lJTI52_0@PAGEOFF Ltmp12: adr x8, Ltmp12 ldrsw x9, [x10, x11, lsl #2] add x8, x8, x9 br x8 LBB52_11: ; in Loop: Header=BB52_3 Depth=1 b LBB52_16 LBB52_12: ; in Loop: Header=BB52_3 Depth=1 adrp x0, l_.str.34@PAGE add x0, x0, l_.str.34@PAGEOFF bl _printf b LBB52_3 LBB52_13: ; in Loop: Header=BB52_3 Depth=1 adrp x0, l_.str.35@PAGE add x0, x0, l_.str.35@PAGEOFF bl _printf b LBB52_3 LBB52_14: ; in Loop: Header=BB52_3 Depth=1 adrp x0, l_.str.36@PAGE add x0, x0, l_.str.36@PAGEOFF bl _printf b LBB52_3 LBB52_15: ; in Loop: Header=BB52_3 Depth=1 ldr x8, [sp, #32] ; 8-byte Folded Reload ldr x8, [x8] ldr x8, [x8] mov x9, sp str x8, [x9] adrp x0, l_.str.37@PAGE add x0, x0, l_.str.37@PAGEOFF bl _printf b LBB52_3 LBB52_16: ; in Loop: Header=BB52_3 Depth=1 ldr x8, [sp, #32] ; 8-byte Folded Reload ldr x1, [x8, #8] add x0, sp, #44 bl _execute_statement str w0, [sp, #12] ; 4-byte Folded Spill subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB52_19 b LBB52_17 LBB52_17: ; in Loop: Header=BB52_3 Depth=1 ldr w8, [sp, #12] ; 4-byte Folded Reload subs w8, w8, #1 cset w8, eq tbnz w8, #0, LBB52_20 b LBB52_18 LBB52_18: ; in Loop: Header=BB52_3 Depth=1 ldr w8, [sp, #12] ; 4-byte Folded Reload subs w8, w8, #2 cset w8, eq tbnz w8, #0, LBB52_21 b LBB52_22 LBB52_19: ; in Loop: Header=BB52_3 Depth=1 adrp x0, l_.str.38@PAGE add x0, x0, l_.str.38@PAGEOFF bl _printf b LBB52_22 LBB52_20: ; in Loop: Header=BB52_3 Depth=1 adrp x0, l_.str.39@PAGE add x0, x0, l_.str.39@PAGEOFF bl _printf b LBB52_22 LBB52_21: ; in Loop: Header=BB52_3 Depth=1 adrp x0, l_.str.40@PAGE add x0, x0, l_.str.40@PAGEOFF bl _printf b LBB52_22 LBB52_22: ; in Loop: Header=BB52_3 Depth=1 b LBB52_3 .cfi_endproc .p2align 2 lJTI52_0: .long LBB52_11-Ltmp12 .long LBB52_15-Ltmp12 .long LBB52_14-Ltmp12 .long LBB52_13-Ltmp12 .long LBB52_12-Ltmp12 ; -- End function .section __TEXT,__const .globl _ID_SIZE ; @ID_SIZE .p2align 2 _ID_SIZE: .long 4 ; 0x4 .globl _USERNAME_SIZE ; @USERNAME_SIZE .p2align 2 _USERNAME_SIZE: .long 33 ; 0x21 .globl _EMAIL_SIZE ; @EMAIL_SIZE .p2align 2 _EMAIL_SIZE: .long 256 ; 0x100 .globl _ID_OFFSET ; @ID_OFFSET .p2align 2 _ID_OFFSET: .long 0 ; 0x0 .globl _USERNAME_OFFSET ; @USERNAME_OFFSET .p2align 2 _USERNAME_OFFSET: .long 4 ; 0x4 .globl _EMAIL_OFFSET ; @EMAIL_OFFSET .p2align 2 _EMAIL_OFFSET: .long 37 ; 0x25 .globl _ROW_SIZE ; @ROW_SIZE .p2align 2 _ROW_SIZE: .long 293 ; 0x125 .globl _PAGE_SIZE ; @PAGE_SIZE .p2align 2 _PAGE_SIZE: .long 4096 ; 0x1000 .globl _NODE_TYPE_SIZE ; @NODE_TYPE_SIZE .p2align 2 _NODE_TYPE_SIZE: .long 1 ; 0x1 .globl _NODE_TYPE_OFFSET ; @NODE_TYPE_OFFSET .p2align 2 _NODE_TYPE_OFFSET: .long 0 ; 0x0 .globl _IS_ROOT_SIZE ; @IS_ROOT_SIZE .p2align 2 _IS_ROOT_SIZE: .long 1 ; 0x1 .globl _IS_ROOT_OFFSET ; @IS_ROOT_OFFSET .p2align 2 _IS_ROOT_OFFSET: .long 1 ; 0x1 .globl _PARENT_POINTER_SIZE ; @PARENT_POINTER_SIZE .p2align 2 _PARENT_POINTER_SIZE: .long 4 ; 0x4 .globl _PARENT_POINTER_OFFSET ; @PARENT_POINTER_OFFSET .p2align 2 _PARENT_POINTER_OFFSET: .long 2 ; 0x2 .globl _COMMON_NODE_HEADER_SIZE ; @COMMON_NODE_HEADER_SIZE _COMMON_NODE_HEADER_SIZE: .byte 6 ; 0x6 .globl _LEAF_NODE_NUM_CELLS_SIZE ; @LEAF_NODE_NUM_CELLS_SIZE .p2align 2 _LEAF_NODE_NUM_CELLS_SIZE: .long 4 ; 0x4 .globl _LEAF_NODE_NUM_CELLS_OFFSET ; @LEAF_NODE_NUM_CELLS_OFFSET .p2align 2 _LEAF_NODE_NUM_CELLS_OFFSET: .long 6 ; 0x6 .globl _LEAF_NODE_NEXT_LEAF_SIZE ; @LEAF_NODE_NEXT_LEAF_SIZE .p2align 2 _LEAF_NODE_NEXT_LEAF_SIZE: .long 4 ; 0x4 .globl _LEAF_NODE_NEXT_LEAF_OFFSET ; @LEAF_NODE_NEXT_LEAF_OFFSET .p2align 2 _LEAF_NODE_NEXT_LEAF_OFFSET: .long 10 ; 0xa .globl _LEAF_NODE_HEADER_SIZE ; @LEAF_NODE_HEADER_SIZE .p2align 2 _LEAF_NODE_HEADER_SIZE: .long 14 ; 0xe .globl _LEAF_NODE_KEY_SIZE ; @LEAF_NODE_KEY_SIZE .p2align 2 _LEAF_NODE_KEY_SIZE: .long 4 ; 0x4 .globl _LEAF_NODE_KEY_OFFSET ; @LEAF_NODE_KEY_OFFSET .p2align 2 _LEAF_NODE_KEY_OFFSET: .long 0 ; 0x0 .globl _LEAF_NODE_VALUE_SIZE ; @LEAF_NODE_VALUE_SIZE .p2align 2 _LEAF_NODE_VALUE_SIZE: .long 293 ; 0x125 .globl _LEAF_NODE_VALUE_OFFSET ; @LEAF_NODE_VALUE_OFFSET .p2align 2 _LEAF_NODE_VALUE_OFFSET: .long 4 ; 0x4 .globl _LEAF_NODE_CELL_SIZE ; @LEAF_NODE_CELL_SIZE .p2align 2 _LEAF_NODE_CELL_SIZE: .long 297 ; 0x129 .globl _LEAF_NODE_SPACE_FOR_CELLS ; @LEAF_NODE_SPACE_FOR_CELLS .p2align 2 _LEAF_NODE_SPACE_FOR_CELLS: .long 4082 ; 0xff2 .globl _LEAF_NODE_MAX_CELLS ; @LEAF_NODE_MAX_CELLS .p2align 2 _LEAF_NODE_MAX_CELLS: .long 13 ; 0xd .globl _LEAF_NODE_RIGHT_SPLIT_COUNT ; @LEAF_NODE_RIGHT_SPLIT_COUNT .p2align 2 _LEAF_NODE_RIGHT_SPLIT_COUNT: .long 7 ; 0x7 .globl _LEAF_NODE_LEFT_SPLIT_COUNT ; @LEAF_NODE_LEFT_SPLIT_COUNT .p2align 2 _LEAF_NODE_LEFT_SPLIT_COUNT: .long 7 ; 0x7 .globl _INTERNAL_NODE_NUM_KEYS_SIZE ; @INTERNAL_NODE_NUM_KEYS_SIZE .p2align 2 _INTERNAL_NODE_NUM_KEYS_SIZE: .long 4 ; 0x4 .globl _INTERNAL_NODE_NUM_KEYS_OFFSET ; @INTERNAL_NODE_NUM_KEYS_OFFSET .p2align 2 _INTERNAL_NODE_NUM_KEYS_OFFSET: .long 6 ; 0x6 .globl _INTERNAL_NODE_RIGHT_CHILD_SIZE ; @INTERNAL_NODE_RIGHT_CHILD_SIZE .p2align 2 _INTERNAL_NODE_RIGHT_CHILD_SIZE: .long 4 ; 0x4 .globl _INTERNAL_NODE_RIGHT_CHILD_OFFSET ; @INTERNAL_NODE_RIGHT_CHILD_OFFSET .p2align 2 _INTERNAL_NODE_RIGHT_CHILD_OFFSET: .long 10 ; 0xa .globl _INTERNAL_NODE_HEADER_SIZE ; @INTERNAL_NODE_HEADER_SIZE .p2align 2 _INTERNAL_NODE_HEADER_SIZE: .long 14 ; 0xe .globl _INTERNAL_NODE_KEY_SIZE ; @INTERNAL_NODE_KEY_SIZE .p2align 2 _INTERNAL_NODE_KEY_SIZE: .long 4 ; 0x4 .globl _INTERNAL_NODE_CHILD_SIZE ; @INTERNAL_NODE_CHILD_SIZE .p2align 2 _INTERNAL_NODE_CHILD_SIZE: .long 4 ; 0x4 .globl _INTERNAL_NODE_CELL_SIZE ; @INTERNAL_NODE_CELL_SIZE .p2align 2 _INTERNAL_NODE_CELL_SIZE: .long 8 ; 0x8 .globl _INTERNAL_NODE_MAX_CELLS ; @INTERNAL_NODE_MAX_CELLS .p2align 2 _INTERNAL_NODE_MAX_CELLS: .long 3 ; 0x3 .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Tried to access child_num %d > num_keys %d\n" l_.str.1: ; @.str.1 .asciz "Need to implement splitting internal node\n" l_.str.2: ; @.str.2 .asciz "Tried to fetch page number out of bounds. %d > %d\n" l_.str.3: ; @.str.3 .asciz "Error reading file.\n" l_.str.4: ; @.str.4 .asciz "Tried to flush null page.\n" l_.str.5: ; @.str.5 .asciz "Error seeking.\n" l_.str.6: ; @.str.6 .asciz "Error writing.\n" l_.str.7: ; @.str.7 .asciz "Error closing db file.\n" l_.str.8: ; @.str.8 .asciz "db > " l_.str.9: ; @.str.9 .asciz "(%d, %s, %s)\n" l_.str.10: ; @.str.10 .asciz "Unable to open file.\n" l_.str.11: ; @.str.11 .asciz "Db file is not a whole number of pages. Corrupt file.\n" l_.str.12: ; @.str.12 .asciz "Error reading input\n" l_.str.13: ; @.str.13 .asciz "ROW_SIZE: %d\n" l_.str.14: ; @.str.14 .asciz "COMMON_NODE_HEADER_SIZE: %d\n" l_.str.15: ; @.str.15 .asciz "LEAF_NODE_HEADER_SIZE: %d\n" l_.str.16: ; @.str.16 .asciz "LEAF_NODE_CELL_SIZE: %d\n" l_.str.17: ; @.str.17 .asciz "LEAF_NODE_SPACE_FOR_CELLS: %d\n" l_.str.18: ; @.str.18 .asciz "LEAF_NODE_MAX_CELLS: %d\n" l_.str.19: ; @.str.19 .asciz " " l_.str.20: ; @.str.20 .asciz "- leaf (size %d)\n" l_.str.21: ; @.str.21 .asciz "- %d\n" l_.str.22: ; @.str.22 .asciz "- internal (size %d)\n" l_.str.23: ; @.str.23 .asciz "- key %d\n" l_.str.24: ; @.str.24 .asciz ".exit" l_.str.25: ; @.str.25 .asciz ".btree" l_.str.26: ; @.str.26 .asciz "Tree:\n" l_.str.27: ; @.str.27 .asciz ".constants" l_.str.28: ; @.str.28 .asciz "Constants: \n" l_.str.29: ; @.str.29 .asciz " " l_.str.30: ; @.str.30 .asciz "insert" l_.str.31: ; @.str.31 .asciz "select" l_.str.32: ; @.str.32 .asciz "Must supply a database filename.\n" l_.str.33: ; @.str.33 .asciz "Unrecognized command: '%s'.\n" l_.str.34: ; @.str.34 .asciz "String is too long.\n" l_.str.35: ; @.str.35 .asciz "ID must be positive.\n" l_.str.36: ; @.str.36 .asciz "Syntax error. Could not parse statement.\n" l_.str.37: ; @.str.37 .asciz "Unrecognized statement:'%s'.\n" l_.str.38: ; @.str.38 .asciz "Executed.\n" l_.str.39: ; @.str.39 .asciz "Error: Duplicate key.\n" l_.str.40: ; @.str.40 .asciz "Error: Table Full.\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _leaf_node_insert ## -- Begin function leaf_node_insert .p2align 4, 0x90 _leaf_node_insert: ## @leaf_node_insert .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $64, %rsp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) movq %rdx, -24(%rbp) movq -8(%rbp), %rax movq (%rax), %rax movq (%rax), %rdi movq -8(%rbp), %rax movl 8(%rax), %esi callq _get_page movq %rax, -32(%rbp) movq -32(%rbp), %rdi callq _leaf_node_num_cells movl (%rax), %eax movl %eax, -36(%rbp) cmpl $13, -36(%rbp) jb LBB0_2 ## %bb.1: movq -8(%rbp), %rdi movl -12(%rbp), %esi movq -24(%rbp), %rdx callq _leaf_node_split_and_insert jmp LBB0_9 LBB0_2: movq -8(%rbp), %rax movl 12(%rax), %eax cmpl -36(%rbp), %eax jae LBB0_8 ## %bb.3: movl -36(%rbp), %eax movl %eax, -40(%rbp) LBB0_4: ## =>This Inner Loop Header: Depth=1 movl -40(%rbp), %eax movq -8(%rbp), %rcx cmpl 12(%rcx), %eax jbe LBB0_7 ## %bb.5: ## in Loop: Header=BB0_4 Depth=1 movq -32(%rbp), %rdi movl -40(%rbp), %esi callq _leaf_node_cell movq %rax, -48(%rbp) ## 8-byte Spill movq -32(%rbp), %rdi movl -40(%rbp), %esi subl $1, %esi callq _leaf_node_cell movq -48(%rbp), %rdi ## 8-byte Reload movq %rax, %rsi movl $297, %edx ## imm = 0x129 callq _memcpy ## %bb.6: ## in Loop: Header=BB0_4 Depth=1 movl -40(%rbp), %eax addl $-1, %eax movl %eax, -40(%rbp) jmp LBB0_4 LBB0_7: jmp LBB0_8 LBB0_8: movq -32(%rbp), %rdi callq _leaf_node_num_cells movl (%rax), %ecx addl $1, %ecx movl %ecx, (%rax) movl -12(%rbp), %eax movl %eax, -60(%rbp) ## 4-byte Spill movq -32(%rbp), %rdi movq -8(%rbp), %rax movl 12(%rax), %esi callq _leaf_node_key movl -60(%rbp), %ecx ## 4-byte Reload movl %ecx, (%rax) movq -24(%rbp), %rax movq %rax, -56(%rbp) ## 8-byte Spill movq -32(%rbp), %rdi movq -8(%rbp), %rax movl 12(%rax), %esi callq _leaf_node_value movq -56(%rbp), %rdi ## 8-byte Reload movq %rax, %rsi callq _serialize_row LBB0_9: addq $64, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _get_page ## -- Begin function get_page .p2align 4, 0x90 _get_page: ## @get_page .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) cmpl $100, -12(%rbp) jbe LBB1_2 ## %bb.1: movl -12(%rbp), %esi leaq L_.str.2(%rip), %rdi xorl %eax, %eax ## kill: def $al killed $al killed $eax movl $100, %edx callq _printf movl $1, %edi callq _exit LBB1_2: movq -8(%rbp), %rax movl -12(%rbp), %ecx ## kill: def $rcx killed $ecx cmpq $0, 16(%rax,%rcx,8) jne LBB1_12 ## %bb.3: movl $4, %edi callq _malloc movq %rax, -24(%rbp) movq -8(%rbp), %rax movl 4(%rax), %eax shrl $12, %eax movl %eax, -28(%rbp) movq -8(%rbp), %rax movl 4(%rax), %eax andl $4095, %eax ## imm = 0xFFF cmpl $0, %eax je LBB1_5 ## %bb.4: movl -28(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) LBB1_5: movl -12(%rbp), %eax cmpl -28(%rbp), %eax jae LBB1_9 ## %bb.6: movq -8(%rbp), %rax movl (%rax), %edi movl -12(%rbp), %eax shll $12, %eax movl %eax, %eax movl %eax, %esi xorl %edx, %edx callq _lseek movq -8(%rbp), %rax movl (%rax), %edi movq -24(%rbp), %rsi movl $4096, %edx ## imm = 0x1000 callq _read movq %rax, -40(%rbp) cmpq $-1, -40(%rbp) jne LBB1_8 ## %bb.7: callq ___error movl (%rax), %esi leaq L_.str.3(%rip), %rdi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _printf movl $1, %edi callq _exit LBB1_8: jmp LBB1_9 LBB1_9: movq -24(%rbp), %rdx movq -8(%rbp), %rax movl -12(%rbp), %ecx ## kill: def $rcx killed $ecx movq %rdx, 16(%rax,%rcx,8) movl -12(%rbp), %eax movq -8(%rbp), %rcx cmpl 8(%rcx), %eax jb LBB1_11 ## %bb.10: movl -12(%rbp), %ecx addl $1, %ecx movq -8(%rbp), %rax movl %ecx, 8(%rax) LBB1_11: jmp LBB1_12 LBB1_12: movq -8(%rbp), %rax movl -12(%rbp), %ecx ## kill: def $rcx killed $ecx movq 16(%rax,%rcx,8), %rax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _leaf_node_num_cells ## -- Begin function leaf_node_num_cells .p2align 4, 0x90 _leaf_node_num_cells: ## @leaf_node_num_cells .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 addq $6, %rax popq %rbp retq .cfi_endproc ## -- End function .globl _leaf_node_split_and_insert ## -- Begin function leaf_node_split_and_insert .p2align 4, 0x90 _leaf_node_split_and_insert: ## @leaf_node_split_and_insert .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $144, %rsp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) movq %rdx, -24(%rbp) movq -8(%rbp), %rax movq (%rax), %rax movq (%rax), %rdi movq -8(%rbp), %rax movl 8(%rax), %esi callq _get_page movq %rax, -32(%rbp) movq -32(%rbp), %rdi callq _get_node_max_key movl %eax, -36(%rbp) movq -8(%rbp), %rax movq (%rax), %rax movq (%rax), %rdi callq _get_unused_page_num movl %eax, -40(%rbp) movq -8(%rbp), %rax movq (%rax), %rax movq (%rax), %rdi movl -40(%rbp), %esi callq _get_page movq %rax, -48(%rbp) movq -48(%rbp), %rdi callq _initialize_leaf_node movq -32(%rbp), %rdi callq _node_parent movl (%rax), %eax movl %eax, -108(%rbp) ## 4-byte Spill movq -48(%rbp), %rdi callq _node_parent movl -108(%rbp), %ecx ## 4-byte Reload movl %ecx, (%rax) movq -32(%rbp), %rdi callq _leaf_node_next_leaf movl (%rax), %eax movl %eax, -104(%rbp) ## 4-byte Spill movq -48(%rbp), %rdi callq _leaf_node_next_leaf movl -104(%rbp), %ecx ## 4-byte Reload movl %ecx, (%rax) movl -40(%rbp), %eax movl %eax, -100(%rbp) ## 4-byte Spill movq -32(%rbp), %rdi callq _leaf_node_next_leaf movl -100(%rbp), %ecx ## 4-byte Reload movl %ecx, (%rax) movl $13, -52(%rbp) LBB3_1: ## =>This Inner Loop Header: Depth=1 cmpl $0, -52(%rbp) jl LBB3_13 ## %bb.2: ## in Loop: Header=BB3_1 Depth=1 cmpl $7, -52(%rbp) jb LBB3_4 ## %bb.3: ## in Loop: Header=BB3_1 Depth=1 movq -48(%rbp), %rax movq %rax, -64(%rbp) jmp LBB3_5 LBB3_4: ## in Loop: Header=BB3_1 Depth=1 movq -32(%rbp), %rax movq %rax, -64(%rbp) LBB3_5: ## in Loop: Header=BB3_1 Depth=1 movl -52(%rbp), %eax movl $7, %ecx xorl %edx, %edx divl %ecx movl %edx, -68(%rbp) movq -64(%rbp), %rdi movl -68(%rbp), %esi callq _leaf_node_cell movq %rax, -80(%rbp) movl -52(%rbp), %eax movq -8(%rbp), %rcx cmpl 12(%rcx), %eax jne LBB3_7 ## %bb.6: ## in Loop: Header=BB3_1 Depth=1 movq -24(%rbp), %rax movq %rax, -120(%rbp) ## 8-byte Spill movq -64(%rbp), %rdi movl -68(%rbp), %esi callq _leaf_node_value movq -120(%rbp), %rdi ## 8-byte Reload movq %rax, %rsi callq _serialize_row movl -12(%rbp), %eax movl %eax, -112(%rbp) ## 4-byte Spill movq -64(%rbp), %rdi movl -68(%rbp), %esi callq _leaf_node_key movl -112(%rbp), %ecx ## 4-byte Reload movl %ecx, (%rax) jmp LBB3_11 LBB3_7: ## in Loop: Header=BB3_1 Depth=1 movl -52(%rbp), %eax movq -8(%rbp), %rcx cmpl 12(%rcx), %eax jbe LBB3_9 ## %bb.8: ## in Loop: Header=BB3_1 Depth=1 movq -80(%rbp), %rax movq %rax, -128(%rbp) ## 8-byte Spill movq -32(%rbp), %rdi movl -52(%rbp), %esi subl $1, %esi callq _leaf_node_cell movq -128(%rbp), %rdi ## 8-byte Reload movq %rax, %rsi movl $297, %edx ## imm = 0x129 movq $-1, %rcx callq ___memcpy_chk jmp LBB3_10 LBB3_9: ## in Loop: Header=BB3_1 Depth=1 movq -80(%rbp), %rax movq %rax, -136(%rbp) ## 8-byte Spill movq -32(%rbp), %rdi movl -52(%rbp), %esi callq _leaf_node_cell movq -136(%rbp), %rdi ## 8-byte Reload movq %rax, %rsi movl $297, %edx ## imm = 0x129 movq $-1, %rcx callq ___memcpy_chk LBB3_10: ## in Loop: Header=BB3_1 Depth=1 jmp LBB3_11 LBB3_11: ## in Loop: Header=BB3_1 Depth=1 jmp LBB3_12 LBB3_12: ## in Loop: Header=BB3_1 Depth=1 movl -52(%rbp), %eax addl $-1, %eax movl %eax, -52(%rbp) jmp LBB3_1 LBB3_13: movq -32(%rbp), %rdi callq _leaf_node_num_cells movl $7, (%rax) movq -48(%rbp), %rdi callq _leaf_node_num_cells movl $7, (%rax) movq -32(%rbp), %rdi callq _is_node_root testb $1, %al jne LBB3_14 jmp LBB3_15 LBB3_14: movq -8(%rbp), %rax movq (%rax), %rdi movl -40(%rbp), %esi callq _create_new_root jmp LBB3_16 LBB3_15: movq -32(%rbp), %rdi callq _node_parent movl (%rax), %eax movl %eax, -84(%rbp) movq -32(%rbp), %rdi callq _get_node_max_key movl %eax, -88(%rbp) movq -8(%rbp), %rax movq (%rax), %rax movq (%rax), %rdi movl -84(%rbp), %esi callq _get_page movq %rax, -96(%rbp) movq -96(%rbp), %rdi movl -36(%rbp), %esi movl -88(%rbp), %edx callq _update_internal_node_key movq -8(%rbp), %rax movq (%rax), %rdi movl -84(%rbp), %esi movl -40(%rbp), %edx callq _internal_node_insert LBB3_16: addq $144, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _leaf_node_cell ## -- Begin function leaf_node_cell .p2align 4, 0x90 _leaf_node_cell: ## @leaf_node_cell .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 addq $14, %rax imull $297, -12(%rbp), %ecx ## imm = 0x129 movl %ecx, %ecx ## kill: def $rcx killed $ecx addq %rcx, %rax popq %rbp retq .cfi_endproc ## -- End function .globl _leaf_node_key ## -- Begin function leaf_node_key .p2align 4, 0x90 _leaf_node_key: ## @leaf_node_key .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) movq -8(%rbp), %rdi movl -12(%rbp), %esi callq _leaf_node_cell addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _serialize_row ## -- Begin function serialize_row .p2align 4, 0x90 _serialize_row: ## @serialize_row .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) movq -16(%rbp), %rdi movq -8(%rbp), %rsi movl $4, %edx movq $-1, %rcx callq ___memcpy_chk movq -16(%rbp), %rdi addq $4, %rdi movq -8(%rbp), %rsi addq $4, %rsi movl $33, %edx movq $-1, %rcx callq ___memcpy_chk movq -16(%rbp), %rdi addq $37, %rdi movq -8(%rbp), %rsi addq $37, %rsi movl $256, %edx ## imm = 0x100 movq $-1, %rcx callq ___memcpy_chk addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _leaf_node_value ## -- Begin function leaf_node_value .p2align 4, 0x90 _leaf_node_value: ## @leaf_node_value .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) movq -8(%rbp), %rdi movl -12(%rbp), %esi callq _leaf_node_cell addq $4, %rax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _initialize_leaf_node ## -- Begin function initialize_leaf_node .p2align 4, 0x90 _initialize_leaf_node: ## @initialize_leaf_node .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) movq -8(%rbp), %rdi movl $1, %esi callq _set_node_type movq -8(%rbp), %rdi xorl %esi, %esi callq _set_node_root movq -8(%rbp), %rdi callq _leaf_node_num_cells movl $0, (%rax) movq -8(%rbp), %rdi callq _leaf_node_next_leaf addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _set_node_type ## -- Begin function set_node_type .p2align 4, 0x90 _set_node_type: ## @set_node_type .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 -12(%rbp), %eax ## kill: def $al killed $al killed $eax movb %al, -13(%rbp) movb -13(%rbp), %cl movq -8(%rbp), %rax movb %cl, (%rax) popq %rbp retq .cfi_endproc ## -- End function .globl _set_node_root ## -- Begin function set_node_root .p2align 4, 0x90 _set_node_root: ## @set_node_root .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) andb $1, %al movb %al, -9(%rbp) movb -9(%rbp), %al andb $1, %al movb %al, -10(%rbp) movb -10(%rbp), %cl movq -8(%rbp), %rax movb %cl, 1(%rax) popq %rbp retq .cfi_endproc ## -- End function .globl _leaf_node_next_leaf ## -- Begin function leaf_node_next_leaf .p2align 4, 0x90 _leaf_node_next_leaf: ## @leaf_node_next_leaf .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 addq $10, %rax popq %rbp retq .cfi_endproc ## -- End function .globl _table_start ## -- Begin function table_start .p2align 4, 0x90 _table_start: ## @table_start .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movq -8(%rbp), %rdi xorl %esi, %esi callq _table_find movq %rax, -16(%rbp) movq -8(%rbp), %rax movq (%rax), %rdi movq -16(%rbp), %rax movl 8(%rax), %esi callq _get_page movq %rax, -24(%rbp) movq -24(%rbp), %rdi callq _leaf_node_num_cells movl (%rax), %eax movl %eax, -28(%rbp) cmpl $0, -28(%rbp) sete %cl movq -16(%rbp), %rax andb $1, %cl movb %cl, 16(%rax) movq -16(%rbp), %rax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _table_find ## -- Begin function table_find .p2align 4, 0x90 _table_find: ## @table_find .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -16(%rbp) movl %esi, -20(%rbp) movq -16(%rbp), %rax movl 8(%rax), %eax movl %eax, -24(%rbp) movq -16(%rbp), %rax movq (%rax), %rdi movl -24(%rbp), %esi callq _get_page movq %rax, -32(%rbp) movq -32(%rbp), %rdi callq _get_node_type cmpl $1, %eax jne LBB13_2 ## %bb.1: movq -16(%rbp), %rdi movl -24(%rbp), %esi movl -20(%rbp), %edx callq _leaf_node_find movq %rax, -8(%rbp) jmp LBB13_3 LBB13_2: movq -16(%rbp), %rdi movl -24(%rbp), %esi movl -20(%rbp), %edx callq _internal_node_find movq %rax, -8(%rbp) LBB13_3: movq -8(%rbp), %rax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _get_node_type ## -- Begin function get_node_type .p2align 4, 0x90 _get_node_type: ## @get_node_type .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 movb (%rax), %al movb %al, -9(%rbp) movzbl -9(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .globl _leaf_node_find ## -- Begin function leaf_node_find .p2align 4, 0x90 _leaf_node_find: ## @leaf_node_find .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) movq -16(%rbp), %rax movq (%rax), %rdi movl -20(%rbp), %esi callq _get_page movq %rax, -32(%rbp) movq -32(%rbp), %rdi callq _leaf_node_num_cells movl (%rax), %eax movl %eax, -36(%rbp) movl $24, %edi callq _malloc movq %rax, -48(%rbp) movq -16(%rbp), %rcx movq -48(%rbp), %rax movq %rcx, (%rax) movl -20(%rbp), %ecx movq -48(%rbp), %rax movl %ecx, 8(%rax) movl $0, -52(%rbp) movl -36(%rbp), %eax movl %eax, -56(%rbp) LBB15_1: ## =>This Inner Loop Header: Depth=1 movl -56(%rbp), %eax cmpl -52(%rbp), %eax je LBB15_8 ## %bb.2: ## in Loop: Header=BB15_1 Depth=1 movl -52(%rbp), %eax addl -56(%rbp), %eax shrl $1, %eax movl %eax, -60(%rbp) movq -32(%rbp), %rdi movl -60(%rbp), %esi callq _leaf_node_key movl (%rax), %eax movl %eax, -64(%rbp) movl -24(%rbp), %eax cmpl -64(%rbp), %eax jne LBB15_4 ## %bb.3: movl -60(%rbp), %ecx movq -48(%rbp), %rax movl %ecx, 12(%rax) movq -48(%rbp), %rax movq %rax, -8(%rbp) jmp LBB15_9 LBB15_4: ## in Loop: Header=BB15_1 Depth=1 movl -24(%rbp), %eax cmpl -64(%rbp), %eax jae LBB15_6 ## %bb.5: ## in Loop: Header=BB15_1 Depth=1 movl -52(%rbp), %eax movl %eax, -56(%rbp) jmp LBB15_7 LBB15_6: ## in Loop: Header=BB15_1 Depth=1 movl -60(%rbp), %eax addl $1, %eax movl %eax, -52(%rbp) LBB15_7: ## in Loop: Header=BB15_1 Depth=1 jmp LBB15_1 LBB15_8: movl -52(%rbp), %ecx movq -48(%rbp), %rax movl %ecx, 12(%rax) movq -48(%rbp), %rax movq %rax, -8(%rbp) LBB15_9: movq -8(%rbp), %rax addq $64, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _internal_node_find ## -- Begin function internal_node_find .p2align 4, 0x90 _internal_node_find: ## @internal_node_find .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) movl %esi, -20(%rbp) movl %edx, -24(%rbp) movq -16(%rbp), %rax movq (%rax), %rdi movl -20(%rbp), %esi callq _get_page movq %rax, -32(%rbp) movq -32(%rbp), %rdi callq _internal_node_num_keys movl (%rax), %eax movl %eax, -36(%rbp) movl $0, -40(%rbp) movl -36(%rbp), %eax movl %eax, -44(%rbp) LBB16_1: ## =>This Inner Loop Header: Depth=1 movl -40(%rbp), %eax cmpl -44(%rbp), %eax je LBB16_6 ## %bb.2: ## in Loop: Header=BB16_1 Depth=1 movl -40(%rbp), %eax addl -44(%rbp), %eax shrl $1, %eax movl %eax, -48(%rbp) movq -32(%rbp), %rdi movl -48(%rbp), %esi callq _internal_node_key movl (%rax), %eax movl %eax, -52(%rbp) movl -52(%rbp), %eax cmpl -24(%rbp), %eax jb LBB16_4 ## %bb.3: ## in Loop: Header=BB16_1 Depth=1 movl -48(%rbp), %eax movl %eax, -44(%rbp) jmp LBB16_5 LBB16_4: ## in Loop: Header=BB16_1 Depth=1 movl -48(%rbp), %eax addl $1, %eax movl %eax, -40(%rbp) LBB16_5: ## in Loop: Header=BB16_1 Depth=1 jmp LBB16_1 LBB16_6: movq -32(%rbp), %rdi movl -24(%rbp), %esi callq _internal_node_find_child movl %eax, -56(%rbp) movq -32(%rbp), %rdi movl -56(%rbp), %esi callq _internal_node_child movl (%rax), %eax movl %eax, -60(%rbp) movq -16(%rbp), %rax movq (%rax), %rdi movl -60(%rbp), %esi callq _get_page movq %rax, -72(%rbp) movq -72(%rbp), %rdi callq _get_node_type movl %eax, %ecx movl %ecx, -76(%rbp) ## 4-byte Spill testl %eax, %eax je LBB16_8 jmp LBB16_10 LBB16_10: movl -76(%rbp), %eax ## 4-byte Reload subl $1, %eax jne LBB16_9 jmp LBB16_7 LBB16_7: movq -16(%rbp), %rdi movl -60(%rbp), %esi movl -24(%rbp), %edx callq _leaf_node_find movq %rax, -8(%rbp) jmp LBB16_9 LBB16_8: movq -16(%rbp), %rdi movl -60(%rbp), %esi movl -24(%rbp), %edx callq _internal_node_find movq %rax, -8(%rbp) LBB16_9: movq -8(%rbp), %rax addq $80, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _internal_node_num_keys ## -- Begin function internal_node_num_keys .p2align 4, 0x90 _internal_node_num_keys: ## @internal_node_num_keys .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 addq $6, %rax popq %rbp retq .cfi_endproc ## -- End function .globl _internal_node_key ## -- Begin function internal_node_key .p2align 4, 0x90 _internal_node_key: ## @internal_node_key .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) movq -8(%rbp), %rdi movl -12(%rbp), %esi callq _internal_node_cell addq $4, %rax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _internal_node_find_child ## -- Begin function internal_node_find_child .p2align 4, 0x90 _internal_node_find_child: ## @internal_node_find_child .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) movq -8(%rbp), %rdi callq _internal_node_num_keys movl (%rax), %eax movl %eax, -16(%rbp) movl $0, -20(%rbp) movl -16(%rbp), %eax movl %eax, -24(%rbp) LBB19_1: ## =>This Inner Loop Header: Depth=1 movl -20(%rbp), %eax cmpl -24(%rbp), %eax je LBB19_6 ## %bb.2: ## in Loop: Header=BB19_1 Depth=1 movl -20(%rbp), %eax addl -24(%rbp), %eax shrl $1, %eax movl %eax, -28(%rbp) movq -8(%rbp), %rdi movl -28(%rbp), %esi callq _internal_node_key movl (%rax), %eax movl %eax, -32(%rbp) movl -32(%rbp), %eax cmpl -12(%rbp), %eax jb LBB19_4 ## %bb.3: ## in Loop: Header=BB19_1 Depth=1 movl -28(%rbp), %eax movl %eax, -24(%rbp) jmp LBB19_5 LBB19_4: ## in Loop: Header=BB19_1 Depth=1 movl -28(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) LBB19_5: ## in Loop: Header=BB19_1 Depth=1 jmp LBB19_1 LBB19_6: movl -20(%rbp), %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _internal_node_child ## -- Begin function internal_node_child .p2align 4, 0x90 _internal_node_child: ## @internal_node_child .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -16(%rbp) movl %esi, -20(%rbp) movq -16(%rbp), %rdi callq _internal_node_num_keys movl (%rax), %eax movl %eax, -24(%rbp) movl -20(%rbp), %eax cmpl -24(%rbp), %eax jbe LBB20_2 ## %bb.1: movl -20(%rbp), %esi movl -24(%rbp), %edx leaq L_.str(%rip), %rdi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _printf movl $1, %edi callq _exit LBB20_2: movl -20(%rbp), %eax cmpl -24(%rbp), %eax jne LBB20_4 ## %bb.3: movq -16(%rbp), %rdi callq _internal_node_right_child movq %rax, -8(%rbp) jmp LBB20_5 LBB20_4: movq -16(%rbp), %rdi movl -20(%rbp), %esi callq _internal_node_cell movq %rax, -8(%rbp) LBB20_5: movq -8(%rbp), %rax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _get_node_max_key ## -- Begin function get_node_max_key .p2align 4, 0x90 _get_node_max_key: ## @get_node_max_key .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 -16(%rbp), %rdi callq _get_node_type movl %eax, %ecx movl %ecx, -20(%rbp) ## 4-byte Spill testl %eax, %eax je LBB21_1 jmp LBB21_4 LBB21_4: movl -20(%rbp), %eax ## 4-byte Reload subl $1, %eax je LBB21_2 jmp LBB21_3 LBB21_1: movq -16(%rbp), %rax movq %rax, -32(%rbp) ## 8-byte Spill movq -16(%rbp), %rdi callq _internal_node_num_keys movq -32(%rbp), %rdi ## 8-byte Reload movl (%rax), %esi subl $1, %esi callq _internal_node_key movl (%rax), %eax movl %eax, -4(%rbp) jmp LBB21_3 LBB21_2: movq -16(%rbp), %rax movq %rax, -40(%rbp) ## 8-byte Spill movq -16(%rbp), %rdi callq _leaf_node_num_cells movq -40(%rbp), %rdi ## 8-byte Reload movl (%rax), %esi subl $1, %esi callq _leaf_node_key movl (%rax), %eax movl %eax, -4(%rbp) LBB21_3: movl -4(%rbp), %eax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _get_unused_page_num ## -- Begin function get_unused_page_num .p2align 4, 0x90 _get_unused_page_num: ## @get_unused_page_num .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 8(%rax), %eax popq %rbp retq .cfi_endproc ## -- End function .globl _node_parent ## -- Begin function node_parent .p2align 4, 0x90 _node_parent: ## @node_parent .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 addq $2, %rax popq %rbp retq .cfi_endproc ## -- End function .globl _is_node_root ## -- Begin function is_node_root .p2align 4, 0x90 _is_node_root: ## @is_node_root .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 movb 1(%rax), %al movb %al, -9(%rbp) cmpb $0, -9(%rbp) setne %al andb $1, %al movzbl %al, %eax popq %rbp retq .cfi_endproc ## -- End function .globl _create_new_root ## -- Begin function create_new_root .p2align 4, 0x90 _create_new_root: ## @create_new_root .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $64, %rsp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) movq -8(%rbp), %rax movq (%rax), %rdi movq -8(%rbp), %rax movl 8(%rax), %esi callq _get_page movq %rax, -24(%rbp) movq -8(%rbp), %rax movq (%rax), %rdi movl -12(%rbp), %esi callq _get_page movq %rax, -32(%rbp) movq -8(%rbp), %rax movq (%rax), %rdi callq _get_unused_page_num movl %eax, -36(%rbp) movq -8(%rbp), %rax movq (%rax), %rdi movl -36(%rbp), %esi callq _get_page movq %rax, -48(%rbp) movq -48(%rbp), %rdi movq -24(%rbp), %rsi movl $4096, %edx ## imm = 0x1000 movq $-1, %rcx callq ___memcpy_chk movq -48(%rbp), %rdi xorl %esi, %esi callq _set_node_root movq -24(%rbp), %rdi callq _initialize_internal_node movq -24(%rbp), %rdi movl $1, %esi callq _set_node_root movq -24(%rbp), %rdi callq _internal_node_num_keys movl $1, (%rax) movl -36(%rbp), %eax movl %eax, -64(%rbp) ## 4-byte Spill movq -24(%rbp), %rdi xorl %esi, %esi callq _internal_node_child movl -64(%rbp), %ecx ## 4-byte Reload movl %ecx, (%rax) movq -48(%rbp), %rdi callq _get_node_max_key movl %eax, -52(%rbp) movl -52(%rbp), %eax movl %eax, -60(%rbp) ## 4-byte Spill movq -24(%rbp), %rdi xorl %esi, %esi callq _internal_node_key movl -60(%rbp), %ecx ## 4-byte Reload movl %ecx, (%rax) movl -12(%rbp), %eax movl %eax, -56(%rbp) ## 4-byte Spill movq -24(%rbp), %rdi callq _internal_node_right_child movl -56(%rbp), %ecx ## 4-byte Reload movl %ecx, (%rax) addq $64, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _update_internal_node_key ## -- Begin function update_internal_node_key .p2align 4, 0x90 _update_internal_node_key: ## @update_internal_node_key .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) movl %edx, -16(%rbp) movq -8(%rbp), %rdi movl -12(%rbp), %esi callq _internal_node_find_child movl %eax, -20(%rbp) movl -16(%rbp), %eax movl %eax, -24(%rbp) ## 4-byte Spill movq -8(%rbp), %rdi movl -20(%rbp), %esi callq _internal_node_key movl -24(%rbp), %ecx ## 4-byte Reload movl %ecx, (%rax) addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _internal_node_insert ## -- Begin function internal_node_insert .p2align 4, 0x90 _internal_node_insert: ## @internal_node_insert .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) movl %edx, -16(%rbp) movq -8(%rbp), %rax movq (%rax), %rdi movl -12(%rbp), %esi callq _get_page movq %rax, -24(%rbp) movq -8(%rbp), %rax movq (%rax), %rdi movl -16(%rbp), %esi callq _get_page movq %rax, -32(%rbp) movq -32(%rbp), %rdi callq _get_node_max_key movl %eax, -36(%rbp) movq -24(%rbp), %rdi movl -36(%rbp), %esi callq _internal_node_find_child movl %eax, -40(%rbp) movq -24(%rbp), %rdi callq _internal_node_num_keys movl (%rax), %eax movl %eax, -44(%rbp) movl -44(%rbp), %eax addl $1, %eax movl %eax, -48(%rbp) ## 4-byte Spill movq -24(%rbp), %rdi callq _internal_node_num_keys movl -48(%rbp), %ecx ## 4-byte Reload movl %ecx, (%rax) cmpl $3, -44(%rbp) jb LBB27_2 ## %bb.1: leaq L_.str.1(%rip), %rdi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _printf movl $1, %edi callq _exit LBB27_2: addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _initialize_internal_node ## -- Begin function initialize_internal_node .p2align 4, 0x90 _initialize_internal_node: ## @initialize_internal_node .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) movq -8(%rbp), %rdi xorl %esi, %esi callq _set_node_type movq -8(%rbp), %rdi xorl %esi, %esi callq _set_node_root movq -8(%rbp), %rdi callq _internal_node_num_keys movl $0, (%rax) addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _internal_node_right_child ## -- Begin function internal_node_right_child .p2align 4, 0x90 _internal_node_right_child: ## @internal_node_right_child .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 addq $10, %rax popq %rbp retq .cfi_endproc ## -- End function .globl _internal_node_cell ## -- Begin function internal_node_cell .p2align 4, 0x90 _internal_node_cell: ## @internal_node_cell .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 addq $14, %rax movl -12(%rbp), %ecx shll $3, %ecx movl %ecx, %ecx ## kill: def $rcx killed $ecx addq %rcx, %rax popq %rbp retq .cfi_endproc ## -- End function .globl _cursor_value ## -- Begin function cursor_value .p2align 4, 0x90 _cursor_value: ## @cursor_value .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movq -8(%rbp), %rax movl 8(%rax), %eax movl %eax, -12(%rbp) movq -8(%rbp), %rax movq (%rax), %rax movq (%rax), %rdi movl -12(%rbp), %esi callq _get_page movq %rax, -24(%rbp) movq -24(%rbp), %rdi movq -8(%rbp), %rax movl 12(%rax), %esi callq _leaf_node_cell addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _cursor_advance ## -- Begin function cursor_advance .p2align 4, 0x90 _cursor_advance: ## @cursor_advance .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movq -8(%rbp), %rax movl 8(%rax), %eax movl %eax, -12(%rbp) movq -8(%rbp), %rax movq (%rax), %rax movq (%rax), %rdi movl -12(%rbp), %esi callq _get_page movq %rax, -24(%rbp) movq -8(%rbp), %rax movl 12(%rax), %ecx addl $1, %ecx movl %ecx, 12(%rax) movq -8(%rbp), %rax movl 12(%rax), %eax movl %eax, -32(%rbp) ## 4-byte Spill movq -24(%rbp), %rdi callq _leaf_node_num_cells movq %rax, %rcx movl -32(%rbp), %eax ## 4-byte Reload cmpl (%rcx), %eax jb LBB32_5 ## %bb.1: movq -24(%rbp), %rdi callq _leaf_node_next_leaf movl (%rax), %eax movl %eax, -28(%rbp) cmpl $0, -28(%rbp) jne LBB32_3 ## %bb.2: movq -8(%rbp), %rax movb $1, 16(%rax) jmp LBB32_4 LBB32_3: movl -28(%rbp), %ecx movq -8(%rbp), %rax movl %ecx, 8(%rax) movq -8(%rbp), %rax movl $0, 12(%rax) LBB32_4: jmp LBB32_5 LBB32_5: addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _deserialize_row ## -- Begin function deserialize_row .p2align 4, 0x90 _deserialize_row: ## @deserialize_row .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) movq -16(%rbp), %rdi movq -8(%rbp), %rsi movl $4, %edx movq $-1, %rcx callq ___memcpy_chk movq -16(%rbp), %rdi addq $4, %rdi movq -8(%rbp), %rsi addq $4, %rsi movl $33, %edx movq $-1, %rcx callq ___memcpy_chk movq -16(%rbp), %rdi addq $37, %rdi movq -8(%rbp), %rsi addq $37, %rsi movl $256, %edx ## imm = 0x100 movq $-1, %rcx callq ___memcpy_chk addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _pager_flush ## -- Begin function pager_flush .p2align 4, 0x90 _pager_flush: ## @pager_flush .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) movq -8(%rbp), %rax movl -12(%rbp), %ecx ## kill: def $rcx killed $ecx cmpq $0, 16(%rax,%rcx,8) jne LBB34_2 ## %bb.1: leaq L_.str.4(%rip), %rdi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _printf movl $1, %edi callq _exit LBB34_2: movq -8(%rbp), %rax movl (%rax), %edi movl -12(%rbp), %eax shll $12, %eax movl %eax, %eax movl %eax, %esi xorl %edx, %edx callq _lseek movq %rax, -24(%rbp) cmpq $-1, -24(%rbp) jne LBB34_4 ## %bb.3: callq ___error movl (%rax), %esi leaq L_.str.5(%rip), %rdi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _printf movl $1, %edi callq _exit LBB34_4: movq -8(%rbp), %rax movl (%rax), %edi movq -8(%rbp), %rax movl -12(%rbp), %ecx ## kill: def $rcx killed $ecx movq 16(%rax,%rcx,8), %rsi movl $4096, %edx ## imm = 0x1000 callq _write movq %rax, -32(%rbp) cmpq $-1, -32(%rbp) jne LBB34_6 ## %bb.5: callq ___error movl (%rax), %esi leaq L_.str.6(%rip), %rdi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _printf movl $1, %edi callq _exit LBB34_6: addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _db_close ## -- Begin function db_close .p2align 4, 0x90 _db_close: ## @db_close .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), %rax movq (%rax), %rax movq %rax, -16(%rbp) movl $0, -20(%rbp) LBB35_1: ## =>This Inner Loop Header: Depth=1 movl -20(%rbp), %eax movq -16(%rbp), %rcx cmpl 8(%rcx), %eax jae LBB35_6 ## %bb.2: ## in Loop: Header=BB35_1 Depth=1 movq -16(%rbp), %rax movl -20(%rbp), %ecx ## kill: def $rcx killed $ecx cmpq $0, 16(%rax,%rcx,8) jne LBB35_4 ## %bb.3: ## in Loop: Header=BB35_1 Depth=1 jmp LBB35_5 LBB35_4: ## in Loop: Header=BB35_1 Depth=1 movq -16(%rbp), %rdi movl -20(%rbp), %esi callq _pager_flush LBB35_5: ## in Loop: Header=BB35_1 Depth=1 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB35_1 LBB35_6: movq -16(%rbp), %rax movl (%rax), %edi callq _close movl %eax, -24(%rbp) cmpl $-1, -24(%rbp) jne LBB35_8 ## %bb.7: leaq L_.str.7(%rip), %rdi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _printf movl $1, %edi callq _exit LBB35_8: movl $0, -28(%rbp) LBB35_9: ## =>This Inner Loop Header: Depth=1 cmpl $100, -28(%rbp) jae LBB35_14 ## %bb.10: ## in Loop: Header=BB35_9 Depth=1 movq -16(%rbp), %rax movl -28(%rbp), %ecx ## kill: def $rcx killed $ecx movq 16(%rax,%rcx,8), %rax movq %rax, -40(%rbp) cmpq $0, -40(%rbp) je LBB35_12 ## %bb.11: ## in Loop: Header=BB35_9 Depth=1 movq -40(%rbp), %rdi callq _free LBB35_12: ## in Loop: Header=BB35_9 Depth=1 jmp LBB35_13 LBB35_13: ## in Loop: Header=BB35_9 Depth=1 movl -28(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) jmp LBB35_9 LBB35_14: movq -16(%rbp), %rdi callq _free movq -8(%rbp), %rdi callq _free addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _print_prompt ## -- Begin function print_prompt .p2align 4, 0x90 _print_prompt: ## @print_prompt .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.8(%rip), %rdi movb $0, %al callq _printf popq %rbp retq .cfi_endproc ## -- End function .globl _print_row ## -- Begin function print_row .p2align 4, 0x90 _print_row: ## @print_row .cfi_startproc ## %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), %esi movq -8(%rbp), %rdx addq $4, %rdx movq -8(%rbp), %rcx addq $37, %rcx leaq L_.str.9(%rip), %rdi movb $0, %al callq _printf addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _new_input_buffer ## -- Begin function new_input_buffer .p2align 4, 0x90 _new_input_buffer: ## @new_input_buffer .cfi_startproc ## %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 $24, %edi callq _malloc movq %rax, -8(%rbp) movq -8(%rbp), %rax movq $0, (%rax) movq -8(%rbp), %rax movq $0, 8(%rax) movq -8(%rbp), %rax movq $0, 16(%rax) movq -8(%rbp), %rax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _pager_open ## -- Begin function pager_open .p2align 4, 0x90 _pager_open: ## @pager_open .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 movl $514, %esi ## imm = 0x202 movl $384, %edx ## imm = 0x180 movb $0, %al callq _open movl %eax, -12(%rbp) cmpl $-1, -12(%rbp) jne LBB39_2 ## %bb.1: leaq L_.str.10(%rip), %rdi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _printf movl $1, %edi callq _exit LBB39_2: movl -12(%rbp), %edi xorl %eax, %eax movl %eax, %esi movl $2, %edx callq _lseek movq %rax, -24(%rbp) movl $816, %edi ## imm = 0x330 callq _malloc movq %rax, -32(%rbp) movl -12(%rbp), %ecx movq -32(%rbp), %rax movl %ecx, (%rax) movq -24(%rbp), %rax movl %eax, %ecx movq -32(%rbp), %rax movl %ecx, 4(%rax) movq -24(%rbp), %rax movl $4096, %ecx ## imm = 0x1000 cqto idivq %rcx movl %eax, %ecx movq -32(%rbp), %rax movl %ecx, 8(%rax) movq -24(%rbp), %rax movl $4096, %ecx ## imm = 0x1000 cqto idivq %rcx cmpq $0, %rdx je LBB39_4 ## %bb.3: leaq L_.str.11(%rip), %rdi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _printf movl $1, %edi callq _exit LBB39_4: movl $0, -36(%rbp) LBB39_5: ## =>This Inner Loop Header: Depth=1 cmpl $100, -36(%rbp) jae LBB39_8 ## %bb.6: ## in Loop: Header=BB39_5 Depth=1 movq -32(%rbp), %rax movl -36(%rbp), %ecx ## kill: def $rcx killed $ecx movq $0, 16(%rax,%rcx,8) ## %bb.7: ## in Loop: Header=BB39_5 Depth=1 movl -36(%rbp), %eax addl $1, %eax movl %eax, -36(%rbp) jmp LBB39_5 LBB39_8: movq -32(%rbp), %rax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _db_open ## -- Begin function db_open .p2align 4, 0x90 _db_open: ## @db_open .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movq -8(%rbp), %rdi callq _pager_open movq %rax, -16(%rbp) movl $16, %edi callq _malloc movq %rax, -24(%rbp) movq -16(%rbp), %rcx movq -24(%rbp), %rax movq %rcx, (%rax) movq -24(%rbp), %rax movl $0, 8(%rax) movq -16(%rbp), %rax cmpl $0, 8(%rax) jne LBB40_2 ## %bb.1: movq -16(%rbp), %rdi xorl %esi, %esi callq _get_page movq %rax, -32(%rbp) movq -32(%rbp), %rdi callq _initialize_leaf_node movq -32(%rbp), %rdi movl $1, %esi callq _set_node_root LBB40_2: movq -24(%rbp), %rax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _read_input ## -- Begin function read_input .p2align 4, 0x90 _read_input: ## @read_input .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) movq -8(%rbp), %rdi movq -8(%rbp), %rsi addq $8, %rsi movq ___stdinp@GOTPCREL(%rip), %rax movq (%rax), %rdx callq _getline movq %rax, -16(%rbp) cmpq $0, -16(%rbp) jg LBB41_2 ## %bb.1: leaq L_.str.12(%rip), %rdi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _printf movl $1, %edi callq _exit LBB41_2: movq -16(%rbp), %rcx subq $1, %rcx movq -8(%rbp), %rax movq %rcx, 16(%rax) movq -8(%rbp), %rax movq (%rax), %rax movq -16(%rbp), %rcx subq $1, %rcx movb $0, (%rax,%rcx) addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _close_input_buffer ## -- Begin function close_input_buffer .p2align 4, 0x90 _close_input_buffer: ## @close_input_buffer .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) movq -8(%rbp), %rax movq (%rax), %rdi callq _free movq -8(%rbp), %rdi callq _free addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _print_constants ## -- Begin function print_constants .p2align 4, 0x90 _print_constants: ## @print_constants .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.13(%rip), %rdi movl $293, %esi ## imm = 0x125 movb $0, %al callq _printf leaq L_.str.14(%rip), %rdi movl $6, %esi movb $0, %al callq _printf leaq L_.str.15(%rip), %rdi movl $14, %esi movb $0, %al callq _printf leaq L_.str.16(%rip), %rdi movl $297, %esi ## imm = 0x129 movb $0, %al callq _printf leaq L_.str.17(%rip), %rdi movl $4082, %esi ## imm = 0xFF2 movb $0, %al callq _printf leaq L_.str.18(%rip), %rdi movl $13, %esi movb $0, %al callq _printf popq %rbp retq .cfi_endproc ## -- End function .globl _indent ## -- Begin function indent .p2align 4, 0x90 _indent: ## @indent .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl %edi, -4(%rbp) movl $0, -8(%rbp) LBB44_1: ## =>This Inner Loop Header: Depth=1 movl -8(%rbp), %eax cmpl -4(%rbp), %eax jae LBB44_4 ## %bb.2: ## in Loop: Header=BB44_1 Depth=1 leaq L_.str.19(%rip), %rdi movb $0, %al callq _printf ## %bb.3: ## in Loop: Header=BB44_1 Depth=1 movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) jmp LBB44_1 LBB44_4: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _print_tree ## -- Begin function print_tree .p2align 4, 0x90 _print_tree: ## @print_tree .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) movl %edx, -16(%rbp) movq -8(%rbp), %rdi movl -12(%rbp), %esi callq _get_page movq %rax, -24(%rbp) movq -24(%rbp), %rdi callq _get_node_type movl %eax, %ecx movl %ecx, -44(%rbp) ## 4-byte Spill testl %eax, %eax je LBB45_6 jmp LBB45_12 LBB45_12: movl -44(%rbp), %eax ## 4-byte Reload subl $1, %eax jne LBB45_11 jmp LBB45_1 LBB45_1: movq -24(%rbp), %rdi callq _leaf_node_num_cells movl (%rax), %eax movl %eax, -28(%rbp) movl -16(%rbp), %edi callq _indent movl -28(%rbp), %esi leaq L_.str.20(%rip), %rdi movb $0, %al callq _printf movl $0, -36(%rbp) LBB45_2: ## =>This Inner Loop Header: Depth=1 movl -36(%rbp), %eax cmpl -28(%rbp), %eax jae LBB45_5 ## %bb.3: ## in Loop: Header=BB45_2 Depth=1 movl -16(%rbp), %edi addl $1, %edi callq _indent movq -24(%rbp), %rdi movl -36(%rbp), %esi callq _leaf_node_key movl (%rax), %esi leaq L_.str.21(%rip), %rdi movb $0, %al callq _printf ## %bb.4: ## in Loop: Header=BB45_2 Depth=1 movl -36(%rbp), %eax addl $1, %eax movl %eax, -36(%rbp) jmp LBB45_2 LBB45_5: jmp LBB45_11 LBB45_6: movq -24(%rbp), %rdi callq _internal_node_num_keys movl (%rax), %eax movl %eax, -28(%rbp) movl -16(%rbp), %edi callq _indent movl -28(%rbp), %esi leaq L_.str.22(%rip), %rdi movb $0, %al callq _printf movl $0, -40(%rbp) LBB45_7: ## =>This Inner Loop Header: Depth=1 movl -40(%rbp), %eax cmpl -28(%rbp), %eax jae LBB45_10 ## %bb.8: ## in Loop: Header=BB45_7 Depth=1 movq -24(%rbp), %rdi movl -40(%rbp), %esi callq _internal_node_child movl (%rax), %eax movl %eax, -32(%rbp) movq -8(%rbp), %rdi movl -32(%rbp), %esi movl -16(%rbp), %edx addl $1, %edx callq _print_tree movl -16(%rbp), %edi addl $1, %edi callq _indent movq -24(%rbp), %rdi movl -40(%rbp), %esi callq _internal_node_key movl (%rax), %esi leaq L_.str.23(%rip), %rdi movb $0, %al callq _printf ## %bb.9: ## in Loop: Header=BB45_7 Depth=1 movl -40(%rbp), %eax addl $1, %eax movl %eax, -40(%rbp) jmp LBB45_7 LBB45_10: movq -24(%rbp), %rdi callq _internal_node_right_child movl (%rax), %eax movl %eax, -32(%rbp) movq -8(%rbp), %rdi movl -32(%rbp), %esi movl -16(%rbp), %edx addl $1, %edx callq _print_tree LBB45_11: addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _do_meta_command ## -- Begin function do_meta_command .p2align 4, 0x90 _do_meta_command: ## @do_meta_command .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -16(%rbp) movq %rsi, -24(%rbp) movq -16(%rbp), %rax movq (%rax), %rdi leaq L_.str.24(%rip), %rsi callq _strcmp cmpl $0, %eax jne LBB46_2 ## %bb.1: movq -24(%rbp), %rdi callq _db_close xorl %edi, %edi callq _exit LBB46_2: movq -16(%rbp), %rax movq (%rax), %rdi leaq L_.str.25(%rip), %rsi callq _strcmp cmpl $0, %eax jne LBB46_4 ## %bb.3: leaq L_.str.26(%rip), %rdi movb $0, %al callq _printf movq -24(%rbp), %rax movq (%rax), %rdi xorl %edx, %edx movl %edx, %esi callq _print_tree movl $0, -4(%rbp) jmp LBB46_7 LBB46_4: movq -16(%rbp), %rax movq (%rax), %rdi leaq L_.str.27(%rip), %rsi callq _strcmp cmpl $0, %eax jne LBB46_6 ## %bb.5: leaq L_.str.28(%rip), %rdi movb $0, %al callq _printf callq _print_constants movl $0, -4(%rbp) jmp LBB46_7 LBB46_6: movl $1, -4(%rbp) LBB46_7: movl -4(%rbp), %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _prepare_insert ## -- Begin function prepare_insert .p2align 4, 0x90 _prepare_insert: ## @prepare_insert .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $64, %rsp movq %rdi, -16(%rbp) movq %rsi, -24(%rbp) movq -24(%rbp), %rax movl $1, (%rax) movq -16(%rbp), %rax movq (%rax), %rdi leaq L_.str.29(%rip), %rsi callq _strtok movq %rax, -32(%rbp) xorl %eax, %eax movl %eax, %edi leaq L_.str.29(%rip), %rsi callq _strtok movq %rax, -40(%rbp) xorl %eax, %eax movl %eax, %edi leaq L_.str.29(%rip), %rsi callq _strtok movq %rax, -48(%rbp) xorl %eax, %eax movl %eax, %edi leaq L_.str.29(%rip), %rsi callq _strtok movq %rax, -56(%rbp) cmpq $0, -40(%rbp) je LBB47_3 ## %bb.1: cmpq $0, -48(%rbp) je LBB47_3 ## %bb.2: cmpq $0, -56(%rbp) jne LBB47_4 LBB47_3: movl $2, -4(%rbp) jmp LBB47_11 LBB47_4: movq -40(%rbp), %rdi callq _atoi movl %eax, -60(%rbp) cmpl $0, -60(%rbp) jge LBB47_6 ## %bb.5: movl $3, -4(%rbp) jmp LBB47_11 LBB47_6: movq -48(%rbp), %rdi callq _strlen cmpq $32, %rax jbe LBB47_8 ## %bb.7: movl $4, -4(%rbp) jmp LBB47_11 LBB47_8: movq -56(%rbp), %rdi callq _strlen cmpq $255, %rax jbe LBB47_10 ## %bb.9: movl $4, -4(%rbp) jmp LBB47_11 LBB47_10: movl -60(%rbp), %ecx movq -24(%rbp), %rax movl %ecx, 4(%rax) movq -24(%rbp), %rdi addq $4, %rdi addq $4, %rdi movq -48(%rbp), %rsi movl $33, %edx callq ___strcpy_chk movq -24(%rbp), %rdi addq $4, %rdi addq $37, %rdi movq -56(%rbp), %rsi movq $-1, %rdx callq ___strcpy_chk movl $0, -4(%rbp) LBB47_11: movl -4(%rbp), %eax addq $64, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _prepare_statement ## -- Begin function prepare_statement .p2align 4, 0x90 _prepare_statement: ## @prepare_statement .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -16(%rbp) movq %rsi, -24(%rbp) movq -16(%rbp), %rax movq (%rax), %rdi leaq L_.str.30(%rip), %rsi movl $6, %edx callq _strncmp cmpl $0, %eax jne LBB48_2 ## %bb.1: movq -16(%rbp), %rdi movq -24(%rbp), %rsi callq _prepare_insert movl %eax, -4(%rbp) jmp LBB48_5 LBB48_2: movq -16(%rbp), %rax movq (%rax), %rdi leaq L_.str.31(%rip), %rsi callq _strcmp cmpl $0, %eax jne LBB48_4 ## %bb.3: movq -24(%rbp), %rax movl $0, (%rax) movl $0, -4(%rbp) jmp LBB48_5 LBB48_4: movl $1, -4(%rbp) LBB48_5: movl -4(%rbp), %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _execute_insert ## -- Begin function execute_insert .p2align 4, 0x90 _execute_insert: ## @execute_insert .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $80, %rsp movq %rdi, -16(%rbp) movq %rsi, -24(%rbp) movq -24(%rbp), %rax movq (%rax), %rdi movq -24(%rbp), %rax movl 8(%rax), %esi callq _get_page movq %rax, -32(%rbp) movq -32(%rbp), %rdi callq _leaf_node_num_cells movl (%rax), %eax movl %eax, -36(%rbp) movq -16(%rbp), %rax addq $4, %rax movq %rax, -48(%rbp) movq -48(%rbp), %rax movl (%rax), %eax movl %eax, -52(%rbp) movq -24(%rbp), %rdi movl -52(%rbp), %esi callq _table_find movq %rax, -64(%rbp) movq -64(%rbp), %rax movl 12(%rax), %eax cmpl -36(%rbp), %eax jae LBB49_4 ## %bb.1: movq -32(%rbp), %rdi movq -64(%rbp), %rax movl 12(%rax), %esi callq _leaf_node_key movl (%rax), %eax movl %eax, -68(%rbp) movl -68(%rbp), %eax cmpl -52(%rbp), %eax jne LBB49_3 ## %bb.2: movl $1, -4(%rbp) jmp LBB49_5 LBB49_3: jmp LBB49_4 LBB49_4: movq -48(%rbp), %rax movq %rax, -80(%rbp) ## 8-byte Spill movq -64(%rbp), %rdi callq _cursor_value movq -80(%rbp), %rdi ## 8-byte Reload movq %rax, %rsi callq _serialize_row movq -64(%rbp), %rdi movq -48(%rbp), %rax movl (%rax), %esi movq -48(%rbp), %rdx callq _leaf_node_insert movq -64(%rbp), %rdi callq _free movl $0, -4(%rbp) LBB49_5: movl -4(%rbp), %eax addq $80, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _execute_select ## -- Begin function execute_select .p2align 4, 0x90 _execute_select: ## @execute_select .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) movq %rdi, -312(%rbp) movq %rsi, -320(%rbp) movq -320(%rbp), %rdi callq _table_start movq %rax, -328(%rbp) LBB50_1: ## =>This Inner Loop Header: Depth=1 movq -328(%rbp), %rax movb 16(%rax), %al xorb $-1, %al testb $1, %al jne LBB50_2 jmp LBB50_3 LBB50_2: ## in Loop: Header=BB50_1 Depth=1 movq -328(%rbp), %rdi callq _cursor_value movq %rax, %rdi leaq -304(%rbp), %rsi callq _deserialize_row leaq -304(%rbp), %rdi callq _print_row movq -328(%rbp), %rdi callq _cursor_advance jmp LBB50_1 LBB50_3: movq -328(%rbp), %rdi callq _free movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB50_5 ## %bb.4: xorl %eax, %eax addq $336, %rsp ## imm = 0x150 popq %rbp retq LBB50_5: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _execute_statement ## -- Begin function execute_statement .p2align 4, 0x90 _execute_statement: ## @execute_statement .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -16(%rbp) movq %rsi, -24(%rbp) movq -16(%rbp), %rax movl (%rax), %eax movl %eax, -28(%rbp) ## 4-byte Spill testl %eax, %eax je LBB51_2 jmp LBB51_4 LBB51_4: movl -28(%rbp), %eax ## 4-byte Reload subl $1, %eax jne LBB51_3 jmp LBB51_1 LBB51_1: movq -16(%rbp), %rdi movq -24(%rbp), %rsi callq _execute_insert movl %eax, -4(%rbp) jmp LBB51_3 LBB51_2: movq -16(%rbp), %rdi movq -24(%rbp), %rsi callq _execute_select movl %eax, -4(%rbp) LBB51_3: 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 $368, %rsp ## imm = 0x170 movl $0, -4(%rbp) movl %edi, -8(%rbp) movq %rsi, -16(%rbp) cmpl $2, -8(%rbp) jge LBB52_2 ## %bb.1: leaq L_.str.32(%rip), %rdi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _printf movl $1, %edi callq _exit LBB52_2: movq -16(%rbp), %rax movq 8(%rax), %rax movq %rax, -24(%rbp) movq -24(%rbp), %rdi callq _db_open movq %rax, -32(%rbp) callq _new_input_buffer movq %rax, -40(%rbp) LBB52_3: ## =>This Inner Loop Header: Depth=1 callq _print_prompt movq -40(%rbp), %rdi callq _read_input movq -40(%rbp), %rax movq (%rax), %rax movsbl (%rax), %eax cmpl $46, %eax jne LBB52_8 ## %bb.4: ## in Loop: Header=BB52_3 Depth=1 movq -40(%rbp), %rdi movq -32(%rbp), %rsi callq _do_meta_command movl %eax, %ecx movl %ecx, -348(%rbp) ## 4-byte Spill testl %eax, %eax je LBB52_5 jmp LBB52_19 LBB52_19: ## in Loop: Header=BB52_3 Depth=1 movl -348(%rbp), %eax ## 4-byte Reload subl $1, %eax je LBB52_6 jmp LBB52_7 LBB52_5: ## in Loop: Header=BB52_3 Depth=1 jmp LBB52_3 LBB52_6: ## in Loop: Header=BB52_3 Depth=1 movq -40(%rbp), %rax movq (%rax), %rsi leaq L_.str.33(%rip), %rdi movb $0, %al callq _printf jmp LBB52_3 LBB52_7: ## in Loop: Header=BB52_3 Depth=1 jmp LBB52_8 LBB52_8: ## in Loop: Header=BB52_3 Depth=1 movq -40(%rbp), %rdi leaq -344(%rbp), %rsi callq _prepare_statement movl %eax, %ecx ## kill: def $rcx killed $ecx movq %rcx, -360(%rbp) ## 8-byte Spill subl $4, %eax ja LBB52_14 ## %bb.20: ## in Loop: Header=BB52_3 Depth=1 movq -360(%rbp), %rax ## 8-byte Reload leaq LJTI52_0(%rip), %rcx movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax LBB52_9: ## in Loop: Header=BB52_3 Depth=1 jmp LBB52_14 LBB52_10: ## in Loop: Header=BB52_3 Depth=1 leaq L_.str.34(%rip), %rdi movb $0, %al callq _printf jmp LBB52_3 LBB52_11: ## in Loop: Header=BB52_3 Depth=1 leaq L_.str.35(%rip), %rdi movb $0, %al callq _printf jmp LBB52_3 LBB52_12: ## in Loop: Header=BB52_3 Depth=1 leaq L_.str.36(%rip), %rdi movb $0, %al callq _printf jmp LBB52_3 LBB52_13: ## in Loop: Header=BB52_3 Depth=1 movq -40(%rbp), %rax movq (%rax), %rsi leaq L_.str.37(%rip), %rdi movb $0, %al callq _printf jmp LBB52_3 LBB52_14: ## in Loop: Header=BB52_3 Depth=1 movq -32(%rbp), %rsi leaq -344(%rbp), %rdi callq _execute_statement movl %eax, %ecx movl %ecx, -364(%rbp) ## 4-byte Spill testl %eax, %eax je LBB52_15 jmp LBB52_21 LBB52_21: ## in Loop: Header=BB52_3 Depth=1 movl -364(%rbp), %eax ## 4-byte Reload subl $1, %eax je LBB52_16 jmp LBB52_22 LBB52_22: ## in Loop: Header=BB52_3 Depth=1 movl -364(%rbp), %eax ## 4-byte Reload subl $2, %eax je LBB52_17 jmp LBB52_18 LBB52_15: ## in Loop: Header=BB52_3 Depth=1 leaq L_.str.38(%rip), %rdi movb $0, %al callq _printf jmp LBB52_18 LBB52_16: ## in Loop: Header=BB52_3 Depth=1 leaq L_.str.39(%rip), %rdi movb $0, %al callq _printf jmp LBB52_18 LBB52_17: ## in Loop: Header=BB52_3 Depth=1 leaq L_.str.40(%rip), %rdi movb $0, %al callq _printf LBB52_18: ## in Loop: Header=BB52_3 Depth=1 jmp LBB52_3 .cfi_endproc .p2align 2, 0x90 .data_region jt32 .set L52_0_set_9, LBB52_9-LJTI52_0 .set L52_0_set_13, LBB52_13-LJTI52_0 .set L52_0_set_12, LBB52_12-LJTI52_0 .set L52_0_set_11, LBB52_11-LJTI52_0 .set L52_0_set_10, LBB52_10-LJTI52_0 LJTI52_0: .long L52_0_set_9 .long L52_0_set_13 .long L52_0_set_12 .long L52_0_set_11 .long L52_0_set_10 .end_data_region ## -- End function .section __TEXT,__const .globl _ID_SIZE ## @ID_SIZE .p2align 2 _ID_SIZE: .long 4 ## 0x4 .globl _USERNAME_SIZE ## @USERNAME_SIZE .p2align 2 _USERNAME_SIZE: .long 33 ## 0x21 .globl _EMAIL_SIZE ## @EMAIL_SIZE .p2align 2 _EMAIL_SIZE: .long 256 ## 0x100 .globl _ID_OFFSET ## @ID_OFFSET .p2align 2 _ID_OFFSET: .long 0 ## 0x0 .globl _USERNAME_OFFSET ## @USERNAME_OFFSET .p2align 2 _USERNAME_OFFSET: .long 4 ## 0x4 .globl _EMAIL_OFFSET ## @EMAIL_OFFSET .p2align 2 _EMAIL_OFFSET: .long 37 ## 0x25 .globl _ROW_SIZE ## @ROW_SIZE .p2align 2 _ROW_SIZE: .long 293 ## 0x125 .globl _PAGE_SIZE ## @PAGE_SIZE .p2align 2 _PAGE_SIZE: .long 4096 ## 0x1000 .globl _NODE_TYPE_SIZE ## @NODE_TYPE_SIZE .p2align 2 _NODE_TYPE_SIZE: .long 1 ## 0x1 .globl _NODE_TYPE_OFFSET ## @NODE_TYPE_OFFSET .p2align 2 _NODE_TYPE_OFFSET: .long 0 ## 0x0 .globl _IS_ROOT_SIZE ## @IS_ROOT_SIZE .p2align 2 _IS_ROOT_SIZE: .long 1 ## 0x1 .globl _IS_ROOT_OFFSET ## @IS_ROOT_OFFSET .p2align 2 _IS_ROOT_OFFSET: .long 1 ## 0x1 .globl _PARENT_POINTER_SIZE ## @PARENT_POINTER_SIZE .p2align 2 _PARENT_POINTER_SIZE: .long 4 ## 0x4 .globl _PARENT_POINTER_OFFSET ## @PARENT_POINTER_OFFSET .p2align 2 _PARENT_POINTER_OFFSET: .long 2 ## 0x2 .globl _COMMON_NODE_HEADER_SIZE ## @COMMON_NODE_HEADER_SIZE _COMMON_NODE_HEADER_SIZE: .byte 6 ## 0x6 .globl _LEAF_NODE_NUM_CELLS_SIZE ## @LEAF_NODE_NUM_CELLS_SIZE .p2align 2 _LEAF_NODE_NUM_CELLS_SIZE: .long 4 ## 0x4 .globl _LEAF_NODE_NUM_CELLS_OFFSET ## @LEAF_NODE_NUM_CELLS_OFFSET .p2align 2 _LEAF_NODE_NUM_CELLS_OFFSET: .long 6 ## 0x6 .globl _LEAF_NODE_NEXT_LEAF_SIZE ## @LEAF_NODE_NEXT_LEAF_SIZE .p2align 2 _LEAF_NODE_NEXT_LEAF_SIZE: .long 4 ## 0x4 .globl _LEAF_NODE_NEXT_LEAF_OFFSET ## @LEAF_NODE_NEXT_LEAF_OFFSET .p2align 2 _LEAF_NODE_NEXT_LEAF_OFFSET: .long 10 ## 0xa .globl _LEAF_NODE_HEADER_SIZE ## @LEAF_NODE_HEADER_SIZE .p2align 2 _LEAF_NODE_HEADER_SIZE: .long 14 ## 0xe .globl _LEAF_NODE_KEY_SIZE ## @LEAF_NODE_KEY_SIZE .p2align 2 _LEAF_NODE_KEY_SIZE: .long 4 ## 0x4 .globl _LEAF_NODE_KEY_OFFSET ## @LEAF_NODE_KEY_OFFSET .p2align 2 _LEAF_NODE_KEY_OFFSET: .long 0 ## 0x0 .globl _LEAF_NODE_VALUE_SIZE ## @LEAF_NODE_VALUE_SIZE .p2align 2 _LEAF_NODE_VALUE_SIZE: .long 293 ## 0x125 .globl _LEAF_NODE_VALUE_OFFSET ## @LEAF_NODE_VALUE_OFFSET .p2align 2 _LEAF_NODE_VALUE_OFFSET: .long 4 ## 0x4 .globl _LEAF_NODE_CELL_SIZE ## @LEAF_NODE_CELL_SIZE .p2align 2 _LEAF_NODE_CELL_SIZE: .long 297 ## 0x129 .globl _LEAF_NODE_SPACE_FOR_CELLS ## @LEAF_NODE_SPACE_FOR_CELLS .p2align 2 _LEAF_NODE_SPACE_FOR_CELLS: .long 4082 ## 0xff2 .globl _LEAF_NODE_MAX_CELLS ## @LEAF_NODE_MAX_CELLS .p2align 2 _LEAF_NODE_MAX_CELLS: .long 13 ## 0xd .globl _LEAF_NODE_RIGHT_SPLIT_COUNT ## @LEAF_NODE_RIGHT_SPLIT_COUNT .p2align 2 _LEAF_NODE_RIGHT_SPLIT_COUNT: .long 7 ## 0x7 .globl _LEAF_NODE_LEFT_SPLIT_COUNT ## @LEAF_NODE_LEFT_SPLIT_COUNT .p2align 2 _LEAF_NODE_LEFT_SPLIT_COUNT: .long 7 ## 0x7 .globl _INTERNAL_NODE_NUM_KEYS_SIZE ## @INTERNAL_NODE_NUM_KEYS_SIZE .p2align 2 _INTERNAL_NODE_NUM_KEYS_SIZE: .long 4 ## 0x4 .globl _INTERNAL_NODE_NUM_KEYS_OFFSET ## @INTERNAL_NODE_NUM_KEYS_OFFSET .p2align 2 _INTERNAL_NODE_NUM_KEYS_OFFSET: .long 6 ## 0x6 .globl _INTERNAL_NODE_RIGHT_CHILD_SIZE ## @INTERNAL_NODE_RIGHT_CHILD_SIZE .p2align 2 _INTERNAL_NODE_RIGHT_CHILD_SIZE: .long 4 ## 0x4 .globl _INTERNAL_NODE_RIGHT_CHILD_OFFSET ## @INTERNAL_NODE_RIGHT_CHILD_OFFSET .p2align 2 _INTERNAL_NODE_RIGHT_CHILD_OFFSET: .long 10 ## 0xa .globl _INTERNAL_NODE_HEADER_SIZE ## @INTERNAL_NODE_HEADER_SIZE .p2align 2 _INTERNAL_NODE_HEADER_SIZE: .long 14 ## 0xe .globl _INTERNAL_NODE_KEY_SIZE ## @INTERNAL_NODE_KEY_SIZE .p2align 2 _INTERNAL_NODE_KEY_SIZE: .long 4 ## 0x4 .globl _INTERNAL_NODE_CHILD_SIZE ## @INTERNAL_NODE_CHILD_SIZE .p2align 2 _INTERNAL_NODE_CHILD_SIZE: .long 4 ## 0x4 .globl _INTERNAL_NODE_CELL_SIZE ## @INTERNAL_NODE_CELL_SIZE .p2align 2 _INTERNAL_NODE_CELL_SIZE: .long 8 ## 0x8 .globl _INTERNAL_NODE_MAX_CELLS ## @INTERNAL_NODE_MAX_CELLS .p2align 2 _INTERNAL_NODE_MAX_CELLS: .long 3 ## 0x3 .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Tried to access child_num %d > num_keys %d\n" L_.str.1: ## @.str.1 .asciz "Need to implement splitting internal node\n" L_.str.2: ## @.str.2 .asciz "Tried to fetch page number out of bounds. %d > %d\n" L_.str.3: ## @.str.3 .asciz "Error reading file.\n" L_.str.4: ## @.str.4 .asciz "Tried to flush null page.\n" L_.str.5: ## @.str.5 .asciz "Error seeking.\n" L_.str.6: ## @.str.6 .asciz "Error writing.\n" L_.str.7: ## @.str.7 .asciz "Error closing db file.\n" L_.str.8: ## @.str.8 .asciz "db > " L_.str.9: ## @.str.9 .asciz "(%d, %s, %s)\n" L_.str.10: ## @.str.10 .asciz "Unable to open file.\n" L_.str.11: ## @.str.11 .asciz "Db file is not a whole number of pages. Corrupt file.\n" L_.str.12: ## @.str.12 .asciz "Error reading input\n" L_.str.13: ## @.str.13 .asciz "ROW_SIZE: %d\n" L_.str.14: ## @.str.14 .asciz "COMMON_NODE_HEADER_SIZE: %d\n" L_.str.15: ## @.str.15 .asciz "LEAF_NODE_HEADER_SIZE: %d\n" L_.str.16: ## @.str.16 .asciz "LEAF_NODE_CELL_SIZE: %d\n" L_.str.17: ## @.str.17 .asciz "LEAF_NODE_SPACE_FOR_CELLS: %d\n" L_.str.18: ## @.str.18 .asciz "LEAF_NODE_MAX_CELLS: %d\n" L_.str.19: ## @.str.19 .asciz " " L_.str.20: ## @.str.20 .asciz "- leaf (size %d)\n" L_.str.21: ## @.str.21 .asciz "- %d\n" L_.str.22: ## @.str.22 .asciz "- internal (size %d)\n" L_.str.23: ## @.str.23 .asciz "- key %d\n" L_.str.24: ## @.str.24 .asciz ".exit" L_.str.25: ## @.str.25 .asciz ".btree" L_.str.26: ## @.str.26 .asciz "Tree:\n" L_.str.27: ## @.str.27 .asciz ".constants" L_.str.28: ## @.str.28 .asciz "Constants: \n" L_.str.29: ## @.str.29 .asciz " " L_.str.30: ## @.str.30 .asciz "insert" L_.str.31: ## @.str.31 .asciz "select" L_.str.32: ## @.str.32 .asciz "Must supply a database filename.\n" L_.str.33: ## @.str.33 .asciz "Unrecognized command: '%s'.\n" L_.str.34: ## @.str.34 .asciz "String is too long.\n" L_.str.35: ## @.str.35 .asciz "ID must be positive.\n" L_.str.36: ## @.str.36 .asciz "Syntax error. Could not parse statement.\n" L_.str.37: ## @.str.37 .asciz "Unrecognized statement:'%s'.\n" L_.str.38: ## @.str.38 .asciz "Executed.\n" L_.str.39: ## @.str.39 .asciz "Error: Duplicate key.\n" L_.str.40: ## @.str.40 .asciz "Error: Table Full.\n" .subsections_via_symbols
the_stack_data/740402.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #480 .cfi_def_cfa_offset 480 stp x28, x27, [sp, #448] ; 16-byte Folded Spill stp x29, x30, [sp, #464] ; 16-byte Folded Spill add x29, sp, #464 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w27, -24 .cfi_offset w28, -32 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] str wzr, [sp, #36] str wzr, [sp, #28] mov x9, sp add x8, sp, #32 str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _scanf b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #28] ldr w9, [sp, #32] subs w8, w8, w9 cset w8, eq tbnz w8, #0, LBB0_5 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldrsw x9, [sp, #28] add x8, sp, #40 str x8, [sp, #16] ; 8-byte Folded Spill 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 ldr x8, [sp, #16] ; 8-byte Folded Reload ldrsw x9, [sp, #28] ldr w8, [x8, x9, lsl #2] mov w10, #2 sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_4 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_4 LBB0_4: ; in Loop: Header=BB0_1 Depth=1 b LBB0_1 LBB0_5: str wzr, [sp, #28] ldr w8, [sp, #32] subs w8, w8, #1 str w8, [sp, #32] b LBB0_6 LBB0_6: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #32] ldr w9, [sp, #28] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB0_10 b LBB0_7 LBB0_7: ; in Loop: Header=BB0_6 Depth=1 ldrsw x8, [sp, #28] add x9, sp, #40 ldr w8, [x9, x8, lsl #2] ldrsw x10, [sp, #32] ldr w9, [x9, x10, lsl #2] subs w10, w8, w9 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, #28] add w8, w8, #1 str w8, [sp, #28] ldr w8, [sp, #32] subs w8, w8, #1 str w8, [sp, #32] ldr w8, [sp, #28] ldr w9, [sp, #32] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_9 b LBB0_8 LBB0_8: ; in Loop: Header=BB0_6 Depth=1 ldrsw x9, [sp, #32] add x8, sp, #40 ldr w9, [x8, x9, lsl #2] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf b LBB0_9 LBB0_9: ; in Loop: Header=BB0_6 Depth=1 b LBB0_6 LBB0_10: ldur x9, [x29, #-24] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_12 b LBB0_11 LBB0_11: bl ___stack_chk_fail LBB0_12: mov w0, #0 ldp x29, x30, [sp, #464] ; 16-byte Folded Reload ldp x28, x27, [sp, #448] ; 16-byte Folded Reload add sp, sp, #480 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d" l_.str.1: ; @.str.1 .asciz "%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 $432, %rsp ## imm = 0x1B0 movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -420(%rbp) movl $0, -428(%rbp) leaq L_.str(%rip), %rdi leaq -424(%rbp), %rsi movb $0, %al callq _scanf LBB0_1: ## =>This Inner Loop Header: Depth=1 movl -428(%rbp), %eax cmpl -424(%rbp), %eax je LBB0_5 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movslq -428(%rbp), %rax leaq -416(%rbp), %rsi shlq $2, %rax addq %rax, %rsi leaq L_.str(%rip), %rdi movb $0, %al callq _scanf movslq -428(%rbp), %rax movl -416(%rbp,%rax,4), %eax movl $2, %ecx cltd idivl %ecx cmpl $0, %edx je LBB0_4 ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movl -428(%rbp), %eax addl $1, %eax movl %eax, -428(%rbp) LBB0_4: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_1 LBB0_5: movl $0, -428(%rbp) movl -424(%rbp), %eax addl $-1, %eax movl %eax, -424(%rbp) LBB0_6: ## =>This Inner Loop Header: Depth=1 movl -424(%rbp), %eax cmpl -428(%rbp), %eax jle LBB0_10 ## %bb.7: ## in Loop: Header=BB0_6 Depth=1 movslq -428(%rbp), %rax movl -416(%rbp,%rax,4), %esi movslq -424(%rbp), %rax subl -416(%rbp,%rax,4), %esi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf movl -428(%rbp), %eax addl $1, %eax movl %eax, -428(%rbp) movl -424(%rbp), %eax addl $-1, %eax movl %eax, -424(%rbp) movl -428(%rbp), %eax cmpl -424(%rbp), %eax jne LBB0_9 ## %bb.8: ## in Loop: Header=BB0_6 Depth=1 movslq -424(%rbp), %rax movl -416(%rbp,%rax,4), %esi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf LBB0_9: ## in Loop: Header=BB0_6 Depth=1 jmp LBB0_6 LBB0_10: movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_12 ## %bb.11: xorl %eax, %eax addq $432, %rsp ## imm = 0x1B0 popq %rbp retq LBB0_12: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d" L_.str.1: ## @.str.1 .asciz "%d\n" .subsections_via_symbols
the_stack_data/90607.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _sched_yield ; -- Begin function sched_yield .p2align 2 _sched_yield: ; @sched_yield .cfi_startproc ; %bb.0: mov w0, #0 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _sched_yield ## -- Begin function sched_yield .p2align 4, 0x90 _sched_yield: ## @sched_yield .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp xorl %eax, %eax popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/145725.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] str wzr, [sp, #20] str wzr, [sp, #16] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #16] subs w8, w8, #15 cset w8, ge tbnz w8, #0, LBB0_4 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #16] add w9, w8, #97 ldrsw x10, [sp, #16] sub x8, x29, #23 strb w9, [x8, x10] ldrsw x9, [sp, #16] ldrsb w10, [x8, x9] mov x9, sp ; implicit-def: $x8 mov x8, x10 str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #16] add w8, w8, #1 str w8, [sp, #16] b LBB0_1 LBB0_4: adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf str wzr, [sp, #12] b LBB0_5 LBB0_5: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #12] subs w8, w8, #15 cset w8, ge tbnz w8, #0, LBB0_8 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_5 Depth=1 ldr w8, [sp, #12] ldrsw x10, [sp, #12] sub x9, x29, #23 strb w8, [x9, x10] 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 x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf str wzr, [sp, #8] b LBB0_9 LBB0_9: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #8] subs w8, w8, #15 cset w8, ge tbnz w8, #0, LBB0_12 b LBB0_10 LBB0_10: ; in Loop: Header=BB0_9 Depth=1 ldrsw x9, [sp, #8] sub x8, x29, #23 ldrsb w10, [x8, x9] mov x9, sp ; implicit-def: $x8 mov x8, x10 str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf b LBB0_11 LBB0_11: ; in Loop: Header=BB0_9 Depth=1 ldr w8, [sp, #8] add w8, w8, #1 str w8, [sp, #8] b LBB0_9 LBB0_12: ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_14 b LBB0_13 LBB0_13: bl ___stack_chk_fail LBB0_14: 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 "%c " l_.str.1: ; @.str.1 .asciz "\n" 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 _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .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, -28(%rbp) movl $0, -32(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 cmpl $15, -32(%rbp) jge LBB0_4 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl -32(%rbp), %eax addl $97, %eax movb %al, %cl movslq -32(%rbp), %rax movb %cl, -23(%rbp,%rax) movslq -32(%rbp), %rax movsbl -23(%rbp,%rax), %esi leaq L_.str(%rip), %rdi movb $0, %al callq _printf ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movl -32(%rbp), %eax addl $1, %eax movl %eax, -32(%rbp) jmp LBB0_1 LBB0_4: leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf movl $0, -36(%rbp) LBB0_5: ## =>This Inner Loop Header: Depth=1 cmpl $15, -36(%rbp) jge LBB0_8 ## %bb.6: ## in Loop: Header=BB0_5 Depth=1 movl -36(%rbp), %eax movb %al, %cl movslq -36(%rbp), %rax movb %cl, -23(%rbp,%rax) ## %bb.7: ## in Loop: Header=BB0_5 Depth=1 movl -36(%rbp), %eax addl $1, %eax movl %eax, -36(%rbp) jmp LBB0_5 LBB0_8: leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf movl $0, -40(%rbp) LBB0_9: ## =>This Inner Loop Header: Depth=1 cmpl $15, -40(%rbp) jge LBB0_12 ## %bb.10: ## in Loop: Header=BB0_9 Depth=1 movslq -40(%rbp), %rax movsbl -23(%rbp,%rax), %esi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf ## %bb.11: ## in Loop: Header=BB0_9 Depth=1 movl -40(%rbp), %eax addl $1, %eax movl %eax, -40(%rbp) jmp LBB0_9 LBB0_12: movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_14 ## %bb.13: xorl %eax, %eax addq $48, %rsp popq %rbp retq LBB0_14: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%c " L_.str.1: ## @.str.1 .asciz "\n" L_.str.2: ## @.str.2 .asciz "%d " .subsections_via_symbols
the_stack_data/37530.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #96 .cfi_def_cfa_offset 96 stp x29, x30, [sp, #80] ; 16-byte Folded Spill add x29, sp, #80 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #0 stur w8, [x29, #-36] ; 4-byte Folded Spill stur wzr, [x29, #-4] fmov s0, #3.00000000 stur s0, [x29, #-8] fmov d0, #3.00000000 stur d0, [x29, #-16] mov x8, #37888 movk x8, #30517, lsl #16 stur x8, [x29, #-24] mov x8, #722 movk x8, #18838, lsl #16 stur x8, [x29, #-32] ldur s0, [x29, #-8] fcvt d1, s0 ldur d0, [x29, #-16] ldur x10, [x29, #-24] ldur x8, [x29, #-32] mov x9, sp str d1, [x9] str d0, [x9, #8] str x10, [x9, #16] str x8, [x9, #24] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldur x10, [x29, #-24] ldur x8, [x29, #-32] mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf ldur s0, [x29, #-8] fcvt d1, s0 ldur d0, [x29, #-16] ldur x10, [x29, #-24] ldur x8, [x29, #-32] mov x9, sp str d1, [x9] str d0, [x9, #8] str x10, [x9, #16] str x8, [x9, #24] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf ldur w0, [x29, #-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 "%.1e %.1e %.1e %1.e\n" l_.str.1: ; @.str.1 .asciz "%ld %ld\n" l_.str.2: ; @.str.2 .asciz "%ld %ld %ld %ld\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __TEXT,__literal8,8byte_literals .p2align 3 ## -- Begin function main LCPI0_0: .quad 0x4008000000000000 ## double 3 .section __TEXT,__literal4,4byte_literals .p2align 2 LCPI0_1: .long 0x40400000 ## float 3 .section __TEXT,__text,regular,pure_instructions .globl _main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl $0, -4(%rbp) movss LCPI0_1(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, -8(%rbp) movsd LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -16(%rbp) movq $2000000000, -24(%rbp) ## imm = 0x77359400 movq $1234567890, -32(%rbp) ## imm = 0x499602D2 movss -8(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movsd -16(%rbp), %xmm1 ## xmm1 = mem[0],zero movq -24(%rbp), %rsi movq -32(%rbp), %rdx leaq L_.str(%rip), %rdi movb $2, %al callq _printf movq -24(%rbp), %rsi movq -32(%rbp), %rdx leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf movss -8(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movsd -16(%rbp), %xmm1 ## xmm1 = mem[0],zero movq -24(%rbp), %rsi movq -32(%rbp), %rdx leaq L_.str.2(%rip), %rdi movb $2, %al callq _printf xorl %eax, %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%.1e %.1e %.1e %1.e\n" L_.str.1: ## @.str.1 .asciz "%ld %ld\n" L_.str.2: ## @.str.2 .asciz "%ld %ld %ld %ld\n" .subsections_via_symbols
the_stack_data/193892716.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __TEXT,__literal8,8byte_literals .p2align 3 ; -- Begin function main lCPI0_0: .quad 0x3949f623d5a8a733 ; double 1.0000000000000001E-32 .section __TEXT,__text,regular,pure_instructions .globl _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, #544 add x8, sp, #84 str x8, [sp, #40] ; 8-byte Folded Spill adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] str wzr, [sp, #80] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov x9, sp mov x8, #9 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 _printf str wzr, [sp, #76] mov w8, #1 str w8, [sp, #72] mov w8, #2 str w8, [sp, #68] mov w8, #4059 movk w8, #16457, lsl #16 fmov s0, w8 str s0, [sp, #64] adrp x8, lCPI0_0@PAGE ldr d0, [x8, lCPI0_0@PAGEOFF] str d0, [sp, #56] mov w8, #97 strb w8, [sp, #55] mov w8, #10 strb w8, [sp, #54] mov w8, #10 str w8, [sp, #72] ldr w9, [sp, #72] ; implicit-def: $x8 mov x8, x9 ldrsb w10, [sp, #54] 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 ldr x9, [sp, #40] ; 8-byte Folded Reload mov w8, #3 str w8, [x9, #420] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf ldr x2, [sp, #24] ; 8-byte Folded Reload sub x0, x29, #73 str x0, [sp, #32] ; 8-byte Folded Spill adrp x1, l_.str.4@PAGE add x1, x1, l_.str.4@PAGEOFF bl ___strcpy_chk ldr x8, [sp, #32] ; 8-byte Folded Reload mov x9, sp str x8, [x9] adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf ldr x8, [sp, #40] ; 8-byte Folded Reload mov w9, #100 str w9, [x8, #396] ldr w9, [x8, #396] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _printf adrp x0, l_.str.7@PAGE add x0, x0, l_.str.7@PAGEOFF bl _printf ldur x9, [x29, #-24] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: bl ___stack_chk_fail LBB0_2: mov w0, #0 add sp, sp, #544 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 "Welcome to C programming\n" l_.str.1: ; @.str.1 .asciz "MAX_LENGTH is %d\n" l_.str.2: ; @.str.2 .asciz "value of j = %d%c" l_.str.3: ; @.str.3 .asciz "--------- EXERCISE 2.5 --------- \n" l_.str.4: ; @.str.4 .asciz "OS" l_.str.5: ; @.str.5 .asciz "unit_code = %s\n" l_.str.6: ; @.str.6 .asciz "matrix[9][9] = %d\n" l_.str.7: ; @.str.7 .asciz "--------- EXERCISE 2.6 --------- \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 0x3949f623d5a8a733 ## double 1.0000000000000001E-32 .section __TEXT,__literal4,4byte_literals .p2align 2 LCPI0_1: .long 0x40490fdb ## float 3.14159274 .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 $512, %rsp ## imm = 0x200 movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -468(%rbp) leaq L_.str(%rip), %rdi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi movl $9, %esi movb $0, %al callq _printf movl $0, -472(%rbp) movl $1, -476(%rbp) movl $2, -480(%rbp) movss LCPI0_1(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, -484(%rbp) movsd LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -496(%rbp) movb $97, -497(%rbp) movb $10, -498(%rbp) movl $10, -476(%rbp) movl -476(%rbp), %esi movsbl -498(%rbp), %edx leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf movl $3, -40(%rbp) leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf leaq -57(%rbp), %rdi leaq L_.str.4(%rip), %rsi movl $9, %edx callq ___strcpy_chk leaq -57(%rbp), %rsi leaq L_.str.5(%rip), %rdi movb $0, %al callq _printf movl $100, -68(%rbp) movl -68(%rbp), %esi leaq L_.str.6(%rip), %rdi movb $0, %al callq _printf leaq L_.str.7(%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 $512, %rsp ## imm = 0x200 popq %rbp retq LBB0_2: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Welcome to C programming\n" L_.str.1: ## @.str.1 .asciz "MAX_LENGTH is %d\n" L_.str.2: ## @.str.2 .asciz "value of j = %d%c" L_.str.3: ## @.str.3 .asciz "--------- EXERCISE 2.5 --------- \n" L_.str.4: ## @.str.4 .asciz "OS" L_.str.5: ## @.str.5 .asciz "unit_code = %s\n" L_.str.6: ## @.str.6 .asciz "matrix[9][9] = %d\n" L_.str.7: ## @.str.7 .asciz "--------- EXERCISE 2.6 --------- \n" .subsections_via_symbols
the_stack_data/111077014.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _Load ; -- Begin function Load .p2align 2 _Load: ; @Load .cfi_startproc ; %bb.0: sub sp, sp, #80 .cfi_def_cfa_offset 80 stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp, #64 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] stur w1, [x29, #-12] ldur x0, [x29, #-8] mov w1, #1 bl _dlopen str x0, [sp, #32] ldr x8, [sp, #32] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] ldr x0, [x8] ldur x8, [x29, #-8] mov x9, sp str x8, [x9] adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF bl _fprintf mov w0, #1 bl _exit LBB0_2: ldr x0, [sp, #32] adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF bl _dlsym str x0, [sp, #24] ldr x8, [sp, #24] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] ldr x0, [x8] ldur x8, [x29, #-8] mov x9, sp str x8, [x9] adrp x1, l_.str.2@PAGE add x1, x1, l_.str.2@PAGEOFF bl _fprintf mov w0, #1 bl _exit LBB0_4: ldr x8, [sp, #24] blr x8 stur w0, [x29, #-16] ldur w8, [x29, #-16] ldur w9, [x29, #-12] subs w8, w8, w9 cset w8, eq tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: mov w0, #1 bl _exit LBB0_6: ldr x0, [sp, #32] bl _dlclose ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] str wzr, [sp, #8] b LBB1_1 LBB1_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #8] subs w8, w8, #100 cset w8, ge tbnz w8, #0, LBB1_8 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 bl _rand mov w9, #2 sdiv w8, w0, w9 mul w8, w8, w9 subs w8, w0, w8 add w8, w8, #1 str w8, [sp, #4] ; 4-byte Folded Spill subs w8, w8, #1 cset w8, eq tbnz w8, #0, LBB1_4 b LBB1_3 LBB1_3: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #4] ; 4-byte Folded Reload subs w8, w8, #2 cset w8, eq tbnz w8, #0, LBB1_5 b LBB1_6 LBB1_4: ; in Loop: Header=BB1_1 Depth=1 adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF mov w1, #1 bl _Load b LBB1_6 LBB1_5: ; in Loop: Header=BB1_1 Depth=1 adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF mov w1, #2 bl _Load 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 w8, [sp, #8] add w8, w8, #1 str w8, [sp, #8] b LBB1_1 LBB1_8: 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 "Load of %s failed\n" l_.str.1: ; @.str.1 .asciz "one" l_.str.2: ; @.str.2 .asciz "Dlsym of %s failed\n" l_.str.3: ; @.str.3 .asciz "one.so" l_.str.4: ; @.str.4 .asciz "two.so" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _Load ## -- Begin function Load .p2align 4, 0x90 _Load: ## @Load .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) movq -8(%rbp), %rdi movl $1, %esi callq _dlopen movq %rax, -32(%rbp) cmpq $0, -32(%rbp) jne LBB0_2 ## %bb.1: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movq -8(%rbp), %rdx leaq L_.str(%rip), %rsi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _fprintf movl $1, %edi callq _exit LBB0_2: movq -32(%rbp), %rdi leaq L_.str.1(%rip), %rsi callq _dlsym movq %rax, -40(%rbp) cmpq $0, -40(%rbp) jne LBB0_4 ## %bb.3: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movq -8(%rbp), %rdx leaq L_.str.2(%rip), %rsi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _fprintf movl $1, %edi callq _exit LBB0_4: movb $0, %al callq *-40(%rbp) movl %eax, -16(%rbp) movl -16(%rbp), %eax cmpl -12(%rbp), %eax je LBB0_6 ## %bb.5: movl $1, %edi callq _exit LBB0_6: movq -32(%rbp), %rdi callq _dlclose addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) movl $0, -8(%rbp) LBB1_1: ## =>This Inner Loop Header: Depth=1 cmpl $100, -8(%rbp) jge LBB1_7 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 callq _rand movl %eax, %ecx movl %ecx, %eax shrl $31, %eax movl %ecx, %edx addl %eax, %edx andl $-2, %edx ## implicit-def: $rax movl %ecx, %eax negl %edx ## implicit-def: $rcx movl %edx, %ecx leal 1(%rax,%rcx), %eax movl %eax, -12(%rbp) ## 4-byte Spill subl $1, %eax je LBB1_3 jmp LBB1_8 LBB1_8: ## in Loop: Header=BB1_1 Depth=1 movl -12(%rbp), %eax ## 4-byte Reload subl $2, %eax je LBB1_4 jmp LBB1_5 LBB1_3: ## in Loop: Header=BB1_1 Depth=1 leaq L_.str.3(%rip), %rdi movl $1, %esi callq _Load jmp LBB1_5 LBB1_4: ## in Loop: Header=BB1_1 Depth=1 leaq L_.str.4(%rip), %rdi movl $2, %esi callq _Load LBB1_5: ## in Loop: Header=BB1_1 Depth=1 jmp LBB1_6 LBB1_6: ## in Loop: Header=BB1_1 Depth=1 movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) jmp LBB1_1 LBB1_7: xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Load of %s failed\n" L_.str.1: ## @.str.1 .asciz "one" L_.str.2: ## @.str.2 .asciz "Dlsym of %s failed\n" L_.str.3: ## @.str.3 .asciz "one.so" L_.str.4: ## @.str.4 .asciz "two.so" .subsections_via_symbols
the_stack_data/15380.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] sub x8, x29, #8 str x8, [sp, #8] ; 8-byte Folded Spill mov w8, #20 stur w8, [x29, #-8] mov w8, #52429 movk w8, #15948, lsl #16 fmov s0, w8 str s0, [sp, #16] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldr x8, [sp, #8] ; 8-byte Folded Reload mov x9, sp str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf ldur w8, [x29, #-8] subs w8, w8, #20 cset w8, le tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf b LBB0_3 LBB0_2: ldr s0, [sp, #16] ldur s1, [x29, #-8] scvtf s1, s1 fmul s0, s0, s1 stur s0, [x29, #-12] ldur s0, [x29, #-12] fcvt d0, s0 mov x8, sp str d0, [x8] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf b LBB0_3 LBB0_3: mov w0, #0 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "How many apples would you like to buy?\n" l_.str.1: ; @.str.1 .asciz "%d" l_.str.2: ; @.str.2 .asciz "Sorry, we only have 20 apples left.\n" l_.str.3: ; @.str.3 .asciz "That will be %.2f BatCoins please.\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __TEXT,__literal4,4byte_literals .p2align 2 ## -- Begin function main LCPI0_0: .long 0x3e4ccccd ## float 0.200000003 .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) movl $20, -8(%rbp) movss LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, -16(%rbp) leaq L_.str(%rip), %rdi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi leaq -8(%rbp), %rsi movb $0, %al callq _scanf cmpl $20, -8(%rbp) jle LBB0_2 ## %bb.1: leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf jmp LBB0_3 LBB0_2: movss -16(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtsi2ssl -8(%rbp), %xmm1 mulss %xmm1, %xmm0 movss %xmm0, -12(%rbp) movss -12(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 leaq L_.str.3(%rip), %rdi movb $1, %al callq _printf LBB0_3: xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "How many apples would you like to buy?\n" L_.str.1: ## @.str.1 .asciz "%d" L_.str.2: ## @.str.2 .asciz "Sorry, we only have 20 apples left.\n" L_.str.3: ## @.str.3 .asciz "That will be %.2f BatCoins please.\n" .subsections_via_symbols
the_stack_data/187644009.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] mov x9, sp sub x8, x29, #8 str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _scanf ldur w8, [x29, #-8] stur w8, [x29, #-12] b LBB0_1 LBB0_1: ; =>This Loop Header: Depth=1 ; Child Loop BB0_3 Depth 2 ; Child Loop BB0_7 Depth 2 ldur w8, [x29, #-12] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB0_12 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 str wzr, [sp, #16] b LBB0_3 LBB0_3: ; Parent Loop BB0_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #16] ldur w9, [x29, #-8] ldur w10, [x29, #-12] subs w9, w9, w10 subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_6 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_3 Depth=2 mov w0, #32 bl _putchar b LBB0_5 LBB0_5: ; in Loop: Header=BB0_3 Depth=2 ldr w8, [sp, #16] add w8, w8, #1 str w8, [sp, #16] b LBB0_3 LBB0_6: ; in Loop: Header=BB0_1 Depth=1 str wzr, [sp, #16] b LBB0_7 LBB0_7: ; Parent Loop BB0_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #16] ldur w9, [x29, #-12] lsl w9, w9, #1 subs w9, w9, #1 subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_10 b LBB0_8 LBB0_8: ; in Loop: Header=BB0_7 Depth=2 mov w0, #42 bl _putchar b LBB0_9 LBB0_9: ; in Loop: Header=BB0_7 Depth=2 ldr w8, [sp, #16] add w8, w8, #1 str w8, [sp, #16] b LBB0_7 LBB0_10: ; in Loop: Header=BB0_1 Depth=1 adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _puts b LBB0_11 LBB0_11: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-12] subs w8, w8, #1 stur w8, [x29, #-12] b LBB0_1 LBB0_12: mov w0, #0 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d" l_.str.1: ; @.str.1 .space 1 .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) leaq L_.str(%rip), %rdi leaq -8(%rbp), %rsi movb $0, %al callq _scanf movl -8(%rbp), %eax movl %eax, -12(%rbp) LBB0_1: ## =>This Loop Header: Depth=1 ## Child Loop BB0_3 Depth 2 ## Child Loop BB0_7 Depth 2 cmpl $0, -12(%rbp) jle LBB0_12 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl $0, -16(%rbp) LBB0_3: ## Parent Loop BB0_1 Depth=1 ## => This Inner Loop Header: Depth=2 movl -16(%rbp), %eax movl -8(%rbp), %ecx subl -12(%rbp), %ecx cmpl %ecx, %eax jge LBB0_6 ## %bb.4: ## in Loop: Header=BB0_3 Depth=2 movl $32, %edi callq _putchar ## %bb.5: ## in Loop: Header=BB0_3 Depth=2 movl -16(%rbp), %eax addl $1, %eax movl %eax, -16(%rbp) jmp LBB0_3 LBB0_6: ## in Loop: Header=BB0_1 Depth=1 movl $0, -16(%rbp) LBB0_7: ## Parent Loop BB0_1 Depth=1 ## => This Inner Loop Header: Depth=2 movl -16(%rbp), %eax movl -12(%rbp), %ecx shll $1, %ecx subl $1, %ecx cmpl %ecx, %eax jge LBB0_10 ## %bb.8: ## in Loop: Header=BB0_7 Depth=2 movl $42, %edi callq _putchar ## %bb.9: ## in Loop: Header=BB0_7 Depth=2 movl -16(%rbp), %eax addl $1, %eax movl %eax, -16(%rbp) jmp LBB0_7 LBB0_10: ## in Loop: Header=BB0_1 Depth=1 leaq L_.str.1(%rip), %rdi callq _puts ## %bb.11: ## in Loop: Header=BB0_1 Depth=1 movl -12(%rbp), %eax addl $-1, %eax movl %eax, -12(%rbp) jmp LBB0_1 LBB0_12: xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d" L_.str.1: ## @.str.1 .space 1 .subsections_via_symbols
the_stack_data/3262123.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _my_putchar ; -- Begin function my_putchar .p2align 2 _my_putchar: ; @my_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 .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _my_putchar ## -- Begin function my_putchar .p2align 4, 0x90 _my_putchar: ## @my_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 .subsections_via_symbols
the_stack_data/601569.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _push ; -- Begin function push .p2align 2 _push: ; @push .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur w0, [x29, #-4] mov x0, #16 bl _malloc str x0, [sp] ldur w8, [x29, #-4] ldr x9, [sp] str w8, [x9] adrp x9, _current_thread@GOTPAGE ldr x9, [x9, _current_thread@GOTPAGEOFF] ldr x8, [x9] ldr x8, [x8, #24] ldr x10, [sp] str x8, [x10, #8] ldr x8, [sp] ldr x9, [x9] str x8, [x9, #24] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _pop ; -- Begin function pop .p2align 2 _pop: ; @pop .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, _current_thread@GOTPAGE ldr x8, [x8, _current_thread@GOTPAGEOFF] ldr x8, [x8] ldr x8, [x8, #24] str x8, [sp, #8] ldr x8, [sp, #8] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] ldr x0, [x8] adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF bl _fprintf mov w0, #1 bl _exit LBB1_2: ldr x8, [sp, #8] ldr w8, [x8] str w8, [sp, #4] ldr x8, [sp, #8] ldr x8, [x8, #8] adrp x9, _current_thread@GOTPAGE ldr x9, [x9, _current_thread@GOTPAGEOFF] ldr x9, [x9] str x8, [x9, #24] ldr x0, [sp, #8] bl _free ldr w0, [sp, #4] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _copy_stack ; -- Begin function copy_stack .p2align 2 _copy_stack: ; @copy_stack .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] ; kill: def $x8 killed $xzr str xzr, [sp, #16] ldur x8, [x29, #-16] ldr x8, [x8, #24] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB2_2 b LBB2_1 LBB2_1: ldur x8, [x29, #-8] ; kill: def $x9 killed $xzr str xzr, [x8, #24] b LBB2_9 LBB2_2: ldur x8, [x29, #-16] ldr x8, [x8, #24] str x8, [sp, #8] b LBB2_3 LBB2_3: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #8] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB2_9 b LBB2_4 LBB2_4: ; in Loop: Header=BB2_3 Depth=1 mov x0, #16 bl _malloc str x0, [sp, #24] ldr x8, [sp, #8] ldr w8, [x8] ldr x9, [sp, #24] str w8, [x9] ldr x8, [sp, #24] ; kill: def $x9 killed $xzr str xzr, [x8, #8] ldr x8, [sp, #16] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB2_6 b LBB2_5 LBB2_5: ; in Loop: Header=BB2_3 Depth=1 ldr x8, [sp, #24] ldur x9, [x29, #-8] str x8, [x9, #24] b LBB2_7 LBB2_6: ; in Loop: Header=BB2_3 Depth=1 ldr x8, [sp, #24] ldr x9, [sp, #16] str x8, [x9, #8] b LBB2_7 LBB2_7: ; in Loop: Header=BB2_3 Depth=1 ldr x8, [sp, #24] str x8, [sp, #16] b LBB2_8 LBB2_8: ; in Loop: Header=BB2_3 Depth=1 ldr x8, [sp, #8] ldr x8, [x8, #8] str x8, [sp, #8] b LBB2_3 LBB2_9: ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _new_thread ; -- Begin function new_thread .p2align 2 _new_thread: ; @new_thread .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, _current_thread@GOTPAGE ldr x8, [x8, _current_thread@GOTPAGEOFF] str x8, [sp] ; 8-byte Folded Spill mov x0, #48 bl _malloc ldr x8, [sp] ; 8-byte Folded Reload str x0, [sp, #8] adrp x11, _threads@PAGE ldr w9, [x11, _threads@PAGEOFF] add w10, w9, #1 str w10, [x11, _threads@PAGEOFF] ldr x10, [sp, #8] str w9, [x10] ldr x9, [x8] ldr w9, [x9, #4] ldr x10, [sp, #8] str w9, [x10, #4] ldr x9, [x8] ldr w9, [x9, #8] ldr x10, [sp, #8] str w9, [x10, #8] ldr x9, [x8] ldr w10, [x9, #12] mov w9, #0 subs w10, w9, w10 ldr x11, [sp, #8] str w10, [x11, #12] ldr x10, [x8] ldr w10, [x10, #16] subs w9, w9, w10 ldr x10, [sp, #8] str w9, [x10, #16] ldr x0, [sp, #8] ldr x1, [x8] bl _copy_stack ldr x9, [sp] ; 8-byte Folded Reload ldr x8, [x9] ldr x8, [x8, #32] ldr x10, [sp, #8] str x8, [x10, #32] ldr x8, [x9] ldr x10, [sp, #8] str x8, [x10, #40] ldr x8, [sp, #8] ldr x10, [x9] ldr x10, [x10, #32] str x8, [x10, #40] ldr x8, [sp, #8] ldr x9, [x9] str x8, [x9, #32] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _kill_thread ; -- Begin function kill_thread .p2align 2 _kill_thread: ; @kill_thread .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, _current_thread@GOTPAGE ldr x8, [x8, _current_thread@GOTPAGEOFF] ldr x8, [x8] str x8, [sp, #8] b LBB4_1 LBB4_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #8] ldr x8, [x8, #24] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB4_3 b LBB4_2 LBB4_2: ; in Loop: Header=BB4_1 Depth=1 bl _pop b LBB4_1 LBB4_3: ldr x8, [sp, #8] ldr x8, [x8, #32] ldr x9, [sp, #8] subs x8, x8, x9 cset w8, ne tbnz w8, #0, LBB4_5 b LBB4_4 LBB4_4: mov w0, #0 bl _exit LBB4_5: ldr x8, [sp, #8] ldr x8, [x8, #32] ldr x9, [sp, #8] ldr x9, [x9, #40] str x8, [x9, #32] ldr x8, [sp, #8] ldr x8, [x8, #40] ldr x9, [sp, #8] ldr x9, [x9, #32] str x8, [x9, #40] ldr x8, [sp, #8] ldr x8, [x8, #32] adrp x9, _current_thread@GOTPAGE ldr x9, [x9, _current_thread@GOTPAGEOFF] str x8, [x9] 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 _turn_dxdy ; -- Begin function turn_dxdy .p2align 2 _turn_dxdy: ; @turn_dxdy .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] ldr w8, [sp, #12] mov w10, #8 sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 str w8, [sp, #12] ldr w8, [sp, #12] subs w8, w8, #0 cset w8, ge tbnz w8, #0, LBB5_2 b LBB5_1 LBB5_1: ldr w8, [sp, #12] add w8, w8, #8 str w8, [sp, #12] b LBB5_2 LBB5_2: b LBB5_3 LBB5_3: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #12] subs w9, w8, #1 str w9, [sp, #12] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB5_9 b LBB5_4 LBB5_4: ; in Loop: Header=BB5_3 Depth=1 ldur x8, [x29, #-8] ldr w8, [x8] str w8, [sp, #8] ldr x8, [sp, #16] ldr w8, [x8] str w8, [sp, #4] ldr w8, [sp, #4] ldr w9, [sp, #8] add w8, w8, w9 ldur x9, [x29, #-8] str w8, [x9] ldr w8, [sp, #4] ldr w9, [sp, #8] subs w8, w8, w9 ldr x9, [sp, #16] str w8, [x9] ldur x8, [x29, #-8] ldr w0, [x8] bl _abs subs w8, w0, #2 cset w8, ne tbnz w8, #0, LBB5_6 b LBB5_5 LBB5_5: ; in Loop: Header=BB5_3 Depth=1 ldur x9, [x29, #-8] ldr w8, [x9] mov w10, #2 sdiv w8, w8, w10 str w8, [x9] b LBB5_6 LBB5_6: ; in Loop: Header=BB5_3 Depth=1 ldr x8, [sp, #16] ldr w0, [x8] bl _abs subs w8, w0, #2 cset w8, ne tbnz w8, #0, LBB5_8 b LBB5_7 LBB5_7: ; in Loop: Header=BB5_3 Depth=1 ldr x9, [sp, #16] ldr w8, [x9] mov w10, #2 sdiv w8, w8, w10 str w8, [x9] b LBB5_8 LBB5_8: ; in Loop: Header=BB5_3 Depth=1 b LBB5_3 LBB5_9: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _can_turn ; -- Begin function can_turn .p2align 2 _can_turn: ; @can_turn .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, _current_thread@GOTPAGE ldr x8, [x8, _current_thread@GOTPAGEOFF] str x8, [sp, #8] ; 8-byte Folded Spill stur w0, [x29, #-4] ldr x9, [x8] ldr w9, [x9, #12] sub x0, x29, #8 stur w9, [x29, #-8] ldr x8, [x8] ldr w8, [x8, #16] sub x1, x29, #12 stur w8, [x29, #-12] ldur w2, [x29, #-4] bl _turn_dxdy ldr x9, [sp, #8] ; 8-byte Folded Reload adrp x8, _world@GOTPAGE ldr x8, [x8, _world@GOTPAGEOFF] ldr x8, [x8] ldr x10, [x9] ldr w10, [x10, #4] ldur w11, [x29, #-8] add w10, w10, w11 ldr x8, [x8, w10, sxtw #3] ldr x9, [x9] ldr w9, [x9, #8] ldur w10, [x29, #-12] add w9, w9, w10 ldr w8, [x8, w9, sxtw #2] subs w8, w8, #32 cset w8, ne and w0, w8, #0x1 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _turn ; -- Begin function turn .p2align 2 _turn: ; @turn .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur w0, [x29, #-4] adrp x8, _current_thread@GOTPAGE ldr x8, [x8, _current_thread@GOTPAGEOFF] ldr x9, [x8] ldr x8, [x8] ldur w2, [x29, #-4] add x0, x9, #12 add x1, x8, #16 bl _turn_dxdy ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _print_stack ; -- Begin function print_stack .p2align 2 _print_stack: ; @print_stack .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, #576 adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] str x8, [sp, #40] ; 8-byte Folded Spill adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] add x0, sp, #56 mov w1, #0 mov x2, #256 bl _memset ldr x8, [sp, #40] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF bl _fprintf adrp x8, _current_thread@GOTPAGE ldr x8, [x8, _current_thread@GOTPAGEOFF] ldr x8, [x8] ldr x8, [x8, #24] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB8_2 b LBB8_1 LBB8_1: ldr x8, [sp, #40] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.2@PAGE add x1, x1, l_.str.2@PAGEOFF bl _fprintf b LBB8_7 LBB8_2: adrp x8, _current_thread@GOTPAGE ldr x8, [x8, _current_thread@GOTPAGEOFF] ldr x8, [x8] ldr x8, [x8, #24] str x8, [sp, #48] b LBB8_3 LBB8_3: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #48] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB8_6 b LBB8_4 LBB8_4: ; in Loop: Header=BB8_3 Depth=1 ldr x8, [sp, #48] ldr w9, [x8] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] add x8, sp, #56 str x8, [sp, #32] ; 8-byte Folded Spill str x8, [x9, #8] add x0, sp, #312 str x0, [sp, #16] ; 8-byte Folded Spill mov w1, #0 mov x2, #256 str x2, [sp, #24] ; 8-byte Folded Spill adrp x3, l_.str.3@PAGE add x3, x3, l_.str.3@PAGEOFF bl ___sprintf_chk ldr x1, [sp, #16] ; 8-byte Folded Reload ldr x2, [sp, #24] ; 8-byte Folded Reload ldr x0, [sp, #32] ; 8-byte Folded Reload bl ___strcpy_chk b LBB8_5 LBB8_5: ; in Loop: Header=BB8_3 Depth=1 ldr x8, [sp, #48] ldr x8, [x8, #8] str x8, [sp, #48] b LBB8_3 LBB8_6: ldr x8, [sp, #40] ; 8-byte Folded Reload ldr x1, [x8] add x0, sp, #56 bl _fputs ldr x8, [sp, #40] ; 8-byte Folded Reload ldr x1, [x8] mov w0, #10 bl _fputc b LBB8_7 LBB8_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, LBB8_9 b LBB8_8 LBB8_8: bl ___stack_chk_fail LBB8_9: add sp, sp, #576 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x28, x27, [sp], #32 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .globl _help ; -- Begin function help .p2align 2 _help: ; @help .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] str x8, [sp, #8] ; 8-byte Folded Spill ldr x0, [x8] adrp x1, l_.str.4@PAGE add x1, x1, l_.str.4@PAGEOFF bl _fprintf ldr x8, [sp, #8] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.5@PAGE add x1, x1, l_.str.5@PAGEOFF bl _fprintf ldr x8, [sp, #8] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.6@PAGE add x1, x1, l_.str.6@PAGEOFF bl _fprintf ldr x8, [sp, #8] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.7@PAGE add x1, x1, l_.str.7@PAGEOFF bl _fprintf ldr x8, [sp, #8] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.8@PAGE add x1, x1, l_.str.8@PAGEOFF bl _fprintf mov w0, #1 bl _exit .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #304 .cfi_def_cfa_offset 304 stp x28, x27, [sp, #272] ; 16-byte Folded Spill stp x29, x30, [sp, #288] ; 16-byte Folded Spill add x29, sp, #288 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w27, -24 .cfi_offset w28, -32 adrp x8, _world@GOTPAGE ldr x8, [x8, _world@GOTPAGEOFF] str x8, [sp, #56] ; 8-byte Folded Spill adrp x8, _current_thread@GOTPAGE ldr x8, [x8, _current_thread@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, _optarg@GOTPAGE ldr x8, [x8, _optarg@GOTPAGEOFF] str x8, [sp, #80] ; 8-byte Folded Spill adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] stur wzr, [x29, #-124] stur w0, [x29, #-128] stur x1, [x29, #-136] sub x0, x29, #120 adrp x1, l___const.main.options@PAGE add x1, x1, l___const.main.options@PAGEOFF mov x2, #96 bl _memcpy stur wzr, [x29, #-140] ; kill: def $x8 killed $xzr str xzr, [sp, #120] adrp x8, _opterr@GOTPAGE ldr x8, [x8, _opterr@GOTPAGEOFF] str wzr, [x8] b LBB10_1 LBB10_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-140] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB10_21 b LBB10_2 LBB10_2: ; in Loop: Header=BB10_1 Depth=1 ldur w0, [x29, #-128] ldur x1, [x29, #-136] adrp x2, l_.str.12@PAGE add x2, x2, l_.str.12@PAGEOFF sub x3, x29, #120 mov x4, #0 bl _getopt_long_only str w0, [sp, #52] ; 4-byte Folded Spill adds w8, w0, #1 cset w8, eq tbnz w8, #0, LBB10_19 b LBB10_3 LBB10_3: ; in Loop: Header=BB10_1 Depth=1 ldr w8, [sp, #52] ; 4-byte Folded Reload subs w8, w8, #1 cset w8, eq tbnz w8, #0, LBB10_16 b LBB10_4 LBB10_4: ; in Loop: Header=BB10_1 Depth=1 ldr w8, [sp, #52] ; 4-byte Folded Reload subs w8, w8, #63 cset w8, eq tbnz w8, #0, LBB10_15 b LBB10_5 LBB10_5: ; in Loop: Header=BB10_1 Depth=1 ldr w8, [sp, #52] ; 4-byte Folded Reload subs w8, w8, #100 cset w8, eq tbnz w8, #0, LBB10_12 b LBB10_6 LBB10_6: ; in Loop: Header=BB10_1 Depth=1 ldr w8, [sp, #52] ; 4-byte Folded Reload subs w8, w8, #115 cset w8, ne tbnz w8, #0, LBB10_20 b LBB10_7 LBB10_7: ; in Loop: Header=BB10_1 Depth=1 ldr x8, [sp, #80] ; 8-byte Folded Reload ldr x8, [x8] ldrsb w8, [x8] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB10_9 b LBB10_8 LBB10_8: ; in Loop: Header=BB10_1 Depth=1 bl _help b LBB10_9 LBB10_9: ; in Loop: Header=BB10_1 Depth=1 ldr x8, [sp, #80] ; 8-byte Folded Reload ldr x0, [x8] add x1, sp, #136 mov w2, #10 bl _strtol adrp x9, _size@PAGE mov x8, x0 str w8, [x9, _size@PAGEOFF] ldr x8, [sp, #136] ldrsb w8, [x8] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB10_11 b LBB10_10 LBB10_10: ; in Loop: Header=BB10_1 Depth=1 bl _help b LBB10_11 LBB10_11: ; in Loop: Header=BB10_1 Depth=1 b LBB10_20 LBB10_12: ; in Loop: Header=BB10_1 Depth=1 adrp x8, _debug@PAGE ldr w8, [x8, _debug@PAGEOFF] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB10_14 b LBB10_13 LBB10_13: ; in Loop: Header=BB10_1 Depth=1 bl _help b LBB10_14 LBB10_14: ; in Loop: Header=BB10_1 Depth=1 adrp x9, _debug@PAGE mov w8, #1 str w8, [x9, _debug@PAGEOFF] b LBB10_20 LBB10_15: ; in Loop: Header=BB10_1 Depth=1 bl _help b LBB10_16 LBB10_16: ; in Loop: Header=BB10_1 Depth=1 ldr x8, [sp, #120] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB10_18 b LBB10_17 LBB10_17: ; in Loop: Header=BB10_1 Depth=1 bl _help b LBB10_18 LBB10_18: ; in Loop: Header=BB10_1 Depth=1 ldr x8, [sp, #80] ; 8-byte Folded Reload ldr x0, [x8] bl _strdup str x0, [sp, #120] b LBB10_20 LBB10_19: ; in Loop: Header=BB10_1 Depth=1 mov w8, #1 stur w8, [x29, #-140] b LBB10_20 LBB10_20: ; in Loop: Header=BB10_1 Depth=1 b LBB10_1 LBB10_21: ldr x8, [sp, #120] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB10_23 b LBB10_22 LBB10_22: bl _help b LBB10_23 LBB10_23: adrp x8, _size@PAGE ldrsw x9, [x8, _size@PAGEOFF] mov x8, #8 mul x0, x8, x9 bl _malloc ldr x8, [sp, #56] ; 8-byte Folded Reload str x0, [x8] str wzr, [sp, #132] b LBB10_24 LBB10_24: ; =>This Loop Header: Depth=1 ; Child Loop BB10_26 Depth 2 ldr w8, [sp, #132] adrp x9, _size@PAGE ldr w9, [x9, _size@PAGEOFF] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB10_31 b LBB10_25 LBB10_25: ; in Loop: Header=BB10_24 Depth=1 adrp x8, _size@PAGE ldrsw x9, [x8, _size@PAGEOFF] mov x8, #4 mul x0, x8, x9 bl _malloc ldr x8, [sp, #56] ; 8-byte Folded Reload ldr x8, [x8] ldrsw x9, [sp, #132] str x0, [x8, x9, lsl #3] str wzr, [sp, #128] b LBB10_26 LBB10_26: ; Parent Loop BB10_24 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #128] adrp x9, _size@PAGE ldr w9, [x9, _size@PAGEOFF] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB10_29 b LBB10_27 LBB10_27: ; in Loop: Header=BB10_26 Depth=2 ldr x8, [sp, #56] ; 8-byte Folded Reload ldr x8, [x8] ldrsw x9, [sp, #132] ldr x9, [x8, x9, lsl #3] ldrsw x10, [sp, #128] mov w8, #32 str w8, [x9, x10, lsl #2] b LBB10_28 LBB10_28: ; in Loop: Header=BB10_26 Depth=2 ldr w8, [sp, #128] add w8, w8, #1 str w8, [sp, #128] b LBB10_26 LBB10_29: ; in Loop: Header=BB10_24 Depth=1 b LBB10_30 LBB10_30: ; in Loop: Header=BB10_24 Depth=1 ldr w8, [sp, #132] add w8, w8, #1 str w8, [sp, #132] b LBB10_24 LBB10_31: ldr x0, [sp, #120] adrp x1, l_.str.13@PAGE add x1, x1, l_.str.13@PAGEOFF bl _fopen str x0, [sp, #112] ldr x8, [sp, #112] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB10_33 b LBB10_32 LBB10_32: ldr x0, [sp, #120] bl _perror mov w8, #1 stur w8, [x29, #-124] b LBB10_141 LBB10_33: mov w8, #1 str w8, [sp, #128] b LBB10_34 LBB10_34: ; =>This Loop Header: Depth=1 ; Child Loop BB10_35 Depth 2 mov w8, #1 str w8, [sp, #132] b LBB10_35 LBB10_35: ; Parent Loop BB10_34 Depth=1 ; => This Inner Loop Header: Depth=2 ldr x0, [sp, #112] bl _fgetc strb w0, [sp, #111] ldrsb w8, [sp, #111] subs w8, w8, #10 cset w8, eq tbnz w8, #0, LBB10_37 b LBB10_36 LBB10_36: ; in Loop: Header=BB10_35 Depth=2 ldrsb w8, [sp, #111] adds w8, w8, #1 cset w8, ne tbnz w8, #0, LBB10_38 b LBB10_37 LBB10_37: ; in Loop: Header=BB10_34 Depth=1 b LBB10_39 LBB10_38: ; in Loop: Header=BB10_35 Depth=2 ldr x9, [sp, #56] ; 8-byte Folded Reload ldrsb w8, [sp, #111] ldr x9, [x9] ldrsw x10, [sp, #132] mov x11, x10 add w11, w11, #1 str w11, [sp, #132] ldr x9, [x9, x10, lsl #3] ldrsw x10, [sp, #128] str w8, [x9, x10, lsl #2] b LBB10_35 LBB10_39: ; in Loop: Header=BB10_34 Depth=1 ldrsb w8, [sp, #111] adds w8, w8, #1 cset w8, ne tbnz w8, #0, LBB10_41 b LBB10_40 LBB10_40: b LBB10_42 LBB10_41: ; in Loop: Header=BB10_34 Depth=1 ldr w8, [sp, #128] add w8, w8, #1 str w8, [sp, #128] b LBB10_34 LBB10_42: ldr x0, [sp, #112] bl _fclose ldr x8, [sp, #56] ; 8-byte Folded Reload ldr x8, [x8] ldr x8, [x8, #8] ldr w8, [x8, #4] subs w8, w8, #32 cset w8, ne tbnz w8, #0, LBB10_44 b LBB10_43 LBB10_43: ldr x8, [sp, #72] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.14@PAGE add x1, x1, l_.str.14@PAGEOFF bl _fprintf mov w8, #1 stur w8, [x29, #-124] b LBB10_141 LBB10_44: mov x0, #48 bl _malloc ldr x9, [sp, #64] ; 8-byte Folded Reload str x0, [x9] adrp x12, _threads@PAGE ldr w10, [x12, _threads@PAGEOFF] mov w8, #1 add w11, w10, #1 str w11, [x12, _threads@PAGEOFF] ldr x11, [x9] str w10, [x11] ldr x10, [x9] str w8, [x10, #8] ldr x10, [x9] str w8, [x10, #4] ldr x10, [x9] str w8, [x10, #16] ldr x10, [x9] str w8, [x10, #12] ldr x8, [x9] mov x0, #0 str xzr, [x8, #24] ldr x8, [x9] ldr x10, [x9] str x8, [x10, #40] ldr x9, [x9] str x8, [x9, #32] bl _time ; kill: def $w0 killed $w0 killed $x0 bl _srandom b LBB10_45 LBB10_45: ; =>This Inner Loop Header: Depth=1 mov w8, #4 str w8, [sp, #104] str w8, [sp, #100] adrp x8, _debug@PAGE ldr w8, [x8, _debug@PAGEOFF] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB10_47 b LBB10_46 LBB10_46: ; in Loop: Header=BB10_45 Depth=1 ldr x8, [sp, #64] ; 8-byte Folded Reload ldr x9, [sp, #72] ; 8-byte Folded Reload ldr x0, [x9] ldr x9, [x8] ldr w9, [x9] ; implicit-def: $x11 mov x11, x9 ldr x9, [x8] ldr w9, [x9, #4] ; implicit-def: $x10 mov x10, x9 ldr x8, [x8] ldr w9, [x8, #8] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x11, [x9] str x10, [x9, #8] str x8, [x9, #16] adrp x1, l_.str.15@PAGE add x1, x1, l_.str.15@PAGEOFF bl _fprintf b LBB10_47 LBB10_47: ; in Loop: Header=BB10_45 Depth=1 mov w0, #1 bl _can_turn subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB10_49 b LBB10_48 LBB10_48: ; in Loop: Header=BB10_45 Depth=1 mov w8, #1 str w8, [sp, #100] b LBB10_55 LBB10_49: ; in Loop: Header=BB10_45 Depth=1 mov w0, #2 bl _can_turn subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB10_51 b LBB10_50 LBB10_50: ; in Loop: Header=BB10_45 Depth=1 mov w8, #2 str w8, [sp, #100] b LBB10_54 LBB10_51: ; in Loop: Header=BB10_45 Depth=1 mov w0, #3 bl _can_turn subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB10_53 b LBB10_52 LBB10_52: ; in Loop: Header=BB10_45 Depth=1 mov w8, #3 str w8, [sp, #100] b LBB10_53 LBB10_53: ; in Loop: Header=BB10_45 Depth=1 b LBB10_54 LBB10_54: ; in Loop: Header=BB10_45 Depth=1 b LBB10_55 LBB10_55: ; in Loop: Header=BB10_45 Depth=1 mov w0, #-1 bl _can_turn subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB10_57 b LBB10_56 LBB10_56: ; in Loop: Header=BB10_45 Depth=1 mov w8, #1 str w8, [sp, #104] b LBB10_63 LBB10_57: ; in Loop: Header=BB10_45 Depth=1 mov w0, #-2 bl _can_turn subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB10_59 b LBB10_58 LBB10_58: ; in Loop: Header=BB10_45 Depth=1 mov w8, #2 str w8, [sp, #104] b LBB10_62 LBB10_59: ; in Loop: Header=BB10_45 Depth=1 mov w0, #-3 bl _can_turn subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB10_61 b LBB10_60 LBB10_60: ; in Loop: Header=BB10_45 Depth=1 mov w8, #3 str w8, [sp, #104] b LBB10_61 LBB10_61: ; in Loop: Header=BB10_45 Depth=1 b LBB10_62 LBB10_62: ; in Loop: Header=BB10_45 Depth=1 b LBB10_63 LBB10_63: ; in Loop: Header=BB10_45 Depth=1 mov w0, #0 bl _can_turn subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB10_67 b LBB10_64 LBB10_64: ; in Loop: Header=BB10_45 Depth=1 adrp x8, _debug@PAGE ldr w8, [x8, _debug@PAGEOFF] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB10_66 b LBB10_65 LBB10_65: ; in Loop: Header=BB10_45 Depth=1 ldr x8, [sp, #72] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.16@PAGE add x1, x1, l_.str.16@PAGEOFF bl _fprintf b LBB10_66 LBB10_66: ; in Loop: Header=BB10_45 Depth=1 b LBB10_140 LBB10_67: ; in Loop: Header=BB10_45 Depth=1 ldr w8, [sp, #100] ldr w9, [sp, #104] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB10_86 b LBB10_68 LBB10_68: ; in Loop: Header=BB10_45 Depth=1 ldr w8, [sp, #100] subs w8, w8, #1 ; kill: def $x8 killed $w8 str x8, [sp, #40] ; 8-byte Folded Spill subs x8, x8, #3 cset w8, hi tbnz w8, #0, LBB10_85 ; %bb.69: ; in Loop: Header=BB10_45 Depth=1 ldr x11, [sp, #40] ; 8-byte Folded Reload adrp x10, lJTI10_0@PAGE add x10, x10, lJTI10_0@PAGEOFF Ltmp0: adr x8, Ltmp0 ldrsw x9, [x10, x11, lsl #2] add x8, x8, x9 br x8 LBB10_70: ; in Loop: Header=BB10_45 Depth=1 adrp x8, _debug@PAGE ldr w8, [x8, _debug@PAGEOFF] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB10_72 b LBB10_71 LBB10_71: ; in Loop: Header=BB10_45 Depth=1 ldr x8, [sp, #72] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.17@PAGE add x1, x1, l_.str.17@PAGEOFF bl _fprintf b LBB10_72 LBB10_72: ; in Loop: Header=BB10_45 Depth=1 bl _random ands x8, x0, #0x400 cset w8, eq tbnz w8, #0, LBB10_74 b LBB10_73 LBB10_73: ; in Loop: Header=BB10_45 Depth=1 mov w0, #1 bl _turn b LBB10_75 LBB10_74: ; in Loop: Header=BB10_45 Depth=1 mov w0, #-1 bl _turn b LBB10_75 LBB10_75: ; in Loop: Header=BB10_45 Depth=1 b LBB10_85 LBB10_76: ; in Loop: Header=BB10_45 Depth=1 adrp x8, _debug@PAGE ldr w8, [x8, _debug@PAGEOFF] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB10_78 b LBB10_77 LBB10_77: ; in Loop: Header=BB10_45 Depth=1 ldr x8, [sp, #72] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.18@PAGE add x1, x1, l_.str.18@PAGEOFF bl _fprintf b LBB10_78 LBB10_78: ; in Loop: Header=BB10_45 Depth=1 mov w0, #2 bl _turn bl _new_thread ldr x9, [sp, #64] ; 8-byte Folded Reload ldr x8, [x9] ldr x8, [x8, #32] str x8, [x9] b LBB10_45 LBB10_79: adrp x8, _debug@PAGE ldr w8, [x8, _debug@PAGEOFF] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB10_81 b LBB10_80 LBB10_80: ldr x8, [sp, #72] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.19@PAGE add x1, x1, l_.str.19@PAGEOFF bl _fprintf b LBB10_81 LBB10_81: ldr x8, [sp, #72] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.20@PAGE add x1, x1, l_.str.20@PAGEOFF bl _fprintf mov w8, #1 stur w8, [x29, #-124] b LBB10_141 LBB10_82: ; in Loop: Header=BB10_45 Depth=1 adrp x8, _debug@PAGE ldr w8, [x8, _debug@PAGEOFF] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB10_84 b LBB10_83 LBB10_83: ; in Loop: Header=BB10_45 Depth=1 ldr x8, [sp, #72] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.21@PAGE add x1, x1, l_.str.21@PAGEOFF bl _fprintf b LBB10_84 LBB10_84: ; in Loop: Header=BB10_45 Depth=1 bl _kill_thread b LBB10_45 LBB10_85: ; in Loop: Header=BB10_45 Depth=1 b LBB10_139 LBB10_86: ; in Loop: Header=BB10_45 Depth=1 ldr w8, [sp, #100] ldr w9, [sp, #104] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB10_111 b LBB10_87 LBB10_87: ; in Loop: Header=BB10_45 Depth=1 ldr w8, [sp, #100] str w8, [sp, #36] ; 4-byte Folded Spill subs w8, w8, #1 cset w8, eq tbnz w8, #0, LBB10_90 b LBB10_88 LBB10_88: ; in Loop: Header=BB10_45 Depth=1 ldr w8, [sp, #36] ; 4-byte Folded Reload subs w8, w8, #2 cset w8, eq tbnz w8, #0, LBB10_93 b LBB10_89 LBB10_89: ; in Loop: Header=BB10_45 Depth=1 ldr w8, [sp, #36] ; 4-byte Folded Reload subs w8, w8, #3 cset w8, eq tbnz w8, #0, LBB10_100 b LBB10_108 LBB10_90: ; in Loop: Header=BB10_45 Depth=1 adrp x8, _debug@PAGE ldr w8, [x8, _debug@PAGEOFF] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB10_92 b LBB10_91 LBB10_91: ; in Loop: Header=BB10_45 Depth=1 ldr x8, [sp, #72] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.22@PAGE add x1, x1, l_.str.22@PAGEOFF bl _fprintf b LBB10_92 LBB10_92: ; in Loop: Header=BB10_45 Depth=1 mov w0, #1 bl _push b LBB10_108 LBB10_93: ; in Loop: Header=BB10_45 Depth=1 bl _pop str w0, [sp, #96] ldr w8, [sp, #96] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB10_97 b LBB10_94 LBB10_94: ; in Loop: Header=BB10_45 Depth=1 adrp x8, _debug@PAGE ldr w8, [x8, _debug@PAGEOFF] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB10_96 b LBB10_95 LBB10_95: ; in Loop: Header=BB10_45 Depth=1 ldr x8, [sp, #72] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.23@PAGE add x1, x1, l_.str.23@PAGEOFF bl _fprintf b LBB10_96 LBB10_96: ; in Loop: Header=BB10_45 Depth=1 mov w0, #2 bl _turn b LBB10_108 LBB10_97: ; in Loop: Header=BB10_45 Depth=1 adrp x8, _debug@PAGE ldr w8, [x8, _debug@PAGEOFF] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB10_99 b LBB10_98 LBB10_98: ; in Loop: Header=BB10_45 Depth=1 ldr x8, [sp, #72] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.24@PAGE add x1, x1, l_.str.24@PAGEOFF bl _fprintf b LBB10_99 LBB10_99: ; in Loop: Header=BB10_45 Depth=1 b LBB10_108 LBB10_100: ; in Loop: Header=BB10_45 Depth=1 bl _pop str w0, [sp, #96] bl _pop str w0, [sp, #88] bl _pop str w0, [sp, #92] ldr w8, [sp, #96] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB10_104 b LBB10_101 LBB10_101: ; in Loop: Header=BB10_45 Depth=1 adrp x8, _debug@PAGE ldr w8, [x8, _debug@PAGEOFF] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB10_103 b LBB10_102 LBB10_102: ; in Loop: Header=BB10_45 Depth=1 ldr x8, [sp, #72] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.25@PAGE add x1, x1, l_.str.25@PAGEOFF bl _fprintf b LBB10_103 LBB10_103: ; in Loop: Header=BB10_45 Depth=1 ldr x8, [sp, #56] ; 8-byte Folded Reload ldr x8, [x8] ldrsw x9, [sp, #92] ldr x8, [x8, x9, lsl #3] ldrsw x9, [sp, #88] ldr w0, [x8, x9, lsl #2] bl _push b LBB10_107 LBB10_104: ; in Loop: Header=BB10_45 Depth=1 adrp x8, _debug@PAGE ldr w8, [x8, _debug@PAGEOFF] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB10_106 b LBB10_105 LBB10_105: ; in Loop: Header=BB10_45 Depth=1 ldr x8, [sp, #72] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.26@PAGE add x1, x1, l_.str.26@PAGEOFF bl _fprintf b LBB10_106 LBB10_106: ; in Loop: Header=BB10_45 Depth=1 bl _pop ldr x8, [sp, #56] ; 8-byte Folded Reload ldr x8, [x8] ldrsw x9, [sp, #92] ldr x8, [x8, x9, lsl #3] ldrsw x9, [sp, #88] str w0, [x8, x9, lsl #2] b LBB10_107 LBB10_107: ; in Loop: Header=BB10_45 Depth=1 b LBB10_108 LBB10_108: ; in Loop: Header=BB10_45 Depth=1 adrp x8, _debug@PAGE ldr w8, [x8, _debug@PAGEOFF] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB10_110 b LBB10_109 LBB10_109: ; in Loop: Header=BB10_45 Depth=1 bl _print_stack b LBB10_110 LBB10_110: ; in Loop: Header=BB10_45 Depth=1 ldr w0, [sp, #100] bl _turn b LBB10_138 LBB10_111: ; in Loop: Header=BB10_45 Depth=1 ldr w8, [sp, #104] str w8, [sp, #32] ; 4-byte Folded Spill subs w8, w8, #1 cset w8, eq tbnz w8, #0, LBB10_114 b LBB10_112 LBB10_112: ; in Loop: Header=BB10_45 Depth=1 ldr w8, [sp, #32] ; 4-byte Folded Reload subs w8, w8, #2 cset w8, eq tbnz w8, #0, LBB10_117 b LBB10_113 LBB10_113: ; in Loop: Header=BB10_45 Depth=1 ldr w8, [sp, #32] ; 4-byte Folded Reload subs w8, w8, #3 cset w8, eq tbnz w8, #0, LBB10_124 b LBB10_135 LBB10_114: ; in Loop: Header=BB10_45 Depth=1 adrp x8, _debug@PAGE ldr w8, [x8, _debug@PAGEOFF] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB10_116 b LBB10_115 LBB10_115: ; in Loop: Header=BB10_45 Depth=1 ldr x8, [sp, #72] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.27@PAGE add x1, x1, l_.str.27@PAGEOFF bl _fprintf b LBB10_116 LBB10_116: ; in Loop: Header=BB10_45 Depth=1 bl _pop str w0, [sp, #88] bl _pop str w0, [sp, #92] ldr w8, [sp, #92] ldr w9, [sp, #88] subs w0, w8, w9 bl _push b LBB10_135 LBB10_117: ; in Loop: Header=BB10_45 Depth=1 bl _pop str w0, [sp, #96] ldr w8, [sp, #96] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB10_121 b LBB10_118 LBB10_118: ; in Loop: Header=BB10_45 Depth=1 adrp x8, _debug@PAGE ldr w8, [x8, _debug@PAGEOFF] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB10_120 b LBB10_119 LBB10_119: ; in Loop: Header=BB10_45 Depth=1 ldr x8, [sp, #72] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.28@PAGE add x1, x1, l_.str.28@PAGEOFF bl _fprintf b LBB10_120 LBB10_120: ; in Loop: Header=BB10_45 Depth=1 mov w0, #-2 bl _turn b LBB10_135 LBB10_121: ; in Loop: Header=BB10_45 Depth=1 adrp x8, _debug@PAGE ldr w8, [x8, _debug@PAGEOFF] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB10_123 b LBB10_122 LBB10_122: ; in Loop: Header=BB10_45 Depth=1 ldr x8, [sp, #72] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.29@PAGE add x1, x1, l_.str.29@PAGEOFF bl _fprintf b LBB10_123 LBB10_123: ; in Loop: Header=BB10_45 Depth=1 b LBB10_135 LBB10_124: ; in Loop: Header=BB10_45 Depth=1 bl _pop str w0, [sp, #96] ldr w8, [sp, #96] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB10_131 b LBB10_125 LBB10_125: ; in Loop: Header=BB10_45 Depth=1 bl _pop str w0, [sp, #96] adrp x8, _debug@PAGE ldr w8, [x8, _debug@PAGEOFF] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB10_127 b LBB10_126 LBB10_126: ; in Loop: Header=BB10_45 Depth=1 ldr x8, [sp, #72] ; 8-byte Folded Reload ldr x0, [x8] ldr w9, [sp, #96] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x1, l_.str.30@PAGE add x1, x1, l_.str.30@PAGEOFF bl _fprintf b LBB10_127 LBB10_127: ; in Loop: Header=BB10_45 Depth=1 adrp x8, _debug@PAGE ldr w8, [x8, _debug@PAGEOFF] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB10_129 b LBB10_128 LBB10_128: ; in Loop: Header=BB10_45 Depth=1 mov w0, #1 bl _isatty subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB10_130 b LBB10_129 LBB10_129: ; in Loop: Header=BB10_45 Depth=1 ldr w0, [sp, #96] bl _putchar b LBB10_130 LBB10_130: ; in Loop: Header=BB10_45 Depth=1 b LBB10_134 LBB10_131: ; in Loop: Header=BB10_45 Depth=1 bl _getchar str w0, [sp, #96] adrp x8, _debug@PAGE ldr w8, [x8, _debug@PAGEOFF] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB10_133 b LBB10_132 LBB10_132: ; in Loop: Header=BB10_45 Depth=1 ldr x8, [sp, #72] ; 8-byte Folded Reload ldr x0, [x8] ldr w9, [sp, #96] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x1, l_.str.31@PAGE add x1, x1, l_.str.31@PAGEOFF bl _fprintf b LBB10_133 LBB10_133: ; in Loop: Header=BB10_45 Depth=1 ldr w0, [sp, #96] bl _push b LBB10_134 LBB10_134: ; in Loop: Header=BB10_45 Depth=1 b LBB10_135 LBB10_135: ; in Loop: Header=BB10_45 Depth=1 adrp x8, _debug@PAGE ldr w8, [x8, _debug@PAGEOFF] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB10_137 b LBB10_136 LBB10_136: ; in Loop: Header=BB10_45 Depth=1 bl _print_stack b LBB10_137 LBB10_137: ; in Loop: Header=BB10_45 Depth=1 ldr w9, [sp, #104] mov w8, #0 subs w0, w8, w9 bl _turn b LBB10_138 LBB10_138: ; in Loop: Header=BB10_45 Depth=1 b LBB10_139 LBB10_139: ; in Loop: Header=BB10_45 Depth=1 b LBB10_140 LBB10_140: ; in Loop: Header=BB10_45 Depth=1 ldr x9, [sp, #64] ; 8-byte Folded Reload ldr x8, [x9] ldr w11, [x8, #12] ldr x10, [x9] ldr w8, [x10, #4] add w8, w8, w11 str w8, [x10, #4] ldr x8, [x9] ldr w11, [x8, #16] ldr x10, [x9] ldr w8, [x10, #8] add w8, w8, w11 str w8, [x10, #8] ldr x8, [x9] ldr x8, [x8, #32] str x8, [x9] b LBB10_45 LBB10_141: ldur w8, [x29, #-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, LBB10_143 b LBB10_142 LBB10_142: bl ___stack_chk_fail LBB10_143: ldr w0, [sp, #28] ; 4-byte Folded Reload ldp x29, x30, [sp, #288] ; 16-byte Folded Reload ldp x28, x27, [sp, #272] ; 16-byte Folded Reload add sp, sp, #304 ret .cfi_endproc .p2align 2 lJTI10_0: .long LBB10_70-Ltmp0 .long LBB10_76-Ltmp0 .long LBB10_79-Ltmp0 .long LBB10_82-Ltmp0 ; -- End function .section __DATA,__data .globl _size ; @size .p2align 2 _size: .long 256 ; 0x100 .globl _debug ; @debug .zerofill __DATA,__common,_debug,4,2 .globl _threads ; @threads .zerofill __DATA,__common,_threads,4,2 .comm _current_thread,8,3 ; @current_thread .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Insufficient stack!\n" .comm _world,8,3 ; @world l_.str.1: ; @.str.1 .asciz "The new stack is" l_.str.2: ; @.str.2 .asciz " empty.\n" l_.str.3: ; @.str.3 .asciz " [%d]%s" l_.str.4: ; @.str.4 .asciz "Valid options:\n" l_.str.5: ; @.str.5 .asciz "-help: Show this screen.\n" l_.str.6: ; @.str.6 .asciz "-size <number>: Set the memory size.\n" l_.str.7: ; @.str.7 .asciz "-debug: Print debugging information.\n" l_.str.8: ; @.str.8 .asciz "There should also be a non-option argument naming the program to be run.\n" l_.str.9: ; @.str.9 .asciz "help" l_.str.10: ; @.str.10 .asciz "size" l_.str.11: ; @.str.11 .asciz "debug" .section __DATA,__const .p2align 3 ; @__const.main.options l___const.main.options: .quad l_.str.9 .long 0 ; 0x0 .space 4 .quad 0 .long 63 ; 0x3f .space 4 .quad l_.str.10 .long 1 ; 0x1 .space 4 .quad 0 .long 115 ; 0x73 .space 4 .quad l_.str.11 .long 0 ; 0x0 .space 4 .quad 0 .long 100 ; 0x64 .space 4 .section __TEXT,__cstring,cstring_literals l_.str.12: ; @.str.12 .asciz "-?" l_.str.13: ; @.str.13 .asciz "r" l_.str.14: ; @.str.14 .asciz "Starting point for program is empty.\n" l_.str.15: ; @.str.15 .asciz "Thread %3d at (%3d,%3d) " l_.str.16: ; @.str.16 .asciz "is happily marching along (0 degrees).\n" l_.str.17: ; @.str.17 .asciz "faces a difficult choice (45 or 315 degrees).\n" l_.str.18: ; @.str.18 .asciz "spawns a new thread (90 and 270 degrees).\n" l_.str.19: ; @.str.19 .asciz "is confused (135 and 225 degrees).\n" l_.str.20: ; @.str.20 .asciz "The programmer has not yet decided what a 135/225 T-junction should do!" l_.str.21: ; @.str.21 .asciz "bumps into a dead end (180 degrees).\n" l_.str.22: ; @.str.22 .asciz "places a one on his stack (45 degrees).\n" l_.str.23: ; @.str.23 .asciz "is afraid from the turn (90 degrees).\n" l_.str.24: ; @.str.24 .asciz "happily marches through the turn (90 degrees).\n" l_.str.25: ; @.str.25 .asciz "gets a number for his stack (135 degrees).\n" l_.str.26: ; @.str.26 .asciz "puts a number in his stack down (135 degrees).\n" l_.str.27: ; @.str.27 .asciz "sits down to work out a subtraction (315 degrees).\n" l_.str.28: ; @.str.28 .asciz "is afraid from the turn (270 degrees).\n" l_.str.29: ; @.str.29 .asciz "happily marches through the turn (270 degrees).\n" l_.str.30: ; @.str.30 .asciz "wishes you to know that \"%c\" (225 degrees).\n" l_.str.31: ; @.str.31 .asciz "discovers that \"%c\" (225 degrees).\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _push ## -- Begin function push .p2align 4, 0x90 _push: ## @push .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl %edi, -4(%rbp) movl $16, %edi callq _malloc movq %rax, -16(%rbp) movl -4(%rbp), %ecx movq -16(%rbp), %rax movl %ecx, (%rax) movq _current_thread@GOTPCREL(%rip), %rax movq (%rax), %rax movq 24(%rax), %rcx movq -16(%rbp), %rax movq %rcx, 8(%rax) movq -16(%rbp), %rcx movq _current_thread@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rcx, 24(%rax) addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _pop ## -- Begin function pop .p2align 4, 0x90 _pop: ## @pop .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq _current_thread@GOTPCREL(%rip), %rax movq (%rax), %rax movq 24(%rax), %rax movq %rax, -8(%rbp) cmpq $0, -8(%rbp) jne LBB1_2 ## %bb.1: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str(%rip), %rsi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _fprintf movl $1, %edi callq _exit LBB1_2: movq -8(%rbp), %rax movl (%rax), %eax movl %eax, -12(%rbp) movq -8(%rbp), %rax movq 8(%rax), %rcx movq _current_thread@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rcx, 24(%rax) movq -8(%rbp), %rdi callq _free movl -12(%rbp), %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _copy_stack ## -- Begin function copy_stack .p2align 4, 0x90 _copy_stack: ## @copy_stack .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) movq $0, -32(%rbp) movq -16(%rbp), %rax cmpq $0, 24(%rax) jne LBB2_2 ## %bb.1: movq -8(%rbp), %rax movq $0, 24(%rax) jmp LBB2_9 LBB2_2: movq -16(%rbp), %rax movq 24(%rax), %rax movq %rax, -40(%rbp) LBB2_3: ## =>This Inner Loop Header: Depth=1 cmpq $0, -40(%rbp) je LBB2_9 ## %bb.4: ## in Loop: Header=BB2_3 Depth=1 movl $16, %edi callq _malloc movq %rax, -24(%rbp) movq -40(%rbp), %rax movl (%rax), %ecx movq -24(%rbp), %rax movl %ecx, (%rax) movq -24(%rbp), %rax movq $0, 8(%rax) cmpq $0, -32(%rbp) jne LBB2_6 ## %bb.5: ## in Loop: Header=BB2_3 Depth=1 movq -24(%rbp), %rcx movq -8(%rbp), %rax movq %rcx, 24(%rax) jmp LBB2_7 LBB2_6: ## in Loop: Header=BB2_3 Depth=1 movq -24(%rbp), %rcx movq -32(%rbp), %rax movq %rcx, 8(%rax) LBB2_7: ## in Loop: Header=BB2_3 Depth=1 movq -24(%rbp), %rax movq %rax, -32(%rbp) ## %bb.8: ## in Loop: Header=BB2_3 Depth=1 movq -40(%rbp), %rax movq 8(%rax), %rax movq %rax, -40(%rbp) jmp LBB2_3 LBB2_9: addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _new_thread ## -- Begin function new_thread .p2align 4, 0x90 _new_thread: ## @new_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 movl $48, %edi callq _malloc movq %rax, -8(%rbp) movl _threads(%rip), %ecx movl %ecx, %eax addl $1, %eax movl %eax, _threads(%rip) movq -8(%rbp), %rax movl %ecx, (%rax) movq _current_thread@GOTPCREL(%rip), %rax movq (%rax), %rax movl 4(%rax), %ecx movq -8(%rbp), %rax movl %ecx, 4(%rax) movq _current_thread@GOTPCREL(%rip), %rax movq (%rax), %rax movl 8(%rax), %ecx movq -8(%rbp), %rax movl %ecx, 8(%rax) movq _current_thread@GOTPCREL(%rip), %rax movq (%rax), %rax xorl %ecx, %ecx subl 12(%rax), %ecx movq -8(%rbp), %rax movl %ecx, 12(%rax) movq _current_thread@GOTPCREL(%rip), %rax movq (%rax), %rax xorl %ecx, %ecx subl 16(%rax), %ecx movq -8(%rbp), %rax movl %ecx, 16(%rax) movq -8(%rbp), %rdi movq _current_thread@GOTPCREL(%rip), %rax movq (%rax), %rsi callq _copy_stack movq _current_thread@GOTPCREL(%rip), %rax movq (%rax), %rax movq 32(%rax), %rcx movq -8(%rbp), %rax movq %rcx, 32(%rax) movq _current_thread@GOTPCREL(%rip), %rax movq (%rax), %rcx movq -8(%rbp), %rax movq %rcx, 40(%rax) movq -8(%rbp), %rcx movq _current_thread@GOTPCREL(%rip), %rax movq (%rax), %rax movq 32(%rax), %rax movq %rcx, 40(%rax) movq -8(%rbp), %rcx movq _current_thread@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rcx, 32(%rax) addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _kill_thread ## -- Begin function kill_thread .p2align 4, 0x90 _kill_thread: ## @kill_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 _current_thread@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) LBB4_1: ## =>This Inner Loop Header: Depth=1 movq -8(%rbp), %rax cmpq $0, 24(%rax) je LBB4_3 ## %bb.2: ## in Loop: Header=BB4_1 Depth=1 callq _pop jmp LBB4_1 LBB4_3: movq -8(%rbp), %rax movq 32(%rax), %rax cmpq -8(%rbp), %rax jne LBB4_5 ## %bb.4: xorl %edi, %edi callq _exit LBB4_5: movq -8(%rbp), %rax movq 32(%rax), %rcx movq -8(%rbp), %rax movq 40(%rax), %rax movq %rcx, 32(%rax) movq -8(%rbp), %rax movq 40(%rax), %rcx movq -8(%rbp), %rax movq 32(%rax), %rax movq %rcx, 40(%rax) movq -8(%rbp), %rax movq 32(%rax), %rcx movq _current_thread@GOTPCREL(%rip), %rax movq %rcx, (%rax) movq -8(%rbp), %rdi callq _free addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _turn_dxdy ## -- Begin function turn_dxdy .p2align 4, 0x90 _turn_dxdy: ## @turn_dxdy .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) movl %edx, -20(%rbp) movl -20(%rbp), %eax movl $8, %ecx cltd idivl %ecx movl %edx, -20(%rbp) cmpl $0, -20(%rbp) jge LBB5_2 ## %bb.1: movl -20(%rbp), %eax addl $8, %eax movl %eax, -20(%rbp) LBB5_2: jmp LBB5_3 LBB5_3: ## =>This Inner Loop Header: Depth=1 movl -20(%rbp), %eax movl %eax, %ecx addl $-1, %ecx movl %ecx, -20(%rbp) cmpl $0, %eax jle LBB5_9 ## %bb.4: ## in Loop: Header=BB5_3 Depth=1 movq -8(%rbp), %rax movl (%rax), %eax movl %eax, -24(%rbp) movq -16(%rbp), %rax movl (%rax), %eax movl %eax, -28(%rbp) movl -28(%rbp), %ecx addl -24(%rbp), %ecx movq -8(%rbp), %rax movl %ecx, (%rax) movl -28(%rbp), %ecx subl -24(%rbp), %ecx movq -16(%rbp), %rax movl %ecx, (%rax) movq -8(%rbp), %rax movl (%rax), %edi callq _abs cmpl $2, %eax jne LBB5_6 ## %bb.5: ## in Loop: Header=BB5_3 Depth=1 movq -8(%rbp), %rax movq %rax, -40(%rbp) ## 8-byte Spill movl (%rax), %eax movl $2, %ecx cltd idivl %ecx movl %eax, %ecx movq -40(%rbp), %rax ## 8-byte Reload movl %ecx, (%rax) LBB5_6: ## in Loop: Header=BB5_3 Depth=1 movq -16(%rbp), %rax movl (%rax), %edi callq _abs cmpl $2, %eax jne LBB5_8 ## %bb.7: ## in Loop: Header=BB5_3 Depth=1 movq -16(%rbp), %rax movq %rax, -48(%rbp) ## 8-byte Spill movl (%rax), %eax movl $2, %ecx cltd idivl %ecx movl %eax, %ecx movq -48(%rbp), %rax ## 8-byte Reload movl %ecx, (%rax) LBB5_8: ## in Loop: Header=BB5_3 Depth=1 jmp LBB5_3 LBB5_9: addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _can_turn ## -- Begin function can_turn .p2align 4, 0x90 _can_turn: ## @can_turn .cfi_startproc ## %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 _current_thread@GOTPCREL(%rip), %rax movq (%rax), %rax movl 12(%rax), %eax movl %eax, -8(%rbp) movq _current_thread@GOTPCREL(%rip), %rax movq (%rax), %rax movl 16(%rax), %eax movl %eax, -12(%rbp) movl -4(%rbp), %edx leaq -8(%rbp), %rdi leaq -12(%rbp), %rsi callq _turn_dxdy movq _world@GOTPCREL(%rip), %rax movq (%rax), %rax movq _current_thread@GOTPCREL(%rip), %rcx movq (%rcx), %rcx movl 4(%rcx), %ecx addl -8(%rbp), %ecx movslq %ecx, %rcx movq (%rax,%rcx,8), %rax movq _current_thread@GOTPCREL(%rip), %rcx movq (%rcx), %rcx movl 8(%rcx), %ecx addl -12(%rbp), %ecx movslq %ecx, %rcx cmpl $32, (%rax,%rcx,4) setne %al andb $1, %al movzbl %al, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _turn ## -- Begin function turn .p2align 4, 0x90 _turn: ## @turn .cfi_startproc ## %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 _current_thread@GOTPCREL(%rip), %rax movq (%rax), %rdi addq $12, %rdi movq _current_thread@GOTPCREL(%rip), %rax movq (%rax), %rsi addq $16, %rsi movl -4(%rbp), %edx callq _turn_dxdy addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _print_stack ## -- Begin function print_stack .p2align 4, 0x90 _print_stack: ## @print_stack .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $544, %rsp ## imm = 0x220 movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) leaq -528(%rbp), %rdi xorl %esi, %esi movl $256, %edx ## imm = 0x100 callq _memset movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.1(%rip), %rsi movb $0, %al callq _fprintf movq _current_thread@GOTPCREL(%rip), %rax movq (%rax), %rax cmpq $0, 24(%rax) jne LBB8_2 ## %bb.1: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.2(%rip), %rsi movb $0, %al callq _fprintf jmp LBB8_7 LBB8_2: movq _current_thread@GOTPCREL(%rip), %rax movq (%rax), %rax movq 24(%rax), %rax movq %rax, -536(%rbp) LBB8_3: ## =>This Inner Loop Header: Depth=1 cmpq $0, -536(%rbp) je LBB8_6 ## %bb.4: ## in Loop: Header=BB8_3 Depth=1 leaq -272(%rbp), %rdi movq -536(%rbp), %rax movl (%rax), %r8d leaq -528(%rbp), %r9 xorl %esi, %esi movl $256, %edx ## imm = 0x100 leaq L_.str.3(%rip), %rcx movb $0, %al callq ___sprintf_chk leaq -528(%rbp), %rdi leaq -272(%rbp), %rsi movl $256, %edx ## imm = 0x100 callq ___strcpy_chk ## %bb.5: ## in Loop: Header=BB8_3 Depth=1 movq -536(%rbp), %rax movq 8(%rax), %rax movq %rax, -536(%rbp) jmp LBB8_3 LBB8_6: leaq -528(%rbp), %rdi movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rsi callq _fputs movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rsi movl $10, %edi callq _fputc LBB8_7: movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB8_9 ## %bb.8: addq $544, %rsp ## imm = 0x220 popq %rbp retq LBB8_9: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _help ## -- Begin function help .p2align 4, 0x90 _help: ## @help .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq ___stderrp@GOTPCREL(%rip), %rax movq %rax, -16(%rbp) ## 8-byte Spill movq (%rax), %rdi leaq L_.str.4(%rip), %rsi xorl %eax, %eax ## kill: def $al killed $al killed $eax movb %al, -1(%rbp) ## 1-byte Spill callq _fprintf movq -16(%rbp), %rcx ## 8-byte Reload ## kill: def $edx killed $eax movb -1(%rbp), %al ## 1-byte Reload movq (%rcx), %rdi leaq L_.str.5(%rip), %rsi callq _fprintf movq -16(%rbp), %rcx ## 8-byte Reload ## kill: def $edx killed $eax movb -1(%rbp), %al ## 1-byte Reload movq (%rcx), %rdi leaq L_.str.6(%rip), %rsi callq _fprintf movq -16(%rbp), %rcx ## 8-byte Reload ## kill: def $edx killed $eax movb -1(%rbp), %al ## 1-byte Reload movq (%rcx), %rdi leaq L_.str.7(%rip), %rsi callq _fprintf movq -16(%rbp), %rcx ## 8-byte Reload ## kill: def $edx killed $eax movb -1(%rbp), %al ## 1-byte Reload movq (%rcx), %rdi leaq L_.str.8(%rip), %rsi callq _fprintf movl $1, %edi callq _exit .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $224, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -116(%rbp) movl %edi, -120(%rbp) movq %rsi, -128(%rbp) leaq -112(%rbp), %rdi leaq l___const.main.options(%rip), %rsi movl $96, %edx callq _memcpy movl $0, -132(%rbp) movq $0, -160(%rbp) movq _opterr@GOTPCREL(%rip), %rax movl $0, (%rax) LBB10_1: ## =>This Inner Loop Header: Depth=1 cmpl $0, -132(%rbp) setne %al xorb $-1, %al testb $1, %al jne LBB10_2 jmp LBB10_17 LBB10_2: ## in Loop: Header=BB10_1 Depth=1 movl -120(%rbp), %edi movq -128(%rbp), %rsi leaq L_.str.12(%rip), %rdx xorl %eax, %eax movl %eax, %r8d leaq -112(%rbp), %rcx callq _getopt_long_only movl %eax, %ecx movl %ecx, -196(%rbp) ## 4-byte Spill subl $-1, %eax je LBB10_15 jmp LBB10_140 LBB10_140: ## in Loop: Header=BB10_1 Depth=1 movl -196(%rbp), %eax ## 4-byte Reload subl $1, %eax je LBB10_12 jmp LBB10_141 LBB10_141: ## in Loop: Header=BB10_1 Depth=1 movl -196(%rbp), %eax ## 4-byte Reload subl $63, %eax je LBB10_11 jmp LBB10_142 LBB10_142: ## in Loop: Header=BB10_1 Depth=1 movl -196(%rbp), %eax ## 4-byte Reload subl $100, %eax je LBB10_8 jmp LBB10_143 LBB10_143: ## in Loop: Header=BB10_1 Depth=1 movl -196(%rbp), %eax ## 4-byte Reload subl $115, %eax jne LBB10_16 jmp LBB10_3 LBB10_3: ## in Loop: Header=BB10_1 Depth=1 movq _optarg@GOTPCREL(%rip), %rax movq (%rax), %rax movsbl (%rax), %eax cmpl $0, %eax jne LBB10_5 ## %bb.4: ## in Loop: Header=BB10_1 Depth=1 callq _help LBB10_5: ## in Loop: Header=BB10_1 Depth=1 movq _optarg@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq -144(%rbp), %rsi movl $10, %edx callq _strtol ## kill: def $eax killed $eax killed $rax movl %eax, _size(%rip) movq -144(%rbp), %rax movsbl (%rax), %eax cmpl $0, %eax je LBB10_7 ## %bb.6: ## in Loop: Header=BB10_1 Depth=1 callq _help LBB10_7: ## in Loop: Header=BB10_1 Depth=1 jmp LBB10_16 LBB10_8: ## in Loop: Header=BB10_1 Depth=1 cmpl $0, _debug(%rip) je LBB10_10 ## %bb.9: ## in Loop: Header=BB10_1 Depth=1 callq _help LBB10_10: ## in Loop: Header=BB10_1 Depth=1 movl $1, _debug(%rip) jmp LBB10_16 LBB10_11: ## in Loop: Header=BB10_1 Depth=1 callq _help LBB10_12: ## in Loop: Header=BB10_1 Depth=1 cmpq $0, -160(%rbp) je LBB10_14 ## %bb.13: ## in Loop: Header=BB10_1 Depth=1 callq _help LBB10_14: ## in Loop: Header=BB10_1 Depth=1 movq _optarg@GOTPCREL(%rip), %rax movq (%rax), %rdi callq _strdup movq %rax, -160(%rbp) jmp LBB10_16 LBB10_15: ## in Loop: Header=BB10_1 Depth=1 movl $1, -132(%rbp) LBB10_16: ## in Loop: Header=BB10_1 Depth=1 jmp LBB10_1 LBB10_17: cmpq $0, -160(%rbp) jne LBB10_19 ## %bb.18: callq _help LBB10_19: movslq _size(%rip), %rdi shlq $3, %rdi callq _malloc movq %rax, %rcx movq _world@GOTPCREL(%rip), %rax movq %rcx, (%rax) movl $0, -148(%rbp) LBB10_20: ## =>This Loop Header: Depth=1 ## Child Loop BB10_22 Depth 2 movl -148(%rbp), %eax cmpl _size(%rip), %eax jge LBB10_27 ## %bb.21: ## in Loop: Header=BB10_20 Depth=1 movslq _size(%rip), %rdi shlq $2, %rdi callq _malloc movq %rax, %rdx movq _world@GOTPCREL(%rip), %rax movq (%rax), %rax movslq -148(%rbp), %rcx movq %rdx, (%rax,%rcx,8) movl $0, -152(%rbp) LBB10_22: ## Parent Loop BB10_20 Depth=1 ## => This Inner Loop Header: Depth=2 movl -152(%rbp), %eax cmpl _size(%rip), %eax jge LBB10_25 ## %bb.23: ## in Loop: Header=BB10_22 Depth=2 movq _world@GOTPCREL(%rip), %rax movq (%rax), %rax movslq -148(%rbp), %rcx movq (%rax,%rcx,8), %rax movslq -152(%rbp), %rcx movl $32, (%rax,%rcx,4) ## %bb.24: ## in Loop: Header=BB10_22 Depth=2 movl -152(%rbp), %eax addl $1, %eax movl %eax, -152(%rbp) jmp LBB10_22 LBB10_25: ## in Loop: Header=BB10_20 Depth=1 jmp LBB10_26 LBB10_26: ## in Loop: Header=BB10_20 Depth=1 movl -148(%rbp), %eax addl $1, %eax movl %eax, -148(%rbp) jmp LBB10_20 LBB10_27: movq -160(%rbp), %rdi leaq L_.str.13(%rip), %rsi callq _fopen movq %rax, -168(%rbp) cmpq $0, -168(%rbp) jne LBB10_29 ## %bb.28: movq -160(%rbp), %rdi callq _perror movl $1, -116(%rbp) jmp LBB10_132 LBB10_29: movl $1, -152(%rbp) LBB10_30: ## =>This Loop Header: Depth=1 ## Child Loop BB10_31 Depth 2 movl $1, -148(%rbp) LBB10_31: ## Parent Loop BB10_30 Depth=1 ## => This Inner Loop Header: Depth=2 movq -168(%rbp), %rdi callq _fgetc ## kill: def $al killed $al killed $eax movb %al, -169(%rbp) movsbl -169(%rbp), %eax cmpl $10, %eax je LBB10_33 ## %bb.32: ## in Loop: Header=BB10_31 Depth=2 movsbl -169(%rbp), %eax cmpl $-1, %eax jne LBB10_34 LBB10_33: ## in Loop: Header=BB10_30 Depth=1 jmp LBB10_35 LBB10_34: ## in Loop: Header=BB10_31 Depth=2 movsbl -169(%rbp), %edx movq _world@GOTPCREL(%rip), %rax movq (%rax), %rax movl -148(%rbp), %ecx movl %ecx, %esi addl $1, %esi movl %esi, -148(%rbp) movslq %ecx, %rcx movq (%rax,%rcx,8), %rax movslq -152(%rbp), %rcx movl %edx, (%rax,%rcx,4) jmp LBB10_31 LBB10_35: ## in Loop: Header=BB10_30 Depth=1 movsbl -169(%rbp), %eax cmpl $-1, %eax jne LBB10_37 ## %bb.36: jmp LBB10_38 LBB10_37: ## in Loop: Header=BB10_30 Depth=1 movl -152(%rbp), %eax addl $1, %eax movl %eax, -152(%rbp) jmp LBB10_30 LBB10_38: movq -168(%rbp), %rdi callq _fclose movq _world@GOTPCREL(%rip), %rax movq (%rax), %rax movq 8(%rax), %rax cmpl $32, 4(%rax) jne LBB10_40 ## %bb.39: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.14(%rip), %rsi movb $0, %al callq _fprintf movl $1, -116(%rbp) jmp LBB10_132 LBB10_40: movl $48, %edi callq _malloc movq %rax, %rcx movq _current_thread@GOTPCREL(%rip), %rax movq %rcx, (%rax) movl _threads(%rip), %ecx movl %ecx, %eax addl $1, %eax movl %eax, _threads(%rip) movq _current_thread@GOTPCREL(%rip), %rax movq (%rax), %rax movl %ecx, (%rax) movq _current_thread@GOTPCREL(%rip), %rax movq (%rax), %rax movl $1, 8(%rax) movq _current_thread@GOTPCREL(%rip), %rax movq (%rax), %rax movl $1, 4(%rax) movq _current_thread@GOTPCREL(%rip), %rax movq (%rax), %rax movl $1, 16(%rax) movq _current_thread@GOTPCREL(%rip), %rax movq (%rax), %rax movl $1, 12(%rax) movq _current_thread@GOTPCREL(%rip), %rax movq (%rax), %rax movq $0, 24(%rax) movq _current_thread@GOTPCREL(%rip), %rax movq (%rax), %rcx movq _current_thread@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rcx, 40(%rax) movq _current_thread@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rcx, 32(%rax) xorl %eax, %eax movl %eax, %edi callq _time movl %eax, %edi callq _srandom LBB10_41: ## =>This Inner Loop Header: Depth=1 movl $4, -176(%rbp) movl $4, -180(%rbp) cmpl $0, _debug(%rip) je LBB10_43 ## %bb.42: ## in Loop: Header=BB10_41 Depth=1 movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movq _current_thread@GOTPCREL(%rip), %rax movq (%rax), %rax movl (%rax), %edx movq _current_thread@GOTPCREL(%rip), %rax movq (%rax), %rax movl 4(%rax), %ecx movq _current_thread@GOTPCREL(%rip), %rax movq (%rax), %rax movl 8(%rax), %r8d leaq L_.str.15(%rip), %rsi movb $0, %al callq _fprintf LBB10_43: ## in Loop: Header=BB10_41 Depth=1 movl $1, %edi callq _can_turn cmpl $0, %eax je LBB10_45 ## %bb.44: ## in Loop: Header=BB10_41 Depth=1 movl $1, -180(%rbp) jmp LBB10_51 LBB10_45: ## in Loop: Header=BB10_41 Depth=1 movl $2, %edi callq _can_turn cmpl $0, %eax je LBB10_47 ## %bb.46: ## in Loop: Header=BB10_41 Depth=1 movl $2, -180(%rbp) jmp LBB10_50 LBB10_47: ## in Loop: Header=BB10_41 Depth=1 movl $3, %edi callq _can_turn cmpl $0, %eax je LBB10_49 ## %bb.48: ## in Loop: Header=BB10_41 Depth=1 movl $3, -180(%rbp) LBB10_49: ## in Loop: Header=BB10_41 Depth=1 jmp LBB10_50 LBB10_50: ## in Loop: Header=BB10_41 Depth=1 jmp LBB10_51 LBB10_51: ## in Loop: Header=BB10_41 Depth=1 movl $4294967295, %edi ## imm = 0xFFFFFFFF callq _can_turn cmpl $0, %eax je LBB10_53 ## %bb.52: ## in Loop: Header=BB10_41 Depth=1 movl $1, -176(%rbp) jmp LBB10_59 LBB10_53: ## in Loop: Header=BB10_41 Depth=1 movl $4294967294, %edi ## imm = 0xFFFFFFFE callq _can_turn cmpl $0, %eax je LBB10_55 ## %bb.54: ## in Loop: Header=BB10_41 Depth=1 movl $2, -176(%rbp) jmp LBB10_58 LBB10_55: ## in Loop: Header=BB10_41 Depth=1 movl $4294967293, %edi ## imm = 0xFFFFFFFD callq _can_turn cmpl $0, %eax je LBB10_57 ## %bb.56: ## in Loop: Header=BB10_41 Depth=1 movl $3, -176(%rbp) LBB10_57: ## in Loop: Header=BB10_41 Depth=1 jmp LBB10_58 LBB10_58: ## in Loop: Header=BB10_41 Depth=1 jmp LBB10_59 LBB10_59: ## in Loop: Header=BB10_41 Depth=1 xorl %edi, %edi callq _can_turn cmpl $0, %eax je LBB10_63 ## %bb.60: ## in Loop: Header=BB10_41 Depth=1 cmpl $0, _debug(%rip) je LBB10_62 ## %bb.61: ## in Loop: Header=BB10_41 Depth=1 movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.16(%rip), %rsi movb $0, %al callq _fprintf LBB10_62: ## in Loop: Header=BB10_41 Depth=1 jmp LBB10_131 LBB10_63: ## in Loop: Header=BB10_41 Depth=1 movl -180(%rbp), %eax cmpl -176(%rbp), %eax jne LBB10_81 ## %bb.64: ## in Loop: Header=BB10_41 Depth=1 movl -180(%rbp), %eax decl %eax movl %eax, %ecx movq %rcx, -208(%rbp) ## 8-byte Spill subl $3, %eax ja LBB10_80 ## %bb.139: ## in Loop: Header=BB10_41 Depth=1 movq -208(%rbp), %rax ## 8-byte Reload leaq LJTI10_0(%rip), %rcx movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax LBB10_65: ## in Loop: Header=BB10_41 Depth=1 cmpl $0, _debug(%rip) je LBB10_67 ## %bb.66: ## in Loop: Header=BB10_41 Depth=1 movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.17(%rip), %rsi movb $0, %al callq _fprintf LBB10_67: ## in Loop: Header=BB10_41 Depth=1 callq _random andq $1024, %rax ## imm = 0x400 cmpq $0, %rax je LBB10_69 ## %bb.68: ## in Loop: Header=BB10_41 Depth=1 movl $1, %edi callq _turn jmp LBB10_70 LBB10_69: ## in Loop: Header=BB10_41 Depth=1 movl $4294967295, %edi ## imm = 0xFFFFFFFF callq _turn LBB10_70: ## in Loop: Header=BB10_41 Depth=1 jmp LBB10_80 LBB10_71: ## in Loop: Header=BB10_41 Depth=1 cmpl $0, _debug(%rip) je LBB10_73 ## %bb.72: ## in Loop: Header=BB10_41 Depth=1 movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.18(%rip), %rsi movb $0, %al callq _fprintf LBB10_73: ## in Loop: Header=BB10_41 Depth=1 movl $2, %edi callq _turn callq _new_thread movq _current_thread@GOTPCREL(%rip), %rax movq (%rax), %rax movq 32(%rax), %rcx movq _current_thread@GOTPCREL(%rip), %rax movq %rcx, (%rax) jmp LBB10_41 LBB10_74: cmpl $0, _debug(%rip) je LBB10_76 ## %bb.75: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.19(%rip), %rsi movb $0, %al callq _fprintf LBB10_76: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.20(%rip), %rsi movb $0, %al callq _fprintf movl $1, -116(%rbp) jmp LBB10_132 LBB10_77: ## in Loop: Header=BB10_41 Depth=1 cmpl $0, _debug(%rip) je LBB10_79 ## %bb.78: ## in Loop: Header=BB10_41 Depth=1 movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.21(%rip), %rsi movb $0, %al callq _fprintf LBB10_79: ## in Loop: Header=BB10_41 Depth=1 callq _kill_thread jmp LBB10_41 LBB10_80: ## in Loop: Header=BB10_41 Depth=1 jmp LBB10_130 LBB10_81: ## in Loop: Header=BB10_41 Depth=1 movl -180(%rbp), %eax cmpl -176(%rbp), %eax jge LBB10_104 ## %bb.82: ## in Loop: Header=BB10_41 Depth=1 movl -180(%rbp), %eax movl %eax, -212(%rbp) ## 4-byte Spill subl $1, %eax je LBB10_83 jmp LBB10_137 LBB10_137: ## in Loop: Header=BB10_41 Depth=1 movl -212(%rbp), %eax ## 4-byte Reload subl $2, %eax je LBB10_86 jmp LBB10_138 LBB10_138: ## in Loop: Header=BB10_41 Depth=1 movl -212(%rbp), %eax ## 4-byte Reload subl $3, %eax je LBB10_93 jmp LBB10_101 LBB10_83: ## in Loop: Header=BB10_41 Depth=1 cmpl $0, _debug(%rip) je LBB10_85 ## %bb.84: ## in Loop: Header=BB10_41 Depth=1 movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.22(%rip), %rsi movb $0, %al callq _fprintf LBB10_85: ## in Loop: Header=BB10_41 Depth=1 movl $1, %edi callq _push jmp LBB10_101 LBB10_86: ## in Loop: Header=BB10_41 Depth=1 callq _pop movl %eax, -184(%rbp) cmpl $0, -184(%rbp) je LBB10_90 ## %bb.87: ## in Loop: Header=BB10_41 Depth=1 cmpl $0, _debug(%rip) je LBB10_89 ## %bb.88: ## in Loop: Header=BB10_41 Depth=1 movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.23(%rip), %rsi movb $0, %al callq _fprintf LBB10_89: ## in Loop: Header=BB10_41 Depth=1 movl $2, %edi callq _turn jmp LBB10_101 LBB10_90: ## in Loop: Header=BB10_41 Depth=1 cmpl $0, _debug(%rip) je LBB10_92 ## %bb.91: ## in Loop: Header=BB10_41 Depth=1 movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.24(%rip), %rsi movb $0, %al callq _fprintf LBB10_92: ## in Loop: Header=BB10_41 Depth=1 jmp LBB10_101 LBB10_93: ## in Loop: Header=BB10_41 Depth=1 callq _pop movl %eax, -184(%rbp) callq _pop movl %eax, -192(%rbp) callq _pop movl %eax, -188(%rbp) cmpl $0, -184(%rbp) je LBB10_97 ## %bb.94: ## in Loop: Header=BB10_41 Depth=1 cmpl $0, _debug(%rip) je LBB10_96 ## %bb.95: ## in Loop: Header=BB10_41 Depth=1 movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.25(%rip), %rsi movb $0, %al callq _fprintf LBB10_96: ## in Loop: Header=BB10_41 Depth=1 movq _world@GOTPCREL(%rip), %rax movq (%rax), %rax movslq -188(%rbp), %rcx movq (%rax,%rcx,8), %rax movslq -192(%rbp), %rcx movl (%rax,%rcx,4), %edi callq _push jmp LBB10_100 LBB10_97: ## in Loop: Header=BB10_41 Depth=1 cmpl $0, _debug(%rip) je LBB10_99 ## %bb.98: ## in Loop: Header=BB10_41 Depth=1 movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.26(%rip), %rsi movb $0, %al callq _fprintf LBB10_99: ## in Loop: Header=BB10_41 Depth=1 callq _pop movl %eax, %edx movq _world@GOTPCREL(%rip), %rax movq (%rax), %rax movslq -188(%rbp), %rcx movq (%rax,%rcx,8), %rax movslq -192(%rbp), %rcx movl %edx, (%rax,%rcx,4) LBB10_100: ## in Loop: Header=BB10_41 Depth=1 jmp LBB10_101 LBB10_101: ## in Loop: Header=BB10_41 Depth=1 cmpl $0, _debug(%rip) je LBB10_103 ## %bb.102: ## in Loop: Header=BB10_41 Depth=1 callq _print_stack LBB10_103: ## in Loop: Header=BB10_41 Depth=1 movl -180(%rbp), %edi callq _turn jmp LBB10_129 LBB10_104: ## in Loop: Header=BB10_41 Depth=1 movl -176(%rbp), %eax movl %eax, -216(%rbp) ## 4-byte Spill subl $1, %eax je LBB10_105 jmp LBB10_135 LBB10_135: ## in Loop: Header=BB10_41 Depth=1 movl -216(%rbp), %eax ## 4-byte Reload subl $2, %eax je LBB10_108 jmp LBB10_136 LBB10_136: ## in Loop: Header=BB10_41 Depth=1 movl -216(%rbp), %eax ## 4-byte Reload subl $3, %eax je LBB10_115 jmp LBB10_126 LBB10_105: ## in Loop: Header=BB10_41 Depth=1 cmpl $0, _debug(%rip) je LBB10_107 ## %bb.106: ## in Loop: Header=BB10_41 Depth=1 movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.27(%rip), %rsi movb $0, %al callq _fprintf LBB10_107: ## in Loop: Header=BB10_41 Depth=1 callq _pop movl %eax, -192(%rbp) callq _pop movl %eax, -188(%rbp) movl -188(%rbp), %edi subl -192(%rbp), %edi callq _push jmp LBB10_126 LBB10_108: ## in Loop: Header=BB10_41 Depth=1 callq _pop movl %eax, -184(%rbp) cmpl $0, -184(%rbp) je LBB10_112 ## %bb.109: ## in Loop: Header=BB10_41 Depth=1 cmpl $0, _debug(%rip) je LBB10_111 ## %bb.110: ## in Loop: Header=BB10_41 Depth=1 movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.28(%rip), %rsi movb $0, %al callq _fprintf LBB10_111: ## in Loop: Header=BB10_41 Depth=1 movl $4294967294, %edi ## imm = 0xFFFFFFFE callq _turn jmp LBB10_126 LBB10_112: ## in Loop: Header=BB10_41 Depth=1 cmpl $0, _debug(%rip) je LBB10_114 ## %bb.113: ## in Loop: Header=BB10_41 Depth=1 movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.29(%rip), %rsi movb $0, %al callq _fprintf LBB10_114: ## in Loop: Header=BB10_41 Depth=1 jmp LBB10_126 LBB10_115: ## in Loop: Header=BB10_41 Depth=1 callq _pop movl %eax, -184(%rbp) cmpl $0, -184(%rbp) je LBB10_122 ## %bb.116: ## in Loop: Header=BB10_41 Depth=1 callq _pop movl %eax, -184(%rbp) cmpl $0, _debug(%rip) je LBB10_118 ## %bb.117: ## in Loop: Header=BB10_41 Depth=1 movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movl -184(%rbp), %edx leaq L_.str.30(%rip), %rsi movb $0, %al callq _fprintf LBB10_118: ## in Loop: Header=BB10_41 Depth=1 cmpl $0, _debug(%rip) je LBB10_120 ## %bb.119: ## in Loop: Header=BB10_41 Depth=1 movl $1, %edi callq _isatty cmpl $0, %eax jne LBB10_121 LBB10_120: ## in Loop: Header=BB10_41 Depth=1 movl -184(%rbp), %edi callq _putchar LBB10_121: ## in Loop: Header=BB10_41 Depth=1 jmp LBB10_125 LBB10_122: ## in Loop: Header=BB10_41 Depth=1 callq _getchar movl %eax, -184(%rbp) cmpl $0, _debug(%rip) je LBB10_124 ## %bb.123: ## in Loop: Header=BB10_41 Depth=1 movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movl -184(%rbp), %edx leaq L_.str.31(%rip), %rsi movb $0, %al callq _fprintf LBB10_124: ## in Loop: Header=BB10_41 Depth=1 movl -184(%rbp), %edi callq _push LBB10_125: ## in Loop: Header=BB10_41 Depth=1 jmp LBB10_126 LBB10_126: ## in Loop: Header=BB10_41 Depth=1 cmpl $0, _debug(%rip) je LBB10_128 ## %bb.127: ## in Loop: Header=BB10_41 Depth=1 callq _print_stack LBB10_128: ## in Loop: Header=BB10_41 Depth=1 xorl %edi, %edi subl -176(%rbp), %edi callq _turn LBB10_129: ## in Loop: Header=BB10_41 Depth=1 jmp LBB10_130 LBB10_130: ## in Loop: Header=BB10_41 Depth=1 jmp LBB10_131 LBB10_131: ## in Loop: Header=BB10_41 Depth=1 movq _current_thread@GOTPCREL(%rip), %rax movq (%rax), %rax movl 12(%rax), %ecx movq _current_thread@GOTPCREL(%rip), %rax movq (%rax), %rax addl 4(%rax), %ecx movl %ecx, 4(%rax) movq _current_thread@GOTPCREL(%rip), %rax movq (%rax), %rax movl 16(%rax), %ecx movq _current_thread@GOTPCREL(%rip), %rax movq (%rax), %rax addl 8(%rax), %ecx movl %ecx, 8(%rax) movq _current_thread@GOTPCREL(%rip), %rax movq (%rax), %rax movq 32(%rax), %rcx movq _current_thread@GOTPCREL(%rip), %rax movq %rcx, (%rax) jmp LBB10_41 LBB10_132: movl -116(%rbp), %eax movl %eax, -220(%rbp) ## 4-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB10_134 ## %bb.133: movl -220(%rbp), %eax ## 4-byte Reload addq $224, %rsp popq %rbp retq LBB10_134: callq ___stack_chk_fail ud2 .cfi_endproc .p2align 2, 0x90 .data_region jt32 .set L10_0_set_65, LBB10_65-LJTI10_0 .set L10_0_set_71, LBB10_71-LJTI10_0 .set L10_0_set_74, LBB10_74-LJTI10_0 .set L10_0_set_77, LBB10_77-LJTI10_0 LJTI10_0: .long L10_0_set_65 .long L10_0_set_71 .long L10_0_set_74 .long L10_0_set_77 .end_data_region ## -- End function .section __DATA,__data .globl _size ## @size .p2align 2 _size: .long 256 ## 0x100 .globl _debug ## @debug .zerofill __DATA,__common,_debug,4,2 .globl _threads ## @threads .zerofill __DATA,__common,_threads,4,2 .comm _current_thread,8,3 ## @current_thread .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Insufficient stack!\n" .comm _world,8,3 ## @world L_.str.1: ## @.str.1 .asciz "The new stack is" L_.str.2: ## @.str.2 .asciz " empty.\n" L_.str.3: ## @.str.3 .asciz " [%d]%s" L_.str.4: ## @.str.4 .asciz "Valid options:\n" L_.str.5: ## @.str.5 .asciz "-help: Show this screen.\n" L_.str.6: ## @.str.6 .asciz "-size <number>: Set the memory size.\n" L_.str.7: ## @.str.7 .asciz "-debug: Print debugging information.\n" L_.str.8: ## @.str.8 .asciz "There should also be a non-option argument naming the program to be run.\n" L_.str.9: ## @.str.9 .asciz "help" L_.str.10: ## @.str.10 .asciz "size" L_.str.11: ## @.str.11 .asciz "debug" .section __DATA,__const .p2align 4 ## @__const.main.options l___const.main.options: .quad L_.str.9 .long 0 ## 0x0 .space 4 .quad 0 .long 63 ## 0x3f .space 4 .quad L_.str.10 .long 1 ## 0x1 .space 4 .quad 0 .long 115 ## 0x73 .space 4 .quad L_.str.11 .long 0 ## 0x0 .space 4 .quad 0 .long 100 ## 0x64 .space 4 .section __TEXT,__cstring,cstring_literals L_.str.12: ## @.str.12 .asciz "-?" L_.str.13: ## @.str.13 .asciz "r" L_.str.14: ## @.str.14 .asciz "Starting point for program is empty.\n" L_.str.15: ## @.str.15 .asciz "Thread %3d at (%3d,%3d) " L_.str.16: ## @.str.16 .asciz "is happily marching along (0 degrees).\n" L_.str.17: ## @.str.17 .asciz "faces a difficult choice (45 or 315 degrees).\n" L_.str.18: ## @.str.18 .asciz "spawns a new thread (90 and 270 degrees).\n" L_.str.19: ## @.str.19 .asciz "is confused (135 and 225 degrees).\n" L_.str.20: ## @.str.20 .asciz "The programmer has not yet decided what a 135/225 T-junction should do!" L_.str.21: ## @.str.21 .asciz "bumps into a dead end (180 degrees).\n" L_.str.22: ## @.str.22 .asciz "places a one on his stack (45 degrees).\n" L_.str.23: ## @.str.23 .asciz "is afraid from the turn (90 degrees).\n" L_.str.24: ## @.str.24 .asciz "happily marches through the turn (90 degrees).\n" L_.str.25: ## @.str.25 .asciz "gets a number for his stack (135 degrees).\n" L_.str.26: ## @.str.26 .asciz "puts a number in his stack down (135 degrees).\n" L_.str.27: ## @.str.27 .asciz "sits down to work out a subtraction (315 degrees).\n" L_.str.28: ## @.str.28 .asciz "is afraid from the turn (270 degrees).\n" L_.str.29: ## @.str.29 .asciz "happily marches through the turn (270 degrees).\n" L_.str.30: ## @.str.30 .asciz "wishes you to know that \"%c\" (225 degrees).\n" L_.str.31: ## @.str.31 .asciz "discovers that \"%c\" (225 degrees).\n" .subsections_via_symbols
the_stack_data/153335.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _selectionsort ; -- Begin function selectionsort .p2align 2 _selectionsort: ; @selectionsort .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, ge tbnz w8, #0, LBB0_10 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #16] add w8, w8, #1 str w8, [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 ldr x8, [sp, #24] ldrsw x9, [sp, #16] ldr w8, [x8, x9, lsl #2] ldr x9, [sp, #24] ldrsw x10, [sp, #12] ldr w9, [x9, x10, lsl #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] ldrsw x9, [sp, #16] ldr w8, [x8, x9, lsl #2] ldr x9, [sp, #24] ldrsw x10, [sp, #12] str w8, [x9, x10, lsl #2] ldr w8, [sp, #8] ldr x9, [sp, #24] ldrsw x10, [sp, #16] 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, #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: mov w0, #0 add sp, sp, #32 ret .cfi_endproc ; -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ; -- Begin function main lCPI1_0: .quad 0x412e848000000000 ; double 1.0E+6 .section __TEXT,__text,regular,pure_instructions .globl _main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #80 .cfi_def_cfa_offset 80 stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp, #64 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov x9, sp sub x8, x29, #20 str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf bl _clock str x0, [sp, #24] ldursw x8, [x29, #-20] lsl x0, x8, #2 bl _malloc stur x0, [x29, #-16] stur wzr, [x29, #-24] b LBB1_1 LBB1_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-24] ldur w9, [x29, #-20] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_4 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 bl _rand ldur w9, [x29, #-20] sdiv w8, w0, w9 mul w8, w8, w9 subs w8, w0, w8 add w8, w8, #1 ldur x9, [x29, #-16] ldursw x10, [x29, #-24] str w8, [x9, x10, lsl #2] b LBB1_3 LBB1_3: ; in Loop: Header=BB1_1 Depth=1 ldur w8, [x29, #-24] add w8, w8, #1 stur w8, [x29, #-24] b LBB1_1 LBB1_4: ldur x0, [x29, #-16] ldur w1, [x29, #-20] bl _selectionsort bl _clock str x0, [sp, #16] ldr d0, [sp, #16] ucvtf d0, d0 ldr d1, [sp, #24] ucvtf d1, d1 fsub d0, d0, d1 adrp x8, lCPI1_0@PAGE ldr d1, [x8, lCPI1_0@PAGEOFF] fdiv d0, d0, d1 str d0, [sp, #32] ldr d0, [sp, #32] mov x8, sp str d0, [x8] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf mov w0, #0 ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Enter no. of elements\n" l_.str.1: ; @.str.1 .asciz "%d" l_.str.2: ; @.str.2 .asciz "Time is :%lf " .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _selectionsort ## -- Begin function selectionsort .p2align 4, 0x90 _selectionsort: ## @selectionsort .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp 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 jge LBB0_10 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl -16(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) LBB0_3: ## Parent Loop BB0_1 Depth=1 ## => This Inner Loop Header: Depth=2 movl -20(%rbp), %eax cmpl -12(%rbp), %eax jge LBB0_8 ## %bb.4: ## in Loop: Header=BB0_3 Depth=2 movq -8(%rbp), %rax movslq -16(%rbp), %rcx movl (%rax,%rcx,4), %eax movq -8(%rbp), %rcx movslq -20(%rbp), %rdx cmpl (%rcx,%rdx,4), %eax jle 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 movslq -16(%rbp), %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 movslq -16(%rbp), %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: xorl %eax, %eax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ## -- Begin function main LCPI1_0: .quad 0x412e848000000000 ## double 1.0E+6 .section __TEXT,__literal16,16byte_literals .p2align 4 LCPI1_1: .long 1127219200 ## 0x43300000 .long 1160773632 ## 0x45300000 .long 0 ## 0x0 .long 0 ## 0x0 LCPI1_2: .quad 0x4330000000000000 ## double 4503599627370496 .quad 0x4530000000000000 ## double 1.9342813113834067E+25 .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) leaq L_.str(%rip), %rdi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi leaq -20(%rbp), %rsi movb $0, %al callq _scanf callq _clock movq %rax, -40(%rbp) movslq -20(%rbp), %rdi shlq $2, %rdi callq _malloc movq %rax, -16(%rbp) movl $0, -24(%rbp) LBB1_1: ## =>This Inner Loop Header: Depth=1 movl -24(%rbp), %eax cmpl -20(%rbp), %eax jge LBB1_4 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 callq _rand cltd idivl -20(%rbp) addl $1, %edx movq -16(%rbp), %rax movslq -24(%rbp), %rcx movl %edx, (%rax,%rcx,4) ## %bb.3: ## in Loop: Header=BB1_1 Depth=1 movl -24(%rbp), %eax addl $1, %eax movl %eax, -24(%rbp) jmp LBB1_1 LBB1_4: movq -16(%rbp), %rdi movl -20(%rbp), %esi callq _selectionsort callq _clock movq %rax, -48(%rbp) movaps LCPI1_1(%rip), %xmm3 ## xmm3 = [1127219200,1160773632,0,0] movq -48(%rbp), %xmm0 ## xmm0 = mem[0],zero punpckldq %xmm3, %xmm0 ## xmm0 = xmm0[0],xmm3[0],xmm0[1],xmm3[1] movapd LCPI1_2(%rip), %xmm2 ## xmm2 = [4.503599627370496E+15,1.9342813113834067E+25] subpd %xmm2, %xmm0 movaps %xmm0, %xmm1 unpckhpd %xmm0, %xmm0 ## xmm0 = xmm0[1,1] addsd %xmm1, %xmm0 movq -40(%rbp), %xmm1 ## xmm1 = mem[0],zero punpckldq %xmm3, %xmm1 ## xmm1 = xmm1[0],xmm3[0],xmm1[1],xmm3[1] subpd %xmm2, %xmm1 movaps %xmm1, %xmm2 unpckhpd %xmm1, %xmm1 ## xmm1 = xmm1[1,1] addsd %xmm2, %xmm1 subsd %xmm1, %xmm0 movsd LCPI1_0(%rip), %xmm1 ## xmm1 = mem[0],zero divsd %xmm1, %xmm0 movsd %xmm0, -32(%rbp) movsd -32(%rbp), %xmm0 ## xmm0 = mem[0],zero leaq L_.str.2(%rip), %rdi movb $1, %al callq _printf xorl %eax, %eax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Enter no. of elements\n" L_.str.1: ## @.str.1 .asciz "%d" L_.str.2: ## @.str.2 .asciz "Time is :%lf " .subsections_via_symbols
the_stack_data/11809.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] str wzr, [sp, #24] sub x0, x29, #18 str x0, [sp, #16] ; 8-byte Folded Spill adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF mov x2, #10 bl ___strcpy_chk ldr x8, [sp, #16] ; 8-byte Folded Reload add x8, x8, #1 mov x9, sp str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: bl ___stack_chk_fail LBB0_2: 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 "abcdef" l_.str.1: ; @.str.1 .asciz "%s\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -24(%rbp) leaq -18(%rbp), %rdi leaq L_.str(%rip), %rsi movl $10, %edx callq ___strcpy_chk leaq -18(%rbp), %rsi addq $1, %rsi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_2 ## %bb.1: xorl %eax, %eax addq $32, %rsp popq %rbp retq LBB0_2: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "abcdef" L_.str.1: ## @.str.1 .asciz "%s\n" .subsections_via_symbols
the_stack_data/161081033.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 w8, #42 str w8, [sp, #12] mov w8, #4711 str w8, [sp, #8] str w8, [sp, #12] mov w0, #0 add sp, sp, #16 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl $42, -4(%rbp) movl $4711, -8(%rbp) ## imm = 0x1267 movl $4711, -4(%rbp) ## imm = 0x1267 xorl %eax, %eax popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/100139929.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _foo ; -- Begin function foo .p2align 2 _foo: ; @foo .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] mov w8, #1 str w8, [sp, #4] ldr w8, [sp, #4] add w8, w8, #2 str w8, [sp, #4] ldr x8, [sp, #8] ldrsb w0, [x8, #1644] 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 movq %rdi, -8(%rbp) movl $1, -12(%rbp) movl -12(%rbp), %eax addl $2, %eax movl %eax, -12(%rbp) movq -8(%rbp), %rax movsbl 1644(%rax), %eax popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/80230.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/1164017.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str w0, [sp, #28] str x1, [sp, #16] mov w8, #-1 str w8, [sp, #12] mov w0, #0 add sp, sp, #32 ret .cfi_endproc ; -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ; -- Begin function dijkstra lCPI1_0: .quad 0x7ff0000000000000 ; double +Inf .section __TEXT,__text,regular,pure_instructions .globl _dijkstra .p2align 2 _dijkstra: ; @dijkstra .cfi_startproc ; %bb.0: stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill .cfi_def_cfa_offset 16 mov x29, sp .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 sub sp, sp, #128 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] stur w0, [x29, #-12] stur w1, [x29, #-16] stur w2, [x29, #-20] stur x3, [x29, #-32] stur wzr, [x29, #-44] ldur w8, [x29, #-12] ; kill: def $x8 killed $w8 mov x9, sp stur x9, [x29, #-88] lsl x9, x8, #3 add x9, x9, #15 and x9, x9, #0xfffffffffffffff0 stur x9, [x29, #-112] ; 8-byte Folded Spill adrp x16, ___chkstk_darwin@GOTPAGE ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF] blr x16 ldur x10, [x29, #-112] ; 8-byte Folded Reload mov x9, sp subs x9, x9, x10 mov sp, x9 stur x9, [x29, #-104] ; 8-byte Folded Spill stur x8, [x29, #-96] ldursw x0, [x29, #-12] mov x1, #8 bl _calloc stur x0, [x29, #-56] ldur x8, [x29, #-56] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _system adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf mov w0, #-1 bl _exit LBB1_2: ldursw x0, [x29, #-12] mov x1, #8 bl _calloc stur x0, [x29, #-64] ldur x8, [x29, #-64] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB1_4 b LBB1_3 LBB1_3: adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _system adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf mov w0, #-1 bl _exit LBB1_4: ldursw x0, [x29, #-12] mov x1, #8 bl _calloc stur x0, [x29, #-72] ldur x8, [x29, #-72] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB1_6 b LBB1_5 LBB1_5: adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _system adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf mov w0, #-1 bl _exit LBB1_6: stur wzr, [x29, #-36] b LBB1_7 LBB1_7: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-36] ldur w9, [x29, #-12] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_13 b LBB1_8 LBB1_8: ; in Loop: Header=BB1_7 Depth=1 ldur x8, [x29, #-32] ldur w9, [x29, #-16] subs w9, w9, #1 ldur w10, [x29, #-12] mul w9, w9, w10 ldur w10, [x29, #-36] add w9, w9, w10 ldr w8, [x8, w9, sxtw #2] adds w8, w8, #1 cset w8, eq tbnz w8, #0, LBB1_10 b LBB1_9 LBB1_9: ; in Loop: Header=BB1_7 Depth=1 ldur x8, [x29, #-104] ; 8-byte Folded Reload ldur w9, [x29, #-16] subs w9, w9, #1 ldur x10, [x29, #-56] ldursw x11, [x29, #-36] str w9, [x10, x11, lsl #2] ldur x9, [x29, #-32] ldur w10, [x29, #-16] subs w10, w10, #1 ldur w11, [x29, #-12] mul w10, w10, w11 ldur w11, [x29, #-36] add w10, w10, w11 ldr s1, [x9, w10, sxtw #2] ; implicit-def: $d0 fmov s0, s1 sshll.2d v0, v0, #0 ; kill: def $d0 killed $d0 killed $q0 scvtf d0, d0 ldursw x9, [x29, #-36] str d0, [x8, x9, lsl #3] b LBB1_11 LBB1_10: ; in Loop: Header=BB1_7 Depth=1 ldur x8, [x29, #-104] ; 8-byte Folded Reload ldur x10, [x29, #-56] ldursw x11, [x29, #-36] mov w9, #-1 str w9, [x10, x11, lsl #2] ldursw x9, [x29, #-36] adrp x10, lCPI1_0@PAGE ldr d0, [x10, lCPI1_0@PAGEOFF] str d0, [x8, x9, lsl #3] b LBB1_11 LBB1_11: ; in Loop: Header=BB1_7 Depth=1 ldur x9, [x29, #-72] ldursw x10, [x29, #-36] mov w8, #0 str w8, [x9, x10, lsl #2] b LBB1_12 LBB1_12: ; in Loop: Header=BB1_7 Depth=1 ldur w8, [x29, #-36] add w8, w8, #1 stur w8, [x29, #-36] b LBB1_7 LBB1_13: ldur x8, [x29, #-104] ; 8-byte Folded Reload ldur x10, [x29, #-72] ldur w11, [x29, #-16] mov w9, #1 subs w11, w11, #1 str w9, [x10, w11, sxtw #2] ldur w9, [x29, #-16] subs w9, w9, #1 movi d0, #0000000000000000 str d0, [x8, w9, sxtw #3] b LBB1_14 LBB1_14: ; =>This Loop Header: Depth=1 ; Child Loop BB1_15 Depth 2 ; Child Loop BB1_26 Depth 2 adrp x8, lCPI1_0@PAGE ldr d0, [x8, lCPI1_0@PAGEOFF] stur d0, [x29, #-80] stur wzr, [x29, #-36] b LBB1_15 LBB1_15: ; Parent Loop BB1_14 Depth=1 ; => This Inner Loop Header: Depth=2 ldur w8, [x29, #-36] ldur w9, [x29, #-12] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_23 b LBB1_16 LBB1_16: ; in Loop: Header=BB1_15 Depth=2 ldur x8, [x29, #-72] ldursw x9, [x29, #-36] ldr w8, [x8, x9, lsl #2] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB1_21 b LBB1_17 LBB1_17: ; in Loop: Header=BB1_15 Depth=2 ldur x8, [x29, #-104] ; 8-byte Folded Reload ldursw x9, [x29, #-36] ldr d0, [x8, x9, lsl #3] fcmp d0, #0.0 cset w8, lt tbnz w8, #0, LBB1_20 b LBB1_18 LBB1_18: ; in Loop: Header=BB1_15 Depth=2 ldur x8, [x29, #-104] ; 8-byte Folded Reload ldursw x9, [x29, #-36] ldr d0, [x8, x9, lsl #3] ldur d1, [x29, #-80] fcmp d0, d1 cset w8, pl tbnz w8, #0, LBB1_20 b LBB1_19 LBB1_19: ; in Loop: Header=BB1_15 Depth=2 ldur x8, [x29, #-104] ; 8-byte Folded Reload ldursw x9, [x29, #-36] ldr d0, [x8, x9, lsl #3] stur d0, [x29, #-80] ldur w8, [x29, #-36] stur w8, [x29, #-40] b LBB1_20 LBB1_20: ; in Loop: Header=BB1_15 Depth=2 b LBB1_21 LBB1_21: ; in Loop: Header=BB1_15 Depth=2 b LBB1_22 LBB1_22: ; in Loop: Header=BB1_15 Depth=2 ldur w8, [x29, #-36] add w8, w8, #1 stur w8, [x29, #-36] b LBB1_15 LBB1_23: ; in Loop: Header=BB1_14 Depth=1 ldur d0, [x29, #-80] adrp x8, lCPI1_0@PAGE ldr d1, [x8, lCPI1_0@PAGEOFF] fcmp d0, d1 cset w8, eq tbnz w8, #0, LBB1_35 b LBB1_24 LBB1_24: ; in Loop: Header=BB1_14 Depth=1 ldur w8, [x29, #-40] ldur w9, [x29, #-20] subs w9, w9, #1 subs w8, w8, w9 cset w8, eq tbnz w8, #0, LBB1_35 b LBB1_25 LBB1_25: ; in Loop: Header=BB1_14 Depth=1 ldur x9, [x29, #-72] ldursw x10, [x29, #-40] mov w8, #1 str w8, [x9, x10, lsl #2] stur wzr, [x29, #-36] b LBB1_26 LBB1_26: ; Parent Loop BB1_14 Depth=1 ; => This Inner Loop Header: Depth=2 ldur w8, [x29, #-36] ldur w9, [x29, #-12] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_34 b LBB1_27 LBB1_27: ; in Loop: Header=BB1_26 Depth=2 ldur x8, [x29, #-72] ldursw x9, [x29, #-36] ldr w8, [x8, x9, lsl #2] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB1_32 b LBB1_28 LBB1_28: ; in Loop: Header=BB1_26 Depth=2 ldur x8, [x29, #-32] ldur w9, [x29, #-40] ldur w10, [x29, #-12] mul w9, w9, w10 ldur w10, [x29, #-36] add w9, w9, w10 ldr w8, [x8, w9, sxtw #2] adds w8, w8, #1 cset w8, eq tbnz w8, #0, LBB1_31 b LBB1_29 LBB1_29: ; in Loop: Header=BB1_26 Depth=2 ldur x8, [x29, #-104] ; 8-byte Folded Reload ldursw x9, [x29, #-40] ldr d0, [x8, x9, lsl #3] ldur x9, [x29, #-32] ldur w10, [x29, #-40] ldur w11, [x29, #-12] mul w10, w10, w11 ldur w11, [x29, #-36] add w10, w10, w11 ldr s2, [x9, w10, sxtw #2] ; implicit-def: $d1 fmov s1, s2 sshll.2d v1, v1, #0 ; kill: def $d1 killed $d1 killed $q1 scvtf d1, d1 fadd d0, d0, d1 ldursw x9, [x29, #-36] ldr d1, [x8, x9, lsl #3] fcmp d0, d1 cset w8, pl tbnz w8, #0, LBB1_31 b LBB1_30 LBB1_30: ; in Loop: Header=BB1_26 Depth=2 ldur x8, [x29, #-104] ; 8-byte Folded Reload ldursw x9, [x29, #-40] ldr d0, [x8, x9, lsl #3] ldur x9, [x29, #-32] ldur w10, [x29, #-40] ldur w11, [x29, #-12] mul w10, w10, w11 ldur w11, [x29, #-36] add w10, w10, w11 ldr s2, [x9, w10, sxtw #2] ; implicit-def: $d1 fmov s1, s2 sshll.2d v1, v1, #0 ; kill: def $d1 killed $d1 killed $q1 scvtf d1, d1 fadd d0, d0, d1 ldursw x9, [x29, #-36] str d0, [x8, x9, lsl #3] ldur w8, [x29, #-40] ldur x9, [x29, #-56] ldursw x10, [x29, #-36] str w8, [x9, x10, lsl #2] b LBB1_31 LBB1_31: ; in Loop: Header=BB1_26 Depth=2 b LBB1_32 LBB1_32: ; in Loop: Header=BB1_26 Depth=2 b LBB1_33 LBB1_33: ; in Loop: Header=BB1_26 Depth=2 ldur w8, [x29, #-36] add w8, w8, #1 stur w8, [x29, #-36] b LBB1_26 LBB1_34: ; in Loop: Header=BB1_14 Depth=1 b LBB1_35 LBB1_35: ; in Loop: Header=BB1_14 Depth=1 b LBB1_36 LBB1_36: ; in Loop: Header=BB1_14 Depth=1 ldur w8, [x29, #-40] ldur w9, [x29, #-20] subs w9, w9, #1 subs w8, w8, w9 cset w8, eq mov w9, #0 stur w9, [x29, #-116] ; 4-byte Folded Spill tbnz w8, #0, LBB1_38 b LBB1_37 LBB1_37: ; in Loop: Header=BB1_14 Depth=1 ldur d0, [x29, #-80] adrp x8, lCPI1_0@PAGE ldr d1, [x8, lCPI1_0@PAGEOFF] fcmp d0, d1 cset w8, ne stur w8, [x29, #-116] ; 4-byte Folded Spill b LBB1_38 LBB1_38: ; in Loop: Header=BB1_14 Depth=1 ldur w8, [x29, #-116] ; 4-byte Folded Reload tbnz w8, #0, LBB1_14 b LBB1_39 LBB1_39: ldur w8, [x29, #-16] ; implicit-def: $x10 mov x10, x8 ldur w9, [x29, #-20] ; implicit-def: $x8 mov x8, x9 sub sp, sp, #16 mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf add sp, sp, #16 ldur d0, [x29, #-80] adrp x8, lCPI1_0@PAGE ldr d1, [x8, lCPI1_0@PAGEOFF] fcmp d0, d1 cset w8, ne tbnz w8, #0, LBB1_41 b LBB1_40 LBB1_40: 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 b LBB1_49 LBB1_41: ldur w8, [x29, #-20] stur w8, [x29, #-36] ldur x8, [x29, #-56] ldur w9, [x29, #-36] subs w9, w9, #1 ldr w8, [x8, w9, sxtw #2] stur w8, [x29, #-36] b LBB1_42 LBB1_42: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-36] adds w8, w8, #1 cset w8, eq tbnz w8, #0, LBB1_44 b LBB1_43 LBB1_43: ; in Loop: Header=BB1_42 Depth=1 ldur w8, [x29, #-36] add w8, w8, #1 ldur x9, [x29, #-64] ldursw x10, [x29, #-44] str w8, [x9, x10, lsl #2] ldur w8, [x29, #-44] add w8, w8, #1 stur w8, [x29, #-44] ldur x8, [x29, #-56] ldursw x9, [x29, #-36] ldr w8, [x8, x9, lsl #2] stur w8, [x29, #-36] b LBB1_42 LBB1_44: ldur w8, [x29, #-44] stur w8, [x29, #-36] b LBB1_45 LBB1_45: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-36] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB1_48 b LBB1_46 LBB1_46: ; in Loop: Header=BB1_45 Depth=1 ldur x8, [x29, #-64] ldur w9, [x29, #-36] subs w9, w9, #1 ldr w9, [x8, w9, sxtw #2] ; implicit-def: $x8 mov x8, x9 sub sp, sp, #16 mov x9, sp str x8, [x9] adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf add sp, sp, #16 b LBB1_47 LBB1_47: ; in Loop: Header=BB1_45 Depth=1 ldur w8, [x29, #-36] subs w8, w8, #1 stur w8, [x29, #-36] b LBB1_45 LBB1_48: ldur w9, [x29, #-20] ; implicit-def: $x8 mov x8, x9 sub sp, sp, #16 mov x9, sp str x8, [x9] adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _printf ldur x8, [x29, #-104] ; 8-byte Folded Reload add sp, sp, #16 ldur w9, [x29, #-20] subs w9, w9, #1 ldr d0, [x8, w9, sxtw #3] fcvtzs w10, d0 sub sp, sp, #16 mov x9, sp ; implicit-def: $x8 mov x8, x10 str x8, [x9] adrp x0, l_.str.7@PAGE add x0, x0, l_.str.7@PAGEOFF bl _printf add sp, sp, #16 b LBB1_49 LBB1_49: ldur x8, [x29, #-88] stur x8, [x29, #-128] ; 8-byte Folded Spill ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB1_51 b LBB1_50 LBB1_50: bl ___stack_chk_fail LBB1_51: ldur x8, [x29, #-128] ; 8-byte Folded Reload mov sp, x8 mov sp, x29 ldp x29, x30, [sp], #16 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .globl _grafo_criar ; -- Begin function grafo_criar .p2align 2 _grafo_criar: ; @grafo_criar .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, _origem@GOTPAGE ldr x8, [x8, _origem@GOTPAGEOFF] str x8, [sp, #32] ; 8-byte Folded Spill adrp x8, _destino@GOTPAGE ldr x8, [x8, _destino@GOTPAGEOFF] stur x8, [x29, #-24] ; 8-byte Folded Spill adrp x8, _custo@GOTPAGE ldr x8, [x8, _custo@GOTPAGEOFF] stur x8, [x29, #-16] ; 8-byte Folded Spill b LBB2_1 LBB2_1: ; =>This Inner Loop Header: Depth=1 adrp x0, l_.str.8@PAGE add x0, x0, l_.str.8@PAGEOFF bl _printf mov x9, sp adrp x8, _vertices@PAGE add x8, x8, _vertices@PAGEOFF str x8, [x9] adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _scanf b LBB2_2 LBB2_2: ; in Loop: Header=BB2_1 Depth=1 adrp x8, _vertices@PAGE ldr w8, [x8, _vertices@PAGEOFF] subs w8, w8, #3 cset w8, lt tbnz w8, #0, LBB2_1 b LBB2_3 LBB2_3: adrp x8, _custos@PAGE ldr x8, [x8, _custos@PAGEOFF] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB2_5 b LBB2_4 LBB2_4: adrp x8, _custos@PAGE ldr x0, [x8, _custos@PAGEOFF] bl _free b LBB2_5 LBB2_5: adrp x9, _vertices@PAGE ldrsw x10, [x9, _vertices@PAGEOFF] mov x8, #4 mul x8, x8, x10 ldrsw x9, [x9, _vertices@PAGEOFF] mul x0, x8, x9 bl _malloc adrp x8, _custos@PAGE str x0, [x8, _custos@PAGEOFF] ldr x8, [x8, _custos@PAGEOFF] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB2_7 b LBB2_6 LBB2_6: adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _system adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf mov w0, #-1 bl _exit LBB2_7: stur wzr, [x29, #-4] b LBB2_8 LBB2_8: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-4] adrp x10, _vertices@PAGE ldr w9, [x10, _vertices@PAGEOFF] ldr w10, [x10, _vertices@PAGEOFF] mul w9, w9, w10 subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB2_11 b LBB2_9 LBB2_9: ; in Loop: Header=BB2_8 Depth=1 adrp x8, _custos@PAGE ldr x9, [x8, _custos@PAGEOFF] ldursw x10, [x29, #-4] mov w8, #-1 str w8, [x9, x10, lsl #2] b LBB2_10 LBB2_10: ; in Loop: Header=BB2_8 Depth=1 ldur w8, [x29, #-4] add w8, w8, #1 stur w8, [x29, #-4] b LBB2_8 LBB2_11: b LBB2_12 LBB2_12: ; =>This Loop Header: Depth=1 ; Child Loop BB2_13 Depth 2 ; Child Loop BB2_19 Depth 2 ; Child Loop BB2_25 Depth 2 adrp x0, l_.str.9@PAGE add x0, x0, l_.str.9@PAGEOFF bl _system adrp x0, l_.str.10@PAGE add x0, x0, l_.str.10@PAGEOFF bl _printf b LBB2_13 LBB2_13: ; Parent Loop BB2_12 Depth=1 ; => This Inner Loop Header: Depth=2 adrp x8, _vertices@PAGE ldr w9, [x8, _vertices@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 ldr x8, [sp, #32] ; 8-byte Folded Reload mov x9, sp str x8, [x9] adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _scanf b LBB2_14 LBB2_14: ; in Loop: Header=BB2_13 Depth=2 ldr x8, [sp, #32] ; 8-byte Folded Reload ldr w8, [x8] subs w8, w8, #0 cset w8, lt mov w9, #1 str w9, [sp, #28] ; 4-byte Folded Spill tbnz w8, #0, LBB2_16 b LBB2_15 LBB2_15: ; in Loop: Header=BB2_13 Depth=2 ldr x8, [sp, #32] ; 8-byte Folded Reload ldr w8, [x8] adrp x9, _vertices@PAGE ldr w9, [x9, _vertices@PAGEOFF] subs w8, w8, w9 cset w8, gt str w8, [sp, #28] ; 4-byte Folded Spill b LBB2_16 LBB2_16: ; in Loop: Header=BB2_13 Depth=2 ldr w8, [sp, #28] ; 4-byte Folded Reload tbnz w8, #0, LBB2_13 b LBB2_17 LBB2_17: ; in Loop: Header=BB2_12 Depth=1 ldr x8, [sp, #32] ; 8-byte Folded Reload ldr w8, [x8] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB2_28 b LBB2_18 LBB2_18: ; in Loop: Header=BB2_12 Depth=1 b LBB2_19 LBB2_19: ; Parent Loop BB2_12 Depth=1 ; => This Inner Loop Header: Depth=2 ldr x8, [sp, #32] ; 8-byte Folded Reload adrp x9, _vertices@PAGE ldr w9, [x9, _vertices@PAGEOFF] ; implicit-def: $x10 mov x10, x9 ldr w9, [x8] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x0, l_.str.12@PAGE add x0, x0, l_.str.12@PAGEOFF bl _printf ldur x8, [x29, #-24] ; 8-byte Folded Reload mov x9, sp str x8, [x9] adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _scanf b LBB2_20 LBB2_20: ; in Loop: Header=BB2_19 Depth=2 ldur x8, [x29, #-24] ; 8-byte Folded Reload ldr w8, [x8] subs w8, w8, #1 cset w8, lt mov w9, #1 str w9, [sp, #24] ; 4-byte Folded Spill tbnz w8, #0, LBB2_23 b LBB2_21 LBB2_21: ; in Loop: Header=BB2_19 Depth=2 ldur x8, [x29, #-24] ; 8-byte Folded Reload ldr w8, [x8] adrp x9, _vertices@PAGE ldr w9, [x9, _vertices@PAGEOFF] subs w8, w8, w9 cset w8, gt mov w9, #1 str w9, [sp, #24] ; 4-byte Folded Spill tbnz w8, #0, LBB2_23 b LBB2_22 LBB2_22: ; in Loop: Header=BB2_19 Depth=2 ldr x9, [sp, #32] ; 8-byte Folded Reload ldur x8, [x29, #-24] ; 8-byte Folded Reload ldr w8, [x8] ldr w9, [x9] subs w8, w8, w9 cset w8, eq str w8, [sp, #24] ; 4-byte Folded Spill b LBB2_23 LBB2_23: ; in Loop: Header=BB2_19 Depth=2 ldr w8, [sp, #24] ; 4-byte Folded Reload tbnz w8, #0, LBB2_19 b LBB2_24 LBB2_24: ; in Loop: Header=BB2_12 Depth=1 b LBB2_25 LBB2_25: ; Parent Loop BB2_12 Depth=1 ; => This Inner Loop Header: Depth=2 ldur x8, [x29, #-24] ; 8-byte Folded Reload ldr x9, [sp, #32] ; 8-byte Folded Reload ldr w9, [x9] ; implicit-def: $x10 mov x10, x9 ldr w9, [x8] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x0, l_.str.13@PAGE add x0, x0, l_.str.13@PAGEOFF bl _printf ldur x8, [x29, #-16] ; 8-byte Folded Reload mov x9, sp str x8, [x9] adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _scanf b LBB2_26 LBB2_26: ; in Loop: Header=BB2_25 Depth=2 ldur x8, [x29, #-16] ; 8-byte Folded Reload ldr w8, [x8] subs w8, w8, #0 cset w8, lt tbnz w8, #0, LBB2_25 b LBB2_27 LBB2_27: ; in Loop: Header=BB2_12 Depth=1 ldur x11, [x29, #-24] ; 8-byte Folded Reload ldr x10, [sp, #32] ; 8-byte Folded Reload ldur x8, [x29, #-16] ; 8-byte Folded Reload ldr w8, [x8] adrp x9, _custos@PAGE ldr x9, [x9, _custos@PAGEOFF] ldr w10, [x10] subs w10, w10, #1 adrp x12, _vertices@PAGE ldr w12, [x12, _vertices@PAGEOFF] mul w10, w10, w12 ldr w11, [x11] add w10, w10, w11 subs w10, w10, #1 str w8, [x9, w10, sxtw #2] b LBB2_28 LBB2_28: ; in Loop: Header=BB2_12 Depth=1 b LBB2_29 LBB2_29: ; in Loop: Header=BB2_12 Depth=1 ldr x8, [sp, #32] ; 8-byte Folded Reload ldr w8, [x8] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB2_12 b LBB2_30 LBB2_30: ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .globl _grafo_procurar ; -- Begin function grafo_procurar .p2align 2 _grafo_procurar: ; @grafo_procurar .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.9@PAGE add x0, x0, l_.str.9@PAGEOFF bl _system adrp x0, l_.str.14@PAGE add x0, x0, l_.str.14@PAGEOFF bl _system adrp x0, l_.str.15@PAGE add x0, x0, l_.str.15@PAGEOFF bl _printf mov w8, #1 stur w8, [x29, #-4] b LBB3_1 LBB3_1: ; =>This Loop Header: Depth=1 ; Child Loop BB3_3 Depth 2 ldur w8, [x29, #-4] adrp x9, _vertices@PAGE ldr w9, [x9, _vertices@PAGEOFF] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB3_8 b LBB3_2 LBB3_2: ; in Loop: Header=BB3_1 Depth=1 mov w8, #1 str w8, [sp, #8] b LBB3_3 LBB3_3: ; Parent Loop BB3_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #8] adrp x9, _vertices@PAGE ldr w9, [x9, _vertices@PAGEOFF] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB3_6 b LBB3_4 LBB3_4: ; in Loop: Header=BB3_3 Depth=2 adrp x8, _vertices@PAGE ldr w0, [x8, _vertices@PAGEOFF] ldur w1, [x29, #-4] ldr w2, [sp, #8] adrp x8, _custos@PAGE ldr x3, [x8, _custos@PAGEOFF] bl _dijkstra b LBB3_5 LBB3_5: ; in Loop: Header=BB3_3 Depth=2 ldr w8, [sp, #8] add w8, w8, #1 str w8, [sp, #8] b LBB3_3 LBB3_6: ; in Loop: Header=BB3_1 Depth=1 adrp x0, l_.str.16@PAGE add x0, x0, l_.str.16@PAGEOFF bl _printf b LBB3_7 LBB3_7: ; in Loop: Header=BB3_1 Depth=1 ldur w8, [x29, #-4] add w8, w8, #1 stur w8, [x29, #-4] b LBB3_1 LBB3_8: adrp x0, l_.str.17@PAGE add x0, x0, l_.str.17@PAGEOFF bl _system adrp x0, l_.str.18@PAGE add x0, x0, l_.str.18@PAGEOFF bl _system ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _menu_mostrar ; -- Begin function menu_mostrar .p2align 2 _menu_mostrar: ; @menu_mostrar .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.9@PAGE add x0, x0, l_.str.9@PAGEOFF bl _system adrp x0, l_.str.19@PAGE add x0, x0, l_.str.19@PAGEOFF bl _printf adrp x0, l_.str.20@PAGE add x0, x0, l_.str.20@PAGEOFF bl _printf adrp x0, l_.str.21@PAGE add x0, x0, l_.str.21@PAGEOFF bl _printf adrp x0, l_.str.22@PAGE add x0, x0, l_.str.22@PAGEOFF bl _printf 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 ldp x29, x30, [sp], #16 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .globl _vertices ; @vertices .zerofill __DATA,__common,_vertices,4,2 .globl _custos ; @custos .zerofill __DATA,__common,_custos,8,3 .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "color fc" l_.str.1: ; @.str.1 .asciz "** Erro: Mem\303\263ria Insuficiente **" l_.str.2: ; @.str.2 .asciz "\tDe %d para %d: \t" l_.str.3: ; @.str.3 .asciz "N\303\243o Existe\n" l_.str.4: ; @.str.4 .asciz "\tCusto: \t- \n" l_.str.5: ; @.str.5 .asciz "%d -> " l_.str.6: ; @.str.6 .asciz "%d" l_.str.7: ; @.str.7 .asciz "\n\tCusto: %d\n" l_.str.8: ; @.str.8 .asciz "\nInforme o n\303\272mero de v\303\251rtices (no minimo 3 ): " l_.str.9: ; @.str.9 .asciz "cls" l_.str.10: ; @.str.10 .asciz "Entre com as Arestas:\n" l_.str.11: ; @.str.11 .asciz "digite a origem (entre 0 e %d ou 00 para sair): " .comm _origem,4,2 ; @origem l_.str.12: ; @.str.12 .asciz "Digite o destino (entre 1 e %d, menos %d): " .comm _destino,4,2 ; @destino l_.str.13: ; @.str.13 .asciz "Digite o custo (positivo) do v\303\251rtice %d para o v\303\251rtice %d: " .comm _custo,4,2 ; @custo l_.str.14: ; @.str.14 .asciz "color 03" l_.str.15: ; @.str.15 .asciz "Lista dos Menores Caminhos no Grafo Dado: \n" l_.str.16: ; @.str.16 .asciz "\n" l_.str.17: ; @.str.17 .asciz "pause" l_.str.18: ; @.str.18 .asciz "color 07" l_.str.19: ; @.str.19 .asciz "Implementa\303\247\303\243o Mapa Estrutura de Dados II, solu\303\247\303\243o com Algoritmo de Dijasktra\n" l_.str.20: ; @.str.20 .asciz "Opcoes:\n" l_.str.21: ; @.str.21 .asciz "\t 1 - Adicionar um Grafo\n" l_.str.22: ; @.str.22 .asciz "\t 2 - Procura Os Menores Caminhos no Grafo\n" l_.str.23: ; @.str.23 .asciz "\t 0 - Sair do programa\n" l_.str.24: ; @.str.24 .asciz "? " .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, -4(%rbp) movq %rsi, -16(%rbp) movl $-1, -20(%rbp) xorl %eax, %eax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ## -- Begin function dijkstra LCPI1_0: .quad 0x7ff0000000000000 ## double +Inf .section __TEXT,__text,regular,pure_instructions .globl _dijkstra .p2align 4, 0x90 _dijkstra: ## @dijkstra .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $128, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl %edi, -12(%rbp) movl %esi, -16(%rbp) movl %edx, -20(%rbp) movq %rcx, -32(%rbp) movl $0, -44(%rbp) movl -12(%rbp), %eax ## kill: def $rax killed $eax movq %rax, -112(%rbp) ## 8-byte Spill movq %rsp, %rcx movq %rcx, -88(%rbp) shlq $3, %rax callq ____chkstk_darwin addq $15, %rax andq $-16, %rax subq %rax, %rsp movq -112(%rbp), %rax ## 8-byte Reload movq %rsp, %rcx movq %rcx, -104(%rbp) ## 8-byte Spill movq %rax, -96(%rbp) movslq -12(%rbp), %rdi movl $8, %esi callq _calloc movq %rax, -56(%rbp) cmpq $0, -56(%rbp) jne LBB1_2 ## %bb.1: leaq L_.str(%rip), %rdi callq _system leaq L_.str.1(%rip), %rdi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _printf movl $-1, %edi callq _exit LBB1_2: movslq -12(%rbp), %rdi movl $8, %esi callq _calloc movq %rax, -64(%rbp) cmpq $0, -64(%rbp) jne LBB1_4 ## %bb.3: leaq L_.str(%rip), %rdi callq _system leaq L_.str.1(%rip), %rdi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _printf movl $-1, %edi callq _exit LBB1_4: movslq -12(%rbp), %rdi movl $8, %esi callq _calloc movq %rax, -72(%rbp) cmpq $0, -72(%rbp) jne LBB1_6 ## %bb.5: leaq L_.str(%rip), %rdi callq _system leaq L_.str.1(%rip), %rdi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _printf movl $-1, %edi callq _exit LBB1_6: movl $0, -36(%rbp) LBB1_7: ## =>This Inner Loop Header: Depth=1 movl -36(%rbp), %eax cmpl -12(%rbp), %eax jge LBB1_13 ## %bb.8: ## in Loop: Header=BB1_7 Depth=1 movq -32(%rbp), %rax movl -16(%rbp), %ecx subl $1, %ecx imull -12(%rbp), %ecx addl -36(%rbp), %ecx movslq %ecx, %rcx cmpl $-1, (%rax,%rcx,4) je LBB1_10 ## %bb.9: ## in Loop: Header=BB1_7 Depth=1 movq -104(%rbp), %rax ## 8-byte Reload movl -16(%rbp), %esi subl $1, %esi movq -56(%rbp), %rcx movslq -36(%rbp), %rdx movl %esi, (%rcx,%rdx,4) movq -32(%rbp), %rcx movl -16(%rbp), %edx subl $1, %edx imull -12(%rbp), %edx addl -36(%rbp), %edx movslq %edx, %rdx cvtsi2sdl (%rcx,%rdx,4), %xmm0 movslq -36(%rbp), %rcx movsd %xmm0, (%rax,%rcx,8) jmp LBB1_11 LBB1_10: ## in Loop: Header=BB1_7 Depth=1 movq -104(%rbp), %rax ## 8-byte Reload movq -56(%rbp), %rcx movslq -36(%rbp), %rdx movl $-1, (%rcx,%rdx,4) movslq -36(%rbp), %rcx movsd LCPI1_0(%rip), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, (%rax,%rcx,8) LBB1_11: ## in Loop: Header=BB1_7 Depth=1 movq -72(%rbp), %rax movslq -36(%rbp), %rcx movl $0, (%rax,%rcx,4) ## %bb.12: ## in Loop: Header=BB1_7 Depth=1 movl -36(%rbp), %eax addl $1, %eax movl %eax, -36(%rbp) jmp LBB1_7 LBB1_13: movq -104(%rbp), %rax ## 8-byte Reload movq -72(%rbp), %rcx movl -16(%rbp), %edx subl $1, %edx movslq %edx, %rdx movl $1, (%rcx,%rdx,4) movl -16(%rbp), %ecx subl $1, %ecx movslq %ecx, %rcx xorps %xmm0, %xmm0 movsd %xmm0, (%rax,%rcx,8) LBB1_14: ## =>This Loop Header: Depth=1 ## Child Loop BB1_15 Depth 2 ## Child Loop BB1_26 Depth 2 movsd LCPI1_0(%rip), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -80(%rbp) movl $0, -36(%rbp) LBB1_15: ## Parent Loop BB1_14 Depth=1 ## => This Inner Loop Header: Depth=2 movl -36(%rbp), %eax cmpl -12(%rbp), %eax jge LBB1_23 ## %bb.16: ## in Loop: Header=BB1_15 Depth=2 movq -72(%rbp), %rax movslq -36(%rbp), %rcx cmpl $0, (%rax,%rcx,4) jne LBB1_21 ## %bb.17: ## in Loop: Header=BB1_15 Depth=2 movq -104(%rbp), %rax ## 8-byte Reload movslq -36(%rbp), %rcx movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero xorps %xmm1, %xmm1 ucomisd %xmm1, %xmm0 jb LBB1_20 ## %bb.18: ## in Loop: Header=BB1_15 Depth=2 movq -104(%rbp), %rax ## 8-byte Reload movslq -36(%rbp), %rcx movsd (%rax,%rcx,8), %xmm1 ## xmm1 = mem[0],zero movsd -80(%rbp), %xmm0 ## xmm0 = mem[0],zero ucomisd %xmm1, %xmm0 jbe LBB1_20 ## %bb.19: ## in Loop: Header=BB1_15 Depth=2 movq -104(%rbp), %rax ## 8-byte Reload movslq -36(%rbp), %rcx movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -80(%rbp) movl -36(%rbp), %eax movl %eax, -40(%rbp) LBB1_20: ## in Loop: Header=BB1_15 Depth=2 jmp LBB1_21 LBB1_21: ## in Loop: Header=BB1_15 Depth=2 jmp LBB1_22 LBB1_22: ## in Loop: Header=BB1_15 Depth=2 movl -36(%rbp), %eax addl $1, %eax movl %eax, -36(%rbp) jmp LBB1_15 LBB1_23: ## in Loop: Header=BB1_14 Depth=1 movsd -80(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd LCPI1_0(%rip), %xmm1 ## xmm1 = mem[0],zero ucomisd %xmm1, %xmm0 jne LBB1_24 jp LBB1_24 jmp LBB1_35 LBB1_24: ## in Loop: Header=BB1_14 Depth=1 movl -40(%rbp), %eax movl -20(%rbp), %ecx subl $1, %ecx cmpl %ecx, %eax je LBB1_35 ## %bb.25: ## in Loop: Header=BB1_14 Depth=1 movq -72(%rbp), %rax movslq -40(%rbp), %rcx movl $1, (%rax,%rcx,4) movl $0, -36(%rbp) LBB1_26: ## Parent Loop BB1_14 Depth=1 ## => This Inner Loop Header: Depth=2 movl -36(%rbp), %eax cmpl -12(%rbp), %eax jge LBB1_34 ## %bb.27: ## in Loop: Header=BB1_26 Depth=2 movq -72(%rbp), %rax movslq -36(%rbp), %rcx cmpl $0, (%rax,%rcx,4) jne LBB1_32 ## %bb.28: ## in Loop: Header=BB1_26 Depth=2 movq -32(%rbp), %rax movl -40(%rbp), %ecx imull -12(%rbp), %ecx addl -36(%rbp), %ecx movslq %ecx, %rcx cmpl $-1, (%rax,%rcx,4) je LBB1_31 ## %bb.29: ## in Loop: Header=BB1_26 Depth=2 movq -104(%rbp), %rax ## 8-byte Reload movslq -40(%rbp), %rcx movsd (%rax,%rcx,8), %xmm1 ## xmm1 = mem[0],zero movq -32(%rbp), %rcx movl -40(%rbp), %edx imull -12(%rbp), %edx addl -36(%rbp), %edx movslq %edx, %rdx cvtsi2sdl (%rcx,%rdx,4), %xmm0 addsd %xmm0, %xmm1 movslq -36(%rbp), %rcx movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero ucomisd %xmm1, %xmm0 jbe LBB1_31 ## %bb.30: ## in Loop: Header=BB1_26 Depth=2 movq -104(%rbp), %rax ## 8-byte Reload movslq -40(%rbp), %rcx movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero movq -32(%rbp), %rcx movl -40(%rbp), %edx imull -12(%rbp), %edx addl -36(%rbp), %edx movslq %edx, %rdx cvtsi2sdl (%rcx,%rdx,4), %xmm1 addsd %xmm1, %xmm0 movslq -36(%rbp), %rcx movsd %xmm0, (%rax,%rcx,8) movl -40(%rbp), %edx movq -56(%rbp), %rax movslq -36(%rbp), %rcx movl %edx, (%rax,%rcx,4) LBB1_31: ## in Loop: Header=BB1_26 Depth=2 jmp LBB1_32 LBB1_32: ## in Loop: Header=BB1_26 Depth=2 jmp LBB1_33 LBB1_33: ## in Loop: Header=BB1_26 Depth=2 movl -36(%rbp), %eax addl $1, %eax movl %eax, -36(%rbp) jmp LBB1_26 LBB1_34: ## in Loop: Header=BB1_14 Depth=1 jmp LBB1_35 LBB1_35: ## in Loop: Header=BB1_14 Depth=1 jmp LBB1_36 LBB1_36: ## in Loop: Header=BB1_14 Depth=1 movl -40(%rbp), %ecx movl -20(%rbp), %edx subl $1, %edx xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl %edx, %ecx movb %al, -113(%rbp) ## 1-byte Spill je LBB1_38 ## %bb.37: ## in Loop: Header=BB1_14 Depth=1 movsd -80(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd LCPI1_0(%rip), %xmm1 ## xmm1 = mem[0],zero ucomisd %xmm1, %xmm0 setne %al setp %cl orb %cl, %al movb %al, -113(%rbp) ## 1-byte Spill LBB1_38: ## in Loop: Header=BB1_14 Depth=1 movb -113(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB1_14 ## %bb.39: movl -16(%rbp), %esi movl -20(%rbp), %edx leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf movsd -80(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd LCPI1_0(%rip), %xmm1 ## xmm1 = mem[0],zero ucomisd %xmm1, %xmm0 jne LBB1_41 jp LBB1_41 ## %bb.40: leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf jmp LBB1_49 LBB1_41: movl -20(%rbp), %eax movl %eax, -36(%rbp) movq -56(%rbp), %rax movl -36(%rbp), %ecx subl $1, %ecx movslq %ecx, %rcx movl (%rax,%rcx,4), %eax movl %eax, -36(%rbp) LBB1_42: ## =>This Inner Loop Header: Depth=1 cmpl $-1, -36(%rbp) je LBB1_44 ## %bb.43: ## in Loop: Header=BB1_42 Depth=1 movl -36(%rbp), %edx addl $1, %edx movq -64(%rbp), %rax movslq -44(%rbp), %rcx movl %edx, (%rax,%rcx,4) movl -44(%rbp), %eax addl $1, %eax movl %eax, -44(%rbp) movq -56(%rbp), %rax movslq -36(%rbp), %rcx movl (%rax,%rcx,4), %eax movl %eax, -36(%rbp) jmp LBB1_42 LBB1_44: movl -44(%rbp), %eax movl %eax, -36(%rbp) LBB1_45: ## =>This Inner Loop Header: Depth=1 cmpl $0, -36(%rbp) jle LBB1_48 ## %bb.46: ## in Loop: Header=BB1_45 Depth=1 movq -64(%rbp), %rax movl -36(%rbp), %ecx subl $1, %ecx movslq %ecx, %rcx movl (%rax,%rcx,4), %esi leaq L_.str.5(%rip), %rdi movb $0, %al callq _printf ## %bb.47: ## in Loop: Header=BB1_45 Depth=1 movl -36(%rbp), %eax addl $-1, %eax movl %eax, -36(%rbp) jmp LBB1_45 LBB1_48: movl -20(%rbp), %esi leaq L_.str.6(%rip), %rdi movb $0, %al callq _printf ## kill: def $ecx killed $eax movq -104(%rbp), %rax ## 8-byte Reload movl -20(%rbp), %ecx subl $1, %ecx movslq %ecx, %rcx cvttsd2si (%rax,%rcx,8), %esi leaq L_.str.7(%rip), %rdi movb $0, %al callq _printf LBB1_49: movq -88(%rbp), %rax movq %rax, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB1_51 ## %bb.50: movq %rbp, %rsp popq %rbp retq LBB1_51: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _grafo_criar ## -- Begin function grafo_criar .p2align 4, 0x90 _grafo_criar: ## @grafo_criar .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp LBB2_1: ## =>This Inner Loop Header: Depth=1 leaq L_.str.8(%rip), %rdi movb $0, %al callq _printf leaq L_.str.6(%rip), %rdi leaq _vertices(%rip), %rsi movb $0, %al callq _scanf ## %bb.2: ## in Loop: Header=BB2_1 Depth=1 cmpl $3, _vertices(%rip) jl LBB2_1 ## %bb.3: cmpq $0, _custos(%rip) jne LBB2_5 ## %bb.4: movq _custos(%rip), %rdi callq _free LBB2_5: movslq _vertices(%rip), %rdi shlq $2, %rdi movslq _vertices(%rip), %rax imulq %rax, %rdi callq _malloc movq %rax, _custos(%rip) cmpq $0, _custos(%rip) jne LBB2_7 ## %bb.6: leaq L_.str(%rip), %rdi callq _system leaq L_.str.1(%rip), %rdi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _printf movl $-1, %edi callq _exit LBB2_7: movl $0, -4(%rbp) LBB2_8: ## =>This Inner Loop Header: Depth=1 movl -4(%rbp), %eax movl _vertices(%rip), %ecx imull _vertices(%rip), %ecx cmpl %ecx, %eax jg LBB2_11 ## %bb.9: ## in Loop: Header=BB2_8 Depth=1 movq _custos(%rip), %rax movslq -4(%rbp), %rcx movl $-1, (%rax,%rcx,4) ## %bb.10: ## in Loop: Header=BB2_8 Depth=1 movl -4(%rbp), %eax addl $1, %eax movl %eax, -4(%rbp) jmp LBB2_8 LBB2_11: jmp LBB2_12 LBB2_12: ## =>This Loop Header: Depth=1 ## Child Loop BB2_13 Depth 2 ## Child Loop BB2_19 Depth 2 ## Child Loop BB2_25 Depth 2 leaq L_.str.9(%rip), %rdi callq _system leaq L_.str.10(%rip), %rdi movb $0, %al callq _printf LBB2_13: ## Parent Loop BB2_12 Depth=1 ## => This Inner Loop Header: Depth=2 movl _vertices(%rip), %esi leaq L_.str.11(%rip), %rdi movb $0, %al callq _printf leaq L_.str.6(%rip), %rdi movq _origem@GOTPCREL(%rip), %rsi movb $0, %al callq _scanf ## %bb.14: ## in Loop: Header=BB2_13 Depth=2 movb $1, %al movq _origem@GOTPCREL(%rip), %rcx cmpl $0, (%rcx) movb %al, -5(%rbp) ## 1-byte Spill jl LBB2_16 ## %bb.15: ## in Loop: Header=BB2_13 Depth=2 movq _origem@GOTPCREL(%rip), %rax movl (%rax), %eax cmpl _vertices(%rip), %eax setg %al movb %al, -5(%rbp) ## 1-byte Spill LBB2_16: ## in Loop: Header=BB2_13 Depth=2 movb -5(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB2_13 ## %bb.17: ## in Loop: Header=BB2_12 Depth=1 movq _origem@GOTPCREL(%rip), %rax cmpl $0, (%rax) je LBB2_28 ## %bb.18: ## in Loop: Header=BB2_12 Depth=1 jmp LBB2_19 LBB2_19: ## Parent Loop BB2_12 Depth=1 ## => This Inner Loop Header: Depth=2 movl _vertices(%rip), %esi movq _origem@GOTPCREL(%rip), %rax movl (%rax), %edx leaq L_.str.12(%rip), %rdi movb $0, %al callq _printf leaq L_.str.6(%rip), %rdi movq _destino@GOTPCREL(%rip), %rsi movb $0, %al callq _scanf ## %bb.20: ## in Loop: Header=BB2_19 Depth=2 movb $1, %al movq _destino@GOTPCREL(%rip), %rcx cmpl $1, (%rcx) movb %al, -6(%rbp) ## 1-byte Spill jl LBB2_23 ## %bb.21: ## in Loop: Header=BB2_19 Depth=2 movq _destino@GOTPCREL(%rip), %rax movl (%rax), %ecx movb $1, %al cmpl _vertices(%rip), %ecx movb %al, -6(%rbp) ## 1-byte Spill jg LBB2_23 ## %bb.22: ## in Loop: Header=BB2_19 Depth=2 movq _destino@GOTPCREL(%rip), %rax movl (%rax), %eax movq _origem@GOTPCREL(%rip), %rcx cmpl (%rcx), %eax sete %al movb %al, -6(%rbp) ## 1-byte Spill LBB2_23: ## in Loop: Header=BB2_19 Depth=2 movb -6(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB2_19 ## %bb.24: ## in Loop: Header=BB2_12 Depth=1 jmp LBB2_25 LBB2_25: ## Parent Loop BB2_12 Depth=1 ## => This Inner Loop Header: Depth=2 movq _origem@GOTPCREL(%rip), %rax movl (%rax), %esi movq _destino@GOTPCREL(%rip), %rax movl (%rax), %edx leaq L_.str.13(%rip), %rdi movb $0, %al callq _printf leaq L_.str.6(%rip), %rdi movq _custo@GOTPCREL(%rip), %rsi movb $0, %al callq _scanf ## %bb.26: ## in Loop: Header=BB2_25 Depth=2 movq _custo@GOTPCREL(%rip), %rax cmpl $0, (%rax) jl LBB2_25 ## %bb.27: ## in Loop: Header=BB2_12 Depth=1 movq _custo@GOTPCREL(%rip), %rax movl (%rax), %edx movq _custos(%rip), %rax movq _origem@GOTPCREL(%rip), %rcx movl (%rcx), %ecx subl $1, %ecx imull _vertices(%rip), %ecx movq _destino@GOTPCREL(%rip), %rsi addl (%rsi), %ecx subl $1, %ecx movslq %ecx, %rcx movl %edx, (%rax,%rcx,4) LBB2_28: ## in Loop: Header=BB2_12 Depth=1 jmp LBB2_29 LBB2_29: ## in Loop: Header=BB2_12 Depth=1 movq _origem@GOTPCREL(%rip), %rax cmpl $0, (%rax) jne LBB2_12 ## %bb.30: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _grafo_procurar ## -- Begin function grafo_procurar .p2align 4, 0x90 _grafo_procurar: ## @grafo_procurar .cfi_startproc ## %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.9(%rip), %rdi callq _system leaq L_.str.14(%rip), %rdi callq _system leaq L_.str.15(%rip), %rdi movb $0, %al callq _printf movl $1, -4(%rbp) LBB3_1: ## =>This Loop Header: Depth=1 ## Child Loop BB3_3 Depth 2 movl -4(%rbp), %eax cmpl _vertices(%rip), %eax jg LBB3_8 ## %bb.2: ## in Loop: Header=BB3_1 Depth=1 movl $1, -8(%rbp) LBB3_3: ## Parent Loop BB3_1 Depth=1 ## => This Inner Loop Header: Depth=2 movl -8(%rbp), %eax cmpl _vertices(%rip), %eax jg LBB3_6 ## %bb.4: ## in Loop: Header=BB3_3 Depth=2 movl _vertices(%rip), %edi movl -4(%rbp), %esi movl -8(%rbp), %edx movq _custos(%rip), %rcx callq _dijkstra ## %bb.5: ## in Loop: Header=BB3_3 Depth=2 movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) jmp LBB3_3 LBB3_6: ## in Loop: Header=BB3_1 Depth=1 leaq L_.str.16(%rip), %rdi movb $0, %al callq _printf ## %bb.7: ## in Loop: Header=BB3_1 Depth=1 movl -4(%rbp), %eax addl $1, %eax movl %eax, -4(%rbp) jmp LBB3_1 LBB3_8: leaq L_.str.17(%rip), %rdi callq _system leaq L_.str.18(%rip), %rdi callq _system addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _menu_mostrar ## -- Begin function menu_mostrar .p2align 4, 0x90 _menu_mostrar: ## @menu_mostrar .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.9(%rip), %rdi callq _system leaq L_.str.19(%rip), %rdi movb $0, %al callq _printf leaq L_.str.20(%rip), %rdi movb $0, %al callq _printf leaq L_.str.21(%rip), %rdi movb $0, %al callq _printf leaq L_.str.22(%rip), %rdi movb $0, %al callq _printf leaq L_.str.23(%rip), %rdi movb $0, %al callq _printf leaq L_.str.24(%rip), %rdi movb $0, %al callq _printf popq %rbp retq .cfi_endproc ## -- End function .globl _vertices ## @vertices .zerofill __DATA,__common,_vertices,4,2 .globl _custos ## @custos .zerofill __DATA,__common,_custos,8,3 .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "color fc" L_.str.1: ## @.str.1 .asciz "** Erro: Mem\303\263ria Insuficiente **" L_.str.2: ## @.str.2 .asciz "\tDe %d para %d: \t" L_.str.3: ## @.str.3 .asciz "N\303\243o Existe\n" L_.str.4: ## @.str.4 .asciz "\tCusto: \t- \n" L_.str.5: ## @.str.5 .asciz "%d -> " L_.str.6: ## @.str.6 .asciz "%d" L_.str.7: ## @.str.7 .asciz "\n\tCusto: %d\n" L_.str.8: ## @.str.8 .asciz "\nInforme o n\303\272mero de v\303\251rtices (no minimo 3 ): " L_.str.9: ## @.str.9 .asciz "cls" L_.str.10: ## @.str.10 .asciz "Entre com as Arestas:\n" L_.str.11: ## @.str.11 .asciz "digite a origem (entre 0 e %d ou 00 para sair): " .comm _origem,4,2 ## @origem L_.str.12: ## @.str.12 .asciz "Digite o destino (entre 1 e %d, menos %d): " .comm _destino,4,2 ## @destino L_.str.13: ## @.str.13 .asciz "Digite o custo (positivo) do v\303\251rtice %d para o v\303\251rtice %d: " .comm _custo,4,2 ## @custo L_.str.14: ## @.str.14 .asciz "color 03" L_.str.15: ## @.str.15 .asciz "Lista dos Menores Caminhos no Grafo Dado: \n" L_.str.16: ## @.str.16 .asciz "\n" L_.str.17: ## @.str.17 .asciz "pause" L_.str.18: ## @.str.18 .asciz "color 07" L_.str.19: ## @.str.19 .asciz "Implementa\303\247\303\243o Mapa Estrutura de Dados II, solu\303\247\303\243o com Algoritmo de Dijasktra\n" L_.str.20: ## @.str.20 .asciz "Opcoes:\n" L_.str.21: ## @.str.21 .asciz "\t 1 - Adicionar um Grafo\n" L_.str.22: ## @.str.22 .asciz "\t 2 - Procura Os Menores Caminhos no Grafo\n" L_.str.23: ## @.str.23 .asciz "\t 0 - Sair do programa\n" L_.str.24: ## @.str.24 .asciz "? " .subsections_via_symbols
the_stack_data/102764.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, #4144 movk w9, #4, lsl #16 adrp x16, ___chkstk_darwin@GOTPAGE ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF] blr x16 sub sp, sp, #65, lsl #12 ; =266240 sub sp, sp, #48 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] str wzr, [sp, #36] str wzr, [sp, #32] mov w8, #2 str w8, [sp, #28] mov w8, #5 str w8, [sp, #24] mov w8, #1 str w8, [sp, #20] add x0, sp, #33, lsl #12 ; =135168 add x0, x0, #40 mov x1, #131072 str x1, [sp, #8] ; 8-byte Folded Spill bl _bzero ldr x1, [sp, #8] ; 8-byte Folded Reload add x0, sp, #1, lsl #12 ; =4096 add x0, x0, #40 bl _bzero add x0, sp, #40 mov x1, #4096 bl _bzero b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #32] add w8, w8, #1 str w8, [sp, #32] ldr w9, [sp, #20] ldr w8, [sp, #32] add w8, w8, #3 subs w10, w8, #1 add x8, sp, #40 ldr w8, [x8, w10, sxtw #2] eor w8, w8, w9, lsl #5 and w8, w8, #0xffff str w8, [sp, #20] ldrsw x8, [sp, #20] add x9, sp, #1, lsl #12 ; =4096 add x9, x9, #40 ldr w8, [x9, x8, lsl #2] str w8, [sp, #28] ldrh w11, [sp, #32] add x10, sp, #33, lsl #12 ; =135168 add x10, x10, #40 str w8, [x10, w11, sxtw #2] ldr w8, [sp, #32] ldrsw x10, [sp, #20] str w8, [x9, x10, lsl #2] b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #24] subs w8, w8, #1 str w8, [sp, #24] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_1 b LBB0_3 LBB0_3: ldr w8, [sp, #36] 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_5 b LBB0_4 LBB0_4: bl ___stack_chk_fail LBB0_5: ldr w0, [sp, #4] ; 4-byte Folded Reload add sp, sp, #65, lsl #12 ; =266240 add sp, sp, #48 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x28, x27, [sp], #32 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @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 $266288, %eax ## imm = 0x41030 callq ____chkstk_darwin subq %rax, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -266260(%rbp) movl $0, -266264(%rbp) movl $2, -266268(%rbp) movl $5, -266272(%rbp) movl $1, -266276(%rbp) leaq -131088(%rbp), %rdi xorl %esi, %esi movl $131072, %edx ## imm = 0x20000 callq _memset leaq -262160(%rbp), %rdi xorl %esi, %esi movl $131072, %edx ## imm = 0x20000 callq _memset leaq -266256(%rbp), %rdi xorl %esi, %esi movl $4096, %edx ## imm = 0x1000 callq _memset LBB0_1: ## =>This Inner Loop Header: Depth=1 movl -266264(%rbp), %eax addl $1, %eax movl %eax, -266264(%rbp) movl -266276(%rbp), %eax shll $5, %eax movl -266264(%rbp), %ecx addl $3, %ecx subl $1, %ecx movslq %ecx, %rcx xorl -266256(%rbp,%rcx,4), %eax andl $65535, %eax ## imm = 0xFFFF movl %eax, -266276(%rbp) movslq -266276(%rbp), %rax movl -262160(%rbp,%rax,4), %ecx movl %ecx, -266268(%rbp) movl -266264(%rbp), %eax andl $65535, %eax ## imm = 0xFFFF cltq movl %ecx, -131088(%rbp,%rax,4) movl -266264(%rbp), %ecx movslq -266276(%rbp), %rax movl %ecx, -262160(%rbp,%rax,4) ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl -266272(%rbp), %eax addl $-1, %eax movl %eax, -266272(%rbp) cmpl $0, %eax jne LBB0_1 ## %bb.3: movl -266260(%rbp), %eax movl %eax, -266280(%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 -266280(%rbp), %eax ## 4-byte Reload addq $266288, %rsp ## imm = 0x41030 popq %rbp retq LBB0_5: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/677680.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _lsame_ ; -- Begin function lsame_ .p2align 2 _lsame_: ; @lsame_ .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, #16] str x1, [sp, #8] ldr x8, [sp, #16] ldrsb w8, [x8] ldr x9, [sp, #8] ldrsb w9, [x9] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: mov w8, #1 str w8, [sp, #28] b LBB0_14 LBB0_2: ldr x8, [sp, #8] ldrsb w8, [x8] subs w8, w8, #97 cset w8, lt tbnz w8, #0, LBB0_7 b LBB0_3 LBB0_3: ldr x8, [sp, #8] ldrsb w8, [x8] subs w8, w8, #122 cset w8, gt tbnz w8, #0, LBB0_7 b LBB0_4 LBB0_4: ldr x8, [sp, #16] ldrsb w8, [x8] ldr x9, [sp, #8] ldrsb w9, [x9] add w9, w9, #32 subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: mov w8, #1 str w8, [sp, #28] b LBB0_14 LBB0_6: b LBB0_13 LBB0_7: ldr x8, [sp, #8] ldrsb w8, [x8] subs w8, w8, #65 cset w8, lt tbnz w8, #0, LBB0_12 b LBB0_8 LBB0_8: ldr x8, [sp, #8] ldrsb w8, [x8] subs w8, w8, #90 cset w8, gt tbnz w8, #0, LBB0_12 b LBB0_9 LBB0_9: ldr x8, [sp, #16] ldrsb w8, [x8] ldr x9, [sp, #8] ldrsb w9, [x9] subs w9, w9, #32 subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_11 b LBB0_10 LBB0_10: mov w8, #1 str w8, [sp, #28] b LBB0_14 LBB0_11: b LBB0_12 LBB0_12: b LBB0_13 LBB0_13: str wzr, [sp, #28] b LBB0_14 LBB0_14: ldr w0, [sp, #28] add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _xerbla_ ; -- Begin function xerbla_ .p2align 2 _xerbla_: ; @xerbla_ .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] str x1, [sp, #16] ldur x10, [x29, #-8] ldr x8, [sp, #16] ldr w9, [x8] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _ilaenv_ ; -- Begin function ilaenv_ .p2align 2 _ilaenv_: ; @ilaenv_ .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 str x0, [sp, #56] str x1, [sp, #48] str x2, [sp, #40] str x3, [sp, #32] str x4, [sp, #24] str x5, [sp, #16] str x6, [sp, #8] mov w0, #1 add sp, sp, #64 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz " ** On entry to %s parameter number %02d had an illegal value\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _lsame_ ## -- Begin function lsame_ .p2align 4, 0x90 _lsame_: ## @lsame_ .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -16(%rbp) movq %rsi, -24(%rbp) movq -16(%rbp), %rax movsbl (%rax), %eax movq -24(%rbp), %rcx movsbl (%rcx), %ecx cmpl %ecx, %eax jne LBB0_2 ## %bb.1: movl $1, -4(%rbp) jmp LBB0_14 LBB0_2: movq -24(%rbp), %rax movsbl (%rax), %eax cmpl $97, %eax jl LBB0_7 ## %bb.3: movq -24(%rbp), %rax movsbl (%rax), %eax cmpl $122, %eax jg LBB0_7 ## %bb.4: movq -16(%rbp), %rax movsbl (%rax), %eax movq -24(%rbp), %rcx movsbl (%rcx), %ecx addl $32, %ecx cmpl %ecx, %eax jne LBB0_6 ## %bb.5: movl $1, -4(%rbp) jmp LBB0_14 LBB0_6: jmp LBB0_13 LBB0_7: movq -24(%rbp), %rax movsbl (%rax), %eax cmpl $65, %eax jl LBB0_12 ## %bb.8: movq -24(%rbp), %rax movsbl (%rax), %eax cmpl $90, %eax jg LBB0_12 ## %bb.9: movq -16(%rbp), %rax movsbl (%rax), %eax movq -24(%rbp), %rcx movsbl (%rcx), %ecx subl $32, %ecx cmpl %ecx, %eax jne LBB0_11 ## %bb.10: movl $1, -4(%rbp) jmp LBB0_14 LBB0_11: jmp LBB0_12 LBB0_12: jmp LBB0_13 LBB0_13: movl $0, -4(%rbp) LBB0_14: movl -4(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .globl _xerbla_ ## -- Begin function xerbla_ .p2align 4, 0x90 _xerbla_: ## @xerbla_ .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) movq -8(%rbp), %rsi movq -16(%rbp), %rax movl (%rax), %edx leaq L_.str(%rip), %rdi movb $0, %al callq _printf addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _ilaenv_ ## -- Begin function ilaenv_ .p2align 4, 0x90 _ilaenv_: ## @ilaenv_ .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq 16(%rbp), %rax movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) movq %rdx, -24(%rbp) movq %rcx, -32(%rbp) movq %r8, -40(%rbp) movq %r9, -48(%rbp) movl $1, %eax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz " ** On entry to %s parameter number %02d had an illegal value\n" .subsections_via_symbols
the_stack_data/75138365.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _test ; -- Begin function test .p2align 2 _test: ; @test .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov x0, sp bl _foo ldr x0, [sp] ldr x1, [sp, #8] mov w2, #12 bl _bar 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 _test ## -- Begin function test .p2align 4, 0x90 _test: ## @test .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp leaq -16(%rbp), %rdi callq _foo movq -16(%rbp), %rdi movq -8(%rbp), %rsi movl $12, %edx callq _bar addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/115225.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] stur w0, [x29, #-8] stur x1, [x29, #-16] ldur w8, [x29, #-8] subs w8, w8, #2 cset w8, ge tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _puts mov w8, #1 stur w8, [x29, #-4] b LBB0_11 LBB0_2: ldur w8, [x29, #-8] subs w8, w8, #2 cset w8, ne tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: ldur x8, [x29, #-16] ldr x0, [x8, #8] bl _puts stur wzr, [x29, #-4] b LBB0_11 LBB0_4: adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF adrp x1, l_.str.2@PAGE add x1, x1, l_.str.2@PAGEOFF bl _fopen str x0, [sp, #24] ldr x3, [sp, #24] add x0, sp, #20 mov x1, #1 mov x2, #4 bl _fread subs x8, x0, #4 cset w8, eq tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: mov x0, #0 bl _time mov x8, x0 str w8, [sp, #16] b LBB0_7 LBB0_6: ldrb w8, [sp, #20] ldrb w9, [sp, #21] orr w8, w8, w9, lsl #8 ldrb w9, [sp, #22] orr w8, w8, w9, lsl #16 ldrb w9, [sp, #23] orr w8, w8, w9, lsl #24 str w8, [sp, #16] b LBB0_7 LBB0_7: ldr w0, [sp, #16] bl _srand ldur w8, [x29, #-8] subs w8, w8, #1 str w8, [sp, #12] ldr w10, [sp, #12] mov w8, #2147483647 sdiv w9, w8, w10 mul w9, w9, w10 subs w9, w8, w9 subs w8, w8, w9 str w8, [sp, #8] b LBB0_8 LBB0_8: ; =>This Inner Loop Header: Depth=1 bl _rand str w0, [sp, #4] ldr w8, [sp, #8] subs w8, w0, w8 cset w8, le tbnz w8, #0, LBB0_10 b LBB0_9 LBB0_9: ; in Loop: Header=BB0_8 Depth=1 b LBB0_8 LBB0_10: ldr w8, [sp, #4] ldr w9, [sp, #8] ldr w10, [sp, #12] sdiv w9, w9, w10 sdiv w8, w8, w9 str w8, [sp] ldur x8, [x29, #-16] ldr w9, [sp] add w9, w9, #1 ldr x0, [x8, w9, sxtw #3] bl _puts stur wzr, [x29, #-4] b LBB0_11 LBB0_11: ldur w0, [x29, #-4] ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "expected arguments" l_.str.1: ; @.str.1 .asciz "/dev/urandom" l_.str.2: ; @.str.2 .asciz "rb" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $64, %rsp movl $0, -4(%rbp) movl %edi, -8(%rbp) movq %rsi, -16(%rbp) cmpl $2, -8(%rbp) jge LBB0_2 ## %bb.1: leaq L_.str(%rip), %rdi callq _puts movl $1, -4(%rbp) jmp LBB0_11 LBB0_2: cmpl $2, -8(%rbp) jne LBB0_4 ## %bb.3: movq -16(%rbp), %rax movq 8(%rax), %rdi callq _puts movl $0, -4(%rbp) jmp LBB0_11 LBB0_4: leaq L_.str.1(%rip), %rdi leaq L_.str.2(%rip), %rsi callq _fopen movq %rax, -24(%rbp) leaq -28(%rbp), %rdi movq -24(%rbp), %rcx movl $1, %esi movl $4, %edx callq _fread cmpq $4, %rax je LBB0_6 ## %bb.5: xorl %eax, %eax movl %eax, %edi callq _time ## kill: def $eax killed $eax killed $rax movl %eax, -32(%rbp) jmp LBB0_7 LBB0_6: movzbl -28(%rbp), %eax movzbl -27(%rbp), %ecx shll $8, %ecx orl %ecx, %eax movzbl -26(%rbp), %ecx shll $16, %ecx orl %ecx, %eax movzbl -25(%rbp), %ecx shll $24, %ecx orl %ecx, %eax movl %eax, -32(%rbp) LBB0_7: movl -32(%rbp), %edi callq _srand movl -8(%rbp), %eax subl $1, %eax movl %eax, -36(%rbp) movl $2147483647, %eax ## imm = 0x7FFFFFFF cltd idivl -36(%rbp) movl $2147483647, %eax ## imm = 0x7FFFFFFF subl %edx, %eax movl %eax, -40(%rbp) LBB0_8: ## =>This Inner Loop Header: Depth=1 callq _rand movl %eax, -44(%rbp) cmpl -40(%rbp), %eax jle LBB0_10 ## %bb.9: ## in Loop: Header=BB0_8 Depth=1 jmp LBB0_8 LBB0_10: movl -44(%rbp), %eax movl %eax, -52(%rbp) ## 4-byte Spill movl -40(%rbp), %eax cltd idivl -36(%rbp) movl %eax, %ecx movl -52(%rbp), %eax ## 4-byte Reload cltd idivl %ecx movl %eax, -48(%rbp) movq -16(%rbp), %rax movl -48(%rbp), %ecx addl $1, %ecx movslq %ecx, %rcx movq (%rax,%rcx,8), %rdi callq _puts movl $0, -4(%rbp) LBB0_11: movl -4(%rbp), %eax addq $64, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "expected arguments" L_.str.1: ## @.str.1 .asciz "/dev/urandom" L_.str.2: ## @.str.2 .asciz "rb" .subsections_via_symbols
the_stack_data/154827697.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _sgemqr_ ; -- Begin function sgemqr_ .p2align 2 _sgemqr_: ; @sgemqr_ .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 sub x8, x29, #64 str x8, [sp, #128] ; 8-byte Folded Spill ldr x14, [x29, #16] ldr x13, [x29, #24] ldr x12, [x29, #32] ldr x11, [x29, #40] ldr x10, [x29, #48] ldr x9, [x29, #56] str x0, [x8, #32] str x1, [x8, #24] str x2, [x8, #16] str x3, [x8, #8] str x4, [x8] stur x5, [x29, #-72] stur x6, [x29, #-80] stur x7, [x29, #-88] stur x14, [x29, #-96] stur x13, [x29, #-104] stur x12, [x29, #-112] stur x11, [x29, #-120] stur x10, [x29, #-128] stur x9, [x29, #-136] ldur x9, [x29, #-80] ldr w9, [x9] stur w9, [x29, #-140] ldur w9, [x29, #-140] mov x10, #0 lsr w9, w9, #0 add w9, w9, #1 stur w9, [x29, #-144] ldursw x11, [x29, #-144] ldur x9, [x29, #-72] subs x11, x10, x11 add x9, x9, x11, lsl #2 stur x9, [x29, #-72] ldur x9, [x29, #-88] subs x9, x9, #4 stur x9, [x29, #-88] ldur x9, [x29, #-112] ldr w9, [x9] stur w9, [x29, #-148] ldur w9, [x29, #-148] lsr w9, w9, #0 add w9, w9, #1 stur w9, [x29, #-152] ldursw x11, [x29, #-152] ldur x9, [x29, #-104] subs x10, x10, x11 add x9, x9, x10, lsl #2 stur x9, [x29, #-104] ldur x9, [x29, #-120] subs x9, x9, #4 stur x9, [x29, #-120] ldur x9, [x29, #-128] ldr w9, [x9] adds w9, w9, #1 cset w9, eq and w9, w9, #0x1 str w9, [sp, #140] ldr x0, [x8, #24] adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF bl _lsame_ ldr x8, [sp, #128] ; 8-byte Folded Reload str w0, [sp, #144] ldr x0, [x8, #24] adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF bl _lsame_ ldr x8, [sp, #128] ; 8-byte Folded Reload stur w0, [x29, #-164] ldr x0, [x8, #32] adrp x1, l_.str.2@PAGE add x1, x1, l_.str.2@PAGEOFF bl _lsame_ ldr x8, [sp, #128] ; 8-byte Folded Reload stur w0, [x29, #-160] ldr x0, [x8, #32] adrp x1, l_.str.3@PAGE add x1, x1, l_.str.3@PAGEOFF bl _lsame_ str w0, [sp, #168] ldur x8, [x29, #-88] ldr s0, [x8, #8] fcvtzs w8, s0 str w8, [sp, #164] ldur x8, [x29, #-88] ldr s0, [x8, #12] fcvtzs w8, s0 str w8, [sp, #160] ldur w8, [x29, #-160] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: ldr x8, [sp, #128] ; 8-byte Folded Reload ldr x9, [x8, #8] ldr w9, [x9] ldr w10, [sp, #160] mul w9, w9, w10 str w9, [sp, #152] ldr x8, [x8, #16] ldr w8, [x8] str w8, [sp, #156] b LBB0_3 LBB0_2: ldr x8, [sp, #128] ; 8-byte Folded Reload ldr w9, [sp, #164] ldr w10, [sp, #160] mul w9, w9, w10 str w9, [sp, #152] ldr x8, [x8, #8] ldr w8, [x8] str w8, [sp, #156] b LBB0_3 LBB0_3: ldr x9, [sp, #128] ; 8-byte Folded Reload ldr w8, [sp, #164] ldr x9, [x9] ldr w9, [x9] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB0_9 b LBB0_4 LBB0_4: ldr x9, [sp, #128] ; 8-byte Folded Reload ldr w8, [sp, #156] ldr x9, [x9] ldr w9, [x9] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB0_9 b LBB0_5 LBB0_5: ldr x10, [sp, #128] ; 8-byte Folded Reload ldr w8, [sp, #156] ldr x9, [x10] ldr w9, [x9] subs w8, w8, w9 ldr w9, [sp, #164] ldr x10, [x10] ldr w10, [x10] subs w10, w9, w10 sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_7 b LBB0_6 LBB0_6: ldr x10, [sp, #128] ; 8-byte Folded Reload ldr w8, [sp, #156] ldr x9, [x10] ldr w9, [x9] subs w8, w8, w9 ldr w9, [sp, #164] ldr x10, [x10] ldr w10, [x10] subs w9, w9, w10 sdiv w8, w8, w9 str w8, [sp, #148] b LBB0_8 LBB0_7: ldr x10, [sp, #128] ; 8-byte Folded Reload ldr w8, [sp, #156] ldr x9, [x10] ldr w9, [x9] subs w8, w8, w9 ldr w9, [sp, #164] ldr x10, [x10] ldr w10, [x10] subs w9, w9, w10 sdiv w8, w8, w9 add w8, w8, #1 str w8, [sp, #148] b LBB0_8 LBB0_8: b LBB0_10 LBB0_9: mov w8, #1 str w8, [sp, #148] b LBB0_10 LBB0_10: ldur x8, [x29, #-136] str wzr, [x8] ldur w8, [x29, #-160] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_13 b LBB0_11 LBB0_11: ldr w8, [sp, #168] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_13 b LBB0_12 LBB0_12: ldur x9, [x29, #-136] mov w8, #-1 str w8, [x9] b LBB0_49 LBB0_13: ldur w8, [x29, #-164] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_16 b LBB0_14 LBB0_14: ldr w8, [sp, #144] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_16 b LBB0_15 LBB0_15: ldur x9, [x29, #-136] mov w8, #-2 str w8, [x9] b LBB0_48 LBB0_16: ldr x8, [sp, #128] ; 8-byte Folded Reload ldr x8, [x8, #16] ldr w8, [x8] subs w8, w8, #0 cset w8, ge tbnz w8, #0, LBB0_18 b LBB0_17 LBB0_17: ldur x9, [x29, #-136] mov w8, #-3 str w8, [x9] b LBB0_47 LBB0_18: ldr x8, [sp, #128] ; 8-byte Folded Reload ldr x8, [x8, #8] ldr w8, [x8] subs w8, w8, #0 cset w8, ge tbnz w8, #0, LBB0_20 b LBB0_19 LBB0_19: ldur x9, [x29, #-136] mov w8, #-4 str w8, [x9] b LBB0_46 LBB0_20: ldr x8, [sp, #128] ; 8-byte Folded Reload ldr x8, [x8] ldr w8, [x8] subs w8, w8, #0 cset w8, lt tbnz w8, #0, LBB0_22 b LBB0_21 LBB0_21: ldr x8, [sp, #128] ; 8-byte Folded Reload ldr x8, [x8] ldr w8, [x8] ldr w9, [sp, #156] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB0_23 b LBB0_22 LBB0_22: ldur x9, [x29, #-136] mov w8, #-5 str w8, [x9] b LBB0_45 LBB0_23: ldur x8, [x29, #-80] ldr w8, [x8] str w8, [sp, #124] ; 4-byte Folded Spill ldr w9, [sp, #156] mov w8, #1 subs w8, w8, w9 cset w8, lt tbnz w8, #0, LBB0_25 b LBB0_24 LBB0_24: mov w8, #1 str w8, [sp, #120] ; 4-byte Folded Spill b LBB0_26 LBB0_25: ldr w8, [sp, #156] str w8, [sp, #120] ; 4-byte Folded Spill b LBB0_26 LBB0_26: ldr w8, [sp, #124] ; 4-byte Folded Reload ldr w9, [sp, #120] ; 4-byte Folded Reload subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_28 b LBB0_27 LBB0_27: ldur x9, [x29, #-136] mov w8, #-7 str w8, [x9] b LBB0_44 LBB0_28: ldur x8, [x29, #-96] ldr w8, [x8] subs w8, w8, #5 cset w8, ge tbnz w8, #0, LBB0_30 b LBB0_29 LBB0_29: ldur x9, [x29, #-136] mov w8, #-9 str w8, [x9] b LBB0_43 LBB0_30: ldr x8, [sp, #128] ; 8-byte Folded Reload ldur x9, [x29, #-112] ldr w9, [x9] str w9, [sp, #116] ; 4-byte Folded Spill ldr x8, [x8, #16] ldr w9, [x8] mov w8, #1 subs w8, w8, w9 cset w8, lt tbnz w8, #0, LBB0_32 b LBB0_31 LBB0_31: mov w8, #1 str w8, [sp, #112] ; 4-byte Folded Spill b LBB0_33 LBB0_32: ldr x8, [sp, #128] ; 8-byte Folded Reload ldr x8, [x8, #16] ldr w8, [x8] str w8, [sp, #112] ; 4-byte Folded Spill b LBB0_33 LBB0_33: ldr w8, [sp, #116] ; 4-byte Folded Reload ldr w9, [sp, #112] ; 4-byte Folded Reload subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_35 b LBB0_34 LBB0_34: ldur x9, [x29, #-136] mov w8, #-11 str w8, [x9] b LBB0_42 LBB0_35: ldur x8, [x29, #-128] ldr w8, [x8] str w8, [sp, #108] ; 4-byte Folded Spill ldr w9, [sp, #152] mov w8, #1 subs w8, w8, w9 cset w8, lt tbnz w8, #0, LBB0_37 b LBB0_36 LBB0_36: mov w8, #1 str w8, [sp, #104] ; 4-byte Folded Spill b LBB0_38 LBB0_37: ldr w8, [sp, #152] str w8, [sp, #104] ; 4-byte Folded Spill b LBB0_38 LBB0_38: ldr w8, [sp, #108] ; 4-byte Folded Reload ldr w9, [sp, #104] ; 4-byte Folded Reload subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_41 b LBB0_39 LBB0_39: ldr w8, [sp, #140] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_41 b LBB0_40 LBB0_40: ldur x9, [x29, #-136] mov w8, #-13 str w8, [x9] b LBB0_41 LBB0_41: b LBB0_42 LBB0_42: b LBB0_43 LBB0_43: b LBB0_44 LBB0_44: b LBB0_45 LBB0_45: b LBB0_46 LBB0_46: b LBB0_47 LBB0_47: b LBB0_48 LBB0_48: b LBB0_49 LBB0_49: ldur x8, [x29, #-136] ldr w8, [x8] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_51 b LBB0_50 LBB0_50: ldr s0, [sp, #152] scvtf s0, s0 ldur x8, [x29, #-120] str s0, [x8, #4] b LBB0_51 LBB0_51: ldur x8, [x29, #-136] ldr w8, [x8] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_53 b LBB0_52 LBB0_52: ldur x8, [x29, #-136] ldr w9, [x8] mov w8, #0 subs w8, w8, w9 sub x1, x29, #156 stur w8, [x29, #-156] adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF mov w2, #6 bl _xerbla_ stur wzr, [x29, #-20] b LBB0_79 LBB0_53: ldr w8, [sp, #140] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_55 b LBB0_54 LBB0_54: stur wzr, [x29, #-20] b LBB0_79 LBB0_55: b LBB0_56 LBB0_56: ldr x9, [sp, #128] ; 8-byte Folded Reload ldr x8, [x9, #16] ldr w8, [x8] ldr x9, [x9, #8] ldr w9, [x9] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_58 b LBB0_57 LBB0_57: ldr x8, [sp, #128] ; 8-byte Folded Reload ldr x8, [x8, #16] ldr w8, [x8] str w8, [sp, #100] ; 4-byte Folded Spill b LBB0_59 LBB0_58: ldr x8, [sp, #128] ; 8-byte Folded Reload ldr x8, [x8, #8] ldr w8, [x8] str w8, [sp, #100] ; 4-byte Folded Spill b LBB0_59 LBB0_59: ldr x9, [sp, #128] ; 8-byte Folded Reload ldr w8, [sp, #100] ; 4-byte Folded Reload stur w8, [x29, #-156] ldur w8, [x29, #-156] ldr x9, [x9] ldr w9, [x9] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_61 b LBB0_60 LBB0_60: ldur w8, [x29, #-156] str w8, [sp, #96] ; 4-byte Folded Spill b LBB0_62 LBB0_61: ldr x8, [sp, #128] ; 8-byte Folded Reload ldr x8, [x8] ldr w8, [x8] str w8, [sp, #96] ; 4-byte Folded Spill b LBB0_62 LBB0_62: ldr w8, [sp, #96] ; 4-byte Folded Reload subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_64 b LBB0_63 LBB0_63: stur wzr, [x29, #-20] b LBB0_79 LBB0_64: ldr x9, [sp, #128] ; 8-byte Folded Reload ldr x8, [x9, #16] ldr w8, [x8] ldr x9, [x9, #8] ldr w9, [x9] subs w8, w8, w9 cset w8, lt tbnz w8, #0, LBB0_66 b LBB0_65 LBB0_65: ldr x8, [sp, #128] ; 8-byte Folded Reload ldr x8, [x8, #16] ldr w8, [x8] str w8, [sp, #92] ; 4-byte Folded Spill b LBB0_67 LBB0_66: ldr x8, [sp, #128] ; 8-byte Folded Reload ldr x8, [x8, #8] ldr w8, [x8] str w8, [sp, #92] ; 4-byte Folded Spill b LBB0_67 LBB0_67: ldr w8, [sp, #92] ; 4-byte Folded Reload stur w8, [x29, #-156] ldur w8, [x29, #-160] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_69 b LBB0_68 LBB0_68: ldr x9, [sp, #128] ; 8-byte Folded Reload ldr x8, [x9, #16] ldr w8, [x8] ldr x9, [x9] ldr w9, [x9] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB0_76 b LBB0_69 LBB0_69: ldr w8, [sp, #168] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_71 b LBB0_70 LBB0_70: ldr x9, [sp, #128] ; 8-byte Folded Reload ldr x8, [x9, #8] ldr w8, [x8] ldr x9, [x9] ldr w9, [x9] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB0_76 b LBB0_71 LBB0_71: ldr x9, [sp, #128] ; 8-byte Folded Reload ldr w8, [sp, #164] ldr x9, [x9] ldr w9, [x9] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB0_76 b LBB0_72 LBB0_72: ldr x9, [sp, #128] ; 8-byte Folded Reload ldr w8, [sp, #164] str w8, [sp, #88] ; 4-byte Folded Spill ldur w8, [x29, #-156] ldr x9, [x9] ldr w9, [x9] subs w8, w8, w9 cset w8, lt tbnz w8, #0, LBB0_74 b LBB0_73 LBB0_73: ldur w8, [x29, #-156] str w8, [sp, #84] ; 4-byte Folded Spill b LBB0_75 LBB0_74: ldr x8, [sp, #128] ; 8-byte Folded Reload ldr x8, [x8] ldr w8, [x8] str w8, [sp, #84] ; 4-byte Folded Spill b LBB0_75 LBB0_75: ldr w8, [sp, #88] ; 4-byte Folded Reload ldr w9, [sp, #84] ; 4-byte Folded Reload subs w8, w8, w9 cset w8, lt tbnz w8, #0, LBB0_77 b LBB0_76 LBB0_76: ldr x8, [sp, #128] ; 8-byte Folded Reload ldr x0, [x8, #32] ldr x1, [x8, #24] ldr x2, [x8, #16] ldr x3, [x8, #8] ldr x4, [x8] ldur x8, [x29, #-72] ldursw x9, [x29, #-144] add x6, x8, x9, lsl #2 ldur x7, [x29, #-80] ldur x8, [x29, #-88] add x13, x8, #24 ldur x8, [x29, #-104] ldursw x9, [x29, #-152] add x12, x8, x9, lsl #2 ldur x11, [x29, #-112] ldur x8, [x29, #-120] add x10, x8, #4 ldur x8, [x29, #-136] mov x9, sp str x13, [x9] add x5, sp, #160 mov x13, x5 str x13, [x9, #8] str x12, [x9, #16] str x11, [x9, #24] str x10, [x9, #32] str x8, [x9, #40] bl _sgemqrt_ b LBB0_78 LBB0_77: ldr x8, [sp, #128] ; 8-byte Folded Reload ldr x0, [x8, #32] ldr x1, [x8, #24] ldr x2, [x8, #16] ldr x3, [x8, #8] ldr x4, [x8] ldur x8, [x29, #-72] ldursw x9, [x29, #-144] add x7, x8, x9, lsl #2 ldur x15, [x29, #-80] ldur x8, [x29, #-88] add x14, x8, #24 ldur x8, [x29, #-104] ldursw x9, [x29, #-152] add x13, x8, x9, lsl #2 ldur x12, [x29, #-112] ldur x8, [x29, #-120] add x11, x8, #4 ldur x10, [x29, #-128] ldur x8, [x29, #-136] mov x9, sp str x9, [sp, #72] ; 8-byte Folded Spill str x15, [x9] str x14, [x9, #8] add x6, sp, #160 mov x14, x6 str x14, [x9, #16] str x13, [x9, #24] str x12, [x9, #32] str x11, [x9, #40] str x10, [x9, #48] str x8, [x9, #56] add x5, sp, #164 bl _slamtsqr_ b LBB0_78 LBB0_78: ldr s0, [sp, #152] scvtf s0, s0 ldur x8, [x29, #-120] str s0, [x8, #4] stur wzr, [x29, #-20] b LBB0_79 LBB0_79: ldur w0, [x29, #-20] 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 "N" l_.str.1: ; @.str.1 .asciz "T" l_.str.2: ; @.str.2 .asciz "L" l_.str.3: ; @.str.3 .asciz "R" l_.str.4: ; @.str.4 .asciz "SGEMQR" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _sgemqr_ ## -- Begin function sgemqr_ .p2align 4, 0x90 _sgemqr_: ## @sgemqr_ .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $248, %rsp .cfi_offset %rbx, -56 .cfi_offset %r12, -48 .cfi_offset %r13, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movq 72(%rbp), %rax movq 64(%rbp), %rax movq 56(%rbp), %rax movq 48(%rbp), %rax movq 40(%rbp), %rax movq 32(%rbp), %rax movq 24(%rbp), %rax movq 16(%rbp), %rax movq %rdi, -56(%rbp) movq %rsi, -64(%rbp) movq %rdx, -72(%rbp) movq %rcx, -80(%rbp) movq %r8, -88(%rbp) movq %r9, -96(%rbp) movq 16(%rbp), %rax movl (%rax), %eax movl %eax, -100(%rbp) movl -100(%rbp), %eax shll $0, %eax addl $1, %eax movl %eax, -104(%rbp) movl -104(%rbp), %ecx movq -96(%rbp), %rax movslq %ecx, %rdx xorl %ecx, %ecx ## kill: def $rcx killed $ecx subq %rdx, %rcx shlq $2, %rcx addq %rcx, %rax movq %rax, -96(%rbp) movq 24(%rbp), %rax addq $-4, %rax movq %rax, 24(%rbp) movq 48(%rbp), %rax movl (%rax), %eax movl %eax, -108(%rbp) movl -108(%rbp), %eax shll $0, %eax addl $1, %eax movl %eax, -112(%rbp) movl -112(%rbp), %ecx movq 40(%rbp), %rax movslq %ecx, %rdx xorl %ecx, %ecx ## kill: def $rcx killed $ecx subq %rdx, %rcx shlq $2, %rcx addq %rcx, %rax movq %rax, 40(%rbp) movq 56(%rbp), %rax addq $-4, %rax movq %rax, 56(%rbp) movq 64(%rbp), %rax cmpl $-1, (%rax) sete %al andb $1, %al movzbl %al, %eax movl %eax, -156(%rbp) movq -64(%rbp), %rdi leaq L_.str(%rip), %rsi callq _lsame_ movl %eax, -152(%rbp) movq -64(%rbp), %rdi leaq L_.str.1(%rip), %rsi callq _lsame_ movl %eax, -124(%rbp) movq -56(%rbp), %rdi leaq L_.str.2(%rip), %rsi callq _lsame_ movl %eax, -120(%rbp) movq -56(%rbp), %rdi leaq L_.str.3(%rip), %rsi callq _lsame_ movl %eax, -128(%rbp) movq 24(%rbp), %rax cvttss2si 8(%rax), %eax movl %eax, -132(%rbp) movq 24(%rbp), %rax cvttss2si 12(%rax), %eax movl %eax, -136(%rbp) cmpl $0, -120(%rbp) je LBB0_2 ## %bb.1: movq -80(%rbp), %rax movl (%rax), %eax imull -136(%rbp), %eax movl %eax, -144(%rbp) movq -72(%rbp), %rax movl (%rax), %eax movl %eax, -140(%rbp) jmp LBB0_3 LBB0_2: movl -132(%rbp), %eax imull -136(%rbp), %eax movl %eax, -144(%rbp) movq -80(%rbp), %rax movl (%rax), %eax movl %eax, -140(%rbp) LBB0_3: movl -132(%rbp), %eax movq -88(%rbp), %rcx cmpl (%rcx), %eax jle LBB0_9 ## %bb.4: movl -140(%rbp), %eax movq -88(%rbp), %rcx cmpl (%rcx), %eax jle LBB0_9 ## %bb.5: movl -140(%rbp), %eax movq -88(%rbp), %rcx subl (%rcx), %eax movl -132(%rbp), %ecx movq -88(%rbp), %rdx subl (%rdx), %ecx cltd idivl %ecx cmpl $0, %edx jne LBB0_7 ## %bb.6: movl -140(%rbp), %eax movq -88(%rbp), %rcx subl (%rcx), %eax movl -132(%rbp), %ecx movq -88(%rbp), %rdx subl (%rdx), %ecx cltd idivl %ecx movl %eax, -148(%rbp) jmp LBB0_8 LBB0_7: movl -140(%rbp), %eax movq -88(%rbp), %rcx subl (%rcx), %eax movl -132(%rbp), %ecx movq -88(%rbp), %rdx subl (%rdx), %ecx cltd idivl %ecx addl $1, %eax movl %eax, -148(%rbp) LBB0_8: jmp LBB0_10 LBB0_9: movl $1, -148(%rbp) LBB0_10: movq 72(%rbp), %rax movl $0, (%rax) cmpl $0, -120(%rbp) jne LBB0_13 ## %bb.11: cmpl $0, -128(%rbp) jne LBB0_13 ## %bb.12: movq 72(%rbp), %rax movl $-1, (%rax) jmp LBB0_49 LBB0_13: cmpl $0, -124(%rbp) jne LBB0_16 ## %bb.14: cmpl $0, -152(%rbp) jne LBB0_16 ## %bb.15: movq 72(%rbp), %rax movl $-2, (%rax) jmp LBB0_48 LBB0_16: movq -72(%rbp), %rax cmpl $0, (%rax) jge LBB0_18 ## %bb.17: movq 72(%rbp), %rax movl $-3, (%rax) jmp LBB0_47 LBB0_18: movq -80(%rbp), %rax cmpl $0, (%rax) jge LBB0_20 ## %bb.19: movq 72(%rbp), %rax movl $-4, (%rax) jmp LBB0_46 LBB0_20: movq -88(%rbp), %rax cmpl $0, (%rax) jl LBB0_22 ## %bb.21: movq -88(%rbp), %rax movl (%rax), %eax cmpl -140(%rbp), %eax jle LBB0_23 LBB0_22: movq 72(%rbp), %rax movl $-5, (%rax) jmp LBB0_45 LBB0_23: movq 16(%rbp), %rax movl (%rax), %eax movl %eax, -160(%rbp) ## 4-byte Spill movl $1, %eax cmpl -140(%rbp), %eax jl LBB0_25 ## %bb.24: movl $1, %eax movl %eax, -164(%rbp) ## 4-byte Spill jmp LBB0_26 LBB0_25: movl -140(%rbp), %eax movl %eax, -164(%rbp) ## 4-byte Spill LBB0_26: movl -160(%rbp), %eax ## 4-byte Reload movl -164(%rbp), %ecx ## 4-byte Reload cmpl %ecx, %eax jge LBB0_28 ## %bb.27: movq 72(%rbp), %rax movl $-7, (%rax) jmp LBB0_44 LBB0_28: movq 32(%rbp), %rax cmpl $5, (%rax) jge LBB0_30 ## %bb.29: movq 72(%rbp), %rax movl $-9, (%rax) jmp LBB0_43 LBB0_30: movq 48(%rbp), %rax movl (%rax), %eax movl %eax, -168(%rbp) ## 4-byte Spill movq -72(%rbp), %rcx movl $1, %eax cmpl (%rcx), %eax jl LBB0_32 ## %bb.31: movl $1, %eax movl %eax, -172(%rbp) ## 4-byte Spill jmp LBB0_33 LBB0_32: movq -72(%rbp), %rax movl (%rax), %eax movl %eax, -172(%rbp) ## 4-byte Spill LBB0_33: movl -168(%rbp), %eax ## 4-byte Reload movl -172(%rbp), %ecx ## 4-byte Reload cmpl %ecx, %eax jge LBB0_35 ## %bb.34: movq 72(%rbp), %rax movl $-11, (%rax) jmp LBB0_42 LBB0_35: movq 64(%rbp), %rax movl (%rax), %eax movl %eax, -176(%rbp) ## 4-byte Spill movl $1, %eax cmpl -144(%rbp), %eax jl LBB0_37 ## %bb.36: movl $1, %eax movl %eax, -180(%rbp) ## 4-byte Spill jmp LBB0_38 LBB0_37: movl -144(%rbp), %eax movl %eax, -180(%rbp) ## 4-byte Spill LBB0_38: movl -176(%rbp), %eax ## 4-byte Reload movl -180(%rbp), %ecx ## 4-byte Reload cmpl %ecx, %eax jge LBB0_41 ## %bb.39: cmpl $0, -156(%rbp) jne LBB0_41 ## %bb.40: movq 72(%rbp), %rax movl $-13, (%rax) LBB0_41: jmp LBB0_42 LBB0_42: jmp LBB0_43 LBB0_43: jmp LBB0_44 LBB0_44: jmp LBB0_45 LBB0_45: jmp LBB0_46 LBB0_46: jmp LBB0_47 LBB0_47: jmp LBB0_48 LBB0_48: jmp LBB0_49 LBB0_49: movq 72(%rbp), %rax cmpl $0, (%rax) jne LBB0_51 ## %bb.50: cvtsi2ssl -144(%rbp), %xmm0 movq 56(%rbp), %rax movss %xmm0, 4(%rax) LBB0_51: movq 72(%rbp), %rax cmpl $0, (%rax) je LBB0_53 ## %bb.52: movq 72(%rbp), %rcx xorl %eax, %eax subl (%rcx), %eax movl %eax, -116(%rbp) leaq L_.str.4(%rip), %rdi leaq -116(%rbp), %rsi movl $6, %edx callq _xerbla_ movl $0, -44(%rbp) jmp LBB0_79 LBB0_53: cmpl $0, -156(%rbp) je LBB0_55 ## %bb.54: movl $0, -44(%rbp) jmp LBB0_79 LBB0_55: jmp LBB0_56 LBB0_56: movq -72(%rbp), %rax movl (%rax), %eax movq -80(%rbp), %rcx cmpl (%rcx), %eax jg LBB0_58 ## %bb.57: movq -72(%rbp), %rax movl (%rax), %eax movl %eax, -184(%rbp) ## 4-byte Spill jmp LBB0_59 LBB0_58: movq -80(%rbp), %rax movl (%rax), %eax movl %eax, -184(%rbp) ## 4-byte Spill LBB0_59: movl -184(%rbp), %eax ## 4-byte Reload movl %eax, -116(%rbp) movl -116(%rbp), %eax movq -88(%rbp), %rcx cmpl (%rcx), %eax jg LBB0_61 ## %bb.60: movl -116(%rbp), %eax movl %eax, -188(%rbp) ## 4-byte Spill jmp LBB0_62 LBB0_61: movq -88(%rbp), %rax movl (%rax), %eax movl %eax, -188(%rbp) ## 4-byte Spill LBB0_62: movl -188(%rbp), %eax ## 4-byte Reload cmpl $0, %eax jne LBB0_64 ## %bb.63: movl $0, -44(%rbp) jmp LBB0_79 LBB0_64: movq -72(%rbp), %rax movl (%rax), %eax movq -80(%rbp), %rcx cmpl (%rcx), %eax jl LBB0_66 ## %bb.65: movq -72(%rbp), %rax movl (%rax), %eax movl %eax, -192(%rbp) ## 4-byte Spill jmp LBB0_67 LBB0_66: movq -80(%rbp), %rax movl (%rax), %eax movl %eax, -192(%rbp) ## 4-byte Spill LBB0_67: movl -192(%rbp), %eax ## 4-byte Reload movl %eax, -116(%rbp) cmpl $0, -120(%rbp) je LBB0_69 ## %bb.68: movq -72(%rbp), %rax movl (%rax), %eax movq -88(%rbp), %rcx cmpl (%rcx), %eax jle LBB0_76 LBB0_69: cmpl $0, -128(%rbp) je LBB0_71 ## %bb.70: movq -80(%rbp), %rax movl (%rax), %eax movq -88(%rbp), %rcx cmpl (%rcx), %eax jle LBB0_76 LBB0_71: movl -132(%rbp), %eax movq -88(%rbp), %rcx cmpl (%rcx), %eax jle LBB0_76 ## %bb.72: movl -132(%rbp), %eax movl %eax, -196(%rbp) ## 4-byte Spill movl -116(%rbp), %eax movq -88(%rbp), %rcx cmpl (%rcx), %eax jl LBB0_74 ## %bb.73: movl -116(%rbp), %eax movl %eax, -200(%rbp) ## 4-byte Spill jmp LBB0_75 LBB0_74: movq -88(%rbp), %rax movl (%rax), %eax movl %eax, -200(%rbp) ## 4-byte Spill LBB0_75: movl -196(%rbp), %eax ## 4-byte Reload movl -200(%rbp), %ecx ## 4-byte Reload cmpl %ecx, %eax jl LBB0_77 LBB0_76: movq -56(%rbp), %rdi movq -64(%rbp), %rsi movq -72(%rbp), %rdx movq -80(%rbp), %rcx movq -88(%rbp), %r8 movq -96(%rbp), %r13 movslq -104(%rbp), %rax shlq $2, %rax addq %rax, %r13 movq 16(%rbp), %r12 movq 24(%rbp), %r15 addq $24, %r15 movq 40(%rbp), %rbx movslq -112(%rbp), %rax shlq $2, %rax addq %rax, %rbx movq 48(%rbp), %r11 movq 56(%rbp), %r10 addq $4, %r10 movq 72(%rbp), %rax leaq -136(%rbp), %r14 movq %r14, %r9 movq %r13, (%rsp) movq %r12, 8(%rsp) movq %r15, 16(%rsp) movq %r14, 24(%rsp) movq %rbx, 32(%rsp) movq %r11, 40(%rsp) movq %r10, 48(%rsp) movq %rax, 56(%rsp) callq _sgemqrt_ jmp LBB0_78 LBB0_77: movq -56(%rbp), %rdi movq -64(%rbp), %rsi movq -72(%rbp), %rdx movq -80(%rbp), %rcx movq -88(%rbp), %r8 movq -96(%rbp), %rax movslq -104(%rbp), %r9 shlq $2, %r9 addq %r9, %rax movq 16(%rbp), %r13 movq 24(%rbp), %r12 addq $24, %r12 movq 40(%rbp), %r14 movslq -112(%rbp), %r9 shlq $2, %r9 addq %r9, %r14 movq 48(%rbp), %rbx movq 56(%rbp), %r11 addq $4, %r11 movq 64(%rbp), %r10 movq 72(%rbp), %r9 movq %r9, -208(%rbp) ## 8-byte Spill leaq -132(%rbp), %r9 leaq -136(%rbp), %r15 movq %r15, (%rsp) movq %rax, 8(%rsp) movq -208(%rbp), %rax ## 8-byte Reload movq %r13, 16(%rsp) movq %r12, 24(%rsp) movq %r15, 32(%rsp) movq %r14, 40(%rsp) movq %rbx, 48(%rsp) movq %r11, 56(%rsp) movq %r10, 64(%rsp) movq %rax, 72(%rsp) callq _slamtsqr_ LBB0_78: cvtsi2ssl -144(%rbp), %xmm0 movq 56(%rbp), %rax movss %xmm0, 4(%rax) movl $0, -44(%rbp) LBB0_79: movl -44(%rbp), %eax addq $248, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "N" L_.str.1: ## @.str.1 .asciz "T" L_.str.2: ## @.str.2 .asciz "L" L_.str.3: ## @.str.3 .asciz "R" L_.str.4: ## @.str.4 .asciz "SGEMQR" .subsections_via_symbols
the_stack_data/121583.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _sast_floor_printc ; -- Begin function sast_floor_printc .p2align 2 _sast_floor_printc: ; @sast_floor_printc .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] stur w1, [x29, #-12] str w2, [sp, #16] str w3, [sp, #12] ldur x8, [x29, #-8] ldr w8, [x8] mov w10, #2 sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: ldur x8, [x29, #-8] ldr w8, [x8] subs w8, w8, #1 str w8, [sp] ; 4-byte Folded Spill b LBB0_3 LBB0_2: ldur x8, [x29, #-8] ldr w8, [x8] str w8, [sp] ; 4-byte Folded Spill b LBB0_3 LBB0_3: ldr w8, [sp] ; 4-byte Folded Reload str w8, [sp, #8] ldr w8, [sp, #12] subs w8, w8, #1 mov w10, #2 sdiv w8, w8, w10 ldur x9, [x29, #-8] ldr w9, [x9, #4] subs w9, w9, #1 sdiv w9, w9, w10 subs w8, w8, w9 str w8, [sp, #4] ldur x8, [x29, #-8] ldrsb w8, [x8, #12] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_13 b LBB0_4 LBB0_4: ldur x8, [x29, #-8] ldr w8, [x8, #4] ldur w9, [x29, #-12] subs w8, w8, w9 ldr w9, [sp, #8] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_13 b LBB0_5 LBB0_5: ldr w8, [sp, #16] ldr w9, [sp, #4] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB0_13 b LBB0_6 LBB0_6: ldr w8, [sp, #16] ldr w9, [sp, #4] ldr w10, [sp, #8] add w9, w9, w10 subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_13 b LBB0_7 LBB0_7: ldur x8, [x29, #-8] ldr w8, [x8] subs w8, w8, #4 cset w8, le tbnz w8, #0, LBB0_11 b LBB0_8 LBB0_8: ldur x8, [x29, #-8] ldr w8, [x8, #4] ldur w9, [x29, #-12] subs w8, w8, w9 ldr w9, [sp, #8] subs w9, w9, #1 mov w10, #2 sdiv w9, w9, w10 add w9, w9, #1 subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_11 b LBB0_9 LBB0_9: ldr w8, [sp, #16] ldr w9, [sp, #4] ldr w10, [sp, #8] add w9, w9, w10 subs w9, w9, #1 subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_11 b LBB0_10 LBB0_10: mov w0, #36 bl _ft_putchar b LBB0_12 LBB0_11: mov w0, #124 bl _ft_putchar b LBB0_12 LBB0_12: b LBB0_14 LBB0_13: mov w0, #42 bl _ft_putchar b LBB0_14 LBB0_14: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _sast_floor_println ; -- Begin function sast_floor_println .p2align 2 _sast_floor_println: ; @sast_floor_println .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] stur w1, [x29, #-12] str w2, [sp, #16] str w3, [sp, #12] mov w8, #-1 str w8, [sp, #8] str w8, [sp, #4] b LBB1_1 LBB1_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #8] add w8, w8, #1 str w8, [sp, #8] ldur w9, [x29, #-12] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_3 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 mov w0, #32 bl _ft_putchar b LBB1_1 LBB1_3: mov w0, #47 bl _ft_putchar b LBB1_4 LBB1_4: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #4] add w8, w8, #1 str w8, [sp, #4] ldr w9, [sp, #12] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_6 b LBB1_5 LBB1_5: ; in Loop: Header=BB1_4 Depth=1 ldur x0, [x29, #-8] ldr w1, [sp, #16] ldr w2, [sp, #4] ldr w3, [sp, #12] bl _sast_floor_printc b LBB1_4 LBB1_6: mov w0, #92 bl _ft_putchar mov w0, #10 bl _ft_putchar ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _sast_floor_print ; -- Begin function sast_floor_print .p2align 2 _sast_floor_print: ; @sast_floor_print .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] stur w1, [x29, #-12] ldur x8, [x29, #-8] ldr w8, [x8, #8] mov w10, #2 subs w8, w8, #2 str w8, [sp, #16] ldur w8, [x29, #-12] subs w8, w8, #1 sdiv w8, w8, w10 ldur x9, [x29, #-8] ldr w9, [x9, #8] subs w9, w9, #1 sdiv w9, w9, w10 subs w8, w8, w9 str w8, [sp, #12] mov w8, #-1 str w8, [sp, #8] b LBB2_1 LBB2_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #8] add w8, w8, #1 str w8, [sp, #8] ldur x9, [x29, #-8] ldr w9, [x9, #4] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB2_3 b LBB2_2 LBB2_2: ; in Loop: Header=BB2_1 Depth=1 ldur x0, [x29, #-8] ldr w1, [sp, #12] ldr w2, [sp, #8] ldr w3, [sp, #16] bl _sast_floor_println ldr w8, [sp, #16] add w8, w8, #2 str w8, [sp, #16] ldr w8, [sp, #12] subs w8, w8, #1 str w8, [sp, #12] b LBB2_1 LBB2_3: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _sastantua ; -- Begin function sastantua .p2align 2 _sastantua: ; @sastantua .cfi_startproc ; %bb.0: stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill .cfi_def_cfa_offset 16 mov x29, sp .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 sub sp, sp, #96 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] stur w0, [x29, #-12] ldur w8, [x29, #-12] ; kill: def $x8 killed $w8 mov x9, sp stur x9, [x29, #-40] lsl x9, x8, #4 add x9, x9, #15 and x9, x9, #0xfffffffffffffff0 stur x9, [x29, #-80] ; 8-byte Folded Spill adrp x16, ___chkstk_darwin@GOTPAGE ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF] blr x16 ldur x10, [x29, #-80] ; 8-byte Folded Reload mov x9, sp subs x9, x9, x10 mov sp, x9 stur x9, [x29, #-72] ; 8-byte Folded Spill stur x8, [x29, #-48] mov w8, #3 stur w8, [x29, #-16] mov w8, #10 stur w8, [x29, #-24] stur wzr, [x29, #-20] mov w8, #1 stur w8, [x29, #-28] b LBB3_1 LBB3_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-28] ldur w9, [x29, #-12] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB3_3 b LBB3_2 LBB3_2: ; in Loop: Header=BB3_1 Depth=1 ldur x8, [x29, #-72] ; 8-byte Folded Reload ldur w9, [x29, #-28] subs w9, w9, #1 ldur w10, [x29, #-28] stur w10, [x29, #-64] ldur w10, [x29, #-28] add w10, w10, #3 subs w10, w10, #1 stur w10, [x29, #-60] ldur w10, [x29, #-16] stur w10, [x29, #-56] ldur w10, [x29, #-28] ldur w11, [x29, #-12] subs w10, w10, w11 cset w10, eq and w10, w10, #0x1 sturb w10, [x29, #-52] ldur q0, [x29, #-64] str q0, [x8, w9, sxtw #4] ldur w8, [x29, #-16] ldur w9, [x29, #-28] add w9, w9, #1 add w8, w8, w9, lsl #1 stur w8, [x29, #-20] ldur w9, [x29, #-24] ldur w8, [x29, #-16] add w8, w8, w9 stur w8, [x29, #-16] ldur w8, [x29, #-28] add w9, w8, #1 stur w9, [x29, #-28] mov w8, #2 sdiv w10, w9, w8 mul w10, w10, w8 subs w9, w9, w10 subs w9, w9, #0 cset w9, eq and w10, w9, #0x1 mov w9, #4 ands w10, w10, #0x1 csel w9, w8, w9, ne ldur w8, [x29, #-24] add w8, w8, w9 stur w8, [x29, #-24] b LBB3_1 LBB3_3: mov w8, #-1 stur w8, [x29, #-28] b LBB3_4 LBB3_4: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-28] add w8, w8, #1 stur w8, [x29, #-28] ldur w9, [x29, #-12] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB3_6 b LBB3_5 LBB3_5: ; in Loop: Header=BB3_4 Depth=1 ldur x8, [x29, #-72] ; 8-byte Folded Reload ldursw x9, [x29, #-28] add x0, x8, x9, lsl #4 ldur w1, [x29, #-20] bl _sast_floor_print b LBB3_4 LBB3_6: ldur x8, [x29, #-40] stur x8, [x29, #-88] ; 8-byte Folded Spill ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB3_8 b LBB3_7 LBB3_7: bl ___stack_chk_fail LBB3_8: ldur x8, [x29, #-88] ; 8-byte Folded Reload mov sp, x8 mov sp, x29 ldp x29, x30, [sp], #16 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _sast_floor_printc ## -- Begin function sast_floor_printc .p2align 4, 0x90 _sast_floor_printc: ## @sast_floor_printc .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) movl %edx, -16(%rbp) movl %ecx, -20(%rbp) movq -8(%rbp), %rax movl (%rax), %eax movl $2, %ecx cltd idivl %ecx cmpl $0, %edx jne LBB0_2 ## %bb.1: movq -8(%rbp), %rax movl (%rax), %eax subl $1, %eax movl %eax, -32(%rbp) ## 4-byte Spill jmp LBB0_3 LBB0_2: movq -8(%rbp), %rax movl (%rax), %eax movl %eax, -32(%rbp) ## 4-byte Spill LBB0_3: movl -32(%rbp), %eax ## 4-byte Reload movl %eax, -24(%rbp) movl -20(%rbp), %eax subl $1, %eax movl $2, %ecx cltd idivl %ecx movl %eax, -36(%rbp) ## 4-byte Spill movq -8(%rbp), %rax movl 4(%rax), %eax subl $1, %eax movl $2, %ecx cltd idivl %ecx movl %eax, %ecx movl -36(%rbp), %eax ## 4-byte Reload subl %ecx, %eax movl %eax, -28(%rbp) movq -8(%rbp), %rax movsbl 12(%rax), %eax cmpl $0, %eax je LBB0_13 ## %bb.4: movq -8(%rbp), %rax movl 4(%rax), %eax subl -12(%rbp), %eax cmpl -24(%rbp), %eax jg LBB0_13 ## %bb.5: movl -16(%rbp), %eax cmpl -28(%rbp), %eax jle LBB0_13 ## %bb.6: movl -16(%rbp), %eax movl -28(%rbp), %ecx addl -24(%rbp), %ecx cmpl %ecx, %eax jg LBB0_13 ## %bb.7: movq -8(%rbp), %rax cmpl $4, (%rax) jle LBB0_11 ## %bb.8: movq -8(%rbp), %rax movl 4(%rax), %eax subl -12(%rbp), %eax movl %eax, -40(%rbp) ## 4-byte Spill movl -24(%rbp), %eax subl $1, %eax movl $2, %ecx cltd idivl %ecx movl %eax, %ecx movl -40(%rbp), %eax ## 4-byte Reload addl $1, %ecx cmpl %ecx, %eax jne LBB0_11 ## %bb.9: movl -16(%rbp), %eax movl -28(%rbp), %ecx addl -24(%rbp), %ecx subl $1, %ecx cmpl %ecx, %eax jne LBB0_11 ## %bb.10: movl $36, %edi callq _ft_putchar jmp LBB0_12 LBB0_11: movl $124, %edi callq _ft_putchar LBB0_12: jmp LBB0_14 LBB0_13: movl $42, %edi callq _ft_putchar LBB0_14: addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _sast_floor_println ## -- Begin function sast_floor_println .p2align 4, 0x90 _sast_floor_println: ## @sast_floor_println .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) movl %edx, -16(%rbp) movl %ecx, -20(%rbp) movl $-1, -24(%rbp) movl $-1, -28(%rbp) LBB1_1: ## =>This Inner Loop Header: Depth=1 movl -24(%rbp), %eax addl $1, %eax movl %eax, -24(%rbp) cmpl -12(%rbp), %eax jge LBB1_3 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 movl $32, %edi callq _ft_putchar jmp LBB1_1 LBB1_3: movl $47, %edi callq _ft_putchar LBB1_4: ## =>This Inner Loop Header: Depth=1 movl -28(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) cmpl -20(%rbp), %eax jge LBB1_6 ## %bb.5: ## in Loop: Header=BB1_4 Depth=1 movq -8(%rbp), %rdi movl -16(%rbp), %esi movl -28(%rbp), %edx movl -20(%rbp), %ecx callq _sast_floor_printc jmp LBB1_4 LBB1_6: movl $92, %edi callq _ft_putchar movl $10, %edi callq _ft_putchar addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _sast_floor_print ## -- Begin function sast_floor_print .p2align 4, 0x90 _sast_floor_print: ## @sast_floor_print .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) movq -8(%rbp), %rax movl 8(%rax), %eax subl $2, %eax movl %eax, -16(%rbp) movl -12(%rbp), %eax subl $1, %eax movl $2, %ecx cltd idivl %ecx movl %eax, -28(%rbp) ## 4-byte Spill movq -8(%rbp), %rax movl 8(%rax), %eax subl $1, %eax movl $2, %ecx cltd idivl %ecx movl %eax, %ecx movl -28(%rbp), %eax ## 4-byte Reload subl %ecx, %eax movl %eax, -20(%rbp) movl $-1, -24(%rbp) LBB2_1: ## =>This Inner Loop Header: Depth=1 movl -24(%rbp), %eax addl $1, %eax movl %eax, -24(%rbp) movq -8(%rbp), %rcx cmpl 4(%rcx), %eax jge LBB2_3 ## %bb.2: ## in Loop: Header=BB2_1 Depth=1 movq -8(%rbp), %rdi movl -20(%rbp), %esi movl -24(%rbp), %edx movl -16(%rbp), %ecx callq _sast_floor_println movl -16(%rbp), %eax addl $2, %eax movl %eax, -16(%rbp) movl -20(%rbp), %eax addl $-1, %eax movl %eax, -20(%rbp) jmp LBB2_1 LBB2_3: addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _sastantua ## -- Begin function sastantua .p2align 4, 0x90 _sastantua: ## @sastantua .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 %edi, -12(%rbp) movl -12(%rbp), %eax ## kill: def $rax killed $eax movq %rax, -80(%rbp) ## 8-byte Spill movq %rsp, %rcx movq %rcx, -40(%rbp) shlq $4, %rax callq ____chkstk_darwin addq $15, %rax andq $-16, %rax subq %rax, %rsp movq -80(%rbp), %rax ## 8-byte Reload movq %rsp, %rcx movq %rcx, -72(%rbp) ## 8-byte Spill movq %rax, -48(%rbp) movl $3, -16(%rbp) movl $10, -24(%rbp) movl $0, -20(%rbp) movl $1, -28(%rbp) LBB3_1: ## =>This Inner Loop Header: Depth=1 movl -28(%rbp), %eax cmpl -12(%rbp), %eax jg LBB3_3 ## %bb.2: ## in Loop: Header=BB3_1 Depth=1 movq -72(%rbp), %rax ## 8-byte Reload movl -28(%rbp), %ecx subl $1, %ecx movslq %ecx, %rcx shlq $4, %rcx addq %rcx, %rax movl -28(%rbp), %ecx movl %ecx, -64(%rbp) movl -28(%rbp), %ecx addl $3, %ecx subl $1, %ecx movl %ecx, -60(%rbp) movl -16(%rbp), %ecx movl %ecx, -56(%rbp) movl -28(%rbp), %ecx cmpl -12(%rbp), %ecx sete %cl andb $1, %cl movzbl %cl, %ecx ## kill: def $cl killed $cl killed $ecx movb %cl, -52(%rbp) movq -64(%rbp), %rcx movq %rcx, (%rax) movq -56(%rbp), %rcx movq %rcx, 8(%rax) movl -16(%rbp), %eax movl -28(%rbp), %ecx addl $1, %ecx shll $1, %ecx addl %ecx, %eax movl %eax, -20(%rbp) movl -24(%rbp), %eax addl -16(%rbp), %eax movl %eax, -16(%rbp) movl -28(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) movl $2, %ecx cltd idivl %ecx movl $4, %eax movl $2, %ecx cmpl $0, %edx cmovel %ecx, %eax addl -24(%rbp), %eax movl %eax, -24(%rbp) jmp LBB3_1 LBB3_3: movl $-1, -28(%rbp) LBB3_4: ## =>This Inner Loop Header: Depth=1 movl -28(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) cmpl -12(%rbp), %eax jge LBB3_6 ## %bb.5: ## in Loop: Header=BB3_4 Depth=1 movq -72(%rbp), %rdi ## 8-byte Reload movslq -28(%rbp), %rax shlq $4, %rax addq %rax, %rdi movl -20(%rbp), %esi callq _sast_floor_print jmp LBB3_4 LBB3_6: movq -40(%rbp), %rax movq %rax, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB3_8 ## %bb.7: movq %rbp, %rsp popq %rbp retq LBB3_8: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/125139285.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _setString ; -- Begin function setString .p2align 2 _setString: ; @setString .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] ldr x8, [sp, #8] adrp x9, _str@GOTPAGE ldr x9, [x9, _str@GOTPAGEOFF] str x8, [x9] add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _reverse ; -- Begin function reverse .p2align 2 _reverse: ; @reverse .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, _length@GOTPAGE ldr x8, [x8, _length@GOTPAGEOFF] str x8, [sp, #8] ; 8-byte Folded Spill stur x0, [x29, #-8] ldur x0, [x29, #-8] bl _strlen ldr x9, [sp, #8] ; 8-byte Folded Reload mov x8, x0 str w8, [x9] stur wzr, [x29, #-12] b LBB1_1 LBB1_1: ; =>This Inner Loop Header: Depth=1 ldr x9, [sp, #8] ; 8-byte Folded Reload ldur w8, [x29, #-12] ldr w9, [x9] 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 x10, [sp, #8] ; 8-byte Folded Reload ldur x8, [x29, #-8] ldursw x9, [x29, #-12] add x8, x8, x9 ldrb w8, [x8] adrp x9, _reversestr@GOTPAGE ldr x9, [x9, _reversestr@GOTPAGEOFF] ldr x9, [x9] ldr w10, [x10] ldur w11, [x29, #-12] subs w10, w10, w11 add x9, x9, w10, sxtw strb w8, [x9] b LBB1_3 LBB1_3: ; in Loop: Header=BB1_1 Depth=1 ldur w8, [x29, #-12] add w8, w8, #1 stur w8, [x29, #-12] b LBB1_1 LBB1_4: adrp x8, _reversestr@GOTPAGE ldr x8, [x8, _reversestr@GOTPAGEOFF] ldr x0, [x8] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _initLibrary ; -- Begin function initLibrary .p2align 2 _initLibrary: ; @initLibrary .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 x8, _str@GOTPAGE ldr x8, [x8, _str@GOTPAGEOFF] ; kill: def $x9 killed $xzr str xzr, [x8] ldp x29, x30, [sp], #16 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .globl _cleanUpLibrary ; -- Begin function cleanUpLibrary .p2align 2 _cleanUpLibrary: ; @cleanUpLibrary .cfi_startproc ; %bb.0: stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill .cfi_def_cfa_offset 16 mov x29, sp .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf ldp x29, x30, [sp], #16 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .section __TEXT,__StaticInit,regular,pure_instructions .p2align 2 ; -- Begin function __GLOBAL_init_65535 ___GLOBAL_init_65535: ; @__GLOBAL_init_65535 .cfi_startproc ; %bb.0: stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill .cfi_def_cfa_offset 16 mov x29, sp .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x0, _cleanUpLibrary@PAGE add x0, x0, _cleanUpLibrary@PAGEOFF mov x1, #0 adrp x2, ___dso_handle@PAGE add x2, x2, ___dso_handle@PAGEOFF bl ___cxa_atexit ldp x29, x30, [sp], #16 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .comm _str,8,3 ; @str .comm _length,4,2 ; @length .comm _reversestr,8,3 ; @reversestr .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Library is initialized\n" l_.str.1: ; @.str.1 .asciz "Library is exited\n" .section __DATA,__mod_init_func,mod_init_funcs .p2align 3 .quad _initLibrary .quad ___GLOBAL_init_65535 .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _setString ## -- Begin function setString .p2align 4, 0x90 _setString: ## @setString .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), %rcx movq _str@GOTPCREL(%rip), %rax movq %rcx, (%rax) popq %rbp retq .cfi_endproc ## -- End function .globl _reverse ## -- Begin function reverse .p2align 4, 0x90 _reverse: ## @reverse .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) movq -8(%rbp), %rdi callq _strlen movl %eax, %ecx movq _length@GOTPCREL(%rip), %rax movl %ecx, (%rax) movl $0, -12(%rbp) LBB1_1: ## =>This Inner Loop Header: Depth=1 movl -12(%rbp), %eax movq _length@GOTPCREL(%rip), %rcx cmpl (%rcx), %eax jge LBB1_4 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 movq -8(%rbp), %rax movslq -12(%rbp), %rcx movb (%rax,%rcx), %dl movq _reversestr@GOTPCREL(%rip), %rax movq (%rax), %rax movq _length@GOTPCREL(%rip), %rcx movl (%rcx), %ecx subl -12(%rbp), %ecx movslq %ecx, %rcx movb %dl, (%rax,%rcx) ## %bb.3: ## in Loop: Header=BB1_1 Depth=1 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB1_1 LBB1_4: movq _reversestr@GOTPCREL(%rip), %rax movq (%rax), %rax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _initLibrary ## -- Begin function initLibrary .p2align 4, 0x90 _initLibrary: ## @initLibrary .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 movq _str@GOTPCREL(%rip), %rax movq $0, (%rax) popq %rbp retq .cfi_endproc ## -- End function .globl _cleanUpLibrary ## -- Begin function cleanUpLibrary .p2align 4, 0x90 _cleanUpLibrary: ## @cleanUpLibrary .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__StaticInit,regular,pure_instructions .p2align 4, 0x90 ## -- Begin function __GLOBAL_init_65535 ___GLOBAL_init_65535: ## @__GLOBAL_init_65535 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq _cleanUpLibrary(%rip), %rdi xorl %eax, %eax movl %eax, %esi leaq ___dso_handle(%rip), %rdx callq ___cxa_atexit popq %rbp retq .cfi_endproc ## -- End function .comm _str,8,3 ## @str .comm _length,4,2 ## @length .comm _reversestr,8,3 ## @reversestr .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Library is initialized\n" L_.str.1: ## @.str.1 .asciz "Library is exited\n" .section __DATA,__mod_init_func,mod_init_funcs .p2align 3 .quad _initLibrary .quad ___GLOBAL_init_65535 .subsections_via_symbols
the_stack_data/43942.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _hide ; -- Begin function hide .p2align 2 _hide: ; @hide .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str 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 _hide ## -- Begin function hide .p2align 4, 0x90 _hide: ## @hide .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) popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/135416.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 w8, #98 str w8, [sp, #8] ldr w0, [sp, #8] bl _isalpha subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB0_5 b LBB0_1 LBB0_1: ldr w9, [sp, #8] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldr w0, [sp, #8] bl _isupper subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: ldr w9, [sp, #8] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf b LBB0_4 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_4 LBB0_4: b LBB0_6 LBB0_5: 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_6 LBB0_6: 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 "True!! %c is a Alphabet.\n" l_.str.1: ; @.str.1 .asciz "FYI!! %c is also an Uppercase letter to keep in mind.\n" l_.str.2: ; @.str.2 .asciz "FYI!! %c is NOT an Uppercase letter to keep in mind.\n" l_.str.3: ; @.str.3 .asciz "False!! %c is NOT a letter. \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 $98, -8(%rbp) movl -8(%rbp), %edi callq _isalpha cmpl $0, %eax je LBB0_5 ## %bb.1: movl -8(%rbp), %esi leaq L_.str(%rip), %rdi movb $0, %al callq _printf movl -8(%rbp), %edi callq _isupper cmpl $0, %eax je LBB0_3 ## %bb.2: movl -8(%rbp), %esi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf jmp LBB0_4 LBB0_3: movl -8(%rbp), %esi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf LBB0_4: jmp LBB0_6 LBB0_5: movl -8(%rbp), %esi leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf LBB0_6: xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "True!! %c is a Alphabet.\n" L_.str.1: ## @.str.1 .asciz "FYI!! %c is also an Uppercase letter to keep in mind.\n" L_.str.2: ## @.str.2 .asciz "FYI!! %c is NOT an Uppercase letter to keep in mind.\n" L_.str.3: ## @.str.3 .asciz "False!! %c is NOT a letter. \n" .subsections_via_symbols
the_stack_data/247017565.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] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _scanf mov w8, #1 stur w8, [x29, #-12] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-12] ldur w9, [x29, #-8] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_24 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 mov x9, sp sub x8, x29, #16 str x8, [x9] sub x8, x29, #20 str x8, [x9, #8] sub x8, x29, #24 str x8, [x9, #16] sub x8, x29, #28 str x8, [x9, #24] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf ldur w8, [x29, #-16] ldur w9, [x29, #-20] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_7 b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-20] ldur w9, [x29, #-24] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_7 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-24] ldur w9, [x29, #-28] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_7 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-28] ldur w9, [x29, #-16] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_7 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_1 Depth=1 adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf b LBB0_22 LBB0_7: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-16] ldur w9, [x29, #-24] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_9 b LBB0_8 LBB0_8: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-20] ldur w9, [x29, #-28] subs w8, w8, w9 cset w8, eq tbnz w8, #0, LBB0_13 b LBB0_9 LBB0_9: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-16] ldur w9, [x29, #-20] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_11 b LBB0_10 LBB0_10: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-24] ldur w9, [x29, #-28] subs w8, w8, w9 cset w8, eq tbnz w8, #0, LBB0_13 b LBB0_11 LBB0_11: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-16] ldur w9, [x29, #-28] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_14 b LBB0_12 LBB0_12: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-20] ldur w9, [x29, #-24] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_14 b LBB0_13 LBB0_13: ; in Loop: Header=BB0_1 Depth=1 adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf b LBB0_21 LBB0_14: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-16] ldur w9, [x29, #-20] ldur w10, [x29, #-24] add w9, w9, w10 ldur w10, [x29, #-28] add w9, w9, w10 subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_19 b LBB0_15 LBB0_15: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-20] ldur w9, [x29, #-16] ldur w10, [x29, #-24] add w9, w9, w10 ldur w10, [x29, #-28] add w9, w9, w10 subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_19 b LBB0_16 LBB0_16: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-24] ldur w9, [x29, #-16] ldur w10, [x29, #-20] add w9, w9, w10 ldur w10, [x29, #-28] add w9, w9, w10 subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_19 b LBB0_17 LBB0_17: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-28] ldur w9, [x29, #-16] ldur w10, [x29, #-20] add w9, w9, w10 ldur w10, [x29, #-24] add w9, w9, w10 subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_19 b LBB0_18 LBB0_18: ; in Loop: Header=BB0_1 Depth=1 adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf b LBB0_20 LBB0_19: ; in Loop: Header=BB0_1 Depth=1 adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@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 ldur w8, [x29, #-12] add w8, w8, #1 stur w8, [x29, #-12] b LBB0_1 LBB0_24: mov w0, #0 ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d" l_.str.1: ; @.str.1 .asciz "%d %d %d %d" l_.str.2: ; @.str.2 .asciz "square\n" l_.str.3: ; @.str.3 .asciz "rectangle\n" l_.str.4: ; @.str.4 .asciz "quadrangle\n" l_.str.5: ; @.str.5 .asciz "banana\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl $0, -4(%rbp) leaq L_.str(%rip), %rdi leaq -8(%rbp), %rsi movb $0, %al callq _scanf movl $1, -12(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movl -12(%rbp), %eax cmpl -8(%rbp), %eax jg LBB0_24 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 leaq L_.str.1(%rip), %rdi leaq -16(%rbp), %rsi leaq -20(%rbp), %rdx leaq -24(%rbp), %rcx leaq -28(%rbp), %r8 movb $0, %al callq _scanf movl -16(%rbp), %eax cmpl -20(%rbp), %eax jne LBB0_7 ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movl -20(%rbp), %eax cmpl -24(%rbp), %eax jne LBB0_7 ## %bb.4: ## in Loop: Header=BB0_1 Depth=1 movl -24(%rbp), %eax cmpl -28(%rbp), %eax jne LBB0_7 ## %bb.5: ## in Loop: Header=BB0_1 Depth=1 movl -28(%rbp), %eax cmpl -16(%rbp), %eax jne LBB0_7 ## %bb.6: ## in Loop: Header=BB0_1 Depth=1 leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf jmp LBB0_22 LBB0_7: ## in Loop: Header=BB0_1 Depth=1 movl -16(%rbp), %eax cmpl -24(%rbp), %eax jne LBB0_9 ## %bb.8: ## in Loop: Header=BB0_1 Depth=1 movl -20(%rbp), %eax cmpl -28(%rbp), %eax je LBB0_13 LBB0_9: ## in Loop: Header=BB0_1 Depth=1 movl -16(%rbp), %eax cmpl -20(%rbp), %eax jne LBB0_11 ## %bb.10: ## in Loop: Header=BB0_1 Depth=1 movl -24(%rbp), %eax cmpl -28(%rbp), %eax je LBB0_13 LBB0_11: ## in Loop: Header=BB0_1 Depth=1 movl -16(%rbp), %eax cmpl -28(%rbp), %eax jne LBB0_14 ## %bb.12: ## in Loop: Header=BB0_1 Depth=1 movl -20(%rbp), %eax cmpl -24(%rbp), %eax jne LBB0_14 LBB0_13: ## in Loop: Header=BB0_1 Depth=1 leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf jmp LBB0_21 LBB0_14: ## in Loop: Header=BB0_1 Depth=1 movl -16(%rbp), %eax movl -20(%rbp), %ecx addl -24(%rbp), %ecx addl -28(%rbp), %ecx cmpl %ecx, %eax jg LBB0_19 ## %bb.15: ## in Loop: Header=BB0_1 Depth=1 movl -20(%rbp), %eax movl -16(%rbp), %ecx addl -24(%rbp), %ecx addl -28(%rbp), %ecx cmpl %ecx, %eax jg LBB0_19 ## %bb.16: ## in Loop: Header=BB0_1 Depth=1 movl -24(%rbp), %eax movl -16(%rbp), %ecx addl -20(%rbp), %ecx addl -28(%rbp), %ecx cmpl %ecx, %eax jg LBB0_19 ## %bb.17: ## in Loop: Header=BB0_1 Depth=1 movl -28(%rbp), %eax movl -16(%rbp), %ecx addl -20(%rbp), %ecx addl -24(%rbp), %ecx cmpl %ecx, %eax jg LBB0_19 ## %bb.18: ## in Loop: Header=BB0_1 Depth=1 leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf jmp LBB0_20 LBB0_19: ## in Loop: Header=BB0_1 Depth=1 leaq L_.str.5(%rip), %rdi 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 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB0_1 LBB0_24: xorl %eax, %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d" L_.str.1: ## @.str.1 .asciz "%d %d %d %d" L_.str.2: ## @.str.2 .asciz "square\n" L_.str.3: ## @.str.3 .asciz "rectangle\n" L_.str.4: ## @.str.4 .asciz "quadrangle\n" L_.str.5: ## @.str.5 .asciz "banana\n" .subsections_via_symbols
the_stack_data/88228.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov x0, #0 bl _time mov x8, sp str x0, [x8] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov w0, #0 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%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 xorl %eax, %eax movl %eax, %edi callq _time movq %rax, %rsi leaq L_.str(%rip), %rdi movb $0, %al callq _printf xorl %eax, %eax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d\n" .subsections_via_symbols
the_stack_data/125141154.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #0 str w8, [sp, #12] ; 4-byte Folded Spill stur wzr, [x29, #-4] stur w0, [x29, #-8] str x1, [sp, #16] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldr w0, [sp, #12] ; 4-byte Folded Reload ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Hello 1205!\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) movl %edi, -8(%rbp) movq %rsi, -16(%rbp) leaq L_.str(%rip), %rdi movb $0, %al callq _printf xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Hello 1205!\n" .subsections_via_symbols
the_stack_data/7949730.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _sscanf ; -- Begin function sscanf .p2align 2 _sscanf: ; @sscanf .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #8] str x1, [sp] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf 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 "sscanf()\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _sscanf ## -- Begin function sscanf .p2align 4, 0x90 _sscanf: ## @sscanf .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) leaq L_.str(%rip), %rdi movb $0, %al callq _printf LBB0_1: ## =>This Inner Loop Header: Depth=1 jmp LBB0_1 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "sscanf()\n" .subsections_via_symbols
the_stack_data/156885.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #80 .cfi_def_cfa_offset 80 stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp, #64 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] stur wzr, [x29, #-20] sub x0, x29, #16 bl _pipe adrp x8, l___const.main.txt_pere@PAGE add x8, x8, l___const.main.txt_pere@PAGEOFF ldr w10, [x8] sub x9, x29, #28 stur w10, [x29, #-28] ldur w8, [x8, #3] stur w8, [x9, #3] adrp x8, l___const.main.txt_fils@PAGE add x8, x8, l___const.main.txt_fils@PAGEOFF ldr w9, [x8] str w9, [sp, #28] ldrh w8, [x8, #4] strh w8, [sp, #32] bl _fork str w0, [sp, #24] ldr w8, [sp, #24] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: ldur w0, [x29, #-16] bl _close ldur w0, [x29, #-12] mov x1, #0 mov x2, #1 bl _write mov x9, sp sub x8, x29, #28 str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf b LBB0_3 LBB0_2: ldur w0, [x29, #-12] bl _close ldur w0, [x29, #-16] mov x1, #0 mov x2, #1 bl _read mov x9, sp add x8, sp, #28 str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf b LBB0_3 LBB0_3: ldur w8, [x29, #-20] 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, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l___const.main.txt_pere: ; @__const.main.txt_pere .asciz "P\303\250re\n" l___const.main.txt_fils: ; @__const.main.txt_fils .asciz "Fils\n" l_.str: ; @.str .asciz "%s\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -20(%rbp) leaq -16(%rbp), %rdi callq _pipe movl L___const.main.txt_pere(%rip), %eax movl %eax, -27(%rbp) movw L___const.main.txt_pere+4(%rip), %ax movw %ax, -23(%rbp) movb L___const.main.txt_pere+6(%rip), %al movb %al, -21(%rbp) movl L___const.main.txt_fils(%rip), %eax movl %eax, -33(%rbp) movw L___const.main.txt_fils+4(%rip), %ax movw %ax, -29(%rbp) callq _fork movl %eax, -40(%rbp) cmpl $0, -40(%rbp) jne LBB0_2 ## %bb.1: movl -16(%rbp), %edi callq _close movl -12(%rbp), %edi xorl %eax, %eax movl %eax, %esi movl $1, %edx callq _write leaq -27(%rbp), %rsi leaq L_.str(%rip), %rdi movb $0, %al callq _printf jmp LBB0_3 LBB0_2: movl -12(%rbp), %edi callq _close movl -16(%rbp), %edi xorl %eax, %eax movl %eax, %esi movl $1, %edx callq _read leaq -33(%rbp), %rsi leaq L_.str(%rip), %rdi movb $0, %al callq _printf LBB0_3: movl -20(%rbp), %eax movl %eax, -44(%rbp) ## 4-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_5 ## %bb.4: movl -44(%rbp), %eax ## 4-byte Reload addq $48, %rsp popq %rbp retq LBB0_5: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L___const.main.txt_pere: ## @__const.main.txt_pere .asciz "P\303\250re\n" L___const.main.txt_fils: ## @__const.main.txt_fils .asciz "Fils\n" L_.str: ## @.str .asciz "%s\n" .subsections_via_symbols
the_stack_data/75136782.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #80 .cfi_def_cfa_offset 80 stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp, #64 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] stur w0, [x29, #-8] stur x1, [x29, #-16] ldur w8, [x29, #-8] subs w8, w8, #4 cset w8, ge tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov w8, #1 stur w8, [x29, #-4] b LBB0_3 LBB0_2: ldur x8, [x29, #-16] ldr x0, [x8, #8] bl _parse_point stur s0, [x29, #-24] stur s1, [x29, #-20] ldur x8, [x29, #-16] ldr x0, [x8, #16] bl _parse_point str s0, [sp, #32] str s1, [sp, #36] ldur x8, [x29, #-16] ldr x0, [x8, #24] bl _parse_point str s0, [sp, #24] str s1, [sp, #28] ldur s0, [x29, #-24] ldr s1, [sp, #24] fsub s0, s0, s1 ldr s1, [sp, #36] ldur s2, [x29, #-20] fsub s1, s1, s2 ldur s2, [x29, #-24] ldr s3, [sp, #32] fsub s2, s2, s3 ldr s3, [sp, #28] ldur s4, [x29, #-20] fsub s3, s3, s4 fmul s2, s2, s3 fnmsub s0, s0, s1, s2 fcvtzs w0, s0 bl _abs mov w8, #2 sdiv w8, w0, w8 scvtf s0, w8 str s0, [sp, #20] ldr s0, [sp, #20] fcvt d0, s0 mov x8, sp str d0, [x8] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf stur wzr, [x29, #-4] b LBB0_3 LBB0_3: ldur w0, [x29, #-4] ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .globl _parse_point ; -- Begin function parse_point .p2align 2 _parse_point: ; @parse_point .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 x0, [x29, #-16] bl _strdup mov x8, x0 add x0, sp, #24 str x0, [sp] ; 8-byte Folded Spill str x8, [sp, #24] adrp x1, l_.str.2@PAGE add x1, x1, l_.str.2@PAGEOFF str x1, [sp, #8] ; 8-byte Folded Spill bl _strsep str x0, [sp, #16] ldr x0, [sp, #16] bl _atof ldr x0, [sp] ; 8-byte Folded Reload ldr x1, [sp, #8] ; 8-byte Folded Reload fcvt s0, d0 stur s0, [x29, #-8] bl _strsep str x0, [sp, #16] ldr x0, [sp, #16] bl _atof fcvt s0, d0 stur s0, [x29, #-4] ldur s0, [x29, #-8] ldur s1, [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 "Uso: e10 ax,ay bx,by cx,cy\n" l_.str.1: ; @.str.1 .asciz "Superficie: %.2f\n" l_.str.2: ; @.str.2 .asciz "," .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movl $0, -4(%rbp) movl %edi, -8(%rbp) movq %rsi, -16(%rbp) cmpl $4, -8(%rbp) jge LBB0_2 ## %bb.1: leaq L_.str(%rip), %rdi movb $0, %al callq _printf movl $1, -4(%rbp) jmp LBB0_3 LBB0_2: movq -16(%rbp), %rax movq 8(%rax), %rdi callq _parse_point movlpd %xmm0, -24(%rbp) movq -16(%rbp), %rax movq 16(%rax), %rdi callq _parse_point movlpd %xmm0, -32(%rbp) movq -16(%rbp), %rax movq 24(%rax), %rdi callq _parse_point movlpd %xmm0, -40(%rbp) movss -24(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero subss -40(%rbp), %xmm0 movss -28(%rbp), %xmm2 ## xmm2 = mem[0],zero,zero,zero subss -20(%rbp), %xmm2 movss -24(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero subss -32(%rbp), %xmm1 movss -36(%rbp), %xmm3 ## xmm3 = mem[0],zero,zero,zero subss -20(%rbp), %xmm3 mulss %xmm3, %xmm1 movd %xmm1, %eax xorl $2147483648, %eax ## imm = 0x80000000 movd %eax, %xmm1 mulss %xmm2, %xmm0 addss %xmm1, %xmm0 cvttss2si %xmm0, %edi callq _abs movl $2, %ecx cltd idivl %ecx cvtsi2ss %eax, %xmm0 movss %xmm0, -44(%rbp) movss -44(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 leaq L_.str.1(%rip), %rdi movb $1, %al callq _printf movl $0, -4(%rbp) LBB0_3: movl -4(%rbp), %eax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _parse_point ## -- Begin function parse_point .p2align 4, 0x90 _parse_point: ## @parse_point .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 -16(%rbp), %rdi callq _strdup movq %rax, -24(%rbp) leaq L_.str.2(%rip), %rsi movq %rsi, -40(%rbp) ## 8-byte Spill leaq -24(%rbp), %rdi movq %rdi, -48(%rbp) ## 8-byte Spill callq _strsep movq %rax, -32(%rbp) movq -32(%rbp), %rdi callq _atof movq -48(%rbp), %rdi ## 8-byte Reload movq -40(%rbp), %rsi ## 8-byte Reload cvtsd2ss %xmm0, %xmm0 movss %xmm0, -8(%rbp) callq _strsep movq %rax, -32(%rbp) movq -32(%rbp), %rdi callq _atof cvtsd2ss %xmm0, %xmm0 movss %xmm0, -4(%rbp) movsd -8(%rbp), %xmm0 ## xmm0 = mem[0],zero addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Uso: e10 ax,ay bx,by cx,cy\n" L_.str.1: ## @.str.1 .asciz "Superficie: %.2f\n" L_.str.2: ## @.str.2 .asciz "," .subsections_via_symbols
the_stack_data/1161705.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, #14544 movk w9, #1, lsl #16 adrp x16, ___chkstk_darwin@GOTPAGE ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF] blr x16 sub sp, sp, #19, lsl #12 ; =77824 sub sp, sp, #2256 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] str wzr, [sp, #76] b LBB0_1 LBB0_1: ; =>This Loop Header: Depth=1 ; Child Loop BB0_3 Depth 2 ; Child Loop BB0_5 Depth 3 ; Child Loop BB0_9 Depth 3 ; Child Loop BB0_13 Depth 3 ; Child Loop BB0_21 Depth 3 mov x9, sp add x8, sp, #72 str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _scanf adds w8, w0, #1 cset w8, eq tbnz w8, #0, LBB0_29 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 mov w8, #1 str w8, [sp, #60] b LBB0_3 LBB0_3: ; Parent Loop BB0_1 Depth=1 ; => This Loop Header: Depth=2 ; Child Loop BB0_5 Depth 3 ; Child Loop BB0_9 Depth 3 ; Child Loop BB0_13 Depth 3 ; Child Loop BB0_21 Depth 3 ldr w8, [sp, #60] ldr w9, [sp, #72] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_28 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_3 Depth=2 mov x8, #1 str x8, [sp, #32] str x8, [sp, #24] str x8, [sp, #16] mov x9, sp add x8, sp, #68 str x8, [x9] add x8, sp, #64 str x8, [x9, #8] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf mov w8, #1 str w8, [sp, #52] b LBB0_5 LBB0_5: ; Parent Loop BB0_1 Depth=1 ; Parent Loop BB0_3 Depth=2 ; => This Inner Loop Header: Depth=3 ldr w8, [sp, #52] ldr w9, [sp, #68] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_8 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_5 Depth=3 ldrsw x9, [sp, #52] ldr x8, [sp, #32] mul x8, x8, x9 str x8, [sp, #32] b LBB0_7 LBB0_7: ; in Loop: Header=BB0_5 Depth=3 ldr w8, [sp, #52] add w8, w8, #1 str w8, [sp, #52] b LBB0_5 LBB0_8: ; in Loop: Header=BB0_3 Depth=2 mov w8, #1 str w8, [sp, #48] b LBB0_9 LBB0_9: ; Parent Loop BB0_1 Depth=1 ; Parent Loop BB0_3 Depth=2 ; => This Inner Loop Header: Depth=3 ldr w8, [sp, #48] ldr w9, [sp, #64] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_12 b LBB0_10 LBB0_10: ; in Loop: Header=BB0_9 Depth=3 ldrsw x9, [sp, #48] ldr x8, [sp, #24] mul x8, x8, x9 str x8, [sp, #24] b LBB0_11 LBB0_11: ; in Loop: Header=BB0_9 Depth=3 ldr w8, [sp, #48] add w8, w8, #1 str w8, [sp, #48] b LBB0_9 LBB0_12: ; in Loop: Header=BB0_3 Depth=2 mov w8, #1 str w8, [sp, #44] b LBB0_13 LBB0_13: ; Parent Loop BB0_1 Depth=1 ; Parent Loop BB0_3 Depth=2 ; => This Inner Loop Header: Depth=3 ldr w8, [sp, #44] ldr w9, [sp, #68] ldr w10, [sp, #64] subs w9, w9, w10 subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_16 b LBB0_14 LBB0_14: ; in Loop: Header=BB0_13 Depth=3 ldrsw x9, [sp, #44] ldr x8, [sp, #16] mul x8, x8, x9 str x8, [sp, #16] b LBB0_15 LBB0_15: ; in Loop: Header=BB0_13 Depth=3 ldr w8, [sp, #44] add w8, w8, #1 str w8, [sp, #44] b LBB0_13 LBB0_16: ; in Loop: Header=BB0_3 Depth=2 mov x8, #1 str x8, [sp, #96] mov x8, #2 str x8, [sp, #104] ldr w8, [sp, #64] subs w8, w8, #2 cset w8, ne tbnz w8, #0, LBB0_18 b LBB0_17 LBB0_17: ; in Loop: Header=BB0_3 Depth=2 ldr x8, [sp, #32] ldr x9, [sp, #24] ldr x10, [sp, #16] mul x9, x9, x10 sdiv x8, 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_26 LBB0_18: ; in Loop: Header=BB0_3 Depth=2 ldr w8, [sp, #64] subs w8, w8, #3 cset w8, ne tbnz w8, #0, LBB0_20 b LBB0_19 LBB0_19: ; in Loop: Header=BB0_3 Depth=2 ldr x9, [sp, #32] mov x8, #2 mul x8, x8, x9 ldr x9, [sp, #24] ldr x10, [sp, #16] mul x9, x9, x10 sdiv x8, 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_25 LBB0_20: ; in Loop: Header=BB0_3 Depth=2 mov w8, #4 str w8, [sp, #56] b LBB0_21 LBB0_21: ; Parent Loop BB0_1 Depth=1 ; Parent Loop BB0_3 Depth=2 ; => This Inner Loop Header: Depth=3 ldr w8, [sp, #56] ldr w9, [sp, #64] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_24 b LBB0_22 LBB0_22: ; in Loop: Header=BB0_21 Depth=3 ldr w8, [sp, #56] subs w8, w8, #1 add x9, sp, #80 ldr x8, [x9, w8, sxtw #3] ldr w10, [sp, #56] subs w10, w10, #2 ldr x10, [x9, w10, sxtw #3] add x8, x8, x10 ldr w10, [sp, #56] subs w11, w10, #1 ; implicit-def: $x10 mov x10, x11 sxtw x10, w10 mul x8, x8, x10 ldrsw x10, [sp, #56] str x8, [x9, x10, lsl #3] b LBB0_23 LBB0_23: ; in Loop: Header=BB0_21 Depth=3 ldr w8, [sp, #56] add w8, w8, #1 str w8, [sp, #56] b LBB0_21 LBB0_24: ; in Loop: Header=BB0_3 Depth=2 ldr w8, [sp, #56] subs w9, w8, #1 add x8, sp, #80 ldr x8, [x8, w9, sxtw #3] ldr x9, [sp, #32] ldr x10, [sp, #24] ldr x11, [sp, #16] mul x10, x10, x11 sdiv x9, x9, x10 mul x8, 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_25 LBB0_25: ; in Loop: Header=BB0_3 Depth=2 b LBB0_26 LBB0_26: ; in Loop: Header=BB0_3 Depth=2 b LBB0_27 LBB0_27: ; in Loop: Header=BB0_3 Depth=2 ldr w8, [sp, #60] add w8, w8, #1 str w8, [sp, #60] b LBB0_3 LBB0_28: ; in Loop: Header=BB0_1 Depth=1 b LBB0_1 LBB0_29: ldur x9, [x29, #-24] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_31 b LBB0_30 LBB0_30: bl ___stack_chk_fail LBB0_31: mov w0, #0 add sp, sp, #19, lsl #12 ; =77824 add sp, sp, #2256 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x28, x27, [sp], #32 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d" l_.str.1: ; @.str.1 .asciz "%d %d" l_.str.2: ; @.str.2 .asciz "%d\n" l_.str.3: ; @.str.3 .asciz "%lld\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 $80064, %eax ## imm = 0x138C0 callq ____chkstk_darwin subq %rax, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -80004(%rbp) LBB0_1: ## =>This Loop Header: Depth=1 ## Child Loop BB0_3 Depth 2 ## Child Loop BB0_5 Depth 3 ## Child Loop BB0_9 Depth 3 ## Child Loop BB0_13 Depth 3 ## Child Loop BB0_21 Depth 3 leaq L_.str(%rip), %rdi leaq -80008(%rbp), %rsi movb $0, %al callq _scanf cmpl $-1, %eax je LBB0_29 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl $1, -80020(%rbp) LBB0_3: ## Parent Loop BB0_1 Depth=1 ## => This Loop Header: Depth=2 ## Child Loop BB0_5 Depth 3 ## Child Loop BB0_9 Depth 3 ## Child Loop BB0_13 Depth 3 ## Child Loop BB0_21 Depth 3 movl -80020(%rbp), %eax cmpl -80008(%rbp), %eax jg LBB0_28 ## %bb.4: ## in Loop: Header=BB0_3 Depth=2 movq $1, -80048(%rbp) movq $1, -80056(%rbp) movq $1, -80064(%rbp) leaq L_.str.1(%rip), %rdi leaq -80012(%rbp), %rsi leaq -80016(%rbp), %rdx movb $0, %al callq _scanf movl $1, -80028(%rbp) LBB0_5: ## Parent Loop BB0_1 Depth=1 ## Parent Loop BB0_3 Depth=2 ## => This Inner Loop Header: Depth=3 movl -80028(%rbp), %eax cmpl -80012(%rbp), %eax jg LBB0_8 ## %bb.6: ## in Loop: Header=BB0_5 Depth=3 movslq -80028(%rbp), %rax imulq -80048(%rbp), %rax movq %rax, -80048(%rbp) ## %bb.7: ## in Loop: Header=BB0_5 Depth=3 movl -80028(%rbp), %eax addl $1, %eax movl %eax, -80028(%rbp) jmp LBB0_5 LBB0_8: ## in Loop: Header=BB0_3 Depth=2 movl $1, -80032(%rbp) LBB0_9: ## Parent Loop BB0_1 Depth=1 ## Parent Loop BB0_3 Depth=2 ## => This Inner Loop Header: Depth=3 movl -80032(%rbp), %eax cmpl -80016(%rbp), %eax jg LBB0_12 ## %bb.10: ## in Loop: Header=BB0_9 Depth=3 movslq -80032(%rbp), %rax imulq -80056(%rbp), %rax movq %rax, -80056(%rbp) ## %bb.11: ## in Loop: Header=BB0_9 Depth=3 movl -80032(%rbp), %eax addl $1, %eax movl %eax, -80032(%rbp) jmp LBB0_9 LBB0_12: ## in Loop: Header=BB0_3 Depth=2 movl $1, -80036(%rbp) LBB0_13: ## Parent Loop BB0_1 Depth=1 ## Parent Loop BB0_3 Depth=2 ## => This Inner Loop Header: Depth=3 movl -80036(%rbp), %eax movl -80012(%rbp), %ecx subl -80016(%rbp), %ecx cmpl %ecx, %eax jg LBB0_16 ## %bb.14: ## in Loop: Header=BB0_13 Depth=3 movslq -80036(%rbp), %rax imulq -80064(%rbp), %rax movq %rax, -80064(%rbp) ## %bb.15: ## in Loop: Header=BB0_13 Depth=3 movl -80036(%rbp), %eax addl $1, %eax movl %eax, -80036(%rbp) jmp LBB0_13 LBB0_16: ## in Loop: Header=BB0_3 Depth=2 movq $1, -79984(%rbp) movq $2, -79976(%rbp) cmpl $2, -80016(%rbp) jne LBB0_18 ## %bb.17: ## in Loop: Header=BB0_3 Depth=2 movq -80048(%rbp), %rax movq -80056(%rbp), %rcx imulq -80064(%rbp), %rcx cqto idivq %rcx movq %rax, %rsi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf jmp LBB0_26 LBB0_18: ## in Loop: Header=BB0_3 Depth=2 cmpl $3, -80016(%rbp) jne LBB0_20 ## %bb.19: ## in Loop: Header=BB0_3 Depth=2 movq -80048(%rbp), %rax shlq $1, %rax movq -80056(%rbp), %rcx imulq -80064(%rbp), %rcx cqto idivq %rcx movq %rax, %rsi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf jmp LBB0_25 LBB0_20: ## in Loop: Header=BB0_3 Depth=2 movl $4, -80024(%rbp) LBB0_21: ## Parent Loop BB0_1 Depth=1 ## Parent Loop BB0_3 Depth=2 ## => This Inner Loop Header: Depth=3 movl -80024(%rbp), %eax cmpl -80016(%rbp), %eax jg LBB0_24 ## %bb.22: ## in Loop: Header=BB0_21 Depth=3 movl -80024(%rbp), %eax subl $1, %eax cltq movq -80000(%rbp,%rax,8), %rcx movl -80024(%rbp), %eax subl $2, %eax cltq addq -80000(%rbp,%rax,8), %rcx movl -80024(%rbp), %eax subl $1, %eax cltq imulq %rax, %rcx movslq -80024(%rbp), %rax movq %rcx, -80000(%rbp,%rax,8) ## %bb.23: ## in Loop: Header=BB0_21 Depth=3 movl -80024(%rbp), %eax addl $1, %eax movl %eax, -80024(%rbp) jmp LBB0_21 LBB0_24: ## in Loop: Header=BB0_3 Depth=2 movl -80024(%rbp), %eax subl $1, %eax cltq movq -80000(%rbp,%rax,8), %rsi movq -80048(%rbp), %rax movq -80056(%rbp), %rcx imulq -80064(%rbp), %rcx cqto idivq %rcx imulq %rax, %rsi leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf LBB0_25: ## in Loop: Header=BB0_3 Depth=2 jmp LBB0_26 LBB0_26: ## in Loop: Header=BB0_3 Depth=2 jmp LBB0_27 LBB0_27: ## in Loop: Header=BB0_3 Depth=2 movl -80020(%rbp), %eax addl $1, %eax movl %eax, -80020(%rbp) jmp LBB0_3 LBB0_28: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_1 LBB0_29: movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_31 ## %bb.30: xorl %eax, %eax addq $80064, %rsp ## imm = 0x138C0 popq %rbp retq LBB0_31: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d" L_.str.1: ## @.str.1 .asciz "%d %d" L_.str.2: ## @.str.2 .asciz "%d\n" L_.str.3: ## @.str.3 .asciz "%lld\n" .subsections_via_symbols
the_stack_data/243892206.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] mov x9, sp sub x8, x29, #8 str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _scanf ldursw x8, [x29, #-8] lsl x0, x8, #2 bl _malloc stur x0, [x29, #-16] str wzr, [sp, #16] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #16] ldur w9, [x29, #-8] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_4 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldur x8, [x29, #-16] ldrsw x9, [sp, #16] 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, #16] add w8, w8, #1 str w8, [sp, #16] b LBB0_1 LBB0_4: mov x9, sp sub x8, x29, #20 str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _scanf str wzr, [sp, #16] b LBB0_5 LBB0_5: ; =>This Loop Header: Depth=1 ; Child Loop BB0_7 Depth 2 ldr w8, [sp, #16] ldur w9, [x29, #-20] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_17 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_5 Depth=1 str wzr, [sp, #20] mov x9, sp add x8, sp, #24 str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _scanf str wzr, [sp, #12] b LBB0_7 LBB0_7: ; Parent Loop BB0_5 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #12] ldur w9, [x29, #-8] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_12 b LBB0_8 LBB0_8: ; in Loop: Header=BB0_7 Depth=2 ldur x8, [x29, #-16] ldrsw x9, [sp, #12] ldr w8, [x8, x9, lsl #2] ldr w9, [sp, #24] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_10 b LBB0_9 LBB0_9: ; in Loop: Header=BB0_7 Depth=2 ldr w8, [sp, #20] add w8, w8, #1 str w8, [sp, #20] 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, #12] add w8, w8, #1 str w8, [sp, #12] b LBB0_7 LBB0_12: ; in Loop: Header=BB0_5 Depth=1 ldr w8, [sp, #20] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_14 b LBB0_13 LBB0_13: ; in Loop: Header=BB0_5 Depth=1 adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf b LBB0_15 LBB0_14: ; in Loop: Header=BB0_5 Depth=1 ldr w9, [sp, #20] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf b LBB0_15 LBB0_15: ; in Loop: Header=BB0_5 Depth=1 b LBB0_16 LBB0_16: ; in Loop: Header=BB0_5 Depth=1 ldr w8, [sp, #16] add w8, w8, #1 str w8, [sp, #16] b LBB0_5 LBB0_17: ldur x0, [x29, #-16] bl _free mov w0, #0 ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d" l_.str.1: ; @.str.1 .asciz "-1\n" l_.str.2: ; @.str.2 .asciz "%d\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $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 $2, %rdi callq _malloc movq %rax, -16(%rbp) movl $0, -32(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movl -32(%rbp), %eax cmpl -8(%rbp), %eax jge LBB0_4 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movq -16(%rbp), %rsi movslq -32(%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 -32(%rbp), %eax addl $1, %eax movl %eax, -32(%rbp) jmp LBB0_1 LBB0_4: leaq L_.str(%rip), %rdi leaq -20(%rbp), %rsi movb $0, %al callq _scanf movl $0, -32(%rbp) LBB0_5: ## =>This Loop Header: Depth=1 ## Child Loop BB0_7 Depth 2 movl -32(%rbp), %eax cmpl -20(%rbp), %eax jge LBB0_17 ## %bb.6: ## in Loop: Header=BB0_5 Depth=1 movl $0, -28(%rbp) leaq L_.str(%rip), %rdi leaq -24(%rbp), %rsi movb $0, %al callq _scanf movl $0, -36(%rbp) LBB0_7: ## Parent Loop BB0_5 Depth=1 ## => This Inner Loop Header: Depth=2 movl -36(%rbp), %eax cmpl -8(%rbp), %eax jge LBB0_12 ## %bb.8: ## in Loop: Header=BB0_7 Depth=2 movq -16(%rbp), %rax movslq -36(%rbp), %rcx movl (%rax,%rcx,4), %eax cmpl -24(%rbp), %eax jne LBB0_10 ## %bb.9: ## in Loop: Header=BB0_7 Depth=2 movl -28(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) LBB0_10: ## in Loop: Header=BB0_7 Depth=2 jmp LBB0_11 LBB0_11: ## in Loop: Header=BB0_7 Depth=2 movl -36(%rbp), %eax addl $1, %eax movl %eax, -36(%rbp) jmp LBB0_7 LBB0_12: ## in Loop: Header=BB0_5 Depth=1 cmpl $0, -28(%rbp) jne LBB0_14 ## %bb.13: ## in Loop: Header=BB0_5 Depth=1 leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf jmp LBB0_15 LBB0_14: ## in Loop: Header=BB0_5 Depth=1 movl -28(%rbp), %esi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf LBB0_15: ## in Loop: Header=BB0_5 Depth=1 jmp LBB0_16 LBB0_16: ## in Loop: Header=BB0_5 Depth=1 movl -32(%rbp), %eax addl $1, %eax movl %eax, -32(%rbp) jmp LBB0_5 LBB0_17: movq -16(%rbp), %rdi callq _free xorl %eax, %eax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d" L_.str.1: ## @.str.1 .asciz "-1\n" L_.str.2: ## @.str.2 .asciz "%d\n" .subsections_via_symbols
the_stack_data/23574219.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/57949770.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] stur w0, [x29, #-8] stur x1, [x29, #-16] ldur w8, [x29, #-8] subs w8, w8, #2 cset w8, ge tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: mov w8, #1 stur w8, [x29, #-4] b LBB0_11 LBB0_2: adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF bl _fopen str x0, [sp, #16] ldr x0, [sp, #16] adrp x1, l_.str.2@PAGE add x1, x1, l_.str.2@PAGEOFF bl _fprintf mov w8, #1 stur w8, [x29, #-20] b LBB0_3 LBB0_3: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-20] ldur w9, [x29, #-8] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_6 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_3 Depth=1 ldr x0, [sp, #16] ldur x8, [x29, #-16] ldursw x9, [x29, #-20] ldr x8, [x8, x9, lsl #3] mov x9, sp str x8, [x9] adrp x1, l_.str.3@PAGE add x1, x1, l_.str.3@PAGEOFF bl _fprintf b LBB0_5 LBB0_5: ; in Loop: Header=BB0_3 Depth=1 ldur w8, [x29, #-20] add w8, w8, #1 stur w8, [x29, #-20] b LBB0_3 LBB0_6: ldr x0, [sp, #16] bl _fclose adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF bl _fopen str x0, [sp, #16] ldr x0, [sp, #16] adrp x1, l_.str.5@PAGE add x1, x1, l_.str.5@PAGEOFF bl _fprintf ldr x0, [sp, #16] adrp x1, l_.str.6@PAGE add x1, x1, l_.str.6@PAGEOFF bl _fprintf ldr x0, [sp, #16] ldur x8, [x29, #-16] ldr x8, [x8, #8] mov x9, sp str x8, [x9] adrp x1, l_.str.7@PAGE add x1, x1, l_.str.7@PAGEOFF str x1, [sp, #8] ; 8-byte Folded Spill bl _fprintf ldr x0, [sp, #16] adrp x1, l_.str.8@PAGE add x1, x1, l_.str.8@PAGEOFF bl _fprintf ldr x1, [sp, #8] ; 8-byte Folded Reload ldr x0, [sp, #16] ldur x8, [x29, #-16] ldr x8, [x8, #16] mov x9, sp str x8, [x9] bl _fprintf adrp x0, l_.str.9@PAGE add x0, x0, l_.str.9@PAGEOFF bl _printf mov w8, #2 stur w8, [x29, #-20] b LBB0_7 LBB0_7: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-20] ldur w9, [x29, #-8] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_10 b LBB0_8 LBB0_8: ; in Loop: Header=BB0_7 Depth=1 ldur x8, [x29, #-16] ldursw x9, [x29, #-20] ldr x8, [x8, x9, lsl #3] mov x9, sp str x8, [x9] adrp x0, l_.str.10@PAGE add x0, x0, l_.str.10@PAGEOFF bl _printf ldr x0, [sp, #16] ldur x8, [x29, #-16] ldursw x9, [x29, #-20] ldr x8, [x8, x9, lsl #3] mov x9, sp str x8, [x9] adrp x1, l_.str.11@PAGE add x1, x1, l_.str.11@PAGEOFF bl _fprintf ldr x0, [sp, #16] ldur x8, [x29, #-16] ldursw x9, [x29, #-20] ldr x8, [x8, x9, lsl #3] mov x9, sp str x8, [x9] adrp x1, l_.str.7@PAGE add x1, x1, l_.str.7@PAGEOFF bl _fprintf b LBB0_9 LBB0_9: ; in Loop: Header=BB0_7 Depth=1 ldur w8, [x29, #-20] add w8, w8, #1 stur w8, [x29, #-20] b LBB0_7 LBB0_10: adrp x0, l_.str.12@PAGE add x0, x0, l_.str.12@PAGEOFF bl _printf ldr x0, [sp, #16] adrp x1, l_.str.13@PAGE add x1, x1, l_.str.13@PAGEOFF bl _fprintf ldr x0, [sp, #16] adrp x1, l_.str.14@PAGE add x1, x1, l_.str.14@PAGEOFF bl _fprintf ldr x0, [sp, #16] bl _fclose stur wzr, [x29, #-4] b LBB0_11 LBB0_11: ldur w0, [x29, #-4] ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "exported_symbols.h" l_.str.1: ; @.str.1 .asciz "w" l_.str.2: ; @.str.2 .asciz "/* exported_symbols.h generated by exportsymbols \n *\n * The static case\n *\n * Struct which contain export symbols\n * Format :\n * --------\n *\n * filename, NULL\n * symbol1, &func1,\n * symbol2, &func2,\n * filename2, NULL\n * symbol1, &func1,\n * symbol2, &func2,\n * ....\n * symboln, &funcn,\n * NULL, NULL\n */\n\ntypedef struct {\n\tconst char *name;\n\tvoid (*function)(void);\n} kdblib_symbol;\n\nextern kdblib_symbol kdb_exported_syms[];\n\n" l_.str.3: ; @.str.3 .asciz "extern void libelektra_%s_LTX_elektraPluginSymbol (void);\n" l_.str.4: ; @.str.4 .asciz "exported_symbols.c" l_.str.5: ; @.str.5 .asciz "/* exported_symbols.c generated by exportsymbols.sh */\n\n#include <exported_symbols.h>\n\nkdblib_symbol kdb_exported_syms[] =\n{\n" l_.str.6: ; @.str.6 .asciz "\t{\"resolver\", 0},\n" l_.str.7: ; @.str.7 .asciz "\t{\"elektraPluginSymbol\", &libelektra_%s_LTX_elektraPluginSymbol},\n" l_.str.8: ; @.str.8 .asciz "\t{\"storage\", 0},\n" l_.str.9: ; @.str.9 .asciz "Exporting symbols for " l_.str.10: ; @.str.10 .asciz "%s " l_.str.11: ; @.str.11 .asciz "\t{\"%s\", 0},\n" l_.str.12: ; @.str.12 .asciz "\n" l_.str.13: ; @.str.13 .asciz "\t{ 0 , 0 }\n" l_.str.14: ; @.str.14 .asciz "};\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl $0, -4(%rbp) movl %edi, -8(%rbp) movq %rsi, -16(%rbp) cmpl $2, -8(%rbp) jge LBB0_2 ## %bb.1: movl $1, -4(%rbp) jmp LBB0_11 LBB0_2: leaq L_.str(%rip), %rdi leaq L_.str.1(%rip), %rsi callq _fopen movq %rax, -32(%rbp) movq -32(%rbp), %rdi leaq L_.str.2(%rip), %rsi movb $0, %al callq _fprintf movl $1, -20(%rbp) LBB0_3: ## =>This Inner Loop Header: Depth=1 movl -20(%rbp), %eax cmpl -8(%rbp), %eax jge LBB0_6 ## %bb.4: ## in Loop: Header=BB0_3 Depth=1 movq -32(%rbp), %rdi movq -16(%rbp), %rax movslq -20(%rbp), %rcx movq (%rax,%rcx,8), %rdx leaq L_.str.3(%rip), %rsi movb $0, %al callq _fprintf ## %bb.5: ## in Loop: Header=BB0_3 Depth=1 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB0_3 LBB0_6: movq -32(%rbp), %rdi callq _fclose leaq L_.str.4(%rip), %rdi leaq L_.str.1(%rip), %rsi callq _fopen movq %rax, -32(%rbp) movq -32(%rbp), %rdi leaq L_.str.5(%rip), %rsi movb $0, %al callq _fprintf movq -32(%rbp), %rdi leaq L_.str.6(%rip), %rsi movb $0, %al callq _fprintf movq -32(%rbp), %rdi movq -16(%rbp), %rax movq 8(%rax), %rdx leaq L_.str.7(%rip), %rsi movb $0, %al callq _fprintf movq -32(%rbp), %rdi leaq L_.str.8(%rip), %rsi movb $0, %al callq _fprintf movq -32(%rbp), %rdi movq -16(%rbp), %rax movq 16(%rax), %rdx leaq L_.str.7(%rip), %rsi movb $0, %al callq _fprintf leaq L_.str.9(%rip), %rdi movb $0, %al callq _printf movl $2, -20(%rbp) LBB0_7: ## =>This Inner Loop Header: Depth=1 movl -20(%rbp), %eax cmpl -8(%rbp), %eax jge LBB0_10 ## %bb.8: ## in Loop: Header=BB0_7 Depth=1 movq -16(%rbp), %rax movslq -20(%rbp), %rcx movq (%rax,%rcx,8), %rsi leaq L_.str.10(%rip), %rdi movb $0, %al callq _printf movq -32(%rbp), %rdi movq -16(%rbp), %rax movslq -20(%rbp), %rcx movq (%rax,%rcx,8), %rdx leaq L_.str.11(%rip), %rsi movb $0, %al callq _fprintf movq -32(%rbp), %rdi movq -16(%rbp), %rax movslq -20(%rbp), %rcx movq (%rax,%rcx,8), %rdx leaq L_.str.7(%rip), %rsi movb $0, %al callq _fprintf ## %bb.9: ## in Loop: Header=BB0_7 Depth=1 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB0_7 LBB0_10: leaq L_.str.12(%rip), %rdi movb $0, %al callq _printf movq -32(%rbp), %rdi leaq L_.str.13(%rip), %rsi movb $0, %al callq _fprintf movq -32(%rbp), %rdi leaq L_.str.14(%rip), %rsi movb $0, %al callq _fprintf movq -32(%rbp), %rdi callq _fclose movl $0, -4(%rbp) LBB0_11: movl -4(%rbp), %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "exported_symbols.h" L_.str.1: ## @.str.1 .asciz "w" L_.str.2: ## @.str.2 .asciz "/* exported_symbols.h generated by exportsymbols \n *\n * The static case\n *\n * Struct which contain export symbols\n * Format :\n * --------\n *\n * filename, NULL\n * symbol1, &func1,\n * symbol2, &func2,\n * filename2, NULL\n * symbol1, &func1,\n * symbol2, &func2,\n * ....\n * symboln, &funcn,\n * NULL, NULL\n */\n\ntypedef struct {\n\tconst char *name;\n\tvoid (*function)(void);\n} kdblib_symbol;\n\nextern kdblib_symbol kdb_exported_syms[];\n\n" L_.str.3: ## @.str.3 .asciz "extern void libelektra_%s_LTX_elektraPluginSymbol (void);\n" L_.str.4: ## @.str.4 .asciz "exported_symbols.c" L_.str.5: ## @.str.5 .asciz "/* exported_symbols.c generated by exportsymbols.sh */\n\n#include <exported_symbols.h>\n\nkdblib_symbol kdb_exported_syms[] =\n{\n" L_.str.6: ## @.str.6 .asciz "\t{\"resolver\", 0},\n" L_.str.7: ## @.str.7 .asciz "\t{\"elektraPluginSymbol\", &libelektra_%s_LTX_elektraPluginSymbol},\n" L_.str.8: ## @.str.8 .asciz "\t{\"storage\", 0},\n" L_.str.9: ## @.str.9 .asciz "Exporting symbols for " L_.str.10: ## @.str.10 .asciz "%s " L_.str.11: ## @.str.11 .asciz "\t{\"%s\", 0},\n" L_.str.12: ## @.str.12 .asciz "\n" L_.str.13: ## @.str.13 .asciz "\t{ 0 , 0 }\n" L_.str.14: ## @.str.14 .asciz "};\n" .subsections_via_symbols
the_stack_data/86074858.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _ReadStuData ; -- Begin function ReadStuData .p2align 2 _ReadStuData: ; @ReadStuData .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 x13, [x29, #-8] ldur x8, [x29, #-8] add x12, x8, #10 ldur x8, [x29, #-8] add x11, x8, #20 ldur x8, [x29, #-8] add x10, x8, #24 ldur x8, [x29, #-8] add x8, x8, #28 mov x9, sp str x13, [x9] str x12, [x9, #8] str x11, [x9, #16] str x10, [x9, #24] str x8, [x9, #32] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _scanf ldur x8, [x29, #-8] ldr w8, [x8, #20] ldur x9, [x29, #-8] ldr w9, [x9, #24] add w8, w8, w9 ldur x9, [x29, #-8] ldr w9, [x9, #28] add w8, w8, w9 ldur x9, [x29, #-8] str w8, [x9, #32] ldur x8, [x29, #-8] ldr s1, [x8, #32] ; implicit-def: $d0 fmov s0, s1 sshll.2d v0, v0, #0 ; kill: def $d0 killed $d0 killed $q0 scvtf d0, d0 fmov d1, #3.00000000 fdiv d0, d0, d1 ldur x8, [x29, #-8] str d0, [x8, #40] 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, #368 .cfi_def_cfa_offset 368 stp x28, x27, [sp, #336] ; 16-byte Folded Spill stp x29, x30, [sp, #352] ; 16-byte Folded Spill add x29, sp, #352 .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, #0 str w8, [sp, #64] ; 4-byte Folded Spill str wzr, [sp, #84] adrp x8, ___stdinp@GOTPAGE ldr x8, [x8, ___stdinp@GOTPAGEOFF] ldr x2, [x8] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF adrp x1, l_.str.2@PAGE add x1, x1, l_.str.2@PAGEOFF bl _freopen adrp x8, ___stdoutp@GOTPAGE ldr x8, [x8, ___stdoutp@GOTPAGEOFF] ldr x2, [x8] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF adrp x1, l_.str.4@PAGE add x1, x1, l_.str.4@PAGEOFF str x1, [sp, #56] ; 8-byte Folded Spill bl _freopen ldr x1, [sp, #56] ; 8-byte Folded Reload adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] ldr x2, [x8] adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _freopen ldr w1, [sp, #64] ; 4-byte Folded Reload add x0, sp, #88 mov x8, x0 str x8, [sp, #72] str wzr, [sp, #68] mov x2, #240 bl _memset adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _puts b LBB1_1 LBB1_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #68] subs w8, w8, #5 cset w8, ge tbnz w8, #0, LBB1_6 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 ldrsw x8, [sp, #68] mov x9, #48 str x9, [sp, #40] ; 8-byte Folded Spill mul x9, x8, x9 add x8, sp, #88 str x8, [sp, #48] ; 8-byte Folded Spill add x0, x8, x9 bl _ReadStuData ldr x12, [sp, #40] ; 8-byte Folded Reload ldr x8, [sp, #48] ; 8-byte Folded Reload ldrsw x9, [sp, #68] mul x10, x9, x12 mov x9, x8 add x9, x9, x10 add x10, x9, #10 ldrsw x9, [sp, #68] mul x11, x9, x12 mov x9, x8 add x9, x9, x11 ldr w11, [x9, #32] ; implicit-def: $x9 mov x9, x11 ldrsw x11, [sp, #68] mul x11, x11, x12 add x8, x8, x11 ldr d0, [x8, #40] mov x8, sp str x10, [x8] str x9, [x8, #8] str d0, [x8, #16] adrp x0, l_.str.7@PAGE add x0, x0, l_.str.7@PAGEOFF bl _printf ldr x11, [sp, #40] ; 8-byte Folded Reload ldr x9, [sp, #48] ; 8-byte Folded Reload ldr x8, [sp, #72] ldr w8, [x8, #32] ldrsw x10, [sp, #68] mul x10, x10, x11 add x9, x9, x10 ldr w9, [x9, #32] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_4 b LBB1_3 LBB1_3: ; in Loop: Header=BB1_1 Depth=1 ldrsw x8, [sp, #68] mov x9, #48 mul x9, x8, x9 add x8, sp, #88 add x8, x8, x9 str x8, [sp, #72] 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, #68] add w8, w8, #1 str w8, [sp, #68] b LBB1_1 LBB1_6: ldr x13, [sp, #72] ldr x8, [sp, #72] add x12, x8, #10 ldr x8, [sp, #72] ldr w8, [x8, #20] ; implicit-def: $x11 mov x11, x8 ldr x8, [sp, #72] ldr w8, [x8, #24] ; implicit-def: $x10 mov x10, x8 ldr x8, [sp, #72] ldr w9, [x8, #28] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x13, [x9] str x12, [x9, #8] str x11, [x9, #16] str x10, [x9, #24] str x8, [x9, #32] adrp x0, l_.str.8@PAGE add x0, x0, l_.str.8@PAGEOFF bl _printf adrp x8, ___stdinp@GOTPAGE ldr x8, [x8, ___stdinp@GOTPAGEOFF] ldr x0, [x8] bl _fclose adrp x8, ___stdoutp@GOTPAGE ldr x8, [x8, ___stdoutp@GOTPAGEOFF] ldr x0, [x8] bl _fclose adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] ldr x0, [x8] bl _fclose ldur x9, [x29, #-24] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB1_8 b LBB1_7 LBB1_7: bl ___stack_chk_fail LBB1_8: mov w0, #0 ldp x29, x30, [sp, #352] ; 16-byte Folded Reload ldp x28, x27, [sp, #336] ; 16-byte Folded Reload add sp, sp, #368 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%s %s %d %d %d\n" l_.str.1: ; @.str.1 .asciz "1.in" l_.str.2: ; @.str.2 .asciz "r" l_.str.3: ; @.str.3 .asciz "1.out" l_.str.4: ; @.str.4 .asciz "w" l_.str.5: ; @.str.5 .asciz "1.err" l_.str.6: ; @.str.6 .asciz "\345\247\223\345\220\215 \346\200\273\345\210\206 \345\271\263\345\235\207\346\210\220\347\273\251 " l_.str.7: ; @.str.7 .asciz "%s %d %.1lf\n" l_.str.8: ; @.str.8 .asciz "\346\200\273\345\210\206\346\225\260\346\234\200\351\253\230\347\232\204\345\255\246\347\224\237\344\277\241\346\201\257\345\246\202\344\270\213\357\274\232\n%s %s %d %d %d\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __TEXT,__literal8,8byte_literals .p2align 3 ## -- Begin function ReadStuData LCPI0_0: .quad 0x4008000000000000 ## double 3 .section __TEXT,__text,regular,pure_instructions .globl _ReadStuData .p2align 4, 0x90 _ReadStuData: ## @ReadStuData .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) movq -8(%rbp), %rsi movq -8(%rbp), %rdx addq $10, %rdx movq -8(%rbp), %rcx addq $20, %rcx movq -8(%rbp), %r8 addq $20, %r8 addq $4, %r8 movq -8(%rbp), %r9 addq $20, %r9 addq $8, %r9 leaq L_.str(%rip), %rdi movb $0, %al callq _scanf movq -8(%rbp), %rax movl 20(%rax), %ecx movq -8(%rbp), %rax addl 24(%rax), %ecx movq -8(%rbp), %rax addl 28(%rax), %ecx movq -8(%rbp), %rax movl %ecx, 32(%rax) movq -8(%rbp), %rax cvtsi2sdl 32(%rax), %xmm0 movsd LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero divsd %xmm1, %xmm0 movq -8(%rbp), %rax movsd %xmm0, 40(%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 $288, %rsp ## imm = 0x120 movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -260(%rbp) movq ___stdinp@GOTPCREL(%rip), %rax movq (%rax), %rdx leaq L_.str.1(%rip), %rdi leaq L_.str.2(%rip), %rsi callq _freopen movq ___stdoutp@GOTPCREL(%rip), %rax movq (%rax), %rdx leaq L_.str.3(%rip), %rdi leaq L_.str.4(%rip), %rsi callq _freopen movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdx leaq L_.str.5(%rip), %rdi leaq L_.str.4(%rip), %rsi callq _freopen leaq -256(%rbp), %rax movq %rax, -272(%rbp) movl $0, -276(%rbp) leaq -256(%rbp), %rdi xorl %esi, %esi movl $240, %edx callq _memset leaq L_.str.6(%rip), %rdi callq _puts LBB1_1: ## =>This Inner Loop Header: Depth=1 cmpl $5, -276(%rbp) jge LBB1_6 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 leaq -256(%rbp), %rdi movslq -276(%rbp), %rax imulq $48, %rax, %rax addq %rax, %rdi callq _ReadStuData leaq -256(%rbp), %rsi movslq -276(%rbp), %rax imulq $48, %rax, %rax addq %rax, %rsi addq $10, %rsi leaq -256(%rbp), %rax movslq -276(%rbp), %rcx imulq $48, %rcx, %rcx addq %rcx, %rax movl 32(%rax), %edx leaq -256(%rbp), %rax movslq -276(%rbp), %rcx imulq $48, %rcx, %rcx addq %rcx, %rax movsd 40(%rax), %xmm0 ## xmm0 = mem[0],zero leaq L_.str.7(%rip), %rdi movb $1, %al callq _printf movq -272(%rbp), %rax movl 32(%rax), %eax leaq -256(%rbp), %rcx movslq -276(%rbp), %rdx imulq $48, %rdx, %rdx addq %rdx, %rcx cmpl 32(%rcx), %eax jge LBB1_4 ## %bb.3: ## in Loop: Header=BB1_1 Depth=1 leaq -256(%rbp), %rax movslq -276(%rbp), %rcx imulq $48, %rcx, %rcx addq %rcx, %rax movq %rax, -272(%rbp) LBB1_4: ## in Loop: Header=BB1_1 Depth=1 jmp LBB1_5 LBB1_5: ## in Loop: Header=BB1_1 Depth=1 movl -276(%rbp), %eax addl $1, %eax movl %eax, -276(%rbp) jmp LBB1_1 LBB1_6: movq -272(%rbp), %rsi movq -272(%rbp), %rdx addq $10, %rdx movq -272(%rbp), %rax movl 20(%rax), %ecx movq -272(%rbp), %rax movl 24(%rax), %r8d movq -272(%rbp), %rax movl 28(%rax), %r9d leaq L_.str.8(%rip), %rdi movb $0, %al callq _printf movq ___stdinp@GOTPCREL(%rip), %rax movq (%rax), %rdi callq _fclose movq ___stdoutp@GOTPCREL(%rip), %rax movq (%rax), %rdi callq _fclose movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi callq _fclose movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB1_8 ## %bb.7: xorl %eax, %eax addq $288, %rsp ## imm = 0x120 popq %rbp retq LBB1_8: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%s %s %d %d %d\n" L_.str.1: ## @.str.1 .asciz "1.in" L_.str.2: ## @.str.2 .asciz "r" L_.str.3: ## @.str.3 .asciz "1.out" L_.str.4: ## @.str.4 .asciz "w" L_.str.5: ## @.str.5 .asciz "1.err" L_.str.6: ## @.str.6 .asciz "\345\247\223\345\220\215 \346\200\273\345\210\206 \345\271\263\345\235\207\346\210\220\347\273\251 " L_.str.7: ## @.str.7 .asciz "%s %d %.1lf\n" L_.str.8: ## @.str.8 .asciz "\346\200\273\345\210\206\346\225\260\346\234\200\351\253\230\347\232\204\345\255\246\347\224\237\344\277\241\346\201\257\345\246\202\344\270\213\357\274\232\n%s %s %d %d %d\n" .subsections_via_symbols
the_stack_data/147939.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 _getpid mov x9, sp ; implicit-def: $x8 mov x8, x0 str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf bl _fork str w0, [sp, #8] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf 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 ldr w8, [sp, #8] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: bl _getpid mov x9, sp ; implicit-def: $x8 mov x8, x0 str x8, [x9] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf ldr w9, [sp, #8] ; 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 bl _getppid mov x9, sp ; implicit-def: $x8 mov x8, x0 str x8, [x9] adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf b LBB0_3 LBB0_2: bl _getpid mov x9, sp ; implicit-def: $x8 mov x8, x0 str x8, [x9] adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _printf ldr w9, [sp, #8] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.7@PAGE add x0, x0, l_.str.7@PAGEOFF bl _printf bl _getppid 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 LBB0_3 LBB0_3: mov w0, #0 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "1: el id del proceso main es %d\n" l_.str.1: ; @.str.1 .asciz "2: Este printf saldra duplicado\n" l_.str.2: ; @.str.2 .asciz "3: El id del proceso hijo es %d\n" l_.str.3: ; @.str.3 .asciz "\nPADRE:proceso main con id %d\n" l_.str.4: ; @.str.4 .asciz "PADRE:id del hijo es %d\n" l_.str.5: ; @.str.5 .asciz "PADRE:id del padre del padre %d\n" l_.str.6: ; @.str.6 .asciz "\nHIJO:proceso hijo con id %d\n" l_.str.7: ; @.str.7 .asciz "HIJO:id del hijo es %d\n" l_.str.8: ; @.str.8 .asciz "HIJO:id del padre es %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) callq _getpid movl %eax, %esi leaq L_.str(%rip), %rdi movb $0, %al callq _printf callq _fork movl %eax, -8(%rbp) leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf movl -8(%rbp), %esi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf cmpl $0, -8(%rbp) je LBB0_2 ## %bb.1: callq _getpid movl %eax, %esi leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf movl -8(%rbp), %esi leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf callq _getppid movl %eax, %esi leaq L_.str.5(%rip), %rdi movb $0, %al callq _printf jmp LBB0_3 LBB0_2: callq _getpid movl %eax, %esi leaq L_.str.6(%rip), %rdi movb $0, %al callq _printf movl -8(%rbp), %esi leaq L_.str.7(%rip), %rdi movb $0, %al callq _printf callq _getppid movl %eax, %esi leaq L_.str.8(%rip), %rdi movb $0, %al callq _printf LBB0_3: xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "1: el id del proceso main es %d\n" L_.str.1: ## @.str.1 .asciz "2: Este printf saldra duplicado\n" L_.str.2: ## @.str.2 .asciz "3: El id del proceso hijo es %d\n" L_.str.3: ## @.str.3 .asciz "\nPADRE:proceso main con id %d\n" L_.str.4: ## @.str.4 .asciz "PADRE:id del hijo es %d\n" L_.str.5: ## @.str.5 .asciz "PADRE:id del padre del padre %d\n" L_.str.6: ## @.str.6 .asciz "\nHIJO:proceso hijo con id %d\n" L_.str.7: ## @.str.7 .asciz "HIJO:id del hijo es %d\n" L_.str.8: ## @.str.8 .asciz "HIJO:id del padre es %d\n" .subsections_via_symbols
the_stack_data/173578336.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _strncpy ; -- Begin function strncpy .p2align 2 _strncpy: ; @strncpy .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 str x0, [sp, #32] str x1, [sp, #24] str w2, [sp, #20] ldr x8, [sp, #32] str x8, [sp, #8] str wzr, [sp, #16] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #16] 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 x8, [sp, #24] add x9, x8, #1 str x9, [sp, #24] ldrsb w8, [x8] ldr x9, [sp, #32] add x10, x9, #1 str x10, [sp, #32] strb w8, [x9] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_7 b LBB0_3 LBB0_3: b LBB0_4 LBB0_4: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #16] add w8, w8, #1 str w8, [sp, #16] ldr w9, [sp, #20] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_4 Depth=1 ldr x8, [sp, #32] add x9, x8, #1 str x9, [sp, #32] strb wzr, [x8] b LBB0_4 LBB0_6: ldr x8, [sp, #8] str x8, [sp, #40] b LBB0_10 LBB0_7: ; in Loop: Header=BB0_1 Depth=1 b LBB0_8 LBB0_8: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #16] add w8, w8, #1 str w8, [sp, #16] b LBB0_1 LBB0_9: ldr x8, [sp, #8] str x8, [sp, #40] b LBB0_10 LBB0_10: ldr x0, [sp, #40] 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 _strncpy ## -- Begin function strncpy .p2align 4, 0x90 _strncpy: ## @strncpy .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 %edx, -28(%rbp) movq -16(%rbp), %rax movq %rax, -40(%rbp) movl $0, -32(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movl -32(%rbp), %eax cmpl -28(%rbp), %eax jge LBB0_9 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movq -24(%rbp), %rax movq %rax, %rcx addq $1, %rcx movq %rcx, -24(%rbp) movb (%rax), %al movq -16(%rbp), %rcx movq %rcx, %rdx addq $1, %rdx movq %rdx, -16(%rbp) movb %al, (%rcx) movsbl %al, %eax cmpl $0, %eax jne LBB0_7 ## %bb.3: jmp LBB0_4 LBB0_4: ## =>This Inner Loop Header: Depth=1 movl -32(%rbp), %eax addl $1, %eax movl %eax, -32(%rbp) cmpl -28(%rbp), %eax jge LBB0_6 ## %bb.5: ## in Loop: Header=BB0_4 Depth=1 movq -16(%rbp), %rax movq %rax, %rcx addq $1, %rcx movq %rcx, -16(%rbp) movb $0, (%rax) jmp LBB0_4 LBB0_6: movq -40(%rbp), %rax movq %rax, -8(%rbp) jmp LBB0_10 LBB0_7: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_8 LBB0_8: ## in Loop: Header=BB0_1 Depth=1 movl -32(%rbp), %eax addl $1, %eax movl %eax, -32(%rbp) jmp LBB0_1 LBB0_9: movq -40(%rbp), %rax movq %rax, -8(%rbp) LBB0_10: movq -8(%rbp), %rax popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/93871.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _h ; -- Begin function h .p2align 2 _h: ; @h .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur w0, [x29, #-4] stur x1, [x29, #-16] ldur w8, [x29, #-4] str w8, [sp, #12] ; 4-byte Folded Spill subs w8, w8, #1 cset w8, eq tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: ldr w8, [sp, #12] ; 4-byte Folded Reload subs w8, w8, #5 cset w8, eq tbnz w8, #0, LBB0_6 b LBB0_10 LBB0_2: ldur x9, [x29, #-16] ldr w8, [x9] add x9, x9, #8 stur x9, [x29, #-16] stur w8, [x29, #-20] ldur w8, [x29, #-20] subs w8, w8, #3 cset w8, ne tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: ldur x9, [x29, #-16] ldr w8, [x9] add x9, x9, #8 stur x9, [x29, #-16] str w8, [sp, #24] ldr w8, [sp, #24] subs w8, w8, #4 cset w8, eq tbnz w8, #0, LBB0_5 b LBB0_4 LBB0_4: bl _abort LBB0_5: b LBB0_11 LBB0_6: ldur x9, [x29, #-16] ldr w8, [x9] add x9, x9, #8 stur x9, [x29, #-16] str w8, [sp, #20] ldr w8, [sp, #20] subs w8, w8, #9 cset w8, ne tbnz w8, #0, LBB0_8 b LBB0_7 LBB0_7: ldur x9, [x29, #-16] ldr w8, [x9] add x9, x9, #8 stur x9, [x29, #-16] str w8, [sp, #16] ldr w8, [sp, #16] subs w8, w8, #10 cset w8, eq tbnz w8, #0, LBB0_9 b LBB0_8 LBB0_8: bl _abort LBB0_9: b LBB0_11 LBB0_10: bl _abort LBB0_11: ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _f1 ; -- Begin function f1 .p2align 2 _f1: ; @f1 .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] add x9, sp, #8 add x8, x29, #16 str x8, [x9] ldur w0, [x29, #-4] ldr x1, [sp, #8] bl _h ldur w8, [x29, #-4] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: ldr x8, [sp, #16] subs x8, x8, #2 cset w8, eq tbnz w8, #0, LBB1_3 b LBB1_2 LBB1_2: bl _abort LBB1_3: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _f2 ; -- Begin function f2 .p2align 2 _f2: ; @f2 .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur w0, [x29, #-4] stur w1, [x29, #-8] stur w2, [x29, #-12] str x3, [sp, #8] mov x9, sp add x8, x29, #16 str x8, [x9] ldur w0, [x29, #-4] ldr x1, [sp] bl _h ldur w8, [x29, #-4] subs w8, w8, #5 cset w8, ne tbnz w8, #0, LBB2_4 b LBB2_1 LBB2_1: ldur w8, [x29, #-8] subs w8, w8, #6 cset w8, ne tbnz w8, #0, LBB2_4 b LBB2_2 LBB2_2: ldur w8, [x29, #-12] subs w8, w8, #7 cset w8, ne tbnz w8, #0, LBB2_4 b LBB2_3 LBB2_3: ldr x8, [sp, #8] subs x8, x8, #8 cset w8, eq tbnz w8, #0, LBB2_5 b LBB2_4 LBB2_4: bl _abort LBB2_5: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #0 stur w8, [x29, #-8] ; 4-byte Folded Spill stur wzr, [x29, #-4] mov x9, sp mov x8, #3 str x8, [x9] mov x8, #4 str x8, [x9, #8] mov w0, #1 mov x1, #2 bl _f1 mov x9, sp mov x8, #9 str x8, [x9] mov x8, #10 str x8, [x9, #8] mov w0, #5 mov w1, #6 mov w2, #7 mov x3, #8 bl _f2 ldur w0, [x29, #-8] ; 4-byte Folded Reload ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _h ## -- Begin function h .p2align 4, 0x90 _h: ## @h .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $112, %rsp movl %edi, -4(%rbp) movq %rsi, -16(%rbp) movl -4(%rbp), %eax movl %eax, -20(%rbp) ## 4-byte Spill subl $1, %eax je LBB0_1 jmp LBB0_23 LBB0_23: movl -20(%rbp), %eax ## 4-byte Reload subl $5, %eax je LBB0_11 jmp LBB0_21 LBB0_1: movq -16(%rbp), %rax movq %rax, -32(%rbp) ## 8-byte Spill movl (%rax), %eax movl %eax, -24(%rbp) ## 4-byte Spill cmpl $40, %eax ja LBB0_3 ## %bb.2: movq -32(%rbp), %rcx ## 8-byte Reload movl -24(%rbp), %edx ## 4-byte Reload movslq %edx, %rax addq 16(%rcx), %rax addl $8, %edx movl %edx, (%rcx) movq %rax, -40(%rbp) ## 8-byte Spill jmp LBB0_4 LBB0_3: movq -32(%rbp), %rcx ## 8-byte Reload movq 8(%rcx), %rax movq %rax, %rdx addq $8, %rdx movq %rdx, 8(%rcx) movq %rax, -40(%rbp) ## 8-byte Spill LBB0_4: movq -40(%rbp), %rax ## 8-byte Reload cmpl $3, (%rax) jne LBB0_9 ## %bb.5: movq -16(%rbp), %rax movq %rax, -56(%rbp) ## 8-byte Spill movl (%rax), %eax movl %eax, -44(%rbp) ## 4-byte Spill cmpl $40, %eax ja LBB0_7 ## %bb.6: movq -56(%rbp), %rcx ## 8-byte Reload movl -44(%rbp), %edx ## 4-byte Reload movslq %edx, %rax addq 16(%rcx), %rax addl $8, %edx movl %edx, (%rcx) movq %rax, -64(%rbp) ## 8-byte Spill jmp LBB0_8 LBB0_7: movq -56(%rbp), %rcx ## 8-byte Reload movq 8(%rcx), %rax movq %rax, %rdx addq $8, %rdx movq %rdx, 8(%rcx) movq %rax, -64(%rbp) ## 8-byte Spill LBB0_8: movq -64(%rbp), %rax ## 8-byte Reload cmpl $4, (%rax) je LBB0_10 LBB0_9: callq _abort LBB0_10: jmp LBB0_22 LBB0_11: movq -16(%rbp), %rax movq %rax, -80(%rbp) ## 8-byte Spill movl (%rax), %eax movl %eax, -68(%rbp) ## 4-byte Spill cmpl $40, %eax ja LBB0_13 ## %bb.12: movq -80(%rbp), %rcx ## 8-byte Reload movl -68(%rbp), %edx ## 4-byte Reload movslq %edx, %rax addq 16(%rcx), %rax addl $8, %edx movl %edx, (%rcx) movq %rax, -88(%rbp) ## 8-byte Spill jmp LBB0_14 LBB0_13: movq -80(%rbp), %rcx ## 8-byte Reload movq 8(%rcx), %rax movq %rax, %rdx addq $8, %rdx movq %rdx, 8(%rcx) movq %rax, -88(%rbp) ## 8-byte Spill LBB0_14: movq -88(%rbp), %rax ## 8-byte Reload cmpl $9, (%rax) jne LBB0_19 ## %bb.15: movq -16(%rbp), %rax movq %rax, -104(%rbp) ## 8-byte Spill movl (%rax), %eax movl %eax, -92(%rbp) ## 4-byte Spill cmpl $40, %eax ja LBB0_17 ## %bb.16: movq -104(%rbp), %rcx ## 8-byte Reload movl -92(%rbp), %edx ## 4-byte Reload movslq %edx, %rax addq 16(%rcx), %rax addl $8, %edx movl %edx, (%rcx) movq %rax, -112(%rbp) ## 8-byte Spill jmp LBB0_18 LBB0_17: movq -104(%rbp), %rcx ## 8-byte Reload movq 8(%rcx), %rax movq %rax, %rdx addq $8, %rdx movq %rdx, 8(%rcx) movq %rax, -112(%rbp) ## 8-byte Spill LBB0_18: movq -112(%rbp), %rax ## 8-byte Reload cmpl $10, (%rax) je LBB0_20 LBB0_19: callq _abort LBB0_20: jmp LBB0_22 LBB0_21: callq _abort LBB0_22: addq $112, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _f1 ## -- Begin function f1 .p2align 4, 0x90 _f1: ## @f1 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $224, %rsp testb %al, %al je LBB1_7 ## %bb.6: movaps %xmm0, -176(%rbp) movaps %xmm1, -160(%rbp) movaps %xmm2, -144(%rbp) movaps %xmm3, -128(%rbp) movaps %xmm4, -112(%rbp) movaps %xmm5, -96(%rbp) movaps %xmm6, -80(%rbp) movaps %xmm7, -64(%rbp) LBB1_7: movq %r9, -184(%rbp) movq %r8, -192(%rbp) movq %rcx, -200(%rbp) movq %rdx, -208(%rbp) movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl %edi, -36(%rbp) movq %rsi, -48(%rbp) leaq -32(%rbp), %rax leaq -224(%rbp), %rcx movq %rcx, 16(%rax) leaq 16(%rbp), %rcx movq %rcx, 8(%rax) movl $48, 4(%rax) movl $16, (%rax) movl -36(%rbp), %edi leaq -32(%rbp), %rsi callq _h cmpl $1, -36(%rbp) jne LBB1_2 ## %bb.1: cmpq $2, -48(%rbp) je LBB1_3 LBB1_2: callq _abort LBB1_3: leaq -32(%rbp), %rax movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB1_5 ## %bb.4: addq $224, %rsp popq %rbp retq LBB1_5: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _f2 ## -- Begin function f2 .p2align 4, 0x90 _f2: ## @f2 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $240, %rsp testb %al, %al je LBB2_9 ## %bb.8: movaps %xmm0, -192(%rbp) movaps %xmm1, -176(%rbp) movaps %xmm2, -160(%rbp) movaps %xmm3, -144(%rbp) movaps %xmm4, -128(%rbp) movaps %xmm5, -112(%rbp) movaps %xmm6, -96(%rbp) movaps %xmm7, -80(%rbp) LBB2_9: movq %r9, -200(%rbp) movq %r8, -208(%rbp) movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl %edi, -36(%rbp) movl %esi, -40(%rbp) movl %edx, -44(%rbp) movq %rcx, -56(%rbp) leaq -32(%rbp), %rax leaq -240(%rbp), %rcx movq %rcx, 16(%rax) leaq 16(%rbp), %rcx movq %rcx, 8(%rax) movl $48, 4(%rax) movl $32, (%rax) movl -36(%rbp), %edi leaq -32(%rbp), %rsi callq _h cmpl $5, -36(%rbp) jne LBB2_4 ## %bb.1: cmpl $6, -40(%rbp) jne LBB2_4 ## %bb.2: cmpl $7, -44(%rbp) jne LBB2_4 ## %bb.3: cmpq $8, -56(%rbp) je LBB2_5 LBB2_4: callq _abort LBB2_5: leaq -32(%rbp), %rax movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB2_7 ## %bb.6: addq $240, %rsp popq %rbp retq LBB2_7: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) movl $1, %edi movl $2, %esi movl $3, %edx movl $4, %ecx movb $0, %al callq _f1 movl $5, %edi movl $6, %esi movl $7, %edx movl $8, %ecx movl $9, %r8d movl $10, %r9d movb $0, %al callq _f2 xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/181393010.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] str wzr, [sp, #24] str w0, [sp, #20] str x1, [sp, #8] mov w8, #2 str w8, [sp, #4] ldr w9, [sp, #4] mov w8, #4 mul w9, w8, w9 sub x8, x29, #18 add x9, x8, w9, sxtw mov w8, #65 strb w8, [x9, #2] 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, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -24(%rbp) movl %edi, -28(%rbp) movq %rsi, -40(%rbp) movl $2, -44(%rbp) movl -44(%rbp), %eax shll $2, %eax cltq movb $65, -16(%rbp,%rax) movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_2 ## %bb.1: xorl %eax, %eax addq $48, %rsp popq %rbp retq LBB0_2: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/685325.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _QUEUEFULL ; -- Begin function QUEUEFULL .p2align 2 _QUEUEFULL: ; @QUEUEFULL .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp] ldr x8, [sp] ldr w8, [x8, #4] add w8, w8, #1 ldr x9, [sp] ldr w9, [x9] subs w8, w8, w9 cset w8, eq tbnz w8, #0, LBB0_3 b LBB0_1 LBB0_1: ldr x8, [sp] ldr w8, [x8] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_4 b LBB0_2 LBB0_2: ldr x8, [sp] ldr w8, [x8, #4] ldr x9, [sp] ldr w9, [x9, #8] subs w9, w9, #1 subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: mov w8, #1 str w8, [sp, #12] b LBB0_5 LBB0_4: mov w8, #-1 str w8, [sp, #12] b LBB0_5 LBB0_5: ldr w0, [sp, #12] add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _QUEUEEMPTY ; -- Begin function QUEUEEMPTY .p2align 2 _QUEUEEMPTY: ; @QUEUEEMPTY .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp] ldr x8, [sp] ldr w8, [x8] adds w8, w8, #1 cset w8, ne tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: mov w8, #1 str w8, [sp, #12] b LBB1_3 LBB1_2: mov w8, #-1 str w8, [sp, #12] b LBB1_3 LBB1_3: ldr w0, [sp, #12] add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _ENQUEUE ; -- Begin function ENQUEUE .p2align 2 _ENQUEUE: ; @ENQUEUE .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #8] str w1, [sp, #4] ldr x0, [sp, #8] bl _QUEUEFULL subs w8, w0, #1 cset w8, ne tbnz w8, #0, LBB2_2 b LBB2_1 LBB2_1: adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf b LBB2_8 LBB2_2: ldr x8, [sp, #8] ldr w8, [x8] adds w8, w8, #1 cset w8, ne tbnz w8, #0, LBB2_4 b LBB2_3 LBB2_3: ldr x8, [sp, #8] str wzr, [x8] b LBB2_4 LBB2_4: ldr x8, [sp, #8] ldr w8, [x8, #4] ldr x9, [sp, #8] ldr w9, [x9, #8] subs w9, w9, #1 subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB2_6 b LBB2_5 LBB2_5: ldr x8, [sp, #8] str wzr, [x8, #4] b LBB2_7 LBB2_6: ldr x9, [sp, #8] ldr w8, [x9, #4] add w8, w8, #1 str w8, [x9, #4] b LBB2_7 LBB2_7: ldr w8, [sp, #4] ldr x9, [sp, #8] add x9, x9, #12 ldr x10, [sp, #8] ldrsw x10, [x10, #4] str w8, [x9, x10, lsl #2] b LBB2_8 LBB2_8: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _DEQUEUE ; -- Begin function DEQUEUE .p2align 2 _DEQUEUE: ; @DEQUEUE .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 _QUEUEEMPTY subs w8, w0, #1 cset w8, ne tbnz w8, #0, LBB3_2 b LBB3_1 LBB3_1: adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf b LBB3_9 LBB3_2: ldr x8, [sp, #8] add x8, x8, #12 ldr x9, [sp, #8] ldrsw x9, [x9] 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 ldr x8, [sp, #8] ldr w8, [x8] ldr x9, [sp, #8] ldr w9, [x9, #4] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB3_4 b LBB3_3 LBB3_3: ldr x9, [sp, #8] mov w8, #-1 str w8, [x9, #4] ldr x9, [sp, #8] str w8, [x9] b LBB3_8 LBB3_4: ldr x8, [sp, #8] ldr w8, [x8] ldr x9, [sp, #8] ldr w9, [x9, #8] subs w9, w9, #1 subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB3_6 b LBB3_5 LBB3_5: ldr x8, [sp, #8] str wzr, [x8] b LBB3_7 LBB3_6: ldr x8, [sp, #8] ldr w8, [x8] add w8, w8, #1 ldr x9, [sp, #8] str w8, [x9] b LBB3_7 LBB3_7: b LBB3_8 LBB3_8: b LBB3_9 LBB3_9: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: stp 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, #40048 adrp x16, ___chkstk_darwin@GOTPAGE ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF] blr x16 sub sp, sp, #9, lsl #12 ; =36864 sub sp, sp, #3184 stur wzr, [x29, #-20] add x8, sp, #32 mov w9, #-1 str w9, [sp, #32] str w9, [sp, #36] str wzr, [sp, #24] add x8, x8, #8 mov x9, sp str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _scanf b LBB4_1 LBB4_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #24] subs w8, w8, #1 cset w8, ge tbnz w8, #0, LBB4_10 b LBB4_2 LBB4_2: ; in Loop: Header=BB4_1 Depth=1 mov x9, sp add x8, sp, #31 str x8, [x9] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _scanf ldrsb w8, [sp, #31] subs w8, w8, #100 ; kill: def $x8 killed $w8 str x8, [sp, #8] ; 8-byte Folded Spill subs x8, x8, #16 cset w8, hi tbnz w8, #0, LBB4_9 ; %bb.3: ; in Loop: Header=BB4_1 Depth=1 ldr x11, [sp, #8] ; 8-byte Folded Reload adrp x10, lJTI4_0@PAGE add x10, x10, lJTI4_0@PAGEOFF Ltmp2: adr x8, Ltmp2 ldrsw x9, [x10, x11, lsl #2] add x8, x8, x9 br x8 LBB4_4: ; in Loop: Header=BB4_1 Depth=1 mov x9, sp add x8, sp, #20 str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _scanf ldr w1, [sp, #20] add x0, sp, #32 bl _ENQUEUE b LBB4_9 LBB4_5: ; in Loop: Header=BB4_1 Depth=1 add x0, sp, #32 bl _DEQUEUE b LBB4_9 LBB4_6: ; in Loop: Header=BB4_1 Depth=1 add x0, sp, #32 bl _QUEUEFULL mov w8, #0 subs w10, w8, w0 mov x9, sp ; implicit-def: $x8 mov x8, x10 str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf b LBB4_9 LBB4_7: ; in Loop: Header=BB4_1 Depth=1 add x0, sp, #32 bl _QUEUEEMPTY mov w8, #0 subs w10, w8, w0 mov x9, sp ; implicit-def: $x8 mov x8, x10 str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf b LBB4_9 LBB4_8: ; in Loop: Header=BB4_1 Depth=1 ldr w8, [sp, #24] add w8, w8, #1 str w8, [sp, #24] b LBB4_9 LBB4_9: ; in Loop: Header=BB4_1 Depth=1 b LBB4_1 LBB4_10: mov w0, #0 add sp, sp, #9, lsl #12 ; =36864 add sp, sp, #3184 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x28, x27, [sp], #32 ; 16-byte Folded Reload ret .cfi_endproc .p2align 2 lJTI4_0: .long LBB4_5-Ltmp2 .long LBB4_7-Ltmp2 .long LBB4_6-Ltmp2 .long LBB4_9-Ltmp2 .long LBB4_9-Ltmp2 .long LBB4_4-Ltmp2 .long LBB4_9-Ltmp2 .long LBB4_9-Ltmp2 .long LBB4_9-Ltmp2 .long LBB4_9-Ltmp2 .long LBB4_9-Ltmp2 .long LBB4_9-Ltmp2 .long LBB4_9-Ltmp2 .long LBB4_9-Ltmp2 .long LBB4_9-Ltmp2 .long LBB4_9-Ltmp2 .long LBB4_8-Ltmp2 ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "-1\n" l_.str.1: ; @.str.1 .asciz "%d\n" l_.str.2: ; @.str.2 .asciz "%d" l_.str.3: ; @.str.3 .asciz "%c" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _QUEUEFULL ## -- Begin function QUEUEFULL .p2align 4, 0x90 _QUEUEFULL: ## @QUEUEFULL .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -16(%rbp) movq -16(%rbp), %rax movl 4(%rax), %eax addl $1, %eax movq -16(%rbp), %rcx cmpl (%rcx), %eax je LBB0_3 ## %bb.1: movq -16(%rbp), %rax cmpl $0, (%rax) jne LBB0_4 ## %bb.2: movq -16(%rbp), %rax movl 4(%rax), %eax movq -16(%rbp), %rcx movl 8(%rcx), %ecx subl $1, %ecx cmpl %ecx, %eax jne LBB0_4 LBB0_3: movl $1, -4(%rbp) jmp LBB0_5 LBB0_4: movl $-1, -4(%rbp) LBB0_5: movl -4(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .globl _QUEUEEMPTY ## -- Begin function QUEUEEMPTY .p2align 4, 0x90 _QUEUEEMPTY: ## @QUEUEEMPTY .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -16(%rbp) movq -16(%rbp), %rax cmpl $-1, (%rax) jne LBB1_2 ## %bb.1: movl $1, -4(%rbp) jmp LBB1_3 LBB1_2: movl $-1, -4(%rbp) LBB1_3: movl -4(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .globl _ENQUEUE ## -- Begin function ENQUEUE .p2align 4, 0x90 _ENQUEUE: ## @ENQUEUE .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) movq -8(%rbp), %rdi callq _QUEUEFULL cmpl $1, %eax jne LBB2_2 ## %bb.1: leaq L_.str(%rip), %rdi movb $0, %al callq _printf jmp LBB2_8 LBB2_2: movq -8(%rbp), %rax cmpl $-1, (%rax) jne LBB2_4 ## %bb.3: movq -8(%rbp), %rax movl $0, (%rax) LBB2_4: movq -8(%rbp), %rax movl 4(%rax), %eax movq -8(%rbp), %rcx movl 8(%rcx), %ecx subl $1, %ecx cmpl %ecx, %eax jne LBB2_6 ## %bb.5: movq -8(%rbp), %rax movl $0, 4(%rax) jmp LBB2_7 LBB2_6: movq -8(%rbp), %rax movl 4(%rax), %ecx addl $1, %ecx movl %ecx, 4(%rax) LBB2_7: movl -12(%rbp), %edx movq -8(%rbp), %rax movq -8(%rbp), %rcx movslq 4(%rcx), %rcx movl %edx, 12(%rax,%rcx,4) LBB2_8: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _DEQUEUE ## -- Begin function DEQUEUE .p2align 4, 0x90 _DEQUEUE: ## @DEQUEUE .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) movq -8(%rbp), %rdi callq _QUEUEEMPTY cmpl $1, %eax jne LBB3_2 ## %bb.1: leaq L_.str(%rip), %rdi movb $0, %al callq _printf jmp LBB3_9 LBB3_2: movq -8(%rbp), %rax movq -8(%rbp), %rcx movslq (%rcx), %rcx movl 12(%rax,%rcx,4), %esi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf movq -8(%rbp), %rax movl (%rax), %eax movq -8(%rbp), %rcx cmpl 4(%rcx), %eax jne LBB3_4 ## %bb.3: movq -8(%rbp), %rax movl $-1, 4(%rax) movq -8(%rbp), %rax movl $-1, (%rax) jmp LBB3_8 LBB3_4: movq -8(%rbp), %rax movl (%rax), %eax movq -8(%rbp), %rcx movl 8(%rcx), %ecx subl $1, %ecx cmpl %ecx, %eax jne LBB3_6 ## %bb.5: movq -8(%rbp), %rax movl $0, (%rax) jmp LBB3_7 LBB3_6: movq -8(%rbp), %rax movl (%rax), %ecx addl $1, %ecx movq -8(%rbp), %rax movl %ecx, (%rax) LBB3_7: jmp LBB3_8 LBB3_8: jmp LBB3_9 LBB3_9: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl $40048, %eax ## imm = 0x9C70 callq ____chkstk_darwin subq %rax, %rsp movl $0, -4(%rbp) movl $-1, -40016(%rbp) movl $-1, -40012(%rbp) movl $0, -40024(%rbp) leaq -40016(%rbp), %rsi addq $8, %rsi leaq L_.str.2(%rip), %rdi movb $0, %al callq _scanf LBB4_1: ## =>This Inner Loop Header: Depth=1 cmpl $1, -40024(%rbp) jge LBB4_9 ## %bb.2: ## in Loop: Header=BB4_1 Depth=1 leaq L_.str.3(%rip), %rdi xorl %eax, %eax ## kill: def $al killed $al killed $eax leaq -40017(%rbp), %rsi callq _scanf movsbl -40017(%rbp), %eax addl $-100, %eax movl %eax, %ecx movq %rcx, -40040(%rbp) ## 8-byte Spill subl $16, %eax ja LBB4_8 ## %bb.10: ## in Loop: Header=BB4_1 Depth=1 movq -40040(%rbp), %rax ## 8-byte Reload leaq LJTI4_0(%rip), %rcx movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax LBB4_3: ## in Loop: Header=BB4_1 Depth=1 leaq L_.str.2(%rip), %rdi leaq -40028(%rbp), %rsi movb $0, %al callq _scanf movl -40028(%rbp), %esi leaq -40016(%rbp), %rdi callq _ENQUEUE jmp LBB4_8 LBB4_4: ## in Loop: Header=BB4_1 Depth=1 leaq -40016(%rbp), %rdi callq _DEQUEUE jmp LBB4_8 LBB4_5: ## in Loop: Header=BB4_1 Depth=1 leaq -40016(%rbp), %rdi callq _QUEUEFULL xorl %esi, %esi subl %eax, %esi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf jmp LBB4_8 LBB4_6: ## in Loop: Header=BB4_1 Depth=1 leaq -40016(%rbp), %rdi callq _QUEUEEMPTY xorl %esi, %esi subl %eax, %esi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf jmp LBB4_8 LBB4_7: ## in Loop: Header=BB4_1 Depth=1 movl -40024(%rbp), %eax addl $1, %eax movl %eax, -40024(%rbp) LBB4_8: ## in Loop: Header=BB4_1 Depth=1 jmp LBB4_1 LBB4_9: xorl %eax, %eax addq $40048, %rsp ## imm = 0x9C70 popq %rbp retq .cfi_endproc .p2align 2, 0x90 .data_region jt32 .set L4_0_set_4, LBB4_4-LJTI4_0 .set L4_0_set_6, LBB4_6-LJTI4_0 .set L4_0_set_5, LBB4_5-LJTI4_0 .set L4_0_set_8, LBB4_8-LJTI4_0 .set L4_0_set_3, LBB4_3-LJTI4_0 .set L4_0_set_7, LBB4_7-LJTI4_0 LJTI4_0: .long L4_0_set_4 .long L4_0_set_6 .long L4_0_set_5 .long L4_0_set_8 .long L4_0_set_8 .long L4_0_set_3 .long L4_0_set_8 .long L4_0_set_8 .long L4_0_set_8 .long L4_0_set_8 .long L4_0_set_8 .long L4_0_set_8 .long L4_0_set_8 .long L4_0_set_8 .long L4_0_set_8 .long L4_0_set_8 .long L4_0_set_7 .end_data_region ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "-1\n" L_.str.1: ## @.str.1 .asciz "%d\n" L_.str.2: ## @.str.2 .asciz "%d" L_.str.3: ## @.str.3 .asciz "%c" .subsections_via_symbols
the_stack_data/193894122.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] mov w8, #2 str w8, [sp, #12] ldrsw x9, [sp, #12] add x8, sp, #32 ldr x8, [x8, x9, lsl #3] str x8, [sp, #16] ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: bl ___stack_chk_fail LBB0_2: mov w0, #0 ldp x29, x30, [sp, #80] ; 16-byte Folded Reload add sp, sp, #96 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $80, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -52(%rbp) movl $2, -68(%rbp) movslq -68(%rbp), %rax movq -48(%rbp,%rax,8), %rax movq %rax, -64(%rbp) movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_2 ## %bb.1: xorl %eax, %eax addq $80, %rsp popq %rbp retq LBB0_2: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/211081848.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _banana ; -- Begin function banana .p2align 2 _banana: ; @banana .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, _buf@GOTPAGE ldr x0, [x0, _buf@GOTPAGEOFF] mov w1, #1 bl _longjmp .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, _buf@GOTPAGE ldr x0, [x0, _buf@GOTPAGEOFF] bl _setjmp subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf b LBB1_3 LBB1_2: adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf bl _banana b LBB1_3 LBB1_3: mov w0, #0 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "in banana() \n" .comm _buf,192,2 ; @buf l_.str.1: ; @.str.1 .asciz "back in main \n" l_.str.2: ; @.str.2 .asciz "first time throught\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _banana ## -- Begin function banana .p2align 4, 0x90 _banana: ## @banana .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 xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _printf movq _buf@GOTPCREL(%rip), %rdi movl $1, %esi callq _longjmp .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) movq _buf@GOTPCREL(%rip), %rdi callq _setjmp cmpl $0, %eax je LBB1_2 ## %bb.1: leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf jmp LBB1_3 LBB1_2: leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf callq _banana LBB1_3: xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "in banana() \n" .comm _buf,148,4 ## @buf L_.str.1: ## @.str.1 .asciz "back in main \n" L_.str.2: ## @.str.2 .asciz "first time throught\n" .subsections_via_symbols
the_stack_data/206392332.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __TEXT,__const .globl _xt804_help_text ; @xt804_help_text _xt804_help_text: .asciz "Welcome to MicroPython!\n\nFor online help please visit https://micropython.org/help/.\n\nFor access to the hardware use the 'machine' module. XT804 specific commands\nare in the 'xt804' module.\n\nQuick overview of some objects:\n machine.Pin(pin) -- get a pin, eg machine.Pin(0)\n machine.Pin(pin, m, [p]) -- get a pin and configure it for IO mode m, pull mode p\n methods: init(..), value([v]), high(), low(), irq(handler)\n machine.ADC(pin) -- make an analog object from a pin\n methods: read_u16()\n machine.PWM(pin) -- make a PWM object from a pin\n methods: deinit(), freq([f]), duty_u16([d]), duty_ns([d])\n machine.I2C(id) -- create an I2C object (id=0,1)\n methods: readfrom(addr, buf, stop=True), writeto(addr, buf, stop=True)\n readfrom_mem(addr, memaddr, arg), writeto_mem(addr, memaddr, arg)\n machine.SPI(id, baudrate=1000000) -- create an SPI object (id=0,1)\n methods: read(nbytes, write=0x00), write(buf), write_readinto(wr_buf, rd_buf)\n machine.Timer(freq, callback) -- create a software timer object\n eg: machine.Timer(freq=1, callback=lambda t:print(t))\n\nPins are numbered 0-29, and 26-29 have ADC capabilities\nPin IO modes are: Pin.IN, Pin.OUT, Pin.ALT\nPin pull modes are: Pin.PULL_UP, Pin.PULL_DOWN\n\nUseful control commands:\n CTRL-C -- interrupt a running program\n CTRL-D -- on a blank line, do a soft reset of the board\n CTRL-E -- on a blank line, enter paste mode\n\nFor further help on a specific object, type help(obj)\nFor a list of available modules, type help('modules')\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __TEXT,__const .globl _xt804_help_text ## @xt804_help_text .p2align 4 _xt804_help_text: .asciz "Welcome to MicroPython!\n\nFor online help please visit https://micropython.org/help/.\n\nFor access to the hardware use the 'machine' module. XT804 specific commands\nare in the 'xt804' module.\n\nQuick overview of some objects:\n machine.Pin(pin) -- get a pin, eg machine.Pin(0)\n machine.Pin(pin, m, [p]) -- get a pin and configure it for IO mode m, pull mode p\n methods: init(..), value([v]), high(), low(), irq(handler)\n machine.ADC(pin) -- make an analog object from a pin\n methods: read_u16()\n machine.PWM(pin) -- make a PWM object from a pin\n methods: deinit(), freq([f]), duty_u16([d]), duty_ns([d])\n machine.I2C(id) -- create an I2C object (id=0,1)\n methods: readfrom(addr, buf, stop=True), writeto(addr, buf, stop=True)\n readfrom_mem(addr, memaddr, arg), writeto_mem(addr, memaddr, arg)\n machine.SPI(id, baudrate=1000000) -- create an SPI object (id=0,1)\n methods: read(nbytes, write=0x00), write(buf), write_readinto(wr_buf, rd_buf)\n machine.Timer(freq, callback) -- create a software timer object\n eg: machine.Timer(freq=1, callback=lambda t:print(t))\n\nPins are numbered 0-29, and 26-29 have ADC capabilities\nPin IO modes are: Pin.IN, Pin.OUT, Pin.ALT\nPin pull modes are: Pin.PULL_UP, Pin.PULL_DOWN\n\nUseful control commands:\n CTRL-C -- interrupt a running program\n CTRL-D -- on a blank line, do a soft reset of the board\n CTRL-E -- on a blank line, enter paste mode\n\nFor further help on a specific object, type help(obj)\nFor a list of available modules, type help('modules')\n" .subsections_via_symbols
the_stack_data/93888621.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 adrp x8, _x_2@GOTPAGE ldr x8, [x8, _x_2@GOTPAGEOFF] str x8, [sp, #40] ; 8-byte Folded Spill adrp x8, _x_3@GOTPAGE ldr x8, [x8, _x_3@GOTPAGEOFF] str x8, [sp, #48] ; 8-byte Folded Spill adrp x8, _x_1@GOTPAGE ldr x8, [x8, _x_1@GOTPAGEOFF] str x8, [sp, #56] ; 8-byte Folded Spill adrp x8, _x_0@GOTPAGE ldr x8, [x8, _x_0@GOTPAGEOFF] str x8, [sp, #64] ; 8-byte Folded Spill str wzr, [sp, #92] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #48] ; 8-byte Folded Reload ldr x9, [sp, #40] ; 8-byte Folded Reload ldr s0, [x9] fcvt d1, s0 fmov d0, #3.00000000 fadd d0, d0, d1 ldr s1, [x8] fcvt d2, s1 fmov d1, #2.00000000 fadd d1, d1, d2 fcmp d0, d1 cset w8, le tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #40] ; 8-byte Folded Reload ldr s0, [x8] fcvt d1, s0 fmov d0, #3.00000000 fadd d0, d0, d1 str d0, [sp, #32] ; 8-byte Folded Spill b LBB0_4 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #48] ; 8-byte Folded Reload ldr s0, [x8] fcvt d1, s0 fmov d0, #2.00000000 fadd d0, d0, d1 str d0, [sp, #32] ; 8-byte Folded Spill b LBB0_4 LBB0_4: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #48] ; 8-byte Folded Reload ldr x9, [sp, #56] ; 8-byte Folded Reload ldr d0, [sp, #32] ; 8-byte Folded Reload fcvt s0, d0 str s0, [sp, #88] ldr s0, [x9] fcvt d1, s0 fmov d0, #10.00000000 fadd d0, d0, d1 ldr s1, [x8] fcvt d2, s1 fmov d1, #6.00000000 fadd d1, d1, d2 fcmp d0, d1 cset w8, le tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #56] ; 8-byte Folded Reload ldr s0, [x8] fcvt d1, s0 fmov d0, #10.00000000 fadd d0, d0, d1 str d0, [sp, #24] ; 8-byte Folded Spill b LBB0_7 LBB0_6: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #48] ; 8-byte Folded Reload ldr s0, [x8] fcvt d1, s0 fmov d0, #6.00000000 fadd d0, d0, d1 str d0, [sp, #24] ; 8-byte Folded Spill b LBB0_7 LBB0_7: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #40] ; 8-byte Folded Reload ldr x9, [sp, #64] ; 8-byte Folded Reload ldr d0, [sp, #24] ; 8-byte Folded Reload fcvt s0, d0 str s0, [sp, #84] ldr s0, [x9] fcvt d1, s0 fmov d0, #5.00000000 fadd d0, d0, d1 ldr s1, [x8] fcvt d2, s1 fmov d1, #15.00000000 fadd d1, d1, d2 fcmp d0, d1 cset w8, le tbnz w8, #0, LBB0_9 b LBB0_8 LBB0_8: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #64] ; 8-byte Folded Reload ldr s0, [x8] fcvt d1, s0 fmov d0, #5.00000000 fadd d0, d0, d1 str d0, [sp, #16] ; 8-byte Folded Spill b LBB0_10 LBB0_9: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #40] ; 8-byte Folded Reload ldr s0, [x8] fcvt d1, s0 fmov d0, #15.00000000 fadd d0, d0, d1 str d0, [sp, #16] ; 8-byte Folded Spill b LBB0_10 LBB0_10: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #56] ; 8-byte Folded Reload ldr x9, [sp, #64] ; 8-byte Folded Reload ldr d0, [sp, #16] ; 8-byte Folded Reload fcvt s0, d0 str s0, [sp, #80] ldr s0, [x9] fcvt d1, s0 fmov d0, #11.00000000 fadd d0, d0, d1 ldr s1, [x8] fcvt d2, s1 fmov d1, #15.00000000 fadd d1, d1, d2 fcmp d0, d1 cset w8, le tbnz w8, #0, LBB0_12 b LBB0_11 LBB0_11: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #64] ; 8-byte Folded Reload ldr s0, [x8] fcvt d1, s0 fmov d0, #11.00000000 fadd d0, d0, d1 str d0, [sp, #8] ; 8-byte Folded Spill b LBB0_13 LBB0_12: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #56] ; 8-byte Folded Reload ldr s0, [x8] fcvt d1, s0 fmov d0, #15.00000000 fadd d0, d0, d1 str d0, [sp, #8] ; 8-byte Folded Spill b LBB0_13 LBB0_13: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #48] ; 8-byte Folded Reload ldr x9, [sp, #40] ; 8-byte Folded Reload ldr x10, [sp, #56] ; 8-byte Folded Reload ldr x11, [sp, #64] ; 8-byte Folded Reload ldr d0, [sp, #8] ; 8-byte Folded Reload fcvt s0, d0 str s0, [sp, #76] ldr s0, [sp, #88] str s0, [x11] ldr s0, [sp, #84] str s0, [x10] ldr s0, [sp, #80] str s0, [x9] ldr s0, [sp, #76] str s0, [x8] b LBB0_1 .cfi_endproc ; -- End function .comm _x_2,4,2 ; @x_2 .comm _x_3,4,2 ; @x_3 .comm _x_1,4,2 ; @x_1 .comm _x_0,4,2 ; @x_0 .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 0x4000000000000000 ## double 2 LCPI0_1: .quad 0x4008000000000000 ## double 3 LCPI0_2: .quad 0x4018000000000000 ## double 6 LCPI0_3: .quad 0x4024000000000000 ## double 10 LCPI0_4: .quad 0x402e000000000000 ## double 15 LCPI0_5: .quad 0x4014000000000000 ## double 5 LCPI0_6: .quad 0x4026000000000000 ## double 11 .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 movl $0, -4(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movq _x_2@GOTPCREL(%rip), %rax movss (%rax), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm1 movsd LCPI0_1(%rip), %xmm0 ## xmm0 = mem[0],zero addsd %xmm1, %xmm0 movq _x_3@GOTPCREL(%rip), %rax movss (%rax), %xmm1 ## xmm1 = mem[0],zero,zero,zero cvtss2sd %xmm1, %xmm2 movsd LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero addsd %xmm2, %xmm1 ucomisd %xmm1, %xmm0 jbe LBB0_3 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movq _x_2@GOTPCREL(%rip), %rax movss (%rax), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm1 movsd LCPI0_1(%rip), %xmm0 ## xmm0 = mem[0],zero addsd %xmm1, %xmm0 movsd %xmm0, -32(%rbp) ## 8-byte Spill jmp LBB0_4 LBB0_3: ## in Loop: Header=BB0_1 Depth=1 movq _x_3@GOTPCREL(%rip), %rax movss (%rax), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm1 movsd LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero addsd %xmm1, %xmm0 movsd %xmm0, -32(%rbp) ## 8-byte Spill LBB0_4: ## in Loop: Header=BB0_1 Depth=1 movsd -32(%rbp), %xmm0 ## 8-byte Reload ## xmm0 = mem[0],zero cvtsd2ss %xmm0, %xmm0 movss %xmm0, -8(%rbp) movq _x_1@GOTPCREL(%rip), %rax movss (%rax), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm1 movsd LCPI0_3(%rip), %xmm0 ## xmm0 = mem[0],zero addsd %xmm1, %xmm0 movq _x_3@GOTPCREL(%rip), %rax movss (%rax), %xmm1 ## xmm1 = mem[0],zero,zero,zero cvtss2sd %xmm1, %xmm2 movsd LCPI0_2(%rip), %xmm1 ## xmm1 = mem[0],zero addsd %xmm2, %xmm1 ucomisd %xmm1, %xmm0 jbe LBB0_6 ## %bb.5: ## in Loop: Header=BB0_1 Depth=1 movq _x_1@GOTPCREL(%rip), %rax movss (%rax), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm1 movsd LCPI0_3(%rip), %xmm0 ## xmm0 = mem[0],zero addsd %xmm1, %xmm0 movsd %xmm0, -40(%rbp) ## 8-byte Spill jmp LBB0_7 LBB0_6: ## in Loop: Header=BB0_1 Depth=1 movq _x_3@GOTPCREL(%rip), %rax movss (%rax), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm1 movsd LCPI0_2(%rip), %xmm0 ## xmm0 = mem[0],zero addsd %xmm1, %xmm0 movsd %xmm0, -40(%rbp) ## 8-byte Spill LBB0_7: ## in Loop: Header=BB0_1 Depth=1 movsd -40(%rbp), %xmm0 ## 8-byte Reload ## xmm0 = mem[0],zero cvtsd2ss %xmm0, %xmm0 movss %xmm0, -12(%rbp) movq _x_0@GOTPCREL(%rip), %rax movss (%rax), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm1 movsd LCPI0_5(%rip), %xmm0 ## xmm0 = mem[0],zero addsd %xmm1, %xmm0 movq _x_2@GOTPCREL(%rip), %rax movss (%rax), %xmm1 ## xmm1 = mem[0],zero,zero,zero cvtss2sd %xmm1, %xmm2 movsd LCPI0_4(%rip), %xmm1 ## xmm1 = mem[0],zero addsd %xmm2, %xmm1 ucomisd %xmm1, %xmm0 jbe LBB0_9 ## %bb.8: ## in Loop: Header=BB0_1 Depth=1 movq _x_0@GOTPCREL(%rip), %rax movss (%rax), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm1 movsd LCPI0_5(%rip), %xmm0 ## xmm0 = mem[0],zero addsd %xmm1, %xmm0 movsd %xmm0, -48(%rbp) ## 8-byte Spill jmp LBB0_10 LBB0_9: ## in Loop: Header=BB0_1 Depth=1 movq _x_2@GOTPCREL(%rip), %rax movss (%rax), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm1 movsd LCPI0_4(%rip), %xmm0 ## xmm0 = mem[0],zero addsd %xmm1, %xmm0 movsd %xmm0, -48(%rbp) ## 8-byte Spill LBB0_10: ## in Loop: Header=BB0_1 Depth=1 movsd -48(%rbp), %xmm0 ## 8-byte Reload ## xmm0 = mem[0],zero cvtsd2ss %xmm0, %xmm0 movss %xmm0, -16(%rbp) movq _x_0@GOTPCREL(%rip), %rax movss (%rax), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm1 movsd LCPI0_6(%rip), %xmm0 ## xmm0 = mem[0],zero addsd %xmm1, %xmm0 movq _x_1@GOTPCREL(%rip), %rax movss (%rax), %xmm1 ## xmm1 = mem[0],zero,zero,zero cvtss2sd %xmm1, %xmm2 movsd LCPI0_4(%rip), %xmm1 ## xmm1 = mem[0],zero addsd %xmm2, %xmm1 ucomisd %xmm1, %xmm0 jbe LBB0_12 ## %bb.11: ## in Loop: Header=BB0_1 Depth=1 movq _x_0@GOTPCREL(%rip), %rax movss (%rax), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm1 movsd LCPI0_6(%rip), %xmm0 ## xmm0 = mem[0],zero addsd %xmm1, %xmm0 movsd %xmm0, -56(%rbp) ## 8-byte Spill jmp LBB0_13 LBB0_12: ## in Loop: Header=BB0_1 Depth=1 movq _x_1@GOTPCREL(%rip), %rax movss (%rax), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm1 movsd LCPI0_4(%rip), %xmm0 ## xmm0 = mem[0],zero addsd %xmm1, %xmm0 movsd %xmm0, -56(%rbp) ## 8-byte Spill LBB0_13: ## in Loop: Header=BB0_1 Depth=1 movsd -56(%rbp), %xmm0 ## 8-byte Reload ## xmm0 = mem[0],zero cvtsd2ss %xmm0, %xmm0 movss %xmm0, -20(%rbp) movss -8(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movq _x_0@GOTPCREL(%rip), %rax movss %xmm0, (%rax) movss -12(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movq _x_1@GOTPCREL(%rip), %rax movss %xmm0, (%rax) movss -16(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movq _x_2@GOTPCREL(%rip), %rax movss %xmm0, (%rax) movss -20(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movq _x_3@GOTPCREL(%rip), %rax movss %xmm0, (%rax) jmp LBB0_1 .cfi_endproc ## -- End function .comm _x_2,4,2 ## @x_2 .comm _x_3,4,2 ## @x_3 .comm _x_1,4,2 ## @x_1 .comm _x_0,4,2 ## @x_0 .subsections_via_symbols
the_stack_data/1265979.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, #12 str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf ldursw x8, [x29, #-12] lsl x0, x8, #2 bl _malloc str x0, [sp, #8] ldr x8, [sp, #8] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf mov w0, #1 bl _exit LBB0_2: stur wzr, [x29, #-8] b LBB0_3 LBB0_3: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-8] ldur w9, [x29, #-12] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_6 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_3 Depth=1 adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf ldr x8, [sp, #8] ldursw x9, [x29, #-8] add x8, x8, x9, lsl #2 mov x9, sp str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf b LBB0_5 LBB0_5: ; in Loop: Header=BB0_3 Depth=1 ldur w8, [x29, #-8] add w8, w8, #1 stur w8, [x29, #-8] b LBB0_3 LBB0_6: stur wzr, [x29, #-8] b LBB0_7 LBB0_7: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-8] ldur w9, [x29, #-12] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_10 b LBB0_8 LBB0_8: ; in Loop: Header=BB0_7 Depth=1 ldr x8, [sp, #8] ldursw x9, [x29, #-8] ldr w9, [x8, x9, lsl #2] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf b LBB0_9 LBB0_9: ; in Loop: Header=BB0_7 Depth=1 ldur w8, [x29, #-8] add w8, w8, #1 stur w8, [x29, #-8] b LBB0_7 LBB0_10: 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 "Enter the number of integers: " l_.str.1: ; @.str.1 .asciz "%d" l_.str.2: ; @.str.2 .asciz "Memory not available..." l_.str.3: ; @.str.3 .asciz "Enter an integer: " l_.str.4: ; @.str.4 .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) leaq L_.str(%rip), %rdi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi leaq -12(%rbp), %rsi movb $0, %al callq _scanf movslq -12(%rbp), %rdi shlq $2, %rdi callq _malloc movq %rax, -24(%rbp) cmpq $0, -24(%rbp) jne LBB0_2 ## %bb.1: leaq L_.str.2(%rip), %rdi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _printf movl $1, %edi callq _exit LBB0_2: movl $0, -8(%rbp) LBB0_3: ## =>This Inner Loop Header: Depth=1 movl -8(%rbp), %eax cmpl -12(%rbp), %eax jge LBB0_6 ## %bb.4: ## in Loop: Header=BB0_3 Depth=1 leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf movq -24(%rbp), %rsi movslq -8(%rbp), %rax shlq $2, %rax addq %rax, %rsi leaq L_.str.1(%rip), %rdi movb $0, %al callq _scanf ## %bb.5: ## in Loop: Header=BB0_3 Depth=1 movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) jmp LBB0_3 LBB0_6: movl $0, -8(%rbp) LBB0_7: ## =>This Inner Loop Header: Depth=1 movl -8(%rbp), %eax cmpl -12(%rbp), %eax jge LBB0_10 ## %bb.8: ## in Loop: Header=BB0_7 Depth=1 movq -24(%rbp), %rax movslq -8(%rbp), %rcx movl (%rax,%rcx,4), %esi leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf ## %bb.9: ## in Loop: Header=BB0_7 Depth=1 movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) jmp LBB0_7 LBB0_10: movl -4(%rbp), %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Enter the number of integers: " L_.str.1: ## @.str.1 .asciz "%d" L_.str.2: ## @.str.2 .asciz "Memory not available..." L_.str.3: ## @.str.3 .asciz "Enter an integer: " L_.str.4: ## @.str.4 .asciz "%d " .subsections_via_symbols
the_stack_data/126702089.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _findPeakElement ; -- Begin function findPeakElement .p2align 2 _findPeakElement: ; @findPeakElement .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] ldr w8, [sp, #20] subs w8, w8, #1 str w8, [sp, #12] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #16] ldr w9, [sp, #12] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_6 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #16] ldr w9, [sp, #12] ldr w10, [sp, #16] subs w9, w9, w10 mov w10, #2 sdiv w9, w9, w10 add w8, w8, w9 str w8, [sp, #8] ldr x8, [sp, #24] ldrsw x9, [sp, #8] ldr w8, [x8, x9, lsl #2] ldr x9, [sp, #24] ldr w10, [sp, #8] add w10, w10, #1 ldr w9, [x9, w10, sxtw #2] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #8] add w8, w8, #1 str w8, [sp, #16] b LBB0_5 LBB0_4: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #8] str w8, [sp, #12] b LBB0_5 LBB0_5: ; in Loop: Header=BB0_1 Depth=1 b LBB0_1 LBB0_6: ldr w0, [sp, #16] 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 _findPeakElement ## -- Begin function findPeakElement .p2align 4, 0x90 _findPeakElement: ## @findPeakElement .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 -12(%rbp), %eax subl $1, %eax movl %eax, -20(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movl -16(%rbp), %eax cmpl -20(%rbp), %eax jge LBB0_6 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl -16(%rbp), %eax movl %eax, -28(%rbp) ## 4-byte Spill movl -20(%rbp), %eax subl -16(%rbp), %eax movl $2, %ecx cltd idivl %ecx movl %eax, %ecx movl -28(%rbp), %eax ## 4-byte Reload addl %ecx, %eax movl %eax, -24(%rbp) movq -8(%rbp), %rax movslq -24(%rbp), %rcx movl (%rax,%rcx,4), %eax movq -8(%rbp), %rcx movl -24(%rbp), %edx addl $1, %edx movslq %edx, %rdx cmpl (%rcx,%rdx,4), %eax jge LBB0_4 ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movl -24(%rbp), %eax addl $1, %eax movl %eax, -16(%rbp) jmp LBB0_5 LBB0_4: ## in Loop: Header=BB0_1 Depth=1 movl -24(%rbp), %eax movl %eax, -20(%rbp) LBB0_5: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_1 LBB0_6: movl -16(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/388.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #288 .cfi_def_cfa_offset 288 stp x28, x27, [sp, #256] ; 16-byte Folded Spill stp x29, x30, [sp, #272] ; 16-byte Folded Spill add x29, sp, #272 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w27, -24 .cfi_offset w28, -32 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] str wzr, [sp, #44] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov x9, sp add x8, sp, #32 str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf ldr w9, [sp, #32] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf str wzr, [sp, #36] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #36] 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, #36] add x8, sp, #48 add x8, x8, x9, lsl #2 mov x9, sp str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #36] add w8, w8, #1 str w8, [sp, #36] b LBB0_1 LBB0_4: adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf mov x9, sp add x8, sp, #40 str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF str x0, [sp, #16] ; 8-byte Folded Spill bl _scanf 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 add x8, sp, #28 str x8, [x9] bl _scanf ldr w8, [sp, #32] subs w8, w8, #1 str w8, [sp, #36] b LBB0_5 LBB0_5: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #36] ldr w9, [sp, #40] subs w9, w9, #1 subs w8, w8, w9 cset w8, lt tbnz w8, #0, LBB0_8 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_5 Depth=1 ldrsw x8, [sp, #36] add x9, sp, #48 ldr w8, [x9, x8, lsl #2] ldr w10, [sp, #36] add w10, w10, #1 str w8, [x9, w10, sxtw #2] b LBB0_7 LBB0_7: ; in Loop: Header=BB0_5 Depth=1 ldr w8, [sp, #36] subs w8, w8, #1 str w8, [sp, #36] b LBB0_5 LBB0_8: ldr w8, [sp, #28] ldr w9, [sp, #40] subs w10, w9, #1 add x9, sp, #48 str w8, [x9, w10, sxtw #2] adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf str wzr, [sp, #36] b LBB0_9 LBB0_9: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #36] ldr w9, [sp, #32] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_12 b LBB0_10 LBB0_10: ; in Loop: Header=BB0_9 Depth=1 ldrsw x9, [sp, #36] add x8, sp, #48 ldr w9, [x8, x9, lsl #2] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _printf b LBB0_11 LBB0_11: ; in Loop: Header=BB0_9 Depth=1 ldr w8, [sp, #36] add w8, w8, #1 str w8, [sp, #36] b LBB0_9 LBB0_12: ldur x9, [x29, #-24] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_14 b LBB0_13 LBB0_13: bl ___stack_chk_fail LBB0_14: mov w0, #0 ldp x29, x30, [sp, #272] ; 16-byte Folded Reload ldp x28, x27, [sp, #256] ; 16-byte Folded Reload add sp, sp, #288 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Enter number of elements in the array\n" l_.str.1: ; @.str.1 .asciz "%d" l_.str.2: ; @.str.2 .asciz "Enter %d elements\n" l_.str.3: ; @.str.3 .asciz "Enter the location where you want to insert an new element\n" l_.str.4: ; @.str.4 .asciz "Enter the value\n" l_.str.5: ; @.str.5 .asciz "Resultant array is\n" l_.str.6: ; @.str.6 .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 $240, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -212(%rbp) leaq L_.str(%rip), %rdi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi leaq -224(%rbp), %rsi movb $0, %al callq _scanf movl -224(%rbp), %esi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf movl $0, -220(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movl -220(%rbp), %eax cmpl -224(%rbp), %eax jge LBB0_4 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movslq -220(%rbp), %rax leaq -208(%rbp), %rsi shlq $2, %rax addq %rax, %rsi leaq L_.str.1(%rip), %rdi movb $0, %al callq _scanf ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movl -220(%rbp), %eax addl $1, %eax movl %eax, -220(%rbp) jmp LBB0_1 LBB0_4: leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi leaq -216(%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 -228(%rbp), %rsi movb $0, %al callq _scanf movl -224(%rbp), %eax subl $1, %eax movl %eax, -220(%rbp) LBB0_5: ## =>This Inner Loop Header: Depth=1 movl -220(%rbp), %eax movl -216(%rbp), %ecx subl $1, %ecx cmpl %ecx, %eax jl LBB0_8 ## %bb.6: ## in Loop: Header=BB0_5 Depth=1 movslq -220(%rbp), %rax movl -208(%rbp,%rax,4), %ecx movl -220(%rbp), %eax addl $1, %eax cltq movl %ecx, -208(%rbp,%rax,4) ## %bb.7: ## in Loop: Header=BB0_5 Depth=1 movl -220(%rbp), %eax addl $-1, %eax movl %eax, -220(%rbp) jmp LBB0_5 LBB0_8: movl -228(%rbp), %ecx movl -216(%rbp), %eax subl $1, %eax cltq movl %ecx, -208(%rbp,%rax,4) leaq L_.str.5(%rip), %rdi movb $0, %al callq _printf movl $0, -220(%rbp) LBB0_9: ## =>This Inner Loop Header: Depth=1 movl -220(%rbp), %eax cmpl -224(%rbp), %eax jg LBB0_12 ## %bb.10: ## in Loop: Header=BB0_9 Depth=1 movslq -220(%rbp), %rax movl -208(%rbp,%rax,4), %esi leaq L_.str.6(%rip), %rdi movb $0, %al callq _printf ## %bb.11: ## in Loop: Header=BB0_9 Depth=1 movl -220(%rbp), %eax addl $1, %eax movl %eax, -220(%rbp) jmp LBB0_9 LBB0_12: movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_14 ## %bb.13: xorl %eax, %eax addq $240, %rsp popq %rbp retq LBB0_14: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Enter number of elements in the array\n" L_.str.1: ## @.str.1 .asciz "%d" L_.str.2: ## @.str.2 .asciz "Enter %d elements\n" L_.str.3: ## @.str.3 .asciz "Enter the location where you want to insert an new element\n" L_.str.4: ## @.str.4 .asciz "Enter the value\n" L_.str.5: ## @.str.5 .asciz "Resultant array is\n" L_.str.6: ## @.str.6 .asciz "%d\n" .subsections_via_symbols
the_stack_data/232956167.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #0 str w8, [sp, #12] ; 4-byte Folded Spill stur wzr, [x29, #-4] mov x9, sp add x8, sp, #16 str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _scanf ldr d0, [sp, #16] scvtf d0, d0 fsqrt d0, d0 frintp d0, d0 mov x8, sp str d0, [x8] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf ldr w0, [sp, #12] ; 4-byte Folded Reload ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%lld" l_.str.1: ; @.str.1 .asciz "%.Lf\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movl $0, -4(%rbp) leaq L_.str(%rip), %rdi xorl %eax, %eax ## kill: def $al killed $al killed $eax leaq -16(%rbp), %rsi callq _scanf movq -16(%rbp), %rax movq %rax, -24(%rbp) fildll -24(%rbp) fsqrt movq %rsp, %rax fstpt (%rax) callq _ceill movq %rsp, %rax fstpt (%rax) leaq L_.str.1(%rip), %rdi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _printf xorl %eax, %eax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%lld" L_.str.1: ## @.str.1 .asciz "%.Lf\n" .subsections_via_symbols
the_stack_data/115639.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #0 stur w8, [x29, #-12] ; 4-byte Folded Spill stur wzr, [x29, #-4] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov x9, sp sub x8, x29, #5 str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf ldursb w10, [x29, #-5] mov x9, sp ; implicit-def: $x8 mov x8, x10 str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf ldur w0, [x29, #-12] ; 4-byte Folded Reload ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Enter the character : " l_.str.1: ; @.str.1 .asciz "%c" l_.str.2: ; @.str.2 .asciz "ASCII value 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) leaq L_.str(%rip), %rdi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi leaq -5(%rbp), %rsi movb $0, %al callq _scanf movsbl -5(%rbp), %esi 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 the character : " L_.str.1: ## @.str.1 .asciz "%c" L_.str.2: ## @.str.2 .asciz "ASCII value is : %d\n" .subsections_via_symbols
the_stack_data/14198964.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __TEXT,__const .globl _bwshadowman ; @bwshadowman _bwshadowman: .ascii "\377\377\340\017\377\377\300\377\377\000\000\377\377\300\377\374\000\000?\377\300\377\360\000\000\017\377\300\377\340\000\000\007\377\300\377\300\000\000\003\377\300\377\200\000\000\001\377\300\377\000\000\000\000\377\300\376\000\000\000\000\177\300\374\000\000\000\000\177\300\374\000\000\000\000?\300\370\000\000\000\000\037\300\370\000\000\000\000\037\300\360\000\000\000\000\037\300\360\000\000\000\000\017\300\360\000\000\000\000\017\300\340\000\000\000\000\017\300\340\000\000\000\000\007\300\340\000\000\000\000\007\300\340\000\000\000\000\007\300\340\000\000\000\000\007\300\340\000\000\000\000\007\300\340\000\000\000\000\007\300\340\016\000\000\000\007\300\340\017\000\000\000\007\300\340\017\300\000\000\017\300\340\007\340\000\000\017\300\361\347\360\000\000\017\300\377\363\377\377\200\017\300\377\377\377\377\200\037\300\377\377\377\377\200\037\300\377\377\377\207\200?\300\377\377\377\377\017\377\300\377\377\377\377\037\377\300\377\377\377\376\177\377\300\377\377\377\374\377\377\300\377\377\377\375\377\377\300\377\377\377\377\377\377\300" .globl _oldredhat ; @oldredhat _oldredhat: .ascii "\377\377\377\377\377\377\300\377\377\377\377\377\377\300\377\377\377\377\377\377\300\377\377\377\377\377\377\300\377\377\377\377\377\377\300\377\377\377\377\377\377\300\377\377\377\303\377\377\300\377\377\200\016\377\377\300\377\377\000\016\377\377\300\377\377 \000\177\377\300\377\377?\000\177\377\300\377\377>\000?\377\300\377\377\020\000?\377\300\377\377\000\000?\377\300\377\303\000\000\037\377\300\377\203\300\000\037\377\300\377\001\376\000\037\377\300\377\000\377\200\023\377\300\377\200?\300\020\377\300\377\300\037\300\000\177\300\377\340\003\340\000\177\300\377\360\000\000\000\177\300\377\370\000\000\000\177\300\377\376\000\000\000\177\300\377\377\200\000\000\177\300\377\377\340\000\000\377\300\377\377\376\000\003\377\300\377\377\377\300\037\377\300\377\377\377\377\377\377\300\377\377\377\377\377\377\300\377\377\377\377\377\377\300\377\377\377\377\377\377\300\377\377\377\377\377\377\300\377\377\377\377\377\377\300\377\377\377\377\377\377\300\377\377\377\377\377\377\300\377\377\377\377\377\377\300\377\377\377\377\377\377\300" .globl _newredhat ; @newredhat _newredhat: .ascii "\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\001\007\200\000\000\000\007\357\360\000\000\000\007\377\374\000\000\000\017\377\377\000\000\000\017\377\377\200\000\000\017\377\377\300\000\000\037\377\377\300\000\000\037\377\377\300\000\000\037\377\377\300\000\000\037\377\377\340\000\000\037\377\377\340\000\003\217\377\377\340\000\037\207\377\377\340\000?\203\377\377\360\000?\300\377\377\360\000\177\340?\377\340\000\177\340\017\377\354\000?\370\000\377\206\000?\374\000\000\007\200\037\377\000\000\017\200\037\377\300\000\037\300\017\377\370\000?\340\007\377\377\343\377\340\001\377\377\377\377\340\000\377\377\377\377\340\000?\377\377\377\340\000\017\377\377\377\300\000\003\377\377\377\200\000\000\377\377\377\200\000\000\037\377\376\000\000\000\001\377\370" .space 25 .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __TEXT,__const .globl _bwshadowman ## @bwshadowman .p2align 4 _bwshadowman: .ascii "\377\377\340\017\377\377\300\377\377\000\000\377\377\300\377\374\000\000?\377\300\377\360\000\000\017\377\300\377\340\000\000\007\377\300\377\300\000\000\003\377\300\377\200\000\000\001\377\300\377\000\000\000\000\377\300\376\000\000\000\000\177\300\374\000\000\000\000\177\300\374\000\000\000\000?\300\370\000\000\000\000\037\300\370\000\000\000\000\037\300\360\000\000\000\000\037\300\360\000\000\000\000\017\300\360\000\000\000\000\017\300\340\000\000\000\000\017\300\340\000\000\000\000\007\300\340\000\000\000\000\007\300\340\000\000\000\000\007\300\340\000\000\000\000\007\300\340\000\000\000\000\007\300\340\000\000\000\000\007\300\340\016\000\000\000\007\300\340\017\000\000\000\007\300\340\017\300\000\000\017\300\340\007\340\000\000\017\300\361\347\360\000\000\017\300\377\363\377\377\200\017\300\377\377\377\377\200\037\300\377\377\377\377\200\037\300\377\377\377\207\200?\300\377\377\377\377\017\377\300\377\377\377\377\037\377\300\377\377\377\376\177\377\300\377\377\377\374\377\377\300\377\377\377\375\377\377\300\377\377\377\377\377\377\300" .globl _oldredhat ## @oldredhat .p2align 4 _oldredhat: .ascii "\377\377\377\377\377\377\300\377\377\377\377\377\377\300\377\377\377\377\377\377\300\377\377\377\377\377\377\300\377\377\377\377\377\377\300\377\377\377\377\377\377\300\377\377\377\303\377\377\300\377\377\200\016\377\377\300\377\377\000\016\377\377\300\377\377 \000\177\377\300\377\377?\000\177\377\300\377\377>\000?\377\300\377\377\020\000?\377\300\377\377\000\000?\377\300\377\303\000\000\037\377\300\377\203\300\000\037\377\300\377\001\376\000\037\377\300\377\000\377\200\023\377\300\377\200?\300\020\377\300\377\300\037\300\000\177\300\377\340\003\340\000\177\300\377\360\000\000\000\177\300\377\370\000\000\000\177\300\377\376\000\000\000\177\300\377\377\200\000\000\177\300\377\377\340\000\000\377\300\377\377\376\000\003\377\300\377\377\377\300\037\377\300\377\377\377\377\377\377\300\377\377\377\377\377\377\300\377\377\377\377\377\377\300\377\377\377\377\377\377\300\377\377\377\377\377\377\300\377\377\377\377\377\377\300\377\377\377\377\377\377\300\377\377\377\377\377\377\300\377\377\377\377\377\377\300\377\377\377\377\377\377\300" .globl _newredhat ## @newredhat .p2align 4 _newredhat: .ascii "\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\001\007\200\000\000\000\007\357\360\000\000\000\007\377\374\000\000\000\017\377\377\000\000\000\017\377\377\200\000\000\017\377\377\300\000\000\037\377\377\300\000\000\037\377\377\300\000\000\037\377\377\300\000\000\037\377\377\340\000\000\037\377\377\340\000\003\217\377\377\340\000\037\207\377\377\340\000?\203\377\377\360\000?\300\377\377\360\000\177\340?\377\340\000\177\340\017\377\354\000?\370\000\377\206\000?\374\000\000\007\200\037\377\000\000\017\200\037\377\300\000\037\300\017\377\370\000?\340\007\377\377\343\377\340\001\377\377\377\377\340\000\377\377\377\377\340\000?\377\377\377\340\000\017\377\377\377\300\000\003\377\377\377\200\000\000\377\377\377\200\000\000\037\377\376\000\000\000\001\377\370" .space 25 .subsections_via_symbols
the_stack_data/50138341.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #128 .cfi_def_cfa_offset 128 stp x29, x30, [sp, #112] ; 16-byte Folded Spill add x29, sp, #112 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] stur wzr, [x29, #-44] sub x8, x29, #40 stur xzr, [x29, #-40] stur xzr, [x29, #-32] stur xzr, [x29, #-24] stur xzr, [x8, #22] mov x9, sp add x8, sp, #36 str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _scanf b LBB0_1 LBB0_1: ; =>This Loop Header: Depth=1 ; Child Loop BB0_3 Depth 2 ; Child Loop BB0_5 Depth 3 ; Child Loop BB0_14 Depth 2 ldr w8, [sp, #36] subs w9, w8, #1 str w9, [sp, #36] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_20 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 mov x8, #1 str x8, [sp, #48] mov x9, sp sub x8, x29, #52 str x8, [x9] sub x8, x29, #48 str x8, [x9, #8] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf ldursw x2, [x29, #-52] sub x0, x29, #40 mov w1, #1 str w1, [sp, #32] ; 4-byte Folded Spill mov x3, #30 bl ___memset_chk ldr w8, [sp, #32] ; 4-byte Folded Reload str w8, [sp, #44] b LBB0_3 LBB0_3: ; Parent Loop BB0_1 Depth=1 ; => This Loop Header: Depth=2 ; Child Loop BB0_5 Depth 3 ldr w8, [sp, #44] ldur w9, [x29, #-52] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_13 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_3 Depth=2 ldur w8, [x29, #-48] str w8, [sp, #56] mov w8, #2 str w8, [sp, #40] b LBB0_5 LBB0_5: ; Parent Loop BB0_1 Depth=1 ; Parent Loop BB0_3 Depth=2 ; => This Inner Loop Header: Depth=3 ldr w8, [sp, #40] ldur w9, [x29, #-52] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_11 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_5 Depth=3 ldr w8, [sp, #56] ldr w10, [sp, #40] 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: ; in Loop: Header=BB0_5 Depth=3 ldr w8, [sp, #40] subs w9, w8, #1 sub x8, x29, #40 ldrsb w8, [x8, w9, sxtw] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_9 b LBB0_8 LBB0_8: ; in Loop: Header=BB0_5 Depth=3 ldr w9, [sp, #40] ldr w8, [sp, #56] sdiv w8, w8, w9 str w8, [sp, #56] ldr w8, [sp, #40] subs w9, w8, #1 sub x8, x29, #40 add x8, x8, w9, sxtw strb wzr, [x8] b LBB0_9 LBB0_9: ; in Loop: Header=BB0_5 Depth=3 b LBB0_10 LBB0_10: ; in Loop: Header=BB0_5 Depth=3 ldr w8, [sp, #40] add w8, w8, #1 str w8, [sp, #40] b LBB0_5 LBB0_11: ; in Loop: Header=BB0_3 Depth=2 ldrsw x9, [sp, #56] ldr x8, [sp, #48] mul x8, x8, x9 str x8, [sp, #48] ldur w8, [x29, #-48] subs w8, w8, #1 stur w8, [x29, #-48] b LBB0_12 LBB0_12: ; in Loop: Header=BB0_3 Depth=2 ldr w8, [sp, #44] add w8, w8, #1 str w8, [sp, #44] b LBB0_3 LBB0_13: ; in Loop: Header=BB0_1 Depth=1 b LBB0_14 LBB0_14: ; Parent Loop BB0_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldur w8, [x29, #-52] subs w8, w8, #1 cset w8, le tbnz w8, #0, LBB0_19 b LBB0_15 LBB0_15: ; in Loop: Header=BB0_14 Depth=2 ldur w8, [x29, #-52] subs w9, w8, #1 sub x8, x29, #40 add x8, x8, w9, sxtw ldrb w8, [x8] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_17 b LBB0_16 LBB0_16: ; in Loop: Header=BB0_14 Depth=2 ldursw x9, [x29, #-52] ldr x8, [sp, #48] udiv x8, x8, x9 str x8, [sp, #48] b LBB0_17 LBB0_17: ; in Loop: Header=BB0_14 Depth=2 b LBB0_18 LBB0_18: ; in Loop: Header=BB0_14 Depth=2 ldur w8, [x29, #-52] subs w8, w8, #1 stur w8, [x29, #-52] b LBB0_14 LBB0_19: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #48] mov x9, sp str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf b LBB0_1 LBB0_20: ldur w8, [x29, #-44] str w8, [sp, #28] ; 4-byte Folded Spill ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_22 b LBB0_21 LBB0_21: bl ___stack_chk_fail LBB0_22: ldr w0, [sp, #28] ; 4-byte Folded Reload ldp x29, x30, [sp, #112] ; 16-byte Folded Reload add sp, sp, #128 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d" l_.str.1: ; @.str.1 .asciz "%d %d" l_.str.2: ; @.str.2 .asciz "%llu\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $96, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -52(%rbp) leaq -48(%rbp), %rdi xorl %esi, %esi movl $30, %edx callq _memset leaq L_.str(%rip), %rdi leaq -84(%rbp), %rsi movb $0, %al callq _scanf LBB0_1: ## =>This Loop Header: Depth=1 ## Child Loop BB0_3 Depth 2 ## Child Loop BB0_5 Depth 3 ## Child Loop BB0_14 Depth 2 movl -84(%rbp), %eax movl %eax, %ecx addl $-1, %ecx movl %ecx, -84(%rbp) cmpl $0, %eax je LBB0_20 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movq $1, -72(%rbp) leaq L_.str.1(%rip), %rdi leaq -60(%rbp), %rsi leaq -56(%rbp), %rdx movb $0, %al callq _scanf leaq -48(%rbp), %rdi movslq -60(%rbp), %rdx movl $1, %esi movl $30, %ecx callq ___memset_chk movl $1, -76(%rbp) LBB0_3: ## Parent Loop BB0_1 Depth=1 ## => This Loop Header: Depth=2 ## Child Loop BB0_5 Depth 3 movl -76(%rbp), %eax cmpl -60(%rbp), %eax jg LBB0_13 ## %bb.4: ## in Loop: Header=BB0_3 Depth=2 movl -56(%rbp), %eax movl %eax, -64(%rbp) movl $2, -80(%rbp) LBB0_5: ## Parent Loop BB0_1 Depth=1 ## Parent Loop BB0_3 Depth=2 ## => This Inner Loop Header: Depth=3 movl -80(%rbp), %eax cmpl -60(%rbp), %eax jg LBB0_11 ## %bb.6: ## in Loop: Header=BB0_5 Depth=3 movl -64(%rbp), %eax cltd idivl -80(%rbp) cmpl $0, %edx jne LBB0_9 ## %bb.7: ## in Loop: Header=BB0_5 Depth=3 movl -80(%rbp), %eax subl $1, %eax cltq movsbl -48(%rbp,%rax), %eax cmpl $0, %eax je LBB0_9 ## %bb.8: ## in Loop: Header=BB0_5 Depth=3 movl -80(%rbp), %ecx movl -64(%rbp), %eax cltd idivl %ecx movl %eax, -64(%rbp) movl -80(%rbp), %eax subl $1, %eax cltq movb $0, -48(%rbp,%rax) LBB0_9: ## in Loop: Header=BB0_5 Depth=3 jmp LBB0_10 LBB0_10: ## in Loop: Header=BB0_5 Depth=3 movl -80(%rbp), %eax addl $1, %eax movl %eax, -80(%rbp) jmp LBB0_5 LBB0_11: ## in Loop: Header=BB0_3 Depth=2 movslq -64(%rbp), %rax imulq -72(%rbp), %rax movq %rax, -72(%rbp) movl -56(%rbp), %eax addl $-1, %eax movl %eax, -56(%rbp) ## %bb.12: ## in Loop: Header=BB0_3 Depth=2 movl -76(%rbp), %eax addl $1, %eax movl %eax, -76(%rbp) jmp LBB0_3 LBB0_13: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_14 LBB0_14: ## Parent Loop BB0_1 Depth=1 ## => This Inner Loop Header: Depth=2 cmpl $1, -60(%rbp) jle LBB0_19 ## %bb.15: ## in Loop: Header=BB0_14 Depth=2 movl -60(%rbp), %eax subl $1, %eax cltq cmpb $0, -48(%rbp,%rax) je LBB0_17 ## %bb.16: ## in Loop: Header=BB0_14 Depth=2 movslq -60(%rbp), %rcx movq -72(%rbp), %rax xorl %edx, %edx ## kill: def $rdx killed $edx divq %rcx movq %rax, -72(%rbp) LBB0_17: ## in Loop: Header=BB0_14 Depth=2 jmp LBB0_18 LBB0_18: ## in Loop: Header=BB0_14 Depth=2 movl -60(%rbp), %eax addl $-1, %eax movl %eax, -60(%rbp) jmp LBB0_14 LBB0_19: ## in Loop: Header=BB0_1 Depth=1 movq -72(%rbp), %rsi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf jmp LBB0_1 LBB0_20: movl -52(%rbp), %eax movl %eax, -88(%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 -88(%rbp), %eax ## 4-byte Reload addq $96, %rsp popq %rbp retq LBB0_22: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d" L_.str.1: ## @.str.1 .asciz "%d %d" L_.str.2: ## @.str.2 .asciz "%llu\n" .subsections_via_symbols
the_stack_data/220456426.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _pureFun ; -- Begin function pureFun .p2align 2 _pureFun: ; @pureFun .cfi_startproc ; %bb.0: mov w0, #3 ret .cfi_endproc ; -- End function .globl _imPureFun ; -- Begin function imPureFun .p2align 2 _imPureFun: ; @imPureFun .cfi_startproc ; %bb.0: adrp x9, _z@GOTPAGE ldr x9, [x9, _z@GOTPAGEOFF] ldr w8, [x9] add w8, w8, #1 str w8, [x9] mov w0, #4 ret .cfi_endproc ; -- End function .globl _f ; -- Begin function f .p2align 2 _f: ; @f .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur w0, [x29, #-4] str w1, [sp, #8] ldur w8, [x29, #-4] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB2_3 b LBB2_1 LBB2_1: ldr w8, [sp, #8] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB2_3 b LBB2_2 LBB2_2: ldur w8, [x29, #-4] add w8, w8, #1 stur w8, [x29, #-4] b LBB2_3 LBB2_3: ldur w8, [x29, #-4] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB2_6 b LBB2_4 LBB2_4: ldr w8, [sp, #8] add w9, w8, #1 str w9, [sp, #8] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB2_6 b LBB2_5 LBB2_5: ldur w8, [x29, #-4] add w8, w8, #1 stur w8, [x29, #-4] b LBB2_6 LBB2_6: ldur w8, [x29, #-4] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB2_9 b LBB2_7 LBB2_7: bl _pureFun subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB2_9 b LBB2_8 LBB2_8: ldur w8, [x29, #-4] add w8, w8, #1 stur w8, [x29, #-4] b LBB2_9 LBB2_9: ldur w8, [x29, #-4] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB2_12 b LBB2_10 LBB2_10: bl _imPureFun subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB2_12 b LBB2_11 LBB2_11: ldur w8, [x29, #-4] add w8, w8, #1 stur w8, [x29, #-4] b LBB2_12 LBB2_12: ldur w8, [x29, #-4] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB2_15 b LBB2_13 LBB2_13: adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF bl _strcmp subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB2_15 b LBB2_14 LBB2_14: ldur w8, [x29, #-4] add w8, w8, #1 stur w8, [x29, #-4] b LBB2_15 LBB2_15: ldur w8, [x29, #-4] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB2_18 b LBB2_16 LBB2_16: adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF bl _unknownFun subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB2_18 b LBB2_17 LBB2_17: ldur w8, [x29, #-4] add w8, w8, #1 stur w8, [x29, #-4] b LBB2_18 LBB2_18: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .comm _z,4,2 ; @z .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "foo" l_.str.1: ; @.str.1 .asciz "bar" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _pureFun ## -- Begin function pureFun .p2align 4, 0x90 _pureFun: ## @pureFun .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl $3, %eax popq %rbp retq .cfi_endproc ## -- End function .globl _imPureFun ## -- Begin function imPureFun .p2align 4, 0x90 _imPureFun: ## @imPureFun .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq _z@GOTPCREL(%rip), %rax movl (%rax), %ecx addl $1, %ecx movq _z@GOTPCREL(%rip), %rax movl %ecx, (%rax) movl $4, %eax popq %rbp retq .cfi_endproc ## -- End function .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 $16, %rsp movl %edi, -4(%rbp) movl %esi, -8(%rbp) cmpl $0, -4(%rbp) je LBB2_3 ## %bb.1: cmpl $0, -8(%rbp) je LBB2_3 ## %bb.2: movl -4(%rbp), %eax addl $1, %eax movl %eax, -4(%rbp) LBB2_3: cmpl $0, -4(%rbp) je LBB2_6 ## %bb.4: movl -8(%rbp), %eax movl %eax, %ecx addl $1, %ecx movl %ecx, -8(%rbp) cmpl $0, %eax je LBB2_6 ## %bb.5: movl -4(%rbp), %eax addl $1, %eax movl %eax, -4(%rbp) LBB2_6: cmpl $0, -4(%rbp) je LBB2_9 ## %bb.7: callq _pureFun cmpl $0, %eax je LBB2_9 ## %bb.8: movl -4(%rbp), %eax addl $1, %eax movl %eax, -4(%rbp) LBB2_9: cmpl $0, -4(%rbp) je LBB2_12 ## %bb.10: callq _imPureFun cmpl $0, %eax je LBB2_12 ## %bb.11: movl -4(%rbp), %eax addl $1, %eax movl %eax, -4(%rbp) LBB2_12: cmpl $0, -4(%rbp) je LBB2_15 ## %bb.13: leaq L_.str(%rip), %rdi leaq L_.str.1(%rip), %rsi callq _strcmp cmpl $0, %eax je LBB2_15 ## %bb.14: movl -4(%rbp), %eax addl $1, %eax movl %eax, -4(%rbp) LBB2_15: cmpl $0, -4(%rbp) je LBB2_18 ## %bb.16: leaq L_.str(%rip), %rdi leaq L_.str.1(%rip), %rsi callq _unknownFun cmpl $0, %eax je LBB2_18 ## %bb.17: movl -4(%rbp), %eax addl $1, %eax movl %eax, -4(%rbp) LBB2_18: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .comm _z,4,2 ## @z .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "foo" L_.str.1: ## @.str.1 .asciz "bar" .subsections_via_symbols
the_stack_data/87638121.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _procuraVetor ; -- Begin function procuraVetor .p2align 2 _procuraVetor: ; @procuraVetor .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, #16] str w1, [sp, #12] str w2, [sp, #8] str wzr, [sp, #4] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #4] ldr w9, [sp, #8] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_6 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #16] ldrsw x9, [sp, #4] ldr w8, [x8, x9, lsl #2] ldr w9, [sp, #12] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: mov w8, #1 str w8, [sp, #28] b LBB0_7 LBB0_4: ; in Loop: Header=BB0_1 Depth=1 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #4] add w8, w8, #1 str w8, [sp, #4] b LBB0_1 LBB0_6: str wzr, [sp, #28] b LBB0_7 LBB0_7: ldr w0, [sp, #28] add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #128 .cfi_def_cfa_offset 128 stp x29, x30, [sp, #112] ; 16-byte Folded Spill add x29, sp, #112 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] stur wzr, [x29, #-52] str w0, [sp, #56] str x1, [sp, #48] mov w8, #1 str w8, [sp, #44] str w8, [sp, #40] str wzr, [sp, #36] b LBB1_1 LBB1_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #36] subs w8, w8, #10 cset w8, ge tbnz w8, #0, LBB1_8 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 ldrsw x9, [sp, #36] sub x8, x29, #48 str x8, [sp, #16] ; 8-byte Folded Spill 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 ldr x9, [sp, #16] ; 8-byte Folded Reload ldr w8, [sp, #44] ldrsw x10, [sp, #36] ldr w9, [x9, x10, lsl #2] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_4 b LBB1_3 LBB1_3: ; in Loop: Header=BB1_1 Depth=1 ldrsw x9, [sp, #36] sub x8, x29, #48 ldr w8, [x8, x9, lsl #2] str w8, [sp, #44] b LBB1_4 LBB1_4: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #40] ldrsw x10, [sp, #36] sub x9, x29, #48 ldr w9, [x9, x10, lsl #2] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB1_6 b LBB1_5 LBB1_5: ; in Loop: Header=BB1_1 Depth=1 ldrsw x9, [sp, #36] sub x8, x29, #48 ldr w8, [x8, x9, lsl #2] str w8, [sp, #40] 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 w8, [sp, #36] add w8, w8, #1 str w8, [sp, #36] b LBB1_1 LBB1_8: adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf str wzr, [sp, #32] b LBB1_9 LBB1_9: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #32] subs w8, w8, #10 cset w8, ge tbnz w8, #0, LBB1_16 b LBB1_10 LBB1_10: ; in Loop: Header=BB1_9 Depth=1 ldrsw x9, [sp, #32] sub x8, x29, #48 ldr w8, [x8, x9, lsl #2] mov w10, #2 sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB1_14 b LBB1_11 LBB1_11: ; in Loop: Header=BB1_9 Depth=1 ldrsw x8, [sp, #32] sub x0, x29, #48 ldr w1, [x0, x8, lsl #2] ldr w2, [sp, #32] bl _procuraVetor subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB1_13 b LBB1_12 LBB1_12: ; in Loop: Header=BB1_9 Depth=1 ldrsw x9, [sp, #32] sub x8, x29, #48 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 LBB1_13 LBB1_13: ; in Loop: Header=BB1_9 Depth=1 b LBB1_14 LBB1_14: ; in Loop: Header=BB1_9 Depth=1 b LBB1_15 LBB1_15: ; in Loop: Header=BB1_9 Depth=1 ldr w8, [sp, #32] add w8, w8, #1 str w8, [sp, #32] b LBB1_9 LBB1_16: adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf str wzr, [sp, #28] b LBB1_17 LBB1_17: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #28] subs w8, w8, #10 cset w8, ge tbnz w8, #0, LBB1_24 b LBB1_18 LBB1_18: ; in Loop: Header=BB1_17 Depth=1 ldrsw x9, [sp, #28] sub x8, x29, #48 ldr w8, [x8, x9, lsl #2] mov w10, #2 sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB1_22 b LBB1_19 LBB1_19: ; in Loop: Header=BB1_17 Depth=1 ldrsw x8, [sp, #28] sub x0, x29, #48 ldr w1, [x0, x8, lsl #2] ldr w2, [sp, #28] bl _procuraVetor subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB1_21 b LBB1_20 LBB1_20: ; in Loop: Header=BB1_17 Depth=1 ldrsw x9, [sp, #28] sub x8, x29, #48 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 LBB1_21 LBB1_21: ; in Loop: Header=BB1_17 Depth=1 b LBB1_22 LBB1_22: ; in Loop: Header=BB1_17 Depth=1 b LBB1_23 LBB1_23: ; in Loop: Header=BB1_17 Depth=1 ldr w8, [sp, #28] add w8, w8, #1 str w8, [sp, #28] b LBB1_17 LBB1_24: ldr w9, [sp, #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, #40] ; 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 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_26 b LBB1_25 LBB1_25: bl ___stack_chk_fail LBB1_26: mov w0, #0 ldp x29, x30, [sp, #112] ; 16-byte Folded Reload add sp, sp, #128 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d" l_.str.1: ; @.str.1 .asciz "Numeros pares:\n" l_.str.2: ; @.str.2 .asciz "%d\n" l_.str.3: ; @.str.3 .asciz "Numeros impares:\n" l_.str.4: ; @.str.4 .asciz "Maior: %d\n" l_.str.5: ; @.str.5 .asciz "Menor: %d" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _procuraVetor ## -- Begin function procuraVetor .p2align 4, 0x90 _procuraVetor: ## @procuraVetor .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -16(%rbp) movl %esi, -20(%rbp) movl %edx, -24(%rbp) movl $0, -28(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movl -28(%rbp), %eax cmpl -24(%rbp), %eax jge LBB0_6 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movq -16(%rbp), %rax movslq -28(%rbp), %rcx movl (%rax,%rcx,4), %eax cmpl -20(%rbp), %eax jne LBB0_4 ## %bb.3: movl $1, -4(%rbp) jmp LBB0_7 LBB0_4: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_5 LBB0_5: ## in Loop: Header=BB0_1 Depth=1 movl -28(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) jmp LBB0_1 LBB0_6: movl $0, -4(%rbp) LBB0_7: movl -4(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $96, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -52(%rbp) movl %edi, -56(%rbp) movq %rsi, -64(%rbp) movl $1, -68(%rbp) movl $1, -72(%rbp) movl $0, -76(%rbp) LBB1_1: ## =>This Inner Loop Header: Depth=1 cmpl $10, -76(%rbp) jge LBB1_8 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 movslq -76(%rbp), %rax leaq -48(%rbp), %rsi shlq $2, %rax addq %rax, %rsi leaq L_.str(%rip), %rdi movb $0, %al callq _scanf movl -68(%rbp), %eax movslq -76(%rbp), %rcx cmpl -48(%rbp,%rcx,4), %eax jge LBB1_4 ## %bb.3: ## in Loop: Header=BB1_1 Depth=1 movslq -76(%rbp), %rax movl -48(%rbp,%rax,4), %eax movl %eax, -68(%rbp) LBB1_4: ## in Loop: Header=BB1_1 Depth=1 movl -72(%rbp), %eax movslq -76(%rbp), %rcx cmpl -48(%rbp,%rcx,4), %eax jle LBB1_6 ## %bb.5: ## in Loop: Header=BB1_1 Depth=1 movslq -76(%rbp), %rax movl -48(%rbp,%rax,4), %eax movl %eax, -72(%rbp) LBB1_6: ## in Loop: Header=BB1_1 Depth=1 jmp LBB1_7 LBB1_7: ## in Loop: Header=BB1_1 Depth=1 movl -76(%rbp), %eax addl $1, %eax movl %eax, -76(%rbp) jmp LBB1_1 LBB1_8: leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf movl $0, -80(%rbp) LBB1_9: ## =>This Inner Loop Header: Depth=1 cmpl $10, -80(%rbp) jge LBB1_16 ## %bb.10: ## in Loop: Header=BB1_9 Depth=1 movslq -80(%rbp), %rax movl -48(%rbp,%rax,4), %eax movl $2, %ecx cltd idivl %ecx cmpl $0, %edx jne LBB1_14 ## %bb.11: ## in Loop: Header=BB1_9 Depth=1 leaq -48(%rbp), %rdi movslq -80(%rbp), %rax movl -48(%rbp,%rax,4), %esi movl -80(%rbp), %edx callq _procuraVetor cmpl $0, %eax jne LBB1_13 ## %bb.12: ## in Loop: Header=BB1_9 Depth=1 movslq -80(%rbp), %rax movl -48(%rbp,%rax,4), %esi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf LBB1_13: ## in Loop: Header=BB1_9 Depth=1 jmp LBB1_14 LBB1_14: ## in Loop: Header=BB1_9 Depth=1 jmp LBB1_15 LBB1_15: ## in Loop: Header=BB1_9 Depth=1 movl -80(%rbp), %eax addl $1, %eax movl %eax, -80(%rbp) jmp LBB1_9 LBB1_16: leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf movl $0, -84(%rbp) LBB1_17: ## =>This Inner Loop Header: Depth=1 cmpl $10, -84(%rbp) jge LBB1_24 ## %bb.18: ## in Loop: Header=BB1_17 Depth=1 movslq -84(%rbp), %rax movl -48(%rbp,%rax,4), %eax movl $2, %ecx cltd idivl %ecx cmpl $0, %edx je LBB1_22 ## %bb.19: ## in Loop: Header=BB1_17 Depth=1 leaq -48(%rbp), %rdi movslq -84(%rbp), %rax movl -48(%rbp,%rax,4), %esi movl -84(%rbp), %edx callq _procuraVetor cmpl $0, %eax jne LBB1_21 ## %bb.20: ## in Loop: Header=BB1_17 Depth=1 movslq -84(%rbp), %rax movl -48(%rbp,%rax,4), %esi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf LBB1_21: ## in Loop: Header=BB1_17 Depth=1 jmp LBB1_22 LBB1_22: ## in Loop: Header=BB1_17 Depth=1 jmp LBB1_23 LBB1_23: ## in Loop: Header=BB1_17 Depth=1 movl -84(%rbp), %eax addl $1, %eax movl %eax, -84(%rbp) jmp LBB1_17 LBB1_24: movl -68(%rbp), %esi leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf movl -72(%rbp), %esi leaq L_.str.5(%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_26 ## %bb.25: xorl %eax, %eax addq $96, %rsp popq %rbp retq LBB1_26: 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 "Numeros pares:\n" L_.str.2: ## @.str.2 .asciz "%d\n" L_.str.3: ## @.str.3 .asciz "Numeros impares:\n" L_.str.4: ## @.str.4 .asciz "Maior: %d\n" L_.str.5: ## @.str.5 .asciz "Menor: %d" .subsections_via_symbols
the_stack_data/32949703.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _insertAtEnd ; -- Begin function insertAtEnd .p2align 2 _insertAtEnd: ; @insertAtEnd .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-16] str x1, [sp, #24] str w2, [sp, #20] ldur x8, [x29, #-16] str x8, [sp, #8] mov x0, #24 bl _malloc str x0, [sp] ldrsw x9, [sp, #20] mov x8, #4 mul x0, x8, x9 bl _malloc ldr x8, [sp] str x0, [x8, #16] ldr x8, [sp, #24] ldr x9, [sp] str x8, [x9, #16] ldr x8, [sp, #8] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: ldr x8, [sp] stur x8, [x29, #-16] ldr x8, [sp] ldr x9, [sp] str x8, [x9] ldr x8, [sp] ldr x9, [sp] str x8, [x9, #8] ldur x8, [x29, #-16] stur x8, [x29, #-8] b LBB0_3 LBB0_2: ldr x8, [sp, #8] ldr x9, [sp] str x8, [x9] ldr x8, [sp, #8] ldr x8, [x8, #8] ldr x9, [sp] str x8, [x9, #8] ldr x8, [sp] ldr x9, [sp, #8] ldr x9, [x9, #8] str x8, [x9] ldr x8, [sp] ldr x9, [sp, #8] str x8, [x9, #8] ldur x8, [x29, #-16] stur x8, [x29, #-8] b LBB0_3 LBB0_3: ldur x0, [x29, #-8] ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _display ; -- Begin function display .p2align 2 _display: ; @display .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] stur w1, [x29, #-12] ldur x8, [x29, #-8] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf b LBB1_10 LBB1_2: ldur x8, [x29, #-8] str x8, [sp, #24] ldur x8, [x29, #-8] str x8, [sp, #16] b LBB1_3 LBB1_3: ; =>This Loop Header: Depth=1 ; Child Loop BB1_4 Depth 2 str wzr, [sp, #12] b LBB1_4 LBB1_4: ; Parent Loop BB1_3 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #12] ldur w9, [x29, #-12] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_7 b LBB1_5 LBB1_5: ; in Loop: Header=BB1_4 Depth=2 ldr x8, [sp, #16] ldr x8, [x8, #16] ldrsw x9, [sp, #12] ldr s0, [x8, x9, lsl #2] fcvt d0, s0 mov x8, sp str d0, [x8] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf b LBB1_6 LBB1_6: ; in Loop: Header=BB1_4 Depth=2 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB1_4 LBB1_7: ; in Loop: Header=BB1_3 Depth=1 adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf ldr x8, [sp, #16] ldr x8, [x8] str x8, [sp, #16] ldr x8, [sp, #16] ldr x9, [sp, #24] subs x8, x8, x9 cset w8, ne tbnz w8, #0, LBB1_9 b LBB1_8 LBB1_8: b LBB1_10 LBB1_9: ; in Loop: Header=BB1_3 Depth=1 b LBB1_3 LBB1_10: ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _listify ; -- Begin function listify .p2align 2 _listify: ; @listify .cfi_startproc ; %bb.0: sub sp, sp, #80 .cfi_def_cfa_offset 80 stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp, #64 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] stur w1, [x29, #-12] stur x2, [x29, #-24] stur wzr, [x29, #-28] ldur x0, [x29, #-8] adrp x1, l_.str.3@PAGE add x1, x1, l_.str.3@PAGEOFF bl _fopen str x0, [sp, #24] b LBB2_1 LBB2_1: ; =>This Loop Header: Depth=1 ; Child Loop BB2_2 Depth 2 str wzr, [sp, #20] ldursw x9, [x29, #-12] mov x8, #4 mul x0, x8, x9 bl _malloc str x0, [sp, #8] b LBB2_2 LBB2_2: ; Parent Loop BB2_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #20] ldur w9, [x29, #-12] subs w8, w8, w9 cset w8, eq tbnz w8, #0, LBB2_6 b LBB2_3 LBB2_3: ; in Loop: Header=BB2_2 Depth=2 ldr x0, [sp, #24] ldr x8, [sp, #8] ldrsw x9, [sp, #20] add x8, x8, x9, lsl #2 mov x9, sp str x8, [x9] adrp x1, l_.str.4@PAGE add x1, x1, l_.str.4@PAGEOFF bl _fscanf ldr x0, [sp, #24] bl _feof subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB2_5 b LBB2_4 LBB2_4: ; in Loop: Header=BB2_2 Depth=2 mov w8, #1 stur w8, [x29, #-28] b LBB2_5 LBB2_5: ; in Loop: Header=BB2_2 Depth=2 ldr w8, [sp, #20] add w8, w8, #1 str w8, [sp, #20] b LBB2_2 LBB2_6: ; in Loop: Header=BB2_1 Depth=1 ldur x0, [x29, #-24] ldr x1, [sp, #8] ldur w2, [x29, #-12] bl _insertAtEnd stur x0, [x29, #-24] ldur w8, [x29, #-28] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB2_8 b LBB2_7 LBB2_7: b LBB2_9 LBB2_8: ; in Loop: Header=BB2_1 Depth=1 b LBB2_1 LBB2_9: ldur x0, [x29, #-24] ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ; -- Begin function splitdata lCPI3_0: .quad 0x41d570a3d6df5c29 ; double 1438814043.49 .section __TEXT,__text,regular,pure_instructions .globl _splitdata .p2align 2 _splitdata: ; @splitdata .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] stur w2, [x29, #-20] str wzr, [sp, #4] ldur x8, [x29, #-8] ldr x8, [x8] ldr x8, [x8] str x8, [sp, #16] b LBB3_1 LBB3_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #16] ldur x9, [x29, #-8] ldr x9, [x9] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB3_6 b LBB3_2 LBB3_2: ; in Loop: Header=BB3_1 Depth=1 bl _rand scvtf d0, w0 adrp x8, lCPI3_0@PAGE ldr d1, [x8, lCPI3_0@PAGEOFF] fcmp d0, d1 cset w8, le tbnz w8, #0, LBB3_4 b LBB3_3 LBB3_3: ; in Loop: Header=BB3_1 Depth=1 ldur x8, [x29, #-16] ldr x0, [x8] ldr x8, [sp, #16] ldr x1, [x8, #16] ldur w2, [x29, #-20] bl _insertAtEnd ldur x8, [x29, #-16] str x0, [x8] ldr x8, [sp, #16] ldr x8, [x8, #8] ldr x9, [sp, #16] ldr x9, [x9] str x8, [x9, #8] ldr x8, [sp, #16] ldr x8, [x8] ldr x9, [sp, #16] ldr x9, [x9, #8] str x8, [x9] ldr x8, [sp, #16] str x8, [sp, #8] ldr x8, [sp, #16] ldr x8, [x8, #8] str x8, [sp, #16] ldr x0, [sp, #8] bl _free ldr w8, [sp, #4] add w8, w8, #1 str w8, [sp, #4] b LBB3_4 LBB3_4: ; in Loop: Header=BB3_1 Depth=1 b LBB3_5 LBB3_5: ; in Loop: Header=BB3_1 Depth=1 ldr x8, [sp, #16] ldr x8, [x8] str x8, [sp, #16] b LBB3_1 LBB3_6: ldr w0, [sp, #4] 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 probability lCPI4_0: .quad 0x401921fb54442d18 ; double 6.2831853071795862 .section __TEXT,__text,regular,pure_instructions .globl _probability .p2align 2 _probability: ; @probability .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 d0, [x29, #-8] stur d1, [x29, #-16] stur d2, [x29, #-24] ldur d0, [x29, #-8] ldur d1, [x29, #-16] fsub d0, d0, d1 fmov d1, #2.00000000 str d1, [sp, #8] ; 8-byte Folded Spill bl _pow ldr d1, [sp, #8] ; 8-byte Folded Reload str d0, [sp, #16] ; 8-byte Folded Spill ldur d0, [x29, #-24] bl _pow ldr d1, [sp, #8] ; 8-byte Folded Reload fmov d2, d0 ldr d0, [sp, #16] ; 8-byte Folded Reload fmul d1, d1, d2 fdiv d0, d0, d1 fneg d0, d0 bl _exp str d0, [sp, #32] adrp x8, lCPI4_0@PAGE ldr d0, [x8, lCPI4_0@PAGEOFF] fsqrt d0, d0 ldur d1, [x29, #-24] fmul d1, d0, d1 fmov d0, #1.00000000 fdiv d0, d0, d1 str d0, [sp, #24] ldr d0, [sp, #24] ldr d1, [sp, #32] fmul d0, d0, d1 ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .globl _predict ; -- Begin function predict .p2align 2 _predict: ; @predict .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, #160 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] stur x0, [x29, #-24] stur x1, [x29, #-32] stur x2, [x29, #-40] stur x3, [x29, #-48] stur w4, [x29, #-52] stur w5, [x29, #-56] stur w6, [x29, #-60] ldur x8, [x29, #-32] stur x8, [x29, #-72] stur wzr, [x29, #-76] b LBB5_1 LBB5_1: ; =>This Loop Header: Depth=1 ; Child Loop BB5_3 Depth 2 ; Child Loop BB5_5 Depth 3 ; Child Loop BB5_11 Depth 2 ldur w8, [x29, #-76] ldur w9, [x29, #-52] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB5_19 b LBB5_2 LBB5_2: ; in Loop: Header=BB5_1 Depth=1 ldur w8, [x29, #-60] ; kill: def $x8 killed $w8 mov x9, sp stur x9, [x29, #-88] lsl x9, x8, #3 add x9, x9, #15 and x9, x9, #0xfffffffffffffff0 stur x9, [x29, #-144] ; 8-byte Folded Spill adrp x16, ___chkstk_darwin@GOTPAGE ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF] blr x16 ldur x10, [x29, #-144] ; 8-byte Folded Reload mov x9, sp subs x9, x9, x10 mov sp, x9 stur x9, [x29, #-136] ; 8-byte Folded Spill stur x8, [x29, #-96] stur wzr, [x29, #-100] b LBB5_3 LBB5_3: ; Parent Loop BB5_1 Depth=1 ; => This Loop Header: Depth=2 ; Child Loop BB5_5 Depth 3 ldur w8, [x29, #-100] ldur w9, [x29, #-60] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB5_10 b LBB5_4 LBB5_4: ; in Loop: Header=BB5_3 Depth=2 ldur x8, [x29, #-136] ; 8-byte Folded Reload ldursw x9, [x29, #-100] fmov d0, #1.00000000 str d0, [x8, x9, lsl #3] stur wzr, [x29, #-104] b LBB5_5 LBB5_5: ; Parent Loop BB5_1 Depth=1 ; Parent Loop BB5_3 Depth=2 ; => This Inner Loop Header: Depth=3 ldur w8, [x29, #-104] ldur w9, [x29, #-56] subs w9, w9, #1 subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB5_8 b LBB5_6 LBB5_6: ; in Loop: Header=BB5_5 Depth=3 ldur x8, [x29, #-136] ; 8-byte Folded Reload ldursw x9, [x29, #-100] ldr d0, [x8, x9, lsl #3] stur d0, [x29, #-152] ; 8-byte Folded Spill ldur x8, [x29, #-72] ldr x8, [x8, #16] ldursw x9, [x29, #-104] ldr s0, [x8, x9, lsl #2] fcvt d0, s0 ldur x8, [x29, #-40] ldursw x9, [x29, #-100] ldr x8, [x8, x9, lsl #3] ldursw x9, [x29, #-104] ldr d1, [x8, x9, lsl #3] ldur x8, [x29, #-48] ldursw x9, [x29, #-100] ldr x8, [x8, x9, lsl #3] ldursw x9, [x29, #-104] ldr d2, [x8, x9, lsl #3] bl _probability ldur x8, [x29, #-136] ; 8-byte Folded Reload fmov d1, d0 ldur d0, [x29, #-152] ; 8-byte Folded Reload fmul d0, d0, d1 ldursw x9, [x29, #-100] str d0, [x8, x9, lsl #3] b LBB5_7 LBB5_7: ; in Loop: Header=BB5_5 Depth=3 ldur w8, [x29, #-104] add w8, w8, #1 stur w8, [x29, #-104] b LBB5_5 LBB5_8: ; in Loop: Header=BB5_3 Depth=2 b LBB5_9 LBB5_9: ; in Loop: Header=BB5_3 Depth=2 ldur w8, [x29, #-100] add w8, w8, #1 stur w8, [x29, #-100] b LBB5_3 LBB5_10: ; in Loop: Header=BB5_1 Depth=1 mov w8, #-1 stur w8, [x29, #-108] fmov d0, #-1.00000000 stur d0, [x29, #-120] stur wzr, [x29, #-124] b LBB5_11 LBB5_11: ; Parent Loop BB5_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldur w8, [x29, #-124] ldur w9, [x29, #-60] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB5_17 b LBB5_12 LBB5_12: ; in Loop: Header=BB5_11 Depth=2 ldur w8, [x29, #-108] adds w8, w8, #1 cset w8, eq tbnz w8, #0, LBB5_14 b LBB5_13 LBB5_13: ; in Loop: Header=BB5_11 Depth=2 ldur x8, [x29, #-136] ; 8-byte Folded Reload ldursw x9, [x29, #-124] ldr d0, [x8, x9, lsl #3] ldur d1, [x29, #-120] fcmp d0, d1 cset w8, le tbnz w8, #0, LBB5_15 b LBB5_14 LBB5_14: ; in Loop: Header=BB5_11 Depth=2 ldur x8, [x29, #-136] ; 8-byte Folded Reload ldur w9, [x29, #-124] stur w9, [x29, #-108] ldursw x9, [x29, #-124] ldr d0, [x8, x9, lsl #3] stur d0, [x29, #-120] b LBB5_15 LBB5_15: ; in Loop: Header=BB5_11 Depth=2 b LBB5_16 LBB5_16: ; in Loop: Header=BB5_11 Depth=2 ldur w8, [x29, #-124] add w8, w8, #1 stur w8, [x29, #-124] b LBB5_11 LBB5_17: ; in Loop: Header=BB5_1 Depth=1 ldur w8, [x29, #-108] ldur x9, [x29, #-24] ldursw x10, [x29, #-76] str w8, [x9, x10, lsl #2] ldur x8, [x29, #-72] ldr x8, [x8] stur x8, [x29, #-72] ldur x8, [x29, #-88] mov sp, x8 b LBB5_18 LBB5_18: ; in Loop: Header=BB5_1 Depth=1 ldur w8, [x29, #-76] add w8, w8, #1 stur w8, [x29, #-76] b LBB5_1 LBB5_19: ldur d0, [x29, #-16] stur d0, [x29, #-160] ; 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, LBB5_21 b LBB5_20 LBB5_20: bl ___stack_chk_fail LBB5_21: ldur d0, [x29, #-160] ; 8-byte Folded Reload mov sp, x29 ldp x29, x30, [sp], #16 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .globl _statistics ; -- Begin function statistics .p2align 2 _statistics: ; @statistics .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, #-8] stur w1, [x29, #-12] stur x2, [x29, #-24] stur x3, [x29, #-32] stur x4, [x29, #-40] stur w5, [x29, #-44] ldur x8, [x29, #-8] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB6_22 b LBB6_1 LBB6_1: ldur x8, [x29, #-8] str x8, [sp, #56] ldur x8, [x29, #-8] str x8, [sp, #48] str wzr, [sp, #44] b LBB6_2 LBB6_2: ; =>This Loop Header: Depth=1 ; Child Loop BB6_4 Depth 2 ; Child Loop BB6_12 Depth 2 ldr w8, [sp, #44] ldur w9, [x29, #-12] subs w9, w9, #1 subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB6_21 b LBB6_3 LBB6_3: ; in Loop: Header=BB6_2 Depth=1 movi d0, #0000000000000000 str d0, [sp, #32] str d0, [sp, #24] str wzr, [sp, #20] b LBB6_4 LBB6_4: ; Parent Loop BB6_2 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #20] add w8, w8, #1 str w8, [sp, #20] ldr x8, [sp, #48] ldr x8, [x8] str x8, [sp, #48] ldr x8, [sp, #48] ldr x8, [x8, #16] ldur w9, [x29, #-12] subs w9, w9, #1 ldr s0, [x8, w9, sxtw #2] ldur s1, [x29, #-44] scvtf s1, s1 fcmp s0, s1 cset w8, eq tbnz w8, #0, LBB6_8 b LBB6_5 LBB6_5: ; in Loop: Header=BB6_4 Depth=2 ldr w8, [sp, #20] subs w8, w8, #1 str w8, [sp, #20] ldr x8, [sp, #48] ldr x9, [sp, #56] subs x8, x8, x9 cset w8, ne tbnz w8, #0, LBB6_7 b LBB6_6 LBB6_6: ; in Loop: Header=BB6_2 Depth=1 b LBB6_11 LBB6_7: ; in Loop: Header=BB6_4 Depth=2 b LBB6_4 LBB6_8: ; in Loop: Header=BB6_4 Depth=2 ldr d0, [sp, #32] ldr x8, [sp, #48] ldr x8, [x8, #16] ldrsw x9, [sp, #44] ldr s1, [x8, x9, lsl #2] fcvt d1, s1 fadd d0, d0, d1 str d0, [sp, #32] ldr x8, [sp, #48] ldr x9, [sp, #56] subs x8, x8, x9 cset w8, ne tbnz w8, #0, LBB6_10 b LBB6_9 LBB6_9: ; in Loop: Header=BB6_2 Depth=1 b LBB6_11 LBB6_10: ; in Loop: Header=BB6_4 Depth=2 b LBB6_4 LBB6_11: ; in Loop: Header=BB6_2 Depth=1 ldr d0, [sp, #32] ldr s2, [sp, #20] ; implicit-def: $d1 fmov s1, s2 sshll.2d v1, v1, #0 ; kill: def $d1 killed $d1 killed $q1 scvtf d1, d1 fdiv d0, d0, d1 ldur x8, [x29, #-24] ldrsw x9, [sp, #44] str d0, [x8, x9, lsl #3] str wzr, [sp, #20] b LBB6_12 LBB6_12: ; Parent Loop BB6_2 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #20] add w8, w8, #1 str w8, [sp, #20] ldr x8, [sp, #48] ldr x8, [x8] str x8, [sp, #48] ldr x8, [sp, #48] ldr x8, [x8, #16] ldur w9, [x29, #-12] subs w9, w9, #1 ldr s0, [x8, w9, sxtw #2] ldur s1, [x29, #-44] scvtf s1, s1 fcmp s0, s1 cset w8, eq tbnz w8, #0, LBB6_16 b LBB6_13 LBB6_13: ; in Loop: Header=BB6_12 Depth=2 ldr w8, [sp, #20] subs w8, w8, #1 str w8, [sp, #20] ldr x8, [sp, #48] ldr x9, [sp, #56] subs x8, x8, x9 cset w8, ne tbnz w8, #0, LBB6_15 b LBB6_14 LBB6_14: ; in Loop: Header=BB6_2 Depth=1 b LBB6_19 LBB6_15: ; in Loop: Header=BB6_12 Depth=2 b LBB6_12 LBB6_16: ; in Loop: Header=BB6_12 Depth=2 ldr d0, [sp, #24] str d0, [sp, #8] ; 8-byte Folded Spill ldr x8, [sp, #48] ldr x8, [x8, #16] ldrsw x9, [sp, #44] ldr s0, [x8, x9, lsl #2] fcvt d0, s0 ldur x8, [x29, #-24] ldrsw x9, [sp, #44] ldr d1, [x8, x9, lsl #3] fsub d0, d0, d1 fmov d1, #2.00000000 bl _pow fmov d1, d0 ldr d0, [sp, #8] ; 8-byte Folded Reload fadd d0, d0, d1 str d0, [sp, #24] ldr x8, [sp, #48] ldr x9, [sp, #56] subs x8, x8, x9 cset w8, ne tbnz w8, #0, LBB6_18 b LBB6_17 LBB6_17: ; in Loop: Header=BB6_2 Depth=1 b LBB6_19 LBB6_18: ; in Loop: Header=BB6_12 Depth=2 b LBB6_12 LBB6_19: ; in Loop: Header=BB6_2 Depth=1 ldr d0, [sp, #24] ldr s2, [sp, #20] ; implicit-def: $d1 fmov s1, s2 sshll.2d v1, v1, #0 ; kill: def $d1 killed $d1 killed $q1 scvtf d1, d1 fdiv d0, d0, d1 ldur x8, [x29, #-32] ldrsw x9, [sp, #44] str d0, [x8, x9, lsl #3] ldur x8, [x29, #-32] ldrsw x9, [sp, #44] ldr d0, [x8, x9, lsl #3] fsqrt d0, d0 ldur x8, [x29, #-40] ldrsw x9, [sp, #44] str d0, [x8, x9, lsl #3] b LBB6_20 LBB6_20: ; in Loop: Header=BB6_2 Depth=1 ldr w8, [sp, #44] add w8, w8, #1 str w8, [sp, #44] b LBB6_2 LBB6_21: b LBB6_22 LBB6_22: ldp x29, x30, [sp, #112] ; 16-byte Folded Reload add sp, sp, #128 ret .cfi_endproc ; -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ; -- Begin function main lCPI7_0: .quad 0x4059000000000000 ; double 100 .section __TEXT,__text,regular,pure_instructions .globl _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 stur wzr, [x29, #-4] mov x0, #0 bl _time ; kill: def $w0 killed $w0 killed $x0 bl _srand sub x8, x29, #16 str x8, [sp, #40] ; 8-byte Folded Spill stur xzr, [x29, #-16] adrp x8, l_.str.5@PAGE add x8, x8, l_.str.5@PAGEOFF stur x8, [x29, #-24] mov w8, #21 stur w8, [x29, #-28] mov w8, #2 stur w8, [x29, #-32] sub x8, x29, #40 str x8, [sp, #32] ; 8-byte Folded Spill stur xzr, [x29, #-40] ldur x0, [x29, #-24] ldur w1, [x29, #-28] ldur x2, [x29, #-16] bl _listify ldr x1, [sp, #32] ; 8-byte Folded Reload mov x8, x0 ldr x0, [sp, #40] ; 8-byte Folded Reload stur x8, [x29, #-16] ldur w2, [x29, #-28] bl _splitdata stur w0, [x29, #-44] ldur w9, [x29, #-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 mov x0, #4 str x0, [sp, #48] ; 8-byte Folded Spill bl _malloc mov x8, x0 ldr x0, [sp, #48] ; 8-byte Folded Reload stur x8, [x29, #-56] bl _malloc mov x8, x0 ldr x0, [sp, #48] ; 8-byte Folded Reload stur x8, [x29, #-64] bl _malloc stur x0, [x29, #-72] stur wzr, [x29, #-76] b LBB7_1 LBB7_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-76] ldur w9, [x29, #-32] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB7_4 b LBB7_2 LBB7_2: ; in Loop: Header=BB7_1 Depth=1 ldursw x9, [x29, #-28] mov x8, #8 str x8, [sp, #24] ; 8-byte Folded Spill mul x0, x8, x9 bl _malloc ldr x8, [sp, #24] ; 8-byte Folded Reload ldur x9, [x29, #-56] ldursw x10, [x29, #-76] str x0, [x9, x10, lsl #3] ldursw x9, [x29, #-28] mul x0, x8, x9 bl _malloc ldr x8, [sp, #24] ; 8-byte Folded Reload ldur x9, [x29, #-64] ldursw x10, [x29, #-76] str x0, [x9, x10, lsl #3] ldursw x9, [x29, #-28] mul x0, x8, x9 bl _malloc ldur x8, [x29, #-72] ldursw x9, [x29, #-76] str x0, [x8, x9, lsl #3] ldur x0, [x29, #-16] ldur w1, [x29, #-28] ldur x8, [x29, #-56] ldursw x9, [x29, #-76] ldr x2, [x8, x9, lsl #3] ldur x8, [x29, #-64] ldursw x9, [x29, #-76] ldr x3, [x8, x9, lsl #3] ldur x8, [x29, #-72] ldursw x9, [x29, #-76] ldr x4, [x8, x9, lsl #3] ldur w5, [x29, #-76] bl _statistics b LBB7_3 LBB7_3: ; in Loop: Header=BB7_1 Depth=1 ldur w8, [x29, #-76] add w8, w8, #1 stur w8, [x29, #-76] b LBB7_1 LBB7_4: ldursw x9, [x29, #-44] mov x8, #4 mul x0, x8, x9 bl _malloc str x0, [sp, #72] ldr x0, [sp, #72] ldur x1, [x29, #-40] ldur x2, [x29, #-56] ldur x3, [x29, #-72] ldur w4, [x29, #-44] ldur w5, [x29, #-28] ldur w6, [x29, #-32] bl _predict movi d0, #0000000000000000 str s0, [sp, #68] str wzr, [sp, #64] str wzr, [sp, #60] b LBB7_5 LBB7_5: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #60] ldur w9, [x29, #-44] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB7_10 b LBB7_6 LBB7_6: ; in Loop: Header=BB7_5 Depth=1 ldr s0, [sp, #68] str s0, [sp, #20] ; 4-byte Folded Spill ldur x8, [x29, #-40] ldr x8, [x8, #16] ldur w9, [x29, #-28] subs w9, w9, #1 ldr s0, [x8, w9, sxtw #2] ldr x8, [sp, #72] ldrsw x9, [sp, #60] ldr s1, [x8, x9, lsl #2] scvtf s1, s1 fsub s0, s0, s1 fcvtzs w0, s0 bl _abs ldr s0, [sp, #20] ; 4-byte Folded Reload scvtf s1, w0 fadd s0, s0, s1 str s0, [sp, #68] ldur x8, [x29, #-40] ldr x8, [x8, #16] ldur w9, [x29, #-28] subs w9, w9, #1 ldr s0, [x8, w9, sxtw #2] fcvtzs w8, s0 ldr x9, [sp, #72] ldrsw x10, [sp, #60] ldr w9, [x9, x10, lsl #2] subs w8, w8, w9 cset w8, eq tbnz w8, #0, LBB7_8 b LBB7_7 LBB7_7: ; in Loop: Header=BB7_5 Depth=1 ldr w8, [sp, #64] add w8, w8, #1 str w8, [sp, #64] b LBB7_8 LBB7_8: ; in Loop: Header=BB7_5 Depth=1 ldur x8, [x29, #-40] ldr x8, [x8] stur x8, [x29, #-40] b LBB7_9 LBB7_9: ; in Loop: Header=BB7_5 Depth=1 ldr w8, [sp, #60] add w8, w8, #1 str w8, [sp, #60] b LBB7_5 LBB7_10: ldur w8, [x29, #-44] ldr w9, [sp, #64] subs w8, w8, w9 scvtf s0, w8 ldur s1, [x29, #-44] scvtf s1, s1 fdiv s0, s0, s1 fcvt d0, s0 adrp x8, lCPI7_0@PAGE ldr d1, [x8, lCPI7_0@PAGEOFF] fmul d0, d0, d1 mov x8, sp str d0, [x8] adrp x0, l_.str.7@PAGE add x0, x0, l_.str.7@PAGEOFF bl _printf ldr s0, [sp, #68] ldur s1, [x29, #-44] scvtf s1, s1 fdiv s0, s0, s1 fcvt d0, s0 mov x8, sp str d0, [x8] adrp x0, l_.str.8@PAGE add x0, x0, l_.str.8@PAGEOFF bl _printf ldur w0, [x29, #-4] 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 "Empty.\n" l_.str.1: ; @.str.1 .asciz "%g, " l_.str.2: ; @.str.2 .asciz "\n" l_.str.3: ; @.str.3 .asciz "r" l_.str.4: ; @.str.4 .asciz "%g%*c" l_.str.5: ; @.str.5 .asciz "cleanBanker.csv" l_.str.6: ; @.str.6 .asciz "TEST SIZE: %d\n" l_.str.7: ; @.str.7 .asciz "Accuracy: %g\n" l_.str.8: ; @.str.8 .asciz "MAE: %g\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _insertAtEnd ## -- Begin function insertAtEnd .p2align 4, 0x90 _insertAtEnd: ## @insertAtEnd .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movq %rdi, -16(%rbp) movq %rsi, -24(%rbp) movl %edx, -28(%rbp) movq -16(%rbp), %rax movq %rax, -40(%rbp) movl $24, %edi callq _malloc movq %rax, -48(%rbp) movslq -28(%rbp), %rdi shlq $2, %rdi callq _malloc movq %rax, %rcx movq -48(%rbp), %rax movq %rcx, 16(%rax) movq -24(%rbp), %rcx movq -48(%rbp), %rax movq %rcx, 16(%rax) cmpq $0, -40(%rbp) jne LBB0_2 ## %bb.1: movq -48(%rbp), %rax movq %rax, -16(%rbp) movq -48(%rbp), %rcx movq -48(%rbp), %rax movq %rcx, (%rax) movq -48(%rbp), %rcx movq -48(%rbp), %rax movq %rcx, 8(%rax) movq -16(%rbp), %rax movq %rax, -8(%rbp) jmp LBB0_3 LBB0_2: movq -40(%rbp), %rcx movq -48(%rbp), %rax movq %rcx, (%rax) movq -40(%rbp), %rax movq 8(%rax), %rcx movq -48(%rbp), %rax movq %rcx, 8(%rax) movq -48(%rbp), %rcx movq -40(%rbp), %rax movq 8(%rax), %rax movq %rcx, (%rax) movq -48(%rbp), %rcx movq -40(%rbp), %rax movq %rcx, 8(%rax) movq -16(%rbp), %rax movq %rax, -8(%rbp) LBB0_3: movq -8(%rbp), %rax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _display ## -- Begin function display .p2align 4, 0x90 _display: ## @display .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) cmpq $0, -8(%rbp) jne LBB1_2 ## %bb.1: leaq L_.str(%rip), %rdi movb $0, %al callq _printf jmp LBB1_10 LBB1_2: movq -8(%rbp), %rax movq %rax, -24(%rbp) movq -8(%rbp), %rax movq %rax, -32(%rbp) LBB1_3: ## =>This Loop Header: Depth=1 ## Child Loop BB1_4 Depth 2 movl $0, -36(%rbp) LBB1_4: ## Parent Loop BB1_3 Depth=1 ## => This Inner Loop Header: Depth=2 movl -36(%rbp), %eax cmpl -12(%rbp), %eax jge LBB1_7 ## %bb.5: ## in Loop: Header=BB1_4 Depth=2 movq -32(%rbp), %rax movq 16(%rax), %rax movslq -36(%rbp), %rcx movss (%rax,%rcx,4), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 leaq L_.str.1(%rip), %rdi movb $1, %al callq _printf ## %bb.6: ## in Loop: Header=BB1_4 Depth=2 movl -36(%rbp), %eax addl $1, %eax movl %eax, -36(%rbp) jmp LBB1_4 LBB1_7: ## in Loop: Header=BB1_3 Depth=1 leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf movq -32(%rbp), %rax movq (%rax), %rax movq %rax, -32(%rbp) movq -32(%rbp), %rax cmpq -24(%rbp), %rax jne LBB1_9 ## %bb.8: jmp LBB1_10 LBB1_9: ## in Loop: Header=BB1_3 Depth=1 jmp LBB1_3 LBB1_10: addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _listify ## -- Begin function listify .p2align 4, 0x90 _listify: ## @listify .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $64, %rsp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) movq %rdx, -24(%rbp) movl $0, -28(%rbp) movq -8(%rbp), %rdi leaq L_.str.3(%rip), %rsi callq _fopen movq %rax, -40(%rbp) LBB2_1: ## =>This Loop Header: Depth=1 ## Child Loop BB2_2 Depth 2 movl $0, -44(%rbp) movslq -12(%rbp), %rdi shlq $2, %rdi callq _malloc movq %rax, -56(%rbp) LBB2_2: ## Parent Loop BB2_1 Depth=1 ## => This Inner Loop Header: Depth=2 movl -44(%rbp), %eax cmpl -12(%rbp), %eax je LBB2_6 ## %bb.3: ## in Loop: Header=BB2_2 Depth=2 movq -40(%rbp), %rdi movq -56(%rbp), %rdx movslq -44(%rbp), %rax shlq $2, %rax addq %rax, %rdx leaq L_.str.4(%rip), %rsi movb $0, %al callq _fscanf movq -40(%rbp), %rdi callq _feof cmpl $0, %eax je LBB2_5 ## %bb.4: ## in Loop: Header=BB2_2 Depth=2 movl $1, -28(%rbp) LBB2_5: ## in Loop: Header=BB2_2 Depth=2 movl -44(%rbp), %eax addl $1, %eax movl %eax, -44(%rbp) jmp LBB2_2 LBB2_6: ## in Loop: Header=BB2_1 Depth=1 movq -24(%rbp), %rdi movq -56(%rbp), %rsi movl -12(%rbp), %edx callq _insertAtEnd movq %rax, -24(%rbp) cmpl $0, -28(%rbp) je LBB2_8 ## %bb.7: jmp LBB2_9 LBB2_8: ## in Loop: Header=BB2_1 Depth=1 jmp LBB2_1 LBB2_9: movq -24(%rbp), %rax addq $64, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ## -- Begin function splitdata LCPI3_0: .quad 0x41d570a3d6df5c29 ## double 1438814043.49 .section __TEXT,__text,regular,pure_instructions .globl _splitdata .p2align 4, 0x90 _splitdata: ## @splitdata .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) movl %edx, -20(%rbp) movl $0, -44(%rbp) movq -8(%rbp), %rax movq (%rax), %rax movq (%rax), %rax movq %rax, -32(%rbp) LBB3_1: ## =>This Inner Loop Header: Depth=1 movq -32(%rbp), %rax movq -8(%rbp), %rcx cmpq (%rcx), %rax je LBB3_6 ## %bb.2: ## in Loop: Header=BB3_1 Depth=1 callq _rand cvtsi2sd %eax, %xmm0 movsd LCPI3_0(%rip), %xmm1 ## xmm1 = mem[0],zero ucomisd %xmm1, %xmm0 jbe LBB3_4 ## %bb.3: ## in Loop: Header=BB3_1 Depth=1 movq -16(%rbp), %rax movq (%rax), %rdi movq -32(%rbp), %rax movq 16(%rax), %rsi movl -20(%rbp), %edx callq _insertAtEnd movq %rax, %rcx movq -16(%rbp), %rax movq %rcx, (%rax) movq -32(%rbp), %rax movq 8(%rax), %rcx movq -32(%rbp), %rax movq (%rax), %rax movq %rcx, 8(%rax) movq -32(%rbp), %rax movq (%rax), %rcx movq -32(%rbp), %rax movq 8(%rax), %rax movq %rcx, (%rax) movq -32(%rbp), %rax movq %rax, -40(%rbp) movq -32(%rbp), %rax movq 8(%rax), %rax movq %rax, -32(%rbp) movq -40(%rbp), %rdi callq _free movl -44(%rbp), %eax addl $1, %eax movl %eax, -44(%rbp) LBB3_4: ## in Loop: Header=BB3_1 Depth=1 jmp LBB3_5 LBB3_5: ## in Loop: Header=BB3_1 Depth=1 movq -32(%rbp), %rax movq (%rax), %rax movq %rax, -32(%rbp) jmp LBB3_1 LBB3_6: movl -44(%rbp), %eax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ## -- Begin function probability LCPI4_0: .quad 0x3ff0000000000000 ## double 1 LCPI4_1: .quad 0x401921fb54442d18 ## double 6.2831853071795862 LCPI4_2: .quad 0x4000000000000000 ## double 2 .section __TEXT,__text,regular,pure_instructions .globl _probability .p2align 4, 0x90 _probability: ## @probability .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movsd %xmm0, -8(%rbp) movsd %xmm1, -16(%rbp) movsd %xmm2, -24(%rbp) movsd -8(%rbp), %xmm0 ## xmm0 = mem[0],zero subsd -16(%rbp), %xmm0 movsd LCPI4_2(%rip), %xmm1 ## xmm1 = mem[0],zero callq _pow movsd %xmm0, -48(%rbp) ## 8-byte Spill movsd -24(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd LCPI4_2(%rip), %xmm1 ## xmm1 = mem[0],zero callq _pow movaps %xmm0, %xmm2 movsd -48(%rbp), %xmm0 ## 8-byte Reload ## xmm0 = mem[0],zero movsd LCPI4_2(%rip), %xmm1 ## xmm1 = mem[0],zero mulsd %xmm2, %xmm1 divsd %xmm1, %xmm0 movq %xmm0, %rax movabsq $-9223372036854775808, %rcx ## imm = 0x8000000000000000 xorq %rcx, %rax movq %rax, %xmm0 callq _exp movsd %xmm0, -32(%rbp) movsd LCPI4_1(%rip), %xmm0 ## xmm0 = mem[0],zero sqrtsd %xmm0, %xmm1 mulsd -24(%rbp), %xmm1 movsd LCPI4_0(%rip), %xmm0 ## xmm0 = mem[0],zero divsd %xmm1, %xmm0 movsd %xmm0, -40(%rbp) movsd -40(%rbp), %xmm0 ## xmm0 = mem[0],zero mulsd -32(%rbp), %xmm0 addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ## -- Begin function predict LCPI5_0: .quad 0xbff0000000000000 ## double -1 LCPI5_1: .quad 0x3ff0000000000000 ## double 1 .section __TEXT,__text,regular,pure_instructions .globl _predict .p2align 4, 0x90 _predict: ## @predict .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $160, %rsp movl 16(%rbp), %eax movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movq %rdi, -24(%rbp) movq %rsi, -32(%rbp) movq %rdx, -40(%rbp) movq %rcx, -48(%rbp) movl %r8d, -52(%rbp) movl %r9d, -56(%rbp) movq -32(%rbp), %rax movq %rax, -64(%rbp) movl $0, -68(%rbp) LBB5_1: ## =>This Loop Header: Depth=1 ## Child Loop BB5_3 Depth 2 ## Child Loop BB5_5 Depth 3 ## Child Loop BB5_11 Depth 2 movl -68(%rbp), %eax cmpl -52(%rbp), %eax jge LBB5_19 ## %bb.2: ## in Loop: Header=BB5_1 Depth=1 movl 16(%rbp), %eax ## kill: def $rax killed $eax movq %rax, -136(%rbp) ## 8-byte Spill movq %rsp, %rcx movq %rcx, -80(%rbp) shlq $3, %rax callq ____chkstk_darwin addq $15, %rax andq $-16, %rax subq %rax, %rsp movq -136(%rbp), %rax ## 8-byte Reload movq %rsp, %rcx movq %rcx, -128(%rbp) ## 8-byte Spill movq %rax, -88(%rbp) movl $0, -92(%rbp) LBB5_3: ## Parent Loop BB5_1 Depth=1 ## => This Loop Header: Depth=2 ## Child Loop BB5_5 Depth 3 movl -92(%rbp), %eax cmpl 16(%rbp), %eax jge LBB5_10 ## %bb.4: ## in Loop: Header=BB5_3 Depth=2 movq -128(%rbp), %rax ## 8-byte Reload movslq -92(%rbp), %rcx movsd LCPI5_1(%rip), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, (%rax,%rcx,8) movl $0, -96(%rbp) LBB5_5: ## Parent Loop BB5_1 Depth=1 ## Parent Loop BB5_3 Depth=2 ## => This Inner Loop Header: Depth=3 movl -96(%rbp), %eax movl -56(%rbp), %ecx subl $1, %ecx cmpl %ecx, %eax jge LBB5_8 ## %bb.6: ## in Loop: Header=BB5_5 Depth=3 movq -128(%rbp), %rax ## 8-byte Reload movslq -92(%rbp), %rcx movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -144(%rbp) ## 8-byte Spill movq -64(%rbp), %rax movq 16(%rax), %rax movslq -96(%rbp), %rcx movss (%rax,%rcx,4), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movq -40(%rbp), %rax movslq -92(%rbp), %rcx movq (%rax,%rcx,8), %rax movslq -96(%rbp), %rcx movsd (%rax,%rcx,8), %xmm1 ## xmm1 = mem[0],zero movq -48(%rbp), %rax movslq -92(%rbp), %rcx movq (%rax,%rcx,8), %rax movslq -96(%rbp), %rcx movsd (%rax,%rcx,8), %xmm2 ## xmm2 = mem[0],zero callq _probability movq -128(%rbp), %rax ## 8-byte Reload movaps %xmm0, %xmm1 movsd -144(%rbp), %xmm0 ## 8-byte Reload ## xmm0 = mem[0],zero mulsd %xmm1, %xmm0 movslq -92(%rbp), %rcx movsd %xmm0, (%rax,%rcx,8) ## %bb.7: ## in Loop: Header=BB5_5 Depth=3 movl -96(%rbp), %eax addl $1, %eax movl %eax, -96(%rbp) jmp LBB5_5 LBB5_8: ## in Loop: Header=BB5_3 Depth=2 jmp LBB5_9 LBB5_9: ## in Loop: Header=BB5_3 Depth=2 movl -92(%rbp), %eax addl $1, %eax movl %eax, -92(%rbp) jmp LBB5_3 LBB5_10: ## in Loop: Header=BB5_1 Depth=1 movl $-1, -100(%rbp) movsd LCPI5_0(%rip), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -112(%rbp) movl $0, -116(%rbp) LBB5_11: ## Parent Loop BB5_1 Depth=1 ## => This Inner Loop Header: Depth=2 movl -116(%rbp), %eax cmpl 16(%rbp), %eax jge LBB5_17 ## %bb.12: ## in Loop: Header=BB5_11 Depth=2 cmpl $-1, -100(%rbp) je LBB5_14 ## %bb.13: ## in Loop: Header=BB5_11 Depth=2 movq -128(%rbp), %rax ## 8-byte Reload movslq -116(%rbp), %rcx movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero ucomisd -112(%rbp), %xmm0 jbe LBB5_15 LBB5_14: ## in Loop: Header=BB5_11 Depth=2 movq -128(%rbp), %rax ## 8-byte Reload movl -116(%rbp), %ecx movl %ecx, -100(%rbp) movslq -116(%rbp), %rcx movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -112(%rbp) LBB5_15: ## in Loop: Header=BB5_11 Depth=2 jmp LBB5_16 LBB5_16: ## in Loop: Header=BB5_11 Depth=2 movl -116(%rbp), %eax addl $1, %eax movl %eax, -116(%rbp) jmp LBB5_11 LBB5_17: ## in Loop: Header=BB5_1 Depth=1 movl -100(%rbp), %edx movq -24(%rbp), %rax movslq -68(%rbp), %rcx movl %edx, (%rax,%rcx,4) movq -64(%rbp), %rax movq (%rax), %rax movq %rax, -64(%rbp) movq -80(%rbp), %rax movq %rax, %rsp ## %bb.18: ## in Loop: Header=BB5_1 Depth=1 movl -68(%rbp), %eax addl $1, %eax movl %eax, -68(%rbp) jmp LBB5_1 LBB5_19: movsd -16(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -152(%rbp) ## 8-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB5_21 ## %bb.20: movsd -152(%rbp), %xmm0 ## 8-byte Reload ## xmm0 = mem[0],zero movq %rbp, %rsp popq %rbp retq LBB5_21: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ## -- Begin function statistics LCPI6_0: .quad 0x4000000000000000 ## double 2 .section __TEXT,__text,regular,pure_instructions .globl _statistics .p2align 4, 0x90 _statistics: ## @statistics .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 %rdi, -8(%rbp) movl %esi, -12(%rbp) movq %rdx, -24(%rbp) movq %rcx, -32(%rbp) movq %r8, -40(%rbp) movl %r9d, -44(%rbp) cmpq $0, -8(%rbp) je LBB6_22 ## %bb.1: movq -8(%rbp), %rax movq %rax, -56(%rbp) movq -8(%rbp), %rax movq %rax, -64(%rbp) movl $0, -68(%rbp) LBB6_2: ## =>This Loop Header: Depth=1 ## Child Loop BB6_4 Depth 2 ## Child Loop BB6_12 Depth 2 movl -68(%rbp), %eax movl -12(%rbp), %ecx subl $1, %ecx cmpl %ecx, %eax jge LBB6_21 ## %bb.3: ## in Loop: Header=BB6_2 Depth=1 xorps %xmm0, %xmm0 movsd %xmm0, -80(%rbp) xorps %xmm0, %xmm0 movsd %xmm0, -88(%rbp) movl $0, -92(%rbp) LBB6_4: ## Parent Loop BB6_2 Depth=1 ## => This Inner Loop Header: Depth=2 movl -92(%rbp), %eax addl $1, %eax movl %eax, -92(%rbp) movq -64(%rbp), %rax movq (%rax), %rax movq %rax, -64(%rbp) movq -64(%rbp), %rax movq 16(%rax), %rax movl -12(%rbp), %ecx subl $1, %ecx movslq %ecx, %rcx movss (%rax,%rcx,4), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtsi2ssl -44(%rbp), %xmm1 ucomiss %xmm1, %xmm0 jne LBB6_5 jp LBB6_5 jmp LBB6_8 LBB6_5: ## in Loop: Header=BB6_4 Depth=2 movl -92(%rbp), %eax addl $-1, %eax movl %eax, -92(%rbp) movq -64(%rbp), %rax cmpq -56(%rbp), %rax jne LBB6_7 ## %bb.6: ## in Loop: Header=BB6_2 Depth=1 jmp LBB6_11 LBB6_7: ## in Loop: Header=BB6_4 Depth=2 jmp LBB6_4 LBB6_8: ## in Loop: Header=BB6_4 Depth=2 movsd -80(%rbp), %xmm0 ## xmm0 = mem[0],zero movq -64(%rbp), %rax movq 16(%rax), %rax movslq -68(%rbp), %rcx movss (%rax,%rcx,4), %xmm1 ## xmm1 = mem[0],zero,zero,zero cvtss2sd %xmm1, %xmm1 addsd %xmm1, %xmm0 movsd %xmm0, -80(%rbp) movq -64(%rbp), %rax cmpq -56(%rbp), %rax jne LBB6_10 ## %bb.9: ## in Loop: Header=BB6_2 Depth=1 jmp LBB6_11 LBB6_10: ## in Loop: Header=BB6_4 Depth=2 jmp LBB6_4 LBB6_11: ## in Loop: Header=BB6_2 Depth=1 movsd -80(%rbp), %xmm0 ## xmm0 = mem[0],zero cvtsi2sdl -92(%rbp), %xmm1 divsd %xmm1, %xmm0 movq -24(%rbp), %rax movslq -68(%rbp), %rcx movsd %xmm0, (%rax,%rcx,8) movl $0, -92(%rbp) LBB6_12: ## Parent Loop BB6_2 Depth=1 ## => This Inner Loop Header: Depth=2 movl -92(%rbp), %eax addl $1, %eax movl %eax, -92(%rbp) movq -64(%rbp), %rax movq (%rax), %rax movq %rax, -64(%rbp) movq -64(%rbp), %rax movq 16(%rax), %rax movl -12(%rbp), %ecx subl $1, %ecx movslq %ecx, %rcx movss (%rax,%rcx,4), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtsi2ssl -44(%rbp), %xmm1 ucomiss %xmm1, %xmm0 jne LBB6_13 jp LBB6_13 jmp LBB6_16 LBB6_13: ## in Loop: Header=BB6_12 Depth=2 movl -92(%rbp), %eax addl $-1, %eax movl %eax, -92(%rbp) movq -64(%rbp), %rax cmpq -56(%rbp), %rax jne LBB6_15 ## %bb.14: ## in Loop: Header=BB6_2 Depth=1 jmp LBB6_19 LBB6_15: ## in Loop: Header=BB6_12 Depth=2 jmp LBB6_12 LBB6_16: ## in Loop: Header=BB6_12 Depth=2 movsd -88(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -104(%rbp) ## 8-byte Spill movq -64(%rbp), %rax movq 16(%rax), %rax movslq -68(%rbp), %rcx movss (%rax,%rcx,4), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movq -24(%rbp), %rax movslq -68(%rbp), %rcx subsd (%rax,%rcx,8), %xmm0 movsd LCPI6_0(%rip), %xmm1 ## xmm1 = mem[0],zero callq _pow movaps %xmm0, %xmm1 movsd -104(%rbp), %xmm0 ## 8-byte Reload ## xmm0 = mem[0],zero addsd %xmm1, %xmm0 movsd %xmm0, -88(%rbp) movq -64(%rbp), %rax cmpq -56(%rbp), %rax jne LBB6_18 ## %bb.17: ## in Loop: Header=BB6_2 Depth=1 jmp LBB6_19 LBB6_18: ## in Loop: Header=BB6_12 Depth=2 jmp LBB6_12 LBB6_19: ## in Loop: Header=BB6_2 Depth=1 movsd -88(%rbp), %xmm0 ## xmm0 = mem[0],zero cvtsi2sdl -92(%rbp), %xmm1 divsd %xmm1, %xmm0 movq -32(%rbp), %rax movslq -68(%rbp), %rcx movsd %xmm0, (%rax,%rcx,8) movq -32(%rbp), %rax movslq -68(%rbp), %rcx movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero sqrtsd %xmm0, %xmm0 movq -40(%rbp), %rax movslq -68(%rbp), %rcx movsd %xmm0, (%rax,%rcx,8) ## %bb.20: ## in Loop: Header=BB6_2 Depth=1 movl -68(%rbp), %eax addl $1, %eax movl %eax, -68(%rbp) jmp LBB6_2 LBB6_21: jmp LBB6_22 LBB6_22: addq $112, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ## -- Begin function main LCPI7_0: .quad 0x4059000000000000 ## double 100 .section __TEXT,__text,regular,pure_instructions .globl _main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $112, %rsp movl $0, -4(%rbp) xorl %eax, %eax movl %eax, %edi callq _time movl %eax, %edi callq _srand movq $0, -16(%rbp) leaq L_.str.5(%rip), %rax movq %rax, -24(%rbp) movl $21, -28(%rbp) movl $2, -32(%rbp) movq $0, -40(%rbp) movq -24(%rbp), %rdi movl -28(%rbp), %esi movq -16(%rbp), %rdx callq _listify movq %rax, -16(%rbp) movl -28(%rbp), %edx leaq -16(%rbp), %rdi leaq -40(%rbp), %rsi callq _splitdata movl %eax, -44(%rbp) movl -44(%rbp), %esi leaq L_.str.6(%rip), %rdi movb $0, %al callq _printf movl $4, %edi callq _malloc movq %rax, -56(%rbp) movl $4, %edi callq _malloc movq %rax, -64(%rbp) movl $4, %edi callq _malloc movq %rax, -72(%rbp) movl $0, -76(%rbp) LBB7_1: ## =>This Inner Loop Header: Depth=1 movl -76(%rbp), %eax cmpl -32(%rbp), %eax jge LBB7_4 ## %bb.2: ## in Loop: Header=BB7_1 Depth=1 movslq -28(%rbp), %rdi shlq $3, %rdi callq _malloc movq %rax, %rdx movq -56(%rbp), %rax movslq -76(%rbp), %rcx movq %rdx, (%rax,%rcx,8) movslq -28(%rbp), %rdi shlq $3, %rdi callq _malloc movq %rax, %rdx movq -64(%rbp), %rax movslq -76(%rbp), %rcx movq %rdx, (%rax,%rcx,8) movslq -28(%rbp), %rdi shlq $3, %rdi callq _malloc movq %rax, %rdx movq -72(%rbp), %rax movslq -76(%rbp), %rcx movq %rdx, (%rax,%rcx,8) movq -16(%rbp), %rdi movl -28(%rbp), %esi movq -56(%rbp), %rax movslq -76(%rbp), %rcx movq (%rax,%rcx,8), %rdx movq -64(%rbp), %rax movslq -76(%rbp), %rcx movq (%rax,%rcx,8), %rcx movq -72(%rbp), %rax movslq -76(%rbp), %r8 movq (%rax,%r8,8), %r8 movl -76(%rbp), %r9d callq _statistics ## %bb.3: ## in Loop: Header=BB7_1 Depth=1 movl -76(%rbp), %eax addl $1, %eax movl %eax, -76(%rbp) jmp LBB7_1 LBB7_4: movslq -44(%rbp), %rdi shlq $2, %rdi callq _malloc movq %rax, -88(%rbp) movq -88(%rbp), %rdi movq -40(%rbp), %rsi movq -56(%rbp), %rdx movq -72(%rbp), %rcx movl -44(%rbp), %r8d movl -28(%rbp), %r9d movl -32(%rbp), %eax movl %eax, (%rsp) callq _predict xorps %xmm0, %xmm0 movss %xmm0, -92(%rbp) movl $0, -96(%rbp) movl $0, -100(%rbp) LBB7_5: ## =>This Inner Loop Header: Depth=1 movl -100(%rbp), %eax cmpl -44(%rbp), %eax jge LBB7_10 ## %bb.6: ## in Loop: Header=BB7_5 Depth=1 movss -92(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, -104(%rbp) ## 4-byte Spill movq -40(%rbp), %rax movq 16(%rax), %rax movl -28(%rbp), %ecx subl $1, %ecx movslq %ecx, %rcx movss (%rax,%rcx,4), %xmm0 ## xmm0 = mem[0],zero,zero,zero movq -88(%rbp), %rax movslq -100(%rbp), %rcx cvtsi2ssl (%rax,%rcx,4), %xmm1 subss %xmm1, %xmm0 cvttss2si %xmm0, %edi callq _abs movss -104(%rbp), %xmm0 ## 4-byte Reload ## xmm0 = mem[0],zero,zero,zero cvtsi2ss %eax, %xmm1 addss %xmm1, %xmm0 movss %xmm0, -92(%rbp) movq -40(%rbp), %rax movq 16(%rax), %rax movl -28(%rbp), %ecx subl $1, %ecx movslq %ecx, %rcx cvttss2si (%rax,%rcx,4), %eax movq -88(%rbp), %rcx movslq -100(%rbp), %rdx cmpl (%rcx,%rdx,4), %eax je LBB7_8 ## %bb.7: ## in Loop: Header=BB7_5 Depth=1 movl -96(%rbp), %eax addl $1, %eax movl %eax, -96(%rbp) LBB7_8: ## in Loop: Header=BB7_5 Depth=1 movq -40(%rbp), %rax movq (%rax), %rax movq %rax, -40(%rbp) ## %bb.9: ## in Loop: Header=BB7_5 Depth=1 movl -100(%rbp), %eax addl $1, %eax movl %eax, -100(%rbp) jmp LBB7_5 LBB7_10: movl -44(%rbp), %eax subl -96(%rbp), %eax cvtsi2ss %eax, %xmm0 cvtsi2ssl -44(%rbp), %xmm1 divss %xmm1, %xmm0 cvtss2sd %xmm0, %xmm0 movsd LCPI7_0(%rip), %xmm1 ## xmm1 = mem[0],zero mulsd %xmm1, %xmm0 leaq L_.str.7(%rip), %rdi movb $1, %al callq _printf movss -92(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtsi2ssl -44(%rbp), %xmm1 divss %xmm1, %xmm0 cvtss2sd %xmm0, %xmm0 leaq L_.str.8(%rip), %rdi movb $1, %al callq _printf movl -4(%rbp), %eax addq $112, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Empty.\n" L_.str.1: ## @.str.1 .asciz "%g, " L_.str.2: ## @.str.2 .asciz "\n" L_.str.3: ## @.str.3 .asciz "r" L_.str.4: ## @.str.4 .asciz "%g%*c" L_.str.5: ## @.str.5 .asciz "cleanBanker.csv" L_.str.6: ## @.str.6 .asciz "TEST SIZE: %d\n" L_.str.7: ## @.str.7 .asciz "Accuracy: %g\n" L_.str.8: ## @.str.8 .asciz "MAE: %g\n" .subsections_via_symbols
the_stack_data/36075097.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _yyerror ; -- Begin function yyerror .p2align 2 _yyerror: ; @yyerror .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #8] adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] ldr x0, [x8] ldr x8, [sp, #8] mov x9, sp str x8, [x9] adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF bl _fprintf 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 "%s\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _yyerror ## -- Begin function yyerror .p2align 4, 0x90 _yyerror: ## @yyerror .cfi_startproc ## %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 ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movq -8(%rbp), %rdx leaq L_.str(%rip), %rsi movb $0, %al callq _fprintf xorl %eax, %eax addq $16, %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/60394.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #128 .cfi_def_cfa_offset 128 stp x29, x30, [sp, #112] ; 16-byte Folded Spill add x29, sp, #112 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w0, #0 stur wzr, [x29, #-4] movi d0, #0000000000000000 stur s0, [x29, #-12] stur s0, [x29, #-16] stur s0, [x29, #-20] stur s0, [x29, #-24] stur s0, [x29, #-28] stur s0, [x29, #-32] mov w8, #1 strb w8, [sp, #51] adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF bl _setlocale b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldrb w8, [sp, #51] tbz w8, #0, LBB0_18 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 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 ldur w8, [x29, #-8] subs w8, w8, #4 cset w8, ne tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: b LBB0_18 LBB0_4: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-8] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_1 Depth=1 ldur s0, [x29, #-12] fmov s1, #1.00000000 fadd s0, s0, s1 stur s0, [x29, #-12] b LBB0_16 LBB0_6: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-8] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB0_8 b LBB0_7 LBB0_7: ; in Loop: Header=BB0_1 Depth=1 ldur s0, [x29, #-16] fmov s1, #1.00000000 fadd s0, s0, s1 stur s0, [x29, #-16] b LBB0_15 LBB0_8: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-8] subs w8, w8, #2 cset w8, ne tbnz w8, #0, LBB0_10 b LBB0_9 LBB0_9: ; in Loop: Header=BB0_1 Depth=1 ldur s0, [x29, #-20] fmov s1, #1.00000000 fadd s0, s0, s1 stur s0, [x29, #-20] b LBB0_14 LBB0_10: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-8] subs w8, w8, #3 cset w8, ne tbnz w8, #0, LBB0_12 b LBB0_11 LBB0_11: ; in Loop: Header=BB0_1 Depth=1 ldur s0, [x29, #-24] fmov s1, #1.00000000 fadd s0, s0, s1 stur s0, [x29, #-24] b LBB0_13 LBB0_12: ; in Loop: Header=BB0_1 Depth=1 ldur s0, [x29, #-32] fmov s1, #1.00000000 fadd s0, s0, s1 stur s0, [x29, #-32] b LBB0_13 LBB0_13: ; in Loop: Header=BB0_1 Depth=1 b LBB0_14 LBB0_14: ; in Loop: Header=BB0_1 Depth=1 b LBB0_15 LBB0_15: ; in Loop: Header=BB0_1 Depth=1 b LBB0_16 LBB0_16: ; in Loop: Header=BB0_1 Depth=1 b LBB0_17 LBB0_17: ; in Loop: Header=BB0_1 Depth=1 adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF str x0, [sp, #40] ; 8-byte Folded Spill bl _system ldur w9, [x29, #-8] ; 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 adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _system ldr x0, [sp, #40] ; 8-byte Folded Reload ldur s0, [x29, #-28] fmov s1, #1.00000000 fadd s0, s0, s1 stur s0, [x29, #-28] bl _system b LBB0_1 LBB0_18: ldur s0, [x29, #-16] ldur s1, [x29, #-20] fadd s0, s0, s1 ldur s1, [x29, #-24] fadd s0, s0, s1 stur s0, [x29, #-36] ldur s0, [x29, #-36] mov w8, #1120403456 fmov s1, w8 fmul s0, s0, s1 ldur s2, [x29, #-28] fdiv s0, s0, s2 stur s0, [x29, #-40] ldur s0, [x29, #-16] fmul s0, s0, s1 ldur s2, [x29, #-28] fdiv s0, s0, s2 stur s0, [x29, #-44] ldur s0, [x29, #-20] fmul s0, s0, s1 ldur s2, [x29, #-28] fdiv s0, s0, s2 stur s0, [x29, #-48] ldur s0, [x29, #-24] fmul s0, s0, s1 ldur s2, [x29, #-28] fdiv s0, s0, s2 stur s0, [x29, #-52] ldur s0, [x29, #-32] fmul s0, s0, s1 ldur s2, [x29, #-28] fdiv s0, s0, s2 str s0, [sp, #56] ldur s0, [x29, #-12] fmul s0, s0, s1 ldur s1, [x29, #-28] fdiv s0, s0, s1 str s0, [sp, #52] adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _system ldur s0, [x29, #-12] fcvt d4, s0 ldur s0, [x29, #-16] fcvt d3, s0 ldur s0, [x29, #-20] fcvt d2, s0 ldur s0, [x29, #-24] fcvt d1, s0 ldur s0, [x29, #-32] fcvt d0, s0 mov x8, sp str d4, [x8] str d3, [x8, #8] str d2, [x8, #16] str d1, [x8, #24] str d0, [x8, #32] adrp x0, l_.str.7@PAGE add x0, x0, l_.str.7@PAGEOFF bl _printf ldur s0, [x29, #-28] fcvt d0, s0 mov x8, sp str d0, [x8] adrp x0, l_.str.8@PAGE add x0, x0, l_.str.8@PAGEOFF bl _printf ldur s0, [x29, #-40] fcvt d0, s0 mov x8, sp str d0, [x8] adrp x0, l_.str.9@PAGE add x0, x0, l_.str.9@PAGEOFF bl _printf ldur s0, [x29, #-44] fcvt d0, s0 mov x8, sp str d0, [x8] adrp x0, l_.str.10@PAGE add x0, x0, l_.str.10@PAGEOFF bl _printf ldur s0, [x29, #-48] fcvt d0, s0 mov x8, sp str d0, [x8] adrp x0, l_.str.11@PAGE add x0, x0, l_.str.11@PAGEOFF bl _printf ldur s0, [x29, #-52] fcvt d0, s0 mov x8, sp str d0, [x8] adrp x0, l_.str.12@PAGE add x0, x0, l_.str.12@PAGEOFF bl _printf ldr s0, [sp, #52] fcvt d0, s0 mov x8, sp str d0, [x8] adrp x0, l_.str.13@PAGE add x0, x0, l_.str.13@PAGEOFF bl _printf ldr s0, [sp, #56] fcvt d0, s0 mov x8, sp str d0, [x8] adrp x0, l_.str.14@PAGE add x0, x0, l_.str.14@PAGEOFF bl _printf adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _system ldur w0, [x29, #-4] ldp x29, x30, [sp, #112] ; 16-byte Folded Reload add sp, sp, #128 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Portuguese" l_.str.1: ; @.str.1 .asciz "\nVotar em branco: 0\nCandidato A: 1 \nCandidato B: 2 \nCandidato C: 3 \nParar votacao: 4\n\n" l_.str.2: ; @.str.2 .asciz "Digite o seu voto: " l_.str.3: ; @.str.3 .asciz "%d" l_.str.4: ; @.str.4 .asciz "cls" l_.str.5: ; @.str.5 .asciz "\nSeu voto foi %d\n\n" l_.str.6: ; @.str.6 .asciz "pause" l_.str.7: ; @.str.7 .asciz "Voto branco %f \nCandidato A %f \nCandidato B %f \nCandidato C %f \nVotos nulos %f \n" l_.str.8: ; @.str.8 .asciz "\n\nTotal de eleitores %f" l_.str.9: ; @.str.9 .asciz "\nVotos validos %f por cento" l_.str.10: ; @.str.10 .asciz "\nVotos para o candidato A %f por cento" l_.str.11: ; @.str.11 .asciz "\nVotos para o candidato B %f por cento" l_.str.12: ; @.str.12 .asciz "\nVotos para o candidato C %f por cento" l_.str.13: ; @.str.13 .asciz "\nVotos Brancos %f por cento" l_.str.14: ; @.str.14 .asciz "\nVotos nulos %f por cento\n\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __TEXT,__literal4,4byte_literals .p2align 2 ## -- Begin function main LCPI0_0: .long 0x3f800000 ## float 1 LCPI0_1: .long 0x42c80000 ## float 100 .section __TEXT,__text,regular,pure_instructions .globl _main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $64, %rsp movl $0, -4(%rbp) xorps %xmm0, %xmm0 movss %xmm0, -12(%rbp) xorps %xmm0, %xmm0 movss %xmm0, -16(%rbp) xorps %xmm0, %xmm0 movss %xmm0, -20(%rbp) xorps %xmm0, %xmm0 movss %xmm0, -24(%rbp) xorps %xmm0, %xmm0 movss %xmm0, -28(%rbp) xorps %xmm0, %xmm0 movss %xmm0, -32(%rbp) movb $1, -61(%rbp) xorl %edi, %edi leaq L_.str(%rip), %rsi callq _setlocale LBB0_1: ## =>This Inner Loop Header: Depth=1 testb $1, -61(%rbp) je LBB0_18 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 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 cmpl $4, -8(%rbp) jne LBB0_4 ## %bb.3: jmp LBB0_18 LBB0_4: ## in Loop: Header=BB0_1 Depth=1 cmpl $0, -8(%rbp) jne LBB0_6 ## %bb.5: ## in Loop: Header=BB0_1 Depth=1 movss LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero addss -12(%rbp), %xmm0 movss %xmm0, -12(%rbp) jmp LBB0_16 LBB0_6: ## in Loop: Header=BB0_1 Depth=1 cmpl $1, -8(%rbp) jne LBB0_8 ## %bb.7: ## in Loop: Header=BB0_1 Depth=1 movss LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero addss -16(%rbp), %xmm0 movss %xmm0, -16(%rbp) jmp LBB0_15 LBB0_8: ## in Loop: Header=BB0_1 Depth=1 cmpl $2, -8(%rbp) jne LBB0_10 ## %bb.9: ## in Loop: Header=BB0_1 Depth=1 movss LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero addss -20(%rbp), %xmm0 movss %xmm0, -20(%rbp) jmp LBB0_14 LBB0_10: ## in Loop: Header=BB0_1 Depth=1 cmpl $3, -8(%rbp) jne LBB0_12 ## %bb.11: ## in Loop: Header=BB0_1 Depth=1 movss LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero addss -24(%rbp), %xmm0 movss %xmm0, -24(%rbp) jmp LBB0_13 LBB0_12: ## in Loop: Header=BB0_1 Depth=1 movss LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero addss -32(%rbp), %xmm0 movss %xmm0, -32(%rbp) LBB0_13: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_14 LBB0_14: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_15 LBB0_15: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_16 LBB0_16: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_17 LBB0_17: ## in Loop: Header=BB0_1 Depth=1 leaq L_.str.4(%rip), %rdi callq _system movl -8(%rbp), %esi leaq L_.str.5(%rip), %rdi movb $0, %al callq _printf leaq L_.str.6(%rip), %rdi callq _system movss LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero addss -28(%rbp), %xmm0 movss %xmm0, -28(%rbp) leaq L_.str.4(%rip), %rdi callq _system jmp LBB0_1 LBB0_18: movss -16(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero addss -20(%rbp), %xmm0 addss -24(%rbp), %xmm0 movss %xmm0, -36(%rbp) movss LCPI0_1(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero mulss -36(%rbp), %xmm0 divss -28(%rbp), %xmm0 movss %xmm0, -40(%rbp) movss LCPI0_1(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero mulss -16(%rbp), %xmm0 divss -28(%rbp), %xmm0 movss %xmm0, -44(%rbp) movss LCPI0_1(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero mulss -20(%rbp), %xmm0 divss -28(%rbp), %xmm0 movss %xmm0, -48(%rbp) movss LCPI0_1(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero mulss -24(%rbp), %xmm0 divss -28(%rbp), %xmm0 movss %xmm0, -52(%rbp) movss LCPI0_1(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero mulss -32(%rbp), %xmm0 divss -28(%rbp), %xmm0 movss %xmm0, -56(%rbp) movss LCPI0_1(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero mulss -12(%rbp), %xmm0 divss -28(%rbp), %xmm0 movss %xmm0, -60(%rbp) leaq L_.str.4(%rip), %rdi callq _system 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 movss -20(%rbp), %xmm2 ## xmm2 = mem[0],zero,zero,zero cvtss2sd %xmm2, %xmm2 movss -24(%rbp), %xmm3 ## xmm3 = mem[0],zero,zero,zero cvtss2sd %xmm3, %xmm3 movss -32(%rbp), %xmm4 ## xmm4 = mem[0],zero,zero,zero cvtss2sd %xmm4, %xmm4 leaq L_.str.7(%rip), %rdi movb $5, %al callq _printf movss -28(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 leaq L_.str.8(%rip), %rdi movb $1, %al callq _printf movss -40(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 leaq L_.str.9(%rip), %rdi movb $1, %al callq _printf movss -44(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 leaq L_.str.10(%rip), %rdi movb $1, %al callq _printf movss -48(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 leaq L_.str.11(%rip), %rdi movb $1, %al callq _printf movss -52(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 leaq L_.str.12(%rip), %rdi movb $1, %al callq _printf movss -60(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 leaq L_.str.13(%rip), %rdi movb $1, %al callq _printf movss -56(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 leaq L_.str.14(%rip), %rdi movb $1, %al callq _printf leaq L_.str.6(%rip), %rdi callq _system movl -4(%rbp), %eax addq $64, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Portuguese" L_.str.1: ## @.str.1 .asciz "\nVotar em branco: 0\nCandidato A: 1 \nCandidato B: 2 \nCandidato C: 3 \nParar votacao: 4\n\n" L_.str.2: ## @.str.2 .asciz "Digite o seu voto: " L_.str.3: ## @.str.3 .asciz "%d" L_.str.4: ## @.str.4 .asciz "cls" L_.str.5: ## @.str.5 .asciz "\nSeu voto foi %d\n\n" L_.str.6: ## @.str.6 .asciz "pause" L_.str.7: ## @.str.7 .asciz "Voto branco %f \nCandidato A %f \nCandidato B %f \nCandidato C %f \nVotos nulos %f \n" L_.str.8: ## @.str.8 .asciz "\n\nTotal de eleitores %f" L_.str.9: ## @.str.9 .asciz "\nVotos validos %f por cento" L_.str.10: ## @.str.10 .asciz "\nVotos para o candidato A %f por cento" L_.str.11: ## @.str.11 .asciz "\nVotos para o candidato B %f por cento" L_.str.12: ## @.str.12 .asciz "\nVotos para o candidato C %f por cento" L_.str.13: ## @.str.13 .asciz "\nVotos Brancos %f por cento" L_.str.14: ## @.str.14 .asciz "\nVotos nulos %f por cento\n\n" .subsections_via_symbols
the_stack_data/151705579.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _nine_zero ; -- Begin function nine_zero .p2align 2 _nine_zero: ; @nine_zero .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str w0, [sp, #28] mov w8, #1 str w8, [sp, #24] b LBB0_1 LBB0_1: ; =>This Loop Header: Depth=1 ; Child Loop BB0_2 Depth 2 str xzr, [sp, #16] mov x8, #9 str x8, [sp, #8] ldr w8, [sp, #24] str w8, [sp, #4] b LBB0_2 LBB0_2: ; Parent Loop BB0_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #4] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_7 b LBB0_3 LBB0_3: ; in Loop: Header=BB0_2 Depth=2 ldr w8, [sp, #4] ands w8, w8, #0x1 cset w8, eq tbnz w8, #0, LBB0_5 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_2 Depth=2 ldr x9, [sp, #8] ldr x8, [sp, #16] add x8, x8, x9 str x8, [sp, #16] b LBB0_5 LBB0_5: ; in Loop: Header=BB0_2 Depth=2 ldr x8, [sp, #8] mov x9, #10 mul x8, x8, x9 str x8, [sp, #8] b LBB0_6 LBB0_6: ; in Loop: Header=BB0_2 Depth=2 ldr w8, [sp, #4] asr w8, w8, #1 str w8, [sp, #4] b LBB0_2 LBB0_7: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #16] ldrsw x10, [sp, #28] sdiv x9, x8, x10 mul x9, x9, x10 subs x8, x8, x9 subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB0_9 b LBB0_8 LBB0_8: ldr x0, [sp, #16] add sp, sp, #32 ret LBB0_9: ; in Loop: Header=BB0_1 Depth=1 b LBB0_10 LBB0_10: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #24] add w8, w8, #1 str w8, [sp, #24] b LBB0_1 .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] mov x9, sp sub x8, x29, #8 str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _scanf b LBB1_1 LBB1_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-8] subs w9, w8, #1 stur w9, [x29, #-8] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB1_3 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 mov x9, sp sub x8, x29, #12 str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _scanf ldur w0, [x29, #-12] bl _nine_zero mov x8, sp str x0, [x8] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf b LBB1_1 LBB1_3: mov w0, #0 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d" l_.str.1: ; @.str.1 .asciz "%ld\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _nine_zero ## -- Begin function nine_zero .p2align 4, 0x90 _nine_zero: ## @nine_zero .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, -4(%rbp) movl $1, -8(%rbp) LBB0_1: ## =>This Loop Header: Depth=1 ## Child Loop BB0_2 Depth 2 movq $0, -16(%rbp) movq $9, -24(%rbp) movl -8(%rbp), %eax movl %eax, -28(%rbp) LBB0_2: ## Parent Loop BB0_1 Depth=1 ## => This Inner Loop Header: Depth=2 cmpl $0, -28(%rbp) je LBB0_7 ## %bb.3: ## in Loop: Header=BB0_2 Depth=2 movl -28(%rbp), %eax andl $1, %eax cmpl $0, %eax je LBB0_5 ## %bb.4: ## in Loop: Header=BB0_2 Depth=2 movq -24(%rbp), %rax addq -16(%rbp), %rax movq %rax, -16(%rbp) LBB0_5: ## in Loop: Header=BB0_2 Depth=2 imulq $10, -24(%rbp), %rax movq %rax, -24(%rbp) ## %bb.6: ## in Loop: Header=BB0_2 Depth=2 movl -28(%rbp), %eax sarl $1, %eax movl %eax, -28(%rbp) jmp LBB0_2 LBB0_7: ## in Loop: Header=BB0_1 Depth=1 movq -16(%rbp), %rax movslq -4(%rbp), %rcx cqto idivq %rcx cmpq $0, %rdx jne LBB0_9 ## %bb.8: movq -16(%rbp), %rax popq %rbp retq LBB0_9: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_10 LBB0_10: ## in Loop: Header=BB0_1 Depth=1 movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) jmp LBB0_1 .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) leaq L_.str(%rip), %rdi leaq -8(%rbp), %rsi movb $0, %al callq _scanf LBB1_1: ## =>This Inner Loop Header: Depth=1 movl -8(%rbp), %eax movl %eax, %ecx addl $-1, %ecx movl %ecx, -8(%rbp) cmpl $0, %eax je LBB1_3 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 leaq L_.str(%rip), %rdi leaq -12(%rbp), %rsi movb $0, %al callq _scanf movl -12(%rbp), %edi callq _nine_zero movq %rax, %rsi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf jmp LBB1_1 LBB1_3: xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d" L_.str.1: ## @.str.1 .asciz "%ld\n" .subsections_via_symbols
the_stack_data/150142934.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: stp x28, x27, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w27, -24 .cfi_offset w28, -32 sub sp, sp, #1664 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] mov w8, #0 str w8, [sp, #28] ; 4-byte Folded Spill str wzr, [sp, #372] str w0, [sp, #368] str x1, [sp, #360] ; kill: def $x8 killed $xzr str xzr, [sp, #352] str xzr, [sp, #344] str xzr, [sp, #336] add x0, sp, #632 str x0, [sp, #40] ; 8-byte Folded Spill mov x1, #1024 str x1, [sp, #48] ; 8-byte Folded Spill bl _bzero ldr w1, [sp, #28] ; 4-byte Folded Reload add x0, sp, #376 mov x2, #256 bl _memset ldr w1, [sp, #28] ; 4-byte Folded Reload str xzr, [sp, #328] str xzr, [sp, #320] mov w8, #1 str w8, [sp, #316] str wzr, [sp, #312] str wzr, [sp, #308] str wzr, [sp, #304] str wzr, [sp, #300] add x0, sp, #72 str x0, [sp, #32] ; 8-byte Folded Spill mov x2, #224 bl _memset ldr x0, [sp, #32] ; 8-byte Folded Reload ldr x1, [sp, #40] ; 8-byte Folded Reload ldr x2, [sp, #48] ; 8-byte Folded Reload bl _init_cmd_stack adrp x8, l_.str@PAGE add x8, x8, l_.str@PAGEOFF str x8, [sp, #352] adrp x8, l_.str.1@PAGE add x8, x8, l_.str.1@PAGEOFF str x8, [sp, #336] ldr x8, [sp, #352] mov x9, sp str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf ldr x8, [sp, #336] mov x9, sp str x8, [x9] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf ldr x8, [sp, #352] str x8, [sp, #344] b LBB0_1 LBB0_1: ; =>This Loop Header: Depth=1 ; Child Loop BB0_37 Depth 2 ; Child Loop BB0_14 Depth 2 ; Child Loop BB0_6 Depth 2 ldr w8, [sp, #316] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_41 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #344] ldrsb w8, [x8] str w8, [sp, #24] ; 4-byte Folded Spill subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_5 b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #24] ; 4-byte Folded Reload subs w8, w8, #10 cset w8, eq tbnz w8, #0, LBB0_10 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #24] ; 4-byte Folded Reload subs w8, w8, #32 cset w8, eq tbnz w8, #0, LBB0_9 b LBB0_28 LBB0_5: ; in Loop: Header=BB0_1 Depth=1 b LBB0_6 LBB0_6: ; Parent Loop BB0_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #96] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_8 b LBB0_7 LBB0_7: ; in Loop: Header=BB0_6 Depth=2 add x0, sp, #72 bl _pop str x0, [sp, #328] ldr x8, [sp, #328] mov x9, sp str x8, [x9] adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf b LBB0_6 LBB0_8: ; in Loop: Header=BB0_1 Depth=1 adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _printf str wzr, [sp, #316] b LBB0_40 LBB0_9: adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] ldr x0, [x8] adrp x1, l_.str.7@PAGE add x1, x1, l_.str.7@PAGEOFF bl _fprintf b LBB0_42 LBB0_10: ; in Loop: Header=BB0_1 Depth=1 add x0, sp, #304 add x1, sp, #344 bl _read_indent str w0, [sp, #312] subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB0_12 b LBB0_11 LBB0_11: b LBB0_42 LBB0_12: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #304] ldr w9, [sp, #308] subs w8, w8, w9 str w8, [sp, #300] ldr w8, [sp, #300] subs w8, w8, #0 cset w8, ge tbnz w8, #0, LBB0_18 b LBB0_13 LBB0_13: ; in Loop: Header=BB0_1 Depth=1 b LBB0_14 LBB0_14: ; Parent Loop BB0_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #300] subs w8, w8, #0 cset w8, ge tbnz w8, #0, LBB0_17 b LBB0_15 LBB0_15: ; in Loop: Header=BB0_14 Depth=2 add x0, sp, #72 bl _pop str x0, [sp, #320] ldr x8, [sp, #320] mov x9, sp str x8, [x9] adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf b LBB0_16 LBB0_16: ; in Loop: Header=BB0_14 Depth=2 ldr w8, [sp, #300] add w8, w8, #1 str w8, [sp, #300] b LBB0_14 LBB0_17: ; in Loop: Header=BB0_1 Depth=1 b LBB0_27 LBB0_18: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #300] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_20 b LBB0_19 LBB0_19: ; in Loop: Header=BB0_1 Depth=1 add x0, sp, #72 bl _pop str x0, [sp, #328] ldr x8, [sp, #328] mov x9, sp str x8, [x9] adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf b LBB0_26 LBB0_20: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #300] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB0_24 b LBB0_21 LBB0_21: ; in Loop: Header=BB0_1 Depth=1 add x8, sp, #72 add x8, x8, #160 ldr w9, [sp, #96] subs w9, w9, #1 add x8, x8, w9, sxtw #2 str x8, [sp, #64] ldr x8, [sp, #64] ldr w8, [x8] mov w10, #2 sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_23 b LBB0_22 LBB0_22: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #328] mov x9, sp str x8, [x9] adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf b LBB0_23 LBB0_23: ; in Loop: Header=BB0_1 Depth=1 b LBB0_25 LBB0_24: adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] ldr x0, [x8] ldr w8, [sp, #308] ; implicit-def: $x10 mov x10, x8 ldr w9, [sp, #304] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x1, l_.str.8@PAGE add x1, x1, l_.str.8@PAGEOFF bl _fprintf b LBB0_42 LBB0_25: ; in Loop: Header=BB0_1 Depth=1 b LBB0_26 LBB0_26: ; in Loop: Header=BB0_1 Depth=1 b LBB0_27 LBB0_27: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #304] str w8, [sp, #308] ; kill: def $x8 killed $xzr str xzr, [sp, #328] b LBB0_40 LBB0_28: ; in Loop: Header=BB0_1 Depth=1 add x0, sp, #376 mov w1, #256 add x2, sp, #344 bl _read_token str w0, [sp, #312] subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB0_30 b LBB0_29 LBB0_29: b LBB0_42 LBB0_30: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #328] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB0_32 b LBB0_31 LBB0_31: ; in Loop: Header=BB0_1 Depth=1 add x0, sp, #72 add x1, sp, #376 bl _push str x0, [sp, #328] b LBB0_36 LBB0_32: ; in Loop: Header=BB0_1 Depth=1 add x8, sp, #72 add x8, x8, #160 ldr w9, [sp, #96] subs w9, w9, #1 add x8, x8, w9, sxtw #2 str x8, [sp, #56] ldr x8, [sp, #56] ldr w8, [x8] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB0_35 b LBB0_33 LBB0_33: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #56] ldr w8, [x8] mov w10, #2 sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_35 b LBB0_34 LBB0_34: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #328] mov x9, sp str x8, [x9] adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf b LBB0_35 LBB0_35: ; in Loop: Header=BB0_1 Depth=1 mov x9, sp add x8, sp, #376 str x8, [x9] adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf ldr x9, [sp, #56] ldr w8, [x9] add w8, w8, #1 str w8, [x9] b LBB0_36 LBB0_36: ; in Loop: Header=BB0_1 Depth=1 b LBB0_37 LBB0_37: ; Parent Loop BB0_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr x8, [sp, #344] ldrsb w8, [x8] subs w8, w8, #32 cset w8, ne tbnz w8, #0, LBB0_39 b LBB0_38 LBB0_38: ; in Loop: Header=BB0_37 Depth=2 ldr x8, [sp, #344] add x8, x8, #1 str x8, [sp, #344] b LBB0_37 LBB0_39: ; in Loop: Header=BB0_1 Depth=1 b LBB0_40 LBB0_40: ; in Loop: Header=BB0_1 Depth=1 b LBB0_1 LBB0_41: str wzr, [sp, #372] b LBB0_43 LBB0_42: mov w8, #1 str w8, [sp, #372] b LBB0_43 LBB0_43: ldr w8, [sp, #372] str w8, [sp, #20] ; 4-byte Folded Spill ldur x9, [x29, #-24] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_45 b LBB0_44 LBB0_44: bl ___stack_chk_fail LBB0_45: ldr w0, [sp, #20] ; 4-byte Folded Reload add sp, sp, #1664 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x28, x27, [sp], #32 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .globl _init_cmd_stack ; -- Begin function init_cmd_stack .p2align 2 _init_cmd_stack: ; @init_cmd_stack .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] ldur x8, [x29, #-16] ldur x9, [x29, #-8] str x8, [x9] ldur x8, [x29, #-16] ldur x9, [x29, #-8] str x8, [x9, #8] ldur x8, [x29, #-16] ldr x9, [sp, #24] add x8, x8, x9 ldur x9, [x29, #-8] str x8, [x9, #16] ldur x8, [x29, #-8] mov w1, #0 str w1, [sp, #12] ; 4-byte Folded Spill str wzr, [x8, #24] ldur x9, [x29, #-8] mov w8, #16 str w8, [x9, #28] ldur x8, [x29, #-8] ldr x0, [x8] ldr x2, [sp, #24] mov x3, #-1 str x3, [sp, #16] ; 8-byte Folded Spill bl ___memset_chk ldr w1, [sp, #12] ; 4-byte Folded Reload ldr x3, [sp, #16] ; 8-byte Folded Reload ldur x8, [x29, #-8] add x0, x8, #160 mov x2, #64 bl ___memset_chk ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _pop ; -- Begin function pop .p2align 2 _pop: ; @pop .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp] ldr x8, [sp] ldr w8, [x8, #24] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB2_2 b LBB2_1 LBB2_1: ; kill: def $x8 killed $xzr str xzr, [sp, #8] b LBB2_3 LBB2_2: ldr x9, [sp] ldr w8, [x9, #24] subs w8, w8, #1 str w8, [x9, #24] ldr x8, [sp] add x8, x8, #32 ldr x9, [sp] ldrsw x9, [x9, #24] ldr x8, [x8, x9, lsl #3] ldr x9, [sp] str x8, [x9, #8] ldr x8, [sp] ldr x8, [x8, #8] str x8, [sp, #8] b LBB2_3 LBB2_3: ldr x0, [sp, #8] add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _read_indent ; -- Begin function read_indent .p2align 2 _read_indent: ; @read_indent .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, #-24] ldr x8, [x8] str x8, [sp, #32] ; kill: def $x8 killed $xzr str xzr, [sp, #24] str wzr, [sp, #20] ldr x8, [sp, #32] add x8, x8, #1 str x8, [sp, #32] ldr x8, [sp, #32] str x8, [sp, #24] b LBB3_1 LBB3_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #24] ldrsb w8, [x8] subs w8, w8, #32 cset w8, ne tbnz w8, #0, LBB3_3 b LBB3_2 LBB3_2: ; in Loop: Header=BB3_1 Depth=1 ldr x8, [sp, #24] add x8, x8, #1 str x8, [sp, #24] b LBB3_1 LBB3_3: ldr x8, [sp, #24] ldr x9, [sp, #32] subs x8, x8, x9 ; kill: def $w8 killed $w8 killed $x8 str w8, [sp, #20] ldr w8, [sp, #20] mov w10, #2 sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB3_5 b LBB3_4 LBB3_4: adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] ldr x0, [x8] ldr w9, [sp, #20] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x1, l_.str.11@PAGE add x1, x1, l_.str.11@PAGEOFF bl _fprintf mov w8, #1 stur w8, [x29, #-4] b LBB3_6 LBB3_5: ldr w8, [sp, #20] mov w9, #2 sdiv w8, w8, w9 ldur x9, [x29, #-16] str w8, [x9] ldr x8, [sp, #24] ldur x9, [x29, #-24] str x8, [x9] stur wzr, [x29, #-4] b LBB3_6 LBB3_6: ldur w0, [x29, #-4] ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .globl _read_token ; -- Begin function read_token .p2align 2 _read_token: ; @read_token .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] str x2, [sp, #32] str wzr, [sp, #28] ; kill: def $x8 killed $xzr str xzr, [sp, #16] ldr x8, [sp, #32] ldr x8, [x8] str x8, [sp, #8] ldr x8, [sp, #8] str x8, [sp, #16] b LBB4_1 LBB4_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #16] ldrsb w8, [x8] subs w8, w8, #32 cset w8, eq mov w9, #0 str w9, [sp, #4] ; 4-byte Folded Spill tbnz w8, #0, LBB4_4 b LBB4_2 LBB4_2: ; in Loop: Header=BB4_1 Depth=1 ldr x8, [sp, #16] ldrsb w8, [x8] subs w8, w8, #10 cset w8, eq mov w9, #0 str w9, [sp, #4] ; 4-byte Folded Spill tbnz w8, #0, LBB4_4 b LBB4_3 LBB4_3: ; in Loop: Header=BB4_1 Depth=1 ldr x8, [sp, #16] ldrsb w8, [x8] subs w8, w8, #0 cset w8, ne str w8, [sp, #4] ; 4-byte Folded Spill b LBB4_4 LBB4_4: ; in Loop: Header=BB4_1 Depth=1 ldr w8, [sp, #4] ; 4-byte Folded Reload tbz w8, #0, LBB4_6 b LBB4_5 LBB4_5: ; in Loop: Header=BB4_1 Depth=1 ldr x8, [sp, #16] add x8, x8, #1 str x8, [sp, #16] b LBB4_1 LBB4_6: ldr x8, [sp, #16] ldr x9, [sp, #8] subs x8, x8, x9 ; kill: def $w8 killed $w8 killed $x8 str w8, [sp, #28] ldr w8, [sp, #28] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB4_8 b LBB4_7 LBB4_7: adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] ldr x0, [x8] adrp x1, l_.str.9@PAGE add x1, x1, l_.str.9@PAGEOFF bl _fprintf mov w8, #1 stur w8, [x29, #-4] b LBB4_11 LBB4_8: ldr w8, [sp, #28] ldur w9, [x29, #-20] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB4_10 b LBB4_9 LBB4_9: adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] ldr x0, [x8] adrp x1, l_.str.10@PAGE add x1, x1, l_.str.10@PAGEOFF bl _fprintf mov w8, #1 stur w8, [x29, #-4] b LBB4_11 LBB4_10: ldur x0, [x29, #-16] ldr x1, [sp, #8] ldrsw x2, [sp, #28] mov x3, #-1 bl ___strncpy_chk ldur x8, [x29, #-16] ldrsw x9, [sp, #28] add x8, x8, x9 strb wzr, [x8] ldr x8, [sp, #16] ldr x9, [sp, #32] str x8, [x9] stur wzr, [x29, #-4] b LBB4_11 LBB4_11: ldur w0, [x29, #-4] ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .globl _push ; -- Begin function push .p2align 2 _push: ; @push .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] str x1, [sp, #16] ldr x0, [sp, #16] bl _strlen mov x8, x0 str w8, [sp, #12] ldur x8, [x29, #-8] ldr x8, [x8, #8] str x8, [sp] ldur x8, [x29, #-8] ldr x8, [x8, #8] ldur x9, [x29, #-8] add x9, x9, #32 ldur x10, [x29, #-8] ldrsw x10, [x10, #24] str x8, [x9, x10, lsl #3] ldur x8, [x29, #-8] ldr x0, [x8, #8] ldr x1, [sp, #16] mov x2, #-1 bl ___strcpy_chk ldur x9, [x29, #-8] ldr w8, [x9, #24] add w8, w8, #1 str w8, [x9, #24] ldr w8, [sp, #12] add w10, w8, #1 ldur x9, [x29, #-8] ldr x8, [x9, #8] add x8, x8, w10, sxtw str x8, [x9, #8] ldr x0, [sp] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _peek ; -- Begin function peek .p2align 2 _peek: ; @peek .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp] ldr x8, [sp] ldr w8, [x8, #24] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB6_2 b LBB6_1 LBB6_1: ; kill: def $x8 killed $xzr str xzr, [sp, #8] b LBB6_3 LBB6_2: ldr x8, [sp] add x8, x8, #32 ldr x9, [sp] ldr w9, [x9, #24] subs w9, w9, #1 ldr x8, [x8, w9, sxtw #3] str x8, [sp, #8] b LBB6_3 LBB6_3: ldr x0, [sp, #8] add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _print_cmd_stack ; -- Begin function print_cmd_stack .p2align 2 _print_cmd_stack: ; @print_cmd_stack .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] ; kill: def $x8 killed $xzr stur xzr, [x29, #-16] stur wzr, [x29, #-20] ldur x8, [x29, #-8] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB7_2 b LBB7_1 LBB7_1: adrp x0, l_.str.12@PAGE add x0, x0, l_.str.12@PAGEOFF bl _printf b LBB7_6 LBB7_2: ldur x8, [x29, #-8] ldr w9, [x8, #24] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.13@PAGE add x0, x0, l_.str.13@PAGEOFF bl _printf stur wzr, [x29, #-20] b LBB7_3 LBB7_3: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-20] ldur x9, [x29, #-8] ldr w9, [x9, #24] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB7_6 b LBB7_4 LBB7_4: ; in Loop: Header=BB7_3 Depth=1 ldur w8, [x29, #-20] ; implicit-def: $x10 mov x10, x8 ldur x8, [x29, #-8] add x8, x8, #32 ldursw x9, [x29, #-20] ldr x8, [x8, x9, lsl #3] mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x0, l_.str.14@PAGE add x0, x0, l_.str.14@PAGEOFF bl _printf b LBB7_5 LBB7_5: ; in Loop: Header=BB7_3 Depth=1 ldur w8, [x29, #-20] add w8, w8, #1 stur w8, [x29, #-20] b LBB7_3 LBB7_6: ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .section __TEXT,__const .globl _indent_width ; @indent_width .p2align 2 _indent_width: .long 2 ; 0x2 .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "+ 3 4 5\n + 6 7\n" l_.str.1: ; @.str.1 .asciz "3 4 + 5 + 6 7 + +" l_.str.2: ; @.str.2 .asciz "code:\n%s\n\n" l_.str.3: ; @.str.3 .asciz "er:\n%s\n\n" l_.str.4: ; @.str.4 .asciz "r:\n" l_.str.5: ; @.str.5 .asciz "%s " l_.str.6: ; @.str.6 .asciz "\n" l_.str.7: ; @.str.7 .asciz "error: unexpected space\n" l_.str.8: ; @.str.8 .asciz "error: invalid indent, old: %d, new: %d\n" l_.str.9: ; @.str.9 .asciz "no more tokens\n" l_.str.10: ; @.str.10 .asciz "token too long\n" l_.str.11: ; @.str.11 .asciz "error invalid indent width: %d\n" l_.str.12: ; @.str.12 .asciz "stack is NULL\n" l_.str.13: ; @.str.13 .asciz "stack %d:\n" l_.str.14: ; @.str.14 .asciz "%d,%s\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $1632, %rsp ## imm = 0x660 movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -1300(%rbp) movl %edi, -1304(%rbp) movq %rsi, -1312(%rbp) movq $0, -1320(%rbp) movq $0, -1328(%rbp) movq $0, -1336(%rbp) leaq -1040(%rbp), %rdi xorl %esi, %esi movl $1024, %edx ## imm = 0x400 callq _memset leaq -1296(%rbp), %rdi xorl %esi, %esi movl $256, %edx ## imm = 0x100 callq _memset movq $0, -1344(%rbp) movq $0, -1352(%rbp) movl $1, -1356(%rbp) movl $0, -1360(%rbp) movl $0, -1364(%rbp) movl $0, -1368(%rbp) movl $0, -1372(%rbp) leaq -1600(%rbp), %rdi xorl %esi, %esi movl $224, %edx callq _memset leaq -1040(%rbp), %rsi leaq -1600(%rbp), %rdi movl $1024, %edx ## imm = 0x400 callq _init_cmd_stack leaq L_.str(%rip), %rax movq %rax, -1320(%rbp) leaq L_.str.1(%rip), %rax movq %rax, -1336(%rbp) movq -1320(%rbp), %rsi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf movq -1336(%rbp), %rsi leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf movq -1320(%rbp), %rax movq %rax, -1328(%rbp) LBB0_1: ## =>This Loop Header: Depth=1 ## Child Loop BB0_35 Depth 2 ## Child Loop BB0_12 Depth 2 ## Child Loop BB0_4 Depth 2 cmpl $0, -1356(%rbp) je LBB0_39 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movq -1328(%rbp), %rax movsbl (%rax), %eax movl %eax, -1620(%rbp) ## 4-byte Spill testl %eax, %eax je LBB0_3 jmp LBB0_44 LBB0_44: ## in Loop: Header=BB0_1 Depth=1 movl -1620(%rbp), %eax ## 4-byte Reload subl $10, %eax je LBB0_8 jmp LBB0_45 LBB0_45: ## in Loop: Header=BB0_1 Depth=1 movl -1620(%rbp), %eax ## 4-byte Reload subl $32, %eax je LBB0_7 jmp LBB0_26 LBB0_3: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_4 LBB0_4: ## Parent Loop BB0_1 Depth=1 ## => This Inner Loop Header: Depth=2 cmpl $0, -1576(%rbp) je LBB0_6 ## %bb.5: ## in Loop: Header=BB0_4 Depth=2 leaq -1600(%rbp), %rdi callq _pop movq %rax, -1344(%rbp) movq -1344(%rbp), %rsi leaq L_.str.5(%rip), %rdi movb $0, %al callq _printf jmp LBB0_4 LBB0_6: ## in Loop: Header=BB0_1 Depth=1 leaq L_.str.6(%rip), %rdi movb $0, %al callq _printf movl $0, -1356(%rbp) jmp LBB0_38 LBB0_7: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.7(%rip), %rsi movb $0, %al callq _fprintf jmp LBB0_40 LBB0_8: ## in Loop: Header=BB0_1 Depth=1 leaq -1368(%rbp), %rdi leaq -1328(%rbp), %rsi callq _read_indent movl %eax, -1360(%rbp) cmpl $0, %eax je LBB0_10 ## %bb.9: jmp LBB0_40 LBB0_10: ## in Loop: Header=BB0_1 Depth=1 movl -1368(%rbp), %eax subl -1364(%rbp), %eax movl %eax, -1372(%rbp) cmpl $0, -1372(%rbp) jge LBB0_16 ## %bb.11: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_12 LBB0_12: ## Parent Loop BB0_1 Depth=1 ## => This Inner Loop Header: Depth=2 cmpl $0, -1372(%rbp) jge LBB0_15 ## %bb.13: ## in Loop: Header=BB0_12 Depth=2 leaq -1600(%rbp), %rdi callq _pop movq %rax, -1352(%rbp) movq -1352(%rbp), %rsi leaq L_.str.5(%rip), %rdi movb $0, %al callq _printf ## %bb.14: ## in Loop: Header=BB0_12 Depth=2 movl -1372(%rbp), %eax addl $1, %eax movl %eax, -1372(%rbp) jmp LBB0_12 LBB0_15: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_25 LBB0_16: ## in Loop: Header=BB0_1 Depth=1 cmpl $0, -1372(%rbp) jne LBB0_18 ## %bb.17: ## in Loop: Header=BB0_1 Depth=1 leaq -1600(%rbp), %rdi callq _pop movq %rax, -1344(%rbp) movq -1344(%rbp), %rsi leaq L_.str.5(%rip), %rdi movb $0, %al callq _printf jmp LBB0_24 LBB0_18: ## in Loop: Header=BB0_1 Depth=1 cmpl $1, -1372(%rbp) jne LBB0_22 ## %bb.19: ## in Loop: Header=BB0_1 Depth=1 leaq -1600(%rbp), %rax addq $160, %rax movl -1576(%rbp), %ecx subl $1, %ecx movslq %ecx, %rcx shlq $2, %rcx addq %rcx, %rax movq %rax, -1608(%rbp) movq -1608(%rbp), %rax movl (%rax), %eax movl $2, %ecx cltd idivl %ecx cmpl $0, %edx jne LBB0_21 ## %bb.20: ## in Loop: Header=BB0_1 Depth=1 movq -1344(%rbp), %rsi leaq L_.str.5(%rip), %rdi movb $0, %al callq _printf LBB0_21: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_23 LBB0_22: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movl -1364(%rbp), %edx movl -1368(%rbp), %ecx leaq L_.str.8(%rip), %rsi movb $0, %al callq _fprintf jmp LBB0_40 LBB0_23: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_24 LBB0_24: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_25 LBB0_25: ## in Loop: Header=BB0_1 Depth=1 movl -1368(%rbp), %eax movl %eax, -1364(%rbp) movq $0, -1344(%rbp) jmp LBB0_38 LBB0_26: ## in Loop: Header=BB0_1 Depth=1 leaq -1296(%rbp), %rdi movl $256, %esi ## imm = 0x100 leaq -1328(%rbp), %rdx callq _read_token movl %eax, -1360(%rbp) cmpl $0, %eax je LBB0_28 ## %bb.27: jmp LBB0_40 LBB0_28: ## in Loop: Header=BB0_1 Depth=1 cmpq $0, -1344(%rbp) jne LBB0_30 ## %bb.29: ## in Loop: Header=BB0_1 Depth=1 leaq -1296(%rbp), %rsi leaq -1600(%rbp), %rdi callq _push movq %rax, -1344(%rbp) jmp LBB0_34 LBB0_30: ## in Loop: Header=BB0_1 Depth=1 leaq -1600(%rbp), %rax addq $160, %rax movl -1576(%rbp), %ecx subl $1, %ecx movslq %ecx, %rcx shlq $2, %rcx addq %rcx, %rax movq %rax, -1616(%rbp) movq -1616(%rbp), %rax cmpl $0, (%rax) jle LBB0_33 ## %bb.31: ## in Loop: Header=BB0_1 Depth=1 movq -1616(%rbp), %rax movl (%rax), %eax movl $2, %ecx cltd idivl %ecx cmpl $0, %edx jne LBB0_33 ## %bb.32: ## in Loop: Header=BB0_1 Depth=1 movq -1344(%rbp), %rsi leaq L_.str.5(%rip), %rdi movb $0, %al callq _printf LBB0_33: ## in Loop: Header=BB0_1 Depth=1 leaq -1296(%rbp), %rsi leaq L_.str.5(%rip), %rdi movb $0, %al callq _printf movq -1616(%rbp), %rax movl (%rax), %ecx addl $1, %ecx movl %ecx, (%rax) LBB0_34: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_35 LBB0_35: ## Parent Loop BB0_1 Depth=1 ## => This Inner Loop Header: Depth=2 movq -1328(%rbp), %rax movsbl (%rax), %eax cmpl $32, %eax jne LBB0_37 ## %bb.36: ## in Loop: Header=BB0_35 Depth=2 movq -1328(%rbp), %rax addq $1, %rax movq %rax, -1328(%rbp) jmp LBB0_35 LBB0_37: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_38 LBB0_38: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_1 LBB0_39: movl $0, -1300(%rbp) jmp LBB0_41 LBB0_40: movl $1, -1300(%rbp) LBB0_41: movl -1300(%rbp), %eax movl %eax, -1624(%rbp) ## 4-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_43 ## %bb.42: movl -1624(%rbp), %eax ## 4-byte Reload addq $1632, %rsp ## imm = 0x660 popq %rbp retq LBB0_43: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _init_cmd_stack ## -- Begin function init_cmd_stack .p2align 4, 0x90 _init_cmd_stack: ## @init_cmd_stack .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 -16(%rbp), %rcx movq -8(%rbp), %rax movq %rcx, (%rax) movq -16(%rbp), %rcx movq -8(%rbp), %rax movq %rcx, 8(%rax) movq -16(%rbp), %rcx addq -24(%rbp), %rcx movq -8(%rbp), %rax movq %rcx, 16(%rax) movq -8(%rbp), %rax movl $0, 24(%rax) movq -8(%rbp), %rax movl $16, 28(%rax) movq -8(%rbp), %rax movq (%rax), %rdi movq -24(%rbp), %rdx xorl %esi, %esi movq $-1, %rcx callq ___memset_chk movq -8(%rbp), %rdi addq $160, %rdi xorl %esi, %esi movl $64, %edx movq $-1, %rcx callq ___memset_chk addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _pop ## -- Begin function pop .p2align 4, 0x90 _pop: ## @pop .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -16(%rbp) movq -16(%rbp), %rax cmpl $0, 24(%rax) jne LBB2_2 ## %bb.1: movq $0, -8(%rbp) jmp LBB2_3 LBB2_2: movq -16(%rbp), %rax movl 24(%rax), %ecx subl $1, %ecx movl %ecx, 24(%rax) movq -16(%rbp), %rax movq -16(%rbp), %rcx movslq 24(%rcx), %rcx movq 32(%rax,%rcx,8), %rcx movq -16(%rbp), %rax movq %rcx, 8(%rax) movq -16(%rbp), %rax movq 8(%rax), %rax movq %rax, -8(%rbp) LBB2_3: movq -8(%rbp), %rax popq %rbp retq .cfi_endproc ## -- End function .globl _read_indent ## -- Begin function read_indent .p2align 4, 0x90 _read_indent: ## @read_indent .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) movq -24(%rbp), %rax movq (%rax), %rax movq %rax, -32(%rbp) movq $0, -40(%rbp) movl $0, -44(%rbp) movq -32(%rbp), %rax addq $1, %rax movq %rax, -32(%rbp) movq -32(%rbp), %rax movq %rax, -40(%rbp) LBB3_1: ## =>This Inner Loop Header: Depth=1 movq -40(%rbp), %rax movsbl (%rax), %eax cmpl $32, %eax jne LBB3_3 ## %bb.2: ## in Loop: Header=BB3_1 Depth=1 movq -40(%rbp), %rax addq $1, %rax movq %rax, -40(%rbp) jmp LBB3_1 LBB3_3: movq -40(%rbp), %rax movq -32(%rbp), %rcx subq %rcx, %rax ## kill: def $eax killed $eax killed $rax movl %eax, -44(%rbp) movl -44(%rbp), %eax movl $2, %ecx cltd idivl %ecx cmpl $0, %edx je LBB3_5 ## %bb.4: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movl -44(%rbp), %edx leaq L_.str.11(%rip), %rsi movb $0, %al callq _fprintf movl $1, -4(%rbp) jmp LBB3_6 LBB3_5: movl -44(%rbp), %eax movl $2, %ecx cltd idivl %ecx movl %eax, %ecx movq -16(%rbp), %rax movl %ecx, (%rax) movq -40(%rbp), %rcx movq -24(%rbp), %rax movq %rcx, (%rax) movl $0, -4(%rbp) LBB3_6: movl -4(%rbp), %eax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _read_token ## -- Begin function read_token .p2align 4, 0x90 _read_token: ## @read_token .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) movq %rdx, -32(%rbp) movl $0, -36(%rbp) movq $0, -48(%rbp) movq -32(%rbp), %rax movq (%rax), %rax movq %rax, -56(%rbp) movq -56(%rbp), %rax movq %rax, -48(%rbp) LBB4_1: ## =>This Inner Loop Header: Depth=1 movq -48(%rbp), %rax movsbl (%rax), %ecx xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $32, %ecx movb %al, -57(%rbp) ## 1-byte Spill je LBB4_4 ## %bb.2: ## in Loop: Header=BB4_1 Depth=1 movq -48(%rbp), %rax movsbl (%rax), %ecx xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $10, %ecx movb %al, -57(%rbp) ## 1-byte Spill je LBB4_4 ## %bb.3: ## in Loop: Header=BB4_1 Depth=1 movq -48(%rbp), %rax movsbl (%rax), %eax cmpl $0, %eax setne %al movb %al, -57(%rbp) ## 1-byte Spill LBB4_4: ## in Loop: Header=BB4_1 Depth=1 movb -57(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB4_5 jmp LBB4_6 LBB4_5: ## in Loop: Header=BB4_1 Depth=1 movq -48(%rbp), %rax addq $1, %rax movq %rax, -48(%rbp) jmp LBB4_1 LBB4_6: movq -48(%rbp), %rax movq -56(%rbp), %rcx subq %rcx, %rax ## kill: def $eax killed $eax killed $rax movl %eax, -36(%rbp) cmpl $0, -36(%rbp) jne LBB4_8 ## %bb.7: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.9(%rip), %rsi movb $0, %al callq _fprintf movl $1, -4(%rbp) jmp LBB4_11 LBB4_8: movl -36(%rbp), %eax cmpl -20(%rbp), %eax jle LBB4_10 ## %bb.9: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.10(%rip), %rsi movb $0, %al callq _fprintf movl $1, -4(%rbp) jmp LBB4_11 LBB4_10: movq -16(%rbp), %rdi movq -56(%rbp), %rsi movslq -36(%rbp), %rdx movq $-1, %rcx callq ___strncpy_chk movq -16(%rbp), %rax movslq -36(%rbp), %rcx movb $0, (%rax,%rcx) movq -48(%rbp), %rcx movq -32(%rbp), %rax movq %rcx, (%rax) movl $0, -4(%rbp) LBB4_11: movl -4(%rbp), %eax addq $64, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _push ## -- Begin function push .p2align 4, 0x90 _push: ## @push .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) movq -16(%rbp), %rdi callq _strlen ## kill: def $eax killed $eax killed $rax movl %eax, -20(%rbp) movq -8(%rbp), %rax movq 8(%rax), %rax movq %rax, -32(%rbp) movq -8(%rbp), %rax movq 8(%rax), %rdx movq -8(%rbp), %rax movq -8(%rbp), %rcx movslq 24(%rcx), %rcx movq %rdx, 32(%rax,%rcx,8) movq -8(%rbp), %rax movq 8(%rax), %rdi movq -16(%rbp), %rsi movq $-1, %rdx callq ___strcpy_chk movq -8(%rbp), %rax movl 24(%rax), %ecx addl $1, %ecx movl %ecx, 24(%rax) movl -20(%rbp), %edx addl $1, %edx movq -8(%rbp), %rax movq 8(%rax), %rcx movslq %edx, %rdx addq %rdx, %rcx movq %rcx, 8(%rax) movq -32(%rbp), %rax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _peek ## -- Begin function peek .p2align 4, 0x90 _peek: ## @peek .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -16(%rbp) movq -16(%rbp), %rax cmpl $0, 24(%rax) jne LBB6_2 ## %bb.1: movq $0, -8(%rbp) jmp LBB6_3 LBB6_2: movq -16(%rbp), %rax movq -16(%rbp), %rcx movl 24(%rcx), %ecx subl $1, %ecx movslq %ecx, %rcx movq 32(%rax,%rcx,8), %rax movq %rax, -8(%rbp) LBB6_3: movq -8(%rbp), %rax popq %rbp retq .cfi_endproc ## -- End function .globl _print_cmd_stack ## -- Begin function print_cmd_stack .p2align 4, 0x90 _print_cmd_stack: ## @print_cmd_stack .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 $0, -16(%rbp) movl $0, -20(%rbp) cmpq $0, -8(%rbp) jne LBB7_2 ## %bb.1: leaq L_.str.12(%rip), %rdi movb $0, %al callq _printf jmp LBB7_6 LBB7_2: movq -8(%rbp), %rax movl 24(%rax), %esi leaq L_.str.13(%rip), %rdi movb $0, %al callq _printf movl $0, -20(%rbp) LBB7_3: ## =>This Inner Loop Header: Depth=1 movl -20(%rbp), %eax movq -8(%rbp), %rcx cmpl 24(%rcx), %eax jge LBB7_6 ## %bb.4: ## in Loop: Header=BB7_3 Depth=1 movl -20(%rbp), %esi movq -8(%rbp), %rax movslq -20(%rbp), %rcx movq 32(%rax,%rcx,8), %rdx leaq L_.str.14(%rip), %rdi movb $0, %al callq _printf ## %bb.5: ## in Loop: Header=BB7_3 Depth=1 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB7_3 LBB7_6: addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__const .globl _indent_width ## @indent_width .p2align 2 _indent_width: .long 2 ## 0x2 .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "+ 3 4 5\n + 6 7\n" L_.str.1: ## @.str.1 .asciz "3 4 + 5 + 6 7 + +" L_.str.2: ## @.str.2 .asciz "code:\n%s\n\n" L_.str.3: ## @.str.3 .asciz "er:\n%s\n\n" L_.str.4: ## @.str.4 .asciz "r:\n" L_.str.5: ## @.str.5 .asciz "%s " L_.str.6: ## @.str.6 .asciz "\n" L_.str.7: ## @.str.7 .asciz "error: unexpected space\n" L_.str.8: ## @.str.8 .asciz "error: invalid indent, old: %d, new: %d\n" L_.str.9: ## @.str.9 .asciz "no more tokens\n" L_.str.10: ## @.str.10 .asciz "token too long\n" L_.str.11: ## @.str.11 .asciz "error invalid indent width: %d\n" L_.str.12: ## @.str.12 .asciz "stack is NULL\n" L_.str.13: ## @.str.13 .asciz "stack %d:\n" L_.str.14: ## @.str.14 .asciz "%d,%s\n" .subsections_via_symbols
the_stack_data/50136813.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _MinPlace ; -- Begin function MinPlace .p2align 2 _MinPlace: ; @MinPlace .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, #24] str w1, [sp, #20] str w2, [sp, #16] ldr x8, [sp, #24] ldrsw x9, [sp, #20] ldr w8, [x8, x9, lsl #2] str w8, [sp, #12] ldr w8, [sp, #20] str w8, [sp, #8] ldr w8, [sp, #20] add w8, w8, #1 str w8, [sp, #4] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #4] ldr w9, [sp, #16] subs w9, w9, #1 subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_6 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #12] ldr x9, [sp, #24] ldrsw x10, [sp, #4] 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 x8, [sp, #24] ldrsw x9, [sp, #4] ldr w8, [x8, x9, lsl #2] str w8, [sp, #12] ldr w8, [sp, #4] str w8, [sp, #8] b LBB0_4 LBB0_4: ; in Loop: Header=BB0_1 Depth=1 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #4] add w8, w8, #1 str w8, [sp, #4] b LBB0_1 LBB0_6: ldr w0, [sp, #8] add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill .cfi_def_cfa_offset 16 mov x29, sp .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 sub sp, sp, #80 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] stur wzr, [x29, #-12] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf sub sp, sp, #16 mov x9, sp sub x8, x29, #28 str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf add sp, sp, #16 ldur w8, [x29, #-28] ; kill: def $x8 killed $w8 mov x9, sp stur x9, [x29, #-40] lsl x9, x8, #2 add x9, x9, #15 and x9, x9, #0xfffffffffffffff0 stur x9, [x29, #-64] ; 8-byte Folded Spill adrp x16, ___chkstk_darwin@GOTPAGE ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF] blr x16 ldur x10, [x29, #-64] ; 8-byte Folded Reload mov x9, sp subs x9, x9, x10 mov sp, x9 stur x9, [x29, #-56] ; 8-byte Folded Spill stur x8, [x29, #-48] stur wzr, [x29, #-24] b LBB1_1 LBB1_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-24] ldur w9, [x29, #-28] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_4 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf ldur x8, [x29, #-56] ; 8-byte Folded Reload ldursw x9, [x29, #-24] add x8, x8, x9, lsl #2 sub sp, sp, #16 mov x9, sp str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf add sp, sp, #16 b LBB1_3 LBB1_3: ; in Loop: Header=BB1_1 Depth=1 ldur w8, [x29, #-24] add w8, w8, #1 stur w8, [x29, #-24] b LBB1_1 LBB1_4: stur wzr, [x29, #-16] b LBB1_5 LBB1_5: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-16] ldur w9, [x29, #-28] subs w9, w9, #1 subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_10 b LBB1_6 LBB1_6: ; in Loop: Header=BB1_5 Depth=1 ldur x0, [x29, #-56] ; 8-byte Folded Reload ldur w1, [x29, #-16] ldur w2, [x29, #-28] bl _MinPlace stur w0, [x29, #-20] ldur w8, [x29, #-16] ldur w9, [x29, #-20] subs w8, w8, w9 cset w8, eq tbnz w8, #0, LBB1_8 b LBB1_7 LBB1_7: ; in Loop: Header=BB1_5 Depth=1 ldur x9, [x29, #-56] ; 8-byte Folded Reload ldursw x8, [x29, #-16] ldr w8, [x9, x8, lsl #2] ldursw x10, [x29, #-20] ldr w10, [x9, x10, lsl #2] add w8, w8, w10 ldursw x10, [x29, #-16] str w8, [x9, x10, lsl #2] ldursw x8, [x29, #-16] ldr w8, [x9, x8, lsl #2] ldursw x10, [x29, #-20] ldr w10, [x9, x10, lsl #2] subs w8, w8, w10 ldursw x10, [x29, #-20] str w8, [x9, x10, lsl #2] ldursw x8, [x29, #-16] ldr w8, [x9, x8, lsl #2] ldursw x10, [x29, #-20] ldr w10, [x9, x10, lsl #2] subs w8, w8, w10 ldursw x10, [x29, #-16] str w8, [x9, x10, lsl #2] b LBB1_8 LBB1_8: ; in Loop: Header=BB1_5 Depth=1 b LBB1_9 LBB1_9: ; in Loop: Header=BB1_5 Depth=1 ldur w8, [x29, #-16] add w8, w8, #1 stur w8, [x29, #-16] b LBB1_5 LBB1_10: 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 stur wzr, [x29, #-24] b LBB1_11 LBB1_11: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-24] ldur w9, [x29, #-28] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_14 b LBB1_12 LBB1_12: ; in Loop: Header=BB1_11 Depth=1 ldur x8, [x29, #-56] ; 8-byte Folded Reload ldursw x9, [x29, #-24] ldr w9, [x8, x9, lsl #2] ; implicit-def: $x8 mov x8, x9 sub sp, sp, #16 mov x9, sp str x8, [x9] adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf add sp, sp, #16 b LBB1_13 LBB1_13: ; in Loop: Header=BB1_11 Depth=1 ldur w8, [x29, #-24] add w8, w8, #1 stur w8, [x29, #-24] b LBB1_11 LBB1_14: adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf stur wzr, [x29, #-12] ldur x8, [x29, #-40] mov sp, x8 ldur w8, [x29, #-12] stur w8, [x29, #-68] ; 4-byte Folded Spill ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB1_16 b LBB1_15 LBB1_15: bl ___stack_chk_fail LBB1_16: ldur w0, [x29, #-68] ; 4-byte Folded Reload mov sp, x29 ldp x29, x30, [sp], #16 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "How many elements you want to enter inside the array?\n" l_.str.1: ; @.str.1 .asciz "%d" l_.str.2: ; @.str.2 .asciz "\nEnter the value you want to enter inside Array\n" l_.str.3: ; @.str.3 .asciz "\nThe sorted elements are\n" l_.str.4: ; @.str.4 .asciz "\n===========================================================\n" l_.str.5: ; @.str.5 .asciz "\t%d" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _MinPlace ## -- Begin function MinPlace .p2align 4, 0x90 _MinPlace: ## @MinPlace .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) movl %edx, -16(%rbp) movq -8(%rbp), %rax movslq -12(%rbp), %rcx movl (%rax,%rcx,4), %eax movl %eax, -20(%rbp) movl -12(%rbp), %eax movl %eax, -24(%rbp) movl -12(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movl -28(%rbp), %eax movl -16(%rbp), %ecx subl $1, %ecx cmpl %ecx, %eax jg LBB0_6 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl -20(%rbp), %eax movq -8(%rbp), %rcx movslq -28(%rbp), %rdx cmpl (%rcx,%rdx,4), %eax jle LBB0_4 ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movq -8(%rbp), %rax movslq -28(%rbp), %rcx movl (%rax,%rcx,4), %eax movl %eax, -20(%rbp) movl -28(%rbp), %eax movl %eax, -24(%rbp) LBB0_4: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_5 LBB0_5: ## in Loop: Header=BB0_1 Depth=1 movl -28(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) jmp LBB0_1 LBB0_6: movl -24(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $80, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -12(%rbp) leaq L_.str(%rip), %rdi xorl %eax, %eax ## kill: def $al killed $al killed $eax movb %al, -65(%rbp) ## 1-byte Spill callq _printf ## kill: def $ecx killed $eax movb -65(%rbp), %al ## 1-byte Reload leaq L_.str.1(%rip), %rdi leaq -28(%rbp), %rsi callq _scanf movl -28(%rbp), %eax ## kill: def $rax killed $eax movq %rax, -64(%rbp) ## 8-byte Spill movq %rsp, %rcx movq %rcx, -40(%rbp) shlq $2, %rax callq ____chkstk_darwin addq $15, %rax andq $-16, %rax subq %rax, %rsp movq -64(%rbp), %rax ## 8-byte Reload movq %rsp, %rcx movq %rcx, -56(%rbp) ## 8-byte Spill movq %rax, -48(%rbp) movl $0, -24(%rbp) LBB1_1: ## =>This Inner Loop Header: Depth=1 movl -24(%rbp), %eax cmpl -28(%rbp), %eax jge LBB1_4 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf movq -56(%rbp), %rsi ## 8-byte Reload movslq -24(%rbp), %rax shlq $2, %rax addq %rax, %rsi leaq L_.str.1(%rip), %rdi movb $0, %al callq _scanf ## %bb.3: ## in Loop: Header=BB1_1 Depth=1 movl -24(%rbp), %eax addl $1, %eax movl %eax, -24(%rbp) jmp LBB1_1 LBB1_4: movl $0, -16(%rbp) LBB1_5: ## =>This Inner Loop Header: Depth=1 movl -16(%rbp), %eax movl -28(%rbp), %ecx subl $1, %ecx cmpl %ecx, %eax jge LBB1_10 ## %bb.6: ## in Loop: Header=BB1_5 Depth=1 movq -56(%rbp), %rdi ## 8-byte Reload movl -16(%rbp), %esi movl -28(%rbp), %edx callq _MinPlace movl %eax, -20(%rbp) movl -16(%rbp), %eax cmpl -20(%rbp), %eax je LBB1_8 ## %bb.7: ## in Loop: Header=BB1_5 Depth=1 movq -56(%rbp), %rax ## 8-byte Reload movslq -16(%rbp), %rcx movl (%rax,%rcx,4), %edx movslq -20(%rbp), %rcx addl (%rax,%rcx,4), %edx movslq -16(%rbp), %rcx movl %edx, (%rax,%rcx,4) movslq -16(%rbp), %rcx movl (%rax,%rcx,4), %edx movslq -20(%rbp), %rcx subl (%rax,%rcx,4), %edx movslq -20(%rbp), %rcx movl %edx, (%rax,%rcx,4) movslq -16(%rbp), %rcx movl (%rax,%rcx,4), %edx movslq -20(%rbp), %rcx subl (%rax,%rcx,4), %edx movslq -16(%rbp), %rcx movl %edx, (%rax,%rcx,4) LBB1_8: ## in Loop: Header=BB1_5 Depth=1 jmp LBB1_9 LBB1_9: ## in Loop: Header=BB1_5 Depth=1 movl -16(%rbp), %eax addl $1, %eax movl %eax, -16(%rbp) jmp LBB1_5 LBB1_10: leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf movl $0, -24(%rbp) LBB1_11: ## =>This Inner Loop Header: Depth=1 movl -24(%rbp), %eax cmpl -28(%rbp), %eax jge LBB1_14 ## %bb.12: ## in Loop: Header=BB1_11 Depth=1 movq -56(%rbp), %rax ## 8-byte Reload movslq -24(%rbp), %rcx movl (%rax,%rcx,4), %esi leaq L_.str.5(%rip), %rdi movb $0, %al callq _printf ## %bb.13: ## in Loop: Header=BB1_11 Depth=1 movl -24(%rbp), %eax addl $1, %eax movl %eax, -24(%rbp) jmp LBB1_11 LBB1_14: leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf movl $0, -12(%rbp) movq -40(%rbp), %rax movq %rax, %rsp movl -12(%rbp), %eax movl %eax, -72(%rbp) ## 4-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB1_16 ## %bb.15: movl -72(%rbp), %eax ## 4-byte Reload movq %rbp, %rsp popq %rbp retq LBB1_16: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "How many elements you want to enter inside the array?\n" L_.str.1: ## @.str.1 .asciz "%d" L_.str.2: ## @.str.2 .asciz "\nEnter the value you want to enter inside Array\n" L_.str.3: ## @.str.3 .asciz "\nThe sorted elements are\n" L_.str.4: ## @.str.4 .asciz "\n===========================================================\n" L_.str.5: ## @.str.5 .asciz "\t%d" .subsections_via_symbols
the_stack_data/97058.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl __hs_text_memcpy ; -- Begin function _hs_text_memcpy .p2align 2 __hs_text_memcpy: ; @_hs_text_memcpy .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 x3, [sp, #16] str x4, [sp, #8] ldur x10, [x29, #-8] ldur x11, [x29, #-16] ldr x8, [sp, #24] ldr x9, [sp, #16] ldr x12, [sp, #8] lsl x2, x12, #1 add x0, x10, x11, lsl #1 add x1, x8, x9, lsl #1 mov x3, #-1 bl ___memcpy_chk ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .globl __hs_text_memcmp ; -- Begin function _hs_text_memcmp .p2align 2 __hs_text_memcmp: ; @_hs_text_memcmp .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 x3, [sp, #16] str x4, [sp, #8] ldur x10, [x29, #-8] ldur x11, [x29, #-16] ldr x8, [sp, #24] ldr x9, [sp, #16] ldr x12, [sp, #8] lsl x2, x12, #1 add x0, x10, x11, lsl #1 add x1, x8, x9, lsl #1 bl _memcmp ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .globl __hs_text_decode_utf8 ; -- Begin function _hs_text_decode_utf8 .p2align 2 __hs_text_decode_utf8: ; @_hs_text_decode_utf8 .cfi_startproc ; %bb.0: sub sp, sp, #80 .cfi_def_cfa_offset 80 stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp, #64 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] stur x1, [x29, #-16] stur x2, [x29, #-24] str x3, [sp, #32] ldur x8, [x29, #-8] ldur x9, [x29, #-16] ldr x9, [x9] add x8, x8, x9, lsl #1 str x8, [sp, #24] ldur x8, [x29, #-24] str x8, [sp, #16] str wzr, [sp, #12] b LBB2_1 LBB2_1: ; =>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_10 b LBB2_2 LBB2_2: ; in Loop: Header=BB2_1 Depth=1 ldr x8, [sp, #16] add x9, x8, #1 str x9, [sp, #16] ldrb w2, [x8] add x0, sp, #12 add x1, sp, #8 bl _decode subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB2_6 b LBB2_3 LBB2_3: ; in Loop: Header=BB2_1 Depth=1 ldr w8, [sp, #12] subs w8, w8, #12 cset w8, eq tbnz w8, #0, LBB2_5 b LBB2_4 LBB2_4: ; in Loop: Header=BB2_1 Depth=1 b LBB2_1 LBB2_5: b LBB2_10 LBB2_6: ; in Loop: Header=BB2_1 Depth=1 ldr w8, [sp, #8] subs w8, w8, #16, lsl #12 ; =65536 cset w8, hs tbnz w8, #0, LBB2_8 b LBB2_7 LBB2_7: ; in Loop: Header=BB2_1 Depth=1 ldr w8, [sp, #8] ldr x9, [sp, #24] add x10, x9, #2 str x10, [sp, #24] strh w8, [x9] b LBB2_9 LBB2_8: ; in Loop: Header=BB2_1 Depth=1 ldr w9, [sp, #8] mov w8, #55232 add w8, w8, w9, lsr #10 ldr x9, [sp, #24] add x10, x9, #2 str x10, [sp, #24] strh w8, [x9] ldr w8, [sp, #8] and w9, w8, #0x3ff mov w8, #56320 add w8, w8, w9 ldr x9, [sp, #24] add x10, x9, #2 str x10, [sp, #24] strh w8, [x9] b LBB2_9 LBB2_9: ; in Loop: Header=BB2_1 Depth=1 b LBB2_1 LBB2_10: ldr w8, [sp, #12] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB2_12 b LBB2_11 LBB2_11: ldr x8, [sp, #16] subs x8, x8, #1 str x8, [sp, #16] b LBB2_12 LBB2_12: ldr x8, [sp, #24] ldur x9, [x29, #-8] subs x8, x8, x9 mov x9, #2 sdiv x8, x8, x9 ldur x9, [x29, #-16] str x8, [x9] ldr x0, [sp, #16] ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function decode _decode: ; @decode .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] ldr w8, [sp, #12] mov x9, x8 adrp x8, _utf8d@PAGE add x8, x8, _utf8d@PAGEOFF ldrb w8, [x8, x9] str w8, [sp, #8] ldr x8, [sp, #24] ldr w8, [x8] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB3_2 b LBB3_1 LBB3_1: ldr w8, [sp, #12] ldr x9, [sp, #16] ldr w9, [x9] bfi w8, w9, #6, #26 str w8, [sp, #4] ; 4-byte Folded Spill b LBB3_3 LBB3_2: ldr w9, [sp, #8] mov w8, #255 asr w8, w8, w9 ldr w9, [sp, #12] and w8, w8, w9 str w8, [sp, #4] ; 4-byte Folded Spill b LBB3_3 LBB3_3: ldr w8, [sp, #4] ; 4-byte Folded Reload ldr x9, [sp, #16] str w8, [x9] ldr x8, [sp, #24] ldr w8, [x8] add w8, w8, #256 ldr w9, [sp, #8] add w9, w8, w9 adrp x8, _utf8d@PAGE add x8, x8, _utf8d@PAGEOFF ldrb w0, [x8, w9, uxtw] ldr x8, [sp, #24] str w0, [x8] add sp, sp, #32 ret .cfi_endproc ; -- End function .section __TEXT,__const _utf8d: ; @utf8d .ascii "\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\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\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\007\007\007\007\007\007\007\007\007\007\007\007\007\007\007\007\007\007\007\007\007\007\007\007\007\007\007\007\007\007\007\007\b\b\002\002\002\002\002\002\002\002\002\002\002\002\002\002\002\002\002\002\002\002\002\002\002\002\002\002\002\002\002\002\n\003\003\003\003\003\003\003\003\003\003\003\003\004\003\003\013\006\006\006\005\b\b\b\b\b\b\b\b\b\b\b\000\f\030$<`T\f\f\f0H\f\f\f\f\f\f\f\f\f\f\f\f\f\000\f\f\f\f\f\000\f\000\f\f\f\030\f\f\f\f\f\030\f\030\f\f\f\f\f\f\f\f\f\030\f\f\f\f\f\030\f\f\f\f\f\f\f\030\f\f\f\f\f\f\f\f\f$\f$\f\f\f$\f\f\f\f\f$\f$\f\f\f$\f\f\f\f\f\f\f\f\f\f" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl __hs_text_memcpy ## -- Begin function _hs_text_memcpy .p2align 4, 0x90 __hs_text_memcpy: ## @_hs_text_memcpy .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) movq %rdx, -24(%rbp) movq %rcx, -32(%rbp) movq %r8, -40(%rbp) movq -8(%rbp), %rdi movq -16(%rbp), %rax shlq $1, %rax addq %rax, %rdi movq -24(%rbp), %rsi movq -32(%rbp), %rax shlq $1, %rax addq %rax, %rsi movq -40(%rbp), %rdx shlq $1, %rdx movq $-1, %rcx callq ___memcpy_chk addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl __hs_text_memcmp ## -- Begin function _hs_text_memcmp .p2align 4, 0x90 __hs_text_memcmp: ## @_hs_text_memcmp .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) movq %rdx, -24(%rbp) movq %rcx, -32(%rbp) movq %r8, -40(%rbp) movq -8(%rbp), %rdi movq -16(%rbp), %rax shlq $1, %rax addq %rax, %rdi movq -24(%rbp), %rsi movq -32(%rbp), %rax shlq $1, %rax addq %rax, %rsi movq -40(%rbp), %rdx shlq $1, %rdx callq _memcmp addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl __hs_text_decode_utf8 ## -- Begin function _hs_text_decode_utf8 .p2align 4, 0x90 __hs_text_decode_utf8: ## @_hs_text_decode_utf8 .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) movq %rcx, -32(%rbp) movq -8(%rbp), %rax movq -16(%rbp), %rcx movq (%rcx), %rcx shlq $1, %rcx addq %rcx, %rax movq %rax, -40(%rbp) movq -24(%rbp), %rax movq %rax, -48(%rbp) movl $0, -52(%rbp) LBB2_1: ## =>This Loop Header: Depth=1 ## Child Loop BB2_4 Depth 2 movq -48(%rbp), %rax cmpq -32(%rbp), %rax jae LBB2_17 ## %bb.2: ## in Loop: Header=BB2_1 Depth=1 cmpl $0, -52(%rbp) jne LBB2_9 ## %bb.3: ## in Loop: Header=BB2_1 Depth=1 jmp LBB2_4 LBB2_4: ## Parent Loop BB2_1 Depth=1 ## => This Inner Loop Header: Depth=2 movq -48(%rbp), %rax movq -32(%rbp), %rcx addq $-4, %rcx cmpq %rcx, %rax jae LBB2_8 ## %bb.5: ## in Loop: Header=BB2_4 Depth=2 movq -48(%rbp), %rax movl (%rax), %eax movl %eax, -56(%rbp) movl -56(%rbp), %eax andl $-2139062144, %eax ## imm = 0x80808080 cmpl $0, %eax je LBB2_7 ## %bb.6: ## in Loop: Header=BB2_1 Depth=1 jmp LBB2_8 LBB2_7: ## in Loop: Header=BB2_4 Depth=2 movq -48(%rbp), %rax addq $4, %rax movq %rax, -48(%rbp) movl -56(%rbp), %eax andl $255, %eax movw %ax, %cx movq -40(%rbp), %rax movq %rax, %rdx addq $2, %rdx movq %rdx, -40(%rbp) movw %cx, (%rax) movl -56(%rbp), %eax shrl $8, %eax andl $255, %eax movw %ax, %cx movq -40(%rbp), %rax movq %rax, %rdx addq $2, %rdx movq %rdx, -40(%rbp) movw %cx, (%rax) movl -56(%rbp), %eax shrl $16, %eax andl $255, %eax movw %ax, %cx movq -40(%rbp), %rax movq %rax, %rdx addq $2, %rdx movq %rdx, -40(%rbp) movw %cx, (%rax) movl -56(%rbp), %eax shrl $24, %eax andl $255, %eax movw %ax, %cx movq -40(%rbp), %rax movq %rax, %rdx addq $2, %rdx movq %rdx, -40(%rbp) movw %cx, (%rax) jmp LBB2_4 LBB2_8: ## in Loop: Header=BB2_1 Depth=1 jmp LBB2_9 LBB2_9: ## in Loop: Header=BB2_1 Depth=1 movq -48(%rbp), %rax movq %rax, %rcx addq $1, %rcx movq %rcx, -48(%rbp) movzbl (%rax), %edx leaq -52(%rbp), %rdi leaq -56(%rbp), %rsi callq _decode cmpl $0, %eax je LBB2_13 ## %bb.10: ## in Loop: Header=BB2_1 Depth=1 cmpl $12, -52(%rbp) je LBB2_12 ## %bb.11: ## in Loop: Header=BB2_1 Depth=1 jmp LBB2_1 LBB2_12: jmp LBB2_17 LBB2_13: ## in Loop: Header=BB2_1 Depth=1 cmpl $65535, -56(%rbp) ## imm = 0xFFFF ja LBB2_15 ## %bb.14: ## in Loop: Header=BB2_1 Depth=1 movl -56(%rbp), %eax movw %ax, %cx movq -40(%rbp), %rax movq %rax, %rdx addq $2, %rdx movq %rdx, -40(%rbp) movw %cx, (%rax) jmp LBB2_16 LBB2_15: ## in Loop: Header=BB2_1 Depth=1 movl -56(%rbp), %eax shrl $10, %eax addl $55232, %eax ## imm = 0xD7C0 movw %ax, %cx movq -40(%rbp), %rax movq %rax, %rdx addq $2, %rdx movq %rdx, -40(%rbp) movw %cx, (%rax) movl -56(%rbp), %eax andl $1023, %eax ## imm = 0x3FF addl $56320, %eax ## imm = 0xDC00 movw %ax, %cx movq -40(%rbp), %rax movq %rax, %rdx addq $2, %rdx movq %rdx, -40(%rbp) movw %cx, (%rax) LBB2_16: ## in Loop: Header=BB2_1 Depth=1 jmp LBB2_1 LBB2_17: cmpl $0, -52(%rbp) je LBB2_19 ## %bb.18: movq -48(%rbp), %rax addq $-1, %rax movq %rax, -48(%rbp) LBB2_19: movq -40(%rbp), %rcx movq -8(%rbp), %rax subq %rax, %rcx sarq $1, %rcx movq -16(%rbp), %rax movq %rcx, (%rax) movq -48(%rbp), %rax addq $64, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function decode _decode: ## @decode .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 -20(%rbp), %eax movl %eax, %ecx leaq _utf8d(%rip), %rax movzbl (%rax,%rcx), %eax movl %eax, -24(%rbp) movq -8(%rbp), %rax cmpl $0, (%rax) je LBB3_2 ## %bb.1: movl -20(%rbp), %eax andl $63, %eax movq -16(%rbp), %rcx movl (%rcx), %ecx shll $6, %ecx orl %ecx, %eax movl %eax, -28(%rbp) ## 4-byte Spill jmp LBB3_3 LBB3_2: movl -24(%rbp), %ecx movl $255, %eax ## kill: def $cl killed $ecx sarl %cl, %eax andl -20(%rbp), %eax movl %eax, -28(%rbp) ## 4-byte Spill LBB3_3: movl -28(%rbp), %ecx ## 4-byte Reload movq -16(%rbp), %rax movl %ecx, (%rax) movq -8(%rbp), %rax movl (%rax), %eax addl $256, %eax ## imm = 0x100 addl -24(%rbp), %eax movl %eax, %eax movl %eax, %ecx leaq _utf8d(%rip), %rax movzbl (%rax,%rcx), %eax movq -8(%rbp), %rcx movl %eax, (%rcx) popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__const .p2align 4 ## @utf8d _utf8d: .ascii "\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\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\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\007\007\007\007\007\007\007\007\007\007\007\007\007\007\007\007\007\007\007\007\007\007\007\007\007\007\007\007\007\007\007\007\b\b\002\002\002\002\002\002\002\002\002\002\002\002\002\002\002\002\002\002\002\002\002\002\002\002\002\002\002\002\002\002\n\003\003\003\003\003\003\003\003\003\003\003\003\004\003\003\013\006\006\006\005\b\b\b\b\b\b\b\b\b\b\b\000\f\030$<`T\f\f\f0H\f\f\f\f\f\f\f\f\f\f\f\f\f\000\f\f\f\f\f\000\f\000\f\f\f\030\f\f\f\f\f\030\f\030\f\f\f\f\f\f\f\f\f\030\f\f\f\f\f\030\f\f\f\f\f\f\f\030\f\f\f\f\f\f\f\f\f$\f$\f\f\f$\f\f\f\f\f$\f$\f\f\f$\f\f\f\f\f\f\f\f\f\f" .subsections_via_symbols
the_stack_data/32948969.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #0 stur w8, [x29, #-12] ; 4-byte Folded Spill stur wzr, [x29, #-4] ldur w9, [x29, #-8] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldur w0, [x29, #-12] ; 4-byte Folded Reload ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "The value of a 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 -8(%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 a is %d\n" .subsections_via_symbols
the_stack_data/118962.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] stur w0, [x29, #-8] stur x1, [x29, #-16] ldur x8, [x29, #-16] ldr x8, [x8] mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldur w8, [x29, #-8] 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 mov w8, #-1 stur w8, [x29, #-4] b LBB0_7 LBB0_2: mov w8, #1 stur w8, [x29, #-20] b LBB0_3 LBB0_3: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-20] ldur w9, [x29, #-8] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_6 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_3 Depth=1 ldur w8, [x29, #-20] ; implicit-def: $x10 mov x10, x8 ldur x8, [x29, #-16] ldursw x9, [x29, #-20] ldr x8, [x8, x9, lsl #3] mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf b LBB0_5 LBB0_5: ; in Loop: Header=BB0_3 Depth=1 ldur w8, [x29, #-20] add w8, w8, #1 stur w8, [x29, #-20] b LBB0_3 LBB0_6: stur wzr, [x29, #-4] b LBB0_7 LBB0_7: ldur w0, [x29, #-4] ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Program name %s\n" l_.str.1: ; @.str.1 .asciz "No arguments supplied\n" l_.str.2: ; @.str.2 .asciz "argc[%d] = %s\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl $0, -4(%rbp) movl %edi, -8(%rbp) movq %rsi, -16(%rbp) movq -16(%rbp), %rax movq (%rax), %rsi leaq L_.str(%rip), %rdi movb $0, %al callq _printf cmpl $1, -8(%rbp) jne LBB0_2 ## %bb.1: leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf movl $-1, -4(%rbp) jmp LBB0_7 LBB0_2: movl $1, -20(%rbp) LBB0_3: ## =>This Inner Loop Header: Depth=1 movl -20(%rbp), %eax cmpl -8(%rbp), %eax jge LBB0_6 ## %bb.4: ## in Loop: Header=BB0_3 Depth=1 movl -20(%rbp), %esi movq -16(%rbp), %rax movslq -20(%rbp), %rcx movq (%rax,%rcx,8), %rdx leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf ## %bb.5: ## in Loop: Header=BB0_3 Depth=1 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB0_3 LBB0_6: movl $0, -4(%rbp) LBB0_7: movl -4(%rbp), %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Program name %s\n" L_.str.1: ## @.str.1 .asciz "No arguments supplied\n" L_.str.2: ## @.str.2 .asciz "argc[%d] = %s\n" .subsections_via_symbols
the_stack_data/98124.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/48575590.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, sp add x8, sp, #8 str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _scanf ldr w8, [sp, #8] subs w8, w8, #0 cset w8, lt tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf b LBB0_3 LBB0_2: adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf b LBB0_3 LBB0_3: ldur w0, [x29, #-4] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d" l_.str.1: ; @.str.1 .asciz "This is a positive number." l_.str.2: ; @.str.2 .asciz "This is a negative number." .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) leaq L_.str(%rip), %rdi leaq -8(%rbp), %rsi movb $0, %al callq _scanf cmpl $0, -8(%rbp) jl LBB0_2 ## %bb.1: leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf jmp LBB0_3 LBB0_2: leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf LBB0_3: movl -4(%rbp), %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d" L_.str.1: ## @.str.1 .asciz "This is a positive number." L_.str.2: ## @.str.2 .asciz "This is a negative number." .subsections_via_symbols
the_stack_data/42292.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 x0, #2 mov x1, #4 bl _calloc str x0, [sp] ldr x8, [sp] ldr w8, [x8] subs w8, w8, #0 cset w9, ne ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: adrp x0, l___func__.main@PAGE add x0, x0, l___func__.main@PAGEOFF adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF mov w2, #8 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] ldr w8, [x8, #4] subs w8, w8, #0 cset w9, ne ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB0_5 b LBB0_4 LBB0_4: adrp x0, l___func__.main@PAGE add x0, x0, l___func__.main@PAGEOFF adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF mov w2, #9 adrp x3, l_.str.2@PAGE add x3, x3, l_.str.2@PAGEOFF bl ___assert_rtn LBB0_5: b LBB0_6 LBB0_6: ldr x9, [sp] mov w8, #3 str w8, [x9] ldr x8, [sp] ldr w8, [x8, #4] subs w8, w8, #3 cset w9, eq ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB0_8 b LBB0_7 LBB0_7: adrp x0, l___func__.main@PAGE add x0, x0, l___func__.main@PAGEOFF adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF mov w2, #12 adrp x3, l_.str.3@PAGE add x3, x3, l_.str.3@PAGEOFF bl ___assert_rtn LBB0_8: b LBB0_9 LBB0_9: ldur w0, [x29, #-4] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l___func__.main: ; @__func__.main .asciz "main" l_.str: ; @.str .asciz "63933.c" l_.str.1: ; @.str.1 .asciz "ro[0] == 0" l_.str.2: ; @.str.2 .asciz "ro[1] == 0" l_.str.3: ; @.str.3 .asciz "ro[1] != 3" .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 $2, %edi movl $4, %esi callq _calloc movq %rax, -16(%rbp) movq -16(%rbp), %rax cmpl $0, (%rax) sete %al xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB0_2 ## %bb.1: leaq L___func__.main(%rip), %rdi leaq L_.str(%rip), %rsi leaq L_.str.1(%rip), %rcx movl $8, %edx callq ___assert_rtn LBB0_2: jmp LBB0_3 LBB0_3: movq -16(%rbp), %rax cmpl $0, 4(%rax) sete %al xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB0_5 ## %bb.4: leaq L___func__.main(%rip), %rdi leaq L_.str(%rip), %rsi leaq L_.str.2(%rip), %rcx movl $9, %edx callq ___assert_rtn LBB0_5: jmp LBB0_6 LBB0_6: movq -16(%rbp), %rax movl $3, (%rax) movq -16(%rbp), %rax cmpl $3, 4(%rax) setne %al xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB0_8 ## %bb.7: leaq L___func__.main(%rip), %rdi leaq L_.str(%rip), %rsi leaq L_.str.3(%rip), %rcx movl $12, %edx callq ___assert_rtn LBB0_8: jmp LBB0_9 LBB0_9: movl -4(%rbp), %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L___func__.main: ## @__func__.main .asciz "main" L_.str: ## @.str .asciz "63933.c" L_.str.1: ## @.str.1 .asciz "ro[0] == 0" L_.str.2: ## @.str.2 .asciz "ro[1] == 0" L_.str.3: ## @.str.3 .asciz "ro[1] != 3" .subsections_via_symbols
the_stack_data/63933.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, #60] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov x9, sp sub x8, x29, #36 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 adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf ldr x8, [sp, #24] ; 8-byte Folded Reload add x8, x8, #4 mov x9, sp 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 ldr x8, [sp, #24] ; 8-byte Folded Reload add x8, x8, #24 mov x9, sp str x8, [x9] adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _scanf ldr x9, [sp, #24] ; 8-byte Folded Reload ldur q0, [x29, #-36] add x8, sp, #64 str x8, [sp, #32] ; 8-byte Folded Spill str q0, [sp, #64] ldur q0, [x9, #12] stur q0, [x8, #12] mov w8, #2 str w8, [sp, #64] adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _printf ldr x8, [sp, #24] ; 8-byte Folded Reload ldur w9, [x29, #-36] ; implicit-def: $x10 mov x10, x9 add x9, x8, #4 ldur s0, [x29, #-12] fcvt d0, s0 mov x8, sp str x10, [x8] str x9, [x8, #8] str d0, [x8, #16] adrp x0, l_.str.7@PAGE add x0, x0, l_.str.7@PAGEOFF str x0, [sp, #40] ; 8-byte Folded Spill bl _printf ldr x8, [sp, #32] ; 8-byte Folded Reload ldr x0, [sp, #40] ; 8-byte Folded Reload ldr w9, [sp, #64] ; implicit-def: $x10 mov x10, x9 add x9, x8, #4 ldr s0, [sp, #88] fcvt d0, s0 mov x8, sp str x10, [x8] str x9, [x8, #8] str d0, [x8, #16] bl _printf mov x9, sp mov x8, #4 str x8, [sp, #48] ; 8-byte Folded Spill str x8, [x9] adrp x0, l_.str.8@PAGE add x0, x0, l_.str.8@PAGEOFF bl _printf ldr x8, [sp, #48] ; 8-byte Folded Reload mov x9, sp str x8, [x9] adrp x0, l_.str.9@PAGE add x0, x0, l_.str.9@PAGEOFF bl _printf mov x9, sp mov x8, #28 str x8, [x9] adrp x0, l_.str.10@PAGE add x0, x0, l_.str.10@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,__cstring,cstring_literals l_.str: ; @.str .asciz "Enter Employee number :" l_.str.1: ; @.str.1 .asciz "%d" l_.str.2: ; @.str.2 .asciz "Enter Employee name :" l_.str.3: ; @.str.3 .asciz "%s" l_.str.4: ; @.str.4 .asciz "Enter Employee salary :" l_.str.5: ; @.str.5 .asciz "%f" l_.str.6: ; @.str.6 .asciz "\n\nEmployee Details are as follows\342\200\246.\n" l_.str.7: ; @.str.7 .asciz "%d %s %f\n" l_.str.8: ; @.str.8 .asciz "int size is %d\n" l_.str.9: ; @.str.9 .asciz "float size is %d\n" l_.str.10: ; @.str.10 .asciz "struct emp size 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 $80, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -76(%rbp) leaq L_.str(%rip), %rdi movb $0, %al callq _printf leaq -40(%rbp), %rsi leaq L_.str.1(%rip), %rdi movb $0, %al callq _scanf leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf leaq -40(%rbp), %rsi addq $4, %rsi leaq L_.str.3(%rip), %rdi movb $0, %al callq _scanf leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf leaq -40(%rbp), %rsi addq $24, %rsi leaq L_.str.5(%rip), %rdi movb $0, %al callq _scanf movq -40(%rbp), %rax movq %rax, -72(%rbp) movq -32(%rbp), %rax movq %rax, -64(%rbp) movq -24(%rbp), %rax movq %rax, -56(%rbp) movl -16(%rbp), %eax movl %eax, -48(%rbp) movl $2, -72(%rbp) leaq L_.str.6(%rip), %rdi movb $0, %al callq _printf movl -40(%rbp), %esi leaq -40(%rbp), %rdx addq $4, %rdx movss -16(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 leaq L_.str.7(%rip), %rdi movb $1, %al callq _printf movl -72(%rbp), %esi leaq -72(%rbp), %rdx addq $4, %rdx movss -48(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 leaq L_.str.7(%rip), %rdi movb $1, %al callq _printf leaq L_.str.8(%rip), %rdi movl $4, %esi movb $0, %al callq _printf leaq L_.str.9(%rip), %rdi movl $4, %esi movb $0, %al callq _printf leaq L_.str.10(%rip), %rdi movl $28, %esi 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 $80, %rsp popq %rbp retq LBB0_2: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Enter Employee number :" L_.str.1: ## @.str.1 .asciz "%d" L_.str.2: ## @.str.2 .asciz "Enter Employee name :" L_.str.3: ## @.str.3 .asciz "%s" L_.str.4: ## @.str.4 .asciz "Enter Employee salary :" L_.str.5: ## @.str.5 .asciz "%f" L_.str.6: ## @.str.6 .asciz "\n\nEmployee Details are as follows\342\200\246.\n" L_.str.7: ## @.str.7 .asciz "%d %s %f\n" L_.str.8: ## @.str.8 .asciz "int size is %d\n" L_.str.9: ## @.str.9 .asciz "float size is %d\n" L_.str.10: ## @.str.10 .asciz "struct emp size is %d\n" .subsections_via_symbols
the_stack_data/87639052.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl __mon_getc ; -- Begin function _mon_getc .p2align 2 __mon_getc: ; @_mon_getc .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #12] mov w0, #0 add sp, sp, #16 ret .cfi_endproc ; -- End function .globl __mon_putc ; -- Begin function _mon_putc .p2align 2 __mon_putc: ; @_mon_putc .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 strb 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 __mon_getc ## -- Begin function _mon_getc .p2align 4, 0x90 __mon_getc: ## @_mon_getc .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) xorl %eax, %eax popq %rbp retq .cfi_endproc ## -- End function .globl __mon_putc ## -- Begin function _mon_putc .p2align 4, 0x90 __mon_putc: ## @_mon_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 %dil, %al movb %al, -1(%rbp) popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/75137746.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _test_one ; -- Begin function test_one .p2align 2 _test_one: ; @test_one .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, #8] ldr w9, [sp, #12] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_4 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #8] add w8, w8, #1 str w8, [sp, #8] b LBB0_1 LBB0_4: add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _test_two ; -- Begin function test_two .p2align 2 _test_two: ; @test_two .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #12] str w1, [sp, #8] str wzr, [sp, #4] b LBB1_1 LBB1_1: ; =>This Loop Header: Depth=1 ; Child Loop BB1_3 Depth 2 ldr w8, [sp, #4] 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] b LBB1_3 LBB1_3: ; Parent Loop BB1_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp] ldr w9, [sp, #8] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_6 b LBB1_4 LBB1_4: ; in Loop: Header=BB1_3 Depth=2 b LBB1_5 LBB1_5: ; in Loop: Header=BB1_3 Depth=2 ldr w8, [sp] add w8, w8, #1 str w8, [sp] 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, #4] add w8, w8, #1 str w8, [sp, #4] b LBB1_1 LBB1_8: add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _test_three ; -- Begin function test_three .p2align 2 _test_three: ; @test_three .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #12] str w1, [sp, #8] str wzr, [sp, #4] b LBB2_1 LBB2_1: ; =>This Loop Header: Depth=1 ; Child Loop BB2_3 Depth 2 ldr w8, [sp, #4] ldr w9, [sp, #12] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB2_8 b LBB2_2 LBB2_2: ; in Loop: Header=BB2_1 Depth=1 str wzr, [sp] b LBB2_3 LBB2_3: ; Parent Loop BB2_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp] ldr w9, [sp, #8] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB2_6 b LBB2_4 LBB2_4: ; in Loop: Header=BB2_3 Depth=2 b LBB2_5 LBB2_5: ; in Loop: Header=BB2_3 Depth=2 ldr w8, [sp] add w8, w8, #1 str w8, [sp] b LBB2_3 LBB2_6: ; in Loop: Header=BB2_1 Depth=1 b LBB2_7 LBB2_7: ; in Loop: Header=BB2_1 Depth=1 ldr w8, [sp, #4] add w8, w8, #1 str w8, [sp, #4] b LBB2_1 LBB2_8: add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _test_four ; -- Begin function test_four .p2align 2 _test_four: ; @test_four .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #12] str w1, [sp, #8] str wzr, [sp, #4] b LBB3_1 LBB3_1: ; =>This Loop Header: Depth=1 ; Child Loop BB3_3 Depth 2 ldr w8, [sp, #4] ldr w9, [sp, #12] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB3_8 b LBB3_2 LBB3_2: ; in Loop: Header=BB3_1 Depth=1 str wzr, [sp] b LBB3_3 LBB3_3: ; Parent Loop BB3_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp] ldr w9, [sp, #8] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB3_6 b LBB3_4 LBB3_4: ; in Loop: Header=BB3_3 Depth=2 b LBB3_5 LBB3_5: ; in Loop: Header=BB3_3 Depth=2 ldr w8, [sp] add w8, w8, #1 str w8, [sp] b LBB3_3 LBB3_6: ; in Loop: Header=BB3_1 Depth=1 b LBB3_7 LBB3_7: ; in Loop: Header=BB3_1 Depth=1 ldr w8, [sp, #4] add w8, w8, #1 str w8, [sp, #4] b LBB3_1 LBB3_8: add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _test_five ; -- Begin function test_five .p2align 2 _test_five: ; @test_five .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str w0, [sp, #28] str w1, [sp, #24] str w2, [sp, #20] str wzr, [sp, #16] b LBB4_1 LBB4_1: ; =>This Loop Header: Depth=1 ; Child Loop BB4_3 Depth 2 ; Child Loop BB4_5 Depth 3 ldr w8, [sp, #16] ldr w9, [sp, #28] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB4_12 b LBB4_2 LBB4_2: ; in Loop: Header=BB4_1 Depth=1 str wzr, [sp, #12] b LBB4_3 LBB4_3: ; Parent Loop BB4_1 Depth=1 ; => This Loop Header: Depth=2 ; Child Loop BB4_5 Depth 3 ldr w8, [sp, #12] ldr w9, [sp, #24] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB4_10 b LBB4_4 LBB4_4: ; in Loop: Header=BB4_3 Depth=2 str wzr, [sp, #8] b LBB4_5 LBB4_5: ; Parent Loop BB4_1 Depth=1 ; Parent Loop BB4_3 Depth=2 ; => This Inner Loop Header: Depth=3 ldr w8, [sp, #8] ldr w9, [sp, #20] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB4_8 b LBB4_6 LBB4_6: ; in Loop: Header=BB4_5 Depth=3 b LBB4_7 LBB4_7: ; in Loop: Header=BB4_5 Depth=3 ldr w8, [sp, #8] add w8, w8, #1 str w8, [sp, #8] b LBB4_5 LBB4_8: ; in Loop: Header=BB4_3 Depth=2 b LBB4_9 LBB4_9: ; in Loop: Header=BB4_3 Depth=2 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB4_3 LBB4_10: ; in Loop: Header=BB4_1 Depth=1 b LBB4_11 LBB4_11: ; in Loop: Header=BB4_1 Depth=1 ldr w8, [sp, #16] add w8, w8, #1 str w8, [sp, #16] b LBB4_1 LBB4_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 _test_one ## -- Begin function test_one .p2align 4, 0x90 _test_one: ## @test_one .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 movl -8(%rbp), %eax cmpl -4(%rbp), %eax 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 -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) jmp LBB0_1 LBB0_4: popq %rbp retq .cfi_endproc ## -- End function .globl _test_two ## -- Begin function test_two .p2align 4, 0x90 _test_two: ## @test_two .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, -4(%rbp) movl %esi, -8(%rbp) movl $0, -12(%rbp) LBB1_1: ## =>This Loop Header: Depth=1 ## Child Loop BB1_3 Depth 2 movl -12(%rbp), %eax cmpl -4(%rbp), %eax jge LBB1_8 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 movl $0, -16(%rbp) LBB1_3: ## Parent Loop BB1_1 Depth=1 ## => This Inner Loop Header: Depth=2 movl -16(%rbp), %eax cmpl -8(%rbp), %eax jge LBB1_6 ## %bb.4: ## in Loop: Header=BB1_3 Depth=2 jmp LBB1_5 LBB1_5: ## in Loop: Header=BB1_3 Depth=2 movl -16(%rbp), %eax addl $1, %eax movl %eax, -16(%rbp) jmp LBB1_3 LBB1_6: ## in Loop: Header=BB1_1 Depth=1 jmp LBB1_7 LBB1_7: ## in Loop: Header=BB1_1 Depth=1 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB1_1 LBB1_8: popq %rbp retq .cfi_endproc ## -- End function .globl _test_three ## -- Begin function test_three .p2align 4, 0x90 _test_three: ## @test_three .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, -4(%rbp) movl %esi, -8(%rbp) movl $0, -12(%rbp) LBB2_1: ## =>This Loop Header: Depth=1 ## Child Loop BB2_3 Depth 2 movl -12(%rbp), %eax cmpl -4(%rbp), %eax jge LBB2_8 ## %bb.2: ## in Loop: Header=BB2_1 Depth=1 movl $0, -16(%rbp) LBB2_3: ## Parent Loop BB2_1 Depth=1 ## => This Inner Loop Header: Depth=2 movl -16(%rbp), %eax cmpl -8(%rbp), %eax jge LBB2_6 ## %bb.4: ## in Loop: Header=BB2_3 Depth=2 jmp LBB2_5 LBB2_5: ## in Loop: Header=BB2_3 Depth=2 movl -16(%rbp), %eax addl $1, %eax movl %eax, -16(%rbp) jmp LBB2_3 LBB2_6: ## in Loop: Header=BB2_1 Depth=1 jmp LBB2_7 LBB2_7: ## in Loop: Header=BB2_1 Depth=1 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB2_1 LBB2_8: popq %rbp retq .cfi_endproc ## -- End function .globl _test_four ## -- Begin function test_four .p2align 4, 0x90 _test_four: ## @test_four .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, -4(%rbp) movl %esi, -8(%rbp) movl $0, -12(%rbp) LBB3_1: ## =>This Loop Header: Depth=1 ## Child Loop BB3_3 Depth 2 movl -12(%rbp), %eax cmpl -4(%rbp), %eax jge LBB3_8 ## %bb.2: ## in Loop: Header=BB3_1 Depth=1 movl $0, -16(%rbp) LBB3_3: ## Parent Loop BB3_1 Depth=1 ## => This Inner Loop Header: Depth=2 movl -16(%rbp), %eax cmpl -8(%rbp), %eax jge LBB3_6 ## %bb.4: ## in Loop: Header=BB3_3 Depth=2 jmp LBB3_5 LBB3_5: ## in Loop: Header=BB3_3 Depth=2 movl -16(%rbp), %eax addl $1, %eax movl %eax, -16(%rbp) jmp LBB3_3 LBB3_6: ## in Loop: Header=BB3_1 Depth=1 jmp LBB3_7 LBB3_7: ## in Loop: Header=BB3_1 Depth=1 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB3_1 LBB3_8: popq %rbp retq .cfi_endproc ## -- End function .globl _test_five ## -- Begin function test_five .p2align 4, 0x90 _test_five: ## @test_five .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 $0, -16(%rbp) LBB4_1: ## =>This Loop Header: Depth=1 ## Child Loop BB4_3 Depth 2 ## Child Loop BB4_5 Depth 3 movl -16(%rbp), %eax cmpl -4(%rbp), %eax jge LBB4_12 ## %bb.2: ## in Loop: Header=BB4_1 Depth=1 movl $0, -20(%rbp) LBB4_3: ## Parent Loop BB4_1 Depth=1 ## => This Loop Header: Depth=2 ## Child Loop BB4_5 Depth 3 movl -20(%rbp), %eax cmpl -8(%rbp), %eax jge LBB4_10 ## %bb.4: ## in Loop: Header=BB4_3 Depth=2 movl $0, -24(%rbp) LBB4_5: ## Parent Loop BB4_1 Depth=1 ## Parent Loop BB4_3 Depth=2 ## => This Inner Loop Header: Depth=3 movl -24(%rbp), %eax cmpl -12(%rbp), %eax jge LBB4_8 ## %bb.6: ## in Loop: Header=BB4_5 Depth=3 jmp LBB4_7 LBB4_7: ## in Loop: Header=BB4_5 Depth=3 movl -24(%rbp), %eax addl $1, %eax movl %eax, -24(%rbp) jmp LBB4_5 LBB4_8: ## in Loop: Header=BB4_3 Depth=2 jmp LBB4_9 LBB4_9: ## in Loop: Header=BB4_3 Depth=2 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB4_3 LBB4_10: ## in Loop: Header=BB4_1 Depth=1 jmp LBB4_11 LBB4_11: ## in Loop: Header=BB4_1 Depth=1 movl -16(%rbp), %eax addl $1, %eax movl %eax, -16(%rbp) jmp LBB4_1 LBB4_12: popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/122014510.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .comm _dbgLog,8,3 ; @dbgLog .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .comm _dbgLog,8,3 ## @dbgLog .subsections_via_symbols
the_stack_data/73188.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #112 .cfi_def_cfa_offset 112 stp x29, x30, [sp, #96] ; 16-byte Folded Spill add x29, sp, #96 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] 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, #-36] stur wzr, [x29, #-32] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-36] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-36] mov w9, #10 sdiv w8, w8, w9 stur w8, [x29, #-36] ldur w8, [x29, #-32] add w8, w8, #1 stur w8, [x29, #-32] b LBB0_1 LBB0_3: ldur w8, [x29, #-8] mov w9, #10000 sdiv w8, w8, w9 mov w10, #10 str w10, [sp, #44] ; 4-byte Folded Spill sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 stur w8, [x29, #-12] ldur w8, [x29, #-8] mov w9, #1000 sdiv w8, w8, w9 sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 stur w8, [x29, #-16] ldur w8, [x29, #-8] mov w9, #100 sdiv w8, w8, w9 sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 stur w8, [x29, #-20] ldur w8, [x29, #-8] sdiv w8, w8, w10 sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 stur w8, [x29, #-24] ldur w8, [x29, #-8] mov w9, #1 sdiv w8, w8, w9 sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 stur w8, [x29, #-28] ldur w8, [x29, #-32] subs w8, w8, #1 ; kill: def $x8 killed $w8 str x8, [sp, #48] ; 8-byte Folded Spill subs x8, x8, #4 cset w8, hi tbnz w8, #0, LBB0_10 ; %bb.4: ldr x11, [sp, #48] ; 8-byte Folded Reload adrp x10, lJTI0_0@PAGE add x10, x10, lJTI0_0@PAGEOFF Ltmp0: adr x8, Ltmp0 ldrsw x9, [x10, x11, lsl #2] add x8, x8, x9 br x8 LBB0_5: ldur w9, [x29, #-32] ; 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, #-28] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf ldur w9, [x29, #-28] ; 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_11 LBB0_6: ldur w9, [x29, #-32] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf ldur w8, [x29, #-24] ; implicit-def: $x10 mov x10, x8 ldur w9, [x29, #-28] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf ldur w8, [x29, #-28] ; implicit-def: $x10 mov x10, x8 ldur w9, [x29, #-24] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _printf b LBB0_11 LBB0_7: ldur w9, [x29, #-32] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf ldur w8, [x29, #-20] ; implicit-def: $x11 mov x11, x8 ldur w8, [x29, #-24] ; implicit-def: $x10 mov x10, x8 ldur w9, [x29, #-28] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x11, [x9] str x10, [x9, #8] str x8, [x9, #16] adrp x0, l_.str.7@PAGE add x0, x0, l_.str.7@PAGEOFF bl _printf ldur w8, [x29, #-28] ; implicit-def: $x11 mov x11, x8 ldur w8, [x29, #-24] ; implicit-def: $x10 mov x10, x8 ldur w9, [x29, #-20] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x11, [x9] str x10, [x9, #8] str x8, [x9, #16] adrp x0, l_.str.8@PAGE add x0, x0, l_.str.8@PAGEOFF bl _printf b LBB0_11 LBB0_8: ldur w9, [x29, #-32] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf ldur w8, [x29, #-16] ; implicit-def: $x12 mov x12, x8 ldur w8, [x29, #-20] ; implicit-def: $x11 mov x11, x8 ldur w8, [x29, #-24] ; implicit-def: $x10 mov x10, x8 ldur w9, [x29, #-28] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x12, [x9] str x11, [x9, #8] str x10, [x9, #16] str x8, [x9, #24] adrp x0, l_.str.9@PAGE add x0, x0, l_.str.9@PAGEOFF bl _printf ldur w8, [x29, #-28] ; implicit-def: $x12 mov x12, x8 ldur w8, [x29, #-24] ; implicit-def: $x11 mov x11, x8 ldur w8, [x29, #-20] ; implicit-def: $x10 mov x10, x8 ldur w9, [x29, #-16] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x12, [x9] str x11, [x9, #8] str x10, [x9, #16] str x8, [x9, #24] adrp x0, l_.str.10@PAGE add x0, x0, l_.str.10@PAGEOFF bl _printf b LBB0_11 LBB0_9: ldur w9, [x29, #-32] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf ldur w8, [x29, #-12] ; implicit-def: $x13 mov x13, x8 ldur w8, [x29, #-16] ; implicit-def: $x12 mov x12, x8 ldur w8, [x29, #-20] ; implicit-def: $x11 mov x11, x8 ldur w8, [x29, #-24] ; implicit-def: $x10 mov x10, x8 ldur w9, [x29, #-28] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x13, [x9] str x12, [x9, #8] str x11, [x9, #16] str x10, [x9, #24] str x8, [x9, #32] adrp x0, l_.str.11@PAGE add x0, x0, l_.str.11@PAGEOFF bl _printf ldur w8, [x29, #-28] ; implicit-def: $x13 mov x13, x8 ldur w8, [x29, #-24] ; implicit-def: $x12 mov x12, x8 ldur w8, [x29, #-20] ; implicit-def: $x11 mov x11, x8 ldur w8, [x29, #-16] ; implicit-def: $x10 mov x10, x8 ldur w9, [x29, #-12] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x13, [x9] str x12, [x9, #8] str x11, [x9, #16] str x10, [x9, #24] str x8, [x9, #32] adrp x0, l_.str.12@PAGE add x0, x0, l_.str.12@PAGEOFF bl _printf b LBB0_11 LBB0_10: adrp x0, l_.str.13@PAGE add x0, x0, l_.str.13@PAGEOFF bl _printf b LBB0_11 LBB0_11: 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_5-Ltmp0 .long LBB0_6-Ltmp0 .long LBB0_7-Ltmp0 .long LBB0_8-Ltmp0 .long LBB0_9-Ltmp0 ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Enter a number: " l_.str.1: ; @.str.1 .asciz "%d" l_.str.2: ; @.str.2 .asciz "n is a %d-digit number.\n" l_.str.3: ; @.str.3 .asciz "Each of its digits: %d\n" l_.str.4: ; @.str.4 .asciz "Each of its digits in reverse order: %d\n" l_.str.5: ; @.str.5 .asciz "Each of its digits: %d %d\n" l_.str.6: ; @.str.6 .asciz "Each of its digits in reverse order: %d %d\n" l_.str.7: ; @.str.7 .asciz "Each of its digits: %d %d %d\n" l_.str.8: ; @.str.8 .asciz "Each of its digits in reverse order: %d %d %d\n" l_.str.9: ; @.str.9 .asciz "Each of its digits: %d %d %d %d\n" l_.str.10: ; @.str.10 .asciz "Each of its digits in reverse order: %d %d %d %d\n" l_.str.11: ; @.str.11 .asciz "Each of its digits: %d %d %d %d %d\n" l_.str.12: ; @.str.12 .asciz "Each of its digits in reverse order: %d %d %d %d %d\n" l_.str.13: ; @.str.13 .asciz "Bad number.\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movl $0, -4(%rbp) leaq L_.str(%rip), %rdi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi leaq -8(%rbp), %rsi movb $0, %al callq _scanf movl -8(%rbp), %eax movl %eax, -36(%rbp) movl $0, -32(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 cmpl $0, -36(%rbp) jle LBB0_3 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl -36(%rbp), %eax movl $10, %ecx cltd idivl %ecx movl %eax, -36(%rbp) movl -32(%rbp), %eax addl $1, %eax movl %eax, -32(%rbp) jmp LBB0_1 LBB0_3: movslq -8(%rbp), %rax imulq $1759218605, %rax, %rax ## imm = 0x68DB8BAD movq %rax, %rcx shrq $63, %rcx ## kill: def $ecx killed $ecx killed $rcx sarq $44, %rax ## kill: def $eax killed $eax killed $rax addl %ecx, %eax movslq %eax, %rcx imulq $1717986919, %rcx, %rdx ## imm = 0x66666667 movq %rdx, %rcx shrq $63, %rcx ## kill: def $ecx killed $ecx killed $rcx sarq $34, %rdx ## kill: def $edx killed $edx killed $rdx addl %ecx, %edx addl %edx, %edx ## implicit-def: $rcx movl %edx, %ecx leal (%rcx,%rcx,4), %ecx subl %ecx, %eax movl %eax, -12(%rbp) movslq -8(%rbp), %rax imulq $274877907, %rax, %rax ## imm = 0x10624DD3 movq %rax, %rcx shrq $63, %rcx ## kill: def $ecx killed $ecx killed $rcx sarq $38, %rax ## kill: def $eax killed $eax killed $rax addl %ecx, %eax movslq %eax, %rcx imulq $1717986919, %rcx, %rdx ## imm = 0x66666667 movq %rdx, %rcx shrq $63, %rcx ## kill: def $ecx killed $ecx killed $rcx sarq $34, %rdx ## kill: def $edx killed $edx killed $rdx addl %ecx, %edx addl %edx, %edx ## implicit-def: $rcx movl %edx, %ecx leal (%rcx,%rcx,4), %ecx subl %ecx, %eax movl %eax, -16(%rbp) movslq -8(%rbp), %rax imulq $1374389535, %rax, %rax ## imm = 0x51EB851F movq %rax, %rcx shrq $63, %rcx ## kill: def $ecx killed $ecx killed $rcx sarq $37, %rax ## kill: def $eax killed $eax killed $rax addl %ecx, %eax movslq %eax, %rcx imulq $1717986919, %rcx, %rdx ## imm = 0x66666667 movq %rdx, %rcx shrq $63, %rcx ## kill: def $ecx killed $ecx killed $rcx sarq $34, %rdx ## kill: def $edx killed $edx killed $rdx addl %ecx, %edx addl %edx, %edx ## implicit-def: $rcx movl %edx, %ecx leal (%rcx,%rcx,4), %ecx subl %ecx, %eax movl %eax, -20(%rbp) movslq -8(%rbp), %rax imulq $1717986919, %rax, %rax ## imm = 0x66666667 movq %rax, %rcx shrq $63, %rcx ## kill: def $ecx killed $ecx killed $rcx sarq $34, %rax ## kill: def $eax killed $eax killed $rax addl %ecx, %eax movslq %eax, %rcx imulq $1717986919, %rcx, %rdx ## imm = 0x66666667 movq %rdx, %rcx shrq $63, %rcx ## kill: def $ecx killed $ecx killed $rcx sarq $34, %rdx ## kill: def $edx killed $edx killed $rdx addl %ecx, %edx addl %edx, %edx ## implicit-def: $rcx movl %edx, %ecx leal (%rcx,%rcx,4), %ecx subl %ecx, %eax movl %eax, -24(%rbp) movslq -8(%rbp), %rcx movl %ecx, %eax imulq $1717986919, %rcx, %rdx ## imm = 0x66666667 movq %rdx, %rcx shrq $63, %rcx ## kill: def $ecx killed $ecx killed $rcx sarq $34, %rdx ## kill: def $edx killed $edx killed $rdx addl %ecx, %edx addl %edx, %edx ## implicit-def: $rcx movl %edx, %ecx leal (%rcx,%rcx,4), %ecx subl %ecx, %eax movl %eax, -28(%rbp) movl -32(%rbp), %eax decl %eax movl %eax, %ecx movq %rcx, -48(%rbp) ## 8-byte Spill subl $4, %eax ja LBB0_9 ## %bb.11: movq -48(%rbp), %rax ## 8-byte Reload leaq LJTI0_0(%rip), %rcx movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax LBB0_4: movl -32(%rbp), %esi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf movl -28(%rbp), %esi leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf movl -28(%rbp), %esi leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf jmp LBB0_10 LBB0_5: movl -32(%rbp), %esi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf movl -24(%rbp), %esi movl -28(%rbp), %edx leaq L_.str.5(%rip), %rdi movb $0, %al callq _printf movl -28(%rbp), %esi movl -24(%rbp), %edx leaq L_.str.6(%rip), %rdi movb $0, %al callq _printf jmp LBB0_10 LBB0_6: movl -32(%rbp), %esi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf movl -20(%rbp), %esi movl -24(%rbp), %edx movl -28(%rbp), %ecx leaq L_.str.7(%rip), %rdi movb $0, %al callq _printf movl -28(%rbp), %esi movl -24(%rbp), %edx movl -20(%rbp), %ecx leaq L_.str.8(%rip), %rdi movb $0, %al callq _printf jmp LBB0_10 LBB0_7: movl -32(%rbp), %esi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf movl -16(%rbp), %esi movl -20(%rbp), %edx movl -24(%rbp), %ecx movl -28(%rbp), %r8d leaq L_.str.9(%rip), %rdi movb $0, %al callq _printf movl -28(%rbp), %esi movl -24(%rbp), %edx movl -20(%rbp), %ecx movl -16(%rbp), %r8d leaq L_.str.10(%rip), %rdi movb $0, %al callq _printf jmp LBB0_10 LBB0_8: movl -32(%rbp), %esi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf movl -12(%rbp), %esi movl -16(%rbp), %edx movl -20(%rbp), %ecx movl -24(%rbp), %r8d movl -28(%rbp), %r9d leaq L_.str.11(%rip), %rdi movb $0, %al callq _printf movl -28(%rbp), %esi movl -24(%rbp), %edx movl -20(%rbp), %ecx movl -16(%rbp), %r8d movl -12(%rbp), %r9d leaq L_.str.12(%rip), %rdi movb $0, %al callq _printf jmp LBB0_10 LBB0_9: leaq L_.str.13(%rip), %rdi movb $0, %al callq _printf LBB0_10: xorl %eax, %eax addq $48, %rsp popq %rbp retq .cfi_endproc .p2align 2, 0x90 .data_region jt32 .set L0_0_set_4, LBB0_4-LJTI0_0 .set L0_0_set_5, LBB0_5-LJTI0_0 .set L0_0_set_6, LBB0_6-LJTI0_0 .set L0_0_set_7, LBB0_7-LJTI0_0 .set L0_0_set_8, LBB0_8-LJTI0_0 LJTI0_0: .long L0_0_set_4 .long L0_0_set_5 .long L0_0_set_6 .long L0_0_set_7 .long L0_0_set_8 .end_data_region ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Enter a number: " L_.str.1: ## @.str.1 .asciz "%d" L_.str.2: ## @.str.2 .asciz "n is a %d-digit number.\n" L_.str.3: ## @.str.3 .asciz "Each of its digits: %d\n" L_.str.4: ## @.str.4 .asciz "Each of its digits in reverse order: %d\n" L_.str.5: ## @.str.5 .asciz "Each of its digits: %d %d\n" L_.str.6: ## @.str.6 .asciz "Each of its digits in reverse order: %d %d\n" L_.str.7: ## @.str.7 .asciz "Each of its digits: %d %d %d\n" L_.str.8: ## @.str.8 .asciz "Each of its digits in reverse order: %d %d %d\n" L_.str.9: ## @.str.9 .asciz "Each of its digits: %d %d %d %d\n" L_.str.10: ## @.str.10 .asciz "Each of its digits in reverse order: %d %d %d %d\n" L_.str.11: ## @.str.11 .asciz "Each of its digits: %d %d %d %d %d\n" L_.str.12: ## @.str.12 .asciz "Each of its digits in reverse order: %d %d %d %d %d\n" L_.str.13: ## @.str.13 .asciz "Bad number.\n" .subsections_via_symbols
the_stack_data/199299.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov x9, sp sub x8, x29, #4 str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF str x0, [sp, #8] ; 8-byte Folded Spill bl _scanf adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf ldr x0, [sp, #8] ; 8-byte Folded Reload mov x9, sp sub x8, x29, #8 str x8, [x9] bl _scanf adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf ldr x0, [sp, #8] ; 8-byte Folded Reload mov x9, sp sub x8, x29, #12 str x8, [x9] bl _scanf ldur w8, [x29, #-4] ldur w9, [x29, #-8] add w8, w8, w9 ldur w9, [x29, #-12] add w8, w8, w9 str w8, [sp, #16] ldr w9, [sp, #16] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf 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 "Elmanin fiyati: " l_.str.1: ; @.str.1 .asciz "%d" l_.str.2: ; @.str.2 .asciz "Armudun fiyati: " l_.str.3: ; @.str.3 .asciz "Muzun fiyati: " l_.str.4: ; @.str.4 .asciz "Toplam fiyat: %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 leaq L_.str(%rip), %rdi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi leaq -4(%rbp), %rsi movb $0, %al callq _scanf leaq L_.str.2(%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.3(%rip), %rdi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi leaq -12(%rbp), %rsi movb $0, %al callq _scanf movl -4(%rbp), %eax addl -8(%rbp), %eax addl -12(%rbp), %eax movl %eax, -16(%rbp) movl -16(%rbp), %esi leaq L_.str.4(%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 "Elmanin fiyati: " L_.str.1: ## @.str.1 .asciz "%d" L_.str.2: ## @.str.2 .asciz "Armudun fiyati: " L_.str.3: ## @.str.3 .asciz "Muzun fiyati: " L_.str.4: ## @.str.4 .asciz "Toplam fiyat: %d" .subsections_via_symbols
the_stack_data/247018727.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #96 .cfi_def_cfa_offset 96 stp x29, x30, [sp, #80] ; 16-byte Folded Spill add x29, sp, #80 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] stur wzr, [x29, #-28] adrp x8, l___const.main.s1@PAGE add x8, x8, l___const.main.s1@PAGEOFF ldr x9, [x8] sub x0, x29, #24 str x0, [sp, #32] ; 8-byte Folded Spill stur x9, [x29, #-24] ldur x8, [x8, #7] stur x8, [x0, #7] adrp x8, l___const.main.s2@PAGE add x8, x8, l___const.main.s2@PAGEOFF ldr w8, [x8] sub x1, x29, #32 str x1, [sp, #40] ; 8-byte Folded Spill stur w8, [x29, #-32] bl _any ldr x10, [sp, #32] ; 8-byte Folded Reload ldr x8, [sp, #40] ; 8-byte Folded Reload mov x9, sp str x10, [x9] str x8, [x9, #8] ; implicit-def: $x8 mov x8, x0 str x8, [x9, #16] 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, #80] ; 16-byte Folded Reload add sp, sp, #96 ret .cfi_endproc ; -- End function .globl _any ; -- Begin function any .p2align 2 _any: ; @any .cfi_startproc ; %bb.0: sub sp, sp, #336 .cfi_def_cfa_offset 336 stp x28, x27, [sp, #304] ; 16-byte Folded Spill stp x29, x30, [sp, #320] ; 16-byte Folded Spill add x29, sp, #320 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w27, -24 .cfi_offset w28, -32 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] str x0, [sp, #24] str x1, [sp, #16] str wzr, [sp, #12] b LBB1_1 LBB1_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #12] subs w8, w8, #256 cset w8, ge tbnz w8, #0, LBB1_4 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 ldrsw x9, [sp, #12] add x8, sp, #40 add x8, x8, x9 strb wzr, [x8] 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: str wzr, [sp, #12] b LBB1_5 LBB1_5: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #16] ldrsw x9, [sp, #12] ldrsb w8, [x8, x9] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB1_8 b LBB1_6 LBB1_6: ; in Loop: Header=BB1_5 Depth=1 ldr x8, [sp, #16] ldrsw x9, [sp, #12] ldrb w8, [x8, x9] mov x9, x8 add x8, sp, #40 add x9, x8, x9 mov w8, #1 strb w8, [x9] b LBB1_7 LBB1_7: ; in Loop: Header=BB1_5 Depth=1 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB1_5 LBB1_8: str wzr, [sp, #12] b LBB1_9 LBB1_9: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #24] ldrsw x9, [sp, #12] ldrsb w8, [x8, x9] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB1_14 b LBB1_10 LBB1_10: ; in Loop: Header=BB1_9 Depth=1 ldr x8, [sp, #24] ldrsw x9, [sp, #12] ldrb w8, [x8, x9] mov x9, x8 add x8, sp, #40 add x8, x8, x9 ldrb w8, [x8] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB1_12 b LBB1_11 LBB1_11: ldr w8, [sp, #12] str w8, [sp, #36] b LBB1_15 LBB1_12: ; in Loop: Header=BB1_9 Depth=1 b LBB1_13 LBB1_13: ; in Loop: Header=BB1_9 Depth=1 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB1_9 LBB1_14: mov w8, #-1 str w8, [sp, #36] b LBB1_15 LBB1_15: ldr w8, [sp, #36] 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_17 b LBB1_16 LBB1_16: bl ___stack_chk_fail LBB1_17: ldr w0, [sp, #8] ; 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,__cstring,cstring_literals l___const.main.s1: ; @__const.main.s1 .asciz "abcdefghijklmn" l___const.main.s2: ; @__const.main.s2 .asciz "ihg" l_.str: ; @.str .asciz "s1: %s, s2: %s, any(s1, s2): %d\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -28(%rbp) movq L___const.main.s1(%rip), %rax movq %rax, -23(%rbp) movl L___const.main.s1+8(%rip), %eax movl %eax, -15(%rbp) movw L___const.main.s1+12(%rip), %ax movw %ax, -11(%rbp) movb L___const.main.s1+14(%rip), %al movb %al, -9(%rbp) movl L___const.main.s2(%rip), %eax movl %eax, -32(%rbp) leaq -23(%rbp), %rax movq %rax, -48(%rbp) ## 8-byte Spill leaq -32(%rbp), %rax movq %rax, -40(%rbp) ## 8-byte Spill leaq -23(%rbp), %rdi leaq -32(%rbp), %rsi callq _any movq -48(%rbp), %rsi ## 8-byte Reload movq -40(%rbp), %rdx ## 8-byte Reload movl %eax, %ecx leaq L_.str(%rip), %rdi movb $0, %al callq _printf movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_2 ## %bb.1: xorl %eax, %eax addq $48, %rsp popq %rbp retq LBB0_2: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .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 subq $304, %rsp ## imm = 0x130 movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movq %rdi, -288(%rbp) movq %rsi, -296(%rbp) movl $0, -300(%rbp) LBB1_1: ## =>This Inner Loop Header: Depth=1 cmpl $256, -300(%rbp) ## imm = 0x100 jge LBB1_4 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 movslq -300(%rbp), %rax movb $0, -272(%rbp,%rax) ## %bb.3: ## in Loop: Header=BB1_1 Depth=1 movl -300(%rbp), %eax addl $1, %eax movl %eax, -300(%rbp) jmp LBB1_1 LBB1_4: movl $0, -300(%rbp) LBB1_5: ## =>This Inner Loop Header: Depth=1 movq -296(%rbp), %rax movslq -300(%rbp), %rcx movsbl (%rax,%rcx), %eax cmpl $0, %eax je LBB1_8 ## %bb.6: ## in Loop: Header=BB1_5 Depth=1 movq -296(%rbp), %rax movslq -300(%rbp), %rcx movzbl (%rax,%rcx), %eax ## kill: def $rax killed $eax movb $1, -272(%rbp,%rax) ## %bb.7: ## in Loop: Header=BB1_5 Depth=1 movl -300(%rbp), %eax addl $1, %eax movl %eax, -300(%rbp) jmp LBB1_5 LBB1_8: movl $0, -300(%rbp) LBB1_9: ## =>This Inner Loop Header: Depth=1 movq -288(%rbp), %rax movslq -300(%rbp), %rcx movsbl (%rax,%rcx), %eax cmpl $0, %eax je LBB1_14 ## %bb.10: ## in Loop: Header=BB1_9 Depth=1 movq -288(%rbp), %rax movslq -300(%rbp), %rcx movzbl (%rax,%rcx), %eax ## kill: def $rax killed $eax cmpb $0, -272(%rbp,%rax) je LBB1_12 ## %bb.11: movl -300(%rbp), %eax movl %eax, -276(%rbp) jmp LBB1_15 LBB1_12: ## in Loop: Header=BB1_9 Depth=1 jmp LBB1_13 LBB1_13: ## in Loop: Header=BB1_9 Depth=1 movl -300(%rbp), %eax addl $1, %eax movl %eax, -300(%rbp) jmp LBB1_9 LBB1_14: movl $-1, -276(%rbp) LBB1_15: movl -276(%rbp), %eax movl %eax, -304(%rbp) ## 4-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB1_17 ## %bb.16: movl -304(%rbp), %eax ## 4-byte Reload addq $304, %rsp ## imm = 0x130 popq %rbp retq LBB1_17: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L___const.main.s1: ## @__const.main.s1 .asciz "abcdefghijklmn" L___const.main.s2: ## @__const.main.s2 .asciz "ihg" L_.str: ## @.str .asciz "s1: %s, s2: %s, any(s1, s2): %d\n" .subsections_via_symbols
the_stack_data/32950566.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _handle_signal_chld ; -- Begin function handle_signal_chld .p2align 2 _handle_signal_chld: ; @handle_signal_chld .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #12] adrp x9, _child_to_wait_for@PAGE ldr w8, [x9, _child_to_wait_for@PAGEOFF] add w8, w8, #1 str w8, [x9, _child_to_wait_for@PAGEOFF] add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _handle_signal_int ; -- Begin function handle_signal_int .p2align 2 _handle_signal_int: ; @handle_signal_int .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #12] adrp x9, _quit@PAGE mov w8, #1 str w8, [x9, _quit@PAGEOFF] add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _build_content ; -- Begin function build_content .p2align 2 _build_content: ; @build_content .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 x0, [sp, #32] str x1, [sp, #24] str wzr, [sp, #16] b LBB2_1 LBB2_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #24] subs x8, x8, #0 cset w8, ls tbnz w8, #0, LBB2_8 b LBB2_2 LBB2_2: ; in Loop: Header=BB2_1 Depth=1 ldr w8, [sp, #16] ; implicit-def: $x10 mov x10, x8 ldr w9, [sp, #16] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x10, [x9] str x8, [x9, #8] add x0, sp, #40 mov x3, #80 mov x1, x3 mov w2, #0 adrp x4, l_.str@PAGE add x4, x4, l_.str@PAGEOFF bl ___snprintf_chk str w0, [sp, #20] ldr w8, [sp, #20] subs w8, w8, #64 cset w8, eq tbnz w8, #0, LBB2_4 b LBB2_3 LBB2_3: ; in Loop: Header=BB2_1 Depth=1 adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] ldr x0, [x8] ldr w9, [sp, #20] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF bl _fprintf b LBB2_4 LBB2_4: ; in Loop: Header=BB2_1 Depth=1 ldr w8, [sp, #16] add w8, w8, #1 str w8, [sp, #16] ldr x8, [sp, #24] subs x8, x8, #64 cset w8, lo tbnz w8, #0, LBB2_6 b LBB2_5 LBB2_5: ; in Loop: Header=BB2_1 Depth=1 ldr x0, [sp, #32] add x1, sp, #40 mov x2, #64 mov x3, #-1 bl ___memcpy_chk ldr x8, [sp, #32] add x8, x8, #64 str x8, [sp, #32] ldr x8, [sp, #24] subs x8, x8, #64 str x8, [sp, #24] b LBB2_7 LBB2_6: ; in Loop: Header=BB2_1 Depth=1 ldr x0, [sp, #32] ldr x2, [sp, #24] add x1, sp, #40 mov x3, #-1 bl ___memcpy_chk ldr x9, [sp, #24] ldr x8, [sp, #32] add x8, x8, x9 str x8, [sp, #32] str xzr, [sp, #24] b LBB2_7 LBB2_7: ; in Loop: Header=BB2_1 Depth=1 b LBB2_1 LBB2_8: 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_10 b LBB2_9 LBB2_9: bl ___stack_chk_fail LBB2_10: ldp x29, x30, [sp, #128] ; 16-byte Folded Reload add sp, sp, #144 ret .cfi_endproc ; -- End function .globl _build_crap ; -- Begin function build_crap .p2align 2 _build_crap: ; @build_crap .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] b LBB3_1 LBB3_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #16] subs x8, x8, #0 cset w8, ls tbnz w8, #0, LBB3_5 b LBB3_2 LBB3_2: ; in Loop: Header=BB3_1 Depth=1 mov x8, #8 str x8, [sp, #8] ldr x8, [sp, #8] ldr x9, [sp, #16] subs x8, x8, x9 cset w8, ls tbnz w8, #0, LBB3_4 b LBB3_3 LBB3_3: ; in Loop: Header=BB3_1 Depth=1 ldr x8, [sp, #16] str x8, [sp, #8] b LBB3_4 LBB3_4: ; in Loop: Header=BB3_1 Depth=1 ldur x0, [x29, #-8] ldr x2, [sp, #8] adrp x1, _build_crap.crap@PAGE add x1, x1, _build_crap.crap@PAGEOFF mov x3, #-1 bl ___memcpy_chk ldr x9, [sp, #8] ldur x8, [x29, #-8] add x8, x8, x9 stur x8, [x29, #-8] ldr x9, [sp, #8] ldr x8, [sp, #16] subs x8, x8, x9 str x8, [sp, #16] b LBB3_1 LBB3_5: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _build_chunked_response ; -- Begin function build_chunked_response .p2align 2 _build_chunked_response: ; @build_chunked_response .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] ldur x8, [x29, #-16] add x8, x8, #256 ldur x9, [x29, #-16] add x8, x8, x9, lsr #4 str x8, [sp, #48] ldr x0, [sp, #48] bl _malloc stur x0, [x29, #-32] ldur x8, [x29, #-32] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB4_2 b LBB4_1 LBB4_1: ; kill: def $x8 killed $xzr stur xzr, [x29, #-8] b LBB4_10 LBB4_2: ldur x0, [x29, #-32] ldr x1, [sp, #48] mov w2, #0 mov x3, #-1 adrp x4, l_.str.2@PAGE add x4, x4, l_.str.2@PAGEOFF bl ___snprintf_chk ; implicit-def: $x8 mov x8, x0 sxtw x8, w8 ldur x9, [x29, #-24] str x8, [x9] ldur x0, [x29, #-16] bl _malloc stur x0, [x29, #-40] ldur x8, [x29, #-40] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB4_4 b LBB4_3 LBB4_3: ldur x0, [x29, #-32] bl _free ; kill: def $x8 killed $xzr stur xzr, [x29, #-8] b LBB4_10 LBB4_4: ldur x0, [x29, #-40] ldur x1, [x29, #-16] bl _build_content str xzr, [sp, #40] b LBB4_5 LBB4_5: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #40] ldur x9, [x29, #-16] subs x8, x8, x9 cset w8, hs tbnz w8, #0, LBB4_9 b LBB4_6 LBB4_6: ; in Loop: Header=BB4_5 Depth=1 bl _rand mov w9, #199 sdiv w8, w0, w9 mul w8, w8, w9 subs w8, w0, w8 add w8, w8, #1 str w8, [sp, #36] ldr x8, [sp, #40] ldr w9, [sp, #36] ; kill: def $x9 killed $w9 add x8, x8, x9 ldur x9, [x29, #-16] subs x8, x8, x9 cset w8, ls tbnz w8, #0, LBB4_8 b LBB4_7 LBB4_7: ; in Loop: Header=BB4_5 Depth=1 ldur x8, [x29, #-16] ldr x9, [sp, #40] subs x8, x8, x9 ; kill: def $w8 killed $w8 killed $x8 str w8, [sp, #36] b LBB4_8 LBB4_8: ; in Loop: Header=BB4_5 Depth=1 ldur x8, [x29, #-32] ldur x9, [x29, #-24] ldr x9, [x9] add x0, x8, x9 ldr x8, [sp, #48] ldur x9, [x29, #-24] ldr x9, [x9] subs x1, x8, x9 ldr w9, [sp, #36] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] mov w2, #0 mov x3, #-1 str x3, [sp, #24] ; 8-byte Folded Spill adrp x4, l_.str.3@PAGE add x4, x4, l_.str.3@PAGEOFF bl ___snprintf_chk ldr x3, [sp, #24] ; 8-byte Folded Reload ldur x9, [x29, #-24] ldr x8, [x9] add x8, x8, w0, sxtw str x8, [x9] ldur x8, [x29, #-32] ldur x9, [x29, #-24] ldr x9, [x9] add x0, x8, x9 ldur x8, [x29, #-40] ldr x9, [sp, #40] add x1, x8, x9 ldr w8, [sp, #36] mov x2, x8 bl ___memcpy_chk ldr w8, [sp, #36] mov x10, x8 ldur x9, [x29, #-24] ldr x8, [x9] add x8, x8, x10 str x8, [x9] ldr w8, [sp, #36] mov x9, x8 ldr x8, [sp, #40] add x8, x8, x9 str x8, [sp, #40] ldur x8, [x29, #-32] ldur x11, [x29, #-24] ldr x9, [x11] add x10, x9, #1 str x10, [x11] add x9, x8, x9 mov w8, #13 strb w8, [x9] ldur x8, [x29, #-32] ldur x11, [x29, #-24] ldr x9, [x11] add x10, x9, #1 str x10, [x11] add x9, x8, x9 mov w8, #10 strb w8, [x9] b LBB4_5 LBB4_9: ldur x8, [x29, #-32] ldur x9, [x29, #-24] ldr x9, [x9] add x0, x8, x9 adrp x1, l_.str.4@PAGE add x1, x1, l_.str.4@PAGEOFF mov x2, #5 mov x3, #-1 bl ___memcpy_chk ldur x9, [x29, #-24] ldr x8, [x9] add x8, x8, #5 str x8, [x9] ldur x0, [x29, #-40] bl _free ldur x8, [x29, #-24] ldr x11, [x8] ldr x10, [sp, #48] ldur x8, [x29, #-16] mov x9, sp str x11, [x9] str x10, [x9, #8] str x8, [x9, #16] adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf ldur x8, [x29, #-32] stur x8, [x29, #-8] b LBB4_10 LBB4_10: ldur x0, [x29, #-8] ldp x29, x30, [sp, #96] ; 16-byte Folded Reload add sp, sp, #112 ret .cfi_endproc ; -- End function .globl _build_favicon_content ; -- Begin function build_favicon_content .p2align 2 _build_favicon_content: ; @build_favicon_content .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, #24] str x1, [sp, #16] ldr x8, [sp, #16] subs x8, x8, #198 cset w8, hs tbnz w8, #0, LBB5_2 b LBB5_1 LBB5_1: b LBB5_17 LBB5_2: ldr x8, [sp, #24] add x9, x8, #1 str x9, [sp, #24] strb wzr, [x8] ldr x8, [sp, #24] add x9, x8, #1 str x9, [sp, #24] strb wzr, [x8] ldr x9, [sp, #24] add x8, x9, #1 str x8, [sp, #24] mov w8, #1 strb w8, [x9] ldr x9, [sp, #24] add x10, x9, #1 str x10, [sp, #24] strb wzr, [x9] ldr x9, [sp, #24] add x10, x9, #1 str x10, [sp, #24] strb w8, [x9] ldr x9, [sp, #24] add x10, x9, #1 str x10, [sp, #24] strb wzr, [x9] ldr x10, [sp, #24] add x9, x10, #1 str x9, [sp, #24] mov w9, #16 strb w9, [x10] ldr x10, [sp, #24] add x11, x10, #1 str x11, [sp, #24] strb w9, [x10] ldr x11, [sp, #24] add x10, x11, #1 str x10, [sp, #24] mov w10, #2 strb w10, [x11] ldr x10, [sp, #24] add x11, x10, #1 str x11, [sp, #24] strb wzr, [x10] ldr x10, [sp, #24] add x11, x10, #1 str x11, [sp, #24] strb w8, [x10] ldr x10, [sp, #24] add x11, x10, #1 str x11, [sp, #24] strb wzr, [x10] ldr x10, [sp, #24] add x11, x10, #1 str x11, [sp, #24] strb w8, [x10] ldr x10, [sp, #24] add x11, x10, #1 str x11, [sp, #24] strb wzr, [x10] ldr x11, [sp, #24] add x10, x11, #1 str x10, [sp, #24] mov w10, #176 strb w10, [x11] ldr x10, [sp, #24] add x11, x10, #1 str x11, [sp, #24] strb wzr, [x10] ldr x10, [sp, #24] add x11, x10, #1 str x11, [sp, #24] strb wzr, [x10] ldr x10, [sp, #24] add x11, x10, #1 str x11, [sp, #24] strb wzr, [x10] ldr x11, [sp, #24] add x10, x11, #1 str x10, [sp, #24] mov w10, #22 strb w10, [x11] ldr x10, [sp, #24] add x11, x10, #1 str x11, [sp, #24] strb wzr, [x10] ldr x10, [sp, #24] add x11, x10, #1 str x11, [sp, #24] strb wzr, [x10] ldr x10, [sp, #24] add x11, x10, #1 str x11, [sp, #24] strb wzr, [x10] ldr x11, [sp, #24] add x10, x11, #1 str x10, [sp, #24] mov w10, #40 strb w10, [x11] ldr x10, [sp, #24] add x11, x10, #1 str x11, [sp, #24] strb wzr, [x10] ldr x10, [sp, #24] add x11, x10, #1 str x11, [sp, #24] strb wzr, [x10] ldr x10, [sp, #24] add x11, x10, #1 str x11, [sp, #24] strb wzr, [x10] ldr x10, [sp, #24] add x11, x10, #1 str x11, [sp, #24] strb w9, [x10] ldr x9, [sp, #24] add x10, x9, #1 str x10, [sp, #24] strb wzr, [x9] ldr x9, [sp, #24] add x10, x9, #1 str x10, [sp, #24] strb wzr, [x9] ldr x9, [sp, #24] add x10, x9, #1 str x10, [sp, #24] strb wzr, [x9] ldr x10, [sp, #24] add x9, x10, #1 str x9, [sp, #24] mov w9, #32 strb w9, [x10] ldr x9, [sp, #24] add x10, x9, #1 str x10, [sp, #24] strb wzr, [x9] ldr x9, [sp, #24] add x10, x9, #1 str x10, [sp, #24] strb wzr, [x9] ldr x9, [sp, #24] add x10, x9, #1 str x10, [sp, #24] strb wzr, [x9] ldr x9, [sp, #24] add x10, x9, #1 str x10, [sp, #24] strb w8, [x9] ldr x9, [sp, #24] add x10, x9, #1 str x10, [sp, #24] strb wzr, [x9] ldr x9, [sp, #24] add x10, x9, #1 str x10, [sp, #24] strb w8, [x9] ldr x8, [sp, #24] add x9, x8, #1 str x9, [sp, #24] strb wzr, [x8] mov w8, #24 str w8, [sp, #12] b LBB5_3 LBB5_3: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #12] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB5_6 b LBB5_4 LBB5_4: ; in Loop: Header=BB5_3 Depth=1 ldr x8, [sp, #24] add x9, x8, #1 str x9, [sp, #24] strb wzr, [x8] b LBB5_5 LBB5_5: ; in Loop: Header=BB5_3 Depth=1 ldr w8, [sp, #12] subs w8, w8, #1 str w8, [sp, #12] b LBB5_3 LBB5_6: ldr x8, [sp, #24] add x9, x8, #1 str x9, [sp, #24] strb wzr, [x8] ldr x8, [sp, #24] add x9, x8, #1 str x9, [sp, #24] strb wzr, [x8] ldr x8, [sp, #24] add x9, x8, #1 str x9, [sp, #24] strb wzr, [x8] ldr x8, [sp, #24] add x9, x8, #1 str x9, [sp, #24] strb wzr, [x8] ldr x9, [sp, #24] add x8, x9, #1 str x8, [sp, #24] mov w8, #255 strb w8, [x9] ldr x9, [sp, #24] add x10, x9, #1 str x10, [sp, #24] strb w8, [x9] ldr x9, [sp, #24] add x10, x9, #1 str x10, [sp, #24] strb w8, [x9] ldr x8, [sp, #24] add x9, x8, #1 str x9, [sp, #24] strb wzr, [x8] mov w8, #16 str w8, [sp, #12] b LBB5_7 LBB5_7: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #12] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB5_13 b LBB5_8 LBB5_8: ; in Loop: Header=BB5_7 Depth=1 ldr w8, [sp, #12] ands w8, w8, #0x1 cset w8, eq tbnz w8, #0, LBB5_10 b LBB5_9 LBB5_9: ; in Loop: Header=BB5_7 Depth=1 ldr x9, [sp, #24] add x8, x9, #1 str x8, [sp, #24] mov w8, #85 strb w8, [x9] ldr x9, [sp, #24] add x10, x9, #1 str x10, [sp, #24] strb w8, [x9] b LBB5_11 LBB5_10: ; in Loop: Header=BB5_7 Depth=1 ldr x9, [sp, #24] add x8, x9, #1 str x8, [sp, #24] mov w8, #170 strb w8, [x9] ldr x9, [sp, #24] add x10, x9, #1 str x10, [sp, #24] strb w8, [x9] b LBB5_11 LBB5_11: ; in Loop: Header=BB5_7 Depth=1 ldr x8, [sp, #24] add x9, x8, #1 str x9, [sp, #24] strb wzr, [x8] ldr x8, [sp, #24] add x9, x8, #1 str x9, [sp, #24] strb wzr, [x8] b LBB5_12 LBB5_12: ; in Loop: Header=BB5_7 Depth=1 ldr w8, [sp, #12] subs w8, w8, #1 str w8, [sp, #12] b LBB5_7 LBB5_13: mov w8, #64 str w8, [sp, #12] b LBB5_14 LBB5_14: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #12] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB5_17 b LBB5_15 LBB5_15: ; in Loop: Header=BB5_14 Depth=1 ldr x8, [sp, #24] add x9, x8, #1 str x9, [sp, #24] strb wzr, [x8] b LBB5_16 LBB5_16: ; in Loop: Header=BB5_14 Depth=1 ldr w8, [sp, #12] subs w8, w8, #1 str w8, [sp, #12] b LBB5_14 LBB5_17: add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _send_response ; -- Begin function send_response .p2align 2 _send_response: ; @send_response .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur w0, [x29, #-4] str x1, [sp, #16] str x2, [sp, #8] b LBB6_1 LBB6_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #8] subs x8, x8, #0 cset w8, ls tbnz w8, #0, LBB6_10 b LBB6_2 LBB6_2: ; in Loop: Header=BB6_1 Depth=1 bl _rand mov w9, #99 sdiv w8, w0, w9 mul w8, w8, w9 subs w8, w0, w8 add w9, w8, #1 ; implicit-def: $x8 mov x8, x9 sxtw x8, w8 str x8, [sp] ldr x8, [sp] ldr x9, [sp, #8] subs x8, x8, x9 cset w8, ls tbnz w8, #0, LBB6_4 b LBB6_3 LBB6_3: ; in Loop: Header=BB6_1 Depth=1 ldr x8, [sp, #8] str x8, [sp] b LBB6_4 LBB6_4: ; in Loop: Header=BB6_1 Depth=1 ldur w0, [x29, #-4] ldr x1, [sp, #16] ldr x2, [sp] bl _write str x0, [sp] ldr x8, [sp] subs x8, x8, #0 cset w8, ge tbnz w8, #0, LBB6_8 b LBB6_5 LBB6_5: ; in Loop: Header=BB6_1 Depth=1 bl ___error ldr w8, [x0] subs w8, w8, #4 cset w8, eq tbnz w8, #0, LBB6_7 b LBB6_6 LBB6_6: adrp x0, l_.str.10@PAGE add x0, x0, l_.str.10@PAGEOFF bl _perror b LBB6_10 LBB6_7: ; in Loop: Header=BB6_1 Depth=1 b LBB6_9 LBB6_8: ; in Loop: Header=BB6_1 Depth=1 ldr x9, [sp] ldr x8, [sp, #8] subs x8, x8, x9 str x8, [sp, #8] ldr x9, [sp] ldr x8, [sp, #16] add x8, x8, x9 str x8, [sp, #16] mov w0, #10000 bl _usleep b LBB6_9 LBB6_9: ; in Loop: Header=BB6_1 Depth=1 b LBB6_1 LBB6_10: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _handle_http_connection ; -- Begin function handle_http_connection .p2align 2 _handle_http_connection: ; @handle_http_connection .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, #2560 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] str w0, [sp, #164] str xzr, [sp, #152] str wzr, [sp, #148] mov x8, #16384 str x8, [sp, #80] b LBB7_1 LBB7_1: ; =>This Loop Header: Depth=1 ; Child Loop BB7_11 Depth 2 ldr x8, [sp, #152] subs x8, x8, #2048 cset w8, hs mov w9, #0 str w9, [sp, #68] ; 4-byte Folded Spill tbnz w8, #0, LBB7_3 b LBB7_2 LBB7_2: ; in Loop: Header=BB7_1 Depth=1 ldr w8, [sp, #148] subs w8, w8, #0 cset w8, eq str w8, [sp, #68] ; 4-byte Folded Spill b LBB7_3 LBB7_3: ; in Loop: Header=BB7_1 Depth=1 ldr w8, [sp, #68] ; 4-byte Folded Reload tbz w8, #0, LBB7_19 b LBB7_4 LBB7_4: ; in Loop: Header=BB7_1 Depth=1 ldr w0, [sp, #164] ldr x9, [sp, #152] add x8, sp, #504 add x1, x8, x9 ldr x9, [sp, #152] mov x8, #2048 subs x2, x8, x9 bl _read str x0, [sp, #136] ldr x8, [sp, #136] subs x8, x8, #0 cset w8, ge tbnz w8, #0, LBB7_8 b LBB7_5 LBB7_5: ; in Loop: Header=BB7_1 Depth=1 bl ___error ldr w8, [x0] subs w8, w8, #4 cset w8, ne tbnz w8, #0, LBB7_7 b LBB7_6 LBB7_6: ; in Loop: Header=BB7_1 Depth=1 b LBB7_1 LBB7_7: adrp x0, l_.str.11@PAGE add x0, x0, l_.str.11@PAGEOFF bl _perror b LBB7_84 LBB7_8: ; in Loop: Header=BB7_1 Depth=1 ldr x8, [sp, #136] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB7_10 b LBB7_9 LBB7_9: b LBB7_19 LBB7_10: ; in Loop: Header=BB7_1 Depth=1 ldr x9, [sp, #136] ldr x8, [sp, #152] add x8, x8, x9 str x8, [sp, #152] str xzr, [sp, #120] b LBB7_11 LBB7_11: ; Parent Loop BB7_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr x8, [sp, #120] ldr x9, [sp, #152] subs x9, x9, #3 subs x8, x8, x9 cset w8, hs tbnz w8, #0, LBB7_16 b LBB7_12 LBB7_12: ; in Loop: Header=BB7_11 Depth=2 ldr x9, [sp, #120] add x8, sp, #504 add x0, x8, x9 adrp x1, l_.str.12@PAGE add x1, x1, l_.str.12@PAGEOFF mov x2, #4 bl _memcmp mov w8, #0 subs w8, w8, w0 cset w8, ne tbnz w8, #0, LBB7_14 b LBB7_13 LBB7_13: ; in Loop: Header=BB7_1 Depth=1 mov w8, #1 str w8, [sp, #148] b LBB7_16 LBB7_14: ; in Loop: Header=BB7_11 Depth=2 b LBB7_15 LBB7_15: ; in Loop: Header=BB7_11 Depth=2 ldr x8, [sp, #120] add x8, x8, #1 str x8, [sp, #120] b LBB7_11 LBB7_16: ; in Loop: Header=BB7_1 Depth=1 b LBB7_17 LBB7_17: ; in Loop: Header=BB7_1 Depth=1 b LBB7_18 LBB7_18: ; in Loop: Header=BB7_1 Depth=1 b LBB7_1 LBB7_19: ldr w8, [sp, #148] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB7_21 b LBB7_20 LBB7_20: adrp x0, l_.str.13@PAGE add x0, x0, l_.str.13@PAGEOFF bl _printf b LBB7_84 LBB7_21: ldr x8, [sp, #152] mov x9, sp str x8, [x9] add x8, sp, #504 str x8, [sp, #56] ; 8-byte Folded Spill str x8, [x9, #8] adrp x0, l_.str.14@PAGE add x0, x0, l_.str.14@PAGEOFF bl _printf ldr x8, [sp, #56] ; 8-byte Folded Reload str x8, [sp, #112] str xzr, [sp, #120] b LBB7_22 LBB7_22: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #120] subs x8, x8, #15 cset w8, hs tbnz w8, #0, LBB7_28 b LBB7_23 LBB7_23: ; in Loop: Header=BB7_22 Depth=1 ldr x8, [sp, #112] ldrsb w8, [x8] subs w8, w8, #32 cset w8, eq tbnz w8, #0, LBB7_25 b LBB7_24 LBB7_24: ; in Loop: Header=BB7_22 Depth=1 ldr x8, [sp, #112] ldrsb w8, [x8] subs w8, w8, #13 cset w8, ne tbnz w8, #0, LBB7_26 b LBB7_25 LBB7_25: b LBB7_28 LBB7_26: ; in Loop: Header=BB7_22 Depth=1 ldr x8, [sp, #112] ldrb w8, [x8] ldr x10, [sp, #120] add x9, sp, #488 add x9, x9, x10 strb w8, [x9] ldr x8, [sp, #112] add x8, x8, #1 str x8, [sp, #112] b LBB7_27 LBB7_27: ; in Loop: Header=BB7_22 Depth=1 ldr x8, [sp, #120] add x8, x8, #1 str x8, [sp, #120] b LBB7_22 LBB7_28: ldr x9, [sp, #120] add x8, sp, #488 add x8, x8, x9 strb wzr, [x8] b LBB7_29 LBB7_29: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #112] ldrsb w8, [x8] subs w8, w8, #32 cset w8, ne tbnz w8, #0, LBB7_31 b LBB7_30 LBB7_30: ; in Loop: Header=BB7_29 Depth=1 ldr x8, [sp, #112] add x8, x8, #1 str x8, [sp, #112] b LBB7_29 LBB7_31: str xzr, [sp, #120] b LBB7_32 LBB7_32: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #120] subs x8, x8, #255 cset w8, hs tbnz w8, #0, LBB7_38 b LBB7_33 LBB7_33: ; in Loop: Header=BB7_32 Depth=1 ldr x8, [sp, #112] ldrsb w8, [x8] subs w8, w8, #32 cset w8, eq tbnz w8, #0, LBB7_35 b LBB7_34 LBB7_34: ; in Loop: Header=BB7_32 Depth=1 ldr x8, [sp, #112] ldrsb w8, [x8] subs w8, w8, #13 cset w8, ne tbnz w8, #0, LBB7_36 b LBB7_35 LBB7_35: b LBB7_38 LBB7_36: ; in Loop: Header=BB7_32 Depth=1 ldr x8, [sp, #112] ldrb w8, [x8] ldr x10, [sp, #120] add x9, sp, #232 add x9, x9, x10 strb w8, [x9] ldr x8, [sp, #112] add x8, x8, #1 str x8, [sp, #112] b LBB7_37 LBB7_37: ; in Loop: Header=BB7_32 Depth=1 ldr x8, [sp, #120] add x8, x8, #1 str x8, [sp, #120] b LBB7_32 LBB7_38: ldr x9, [sp, #120] add x8, sp, #232 add x8, x8, x9 strb wzr, [x8] b LBB7_39 LBB7_39: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #112] ldrsb w8, [x8] subs w8, w8, #32 cset w8, ne tbnz w8, #0, LBB7_41 b LBB7_40 LBB7_40: ; in Loop: Header=BB7_39 Depth=1 ldr x8, [sp, #112] add x8, x8, #1 str x8, [sp, #112] b LBB7_39 LBB7_41: str xzr, [sp, #120] b LBB7_42 LBB7_42: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #120] subs x8, x8, #15 cset w8, hs tbnz w8, #0, LBB7_48 b LBB7_43 LBB7_43: ; in Loop: Header=BB7_42 Depth=1 ldr x8, [sp, #112] ldrsb w8, [x8] subs w8, w8, #32 cset w8, eq tbnz w8, #0, LBB7_45 b LBB7_44 LBB7_44: ; in Loop: Header=BB7_42 Depth=1 ldr x8, [sp, #112] ldrsb w8, [x8] subs w8, w8, #13 cset w8, ne tbnz w8, #0, LBB7_46 b LBB7_45 LBB7_45: b LBB7_48 LBB7_46: ; in Loop: Header=BB7_42 Depth=1 ldr x8, [sp, #112] ldrb w8, [x8] ldr x10, [sp, #120] add x9, sp, #216 add x9, x9, x10 strb w8, [x9] ldr x8, [sp, #112] add x8, x8, #1 str x8, [sp, #112] b LBB7_47 LBB7_47: ; in Loop: Header=BB7_42 Depth=1 ldr x8, [sp, #120] add x8, x8, #1 str x8, [sp, #120] b LBB7_42 LBB7_48: ldr x10, [sp, #120] add x8, sp, #216 mov x9, x8 add x9, x9, x10 strb wzr, [x9] mov x9, sp add x10, sp, #488 str x10, [sp, #48] ; 8-byte Folded Spill str x10, [x9] add x10, sp, #232 str x10, [x9, #8] str x8, [x9, #16] adrp x0, l_.str.15@PAGE add x0, x0, l_.str.15@PAGEOFF bl _printf ldr x0, [sp, #48] ; 8-byte Folded Reload adrp x1, l_.str.16@PAGE add x1, x1, l_.str.16@PAGEOFF bl _strcmp mov w8, #0 subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB7_58 b LBB7_49 LBB7_49: add x0, sp, #168 str x0, [sp, #40] ; 8-byte Folded Spill adrp x1, l___const.handle_http_connection.response405@PAGE add x1, x1, l___const.handle_http_connection.response405@PAGEOFF mov x2, #48 bl _memcpy ldr x8, [sp, #40] ; 8-byte Folded Reload mov x9, #47 str x9, [sp, #136] str x8, [sp, #72] b LBB7_50 LBB7_50: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #136] subs x8, x8, #0 cset w8, le tbnz w8, #0, LBB7_57 b LBB7_51 LBB7_51: ; in Loop: Header=BB7_50 Depth=1 ldr w0, [sp, #164] ldr x1, [sp, #72] ldr x2, [sp, #136] bl _write str x0, [sp, #128] ldr x8, [sp, #128] subs x8, x8, #0 cset w8, ge tbnz w8, #0, LBB7_55 b LBB7_52 LBB7_52: ; in Loop: Header=BB7_50 Depth=1 bl ___error ldr w8, [x0] subs w8, w8, #4 cset w8, eq tbnz w8, #0, LBB7_54 b LBB7_53 LBB7_53: adrp x0, l_.str.10@PAGE add x0, x0, l_.str.10@PAGEOFF bl _perror b LBB7_84 LBB7_54: ; in Loop: Header=BB7_50 Depth=1 b LBB7_56 LBB7_55: ; in Loop: Header=BB7_50 Depth=1 ldr x9, [sp, #128] ldr x8, [sp, #136] subs x8, x8, x9 str x8, [sp, #136] ldr x9, [sp, #128] ldr x8, [sp, #72] add x8, x8, x9 str x8, [sp, #72] b LBB7_56 LBB7_56: ; in Loop: Header=BB7_50 Depth=1 b LBB7_50 LBB7_57: b LBB7_84 LBB7_58: str wzr, [sp, #92] str xzr, [sp, #120] b LBB7_59 LBB7_59: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #120] lsl x9, x8, #4 adrp x8, _modes_array@PAGE add x8, x8, _modes_array@PAGEOFF ldr w8, [x8, x9] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB7_64 b LBB7_60 LBB7_60: ; in Loop: Header=BB7_59 Depth=1 ldr x9, [sp, #120] adrp x8, _modes_array@PAGE add x8, x8, _modes_array@PAGEOFF add x8, x8, x9, lsl #4 ldr x1, [x8, #8] add x0, sp, #232 bl _strstr subs x8, x0, #0 cset w8, eq tbnz w8, #0, LBB7_62 b LBB7_61 LBB7_61: ldr x8, [sp, #120] lsl x9, x8, #4 adrp x8, _modes_array@PAGE add x8, x8, _modes_array@PAGEOFF ldr w8, [x8, x9] str w8, [sp, #92] b LBB7_64 LBB7_62: ; in Loop: Header=BB7_59 Depth=1 b LBB7_63 LBB7_63: ; in Loop: Header=BB7_59 Depth=1 ldr x8, [sp, #120] add x8, x8, #1 str x8, [sp, #120] b LBB7_59 LBB7_64: ldr w8, [sp, #92] str w8, [sp, #36] ; 4-byte Folded Spill subs w8, w8, #1 cset w8, eq tbnz w8, #0, LBB7_67 b LBB7_65 LBB7_65: ldr w8, [sp, #36] ; 4-byte Folded Reload subs w8, w8, #2 cset w8, eq tbnz w8, #0, LBB7_68 b LBB7_66 LBB7_66: ldr w8, [sp, #36] ; 4-byte Folded Reload subs w8, w8, #4 cset w8, eq tbnz w8, #0, LBB7_73 b LBB7_76 LBB7_67: ldr x0, [sp, #80] add x1, sp, #96 bl _build_chunked_response str x0, [sp, #104] b LBB7_81 LBB7_68: ldr x8, [sp, #80] add x8, x8, #256 str x8, [sp, #96] ldr x0, [sp, #96] bl _malloc str x0, [sp, #104] ldr x8, [sp, #104] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB7_70 b LBB7_69 LBB7_69: b LBB7_81 LBB7_70: ldr x0, [sp, #104] ldr x1, [sp, #96] ldr x8, [sp, #80] mov x9, sp str x8, [x9] mov w2, #0 mov x3, #-1 adrp x4, l_.str.17@PAGE add x4, x4, l_.str.17@PAGEOFF bl ___snprintf_chk ; implicit-def: $x8 mov x8, x0 sxtw x8, w8 str x8, [sp, #136] ldr x8, [sp, #80] ldr x9, [sp, #136] add x8, x8, x9 add x8, x8, #2048 str x8, [sp, #96] ldr x0, [sp, #104] ldr x1, [sp, #96] bl _realloc str x0, [sp, #112] ldr x8, [sp, #112] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB7_72 b LBB7_71 LBB7_71: ldr x0, [sp, #104] bl _free ; kill: def $x8 killed $xzr str xzr, [sp, #104] b LBB7_81 LBB7_72: ldr x8, [sp, #112] str x8, [sp, #104] ldr x8, [sp, #104] ldr x9, [sp, #136] add x0, x8, x9 ldr x1, [sp, #80] bl _build_content ldr x8, [sp, #104] ldr x9, [sp, #136] add x8, x8, x9 ldr x9, [sp, #80] add x0, x8, x9 mov x1, #2048 bl _build_crap b LBB7_81 LBB7_73: mov x8, #198 str x8, [sp, #80] ldr x8, [sp, #80] add x8, x8, #256 str x8, [sp, #96] ldr x0, [sp, #96] bl _malloc str x0, [sp, #104] ldr x8, [sp, #104] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB7_75 b LBB7_74 LBB7_74: b LBB7_81 LBB7_75: ldr x0, [sp, #104] ldr x1, [sp, #96] ldr x8, [sp, #80] mov x9, sp str x8, [x9] mov w2, #0 mov x3, #-1 adrp x4, l_.str.18@PAGE add x4, x4, l_.str.18@PAGEOFF bl ___snprintf_chk ; implicit-def: $x8 mov x8, x0 sxtw x8, w8 str x8, [sp, #136] ldr x8, [sp, #104] ldr x9, [sp, #136] add x0, x8, x9 ldr x1, [sp, #80] bl _build_favicon_content ldr x8, [sp, #80] ldr x9, [sp, #136] add x8, x8, x9 str x8, [sp, #96] b LBB7_81 LBB7_76: ldr x8, [sp, #80] add x8, x8, #256 str x8, [sp, #96] ldr x0, [sp, #96] bl _malloc str x0, [sp, #104] ldr x8, [sp, #104] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB7_78 b LBB7_77 LBB7_77: b LBB7_81 LBB7_78: ldr x0, [sp, #104] ldr x1, [sp, #96] mov w2, #0 mov x3, #-1 adrp x4, l_.str.19@PAGE add x4, x4, l_.str.19@PAGEOFF bl ___snprintf_chk ; implicit-def: $x8 mov x8, x0 sxtw x8, w8 str x8, [sp, #136] ldr x8, [sp, #80] ldr x9, [sp, #136] add x8, x8, x9 str x8, [sp, #96] ldr x0, [sp, #104] ldr x1, [sp, #96] bl _realloc str x0, [sp, #112] ldr x8, [sp, #112] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB7_80 b LBB7_79 LBB7_79: ldr x0, [sp, #104] bl _free ; kill: def $x8 killed $xzr str xzr, [sp, #104] b LBB7_81 LBB7_80: ldr x8, [sp, #112] str x8, [sp, #104] ldr x8, [sp, #104] ldr x9, [sp, #136] add x0, x8, x9 ldr x8, [sp, #96] ldr x9, [sp, #136] subs x1, x8, x9 bl _build_content b LBB7_81 LBB7_81: ldr x8, [sp, #104] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB7_83 b LBB7_82 LBB7_82: ldr w0, [sp, #164] ldr x1, [sp, #104] ldr x2, [sp, #96] bl _send_response ldr x0, [sp, #104] bl _free b LBB7_84 LBB7_83: b LBB7_84 LBB7_84: 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, LBB7_86 b LBB7_85 LBB7_85: bl ___stack_chk_fail LBB7_86: add sp, sp, #2560 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x28, x27, [sp], #32 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #80 .cfi_def_cfa_offset 80 stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp, #64 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] stur w0, [x29, #-8] stur x1, [x29, #-16] stur wzr, [x29, #-20] sturh wzr, [x29, #-30] ; kill: def $x8 killed $xzr str xzr, [sp, #24] mov w8, #1 stur w8, [x29, #-28] b LBB8_1 LBB8_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-28] ldur w9, [x29, #-8] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB8_16 b LBB8_2 LBB8_2: ; in Loop: Header=BB8_1 Depth=1 ldur x8, [x29, #-16] ldursw x9, [x29, #-28] ldr x8, [x8, x9, lsl #3] ldrsb w8, [x8] subs w8, w8, #45 cset w8, ne tbnz w8, #0, LBB8_13 b LBB8_3 LBB8_3: ; in Loop: Header=BB8_1 Depth=1 ldur x8, [x29, #-16] ldursw x9, [x29, #-28] ldr x8, [x8, x9, lsl #3] ldrsb w8, [x8, #1] str w8, [sp, #20] ; 4-byte Folded Spill subs w8, w8, #54 cset w8, eq tbnz w8, #0, LBB8_6 b LBB8_4 LBB8_4: ; in Loop: Header=BB8_1 Depth=1 ldr w8, [sp, #20] ; 4-byte Folded Reload subs w8, w8, #101 cset w8, eq tbnz w8, #0, LBB8_7 b LBB8_5 LBB8_5: ; in Loop: Header=BB8_1 Depth=1 ldr w8, [sp, #20] ; 4-byte Folded Reload subs w8, w8, #112 cset w8, eq tbnz w8, #0, LBB8_8 b LBB8_11 LBB8_6: ; in Loop: Header=BB8_1 Depth=1 mov w8, #1 stur w8, [x29, #-20] b LBB8_12 LBB8_7: ; in Loop: Header=BB8_1 Depth=1 ldur x8, [x29, #-16] ldur w9, [x29, #-28] add w9, w9, #1 stur w9, [x29, #-28] ldr x8, [x8, w9, sxtw #3] str x8, [sp, #24] b LBB8_12 LBB8_8: ; in Loop: Header=BB8_1 Depth=1 ldur w8, [x29, #-28] add w8, w8, #1 stur w8, [x29, #-28] ldur w9, [x29, #-8] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB8_10 b LBB8_9 LBB8_9: ; in Loop: Header=BB8_1 Depth=1 ldur x8, [x29, #-16] ldursw x9, [x29, #-28] ldr x0, [x8, x9, lsl #3] bl _atoi sturh w0, [x29, #-30] b LBB8_10 LBB8_10: ; in Loop: Header=BB8_1 Depth=1 b LBB8_12 LBB8_11: ; in Loop: Header=BB8_1 Depth=1 adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] ldr x0, [x8] ldur x8, [x29, #-16] ldursw x9, [x29, #-28] ldr x8, [x8, x9, lsl #3] mov x9, sp str x8, [x9] adrp x1, l_.str.20@PAGE add x1, x1, l_.str.20@PAGEOFF bl _fprintf b LBB8_12 LBB8_12: ; in Loop: Header=BB8_1 Depth=1 b LBB8_14 LBB8_13: ; in Loop: Header=BB8_1 Depth=1 adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] ldr x0, [x8] ldur x8, [x29, #-16] ldursw x9, [x29, #-28] ldr x8, [x8, x9, lsl #3] mov x9, sp str x8, [x9] adrp x1, l_.str.21@PAGE add x1, x1, l_.str.21@PAGEOFF bl _fprintf b LBB8_14 LBB8_14: ; in Loop: Header=BB8_1 Depth=1 b LBB8_15 LBB8_15: ; in Loop: Header=BB8_1 Depth=1 ldur w8, [x29, #-28] add w8, w8, #1 stur w8, [x29, #-28] b LBB8_1 LBB8_16: mov x0, #0 bl _time ; kill: def $w0 killed $w0 killed $x0 bl _srand ldurh w0, [x29, #-30] ldr x1, [sp, #24] ldur w2, [x29, #-20] bl _server stur w0, [x29, #-24] ldur w8, [x29, #-24] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB8_18 b LBB8_17 LBB8_17: adrp x0, l_.str.22@PAGE add x0, x0, l_.str.22@PAGEOFF bl _printf b LBB8_18 LBB8_18: ldur w0, [x29, #-24] ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function server _server: ; @server .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, ___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] strh w0, [sp, #194] str x1, [sp, #184] str w2, [sp, #180] str wzr, [sp, #152] add x1, sp, #128 str xzr, [sp, #128] str xzr, [sp, #136] adrp x8, _handle_signal_chld@PAGE add x8, x8, _handle_signal_chld@PAGEOFF str x8, [sp, #128] mov w0, #20 mov x2, #0 bl _sigaction subs w8, w0, #0 cset w8, ge tbnz w8, #0, LBB9_2 b LBB9_1 LBB9_1: adrp x0, l_.str.23@PAGE add x0, x0, l_.str.23@PAGEOFF bl _perror mov w8, #1 str w8, [sp, #196] b LBB9_71 LBB9_2: add x1, sp, #128 adrp x8, _handle_signal_int@PAGE add x8, x8, _handle_signal_int@PAGEOFF str x8, [sp, #128] mov w0, #2 mov x2, #0 bl _sigaction subs w8, w0, #0 cset w8, ge tbnz w8, #0, LBB9_4 b LBB9_3 LBB9_3: adrp x0, l_.str.23@PAGE add x0, x0, l_.str.23@PAGEOFF bl _perror mov w8, #1 str w8, [sp, #196] b LBB9_71 LBB9_4: ldr w8, [sp, #180] mov w2, #0 subs w8, w8, #0 cset w8, ne and w10, w8, #0x1 mov w8, #30 mov w9, #2 ands w10, w10, #0x1 csel w0, w8, w9, ne mov w1, #1 bl _socket str w0, [sp, #176] ldr w8, [sp, #176] subs w8, w8, #0 cset w8, ge tbnz w8, #0, LBB9_6 b LBB9_5 LBB9_5: adrp x0, l_.str.24@PAGE add x0, x0, l_.str.24@PAGEOFF bl _perror mov w8, #1 str w8, [sp, #196] b LBB9_71 LBB9_6: sub x0, x29, #152 mov w1, #0 str w1, [sp, #60] ; 4-byte Folded Spill mov x2, #128 str x2, [sp, #64] ; 8-byte Folded Spill bl _memset ldr w1, [sp, #60] ; 4-byte Folded Reload ldr x2, [sp, #64] ; 8-byte Folded Reload add x0, sp, #200 bl _memset ldr w8, [sp, #180] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB9_10 b LBB9_7 LBB9_7: sub x8, x29, #152 str x8, [sp, #120] ldr x9, [sp, #120] mov w8, #30 strb w8, [x9, #1] b LBB9_8 LBB9_8: ldrh w0, [sp, #194] bl __OSSwapInt16 and w8, w0, #0xffff str w8, [sp, #56] ; 4-byte Folded Spill b LBB9_9 LBB9_9: ldr w8, [sp, #56] ; 4-byte Folded Reload ldr x9, [sp, #120] strh w8, [x9, #2] ldr x8, [sp, #120] adrp x9, _in6addr_loopback@GOTPAGE ldr x9, [x9, _in6addr_loopback@GOTPAGEOFF] ldr q0, [x9] stur q0, [x8, #8] b LBB9_13 LBB9_10: sub x8, x29, #152 str x8, [sp, #112] ldr x9, [sp, #112] mov w8, #2 strb w8, [x9, #1] b LBB9_11 LBB9_11: ldrh w0, [sp, #194] bl __OSSwapInt16 and w8, w0, #0xffff str w8, [sp, #52] ; 4-byte Folded Spill b LBB9_12 LBB9_12: ldr w8, [sp, #52] ; 4-byte Folded Reload ldr x9, [sp, #112] strh w8, [x9, #2] ldr x9, [sp, #112] mov w8, #127 movk w8, #256, lsl #16 str w8, [x9, #4] b LBB9_13 LBB9_13: ldr w0, [sp, #176] ldr w8, [sp, #180] subs w8, w8, #0 cset w8, ne and w10, w8, #0x1 mov x8, #28 mov x9, #16 ands w10, w10, #0x1 csel x8, x8, x9, ne mov x2, x8 sub x1, x29, #152 bl _bind subs w8, w0, #0 cset w8, ge tbnz w8, #0, LBB9_15 b LBB9_14 LBB9_14: adrp x0, l_.str.25@PAGE add x0, x0, l_.str.25@PAGEOFF bl _perror mov w8, #1 str w8, [sp, #196] b LBB9_71 LBB9_15: ldr w0, [sp, #176] mov w1, #5 bl _listen subs w8, w0, #0 cset w8, ge tbnz w8, #0, LBB9_17 b LBB9_16 LBB9_16: adrp x0, l_.str.26@PAGE add x0, x0, l_.str.26@PAGEOFF bl _perror b LBB9_17 LBB9_17: ldrh w8, [sp, #194] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB9_28 b LBB9_18 LBB9_18: add x2, sp, #164 mov w8, #128 str w8, [sp, #164] ldr w0, [sp, #176] sub x1, x29, #152 bl _getsockname subs w8, w0, #0 cset w8, ge tbnz w8, #0, LBB9_20 b LBB9_19 LBB9_19: adrp x0, l_.str.27@PAGE add x0, x0, l_.str.27@PAGEOFF bl _perror mov w8, #1 str w8, [sp, #196] b LBB9_71 LBB9_20: ldr w8, [sp, #180] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB9_24 b LBB9_21 LBB9_21: sub x8, x29, #152 str x8, [sp, #104] b LBB9_22 LBB9_22: ldr x8, [sp, #104] ldrh w0, [x8, #2] bl __OSSwapInt16 and w8, w0, #0xffff str w8, [sp, #48] ; 4-byte Folded Spill b LBB9_23 LBB9_23: ldr w8, [sp, #48] ; 4-byte Folded Reload strh w8, [sp, #194] b LBB9_27 LBB9_24: sub x8, x29, #152 str x8, [sp, #96] b LBB9_25 LBB9_25: ldr x8, [sp, #96] ldrh w0, [x8, #2] bl __OSSwapInt16 and w8, w0, #0xffff str w8, [sp, #44] ; 4-byte Folded Spill b LBB9_26 LBB9_26: ldr w8, [sp, #44] ; 4-byte Folded Reload strh w8, [sp, #194] b LBB9_27 LBB9_27: ldrh w10, [sp, #194] mov x9, sp ; implicit-def: $x8 mov x8, x10 str x8, [x9] adrp x0, l_.str.28@PAGE add x0, x0, l_.str.28@PAGEOFF bl _printf adrp x8, ___stdoutp@GOTPAGE ldr x8, [x8, ___stdoutp@GOTPAGEOFF] ldr x0, [x8] bl _fflush b LBB9_28 LBB9_28: ldr x8, [sp, #184] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB9_38 b LBB9_29 LBB9_29: ldr x0, [sp, #184] adrp x1, l_.str.29@PAGE add x1, x1, l_.str.29@PAGEOFF bl _fopen str x0, [sp, #88] ldr x8, [sp, #88] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB9_36 b LBB9_30 LBB9_30: mov x0, #16384 bl _malloc str x0, [sp, #80] ldr x8, [sp, #80] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB9_32 b LBB9_31 LBB9_31: ldr x8, [sp, #72] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.30@PAGE add x1, x1, l_.str.30@PAGEOFF bl _fprintf b LBB9_35 LBB9_32: ldr x0, [sp, #80] mov x1, #16384 str x1, [sp, #32] ; 8-byte Folded Spill bl _build_content ldr x2, [sp, #32] ; 8-byte Folded Reload ldr x0, [sp, #80] ldr x3, [sp, #88] mov x1, #1 bl _fwrite mov x8, x0 str w8, [sp, #168] ldr w8, [sp, #168] subs w8, w8, #4, lsl #12 ; =16384 cset w8, eq tbnz w8, #0, LBB9_34 b LBB9_33 LBB9_33: ldr x8, [sp, #72] ; 8-byte Folded Reload ldr x0, [x8] ldr x10, [sp, #184] ldr w9, [sp, #168] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x10, [x9] str x8, [x9, #8] mov x8, #16384 str x8, [x9, #16] adrp x1, l_.str.31@PAGE add x1, x1, l_.str.31@PAGEOFF bl _fprintf b LBB9_34 LBB9_34: ldr x0, [sp, #80] bl _free b LBB9_35 LBB9_35: ldr x0, [sp, #88] bl _fclose b LBB9_37 LBB9_36: ldr x8, [sp, #72] ; 8-byte Folded Reload ldr x0, [x8] ldr x8, [sp, #184] mov x9, sp str x8, [x9] adrp x1, l_.str.32@PAGE add x1, x1, l_.str.32@PAGEOFF bl _fprintf b LBB9_37 LBB9_37: b LBB9_38 LBB9_38: b LBB9_39 LBB9_39: ; =>This Loop Header: Depth=1 ; Child Loop BB9_43 Depth 2 ldr w8, [sp, #152] subs w8, w8, #0 cset w8, ne mov w9, #0 str w9, [sp, #28] ; 4-byte Folded Spill tbnz w8, #0, LBB9_41 b LBB9_40 LBB9_40: ; in Loop: Header=BB9_39 Depth=1 adrp x8, _quit@PAGE ldr w8, [x8, _quit@PAGEOFF] subs w8, w8, #0 cset w8, eq str w8, [sp, #28] ; 4-byte Folded Spill b LBB9_41 LBB9_41: ; in Loop: Header=BB9_39 Depth=1 ldr w8, [sp, #28] ; 4-byte Folded Reload tbz w8, #0, LBB9_60 b LBB9_42 LBB9_42: ; in Loop: Header=BB9_39 Depth=1 b LBB9_43 LBB9_43: ; Parent Loop BB9_39 Depth=1 ; => This Inner Loop Header: Depth=2 adrp x8, _child_to_wait_for@PAGE ldr w8, [x8, _child_to_wait_for@PAGEOFF] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB9_48 b LBB9_44 LBB9_44: ; in Loop: Header=BB9_43 Depth=2 add x0, sp, #148 bl _wait str w0, [sp, #156] ldr w8, [sp, #156] subs w8, w8, #0 cset w8, ge tbnz w8, #0, LBB9_46 b LBB9_45 LBB9_45: ; in Loop: Header=BB9_43 Depth=2 adrp x0, l_.str.33@PAGE add x0, x0, l_.str.33@PAGEOFF bl _perror b LBB9_47 LBB9_46: ; in Loop: Header=BB9_43 Depth=2 ldr w8, [sp, #156] ; implicit-def: $x10 mov x10, x8 ldr w9, [sp, #148] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x0, l_.str.34@PAGE add x0, x0, l_.str.34@PAGEOFF bl _printf b LBB9_47 LBB9_47: ; in Loop: Header=BB9_43 Depth=2 adrp x9, _child_to_wait_for@PAGE ldr w8, [x9, _child_to_wait_for@PAGEOFF] subs w8, w8, #1 str w8, [x9, _child_to_wait_for@PAGEOFF] b LBB9_43 LBB9_48: ; in Loop: Header=BB9_39 Depth=1 add x2, sp, #160 mov w8, #128 str w8, [sp, #160] ldr w0, [sp, #176] add x1, sp, #200 bl _accept str w0, [sp, #172] ldr w8, [sp, #172] subs w8, w8, #0 cset w8, ge tbnz w8, #0, LBB9_54 b LBB9_49 LBB9_49: ; in Loop: Header=BB9_39 Depth=1 bl ___error ldr w8, [x0] subs w8, w8, #35 cset w8, eq tbnz w8, #0, LBB9_52 b LBB9_50 LBB9_50: ; in Loop: Header=BB9_39 Depth=1 bl ___error ldr w8, [x0] subs w8, w8, #35 cset w8, eq tbnz w8, #0, LBB9_52 b LBB9_51 LBB9_51: ; in Loop: Header=BB9_39 Depth=1 bl ___error ldr w8, [x0] subs w8, w8, #4 cset w8, ne tbnz w8, #0, LBB9_53 b LBB9_52 LBB9_52: ; in Loop: Header=BB9_39 Depth=1 b LBB9_39 LBB9_53: adrp x0, l_.str.35@PAGE add x0, x0, l_.str.35@PAGEOFF bl _perror mov w8, #1 str w8, [sp, #196] b LBB9_71 LBB9_54: ; in Loop: Header=BB9_39 Depth=1 adrp x0, l_.str.36@PAGE add x0, x0, l_.str.36@PAGEOFF bl _printf bl _fork str w0, [sp, #156] ldr w8, [sp, #156] subs w8, w8, #0 cset w8, ge tbnz w8, #0, LBB9_56 b LBB9_55 LBB9_55: adrp x0, l_.str.37@PAGE add x0, x0, l_.str.37@PAGEOFF bl _perror mov w8, #1 str w8, [sp, #196] b LBB9_71 LBB9_56: ; in Loop: Header=BB9_39 Depth=1 ldr w8, [sp, #156] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB9_58 b LBB9_57 LBB9_57: ; in Loop: Header=BB9_39 Depth=1 mov w8, #1 str w8, [sp, #152] ldr w0, [sp, #176] bl _close mov w8, #-1 str w8, [sp, #176] ldr w0, [sp, #172] bl _handle_http_connection b LBB9_58 LBB9_58: ; in Loop: Header=BB9_39 Depth=1 b LBB9_59 LBB9_59: ; in Loop: Header=BB9_39 Depth=1 ldr w0, [sp, #172] bl _close b LBB9_39 LBB9_60: ldr w8, [sp, #176] subs w8, w8, #0 cset w8, lt tbnz w8, #0, LBB9_62 b LBB9_61 LBB9_61: ldr w0, [sp, #176] bl _close mov w8, #-1 str w8, [sp, #176] b LBB9_62 LBB9_62: ldr w8, [sp, #152] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB9_70 b LBB9_63 LBB9_63: b LBB9_64 LBB9_64: ; =>This Inner Loop Header: Depth=1 adrp x8, _child_to_wait_for@PAGE ldr w8, [x8, _child_to_wait_for@PAGEOFF] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB9_69 b LBB9_65 LBB9_65: ; in Loop: Header=BB9_64 Depth=1 add x0, sp, #148 bl _wait str w0, [sp, #156] ldr w8, [sp, #156] subs w8, w8, #0 cset w8, ge tbnz w8, #0, LBB9_67 b LBB9_66 LBB9_66: ; in Loop: Header=BB9_64 Depth=1 adrp x0, l_.str.33@PAGE add x0, x0, l_.str.33@PAGEOFF bl _perror b LBB9_68 LBB9_67: ; in Loop: Header=BB9_64 Depth=1 ldr w8, [sp, #156] ; implicit-def: $x10 mov x10, x8 ldr w9, [sp, #148] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x0, l_.str.34@PAGE add x0, x0, l_.str.34@PAGEOFF bl _printf b LBB9_68 LBB9_68: ; in Loop: Header=BB9_64 Depth=1 adrp x9, _child_to_wait_for@PAGE ldr w8, [x9, _child_to_wait_for@PAGEOFF] subs w8, w8, #1 str w8, [x9, _child_to_wait_for@PAGEOFF] b LBB9_64 LBB9_69: adrp x0, l_.str.38@PAGE add x0, x0, l_.str.38@PAGEOFF bl _printf b LBB9_70 LBB9_70: str wzr, [sp, #196] b LBB9_71 LBB9_71: ldr w8, [sp, #196] str w8, [sp, #24] ; 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_73 b LBB9_72 LBB9_72: bl ___stack_chk_fail LBB9_73: ldr w0, [sp, #24] ; 4-byte Folded Reload 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 .p2align 2 ; -- Begin function _OSSwapInt16 __OSSwapInt16: ; @_OSSwapInt16 .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 strh w0, [sp, #14] ldrh w9, [sp, #14] ldrh w8, [sp, #14] asr w8, w8, #8 orr w8, w8, w9, lsl #8 and w0, w8, #0xffff add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _quit ; @quit .zerofill __DATA,__common,_quit,4,2 .globl _child_to_wait_for ; @child_to_wait_for .zerofill __DATA,__common,_child_to_wait_for,4,2 .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%04d_ABCDEFGHIJKL_This_line_is_64_bytes_long_ABCDEFGHIJKL_%04d\r\n" l_.str.1: ; @.str.1 .asciz "snprintf() returned %d in build_content()\n" .section __TEXT,__const _build_crap.crap: ; @build_crap.crap .asciz "_CRAP_\r\n" .section __TEXT,__cstring,cstring_literals l_.str.2: ; @.str.2 .asciz "HTTP/1.1 200 OK\r\nContent-Type: text/plain\r\nTransfer-Encoding: chunked\r\n\r\n" l_.str.3: ; @.str.3 .asciz "%x\r\n" l_.str.4: ; @.str.4 .asciz "0\r\n\r\n" l_.str.5: ; @.str.5 .asciz "resp_length=%lu buffer_length=%lu content_length=%lu\n" l_.str.6: ; @.str.6 .asciz "chunked" l_.str.7: ; @.str.7 .asciz "addcrap" l_.str.8: ; @.str.8 .asciz "normal" l_.str.9: ; @.str.9 .asciz "favicon.ico" .section __DATA,__const .globl _modes_array ; @modes_array .p2align 3 _modes_array: .long 1 ; 0x1 .space 4 .quad l_.str.6 .long 2 ; 0x2 .space 4 .quad l_.str.7 .long 3 ; 0x3 .space 4 .quad l_.str.8 .long 4 ; 0x4 .space 4 .quad l_.str.9 .space 16 .section __TEXT,__cstring,cstring_literals l_.str.10: ; @.str.10 .asciz "write" l_.str.11: ; @.str.11 .asciz "read" l_.str.12: ; @.str.12 .asciz "\r\n\r\n" l_.str.13: ; @.str.13 .asciz "no HTTP header found in the request\n" l_.str.14: ; @.str.14 .asciz "headers :\n%.*s" l_.str.15: ; @.str.15 .asciz "Method = %s, URI = %s, %s\n" l_.str.16: ; @.str.16 .asciz "GET" l___const.handle_http_connection.response405: ; @__const.handle_http_connection.response405 .asciz "HTTP/1.1 405 Method Not Allowed\r\nAllow: GET\r\n\r\n" l_.str.17: ; @.str.17 .asciz "HTTP/1.1 200 OK\r\nServer: minihttptestserver\r\nContent-Type: text/plain\r\nContent-Length: %lu\r\n\r\n" l_.str.18: ; @.str.18 .asciz "HTTP/1.1 200 OK\r\nServer: minihttptestserver\r\nContent-Type: image/vnd.microsoft.icon\r\nContent-Length: %lu\r\n\r\n" l_.str.19: ; @.str.19 .asciz "HTTP/1.1 200 OK\r\nServer: minihttptestserver\r\nContent-Type: text/plain\r\n\r\n" l_.str.20: ; @.str.20 .asciz "unknown command line switch '%s'\n" l_.str.21: ; @.str.21 .asciz "unknown command line argument '%s'\n" l_.str.22: ; @.str.22 .asciz "*** ERROR ***\n" l_.str.23: ; @.str.23 .asciz "sigaction" l_.str.24: ; @.str.24 .asciz "socket" l_.str.25: ; @.str.25 .asciz "bind" l_.str.26: ; @.str.26 .asciz "listen" l_.str.27: ; @.str.27 .asciz "getsockname" l_.str.28: ; @.str.28 .asciz "Listening on port %hu\n" l_.str.29: ; @.str.29 .asciz "wb" l_.str.30: ; @.str.30 .asciz "memory allocation error\n" l_.str.31: ; @.str.31 .asciz "error writing to file %s : %dbytes written (out of %d)\n" l_.str.32: ; @.str.32 .asciz "error opening file %s for writing\n" l_.str.33: ; @.str.33 .asciz "wait" l_.str.34: ; @.str.34 .asciz "child(%d) terminated with status %d\n" l_.str.35: ; @.str.35 .asciz "accept" l_.str.36: ; @.str.36 .asciz "accept...\n" l_.str.37: ; @.str.37 .asciz "fork" l_.str.38: ; @.str.38 .asciz "Bye...\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _handle_signal_chld ## -- Begin function handle_signal_chld .p2align 4, 0x90 _handle_signal_chld: ## @handle_signal_chld .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 _child_to_wait_for(%rip), %eax addl $1, %eax movl %eax, _child_to_wait_for(%rip) popq %rbp retq .cfi_endproc ## -- End function .globl _handle_signal_int ## -- Begin function handle_signal_int .p2align 4, 0x90 _handle_signal_int: ## @handle_signal_int .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, -4(%rbp) movl $1, _quit(%rip) popq %rbp retq .cfi_endproc ## -- End function .globl _build_content ## -- Begin function build_content .p2align 4, 0x90 _build_content: ## @build_content .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) movq %rdi, -104(%rbp) movq %rsi, -112(%rbp) movl $0, -120(%rbp) LBB2_1: ## =>This Inner Loop Header: Depth=1 cmpq $0, -112(%rbp) jbe LBB2_8 ## %bb.2: ## in Loop: Header=BB2_1 Depth=1 leaq -96(%rbp), %rdi movl -120(%rbp), %r9d movl -120(%rbp), %eax movl $80, %ecx xorl %edx, %edx leaq L_.str(%rip), %r8 movq %rcx, %rsi movl %eax, (%rsp) movb $0, %al callq ___snprintf_chk movl %eax, -116(%rbp) cmpl $64, -116(%rbp) je LBB2_4 ## %bb.3: ## in Loop: Header=BB2_1 Depth=1 movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movl -116(%rbp), %edx leaq L_.str.1(%rip), %rsi movb $0, %al callq _fprintf LBB2_4: ## in Loop: Header=BB2_1 Depth=1 movl -120(%rbp), %eax addl $1, %eax movl %eax, -120(%rbp) cmpq $64, -112(%rbp) jb LBB2_6 ## %bb.5: ## in Loop: Header=BB2_1 Depth=1 movq -104(%rbp), %rdi leaq -96(%rbp), %rsi movl $64, %edx movq $-1, %rcx callq ___memcpy_chk movq -104(%rbp), %rax addq $64, %rax movq %rax, -104(%rbp) movq -112(%rbp), %rax subq $64, %rax movq %rax, -112(%rbp) jmp LBB2_7 LBB2_6: ## in Loop: Header=BB2_1 Depth=1 movq -104(%rbp), %rdi leaq -96(%rbp), %rsi movq -112(%rbp), %rdx movq $-1, %rcx callq ___memcpy_chk movq -112(%rbp), %rax addq -104(%rbp), %rax movq %rax, -104(%rbp) movq $0, -112(%rbp) LBB2_7: ## in Loop: Header=BB2_1 Depth=1 jmp LBB2_1 LBB2_8: movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB2_10 ## %bb.9: addq $128, %rsp popq %rbp retq LBB2_10: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _build_crap ## -- Begin function build_crap .p2align 4, 0x90 _build_crap: ## @build_crap .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) LBB3_1: ## =>This Inner Loop Header: Depth=1 cmpq $0, -16(%rbp) jbe LBB3_5 ## %bb.2: ## in Loop: Header=BB3_1 Depth=1 movq $8, -24(%rbp) movq -24(%rbp), %rax cmpq -16(%rbp), %rax jbe LBB3_4 ## %bb.3: ## in Loop: Header=BB3_1 Depth=1 movq -16(%rbp), %rax movq %rax, -24(%rbp) LBB3_4: ## in Loop: Header=BB3_1 Depth=1 movq -8(%rbp), %rdi movq -24(%rbp), %rdx leaq _build_crap.crap(%rip), %rsi movq $-1, %rcx callq ___memcpy_chk movq -24(%rbp), %rax addq -8(%rbp), %rax movq %rax, -8(%rbp) movq -24(%rbp), %rcx movq -16(%rbp), %rax subq %rcx, %rax movq %rax, -16(%rbp) jmp LBB3_1 LBB3_5: addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _build_chunked_response ## -- Begin function build_chunked_response .p2align 4, 0x90 _build_chunked_response: ## @build_chunked_response .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 addq $256, %rax ## imm = 0x100 movq -16(%rbp), %rcx shrq $4, %rcx addq %rcx, %rax movq %rax, -48(%rbp) movq -48(%rbp), %rdi callq _malloc movq %rax, -32(%rbp) cmpq $0, -32(%rbp) jne LBB4_2 ## %bb.1: movq $0, -8(%rbp) jmp LBB4_10 LBB4_2: movq -32(%rbp), %rdi movq -48(%rbp), %rsi xorl %edx, %edx movq $-1, %rcx leaq L_.str.2(%rip), %r8 movb $0, %al callq ___snprintf_chk movslq %eax, %rcx movq -24(%rbp), %rax movq %rcx, (%rax) movq -16(%rbp), %rdi callq _malloc movq %rax, -40(%rbp) cmpq $0, -40(%rbp) jne LBB4_4 ## %bb.3: movq -32(%rbp), %rdi callq _free movq $0, -8(%rbp) jmp LBB4_10 LBB4_4: movq -40(%rbp), %rdi movq -16(%rbp), %rsi callq _build_content movq $0, -56(%rbp) LBB4_5: ## =>This Inner Loop Header: Depth=1 movq -56(%rbp), %rax cmpq -16(%rbp), %rax jae LBB4_9 ## %bb.6: ## in Loop: Header=BB4_5 Depth=1 callq _rand movl $199, %ecx cltd idivl %ecx addl $1, %edx movl %edx, -60(%rbp) movq -56(%rbp), %rax movl -60(%rbp), %ecx ## kill: def $rcx killed $ecx addq %rcx, %rax cmpq -16(%rbp), %rax jbe LBB4_8 ## %bb.7: ## in Loop: Header=BB4_5 Depth=1 movq -16(%rbp), %rax subq -56(%rbp), %rax ## kill: def $eax killed $eax killed $rax movl %eax, -60(%rbp) LBB4_8: ## in Loop: Header=BB4_5 Depth=1 movq -32(%rbp), %rdi movq -24(%rbp), %rax addq (%rax), %rdi movq -48(%rbp), %rsi movq -24(%rbp), %rax subq (%rax), %rsi movl -60(%rbp), %r9d xorl %edx, %edx movq $-1, %rcx leaq L_.str.3(%rip), %r8 movb $0, %al callq ___snprintf_chk movslq %eax, %rcx movq -24(%rbp), %rax addq (%rax), %rcx movq %rcx, (%rax) movq -32(%rbp), %rdi movq -24(%rbp), %rax addq (%rax), %rdi movq -40(%rbp), %rsi addq -56(%rbp), %rsi movl -60(%rbp), %eax movl %eax, %edx movq $-1, %rcx callq ___memcpy_chk movl -60(%rbp), %eax movl %eax, %ecx movq -24(%rbp), %rax addq (%rax), %rcx movq %rcx, (%rax) movl -60(%rbp), %eax ## kill: def $rax killed $eax addq -56(%rbp), %rax movq %rax, -56(%rbp) movq -32(%rbp), %rax movq -24(%rbp), %rdx movq (%rdx), %rcx movq %rcx, %rsi addq $1, %rsi movq %rsi, (%rdx) movb $13, (%rax,%rcx) movq -32(%rbp), %rax movq -24(%rbp), %rdx movq (%rdx), %rcx movq %rcx, %rsi addq $1, %rsi movq %rsi, (%rdx) movb $10, (%rax,%rcx) jmp LBB4_5 LBB4_9: movq -32(%rbp), %rdi movq -24(%rbp), %rax addq (%rax), %rdi leaq L_.str.4(%rip), %rsi movl $5, %edx movq $-1, %rcx callq ___memcpy_chk movq -24(%rbp), %rax movq (%rax), %rcx addq $5, %rcx movq %rcx, (%rax) movq -40(%rbp), %rdi callq _free movq -24(%rbp), %rax movq (%rax), %rsi movq -48(%rbp), %rdx movq -16(%rbp), %rcx leaq L_.str.5(%rip), %rdi movb $0, %al callq _printf movq -32(%rbp), %rax movq %rax, -8(%rbp) LBB4_10: movq -8(%rbp), %rax addq $64, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _build_favicon_content ## -- Begin function build_favicon_content .p2align 4, 0x90 _build_favicon_content: ## @build_favicon_content .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) cmpq $198, -16(%rbp) jae LBB5_2 ## %bb.1: jmp LBB5_17 LBB5_2: movq -8(%rbp), %rax movq %rax, %rcx addq $1, %rcx movq %rcx, -8(%rbp) movb $0, (%rax) movq -8(%rbp), %rax movq %rax, %rcx addq $1, %rcx movq %rcx, -8(%rbp) movb $0, (%rax) movq -8(%rbp), %rax movq %rax, %rcx addq $1, %rcx movq %rcx, -8(%rbp) movb $1, (%rax) movq -8(%rbp), %rax movq %rax, %rcx addq $1, %rcx movq %rcx, -8(%rbp) movb $0, (%rax) movq -8(%rbp), %rax movq %rax, %rcx addq $1, %rcx movq %rcx, -8(%rbp) movb $1, (%rax) movq -8(%rbp), %rax movq %rax, %rcx addq $1, %rcx movq %rcx, -8(%rbp) movb $0, (%rax) movq -8(%rbp), %rax movq %rax, %rcx addq $1, %rcx movq %rcx, -8(%rbp) movb $16, (%rax) movq -8(%rbp), %rax movq %rax, %rcx addq $1, %rcx movq %rcx, -8(%rbp) movb $16, (%rax) movq -8(%rbp), %rax movq %rax, %rcx addq $1, %rcx movq %rcx, -8(%rbp) movb $2, (%rax) movq -8(%rbp), %rax movq %rax, %rcx addq $1, %rcx movq %rcx, -8(%rbp) movb $0, (%rax) movq -8(%rbp), %rax movq %rax, %rcx addq $1, %rcx movq %rcx, -8(%rbp) movb $1, (%rax) movq -8(%rbp), %rax movq %rax, %rcx addq $1, %rcx movq %rcx, -8(%rbp) movb $0, (%rax) movq -8(%rbp), %rax movq %rax, %rcx addq $1, %rcx movq %rcx, -8(%rbp) movb $1, (%rax) movq -8(%rbp), %rax movq %rax, %rcx addq $1, %rcx movq %rcx, -8(%rbp) movb $0, (%rax) movq -8(%rbp), %rax movq %rax, %rcx addq $1, %rcx movq %rcx, -8(%rbp) movb $-80, (%rax) movq -8(%rbp), %rax movq %rax, %rcx addq $1, %rcx movq %rcx, -8(%rbp) movb $0, (%rax) movq -8(%rbp), %rax movq %rax, %rcx addq $1, %rcx movq %rcx, -8(%rbp) movb $0, (%rax) movq -8(%rbp), %rax movq %rax, %rcx addq $1, %rcx movq %rcx, -8(%rbp) movb $0, (%rax) movq -8(%rbp), %rax movq %rax, %rcx addq $1, %rcx movq %rcx, -8(%rbp) movb $22, (%rax) movq -8(%rbp), %rax movq %rax, %rcx addq $1, %rcx movq %rcx, -8(%rbp) movb $0, (%rax) movq -8(%rbp), %rax movq %rax, %rcx addq $1, %rcx movq %rcx, -8(%rbp) movb $0, (%rax) movq -8(%rbp), %rax movq %rax, %rcx addq $1, %rcx movq %rcx, -8(%rbp) movb $0, (%rax) movq -8(%rbp), %rax movq %rax, %rcx addq $1, %rcx movq %rcx, -8(%rbp) movb $40, (%rax) movq -8(%rbp), %rax movq %rax, %rcx addq $1, %rcx movq %rcx, -8(%rbp) movb $0, (%rax) movq -8(%rbp), %rax movq %rax, %rcx addq $1, %rcx movq %rcx, -8(%rbp) movb $0, (%rax) movq -8(%rbp), %rax movq %rax, %rcx addq $1, %rcx movq %rcx, -8(%rbp) movb $0, (%rax) movq -8(%rbp), %rax movq %rax, %rcx addq $1, %rcx movq %rcx, -8(%rbp) movb $16, (%rax) movq -8(%rbp), %rax movq %rax, %rcx addq $1, %rcx movq %rcx, -8(%rbp) movb $0, (%rax) movq -8(%rbp), %rax movq %rax, %rcx addq $1, %rcx movq %rcx, -8(%rbp) movb $0, (%rax) movq -8(%rbp), %rax movq %rax, %rcx addq $1, %rcx movq %rcx, -8(%rbp) movb $0, (%rax) movq -8(%rbp), %rax movq %rax, %rcx addq $1, %rcx movq %rcx, -8(%rbp) movb $32, (%rax) movq -8(%rbp), %rax movq %rax, %rcx addq $1, %rcx movq %rcx, -8(%rbp) movb $0, (%rax) movq -8(%rbp), %rax movq %rax, %rcx addq $1, %rcx movq %rcx, -8(%rbp) movb $0, (%rax) movq -8(%rbp), %rax movq %rax, %rcx addq $1, %rcx movq %rcx, -8(%rbp) movb $0, (%rax) movq -8(%rbp), %rax movq %rax, %rcx addq $1, %rcx movq %rcx, -8(%rbp) movb $1, (%rax) movq -8(%rbp), %rax movq %rax, %rcx addq $1, %rcx movq %rcx, -8(%rbp) movb $0, (%rax) movq -8(%rbp), %rax movq %rax, %rcx addq $1, %rcx movq %rcx, -8(%rbp) movb $1, (%rax) movq -8(%rbp), %rax movq %rax, %rcx addq $1, %rcx movq %rcx, -8(%rbp) movb $0, (%rax) movl $24, -20(%rbp) LBB5_3: ## =>This Inner Loop Header: Depth=1 cmpl $0, -20(%rbp) jle LBB5_6 ## %bb.4: ## in Loop: Header=BB5_3 Depth=1 movq -8(%rbp), %rax movq %rax, %rcx addq $1, %rcx movq %rcx, -8(%rbp) movb $0, (%rax) ## %bb.5: ## in Loop: Header=BB5_3 Depth=1 movl -20(%rbp), %eax addl $-1, %eax movl %eax, -20(%rbp) jmp LBB5_3 LBB5_6: movq -8(%rbp), %rax movq %rax, %rcx addq $1, %rcx movq %rcx, -8(%rbp) movb $0, (%rax) movq -8(%rbp), %rax movq %rax, %rcx addq $1, %rcx movq %rcx, -8(%rbp) movb $0, (%rax) movq -8(%rbp), %rax movq %rax, %rcx addq $1, %rcx movq %rcx, -8(%rbp) movb $0, (%rax) movq -8(%rbp), %rax movq %rax, %rcx addq $1, %rcx movq %rcx, -8(%rbp) movb $0, (%rax) movq -8(%rbp), %rax movq %rax, %rcx addq $1, %rcx movq %rcx, -8(%rbp) movb $-1, (%rax) movq -8(%rbp), %rax movq %rax, %rcx addq $1, %rcx movq %rcx, -8(%rbp) movb $-1, (%rax) movq -8(%rbp), %rax movq %rax, %rcx addq $1, %rcx movq %rcx, -8(%rbp) movb $-1, (%rax) movq -8(%rbp), %rax movq %rax, %rcx addq $1, %rcx movq %rcx, -8(%rbp) movb $0, (%rax) movl $16, -20(%rbp) LBB5_7: ## =>This Inner Loop Header: Depth=1 cmpl $0, -20(%rbp) jle LBB5_13 ## %bb.8: ## in Loop: Header=BB5_7 Depth=1 movl -20(%rbp), %eax andl $1, %eax cmpl $0, %eax je LBB5_10 ## %bb.9: ## in Loop: Header=BB5_7 Depth=1 movq -8(%rbp), %rax movq %rax, %rcx addq $1, %rcx movq %rcx, -8(%rbp) movb $85, (%rax) movq -8(%rbp), %rax movq %rax, %rcx addq $1, %rcx movq %rcx, -8(%rbp) movb $85, (%rax) jmp LBB5_11 LBB5_10: ## in Loop: Header=BB5_7 Depth=1 movq -8(%rbp), %rax movq %rax, %rcx addq $1, %rcx movq %rcx, -8(%rbp) movb $-86, (%rax) movq -8(%rbp), %rax movq %rax, %rcx addq $1, %rcx movq %rcx, -8(%rbp) movb $-86, (%rax) LBB5_11: ## in Loop: Header=BB5_7 Depth=1 movq -8(%rbp), %rax movq %rax, %rcx addq $1, %rcx movq %rcx, -8(%rbp) movb $0, (%rax) movq -8(%rbp), %rax movq %rax, %rcx addq $1, %rcx movq %rcx, -8(%rbp) movb $0, (%rax) ## %bb.12: ## in Loop: Header=BB5_7 Depth=1 movl -20(%rbp), %eax addl $-1, %eax movl %eax, -20(%rbp) jmp LBB5_7 LBB5_13: movl $64, -20(%rbp) LBB5_14: ## =>This Inner Loop Header: Depth=1 cmpl $0, -20(%rbp) jle LBB5_17 ## %bb.15: ## in Loop: Header=BB5_14 Depth=1 movq -8(%rbp), %rax movq %rax, %rcx addq $1, %rcx movq %rcx, -8(%rbp) movb $0, (%rax) ## %bb.16: ## in Loop: Header=BB5_14 Depth=1 movl -20(%rbp), %eax addl $-1, %eax movl %eax, -20(%rbp) jmp LBB5_14 LBB5_17: popq %rbp retq .cfi_endproc ## -- End function .globl _send_response ## -- Begin function send_response .p2align 4, 0x90 _send_response: ## @send_response .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl %edi, -4(%rbp) movq %rsi, -16(%rbp) movq %rdx, -24(%rbp) LBB6_1: ## =>This Inner Loop Header: Depth=1 cmpq $0, -24(%rbp) jbe LBB6_10 ## %bb.2: ## in Loop: Header=BB6_1 Depth=1 callq _rand movl $99, %ecx cltd idivl %ecx addl $1, %edx movslq %edx, %rax movq %rax, -32(%rbp) movq -32(%rbp), %rax cmpq -24(%rbp), %rax jbe LBB6_4 ## %bb.3: ## in Loop: Header=BB6_1 Depth=1 movq -24(%rbp), %rax movq %rax, -32(%rbp) LBB6_4: ## in Loop: Header=BB6_1 Depth=1 movl -4(%rbp), %edi movq -16(%rbp), %rsi movq -32(%rbp), %rdx callq _write movq %rax, -32(%rbp) cmpq $0, -32(%rbp) jge LBB6_8 ## %bb.5: ## in Loop: Header=BB6_1 Depth=1 callq ___error cmpl $4, (%rax) je LBB6_7 ## %bb.6: leaq L_.str.10(%rip), %rdi callq _perror jmp LBB6_10 LBB6_7: ## in Loop: Header=BB6_1 Depth=1 jmp LBB6_9 LBB6_8: ## in Loop: Header=BB6_1 Depth=1 movq -32(%rbp), %rcx movq -24(%rbp), %rax subq %rcx, %rax movq %rax, -24(%rbp) movq -32(%rbp), %rax addq -16(%rbp), %rax movq %rax, -16(%rbp) movl $10000, %edi ## imm = 0x2710 callq _usleep LBB6_9: ## in Loop: Header=BB6_1 Depth=1 jmp LBB6_1 LBB6_10: addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _handle_http_connection ## -- Begin function handle_http_connection .p2align 4, 0x90 _handle_http_connection: ## @handle_http_connection .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $2512, %rsp ## imm = 0x9D0 movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl %edi, -2404(%rbp) movq $0, -2416(%rbp) movl $0, -2420(%rbp) movq $16384, -2488(%rbp) ## imm = 0x4000 LBB7_1: ## =>This Loop Header: Depth=1 ## Child Loop BB7_11 Depth 2 xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpq $2048, -2416(%rbp) ## imm = 0x800 movb %al, -2497(%rbp) ## 1-byte Spill jae LBB7_3 ## %bb.2: ## in Loop: Header=BB7_1 Depth=1 cmpl $0, -2420(%rbp) setne %al xorb $-1, %al movb %al, -2497(%rbp) ## 1-byte Spill LBB7_3: ## in Loop: Header=BB7_1 Depth=1 movb -2497(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB7_4 jmp LBB7_19 LBB7_4: ## in Loop: Header=BB7_1 Depth=1 movl -2404(%rbp), %edi leaq -2064(%rbp), %rsi addq -2416(%rbp), %rsi movl $2048, %edx ## imm = 0x800 subq -2416(%rbp), %rdx callq _read movq %rax, -2432(%rbp) cmpq $0, -2432(%rbp) jge LBB7_8 ## %bb.5: ## in Loop: Header=BB7_1 Depth=1 callq ___error cmpl $4, (%rax) jne LBB7_7 ## %bb.6: ## in Loop: Header=BB7_1 Depth=1 jmp LBB7_1 LBB7_7: leaq L_.str.11(%rip), %rdi callq _perror jmp LBB7_82 LBB7_8: ## in Loop: Header=BB7_1 Depth=1 cmpq $0, -2432(%rbp) jne LBB7_10 ## %bb.9: jmp LBB7_19 LBB7_10: ## in Loop: Header=BB7_1 Depth=1 movq -2432(%rbp), %rax addq -2416(%rbp), %rax movq %rax, -2416(%rbp) movq $0, -2448(%rbp) LBB7_11: ## Parent Loop BB7_1 Depth=1 ## => This Inner Loop Header: Depth=2 movq -2448(%rbp), %rax movq -2416(%rbp), %rcx subq $3, %rcx cmpq %rcx, %rax jae LBB7_16 ## %bb.12: ## in Loop: Header=BB7_11 Depth=2 leaq -2064(%rbp), %rdi addq -2448(%rbp), %rdi leaq L_.str.12(%rip), %rsi movl $4, %edx callq _memcmp movl %eax, %ecx xorl %eax, %eax cmpl %ecx, %eax jne LBB7_14 ## %bb.13: ## in Loop: Header=BB7_1 Depth=1 movl $1, -2420(%rbp) jmp LBB7_16 LBB7_14: ## in Loop: Header=BB7_11 Depth=2 jmp LBB7_15 LBB7_15: ## in Loop: Header=BB7_11 Depth=2 movq -2448(%rbp), %rax addq $1, %rax movq %rax, -2448(%rbp) jmp LBB7_11 LBB7_16: ## in Loop: Header=BB7_1 Depth=1 jmp LBB7_17 LBB7_17: ## in Loop: Header=BB7_1 Depth=1 jmp LBB7_18 LBB7_18: ## in Loop: Header=BB7_1 Depth=1 jmp LBB7_1 LBB7_19: cmpl $0, -2420(%rbp) jne LBB7_21 ## %bb.20: leaq L_.str.13(%rip), %rdi movb $0, %al callq _printf jmp LBB7_82 LBB7_21: movq -2416(%rbp), %rax movl %eax, %esi leaq -2064(%rbp), %rdx leaq L_.str.14(%rip), %rdi movb $0, %al callq _printf leaq -2064(%rbp), %rax movq %rax, -2456(%rbp) movq $0, -2448(%rbp) LBB7_22: ## =>This Inner Loop Header: Depth=1 cmpq $15, -2448(%rbp) jae LBB7_28 ## %bb.23: ## in Loop: Header=BB7_22 Depth=1 movq -2456(%rbp), %rax movsbl (%rax), %eax cmpl $32, %eax je LBB7_25 ## %bb.24: ## in Loop: Header=BB7_22 Depth=1 movq -2456(%rbp), %rax movsbl (%rax), %eax cmpl $13, %eax jne LBB7_26 LBB7_25: jmp LBB7_28 LBB7_26: ## in Loop: Header=BB7_22 Depth=1 movq -2456(%rbp), %rax movb (%rax), %cl movq -2448(%rbp), %rax movb %cl, -2080(%rbp,%rax) movq -2456(%rbp), %rax addq $1, %rax movq %rax, -2456(%rbp) ## %bb.27: ## in Loop: Header=BB7_22 Depth=1 movq -2448(%rbp), %rax addq $1, %rax movq %rax, -2448(%rbp) jmp LBB7_22 LBB7_28: movq -2448(%rbp), %rax movb $0, -2080(%rbp,%rax) LBB7_29: ## =>This Inner Loop Header: Depth=1 movq -2456(%rbp), %rax movsbl (%rax), %eax cmpl $32, %eax jne LBB7_31 ## %bb.30: ## in Loop: Header=BB7_29 Depth=1 movq -2456(%rbp), %rax addq $1, %rax movq %rax, -2456(%rbp) jmp LBB7_29 LBB7_31: movq $0, -2448(%rbp) LBB7_32: ## =>This Inner Loop Header: Depth=1 cmpq $255, -2448(%rbp) jae LBB7_38 ## %bb.33: ## in Loop: Header=BB7_32 Depth=1 movq -2456(%rbp), %rax movsbl (%rax), %eax cmpl $32, %eax je LBB7_35 ## %bb.34: ## in Loop: Header=BB7_32 Depth=1 movq -2456(%rbp), %rax movsbl (%rax), %eax cmpl $13, %eax jne LBB7_36 LBB7_35: jmp LBB7_38 LBB7_36: ## in Loop: Header=BB7_32 Depth=1 movq -2456(%rbp), %rax movb (%rax), %cl movq -2448(%rbp), %rax movb %cl, -2336(%rbp,%rax) movq -2456(%rbp), %rax addq $1, %rax movq %rax, -2456(%rbp) ## %bb.37: ## in Loop: Header=BB7_32 Depth=1 movq -2448(%rbp), %rax addq $1, %rax movq %rax, -2448(%rbp) jmp LBB7_32 LBB7_38: movq -2448(%rbp), %rax movb $0, -2336(%rbp,%rax) LBB7_39: ## =>This Inner Loop Header: Depth=1 movq -2456(%rbp), %rax movsbl (%rax), %eax cmpl $32, %eax jne LBB7_41 ## %bb.40: ## in Loop: Header=BB7_39 Depth=1 movq -2456(%rbp), %rax addq $1, %rax movq %rax, -2456(%rbp) jmp LBB7_39 LBB7_41: movq $0, -2448(%rbp) LBB7_42: ## =>This Inner Loop Header: Depth=1 cmpq $15, -2448(%rbp) jae LBB7_48 ## %bb.43: ## in Loop: Header=BB7_42 Depth=1 movq -2456(%rbp), %rax movsbl (%rax), %eax cmpl $32, %eax je LBB7_45 ## %bb.44: ## in Loop: Header=BB7_42 Depth=1 movq -2456(%rbp), %rax movsbl (%rax), %eax cmpl $13, %eax jne LBB7_46 LBB7_45: jmp LBB7_48 LBB7_46: ## in Loop: Header=BB7_42 Depth=1 movq -2456(%rbp), %rax movb (%rax), %cl movq -2448(%rbp), %rax movb %cl, -2352(%rbp,%rax) movq -2456(%rbp), %rax addq $1, %rax movq %rax, -2456(%rbp) ## %bb.47: ## in Loop: Header=BB7_42 Depth=1 movq -2448(%rbp), %rax addq $1, %rax movq %rax, -2448(%rbp) jmp LBB7_42 LBB7_48: movq -2448(%rbp), %rax movb $0, -2352(%rbp,%rax) leaq -2080(%rbp), %rsi leaq -2336(%rbp), %rdx leaq -2352(%rbp), %rcx leaq L_.str.15(%rip), %rdi movb $0, %al callq _printf leaq -2080(%rbp), %rdi leaq L_.str.16(%rip), %rsi callq _strcmp movl %eax, %ecx xorl %eax, %eax cmpl %ecx, %eax je LBB7_58 ## %bb.49: leaq -2400(%rbp), %rdi leaq L___const.handle_http_connection.response405(%rip), %rsi movl $48, %edx callq _memcpy movq $47, -2432(%rbp) leaq -2400(%rbp), %rax movq %rax, -2496(%rbp) LBB7_50: ## =>This Inner Loop Header: Depth=1 cmpq $0, -2432(%rbp) jle LBB7_57 ## %bb.51: ## in Loop: Header=BB7_50 Depth=1 movl -2404(%rbp), %edi movq -2496(%rbp), %rsi movq -2432(%rbp), %rdx callq _write movq %rax, -2440(%rbp) cmpq $0, -2440(%rbp) jge LBB7_55 ## %bb.52: ## in Loop: Header=BB7_50 Depth=1 callq ___error cmpl $4, (%rax) je LBB7_54 ## %bb.53: leaq L_.str.10(%rip), %rdi callq _perror jmp LBB7_82 LBB7_54: ## in Loop: Header=BB7_50 Depth=1 jmp LBB7_56 LBB7_55: ## in Loop: Header=BB7_50 Depth=1 movq -2440(%rbp), %rcx movq -2432(%rbp), %rax subq %rcx, %rax movq %rax, -2432(%rbp) movq -2440(%rbp), %rax addq -2496(%rbp), %rax movq %rax, -2496(%rbp) LBB7_56: ## in Loop: Header=BB7_50 Depth=1 jmp LBB7_50 LBB7_57: jmp LBB7_82 LBB7_58: movl $0, -2476(%rbp) movq $0, -2448(%rbp) LBB7_59: ## =>This Inner Loop Header: Depth=1 movq -2448(%rbp), %rcx leaq _modes_array(%rip), %rax shlq $4, %rcx addq %rcx, %rax cmpl $0, (%rax) je LBB7_64 ## %bb.60: ## in Loop: Header=BB7_59 Depth=1 leaq -2336(%rbp), %rdi movq -2448(%rbp), %rcx leaq _modes_array(%rip), %rax shlq $4, %rcx addq %rcx, %rax movq 8(%rax), %rsi callq _strstr cmpq $0, %rax je LBB7_62 ## %bb.61: movq -2448(%rbp), %rcx leaq _modes_array(%rip), %rax shlq $4, %rcx addq %rcx, %rax movl (%rax), %eax movl %eax, -2476(%rbp) jmp LBB7_64 LBB7_62: ## in Loop: Header=BB7_59 Depth=1 jmp LBB7_63 LBB7_63: ## in Loop: Header=BB7_59 Depth=1 movq -2448(%rbp), %rax addq $1, %rax movq %rax, -2448(%rbp) jmp LBB7_59 LBB7_64: movl -2476(%rbp), %eax movl %eax, -2504(%rbp) ## 4-byte Spill subl $1, %eax je LBB7_65 jmp LBB7_85 LBB7_85: movl -2504(%rbp), %eax ## 4-byte Reload subl $2, %eax je LBB7_66 jmp LBB7_86 LBB7_86: movl -2504(%rbp), %eax ## 4-byte Reload subl $4, %eax je LBB7_71 jmp LBB7_74 LBB7_65: movq -2488(%rbp), %rdi leaq -2472(%rbp), %rsi callq _build_chunked_response movq %rax, -2464(%rbp) jmp LBB7_79 LBB7_66: movq -2488(%rbp), %rax addq $256, %rax ## imm = 0x100 movq %rax, -2472(%rbp) movq -2472(%rbp), %rdi callq _malloc movq %rax, -2464(%rbp) cmpq $0, -2464(%rbp) jne LBB7_68 ## %bb.67: jmp LBB7_79 LBB7_68: movq -2464(%rbp), %rdi movq -2472(%rbp), %rsi movq -2488(%rbp), %r9 xorl %edx, %edx movq $-1, %rcx leaq L_.str.17(%rip), %r8 movb $0, %al callq ___snprintf_chk cltq movq %rax, -2432(%rbp) movq -2488(%rbp), %rax addq -2432(%rbp), %rax addq $2048, %rax ## imm = 0x800 movq %rax, -2472(%rbp) movq -2464(%rbp), %rdi movq -2472(%rbp), %rsi callq _realloc movq %rax, -2456(%rbp) cmpq $0, -2456(%rbp) jne LBB7_70 ## %bb.69: movq -2464(%rbp), %rdi callq _free movq $0, -2464(%rbp) jmp LBB7_79 LBB7_70: movq -2456(%rbp), %rax movq %rax, -2464(%rbp) movq -2464(%rbp), %rdi addq -2432(%rbp), %rdi movq -2488(%rbp), %rsi callq _build_content movq -2464(%rbp), %rdi addq -2432(%rbp), %rdi addq -2488(%rbp), %rdi movl $2048, %esi ## imm = 0x800 callq _build_crap jmp LBB7_79 LBB7_71: movq $198, -2488(%rbp) movq -2488(%rbp), %rax addq $256, %rax ## imm = 0x100 movq %rax, -2472(%rbp) movq -2472(%rbp), %rdi callq _malloc movq %rax, -2464(%rbp) cmpq $0, -2464(%rbp) jne LBB7_73 ## %bb.72: jmp LBB7_79 LBB7_73: movq -2464(%rbp), %rdi movq -2472(%rbp), %rsi movq -2488(%rbp), %r9 xorl %edx, %edx movq $-1, %rcx leaq L_.str.18(%rip), %r8 movb $0, %al callq ___snprintf_chk cltq movq %rax, -2432(%rbp) movq -2464(%rbp), %rdi addq -2432(%rbp), %rdi movq -2488(%rbp), %rsi callq _build_favicon_content movq -2488(%rbp), %rax addq -2432(%rbp), %rax movq %rax, -2472(%rbp) jmp LBB7_79 LBB7_74: movq -2488(%rbp), %rax addq $256, %rax ## imm = 0x100 movq %rax, -2472(%rbp) movq -2472(%rbp), %rdi callq _malloc movq %rax, -2464(%rbp) cmpq $0, -2464(%rbp) jne LBB7_76 ## %bb.75: jmp LBB7_79 LBB7_76: movq -2464(%rbp), %rdi movq -2472(%rbp), %rsi xorl %edx, %edx movq $-1, %rcx leaq L_.str.19(%rip), %r8 movb $0, %al callq ___snprintf_chk cltq movq %rax, -2432(%rbp) movq -2488(%rbp), %rax addq -2432(%rbp), %rax movq %rax, -2472(%rbp) movq -2464(%rbp), %rdi movq -2472(%rbp), %rsi callq _realloc movq %rax, -2456(%rbp) cmpq $0, -2456(%rbp) jne LBB7_78 ## %bb.77: movq -2464(%rbp), %rdi callq _free movq $0, -2464(%rbp) jmp LBB7_79 LBB7_78: movq -2456(%rbp), %rax movq %rax, -2464(%rbp) movq -2464(%rbp), %rdi addq -2432(%rbp), %rdi movq -2472(%rbp), %rsi subq -2432(%rbp), %rsi callq _build_content LBB7_79: cmpq $0, -2464(%rbp) je LBB7_81 ## %bb.80: movl -2404(%rbp), %edi movq -2464(%rbp), %rsi movq -2472(%rbp), %rdx callq _send_response movq -2464(%rbp), %rdi callq _free jmp LBB7_82 LBB7_81: jmp LBB7_82 LBB7_82: movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB7_84 ## %bb.83: addq $2512, %rsp ## imm = 0x9D0 popq %rbp retq LBB7_84: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movl $0, -4(%rbp) movl %edi, -8(%rbp) movq %rsi, -16(%rbp) movl $0, -20(%rbp) movw $0, -30(%rbp) movq $0, -40(%rbp) movl $1, -28(%rbp) LBB8_1: ## =>This Inner Loop Header: Depth=1 movl -28(%rbp), %eax cmpl -8(%rbp), %eax jge LBB8_14 ## %bb.2: ## in Loop: Header=BB8_1 Depth=1 movq -16(%rbp), %rax movslq -28(%rbp), %rcx movq (%rax,%rcx,8), %rax movsbl (%rax), %eax cmpl $45, %eax jne LBB8_11 ## %bb.3: ## in Loop: Header=BB8_1 Depth=1 movq -16(%rbp), %rax movslq -28(%rbp), %rcx movq (%rax,%rcx,8), %rax movsbl 1(%rax), %eax movl %eax, -44(%rbp) ## 4-byte Spill subl $54, %eax je LBB8_4 jmp LBB8_17 LBB8_17: ## in Loop: Header=BB8_1 Depth=1 movl -44(%rbp), %eax ## 4-byte Reload subl $101, %eax je LBB8_5 jmp LBB8_18 LBB8_18: ## in Loop: Header=BB8_1 Depth=1 movl -44(%rbp), %eax ## 4-byte Reload subl $112, %eax je LBB8_6 jmp LBB8_9 LBB8_4: ## in Loop: Header=BB8_1 Depth=1 movl $1, -20(%rbp) jmp LBB8_10 LBB8_5: ## in Loop: Header=BB8_1 Depth=1 movq -16(%rbp), %rax movl -28(%rbp), %ecx addl $1, %ecx movl %ecx, -28(%rbp) movslq %ecx, %rcx movq (%rax,%rcx,8), %rax movq %rax, -40(%rbp) jmp LBB8_10 LBB8_6: ## in Loop: Header=BB8_1 Depth=1 movl -28(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) cmpl -8(%rbp), %eax jge LBB8_8 ## %bb.7: ## in Loop: Header=BB8_1 Depth=1 movq -16(%rbp), %rax movslq -28(%rbp), %rcx movq (%rax,%rcx,8), %rdi callq _atoi ## kill: def $ax killed $ax killed $eax movw %ax, -30(%rbp) LBB8_8: ## in Loop: Header=BB8_1 Depth=1 jmp LBB8_10 LBB8_9: ## in Loop: Header=BB8_1 Depth=1 movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movq -16(%rbp), %rax movslq -28(%rbp), %rcx movq (%rax,%rcx,8), %rdx leaq L_.str.20(%rip), %rsi movb $0, %al callq _fprintf LBB8_10: ## in Loop: Header=BB8_1 Depth=1 jmp LBB8_12 LBB8_11: ## in Loop: Header=BB8_1 Depth=1 movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movq -16(%rbp), %rax movslq -28(%rbp), %rcx movq (%rax,%rcx,8), %rdx leaq L_.str.21(%rip), %rsi movb $0, %al callq _fprintf LBB8_12: ## in Loop: Header=BB8_1 Depth=1 jmp LBB8_13 LBB8_13: ## in Loop: Header=BB8_1 Depth=1 movl -28(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) jmp LBB8_1 LBB8_14: xorl %eax, %eax movl %eax, %edi callq _time movl %eax, %edi callq _srand movw -30(%rbp), %ax movq -40(%rbp), %rsi movl -20(%rbp), %edx movzwl %ax, %edi callq _server movl %eax, -24(%rbp) cmpl $0, -24(%rbp) je LBB8_16 ## %bb.15: leaq L_.str.22(%rip), %rdi movb $0, %al callq _printf LBB8_16: movl -24(%rbp), %eax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function server _server: ## @server .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $416, %rsp ## imm = 0x1A0 movw %di, %ax movq ___stack_chk_guard@GOTPCREL(%rip), %rcx movq (%rcx), %rcx movq %rcx, -8(%rbp) movw %ax, -270(%rbp) movq %rsi, -280(%rbp) movl %edx, -284(%rbp) movl $0, -312(%rbp) leaq -336(%rbp), %rdi xorl %esi, %esi movl $16, %edx callq _memset leaq _handle_signal_chld(%rip), %rax movq %rax, -336(%rbp) movl $20, %edi leaq -336(%rbp), %rsi xorl %eax, %eax movl %eax, %edx callq _sigaction cmpl $0, %eax jge LBB9_2 ## %bb.1: leaq L_.str.23(%rip), %rdi callq _perror movl $1, -268(%rbp) jmp LBB9_71 LBB9_2: leaq _handle_signal_int(%rip), %rax movq %rax, -336(%rbp) movl $2, %edi leaq -336(%rbp), %rsi xorl %eax, %eax movl %eax, %edx callq _sigaction cmpl $0, %eax jge LBB9_4 ## %bb.3: leaq L_.str.23(%rip), %rdi callq _perror movl $1, -268(%rbp) jmp LBB9_71 LBB9_4: movl -284(%rbp), %ecx movl $2, %edi movl $30, %eax cmpl $0, %ecx cmovnel %eax, %edi movl $1, %esi xorl %edx, %edx callq _socket movl %eax, -288(%rbp) cmpl $0, -288(%rbp) jge LBB9_6 ## %bb.5: leaq L_.str.24(%rip), %rdi callq _perror movl $1, -268(%rbp) jmp LBB9_71 LBB9_6: leaq -136(%rbp), %rdi xorl %esi, %esi movl $128, %edx callq _memset leaq -264(%rbp), %rdi xorl %esi, %esi movl $128, %edx callq _memset cmpl $0, -284(%rbp) je LBB9_10 ## %bb.7: leaq -136(%rbp), %rax movq %rax, -344(%rbp) movq -344(%rbp), %rax movb $30, 1(%rax) ## %bb.8: movzwl -270(%rbp), %edi callq __OSSwapInt16 movzwl %ax, %eax movl %eax, -388(%rbp) ## 4-byte Spill ## %bb.9: movl -388(%rbp), %eax ## 4-byte Reload movw %ax, %cx movq -344(%rbp), %rax movw %cx, 2(%rax) movq -344(%rbp), %rax movq _in6addr_loopback@GOTPCREL(%rip), %rcx movq (%rcx), %rdx movq %rdx, 8(%rax) movq 8(%rcx), %rcx movq %rcx, 16(%rax) jmp LBB9_13 LBB9_10: leaq -136(%rbp), %rax movq %rax, -352(%rbp) movq -352(%rbp), %rax movb $2, 1(%rax) ## %bb.11: movzwl -270(%rbp), %edi callq __OSSwapInt16 movzwl %ax, %eax movl %eax, -392(%rbp) ## 4-byte Spill ## %bb.12: movl -392(%rbp), %eax ## 4-byte Reload movw %ax, %cx movq -352(%rbp), %rax movw %cx, 2(%rax) movq -352(%rbp), %rax movl $16777343, 4(%rax) ## imm = 0x100007F LBB9_13: movl -288(%rbp), %edi leaq -136(%rbp), %rsi movl -284(%rbp), %edx movl $16, %eax movl $28, %ecx cmpl $0, %edx cmovneq %rcx, %rax movl %eax, %edx callq _bind cmpl $0, %eax jge LBB9_15 ## %bb.14: leaq L_.str.25(%rip), %rdi callq _perror movl $1, -268(%rbp) jmp LBB9_71 LBB9_15: movl -288(%rbp), %edi movl $5, %esi callq _listen cmpl $0, %eax jge LBB9_17 ## %bb.16: leaq L_.str.26(%rip), %rdi callq _perror LBB9_17: movzwl -270(%rbp), %eax cmpl $0, %eax jne LBB9_28 ## %bb.18: movl $128, -300(%rbp) movl -288(%rbp), %edi leaq -136(%rbp), %rsi leaq -300(%rbp), %rdx callq _getsockname cmpl $0, %eax jge LBB9_20 ## %bb.19: leaq L_.str.27(%rip), %rdi callq _perror movl $1, -268(%rbp) jmp LBB9_71 LBB9_20: cmpl $0, -284(%rbp) je LBB9_24 ## %bb.21: leaq -136(%rbp), %rax movq %rax, -360(%rbp) ## %bb.22: movq -360(%rbp), %rax movzwl 2(%rax), %edi callq __OSSwapInt16 movzwl %ax, %eax movl %eax, -396(%rbp) ## 4-byte Spill ## %bb.23: movl -396(%rbp), %eax ## 4-byte Reload movw %ax, -270(%rbp) jmp LBB9_27 LBB9_24: leaq -136(%rbp), %rax movq %rax, -368(%rbp) ## %bb.25: movq -368(%rbp), %rax movzwl 2(%rax), %edi callq __OSSwapInt16 movzwl %ax, %eax movl %eax, -400(%rbp) ## 4-byte Spill ## %bb.26: movl -400(%rbp), %eax ## 4-byte Reload movw %ax, -270(%rbp) LBB9_27: movzwl -270(%rbp), %esi leaq L_.str.28(%rip), %rdi movb $0, %al callq _printf movq ___stdoutp@GOTPCREL(%rip), %rax movq (%rax), %rdi callq _fflush LBB9_28: cmpq $0, -280(%rbp) je LBB9_38 ## %bb.29: movq -280(%rbp), %rdi leaq L_.str.29(%rip), %rsi callq _fopen movq %rax, -376(%rbp) cmpq $0, -376(%rbp) je LBB9_36 ## %bb.30: movl $16384, %edi ## imm = 0x4000 callq _malloc movq %rax, -384(%rbp) cmpq $0, -384(%rbp) jne LBB9_32 ## %bb.31: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.30(%rip), %rsi movb $0, %al callq _fprintf jmp LBB9_35 LBB9_32: movq -384(%rbp), %rdi movl $16384, %esi ## imm = 0x4000 callq _build_content movq -384(%rbp), %rdi movq -376(%rbp), %rcx movl $1, %esi movl $16384, %edx ## imm = 0x4000 callq _fwrite ## kill: def $eax killed $eax killed $rax movl %eax, -296(%rbp) cmpl $16384, -296(%rbp) ## imm = 0x4000 je LBB9_34 ## %bb.33: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movq -280(%rbp), %rdx movl -296(%rbp), %ecx leaq L_.str.31(%rip), %rsi movl $16384, %r8d ## imm = 0x4000 movb $0, %al callq _fprintf LBB9_34: movq -384(%rbp), %rdi callq _free LBB9_35: movq -376(%rbp), %rdi callq _fclose jmp LBB9_37 LBB9_36: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movq -280(%rbp), %rdx leaq L_.str.32(%rip), %rsi movb $0, %al callq _fprintf LBB9_37: jmp LBB9_38 LBB9_38: jmp LBB9_39 LBB9_39: ## =>This Loop Header: Depth=1 ## Child Loop BB9_43 Depth 2 xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $0, -312(%rbp) movb %al, -401(%rbp) ## 1-byte Spill jne LBB9_41 ## %bb.40: ## in Loop: Header=BB9_39 Depth=1 movl _quit(%rip), %eax cmpl $0, %eax setne %al xorb $-1, %al movb %al, -401(%rbp) ## 1-byte Spill LBB9_41: ## in Loop: Header=BB9_39 Depth=1 movb -401(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB9_42 jmp LBB9_60 LBB9_42: ## in Loop: Header=BB9_39 Depth=1 jmp LBB9_43 LBB9_43: ## Parent Loop BB9_39 Depth=1 ## => This Inner Loop Header: Depth=2 movl _child_to_wait_for(%rip), %eax cmpl $0, %eax jle LBB9_48 ## %bb.44: ## in Loop: Header=BB9_43 Depth=2 leaq -316(%rbp), %rdi callq _wait movl %eax, -308(%rbp) cmpl $0, -308(%rbp) jge LBB9_46 ## %bb.45: ## in Loop: Header=BB9_43 Depth=2 leaq L_.str.33(%rip), %rdi callq _perror jmp LBB9_47 LBB9_46: ## in Loop: Header=BB9_43 Depth=2 movl -308(%rbp), %esi movl -316(%rbp), %edx leaq L_.str.34(%rip), %rdi movb $0, %al callq _printf LBB9_47: ## in Loop: Header=BB9_43 Depth=2 movl _child_to_wait_for(%rip), %eax addl $-1, %eax movl %eax, _child_to_wait_for(%rip) jmp LBB9_43 LBB9_48: ## in Loop: Header=BB9_39 Depth=1 movl $128, -304(%rbp) movl -288(%rbp), %edi leaq -264(%rbp), %rsi leaq -304(%rbp), %rdx callq _accept movl %eax, -292(%rbp) cmpl $0, -292(%rbp) jge LBB9_54 ## %bb.49: ## in Loop: Header=BB9_39 Depth=1 callq ___error cmpl $35, (%rax) je LBB9_52 ## %bb.50: ## in Loop: Header=BB9_39 Depth=1 callq ___error cmpl $35, (%rax) je LBB9_52 ## %bb.51: ## in Loop: Header=BB9_39 Depth=1 callq ___error cmpl $4, (%rax) jne LBB9_53 LBB9_52: ## in Loop: Header=BB9_39 Depth=1 jmp LBB9_39 LBB9_53: leaq L_.str.35(%rip), %rdi callq _perror movl $1, -268(%rbp) jmp LBB9_71 LBB9_54: ## in Loop: Header=BB9_39 Depth=1 leaq L_.str.36(%rip), %rdi movb $0, %al callq _printf callq _fork movl %eax, -308(%rbp) cmpl $0, -308(%rbp) jge LBB9_56 ## %bb.55: leaq L_.str.37(%rip), %rdi callq _perror movl $1, -268(%rbp) jmp LBB9_71 LBB9_56: ## in Loop: Header=BB9_39 Depth=1 cmpl $0, -308(%rbp) jne LBB9_58 ## %bb.57: ## in Loop: Header=BB9_39 Depth=1 movl $1, -312(%rbp) movl -288(%rbp), %edi callq _close movl $-1, -288(%rbp) movl -292(%rbp), %edi callq _handle_http_connection LBB9_58: ## in Loop: Header=BB9_39 Depth=1 jmp LBB9_59 LBB9_59: ## in Loop: Header=BB9_39 Depth=1 movl -292(%rbp), %edi callq _close jmp LBB9_39 LBB9_60: cmpl $0, -288(%rbp) jl LBB9_62 ## %bb.61: movl -288(%rbp), %edi callq _close movl $-1, -288(%rbp) LBB9_62: cmpl $0, -312(%rbp) jne LBB9_70 ## %bb.63: jmp LBB9_64 LBB9_64: ## =>This Inner Loop Header: Depth=1 movl _child_to_wait_for(%rip), %eax cmpl $0, %eax jle LBB9_69 ## %bb.65: ## in Loop: Header=BB9_64 Depth=1 leaq -316(%rbp), %rdi callq _wait movl %eax, -308(%rbp) cmpl $0, -308(%rbp) jge LBB9_67 ## %bb.66: ## in Loop: Header=BB9_64 Depth=1 leaq L_.str.33(%rip), %rdi callq _perror jmp LBB9_68 LBB9_67: ## in Loop: Header=BB9_64 Depth=1 movl -308(%rbp), %esi movl -316(%rbp), %edx leaq L_.str.34(%rip), %rdi movb $0, %al callq _printf LBB9_68: ## in Loop: Header=BB9_64 Depth=1 movl _child_to_wait_for(%rip), %eax addl $-1, %eax movl %eax, _child_to_wait_for(%rip) jmp LBB9_64 LBB9_69: leaq L_.str.38(%rip), %rdi movb $0, %al callq _printf LBB9_70: movl $0, -268(%rbp) LBB9_71: movl -268(%rbp), %eax movl %eax, -408(%rbp) ## 4-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB9_73 ## %bb.72: movl -408(%rbp), %eax ## 4-byte Reload addq $416, %rsp ## imm = 0x1A0 popq %rbp retq LBB9_73: 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 .globl _quit ## @quit .zerofill __DATA,__common,_quit,4,2 .globl _child_to_wait_for ## @child_to_wait_for .zerofill __DATA,__common,_child_to_wait_for,4,2 .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%04d_ABCDEFGHIJKL_This_line_is_64_bytes_long_ABCDEFGHIJKL_%04d\r\n" L_.str.1: ## @.str.1 .asciz "snprintf() returned %d in build_content()\n" .section __TEXT,__const _build_crap.crap: ## @build_crap.crap .asciz "_CRAP_\r\n" .section __TEXT,__cstring,cstring_literals L_.str.2: ## @.str.2 .asciz "HTTP/1.1 200 OK\r\nContent-Type: text/plain\r\nTransfer-Encoding: chunked\r\n\r\n" L_.str.3: ## @.str.3 .asciz "%x\r\n" L_.str.4: ## @.str.4 .asciz "0\r\n\r\n" L_.str.5: ## @.str.5 .asciz "resp_length=%lu buffer_length=%lu content_length=%lu\n" L_.str.6: ## @.str.6 .asciz "chunked" L_.str.7: ## @.str.7 .asciz "addcrap" L_.str.8: ## @.str.8 .asciz "normal" L_.str.9: ## @.str.9 .asciz "favicon.ico" .section __DATA,__const .globl _modes_array ## @modes_array .p2align 4 _modes_array: .long 1 ## 0x1 .space 4 .quad L_.str.6 .long 2 ## 0x2 .space 4 .quad L_.str.7 .long 3 ## 0x3 .space 4 .quad L_.str.8 .long 4 ## 0x4 .space 4 .quad L_.str.9 .space 16 .section __TEXT,__cstring,cstring_literals L_.str.10: ## @.str.10 .asciz "write" L_.str.11: ## @.str.11 .asciz "read" L_.str.12: ## @.str.12 .asciz "\r\n\r\n" L_.str.13: ## @.str.13 .asciz "no HTTP header found in the request\n" L_.str.14: ## @.str.14 .asciz "headers :\n%.*s" L_.str.15: ## @.str.15 .asciz "Method = %s, URI = %s, %s\n" L_.str.16: ## @.str.16 .asciz "GET" .p2align 4 ## @__const.handle_http_connection.response405 L___const.handle_http_connection.response405: .asciz "HTTP/1.1 405 Method Not Allowed\r\nAllow: GET\r\n\r\n" L_.str.17: ## @.str.17 .asciz "HTTP/1.1 200 OK\r\nServer: minihttptestserver\r\nContent-Type: text/plain\r\nContent-Length: %lu\r\n\r\n" L_.str.18: ## @.str.18 .asciz "HTTP/1.1 200 OK\r\nServer: minihttptestserver\r\nContent-Type: image/vnd.microsoft.icon\r\nContent-Length: %lu\r\n\r\n" L_.str.19: ## @.str.19 .asciz "HTTP/1.1 200 OK\r\nServer: minihttptestserver\r\nContent-Type: text/plain\r\n\r\n" L_.str.20: ## @.str.20 .asciz "unknown command line switch '%s'\n" L_.str.21: ## @.str.21 .asciz "unknown command line argument '%s'\n" L_.str.22: ## @.str.22 .asciz "*** ERROR ***\n" L_.str.23: ## @.str.23 .asciz "sigaction" L_.str.24: ## @.str.24 .asciz "socket" L_.str.25: ## @.str.25 .asciz "bind" L_.str.26: ## @.str.26 .asciz "listen" L_.str.27: ## @.str.27 .asciz "getsockname" L_.str.28: ## @.str.28 .asciz "Listening on port %hu\n" L_.str.29: ## @.str.29 .asciz "wb" L_.str.30: ## @.str.30 .asciz "memory allocation error\n" L_.str.31: ## @.str.31 .asciz "error writing to file %s : %dbytes written (out of %d)\n" L_.str.32: ## @.str.32 .asciz "error opening file %s for writing\n" L_.str.33: ## @.str.33 .asciz "wait" L_.str.34: ## @.str.34 .asciz "child(%d) terminated with status %d\n" L_.str.35: ## @.str.35 .asciz "accept" L_.str.36: ## @.str.36 .asciz "accept...\n" L_.str.37: ## @.str.37 .asciz "fork" L_.str.38: ## @.str.38 .asciz "Bye...\n" .subsections_via_symbols
the_stack_data/98575303.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __TEXT,__literal8,8byte_literals .p2align 3 ; -- Begin function w_isc6 lCPI0_0: .quad 0x4059000000000000 ; double 100 .section __TEXT,__text,regular,pure_instructions .globl _w_isc6 .p2align 2 _w_isc6: ; @w_isc6 .cfi_startproc ; %bb.0: sub sp, sp, #400 .cfi_def_cfa_offset 400 stp x22, x21, [sp, #352] ; 16-byte Folded Spill stp x20, x19, [sp, #368] ; 16-byte Folded Spill stp x29, x30, [sp, #384] ; 16-byte Folded Spill add x29, sp, #384 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 .cfi_offset w21, -40 .cfi_offset w22, -48 ldr w15, [x29, #16] ldr w14, [x29, #20] ldr x13, [x29, #24] ldr w12, [x29, #32] ldrsb w11, [x29, #36] ldrsb w10, [x29, #37] ldrsb w9, [x29, #38] ldrsb w8, [x29, #39] adrp x16, ___stack_chk_guard@GOTPAGE ldr x16, [x16, ___stack_chk_guard@GOTPAGEOFF] ldr x16, [x16] stur x16, [x29, #-40] stur x0, [x29, #-144] stur w1, [x29, #-148] stur w2, [x29, #-152] stur w3, [x29, #-156] stur w4, [x29, #-160] stur w5, [x29, #-164] stur w6, [x29, #-168] stur w7, [x29, #-172] stur s0, [x29, #-176] stur w15, [x29, #-180] stur w14, [x29, #-184] str x13, [sp, #192] str s1, [sp, #188] str w12, [sp, #184] str s2, [sp, #180] strb w11, [sp, #179] strb w10, [sp, #178] strb w9, [sp, #177] strb w8, [sp, #176] ldur x0, [x29, #-144] ldur w8, [x29, #-148] ; implicit-def: $x20 mov x20, x8 ldur w8, [x29, #-152] ; implicit-def: $x19 mov x19, x8 ldur w8, [x29, #-156] ; implicit-def: $x7 mov x7, x8 ldur w8, [x29, #-160] ; implicit-def: $x6 mov x6, x8 ldur w8, [x29, #-164] ; implicit-def: $x5 mov x5, x8 ldur w8, [x29, #-168] ; implicit-def: $x4 mov x4, x8 ldur w8, [x29, #-172] ; implicit-def: $x2 mov x2, x8 ldur s0, [x29, #-176] fcvt d0, s0 fmov d2, #0.50000000 adrp x8, lCPI0_0@PAGE ldr d1, [x8, lCPI0_0@PAGEOFF] fmadd d0, d0, d1, d2 fcvtms w3, d0 ldur w8, [x29, #-180] ; implicit-def: $x1 mov x1, x8 ldur w8, [x29, #-184] ; implicit-def: $x17 mov x17, x8 ldr x15, [sp, #192] ldr s0, [sp, #188] fcvt d1, s0 fmov d0, #10.00000000 fmadd d1, d0, d1, d2 fcvtms w16, d1 ldr w9, [sp, #184] ; implicit-def: $x8 mov x8, x9 ldr s1, [sp, #180] fcvt d1, s1 fmadd d0, d0, d1, d2 fcvtms w14, d0 ldrsb w13, [sp, #179] ldrsb w12, [sp, #178] ldrsb w11, [sp, #177] ldrsb w10, [sp, #176] mov x9, sp str x9, [sp, #160] ; 8-byte Folded Spill mov x21, #6 str x21, [x9] str x20, [x9, #8] str x19, [x9, #16] str x7, [x9, #24] str x6, [x9, #32] str x5, [x9, #40] str x4, [x9, #48] str x2, [x9, #56] ; implicit-def: $x2 mov x2, x3 str x2, [x9, #64] str x1, [x9, #72] str x17, [x9, #80] str x15, [x9, #88] ; implicit-def: $x15 mov x15, x16 str x15, [x9, #96] str x8, [x9, #104] ; implicit-def: $x8 mov x8, x14 str x8, [x9, #112] ; implicit-def: $x8 mov x8, x13 str x8, [x9, #120] ; implicit-def: $x8 mov x8, x12 str x8, [x9, #128] ; implicit-def: $x8 mov x8, x11 str x8, [x9, #136] ; implicit-def: $x8 mov x8, x10 str x8, [x9, #144] mov w1, #0 mov x2, #-1 str x2, [sp, #168] ; 8-byte Folded Spill adrp x3, l_.str@PAGE add x3, x3, l_.str@PAGEOFF bl ___sprintf_chk ldr x2, [sp, #168] ; 8-byte Folded Reload ldur x0, [x29, #-144] adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF bl ___strcat_chk ldur x9, [x29, #-40] 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, #384] ; 16-byte Folded Reload ldp x20, x19, [sp, #368] ; 16-byte Folded Reload ldp x22, x21, [sp, #352] ; 16-byte Folded Reload add sp, sp, #400 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%2d%2d%4d%2d%2d%2d%2d%2d%4d%2d%3d%-8s%4d%3d%4d%c%c%c%c" l_.str.1: ; @.str.1 .asciz " 99 99 99" .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 w_isc6 LCPI0_0: .quad 0x4024000000000000 ## double 10 LCPI0_1: .quad 0x3fe0000000000000 ## double 0.5 LCPI0_2: .quad 0x4059000000000000 ## double 100 .section __TEXT,__text,regular,pure_instructions .globl _w_isc6 .p2align 4, 0x90 _w_isc6: ## @w_isc6 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $328, %rsp ## imm = 0x148 .cfi_offset %rbx, -56 .cfi_offset %r12, -48 .cfi_offset %r13, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movb 88(%rbp), %al movb 80(%rbp), %al movb 72(%rbp), %al movb 64(%rbp), %al movl 56(%rbp), %eax movq 48(%rbp), %rax movl 40(%rbp), %eax movl 32(%rbp), %eax movl 24(%rbp), %eax movl 16(%rbp), %eax movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -48(%rbp) movq %rdi, -152(%rbp) movl %esi, -156(%rbp) movl %edx, -160(%rbp) movl %ecx, -164(%rbp) movl %r8d, -168(%rbp) movl %r9d, -172(%rbp) movss %xmm0, -176(%rbp) movss %xmm1, -180(%rbp) movss %xmm2, -184(%rbp) movq -152(%rbp), %rdi movl -156(%rbp), %r9d movl -160(%rbp), %eax movl -164(%rbp), %ecx movl %ecx, -220(%rbp) ## 4-byte Spill movl -168(%rbp), %ecx movl %ecx, -216(%rbp) ## 4-byte Spill movl -172(%rbp), %ecx movl %ecx, -212(%rbp) ## 4-byte Spill movl 16(%rbp), %ecx movl %ecx, -208(%rbp) ## 4-byte Spill movl 24(%rbp), %ecx movl %ecx, -204(%rbp) ## 4-byte Spill movss -176(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movsd LCPI0_2(%rip), %xmm1 ## xmm1 = mem[0],zero mulsd %xmm1, %xmm0 movsd LCPI0_1(%rip), %xmm1 ## xmm1 = mem[0],zero addsd %xmm1, %xmm0 roundsd $9, %xmm0, %xmm0 cvttsd2si %xmm0, %ecx movl %ecx, -200(%rbp) ## 4-byte Spill movl 32(%rbp), %ecx movl %ecx, -196(%rbp) ## 4-byte Spill movl 40(%rbp), %ecx movl %ecx, -192(%rbp) ## 4-byte Spill movq 48(%rbp), %r13 movss -180(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movsd LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero mulsd %xmm1, %xmm0 movsd LCPI0_1(%rip), %xmm1 ## xmm1 = mem[0],zero addsd %xmm1, %xmm0 roundsd $9, %xmm0, %xmm0 cvttsd2si %xmm0, %r12d movl 56(%rbp), %r15d movss -184(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movsd LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero mulsd %xmm1, %xmm0 movsd LCPI0_1(%rip), %xmm1 ## xmm1 = mem[0],zero addsd %xmm1, %xmm0 roundsd $9, %xmm0, %xmm0 cvttsd2si %xmm0, %r14d movsbl 64(%rbp), %ebx movsbl 72(%rbp), %r11d movsbl 80(%rbp), %r10d movsbl 88(%rbp), %ecx movl %ecx, -188(%rbp) ## 4-byte Spill xorl %esi, %esi movq $-1, %rdx leaq L_.str(%rip), %rcx movl $6, %r8d movl %eax, (%rsp) movl -220(%rbp), %eax ## 4-byte Reload movl %eax, 8(%rsp) movl -216(%rbp), %eax ## 4-byte Reload movl %eax, 16(%rsp) movl -212(%rbp), %eax ## 4-byte Reload movl %eax, 24(%rsp) movl -208(%rbp), %eax ## 4-byte Reload movl %eax, 32(%rsp) movl -204(%rbp), %eax ## 4-byte Reload movl %eax, 40(%rsp) movl -200(%rbp), %eax ## 4-byte Reload movl %eax, 48(%rsp) movl -196(%rbp), %eax ## 4-byte Reload movl %eax, 56(%rsp) movl -192(%rbp), %eax ## 4-byte Reload movl %eax, 64(%rsp) movl -188(%rbp), %eax ## 4-byte Reload movq %r13, 72(%rsp) movl %r12d, 80(%rsp) movl %r15d, 88(%rsp) movl %r14d, 96(%rsp) movl %ebx, 104(%rsp) movl %r11d, 112(%rsp) movl %r10d, 120(%rsp) movl %eax, 128(%rsp) movb $0, %al callq ___sprintf_chk movq -152(%rbp), %rdi leaq L_.str.1(%rip), %rsi movq $-1, %rdx callq ___strcat_chk movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -48(%rbp), %rcx cmpq %rcx, %rax jne LBB0_2 ## %bb.1: xorl %eax, %eax addq $328, %rsp ## imm = 0x148 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq LBB0_2: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%2d%2d%4d%2d%2d%2d%2d%2d%4d%2d%3d%-8s%4d%3d%4d%c%c%c%c" L_.str.1: ## @.str.1 .asciz " 99 99 99" .subsections_via_symbols
the_stack_data/798892.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _getopt ; -- Begin function _getopt .p2align 2 _getopt: ; @"\01_getopt" .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, _optopt@GOTPAGE ldr x8, [x8, _optopt@GOTPAGEOFF] str x8, [sp, #16] ; 8-byte Folded Spill adrp x8, _optarg@GOTPAGE ldr x8, [x8, _optarg@GOTPAGEOFF] str x8, [sp, #24] ; 8-byte Folded Spill stur w0, [x29, #-8] stur x1, [x29, #-16] stur x2, [x29, #-24] adrp x8, _optreset@GOTPAGE ldr x8, [x8, _optreset@GOTPAGEOFF] ldr w8, [x8] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: adrp x8, _getopt.place@PAGE ldr x8, [x8, _getopt.place@PAGEOFF] ldrb w8, [x8] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_9 b LBB0_2 LBB0_2: adrp x8, _optreset@GOTPAGE ldr x8, [x8, _optreset@GOTPAGEOFF] str wzr, [x8] adrp x8, _optind@PAGE ldr w8, [x8, _optind@PAGEOFF] ldur w9, [x29, #-8] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: ldur x8, [x29, #-16] adrp x9, _optind@PAGE ldrsw x9, [x9, _optind@PAGEOFF] ldr x8, [x8, x9, lsl #3] adrp x10, _getopt.place@PAGE mov x9, x8 str x9, [x10, _getopt.place@PAGEOFF] ldrsb w8, [x8] subs w8, w8, #45 cset w8, eq tbnz w8, #0, LBB0_5 b LBB0_4 LBB0_4: adrp x8, l_.str@PAGE add x8, x8, l_.str@PAGEOFF adrp x9, _getopt.place@PAGE str x8, [x9, _getopt.place@PAGEOFF] mov w8, #-1 stur w8, [x29, #-4] b LBB0_35 LBB0_5: adrp x8, _getopt.place@PAGE ldr x8, [x8, _getopt.place@PAGEOFF] ldrsb w8, [x8, #1] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_8 b LBB0_6 LBB0_6: adrp x10, _getopt.place@PAGE ldr x8, [x10, _getopt.place@PAGEOFF] add x9, x8, #1 str x9, [x10, _getopt.place@PAGEOFF] ldrsb w8, [x8, #1] subs w8, w8, #45 cset w8, ne tbnz w8, #0, LBB0_8 b LBB0_7 LBB0_7: adrp x9, _optind@PAGE ldr w8, [x9, _optind@PAGEOFF] add w8, w8, #1 str w8, [x9, _optind@PAGEOFF] adrp x8, l_.str@PAGE add x8, x8, l_.str@PAGEOFF adrp x9, _getopt.place@PAGE str x8, [x9, _getopt.place@PAGEOFF] mov w8, #-1 stur w8, [x29, #-4] b LBB0_35 LBB0_8: b LBB0_9 LBB0_9: ldr x9, [sp, #16] ; 8-byte Folded Reload adrp x11, _getopt.place@PAGE ldr x8, [x11, _getopt.place@PAGEOFF] add x10, x8, #1 str x10, [x11, _getopt.place@PAGEOFF] ldrsb w8, [x8] str w8, [x9] subs w8, w8, #58 cset w8, eq tbnz w8, #0, LBB0_11 b LBB0_10 LBB0_10: ldr x8, [sp, #16] ; 8-byte Folded Reload ldur x0, [x29, #-24] ldr w1, [x8] bl _strchr mov x8, x0 str x8, [sp, #32] subs x8, x0, #0 cset w8, ne tbnz w8, #0, LBB0_19 b LBB0_11 LBB0_11: ldr x8, [sp, #16] ; 8-byte Folded Reload ldr w8, [x8] subs w8, w8, #45 cset w8, ne tbnz w8, #0, LBB0_13 b LBB0_12 LBB0_12: mov w8, #-1 stur w8, [x29, #-4] b LBB0_35 LBB0_13: adrp x8, _getopt.place@PAGE ldr x8, [x8, _getopt.place@PAGEOFF] ldrb w8, [x8] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_15 b LBB0_14 LBB0_14: adrp x9, _optind@PAGE ldr w8, [x9, _optind@PAGEOFF] add w8, w8, #1 str w8, [x9, _optind@PAGEOFF] b LBB0_15 LBB0_15: adrp x8, _opterr@GOTPAGE ldr x8, [x8, _opterr@GOTPAGEOFF] ldr w8, [x8] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_18 b LBB0_16 LBB0_16: ldur x8, [x29, #-24] ldrsb w8, [x8] subs w8, w8, #58 cset w8, eq tbnz w8, #0, LBB0_18 b LBB0_17 LBB0_17: ldr x8, [sp, #16] ; 8-byte Folded Reload ldr w9, [x8] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf b LBB0_18 LBB0_18: mov w8, #63 stur w8, [x29, #-4] b LBB0_35 LBB0_19: ldr x8, [sp, #32] add x9, x8, #1 str x9, [sp, #32] ldrsb w8, [x8, #1] subs w8, w8, #58 cset w8, eq tbnz w8, #0, LBB0_23 b LBB0_20 LBB0_20: ldr x8, [sp, #24] ; 8-byte Folded Reload ; kill: def $x9 killed $xzr str xzr, [x8] adrp x8, _getopt.place@PAGE ldr x8, [x8, _getopt.place@PAGEOFF] ldrb w8, [x8] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_22 b LBB0_21 LBB0_21: adrp x9, _optind@PAGE ldr w8, [x9, _optind@PAGEOFF] add w8, w8, #1 str w8, [x9, _optind@PAGEOFF] b LBB0_22 LBB0_22: b LBB0_34 LBB0_23: adrp x8, _getopt.place@PAGE ldr x8, [x8, _getopt.place@PAGEOFF] ldrb w8, [x8] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_25 b LBB0_24 LBB0_24: ldr x9, [sp, #24] ; 8-byte Folded Reload adrp x8, _getopt.place@PAGE ldr x8, [x8, _getopt.place@PAGEOFF] str x8, [x9] b LBB0_33 LBB0_25: ldur w8, [x29, #-8] adrp x10, _optind@PAGE ldr w9, [x10, _optind@PAGEOFF] add w9, w9, #1 str w9, [x10, _optind@PAGEOFF] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_31 b LBB0_26 LBB0_26: adrp x8, l_.str@PAGE add x8, x8, l_.str@PAGEOFF adrp x9, _getopt.place@PAGE str x8, [x9, _getopt.place@PAGEOFF] ldur x8, [x29, #-24] ldrsb w8, [x8] subs w8, w8, #58 cset w8, ne tbnz w8, #0, LBB0_28 b LBB0_27 LBB0_27: mov w8, #58 stur w8, [x29, #-4] b LBB0_35 LBB0_28: adrp x8, _opterr@GOTPAGE ldr x8, [x8, _opterr@GOTPAGEOFF] ldr w8, [x8] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_30 b LBB0_29 LBB0_29: ldr x8, [sp, #16] ; 8-byte Folded Reload ldr w9, [x8] ; 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_30 LBB0_30: mov w8, #63 stur w8, [x29, #-4] b LBB0_35 LBB0_31: ldr x9, [sp, #24] ; 8-byte Folded Reload ldur x8, [x29, #-16] adrp x10, _optind@PAGE ldrsw x10, [x10, _optind@PAGEOFF] ldr x8, [x8, x10, lsl #3] str x8, [x9] b LBB0_32 LBB0_32: b LBB0_33 LBB0_33: adrp x8, l_.str@PAGE add x8, x8, l_.str@PAGEOFF adrp x9, _getopt.place@PAGE str x8, [x9, _getopt.place@PAGEOFF] adrp x9, _optind@PAGE ldr w8, [x9, _optind@PAGEOFF] add w8, w8, #1 str w8, [x9, _optind@PAGEOFF] b LBB0_34 LBB0_34: ldr x8, [sp, #16] ; 8-byte Folded Reload ldr w8, [x8] stur w8, [x29, #-4] b LBB0_35 LBB0_35: ldur w0, [x29, #-4] ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .section __DATA,__data .globl _optind ; @optind .p2align 2 _optind: .long 1 ; 0x1 .p2align 3 ; @"\01_getopt.place" _getopt.place: .quad l_.str .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .space 1 .comm _optreset,4,2 ; @optreset .comm _optopt,4,2 ; @optopt .comm _opterr,4,2 ; @opterr l_.str.1: ; @.str.1 .asciz "illegal option -- %c\n" .comm _optarg,8,3 ; @optarg l_.str.2: ; @.str.2 .asciz "option requires an argument -- %c\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _getopt ## -- Begin function _getopt .p2align 4, 0x90 _getopt: ## @"\01_getopt" .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl %edi, -8(%rbp) movq %rsi, -16(%rbp) movq %rdx, -24(%rbp) movq _optreset@GOTPCREL(%rip), %rax cmpl $0, (%rax) jne LBB0_2 ## %bb.1: movq _getopt.place(%rip), %rax cmpb $0, (%rax) jne LBB0_9 LBB0_2: movq _optreset@GOTPCREL(%rip), %rax movl $0, (%rax) movl _optind(%rip), %eax cmpl -8(%rbp), %eax jge LBB0_4 ## %bb.3: movq -16(%rbp), %rax movslq _optind(%rip), %rcx movq (%rax,%rcx,8), %rax movq %rax, _getopt.place(%rip) movsbl (%rax), %eax cmpl $45, %eax je LBB0_5 LBB0_4: leaq L_.str(%rip), %rax movq %rax, _getopt.place(%rip) movl $-1, -4(%rbp) jmp LBB0_35 LBB0_5: movq _getopt.place(%rip), %rax movsbl 1(%rax), %eax cmpl $0, %eax je LBB0_8 ## %bb.6: movq _getopt.place(%rip), %rax movq %rax, %rcx addq $1, %rcx movq %rcx, _getopt.place(%rip) movsbl 1(%rax), %eax cmpl $45, %eax jne LBB0_8 ## %bb.7: movl _optind(%rip), %eax addl $1, %eax movl %eax, _optind(%rip) leaq L_.str(%rip), %rax movq %rax, _getopt.place(%rip) movl $-1, -4(%rbp) jmp LBB0_35 LBB0_8: jmp LBB0_9 LBB0_9: movq _getopt.place(%rip), %rax movq %rax, %rcx addq $1, %rcx movq %rcx, _getopt.place(%rip) movsbl (%rax), %eax movq _optopt@GOTPCREL(%rip), %rcx movl %eax, (%rcx) cmpl $58, %eax je LBB0_11 ## %bb.10: movq -24(%rbp), %rdi movq _optopt@GOTPCREL(%rip), %rax movl (%rax), %esi callq _strchr movq %rax, -32(%rbp) cmpq $0, %rax jne LBB0_19 LBB0_11: movq _optopt@GOTPCREL(%rip), %rax cmpl $45, (%rax) jne LBB0_13 ## %bb.12: movl $-1, -4(%rbp) jmp LBB0_35 LBB0_13: movq _getopt.place(%rip), %rax cmpb $0, (%rax) jne LBB0_15 ## %bb.14: movl _optind(%rip), %eax addl $1, %eax movl %eax, _optind(%rip) LBB0_15: movq _opterr@GOTPCREL(%rip), %rax cmpl $0, (%rax) je LBB0_18 ## %bb.16: movq -24(%rbp), %rax movsbl (%rax), %eax cmpl $58, %eax je LBB0_18 ## %bb.17: movq _optopt@GOTPCREL(%rip), %rax movl (%rax), %esi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf LBB0_18: movl $63, -4(%rbp) jmp LBB0_35 LBB0_19: movq -32(%rbp), %rax movq %rax, %rcx addq $1, %rcx movq %rcx, -32(%rbp) movsbl 1(%rax), %eax cmpl $58, %eax je LBB0_23 ## %bb.20: movq _optarg@GOTPCREL(%rip), %rax movq $0, (%rax) movq _getopt.place(%rip), %rax cmpb $0, (%rax) jne LBB0_22 ## %bb.21: movl _optind(%rip), %eax addl $1, %eax movl %eax, _optind(%rip) LBB0_22: jmp LBB0_34 LBB0_23: movq _getopt.place(%rip), %rax cmpb $0, (%rax) je LBB0_25 ## %bb.24: movq _getopt.place(%rip), %rcx movq _optarg@GOTPCREL(%rip), %rax movq %rcx, (%rax) jmp LBB0_33 LBB0_25: movl -8(%rbp), %eax movl _optind(%rip), %ecx addl $1, %ecx movl %ecx, _optind(%rip) cmpl %ecx, %eax jg LBB0_31 ## %bb.26: leaq L_.str(%rip), %rax movq %rax, _getopt.place(%rip) movq -24(%rbp), %rax movsbl (%rax), %eax cmpl $58, %eax jne LBB0_28 ## %bb.27: movl $58, -4(%rbp) jmp LBB0_35 LBB0_28: movq _opterr@GOTPCREL(%rip), %rax cmpl $0, (%rax) je LBB0_30 ## %bb.29: movq _optopt@GOTPCREL(%rip), %rax movl (%rax), %esi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf LBB0_30: movl $63, -4(%rbp) jmp LBB0_35 LBB0_31: movq -16(%rbp), %rax movslq _optind(%rip), %rcx movq (%rax,%rcx,8), %rcx movq _optarg@GOTPCREL(%rip), %rax movq %rcx, (%rax) ## %bb.32: jmp LBB0_33 LBB0_33: leaq L_.str(%rip), %rax movq %rax, _getopt.place(%rip) movl _optind(%rip), %eax addl $1, %eax movl %eax, _optind(%rip) LBB0_34: movq _optopt@GOTPCREL(%rip), %rax movl (%rax), %eax movl %eax, -4(%rbp) LBB0_35: movl -4(%rbp), %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __DATA,__data .globl _optind ## @optind .p2align 2 _optind: .long 1 ## 0x1 .p2align 3 ## @"\01_getopt.place" _getopt.place: .quad L_.str .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .space 1 .comm _optreset,4,2 ## @optreset .comm _optopt,4,2 ## @optopt .comm _opterr,4,2 ## @opterr L_.str.1: ## @.str.1 .asciz "illegal option -- %c\n" .comm _optarg,8,3 ## @optarg L_.str.2: ## @.str.2 .asciz "option requires an argument -- %c\n" .subsections_via_symbols
the_stack_data/28445.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _powerOfX ; -- Begin function powerOfX .p2align 2 _powerOfX: ; @powerOfX .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur s0, [x29, #-8] stur w0, [x29, #-12] ldur w8, [x29, #-12] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: fmov s0, #1.00000000 stur s0, [x29, #-4] b LBB0_7 LBB0_2: ldur s0, [x29, #-8] ldur w8, [x29, #-12] mov w9, #2 str w9, [sp, #12] ; 4-byte Folded Spill sdiv w0, w8, w9 bl _powerOfX ldr w10, [sp, #12] ; 4-byte Folded Reload str s0, [sp, #16] ldur w8, [x29, #-12] 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 s0, [sp, #16] ldr s1, [sp, #16] fmul s0, s0, s1 stur s0, [x29, #-4] b LBB0_7 LBB0_4: ldur w8, [x29, #-12] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: ldur s0, [x29, #-8] ldr s1, [sp, #16] fmul s0, s0, s1 ldr s1, [sp, #16] fmul s0, s0, s1 stur s0, [x29, #-4] b LBB0_7 LBB0_6: ldr s0, [sp, #16] ldr s1, [sp, #16] fmul s0, s0, s1 ldur s1, [x29, #-8] fdiv s0, s0, s1 stur s0, [x29, #-4] b LBB0_7 LBB0_7: ldur s0, [x29, #-4] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #0 str w8, [sp, #16] ; 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 bl _scanf mov x9, sp sub x8, x29, #12 str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf ldur s0, [x29, #-8] ldur w0, [x29, #-12] bl _powerOfX fcvt d0, s0 mov x8, sp str d0, [x8] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf ldr w0, [sp, #16] ; 4-byte Folded Reload ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%f" l_.str.1: ; @.str.1 .asciz "%d" l_.str.2: ; @.str.2 .asciz "%.2f" .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 powerOfX LCPI0_0: .long 0x3f800000 ## float 1 .section __TEXT,__text,regular,pure_instructions .globl _powerOfX .p2align 4, 0x90 _powerOfX: ## @powerOfX .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movss %xmm0, -8(%rbp) movl %edi, -12(%rbp) cmpl $0, -12(%rbp) jne LBB0_2 ## %bb.1: movss LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, -4(%rbp) jmp LBB0_7 LBB0_2: movss -8(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movl -12(%rbp), %eax movl $2, %ecx cltd idivl %ecx movl %eax, %edi callq _powerOfX movss %xmm0, -16(%rbp) movl -12(%rbp), %eax movl $2, %ecx cltd idivl %ecx cmpl $0, %edx jne LBB0_4 ## %bb.3: movss -16(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero mulss -16(%rbp), %xmm0 movss %xmm0, -4(%rbp) jmp LBB0_7 LBB0_4: cmpl $0, -12(%rbp) jle LBB0_6 ## %bb.5: movss -8(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero mulss -16(%rbp), %xmm0 mulss -16(%rbp), %xmm0 movss %xmm0, -4(%rbp) jmp LBB0_7 LBB0_6: movss -16(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero mulss -16(%rbp), %xmm0 divss -8(%rbp), %xmm0 movss %xmm0, -4(%rbp) LBB0_7: movss -4(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero 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 leaq -8(%rbp), %rsi movb $0, %al callq _scanf leaq L_.str.1(%rip), %rdi leaq -12(%rbp), %rsi movb $0, %al callq _scanf movss -8(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movl -12(%rbp), %edi callq _powerOfX cvtss2sd %xmm0, %xmm0 leaq L_.str.2(%rip), %rdi movb $1, %al callq _printf xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%f" L_.str.1: ## @.str.1 .asciz "%d" L_.str.2: ## @.str.2 .asciz "%.2f" .subsections_via_symbols
the_stack_data/506569.c